@databricks/design-system 1.12.4 → 1.12.6

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.
Files changed (47) hide show
  1. package/dist/design-system/DesignSystemProvider/DesignSystemProvider.d.ts +0 -6
  2. package/dist/design-system/DesignSystemProvider/DesignSystemProvider.d.ts.map +1 -1
  3. package/dist/design-system/DialogCombobox/DialogComboboxCountBadge.d.ts +3 -1
  4. package/dist/design-system/DialogCombobox/DialogComboboxCountBadge.d.ts.map +1 -1
  5. package/dist/design-system/DialogCombobox/DialogComboboxOptionList.d.ts +1 -1
  6. package/dist/design-system/DialogCombobox/DialogComboboxOptionList.d.ts.map +1 -1
  7. package/dist/design-system/DialogCombobox/DialogComboboxOptionListCheckboxItem.d.ts +1 -1
  8. package/dist/design-system/DialogCombobox/DialogComboboxOptionListCheckboxItem.d.ts.map +1 -1
  9. package/dist/design-system/DialogCombobox/DialogComboboxOptionListSearch.d.ts +2 -0
  10. package/dist/design-system/DialogCombobox/DialogComboboxOptionListSearch.d.ts.map +1 -1
  11. package/dist/design-system/DialogCombobox/DialogComboboxOptionListSelectItem.d.ts +1 -1
  12. package/dist/design-system/DialogCombobox/DialogComboboxOptionListSelectItem.d.ts.map +1 -1
  13. package/dist/design-system/DialogCombobox/DialogComboboxTrigger.d.ts +1 -2
  14. package/dist/design-system/DialogCombobox/DialogComboboxTrigger.d.ts.map +1 -1
  15. package/dist/design-system/DialogCombobox/shared.d.ts.map +1 -1
  16. package/dist/design-system/DropdownMenu/DropdownMenu.d.ts.map +1 -1
  17. package/dist/design-system/Hooks/useDesignSystemTheme.d.ts +1 -1
  18. package/dist/design-system/Hooks/useDesignSystemTheme.d.ts.map +1 -1
  19. package/dist/design-system/Modal/Modal.d.ts.map +1 -1
  20. package/dist/design-system/Pagination/index.d.ts +1 -0
  21. package/dist/design-system/Pagination/index.d.ts.map +1 -1
  22. package/dist/design-system/Sidebar/Sidebar.d.ts +3 -1
  23. package/dist/design-system/Sidebar/Sidebar.d.ts.map +1 -1
  24. package/dist/design-system/Sidebar/Sidebar.test.d.ts +2 -0
  25. package/dist/design-system/Sidebar/Sidebar.test.d.ts.map +1 -0
  26. package/dist/design-system/Spinner/Spinner.d.ts.map +1 -1
  27. package/dist/design-system/TableUI/index.d.ts +1 -0
  28. package/dist/design-system/TableUI/index.d.ts.map +1 -1
  29. package/dist/design-system/ToggleButton/ToggleButton.d.ts.map +1 -1
  30. package/dist/development.js +1 -1
  31. package/dist/index.js +164 -68
  32. package/dist/index.js.map +1 -1
  33. package/dist/test-utils/enzyme/table.d.ts +4 -0
  34. package/dist/test-utils/enzyme/table.d.ts.map +1 -1
  35. package/dist/test-utils/enzyme.js +4 -0
  36. package/dist/test-utils/enzyme.js.map +1 -1
  37. package/dist/test-utils/rtl/table.d.ts +6 -2
  38. package/dist/test-utils/rtl/table.d.ts.map +1 -1
  39. package/dist/test-utils/rtl.js +6 -2
  40. package/dist/test-utils/rtl.js.map +1 -1
  41. package/dist/theme/index.d.ts +0 -5
  42. package/dist/theme/index.d.ts.map +1 -1
  43. package/dist/useDesignSystemTheme-1e16bcf5.js +441 -0
  44. package/dist/useDesignSystemTheme-1e16bcf5.js.map +1 -0
  45. package/dist/useDesignSystemTheme-3d2c1acb.js +440 -0
  46. package/dist/useDesignSystemTheme-3d2c1acb.js.map +1 -0
  47. package/package.json +7 -5
