@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,245 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://design.senvenli.com/schema/component.full.json",
|
|
3
|
+
"kind": "component",
|
|
4
|
+
"family": "collection",
|
|
5
|
+
"status": "alpha",
|
|
6
|
+
"import": "@senvenli/react/collection",
|
|
7
|
+
"name": "tree",
|
|
8
|
+
"title": "Tree",
|
|
9
|
+
"exports": [
|
|
10
|
+
"Tree"
|
|
11
|
+
],
|
|
12
|
+
"description": "A hierarchy to browse: folders and files, categories, with nodes that open and close.",
|
|
13
|
+
"keywords": [
|
|
14
|
+
"tree",
|
|
15
|
+
"tree view",
|
|
16
|
+
"hierarchy",
|
|
17
|
+
"folders",
|
|
18
|
+
"nested list",
|
|
19
|
+
"outline"
|
|
20
|
+
],
|
|
21
|
+
"usage": {
|
|
22
|
+
"when": [
|
|
23
|
+
"Data with parents and children people browse: files, categories, an org chart."
|
|
24
|
+
],
|
|
25
|
+
"instead": [
|
|
26
|
+
{
|
|
27
|
+
"use": "grid-list",
|
|
28
|
+
"when": "The items have no hierarchy."
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"use": "sidebar",
|
|
32
|
+
"when": "It is the app's navigation."
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"use": "accordion",
|
|
36
|
+
"when": "A few sections of content, not data."
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"guidance": [
|
|
41
|
+
{
|
|
42
|
+
"rule": "Keep labels short; three or four levels at most."
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"a11y": {
|
|
46
|
+
"builtIn": [
|
|
47
|
+
"Arrows move, Right opens and Left closes a node, Home and End jump; the chevron and Enter expand."
|
|
48
|
+
],
|
|
49
|
+
"youProvide": [
|
|
50
|
+
"An aria-label naming the tree."
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
"related": [
|
|
54
|
+
"grid-list",
|
|
55
|
+
"sidebar",
|
|
56
|
+
"accordion"
|
|
57
|
+
],
|
|
58
|
+
"genui": {
|
|
59
|
+
"expose": false
|
|
60
|
+
},
|
|
61
|
+
"source": [
|
|
62
|
+
"src/collection/tree.tsx"
|
|
63
|
+
],
|
|
64
|
+
"props": {
|
|
65
|
+
"Tree": [
|
|
66
|
+
{
|
|
67
|
+
"name": "aria-label",
|
|
68
|
+
"type": "string",
|
|
69
|
+
"required": true,
|
|
70
|
+
"origin": "own",
|
|
71
|
+
"description": "Names the tree for screen readers (\"Files\", \"Categories\").",
|
|
72
|
+
"schema": {
|
|
73
|
+
"type": "string"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "items",
|
|
78
|
+
"type": "readonly TreeNode[]",
|
|
79
|
+
"required": true,
|
|
80
|
+
"origin": "own",
|
|
81
|
+
"schema": {
|
|
82
|
+
"type": "array",
|
|
83
|
+
"items": {
|
|
84
|
+
"type": "object",
|
|
85
|
+
"additionalProperties": false,
|
|
86
|
+
"properties": {
|
|
87
|
+
"id": {
|
|
88
|
+
"type": "string"
|
|
89
|
+
},
|
|
90
|
+
"label": {
|
|
91
|
+
"type": "string"
|
|
92
|
+
},
|
|
93
|
+
"icon": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"
|
|
96
|
+
},
|
|
97
|
+
"children": {
|
|
98
|
+
"type": "array",
|
|
99
|
+
"items": {
|
|
100
|
+
"type": "object",
|
|
101
|
+
"additionalProperties": false,
|
|
102
|
+
"properties": {
|
|
103
|
+
"id": {
|
|
104
|
+
"type": "string"
|
|
105
|
+
},
|
|
106
|
+
"label": {
|
|
107
|
+
"type": "string"
|
|
108
|
+
},
|
|
109
|
+
"icon": {
|
|
110
|
+
"type": "string",
|
|
111
|
+
"pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"
|
|
112
|
+
},
|
|
113
|
+
"children": {
|
|
114
|
+
"type": "array",
|
|
115
|
+
"items": {
|
|
116
|
+
"type": "object",
|
|
117
|
+
"additionalProperties": false,
|
|
118
|
+
"properties": {
|
|
119
|
+
"id": {
|
|
120
|
+
"type": "string"
|
|
121
|
+
},
|
|
122
|
+
"label": {
|
|
123
|
+
"type": "string"
|
|
124
|
+
},
|
|
125
|
+
"icon": {
|
|
126
|
+
"type": "string",
|
|
127
|
+
"pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"
|
|
128
|
+
},
|
|
129
|
+
"isDisabled": {
|
|
130
|
+
"type": "boolean"
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"required": [
|
|
134
|
+
"id",
|
|
135
|
+
"label"
|
|
136
|
+
]
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"isDisabled": {
|
|
140
|
+
"type": "boolean"
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"required": [
|
|
144
|
+
"id",
|
|
145
|
+
"label"
|
|
146
|
+
]
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"isDisabled": {
|
|
150
|
+
"type": "boolean"
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"required": [
|
|
154
|
+
"id",
|
|
155
|
+
"label"
|
|
156
|
+
]
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"name": "selectionMode",
|
|
162
|
+
"type": "\"none\" | \"single\" | \"multiple\"",
|
|
163
|
+
"required": false,
|
|
164
|
+
"origin": "own",
|
|
165
|
+
"default": "\"none\"",
|
|
166
|
+
"description": "`none` (default) for navigation with `onAction`, `single` or `multiple` to pick nodes.",
|
|
167
|
+
"schema": {
|
|
168
|
+
"type": "string",
|
|
169
|
+
"enum": [
|
|
170
|
+
"none",
|
|
171
|
+
"single",
|
|
172
|
+
"multiple"
|
|
173
|
+
]
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"name": "selectedKeys",
|
|
178
|
+
"type": "Iterable<Key>",
|
|
179
|
+
"required": false,
|
|
180
|
+
"origin": "own"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"name": "defaultSelectedKeys",
|
|
184
|
+
"type": "Iterable<Key>",
|
|
185
|
+
"required": false,
|
|
186
|
+
"origin": "own"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"name": "onSelectionChange",
|
|
190
|
+
"type": "(keys: Selection) => void",
|
|
191
|
+
"required": false,
|
|
192
|
+
"origin": "own"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"name": "expandedKeys",
|
|
196
|
+
"type": "Iterable<Key>",
|
|
197
|
+
"required": false,
|
|
198
|
+
"origin": "own"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"name": "defaultExpandedKeys",
|
|
202
|
+
"type": "Iterable<Key>",
|
|
203
|
+
"required": false,
|
|
204
|
+
"origin": "own"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"name": "onExpandedChange",
|
|
208
|
+
"type": "(keys: Set<Key>) => void",
|
|
209
|
+
"required": false,
|
|
210
|
+
"origin": "own"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"name": "onAction",
|
|
214
|
+
"type": "(key: Key) => void",
|
|
215
|
+
"required": false,
|
|
216
|
+
"origin": "own",
|
|
217
|
+
"description": "What pressing a node does (open the file, go to the category)."
|
|
218
|
+
}
|
|
219
|
+
]
|
|
220
|
+
},
|
|
221
|
+
"tokens": [
|
|
222
|
+
"ds-background-neutral-hovered",
|
|
223
|
+
"ds-background-neutral-subtle-hovered",
|
|
224
|
+
"ds-background-selected",
|
|
225
|
+
"ds-border-focused",
|
|
226
|
+
"ds-icon-subtle",
|
|
227
|
+
"ds-radius-small",
|
|
228
|
+
"ds-space-025",
|
|
229
|
+
"ds-space-075",
|
|
230
|
+
"ds-space-100",
|
|
231
|
+
"ds-text",
|
|
232
|
+
"ds-text-disabled"
|
|
233
|
+
],
|
|
234
|
+
"strings": [],
|
|
235
|
+
"quality": {
|
|
236
|
+
"tests": true,
|
|
237
|
+
"a11y": false,
|
|
238
|
+
"docs": false,
|
|
239
|
+
"visual": false,
|
|
240
|
+
"dark": false,
|
|
241
|
+
"rtl": false,
|
|
242
|
+
"mcp": true,
|
|
243
|
+
"generic": true
|
|
244
|
+
}
|
|
245
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://design.senvenli.com/schema/component.full.json",
|
|
3
|
+
"kind": "component",
|
|
4
|
+
"family": "display",
|
|
5
|
+
"status": "alpha",
|
|
6
|
+
"import": "@senvenli/react/display",
|
|
7
|
+
"name": "visually-hidden",
|
|
8
|
+
"title": "Visually hidden",
|
|
9
|
+
"exports": [
|
|
10
|
+
"VisuallyHidden"
|
|
11
|
+
],
|
|
12
|
+
"description": "Text that screen readers read but the page does not show.",
|
|
13
|
+
"keywords": [
|
|
14
|
+
"screen reader",
|
|
15
|
+
"sr-only",
|
|
16
|
+
"hidden text",
|
|
17
|
+
"accessible name"
|
|
18
|
+
],
|
|
19
|
+
"usage": {
|
|
20
|
+
"when": [
|
|
21
|
+
"A heading that names a region the layout already makes obvious.",
|
|
22
|
+
"Context an icon or a glyph gives sighted users."
|
|
23
|
+
],
|
|
24
|
+
"instead": [
|
|
25
|
+
{
|
|
26
|
+
"use": "skip-link",
|
|
27
|
+
"when": "A link to jump past the navigation."
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"guidance": [
|
|
32
|
+
{
|
|
33
|
+
"rule": "Never hide something a sighted user needs to read."
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"a11y": {
|
|
37
|
+
"builtIn": [
|
|
38
|
+
"Hidden with the sr-only technique, so it stays in the accessibility tree.",
|
|
39
|
+
"`isFocusable`: shown while it has keyboard focus."
|
|
40
|
+
],
|
|
41
|
+
"youProvide": [
|
|
42
|
+
"The words to read."
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"related": [
|
|
46
|
+
"skip-link",
|
|
47
|
+
"icon"
|
|
48
|
+
],
|
|
49
|
+
"genui": {
|
|
50
|
+
"expose": false
|
|
51
|
+
},
|
|
52
|
+
"source": [
|
|
53
|
+
"src/display/visually-hidden.tsx"
|
|
54
|
+
],
|
|
55
|
+
"props": {
|
|
56
|
+
"VisuallyHidden": [
|
|
57
|
+
{
|
|
58
|
+
"name": "children",
|
|
59
|
+
"type": "React.ReactNode",
|
|
60
|
+
"required": true,
|
|
61
|
+
"origin": "own"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "elementType",
|
|
65
|
+
"type": "\"div\" | \"span\" | \"label\" | \"h2\" | \"h3\"",
|
|
66
|
+
"required": false,
|
|
67
|
+
"origin": "own",
|
|
68
|
+
"default": "\"span\"",
|
|
69
|
+
"description": "`span` (default) inside a line, `div` for a block (a hidden heading that names a region).",
|
|
70
|
+
"schema": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"enum": [
|
|
73
|
+
"div",
|
|
74
|
+
"span",
|
|
75
|
+
"label",
|
|
76
|
+
"h2",
|
|
77
|
+
"h3"
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"name": "isFocusable",
|
|
83
|
+
"type": "boolean",
|
|
84
|
+
"required": false,
|
|
85
|
+
"origin": "own",
|
|
86
|
+
"description": "Shown while it, or something in it, has keyboard focus: a skip link, a hidden \"edit\" action.",
|
|
87
|
+
"schema": {
|
|
88
|
+
"type": "boolean"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "id",
|
|
93
|
+
"type": "string",
|
|
94
|
+
"required": false,
|
|
95
|
+
"origin": "own",
|
|
96
|
+
"schema": {
|
|
97
|
+
"type": "string"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
"tokens": [],
|
|
103
|
+
"strings": [],
|
|
104
|
+
"quality": {
|
|
105
|
+
"tests": true,
|
|
106
|
+
"a11y": false,
|
|
107
|
+
"docs": false,
|
|
108
|
+
"visual": false,
|
|
109
|
+
"dark": false,
|
|
110
|
+
"rtl": false,
|
|
111
|
+
"mcp": true,
|
|
112
|
+
"generic": true
|
|
113
|
+
}
|
|
114
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,120 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@senvenli/react",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Senvenli UI web components (React Aria Components + Tailwind v4).",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Senvenli",
|
|
7
|
+
"homepage": "https://design.senvenli.com",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/Senvenli/Senvenli-UI.git",
|
|
11
|
+
"directory": "packages/react"
|
|
12
|
+
},
|
|
13
|
+
"bugs": "https://github.com/Senvenli/Senvenli-UI/issues",
|
|
14
|
+
"keywords": [
|
|
15
|
+
"react",
|
|
16
|
+
"design-system",
|
|
17
|
+
"components",
|
|
18
|
+
"react-aria",
|
|
19
|
+
"tailwindcss",
|
|
20
|
+
"accessibility",
|
|
21
|
+
"ui"
|
|
22
|
+
],
|
|
23
|
+
"type": "module",
|
|
24
|
+
"sideEffects": [
|
|
25
|
+
"*.css"
|
|
26
|
+
],
|
|
27
|
+
"main": "./dist/index.js",
|
|
28
|
+
"types": "./dist/index.d.ts",
|
|
29
|
+
"exports": {
|
|
30
|
+
".": {
|
|
31
|
+
"types": "./dist/index.d.ts",
|
|
32
|
+
"default": "./dist/index.js"
|
|
33
|
+
},
|
|
34
|
+
"./display": {
|
|
35
|
+
"types": "./dist/display/index.d.ts",
|
|
36
|
+
"default": "./dist/display/index.js"
|
|
37
|
+
},
|
|
38
|
+
"./theme.css": "./styles/theme.css",
|
|
39
|
+
"./base.css": "./styles/base.css",
|
|
40
|
+
"./manifests/*": "./manifests/*",
|
|
41
|
+
"./action": {
|
|
42
|
+
"types": "./dist/action/index.d.ts",
|
|
43
|
+
"default": "./dist/action/index.js"
|
|
44
|
+
},
|
|
45
|
+
"./layout": {
|
|
46
|
+
"types": "./dist/layout/index.d.ts",
|
|
47
|
+
"default": "./dist/layout/index.js"
|
|
48
|
+
},
|
|
49
|
+
"./feedback": {
|
|
50
|
+
"types": "./dist/feedback/index.d.ts",
|
|
51
|
+
"default": "./dist/feedback/index.js"
|
|
52
|
+
},
|
|
53
|
+
"./form": {
|
|
54
|
+
"types": "./dist/form/index.d.ts",
|
|
55
|
+
"default": "./dist/form/index.js"
|
|
56
|
+
},
|
|
57
|
+
"./selection": {
|
|
58
|
+
"types": "./dist/selection/index.d.ts",
|
|
59
|
+
"default": "./dist/selection/index.js"
|
|
60
|
+
},
|
|
61
|
+
"./overlay": {
|
|
62
|
+
"types": "./dist/overlay/index.d.ts",
|
|
63
|
+
"default": "./dist/overlay/index.js"
|
|
64
|
+
},
|
|
65
|
+
"./navigation": {
|
|
66
|
+
"types": "./dist/navigation/index.d.ts",
|
|
67
|
+
"default": "./dist/navigation/index.js"
|
|
68
|
+
},
|
|
69
|
+
"./date": {
|
|
70
|
+
"types": "./dist/date/index.d.ts",
|
|
71
|
+
"default": "./dist/date/index.js"
|
|
72
|
+
},
|
|
73
|
+
"./color": {
|
|
74
|
+
"types": "./dist/color/index.d.ts",
|
|
75
|
+
"default": "./dist/color/index.js"
|
|
76
|
+
},
|
|
77
|
+
"./collection": {
|
|
78
|
+
"types": "./dist/collection/index.d.ts",
|
|
79
|
+
"default": "./dist/collection/index.js"
|
|
80
|
+
},
|
|
81
|
+
"./charts": {
|
|
82
|
+
"types": "./dist/charts/index.d.ts",
|
|
83
|
+
"default": "./dist/charts/index.js"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"files": [
|
|
87
|
+
"dist",
|
|
88
|
+
"manifest",
|
|
89
|
+
"manifests",
|
|
90
|
+
"styles"
|
|
91
|
+
],
|
|
92
|
+
"dependencies": {
|
|
93
|
+
"@internationalized/date": "^3.12.4",
|
|
94
|
+
"clsx": "^2.1.1",
|
|
95
|
+
"recharts": "^3.11.0",
|
|
96
|
+
"tailwind-merge": "^3.5.0",
|
|
97
|
+
"@senvenli/tokens": "^0.1.0"
|
|
98
|
+
},
|
|
99
|
+
"peerDependencies": {
|
|
100
|
+
"lucide-react": "^1.34.0",
|
|
101
|
+
"react": ">=19",
|
|
102
|
+
"react-aria-components": "^1.21.1",
|
|
103
|
+
"react-dom": ">=19"
|
|
104
|
+
},
|
|
105
|
+
"devDependencies": {
|
|
106
|
+
"@types/react": "^19",
|
|
107
|
+
"@types/react-dom": "^19",
|
|
108
|
+
"lucide-react": "1.34.0",
|
|
109
|
+
"react": "^19",
|
|
110
|
+
"react-aria-components": "1.21.1",
|
|
111
|
+
"react-dom": "^19"
|
|
112
|
+
},
|
|
113
|
+
"publishConfig": {
|
|
114
|
+
"access": "public"
|
|
115
|
+
},
|
|
116
|
+
"scripts": {
|
|
117
|
+
"build": "tsc -p tsconfig.json && node scripts/esm-extensions.mjs",
|
|
118
|
+
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
119
|
+
}
|
|
6
120
|
}
|
package/styles/base.css
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @senvenli/react base styles. Import once, after the theme CSS:
|
|
3
|
+
*
|
|
4
|
+
* @import "tailwindcss";
|
|
5
|
+
* @import "./theme.css"; (from senvenli-ui theme / the builder)
|
|
6
|
+
* @import "@senvenli/react/base.css";
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/* Scrollbars (ScrollArea look): thin, rounded thumb in the bold border color,
|
|
10
|
+
transparent track, stronger on hover. In the base layer with zero specificity,
|
|
11
|
+
so a component's own scrollbar utilities (a tab list hiding its bar) always win.
|
|
12
|
+
Standard properties for Chrome and Firefox; the ::-webkit rules cover Safari. */
|
|
13
|
+
@layer base {
|
|
14
|
+
:where(*) {
|
|
15
|
+
scrollbar-width: thin;
|
|
16
|
+
scrollbar-color: var(--ds-border-bold) transparent;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
:where(*):hover {
|
|
20
|
+
scrollbar-color: var(--ds-text-disabled) transparent;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:where(*)::-webkit-scrollbar {
|
|
24
|
+
width: 10px;
|
|
25
|
+
height: 10px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:where(*)::-webkit-scrollbar-track,
|
|
29
|
+
:where(*)::-webkit-scrollbar-corner {
|
|
30
|
+
background: transparent;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:where(*)::-webkit-scrollbar-thumb {
|
|
34
|
+
background: var(--ds-border-bold);
|
|
35
|
+
border: 2px solid transparent;
|
|
36
|
+
border-radius: 9999px;
|
|
37
|
+
background-clip: padding-box;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:where(*)::-webkit-scrollbar-thumb:hover {
|
|
41
|
+
background: var(--ds-text-disabled);
|
|
42
|
+
background-clip: padding-box;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* motion="none": no transitions or animations at all in the region (reduce keeps fades through motion-reduce:). */
|
|
47
|
+
@layer base {
|
|
48
|
+
[data-ds-motion="none"],
|
|
49
|
+
[data-ds-motion="none"] * {
|
|
50
|
+
transition-duration: 0s !important;
|
|
51
|
+
transition-delay: 0s !important;
|
|
52
|
+
animation-duration: 0s !important;
|
|
53
|
+
animation-iteration-count: 1 !important;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
package/styles/theme.css
ADDED
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @senvenli/react static theme: everything that does not depend on the theme
|
|
3
|
+
* inputs (type scale, elevation, motion). Colors, spacing, sizes and radii come
|
|
4
|
+
* from the generated theme CSS (@senvenli/tokens). Import order:
|
|
5
|
+
*
|
|
6
|
+
* @import "tailwindcss";
|
|
7
|
+
* @import "./theme.css"; generated: npx senvenli-ui theme <code> --tailwind
|
|
8
|
+
* @import "@senvenli/react/theme.css"; this file
|
|
9
|
+
* @import "@senvenli/react/base.css";
|
|
10
|
+
* @source "../node_modules/@senvenli/react/dist";
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
@custom-variant dark (&:where([data-theme="dark"], [data-theme="dark"] *, .dark, .dark *));
|
|
14
|
+
|
|
15
|
+
/* Reduced motion: the device's setting, or the app's `motion="reduce" | "none"` (DesignSystemProvider defaults, a
|
|
16
|
+
component's `motion`, MotionScope), written as data-ds-motion. Every motion-reduce: utility follows both. */
|
|
17
|
+
@custom-variant motion-reduce {
|
|
18
|
+
@media (prefers-reduced-motion: reduce) {
|
|
19
|
+
@slot;
|
|
20
|
+
}
|
|
21
|
+
&:where([data-ds-motion="reduce"], [data-ds-motion="reduce"] *, [data-ds-motion="none"], [data-ds-motion="none"] *) {
|
|
22
|
+
@slot;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
:root,
|
|
27
|
+
[data-theme="light"] {
|
|
28
|
+
--ds-shadow-raised: 0 1px 2px rgba(60, 44, 16, 0.04), 0 2px 6px rgba(60, 44, 16, 0.04), 0 8px 24px rgba(60, 44, 16, 0.06);
|
|
29
|
+
--ds-shadow-overflow: 0 0 8px rgba(20, 18, 15, 0.12), 0 0 1px rgba(20, 18, 15, 0.16);
|
|
30
|
+
--ds-shadow-overlay: 0 2px 4px rgba(60, 44, 16, 0.05), 0 8px 16px rgba(60, 44, 16, 0.06), 0 24px 48px rgba(60, 44, 16, 0.1);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
[data-theme="dark"],
|
|
34
|
+
.dark {
|
|
35
|
+
/* Soft black and white, never pure #000/#fff. */
|
|
36
|
+
--ds-shadow-raised: 0 0 0 1px rgba(252, 252, 251, 0.03), 0 8px 24px rgba(7, 7, 6, 0.18);
|
|
37
|
+
--ds-shadow-overflow: 0 0 12px rgba(7, 7, 6, 0.56), 0 0 1px rgba(7, 7, 6, 0.8);
|
|
38
|
+
--ds-shadow-overlay: 0 0 0 1px rgba(252, 252, 251, 0.05), 0 24px 48px rgba(7, 7, 6, 0.32);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:root {
|
|
42
|
+
--ds-duration-instant: 80ms;
|
|
43
|
+
--ds-duration-fast: 140ms;
|
|
44
|
+
--ds-duration-medium: 220ms;
|
|
45
|
+
--ds-duration-slow: 320ms;
|
|
46
|
+
--ds-easing-standard: cubic-bezier(0.2, 0, 0, 1);
|
|
47
|
+
--ds-easing-enter: cubic-bezier(0.4, 1, 0.6, 1);
|
|
48
|
+
--ds-easing-exit: cubic-bezier(0.4, 0, 1, 1);
|
|
49
|
+
--font-code-block: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@media (prefers-reduced-motion: reduce) {
|
|
53
|
+
:root {
|
|
54
|
+
--ds-duration-fast: 0ms;
|
|
55
|
+
--ds-duration-medium: 0ms;
|
|
56
|
+
--ds-duration-slow: 0ms;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@theme inline {
|
|
61
|
+
--shadow-ds-raised: var(--ds-shadow-raised);
|
|
62
|
+
--shadow-ds-overflow: var(--ds-shadow-overflow);
|
|
63
|
+
--shadow-ds-overlay: var(--ds-shadow-overlay);
|
|
64
|
+
--ease-ds-standard: var(--ds-easing-standard);
|
|
65
|
+
--ease-ds-enter: var(--ds-easing-enter);
|
|
66
|
+
--ease-ds-exit: var(--ds-easing-exit);
|
|
67
|
+
--font-ds-code-block: var(--font-code-block);
|
|
68
|
+
--text-display-large: 56px;
|
|
69
|
+
--text-display-large--line-height: 60px;
|
|
70
|
+
--text-display-large--font-weight: 500;
|
|
71
|
+
--text-display-large--letter-spacing: -0.04em;
|
|
72
|
+
--text-display-medium: 44px;
|
|
73
|
+
--text-display-medium--line-height: 48px;
|
|
74
|
+
--text-display-medium--font-weight: 500;
|
|
75
|
+
--text-display-medium--letter-spacing: -0.02em;
|
|
76
|
+
--text-heading-xxlarge: 32px;
|
|
77
|
+
--text-heading-xxlarge--line-height: 36px;
|
|
78
|
+
--text-heading-xxlarge--font-weight: 500;
|
|
79
|
+
--text-heading-xxlarge--letter-spacing: -0.02em;
|
|
80
|
+
--text-heading-xlarge: 28px;
|
|
81
|
+
--text-heading-xlarge--line-height: 32px;
|
|
82
|
+
--text-heading-xlarge--font-weight: 500;
|
|
83
|
+
--text-heading-xlarge--letter-spacing: -0.02em;
|
|
84
|
+
--text-heading-large: 24px;
|
|
85
|
+
--text-heading-large--line-height: 28px;
|
|
86
|
+
--text-heading-large--font-weight: 500;
|
|
87
|
+
--text-heading-large--letter-spacing: -0.02em;
|
|
88
|
+
--text-heading-medium: 20px;
|
|
89
|
+
--text-heading-medium--line-height: 24px;
|
|
90
|
+
--text-heading-medium--font-weight: 500;
|
|
91
|
+
--text-heading-medium--letter-spacing: -0.005em;
|
|
92
|
+
--text-heading-small: 16px;
|
|
93
|
+
--text-heading-small--line-height: 20px;
|
|
94
|
+
--text-heading-small--font-weight: 500;
|
|
95
|
+
--text-heading-xsmall: 14px;
|
|
96
|
+
--text-heading-xsmall--line-height: 20px;
|
|
97
|
+
--text-heading-xsmall--font-weight: 500;
|
|
98
|
+
--text-heading-xxsmall: 12px;
|
|
99
|
+
--text-heading-xxsmall--line-height: 16px;
|
|
100
|
+
--text-heading-xxsmall--font-weight: 500;
|
|
101
|
+
--text-body-large: 16px;
|
|
102
|
+
--text-body-large--line-height: 24px;
|
|
103
|
+
--text-body-large--font-weight: 400;
|
|
104
|
+
--text-body: 14px;
|
|
105
|
+
--text-body--line-height: 20px;
|
|
106
|
+
--text-body--font-weight: 400;
|
|
107
|
+
--text-body-strong: 14px;
|
|
108
|
+
--text-body-strong--line-height: 20px;
|
|
109
|
+
--text-body-strong--font-weight: 500;
|
|
110
|
+
--text-body-small: 12px;
|
|
111
|
+
--text-body-small--line-height: 16px;
|
|
112
|
+
--text-body-small--font-weight: 400;
|
|
113
|
+
--text-metric-large: 28px;
|
|
114
|
+
--text-metric-large--line-height: 32px;
|
|
115
|
+
--text-metric-large--font-weight: 500;
|
|
116
|
+
--text-metric-large--letter-spacing: -0.02em;
|
|
117
|
+
--text-metric-medium: 20px;
|
|
118
|
+
--text-metric-medium--line-height: 24px;
|
|
119
|
+
--text-metric-medium--font-weight: 500;
|
|
120
|
+
--text-metric-small: 14px;
|
|
121
|
+
--text-metric-small--line-height: 20px;
|
|
122
|
+
--text-metric-small--font-weight: 500;
|
|
123
|
+
--text-code: 13px;
|
|
124
|
+
--text-code--line-height: 20px;
|
|
125
|
+
--text-code--font-weight: 400;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
@utility text-metric-large {
|
|
129
|
+
--tw-numeric-spacing: tabular-nums;
|
|
130
|
+
font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
|
|
131
|
+
}
|
|
132
|
+
@utility text-metric-medium {
|
|
133
|
+
--tw-numeric-spacing: tabular-nums;
|
|
134
|
+
font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
|
|
135
|
+
}
|
|
136
|
+
@utility text-metric-small {
|
|
137
|
+
--tw-numeric-spacing: tabular-nums;
|
|
138
|
+
font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
|
|
139
|
+
}
|
|
140
|
+
@utility text-code {
|
|
141
|
+
--tw-numeric-spacing: tabular-nums;
|
|
142
|
+
font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/* Arabic: letter-spacing pulls joined letters apart, so every tracking step is zero on an Arabic page. */
|
|
146
|
+
:root:lang(ar) {
|
|
147
|
+
--text-display-large--letter-spacing: 0;
|
|
148
|
+
--text-display-medium--letter-spacing: 0;
|
|
149
|
+
--text-heading-xxlarge--letter-spacing: 0;
|
|
150
|
+
--text-heading-xlarge--letter-spacing: 0;
|
|
151
|
+
--text-heading-large--letter-spacing: 0;
|
|
152
|
+
--text-heading-medium--letter-spacing: 0;
|
|
153
|
+
--text-metric-large--letter-spacing: 0;
|
|
154
|
+
}
|