diff --git a/.gitignore b/.gitignore index 41a9f0839..a4016ec89 100644 --- a/.gitignore +++ b/.gitignore @@ -20,6 +20,8 @@ packages/**/src/icons/*.tsx packages/**/src/aliases/*.ts packages/**/src/aliases.ts !packages/**/src/aliases/index.ts +packages/**/src/utils/*.ts +!packages/shared/src/utils/*.ts packages/**/src/dynamicIconImports.ts packages/**/DynamicIcon.d.ts packages/**/dynamicIconImports.js diff --git a/README.md b/README.md index 1d2ea701c..ab0c51018 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,16 @@ Thank you to all the people who contributed to Lucide! DigitalOcean Referral Badge +[//]: <> (Open Collective backers) ### Awesome backers 🍺 -pdfme sponsor badge -Fina Money sponsor badge +pdfme – Open-source PDF generation library built with TypeScript and React. +Pax Historia – An alternate history sandbox game + +### Backers ☕ + +Fina Money – Modular Finance Tracker + +### Other contributors 💸 + +You can find all our past and non-recurring financial contributors at [our Open Collective page](https://opencollective.com/lucide-icons). diff --git a/docs/.vitepress/theme/components/base/Input.vue b/docs/.vitepress/theme/components/base/Input.vue index 33134c9b9..1bac147ba 100644 --- a/docs/.vitepress/theme/components/base/Input.vue +++ b/docs/.vitepress/theme/components/base/Input.vue @@ -35,6 +35,8 @@ const updateShortcutSpacing = () => { }); }; +const isMac = /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform); + onMounted(updateShortcutSpacing); watch(() => props.shortcut, updateShortcutSpacing); @@ -73,6 +75,7 @@ defineExpose({ v-if="type === 'search' && modelValue" class="clear-button" aria-label="Clear input" + :style="{ right: isMac ? '50px' : '68px' }" > diff --git a/docs/guide/advanced/accessibility.md b/docs/guide/advanced/accessibility.md index 131928c2a..b868a9d63 100644 --- a/docs/guide/advanced/accessibility.md +++ b/docs/guide/advanced/accessibility.md @@ -10,6 +10,11 @@ because they can quickly give information. However, not everyone can understand them easily. When using icons it is very important to consider the following aspects of accessibility. +::: info +By default, we hide icons from screen readers using `aria-hidden="true"`. +You can make them accessible yourself by following the guidelines below. +::: + ## Provide visible labels Icons are a helpful tool to improve perception, but they aren't a replacement for text. diff --git a/docs/guide/packages/lucide-angular.md b/docs/guide/packages/lucide-angular.md index 737ccc01f..240f75472 100644 --- a/docs/guide/packages/lucide-angular.md +++ b/docs/guide/packages/lucide-angular.md @@ -167,3 +167,15 @@ import { coconut } from '@lucide/lab'; }) export class AppModule { } ``` + +## Accessibility + +By default, we hide icons from screen readers using `aria-hidden="true"`. + +You can add accessibility attributes using aria-labels. + +```html + +``` + +For best practices on accessibility, please see our [accessibility guide](../advanced/accessibility.md). diff --git a/docs/guide/packages/lucide-astro.md b/docs/guide/packages/lucide-astro.md index 0ae1525d4..937da2918 100644 --- a/docs/guide/packages/lucide-astro.md +++ b/docs/guide/packages/lucide-astro.md @@ -192,3 +192,19 @@ import LucideIcon from './LucideIcon.astro'; ``` + +## Accessibility + +By default, we hide icons from screen readers using `aria-hidden="true"`. + +You can add accessibility attributes using aria-labels. + +```jsx +--- +import { Check } from '@lucide/astro'; +--- + + +``` + +For best practices on accessibility, please see our [accessibility guide](../advanced/accessibility.md). diff --git a/docs/guide/packages/lucide-preact.md b/docs/guide/packages/lucide-preact.md index 817acbdf1..4585af11f 100644 --- a/docs/guide/packages/lucide-preact.md +++ b/docs/guide/packages/lucide-preact.md @@ -131,3 +131,19 @@ const App = () => { export default App; ``` + +## Accessibility + +By default, we hide icons from screen readers using `aria-hidden="true"`. + +You can add accessibility attributes using aria-labels. + +```jsx +import { Check } from 'lucide-preact'; + +const App = () => { + return ; +}; +``` + +For best practices on accessibility, please see our [accessibility guide](../advanced/accessibility.md). diff --git a/docs/guide/packages/lucide-react.md b/docs/guide/packages/lucide-react.md index ac34ba186..79e9dcb4c 100644 --- a/docs/guide/packages/lucide-react.md +++ b/docs/guide/packages/lucide-react.md @@ -109,3 +109,19 @@ const App = () => ( ); ``` + +## Accessibility + +By default, we hide icons from screen readers using `aria-hidden="true"`. + +You can add accessibility attributes using aria-labels. + +```jsx +import { Check } from 'lucide-react'; + +const App = () => { + return ; +}; +``` + +For best practices on accessibility, please see our [accessibility guide](../advanced/accessibility.md). diff --git a/docs/guide/packages/lucide-solid.md b/docs/guide/packages/lucide-solid.md index 5f76d4fc3..57641c287 100644 --- a/docs/guide/packages/lucide-solid.md +++ b/docs/guide/packages/lucide-solid.md @@ -144,3 +144,19 @@ const App = () => { export default App; ``` + +## Accessibility + +By default, we hide icons from screen readers using `aria-hidden="true"`. + +You can add accessibility attributes using aria-labels. + +```jsx +import { Check } from 'lucide-solid'; + +const App = () => { + return ; +}; +``` + +For best practices on accessibility, please see our [accessibility guide](../advanced/accessibility.md). diff --git a/docs/guide/packages/lucide-svelte.md b/docs/guide/packages/lucide-svelte.md index eebe1ebac..e3ba6d25d 100644 --- a/docs/guide/packages/lucide-svelte.md +++ b/docs/guide/packages/lucide-svelte.md @@ -331,3 +331,19 @@ The example below imports all ES Modules, so exercise caution when using it. Imp ``` + +## Accessibility + +By default, we hide icons from screen readers using `aria-hidden="true"`. + +You can add accessibility attributes using aria-labels. + +```svelte + + + +``` + +For best practices on accessibility, please see our [accessibility guide](../advanced/accessibility.md). diff --git a/docs/guide/packages/lucide.md b/docs/guide/packages/lucide.md index 5125865e2..4f95a57db 100644 --- a/docs/guide/packages/lucide.md +++ b/docs/guide/packages/lucide.md @@ -62,6 +62,7 @@ Here is a complete example with unpkg ``` +We strongly suggest you anchor to a specific version, such as `https://unpkg.com/lucide@x.xxx.x/dist/umd/lucide.min.js`, rather than using `@latest`. ### With ESModules @@ -203,3 +204,23 @@ createIcons({ } }); ``` + +## Accessibility + +By default, we hide icons from screen readers using `aria-hidden="true"`. + +You can add accessibility attributes using aria-labels. + +```html + + + + + + + +``` + +For best practices on accessibility, please see our [accessibility guide](../advanced/accessibility.md). diff --git a/docs/package.json b/docs/package.json index feede4363..57f2714dd 100644 --- a/docs/package.json +++ b/docs/package.json @@ -45,8 +45,8 @@ "element-to-path": "^1.2.1", "fuse.js": "^7.1.0", "jszip": "^3.10.1", - "lodash": "^4.17.21", - "lodash-es": "^4.17.21", + "lodash": "^4.17.23", + "lodash-es": "^4.17.23", "lucide-react": "workspace:*", "lucide-vue-next": "workspace:*", "react": "^18.3.1", diff --git a/docs/public/sponsors/paxhistoria.svg b/docs/public/sponsors/paxhistoria.svg new file mode 100644 index 000000000..8ad7999ad --- /dev/null +++ b/docs/public/sponsors/paxhistoria.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/package.json b/package.json index 31b44d1fe..dc10fd703 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "addjsons": "node ./scripts/addMissingIconJsonFiles.mts", "checkIcons": "node ./scripts/checkIconsAndCategories.mts", "generate:changelog": "node ./scripts/generateChangelog.mts", + "generate:backers": "node scripts/updateOpenCollectiveBackers.mts", "generate:contributors": "node ./scripts/updateContributors.mts icons/*.svg", "generate:nextJSAliases": "node ./scripts/generateNextJSAliases.mts", "suggest:tags": "node ./scripts/suggestTags.mts", diff --git a/packages/astro/README.md b/packages/astro/README.md index e5dd39c64..ee104b6cb 100644 --- a/packages/astro/README.md +++ b/packages/astro/README.md @@ -68,7 +68,16 @@ Lucide is licensed under the ISC license. See [LICENSE](https://lucide.dev/licen DigitalOcean Referral Badge +[//]: <> (Open Collective backers) ### Awesome backers 🍺 -Scipress sponsor badge -pdfme sponsor badge +pdfme – Open-source PDF generation library built with TypeScript and React. +Pax Historia – An alternate history sandbox game + +### Backers ☕ + +Fina Money – Modular Finance Tracker + +### Other contributors 💸 + +You can find all our past and non-recurring financial contributors at [our Open Collective page](https://opencollective.com/lucide-icons). diff --git a/packages/astro/package.json b/packages/astro/package.json index b5f1e36cb..4bb49e7c8 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -39,18 +39,20 @@ } }, "scripts": { - "build": "pnpm clean && pnpm copy:license && pnpm build:icons", + "build": "pnpm clean && pnpm copy:license && pnpm copy:utils && pnpm build:icons", "build:icons": "build-icons --output=./src --templateSrc=./scripts/exportTemplate.mts --renderUniqueKey --withAliases --aliasesFileExtension=.ts --iconFileExtension=.ts --exportFileName=index.ts --pretty=false", "clean": "rm -rf dist && rm -rf stats && rm -rf ./src/icons/*.ts", "copy:license": "cp ../../LICENSE ./LICENSE", - "test": "pnpm build:icons && vitest run", + "copy:utils": "mkdir -p ./src/utils && for f in hasA11yProp toKebabCase mergeClasses; do cp -f ../../packages/shared/src/utils/$f.ts ./src/utils/; done", + "test": "pnpm copy:utils && pnpm build:icons && vitest run", + "test:watch": "pnpm build:icons && vitest run --watch", "version": "pnpm version --git-tag-version=false" }, "devDependencies": { "@astrojs/ts-plugin": "^1.10.4", "@lucide/build-icons": "workspace:*", "@testing-library/dom": "^10.4.0", - "@testing-library/jest-dom": "^6.6.3", + "@testing-library/jest-dom": "^6.8.0", "jest-serializer-html": "^7.1.0", "linkedom": "^0.18.5", "prettier": "^3.4.2", diff --git a/packages/astro/src/Icon.astro b/packages/astro/src/Icon.astro index 415395730..eb504dbad 100644 --- a/packages/astro/src/Icon.astro +++ b/packages/astro/src/Icon.astro @@ -1,6 +1,8 @@ --- import defaultAttributes from './defaultAttributes'; import type { IconProps as Props } from './types'; +import { hasA11yProp } from './utils/hasA11yProp'; + const { color = 'currentColor', @@ -20,6 +22,7 @@ const { height: size, stroke: color, 'stroke-width': absoluteStrokeWidth ? (Number(strokeWidth) * 24) / Number(size) : strokeWidth, + ...(!hasA11yProp(rest) && { 'aria-hidden': 'true' }), ...rest, }} class:list={['lucide', className]} diff --git a/packages/astro/src/createLucideIcon.ts b/packages/astro/src/createLucideIcon.ts index ab6b0fd50..7ff99d5ec 100644 --- a/packages/astro/src/createLucideIcon.ts +++ b/packages/astro/src/createLucideIcon.ts @@ -1,8 +1,9 @@ -import { mergeClasses, toKebabCase } from './utils'; import type { AstroComponentFactory } from 'astro/runtime/server/render/astro/factory.js'; import type { IconNode } from './types'; import { render, renderSlot, createComponent, renderComponent } from 'astro/compiler-runtime'; import Icon from './Icon.astro'; +import { mergeClasses } from './utils/mergeClasses'; +import { toKebabCase } from './utils/toKebabCase'; export default (iconName: string, iconNode: IconNode): AstroComponentFactory => { const Component = createComponent( diff --git a/packages/astro/src/types.ts b/packages/astro/src/types.ts index 805ababc7..71f1d527f 100644 --- a/packages/astro/src/types.ts +++ b/packages/astro/src/types.ts @@ -10,6 +10,7 @@ export interface IconProps extends SVGAttributes { absoluteStrokeWidth?: boolean; class?: string; iconNode?: IconNode; + title?: string; } export type SVGAttributes = HTMLAttributes<'svg'>; diff --git a/packages/astro/tests/Icon.spec.ts b/packages/astro/tests/Icon.spec.ts index e1d125a08..af2ce9ebb 100644 --- a/packages/astro/tests/Icon.spec.ts +++ b/packages/astro/tests/Icon.spec.ts @@ -1,7 +1,7 @@ import { describe, it, expect } from 'vitest'; import { airVent } from './testIconNodes'; -import { render } from './utils'; -import { Icon } from '../src/lucide-astro'; +import { createAstroHTMLString, render } from './utils'; +import { Icon, Rocket } from '../src/lucide-astro'; describe('Using Icon Component', async () => { const { container } = await render(Icon, { @@ -16,3 +16,44 @@ describe('Using Icon Component', async () => { expect(container.innerHTML).toBeDefined(); }); }); + +describe('Icon Component Accessibility', () => { + it('should have aria-hidden prop when no aria prop is present', async () => { + const { container } = await render(Icon, { + props: { + iconNode: airVent, + size: 48, + stroke: 'red', + absoluteStrokeWidth: true, + }, + }); + + expect(container.firstChild).toHaveAttribute('aria-hidden', 'true'); + }); + + it('should not have aria-hidden prop when aria prop is present', async () => { + const { container } = await render(Rocket, { + props: { + size: 48, + stroke: 'red', + absoluteStrokeWidth: true, + 'aria-label': 'Release icon', + }, + }); + + expect(container.firstChild).not.toHaveAttribute('aria-hidden'); + }); + + it('should not have aria-hidden prop when title prop is present', async () => { + const { container } = await render(Rocket, { + props: { + size: 48, + stroke: 'red', + absoluteStrokeWidth: true, + title: 'Release icon', + }, + }); + + expect(container.firstChild).not.toHaveAttribute('aria-hidden'); + }); +}); diff --git a/packages/astro/tests/__snapshots__/Icon.spec.ts.snap b/packages/astro/tests/__snapshots__/Icon.spec.ts.snap index f96b087eb..a550ccb86 100644 --- a/packages/astro/tests/__snapshots__/Icon.spec.ts.snap +++ b/packages/astro/tests/__snapshots__/Icon.spec.ts.snap @@ -10,6 +10,7 @@ exports[`Using Icon Component > should render icon and match snapshot 1`] = ` stroke-width="1" stroke-linecap="round" stroke-linejoin="round" + aria-hidden="true" class="lucide" > diff --git a/packages/astro/tests/__snapshots__/createLucideIcon.spec.ts.snap b/packages/astro/tests/__snapshots__/createLucideIcon.spec.ts.snap index 7c01619e8..13a285420 100644 --- a/packages/astro/tests/__snapshots__/createLucideIcon.spec.ts.snap +++ b/packages/astro/tests/__snapshots__/createLucideIcon.spec.ts.snap @@ -10,6 +10,7 @@ exports[`Using createLucideIcon > should create a component from an iconNode 1`] stroke-width="2" stroke-linecap="round" stroke-linejoin="round" + aria-hidden="true" class="lucide lucide-air-vent" > diff --git a/packages/astro/tests/__snapshots__/lucide-astro.spec.ts.snap b/packages/astro/tests/__snapshots__/lucide-astro.spec.ts.snap index fcf978635..a6ff7f2e4 100644 --- a/packages/astro/tests/__snapshots__/lucide-astro.spec.ts.snap +++ b/packages/astro/tests/__snapshots__/lucide-astro.spec.ts.snap @@ -10,6 +10,7 @@ exports[`Using lucide icon components > should add a non-default attribute to th stroke-width="2" stroke-linecap="round" stroke-linejoin="round" + aria-hidden="true" style="position: absolute" class="lucide lucide-smile" > @@ -45,6 +46,7 @@ exports[`Using lucide icon components > should adjust the size, stroke color and stroke-width="4" stroke-linecap="round" stroke-linejoin="round" + aria-hidden="true" class="lucide lucide-grid-3x3" > should apply all classes to the element stroke-width="2" stroke-linecap="round" stroke-linejoin="round" + aria-hidden="true" class="lucide lucide-droplet my-icon" > @@ -92,6 +95,7 @@ exports[`Using lucide icon components > should not scale the strokeWidth when ab stroke-width="1" stroke-linecap="round" stroke-linejoin="round" + aria-hidden="true" class="lucide lucide-grid-3x3" > should pass children to the icon slot 1` stroke-width="2" stroke-linecap="round" stroke-linejoin="round" + aria-hidden="true" class="lucide lucide-smile" > should render a component 1`] = ` stroke-width="2" stroke-linecap="round" stroke-linejoin="round" + aria-hidden="true" class="lucide lucide-grid-3x3" > should render the icon with default attr stroke-width="2" stroke-linecap="round" stroke-linejoin="round" + aria-hidden="true" class="lucide lucide-grid-3x3" > DigitalOcean Referral Badge +[//]: <> (Open Collective backers) ### Awesome backers 🍺 -Scipress sponsor badge -pdfme sponsor badge +pdfme – Open-source PDF generation library built with TypeScript and React. +Pax Historia – An alternate history sandbox game + +### Backers ☕ + +Fina Money – Modular Finance Tracker + +### Other contributors 💸 + +You can find all our past and non-recurring financial contributors at [our Open Collective page](https://opencollective.com/lucide-icons). diff --git a/packages/lucide-angular/package.json b/packages/lucide-angular/package.json index 3528e7d4d..2bf498bf8 100644 --- a/packages/lucide-angular/package.json +++ b/packages/lucide-angular/package.json @@ -26,12 +26,13 @@ "Font Awesome" ], "scripts": { - "build": "pnpm clean && pnpm copy:license && pnpm build:icons && pnpm build:ng", + "build": "pnpm clean && pnpm copy:license && pnpm copy:utils &&pnpm build:icons && pnpm build:ng", "copy:license": "cp ../../LICENSE ./LICENSE", + "copy:utils": "mkdir -p ./src/utils && cp -rf ../../packages/shared/src/utils/hasA11yProp.ts ./src/utils/", "clean": "rm -rf dist && rm -rf ./src/icons/*.ts", "build:icons": "build-icons --output=./src --templateSrc=./scripts/exportTemplate.mts --renderUniqueKey --withAliases --aliasesFileExtension=.ts --iconFileExtension=.ts --exportFileName=lucide-icons.ts", "build:ng": "ng build --configuration production", - "test": "ng test --no-watch --no-progress --browsers=ChromeHeadlessCI", + "test": "pnpm copy:utils && ng test --no-watch --no-progress --browsers=ChromeHeadlessCI", "test:watch": "ng test", "lint": "npx eslint 'src/**/*.{js,jsx,ts,tsx,html,css,scss}' --quiet --fix", "e2e": "ng e2e", diff --git a/packages/lucide-angular/src/lib/lucide-angular.component.spec.ts b/packages/lucide-angular/src/lib/lucide-angular.component.spec.ts index 33578a41d..c6448bb31 100644 --- a/packages/lucide-angular/src/lib/lucide-angular.component.spec.ts +++ b/packages/lucide-angular/src/lib/lucide-angular.component.spec.ts @@ -8,8 +8,10 @@ import { LucideIcons } from '../icons/types'; describe('LucideAngularComponent', () => { let testHostComponent: TestHostComponent; let testHostFixture: ComponentFixture; - const getSvgAttribute = (attr: string) => + const getAttribute = (attr: string) => testHostFixture.nativeElement.querySelector('svg').getAttribute(attr); + const getRootAttribute = (attr: string) => + testHostFixture.nativeElement.querySelector('i-lucide').getAttribute(attr); const testIcons: LucideIcons = { Demo: [['polyline', { points: '1 1 22 22' }]], }; @@ -31,28 +33,28 @@ describe('LucideAngularComponent', () => { it('should add all classes', () => { testHostFixture.detectChanges(); - expect(getSvgAttribute('class')).toBe('lucide lucide-demo my-icon'); + expect(getAttribute('class')).toBe('lucide lucide-demo my-icon'); }); it('should set color', () => { const color = 'red'; testHostComponent.setColor(color); testHostFixture.detectChanges(); - expect(getSvgAttribute('stroke')).toBe(color); + expect(getAttribute('stroke')).toBe(color); }); it('should set size', () => { const size = 12; testHostComponent.setSize(size); testHostFixture.detectChanges(); - expect(getSvgAttribute('width')).toBe(size.toString(10)); + expect(getAttribute('width')).toBe(size.toString(10)); }); it('should set stroke width', () => { const strokeWidth = 1.41; testHostComponent.setStrokeWidth(strokeWidth); testHostFixture.detectChanges(); - expect(getSvgAttribute('stroke-width')).toBe(strokeWidth.toString(10)); + expect(getAttribute('stroke-width')).toBe(strokeWidth.toString(10)); }); it('should adjust stroke width', () => { @@ -62,27 +64,61 @@ describe('LucideAngularComponent', () => { testHostComponent.setSize(12); testHostComponent.setAbsoluteStrokeWidth(true); testHostFixture.detectChanges(); - expect(getSvgAttribute('stroke-width')).toBe( + expect(getAttribute('stroke-width')).toBe( formatFixed(strokeWidth / (size / defaultAttributes.height)), ); }); + it('should have aria-hidden prop when no aria prop is present', async () => { + testHostFixture.detectChanges(); + expect(getRootAttribute('aria-hidden')).toBe('true'); + }); + + it('should not have aria-hidden prop when aria prop is present', async () => { + const ariaLabel = 'Demo icon'; + testHostComponent.setAriaLabel(ariaLabel); + testHostFixture.detectChanges(); + expect(getRootAttribute('aria-label')).toBe(ariaLabel); + expect(getRootAttribute('aria-hidden')).toBeNull(); + }); + + it('should not have aria-hidden prop when title prop is present', async () => { + const ariaLabel = 'Demo icon'; + testHostComponent.setTitle(ariaLabel); + testHostFixture.detectChanges(); + expect(getRootAttribute('title')).toBe(ariaLabel); + expect(getRootAttribute('aria-hidden')).toBeNull(); + }); + + it('should never override aria-hidden prop', async () => { + testHostComponent.setAriaHidden(true); + testHostFixture.detectChanges(); + expect(getRootAttribute('aria-hidden')).toBe('true'); + }); + @Component({ selector: 'lucide-spec-host-component', - template: ` `, + [attr.aria-label]="ariaLabel" + [attr.title]="title" + [attr.aria-hidden]="ariaHidden" + > + `, }) class TestHostComponent { color?: string; size?: number; strokeWidth?: number; absoluteStrokeWidth = true; + ariaLabel?: string = undefined; + title?: string = undefined; + ariaHidden?: boolean = undefined; setColor(color: string): void { this.color = color; @@ -99,5 +135,17 @@ describe('LucideAngularComponent', () => { setAbsoluteStrokeWidth(absoluteStrokeWidth: boolean): void { this.absoluteStrokeWidth = absoluteStrokeWidth; } + + setAriaLabel(label: string): void { + this.ariaLabel = label; + } + + setTitle(title: string): void { + this.title = title; + } + + setAriaHidden(ariaHidden: boolean): void { + this.ariaHidden = ariaHidden; + } } }); diff --git a/packages/lucide-angular/src/lib/lucide-angular.component.ts b/packages/lucide-angular/src/lib/lucide-angular.component.ts index 931239cba..42952cea0 100644 --- a/packages/lucide-angular/src/lib/lucide-angular.component.ts +++ b/packages/lucide-angular/src/lib/lucide-angular.component.ts @@ -12,6 +12,7 @@ import { LucideIconData } from '../icons/types'; import defaultAttributes from '../icons/constants/default-attributes'; import { LUCIDE_ICONS, LucideIconProviderInterface } from './lucide-icon.provider'; import { LucideIconConfig } from './lucide-icon.config'; +import { hasA11yProp } from '../utils/hasA11yProp'; interface TypedChange extends SimpleChange { previousValue: T; @@ -99,6 +100,12 @@ export class LucideAngularComponent implements OnChanges { this.strokeWidth = this.parseNumber(this.strokeWidth ?? this.iconConfig.strokeWidth); this.absoluteStrokeWidth = this.absoluteStrokeWidth ?? this.iconConfig.absoluteStrokeWidth; const nameOrIcon = this.img ?? this.name; + const restAttributes = this.getRestAttributes(); + + if (!hasA11yProp(restAttributes)) { + this.renderer.setAttribute(this.elem.nativeElement, 'aria-hidden', 'true'); + } + if (typeof nameOrIcon === 'string') { const icoOfName = this.getIcon(this.toPascalCase(nameOrIcon)); if (icoOfName) { @@ -119,6 +126,8 @@ export class LucideAngularComponent implements OnChanges { } replaceElement(img: LucideIconData): void { + const childElements = this.elem.nativeElement.childNodes; + const attributes = { ...defaultAttributes, width: this.size, @@ -133,6 +142,7 @@ export class LucideAngularComponent implements OnChanges { if (typeof this.name === 'string') { icoElement.classList.add(`lucide-${this.name.replace('_', '-')}`); } + if (this.class) { icoElement.classList.add( ...this.class @@ -141,13 +151,21 @@ export class LucideAngularComponent implements OnChanges { .filter((a) => a.length > 0), ); } - const childElements = this.elem.nativeElement.childNodes; + for (const child of childElements) { this.renderer.removeChild(this.elem.nativeElement, child); } this.renderer.appendChild(this.elem.nativeElement, icoElement); } + getRestAttributes(): Record { + const restAttributeMap: NamedNodeMap = this.elem.nativeElement.attributes; + const restAttributes = Object.fromEntries( + Array.from(restAttributeMap).map((item) => [item.name, item.value]), + ); + return restAttributes; + } + toPascalCase(str: string): string { return str.replace( /(\w)([a-z0-9]*)(_|-|\s*)/g, diff --git a/packages/lucide-preact/README.md b/packages/lucide-preact/README.md index 0bca38c27..caaf88c9f 100644 --- a/packages/lucide-preact/README.md +++ b/packages/lucide-preact/README.md @@ -67,7 +67,16 @@ Lucide is licensed under the ISC license. See [LICENSE](https://lucide.dev/licen DigitalOcean Referral Badge +[//]: <> (Open Collective backers) ### Awesome backers 🍺 -Scipress sponsor badge -pdfme sponsor badge +pdfme – Open-source PDF generation library built with TypeScript and React. +Pax Historia – An alternate history sandbox game + +### Backers ☕ + +Fina Money – Modular Finance Tracker + +### Other contributors 💸 + +You can find all our past and non-recurring financial contributors at [our Open Collective page](https://opencollective.com/lucide-icons). diff --git a/packages/lucide-preact/package.json b/packages/lucide-preact/package.json index 2b6942f6c..6152c2aea 100644 --- a/packages/lucide-preact/package.json +++ b/packages/lucide-preact/package.json @@ -45,7 +45,7 @@ "@lucide/rollup-plugins": "workspace:*", "@lucide/shared": "workspace:*", "@preact/preset-vite": "^2.10.2", - "@testing-library/jest-dom": "^6.6.3", + "@testing-library/jest-dom": "^6.8.0", "@testing-library/preact": "^3.2.3", "jest-serializer-html": "^7.1.0", "preact": "^10.27.3", diff --git a/packages/lucide-preact/src/Icon.ts b/packages/lucide-preact/src/Icon.ts index 41b4b8bfc..0fb278848 100644 --- a/packages/lucide-preact/src/Icon.ts +++ b/packages/lucide-preact/src/Icon.ts @@ -3,6 +3,7 @@ import defaultAttributes from './defaultAttributes'; import type { IconNode, LucideProps } from './types'; import { useLucideContext } from './context'; import { mergeClasses } from '@lucide/shared'; +import { hasA11yProp } from '@lucide/shared'; interface IconComponentProps extends LucideProps { iconNode: IconNode; @@ -55,6 +56,7 @@ const Icon = ({ stroke: color ?? contextColor, ['stroke-width' as 'strokeWidth']: calculatedStrokeWidth, class: mergeClasses('lucide', contextClass, classes), + ...(!children && !hasA11yProp(rest) && { 'aria-hidden': 'true' }), ...rest, }, [...iconNode.map(([tag, attrs]) => h(tag, attrs)), ...toChildArray(children)], diff --git a/packages/lucide-preact/tests/Icon.spec.tsx b/packages/lucide-preact/tests/Icon.spec.tsx index d43760ba9..a78874888 100644 --- a/packages/lucide-preact/tests/Icon.spec.tsx +++ b/packages/lucide-preact/tests/Icon.spec.tsx @@ -31,3 +31,62 @@ describe('Using Icon Component', () => { expect(container.firstChild).toMatchSnapshot(); }); }); + +describe('Icon Component Accessibility', () => { + it('should not have aria-hidden prop when aria prop is present', async () => { + const { container } = render( + , + ); + + expect(container.firstChild).not.toHaveAttribute('aria-hidden'); + }); + + it('should not have aria-hidden prop when title prop is present', async () => { + const { container } = render( + , + ); + + expect(container.firstChild).not.toHaveAttribute('aria-hidden'); + }); + + it('should not have aria-hidden prop when there are children that could be a element', async () => { + const { container } = render( + <Icon + iconNode={airVent} + size={48} + stroke="red" + absoluteStrokeWidth + > + <title>Some title + , + ); + + expect(container.firstChild).not.toHaveAttribute('aria-hidden'); + }); + + it('should never override aria-hidden prop', async () => { + const { container } = render( + , + ); + + expect(container.firstChild).toHaveAttribute('aria-hidden', 'false'); + }); +}); diff --git a/packages/lucide-preact/tests/__snapshots__/Icon.spec.tsx.snap b/packages/lucide-preact/tests/__snapshots__/Icon.spec.tsx.snap index 635ca428a..0908247fd 100644 --- a/packages/lucide-preact/tests/__snapshots__/Icon.spec.tsx.snap +++ b/packages/lucide-preact/tests/__snapshots__/Icon.spec.tsx.snap @@ -2,7 +2,8 @@ exports[`Using Icon Component > should render icon and match snapshot 1`] = ` DigitalOcean Referral Badge +[//]: <> (Open Collective backers) ### Awesome backers 🍺 -Scipress sponsor badge -pdfme sponsor badge +pdfme – Open-source PDF generation library built with TypeScript and React. +Pax Historia – An alternate history sandbox game + +### Backers ☕ + +Fina Money – Modular Finance Tracker + +### Other contributors 💸 + +You can find all our past and non-recurring financial contributors at [our Open Collective page](https://opencollective.com/lucide-icons). diff --git a/packages/lucide-react-native/package.json b/packages/lucide-react-native/package.json index 69951f10f..ab0112a79 100644 --- a/packages/lucide-react-native/package.json +++ b/packages/lucide-react-native/package.json @@ -59,7 +59,7 @@ "@lucide/rollup-plugins": "workspace:*", "@lucide/build-icons": "workspace:*", "@lucide/shared": "workspace:*", - "@testing-library/jest-dom": "^6.6.3", + "@testing-library/jest-dom": "^6.8.0", "@testing-library/react": "^14.1.2", "@types/prop-types": "^15.7.5", "@types/react": "^18.0.21", diff --git a/packages/lucide-react/README.md b/packages/lucide-react/README.md index 8d02efe96..b0a625a3f 100644 --- a/packages/lucide-react/README.md +++ b/packages/lucide-react/README.md @@ -67,7 +67,16 @@ Lucide is licensed under the ISC license. See [LICENSE](https://lucide.dev/licen DigitalOcean Referral Badge +[//]: <> (Open Collective backers) ### Awesome backers 🍺 -Scipress sponsor badge -pdfme sponsor badge +pdfme – Open-source PDF generation library built with TypeScript and React. +Pax Historia – An alternate history sandbox game + +### Backers ☕ + +Fina Money – Modular Finance Tracker + +### Other contributors 💸 + +You can find all our past and non-recurring financial contributors at [our Open Collective page](https://opencollective.com/lucide-icons). diff --git a/packages/lucide-react/package.json b/packages/lucide-react/package.json index e7296abca..5f512d44d 100644 --- a/packages/lucide-react/package.json +++ b/packages/lucide-react/package.json @@ -52,7 +52,7 @@ "@lucide/build-icons": "workspace:*", "@lucide/rollup-plugins": "workspace:*", "@lucide/shared": "workspace:*", - "@testing-library/jest-dom": "^6.6.3", + "@testing-library/jest-dom": "^6.8.0", "@testing-library/react": "^14.1.2", "@types/react": "^18.2.37", "@vitejs/plugin-react": "^4.6.0", diff --git a/packages/lucide-react/tests/Icon.spec.tsx b/packages/lucide-react/tests/Icon.spec.tsx index 22f0837b4..612b58e7d 100644 --- a/packages/lucide-react/tests/Icon.spec.tsx +++ b/packages/lucide-react/tests/Icon.spec.tsx @@ -33,6 +33,19 @@ describe('Using Icon Component', () => { }); describe('Icon Component Accessibility', () => { + it('should have aria-hidden prop when no aria prop is present', async () => { + const { container } = render( + , + ); + + expect(container.firstChild).toHaveAttribute('aria-hidden', 'true'); + }); + it('should not have aria-hidden prop when aria prop is present', async () => { const { container } = render( DigitalOcean Referral Badge +[//]: <> (Open Collective backers) ### Awesome backers 🍺 -Scipress sponsor badge -pdfme sponsor badge +pdfme – Open-source PDF generation library built with TypeScript and React. +Pax Historia – An alternate history sandbox game + +### Backers ☕ + +Fina Money – Modular Finance Tracker + +### Other contributors 💸 + +You can find all our past and non-recurring financial contributors at [our Open Collective page](https://opencollective.com/lucide-icons). diff --git a/packages/lucide-solid/package.json b/packages/lucide-solid/package.json index 3a59b2880..676fd7a88 100644 --- a/packages/lucide-solid/package.json +++ b/packages/lucide-solid/package.json @@ -77,7 +77,7 @@ "@lucide/shared": "workspace:*", "@rollup/plugin-babel": "^6.0.4", "@solidjs/testing-library": "^0.8.10", - "@testing-library/jest-dom": "^6.6.3", + "@testing-library/jest-dom": "^6.8.0", "babel-preset-solid": "^1.8.12", "jest-serializer-html": "^7.1.0", "rollup": "^4.53.3", diff --git a/packages/lucide-solid/src/Icon.tsx b/packages/lucide-solid/src/Icon.tsx index 1bd8a3852..57d2a43ff 100644 --- a/packages/lucide-solid/src/Icon.tsx +++ b/packages/lucide-solid/src/Icon.tsx @@ -4,6 +4,7 @@ import defaultAttributes from './defaultAttributes'; import { IconNode, LucideProps } from './types'; import { mergeClasses, toKebabCase, toPascalCase } from '@lucide/shared'; import { LucideContext } from './context'; +import { hasA11yProp, mergeClasses, toKebabCase, toPascalCase } from '@lucide/shared'; interface IconProps { name?: string; @@ -57,6 +58,7 @@ const Icon = (props: LucideProps & IconProps) => { : []), localProps.class, )} + aria-hidden={!localProps.children && !hasA11yProp(rest) ? 'true' : undefined} {...rest} > diff --git a/packages/lucide-solid/tests/Icon.spec.tsx b/packages/lucide-solid/tests/Icon.spec.tsx index 74c3936ab..b10dd6211 100644 --- a/packages/lucide-solid/tests/Icon.spec.tsx +++ b/packages/lucide-solid/tests/Icon.spec.tsx @@ -31,3 +31,76 @@ describe('Using Icon Component', () => { expect(container.firstChild).toMatchSnapshot(); }); }); + +describe('Icon Component Accessibility', () => { + it('should have aria-hidden prop when no aria prop is present', async () => { + const { container } = render(() => ( + + )); + + expect(container.firstChild).toHaveAttribute('aria-hidden', 'true'); + }); + + it('should not have aria-hidden prop when aria prop is present', async () => { + const { container } = render(() => ( + + )); + + expect(container.firstChild).not.toHaveAttribute('aria-hidden'); + }); + + it('should not have aria-hidden prop when title prop is present', async () => { + const { container } = render(() => ( + + )); + + expect(container.firstChild).not.toHaveAttribute('aria-hidden'); + }); + + it('should not have aria-hidden prop when there are children that could be a element', async () => { + const { container } = render(() => ( + <Icon + iconNode={airVent} + size={48} + stroke="red" + absoluteStrokeWidth + > + <title>Some title + + )); + + expect(container.firstChild).not.toHaveAttribute('aria-hidden'); + }); + + it('should never override aria-hidden prop', async () => { + const { container } = render(() => ( + + )); + + expect(container.firstChild).toHaveAttribute('aria-hidden', 'false'); + }); +}); diff --git a/packages/lucide-solid/tests/__snapshots__/Icon.spec.tsx.snap b/packages/lucide-solid/tests/__snapshots__/Icon.spec.tsx.snap index 3ec6f852d..5a783f6e1 100644 --- a/packages/lucide-solid/tests/__snapshots__/Icon.spec.tsx.snap +++ b/packages/lucide-solid/tests/__snapshots__/Icon.spec.tsx.snap @@ -2,6 +2,7 @@ exports[`Using Icon Component > should render icon and match snapshot 1`] = ` DigitalOcean Referral Badge +[//]: <> (Open Collective backers) ### Awesome backers 🍺 -Scipress sponsor badge -pdfme sponsor badge +pdfme – Open-source PDF generation library built with TypeScript and React. +Pax Historia – An alternate history sandbox game + +### Backers ☕ + +Fina Money – Modular Finance Tracker + +### Other contributors 💸 + +You can find all our past and non-recurring financial contributors at [our Open Collective page](https://opencollective.com/lucide-icons). diff --git a/packages/lucide-svelte/README.md b/packages/lucide-svelte/README.md index 6ca96ea77..d9d6f79b5 100644 --- a/packages/lucide-svelte/README.md +++ b/packages/lucide-svelte/README.md @@ -67,7 +67,16 @@ Lucide is licensed under the ISC license. See [LICENSE](https://lucide.dev/licen DigitalOcean Referral Badge +[//]: <> (Open Collective backers) ### Awesome backers 🍺 -Scipress sponsor badge -pdfme sponsor badge +pdfme – Open-source PDF generation library built with TypeScript and React. +Pax Historia – An alternate history sandbox game + +### Backers ☕ + +Fina Money – Modular Finance Tracker + +### Other contributors 💸 + +You can find all our past and non-recurring financial contributors at [our Open Collective page](https://opencollective.com/lucide-icons). diff --git a/packages/lucide-svelte/package.json b/packages/lucide-svelte/package.json index 264897703..e56c5443c 100644 --- a/packages/lucide-svelte/package.json +++ b/packages/lucide-svelte/package.json @@ -46,13 +46,14 @@ "dist" ], "scripts": { - "build": "pnpm clean && pnpm copy:license && pnpm build:icons && pnpm build:package && pnpm build:license", + "build": "pnpm clean && pnpm copy:license && pnpm copy:utils && pnpm build:icons && pnpm build:package && pnpm build:license", "copy:license": "cp ../../LICENSE ./LICENSE", + "copy:utils": "mkdir -p ./src/utils && for f in hasA11yProp mergeClasses; do cp -f ../../packages/shared/src/utils/$f.ts ./src/utils/; done", "clean": "rm -rf dist && rm -rf stats && rm -rf ./src/icons/*.svelte && rm -f index.js", "build:icons": "build-icons --output=./src --templateSrc=./scripts/exportTemplate.mts --exportFileName=index.ts --iconFileExtension=.svelte --importImportFileExtension=.svelte --separateIconFileExport --separateIconFileExportExtension=.ts --withAliases --aliasesFileExtension=.ts --separateAliasesFile --separateAliasesFileExtension=.ts --aliasImportFileExtension=.js --pretty=false", "build:package": "svelte-package --input ./src", "build:license": "node ./scripts/appendBlockComments.mts", - "test": "pnpm copy:license && pnpm build:icons && vitest run", + "test": "pnpm copy:license && pnpm copy:utils && pnpm build:icons && vitest run", "test:watch": "vitest watch", "version": "pnpm version --git-tag-version=false" }, @@ -61,7 +62,7 @@ "@lucide/helpers": "workspace:*", "@sveltejs/package": "^2.2.3", "@sveltejs/vite-plugin-svelte": "^2.4.2", - "@testing-library/jest-dom": "^6.6.3", + "@testing-library/jest-dom": "^6.8.0", "@testing-library/svelte": "^4.0.2", "@tsconfig/svelte": "^5.0.0", "jest-serializer-html": "^7.1.0", diff --git a/packages/lucide-svelte/src/Icon.svelte b/packages/lucide-svelte/src/Icon.svelte index 76f3e1f29..448726cd6 100644 --- a/packages/lucide-svelte/src/Icon.svelte +++ b/packages/lucide-svelte/src/Icon.svelte @@ -1,6 +1,8 @@ { expect(container.firstChild).toMatchSnapshot(); }); }); + +describe('Icon Component Accessibility', () => { + it('should have aria-hidden prop when no aria prop is present', async () => { + const { container } = render(Icon, { + props: { + iconNode: airVent, + size: 48, + color: 'red', + absoluteStrokeWidth: true, + }, + }); + + expect(container.firstChild).toHaveAttribute('aria-hidden', 'true'); + }); + + it('should not have aria-hidden prop when aria prop is present', async () => { + const { container } = render(Icon, { + props: { + iconNode: airVent, + size: 48, + color: 'red', + absoluteStrokeWidth: true, + 'aria-label': 'Air conditioning', + }, + }); + + expect(container.firstChild).not.toHaveAttribute('aria-hidden'); + }); + + it('should not have aria-hidden prop when title prop is present', async () => { + const { container } = render(Icon, { + props: { + iconNode: airVent, + size: 48, + color: 'red', + absoluteStrokeWidth: true, + title: 'Air conditioning', + }, + }); + + expect(container.firstChild).not.toHaveAttribute('aria-hidden'); + }); + + it('should never override aria-hidden prop', async () => { + const { container } = render(Icon, { + props: { + iconNode: airVent, + size: 48, + color: 'red', + absoluteStrokeWidth: true, + 'aria-hidden': 'false', + }, + }); + + expect(container.firstChild).toHaveAttribute('aria-hidden', 'false'); + }); +}); diff --git a/packages/lucide-svelte/tests/__snapshots__/Icon.spec.ts.snap b/packages/lucide-svelte/tests/__snapshots__/Icon.spec.ts.snap index 5cf3f49cc..b87a6bb81 100644 --- a/packages/lucide-svelte/tests/__snapshots__/Icon.spec.ts.snap +++ b/packages/lucide-svelte/tests/__snapshots__/Icon.spec.ts.snap @@ -2,6 +2,7 @@ exports[`Using Icon Component > should render icon and match snapshot 1`] = `
DigitalOcean Referral Badge +[//]: <> (Open Collective backers) ### Awesome backers 🍺 -Scipress sponsor badge -pdfme sponsor badge +pdfme – Open-source PDF generation library built with TypeScript and React. +Pax Historia – An alternate history sandbox game + +### Backers ☕ + +Fina Money – Modular Finance Tracker + +### Other contributors 💸 + +You can find all our past and non-recurring financial contributors at [our Open Collective page](https://opencollective.com/lucide-icons). diff --git a/packages/lucide-vue-next/package.json b/packages/lucide-vue-next/package.json index 5c3b9b255..165ca5182 100644 --- a/packages/lucide-vue-next/package.json +++ b/packages/lucide-vue-next/package.json @@ -46,7 +46,7 @@ "@lucide/build-icons": "workspace:*", "@lucide/rollup-plugins": "workspace:*", "@lucide/shared": "workspace:*", - "@testing-library/jest-dom": "^6.6.3", + "@testing-library/jest-dom": "^6.8.0", "@testing-library/vue": "^8.1.0", "@vitejs/plugin-vue": "^6.0.2", "@vue/test-utils": "2.4.6", @@ -54,7 +54,7 @@ "rollup-plugin-dts": "^6.2.3", "vite": "^7.2.4", "vitest": "^4.0.12", - "vue": "^3.4.21" + "vue": "^3.5.20" }, "peerDependencies": { "vue": ">=3.0.1" diff --git a/packages/lucide-vue-next/src/Icon.ts b/packages/lucide-vue-next/src/Icon.ts index 73c1037f1..bb2c8a8bd 100644 --- a/packages/lucide-vue-next/src/Icon.ts +++ b/packages/lucide-vue-next/src/Icon.ts @@ -1,5 +1,11 @@ import { type FunctionalComponent, h } from 'vue'; -import { mergeClasses, toKebabCase, toPascalCase, isEmptyString } from '@lucide/shared'; +import { + mergeClasses, + toKebabCase, + toPascalCase, + isEmptyString, + hasA11yProp, +} from '@lucide/shared'; import defaultAttributes from './defaultAttributes'; import { IconNode, LucideProps } from './types'; @@ -46,6 +52,7 @@ const Icon: FunctionalComponent = ( ? [`lucide-${toKebabCase(toPascalCase(name))}-icon`, `lucide-${toKebabCase(name)}`] : ['lucide-icon']), ), + ...(!slots.default && !hasA11yProp(props) && { 'aria-hidden': 'true' }), }, [...iconNode.map((child) => h(...child)), ...(slots.default ? [slots.default()] : [])], ); diff --git a/packages/lucide-vue-next/tests/Icon.spec.ts b/packages/lucide-vue-next/tests/Icon.spec.ts index 6546744ad..3c1e4c15e 100644 --- a/packages/lucide-vue-next/tests/Icon.spec.ts +++ b/packages/lucide-vue-next/tests/Icon.spec.ts @@ -31,3 +31,80 @@ describe('Using Icon Component', () => { expect(container.firstChild).toMatchSnapshot(); }); }); + +describe('Icon Component Accessibility', () => { + it('should have aria-hidden prop when no aria prop is present', async () => { + const { container } = render(Icon, { + props: { + iconNode: airVent, + size: 48, + color: 'red', + absoluteStrokeWidth: true, + }, + }); + + expect(container.firstChild).toHaveAttribute('aria-hidden', 'true'); + }); + + it('should not have aria-hidden prop when aria prop is present', async () => { + const { container } = render(Icon, { + props: { + iconNode: airVent, + size: 48, + color: 'red', + absoluteStrokeWidth: true, + 'aria-label': 'Air conditioning', + }, + }); + + expect(container.firstChild).not.toHaveAttribute('aria-hidden'); + }); + + it('should not have aria-hidden prop when title prop is present', async () => { + const { container } = render(Icon, { + props: { + iconNode: airVent, + size: 48, + color: 'red', + absoluteStrokeWidth: true, + title: 'Air conditioning', + }, + }); + + expect(container.firstChild).not.toHaveAttribute('aria-hidden'); + }); + + it('should not have aria-hidden prop when there are children that could be a element', async () => { + const template = { + name: 'Stub', + template: `<title>Some title`, + }; + const { container } = render(Icon, { + props: { + iconNode: airVent, + size: 48, + color: 'red', + absoluteStrokeWidth: true, + }, + slots: { + default: template, + }, + }); + + expect(container.firstChild).not.toHaveAttribute('aria-hidden'); + }); + + it('should never override aria-hidden prop', async () => { + const { container } = render(Icon, { + props: { + iconNode: airVent, + size: 48, + color: 'red', + absoluteStrokeWidth: true, + 'aria-hidden': false, + }, + }); + + expect(container.firstChild).toHaveAttribute('aria-hidden', 'false'); + }); +}); diff --git a/packages/lucide-vue-next/tests/__snapshots__/Icon.spec.ts.snap b/packages/lucide-vue-next/tests/__snapshots__/Icon.spec.ts.snap index 5e38eec07..ae7de76e2 100644 --- a/packages/lucide-vue-next/tests/__snapshots__/Icon.spec.ts.snap +++ b/packages/lucide-vue-next/tests/__snapshots__/Icon.spec.ts.snap @@ -2,6 +2,7 @@ exports[`Using Icon Component > should render icon and match snapshot 1`] = `
DigitalOcean Referral Badge +[//]: <> (Open Collective backers) ### Awesome backers 🍺 -Scipress sponsor badge -pdfme sponsor badge +pdfme – Open-source PDF generation library built with TypeScript and React. +Pax Historia – An alternate history sandbox game + +### Backers ☕ + +Fina Money – Modular Finance Tracker + +### Other contributors 💸 + +You can find all our past and non-recurring financial contributors at [our Open Collective page](https://opencollective.com/lucide-icons). diff --git a/packages/lucide/package.json b/packages/lucide/package.json index c725532ef..0dca00169 100644 --- a/packages/lucide/package.json +++ b/packages/lucide/package.json @@ -44,9 +44,10 @@ }, "devDependencies": { "@lucide/build-icons": "workspace:*", + "@lucide/shared": "workspace:*", "@lucide/rollup-plugins": "workspace:*", "@rollup/plugin-replace": "^6.0.2", - "@testing-library/jest-dom": "^6.6.3", + "@testing-library/jest-dom": "^6.8.0", "jest-serializer-html": "^7.1.0", "rollup": "^4.53.3", "rollup-plugin-dts": "^6.2.3", diff --git a/packages/lucide/src/replaceElement.ts b/packages/lucide/src/replaceElement.ts index a0adacc52..69ba89712 100644 --- a/packages/lucide/src/replaceElement.ts +++ b/packages/lucide/src/replaceElement.ts @@ -1,6 +1,7 @@ import createElement from './createElement'; import defaultAttributes from './defaultAttributes'; import { Icons, SVGProps } from './types'; +import { hasA11yProp, mergeClasses, toPascalCase } from '@lucide/shared'; export type CustomAttrs = { [attr: string]: any }; @@ -34,26 +35,6 @@ export const getClassNames = ( return ''; }; -/** - * Combines the classNames of array of classNames to a String - * @param {array} arrayOfClassnames - * @returns {string} - */ -export const combineClassNames = ( - arrayOfClassnames: (string | Record)[], -) => { - const classNameArray = arrayOfClassnames.flatMap(getClassNames); - - return classNameArray - .map((classItem) => classItem.trim()) - .filter(Boolean) - .filter((value, index, self) => self.indexOf(value) === index) - .join(' '); -}; - -const toPascalCase = (string: string): string => - string.replace(/(\w)(\w*)(_|-|\s*)/g, (g0, g1, g2) => g1.toUpperCase() + g2.toLowerCase()); - interface ReplaceElementOptions { nameAttr: string; icons: Icons; @@ -83,14 +64,25 @@ const replaceElement = (element: Element, { nameAttr, icons, attrs }: ReplaceEle const elementAttrs = getAttrs(element); + const ariaProps = hasA11yProp(elementAttrs) ? {} : { 'aria-hidden': 'true' }; + const iconAttrs = { ...defaultAttributes, 'data-lucide': iconName, + ...ariaProps, ...attrs, ...elementAttrs, - }; + } satisfies SVGProps; - const classNames = combineClassNames(['lucide', `lucide-${iconName}`, elementAttrs, attrs]); + const elementClassNames = getClassNames(elementAttrs); + const className = getClassNames(attrs); + + const classNames = mergeClasses( + 'lucide', + `lucide-${iconName}`, + ...elementClassNames, + ...className, + ); if (classNames) { Object.assign(iconAttrs, { diff --git a/packages/lucide/src/types.ts b/packages/lucide/src/types.ts index e0c21d63f..891bcdf20 100644 --- a/packages/lucide/src/types.ts +++ b/packages/lucide/src/types.ts @@ -1,5 +1,5 @@ // className is not supported in svg elements -export type SVGProps = Record; +export type SVGProps = Record; export type IconNode = [tag: string, attrs: SVGProps][]; export type Icons = { [key: string]: IconNode }; diff --git a/packages/lucide/tests/__snapshots__/lucide.spec.ts.snap b/packages/lucide/tests/__snapshots__/lucide.spec.ts.snap index 16fd120aa..10e6b47bd 100644 --- a/packages/lucide/tests/__snapshots__/lucide.spec.ts.snap +++ b/packages/lucide/tests/__snapshots__/lucide.spec.ts.snap @@ -11,6 +11,7 @@ exports[`createIcons > should add custom attributes 1`] = ` stroke-linecap="round" stroke-linejoin="round" data-lucide="volume-2" + aria-hidden="true" class="lucide lucide-volume-2 icon custom-class" > @@ -33,6 +34,7 @@ exports[`createIcons > should read elements from DOM and replace icon with alias stroke-linecap="round" stroke-linejoin="round" data-lucide="grid" + aria-hidden="true" class="lucide lucide-grid" > should read elements from DOM and replace it with icons 1 stroke-linecap="round" stroke-linejoin="round" data-lucide="volume-2" + aria-hidden="true" class="lucide lucide-volume-2" > diff --git a/packages/lucide/tests/__snapshots__/replaceElement.spec.ts.snap b/packages/lucide/tests/__snapshots__/replaceElement.spec.ts.snap deleted file mode 100644 index 7a975d7b3..000000000 --- a/packages/lucide/tests/__snapshots__/replaceElement.spec.ts.snap +++ /dev/null @@ -1,3 +0,0 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html - -exports[`combineClassNames > should returns a string of classNames 1`] = `"item item1 item2 item3 item4 item5 item6 item7 item8 item9"`; diff --git a/packages/lucide/tests/helpers.ts b/packages/lucide/tests/helpers.ts index 1e8e90fcd..cb5bcc755 100644 --- a/packages/lucide/tests/helpers.ts +++ b/packages/lucide/tests/helpers.ts @@ -10,6 +10,7 @@ export const getOriginalSvg = (iconName: string, aliasName?: string, setAttrs = if (setAttrs) { svgParsed.attributes['data-lucide'] = aliasName ?? iconName; + svgParsed.attributes['aria-hidden'] = 'true'; svgParsed.attributes['class'] = `lucide lucide-${aliasName ?? iconName}`; } diff --git a/packages/lucide/tests/lucide.spec.ts b/packages/lucide/tests/lucide.spec.ts index 89e1eedf9..e58dc9944 100644 --- a/packages/lucide/tests/lucide.spec.ts +++ b/packages/lucide/tests/lucide.spec.ts @@ -54,20 +54,12 @@ describe('createIcons', () => { createIcons({ icons, attrs }); const element = document.querySelector('svg') as SVGSVGElement; - const attributes = element.getAttributeNames(); - - const attributesAndValues = attributes.reduce( - (acc, item) => { - acc[item] = element.getAttribute(item); - - return acc; - }, - {} as Record, - ); expect(document.body.innerHTML).toMatchSnapshot(); - expect(attributesAndValues).toEqual(expect.objectContaining(attrs)); + for (const [name, value] of Object.entries(attrs)) { + expect(element).toHaveAttribute(name, value); + } }); it('should inherit elements attributes', () => { @@ -75,23 +67,16 @@ describe('createIcons', () => { const attrs = { 'data-theme-switcher': 'light', + 'aria-hidden': 'true', }; createIcons({ icons }); const element = document.querySelector('svg') as SVGSVGElement; - const attributes = element.getAttributeNames(); - const attributesAndValues = attributes.reduce( - (acc, item) => { - acc[item] = element.getAttribute(item); - - return acc; - }, - {} as Record, - ); - - expect(attributesAndValues).toEqual(expect.objectContaining(attrs)); + for (const [name, value] of Object.entries(attrs)) { + expect(element).toHaveAttribute(name, value); + } }); it('should read elements from DOM and replace icon with alias name', () => { @@ -105,6 +90,27 @@ describe('createIcons', () => { expect(document.body.innerHTML).toMatchSnapshot(); }); + it('should add aria-hidden attribute when no a11y props are present', () => { + document.body.innerHTML = ``; + + createIcons({ icons }); + + const element = document.querySelector('svg') as SVGSVGElement; + + expect(element).toHaveAttribute('aria-hidden', 'true'); + }); + + it('should not add aria-hidden attribute when a11y props are present', () => { + document.body.innerHTML = ``; + + createIcons({ icons }); + + const element = document.querySelector('svg') as SVGSVGElement; + + expect(element).not.toHaveAttribute('aria-hidden'); + expect(element).toHaveAttribute('aria-label', 'Volume'); + }); + it('should not replace icons inside template elements by default', () => { document.body.innerHTML = ``; diff --git a/packages/lucide/tests/replaceElement.spec.ts b/packages/lucide/tests/replaceElement.spec.ts index 16d2742ab..5730e633a 100644 --- a/packages/lucide/tests/replaceElement.spec.ts +++ b/packages/lucide/tests/replaceElement.spec.ts @@ -1,5 +1,5 @@ import { describe, it, expect } from 'vitest'; -import { getAttrs, getClassNames, combineClassNames } from '../src/replaceElement'; +import { getAttrs, getClassNames } from '../src/replaceElement'; describe('getAtts', () => { it('should returns attrbrutes of an element', () => { @@ -41,24 +41,3 @@ describe('getClassNames', () => { expect(JSON.stringify(attrs)).toBe(JSON.stringify(['item1', 'item2', 'item3'])); }); }); - -describe('combineClassNames', () => { - it('should returns a string of classNames', () => { - const arrayOfClassnames: (string | Record)[] = [ - 'item', - { - class: ['item1', 'item2', 'item3'], - }, - { - class: ['item4', 'item5', 'item6'], - }, - { - class: ['item7', 'item8', 'item9'], - }, - ]; - - const combinedClassNames = combineClassNames(arrayOfClassnames); - - expect(combinedClassNames).toMatchSnapshot(); - }); -}); diff --git a/packages/shared/src/index.ts b/packages/shared/src/index.ts index e1a819918..ca8a3aa23 100644 --- a/packages/shared/src/index.ts +++ b/packages/shared/src/index.ts @@ -1,2 +1,7 @@ -export * from './utils'; +export * from './utils/hasA11yProp'; +export * from './utils/isEmptyString'; +export * from './utils/mergeClasses'; +export * from './utils/toCamelCase'; +export * from './utils/toKebabCase'; +export * from './utils/toPascalCase'; export * from './utility-types'; diff --git a/packages/shared/src/utils.ts b/packages/shared/src/utils.ts deleted file mode 100644 index 350bbf935..000000000 --- a/packages/shared/src/utils.ts +++ /dev/null @@ -1,73 +0,0 @@ -import { CamelToPascal } from './utility-types'; - -/** - * Converts string to kebab case - * - * @param {string} string - * @returns {string} A kebabized string - */ -export const toKebabCase = (string: string) => - string.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase(); - -/** - * Converts string to camel case - * - * @param {string} string - * @returns {string} A camelized string - */ -export const toCamelCase = (string: T) => - string.replace(/^([A-Z])|[\s-_]+(\w)/g, (match, p1, p2) => - p2 ? p2.toUpperCase() : p1.toLowerCase(), - ); - -/** - * Converts string to pascal case - * - * @param {string} string - * @returns {string} A pascalized string - */ -export const toPascalCase = (string: T): CamelToPascal => { - const camelCase = toCamelCase(string); - - return (camelCase.charAt(0).toUpperCase() + camelCase.slice(1)) as CamelToPascal; -}; - -/** - * Merges classes into a single string - * - * @param {array} classes - * @returns {string} A string of classes - */ -export const mergeClasses = (...classes: ClassType[]) => - classes - .filter((className, index, array) => { - return ( - Boolean(className) && - (className as string).trim() !== '' && - array.indexOf(className) === index - ); - }) - .join(' ') - .trim(); - -/** - * Is empty string - * - * @param {unknown} value - * @returns {boolean} Whether the value is an empty string - */ -export const isEmptyString = (value: unknown): boolean => value === ''; - -/** - * Check if a component has an accessibility prop - * - * @param {object} props - * @returns {boolean} Whether the component has an accessibility prop - */ -export const hasA11yProp = (props: Record) => { - for (const prop in props) { - if (prop.startsWith('aria-') || prop === 'role' || prop === 'title') { - return true; - } - } -}; diff --git a/packages/shared/src/utils/hasA11yProp.ts b/packages/shared/src/utils/hasA11yProp.ts new file mode 100644 index 000000000..b263bf8b0 --- /dev/null +++ b/packages/shared/src/utils/hasA11yProp.ts @@ -0,0 +1,15 @@ +/** + * Check if a component has an accessibility prop + * + * @param {object} props + * @returns {boolean} Whether the component has an accessibility prop + */ +export const hasA11yProp = (props: Record) => { + for (const prop in props) { + if (prop.startsWith('aria-') || prop === 'role' || prop === 'title') { + return true; + } + } + + return false; +}; diff --git a/packages/shared/src/utils/isEmptyString.ts b/packages/shared/src/utils/isEmptyString.ts new file mode 100644 index 000000000..0ee768f6e --- /dev/null +++ b/packages/shared/src/utils/isEmptyString.ts @@ -0,0 +1,7 @@ +/** + * Is empty string + * + * @param {unknown} value + * @returns {boolean} Whether the value is an empty string + */ +export const isEmptyString = (value: unknown): boolean => value === ''; diff --git a/packages/astro/src/utils.ts b/packages/shared/src/utils/mergeClasses.ts similarity index 60% rename from packages/astro/src/utils.ts rename to packages/shared/src/utils/mergeClasses.ts index beaa30758..9dfc54cdd 100644 --- a/packages/astro/src/utils.ts +++ b/packages/shared/src/utils/mergeClasses.ts @@ -1,21 +1,10 @@ -/** - * Converts string to kebab case - * - * @param {string} string - * @returns {string} A kebabized string - */ -export const toKebabCase = (string: string): string => - string.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase(); - /** * Merges classes into a single string * * @param {array} classes * @returns {string} A string of classes */ -export const mergeClasses = ( - ...classes: ClassType[] -): string => +export const mergeClasses = (...classes: ClassType[]) => classes .filter((className, index, array) => { return ( diff --git a/packages/shared/src/utils/toCamelCase.ts b/packages/shared/src/utils/toCamelCase.ts new file mode 100644 index 000000000..52ade7dbd --- /dev/null +++ b/packages/shared/src/utils/toCamelCase.ts @@ -0,0 +1,10 @@ +/** + * Converts string to camel case + * + * @param {string} string + * @returns {string} A camelized string + */ +export const toCamelCase = (string: T) => + string.replace(/^([A-Z])|[\s-_]+(\w)/g, (match, p1, p2) => + p2 ? p2.toUpperCase() : p1.toLowerCase(), + ); diff --git a/packages/shared/src/utils/toKebabCase.ts b/packages/shared/src/utils/toKebabCase.ts new file mode 100644 index 000000000..4db12960a --- /dev/null +++ b/packages/shared/src/utils/toKebabCase.ts @@ -0,0 +1,8 @@ +/** + * Converts string to kebab case + * + * @param {string} string + * @returns {string} A kebabized string + */ +export const toKebabCase = (string: string) => + string.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase(); diff --git a/packages/shared/src/utils/toPascalCase.ts b/packages/shared/src/utils/toPascalCase.ts new file mode 100644 index 000000000..c67f9dc35 --- /dev/null +++ b/packages/shared/src/utils/toPascalCase.ts @@ -0,0 +1,14 @@ +import { CamelToPascal } from '../utility-types'; +import { toCamelCase } from './toCamelCase'; + +/** + * Converts string to pascal case + * + * @param {string} string + * @returns {string} A pascalized string + */ +export const toPascalCase = (string: T): CamelToPascal => { + const camelCase = toCamelCase(string); + + return (camelCase.charAt(0).toUpperCase() + camelCase.slice(1)) as CamelToPascal; +}; diff --git a/packages/shared/tests/hasA11yProp.spec.ts b/packages/shared/tests/hasA11yProp.spec.ts new file mode 100644 index 000000000..ea71ed047 --- /dev/null +++ b/packages/shared/tests/hasA11yProp.spec.ts @@ -0,0 +1,30 @@ +import { describe, it, expect } from 'vitest'; +import { hasA11yProp } from '../src/utils/hasA11yProp'; + +describe('hasA11yProp', () => { + it('returns true if props contain an aria- attribute', () => { + expect(hasA11yProp({ 'aria-label': 'Close' })).toBe(true); + expect(hasA11yProp({ 'aria-hidden': true })).toBe(true); + }); + + it('returns true if props contain a role attribute', () => { + expect(hasA11yProp({ role: 'button' })).toBe(true); + }); + + it('returns true if props contain a title attribute', () => { + expect(hasA11yProp({ title: 'Icon' })).toBe(true); + }); + + it('returns false if props do not contain any a11y attributes', () => { + expect(hasA11yProp({ className: 'foo', id: 'bar' })).toBe(false); + expect(hasA11yProp({})).toBe(false); + }); + + it('returns true if multiple a11y props are present', () => { + expect(hasA11yProp({ 'aria-label': 'Close', role: 'button', title: 'Close icon' })).toBe(true); + }); + + it('returns true if a11y prop is present among other props', () => { + expect(hasA11yProp({ className: 'foo', 'aria-label': 'Close' })).toBe(true); + }); +}); diff --git a/packages/shared/tests/isEmptyString.spec.ts b/packages/shared/tests/isEmptyString.spec.ts new file mode 100644 index 000000000..8c714f720 --- /dev/null +++ b/packages/shared/tests/isEmptyString.spec.ts @@ -0,0 +1,46 @@ +import { describe, it, expect } from 'vitest'; +import { isEmptyString } from '../src/utils/isEmptyString'; + +describe('isEmptyString', () => { + it('should return true for an empty string', () => { + expect(isEmptyString('')).toBe(true); + }); + + it('should return false for a non-empty string', () => { + expect(isEmptyString('hello')).toBe(false); + expect(isEmptyString(' ')).toBe(false); + expect(isEmptyString('0')).toBe(false); + }); + + it('should return false for null', () => { + expect(isEmptyString(null)).toBe(false); + }); + + it('should return false for undefined', () => { + expect(isEmptyString(undefined)).toBe(false); + }); + + it('should return false for numbers', () => { + expect(isEmptyString(0)).toBe(false); + expect(isEmptyString(123)).toBe(false); + expect(isEmptyString(NaN)).toBe(false); + }); + + it('should return false for objects', () => { + expect(isEmptyString({})).toBe(false); + expect(isEmptyString([])).toBe(false); + }); + + it('should return false for boolean values', () => { + expect(isEmptyString(true)).toBe(false); + expect(isEmptyString(false)).toBe(false); + }); + + it('should return false for symbols', () => { + expect(isEmptyString(Symbol())).toBe(false); + }); + + it('should return false for functions', () => { + expect(isEmptyString(() => {})).toBe(false); + }); +}); diff --git a/packages/shared/tests/utils.spec.tsx b/packages/shared/tests/mergeClasses.spec.ts similarity index 94% rename from packages/shared/tests/utils.spec.tsx rename to packages/shared/tests/mergeClasses.spec.ts index 796a015d4..084b786f5 100644 --- a/packages/shared/tests/utils.spec.tsx +++ b/packages/shared/tests/mergeClasses.spec.ts @@ -1,5 +1,5 @@ import { describe, it, expect } from 'vitest'; -import { mergeClasses } from '../src/utils'; +import { mergeClasses } from '../src/utils/mergeClasses'; describe('mergeClasses', () => { it('merges classes', async () => { diff --git a/packages/shared/tests/toCamelCase.spec.ts b/packages/shared/tests/toCamelCase.spec.ts new file mode 100644 index 000000000..95006c969 --- /dev/null +++ b/packages/shared/tests/toCamelCase.spec.ts @@ -0,0 +1,41 @@ +import { describe, it, expect } from 'vitest'; +import { toCamelCase } from '../src/utils/toCamelCase'; + +describe('toCamelCase', () => { + it('should convert kebab-case to camelCase', () => { + expect(toCamelCase('hello-world')).toBe('helloWorld'); + expect(toCamelCase('foo-bar-baz')).toBe('fooBarBaz'); + }); + + it('should convert snake_case to camelCase', () => { + expect(toCamelCase('hello_world')).toBe('helloWorld'); + expect(toCamelCase('foo_bar_baz')).toBe('fooBarBaz'); + }); + + it('should convert space separated to camelCase', () => { + expect(toCamelCase('hello world')).toBe('helloWorld'); + expect(toCamelCase('foo bar baz')).toBe('fooBarBaz'); + }); + + it('should handle mixed separators', () => { + expect(toCamelCase('hello-world_foo bar')).toBe('helloWorldFooBar'); + }); + + it('should lowercase the first character if uppercase', () => { + expect(toCamelCase('HelloWorld')).toBe('helloWorld'); + expect(toCamelCase('Hello-World')).toBe('helloWorld'); + }); + + it('should return the same string if already camelCase', () => { + expect(toCamelCase('alreadyCamelCase')).toBe('alreadyCamelCase'); + }); + + it('should handle single word', () => { + expect(toCamelCase('word')).toBe('word'); + expect(toCamelCase('Word')).toBe('word'); + }); + + it('should handle empty string', () => { + expect(toCamelCase('')).toBe(''); + }); +}); diff --git a/packages/shared/tests/toKebabCase.spec.ts b/packages/shared/tests/toKebabCase.spec.ts new file mode 100644 index 000000000..6aa18b95d --- /dev/null +++ b/packages/shared/tests/toKebabCase.spec.ts @@ -0,0 +1,28 @@ +import { describe, it, expect } from 'vitest'; +import { toKebabCase } from '../src/utils/toKebabCase'; + +describe('toKebabCase', () => { + it('should convert camelCase to kebab-case', () => { + expect(toKebabCase('camelCase')).toBe('camel-case'); + }); + + it('should convert PascalCase to kebab-case', () => { + expect(toKebabCase('PascalCase')).toBe('pascal-case'); + }); + + it('should handle strings with numbers', () => { + expect(toKebabCase('test123String')).toBe('test123-string'); + }); + + it('should handle already kebab-case strings', () => { + expect(toKebabCase('already-kebab-case')).toBe('already-kebab-case'); + }); + + it('should handle single lowercase word', () => { + expect(toKebabCase('word')).toBe('word'); + }); + + it('should handle empty string', () => { + expect(toKebabCase('')).toBe(''); + }); +}); diff --git a/packages/shared/tests/toPascalCase.spec.ts b/packages/shared/tests/toPascalCase.spec.ts new file mode 100644 index 000000000..77282fee3 --- /dev/null +++ b/packages/shared/tests/toPascalCase.spec.ts @@ -0,0 +1,36 @@ +import { describe, it, expect } from 'vitest'; +import { toPascalCase } from '../src/utils/toPascalCase'; + +describe('toPascalCase', () => { + it('should convert kebab-case to PascalCase', () => { + expect(toPascalCase('hello-world')).toBe('HelloWorld'); + }); + + it('should convert snake_case to PascalCase', () => { + expect(toPascalCase('hello_world')).toBe('HelloWorld'); + }); + + it('should convert camelCase to PascalCase', () => { + expect(toPascalCase('helloWorld')).toBe('HelloWorld'); + }); + + it('should convert already PascalCase to PascalCase', () => { + expect(toPascalCase('HelloWorld')).toBe('HelloWorld'); + }); + + it('should handle single word', () => { + expect(toPascalCase('hello')).toBe('Hello'); + }); + + it('should handle empty string', () => { + expect(toPascalCase('')).toBe(''); + }); + + it('should handle strings with multiple delimiters', () => { + expect(toPascalCase('hello-world_test')).toBe('HelloWorldTest'); + }); + + it('should handle strings with spaces', () => { + expect(toPascalCase('hello world')).toBe('HelloWorld'); + }); +}); diff --git a/packages/svelte/README.md b/packages/svelte/README.md index 806eb3fa1..42c2a6736 100644 --- a/packages/svelte/README.md +++ b/packages/svelte/README.md @@ -67,7 +67,16 @@ Lucide is licensed under the ISC license. See [LICENSE](https://lucide.dev/licen DigitalOcean Referral Badge +[//]: <> (Open Collective backers) ### Awesome backers 🍺 -Scipress sponsor badge -pdfme sponsor badge +pdfme – Open-source PDF generation library built with TypeScript and React. +Pax Historia – An alternate history sandbox game + +### Backers ☕ + +Fina Money – Modular Finance Tracker + +### Other contributors 💸 + +You can find all our past and non-recurring financial contributors at [our Open Collective page](https://opencollective.com/lucide-icons). diff --git a/packages/svelte/package.json b/packages/svelte/package.json index 1543baedc..6eac83f31 100644 --- a/packages/svelte/package.json +++ b/packages/svelte/package.json @@ -48,26 +48,27 @@ "scripts": { "build": "pnpm clean && pnpm copy:license && pnpm build:icons && pnpm build:package && pnpm build:license", "copy:license": "cp ../../LICENSE ./LICENSE", + "copy:utils": "mkdir -p ./src/utils && cp -rf ../../packages/shared/src/utils/hasA11yProp.ts ./src/utils/", "clean": "rm -rf dist stats ./src/icons/*.{ts,svelte} ./src/aliases/{aliases,prefixed,suffixed}.ts", "build:icons": "build-icons --output=./src --templateSrc=./scripts/exportTemplate.mts --exportFileName=index.ts --iconFileExtension=.svelte --importImportFileExtension=.svelte --separateIconFileExport --separateIconFileExportExtension=.ts --withAliases --aliasesFileExtension=.ts --separateAliasesFile --separateAliasesFileExtension=.ts --aliasImportFileExtension=.js --pretty=false", "build:package": "svelte-package --input ./src", "build:license": "node ./scripts/appendBlockComments.mts", - "test": "pnpm copy:license && pnpm build:icons && vitest run", + "test": "pnpm copy:license && pnpm copy:utils && pnpm build:icons && vitest run", "test:watch": "vitest watch", "version": "pnpm version --git-tag-version=false" }, "devDependencies": { "@lucide/build-icons": "workspace:*", "@lucide/helpers": "workspace:*", - "@sveltejs/package": "^2.3.10", - "@sveltejs/vite-plugin-svelte": "^5.0.3", - "@testing-library/jest-dom": "^6.6.3", - "@testing-library/svelte": "^5.2.7", + "@sveltejs/package": "^2.5.0", + "@sveltejs/vite-plugin-svelte": "^6.1.3", + "@testing-library/jest-dom": "^6.8.0", + "@testing-library/svelte": "^5.2.8", "@tsconfig/svelte": "^5.0.4", "jest-serializer-html": "^7.1.0", "jsdom": "^20.0.3", - "svelte": "^5.20.5", - "svelte-check": "^4.1.4", + "svelte": "^5.38.6", + "svelte-check": "^4.3.1", "svelte-preprocess": "^6.0.3", "typescript": "^5.8.3", "vite": "^6.3.6", diff --git a/packages/svelte/src/Icon.svelte b/packages/svelte/src/Icon.svelte index 5e43335e4..1b6a5bbbd 100644 --- a/packages/svelte/src/Icon.svelte +++ b/packages/svelte/src/Icon.svelte @@ -1,6 +1,7 @@ + + + Air conditioning + diff --git a/packages/svelte/tests/__snapshots__/Icon.spec.ts.snap b/packages/svelte/tests/__snapshots__/Icon.spec.ts.snap index 8ba10f53e..659763fc7 100644 --- a/packages/svelte/tests/__snapshots__/Icon.spec.ts.snap +++ b/packages/svelte/tests/__snapshots__/Icon.spec.ts.snap @@ -2,6 +2,7 @@ exports[`Using Icon Component > should render icon and match snapshot 1`] = ` DigitalOcean Referral Badge +[//]: <> (Open Collective backers) ### Awesome backers 🍺 -Scipress sponsor badge -pdfme sponsor badge +pdfme – Open-source PDF generation library built with TypeScript and React. +Pax Historia – An alternate history sandbox game + +### Backers ☕ + +Fina Money – Modular Finance Tracker + +### Other contributors 💸 + +You can find all our past and non-recurring financial contributors at [our Open Collective page](https://opencollective.com/lucide-icons). diff --git a/packages/vue/package.json b/packages/vue/package.json index 09ca40d5a..88dab8202 100644 --- a/packages/vue/package.json +++ b/packages/vue/package.json @@ -45,10 +45,11 @@ "@lucide/build-icons": "workspace:*", "@lucide/rollup-plugins": "workspace:*", "@lucide/shared": "workspace:*", - "@testing-library/jest-dom": "^6.6.3", + "@testing-library/jest-dom": "^6.8.0", "@testing-library/vue": "^8.1.0", "@vitejs/plugin-vue": "^4.6.2", "@vue/test-utils": "2.4.5", + "@vitejs/plugin-vue2": "2.2.0", "rollup": "^4.53.3", "rollup-plugin-dts": "^6.1.0", "typescript": "^5.8.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 86ed1cd4a..87bd2a535 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -140,11 +140,11 @@ importers: specifier: ^3.10.1 version: 3.10.1 lodash: - specifier: ^4.17.21 - version: 4.17.21 + specifier: ^4.17.23 + version: 4.17.23 lodash-es: - specifier: ^4.17.21 - version: 4.17.21 + specifier: ^4.17.23 + version: 4.17.23 lucide-react: specifier: workspace:* version: link:../packages/lucide-react @@ -222,7 +222,7 @@ importers: specifier: ^10.4.0 version: 10.4.1 '@testing-library/jest-dom': - specifier: ^6.6.3 + specifier: ^6.8.0 version: 6.9.1 astro: specifier: ^5.16.0 @@ -232,7 +232,7 @@ importers: version: 7.1.0 linkedom: specifier: ^0.18.5 - version: 0.18.12 + version: 0.18.11 prettier: specifier: ^3.4.2 version: 3.6.2 @@ -254,11 +254,14 @@ importers: '@lucide/rollup-plugins': specifier: workspace:* version: link:../../tools/rollup-plugins + '@lucide/shared': + specifier: workspace:* + version: link:../shared '@rollup/plugin-replace': specifier: ^6.0.2 version: 6.0.3(rollup@4.53.3) '@testing-library/jest-dom': - specifier: ^6.6.3 + specifier: ^6.8.0 version: 6.9.1 jest-serializer-html: specifier: ^7.1.0 @@ -400,7 +403,7 @@ importers: specifier: ^2.10.2 version: 2.10.2(@babel/core@7.28.5)(preact@10.28.2)(vite@7.2.4(@types/node@24.10.1)(jiti@2.6.1)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.44.1)(yaml@2.8.0)) '@testing-library/jest-dom': - specifier: ^6.6.3 + specifier: ^6.8.0 version: 6.9.1 '@testing-library/preact': specifier: ^3.2.3 @@ -439,7 +442,7 @@ importers: specifier: workspace:* version: link:../shared '@testing-library/jest-dom': - specifier: ^6.6.3 + specifier: ^6.8.0 version: 6.9.1 '@testing-library/react': specifier: ^14.1.2 @@ -490,7 +493,7 @@ importers: specifier: workspace:* version: link:../shared '@testing-library/jest-dom': - specifier: ^6.6.3 + specifier: ^6.8.0 version: 6.9.1 '@testing-library/react': specifier: ^14.1.2 @@ -562,7 +565,7 @@ importers: specifier: ^0.8.10 version: 0.8.10(@solidjs/router@0.11.5(solid-js@1.9.10))(solid-js@1.9.10) '@testing-library/jest-dom': - specifier: ^6.6.3 + specifier: ^6.8.0 version: 6.9.1 babel-preset-solid: specifier: ^1.8.12 @@ -634,7 +637,7 @@ importers: specifier: ^2.4.2 version: 2.5.3(svelte@4.2.20)(vite@7.2.4(@types/node@24.10.1)(jiti@2.6.1)(less@4.2.0)(sass@1.77.8)(terser@5.44.1)(yaml@2.8.0)) '@testing-library/jest-dom': - specifier: ^6.6.3 + specifier: ^6.8.0 version: 6.9.1 '@testing-library/svelte': specifier: ^4.0.2 @@ -679,7 +682,7 @@ importers: specifier: workspace:* version: link:../shared '@testing-library/jest-dom': - specifier: ^6.6.3 + specifier: ^6.8.0 version: 6.9.1 '@testing-library/vue': specifier: ^8.1.0 @@ -703,7 +706,7 @@ importers: specifier: ^4.0.12 version: 4.0.12(@types/debug@4.1.12)(@types/node@24.10.1)(jiti@2.6.1)(jsdom@20.0.3)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.44.1)(yaml@2.8.0) vue: - specifier: ^3.4.21 + specifier: ^3.5.20 version: 3.5.24(typescript@5.9.3) packages/shared: @@ -724,16 +727,16 @@ importers: specifier: workspace:* version: link:../../tools/build-helpers '@sveltejs/package': - specifier: ^2.3.10 + specifier: ^2.5.0 version: 2.5.6(svelte@5.43.14)(typescript@5.9.3) '@sveltejs/vite-plugin-svelte': - specifier: ^5.0.3 - version: 5.1.1(svelte@5.43.14)(vite@6.4.1(@types/node@24.10.1)(jiti@2.6.1)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.44.1)(yaml@2.8.0)) + specifier: ^6.1.3 + version: 6.2.4(svelte@5.43.14)(vite@6.4.1(@types/node@24.10.1)(jiti@2.6.1)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.44.1)(yaml@2.8.0)) '@testing-library/jest-dom': - specifier: ^6.6.3 + specifier: ^6.8.0 version: 6.9.1 '@testing-library/svelte': - specifier: ^5.2.7 + specifier: ^5.2.8 version: 5.2.9(svelte@5.43.14)(vite@6.4.1(@types/node@24.10.1)(jiti@2.6.1)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.44.1)(yaml@2.8.0))(vitest@4.0.12(@types/debug@4.1.12)(@types/node@24.10.1)(jiti@2.6.1)(jsdom@20.0.3)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.44.1)(yaml@2.8.0)) '@tsconfig/svelte': specifier: ^5.0.4 @@ -745,10 +748,10 @@ importers: specifier: ^20.0.3 version: 20.0.3 svelte: - specifier: ^5.20.5 + specifier: ^5.38.6 version: 5.43.14 svelte-check: - specifier: ^4.1.4 + specifier: ^4.3.1 version: 4.3.4(picomatch@4.0.3)(svelte@5.43.14)(typescript@5.9.3) svelte-preprocess: specifier: ^6.0.3 @@ -775,7 +778,7 @@ importers: specifier: workspace:* version: link:../shared '@testing-library/jest-dom': - specifier: ^6.6.3 + specifier: ^6.8.0 version: 6.9.1 '@testing-library/vue': specifier: ^8.1.0 @@ -783,6 +786,9 @@ importers: '@vitejs/plugin-vue': specifier: ^4.6.2 version: 4.6.2(vite@7.2.4(@types/node@24.10.1)(jiti@2.6.1)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.44.1)(yaml@2.8.0))(vue@3.5.24(typescript@5.9.3)) + '@vitejs/plugin-vue2': + specifier: 2.2.0 + version: 2.2.0(vite@7.2.4(@types/node@24.10.1)(jiti@2.6.1)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.44.1)(yaml@2.8.0))(vue@3.5.24(typescript@5.9.3)) '@vue/test-utils': specifier: 2.4.5 version: 2.4.5 @@ -1178,6 +1184,10 @@ packages: resolution: {integrity: sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==} engines: {node: '>=6.9.0'} + '@babel/code-frame@7.28.6': + resolution: {integrity: sha512-JYgintcMjRiCvS8mMECzaEn+m3PfoQiyqukOMCCVQtoJGYJw8j/8LBJEiqkHLkfwCcs74E3pbAUFNg7d9VNJ+Q==} + engines: {node: '>=6.9.0'} + '@babel/compat-data@7.26.8': resolution: {integrity: sha512-oH5UPLMWR3L2wEFLnFJ1TZXqHufiTKAiLfqw5zkhS4dKXLJ10yVztfil/twG8EDTA4F/tvVNw9nOl4ZMslB8rQ==} engines: {node: '>=6.9.0'} @@ -1222,6 +1232,10 @@ packages: resolution: {integrity: sha512-3EwLFhZ38J4VyIP6WNtt2kUdW9dokXA9Cr4IVIFHuCpZ3H8/YFOl5JjZHisrn1fATPBmKKqXzDFvh9fUwHz6CQ==} engines: {node: '>=6.9.0'} + '@babel/generator@7.28.6': + resolution: {integrity: sha512-lOoVRwADj8hjf7al89tvQ2a1lf53Z+7tiXMgpZJL3maQPDxh0DgLMN62B2MKUOFcoodBHLMbDM6WAbKgNy5Suw==} + engines: {node: '>=6.9.0'} + '@babel/helper-annotate-as-pure@7.16.7': resolution: {integrity: sha512-s6t2w/IPQVTAET1HitoowRGXooX8mCgtuP5195wD/QJPV6wYjpujCGF7JuMODVX2ZAJOf1GT6DT9MHEZvLOFSw==} engines: {node: '>=6.9.0'} @@ -1400,10 +1414,6 @@ packages: resolution: {integrity: sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==} engines: {node: '>=6.9.0'} - '@babel/helper-validator-identifier@7.25.9': - resolution: {integrity: sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==} - engines: {node: '>=6.9.0'} - '@babel/helper-validator-identifier@7.27.1': resolution: {integrity: sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==} engines: {node: '>=6.9.0'} @@ -1436,8 +1446,8 @@ packages: resolution: {integrity: sha512-/V9771t+EgXz62aCcyofnQhGM8DQACbRhvzKFsXKC9QM+5MadF8ZmIm0crDMaz3+o0h0zXfJnd4EhbYbxsrcFw==} engines: {node: '>=6.9.0'} - '@babel/helpers@7.28.4': - resolution: {integrity: sha512-HFN59MmQXGHVyYadKLVumYsA9dBFun/ldYxipEjzA4196jpLZd8UjEEBLkbEkvfYreDqJhZxYAWFPtrfhNpj4w==} + '@babel/helpers@7.28.6': + resolution: {integrity: sha512-xOBvwq86HHdB7WUDTfKfT/Vuxh7gElQ+Sfti2Cy6yIWNW05P8iUslOVcZ4/sKbE+/jQaukQAdz/gf3724kYdqw==} engines: {node: '>=6.9.0'} '@babel/parser@7.27.1': @@ -1450,13 +1460,13 @@ packages: engines: {node: '>=6.0.0'} hasBin: true - '@babel/parser@7.28.0': - resolution: {integrity: sha512-jVZGvOxOuNSsuQuLRTh13nU0AogFlw32w/MT+LV6D3sP5WdbW61E77RnkbaO2dUvmPAYrBDJXGn5gGS6tH4j8g==} + '@babel/parser@7.28.5': + resolution: {integrity: sha512-KKBU1VGYR7ORr3At5HAtUQ+TV3SzRCXmA/8OdDZiLDBIZxVyzXuztPjfLd3BV1PRAQGCMWWSHYhL0F8d5uHBDQ==} engines: {node: '>=6.0.0'} hasBin: true - '@babel/parser@7.28.5': - resolution: {integrity: sha512-KKBU1VGYR7ORr3At5HAtUQ+TV3SzRCXmA/8OdDZiLDBIZxVyzXuztPjfLd3BV1PRAQGCMWWSHYhL0F8d5uHBDQ==} + '@babel/parser@7.28.6': + resolution: {integrity: sha512-TeR9zWR18BvbfPmGbLampPMW+uW1NZnJlRuuHso8i87QZNq2JRF9i6RgxRqtEq+wQGsS19NNTWr2duhnE49mfQ==} engines: {node: '>=6.0.0'} hasBin: true @@ -2371,6 +2381,10 @@ packages: resolution: {integrity: sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==} engines: {node: '>=6.9.0'} + '@babel/template@7.28.6': + resolution: {integrity: sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==} + engines: {node: '>=6.9.0'} + '@babel/traverse@7.27.1': resolution: {integrity: sha512-ZCYtZciz1IWJB4U61UPu4KEaqyfj+r5T1Q5mqPo+IBpcG9kHv30Z0aD8LXPgC1trYa6rK0orRyAhqUgk4MjmEg==} engines: {node: '>=6.9.0'} @@ -2383,6 +2397,10 @@ packages: resolution: {integrity: sha512-TCCj4t55U90khlYkVV/0TfkJkAkUg3jZFA3Neb7unZT8CPok7iiRfaX0F+WnqWqt7OxhOn0uBKXCw4lbL8W0aQ==} engines: {node: '>=6.9.0'} + '@babel/traverse@7.28.6': + resolution: {integrity: sha512-fgWX62k02qtjqdSNTAGxmKYY/7FSL9WAS1o2Hu5+I5m9T0yxZzr4cnrfXQ/MX0rIifthCSs6FKTlzYbJcPtMNg==} + engines: {node: '>=6.9.0'} + '@babel/types@7.27.1': resolution: {integrity: sha512-+EzkxvLNfiUeKMgy/3luqfsCWFRXLb7U6wNQTk60tovuckwB15B191tJWvpp4HjiQWdJkCxO3Wbvc6jlk3Xb2Q==} engines: {node: '>=6.9.0'} @@ -2395,6 +2413,10 @@ packages: resolution: {integrity: sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA==} engines: {node: '>=6.9.0'} + '@babel/types@7.28.6': + resolution: {integrity: sha512-0ZrskXVEHSWIqZM/sQZ4EV3jZJXRkio/WCxaqKZP1g//CEWEPSfeZFcms4XeKBCHU0ZKnIkdJeU/kF+eRp5lBg==} + engines: {node: '>=6.9.0'} + '@capsizecss/unpack@3.0.1': resolution: {integrity: sha512-8XqW8xGn++Eqqbz3e9wKuK7mxryeRjs4LOHLxbh2lwKeSbuNR4NFifDZT4KzvjU6HMOPbiNTsWpniK5EJfTWkg==} engines: {node: '>=18'} @@ -3777,16 +3799,9 @@ packages: resolution: {integrity: sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w==} engines: {node: '>=6.0.0'} - '@jridgewell/gen-mapping@0.3.12': - resolution: {integrity: sha512-OuLGC46TjB5BbN1dH8JULVVZY4WTdkF7tV9Ys6wLL1rubZnCMstOhNHueU5bLCrnRuDhKPDM4g6sw4Bel5Gzqg==} - '@jridgewell/gen-mapping@0.3.13': resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==} - '@jridgewell/gen-mapping@0.3.8': - resolution: {integrity: sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==} - engines: {node: '>=6.0.0'} - '@jridgewell/remapping@2.3.5': resolution: {integrity: sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==} @@ -3813,9 +3828,6 @@ packages: '@jridgewell/trace-mapping@0.3.25': resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==} - '@jridgewell/trace-mapping@0.3.29': - resolution: {integrity: sha512-uw6guiW/gcAGPDhLmd77/6lW8QLeiV5RUTsAX46Db6oLhGaVj4lhnPwb184s1bkc8kdVg/+h988dro8GRDpmYQ==} - '@jridgewell/trace-mapping@0.3.30': resolution: {integrity: sha512-GQ7Nw5G2lTu/BtHTKfXhKHok2WGetd4XYcVKGx00SjAk8GMwgJM3zr6zORiPGuOE+/vkc90KtTosSSvaCjKb2Q==} @@ -4924,13 +4936,13 @@ packages: svelte: ^3.54.0 || ^4.0.0 vite: ^4.0.0 - '@sveltejs/vite-plugin-svelte-inspector@4.0.1': - resolution: {integrity: sha512-J/Nmb2Q2y7mck2hyCX4ckVHcR5tu2J+MtBEQqpDrrgELZ2uvraQcK/ioCV61AqkdXFgriksOKIceDcQmqnGhVw==} - engines: {node: ^18.0.0 || ^20.0.0 || >=22} + '@sveltejs/vite-plugin-svelte-inspector@5.0.2': + resolution: {integrity: sha512-TZzRTcEtZffICSAoZGkPSl6Etsj2torOVrx6Uw0KpXxrec9Gg6jFWQ60Q3+LmNGfZSxHRCZL7vXVZIWmuV50Ig==} + engines: {node: ^20.19 || ^22.12 || >=24} peerDependencies: - '@sveltejs/vite-plugin-svelte': ^5.0.0 + '@sveltejs/vite-plugin-svelte': ^6.0.0-next.0 svelte: ^5.0.0 - vite: ^6.0.0 + vite: ^6.3.0 || ^7.0.0 '@sveltejs/vite-plugin-svelte@2.5.3': resolution: {integrity: sha512-erhNtXxE5/6xGZz/M9eXsmI7Pxa6MS7jyTy06zN3Ck++ldrppOnOlJwHHTsMC7DHDQdgUp4NAc4cDNQ9eGdB/w==} @@ -4939,12 +4951,12 @@ packages: svelte: ^3.54.0 || ^4.0.0 || ^5.0.0-next.0 vite: ^4.0.0 - '@sveltejs/vite-plugin-svelte@5.1.1': - resolution: {integrity: sha512-Y1Cs7hhTc+a5E9Va/xwKlAJoariQyHY+5zBgCZg4PFWNYQ1nMN9sjK1zhw1gK69DuqVP++sht/1GZg1aRwmAXQ==} - engines: {node: ^18.0.0 || ^20.0.0 || >=22} + '@sveltejs/vite-plugin-svelte@6.2.4': + resolution: {integrity: sha512-ou/d51QSdTyN26D7h6dSpusAKaZkAiGM55/AKYi+9AGZw7q85hElbjK3kEyzXHhLSnRISHOYzVge6x0jRZ7DXA==} + engines: {node: ^20.19 || ^22.12 || >=24} peerDependencies: svelte: ^5.0.0 - vite: ^6.0.0 + vite: ^6.3.0 || ^7.0.0 '@swc-node/core@1.14.1': resolution: {integrity: sha512-jrt5GUaZUU6cmMS+WTJEvGvaB6j1YNKPHPzC2PUi2BjaFbtxURHj6641Az6xN7b665hNniAIdvjxWcRml5yCnw==} @@ -5615,6 +5627,13 @@ packages: peerDependencies: vite: ^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 + '@vitejs/plugin-vue2@2.2.0': + resolution: {integrity: sha512-1km7zEuZ/9QRPvzXSjikbTYGQPG86Mq1baktpC4sXqsXlb02HQKfi+fl8qVS703JM7cgm24Ga9j+RwKmvFn90A==} + engines: {node: ^14.18.0 || >= 16.0.0} + peerDependencies: + vite: ^3.0.0 || ^4.0.0 + vue: ^2.7.0-0 + '@vitejs/plugin-vue@4.6.2': resolution: {integrity: sha512-kqf7SGFoG+80aZG6Pf+gsZIVvGSCKE98JbiWqcCV9cThtg91Jav0yvYFC9Zb+jKetNGF6ZKeoaxgZfND21fWKw==} engines: {node: ^14.18.0 || >=16.0.0} @@ -7112,15 +7131,6 @@ packages: supports-color: optional: true - debug@4.4.1: - resolution: {integrity: sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==} - engines: {node: '>=6.0'} - peerDependencies: - supports-color: '*' - peerDependenciesMeta: - supports-color: - optional: true - debug@4.4.3: resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==} engines: {node: '>=6.0'} @@ -7467,10 +7477,6 @@ packages: resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==} engines: {node: '>=0.12'} - entities@6.0.0: - resolution: {integrity: sha512-aKstq2TDOndCn4diEyp9Uq/Flu2i1GlLkc6XIDQSDMuaFE3OPW5OphLCyQ5SpSJZTb4reN+kTcYru5yIfXoRPw==} - engines: {node: '>=0.12'} - entities@6.0.1: resolution: {integrity: sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==} engines: {node: '>=0.12'} @@ -8114,16 +8120,16 @@ packages: fb-watchman@2.0.2: resolution: {integrity: sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==} - fdir@6.4.3: - resolution: {integrity: sha512-PMXmW2y1hDDfTSRc9gaXIuCCRpuoz3Kaz8cUelp3smouvfT632ozg2vrT6lJsHKKOF59YLbOGfAWGUcKEfRMQw==} + fdir@6.4.4: + resolution: {integrity: sha512-1NZP+GK4GfuAv3PqKvxQRDMjdSRZjnkq7KfhlNrCNNlZ0ygQFpebfrnfnq/W7fpUnAv9aGWmY1zKx7FYL3gwhg==} peerDependencies: picomatch: ^3 || ^4 peerDependenciesMeta: picomatch: optional: true - fdir@6.4.4: - resolution: {integrity: sha512-1NZP+GK4GfuAv3PqKvxQRDMjdSRZjnkq7KfhlNrCNNlZ0ygQFpebfrnfnq/W7fpUnAv9aGWmY1zKx7FYL3gwhg==} + fdir@6.4.6: + resolution: {integrity: sha512-hiFoqpyZcfNm1yc4u8oWCf9A2c4D3QjCrks3zmoVKVxpQRzmPNar1hUJcBG2RQHvEVGDN+Jm81ZheVLAQMK6+w==} peerDependencies: picomatch: ^3 || ^4 peerDependenciesMeta: @@ -8830,9 +8836,6 @@ packages: resolution: {integrity: sha512-9dgM/cZBnNvjzaMYHVoxxfPj2QXt22Ev7SuuPrs+xav0ukGB0S6d4ydZdEiM48kLx5kDV+QBPrpVnFyefL8kkQ==} engines: {node: '>= 0.4'} - is-bigint@1.0.4: - resolution: {integrity: sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==} - is-bigint@1.1.0: resolution: {integrity: sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ==} engines: {node: '>= 0.4'} @@ -8841,10 +8844,6 @@ packages: resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==} engines: {node: '>=8'} - is-boolean-object@1.1.2: - resolution: {integrity: sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==} - engines: {node: '>= 0.4'} - is-boolean-object@1.2.2: resolution: {integrity: sha512-wa56o2/ElJMYqjCjGkXri7it5FbebW5usLw/nPmCMs5DeZ7eziSYZhSmPRn0txqeW4LnAmQQU7FgqLpsEFKM4A==} engines: {node: '>= 0.4'} @@ -8871,10 +8870,6 @@ packages: resolution: {integrity: sha512-RKtWF8pGmS87i2D6gqQu/l7EYRlVdfzemCJN/P3UOs//x1QE7mfhvzHIApBTRf7axvT6DMGwSwBXYCT0nfB9xw==} engines: {node: '>= 0.4'} - is-date-object@1.0.5: - resolution: {integrity: sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==} - engines: {node: '>= 0.4'} - is-date-object@1.1.0: resolution: {integrity: sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg==} engines: {node: '>= 0.4'} @@ -8932,9 +8927,6 @@ packages: is-lambda@1.0.1: resolution: {integrity: sha512-z7CMFGNrENq5iFB9Bqo64Xk6Y9sg+epq1myIcdHaGnbMTYOxvzsEtdYqQUylB7LxfkvgrrjP32T6Ywciio9UIQ==} - is-map@2.0.2: - resolution: {integrity: sha512-cOZFQQozTha1f4MxLFzlgKYPTyj26picdZTx82hbc/Xf4K/tZOOXSCkMvU4pKioRXGDLJRn0GM7Upe7kR721yg==} - is-map@2.0.3: resolution: {integrity: sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==} engines: {node: '>= 0.4'} @@ -8946,10 +8938,6 @@ packages: resolution: {integrity: sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==} engines: {node: '>= 0.4'} - is-number-object@1.0.7: - resolution: {integrity: sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==} - engines: {node: '>= 0.4'} - is-number-object@1.1.1: resolution: {integrity: sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw==} engines: {node: '>= 0.4'} @@ -9035,9 +9023,6 @@ packages: resolution: {integrity: sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==} engines: {node: '>=10'} - is-weakmap@2.0.1: - resolution: {integrity: sha512-NSBR4kH5oVj1Uwvv970ruUkCV7O1mzgVFO4/rev2cLRda9Tm9HrL70ZPut4rOHgY0FNrUu9BCbXA2sdQ+x0chA==} - is-weakmap@2.0.2: resolution: {integrity: sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==} engines: {node: '>= 0.4'} @@ -9046,9 +9031,6 @@ packages: resolution: {integrity: sha512-6i9mGWSlqzNMEqpCp93KwRS1uUOodk2OJ6b+sq7ZPDSy2WuI5NFIxp/254TytR8ftefexkWn5xNiHUNpPOfSew==} engines: {node: '>= 0.4'} - is-weakset@2.0.2: - resolution: {integrity: sha512-t2yVvttHkQktwnNNmBQ98AhENLdPUTDTE21uPqAQ0ARwQfGeQKRVS0NNurH7bTf7RrvcVn1OOge45CnBeHCSmg==} - is-weakset@2.0.4: resolution: {integrity: sha512-mfcwb6IzQyOKTs84CQMrOwW4gQcaTOAWJ0zzJCl2WSPDrWk/OzDaImWFH3djXhb24g4eudZfLRozAvPGw4d9hQ==} engines: {node: '>= 0.4'} @@ -9439,14 +9421,8 @@ packages: resolution: {integrity: sha512-wM1+Z03eypVAVUCE7QdSqpVIvelbOakn1M0bPDoA4SGWPx3sNDVUiMo3L6To6WWGClB7VyXnhQ4Sn7gxiJbE6A==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - linkedom@0.18.12: - resolution: {integrity: sha512-jalJsOwIKuQJSeTvsgzPe9iJzyfVaEJiEXl+25EkKevsULHvMJzpNqwvj1jOESWdmgKDiXObyjOYwlUqG7wo1Q==} - engines: {node: '>=16'} - peerDependencies: - canvas: '>= 2' - peerDependenciesMeta: - canvas: - optional: true + linkedom@0.18.11: + resolution: {integrity: sha512-K03GU3FUlnhBAP0jPb7tN7YJl7LbjZx30Z8h6wgLXusnKF7+BEZvfEbdkN/lO9LfFzxN3S0ZAriDuJ/13dIsLA==} lint-staged@13.3.0: resolution: {integrity: sha512-mPRtrYnipYYv1FEE134ufbWpeggNTo+O/UPzngoaKzbzHAthvR55am+8GfHTnqNRQVRRrYQLGW9ZyUoD7DsBHQ==} @@ -9500,8 +9476,8 @@ packages: resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} engines: {node: '>=10'} - lodash-es@4.17.21: - resolution: {integrity: sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==} + lodash-es@4.17.23: + resolution: {integrity: sha512-kVI48u3PZr38HdYz98UmfPnXl2DXrpdctLrFLCd3kOx1xUkOmpFPx7gCWWM5MPkL/fD8zb+Ph0QzjGFs4+hHWg==} lodash.debounce@4.0.8: resolution: {integrity: sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==} @@ -9518,8 +9494,8 @@ packages: lodash.throttle@4.1.1: resolution: {integrity: sha512-wIkUCfVKpVsWo3JSZlc+8MB5it+2AN5W8J7YVMST30UrvcQNZ1Okbj+rbVniijTWE6FGYy4XJq/rHkas8qJMLQ==} - lodash@4.17.21: - resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==} + lodash@4.17.23: + resolution: {integrity: sha512-LgVTMpQtIopCi79SJeDiP0TfWi5CNEc/L/aRdTh3yIvmZXTnheWpKjSZhnvMl8iXbC1tFg9gdHHDMLoV7CnG+w==} log-symbols@4.1.0: resolution: {integrity: sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==} @@ -10349,6 +10325,9 @@ packages: obuf@1.1.2: resolution: {integrity: sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==} + obug@2.1.1: + resolution: {integrity: sha512-uTqF9MuPraAQ+IsnPf366RG4cP9RtUi7MLO1N3KEc+wb0a6yKpeL0lmk2IB1jY5KHPAlTc6T/JRdC/YqxHNwkQ==} + ofetch@1.5.1: resolution: {integrity: sha512-2W4oUZlVaqAPAil6FUg/difl6YhqhUR7x2eZY4bQCko22UXg3hptq9KLQdqFClV+Wu85UX7hNtdGTngi/1BxcA==} @@ -11600,6 +11579,10 @@ packages: sax@1.4.3: resolution: {integrity: sha512-yqYn1JhPczigF94DMS+shiDMjDowYO6y9+wB/4WgO0Y19jWYk0lQ4tuG5KI7kj4FTp1wxPj5IFfcrz/s1c3jjQ==} + sax@1.4.4: + resolution: {integrity: sha512-1n3r/tGXO6b6VXMdFT54SHzT9ytu9yr7TaELowdYpMqY/Ao7EnlQGmAQ1+RatX7Tkkdm6hONI2owqNx2aZj5Sw==} + engines: {node: '>=11.0.0'} + saxes@6.0.0: resolution: {integrity: sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==} engines: {node: '>=v12.22.7'} @@ -11737,10 +11720,6 @@ packages: resolution: {integrity: sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==} engines: {node: '>= 0.4'} - side-channel@1.0.6: - resolution: {integrity: sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==} - engines: {node: '>= 0.4'} - side-channel@1.1.0: resolution: {integrity: sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==} engines: {node: '>= 0.4'} @@ -12286,6 +12265,7 @@ packages: tar@6.2.1: resolution: {integrity: sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==} engines: {node: '>=10'} + deprecated: Old versions of tar are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exhorbitant rates) by contacting i@izs.me temp@0.8.4: resolution: {integrity: sha512-s0ZZzd0BzYv5tLSptZooSjK8oj6C+c19p7Vqta9+6NPOf7r+fxq0cJe6/oN4LTC79sy5NY8ucOJNgwsKCSbfqg==} @@ -13263,9 +13243,6 @@ packages: whatwg-url@5.0.0: resolution: {integrity: sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==} - which-boxed-primitive@1.0.2: - resolution: {integrity: sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==} - which-boxed-primitive@1.1.1: resolution: {integrity: sha512-TbX3mj8n0odCBFVlY8AxkqcHASw3L60jIuF8jFP78az3C2YhmGvqbHBpAjTRH2/xqYunrJ9g1jSyjCjpoWzIAA==} engines: {node: '>= 0.4'} @@ -13274,9 +13251,6 @@ packages: resolution: {integrity: sha512-6iBczoX+kDQ7a3+YJBnh3T+KZRxM/iYNPXicqk66/Qfm1b93iu+yOImkg0zHbj5LNOcNv1TEADiZ0xa34B4q6Q==} engines: {node: '>= 0.4'} - which-collection@1.0.1: - resolution: {integrity: sha512-W8xeTUwaln8i3K/cY1nGXzdnVZlidBcagyNFtBdD5kxnb4TvGKR7FfSIS3mYpwWS1QUCutfKz8IY8RjftB0+1A==} - which-collection@1.0.2: resolution: {integrity: sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==} engines: {node: '>= 0.4'} @@ -13680,17 +13654,17 @@ snapshots: '@ampproject/remapping@2.2.0': dependencies: '@jridgewell/gen-mapping': 0.1.1 - '@jridgewell/trace-mapping': 0.3.25 + '@jridgewell/trace-mapping': 0.3.30 '@ampproject/remapping@2.2.1': dependencies: - '@jridgewell/gen-mapping': 0.3.8 - '@jridgewell/trace-mapping': 0.3.25 + '@jridgewell/gen-mapping': 0.3.13 + '@jridgewell/trace-mapping': 0.3.31 '@ampproject/remapping@2.3.0': dependencies: - '@jridgewell/gen-mapping': 0.3.8 - '@jridgewell/trace-mapping': 0.3.25 + '@jridgewell/gen-mapping': 0.3.13 + '@jridgewell/trace-mapping': 0.3.30 '@angular-devkit/architect@0.1303.11(chokidar@3.6.0)': dependencies: @@ -14016,7 +13990,7 @@ snapshots: '@babel/code-frame@7.26.2': dependencies: - '@babel/helper-validator-identifier': 7.25.9 + '@babel/helper-validator-identifier': 7.27.1 js-tokens: 4.0.0 picocolors: 1.1.1 @@ -14026,6 +14000,12 @@ snapshots: js-tokens: 4.0.0 picocolors: 1.1.1 + '@babel/code-frame@7.28.6': + dependencies: + '@babel/helper-validator-identifier': 7.28.5 + js-tokens: 4.0.0 + picocolors: 1.1.1 + '@babel/compat-data@7.26.8': {} '@babel/compat-data@7.27.2': {} @@ -14039,10 +14019,10 @@ snapshots: '@babel/helper-compilation-targets': 7.26.5 '@babel/helper-module-transforms': 7.26.0(@babel/core@7.16.12) '@babel/helpers': 7.26.9 - '@babel/parser': 7.27.1 + '@babel/parser': 7.28.5 '@babel/template': 7.27.1 '@babel/traverse': 7.27.1 - '@babel/types': 7.27.1 + '@babel/types': 7.28.5 convert-source-map: 1.9.0 debug: 4.4.3 gensync: 1.0.0-beta.2 @@ -14060,10 +14040,10 @@ snapshots: '@babel/helper-compilation-targets': 7.26.5 '@babel/helper-module-transforms': 7.26.0(@babel/core@7.25.2) '@babel/helpers': 7.26.9 - '@babel/parser': 7.27.1 + '@babel/parser': 7.28.5 '@babel/template': 7.27.1 '@babel/traverse': 7.27.1 - '@babel/types': 7.27.1 + '@babel/types': 7.28.5 convert-source-map: 2.0.0 debug: 4.4.3 gensync: 1.0.0-beta.2 @@ -14080,7 +14060,7 @@ snapshots: '@babel/helper-compilation-targets': 7.27.2 '@babel/helper-module-transforms': 7.27.3(@babel/core@7.28.0) '@babel/helpers': 7.28.2 - '@babel/parser': 7.28.0 + '@babel/parser': 7.28.5 '@babel/template': 7.27.2 '@babel/traverse': 7.28.0 '@babel/types': 7.28.4 @@ -14098,7 +14078,7 @@ snapshots: '@babel/generator': 7.28.5 '@babel/helper-compilation-targets': 7.27.2 '@babel/helper-module-transforms': 7.28.3(@babel/core@7.28.5) - '@babel/helpers': 7.28.4 + '@babel/helpers': 7.28.6 '@babel/parser': 7.28.5 '@babel/template': 7.27.2 '@babel/traverse': 7.28.5 @@ -14114,24 +14094,24 @@ snapshots: '@babel/generator@7.16.8': dependencies: - '@babel/types': 7.27.1 + '@babel/types': 7.28.5 jsesc: 2.5.2 source-map: 0.5.7 '@babel/generator@7.27.1': dependencies: - '@babel/parser': 7.27.1 - '@babel/types': 7.27.1 - '@jridgewell/gen-mapping': 0.3.8 - '@jridgewell/trace-mapping': 0.3.25 + '@babel/parser': 7.28.5 + '@babel/types': 7.28.5 + '@jridgewell/gen-mapping': 0.3.13 + '@jridgewell/trace-mapping': 0.3.31 jsesc: 3.1.0 '@babel/generator@7.28.0': dependencies: - '@babel/parser': 7.28.0 - '@babel/types': 7.28.4 - '@jridgewell/gen-mapping': 0.3.12 - '@jridgewell/trace-mapping': 0.3.29 + '@babel/parser': 7.28.5 + '@babel/types': 7.28.5 + '@jridgewell/gen-mapping': 0.3.13 + '@jridgewell/trace-mapping': 0.3.31 jsesc: 3.1.0 '@babel/generator@7.28.5': @@ -14142,18 +14122,26 @@ snapshots: '@jridgewell/trace-mapping': 0.3.31 jsesc: 3.1.0 + '@babel/generator@7.28.6': + dependencies: + '@babel/parser': 7.28.6 + '@babel/types': 7.28.6 + '@jridgewell/gen-mapping': 0.3.13 + '@jridgewell/trace-mapping': 0.3.31 + jsesc: 3.1.0 + '@babel/helper-annotate-as-pure@7.16.7': dependencies: '@babel/types': 7.27.1 '@babel/helper-annotate-as-pure@7.27.3': dependencies: - '@babel/types': 7.28.4 + '@babel/types': 7.28.5 '@babel/helper-builder-binary-assignment-operator-visitor@7.24.7': dependencies: '@babel/traverse': 7.28.5 - '@babel/types': 7.27.1 + '@babel/types': 7.28.6 transitivePeerDependencies: - supports-color @@ -14287,21 +14275,21 @@ snapshots: '@babel/helper-member-expression-to-functions@7.24.8': dependencies: '@babel/traverse': 7.28.5 - '@babel/types': 7.27.1 + '@babel/types': 7.28.6 transitivePeerDependencies: - supports-color '@babel/helper-member-expression-to-functions@7.27.1': dependencies: '@babel/traverse': 7.28.5 - '@babel/types': 7.28.5 + '@babel/types': 7.28.6 transitivePeerDependencies: - supports-color '@babel/helper-member-expression-to-functions@7.28.5': dependencies: '@babel/traverse': 7.28.5 - '@babel/types': 7.28.5 + '@babel/types': 7.28.6 transitivePeerDependencies: - supports-color @@ -14323,7 +14311,7 @@ snapshots: '@babel/helper-module-imports@7.27.1': dependencies: '@babel/traverse': 7.28.5 - '@babel/types': 7.28.4 + '@babel/types': 7.28.5 transitivePeerDependencies: - supports-color @@ -14332,7 +14320,7 @@ snapshots: '@babel/core': 7.16.12 '@babel/helper-module-imports': 7.27.1 '@babel/helper-validator-identifier': 7.27.1 - '@babel/traverse': 7.27.1 + '@babel/traverse': 7.28.5 transitivePeerDependencies: - supports-color @@ -14341,7 +14329,7 @@ snapshots: '@babel/core': 7.25.2 '@babel/helper-module-imports': 7.27.1 '@babel/helper-validator-identifier': 7.27.1 - '@babel/traverse': 7.27.1 + '@babel/traverse': 7.28.5 transitivePeerDependencies: - supports-color @@ -14349,8 +14337,8 @@ snapshots: dependencies: '@babel/core': 7.28.0 '@babel/helper-module-imports': 7.27.1 - '@babel/helper-validator-identifier': 7.27.1 - '@babel/traverse': 7.28.0 + '@babel/helper-validator-identifier': 7.28.5 + '@babel/traverse': 7.28.5 transitivePeerDependencies: - supports-color @@ -14374,11 +14362,11 @@ snapshots: '@babel/helper-optimise-call-expression@7.24.7': dependencies: - '@babel/types': 7.27.1 + '@babel/types': 7.28.6 '@babel/helper-optimise-call-expression@7.27.1': dependencies: - '@babel/types': 7.28.5 + '@babel/types': 7.28.6 '@babel/helper-plugin-utils@7.25.9': {} @@ -14432,14 +14420,14 @@ snapshots: '@babel/helper-simple-access@7.24.7': dependencies: '@babel/traverse': 7.28.5 - '@babel/types': 7.27.1 + '@babel/types': 7.28.6 transitivePeerDependencies: - supports-color '@babel/helper-skip-transparent-expression-wrappers@7.24.7': dependencies: '@babel/traverse': 7.28.5 - '@babel/types': 7.27.1 + '@babel/types': 7.28.6 transitivePeerDependencies: - supports-color @@ -14452,8 +14440,6 @@ snapshots: '@babel/helper-string-parser@7.27.1': {} - '@babel/helper-validator-identifier@7.25.9': {} - '@babel/helper-validator-identifier@7.27.1': {} '@babel/helper-validator-identifier@7.28.5': {} @@ -14464,51 +14450,51 @@ snapshots: '@babel/helper-wrap-function@7.25.0': dependencies: - '@babel/template': 7.27.2 + '@babel/template': 7.28.6 '@babel/traverse': 7.28.5 - '@babel/types': 7.28.5 + '@babel/types': 7.28.6 transitivePeerDependencies: - supports-color '@babel/helper-wrap-function@7.27.1': dependencies: - '@babel/template': 7.27.2 + '@babel/template': 7.28.6 '@babel/traverse': 7.28.5 - '@babel/types': 7.28.5 + '@babel/types': 7.28.6 transitivePeerDependencies: - supports-color '@babel/helpers@7.26.9': dependencies: '@babel/template': 7.27.1 - '@babel/types': 7.27.1 + '@babel/types': 7.28.5 '@babel/helpers@7.28.2': - dependencies: - '@babel/template': 7.27.2 - '@babel/types': 7.28.4 - - '@babel/helpers@7.28.4': dependencies: '@babel/template': 7.27.2 '@babel/types': 7.28.5 + '@babel/helpers@7.28.6': + dependencies: + '@babel/template': 7.28.6 + '@babel/types': 7.28.6 + '@babel/parser@7.27.1': dependencies: - '@babel/types': 7.27.1 + '@babel/types': 7.28.5 '@babel/parser@7.27.2': dependencies: '@babel/types': 7.28.5 - '@babel/parser@7.28.0': - dependencies: - '@babel/types': 7.28.4 - '@babel/parser@7.28.5': dependencies: '@babel/types': 7.28.5 + '@babel/parser@7.28.6': + dependencies: + '@babel/types': 7.28.6 + '@babel/plugin-bugfix-firefox-class-in-computed-class-key@7.28.5(@babel/core@7.28.5)': dependencies: '@babel/core': 7.28.5 @@ -15584,7 +15570,7 @@ snapshots: '@babel/plugin-transform-unicode-escapes': 7.24.7(@babel/core@7.16.12) '@babel/plugin-transform-unicode-regex': 7.24.7(@babel/core@7.16.12) '@babel/preset-modules': 0.1.6(@babel/core@7.16.12) - '@babel/types': 7.27.1 + '@babel/types': 7.28.5 babel-plugin-polyfill-corejs2: 0.3.3(@babel/core@7.16.12) babel-plugin-polyfill-corejs3: 0.5.3(@babel/core@7.16.12) babel-plugin-polyfill-regenerator: 0.3.1(@babel/core@7.16.12) @@ -15682,7 +15668,7 @@ snapshots: '@babel/helper-plugin-utils': 7.27.1 '@babel/plugin-proposal-unicode-property-regex': 7.18.6(@babel/core@7.16.12) '@babel/plugin-transform-dotall-regex': 7.24.7(@babel/core@7.16.12) - '@babel/types': 7.27.1 + '@babel/types': 7.28.5 esutils: 2.0.3 '@babel/preset-modules@0.1.6-no-external-plugins(@babel/core@7.28.5)': @@ -15736,14 +15722,14 @@ snapshots: '@babel/template@7.16.7': dependencies: '@babel/code-frame': 7.27.1 - '@babel/parser': 7.27.1 - '@babel/types': 7.27.1 + '@babel/parser': 7.28.5 + '@babel/types': 7.28.5 '@babel/template@7.27.1': dependencies: '@babel/code-frame': 7.27.1 - '@babel/parser': 7.27.1 - '@babel/types': 7.27.1 + '@babel/parser': 7.28.5 + '@babel/types': 7.28.5 '@babel/template@7.27.2': dependencies: @@ -15751,13 +15737,19 @@ snapshots: '@babel/parser': 7.28.5 '@babel/types': 7.28.5 + '@babel/template@7.28.6': + dependencies: + '@babel/code-frame': 7.28.6 + '@babel/parser': 7.28.6 + '@babel/types': 7.28.6 + '@babel/traverse@7.27.1': dependencies: '@babel/code-frame': 7.27.1 '@babel/generator': 7.27.1 - '@babel/parser': 7.27.1 + '@babel/parser': 7.28.5 '@babel/template': 7.27.2 - '@babel/types': 7.27.1 + '@babel/types': 7.28.5 debug: 4.4.3 globals: 11.12.0 transitivePeerDependencies: @@ -15768,9 +15760,9 @@ snapshots: '@babel/code-frame': 7.27.1 '@babel/generator': 7.28.0 '@babel/helper-globals': 7.28.0 - '@babel/parser': 7.28.0 + '@babel/parser': 7.28.5 '@babel/template': 7.27.2 - '@babel/types': 7.28.4 + '@babel/types': 7.28.5 debug: 4.4.3 transitivePeerDependencies: - supports-color @@ -15787,6 +15779,18 @@ snapshots: transitivePeerDependencies: - supports-color + '@babel/traverse@7.28.6': + dependencies: + '@babel/code-frame': 7.28.6 + '@babel/generator': 7.28.6 + '@babel/helper-globals': 7.28.0 + '@babel/parser': 7.28.6 + '@babel/template': 7.28.6 + '@babel/types': 7.28.6 + debug: 4.4.3 + transitivePeerDependencies: + - supports-color + '@babel/types@7.27.1': dependencies: '@babel/helper-string-parser': 7.27.1 @@ -15795,13 +15799,18 @@ snapshots: '@babel/types@7.28.4': dependencies: '@babel/helper-string-parser': 7.27.1 - '@babel/helper-validator-identifier': 7.27.1 + '@babel/helper-validator-identifier': 7.28.5 '@babel/types@7.28.5': dependencies: '@babel/helper-string-parser': 7.27.1 '@babel/helper-validator-identifier': 7.28.5 + '@babel/types@7.28.6': + dependencies: + '@babel/helper-string-parser': 7.27.1 + '@babel/helper-validator-identifier': 7.28.5 + '@capsizecss/unpack@3.0.1': dependencies: fontkit: 2.0.4 @@ -16441,7 +16450,7 @@ snapshots: '@eslint/eslintrc@2.1.4': dependencies: ajv: 6.12.6 - debug: 4.3.6 + debug: 4.4.3 espree: 9.6.1 globals: 13.24.0 ignore: 5.3.2 @@ -16508,7 +16517,7 @@ snapshots: '@humanwhocodes/config-array@0.13.0': dependencies: '@humanwhocodes/object-schema': 2.0.3 - debug: 4.3.6 + debug: 4.4.3 minimatch: 3.1.2 transitivePeerDependencies: - supports-color @@ -16678,7 +16687,7 @@ snapshots: dependencies: '@babel/core': 7.28.5 '@jest/types': 29.6.3 - '@jridgewell/trace-mapping': 0.3.25 + '@jridgewell/trace-mapping': 0.3.31 babel-plugin-istanbul: 6.1.1 chalk: 4.1.2 convert-source-map: 2.0.0 @@ -16920,26 +16929,15 @@ snapshots: '@jridgewell/set-array': 1.2.1 '@jridgewell/sourcemap-codec': 1.5.5 - '@jridgewell/gen-mapping@0.3.12': - dependencies: - '@jridgewell/sourcemap-codec': 1.5.5 - '@jridgewell/trace-mapping': 0.3.29 - '@jridgewell/gen-mapping@0.3.13': dependencies: '@jridgewell/sourcemap-codec': 1.5.5 - '@jridgewell/trace-mapping': 0.3.30 - - '@jridgewell/gen-mapping@0.3.8': - dependencies: - '@jridgewell/set-array': 1.2.1 - '@jridgewell/sourcemap-codec': 1.5.0 - '@jridgewell/trace-mapping': 0.3.25 + '@jridgewell/trace-mapping': 0.3.31 '@jridgewell/remapping@2.3.5': dependencies: '@jridgewell/gen-mapping': 0.3.13 - '@jridgewell/trace-mapping': 0.3.30 + '@jridgewell/trace-mapping': 0.3.31 '@jridgewell/resolve-uri@3.1.2': {} @@ -16952,8 +16950,8 @@ snapshots: '@jridgewell/source-map@0.3.6': dependencies: - '@jridgewell/gen-mapping': 0.3.8 - '@jridgewell/trace-mapping': 0.3.25 + '@jridgewell/gen-mapping': 0.3.13 + '@jridgewell/trace-mapping': 0.3.31 '@jridgewell/sourcemap-codec@1.5.0': {} @@ -16964,11 +16962,6 @@ snapshots: '@jridgewell/resolve-uri': 3.1.2 '@jridgewell/sourcemap-codec': 1.5.5 - '@jridgewell/trace-mapping@0.3.29': - dependencies: - '@jridgewell/resolve-uri': 3.1.2 - '@jridgewell/sourcemap-codec': 1.5.5 - '@jridgewell/trace-mapping@0.3.30': dependencies: '@jridgewell/resolve-uri': 3.1.2 @@ -17564,7 +17557,7 @@ snapshots: '@babel/plugin-transform-sticky-regex': 7.27.1(@babel/core@7.28.5) '@babel/plugin-transform-typescript': 7.28.5(@babel/core@7.28.5) '@babel/plugin-transform-unicode-regex': 7.27.1(@babel/core@7.28.5) - '@babel/template': 7.27.2 + '@babel/template': 7.28.6 '@react-native/babel-plugin-codegen': 0.76.9(@babel/preset-env@7.28.5(@babel/core@7.28.5)) babel-plugin-syntax-hermes-parser: 0.25.1 babel-plugin-transform-flow-enums: 0.0.2(@babel/core@7.28.5) @@ -18091,9 +18084,9 @@ snapshots: '@stitches/core@1.2.8': {} - '@sveltejs/acorn-typescript@1.0.5(acorn@8.14.0)': + '@sveltejs/acorn-typescript@1.0.5(acorn@8.15.0)': dependencies: - acorn: 8.14.0 + acorn: 8.15.0 '@sveltejs/package@2.5.6(svelte@4.2.20)(typescript@5.9.3)': dependencies: @@ -18126,14 +18119,12 @@ snapshots: transitivePeerDependencies: - supports-color - '@sveltejs/vite-plugin-svelte-inspector@4.0.1(@sveltejs/vite-plugin-svelte@5.1.1(svelte@5.43.14)(vite@6.4.1(@types/node@24.10.1)(jiti@2.6.1)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.44.1)(yaml@2.8.0)))(svelte@5.43.14)(vite@6.4.1(@types/node@24.10.1)(jiti@2.6.1)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.44.1)(yaml@2.8.0))': + '@sveltejs/vite-plugin-svelte-inspector@5.0.2(@sveltejs/vite-plugin-svelte@6.2.4(svelte@5.43.14)(vite@6.4.1(@types/node@24.10.1)(jiti@2.6.1)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.44.1)(yaml@2.8.0)))(svelte@5.43.14)(vite@6.4.1(@types/node@24.10.1)(jiti@2.6.1)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.44.1)(yaml@2.8.0))': dependencies: - '@sveltejs/vite-plugin-svelte': 5.1.1(svelte@5.43.14)(vite@6.4.1(@types/node@24.10.1)(jiti@2.6.1)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.44.1)(yaml@2.8.0)) - debug: 4.4.1 + '@sveltejs/vite-plugin-svelte': 6.2.4(svelte@5.43.14)(vite@6.4.1(@types/node@24.10.1)(jiti@2.6.1)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.44.1)(yaml@2.8.0)) + obug: 2.1.1 svelte: 5.43.14 vite: 6.4.1(@types/node@24.10.1)(jiti@2.6.1)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.44.1)(yaml@2.8.0) - transitivePeerDependencies: - - supports-color '@sveltejs/vite-plugin-svelte@2.5.3(svelte@4.2.20)(vite@7.2.4(@types/node@24.10.1)(jiti@2.6.1)(less@4.2.0)(sass@1.77.8)(terser@5.44.1)(yaml@2.8.0))': dependencies: @@ -18149,18 +18140,15 @@ snapshots: transitivePeerDependencies: - supports-color - '@sveltejs/vite-plugin-svelte@5.1.1(svelte@5.43.14)(vite@6.4.1(@types/node@24.10.1)(jiti@2.6.1)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.44.1)(yaml@2.8.0))': + '@sveltejs/vite-plugin-svelte@6.2.4(svelte@5.43.14)(vite@6.4.1(@types/node@24.10.1)(jiti@2.6.1)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.44.1)(yaml@2.8.0))': dependencies: - '@sveltejs/vite-plugin-svelte-inspector': 4.0.1(@sveltejs/vite-plugin-svelte@5.1.1(svelte@5.43.14)(vite@6.4.1(@types/node@24.10.1)(jiti@2.6.1)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.44.1)(yaml@2.8.0)))(svelte@5.43.14)(vite@6.4.1(@types/node@24.10.1)(jiti@2.6.1)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.44.1)(yaml@2.8.0)) - debug: 4.4.1 + '@sveltejs/vite-plugin-svelte-inspector': 5.0.2(@sveltejs/vite-plugin-svelte@6.2.4(svelte@5.43.14)(vite@6.4.1(@types/node@24.10.1)(jiti@2.6.1)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.44.1)(yaml@2.8.0)))(svelte@5.43.14)(vite@6.4.1(@types/node@24.10.1)(jiti@2.6.1)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.44.1)(yaml@2.8.0)) deepmerge: 4.3.1 - kleur: 4.1.5 - magic-string: 0.30.17 + magic-string: 0.30.21 + obug: 2.1.1 svelte: 5.43.14 vite: 6.4.1(@types/node@24.10.1)(jiti@2.6.1)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.44.1)(yaml@2.8.0) vitefu: 1.1.1(vite@6.4.1(@types/node@24.10.1)(jiti@2.6.1)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.44.1)(yaml@2.8.0)) - transitivePeerDependencies: - - supports-color '@swc-node/core@1.14.1(@swc/core@1.7.23(@swc/helpers@0.5.17))(@swc/types@0.1.25)': dependencies: @@ -18271,7 +18259,7 @@ snapshots: '@testing-library/dom@8.20.1': dependencies: '@babel/code-frame': 7.27.1 - '@babel/runtime': 7.26.0 + '@babel/runtime': 7.27.1 '@types/aria-query': 5.0.4 aria-query: 5.1.3 chalk: 4.1.2 @@ -18282,7 +18270,7 @@ snapshots: '@testing-library/dom@9.3.4': dependencies: '@babel/code-frame': 7.27.1 - '@babel/runtime': 7.26.0 + '@babel/runtime': 7.27.1 '@types/aria-query': 5.0.4 aria-query: 5.1.3 chalk: 4.1.2 @@ -18384,16 +18372,16 @@ snapshots: '@types/babel__generator@7.6.4': dependencies: - '@babel/types': 7.28.4 + '@babel/types': 7.28.5 '@types/babel__template@7.4.1': dependencies: - '@babel/parser': 7.27.1 - '@babel/types': 7.28.4 + '@babel/parser': 7.28.5 + '@babel/types': 7.28.5 '@types/babel__traverse@7.20.1': dependencies: - '@babel/types': 7.28.4 + '@babel/types': 7.28.5 '@types/body-parser@1.19.5': dependencies: @@ -18432,11 +18420,11 @@ snapshots: '@types/eslint-scope@3.7.7': dependencies: '@types/eslint': 9.6.0 - '@types/estree': 0.0.51 + '@types/estree': 1.0.8 '@types/eslint@9.6.0': dependencies: - '@types/estree': 0.0.51 + '@types/estree': 1.0.8 '@types/json-schema': 7.0.15 '@types/estree@0.0.39': {} @@ -18726,7 +18714,7 @@ snapshots: dependencies: '@typescript-eslint/typescript-estree': 5.48.2(typescript@4.6.4) '@typescript-eslint/utils': 5.48.2(eslint@8.57.1)(typescript@4.6.4) - debug: 4.3.6 + debug: 4.4.3 eslint: 8.57.1 tsutils: 3.21.0(typescript@4.6.4) optionalDependencies: @@ -18738,7 +18726,7 @@ snapshots: dependencies: '@typescript-eslint/typescript-estree': 6.21.0(typescript@5.9.3) '@typescript-eslint/utils': 6.21.0(eslint@8.57.1)(typescript@5.9.3) - debug: 4.4.0 + debug: 4.4.3 eslint: 8.57.1 ts-api-utils: 1.4.3(typescript@5.9.3) optionalDependencies: @@ -18770,7 +18758,7 @@ snapshots: dependencies: '@typescript-eslint/types': 5.48.2 '@typescript-eslint/visitor-keys': 5.48.2 - debug: 4.3.6 + debug: 4.4.3 globby: 11.1.0 is-glob: 4.0.3 semver: 7.7.3 @@ -18784,7 +18772,7 @@ snapshots: dependencies: '@typescript-eslint/types': 6.21.0 '@typescript-eslint/visitor-keys': 6.21.0 - debug: 4.4.0 + debug: 4.4.3 globby: 11.1.0 is-glob: 4.0.3 minimatch: 9.0.3 @@ -18922,6 +18910,11 @@ snapshots: transitivePeerDependencies: - supports-color + '@vitejs/plugin-vue2@2.2.0(vite@7.2.4(@types/node@24.10.1)(jiti@2.6.1)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.44.1)(yaml@2.8.0))(vue@3.5.24(typescript@5.9.3))': + dependencies: + vite: 7.2.4(@types/node@24.10.1)(jiti@2.6.1)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.44.1)(yaml@2.8.0) + vue: 3.5.24(typescript@5.9.3) + '@vitejs/plugin-vue@4.6.2(vite@7.2.4(@types/node@24.10.1)(jiti@2.6.1)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.44.1)(yaml@2.8.0))(vue@3.5.24(typescript@5.9.3))': dependencies: vite: 7.2.4(@types/node@24.10.1)(jiti@2.6.1)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.44.1)(yaml@2.8.0) @@ -19231,12 +19224,12 @@ snapshots: acorn-globals@7.0.1: dependencies: - acorn: 8.14.0 + acorn: 8.15.0 acorn-walk: 8.3.3 - acorn-import-assertions@1.9.0(acorn@8.14.0): + acorn-import-assertions@1.9.0(acorn@8.14.1): dependencies: - acorn: 8.14.0 + acorn: 8.14.1 acorn-jsx@5.3.2(acorn@8.14.1): dependencies: @@ -19408,7 +19401,7 @@ snapshots: glob: 8.1.0 graceful-fs: 4.2.11 lazystream: 1.0.1 - lodash: 4.17.21 + lodash: 4.17.23 normalize-path: 3.0.0 readable-stream: 3.6.2 @@ -19447,7 +19440,7 @@ snapshots: aria-query@4.2.2: dependencies: - '@babel/runtime': 7.26.0 + '@babel/runtime': 7.27.1 '@babel/runtime-corejs3': 7.25.0 aria-query@5.1.3: @@ -19638,7 +19631,7 @@ snapshots: async@2.6.4: dependencies: - lodash: 4.17.21 + lodash: 4.17.23 async@3.2.6: {} @@ -19734,8 +19727,8 @@ snapshots: babel-plugin-jest-hoist@29.6.3: dependencies: - '@babel/template': 7.27.2 - '@babel/types': 7.28.5 + '@babel/template': 7.28.6 + '@babel/types': 7.28.6 '@types/babel__core': 7.20.5 '@types/babel__traverse': 7.20.1 @@ -20683,10 +20676,6 @@ snapshots: dependencies: ms: 2.1.3 - debug@4.4.1: - dependencies: - ms: 2.1.3 - debug@4.4.3: dependencies: ms: 2.1.3 @@ -20704,7 +20693,7 @@ snapshots: deep-equal@1.1.2: dependencies: is-arguments: 1.1.1 - is-date-object: 1.0.5 + is-date-object: 1.1.0 is-regex: 1.2.1 object-is: 1.1.6 object-keys: 1.1.1 @@ -20718,7 +20707,7 @@ snapshots: get-intrinsic: 1.3.0 is-arguments: 1.1.1 is-array-buffer: 3.0.5 - is-date-object: 1.0.5 + is-date-object: 1.1.0 is-regex: 1.2.1 is-shared-array-buffer: 1.0.4 isarray: 2.0.5 @@ -20726,9 +20715,9 @@ snapshots: object-keys: 1.1.1 object.assign: 4.1.7 regexp.prototype.flags: 1.5.4 - side-channel: 1.0.6 - which-boxed-primitive: 1.0.2 - which-collection: 1.0.1 + side-channel: 1.1.0 + which-boxed-primitive: 1.1.1 + which-collection: 1.0.2 which-typed-array: 1.1.19 deep-is@0.1.4: {} @@ -21031,8 +21020,6 @@ snapshots: entities@4.5.0: {} - entities@6.0.0: {} - entities@6.0.1: {} env-paths@2.2.1: {} @@ -21173,7 +21160,7 @@ snapshots: get-intrinsic: 1.3.0 has-symbols: 1.1.0 is-arguments: 1.1.1 - is-map: 2.0.2 + is-map: 2.0.3 is-set: 2.0.3 is-string: 1.1.1 isarray: 2.0.5 @@ -21896,11 +21883,11 @@ snapshots: dependencies: bser: 2.1.1 - fdir@6.4.3(picomatch@4.0.3): + fdir@6.4.4(picomatch@4.0.3): optionalDependencies: picomatch: 4.0.3 - fdir@6.4.4(picomatch@4.0.3): + fdir@6.4.6(picomatch@4.0.3): optionalDependencies: picomatch: 4.0.3 @@ -22506,7 +22493,7 @@ snapshots: domelementtype: 2.3.0 domhandler: 5.0.3 domutils: 3.2.2 - entities: 6.0.0 + entities: 6.0.1 htmlparser2@3.10.1: dependencies: @@ -22551,7 +22538,7 @@ snapshots: dependencies: '@tootallnate/once': 1.1.2 agent-base: 6.0.2 - debug: 4.3.3 + debug: 4.4.3 transitivePeerDependencies: - supports-color @@ -22715,7 +22702,7 @@ snapshots: cli-width: 3.0.0 external-editor: 3.1.0 figures: 3.2.0 - lodash: 4.17.21 + lodash: 4.17.23 mute-stream: 0.0.8 ora: 5.4.1 run-async: 2.4.1 @@ -22783,10 +22770,6 @@ snapshots: has-tostringtag: 1.0.2 safe-regex-test: 1.1.0 - is-bigint@1.0.4: - dependencies: - has-bigints: 1.1.0 - is-bigint@1.1.0: dependencies: has-bigints: 1.1.0 @@ -22795,11 +22778,6 @@ snapshots: dependencies: binary-extensions: 2.3.0 - is-boolean-object@1.1.2: - dependencies: - call-bind: 1.0.8 - has-tostringtag: 1.0.2 - is-boolean-object@1.2.2: dependencies: call-bound: 1.0.4 @@ -22827,10 +22805,6 @@ snapshots: get-intrinsic: 1.3.0 is-typed-array: 1.1.15 - is-date-object@1.0.5: - dependencies: - has-tostringtag: 1.0.2 - is-date-object@1.1.0: dependencies: call-bound: 1.0.4 @@ -22873,18 +22847,12 @@ snapshots: is-lambda@1.0.1: {} - is-map@2.0.2: {} - is-map@2.0.3: {} is-module@1.0.0: {} is-negative-zero@2.0.3: {} - is-number-object@1.0.7: - dependencies: - has-tostringtag: 1.0.2 - is-number-object@1.1.1: dependencies: call-bound: 1.0.4 @@ -22918,7 +22886,7 @@ snapshots: is-reference@3.0.3: dependencies: - '@types/estree': 1.0.6 + '@types/estree': 1.0.8 is-regex@1.2.1: dependencies: @@ -22954,19 +22922,12 @@ snapshots: is-unicode-supported@0.1.0: {} - is-weakmap@2.0.1: {} - is-weakmap@2.0.2: {} is-weakref@1.1.1: dependencies: call-bound: 1.0.4 - is-weakset@2.0.2: - dependencies: - call-bind: 1.0.8 - get-intrinsic: 1.3.0 - is-weakset@2.0.4: dependencies: call-bound: 1.0.4 @@ -23103,7 +23064,7 @@ snapshots: jest-message-util@29.7.0: dependencies: - '@babel/code-frame': 7.27.1 + '@babel/code-frame': 7.28.6 '@jest/types': 29.6.3 '@types/stack-utils': 2.0.1 chalk: 4.1.2 @@ -23209,7 +23170,7 @@ snapshots: jscodeshift@0.14.0(@babel/preset-env@7.28.5(@babel/core@7.28.5)): dependencies: '@babel/core': 7.28.5 - '@babel/parser': 7.27.2 + '@babel/parser': 7.28.5 '@babel/plugin-proposal-class-properties': 7.18.6(@babel/core@7.28.5) '@babel/plugin-proposal-nullish-coalescing-operator': 7.18.6(@babel/core@7.28.5) '@babel/plugin-proposal-optional-chaining': 7.21.0(@babel/core@7.28.5) @@ -23369,7 +23330,7 @@ snapshots: graceful-fs: 4.2.11 http-proxy: 1.18.1 isbinaryfile: 4.0.10 - lodash: 4.17.21 + lodash: 4.17.23 log4js: 6.9.1 mime: 2.6.0 minimatch: 3.1.2 @@ -23478,7 +23439,7 @@ snapshots: lines-and-columns@2.0.4: {} - linkedom@0.18.12: + linkedom@0.18.11: dependencies: css-select: 5.1.0 cssom: 0.5.0 @@ -23576,7 +23537,7 @@ snapshots: dependencies: p-locate: 5.0.0 - lodash-es@4.17.21: {} + lodash-es@4.17.23: {} lodash.debounce@4.0.8: {} @@ -23590,7 +23551,7 @@ snapshots: lodash.throttle@4.1.1: {} - lodash@4.17.21: {} + lodash@4.17.23: {} log-symbols@4.1.0: dependencies: @@ -23968,7 +23929,7 @@ snapshots: metro-runtime@0.81.0: dependencies: - '@babel/runtime': 7.26.0 + '@babel/runtime': 7.27.1 flow-enums-runtime: 0.0.6 metro-runtime@0.81.5: @@ -23979,7 +23940,7 @@ snapshots: metro-source-map@0.81.0: dependencies: '@babel/traverse': 7.27.1 - '@babel/traverse--for-generate-function-map': '@babel/traverse@7.28.5' + '@babel/traverse--for-generate-function-map': '@babel/traverse@7.28.6' '@babel/types': 7.28.4 flow-enums-runtime: 0.0.6 invariant: 2.2.4 @@ -23994,8 +23955,8 @@ snapshots: metro-source-map@0.81.5: dependencies: '@babel/traverse': 7.28.5 - '@babel/traverse--for-generate-function-map': '@babel/traverse@7.28.5' - '@babel/types': 7.28.5 + '@babel/traverse--for-generate-function-map': '@babel/traverse@7.28.6' + '@babel/types': 7.28.6 flow-enums-runtime: 0.0.6 invariant: 2.2.4 metro-symbolicate: 0.81.5 @@ -24032,8 +23993,8 @@ snapshots: metro-transform-plugins@0.81.5: dependencies: '@babel/core': 7.28.5 - '@babel/generator': 7.28.5 - '@babel/template': 7.27.2 + '@babel/generator': 7.28.6 + '@babel/template': 7.28.6 '@babel/traverse': 7.28.5 flow-enums-runtime: 0.0.6 nullthrows: 1.1.1 @@ -24043,9 +24004,9 @@ snapshots: metro-transform-worker@0.81.5: dependencies: '@babel/core': 7.28.5 - '@babel/generator': 7.28.5 - '@babel/parser': 7.28.5 - '@babel/types': 7.28.5 + '@babel/generator': 7.28.6 + '@babel/parser': 7.28.6 + '@babel/types': 7.28.6 flow-enums-runtime: 0.0.6 metro: 0.81.5 metro-babel-transformer: 0.81.5 @@ -24954,6 +24915,8 @@ snapshots: obuf@1.1.2: {} + obug@2.1.1: {} + ofetch@1.5.1: dependencies: destr: 2.0.5 @@ -25216,7 +25179,7 @@ snapshots: parse-json@5.2.0: dependencies: - '@babel/code-frame': 7.27.1 + '@babel/code-frame': 7.28.6 error-ex: 1.3.2 json-parse-even-better-errors: 2.3.1 lines-and-columns: 1.2.4 @@ -25311,7 +25274,7 @@ snapshots: periscopic@3.1.0: dependencies: - '@types/estree': 1.0.6 + '@types/estree': 1.0.8 estree-walker: 3.0.3 is-reference: 3.0.3 @@ -25895,7 +25858,7 @@ snapshots: qs@6.13.0: dependencies: - side-channel: 1.0.6 + side-channel: 1.1.0 quansync@0.2.11: {} @@ -26364,7 +26327,7 @@ snapshots: dependencies: commenting: 1.1.0 fdir: 6.4.4(picomatch@4.0.3) - lodash: 4.17.21 + lodash: 4.17.23 magic-string: 0.30.17 moment: 2.30.1 package-name-regex: 2.0.6 @@ -26584,6 +26547,9 @@ snapshots: sax@1.4.3: {} + sax@1.4.4: + optional: true + saxes@6.0.0: dependencies: xmlchars: 2.2.0 @@ -26806,13 +26772,6 @@ snapshots: object-inspect: 1.13.4 side-channel-map: 1.0.1 - side-channel@1.0.6: - dependencies: - call-bind: 1.0.8 - es-errors: 1.3.0 - get-intrinsic: 1.3.0 - object-inspect: 1.13.4 - side-channel@1.1.0: dependencies: es-errors: 1.3.0 @@ -26904,7 +26863,7 @@ snapshots: socks-proxy-agent@6.2.1: dependencies: agent-base: 6.0.2 - debug: 4.3.3 + debug: 4.4.3 socks: 2.8.3 transitivePeerDependencies: - supports-color @@ -26912,7 +26871,7 @@ snapshots: socks-proxy-agent@7.0.0: dependencies: agent-base: 6.0.2 - debug: 4.3.3 + debug: 4.4.3 socks: 2.8.3 transitivePeerDependencies: - supports-color @@ -27271,9 +27230,9 @@ snapshots: svelte-check@4.3.4(picomatch@4.0.3)(svelte@5.43.14)(typescript@5.9.3): dependencies: - '@jridgewell/trace-mapping': 0.3.25 + '@jridgewell/trace-mapping': 0.3.31 chokidar: 4.0.3 - fdir: 6.4.3(picomatch@4.0.3) + fdir: 6.4.6(picomatch@4.0.3) picocolors: 1.1.1 sade: 1.8.1 svelte: 5.43.14 @@ -27345,10 +27304,10 @@ snapshots: svelte@5.43.14: dependencies: '@jridgewell/remapping': 2.3.5 - '@jridgewell/sourcemap-codec': 1.5.0 - '@sveltejs/acorn-typescript': 1.0.5(acorn@8.14.0) - '@types/estree': 1.0.6 - acorn: 8.14.0 + '@jridgewell/sourcemap-codec': 1.5.5 + '@sveltejs/acorn-typescript': 1.0.5(acorn@8.15.0) + '@types/estree': 1.0.8 + acorn: 8.15.0 aria-query: 5.3.2 axobject-query: 4.1.0 clsx: 2.1.1 @@ -27356,7 +27315,7 @@ snapshots: esrap: 2.1.0 is-reference: 3.0.3 locate-character: 3.0.0 - magic-string: 0.30.17 + magic-string: 0.30.21 zimmerframe: 1.1.2 svg-path-commander@2.1.11: @@ -27372,7 +27331,7 @@ snapshots: '@xmldom/xmldom': 0.7.13 argparse: 2.0.1 cubic2quad: 1.2.1 - lodash: 4.17.21 + lodash: 4.17.23 microbuffer: 1.0.0 svgpath: 2.6.0 @@ -27479,7 +27438,7 @@ snapshots: terser-webpack-plugin@5.3.14(@swc/core@1.7.23(@swc/helpers@0.5.17))(esbuild@0.14.22)(webpack@5.76.1(@swc/core@1.7.23(@swc/helpers@0.5.17))(esbuild@0.14.22)): dependencies: - '@jridgewell/trace-mapping': 0.3.25 + '@jridgewell/trace-mapping': 0.3.31 jest-worker: 27.5.1 schema-utils: 4.3.0 serialize-javascript: 6.0.2 @@ -27492,7 +27451,7 @@ snapshots: terser@5.14.2: dependencies: '@jridgewell/source-map': 0.3.6 - acorn: 8.14.0 + acorn: 8.14.1 commander: 2.20.3 source-map-support: 0.5.21 @@ -27557,7 +27516,7 @@ snapshots: tinyglobby@0.2.13: dependencies: - fdir: 6.5.0(picomatch@4.0.3) + fdir: 6.4.6(picomatch@4.0.3) picomatch: 4.0.3 tinyglobby@0.2.15: @@ -28130,7 +28089,7 @@ snapshots: vite@6.3.6(@types/node@24.10.1)(jiti@2.6.1)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.44.1)(yaml@2.8.0): dependencies: esbuild: 0.25.12 - fdir: 6.5.0(picomatch@4.0.3) + fdir: 6.4.6(picomatch@4.0.3) picomatch: 4.0.3 postcss: 8.5.6 rollup: 4.53.3 @@ -28148,7 +28107,7 @@ snapshots: vite@6.4.1(@types/node@24.10.1)(jiti@2.6.1)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.44.1)(yaml@2.8.0): dependencies: esbuild: 0.25.10 - fdir: 6.5.0(picomatch@4.0.3) + fdir: 6.4.6(picomatch@4.0.3) picomatch: 4.0.3 postcss: 8.5.6 rollup: 4.52.4 @@ -28408,8 +28367,8 @@ snapshots: '@webassemblyjs/ast': 1.11.1 '@webassemblyjs/wasm-edit': 1.11.1 '@webassemblyjs/wasm-parser': 1.11.1 - acorn: 8.14.0 - acorn-import-assertions: 1.9.0(acorn@8.14.0) + acorn: 8.14.1 + acorn-import-assertions: 1.9.0(acorn@8.14.1) browserslist: 4.24.2 chrome-trace-event: 1.0.4 enhanced-resolve: 5.18.1 @@ -28464,14 +28423,6 @@ snapshots: tr46: 0.0.3 webidl-conversions: 3.0.1 - which-boxed-primitive@1.0.2: - dependencies: - is-bigint: 1.0.4 - is-boolean-object: 1.1.2 - is-number-object: 1.0.7 - is-string: 1.1.1 - is-symbol: 1.1.1 - which-boxed-primitive@1.1.1: dependencies: is-bigint: 1.1.0 @@ -28496,13 +28447,6 @@ snapshots: which-collection: 1.0.2 which-typed-array: 1.1.19 - which-collection@1.0.1: - dependencies: - is-map: 2.0.2 - is-set: 2.0.3 - is-weakmap: 2.0.1 - is-weakset: 2.0.2 - which-collection@1.0.2: dependencies: is-map: 2.0.3 @@ -28619,7 +28563,7 @@ snapshots: xml2js@0.6.2: dependencies: - sax: 1.4.3 + sax: 1.4.4 xmlbuilder: 11.0.1 optional: true diff --git a/scripts/updateOpenCollectiveBackers.mts b/scripts/updateOpenCollectiveBackers.mts new file mode 100644 index 000000000..f01b0fffd --- /dev/null +++ b/scripts/updateOpenCollectiveBackers.mts @@ -0,0 +1,34 @@ +import { readdirSync } from 'node:fs'; +import { join } from 'node:path'; +import { existsSync, readFileSync, writeFileSync } from 'fs'; + +function updateOpenCollectiveBackers() { + const packagesPath = join(import.meta.dirname, '../packages'); + const mainReadme = readFileSync(join(import.meta.dirname, '../README.md'), 'utf8'); + const awesomeRegex = /(\[\/\/]: <> \(Open Collective backers\).+)$/s; + const awesomeBlock = awesomeRegex.exec(mainReadme); + if (awesomeBlock?.[1]) { + const packageAwesomeBlock = awesomeBlock[1].replaceAll('src="docs/public/sponsors', 'src="https://lucide.dev/sponsors') + readdirSync(packagesPath).forEach((packagePath) => { + if (['lucide-figma', 'shared'].includes(packagePath) || packagePath.startsWith('.')) { + return; + } + const readmePath = join(packagesPath, packagePath, 'README.md'); + if (existsSync(readmePath)) { + const readmeContent = readFileSync(readmePath, 'utf8'); + if (awesomeRegex.test(readmeContent)) { + writeFileSync(readmePath, readmeContent.replace(awesomeRegex, packageAwesomeBlock)); + console.log(`Upgraded Awesome backers block in ${readmePath}`); + } else { + console.error(`Could not find Awesome backers block in ${readmePath}`) + } + } else { + console.warn(`No readme found at ${readmePath}`); + } + }) + } else { + console.error('Could not identify Awesome backers block') + } +} + +updateOpenCollectiveBackers();