@@ -0,0 +1,440 @@
1
+ import { useTheme } from '@emotion/react';
2
+ import 'react';
3
+ import chroma from 'chroma-js';
4
+ import { jsx } from '@emotion/react/jsx-runtime';
5
+
6
+ // Border variables
7
+ const borders = {
8
+ borderRadiusMd: 4
9
+ };
10
+
11
+ // eslint-disable-next-line import/no-anonymous-default-export
12
+ var borders$1 = {
13
+ ...borders
14
+ };
15
+
16
+ // Exported from go/designsystem/colorsheet
17
+ const colorPalettePrimary = {
18
+ primary: '#2272B4',
19
+ blue100: '#F0F8FF',
20
+ blue200: '#D7EDFE',
21
+ blue300: '#BAE1FC',
22
+ blue400: '#8FCDFF',
23
+ blue500: '#4299E0',
24
+ blue600: '#2272B4',
25
+ blue700: '#0E538B',
26
+ blue800: '#04355D',
27
+ green100: '#F3FCF6',
28
+ green200: '#D4F7DF',
29
+ green300: '#B1ECC5',
30
+ green400: '#8DDDA8',
31
+ green500: '#3CAA60',
32
+ green600: '#277C43',
33
+ green700: '#115026',
34
+ green800: '#093919',
35
+ white: '#FFFFFF',
36
+ grey100: '#F2F5F7',
37
+ grey200: '#E4ECF1',
38
+ grey300: '#CDDAE5',
39
+ grey400: '#BDCDDB',
40
+ grey500: '#8196A7',
41
+ grey600: '#5D7283',
42
+ grey700: '#44535F',
43
+ grey800: '#1F272D',
44
+ red100: '#FFF5F7',
45
+ red200: '#FDE2E8',
46
+ red300: '#FBD0D8',
47
+ red400: '#F792A6',
48
+ red500: '#E65B77',
49
+ red600: '#C82D4C',
50
+ red700: '#9E102C',
51
+ red800: '#630316',
52
+ yellow100: '#FFF9EB',
53
+ yellow200: '#FCEACA',
54
+ yellow300: '#F8D4A5',
55
+ yellow400: '#F2BE88',
56
+ yellow500: '#DE7921',
57
+ yellow600: '#BE501E',
58
+ yellow700: '#93320B',
59
+ yellow800: '#5F1B02'
60
+ };
61
+ const colorPaletteSecondary = {
62
+ brown: '#A6630C',
63
+ coral: '#C83243',
64
+ charcoal: '#5D7283',
65
+ indigo: '#434A93',
66
+ lemon: '#FACB66',
67
+ lime: '#308613',
68
+ pink: '#B45091',
69
+ purple: '#8A63BF',
70
+ teal: '#04867D',
71
+ turquoise: '#157CBC'
72
+ };
73
+ const lightColorList = {
74
+ backgroundPrimary: colorPalettePrimary.white,
75
+ actionDangerPrimaryBackgroundDefault: colorPalettePrimary.red600,
76
+ actionDangerPrimaryBackgroundHover: colorPalettePrimary.red700,
77
+ actionDangerPrimaryBackgroundPress: colorPalettePrimary.red800,
78
+ actionDangerDefaultBackgroundDefault: chroma(colorPalettePrimary.red600).alpha(0).hex(),
79
+ actionDangerDefaultBackgroundHover: chroma(colorPalettePrimary.red600).alpha(0.08).hex(),
80
+ actionDangerDefaultBackgroundPress: chroma(colorPalettePrimary.red600).alpha(0.16).hex(),
81
+ actionDangerDefaultBorderDefault: colorPalettePrimary.red600,
82
+ actionDangerDefaultBorderHover: colorPalettePrimary.red700,
83
+ actionDangerDefaultBorderPress: colorPalettePrimary.red800,
84
+ actionDangerDefaultTextDefault: colorPalettePrimary.red600,
85
+ actionDangerDefaultTextHover: colorPalettePrimary.red700,
86
+ actionDangerDefaultTextPress: colorPalettePrimary.red800,
87
+ actionDefaultBackgroundDefault: chroma(colorPalettePrimary.blue800).alpha(0).hex(),
88
+ actionDefaultBackgroundHover: chroma(colorPalettePrimary.blue600).alpha(0.08).hex(),
89
+ actionDefaultBackgroundPress: chroma(colorPalettePrimary.blue600).alpha(0.16).hex(),
90
+ actionDefaultBorderDefault: colorPalettePrimary.grey300,
91
+ actionDefaultBorderFocus: colorPalettePrimary.blue600,
92
+ actionDefaultBorderHover: colorPalettePrimary.blue700,
93
+ actionDefaultBorderPress: colorPalettePrimary.blue800,
94
+ actionDefaultTextDefault: colorPalettePrimary.grey800,
95
+ actionDefaultTextHover: colorPalettePrimary.blue700,
96
+ actionDefaultTextPress: colorPalettePrimary.blue800,
97
+ actionDisabledBackground: colorPalettePrimary.grey200,
98
+ actionDisabledText: colorPalettePrimary.grey400,
99
+ actionPrimaryBackgroundDefault: colorPalettePrimary.blue600,
100
+ actionPrimaryBackgroundHover: colorPalettePrimary.blue700,
101
+ actionPrimaryBackgroundPress: colorPalettePrimary.blue800,
102
+ actionPrimaryTextDefault: colorPalettePrimary.white,
103
+ actionPrimaryTextHover: colorPalettePrimary.white,
104
+ actionPrimaryTextPress: colorPalettePrimary.white,
105
+ actionTertiaryBackgroundDefault: chroma(colorPalettePrimary.blue600).alpha(0).hex(),
106
+ actionTertiaryBackgroundHover: chroma(colorPalettePrimary.blue600).alpha(0.08).hex(),
107
+ actionTertiaryBackgroundPress: chroma(colorPalettePrimary.blue600).alpha(0.16).hex(),
108
+ actionTertiaryTextDefault: colorPalettePrimary.blue600,
109
+ actionTertiaryTextHover: colorPalettePrimary.blue700,
110
+ actionTertiaryTextPress: colorPalettePrimary.blue800,
111
+ backgroundDanger: chroma(colorPalettePrimary.red100).alpha(0.08).hex(),
112
+ backgroundSecondary: colorPalettePrimary.grey100,
113
+ backgroundWarning: chroma(colorPalettePrimary.yellow100).alpha(0.08).hex(),
114
+ backgroundValidationDanger: colorPalettePrimary.red100,
115
+ backgroundValidationSuccess: colorPalettePrimary.blue100,
116
+ backgroundValidationWarning: colorPalettePrimary.yellow100,
117
+ border: colorPalettePrimary.grey300,
118
+ borderDecorative: colorPalettePrimary.grey300,
119
+ borderValidationDanger: colorPalettePrimary.red300,
120
+ borderValidationWarning: colorPalettePrimary.yellow300,
121
+ textPrimary: colorPalettePrimary.grey800,
122
+ textSecondary: colorPalettePrimary.grey600,
123
+ textPlaceholder: colorPalettePrimary.grey400,
124
+ textValidationDanger: colorPalettePrimary.red600,
125
+ textValidationSuccess: colorPalettePrimary.green600,
126
+ textValidationWarning: colorPalettePrimary.yellow600,
127
+ textValidationInfo: colorPalettePrimary.grey600,
128
+ overlayOverlay: chroma(colorPalettePrimary.grey100).alpha(0.72).hex(),
129
+ // Tags
130
+ tagDefault: chroma(colorPalettePrimary.grey600).alpha(0.08).hex(),
131
+ tagBrown: colorPaletteSecondary.brown,
132
+ tagCoral: colorPaletteSecondary.coral,
133
+ tagCharcoal: colorPalettePrimary.grey600,
134
+ tagIndigo: colorPaletteSecondary.indigo,
135
+ tagLemon: colorPaletteSecondary.lemon,
136
+ tagLime: colorPaletteSecondary.lime,
137
+ tagPink: colorPaletteSecondary.pink,
138
+ tagPurple: colorPaletteSecondary.purple,
139
+ tagTeal: colorPaletteSecondary.teal,
140
+ tagTurquoise: colorPaletteSecondary.turquoise,
141
+ tagText: colorPalettePrimary.white,
142
+ tagHover: chroma(colorPalettePrimary.blue400).alpha(0.08).hex(),
143
+ tagPress: chroma(colorPalettePrimary.blue400).alpha(0.16).hex(),
144
+ tagIconHover: chroma(colorPalettePrimary.white).alpha(0.8).hex(),
145
+ tagIconPress: chroma(colorPalettePrimary.white).alpha(0.76).hex(),
146
+ // Typography
147
+ typographyCodeBg: chroma(colorPalettePrimary.grey600).alpha(0.08).hex(),
148
+ // Table
149
+ tableRowHover: chroma(colorPalettePrimary.grey600).alpha(0.04).hex(),
150
+ tooltipBackgroundTooltip: colorPalettePrimary.grey800
151
+ };
152
+ const darkColorList = {
153
+ actionDangerPrimaryBackgroundDefault: chroma(colorPalettePrimary.red400).alpha(0.84).hex(),
154
+ actionDangerPrimaryBackgroundHover: chroma(colorPalettePrimary.red400).alpha(0.72).hex(),
155
+ actionDangerPrimaryBackgroundPress: chroma(colorPalettePrimary.red400).alpha(0.6).hex(),
156
+ actionDangerDefaultBackgroundDefault: chroma(colorPalettePrimary.red400).alpha(0).hex(),
157
+ actionDangerDefaultBackgroundHover: chroma(colorPalettePrimary.red400).alpha(0.08).hex(),
158
+ actionDangerDefaultBackgroundPress: chroma(colorPalettePrimary.red400).alpha(0.16).hex(),
159
+ actionDangerDefaultBorderDefault: colorPalettePrimary.red400,
160
+ actionDangerDefaultBorderHover: chroma(colorPalettePrimary.red400).alpha(0.72).hex(),
161
+ actionDangerDefaultBorderPress: chroma(colorPalettePrimary.red400).alpha(0.6).hex(),
162
+ actionDangerDefaultTextDefault: colorPalettePrimary.red400,
163
+ actionDangerDefaultTextHover: chroma(colorPalettePrimary.red400).alpha(0.72).hex(),
164
+ actionDangerDefaultTextPress: chroma(colorPalettePrimary.red400).alpha(0.6).hex(),
165
+ actionDefaultBackgroundDefault: chroma(colorPalettePrimary.blue400).alpha(0).hex(),
166
+ actionDefaultBackgroundHover: chroma(colorPalettePrimary.blue400).alpha(0.08).hex(),
167
+ actionDefaultBackgroundPress: chroma(colorPalettePrimary.blue400).alpha(0.16).hex(),
168
+ actionDefaultBorderDefault: chroma(colorPalettePrimary.white).alpha(0.6).hex(),
169
+ actionDefaultBorderFocus: chroma(colorPalettePrimary.blue400).alpha(0.84).hex(),
170
+ actionDefaultBorderHover: chroma(colorPalettePrimary.blue400).alpha(0.8).hex(),
171
+ actionDefaultBorderPress: chroma(colorPalettePrimary.blue400).alpha(0.76).hex(),
172
+ actionDefaultTextDefault: chroma(colorPalettePrimary.white).alpha(0.84).hex(),
173
+ actionDefaultTextHover: chroma(colorPalettePrimary.blue400).alpha(0.8).hex(),
174
+ actionDefaultTextPress: chroma(colorPalettePrimary.blue400).alpha(0.76).hex(),
175
+ actionDisabledBackground: chroma(colorPalettePrimary.white).alpha(0.24).hex(),
176
+ actionDisabledText: chroma(colorPalettePrimary.white).alpha(0.4).hex(),
177
+ actionPrimaryBackgroundDefault: chroma(colorPalettePrimary.blue400).alpha(0.84).hex(),
178
+ actionPrimaryBackgroundHover: chroma(colorPalettePrimary.blue400).alpha(0.8).hex(),
179
+ actionPrimaryBackgroundPress: chroma(colorPalettePrimary.blue400).alpha(0.76).hex(),
180
+ actionPrimaryTextDefault: colorPalettePrimary.grey800,
181
+ actionPrimaryTextHover: colorPalettePrimary.grey800,
182
+ actionPrimaryTextPress: colorPalettePrimary.grey800,
183
+ actionTertiaryBackgroundDefault: chroma(colorPalettePrimary.blue400).alpha(0).hex(),
184
+ actionTertiaryBackgroundHover: chroma(colorPalettePrimary.blue400).alpha(0.08).hex(),
185
+ actionTertiaryBackgroundPress: chroma(colorPalettePrimary.blue400).alpha(0.16).hex(),
186
+ actionTertiaryTextDefault: chroma(colorPalettePrimary.blue400).alpha(0.84).hex(),
187
+ actionTertiaryTextHover: chroma(colorPalettePrimary.blue400).alpha(0.8).hex(),
188
+ actionTertiaryTextPress: chroma(colorPalettePrimary.blue400).alpha(0.76).hex(),
189
+ backgroundPrimary: colorPalettePrimary.grey800,
190
+ backgroundSecondary: '#283035',
191
+ backgroundValidationDanger: 'transparent',
192
+ backgroundValidationSuccess: 'transparent',
193
+ backgroundValidationWarning: 'transparent',
194
+ border: chroma(colorPalettePrimary.white).alpha(0.48).hex(),
195
+ borderDecorative: chroma(colorPalettePrimary.white).alpha(0.24).hex(),
196
+ borderValidationDanger: colorPalettePrimary.red300,
197
+ borderValidationWarning: colorPalettePrimary.yellow300,
198
+ textPrimary: chroma(colorPalettePrimary.white).alpha(0.84).hex(),
199
+ textSecondary: chroma(colorPalettePrimary.white).alpha(0.6).hex(),
200
+ textPlaceholder: chroma(colorPalettePrimary.grey400).alpha(0.84).hex(),
201
+ textValidationDanger: chroma(colorPalettePrimary.red400).alpha(0.84).hex(),
202
+ textValidationSuccess: chroma(colorPalettePrimary.green400).alpha(0.84).hex(),
203
+ textValidationWarning: chroma(colorPalettePrimary.yellow400).alpha(0.84).hex(),
204
+ textValidationInfo: chroma(colorPalettePrimary.white).alpha(0.6).hex(),
205
+ overlayOverlay: chroma(colorPalettePrimary.grey800).alpha(0.72).hex(),
206
+ // Tags
207
+ tagDefault: chroma(colorPalettePrimary.white).alpha(0.16).hex(),
208
+ tagBrown: chroma(colorPaletteSecondary.brown).alpha(0.84).hex(),
209
+ tagCoral: chroma(colorPaletteSecondary.coral).alpha(0.84).hex(),
210
+ tagCharcoal: chroma(colorPalettePrimary.grey600).alpha(0.84).hex(),
211
+ tagIndigo: chroma(colorPaletteSecondary.indigo).alpha(0.84).hex(),
212
+ tagLemon: chroma(colorPaletteSecondary.lemon).alpha(0.84).hex(),
213
+ tagLime: chroma(colorPaletteSecondary.lime).alpha(0.84).hex(),
214
+ tagPink: chroma(colorPaletteSecondary.pink).alpha(0.84).hex(),
215
+ tagPurple: chroma(colorPaletteSecondary.purple).alpha(0.84).hex(),
216
+ tagTeal: chroma(colorPaletteSecondary.teal).alpha(0.84).hex(),
217
+ tagTurquoise: chroma(colorPaletteSecondary.turquoise).alpha(0.84).hex(),
218
+ tagText: chroma(colorPalettePrimary.white).alpha(0.84).hex(),
219
+ tagHover: chroma(colorPalettePrimary.blue400).alpha(0.08).hex(),
220
+ tagPress: chroma(colorPalettePrimary.blue400).alpha(0.16).hex(),
221
+ tagIconHover: chroma(colorPalettePrimary.white).alpha(0.8).hex(),
222
+ tagIconPress: chroma(colorPalettePrimary.white).alpha(0.76).hex(),
223
+ // Typography
224
+ typographyCodeBg: chroma(colorPalettePrimary.white).alpha(0.16).hex(),
225
+ // Table
226
+ tableRowHover: chroma(colorPalettePrimary.white).alpha(0.16).hex(),
227
+ tooltipBackgroundTooltip: chroma(colorPalettePrimary.white).alpha(0.6).hex(),
228
+ // Missing in list
229
+ backgroundDanger: 'rgba(200,45,76,0.08)',
230
+ backgroundWarning: 'rgba(222,121,33,0.08)'
231
+ };
232
+
233
+ const darkColors = {
234
+ ...darkColorList,
235
+ ...colorPalettePrimary,
236
+ ...colorPaletteSecondary
237
+ };
238
+ const lightColors = {
239
+ ...lightColorList,
240
+ ...colorPalettePrimary,
241
+ ...colorPaletteSecondary
242
+ };
243
+ function getSemanticColors(isDarkMode) {
244
+ return isDarkMode ? darkColors : lightColors;
245
+ }
246
+
247
+ // TODO (FEINF-1674): Remove when removing USE_NEW_RADIO_STYLES
248
+ /*
249
+ Colors that need to be replaced by semantic colors.
250
+ */
251
+ const deprecatedColors = {
252
+ // Radio Colors
253
+ radioInteractiveAvailable: colorPalettePrimary.primary,
254
+ radioInteractiveHover: '#186099',
255
+ radioInteractivePress: '#0D4F85',
256
+ radioDisabled: '#A2AEB8',
257
+ radioDefaultBorder: '#64727D',
258
+ radioDefaultBackground: '#FFFFFF',
259
+ radioInteractiveHoverSecondary: 'rgba(34, 115, 181, 0.08)',
260
+ // Fade of Interactive Available
261
+ radioInteractivePressSecondary: 'rgba(34, 115, 181, 0.16)' // Fade of Interactive Available
262
+ };
263
+
264
+ function getColors(isDarkMode) {
265
+ return {
266
+ ...deprecatedColors,
267
+ ...getSemanticColors(isDarkMode)
268
+ };
269
+ }
270
+
271
+ // eslint-disable-next-line import/no-anonymous-default-export
272
+ var antdVars = {
273
+ // IMPORTANT: Do not read this directly from components. Use `React.useContext`.
274
+ 'ant-prefix': 'du-bois'
275
+ };
276
+
277
+ const DEFAULT_SPACING_UNIT = 8;
278
+ const MODAL_PADDING = 40;
279
+ const spacing = {
280
+ xs: DEFAULT_SPACING_UNIT / 2,
281
+ sm: DEFAULT_SPACING_UNIT,
282
+ md: DEFAULT_SPACING_UNIT * 2,
283
+ lg: DEFAULT_SPACING_UNIT * 3
284
+ };
285
+
286
+ // Less variables that are used by AntD
287
+ ({
288
+ defaultPaddingLg: spacing.lg,
289
+ defaultPaddingMd: spacing.md,
290
+ defaultPaddingSm: spacing.sm,
291
+ defaultPaddingXs: spacing.sm,
292
+ defaultPaddingXss: spacing.xs,
293
+ paddingLg: spacing.md,
294
+ // TODO: Check if there is a better alternative with team
295
+ paddingMd: spacing.sm,
296
+ paddingSm: spacing.sm,
297
+ paddingXs: spacing.xs,
298
+ paddingXss: 0,
299
+ marginSm: 12,
300
+ marginLg: spacing.lg,
301
+ // Button
302
+ btnPaddingHorizontalBase: DEFAULT_SPACING_UNIT * 2,
303
+ btnPaddingHorizontalLg: DEFAULT_SPACING_UNIT * 2,
304
+ btnPaddingHorizontalSm: DEFAULT_SPACING_UNIT * 2,
305
+ // Input
306
+ inputPaddingHorizontal: DEFAULT_SPACING_UNIT * 1.5,
307
+ inputPaddingHorizontalBase: DEFAULT_SPACING_UNIT * 1.5,
308
+ inputPaddingHorizontalSm: DEFAULT_SPACING_UNIT * 1.5,
309
+ inputPaddingHorizontalLg: DEFAULT_SPACING_UNIT * 1.5,
310
+ inputPaddingVertical: spacing.xs + 1,
311
+ inputPaddingVerticalBase: spacing.xs + 1,
312
+ inputPaddingVerticalSm: spacing.xs + 1,
313
+ inputPaddingVerticalLg: spacing.xs + 1,
314
+ // Modal
315
+ modalPadding: MODAL_PADDING,
316
+ modalLessPadding: MODAL_PADDING - 20,
317
+ modalHeaderPadding: `${MODAL_PADDING}px ${MODAL_PADDING}px ${MODAL_PADDING - 20}px`,
318
+ modalHeaderCloseSize: MODAL_PADDING * 2 + 22,
319
+ modalHeaderBorderWidth: 0,
320
+ modalBodyPadding: `0 ${MODAL_PADDING}px`,
321
+ modalFooterPaddingVertical: 0,
322
+ modalFooterPaddingHorizontal: 0,
323
+ modalFooterBorderWidth: 0,
324
+ // Switch
325
+ switchPadding: 0,
326
+ switchHeight: 16,
327
+ switchMinWidth: 28,
328
+ switchPinSize: 14
329
+ });
330
+ var spacing$1 = spacing;
331
+
332
+ const heightBase = 40;
333
+ const borderWidth = 1;
334
+ const antdGeneralVariables = {
335
+ classnamePrefix: antdVars['ant-prefix'],
336
+ iconfontCssPrefix: 'anticon',
337
+ borderRadiusBase: 4,
338
+ borderWidth: borderWidth,
339
+ heightSm: 32,
340
+ heightBase: heightBase,
341
+ iconSize: 24,
342
+ // TODO (FEINF-1545): Update with icon overhaul to 16px
343
+ iconFontSize: 13,
344
+ iconFontSizeNew: 16,
345
+ buttonHeight: heightBase,
346
+ // Height available within button (for label and icon). Same for middle and small buttons.
347
+ buttonInnerHeight: heightBase - spacing$1.sm * 2 - borderWidth * 2
348
+ };
349
+ const getShadowVariables = isDarkMode => {
350
+ if (isDarkMode) {
351
+ return {
352
+ shadowLow: '0px 4px 16px rgba(0, 0, 0, 0.12)',
353
+ shadowHigh: '0px 8px 24px rgba(0, 0, 0, 0.2);'
354
+ };
355
+ } else {
356
+ return {
357
+ shadowLow: '0px 4px 16px rgba(31, 39, 45, 0.12)',
358
+ shadowHigh: '0px 8px 24px rgba(31, 39, 45, 0.2)'
359
+ };
360
+ }
361
+ };
362
+ var generalVariables = antdGeneralVariables;
363
+
364
+ const FONT_SIZE_BASE = 13;
365
+
366
+ // Less variables that are used by AntD
367
+ const antdTypography = {
368
+ fontSizeSm: 12,
369
+ fontSizeBase: FONT_SIZE_BASE,
370
+ fontSizeMd: FONT_SIZE_BASE,
371
+ fontSizeLg: 18,
372
+ fontSizeXl: 22,
373
+ fontSizeXxl: 32,
374
+ lineHeightSm: '16px',
375
+ lineHeightBase: '20px',
376
+ lineHeightMd: '20px',
377
+ lineHeightLg: '24px',
378
+ lineHeightXl: '28px',
379
+ lineHeightXxl: '40px',
380
+ typographyBoldFontWeight: 600
381
+ };
382
+
383
+ // eslint-disable-next-line import/no-anonymous-default-export
384
+ var typography = {
385
+ ...antdTypography
386
+ };
387
+
388
+ const defaultOptions = {
389
+ enableAnimation: false,
390
+ zIndexBase: 1000
391
+ };
392
+
393
+ // Function to get variables for a certain theme.
394
+ // End users should use useDesignSystemTheme instead.
395
+ function getTheme(isDarkMode) {
396
+ let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultOptions;
397
+ return {
398
+ colors: getColors(isDarkMode),
399
+ spacing: spacing$1,
400
+ general: {
401
+ ...generalVariables,
402
+ ...getShadowVariables(isDarkMode)
403
+ },
404
+ typography,
405
+ borders: borders$1,
406
+ isDarkMode,
407
+ options
408
+ };
409
+ }
410
+
411
+ function getClassNamePrefix(theme) {
412
+ const antdThemeName = theme.isDarkMode ? 'dark' : 'light';
413
+ return `${theme.general.classnamePrefix}-${antdThemeName}`;
414
+ }
415
+ function getPrefixedClassNameFromTheme(theme, className) {
416
+ return [getClassNamePrefix(theme), className].filter(Boolean).join('-');
417
+ }
418
+ function useDesignSystemTheme() {
419
+ const emotionTheme = useTheme();
420
+ // Graceful fallback to default theme in case a test or developer forgot context.
421
+ const theme = emotionTheme && emotionTheme.general ? emotionTheme : getTheme(false);
422
+ return {
423
+ theme: theme,
424
+ classNamePrefix: getClassNamePrefix(theme),
425
+ getPrefixedClassName: className => getPrefixedClassNameFromTheme(theme, className)
426
+ };
427
+ }
428
+ // This is a simple typed HOC wrapper around the useDesignSystemTheme hook, for use in older react components.
429
+ function WithDesignSystemThemeHoc(Component) {
430
+ return function WrappedWithDesignSystemTheme(props) {
431
+ const themeValues = useDesignSystemTheme();
432
+ return jsx(Component, {
433
+ ...props,
434
+ designSystemThemeApi: themeValues
435
+ });
436
+ };
437
+ }
438
+
439
+ export { WithDesignSystemThemeHoc as W, getClassNamePrefix as a, getPrefixedClassNameFromTheme as b, getTheme as g, lightColorList as l, useDesignSystemTheme as u };
440
+ //# sourceMappingURL=useDesignSystemTheme-3d2c1acb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDesignSystemTheme-3d2c1acb.js","sources":["../src/theme/borders.ts","../src/theme/colorList.ts","../src/theme/colors.ts","../src/antd-vars.ts","../src/theme/spacing.ts","../src/theme/generalVariables.ts","../src/theme/typography.ts","../src/theme/index.ts","../src/design-system/Hooks/useDesignSystemTheme.tsx"],"sourcesContent":["// Border variables\nexport const borders = {\n borderRadiusMd: 4,\n};\n\n// eslint-disable-next-line import/no-anonymous-default-export\nexport default {\n ...borders,\n};\n","import chroma from 'chroma-js';\n\nexport type ColorName = 'blue' | 'green' | 'grey' | 'red' | 'yellow';\n\nexport type ColorWeight = 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800;\n\nexport type PrimaryColorToken = `${ColorName}${ColorWeight}` | 'primary' | 'white';\n\nexport type SecondaryColorToken =\n | 'brown'\n | 'coral'\n | 'charcoal'\n | 'indigo'\n | 'lemon'\n | 'lime'\n | 'pink'\n | 'purple'\n | 'teal'\n | 'turquoise';\n\nexport type TagColorToken = `tag${Capitalize<SecondaryColorToken>}` | 'tagDefault';\n\ntype ColorPalettePrimary = Record<PrimaryColorToken, string>;\n\ntype ColorPaletteSecondary = Record<SecondaryColorToken, string>;\n\n// Exported from go/designsystem/colorsheet\nexport const colorPalettePrimary: ColorPalettePrimary = {\n primary: '#2272B4',\n blue100: '#F0F8FF',\n blue200: '#D7EDFE',\n blue300: '#BAE1FC',\n blue400: '#8FCDFF',\n blue500: '#4299E0',\n blue600: '#2272B4',\n blue700: '#0E538B',\n blue800: '#04355D',\n green100: '#F3FCF6',\n green200: '#D4F7DF',\n green300: '#B1ECC5',\n green400: '#8DDDA8',\n green500: '#3CAA60',\n green600: '#277C43',\n green700: '#115026',\n green800: '#093919',\n white: '#FFFFFF',\n grey100: '#F2F5F7',\n grey200: '#E4ECF1',\n grey300: '#CDDAE5',\n grey400: '#BDCDDB',\n grey500: '#8196A7',\n grey600: '#5D7283',\n grey700: '#44535F',\n grey800: '#1F272D',\n red100: '#FFF5F7',\n red200: '#FDE2E8',\n red300: '#FBD0D8',\n red400: '#F792A6',\n red500: '#E65B77',\n red600: '#C82D4C',\n red700: '#9E102C',\n red800: '#630316',\n yellow100: '#FFF9EB',\n yellow200: '#FCEACA',\n yellow300: '#F8D4A5',\n yellow400: '#F2BE88',\n yellow500: '#DE7921',\n yellow600: '#BE501E',\n yellow700: '#93320B',\n yellow800: '#5F1B02',\n};\n\nexport const colorPaletteSecondary: ColorPaletteSecondary = {\n brown: '#A6630C',\n coral: '#C83243',\n charcoal: '#5D7283',\n indigo: '#434A93',\n lemon: '#FACB66',\n lime: '#308613',\n pink: '#B45091',\n purple: '#8A63BF',\n teal: '#04867D',\n turquoise: '#157CBC',\n};\n\nexport const lightColorList = {\n backgroundPrimary: colorPalettePrimary.white,\n\n actionDangerPrimaryBackgroundDefault: colorPalettePrimary.red600,\n actionDangerPrimaryBackgroundHover: colorPalettePrimary.red700,\n actionDangerPrimaryBackgroundPress: colorPalettePrimary.red800,\n\n actionDangerDefaultBackgroundDefault: chroma(colorPalettePrimary.red600).alpha(0).hex(),\n actionDangerDefaultBackgroundHover: chroma(colorPalettePrimary.red600).alpha(0.08).hex(),\n actionDangerDefaultBackgroundPress: chroma(colorPalettePrimary.red600).alpha(0.16).hex(),\n\n actionDangerDefaultBorderDefault: colorPalettePrimary.red600,\n actionDangerDefaultBorderHover: colorPalettePrimary.red700,\n actionDangerDefaultBorderPress: colorPalettePrimary.red800,\n\n actionDangerDefaultTextDefault: colorPalettePrimary.red600,\n actionDangerDefaultTextHover: colorPalettePrimary.red700,\n actionDangerDefaultTextPress: colorPalettePrimary.red800,\n\n actionDefaultBackgroundDefault: chroma(colorPalettePrimary.blue800).alpha(0).hex(),\n actionDefaultBackgroundHover: chroma(colorPalettePrimary.blue600).alpha(0.08).hex(),\n actionDefaultBackgroundPress: chroma(colorPalettePrimary.blue600).alpha(0.16).hex(),\n\n actionDefaultBorderDefault: colorPalettePrimary.grey300,\n actionDefaultBorderFocus: colorPalettePrimary.blue600,\n actionDefaultBorderHover: colorPalettePrimary.blue700,\n actionDefaultBorderPress: colorPalettePrimary.blue800,\n\n actionDefaultTextDefault: colorPalettePrimary.grey800,\n actionDefaultTextHover: colorPalettePrimary.blue700,\n actionDefaultTextPress: colorPalettePrimary.blue800,\n\n actionDisabledBackground: colorPalettePrimary.grey200,\n actionDisabledText: colorPalettePrimary.grey400,\n\n actionPrimaryBackgroundDefault: colorPalettePrimary.blue600,\n actionPrimaryBackgroundHover: colorPalettePrimary.blue700,\n actionPrimaryBackgroundPress: colorPalettePrimary.blue800,\n\n actionPrimaryTextDefault: colorPalettePrimary.white,\n actionPrimaryTextHover: colorPalettePrimary.white,\n actionPrimaryTextPress: colorPalettePrimary.white,\n\n actionTertiaryBackgroundDefault: chroma(colorPalettePrimary.blue600).alpha(0).hex(),\n actionTertiaryBackgroundHover: chroma(colorPalettePrimary.blue600).alpha(0.08).hex(),\n actionTertiaryBackgroundPress: chroma(colorPalettePrimary.blue600).alpha(0.16).hex(),\n\n actionTertiaryTextDefault: colorPalettePrimary.blue600,\n actionTertiaryTextHover: colorPalettePrimary.blue700,\n actionTertiaryTextPress: colorPalettePrimary.blue800,\n\n backgroundDanger: chroma(colorPalettePrimary.red100).alpha(0.08).hex(),\n backgroundSecondary: colorPalettePrimary.grey100,\n backgroundWarning: chroma(colorPalettePrimary.yellow100).alpha(0.08).hex(),\n\n backgroundValidationDanger: colorPalettePrimary.red100,\n backgroundValidationSuccess: colorPalettePrimary.blue100,\n backgroundValidationWarning: colorPalettePrimary.yellow100,\n\n border: colorPalettePrimary.grey300,\n borderDecorative: colorPalettePrimary.grey300,\n\n borderValidationDanger: colorPalettePrimary.red300,\n borderValidationWarning: colorPalettePrimary.yellow300,\n\n textPrimary: colorPalettePrimary.grey800,\n textSecondary: colorPalettePrimary.grey600,\n textPlaceholder: colorPalettePrimary.grey400,\n\n textValidationDanger: colorPalettePrimary.red600,\n textValidationSuccess: colorPalettePrimary.green600,\n textValidationWarning: colorPalettePrimary.yellow600,\n textValidationInfo: colorPalettePrimary.grey600,\n\n overlayOverlay: chroma(colorPalettePrimary.grey100).alpha(0.72).hex(),\n\n // Tags\n tagDefault: chroma(colorPalettePrimary.grey600).alpha(0.08).hex(),\n tagBrown: colorPaletteSecondary.brown,\n tagCoral: colorPaletteSecondary.coral,\n tagCharcoal: colorPalettePrimary.grey600,\n tagIndigo: colorPaletteSecondary.indigo,\n tagLemon: colorPaletteSecondary.lemon,\n tagLime: colorPaletteSecondary.lime,\n tagPink: colorPaletteSecondary.pink,\n tagPurple: colorPaletteSecondary.purple,\n tagTeal: colorPaletteSecondary.teal,\n tagTurquoise: colorPaletteSecondary.turquoise,\n tagText: colorPalettePrimary.white,\n tagHover: chroma(colorPalettePrimary.blue400).alpha(0.08).hex(),\n tagPress: chroma(colorPalettePrimary.blue400).alpha(0.16).hex(),\n tagIconHover: chroma(colorPalettePrimary.white).alpha(0.8).hex(),\n tagIconPress: chroma(colorPalettePrimary.white).alpha(0.76).hex(),\n\n // Typography\n typographyCodeBg: chroma(colorPalettePrimary.grey600).alpha(0.08).hex(),\n\n // Table\n tableRowHover: chroma(colorPalettePrimary.grey600).alpha(0.04).hex(),\n\n tooltipBackgroundTooltip: colorPalettePrimary.grey800,\n};\n\nexport const darkColorList: typeof lightColorList = {\n actionDangerPrimaryBackgroundDefault: chroma(colorPalettePrimary.red400).alpha(0.84).hex(),\n actionDangerPrimaryBackgroundHover: chroma(colorPalettePrimary.red400).alpha(0.72).hex(),\n actionDangerPrimaryBackgroundPress: chroma(colorPalettePrimary.red400).alpha(0.6).hex(),\n\n actionDangerDefaultBackgroundDefault: chroma(colorPalettePrimary.red400).alpha(0).hex(),\n actionDangerDefaultBackgroundHover: chroma(colorPalettePrimary.red400).alpha(0.08).hex(),\n actionDangerDefaultBackgroundPress: chroma(colorPalettePrimary.red400).alpha(0.16).hex(),\n\n actionDangerDefaultBorderDefault: colorPalettePrimary.red400,\n actionDangerDefaultBorderHover: chroma(colorPalettePrimary.red400).alpha(0.72).hex(),\n actionDangerDefaultBorderPress: chroma(colorPalettePrimary.red400).alpha(0.6).hex(),\n\n actionDangerDefaultTextDefault: colorPalettePrimary.red400,\n actionDangerDefaultTextHover: chroma(colorPalettePrimary.red400).alpha(0.72).hex(),\n actionDangerDefaultTextPress: chroma(colorPalettePrimary.red400).alpha(0.6).hex(),\n\n actionDefaultBackgroundDefault: chroma(colorPalettePrimary.blue400).alpha(0).hex(),\n actionDefaultBackgroundHover: chroma(colorPalettePrimary.blue400).alpha(0.08).hex(),\n actionDefaultBackgroundPress: chroma(colorPalettePrimary.blue400).alpha(0.16).hex(),\n\n actionDefaultBorderDefault: chroma(colorPalettePrimary.white).alpha(0.6).hex(),\n actionDefaultBorderFocus: chroma(colorPalettePrimary.blue400).alpha(0.84).hex(),\n actionDefaultBorderHover: chroma(colorPalettePrimary.blue400).alpha(0.8).hex(),\n actionDefaultBorderPress: chroma(colorPalettePrimary.blue400).alpha(0.76).hex(),\n\n actionDefaultTextDefault: chroma(colorPalettePrimary.white).alpha(0.84).hex(),\n actionDefaultTextHover: chroma(colorPalettePrimary.blue400).alpha(0.8).hex(),\n actionDefaultTextPress: chroma(colorPalettePrimary.blue400).alpha(0.76).hex(),\n\n actionDisabledBackground: chroma(colorPalettePrimary.white).alpha(0.24).hex(),\n actionDisabledText: chroma(colorPalettePrimary.white).alpha(0.4).hex(),\n\n actionPrimaryBackgroundDefault: chroma(colorPalettePrimary.blue400).alpha(0.84).hex(),\n actionPrimaryBackgroundHover: chroma(colorPalettePrimary.blue400).alpha(0.8).hex(),\n actionPrimaryBackgroundPress: chroma(colorPalettePrimary.blue400).alpha(0.76).hex(),\n\n actionPrimaryTextDefault: colorPalettePrimary.grey800,\n actionPrimaryTextHover: colorPalettePrimary.grey800,\n actionPrimaryTextPress: colorPalettePrimary.grey800,\n\n actionTertiaryBackgroundDefault: chroma(colorPalettePrimary.blue400).alpha(0).hex(),\n actionTertiaryBackgroundHover: chroma(colorPalettePrimary.blue400).alpha(0.08).hex(),\n actionTertiaryBackgroundPress: chroma(colorPalettePrimary.blue400).alpha(0.16).hex(),\n\n actionTertiaryTextDefault: chroma(colorPalettePrimary.blue400).alpha(0.84).hex(),\n actionTertiaryTextHover: chroma(colorPalettePrimary.blue400).alpha(0.8).hex(),\n actionTertiaryTextPress: chroma(colorPalettePrimary.blue400).alpha(0.76).hex(),\n\n backgroundPrimary: colorPalettePrimary.grey800,\n backgroundSecondary: '#283035',\n\n backgroundValidationDanger: 'transparent',\n backgroundValidationSuccess: 'transparent',\n backgroundValidationWarning: 'transparent',\n\n border: chroma(colorPalettePrimary.white).alpha(0.48).hex(),\n borderDecorative: chroma(colorPalettePrimary.white).alpha(0.24).hex(),\n\n borderValidationDanger: colorPalettePrimary.red300,\n borderValidationWarning: colorPalettePrimary.yellow300,\n\n textPrimary: chroma(colorPalettePrimary.white).alpha(0.84).hex(),\n textSecondary: chroma(colorPalettePrimary.white).alpha(0.6).hex(),\n textPlaceholder: chroma(colorPalettePrimary.grey400).alpha(0.84).hex(),\n\n textValidationDanger: chroma(colorPalettePrimary.red400).alpha(0.84).hex(),\n textValidationSuccess: chroma(colorPalettePrimary.green400).alpha(0.84).hex(),\n textValidationWarning: chroma(colorPalettePrimary.yellow400).alpha(0.84).hex(),\n textValidationInfo: chroma(colorPalettePrimary.white).alpha(0.6).hex(),\n\n overlayOverlay: chroma(colorPalettePrimary.grey800).alpha(0.72).hex(),\n\n // Tags\n tagDefault: chroma(colorPalettePrimary.white).alpha(0.16).hex(),\n tagBrown: chroma(colorPaletteSecondary.brown).alpha(0.84).hex(),\n tagCoral: chroma(colorPaletteSecondary.coral).alpha(0.84).hex(),\n tagCharcoal: chroma(colorPalettePrimary.grey600).alpha(0.84).hex(),\n tagIndigo: chroma(colorPaletteSecondary.indigo).alpha(0.84).hex(),\n tagLemon: chroma(colorPaletteSecondary.lemon).alpha(0.84).hex(),\n tagLime: chroma(colorPaletteSecondary.lime).alpha(0.84).hex(),\n tagPink: chroma(colorPaletteSecondary.pink).alpha(0.84).hex(),\n tagPurple: chroma(colorPaletteSecondary.purple).alpha(0.84).hex(),\n tagTeal: chroma(colorPaletteSecondary.teal).alpha(0.84).hex(),\n tagTurquoise: chroma(colorPaletteSecondary.turquoise).alpha(0.84).hex(),\n tagText: chroma(colorPalettePrimary.white).alpha(0.84).hex(),\n tagHover: chroma(colorPalettePrimary.blue400).alpha(0.08).hex(),\n tagPress: chroma(colorPalettePrimary.blue400).alpha(0.16).hex(),\n tagIconHover: chroma(colorPalettePrimary.white).alpha(0.8).hex(),\n tagIconPress: chroma(colorPalettePrimary.white).alpha(0.76).hex(),\n\n // Typography\n typographyCodeBg: chroma(colorPalettePrimary.white).alpha(0.16).hex(),\n\n // Table\n tableRowHover: chroma(colorPalettePrimary.white).alpha(0.16).hex(),\n\n tooltipBackgroundTooltip: chroma(colorPalettePrimary.white).alpha(0.6).hex(),\n // Missing in list\n backgroundDanger: 'rgba(200,45,76,0.08)',\n backgroundWarning: 'rgba(222,121,33,0.08)',\n};\n","import { colorPalettePrimary, colorPaletteSecondary, darkColorList, lightColorList } from './colorList';\n\nconst darkColors = { ...darkColorList, ...colorPalettePrimary, ...colorPaletteSecondary };\nconst lightColors = { ...lightColorList, ...colorPalettePrimary, ...colorPaletteSecondary };\ntype DesignSystemColors = typeof lightColors;\n\nfunction getSemanticColors(isDarkMode: boolean): DesignSystemColors {\n return isDarkMode ? darkColors : lightColors;\n}\n\nexport interface AntdColors {\n bodyBackground: string;\n textColor: string;\n textColorSecondary: string;\n primaryColor: string;\n infoColor: string;\n errorColor: string;\n successColor: string;\n warningColor: string;\n borderColorBase: string;\n\n alertErrorTextColor: string;\n alertErrorBgColor: string;\n alertErrorIconColor: string;\n alertErrorBorderColor: string;\n\n alertInfoBgColor: string;\n alertInfoIconColor: string;\n alertInfoTextColor: string;\n alertInfoBorderColor: string;\n\n alertWarningTextColor: string;\n alertWarningBorderColor: string;\n alertWarningBgColor: string;\n alertWarningIconColor: string;\n\n alertTextColor: string;\n alertMessageColor: string;\n\n spinDotDefault: string;\n}\n\n// Maps Dubois colors to AntD names\nexport function getAntdColors(isDarkMode: boolean): AntdColors {\n const semanticColors = getSemanticColors(isDarkMode);\n return {\n bodyBackground: semanticColors.backgroundPrimary,\n textColor: semanticColors.textPrimary,\n textColorSecondary: semanticColors.textSecondary,\n primaryColor: semanticColors.primary,\n infoColor: '#64727D',\n errorColor: semanticColors.actionDangerPrimaryBackgroundDefault,\n successColor: '#34824F',\n warningColor: '#AF5B23',\n borderColorBase: semanticColors.border,\n\n // Alert colors (AntD variables)\n alertErrorTextColor: semanticColors.textValidationDanger,\n alertErrorBorderColor: semanticColors.red300,\n alertErrorBgColor: semanticColors.red100,\n alertErrorIconColor: semanticColors.textValidationDanger,\n\n alertInfoTextColor: semanticColors.textPrimary,\n alertInfoBorderColor: semanticColors.borderDecorative,\n alertInfoBgColor: semanticColors.backgroundSecondary,\n alertInfoIconColor: semanticColors.textSecondary,\n\n alertWarningTextColor: semanticColors.textValidationWarning,\n alertWarningBorderColor: semanticColors.yellow300,\n alertWarningBgColor: semanticColors.yellow100,\n alertWarningIconColor: semanticColors.textValidationWarning,\n\n ...(isDarkMode && {\n alertErrorBgColor: 'transparent',\n alertInfoBgColor: 'transparent',\n alertWarningBgColor: 'transparent',\n }),\n\n alertTextColor: 'inherit',\n alertMessageColor: 'inherit',\n\n spinDotDefault: semanticColors.textSecondary,\n };\n}\n\n// TODO (FEINF-1674): Remove when removing USE_NEW_RADIO_STYLES\n/*\nColors that need to be replaced by semantic colors.\n */\nconst deprecatedColors = {\n // Radio Colors\n radioInteractiveAvailable: colorPalettePrimary.primary,\n radioInteractiveHover: '#186099',\n radioInteractivePress: '#0D4F85',\n radioDisabled: '#A2AEB8',\n radioDefaultBorder: '#64727D',\n radioDefaultBackground: '#FFFFFF',\n radioInteractiveHoverSecondary: 'rgba(34, 115, 181, 0.08)', // Fade of Interactive Available\n radioInteractivePressSecondary: 'rgba(34, 115, 181, 0.16)', // Fade of Interactive Available\n};\n\nexport function getColors(isDarkMode: boolean): typeof deprecatedColors & DesignSystemColors {\n return {\n ...deprecatedColors,\n ...getSemanticColors(isDarkMode),\n };\n}\n","// eslint-disable-next-line import/no-anonymous-default-export\nexport default {\n // IMPORTANT: Do not read this directly from components. Use `React.useContext`.\n 'ant-prefix': 'du-bois',\n};\n","const DEFAULT_SPACING_UNIT = 8;\nexport const MODAL_PADDING = 40;\n\nconst spacing = {\n xs: DEFAULT_SPACING_UNIT / 2,\n sm: DEFAULT_SPACING_UNIT,\n md: DEFAULT_SPACING_UNIT * 2,\n lg: DEFAULT_SPACING_UNIT * 3,\n};\n\n// Less variables that are used by AntD\nexport const antdSpacing = {\n defaultPaddingLg: spacing.lg,\n defaultPaddingMd: spacing.md,\n defaultPaddingSm: spacing.sm,\n defaultPaddingXs: spacing.sm,\n defaultPaddingXss: spacing.xs,\n paddingLg: spacing.md,\n // TODO: Check if there is a better alternative with team\n paddingMd: spacing.sm,\n paddingSm: spacing.sm,\n paddingXs: spacing.xs,\n paddingXss: 0,\n marginSm: 12,\n marginLg: spacing.lg,\n\n // Button\n btnPaddingHorizontalBase: DEFAULT_SPACING_UNIT * 2,\n btnPaddingHorizontalLg: DEFAULT_SPACING_UNIT * 2,\n btnPaddingHorizontalSm: DEFAULT_SPACING_UNIT * 2,\n\n // Input\n inputPaddingHorizontal: DEFAULT_SPACING_UNIT * 1.5,\n inputPaddingHorizontalBase: DEFAULT_SPACING_UNIT * 1.5,\n inputPaddingHorizontalSm: DEFAULT_SPACING_UNIT * 1.5,\n inputPaddingHorizontalLg: DEFAULT_SPACING_UNIT * 1.5,\n\n inputPaddingVertical: spacing.xs + 1,\n inputPaddingVerticalBase: spacing.xs + 1,\n inputPaddingVerticalSm: spacing.xs + 1,\n inputPaddingVerticalLg: spacing.xs + 1,\n\n // Modal\n modalPadding: MODAL_PADDING,\n modalLessPadding: MODAL_PADDING - 20,\n modalHeaderPadding: `${MODAL_PADDING}px ${MODAL_PADDING}px ${MODAL_PADDING - 20}px`,\n modalHeaderCloseSize: MODAL_PADDING * 2 + 22,\n modalHeaderBorderWidth: 0,\n modalBodyPadding: `0 ${MODAL_PADDING}px`,\n modalFooterPaddingVertical: 0,\n modalFooterPaddingHorizontal: 0,\n modalFooterBorderWidth: 0,\n\n // Switch\n switchPadding: 0,\n switchHeight: 16,\n switchMinWidth: 28,\n switchPinSize: 14,\n};\n\nexport default spacing;\n","import antdVars from '../antd-vars';\nimport spacing from './spacing';\n\nconst heightBase = 40;\nconst borderWidth = 1;\n\nconst antdGeneralVariables = {\n classnamePrefix: antdVars['ant-prefix'],\n iconfontCssPrefix: 'anticon',\n borderRadiusBase: 4,\n borderWidth: borderWidth,\n heightSm: 32,\n heightBase: heightBase,\n iconSize: 24,\n // TODO (FEINF-1545): Update with icon overhaul to 16px\n iconFontSize: 13,\n iconFontSizeNew: 16,\n buttonHeight: heightBase,\n // Height available within button (for label and icon). Same for middle and small buttons.\n buttonInnerHeight: heightBase - spacing.sm * 2 - borderWidth * 2,\n};\n\nexport const getShadowVariables = (isDarkMode: boolean) => {\n if (isDarkMode) {\n return {\n shadowLow: '0px 4px 16px rgba(0, 0, 0, 0.12)',\n shadowHigh: '0px 8px 24px rgba(0, 0, 0, 0.2);',\n };\n } else {\n return {\n shadowLow: '0px 4px 16px rgba(31, 39, 45, 0.12)',\n shadowHigh: '0px 8px 24px rgba(31, 39, 45, 0.2)',\n };\n }\n};\n\nexport default antdGeneralVariables;\n","const FONT_SIZE_BASE = 13;\n\n// Less variables that are used by AntD\nexport const antdTypography = {\n fontSizeSm: 12,\n fontSizeBase: FONT_SIZE_BASE,\n fontSizeMd: FONT_SIZE_BASE,\n fontSizeLg: 18,\n fontSizeXl: 22,\n fontSizeXxl: 32,\n lineHeightSm: '16px',\n lineHeightBase: '20px',\n lineHeightMd: '20px',\n lineHeightLg: '24px',\n lineHeightXl: '28px',\n lineHeightXxl: '40px',\n typographyBoldFontWeight: 600,\n};\n\n// eslint-disable-next-line import/no-anonymous-default-export\nexport default {\n ...antdTypography,\n};\n","import borders from './borders';\nimport { getColors } from './colors';\nimport generalVariables, { getShadowVariables } from './generalVariables';\nimport spacing from './spacing';\nimport typography from './typography';\n\nexport type ComponentTheme = ReturnType<typeof getTheme>;\n\nexport interface ThemeOptions {\n enableAnimation: boolean;\n zIndexBase: number;\n}\n\nexport interface Theme {\n colors: ReturnType<typeof getColors>;\n spacing: typeof spacing;\n general: typeof generalVariables & ReturnType<typeof getShadowVariables>;\n typography: typeof typography;\n borders: typeof borders;\n isDarkMode: boolean;\n options: ThemeOptions;\n}\n\nconst defaultOptions: ThemeOptions = {\n enableAnimation: false,\n zIndexBase: 1000,\n};\n\n// Function to get variables for a certain theme.\n// End users should use useDesignSystemTheme instead.\nexport function getTheme(isDarkMode: boolean, options: ThemeOptions = defaultOptions): Theme {\n return {\n colors: getColors(isDarkMode),\n spacing,\n general: {\n ...generalVariables,\n ...getShadowVariables(isDarkMode),\n },\n typography,\n borders,\n isDarkMode,\n options,\n };\n}\n","import { useTheme as useEmotionTheme } from '@emotion/react';\nimport type { ReactElement } from 'react';\nimport React from 'react';\n\nimport type { Theme } from '../../theme';\nimport { getTheme } from '../../theme';\n\nexport interface DesignSystemThemeInterface {\n /** Theme object that contains colors, spacing, and other variables **/\n theme: Theme;\n /** Prefix that is used in front of each className. **/\n classNamePrefix: string;\n /** Helper method that use be used to construct the full className of an underlying AntD className.\n * Use with caution and prefer emotion.js when possible **/\n getPrefixedClassName: (className: string) => string;\n}\n\nexport function getClassNamePrefix(theme: Theme): string {\n const antdThemeName = theme.isDarkMode ? 'dark' : 'light';\n return `${theme.general.classnamePrefix}-${antdThemeName}`;\n}\n\nexport function getPrefixedClassNameFromTheme(theme: Theme, className: string | null | undefined): string {\n return [getClassNamePrefix(theme), className].filter(Boolean).join('-');\n}\n\nexport function useDesignSystemTheme(): DesignSystemThemeInterface {\n const emotionTheme = useEmotionTheme() as Theme;\n // Graceful fallback to default theme in case a test or developer forgot context.\n const theme = emotionTheme && emotionTheme.general ? emotionTheme : getTheme(false);\n\n return {\n theme: theme,\n classNamePrefix: getClassNamePrefix(theme),\n getPrefixedClassName: (className: string) => getPrefixedClassNameFromTheme(theme, className),\n };\n}\n\nexport type DesignSystemHocProps = { designSystemThemeApi: DesignSystemThemeInterface };\n\n// This is a simple typed HOC wrapper around the useDesignSystemTheme hook, for use in older react components.\nexport function WithDesignSystemThemeHoc<P>(Component: React.ComponentType<P & DesignSystemHocProps>) {\n return function WrappedWithDesignSystemTheme(props: P): ReactElement {\n const themeValues = useDesignSystemTheme();\n\n return <Component {...props} designSystemThemeApi={themeValues} />;\n };\n}\n"],"names":["borders","borderRadiusMd","colorPalettePrimary","primary","blue100","blue200","blue300","blue400","blue500","blue600","blue700","blue800","green100","green200","green300","green400","green500","green600","green700","green800","white","grey100","grey200","grey300","grey400","grey500","grey600","grey700","grey800","red100","red200","red300","red400","red500","red600","red700","red800","yellow100","yellow200","yellow300","yellow400","yellow500","yellow600","yellow700","yellow800","colorPaletteSecondary","brown","coral","charcoal","indigo","lemon","lime","pink","purple","teal","turquoise","lightColorList","backgroundPrimary","actionDangerPrimaryBackgroundDefault","actionDangerPrimaryBackgroundHover","actionDangerPrimaryBackgroundPress","actionDangerDefaultBackgroundDefault","chroma","alpha","hex","actionDangerDefaultBackgroundHover","actionDangerDefaultBackgroundPress","actionDangerDefaultBorderDefault","actionDangerDefaultBorderHover","actionDangerDefaultBorderPress","actionDangerDefaultTextDefault","actionDangerDefaultTextHover","actionDangerDefaultTextPress","actionDefaultBackgroundDefault","actionDefaultBackgroundHover","actionDefaultBackgroundPress","actionDefaultBorderDefault","actionDefaultBorderFocus","actionDefaultBorderHover","actionDefaultBorderPress","actionDefaultTextDefault","actionDefaultTextHover","actionDefaultTextPress","actionDisabledBackground","actionDisabledText","actionPrimaryBackgroundDefault","actionPrimaryBackgroundHover","actionPrimaryBackgroundPress","actionPrimaryTextDefault","actionPrimaryTextHover","actionPrimaryTextPress","actionTertiaryBackgroundDefault","actionTertiaryBackgroundHover","actionTertiaryBackgroundPress","actionTertiaryTextDefault","actionTertiaryTextHover","actionTertiaryTextPress","backgroundDanger","backgroundSecondary","backgroundWarning","backgroundValidationDanger","backgroundValidationSuccess","backgroundValidationWarning","border","borderDecorative","borderValidationDanger","borderValidationWarning","textPrimary","textSecondary","textPlaceholder","textValidationDanger","textValidationSuccess","textValidationWarning","textValidationInfo","overlayOverlay","tagDefault","tagBrown","tagCoral","tagCharcoal","tagIndigo","tagLemon","tagLime","tagPink","tagPurple","tagTeal","tagTurquoise","tagText","tagHover","tagPress","tagIconHover","tagIconPress","typographyCodeBg","tableRowHover","tooltipBackgroundTooltip","darkColorList","darkColors","lightColors","getSemanticColors","isDarkMode","deprecatedColors","radioInteractiveAvailable","radioInteractiveHover","radioInteractivePress","radioDisabled","radioDefaultBorder","radioDefaultBackground","radioInteractiveHoverSecondary","radioInteractivePressSecondary","getColors","DEFAULT_SPACING_UNIT","MODAL_PADDING","spacing","xs","sm","md","lg","defaultPaddingLg","defaultPaddingMd","defaultPaddingSm","defaultPaddingXs","defaultPaddingXss","paddingLg","paddingMd","paddingSm","paddingXs","paddingXss","marginSm","marginLg","btnPaddingHorizontalBase","btnPaddingHorizontalLg","btnPaddingHorizontalSm","inputPaddingHorizontal","inputPaddingHorizontalBase","inputPaddingHorizontalSm","inputPaddingHorizontalLg","inputPaddingVertical","inputPaddingVerticalBase","inputPaddingVerticalSm","inputPaddingVerticalLg","modalPadding","modalLessPadding","modalHeaderPadding","modalHeaderCloseSize","modalHeaderBorderWidth","modalBodyPadding","modalFooterPaddingVertical","modalFooterPaddingHorizontal","modalFooterBorderWidth","switchPadding","switchHeight","switchMinWidth","switchPinSize","heightBase","borderWidth","antdGeneralVariables","classnamePrefix","antdVars","iconfontCssPrefix","borderRadiusBase","heightSm","iconSize","iconFontSize","iconFontSizeNew","buttonHeight","buttonInnerHeight","getShadowVariables","shadowLow","shadowHigh","FONT_SIZE_BASE","antdTypography","fontSizeSm","fontSizeBase","fontSizeMd","fontSizeLg","fontSizeXl","fontSizeXxl","lineHeightSm","lineHeightBase","lineHeightMd","lineHeightLg","lineHeightXl","lineHeightXxl","typographyBoldFontWeight","defaultOptions","enableAnimation","zIndexBase","getTheme","options","colors","general","generalVariables","typography","getClassNamePrefix","theme","antdThemeName","getPrefixedClassNameFromTheme","className","filter","Boolean","join","useDesignSystemTheme","emotionTheme","useEmotionTheme","classNamePrefix","getPrefixedClassName","WithDesignSystemThemeHoc","Component","WrappedWithDesignSystemTheme","props","themeValues","_jsx"],"mappings":";;;;;AAAA;AACO,MAAMA,OAAO,GAAG;EACrBC,cAAc,EAAE;AAClB,CAAC;;AAED;AACA,gBAAe;EACb,GAAGD;AACL,CAAC;;ACkBD;AACO,MAAME,mBAAwC,GAAG;EACtDC,OAAO,EAAE,SAAS;EAClBC,OAAO,EAAE,SAAS;EAClBC,OAAO,EAAE,SAAS;EAClBC,OAAO,EAAE,SAAS;EAClBC,OAAO,EAAE,SAAS;EAClBC,OAAO,EAAE,SAAS;EAClBC,OAAO,EAAE,SAAS;EAClBC,OAAO,EAAE,SAAS;EAClBC,OAAO,EAAE,SAAS;EAClBC,QAAQ,EAAE,SAAS;EACnBC,QAAQ,EAAE,SAAS;EACnBC,QAAQ,EAAE,SAAS;EACnBC,QAAQ,EAAE,SAAS;EACnBC,QAAQ,EAAE,SAAS;EACnBC,QAAQ,EAAE,SAAS;EACnBC,QAAQ,EAAE,SAAS;EACnBC,QAAQ,EAAE,SAAS;EACnBC,KAAK,EAAE,SAAS;EAChBC,OAAO,EAAE,SAAS;EAClBC,OAAO,EAAE,SAAS;EAClBC,OAAO,EAAE,SAAS;EAClBC,OAAO,EAAE,SAAS;EAClBC,OAAO,EAAE,SAAS;EAClBC,OAAO,EAAE,SAAS;EAClBC,OAAO,EAAE,SAAS;EAClB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GAAE+F,KAAK,CAACJ,OAAO,CAAClC,eAAgB,IAAGuC,aAAc,EAAC;AAC5D;AAEO,SAASC,6BAA6B,CAACF,KAAY,EAAEG,SAAoC,EAAU;EACxG,OAAO,CAACJ,kBAAkB,CAACC,KAAK,CAAC,EAAEG,SAAS,CAAC,CAACC,MAAM,CAACC,OAAO,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC;AACzE;AAEO,SAASC,oBAAoB,GAA+B;EACjE,MAAMC,YAAY,GAAGC,QAAe,EAAW;;EAE/C,MAAMT,KAAK,GAAGQ,YAAY,IAAIA,YAAY,CAACZ,OAAO,GAAGY,YAAY,GAAGf,QAAQ,CAAC,KAAK,CAAC;EAEnF,OAAO;IACLO,KAAK,EAAEA,KAAK;IACZU,eAAe,EAAEX,kBAAkB,CAACC,KAAK,CAAC;IAC1CW,oBAAoB,EAAGR,SAAiB,IAAKD,6BAA6B,CAACF,KAAK,EAAEG,SAAS;GAC5F;AACH;AAIA;AACO,SAASS,wBAAwB,CAAIC,SAAwD,EAAE;EACpG,OAAO,SAASC,4BAA4B,CAACC,KAAQ,EAAgB;IACnE,MAAMC,WAAW,GAAGT,oBAAoB,EAAE;IAE1C,OAAOU,IAAC,SAAS;MAAA,GAAKF,KAAK;MAAE,oBAAoB,EAAEC;MAAe;GACnE;AACH;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databricks/design-system",
3
- "version": "1.12.4",
3
+ "version": "1.12.6",
4
4
  "description": "DuBois Design System",
