@senvenli/react 0.0.0-stage → 0.2.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,244 @@
|
|
|
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": "text",
|
|
8
|
+
"title": "Text",
|
|
9
|
+
"exports": [
|
|
10
|
+
"Text",
|
|
11
|
+
"Prose"
|
|
12
|
+
],
|
|
13
|
+
"description": "Body copy, captions and inline text on the type scale, plus Prose for long rich text.",
|
|
14
|
+
"keywords": [
|
|
15
|
+
"paragraph",
|
|
16
|
+
"body",
|
|
17
|
+
"caption",
|
|
18
|
+
"copy",
|
|
19
|
+
"typography",
|
|
20
|
+
"prose"
|
|
21
|
+
],
|
|
22
|
+
"usage": {
|
|
23
|
+
"when": [
|
|
24
|
+
"Any run of app text: descriptions, help text, captions, numbers.",
|
|
25
|
+
"Prose: long formatted content such as articles or terms."
|
|
26
|
+
],
|
|
27
|
+
"instead": [
|
|
28
|
+
{
|
|
29
|
+
"use": "heading",
|
|
30
|
+
"when": "The words title a page or section."
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
"guidance": [
|
|
35
|
+
{
|
|
36
|
+
"rule": "Keep legal and body text at `body` or larger; use `subtle` and `subtlest` tones for secondary text only."
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"a11y": {
|
|
40
|
+
"builtIn": [
|
|
41
|
+
"Tones meet WCAG AA contrast on every surface token."
|
|
42
|
+
],
|
|
43
|
+
"youProvide": [
|
|
44
|
+
"`elementType=\"p\"` for paragraphs so the text has the right semantics."
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
"related": [
|
|
48
|
+
"heading"
|
|
49
|
+
],
|
|
50
|
+
"genui": {
|
|
51
|
+
"expose": true,
|
|
52
|
+
"description": "A run of body text. Use `tone` for meaning (danger, success…) and `subtle` for secondary text.",
|
|
53
|
+
"props": [
|
|
54
|
+
"size",
|
|
55
|
+
"tone",
|
|
56
|
+
"weight",
|
|
57
|
+
"elementType"
|
|
58
|
+
],
|
|
59
|
+
"children": "text",
|
|
60
|
+
"schema": {
|
|
61
|
+
"type": "object",
|
|
62
|
+
"additionalProperties": false,
|
|
63
|
+
"properties": {
|
|
64
|
+
"size": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"enum": [
|
|
67
|
+
"code",
|
|
68
|
+
"body-large",
|
|
69
|
+
"body",
|
|
70
|
+
"body-small"
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
"tone": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"enum": [
|
|
76
|
+
"default",
|
|
77
|
+
"subtle",
|
|
78
|
+
"danger",
|
|
79
|
+
"information",
|
|
80
|
+
"success",
|
|
81
|
+
"warning",
|
|
82
|
+
"brand",
|
|
83
|
+
"subtlest"
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
"weight": {
|
|
87
|
+
"type": "string",
|
|
88
|
+
"enum": [
|
|
89
|
+
"medium",
|
|
90
|
+
"regular"
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
"elementType": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"enum": [
|
|
96
|
+
"div",
|
|
97
|
+
"span",
|
|
98
|
+
"p"
|
|
99
|
+
],
|
|
100
|
+
"description": "`p` for a paragraph (kept under ~70 characters a line), `span` inline, `div` for a block."
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"source": [
|
|
106
|
+
"src/display/typography.tsx"
|
|
107
|
+
],
|
|
108
|
+
"props": {
|
|
109
|
+
"Text": [
|
|
110
|
+
{
|
|
111
|
+
"name": "size",
|
|
112
|
+
"type": "TextSize",
|
|
113
|
+
"required": false,
|
|
114
|
+
"origin": "own",
|
|
115
|
+
"default": "\"body\"",
|
|
116
|
+
"schema": {
|
|
117
|
+
"type": "string",
|
|
118
|
+
"enum": [
|
|
119
|
+
"code",
|
|
120
|
+
"body-large",
|
|
121
|
+
"body",
|
|
122
|
+
"body-small"
|
|
123
|
+
]
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"name": "tone",
|
|
128
|
+
"type": "TextTone",
|
|
129
|
+
"required": false,
|
|
130
|
+
"origin": "own",
|
|
131
|
+
"default": "\"default\"",
|
|
132
|
+
"schema": {
|
|
133
|
+
"type": "string",
|
|
134
|
+
"enum": [
|
|
135
|
+
"default",
|
|
136
|
+
"subtle",
|
|
137
|
+
"danger",
|
|
138
|
+
"information",
|
|
139
|
+
"success",
|
|
140
|
+
"warning",
|
|
141
|
+
"brand",
|
|
142
|
+
"subtlest"
|
|
143
|
+
]
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"name": "weight",
|
|
148
|
+
"type": "\"medium\" | \"regular\"",
|
|
149
|
+
"required": false,
|
|
150
|
+
"origin": "own",
|
|
151
|
+
"default": "\"regular\"",
|
|
152
|
+
"schema": {
|
|
153
|
+
"type": "string",
|
|
154
|
+
"enum": [
|
|
155
|
+
"medium",
|
|
156
|
+
"regular"
|
|
157
|
+
]
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"name": "elementType",
|
|
162
|
+
"type": "\"div\" | \"span\" | \"p\"",
|
|
163
|
+
"required": false,
|
|
164
|
+
"origin": "own",
|
|
165
|
+
"default": "\"span\"",
|
|
166
|
+
"description": "`p` for a paragraph (kept under ~70 characters a line), `span` inline, `div` for a block.",
|
|
167
|
+
"schema": {
|
|
168
|
+
"type": "string",
|
|
169
|
+
"enum": [
|
|
170
|
+
"div",
|
|
171
|
+
"span",
|
|
172
|
+
"p"
|
|
173
|
+
]
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"name": "isNumeric",
|
|
178
|
+
"type": "boolean",
|
|
179
|
+
"required": false,
|
|
180
|
+
"origin": "own",
|
|
181
|
+
"description": "Lines up figures in columns and changing values.",
|
|
182
|
+
"schema": {
|
|
183
|
+
"type": "boolean"
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"name": "truncate",
|
|
188
|
+
"type": "boolean",
|
|
189
|
+
"required": false,
|
|
190
|
+
"origin": "own",
|
|
191
|
+
"description": "One line, cut with an ellipsis where its container ends (a table cell, a card title).",
|
|
192
|
+
"schema": {
|
|
193
|
+
"type": "boolean"
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"name": "children",
|
|
198
|
+
"type": "React.ReactNode",
|
|
199
|
+
"required": true,
|
|
200
|
+
"origin": "own"
|
|
201
|
+
}
|
|
202
|
+
],
|
|
203
|
+
"Prose": [
|
|
204
|
+
{
|
|
205
|
+
"name": "children",
|
|
206
|
+
"type": "React.ReactNode",
|
|
207
|
+
"required": true,
|
|
208
|
+
"origin": "own"
|
|
209
|
+
}
|
|
210
|
+
]
|
|
211
|
+
},
|
|
212
|
+
"tokens": [
|
|
213
|
+
"ds-background-neutral",
|
|
214
|
+
"ds-border-bold",
|
|
215
|
+
"ds-link",
|
|
216
|
+
"ds-radius-xsmall",
|
|
217
|
+
"ds-space-050",
|
|
218
|
+
"ds-space-100",
|
|
219
|
+
"ds-space-200",
|
|
220
|
+
"ds-space-250",
|
|
221
|
+
"ds-space-300",
|
|
222
|
+
"ds-space-400",
|
|
223
|
+
"ds-text",
|
|
224
|
+
"ds-text-brand",
|
|
225
|
+
"ds-text-danger",
|
|
226
|
+
"ds-text-information",
|
|
227
|
+
"ds-text-subtle",
|
|
228
|
+
"ds-text-subtlest",
|
|
229
|
+
"ds-text-success",
|
|
230
|
+
"ds-text-warning",
|
|
231
|
+
"font-ds-mono"
|
|
232
|
+
],
|
|
233
|
+
"strings": [],
|
|
234
|
+
"quality": {
|
|
235
|
+
"tests": true,
|
|
236
|
+
"a11y": false,
|
|
237
|
+
"docs": false,
|
|
238
|
+
"visual": false,
|
|
239
|
+
"dark": false,
|
|
240
|
+
"rtl": false,
|
|
241
|
+
"mcp": true,
|
|
242
|
+
"generic": true
|
|
243
|
+
}
|
|
244
|
+
}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://design.senvenli.com/schema/component.full.json",
|
|
3
|
+
"kind": "component",
|
|
4
|
+
"family": "action",
|
|
5
|
+
"status": "alpha",
|
|
6
|
+
"import": "@senvenli/react/action",
|
|
7
|
+
"name": "theme-switcher",
|
|
8
|
+
"title": "Theme switcher",
|
|
9
|
+
"exports": [
|
|
10
|
+
"ThemeSwitcher"
|
|
11
|
+
],
|
|
12
|
+
"description": "Lets people choose system, light or dark theme, stored per device and applied before first paint.",
|
|
13
|
+
"keywords": [
|
|
14
|
+
"theme",
|
|
15
|
+
"dark mode",
|
|
16
|
+
"light mode",
|
|
17
|
+
"appearance"
|
|
18
|
+
],
|
|
19
|
+
"usage": {
|
|
20
|
+
"when": [
|
|
21
|
+
"An app or site offers light and dark themes."
|
|
22
|
+
],
|
|
23
|
+
"instead": [
|
|
24
|
+
{
|
|
25
|
+
"use": "switch",
|
|
26
|
+
"when": "Only two themes exist and the system option is not offered."
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"use": "menu",
|
|
30
|
+
"when": "The theme choice sits among other account settings."
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
"a11y": {
|
|
35
|
+
"keyboard": [
|
|
36
|
+
{
|
|
37
|
+
"keys": "Arrow keys",
|
|
38
|
+
"does": "Moves between and selects the options."
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"builtIn": [
|
|
42
|
+
"One tab stop; a radio group named \"Theme\".",
|
|
43
|
+
"System says which theme is in effect now."
|
|
44
|
+
],
|
|
45
|
+
"youProvide": []
|
|
46
|
+
},
|
|
47
|
+
"genui": {
|
|
48
|
+
"expose": false
|
|
49
|
+
},
|
|
50
|
+
"source": [
|
|
51
|
+
"src/action/theme-switcher.tsx"
|
|
52
|
+
],
|
|
53
|
+
"props": {
|
|
54
|
+
"ThemeSwitcher": [
|
|
55
|
+
{
|
|
56
|
+
"name": "value",
|
|
57
|
+
"type": "ThemeChoice",
|
|
58
|
+
"required": false,
|
|
59
|
+
"origin": "own",
|
|
60
|
+
"description": "Controlled choice; leave out to let the toggle manage, store and apply it.",
|
|
61
|
+
"schema": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"enum": [
|
|
64
|
+
"system",
|
|
65
|
+
"light",
|
|
66
|
+
"dark"
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "onChange",
|
|
72
|
+
"type": "(choice: ThemeChoice) => void",
|
|
73
|
+
"required": false,
|
|
74
|
+
"origin": "own"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "labels",
|
|
78
|
+
"type": "Partial<ThemeLabels>",
|
|
79
|
+
"required": false,
|
|
80
|
+
"origin": "own",
|
|
81
|
+
"description": "Localized names; the locale's built-in strings by default."
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "storageKey",
|
|
85
|
+
"type": "string",
|
|
86
|
+
"required": false,
|
|
87
|
+
"origin": "own",
|
|
88
|
+
"schema": {
|
|
89
|
+
"type": "string"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"name": "variant",
|
|
94
|
+
"type": "\"list\" | \"menu\" | \"segmented\"",
|
|
95
|
+
"required": false,
|
|
96
|
+
"origin": "own",
|
|
97
|
+
"default": "\"segmented\"",
|
|
98
|
+
"description": "`segmented`: three icon buttons. `menu`: one icon button (the theme in effect) that opens System / Light / Dark,\nthe compact form for a busy header. `list`: a three-option list with a check, for the phone menu.",
|
|
99
|
+
"schema": {
|
|
100
|
+
"type": "string",
|
|
101
|
+
"enum": [
|
|
102
|
+
"list",
|
|
103
|
+
"menu",
|
|
104
|
+
"segmented"
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
},
|
|
110
|
+
"tokens": [
|
|
111
|
+
"ds-background-neutral",
|
|
112
|
+
"ds-background-neutral-bold",
|
|
113
|
+
"ds-background-neutral-pressed",
|
|
114
|
+
"ds-background-neutral-subtle-hovered",
|
|
115
|
+
"ds-background-segment-selected",
|
|
116
|
+
"ds-border-focused",
|
|
117
|
+
"ds-icon",
|
|
118
|
+
"ds-icon-subtle",
|
|
119
|
+
"ds-radius-control-medium",
|
|
120
|
+
"ds-radius-large",
|
|
121
|
+
"ds-radius-medium",
|
|
122
|
+
"ds-radius-small",
|
|
123
|
+
"ds-shadow-overlay",
|
|
124
|
+
"ds-shadow-raised",
|
|
125
|
+
"ds-size-control",
|
|
126
|
+
"ds-space-050",
|
|
127
|
+
"ds-space-100",
|
|
128
|
+
"ds-space-150",
|
|
129
|
+
"ds-surface-overlay",
|
|
130
|
+
"ds-text",
|
|
131
|
+
"ds-text-inverse",
|
|
132
|
+
"ds-text-subtle"
|
|
133
|
+
],
|
|
134
|
+
"strings": [
|
|
135
|
+
"theme",
|
|
136
|
+
"themeDark",
|
|
137
|
+
"themeLight",
|
|
138
|
+
"themeNowDark",
|
|
139
|
+
"themeNowLight",
|
|
140
|
+
"themeSystem"
|
|
141
|
+
],
|
|
142
|
+
"quality": {
|
|
143
|
+
"tests": true,
|
|
144
|
+
"a11y": false,
|
|
145
|
+
"docs": false,
|
|
146
|
+
"visual": false,
|
|
147
|
+
"dark": false,
|
|
148
|
+
"rtl": false,
|
|
149
|
+
"mcp": true,
|
|
150
|
+
"generic": true
|
|
151
|
+
}
|
|
152
|
+
}
|
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://design.senvenli.com/schema/component.full.json",
|
|
3
|
+
"kind": "component",
|
|
4
|
+
"family": "date",
|
|
5
|
+
"status": "alpha",
|
|
6
|
+
"import": "@senvenli/react/date",
|
|
7
|
+
"name": "time-field",
|
|
8
|
+
"title": "Time field",
|
|
9
|
+
"exports": [
|
|
10
|
+
"TimeField"
|
|
11
|
+
],
|
|
12
|
+
"description": "A typed time in the locale's clock, with minute steps and an optional time zone.",
|
|
13
|
+
"keywords": [
|
|
14
|
+
"time",
|
|
15
|
+
"hour",
|
|
16
|
+
"clock",
|
|
17
|
+
"input"
|
|
18
|
+
],
|
|
19
|
+
"usage": {
|
|
20
|
+
"when": [
|
|
21
|
+
"Typing a time of day."
|
|
22
|
+
],
|
|
23
|
+
"instead": [
|
|
24
|
+
{
|
|
25
|
+
"use": "radio",
|
|
26
|
+
"when": "Only certain times are available: a card RadioGroup of them (see its time-slots example)."
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"a11y": {
|
|
31
|
+
"keyboard": [
|
|
32
|
+
{
|
|
33
|
+
"keys": "Arrow up / down",
|
|
34
|
+
"does": "Changes the focused part."
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"builtIn": [
|
|
38
|
+
"Required fields show \"Fill in this field.\"; a partly typed date says what is missing."
|
|
39
|
+
],
|
|
40
|
+
"youProvide": [
|
|
41
|
+
"A visible label."
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
"related": [
|
|
45
|
+
"radio",
|
|
46
|
+
"date-field"
|
|
47
|
+
],
|
|
48
|
+
"genui": {
|
|
49
|
+
"expose": false
|
|
50
|
+
},
|
|
51
|
+
"source": [
|
|
52
|
+
"src/date/fields.tsx"
|
|
53
|
+
],
|
|
54
|
+
"props": {
|
|
55
|
+
"TimeField": [
|
|
56
|
+
{
|
|
57
|
+
"name": "label",
|
|
58
|
+
"type": "React.ReactNode",
|
|
59
|
+
"required": true,
|
|
60
|
+
"origin": "own",
|
|
61
|
+
"description": "Always given; the label sits above the field and names its segments."
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "description",
|
|
65
|
+
"type": "React.ReactNode",
|
|
66
|
+
"required": false,
|
|
67
|
+
"origin": "own"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "errorMessage",
|
|
71
|
+
"type": "React.ReactNode",
|
|
72
|
+
"required": false,
|
|
73
|
+
"origin": "own",
|
|
74
|
+
"description": "What happened and what to do; shown when the field is invalid."
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "isRequired",
|
|
78
|
+
"type": "boolean",
|
|
79
|
+
"required": false,
|
|
80
|
+
"origin": "own",
|
|
81
|
+
"schema": {
|
|
82
|
+
"type": "boolean"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "requiredValidation",
|
|
87
|
+
"type": "RequiredValidation",
|
|
88
|
+
"required": false,
|
|
89
|
+
"origin": "own",
|
|
90
|
+
"description": "Who says an empty required field is missing: `field` (default) or `app`. With `app` a DS\nForm's `onSubmit` runs with the field empty, and the app's own error must clear on change. See\n{@link RequiredValidation} for the whole contract.",
|
|
91
|
+
"schema": {
|
|
92
|
+
"type": "string",
|
|
93
|
+
"enum": [
|
|
94
|
+
"field",
|
|
95
|
+
"app"
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"name": "isOptional",
|
|
101
|
+
"type": "boolean",
|
|
102
|
+
"required": false,
|
|
103
|
+
"origin": "own",
|
|
104
|
+
"description": "Shows \"(optional)\" when most of the form is required.",
|
|
105
|
+
"schema": {
|
|
106
|
+
"type": "boolean"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"name": "isDisabled",
|
|
111
|
+
"type": "boolean",
|
|
112
|
+
"required": false,
|
|
113
|
+
"origin": "own",
|
|
114
|
+
"schema": {
|
|
115
|
+
"type": "boolean"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"name": "isReadOnly",
|
|
120
|
+
"type": "boolean",
|
|
121
|
+
"required": false,
|
|
122
|
+
"origin": "own",
|
|
123
|
+
"schema": {
|
|
124
|
+
"type": "boolean"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"name": "isInvalid",
|
|
129
|
+
"type": "boolean",
|
|
130
|
+
"required": false,
|
|
131
|
+
"origin": "own",
|
|
132
|
+
"description": "Marks the field invalid from outside (a server error); `errorMessage` says why.",
|
|
133
|
+
"schema": {
|
|
134
|
+
"type": "boolean"
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"name": "id",
|
|
139
|
+
"type": "string",
|
|
140
|
+
"required": false,
|
|
141
|
+
"origin": "own",
|
|
142
|
+
"description": "The id of the field's first typed segment (day, or the locale's first part), the element that takes focus\n: `document.getElementById(id).focus()` puts the user in the field, as a focus-on-error does. The\nfield's group gets an id of its own. Left out, the DOM is as before.",
|
|
143
|
+
"schema": {
|
|
144
|
+
"type": "string"
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"name": "name",
|
|
149
|
+
"type": "string",
|
|
150
|
+
"required": false,
|
|
151
|
+
"origin": "own",
|
|
152
|
+
"description": "The form field name; the value is submitted as an ISO string.",
|
|
153
|
+
"schema": {
|
|
154
|
+
"type": "string"
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"name": "autoFocus",
|
|
159
|
+
"type": "boolean",
|
|
160
|
+
"required": false,
|
|
161
|
+
"origin": "own",
|
|
162
|
+
"schema": {
|
|
163
|
+
"type": "boolean"
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"name": "onBlur",
|
|
168
|
+
"type": "(event: FocusEvent<Element, Element>) => void",
|
|
169
|
+
"required": false,
|
|
170
|
+
"origin": "own"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"name": "value",
|
|
174
|
+
"type": "TimeValue",
|
|
175
|
+
"required": false,
|
|
176
|
+
"origin": "own",
|
|
177
|
+
"description": "A time, or a zoned date-time when a location's zone travels with it.\n\nWhile the user leaves a time typed in part (\"10:––\"), the field reports `onChange(null)` and keeps the typed parts\non screen, so setting `null` changes nothing: the value already is null. To clear the field (an app's own \"Temizle\"\nor form reset), give it a new `key` along with the value: React remounts it empty, or at the value given\n."
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"name": "defaultValue",
|
|
181
|
+
"type": "TimeValue",
|
|
182
|
+
"required": false,
|
|
183
|
+
"origin": "own"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"name": "onChange",
|
|
187
|
+
"type": "(value: TimeValue | null) => void",
|
|
188
|
+
"required": false,
|
|
189
|
+
"origin": "own"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"name": "hourCycle",
|
|
193
|
+
"type": "12 | 24",
|
|
194
|
+
"required": false,
|
|
195
|
+
"origin": "own",
|
|
196
|
+
"description": "24-hour in tr and me, 12-hour in en-US; from the locale unless set.",
|
|
197
|
+
"schema": {
|
|
198
|
+
"enum": [
|
|
199
|
+
12,
|
|
200
|
+
24
|
|
201
|
+
]
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"name": "granularity",
|
|
206
|
+
"type": "\"hour\" | \"minute\"",
|
|
207
|
+
"required": false,
|
|
208
|
+
"origin": "own",
|
|
209
|
+
"schema": {
|
|
210
|
+
"type": "string",
|
|
211
|
+
"enum": [
|
|
212
|
+
"hour",
|
|
213
|
+
"minute"
|
|
214
|
+
]
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"name": "minuteStep",
|
|
219
|
+
"type": "number",
|
|
220
|
+
"required": false,
|
|
221
|
+
"origin": "own",
|
|
222
|
+
"description": "Arrow keys step the minutes by this much (15 or 30).",
|
|
223
|
+
"schema": {
|
|
224
|
+
"type": "number"
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"name": "timeZone",
|
|
229
|
+
"type": "string",
|
|
230
|
+
"required": false,
|
|
231
|
+
"origin": "own",
|
|
232
|
+
"description": "The location's zone (IANA, \"Europe/Lisbon\"). Named after the time when it differs from the user's.",
|
|
233
|
+
"schema": {
|
|
234
|
+
"type": "string"
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"name": "minValue",
|
|
239
|
+
"type": "TimeValue",
|
|
240
|
+
"required": false,
|
|
241
|
+
"origin": "own"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"name": "maxValue",
|
|
245
|
+
"type": "TimeValue",
|
|
246
|
+
"required": false,
|
|
247
|
+
"origin": "own"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"name": "validate",
|
|
251
|
+
"type": "(value: TimeValue | null) => string | true | string[] | null | undefined",
|
|
252
|
+
"required": false,
|
|
253
|
+
"origin": "own"
|
|
254
|
+
}
|
|
255
|
+
]
|
|
256
|
+
},
|
|
257
|
+
"tokens": [
|
|
258
|
+
"ds-background-brand-bold",
|
|
259
|
+
"ds-radius-small",
|
|
260
|
+
"ds-text-disabled",
|
|
261
|
+
"ds-text-on-brand",
|
|
262
|
+
"ds-text-subtle",
|
|
263
|
+
"ds-text-subtlest"
|
|
264
|
+
],
|
|
265
|
+
"strings": [
|
|
266
|
+
"dateIncomplete",
|
|
267
|
+
"dateTimeIncomplete",
|
|
268
|
+
"monthHasDays",
|
|
269
|
+
"optional",
|
|
270
|
+
"required",
|
|
271
|
+
"thisMonthHasDays",
|
|
272
|
+
"timeIncomplete"
|
|
273
|
+
],
|
|
274
|
+
"quality": {
|
|
275
|
+
"tests": true,
|
|
276
|
+
"a11y": false,
|
|
277
|
+
"docs": false,
|
|
278
|
+
"visual": false,
|
|
279
|
+
"dark": false,
|
|
280
|
+
"rtl": false,
|
|
281
|
+
"mcp": true,
|
|
282
|
+
"generic": true
|
|
283
|
+
}
|
|
284
|
+
}
|