@databricks/design-system 1.9.1 → 1.9.2

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 (58) hide show
  1. package/dist/Typography-04e40f87.js +1465 -0
  2. package/dist/Typography-04e40f87.js.map +1 -0
  3. package/dist/Typography-74e19785.js +1472 -0
  4. package/dist/Typography-74e19785.js.map +1 -0
  5. package/dist/design-system/AutoComplete/AutoComplete.d.ts.map +1 -1
  6. package/dist/design-system/DesignSystemProvider/DesignSystemProvider.d.ts +3 -1
  7. package/dist/design-system/DesignSystemProvider/DesignSystemProvider.d.ts.map +1 -1
  8. package/dist/design-system/Drawer/Drawer.d.ts +7 -1
  9. package/dist/design-system/Drawer/Drawer.d.ts.map +1 -1
  10. package/dist/design-system/FormMessage/FormMessage.d.ts.map +1 -1
  11. package/dist/design-system/Hooks/useDesignSystemTheme.d.ts.map +1 -1
  12. package/dist/design-system/Icon/__generated/icons/BracketsXIcon.v2.d.ts +4 -0
  13. package/dist/design-system/Icon/__generated/icons/BracketsXIcon.v2.d.ts.map +1 -0
  14. package/dist/design-system/Icon/__generated/icons/CloudModelIcon.v2.d.ts +4 -0
  15. package/dist/design-system/Icon/__generated/icons/CloudModelIcon.v2.d.ts.map +1 -0
  16. package/dist/design-system/Icon/__generated/icons/CursorIcon.v2.d.ts +4 -0
  17. package/dist/design-system/Icon/__generated/icons/CursorIcon.v2.d.ts.map +1 -0
  18. package/dist/design-system/Icon/__generated/icons/DagIcon.v2.d.ts +4 -0
  19. package/dist/design-system/Icon/__generated/icons/DagIcon.v2.d.ts.map +1 -0
  20. package/dist/design-system/Icon/__generated/icons/DecimalIcon.v2.d.ts +4 -0
  21. package/dist/design-system/Icon/__generated/icons/DecimalIcon.v2.d.ts.map +1 -0
  22. package/dist/design-system/Icon/__generated/icons/DotsCircleIcon.v2.d.ts +4 -0
  23. package/dist/design-system/Icon/__generated/icons/DotsCircleIcon.v2.d.ts.map +1 -0
  24. package/dist/design-system/Icon/__generated/icons/LettersIcon.v2.d.ts +4 -0
  25. package/dist/design-system/Icon/__generated/icons/LettersIcon.v2.d.ts.map +1 -0
  26. package/dist/design-system/Icon/__generated/icons/NumbersIcon.v2.d.ts +4 -0
  27. package/dist/design-system/Icon/__generated/icons/NumbersIcon.v2.d.ts.map +1 -0
  28. package/dist/design-system/Icon/__generated/icons/index.d.ts +43 -1
  29. package/dist/design-system/Icon/__generated/icons/index.d.ts.map +1 -1
  30. package/dist/design-system/Modal/Modal.d.ts.map +1 -1
  31. package/dist/design-system/Popover/Popover.d.ts +2 -1
  32. package/dist/design-system/Popover/Popover.d.ts.map +1 -1
  33. package/dist/design-system/Select/Select.d.ts.map +1 -1
  34. package/dist/design-system/Sidebar/Sidebar.d.ts +1 -1
  35. package/dist/design-system/Sidebar/Sidebar.d.ts.map +1 -1
  36. package/dist/design-system/ToggleButton/ToggleButton.d.ts.map +1 -1
  37. package/dist/design-system/Tooltip/Tooltip.d.ts.map +1 -1
  38. package/dist/development/Slider/Slider.d.ts.map +1 -1
  39. package/dist/development/TableUI/index.d.ts +14 -0
  40. package/dist/development/TableUI/index.d.ts.map +1 -1
  41. package/dist/development.js +70 -445
  42. package/dist/development.js.map +1 -1
  43. package/dist/index-dark.css +1 -0
  44. package/dist/index-mfe-dark.css +1 -0
  45. package/dist/index-mfe.css +1 -0
  46. package/dist/index.css +1 -0
  47. package/dist/index.js +259 -31
  48. package/dist/index.js.map +1 -1
  49. package/dist/theme/colorList.d.ts +1 -1
  50. package/dist/theme/colors.d.ts +3 -4
  51. package/dist/theme/colors.d.ts.map +1 -1
  52. package/dist/theme/convertToLessVars.d.ts +3 -4
  53. package/dist/theme/convertToLessVars.d.ts.map +1 -1
  54. package/dist/theme/generalVariables.d.ts +4 -0
  55. package/dist/theme/generalVariables.d.ts.map +1 -1
  56. package/dist/theme/index.d.ts +7 -3
  57. package/dist/theme/index.d.ts.map +1 -1
  58. package/package.json +3 -3
