@orcestr/ui 0.1.0 → 0.2.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/README.md +11 -11
- package/README.ru.md +10 -10
- package/dist/components/Action/ActionConfirmModal.d.ts.map +1 -1
- package/dist/components/Action/ActionTypes.d.ts +1 -1
- package/dist/components/Action/ActionTypes.d.ts.map +1 -1
- package/dist/components/ActionMenu/ActionMenu.d.ts.map +1 -1
- package/dist/components/Alert/Alert.d.ts.map +1 -1
- package/dist/components/Alert/Alert.js +1 -1
- package/dist/components/AppShell/AppShell.d.ts +11 -0
- package/dist/components/AppShell/AppShell.d.ts.map +1 -1
- package/dist/components/AppShell/AppShell.js +15 -14
- package/dist/components/AppSidebar/AppSidebar.d.ts.map +1 -1
- package/dist/components/AppSidebar/AppSidebar.js +84 -15
- package/dist/components/Badge/Badge.d.ts.map +1 -1
- package/dist/components/Badge/Badge.js +1 -1
- package/dist/components/BadgeSelectMenu/BadgeSelectMenu.d.ts.map +1 -1
- package/dist/components/BadgeSelectMenu/BadgeSelectMenu.js +5 -5
- package/dist/components/Box/Box.d.ts.map +1 -1
- package/dist/components/Box/Box.js +1 -1
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.js +2 -2
- package/dist/components/Card/Card.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Collapse/Collapse.d.ts.map +1 -1
- package/dist/components/Collapse/Collapse.js +5 -25
- package/dist/components/Combobox/Combobox.d.ts.map +1 -1
- package/dist/components/Combobox/Combobox.js +7 -2
- package/dist/components/CommandPalette/CommandPalette.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPalette.js +6 -12
- package/dist/components/ConfirmDialog/ConfirmDialog.d.ts +1 -1
- package/dist/components/ConfirmDialog/ConfirmDialog.d.ts.map +1 -1
- package/dist/components/ConfirmDialog/ConfirmDialog.js +1 -1
- package/dist/components/ContextMenu/ContextMenu.d.ts.map +1 -1
- package/dist/components/ContextMenu/ContextMenu.js +3 -3
- package/dist/components/CopyButton/CopyButton.d.ts +24 -0
- package/dist/components/CopyButton/CopyButton.d.ts.map +1 -0
- package/dist/components/CopyButton/CopyButton.js +81 -0
- package/dist/components/DataTable/DataTable.d.ts.map +1 -1
- package/dist/components/DataTable/DataTable.js +29 -22
- package/dist/components/DataTable/DataTableStateAdapters.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableStateAdapters.js +3 -4
- package/dist/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePicker.js +1 -1
- package/dist/components/DatePicker/DatePickerState.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePickerState.js +3 -1
- package/dist/components/DateRangePicker/DateRangePicker.d.ts.map +1 -1
- package/dist/components/DateRangePresetPicker/DateRangePresetPicker.d.ts.map +1 -1
- package/dist/components/DateRangePresetPicker/DateRangePresetPicker.js +1 -1
- package/dist/components/DateRangePresetPicker/DateRangePresetPickerState.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/components/Drawer/Drawer.d.ts +2 -1
- package/dist/components/Drawer/Drawer.d.ts.map +1 -1
- package/dist/components/Drawer/Drawer.js +3 -3
- package/dist/components/EntityPicker/EntityPicker.d.ts.map +1 -1
- package/dist/components/EntityPicker/EntityPicker.js +2 -2
- package/dist/components/Field/Field.d.ts.map +1 -1
- package/dist/components/Field/Field.js +1 -1
- package/dist/components/Flex/Flex.d.ts.map +1 -1
- package/dist/components/Flex/Flex.js +1 -1
- package/dist/components/Grid/Grid.d.ts.map +1 -1
- package/dist/components/Highlight/Highlight.d.ts.map +1 -1
- package/dist/components/Highlight/Highlight.js +1 -1
- package/dist/components/IconButton/IconButton.d.ts.map +1 -1
- package/dist/components/IconButton/IconButton.js +3 -3
- package/dist/components/IconText/IconText.d.ts.map +1 -1
- package/dist/components/IconText/IconText.js +3 -1
- package/dist/components/IconTextButton/IconTextButton.d.ts.map +1 -1
- package/dist/components/InlineEdit/InlineEdit.d.ts.map +1 -1
- package/dist/components/InlineEdit/InlineEdit.js +22 -7
- package/dist/components/LinkButton/LinkButton.d.ts.map +1 -1
- package/dist/components/LinkButton/LinkButton.js +2 -2
- package/dist/components/Listbox/Listbox.js +2 -2
- package/dist/components/Menu/Menu.d.ts.map +1 -1
- package/dist/components/Menu/Menu.js +5 -5
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/Modal/Modal.js +4 -8
- package/dist/components/MultiSelect/MultiSelect.d.ts.map +1 -1
- package/dist/components/MultiSelect/MultiSelect.js +5 -7
- package/dist/components/NumberField/NumberField.d.ts.map +1 -1
- package/dist/components/NumberField/NumberField.js +1 -1
- package/dist/components/Overlay/OverlayProvider.d.ts +1 -1
- package/dist/components/Overlay/OverlayProvider.d.ts.map +1 -1
- package/dist/components/Overlay/OverlayProvider.js +3 -7
- package/dist/components/PaginatedCombobox/PaginatedCombobox.d.ts.map +1 -1
- package/dist/components/PaginatedCombobox/PaginatedCombobox.js +9 -8
- package/dist/components/PaginatedCombobox/PaginatedComboboxReactQueryAdapter.d.ts.map +1 -1
- package/dist/components/PaginatedCombobox/PaginatedComboboxReactQueryAdapter.js +2 -2
- package/dist/components/Pagination/Pagination.js +1 -1
- package/dist/components/Popover/Popover.d.ts.map +1 -1
- package/dist/components/Popover/Popover.js +16 -18
- package/dist/components/Portal/Portal.d.ts.map +1 -1
- package/dist/components/RadioGroup/RadioGroup.d.ts.map +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/ScrollArea/ScrollArea.d.ts.map +1 -1
- package/dist/components/ScrollArea/ScrollArea.js +10 -23
- package/dist/components/Section/Section.d.ts.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.js +1 -1
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Select/Select.js +4 -4
- package/dist/components/Separator/Separator.d.ts.map +1 -1
- package/dist/components/Separator/Separator.js +1 -1
- package/dist/components/Skeleton/Skeleton.d.ts.map +1 -1
- package/dist/components/Skeleton/Skeleton.js +1 -1
- package/dist/components/SpecialModal/SpecialModal.d.ts.map +1 -1
- package/dist/components/SpecialModal/SpecialModal.js +2 -2
- package/dist/components/Spinner/Spinner.d.ts.map +1 -1
- package/dist/components/Spinner/Spinner.js +1 -1
- package/dist/components/Stack/Stack.d.ts.map +1 -1
- package/dist/components/Stack/Stack.js +1 -1
- package/dist/components/State/State.d.ts.map +1 -1
- package/dist/components/State/State.js +5 -5
- package/dist/components/State/stateIcon.d.ts.map +1 -1
- package/dist/components/StepperInput/StepperInput.js +2 -2
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/Table/Table.d.ts.map +1 -1
- package/dist/components/Table/Table.js +2 -2
- package/dist/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.js +24 -15
- package/dist/components/Text/Text.d.ts.map +1 -1
- package/dist/components/Text/Text.js +1 -1
- package/dist/components/TextArea/TextArea.d.ts.map +1 -1
- package/dist/components/TextArea/TextArea.js +2 -2
- package/dist/components/TextField/TextField.d.ts.map +1 -1
- package/dist/components/TextField/TextField.js +3 -3
- package/dist/components/Toast/Toast.d.ts +0 -4
- package/dist/components/Toast/Toast.d.ts.map +1 -1
- package/dist/components/Toast/Toast.js +63 -45
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.js +7 -9
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts.map +1 -1
- package/dist/example/CodePreview.d.ts +2 -1
- package/dist/example/CodePreview.d.ts.map +1 -1
- package/dist/example/CodePreview.js +18 -53
- package/dist/example/ExampleActionsSection.d.ts +1 -1
- package/dist/example/ExampleActionsSection.d.ts.map +1 -1
- package/dist/example/ExampleActionsSection.js +3 -3
- package/dist/example/ExampleApplicationSection.d.ts.map +1 -1
- package/dist/example/ExampleApplicationSection.js +91 -23
- package/dist/example/ExampleBasicsSections.d.ts +1 -1
- package/dist/example/ExampleBasicsSections.d.ts.map +1 -1
- package/dist/example/ExampleBasicsSections.js +22 -8
- package/dist/example/ExampleDataSection.d.ts.map +1 -1
- package/dist/example/ExampleDataSection.js +5 -5
- package/dist/example/ExampleFieldsSection.d.ts.map +1 -1
- package/dist/example/ExampleFieldsSection.js +8 -10
- package/dist/example/ExampleFoundationsSection.d.ts +1 -1
- package/dist/example/ExampleFoundationsSection.d.ts.map +1 -1
- package/dist/example/ExampleFoundationsSection.js +4 -4
- package/dist/example/ExampleOverlays.d.ts.map +1 -1
- package/dist/example/ExampleOverlays.js +4 -4
- package/dist/example/ExampleOverlaysSection.d.ts.map +1 -1
- package/dist/example/ExampleOverlaysSection.js +22 -35
- package/dist/example/ExampleSelectionSection.d.ts.map +1 -1
- package/dist/example/ExampleSelectionSection.js +8 -8
- package/dist/example/ExampleStateSection.d.ts +3 -3
- package/dist/example/ExampleStateSection.d.ts.map +1 -1
- package/dist/example/ExampleStateSection.js +15 -14
- package/dist/example/ExampleThemePlayground.d.ts +26 -26
- package/dist/example/ExampleThemePlayground.d.ts.map +1 -1
- package/dist/example/ExampleThemePlayground.js +58 -44
- package/dist/example/UiExamplePage.d.ts.map +1 -1
- package/dist/example/UiExamplePage.js +42 -55
- package/dist/example/UiExampleSection.d.ts.map +1 -1
- package/dist/example/UiExampleSection.js +1 -1
- package/dist/example/codeSamples.d.ts +1 -1
- package/dist/example/codeSamples.d.ts.map +1 -1
- package/dist/example/codeSamples.js +172 -70
- package/dist/example/exampleData.d.ts.map +1 -1
- package/dist/example/exampleData.js +5 -11
- package/dist/example/styles.css +79 -119
- package/dist/hooks/useControllableState.d.ts.map +1 -1
- package/dist/hooks/useControllableState.js +1 -3
- package/dist/hooks/useFloatingLayer.d.ts.map +1 -1
- package/dist/hooks/useFloatingLayer.js +1 -1
- package/dist/hooks/useFloatingPosition.d.ts.map +1 -1
- package/dist/hooks/useFloatingPosition.js +10 -15
- package/dist/hooks/useFocusTrap.d.ts.map +1 -1
- package/dist/hooks/useListNavigation.d.ts.map +1 -1
- package/dist/hooks/useListNavigation.js +2 -4
- package/dist/hooks/useOutsidePointerDown.d.ts.map +1 -1
- package/dist/hooks/useTypeahead.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/locale/LocaleProvider.d.ts.map +1 -1
- package/dist/locale/LocaleProvider.js +1 -1
- package/dist/provider/OrcestrUiProvider.d.ts.map +1 -1
- package/dist/styles/orcestr-ui.css +658 -1033
- package/dist/theme/ThemeProvider.d.ts.map +1 -1
- package/dist/theme/ThemeProvider.js +21 -29
- package/dist/theme/defaultTheme.d.ts.map +1 -1
- package/dist/theme/defaultTheme.js +200 -89
- package/dist/theme/systemProps.d.ts +2 -2
- package/dist/theme/systemProps.d.ts.map +1 -1
- package/dist/theme/systemProps.js +4 -35
- package/dist/theme/themeTypes.d.ts +24 -19
- package/dist/theme/themeTypes.d.ts.map +1 -1
- package/dist/theme/useTheme.d.ts.map +1 -1
- package/dist/utils/cn.d.ts.map +1 -1
- package/dist/utils/composeRefs.d.ts.map +1 -1
- package/dist/utils/mergeProps.d.ts.map +1 -1
- package/dist/utils/polymorphic.d.ts.map +1 -1
- package/package.json +4 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../src/theme/ThemeProvider.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAGR,yBAAyB,EAE5B,MAAM,cAAc,CAAC;AAEtB,wBAAgB,oBAAoB,CAAC,EACjC,QAAQ,EACR,IAAI,EAAE,cAAc,EACpB,WAAoB,EACpB,cAA0B,EAC1B,OAAO,EACP,YAAY,EACZ,eAAe,EACf,cAAc,EACd,SAAS,EACT,KAAK,EACL,MAAM,GACT,EAAE,yBAAyB,
|
|
1
|
+
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../src/theme/ThemeProvider.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAGR,yBAAyB,EAE5B,MAAM,cAAc,CAAC;AAEtB,wBAAgB,oBAAoB,CAAC,EACjC,QAAQ,EACR,IAAI,EAAE,cAAc,EACpB,WAAoB,EACpB,cAA0B,EAC1B,OAAO,EACP,YAAY,EACZ,eAAe,EACf,cAAc,EACd,SAAS,EACT,KAAK,EACL,MAAM,GACT,EAAE,yBAAyB,2CAuP3B"}
|
|
@@ -88,9 +88,9 @@ export function OrcestrThemeProvider({ children, mode: controlledMode, defaultMo
|
|
|
88
88
|
'--oui-section-shadow': theme.shadows.section,
|
|
89
89
|
'--oui-shadow-focus': theme.shadows.focus,
|
|
90
90
|
'--oui-ring': theme.colors.focusRing,
|
|
91
|
-
'--oui-radius': theme.
|
|
92
|
-
'--oui-radius-sm': theme.
|
|
93
|
-
'--oui-radius-xl': theme.
|
|
91
|
+
'--oui-radius': theme.radius.lg,
|
|
92
|
+
'--oui-radius-sm': theme.radius.md,
|
|
93
|
+
'--oui-radius-xl': theme.radius.xl,
|
|
94
94
|
'--oui-space-px': theme.spacing.px,
|
|
95
95
|
'--oui-space-xs': theme.spacing.xs,
|
|
96
96
|
'--oui-space-sm': theme.spacing.sm,
|
|
@@ -104,19 +104,19 @@ export function OrcestrThemeProvider({ children, mode: controlledMode, defaultMo
|
|
|
104
104
|
'--oui-breakpoint-tablet': theme.breakpoints.tablet,
|
|
105
105
|
'--oui-breakpoint-desktop': theme.breakpoints.desktop,
|
|
106
106
|
'--oui-breakpoint-wide': theme.breakpoints.wide,
|
|
107
|
-
'--oui-font-family': theme.
|
|
108
|
-
'--oui-font-family-mono': theme.
|
|
109
|
-
'--oui-title-size': theme.
|
|
110
|
-
'--oui-heading-size': theme.
|
|
111
|
-
'--oui-body-size': theme.
|
|
112
|
-
'--oui-compact-size': theme.
|
|
113
|
-
'--oui-label-size': theme.
|
|
114
|
-
'--oui-line-height': theme.
|
|
115
|
-
'--oui-heading-line-height': theme.
|
|
116
|
-
'--oui-weight-regular': theme.
|
|
117
|
-
'--oui-weight-medium': theme.
|
|
118
|
-
'--oui-weight-bold': theme.
|
|
119
|
-
'--oui-letter-spacing': theme.
|
|
107
|
+
'--oui-font-family': theme.text.family,
|
|
108
|
+
'--oui-font-family-mono': theme.text.mono,
|
|
109
|
+
'--oui-title-size': theme.text.title,
|
|
110
|
+
'--oui-heading-size': theme.text.heading,
|
|
111
|
+
'--oui-body-size': theme.text.body,
|
|
112
|
+
'--oui-compact-size': theme.text.compact,
|
|
113
|
+
'--oui-label-size': theme.text.label,
|
|
114
|
+
'--oui-line-height': theme.text.line,
|
|
115
|
+
'--oui-heading-line-height': theme.text.headingLine,
|
|
116
|
+
'--oui-weight-regular': theme.text.regular,
|
|
117
|
+
'--oui-weight-medium': theme.text.medium,
|
|
118
|
+
'--oui-weight-bold': theme.text.bold,
|
|
119
|
+
'--oui-letter-spacing': theme.text.letterSpacing,
|
|
120
120
|
'--oui-status-neutral': theme.status.neutral.color,
|
|
121
121
|
'--oui-status-neutral-text': theme.status.neutral.text,
|
|
122
122
|
'--oui-status-neutral-soft': theme.status.neutral.soft,
|
|
@@ -156,11 +156,13 @@ export function OrcestrThemeProvider({ children, mode: controlledMode, defaultMo
|
|
|
156
156
|
'--oui-z-toast': theme.zIndex.toast,
|
|
157
157
|
'--oui-toast-bg': theme.toast.background,
|
|
158
158
|
'--oui-toast-blur': cssBlur(theme.toast.blur),
|
|
159
|
-
'--oui-toast-border-color': theme.toast.borderColor,
|
|
160
159
|
'--oui-toast-shadow': theme.toast.shadow,
|
|
161
160
|
'--oui-toast-animation-duration': theme.toast.animationDuration,
|
|
162
161
|
'--oui-toast-exit-duration': theme.toast.exitDuration,
|
|
163
162
|
'--oui-toast-progress-height': theme.toast.progressHeight,
|
|
163
|
+
'--oui-scrollbar-thumb': theme.scrollbar.thumb,
|
|
164
|
+
'--oui-scrollbar-thumb-hover': theme.scrollbar.thumbHover,
|
|
165
|
+
'--oui-scrollbar-track': theme.scrollbar.track,
|
|
164
166
|
'--oui-state-hover-opacity': theme.states.hoverOpacity,
|
|
165
167
|
'--oui-state-active-opacity': theme.states.activeOpacity,
|
|
166
168
|
'--oui-state-disabled-opacity': theme.states.disabledOpacity,
|
|
@@ -188,15 +190,7 @@ export function OrcestrThemeProvider({ children, mode: controlledMode, defaultMo
|
|
|
188
190
|
setMode,
|
|
189
191
|
setSurface,
|
|
190
192
|
toggleMode,
|
|
191
|
-
}), [
|
|
192
|
-
resolvedMode,
|
|
193
|
-
resolvedSurface,
|
|
194
|
-
theme,
|
|
195
|
-
rootStyle,
|
|
196
|
-
setMode,
|
|
197
|
-
setSurface,
|
|
198
|
-
toggleMode,
|
|
199
|
-
]);
|
|
193
|
+
}), [resolvedMode, resolvedSurface, theme, rootStyle, setMode, setSurface, toggleMode]);
|
|
200
194
|
useEffect(() => {
|
|
201
195
|
const root = document.documentElement;
|
|
202
196
|
const previousTheme = root.getAttribute('data-oui-theme');
|
|
@@ -317,9 +311,7 @@ function parseHexColor(color) {
|
|
|
317
311
|
function parseAlpha(value) {
|
|
318
312
|
if (!value)
|
|
319
313
|
return 1;
|
|
320
|
-
const alpha = value.endsWith('%')
|
|
321
|
-
? Number.parseFloat(value) / 100
|
|
322
|
-
: Number.parseFloat(value);
|
|
314
|
+
const alpha = value.endsWith('%') ? Number.parseFloat(value) / 100 : Number.parseFloat(value);
|
|
323
315
|
if (!Number.isFinite(alpha))
|
|
324
316
|
return 1;
|
|
325
317
|
return Math.max(0, Math.min(1, alpha));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaultTheme.d.ts","sourceRoot":"","sources":["../../src/theme/defaultTheme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,YAAY,EACZ,gBAAgB,EAChB,qBAAqB,EACrB,mBAAmB,EACtB,MAAM,cAAc,CAAC;AAItB,MAAM,MAAM,6BAA6B,GAAG;IACxC,KAAK,EAAE,mBAAmB,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAC5C,mBAAmB,EACnB,6BAA6B,CAsBhC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,6BAA6B,EAK/D,CAAC;
|
|
1
|
+
{"version":3,"file":"defaultTheme.d.ts","sourceRoot":"","sources":["../../src/theme/defaultTheme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,YAAY,EACZ,gBAAgB,EAChB,qBAAqB,EACrB,mBAAmB,EACtB,MAAM,cAAc,CAAC;AAItB,MAAM,MAAM,6BAA6B,GAAG;IACxC,KAAK,EAAE,mBAAmB,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAC5C,mBAAmB,EACnB,6BAA6B,CAsBhC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,6BAA6B,EAK/D,CAAC;AA0rBF,wBAAgB,WAAW,CACvB,IAAI,EAAE,gBAAgB,EACtB,OAAO,GAAE,mBAA+B,EACxC,cAAc,CAAC,EAAE,qBAAqB,GACvC,YAAY,CASd;AAED,eAAO,MAAM,SAAS,EAAE,YAAkC,CAAC;AAC3D,eAAO,MAAM,UAAU,EAAE,YAAmC,CAAC"}
|
|
@@ -4,30 +4,30 @@ export const orcestrThemeSurfaceRegistry = {
|
|
|
4
4
|
label: 'Orcestr',
|
|
5
5
|
description: 'Neutral platform base for shared entity surfaces.',
|
|
6
6
|
},
|
|
7
|
-
|
|
8
|
-
value: '
|
|
9
|
-
label: '
|
|
10
|
-
description: 'Dense theme for
|
|
7
|
+
deliveries: {
|
|
8
|
+
value: 'deliveries',
|
|
9
|
+
label: 'Deliveries',
|
|
10
|
+
description: 'Dense theme for deliveries workflows.',
|
|
11
11
|
},
|
|
12
|
-
|
|
13
|
-
value: '
|
|
14
|
-
label: '
|
|
15
|
-
description: '
|
|
12
|
+
beauty: {
|
|
13
|
+
value: 'beauty',
|
|
14
|
+
label: 'Beauty',
|
|
15
|
+
description: 'Soft visual theme for beauty workflows.',
|
|
16
16
|
},
|
|
17
|
-
|
|
18
|
-
value: '
|
|
19
|
-
label: '
|
|
20
|
-
description: '
|
|
17
|
+
jewelry: {
|
|
18
|
+
value: 'jewelry',
|
|
19
|
+
label: 'Jewelry',
|
|
20
|
+
description: 'Warm precise theme for jewelry workflows.',
|
|
21
21
|
},
|
|
22
22
|
};
|
|
23
23
|
export const orcestrThemeSurfaces = [
|
|
24
24
|
orcestrThemeSurfaceRegistry.orcestr,
|
|
25
|
-
orcestrThemeSurfaceRegistry.
|
|
26
|
-
orcestrThemeSurfaceRegistry.
|
|
27
|
-
orcestrThemeSurfaceRegistry.
|
|
25
|
+
orcestrThemeSurfaceRegistry.deliveries,
|
|
26
|
+
orcestrThemeSurfaceRegistry.beauty,
|
|
27
|
+
orcestrThemeSurfaceRegistry.jewelry,
|
|
28
28
|
];
|
|
29
29
|
const sharedStructure = {
|
|
30
|
-
|
|
30
|
+
radius: {
|
|
31
31
|
sm: '4px',
|
|
32
32
|
md: '6px',
|
|
33
33
|
lg: '8px',
|
|
@@ -51,19 +51,19 @@ const sharedStructure = {
|
|
|
51
51
|
desktop: '1024px',
|
|
52
52
|
wide: '1440px',
|
|
53
53
|
},
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
54
|
+
text: {
|
|
55
|
+
family: 'var(--font-manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif)',
|
|
56
|
+
mono: 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace',
|
|
57
|
+
title: '22px',
|
|
58
|
+
heading: '18px',
|
|
59
|
+
body: '14px',
|
|
60
|
+
compact: '13px',
|
|
61
|
+
label: '12px',
|
|
62
|
+
line: '1.45',
|
|
63
|
+
headingLine: '1.18',
|
|
64
|
+
regular: 450,
|
|
65
|
+
medium: 650,
|
|
66
|
+
bold: 760,
|
|
67
67
|
letterSpacing: '0',
|
|
68
68
|
},
|
|
69
69
|
motion: {
|
|
@@ -232,14 +232,18 @@ const darkBase = {
|
|
|
232
232
|
},
|
|
233
233
|
}),
|
|
234
234
|
toast: {
|
|
235
|
-
background: 'rgb(12 12 15 /
|
|
236
|
-
blur:
|
|
237
|
-
|
|
238
|
-
shadow: '0 10px 30px rgb(0 0 0 / 20%)',
|
|
235
|
+
background: 'rgb(12 12 15 / 5%)',
|
|
236
|
+
blur: 6,
|
|
237
|
+
shadow: '0 16px 40px rgb(0 0 0 / 30%)',
|
|
239
238
|
animationDuration: '420ms',
|
|
240
239
|
exitDuration: '320ms',
|
|
241
240
|
progressHeight: '2px',
|
|
242
241
|
},
|
|
242
|
+
scrollbar: {
|
|
243
|
+
thumb: 'color-mix(in srgb, var(--oui-bg) 96%, var(--oui-text) 4%)',
|
|
244
|
+
thumbHover: 'color-mix(in srgb, var(--oui-bg) 93%, var(--oui-text) 7%)',
|
|
245
|
+
track: 'transparent',
|
|
246
|
+
},
|
|
243
247
|
...sharedStructure,
|
|
244
248
|
};
|
|
245
249
|
const lightBase = {
|
|
@@ -365,31 +369,92 @@ const lightBase = {
|
|
|
365
369
|
},
|
|
366
370
|
}),
|
|
367
371
|
toast: {
|
|
368
|
-
background: 'rgb(255 255 255 /
|
|
369
|
-
blur:
|
|
370
|
-
|
|
371
|
-
shadow: '0 10px 30px rgb(15 23 42 / 12%)',
|
|
372
|
+
background: 'rgb(255 255 255 / 5%)',
|
|
373
|
+
blur: 6,
|
|
374
|
+
shadow: '0 16px 40px rgb(15 23 42 / 16%)',
|
|
372
375
|
animationDuration: '420ms',
|
|
373
376
|
exitDuration: '320ms',
|
|
374
377
|
progressHeight: '2px',
|
|
375
378
|
},
|
|
379
|
+
scrollbar: {
|
|
380
|
+
thumb: 'color-mix(in srgb, var(--oui-bg) 95%, var(--oui-text) 5%)',
|
|
381
|
+
thumbHover: 'color-mix(in srgb, var(--oui-bg) 92%, var(--oui-text) 8%)',
|
|
382
|
+
track: 'transparent',
|
|
383
|
+
},
|
|
376
384
|
...sharedStructure,
|
|
377
385
|
};
|
|
378
386
|
const surfaceOverrides = {
|
|
379
387
|
orcestr: {
|
|
380
|
-
dark: {
|
|
381
|
-
|
|
388
|
+
dark: {
|
|
389
|
+
colors: {
|
|
390
|
+
primary: {
|
|
391
|
+
base: '#6e56cf',
|
|
392
|
+
text: '#baa7ff',
|
|
393
|
+
surface: '#8354fe36',
|
|
394
|
+
border: '#8f6cfd6d',
|
|
395
|
+
contrast: '#ffffff',
|
|
396
|
+
},
|
|
397
|
+
selected: '#8354fe36',
|
|
398
|
+
focusRing: '0 0 0 3px #7d51fd50',
|
|
399
|
+
},
|
|
400
|
+
status: {
|
|
401
|
+
primary: {
|
|
402
|
+
color: '#6e56cf',
|
|
403
|
+
text: '#baa7ff',
|
|
404
|
+
soft: '#8354fe36',
|
|
405
|
+
border: '#8f6cfd6d',
|
|
406
|
+
},
|
|
407
|
+
},
|
|
408
|
+
},
|
|
409
|
+
light: {
|
|
410
|
+
colors: {
|
|
411
|
+
primary: {
|
|
412
|
+
base: '#6e56cf',
|
|
413
|
+
text: '#6550b9',
|
|
414
|
+
surface: '#4400ee0f',
|
|
415
|
+
border: '#3100fb35',
|
|
416
|
+
contrast: '#ffffff',
|
|
417
|
+
},
|
|
418
|
+
selected: '#4400ee0f',
|
|
419
|
+
focusRing: '0 0 0 3px #4300ff1b',
|
|
420
|
+
},
|
|
421
|
+
status: {
|
|
422
|
+
primary: {
|
|
423
|
+
color: '#6e56cf',
|
|
424
|
+
text: '#6550b9',
|
|
425
|
+
soft: '#4400ee0f',
|
|
426
|
+
border: '#3100fb35',
|
|
427
|
+
},
|
|
428
|
+
},
|
|
429
|
+
},
|
|
382
430
|
},
|
|
383
|
-
|
|
431
|
+
deliveries: {
|
|
384
432
|
dark: {
|
|
385
433
|
colors: {
|
|
386
434
|
bg: '#09090b',
|
|
387
435
|
panel: '#0c0c0f',
|
|
388
436
|
panelSoft: '#222222',
|
|
389
437
|
floating: '#0c0c0f',
|
|
438
|
+
primary: {
|
|
439
|
+
base: '#f76b15',
|
|
440
|
+
text: '#ffa057',
|
|
441
|
+
surface: '#fb6a0025',
|
|
442
|
+
border: '#fd75045c',
|
|
443
|
+
contrast: '#ffffff',
|
|
444
|
+
},
|
|
445
|
+
selected: '#fb6a0025',
|
|
446
|
+
focusRing: '0 0 0 3px #ff590039',
|
|
447
|
+
},
|
|
448
|
+
status: {
|
|
449
|
+
primary: {
|
|
450
|
+
color: '#f76b15',
|
|
451
|
+
text: '#ffa057',
|
|
452
|
+
soft: '#fb6a0025',
|
|
453
|
+
border: '#fd75045c',
|
|
454
|
+
},
|
|
390
455
|
},
|
|
391
456
|
toast: {
|
|
392
|
-
background: 'rgb(12 12 15 /
|
|
457
|
+
background: 'rgb(12 12 15 / 5%)',
|
|
393
458
|
},
|
|
394
459
|
components: {
|
|
395
460
|
buttonFontWeight: 500,
|
|
@@ -403,9 +468,26 @@ const surfaceOverrides = {
|
|
|
403
468
|
panel: '#ffffff',
|
|
404
469
|
panelSoft: '#f9f9f9',
|
|
405
470
|
floating: '#ffffff',
|
|
471
|
+
primary: {
|
|
472
|
+
base: '#f76b15',
|
|
473
|
+
text: '#cc4e00',
|
|
474
|
+
surface: '#ff9c0029',
|
|
475
|
+
border: '#ff81007d',
|
|
476
|
+
contrast: '#ffffff',
|
|
477
|
+
},
|
|
478
|
+
selected: '#ff9c0029',
|
|
479
|
+
focusRing: '0 0 0 3px #ff91014a',
|
|
480
|
+
},
|
|
481
|
+
status: {
|
|
482
|
+
primary: {
|
|
483
|
+
color: '#f76b15',
|
|
484
|
+
text: '#cc4e00',
|
|
485
|
+
soft: '#ff9c0029',
|
|
486
|
+
border: '#ff81007d',
|
|
487
|
+
},
|
|
406
488
|
},
|
|
407
489
|
toast: {
|
|
408
|
-
background: 'rgb(255 255 255 /
|
|
490
|
+
background: 'rgb(255 255 255 / 5%)',
|
|
409
491
|
},
|
|
410
492
|
components: {
|
|
411
493
|
buttonFontWeight: 500,
|
|
@@ -414,22 +496,22 @@ const surfaceOverrides = {
|
|
|
414
496
|
},
|
|
415
497
|
},
|
|
416
498
|
},
|
|
417
|
-
|
|
499
|
+
beauty: {
|
|
418
500
|
dark: {
|
|
419
501
|
colors: {
|
|
420
|
-
bg: '#
|
|
421
|
-
panel: '#
|
|
422
|
-
panelSoft: '#
|
|
423
|
-
floating: '#
|
|
502
|
+
bg: '#09090b',
|
|
503
|
+
panel: '#0c0c0f',
|
|
504
|
+
panelSoft: '#222222',
|
|
505
|
+
floating: '#0c0c0f',
|
|
424
506
|
primary: {
|
|
425
|
-
base: '#
|
|
426
|
-
text: '#
|
|
427
|
-
surface: '
|
|
428
|
-
border: '
|
|
507
|
+
base: '#d86d8f',
|
|
508
|
+
text: '#f7d7e2',
|
|
509
|
+
surface: '#f2a8bf29',
|
|
510
|
+
border: '#f2a8bf5f',
|
|
429
511
|
contrast: '#ffffff',
|
|
430
512
|
},
|
|
431
|
-
selected: '
|
|
432
|
-
focusRing: '0 0 0 3px
|
|
513
|
+
selected: '#f2a8bf29',
|
|
514
|
+
focusRing: '0 0 0 3px #f2a8bf3f',
|
|
433
515
|
warning: {
|
|
434
516
|
base: '#ffd079',
|
|
435
517
|
text: '#ffd079',
|
|
@@ -445,30 +527,37 @@ const surfaceOverrides = {
|
|
|
445
527
|
contrast: '#202020',
|
|
446
528
|
},
|
|
447
529
|
},
|
|
530
|
+
status: {
|
|
531
|
+
primary: {
|
|
532
|
+
color: '#d86d8f',
|
|
533
|
+
text: '#f7d7e2',
|
|
534
|
+
soft: '#f2a8bf29',
|
|
535
|
+
border: '#f2a8bf5f',
|
|
536
|
+
},
|
|
537
|
+
},
|
|
448
538
|
toast: {
|
|
449
|
-
background: 'rgb(29 24 32 /
|
|
450
|
-
borderColor: 'rgb(255 193 231 / 16%)',
|
|
539
|
+
background: 'rgb(29 24 32 / 5%)',
|
|
451
540
|
shadow: '0 12px 32px rgb(0 0 0 / 22%)',
|
|
452
541
|
},
|
|
453
|
-
|
|
542
|
+
radius: {
|
|
454
543
|
md: '8px',
|
|
455
544
|
lg: '10px',
|
|
456
545
|
},
|
|
457
546
|
},
|
|
458
547
|
light: {
|
|
459
548
|
colors: {
|
|
460
|
-
bg: '#
|
|
549
|
+
bg: '#ffffff',
|
|
461
550
|
panel: '#ffffff',
|
|
462
|
-
panelSoft: '#
|
|
551
|
+
panelSoft: '#fff0f5',
|
|
463
552
|
primary: {
|
|
464
|
-
base: '#
|
|
465
|
-
text: '#
|
|
466
|
-
surface: '
|
|
467
|
-
border: '
|
|
553
|
+
base: '#b84c70',
|
|
554
|
+
text: '#8f3654',
|
|
555
|
+
surface: '#fff0f5',
|
|
556
|
+
border: '#b84c7047',
|
|
468
557
|
contrast: '#ffffff',
|
|
469
558
|
},
|
|
470
|
-
selected: '
|
|
471
|
-
focusRing: '0 0 0 3px
|
|
559
|
+
selected: '#fff0f5',
|
|
560
|
+
focusRing: '0 0 0 3px #b84c7023',
|
|
472
561
|
warning: {
|
|
473
562
|
base: '#b96b00',
|
|
474
563
|
text: '#b96b00',
|
|
@@ -484,17 +573,24 @@ const surfaceOverrides = {
|
|
|
484
573
|
contrast: '#ffffff',
|
|
485
574
|
},
|
|
486
575
|
},
|
|
576
|
+
status: {
|
|
577
|
+
primary: {
|
|
578
|
+
color: '#b84c70',
|
|
579
|
+
text: '#8f3654',
|
|
580
|
+
soft: '#fff0f5',
|
|
581
|
+
border: '#b84c7047',
|
|
582
|
+
},
|
|
583
|
+
},
|
|
487
584
|
toast: {
|
|
488
|
-
background: 'rgb(255 255 255 /
|
|
489
|
-
borderColor: 'rgb(192 38 127 / 13%)',
|
|
585
|
+
background: 'rgb(255 255 255 / 5%)',
|
|
490
586
|
},
|
|
491
|
-
|
|
587
|
+
radius: {
|
|
492
588
|
md: '8px',
|
|
493
589
|
lg: '10px',
|
|
494
590
|
},
|
|
495
591
|
},
|
|
496
592
|
},
|
|
497
|
-
|
|
593
|
+
jewelry: {
|
|
498
594
|
dark: {
|
|
499
595
|
colors: {
|
|
500
596
|
bg: '#11100d',
|
|
@@ -502,14 +598,14 @@ const surfaceOverrides = {
|
|
|
502
598
|
panelSoft: '#242017',
|
|
503
599
|
floating: '#191712',
|
|
504
600
|
primary: {
|
|
505
|
-
base: '#
|
|
506
|
-
text: '#
|
|
507
|
-
surface: '
|
|
508
|
-
border: '
|
|
509
|
-
contrast: '#
|
|
601
|
+
base: '#ffc53d',
|
|
602
|
+
text: '#ffca16',
|
|
603
|
+
surface: '#fa820022',
|
|
604
|
+
border: '#fd9b0051',
|
|
605
|
+
contrast: '#111111',
|
|
510
606
|
},
|
|
511
|
-
selected: '
|
|
512
|
-
focusRing: '0 0 0 3px
|
|
607
|
+
selected: '#fa820022',
|
|
608
|
+
focusRing: '0 0 0 3px #fc820032',
|
|
513
609
|
warning: {
|
|
514
610
|
base: '#f4c95d',
|
|
515
611
|
text: '#f4c95d',
|
|
@@ -525,11 +621,18 @@ const surfaceOverrides = {
|
|
|
525
621
|
contrast: '#202020',
|
|
526
622
|
},
|
|
527
623
|
},
|
|
624
|
+
status: {
|
|
625
|
+
primary: {
|
|
626
|
+
color: '#ffc53d',
|
|
627
|
+
text: '#ffca16',
|
|
628
|
+
soft: '#fa820022',
|
|
629
|
+
border: '#fd9b0051',
|
|
630
|
+
},
|
|
631
|
+
},
|
|
528
632
|
toast: {
|
|
529
|
-
background: 'rgb(25 23 18 /
|
|
530
|
-
borderColor: 'rgb(241 217 144 / 15%)',
|
|
633
|
+
background: 'rgb(25 23 18 / 5%)',
|
|
531
634
|
},
|
|
532
|
-
|
|
635
|
+
radius: {
|
|
533
636
|
md: '6px',
|
|
534
637
|
lg: '8px',
|
|
535
638
|
},
|
|
@@ -540,14 +643,14 @@ const surfaceOverrides = {
|
|
|
540
643
|
panel: '#ffffff',
|
|
541
644
|
panelSoft: '#f3efe4',
|
|
542
645
|
primary: {
|
|
543
|
-
base: '#
|
|
544
|
-
text: '#
|
|
545
|
-
surface: '
|
|
546
|
-
border: '
|
|
547
|
-
contrast: '#
|
|
646
|
+
base: '#ffc53d',
|
|
647
|
+
text: '#ab6400',
|
|
648
|
+
surface: '#ffde003d',
|
|
649
|
+
border: '#eab5008c',
|
|
650
|
+
contrast: '#111111',
|
|
548
651
|
},
|
|
549
|
-
selected: '
|
|
550
|
-
focusRing: '0 0 0 3px
|
|
652
|
+
selected: '#ffde003d',
|
|
653
|
+
focusRing: '0 0 0 3px #ffd40063',
|
|
551
654
|
warning: {
|
|
552
655
|
base: '#a16207',
|
|
553
656
|
text: '#a16207',
|
|
@@ -563,9 +666,16 @@ const surfaceOverrides = {
|
|
|
563
666
|
contrast: '#ffffff',
|
|
564
667
|
},
|
|
565
668
|
},
|
|
669
|
+
status: {
|
|
670
|
+
primary: {
|
|
671
|
+
color: '#ffc53d',
|
|
672
|
+
text: '#ab6400',
|
|
673
|
+
soft: '#ffde003d',
|
|
674
|
+
border: '#eab5008c',
|
|
675
|
+
},
|
|
676
|
+
},
|
|
566
677
|
toast: {
|
|
567
|
-
background: 'rgb(255 255 255 /
|
|
568
|
-
borderColor: 'rgb(155 111 18 / 13%)',
|
|
678
|
+
background: 'rgb(255 255 255 / 5%)',
|
|
569
679
|
},
|
|
570
680
|
},
|
|
571
681
|
},
|
|
@@ -579,16 +689,17 @@ function mergeTheme(baseTheme, overrides) {
|
|
|
579
689
|
mode: baseTheme.mode,
|
|
580
690
|
surface: baseTheme.surface,
|
|
581
691
|
colors: mergeColors(baseTheme.colors, overrides.colors),
|
|
582
|
-
|
|
692
|
+
radius: { ...baseTheme.radius, ...overrides.radius },
|
|
583
693
|
spacing: { ...baseTheme.spacing, ...overrides.spacing },
|
|
584
694
|
breakpoints: { ...baseTheme.breakpoints, ...overrides.breakpoints },
|
|
585
695
|
shadows: { ...baseTheme.shadows, ...overrides.shadows },
|
|
586
|
-
|
|
696
|
+
text: { ...baseTheme.text, ...overrides.text },
|
|
587
697
|
status: mergeStatus(baseTheme.status, overrides.status),
|
|
588
698
|
motion: { ...baseTheme.motion, ...overrides.motion },
|
|
589
699
|
density: { ...baseTheme.density, ...overrides.density },
|
|
590
700
|
zIndex: { ...baseTheme.zIndex, ...overrides.zIndex },
|
|
591
701
|
toast: { ...baseTheme.toast, ...overrides.toast },
|
|
702
|
+
scrollbar: { ...baseTheme.scrollbar, ...overrides.scrollbar },
|
|
592
703
|
states: { ...baseTheme.states, ...overrides.states },
|
|
593
704
|
components: { ...baseTheme.components, ...overrides.components },
|
|
594
705
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { CSSProperties } from 'react';
|
|
2
2
|
export type SemanticTone = 'neutral' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info';
|
|
3
|
-
export type ColorTone = '
|
|
3
|
+
export type ColorTone = 'gray' | 'blue' | 'cyan' | 'green' | 'yellow' | 'orange' | 'red' | 'purple';
|
|
4
4
|
export type Tone = SemanticTone | ColorTone;
|
|
5
|
-
export type ToneInput = Tone | 'muted'
|
|
5
|
+
export type ToneInput = Tone | 'muted';
|
|
6
6
|
export type UiSize = 1 | 2 | 3 | 4 | '1' | '2' | '3' | '4';
|
|
7
7
|
export type RadiusScale = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
|
8
8
|
export type AlignShort = 's' | 'c' | 'e' | 'st' | 'b' | 'start' | 'center' | 'end' | 'stretch' | 'baseline';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"systemProps.d.ts","sourceRoot":"","sources":["../../src/theme/systemProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"systemProps.d.ts","sourceR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,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,EAAE,CAAC,EAAE,eAAe,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IACtC,EAAE,CAAC,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;IACjC,EAAE,CAAC,EAAE,eAAe,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IACtC,EAAE,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;IAChC,KAAK,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAC/B,CAAC,CAAC,EAAE,WAAW,GAAG,GAAG,WAAW,EAAE,GAAG,MAAM,CAAC;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AA2HF,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC9D,KAAK,EAAE,CAAC,GACT;IACC,WAAW,EAAE,aAAa,CAAC;IAC3B,SAAS,EAAE,IAAI,CAAC,CAAC,EAAE,MAAM,WAAW,CAAC,CAAC;CACzC,CAqKA;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS,EAAE,QAAQ,GAAE,IAAgB,GAAG,IAAI,CAQ5F"}
|
|
@@ -49,18 +49,7 @@ const systemKeys = new Set([
|
|
|
49
49
|
'r',
|
|
50
50
|
'truncate',
|
|
51
51
|
]);
|
|
52
|
-
const spacing = [
|
|
53
|
-
'0',
|
|
54
|
-
'4px',
|
|
55
|
-
'8px',
|
|
56
|
-
'12px',
|
|
57
|
-
'16px',
|
|
58
|
-
'24px',
|
|
59
|
-
'32px',
|
|
60
|
-
'40px',
|
|
61
|
-
'48px',
|
|
62
|
-
'64px',
|
|
63
|
-
];
|
|
52
|
+
const spacing = ['0', '4px', '8px', '12px', '16px', '24px', '32px', '40px', '48px', '64px'];
|
|
64
53
|
const radiusScale = ['0', '2px', '4px', '6px', '8px', '10px', '12px', '999px'];
|
|
65
54
|
function sizeValue(value) {
|
|
66
55
|
if (value === undefined)
|
|
@@ -298,13 +287,7 @@ export function normalizeTone(value, fallback = 'neutral') {
|
|
|
298
287
|
switch (value) {
|
|
299
288
|
case undefined:
|
|
300
289
|
case 'muted':
|
|
301
|
-
|
|
302
|
-
case 'mauve':
|
|
303
|
-
case 'slate':
|
|
304
|
-
case 'sage':
|
|
305
|
-
case 'olive':
|
|
306
|
-
case 'sand':
|
|
307
|
-
return value === undefined ? fallback : 'neutral';
|
|
290
|
+
return fallback;
|
|
308
291
|
default:
|
|
309
292
|
return isTone(value) ? value : fallback;
|
|
310
293
|
}
|
|
@@ -317,26 +300,12 @@ function isTone(value) {
|
|
|
317
300
|
value === 'warning' ||
|
|
318
301
|
value === 'danger' ||
|
|
319
302
|
value === 'info' ||
|
|
303
|
+
value === 'gray' ||
|
|
320
304
|
value === 'blue' ||
|
|
321
|
-
value === 'sky' ||
|
|
322
305
|
value === 'cyan' ||
|
|
323
|
-
value === 'teal' ||
|
|
324
|
-
value === 'indigo' ||
|
|
325
|
-
value === 'violet' ||
|
|
326
|
-
value === 'purple' ||
|
|
327
|
-
value === 'iris' ||
|
|
328
306
|
value === 'green' ||
|
|
329
|
-
value === 'jade' ||
|
|
330
|
-
value === 'mint' ||
|
|
331
|
-
value === 'grass' ||
|
|
332
|
-
value === 'lime' ||
|
|
333
307
|
value === 'yellow' ||
|
|
334
|
-
value === 'amber' ||
|
|
335
308
|
value === 'orange' ||
|
|
336
|
-
value === 'brown' ||
|
|
337
309
|
value === 'red' ||
|
|
338
|
-
value === '
|
|
339
|
-
value === 'crimson' ||
|
|
340
|
-
value === 'pink' ||
|
|
341
|
-
value === 'tomato');
|
|
310
|
+
value === 'purple');
|
|
342
311
|
}
|