@jcsoftdev/ui 0.4.0 → 0.6.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 +434 -0
- package/README.md +26 -4
- package/bin/ui-theme.mjs +40 -6
- package/dist/ai/code-block/code-block.js +1 -1
- package/dist/atoms/big-date/big-date.js +2 -2
- package/dist/atoms/button/button.d.ts +14 -2
- package/dist/atoms/button/button.js +12 -5
- package/dist/atoms/chip/chip.d.ts +5 -0
- package/dist/atoms/chip/chip.js +3 -3
- package/dist/atoms/divider/divider.d.ts +15 -0
- package/dist/atoms/divider/divider.js +27 -0
- package/dist/atoms/divider/index.d.ts +1 -0
- package/dist/atoms/divider/index.js +1 -0
- package/dist/atoms/icon-button/icon-button.d.ts +1 -1
- package/dist/atoms/icon-button/icon-button.js +1 -1
- package/dist/atoms/index.d.ts +1 -0
- package/dist/atoms/index.js +1 -0
- package/dist/atoms/internal/hit-area.d.ts +5 -4
- package/dist/atoms/internal/hit-area.js +1 -1
- package/dist/atoms/progress/index.d.ts +1 -1
- package/dist/atoms/progress/index.js +4 -1
- package/dist/atoms/progress/progress.d.ts +6 -1
- package/dist/atoms/progress/progress.js +19 -1
- package/dist/atoms/radio-group/radio-group.js +1 -1
- package/dist/atoms/status-pill/status-pill.d.ts +16 -5
- package/dist/atoms/status-pill/status-pill.js +43 -18
- package/dist/auth/auth-illustration/auth-illustration.d.ts +35 -0
- package/dist/auth/auth-illustration/auth-illustration.js +72 -0
- package/dist/auth/auth-illustration/index.d.ts +3 -0
- package/dist/auth/auth-illustration/index.js +11 -0
- package/dist/auth/auth-illustration/look.d.ts +30 -0
- package/dist/auth/auth-illustration/look.js +0 -0
- package/dist/auth/auth-illustration/model.d.ts +133 -0
- package/dist/auth/auth-illustration/model.js +202 -0
- package/dist/auth/auth-illustration/use-art-pointer.d.ts +9 -0
- package/dist/auth/auth-illustration/use-art-pointer.js +69 -0
- package/dist/auth/auth-layout/auth-layout.d.ts +80 -0
- package/dist/auth/auth-layout/auth-layout.js +190 -0
- package/dist/auth/auth-layout/index.d.ts +1 -0
- package/dist/auth/auth-layout/index.js +1 -0
- package/dist/auth/character/character.d.ts +12 -0
- package/dist/auth/character/character.js +333 -0
- package/dist/auth/character/index.d.ts +1 -0
- package/dist/auth/character/index.js +1 -0
- package/dist/auth/index.d.ts +4 -0
- package/dist/auth/index.js +4 -0
- package/dist/auth/internal/auth-context.d.ts +17 -0
- package/dist/auth/internal/auth-context.js +10 -0
- package/dist/auth/internal/auth-styles.d.ts +1 -0
- package/dist/auth/internal/auth-styles.js +29 -0
- package/dist/auth/internal/portal-glyphs.d.ts +6 -0
- package/dist/auth/internal/portal-glyphs.js +39 -0
- package/dist/auth/login-form/context.d.ts +51 -0
- package/dist/auth/login-form/context.js +12 -0
- package/dist/auth/login-form/index.d.ts +2 -0
- package/dist/auth/login-form/index.js +23 -0
- package/dist/auth/login-form/login-form.d.ts +66 -0
- package/dist/auth/login-form/login-form.js +233 -0
- package/dist/auth/login-form/parts.d.ts +71 -0
- package/dist/auth/login-form/parts.js +371 -0
- package/dist/auth/looks/auth-illustration-any.d.ts +16 -0
- package/dist/auth/looks/auth-illustration-any.js +24 -0
- package/dist/auth/looks/index.d.ts +1 -0
- package/dist/auth/looks/index.js +1 -0
- package/dist/auth/mosaic/index.d.ts +1 -0
- package/dist/auth/mosaic/index.js +1 -0
- package/dist/auth/mosaic/mosaic.d.ts +11 -0
- package/dist/auth/mosaic/mosaic.js +195 -0
- package/dist/auth/slabs/index.d.ts +1 -0
- package/dist/auth/slabs/index.js +1 -0
- package/dist/auth/slabs/slabs.d.ts +13 -0
- package/dist/auth/slabs/slabs.js +136 -0
- package/dist/auth/stack/index.d.ts +1 -0
- package/dist/auth/stack/index.js +1 -0
- package/dist/auth/stack/stack.d.ts +6 -0
- package/dist/auth/stack/stack.js +222 -0
- package/dist/auth/statement/index.d.ts +1 -0
- package/dist/auth/statement/index.js +1 -0
- package/dist/auth/statement/statement.d.ts +13 -0
- package/dist/auth/statement/statement.js +99 -0
- package/dist/brand/logo-forge.js +1 -1
- package/dist/charts/candlestick-chart/candlestick-chart.js +2 -2
- package/dist/charts/chart-grid/chart-grid.js +2 -2
- package/dist/charts/chord-chart/chord-chart.js +1 -1
- package/dist/charts/core/axes.js +2 -2
- package/dist/charts/core/cartesian/annotations.js +2 -2
- package/dist/charts/core/cartesian/marks.js +1 -1
- package/dist/charts/core/distribution/marks.js +1 -1
- package/dist/charts/core/distribution/xy-points.js +1 -1
- package/dist/charts/core/export-menu.js +1 -1
- package/dist/charts/funnel-chart/funnel-chart.js +1 -1
- package/dist/charts/gantt-chart/gantt-chart.js +4 -4
- package/dist/charts/gantt-chart/gantt-marks.js +3 -3
- package/dist/charts/index.d.ts +2 -0
- package/dist/charts/index.js +2 -0
- package/dist/charts/maps/geo/map-data-table.js +1 -1
- package/dist/charts/polar-area-chart/polar-area-chart.js +1 -1
- package/dist/charts/radar-chart/radar-chart.js +1 -1
- package/dist/charts/stock-chart/stock-chart.js +1 -1
- package/dist/charts/stock-chart/stock-drawing-layer.js +3 -3
- package/dist/charts/stock-chart/stock-plot.js +2 -2
- package/dist/containers/chat-thread/chat-thread.d.ts +98 -0
- package/dist/containers/chat-thread/chat-thread.js +219 -0
- package/dist/containers/chat-thread/format.d.ts +20 -0
- package/dist/containers/chat-thread/format.js +50 -0
- package/dist/containers/chat-thread/index.d.ts +1 -0
- package/dist/containers/chat-thread/index.js +8 -0
- package/dist/containers/cols/cols.d.ts +1 -1
- package/dist/containers/cols/cols.js +7 -0
- package/dist/containers/comment/comment.js +1 -1
- package/dist/containers/context-rail/context-rail.d.ts +62 -0
- package/dist/containers/context-rail/context-rail.js +175 -0
- package/dist/containers/context-rail/index.d.ts +1 -0
- package/dist/containers/context-rail/index.js +6 -0
- package/dist/containers/dashboard/dashboard.d.ts +40 -0
- package/dist/containers/dashboard/dashboard.js +84 -0
- package/dist/containers/dashboard/index.d.ts +1 -0
- package/dist/containers/dashboard/index.js +14 -0
- package/dist/containers/data-grid/data-grid.demos.js +4 -4
- package/dist/containers/data-grid/data-grid.js +6 -6
- package/dist/containers/data-grid/filter-builder-editor.js +2 -2
- package/dist/containers/data-grid/grid-toolbar.js +1 -1
- package/dist/containers/data-grid/spreadsheet.demos.d.ts +1 -1
- package/dist/containers/data-grid/spreadsheet.demos.js +1 -1
- package/dist/containers/detail-header/detail-header.d.ts +24 -0
- package/dist/containers/detail-header/detail-header.js +32 -0
- package/dist/containers/detail-header/index.d.ts +1 -0
- package/dist/containers/detail-header/index.js +6 -0
- package/dist/containers/facts/facts.js +1 -1
- package/dist/containers/filter-bar/filter-bar.d.ts +58 -0
- package/dist/containers/filter-bar/filter-bar.js +123 -0
- package/dist/containers/filter-bar/index.d.ts +1 -0
- package/dist/containers/filter-bar/index.js +6 -0
- package/dist/containers/hbars/hbars.js +2 -2
- package/dist/containers/index.d.ts +9 -0
- package/dist/containers/index.js +9 -0
- package/dist/containers/kanban/kanban.d.ts +23 -2
- package/dist/containers/kanban/kanban.js +101 -21
- package/dist/containers/kanban/model.d.ts +12 -0
- package/dist/containers/kanban/model.js +8 -0
- package/dist/containers/kpi/kpi.js +1 -1
- package/dist/containers/kpi-group/kpi-group.d.ts +6 -1
- package/dist/containers/kpi-group/kpi-group.js +6 -2
- package/dist/containers/list-detail/index.d.ts +1 -1
- package/dist/containers/list-detail/index.js +4 -0
- package/dist/containers/list-detail/list-detail.d.ts +51 -3
- package/dist/containers/list-detail/list-detail.js +109 -15
- package/dist/containers/page/page.d.ts +17 -4
- package/dist/containers/page/page.js +33 -4
- package/dist/containers/page-header/back.d.ts +10 -0
- package/dist/containers/page-header/back.js +28 -0
- package/dist/containers/page-header/index.d.ts +1 -0
- package/dist/containers/page-header/index.js +1 -0
- package/dist/containers/page-header/page-header.d.ts +19 -2
- package/dist/containers/page-header/page-header.js +26 -2
- package/dist/containers/pagination/cursor-pagination.d.ts +28 -0
- package/dist/containers/pagination/cursor-pagination.js +48 -0
- package/dist/containers/pagination/index.d.ts +3 -0
- package/dist/containers/pagination/index.js +10 -0
- package/dist/containers/pagination/pagination.d.ts +52 -0
- package/dist/containers/pagination/pagination.js +216 -0
- package/dist/containers/pagination/range.d.ts +29 -0
- package/dist/containers/pagination/range.js +42 -0
- package/dist/containers/pagination/use-pagination.d.ts +18 -0
- package/dist/containers/pagination/use-pagination.js +22 -0
- package/dist/containers/responsive-list/responsive-list.d.ts +28 -2
- package/dist/containers/responsive-list/responsive-list.js +134 -25
- package/dist/containers/row-actions/index.d.ts +1 -0
- package/dist/containers/row-actions/index.js +4 -0
- package/dist/containers/row-actions/row-actions.d.ts +26 -0
- package/dist/containers/row-actions/row-actions.js +78 -0
- package/dist/containers/selectable-card/index.d.ts +1 -0
- package/dist/containers/selectable-card/index.js +6 -0
- package/dist/containers/selectable-card/selectable-card.d.ts +26 -0
- package/dist/containers/selectable-card/selectable-card.js +57 -0
- package/dist/containers/settings-layout/settings-layout.d.ts +24 -7
- package/dist/containers/settings-layout/settings-layout.js +63 -8
- package/dist/containers/shortcuts/shortcuts.js +1 -1
- package/dist/containers/table/cell-padding.d.ts +2 -0
- package/dist/containers/table/cell-padding.js +4 -0
- package/dist/containers/table/index.d.ts +1 -0
- package/dist/containers/table/index.js +8 -0
- package/dist/containers/table/sort.d.ts +14 -0
- package/dist/containers/table/sort.js +11 -0
- package/dist/containers/table/table-parts.d.ts +24 -0
- package/dist/containers/table/table-parts.js +52 -0
- package/dist/containers/table/table.d.ts +37 -3
- package/dist/containers/table/table.js +120 -19
- package/dist/containers/table-columns-menu/index.d.ts +1 -0
- package/dist/containers/table-columns-menu/index.js +6 -0
- package/dist/containers/table-columns-menu/table-columns-menu.d.ts +14 -0
- package/dist/containers/table-columns-menu/table-columns-menu.js +46 -0
- package/dist/dashboards/layout.d.ts +1 -27
- package/dist/dashboards/layout.js +8 -40
- package/dist/forms/chip-group/chip-group.d.ts +5 -0
- package/dist/forms/chip-group/chip-group.js +3 -1
- package/dist/forms/combobox/combobox.js +1 -1
- package/dist/forms/copy-field/copy-field.js +1 -1
- package/dist/forms/date-picker/date-picker.d.ts +3 -1
- package/dist/forms/date-picker/date-picker.js +4 -2
- package/dist/forms/date-picker/date-time-picker.d.ts +8 -2
- package/dist/forms/date-picker/date-time-picker.js +13 -2
- package/dist/forms/field/field.d.ts +9 -2
- package/dist/forms/field/field.js +18 -4
- package/dist/forms/fieldset/fieldset.d.ts +11 -0
- package/dist/forms/fieldset/fieldset.js +12 -0
- package/dist/forms/fieldset/index.d.ts +1 -0
- package/dist/forms/fieldset/index.js +4 -0
- package/dist/forms/form-footer/form-footer.d.ts +26 -0
- package/dist/forms/form-footer/form-footer.js +44 -0
- package/dist/forms/form-footer/index.d.ts +1 -0
- package/dist/forms/form-footer/index.js +4 -0
- package/dist/forms/form-grid/form-grid.d.ts +21 -4
- package/dist/forms/form-grid/form-grid.js +20 -3
- package/dist/forms/form-grid/index.d.ts +1 -1
- package/dist/forms/form-grid/index.js +6 -2
- package/dist/forms/form-section/form-section.d.ts +12 -0
- package/dist/forms/form-section/form-section.js +30 -0
- package/dist/forms/form-section/index.d.ts +1 -0
- package/dist/forms/form-section/index.js +4 -0
- package/dist/forms/index.d.ts +4 -0
- package/dist/forms/index.js +4 -0
- package/dist/forms/input/input.d.ts +6 -2
- package/dist/forms/input/input.js +6 -2
- package/dist/forms/internal/listbox-items.d.ts +1 -1
- package/dist/forms/internal/listbox-items.js +3 -2
- package/dist/forms/native-select/native-select.js +1 -1
- package/dist/forms/password-input/index.d.ts +1 -0
- package/dist/forms/password-input/index.js +1 -0
- package/dist/forms/password-input/password-input.d.ts +16 -0
- package/dist/forms/password-input/password-input.js +45 -0
- package/dist/forms/select/index.d.ts +1 -1
- package/dist/forms/select/select.d.ts +5 -2
- package/dist/forms/select/select.js +7 -2
- package/dist/forms/select-menu/select-menu.js +1 -1
- package/dist/forms/time-input/time-input.d.ts +4 -2
- package/dist/forms/time-input/time-input.js +3 -1
- package/dist/i18n/strings.d.ts +150 -0
- package/dist/i18n/strings.js +80 -2
- package/dist/icons/eye.d.ts +2 -0
- package/dist/icons/eye.js +11 -0
- package/dist/icons/graduation-cap.d.ts +2 -0
- package/dist/icons/graduation-cap.js +12 -0
- package/dist/icons/house.d.ts +2 -0
- package/dist/icons/house.js +11 -0
- package/dist/icons/index.d.ts +4 -0
- package/dist/icons/index.js +8 -0
- package/dist/icons/mail.d.ts +2 -0
- package/dist/icons/mail.js +11 -0
- package/dist/motion/count-up.d.ts +20 -0
- package/dist/motion/count-up.js +59 -0
- package/dist/motion/cross-fade.d.ts +21 -0
- package/dist/motion/cross-fade.js +86 -0
- package/dist/motion/index.d.ts +5 -0
- package/dist/motion/index.js +14 -0
- package/dist/motion/model.d.ts +15 -0
- package/dist/motion/model.js +68 -0
- package/dist/motion/motion-styles.d.ts +1 -0
- package/dist/motion/motion-styles.js +35 -0
- package/dist/motion/reveal.d.ts +37 -0
- package/dist/motion/reveal.js +69 -0
- package/dist/motion/use-enter-phase.d.ts +11 -0
- package/dist/motion/use-enter-phase.js +40 -0
- package/dist/motion/use-highlight-row.d.ts +22 -0
- package/dist/motion/use-highlight-row.js +38 -0
- package/dist/navigation/tabs/tabs.js +1 -1
- package/dist/navigation/wizard/wizard.d.ts +4 -1
- package/dist/navigation/wizard/wizard.js +3 -0
- package/dist/overlays/alert-dialog/alert-dialog.js +8 -1
- package/dist/overlays/context-menu/context-menu.js +3 -1
- package/dist/overlays/dialog/dialog.js +10 -2
- package/dist/overlays/drawer/drawer.d.ts +18 -4
- package/dist/overlays/drawer/drawer.js +53 -4
- package/dist/overlays/drawer/index.d.ts +1 -1
- package/dist/overlays/dropdown-menu/dropdown-menu.d.ts +1 -1
- package/dist/overlays/dropdown-menu/dropdown-menu.js +5 -4
- package/dist/overlays/hover-card/hover-card.js +2 -0
- package/dist/overlays/popover/popover.js +2 -0
- package/dist/overlays/toaster/index.d.ts +1 -1
- package/dist/overlays/toaster/toaster.d.ts +28 -2
- package/dist/overlays/toaster/toaster.js +73 -29
- package/dist/overlays/tooltip/tooltip.js +2 -0
- package/dist/primitives/use-presence.js +9 -0
- package/dist/shell/app-shell/app-shell.d.ts +8 -1
- package/dist/shell/app-shell/app-shell.js +50 -3
- package/dist/shell/index.d.ts +1 -0
- package/dist/shell/index.js +1 -0
- package/dist/shell/sidebar/sidebar.d.ts +17 -1
- package/dist/shell/sidebar/sidebar.js +126 -76
- package/dist/shell/topbar/topbar.d.ts +4 -2
- package/dist/shell/topbar/topbar.js +2 -0
- package/dist/showcase/operations-bento.js +2 -2
- package/dist/states/empty-state/empty-state.d.ts +10 -3
- package/dist/states/empty-state/empty-state.js +46 -5
- package/dist/states/error-state/error-state.js +1 -1
- package/dist/states/skeleton/skeleton.js +1 -1
- package/dist/utils/class-tokens.generated.js +4 -6
- package/dist/utils/list-navigation.d.ts +14 -0
- package/dist/utils/list-navigation.js +44 -0
- package/dist/utils/overlay-motion.d.ts +12 -0
- package/dist/utils/overlay-motion.js +14 -0
- package/dist/utils/use-container-width.d.ts +6 -0
- package/dist/utils/use-container-width.js +19 -0
- package/icons/svg/eye.svg +4 -0
- package/icons/svg/graduation-cap.svg +5 -0
- package/icons/svg/house.svg +4 -0
- package/icons/svg/mail.svg +4 -0
- package/package.json +2 -2
- package/scripts/build-theme.mjs +46 -5
- package/src/ai/code-block/code-block.tsx +1 -1
- package/src/atoms/big-date/big-date.tsx +2 -2
- package/src/atoms/button/button.tsx +33 -6
- package/src/atoms/chip/chip.tsx +8 -3
- package/src/atoms/divider/divider.tsx +40 -0
- package/src/atoms/divider/index.ts +1 -0
- package/src/atoms/icon-button/icon-button.tsx +2 -2
- package/src/atoms/index.ts +1 -0
- package/src/atoms/internal/hit-area.ts +5 -4
- package/src/atoms/progress/index.ts +8 -1
- package/src/atoms/progress/progress.tsx +30 -1
- package/src/atoms/radio-group/radio-group.tsx +1 -1
- package/src/atoms/status-pill/status-pill.tsx +59 -18
- package/src/auth/auth-illustration/auth-illustration.tsx +100 -0
- package/src/auth/auth-illustration/index.ts +8 -0
- package/src/auth/auth-illustration/look.ts +32 -0
- package/src/auth/auth-illustration/model.ts +330 -0
- package/src/auth/auth-illustration/use-art-pointer.ts +78 -0
- package/src/auth/auth-layout/auth-layout.tsx +282 -0
- package/src/auth/auth-layout/index.ts +1 -0
- package/src/auth/character/character.tsx +346 -0
- package/src/auth/character/index.ts +1 -0
- package/src/auth/index.ts +4 -0
- package/src/auth/internal/auth-context.ts +26 -0
- package/src/auth/internal/auth-styles.tsx +39 -0
- package/src/auth/internal/portal-glyphs.tsx +32 -0
- package/src/auth/login-form/context.ts +78 -0
- package/src/auth/login-form/index.ts +21 -0
- package/src/auth/login-form/login-form.tsx +330 -0
- package/src/auth/login-form/parts.tsx +457 -0
- package/src/auth/looks/auth-illustration-any.tsx +38 -0
- package/src/auth/looks/index.ts +1 -0
- package/src/auth/mosaic/index.ts +1 -0
- package/src/auth/mosaic/mosaic.tsx +255 -0
- package/src/auth/slabs/index.ts +1 -0
- package/src/auth/slabs/slabs.tsx +181 -0
- package/src/auth/stack/index.ts +1 -0
- package/src/auth/stack/stack.tsx +267 -0
- package/src/auth/statement/index.ts +1 -0
- package/src/auth/statement/statement.tsx +122 -0
- package/src/brand/logo-forge.tsx +1 -1
- package/src/charts/candlestick-chart/candlestick-chart.tsx +2 -2
- package/src/charts/chart-grid/chart-grid.tsx +2 -2
- package/src/charts/chord-chart/chord-chart.tsx +1 -1
- package/src/charts/core/axes.tsx +2 -2
- package/src/charts/core/cartesian/annotations.tsx +2 -2
- package/src/charts/core/cartesian/marks.tsx +1 -1
- package/src/charts/core/distribution/marks.tsx +1 -1
- package/src/charts/core/distribution/xy-points.tsx +1 -1
- package/src/charts/core/export-menu.tsx +1 -1
- package/src/charts/funnel-chart/funnel-chart.tsx +1 -1
- package/src/charts/gantt-chart/gantt-chart.tsx +4 -4
- package/src/charts/gantt-chart/gantt-marks.tsx +3 -3
- package/src/charts/index.ts +2 -0
- package/src/charts/maps/geo/map-data-table.tsx +1 -1
- package/src/charts/polar-area-chart/polar-area-chart.tsx +1 -1
- package/src/charts/radar-chart/radar-chart.tsx +1 -1
- package/src/charts/stock-chart/stock-chart.tsx +1 -1
- package/src/charts/stock-chart/stock-drawing-layer.tsx +3 -3
- package/src/charts/stock-chart/stock-plot.tsx +2 -2
- package/src/containers/chat-thread/chat-thread.tsx +331 -0
- package/src/containers/chat-thread/format.ts +67 -0
- package/src/containers/chat-thread/index.ts +12 -0
- package/src/containers/cols/cols.tsx +13 -1
- package/src/containers/comment/comment.tsx +1 -1
- package/src/containers/context-rail/context-rail.tsx +229 -0
- package/src/containers/context-rail/index.ts +7 -0
- package/src/containers/dashboard/dashboard.tsx +142 -0
- package/src/containers/dashboard/index.ts +12 -0
- package/src/containers/data-grid/data-grid.demos.tsx +4 -4
- package/src/containers/data-grid/data-grid.tsx +6 -6
- package/src/containers/data-grid/filter-builder-editor.tsx +2 -2
- package/src/containers/data-grid/grid-toolbar.tsx +1 -1
- package/src/containers/data-grid/spreadsheet.demos.tsx +1 -1
- package/src/containers/detail-header/detail-header.tsx +64 -0
- package/src/containers/detail-header/index.ts +5 -0
- package/src/containers/facts/facts.tsx +1 -1
- package/src/containers/filter-bar/filter-bar.tsx +201 -0
- package/src/containers/filter-bar/index.ts +7 -0
- package/src/containers/hbars/hbars.tsx +2 -2
- package/src/containers/index.ts +9 -0
- package/src/containers/kanban/kanban.tsx +146 -39
- package/src/containers/kanban/model.ts +20 -0
- package/src/containers/kpi/kpi.tsx +1 -1
- package/src/containers/kpi-group/kpi-group.tsx +17 -2
- package/src/containers/list-detail/index.ts +5 -0
- package/src/containers/list-detail/list-detail.tsx +157 -9
- package/src/containers/page/page.tsx +61 -7
- package/src/containers/page-header/back.tsx +42 -0
- package/src/containers/page-header/index.ts +1 -0
- package/src/containers/page-header/page-header.tsx +49 -3
- package/src/containers/pagination/cursor-pagination.tsx +79 -0
- package/src/containers/pagination/index.ts +7 -0
- package/src/containers/pagination/pagination.tsx +266 -0
- package/src/containers/pagination/range.ts +68 -0
- package/src/containers/pagination/use-pagination.ts +44 -0
- package/src/containers/responsive-list/responsive-list.tsx +183 -46
- package/src/containers/row-actions/index.ts +1 -0
- package/src/containers/row-actions/row-actions.tsx +114 -0
- package/src/containers/selectable-card/index.ts +5 -0
- package/src/containers/selectable-card/selectable-card.tsx +84 -0
- package/src/containers/settings-layout/settings-layout.tsx +104 -13
- package/src/containers/shortcuts/shortcuts.tsx +1 -1
- package/src/containers/table/cell-padding.ts +2 -0
- package/src/containers/table/index.ts +6 -0
- package/src/containers/table/sort.ts +23 -0
- package/src/containers/table/table-parts.tsx +81 -0
- package/src/containers/table/table.tsx +212 -45
- package/src/containers/table-columns-menu/index.ts +5 -0
- package/src/containers/table-columns-menu/table-columns-menu.tsx +68 -0
- package/src/dashboards/layout.tsx +8 -75
- package/src/forms/chip-group/chip-group.tsx +8 -1
- package/src/forms/combobox/combobox.tsx +1 -1
- package/src/forms/copy-field/copy-field.tsx +1 -1
- package/src/forms/date-picker/date-picker.tsx +7 -2
- package/src/forms/date-picker/date-time-picker.tsx +28 -2
- package/src/forms/field/field.tsx +30 -3
- package/src/forms/fieldset/fieldset.tsx +22 -0
- package/src/forms/fieldset/index.ts +1 -0
- package/src/forms/form-footer/form-footer.tsx +74 -0
- package/src/forms/form-footer/index.ts +1 -0
- package/src/forms/form-grid/form-grid.tsx +42 -5
- package/src/forms/form-grid/index.ts +8 -1
- package/src/forms/form-section/form-section.tsx +41 -0
- package/src/forms/form-section/index.ts +1 -0
- package/src/forms/index.ts +4 -0
- package/src/forms/input/input.tsx +12 -3
- package/src/forms/internal/listbox-items.tsx +3 -4
- package/src/forms/native-select/native-select.tsx +1 -1
- package/src/forms/password-input/index.ts +1 -0
- package/src/forms/password-input/password-input.tsx +57 -0
- package/src/forms/select/index.ts +1 -1
- package/src/forms/select/select.tsx +14 -3
- package/src/forms/select-menu/select-menu.tsx +1 -1
- package/src/forms/time-input/time-input.tsx +6 -2
- package/src/i18n/strings.ts +150 -0
- package/src/icons/eye.tsx +12 -0
- package/src/icons/graduation-cap.tsx +13 -0
- package/src/icons/house.tsx +12 -0
- package/src/icons/index.ts +4 -0
- package/src/icons/mail.tsx +12 -0
- package/src/motion/count-up.tsx +83 -0
- package/src/motion/cross-fade.tsx +139 -0
- package/src/motion/index.ts +5 -0
- package/src/motion/model.ts +86 -0
- package/src/motion/motion-styles.tsx +47 -0
- package/src/motion/reveal.tsx +115 -0
- package/src/motion/use-enter-phase.ts +50 -0
- package/src/motion/use-highlight-row.ts +63 -0
- package/src/navigation/tabs/tabs.tsx +1 -1
- package/src/navigation/wizard/wizard.tsx +6 -1
- package/src/overlays/alert-dialog/alert-dialog.tsx +5 -1
- package/src/overlays/context-menu/context-menu.tsx +3 -2
- package/src/overlays/dialog/dialog.tsx +7 -2
- package/src/overlays/drawer/drawer.tsx +68 -6
- package/src/overlays/drawer/index.ts +1 -0
- package/src/overlays/dropdown-menu/dropdown-menu.tsx +5 -4
- package/src/overlays/hover-card/hover-card.tsx +2 -0
- package/src/overlays/popover/popover.tsx +2 -0
- package/src/overlays/toaster/index.ts +2 -0
- package/src/overlays/toaster/toaster.tsx +113 -17
- package/src/overlays/tooltip/tooltip.tsx +2 -0
- package/src/primitives/use-presence.ts +13 -0
- package/src/shell/app-shell/app-shell.tsx +54 -2
- package/src/shell/index.ts +1 -0
- package/src/shell/sidebar/sidebar.tsx +154 -75
- package/src/shell/topbar/topbar.tsx +8 -0
- package/src/showcase/operations-bento.tsx +2 -2
- package/src/states/empty-state/empty-state.tsx +52 -9
- package/src/states/error-state/error-state.tsx +1 -1
- package/src/states/skeleton/skeleton.tsx +1 -1
- package/src/utils/class-tokens.generated.ts +4 -6
- package/src/utils/list-navigation.ts +63 -0
- package/src/utils/overlay-motion.ts +33 -0
- package/src/utils/use-container-width.ts +24 -0
- package/styles/Theme.kt +15 -18
- package/styles/tailwind.css +29 -28
- package/styles/theme.css +29 -28
- package/styles/tokens.css +46 -0
- package/tokens/default.json +51 -29
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import type { CSSProperties } from "react";
|
|
4
|
+
import type { AuthVariantProps } from "../auth-illustration/look.js";
|
|
5
|
+
import {
|
|
6
|
+
isoBox,
|
|
7
|
+
isoPoint,
|
|
8
|
+
keystroke,
|
|
9
|
+
STACK_BOOKS,
|
|
10
|
+
STACK_COUNTS,
|
|
11
|
+
type StackBook,
|
|
12
|
+
sparkVectors,
|
|
13
|
+
stackPlaced,
|
|
14
|
+
stackSlots,
|
|
15
|
+
stackTop,
|
|
16
|
+
} from "../auth-illustration/model.js";
|
|
17
|
+
import { PORTAL_GLYPHS } from "../internal/portal-glyphs.js";
|
|
18
|
+
|
|
19
|
+
const BASE = { x: 210, y: 350 } as const;
|
|
20
|
+
const SLOTS = stackSlots();
|
|
21
|
+
const SPARKS = sparkVectors(10).map((spark) => ({ dx: spark.dx * 0.7, dy: spark.dy * 0.7 - 20 }));
|
|
22
|
+
const STAR = "M0-9 L2.5-2.5 L9 0 L2.5 2.5 L0 9 L-2.5 2.5 L-9 0 L-2.5-2.5Z";
|
|
23
|
+
|
|
24
|
+
const CSS = `
|
|
25
|
+
@keyframes ui-stk-drop{0%{opacity:0;transform:translateY(-140px)}10%{opacity:1}}
|
|
26
|
+
@keyframes ui-stk-pulse{50%{opacity:.3}}
|
|
27
|
+
@keyframes ui-stk-squash-0{40%{transform:scale(1.012,.975)}}
|
|
28
|
+
@keyframes ui-stk-squash-1{40%{transform:scale(1.012,.975)}}
|
|
29
|
+
@keyframes ui-stk-wobble{18%{transform:translateX(calc(var(--i) * -5px))}42%{transform:translateX(calc(var(--i) * 4px))}66%{transform:translateX(calc(var(--i) * -2px))}84%{transform:translateX(calc(var(--i) * 1px))}}
|
|
30
|
+
@keyframes ui-stk-rise{from{opacity:0;transform:scaleY(0)}}
|
|
31
|
+
@keyframes ui-stk-unfurl{from{transform:scaleX(0)}}
|
|
32
|
+
@keyframes ui-stk-wave{50%{transform:skewY(-5deg) scaleX(.94)}}
|
|
33
|
+
.ui-stk{--n:4;--shift:22px;scale:1.28;transform-origin:50% 88%;--stk-paper:color-mix(in srgb,white 90%,var(--accent));--stk-line:color-mix(in srgb,black 22%,transparent)}
|
|
34
|
+
.ui-auth-art[data-panel=solid] .ui-stk{--stk-paper:color-mix(in srgb,white 84%,var(--auth-art-bg))}
|
|
35
|
+
.ui-stk-book{--on:var(--on4);--next:var(--next4)}
|
|
36
|
+
.ui-stk-flag{--fx:var(--fx4);--fy:var(--fy4);transform:translate(calc(var(--fx) * 1px),calc(var(--fy) * 1px))}
|
|
37
|
+
.ui-stk-book[data-i="4"],.ui-stk-book[data-i="5"]{display:none}
|
|
38
|
+
@container art (min-width:24rem){.ui-stk{--n:5;--shift:10px;scale:1.12}.ui-stk-book{--on:var(--on5);--next:var(--next5)}.ui-stk-flag{--fx:var(--fx5);--fy:var(--fy5)}.ui-stk-book[data-i="4"]{display:inline}}
|
|
39
|
+
@container art (min-width:34rem){.ui-stk{--n:6;--shift:0px;scale:1}.ui-stk-book{--on:var(--on6);--next:var(--next6)}.ui-stk-flag{--fx:var(--fx6);--fy:var(--fy6)}.ui-stk-book[data-i="5"]{display:inline}}
|
|
40
|
+
.ui-stk-tower{transform:translateY(var(--shift))}
|
|
41
|
+
.ui-stk-par{transform:translate(calc(var(--px,0) * var(--i) * 2.5px),calc(var(--py,0) * var(--i) * 1px));transition:transform .6s var(--ua-glide)}
|
|
42
|
+
.ui-stk-flag-par{transform:translate(calc(var(--px,0) * (var(--n) - 1) * 2.5px),calc(var(--py,0) * (var(--n) - 1) * 1px));transition:transform .6s var(--ua-glide)}
|
|
43
|
+
.ui-stk-drop{transform:translateY(calc((1 - var(--on)) * -130px));opacity:var(--on);transition:transform .75s var(--ua-bounce),opacity .08s linear;transition-delay:calc(var(--i) * 40ms)}
|
|
44
|
+
.ui-stk-enter{animation:ui-stk-drop .8s var(--ua-land) backwards;animation-delay:calc(.1s + var(--i) * .09s)}
|
|
45
|
+
.ui-stk-ghost-wrap{opacity:var(--next);transition:opacity .3s linear}
|
|
46
|
+
.ui-stk-ghost{fill:none;stroke:var(--ua-edge);stroke-opacity:.5;stroke-width:1.6;stroke-dasharray:5 6;animation:ui-stk-pulse 2.4s ease-in-out infinite;animation-delay:calc(var(--i) * -.3s)}
|
|
47
|
+
.ui-stk-squash{transform-box:fill-box;transform-origin:50% 100%}
|
|
48
|
+
.ui-stk-squash-0{animation:ui-stk-squash-0 .28s var(--ua-glide)}
|
|
49
|
+
.ui-stk-squash-1{animation:ui-stk-squash-1 .28s var(--ua-glide)}
|
|
50
|
+
.ui-auth-art[data-state=error] .ui-stk-wob{animation:ui-stk-wobble .75s var(--ua-glide)}
|
|
51
|
+
.ui-stk-tone-0{--cover:var(--accent);--ribbon:var(--ink)}
|
|
52
|
+
.ui-stk-tone-1{--cover:color-mix(in srgb,var(--ink) 86%,var(--surface));--ribbon:var(--accent)}
|
|
53
|
+
.ui-stk-tone-2{--cover:var(--surface)}
|
|
54
|
+
.ui-stk-tone-3{--cover:var(--accent-2);--ribbon:var(--accent)}
|
|
55
|
+
.ui-auth-art[data-panel=solid] .ui-stk-tone-0{--cover:var(--auth-art-ink);--ribbon:var(--ua-tint)}
|
|
56
|
+
.ui-auth-art[data-panel=solid] .ui-stk-tone-1{--cover:var(--ua-tint)}
|
|
57
|
+
.ui-auth-art[data-panel=solid] .ui-stk-tone-2{--cover:var(--ua-mid)}
|
|
58
|
+
.ui-auth-art[data-panel=solid] .ui-stk-tone-3{--cover:color-mix(in srgb,var(--auth-art-ink) 55%,var(--auth-art-bg));--ribbon:var(--ua-tint)}
|
|
59
|
+
.ui-stk-book{--spine:color-mix(in srgb,var(--cover) 80%,black);--side:color-mix(in srgb,var(--cover) 64%,black)}
|
|
60
|
+
.ui-stk-cover{fill:var(--cover)}
|
|
61
|
+
.ui-stk-spine{fill:var(--spine)}
|
|
62
|
+
.ui-stk-cover-side{fill:var(--side)}
|
|
63
|
+
.ui-stk-pages{fill:var(--stk-paper)}
|
|
64
|
+
.ui-stk-line{fill:none;stroke:var(--stk-line);stroke-width:1}
|
|
65
|
+
.ui-stk-band{fill:none;stroke:color-mix(in srgb,var(--cover) 45%,white);stroke-width:2.2}
|
|
66
|
+
.ui-stk-label{fill:color-mix(in srgb,var(--stk-paper) 88%,var(--cover));stroke:var(--stk-edge,var(--ua-edge));stroke-width:1.2}
|
|
67
|
+
.ui-stk-inset{fill:none;stroke:color-mix(in srgb,var(--ua-edge) 20%,transparent);stroke-width:1.5}
|
|
68
|
+
.ui-stk-ribbon{fill:var(--ribbon,var(--accent))}
|
|
69
|
+
.ui-stk-edge{stroke:var(--stk-edge,var(--ua-edge));stroke-width:2;stroke-linejoin:round}
|
|
70
|
+
.ui-auth-art[data-state=error] .ui-stk-book{--stk-edge:color-mix(in srgb,var(--danger) 70%,var(--ua-edge))}
|
|
71
|
+
.ui-stk-dot{fill:color-mix(in srgb,black 28%,transparent)}
|
|
72
|
+
.ui-stk-shadow{fill:var(--ua-shadow)}
|
|
73
|
+
.ui-stk-flag{--glyph-a:var(--surface);--glyph-b:var(--ink);--glyph-c:var(--accent);--glyph-line:var(--accent);--cloth:var(--accent)}
|
|
74
|
+
.ui-auth-art[data-panel=solid] .ui-stk-flag{--glyph-a:var(--auth-art-bg);--glyph-b:var(--auth-art-bg);--glyph-c:var(--auth-art-ink);--glyph-line:var(--auth-art-ink);--cloth:var(--auth-art-ink)}
|
|
75
|
+
.ui-stk-pole{fill:none;stroke:var(--ua-edge);stroke-width:3;stroke-linecap:round;transform-box:fill-box;transform-origin:50% 100%;animation:ui-stk-rise .45s .4s var(--ua-bounce) backwards}
|
|
76
|
+
.ui-stk-knob{fill:var(--cloth);transform-box:fill-box;transform-origin:center;animation:ui-stk-rise .3s .8s var(--ua-bounce) backwards}
|
|
77
|
+
.ui-stk-cloth{fill:var(--cloth)}
|
|
78
|
+
.ui-stk-banner{transform-box:fill-box;transform-origin:0 50%;animation:ui-stk-unfurl .5s .7s var(--ua-bounce) backwards,ui-stk-wave 1.8s 1.3s ease-in-out infinite}
|
|
79
|
+
@media (prefers-reduced-motion:reduce){
|
|
80
|
+
.ui-stk-enter,.ui-stk-ghost,.ui-stk-pole,.ui-stk-knob,.ui-stk-banner,.ui-auth-art[data-state] .ui-stk-wob,.ui-stk-squash-0,.ui-stk-squash-1{animation:none}
|
|
81
|
+
.ui-stk-drop,.ui-stk-ghost-wrap{transition:none}
|
|
82
|
+
.ui-stk-par,.ui-stk-flag-par{transform:none;transition:none}
|
|
83
|
+
}
|
|
84
|
+
`;
|
|
85
|
+
|
|
86
|
+
const polygon = (points: readonly { x: number; y: number }[]) =>
|
|
87
|
+
`M${points.map((p) => `${p.x} ${p.y}`).join("L")}Z`;
|
|
88
|
+
|
|
89
|
+
/** Cover boards, page lines, spine bands and the title label of one book. */
|
|
90
|
+
function bookDetails({ w, d, h }: StackBook) {
|
|
91
|
+
const [u0, u1, v0, v1] = [-w / 2, w / 2, -d / 2, d / 2];
|
|
92
|
+
const board = Math.min(4, h / 5);
|
|
93
|
+
const count = Math.max(2, Math.round(h / 7));
|
|
94
|
+
const lines = Array.from({ length: count }, (_, k) => {
|
|
95
|
+
const z = board + ((k + 1) * (h - board * 2)) / (count + 1);
|
|
96
|
+
const a = isoPoint(u1, v0 + 4, z);
|
|
97
|
+
const b = isoPoint(u1, v1 - 4, z);
|
|
98
|
+
return `M${a.x} ${a.y}L${b.x} ${b.y}`;
|
|
99
|
+
}).join("");
|
|
100
|
+
const pages = polygon([
|
|
101
|
+
isoPoint(u1, v0 + 3, h - board),
|
|
102
|
+
isoPoint(u1, v1 - 3, h - board),
|
|
103
|
+
isoPoint(u1, v1 - 3, board),
|
|
104
|
+
isoPoint(u1, v0 + 3, board),
|
|
105
|
+
]);
|
|
106
|
+
const bands = [u0 + 16, u1 - 16]
|
|
107
|
+
.map((u) => {
|
|
108
|
+
const a = isoPoint(u, v1, h - 3);
|
|
109
|
+
const b = isoPoint(u, v1, 3);
|
|
110
|
+
return `M${a.x} ${a.y}L${b.x} ${b.y}`;
|
|
111
|
+
})
|
|
112
|
+
.join("");
|
|
113
|
+
const label = polygon([
|
|
114
|
+
isoPoint(-w / 5, v1, h * 0.7),
|
|
115
|
+
isoPoint(w / 5, v1, h * 0.7),
|
|
116
|
+
isoPoint(w / 5, v1, h * 0.3),
|
|
117
|
+
isoPoint(-w / 5, v1, h * 0.3),
|
|
118
|
+
]);
|
|
119
|
+
const inset = polygon([
|
|
120
|
+
isoPoint(u0 + 9, v0 + 9, h),
|
|
121
|
+
isoPoint(u1 - 9, v0 + 9, h),
|
|
122
|
+
isoPoint(u1 - 9, v1 - 9, h),
|
|
123
|
+
isoPoint(u0 + 9, v1 - 9, h),
|
|
124
|
+
]);
|
|
125
|
+
const ribbon = polygon([
|
|
126
|
+
isoPoint(u1, v0 + 18, h),
|
|
127
|
+
isoPoint(u1, v0 + 28, h),
|
|
128
|
+
isoPoint(u1, v0 + 28, -14),
|
|
129
|
+
isoPoint(u1, v0 + 23, -9),
|
|
130
|
+
isoPoint(u1, v0 + 18, -14),
|
|
131
|
+
]);
|
|
132
|
+
return { pages, lines, bands, label, inset, ribbon };
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
const SHAPES = STACK_BOOKS.map((book) => ({
|
|
136
|
+
...isoBox(book.w, book.d, book.h),
|
|
137
|
+
...bookDetails(book),
|
|
138
|
+
}));
|
|
139
|
+
|
|
140
|
+
/** An isometric tower of books that gains a book as the form fills and plants a flag on success. */
|
|
141
|
+
export function Stack({ state, progress, activeIndex, uid }: AuthVariantProps) {
|
|
142
|
+
const dots = `url(#${uid}-stack-dots)`;
|
|
143
|
+
// The squash class of the last keystroke stays on through every state, so leaving an error
|
|
144
|
+
// does not replay it (a CSS animation restarts only when its class changes).
|
|
145
|
+
const tick = keystroke(progress);
|
|
146
|
+
const placed = Object.fromEntries(
|
|
147
|
+
STACK_COUNTS.map((count) => [count, stackPlaced(state, progress, count)]),
|
|
148
|
+
);
|
|
149
|
+
const flag = Object.fromEntries(
|
|
150
|
+
STACK_COUNTS.flatMap((count) => {
|
|
151
|
+
const top = stackTop(count);
|
|
152
|
+
return [
|
|
153
|
+
[`--fx${count}`, top.x],
|
|
154
|
+
[`--fy${count}`, top.y],
|
|
155
|
+
];
|
|
156
|
+
}),
|
|
157
|
+
);
|
|
158
|
+
const foundation = STACK_BOOKS[0] as StackBook;
|
|
159
|
+
const shadow = isoBox(foundation.w + 34, foundation.d + 34, 0).top;
|
|
160
|
+
return (
|
|
161
|
+
<>
|
|
162
|
+
<style href="jcsoftdev-ui-auth-stack" precedence="default">
|
|
163
|
+
{CSS}
|
|
164
|
+
</style>
|
|
165
|
+
{/* biome-ignore lint/a11y/noSvgWithoutTitle: the wrapper names the illustration or hides it */}
|
|
166
|
+
<svg viewBox="0 30 420 450" focusable="false" className="ui-stk">
|
|
167
|
+
<defs>
|
|
168
|
+
<pattern id={`${uid}-stack-dots`} width="4.5" height="4.5" patternUnits="userSpaceOnUse">
|
|
169
|
+
<circle className="ui-stk-dot" cx="2.25" cy="2.25" r="0.9" />
|
|
170
|
+
</pattern>
|
|
171
|
+
</defs>
|
|
172
|
+
<g transform={`translate(${BASE.x} ${BASE.y})`}>
|
|
173
|
+
<g className="ui-stk-tower">
|
|
174
|
+
<path className="ui-stk-shadow" d={shadow} transform="translate(14 16)" />
|
|
175
|
+
<g
|
|
176
|
+
className={
|
|
177
|
+
tick.count > 0 ? `ui-stk-squash ui-stk-squash-${tick.phase}` : "ui-stk-squash"
|
|
178
|
+
}
|
|
179
|
+
>
|
|
180
|
+
{STACK_BOOKS.map((book, i) => {
|
|
181
|
+
const shape = SHAPES[i];
|
|
182
|
+
const slot = SLOTS[i];
|
|
183
|
+
if (!shape || !slot) return null;
|
|
184
|
+
const vars = {
|
|
185
|
+
"--i": i,
|
|
186
|
+
...Object.fromEntries(
|
|
187
|
+
STACK_COUNTS.flatMap((count) => [
|
|
188
|
+
[`--on${count}`, i < (placed[count] ?? 0) ? 1 : 0],
|
|
189
|
+
[`--next${count}`, i === placed[count] ? 1 : 0],
|
|
190
|
+
]),
|
|
191
|
+
),
|
|
192
|
+
} as CSSProperties;
|
|
193
|
+
return (
|
|
194
|
+
<g
|
|
195
|
+
// biome-ignore lint/suspicious/noArrayIndexKey: the books are a fixed list
|
|
196
|
+
key={i}
|
|
197
|
+
className={`ui-stk-book ui-stk-tone-${book.tone}`}
|
|
198
|
+
data-i={i}
|
|
199
|
+
style={vars}
|
|
200
|
+
transform={`translate(${slot.x} ${slot.y})`}
|
|
201
|
+
>
|
|
202
|
+
<g className="ui-stk-ghost-wrap">
|
|
203
|
+
<path className="ui-stk-ghost" d={shape.top} />
|
|
204
|
+
</g>
|
|
205
|
+
<g className="ui-stk-par">
|
|
206
|
+
<g className="ui-stk-drop">
|
|
207
|
+
<g className="ui-stk-enter">
|
|
208
|
+
<g className="ui-stk-wob">
|
|
209
|
+
<path className="ui-stk-spine ui-stk-edge" d={shape.left} />
|
|
210
|
+
<path d={shape.left} fill={dots} />
|
|
211
|
+
<path className="ui-stk-band" d={shape.bands} />
|
|
212
|
+
<path className="ui-stk-label" d={shape.label} />
|
|
213
|
+
<path className="ui-stk-cover-side ui-stk-edge" d={shape.right} />
|
|
214
|
+
<path className="ui-stk-pages" d={shape.pages} />
|
|
215
|
+
<path className="ui-stk-line" d={shape.lines} />
|
|
216
|
+
{book.tone === 0 || book.tone === 3 ? (
|
|
217
|
+
<path className="ui-stk-ribbon ui-stk-edge" d={shape.ribbon} />
|
|
218
|
+
) : null}
|
|
219
|
+
<path className="ui-stk-cover ui-stk-edge" d={shape.top} />
|
|
220
|
+
<path className="ui-stk-inset" d={shape.inset} />
|
|
221
|
+
</g>
|
|
222
|
+
</g>
|
|
223
|
+
</g>
|
|
224
|
+
</g>
|
|
225
|
+
</g>
|
|
226
|
+
);
|
|
227
|
+
})}
|
|
228
|
+
</g>
|
|
229
|
+
<g className="ui-stk-flag" style={flag as CSSProperties}>
|
|
230
|
+
{state === "success" ? (
|
|
231
|
+
<>
|
|
232
|
+
<g className="ui-stk-flag-par">
|
|
233
|
+
<path className="ui-stk-pole" d="M0 0V-78" />
|
|
234
|
+
<g className="ui-stk-banner-wrap" transform="translate(0 -76)">
|
|
235
|
+
<g className="ui-stk-banner">
|
|
236
|
+
<path className="ui-stk-cloth ui-stk-edge" d="M0 0H62L50 17L62 34H0Z" />
|
|
237
|
+
<g transform="translate(9 4) scale(.27)">
|
|
238
|
+
{PORTAL_GLYPHS[activeIndex] ?? null}
|
|
239
|
+
</g>
|
|
240
|
+
</g>
|
|
241
|
+
</g>
|
|
242
|
+
<circle className="ui-stk-knob ui-stk-edge" cy="-80" r="4" />
|
|
243
|
+
</g>
|
|
244
|
+
<g transform="translate(0 -60)">
|
|
245
|
+
{SPARKS.map((spark, n) => (
|
|
246
|
+
<path
|
|
247
|
+
key={`${spark.dx}:${spark.dy}`}
|
|
248
|
+
className="ui-auth-spark"
|
|
249
|
+
data-tone={n % 4}
|
|
250
|
+
d={n % 2 ? STAR : "M-4 0a4 4 0 1 0 8 0a4 4 0 1 0-8 0"}
|
|
251
|
+
style={
|
|
252
|
+
{ "--dx": `${spark.dx}px`, "--dy": `${spark.dy}px` } as CSSProperties
|
|
253
|
+
}
|
|
254
|
+
/>
|
|
255
|
+
))}
|
|
256
|
+
</g>
|
|
257
|
+
</>
|
|
258
|
+
) : null}
|
|
259
|
+
</g>
|
|
260
|
+
</g>
|
|
261
|
+
</g>
|
|
262
|
+
</svg>
|
|
263
|
+
</>
|
|
264
|
+
);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
Stack.variant = "stack";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./statement.js";
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import type { CSSProperties, ReactNode } from "react";
|
|
4
|
+
import { useUiStrings } from "../../i18n/index.js";
|
|
5
|
+
import type { AuthVariantProps } from "../auth-illustration/look.js";
|
|
6
|
+
|
|
7
|
+
const CSS = `
|
|
8
|
+
@keyframes ui-stm-shake{20%,60%{transform:translateX(-8px)}40%,80%{transform:translateX(8px)}}
|
|
9
|
+
@keyframes ui-stm-pop{40%{transform:scale(1.06)}}
|
|
10
|
+
.ui-stm{--stm-ink:var(--ink);--stm-soft:color-mix(in srgb,var(--ink) 66%,transparent);--stm-track:color-mix(in srgb,var(--accent) 26%,transparent);--stm-fill:var(--accent);--stm-goal:color-mix(in srgb,var(--ink) 10%,var(--surface));--stm-goal-arrow:color-mix(in srgb,var(--ink) 50%,var(--surface));--stm-knob:var(--ink);--stm-arrow:var(--surface);display:grid;gap:clamp(14px,4cqi,28px);justify-items:start;padding-block:clamp(8px,4cqi,32px);text-align:start;font-family:var(--font-sans)}
|
|
11
|
+
.ui-auth-art[data-panel=solid] .ui-stm{--stm-ink:var(--auth-art-ink);--stm-soft:var(--auth-art-ink);--stm-track:color-mix(in srgb,var(--auth-art-ink) 22%,transparent);--stm-fill:var(--auth-art-ink);--stm-goal:color-mix(in srgb,var(--auth-art-ink) 32%,var(--auth-art-bg));--stm-goal-arrow:var(--auth-art-ink);--stm-knob:var(--auth-art-bg);--stm-arrow:var(--auth-art-ink)}
|
|
12
|
+
.ui-stm-lines{display:grid;margin:0;color:var(--stm-ink);font-size:clamp(30px,12.5cqi,92px);font-weight:var(--text-page-title--font-weight,800);letter-spacing:-.035em;line-height:.98;text-wrap:balance}
|
|
13
|
+
.ui-stm-line{grid-area:1/1}
|
|
14
|
+
.ui-stm-mask{display:inline-block;overflow:clip;padding-bottom:.08em;vertical-align:top}
|
|
15
|
+
.ui-stm-word{display:inline-block;transform:translateY(0);transition:transform .7s cubic-bezier(.2,.8,.2,1);transition-delay:calc(var(--i) * 55ms)}
|
|
16
|
+
.ui-stm-line[data-line=done] .ui-stm-word{transform:translateY(140%)}
|
|
17
|
+
.ui-auth-art[data-state=success] .ui-stm-line[data-line=main] .ui-stm-word{transform:translateY(-140%);transition-delay:calc(var(--i) * 40ms)}
|
|
18
|
+
.ui-auth-art[data-state=success] .ui-stm-line[data-line=done] .ui-stm-word{transform:translateY(0);transition-delay:calc(.25s + var(--i) * 70ms)}
|
|
19
|
+
.ui-stm-enter .ui-stm-word{animation:ui-stm-rise .8s cubic-bezier(.2,.8,.2,1) backwards;animation-delay:calc(.1s + var(--i) * 70ms)}
|
|
20
|
+
@keyframes ui-stm-rise{from{transform:translateY(140%)}}
|
|
21
|
+
.ui-stm-caption{margin:0;max-width:34ch;color:var(--stm-soft);font-size:clamp(14px,3.6cqi,19px);line-height:1.45}
|
|
22
|
+
.ui-stm-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
|
|
23
|
+
.ui-stm-pill{font-size:clamp(15px,4.4cqi,26px);--pad:.3em;--knob:2.1em;position:relative;display:block;overflow:hidden;width:clamp(140px,40cqi,260px);height:calc(var(--knob) + var(--pad) * 2);border-radius:999px;background:var(--stm-track)}
|
|
24
|
+
.ui-stm-fill{position:absolute;inset:0;border-radius:inherit;background:var(--stm-fill);transform:scaleX(var(--p));transform-origin:0 50%;transition:transform .5s cubic-bezier(.2,.8,.2,1)}
|
|
25
|
+
.ui-stm-knob{position:absolute;top:var(--pad);right:var(--pad);display:grid;place-items:center;width:var(--knob);height:var(--knob);border-radius:999px;background:var(--stm-knob);color:var(--stm-goal-arrow);isolation:isolate}
|
|
26
|
+
.ui-stm-knob::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:var(--stm-goal);transition:opacity .35s linear}
|
|
27
|
+
.ui-stm-pill[data-ready] .ui-stm-knob{color:var(--stm-arrow)}
|
|
28
|
+
.ui-stm-pill[data-ready] .ui-stm-knob::before{opacity:0}
|
|
29
|
+
.ui-stm-knob svg{width:46%;height:46%}
|
|
30
|
+
.ui-auth-art[data-state=success] .ui-stm-pill{animation:ui-stm-pop .5s cubic-bezier(.34,1.5,.5,1) .35s}
|
|
31
|
+
.ui-auth-art[data-state=error] .ui-stm-pill{animation:ui-stm-shake .5s cubic-bezier(.2,.7,.2,1)}
|
|
32
|
+
.ui-auth-art[data-state=error] .ui-stm-fill{background:var(--danger)}
|
|
33
|
+
@media (prefers-reduced-motion:reduce){
|
|
34
|
+
.ui-stm *,.ui-auth-art[data-state] .ui-stm *{animation:none!important;transition:none!important}
|
|
35
|
+
}
|
|
36
|
+
`;
|
|
37
|
+
|
|
38
|
+
function Words({
|
|
39
|
+
text,
|
|
40
|
+
line,
|
|
41
|
+
hidden,
|
|
42
|
+
}: {
|
|
43
|
+
text: ReactNode;
|
|
44
|
+
line: "main" | "done";
|
|
45
|
+
/** The line is visually gone, so it is gone for assistive technology too. */
|
|
46
|
+
hidden: boolean;
|
|
47
|
+
}) {
|
|
48
|
+
const words = typeof text === "string" ? text.split(/\s+/).filter(Boolean) : [text];
|
|
49
|
+
return (
|
|
50
|
+
<span className="ui-stm-line" data-line={line} aria-hidden={hidden || undefined}>
|
|
51
|
+
{words.map((word, i) => (
|
|
52
|
+
// biome-ignore lint/suspicious/noArrayIndexKey: words repeat, their order is their identity
|
|
53
|
+
<span key={i}>
|
|
54
|
+
<span className="ui-stm-mask">
|
|
55
|
+
<span className="ui-stm-word" style={{ "--i": i } as CSSProperties}>
|
|
56
|
+
{word}
|
|
57
|
+
</span>
|
|
58
|
+
</span>
|
|
59
|
+
{i < words.length - 1 ? " " : null}
|
|
60
|
+
</span>
|
|
61
|
+
))}
|
|
62
|
+
</span>
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Kinetic type in the spirit of a product statement: the headline rises word by word and gives way
|
|
68
|
+
* to a short "signed in" line on success. Under it a pill is a progress meter, not a control: it
|
|
69
|
+
* fills toward the arrow at its end as the form fills, the arrow turns solid once the form is
|
|
70
|
+
* complete, and the pill pops on success. The text is real content, so this look is not hidden from assistive
|
|
71
|
+
* technology; `headline`, `caption` and `action` come from `AuthIllustration`.
|
|
72
|
+
*/
|
|
73
|
+
export function Statement({ state, progress, headline, caption, action }: AuthVariantProps) {
|
|
74
|
+
const strings = useUiStrings();
|
|
75
|
+
const signedIn = state === "success";
|
|
76
|
+
const p = signedIn ? 1 : progress;
|
|
77
|
+
return (
|
|
78
|
+
<div className="ui-stm">
|
|
79
|
+
<style href="jcsoftdev-ui-auth-statement" precedence="default">
|
|
80
|
+
{CSS}
|
|
81
|
+
</style>
|
|
82
|
+
<p className="ui-stm-lines ui-stm-enter">
|
|
83
|
+
<Words text={headline ?? strings.welcomeBack} line="main" hidden={signedIn} />
|
|
84
|
+
<Words text={strings.signedIn} line="done" hidden={!signedIn} />
|
|
85
|
+
</p>
|
|
86
|
+
{caption != null ? (
|
|
87
|
+
<p
|
|
88
|
+
className="ui-stm-caption"
|
|
89
|
+
aria-hidden={signedIn || undefined}
|
|
90
|
+
style={signedIn ? { visibility: "hidden" } : undefined}
|
|
91
|
+
>
|
|
92
|
+
{caption}
|
|
93
|
+
</p>
|
|
94
|
+
) : null}
|
|
95
|
+
<div className="ui-stm-row">
|
|
96
|
+
<span
|
|
97
|
+
className="ui-stm-pill"
|
|
98
|
+
aria-hidden="true"
|
|
99
|
+
data-ready={p >= 1 || undefined}
|
|
100
|
+
style={{ "--p": p } as CSSProperties}
|
|
101
|
+
>
|
|
102
|
+
<span className="ui-stm-fill" />
|
|
103
|
+
<span className="ui-stm-knob">
|
|
104
|
+
<svg
|
|
105
|
+
viewBox="0 0 24 24"
|
|
106
|
+
fill="none"
|
|
107
|
+
stroke="currentColor"
|
|
108
|
+
strokeWidth="2.6"
|
|
109
|
+
aria-hidden="true"
|
|
110
|
+
>
|
|
111
|
+
<path d="M4 12h15M13 6l6 6-6 6" strokeLinecap="round" strokeLinejoin="round" />
|
|
112
|
+
</svg>
|
|
113
|
+
</span>
|
|
114
|
+
</span>
|
|
115
|
+
{action}
|
|
116
|
+
</div>
|
|
117
|
+
</div>
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
Statement.variant = "statement";
|
|
122
|
+
Statement.text = true;
|
package/src/brand/logo-forge.tsx
CHANGED
|
@@ -153,7 +153,7 @@ function Field({
|
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
const choiceBase =
|
|
156
|
-
"inline-flex h-control-sm cursor-pointer items-center justify-center gap-1.5 whitespace-nowrap rounded-chip px-3 font-semibold text-fs-
|
|
156
|
+
"inline-flex h-control-sm cursor-pointer items-center justify-center gap-1.5 whitespace-nowrap rounded-chip px-3 font-semibold text-fs-120 pressable focus-visible:focus-ring";
|
|
157
157
|
|
|
158
158
|
function choiceClass(on: boolean) {
|
|
159
159
|
return cn(
|
|
@@ -416,7 +416,7 @@ function CandlePlot({
|
|
|
416
416
|
y={4}
|
|
417
417
|
dy="0.34em"
|
|
418
418
|
textAnchor="end"
|
|
419
|
-
className="fill-ink-3 font-medium text-fs-
|
|
419
|
+
className="fill-ink-3 font-medium text-fs-110 tabular-nums"
|
|
420
420
|
>
|
|
421
421
|
{vfmt(maxVolume)}
|
|
422
422
|
</text>
|
|
@@ -499,7 +499,7 @@ function CandlePlot({
|
|
|
499
499
|
y={0}
|
|
500
500
|
dy="0.34em"
|
|
501
501
|
textAnchor="middle"
|
|
502
|
-
className="font-bold text-fs-
|
|
502
|
+
className="font-bold text-fs-110 tabular-nums"
|
|
503
503
|
style={{ fill: "var(--surface)" }}
|
|
504
504
|
>
|
|
505
505
|
{fmt(last.close)}
|
|
@@ -163,12 +163,12 @@ export function ChartGrid({
|
|
|
163
163
|
<header className="flex min-w-0 items-baseline justify-between gap-2">
|
|
164
164
|
<h3
|
|
165
165
|
id={headingId}
|
|
166
|
-
className="m-0 truncate font-bold text-fs-
|
|
166
|
+
className="m-0 truncate font-bold text-fs-120 text-ink-2 leading-tight"
|
|
167
167
|
>
|
|
168
168
|
{panel.title}
|
|
169
169
|
</h3>
|
|
170
170
|
{panel.subtitle ? (
|
|
171
|
-
<span className="shrink-0 font-semibold text-fs-
|
|
171
|
+
<span className="shrink-0 font-semibold text-fs-120 text-ink-3 tabular-nums">
|
|
172
172
|
{panel.subtitle}
|
|
173
173
|
</span>
|
|
174
174
|
) : null}
|
|
@@ -479,7 +479,7 @@ function ChordPlot({
|
|
|
479
479
|
x={at.x}
|
|
480
480
|
y={at.y + (cos > 0.4 ? -2 : cos < -0.4 ? 10 : 4)}
|
|
481
481
|
textAnchor={sin > 0.25 ? "start" : sin < -0.25 ? "end" : "middle"}
|
|
482
|
-
className="pointer-events-none select-none fill-ink-2 font-semibold text-fs-
|
|
482
|
+
className="pointer-events-none select-none fill-ink-2 font-semibold text-fs-120"
|
|
483
483
|
style={{ opacity: dim ? 0.4 : 1, transition: "opacity 150ms" }}
|
|
484
484
|
>
|
|
485
485
|
{groups[group.index]?.name}
|
package/src/charts/core/axes.tsx
CHANGED
|
@@ -120,7 +120,7 @@ export const AxisLeft = memo(function AxisLeft({ ticks, offset, title, color }:
|
|
|
120
120
|
x={-10}
|
|
121
121
|
y={-16}
|
|
122
122
|
textAnchor="end"
|
|
123
|
-
className="fill-ink-3 font-bold text-fs-
|
|
123
|
+
className="fill-ink-3 font-bold text-fs-110"
|
|
124
124
|
style={color ? { fill: color } : undefined}
|
|
125
125
|
>
|
|
126
126
|
{title}
|
|
@@ -152,7 +152,7 @@ export const AxisRight = memo(function AxisRight({ ticks, offset, title, color }
|
|
|
152
152
|
x={10}
|
|
153
153
|
y={-16}
|
|
154
154
|
textAnchor="start"
|
|
155
|
-
className="fill-ink-3 font-bold text-fs-
|
|
155
|
+
className="fill-ink-3 font-bold text-fs-110"
|
|
156
156
|
style={color ? { fill: color } : undefined}
|
|
157
157
|
>
|
|
158
158
|
{title}
|
|
@@ -36,7 +36,7 @@ function Pill({
|
|
|
36
36
|
y={y}
|
|
37
37
|
dy="0.35em"
|
|
38
38
|
textAnchor="middle"
|
|
39
|
-
className="font-bold text-fs-
|
|
39
|
+
className="font-bold text-fs-110"
|
|
40
40
|
style={{ fill: ink }}
|
|
41
41
|
>
|
|
42
42
|
{text}
|
|
@@ -111,7 +111,7 @@ export const AnnotationLayer = memo(function AnnotationLayer({
|
|
|
111
111
|
<text
|
|
112
112
|
x={(horizontal ? 0 : note.from) + 6}
|
|
113
113
|
y={(horizontal ? note.from : 0) + 13}
|
|
114
|
-
className="font-bold text-fs-
|
|
114
|
+
className="font-bold text-fs-110"
|
|
115
115
|
style={{ fill: ink }}
|
|
116
116
|
>
|
|
117
117
|
{note.label}
|
|
@@ -146,7 +146,7 @@ export const DataLabels = memo(function DataLabels({ geometry, dimmed }: DataLab
|
|
|
146
146
|
strokeWidth={label.inside ? 0 : 3}
|
|
147
147
|
strokeLinejoin="round"
|
|
148
148
|
className={cn(
|
|
149
|
-
"font-bold text-fs-
|
|
149
|
+
"font-bold text-fs-110 tabular-nums",
|
|
150
150
|
label.inside ? "fill-surface" : "fill-ink-2 stroke-surface",
|
|
151
151
|
)}
|
|
152
152
|
>
|
|
@@ -7,7 +7,7 @@ import type { DistributionLabels } from "./labels.js";
|
|
|
7
7
|
import type { CategoryLayout, XYLayout } from "./layout.js";
|
|
8
8
|
import type { BoxStats } from "./stats.js";
|
|
9
9
|
|
|
10
|
-
const TITLE = "fill-ink-3 font-bold text-fs-
|
|
10
|
+
const TITLE = "fill-ink-3 font-bold text-fs-110";
|
|
11
11
|
|
|
12
12
|
/** Gridlines along the value axis plus both axes of a `categoryLayout`. */
|
|
13
13
|
export const CategoryAxes = memo(function CategoryAxes({
|
|
@@ -980,7 +980,7 @@ function XYPointPlot({
|
|
|
980
980
|
x={Math.min(trend.x2, innerWidth) - 4}
|
|
981
981
|
y={trend.y2 - 8}
|
|
982
982
|
textAnchor="end"
|
|
983
|
-
className="font-bold text-fs-
|
|
983
|
+
className="font-bold text-fs-110 tabular-nums"
|
|
984
984
|
style={{ fill: trend.series.color }}
|
|
985
985
|
>
|
|
986
986
|
{`R² ${formatNumber(trend.fit.r2, { maximumFractionDigits: 2 })}`}
|
|
@@ -58,7 +58,7 @@ export function ExportMenu({
|
|
|
58
58
|
type="button"
|
|
59
59
|
aria-label={`${texts.export} ${texts[kind]}`}
|
|
60
60
|
onClick={() => run(kind)}
|
|
61
|
-
className="cursor-pointer rounded-button px-2 py-1 font-semibold text-fs-
|
|
61
|
+
className="cursor-pointer rounded-button px-2 py-1 font-semibold text-fs-120 text-ink-3 outline-none hover:bg-surface hover:text-ink focus-visible:outline-2 focus-visible:outline-accent-ink"
|
|
62
62
|
>
|
|
63
63
|
{texts[kind]}
|
|
64
64
|
</button>
|
|
@@ -443,7 +443,7 @@ function FunnelPlot({
|
|
|
443
443
|
x={x}
|
|
444
444
|
y={y + 4}
|
|
445
445
|
textAnchor="middle"
|
|
446
|
-
className={cn("fill-ink-2 font-bold text-fs-
|
|
446
|
+
className={cn("fill-ink-2 font-bold text-fs-110 tabular-nums")}
|
|
447
447
|
>
|
|
448
448
|
{formatPercent(conversion, { decimals: 0 })}
|
|
449
449
|
</text>
|
|
@@ -983,7 +983,7 @@ function GanttBody({
|
|
|
983
983
|
aria-label={texts.zoomLevels[level]}
|
|
984
984
|
onClick={() => onZoom(level)}
|
|
985
985
|
className={cn(
|
|
986
|
-
"cursor-pointer rounded-button px-2 py-1 font-semibold text-fs-
|
|
986
|
+
"cursor-pointer rounded-button px-2 py-1 font-semibold text-fs-120 outline-none focus-visible:outline-2 focus-visible:outline-accent-ink @md/chart:px-3",
|
|
987
987
|
zoom === level ? "bg-surface text-ink shadow-xs" : "text-ink-3 hover:text-ink",
|
|
988
988
|
)}
|
|
989
989
|
>
|
|
@@ -997,7 +997,7 @@ function GanttBody({
|
|
|
997
997
|
))}
|
|
998
998
|
</fieldset>
|
|
999
999
|
{critical || baselines ? (
|
|
1000
|
-
<ul className="m-0 hidden min-w-0 list-none items-center gap-3 p-0 text-fs-
|
|
1000
|
+
<ul className="m-0 hidden min-w-0 list-none items-center gap-3 p-0 text-fs-120 text-ink-3 @xl/chart:flex">
|
|
1001
1001
|
{critical ? (
|
|
1002
1002
|
<li className="flex items-center gap-1.5 whitespace-nowrap">
|
|
1003
1003
|
<span
|
|
@@ -1077,7 +1077,7 @@ function GanttBody({
|
|
|
1077
1077
|
<button
|
|
1078
1078
|
type="button"
|
|
1079
1079
|
onClick={() => scrollToTime(todayTime, true)}
|
|
1080
|
-
className="shrink-0 cursor-pointer rounded-button border-divider bg-surface-control px-3 py-1 font-semibold text-fs-
|
|
1080
|
+
className="shrink-0 cursor-pointer rounded-button border-divider bg-surface-control px-3 py-1 font-semibold text-fs-120 text-ink-2 outline-none hover:bg-surface-2 focus-visible:outline-2 focus-visible:outline-accent-ink"
|
|
1081
1081
|
>
|
|
1082
1082
|
{texts.today}
|
|
1083
1083
|
</button>
|
|
@@ -1235,7 +1235,7 @@ function GanttBody({
|
|
|
1235
1235
|
<span
|
|
1236
1236
|
key={column}
|
|
1237
1237
|
aria-hidden="true"
|
|
1238
|
-
className="shrink-0 truncate pr-3 text-right text-fs-
|
|
1238
|
+
className="shrink-0 truncate pr-3 text-right text-fs-120 text-ink-3 tabular-nums"
|
|
1239
1239
|
style={{ width: COLUMN_WIDTH[column] }}
|
|
1240
1240
|
>
|
|
1241
1241
|
{column === "start"
|
|
@@ -118,7 +118,7 @@ export const TimelineHeader = memo(function TimelineHeader({
|
|
|
118
118
|
x={x}
|
|
119
119
|
y={HEADER_ROW / 2}
|
|
120
120
|
dy="0.34em"
|
|
121
|
-
className="fill-ink-2 font-semibold text-fs-
|
|
121
|
+
className="fill-ink-2 font-semibold text-fs-120"
|
|
122
122
|
>
|
|
123
123
|
{cell.label}
|
|
124
124
|
</text>
|
|
@@ -150,7 +150,7 @@ export const TimelineHeader = memo(function TimelineHeader({
|
|
|
150
150
|
y={HEADER_ROW + HEADER_ROW / 2}
|
|
151
151
|
dy="0.34em"
|
|
152
152
|
textAnchor="middle"
|
|
153
|
-
className="fill-ink-3 font-medium text-fs-
|
|
153
|
+
className="fill-ink-3 font-medium text-fs-110 tabular-nums"
|
|
154
154
|
>
|
|
155
155
|
{cell.label}
|
|
156
156
|
</text>
|
|
@@ -698,7 +698,7 @@ export const AnnotationLayer = memo(function AnnotationLayer({
|
|
|
698
698
|
x={item.x0 + 10}
|
|
699
699
|
y={y + 7.5}
|
|
700
700
|
dy="0.34em"
|
|
701
|
-
className="fill-ink font-semibold text-fs-
|
|
701
|
+
className="fill-ink font-semibold text-fs-110"
|
|
702
702
|
>
|
|
703
703
|
{item.label}
|
|
704
704
|
</text>
|
package/src/charts/index.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from "./beeswarm-chart/index.js";
|
|
|
4
4
|
export * from "./box-plot/index.js";
|
|
5
5
|
export * from "./bubble-chart/index.js";
|
|
6
6
|
export * from "./bubble-map/index.js";
|
|
7
|
+
export * from "./bullet-chart/index.js";
|
|
7
8
|
export * from "./candlestick-chart/index.js";
|
|
8
9
|
export * from "./chart-grid/index.js";
|
|
9
10
|
export * from "./chord-chart/index.js";
|
|
@@ -25,6 +26,7 @@ export * from "./histogram/index.js";
|
|
|
25
26
|
export * from "./icicle-chart/index.js";
|
|
26
27
|
export * from "./isotype-rows/index.js";
|
|
27
28
|
export * from "./line-chart/index.js";
|
|
29
|
+
export * from "./lollipop-chart/index.js";
|
|
28
30
|
export * from "./maps/index.js";
|
|
29
31
|
export * from "./parliament-chart/index.js";
|
|
30
32
|
export * from "./pictogram-chart/index.js";
|
|
@@ -82,7 +82,7 @@ export function MapDataTable({
|
|
|
82
82
|
);
|
|
83
83
|
return (
|
|
84
84
|
<div className="@container/table overflow-auto rounded-event border-divider" style={{ height }}>
|
|
85
|
-
<table className="w-full border-collapse text-fs-
|
|
85
|
+
<table className="w-full border-collapse text-fs-120">
|
|
86
86
|
<caption className="sr-only">{caption}</caption>
|
|
87
87
|
<thead>
|
|
88
88
|
<tr className="border-b-divider">
|
|
@@ -434,7 +434,7 @@ function RosePlot({
|
|
|
434
434
|
x={cx + 4}
|
|
435
435
|
y={cy - ring.r - 3}
|
|
436
436
|
{...DECORATIVE}
|
|
437
|
-
className="pointer-events-none fill-ink-3 text-fs-
|
|
437
|
+
className="pointer-events-none fill-ink-3 text-fs-100 tabular-nums"
|
|
438
438
|
style={{ paintOrder: "stroke", stroke: "var(--surface)", strokeWidth: 3 }}
|
|
439
439
|
>
|
|
440
440
|
{axisFormat(ring.value)}
|