@@ -0,0 +1,1472 @@
1
+ import React__default, { createContext, useMemo, useEffect, useContext, forwardRef } from 'react';
2
+ import { jsx, jsxs } from '@emotion/react/jsx-runtime';
3
+ import { useTheme, ThemeProvider, css } from '@emotion/react';
4
+ import { notification, ConfigProvider, Checkbox as Checkbox$1, Typography as Typography$1 } from 'antd';
5
+ import classnames from 'classnames';
6
+ import chroma from 'chroma-js';
7
+ import AntDIcon from '@ant-design/icons';
8
+ import _isNil from 'lodash/isNil';
9
+ import _endsWith from 'lodash/endsWith';
10
+ import _isBoolean from 'lodash/isBoolean';
11
+ import _isNumber from 'lodash/isNumber';
12
+ import _isString from 'lodash/isString';
13
+ import _mapValues from 'lodash/mapValues';
14
+ import unitless from '@emotion/unitless';
15
+
16
+ // Border variables
17
+ const borders = {
18
+ borderRadiusMd: 4
19
+ };
20
+
21
+ // eslint-disable-next-line import/no-anonymous-default-export
22
+ var borders$1 = {
23
+ ...borders
24
+ };
25
+
26
+ // Exported from go/designsystem/colorsheet
27
+ const colorPalettePrimary = {
28
+ primary: '#2272B4',
29
+ blue100: '#F0F8FF',
30
+ blue200: '#D7EDFE',
31
+ blue300: '#BAE1FC',
32
+ blue400: '#8ACAFF',
33
+ blue500: '#4299E0',
34
+ blue600: '#2272B4',
35
+ blue700: '#0E538B',
36
+ blue800: '#04355D',
37
+ green100: '#F3FCF6',
38
+ green200: '#D4F7DF',
39
+ green300: '#B1ECC5',
40
+ green400: '#8DDDA8',
41
+ green500: '#3CAA60',
42
+ green600: '#277C43',
43
+ green700: '#115026',
44
+ green800: '#093919',
45
+ white: '#FFFFFF',
46
+ grey100: '#F2F5F7',
47
+ grey200: '#E4ECF1',
48
+ grey300: '#CDDAE5',
49
+ grey400: '#BDCDDB',
50
+ grey500: '#8196A7',
51
+ grey600: '#5D7283',
52
+ grey700: '#44535F',
53
+ grey800: '#1F272D',
54
+ red100: '#FFF5F7',
55
+ red200: '#FDE2E8',
56
+ red300: '#FBD0D8',
57
+ red400: '#F792A6',
58
+ red500: '#E65B77',
59
+ red600: '#C82D4C',
60
+ red700: '#9E102C',
61
+ red800: '#630316',
62
+ yellow100: '#FFF9EB',
63
+ yellow200: '#FCEACA',
64
+ yellow300: '#F8D4A5',
65
+ yellow400: '#F2BE88',
66
+ yellow500: '#DE7921',
67
+ yellow600: '#BE501E',
68
+ yellow700: '#93320B',
69
+ yellow800: '#5F1B02'
70
+ };
71
+ const colorPaletteSecondary = {
72
+ brown: '#A6630C',
73
+ coral: '#C83243',
74
+ charcoal: '#5D7283',
75
+ indigo: '#434A93',
76
+ lemon: '#FACB66',
77
+ lime: '#308613',
78
+ pink: '#B45091',
79
+ purple: '#8A63BF',
80
+ teal: '#04867D',
81
+ turquoise: '#157CBC'
82
+ };
83
+
84
+ // Colors taken from figma designs but not part of official list (yet)
85
+ const unstableColors = {
86
+ textValidationInfo: '#64727D',
87
+ backgroundValidationDanger: colorPalettePrimary.red100,
88
+ backgroundValidationSuccess: colorPalettePrimary.blue100,
89
+ backgroundValidationWarning: colorPalettePrimary.yellow100,
90
+ borderValidationDanger: colorPalettePrimary.red300,
91
+ borderValidationSuccess: colorPalettePrimary.blue300,
92
+ borderValidationWarning: colorPalettePrimary.yellow300
93
+ };
94
+ const lightColorList = {
95
+ backgroundPrimary: colorPalettePrimary.white,
96
+ actionDangerPrimaryBackgroundDefault: colorPalettePrimary.red600,
97
+ actionDangerPrimaryBackgroundHover: colorPalettePrimary.red700,
98
+ actionDangerPrimaryBackgroundPress: colorPalettePrimary.red800,
99
+ actionDangerDefaultBackgroundDefault: chroma(colorPalettePrimary.red600).alpha(0).hex(),
100
+ actionDangerDefaultBackgroundHover: chroma(colorPalettePrimary.red600).alpha(0.08).hex(),
101
+ actionDangerDefaultBackgroundPress: chroma(colorPalettePrimary.red600).alpha(0.16).hex(),
102
+ actionDangerDefaultBorderDefault: colorPalettePrimary.red600,
103
+ actionDangerDefaultBorderHover: colorPalettePrimary.red700,
104
+ actionDangerDefaultBorderPress: colorPalettePrimary.red800,
105
+ actionDangerDefaultTextDefault: colorPalettePrimary.red600,
106
+ actionDangerDefaultTextHover: colorPalettePrimary.red700,
107
+ actionDangerDefaultTextPress: colorPalettePrimary.red800,
108
+ actionDefaultBackgroundDefault: chroma(colorPalettePrimary.blue800).alpha(0).hex(),
109
+ actionDefaultBackgroundHover: chroma(colorPalettePrimary.blue600).alpha(0.08).hex(),
110
+ actionDefaultBackgroundPress: chroma(colorPalettePrimary.blue600).alpha(0.16).hex(),
111
+ actionDefaultBorderDefault: colorPalettePrimary.grey300,
112
+ actionDefaultBorderFocus: colorPalettePrimary.blue600,
113
+ actionDefaultBorderHover: colorPalettePrimary.blue700,
114
+ actionDefaultBorderPress: colorPalettePrimary.blue800,
115
+ actionDefaultTextDefault: colorPalettePrimary.grey800,
116
+ actionDefaultTextHover: colorPalettePrimary.blue700,
117
+ actionDefaultTextPress: colorPalettePrimary.blue800,
118
+ actionDisabledBackground: colorPalettePrimary.grey200,
119
+ actionDisabledText: colorPalettePrimary.grey400,
120
+ actionPrimaryBackgroundDefault: colorPalettePrimary.blue600,
121
+ actionPrimaryBackgroundHover: colorPalettePrimary.blue700,
122
+ actionPrimaryBackgroundPress: colorPalettePrimary.blue800,
123
+ actionPrimaryTextDefault: colorPalettePrimary.white,
124
+ actionPrimaryTextHover: colorPalettePrimary.white,
125
+ actionPrimaryTextPress: colorPalettePrimary.white,
126
+ actionTertiaryBackgroundDefault: chroma(colorPalettePrimary.blue600).alpha(0).hex(),
127
+ actionTertiaryBackgroundHover: chroma(colorPalettePrimary.blue600).alpha(0.08).hex(),
128
+ actionTertiaryBackgroundPress: chroma(colorPalettePrimary.blue600).alpha(0.16).hex(),
129
+ actionTertiaryTextDefault: colorPalettePrimary.blue600,
130
+ actionTertiaryTextHover: colorPalettePrimary.blue700,
131
+ actionTertiaryTextPress: colorPalettePrimary.blue800,
132
+ backgroundDanger: chroma(colorPalettePrimary.red100).alpha(0.08).hex(),
133
+ backgroundSecondary: colorPalettePrimary.grey100,
134
+ backgroundWarning: chroma(colorPalettePrimary.yellow100).alpha(0.08).hex(),
135
+ border: colorPalettePrimary.grey300,
136
+ borderDecorative: colorPalettePrimary.grey300,
137
+ textPrimary: colorPalettePrimary.grey800,
138
+ textSecondary: colorPalettePrimary.grey600,
139
+ textPlaceholder: colorPalettePrimary.grey400,
140
+ textValidationDanger: colorPalettePrimary.red600,
141
+ textValidationSuccess: colorPalettePrimary.green600,
142
+ textValidationWarning: colorPalettePrimary.yellow600,
143
+ overlayOverlay: chroma(colorPalettePrimary.grey100).alpha(0.72).hex(),
144
+ // Tags
145
+ tagDefault: chroma(colorPalettePrimary.grey600).alpha(0.08).hex(),
146
+ tagBrown: colorPaletteSecondary.brown,
147
+ tagCoral: colorPaletteSecondary.coral,
148
+ tagCharcoal: colorPalettePrimary.grey600,
149
+ tagIndigo: colorPaletteSecondary.indigo,
150
+ tagLemon: colorPaletteSecondary.lemon,
151
+ tagLime: colorPaletteSecondary.lime,
152
+ tagPink: colorPaletteSecondary.pink,
153
+ tagPurple: colorPaletteSecondary.purple,
154
+ tagTeal: colorPaletteSecondary.teal,
155
+ tagTurquoise: colorPaletteSecondary.turquoise,
156
+ tagText: colorPalettePrimary.white,
157
+ tagHover: chroma(colorPalettePrimary.blue400).alpha(0.08).hex(),
158
+ tagPress: chroma(colorPalettePrimary.blue400).alpha(0.16).hex(),
159
+ tagIconHover: chroma(colorPalettePrimary.white).alpha(0.8).hex(),
160
+ tagIconPress: chroma(colorPalettePrimary.white).alpha(0.76).hex(),
161
+ // Typography
162
+ typographyCodeBg: chroma(colorPalettePrimary.grey600).alpha(0.08).hex(),
163
+ // Table
164
+ tableSeparatorColor: colorPalettePrimary.grey200,
165
+ tableRowHover: chroma(colorPalettePrimary.grey600).alpha(0.04).hex(),
166
+ tooltipBackgroundTooltip: colorPalettePrimary.grey800,
167
+ ...unstableColors
168
+ };
169
+ const darkColorList = {
170
+ actionDangerPrimaryBackgroundDefault: chroma(colorPalettePrimary.red400).alpha(0.84).hex(),
171
+ actionDangerPrimaryBackgroundHover: chroma(colorPalettePrimary.red400).alpha(0.72).hex(),
172
+ actionDangerPrimaryBackgroundPress: chroma(colorPalettePrimary.red400).alpha(0.6).hex(),
173
+ actionDangerDefaultBackgroundDefault: chroma(colorPalettePrimary.red400).alpha(0).hex(),
174
+ actionDangerDefaultBackgroundHover: chroma(colorPalettePrimary.red400).alpha(0.08).hex(),
175
+ actionDangerDefaultBackgroundPress: chroma(colorPalettePrimary.red400).alpha(0.16).hex(),
176
+ actionDangerDefaultBorderDefault: colorPalettePrimary.red400,
177
+ actionDangerDefaultBorderHover: chroma(colorPalettePrimary.red400).alpha(0.72).hex(),
178
+ actionDangerDefaultBorderPress: chroma(colorPalettePrimary.red400).alpha(0.6).hex(),
179
+ actionDangerDefaultTextDefault: colorPalettePrimary.red400,
180
+ actionDangerDefaultTextHover: chroma(colorPalettePrimary.red400).alpha(0.72).hex(),
181
+ actionDangerDefaultTextPress: chroma(colorPalettePrimary.red400).alpha(0.6).hex(),
182
+ actionDefaultBackgroundDefault: chroma(colorPalettePrimary.blue400).alpha(0).hex(),
183
+ actionDefaultBackgroundHover: chroma(colorPalettePrimary.blue400).alpha(0.08).hex(),
184
+ actionDefaultBackgroundPress: chroma(colorPalettePrimary.blue400).alpha(0.16).hex(),
185
+ actionDefaultBorderDefault: chroma(colorPalettePrimary.white).alpha(0.6).hex(),
186
+ actionDefaultBorderFocus: chroma(colorPalettePrimary.blue400).alpha(0.84).hex(),
187
+ actionDefaultBorderHover: chroma(colorPalettePrimary.blue400).alpha(0.8).hex(),
188
+ actionDefaultBorderPress: chroma(colorPalettePrimary.blue400).alpha(0.76).hex(),
189
+ actionDefaultTextDefault: chroma(colorPalettePrimary.white).alpha(0.84).hex(),
190
+ actionDefaultTextHover: chroma(colorPalettePrimary.blue400).alpha(0.8).hex(),
191
+ actionDefaultTextPress: chroma(colorPalettePrimary.blue400).alpha(0.76).hex(),
192
+ actionDisabledBackground: chroma(colorPalettePrimary.white).alpha(0.24).hex(),
193
+ actionDisabledText: chroma(colorPalettePrimary.white).alpha(0.4).hex(),
194
+ actionPrimaryBackgroundDefault: chroma(colorPalettePrimary.blue400).alpha(0.84).hex(),
195
+ actionPrimaryBackgroundHover: chroma(colorPalettePrimary.blue400).alpha(0.8).hex(),
196
+ actionPrimaryBackgroundPress: chroma(colorPalettePrimary.blue400).alpha(0.76).hex(),
197
+ actionPrimaryTextDefault: colorPalettePrimary.grey800,
198
+ actionPrimaryTextHover: colorPalettePrimary.grey800,
199
+ actionPrimaryTextPress: colorPalettePrimary.grey800,
200
+ actionTertiaryBackgroundDefault: chroma(colorPalettePrimary.blue400).alpha(0).hex(),
201
+ actionTertiaryBackgroundHover: chroma(colorPalettePrimary.blue400).alpha(0.08).hex(),
202
+ actionTertiaryBackgroundPress: chroma(colorPalettePrimary.blue400).alpha(0.16).hex(),
203
+ actionTertiaryTextDefault: chroma(colorPalettePrimary.blue400).alpha(0.84).hex(),
204
+ actionTertiaryTextHover: chroma(colorPalettePrimary.blue400).alpha(0.8).hex(),
205
+ actionTertiaryTextPress: chroma(colorPalettePrimary.blue400).alpha(0.76).hex(),
206
+ backgroundPrimary: colorPalettePrimary.grey800,
207
+ backgroundSecondary: chroma(colorPalettePrimary.white).alpha(0.04).hex(),
208
+ border: chroma(colorPalettePrimary.white).alpha(0.48).hex(),
209
+ borderDecorative: chroma(colorPalettePrimary.white).alpha(0.24).hex(),
210
+ textPrimary: chroma(colorPalettePrimary.white).alpha(0.84).hex(),
211
+ textSecondary: chroma(colorPalettePrimary.white).alpha(0.6).hex(),
212
+ textPlaceholder: chroma(colorPalettePrimary.grey400).alpha(0.84).hex(),
213
+ textValidationDanger: chroma(colorPalettePrimary.red400).alpha(0.84).hex(),
214
+ textValidationSuccess: chroma(colorPalettePrimary.green400).alpha(0.84).hex(),
215
+ textValidationWarning: chroma(colorPalettePrimary.yellow400).alpha(0.84).hex(),
216
+ overlayOverlay: chroma(colorPalettePrimary.grey800).alpha(0.72).hex(),
217
+ // Tags
218
+ tagDefault: chroma(colorPalettePrimary.white).alpha(0.16).hex(),
219
+ tagBrown: chroma(colorPaletteSecondary.brown).alpha(0.84).hex(),
220
+ tagCoral: chroma(colorPaletteSecondary.coral).alpha(0.84).hex(),
221
+ tagCharcoal: chroma(colorPalettePrimary.grey600).alpha(0.84).hex(),
222
+ tagIndigo: chroma(colorPaletteSecondary.indigo).alpha(0.84).hex(),
223
+ tagLemon: chroma(colorPaletteSecondary.lemon).alpha(0.84).hex(),
224
+ tagLime: chroma(colorPaletteSecondary.lime).alpha(0.84).hex(),
225
+ tagPink: chroma(colorPaletteSecondary.pink).alpha(0.84).hex(),
226
+ tagPurple: chroma(colorPaletteSecondary.purple).alpha(0.84).hex(),
227
+ tagTeal: chroma(colorPaletteSecondary.teal).alpha(0.84).hex(),
228
+ tagTurquoise: chroma(colorPaletteSecondary.turquoise).alpha(0.84).hex(),
229
+ tagText: chroma(colorPalettePrimary.white).alpha(0.84).hex(),
230
+ tagHover: chroma(colorPalettePrimary.blue400).alpha(0.08).hex(),
231
+ tagPress: chroma(colorPalettePrimary.blue400).alpha(0.16).hex(),
232
+ tagIconHover: chroma(colorPalettePrimary.white).alpha(0.8).hex(),
233
+ tagIconPress: chroma(colorPalettePrimary.white).alpha(0.76).hex(),
234
+ // Typography
235
+ typographyCodeBg: chroma(colorPalettePrimary.white).alpha(0.16).hex(),
236
+ // Table
237
+ tableSeparatorColor: chroma(colorPalettePrimary.white).alpha(0.24).hex(),
238
+ tableRowHover: chroma(colorPalettePrimary.white).alpha(0.16).hex(),
239
+ tooltipBackgroundTooltip: chroma(colorPalettePrimary.white).alpha(0.6).hex(),
240
+ // Missing in list
241
+ backgroundDanger: 'rgba(200,45,76,0.08)',
242
+ backgroundWarning: 'rgba(222,121,33,0.08)',
243
+ // Missing in light list
244
+ // "background-validation-danger": "rgba(229,110,134,0)",
245
+ // "background-validation-warning": "rgba(252,234,202,0)",
246
+ ...unstableColors
247
+ };
248
+
249
+ const darkColors = {
250
+ ...darkColorList,
251
+ ...colorPalettePrimary,
252
+ ...colorPaletteSecondary
253
+ };
254
+ const lightColors = {
255
+ ...lightColorList,
256
+ ...colorPalettePrimary,
257
+ ...colorPaletteSecondary
258
+ };
259
+ function getSemanticColors(isDarkMode) {
260
+ return isDarkMode ? darkColors : lightColors;
261
+ }
262
+
263
+ // TODO (FEINF-1674): Remove when removing USE_NEW_RADIO_STYLES
264
+ /*
265
+ Colors that need to be replaced by semantic colors.
266
+ */
267
+ const deprecatedColors = {
268
+ // Radio Colors
269
+ radioInteractiveAvailable: colorPalettePrimary.primary,
270
+ radioInteractiveHover: '#186099',
271
+ radioInteractivePress: '#0D4F85',
272
+ radioDisabled: '#A2AEB8',
273
+ radioDefaultBorder: '#64727D',
274
+ radioDefaultBackground: '#FFFFFF',
275
+ radioInteractiveHoverSecondary: 'rgba(34, 115, 181, 0.08)',
276
+ // Fade of Interactive Available
277
+ radioInteractivePressSecondary: 'rgba(34, 115, 181, 0.16)' // Fade of Interactive Available
278
+ };
279
+
280
+ function getColors(isDarkMode) {
281
+ return {
282
+ ...deprecatedColors,
283
+ ...getSemanticColors(isDarkMode)
284
+ };
285
+ }
286
+
287
+ // eslint-disable-next-line import/no-anonymous-default-export
288
+ var antdVars = {
289
+ // IMPORTANT: Do not read this directly from components. Use `React.useContext`.
290
+ 'ant-prefix': 'du-bois'
291
+ };
292
+
293
+ const DEFAULT_SPACING_UNIT = 8;
294
+ const MODAL_PADDING = 40;
295
+ const spacing = {
296
+ xs: DEFAULT_SPACING_UNIT / 2,
297
+ sm: DEFAULT_SPACING_UNIT,
298
+ md: DEFAULT_SPACING_UNIT * 2,
299
+ lg: DEFAULT_SPACING_UNIT * 3
300
+ };
301
+
302
+ // Less variables that are used by AntD
303
+ ({
304
+ defaultPaddingLg: spacing.lg,
305
+ defaultPaddingMd: spacing.md,
306
+ defaultPaddingSm: spacing.sm,
307
+ defaultPaddingXs: spacing.sm,
308
+ defaultPaddingXss: spacing.xs,
309
+ paddingLg: spacing.md,
310
+ // TODO: Check if there is a better alternative with team
311
+ paddingMd: spacing.sm,
312
+ paddingSm: spacing.sm,
313
+ paddingXs: spacing.xs,
314
+ paddingXss: 0,
315
+ marginSm: 12,
316
+ marginLg: spacing.lg,
317
+ // Button
318
+ btnPaddingHorizontalBase: DEFAULT_SPACING_UNIT * 2,
319
+ btnPaddingHorizontalLg: DEFAULT_SPACING_UNIT * 2,
320
+ btnPaddingHorizontalSm: DEFAULT_SPACING_UNIT * 2,
321
+ // Input
322
+ inputPaddingHorizontal: DEFAULT_SPACING_UNIT * 1.5,
323
+ inputPaddingHorizontalBase: DEFAULT_SPACING_UNIT * 1.5,
324
+ inputPaddingHorizontalSm: DEFAULT_SPACING_UNIT * 1.5,
325
+ inputPaddingHorizontalLg: DEFAULT_SPACING_UNIT * 1.5,
326
+ inputPaddingVertical: spacing.xs + 1,
327
+ inputPaddingVerticalBase: spacing.xs + 1,
328
+ inputPaddingVerticalSm: spacing.xs + 1,
329
+ inputPaddingVerticalLg: spacing.xs + 1,
330
+ // Modal
331
+ modalPadding: MODAL_PADDING,
332
+ modalLessPadding: MODAL_PADDING - 20,
333
+ modalHeaderPadding: "".concat(MODAL_PADDING, "px ").concat(MODAL_PADDING, "px ").concat(MODAL_PADDING - 20, "px"),
334
+ modalHeaderCloseSize: MODAL_PADDING * 2 + 22,
335
+ modalHeaderBorderWidth: 0,
336
+ modalBodyPadding: "0 ".concat(MODAL_PADDING, "px"),
337
+ modalFooterPaddingVertical: 0,
338
+ modalFooterPaddingHorizontal: 0,
339
+ modalFooterBorderWidth: 0,
340
+ // Switch
341
+ switchPadding: 0,
342
+ switchHeight: 16,
343
+ switchMinWidth: 28,
344
+ switchPinSize: 14
345
+ });
346
+ var spacing$1 = spacing;
347
+
348
+ const heightBase = 40;
349
+ const borderWidth = 1;
350
+ const antdGeneralVariables = {
351
+ classnamePrefix: antdVars['ant-prefix'],
352
+ iconfontCssPrefix: 'anticon',
353
+ borderRadiusBase: 4,
354
+ borderWidth: borderWidth,
355
+ heightSm: 32,
356
+ heightBase: heightBase,
357
+ iconSize: 24,
358
+ // TODO (FEINF-1545): Update with icon overhaul to 16px
359
+ iconFontSize: 13,
360
+ iconFontSizeNew: 16,
361
+ buttonHeight: heightBase,
362
+ // Height available within button (for label and icon). Same for middle and small buttons.
363
+ buttonInnerHeight: heightBase - spacing$1.sm * 2 - borderWidth * 2
364
+ };
365
+ const getShadowVariables = isDarkMode => {
366
+ if (isDarkMode) {
367
+ return {
368
+ shadowLow: '0px 4px 16px rgba(0, 0, 0, 0.12)',
369
+ shadowHigh: '0px 8px 24px rgba(0, 0, 0, 0.2);'
370
+ };
371
+ } else {
372
+ return {
373
+ shadowLow: '0px 4px 16px rgba(31, 39, 45, 0.12)',
374
+ shadowHigh: '0px 8px 24px rgba(31, 39, 45, 0.2)'
375
+ };
376
+ }
377
+ };
378
+ var generalVariables = antdGeneralVariables;
379
+
380
+ const FONT_SIZE_BASE = 13;
381
+
382
+ // Less variables that are used by AntD
383
+ const antdTypography = {
384
+ fontSizeSm: 12,
385
+ fontSizeBase: FONT_SIZE_BASE,
386
+ fontSizeMd: FONT_SIZE_BASE,
387
+ fontSizeLg: 18,
388
+ fontSizeXl: 22,
389
+ fontSizeXxl: 32,
390
+ lineHeightSm: '16px',
391
+ lineHeightBase: '20px',
392
+ lineHeightMd: '20px',
393
+ lineHeightLg: '24px',
394
+ lineHeightXl: '28px',
395
+ lineHeightXxl: '40px',
396
+ typographyBoldFontWeight: 600
397
+ };
398
+
399
+ // eslint-disable-next-line import/no-anonymous-default-export
400
+ var typography = {
401
+ ...antdTypography
402
+ };
403
+
404
+ const defaultOptions = {
405
+ enableAnimation: false,
406
+ zIndexBase: 1000
407
+ };
408
+
409
+ // Function to get variables for a certain theme.
410
+ // End users should use useDesignSystemTheme instead.
411
+ function getTheme(isDarkMode) {
412
+ let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultOptions;
413
+ return {
414
+ colors: getColors(isDarkMode),
415
+ spacing: spacing$1,
416
+ general: {
417
+ ...generalVariables,
418
+ ...getShadowVariables(isDarkMode)
419
+ },
420
+ typography,
421
+ borders: borders$1,
422
+ isDarkMode,
423
+ themeName: isDarkMode ? 'dark' : 'default',
424
+ options
425
+ };
426
+ }
427
+
428
+ function getClassNamePrefix(theme) {
429
+ const antdThemeName = theme.isDarkMode ? 'dark' : 'light';
430
+ return "".concat(theme.general.classnamePrefix, "-").concat(antdThemeName);
431
+ }
432
+ function getPrefixedClassNameFromTheme(theme, className) {
433
+ return [getClassNamePrefix(theme), className].filter(Boolean).join('-');
434
+ }
435
+ function useDesignSystemTheme() {
436
+ const emotionTheme = useTheme();
437
+ // Graceful fallback to default theme in case a test or developer forgot context.
438
+ const theme = emotionTheme && emotionTheme.general ? emotionTheme : getTheme(false);
439
+ return {
440
+ theme: theme,
441
+ classNamePrefix: getClassNamePrefix(theme),
442
+ getPrefixedClassName: className => getPrefixedClassNameFromTheme(theme, className)
443
+ };
444
+ }
445
+ // This is a simple typed HOC wrapper around the useDesignSystemTheme hook, for use in older react components.
446
+ function WithDesignSystemThemeHoc(Component) {
447
+ return function WrappedWithDesignSystemTheme(props) {
448
+ const themeValues = useDesignSystemTheme();
449
+ return jsx(Component, {
450
+ ...props,
451
+ designSystemThemeApi: themeValues
452
+ });
453
+ };
454
+ }
455
+
456
+ const DuboisContextDefaults = {
457
+ enableAnimation: false,
458
+ isDarkMode: false,
459
+ theme: 'default',
460
+ // Prefer to use useDesignSystemTheme.getPrefixedClassName instead
461
+ getPrefixCls: suffix => suffix ? "du-bois-".concat(suffix) : 'du-bois',
462
+ flags: {}
463
+ };
464
+ const DesignSystemContext = /*#__PURE__*/createContext(DuboisContextDefaults);
465
+ const DU_BOIS_ENABLE_ANIMATION_CLASSNAME = 'du-bois-enable-animation';
466
+ function getAnimationCss(enableAnimation) {
467
+ const disableAnimationCss = {
468
+ animationDuration: '0s !important',
469
+ transition: 'none !important'
470
+ };
471
+ return enableAnimation ? {} : {
472
+ // Apply to the current element
473
+ ...disableAnimationCss,
474
+ '&::before': disableAnimationCss,
475
+ '&::after': disableAnimationCss,
476
+ // Also apply to all child elements with a class that starts with our prefix
477
+ ["[class*=du-bois]:not(.".concat(DU_BOIS_ENABLE_ANIMATION_CLASSNAME, ", .").concat(DU_BOIS_ENABLE_ANIMATION_CLASSNAME, " *)")]: {
478
+ ...disableAnimationCss,
479
+ // Also target any pseudo-elements associated with those elements, since these can also be animated.
480
+ '&::before': disableAnimationCss,
481
+ '&::after': disableAnimationCss
482
+ }
483
+ };
484
+ }
485
+ const DesignSystemProviderPropsContext = /*#__PURE__*/React__default.createContext(null);
486
+ const AntDConfigProviderPropsContext = /*#__PURE__*/React__default.createContext(null);
487
+ const DesignSystemProvider = _ref => {
488
+ let {
489
+ children,
490
+ isDarkMode = false,
491
+ theme: themeName,
492
+ enableAnimation = false,
493
+ zIndexBase = 1000,
494
+ getPopupContainer,
495
+ flags = {}
496
+ } = _ref;
497
+ const theme = useMemo(() => getTheme(isDarkMode, {
498
+ enableAnimation,
499
+ zIndexBase
500
+ }),
501
+ // TODO: revisit this
502
+ // eslint-disable-next-line react-hooks/exhaustive-deps
503
+ [themeName, isDarkMode, zIndexBase]);
504
+ const providerPropsContext = useMemo(() => ({
505
+ isDarkMode,
506
+ theme: themeName,
507
+ enableAnimation,
508
+ zIndexBase,
509
+ getPopupContainer,
510
+ flags
511
+ }), [themeName, isDarkMode, enableAnimation, zIndexBase, getPopupContainer, flags]);
512
+ const classNamePrefix = getClassNamePrefix(theme);
513
+ const value = useMemo(() => {
514
+ return {
515
+ enableAnimation,
516
+ isDarkMode,
517
+ theme: theme.themeName,
518
+ getPrefixCls: suffix => getPrefixedClassNameFromTheme(theme, suffix),
519
+ getPopupContainer,
520
+ flags
521
+ };
522
+ }, [enableAnimation, theme, isDarkMode, getPopupContainer, flags]);
523
+ useEffect(() => {
524
+ return () => {
525
+ // when the design system context is unmounted, make sure the notification cache is also cleaned up
526
+ notification.destroy();
527
+ };
528
+ }, []);
529
+ return jsx(DesignSystemProviderPropsContext.Provider, {
530
+ value: providerPropsContext,
531
+ children: jsx(ThemeProvider, {
532
+ theme: theme,
533
+ children: jsx(AntDConfigProviderPropsContext.Provider, {
534
+ value: {
535
+ prefixCls: classNamePrefix,
536
+ getPopupContainer
537
+ },
538
+ children: jsx(DesignSystemContext.Provider, {
539
+ value: value,
540
+ children: children
541
+ })
542
+ })
543
+ })
544
+ });
545
+ };
546
+ const ApplyDesignSystemContextOverrides = _ref2 => {
547
+ let {
548
+ isDarkMode,
549
+ theme,
550
+ enableAnimation,
551
+ zIndexBase,
552
+ getPopupContainer,
553
+ flags,
554
+ children
555
+ } = _ref2;
556
+ const parentDesignSystemProviderProps = useContext(DesignSystemProviderPropsContext);
557
+ if (parentDesignSystemProviderProps === null) {
558
+ throw new Error("ApplyDesignSystemContextOverrides cannot be used standalone - DesignSystemProvider must exist in the React context");
559
+ }
560
+ const newProps = useMemo(() => ({
561
+ ...parentDesignSystemProviderProps,
562
+ isDarkMode: isDarkMode !== null && isDarkMode !== void 0 ? isDarkMode : parentDesignSystemProviderProps.isDarkMode,
563
+ theme: theme !== null && theme !== void 0 ? theme : parentDesignSystemProviderProps.theme,
564
+ enableAnimation: enableAnimation !== null && enableAnimation !== void 0 ? enableAnimation : parentDesignSystemProviderProps.enableAnimation,
565
+ zIndexBase: zIndexBase !== null && zIndexBase !== void 0 ? zIndexBase : parentDesignSystemProviderProps.zIndexBase,
566
+ getPopupContainer: getPopupContainer !== null && getPopupContainer !== void 0 ? getPopupContainer : parentDesignSystemProviderProps.getPopupContainer,
567
+ flags: {
568
+ ...parentDesignSystemProviderProps.flags,
569
+ ...flags
570
+ }
571
+ }), [parentDesignSystemProviderProps, isDarkMode, theme, enableAnimation, zIndexBase, getPopupContainer, flags]);
572
+ return jsx(DesignSystemProvider, {
573
+ ...newProps,
574
+ children: children
575
+ });
576
+ };
577
+
578
+ // This is a more-specific version of `ApplyDesignSystemContextOverrides` that only allows overriding the flags.
579
+ const ApplyDesignSystemFlags = _ref3 => {
580
+ let {
581
+ flags,
582
+ children
583
+ } = _ref3;
584
+ const parentDesignSystemProviderProps = useContext(DesignSystemProviderPropsContext);
585
+ if (parentDesignSystemProviderProps === null) {
586
+ throw new Error("ApplyDesignSystemFlags cannot be used standalone - DesignSystemProvider must exist in the React context");
587
+ }
588
+ const newProps = useMemo(() => ({
589
+ ...parentDesignSystemProviderProps,
590
+ flags: {
591
+ ...parentDesignSystemProviderProps.flags,
592
+ ...flags
593
+ }
594
+ }), [parentDesignSystemProviderProps, flags]);
595
+ return jsx(DesignSystemProvider, {
596
+ ...newProps,
597
+ children: children
598
+ });
599
+ };
600
+ const DesignSystemAntDConfigProvider = _ref4 => {
601
+ let {
602
+ children
603
+ } = _ref4;
604
+ const antdContext = useAntDConfigProviderContext();
605
+ return jsx(ConfigProvider, {
606
+ ...antdContext,
607
+ children: children
608
+ });
609
+ };
610
+ const useAntDConfigProviderContext = () => {
611
+ var _useContext;
612
+ return (_useContext = useContext(AntDConfigProviderPropsContext)) !== null && _useContext !== void 0 ? _useContext : {
613
+ prefixCls: undefined
614
+ };
615
+ };
616
+
617
+ /**
618
+ * When using AntD components inside Design System wrapper components (e.g. Modal, Collapse etc),
619
+ * we don't want Design System's prefix class to override them.
620
+ *
621
+ * Since all Design System's components have are wrapped with DesignSystemAntDConfigProvider,
622
+ * this won't affect their own prefixCls, but just allow nested antd components to keep their ant prefix.
623
+ */
624
+ const RestoreAntDDefaultClsPrefix = _ref5 => {
625
+ let {
626
+ children
627
+ } = _ref5;
628
+ return jsx(ConfigProvider, {
629
+ prefixCls: "ant",
630
+ children: children
631
+ });
632
+ };
633
+
634
+ function useDesignSystemContext() {
635
+ return useContext(DesignSystemContext);
636
+ }
637
+
638
+ function useDesignSystemFlags() {
639
+ const context = useDesignSystemContext();
640
+ return context.flags;
641
+ }
642
+
643
+ const getIconEmotionStyles = (theme, useNewIcons) => {
644
+ return /*#__PURE__*/css({
645
+ ...(useNewIcons && {
646
+ fontSize: theme.general.iconFontSizeNew
647
+ })
648
+ }, process.env.NODE_ENV === "production" ? "" : ";label:getIconEmotionStyles;");
649
+ };
650
+ const getIconValidationColor = (theme, color) => {
651
+ switch (color) {
652
+ case 'success':
653
+ return theme.colors.textValidationSuccess;
654
+ case 'warning':
655
+ return theme.colors.textValidationWarning;
656
+ case 'danger':
657
+ return theme.colors.textValidationDanger;
658
+ default:
659
+ return color;
660
+ }
661
+ };
662
+ const Icon = props => {
663
+ const {
664
+ component: Component,
665
+ dangerouslySetAntdProps,
666
+ color,
667
+ style,
668
+ ...otherProps
669
+ } = props;
670
+ const {
671
+ theme
672
+ } = useDesignSystemTheme();
673
+ const {
674
+ USE_NEW_ICONS
675
+ } = useDesignSystemFlags();
676
+ const MemoizedComponent = useMemo(() => Component ? _ref => {
677
+ let {
678
+ fill,
679
+ ...iconProps
680
+ } = _ref;
681
+ return (
682
+ // We don't rely on top-level fills for our colors. Fills are specified
683
+ // with "currentColor" on children of the top-most svg.
684
+ jsx(Component, {
685
+ fill: "none",
686
+ ...iconProps
687
+ })
688
+ );
689
+ } : undefined, [Component]);
690
+ return jsx(DesignSystemAntDConfigProvider, {
691
+ children: jsx(AntDIcon, {
692
+ css: getIconEmotionStyles(theme, USE_NEW_ICONS),
693
+ component: MemoizedComponent,
694
+ style: {
695
+ color: getIconValidationColor(theme, color),
696
+ ...style
697
+ },
698
+ ...otherProps,
699
+ ...dangerouslySetAntdProps
700
+ })
701
+ });
702
+ };
703
+
704
+ function SvgNewWindowIconV1(props) {
705
+ return jsx("svg", {
706
+ width: "1em",
707
+ height: "1em",
708
+ viewBox: "0 0 24 24",
709
+ fill: "none",
710
+ xmlns: "http://www.w3.org/2000/svg",
711
+ ...props,
712
+ children: jsx("path", {
713
+ fillRule: "evenodd",
714
+ clipRule: "evenodd",
715
+ d: "M5 18c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-5c0-.55.45-1 1-1s1 .45 1 1v6c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V5a2 2 0 012-2h6c.55 0 1 .45 1 1s-.45 1-1 1H6c-.55 0-1 .45-1 1v12zM15 5c-.55 0-1-.45-1-1s.45-1 1-1h5c.55 0 1 .45 1 1v5c0 .55-.45 1-1 1s-1-.45-1-1V6.41l-9.13 9.13a.996.996 0 11-1.41-1.41L17.59 5H15z",
716
+ fill: "currentColor"
717
+ })
718
+ });
719
+ }
720
+ function SvgNewWindowIconV2(props) {
721
+ return jsxs("svg", {
722
+ width: "1em",
723
+ height: "1em",
724
+ viewBox: "0 0 16 16",
725
+ fill: "none",
726
+ xmlns: "http://www.w3.org/2000/svg",
727
+ ...props,
728
+ children: [jsx("path", {
729
+ d: "M10 1h5v5h-1.5V3.56L8.53 8.53 7.47 7.47l4.97-4.97H10V1z",
730
+ fill: "currentColor"
731
+ }), jsx("path", {
732
+ d: "M1 2.75A.75.75 0 011.75 2H8v1.5H2.5v10h10V8H14v6.25a.75.75 0 01-.75.75H1.75a.75.75 0 01-.75-.75V2.75z",
733
+ fill: "currentColor"
734
+ })]
735
+ });
736
+ }
737
+ function NewWindowIcon(props) {
738
+ const {
739
+ USE_NEW_ICONS
740
+ } = useDesignSystemFlags();
741
+ const component = USE_NEW_ICONS ? SvgNewWindowIconV2 : SvgNewWindowIconV1;
742
+ return jsx(Icon, {
743
+ ...props,
744
+ component: component
745
+ });
746
+ }
747
+
748
+ function SvgSortAscendingIcon(props) {
749
+ return jsx("svg", {
750
+ width: "1em",
751
+ height: "1em",
752
+ viewBox: "0 0 16 16",
753
+ fill: "none",
754
+ xmlns: "http://www.w3.org/2000/svg",
755
+ ...props,
756
+ children: jsx("path", {
757
+ d: "M11.5.94l4.03 4.03-1.06 1.06-2.22-2.22V10h-1.5V3.81L8.53 6.03 7.47 4.97 11.5.94zM1 4.5h4V6H1V4.5zM1 12.5h10V14H1v-1.5zM8 8.5H1V10h7V8.5z",
758
+ fill: "currentColor"
759
+ })
760
+ });
761
+ }
762
+ function SortAscendingIcon(props) {
763
+ return jsx(Icon, {
764
+ ...props,
765
+ component: SvgSortAscendingIcon
766
+ });
767
+ }
768
+
769
+ function SvgSortDescendingIcon(props) {
770
+ return jsx("svg", {
771
+ width: "1em",
772
+ height: "1em",
773
+ viewBox: "0 0 16 16",
774
+ fill: "none",
775
+ xmlns: "http://www.w3.org/2000/svg",
776
+ ...props,
777
+ children: jsx("path", {
778
+ fillRule: "evenodd",
779
+ clipRule: "evenodd",
780
+ d: "M1 3.5h10V2H1v1.5zm0 8h4V10H1v1.5zm7-4H1V6h7v1.5zm3.5 7.56l4.03-4.03-1.06-1.06-2.22 2.22V6h-1.5v6.19L8.53 9.97l-1.06 1.06 4.03 4.03z",
781
+ fill: "currentColor"
782
+ })
783
+ });
784
+ }
785
+ function SortDescendingIcon(props) {
786
+ return jsx(Icon, {
787
+ ...props,
788
+ component: SvgSortDescendingIcon
789
+ });
790
+ }
791
+
792
+ function SvgSortUnsortedIcon(props) {
793
+ return jsx("svg", {
794
+ width: "1em",
795
+ height: "1em",
796
+ viewBox: "0 0 16 16",
797
+ fill: "none",
798
+ xmlns: "http://www.w3.org/2000/svg",
799
+ ...props,
800
+ children: jsx("path", {
801
+ d: "M11.5.94L7.47 4.97l1.06 1.06 2.22-2.22v8.38L8.53 9.97l-1.06 1.06 4.03 4.03 4.03-4.03-1.06-1.06-2.22 2.22V3.81l2.22 2.22 1.06-1.06L11.5.94zM6 3.5H1V5h5V3.5zM6 11.5H1V13h5v-1.5zM1 7.5h5V9H1V7.5z",
802
+ fill: "currentColor"
803
+ })
804
+ });
805
+ }
806
+ function SortUnsortedIcon(props) {
807
+ return jsx(Icon, {
808
+ ...props,
809
+ component: SvgSortUnsortedIcon
810
+ });
811
+ }
812
+
813
+ const ColorVars = {
814
+ primary: 'textPrimary',
815
+ secondary: 'textSecondary',
816
+ info: 'textValidationInfo',
817
+ error: 'textValidationDanger',
818
+ success: 'textValidationSuccess',
819
+ warning: 'textValidationWarning'
820
+ };
821
+
822
+ /**
823
+ * Recursively appends `!important` to all CSS properties in an Emotion `CSSObject`.
824
+ * Used to ensure that we always override Ant styles, without worrying about selector precedence.
825
+ */
826
+ function importantify(obj) {
827
+ return _mapValues(obj, (value, key) => {
828
+ if (_isString(value) || _isNumber(value) || _isBoolean(value)) {
829
+ // Make sure we don't double-append important
830
+ if (_isString(value) && _endsWith(value, '!important')) {
831
+ return value;
832
+ }
833
+ if (_isNumber(value)) {
834
+ if (unitless[key]) {
835
+ return "".concat(value, "!important");
836
+ }
837
+ return "".concat(value, "px!important");
838
+ }
839
+ return "".concat(value, "!important");
840
+ }
841
+ if (_isNil(value)) {
842
+ return value;
843
+ }
844
+ return importantify(value);
845
+ });
846
+ }
847
+
848
+ /**
849
+ * Returns a text color, in case of invalid/missing key and missing fallback color it will return textPrimary
850
+ * @param theme
851
+ * @param key - key of TypographyColor
852
+ * @param fallbackColor - color to return as fallback -- used to remove tertiary check inline
853
+ */
854
+ function getTypographyColor(theme, key, fallbackColor) {
855
+ if (theme && key && Object(theme.colors).hasOwnProperty(ColorVars[key])) {
856
+ return theme.colors[ColorVars[key]];
857
+ }
858
+ return fallbackColor !== null && fallbackColor !== void 0 ? fallbackColor : theme.colors.textPrimary;
859
+ }
860
+
861
+ /**
862
+ * Returns validation color based on state, has default validation colors if params are not provided
863
+ * @param theme
864
+ * @param validationState
865
+ * @param errorColor
866
+ * @param warningColor
867
+ * @param successColor
868
+ */
869
+ function getValidationStateColor(theme, validationState) {
870
+ let {
871
+ errorColor,
872
+ warningColor,
873
+ successColor
874
+ } = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
875
+ switch (validationState) {
876
+ case 'error':
877
+ return errorColor || theme.colors.actionDangerPrimaryBackgroundDefault;
878
+ case 'warning':
879
+ return warningColor || theme.colors.textValidationWarning;
880
+ case 'success':
881
+ return successColor || theme.colors.textValidationSuccess;
882
+ default:
883
+ return undefined;
884
+ }
885
+ }
886
+
887
+ function getCheckboxEmotionStyles(clsPrefix, theme) {
888
+ let isHorizontal = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
889
+ let useNewCheckboxStyles = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
890
+ const classInput = ".".concat(clsPrefix, "-input");
891
+ const classInner = ".".concat(clsPrefix, "-inner");
892
+ const classIndeterminate = ".".concat(clsPrefix, "-indeterminate");
893
+ const classChecked = ".".concat(clsPrefix, "-checked");
894
+ const classDisabled = ".".concat(clsPrefix, "-disabled");
895
+ const classDisabledWrapper = ".".concat(clsPrefix, "-wrapper-disabled");
896
+ const classContainer = ".".concat(clsPrefix, "-group");
897
+ const classWrapper = ".".concat(clsPrefix, "-wrapper");
898
+ const defaultSelector = "".concat(classInput, " + ").concat(classInner);
899
+ const hoverSelector = "".concat(classInput, ":hover + ").concat(classInner);
900
+ const pressSelector = "".concat(classInput, ":active + ").concat(classInner);
901
+ const styles = {
902
+ ...(useNewCheckboxStyles && {
903
+ [".".concat(clsPrefix)]: {
904
+ top: 'unset',
905
+ lineHeight: theme.typography.lineHeightBase
906
+ },
907
+ ["&".concat(classWrapper, ", ").concat(classWrapper)]: {
908
+ alignItems: 'center',
909
+ lineHeight: theme.typography.lineHeightBase
910
+ }
911
+ }),
912
+ // Top level styles are for the unchecked state
913
+ [classInner]: {
914
+ borderColor: theme.colors.actionDefaultBorderDefault
915
+ },
916
+ // Layout styling
917
+ ["&".concat(classContainer)]: {
918
+ display: 'flex',
919
+ flexDirection: 'column',
920
+ rowGap: theme.spacing.sm,
921
+ columnGap: 0
922
+ },
923
+ ...(isHorizontal && {
924
+ ["&".concat(classContainer)]: {
925
+ display: 'flex',
926
+ flexDirection: 'row',
927
+ columnGap: theme.spacing.sm,
928
+ rowGap: 0,
929
+ ["& > ".concat(classContainer, "-item")]: {
930
+ marginRight: 0
931
+ }
932
+ }
933
+ }),
934
+ // Keyboard focus
935
+ ["".concat(classInput, ":focus-visible + ").concat(classInner)]: {
936
+ outlineWidth: '2px',
937
+ outlineColor: theme.colors.primary,
938
+ outlineOffset: '4px',
939
+ outlineStyle: 'solid'
940
+ },
941
+ // Hover
942
+ [hoverSelector]: {
943
+ backgroundColor: theme.colors.actionDefaultBackgroundHover,
944
+ borderColor: theme.colors.actionPrimaryBackgroundHover
945
+ },
946
+ // Mouse pressed
947
+ [pressSelector]: {
948
+ backgroundColor: theme.colors.actionDefaultBackgroundPress,
949
+ borderColor: theme.colors.actionPrimaryBackgroundPress
950
+ },
951
+ // Checked state
952
+ [classChecked]: {
953
+ '&::after': {
954
+ border: 'none'
955
+ },
956
+ [defaultSelector]: {
957
+ backgroundColor: theme.colors.actionPrimaryBackgroundDefault,
958
+ borderColor: 'transparent'
959
+ },
960
+ // Checked hover
961
+ [hoverSelector]: {
962
+ backgroundColor: theme.colors.actionPrimaryBackgroundHover,
963
+ borderColor: 'transparent'
964
+ },
965
+ // Checked and mouse pressed
966
+ [pressSelector]: {
967
+ backgroundColor: theme.colors.actionPrimaryBackgroundPress,
968
+ borderColor: 'transparent'
969
+ }
970
+ },
971
+ // Indeterminate
972
+ [classIndeterminate]: {
973
+ [classInner]: {
974
+ backgroundColor: theme.colors.actionPrimaryBackgroundDefault,
975
+ borderColor: theme.colors.actionPrimaryBackgroundDefault,
976
+ // The after pseudo-element is used for the check image itself
977
+ '&:after': {
978
+ backgroundColor: theme.colors.white,
979
+ height: '3px',
980
+ width: '8px',
981
+ borderRadius: '4px'
982
+ }
983
+ },
984
+ // Indeterminate hover
985
+ [hoverSelector]: {
986
+ backgroundColor: theme.colors.actionPrimaryBackgroundHover,
987
+ borderColor: 'transparent'
988
+ },
989
+ // Indeterminate and mouse pressed
990
+ [pressSelector]: {
991
+ backgroundColor: theme.colors.actionPrimaryBackgroundPress
992
+ }
993
+ },
994
+ // Disabled state
995
+ ["&".concat(classDisabledWrapper)]: {
996
+ [classDisabled]: {
997
+ // Disabled Checked
998
+ ["&".concat(classChecked)]: {
999
+ [classInner]: {
1000
+ backgroundColor: theme.colors.actionDisabledBackground,
1001
+ borderColor: theme.colors.actionDisabledBackground
1002
+ },
1003
+ // Disabled checked hover
1004
+ [hoverSelector]: {
1005
+ backgroundColor: theme.colors.actionDisabledBackground,
1006
+ borderColor: theme.colors.actionDisabledBackground
1007
+ }
1008
+ },
1009
+ // Disabled indeterminate
1010
+ ["&".concat(classIndeterminate)]: {
1011
+ [classInner]: {
1012
+ backgroundColor: theme.colors.actionDisabledBackground,
1013
+ borderColor: theme.colors.actionDisabledBackground
1014
+ },
1015
+ // Disabled indeterminate hover
1016
+ [hoverSelector]: {
1017
+ backgroundColor: theme.colors.actionDisabledBackground,
1018
+ borderColor: theme.colors.actionDisabledBackground
1019
+ }
1020
+ },
1021
+ // Disabled unchecked
1022
+ [classInner]: {
1023
+ backgroundColor: theme.colors.actionDisabledBackground,
1024
+ borderColor: theme.colors.actionDisabledBackground,
1025
+ // The after pseudo-element is used for the check image itself
1026
+ '&:after': {
1027
+ borderColor: theme.colors.white
1028
+ }
1029
+ },
1030
+ // Disabled hover
1031
+ [hoverSelector]: {
1032
+ backgroundColor: theme.colors.actionDisabledBackground,
1033
+ borderColor: theme.colors.actionDisabledBackground
1034
+ },
1035
+ '& + span': {
1036
+ color: theme.colors.actionDisabledText
1037
+ }
1038
+ }
1039
+ },
1040
+ // Animation
1041
+ ...getAnimationCss(theme.options.enableAnimation)
1042
+ };
1043
+ return styles;
1044
+ }
1045
+ const getWrapperStyle = _ref => {
1046
+ let {
1047
+ clsPrefix,
1048
+ theme,
1049
+ wrapperStyle = {},
1050
+ useNewStyles
1051
+ } = _ref;
1052
+ const styles = {
1053
+ ...(useNewStyles && {
1054
+ ["&& + .".concat(clsPrefix, "-hint, && + .").concat(clsPrefix, "-form-message")]: {
1055
+ paddingLeft: theme.spacing.lg,
1056
+ marginTop: 0
1057
+ }
1058
+ }),
1059
+ ...wrapperStyle
1060
+ };
1061
+ return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getWrapperStyle;");
1062
+ };
1063
+ const DuboisCheckbox = /*#__PURE__*/forwardRef(function Checkbox(_ref2, ref) {
1064
+ let {
1065
+ isChecked,
1066
+ onChange,
1067
+ children,
1068
+ isDisabled = false,
1069
+ style,
1070
+ wrapperStyle,
1071
+ dangerouslySetAntdProps,
1072
+ className,
1073
+ ...restProps
1074
+ } = _ref2;
1075
+ const {
1076
+ theme,
1077
+ classNamePrefix,
1078
+ getPrefixedClassName
1079
+ } = useDesignSystemTheme();
1080
+ const {
1081
+ USE_NEW_CHECKBOX_STYLES
1082
+ } = useDesignSystemFlags();
1083
+ const clsPrefix = getPrefixedClassName('checkbox');
1084
+ return jsx(DesignSystemAntDConfigProvider, {
1085
+ children: jsx("div", {
1086
+ className: classnames(className, "".concat(clsPrefix, "-container")),
1087
+ css: getWrapperStyle({
1088
+ clsPrefix: classNamePrefix,
1089
+ theme,
1090
+ wrapperStyle,
1091
+ useNewStyles: USE_NEW_CHECKBOX_STYLES
1092
+ }),
1093
+ children: jsx(Checkbox$1, {
1094
+ checked: isChecked === null ? undefined : isChecked,
1095
+ ref: ref,
1096
+ onChange: onChange ? event => {
1097
+ onChange(event.target.checked, event);
1098
+ } : undefined,
1099
+ disabled: isDisabled,
1100
+ indeterminate: isChecked === null
1101
+ // Individual checkboxes don't depend on isHorizontal flag, orientation and spacing is handled by end users
1102
+ ,
1103
+ css: /*#__PURE__*/css(importantify(getCheckboxEmotionStyles(clsPrefix, theme, false, USE_NEW_CHECKBOX_STYLES)), process.env.NODE_ENV === "production" ? "" : ";label:DuboisCheckbox;"),
1104
+ style: style,
1105
+ "aria-checked": isChecked === null ? 'mixed' : isChecked,
1106
+ ...restProps,
1107
+ ...dangerouslySetAntdProps,
1108
+ children: children
1109
+ })
1110
+ })
1111
+ });
1112
+ });
1113
+ const CheckboxGroup = /*#__PURE__*/forwardRef(function CheckboxGroup(_ref3, ref) {
1114
+ let {
1115
+ layout = 'vertical',
1116
+ ...props
1117
+ } = _ref3;
1118
+ const {
1119
+ theme,
1120
+ getPrefixedClassName
1121
+ } = useDesignSystemTheme();
1122
+ const clsPrefix = getPrefixedClassName('checkbox');
1123
+ const {
1124
+ USE_NEW_CHECKBOX_STYLES
1125
+ } = useDesignSystemFlags();
1126
+ return jsx(DesignSystemAntDConfigProvider, {
1127
+ children: jsx(Checkbox$1.Group, {
1128
+ ref: ref,
1129
+ ...props,
1130
+ css: getCheckboxEmotionStyles(clsPrefix, theme, layout === 'horizontal', USE_NEW_CHECKBOX_STYLES)
1131
+ })
1132
+ });
1133
+ });
1134
+ const CheckboxNamespace = /* #__PURE__ */Object.assign(DuboisCheckbox, {
1135
+ Group: CheckboxGroup
1136
+ });
1137
+ const Checkbox = CheckboxNamespace;
1138
+
1139
+ // TODO: I'm doing this to support storybook's docgen;
1140
+ // We should remove this once we have a better storybook integration,
1141
+ // since these will be exposed in the library's exports.
1142
+ const __INTERNAL_DO_NOT_USE__Group = CheckboxGroup;
1143
+
1144
+ const getLinkStyles = (theme, clsPrefix, useNewIcons) => {
1145
+ const classTypography = ".".concat(clsPrefix, "-typography");
1146
+ const styles = {
1147
+ ["&".concat(classTypography, ", &").concat(classTypography, ":focus")]: {
1148
+ color: theme.colors.actionTertiaryTextDefault
1149
+ },
1150
+ ["&".concat(classTypography, ":hover, &").concat(classTypography, ":hover .anticon")]: {
1151
+ color: theme.colors.actionTertiaryTextHover,
1152
+ textDecoration: 'underline'
1153
+ },
1154
+ ["&".concat(classTypography, ":active, &").concat(classTypography, ":active .anticon")]: {
1155
+ color: theme.colors.actionTertiaryTextPress,
1156
+ textDecoration: 'underline'
1157
+ },
1158
+ ["&".concat(classTypography, ":focus-visible")]: {
1159
+ textDecoration: 'underline'
1160
+ },
1161
+ ...(useNewIcons && {
1162
+ '.anticon': {
1163
+ fontSize: 12
1164
+ }
1165
+ })
1166
+ };
1167
+ return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getLinkStyles;");
1168
+ };
1169
+ const getEllipsisNewTabLinkStyles = () => {
1170
+ const styles = {
1171
+ paddingRight: 'calc(2px + 1em)',
1172
+ // 1em for icon
1173
+ position: 'relative'
1174
+ };
1175
+ return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getEllipsisNewTabLinkStyles;");
1176
+ };
1177
+ const getIconStyles = theme => {
1178
+ const styles = {
1179
+ marginLeft: 2,
1180
+ color: theme.colors.actionTertiaryTextDefault
1181
+ };
1182
+ return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getIconStyles;");
1183
+ };
1184
+ const getEllipsisIconStyles = useNewIcons => {
1185
+ const styles = {
1186
+ position: 'absolute',
1187
+ right: 0,
1188
+ bottom: 0,
1189
+ top: 0,
1190
+ display: 'flex',
1191
+ alignItems: 'center',
1192
+ ...(useNewIcons && {
1193
+ fontSize: 12
1194
+ })
1195
+ };
1196
+ return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getEllipsisIconStyles;");
1197
+ };
1198
+ function Link(_ref) {
1199
+ let {
1200
+ dangerouslySetAntdProps,
1201
+ ...props
1202
+ } = _ref;
1203
+ const {
1204
+ children,
1205
+ openInNewTab,
1206
+ ...restProps
1207
+ } = props;
1208
+ const {
1209
+ theme,
1210
+ classNamePrefix
1211
+ } = useDesignSystemTheme();
1212
+ const {
1213
+ USE_NEW_ICONS: useNewIcons
1214
+ } = useDesignSystemFlags();
1215
+ const newTabProps = {
1216
+ rel: 'noopener noreferrer',
1217
+ target: '_blank'
1218
+ };
1219
+ const linkProps = openInNewTab ? {
1220
+ ...restProps,
1221
+ ...newTabProps
1222
+ } : {
1223
+ ...restProps
1224
+ };
1225
+ const linkStyles = props.ellipsis && openInNewTab ? [getLinkStyles(theme, classNamePrefix, useNewIcons), getEllipsisNewTabLinkStyles()] : getLinkStyles(theme, classNamePrefix, useNewIcons);
1226
+ const iconStyles = props.ellipsis ? [getIconStyles(theme), getEllipsisIconStyles()] : getIconStyles(theme);
1227
+ return jsx(DesignSystemAntDConfigProvider, {
1228
+ children: jsxs(Typography$1.Link, {
1229
+ css: linkStyles,
1230
+ ...linkProps,
1231
+ ...dangerouslySetAntdProps,
1232
+ children: [children, openInNewTab ? jsx(NewWindowIcon, {
1233
+ css: iconStyles,
1234
+ ...newTabProps
1235
+ }) : null]
1236
+ })
1237
+ });
1238
+ }
1239
+
1240
+ const {
1241
+ Paragraph: AntDParagraph
1242
+ } = Typography$1;
1243
+ function getParagraphEmotionStyles(theme, props) {
1244
+ return /*#__PURE__*/css({
1245
+ '&&': {
1246
+ fontSize: theme.typography.fontSizeBase,
1247
+ lineHeight: theme.typography.lineHeightBase,
1248
+ color: getTypographyColor(theme, props.color, theme.colors.textPrimary)
1249
+ }
1250
+ }, props.disabled && {
1251
+ '&&': {
1252
+ color: theme.colors.actionDisabledText
1253
+ }
1254
+ }, props.withoutMargins && {
1255
+ '&&': {
1256
+ marginTop: 0,
1257
+ marginBottom: 0
1258
+ }
1259
+ }, process.env.NODE_ENV === "production" ? "" : ";label:getParagraphEmotionStyles;");
1260
+ }
1261
+ function Paragraph(userProps) {
1262
+ const {
1263
+ dangerouslySetAntdProps,
1264
+ withoutMargins,
1265
+ color,
1266
+ ...props
1267
+ } = userProps;
1268
+ const {
1269
+ theme
1270
+ } = useDesignSystemTheme();
1271
+ return jsx(DesignSystemAntDConfigProvider, {
1272
+ children: jsx(AntDParagraph, {
1273
+ ...props,
1274
+ className: props.className,
1275
+ css: getParagraphEmotionStyles(theme, userProps),
1276
+ ...dangerouslySetAntdProps
1277
+ })
1278
+ });
1279
+ }
1280
+
1281
+ const {
1282
+ Text: AntDText
1283
+ } = Typography$1;
1284
+ function getTextEmotionStyles(theme, props) {
1285
+ return /*#__PURE__*/css({
1286
+ '&&': {
1287
+ fontSize: theme.typography.fontSizeBase,
1288
+ lineHeight: theme.typography.lineHeightBase,
1289
+ color: getTypographyColor(theme, props.color, theme.colors.textPrimary)
1290
+ }
1291
+ }, props.disabled && {
1292
+ '&&': {
1293
+ color: theme.colors.actionDisabledText
1294
+ }
1295
+ }, props.hint && {
1296
+ '&&': {
1297
+ fontSize: theme.typography.fontSizeSm,
1298
+ lineHeight: theme.typography.lineHeightSm
1299
+ }
1300
+ }, props.bold && {
1301
+ '&&': {
1302
+ fontSize: theme.typography.fontSizeBase,
1303
+ fontWeight: theme.typography.typographyBoldFontWeight,
1304
+ lineHeight: theme.typography.lineHeightBase
1305
+ }
1306
+ }, props.code && {
1307
+ '&& > code': {
1308
+ fontSize: theme.typography.fontSizeBase,
1309
+ lineHeight: theme.typography.lineHeightBase,
1310
+ fontWeight: theme.typography.typographyBoldFontWeight,
1311
+ background: theme.colors.typographyCodeBg,
1312
+ fontFamily: 'monospace',
1313
+ borderRadius: theme.borders.borderRadiusMd,
1314
+ padding: '2px 4px',
1315
+ border: 'unset',
1316
+ margin: 0
1317
+ }
1318
+ }, props.size && {
1319
+ '&&': (() => {
1320
+ switch (props.size) {
1321
+ case 'xxl':
1322
+ return {
1323
+ fontSize: theme.typography.fontSizeXxl,
1324
+ lineHeight: theme.typography.lineHeightXxl
1325
+ };
1326
+ case 'xl':
1327
+ return {
1328
+ fontSize: theme.typography.fontSizeXl,
1329
+ lineHeight: theme.typography.lineHeightXl
1330
+ };
1331
+ case 'lg':
1332
+ return {
1333
+ fontSize: theme.typography.fontSizeLg,
1334
+ lineHeight: theme.typography.lineHeightLg
1335
+ };
1336
+ case 'sm':
1337
+ return {
1338
+ fontSize: theme.typography.fontSizeSm,
1339
+ lineHeight: theme.typography.lineHeightSm
1340
+ };
1341
+ default:
1342
+ return {
1343
+ fontSize: theme.typography.fontSizeMd,
1344
+ lineHeight: theme.typography.lineHeightMd
1345
+ };
1346
+ }
1347
+ })()
1348
+ }, props.withoutMargins && {
1349
+ '&&': {
1350
+ marginTop: 0,
1351
+ marginBottom: 0
1352
+ }
1353
+ }, process.env.NODE_ENV === "production" ? "" : ";label:getTextEmotionStyles;");
1354
+ }
1355
+ function Text(userProps) {
1356
+ // Omit props that are not supported by `antd`
1357
+ const {
1358
+ dangerouslySetAntdProps,
1359
+ bold,
1360
+ hint,
1361
+ withoutMargins,
1362
+ color,
1363
+ ...props
1364
+ } = userProps;
1365
+ const {
1366
+ theme
1367
+ } = useDesignSystemTheme();
1368
+ return jsx(DesignSystemAntDConfigProvider, {
1369
+ children: jsx(AntDText, {
1370
+ ...props,
1371
+ className: props.className,
1372
+ css: getTextEmotionStyles(theme, userProps),
1373
+ ...dangerouslySetAntdProps
1374
+ })
1375
+ });
1376
+ }
1377
+
1378
+ const {
1379
+ Title: AntDTitle
1380
+ } = Typography$1;
1381
+ function getLevelStyles(theme, props) {
1382
+ switch (props.level) {
1383
+ case 1:
1384
+ return /*#__PURE__*/css({
1385
+ '&&': {
1386
+ fontSize: theme.typography.fontSizeXxl,
1387
+ lineHeight: theme.typography.lineHeightXxl,
1388
+ fontWeight: theme.typography.typographyBoldFontWeight
1389
+ }
1390
+ }, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
1391
+ case 2:
1392
+ return /*#__PURE__*/css({
1393
+ '&&': {
1394
+ fontSize: theme.typography.fontSizeXl,
1395
+ lineHeight: theme.typography.lineHeightXl,
1396
+ fontWeight: theme.typography.typographyBoldFontWeight
1397
+ }
1398
+ }, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
1399
+ case 3:
1400
+ return /*#__PURE__*/css({
1401
+ '&&': {
1402
+ fontSize: theme.typography.fontSizeLg,
1403
+ lineHeight: theme.typography.lineHeightLg,
1404
+ fontWeight: theme.typography.typographyBoldFontWeight
1405
+ }
1406
+ }, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
1407
+ case 4:
1408
+ default:
1409
+ return /*#__PURE__*/css({
1410
+ '&&': {
1411
+ fontSize: theme.typography.fontSizeMd,
1412
+ lineHeight: theme.typography.lineHeightMd,
1413
+ fontWeight: theme.typography.typographyBoldFontWeight
1414
+ }
1415
+ }, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
1416
+ }
1417
+ }
1418
+ function getTitleEmotionStyles(theme, props) {
1419
+ return /*#__PURE__*/css(getLevelStyles(theme, props), {
1420
+ '&&': {
1421
+ color: getTypographyColor(theme, props.color, theme.colors.textPrimary)
1422
+ }
1423
+ }, props.withoutMargins && {
1424
+ '&&': {
1425
+ marginTop: '0 !important',
1426
+ // override general styling
1427
+ marginBottom: '0 !important' // override general styling
1428
+ }
1429
+ }, process.env.NODE_ENV === "production" ? "" : ";label:getTitleEmotionStyles;");
1430
+ }
1431
+ function Title(userProps) {
1432
+ const {
1433
+ dangerouslySetAntdProps,
1434
+ withoutMargins,
1435
+ color,
1436
+ ...props
1437
+ } = userProps;
1438
+ const {
1439
+ theme
1440
+ } = useDesignSystemTheme();
1441
+ return jsx(DesignSystemAntDConfigProvider, {
1442
+ children: jsx(AntDTitle, {
1443
+ ...props,
1444
+ className: props.className,
1445
+ css: getTitleEmotionStyles(theme, userProps),
1446
+ ...dangerouslySetAntdProps
1447
+ })
1448
+ });
1449
+ }
1450
+
1451
+ const Typography = /* #__PURE__ */(() => {
1452
+ function Typography(_ref) {
1453
+ let {
1454
+ dangerouslySetAntdProps,
1455
+ ...props
1456
+ } = _ref;
1457
+ return jsx(DesignSystemAntDConfigProvider, {
1458
+ children: jsx(Typography$1, {
1459
+ ...props,
1460
+ ...dangerouslySetAntdProps
1461
+ })
1462
+ });
1463
+ }
1464
+ Typography.Text = Text;
1465
+ Typography.Title = Title;
1466
+ Typography.Paragraph = Paragraph;
1467
+ Typography.Link = Link;
1468
+ return Typography;
1469
+ })();
1470
+
1471
+ export { ApplyDesignSystemContextOverrides as A, Checkbox as C, DesignSystemAntDConfigProvider as D, Icon as I, NewWindowIcon as N, RestoreAntDDefaultClsPrefix as R, SortAscendingIcon as S, Typography as T, WithDesignSystemThemeHoc as W, __INTERNAL_DO_NOT_USE__Group as _, useDesignSystemFlags as a, useDesignSystemContext as b, getValidationStateColor as c, Title as d, DU_BOIS_ENABLE_ANIMATION_CLASSNAME as e, getWrapperStyle as f, getAnimationCss as g, DesignSystemContext as h, importantify as i, DesignSystemProvider as j, ApplyDesignSystemFlags as k, lightColorList as l, useAntDConfigProviderContext as m, SortDescendingIcon as n, SortUnsortedIcon as o, useDesignSystemTheme as u };
1472
+ //# sourceMappingURL=Typography-74e19785.js.map