@senvenli/react 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +32 -2
- package/dist/action/button-group.d.ts +26 -0
- package/dist/action/button-group.js +12 -0
- package/dist/action/button-group.js.map +1 -0
- package/dist/action/button.d.ts +42 -0
- package/dist/action/button.js +58 -0
- package/dist/action/button.js.map +1 -0
- package/dist/action/close-button.d.ts +12 -0
- package/dist/action/close-button.js +13 -0
- package/dist/action/close-button.js.map +1 -0
- package/dist/action/copy-button.d.ts +21 -0
- package/dist/action/copy-button.js +38 -0
- package/dist/action/copy-button.js.map +1 -0
- package/dist/action/fab.d.ts +29 -0
- package/dist/action/fab.js +57 -0
- package/dist/action/fab.js.map +1 -0
- package/dist/action/files.d.ts +70 -0
- package/dist/action/files.js +156 -0
- package/dist/action/files.js.map +1 -0
- package/dist/action/index.d.ts +23 -0
- package/dist/action/index.js +16 -0
- package/dist/action/index.js.map +1 -0
- package/dist/action/language-names.d.ts +19 -0
- package/dist/action/language-names.js +79 -0
- package/dist/action/language-names.js.map +1 -0
- package/dist/action/language-switcher.d.ts +57 -0
- package/dist/action/language-switcher.js +53 -0
- package/dist/action/language-switcher.js.map +1 -0
- package/dist/action/link-button.d.ts +57 -0
- package/dist/action/link-button.js +48 -0
- package/dist/action/link-button.js.map +1 -0
- package/dist/action/link.d.ts +24 -0
- package/dist/action/link.js +18 -0
- package/dist/action/link.js.map +1 -0
- package/dist/action/pressable.d.ts +40 -0
- package/dist/action/pressable.js +65 -0
- package/dist/action/pressable.js.map +1 -0
- package/dist/action/styles.d.ts +60 -0
- package/dist/action/styles.js +109 -0
- package/dist/action/styles.js.map +1 -0
- package/dist/action/theme-script.d.ts +12 -0
- package/dist/action/theme-script.js +23 -0
- package/dist/action/theme-script.js.map +1 -0
- package/dist/action/theme-switcher.d.ts +43 -0
- package/dist/action/theme-switcher.js +260 -0
- package/dist/action/theme-switcher.js.map +1 -0
- package/dist/action/theme-toggle.d.ts +43 -0
- package/dist/action/theme-toggle.js +259 -0
- package/dist/action/theme-toggle.js.map +1 -0
- package/dist/action/toggle.d.ts +44 -0
- package/dist/action/toggle.js +28 -0
- package/dist/action/toggle.js.map +1 -0
- package/dist/action/touch-target.d.ts +9 -0
- package/dist/action/touch-target.js +14 -0
- package/dist/action/touch-target.js.map +1 -0
- package/dist/charts/axis-width.d.ts +186 -0
- package/dist/charts/axis-width.js +1262 -0
- package/dist/charts/axis-width.js.map +1 -0
- package/dist/charts/bar-public.d.ts +16 -0
- package/dist/charts/bar-public.js +16 -0
- package/dist/charts/bar-public.js.map +1 -0
- package/dist/charts/chart-parts.d.ts +136 -0
- package/dist/charts/chart-parts.js +160 -0
- package/dist/charts/chart-parts.js.map +1 -0
- package/dist/charts/core-charts.d.ts +157 -0
- package/dist/charts/core-charts.js +505 -0
- package/dist/charts/core-charts.js.map +1 -0
- package/dist/charts/index.d.ts +12 -0
- package/dist/charts/index.js +8 -0
- package/dist/charts/index.js.map +1 -0
- package/dist/charts/list-charts.d.ts +124 -0
- package/dist/charts/list-charts.js +308 -0
- package/dist/charts/list-charts.js.map +1 -0
- package/dist/charts/more-charts.d.ts +138 -0
- package/dist/charts/more-charts.js +284 -0
- package/dist/charts/more-charts.js.map +1 -0
- package/dist/charts/report-charts.d.ts +138 -0
- package/dist/charts/report-charts.js +370 -0
- package/dist/charts/report-charts.js.map +1 -0
- package/dist/charts/value-tick.d.ts +178 -0
- package/dist/charts/value-tick.js +240 -0
- package/dist/charts/value-tick.js.map +1 -0
- package/dist/collection/data-table-url-hook.d.ts +34 -0
- package/dist/collection/data-table-url-hook.js +70 -0
- package/dist/collection/data-table-url-hook.js.map +1 -0
- package/dist/collection/data-table-url.d.ts +30 -0
- package/dist/collection/data-table-url.js +48 -0
- package/dist/collection/data-table-url.js.map +1 -0
- package/dist/collection/data-table.d.ts +112 -0
- package/dist/collection/data-table.js +188 -0
- package/dist/collection/data-table.js.map +1 -0
- package/dist/collection/grid-list-public.d.ts +18 -0
- package/dist/collection/grid-list-public.js +19 -0
- package/dist/collection/grid-list-public.js.map +1 -0
- package/dist/collection/grid-list.d.ts +73 -0
- package/dist/collection/grid-list.js +46 -0
- package/dist/collection/grid-list.js.map +1 -0
- package/dist/collection/index.d.ts +14 -0
- package/dist/collection/index.js +8 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/list.d.ts +61 -0
- package/dist/collection/list.js +38 -0
- package/dist/collection/list.js.map +1 -0
- package/dist/collection/selection-checkbox.d.ts +5 -0
- package/dist/collection/selection-checkbox.js +13 -0
- package/dist/collection/selection-checkbox.js.map +1 -0
- package/dist/collection/table.d.ts +91 -0
- package/dist/collection/table.js +183 -0
- package/dist/collection/table.js.map +1 -0
- package/dist/collection/tree.d.ts +31 -0
- package/dist/collection/tree.js +22 -0
- package/dist/collection/tree.js.map +1 -0
- package/dist/color/color.d.ts +87 -0
- package/dist/color/color.js +200 -0
- package/dist/color/color.js.map +1 -0
- package/dist/color/contrast.d.ts +34 -0
- package/dist/color/contrast.js +44 -0
- package/dist/color/contrast.js.map +1 -0
- package/dist/color/index.d.ts +4 -0
- package/dist/color/index.js +5 -0
- package/dist/color/index.js.map +1 -0
- package/dist/date/calendar.d.ts +71 -0
- package/dist/date/calendar.js +291 -0
- package/dist/date/calendar.js.map +1 -0
- package/dist/date/fields.d.ts +174 -0
- package/dist/date/fields.js +250 -0
- package/dist/date/fields.js.map +1 -0
- package/dist/date/index.d.ts +7 -0
- package/dist/date/index.js +6 -0
- package/dist/date/index.js.map +1 -0
- package/dist/date/month-grid.d.ts +31 -0
- package/dist/date/month-grid.js +115 -0
- package/dist/date/month-grid.js.map +1 -0
- package/dist/date/pickers.d.ts +118 -0
- package/dist/date/pickers.js +176 -0
- package/dist/date/pickers.js.map +1 -0
- package/dist/date/public.d.ts +25 -0
- package/dist/date/public.js +24 -0
- package/dist/date/public.js.map +1 -0
- package/dist/date/segments.d.ts +153 -0
- package/dist/date/segments.js +433 -0
- package/dist/date/segments.js.map +1 -0
- package/dist/defaults.d.ts +74 -0
- package/dist/defaults.js +100 -0
- package/dist/defaults.js.map +1 -0
- package/dist/density.d.ts +2 -0
- package/dist/density.js +2 -0
- package/dist/density.js.map +1 -0
- package/dist/display/avatar.d.ts +29 -0
- package/dist/display/avatar.js +71 -0
- package/dist/display/avatar.js.map +1 -0
- package/dist/display/badge.d.ts +65 -0
- package/dist/display/badge.js +99 -0
- package/dist/display/badge.js.map +1 -0
- package/dist/display/card.d.ts +72 -0
- package/dist/display/card.js +91 -0
- package/dist/display/card.js.map +1 -0
- package/dist/display/carousel.d.ts +47 -0
- package/dist/display/carousel.js +214 -0
- package/dist/display/carousel.js.map +1 -0
- package/dist/display/description-list.d.ts +25 -0
- package/dist/display/description-list.js +36 -0
- package/dist/display/description-list.js.map +1 -0
- package/dist/display/icon-aliases.d.ts +1 -0
- package/dist/display/icon-aliases.js +259 -0
- package/dist/display/icon-aliases.js.map +1 -0
- package/dist/display/icon-names.d.ts +4 -0
- package/dist/display/icon-names.js +2 -0
- package/dist/display/icon-names.js.map +1 -0
- package/dist/display/icon.d.ts +51 -0
- package/dist/display/icon.js +96 -0
- package/dist/display/icon.js.map +1 -0
- package/dist/display/image-crop.d.ts +106 -0
- package/dist/display/image-crop.js +117 -0
- package/dist/display/image-crop.js.map +1 -0
- package/dist/display/image-cropper.d.ts +68 -0
- package/dist/display/image-cropper.js +284 -0
- package/dist/display/image-cropper.js.map +1 -0
- package/dist/display/image-viewer.d.ts +54 -0
- package/dist/display/image-viewer.js +84 -0
- package/dist/display/image-viewer.js.map +1 -0
- package/dist/display/image.d.ts +26 -0
- package/dist/display/image.js +17 -0
- package/dist/display/image.js.map +1 -0
- package/dist/display/index.d.ts +29 -0
- package/dist/display/index.js +16 -0
- package/dist/display/index.js.map +1 -0
- package/dist/display/iso-chip.d.ts +19 -0
- package/dist/display/iso-chip.js +21 -0
- package/dist/display/iso-chip.js.map +1 -0
- package/dist/display/kbd.d.ts +11 -0
- package/dist/display/kbd.js +33 -0
- package/dist/display/kbd.js.map +1 -0
- package/dist/display/lozenge.d.ts +30 -0
- package/dist/display/lozenge.js +55 -0
- package/dist/display/lozenge.js.map +1 -0
- package/dist/display/scroll-area.d.ts +29 -0
- package/dist/display/scroll-area.js +95 -0
- package/dist/display/scroll-area.js.map +1 -0
- package/dist/display/separator.d.ts +13 -0
- package/dist/display/separator.js +24 -0
- package/dist/display/separator.js.map +1 -0
- package/dist/display/stat.d.ts +35 -0
- package/dist/display/stat.js +41 -0
- package/dist/display/stat.js.map +1 -0
- package/dist/display/timeline.d.ts +44 -0
- package/dist/display/timeline.js +111 -0
- package/dist/display/timeline.js.map +1 -0
- package/dist/display/typography.d.ts +37 -0
- package/dist/display/typography.js +53 -0
- package/dist/display/typography.js.map +1 -0
- package/dist/display/visually-hidden.d.ts +14 -0
- package/dist/display/visually-hidden.js +10 -0
- package/dist/display/visually-hidden.js.map +1 -0
- package/dist/feedback/banner.d.ts +46 -0
- package/dist/feedback/banner.js +157 -0
- package/dist/feedback/banner.js.map +1 -0
- package/dist/feedback/cooldown.d.ts +17 -0
- package/dist/feedback/cooldown.js +59 -0
- package/dist/feedback/cooldown.js.map +1 -0
- package/dist/feedback/empty-state.d.ts +35 -0
- package/dist/feedback/empty-state.js +39 -0
- package/dist/feedback/empty-state.js.map +1 -0
- package/dist/feedback/index.d.ts +12 -0
- package/dist/feedback/index.js +11 -0
- package/dist/feedback/index.js.map +1 -0
- package/dist/feedback/meter.d.ts +33 -0
- package/dist/feedback/meter.js +42 -0
- package/dist/feedback/meter.js.map +1 -0
- package/dist/feedback/motion.d.ts +9 -0
- package/dist/feedback/motion.js +57 -0
- package/dist/feedback/motion.js.map +1 -0
- package/dist/feedback/progress.d.ts +39 -0
- package/dist/feedback/progress.js +68 -0
- package/dist/feedback/progress.js.map +1 -0
- package/dist/feedback/skeleton.d.ts +48 -0
- package/dist/feedback/skeleton.js +61 -0
- package/dist/feedback/skeleton.js.map +1 -0
- package/dist/feedback/spinner.d.ts +19 -0
- package/dist/feedback/spinner.js +29 -0
- package/dist/feedback/spinner.js.map +1 -0
- package/dist/feedback/status-dot.d.ts +23 -0
- package/dist/feedback/status-dot.js +37 -0
- package/dist/feedback/status-dot.js.map +1 -0
- package/dist/form/countries.d.ts +34 -0
- package/dist/form/countries.js +273 -0
- package/dist/form/countries.js.map +1 -0
- package/dist/form/data-attributes.d.ts +11 -0
- package/dist/form/data-attributes.js +22 -0
- package/dist/form/data-attributes.js.map +1 -0
- package/dist/form/field-parts.d.ts +113 -0
- package/dist/form/field-parts.js +178 -0
- package/dist/form/field-parts.js.map +1 -0
- package/dist/form/field.d.ts +36 -0
- package/dist/form/field.js +65 -0
- package/dist/form/field.js.map +1 -0
- package/dist/form/files.d.ts +70 -0
- package/dist/form/files.js +156 -0
- package/dist/form/files.js.map +1 -0
- package/dist/form/form.d.ts +40 -0
- package/dist/form/form.js +74 -0
- package/dist/form/form.js.map +1 -0
- package/dist/form/image-crop.d.ts +106 -0
- package/dist/form/image-crop.js +117 -0
- package/dist/form/image-crop.js.map +1 -0
- package/dist/form/image-cropper.d.ts +68 -0
- package/dist/form/image-cropper.js +284 -0
- package/dist/form/image-cropper.js.map +1 -0
- package/dist/form/index.d.ts +24 -0
- package/dist/form/index.js +15 -0
- package/dist/form/index.js.map +1 -0
- package/dist/form/input-group.d.ts +63 -0
- package/dist/form/input-group.js +63 -0
- package/dist/form/input-group.js.map +1 -0
- package/dist/form/input-otp.d.ts +35 -0
- package/dist/form/input-otp.js +83 -0
- package/dist/form/input-otp.js.map +1 -0
- package/dist/form/input.d.ts +36 -0
- package/dist/form/input.js +41 -0
- package/dist/form/input.js.map +1 -0
- package/dist/form/number-field.d.ts +84 -0
- package/dist/form/number-field.js +81 -0
- package/dist/form/number-field.js.map +1 -0
- package/dist/form/otp-field.d.ts +37 -0
- package/dist/form/otp-field.js +116 -0
- package/dist/form/otp-field.js.map +1 -0
- package/dist/form/password-field.d.ts +61 -0
- package/dist/form/password-field.js +61 -0
- package/dist/form/password-field.js.map +1 -0
- package/dist/form/phone-field.d.ts +104 -0
- package/dist/form/phone-field.js +275 -0
- package/dist/form/phone-field.js.map +1 -0
- package/dist/form/phone-paste.d.ts +24 -0
- package/dist/form/phone-paste.js +40 -0
- package/dist/form/phone-paste.js.map +1 -0
- package/dist/form/phone.d.ts +159 -0
- package/dist/form/phone.js +309 -0
- package/dist/form/phone.js.map +1 -0
- package/dist/form/search-field.d.ts +29 -0
- package/dist/form/search-field.js +23 -0
- package/dist/form/search-field.js.map +1 -0
- package/dist/form/styles.d.ts +31 -0
- package/dist/form/styles.js +43 -0
- package/dist/form/styles.js.map +1 -0
- package/dist/form/text-area.d.ts +70 -0
- package/dist/form/text-area.js +93 -0
- package/dist/form/text-area.js.map +1 -0
- package/dist/form/text-field.d.ts +131 -0
- package/dist/form/text-field.js +59 -0
- package/dist/form/text-field.js.map +1 -0
- package/dist/form/validation.d.ts +145 -0
- package/dist/form/validation.js +136 -0
- package/dist/form/validation.js.map +1 -0
- package/dist/i18n.d.ts +438 -0
- package/dist/i18n.js +948 -0
- package/dist/i18n.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -0
- package/dist/intl-locale.d.ts +30 -0
- package/dist/intl-locale.js +83 -0
- package/dist/intl-locale.js.map +1 -0
- package/dist/layers.d.ts +32 -0
- package/dist/layers.js +33 -0
- package/dist/layers.js.map +1 -0
- package/dist/layout/auth-form-layout.d.ts +71 -0
- package/dist/layout/auth-form-layout.js +61 -0
- package/dist/layout/auth-form-layout.js.map +1 -0
- package/dist/layout/auth-layout.d.ts +59 -0
- package/dist/layout/auth-layout.js +26 -0
- package/dist/layout/auth-layout.js.map +1 -0
- package/dist/layout/box.d.ts +26 -0
- package/dist/layout/box.js +16 -0
- package/dist/layout/box.js.map +1 -0
- package/dist/layout/grid.d.ts +27 -0
- package/dist/layout/grid.js +26 -0
- package/dist/layout/grid.js.map +1 -0
- package/dist/layout/index.d.ts +16 -0
- package/dist/layout/index.js +12 -0
- package/dist/layout/index.js.map +1 -0
- package/dist/layout/pressable.d.ts +40 -0
- package/dist/layout/pressable.js +65 -0
- package/dist/layout/pressable.js.map +1 -0
- package/dist/layout/reset-sent-card.d.ts +39 -0
- package/dist/layout/reset-sent-card.js +22 -0
- package/dist/layout/reset-sent-card.js.map +1 -0
- package/dist/layout/scroll-area.d.ts +29 -0
- package/dist/layout/scroll-area.js +95 -0
- package/dist/layout/scroll-area.js.map +1 -0
- package/dist/layout/section.d.ts +41 -0
- package/dist/layout/section.js +22 -0
- package/dist/layout/section.js.map +1 -0
- package/dist/layout/split.d.ts +50 -0
- package/dist/layout/split.js +35 -0
- package/dist/layout/split.js.map +1 -0
- package/dist/layout/stack.d.ts +44 -0
- package/dist/layout/stack.js +36 -0
- package/dist/layout/stack.js.map +1 -0
- package/dist/layout/tokens.d.ts +33 -0
- package/dist/layout/tokens.js +85 -0
- package/dist/layout/tokens.js.map +1 -0
- package/dist/layout/toolbar.d.ts +37 -0
- package/dist/layout/toolbar.js +334 -0
- package/dist/layout/toolbar.js.map +1 -0
- package/dist/navigate-context.d.ts +12 -0
- package/dist/navigate-context.js +13 -0
- package/dist/navigate-context.js.map +1 -0
- package/dist/navigation/accordion.d.ts +40 -0
- package/dist/navigation/accordion.js +33 -0
- package/dist/navigation/accordion.js.map +1 -0
- package/dist/navigation/bottom-nav.d.ts +29 -0
- package/dist/navigation/bottom-nav.js +48 -0
- package/dist/navigation/bottom-nav.js.map +1 -0
- package/dist/navigation/brand-link-context.d.ts +8 -0
- package/dist/navigation/brand-link-context.js +9 -0
- package/dist/navigation/brand-link-context.js.map +1 -0
- package/dist/navigation/breadcrumbs.d.ts +36 -0
- package/dist/navigation/breadcrumbs.js +51 -0
- package/dist/navigation/breadcrumbs.js.map +1 -0
- package/dist/navigation/dock.d.ts +27 -0
- package/dist/navigation/dock.js +47 -0
- package/dist/navigation/dock.js.map +1 -0
- package/dist/navigation/footer.d.ts +43 -0
- package/dist/navigation/footer.js +43 -0
- package/dist/navigation/footer.js.map +1 -0
- package/dist/navigation/index.d.ts +22 -0
- package/dist/navigation/index.js +17 -0
- package/dist/navigation/index.js.map +1 -0
- package/dist/navigation/language-names.d.ts +19 -0
- package/dist/navigation/language-names.js +79 -0
- package/dist/navigation/language-names.js.map +1 -0
- package/dist/navigation/language-switcher.d.ts +55 -0
- package/dist/navigation/language-switcher.js +53 -0
- package/dist/navigation/language-switcher.js.map +1 -0
- package/dist/navigation/nav-panel.d.ts +18 -0
- package/dist/navigation/nav-panel.js +51 -0
- package/dist/navigation/nav-panel.js.map +1 -0
- package/dist/navigation/navbar.d.ts +73 -0
- package/dist/navigation/navbar.js +64 -0
- package/dist/navigation/navbar.js.map +1 -0
- package/dist/navigation/page-header.d.ts +37 -0
- package/dist/navigation/page-header.js +50 -0
- package/dist/navigation/page-header.js.map +1 -0
- package/dist/navigation/pagination.d.ts +25 -0
- package/dist/navigation/pagination.js +51 -0
- package/dist/navigation/pagination.js.map +1 -0
- package/dist/navigation/panel-header.d.ts +37 -0
- package/dist/navigation/panel-header.js +50 -0
- package/dist/navigation/panel-header.js.map +1 -0
- package/dist/navigation/sidebar-script.d.ts +12 -0
- package/dist/navigation/sidebar-script.js +20 -0
- package/dist/navigation/sidebar-script.js.map +1 -0
- package/dist/navigation/sidebar.d.ts +149 -0
- package/dist/navigation/sidebar.js +332 -0
- package/dist/navigation/sidebar.js.map +1 -0
- package/dist/navigation/skip-link.d.ts +12 -0
- package/dist/navigation/skip-link.js +30 -0
- package/dist/navigation/skip-link.js.map +1 -0
- package/dist/navigation/stepper.d.ts +50 -0
- package/dist/navigation/stepper.js +96 -0
- package/dist/navigation/stepper.js.map +1 -0
- package/dist/navigation/tabs.d.ts +84 -0
- package/dist/navigation/tabs.js +118 -0
- package/dist/navigation/tabs.js.map +1 -0
- package/dist/navigation/toolbar.d.ts +37 -0
- package/dist/navigation/toolbar.js +334 -0
- package/dist/navigation/toolbar.js.map +1 -0
- package/dist/overlay/alert-dialog.d.ts +63 -0
- package/dist/overlay/alert-dialog.js +76 -0
- package/dist/overlay/alert-dialog.js.map +1 -0
- package/dist/overlay/command-palette.d.ts +53 -0
- package/dist/overlay/command-palette.js +130 -0
- package/dist/overlay/command-palette.js.map +1 -0
- package/dist/overlay/command.d.ts +53 -0
- package/dist/overlay/command.js +129 -0
- package/dist/overlay/command.js.map +1 -0
- package/dist/overlay/context-menu.d.ts +29 -0
- package/dist/overlay/context-menu.js +58 -0
- package/dist/overlay/context-menu.js.map +1 -0
- package/dist/overlay/dialog.d.ts +162 -0
- package/dist/overlay/dialog.js +174 -0
- package/dist/overlay/dialog.js.map +1 -0
- package/dist/overlay/drawer.d.ts +41 -0
- package/dist/overlay/drawer.js +114 -0
- package/dist/overlay/drawer.js.map +1 -0
- package/dist/overlay/floating.d.ts +142 -0
- package/dist/overlay/floating.js +226 -0
- package/dist/overlay/floating.js.map +1 -0
- package/dist/overlay/hover-card.d.ts +19 -0
- package/dist/overlay/hover-card.js +31 -0
- package/dist/overlay/hover-card.js.map +1 -0
- package/dist/overlay/index.d.ts +18 -0
- package/dist/overlay/index.js +12 -0
- package/dist/overlay/index.js.map +1 -0
- package/dist/overlay/overlay-base.d.ts +105 -0
- package/dist/overlay/overlay-base.js +250 -0
- package/dist/overlay/overlay-base.js.map +1 -0
- package/dist/overlay/overlay.d.ts +299 -0
- package/dist/overlay/overlay.js +558 -0
- package/dist/overlay/overlay.js.map +1 -0
- package/dist/overlay/toast.d.ts +58 -0
- package/dist/overlay/toast.js +145 -0
- package/dist/overlay/toast.js.map +1 -0
- package/dist/provider.d.ts +26 -0
- package/dist/provider.js +30 -0
- package/dist/provider.js.map +1 -0
- package/dist/selection/autocomplete.d.ts +54 -0
- package/dist/selection/autocomplete.js +122 -0
- package/dist/selection/autocomplete.js.map +1 -0
- package/dist/selection/checkbox.d.ts +56 -0
- package/dist/selection/checkbox.js +49 -0
- package/dist/selection/checkbox.js.map +1 -0
- package/dist/selection/choice-size.d.ts +26 -0
- package/dist/selection/choice-size.js +50 -0
- package/dist/selection/choice-size.js.map +1 -0
- package/dist/selection/choice-text.d.ts +21 -0
- package/dist/selection/choice-text.js +33 -0
- package/dist/selection/choice-text.js.map +1 -0
- package/dist/selection/combobox.d.ts +173 -0
- package/dist/selection/combobox.js +410 -0
- package/dist/selection/combobox.js.map +1 -0
- package/dist/selection/index.d.ts +20 -0
- package/dist/selection/index.js +13 -0
- package/dist/selection/index.js.map +1 -0
- package/dist/selection/list-box.d.ts +30 -0
- package/dist/selection/list-box.js +16 -0
- package/dist/selection/list-box.js.map +1 -0
- package/dist/selection/listbox.d.ts +44 -0
- package/dist/selection/listbox.js +49 -0
- package/dist/selection/listbox.js.map +1 -0
- package/dist/selection/match.d.ts +20 -0
- package/dist/selection/match.js +57 -0
- package/dist/selection/match.js.map +1 -0
- package/dist/selection/multi-select.d.ts +72 -0
- package/dist/selection/multi-select.js +138 -0
- package/dist/selection/multi-select.js.map +1 -0
- package/dist/selection/radio-card.d.ts +31 -0
- package/dist/selection/radio-card.js +29 -0
- package/dist/selection/radio-card.js.map +1 -0
- package/dist/selection/radio.d.ts +72 -0
- package/dist/selection/radio.js +64 -0
- package/dist/selection/radio.js.map +1 -0
- package/dist/selection/select-public.d.ts +19 -0
- package/dist/selection/select-public.js +24 -0
- package/dist/selection/select-public.js.map +1 -0
- package/dist/selection/select.d.ts +72 -0
- package/dist/selection/select.js +69 -0
- package/dist/selection/select.js.map +1 -0
- package/dist/selection/slider.d.ts +16 -0
- package/dist/selection/slider.js +44 -0
- package/dist/selection/slider.js.map +1 -0
- package/dist/selection/styles.d.ts +26 -0
- package/dist/selection/styles.js +78 -0
- package/dist/selection/styles.js.map +1 -0
- package/dist/selection/switch.d.ts +24 -0
- package/dist/selection/switch.js +27 -0
- package/dist/selection/switch.js.map +1 -0
- package/dist/selection/tag-group.d.ts +38 -0
- package/dist/selection/tag-group.js +45 -0
- package/dist/selection/tag-group.js.map +1 -0
- package/dist/tone.d.ts +6 -0
- package/dist/tone.js +2 -0
- package/dist/tone.js.map +1 -0
- package/dist/utils.d.ts +9 -0
- package/dist/utils.js +42 -0
- package/dist/utils.js.map +1 -0
- package/manifest/component.full.schema.json +391 -0
- package/manifest/component.schema.json +279 -0
- package/manifests/accordion.json +299 -0
- package/manifests/alert-dialog.json +261 -0
- package/manifests/area-chart.json +338 -0
- package/manifests/autocomplete.json +299 -0
- package/manifests/avatar.json +253 -0
- package/manifests/badge.json +288 -0
- package/manifests/banner.json +185 -0
- package/manifests/bar-chart.json +454 -0
- package/manifests/bar-list.json +262 -0
- package/manifests/bottom-nav.json +139 -0
- package/manifests/box.json +3450 -0
- package/manifests/breadcrumbs.json +199 -0
- package/manifests/button-group.json +2294 -0
- package/manifests/button.json +1211 -0
- package/manifests/calendar-heatmap.json +218 -0
- package/manifests/calendar.json +299 -0
- package/manifests/card.json +308 -0
- package/manifests/carousel.json +263 -0
- package/manifests/chart-parts.json +309 -0
- package/manifests/checkbox.json +998 -0
- package/manifests/close-button.json +1000 -0
- package/manifests/color-field.json +276 -0
- package/manifests/color-picker.json +161 -0
- package/manifests/color-swatch-picker.json +220 -0
- package/manifests/color-swatch.json +140 -0
- package/manifests/combobox.json +581 -0
- package/manifests/command.json +275 -0
- package/manifests/composed-chart.json +287 -0
- package/manifests/context-menu.json +148 -0
- package/manifests/copy-button.json +192 -0
- package/manifests/data-table.json +334 -0
- package/manifests/date-field.json +302 -0
- package/manifests/date-picker.json +472 -0
- package/manifests/description-list.json +201 -0
- package/manifests/dialog.json +322 -0
- package/manifests/donut-chart.json +264 -0
- package/manifests/drawer.json +211 -0
- package/manifests/empty-state.json +185 -0
- package/manifests/fab.json +172 -0
- package/manifests/field.json +209 -0
- package/manifests/file-upload.json +791 -0
- package/manifests/form.json +829 -0
- package/manifests/funnel-chart.json +223 -0
- package/manifests/gauge-chart.json +252 -0
- package/manifests/grid-list.json +335 -0
- package/manifests/grid.json +3482 -0
- package/manifests/heading.json +183 -0
- package/manifests/heatmap.json +265 -0
- package/manifests/hover-card.json +172 -0
- package/manifests/icon.json +201 -0
- package/manifests/image-cropper.json +295 -0
- package/manifests/image-viewer.json +198 -0
- package/manifests/image.json +193 -0
- package/manifests/index.json +2035 -0
- package/manifests/input-group.json +3571 -0
- package/manifests/input.json +1557 -0
- package/manifests/kbd.json +98 -0
- package/manifests/language-switcher.json +274 -0
- package/manifests/line-chart.json +342 -0
- package/manifests/link.json +867 -0
- package/manifests/list-box.json +213 -0
- package/manifests/menu.json +453 -0
- package/manifests/meter.json +145 -0
- package/manifests/navbar.json +281 -0
- package/manifests/otp-field.json +1029 -0
- package/manifests/page-header.json +164 -0
- package/manifests/pagination.json +181 -0
- package/manifests/popover.json +205 -0
- package/manifests/pressable.json +367 -0
- package/manifests/progress.json +282 -0
- package/manifests/radar-chart.json +229 -0
- package/manifests/radial-chart.json +195 -0
- package/manifests/radio.json +975 -0
- package/manifests/scatter-chart.json +277 -0
- package/manifests/scroll-area.json +127 -0
- package/manifests/section.json +169 -0
- package/manifests/select.json +474 -0
- package/manifests/separator.json +119 -0
- package/manifests/sidebar.json +584 -0
- package/manifests/skeleton.json +235 -0
- package/manifests/skip-link.json +89 -0
- package/manifests/slider.json +706 -0
- package/manifests/sparkline.json +208 -0
- package/manifests/spinner.json +105 -0
- package/manifests/split.json +6618 -0
- package/manifests/stack.json +3541 -0
- package/manifests/stat.json +192 -0
- package/manifests/stepper.json +279 -0
- package/manifests/switch.json +205 -0
- package/manifests/table.json +375 -0
- package/manifests/tabs.json +438 -0
- package/manifests/tag-group.json +264 -0
- package/manifests/text-area.json +1136 -0
- package/manifests/text.json +244 -0
- package/manifests/theme-switcher.json +152 -0
- package/manifests/time-field.json +284 -0
- package/manifests/timeline.json +196 -0
- package/manifests/toast.json +87 -0
- package/manifests/toggle-button.json +1489 -0
- package/manifests/toolbar.json +145 -0
- package/manifests/tooltip.json +181 -0
- package/manifests/tracker.json +192 -0
- package/manifests/tree.json +245 -0
- package/manifests/visually-hidden.json +114 -0
- package/package.json +117 -3
- package/styles/base.css +56 -0
- package/styles/theme.css +154 -0
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
// Generated from lucide-react 1.34.0 by scripts/build-icon-aliases.mjs; do not edit.
|
|
2
|
+
// Lucide alias names (older names kept for compatibility) mapped to the icon they draw.
|
|
3
|
+
export const ICON_ALIASES = {
|
|
4
|
+
"alarm-check": "AlarmClockCheck",
|
|
5
|
+
"alarm-minus": "AlarmClockMinus",
|
|
6
|
+
"alarm-plus": "AlarmClockPlus",
|
|
7
|
+
"arrow-down-az": "ArrowDownAZ",
|
|
8
|
+
"sort-desc": "ArrowDownWideNarrow",
|
|
9
|
+
"arrow-down-za": "ArrowDownZA",
|
|
10
|
+
"arrow-up-az": "ArrowUpAZ",
|
|
11
|
+
"sort-asc": "ArrowUpNarrowWide",
|
|
12
|
+
"arrow-up-za": "ArrowUpZA",
|
|
13
|
+
"axis-3-d": "Axis3d",
|
|
14
|
+
"verified": "BadgeCheck",
|
|
15
|
+
"badge-help": "BadgeQuestionMark",
|
|
16
|
+
"between-horizonal-end": "BetweenHorizontalEnd",
|
|
17
|
+
"between-horizonal-start": "BetweenHorizontalStart",
|
|
18
|
+
"book-template": "BookDashed",
|
|
19
|
+
"curly-braces": "Braces",
|
|
20
|
+
"subtitles": "Captions",
|
|
21
|
+
"area-chart": "ChartArea",
|
|
22
|
+
"bar-chart-horizontal-big": "ChartBarBig",
|
|
23
|
+
"bar-chart-horizontal": "ChartBar",
|
|
24
|
+
"candlestick-chart": "ChartCandlestick",
|
|
25
|
+
"bar-chart-big": "ChartColumnBig",
|
|
26
|
+
"bar-chart-4": "ChartColumnIncreasing",
|
|
27
|
+
"bar-chart-3": "ChartColumn",
|
|
28
|
+
"line-chart": "ChartLine",
|
|
29
|
+
"bar-chart": "ChartNoAxesColumnIncreasing",
|
|
30
|
+
"bar-chart-2": "ChartNoAxesColumn",
|
|
31
|
+
"gantt-chart": "ChartNoAxesGantt",
|
|
32
|
+
"pie-chart": "ChartPie",
|
|
33
|
+
"scatter-chart": "ChartScatter",
|
|
34
|
+
"alert-circle": "CircleAlert",
|
|
35
|
+
"arrow-down-circle": "CircleArrowDown",
|
|
36
|
+
"arrow-left-circle": "CircleArrowLeft",
|
|
37
|
+
"arrow-down-left-from-circle": "CircleArrowOutDownLeft",
|
|
38
|
+
"arrow-down-right-from-circle": "CircleArrowOutDownRight",
|
|
39
|
+
"arrow-up-left-from-circle": "CircleArrowOutUpLeft",
|
|
40
|
+
"arrow-up-right-from-circle": "CircleArrowOutUpRight",
|
|
41
|
+
"arrow-right-circle": "CircleArrowRight",
|
|
42
|
+
"arrow-up-circle": "CircleArrowUp",
|
|
43
|
+
"check-circle": "CircleCheckBig",
|
|
44
|
+
"check-circle-2": "CircleCheck",
|
|
45
|
+
"chevron-down-circle": "CircleChevronDown",
|
|
46
|
+
"chevron-left-circle": "CircleChevronLeft",
|
|
47
|
+
"chevron-right-circle": "CircleChevronRight",
|
|
48
|
+
"chevron-up-circle": "CircleChevronUp",
|
|
49
|
+
"divide-circle": "CircleDivide",
|
|
50
|
+
"gauge-circle": "CircleGauge",
|
|
51
|
+
"minus-circle": "CircleMinus",
|
|
52
|
+
"parking-circle-off": "CircleParkingOff",
|
|
53
|
+
"parking-circle": "CircleParking",
|
|
54
|
+
"pause-circle": "CirclePause",
|
|
55
|
+
"percent-circle": "CirclePercent",
|
|
56
|
+
"play-circle": "CirclePlay",
|
|
57
|
+
"plus-circle": "CirclePlus",
|
|
58
|
+
"power-circle": "CirclePower",
|
|
59
|
+
"help-circle": "CircleQuestionMark",
|
|
60
|
+
"circle-help": "CircleQuestionMark",
|
|
61
|
+
"circle-slashed": "CircleSlash2",
|
|
62
|
+
"stop-circle": "CircleStop",
|
|
63
|
+
"user-circle-2": "CircleUserRound",
|
|
64
|
+
"user-circle": "CircleUser",
|
|
65
|
+
"x-circle": "CircleX",
|
|
66
|
+
"clipboard-signature": "ClipboardPenLine",
|
|
67
|
+
"clipboard-edit": "ClipboardPen",
|
|
68
|
+
"download-cloud": "CloudDownload",
|
|
69
|
+
"upload-cloud": "CloudUpload",
|
|
70
|
+
"code-2": "CodeXml",
|
|
71
|
+
"columns": "Columns2",
|
|
72
|
+
"columns-settings": "Columns3Cog",
|
|
73
|
+
"table-config": "Columns3Cog",
|
|
74
|
+
"panels-left-right": "Columns3",
|
|
75
|
+
"contact-2": "ContactRound",
|
|
76
|
+
"percent-diamond": "DiamondPercent",
|
|
77
|
+
"globe-2": "Earth",
|
|
78
|
+
"more-vertical": "EllipsisVertical",
|
|
79
|
+
"more-horizontal": "Ellipsis",
|
|
80
|
+
"angry": "FaceAngry",
|
|
81
|
+
"annoyed": "FaceExpressionless",
|
|
82
|
+
"laugh": "FaceGrinning",
|
|
83
|
+
"meh": "FaceNeutral",
|
|
84
|
+
"frown": "FaceSlightlyFrowning",
|
|
85
|
+
"smile-plus": "FaceSlightlySmilingPlus",
|
|
86
|
+
"smile": "FaceSlightlySmiling",
|
|
87
|
+
"file-axis-3-d": "FileAxis3d",
|
|
88
|
+
"file-badge-2": "FileBadge",
|
|
89
|
+
"file-json-2": "FileBracesCorner",
|
|
90
|
+
"file-json": "FileBraces",
|
|
91
|
+
"file-bar-chart": "FileChartColumnIncreasing",
|
|
92
|
+
"file-bar-chart-2": "FileChartColumn",
|
|
93
|
+
"file-line-chart": "FileChartLine",
|
|
94
|
+
"file-pie-chart": "FileChartPie",
|
|
95
|
+
"file-check-2": "FileCheckCorner",
|
|
96
|
+
"file-code-2": "FileCodeCorner",
|
|
97
|
+
"file-cog-2": "FileCog",
|
|
98
|
+
"file-warning": "FileExclamationPoint",
|
|
99
|
+
"file-audio": "FileHeadphone",
|
|
100
|
+
"file-audio-2": "FileHeadphone",
|
|
101
|
+
"file-key-2": "FileKey",
|
|
102
|
+
"file-lock-2": "FileLock",
|
|
103
|
+
"file-minus-2": "FileMinusCorner",
|
|
104
|
+
"file-signature": "FilePenLine",
|
|
105
|
+
"file-edit": "FilePen",
|
|
106
|
+
"file-video": "FilePlay",
|
|
107
|
+
"file-plus-2": "FilePlusCorner",
|
|
108
|
+
"file-question": "FileQuestionMark",
|
|
109
|
+
"file-search-2": "FileSearchCorner",
|
|
110
|
+
"file-volume-2": "FileSignal",
|
|
111
|
+
"file-type-2": "FileTypeCorner",
|
|
112
|
+
"file-video-2": "FileVideoCamera",
|
|
113
|
+
"file-x-2": "FileXCorner",
|
|
114
|
+
"fingerprint": "FingerprintPattern",
|
|
115
|
+
"folder-cog-2": "FolderCog",
|
|
116
|
+
"folder-edit": "FolderPen",
|
|
117
|
+
"filter-x": "FunnelX",
|
|
118
|
+
"filter": "Funnel",
|
|
119
|
+
"git-commit": "GitCommitHorizontal",
|
|
120
|
+
"grid-2-x-2-check": "Grid2x2Check",
|
|
121
|
+
"grid-2-x-2-plus": "Grid2x2Plus",
|
|
122
|
+
"grid-2-x-2-x": "Grid2x2X",
|
|
123
|
+
"grid-2-x-2": "Grid2x2",
|
|
124
|
+
"grid": "Grid3x3",
|
|
125
|
+
"grid-3-x-3": "Grid3x3",
|
|
126
|
+
"grab": "HandGrab",
|
|
127
|
+
"helping-hand": "HandHelping",
|
|
128
|
+
"home": "House",
|
|
129
|
+
"ice-cream-2": "IceCreamBowl",
|
|
130
|
+
"ice-cream": "IceCreamCone",
|
|
131
|
+
"laptop-2": "LaptopMinimal",
|
|
132
|
+
"layers-3": "Layers",
|
|
133
|
+
"outdent": "ListIndentDecrease",
|
|
134
|
+
"indent-decrease": "ListIndentDecrease",
|
|
135
|
+
"indent": "ListIndentIncrease",
|
|
136
|
+
"indent-increase": "ListIndentIncrease",
|
|
137
|
+
"loader-2": "LoaderCircle",
|
|
138
|
+
"unlock-keyhole": "LockKeyholeOpen",
|
|
139
|
+
"unlock": "LockOpen",
|
|
140
|
+
"mail-question": "MailQuestionMark",
|
|
141
|
+
"location-edit": "MapPinPen",
|
|
142
|
+
"message-circle-question": "MessageCircleQuestionMark",
|
|
143
|
+
"podcast": "MicSignal",
|
|
144
|
+
"mic-2": "MicVocal",
|
|
145
|
+
"move-3-d": "Move3d",
|
|
146
|
+
"alert-octagon": "OctagonAlert",
|
|
147
|
+
"pause-octagon": "OctagonPause",
|
|
148
|
+
"x-octagon": "OctagonX",
|
|
149
|
+
"paintbrush-2": "PaintbrushVertical",
|
|
150
|
+
"panel-bottom-inactive": "PanelBottomDashed",
|
|
151
|
+
"sidebar-close": "PanelLeftClose",
|
|
152
|
+
"panel-left-inactive": "PanelLeftDashed",
|
|
153
|
+
"sidebar-open": "PanelLeftOpen",
|
|
154
|
+
"sidebar": "PanelLeft",
|
|
155
|
+
"panel-right-inactive": "PanelRightDashed",
|
|
156
|
+
"panel-top-inactive": "PanelTopDashed",
|
|
157
|
+
"layout": "PanelsTopLeft",
|
|
158
|
+
"edit-3": "PenLine",
|
|
159
|
+
"edit-2": "Pen",
|
|
160
|
+
"plug-zap-2": "PlugZap",
|
|
161
|
+
"form-input": "RectangleEllipsis",
|
|
162
|
+
"rotate-3-d": "Rotate3d",
|
|
163
|
+
"history": "RotateCcwClock",
|
|
164
|
+
"rows": "Rows2",
|
|
165
|
+
"panels-top-bottom": "Rows3",
|
|
166
|
+
"scale-3-d": "Scale3d",
|
|
167
|
+
"send-horizonal": "SendHorizontal",
|
|
168
|
+
"shield-question": "ShieldQuestionMark",
|
|
169
|
+
"shield-close": "ShieldX",
|
|
170
|
+
"sliders": "SlidersVertical",
|
|
171
|
+
"stars": "Sparkles",
|
|
172
|
+
"activity-square": "SquareActivity",
|
|
173
|
+
"arrow-down-left-square": "SquareArrowDownLeft",
|
|
174
|
+
"arrow-down-right-square": "SquareArrowDownRight",
|
|
175
|
+
"arrow-down-square": "SquareArrowDown",
|
|
176
|
+
"arrow-left-square": "SquareArrowLeft",
|
|
177
|
+
"arrow-down-left-from-square": "SquareArrowOutDownLeft",
|
|
178
|
+
"arrow-down-right-from-square": "SquareArrowOutDownRight",
|
|
179
|
+
"arrow-up-left-from-square": "SquareArrowOutUpLeft",
|
|
180
|
+
"arrow-up-right-from-square": "SquareArrowOutUpRight",
|
|
181
|
+
"arrow-right-square": "SquareArrowRight",
|
|
182
|
+
"arrow-up-left-square": "SquareArrowUpLeft",
|
|
183
|
+
"arrow-up-right-square": "SquareArrowUpRight",
|
|
184
|
+
"arrow-up-square": "SquareArrowUp",
|
|
185
|
+
"asterisk-square": "SquareAsterisk",
|
|
186
|
+
"scissors-square-dashed-bottom": "SquareBottomDashedScissors",
|
|
187
|
+
"flip-horizontal": "SquareCenterlineDashedHorizontal",
|
|
188
|
+
"flip-vertical": "SquareCenterlineDashedVertical",
|
|
189
|
+
"gantt-chart-square": "SquareChartGantt",
|
|
190
|
+
"square-gantt-chart": "SquareChartGantt",
|
|
191
|
+
"check-square": "SquareCheckBig",
|
|
192
|
+
"check-square-2": "SquareCheck",
|
|
193
|
+
"chevron-down-square": "SquareChevronDown",
|
|
194
|
+
"chevron-left-square": "SquareChevronLeft",
|
|
195
|
+
"chevron-right-square": "SquareChevronRight",
|
|
196
|
+
"chevron-up-square": "SquareChevronUp",
|
|
197
|
+
"code-square": "SquareCode",
|
|
198
|
+
"kanban-square-dashed": "SquareDashedKanban",
|
|
199
|
+
"mouse-pointer-square-dashed": "SquareDashedMousePointer",
|
|
200
|
+
"text-selection": "SquareDashedText",
|
|
201
|
+
"text-select": "SquareDashedText",
|
|
202
|
+
"box-select": "SquareDashed",
|
|
203
|
+
"divide-square": "SquareDivide",
|
|
204
|
+
"dot-square": "SquareDot",
|
|
205
|
+
"equal-square": "SquareEqual",
|
|
206
|
+
"function-square": "SquareFunction",
|
|
207
|
+
"kanban-square": "SquareKanban",
|
|
208
|
+
"library-square": "SquareLibrary",
|
|
209
|
+
"m-square": "SquareM",
|
|
210
|
+
"menu-square": "SquareMenu",
|
|
211
|
+
"minus-square": "SquareMinus",
|
|
212
|
+
"inspect": "SquareMousePointer",
|
|
213
|
+
"parking-square-off": "SquareParkingOff",
|
|
214
|
+
"parking-square": "SquareParking",
|
|
215
|
+
"pen-box": "SquarePen",
|
|
216
|
+
"edit": "SquarePen",
|
|
217
|
+
"pen-square": "SquarePen",
|
|
218
|
+
"percent-square": "SquarePercent",
|
|
219
|
+
"pi-square": "SquarePi",
|
|
220
|
+
"pilcrow-square": "SquarePilcrow",
|
|
221
|
+
"play-square": "SquarePlay",
|
|
222
|
+
"plus-square": "SquarePlus",
|
|
223
|
+
"power-square": "SquarePower",
|
|
224
|
+
"scissors-square": "SquareScissors",
|
|
225
|
+
"sigma-square": "SquareSigma",
|
|
226
|
+
"slash-square": "SquareSlash",
|
|
227
|
+
"split-square-horizontal": "SquareSplitHorizontal",
|
|
228
|
+
"split-square-vertical": "SquareSplitVertical",
|
|
229
|
+
"terminal-square": "SquareTerminal",
|
|
230
|
+
"user-square-2": "SquareUserRound",
|
|
231
|
+
"user-square": "SquareUser",
|
|
232
|
+
"x-square": "SquareX",
|
|
233
|
+
"test-tube-2": "TestTubeDiagonal",
|
|
234
|
+
"align-center": "TextAlignCenter",
|
|
235
|
+
"align-right": "TextAlignEnd",
|
|
236
|
+
"align-justify": "TextAlignJustify",
|
|
237
|
+
"text": "TextAlignStart",
|
|
238
|
+
"align-left": "TextAlignStart",
|
|
239
|
+
"letter-text": "TextInitial",
|
|
240
|
+
"wrap-text": "TextWrap",
|
|
241
|
+
"train": "TramFront",
|
|
242
|
+
"palmtree": "TreePalm",
|
|
243
|
+
"alert-triangle": "TriangleAlert",
|
|
244
|
+
"tv-2": "TvMinimal",
|
|
245
|
+
"school-2": "University",
|
|
246
|
+
"user-check-2": "UserRoundCheck",
|
|
247
|
+
"user-cog-2": "UserRoundCog",
|
|
248
|
+
"user-minus-2": "UserRoundMinus",
|
|
249
|
+
"user-plus-2": "UserRoundPlus",
|
|
250
|
+
"user-x-2": "UserRoundX",
|
|
251
|
+
"user-2": "UserRound",
|
|
252
|
+
"users-2": "UsersRound",
|
|
253
|
+
"fork-knife-crossed": "UtensilsCrossed",
|
|
254
|
+
"fork-knife": "Utensils",
|
|
255
|
+
"wallet-2": "WalletMinimal",
|
|
256
|
+
"wand-2": "WandSparkles",
|
|
257
|
+
"waves": "WavesHorizontal",
|
|
258
|
+
};
|
|
259
|
+
//# sourceMappingURL=icon-aliases.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-aliases.js","sourceRoot":"","sources":["../../src/display/icon-aliases.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,wFAAwF;AACxF,MAAM,CAAC,MAAM,YAAY,GAAqC;IAC5D,aAAa,EAAE,iBAAiB;IAChC,aAAa,EAAE,iBAAiB;IAChC,YAAY,EAAE,gBAAgB;IAC9B,eAAe,EAAE,aAAa;IAC9B,WAAW,EAAE,qBAAqB;IAClC,eAAe,EAAE,aAAa;IAC9B,aAAa,EAAE,WAAW;IAC1B,UAAU,EAAE,mBAAmB;IAC/B,aAAa,EAAE,WAAW;IAC1B,UAAU,EAAE,QAAQ;IACpB,UAAU,EAAE,YAAY;IACxB,YAAY,EAAE,mBAAmB;IACjC,uBAAuB,EAAE,sBAAsB;IAC/C,yBAAyB,EAAE,wBAAwB;IACnD,eAAe,EAAE,YAAY;IAC7B,cAAc,EAAE,QAAQ;IACxB,WAAW,EAAE,UAAU;IACvB,YAAY,EAAE,WAAW;IACzB,0BAA0B,EAAE,aAAa;IACzC,sBAAsB,EAAE,UAAU;IAClC,mBAAmB,EAAE,kBAAkB;IACvC,eAAe,EAAE,gBAAgB;IACjC,aAAa,EAAE,uBAAuB;IACtC,aAAa,EAAE,aAAa;IAC5B,YAAY,EAAE,WAAW;IACzB,WAAW,EAAE,6BAA6B;IAC1C,aAAa,EAAE,mBAAmB;IAClC,aAAa,EAAE,kBAAkB;IACjC,WAAW,EAAE,UAAU;IACvB,eAAe,EAAE,cAAc;IAC/B,cAAc,EAAE,aAAa;IAC7B,mBAAmB,EAAE,iBAAiB;IACtC,mBAAmB,EAAE,iBAAiB;IACtC,6BAA6B,EAAE,wBAAwB;IACvD,8BAA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7B,iBAAiB,EAAE,gBAAgB;IACnC,cAAc,EAAE,aAAa;IAC7B,cAAc,EAAE,aAAa;IAC7B,yBAAyB,EAAE,uBAAuB;IAClD,uBAAuB,EAAE,qBAAqB;IAC9C,iBAAiB,EAAE,gBAAgB;IACnC,eAAe,EAAE,iBAAiB;IAClC,aAAa,EAAE,YAAY;IAC3B,UAAU,EAAE,SAAS;IACrB,aAAa,EAAE,kBAAkB;IACjC,cAAc,EAAE,iBAAiB;IACjC,aAAa,EAAE,cAAc;IAC7B,eAAe,EAAE,kBAAkB;IACnC,MAAM,EAAE,gBAAgB;IACxB,YAAY,EAAE,gBAAgB;IAC9B,aAAa,EAAE,aAAa;IAC5B,WAAW,EAAE,UAAU;IACvB,OAAO,EAAE,WAAW;IACpB,UAAU,EAAE,UAAU;IACtB,gBAAgB,EAAE,eAAe;IACjC,MAAM,EAAE,WAAW;IACnB,UAAU,EAAE,YAAY;IACxB,cAAc,EAAE,gBAAgB;IAChC,YAAY,EAAE,cAAc;IAC5B,cAAc,EAAE,gBAAgB;IAChC,aAAa,EAAE,eAAe;IAC9B,UAAU,EAAE,YAAY;IACxB,QAAQ,EAAE,WAAW;IACrB,SAAS,EAAE,YAAY;IACvB,oBAAoB,EAAE,iBAAiB;IACvC,YAAY,EAAE,UAAU;IACxB,UAAU,EAAE,eAAe;IAC3B,QAAQ,EAAE,cAAc;IACxB,OAAO,EAAE,iBAAiB;CAC3B,CAAC","sourcesContent":["// Generated from lucide-react 1.34.0 by scripts/build-icon-aliases.mjs; do not edit.\n// Lucide alias names (older names kept for compatibility) mapped to the icon they draw.\nexport const ICON_ALIASES: Readonly<Record<string, string>> = {\n \"alarm-check\": \"AlarmClockCheck\",\n \"alarm-minus\": \"AlarmClockMinus\",\n \"alarm-plus\": \"AlarmClockPlus\",\n \"arrow-down-az\": \"ArrowDownAZ\",\n \"sort-desc\": \"ArrowDownWideNarrow\",\n \"arrow-down-za\": \"ArrowDownZA\",\n \"arrow-up-az\": \"ArrowUpAZ\",\n \"sort-asc\": \"ArrowUpNarrowWide\",\n \"arrow-up-za\": \"ArrowUpZA\",\n \"axis-3-d\": \"Axis3d\",\n \"verified\": \"BadgeCheck\",\n \"badge-help\": \"BadgeQuestionMark\",\n \"between-horizonal-end\": \"BetweenHorizontalEnd\",\n \"between-horizonal-start\": \"BetweenHorizontalStart\",\n \"book-template\": \"BookDashed\",\n \"curly-braces\": \"Braces\",\n \"subtitles\": \"Captions\",\n \"area-chart\": \"ChartArea\",\n \"bar-chart-horizontal-big\": \"ChartBarBig\",\n \"bar-chart-horizontal\": \"ChartBar\",\n \"candlestick-chart\": \"ChartCandlestick\",\n \"bar-chart-big\": \"ChartColumnBig\",\n \"bar-chart-4\": \"ChartColumnIncreasing\",\n \"bar-chart-3\": \"ChartColumn\",\n \"line-chart\": \"ChartLine\",\n \"bar-chart\": \"ChartNoAxesColumnIncreasing\",\n \"bar-chart-2\": \"ChartNoAxesColumn\",\n \"gantt-chart\": \"ChartNoAxesGantt\",\n \"pie-chart\": \"ChartPie\",\n \"scatter-chart\": \"ChartScatter\",\n \"alert-circle\": \"CircleAlert\",\n \"arrow-down-circle\": \"CircleArrowDown\",\n \"arrow-left-circle\": \"CircleArrowLeft\",\n \"arrow-down-left-from-circle\": \"CircleArrowOutDownLeft\",\n \"arrow-down-right-from-circle\": \"CircleArrowOutDownRight\",\n \"arrow-up-left-from-circle\": \"CircleArrowOutUpLeft\",\n \"arrow-up-right-from-circle\": \"CircleArrowOutUpRight\",\n \"arrow-right-circle\": \"CircleArrowRight\",\n \"arrow-up-circle\": \"CircleArrowUp\",\n \"check-circle\": \"CircleCheckBig\",\n \"check-circle-2\": \"CircleCheck\",\n \"chevron-down-circle\": \"CircleChevronDown\",\n \"chevron-left-circle\": \"CircleChevronLeft\",\n \"chevron-right-circle\": \"CircleChevronRight\",\n \"chevron-up-circle\": \"CircleChevronUp\",\n \"divide-circle\": \"CircleDivide\",\n \"gauge-circle\": \"CircleGauge\",\n \"minus-circle\": \"CircleMinus\",\n \"parking-circle-off\": \"CircleParkingOff\",\n \"parking-circle\": \"CircleParking\",\n \"pause-circle\": \"CirclePause\",\n \"percent-circle\": \"CirclePercent\",\n \"play-circle\": \"CirclePlay\",\n \"plus-circle\": \"CirclePlus\",\n \"power-circle\": \"CirclePower\",\n \"help-circle\": \"CircleQuestionMark\",\n \"circle-help\": \"CircleQuestionMark\",\n \"circle-slashed\": \"CircleSlash2\",\n \"stop-circle\": \"CircleStop\",\n \"user-circle-2\": \"CircleUserRound\",\n \"user-circle\": \"CircleUser\",\n \"x-circle\": \"CircleX\",\n \"clipboard-signature\": \"ClipboardPenLine\",\n \"clipboard-edit\": \"ClipboardPen\",\n \"download-cloud\": \"CloudDownload\",\n \"upload-cloud\": \"CloudUpload\",\n \"code-2\": \"CodeXml\",\n \"columns\": \"Columns2\",\n \"columns-settings\": \"Columns3Cog\",\n \"table-config\": \"Columns3Cog\",\n \"panels-left-right\": \"Columns3\",\n \"contact-2\": \"ContactRound\",\n \"percent-diamond\": \"DiamondPercent\",\n \"globe-2\": \"Earth\",\n \"more-vertical\": \"EllipsisVertical\",\n \"more-horizontal\": \"Ellipsis\",\n \"angry\": \"FaceAngry\",\n \"annoyed\": \"FaceExpressionless\",\n \"laugh\": \"FaceGrinning\",\n \"meh\": \"FaceNeutral\",\n \"frown\": \"FaceSlightlyFrowning\",\n \"smile-plus\": \"FaceSlightlySmilingPlus\",\n \"smile\": \"FaceSlightlySmiling\",\n \"file-axis-3-d\": \"FileAxis3d\",\n \"file-badge-2\": \"FileBadge\",\n \"file-json-2\": \"FileBracesCorner\",\n \"file-json\": \"FileBraces\",\n \"file-bar-chart\": \"FileChartColumnIncreasing\",\n \"file-bar-chart-2\": \"FileChartColumn\",\n \"file-line-chart\": \"FileChartLine\",\n \"file-pie-chart\": \"FileChartPie\",\n \"file-check-2\": \"FileCheckCorner\",\n \"file-code-2\": \"FileCodeCorner\",\n \"file-cog-2\": \"FileCog\",\n \"file-warning\": \"FileExclamationPoint\",\n \"file-audio\": \"FileHeadphone\",\n \"file-audio-2\": \"FileHeadphone\",\n \"file-key-2\": \"FileKey\",\n \"file-lock-2\": \"FileLock\",\n \"file-minus-2\": \"FileMinusCorner\",\n \"file-signature\": \"FilePenLine\",\n \"file-edit\": \"FilePen\",\n \"file-video\": \"FilePlay\",\n \"file-plus-2\": \"FilePlusCorner\",\n \"file-question\": \"FileQuestionMark\",\n \"file-search-2\": \"FileSearchCorner\",\n \"file-volume-2\": \"FileSignal\",\n \"file-type-2\": \"FileTypeCorner\",\n \"file-video-2\": \"FileVideoCamera\",\n \"file-x-2\": \"FileXCorner\",\n \"fingerprint\": \"FingerprintPattern\",\n \"folder-cog-2\": \"FolderCog\",\n \"folder-edit\": \"FolderPen\",\n \"filter-x\": \"FunnelX\",\n \"filter\": \"Funnel\",\n \"git-commit\": \"GitCommitHorizontal\",\n \"grid-2-x-2-check\": \"Grid2x2Check\",\n \"grid-2-x-2-plus\": \"Grid2x2Plus\",\n \"grid-2-x-2-x\": \"Grid2x2X\",\n \"grid-2-x-2\": \"Grid2x2\",\n \"grid\": \"Grid3x3\",\n \"grid-3-x-3\": \"Grid3x3\",\n \"grab\": \"HandGrab\",\n \"helping-hand\": \"HandHelping\",\n \"home\": \"House\",\n \"ice-cream-2\": \"IceCreamBowl\",\n \"ice-cream\": \"IceCreamCone\",\n \"laptop-2\": \"LaptopMinimal\",\n \"layers-3\": \"Layers\",\n \"outdent\": \"ListIndentDecrease\",\n \"indent-decrease\": \"ListIndentDecrease\",\n \"indent\": \"ListIndentIncrease\",\n \"indent-increase\": \"ListIndentIncrease\",\n \"loader-2\": \"LoaderCircle\",\n \"unlock-keyhole\": \"LockKeyholeOpen\",\n \"unlock\": \"LockOpen\",\n \"mail-question\": \"MailQuestionMark\",\n \"location-edit\": \"MapPinPen\",\n \"message-circle-question\": \"MessageCircleQuestionMark\",\n \"podcast\": \"MicSignal\",\n \"mic-2\": \"MicVocal\",\n \"move-3-d\": \"Move3d\",\n \"alert-octagon\": \"OctagonAlert\",\n \"pause-octagon\": \"OctagonPause\",\n \"x-octagon\": \"OctagonX\",\n \"paintbrush-2\": \"PaintbrushVertical\",\n \"panel-bottom-inactive\": \"PanelBottomDashed\",\n \"sidebar-close\": \"PanelLeftClose\",\n \"panel-left-inactive\": \"PanelLeftDashed\",\n \"sidebar-open\": \"PanelLeftOpen\",\n \"sidebar\": \"PanelLeft\",\n \"panel-right-inactive\": \"PanelRightDashed\",\n \"panel-top-inactive\": \"PanelTopDashed\",\n \"layout\": \"PanelsTopLeft\",\n \"edit-3\": \"PenLine\",\n \"edit-2\": \"Pen\",\n \"plug-zap-2\": \"PlugZap\",\n \"form-input\": \"RectangleEllipsis\",\n \"rotate-3-d\": \"Rotate3d\",\n \"history\": \"RotateCcwClock\",\n \"rows\": \"Rows2\",\n \"panels-top-bottom\": \"Rows3\",\n \"scale-3-d\": \"Scale3d\",\n \"send-horizonal\": \"SendHorizontal\",\n \"shield-question\": \"ShieldQuestionMark\",\n \"shield-close\": \"ShieldX\",\n \"sliders\": \"SlidersVertical\",\n \"stars\": \"Sparkles\",\n \"activity-square\": \"SquareActivity\",\n \"arrow-down-left-square\": \"SquareArrowDownLeft\",\n \"arrow-down-right-square\": \"SquareArrowDownRight\",\n \"arrow-down-square\": \"SquareArrowDown\",\n \"arrow-left-square\": \"SquareArrowLeft\",\n \"arrow-down-left-from-square\": \"SquareArrowOutDownLeft\",\n \"arrow-down-right-from-square\": \"SquareArrowOutDownRight\",\n \"arrow-up-left-from-square\": \"SquareArrowOutUpLeft\",\n \"arrow-up-right-from-square\": \"SquareArrowOutUpRight\",\n \"arrow-right-square\": \"SquareArrowRight\",\n \"arrow-up-left-square\": \"SquareArrowUpLeft\",\n \"arrow-up-right-square\": \"SquareArrowUpRight\",\n \"arrow-up-square\": \"SquareArrowUp\",\n \"asterisk-square\": \"SquareAsterisk\",\n \"scissors-square-dashed-bottom\": \"SquareBottomDashedScissors\",\n \"flip-horizontal\": \"SquareCenterlineDashedHorizontal\",\n \"flip-vertical\": \"SquareCenterlineDashedVertical\",\n \"gantt-chart-square\": \"SquareChartGantt\",\n \"square-gantt-chart\": \"SquareChartGantt\",\n \"check-square\": \"SquareCheckBig\",\n \"check-square-2\": \"SquareCheck\",\n \"chevron-down-square\": \"SquareChevronDown\",\n \"chevron-left-square\": \"SquareChevronLeft\",\n \"chevron-right-square\": \"SquareChevronRight\",\n \"chevron-up-square\": \"SquareChevronUp\",\n \"code-square\": \"SquareCode\",\n \"kanban-square-dashed\": \"SquareDashedKanban\",\n \"mouse-pointer-square-dashed\": \"SquareDashedMousePointer\",\n \"text-selection\": \"SquareDashedText\",\n \"text-select\": \"SquareDashedText\",\n \"box-select\": \"SquareDashed\",\n \"divide-square\": \"SquareDivide\",\n \"dot-square\": \"SquareDot\",\n \"equal-square\": \"SquareEqual\",\n \"function-square\": \"SquareFunction\",\n \"kanban-square\": \"SquareKanban\",\n \"library-square\": \"SquareLibrary\",\n \"m-square\": \"SquareM\",\n \"menu-square\": \"SquareMenu\",\n \"minus-square\": \"SquareMinus\",\n \"inspect\": \"SquareMousePointer\",\n \"parking-square-off\": \"SquareParkingOff\",\n \"parking-square\": \"SquareParking\",\n \"pen-box\": \"SquarePen\",\n \"edit\": \"SquarePen\",\n \"pen-square\": \"SquarePen\",\n \"percent-square\": \"SquarePercent\",\n \"pi-square\": \"SquarePi\",\n \"pilcrow-square\": \"SquarePilcrow\",\n \"play-square\": \"SquarePlay\",\n \"plus-square\": \"SquarePlus\",\n \"power-square\": \"SquarePower\",\n \"scissors-square\": \"SquareScissors\",\n \"sigma-square\": \"SquareSigma\",\n \"slash-square\": \"SquareSlash\",\n \"split-square-horizontal\": \"SquareSplitHorizontal\",\n \"split-square-vertical\": \"SquareSplitVertical\",\n \"terminal-square\": \"SquareTerminal\",\n \"user-square-2\": \"SquareUserRound\",\n \"user-square\": \"SquareUser\",\n \"x-square\": \"SquareX\",\n \"test-tube-2\": \"TestTubeDiagonal\",\n \"align-center\": \"TextAlignCenter\",\n \"align-right\": \"TextAlignEnd\",\n \"align-justify\": \"TextAlignJustify\",\n \"text\": \"TextAlignStart\",\n \"align-left\": \"TextAlignStart\",\n \"letter-text\": \"TextInitial\",\n \"wrap-text\": \"TextWrap\",\n \"train\": \"TramFront\",\n \"palmtree\": \"TreePalm\",\n \"alert-triangle\": \"TriangleAlert\",\n \"tv-2\": \"TvMinimal\",\n \"school-2\": \"University\",\n \"user-check-2\": \"UserRoundCheck\",\n \"user-cog-2\": \"UserRoundCog\",\n \"user-minus-2\": \"UserRoundMinus\",\n \"user-plus-2\": \"UserRoundPlus\",\n \"user-x-2\": \"UserRoundX\",\n \"user-2\": \"UserRound\",\n \"users-2\": \"UsersRound\",\n \"fork-knife-crossed\": \"UtensilsCrossed\",\n \"fork-knife\": \"Utensils\",\n \"wallet-2\": \"WalletMinimal\",\n \"wand-2\": \"WandSparkles\",\n \"waves\": \"WavesHorizontal\",\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-names.js","sourceRoot":"","sources":["../../src/display/icon-names.ts"],"names":[],"mappings":"","sourcesContent":["// No \"use client\": plain data and types, readable from server components too.\nimport type { IconName } from \"lucide-react/dynamic\";\n\nexport type { IconName };\n\nexport type IconSize = \"small\" | \"medium\" | \"large\";\nexport type IconColor = \"inherit\" | \"default\" | \"subtle\" | \"brand\" | \"danger\" | \"warning\" | \"success\" | \"information\";\n"]}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type LucideIcon } from "lucide-react";
|
|
3
|
+
import type { IconColor, IconName, IconSize } from "./icon-names.js";
|
|
4
|
+
export type { IconColor, IconName, IconSize } from "./icon-names.js";
|
|
5
|
+
/** The Lucide component for a name, or undefined for a name Lucide does not have. */
|
|
6
|
+
export declare function resolveIcon(name: IconName): LucideIcon | undefined;
|
|
7
|
+
export type IconProps = {
|
|
8
|
+
/** Any Lucide name, kebab-case ("house", "search", "calendar-range"). */
|
|
9
|
+
name: IconName;
|
|
10
|
+
/** `small` 12px, `default` 16px, `large` 20px (`ds-size-icon-*`). */
|
|
11
|
+
size?: IconSize;
|
|
12
|
+
/** `inherit` (default) takes the text colour around it; the others are the `ds-icon-*` tokens. */
|
|
13
|
+
color?: IconColor;
|
|
14
|
+
/**
|
|
15
|
+
* The accessible name for an icon that carries meaning on its own. Without
|
|
16
|
+
* it the icon is decorative and hidden from assistive technology, which is
|
|
17
|
+
* right when text next to it already says the same thing.
|
|
18
|
+
*/
|
|
19
|
+
label?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Mirrors the icon on an RTL page. Left out, the names in `DIRECTIONAL_ICONS` (arrows and
|
|
22
|
+
* chevrons that point along the reading direction, undo/redo, send, sign in/out) mirror and every other
|
|
23
|
+
* icon stays as drawn. `true` mirrors any icon; `false` keeps a directional one as drawn (a compass arrow,
|
|
24
|
+
* a "swipe left" hint).
|
|
25
|
+
*/
|
|
26
|
+
isDirectional?: boolean;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Icons that point along the reading direction: on an RTL page "back" points right and
|
|
30
|
+
* "next" left, so they mirror. Clocks, check marks, brand marks and everything symmetric keep their drawing.
|
|
31
|
+
*/
|
|
32
|
+
export declare const DIRECTIONAL_ICONS: ReadonlySet<string>;
|
|
33
|
+
/**
|
|
34
|
+
* Mirrors on an RTL page. Tailwind's `rtl:` also matches inside an LTR island on that page (a calendar laid out in
|
|
35
|
+
* an LTR locale), so `:dir(ltr)` turns it back there.
|
|
36
|
+
*/
|
|
37
|
+
export declare const MIRROR_IN_RTL = "rtl:-scale-x-100 [&:dir(ltr)]:scale-x-100";
|
|
38
|
+
/** The DS-internal form: also takes classes and a stroke (12px marks use 3). Not exported from the package. */
|
|
39
|
+
export declare function IconGlyph({ name, size, color, label, isDirectional, className, strokeWidth, ...data }: IconProps & {
|
|
40
|
+
className?: string;
|
|
41
|
+
strokeWidth?: number;
|
|
42
|
+
"data-slot"?: string;
|
|
43
|
+
}): React.JSX.Element;
|
|
44
|
+
/**
|
|
45
|
+
* A Lucide icon by name. Apps never import `lucide-react` themselves; size,
|
|
46
|
+
* colour and the accessible label live here.
|
|
47
|
+
*/
|
|
48
|
+
export declare function Icon(props: IconProps): React.JSX.Element;
|
|
49
|
+
/** Marks `<Icon>` elements, so fields can tell an icon from a text addon (`prefix={<Icon name="search" />}`). */
|
|
50
|
+
export declare const ICON_ELEMENT: unique symbol;
|
|
51
|
+
export declare function isIconElement(node: React.ReactNode): node is React.ReactElement<IconProps>;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { icons } from "lucide-react";
|
|
5
|
+
import { cn } from "../utils.js";
|
|
6
|
+
import { ICON_ALIASES } from "./icon-aliases.js";
|
|
7
|
+
/**
|
|
8
|
+
* Every Lucide icon ships with the package: no loading state, no flicker, also on the server. They live
|
|
9
|
+
* in this one module, so an app's bundler keeps a single shared copy however
|
|
10
|
+
* many DS components and screens draw icons. Only Lucide's `icons` set
|
|
11
|
+
* ships, plus a small generated table for its alias names (icon-aliases.ts),
|
|
12
|
+
* which keeps the rest of the lucide-react namespace out of the bundle.
|
|
13
|
+
* Measured with esbuild for lucide-react 1.34.0 (1,777 icons + 254 aliases):
|
|
14
|
+
* this module is 633.6 KiB minified, 156.9 KiB gzip, 126.0 KiB brotli; the
|
|
15
|
+
* icons alone are 144.8 KiB gzip / 115.8 KiB brotli. The lucide-react peer
|
|
16
|
+
* range is ^1.34.0: the name table follows Lucide 1.x.
|
|
17
|
+
*/
|
|
18
|
+
const REGISTRY = icons;
|
|
19
|
+
const warned = new Set();
|
|
20
|
+
/** "trash-2" → "Trash2", "arrow-up-right" → "ArrowUpRight" (Lucide's own naming). */
|
|
21
|
+
function componentName(name) {
|
|
22
|
+
return name
|
|
23
|
+
.split("-")
|
|
24
|
+
.map((part) => part.charAt(0).toUpperCase() + part.slice(1))
|
|
25
|
+
.join("");
|
|
26
|
+
}
|
|
27
|
+
/** The Lucide component for a name, or undefined for a name Lucide does not have. */
|
|
28
|
+
export function resolveIcon(name) {
|
|
29
|
+
// Own names first ("trash-2" → Trash2), then Lucide's older alias names ("alarm-check" → AlarmClockCheck).
|
|
30
|
+
const key = Object.hasOwn(ICON_ALIASES, name) ? ICON_ALIASES[name] : componentName(name);
|
|
31
|
+
return Object.hasOwn(REGISTRY, key) ? REGISTRY[key] : undefined;
|
|
32
|
+
}
|
|
33
|
+
const SIZE = {
|
|
34
|
+
small: "size-ds-icon-small",
|
|
35
|
+
medium: "size-ds-icon",
|
|
36
|
+
large: "size-ds-icon-large",
|
|
37
|
+
};
|
|
38
|
+
const COLOR = {
|
|
39
|
+
inherit: "",
|
|
40
|
+
default: "text-ds-icon",
|
|
41
|
+
subtle: "text-ds-icon-subtle",
|
|
42
|
+
brand: "text-ds-icon-brand",
|
|
43
|
+
danger: "text-ds-icon-danger",
|
|
44
|
+
warning: "text-ds-icon-warning",
|
|
45
|
+
success: "text-ds-icon-success",
|
|
46
|
+
information: "text-ds-icon-information",
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Icons that point along the reading direction: on an RTL page "back" points right and
|
|
50
|
+
* "next" left, so they mirror. Clocks, check marks, brand marks and everything symmetric keep their drawing.
|
|
51
|
+
*/
|
|
52
|
+
export const DIRECTIONAL_ICONS = new Set([
|
|
53
|
+
"arrow-left", "arrow-right", "arrow-up-left", "arrow-up-right", "arrow-down-left", "arrow-down-right",
|
|
54
|
+
"arrow-left-to-line", "arrow-right-to-line", "arrow-big-left", "arrow-big-right",
|
|
55
|
+
"chevron-left", "chevron-right", "chevrons-left", "chevrons-right", "chevron-first", "chevron-last",
|
|
56
|
+
"circle-arrow-left", "circle-arrow-right", "move-left", "move-right",
|
|
57
|
+
"undo", "undo-2", "redo", "redo-2", "reply", "reply-all", "forward",
|
|
58
|
+
"send", "send-horizontal", "log-in", "log-out", "external-link", "square-arrow-out-up-right",
|
|
59
|
+
]);
|
|
60
|
+
/**
|
|
61
|
+
* Mirrors on an RTL page. Tailwind's `rtl:` also matches inside an LTR island on that page (a calendar laid out in
|
|
62
|
+
* an LTR locale), so `:dir(ltr)` turns it back there.
|
|
63
|
+
*/
|
|
64
|
+
export const MIRROR_IN_RTL = "rtl:-scale-x-100 [&:dir(ltr)]:scale-x-100";
|
|
65
|
+
/** The DS-internal form: also takes classes and a stroke (12px marks use 3). Not exported from the package. */
|
|
66
|
+
export function IconGlyph({ name, size = "medium", color = "inherit", label, isDirectional, className, strokeWidth = 2, ...data }) {
|
|
67
|
+
const Component = resolveIcon(name);
|
|
68
|
+
const a11y = label ? { role: "img", "aria-label": label } : { "aria-hidden": true };
|
|
69
|
+
const mirrored = isDirectional ?? DIRECTIONAL_ICONS.has(name);
|
|
70
|
+
const classes = cn("shrink-0", SIZE[size], COLOR[color], mirrored && MIRROR_IN_RTL, className);
|
|
71
|
+
const slot = data["data-slot"] ?? "icon";
|
|
72
|
+
if (!Component) {
|
|
73
|
+
// A name Lucide does not have (a typo past the types, or a name newer than the shipped table):
|
|
74
|
+
// keep the box so the layout holds, and say so once.
|
|
75
|
+
if (!warned.has(name)) {
|
|
76
|
+
warned.add(name);
|
|
77
|
+
console.warn(`[@senvenli/react] Icon "${name}" is not in the shipped Lucide set.`);
|
|
78
|
+
}
|
|
79
|
+
return _jsx("span", { ...a11y, "data-slot": slot, "data-icon": name, "data-missing": "", className: cn("inline-block", classes) });
|
|
80
|
+
}
|
|
81
|
+
return _jsx(Component, { ...a11y, "data-slot": slot, "data-icon": name, strokeWidth: strokeWidth, className: classes });
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* A Lucide icon by name. Apps never import `lucide-react` themselves; size,
|
|
85
|
+
* colour and the accessible label live here.
|
|
86
|
+
*/
|
|
87
|
+
export function Icon(props) {
|
|
88
|
+
return _jsx(IconGlyph, { ...props });
|
|
89
|
+
}
|
|
90
|
+
/** Marks `<Icon>` elements, so fields can tell an icon from a text addon (`prefix={<Icon name="search" />}`). */
|
|
91
|
+
export const ICON_ELEMENT = Symbol.for("senvenli.ds.icon");
|
|
92
|
+
Icon[ICON_ELEMENT] = true;
|
|
93
|
+
export function isIconElement(node) {
|
|
94
|
+
return React.isValidElement(node) && typeof node.type === "function" && node.type[ICON_ELEMENT] === true;
|
|
95
|
+
}
|
|
96
|
+
//# sourceMappingURL=icon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon.js","sourceRoot":"","sources":["../../src/display/icon.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAmB,MAAM,cAAc,CAAC;AAEtD,OAAO,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAK9C;;;;;;;;;;GAUG;AACH,MAAM,QAAQ,GAAG,KAA8C,CAAC;AAChE,MAAM,MAAM,GAAG,IAAI,GAAG,EAAU,CAAC;AAEjC,qFAAqF;AACrF,SAAS,aAAa,CAAC,IAAY;IACjC,OAAO,IAAI;SACR,KAAK,CAAC,GAAG,CAAC;SACV,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;SAC3D,IAAI,CAAC,EAAE,CAAC,CAAC;AACd,CAAC;AAED,qFAAqF;AACrF,MAAM,UAAU,WAAW,CAAC,IAAc;IACxC,2GAA2G;IAC3G,MAAM,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IACzF,OAAO,MAAM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Y,GAAG,MAAM,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;AAC1D,IAA2C,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC;AAElE,MAAM,UAAU,aAAa,CAAC,IAAqB;IACjD,OAAO,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,OAAO,IAAI,CAAC,IAAI,KAAK,UAAU,IAAK,IAAI,CAAC,IAA2C,CAAC,YAAY,CAAC,KAAK,IAAI,CAAC;AACnJ,CAAC","sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { icons, type LucideIcon } from \"lucide-react\";\n\nimport { cn } from \"../utils\";\nimport { ICON_ALIASES } from \"./icon-aliases\";\nimport type { IconColor, IconName, IconSize } from \"./icon-names\";\n\nexport type { IconColor, IconName, IconSize } from \"./icon-names\";\n\n/**\n * Every Lucide icon ships with the package: no loading state, no flicker, also on the server. They live\n * in this one module, so an app's bundler keeps a single shared copy however\n * many DS components and screens draw icons. Only Lucide's `icons` set\n * ships, plus a small generated table for its alias names (icon-aliases.ts),\n * which keeps the rest of the lucide-react namespace out of the bundle.\n * Measured with esbuild for lucide-react 1.34.0 (1,777 icons + 254 aliases):\n * this module is 633.6 KiB minified, 156.9 KiB gzip, 126.0 KiB brotli; the\n * icons alone are 144.8 KiB gzip / 115.8 KiB brotli. The lucide-react peer\n * range is ^1.34.0: the name table follows Lucide 1.x.\n */\nconst REGISTRY = icons as unknown as Record<string, LucideIcon>;\nconst warned = new Set<string>();\n\n/** \"trash-2\" → \"Trash2\", \"arrow-up-right\" → \"ArrowUpRight\" (Lucide's own naming). */\nfunction componentName(name: string) {\n return name\n .split(\"-\")\n .map((part) => part.charAt(0).toUpperCase() + part.slice(1))\n .join(\"\");\n}\n\n/** The Lucide component for a name, or undefined for a name Lucide does not have. */\nexport function resolveIcon(name: IconName): LucideIcon | undefined {\n // Own names first (\"trash-2\" → Trash2), then Lucide's older alias names (\"alarm-check\" → AlarmClockCheck).\n const key = Object.hasOwn(ICON_ALIASES, name) ? ICON_ALIASES[name] : componentName(name);\n return Object.hasOwn(REGISTRY, key) ? REGISTRY[key] : undefined;\n}\n\nconst SIZE: Record<IconSize, string> = {\n small: \"size-ds-icon-small\",\n medium: \"size-ds-icon\",\n large: \"size-ds-icon-large\",\n};\n\nconst COLOR: Record<IconColor, string> = {\n inherit: \"\",\n default: \"text-ds-icon\",\n subtle: \"text-ds-icon-subtle\",\n brand: \"text-ds-icon-brand\",\n danger: \"text-ds-icon-danger\",\n warning: \"text-ds-icon-warning\",\n success: \"text-ds-icon-success\",\n information: \"text-ds-icon-information\",\n};\n\nexport type IconProps = {\n /** Any Lucide name, kebab-case (\"house\", \"search\", \"calendar-range\"). */\n name: IconName;\n /** `small` 12px, `default` 16px, `large` 20px (`ds-size-icon-*`). */\n size?: IconSize;\n /** `inherit` (default) takes the text colour around it; the others are the `ds-icon-*` tokens. */\n color?: IconColor;\n /**\n * The accessible name for an icon that carries meaning on its own. Without\n * it the icon is decorative and hidden from assistive technology, which is\n * right when text next to it already says the same thing.\n */\n label?: string;\n /**\n * Mirrors the icon on an RTL page. Left out, the names in `DIRECTIONAL_ICONS` (arrows and\n * chevrons that point along the reading direction, undo/redo, send, sign in/out) mirror and every other\n * icon stays as drawn. `true` mirrors any icon; `false` keeps a directional one as drawn (a compass arrow,\n * a \"swipe left\" hint).\n */\n isDirectional?: boolean;\n};\n\n/**\n * Icons that point along the reading direction: on an RTL page \"back\" points right and\n * \"next\" left, so they mirror. Clocks, check marks, brand marks and everything symmetric keep their drawing.\n */\nexport const DIRECTIONAL_ICONS: ReadonlySet<string> = new Set([\n \"arrow-left\", \"arrow-right\", \"arrow-up-left\", \"arrow-up-right\", \"arrow-down-left\", \"arrow-down-right\",\n \"arrow-left-to-line\", \"arrow-right-to-line\", \"arrow-big-left\", \"arrow-big-right\",\n \"chevron-left\", \"chevron-right\", \"chevrons-left\", \"chevrons-right\", \"chevron-first\", \"chevron-last\",\n \"circle-arrow-left\", \"circle-arrow-right\", \"move-left\", \"move-right\",\n \"undo\", \"undo-2\", \"redo\", \"redo-2\", \"reply\", \"reply-all\", \"forward\",\n \"send\", \"send-horizontal\", \"log-in\", \"log-out\", \"external-link\", \"square-arrow-out-up-right\",\n]);\n\n/**\n * Mirrors on an RTL page. Tailwind's `rtl:` also matches inside an LTR island on that page (a calendar laid out in\n * an LTR locale), so `:dir(ltr)` turns it back there.\n */\nexport const MIRROR_IN_RTL = \"rtl:-scale-x-100 [&:dir(ltr)]:scale-x-100\";\n\n/** The DS-internal form: also takes classes and a stroke (12px marks use 3). Not exported from the package. */\nexport function IconGlyph({\n name, size = \"medium\", color = \"inherit\", label, isDirectional, className, strokeWidth = 2, ...data\n}: IconProps & { className?: string; strokeWidth?: number; \"data-slot\"?: string }) {\n const Component = resolveIcon(name);\n const a11y = label ? { role: \"img\" as const, \"aria-label\": label } : { \"aria-hidden\": true as const };\n const mirrored = isDirectional ?? DIRECTIONAL_ICONS.has(name);\n const classes = cn(\"shrink-0\", SIZE[size], COLOR[color], mirrored && MIRROR_IN_RTL, className);\n const slot = data[\"data-slot\"] ?? \"icon\";\n if (!Component) {\n // A name Lucide does not have (a typo past the types, or a name newer than the shipped table):\n // keep the box so the layout holds, and say so once.\n if (!warned.has(name)) {\n warned.add(name);\n console.warn(`[@senvenli/react] Icon \"${name}\" is not in the shipped Lucide set.`);\n }\n return <span {...a11y} data-slot={slot} data-icon={name} data-missing=\"\" className={cn(\"inline-block\", classes)} />;\n }\n return <Component {...a11y} data-slot={slot} data-icon={name} strokeWidth={strokeWidth} className={classes} />;\n}\n\n/**\n * A Lucide icon by name. Apps never import `lucide-react` themselves; size,\n * colour and the accessible label live here.\n */\nexport function Icon(props: IconProps) {\n return <IconGlyph {...props} />;\n}\n\n/** Marks `<Icon>` elements, so fields can tell an icon from a text addon (`prefix={<Icon name=\"search\" />}`). */\nexport const ICON_ELEMENT = Symbol.for(\"senvenli.ds.icon\");\n(Icon as unknown as Record<symbol, boolean>)[ICON_ELEMENT] = true;\n\nexport function isIconElement(node: React.ReactNode): node is React.ReactElement<IconProps> {\n return React.isValidElement(node) && typeof node.type === \"function\" && (node.type as unknown as Record<symbol, unknown>)[ICON_ELEMENT] === true;\n}\n"]}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ImageCropper's geometry and output, kept apart from the component so the rules the
|
|
3
|
+
* cropper exists for are tested on their own:
|
|
4
|
+
* - never upscale: the output is the crop region in source pixels, only ever scaled down;
|
|
5
|
+
* - contain never paints black: an output without alpha (JPEG) fills the empty area with the
|
|
6
|
+
* background, white by default; PNG and WebP keep it transparent.
|
|
7
|
+
*
|
|
8
|
+
* Coordinates are in the source's pixels after rotation ("rotated space"): a 90° turn of a 4000 × 3000
|
|
9
|
+
* photo is a 3000 × 4000 image to crop.
|
|
10
|
+
*/
|
|
11
|
+
export type CropFit = "cover" | "contain";
|
|
12
|
+
export type CropOutputType = "image/jpeg" | "image/png" | "image/webp";
|
|
13
|
+
export type CropRotation = 0 | 90 | 180 | 270;
|
|
14
|
+
export type CropState = {
|
|
15
|
+
/** 1 shows the whole fit; up to 4. */
|
|
16
|
+
zoom: number;
|
|
17
|
+
/** The crop region's centre, in rotated-space pixels. */
|
|
18
|
+
centerX: number;
|
|
19
|
+
centerY: number;
|
|
20
|
+
rotation: CropRotation;
|
|
21
|
+
};
|
|
22
|
+
export type CropRegion = {
|
|
23
|
+
left: number;
|
|
24
|
+
top: number;
|
|
25
|
+
width: number;
|
|
26
|
+
height: number;
|
|
27
|
+
};
|
|
28
|
+
export declare const MIN_ZOOM = 1;
|
|
29
|
+
export declare const MAX_ZOOM = 4;
|
|
30
|
+
/** Outputs that keep transparency; the rest get the background under empty areas. */
|
|
31
|
+
export declare const hasAlpha: (type: CropOutputType) => type is "image/png" | "image/webp";
|
|
32
|
+
/** The source's size once turned. */
|
|
33
|
+
export declare function rotatedSize(width: number, height: number, rotation: CropRotation): {
|
|
34
|
+
width: number;
|
|
35
|
+
height: number;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* The crop region for a frame aspect (width / height): at zoom 1, `cover` is the largest region of that
|
|
39
|
+
* shape inside the image and `contain` the smallest that holds the whole image (the rest is empty area).
|
|
40
|
+
* Zoom shrinks the region; the centre is kept so the region never leaves the image along a side it is
|
|
41
|
+
* smaller than, and stays centred along a side it is larger than (only contain's empty area).
|
|
42
|
+
*/
|
|
43
|
+
export declare function cropRegion(image: {
|
|
44
|
+
width: number;
|
|
45
|
+
height: number;
|
|
46
|
+
}, aspect: number, fit: CropFit, state: Pick<CropState, "zoom" | "centerX" | "centerY">): CropRegion;
|
|
47
|
+
export declare const clampZoom: (zoom: number) => number;
|
|
48
|
+
/**
|
|
49
|
+
* The output size: the region in source pixels, scaled down to `maxOutputSize` on the long edge, never up.
|
|
50
|
+
* `small` is true when the long edge is under `minOutputSize` (the warning; it never blocks).
|
|
51
|
+
*/
|
|
52
|
+
export declare function outputSize(region: CropRegion, { maxOutputSize, minOutputSize }: {
|
|
53
|
+
maxOutputSize?: number;
|
|
54
|
+
minOutputSize?: number;
|
|
55
|
+
}): {
|
|
56
|
+
width: number;
|
|
57
|
+
height: number;
|
|
58
|
+
scale: number;
|
|
59
|
+
small: boolean;
|
|
60
|
+
};
|
|
61
|
+
/** The 2D context calls the renderer makes; a canvas's context, or a recorder in tests. */
|
|
62
|
+
export type CropContext = Pick<CanvasRenderingContext2D, "fillStyle" | "fillRect" | "clearRect" | "save" | "restore" | "translate" | "rotate" | "scale" | "drawImage" | "imageSmoothingEnabled" | "imageSmoothingQuality">;
|
|
63
|
+
/**
|
|
64
|
+
* Draws the crop on a context sized `size`: the background first when the output has no alpha (so empty
|
|
65
|
+
* contain areas and transparent pixels never turn black), then the turned image mapped so the region fills
|
|
66
|
+
* the canvas.
|
|
67
|
+
*/
|
|
68
|
+
export declare function drawCrop(context: CropContext, image: CanvasImageSource, source: {
|
|
69
|
+
width: number;
|
|
70
|
+
height: number;
|
|
71
|
+
}, region: CropRegion, size: {
|
|
72
|
+
width: number;
|
|
73
|
+
height: number;
|
|
74
|
+
}, { rotation, outputType, background }: {
|
|
75
|
+
rotation: CropRotation;
|
|
76
|
+
outputType: CropOutputType;
|
|
77
|
+
background?: string;
|
|
78
|
+
}): void;
|
|
79
|
+
/** The output file's extension for its type. */
|
|
80
|
+
export declare const extensionOf: (type: CropOutputType) => "jpg" | "png" | "webp";
|
|
81
|
+
/**
|
|
82
|
+
* The qualities to try under a byte limit, as an image upload typically needs for a logo,
|
|
83
|
+
* hero and slide uploads: from `quality` down in steps of 0.1, never under `minimumQuality` (0.1 by default, at most
|
|
84
|
+
* `quality`), rounded to hundredths. Without a limit, or for PNG (lossless: its quality does nothing), one try.
|
|
85
|
+
*/
|
|
86
|
+
export declare function qualitySteps({ outputType, quality, minimumQuality, maxBytes }: {
|
|
87
|
+
outputType: CropOutputType;
|
|
88
|
+
quality: number;
|
|
89
|
+
minimumQuality?: number;
|
|
90
|
+
maxBytes?: number;
|
|
91
|
+
}): number[];
|
|
92
|
+
export type EncodeResult = {
|
|
93
|
+
blob: Blob;
|
|
94
|
+
quality: number;
|
|
95
|
+
fits: boolean;
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* Encodes at each of `qualitySteps` until the file is at most `maxBytes`, and says whether it got there. `encode` is
|
|
99
|
+
* the canvas's toBlob (a stub in tests); a null from it is a failed export and throws.
|
|
100
|
+
*/
|
|
101
|
+
export declare function encodeWithin(encode: (quality: number | undefined) => Promise<Blob | null>, options: {
|
|
102
|
+
outputType: CropOutputType;
|
|
103
|
+
quality: number;
|
|
104
|
+
minimumQuality?: number;
|
|
105
|
+
maxBytes?: number;
|
|
106
|
+
}): Promise<EncodeResult>;
|