@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
|
@@ -1,49 +1,92 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
|
+
import { Inbox, Lock, Search } from "../../icons/index.js";
|
|
2
3
|
import { cn } from "../../utils/cn.js";
|
|
3
4
|
|
|
5
|
+
/** Domain icons shipped with the state: nothing yet, nothing found, not allowed. */
|
|
6
|
+
export type EmptyStateIconName = "inbox" | "search" | "lock";
|
|
7
|
+
|
|
8
|
+
const DOMAIN_ICONS = { inbox: Inbox, search: Search, lock: Lock } as const;
|
|
9
|
+
|
|
4
10
|
export interface EmptyStateProps {
|
|
5
|
-
/** Decorative icon
|
|
6
|
-
icon?: ReactNode;
|
|
11
|
+
/** Decorative icon (hidden from screen readers): a node, or `"inbox"`, `"search"`, `"lock"`. */
|
|
12
|
+
icon?: ReactNode | EmptyStateIconName;
|
|
7
13
|
title: ReactNode;
|
|
8
14
|
description?: ReactNode;
|
|
9
15
|
/** Primary call to action. */
|
|
10
16
|
action?: ReactNode;
|
|
11
17
|
/** `outlined` draws a dashed border around the state. */
|
|
12
18
|
variant?: "plain" | "outlined";
|
|
19
|
+
/**
|
|
20
|
+
* `md` (default) is the centered block state. `sm` is the inline state for a list, a table cell
|
|
21
|
+
* or a card body: one muted row (icon, title, description) with the action after it.
|
|
22
|
+
*/
|
|
23
|
+
size?: "sm" | "md";
|
|
13
24
|
className?: string;
|
|
14
25
|
}
|
|
15
26
|
|
|
27
|
+
function renderIcon(icon: EmptyStateProps["icon"], iconClass: string): ReactNode {
|
|
28
|
+
if (typeof icon === "string" && icon in DOMAIN_ICONS) {
|
|
29
|
+
const Domain = DOMAIN_ICONS[icon as EmptyStateIconName];
|
|
30
|
+
return <Domain className={iconClass} />;
|
|
31
|
+
}
|
|
32
|
+
return icon;
|
|
33
|
+
}
|
|
34
|
+
|
|
16
35
|
export function EmptyState({
|
|
17
36
|
icon,
|
|
18
37
|
title,
|
|
19
38
|
description,
|
|
20
39
|
action,
|
|
21
40
|
variant = "plain",
|
|
41
|
+
size = "md",
|
|
22
42
|
className,
|
|
23
43
|
}: EmptyStateProps) {
|
|
44
|
+
const small = size === "sm";
|
|
45
|
+
const iconNode = icon ? renderIcon(icon, small ? "size-4" : "size-8") : null;
|
|
24
46
|
return (
|
|
25
47
|
<div
|
|
48
|
+
data-size={size}
|
|
26
49
|
className={cn(
|
|
27
|
-
"@container/empty flex min-w-0
|
|
50
|
+
"@container/empty flex min-w-0",
|
|
51
|
+
small
|
|
52
|
+
? "flex-wrap items-center gap-x-2 gap-y-1 px-1 py-2 text-fs-130 text-ink-3"
|
|
53
|
+
: "flex-col items-center gap-2 px-4 py-8 text-center @min-[360px]/empty:px-6 @min-[360px]/empty:py-12",
|
|
28
54
|
variant === "outlined" && "rounded-card border border-line-control border-dashed",
|
|
29
55
|
className,
|
|
30
56
|
)}
|
|
31
57
|
>
|
|
32
|
-
{
|
|
33
|
-
<span aria-hidden="true" className="text-ink-3">
|
|
34
|
-
{
|
|
58
|
+
{iconNode ? (
|
|
59
|
+
<span aria-hidden="true" className="shrink-0 text-ink-3">
|
|
60
|
+
{iconNode}
|
|
35
61
|
</span>
|
|
36
62
|
) : null}
|
|
37
|
-
<p
|
|
63
|
+
<p
|
|
64
|
+
className={cn(
|
|
65
|
+
"max-w-full [overflow-wrap:anywhere]",
|
|
66
|
+
small ? "font-medium" : "font-semibold text-fs-140 text-ink",
|
|
67
|
+
)}
|
|
68
|
+
>
|
|
38
69
|
{title}
|
|
39
70
|
</p>
|
|
40
71
|
{description ? (
|
|
41
|
-
<p
|
|
72
|
+
<p
|
|
73
|
+
className={cn(
|
|
74
|
+
"[overflow-wrap:anywhere]",
|
|
75
|
+
small ? "min-w-0" : "max-w-[42ch] text-fs-130 text-ink-3",
|
|
76
|
+
)}
|
|
77
|
+
>
|
|
42
78
|
{description}
|
|
43
79
|
</p>
|
|
44
80
|
) : null}
|
|
45
81
|
{action ? (
|
|
46
|
-
<div
|
|
82
|
+
<div
|
|
83
|
+
className={cn(
|
|
84
|
+
"flex max-w-full flex-wrap gap-2",
|
|
85
|
+
small ? "ms-1 items-center" : "mt-2 justify-center",
|
|
86
|
+
)}
|
|
87
|
+
>
|
|
88
|
+
{action}
|
|
89
|
+
</div>
|
|
47
90
|
) : null}
|
|
48
91
|
</div>
|
|
49
92
|
);
|
|
@@ -59,7 +59,7 @@ export function ErrorState({
|
|
|
59
59
|
<p className="max-w-[42ch] text-fs-130 text-ink-3 [overflow-wrap:anywhere]">{detail}</p>
|
|
60
60
|
) : null}
|
|
61
61
|
{correlationId ? (
|
|
62
|
-
<p className="max-w-full text-fs-
|
|
62
|
+
<p className="max-w-full text-fs-120 text-ink-3 tabular-nums [overflow-wrap:anywhere]">
|
|
63
63
|
{correlationLabel ?? strings.correlationPrefix} {correlationId}
|
|
64
64
|
</p>
|
|
65
65
|
) : null}
|
|
@@ -80,7 +80,7 @@ export function Skeleton({
|
|
|
80
80
|
{items(count, (id, index) => (
|
|
81
81
|
<div
|
|
82
82
|
key={id}
|
|
83
|
-
className="grid min-h-
|
|
83
|
+
className="grid min-h-[calc(2.75rem+0.75rem*var(--touch))] grid-cols-[minmax(0,1fr)_auto] items-center gap-3 border-b-divider py-2.5"
|
|
84
84
|
>
|
|
85
85
|
<span className="flex flex-col gap-1.5">
|
|
86
86
|
<Bar className={index % 2 === 0 ? "w-2/5" : "w-1/2"} />
|
|
@@ -22,19 +22,15 @@ export const TEXT_SIZES: readonly string[] = [
|
|
|
22
22
|
"m-body",
|
|
23
23
|
"m-button",
|
|
24
24
|
"m-meta",
|
|
25
|
-
"fs-95",
|
|
26
25
|
"fs-100",
|
|
27
|
-
"fs-105",
|
|
28
26
|
"fs-110",
|
|
29
|
-
"fs-115",
|
|
30
27
|
"fs-120",
|
|
31
|
-
"fs-125",
|
|
32
28
|
"fs-130",
|
|
33
29
|
"fs-140",
|
|
34
30
|
"fs-150",
|
|
35
31
|
"fs-160",
|
|
36
|
-
"fs-
|
|
37
|
-
"fs-
|
|
32
|
+
"fs-200",
|
|
33
|
+
"fs-240",
|
|
38
34
|
"fs-440",
|
|
39
35
|
];
|
|
40
36
|
|
|
@@ -81,6 +77,7 @@ export const SPACINGS: readonly string[] = [
|
|
|
81
77
|
"top-height",
|
|
82
78
|
"control-height",
|
|
83
79
|
"control-height-sm",
|
|
80
|
+
"control-height-md",
|
|
84
81
|
"control-height-lg",
|
|
85
82
|
"input-height",
|
|
86
83
|
"agenda-hour",
|
|
@@ -91,6 +88,7 @@ export const SPACINGS: readonly string[] = [
|
|
|
91
88
|
"m-hour",
|
|
92
89
|
"control",
|
|
93
90
|
"control-sm",
|
|
91
|
+
"control-md",
|
|
94
92
|
"control-lg",
|
|
95
93
|
"input",
|
|
96
94
|
"control-x",
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export type ListNavigationKey = "ArrowUp" | "ArrowDown" | "Home" | "End";
|
|
2
|
+
|
|
3
|
+
const NAVIGATION_KEYS: readonly string[] = ["ArrowUp", "ArrowDown", "Home", "End"];
|
|
4
|
+
|
|
5
|
+
export function isListNavigationKey(key: string): key is ListNavigationKey {
|
|
6
|
+
return NAVIGATION_KEYS.includes(key);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The key a navigation key lands on, given the keys in DOM order and the current one.
|
|
11
|
+
* Returns `undefined` for other keys, an unknown current key past the ends, or when nothing moves.
|
|
12
|
+
*/
|
|
13
|
+
export function listNavigationTarget(
|
|
14
|
+
keys: readonly string[],
|
|
15
|
+
current: string | null | undefined,
|
|
16
|
+
key: string,
|
|
17
|
+
): string | undefined {
|
|
18
|
+
if (!isListNavigationKey(key) || keys.length === 0) return undefined;
|
|
19
|
+
const index = current == null ? -1 : keys.indexOf(current);
|
|
20
|
+
let next: number;
|
|
21
|
+
if (key === "Home") next = 0;
|
|
22
|
+
else if (key === "End") next = keys.length - 1;
|
|
23
|
+
else if (key === "ArrowDown") next = Math.min(keys.length - 1, index + 1);
|
|
24
|
+
else next = index < 0 ? 0 : Math.max(0, index - 1);
|
|
25
|
+
const target = keys[next];
|
|
26
|
+
return target === current ? undefined : target;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
const ROW_ATTR = "data-row-key";
|
|
30
|
+
|
|
31
|
+
function rowElements(container: Element): HTMLElement[] {
|
|
32
|
+
return Array.from(container.querySelectorAll<HTMLElement>(`[${ROW_ATTR}]`)).filter(
|
|
33
|
+
(el) => el.closest("[data-row-scope]") === container && el.getClientRects().length > 0,
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Moves focus between the `data-row-key` rows of a `data-row-scope` container for a navigation
|
|
39
|
+
* key. Returns the row focused, or `undefined` when the key is not handled.
|
|
40
|
+
*/
|
|
41
|
+
export function focusRowByKey(
|
|
42
|
+
container: Element,
|
|
43
|
+
current: Element,
|
|
44
|
+
key: string,
|
|
45
|
+
): HTMLElement | undefined {
|
|
46
|
+
const rows = rowElements(container);
|
|
47
|
+
const keys = rows.map((row) => row.getAttribute(ROW_ATTR) ?? "");
|
|
48
|
+
const from = current.getAttribute(ROW_ATTR);
|
|
49
|
+
const target = listNavigationTarget(keys, from, key);
|
|
50
|
+
if (target === undefined) return undefined;
|
|
51
|
+
const row = rows[keys.indexOf(target)];
|
|
52
|
+
row?.focus();
|
|
53
|
+
return row;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/** Focuses the visible row whose `data-row-key` equals `key` under `root`; returns it. */
|
|
57
|
+
export function focusRowWithKey(root: Element, key: string): HTMLElement | undefined {
|
|
58
|
+
const row = Array.from(root.querySelectorAll<HTMLElement>(`[${ROW_ATTR}]`)).find(
|
|
59
|
+
(el) => el.getAttribute(ROW_ATTR) === key && el.getClientRects().length > 0,
|
|
60
|
+
);
|
|
61
|
+
row?.focus();
|
|
62
|
+
return row;
|
|
63
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// Enter and exit motion of the overlays, as Tailwind classes written out in full so the consumer's
|
|
2
|
+
// Tailwind build (which scans this package's dist) generates them; no stylesheet to import.
|
|
3
|
+
//
|
|
4
|
+
// Enter uses `@starting-style` (`starting:`): the surface starts transparent and a little smaller and
|
|
5
|
+
// transitions in. Exit uses the primitives' `data-state="closed"`: `usePresence` keeps the node
|
|
6
|
+
// mounted until the transition ends. Durations and easing come from the theme's `--motion-duration`
|
|
7
|
+
// and `--motion-ease`, so a style preset (and a `[data-motion]` override) retunes every overlay; the
|
|
8
|
+
// exit runs at two thirds of the enter. Under `prefers-reduced-motion` nothing moves: the transition
|
|
9
|
+
// is dropped and `usePresence` unmounts at once.
|
|
10
|
+
|
|
11
|
+
/** Anchored surfaces (menus, popovers, listboxes, tooltips, hover cards): grow from the anchor side. */
|
|
12
|
+
export const POPPER_MOTION =
|
|
13
|
+
"origin-(--ui-popper-transform-origin) transition-[opacity,scale,translate] duration-(--motion-duration) ease-(--motion-ease) starting:scale-96 starting:opacity-0 starting:data-[side=bottom]:-translate-y-1 starting:data-[side=left]:translate-x-1 starting:data-[side=right]:-translate-x-1 starting:data-[side=top]:translate-y-1 data-[state=closed]:scale-96 data-[state=closed]:opacity-0 data-[state=closed]:duration-[calc(var(--motion-duration)*2/3)] data-[state=closed]:data-[side=bottom]:-translate-y-1 data-[state=closed]:data-[side=left]:translate-x-1 data-[state=closed]:data-[side=right]:-translate-x-1 data-[state=closed]:data-[side=top]:translate-y-1 motion-reduce:transition-none";
|
|
14
|
+
|
|
15
|
+
/** The scrim behind a dialog or drawer: a plain fade. */
|
|
16
|
+
export const OVERLAY_MOTION =
|
|
17
|
+
"transition-opacity duration-(--motion-duration) ease-(--motion-ease) starting:opacity-0 data-[state=closed]:opacity-0 data-[state=closed]:duration-[calc(var(--motion-duration)*2/3)] motion-reduce:transition-none";
|
|
18
|
+
|
|
19
|
+
/** A centred dialog: fades in while it settles from 97% to full size. */
|
|
20
|
+
export const DIALOG_MOTION =
|
|
21
|
+
"transition-[opacity,scale] duration-(--motion-duration) ease-(--motion-ease) starting:scale-97 starting:opacity-0 data-[state=closed]:scale-97 data-[state=closed]:opacity-0 data-[state=closed]:duration-[calc(var(--motion-duration)*2/3)] motion-reduce:transition-none";
|
|
22
|
+
|
|
23
|
+
/** A drawer on the inline end: slides in from that edge. */
|
|
24
|
+
export const DRAWER_MOTION =
|
|
25
|
+
"transition-[translate] duration-(--motion-duration) ease-(--motion-ease) starting:translate-x-full data-[state=closed]:translate-x-full data-[state=closed]:duration-[calc(var(--motion-duration)*2/3)] motion-reduce:transition-none";
|
|
26
|
+
|
|
27
|
+
/** Highlight of a menu item or listbox option: 120ms at the default 180ms motion duration. */
|
|
28
|
+
export const ITEM_MOTION =
|
|
29
|
+
"transition-colors duration-[calc(var(--motion-duration)*2/3)] motion-reduce:transition-none";
|
|
30
|
+
|
|
31
|
+
/** A bottom sheet: slides up from the bottom edge. */
|
|
32
|
+
export const SHEET_MOTION =
|
|
33
|
+
"transition-[translate] duration-(--motion-duration) ease-(--motion-ease) starting:translate-y-full data-[state=closed]:translate-y-full data-[state=closed]:duration-[calc(var(--motion-duration)*2/3)] motion-reduce:transition-none";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type RefObject, useEffect, useLayoutEffect, useState } from "react";
|
|
2
|
+
|
|
3
|
+
const useIsomorphicLayoutEffect = typeof window === "undefined" ? useEffect : useLayoutEffect;
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Measured content width (px) of `ref.current`, or `null` on the server and for the render before
|
|
7
|
+
* the first measurement. It is read before paint and follows a `ResizeObserver`.
|
|
8
|
+
*/
|
|
9
|
+
export function useContainerWidth(ref: RefObject<HTMLElement | null>): number | null {
|
|
10
|
+
const [width, setWidth] = useState<number | null>(null);
|
|
11
|
+
|
|
12
|
+
useIsomorphicLayoutEffect(() => {
|
|
13
|
+
const element = ref.current;
|
|
14
|
+
if (!element) return;
|
|
15
|
+
const measure = () => setWidth(element.getBoundingClientRect().width);
|
|
16
|
+
measure();
|
|
17
|
+
if (typeof ResizeObserver === "undefined") return;
|
|
18
|
+
const observer = new ResizeObserver(measure);
|
|
19
|
+
observer.observe(element);
|
|
20
|
+
return () => observer.disconnect();
|
|
21
|
+
}, [ref]);
|
|
22
|
+
|
|
23
|
+
return width;
|
|
24
|
+
}
|
package/styles/Theme.kt
CHANGED
|
@@ -217,6 +217,7 @@ object UiSizes {
|
|
|
217
217
|
val topHeight = 58.dp
|
|
218
218
|
val controlHeight = 36.dp
|
|
219
219
|
val controlHeightSm = 30.dp
|
|
220
|
+
val controlHeightMd = 38.dp
|
|
220
221
|
val controlHeightLg = 52.dp
|
|
221
222
|
val inputHeight = 38.dp
|
|
222
223
|
val agendaHour = 48.dp
|
|
@@ -230,42 +231,38 @@ object UiSizes {
|
|
|
230
231
|
const val UiFontFamilyName = "Figtree"
|
|
231
232
|
|
|
232
233
|
object UiTypography {
|
|
233
|
-
val kpiNumber = TextStyle(fontSize =
|
|
234
|
-
val pageTitle = TextStyle(fontSize =
|
|
234
|
+
val kpiNumber = TextStyle(fontSize = 24.sp, fontWeight = FontWeight(800), lineHeight = 28.8.sp, letterSpacing = (-0.025).em)
|
|
235
|
+
val pageTitle = TextStyle(fontSize = 22.sp, fontWeight = FontWeight(800), lineHeight = 27.5.sp, letterSpacing = (-0.02).em)
|
|
235
236
|
val dialogTitle = TextStyle(fontSize = 16.sp, fontWeight = FontWeight(750), lineHeight = 22.4.sp)
|
|
236
|
-
val cardTitle = TextStyle(fontSize =
|
|
237
|
-
val lede = TextStyle(fontSize = 14.
|
|
237
|
+
val cardTitle = TextStyle(fontSize = 15.sp, fontWeight = FontWeight(700), lineHeight = 21.sp, letterSpacing = (-0.01).em)
|
|
238
|
+
val lede = TextStyle(fontSize = 14.sp, fontWeight = FontWeight(400), lineHeight = 21.sp)
|
|
238
239
|
val body = TextStyle(fontSize = 14.sp, fontWeight = FontWeight(400), lineHeight = 21.sp)
|
|
239
|
-
val rowTitle = TextStyle(fontSize =
|
|
240
|
+
val rowTitle = TextStyle(fontSize = 14.sp, fontWeight = FontWeight(650), lineHeight = 21.sp)
|
|
240
241
|
val control = TextStyle(fontSize = 13.sp, fontWeight = FontWeight(650), lineHeight = 19.5.sp)
|
|
241
|
-
val meta = TextStyle(fontSize = 12.
|
|
242
|
+
val meta = TextStyle(fontSize = 12.sp, fontWeight = FontWeight(400), lineHeight = 18.sp)
|
|
242
243
|
val chipText = TextStyle(fontSize = 12.sp, fontWeight = FontWeight(650), lineHeight = 12.sp)
|
|
243
244
|
val overline = TextStyle(fontSize = 11.sp, fontWeight = FontWeight(700), lineHeight = 16.5.sp, letterSpacing = (0.08).em)
|
|
244
|
-
val clock = TextStyle(fontSize =
|
|
245
|
-
val data = TextStyle(fontSize =
|
|
245
|
+
val clock = TextStyle(fontSize = 16.sp, fontWeight = FontWeight(700), lineHeight = 16.sp)
|
|
246
|
+
val data = TextStyle(fontSize = 13.sp, fontWeight = FontWeight(600), lineHeight = 19.5.sp)
|
|
246
247
|
val count = TextStyle(fontSize = 12.sp, fontWeight = FontWeight(700), lineHeight = 14.4.sp)
|
|
247
|
-
val mTitle = TextStyle(fontSize =
|
|
248
|
-
val mCardTitle = TextStyle(fontSize =
|
|
249
|
-
val mRowTitle = TextStyle(fontSize = 15.
|
|
248
|
+
val mTitle = TextStyle(fontSize = 22.sp, fontWeight = FontWeight(800), lineHeight = 27.5.sp, letterSpacing = (-0.02).em)
|
|
249
|
+
val mCardTitle = TextStyle(fontSize = 20.sp, fontWeight = FontWeight(800), lineHeight = 24.sp, letterSpacing = (-0.015).em)
|
|
250
|
+
val mRowTitle = TextStyle(fontSize = 15.sp, fontWeight = FontWeight(700), lineHeight = 19.5.sp)
|
|
250
251
|
val mBody = TextStyle(fontSize = 15.sp, fontWeight = FontWeight(400), lineHeight = 21.75.sp)
|
|
251
|
-
val mButton = TextStyle(fontSize = 15.
|
|
252
|
+
val mButton = TextStyle(fontSize = 15.sp, fontWeight = FontWeight(700), lineHeight = 15.sp)
|
|
252
253
|
val mMeta = TextStyle(fontSize = 13.sp, fontWeight = FontWeight(400), lineHeight = 18.2.sp)
|
|
253
254
|
}
|
|
254
255
|
|
|
255
256
|
object UiFontSizes {
|
|
256
|
-
val fs95 = 9.5.sp
|
|
257
257
|
val fs100 = 10.sp
|
|
258
|
-
val fs105 = 10.5.sp
|
|
259
258
|
val fs110 = 11.sp
|
|
260
|
-
val fs115 = 11.5.sp
|
|
261
259
|
val fs120 = 12.sp
|
|
262
|
-
val fs125 = 12.5.sp
|
|
263
260
|
val fs130 = 13.sp
|
|
264
261
|
val fs140 = 14.sp
|
|
265
262
|
val fs150 = 15.sp
|
|
266
263
|
val fs160 = 16.sp
|
|
267
|
-
val
|
|
268
|
-
val
|
|
264
|
+
val fs200 = 20.sp
|
|
265
|
+
val fs240 = 24.sp
|
|
269
266
|
val fs440 = 44.sp
|
|
270
267
|
}
|
|
271
268
|
|
package/styles/tailwind.css
CHANGED
|
@@ -93,6 +93,7 @@
|
|
|
93
93
|
--spacing-top-height: var(--top-height);
|
|
94
94
|
--spacing-control-height: var(--control-height);
|
|
95
95
|
--spacing-control-height-sm: var(--control-height-sm);
|
|
96
|
+
--spacing-control-height-md: var(--control-height-md);
|
|
96
97
|
--spacing-control-height-lg: var(--control-height-lg);
|
|
97
98
|
--spacing-input-height: var(--input-height);
|
|
98
99
|
--spacing-agenda-hour: var(--agenda-hour);
|
|
@@ -101,34 +102,34 @@
|
|
|
101
102
|
--spacing-m-tray: var(--m-tray);
|
|
102
103
|
--spacing-m-chip: var(--m-chip);
|
|
103
104
|
--spacing-m-hour: var(--m-hour);
|
|
104
|
-
--text-kpi-number:
|
|
105
|
-
--text-kpi-number--line-height: 1.
|
|
105
|
+
--text-kpi-number: 24px;
|
|
106
|
+
--text-kpi-number--line-height: 1.2;
|
|
106
107
|
--text-kpi-number--font-weight: 800;
|
|
107
|
-
--text-kpi-number--letter-spacing: -0.
|
|
108
|
-
--text-page-title:
|
|
109
|
-
--text-page-title--line-height: 1.
|
|
108
|
+
--text-kpi-number--letter-spacing: -0.025em;
|
|
109
|
+
--text-page-title: 22px;
|
|
110
|
+
--text-page-title--line-height: 1.25;
|
|
110
111
|
--text-page-title--font-weight: 800;
|
|
111
|
-
--text-page-title--letter-spacing: -0.
|
|
112
|
+
--text-page-title--letter-spacing: -0.02em;
|
|
112
113
|
--text-dialog-title: 16px;
|
|
113
114
|
--text-dialog-title--line-height: 1.4;
|
|
114
115
|
--text-dialog-title--font-weight: 750;
|
|
115
|
-
--text-card-title:
|
|
116
|
-
--text-card-title--line-height: 1.
|
|
116
|
+
--text-card-title: 15px;
|
|
117
|
+
--text-card-title--line-height: 1.4;
|
|
117
118
|
--text-card-title--font-weight: 700;
|
|
118
119
|
--text-card-title--letter-spacing: -0.01em;
|
|
119
|
-
--text-lede:
|
|
120
|
+
--text-lede: 14px;
|
|
120
121
|
--text-lede--line-height: 1.5;
|
|
121
122
|
--text-lede--font-weight: 400;
|
|
122
123
|
--text-body: 14px;
|
|
123
124
|
--text-body--line-height: 1.5;
|
|
124
125
|
--text-body--font-weight: 400;
|
|
125
|
-
--text-row-title:
|
|
126
|
+
--text-row-title: 14px;
|
|
126
127
|
--text-row-title--line-height: 1.5;
|
|
127
128
|
--text-row-title--font-weight: 650;
|
|
128
129
|
--text-control: 13px;
|
|
129
130
|
--text-control--line-height: 1.5;
|
|
130
131
|
--text-control--font-weight: 650;
|
|
131
|
-
--text-meta:
|
|
132
|
+
--text-meta: 12px;
|
|
132
133
|
--text-meta--line-height: 1.5;
|
|
133
134
|
--text-meta--font-weight: 400;
|
|
134
135
|
--text-chip-text: 12px;
|
|
@@ -138,50 +139,49 @@
|
|
|
138
139
|
--text-overline--line-height: 1.5;
|
|
139
140
|
--text-overline--font-weight: 700;
|
|
140
141
|
--text-overline--letter-spacing: 0.08em;
|
|
141
|
-
--text-clock:
|
|
142
|
+
--text-clock: 16px;
|
|
142
143
|
--text-clock--line-height: 1;
|
|
143
144
|
--text-clock--font-weight: 700;
|
|
144
|
-
--text-data:
|
|
145
|
-
--text-data--line-height: 1.
|
|
145
|
+
--text-data: 13px;
|
|
146
|
+
--text-data--line-height: 1.5;
|
|
146
147
|
--text-data--font-weight: 600;
|
|
147
148
|
--text-count: 12px;
|
|
148
149
|
--text-count--line-height: 1.2;
|
|
149
150
|
--text-count--font-weight: 700;
|
|
150
|
-
--text-m-title:
|
|
151
|
-
--text-m-title--line-height:
|
|
151
|
+
--text-m-title: 22px;
|
|
152
|
+
--text-m-title--line-height: 1.25;
|
|
152
153
|
--text-m-title--font-weight: 800;
|
|
153
|
-
--text-m-title--letter-spacing: -0.
|
|
154
|
-
--text-m-card-title:
|
|
155
|
-
--text-m-card-title--line-height: 1.
|
|
154
|
+
--text-m-title--letter-spacing: -0.02em;
|
|
155
|
+
--text-m-card-title: 20px;
|
|
156
|
+
--text-m-card-title--line-height: 1.2;
|
|
156
157
|
--text-m-card-title--font-weight: 800;
|
|
157
|
-
--text-m-card-title--letter-spacing: -0.
|
|
158
|
-
--text-m-row-title:
|
|
158
|
+
--text-m-card-title--letter-spacing: -0.015em;
|
|
159
|
+
--text-m-row-title: 15px;
|
|
159
160
|
--text-m-row-title--line-height: 1.3;
|
|
160
161
|
--text-m-row-title--font-weight: 700;
|
|
161
162
|
--text-m-body: 15px;
|
|
162
163
|
--text-m-body--line-height: 1.45;
|
|
163
164
|
--text-m-body--font-weight: 400;
|
|
164
|
-
--text-m-button:
|
|
165
|
+
--text-m-button: 15px;
|
|
165
166
|
--text-m-button--line-height: 1;
|
|
166
167
|
--text-m-button--font-weight: 700;
|
|
167
168
|
--text-m-meta: 13px;
|
|
168
169
|
--text-m-meta--line-height: 1.4;
|
|
169
170
|
--text-m-meta--font-weight: 400;
|
|
170
171
|
/* Size-only scale (px x 10, no line-height or weight) for dense UI text that must not inherit a role's weight. */
|
|
171
|
-
--text-fs-95: 9.5px;
|
|
172
172
|
--text-fs-100: 10px;
|
|
173
|
-
--text-fs-105: 10.5px;
|
|
174
173
|
--text-fs-110: 11px;
|
|
175
|
-
--text-fs-115: 11.5px;
|
|
176
174
|
--text-fs-120: 12px;
|
|
177
|
-
--text-fs-125: 12.5px;
|
|
178
175
|
--text-fs-130: 13px;
|
|
179
176
|
--text-fs-140: 14px;
|
|
180
177
|
--text-fs-150: 15px;
|
|
181
178
|
--text-fs-160: 16px;
|
|
182
|
-
--text-fs-
|
|
183
|
-
--text-fs-
|
|
179
|
+
--text-fs-200: 20px;
|
|
180
|
+
--text-fs-240: 24px;
|
|
184
181
|
--text-fs-440: 44px;
|
|
182
|
+
--container-page-m: 720px;
|
|
183
|
+
--container-page-w: 1280px;
|
|
184
|
+
--container-page-xw: 1600px;
|
|
185
185
|
--color-surface-card: var(--surface-card);
|
|
186
186
|
--color-surface-control: var(--surface-control);
|
|
187
187
|
--color-surface-overlay: var(--surface-overlay);
|
|
@@ -193,6 +193,7 @@
|
|
|
193
193
|
--ease-style: var(--motion-ease);
|
|
194
194
|
--spacing-control: var(--control-height);
|
|
195
195
|
--spacing-control-sm: var(--control-height-sm);
|
|
196
|
+
--spacing-control-md: var(--control-height-md);
|
|
196
197
|
--spacing-control-lg: var(--control-height-lg);
|
|
197
198
|
--spacing-input: var(--input-height);
|
|
198
199
|
--spacing-control-x: var(--pad-control-x);
|
package/styles/theme.css
CHANGED
|
@@ -93,6 +93,7 @@
|
|
|
93
93
|
--spacing-top-height: var(--top-height);
|
|
94
94
|
--spacing-control-height: var(--control-height);
|
|
95
95
|
--spacing-control-height-sm: var(--control-height-sm);
|
|
96
|
+
--spacing-control-height-md: var(--control-height-md);
|
|
96
97
|
--spacing-control-height-lg: var(--control-height-lg);
|
|
97
98
|
--spacing-input-height: var(--input-height);
|
|
98
99
|
--spacing-agenda-hour: var(--agenda-hour);
|
|
@@ -101,34 +102,34 @@
|
|
|
101
102
|
--spacing-m-tray: var(--m-tray);
|
|
102
103
|
--spacing-m-chip: var(--m-chip);
|
|
103
104
|
--spacing-m-hour: var(--m-hour);
|
|
104
|
-
--text-kpi-number:
|
|
105
|
-
--text-kpi-number--line-height: 1.
|
|
105
|
+
--text-kpi-number: 24px;
|
|
106
|
+
--text-kpi-number--line-height: 1.2;
|
|
106
107
|
--text-kpi-number--font-weight: 800;
|
|
107
|
-
--text-kpi-number--letter-spacing: -0.
|
|
108
|
-
--text-page-title:
|
|
109
|
-
--text-page-title--line-height: 1.
|
|
108
|
+
--text-kpi-number--letter-spacing: -0.025em;
|
|
109
|
+
--text-page-title: 22px;
|
|
110
|
+
--text-page-title--line-height: 1.25;
|
|
110
111
|
--text-page-title--font-weight: 800;
|
|
111
|
-
--text-page-title--letter-spacing: -0.
|
|
112
|
+
--text-page-title--letter-spacing: -0.02em;
|
|
112
113
|
--text-dialog-title: 16px;
|
|
113
114
|
--text-dialog-title--line-height: 1.4;
|
|
114
115
|
--text-dialog-title--font-weight: 750;
|
|
115
|
-
--text-card-title:
|
|
116
|
-
--text-card-title--line-height: 1.
|
|
116
|
+
--text-card-title: 15px;
|
|
117
|
+
--text-card-title--line-height: 1.4;
|
|
117
118
|
--text-card-title--font-weight: 700;
|
|
118
119
|
--text-card-title--letter-spacing: -0.01em;
|
|
119
|
-
--text-lede:
|
|
120
|
+
--text-lede: 14px;
|
|
120
121
|
--text-lede--line-height: 1.5;
|
|
121
122
|
--text-lede--font-weight: 400;
|
|
122
123
|
--text-body: 14px;
|
|
123
124
|
--text-body--line-height: 1.5;
|
|
124
125
|
--text-body--font-weight: 400;
|
|
125
|
-
--text-row-title:
|
|
126
|
+
--text-row-title: 14px;
|
|
126
127
|
--text-row-title--line-height: 1.5;
|
|
127
128
|
--text-row-title--font-weight: 650;
|
|
128
129
|
--text-control: 13px;
|
|
129
130
|
--text-control--line-height: 1.5;
|
|
130
131
|
--text-control--font-weight: 650;
|
|
131
|
-
--text-meta:
|
|
132
|
+
--text-meta: 12px;
|
|
132
133
|
--text-meta--line-height: 1.5;
|
|
133
134
|
--text-meta--font-weight: 400;
|
|
134
135
|
--text-chip-text: 12px;
|
|
@@ -138,50 +139,49 @@
|
|
|
138
139
|
--text-overline--line-height: 1.5;
|
|
139
140
|
--text-overline--font-weight: 700;
|
|
140
141
|
--text-overline--letter-spacing: 0.08em;
|
|
141
|
-
--text-clock:
|
|
142
|
+
--text-clock: 16px;
|
|
142
143
|
--text-clock--line-height: 1;
|
|
143
144
|
--text-clock--font-weight: 700;
|
|
144
|
-
--text-data:
|
|
145
|
-
--text-data--line-height: 1.
|
|
145
|
+
--text-data: 13px;
|
|
146
|
+
--text-data--line-height: 1.5;
|
|
146
147
|
--text-data--font-weight: 600;
|
|
147
148
|
--text-count: 12px;
|
|
148
149
|
--text-count--line-height: 1.2;
|
|
149
150
|
--text-count--font-weight: 700;
|
|
150
|
-
--text-m-title:
|
|
151
|
-
--text-m-title--line-height:
|
|
151
|
+
--text-m-title: 22px;
|
|
152
|
+
--text-m-title--line-height: 1.25;
|
|
152
153
|
--text-m-title--font-weight: 800;
|
|
153
|
-
--text-m-title--letter-spacing: -0.
|
|
154
|
-
--text-m-card-title:
|
|
155
|
-
--text-m-card-title--line-height: 1.
|
|
154
|
+
--text-m-title--letter-spacing: -0.02em;
|
|
155
|
+
--text-m-card-title: 20px;
|
|
156
|
+
--text-m-card-title--line-height: 1.2;
|
|
156
157
|
--text-m-card-title--font-weight: 800;
|
|
157
|
-
--text-m-card-title--letter-spacing: -0.
|
|
158
|
-
--text-m-row-title:
|
|
158
|
+
--text-m-card-title--letter-spacing: -0.015em;
|
|
159
|
+
--text-m-row-title: 15px;
|
|
159
160
|
--text-m-row-title--line-height: 1.3;
|
|
160
161
|
--text-m-row-title--font-weight: 700;
|
|
161
162
|
--text-m-body: 15px;
|
|
162
163
|
--text-m-body--line-height: 1.45;
|
|
163
164
|
--text-m-body--font-weight: 400;
|
|
164
|
-
--text-m-button:
|
|
165
|
+
--text-m-button: 15px;
|
|
165
166
|
--text-m-button--line-height: 1;
|
|
166
167
|
--text-m-button--font-weight: 700;
|
|
167
168
|
--text-m-meta: 13px;
|
|
168
169
|
--text-m-meta--line-height: 1.4;
|
|
169
170
|
--text-m-meta--font-weight: 400;
|
|
170
171
|
/* Size-only scale (px x 10, no line-height or weight) for dense UI text that must not inherit a role's weight. */
|
|
171
|
-
--text-fs-95: 9.5px;
|
|
172
172
|
--text-fs-100: 10px;
|
|
173
|
-
--text-fs-105: 10.5px;
|
|
174
173
|
--text-fs-110: 11px;
|
|
175
|
-
--text-fs-115: 11.5px;
|
|
176
174
|
--text-fs-120: 12px;
|
|
177
|
-
--text-fs-125: 12.5px;
|
|
178
175
|
--text-fs-130: 13px;
|
|
179
176
|
--text-fs-140: 14px;
|
|
180
177
|
--text-fs-150: 15px;
|
|
181
178
|
--text-fs-160: 16px;
|
|
182
|
-
--text-fs-
|
|
183
|
-
--text-fs-
|
|
179
|
+
--text-fs-200: 20px;
|
|
180
|
+
--text-fs-240: 24px;
|
|
184
181
|
--text-fs-440: 44px;
|
|
182
|
+
--container-page-m: 720px;
|
|
183
|
+
--container-page-w: 1280px;
|
|
184
|
+
--container-page-xw: 1600px;
|
|
185
185
|
--color-surface-card: var(--surface-card);
|
|
186
186
|
--color-surface-control: var(--surface-control);
|
|
187
187
|
--color-surface-overlay: var(--surface-overlay);
|
|
@@ -193,6 +193,7 @@
|
|
|
193
193
|
--ease-style: var(--motion-ease);
|
|
194
194
|
--spacing-control: var(--control-height);
|
|
195
195
|
--spacing-control-sm: var(--control-height-sm);
|
|
196
|
+
--spacing-control-md: var(--control-height-md);
|
|
196
197
|
--spacing-control-lg: var(--control-height-lg);
|
|
197
198
|
--spacing-input: var(--input-height);
|
|
198
199
|
--spacing-control-x: var(--pad-control-x);
|