@jcsoftdev/ui 0.5.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 +337 -0
- package/README.md +25 -3
- 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 +6 -1
- package/dist/atoms/button/button.js +2 -2
- package/dist/atoms/chip/chip.d.ts +5 -0
- package/dist/atoms/chip/chip.js +3 -3
- package/dist/atoms/icon-button/icon-button.js +1 -1
- 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/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 +3 -0
- package/dist/forms/index.js +3 -0
- package/dist/forms/input/input.d.ts +6 -2
- package/dist/forms/input/input.js +4 -1
- 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/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 +86 -0
- package/dist/i18n/strings.js +46 -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/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 +8 -3
- package/src/atoms/chip/chip.tsx +8 -3
- package/src/atoms/icon-button/icon-button.tsx +1 -1
- 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/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 +3 -0
- package/src/forms/input/input.tsx +10 -3
- package/src/forms/internal/listbox-items.tsx +3 -4
- package/src/forms/native-select/native-select.tsx +1 -1
- 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 +86 -0
- package/src/motion/count-up.tsx +83 -0
- package/src/motion/cross-fade.tsx +139 -0
- package/src/motion/index.ts +5 -0
- package/src/motion/model.ts +86 -0
- package/src/motion/motion-styles.tsx +47 -0
- package/src/motion/reveal.tsx +115 -0
- package/src/motion/use-enter-phase.ts +50 -0
- package/src/motion/use-highlight-row.ts +63 -0
- package/src/navigation/tabs/tabs.tsx +1 -1
- package/src/navigation/wizard/wizard.tsx +6 -1
- package/src/overlays/alert-dialog/alert-dialog.tsx +5 -1
- package/src/overlays/context-menu/context-menu.tsx +3 -2
- package/src/overlays/dialog/dialog.tsx +7 -2
- package/src/overlays/drawer/drawer.tsx +68 -6
- package/src/overlays/drawer/index.ts +1 -0
- package/src/overlays/dropdown-menu/dropdown-menu.tsx +5 -4
- package/src/overlays/hover-card/hover-card.tsx +2 -0
- package/src/overlays/popover/popover.tsx +2 -0
- package/src/overlays/toaster/index.ts +2 -0
- package/src/overlays/toaster/toaster.tsx +113 -17
- package/src/overlays/tooltip/tooltip.tsx +2 -0
- package/src/primitives/use-presence.ts +13 -0
- package/src/shell/app-shell/app-shell.tsx +54 -2
- package/src/shell/index.ts +1 -0
- package/src/shell/sidebar/sidebar.tsx +154 -75
- package/src/shell/topbar/topbar.tsx +8 -0
- package/src/showcase/operations-bento.tsx +2 -2
- package/src/states/empty-state/empty-state.tsx +52 -9
- package/src/states/error-state/error-state.tsx +1 -1
- package/src/states/skeleton/skeleton.tsx +1 -1
- package/src/utils/class-tokens.generated.ts +4 -6
- package/src/utils/list-navigation.ts +63 -0
- package/src/utils/overlay-motion.ts +33 -0
- package/src/utils/use-container-width.ts +24 -0
- package/styles/Theme.kt +15 -18
- package/styles/tailwind.css +29 -28
- package/styles/theme.css +29 -28
- package/styles/tokens.css +46 -0
- package/tokens/default.json +51 -29
|
@@ -0,0 +1,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);
|
package/styles/tokens.css
CHANGED
|
@@ -119,6 +119,7 @@
|
|
|
119
119
|
--top-height: 58px;
|
|
120
120
|
--control-height: 36px;
|
|
121
121
|
--control-height-sm: 30px;
|
|
122
|
+
--control-height-md: 38px;
|
|
122
123
|
--control-height-lg: 52px;
|
|
123
124
|
--input-height: 38px;
|
|
124
125
|
--agenda-hour: 48px;
|
|
@@ -220,6 +221,7 @@
|
|
|
220
221
|
--gap-density: 12px;
|
|
221
222
|
--gap-density-lg: 18px;
|
|
222
223
|
--touch-target: 0px;
|
|
224
|
+
--touch: 0;
|
|
223
225
|
--font-sans: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
224
226
|
}
|
|
225
227
|
|
|
@@ -1689,6 +1691,7 @@
|
|
|
1689
1691
|
[data-density="compact"] {
|
|
1690
1692
|
--control-height: calc(36px * var(--density));
|
|
1691
1693
|
--control-height-sm: calc(30px * var(--density));
|
|
1694
|
+
--control-height-md: calc(38px * var(--density));
|
|
1692
1695
|
--control-height-lg: calc(52px * var(--density));
|
|
1693
1696
|
--input-height: calc(38px * var(--density));
|
|
1694
1697
|
--density: 0.875;
|
|
@@ -1698,12 +1701,14 @@
|
|
|
1698
1701
|
--gap-density: calc(12px * var(--density));
|
|
1699
1702
|
--gap-density-lg: calc(18px * var(--density));
|
|
1700
1703
|
--touch-target: calc(0px * var(--density));
|
|
1704
|
+
--touch: 0;
|
|
1701
1705
|
}
|
|
1702
1706
|
|
|
1703
1707
|
:root[data-density="normal"],
|
|
1704
1708
|
[data-density="normal"] {
|
|
1705
1709
|
--control-height: calc(36px * var(--density));
|
|
1706
1710
|
--control-height-sm: calc(30px * var(--density));
|
|
1711
|
+
--control-height-md: calc(38px * var(--density));
|
|
1707
1712
|
--control-height-lg: calc(52px * var(--density));
|
|
1708
1713
|
--input-height: calc(38px * var(--density));
|
|
1709
1714
|
--density: 1;
|
|
@@ -1713,12 +1718,14 @@
|
|
|
1713
1718
|
--gap-density: calc(12px * var(--density));
|
|
1714
1719
|
--gap-density-lg: calc(18px * var(--density));
|
|
1715
1720
|
--touch-target: calc(0px * var(--density));
|
|
1721
|
+
--touch: 0;
|
|
1716
1722
|
}
|
|
1717
1723
|
|
|
1718
1724
|
:root[data-density="comfortable"],
|
|
1719
1725
|
[data-density="comfortable"] {
|
|
1720
1726
|
--control-height: calc(36px * var(--density));
|
|
1721
1727
|
--control-height-sm: calc(30px * var(--density));
|
|
1728
|
+
--control-height-md: calc(38px * var(--density));
|
|
1722
1729
|
--control-height-lg: calc(52px * var(--density));
|
|
1723
1730
|
--input-height: calc(38px * var(--density));
|
|
1724
1731
|
--density: 1.125;
|
|
@@ -1728,12 +1735,14 @@
|
|
|
1728
1735
|
--gap-density: calc(12px * var(--density));
|
|
1729
1736
|
--gap-density-lg: calc(18px * var(--density));
|
|
1730
1737
|
--touch-target: calc(0px * var(--density));
|
|
1738
|
+
--touch: 0;
|
|
1731
1739
|
}
|
|
1732
1740
|
|
|
1733
1741
|
:root[data-density="touch"],
|
|
1734
1742
|
[data-density="touch"] {
|
|
1735
1743
|
--control-height: 44px;
|
|
1736
1744
|
--control-height-sm: 44px;
|
|
1745
|
+
--control-height-md: 48px;
|
|
1737
1746
|
--control-height-lg: 52px;
|
|
1738
1747
|
--input-height: 48px;
|
|
1739
1748
|
--density: 1.125;
|
|
@@ -1743,6 +1752,43 @@
|
|
|
1743
1752
|
--gap-density: calc(12px * var(--density));
|
|
1744
1753
|
--gap-density-lg: calc(18px * var(--density));
|
|
1745
1754
|
--touch-target: 44px;
|
|
1755
|
+
--touch: 1;
|
|
1756
|
+
}
|
|
1757
|
+
|
|
1758
|
+
:root[data-density="auto"],
|
|
1759
|
+
[data-density="auto"] {
|
|
1760
|
+
--control-height: calc(36px * var(--density));
|
|
1761
|
+
--control-height-sm: calc(30px * var(--density));
|
|
1762
|
+
--control-height-md: calc(38px * var(--density));
|
|
1763
|
+
--control-height-lg: calc(52px * var(--density));
|
|
1764
|
+
--input-height: calc(38px * var(--density));
|
|
1765
|
+
--density: 1;
|
|
1766
|
+
--pad-control-x: calc(16px * var(--density));
|
|
1767
|
+
--pad-card: calc(16px * var(--density));
|
|
1768
|
+
--gap-density-sm: calc(8px * var(--density));
|
|
1769
|
+
--gap-density: calc(12px * var(--density));
|
|
1770
|
+
--gap-density-lg: calc(18px * var(--density));
|
|
1771
|
+
--touch-target: calc(0px * var(--density));
|
|
1772
|
+
--touch: 0;
|
|
1773
|
+
}
|
|
1774
|
+
|
|
1775
|
+
@media (pointer: coarse) {
|
|
1776
|
+
:root[data-density="auto"],
|
|
1777
|
+
[data-density="auto"] {
|
|
1778
|
+
--control-height: 44px;
|
|
1779
|
+
--control-height-sm: 44px;
|
|
1780
|
+
--control-height-md: 48px;
|
|
1781
|
+
--control-height-lg: 52px;
|
|
1782
|
+
--input-height: 48px;
|
|
1783
|
+
--density: 1.125;
|
|
1784
|
+
--pad-control-x: calc(16px * var(--density));
|
|
1785
|
+
--pad-card: calc(16px * var(--density));
|
|
1786
|
+
--gap-density-sm: calc(8px * var(--density));
|
|
1787
|
+
--gap-density: calc(12px * var(--density));
|
|
1788
|
+
--gap-density-lg: calc(18px * var(--density));
|
|
1789
|
+
--touch-target: 44px;
|
|
1790
|
+
--touch: 1;
|
|
1791
|
+
}
|
|
1746
1792
|
}
|
|
1747
1793
|
|
|
1748
1794
|
:root[data-radius="none"],
|
package/tokens/default.json
CHANGED
|
@@ -739,19 +739,15 @@
|
|
|
739
739
|
"sans": "\"Figtree\", ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", sans-serif"
|
|
740
740
|
},
|
|
741
741
|
"sizeScale": [
|
|
742
|
-
{ "name": "fs-95", "fontSize": "9.5px" },
|
|
743
742
|
{ "name": "fs-100", "fontSize": "10px" },
|
|
744
|
-
{ "name": "fs-105", "fontSize": "10.5px" },
|
|
745
743
|
{ "name": "fs-110", "fontSize": "11px" },
|
|
746
|
-
{ "name": "fs-115", "fontSize": "11.5px" },
|
|
747
744
|
{ "name": "fs-120", "fontSize": "12px" },
|
|
748
|
-
{ "name": "fs-125", "fontSize": "12.5px" },
|
|
749
745
|
{ "name": "fs-130", "fontSize": "13px" },
|
|
750
746
|
{ "name": "fs-140", "fontSize": "14px" },
|
|
751
747
|
{ "name": "fs-150", "fontSize": "15px" },
|
|
752
748
|
{ "name": "fs-160", "fontSize": "16px" },
|
|
753
|
-
{ "name": "fs-
|
|
754
|
-
{ "name": "fs-
|
|
749
|
+
{ "name": "fs-200", "fontSize": "20px" },
|
|
750
|
+
{ "name": "fs-240", "fontSize": "24px" },
|
|
755
751
|
{ "name": "fs-440", "fontSize": "44px" }
|
|
756
752
|
],
|
|
757
753
|
"groups": [
|
|
@@ -761,19 +757,19 @@
|
|
|
761
757
|
"styles": [
|
|
762
758
|
{
|
|
763
759
|
"name": "kpi-number",
|
|
764
|
-
"fontSize": "
|
|
765
|
-
"lineHeight": 1.
|
|
760
|
+
"fontSize": "24px",
|
|
761
|
+
"lineHeight": 1.2,
|
|
766
762
|
"fontWeight": 800,
|
|
767
|
-
"letterSpacing": "-0.
|
|
763
|
+
"letterSpacing": "-0.025em",
|
|
768
764
|
"usage": "Cifra de un indicador: citas de hoy, en espera, ítems bajo mínimo.",
|
|
769
765
|
"sample": "18"
|
|
770
766
|
},
|
|
771
767
|
{
|
|
772
768
|
"name": "page-title",
|
|
773
|
-
"fontSize": "
|
|
774
|
-
"lineHeight": 1.
|
|
769
|
+
"fontSize": "22px",
|
|
770
|
+
"lineHeight": 1.25,
|
|
775
771
|
"fontWeight": 800,
|
|
776
|
-
"letterSpacing": "-0.
|
|
772
|
+
"letterSpacing": "-0.02em",
|
|
777
773
|
"usage": "Título de página del panel. Uno por vista; puede llevar una palabra en accent-word.",
|
|
778
774
|
"sample": "Agenda de hoy"
|
|
779
775
|
},
|
|
@@ -787,8 +783,8 @@
|
|
|
787
783
|
},
|
|
788
784
|
{
|
|
789
785
|
"name": "card-title",
|
|
790
|
-
"fontSize": "
|
|
791
|
-
"lineHeight": 1.
|
|
786
|
+
"fontSize": "15px",
|
|
787
|
+
"lineHeight": 1.4,
|
|
792
788
|
"fontWeight": 700,
|
|
793
789
|
"letterSpacing": "-0.01em",
|
|
794
790
|
"usage": "Título de tarjeta.",
|
|
@@ -802,7 +798,7 @@
|
|
|
802
798
|
"styles": [
|
|
803
799
|
{
|
|
804
800
|
"name": "lede",
|
|
805
|
-
"fontSize": "
|
|
801
|
+
"fontSize": "14px",
|
|
806
802
|
"lineHeight": 1.5,
|
|
807
803
|
"fontWeight": 400,
|
|
808
804
|
"usage": "Frase bajo el título de página, en ink-2. Máximo 68 caracteres por línea.",
|
|
@@ -818,7 +814,7 @@
|
|
|
818
814
|
},
|
|
819
815
|
{
|
|
820
816
|
"name": "row-title",
|
|
821
|
-
"fontSize": "
|
|
817
|
+
"fontSize": "14px",
|
|
822
818
|
"lineHeight": 1.5,
|
|
823
819
|
"fontWeight": 650,
|
|
824
820
|
"usage": "Nombre del cliente, del servicio o del ítem en filas y tablas.",
|
|
@@ -834,7 +830,7 @@
|
|
|
834
830
|
},
|
|
835
831
|
{
|
|
836
832
|
"name": "meta",
|
|
837
|
-
"fontSize": "
|
|
833
|
+
"fontSize": "12px",
|
|
838
834
|
"lineHeight": 1.5,
|
|
839
835
|
"fontWeight": 400,
|
|
840
836
|
"usage": "Metadatos bajo un título de fila, en ink-3.",
|
|
@@ -865,7 +861,7 @@
|
|
|
865
861
|
"styles": [
|
|
866
862
|
{
|
|
867
863
|
"name": "clock",
|
|
868
|
-
"fontSize": "
|
|
864
|
+
"fontSize": "16px",
|
|
869
865
|
"lineHeight": 1,
|
|
870
866
|
"fontWeight": 700,
|
|
871
867
|
"usage": "Número del día en la tira de la semana. Cifras tabulares.",
|
|
@@ -873,8 +869,8 @@
|
|
|
873
869
|
},
|
|
874
870
|
{
|
|
875
871
|
"name": "data",
|
|
876
|
-
"fontSize": "
|
|
877
|
-
"lineHeight": 1.
|
|
872
|
+
"fontSize": "13px",
|
|
873
|
+
"lineHeight": 1.5,
|
|
878
874
|
"fontWeight": 600,
|
|
879
875
|
"usage": "Horas, duraciones, cantidades, precios y códigos. Misma familia, con cifras tabulares (clase mono).",
|
|
880
876
|
"sample": "15:30 · 45 min · S/ 35.00"
|
|
@@ -895,25 +891,25 @@
|
|
|
895
891
|
"styles": [
|
|
896
892
|
{
|
|
897
893
|
"name": "m-title",
|
|
898
|
-
"fontSize": "
|
|
899
|
-
"lineHeight":
|
|
894
|
+
"fontSize": "22px",
|
|
895
|
+
"lineHeight": 1.25,
|
|
900
896
|
"fontWeight": 800,
|
|
901
|
-
"letterSpacing": "-0.
|
|
897
|
+
"letterSpacing": "-0.02em",
|
|
902
898
|
"usage": "Título de pantalla en la app, con una palabra en accent-word.",
|
|
903
899
|
"sample": "Hoy tienes 6 citas"
|
|
904
900
|
},
|
|
905
901
|
{
|
|
906
902
|
"name": "m-card-title",
|
|
907
|
-
"fontSize": "
|
|
908
|
-
"lineHeight": 1.
|
|
903
|
+
"fontSize": "20px",
|
|
904
|
+
"lineHeight": 1.2,
|
|
909
905
|
"fontWeight": 800,
|
|
910
|
-
"letterSpacing": "-0.
|
|
906
|
+
"letterSpacing": "-0.015em",
|
|
911
907
|
"usage": "Nombre del cliente en la tarjeta principal.",
|
|
912
908
|
"sample": "Renzo Quispe"
|
|
913
909
|
},
|
|
914
910
|
{
|
|
915
911
|
"name": "m-row-title",
|
|
916
|
-
"fontSize": "
|
|
912
|
+
"fontSize": "15px",
|
|
917
913
|
"lineHeight": 1.3,
|
|
918
914
|
"fontWeight": 700,
|
|
919
915
|
"usage": "Nombre en un bloque de la línea de tiempo y en filas.",
|
|
@@ -929,7 +925,7 @@
|
|
|
929
925
|
},
|
|
930
926
|
{
|
|
931
927
|
"name": "m-button",
|
|
932
|
-
"fontSize": "
|
|
928
|
+
"fontSize": "15px",
|
|
933
929
|
"lineHeight": 1,
|
|
934
930
|
"fontWeight": 700,
|
|
935
931
|
"usage": "Etiqueta del botón principal de 54 px.",
|
|
@@ -1121,6 +1117,11 @@
|
|
|
1121
1117
|
"value": "30px",
|
|
1122
1118
|
"usage": "Alto de botones dentro de filas."
|
|
1123
1119
|
},
|
|
1120
|
+
{
|
|
1121
|
+
"name": "control-height-md",
|
|
1122
|
+
"value": "38px",
|
|
1123
|
+
"usage": "Alto de todo control en tamaño md (botón, campo, select, selector de fecha u hora), para que se alineen en una fila."
|
|
1124
|
+
},
|
|
1124
1125
|
{
|
|
1125
1126
|
"name": "control-height-lg",
|
|
1126
1127
|
"value": "52px",
|
|
@@ -1174,6 +1175,11 @@
|
|
|
1174
1175
|
"grafito": "chart-cat-6"
|
|
1175
1176
|
}
|
|
1176
1177
|
},
|
|
1178
|
+
"containers": {
|
|
1179
|
+
"page-m": "720px",
|
|
1180
|
+
"page-w": "1280px",
|
|
1181
|
+
"page-xw": "1600px"
|
|
1182
|
+
},
|
|
1177
1183
|
"styles": {
|
|
1178
1184
|
"default": "soft",
|
|
1179
1185
|
"tokens": [
|
|
@@ -1971,11 +1977,24 @@
|
|
|
1971
1977
|
"name": "touch-target",
|
|
1972
1978
|
"value": "0px",
|
|
1973
1979
|
"usage": "Alto mínimo de un control interactivo pequeño: 0 salvo en data-density=touch, donde es 44px."
|
|
1980
|
+
},
|
|
1981
|
+
{
|
|
1982
|
+
"name": "touch",
|
|
1983
|
+
"value": "0",
|
|
1984
|
+
"usage": "Interruptor 0/1 del nivel táctil (1 en data-density=touch, y en auto con puntero grueso). Los componentes con área de pulsación fija lo leen para crecer a 44px."
|
|
1974
1985
|
}
|
|
1975
1986
|
],
|
|
1987
|
+
"fixed": [
|
|
1988
|
+
"touch"
|
|
1989
|
+
],
|
|
1990
|
+
"auto": {
|
|
1991
|
+
"fine": "normal",
|
|
1992
|
+
"coarse": "touch"
|
|
1993
|
+
},
|
|
1976
1994
|
"scaled": [
|
|
1977
1995
|
"control-height",
|
|
1978
1996
|
"control-height-sm",
|
|
1997
|
+
"control-height-md",
|
|
1979
1998
|
"control-height-lg",
|
|
1980
1999
|
"input-height",
|
|
1981
2000
|
"pad-control-x",
|
|
@@ -2008,9 +2027,11 @@
|
|
|
2008
2027
|
"values": {
|
|
2009
2028
|
"control-height": "44px",
|
|
2010
2029
|
"control-height-sm": "44px",
|
|
2030
|
+
"control-height-md": "48px",
|
|
2011
2031
|
"control-height-lg": "52px",
|
|
2012
2032
|
"input-height": "48px",
|
|
2013
|
-
"touch-target": "44px"
|
|
2033
|
+
"touch-target": "44px",
|
|
2034
|
+
"touch": "1"
|
|
2014
2035
|
}
|
|
2015
2036
|
}
|
|
2016
2037
|
]
|
|
@@ -2145,6 +2166,7 @@
|
|
|
2145
2166
|
"--ease-style": "motion-ease",
|
|
2146
2167
|
"--spacing-control": "control-height",
|
|
2147
2168
|
"--spacing-control-sm": "control-height-sm",
|
|
2169
|
+
"--spacing-control-md": "control-height-md",
|
|
2148
2170
|
"--spacing-control-lg": "control-height-lg",
|
|
2149
2171
|
"--spacing-input": "input-height",
|
|
2150
2172
|
"--spacing-control-x": "pad-control-x",
|