5
5
  "keywords": [],
6
6
  "license": "ISC",
@@ -29,7 +29,7 @@
29
29
  "generate:icons:raw": "svgr -d src/design-system/Icon/__generated/icons_raw --typescript --template src/design-system/Icon/generator/iconTemplate.js --icon --replace-attr-values \\\"#EB4A32=currentColor\\\" src/assets/icons",
30
30
  "generate:icons:v2:raw": "svgr -d src/design-system/IconV2/__generated/icons_raw --typescript --template src/design-system/IconV2/generator/iconTemplate.js --icon --replace-attr-values \\\"#5D7283=currentColor\\\" src/assets/iconsV2",
31
31
  "generate:icons-story": "node ./src/design-system/Icon/generator/generateIconStory.js",
32
- "build": "rm -f dist/test-utils/enzyme.d.ts; npm-run-all --parallel build:styles build:js",
32
+ "build": "rm -f dist/test-utils/rtl.d.ts dist/test-utils/enzyme.d.ts; npm-run-all --parallel build:styles build:js",
33
33
  "build:deps": "yarn workspaces foreach -piR --topological-dev --from @databricks/design-system --exclude @databricks/design-system run build",
34
34
  "build:js:base": "databricks-pkgr build --no-clean",
35
35
  "build:js": "yarn build:js:base",
