@orcestr/ui 0.0.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 +151 -0
- package/README.ru.md +151 -0
- package/assets/orcestr-banner.webp +0 -0
- package/dist/components/Action/ActionConfirmModal.d.ts +8 -0
- package/dist/components/Action/ActionConfirmModal.d.ts.map +1 -0
- package/dist/components/Action/ActionConfirmModal.js +13 -0
- package/dist/components/Action/ActionTypes.d.ts +47 -0
- package/dist/components/Action/ActionTypes.d.ts.map +1 -0
- package/dist/components/Action/ActionTypes.js +49 -0
- package/dist/components/ActionMenu/ActionMenu.d.ts +3 -0
- package/dist/components/ActionMenu/ActionMenu.d.ts.map +1 -0
- package/dist/components/ActionMenu/ActionMenu.js +1 -0
- package/dist/components/Alert/Alert.d.ts +11 -0
- package/dist/components/Alert/Alert.d.ts.map +1 -0
- package/dist/components/Alert/Alert.js +7 -0
- package/dist/components/AppShell/AppShell.d.ts +102 -0
- package/dist/components/AppShell/AppShell.d.ts.map +1 -0
- package/dist/components/AppShell/AppShell.js +96 -0
- package/dist/components/Badge/Badge.d.ts +15 -0
- package/dist/components/Badge/Badge.d.ts.map +1 -0
- package/dist/components/Badge/Badge.js +8 -0
- package/dist/components/Box/Box.d.ts +11 -0
- package/dist/components/Box/Box.d.ts.map +1 -0
- package/dist/components/Box/Box.js +8 -0
- package/dist/components/Button/Button.d.ts +27 -0
- package/dist/components/Button/Button.d.ts.map +1 -0
- package/dist/components/Button/Button.js +13 -0
- package/dist/components/Checkbox/Checkbox.d.ts +10 -0
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/components/Checkbox/Checkbox.js +15 -0
- package/dist/components/Collapse/Collapse.d.ts +11 -0
- package/dist/components/Collapse/Collapse.d.ts.map +1 -0
- package/dist/components/Collapse/Collapse.js +33 -0
- package/dist/components/Combobox/Combobox.d.ts +17 -0
- package/dist/components/Combobox/Combobox.d.ts.map +1 -0
- package/dist/components/Combobox/Combobox.js +32 -0
- package/dist/components/CommandPalette/CommandPalette.d.ts +21 -0
- package/dist/components/CommandPalette/CommandPalette.d.ts.map +1 -0
- package/dist/components/CommandPalette/CommandPalette.js +168 -0
- package/dist/components/ConfirmDialog/ConfirmDialog.d.ts +25 -0
- package/dist/components/ConfirmDialog/ConfirmDialog.d.ts.map +1 -0
- package/dist/components/ConfirmDialog/ConfirmDialog.js +25 -0
- package/dist/components/ContextMenu/ContextMenu.d.ts +11 -0
- package/dist/components/ContextMenu/ContextMenu.d.ts.map +1 -0
- package/dist/components/ContextMenu/ContextMenu.js +68 -0
- package/dist/components/DataTable/DataTable.d.ts +88 -0
- package/dist/components/DataTable/DataTable.d.ts.map +1 -0
- package/dist/components/DataTable/DataTable.js +415 -0
- package/dist/components/DataTable/DataTableStateAdapters.d.ts +41 -0
- package/dist/components/DataTable/DataTableStateAdapters.d.ts.map +1 -0
- package/dist/components/DataTable/DataTableStateAdapters.js +192 -0
- package/dist/components/DatePicker/DatePicker.d.ts +21 -0
- package/dist/components/DatePicker/DatePicker.d.ts.map +1 -0
- package/dist/components/DatePicker/DatePicker.js +39 -0
- package/dist/components/DatePicker/DatePickerState.d.ts +30 -0
- package/dist/components/DatePicker/DatePickerState.d.ts.map +1 -0
- package/dist/components/DatePicker/DatePickerState.js +106 -0
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +19 -0
- package/dist/components/DateRangePicker/DateRangePicker.d.ts.map +1 -0
- package/dist/components/DateRangePicker/DateRangePicker.js +6 -0
- package/dist/components/DateRangePresetPicker/DateRangePresetPicker.d.ts +10 -0
- package/dist/components/DateRangePresetPicker/DateRangePresetPicker.d.ts.map +1 -0
- package/dist/components/DateRangePresetPicker/DateRangePresetPicker.js +26 -0
- package/dist/components/DateRangePresetPicker/DateRangePresetPickerState.d.ts +4 -0
- package/dist/components/DateRangePresetPicker/DateRangePresetPickerState.d.ts.map +1 -0
- package/dist/components/DateRangePresetPicker/DateRangePresetPickerState.js +20 -0
- package/dist/components/Dialog/Dialog.d.ts +2 -0
- package/dist/components/Dialog/Dialog.d.ts.map +1 -0
- package/dist/components/Dialog/Dialog.js +1 -0
- package/dist/components/Drawer/Drawer.d.ts +30 -0
- package/dist/components/Drawer/Drawer.d.ts.map +1 -0
- package/dist/components/Drawer/Drawer.js +83 -0
- package/dist/components/EntityPicker/EntityPicker.d.ts +41 -0
- package/dist/components/EntityPicker/EntityPicker.d.ts.map +1 -0
- package/dist/components/EntityPicker/EntityPicker.js +17 -0
- package/dist/components/Field/Field.d.ts +12 -0
- package/dist/components/Field/Field.d.ts.map +1 -0
- package/dist/components/Field/Field.js +8 -0
- package/dist/components/Flex/Flex.d.ts +9 -0
- package/dist/components/Flex/Flex.d.ts.map +1 -0
- package/dist/components/Flex/Flex.js +8 -0
- package/dist/components/Grid/Grid.d.ts +11 -0
- package/dist/components/Grid/Grid.d.ts.map +1 -0
- package/dist/components/Grid/Grid.js +12 -0
- package/dist/components/Highlight/Highlight.d.ts +27 -0
- package/dist/components/Highlight/Highlight.d.ts.map +1 -0
- package/dist/components/Highlight/Highlight.js +26 -0
- package/dist/components/IconButton/IconButton.d.ts +25 -0
- package/dist/components/IconButton/IconButton.d.ts.map +1 -0
- package/dist/components/IconButton/IconButton.js +13 -0
- package/dist/components/IconText/IconText.d.ts +12 -0
- package/dist/components/IconText/IconText.d.ts.map +1 -0
- package/dist/components/IconText/IconText.js +7 -0
- package/dist/components/Listbox/Listbox.d.ts +13 -0
- package/dist/components/Listbox/Listbox.d.ts.map +1 -0
- package/dist/components/Listbox/Listbox.js +74 -0
- package/dist/components/Menu/Menu.d.ts +14 -0
- package/dist/components/Menu/Menu.d.ts.map +1 -0
- package/dist/components/Menu/Menu.js +168 -0
- package/dist/components/Modal/Modal.d.ts +29 -0
- package/dist/components/Modal/Modal.d.ts.map +1 -0
- package/dist/components/Modal/Modal.js +155 -0
- package/dist/components/MultiSelect/MultiSelect.d.ts +21 -0
- package/dist/components/MultiSelect/MultiSelect.d.ts.map +1 -0
- package/dist/components/MultiSelect/MultiSelect.js +139 -0
- package/dist/components/NumberField/NumberField.d.ts +4 -0
- package/dist/components/NumberField/NumberField.d.ts.map +1 -0
- package/dist/components/NumberField/NumberField.js +6 -0
- package/dist/components/Overlay/OverlayProvider.d.ts +19 -0
- package/dist/components/Overlay/OverlayProvider.d.ts.map +1 -0
- package/dist/components/Overlay/OverlayProvider.js +73 -0
- package/dist/components/PaginatedCombobox/PaginatedCombobox.d.ts +48 -0
- package/dist/components/PaginatedCombobox/PaginatedCombobox.d.ts.map +1 -0
- package/dist/components/PaginatedCombobox/PaginatedCombobox.js +223 -0
- package/dist/components/PaginatedCombobox/PaginatedComboboxReactQueryAdapter.d.ts +13 -0
- package/dist/components/PaginatedCombobox/PaginatedComboboxReactQueryAdapter.d.ts.map +1 -0
- package/dist/components/PaginatedCombobox/PaginatedComboboxReactQueryAdapter.js +10 -0
- package/dist/components/Pagination/Pagination.d.ts +7 -0
- package/dist/components/Pagination/Pagination.d.ts.map +1 -0
- package/dist/components/Pagination/Pagination.js +9 -0
- package/dist/components/Popover/Popover.d.ts +19 -0
- package/dist/components/Popover/Popover.d.ts.map +1 -0
- package/dist/components/Popover/Popover.js +83 -0
- package/dist/components/Portal/Portal.d.ts +6 -0
- package/dist/components/Portal/Portal.d.ts.map +1 -0
- package/dist/components/Portal/Portal.js +23 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts +14 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts.map +1 -0
- package/dist/components/RadioGroup/RadioGroup.js +6 -0
- package/dist/components/ScrollArea/ScrollArea.d.ts +36 -0
- package/dist/components/ScrollArea/ScrollArea.d.ts.map +1 -0
- package/dist/components/ScrollArea/ScrollArea.js +124 -0
- package/dist/components/Section/Section.d.ts +14 -0
- package/dist/components/Section/Section.d.ts.map +1 -0
- package/dist/components/Section/Section.js +20 -0
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +13 -0
- package/dist/components/SegmentedControl/SegmentedControl.d.ts.map +1 -0
- package/dist/components/SegmentedControl/SegmentedControl.js +6 -0
- package/dist/components/Select/Select.d.ts +27 -0
- package/dist/components/Select/Select.d.ts.map +1 -0
- package/dist/components/Select/Select.js +142 -0
- package/dist/components/Separator/Separator.d.ts +6 -0
- package/dist/components/Separator/Separator.d.ts.map +1 -0
- package/dist/components/Separator/Separator.js +5 -0
- package/dist/components/Skeleton/Skeleton.d.ts +9 -0
- package/dist/components/Skeleton/Skeleton.d.ts.map +1 -0
- package/dist/components/Skeleton/Skeleton.js +8 -0
- package/dist/components/Spinner/Spinner.d.ts +7 -0
- package/dist/components/Spinner/Spinner.d.ts.map +1 -0
- package/dist/components/Spinner/Spinner.js +5 -0
- package/dist/components/Stack/Stack.d.ts +9 -0
- package/dist/components/Stack/Stack.d.ts.map +1 -0
- package/dist/components/Stack/Stack.js +7 -0
- package/dist/components/State/State.d.ts +23 -0
- package/dist/components/State/State.d.ts.map +1 -0
- package/dist/components/State/State.js +30 -0
- package/dist/components/State/stateIcon.d.ts +3 -0
- package/dist/components/State/stateIcon.d.ts.map +1 -0
- package/dist/components/State/stateIcon.js +11 -0
- package/dist/components/StepperInput/StepperInput.d.ts +13 -0
- package/dist/components/StepperInput/StepperInput.d.ts.map +1 -0
- package/dist/components/StepperInput/StepperInput.js +22 -0
- package/dist/components/Switch/Switch.d.ts +10 -0
- package/dist/components/Switch/Switch.d.ts.map +1 -0
- package/dist/components/Switch/Switch.js +14 -0
- package/dist/components/Tabs/Tabs.d.ts +18 -0
- package/dist/components/Tabs/Tabs.d.ts.map +1 -0
- package/dist/components/Tabs/Tabs.js +104 -0
- package/dist/components/Text/Text.d.ts +13 -0
- package/dist/components/Text/Text.d.ts.map +1 -0
- package/dist/components/Text/Text.js +8 -0
- package/dist/components/TextArea/TextArea.d.ts +15 -0
- package/dist/components/TextArea/TextArea.d.ts.map +1 -0
- package/dist/components/TextArea/TextArea.js +17 -0
- package/dist/components/TextField/TextField.d.ts +25 -0
- package/dist/components/TextField/TextField.d.ts.map +1 -0
- package/dist/components/TextField/TextField.js +31 -0
- package/dist/components/Toast/Toast.d.ts +43 -0
- package/dist/components/Toast/Toast.d.ts.map +1 -0
- package/dist/components/Toast/Toast.js +205 -0
- package/dist/components/Tooltip/Tooltip.d.ts +10 -0
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -0
- package/dist/components/Tooltip/Tooltip.js +24 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +8 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts.map +1 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.js +6 -0
- package/dist/components/Workflow/Workflow.d.ts +82 -0
- package/dist/components/Workflow/Workflow.d.ts.map +1 -0
- package/dist/components/Workflow/Workflow.js +73 -0
- package/dist/example/CodePreview.d.ts +25 -0
- package/dist/example/CodePreview.d.ts.map +1 -0
- package/dist/example/CodePreview.js +93 -0
- package/dist/example/ExampleActionsSection.d.ts +10 -0
- package/dist/example/ExampleActionsSection.d.ts.map +1 -0
- package/dist/example/ExampleActionsSection.js +10 -0
- package/dist/example/ExampleBasicsSections.d.ts +8 -0
- package/dist/example/ExampleBasicsSections.d.ts.map +1 -0
- package/dist/example/ExampleBasicsSections.js +43 -0
- package/dist/example/ExampleDataSection.d.ts +7 -0
- package/dist/example/ExampleDataSection.d.ts.map +1 -0
- package/dist/example/ExampleDataSection.js +124 -0
- package/dist/example/ExampleFieldsSection.d.ts +17 -0
- package/dist/example/ExampleFieldsSection.d.ts.map +1 -0
- package/dist/example/ExampleFieldsSection.js +10 -0
- package/dist/example/ExampleFoundationsSection.d.ts +5 -0
- package/dist/example/ExampleFoundationsSection.d.ts.map +1 -0
- package/dist/example/ExampleFoundationsSection.js +25 -0
- package/dist/example/ExampleOverlays.d.ts +30 -0
- package/dist/example/ExampleOverlays.d.ts.map +1 -0
- package/dist/example/ExampleOverlays.js +12 -0
- package/dist/example/ExampleOverlaysSection.d.ts +14 -0
- package/dist/example/ExampleOverlaysSection.d.ts.map +1 -0
- package/dist/example/ExampleOverlaysSection.js +126 -0
- package/dist/example/ExampleSelectionSection.d.ts +30 -0
- package/dist/example/ExampleSelectionSection.d.ts.map +1 -0
- package/dist/example/ExampleSelectionSection.js +66 -0
- package/dist/example/ExampleStateSection.d.ts +8 -0
- package/dist/example/ExampleStateSection.d.ts.map +1 -0
- package/dist/example/ExampleStateSection.js +76 -0
- package/dist/example/ExampleThemePlayground.d.ts +417 -0
- package/dist/example/ExampleThemePlayground.d.ts.map +1 -0
- package/dist/example/ExampleThemePlayground.js +596 -0
- package/dist/example/UiExamplePage.d.ts +2 -0
- package/dist/example/UiExamplePage.d.ts.map +1 -0
- package/dist/example/UiExamplePage.js +315 -0
- package/dist/example/UiExampleSection.d.ts +8 -0
- package/dist/example/UiExampleSection.d.ts.map +1 -0
- package/dist/example/UiExampleSection.js +5 -0
- package/dist/example/codeSamples.d.ts +30 -0
- package/dist/example/codeSamples.d.ts.map +1 -0
- package/dist/example/codeSamples.js +976 -0
- package/dist/example/exampleData.d.ts +33 -0
- package/dist/example/exampleData.d.ts.map +1 -0
- package/dist/example/exampleData.js +217 -0
- package/dist/example/styles.css +1106 -0
- package/dist/hooks/useControllableState.d.ts +6 -0
- package/dist/hooks/useControllableState.d.ts.map +1 -0
- package/dist/hooks/useControllableState.js +16 -0
- package/dist/hooks/useDisclosure.d.ts +12 -0
- package/dist/hooks/useDisclosure.d.ts.map +1 -0
- package/dist/hooks/useDisclosure.js +14 -0
- package/dist/hooks/useEscapeKey.d.ts +2 -0
- package/dist/hooks/useEscapeKey.d.ts.map +1 -0
- package/dist/hooks/useEscapeKey.js +15 -0
- package/dist/hooks/useFloatingLayer.d.ts +19 -0
- package/dist/hooks/useFloatingLayer.d.ts.map +1 -0
- package/dist/hooks/useFloatingLayer.js +26 -0
- package/dist/hooks/useFloatingPosition.d.ts +17 -0
- package/dist/hooks/useFloatingPosition.d.ts.map +1 -0
- package/dist/hooks/useFloatingPosition.js +132 -0
- package/dist/hooks/useFocusTrap.d.ts +3 -0
- package/dist/hooks/useFocusTrap.d.ts.map +1 -0
- package/dist/hooks/useFocusTrap.js +54 -0
- package/dist/hooks/useListNavigation.d.ts +17 -0
- package/dist/hooks/useListNavigation.d.ts.map +1 -0
- package/dist/hooks/useListNavigation.js +44 -0
- package/dist/hooks/useOutsidePointerDown.d.ts +3 -0
- package/dist/hooks/useOutsidePointerDown.d.ts.map +1 -0
- package/dist/hooks/useOutsidePointerDown.js +20 -0
- package/dist/hooks/usePresence.d.ts +5 -0
- package/dist/hooks/usePresence.d.ts.map +1 -0
- package/dist/hooks/usePresence.js +35 -0
- package/dist/hooks/useTypeahead.d.ts +2 -0
- package/dist/hooks/useTypeahead.d.ts.map +1 -0
- package/dist/hooks/useTypeahead.js +23 -0
- package/dist/index.d.ts +64 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +64 -0
- package/dist/locale/LocaleProvider.d.ts +89 -0
- package/dist/locale/LocaleProvider.d.ts.map +1 -0
- package/dist/locale/LocaleProvider.js +174 -0
- package/dist/provider/OrcestrUiProvider.d.ts +28 -0
- package/dist/provider/OrcestrUiProvider.d.ts.map +1 -0
- package/dist/provider/OrcestrUiProvider.js +9 -0
- package/dist/react-query.d.ts +2 -0
- package/dist/react-query.d.ts.map +1 -0
- package/dist/react-query.js +1 -0
- package/dist/styles/orcestr-ui.css +4676 -0
- package/dist/theme/ThemeProvider.d.ts +3 -0
- package/dist/theme/ThemeProvider.d.ts.map +1 -0
- package/dist/theme/ThemeProvider.js +280 -0
- package/dist/theme/defaultTheme.d.ts +12 -0
- package/dist/theme/defaultTheme.d.ts.map +1 -0
- package/dist/theme/defaultTheme.js +516 -0
- package/dist/theme/systemProps.d.ts +53 -0
- package/dist/theme/systemProps.d.ts.map +1 -0
- package/dist/theme/systemProps.js +240 -0
- package/dist/theme/themeTypes.d.ts +197 -0
- package/dist/theme/themeTypes.d.ts.map +1 -0
- package/dist/theme/themeTypes.js +1 -0
- package/dist/theme/useTheme.d.ts +4 -0
- package/dist/theme/useTheme.d.ts.map +1 -0
- package/dist/theme/useTheme.js +10 -0
- package/dist/utils/cn.d.ts +2 -0
- package/dist/utils/cn.d.ts.map +1 -0
- package/dist/utils/cn.js +3 -0
- package/dist/utils/composeRefs.d.ts +3 -0
- package/dist/utils/composeRefs.d.ts.map +1 -0
- package/dist/utils/composeRefs.js +14 -0
- package/dist/utils/mergeProps.d.ts +4 -0
- package/dist/utils/mergeProps.d.ts.map +1 -0
- package/dist/utils/mergeProps.js +26 -0
- package/dist/utils/ownerDocument.d.ts +2 -0
- package/dist/utils/ownerDocument.d.ts.map +1 -0
- package/dist/utils/ownerDocument.js +3 -0
- package/dist/utils/polymorphic.d.ts +6 -0
- package/dist/utils/polymorphic.d.ts.map +1 -0
- package/dist/utils/polymorphic.js +1 -0
- package/package.json +78 -0
|
@@ -0,0 +1,516 @@
|
|
|
1
|
+
export const orcestrThemeSurfaceRegistry = {
|
|
2
|
+
orcestr: {
|
|
3
|
+
value: 'orcestr',
|
|
4
|
+
label: 'Orcestr',
|
|
5
|
+
description: 'Neutral platform base for shared entity surfaces.',
|
|
6
|
+
},
|
|
7
|
+
operations: {
|
|
8
|
+
value: 'operations',
|
|
9
|
+
label: 'Operations',
|
|
10
|
+
description: 'Dense theme for repeated operational work.',
|
|
11
|
+
},
|
|
12
|
+
media: {
|
|
13
|
+
value: 'media',
|
|
14
|
+
label: 'Media',
|
|
15
|
+
description: 'Softer visual theme for content-heavy flows.',
|
|
16
|
+
},
|
|
17
|
+
catalog: {
|
|
18
|
+
value: 'catalog',
|
|
19
|
+
label: 'Catalog',
|
|
20
|
+
description: 'Precise catalog theme for structured index surfaces.',
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
export const orcestrThemeSurfaces = [
|
|
24
|
+
orcestrThemeSurfaceRegistry.orcestr,
|
|
25
|
+
orcestrThemeSurfaceRegistry.operations,
|
|
26
|
+
orcestrThemeSurfaceRegistry.media,
|
|
27
|
+
orcestrThemeSurfaceRegistry.catalog,
|
|
28
|
+
];
|
|
29
|
+
const sharedStructure = {
|
|
30
|
+
radii: {
|
|
31
|
+
sm: '4px',
|
|
32
|
+
md: '6px',
|
|
33
|
+
lg: '8px',
|
|
34
|
+
xl: '12px',
|
|
35
|
+
full: '999px',
|
|
36
|
+
},
|
|
37
|
+
spacing: {
|
|
38
|
+
px: '1px',
|
|
39
|
+
xs: '4px',
|
|
40
|
+
sm: '8px',
|
|
41
|
+
md: '12px',
|
|
42
|
+
lg: '16px',
|
|
43
|
+
xl: '24px',
|
|
44
|
+
xxl: '32px',
|
|
45
|
+
section: '18px',
|
|
46
|
+
page: '28px',
|
|
47
|
+
},
|
|
48
|
+
breakpoints: {
|
|
49
|
+
compact: '560px',
|
|
50
|
+
tablet: '720px',
|
|
51
|
+
desktop: '1024px',
|
|
52
|
+
wide: '1440px',
|
|
53
|
+
},
|
|
54
|
+
typography: {
|
|
55
|
+
fontFamily: 'var(--font-manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif)',
|
|
56
|
+
monoFontFamily: 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace',
|
|
57
|
+
titleSize: '22px',
|
|
58
|
+
headingSize: '18px',
|
|
59
|
+
bodySize: '14px',
|
|
60
|
+
compactSize: '13px',
|
|
61
|
+
labelSize: '12px',
|
|
62
|
+
lineHeight: '1.45',
|
|
63
|
+
headingLineHeight: '1.18',
|
|
64
|
+
weightRegular: 450,
|
|
65
|
+
weightMedium: 650,
|
|
66
|
+
weightBold: 760,
|
|
67
|
+
letterSpacing: '0',
|
|
68
|
+
},
|
|
69
|
+
motion: {
|
|
70
|
+
fast: '120ms',
|
|
71
|
+
normal: '180ms',
|
|
72
|
+
slow: '260ms',
|
|
73
|
+
modalDuration: '380ms',
|
|
74
|
+
modalAnimation: 'zoom-blur',
|
|
75
|
+
modalOverlayColor: 'transparent',
|
|
76
|
+
modalOverlayOpacity: 0,
|
|
77
|
+
modalOverlayBlur: 10,
|
|
78
|
+
ease: 'cubic-bezier(0.22, 1, 0.36, 1)',
|
|
79
|
+
pressAnimation: 'soft',
|
|
80
|
+
},
|
|
81
|
+
density: {
|
|
82
|
+
compactControl: '30px',
|
|
83
|
+
regularControl: '36px',
|
|
84
|
+
spaciousControl: '42px',
|
|
85
|
+
pagePadding: '28px',
|
|
86
|
+
sectionGap: '18px',
|
|
87
|
+
},
|
|
88
|
+
states: {
|
|
89
|
+
hoverOpacity: 0.065,
|
|
90
|
+
activeOpacity: 0.1,
|
|
91
|
+
disabledOpacity: 0.56,
|
|
92
|
+
loadingOpacity: 0.78,
|
|
93
|
+
selectedOpacity: 0.15,
|
|
94
|
+
focusRingWidth: '3px',
|
|
95
|
+
},
|
|
96
|
+
zIndex: {
|
|
97
|
+
sticky: 20,
|
|
98
|
+
dropdown: 50,
|
|
99
|
+
overlay: 70,
|
|
100
|
+
modal: 90,
|
|
101
|
+
toast: 120,
|
|
102
|
+
},
|
|
103
|
+
components: {
|
|
104
|
+
buttonRadius: '6px',
|
|
105
|
+
buttonFontWeight: 650,
|
|
106
|
+
tableCellPaddingY: '10px',
|
|
107
|
+
tableHeaderHeight: '42px',
|
|
108
|
+
fieldGap: '6px',
|
|
109
|
+
modalMaxWidth: '680px',
|
|
110
|
+
pipelineStepMinWidth: '130px',
|
|
111
|
+
},
|
|
112
|
+
};
|
|
113
|
+
const darkBase = {
|
|
114
|
+
colors: {
|
|
115
|
+
bg: '#111318',
|
|
116
|
+
panel: '#171a21',
|
|
117
|
+
panelSoft: '#20242d',
|
|
118
|
+
control: 'transparent',
|
|
119
|
+
controlHover: 'rgb(255 255 255 / 6%)',
|
|
120
|
+
text: '#f4f6f8',
|
|
121
|
+
muted: '#9aa4b2',
|
|
122
|
+
border: 'rgb(255 255 255 / 10%)',
|
|
123
|
+
borderStrong: 'rgb(255 255 255 / 20%)',
|
|
124
|
+
brand: '#6ea0ff',
|
|
125
|
+
brandStrong: '#93b8ff',
|
|
126
|
+
brandSolid: '#315fbe',
|
|
127
|
+
brandSolidHover: '#3b70d8',
|
|
128
|
+
brandSoft: 'rgb(110 160 255 / 16%)',
|
|
129
|
+
brandText: '#ffffff',
|
|
130
|
+
danger: '#ff7b72',
|
|
131
|
+
dangerSoft: 'rgb(255 123 114 / 14%)',
|
|
132
|
+
success: '#5fd3a1',
|
|
133
|
+
successSoft: '#173a31',
|
|
134
|
+
warning: '#f3c969',
|
|
135
|
+
warningSoft: '#443516',
|
|
136
|
+
info: '#71c7ff',
|
|
137
|
+
infoSoft: '#173852',
|
|
138
|
+
selected: 'rgb(110 160 255 / 15%)',
|
|
139
|
+
focusRing: '0 0 0 3px rgb(106 160 255 / 22%)',
|
|
140
|
+
disabled: 'rgb(154 164 178 / 42%)',
|
|
141
|
+
overlay: 'rgb(0 0 0 / 48%)',
|
|
142
|
+
floating: '#161a22',
|
|
143
|
+
section: 'rgb(255 255 255 / 2%)',
|
|
144
|
+
sectionNested: 'rgb(255 255 255 / 2%)',
|
|
145
|
+
pad: 'rgb(255 255 255 / 2%)',
|
|
146
|
+
padHover: 'rgb(255 255 255 / 4.5%)',
|
|
147
|
+
skeletonShimmer: 'rgb(255 255 255 / 8%)',
|
|
148
|
+
},
|
|
149
|
+
shadows: {
|
|
150
|
+
sm: '0 2px 10px rgb(0 0 0 / 22%)',
|
|
151
|
+
md: '0 16px 48px rgb(0 0 0 / 42%)',
|
|
152
|
+
overlay: '0 24px 70px rgb(0 0 0 / 48%)',
|
|
153
|
+
section: 'none',
|
|
154
|
+
focus: darkBaseFocusRing(),
|
|
155
|
+
},
|
|
156
|
+
status: statusTokens({
|
|
157
|
+
neutral: {
|
|
158
|
+
color: '#9aa4b2',
|
|
159
|
+
text: '#f4f6f8',
|
|
160
|
+
soft: 'rgb(255 255 255 / 2%)',
|
|
161
|
+
border: 'rgb(255 255 255 / 10%)',
|
|
162
|
+
},
|
|
163
|
+
brand: {
|
|
164
|
+
color: '#6ea0ff',
|
|
165
|
+
text: '#93b8ff',
|
|
166
|
+
soft: 'rgb(110 160 255 / 16%)',
|
|
167
|
+
border: 'rgb(110 160 255 / 34%)',
|
|
168
|
+
},
|
|
169
|
+
success: {
|
|
170
|
+
color: '#5fd3a1',
|
|
171
|
+
text: '#5fd3a1',
|
|
172
|
+
soft: '#173a31',
|
|
173
|
+
border: 'rgb(95 211 161 / 30%)',
|
|
174
|
+
},
|
|
175
|
+
warning: {
|
|
176
|
+
color: '#f3c969',
|
|
177
|
+
text: '#f3c969',
|
|
178
|
+
soft: '#443516',
|
|
179
|
+
border: 'rgb(243 201 105 / 32%)',
|
|
180
|
+
},
|
|
181
|
+
danger: {
|
|
182
|
+
color: '#ff7b72',
|
|
183
|
+
text: '#ff7b72',
|
|
184
|
+
soft: 'rgb(255 123 114 / 14%)',
|
|
185
|
+
border: 'rgb(255 123 114 / 34%)',
|
|
186
|
+
},
|
|
187
|
+
info: {
|
|
188
|
+
color: '#71c7ff',
|
|
189
|
+
text: '#71c7ff',
|
|
190
|
+
soft: '#173852',
|
|
191
|
+
border: 'rgb(113 199 255 / 30%)',
|
|
192
|
+
},
|
|
193
|
+
}),
|
|
194
|
+
toast: {
|
|
195
|
+
background: 'rgb(22 26 34 / 86%)',
|
|
196
|
+
blur: 14,
|
|
197
|
+
borderColor: 'rgb(255 255 255 / 14%)',
|
|
198
|
+
shadow: '0 12px 32px rgb(0 0 0 / 24%)',
|
|
199
|
+
animationDuration: '520ms',
|
|
200
|
+
exitDuration: '260ms',
|
|
201
|
+
progressHeight: '1px',
|
|
202
|
+
},
|
|
203
|
+
...sharedStructure,
|
|
204
|
+
};
|
|
205
|
+
const lightBase = {
|
|
206
|
+
colors: {
|
|
207
|
+
bg: '#f8fafc',
|
|
208
|
+
panel: '#ffffff',
|
|
209
|
+
panelSoft: '#f3f6fa',
|
|
210
|
+
control: 'transparent',
|
|
211
|
+
controlHover: 'rgb(15 23 42 / 6%)',
|
|
212
|
+
text: '#111827',
|
|
213
|
+
muted: '#6b7280',
|
|
214
|
+
border: 'rgb(15 23 42 / 12%)',
|
|
215
|
+
borderStrong: 'rgb(15 23 42 / 24%)',
|
|
216
|
+
brand: '#2563eb',
|
|
217
|
+
brandStrong: '#1d4ed8',
|
|
218
|
+
brandSolid: '#2563eb',
|
|
219
|
+
brandSolidHover: '#1d4ed8',
|
|
220
|
+
brandSoft: 'rgb(37 99 235 / 12%)',
|
|
221
|
+
brandText: '#ffffff',
|
|
222
|
+
danger: '#dc2626',
|
|
223
|
+
dangerSoft: 'rgb(220 38 38 / 12%)',
|
|
224
|
+
success: '#0f9f6e',
|
|
225
|
+
successSoft: '#e8f8f2',
|
|
226
|
+
warning: '#bd7a00',
|
|
227
|
+
warningSoft: '#fff6db',
|
|
228
|
+
info: '#0876bd',
|
|
229
|
+
infoSoft: '#e7f4ff',
|
|
230
|
+
selected: 'rgb(37 99 235 / 10%)',
|
|
231
|
+
focusRing: '0 0 0 3px rgb(37 99 235 / 16%)',
|
|
232
|
+
disabled: 'rgb(107 114 128 / 46%)',
|
|
233
|
+
overlay: 'rgb(15 23 42 / 36%)',
|
|
234
|
+
floating: '#ffffff',
|
|
235
|
+
section: 'transparent',
|
|
236
|
+
sectionNested: 'transparent',
|
|
237
|
+
pad: 'rgb(15 23 42 / 3.5%)',
|
|
238
|
+
padHover: 'rgb(15 23 42 / 5.5%)',
|
|
239
|
+
skeletonShimmer: 'rgb(255 255 255 / 18%)',
|
|
240
|
+
},
|
|
241
|
+
shadows: {
|
|
242
|
+
sm: '0 2px 8px rgb(17 24 39 / 8%)',
|
|
243
|
+
md: '0 16px 48px rgb(15 23 42 / 18%)',
|
|
244
|
+
overlay: '0 24px 70px rgb(15 23 42 / 22%)',
|
|
245
|
+
section: '0 8px 26px rgb(15 23 42 / 8%)',
|
|
246
|
+
focus: lightBaseFocusRing(),
|
|
247
|
+
},
|
|
248
|
+
status: statusTokens({
|
|
249
|
+
neutral: {
|
|
250
|
+
color: '#6b7280',
|
|
251
|
+
text: '#111827',
|
|
252
|
+
soft: 'rgb(15 23 42 / 3.5%)',
|
|
253
|
+
border: 'rgb(15 23 42 / 12%)',
|
|
254
|
+
},
|
|
255
|
+
brand: {
|
|
256
|
+
color: '#2563eb',
|
|
257
|
+
text: '#1d4ed8',
|
|
258
|
+
soft: 'rgb(37 99 235 / 12%)',
|
|
259
|
+
border: 'rgb(37 99 235 / 28%)',
|
|
260
|
+
},
|
|
261
|
+
success: {
|
|
262
|
+
color: '#0f9f6e',
|
|
263
|
+
text: '#0f9f6e',
|
|
264
|
+
soft: '#e8f8f2',
|
|
265
|
+
border: 'rgb(15 159 110 / 26%)',
|
|
266
|
+
},
|
|
267
|
+
warning: {
|
|
268
|
+
color: '#bd7a00',
|
|
269
|
+
text: '#bd7a00',
|
|
270
|
+
soft: '#fff6db',
|
|
271
|
+
border: 'rgb(189 122 0 / 28%)',
|
|
272
|
+
},
|
|
273
|
+
danger: {
|
|
274
|
+
color: '#dc2626',
|
|
275
|
+
text: '#dc2626',
|
|
276
|
+
soft: 'rgb(220 38 38 / 12%)',
|
|
277
|
+
border: 'rgb(220 38 38 / 28%)',
|
|
278
|
+
},
|
|
279
|
+
info: {
|
|
280
|
+
color: '#0876bd',
|
|
281
|
+
text: '#0876bd',
|
|
282
|
+
soft: '#e7f4ff',
|
|
283
|
+
border: 'rgb(8 118 189 / 26%)',
|
|
284
|
+
},
|
|
285
|
+
}),
|
|
286
|
+
toast: {
|
|
287
|
+
background: 'rgb(255 255 255 / 86%)',
|
|
288
|
+
blur: 14,
|
|
289
|
+
borderColor: 'rgb(15 23 42 / 12%)',
|
|
290
|
+
shadow: '0 12px 30px rgb(15 23 42 / 12%)',
|
|
291
|
+
animationDuration: '520ms',
|
|
292
|
+
exitDuration: '260ms',
|
|
293
|
+
progressHeight: '1px',
|
|
294
|
+
},
|
|
295
|
+
...sharedStructure,
|
|
296
|
+
};
|
|
297
|
+
const surfaceOverrides = {
|
|
298
|
+
orcestr: {
|
|
299
|
+
dark: {},
|
|
300
|
+
light: {},
|
|
301
|
+
},
|
|
302
|
+
operations: {
|
|
303
|
+
dark: {
|
|
304
|
+
colors: {
|
|
305
|
+
bg: '#0f1216',
|
|
306
|
+
panel: '#151a20',
|
|
307
|
+
panelSoft: '#1d252e',
|
|
308
|
+
floating: '#151a20',
|
|
309
|
+
brand: '#5dd4a4',
|
|
310
|
+
brandStrong: '#7ee6ba',
|
|
311
|
+
brandSolid: '#16885d',
|
|
312
|
+
brandSolidHover: '#1fa06f',
|
|
313
|
+
brandSoft: 'rgb(93 212 164 / 16%)',
|
|
314
|
+
selected: 'rgb(93 212 164 / 15%)',
|
|
315
|
+
focusRing: '0 0 0 3px rgb(93 212 164 / 22%)',
|
|
316
|
+
info: '#82cfff',
|
|
317
|
+
infoSoft: '#15364b',
|
|
318
|
+
},
|
|
319
|
+
toast: {
|
|
320
|
+
background: 'rgb(21 26 32 / 88%)',
|
|
321
|
+
},
|
|
322
|
+
components: {
|
|
323
|
+
tableCellPaddingY: '8px',
|
|
324
|
+
tableHeaderHeight: '38px',
|
|
325
|
+
pipelineStepMinWidth: '148px',
|
|
326
|
+
},
|
|
327
|
+
},
|
|
328
|
+
light: {
|
|
329
|
+
colors: {
|
|
330
|
+
bg: '#f6faf8',
|
|
331
|
+
panel: '#ffffff',
|
|
332
|
+
panelSoft: '#edf5f1',
|
|
333
|
+
brand: '#12815c',
|
|
334
|
+
brandStrong: '#0f6f4f',
|
|
335
|
+
brandSolid: '#12815c',
|
|
336
|
+
brandSolidHover: '#0f6f4f',
|
|
337
|
+
brandSoft: 'rgb(18 129 92 / 12%)',
|
|
338
|
+
selected: 'rgb(18 129 92 / 10%)',
|
|
339
|
+
focusRing: '0 0 0 3px rgb(18 129 92 / 16%)',
|
|
340
|
+
info: '#0969a8',
|
|
341
|
+
infoSoft: '#e4f2fb',
|
|
342
|
+
},
|
|
343
|
+
toast: {
|
|
344
|
+
background: 'rgb(255 255 255 / 88%)',
|
|
345
|
+
},
|
|
346
|
+
components: {
|
|
347
|
+
tableCellPaddingY: '8px',
|
|
348
|
+
tableHeaderHeight: '38px',
|
|
349
|
+
pipelineStepMinWidth: '148px',
|
|
350
|
+
},
|
|
351
|
+
},
|
|
352
|
+
},
|
|
353
|
+
media: {
|
|
354
|
+
dark: {
|
|
355
|
+
colors: {
|
|
356
|
+
bg: '#141116',
|
|
357
|
+
panel: '#1d1820',
|
|
358
|
+
panelSoft: '#29212d',
|
|
359
|
+
floating: '#1d1820',
|
|
360
|
+
brand: '#f0a6d8',
|
|
361
|
+
brandStrong: '#ffc1e7',
|
|
362
|
+
brandSolid: '#a84486',
|
|
363
|
+
brandSolidHover: '#bc5399',
|
|
364
|
+
brandSoft: 'rgb(240 166 216 / 17%)',
|
|
365
|
+
selected: 'rgb(240 166 216 / 16%)',
|
|
366
|
+
focusRing: '0 0 0 3px rgb(240 166 216 / 24%)',
|
|
367
|
+
warning: '#ffd079',
|
|
368
|
+
warningSoft: '#49371c',
|
|
369
|
+
info: '#9bd7ff',
|
|
370
|
+
infoSoft: '#19394d',
|
|
371
|
+
},
|
|
372
|
+
toast: {
|
|
373
|
+
background: 'rgb(29 24 32 / 88%)',
|
|
374
|
+
borderColor: 'rgb(255 193 231 / 16%)',
|
|
375
|
+
shadow: '0 12px 32px rgb(0 0 0 / 22%)',
|
|
376
|
+
},
|
|
377
|
+
radii: {
|
|
378
|
+
md: '8px',
|
|
379
|
+
lg: '10px',
|
|
380
|
+
},
|
|
381
|
+
},
|
|
382
|
+
light: {
|
|
383
|
+
colors: {
|
|
384
|
+
bg: '#fff8fc',
|
|
385
|
+
panel: '#ffffff',
|
|
386
|
+
panelSoft: '#fff0f8',
|
|
387
|
+
brand: '#c0267f',
|
|
388
|
+
brandStrong: '#a21d6c',
|
|
389
|
+
brandSolid: '#c0267f',
|
|
390
|
+
brandSolidHover: '#a21d6c',
|
|
391
|
+
brandSoft: 'rgb(192 38 127 / 12%)',
|
|
392
|
+
selected: 'rgb(192 38 127 / 10%)',
|
|
393
|
+
focusRing: '0 0 0 3px rgb(192 38 127 / 16%)',
|
|
394
|
+
warning: '#b96b00',
|
|
395
|
+
warningSoft: '#fff1d0',
|
|
396
|
+
info: '#0876bd',
|
|
397
|
+
infoSoft: '#e6f5ff',
|
|
398
|
+
},
|
|
399
|
+
toast: {
|
|
400
|
+
background: 'rgb(255 255 255 / 88%)',
|
|
401
|
+
borderColor: 'rgb(192 38 127 / 13%)',
|
|
402
|
+
},
|
|
403
|
+
radii: {
|
|
404
|
+
md: '8px',
|
|
405
|
+
lg: '10px',
|
|
406
|
+
},
|
|
407
|
+
},
|
|
408
|
+
},
|
|
409
|
+
catalog: {
|
|
410
|
+
dark: {
|
|
411
|
+
colors: {
|
|
412
|
+
bg: '#11100d',
|
|
413
|
+
panel: '#191712',
|
|
414
|
+
panelSoft: '#242017',
|
|
415
|
+
floating: '#191712',
|
|
416
|
+
brand: '#e6c26a',
|
|
417
|
+
brandStrong: '#f1d990',
|
|
418
|
+
brandSolid: '#9b6f12',
|
|
419
|
+
brandSolidHover: '#b98219',
|
|
420
|
+
brandSoft: 'rgb(230 194 106 / 16%)',
|
|
421
|
+
selected: 'rgb(230 194 106 / 14%)',
|
|
422
|
+
focusRing: '0 0 0 3px rgb(230 194 106 / 22%)',
|
|
423
|
+
warning: '#f4c95d',
|
|
424
|
+
warningSoft: '#493814',
|
|
425
|
+
info: '#9fc5ff',
|
|
426
|
+
infoSoft: '#1a314f',
|
|
427
|
+
},
|
|
428
|
+
toast: {
|
|
429
|
+
background: 'rgb(25 23 18 / 88%)',
|
|
430
|
+
borderColor: 'rgb(241 217 144 / 15%)',
|
|
431
|
+
},
|
|
432
|
+
radii: {
|
|
433
|
+
md: '6px',
|
|
434
|
+
lg: '8px',
|
|
435
|
+
},
|
|
436
|
+
},
|
|
437
|
+
light: {
|
|
438
|
+
colors: {
|
|
439
|
+
bg: '#fbfaf6',
|
|
440
|
+
panel: '#ffffff',
|
|
441
|
+
panelSoft: '#f3efe4',
|
|
442
|
+
brand: '#9b6f12',
|
|
443
|
+
brandStrong: '#79570e',
|
|
444
|
+
brandSolid: '#9b6f12',
|
|
445
|
+
brandSolidHover: '#79570e',
|
|
446
|
+
brandSoft: 'rgb(155 111 18 / 12%)',
|
|
447
|
+
selected: 'rgb(155 111 18 / 10%)',
|
|
448
|
+
focusRing: '0 0 0 3px rgb(155 111 18 / 16%)',
|
|
449
|
+
warning: '#a16207',
|
|
450
|
+
warningSoft: '#fff4cf',
|
|
451
|
+
info: '#2563eb',
|
|
452
|
+
infoSoft: '#e9f1ff',
|
|
453
|
+
},
|
|
454
|
+
toast: {
|
|
455
|
+
background: 'rgb(255 255 255 / 88%)',
|
|
456
|
+
borderColor: 'rgb(155 111 18 / 13%)',
|
|
457
|
+
},
|
|
458
|
+
},
|
|
459
|
+
},
|
|
460
|
+
};
|
|
461
|
+
function mergeTheme(baseTheme, overrides) {
|
|
462
|
+
if (!overrides)
|
|
463
|
+
return baseTheme;
|
|
464
|
+
return {
|
|
465
|
+
...baseTheme,
|
|
466
|
+
...overrides,
|
|
467
|
+
mode: baseTheme.mode,
|
|
468
|
+
surface: baseTheme.surface,
|
|
469
|
+
colors: { ...baseTheme.colors, ...overrides.colors },
|
|
470
|
+
radii: { ...baseTheme.radii, ...overrides.radii },
|
|
471
|
+
spacing: { ...baseTheme.spacing, ...overrides.spacing },
|
|
472
|
+
breakpoints: { ...baseTheme.breakpoints, ...overrides.breakpoints },
|
|
473
|
+
shadows: { ...baseTheme.shadows, ...overrides.shadows },
|
|
474
|
+
typography: { ...baseTheme.typography, ...overrides.typography },
|
|
475
|
+
status: mergeStatus(baseTheme.status, overrides.status),
|
|
476
|
+
motion: { ...baseTheme.motion, ...overrides.motion },
|
|
477
|
+
density: { ...baseTheme.density, ...overrides.density },
|
|
478
|
+
zIndex: { ...baseTheme.zIndex, ...overrides.zIndex },
|
|
479
|
+
toast: { ...baseTheme.toast, ...overrides.toast },
|
|
480
|
+
states: { ...baseTheme.states, ...overrides.states },
|
|
481
|
+
components: { ...baseTheme.components, ...overrides.components },
|
|
482
|
+
};
|
|
483
|
+
}
|
|
484
|
+
export function themeByMode(mode, surface = 'orcestr', themeOverrides) {
|
|
485
|
+
const seed = mode === 'light' ? lightBase : darkBase;
|
|
486
|
+
const baseTheme = {
|
|
487
|
+
mode,
|
|
488
|
+
surface,
|
|
489
|
+
...seed,
|
|
490
|
+
};
|
|
491
|
+
const surfaceTheme = mergeTheme(baseTheme, surfaceOverrides[surface][mode]);
|
|
492
|
+
return mergeTheme(surfaceTheme, themeOverrides);
|
|
493
|
+
}
|
|
494
|
+
export const darkTheme = themeByMode('dark');
|
|
495
|
+
export const lightTheme = themeByMode('light');
|
|
496
|
+
function darkBaseFocusRing() {
|
|
497
|
+
return '0 0 0 3px rgb(106 160 255 / 22%)';
|
|
498
|
+
}
|
|
499
|
+
function lightBaseFocusRing() {
|
|
500
|
+
return '0 0 0 3px rgb(37 99 235 / 16%)';
|
|
501
|
+
}
|
|
502
|
+
function statusTokens(tokens) {
|
|
503
|
+
return tokens;
|
|
504
|
+
}
|
|
505
|
+
function mergeStatus(baseStatus, overrides) {
|
|
506
|
+
if (!overrides)
|
|
507
|
+
return baseStatus;
|
|
508
|
+
return {
|
|
509
|
+
neutral: { ...baseStatus.neutral, ...overrides.neutral },
|
|
510
|
+
brand: { ...baseStatus.brand, ...overrides.brand },
|
|
511
|
+
success: { ...baseStatus.success, ...overrides.success },
|
|
512
|
+
warning: { ...baseStatus.warning, ...overrides.warning },
|
|
513
|
+
danger: { ...baseStatus.danger, ...overrides.danger },
|
|
514
|
+
info: { ...baseStatus.info, ...overrides.info },
|
|
515
|
+
};
|
|
516
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
2
|
+
export type Tone = 'neutral' | 'brand' | 'success' | 'warning' | 'danger' | 'info';
|
|
3
|
+
export type UiSize = 1 | 2 | 3 | 4;
|
|
4
|
+
export type RadiusScale = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
|
5
|
+
export type AlignShort = 's' | 'c' | 'e' | 'st' | 'b';
|
|
6
|
+
export type JustifyShort = 's' | 'c' | 'e' | 'sb' | 'sa' | 'se';
|
|
7
|
+
export type SystemProps = {
|
|
8
|
+
m?: number | string;
|
|
9
|
+
mt?: number | string;
|
|
10
|
+
mr?: number | string;
|
|
11
|
+
mb?: number | string;
|
|
12
|
+
ml?: number | string;
|
|
13
|
+
mx?: number | string;
|
|
14
|
+
my?: number | string;
|
|
15
|
+
p?: number | string;
|
|
16
|
+
pt?: number | string;
|
|
17
|
+
pr?: number | string;
|
|
18
|
+
pb?: number | string;
|
|
19
|
+
pl?: number | string;
|
|
20
|
+
px?: number | string;
|
|
21
|
+
py?: number | string;
|
|
22
|
+
g?: number | string;
|
|
23
|
+
w?: number | string;
|
|
24
|
+
minW?: number | string;
|
|
25
|
+
maxW?: number | string;
|
|
26
|
+
size?: number | string;
|
|
27
|
+
h?: number | string;
|
|
28
|
+
minH?: number | string;
|
|
29
|
+
maxH?: number | string;
|
|
30
|
+
display?: CSSProperties['display'];
|
|
31
|
+
position?: CSSProperties['position'];
|
|
32
|
+
overflow?: CSSProperties['overflow'];
|
|
33
|
+
flex?: CSSProperties['flex'];
|
|
34
|
+
a?: AlignShort;
|
|
35
|
+
j?: JustifyShort;
|
|
36
|
+
row?: boolean;
|
|
37
|
+
col?: boolean;
|
|
38
|
+
wrap?: boolean;
|
|
39
|
+
nowrap?: boolean;
|
|
40
|
+
inline?: boolean;
|
|
41
|
+
fs?: number | string;
|
|
42
|
+
fw?: CSSProperties['fontWeight'];
|
|
43
|
+
lh?: number | string;
|
|
44
|
+
ta?: CSSProperties['textAlign'];
|
|
45
|
+
color?: CSSProperties['color'];
|
|
46
|
+
r?: RadiusScale | `${RadiusScale}` | string;
|
|
47
|
+
truncate?: boolean;
|
|
48
|
+
};
|
|
49
|
+
export declare function splitSystemProps<P extends Record<string, unknown>>(props: P): {
|
|
50
|
+
systemStyle: CSSProperties;
|
|
51
|
+
restProps: Omit<P, keyof SystemProps>;
|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