@jcsoftdev/ui 0.2.3 → 0.4.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/CHANGELOG.md +390 -7
- package/README.md +57 -3
- package/bin/ui-theme.mjs +1162 -25
- package/dist/ai/attachment/attachment.js +1 -1
- package/dist/ai/chat-list/group.js +3 -1
- package/dist/ai/conversation/conversation.js +1 -1
- package/dist/ai/internal/use-copy.d.ts +1 -5
- package/dist/ai/internal/use-copy.js +1 -32
- package/dist/ai/markdown/parse.js +59 -17
- package/dist/ai/source/source.js +1 -1
- package/dist/atoms/avatar/avatar.d.ts +13 -3
- package/dist/atoms/avatar/avatar.js +40 -2
- package/dist/atoms/avatar/index.d.ts +1 -1
- package/dist/atoms/avatar/index.js +3 -1
- package/dist/atoms/button/button.d.ts +4 -1
- package/dist/atoms/button/button.js +4 -2
- package/dist/atoms/checkbox/checkbox.d.ts +8 -3
- package/dist/atoms/checkbox/checkbox.js +26 -3
- package/dist/atoms/chip/chip.d.ts +19 -5
- package/dist/atoms/chip/chip.js +34 -5
- package/dist/atoms/chip/index.d.ts +1 -1
- package/dist/atoms/chip/index.js +6 -1
- package/dist/atoms/due-chip/due-chip.d.ts +31 -0
- package/dist/atoms/due-chip/due-chip.js +41 -0
- package/dist/atoms/due-chip/index.d.ts +2 -0
- package/dist/atoms/due-chip/index.js +6 -0
- package/dist/atoms/due-chip/model.d.ts +25 -0
- package/dist/atoms/due-chip/model.js +44 -0
- package/dist/atoms/icon-button/icon-button.d.ts +22 -0
- package/dist/atoms/icon-button/icon-button.js +38 -0
- package/dist/atoms/icon-button/index.d.ts +1 -0
- package/dist/atoms/icon-button/index.js +8 -0
- package/dist/atoms/index.d.ts +5 -0
- package/dist/atoms/index.js +5 -0
- package/dist/atoms/internal/hit-area.d.ts +6 -0
- package/dist/atoms/internal/hit-area.js +4 -0
- package/dist/atoms/kbd/index.d.ts +1 -0
- package/dist/atoms/kbd/index.js +4 -0
- package/dist/atoms/kbd/kbd.d.ts +7 -0
- package/dist/atoms/kbd/kbd.js +17 -0
- package/dist/atoms/radio-group/radio-group.js +6 -2
- package/dist/atoms/seal/index.d.ts +1 -0
- package/dist/atoms/seal/index.js +4 -0
- package/dist/atoms/seal/seal.d.ts +30 -0
- package/dist/atoms/seal/seal.js +71 -0
- package/dist/atoms/spinner/index.d.ts +1 -0
- package/dist/atoms/spinner/index.js +5 -0
- package/dist/atoms/spinner/spinner.d.ts +19 -0
- package/dist/atoms/spinner/spinner.js +31 -0
- package/dist/atoms/status-dot/index.d.ts +1 -1
- package/dist/atoms/status-dot/status-dot.d.ts +4 -2
- package/dist/atoms/status-dot/status-dot.js +5 -1
- package/dist/atoms/switch/switch.js +3 -1
- package/dist/calendar/date-calendar/date-calendar.d.ts +32 -0
- package/dist/calendar/date-calendar/date-calendar.js +189 -0
- package/dist/calendar/date-calendar/index.d.ts +1 -0
- package/dist/calendar/date-calendar/index.js +6 -0
- package/dist/calendar/index.d.ts +1 -0
- package/dist/calendar/index.js +1 -0
- package/dist/calendar/internal/date-utils.d.ts +26 -0
- package/dist/calendar/internal/date-utils.js +95 -1
- package/dist/charts/bar-chart/bar-race-chart.js +1 -0
- package/dist/charts/beeswarm-chart/beeswarm-chart.js +1 -1
- package/dist/charts/chord-chart/chord-chart.js +13 -5
- package/dist/charts/core/cartesian/cartesian-chart.d.ts +1 -1
- package/dist/charts/core/cartesian/cartesian-chart.js +48 -11
- package/dist/charts/core/cartesian/layout.d.ts +6 -1
- package/dist/charts/core/cartesian/layout.js +14 -5
- package/dist/charts/core/cartesian/marks.d.ts +2 -2
- package/dist/charts/core/cartesian/marks.js +1 -1
- package/dist/charts/core/cartesian/types.d.ts +28 -2
- package/dist/charts/core/category-explorer.d.ts +2 -2
- package/dist/charts/core/category-explorer.js +8 -4
- package/dist/charts/core/chart-dock.d.ts +26 -0
- package/dist/charts/core/chart-dock.js +45 -0
- package/dist/charts/core/chart-frame.d.ts +9 -2
- package/dist/charts/core/chart-frame.js +105 -25
- package/dist/charts/core/distribution/explorer.d.ts +5 -2
- package/dist/charts/core/distribution/explorer.js +12 -5
- package/dist/charts/core/distribution/xy-points.js +1 -1
- package/dist/charts/core/index.d.ts +3 -0
- package/dist/charts/core/index.js +3 -0
- package/dist/charts/core/leave-grace.d.ts +11 -0
- package/dist/charts/core/leave-grace.js +26 -0
- package/dist/charts/core/nearest.d.ts +14 -0
- package/dist/charts/core/nearest.js +22 -0
- package/dist/charts/core/plot-overlay.js +9 -3
- package/dist/charts/core/pointer.test-utils.d.ts +38 -0
- package/dist/charts/core/pointer.test-utils.js +123 -0
- package/dist/charts/core/tooltip.d.ts +25 -2
- package/dist/charts/core/tooltip.js +115 -40
- package/dist/charts/core/touch-select.d.ts +20 -0
- package/dist/charts/core/touch-select.js +184 -0
- package/dist/charts/core/types.d.ts +8 -4
- package/dist/charts/core/types.js +5 -0
- package/dist/charts/core/use-index-navigation.d.ts +17 -6
- package/dist/charts/core/use-index-navigation.js +47 -10
- package/dist/charts/donut-chart/donut-chart.d.ts +5 -1
- package/dist/charts/donut-chart/donut-chart.js +40 -1
- package/dist/charts/donut-chart/slice-labels.d.ts +20 -0
- package/dist/charts/donut-chart/slice-labels.js +20 -0
- package/dist/charts/dumbbell-chart/dumbbell-chart.js +6 -3
- package/dist/charts/fill-gauge-chart/fill-gauge-chart.js +1 -0
- package/dist/charts/funnel-chart/funnel-chart.js +2 -1
- package/dist/charts/gauge-chart/gauge-chart.js +2 -1
- package/dist/charts/heatmap-chart/heatmap-chart.d.ts +4 -1
- package/dist/charts/heatmap-chart/heatmap-chart.js +3 -1
- package/dist/charts/heatmap-chart/heatmap-grid.d.ts +4 -1
- package/dist/charts/heatmap-chart/heatmap-grid.js +3 -1
- package/dist/charts/hex-tile-map/hex-tile-map.js +124 -115
- package/dist/charts/hierarchy-morph/hierarchy-morph.js +2 -1
- package/dist/charts/icicle-chart/icicle-chart.js +7 -9
- package/dist/charts/lollipop-chart/lollipop-chart.js +6 -3
- package/dist/charts/maps/geo/map-viewport.js +1 -1
- package/dist/charts/polar-area-chart/polar-area-chart.js +42 -12
- package/dist/charts/progress-units/progress-units.js +1 -0
- package/dist/charts/radar-chart/radar-chart.js +1 -1
- package/dist/charts/radial-bar-chart/radial-bar-chart.js +2 -1
- package/dist/charts/range-area-chart/range-area-chart.js +3 -2
- package/dist/charts/sankey-chart/sankey-chart.js +12 -4
- package/dist/charts/tree-chart/tree-chart.js +1 -0
- package/dist/charts/treemap-chart/treemap-chart.js +2 -7
- package/dist/charts/waterfall-chart/waterfall-chart.js +6 -3
- package/dist/containers/action-bar/action-bar.d.ts +11 -2
- package/dist/containers/action-bar/action-bar.js +4 -1
- package/dist/containers/aside/aside.d.ts +14 -0
- package/dist/containers/aside/aside.js +25 -0
- package/dist/containers/aside/index.d.ts +1 -0
- package/dist/containers/aside/index.js +5 -0
- package/dist/containers/banner/banner.d.ts +4 -1
- package/dist/containers/banner/banner.js +9 -1
- package/dist/containers/card/card.d.ts +21 -3
- package/dist/containers/card/card.js +20 -5
- package/dist/containers/description-list/description-list.d.ts +29 -6
- package/dist/containers/description-list/description-list.js +47 -6
- package/dist/containers/feed/feed.d.ts +23 -0
- package/dist/containers/feed/feed.js +77 -0
- package/dist/containers/feed/index.d.ts +2 -0
- package/dist/containers/feed/index.js +10 -0
- package/dist/containers/feed/model.d.ts +19 -0
- package/dist/containers/feed/model.js +38 -0
- package/dist/containers/grid/grid.d.ts +15 -0
- package/dist/containers/grid/grid.js +24 -0
- package/dist/containers/grid/index.d.ts +1 -0
- package/dist/containers/grid/index.js +4 -0
- package/dist/containers/index.d.ts +9 -0
- package/dist/containers/index.js +9 -0
- package/dist/containers/kpi/kpi.d.ts +60 -7
- package/dist/containers/kpi/kpi.js +142 -28
- package/dist/containers/kpi-group/index.d.ts +1 -1
- package/dist/containers/kpi-group/index.js +3 -1
- package/dist/containers/kpi-group/kpi-group.d.ts +9 -1
- package/dist/containers/kpi-group/kpi-group.js +11 -1
- package/dist/containers/list-detail/index.d.ts +1 -0
- package/dist/containers/list-detail/index.js +20 -0
- package/dist/containers/list-detail/list-detail.d.ts +55 -0
- package/dist/containers/list-detail/list-detail.js +221 -0
- package/dist/containers/note/index.d.ts +1 -0
- package/dist/containers/note/index.js +4 -0
- package/dist/containers/note/note.d.ts +13 -0
- package/dist/containers/note/note.js +27 -0
- package/dist/containers/page/index.d.ts +1 -0
- package/dist/containers/page/index.js +4 -0
- package/dist/containers/page/page.d.ts +7 -0
- package/dist/containers/page/page.js +14 -0
- package/dist/containers/page-header/page-header.d.ts +8 -3
- package/dist/containers/page-header/page-header.js +35 -8
- package/dist/containers/responsive-list/responsive-list.d.ts +1 -1
- package/dist/containers/responsive-list/responsive-list.js +6 -3
- package/dist/containers/section/index.d.ts +1 -0
- package/dist/containers/section/index.js +6 -0
- package/dist/containers/section/section.d.ts +68 -0
- package/dist/containers/section/section.js +198 -0
- package/dist/containers/shortcuts/index.d.ts +1 -0
- package/dist/containers/shortcuts/index.js +8 -0
- package/dist/containers/shortcuts/shortcuts.d.ts +18 -0
- package/dist/containers/shortcuts/shortcuts.js +50 -0
- package/dist/containers/stack/index.d.ts +1 -0
- package/dist/containers/stack/index.js +6 -0
- package/dist/containers/stack/stack.d.ts +15 -0
- package/dist/containers/stack/stack.js +43 -0
- package/dist/containers/table/selection.d.ts +9 -0
- package/dist/containers/table/selection.js +20 -0
- package/dist/containers/table/table.d.ts +66 -4
- package/dist/containers/table/table.js +128 -7
- package/dist/containers/timeline/index.d.ts +1 -1
- package/dist/containers/timeline/index.js +4 -2
- package/dist/containers/timeline/timeline.d.ts +32 -5
- package/dist/containers/timeline/timeline.js +154 -90
- package/dist/forms/chip-group/chip-group.d.ts +54 -0
- package/dist/forms/chip-group/chip-group.js +114 -0
- package/dist/forms/chip-group/index.d.ts +1 -0
- package/dist/forms/chip-group/index.js +6 -0
- package/dist/forms/combobox/combobox.d.ts +60 -0
- package/dist/forms/combobox/combobox.js +281 -0
- package/dist/forms/combobox/index.d.ts +1 -0
- package/dist/forms/combobox/index.js +6 -0
- package/dist/forms/copy-field/copy-field.d.ts +17 -0
- package/dist/forms/copy-field/copy-field.js +72 -0
- package/dist/forms/copy-field/index.d.ts +1 -0
- package/dist/forms/copy-field/index.js +4 -0
- package/dist/forms/date-picker/date-picker.d.ts +40 -0
- package/dist/forms/date-picker/date-picker.js +183 -0
- package/dist/forms/date-picker/date-time-picker.d.ts +43 -0
- package/dist/forms/date-picker/date-time-picker.js +121 -0
- package/dist/forms/date-picker/index.d.ts +2 -0
- package/dist/forms/date-picker/index.js +10 -0
- package/dist/forms/date-picker/model.d.ts +35 -0
- package/dist/forms/date-picker/model.js +83 -0
- package/dist/forms/dropzone/dropzone.d.ts +30 -2
- package/dist/forms/dropzone/dropzone.js +153 -23
- package/dist/forms/emoji-picker/emoji-picker.js +1 -1
- package/dist/forms/field/field.d.ts +16 -10
- package/dist/forms/field/field.js +41 -5
- package/dist/forms/form/form.d.ts +15 -0
- package/dist/forms/form/form.js +29 -0
- package/dist/forms/form/index.d.ts +1 -0
- package/dist/forms/form/index.js +10 -0
- package/dist/forms/index.d.ts +6 -0
- package/dist/forms/index.js +6 -0
- package/dist/forms/input/index.d.ts +1 -1
- package/dist/forms/input/index.js +6 -2
- package/dist/forms/input/input.d.ts +23 -3
- package/dist/forms/input/input.js +78 -7
- package/dist/forms/input-icon/input-icon.d.ts +1 -1
- package/dist/forms/internal/listbox-items.d.ts +18 -0
- package/dist/forms/internal/listbox-items.js +88 -0
- package/dist/forms/internal/listbox.d.ts +44 -0
- package/dist/forms/internal/listbox.js +74 -0
- package/dist/forms/number-stepper/model.d.ts +16 -0
- package/dist/forms/number-stepper/model.js +23 -0
- package/dist/forms/number-stepper/number-stepper.d.ts +36 -6
- package/dist/forms/number-stepper/number-stepper.js +86 -37
- package/dist/forms/select-menu/index.d.ts +1 -0
- package/dist/forms/select-menu/index.js +6 -0
- package/dist/forms/select-menu/select-menu.d.ts +35 -0
- package/dist/forms/select-menu/select-menu.js +230 -0
- package/dist/glass/crystal-map.d.ts +70 -0
- package/dist/glass/crystal-map.js +88 -0
- package/dist/glass/displacement-map.d.ts +117 -0
- package/dist/glass/displacement-map.js +201 -0
- package/dist/glass/index.d.ts +8 -0
- package/dist/glass/index.js +63 -0
- package/dist/glass/lens-crystal.d.ts +29 -0
- package/dist/glass/lens-crystal.js +161 -0
- package/dist/glass/lens-dispersion.d.ts +11 -0
- package/dist/glass/lens-dispersion.js +19 -0
- package/dist/glass/liquid-glass.d.ts +41 -0
- package/dist/glass/liquid-glass.js +256 -0
- package/dist/glass/liquid-motion.d.ts +53 -0
- package/dist/glass/liquid-motion.js +302 -0
- package/dist/glass/liquid-options.d.ts +162 -0
- package/dist/glass/liquid-options.js +179 -0
- package/dist/glass/refraction.d.ts +100 -0
- package/dist/glass/refraction.js +714 -0
- package/dist/glass/specular-map.d.ts +26 -0
- package/dist/glass/specular-map.js +75 -0
- package/dist/glass/spring.d.ts +79 -0
- package/dist/glass/spring.js +58 -0
- package/dist/glass/support.d.ts +13 -0
- package/dist/glass/support.js +14 -0
- package/dist/glass/use-glass-refraction.d.ts +8 -0
- package/dist/glass/use-glass-refraction.js +16 -0
- package/dist/i18n/strings.d.ts +113 -0
- package/dist/i18n/strings.js +70 -2
- package/dist/i18n/ui-strings-provider.d.ts +1 -1
- package/dist/i18n/ui-strings-provider.js +6 -2
- package/dist/icons/index.d.ts +2 -0
- package/dist/icons/index.js +4 -0
- package/dist/icons/key.d.ts +2 -0
- package/dist/icons/key.js +12 -0
- package/dist/icons/webhook.d.ts +2 -0
- package/dist/icons/webhook.js +12 -0
- package/dist/liquid/index.d.ts +3 -0
- package/dist/liquid/index.js +29 -0
- package/dist/navigation/breadcrumbs/breadcrumbs.d.ts +29 -0
- package/dist/navigation/breadcrumbs/breadcrumbs.js +70 -0
- package/dist/navigation/breadcrumbs/index.d.ts +1 -0
- package/dist/navigation/breadcrumbs/index.js +6 -0
- package/dist/navigation/index.d.ts +2 -0
- package/dist/navigation/index.js +2 -0
- package/dist/navigation/segmented/index.d.ts +1 -1
- package/dist/navigation/segmented/model.d.ts +5 -0
- package/dist/navigation/segmented/model.js +6 -0
- package/dist/navigation/segmented/segmented.d.ts +17 -3
- package/dist/navigation/segmented/segmented.js +20 -4
- package/dist/navigation/stepper/index.d.ts +1 -1
- package/dist/navigation/stepper/index.js +3 -1
- package/dist/navigation/stepper/stepper.d.ts +8 -0
- package/dist/navigation/stepper/stepper.js +68 -45
- package/dist/navigation/tabs/index.d.ts +1 -0
- package/dist/navigation/tabs/index.js +6 -0
- package/dist/navigation/tabs/tabs-nav.d.ts +37 -0
- package/dist/navigation/tabs/tabs-nav.js +57 -0
- package/dist/navigation/wizard/index.d.ts +1 -0
- package/dist/navigation/wizard/index.js +6 -0
- package/dist/navigation/wizard/model.d.ts +33 -0
- package/dist/navigation/wizard/model.js +34 -0
- package/dist/navigation/wizard/wizard.d.ts +45 -0
- package/dist/navigation/wizard/wizard.js +169 -0
- package/dist/overlays/alert-dialog/alert-dialog.d.ts +103 -0
- package/dist/overlays/alert-dialog/alert-dialog.js +342 -0
- package/dist/overlays/alert-dialog/index.d.ts +1 -0
- package/dist/overlays/alert-dialog/index.js +26 -0
- package/dist/overlays/context-menu/context-menu.d.ts +9 -1
- package/dist/overlays/context-menu/context-menu.js +4 -1
- package/dist/overlays/dialog/dialog.d.ts +9 -1
- package/dist/overlays/dialog/dialog.js +3 -0
- package/dist/overlays/drawer/drawer.d.ts +9 -1
- package/dist/overlays/drawer/drawer.js +3 -0
- package/dist/overlays/dropdown-menu/dropdown-menu.d.ts +25 -1
- package/dist/overlays/dropdown-menu/dropdown-menu.js +14 -4
- package/dist/overlays/dropdown-menu/index.d.ts +1 -1
- package/dist/overlays/dropdown-menu/index.js +8 -2
- package/dist/overlays/hover-card/hover-card.d.ts +10 -1
- package/dist/overlays/hover-card/hover-card.js +4 -1
- package/dist/overlays/index.d.ts +2 -0
- package/dist/overlays/index.js +2 -0
- package/dist/overlays/popover/popover.d.ts +9 -1
- package/dist/overlays/popover/popover.js +3 -0
- package/dist/overlays/testing/index.d.ts +5 -0
- package/dist/overlays/testing/index.js +4 -0
- package/dist/overlays/toaster/index.d.ts +2 -1
- package/dist/overlays/toaster/index.js +4 -2
- package/dist/overlays/toaster/toast-store.d.ts +6 -2
- package/dist/overlays/toaster/toast.d.ts +3 -0
- package/dist/overlays/toaster/toast.js +3 -0
- package/dist/overlays/toaster/toaster.d.ts +3 -0
- package/dist/overlays/toaster/toaster.js +36 -3
- package/dist/overlays/tooltip/index.d.ts +1 -0
- package/dist/overlays/tooltip/index.js +4 -0
- package/dist/overlays/tooltip/model.d.ts +10 -0
- package/dist/overlays/tooltip/model.js +13 -0
- package/dist/overlays/tooltip/tooltip.d.ts +41 -0
- package/dist/overlays/tooltip/tooltip.js +116 -0
- package/dist/palette/command-palette/command-palette.d.ts +12 -2
- package/dist/palette/command-palette/command-palette.js +5 -0
- package/dist/primitives/command/command.d.ts +3 -2
- package/dist/primitives/command/command.js +2 -0
- package/dist/primitives/menu/menu.js +1 -1
- package/dist/primitives/popper/popper.js +5 -0
- package/dist/primitives/use-dismissable-layer.js +1 -1
- package/dist/rich-text/rich-text-editor.js +94 -8
- package/dist/rich-text/sanitize.js +70 -20
- package/dist/shell/app-shell/app-shell.d.ts +17 -0
- package/dist/shell/app-shell/app-shell.js +44 -4
- package/dist/shell/bottom-nav/bottom-nav.d.ts +34 -0
- package/dist/shell/bottom-nav/bottom-nav.js +124 -0
- package/dist/shell/bottom-nav/index.d.ts +2 -0
- package/dist/shell/bottom-nav/index.js +9 -0
- package/dist/shell/bottom-nav/split.d.ts +11 -0
- package/dist/shell/bottom-nav/split.js +10 -0
- package/dist/shell/sidebar/sidebar.d.ts +16 -2
- package/dist/shell/sidebar/sidebar.js +46 -4
- package/dist/shell/topbar/topbar.d.ts +20 -9
- package/dist/shell/topbar/topbar.js +16 -9
- package/dist/states/empty-state/empty-state.d.ts +3 -1
- package/dist/states/empty-state/empty-state.js +9 -1
- package/dist/states/error-state/error-state.d.ts +8 -1
- package/dist/states/error-state/error-state.js +15 -9
- package/dist/states/index.d.ts +1 -0
- package/dist/states/index.js +1 -0
- package/dist/states/live-status-bar/index.d.ts +1 -0
- package/dist/states/live-status-bar/index.js +6 -0
- package/dist/states/live-status-bar/live-status-bar.d.ts +17 -0
- package/dist/states/live-status-bar/live-status-bar.js +49 -0
- package/dist/states/offline-banner/offline-banner.d.ts +3 -1
- package/dist/states/offline-banner/offline-banner.js +8 -4
- package/dist/states/skeleton/skeleton.d.ts +8 -2
- package/dist/states/skeleton/skeleton.js +44 -2
- package/dist/utils/class-groups.js +17 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +2 -0
- package/dist/utils/material.d.ts +13 -0
- package/dist/utils/material.js +6 -0
- package/dist/utils/tone.d.ts +8 -0
- package/dist/utils/tone.js +17 -0
- package/dist/utils/use-copy.d.ts +5 -0
- package/dist/utils/use-copy.js +35 -0
- package/icons/svg/key.svg +5 -0
- package/icons/svg/webhook.svg +5 -0
- package/package.json +31 -21
- package/scripts/build-theme.d.mts +22 -0
- package/scripts/build-theme.mjs +248 -5
- package/src/ai/attachment/attachment.tsx +1 -1
- package/src/ai/chat-list/group.ts +3 -1
- package/src/ai/conversation/conversation.tsx +1 -1
- package/src/ai/internal/use-copy.ts +1 -38
- package/src/ai/markdown/parse.ts +74 -17
- package/src/ai/source/source.tsx +1 -1
- package/src/atoms/avatar/avatar.tsx +57 -4
- package/src/atoms/avatar/index.ts +8 -1
- package/src/atoms/button/button.tsx +8 -3
- package/src/atoms/checkbox/checkbox.tsx +33 -4
- package/src/atoms/chip/chip.tsx +55 -8
- package/src/atoms/chip/index.ts +9 -1
- package/src/atoms/due-chip/due-chip.tsx +75 -0
- package/src/atoms/due-chip/index.ts +2 -0
- package/src/atoms/due-chip/model.ts +67 -0
- package/src/atoms/icon-button/icon-button.tsx +58 -0
- package/src/atoms/icon-button/index.ts +6 -0
- package/src/atoms/index.ts +5 -0
- package/src/atoms/internal/hit-area.ts +7 -0
- package/src/atoms/kbd/index.ts +1 -0
- package/src/atoms/kbd/kbd.tsx +20 -0
- package/src/atoms/radio-group/radio-group.tsx +8 -2
- package/src/atoms/seal/index.ts +1 -0
- package/src/atoms/seal/seal.tsx +107 -0
- package/src/atoms/spinner/index.ts +1 -0
- package/src/atoms/spinner/spinner.tsx +49 -0
- package/src/atoms/status-dot/index.ts +1 -0
- package/src/atoms/status-dot/status-dot.tsx +15 -3
- package/src/atoms/switch/switch.tsx +3 -1
- package/src/calendar/date-calendar/date-calendar.tsx +230 -0
- package/src/calendar/date-calendar/index.ts +5 -0
- package/src/calendar/index.ts +1 -0
- package/src/calendar/internal/date-utils.ts +115 -0
- package/src/charts/README.md +21 -0
- package/src/charts/bar-chart/bar-race-chart.tsx +1 -0
- package/src/charts/beeswarm-chart/beeswarm-chart.tsx +1 -1
- package/src/charts/chord-chart/chord-chart.tsx +13 -5
- package/src/charts/core/cartesian/cartesian-chart.tsx +55 -10
- package/src/charts/core/cartesian/layout.ts +29 -10
- package/src/charts/core/cartesian/marks.tsx +3 -3
- package/src/charts/core/cartesian/types.ts +30 -2
- package/src/charts/core/category-explorer.tsx +12 -6
- package/src/charts/core/chart-dock.tsx +68 -0
- package/src/charts/core/chart-frame.tsx +116 -27
- package/src/charts/core/distribution/explorer.tsx +17 -7
- package/src/charts/core/distribution/xy-points.tsx +1 -1
- package/src/charts/core/index.ts +3 -0
- package/src/charts/core/leave-grace.ts +35 -0
- package/src/charts/core/nearest.ts +38 -0
- package/src/charts/core/plot-overlay.tsx +9 -3
- package/src/charts/core/pointer.test-utils.ts +146 -0
- package/src/charts/core/tooltip.tsx +129 -15
- package/src/charts/core/touch-select.ts +250 -0
- package/src/charts/core/types.ts +13 -4
- package/src/charts/core/use-index-navigation.ts +70 -11
- package/src/charts/donut-chart/donut-chart.tsx +53 -3
- package/src/charts/donut-chart/slice-labels.ts +39 -0
- package/src/charts/dumbbell-chart/dumbbell-chart.tsx +8 -3
- package/src/charts/fill-gauge-chart/fill-gauge-chart.tsx +1 -0
- package/src/charts/funnel-chart/funnel-chart.tsx +2 -1
- package/src/charts/gauge-chart/gauge-chart.tsx +2 -1
- package/src/charts/heatmap-chart/heatmap-chart.tsx +5 -0
- package/src/charts/heatmap-chart/heatmap-grid.tsx +5 -1
- package/src/charts/hex-tile-map/hex-tile-map.tsx +6 -1
- package/src/charts/hierarchy-morph/hierarchy-morph.tsx +2 -1
- package/src/charts/icicle-chart/icicle-chart.tsx +8 -9
- package/src/charts/lollipop-chart/lollipop-chart.tsx +8 -3
- package/src/charts/maps/geo/map-viewport.tsx +1 -1
- package/src/charts/polar-area-chart/polar-area-chart.tsx +37 -12
- package/src/charts/progress-units/progress-units.tsx +1 -0
- package/src/charts/radar-chart/radar-chart.tsx +1 -1
- package/src/charts/radial-bar-chart/radial-bar-chart.tsx +2 -1
- package/src/charts/range-area-chart/range-area-chart.tsx +3 -2
- package/src/charts/sankey-chart/sankey-chart.tsx +12 -4
- package/src/charts/tree-chart/tree-chart.tsx +1 -0
- package/src/charts/treemap-chart/treemap-chart.tsx +2 -7
- package/src/charts/waterfall-chart/waterfall-chart.tsx +8 -3
- package/src/containers/action-bar/action-bar.tsx +13 -2
- package/src/containers/aside/aside.tsx +40 -0
- package/src/containers/aside/index.ts +1 -0
- package/src/containers/banner/banner.tsx +18 -1
- package/src/containers/card/card.tsx +43 -4
- package/src/containers/description-list/description-list.tsx +85 -9
- package/src/containers/feed/feed.tsx +99 -0
- package/src/containers/feed/index.ts +8 -0
- package/src/containers/feed/model.ts +54 -0
- package/src/containers/grid/grid.tsx +37 -0
- package/src/containers/grid/index.ts +1 -0
- package/src/containers/index.ts +9 -0
- package/src/containers/kpi/kpi.tsx +231 -38
- package/src/containers/kpi-group/index.ts +7 -1
- package/src/containers/kpi-group/kpi-group.tsx +26 -1
- package/src/containers/list-detail/index.ts +15 -0
- package/src/containers/list-detail/list-detail.tsx +293 -0
- package/src/containers/note/index.ts +1 -0
- package/src/containers/note/note.tsx +38 -0
- package/src/containers/page/index.ts +1 -0
- package/src/containers/page/page.tsx +17 -0
- package/src/containers/page-header/page-header.tsx +38 -8
- package/src/containers/responsive-list/responsive-list.tsx +7 -4
- package/src/containers/section/index.ts +11 -0
- package/src/containers/section/section.tsx +281 -0
- package/src/containers/shortcuts/index.ts +6 -0
- package/src/containers/shortcuts/shortcuts.tsx +92 -0
- package/src/containers/stack/index.ts +7 -0
- package/src/containers/stack/stack.tsx +55 -0
- package/src/containers/table/selection.ts +26 -0
- package/src/containers/table/table.tsx +215 -13
- package/src/containers/timeline/index.ts +3 -0
- package/src/containers/timeline/timeline.tsx +204 -93
- package/src/forms/chip-group/chip-group.tsx +184 -0
- package/src/forms/chip-group/index.ts +8 -0
- package/src/forms/combobox/combobox.tsx +359 -0
- package/src/forms/combobox/index.ts +7 -0
- package/src/forms/copy-field/copy-field.tsx +88 -0
- package/src/forms/copy-field/index.ts +1 -0
- package/src/forms/date-picker/date-picker.tsx +239 -0
- package/src/forms/date-picker/date-time-picker.tsx +178 -0
- package/src/forms/date-picker/index.ts +10 -0
- package/src/forms/date-picker/model.ts +108 -0
- package/src/forms/dropzone/dropzone.tsx +217 -35
- package/src/forms/emoji-picker/emoji-picker.tsx +1 -1
- package/src/forms/field/field.tsx +72 -7
- package/src/forms/form/form.tsx +46 -0
- package/src/forms/form/index.ts +8 -0
- package/src/forms/index.ts +6 -0
- package/src/forms/input/index.ts +8 -1
- package/src/forms/input/input.tsx +103 -7
- package/src/forms/input-icon/input-icon.tsx +1 -1
- package/src/forms/internal/listbox-items.tsx +103 -0
- package/src/forms/internal/listbox.ts +124 -0
- package/src/forms/number-stepper/model.ts +35 -0
- package/src/forms/number-stepper/number-stepper.tsx +132 -42
- package/src/forms/select-menu/index.ts +7 -0
- package/src/forms/select-menu/select-menu.tsx +280 -0
- package/src/glass/crystal-map.ts +150 -0
- package/src/glass/displacement-map.ts +317 -0
- package/src/glass/index.ts +43 -0
- package/src/glass/lens-crystal.ts +226 -0
- package/src/glass/lens-dispersion.ts +34 -0
- package/src/glass/liquid-glass.tsx +371 -0
- package/src/glass/liquid-motion.ts +395 -0
- package/src/glass/liquid-options.ts +306 -0
- package/src/glass/refraction.ts +1010 -0
- package/src/glass/specular-map.ts +95 -0
- package/src/glass/spring.ts +98 -0
- package/src/glass/support.ts +27 -0
- package/src/glass/use-glass-refraction.ts +21 -0
- package/src/i18n/strings.ts +113 -0
- package/src/i18n/ui-strings-provider.tsx +15 -4
- package/src/icons/index.ts +2 -0
- package/src/icons/key.tsx +13 -0
- package/src/icons/webhook.tsx +13 -0
- package/src/liquid/index.ts +24 -0
- package/src/navigation/breadcrumbs/breadcrumbs.tsx +103 -0
- package/src/navigation/breadcrumbs/index.ts +8 -0
- package/src/navigation/index.ts +2 -0
- package/src/navigation/segmented/index.ts +1 -0
- package/src/navigation/segmented/model.ts +11 -0
- package/src/navigation/segmented/segmented.tsx +45 -6
- package/src/navigation/stepper/index.ts +7 -1
- package/src/navigation/stepper/stepper.tsx +41 -5
- package/src/navigation/tabs/index.ts +7 -0
- package/src/navigation/tabs/tabs-nav.tsx +131 -0
- package/src/navigation/wizard/index.ts +7 -0
- package/src/navigation/wizard/model.ts +61 -0
- package/src/navigation/wizard/wizard.tsx +222 -0
- package/src/overlays/alert-dialog/alert-dialog.tsx +486 -0
- package/src/overlays/alert-dialog/index.ts +19 -0
- package/src/overlays/context-menu/context-menu.tsx +11 -1
- package/src/overlays/dialog/dialog.tsx +10 -0
- package/src/overlays/drawer/drawer.tsx +10 -0
- package/src/overlays/dropdown-menu/dropdown-menu.tsx +38 -4
- package/src/overlays/dropdown-menu/index.ts +3 -0
- package/src/overlays/hover-card/hover-card.tsx +12 -1
- package/src/overlays/index.ts +2 -0
- package/src/overlays/popover/popover.tsx +10 -0
- package/src/overlays/testing/index.ts +5 -0
- package/src/overlays/toaster/index.ts +2 -0
- package/src/overlays/toaster/toast-store.ts +6 -2
- package/src/overlays/toaster/toast.ts +6 -0
- package/src/overlays/toaster/toaster.tsx +44 -2
- package/src/overlays/tooltip/index.ts +1 -0
- package/src/overlays/tooltip/model.ts +18 -0
- package/src/overlays/tooltip/tooltip.tsx +166 -0
- package/src/palette/command-palette/command-palette.tsx +15 -1
- package/src/primitives/command/command.tsx +4 -0
- package/src/primitives/menu/menu.tsx +1 -1
- package/src/primitives/popper/popper.tsx +10 -0
- package/src/primitives/use-dismissable-layer.ts +7 -2
- package/src/rich-text/rich-text-editor.tsx +116 -13
- package/src/rich-text/sanitize.ts +94 -23
- package/src/shell/app-shell/app-shell.tsx +60 -4
- package/src/shell/bottom-nav/bottom-nav.tsx +187 -0
- package/src/shell/bottom-nav/index.ts +8 -0
- package/src/shell/bottom-nav/split.ts +20 -0
- package/src/shell/sidebar/sidebar.tsx +51 -5
- package/src/shell/topbar/topbar.tsx +81 -58
- package/src/states/empty-state/empty-state.tsx +11 -1
- package/src/states/error-state/error-state.tsx +23 -8
- package/src/states/index.ts +1 -0
- package/src/states/live-status-bar/index.ts +6 -0
- package/src/states/live-status-bar/live-status-bar.tsx +62 -0
- package/src/states/offline-banner/offline-banner.tsx +13 -5
- package/src/states/skeleton/skeleton.tsx +68 -2
- package/src/utils/class-groups.ts +17 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/material.ts +16 -0
- package/src/utils/tone.ts +29 -0
- package/src/utils/use-copy.ts +38 -0
- package/styles/Theme.kt +64 -3
- package/styles/base.css +51 -0
- package/styles/tailwind.css +836 -0
- package/styles/theme.css +579 -34
- package/styles/tokens.css +788 -15
- package/tokens/default.json +918 -29
- package/scripts/build-theme.d.ts +0 -18
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import type { ClassNames } from "../../utils/class-names.js";
|
|
3
|
+
import type { SidebarItem, SidebarLinkProps } from "../sidebar/index.js";
|
|
4
|
+
export interface BottomNavLinkProps extends SidebarLinkProps {
|
|
5
|
+
/** Closes the "More" drawer after a navigation; pass it through to the rendered element. */
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
}
|
|
8
|
+
/** Renders a bottom-nav link; inject your router's link component here. */
|
|
9
|
+
export type BottomNavRenderLink = (props: BottomNavLinkProps) => ReactNode;
|
|
10
|
+
export type BottomNavPart = "root" | "list" | "item" | "badge" | "moreButton" | "moreContent" | "moreLink" | "moreFooter";
|
|
11
|
+
export interface BottomNavProps {
|
|
12
|
+
/** Same items as `Sidebar` (`groups.flatMap((group) => group.items)`). Order decides what overflows. */
|
|
13
|
+
items: readonly SidebarItem[];
|
|
14
|
+
/** Accessible name of the bar landmark. */
|
|
15
|
+
ariaLabel: string;
|
|
16
|
+
/** Slots in the bar including "More". Defaults to 5; with fewer items than slots there is no "More". */
|
|
17
|
+
maxSlots?: number;
|
|
18
|
+
/** Text of the "More" button and the drawer title. Defaults to the localized "More". */
|
|
19
|
+
moreLabel?: string;
|
|
20
|
+
/** Pinned at the bottom of the "More" drawer, e.g. the account or a sign-out button. */
|
|
21
|
+
moreFooter?: ReactNode;
|
|
22
|
+
/** Link renderer; defaults to a plain anchor. */
|
|
23
|
+
renderLink?: BottomNavRenderLink;
|
|
24
|
+
className?: string;
|
|
25
|
+
/** Per-part classes merged with `cn`; consumer classes win. `className` still targets the root and is merged last. */
|
|
26
|
+
classNames?: ClassNames<BottomNavPart>;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Phone navigation bar for `Sidebar`'s items. The first items fill the bar and the rest move
|
|
30
|
+
* behind a "More" button that opens a drawer. Place it as the last child of the page column
|
|
31
|
+
* inside `AppShell`: it sticks to the bottom of the viewport and hides itself once the shell is
|
|
32
|
+
* 900 px or wider, where the sidebar takes over. Without an `AppShell` it is always visible.
|
|
33
|
+
*/
|
|
34
|
+
export declare function BottomNav({ items, ariaLabel, maxSlots, moreLabel, moreFooter, renderLink, className, classNames, }: BottomNavProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useState } from "react";
|
|
4
|
+
import { useUiStrings } from "../../i18n/index.js";
|
|
5
|
+
import { Menu } from "../../icons/index.js";
|
|
6
|
+
import { Drawer, DrawerContent, DrawerTitle } from "../../overlays/drawer/index.js";
|
|
7
|
+
import { cn } from "../../utils/cn.js";
|
|
8
|
+
import { BOTTOM_NAV_MAX_SLOTS, splitBottomNavItems } from "./split.js";
|
|
9
|
+
const defaultRenderLink = ({ children, ...props }) => /* @__PURE__ */ jsx("a", { ...props, children });
|
|
10
|
+
const slotClasses = "relative flex min-h-14 w-full flex-col items-center justify-center gap-0.5 px-1 text-ink-2 text-meta focus-visible:focus-ring aria-[current=page]:font-bold aria-[current=page]:text-accent-ink data-[active=true]:font-bold data-[active=true]:text-accent-ink [&_svg]:size-5 [&_svg]:shrink-0";
|
|
11
|
+
function BottomNav({
|
|
12
|
+
items,
|
|
13
|
+
ariaLabel,
|
|
14
|
+
maxSlots = BOTTOM_NAV_MAX_SLOTS,
|
|
15
|
+
moreLabel,
|
|
16
|
+
moreFooter,
|
|
17
|
+
renderLink = defaultRenderLink,
|
|
18
|
+
className,
|
|
19
|
+
classNames
|
|
20
|
+
}) {
|
|
21
|
+
const strings = useUiStrings();
|
|
22
|
+
const [moreOpen, setMoreOpen] = useState(false);
|
|
23
|
+
const { visible, overflow } = splitBottomNavItems(items, maxSlots);
|
|
24
|
+
const more = moreLabel ?? strings.more;
|
|
25
|
+
const moreActive = overflow.some((item) => item.active);
|
|
26
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
27
|
+
/* @__PURE__ */ jsx(
|
|
28
|
+
"nav",
|
|
29
|
+
{
|
|
30
|
+
"aria-label": ariaLabel,
|
|
31
|
+
className: cn(
|
|
32
|
+
"sticky bottom-0 z-40 border-t-divider bg-surface pb-[env(safe-area-inset-bottom)] @min-[900px]/app:hidden",
|
|
33
|
+
classNames?.root,
|
|
34
|
+
className
|
|
35
|
+
),
|
|
36
|
+
children: /* @__PURE__ */ jsxs(
|
|
37
|
+
"ul",
|
|
38
|
+
{
|
|
39
|
+
className: cn(
|
|
40
|
+
"m-0 grid list-none auto-cols-[minmax(min-content,1fr)] grid-flow-col p-0",
|
|
41
|
+
classNames?.list
|
|
42
|
+
),
|
|
43
|
+
children: [
|
|
44
|
+
visible.map((item) => /* @__PURE__ */ jsx("li", { className: classNames?.item, children: renderLink({
|
|
45
|
+
href: item.href,
|
|
46
|
+
"aria-current": item.active ? "page" : void 0,
|
|
47
|
+
className: slotClasses,
|
|
48
|
+
children: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
49
|
+
/* @__PURE__ */ jsxs("span", { className: "relative", children: [
|
|
50
|
+
item.icon,
|
|
51
|
+
item.badge !== void 0 ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
52
|
+
/* @__PURE__ */ jsx(
|
|
53
|
+
"span",
|
|
54
|
+
{
|
|
55
|
+
"aria-hidden": "true",
|
|
56
|
+
className: cn(
|
|
57
|
+
"absolute -top-0.5 -right-1 size-2 rounded-pill",
|
|
58
|
+
item.badgeTone === "danger" ? "bg-danger" : "bg-warning",
|
|
59
|
+
classNames?.badge
|
|
60
|
+
)
|
|
61
|
+
}
|
|
62
|
+
),
|
|
63
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: item.badgeLabel ?? item.badge })
|
|
64
|
+
] }) : null
|
|
65
|
+
] }),
|
|
66
|
+
/* @__PURE__ */ jsx("span", { className: "max-w-full truncate", children: item.label })
|
|
67
|
+
] })
|
|
68
|
+
}) }, item.id)),
|
|
69
|
+
overflow.length > 0 ? /* @__PURE__ */ jsx("li", { className: classNames?.item, children: /* @__PURE__ */ jsxs(
|
|
70
|
+
"button",
|
|
71
|
+
{
|
|
72
|
+
type: "button",
|
|
73
|
+
"data-active": moreActive,
|
|
74
|
+
"aria-haspopup": "dialog",
|
|
75
|
+
"aria-expanded": moreOpen,
|
|
76
|
+
onClick: () => setMoreOpen(true),
|
|
77
|
+
className: cn(slotClasses, classNames?.moreButton),
|
|
78
|
+
children: [
|
|
79
|
+
/* @__PURE__ */ jsx(Menu, { "aria-hidden": "true" }),
|
|
80
|
+
/* @__PURE__ */ jsx("span", { children: more })
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
) }) : null
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
)
|
|
87
|
+
}
|
|
88
|
+
),
|
|
89
|
+
overflow.length > 0 ? /* @__PURE__ */ jsx(Drawer, { open: moreOpen, onOpenChange: setMoreOpen, children: /* @__PURE__ */ jsxs(
|
|
90
|
+
DrawerContent,
|
|
91
|
+
{
|
|
92
|
+
"aria-describedby": void 0,
|
|
93
|
+
className: cn("gap-4 p-4", classNames?.moreContent),
|
|
94
|
+
children: [
|
|
95
|
+
/* @__PURE__ */ jsx(DrawerTitle, { className: "font-semibold text-lede", children: more }),
|
|
96
|
+
/* @__PURE__ */ jsx("nav", { "aria-label": more, className: "flex flex-col gap-px", children: overflow.map((item) => /* @__PURE__ */ jsx("div", { children: renderLink({
|
|
97
|
+
href: item.href,
|
|
98
|
+
"aria-current": item.active ? "page" : void 0,
|
|
99
|
+
onClick: () => setMoreOpen(false),
|
|
100
|
+
className: cn(
|
|
101
|
+
"flex min-h-11 items-center gap-2.5 rounded-control px-2.5 py-2 text-control text-ink-2 hover:bg-surface-2 hover:text-ink focus-visible:focus-ring aria-[current=page]:bg-accent-soft aria-[current=page]:font-bold aria-[current=page]:text-accent-ink [&_svg]:size-4.25 [&_svg]:shrink-0",
|
|
102
|
+
classNames?.moreLink
|
|
103
|
+
),
|
|
104
|
+
children: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
105
|
+
item.icon,
|
|
106
|
+
/* @__PURE__ */ jsx("span", { className: "min-w-0 truncate", children: item.label }),
|
|
107
|
+
item.badge !== void 0 ? /* @__PURE__ */ jsxs("span", { className: "ml-auto shrink-0 rounded-chip bg-surface-2 px-1.5 py-0.75 text-count text-ink-2", children: [
|
|
108
|
+
item.badge,
|
|
109
|
+
item.badgeLabel ? /* @__PURE__ */ jsxs("span", { className: "sr-only", children: [
|
|
110
|
+
" ",
|
|
111
|
+
item.badgeLabel
|
|
112
|
+
] }) : null
|
|
113
|
+
] }) : null
|
|
114
|
+
] })
|
|
115
|
+
}) }, item.id)) }),
|
|
116
|
+
moreFooter ? /* @__PURE__ */ jsx("div", { className: cn("mt-auto border-t-divider pt-3", classNames?.moreFooter), children: moreFooter }) : null
|
|
117
|
+
]
|
|
118
|
+
}
|
|
119
|
+
) }) : null
|
|
120
|
+
] });
|
|
121
|
+
}
|
|
122
|
+
export {
|
|
123
|
+
BottomNav
|
|
124
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** Slots of a bottom bar on a phone, the "More" button included. */
|
|
2
|
+
export declare const BOTTOM_NAV_MAX_SLOTS = 5;
|
|
3
|
+
export interface BottomNavSplit<T> {
|
|
4
|
+
visible: T[];
|
|
5
|
+
overflow: T[];
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Items shown in the bar and items moved behind "More". Everything fits when there are at most
|
|
9
|
+
* `maxSlots` items; otherwise one slot is given to "More" and the rest overflow in order.
|
|
10
|
+
*/
|
|
11
|
+
export declare function splitBottomNavItems<T>(items: readonly T[], maxSlots?: number): BottomNavSplit<T>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const BOTTOM_NAV_MAX_SLOTS = 5;
|
|
2
|
+
function splitBottomNavItems(items, maxSlots = BOTTOM_NAV_MAX_SLOTS) {
|
|
3
|
+
const slots = Math.max(2, Math.floor(maxSlots));
|
|
4
|
+
if (items.length <= slots) return { visible: [...items], overflow: [] };
|
|
5
|
+
return { visible: items.slice(0, slots - 1), overflow: items.slice(slots - 1) };
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
BOTTOM_NAV_MAX_SLOTS,
|
|
9
|
+
splitBottomNavItems
|
|
10
|
+
};
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
1
|
+
import { type CSSProperties, type ReactNode } from "react";
|
|
2
2
|
import type { ClassNames } from "../../utils/class-names.js";
|
|
3
|
+
import { type Material } from "../../utils/material.js";
|
|
3
4
|
export interface SidebarLinkProps {
|
|
4
5
|
href: string;
|
|
5
6
|
className: string;
|
|
6
7
|
children: ReactNode;
|
|
7
8
|
"aria-current"?: "page";
|
|
9
|
+
/** Set in rail mode, where the label is visually hidden. */
|
|
10
|
+
title?: string;
|
|
8
11
|
}
|
|
9
12
|
/** Renders a navigation link; inject your router's link component here. */
|
|
10
13
|
export type SidebarRenderLink = (props: SidebarLinkProps) => ReactNode;
|
|
@@ -39,7 +42,18 @@ export interface SidebarProps {
|
|
|
39
42
|
/** Drawer state when the app container is under 900 px. Ignored above it, where the sidebar is always visible. */
|
|
40
43
|
open?: boolean;
|
|
41
44
|
onClose?: () => void;
|
|
45
|
+
/** Icons-only rail with the labels as tooltips. Ignored while the sidebar is a drawer. */
|
|
46
|
+
collapsed?: boolean;
|
|
42
47
|
className?: string;
|
|
48
|
+
/** Inline style of the root (for example `liquidStyle()` options). */
|
|
49
|
+
style?: CSSProperties;
|
|
50
|
+
/**
|
|
51
|
+
* Surface material. Omitted keeps the default for this layer (opaque, glass in the glass
|
|
52
|
+
* preset); `"glass"` and `"glass-clear"` are frosted glass, `"liquid"` and `"liquid-clear"`
|
|
53
|
+
* Liquid Glass, `"solid"` forces opaque. Liquid options go in `style` (`liquidStyle()` from
|
|
54
|
+
* `@jcsoftdev/ui/liquid`); the lens needs `<LiquidGlass />` mounted once.
|
|
55
|
+
*/
|
|
56
|
+
material?: Material;
|
|
43
57
|
/** Per-part classes merged with `cn`; consumer classes win. `className` still targets the root and is merged last. */
|
|
44
58
|
classNames?: ClassNames<SidebarPart>;
|
|
45
59
|
}
|
|
@@ -49,4 +63,4 @@ export interface SidebarProps {
|
|
|
49
63
|
* Render it inside `AppShell`: the container decides, never the viewport. Without an `AppShell`
|
|
50
64
|
* it measures its parent element instead.
|
|
51
65
|
*/
|
|
52
|
-
export declare function Sidebar({ groups, ariaLabel, header, footer, renderLink, open, onClose, className, classNames, }: SidebarProps): import("react").JSX.Element;
|
|
66
|
+
export declare function Sidebar({ groups, ariaLabel, header, footer, renderLink, open, onClose, collapsed, material, className, style, classNames, }: SidebarProps): import("react").JSX.Element;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useEffect, useRef } from "react";
|
|
4
4
|
import { cn } from "../../utils/cn.js";
|
|
5
|
+
import { materialClass } from "../../utils/material.js";
|
|
5
6
|
import { useAppShell, useCompactContainer } from "../app-shell/app-shell.js";
|
|
6
7
|
const defaultRenderLink = ({ children, ...props }) => /* @__PURE__ */ jsx("a", { ...props, children });
|
|
7
8
|
function Sidebar({
|
|
@@ -12,7 +13,10 @@ function Sidebar({
|
|
|
12
13
|
renderLink = defaultRenderLink,
|
|
13
14
|
open = false,
|
|
14
15
|
onClose,
|
|
16
|
+
collapsed = false,
|
|
17
|
+
material,
|
|
15
18
|
className,
|
|
19
|
+
style,
|
|
16
20
|
classNames
|
|
17
21
|
}) {
|
|
18
22
|
const shell = useAppShell();
|
|
@@ -21,6 +25,7 @@ function Sidebar({
|
|
|
21
25
|
const isMobile = shell ? shell.compact : parentCompact;
|
|
22
26
|
const closedOnMobile = isMobile && !open;
|
|
23
27
|
const openOnMobile = isMobile && open;
|
|
28
|
+
const rail = collapsed && !isMobile;
|
|
24
29
|
useEffect(() => {
|
|
25
30
|
if (!openOnMobile) return;
|
|
26
31
|
asideRef.current?.querySelector("a[href]")?.focus();
|
|
@@ -42,7 +47,8 @@ function Sidebar({
|
|
|
42
47
|
"aria-label": ariaLabel,
|
|
43
48
|
inert: closedOnMobile || void 0,
|
|
44
49
|
className: cn(
|
|
45
|
-
"fixed inset-y-0 left-0 z-45 flex h-screen
|
|
50
|
+
"fixed inset-y-0 left-0 z-45 flex h-screen flex-col gap-4.5 overflow-y-auto border-r-divider surface-side pt-3.5 pb-3 transition-transform duration-200",
|
|
51
|
+
rail ? "w-[4.5rem] px-2" : "w-side-width px-3",
|
|
46
52
|
// Inside AppShell the container query decides before any script runs (no flash on a
|
|
47
53
|
// narrow first paint); the measured state only drives inert, the scrim and focus.
|
|
48
54
|
shell ? cn(
|
|
@@ -53,9 +59,11 @@ function Sidebar({
|
|
|
53
59
|
closedOnMobile ? "-translate-x-full" : "translate-x-0"
|
|
54
60
|
),
|
|
55
61
|
openOnMobile && "shadow-overlay",
|
|
62
|
+
materialClass(material, "surface-solid [--surface-solid:var(--surface)]"),
|
|
56
63
|
classNames?.root,
|
|
57
64
|
className
|
|
58
65
|
),
|
|
66
|
+
style,
|
|
59
67
|
children: [
|
|
60
68
|
header,
|
|
61
69
|
groups.map((group) => /* @__PURE__ */ jsxs(
|
|
@@ -64,21 +72,55 @@ function Sidebar({
|
|
|
64
72
|
"aria-label": group.label,
|
|
65
73
|
className: cn("flex flex-col gap-px", classNames?.group),
|
|
66
74
|
children: [
|
|
67
|
-
/* @__PURE__ */ jsx(
|
|
75
|
+
/* @__PURE__ */ jsx(
|
|
76
|
+
"div",
|
|
77
|
+
{
|
|
78
|
+
className: cn(
|
|
79
|
+
"px-2.5 pb-1.5 text-overline text-ink-3",
|
|
80
|
+
rail && "sr-only",
|
|
81
|
+
classNames?.groupLabel
|
|
82
|
+
),
|
|
83
|
+
children: group.label
|
|
84
|
+
}
|
|
85
|
+
),
|
|
68
86
|
group.items.map((item) => {
|
|
69
87
|
const badgeTone = item.badgeTone === "danger" ? "bg-danger-soft text-danger" : "bg-surface-2 text-ink-2";
|
|
70
88
|
return /* @__PURE__ */ jsx("div", { className: classNames?.item, children: renderLink({
|
|
71
89
|
href: item.href,
|
|
72
90
|
"aria-current": item.active ? "page" : void 0,
|
|
91
|
+
title: rail ? item.label : void 0,
|
|
73
92
|
className: cn(
|
|
74
93
|
"flex items-center gap-2.5 rounded-control px-2.5 py-2 text-control text-ink-2 hover:bg-surface-2 hover:text-ink [&_svg]:size-4.25 [&_svg]:shrink-0",
|
|
94
|
+
rail && "relative justify-center in-data-[density=touch]:min-h-11",
|
|
75
95
|
item.active && "bg-accent-soft font-bold text-accent-ink",
|
|
76
96
|
classNames?.link
|
|
77
97
|
),
|
|
78
98
|
children: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
79
99
|
item.icon,
|
|
80
|
-
/* @__PURE__ */ jsx(
|
|
81
|
-
|
|
100
|
+
/* @__PURE__ */ jsx(
|
|
101
|
+
"span",
|
|
102
|
+
{
|
|
103
|
+
className: cn("min-w-0 truncate", rail && "sr-only", classNames?.label),
|
|
104
|
+
children: item.label
|
|
105
|
+
}
|
|
106
|
+
),
|
|
107
|
+
item.badge !== void 0 && rail ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
108
|
+
/* @__PURE__ */ jsx(
|
|
109
|
+
"span",
|
|
110
|
+
{
|
|
111
|
+
"aria-hidden": "true",
|
|
112
|
+
className: cn(
|
|
113
|
+
"absolute top-1 right-1 size-2 rounded-full ring-2 ring-surface",
|
|
114
|
+
item.badgeTone === "danger" ? "bg-danger" : "bg-accent",
|
|
115
|
+
classNames?.badge
|
|
116
|
+
)
|
|
117
|
+
}
|
|
118
|
+
),
|
|
119
|
+
/* @__PURE__ */ jsxs("span", { className: "sr-only", children: [
|
|
120
|
+
item.badge,
|
|
121
|
+
item.badgeLabel ? ` ${item.badgeLabel}` : null
|
|
122
|
+
] })
|
|
123
|
+
] }) : item.badge !== void 0 ? /* @__PURE__ */ jsxs(
|
|
82
124
|
"span",
|
|
83
125
|
{
|
|
84
126
|
className: cn(
|
|
@@ -1,26 +1,37 @@
|
|
|
1
|
-
import { type ReactNode, type Ref } from "react";
|
|
1
|
+
import { type CSSProperties, type ReactNode, type Ref } from "react";
|
|
2
2
|
import type { ClassNames } from "../../utils/class-names.js";
|
|
3
|
+
import { type Material } from "../../utils/material.js";
|
|
3
4
|
export type TopbarPart = "root" | "inner" | "menuButton" | "breadcrumbs" | "crumb" | "separator" | "current" | "search" | "searchText" | "shortcut";
|
|
4
5
|
export interface TopbarProps {
|
|
5
|
-
/** Breadcrumb trail in order; the last entry is the current view. */
|
|
6
|
-
breadcrumbs
|
|
6
|
+
/** Breadcrumb trail in order; the last entry is the current view. Nothing renders when absent or empty. */
|
|
7
|
+
breadcrumbs?: string[];
|
|
7
8
|
/** Accessible name of the breadcrumb landmark. */
|
|
8
|
-
breadcrumbsLabel
|
|
9
|
+
breadcrumbsLabel?: string;
|
|
9
10
|
/** Menu button (shown when the `AppShell` container is under 900 px, matching the Sidebar drawer) that opens the sidebar drawer. Needs an `@container/app` ancestor, which `AppShell` provides. Omitted when not set. */
|
|
10
11
|
onOpenMenu?: () => void;
|
|
11
12
|
menuLabel?: string;
|
|
12
13
|
/** Ref to the menu button so the opener can restore focus when the drawer closes. */
|
|
13
14
|
menuButtonRef?: Ref<HTMLButtonElement>;
|
|
14
|
-
/** Called by the search trigger and by Cmd/Ctrl+K. */
|
|
15
|
-
onSearch
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
/** Called by the search trigger and by Cmd/Ctrl+K. The trigger and the shortcut are absent without it. */
|
|
16
|
+
onSearch?: () => void;
|
|
17
|
+
/** Accessible name of the search trigger; defaults to the placeholder. */
|
|
18
|
+
searchLabel?: string;
|
|
19
|
+
searchPlaceholder?: string;
|
|
18
20
|
/** Slot between the search trigger and the end block (status, notifications, primary action). */
|
|
19
21
|
actions?: ReactNode;
|
|
20
22
|
/** Slot at the far end (e.g. the account menu). */
|
|
21
23
|
end?: ReactNode;
|
|
22
24
|
className?: string;
|
|
25
|
+
/** Inline style of the root (for example `liquidStyle()` options). */
|
|
26
|
+
style?: CSSProperties;
|
|
27
|
+
/**
|
|
28
|
+
* Surface material. Omitted keeps the default for this layer (opaque, glass in the glass
|
|
29
|
+
* preset); `"glass"` and `"glass-clear"` are frosted glass, `"liquid"` and `"liquid-clear"`
|
|
30
|
+
* Liquid Glass, `"solid"` forces opaque. Liquid options go in `style` (`liquidStyle()` from
|
|
31
|
+
* `@jcsoftdev/ui/liquid`); the lens needs `<LiquidGlass />` mounted once.
|
|
32
|
+
*/
|
|
33
|
+
material?: Material;
|
|
23
34
|
/** Per-part classes merged with `cn`; consumer classes win. `className` still targets the root and is merged last. */
|
|
24
35
|
classNames?: ClassNames<TopbarPart>;
|
|
25
36
|
}
|
|
26
|
-
export declare function Topbar({ breadcrumbs, breadcrumbsLabel, onOpenMenu, menuLabel, menuButtonRef, onSearch, searchLabel, searchPlaceholder, actions, end, className, classNames, }: TopbarProps): import("react").JSX.Element;
|
|
37
|
+
export declare function Topbar({ breadcrumbs, breadcrumbsLabel, onOpenMenu, menuLabel, menuButtonRef, onSearch, searchLabel, searchPlaceholder, actions, end, material, style, className, classNames, }: TopbarProps): import("react").JSX.Element;
|
|
@@ -3,6 +3,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { useEffect, useState } from "react";
|
|
4
4
|
import { Menu, Search } from "../../icons/index.js";
|
|
5
5
|
import { cn } from "../../utils/cn.js";
|
|
6
|
+
import { materialClass } from "../../utils/material.js";
|
|
6
7
|
function isApplePlatform() {
|
|
7
8
|
if (typeof navigator === "undefined") return false;
|
|
8
9
|
return /Mac|iPhone|iPod|iPad/.test(navigator.platform || navigator.userAgent || "");
|
|
@@ -18,6 +19,8 @@ function Topbar({
|
|
|
18
19
|
searchPlaceholder,
|
|
19
20
|
actions,
|
|
20
21
|
end,
|
|
22
|
+
material,
|
|
23
|
+
style,
|
|
21
24
|
className,
|
|
22
25
|
classNames
|
|
23
26
|
}) {
|
|
@@ -26,24 +29,28 @@ function Topbar({
|
|
|
26
29
|
setShortcut(isApplePlatform() ? "\u2318K" : "Ctrl+K");
|
|
27
30
|
}, []);
|
|
28
31
|
useEffect(() => {
|
|
32
|
+
if (!onSearch) return;
|
|
29
33
|
function onKeyDown(event) {
|
|
30
34
|
if (!(event.metaKey || event.ctrlKey) || event.key.toLowerCase() !== "k") return;
|
|
31
35
|
event.preventDefault();
|
|
32
|
-
onSearch();
|
|
36
|
+
onSearch?.();
|
|
33
37
|
}
|
|
34
38
|
window.addEventListener("keydown", onKeyDown);
|
|
35
39
|
return () => window.removeEventListener("keydown", onKeyDown);
|
|
36
40
|
}, [onSearch]);
|
|
37
|
-
const
|
|
38
|
-
const
|
|
41
|
+
const trail = breadcrumbs ?? [];
|
|
42
|
+
const current = trail.at(-1);
|
|
43
|
+
const previous = trail.slice(0, -1);
|
|
39
44
|
return /* @__PURE__ */ jsx(
|
|
40
45
|
"header",
|
|
41
46
|
{
|
|
42
47
|
className: cn(
|
|
43
|
-
"@container/topbar sticky top-0 z-30 h-top-height border-b-divider
|
|
48
|
+
"@container/topbar sticky top-0 z-30 h-top-height border-b-divider surface-nav",
|
|
49
|
+
materialClass(material, "surface-solid [--surface-solid:var(--bg)]"),
|
|
44
50
|
classNames?.root,
|
|
45
51
|
className
|
|
46
52
|
),
|
|
53
|
+
style,
|
|
47
54
|
children: /* @__PURE__ */ jsxs(
|
|
48
55
|
"div",
|
|
49
56
|
{
|
|
@@ -66,7 +73,7 @@ function Topbar({
|
|
|
66
73
|
children: /* @__PURE__ */ jsx(Menu, { className: "size-5", "aria-hidden": "true" })
|
|
67
74
|
}
|
|
68
75
|
) : null,
|
|
69
|
-
/* @__PURE__ */ jsxs(
|
|
76
|
+
trail.length > 0 ? /* @__PURE__ */ jsxs(
|
|
70
77
|
"nav",
|
|
71
78
|
{
|
|
72
79
|
"aria-label": breadcrumbsLabel,
|
|
@@ -99,12 +106,12 @@ function Topbar({
|
|
|
99
106
|
)
|
|
100
107
|
]
|
|
101
108
|
}
|
|
102
|
-
),
|
|
103
|
-
/* @__PURE__ */ jsxs(
|
|
109
|
+
) : null,
|
|
110
|
+
onSearch ? /* @__PURE__ */ jsxs(
|
|
104
111
|
"button",
|
|
105
112
|
{
|
|
106
113
|
type: "button",
|
|
107
|
-
"aria-label": searchLabel,
|
|
114
|
+
"aria-label": searchLabel ?? searchPlaceholder,
|
|
108
115
|
onClick: onSearch,
|
|
109
116
|
className: cn(
|
|
110
117
|
"ml-auto flex h-8.5 w-[min(320px,38cqw)] shrink-0 items-center gap-2 rounded-input border-control bg-surface-control pr-2 pl-2.5 text-ink-3 text-meta @max-[700px]/topbar:w-8.5 @max-[700px]/topbar:justify-center @max-[700px]/topbar:px-0",
|
|
@@ -125,7 +132,7 @@ function Topbar({
|
|
|
125
132
|
)
|
|
126
133
|
]
|
|
127
134
|
}
|
|
128
|
-
),
|
|
135
|
+
) : /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: "ml-auto" }),
|
|
129
136
|
actions,
|
|
130
137
|
end
|
|
131
138
|
]
|
|
@@ -6,6 +6,8 @@ export interface EmptyStateProps {
|
|
|
6
6
|
description?: ReactNode;
|
|
7
7
|
/** Primary call to action. */
|
|
8
8
|
action?: ReactNode;
|
|
9
|
+
/** `outlined` draws a dashed border around the state. */
|
|
10
|
+
variant?: "plain" | "outlined";
|
|
9
11
|
className?: string;
|
|
10
12
|
}
|
|
11
|
-
export declare function EmptyState({ icon, title, description, action, className }: EmptyStateProps): import("react").JSX.Element;
|
|
13
|
+
export declare function EmptyState({ icon, title, description, action, variant, className, }: EmptyStateProps): import("react").JSX.Element;
|
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { cn } from "../../utils/cn.js";
|
|
3
|
-
function EmptyState({
|
|
3
|
+
function EmptyState({
|
|
4
|
+
icon,
|
|
5
|
+
title,
|
|
6
|
+
description,
|
|
7
|
+
action,
|
|
8
|
+
variant = "plain",
|
|
9
|
+
className
|
|
10
|
+
}) {
|
|
4
11
|
return /* @__PURE__ */ jsxs(
|
|
5
12
|
"div",
|
|
6
13
|
{
|
|
7
14
|
className: cn(
|
|
8
15
|
"@container/empty flex min-w-0 flex-col items-center gap-2 px-4 py-8 text-center @min-[360px]/empty:px-6 @min-[360px]/empty:py-12",
|
|
16
|
+
variant === "outlined" && "rounded-card border border-line-control border-dashed",
|
|
9
17
|
className
|
|
10
18
|
),
|
|
11
19
|
children: [
|
|
@@ -12,6 +12,13 @@ export interface ErrorStateProps {
|
|
|
12
12
|
correlationLabel?: string;
|
|
13
13
|
onRetry?: () => void;
|
|
14
14
|
retryLabel?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Extra actions (buttons or links) in the same row as the retry button, under the message.
|
|
17
|
+
* Use it for "Go back" or "Contact support"; `onRetry` stays the shortcut for a plain retry.
|
|
18
|
+
*/
|
|
19
|
+
actions?: ReactNode;
|
|
20
|
+
/** `outlined` draws a danger border around the state. */
|
|
21
|
+
variant?: "plain" | "outlined";
|
|
15
22
|
className?: string;
|
|
16
23
|
}
|
|
17
|
-
export declare function ErrorState({ title, description, message, correlationId, correlationLabel, onRetry, retryLabel, className, }: ErrorStateProps): import("react").JSX.Element;
|
|
24
|
+
export declare function ErrorState({ title, description, message, correlationId, correlationLabel, onRetry, retryLabel, actions, variant, className, }: ErrorStateProps): import("react").JSX.Element;
|
|
@@ -11,6 +11,8 @@ function ErrorState({
|
|
|
11
11
|
correlationLabel,
|
|
12
12
|
onRetry,
|
|
13
13
|
retryLabel,
|
|
14
|
+
actions,
|
|
15
|
+
variant = "plain",
|
|
14
16
|
className
|
|
15
17
|
}) {
|
|
16
18
|
const strings = useUiStrings();
|
|
@@ -22,6 +24,7 @@ function ErrorState({
|
|
|
22
24
|
role: "alert",
|
|
23
25
|
className: cn(
|
|
24
26
|
"@container/state flex min-w-0 flex-col items-center gap-2 px-4 py-8 text-center @min-[360px]/state:px-6 @min-[360px]/state:py-10",
|
|
27
|
+
variant === "outlined" && "rounded-card border border-danger",
|
|
25
28
|
className
|
|
26
29
|
),
|
|
27
30
|
children: [
|
|
@@ -32,15 +35,18 @@ function ErrorState({
|
|
|
32
35
|
" ",
|
|
33
36
|
correlationId
|
|
34
37
|
] }) : null,
|
|
35
|
-
onRetry ? /* @__PURE__ */
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
38
|
+
onRetry || displayable(actions) !== void 0 ? /* @__PURE__ */ jsxs("div", { className: "mt-2 flex flex-wrap items-center justify-center gap-2", children: [
|
|
39
|
+
onRetry ? /* @__PURE__ */ jsx(
|
|
40
|
+
"button",
|
|
41
|
+
{
|
|
42
|
+
type: "button",
|
|
43
|
+
onClick: onRetry,
|
|
44
|
+
className: "inline-flex h-control-sm cursor-pointer items-center rounded-input border-control bg-surface-control px-3 font-semibold text-fs-130 text-ink hover:bg-surface-2",
|
|
45
|
+
children: retryLabel ?? strings.retry
|
|
46
|
+
}
|
|
47
|
+
) : null,
|
|
48
|
+
displayable(actions)
|
|
49
|
+
] }) : null
|
|
44
50
|
]
|
|
45
51
|
}
|
|
46
52
|
);
|
package/dist/states/index.d.ts
CHANGED
package/dist/states/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type LiveStatus, LiveStatusBar, type LiveStatusBarPart, type LiveStatusBarProps, } from "./live-status-bar.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef } from "react";
|
|
2
|
+
import type { ClassNames } from "../../utils/class-names.js";
|
|
3
|
+
export type LiveStatus = "live" | "reconnecting" | "offline";
|
|
4
|
+
export type LiveStatusBarPart = "root" | "indicator" | "label";
|
|
5
|
+
export interface LiveStatusBarProps extends Omit<ComponentPropsWithoutRef<"div">, "role"> {
|
|
6
|
+
status: LiveStatus;
|
|
7
|
+
/** Replaces the localized text of a status, e.g. `{ live: "Connected" }`. */
|
|
8
|
+
labels?: Partial<Record<LiveStatus, string>>;
|
|
9
|
+
/** Per-part classes merged with `cn`; consumer classes win. `className` still targets the root and is merged last. */
|
|
10
|
+
classNames?: ClassNames<LiveStatusBarPart>;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Connection status for a realtime view: a colored dot plus its text, and `children` for what
|
|
14
|
+
* the view shows next to it (counts, a last-update time). A polite `role="status"`, so a change
|
|
15
|
+
* of `status` is announced without interrupting. Meaning never relies on color alone.
|
|
16
|
+
*/
|
|
17
|
+
export declare function LiveStatusBar({ status, labels, className, classNames, children, ...props }: LiveStatusBarProps): import("react").JSX.Element;
|