@@ -44,7 +44,7 @@
44
44
  "start:storybook": "TS_NODE_PROJECT=.storybook/tsconfig.json BROWSER=none databricks-start-storybook -p 6006 -c storybook",
45
45
  "indexes-regenerate": "./yarnrun.sh indexes:regenerate",
46
46
  "indexes-check": "./yarnrun.sh indexes:check",
47
- "snapshot": "percy storybook ./storybook-static -c .percy.storybook.yml --verbose -t750",
47
+ "snapshot": "databricks-percy storybook ./storybook-static -c .percy.storybook.yml --verbose -t750",
48
48
  "prettier-check": "./yarnrun.sh prettier:check",
49
49
  "prettier": "./yarnrun.sh prettier",
50
50
  "lint": "databricks-eslint",
@@ -64,6 +64,7 @@
64
64
  "@babel/preset-typescript": "^7.18.6",
65
65
  "@databricks/config-eslint": "1.0.0",
66
66
  "@databricks/config-jest": "1.0.0",
67
+ "@databricks/config-percy": "0.0.0",
67
68
  "@databricks/config-storybook": "1.0.0",
68
69
  "@databricks/pkgr": "1.0.0",
69
70
  "@emotion/babel-plugin": "^11.3.0",
@@ -72,8 +73,8 @@
72
73
  "@emotion/react": "^11.4.0",
73
74
  "@faker-js/faker": "^6.0.0-alpha.6",
74
75
  "@jest/types": "^29.3.1",
75
- "@percy/cli": "1.0.0-beta.70",
76
- "@percy/storybook": "4.1.0",
76
+ "@percy/cli": "^1.20.0",
77
+ "@percy/storybook": "^4.3.5",
77
78
  "@radix-ui/react-switch": "^1.0.0",
78
79
  "@storybook/addon-actions": "^6.5.5",
79
80
  "@storybook/addon-docs": "^6.5.5",
@@ -122,6 +123,7 @@
122
123
  "react-docgen-typescript": "^1.20.5",
123
124
  "react-dom": "^17.0.1",
124
125
  "react-shadow-root": "^6.2.0",
126
+ "react-virtual": "^2.10.4",
125
127
  "resize-observer-polyfill": "^1.5.1",
126
128
  "rollup": "^2.61.1",
127
129
  "rollup-plugin-postcss": "^4.0.0",