@orcestr/ui 0.0.3 → 0.1.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/dist/components/Alert/Alert.d.ts +5 -4
- package/dist/components/Alert/Alert.d.ts.map +1 -1
- package/dist/components/Alert/Alert.js +5 -2
- package/dist/components/AppShell/AppShell.d.ts +13 -0
- package/dist/components/AppShell/AppShell.d.ts.map +1 -1
- package/dist/components/AppShell/AppShell.js +14 -9
- package/dist/components/AppSidebar/AppSidebar.d.ts +36 -0
- package/dist/components/AppSidebar/AppSidebar.d.ts.map +1 -0
- package/dist/components/AppSidebar/AppSidebar.js +117 -0
- package/dist/components/Badge/Badge.d.ts +8 -6
- package/dist/components/Badge/Badge.d.ts.map +1 -1
- package/dist/components/Badge/Badge.js +4 -4
- package/dist/components/BadgeSelectMenu/BadgeSelectMenu.d.ts +22 -0
- package/dist/components/BadgeSelectMenu/BadgeSelectMenu.d.ts.map +1 -0
- package/dist/components/BadgeSelectMenu/BadgeSelectMenu.js +50 -0
- package/dist/components/Box/Box.d.ts +2 -0
- package/dist/components/Box/Box.d.ts.map +1 -1
- package/dist/components/Box/Box.js +15 -2
- package/dist/components/Button/Button.d.ts +7 -3
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.js +23 -3
- package/dist/components/Card/Card.d.ts +26 -0
- package/dist/components/Card/Card.d.ts.map +1 -0
- package/dist/components/Card/Card.js +25 -0
- package/dist/components/Checkbox/Checkbox.d.ts +6 -2
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.js +13 -4
- package/dist/components/Collapse/Collapse.d.ts.map +1 -1
- package/dist/components/Collapse/Collapse.js +5 -25
- package/dist/components/CommandPalette/CommandPalette.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPalette.js +10 -9
- package/dist/components/ConfirmDialog/ConfirmDialog.d.ts.map +1 -1
- package/dist/components/ConfirmDialog/ConfirmDialog.js +5 -2
- package/dist/components/ContextMenu/ContextMenu.d.ts.map +1 -1
- package/dist/components/ContextMenu/ContextMenu.js +2 -2
- 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/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePicker.js +9 -1
- package/dist/components/Dialog/Dialog.d.ts +69 -1
- package/dist/components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.js +48 -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 +4 -4
- package/dist/components/EntityPicker/EntityPicker.d.ts +2 -1
- package/dist/components/EntityPicker/EntityPicker.d.ts.map +1 -1
- package/dist/components/EntityPicker/EntityPicker.js +2 -2
- package/dist/components/Flex/Flex.d.ts +5 -1
- package/dist/components/Flex/Flex.d.ts.map +1 -1
- package/dist/components/Flex/Flex.js +16 -3
- package/dist/components/Grid/Grid.d.ts +9 -2
- package/dist/components/Grid/Grid.d.ts.map +1 -1
- package/dist/components/Grid/Grid.js +22 -1
- package/dist/components/IconButton/IconButton.d.ts +19 -7
- package/dist/components/IconButton/IconButton.d.ts.map +1 -1
- package/dist/components/IconButton/IconButton.js +40 -5
- package/dist/components/IconTextButton/IconTextButton.d.ts +20 -0
- package/dist/components/IconTextButton/IconTextButton.d.ts.map +1 -0
- package/dist/components/IconTextButton/IconTextButton.js +24 -0
- package/dist/components/InlineEdit/InlineEdit.d.ts +63 -0
- package/dist/components/InlineEdit/InlineEdit.d.ts.map +1 -0
- package/dist/components/InlineEdit/InlineEdit.js +98 -0
- package/dist/components/LinkButton/LinkButton.d.ts +25 -0
- package/dist/components/LinkButton/LinkButton.d.ts.map +1 -0
- package/dist/components/LinkButton/LinkButton.js +12 -0
- package/dist/components/Modal/Modal.d.ts +29 -6
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/Modal/Modal.js +37 -13
- package/dist/components/Overlay/OverlayProvider.d.ts +1 -0
- package/dist/components/Overlay/OverlayProvider.d.ts.map +1 -1
- package/dist/components/Overlay/OverlayProvider.js +18 -1
- package/dist/components/PaginatedCombobox/PaginatedCombobox.d.ts +2 -1
- package/dist/components/PaginatedCombobox/PaginatedCombobox.d.ts.map +1 -1
- package/dist/components/PaginatedCombobox/PaginatedCombobox.js +3 -3
- package/dist/components/Popover/Popover.d.ts +37 -3
- package/dist/components/Popover/Popover.d.ts.map +1 -1
- package/dist/components/Popover/Popover.js +56 -9
- package/dist/components/ScrollArea/ScrollArea.d.ts +4 -0
- package/dist/components/ScrollArea/ScrollArea.d.ts.map +1 -1
- package/dist/components/ScrollArea/ScrollArea.js +30 -4
- package/dist/components/Section/Section.d.ts +2 -0
- package/dist/components/Section/Section.d.ts.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +24 -1
- package/dist/components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.js +28 -2
- package/dist/components/Select/Select.d.ts +36 -4
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Select/Select.js +70 -3
- package/dist/components/Separator/Separator.d.ts +3 -1
- package/dist/components/Separator/Separator.d.ts.map +1 -1
- package/dist/components/Separator/Separator.js +4 -2
- package/dist/components/SpecialModal/SpecialModal.d.ts +43 -0
- package/dist/components/SpecialModal/SpecialModal.d.ts.map +1 -0
- package/dist/components/SpecialModal/SpecialModal.js +34 -0
- package/dist/components/Spinner/Spinner.d.ts +3 -1
- package/dist/components/Spinner/Spinner.d.ts.map +1 -1
- package/dist/components/Spinner/Spinner.js +2 -2
- package/dist/components/State/State.d.ts +8 -1
- package/dist/components/State/State.d.ts.map +1 -1
- package/dist/components/State/State.js +2 -2
- package/dist/components/Switch/Switch.d.ts +2 -0
- package/dist/components/Switch/Switch.d.ts.map +1 -1
- package/dist/components/Switch/Switch.js +2 -1
- package/dist/components/Table/Table.d.ts +64 -0
- package/dist/components/Table/Table.d.ts.map +1 -0
- package/dist/components/Table/Table.js +38 -0
- package/dist/components/Tabs/Tabs.d.ts +33 -2
- package/dist/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.js +201 -5
- package/dist/components/Text/Text.d.ts +13 -3
- package/dist/components/Text/Text.d.ts.map +1 -1
- package/dist/components/Text/Text.js +16 -3
- package/dist/components/TextArea/TextArea.d.ts.map +1 -1
- package/dist/components/TextArea/TextArea.js +1 -1
- package/dist/components/TextField/TextField.d.ts.map +1 -1
- package/dist/components/TextField/TextField.js +1 -1
- package/dist/components/Toast/Toast.d.ts +1 -4
- package/dist/components/Toast/Toast.d.ts.map +1 -1
- package/dist/components/Toast/Toast.js +72 -37
- package/dist/components/Tooltip/Tooltip.d.ts +11 -3
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.js +58 -9
- package/dist/example/CodePreview.d.ts +2 -1
- package/dist/example/CodePreview.d.ts.map +1 -1
- package/dist/example/CodePreview.js +16 -51
- package/dist/example/ExampleActionsSection.d.ts.map +1 -1
- package/dist/example/ExampleActionsSection.js +3 -3
- package/dist/example/ExampleApplicationSection.d.ts +7 -0
- package/dist/example/ExampleApplicationSection.d.ts.map +1 -0
- package/dist/example/ExampleApplicationSection.js +88 -0
- package/dist/example/ExampleBasicsSections.d.ts +1 -1
- package/dist/example/ExampleBasicsSections.d.ts.map +1 -1
- package/dist/example/ExampleBasicsSections.js +15 -13
- package/dist/example/ExampleDataSection.d.ts.map +1 -1
- package/dist/example/ExampleDataSection.js +31 -30
- package/dist/example/ExampleFieldsSection.d.ts.map +1 -1
- package/dist/example/ExampleFieldsSection.js +51 -3
- package/dist/example/ExampleFoundationsSection.js +1 -1
- package/dist/example/ExampleOverlays.d.ts.map +1 -1
- package/dist/example/ExampleOverlays.js +7 -2
- package/dist/example/ExampleOverlaysSection.d.ts.map +1 -1
- package/dist/example/ExampleOverlaysSection.js +20 -30
- package/dist/example/ExampleSelectionSection.d.ts +3 -1
- package/dist/example/ExampleSelectionSection.d.ts.map +1 -1
- package/dist/example/ExampleSelectionSection.js +10 -3
- package/dist/example/ExampleStateSection.d.ts +3 -0
- package/dist/example/ExampleStateSection.d.ts.map +1 -1
- package/dist/example/ExampleStateSection.js +65 -9
- package/dist/example/ExampleThemePlayground.d.ts +84 -54
- package/dist/example/ExampleThemePlayground.d.ts.map +1 -1
- package/dist/example/ExampleThemePlayground.js +129 -63
- package/dist/example/UiExamplePage.d.ts.map +1 -1
- package/dist/example/UiExamplePage.js +39 -19
- package/dist/example/codeSamples.d.ts +8 -1
- package/dist/example/codeSamples.d.ts.map +1 -1
- package/dist/example/codeSamples.js +590 -119
- package/dist/example/exampleData.d.ts.map +1 -1
- package/dist/example/exampleData.js +18 -10
- package/dist/example/styles.css +277 -146
- package/dist/hooks/useFloatingPosition.js +1 -1
- package/dist/hooks/usePresence.d.ts.map +1 -1
- package/dist/hooks/usePresence.js +9 -7
- package/dist/index.d.ts +9 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -1
- package/dist/styles/orcestr-ui.css +3002 -872
- package/dist/theme/ThemeProvider.d.ts.map +1 -1
- package/dist/theme/ThemeProvider.js +109 -53
- package/dist/theme/defaultTheme.d.ts.map +1 -1
- package/dist/theme/defaultTheme.js +356 -223
- package/dist/theme/systemProps.d.ts +48 -28
- package/dist/theme/systemProps.d.ts.map +1 -1
- package/dist/theme/systemProps.js +103 -1
- package/dist/theme/themeTypes.d.ts +44 -35
- package/dist/theme/themeTypes.d.ts.map +1 -1
- package/dist/utils/slot.d.ts +11 -0
- package/dist/utils/slot.d.ts.map +1 -0
- package/dist/utils/slot.js +18 -0
- package/package.json +4 -1
- package/dist/components/Workflow/Workflow.d.ts +0 -82
- package/dist/components/Workflow/Workflow.d.ts.map +0 -1
- package/dist/components/Workflow/Workflow.js +0 -73
|
@@ -27,7 +27,7 @@ export const orcestrThemeSurfaces = [
|
|
|
27
27
|
orcestrThemeSurfaceRegistry.catalog,
|
|
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: {
|
|
@@ -102,145 +102,224 @@ const sharedStructure = {
|
|
|
102
102
|
},
|
|
103
103
|
components: {
|
|
104
104
|
buttonRadius: '6px',
|
|
105
|
-
buttonFontWeight:
|
|
106
|
-
tableCellPaddingY: '
|
|
107
|
-
tableHeaderHeight: '
|
|
105
|
+
buttonFontWeight: 500,
|
|
106
|
+
tableCellPaddingY: '8px',
|
|
107
|
+
tableHeaderHeight: '38px',
|
|
108
108
|
fieldGap: '6px',
|
|
109
109
|
modalMaxWidth: '680px',
|
|
110
|
-
pipelineStepMinWidth: '130px',
|
|
111
110
|
},
|
|
112
111
|
};
|
|
113
112
|
const darkBase = {
|
|
114
113
|
colors: {
|
|
115
|
-
bg: '#
|
|
116
|
-
panel: '#
|
|
117
|
-
panelSoft: '#
|
|
114
|
+
bg: '#09090b',
|
|
115
|
+
panel: '#0c0c0f',
|
|
116
|
+
panelSoft: '#222222',
|
|
118
117
|
control: 'transparent',
|
|
119
|
-
controlHover: '
|
|
120
|
-
text: '#
|
|
121
|
-
muted: '#
|
|
122
|
-
border: '
|
|
123
|
-
borderStrong: '
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
118
|
+
controlHover: '#ffffff12',
|
|
119
|
+
text: '#eeeeee',
|
|
120
|
+
muted: '#b4b4b4',
|
|
121
|
+
border: '#ffffff1b',
|
|
122
|
+
borderStrong: '#ffffff2c',
|
|
123
|
+
primary: {
|
|
124
|
+
base: '#0090ff',
|
|
125
|
+
text: '#70b8ff',
|
|
126
|
+
surface: '#0077ff3a',
|
|
127
|
+
border: '#2a91fe98',
|
|
128
|
+
contrast: '#ffffff',
|
|
129
|
+
},
|
|
130
|
+
secondary: {
|
|
131
|
+
base: '#8d8d8d',
|
|
132
|
+
text: '#eeeeee',
|
|
133
|
+
surface: '#ffffff09',
|
|
134
|
+
border: '#ffffff1b',
|
|
135
|
+
contrast: '#ffffff',
|
|
136
|
+
},
|
|
137
|
+
neutral: {
|
|
138
|
+
base: '#b4b4b4',
|
|
139
|
+
text: '#eeeeee',
|
|
140
|
+
surface: '#ffffff09',
|
|
141
|
+
border: '#ffffff1b',
|
|
142
|
+
contrast: '#ffffff',
|
|
143
|
+
},
|
|
144
|
+
danger: {
|
|
145
|
+
base: '#e5484d',
|
|
146
|
+
text: '#ff9592',
|
|
147
|
+
surface: '#ff173f2d',
|
|
148
|
+
border: '#ff536184',
|
|
149
|
+
contrast: '#ffffff',
|
|
150
|
+
},
|
|
151
|
+
success: {
|
|
152
|
+
base: '#30a46c',
|
|
153
|
+
text: '#3dd68c',
|
|
154
|
+
surface: '#22ff991e',
|
|
155
|
+
border: '#50fdac5e',
|
|
156
|
+
contrast: '#ffffff',
|
|
157
|
+
},
|
|
158
|
+
warning: {
|
|
159
|
+
base: '#ffc53d',
|
|
160
|
+
text: '#ffca16',
|
|
161
|
+
surface: '#fa820022',
|
|
162
|
+
border: '#fd9b0051',
|
|
163
|
+
contrast: '#202020',
|
|
164
|
+
},
|
|
165
|
+
info: {
|
|
166
|
+
base: '#0090ff',
|
|
167
|
+
text: '#70b8ff',
|
|
168
|
+
surface: '#0077ff3a',
|
|
169
|
+
border: '#2a91fe98',
|
|
170
|
+
contrast: '#ffffff',
|
|
171
|
+
},
|
|
172
|
+
selected: '#0077ff3a',
|
|
173
|
+
focusRing: '0 0 0 3px #0075ff57',
|
|
174
|
+
disabled: '#ffffff55',
|
|
141
175
|
overlay: 'rgb(0 0 0 / 48%)',
|
|
142
|
-
floating: '#
|
|
143
|
-
section: '
|
|
144
|
-
sectionNested: '
|
|
145
|
-
pad: '
|
|
146
|
-
padHover: '
|
|
147
|
-
skeletonShimmer: '
|
|
176
|
+
floating: '#0c0c0f',
|
|
177
|
+
section: 'transparent',
|
|
178
|
+
sectionNested: 'transparent',
|
|
179
|
+
pad: '#ffffff09',
|
|
180
|
+
padHover: '#ffffff12',
|
|
181
|
+
skeletonShimmer: '#ffffff12',
|
|
148
182
|
},
|
|
149
183
|
shadows: {
|
|
150
|
-
sm: '0
|
|
151
|
-
md: '0
|
|
184
|
+
sm: 'inset 0 -1px 1px 0 #ffffff12, inset 0 0 0 1px #ffffff12, inset 0 3px 4px 0 rgb(0 0 0 / 30%), inset 0 0 0 1px #ffffff1b',
|
|
185
|
+
md: '0 0 0 1px #ffffff2c, 0 2px 3px -2px rgb(0 0 0 / 15%), 0 3px 8px -2px rgb(0 0 0 / 40%), 0 4px 12px -4px rgb(0 0 0 / 50%)',
|
|
152
186
|
overlay: '0 24px 70px rgb(0 0 0 / 48%)',
|
|
153
187
|
section: 'none',
|
|
154
188
|
focus: darkBaseFocusRing(),
|
|
155
189
|
},
|
|
156
190
|
status: statusTokens({
|
|
157
191
|
neutral: {
|
|
158
|
-
color: '#
|
|
159
|
-
text: '#
|
|
160
|
-
soft: '
|
|
161
|
-
border: '
|
|
192
|
+
color: '#b4b4b4',
|
|
193
|
+
text: '#eeeeee',
|
|
194
|
+
soft: '#ffffff09',
|
|
195
|
+
border: '#ffffff1b',
|
|
162
196
|
},
|
|
163
|
-
|
|
164
|
-
color: '#
|
|
165
|
-
text: '#
|
|
166
|
-
soft: '
|
|
167
|
-
border: '
|
|
197
|
+
primary: {
|
|
198
|
+
color: '#0090ff',
|
|
199
|
+
text: '#70b8ff',
|
|
200
|
+
soft: '#0077ff3a',
|
|
201
|
+
border: '#2a91fe98',
|
|
202
|
+
},
|
|
203
|
+
secondary: {
|
|
204
|
+
color: '#8d8d8d',
|
|
205
|
+
text: '#eeeeee',
|
|
206
|
+
soft: '#ffffff09',
|
|
207
|
+
border: '#ffffff1b',
|
|
168
208
|
},
|
|
169
209
|
success: {
|
|
170
|
-
color: '#
|
|
171
|
-
text: '#
|
|
172
|
-
soft: '#
|
|
173
|
-
border: '
|
|
210
|
+
color: '#30a46c',
|
|
211
|
+
text: '#3dd68c',
|
|
212
|
+
soft: '#22ff991e',
|
|
213
|
+
border: '#50fdac5e',
|
|
174
214
|
},
|
|
175
215
|
warning: {
|
|
176
|
-
color: '#
|
|
177
|
-
text: '#
|
|
178
|
-
soft: '#
|
|
179
|
-
border: '
|
|
216
|
+
color: '#ffc53d',
|
|
217
|
+
text: '#ffca16',
|
|
218
|
+
soft: '#fa820022',
|
|
219
|
+
border: '#fd9b0051',
|
|
180
220
|
},
|
|
181
221
|
danger: {
|
|
182
|
-
color: '#
|
|
183
|
-
text: '#
|
|
184
|
-
soft: '
|
|
185
|
-
border: '
|
|
222
|
+
color: '#e5484d',
|
|
223
|
+
text: '#ff9592',
|
|
224
|
+
soft: '#ff173f2d',
|
|
225
|
+
border: '#ff536184',
|
|
186
226
|
},
|
|
187
227
|
info: {
|
|
188
|
-
color: '#
|
|
189
|
-
text: '#
|
|
190
|
-
soft: '#
|
|
191
|
-
border: '
|
|
228
|
+
color: '#0090ff',
|
|
229
|
+
text: '#70b8ff',
|
|
230
|
+
soft: '#0077ff3a',
|
|
231
|
+
border: '#2a91fe98',
|
|
192
232
|
},
|
|
193
233
|
}),
|
|
194
234
|
toast: {
|
|
195
|
-
background: 'rgb(
|
|
196
|
-
blur:
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
235
|
+
background: 'rgb(12 12 15 / 5%)',
|
|
236
|
+
blur: 6,
|
|
237
|
+
shadow: '0 16px 40px rgb(0 0 0 / 30%)',
|
|
238
|
+
animationDuration: '420ms',
|
|
239
|
+
exitDuration: '320ms',
|
|
240
|
+
progressHeight: '2px',
|
|
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',
|
|
202
246
|
},
|
|
203
247
|
...sharedStructure,
|
|
204
248
|
};
|
|
205
249
|
const lightBase = {
|
|
206
250
|
colors: {
|
|
207
|
-
bg: '#
|
|
251
|
+
bg: '#ffffff',
|
|
208
252
|
panel: '#ffffff',
|
|
209
|
-
panelSoft: '#
|
|
253
|
+
panelSoft: '#f9f9f9',
|
|
210
254
|
control: 'transparent',
|
|
211
|
-
controlHover: '
|
|
212
|
-
text: '#
|
|
213
|
-
muted: '#
|
|
214
|
-
border: '
|
|
215
|
-
borderStrong: '
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
255
|
+
controlHover: '#0000000f',
|
|
256
|
+
text: '#202020',
|
|
257
|
+
muted: '#646464',
|
|
258
|
+
border: '#00000017',
|
|
259
|
+
borderStrong: '#00000026',
|
|
260
|
+
primary: {
|
|
261
|
+
base: '#0090ff',
|
|
262
|
+
text: '#0d74ce',
|
|
263
|
+
surface: '#008ff519',
|
|
264
|
+
border: '#0083eb71',
|
|
265
|
+
contrast: '#ffffff',
|
|
266
|
+
},
|
|
267
|
+
secondary: {
|
|
268
|
+
base: '#8d8d8d',
|
|
269
|
+
text: '#202020',
|
|
270
|
+
surface: '#00000006',
|
|
271
|
+
border: '#00000017',
|
|
272
|
+
contrast: '#ffffff',
|
|
273
|
+
},
|
|
274
|
+
neutral: {
|
|
275
|
+
base: '#6b7280',
|
|
276
|
+
text: '#202020',
|
|
277
|
+
surface: '#00000006',
|
|
278
|
+
border: '#00000017',
|
|
279
|
+
contrast: '#ffffff',
|
|
280
|
+
},
|
|
281
|
+
danger: {
|
|
282
|
+
base: '#e5484d',
|
|
283
|
+
text: '#ce2c31',
|
|
284
|
+
surface: '#f3000d14',
|
|
285
|
+
border: '#df000356',
|
|
286
|
+
contrast: '#ffffff',
|
|
287
|
+
},
|
|
288
|
+
success: {
|
|
289
|
+
base: '#30a46c',
|
|
290
|
+
text: '#218358',
|
|
291
|
+
surface: '#00a43319',
|
|
292
|
+
border: '#00914071',
|
|
293
|
+
contrast: '#ffffff',
|
|
294
|
+
},
|
|
295
|
+
warning: {
|
|
296
|
+
base: '#ffc53d',
|
|
297
|
+
text: '#ab6400',
|
|
298
|
+
surface: '#ffde003d',
|
|
299
|
+
border: '#eab5008c',
|
|
300
|
+
contrast: '#202020',
|
|
301
|
+
},
|
|
302
|
+
info: {
|
|
303
|
+
base: '#0090ff',
|
|
304
|
+
text: '#0d74ce',
|
|
305
|
+
surface: '#008ff519',
|
|
306
|
+
border: '#0083eb71',
|
|
307
|
+
contrast: '#ffffff',
|
|
308
|
+
},
|
|
309
|
+
selected: '#008ff519',
|
|
310
|
+
focusRing: '0 0 0 3px #009eff2a',
|
|
311
|
+
disabled: '#00000044',
|
|
233
312
|
overlay: 'rgb(15 23 42 / 36%)',
|
|
234
313
|
floating: '#ffffff',
|
|
235
314
|
section: 'transparent',
|
|
236
315
|
sectionNested: 'transparent',
|
|
237
|
-
pad: '
|
|
238
|
-
padHover: '
|
|
316
|
+
pad: '#00000006',
|
|
317
|
+
padHover: '#0000000f',
|
|
239
318
|
skeletonShimmer: 'rgb(255 255 255 / 18%)',
|
|
240
319
|
},
|
|
241
320
|
shadows: {
|
|
242
|
-
sm: '0 2px
|
|
243
|
-
md: '0 16px
|
|
321
|
+
sm: 'inset 0 0 0 1px #0000001f, inset 0 1.5px 2px 0 #00000006, inset 0 1.5px 2px 0 rgb(0 0 0 / 10%)',
|
|
322
|
+
md: '0 0 0 1px #0000000f, 0 2px 3px -2px #0000000f, 0 3px 12px -4px rgb(0 0 0 / 10%), 0 4px 16px -8px rgb(0 0 0 / 10%)',
|
|
244
323
|
overlay: '0 24px 70px rgb(15 23 42 / 22%)',
|
|
245
324
|
section: '0 8px 26px rgb(15 23 42 / 8%)',
|
|
246
325
|
focus: lightBaseFocusRing(),
|
|
@@ -248,49 +327,59 @@ const lightBase = {
|
|
|
248
327
|
status: statusTokens({
|
|
249
328
|
neutral: {
|
|
250
329
|
color: '#6b7280',
|
|
251
|
-
text: '#
|
|
252
|
-
soft: '
|
|
253
|
-
border: '
|
|
330
|
+
text: '#202020',
|
|
331
|
+
soft: '#00000006',
|
|
332
|
+
border: '#00000017',
|
|
333
|
+
},
|
|
334
|
+
primary: {
|
|
335
|
+
color: '#0090ff',
|
|
336
|
+
text: '#0d74ce',
|
|
337
|
+
soft: '#008ff519',
|
|
338
|
+
border: '#0083eb71',
|
|
254
339
|
},
|
|
255
|
-
|
|
256
|
-
color: '#
|
|
257
|
-
text: '#
|
|
258
|
-
soft: '
|
|
259
|
-
border: '
|
|
340
|
+
secondary: {
|
|
341
|
+
color: '#8d8d8d',
|
|
342
|
+
text: '#202020',
|
|
343
|
+
soft: '#00000006',
|
|
344
|
+
border: '#00000017',
|
|
260
345
|
},
|
|
261
346
|
success: {
|
|
262
|
-
color: '#
|
|
263
|
-
text: '#
|
|
264
|
-
soft: '#
|
|
265
|
-
border: '
|
|
347
|
+
color: '#30a46c',
|
|
348
|
+
text: '#218358',
|
|
349
|
+
soft: '#00a43319',
|
|
350
|
+
border: '#00914071',
|
|
266
351
|
},
|
|
267
352
|
warning: {
|
|
268
|
-
color: '#
|
|
269
|
-
text: '#
|
|
270
|
-
soft: '#
|
|
271
|
-
border: '
|
|
353
|
+
color: '#ffc53d',
|
|
354
|
+
text: '#ab6400',
|
|
355
|
+
soft: '#ffde003d',
|
|
356
|
+
border: '#eab5008c',
|
|
272
357
|
},
|
|
273
358
|
danger: {
|
|
274
|
-
color: '#
|
|
275
|
-
text: '#
|
|
276
|
-
soft: '
|
|
277
|
-
border: '
|
|
359
|
+
color: '#e5484d',
|
|
360
|
+
text: '#ce2c31',
|
|
361
|
+
soft: '#f3000d14',
|
|
362
|
+
border: '#df000356',
|
|
278
363
|
},
|
|
279
364
|
info: {
|
|
280
|
-
color: '#
|
|
281
|
-
text: '#
|
|
282
|
-
soft: '#
|
|
283
|
-
border: '
|
|
365
|
+
color: '#0090ff',
|
|
366
|
+
text: '#0d74ce',
|
|
367
|
+
soft: '#008ff519',
|
|
368
|
+
border: '#0083eb71',
|
|
284
369
|
},
|
|
285
370
|
}),
|
|
286
371
|
toast: {
|
|
287
|
-
background: 'rgb(255 255 255 /
|
|
288
|
-
blur:
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
372
|
+
background: 'rgb(255 255 255 / 5%)',
|
|
373
|
+
blur: 6,
|
|
374
|
+
shadow: '0 16px 40px rgb(15 23 42 / 16%)',
|
|
375
|
+
animationDuration: '420ms',
|
|
376
|
+
exitDuration: '320ms',
|
|
377
|
+
progressHeight: '2px',
|
|
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',
|
|
294
383
|
},
|
|
295
384
|
...sharedStructure,
|
|
296
385
|
};
|
|
@@ -302,51 +391,34 @@ const surfaceOverrides = {
|
|
|
302
391
|
operations: {
|
|
303
392
|
dark: {
|
|
304
393
|
colors: {
|
|
305
|
-
bg: '#
|
|
306
|
-
panel: '#
|
|
307
|
-
panelSoft: '#
|
|
308
|
-
floating: '#
|
|
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',
|
|
394
|
+
bg: '#09090b',
|
|
395
|
+
panel: '#0c0c0f',
|
|
396
|
+
panelSoft: '#222222',
|
|
397
|
+
floating: '#0c0c0f',
|
|
318
398
|
},
|
|
319
399
|
toast: {
|
|
320
|
-
background: 'rgb(
|
|
400
|
+
background: 'rgb(12 12 15 / 5%)',
|
|
321
401
|
},
|
|
322
402
|
components: {
|
|
403
|
+
buttonFontWeight: 500,
|
|
323
404
|
tableCellPaddingY: '8px',
|
|
324
405
|
tableHeaderHeight: '38px',
|
|
325
|
-
pipelineStepMinWidth: '148px',
|
|
326
406
|
},
|
|
327
407
|
},
|
|
328
408
|
light: {
|
|
329
409
|
colors: {
|
|
330
|
-
bg: '#
|
|
410
|
+
bg: '#ffffff',
|
|
331
411
|
panel: '#ffffff',
|
|
332
|
-
panelSoft: '#
|
|
333
|
-
|
|
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',
|
|
412
|
+
panelSoft: '#f9f9f9',
|
|
413
|
+
floating: '#ffffff',
|
|
342
414
|
},
|
|
343
415
|
toast: {
|
|
344
|
-
background: 'rgb(255 255 255 /
|
|
416
|
+
background: 'rgb(255 255 255 / 5%)',
|
|
345
417
|
},
|
|
346
418
|
components: {
|
|
419
|
+
buttonFontWeight: 500,
|
|
347
420
|
tableCellPaddingY: '8px',
|
|
348
421
|
tableHeaderHeight: '38px',
|
|
349
|
-
pipelineStepMinWidth: '148px',
|
|
350
422
|
},
|
|
351
423
|
},
|
|
352
424
|
},
|
|
@@ -357,24 +429,35 @@ const surfaceOverrides = {
|
|
|
357
429
|
panel: '#1d1820',
|
|
358
430
|
panelSoft: '#29212d',
|
|
359
431
|
floating: '#1d1820',
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
432
|
+
primary: {
|
|
433
|
+
base: '#a84486',
|
|
434
|
+
text: '#ffc1e7',
|
|
435
|
+
surface: 'rgb(240 166 216 / 17%)',
|
|
436
|
+
border: 'rgb(255 193 231 / 28%)',
|
|
437
|
+
contrast: '#ffffff',
|
|
438
|
+
},
|
|
365
439
|
selected: 'rgb(240 166 216 / 16%)',
|
|
366
440
|
focusRing: '0 0 0 3px rgb(240 166 216 / 24%)',
|
|
367
|
-
warning:
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
441
|
+
warning: {
|
|
442
|
+
base: '#ffd079',
|
|
443
|
+
text: '#ffd079',
|
|
444
|
+
surface: '#49371c',
|
|
445
|
+
border: 'rgb(255 208 121 / 34%)',
|
|
446
|
+
contrast: '#202020',
|
|
447
|
+
},
|
|
448
|
+
info: {
|
|
449
|
+
base: '#9bd7ff',
|
|
450
|
+
text: '#9bd7ff',
|
|
451
|
+
surface: '#19394d',
|
|
452
|
+
border: 'rgb(155 215 255 / 32%)',
|
|
453
|
+
contrast: '#202020',
|
|
454
|
+
},
|
|
371
455
|
},
|
|
372
456
|
toast: {
|
|
373
|
-
background: 'rgb(29 24 32 /
|
|
374
|
-
borderColor: 'rgb(255 193 231 / 16%)',
|
|
457
|
+
background: 'rgb(29 24 32 / 5%)',
|
|
375
458
|
shadow: '0 12px 32px rgb(0 0 0 / 22%)',
|
|
376
459
|
},
|
|
377
|
-
|
|
460
|
+
radius: {
|
|
378
461
|
md: '8px',
|
|
379
462
|
lg: '10px',
|
|
380
463
|
},
|
|
@@ -384,23 +467,34 @@ const surfaceOverrides = {
|
|
|
384
467
|
bg: '#fff8fc',
|
|
385
468
|
panel: '#ffffff',
|
|
386
469
|
panelSoft: '#fff0f8',
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
470
|
+
primary: {
|
|
471
|
+
base: '#c0267f',
|
|
472
|
+
text: '#a21d6c',
|
|
473
|
+
surface: 'rgb(192 38 127 / 12%)',
|
|
474
|
+
border: 'rgb(192 38 127 / 24%)',
|
|
475
|
+
contrast: '#ffffff',
|
|
476
|
+
},
|
|
392
477
|
selected: 'rgb(192 38 127 / 10%)',
|
|
393
478
|
focusRing: '0 0 0 3px rgb(192 38 127 / 16%)',
|
|
394
|
-
warning:
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
479
|
+
warning: {
|
|
480
|
+
base: '#b96b00',
|
|
481
|
+
text: '#b96b00',
|
|
482
|
+
surface: '#fff1d0',
|
|
483
|
+
border: 'rgb(185 107 0 / 26%)',
|
|
484
|
+
contrast: '#ffffff',
|
|
485
|
+
},
|
|
486
|
+
info: {
|
|
487
|
+
base: '#0876bd',
|
|
488
|
+
text: '#0876bd',
|
|
489
|
+
surface: '#e6f5ff',
|
|
490
|
+
border: 'rgb(8 118 189 / 24%)',
|
|
491
|
+
contrast: '#ffffff',
|
|
492
|
+
},
|
|
398
493
|
},
|
|
399
494
|
toast: {
|
|
400
|
-
background: 'rgb(255 255 255 /
|
|
401
|
-
borderColor: 'rgb(192 38 127 / 13%)',
|
|
495
|
+
background: 'rgb(255 255 255 / 5%)',
|
|
402
496
|
},
|
|
403
|
-
|
|
497
|
+
radius: {
|
|
404
498
|
md: '8px',
|
|
405
499
|
lg: '10px',
|
|
406
500
|
},
|
|
@@ -413,23 +507,34 @@ const surfaceOverrides = {
|
|
|
413
507
|
panel: '#191712',
|
|
414
508
|
panelSoft: '#242017',
|
|
415
509
|
floating: '#191712',
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
510
|
+
primary: {
|
|
511
|
+
base: '#9b6f12',
|
|
512
|
+
text: '#f1d990',
|
|
513
|
+
surface: 'rgb(230 194 106 / 16%)',
|
|
514
|
+
border: 'rgb(241 217 144 / 28%)',
|
|
515
|
+
contrast: '#ffffff',
|
|
516
|
+
},
|
|
421
517
|
selected: 'rgb(230 194 106 / 14%)',
|
|
422
518
|
focusRing: '0 0 0 3px rgb(230 194 106 / 22%)',
|
|
423
|
-
warning:
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
519
|
+
warning: {
|
|
520
|
+
base: '#f4c95d',
|
|
521
|
+
text: '#f4c95d',
|
|
522
|
+
surface: '#493814',
|
|
523
|
+
border: 'rgb(244 201 93 / 34%)',
|
|
524
|
+
contrast: '#202020',
|
|
525
|
+
},
|
|
526
|
+
info: {
|
|
527
|
+
base: '#9fc5ff',
|
|
528
|
+
text: '#9fc5ff',
|
|
529
|
+
surface: '#1a314f',
|
|
530
|
+
border: 'rgb(159 197 255 / 32%)',
|
|
531
|
+
contrast: '#202020',
|
|
532
|
+
},
|
|
427
533
|
},
|
|
428
534
|
toast: {
|
|
429
|
-
background: 'rgb(25 23 18 /
|
|
430
|
-
borderColor: 'rgb(241 217 144 / 15%)',
|
|
535
|
+
background: 'rgb(25 23 18 / 5%)',
|
|
431
536
|
},
|
|
432
|
-
|
|
537
|
+
radius: {
|
|
433
538
|
md: '6px',
|
|
434
539
|
lg: '8px',
|
|
435
540
|
},
|
|
@@ -439,21 +544,32 @@ const surfaceOverrides = {
|
|
|
439
544
|
bg: '#fbfaf6',
|
|
440
545
|
panel: '#ffffff',
|
|
441
546
|
panelSoft: '#f3efe4',
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
547
|
+
primary: {
|
|
548
|
+
base: '#9b6f12',
|
|
549
|
+
text: '#79570e',
|
|
550
|
+
surface: 'rgb(155 111 18 / 12%)',
|
|
551
|
+
border: 'rgb(155 111 18 / 24%)',
|
|
552
|
+
contrast: '#ffffff',
|
|
553
|
+
},
|
|
447
554
|
selected: 'rgb(155 111 18 / 10%)',
|
|
448
555
|
focusRing: '0 0 0 3px rgb(155 111 18 / 16%)',
|
|
449
|
-
warning:
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
556
|
+
warning: {
|
|
557
|
+
base: '#a16207',
|
|
558
|
+
text: '#a16207',
|
|
559
|
+
surface: '#fff4cf',
|
|
560
|
+
border: 'rgb(161 98 7 / 26%)',
|
|
561
|
+
contrast: '#ffffff',
|
|
562
|
+
},
|
|
563
|
+
info: {
|
|
564
|
+
base: '#2563eb',
|
|
565
|
+
text: '#2563eb',
|
|
566
|
+
surface: '#e9f1ff',
|
|
567
|
+
border: 'rgb(37 99 235 / 24%)',
|
|
568
|
+
contrast: '#ffffff',
|
|
569
|
+
},
|
|
453
570
|
},
|
|
454
571
|
toast: {
|
|
455
|
-
background: 'rgb(255 255 255 /
|
|
456
|
-
borderColor: 'rgb(155 111 18 / 13%)',
|
|
572
|
+
background: 'rgb(255 255 255 / 5%)',
|
|
457
573
|
},
|
|
458
574
|
},
|
|
459
575
|
},
|
|
@@ -466,17 +582,18 @@ function mergeTheme(baseTheme, overrides) {
|
|
|
466
582
|
...overrides,
|
|
467
583
|
mode: baseTheme.mode,
|
|
468
584
|
surface: baseTheme.surface,
|
|
469
|
-
colors:
|
|
470
|
-
|
|
585
|
+
colors: mergeColors(baseTheme.colors, overrides.colors),
|
|
586
|
+
radius: { ...baseTheme.radius, ...overrides.radius },
|
|
471
587
|
spacing: { ...baseTheme.spacing, ...overrides.spacing },
|
|
472
588
|
breakpoints: { ...baseTheme.breakpoints, ...overrides.breakpoints },
|
|
473
589
|
shadows: { ...baseTheme.shadows, ...overrides.shadows },
|
|
474
|
-
|
|
590
|
+
text: { ...baseTheme.text, ...overrides.text },
|
|
475
591
|
status: mergeStatus(baseTheme.status, overrides.status),
|
|
476
592
|
motion: { ...baseTheme.motion, ...overrides.motion },
|
|
477
593
|
density: { ...baseTheme.density, ...overrides.density },
|
|
478
594
|
zIndex: { ...baseTheme.zIndex, ...overrides.zIndex },
|
|
479
595
|
toast: { ...baseTheme.toast, ...overrides.toast },
|
|
596
|
+
scrollbar: { ...baseTheme.scrollbar, ...overrides.scrollbar },
|
|
480
597
|
states: { ...baseTheme.states, ...overrides.states },
|
|
481
598
|
components: { ...baseTheme.components, ...overrides.components },
|
|
482
599
|
};
|
|
@@ -494,10 +611,10 @@ export function themeByMode(mode, surface = 'orcestr', themeOverrides) {
|
|
|
494
611
|
export const darkTheme = themeByMode('dark');
|
|
495
612
|
export const lightTheme = themeByMode('light');
|
|
496
613
|
function darkBaseFocusRing() {
|
|
497
|
-
return '0 0 0 3px
|
|
614
|
+
return '0 0 0 3px #0075ff57';
|
|
498
615
|
}
|
|
499
616
|
function lightBaseFocusRing() {
|
|
500
|
-
return '0 0 0 3px
|
|
617
|
+
return '0 0 0 3px #009eff2a';
|
|
501
618
|
}
|
|
502
619
|
function statusTokens(tokens) {
|
|
503
620
|
return tokens;
|
|
@@ -507,10 +624,26 @@ function mergeStatus(baseStatus, overrides) {
|
|
|
507
624
|
return baseStatus;
|
|
508
625
|
return {
|
|
509
626
|
neutral: { ...baseStatus.neutral, ...overrides.neutral },
|
|
510
|
-
|
|
627
|
+
primary: { ...baseStatus.primary, ...overrides.primary },
|
|
628
|
+
secondary: { ...baseStatus.secondary, ...overrides.secondary },
|
|
511
629
|
success: { ...baseStatus.success, ...overrides.success },
|
|
512
630
|
warning: { ...baseStatus.warning, ...overrides.warning },
|
|
513
631
|
danger: { ...baseStatus.danger, ...overrides.danger },
|
|
514
632
|
info: { ...baseStatus.info, ...overrides.info },
|
|
515
633
|
};
|
|
516
634
|
}
|
|
635
|
+
function mergeColors(baseColors, overrides) {
|
|
636
|
+
if (!overrides)
|
|
637
|
+
return baseColors;
|
|
638
|
+
return {
|
|
639
|
+
...baseColors,
|
|
640
|
+
...overrides,
|
|
641
|
+
primary: { ...baseColors.primary, ...overrides.primary },
|
|
642
|
+
secondary: { ...baseColors.secondary, ...overrides.secondary },
|
|
643
|
+
neutral: { ...baseColors.neutral, ...overrides.neutral },
|
|
644
|
+
danger: { ...baseColors.danger, ...overrides.danger },
|
|
645
|
+
success: { ...baseColors.success, ...overrides.success },
|
|
646
|
+
warning: { ...baseColors.warning, ...overrides.warning },
|
|
647
|
+
info: { ...baseColors.info, ...overrides.info },
|
|
648
|
+
};
|
|
649
|
+
}
|