@orcestr/ui 0.0.1 → 0.1.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 +4 -0
- package/README.ru.md +4 -0
- 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 +2 -0
- package/dist/components/AppShell/AppShell.d.ts.map +1 -1
- package/dist/components/AppShell/AppShell.js +9 -6
- 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 +53 -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/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/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.map +1 -1
- package/dist/components/Drawer/Drawer.js +2 -2
- 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 +189 -4
- 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 -0
- package/dist/components/Toast/Toast.d.ts.map +1 -1
- package/dist/components/Toast/Toast.js +19 -8
- 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.map +1 -1
- package/dist/example/CodePreview.js +3 -3
- 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 +68 -0
- package/dist/example/ExampleBasicsSections.d.ts.map +1 -1
- package/dist/example/ExampleBasicsSections.js +5 -9
- 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 +5 -2
- 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 +58 -3
- package/dist/example/ExampleThemePlayground.d.ts +101 -71
- package/dist/example/ExampleThemePlayground.d.ts.map +1 -1
- package/dist/example/ExampleThemePlayground.js +137 -74
- package/dist/example/UiExamplePage.d.ts +7 -1
- package/dist/example/UiExamplePage.d.ts.map +1 -1
- package/dist/example/UiExamplePage.js +72 -27
- package/dist/example/codeSamples.d.ts +7 -0
- package/dist/example/codeSamples.d.ts.map +1 -1
- package/dist/example/codeSamples.js +429 -60
- package/dist/example/exampleData.d.ts.map +1 -1
- package/dist/example/exampleData.js +16 -2
- package/dist/example/styles.css +245 -74
- 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 +8 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -1
- package/dist/styles/orcestr-ui.css +2545 -672
- package/dist/theme/ThemeProvider.d.ts.map +1 -1
- package/dist/theme/ThemeProvider.js +90 -36
- package/dist/theme/defaultTheme.d.ts.map +1 -1
- package/dist/theme/defaultTheme.js +322 -194
- 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 +21 -17
- 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 +2 -2
- 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
|
@@ -102,145 +102,220 @@ 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',
|
|
196
|
+
},
|
|
197
|
+
primary: {
|
|
198
|
+
color: '#0090ff',
|
|
199
|
+
text: '#70b8ff',
|
|
200
|
+
soft: '#0077ff3a',
|
|
201
|
+
border: '#2a91fe98',
|
|
162
202
|
},
|
|
163
|
-
|
|
164
|
-
color: '#
|
|
165
|
-
text: '#
|
|
166
|
-
soft: '
|
|
167
|
-
border: '
|
|
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
|
-
borderColor: 'rgb(255 255 255 /
|
|
198
|
-
shadow: '0
|
|
199
|
-
animationDuration: '
|
|
200
|
-
exitDuration: '
|
|
201
|
-
progressHeight: '
|
|
235
|
+
background: 'rgb(12 12 15 / 56%)',
|
|
236
|
+
blur: 18,
|
|
237
|
+
borderColor: 'rgb(255 255 255 / 12%)',
|
|
238
|
+
shadow: '0 10px 30px rgb(0 0 0 / 20%)',
|
|
239
|
+
animationDuration: '420ms',
|
|
240
|
+
exitDuration: '320ms',
|
|
241
|
+
progressHeight: '2px',
|
|
202
242
|
},
|
|
203
243
|
...sharedStructure,
|
|
204
244
|
};
|
|
205
245
|
const lightBase = {
|
|
206
246
|
colors: {
|
|
207
|
-
bg: '#
|
|
247
|
+
bg: '#ffffff',
|
|
208
248
|
panel: '#ffffff',
|
|
209
|
-
panelSoft: '#
|
|
249
|
+
panelSoft: '#f9f9f9',
|
|
210
250
|
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
|
-
|
|
251
|
+
controlHover: '#0000000f',
|
|
252
|
+
text: '#202020',
|
|
253
|
+
muted: '#646464',
|
|
254
|
+
border: '#00000017',
|
|
255
|
+
borderStrong: '#00000026',
|
|
256
|
+
primary: {
|
|
257
|
+
base: '#0090ff',
|
|
258
|
+
text: '#0d74ce',
|
|
259
|
+
surface: '#008ff519',
|
|
260
|
+
border: '#0083eb71',
|
|
261
|
+
contrast: '#ffffff',
|
|
262
|
+
},
|
|
263
|
+
secondary: {
|
|
264
|
+
base: '#8d8d8d',
|
|
265
|
+
text: '#202020',
|
|
266
|
+
surface: '#00000006',
|
|
267
|
+
border: '#00000017',
|
|
268
|
+
contrast: '#ffffff',
|
|
269
|
+
},
|
|
270
|
+
neutral: {
|
|
271
|
+
base: '#6b7280',
|
|
272
|
+
text: '#202020',
|
|
273
|
+
surface: '#00000006',
|
|
274
|
+
border: '#00000017',
|
|
275
|
+
contrast: '#ffffff',
|
|
276
|
+
},
|
|
277
|
+
danger: {
|
|
278
|
+
base: '#e5484d',
|
|
279
|
+
text: '#ce2c31',
|
|
280
|
+
surface: '#f3000d14',
|
|
281
|
+
border: '#df000356',
|
|
282
|
+
contrast: '#ffffff',
|
|
283
|
+
},
|
|
284
|
+
success: {
|
|
285
|
+
base: '#30a46c',
|
|
286
|
+
text: '#218358',
|
|
287
|
+
surface: '#00a43319',
|
|
288
|
+
border: '#00914071',
|
|
289
|
+
contrast: '#ffffff',
|
|
290
|
+
},
|
|
291
|
+
warning: {
|
|
292
|
+
base: '#ffc53d',
|
|
293
|
+
text: '#ab6400',
|
|
294
|
+
surface: '#ffde003d',
|
|
295
|
+
border: '#eab5008c',
|
|
296
|
+
contrast: '#202020',
|
|
297
|
+
},
|
|
298
|
+
info: {
|
|
299
|
+
base: '#0090ff',
|
|
300
|
+
text: '#0d74ce',
|
|
301
|
+
surface: '#008ff519',
|
|
302
|
+
border: '#0083eb71',
|
|
303
|
+
contrast: '#ffffff',
|
|
304
|
+
},
|
|
305
|
+
selected: '#008ff519',
|
|
306
|
+
focusRing: '0 0 0 3px #009eff2a',
|
|
307
|
+
disabled: '#00000044',
|
|
233
308
|
overlay: 'rgb(15 23 42 / 36%)',
|
|
234
309
|
floating: '#ffffff',
|
|
235
310
|
section: 'transparent',
|
|
236
311
|
sectionNested: 'transparent',
|
|
237
|
-
pad: '
|
|
238
|
-
padHover: '
|
|
312
|
+
pad: '#00000006',
|
|
313
|
+
padHover: '#0000000f',
|
|
239
314
|
skeletonShimmer: 'rgb(255 255 255 / 18%)',
|
|
240
315
|
},
|
|
241
316
|
shadows: {
|
|
242
|
-
sm: '0 2px
|
|
243
|
-
md: '0 16px
|
|
317
|
+
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%)',
|
|
318
|
+
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
319
|
overlay: '0 24px 70px rgb(15 23 42 / 22%)',
|
|
245
320
|
section: '0 8px 26px rgb(15 23 42 / 8%)',
|
|
246
321
|
focus: lightBaseFocusRing(),
|
|
@@ -248,49 +323,55 @@ const lightBase = {
|
|
|
248
323
|
status: statusTokens({
|
|
249
324
|
neutral: {
|
|
250
325
|
color: '#6b7280',
|
|
251
|
-
text: '#
|
|
252
|
-
soft: '
|
|
253
|
-
border: '
|
|
326
|
+
text: '#202020',
|
|
327
|
+
soft: '#00000006',
|
|
328
|
+
border: '#00000017',
|
|
254
329
|
},
|
|
255
|
-
|
|
256
|
-
color: '#
|
|
257
|
-
text: '#
|
|
258
|
-
soft: '
|
|
259
|
-
border: '
|
|
330
|
+
primary: {
|
|
331
|
+
color: '#0090ff',
|
|
332
|
+
text: '#0d74ce',
|
|
333
|
+
soft: '#008ff519',
|
|
334
|
+
border: '#0083eb71',
|
|
335
|
+
},
|
|
336
|
+
secondary: {
|
|
337
|
+
color: '#8d8d8d',
|
|
338
|
+
text: '#202020',
|
|
339
|
+
soft: '#00000006',
|
|
340
|
+
border: '#00000017',
|
|
260
341
|
},
|
|
261
342
|
success: {
|
|
262
|
-
color: '#
|
|
263
|
-
text: '#
|
|
264
|
-
soft: '#
|
|
265
|
-
border: '
|
|
343
|
+
color: '#30a46c',
|
|
344
|
+
text: '#218358',
|
|
345
|
+
soft: '#00a43319',
|
|
346
|
+
border: '#00914071',
|
|
266
347
|
},
|
|
267
348
|
warning: {
|
|
268
|
-
color: '#
|
|
269
|
-
text: '#
|
|
270
|
-
soft: '#
|
|
271
|
-
border: '
|
|
349
|
+
color: '#ffc53d',
|
|
350
|
+
text: '#ab6400',
|
|
351
|
+
soft: '#ffde003d',
|
|
352
|
+
border: '#eab5008c',
|
|
272
353
|
},
|
|
273
354
|
danger: {
|
|
274
|
-
color: '#
|
|
275
|
-
text: '#
|
|
276
|
-
soft: '
|
|
277
|
-
border: '
|
|
355
|
+
color: '#e5484d',
|
|
356
|
+
text: '#ce2c31',
|
|
357
|
+
soft: '#f3000d14',
|
|
358
|
+
border: '#df000356',
|
|
278
359
|
},
|
|
279
360
|
info: {
|
|
280
|
-
color: '#
|
|
281
|
-
text: '#
|
|
282
|
-
soft: '#
|
|
283
|
-
border: '
|
|
361
|
+
color: '#0090ff',
|
|
362
|
+
text: '#0d74ce',
|
|
363
|
+
soft: '#008ff519',
|
|
364
|
+
border: '#0083eb71',
|
|
284
365
|
},
|
|
285
366
|
}),
|
|
286
367
|
toast: {
|
|
287
|
-
background: 'rgb(255 255 255 /
|
|
288
|
-
blur:
|
|
368
|
+
background: 'rgb(255 255 255 / 72%)',
|
|
369
|
+
blur: 18,
|
|
289
370
|
borderColor: 'rgb(15 23 42 / 12%)',
|
|
290
|
-
shadow: '0
|
|
291
|
-
animationDuration: '
|
|
292
|
-
exitDuration: '
|
|
293
|
-
progressHeight: '
|
|
371
|
+
shadow: '0 10px 30px rgb(15 23 42 / 12%)',
|
|
372
|
+
animationDuration: '420ms',
|
|
373
|
+
exitDuration: '320ms',
|
|
374
|
+
progressHeight: '2px',
|
|
294
375
|
},
|
|
295
376
|
...sharedStructure,
|
|
296
377
|
};
|
|
@@ -302,51 +383,34 @@ const surfaceOverrides = {
|
|
|
302
383
|
operations: {
|
|
303
384
|
dark: {
|
|
304
385
|
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',
|
|
386
|
+
bg: '#09090b',
|
|
387
|
+
panel: '#0c0c0f',
|
|
388
|
+
panelSoft: '#222222',
|
|
389
|
+
floating: '#0c0c0f',
|
|
318
390
|
},
|
|
319
391
|
toast: {
|
|
320
|
-
background: 'rgb(
|
|
392
|
+
background: 'rgb(12 12 15 / 88%)',
|
|
321
393
|
},
|
|
322
394
|
components: {
|
|
395
|
+
buttonFontWeight: 500,
|
|
323
396
|
tableCellPaddingY: '8px',
|
|
324
397
|
tableHeaderHeight: '38px',
|
|
325
|
-
pipelineStepMinWidth: '148px',
|
|
326
398
|
},
|
|
327
399
|
},
|
|
328
400
|
light: {
|
|
329
401
|
colors: {
|
|
330
|
-
bg: '#
|
|
402
|
+
bg: '#ffffff',
|
|
331
403
|
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',
|
|
404
|
+
panelSoft: '#f9f9f9',
|
|
405
|
+
floating: '#ffffff',
|
|
342
406
|
},
|
|
343
407
|
toast: {
|
|
344
408
|
background: 'rgb(255 255 255 / 88%)',
|
|
345
409
|
},
|
|
346
410
|
components: {
|
|
411
|
+
buttonFontWeight: 500,
|
|
347
412
|
tableCellPaddingY: '8px',
|
|
348
413
|
tableHeaderHeight: '38px',
|
|
349
|
-
pipelineStepMinWidth: '148px',
|
|
350
414
|
},
|
|
351
415
|
},
|
|
352
416
|
},
|
|
@@ -357,17 +421,29 @@ const surfaceOverrides = {
|
|
|
357
421
|
panel: '#1d1820',
|
|
358
422
|
panelSoft: '#29212d',
|
|
359
423
|
floating: '#1d1820',
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
424
|
+
primary: {
|
|
425
|
+
base: '#a84486',
|
|
426
|
+
text: '#ffc1e7',
|
|
427
|
+
surface: 'rgb(240 166 216 / 17%)',
|
|
428
|
+
border: 'rgb(255 193 231 / 28%)',
|
|
429
|
+
contrast: '#ffffff',
|
|
430
|
+
},
|
|
365
431
|
selected: 'rgb(240 166 216 / 16%)',
|
|
366
432
|
focusRing: '0 0 0 3px rgb(240 166 216 / 24%)',
|
|
367
|
-
warning:
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
433
|
+
warning: {
|
|
434
|
+
base: '#ffd079',
|
|
435
|
+
text: '#ffd079',
|
|
436
|
+
surface: '#49371c',
|
|
437
|
+
border: 'rgb(255 208 121 / 34%)',
|
|
438
|
+
contrast: '#202020',
|
|
439
|
+
},
|
|
440
|
+
info: {
|
|
441
|
+
base: '#9bd7ff',
|
|
442
|
+
text: '#9bd7ff',
|
|
443
|
+
surface: '#19394d',
|
|
444
|
+
border: 'rgb(155 215 255 / 32%)',
|
|
445
|
+
contrast: '#202020',
|
|
446
|
+
},
|
|
371
447
|
},
|
|
372
448
|
toast: {
|
|
373
449
|
background: 'rgb(29 24 32 / 88%)',
|
|
@@ -384,17 +460,29 @@ const surfaceOverrides = {
|
|
|
384
460
|
bg: '#fff8fc',
|
|
385
461
|
panel: '#ffffff',
|
|
386
462
|
panelSoft: '#fff0f8',
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
463
|
+
primary: {
|
|
464
|
+
base: '#c0267f',
|
|
465
|
+
text: '#a21d6c',
|
|
466
|
+
surface: 'rgb(192 38 127 / 12%)',
|
|
467
|
+
border: 'rgb(192 38 127 / 24%)',
|
|
468
|
+
contrast: '#ffffff',
|
|
469
|
+
},
|
|
392
470
|
selected: 'rgb(192 38 127 / 10%)',
|
|
393
471
|
focusRing: '0 0 0 3px rgb(192 38 127 / 16%)',
|
|
394
|
-
warning:
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
472
|
+
warning: {
|
|
473
|
+
base: '#b96b00',
|
|
474
|
+
text: '#b96b00',
|
|
475
|
+
surface: '#fff1d0',
|
|
476
|
+
border: 'rgb(185 107 0 / 26%)',
|
|
477
|
+
contrast: '#ffffff',
|
|
478
|
+
},
|
|
479
|
+
info: {
|
|
480
|
+
base: '#0876bd',
|
|
481
|
+
text: '#0876bd',
|
|
482
|
+
surface: '#e6f5ff',
|
|
483
|
+
border: 'rgb(8 118 189 / 24%)',
|
|
484
|
+
contrast: '#ffffff',
|
|
485
|
+
},
|
|
398
486
|
},
|
|
399
487
|
toast: {
|
|
400
488
|
background: 'rgb(255 255 255 / 88%)',
|
|
@@ -413,17 +501,29 @@ const surfaceOverrides = {
|
|
|
413
501
|
panel: '#191712',
|
|
414
502
|
panelSoft: '#242017',
|
|
415
503
|
floating: '#191712',
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
504
|
+
primary: {
|
|
505
|
+
base: '#9b6f12',
|
|
506
|
+
text: '#f1d990',
|
|
507
|
+
surface: 'rgb(230 194 106 / 16%)',
|
|
508
|
+
border: 'rgb(241 217 144 / 28%)',
|
|
509
|
+
contrast: '#ffffff',
|
|
510
|
+
},
|
|
421
511
|
selected: 'rgb(230 194 106 / 14%)',
|
|
422
512
|
focusRing: '0 0 0 3px rgb(230 194 106 / 22%)',
|
|
423
|
-
warning:
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
513
|
+
warning: {
|
|
514
|
+
base: '#f4c95d',
|
|
515
|
+
text: '#f4c95d',
|
|
516
|
+
surface: '#493814',
|
|
517
|
+
border: 'rgb(244 201 93 / 34%)',
|
|
518
|
+
contrast: '#202020',
|
|
519
|
+
},
|
|
520
|
+
info: {
|
|
521
|
+
base: '#9fc5ff',
|
|
522
|
+
text: '#9fc5ff',
|
|
523
|
+
surface: '#1a314f',
|
|
524
|
+
border: 'rgb(159 197 255 / 32%)',
|
|
525
|
+
contrast: '#202020',
|
|
526
|
+
},
|
|
427
527
|
},
|
|
428
528
|
toast: {
|
|
429
529
|
background: 'rgb(25 23 18 / 88%)',
|
|
@@ -439,17 +539,29 @@ const surfaceOverrides = {
|
|
|
439
539
|
bg: '#fbfaf6',
|
|
440
540
|
panel: '#ffffff',
|
|
441
541
|
panelSoft: '#f3efe4',
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
542
|
+
primary: {
|
|
543
|
+
base: '#9b6f12',
|
|
544
|
+
text: '#79570e',
|
|
545
|
+
surface: 'rgb(155 111 18 / 12%)',
|
|
546
|
+
border: 'rgb(155 111 18 / 24%)',
|
|
547
|
+
contrast: '#ffffff',
|
|
548
|
+
},
|
|
447
549
|
selected: 'rgb(155 111 18 / 10%)',
|
|
448
550
|
focusRing: '0 0 0 3px rgb(155 111 18 / 16%)',
|
|
449
|
-
warning:
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
551
|
+
warning: {
|
|
552
|
+
base: '#a16207',
|
|
553
|
+
text: '#a16207',
|
|
554
|
+
surface: '#fff4cf',
|
|
555
|
+
border: 'rgb(161 98 7 / 26%)',
|
|
556
|
+
contrast: '#ffffff',
|
|
557
|
+
},
|
|
558
|
+
info: {
|
|
559
|
+
base: '#2563eb',
|
|
560
|
+
text: '#2563eb',
|
|
561
|
+
surface: '#e9f1ff',
|
|
562
|
+
border: 'rgb(37 99 235 / 24%)',
|
|
563
|
+
contrast: '#ffffff',
|
|
564
|
+
},
|
|
453
565
|
},
|
|
454
566
|
toast: {
|
|
455
567
|
background: 'rgb(255 255 255 / 88%)',
|
|
@@ -466,7 +578,7 @@ function mergeTheme(baseTheme, overrides) {
|
|
|
466
578
|
...overrides,
|
|
467
579
|
mode: baseTheme.mode,
|
|
468
580
|
surface: baseTheme.surface,
|
|
469
|
-
colors:
|
|
581
|
+
colors: mergeColors(baseTheme.colors, overrides.colors),
|
|
470
582
|
radii: { ...baseTheme.radii, ...overrides.radii },
|
|
471
583
|
spacing: { ...baseTheme.spacing, ...overrides.spacing },
|
|
472
584
|
breakpoints: { ...baseTheme.breakpoints, ...overrides.breakpoints },
|
|
@@ -494,10 +606,10 @@ export function themeByMode(mode, surface = 'orcestr', themeOverrides) {
|
|
|
494
606
|
export const darkTheme = themeByMode('dark');
|
|
495
607
|
export const lightTheme = themeByMode('light');
|
|
496
608
|
function darkBaseFocusRing() {
|
|
497
|
-
return '0 0 0 3px
|
|
609
|
+
return '0 0 0 3px #0075ff57';
|
|
498
610
|
}
|
|
499
611
|
function lightBaseFocusRing() {
|
|
500
|
-
return '0 0 0 3px
|
|
612
|
+
return '0 0 0 3px #009eff2a';
|
|
501
613
|
}
|
|
502
614
|
function statusTokens(tokens) {
|
|
503
615
|
return tokens;
|
|
@@ -507,10 +619,26 @@ function mergeStatus(baseStatus, overrides) {
|
|
|
507
619
|
return baseStatus;
|
|
508
620
|
return {
|
|
509
621
|
neutral: { ...baseStatus.neutral, ...overrides.neutral },
|
|
510
|
-
|
|
622
|
+
primary: { ...baseStatus.primary, ...overrides.primary },
|
|
623
|
+
secondary: { ...baseStatus.secondary, ...overrides.secondary },
|
|
511
624
|
success: { ...baseStatus.success, ...overrides.success },
|
|
512
625
|
warning: { ...baseStatus.warning, ...overrides.warning },
|
|
513
626
|
danger: { ...baseStatus.danger, ...overrides.danger },
|
|
514
627
|
info: { ...baseStatus.info, ...overrides.info },
|
|
515
628
|
};
|
|
516
629
|
}
|
|
630
|
+
function mergeColors(baseColors, overrides) {
|
|
631
|
+
if (!overrides)
|
|
632
|
+
return baseColors;
|
|
633
|
+
return {
|
|
634
|
+
...baseColors,
|
|
635
|
+
...overrides,
|
|
636
|
+
primary: { ...baseColors.primary, ...overrides.primary },
|
|
637
|
+
secondary: { ...baseColors.secondary, ...overrides.secondary },
|
|
638
|
+
neutral: { ...baseColors.neutral, ...overrides.neutral },
|
|
639
|
+
danger: { ...baseColors.danger, ...overrides.danger },
|
|
640
|
+
success: { ...baseColors.success, ...overrides.success },
|
|
641
|
+
warning: { ...baseColors.warning, ...overrides.warning },
|
|
642
|
+
info: { ...baseColors.info, ...overrides.info },
|
|
643
|
+
};
|
|
644
|
+
}
|