@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
|
@@ -26,7 +26,7 @@ function NativeSelect({
|
|
|
26
26
|
"aria-invalid": invalid || void 0,
|
|
27
27
|
className: cn(
|
|
28
28
|
"w-full min-w-0 appearance-none rounded-input border-control bg-surface-control py-0 pl-3 text-control text-ink focus:border-transparent focus:outline-2 focus:outline-accent-ink focus:-outline-offset-1 disabled:cursor-not-allowed disabled:opacity-50 aria-[invalid=true]:border-danger",
|
|
29
|
-
size === "sm" ? "h-control-sm pr-7" : "h-
|
|
29
|
+
size === "sm" ? "h-control-sm pr-7" : "h-control-md pr-8",
|
|
30
30
|
classNames?.select,
|
|
31
31
|
className
|
|
32
32
|
),
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./password-input.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./password-input.js";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type InputProps } from "../input/input.js";
|
|
2
|
+
export interface PasswordInputProps extends Omit<InputProps, "type" | "end"> {
|
|
3
|
+
/** Whether the password is shown as text. Controlled; omit it for an uncontrolled field. */
|
|
4
|
+
revealed?: boolean;
|
|
5
|
+
/** Initial visibility of an uncontrolled field. Defaults to hidden. */
|
|
6
|
+
defaultRevealed?: boolean;
|
|
7
|
+
onRevealedChange?: (revealed: boolean) => void;
|
|
8
|
+
/** Accessible name of the reveal toggle; defaults to the UI string `showPassword`. */
|
|
9
|
+
revealLabel?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Password field with a reveal toggle at its end. The toggle keeps one name and reports the
|
|
13
|
+
* state through `aria-pressed`, so a screen reader hears "Show password, pressed" rather than a
|
|
14
|
+
* label that flips. Toggling never moves focus out of the field's row and never submits a form.
|
|
15
|
+
*/
|
|
16
|
+
export declare function PasswordInput({ revealed: revealedProp, defaultRevealed, onRevealedChange, revealLabel, autoComplete, ...props }: PasswordInputProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { IconButton } from "../../atoms/icon-button/icon-button.js";
|
|
4
|
+
import { useUiStrings } from "../../i18n/index.js";
|
|
5
|
+
import { Eye, EyeOff } from "../../icons/index.js";
|
|
6
|
+
import { useControllableState } from "../../utils/use-controllable-state.js";
|
|
7
|
+
import { Input } from "../input/input.js";
|
|
8
|
+
function PasswordInput({
|
|
9
|
+
revealed: revealedProp,
|
|
10
|
+
defaultRevealed = false,
|
|
11
|
+
onRevealedChange,
|
|
12
|
+
revealLabel,
|
|
13
|
+
autoComplete = "current-password",
|
|
14
|
+
...props
|
|
15
|
+
}) {
|
|
16
|
+
const strings = useUiStrings();
|
|
17
|
+
const [revealed, setRevealed] = useControllableState({
|
|
18
|
+
prop: revealedProp,
|
|
19
|
+
defaultProp: defaultRevealed,
|
|
20
|
+
onChange: onRevealedChange
|
|
21
|
+
});
|
|
22
|
+
return /* @__PURE__ */ jsx(
|
|
23
|
+
Input,
|
|
24
|
+
{
|
|
25
|
+
...props,
|
|
26
|
+
type: revealed ? "text" : "password",
|
|
27
|
+
autoComplete,
|
|
28
|
+
end: /* @__PURE__ */ jsx(
|
|
29
|
+
IconButton,
|
|
30
|
+
{
|
|
31
|
+
label: revealLabel ?? strings.showPassword,
|
|
32
|
+
"aria-pressed": revealed,
|
|
33
|
+
variant: "ghost",
|
|
34
|
+
size: "sm",
|
|
35
|
+
className: "-mr-1.5",
|
|
36
|
+
onClick: () => setRevealed((current) => !current),
|
|
37
|
+
children: revealed ? /* @__PURE__ */ jsx(EyeOff, {}) : /* @__PURE__ */ jsx(Eye, {})
|
|
38
|
+
}
|
|
39
|
+
)
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
export {
|
|
44
|
+
PasswordInput
|
|
45
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Select, type SelectProps } from "./select.js";
|
|
1
|
+
export { Select, type SelectProps, type SelectSize } from "./select.js";
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import type { ComponentPropsWithoutRef } from "react";
|
|
2
|
-
export
|
|
2
|
+
export type SelectSize = "sm" | "md";
|
|
3
|
+
export interface SelectProps extends Omit<ComponentPropsWithoutRef<"select">, "size"> {
|
|
4
|
+
/** `sm` is 30px and `md` (default) 38px, the heights of `Button` and `Input` of the same size. */
|
|
5
|
+
size?: SelectSize;
|
|
3
6
|
}
|
|
4
7
|
/**
|
|
5
8
|
* Wraps the native `<select>` (keeps the system picker on mobile) and draws
|
|
6
9
|
* the chevron with an icon.
|
|
7
10
|
*/
|
|
8
|
-
export declare function Select({ className, children, ...props }: SelectProps): import("react").JSX.Element;
|
|
11
|
+
export declare function Select({ size, className, children, ...props }: SelectProps): import("react").JSX.Element;
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { ChevronDown } from "../../icons/index.js";
|
|
3
3
|
import { cn } from "../../utils/cn.js";
|
|
4
|
-
|
|
4
|
+
const selectSizeClasses = {
|
|
5
|
+
sm: "h-control-sm pl-2.5",
|
|
6
|
+
md: "h-control-md pl-3"
|
|
7
|
+
};
|
|
8
|
+
function Select({ size = "md", className, children, ...props }) {
|
|
5
9
|
return /* @__PURE__ */ jsxs("span", { className: "relative flex w-full items-center", children: [
|
|
6
10
|
/* @__PURE__ */ jsx(
|
|
7
11
|
"select",
|
|
8
12
|
{
|
|
9
13
|
className: cn(
|
|
10
|
-
"
|
|
14
|
+
"w-full min-w-0 appearance-none rounded-input border-control bg-surface-control py-0 pr-7 text-control text-ink focus:border-transparent focus:outline-2 focus:outline-accent-ink focus:-outline-offset-1 aria-[invalid=true]:border-danger",
|
|
15
|
+
selectSizeClasses[size],
|
|
11
16
|
className
|
|
12
17
|
),
|
|
13
18
|
...props,
|
|
@@ -162,7 +162,7 @@ function SelectMenu({
|
|
|
162
162
|
},
|
|
163
163
|
className: cn(
|
|
164
164
|
"flex w-full min-w-0 items-center justify-between gap-2 rounded-input border-control bg-surface-control py-0 pr-2.5 pl-3 text-left text-control text-ink focus:border-transparent focus:outline-2 focus:outline-accent-ink focus:-outline-offset-1 disabled:cursor-not-allowed disabled:opacity-50 aria-[invalid=true]:border-danger",
|
|
165
|
-
size === "sm" ? "h-control-sm" : "h-
|
|
165
|
+
size === "sm" ? "h-control-sm" : "h-control-md min-h-(--touch-target)",
|
|
166
166
|
classNames?.trigger,
|
|
167
167
|
className
|
|
168
168
|
),
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { type ComponentPropsWithoutRef } from "react";
|
|
2
|
-
export interface TimeInputProps extends Omit<ComponentPropsWithoutRef<"input">, "type" | "value" | "defaultValue" | "onChange" | "step" | "inputMode" | "maxLength"> {
|
|
2
|
+
export interface TimeInputProps extends Omit<ComponentPropsWithoutRef<"input">, "type" | "value" | "defaultValue" | "onChange" | "step" | "inputMode" | "maxLength" | "size"> {
|
|
3
|
+
/** `sm` is 30px and `md` (default) 38px, the heights of `Button` and `Input` of the same size. */
|
|
4
|
+
size?: "sm" | "md";
|
|
3
5
|
/** 24h "HH:MM" (controlled). */
|
|
4
6
|
value?: string;
|
|
5
7
|
defaultValue?: string;
|
|
@@ -12,4 +14,4 @@ export interface TimeInputProps extends Omit<ComponentPropsWithoutRef<"input">,
|
|
|
12
14
|
* 24h time field. A masked text input, so it renders "15:30" whatever the browser
|
|
13
15
|
* locale is. ArrowUp / ArrowDown change the segment under the caret (minutes move by `step`).
|
|
14
16
|
*/
|
|
15
|
-
export declare function TimeInput({ value, defaultValue, onValueChange, step, className, onBlur, onKeyDown, placeholder, ...props }: TimeInputProps): import("react").JSX.Element;
|
|
17
|
+
export declare function TimeInput({ value, defaultValue, onValueChange, step, size, className, onBlur, onKeyDown, placeholder, ...props }: TimeInputProps): import("react").JSX.Element;
|
|
@@ -22,6 +22,7 @@ function TimeInput({
|
|
|
22
22
|
defaultValue = "",
|
|
23
23
|
onValueChange,
|
|
24
24
|
step = 5,
|
|
25
|
+
size = "md",
|
|
25
26
|
className,
|
|
26
27
|
onBlur,
|
|
27
28
|
onKeyDown,
|
|
@@ -71,7 +72,8 @@ function TimeInput({
|
|
|
71
72
|
maxLength: 5,
|
|
72
73
|
placeholder,
|
|
73
74
|
className: cn(
|
|
74
|
-
|
|
75
|
+
size === "sm" ? "h-control-sm" : "h-control-md",
|
|
76
|
+
"w-full min-w-0 rounded-input border-control bg-surface-control px-3 font-mono text-control text-ink tabular-nums placeholder:text-ink-3 focus:border-transparent focus:outline-2 focus:outline-accent-ink focus:-outline-offset-1 aria-[invalid=true]:border-danger",
|
|
75
77
|
className
|
|
76
78
|
),
|
|
77
79
|
...props,
|
package/dist/i18n/strings.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ export interface UiStrings {
|
|
|
3
3
|
close: string;
|
|
4
4
|
loading: string;
|
|
5
5
|
optional: string;
|
|
6
|
+
save: string;
|
|
7
|
+
unsavedChanges: string;
|
|
6
8
|
cancel: string;
|
|
7
9
|
confirm: string;
|
|
8
10
|
processing: string;
|
|
@@ -56,6 +58,76 @@ export interface UiStrings {
|
|
|
56
58
|
selectAll: string;
|
|
57
59
|
/** Name of the overflow menu trigger of a `TableActionsCell`. */
|
|
58
60
|
rowActions: string;
|
|
61
|
+
/** Default body of a `TableEmpty` row. */
|
|
62
|
+
tableEmpty: string;
|
|
63
|
+
/** Label of the `TableColumnsMenu` trigger and its group. */
|
|
64
|
+
columns: string;
|
|
65
|
+
/** Name of the `Pagination` landmark. */
|
|
66
|
+
pagination: string;
|
|
67
|
+
/** Label of the page size picker of a `Pagination`. */
|
|
68
|
+
rowsPerPage: string;
|
|
69
|
+
/** Range text of a `Pagination`; `{first}`, `{last}` and `{total}` are replaced. */
|
|
70
|
+
pageRange: string;
|
|
71
|
+
firstPage: string;
|
|
72
|
+
previousPage: string;
|
|
73
|
+
nextPage: string;
|
|
74
|
+
lastPage: string;
|
|
75
|
+
/** Range text of a `Pagination variant="pages"`; `{first}`, `{last}` and `{total}` are replaced. */
|
|
76
|
+
showingRange: string;
|
|
77
|
+
/** Range text of a `CursorPagination` (no known total); `{first}` and `{last}` are replaced. */
|
|
78
|
+
showingRangeOpen: string;
|
|
79
|
+
/** Visible label of the previous-page button of `Pagination variant="pages"` and `CursorPagination`. */
|
|
80
|
+
previous: string;
|
|
81
|
+
/** Name of a page number button; `{page}` is replaced. */
|
|
82
|
+
pageNumber: string;
|
|
83
|
+
/** Name of the search field of a `FilterBar`. */
|
|
84
|
+
search: string;
|
|
85
|
+
/** Label of the `FilterBar` button that opens every filter under a narrow container. */
|
|
86
|
+
filters: string;
|
|
87
|
+
/** Label of the `FilterBar` button that opens the extra filters. */
|
|
88
|
+
moreFilters: string;
|
|
89
|
+
/** Clears every active filter of a `FilterBar`. */
|
|
90
|
+
clearAllFilters: string;
|
|
91
|
+
/** Name of the remove button of an active filter chip; `{filter}` is replaced by its label. */
|
|
92
|
+
removeFilter: string;
|
|
93
|
+
/** Name of the list of active filter chips of a `FilterBar`. */
|
|
94
|
+
activeFilters: string;
|
|
95
|
+
/** Result count of a `FilterBar` for exactly one result. */
|
|
96
|
+
resultOne: string;
|
|
97
|
+
/** Result count of a `FilterBar`; `{count}` is replaced. */
|
|
98
|
+
resultMany: string;
|
|
99
|
+
/** Name of the `PasswordInput` toggle; its pressed state says whether the password is visible. */
|
|
100
|
+
showPassword: string;
|
|
101
|
+
/** Default title of a `LoginForm`. */
|
|
102
|
+
signIn: string;
|
|
103
|
+
/** Label of the portal picker of a `LoginForm`. */
|
|
104
|
+
signInAs: string;
|
|
105
|
+
/** Divider between the portal picker and the credential fields. */
|
|
106
|
+
withYourAccount: string;
|
|
107
|
+
/** Default label and placeholder of the `LoginForm` identifier field. */
|
|
108
|
+
identifier: string;
|
|
109
|
+
/** Default label and placeholder of the `LoginForm` password field. */
|
|
110
|
+
password: string;
|
|
111
|
+
/** Default `LoginForm` link to recover a password. */
|
|
112
|
+
forgotPassword: string;
|
|
113
|
+
/** Submit button label of a `LoginForm`. */
|
|
114
|
+
signInAction: string;
|
|
115
|
+
/** Inline error of a `LoginForm` submitted without an identifier. */
|
|
116
|
+
enterIdentifier: string;
|
|
117
|
+
/** Inline error of a `LoginForm` submitted without a password. */
|
|
118
|
+
enterPassword: string;
|
|
119
|
+
/** Label of the remember-me checkbox of `LoginForm.Options`. */
|
|
120
|
+
rememberMe: string;
|
|
121
|
+
/** Default help link of `LoginForm.Options`. */
|
|
122
|
+
needHelp: string;
|
|
123
|
+
/** Default label of `LoginForm.Providers`. */
|
|
124
|
+
orLogInWith: string;
|
|
125
|
+
/** Message shown by a `LoginForm` when sign-in fails and the app gives none. */
|
|
126
|
+
signInFailed: string;
|
|
127
|
+
/** Default headline of the `statement` look of `AuthIllustration`. */
|
|
128
|
+
welcomeBack: string;
|
|
129
|
+
/** Line the `statement` look of `AuthIllustration` shows once sign-in succeeds. */
|
|
130
|
+
signedIn: string;
|
|
59
131
|
}
|
|
60
132
|
export type UiLocale = "en" | "es";
|
|
61
133
|
export declare const uiStrings: {
|
|
@@ -64,6 +136,8 @@ export declare const uiStrings: {
|
|
|
64
136
|
readonly close: "Close";
|
|
65
137
|
readonly loading: "Loading";
|
|
66
138
|
readonly optional: "optional";
|
|
139
|
+
readonly save: "Save";
|
|
140
|
+
readonly unsavedChanges: "Unsaved changes";
|
|
67
141
|
readonly cancel: "Cancel";
|
|
68
142
|
readonly confirm: "Confirm";
|
|
69
143
|
readonly processing: "Processing…";
|
|
@@ -106,12 +180,51 @@ export declare const uiStrings: {
|
|
|
106
180
|
readonly selectRow: "Select {row}";
|
|
107
181
|
readonly selectAll: "Select all rows";
|
|
108
182
|
readonly rowActions: "Row actions";
|
|
183
|
+
readonly tableEmpty: "No rows to show";
|
|
184
|
+
readonly columns: "Columns";
|
|
185
|
+
readonly pagination: "Pagination";
|
|
186
|
+
readonly rowsPerPage: "Rows per page";
|
|
187
|
+
readonly pageRange: "{first}–{last} of {total}";
|
|
188
|
+
readonly firstPage: "First page";
|
|
189
|
+
readonly previousPage: "Previous page";
|
|
190
|
+
readonly nextPage: "Next page";
|
|
191
|
+
readonly lastPage: "Last page";
|
|
192
|
+
readonly showingRange: "Showing {first}–{last} of {total}";
|
|
193
|
+
readonly showingRangeOpen: "Showing {first}–{last}";
|
|
194
|
+
readonly previous: "Previous";
|
|
195
|
+
readonly pageNumber: "Page {page}";
|
|
196
|
+
readonly search: "Search";
|
|
197
|
+
readonly filters: "Filters";
|
|
198
|
+
readonly moreFilters: "More filters";
|
|
199
|
+
readonly clearAllFilters: "Clear all filters";
|
|
200
|
+
readonly removeFilter: "Remove filter {filter}";
|
|
201
|
+
readonly activeFilters: "Active filters";
|
|
202
|
+
readonly resultOne: "1 result";
|
|
203
|
+
readonly resultMany: "{count} results";
|
|
204
|
+
readonly showPassword: "Show password";
|
|
205
|
+
readonly signIn: "Sign in";
|
|
206
|
+
readonly signInAs: "Sign in as";
|
|
207
|
+
readonly withYourAccount: "with your account";
|
|
208
|
+
readonly identifier: "Email or ID";
|
|
209
|
+
readonly password: "Password";
|
|
210
|
+
readonly forgotPassword: "Forgot your password?";
|
|
211
|
+
readonly signInAction: "Sign in";
|
|
212
|
+
readonly enterIdentifier: "Enter your email or ID.";
|
|
213
|
+
readonly enterPassword: "Enter your password.";
|
|
214
|
+
readonly rememberMe: "Remember me";
|
|
215
|
+
readonly needHelp: "Need help?";
|
|
216
|
+
readonly orLogInWith: "Or log in with";
|
|
217
|
+
readonly signInFailed: "We could not sign you in. Check your details and try again.";
|
|
218
|
+
readonly welcomeBack: "Good to see you again.";
|
|
219
|
+
readonly signedIn: "You're in.";
|
|
109
220
|
};
|
|
110
221
|
readonly es: {
|
|
111
222
|
readonly retry: "Reintentar";
|
|
112
223
|
readonly close: "Cerrar";
|
|
113
224
|
readonly loading: "Cargando";
|
|
114
225
|
readonly optional: "opcional";
|
|
226
|
+
readonly save: "Guardar";
|
|
227
|
+
readonly unsavedChanges: "Cambios sin guardar";
|
|
115
228
|
readonly cancel: "Cancelar";
|
|
116
229
|
readonly confirm: "Confirmar";
|
|
117
230
|
readonly processing: "Procesando…";
|
|
@@ -154,5 +267,42 @@ export declare const uiStrings: {
|
|
|
154
267
|
readonly selectRow: "Seleccionar {row}";
|
|
155
268
|
readonly selectAll: "Seleccionar todas las filas";
|
|
156
269
|
readonly rowActions: "Acciones de la fila";
|
|
270
|
+
readonly tableEmpty: "No hay filas para mostrar";
|
|
271
|
+
readonly columns: "Columnas";
|
|
272
|
+
readonly pagination: "Paginación";
|
|
273
|
+
readonly rowsPerPage: "Filas por página";
|
|
274
|
+
readonly pageRange: "{first}–{last} de {total}";
|
|
275
|
+
readonly firstPage: "Primera página";
|
|
276
|
+
readonly previousPage: "Página anterior";
|
|
277
|
+
readonly nextPage: "Página siguiente";
|
|
278
|
+
readonly lastPage: "Última página";
|
|
279
|
+
readonly showingRange: "Mostrando {first}–{last} de {total}";
|
|
280
|
+
readonly showingRangeOpen: "Mostrando {first}–{last}";
|
|
281
|
+
readonly previous: "Anterior";
|
|
282
|
+
readonly pageNumber: "Página {page}";
|
|
283
|
+
readonly search: "Buscar";
|
|
284
|
+
readonly filters: "Filtros";
|
|
285
|
+
readonly moreFilters: "Más filtros";
|
|
286
|
+
readonly clearAllFilters: "Limpiar todos los filtros";
|
|
287
|
+
readonly removeFilter: "Quitar filtro {filter}";
|
|
288
|
+
readonly activeFilters: "Filtros activos";
|
|
289
|
+
readonly resultOne: "1 resultado";
|
|
290
|
+
readonly resultMany: "{count} resultados";
|
|
291
|
+
readonly showPassword: "Mostrar contraseña";
|
|
292
|
+
readonly signIn: "Inicia sesión";
|
|
293
|
+
readonly signInAs: "Ingresar como";
|
|
294
|
+
readonly withYourAccount: "con tu cuenta";
|
|
295
|
+
readonly identifier: "Correo o documento";
|
|
296
|
+
readonly password: "Contraseña";
|
|
297
|
+
readonly forgotPassword: "¿Olvidaste tu contraseña?";
|
|
298
|
+
readonly signInAction: "Ingresar";
|
|
299
|
+
readonly enterIdentifier: "Escribe tu correo o documento.";
|
|
300
|
+
readonly enterPassword: "Escribe tu contraseña.";
|
|
301
|
+
readonly rememberMe: "Recordarme";
|
|
302
|
+
readonly needHelp: "¿Necesitas ayuda?";
|
|
303
|
+
readonly orLogInWith: "O ingresa con";
|
|
304
|
+
readonly signInFailed: "No pudimos iniciar tu sesión. Revisa tus datos e inténtalo de nuevo.";
|
|
305
|
+
readonly welcomeBack: "Qué bueno verte otra vez.";
|
|
306
|
+
readonly signedIn: "Ya estás dentro.";
|
|
157
307
|
};
|
|
158
308
|
};
|
package/dist/i18n/strings.js
CHANGED
|
@@ -4,6 +4,8 @@ const uiStrings = {
|
|
|
4
4
|
close: "Close",
|
|
5
5
|
loading: "Loading",
|
|
6
6
|
optional: "optional",
|
|
7
|
+
save: "Save",
|
|
8
|
+
unsavedChanges: "Unsaved changes",
|
|
7
9
|
cancel: "Cancel",
|
|
8
10
|
confirm: "Confirm",
|
|
9
11
|
processing: "Processing\u2026",
|
|
@@ -45,13 +47,52 @@ const uiStrings = {
|
|
|
45
47
|
stepError: "Has an error",
|
|
46
48
|
selectRow: "Select {row}",
|
|
47
49
|
selectAll: "Select all rows",
|
|
48
|
-
rowActions: "Row actions"
|
|
50
|
+
rowActions: "Row actions",
|
|
51
|
+
tableEmpty: "No rows to show",
|
|
52
|
+
columns: "Columns",
|
|
53
|
+
pagination: "Pagination",
|
|
54
|
+
rowsPerPage: "Rows per page",
|
|
55
|
+
pageRange: "{first}\u2013{last} of {total}",
|
|
56
|
+
firstPage: "First page",
|
|
57
|
+
previousPage: "Previous page",
|
|
58
|
+
nextPage: "Next page",
|
|
59
|
+
lastPage: "Last page",
|
|
60
|
+
showingRange: "Showing {first}\u2013{last} of {total}",
|
|
61
|
+
showingRangeOpen: "Showing {first}\u2013{last}",
|
|
62
|
+
previous: "Previous",
|
|
63
|
+
pageNumber: "Page {page}",
|
|
64
|
+
search: "Search",
|
|
65
|
+
filters: "Filters",
|
|
66
|
+
moreFilters: "More filters",
|
|
67
|
+
clearAllFilters: "Clear all filters",
|
|
68
|
+
removeFilter: "Remove filter {filter}",
|
|
69
|
+
activeFilters: "Active filters",
|
|
70
|
+
resultOne: "1 result",
|
|
71
|
+
resultMany: "{count} results",
|
|
72
|
+
showPassword: "Show password",
|
|
73
|
+
signIn: "Sign in",
|
|
74
|
+
signInAs: "Sign in as",
|
|
75
|
+
withYourAccount: "with your account",
|
|
76
|
+
identifier: "Email or ID",
|
|
77
|
+
password: "Password",
|
|
78
|
+
forgotPassword: "Forgot your password?",
|
|
79
|
+
signInAction: "Sign in",
|
|
80
|
+
enterIdentifier: "Enter your email or ID.",
|
|
81
|
+
enterPassword: "Enter your password.",
|
|
82
|
+
rememberMe: "Remember me",
|
|
83
|
+
needHelp: "Need help?",
|
|
84
|
+
orLogInWith: "Or log in with",
|
|
85
|
+
signInFailed: "We could not sign you in. Check your details and try again.",
|
|
86
|
+
welcomeBack: "Good to see you again.",
|
|
87
|
+
signedIn: "You're in."
|
|
49
88
|
},
|
|
50
89
|
es: {
|
|
51
90
|
retry: "Reintentar",
|
|
52
91
|
close: "Cerrar",
|
|
53
92
|
loading: "Cargando",
|
|
54
93
|
optional: "opcional",
|
|
94
|
+
save: "Guardar",
|
|
95
|
+
unsavedChanges: "Cambios sin guardar",
|
|
55
96
|
cancel: "Cancelar",
|
|
56
97
|
confirm: "Confirmar",
|
|
57
98
|
processing: "Procesando\u2026",
|
|
@@ -93,7 +134,44 @@ const uiStrings = {
|
|
|
93
134
|
stepError: "Tiene un error",
|
|
94
135
|
selectRow: "Seleccionar {row}",
|
|
95
136
|
selectAll: "Seleccionar todas las filas",
|
|
96
|
-
rowActions: "Acciones de la fila"
|
|
137
|
+
rowActions: "Acciones de la fila",
|
|
138
|
+
tableEmpty: "No hay filas para mostrar",
|
|
139
|
+
columns: "Columnas",
|
|
140
|
+
pagination: "Paginaci\xF3n",
|
|
141
|
+
rowsPerPage: "Filas por p\xE1gina",
|
|
142
|
+
pageRange: "{first}\u2013{last} de {total}",
|
|
143
|
+
firstPage: "Primera p\xE1gina",
|
|
144
|
+
previousPage: "P\xE1gina anterior",
|
|
145
|
+
nextPage: "P\xE1gina siguiente",
|
|
146
|
+
lastPage: "\xDAltima p\xE1gina",
|
|
147
|
+
showingRange: "Mostrando {first}\u2013{last} de {total}",
|
|
148
|
+
showingRangeOpen: "Mostrando {first}\u2013{last}",
|
|
149
|
+
previous: "Anterior",
|
|
150
|
+
pageNumber: "P\xE1gina {page}",
|
|
151
|
+
search: "Buscar",
|
|
152
|
+
filters: "Filtros",
|
|
153
|
+
moreFilters: "M\xE1s filtros",
|
|
154
|
+
clearAllFilters: "Limpiar todos los filtros",
|
|
155
|
+
removeFilter: "Quitar filtro {filter}",
|
|
156
|
+
activeFilters: "Filtros activos",
|
|
157
|
+
resultOne: "1 resultado",
|
|
158
|
+
resultMany: "{count} resultados",
|
|
159
|
+
showPassword: "Mostrar contrase\xF1a",
|
|
160
|
+
signIn: "Inicia sesi\xF3n",
|
|
161
|
+
signInAs: "Ingresar como",
|
|
162
|
+
withYourAccount: "con tu cuenta",
|
|
163
|
+
identifier: "Correo o documento",
|
|
164
|
+
password: "Contrase\xF1a",
|
|
165
|
+
forgotPassword: "\xBFOlvidaste tu contrase\xF1a?",
|
|
166
|
+
signInAction: "Ingresar",
|
|
167
|
+
enterIdentifier: "Escribe tu correo o documento.",
|
|
168
|
+
enterPassword: "Escribe tu contrase\xF1a.",
|
|
169
|
+
rememberMe: "Recordarme",
|
|
170
|
+
needHelp: "\xBFNecesitas ayuda?",
|
|
171
|
+
orLogInWith: "O ingresa con",
|
|
172
|
+
signInFailed: "No pudimos iniciar tu sesi\xF3n. Revisa tus datos e int\xE9ntalo de nuevo.",
|
|
173
|
+
welcomeBack: "Qu\xE9 bueno verte otra vez.",
|
|
174
|
+
signedIn: "Ya est\xE1s dentro."
|
|
97
175
|
}
|
|
98
176
|
};
|
|
99
177
|
export {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { IconBase } from "./icon-base.js";
|
|
3
|
+
function Eye(props) {
|
|
4
|
+
return /* @__PURE__ */ jsxs(IconBase, { ...props, children: [
|
|
5
|
+
/* @__PURE__ */ jsx("path", { d: "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0" }),
|
|
6
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "3" })
|
|
7
|
+
] });
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
Eye
|
|
11
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { IconBase } from "./icon-base.js";
|
|
3
|
+
function GraduationCap(props) {
|
|
4
|
+
return /* @__PURE__ */ jsxs(IconBase, { ...props, children: [
|
|
5
|
+
/* @__PURE__ */ jsx("path", { d: "M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z" }),
|
|
6
|
+
/* @__PURE__ */ jsx("path", { d: "M22 10v6" }),
|
|
7
|
+
/* @__PURE__ */ jsx("path", { d: "M6 12.5V16a6 3 0 0 0 12 0v-3.5" })
|
|
8
|
+
] });
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
GraduationCap
|
|
12
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { IconBase } from "./icon-base.js";
|
|
3
|
+
function House(props) {
|
|
4
|
+
return /* @__PURE__ */ jsxs(IconBase, { ...props, children: [
|
|
5
|
+
/* @__PURE__ */ jsx("path", { d: "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8" }),
|
|
6
|
+
/* @__PURE__ */ jsx("path", { d: "M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" })
|
|
7
|
+
] });
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
House
|
|
11
|
+
};
|
package/dist/icons/index.d.ts
CHANGED
|
@@ -53,6 +53,7 @@ export { CreditCard } from "./credit-card.js";
|
|
|
53
53
|
export { Download } from "./download.js";
|
|
54
54
|
export { EllipsisVertical } from "./ellipsis-vertical.js";
|
|
55
55
|
export { ExternalLink } from "./external-link.js";
|
|
56
|
+
export { Eye } from "./eye.js";
|
|
56
57
|
export { EyeOff } from "./eye-off.js";
|
|
57
58
|
export { FaceSlightlySmiling } from "./face-slightly-smiling.js";
|
|
58
59
|
export { FaceSlightlySmilingPlus } from "./face-slightly-smiling-plus.js";
|
|
@@ -65,8 +66,10 @@ export { Filter } from "./filter.js";
|
|
|
65
66
|
export { Folder } from "./folder.js";
|
|
66
67
|
export { FolderOpen } from "./folder-open.js";
|
|
67
68
|
export { Funnel } from "./funnel.js";
|
|
69
|
+
export { GraduationCap } from "./graduation-cap.js";
|
|
68
70
|
export { GripVertical } from "./grip-vertical.js";
|
|
69
71
|
export { Heading2 } from "./heading-2.js";
|
|
72
|
+
export { House } from "./house.js";
|
|
70
73
|
export { Inbox } from "./inbox.js";
|
|
71
74
|
export { Info } from "./info.js";
|
|
72
75
|
export { Italic } from "./italic.js";
|
|
@@ -83,6 +86,7 @@ export { ListOrdered } from "./list-ordered.js";
|
|
|
83
86
|
export { LoaderCircle } from "./loader-circle.js";
|
|
84
87
|
export { Lock } from "./lock.js";
|
|
85
88
|
export { LogOut } from "./log-out.js";
|
|
89
|
+
export { Mail } from "./mail.js";
|
|
86
90
|
export { MapPin } from "./map-pin.js";
|
|
87
91
|
export { Menu } from "./menu.js";
|
|
88
92
|
export { MessageCircle } from "./message-circle.js";
|
package/dist/icons/index.js
CHANGED
|
@@ -53,6 +53,7 @@ import { CreditCard } from "./credit-card.js";
|
|
|
53
53
|
import { Download } from "./download.js";
|
|
54
54
|
import { EllipsisVertical } from "./ellipsis-vertical.js";
|
|
55
55
|
import { ExternalLink } from "./external-link.js";
|
|
56
|
+
import { Eye } from "./eye.js";
|
|
56
57
|
import { EyeOff } from "./eye-off.js";
|
|
57
58
|
import { FaceSlightlySmiling } from "./face-slightly-smiling.js";
|
|
58
59
|
import { FaceSlightlySmilingPlus } from "./face-slightly-smiling-plus.js";
|
|
@@ -65,8 +66,10 @@ import { Filter } from "./filter.js";
|
|
|
65
66
|
import { Folder } from "./folder.js";
|
|
66
67
|
import { FolderOpen } from "./folder-open.js";
|
|
67
68
|
import { Funnel } from "./funnel.js";
|
|
69
|
+
import { GraduationCap } from "./graduation-cap.js";
|
|
68
70
|
import { GripVertical } from "./grip-vertical.js";
|
|
69
71
|
import { Heading2 } from "./heading-2.js";
|
|
72
|
+
import { House } from "./house.js";
|
|
70
73
|
import { Inbox } from "./inbox.js";
|
|
71
74
|
import { Info } from "./info.js";
|
|
72
75
|
import { Italic } from "./italic.js";
|
|
@@ -83,6 +86,7 @@ import { ListOrdered } from "./list-ordered.js";
|
|
|
83
86
|
import { LoaderCircle } from "./loader-circle.js";
|
|
84
87
|
import { Lock } from "./lock.js";
|
|
85
88
|
import { LogOut } from "./log-out.js";
|
|
89
|
+
import { Mail } from "./mail.js";
|
|
86
90
|
import { MapPin } from "./map-pin.js";
|
|
87
91
|
import { Menu } from "./menu.js";
|
|
88
92
|
import { MessageCircle } from "./message-circle.js";
|
|
@@ -200,6 +204,7 @@ export {
|
|
|
200
204
|
Download,
|
|
201
205
|
EllipsisVertical,
|
|
202
206
|
ExternalLink,
|
|
207
|
+
Eye,
|
|
203
208
|
EyeOff,
|
|
204
209
|
FaceSlightlySmiling,
|
|
205
210
|
FaceSlightlySmilingPlus,
|
|
@@ -212,8 +217,10 @@ export {
|
|
|
212
217
|
Folder,
|
|
213
218
|
FolderOpen,
|
|
214
219
|
Funnel,
|
|
220
|
+
GraduationCap,
|
|
215
221
|
GripVertical,
|
|
216
222
|
Heading2,
|
|
223
|
+
House,
|
|
217
224
|
Inbox,
|
|
218
225
|
Info,
|
|
219
226
|
Italic,
|
|
@@ -230,6 +237,7 @@ export {
|
|
|
230
237
|
LoaderCircle,
|
|
231
238
|
Lock,
|
|
232
239
|
LogOut,
|
|
240
|
+
Mail,
|
|
233
241
|
MapPin,
|
|
234
242
|
Menu,
|
|
235
243
|
MessageCircle,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { IconBase } from "./icon-base.js";
|
|
3
|
+
function Mail(props) {
|
|
4
|
+
return /* @__PURE__ */ jsxs(IconBase, { ...props, children: [
|
|
5
|
+
/* @__PURE__ */ jsx("path", { d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7" }),
|
|
6
|
+
/* @__PURE__ */ jsx("rect", { x: "2", y: "4", width: "20", height: "16", rx: "2" })
|
|
7
|
+
] });
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
Mail
|
|
11
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type HTMLAttributes, type Ref } from "react";
|
|
2
|
+
/** Anything with an `Intl.NumberFormat`-style `format`, such as `new Intl.NumberFormat(...)`. */
|
|
3
|
+
export interface NumberFormatter {
|
|
4
|
+
format(value: number): string;
|
|
5
|
+
}
|
|
6
|
+
export interface CountUpProps extends Omit<HTMLAttributes<HTMLSpanElement>, "children"> {
|
|
7
|
+
value: number;
|
|
8
|
+
/** Formats every shown value. Defaults to `Intl.NumberFormat` in the UI strings locale. */
|
|
9
|
+
formatter?: NumberFormatter;
|
|
10
|
+
/** Where a client-side mount starts counting from. Default 0. */
|
|
11
|
+
from?: number;
|
|
12
|
+
ref?: Ref<HTMLSpanElement>;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* A number that counts to `value` over 1.5 `--motion-duration`s with `--motion-ease`, on a client
|
|
16
|
+
* mount and on every change. Server HTML, hydration and reduced motion show the final value at
|
|
17
|
+
* once. While it counts, assistive tech reads only the final value and the final text reserves
|
|
18
|
+
* its width, so the line does not grow digit by digit. Works as the `value` of a `Kpi`.
|
|
19
|
+
*/
|
|
20
|
+
export declare function CountUp({ value, formatter, from, className, ref, ...props }: CountUpProps): import("react").JSX.Element;
|