@temboplus/frontend-react-core 0.1.3-beta.1 → 0.1.3-beta.3
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/alerts/index.cjs.js +1 -1
- package/dist/alerts/index.d.ts +1 -0
- package/dist/alerts/index.js +1 -1
- package/dist/dialogs/index.cjs.js +1 -1
- package/dist/dialogs/index.d.ts +1 -0
- package/dist/dialogs/index.js +1 -1
- package/dist/features/alerts/alert.js +95 -0
- package/dist/features/alerts/index.js +1 -0
- package/dist/features/dialogs/index.js +1 -0
- package/dist/features/dialogs/modal-provider.js +6 -0
- package/dist/features/dialogs/tembo-confirm.js +111 -0
- package/dist/features/input-validation/account-name-validator.js +28 -0
- package/dist/features/input-validation/account-number-validator.js +65 -0
- package/dist/features/input-validation/amount-validator.js +100 -0
- package/dist/features/input-validation/index.js +5 -0
- package/dist/features/input-validation/phone-number-validator.js +79 -0
- package/dist/features/input-validation/swift-code-validator.js +38 -0
- package/dist/features/notifications/index.js +3 -0
- package/dist/features/notifications/tembo-notify.js +149 -0
- package/dist/features/notifications/toast-config.js +53 -0
- package/dist/features/notifications/toast-container.js +18 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -0
- package/dist/notifications/index.cjs.js +1 -1
- package/dist/notifications/index.d.ts +1 -0
- package/dist/notifications/index.js +1 -1
- package/dist/providers.js +32 -0
- package/dist/{tembo-notify-C-QGduBt.js → tembo-notify-B-mUpU8q.js} +2 -2
- package/dist/{tembo-notify-C-QGduBt.js.map → tembo-notify-B-mUpU8q.js.map} +1 -1
- package/dist/{tembo-notify-D-uOV3t0.js → tembo-notify-C4_8DSSc.js} +2 -2
- package/dist/{tembo-notify-D-uOV3t0.js.map → tembo-notify-C4_8DSSc.js.map} +1 -1
- package/dist/theme/colors.d.ts +55 -23
- package/dist/theme/colors.js +212 -0
- package/dist/theme/constants.js +82 -0
- package/dist/theme/index.cjs.js +1 -1
- package/dist/theme/index.js +1 -1
- package/dist/theme/theme-provider.d.ts +18 -6
- package/dist/theme/theme-provider.js +404 -0
- package/dist/theme-provider-Ca4P0Hcp.js +11 -0
- package/dist/theme-provider-Ca4P0Hcp.js.map +1 -0
- package/dist/theme-provider-RhAw3jw_.js +11 -0
- package/dist/theme-provider-RhAw3jw_.js.map +1 -0
- package/dist/validation/index.d.ts +1 -0
- package/package.json +5 -2
- package/dist/theme-provider-D_oV1J_K.js +0 -11
- package/dist/theme-provider-D_oV1J_K.js.map +0 -1
- package/dist/theme-provider-Dqvy24OD.js +0 -11
- package/dist/theme-provider-Dqvy24OD.js.map +0 -1
|
@@ -0,0 +1,404 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ConfigProvider } from 'antd';
|
|
4
|
+
import { buildColorPalette, } from './colors.js';
|
|
5
|
+
import { buildUIConstants, } from './constants.js';
|
|
6
|
+
/**
|
|
7
|
+
* Internal React context carrying the active Tembo theme
|
|
8
|
+
*/
|
|
9
|
+
const TemboThemeContext = React.createContext({
|
|
10
|
+
colors: buildColorPalette(),
|
|
11
|
+
constants: buildUIConstants(),
|
|
12
|
+
mode: 'light',
|
|
13
|
+
});
|
|
14
|
+
/**
|
|
15
|
+
* Build Ant Design theme configuration from Tembo tokens
|
|
16
|
+
* Maps semantic Tembo color palette and constants to Ant Design's token system
|
|
17
|
+
*
|
|
18
|
+
* @param palette - Complete Tembo color palette
|
|
19
|
+
* @param constants - Complete Tembo UI constants
|
|
20
|
+
* @param mode - Theme mode
|
|
21
|
+
* @param overrides - Optional raw Ant Design theme overrides
|
|
22
|
+
* @returns Ant Design ThemeConfig
|
|
23
|
+
*/
|
|
24
|
+
const buildAntDThemeConfig = (palette, constants, mode, overrides) => {
|
|
25
|
+
var _a, _b;
|
|
26
|
+
const baseTokens = {
|
|
27
|
+
// Primary colors
|
|
28
|
+
colorPrimary: palette.primary.main,
|
|
29
|
+
colorPrimaryHover: palette.primary.hover,
|
|
30
|
+
colorPrimaryActive: palette.primary.active,
|
|
31
|
+
colorPrimaryBorder: palette.primary.main,
|
|
32
|
+
// Text colors
|
|
33
|
+
colorText: palette.text.primary,
|
|
34
|
+
colorTextSecondary: palette.text.secondary,
|
|
35
|
+
colorTextTertiary: palette.text.tertiary,
|
|
36
|
+
colorTextQuaternary: palette.text.quaternary,
|
|
37
|
+
colorTextDisabled: palette.text.disabled,
|
|
38
|
+
// Background colors
|
|
39
|
+
colorBgBase: palette.surface.background,
|
|
40
|
+
colorBgContainer: palette.surface.main,
|
|
41
|
+
colorBgElevated: palette.surface.elevated,
|
|
42
|
+
colorBgLayout: palette.surface.background,
|
|
43
|
+
colorBgSpotlight: palette.surface.hover,
|
|
44
|
+
// Border colors
|
|
45
|
+
colorBorder: palette.border.main,
|
|
46
|
+
colorBorderSecondary: palette.border.light,
|
|
47
|
+
colorSplit: palette.border.divider,
|
|
48
|
+
// Success colors
|
|
49
|
+
colorSuccess: palette.success.main,
|
|
50
|
+
colorSuccessBg: palette.success.bg,
|
|
51
|
+
colorSuccessBorder: palette.success.border,
|
|
52
|
+
colorSuccessText: palette.success.text,
|
|
53
|
+
// Error colors
|
|
54
|
+
colorError: palette.error.main,
|
|
55
|
+
colorErrorBg: palette.error.bg,
|
|
56
|
+
colorErrorBorder: palette.error.border,
|
|
57
|
+
colorErrorText: palette.error.text,
|
|
58
|
+
// Warning colors
|
|
59
|
+
colorWarning: palette.warning.main,
|
|
60
|
+
colorWarningBg: palette.warning.bg,
|
|
61
|
+
colorWarningBorder: palette.warning.border,
|
|
62
|
+
colorWarningText: palette.warning.text,
|
|
63
|
+
// Info colors
|
|
64
|
+
colorInfo: palette.info.main,
|
|
65
|
+
colorInfoBg: palette.info.bg,
|
|
66
|
+
colorInfoBorder: palette.info.border,
|
|
67
|
+
colorInfoText: palette.info.text,
|
|
68
|
+
// Link colors
|
|
69
|
+
colorLink: palette.utility.link,
|
|
70
|
+
colorLinkHover: palette.utility.linkHover,
|
|
71
|
+
colorLinkActive: palette.utility.linkActive,
|
|
72
|
+
// Border radius
|
|
73
|
+
borderRadius: constants.radius.base,
|
|
74
|
+
borderRadiusLG: constants.radius.lg,
|
|
75
|
+
borderRadiusSM: constants.radius.sm,
|
|
76
|
+
borderRadiusXS: 6,
|
|
77
|
+
// Shadows
|
|
78
|
+
boxShadow: constants.shadow.base,
|
|
79
|
+
boxShadowSecondary: constants.shadow.card,
|
|
80
|
+
boxShadowTertiary: constants.shadow.elevated,
|
|
81
|
+
// Typography
|
|
82
|
+
fontFamily: constants.typography.fontFamily,
|
|
83
|
+
fontSize: constants.typography.fontSize.base,
|
|
84
|
+
fontSizeHeading1: 38,
|
|
85
|
+
fontSizeHeading2: 30,
|
|
86
|
+
fontSizeHeading3: 24,
|
|
87
|
+
fontSizeHeading4: 20,
|
|
88
|
+
fontSizeHeading5: constants.typography.fontSize.lg,
|
|
89
|
+
fontWeightStrong: constants.typography.fontWeight.medium,
|
|
90
|
+
lineHeight: constants.typography.lineHeight.base,
|
|
91
|
+
lineHeightHeading1: 1.21,
|
|
92
|
+
lineHeightHeading2: 1.27,
|
|
93
|
+
lineHeightHeading3: 1.33,
|
|
94
|
+
lineHeightHeading4: 1.4,
|
|
95
|
+
lineHeightHeading5: 1.5,
|
|
96
|
+
};
|
|
97
|
+
const baseTheme = {
|
|
98
|
+
token: baseTokens,
|
|
99
|
+
// algorithm: mode === 'dark' ? 'dark' : undefined,
|
|
100
|
+
components: {
|
|
101
|
+
Button: {
|
|
102
|
+
colorPrimary: palette.components.button.primary.bg,
|
|
103
|
+
colorPrimaryHover: palette.components.button.primary.hover,
|
|
104
|
+
colorPrimaryActive: palette.action.active,
|
|
105
|
+
colorPrimaryBorder: palette.components.button.primary.bg,
|
|
106
|
+
primaryColor: palette.components.button.primary.text,
|
|
107
|
+
colorBorder: palette.components.button.default.border,
|
|
108
|
+
colorBgContainer: palette.components.button.default.bg,
|
|
109
|
+
colorText: palette.components.button.default.text,
|
|
110
|
+
defaultBg: palette.components.button.default.bg,
|
|
111
|
+
defaultBorderColor: palette.components.button.default.border,
|
|
112
|
+
defaultColor: palette.components.button.default.text,
|
|
113
|
+
primaryShadow: 'none',
|
|
114
|
+
defaultShadow: 'none',
|
|
115
|
+
dangerShadow: 'none',
|
|
116
|
+
fontWeight: constants.typography.fontWeight.medium,
|
|
117
|
+
controlHeight: 32,
|
|
118
|
+
paddingContentHorizontal: constants.spacing.lg,
|
|
119
|
+
borderRadius: constants.radius.button,
|
|
120
|
+
borderRadiusLG: constants.radius.button,
|
|
121
|
+
borderRadiusSM: constants.radius.sm + 8,
|
|
122
|
+
},
|
|
123
|
+
Input: {
|
|
124
|
+
colorBgContainer: palette.components.input.bg,
|
|
125
|
+
colorBorder: palette.components.input.border,
|
|
126
|
+
hoverBorderColor: palette.components.input.borderHover,
|
|
127
|
+
activeBorderColor: palette.components.input.borderFocus,
|
|
128
|
+
colorPrimaryHover: palette.components.input.borderFocus,
|
|
129
|
+
colorTextPlaceholder: palette.components.input.placeholder,
|
|
130
|
+
borderRadius: constants.radius.input,
|
|
131
|
+
borderRadiusLG: constants.radius.base,
|
|
132
|
+
borderRadiusSM: constants.radius.sm,
|
|
133
|
+
},
|
|
134
|
+
Select: {
|
|
135
|
+
colorBgContainer: palette.components.input.bg,
|
|
136
|
+
colorBorder: palette.components.input.border,
|
|
137
|
+
colorTextPlaceholder: palette.components.input.placeholder,
|
|
138
|
+
colorPrimaryHover: palette.action.main,
|
|
139
|
+
hoverBorderColor: palette.components.input.borderHover,
|
|
140
|
+
activeBorderColor: palette.components.input.borderFocus,
|
|
141
|
+
optionSelectedBg: palette.action.main,
|
|
142
|
+
optionSelectedColor: palette.action.contrast,
|
|
143
|
+
optionActiveBg: palette.surface.hover,
|
|
144
|
+
colorBgElevated: palette.neutral.brightest,
|
|
145
|
+
controlItemBgHover: palette.surface.hover,
|
|
146
|
+
boxShadowSecondary: constants.shadow.elevated,
|
|
147
|
+
borderRadius: constants.radius.input,
|
|
148
|
+
borderRadiusLG: constants.radius.base,
|
|
149
|
+
borderRadiusSM: constants.radius.sm,
|
|
150
|
+
},
|
|
151
|
+
Checkbox: {
|
|
152
|
+
colorPrimary: palette.action.main,
|
|
153
|
+
colorPrimaryHover: palette.action.hover,
|
|
154
|
+
colorBorder: palette.border.strong,
|
|
155
|
+
borderRadiusSM: 6,
|
|
156
|
+
},
|
|
157
|
+
Radio: {
|
|
158
|
+
colorPrimary: palette.action.main,
|
|
159
|
+
colorPrimaryHover: palette.action.hover,
|
|
160
|
+
colorBorder: palette.border.strong,
|
|
161
|
+
},
|
|
162
|
+
Switch: {
|
|
163
|
+
colorPrimary: palette.action.main,
|
|
164
|
+
colorPrimaryHover: palette.action.hover,
|
|
165
|
+
colorTextQuaternary: palette.text.quaternary,
|
|
166
|
+
},
|
|
167
|
+
Form: {
|
|
168
|
+
labelColor: palette.text.primary,
|
|
169
|
+
labelRequiredMarkColor: palette.error.main,
|
|
170
|
+
labelFontSize: constants.typography.fontSize.base,
|
|
171
|
+
itemMarginBottom: constants.spacing.lg,
|
|
172
|
+
},
|
|
173
|
+
DatePicker: {
|
|
174
|
+
colorBgContainer: palette.components.input.bg,
|
|
175
|
+
colorBorder: palette.components.input.border,
|
|
176
|
+
hoverBorderColor: palette.components.input.borderHover,
|
|
177
|
+
activeBorderColor: palette.components.input.borderFocus,
|
|
178
|
+
colorPrimary: palette.action.main,
|
|
179
|
+
borderRadius: constants.radius.input,
|
|
180
|
+
},
|
|
181
|
+
InputNumber: {
|
|
182
|
+
borderRadius: constants.radius.input,
|
|
183
|
+
},
|
|
184
|
+
Table: {
|
|
185
|
+
colorBgContainer: palette.components.table.bg,
|
|
186
|
+
headerBg: palette.components.table.headerBg,
|
|
187
|
+
headerColor: palette.components.table.headerText,
|
|
188
|
+
borderColor: palette.components.table.border,
|
|
189
|
+
headerSplitColor: palette.components.table.border,
|
|
190
|
+
rowHoverBg: palette.components.table.rowHover,
|
|
191
|
+
rowSelectedBg: palette.action.light,
|
|
192
|
+
rowSelectedHoverBg: palette.action.lighter,
|
|
193
|
+
colorText: palette.text.primary,
|
|
194
|
+
colorTextHeading: palette.text.primary,
|
|
195
|
+
borderRadius: constants.radius.base,
|
|
196
|
+
borderRadiusLG: constants.radius.lg,
|
|
197
|
+
},
|
|
198
|
+
Card: {
|
|
199
|
+
colorBgContainer: palette.surface.main,
|
|
200
|
+
colorBorder: palette.border.main,
|
|
201
|
+
colorBorderSecondary: palette.border.light,
|
|
202
|
+
boxShadowTertiary: constants.shadow.card,
|
|
203
|
+
borderRadius: constants.radius.card,
|
|
204
|
+
borderRadiusLG: constants.radius.lg + 4,
|
|
205
|
+
},
|
|
206
|
+
Statistic: {
|
|
207
|
+
contentFontSize: 24,
|
|
208
|
+
colorTextHeading: palette.text.primary,
|
|
209
|
+
},
|
|
210
|
+
Descriptions: {
|
|
211
|
+
labelBg: palette.surface.hover,
|
|
212
|
+
colorTextSecondary: palette.text.secondary,
|
|
213
|
+
itemPaddingBottom: constants.spacing.md,
|
|
214
|
+
},
|
|
215
|
+
Badge: {
|
|
216
|
+
colorError: palette.error.main,
|
|
217
|
+
colorSuccess: palette.success.main,
|
|
218
|
+
colorInfo: palette.info.main,
|
|
219
|
+
colorInfoBg: palette.info.bg,
|
|
220
|
+
borderRadiusSM: constants.radius.input,
|
|
221
|
+
},
|
|
222
|
+
Tag: {
|
|
223
|
+
colorBorder: palette.border.main,
|
|
224
|
+
defaultBg: palette.surface.hover,
|
|
225
|
+
borderRadiusSM: constants.radius.sm,
|
|
226
|
+
},
|
|
227
|
+
Timeline: {
|
|
228
|
+
dotBg: palette.surface.main,
|
|
229
|
+
tailColor: palette.border.main,
|
|
230
|
+
},
|
|
231
|
+
Alert: {
|
|
232
|
+
colorSuccessBg: palette.success.bg,
|
|
233
|
+
colorSuccessBorder: palette.success.border,
|
|
234
|
+
colorErrorBg: palette.error.bg,
|
|
235
|
+
colorErrorBorder: palette.error.border,
|
|
236
|
+
colorWarningBg: palette.warning.bg,
|
|
237
|
+
colorWarningBorder: palette.warning.border,
|
|
238
|
+
colorInfoBg: palette.info.bg,
|
|
239
|
+
colorInfoBorder: palette.info.border,
|
|
240
|
+
borderRadiusLG: constants.radius.base,
|
|
241
|
+
},
|
|
242
|
+
Modal: {
|
|
243
|
+
contentBg: palette.surface.elevated,
|
|
244
|
+
headerBg: palette.surface.elevated,
|
|
245
|
+
colorBgMask: 'rgba(0, 0, 0, 0.45)',
|
|
246
|
+
borderRadiusLG: constants.radius.lg,
|
|
247
|
+
},
|
|
248
|
+
Drawer: {
|
|
249
|
+
colorBgElevated: palette.surface.elevated,
|
|
250
|
+
colorBgMask: 'rgba(0, 0, 0, 0.45)',
|
|
251
|
+
borderRadiusLG: constants.radius.lg,
|
|
252
|
+
},
|
|
253
|
+
Notification: {
|
|
254
|
+
colorBgElevated: palette.neutral.brightest,
|
|
255
|
+
borderRadiusLG: constants.radius.base,
|
|
256
|
+
},
|
|
257
|
+
Message: {
|
|
258
|
+
contentBg: palette.neutral.brightest,
|
|
259
|
+
borderRadiusLG: constants.radius.base,
|
|
260
|
+
},
|
|
261
|
+
Spin: {
|
|
262
|
+
colorPrimary: palette.primary.main,
|
|
263
|
+
},
|
|
264
|
+
Progress: {
|
|
265
|
+
colorSuccess: palette.success.main,
|
|
266
|
+
colorError: palette.error.main,
|
|
267
|
+
defaultColor: palette.primary.main,
|
|
268
|
+
borderRadius: 100,
|
|
269
|
+
},
|
|
270
|
+
Skeleton: {
|
|
271
|
+
colorFill: palette.neutral[2],
|
|
272
|
+
colorFillContent: palette.neutral[1],
|
|
273
|
+
borderRadiusSM: constants.radius.sm,
|
|
274
|
+
},
|
|
275
|
+
Menu: {
|
|
276
|
+
itemBg: 'transparent',
|
|
277
|
+
itemColor: palette.text.primary,
|
|
278
|
+
itemHoverBg: palette.surface.hover,
|
|
279
|
+
itemSelectedBg: palette.action.lighter,
|
|
280
|
+
itemSelectedColor: palette.action.main,
|
|
281
|
+
itemActiveBg: palette.action.lighter,
|
|
282
|
+
subMenuItemBg: 'transparent',
|
|
283
|
+
darkItemBg: palette.components.sidebar.bg,
|
|
284
|
+
darkSubMenuItemBg: palette.components.sidebar.bg,
|
|
285
|
+
darkItemColor: palette.components.sidebar.text,
|
|
286
|
+
darkItemHoverBg: palette.components.sidebar.hover,
|
|
287
|
+
darkItemSelectedBg: palette.components.sidebar.selected,
|
|
288
|
+
darkItemSelectedColor: palette.primary.contrast,
|
|
289
|
+
borderRadius: constants.radius.input,
|
|
290
|
+
borderRadiusLG: constants.radius.base,
|
|
291
|
+
},
|
|
292
|
+
Breadcrumb: {
|
|
293
|
+
linkColor: palette.utility.link,
|
|
294
|
+
linkHoverColor: palette.utility.linkHover,
|
|
295
|
+
itemColor: palette.text.secondary,
|
|
296
|
+
lastItemColor: palette.text.primary,
|
|
297
|
+
separatorColor: palette.text.tertiary,
|
|
298
|
+
borderRadiusSM: 6,
|
|
299
|
+
},
|
|
300
|
+
Pagination: {
|
|
301
|
+
colorPrimary: palette.primary.main,
|
|
302
|
+
colorPrimaryHover: palette.primary.hover,
|
|
303
|
+
itemActiveBg: palette.primary.main,
|
|
304
|
+
borderRadius: constants.radius.sm,
|
|
305
|
+
},
|
|
306
|
+
Steps: {
|
|
307
|
+
colorPrimary: palette.action.main,
|
|
308
|
+
colorText: palette.text.secondary,
|
|
309
|
+
colorTextDescription: palette.text.tertiary,
|
|
310
|
+
borderRadiusSM: 100,
|
|
311
|
+
},
|
|
312
|
+
Tabs: {
|
|
313
|
+
colorPrimary: palette.action.main,
|
|
314
|
+
colorBorderSecondary: palette.border.main,
|
|
315
|
+
itemColor: palette.text.secondary,
|
|
316
|
+
itemHoverColor: palette.action.hover,
|
|
317
|
+
itemSelectedColor: palette.action.main,
|
|
318
|
+
inkBarColor: palette.action.main,
|
|
319
|
+
borderRadiusSM: constants.radius.sm,
|
|
320
|
+
},
|
|
321
|
+
Layout: {
|
|
322
|
+
colorBgBody: palette.surface.background,
|
|
323
|
+
colorBgHeader: palette.neutral.brightest,
|
|
324
|
+
colorBgTrigger: palette.components.sidebar.bg,
|
|
325
|
+
siderBg: palette.components.sidebar.bg,
|
|
326
|
+
headerBg: palette.neutral.brightest,
|
|
327
|
+
borderRadiusLG: 0,
|
|
328
|
+
},
|
|
329
|
+
Divider: {
|
|
330
|
+
colorSplit: palette.border.divider,
|
|
331
|
+
},
|
|
332
|
+
Typography: {
|
|
333
|
+
colorText: palette.text.primary,
|
|
334
|
+
colorTextSecondary: palette.text.secondary,
|
|
335
|
+
colorTextDescription: palette.text.tertiary,
|
|
336
|
+
},
|
|
337
|
+
Tooltip: {
|
|
338
|
+
colorBgSpotlight: palette.neutral.darkest,
|
|
339
|
+
colorTextLightSolid: palette.neutral.brightest,
|
|
340
|
+
borderRadius: constants.radius.sm,
|
|
341
|
+
},
|
|
342
|
+
Popover: {
|
|
343
|
+
colorBgElevated: palette.neutral.brightest,
|
|
344
|
+
borderRadiusLG: constants.radius.base,
|
|
345
|
+
},
|
|
346
|
+
Dropdown: {
|
|
347
|
+
boxShadowSecondary: constants.shadow.dropdown,
|
|
348
|
+
},
|
|
349
|
+
Calendar: {
|
|
350
|
+
colorBgContainer: palette.neutral.brightest,
|
|
351
|
+
colorPrimary: palette.action.main,
|
|
352
|
+
borderRadiusLG: constants.radius.base,
|
|
353
|
+
},
|
|
354
|
+
},
|
|
355
|
+
};
|
|
356
|
+
if (!overrides)
|
|
357
|
+
return baseTheme;
|
|
358
|
+
return Object.assign(Object.assign({}, baseTheme), { token: Object.assign(Object.assign({}, baseTheme.token), ((_a = overrides.token) !== null && _a !== void 0 ? _a : {})), components: Object.assign(Object.assign({}, baseTheme.components), ((_b = overrides.components) !== null && _b !== void 0 ? _b : {})) });
|
|
359
|
+
};
|
|
360
|
+
/**
|
|
361
|
+
* TemboThemeProvider
|
|
362
|
+
*
|
|
363
|
+
* Wraps your application to provide theming through React context and Ant Design's ConfigProvider.
|
|
364
|
+
* Merges default colors/constants with host overrides and configures Ant Design components.
|
|
365
|
+
* Supports light and dark mode through the mode prop.
|
|
366
|
+
*
|
|
367
|
+
* All child components can access theme values via the useTemboTheme() hook.
|
|
368
|
+
*/
|
|
369
|
+
export const TemboThemeProvider = ({ children, mode = 'light', colors, constants, themeOverrides, }) => {
|
|
370
|
+
const palette = React.useMemo(() => buildColorPalette(colors, mode), [colors, mode]);
|
|
371
|
+
const uiConstants = React.useMemo(() => buildUIConstants(constants), [constants]);
|
|
372
|
+
const theme = React.useMemo(() => buildAntDThemeConfig(palette, uiConstants, mode, themeOverrides), [palette, uiConstants, mode, themeOverrides]);
|
|
373
|
+
const contextValue = React.useMemo(() => ({
|
|
374
|
+
colors: palette,
|
|
375
|
+
constants: uiConstants,
|
|
376
|
+
mode,
|
|
377
|
+
}), [palette, uiConstants, mode]);
|
|
378
|
+
return (_jsx(TemboThemeContext.Provider, { value: contextValue, children: _jsx(ConfigProvider, { theme: theme, children: children }) }));
|
|
379
|
+
};
|
|
380
|
+
/**
|
|
381
|
+
* Hook to access the active Tembo theme
|
|
382
|
+
*
|
|
383
|
+
* Returns the merged color palette, UI constants, and current theme mode.
|
|
384
|
+
* Components should always use this hook instead of importing defaults directly.
|
|
385
|
+
*
|
|
386
|
+
* @returns Theme context containing colors, constants, and mode
|
|
387
|
+
*
|
|
388
|
+
* @example
|
|
389
|
+
* function MyComponent() {
|
|
390
|
+
* const { colors, constants, mode } = useTemboTheme();
|
|
391
|
+
*
|
|
392
|
+
* return (
|
|
393
|
+
* <div style={{
|
|
394
|
+
* color: colors.text.primary,
|
|
395
|
+
* padding: constants.spacing.md,
|
|
396
|
+
* borderRadius: constants.radius.base,
|
|
397
|
+
* backgroundColor: colors.neutral.lightest
|
|
398
|
+
* }}>
|
|
399
|
+
* Current theme: {mode}
|
|
400
|
+
* </div>
|
|
401
|
+
* );
|
|
402
|
+
* }
|
|
403
|
+
*/
|
|
404
|
+
export const useTemboTheme = () => React.useContext(TemboThemeContext);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import r from"react";import{ConfigProvider as e}from"antd";import{merge as o}from"lodash";var t,a={exports:{}},n={};var i,l,c={};
|
|
2
|
+
/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react-jsx-runtime.development.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/function s(){return i||(i=1,"production"!==process.env.NODE_ENV&&function(){function e(r){if(null==r)return null;if("function"==typeof r)return r.$$typeof===R?null:r.displayName||r.name||null;if("string"==typeof r)return r;switch(r){case p:return"Fragment";case f:return"Profiler";case g:return"StrictMode";case v:return"Suspense";case S:return"SuspenseList";case w:return"Activity"}if("object"==typeof r)switch("number"==typeof r.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),r.$$typeof){case m:return"Portal";case h:return(r.displayName||"Context")+".Provider";case y:return(r._context.displayName||"Context")+".Consumer";case x:var o=r.render;return(r=r.displayName)||(r=""!==(r=o.displayName||o.name||"")?"ForwardRef("+r+")":"ForwardRef"),r;case B:return null!==(o=r.displayName||null)?o:e(r.type)||"Memo";case k:o=r._payload,r=r._init;try{return e(r(o))}catch(r){}}return null}function o(r){return""+r}function t(r){try{o(r);var e=!1}catch(r){e=!0}if(e){var t=(e=console).error,a="function"==typeof Symbol&&Symbol.toStringTag&&r[Symbol.toStringTag]||r.constructor.name||"Object";return t.call(e,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",a),o(r)}}function a(r){if(r===p)return"<>";if("object"==typeof r&&null!==r&&r.$$typeof===k)return"<...>";try{var o=e(r);return o?"<"+o+">":"<...>"}catch(r){return"<...>"}}function n(){return Error("react-stack-top-frame")}function i(){var r=e(this.type);return F[r]||(F[r]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(r=this.props.ref)?r:null}function l(r,o,a,n,l,c,u,m){var p,g=o.children;if(void 0!==g)if(n)if(H(g)){for(n=0;n<g.length;n++)s(g[n]);Object.freeze&&Object.freeze(g)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else s(g);if(T.call(o,"key")){g=e(r);var f=Object.keys(o).filter(function(r){return"key"!==r});n=0<f.length?"{key: someKey, "+f.join(": ..., ")+": ...}":"{key: someKey}",E[g+n]||(f=0<f.length?"{"+f.join(": ..., ")+": ...}":"{}",console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',n,g,f,g),E[g+n]=!0)}if(g=null,void 0!==a&&(t(a),g=""+a),function(r){if(T.call(r,"key")){var e=Object.getOwnPropertyDescriptor(r,"key").get;if(e&&e.isReactWarning)return!1}return void 0!==r.key}(o)&&(t(o.key),g=""+o.key),"key"in o)for(var y in a={},o)"key"!==y&&(a[y]=o[y]);else a=o;return g&&function(r,e){function o(){d||(d=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",e))}o.isReactWarning=!0,Object.defineProperty(r,"key",{get:o,configurable:!0})}(a,"function"==typeof r?r.displayName||r.name||"Unknown":r),function(r,e,o,t,a,n,l,c){return o=n.ref,r={$$typeof:b,type:r,key:e,props:n,_owner:a},null!==(void 0!==o?o:null)?Object.defineProperty(r,"ref",{enumerable:!1,get:i}):Object.defineProperty(r,"ref",{enumerable:!1,value:null}),r._store={},Object.defineProperty(r._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(r,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(r,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:l}),Object.defineProperty(r,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:c}),Object.freeze&&(Object.freeze(r.props),Object.freeze(r)),r}(r,g,c,0,null===(p=C.A)?null:p.getOwner(),a,u,m)}function s(r){"object"==typeof r&&null!==r&&r.$$typeof===b&&r._store&&(r._store.validated=1)}var d,u=r,b=Symbol.for("react.transitional.element"),m=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),h=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),w=Symbol.for("react.activity"),R=Symbol.for("react.client.reference"),C=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,T=Object.prototype.hasOwnProperty,H=Array.isArray,P=console.createTask?console.createTask:function(){return null},F={},j=(u={"react-stack-bottom-frame":function(r){return r()}})["react-stack-bottom-frame"].bind(u,n)(),O=P(a(n)),E={};c.Fragment=p,c.jsx=function(r,e,o,t,n){var i=1e4>C.recentlyCreatedOwnerStacks++;return l(r,e,o,!1,0,n,i?Error("react-stack-top-frame"):j,i?P(a(r)):O)},c.jsxs=function(r,e,o,t,n){var i=1e4>C.recentlyCreatedOwnerStacks++;return l(r,e,o,!0,0,n,i?Error("react-stack-top-frame"):j,i?P(a(r)):O)}}()),c}var d=(l||(l=1,"production"===process.env.NODE_ENV?a.exports=function(){if(t)return n;t=1;var r=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function o(e,o,t){var a=null;if(void 0!==t&&(a=""+t),void 0!==o.key&&(a=""+o.key),"key"in o)for(var n in t={},o)"key"!==n&&(t[n]=o[n]);else t=o;return o=t.ref,{$$typeof:r,type:e,key:a,ref:void 0!==o?o:null,props:t}}return n.Fragment=e,n.jsx=o,n.jsxs=o,n}():a.exports=s()),a.exports);const u={neutral:{0:"#ffffff",1:"#fafafa",2:"#f5f5f5",3:"#f0f0f0",4:"#e5e5e5",5:"#d4d4d4",6:"#b3b3b3",7:"#999999",8:"#666666",9:"#1a1a1a",10:"#000000"}},b={neutral:{0:"#000000",1:"#1a1a1a",2:"#666666",3:"#999999",4:"#b3b3b3",5:"#d4d4d4",6:"#e5e5e5",7:"#f0f0f0",8:"#f5f5f5",9:"#fafafa",10:"#ffffff"}},m=r=>{const e="light"===r?u:b;return{primary:{main:"#000000",hover:"#1a1a1a",active:"#000000",light:"#666666",lighter:"#999999",contrast:"#FFFFFF"},action:{main:"#1a6985",hover:"#145268",active:"#0f3d4f",light:"#e8f2f5",lighter:"#f4f9fa",disabled:"#a3c9d6",contrast:"#FFFFFF"},absolute:{white:"#ffffff",black:"#000000"},neutral:{0:e.neutral[0],1:e.neutral[1],2:e.neutral[2],3:e.neutral[3],4:e.neutral[4],5:e.neutral[5],6:e.neutral[6],7:e.neutral[7],8:e.neutral[8],9:e.neutral[9],10:e.neutral[10],brightest:e.neutral[0],lightest:e.neutral[1],lighter:e.neutral[2],light:e.neutral[3],medium:e.neutral[5],dark:e.neutral[7],darker:e.neutral[8],darkest:e.neutral[9],dimmest:e.neutral[10]},success:{main:"#10b981",bg:"#ecfdf5",border:"#a7f3d0",text:"#047857"},error:{main:"#ef4444",bg:"#fef2f2",border:"#fecaca",text:"#dc2626"},warning:{main:"#f59e0b",bg:"#fffbeb",border:"#fde68a",text:"#d97706"},info:{main:"#1a6985",bg:"#e8f2f5",border:"#b8d9e6",text:"#0f3d4f"},surface:{background:e.neutral[0],main:e.neutral[0],elevated:e.neutral[0],hover:e.neutral[1],subtle:e.neutral[1]},text:{primary:e.neutral[10],secondary:e.neutral[8],tertiary:e.neutral[7],quaternary:e.neutral[6],disabled:e.neutral[5],inverse:e.neutral[0]},border:{main:e.neutral[4],light:e.neutral[3],strong:e.neutral[5],divider:e.neutral[4]},components:{button:{primary:{bg:"#1a6985",hover:"#145268",text:"#FFFFFF"},default:{bg:e.neutral[0],border:e.neutral[5],text:e.neutral[10],hover:e.neutral[1]}},input:{bg:e.neutral[0],border:e.neutral[5],borderHover:e.neutral[7],borderFocus:"#1a6985",placeholder:e.neutral[7]},table:{bg:e.neutral[0],headerBg:e.neutral[1],headerText:e.neutral[10],border:e.neutral[4],rowHover:e.neutral[1]},sidebar:{bg:"#000000",hover:"rgba(255, 255, 255, 0.08)",selected:"rgba(255, 255, 255, 0.12)",text:"#FFFFFF",textSecondary:"rgba(255, 255, 255, 0.65)"}},utility:{transparent:"transparent",link:"#1a6985",linkHover:"#145268",linkActive:"#0f3d4f"}}},p=m("light"),g=(r,e="light")=>{const t=m(e);if(!r)return t;const a=o({},t,r);return a.neutral.brightest=a.neutral[0],a.neutral.lightest=a.neutral[1],a.neutral.lighter=a.neutral[2],a.neutral.light=a.neutral[3],a.neutral.medium=a.neutral[5],a.neutral.dark=a.neutral[7],a.neutral.darker=a.neutral[8],a.neutral.darkest=a.neutral[9],a.neutral.dimmest=a.neutral[10],a},f={typography:{fontFamily:"Avenir, MarkPro, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",fontSize:{xs:12,sm:13,base:14,lg:16,xl:18},fontWeight:{normal:400,medium:500,semibold:600,bold:700},lineHeight:{tight:1.25,base:1.5715,relaxed:1.75}},spacing:{xs:4,sm:8,md:12,lg:16,xl:24,"2xl":32,"3xl":48},radius:{none:0,sm:8,base:12,md:14,lg:16,xl:20,full:9999,button:24,input:10,card:16},shadow:{sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.08)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.08)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.08)",card:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",elevated:"0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.08)",dropdown:"0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08)"},zIndex:{dropdown:1e3,modal:1050,popover:1060,tooltip:1070,notification:1080},transition:{fast:"150ms cubic-bezier(0.4, 0, 0.2, 1)",base:"200ms cubic-bezier(0.4, 0, 0.2, 1)",slow:"300ms cubic-bezier(0.4, 0, 0.2, 1)"}},y=r=>r?o(f,r):f,h=r.createContext({colors:g(),constants:y(),mode:"light"}),x=({children:o,mode:t="light",colors:a,constants:n,themeOverrides:i})=>{const l=r.useMemo(()=>g(a,t),[a,t]),c=r.useMemo(()=>y(n),[n]),s=r.useMemo(()=>((r,e,o,t)=>{var a,n;const i={token:{colorPrimary:r.primary.main,colorPrimaryHover:r.primary.hover,colorPrimaryActive:r.primary.active,colorPrimaryBorder:r.primary.main,colorText:r.text.primary,colorTextSecondary:r.text.secondary,colorTextTertiary:r.text.tertiary,colorTextQuaternary:r.text.quaternary,colorTextDisabled:r.text.disabled,colorBgBase:r.surface.background,colorBgContainer:r.surface.main,colorBgElevated:r.surface.elevated,colorBgLayout:r.surface.background,colorBgSpotlight:r.surface.hover,colorBorder:r.border.main,colorBorderSecondary:r.border.light,colorSplit:r.border.divider,colorSuccess:r.success.main,colorSuccessBg:r.success.bg,colorSuccessBorder:r.success.border,colorSuccessText:r.success.text,colorError:r.error.main,colorErrorBg:r.error.bg,colorErrorBorder:r.error.border,colorErrorText:r.error.text,colorWarning:r.warning.main,colorWarningBg:r.warning.bg,colorWarningBorder:r.warning.border,colorWarningText:r.warning.text,colorInfo:r.info.main,colorInfoBg:r.info.bg,colorInfoBorder:r.info.border,colorInfoText:r.info.text,colorLink:r.utility.link,colorLinkHover:r.utility.linkHover,colorLinkActive:r.utility.linkActive,borderRadius:e.radius.base,borderRadiusLG:e.radius.lg,borderRadiusSM:e.radius.sm,borderRadiusXS:6,boxShadow:e.shadow.base,boxShadowSecondary:e.shadow.card,boxShadowTertiary:e.shadow.elevated,fontFamily:e.typography.fontFamily,fontSize:e.typography.fontSize.base,fontSizeHeading1:38,fontSizeHeading2:30,fontSizeHeading3:24,fontSizeHeading4:20,fontSizeHeading5:e.typography.fontSize.lg,fontWeightStrong:e.typography.fontWeight.medium,lineHeight:e.typography.lineHeight.base,lineHeightHeading1:1.21,lineHeightHeading2:1.27,lineHeightHeading3:1.33,lineHeightHeading4:1.4,lineHeightHeading5:1.5},components:{Button:{colorPrimary:r.components.button.primary.bg,colorPrimaryHover:r.components.button.primary.hover,colorPrimaryActive:r.action.active,colorPrimaryBorder:r.components.button.primary.bg,primaryColor:r.components.button.primary.text,colorBorder:r.components.button.default.border,colorBgContainer:r.components.button.default.bg,colorText:r.components.button.default.text,defaultBg:r.components.button.default.bg,defaultBorderColor:r.components.button.default.border,defaultColor:r.components.button.default.text,primaryShadow:"none",defaultShadow:"none",dangerShadow:"none",fontWeight:e.typography.fontWeight.medium,controlHeight:32,paddingContentHorizontal:e.spacing.lg,borderRadius:e.radius.button,borderRadiusLG:e.radius.button,borderRadiusSM:e.radius.sm+8},Input:{colorBgContainer:r.components.input.bg,colorBorder:r.components.input.border,hoverBorderColor:r.components.input.borderHover,activeBorderColor:r.components.input.borderFocus,colorPrimaryHover:r.components.input.borderFocus,colorTextPlaceholder:r.components.input.placeholder,borderRadius:e.radius.input,borderRadiusLG:e.radius.base,borderRadiusSM:e.radius.sm},Select:{colorBgContainer:r.components.input.bg,colorBorder:r.components.input.border,colorTextPlaceholder:r.components.input.placeholder,colorPrimaryHover:r.action.main,hoverBorderColor:r.components.input.borderHover,activeBorderColor:r.components.input.borderFocus,optionSelectedBg:r.action.main,optionSelectedColor:r.action.contrast,optionActiveBg:r.surface.hover,colorBgElevated:r.neutral.brightest,controlItemBgHover:r.surface.hover,boxShadowSecondary:e.shadow.elevated,borderRadius:e.radius.input,borderRadiusLG:e.radius.base,borderRadiusSM:e.radius.sm},Checkbox:{colorPrimary:r.action.main,colorPrimaryHover:r.action.hover,colorBorder:r.border.strong,borderRadiusSM:6},Radio:{colorPrimary:r.action.main,colorPrimaryHover:r.action.hover,colorBorder:r.border.strong},Switch:{colorPrimary:r.action.main,colorPrimaryHover:r.action.hover,colorTextQuaternary:r.text.quaternary},Form:{labelColor:r.text.primary,labelRequiredMarkColor:r.error.main,labelFontSize:e.typography.fontSize.base,itemMarginBottom:e.spacing.lg},DatePicker:{colorBgContainer:r.components.input.bg,colorBorder:r.components.input.border,hoverBorderColor:r.components.input.borderHover,activeBorderColor:r.components.input.borderFocus,colorPrimary:r.action.main,borderRadius:e.radius.input},InputNumber:{borderRadius:e.radius.input},Table:{colorBgContainer:r.components.table.bg,headerBg:r.components.table.headerBg,headerColor:r.components.table.headerText,borderColor:r.components.table.border,headerSplitColor:r.components.table.border,rowHoverBg:r.components.table.rowHover,rowSelectedBg:r.action.light,rowSelectedHoverBg:r.action.lighter,colorText:r.text.primary,colorTextHeading:r.text.primary,borderRadius:e.radius.base,borderRadiusLG:e.radius.lg},Card:{colorBgContainer:r.surface.main,colorBorder:r.border.main,colorBorderSecondary:r.border.light,boxShadowTertiary:e.shadow.card,borderRadius:e.radius.card,borderRadiusLG:e.radius.lg+4},Statistic:{contentFontSize:24,colorTextHeading:r.text.primary},Descriptions:{labelBg:r.surface.hover,colorTextSecondary:r.text.secondary,itemPaddingBottom:e.spacing.md},Badge:{colorError:r.error.main,colorSuccess:r.success.main,colorInfo:r.info.main,colorInfoBg:r.info.bg,borderRadiusSM:e.radius.input},Tag:{colorBorder:r.border.main,defaultBg:r.surface.hover,borderRadiusSM:e.radius.sm},Timeline:{dotBg:r.surface.main,tailColor:r.border.main},Alert:{colorSuccessBg:r.success.bg,colorSuccessBorder:r.success.border,colorErrorBg:r.error.bg,colorErrorBorder:r.error.border,colorWarningBg:r.warning.bg,colorWarningBorder:r.warning.border,colorInfoBg:r.info.bg,colorInfoBorder:r.info.border,borderRadiusLG:e.radius.base},Modal:{contentBg:r.surface.elevated,headerBg:r.surface.elevated,colorBgMask:"rgba(0, 0, 0, 0.45)",borderRadiusLG:e.radius.lg},Drawer:{colorBgElevated:r.surface.elevated,colorBgMask:"rgba(0, 0, 0, 0.45)",borderRadiusLG:e.radius.lg},Notification:{colorBgElevated:r.neutral.brightest,borderRadiusLG:e.radius.base},Message:{contentBg:r.neutral.brightest,borderRadiusLG:e.radius.base},Spin:{colorPrimary:r.primary.main},Progress:{colorSuccess:r.success.main,colorError:r.error.main,defaultColor:r.primary.main,borderRadius:100},Skeleton:{colorFill:r.neutral[2],colorFillContent:r.neutral[1],borderRadiusSM:e.radius.sm},Menu:{itemBg:"transparent",itemColor:r.text.primary,itemHoverBg:r.surface.hover,itemSelectedBg:r.action.lighter,itemSelectedColor:r.action.main,itemActiveBg:r.action.lighter,subMenuItemBg:"transparent",darkItemBg:r.components.sidebar.bg,darkSubMenuItemBg:r.components.sidebar.bg,darkItemColor:r.components.sidebar.text,darkItemHoverBg:r.components.sidebar.hover,darkItemSelectedBg:r.components.sidebar.selected,darkItemSelectedColor:r.primary.contrast,borderRadius:e.radius.input,borderRadiusLG:e.radius.base},Breadcrumb:{linkColor:r.utility.link,linkHoverColor:r.utility.linkHover,itemColor:r.text.secondary,lastItemColor:r.text.primary,separatorColor:r.text.tertiary,borderRadiusSM:6},Pagination:{colorPrimary:r.primary.main,colorPrimaryHover:r.primary.hover,itemActiveBg:r.primary.main,borderRadius:e.radius.sm},Steps:{colorPrimary:r.action.main,colorText:r.text.secondary,colorTextDescription:r.text.tertiary,borderRadiusSM:100},Tabs:{colorPrimary:r.action.main,colorBorderSecondary:r.border.main,itemColor:r.text.secondary,itemHoverColor:r.action.hover,itemSelectedColor:r.action.main,inkBarColor:r.action.main,borderRadiusSM:e.radius.sm},Layout:{colorBgBody:r.surface.background,colorBgHeader:r.neutral.brightest,colorBgTrigger:r.components.sidebar.bg,siderBg:r.components.sidebar.bg,headerBg:r.neutral.brightest,borderRadiusLG:0},Divider:{colorSplit:r.border.divider},Typography:{colorText:r.text.primary,colorTextSecondary:r.text.secondary,colorTextDescription:r.text.tertiary},Tooltip:{colorBgSpotlight:r.neutral.darkest,colorTextLightSolid:r.neutral.brightest,borderRadius:e.radius.sm},Popover:{colorBgElevated:r.neutral.brightest,borderRadiusLG:e.radius.base},Dropdown:{boxShadowSecondary:e.shadow.dropdown},Calendar:{colorBgContainer:r.neutral.brightest,colorPrimary:r.action.main,borderRadiusLG:e.radius.base}}};return t?Object.assign(Object.assign({},i),{token:Object.assign(Object.assign({},i.token),null!==(a=t.token)&&void 0!==a?a:{}),components:Object.assign(Object.assign({},i.components),null!==(n=t.components)&&void 0!==n?n:{})}):i})(l,c,0,i),[l,c,t,i]),u=r.useMemo(()=>({colors:l,constants:c,mode:t}),[l,c,t]);return d.jsx(h.Provider,{value:u,children:d.jsx(e,{theme:s,children:o})})},v=()=>r.useContext(h);export{x as T,f as a,g as b,y as c,p as d,d as j,v as u};
|
|
11
|
+
//# sourceMappingURL=theme-provider-Ca4P0Hcp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme-provider-Ca4P0Hcp.js","sources":["../node_modules/react/cjs/react-jsx-runtime.development.js","../node_modules/react/jsx-runtime.js","../node_modules/react/cjs/react-jsx-runtime.production.js","../src/theme/colors.ts","../src/theme/constants.ts","../src/theme/theme-provider.tsx"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function getComponentNameFromType(type) {\n if (null == type) return null;\n if (\"function\" === typeof type)\n return type.$$typeof === REACT_CLIENT_REFERENCE\n ? null\n : type.displayName || type.name || null;\n if (\"string\" === typeof type) return type;\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return \"Fragment\";\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n case REACT_STRICT_MODE_TYPE:\n return \"StrictMode\";\n case REACT_SUSPENSE_TYPE:\n return \"Suspense\";\n case REACT_SUSPENSE_LIST_TYPE:\n return \"SuspenseList\";\n case REACT_ACTIVITY_TYPE:\n return \"Activity\";\n }\n if (\"object\" === typeof type)\n switch (\n (\"number\" === typeof type.tag &&\n console.error(\n \"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"\n ),\n type.$$typeof)\n ) {\n case REACT_PORTAL_TYPE:\n return \"Portal\";\n case REACT_CONTEXT_TYPE:\n return (type.displayName || \"Context\") + \".Provider\";\n case REACT_CONSUMER_TYPE:\n return (type._context.displayName || \"Context\") + \".Consumer\";\n case REACT_FORWARD_REF_TYPE:\n var innerType = type.render;\n type = type.displayName;\n type ||\n ((type = innerType.displayName || innerType.name || \"\"),\n (type = \"\" !== type ? \"ForwardRef(\" + type + \")\" : \"ForwardRef\"));\n return type;\n case REACT_MEMO_TYPE:\n return (\n (innerType = type.displayName || null),\n null !== innerType\n ? innerType\n : getComponentNameFromType(type.type) || \"Memo\"\n );\n case REACT_LAZY_TYPE:\n innerType = type._payload;\n type = type._init;\n try {\n return getComponentNameFromType(type(innerType));\n } catch (x) {}\n }\n return null;\n }\n function testStringCoercion(value) {\n return \"\" + value;\n }\n function checkKeyStringCoercion(value) {\n try {\n testStringCoercion(value);\n var JSCompiler_inline_result = !1;\n } catch (e) {\n JSCompiler_inline_result = !0;\n }\n if (JSCompiler_inline_result) {\n JSCompiler_inline_result = console;\n var JSCompiler_temp_const = JSCompiler_inline_result.error;\n var JSCompiler_inline_result$jscomp$0 =\n (\"function\" === typeof Symbol &&\n Symbol.toStringTag &&\n value[Symbol.toStringTag]) ||\n value.constructor.name ||\n \"Object\";\n JSCompiler_temp_const.call(\n JSCompiler_inline_result,\n \"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",\n JSCompiler_inline_result$jscomp$0\n );\n return testStringCoercion(value);\n }\n }\n function getTaskName(type) {\n if (type === REACT_FRAGMENT_TYPE) return \"<>\";\n if (\n \"object\" === typeof type &&\n null !== type &&\n type.$$typeof === REACT_LAZY_TYPE\n )\n return \"<...>\";\n try {\n var name = getComponentNameFromType(type);\n return name ? \"<\" + name + \">\" : \"<...>\";\n } catch (x) {\n return \"<...>\";\n }\n }\n function getOwner() {\n var dispatcher = ReactSharedInternals.A;\n return null === dispatcher ? null : dispatcher.getOwner();\n }\n function UnknownOwner() {\n return Error(\"react-stack-top-frame\");\n }\n function hasValidKey(config) {\n if (hasOwnProperty.call(config, \"key\")) {\n var getter = Object.getOwnPropertyDescriptor(config, \"key\").get;\n if (getter && getter.isReactWarning) return !1;\n }\n return void 0 !== config.key;\n }\n function defineKeyPropWarningGetter(props, displayName) {\n function warnAboutAccessingKey() {\n specialPropKeyWarningShown ||\n ((specialPropKeyWarningShown = !0),\n console.error(\n \"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)\",\n displayName\n ));\n }\n warnAboutAccessingKey.isReactWarning = !0;\n Object.defineProperty(props, \"key\", {\n get: warnAboutAccessingKey,\n configurable: !0\n });\n }\n function elementRefGetterWithDeprecationWarning() {\n var componentName = getComponentNameFromType(this.type);\n didWarnAboutElementRef[componentName] ||\n ((didWarnAboutElementRef[componentName] = !0),\n console.error(\n \"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.\"\n ));\n componentName = this.props.ref;\n return void 0 !== componentName ? componentName : null;\n }\n function ReactElement(\n type,\n key,\n self,\n source,\n owner,\n props,\n debugStack,\n debugTask\n ) {\n self = props.ref;\n type = {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n props: props,\n _owner: owner\n };\n null !== (void 0 !== self ? self : null)\n ? Object.defineProperty(type, \"ref\", {\n enumerable: !1,\n get: elementRefGetterWithDeprecationWarning\n })\n : Object.defineProperty(type, \"ref\", { enumerable: !1, value: null });\n type._store = {};\n Object.defineProperty(type._store, \"validated\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: 0\n });\n Object.defineProperty(type, \"_debugInfo\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: null\n });\n Object.defineProperty(type, \"_debugStack\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugStack\n });\n Object.defineProperty(type, \"_debugTask\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugTask\n });\n Object.freeze && (Object.freeze(type.props), Object.freeze(type));\n return type;\n }\n function jsxDEVImpl(\n type,\n config,\n maybeKey,\n isStaticChildren,\n source,\n self,\n debugStack,\n debugTask\n ) {\n var children = config.children;\n if (void 0 !== children)\n if (isStaticChildren)\n if (isArrayImpl(children)) {\n for (\n isStaticChildren = 0;\n isStaticChildren < children.length;\n isStaticChildren++\n )\n validateChildKeys(children[isStaticChildren]);\n Object.freeze && Object.freeze(children);\n } else\n console.error(\n \"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.\"\n );\n else validateChildKeys(children);\n if (hasOwnProperty.call(config, \"key\")) {\n children = getComponentNameFromType(type);\n var keys = Object.keys(config).filter(function (k) {\n return \"key\" !== k;\n });\n isStaticChildren =\n 0 < keys.length\n ? \"{key: someKey, \" + keys.join(\": ..., \") + \": ...}\"\n : \"{key: someKey}\";\n didWarnAboutKeySpread[children + isStaticChildren] ||\n ((keys =\n 0 < keys.length ? \"{\" + keys.join(\": ..., \") + \": ...}\" : \"{}\"),\n console.error(\n 'A props object containing a \"key\" prop is being spread into JSX:\\n let props = %s;\\n <%s {...props} />\\nReact keys must be passed directly to JSX without using spread:\\n let props = %s;\\n <%s key={someKey} {...props} />',\n isStaticChildren,\n children,\n keys,\n children\n ),\n (didWarnAboutKeySpread[children + isStaticChildren] = !0));\n }\n children = null;\n void 0 !== maybeKey &&\n (checkKeyStringCoercion(maybeKey), (children = \"\" + maybeKey));\n hasValidKey(config) &&\n (checkKeyStringCoercion(config.key), (children = \"\" + config.key));\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n children &&\n defineKeyPropWarningGetter(\n maybeKey,\n \"function\" === typeof type\n ? type.displayName || type.name || \"Unknown\"\n : type\n );\n return ReactElement(\n type,\n children,\n self,\n source,\n getOwner(),\n maybeKey,\n debugStack,\n debugTask\n );\n }\n function validateChildKeys(node) {\n \"object\" === typeof node &&\n null !== node &&\n node.$$typeof === REACT_ELEMENT_TYPE &&\n node._store &&\n (node._store.validated = 1);\n }\n var React = require(\"react\"),\n REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\");\n Symbol.for(\"react.provider\");\n var REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_ACTIVITY_TYPE = Symbol.for(\"react.activity\"),\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\"),\n ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n hasOwnProperty = Object.prototype.hasOwnProperty,\n isArrayImpl = Array.isArray,\n createTask = console.createTask\n ? console.createTask\n : function () {\n return null;\n };\n React = {\n \"react-stack-bottom-frame\": function (callStackForError) {\n return callStackForError();\n }\n };\n var specialPropKeyWarningShown;\n var didWarnAboutElementRef = {};\n var unknownOwnerDebugStack = React[\"react-stack-bottom-frame\"].bind(\n React,\n UnknownOwner\n )();\n var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));\n var didWarnAboutKeySpread = {};\n exports.Fragment = REACT_FRAGMENT_TYPE;\n exports.jsx = function (type, config, maybeKey, source, self) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !1,\n source,\n self,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n exports.jsxs = function (type, config, maybeKey, source, self) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !0,\n source,\n self,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","/**\n * @license React\n * react-jsx-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\");\nfunction jsxProd(type, config, maybeKey) {\n var key = null;\n void 0 !== maybeKey && (key = \"\" + maybeKey);\n void 0 !== config.key && (key = \"\" + config.key);\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n config = maybeKey.ref;\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n ref: void 0 !== config ? config : null,\n props: maybeKey\n };\n}\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsxProd;\nexports.jsxs = jsxProd;\n",null,null,null],"names":["process","env","NODE_ENV","getComponentNameFromType","type","$$typeof","REACT_CLIENT_REFERENCE","displayName","name","REACT_FRAGMENT_TYPE","REACT_PROFILER_TYPE","REACT_STRICT_MODE_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_ACTIVITY_TYPE","tag","console","error","REACT_PORTAL_TYPE","REACT_CONTEXT_TYPE","REACT_CONSUMER_TYPE","_context","REACT_FORWARD_REF_TYPE","innerType","render","REACT_MEMO_TYPE","REACT_LAZY_TYPE","_payload","_init","x","testStringCoercion","value","checkKeyStringCoercion","JSCompiler_inline_result","e","JSCompiler_temp_const","JSCompiler_inline_result$jscomp$0","Symbol","toStringTag","constructor","call","getTaskName","UnknownOwner","Error","elementRefGetterWithDeprecationWarning","componentName","this","didWarnAboutElementRef","props","ref","jsxDEVImpl","config","maybeKey","isStaticChildren","source","self","debugStack","debugTask","dispatcher","children","isArrayImpl","length","validateChildKeys","Object","freeze","hasOwnProperty","keys","filter","k","join","didWarnAboutKeySpread","getter","getOwnPropertyDescriptor","get","isReactWarning","key","hasValidKey","propName","warnAboutAccessingKey","specialPropKeyWarningShown","defineProperty","configurable","defineKeyPropWarningGetter","owner","REACT_ELEMENT_TYPE","_owner","enumerable","_store","writable","ReactElement","ReactSharedInternals","A","getOwner","node","validated","React","require$$0","for","__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE","prototype","Array","isArray","createTask","unknownOwnerDebugStack","callStackForError","bind","unknownOwnerDebugTask","reactJsxRuntime_development","Fragment","jsx","trackActualOwner","recentlyCreatedOwnerStacks","jsxs","jsxRuntimeModule","exports","jsxProd","reactJsxRuntime_production","require$$1","lightModeColors","neutral","darkModeColors","buildDefaultPalette","mode","modeColors","primary","main","hover","active","light","lighter","contrast","action","disabled","absolute","white","black","brightest","lightest","medium","dark","darker","darkest","dimmest","success","bg","border","text","warning","info","surface","background","elevated","subtle","secondary","tertiary","quaternary","inverse","strong","divider","components","button","default","input","borderHover","borderFocus","placeholder","table","headerBg","headerText","rowHover","sidebar","selected","textSecondary","utility","transparent","link","linkHover","linkActive","defaultColorPalette","buildColorPalette","overrides","basePalette","merged","merge","defaultUIConstants","typography","fontFamily","fontSize","xs","sm","base","lg","xl","fontWeight","normal","semibold","bold","lineHeight","tight","relaxed","spacing","md","radius","none","full","card","shadow","dropdown","zIndex","modal","popover","tooltip","notification","transition","fast","slow","buildUIConstants","TemboThemeContext","createContext","colors","constants","TemboThemeProvider","themeOverrides","palette","useMemo","uiConstants","theme","baseTheme","token","colorPrimary","colorPrimaryHover","colorPrimaryActive","colorPrimaryBorder","colorText","colorTextSecondary","colorTextTertiary","colorTextQuaternary","colorTextDisabled","colorBgBase","colorBgContainer","colorBgElevated","colorBgLayout","colorBgSpotlight","colorBorder","colorBorderSecondary","colorSplit","colorSuccess","colorSuccessBg","colorSuccessBorder","colorSuccessText","colorError","colorErrorBg","colorErrorBorder","colorErrorText","colorWarning","colorWarningBg","colorWarningBorder","colorWarningText","colorInfo","colorInfoBg","colorInfoBorder","colorInfoText","colorLink","colorLinkHover","colorLinkActive","borderRadius","borderRadiusLG","borderRadiusSM","borderRadiusXS","boxShadow","boxShadowSecondary","boxShadowTertiary","fontSizeHeading1","fontSizeHeading2","fontSizeHeading3","fontSizeHeading4","fontSizeHeading5","fontWeightStrong","lineHeightHeading1","lineHeightHeading2","lineHeightHeading3","lineHeightHeading4","lineHeightHeading5","Button","primaryColor","defaultBg","defaultBorderColor","defaultColor","primaryShadow","defaultShadow","dangerShadow","controlHeight","paddingContentHorizontal","Input","hoverBorderColor","activeBorderColor","colorTextPlaceholder","Select","optionSelectedBg","optionSelectedColor","optionActiveBg","controlItemBgHover","Checkbox","Radio","Switch","Form","labelColor","labelRequiredMarkColor","labelFontSize","itemMarginBottom","DatePicker","InputNumber","Table","headerColor","borderColor","headerSplitColor","rowHoverBg","rowSelectedBg","rowSelectedHoverBg","colorTextHeading","Card","Statistic","contentFontSize","Descriptions","labelBg","itemPaddingBottom","Badge","Tag","Timeline","dotBg","tailColor","Alert","Modal","contentBg","colorBgMask","Drawer","Notification","Message","Spin","Progress","Skeleton","colorFill","colorFillContent","Menu","itemBg","itemColor","itemHoverBg","itemSelectedBg","itemSelectedColor","itemActiveBg","subMenuItemBg","darkItemBg","darkSubMenuItemBg","darkItemColor","darkItemHoverBg","darkItemSelectedBg","darkItemSelectedColor","Breadcrumb","linkColor","linkHoverColor","lastItemColor","separatorColor","Pagination","Steps","colorTextDescription","Tabs","itemHoverColor","inkBarColor","Layout","colorBgBody","colorBgHeader","colorBgTrigger","siderBg","Divider","Typography","Tooltip","colorTextLightSolid","Popover","Dropdown","Calendar","assign","_a","_b","buildAntDThemeConfig","contextValue","_jsx","Provider","ConfigProvider","useTemboTheme","useContext"],"mappings":";;;;;;;;;+BAWA,eAAiBA,QAAQC,IAAIC,UAC3B,WACE,SAASC,EAAyBC,GAChC,GAAI,MAAQA,EAAM,OAAO,KACzB,GAAI,mBAAsBA,EACxB,OAAOA,EAAKC,WAAaC,EACrB,KACAF,EAAKG,aAAeH,EAAKI,MAAQ,KACvC,GAAI,iBAAoBJ,EAAM,OAAOA,EACrC,OAAQA,GACN,KAAKK,EACH,MAAO,WACT,KAAKC,EACH,MAAO,WACT,KAAKC,EACH,MAAO,aACT,KAAKC,EACH,MAAO,WACT,KAAKC,EACH,MAAO,eACT,KAAKC,EACH,MAAO,WAEX,GAAI,iBAAoBV,EACtB,OACG,iBAAoBA,EAAKW,KACxBC,QAAQC,MACN,qHAEJb,EAAKC,UAEL,KAAKa,EACH,MAAO,SACT,KAAKC,EACH,OAAQf,EAAKG,aAAe,WAAa,YAC3C,KAAKa,EACH,OA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AAQ7E,KAAKQ,UAGvC6N,QAAS,CACLrI,iBAAkBnB,EAAQxG,QAAQsB,QAClC2O,oBAAqBzJ,EAAQxG,QAAQiB,UACrCiI,aAAc7C,EAAUlB,OAAOb,IAGnC4L,QAAS,CACLzI,gBAAiBjB,EAAQxG,QAAQiB,UACjCkI,eAAgB9C,EAAUlB,OAAOZ,MAGrC4L,SAAU,CACN5G,mBAAoBlD,EAAUd,OAAOC,UAGzC4K,SAAU,CACN5I,iBAAkBhB,EAAQxG,QAAQiB,UAClC6F,aAAcN,EAAQ5F,OAAON,KAC7B6I,eAAgB9C,EAAUlB,OAAOZ,QAK7C,OAAKV,EAELrH,OAAA6T,OAAA7T,OAAA6T,OAAA,CAAA,EACOzJ,GAAS,CACZC,MAAKrK,OAAA6T,OAAA7T,OAAA6T,OAAA,GAAOzJ,EAAUC,OAA0B,QAAfyJ,EAAAzM,EAAUgD,aAAK,IAAAyJ,EAAAA,EAAI,IACpD9N,WAAUhG,OAAA6T,OAAA7T,OAAA6T,OAAA,CAAA,EACHzJ,EAAUpE,YACW,QAApB+N,EAAA1M,EAAUrB,kBAAU,IAAA+N,EAAAA,EAAI,CAAA,KAPb3J,GAuCb4J,CAAqBhK,EAASE,EAAavG,EAAMoG,GACvD,CAACC,EAASE,EAAavG,EAAMoG,IAG3BkK,EAAejS,EAAMiI,QACvB,KAAA,CACIL,OAAQI,EACRH,UAAWK,EACXvG,SAEJ,CAACqG,EAASE,EAAavG,IAG3B,OACIuQ,EAAAA,IAACxK,EAAkByK,SAAQ,CAACnW,MAAOiW,EAAYrU,SAC3CsU,EAAAA,IAACE,EAAc,CAACjK,MAAOA,WAAQvK,OA6B9ByU,EAAgB,IACzBrS,EAAMsS,WAAW5K","x_google_ignoreList":[0,1,2]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";var e=require("react"),r=require("antd"),o=require("lodash");function t(e){return e&&e.__esModule?e:{default:e}}var a,n=t(e),i={exports:{}},l={};var s,c,d={};
|
|
2
|
+
/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react-jsx-runtime.development.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/function u(){return s||(s=1,"production"!==process.env.NODE_ENV&&function(){function e(r){if(null==r)return null;if("function"==typeof r)return r.$$typeof===R?null:r.displayName||r.name||null;if("string"==typeof r)return r;switch(r){case p:return"Fragment";case f:return"Profiler";case g:return"StrictMode";case v:return"Suspense";case S:return"SuspenseList";case w:return"Activity"}if("object"==typeof r)switch("number"==typeof r.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),r.$$typeof){case m:return"Portal";case h:return(r.displayName||"Context")+".Provider";case y:return(r._context.displayName||"Context")+".Consumer";case x:var o=r.render;return(r=r.displayName)||(r=""!==(r=o.displayName||o.name||"")?"ForwardRef("+r+")":"ForwardRef"),r;case B:return null!==(o=r.displayName||null)?o:e(r.type)||"Memo";case k:o=r._payload,r=r._init;try{return e(r(o))}catch(e){}}return null}function r(e){return""+e}function o(e){try{r(e);var o=!1}catch(e){o=!0}if(o){var t=(o=console).error,a="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(o,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",a),r(e)}}function t(r){if(r===p)return"<>";if("object"==typeof r&&null!==r&&r.$$typeof===k)return"<...>";try{var o=e(r);return o?"<"+o+">":"<...>"}catch(e){return"<...>"}}function a(){return Error("react-stack-top-frame")}function i(){var r=e(this.type);return F[r]||(F[r]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(r=this.props.ref)?r:null}function l(r,t,a,n,l,d,u,m){var p,g=t.children;if(void 0!==g)if(n)if(P(g)){for(n=0;n<g.length;n++)s(g[n]);Object.freeze&&Object.freeze(g)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else s(g);if(T.call(t,"key")){g=e(r);var f=Object.keys(t).filter(function(e){return"key"!==e});n=0<f.length?"{key: someKey, "+f.join(": ..., ")+": ...}":"{key: someKey}",_[g+n]||(f=0<f.length?"{"+f.join(": ..., ")+": ...}":"{}",console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',n,g,f,g),_[g+n]=!0)}if(g=null,void 0!==a&&(o(a),g=""+a),function(e){if(T.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return void 0!==e.key}(t)&&(o(t.key),g=""+t.key),"key"in t)for(var y in a={},t)"key"!==y&&(a[y]=t[y]);else a=t;return g&&function(e,r){function o(){c||(c=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}(a,"function"==typeof r?r.displayName||r.name||"Unknown":r),function(e,r,o,t,a,n,l,s){return o=n.ref,e={$$typeof:b,type:e,key:r,props:n,_owner:a},null!==(void 0!==o?o:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:i}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:l}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:s}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(r,g,d,0,null===(p=C.A)?null:p.getOwner(),a,u,m)}function s(e){"object"==typeof e&&null!==e&&e.$$typeof===b&&e._store&&(e._store.validated=1)}var c,u=n.default,b=Symbol.for("react.transitional.element"),m=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),h=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),w=Symbol.for("react.activity"),R=Symbol.for("react.client.reference"),C=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,T=Object.prototype.hasOwnProperty,P=Array.isArray,H=console.createTask?console.createTask:function(){return null},F={},j=(u={"react-stack-bottom-frame":function(e){return e()}})["react-stack-bottom-frame"].bind(u,a)(),O=H(t(a)),_={};d.Fragment=p,d.jsx=function(e,r,o,a,n){var i=1e4>C.recentlyCreatedOwnerStacks++;return l(e,r,o,!1,0,n,i?Error("react-stack-top-frame"):j,i?H(t(e)):O)},d.jsxs=function(e,r,o,a,n){var i=1e4>C.recentlyCreatedOwnerStacks++;return l(e,r,o,!0,0,n,i?Error("react-stack-top-frame"):j,i?H(t(e)):O)}}()),d}var b=(c||(c=1,"production"===process.env.NODE_ENV?i.exports=function(){if(a)return l;a=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(r,o,t){var a=null;if(void 0!==t&&(a=""+t),void 0!==o.key&&(a=""+o.key),"key"in o)for(var n in t={},o)"key"!==n&&(t[n]=o[n]);else t=o;return o=t.ref,{$$typeof:e,type:r,key:a,ref:void 0!==o?o:null,props:t}}return l.Fragment=r,l.jsx=o,l.jsxs=o,l}():i.exports=u()),i.exports);const m={neutral:{0:"#ffffff",1:"#fafafa",2:"#f5f5f5",3:"#f0f0f0",4:"#e5e5e5",5:"#d4d4d4",6:"#b3b3b3",7:"#999999",8:"#666666",9:"#1a1a1a",10:"#000000"}},p={neutral:{0:"#000000",1:"#1a1a1a",2:"#666666",3:"#999999",4:"#b3b3b3",5:"#d4d4d4",6:"#e5e5e5",7:"#f0f0f0",8:"#f5f5f5",9:"#fafafa",10:"#ffffff"}},g=e=>{const r="light"===e?m:p;return{primary:{main:"#000000",hover:"#1a1a1a",active:"#000000",light:"#666666",lighter:"#999999",contrast:"#FFFFFF"},action:{main:"#1a6985",hover:"#145268",active:"#0f3d4f",light:"#e8f2f5",lighter:"#f4f9fa",disabled:"#a3c9d6",contrast:"#FFFFFF"},absolute:{white:"#ffffff",black:"#000000"},neutral:{0:r.neutral[0],1:r.neutral[1],2:r.neutral[2],3:r.neutral[3],4:r.neutral[4],5:r.neutral[5],6:r.neutral[6],7:r.neutral[7],8:r.neutral[8],9:r.neutral[9],10:r.neutral[10],brightest:r.neutral[0],lightest:r.neutral[1],lighter:r.neutral[2],light:r.neutral[3],medium:r.neutral[5],dark:r.neutral[7],darker:r.neutral[8],darkest:r.neutral[9],dimmest:r.neutral[10]},success:{main:"#10b981",bg:"#ecfdf5",border:"#a7f3d0",text:"#047857"},error:{main:"#ef4444",bg:"#fef2f2",border:"#fecaca",text:"#dc2626"},warning:{main:"#f59e0b",bg:"#fffbeb",border:"#fde68a",text:"#d97706"},info:{main:"#1a6985",bg:"#e8f2f5",border:"#b8d9e6",text:"#0f3d4f"},surface:{background:r.neutral[0],main:r.neutral[0],elevated:r.neutral[0],hover:r.neutral[1],subtle:r.neutral[1]},text:{primary:r.neutral[10],secondary:r.neutral[8],tertiary:r.neutral[7],quaternary:r.neutral[6],disabled:r.neutral[5],inverse:r.neutral[0]},border:{main:r.neutral[4],light:r.neutral[3],strong:r.neutral[5],divider:r.neutral[4]},components:{button:{primary:{bg:"#1a6985",hover:"#145268",text:"#FFFFFF"},default:{bg:r.neutral[0],border:r.neutral[5],text:r.neutral[10],hover:r.neutral[1]}},input:{bg:r.neutral[0],border:r.neutral[5],borderHover:r.neutral[7],borderFocus:"#1a6985",placeholder:r.neutral[7]},table:{bg:r.neutral[0],headerBg:r.neutral[1],headerText:r.neutral[10],border:r.neutral[4],rowHover:r.neutral[1]},sidebar:{bg:"#000000",hover:"rgba(255, 255, 255, 0.08)",selected:"rgba(255, 255, 255, 0.12)",text:"#FFFFFF",textSecondary:"rgba(255, 255, 255, 0.65)"}},utility:{transparent:"transparent",link:"#1a6985",linkHover:"#145268",linkActive:"#0f3d4f"}}},f=g("light"),y=(e,r="light")=>{const t=g(r);if(!e)return t;const a=o.merge({},t,e);return a.neutral.brightest=a.neutral[0],a.neutral.lightest=a.neutral[1],a.neutral.lighter=a.neutral[2],a.neutral.light=a.neutral[3],a.neutral.medium=a.neutral[5],a.neutral.dark=a.neutral[7],a.neutral.darker=a.neutral[8],a.neutral.darkest=a.neutral[9],a.neutral.dimmest=a.neutral[10],a},h={typography:{fontFamily:"Avenir, MarkPro, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",fontSize:{xs:12,sm:13,base:14,lg:16,xl:18},fontWeight:{normal:400,medium:500,semibold:600,bold:700},lineHeight:{tight:1.25,base:1.5715,relaxed:1.75}},spacing:{xs:4,sm:8,md:12,lg:16,xl:24,"2xl":32,"3xl":48},radius:{none:0,sm:8,base:12,md:14,lg:16,xl:20,full:9999,button:24,input:10,card:16},shadow:{sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.08)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.08)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.08)",card:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",elevated:"0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.08)",dropdown:"0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08)"},zIndex:{dropdown:1e3,modal:1050,popover:1060,tooltip:1070,notification:1080},transition:{fast:"150ms cubic-bezier(0.4, 0, 0.2, 1)",base:"200ms cubic-bezier(0.4, 0, 0.2, 1)",slow:"300ms cubic-bezier(0.4, 0, 0.2, 1)"}},x=e=>e?o.merge(h,e):h,v=n.default.createContext({colors:y(),constants:x(),mode:"light"});exports.TemboThemeProvider=({children:e,mode:o="light",colors:t,constants:a,themeOverrides:i})=>{const l=n.default.useMemo(()=>y(t,o),[t,o]),s=n.default.useMemo(()=>x(a),[a]),c=n.default.useMemo(()=>((e,r,o,t)=>{var a,n;const i={token:{colorPrimary:e.primary.main,colorPrimaryHover:e.primary.hover,colorPrimaryActive:e.primary.active,colorPrimaryBorder:e.primary.main,colorText:e.text.primary,colorTextSecondary:e.text.secondary,colorTextTertiary:e.text.tertiary,colorTextQuaternary:e.text.quaternary,colorTextDisabled:e.text.disabled,colorBgBase:e.surface.background,colorBgContainer:e.surface.main,colorBgElevated:e.surface.elevated,colorBgLayout:e.surface.background,colorBgSpotlight:e.surface.hover,colorBorder:e.border.main,colorBorderSecondary:e.border.light,colorSplit:e.border.divider,colorSuccess:e.success.main,colorSuccessBg:e.success.bg,colorSuccessBorder:e.success.border,colorSuccessText:e.success.text,colorError:e.error.main,colorErrorBg:e.error.bg,colorErrorBorder:e.error.border,colorErrorText:e.error.text,colorWarning:e.warning.main,colorWarningBg:e.warning.bg,colorWarningBorder:e.warning.border,colorWarningText:e.warning.text,colorInfo:e.info.main,colorInfoBg:e.info.bg,colorInfoBorder:e.info.border,colorInfoText:e.info.text,colorLink:e.utility.link,colorLinkHover:e.utility.linkHover,colorLinkActive:e.utility.linkActive,borderRadius:r.radius.base,borderRadiusLG:r.radius.lg,borderRadiusSM:r.radius.sm,borderRadiusXS:6,boxShadow:r.shadow.base,boxShadowSecondary:r.shadow.card,boxShadowTertiary:r.shadow.elevated,fontFamily:r.typography.fontFamily,fontSize:r.typography.fontSize.base,fontSizeHeading1:38,fontSizeHeading2:30,fontSizeHeading3:24,fontSizeHeading4:20,fontSizeHeading5:r.typography.fontSize.lg,fontWeightStrong:r.typography.fontWeight.medium,lineHeight:r.typography.lineHeight.base,lineHeightHeading1:1.21,lineHeightHeading2:1.27,lineHeightHeading3:1.33,lineHeightHeading4:1.4,lineHeightHeading5:1.5},components:{Button:{colorPrimary:e.components.button.primary.bg,colorPrimaryHover:e.components.button.primary.hover,colorPrimaryActive:e.action.active,colorPrimaryBorder:e.components.button.primary.bg,primaryColor:e.components.button.primary.text,colorBorder:e.components.button.default.border,colorBgContainer:e.components.button.default.bg,colorText:e.components.button.default.text,defaultBg:e.components.button.default.bg,defaultBorderColor:e.components.button.default.border,defaultColor:e.components.button.default.text,primaryShadow:"none",defaultShadow:"none",dangerShadow:"none",fontWeight:r.typography.fontWeight.medium,controlHeight:32,paddingContentHorizontal:r.spacing.lg,borderRadius:r.radius.button,borderRadiusLG:r.radius.button,borderRadiusSM:r.radius.sm+8},Input:{colorBgContainer:e.components.input.bg,colorBorder:e.components.input.border,hoverBorderColor:e.components.input.borderHover,activeBorderColor:e.components.input.borderFocus,colorPrimaryHover:e.components.input.borderFocus,colorTextPlaceholder:e.components.input.placeholder,borderRadius:r.radius.input,borderRadiusLG:r.radius.base,borderRadiusSM:r.radius.sm},Select:{colorBgContainer:e.components.input.bg,colorBorder:e.components.input.border,colorTextPlaceholder:e.components.input.placeholder,colorPrimaryHover:e.action.main,hoverBorderColor:e.components.input.borderHover,activeBorderColor:e.components.input.borderFocus,optionSelectedBg:e.action.main,optionSelectedColor:e.action.contrast,optionActiveBg:e.surface.hover,colorBgElevated:e.neutral.brightest,controlItemBgHover:e.surface.hover,boxShadowSecondary:r.shadow.elevated,borderRadius:r.radius.input,borderRadiusLG:r.radius.base,borderRadiusSM:r.radius.sm},Checkbox:{colorPrimary:e.action.main,colorPrimaryHover:e.action.hover,colorBorder:e.border.strong,borderRadiusSM:6},Radio:{colorPrimary:e.action.main,colorPrimaryHover:e.action.hover,colorBorder:e.border.strong},Switch:{colorPrimary:e.action.main,colorPrimaryHover:e.action.hover,colorTextQuaternary:e.text.quaternary},Form:{labelColor:e.text.primary,labelRequiredMarkColor:e.error.main,labelFontSize:r.typography.fontSize.base,itemMarginBottom:r.spacing.lg},DatePicker:{colorBgContainer:e.components.input.bg,colorBorder:e.components.input.border,hoverBorderColor:e.components.input.borderHover,activeBorderColor:e.components.input.borderFocus,colorPrimary:e.action.main,borderRadius:r.radius.input},InputNumber:{borderRadius:r.radius.input},Table:{colorBgContainer:e.components.table.bg,headerBg:e.components.table.headerBg,headerColor:e.components.table.headerText,borderColor:e.components.table.border,headerSplitColor:e.components.table.border,rowHoverBg:e.components.table.rowHover,rowSelectedBg:e.action.light,rowSelectedHoverBg:e.action.lighter,colorText:e.text.primary,colorTextHeading:e.text.primary,borderRadius:r.radius.base,borderRadiusLG:r.radius.lg},Card:{colorBgContainer:e.surface.main,colorBorder:e.border.main,colorBorderSecondary:e.border.light,boxShadowTertiary:r.shadow.card,borderRadius:r.radius.card,borderRadiusLG:r.radius.lg+4},Statistic:{contentFontSize:24,colorTextHeading:e.text.primary},Descriptions:{labelBg:e.surface.hover,colorTextSecondary:e.text.secondary,itemPaddingBottom:r.spacing.md},Badge:{colorError:e.error.main,colorSuccess:e.success.main,colorInfo:e.info.main,colorInfoBg:e.info.bg,borderRadiusSM:r.radius.input},Tag:{colorBorder:e.border.main,defaultBg:e.surface.hover,borderRadiusSM:r.radius.sm},Timeline:{dotBg:e.surface.main,tailColor:e.border.main},Alert:{colorSuccessBg:e.success.bg,colorSuccessBorder:e.success.border,colorErrorBg:e.error.bg,colorErrorBorder:e.error.border,colorWarningBg:e.warning.bg,colorWarningBorder:e.warning.border,colorInfoBg:e.info.bg,colorInfoBorder:e.info.border,borderRadiusLG:r.radius.base},Modal:{contentBg:e.surface.elevated,headerBg:e.surface.elevated,colorBgMask:"rgba(0, 0, 0, 0.45)",borderRadiusLG:r.radius.lg},Drawer:{colorBgElevated:e.surface.elevated,colorBgMask:"rgba(0, 0, 0, 0.45)",borderRadiusLG:r.radius.lg},Notification:{colorBgElevated:e.neutral.brightest,borderRadiusLG:r.radius.base},Message:{contentBg:e.neutral.brightest,borderRadiusLG:r.radius.base},Spin:{colorPrimary:e.primary.main},Progress:{colorSuccess:e.success.main,colorError:e.error.main,defaultColor:e.primary.main,borderRadius:100},Skeleton:{colorFill:e.neutral[2],colorFillContent:e.neutral[1],borderRadiusSM:r.radius.sm},Menu:{itemBg:"transparent",itemColor:e.text.primary,itemHoverBg:e.surface.hover,itemSelectedBg:e.action.lighter,itemSelectedColor:e.action.main,itemActiveBg:e.action.lighter,subMenuItemBg:"transparent",darkItemBg:e.components.sidebar.bg,darkSubMenuItemBg:e.components.sidebar.bg,darkItemColor:e.components.sidebar.text,darkItemHoverBg:e.components.sidebar.hover,darkItemSelectedBg:e.components.sidebar.selected,darkItemSelectedColor:e.primary.contrast,borderRadius:r.radius.input,borderRadiusLG:r.radius.base},Breadcrumb:{linkColor:e.utility.link,linkHoverColor:e.utility.linkHover,itemColor:e.text.secondary,lastItemColor:e.text.primary,separatorColor:e.text.tertiary,borderRadiusSM:6},Pagination:{colorPrimary:e.primary.main,colorPrimaryHover:e.primary.hover,itemActiveBg:e.primary.main,borderRadius:r.radius.sm},Steps:{colorPrimary:e.action.main,colorText:e.text.secondary,colorTextDescription:e.text.tertiary,borderRadiusSM:100},Tabs:{colorPrimary:e.action.main,colorBorderSecondary:e.border.main,itemColor:e.text.secondary,itemHoverColor:e.action.hover,itemSelectedColor:e.action.main,inkBarColor:e.action.main,borderRadiusSM:r.radius.sm},Layout:{colorBgBody:e.surface.background,colorBgHeader:e.neutral.brightest,colorBgTrigger:e.components.sidebar.bg,siderBg:e.components.sidebar.bg,headerBg:e.neutral.brightest,borderRadiusLG:0},Divider:{colorSplit:e.border.divider},Typography:{colorText:e.text.primary,colorTextSecondary:e.text.secondary,colorTextDescription:e.text.tertiary},Tooltip:{colorBgSpotlight:e.neutral.darkest,colorTextLightSolid:e.neutral.brightest,borderRadius:r.radius.sm},Popover:{colorBgElevated:e.neutral.brightest,borderRadiusLG:r.radius.base},Dropdown:{boxShadowSecondary:r.shadow.dropdown},Calendar:{colorBgContainer:e.neutral.brightest,colorPrimary:e.action.main,borderRadiusLG:r.radius.base}}};return t?Object.assign(Object.assign({},i),{token:Object.assign(Object.assign({},i.token),null!==(a=t.token)&&void 0!==a?a:{}),components:Object.assign(Object.assign({},i.components),null!==(n=t.components)&&void 0!==n?n:{})}):i})(l,s,0,i),[l,s,o,i]),d=n.default.useMemo(()=>({colors:l,constants:s,mode:o}),[l,s,o]);return b.jsx(v.Provider,{value:d,children:b.jsx(r.ConfigProvider,{theme:c,children:e})})},exports.buildColorPalette=y,exports.buildUIConstants=x,exports.defaultColorPalette=f,exports.defaultUIConstants=h,exports.jsxRuntimeExports=b,exports.useTemboTheme=()=>n.default.useContext(v);
|
|
11
|
+
//# sourceMappingURL=theme-provider-RhAw3jw_.js.map
|