prime-ui-kit 0.2.5 → 0.3.1
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/README.md +161 -35
- package/dist/components/accordion/Accordion.d.ts +70 -0
- package/dist/components/accordion/Accordion.d.ts.map +1 -0
- package/dist/components/avatar/Avatar.d.ts +58 -0
- package/dist/components/avatar/Avatar.d.ts.map +1 -0
- package/dist/components/badge/Badge.d.ts +51 -0
- package/dist/components/badge/Badge.d.ts.map +1 -0
- package/dist/components/banner/Banner.d.ts +78 -0
- package/dist/components/banner/Banner.d.ts.map +1 -0
- package/dist/components/breadcrumb/Breadcrumb.d.ts +47 -0
- package/dist/components/breadcrumb/Breadcrumb.d.ts.map +1 -0
- package/dist/components/button/Button.d.ts +57 -0
- package/dist/components/button/Button.d.ts.map +1 -0
- package/dist/components/button-group/ButtonGroup.d.ts +34 -0
- package/dist/components/button-group/ButtonGroup.d.ts.map +1 -0
- package/dist/components/card/Card.d.ts +234 -0
- package/dist/components/card/Card.d.ts.map +1 -0
- package/dist/components/checkbox/Checkbox.d.ts +42 -0
- package/dist/components/checkbox/Checkbox.d.ts.map +1 -0
- package/dist/components/code-block/CodeBlock.d.ts +17 -0
- package/dist/components/code-block/CodeBlock.d.ts.map +1 -0
- package/dist/components/color-picker/ColorPicker.d.ts +76 -0
- package/dist/components/color-picker/ColorPicker.d.ts.map +1 -0
- package/dist/components/color-picker/ColorPickerRac.d.ts +76 -0
- package/dist/components/color-picker/ColorPickerRac.d.ts.map +1 -0
- package/dist/components/command-menu/CommandMenu.d.ts +74 -0
- package/dist/components/command-menu/CommandMenu.d.ts.map +1 -0
- package/dist/components/data-table/DataTable.d.ts +78 -0
- package/dist/components/data-table/DataTable.d.ts.map +1 -0
- package/dist/components/datepicker/Datepicker.d.ts +104 -0
- package/dist/components/datepicker/Datepicker.d.ts.map +1 -0
- package/dist/components/digit-input/DigitInput.d.ts +21 -0
- package/dist/components/digit-input/DigitInput.d.ts.map +1 -0
- package/dist/components/divider/Divider.d.ts +26 -0
- package/dist/components/divider/Divider.d.ts.map +1 -0
- package/dist/components/drawer/Drawer.d.ts +71 -0
- package/dist/components/drawer/Drawer.d.ts.map +1 -0
- package/dist/components/dropdown/Dropdown.d.ts +147 -0
- package/dist/components/dropdown/Dropdown.d.ts.map +1 -0
- package/dist/components/dropdown/dropdownGeometry.d.ts +10 -0
- package/dist/components/dropdown/dropdownGeometry.d.ts.map +1 -0
- package/dist/components/dropdown/menuKeyboard.d.ts +4 -0
- package/dist/components/dropdown/menuKeyboard.d.ts.map +1 -0
- package/dist/components/dropdown/useDropdownPosition.d.ts +18 -0
- package/dist/components/dropdown/useDropdownPosition.d.ts.map +1 -0
- package/dist/components/example-frame/ExampleFrame.d.ts +53 -0
- package/dist/components/example-frame/ExampleFrame.d.ts.map +1 -0
- package/dist/components/file-upload/FileUpload.d.ts +176 -0
- package/dist/components/file-upload/FileUpload.d.ts.map +1 -0
- package/dist/components/hint/Hint.d.ts +27 -0
- package/dist/components/hint/Hint.d.ts.map +1 -0
- package/dist/components/index.css +6101 -5759
- package/dist/components/index.css.map +4 -4
- package/dist/components/index.d.ts +95 -2679
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +8510 -7659
- package/dist/components/index.js.map +4 -4
- package/dist/components/input/Input.d.ts +73 -0
- package/dist/components/input/Input.d.ts.map +1 -0
- package/dist/components/kbd/Kbd.d.ts +15 -0
- package/dist/components/kbd/Kbd.d.ts.map +1 -0
- package/dist/components/label/Label.d.ts +29 -0
- package/dist/components/label/Label.d.ts.map +1 -0
- package/dist/components/link-button/LinkButton.d.ts +18 -0
- package/dist/components/link-button/LinkButton.d.ts.map +1 -0
- package/dist/components/modal/Modal.d.ts +58 -0
- package/dist/components/modal/Modal.d.ts.map +1 -0
- package/dist/components/notification/Notification.d.ts +42 -0
- package/dist/components/notification/Notification.d.ts.map +1 -0
- package/dist/components/notification/NotificationStore.d.ts +18 -0
- package/dist/components/notification/NotificationStore.d.ts.map +1 -0
- package/dist/components/page-content/PageContent.d.ts +51 -0
- package/dist/components/page-content/PageContent.d.ts.map +1 -0
- package/dist/components/pagination/Pagination.d.ts +19 -0
- package/dist/components/pagination/Pagination.d.ts.map +1 -0
- package/dist/components/popover/Popover.d.ts +48 -0
- package/dist/components/popover/Popover.d.ts.map +1 -0
- package/dist/components/popover/popoverGeometry.d.ts +6 -0
- package/dist/components/popover/popoverGeometry.d.ts.map +1 -0
- package/dist/components/popover/usePopoverPosition.d.ts +18 -0
- package/dist/components/popover/usePopoverPosition.d.ts.map +1 -0
- package/dist/components/progress-bar/ProgressBar.d.ts +14 -0
- package/dist/components/progress-bar/ProgressBar.d.ts.map +1 -0
- package/dist/components/progress-circle/ProgressCircle.d.ts +33 -0
- package/dist/components/progress-circle/ProgressCircle.d.ts.map +1 -0
- package/dist/components/radio/Radio.d.ts +40 -0
- package/dist/components/radio/Radio.d.ts.map +1 -0
- package/dist/components/scroll-container/ScrollContainer.d.ts +42 -0
- package/dist/components/scroll-container/ScrollContainer.d.ts.map +1 -0
- package/dist/components/segmented-control/SegmentedControl.d.ts +40 -0
- package/dist/components/segmented-control/SegmentedControl.d.ts.map +1 -0
- package/dist/components/segmented-progress-bar/SegmentedProgressBar.d.ts +22 -0
- package/dist/components/segmented-progress-bar/SegmentedProgressBar.d.ts.map +1 -0
- package/dist/components/select/Select.d.ts +84 -0
- package/dist/components/select/Select.d.ts.map +1 -0
- package/dist/components/select/selectListbox.d.ts +13 -0
- package/dist/components/select/selectListbox.d.ts.map +1 -0
- package/dist/components/slider/Slider.d.ts +23 -0
- package/dist/components/slider/Slider.d.ts.map +1 -0
- package/dist/components/stepper/HorizontalStepper.d.ts +41 -0
- package/dist/components/stepper/HorizontalStepper.d.ts.map +1 -0
- package/dist/components/stepper/Stepper.d.ts +77 -0
- package/dist/components/stepper/Stepper.d.ts.map +1 -0
- package/dist/components/stepper/VerticalStepper.d.ts +41 -0
- package/dist/components/stepper/VerticalStepper.d.ts.map +1 -0
- package/dist/components/stepper/stepperAlignContext.d.ts +11 -0
- package/dist/components/stepper/stepperAlignContext.d.ts.map +1 -0
- package/dist/components/switch/Switch.d.ts +48 -0
- package/dist/components/switch/Switch.d.ts.map +1 -0
- package/dist/components/tabs/Tabs.d.ts +69 -0
- package/dist/components/tabs/Tabs.d.ts.map +1 -0
- package/dist/components/tag/Tag.d.ts +29 -0
- package/dist/components/tag/Tag.d.ts.map +1 -0
- package/dist/components/textarea/Textarea.d.ts +43 -0
- package/dist/components/textarea/Textarea.d.ts.map +1 -0
- package/dist/components/tooltip/Tooltip.d.ts +47 -0
- package/dist/components/tooltip/Tooltip.d.ts.map +1 -0
- package/dist/components/typography/Typography.d.ts +30 -0
- package/dist/components/typography/Typography.d.ts.map +1 -0
- package/dist/hooks/useControllableState.d.ts +8 -0
- package/dist/hooks/useControllableState.d.ts.map +1 -0
- package/dist/hooks/useEscapeKey.d.ts +7 -0
- package/dist/hooks/useEscapeKey.d.ts.map +1 -0
- package/dist/hooks/useFieldIds.d.ts +17 -0
- package/dist/hooks/useFieldIds.d.ts.map +1 -0
- package/dist/hooks/useFocusTrap.d.ts +16 -0
- package/dist/hooks/useFocusTrap.d.ts.map +1 -0
- package/dist/hooks/useMergedRefs.d.ts +3 -0
- package/dist/hooks/useMergedRefs.d.ts.map +1 -0
- package/dist/hooks/useOutsideClick.d.ts +16 -0
- package/dist/hooks/useOutsideClick.d.ts.map +1 -0
- package/dist/hooks/useOverlayModal.d.ts +7 -0
- package/dist/hooks/useOverlayModal.d.ts.map +1 -0
- package/dist/hooks/usePosition.d.ts +41 -0
- package/dist/hooks/usePosition.d.ts.map +1 -0
- package/dist/hooks/useResponsiveMonths.d.ts +18 -0
- package/dist/hooks/useResponsiveMonths.d.ts.map +1 -0
- package/dist/hooks/useScrollLock.d.ts +8 -0
- package/dist/hooks/useScrollLock.d.ts.map +1 -0
- package/dist/icons/Icon.d.ts +13 -0
- package/dist/icons/Icon.d.ts.map +1 -0
- package/dist/icons/index.d.ts +40 -0
- package/dist/icons/index.d.ts.map +1 -0
- package/dist/index.css +6101 -5759
- package/dist/index.css.map +4 -4
- package/dist/index.d.ts +4 -8
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8509 -7660
- package/dist/index.js.map +4 -4
- package/dist/internal/ControlSizeContext.d.ts +17 -0
- package/dist/internal/ControlSizeContext.d.ts.map +1 -0
- package/dist/internal/DividerContentContext.d.ts +4 -0
- package/dist/internal/DividerContentContext.d.ts.map +1 -0
- package/dist/internal/OverlayPortalLayerContext.d.ts +13 -0
- package/dist/internal/OverlayPortalLayerContext.d.ts.map +1 -0
- package/dist/internal/Portal.d.ts +8 -0
- package/dist/internal/Portal.d.ts.map +1 -0
- package/dist/internal/context.d.ts +11 -0
- package/dist/internal/context.d.ts.map +1 -0
- package/dist/internal/cx.d.ts +2 -0
- package/dist/internal/cx.d.ts.map +1 -0
- package/dist/internal/data-attributes.d.ts +6 -0
- package/dist/internal/data-attributes.d.ts.map +1 -0
- package/dist/internal/highlightTsxHtml.d.ts +3 -0
- package/dist/internal/highlightTsxHtml.d.ts.map +1 -0
- package/dist/internal/layoutPxFromPrimitives.d.ts +13 -0
- package/dist/internal/layoutPxFromPrimitives.d.ts.map +1 -0
- package/dist/internal/mergeRefs.d.ts +4 -0
- package/dist/internal/mergeRefs.d.ts.map +1 -0
- package/dist/internal/runtimeUnits.d.ts +3 -0
- package/dist/internal/runtimeUnits.d.ts.map +1 -0
- package/dist/internal/scrollAncestors.d.ts +3 -0
- package/dist/internal/scrollAncestors.d.ts.map +1 -0
- package/dist/internal/slot.d.ts +19 -0
- package/dist/internal/slot.d.ts.map +1 -0
- package/dist/internal/states.d.ts +87 -0
- package/dist/internal/states.d.ts.map +1 -0
- package/dist/layout/app-shell/AppShell.d.ts +54 -0
- package/dist/layout/app-shell/AppShell.d.ts.map +1 -0
- package/dist/layout/index.d.ts +7 -0
- package/dist/layout/index.d.ts.map +1 -0
- package/dist/layout/sidebar/Sidebar.d.ts +241 -0
- package/dist/layout/sidebar/Sidebar.d.ts.map +1 -0
- package/dist/layout/sidebar/SidebarRoot.d.ts +51 -0
- package/dist/layout/sidebar/SidebarRoot.d.ts.map +1 -0
- package/dist/layout/sidebar/sidebar-context.d.ts +19 -0
- package/dist/layout/sidebar/sidebar-context.d.ts.map +1 -0
- package/dist/layout/sidebar/sidebarLayout.d.ts +12 -0
- package/dist/layout/sidebar/sidebarLayout.d.ts.map +1 -0
- package/dist/tokens/primitives.d.ts +390 -0
- package/dist/tokens/primitives.d.ts.map +1 -0
- package/dist/tokens/semantic.d.ts +732 -0
- package/dist/tokens/semantic.d.ts.map +1 -0
- package/dist/tokens/themes/dark.d.ts +143 -0
- package/dist/tokens/themes/dark.d.ts.map +1 -0
- package/dist/tokens/themes/light.d.ts +16 -0
- package/dist/tokens/themes/light.d.ts.map +1 -0
- package/package.json +9 -4
- package/src/components/accordion/COMPONENT.md +137 -0
- package/src/components/avatar/COMPONENT.md +100 -0
- package/src/components/badge/COMPONENT.md +78 -0
- package/src/components/banner/COMPONENT.md +118 -0
- package/src/components/breadcrumb/COMPONENT.md +94 -0
- package/src/components/button/COMPONENT.md +80 -0
- package/src/components/button-group/COMPONENT.md +83 -0
- package/src/components/card/COMPONENT.md +489 -0
- package/src/components/checkbox/COMPONENT.md +98 -0
- package/src/components/code-block/COMPONENT.md +58 -0
- package/src/components/color-picker/COMPONENT.md +149 -0
- package/src/components/command-menu/COMPONENT.md +167 -0
- package/src/components/data-table/COMPONENT.md +113 -0
- package/src/components/datepicker/COMPONENT.md +137 -0
- package/src/components/digit-input/COMPONENT.md +68 -0
- package/src/components/divider/COMPONENT.md +70 -0
- package/src/components/drawer/COMPONENT.md +149 -0
- package/src/components/dropdown/COMPONENT.md +192 -0
- package/src/components/file-upload/COMPONENT.md +200 -0
- package/src/components/hint/COMPONENT.md +67 -0
- package/src/components/input/COMPONENT.md +119 -0
- package/src/components/kbd/COMPONENT.md +59 -0
- package/src/components/label/COMPONENT.md +94 -0
- package/src/components/link-button/COMPONENT.md +60 -0
- package/src/components/modal/COMPONENT.md +105 -0
- package/src/components/notification/COMPONENT.md +120 -0
- package/src/components/pagination/COMPONENT.md +61 -0
- package/src/components/popover/COMPONENT.md +93 -0
- package/src/components/progress-bar/COMPONENT.md +59 -0
- package/src/components/progress-circle/COMPONENT.md +63 -0
- package/src/components/radio/COMPONENT.md +95 -0
- package/src/components/segmented-control/COMPONENT.md +86 -0
- package/src/components/segmented-progress-bar/COMPONENT.md +75 -0
- package/src/components/select/COMPONENT.md +175 -0
- package/src/components/slider/COMPONENT.md +62 -0
- package/src/components/stepper/COMPONENT.md +186 -0
- package/src/components/switch/COMPONENT.md +98 -0
- package/src/components/tabs/COMPONENT.md +114 -0
- package/src/components/tag/COMPONENT.md +67 -0
- package/src/components/textarea/COMPONENT.md +98 -0
- package/src/components/tooltip/COMPONENT.md +87 -0
- package/src/components/typography/COMPONENT.md +89 -0
- package/src/styles/theme-dark.css +43 -0
- package/src/styles/theme-light.css +43 -0
- package/src/styles/tokens.css +23 -4
- package/src/styles/tokens.test.ts +0 -27
|
@@ -0,0 +1,732 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Семантика: нейтральные поверхности — `color.gray.0` (бумага); литеральный светлый текст на тёмном — `color.white`;
|
|
3
|
+
* акцентный «чёрный» — `color.black`. См. план §3.1.
|
|
4
|
+
*/
|
|
5
|
+
export declare const semanticTokens: {
|
|
6
|
+
readonly color: {
|
|
7
|
+
readonly surface: {
|
|
8
|
+
readonly default: "{color.gray.50}";
|
|
9
|
+
readonly raised: "{color.gray.0}";
|
|
10
|
+
readonly elevated: "{color.gray.0}";
|
|
11
|
+
readonly overlay: "{color.overlay.scrimLight}";
|
|
12
|
+
readonly accentSoft: "{color.gray.100}";
|
|
13
|
+
readonly dangerSoft: "{color.red.50}";
|
|
14
|
+
};
|
|
15
|
+
readonly content: {
|
|
16
|
+
readonly primary: "{color.gray.950}";
|
|
17
|
+
readonly secondary: "{color.gray.600}";
|
|
18
|
+
readonly muted: "{color.gray.500}";
|
|
19
|
+
readonly disabled: "{color.gray.400}";
|
|
20
|
+
readonly inverse: "{color.white}";
|
|
21
|
+
readonly accent: "{color.gray.800}";
|
|
22
|
+
readonly danger: "{color.red.800}";
|
|
23
|
+
};
|
|
24
|
+
readonly border: {
|
|
25
|
+
readonly subtle: "{color.gray.200}";
|
|
26
|
+
readonly separator: "{color.gray.300}";
|
|
27
|
+
readonly strong: "{color.gray.300}";
|
|
28
|
+
readonly emphasis: "{color.gray.950}";
|
|
29
|
+
readonly muted: "{color.gray.200}";
|
|
30
|
+
readonly accent: "{color.gray.400}";
|
|
31
|
+
readonly danger: "{color.red.400}";
|
|
32
|
+
readonly disabled: "{color.gray.100}";
|
|
33
|
+
readonly inverse: "{color.white}";
|
|
34
|
+
};
|
|
35
|
+
readonly status: {
|
|
36
|
+
readonly information: {
|
|
37
|
+
readonly background: "{color.blue.50}";
|
|
38
|
+
readonly backgroundEmphasis: "{color.blue.600}";
|
|
39
|
+
readonly foreground: "{color.blue.900}";
|
|
40
|
+
readonly border: "{color.blue.200}";
|
|
41
|
+
};
|
|
42
|
+
readonly warning: {
|
|
43
|
+
readonly background: "{color.orange.50}";
|
|
44
|
+
readonly backgroundEmphasis: "{color.orange.600}";
|
|
45
|
+
readonly foreground: "{color.orange.900}";
|
|
46
|
+
readonly border: "{color.orange.200}";
|
|
47
|
+
};
|
|
48
|
+
readonly success: {
|
|
49
|
+
readonly background: "{color.green.50}";
|
|
50
|
+
readonly backgroundEmphasis: "{color.green.600}";
|
|
51
|
+
readonly foreground: "{color.green.900}";
|
|
52
|
+
readonly border: "{color.green.200}";
|
|
53
|
+
};
|
|
54
|
+
readonly away: {
|
|
55
|
+
readonly background: "{color.yellow.50}";
|
|
56
|
+
readonly backgroundEmphasis: "{color.yellow.600}";
|
|
57
|
+
readonly foreground: "{color.yellow.900}";
|
|
58
|
+
readonly border: "{color.yellow.200}";
|
|
59
|
+
};
|
|
60
|
+
readonly feature: {
|
|
61
|
+
readonly background: "{color.purple.50}";
|
|
62
|
+
readonly backgroundEmphasis: "{color.purple.600}";
|
|
63
|
+
readonly foreground: "{color.purple.900}";
|
|
64
|
+
readonly border: "{color.purple.200}";
|
|
65
|
+
};
|
|
66
|
+
readonly verified: {
|
|
67
|
+
readonly background: "{color.sky.50}";
|
|
68
|
+
readonly backgroundEmphasis: "{color.sky.600}";
|
|
69
|
+
readonly foreground: "{color.sky.900}";
|
|
70
|
+
readonly border: "{color.sky.200}";
|
|
71
|
+
};
|
|
72
|
+
readonly error: {
|
|
73
|
+
readonly background: "{color.red.50}";
|
|
74
|
+
readonly backgroundEmphasis: "{color.red.600}";
|
|
75
|
+
readonly foreground: "{color.red.900}";
|
|
76
|
+
readonly border: "{color.red.200}";
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
readonly focus: {
|
|
80
|
+
readonly ring: "{color.gray.950}";
|
|
81
|
+
};
|
|
82
|
+
readonly action: {
|
|
83
|
+
readonly primaryBackground: "{color.gray.950}";
|
|
84
|
+
readonly primaryBackgroundHover: "{color.gray.800}";
|
|
85
|
+
readonly primaryForeground: "{color.white}";
|
|
86
|
+
readonly primarySoftBackground: "{color.gray.100}";
|
|
87
|
+
readonly primarySoftForeground: "{color.gray.950}";
|
|
88
|
+
readonly neutralBackground: "{color.gray.50}";
|
|
89
|
+
readonly neutralBackgroundHover: "{color.gray.100}";
|
|
90
|
+
readonly neutralForeground: "{color.gray.600}";
|
|
91
|
+
readonly errorBackground: "{color.red.600}";
|
|
92
|
+
readonly errorBackgroundHover: "{color.red.700}";
|
|
93
|
+
readonly errorForeground: "{color.white}";
|
|
94
|
+
};
|
|
95
|
+
readonly field: {
|
|
96
|
+
readonly bg: "{color.gray.50}";
|
|
97
|
+
readonly text: "{color.gray.950}";
|
|
98
|
+
readonly placeholder: "{color.gray.400}";
|
|
99
|
+
readonly border: "{color.gray.200}";
|
|
100
|
+
readonly borderHover: "{color.gray.300}";
|
|
101
|
+
readonly borderFocus: "{color.gray.800}";
|
|
102
|
+
readonly borderError: "{color.red.500}";
|
|
103
|
+
};
|
|
104
|
+
readonly tooltip: {
|
|
105
|
+
readonly background: "{color.gray.900}";
|
|
106
|
+
readonly foreground: "{color.white}";
|
|
107
|
+
readonly border: "{color.gray.700}";
|
|
108
|
+
};
|
|
109
|
+
/** Бейдж: серый filled + палитры pink/teal без прямых `--prime-ref-*` в CSS компонента. */
|
|
110
|
+
readonly badge: {
|
|
111
|
+
readonly grayFilled: {
|
|
112
|
+
readonly background: "{color.gray.600}";
|
|
113
|
+
};
|
|
114
|
+
readonly pink: {
|
|
115
|
+
readonly backgroundSoft: "{color.pink.50}";
|
|
116
|
+
readonly foregroundOnSoft: "{color.pink.700}";
|
|
117
|
+
readonly backgroundEmphasis: "{color.pink.500}";
|
|
118
|
+
readonly border: "{color.pink.300}";
|
|
119
|
+
};
|
|
120
|
+
readonly teal: {
|
|
121
|
+
readonly backgroundSoft: "{color.teal.50}";
|
|
122
|
+
readonly foregroundOnSoft: "{color.teal.700}";
|
|
123
|
+
readonly backgroundEmphasis: "{color.teal.500}";
|
|
124
|
+
readonly border: "{color.teal.300}";
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
/**
|
|
128
|
+
* Разделители ячеек таблицы: смешение с `border-subtle` (тема задаёт процент в light/dark).
|
|
129
|
+
*/
|
|
130
|
+
readonly dataTable: {
|
|
131
|
+
readonly dividerVertical: "color-mix(in srgb, var(--prime-sys-color-border-subtle) 72%, transparent)";
|
|
132
|
+
readonly dividerHorizontal: "color-mix(in srgb, var(--prime-sys-color-border-subtle) 82%, transparent)";
|
|
133
|
+
readonly headBackground: "{color.surface.default}";
|
|
134
|
+
readonly rowBackground: "{color.surface.elevated}";
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
readonly typography: {
|
|
138
|
+
readonly family: {
|
|
139
|
+
readonly base: "{font.family.base}";
|
|
140
|
+
};
|
|
141
|
+
readonly body: {
|
|
142
|
+
readonly size: "{font.size.s}";
|
|
143
|
+
readonly lineHeight: "{typography.lineHeight.normal}";
|
|
144
|
+
readonly letterSpacing: "{font.letterSpacing.normal}";
|
|
145
|
+
};
|
|
146
|
+
readonly lineHeight: {
|
|
147
|
+
readonly tight: "1.25";
|
|
148
|
+
readonly normal: "1.5";
|
|
149
|
+
readonly relaxed: "1.65";
|
|
150
|
+
};
|
|
151
|
+
readonly control: {
|
|
152
|
+
readonly s: "{font.size.xs}";
|
|
153
|
+
readonly m: "{font.size.s}";
|
|
154
|
+
readonly l: "{font.size.m}";
|
|
155
|
+
};
|
|
156
|
+
readonly support: {
|
|
157
|
+
readonly "3xs": "{font.size.3xs}";
|
|
158
|
+
readonly "2xs": "{font.size.2xs}";
|
|
159
|
+
readonly xs: "{font.size.xs}";
|
|
160
|
+
readonly s: "{font.size.s}";
|
|
161
|
+
};
|
|
162
|
+
readonly weight: {
|
|
163
|
+
readonly regular: "{font.weight.regular}";
|
|
164
|
+
readonly medium: "{font.weight.medium}";
|
|
165
|
+
readonly semibold: "{font.weight.semibold}";
|
|
166
|
+
readonly bold: "{font.weight.bold}";
|
|
167
|
+
};
|
|
168
|
+
readonly style: {
|
|
169
|
+
readonly normal: "normal";
|
|
170
|
+
readonly italic: "italic";
|
|
171
|
+
};
|
|
172
|
+
readonly title: {
|
|
173
|
+
readonly size: "{font.size.l}";
|
|
174
|
+
readonly weight: "{font.weight.semibold}";
|
|
175
|
+
};
|
|
176
|
+
readonly sizeScale: {
|
|
177
|
+
readonly "3xs": "{font.size.3xs}";
|
|
178
|
+
readonly "2xs": "{font.size.2xs}";
|
|
179
|
+
readonly xs: "{font.size.xs}";
|
|
180
|
+
readonly s: "{font.size.s}";
|
|
181
|
+
readonly m: "{font.size.m}";
|
|
182
|
+
readonly l: "{font.size.l}";
|
|
183
|
+
readonly xl: "{font.size.xl}";
|
|
184
|
+
readonly "2xl": "{font.size.2xl}";
|
|
185
|
+
readonly "3xl": "{font.size.3xl}";
|
|
186
|
+
readonly "4xl": "{font.size.4xl}";
|
|
187
|
+
readonly "5xl": "{font.size.5xl}";
|
|
188
|
+
readonly "6xl": "{font.size.6xl}";
|
|
189
|
+
readonly "7xl": "{font.size.7xl}";
|
|
190
|
+
readonly "8xl": "{font.size.8xl}";
|
|
191
|
+
readonly "9xl": "{font.size.9xl}";
|
|
192
|
+
readonly labelMicro: "{font.size.labelMicro}";
|
|
193
|
+
};
|
|
194
|
+
readonly lineHeightScale: {
|
|
195
|
+
readonly "3xs": "{font.lineHeight.3xs}";
|
|
196
|
+
readonly "2xs": "{font.lineHeight.2xs}";
|
|
197
|
+
readonly xs: "{font.lineHeight.xs}";
|
|
198
|
+
readonly s: "{font.lineHeight.s}";
|
|
199
|
+
readonly m: "{font.lineHeight.m}";
|
|
200
|
+
readonly l: "{font.lineHeight.l}";
|
|
201
|
+
readonly xl: "{font.lineHeight.xl}";
|
|
202
|
+
readonly "2xl": "{font.lineHeight.2xl}";
|
|
203
|
+
readonly "3xl": "{font.lineHeight.3xl}";
|
|
204
|
+
readonly "4xl": "{font.lineHeight.4xl}";
|
|
205
|
+
readonly "5xl": "{font.lineHeight.5xl}";
|
|
206
|
+
readonly "6xl": "{font.lineHeight.6xl}";
|
|
207
|
+
readonly "7xl": "{font.lineHeight.7xl}";
|
|
208
|
+
readonly "8xl": "{font.lineHeight.8xl}";
|
|
209
|
+
readonly "9xl": "{font.lineHeight.9xl}";
|
|
210
|
+
readonly labelMicro: "{font.lineHeight.labelMicro}";
|
|
211
|
+
};
|
|
212
|
+
readonly tracking: {
|
|
213
|
+
readonly tighter: "{font.letterSpacing.tighter}";
|
|
214
|
+
readonly tight: "{font.letterSpacing.tight}";
|
|
215
|
+
readonly normal: "{font.letterSpacing.normal}";
|
|
216
|
+
readonly wide: "{font.letterSpacing.wide}";
|
|
217
|
+
readonly wider: "{font.letterSpacing.wider}";
|
|
218
|
+
};
|
|
219
|
+
/**
|
|
220
|
+
* Семантические роли чтения (Typography `variant`): пары `fontSize` / `lineHeight` согласованы
|
|
221
|
+
* по смыслу с [Material Design 3 type scale](https://m3.material.io/styles/typography/type-scale-tokens)
|
|
222
|
+
* (Display / Headline / Title / Body / Label), [Polaris Text](https://polaris.shopify.com/components/typography/text)
|
|
223
|
+
* и уровнями текста [Apple HIG — Typography](https://developer.apple.com/design/human-interface-guidelines/typography)
|
|
224
|
+
* (Large Title … Caption). Кегли — в `font.size.*`; ниже — ссылки на ступени `sizeScale`.
|
|
225
|
+
*/
|
|
226
|
+
readonly role: {
|
|
227
|
+
/** MD3 Display Large (57/45); Polaris `heading3xl`; Apple Large Title */
|
|
228
|
+
readonly display: {
|
|
229
|
+
readonly fontSize: "{typography.sizeScale.9xl}";
|
|
230
|
+
readonly lineHeight: "{typography.lineHeightScale.9xl}";
|
|
231
|
+
};
|
|
232
|
+
/** MD3 Headline Large (32/40); Polaris `heading2xl`; Apple Title 1 */
|
|
233
|
+
readonly headline: {
|
|
234
|
+
readonly fontSize: "{typography.sizeScale.6xl}";
|
|
235
|
+
readonly lineHeight: "{typography.lineHeightScale.6xl}";
|
|
236
|
+
};
|
|
237
|
+
/** MD3 Headline Medium (28/36); Polaris `headingXl`; Apple Title 2 */
|
|
238
|
+
readonly headingPage: {
|
|
239
|
+
readonly fontSize: "{typography.sizeScale.4xl}";
|
|
240
|
+
readonly lineHeight: "{typography.lineHeightScale.4xl}";
|
|
241
|
+
};
|
|
242
|
+
/** MD3 Headline Small (24/32); Polaris `headingLg`; Apple Title 3 */
|
|
243
|
+
readonly headingSection: {
|
|
244
|
+
readonly fontSize: "{typography.sizeScale.2xl}";
|
|
245
|
+
readonly lineHeight: "{typography.lineHeightScale.2xl}";
|
|
246
|
+
};
|
|
247
|
+
/** MD3 Title Large (22/28); Polaris `headingMd`; Apple Headline */
|
|
248
|
+
readonly headingSubsection: {
|
|
249
|
+
readonly fontSize: "{typography.sizeScale.xl}";
|
|
250
|
+
readonly lineHeight: "{typography.lineHeightScale.xl}";
|
|
251
|
+
};
|
|
252
|
+
/** MD3 Title Small (14/20); Polaris `headingSm` / `headingXs`; Apple Subheadline / Footnote */
|
|
253
|
+
readonly headingGroup: {
|
|
254
|
+
readonly fontSize: "{typography.sizeScale.xs}";
|
|
255
|
+
readonly lineHeight: "{typography.lineHeightScale.xs}";
|
|
256
|
+
};
|
|
257
|
+
/** MD3 Body Large (~16px); Polaris bodyLg; Apple Body / Callout */
|
|
258
|
+
readonly bodyLarge: {
|
|
259
|
+
readonly fontSize: "{typography.sizeScale.s}";
|
|
260
|
+
readonly lineHeight: "{typography.lineHeightScale.s}";
|
|
261
|
+
};
|
|
262
|
+
/** MD3 Body Medium (~14px); Polaris bodyMd; Apple Subheadline / Footnote */
|
|
263
|
+
readonly bodyDefault: {
|
|
264
|
+
readonly fontSize: "{typography.sizeScale.xs}";
|
|
265
|
+
readonly lineHeight: "{typography.lineHeightScale.xs}";
|
|
266
|
+
};
|
|
267
|
+
/** MD3 Body Small (~12px); Polaris bodySm; Apple Footnote */
|
|
268
|
+
readonly bodySmall: {
|
|
269
|
+
readonly fontSize: "{typography.sizeScale.2xs}";
|
|
270
|
+
readonly lineHeight: "{typography.lineHeightScale.2xs}";
|
|
271
|
+
};
|
|
272
|
+
/** MD3 Label Large (14/20): кегль как у Body Medium, межстрочный плотнее (`2xs`), чем у `body-default` */
|
|
273
|
+
readonly bodyCompact: {
|
|
274
|
+
readonly fontSize: "{typography.sizeScale.xs}";
|
|
275
|
+
readonly lineHeight: "{typography.lineHeightScale.2xs}";
|
|
276
|
+
};
|
|
277
|
+
/** MD3 Label Medium (~12px); Apple Caption1 */
|
|
278
|
+
readonly caption: {
|
|
279
|
+
readonly fontSize: "{typography.sizeScale.2xs}";
|
|
280
|
+
readonly lineHeight: "{typography.lineHeightScale.2xs}";
|
|
281
|
+
};
|
|
282
|
+
/** MD3 Label Small (~11px); Apple Caption2 */
|
|
283
|
+
readonly captionMicro: {
|
|
284
|
+
readonly fontSize: "{typography.sizeScale.labelMicro}";
|
|
285
|
+
readonly lineHeight: "{typography.lineHeightScale.labelMicro}";
|
|
286
|
+
};
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
readonly shape: {
|
|
290
|
+
readonly radius: {
|
|
291
|
+
readonly xs: "{radius.xs}";
|
|
292
|
+
readonly s: "{radius.s}";
|
|
293
|
+
readonly m: "{radius.m}";
|
|
294
|
+
readonly l: "{radius.l}";
|
|
295
|
+
readonly "4xl": "{radius.4xl}";
|
|
296
|
+
readonly round: "{radius.round}";
|
|
297
|
+
};
|
|
298
|
+
};
|
|
299
|
+
readonly border: {
|
|
300
|
+
readonly width: {
|
|
301
|
+
readonly control: "1px";
|
|
302
|
+
readonly focusRing: "2px";
|
|
303
|
+
};
|
|
304
|
+
};
|
|
305
|
+
/**
|
|
306
|
+
* Алиасы сетки → примитивы `spaces.layout.*`. `x*` — счётчики шагов по **4px** для layout (drawer и т.д.).
|
|
307
|
+
*/
|
|
308
|
+
readonly spacing: {
|
|
309
|
+
readonly xs: "{spaces.layout.xs}";
|
|
310
|
+
readonly s: "{spaces.layout.s}";
|
|
311
|
+
readonly m: "{spaces.layout.m}";
|
|
312
|
+
readonly l: "{spaces.layout.l}";
|
|
313
|
+
readonly xl: "{spaces.layout.xl}";
|
|
314
|
+
readonly "2xl": "{spaces.layout.2xl}";
|
|
315
|
+
readonly "3xl": "{spaces.layout.3xl}";
|
|
316
|
+
readonly "4xl": "{spaces.layout.4xl}";
|
|
317
|
+
readonly "5xl": "{spaces.layout.5xl}";
|
|
318
|
+
readonly "6xl": "{spaces.layout.6xl}";
|
|
319
|
+
readonly x0: "{spaces.layout.0}";
|
|
320
|
+
readonly x1: "{spaces.layout.xs}";
|
|
321
|
+
readonly x2: "{spaces.layout.s}";
|
|
322
|
+
readonly x3: "{spaces.layout.m}";
|
|
323
|
+
readonly x4: "{spaces.layout.l}";
|
|
324
|
+
readonly x5: "{spaces.layout.xl}";
|
|
325
|
+
readonly x6: "{spaces.layout.2xl}";
|
|
326
|
+
readonly x8: "{spaces.layout.3xl}";
|
|
327
|
+
readonly x10: "{spaces.layout.4xl}";
|
|
328
|
+
readonly x12: "{spaces.layout.5xl}";
|
|
329
|
+
readonly x14: "{spaces.layout.6xl}";
|
|
330
|
+
};
|
|
331
|
+
/**
|
|
332
|
+
* Слои наложения: `--prime-sys-elevation-zIndex-*` + контекст `OverlayPortalLayer` для порталов
|
|
333
|
+
* (popover/dropdown/tooltip внутри drawer/modal — см. `drawerInModal`, `*InModal`, `*InDrawerInModal`).
|
|
334
|
+
*/
|
|
335
|
+
readonly elevation: {
|
|
336
|
+
readonly zIndex: {
|
|
337
|
+
readonly base: "{zIndex.base}";
|
|
338
|
+
readonly sticky: "{zIndex.sticky}";
|
|
339
|
+
readonly popover: "{zIndex.popover}";
|
|
340
|
+
readonly dropdown: "{zIndex.dropdown}";
|
|
341
|
+
readonly tooltip: "{zIndex.tooltip}";
|
|
342
|
+
readonly drawer: "{zIndex.drawer}";
|
|
343
|
+
readonly modal: "{zIndex.modal}";
|
|
344
|
+
readonly popoverInDrawer: "{zIndex.popoverInDrawer}";
|
|
345
|
+
readonly dropdownInDrawer: "{zIndex.dropdownInDrawer}";
|
|
346
|
+
readonly tooltipInDrawer: "{zIndex.tooltipInDrawer}";
|
|
347
|
+
readonly popoverInModal: "{zIndex.popoverInModal}";
|
|
348
|
+
readonly dropdownInModal: "{zIndex.dropdownInModal}";
|
|
349
|
+
readonly tooltipInModal: "{zIndex.tooltipInModal}";
|
|
350
|
+
readonly drawerNestedShell: "{zIndex.drawerNestedShell}";
|
|
351
|
+
readonly popoverInDrawerInModal: "{zIndex.popoverInDrawerInModal}";
|
|
352
|
+
readonly dropdownInDrawerInModal: "{zIndex.dropdownInDrawerInModal}";
|
|
353
|
+
readonly tooltipInDrawerInModal: "{zIndex.tooltipInDrawerInModal}";
|
|
354
|
+
readonly toast: "{zIndex.toast}";
|
|
355
|
+
};
|
|
356
|
+
readonly shadow: {
|
|
357
|
+
readonly surface: "{shadow.s}";
|
|
358
|
+
readonly modal: "{shadow.3xl}";
|
|
359
|
+
readonly tooltip: "0 12px 28px rgba(15, 17, 21, 0.22), 0 4px 10px rgba(15, 17, 21, 0.16)";
|
|
360
|
+
readonly buttonFocus: "0 0 0 2px rgba(10, 10, 12, 0.14)";
|
|
361
|
+
readonly primaryFocus: "0 0 0 2px rgba(10, 10, 12, 0.2)";
|
|
362
|
+
readonly errorFocus: "0 0 0 2px rgba(220, 38, 38, 0.2)";
|
|
363
|
+
readonly fancyButtonNeutral: "0 1px 2px rgba(14, 18, 27, 0.24), 0 0 0 1px var(--prime-sys-color-content-primary)";
|
|
364
|
+
readonly fancyButtonPrimary: "0 1px 2px rgba(14, 18, 27, 0.24), 0 0 0 1px var(--prime-sys-color-action-primaryBackground)";
|
|
365
|
+
readonly fancyButtonError: "0 1px 2px rgba(14, 18, 27, 0.24), 0 0 0 1px var(--prime-sys-color-action-errorBackground)";
|
|
366
|
+
};
|
|
367
|
+
};
|
|
368
|
+
readonly size: {
|
|
369
|
+
/**
|
|
370
|
+
* Ярусы контрола: одна ось высоты (`size.*`), общая иконка/типографика,
|
|
371
|
+
* `gap` / `inputPaddingX` — `primitive.spaces.control.spacing.*` (линейно s→xl), совпадают внутри яруса.
|
|
372
|
+
* `buttonPadding*` — `primitive.spaces.control.button.*` (линейно s→xl).
|
|
373
|
+
* `inputPaddingY` — вертикаль поля (по `spacing.*`).
|
|
374
|
+
* `radius` — `primitive.radius.*` по ярусу (контролы xs…xl; см. `shape.radius` для крупных поверхностей).
|
|
375
|
+
*/
|
|
376
|
+
readonly control: {
|
|
377
|
+
readonly xs: {
|
|
378
|
+
readonly height: "{size.xs}";
|
|
379
|
+
readonly radius: "{radius.xs}";
|
|
380
|
+
readonly icon: "{icon.xs}";
|
|
381
|
+
readonly gap: "{spacing.xs}";
|
|
382
|
+
readonly buttonPaddingX: "{spacing.s}";
|
|
383
|
+
readonly buttonPaddingY: "{spacing.s}";
|
|
384
|
+
readonly inputPaddingX: "{spacing.xs}";
|
|
385
|
+
readonly inputPaddingY: "{spacing.xs}";
|
|
386
|
+
readonly text: "{typography.support.3xs}";
|
|
387
|
+
readonly supportText: "{typography.support.3xs}";
|
|
388
|
+
};
|
|
389
|
+
readonly s: {
|
|
390
|
+
readonly height: "{size.s}";
|
|
391
|
+
readonly radius: "{radius.s}";
|
|
392
|
+
readonly icon: "{icon.s}";
|
|
393
|
+
readonly gap: "{spaces.control.spacing.s}";
|
|
394
|
+
readonly buttonPaddingX: "{spaces.control.button.s}";
|
|
395
|
+
readonly buttonPaddingY: "{spaces.control.button.s}";
|
|
396
|
+
readonly inputPaddingX: "{spaces.control.spacing.s}";
|
|
397
|
+
readonly inputPaddingY: "{spacing.xs}";
|
|
398
|
+
readonly text: "{typography.support.2xs}";
|
|
399
|
+
readonly supportText: "{typography.support.2xs}";
|
|
400
|
+
};
|
|
401
|
+
readonly m: {
|
|
402
|
+
readonly height: "{size.m}";
|
|
403
|
+
readonly radius: "{radius.m}";
|
|
404
|
+
readonly icon: "{icon.m}";
|
|
405
|
+
readonly gap: "{spaces.control.spacing.m}";
|
|
406
|
+
readonly buttonPaddingX: "{spaces.control.button.m}";
|
|
407
|
+
readonly buttonPaddingY: "{spaces.control.button.m}";
|
|
408
|
+
readonly inputPaddingX: "{spaces.control.spacing.m}";
|
|
409
|
+
readonly inputPaddingY: "{spacing.s}";
|
|
410
|
+
readonly text: "{typography.control.s}";
|
|
411
|
+
readonly supportText: "{typography.support.2xs}";
|
|
412
|
+
};
|
|
413
|
+
readonly l: {
|
|
414
|
+
readonly height: "{size.l}";
|
|
415
|
+
readonly radius: "{radius.l}";
|
|
416
|
+
readonly icon: "{icon.l}";
|
|
417
|
+
readonly gap: "{spaces.control.spacing.l}";
|
|
418
|
+
readonly buttonPaddingX: "{spaces.control.button.l}";
|
|
419
|
+
readonly buttonPaddingY: "{spaces.control.button.l}";
|
|
420
|
+
readonly inputPaddingX: "{spaces.control.spacing.l}";
|
|
421
|
+
readonly inputPaddingY: "{spacing.s}";
|
|
422
|
+
readonly text: "{typography.control.m}";
|
|
423
|
+
readonly supportText: "{typography.support.xs}";
|
|
424
|
+
};
|
|
425
|
+
readonly xl: {
|
|
426
|
+
readonly height: "{size.xl}";
|
|
427
|
+
readonly radius: "{radius.xl}";
|
|
428
|
+
readonly icon: "{icon.xl}";
|
|
429
|
+
readonly gap: "{spaces.control.spacing.xl}";
|
|
430
|
+
readonly buttonPaddingX: "{spaces.control.button.xl}";
|
|
431
|
+
readonly buttonPaddingY: "{spaces.control.button.xl}";
|
|
432
|
+
readonly inputPaddingX: "{spaces.control.spacing.xl}";
|
|
433
|
+
readonly inputPaddingY: "{spacing.m}";
|
|
434
|
+
readonly text: "{typography.control.l}";
|
|
435
|
+
readonly supportText: "{typography.support.xs}";
|
|
436
|
+
};
|
|
437
|
+
};
|
|
438
|
+
readonly modal: {
|
|
439
|
+
readonly radius: "{shape.radius.4xl}";
|
|
440
|
+
readonly maxWidth: "30rem";
|
|
441
|
+
readonly paddingX: "{spacing.xl}";
|
|
442
|
+
readonly paddingY: "{spacing.xl}";
|
|
443
|
+
readonly titleGap: "{spacing.s}";
|
|
444
|
+
readonly contentGap: "{spacing.l}";
|
|
445
|
+
readonly headerGap: "{spacing.m}";
|
|
446
|
+
readonly headerPaddingBottom: "{spacing.l}";
|
|
447
|
+
readonly headTextPaddingRight: "{spacing.3xl}";
|
|
448
|
+
readonly bodyGap: "{spacing.l}";
|
|
449
|
+
readonly footerGap: "{spacing.m}";
|
|
450
|
+
readonly footerPaddingTop: "{spacing.l}";
|
|
451
|
+
readonly overlayPaddingX: "{spacing.l}";
|
|
452
|
+
readonly overlayPaddingY: "{spacing.l}";
|
|
453
|
+
readonly headerIconSize: "{size.m}";
|
|
454
|
+
};
|
|
455
|
+
readonly drawer: {
|
|
456
|
+
readonly s: {
|
|
457
|
+
readonly paddingX: "{spacing.x3}";
|
|
458
|
+
readonly paddingY: "{spacing.x3}";
|
|
459
|
+
readonly titleGap: "{size.control.s.gap}";
|
|
460
|
+
readonly headerGap: "{spacing.x2}";
|
|
461
|
+
readonly footerGap: "{spacing.x2}";
|
|
462
|
+
readonly titleText: "{size.control.s.text}";
|
|
463
|
+
};
|
|
464
|
+
readonly m: {
|
|
465
|
+
readonly paddingX: "{spacing.x5}";
|
|
466
|
+
readonly paddingY: "{spacing.x5}";
|
|
467
|
+
readonly titleGap: "{size.control.m.gap}";
|
|
468
|
+
readonly headerGap: "{spacing.x3}";
|
|
469
|
+
readonly footerGap: "{spacing.x3}";
|
|
470
|
+
readonly titleText: "{size.control.m.text}";
|
|
471
|
+
};
|
|
472
|
+
readonly l: {
|
|
473
|
+
readonly paddingX: "{spacing.x6}";
|
|
474
|
+
readonly paddingY: "{spacing.x6}";
|
|
475
|
+
readonly titleGap: "{size.control.l.gap}";
|
|
476
|
+
readonly headerGap: "{spacing.x3}";
|
|
477
|
+
readonly footerGap: "{spacing.x3}";
|
|
478
|
+
readonly titleText: "{size.control.l.text}";
|
|
479
|
+
};
|
|
480
|
+
readonly xl: {
|
|
481
|
+
readonly paddingX: "{spacing.x8}";
|
|
482
|
+
readonly paddingY: "{spacing.x8}";
|
|
483
|
+
readonly titleGap: "{size.control.xl.gap}";
|
|
484
|
+
readonly headerGap: "{spacing.x4}";
|
|
485
|
+
readonly footerGap: "{spacing.x4}";
|
|
486
|
+
readonly titleText: "{size.control.xl.text}";
|
|
487
|
+
};
|
|
488
|
+
};
|
|
489
|
+
/** Внутренний отступ: одно значение на обе оси (см. `paddingX` = Y). */
|
|
490
|
+
readonly textarea: {
|
|
491
|
+
readonly s: {
|
|
492
|
+
readonly minHeight: "4rem";
|
|
493
|
+
readonly radius: "{radius.s}";
|
|
494
|
+
readonly paddingX: "{spacing.s}";
|
|
495
|
+
};
|
|
496
|
+
readonly m: {
|
|
497
|
+
readonly minHeight: "5rem";
|
|
498
|
+
readonly radius: "{radius.m}";
|
|
499
|
+
readonly paddingX: "{spacing.m}";
|
|
500
|
+
};
|
|
501
|
+
readonly l: {
|
|
502
|
+
readonly minHeight: "6rem";
|
|
503
|
+
readonly radius: "{radius.l}";
|
|
504
|
+
readonly paddingX: "{spacing.l}";
|
|
505
|
+
};
|
|
506
|
+
readonly xl: {
|
|
507
|
+
readonly minHeight: "8rem";
|
|
508
|
+
readonly radius: "{radius.xl}";
|
|
509
|
+
readonly paddingX: "{spacing.xl}";
|
|
510
|
+
};
|
|
511
|
+
};
|
|
512
|
+
readonly choice: {
|
|
513
|
+
readonly s: {
|
|
514
|
+
readonly control: "{icon.s}";
|
|
515
|
+
readonly dot: "{spaces.layout.xs}";
|
|
516
|
+
readonly gap: "{spacing.s}";
|
|
517
|
+
readonly text: "{typography.support.2xs}";
|
|
518
|
+
};
|
|
519
|
+
readonly m: {
|
|
520
|
+
readonly control: "{icon.m}";
|
|
521
|
+
readonly dot: "{spaces.layout.s}";
|
|
522
|
+
readonly gap: "{spacing.s}";
|
|
523
|
+
readonly text: "{typography.control.s}";
|
|
524
|
+
};
|
|
525
|
+
readonly l: {
|
|
526
|
+
readonly control: "{icon.l}";
|
|
527
|
+
readonly dot: "{spaces.layout.s}";
|
|
528
|
+
readonly gap: "{spacing.m}";
|
|
529
|
+
readonly text: "{typography.control.m}";
|
|
530
|
+
};
|
|
531
|
+
readonly xl: {
|
|
532
|
+
readonly control: "{icon.xl}";
|
|
533
|
+
readonly dot: "{spaces.layout.m}";
|
|
534
|
+
readonly gap: "{spacing.l}";
|
|
535
|
+
readonly text: "{typography.control.l}";
|
|
536
|
+
};
|
|
537
|
+
};
|
|
538
|
+
readonly switch: {
|
|
539
|
+
readonly s: {
|
|
540
|
+
readonly trackWidth: "1.75rem";
|
|
541
|
+
readonly trackHeight: "1rem";
|
|
542
|
+
readonly thumb: "{icon.xs}";
|
|
543
|
+
};
|
|
544
|
+
readonly m: {
|
|
545
|
+
readonly trackWidth: "2rem";
|
|
546
|
+
readonly trackHeight: "1.25rem";
|
|
547
|
+
readonly thumb: "{icon.s}";
|
|
548
|
+
};
|
|
549
|
+
readonly l: {
|
|
550
|
+
readonly trackWidth: "2.25rem";
|
|
551
|
+
readonly trackHeight: "1.25rem";
|
|
552
|
+
readonly thumb: "{icon.m}";
|
|
553
|
+
};
|
|
554
|
+
readonly xl: {
|
|
555
|
+
readonly trackWidth: "2.5rem";
|
|
556
|
+
readonly trackHeight: "1.5rem";
|
|
557
|
+
readonly thumb: "{icon.l}";
|
|
558
|
+
};
|
|
559
|
+
};
|
|
560
|
+
/** На ступень ниже кнопки того же яруса; высота из контента + `paddingY`. Боковые — `buttonPaddingX`. */
|
|
561
|
+
readonly badge: {
|
|
562
|
+
readonly s: {
|
|
563
|
+
readonly paddingX: "{size.control.xs.buttonPaddingX}";
|
|
564
|
+
readonly paddingY: "{size.control.xs.inputPaddingY}";
|
|
565
|
+
readonly text: "{size.control.xs.text}";
|
|
566
|
+
readonly dotSize: "{spaces.layout.xs}";
|
|
567
|
+
readonly iconSize: "{size.control.xs.icon}";
|
|
568
|
+
readonly gap: "{size.control.xs.gap}";
|
|
569
|
+
readonly radius: "{size.control.xs.radius}";
|
|
570
|
+
};
|
|
571
|
+
readonly m: {
|
|
572
|
+
readonly paddingX: "{size.control.s.buttonPaddingX}";
|
|
573
|
+
readonly paddingY: "{size.control.s.inputPaddingY}";
|
|
574
|
+
readonly text: "{size.control.s.text}";
|
|
575
|
+
readonly dotSize: "{spaces.layout.s}";
|
|
576
|
+
readonly iconSize: "{size.control.s.icon}";
|
|
577
|
+
readonly gap: "{size.control.s.gap}";
|
|
578
|
+
readonly radius: "{size.control.s.radius}";
|
|
579
|
+
};
|
|
580
|
+
readonly l: {
|
|
581
|
+
readonly paddingX: "{size.control.m.buttonPaddingX}";
|
|
582
|
+
readonly paddingY: "{size.control.m.inputPaddingY}";
|
|
583
|
+
readonly text: "{size.control.m.text}";
|
|
584
|
+
readonly dotSize: "{spaces.layout.m}";
|
|
585
|
+
readonly iconSize: "{size.control.m.icon}";
|
|
586
|
+
readonly gap: "{size.control.m.gap}";
|
|
587
|
+
readonly radius: "{size.control.m.radius}";
|
|
588
|
+
};
|
|
589
|
+
readonly xl: {
|
|
590
|
+
readonly paddingX: "{size.control.l.buttonPaddingX}";
|
|
591
|
+
readonly paddingY: "{size.control.l.inputPaddingY}";
|
|
592
|
+
readonly text: "{size.control.l.text}";
|
|
593
|
+
readonly dotSize: "{spaces.layout.l}";
|
|
594
|
+
readonly iconSize: "{size.control.l.icon}";
|
|
595
|
+
readonly gap: "{size.control.l.gap}";
|
|
596
|
+
readonly radius: "{size.control.l.radius}";
|
|
597
|
+
};
|
|
598
|
+
};
|
|
599
|
+
readonly avatar: {
|
|
600
|
+
readonly s: {
|
|
601
|
+
readonly size: "{size.s}";
|
|
602
|
+
readonly text: "{typography.support.2xs}";
|
|
603
|
+
readonly radius: "{shape.radius.round}";
|
|
604
|
+
};
|
|
605
|
+
readonly m: {
|
|
606
|
+
readonly size: "{size.m}";
|
|
607
|
+
readonly text: "{typography.support.2xs}";
|
|
608
|
+
readonly radius: "{shape.radius.round}";
|
|
609
|
+
};
|
|
610
|
+
readonly l: {
|
|
611
|
+
readonly size: "{size.l}";
|
|
612
|
+
readonly text: "{typography.control.s}";
|
|
613
|
+
readonly radius: "{shape.radius.round}";
|
|
614
|
+
};
|
|
615
|
+
readonly xl: {
|
|
616
|
+
readonly size: "{size.xl}";
|
|
617
|
+
readonly text: "{typography.control.l}";
|
|
618
|
+
readonly radius: "{shape.radius.round}";
|
|
619
|
+
};
|
|
620
|
+
readonly "2xl": {
|
|
621
|
+
readonly size: "{size.2xl}";
|
|
622
|
+
readonly text: "{typography.sizeScale.2xl}";
|
|
623
|
+
readonly radius: "{shape.radius.round}";
|
|
624
|
+
};
|
|
625
|
+
readonly "3xl": {
|
|
626
|
+
readonly size: "{size.3xl}";
|
|
627
|
+
readonly text: "{typography.sizeScale.3xl}";
|
|
628
|
+
readonly radius: "{shape.radius.round}";
|
|
629
|
+
};
|
|
630
|
+
readonly "4xl": {
|
|
631
|
+
readonly size: "{size.4xl}";
|
|
632
|
+
readonly text: "{typography.sizeScale.4xl}";
|
|
633
|
+
readonly radius: "{shape.radius.round}";
|
|
634
|
+
};
|
|
635
|
+
readonly "5xl": {
|
|
636
|
+
readonly size: "{size.5xl}";
|
|
637
|
+
readonly text: "{typography.sizeScale.5xl}";
|
|
638
|
+
readonly radius: "{shape.radius.round}";
|
|
639
|
+
};
|
|
640
|
+
readonly "6xl": {
|
|
641
|
+
readonly size: "{size.6xl}";
|
|
642
|
+
readonly text: "{typography.sizeScale.6xl}";
|
|
643
|
+
readonly radius: "{shape.radius.round}";
|
|
644
|
+
};
|
|
645
|
+
};
|
|
646
|
+
/** На ступень ниже control того же яруса: компактнее по padding/тексту/радиусу. */
|
|
647
|
+
readonly tooltip: {
|
|
648
|
+
readonly s: {
|
|
649
|
+
readonly paddingX: "{size.control.xs.inputPaddingX}";
|
|
650
|
+
readonly paddingY: "{size.control.xs.inputPaddingY}";
|
|
651
|
+
readonly text: "{size.control.xs.supportText}";
|
|
652
|
+
readonly radius: "{size.control.xs.radius}";
|
|
653
|
+
};
|
|
654
|
+
readonly m: {
|
|
655
|
+
readonly paddingX: "{size.control.s.inputPaddingX}";
|
|
656
|
+
readonly paddingY: "{size.control.s.inputPaddingY}";
|
|
657
|
+
readonly text: "{size.control.s.supportText}";
|
|
658
|
+
readonly radius: "{size.control.s.radius}";
|
|
659
|
+
};
|
|
660
|
+
readonly l: {
|
|
661
|
+
readonly paddingX: "{size.control.m.inputPaddingX}";
|
|
662
|
+
readonly paddingY: "{size.control.m.inputPaddingY}";
|
|
663
|
+
readonly text: "{size.control.m.supportText}";
|
|
664
|
+
readonly radius: "{size.control.m.radius}";
|
|
665
|
+
};
|
|
666
|
+
readonly xl: {
|
|
667
|
+
readonly paddingX: "{size.control.l.inputPaddingX}";
|
|
668
|
+
readonly paddingY: "{size.control.l.inputPaddingY}";
|
|
669
|
+
readonly text: "{size.control.l.supportText}";
|
|
670
|
+
readonly radius: "{size.control.l.radius}";
|
|
671
|
+
};
|
|
672
|
+
};
|
|
673
|
+
/** На ступень ниже кнопки того же яруса (как `size.badge`); боковые — `buttonPaddingX`. */
|
|
674
|
+
readonly tag: {
|
|
675
|
+
readonly s: {
|
|
676
|
+
readonly paddingX: "{size.control.xs.buttonPaddingX}";
|
|
677
|
+
readonly paddingY: "{size.control.xs.inputPaddingY}";
|
|
678
|
+
readonly text: "{size.control.xs.text}";
|
|
679
|
+
readonly iconSize: "{size.control.xs.icon}";
|
|
680
|
+
readonly gap: "{size.control.xs.gap}";
|
|
681
|
+
readonly radius: "{size.control.xs.radius}";
|
|
682
|
+
};
|
|
683
|
+
readonly m: {
|
|
684
|
+
readonly paddingX: "{size.control.s.buttonPaddingX}";
|
|
685
|
+
readonly paddingY: "{size.control.s.inputPaddingY}";
|
|
686
|
+
readonly text: "{size.control.s.text}";
|
|
687
|
+
readonly iconSize: "{size.control.s.icon}";
|
|
688
|
+
readonly gap: "{size.control.s.gap}";
|
|
689
|
+
readonly radius: "{size.control.s.radius}";
|
|
690
|
+
};
|
|
691
|
+
readonly l: {
|
|
692
|
+
readonly paddingX: "{size.control.m.buttonPaddingX}";
|
|
693
|
+
readonly paddingY: "{size.control.m.inputPaddingY}";
|
|
694
|
+
readonly text: "{size.control.m.text}";
|
|
695
|
+
readonly iconSize: "{size.control.m.icon}";
|
|
696
|
+
readonly gap: "{size.control.m.gap}";
|
|
697
|
+
readonly radius: "{size.control.m.radius}";
|
|
698
|
+
};
|
|
699
|
+
readonly xl: {
|
|
700
|
+
readonly paddingX: "{size.control.l.buttonPaddingX}";
|
|
701
|
+
readonly paddingY: "{size.control.l.inputPaddingY}";
|
|
702
|
+
readonly text: "{size.control.l.text}";
|
|
703
|
+
readonly iconSize: "{size.control.l.icon}";
|
|
704
|
+
readonly gap: "{size.control.l.gap}";
|
|
705
|
+
readonly radius: "{size.control.l.radius}";
|
|
706
|
+
};
|
|
707
|
+
};
|
|
708
|
+
/** Ярус `s` на ступень ниже: совпадает с `size.control.xs`. */
|
|
709
|
+
readonly kbd: {
|
|
710
|
+
readonly height: "{size.control.xs.height}";
|
|
711
|
+
readonly paddingX: "{size.control.xs.inputPaddingX}";
|
|
712
|
+
readonly paddingY: "{size.control.xs.inputPaddingY}";
|
|
713
|
+
readonly text: "{size.control.xs.text}";
|
|
714
|
+
readonly radius: "{size.control.xs.radius}";
|
|
715
|
+
};
|
|
716
|
+
};
|
|
717
|
+
readonly motion: {
|
|
718
|
+
readonly duration: {
|
|
719
|
+
readonly fast: "{motion.duration.fast}";
|
|
720
|
+
readonly medium: "{motion.duration.medium}";
|
|
721
|
+
readonly slow: "{motion.duration.slow}";
|
|
722
|
+
};
|
|
723
|
+
readonly easing: {
|
|
724
|
+
readonly standard: "{motion.easing.standard}";
|
|
725
|
+
};
|
|
726
|
+
readonly fast: "{motion.duration.fast}";
|
|
727
|
+
readonly medium: "{motion.duration.medium}";
|
|
728
|
+
readonly slow: "{motion.duration.slow}";
|
|
729
|
+
readonly standard: "{motion.easing.standard}";
|
|
730
|
+
};
|
|
731
|
+
};
|
|
732
|
+
//# sourceMappingURL=semantic.d.ts.map
|