@databricks/design-system 1.12.12 → 1.12.13

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 (105) hide show
  1. package/dist/{DropdownMenu-06a1051f.js → DropdownMenu-dbeef1b7.js} +611 -298
  2. package/dist/DropdownMenu-dbeef1b7.js.map +1 -0
  3. package/dist/design-system/Button/Button.d.ts +3 -0
  4. package/dist/design-system/Button/Button.d.ts.map +1 -1
  5. package/dist/design-system/DesignSystemEventProvider/DesignSystemEventProvider.d.ts +44 -0
  6. package/dist/design-system/DesignSystemEventProvider/DesignSystemEventProvider.d.ts.map +1 -0
  7. package/dist/design-system/DesignSystemEventProvider/index.d.ts +2 -0
  8. package/dist/design-system/DesignSystemEventProvider/index.d.ts.map +1 -0
  9. package/dist/design-system/DialogCombobox/DialogComboboxContent.d.ts.map +1 -1
  10. package/dist/design-system/DialogCombobox/DialogComboboxHintRow.d.ts.map +1 -1
  11. package/dist/design-system/DialogCombobox/DialogComboboxOptionListCheckboxItem.d.ts.map +1 -1
  12. package/dist/design-system/DialogCombobox/DialogComboboxOptionListSelectItem.d.ts +9 -0
  13. package/dist/design-system/DialogCombobox/DialogComboboxOptionListSelectItem.d.ts.map +1 -1
  14. package/dist/design-system/DialogCombobox/DialogComboboxTrigger.d.ts +7 -0
  15. package/dist/design-system/DialogCombobox/DialogComboboxTrigger.d.ts.map +1 -1
  16. package/dist/design-system/FormV2/RHFAdapters.d.ts +6 -0
  17. package/dist/design-system/FormV2/RHFAdapters.d.ts.map +1 -1
  18. package/dist/design-system/Icon/Icon.d.ts +1 -1
  19. package/dist/design-system/Icon/Icon.d.ts.map +1 -1
  20. package/dist/design-system/Icon/__generated/icons/BarStackedPercentageIcon.d.ts +5 -0
  21. package/dist/design-system/Icon/__generated/icons/BarStackedPercentageIcon.d.ts.map +1 -0
  22. package/dist/design-system/Icon/__generated/icons/ErdIcon.d.ts +5 -0
  23. package/dist/design-system/Icon/__generated/icons/ErdIcon.d.ts.map +1 -0
  24. package/dist/design-system/Icon/__generated/icons/ListClearIcon.d.ts +5 -0
  25. package/dist/design-system/Icon/__generated/icons/ListClearIcon.d.ts.map +1 -0
  26. package/dist/design-system/Icon/__generated/icons/PauseIcon.d.ts +5 -0
  27. package/dist/design-system/Icon/__generated/icons/PauseIcon.d.ts.map +1 -0
  28. package/dist/design-system/Icon/__generated/icons/SparkleIcon.d.ts +5 -0
  29. package/dist/design-system/Icon/__generated/icons/SparkleIcon.d.ts.map +1 -0
  30. package/dist/design-system/Icon/__generated/icons/StepIntoIcon.d.ts +5 -0
  31. package/dist/design-system/Icon/__generated/icons/StepIntoIcon.d.ts.map +1 -0
  32. package/dist/design-system/Icon/__generated/icons/StepOutIcon.d.ts +5 -0
  33. package/dist/design-system/Icon/__generated/icons/StepOutIcon.d.ts.map +1 -0
  34. package/dist/design-system/Icon/__generated/icons/StepOverIcon.d.ts +5 -0
  35. package/dist/design-system/Icon/__generated/icons/StepOverIcon.d.ts.map +1 -0
  36. package/dist/design-system/Icon/__generated/icons/TableOnlineViewIcon.d.ts +5 -0
  37. package/dist/design-system/Icon/__generated/icons/TableOnlineViewIcon.d.ts.map +1 -0
  38. package/dist/design-system/Icon/__generated/icons/index.d.ts +9 -0
  39. package/dist/design-system/Icon/__generated/icons/index.d.ts.map +1 -1
  40. package/dist/design-system/Label/Label.d.ts +1 -0
  41. package/dist/design-system/Label/Label.d.ts.map +1 -1
  42. package/dist/design-system/Pagination/index.d.ts +1 -0
  43. package/dist/design-system/Pagination/index.d.ts.map +1 -1
  44. package/dist/design-system/SegmentedControl/SegmentedControl.d.ts +1 -0
  45. package/dist/design-system/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  46. package/dist/design-system/Select/Select.d.ts.map +1 -1
  47. package/dist/design-system/Steps/Steps.d.ts +1 -2
  48. package/dist/design-system/Steps/Steps.d.ts.map +1 -1
  49. package/dist/design-system/TableUI/Table.d.ts.map +1 -1
  50. package/dist/design-system/TableUI/TableRow.d.ts.map +1 -1
  51. package/dist/design-system/Tag/index.d.ts +2 -2
  52. package/dist/design-system/Tag/index.d.ts.map +1 -1
  53. package/dist/design-system/Tree/Tree.d.ts +24 -0
  54. package/dist/design-system/Tree/Tree.d.ts.map +1 -1
  55. package/dist/design-system/_shared_/Combobox/styles.d.ts +3 -0
  56. package/dist/design-system/_shared_/Combobox/styles.d.ts.map +1 -1
  57. package/dist/design-system/constants.d.ts +2 -2
  58. package/dist/design-system/constants.d.ts.map +1 -1
  59. package/dist/design-system/index.d.ts +1 -0
  60. package/dist/design-system/index.d.ts.map +1 -1
  61. package/dist/development/Banner/Banner.d.ts +1 -2
  62. package/dist/development/Banner/Banner.d.ts.map +1 -1
  63. package/dist/development/Toolbar/Toolbar.d.ts +15 -0
  64. package/dist/development/Toolbar/Toolbar.d.ts.map +1 -0
  65. package/dist/development/Toolbar/index.d.ts +2 -0
  66. package/dist/development/Toolbar/index.d.ts.map +1 -0
  67. package/dist/development/index.d.ts +3 -2
  68. package/dist/development/index.d.ts.map +1 -1
  69. package/dist/development.js +379 -249
  70. package/dist/development.js.map +1 -1
  71. package/dist/dubois-colors.less +203 -140
  72. package/dist/flags.d.ts +1 -2
  73. package/dist/flags.d.ts.map +1 -1
  74. package/dist/index-dark.css +289 -289
  75. package/dist/index.css +128 -128
  76. package/dist/index.js +672 -244
  77. package/dist/index.js.map +1 -1
  78. package/dist/rollup/less.d.ts.map +1 -1
  79. package/dist/test-utils/enzyme/selectEvent.d.ts +5 -0
  80. package/dist/test-utils/enzyme/selectEvent.d.ts.map +1 -1
  81. package/dist/test-utils/enzyme/table.d.ts.map +1 -1
  82. package/dist/test-utils/enzyme/utils.d.ts +6 -0
  83. package/dist/test-utils/enzyme/utils.d.ts.map +1 -1
  84. package/dist/test-utils/enzyme.js +34 -15
  85. package/dist/test-utils/enzyme.js.map +1 -1
  86. package/dist/test-utils/rtl/selectEvent.d.ts +5 -0
  87. package/dist/test-utils/rtl/selectEvent.d.ts.map +1 -1
  88. package/dist/test-utils/rtl.js +16 -1
  89. package/dist/test-utils/rtl.js.map +1 -1
  90. package/dist/theme/_generated/PrimitiveColors.d.ts +3 -0
  91. package/dist/theme/_generated/PrimitiveColors.d.ts.map +1 -0
  92. package/dist/theme/_generated/SemanticColors-Dark.d.ts +3 -0
  93. package/dist/theme/_generated/SemanticColors-Dark.d.ts.map +1 -0
  94. package/dist/theme/_generated/SemanticColors-Light.d.ts +3 -0
  95. package/dist/theme/_generated/SemanticColors-Light.d.ts.map +1 -0
  96. package/dist/theme/_generated/ValidPrimitiveColors.d.ts +56 -0
  97. package/dist/theme/_generated/ValidPrimitiveColors.d.ts.map +1 -0
  98. package/dist/theme/_generated/ValidSemanticColors.d.ts +99 -0
  99. package/dist/theme/_generated/ValidSemanticColors.d.ts.map +1 -0
  100. package/dist/theme/colors.d.ts +62 -141
  101. package/dist/theme/colors.d.ts.map +1 -1
  102. package/package.json +13 -15
  103. package/dist/DropdownMenu-06a1051f.js.map +0 -1
  104. package/dist/theme/colorList.d.ts +0 -130
  105. package/dist/theme/colorList.d.ts.map +0 -1
@@ -1,9 +1,8 @@
1
- import React__default, { createContext, useContext, useMemo, useEffect, forwardRef, useRef, useLayoutEffect, useImperativeHandle, useState, Children } from 'react';
1
+ import React__default, { createContext, useContext, useMemo, useEffect, useState, forwardRef, useRef, useLayoutEffect, useImperativeHandle, Children } from 'react';
2
2
  import { jsx, Fragment, jsxs } from '@emotion/react/jsx-runtime';
3
3
  import { useTheme, ThemeProvider, css, keyframes } from '@emotion/react';
4
4
  import { notification, ConfigProvider, Button as Button$1, Typography as Typography$1, Tooltip as Tooltip$1, Input as Input$2 } from 'antd';
5
5
  import * as DropdownMenu$1 from '@radix-ui/react-dropdown-menu';
6
- import chroma from 'chroma-js';
7
6
  import _isNil from 'lodash/isNil';
8
7
  import _endsWith from 'lodash/endsWith';
9
8
  import _isBoolean from 'lodash/isBoolean';
@@ -124,13 +123,115 @@ const getShadowVariables = isDarkMode => {
124
123
  }
125
124
  };
126
125
 
126
+ // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
127
+
128
+ let ValidSemanticColors = /*#__PURE__*/function (ValidSemanticColors) {
129
+ ValidSemanticColors["ActionDangerDefaultBackgroundDefault"] = "actionDangerDefaultBackgroundDefault";
130
+ ValidSemanticColors["ActionDangerDefaultBackgroundHover"] = "actionDangerDefaultBackgroundHover";
131
+ ValidSemanticColors["ActionDangerDefaultBackgroundPress"] = "actionDangerDefaultBackgroundPress";
132
+ ValidSemanticColors["ActionDangerDefaultBorderDefault"] = "actionDangerDefaultBorderDefault";
133
+ ValidSemanticColors["ActionDangerDefaultBorderHover"] = "actionDangerDefaultBorderHover";
134
+ ValidSemanticColors["ActionDangerDefaultBorderPress"] = "actionDangerDefaultBorderPress";
135
+ ValidSemanticColors["ActionDangerDefaultTextDefault"] = "actionDangerDefaultTextDefault";
136
+ ValidSemanticColors["ActionDangerDefaultTextHover"] = "actionDangerDefaultTextHover";
137
+ ValidSemanticColors["ActionDangerDefaultTextPress"] = "actionDangerDefaultTextPress";
138
+ ValidSemanticColors["ActionDangerPrimaryBackgroundDefault"] = "actionDangerPrimaryBackgroundDefault";
139
+ ValidSemanticColors["ActionDangerPrimaryBackgroundHover"] = "actionDangerPrimaryBackgroundHover";
140
+ ValidSemanticColors["ActionDangerPrimaryBackgroundPress"] = "actionDangerPrimaryBackgroundPress";
141
+ ValidSemanticColors["ActionDangerPrimaryText"] = "actionDangerPrimaryText";
142
+ ValidSemanticColors["ActionDefaultBackgroundDefault"] = "actionDefaultBackgroundDefault";
143
+ ValidSemanticColors["ActionDefaultBackgroundHover"] = "actionDefaultBackgroundHover";
144
+ ValidSemanticColors["ActionDefaultBackgroundPress"] = "actionDefaultBackgroundPress";
145
+ ValidSemanticColors["ActionDefaultBorderDefault"] = "actionDefaultBorderDefault";
146
+ ValidSemanticColors["ActionDefaultBorderFocus"] = "actionDefaultBorderFocus";
147
+ ValidSemanticColors["ActionDefaultBorderHover"] = "actionDefaultBorderHover";
148
+ ValidSemanticColors["ActionDefaultBorderPress"] = "actionDefaultBorderPress";
149
+ ValidSemanticColors["ActionDefaultIconDefault"] = "actionDefaultIconDefault";
150
+ ValidSemanticColors["ActionDefaultIconHover"] = "actionDefaultIconHover";
151
+ ValidSemanticColors["ActionDefaultIconPress"] = "actionDefaultIconPress";
152
+ ValidSemanticColors["ActionDefaultTextDefault"] = "actionDefaultTextDefault";
153
+ ValidSemanticColors["ActionDefaultTextHover"] = "actionDefaultTextHover";
154
+ ValidSemanticColors["ActionDefaultTextPress"] = "actionDefaultTextPress";
155
+ ValidSemanticColors["ActionDisabledBackground"] = "actionDisabledBackground";
156
+ ValidSemanticColors["ActionDisabledBorder"] = "actionDisabledBorder";
157
+ ValidSemanticColors["ActionDisabledText"] = "actionDisabledText";
158
+ ValidSemanticColors["ActionIconBackgroundDefault"] = "actionIconBackgroundDefault";
159
+ ValidSemanticColors["ActionIconBackgroundHover"] = "actionIconBackgroundHover";
160
+ ValidSemanticColors["ActionIconBackgroundPress"] = "actionIconBackgroundPress";
161
+ ValidSemanticColors["ActionIconIconDefault"] = "actionIconIconDefault";
162
+ ValidSemanticColors["ActionIconIconHover"] = "actionIconIconHover";
163
+ ValidSemanticColors["ActionIconIconPress"] = "actionIconIconPress";
164
+ ValidSemanticColors["ActionLinkDefault"] = "actionLinkDefault";
165
+ ValidSemanticColors["ActionLinkHover"] = "actionLinkHover";
166
+ ValidSemanticColors["ActionLinkPress"] = "actionLinkPress";
167
+ ValidSemanticColors["ActionPrimaryBackgroundDefault"] = "actionPrimaryBackgroundDefault";
168
+ ValidSemanticColors["ActionPrimaryBackgroundHover"] = "actionPrimaryBackgroundHover";
169
+ ValidSemanticColors["ActionPrimaryBackgroundPress"] = "actionPrimaryBackgroundPress";
170
+ ValidSemanticColors["ActionPrimaryIcon"] = "actionPrimaryIcon";
171
+ ValidSemanticColors["ActionPrimaryTextDefault"] = "actionPrimaryTextDefault";
172
+ ValidSemanticColors["ActionPrimaryTextHover"] = "actionPrimaryTextHover";
173
+ ValidSemanticColors["ActionPrimaryTextPress"] = "actionPrimaryTextPress";
174
+ ValidSemanticColors["ActionTertiaryBackgroundDefault"] = "actionTertiaryBackgroundDefault";
175
+ ValidSemanticColors["ActionTertiaryBackgroundHover"] = "actionTertiaryBackgroundHover";
176
+ ValidSemanticColors["ActionTertiaryBackgroundPress"] = "actionTertiaryBackgroundPress";
177
+ ValidSemanticColors["ActionTertiaryIconDefault"] = "actionTertiaryIconDefault";
178
+ ValidSemanticColors["ActionTertiaryIconHover"] = "actionTertiaryIconHover";
179
+ ValidSemanticColors["ActionTertiaryIconPress"] = "actionTertiaryIconPress";
180
+ ValidSemanticColors["ActionTertiaryTextDefault"] = "actionTertiaryTextDefault";
181
+ ValidSemanticColors["ActionTertiaryTextHover"] = "actionTertiaryTextHover";
182
+ ValidSemanticColors["ActionTertiaryTextPress"] = "actionTertiaryTextPress";
183
+ ValidSemanticColors["BackgroundDanger"] = "backgroundDanger";
184
+ ValidSemanticColors["BackgroundInfo"] = "backgroundInfo";
185
+ ValidSemanticColors["BackgroundPrimary"] = "backgroundPrimary";
186
+ ValidSemanticColors["BackgroundSecondary"] = "backgroundSecondary";
187
+ ValidSemanticColors["BackgroundSuccess"] = "backgroundSuccess";
188
+ ValidSemanticColors["BackgroundWarning"] = "backgroundWarning";
189
+ ValidSemanticColors["Border"] = "border";
190
+ ValidSemanticColors["BorderAccessible"] = "borderAccessible";
191
+ ValidSemanticColors["BorderDanger"] = "borderDanger";
192
+ ValidSemanticColors["BorderWarning"] = "borderWarning";
193
+ ValidSemanticColors["CodeBackground"] = "codeBackground";
194
+ ValidSemanticColors["OverlayOverlay"] = "overlayOverlay";
195
+ ValidSemanticColors["Skeleton"] = "skeleton";
196
+ ValidSemanticColors["TableBackgroundSelectedDefault"] = "tableBackgroundSelectedDefault";
197
+ ValidSemanticColors["TableBackgroundSelectedHover"] = "tableBackgroundSelectedHover";
198
+ ValidSemanticColors["TableBackgroundUnselectedDefault"] = "tableBackgroundUnselectedDefault";
199
+ ValidSemanticColors["TableBackgroundUnselectedHover"] = "tableBackgroundUnselectedHover";
200
+ ValidSemanticColors["TagBrown"] = "tagBrown";
201
+ ValidSemanticColors["TagCharcoal"] = "tagCharcoal";
202
+ ValidSemanticColors["TagCoral"] = "tagCoral";
203
+ ValidSemanticColors["TagDefault"] = "tagDefault";
204
+ ValidSemanticColors["TagHover"] = "tagHover";
205
+ ValidSemanticColors["TagIconDefault"] = "tagIconDefault";
206
+ ValidSemanticColors["TagIconHover"] = "tagIconHover";
207
+ ValidSemanticColors["TagIconPress"] = "tagIconPress";
208
+ ValidSemanticColors["TagIndigo"] = "tagIndigo";
209
+ ValidSemanticColors["TagInverse"] = "tagInverse";
210
+ ValidSemanticColors["TagLemon"] = "tagLemon";
211
+ ValidSemanticColors["TagLime"] = "tagLime";
212
+ ValidSemanticColors["TagPink"] = "tagPink";
213
+ ValidSemanticColors["TagPress"] = "tagPress";
214
+ ValidSemanticColors["TagPurple"] = "tagPurple";
215
+ ValidSemanticColors["TagTeal"] = "tagTeal";
216
+ ValidSemanticColors["TagText"] = "tagText";
217
+ ValidSemanticColors["TagTurquoise"] = "tagTurquoise";
218
+ ValidSemanticColors["TextPlaceholder"] = "textPlaceholder";
219
+ ValidSemanticColors["TextPrimary"] = "textPrimary";
220
+ ValidSemanticColors["TextSecondary"] = "textSecondary";
221
+ ValidSemanticColors["TextValidationDanger"] = "textValidationDanger";
222
+ ValidSemanticColors["TextValidationSuccess"] = "textValidationSuccess";
223
+ ValidSemanticColors["TextValidationWarning"] = "textValidationWarning";
224
+ ValidSemanticColors["TooltipBackgroundTooltip"] = "tooltipBackgroundTooltip";
225
+ return ValidSemanticColors;
226
+ }({});
227
+
127
228
  const ColorVars = {
128
- primary: 'textPrimary',
129
- secondary: 'textSecondary',
130
- info: 'textValidationInfo',
131
- error: 'textValidationDanger',
132
- success: 'textValidationSuccess',
133
- warning: 'textValidationWarning'
229
+ primary: ValidSemanticColors.TextPrimary,
230
+ secondary: ValidSemanticColors.TextSecondary,
231
+ info: ValidSemanticColors.TextSecondary,
232
+ error: ValidSemanticColors.TextValidationDanger,
233
+ success: ValidSemanticColors.TextValidationSuccess,
234
+ warning: ValidSemanticColors.TextValidationWarning
134
235
  };
135
236
 
136
237
  /**
@@ -368,17 +469,19 @@ const responsive = {
368
469
  };
369
470
  var responsive$1 = responsive;
370
471
 
371
- // Exported from go/designsystem/colorsheet
372
- const colorPalettePrimary = {
373
- primary: '#2272B4',
472
+ // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
473
+
474
+ const primitiveColors = {
374
475
  blue100: '#F0F8FF',
375
476
  blue200: '#D7EDFE',
376
477
  blue300: '#BAE1FC',
377
- blue400: '#8FCDFF',
478
+ blue400: '#8ACAFF',
378
479
  blue500: '#4299E0',
379
480
  blue600: '#2272B4',
380
481
  blue700: '#0E538B',
381
482
  blue800: '#04355D',
483
+ brown: '#A6630C',
484
+ coral: '#C83243',
382
485
  green100: '#F3FCF6',
383
486
  green200: '#D4F7DF',
384
487
  green300: '#B1ECC5',
@@ -387,15 +490,22 @@ const colorPalettePrimary = {
387
490
  green600: '#277C43',
388
491
  green700: '#115026',
389
492
  green800: '#093919',
390
- white: '#FFFFFF',
391
- grey100: '#F2F5F7',
392
- grey200: '#E4ECF1',
393
- grey300: '#CDDAE5',
394
- grey400: '#BDCDDB',
395
- grey500: '#8196A7',
396
- grey600: '#5D7283',
397
- grey700: '#44535F',
398
- grey800: '#1F272D',
493
+ grey050: '#F2F8F8',
494
+ grey100: '#E4ECF1',
495
+ grey200: '#CDDAE5',
496
+ grey300: '#BDCDDB',
497
+ grey350: '#90A4B5',
498
+ grey400: '#8196A7',
499
+ grey500: '#5D7283',
500
+ grey600: '#44535F',
501
+ grey650: '#354450',
502
+ grey700: '#1F272D',
503
+ grey800: '#11171C',
504
+ indigo: '#434A93',
505
+ lemon: '#FACB66',
506
+ lime: '#308613',
507
+ pink: '#B45091',
508
+ purple: '#8A63BF',
399
509
  red100: '#FFF5F7',
400
510
  red200: '#FDE2E8',
401
511
  red300: '#FBD0D8',
@@ -404,6 +514,9 @@ const colorPalettePrimary = {
404
514
  red600: '#C82D4C',
405
515
  red700: '#9E102C',
406
516
  red800: '#630316',
517
+ teal: '#04867D',
518
+ turquoise: '#137DAE',
519
+ white: '#FFFFFF',
407
520
  yellow100: '#FFF9EB',
408
521
  yellow200: '#FCEACA',
409
522
  yellow300: '#F8D4A5',
@@ -413,283 +526,294 @@ const colorPalettePrimary = {
413
526
  yellow700: '#93320B',
414
527
  yellow800: '#5F1B02'
415
528
  };
416
- const newGreys = {
417
- grey100: '#F8F8F8',
418
- grey200: '#E8E8E8',
419
- grey300: '#D0D0D0',
420
- grey400: '#AFAFAF',
421
- grey500: '#969696',
422
- grey600: '#727272',
423
- grey700: '#403F3F',
424
- grey800: '#181818'
425
- };
426
- const colorPaletteSecondary = {
427
- brown: '#A6630C',
428
- coral: '#C83243',
429
- charcoal: colorPalettePrimary.grey600,
430
- indigo: '#434A93',
431
- lemon: '#FACB66',
432
- lime: '#308613',
433
- pink: '#B45091',
434
- purple: '#8A63BF',
435
- teal: '#04867D',
436
- turquoise: '#157CBC'
437
- };
438
- const lightColorList = {
439
- backgroundPrimary: colorPalettePrimary.white,
440
- actionDangerPrimaryBackgroundDefault: colorPalettePrimary.red600,
441
- actionDangerPrimaryBackgroundHover: colorPalettePrimary.red700,
442
- actionDangerPrimaryBackgroundPress: colorPalettePrimary.red800,
443
- actionDangerDefaultBackgroundDefault: chroma(colorPalettePrimary.red600).alpha(0).hex(),
444
- actionDangerDefaultBackgroundHover: chroma(colorPalettePrimary.red600).alpha(0.08).hex(),
445
- actionDangerDefaultBackgroundPress: chroma(colorPalettePrimary.red600).alpha(0.16).hex(),
446
- actionDangerDefaultBorderDefault: colorPalettePrimary.red600,
447
- actionDangerDefaultBorderHover: colorPalettePrimary.red700,
448
- actionDangerDefaultBorderPress: colorPalettePrimary.red800,
449
- actionDangerDefaultTextDefault: colorPalettePrimary.red600,
450
- actionDangerDefaultTextHover: colorPalettePrimary.red700,
451
- actionDangerDefaultTextPress: colorPalettePrimary.red800,
452
- actionDefaultBackgroundDefault: chroma(colorPalettePrimary.blue800).alpha(0).hex(),
453
- actionDefaultBackgroundHover: chroma(colorPalettePrimary.blue600).alpha(0.08).hex(),
454
- actionDefaultBackgroundPress: chroma(colorPalettePrimary.blue600).alpha(0.16).hex(),
455
- actionDefaultBorderDefault: colorPalettePrimary.grey300,
456
- actionDefaultBorderFocus: colorPalettePrimary.blue600,
457
- actionDefaultBorderHover: colorPalettePrimary.blue700,
458
- actionDefaultBorderPress: colorPalettePrimary.blue800,
459
- actionDefaultTextDefault: colorPalettePrimary.grey800,
460
- actionDefaultTextHover: colorPalettePrimary.blue700,
461
- actionDefaultTextPress: colorPalettePrimary.blue800,
462
- actionDisabledBackground: colorPalettePrimary.grey200,
463
- actionDisabledText: colorPalettePrimary.grey400,
464
- actionPrimaryBackgroundDefault: colorPalettePrimary.blue600,
465
- actionPrimaryBackgroundHover: colorPalettePrimary.blue700,
466
- actionPrimaryBackgroundPress: colorPalettePrimary.blue800,
467
- actionPrimaryTextDefault: colorPalettePrimary.white,
468
- actionPrimaryTextHover: colorPalettePrimary.white,
469
- actionPrimaryTextPress: colorPalettePrimary.white,
470
- actionTertiaryBackgroundDefault: chroma(colorPalettePrimary.blue600).alpha(0).hex(),
471
- actionTertiaryBackgroundHover: chroma(colorPalettePrimary.blue600).alpha(0.08).hex(),
472
- actionTertiaryBackgroundPress: chroma(colorPalettePrimary.blue600).alpha(0.16).hex(),
473
- actionTertiaryTextDefault: colorPalettePrimary.blue600,
474
- actionTertiaryTextHover: colorPalettePrimary.blue700,
475
- actionTertiaryTextPress: colorPalettePrimary.blue800,
476
- backgroundDanger: chroma(colorPalettePrimary.red100).alpha(0.08).hex(),
477
- backgroundSecondary: colorPalettePrimary.grey100,
478
- backgroundWarning: chroma(colorPalettePrimary.yellow100).alpha(0.08).hex(),
479
- backgroundValidationDanger: colorPalettePrimary.red100,
480
- backgroundValidationSuccess: colorPalettePrimary.blue100,
481
- backgroundValidationWarning: colorPalettePrimary.yellow100,
482
- border: colorPalettePrimary.grey300,
483
- borderDecorative: colorPalettePrimary.grey200,
484
- borderValidationDanger: colorPalettePrimary.red300,
485
- borderValidationWarning: colorPalettePrimary.yellow300,
486
- textPrimary: colorPalettePrimary.grey800,
487
- textSecondary: colorPalettePrimary.grey600,
488
- textPlaceholder: colorPalettePrimary.grey400,
489
- textValidationDanger: colorPalettePrimary.red600,
490
- textValidationSuccess: colorPalettePrimary.green600,
491
- textValidationWarning: colorPalettePrimary.yellow600,
492
- textValidationInfo: colorPalettePrimary.grey600,
493
- overlayOverlay: chroma(colorPalettePrimary.grey100).alpha(0.72).hex(),
494
- // Tags
495
- tagDefault: chroma(colorPalettePrimary.grey600).alpha(0.08).hex(),
496
- tagBrown: colorPaletteSecondary.brown,
497
- tagCoral: colorPaletteSecondary.coral,
498
- tagCharcoal: colorPaletteSecondary.charcoal,
499
- tagIndigo: colorPaletteSecondary.indigo,
500
- tagLemon: colorPaletteSecondary.lemon,
501
- tagLime: colorPaletteSecondary.lime,
502
- tagPink: colorPaletteSecondary.pink,
503
- tagPurple: colorPaletteSecondary.purple,
504
- tagTeal: colorPaletteSecondary.teal,
505
- tagTurquoise: colorPaletteSecondary.turquoise,
506
- tagText: colorPalettePrimary.white,
507
- tagHover: chroma(colorPalettePrimary.blue400).alpha(0.08).hex(),
508
- tagPress: chroma(colorPalettePrimary.blue400).alpha(0.16).hex(),
509
- tagIconHover: chroma(colorPalettePrimary.white).alpha(0.8).hex(),
510
- tagIconPress: chroma(colorPalettePrimary.white).alpha(0.76).hex(),
511
- // Typography
512
- typographyCodeBg: chroma(colorPalettePrimary.grey600).alpha(0.08).hex(),
513
- // Table
514
- tableRowHover: chroma(colorPalettePrimary.grey600).alpha(0.04).hex(),
515
- tooltipBackgroundTooltip: colorPalettePrimary.grey800
516
- };
529
+
530
+ // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
531
+
517
532
  const darkColorList = {
518
- actionDangerPrimaryBackgroundDefault: chroma(colorPalettePrimary.red400).alpha(0.84).hex(),
519
- actionDangerPrimaryBackgroundHover: chroma(colorPalettePrimary.red400).alpha(0.72).hex(),
520
- actionDangerPrimaryBackgroundPress: chroma(colorPalettePrimary.red400).alpha(0.6).hex(),
521
- actionDangerDefaultBackgroundDefault: chroma(colorPalettePrimary.red400).alpha(0).hex(),
522
- actionDangerDefaultBackgroundHover: chroma(colorPalettePrimary.red400).alpha(0.08).hex(),
523
- actionDangerDefaultBackgroundPress: chroma(colorPalettePrimary.red400).alpha(0.16).hex(),
524
- actionDangerDefaultBorderDefault: colorPalettePrimary.red400,
525
- actionDangerDefaultBorderHover: chroma(colorPalettePrimary.red400).alpha(0.72).hex(),
526
- actionDangerDefaultBorderPress: chroma(colorPalettePrimary.red400).alpha(0.6).hex(),
527
- actionDangerDefaultTextDefault: colorPalettePrimary.red400,
528
- actionDangerDefaultTextHover: chroma(colorPalettePrimary.red400).alpha(0.72).hex(),
529
- actionDangerDefaultTextPress: chroma(colorPalettePrimary.red400).alpha(0.6).hex(),
530
- actionDefaultBackgroundDefault: chroma(colorPalettePrimary.blue400).alpha(0).hex(),
531
- actionDefaultBackgroundHover: chroma(colorPalettePrimary.blue400).alpha(0.08).hex(),
532
- actionDefaultBackgroundPress: chroma(colorPalettePrimary.blue400).alpha(0.16).hex(),
533
- actionDefaultBorderDefault: chroma(colorPalettePrimary.white).alpha(0.6).hex(),
534
- actionDefaultBorderFocus: chroma(colorPalettePrimary.blue400).alpha(0.84).hex(),
535
- actionDefaultBorderHover: chroma(colorPalettePrimary.blue400).alpha(0.8).hex(),
536
- actionDefaultBorderPress: chroma(colorPalettePrimary.blue400).alpha(0.76).hex(),
537
- actionDefaultTextDefault: chroma(colorPalettePrimary.white).alpha(0.84).hex(),
538
- actionDefaultTextHover: chroma(colorPalettePrimary.blue400).alpha(0.8).hex(),
539
- actionDefaultTextPress: chroma(colorPalettePrimary.blue400).alpha(0.76).hex(),
540
- actionDisabledBackground: chroma(colorPalettePrimary.white).alpha(0.24).hex(),
541
- actionDisabledText: chroma(colorPalettePrimary.white).alpha(0.4).hex(),
542
- actionPrimaryBackgroundDefault: chroma(colorPalettePrimary.blue400).alpha(0.84).hex(),
543
- actionPrimaryBackgroundHover: chroma(colorPalettePrimary.blue400).alpha(0.8).hex(),
544
- actionPrimaryBackgroundPress: chroma(colorPalettePrimary.blue400).alpha(0.76).hex(),
545
- actionPrimaryTextDefault: colorPalettePrimary.grey800,
546
- actionPrimaryTextHover: colorPalettePrimary.grey800,
547
- actionPrimaryTextPress: colorPalettePrimary.grey800,
548
- actionTertiaryBackgroundDefault: chroma(colorPalettePrimary.blue400).alpha(0).hex(),
549
- actionTertiaryBackgroundHover: chroma(colorPalettePrimary.blue400).alpha(0.08).hex(),
550
- actionTertiaryBackgroundPress: chroma(colorPalettePrimary.blue400).alpha(0.16).hex(),
551
- actionTertiaryTextDefault: chroma(colorPalettePrimary.blue400).alpha(0.84).hex(),
552
- actionTertiaryTextHover: chroma(colorPalettePrimary.blue400).alpha(0.8).hex(),
553
- actionTertiaryTextPress: chroma(colorPalettePrimary.blue400).alpha(0.76).hex(),
554
- backgroundPrimary: colorPalettePrimary.grey800,
555
- backgroundSecondary: '#283035',
556
- backgroundValidationDanger: 'transparent',
557
- backgroundValidationSuccess: 'transparent',
558
- backgroundValidationWarning: 'transparent',
559
- border: chroma(colorPalettePrimary.white).alpha(0.48).hex(),
560
- borderDecorative: chroma(colorPalettePrimary.white).alpha(0.24).hex(),
561
- borderValidationDanger: colorPalettePrimary.red300,
562
- borderValidationWarning: colorPalettePrimary.yellow300,
563
- textPrimary: chroma(colorPalettePrimary.white).alpha(0.84).hex(),
564
- textSecondary: chroma(colorPalettePrimary.white).alpha(0.6).hex(),
565
- textPlaceholder: chroma(colorPalettePrimary.grey400).alpha(0.84).hex(),
566
- textValidationDanger: chroma(colorPalettePrimary.red400).alpha(0.84).hex(),
567
- textValidationSuccess: chroma(colorPalettePrimary.green400).alpha(0.84).hex(),
568
- textValidationWarning: chroma(colorPalettePrimary.yellow400).alpha(0.84).hex(),
569
- textValidationInfo: chroma(colorPalettePrimary.white).alpha(0.6).hex(),
570
- overlayOverlay: chroma(colorPalettePrimary.grey800).alpha(0.72).hex(),
571
- // Tags
572
- tagDefault: chroma(colorPalettePrimary.white).alpha(0.16).hex(),
573
- tagBrown: chroma(colorPaletteSecondary.brown).alpha(0.84).hex(),
574
- tagCoral: chroma(colorPaletteSecondary.coral).alpha(0.84).hex(),
575
- tagCharcoal: chroma(colorPaletteSecondary.charcoal).alpha(0.84).hex(),
576
- tagIndigo: chroma(colorPaletteSecondary.indigo).alpha(0.84).hex(),
577
- tagLemon: chroma(colorPaletteSecondary.lemon).alpha(0.84).hex(),
578
- tagLime: chroma(colorPaletteSecondary.lime).alpha(0.84).hex(),
579
- tagPink: chroma(colorPaletteSecondary.pink).alpha(0.84).hex(),
580
- tagPurple: chroma(colorPaletteSecondary.purple).alpha(0.84).hex(),
581
- tagTeal: chroma(colorPaletteSecondary.teal).alpha(0.84).hex(),
582
- tagTurquoise: chroma(colorPaletteSecondary.turquoise).alpha(0.84).hex(),
583
- tagText: chroma(colorPalettePrimary.white).alpha(0.84).hex(),
584
- tagHover: chroma(colorPalettePrimary.blue400).alpha(0.08).hex(),
585
- tagPress: chroma(colorPalettePrimary.blue400).alpha(0.16).hex(),
586
- tagIconHover: chroma(colorPalettePrimary.white).alpha(0.8).hex(),
587
- tagIconPress: chroma(colorPalettePrimary.white).alpha(0.76).hex(),
588
- // Typography
589
- typographyCodeBg: chroma(colorPalettePrimary.white).alpha(0.16).hex(),
590
- // Table
591
- tableRowHover: chroma(colorPalettePrimary.white).alpha(0.16).hex(),
592
- tooltipBackgroundTooltip: chroma(colorPalettePrimary.white).alpha(0.6).hex(),
593
- // Missing in list
594
- backgroundDanger: 'rgba(200,45,76,0.08)',
595
- backgroundWarning: 'rgba(222,121,33,0.08)'
596
- };
597
- const secondaryColorsUsingNewGreys = {
598
- charcoal: newGreys.grey600
599
- };
600
- const lightColorsUsingNewGreys = {
601
- actionDefaultBorderDefault: newGreys.grey300,
602
- actionDefaultTextDefault: newGreys.grey800,
603
- actionDisabledBackground: newGreys.grey200,
604
- actionDisabledText: newGreys.grey400,
605
- backgroundSecondary: newGreys.grey100,
606
- border: newGreys.grey300,
607
- borderDecorative: newGreys.grey200,
608
- textPrimary: newGreys.grey800,
609
- textSecondary: newGreys.grey600,
610
- textPlaceholder: newGreys.grey400,
611
- textValidationInfo: newGreys.grey600,
612
- overlayOverlay: chroma(newGreys.grey100).alpha(0.72).hex(),
613
- tagDefault: chroma(newGreys.grey600).alpha(0.08).hex(),
614
- tagCharcoal: newGreys.grey600,
615
- typographyCodeBg: chroma(newGreys.grey600).alpha(0.08).hex(),
616
- tableRowHover: chroma(newGreys.grey600).alpha(0.04).hex(),
617
- tooltipBackgroundTooltip: newGreys.grey800
618
- };
619
- const darkColorsUsingNewGreys = {
620
- actionPrimaryTextDefault: newGreys.grey800,
621
- actionPrimaryTextHover: newGreys.grey800,
622
- actionPrimaryTextPress: newGreys.grey800,
623
- backgroundPrimary: newGreys.grey800,
624
- backgroundSecondary: newGreys.grey700,
625
- textPlaceholder: chroma(newGreys.grey400).alpha(0.84).hex(),
626
- overlayOverlay: chroma(newGreys.grey800).alpha(0.72).hex(),
627
- tagCharcoal: chroma(newGreys.grey600).alpha(0.84).hex()
533
+ actionDangerDefaultBackgroundDefault: 'rgba(247, 146, 166, 0.0000)',
534
+ actionDangerDefaultBackgroundHover: 'rgba(247, 146, 166, 0.0800)',
535
+ actionDangerDefaultBackgroundPress: 'rgba(247, 146, 166, 0.1600)',
536
+ actionDangerDefaultBorderDefault: primitiveColors.red500,
537
+ actionDangerDefaultBorderHover: primitiveColors.red400,
538
+ actionDangerDefaultBorderPress: primitiveColors.red300,
539
+ actionDangerDefaultTextDefault: primitiveColors.red500,
540
+ actionDangerDefaultTextHover: primitiveColors.red400,
541
+ actionDangerDefaultTextPress: primitiveColors.red300,
542
+ actionDangerPrimaryBackgroundDefault: primitiveColors.red500,
543
+ actionDangerPrimaryBackgroundHover: primitiveColors.red400,
544
+ actionDangerPrimaryBackgroundPress: primitiveColors.red300,
545
+ actionDangerPrimaryText: primitiveColors.grey800,
546
+ actionDefaultBackgroundDefault: 'rgba(138, 202, 255, 0.0000)',
547
+ actionDefaultBackgroundHover: 'rgba(138, 202, 255, 0.0800)',
548
+ actionDefaultBackgroundPress: 'rgba(138, 202, 255, 0.1600)',
549
+ actionDefaultBorderDefault: primitiveColors.grey650,
550
+ actionDefaultBorderFocus: primitiveColors.blue400,
551
+ actionDefaultBorderHover: primitiveColors.blue400,
552
+ actionDefaultBorderPress: primitiveColors.blue300,
553
+ actionDefaultIconDefault: primitiveColors.grey350,
554
+ actionDefaultIconHover: primitiveColors.blue400,
555
+ actionDefaultIconPress: primitiveColors.blue300,
556
+ actionDefaultTextDefault: primitiveColors.grey100,
557
+ actionDefaultTextHover: primitiveColors.blue400,
558
+ actionDefaultTextPress: primitiveColors.blue300,
559
+ actionDisabledBackground: primitiveColors.grey700,
560
+ actionDisabledBorder: primitiveColors.grey650,
561
+ actionDisabledText: primitiveColors.grey600,
562
+ actionIconBackgroundDefault: 'rgba(255, 255, 255, 0.0000)',
563
+ actionIconBackgroundHover: 'rgba(255, 255, 255, 0.0800)',
564
+ actionIconBackgroundPress: 'rgba(255, 255, 255, 0.1600)',
565
+ actionIconIconDefault: primitiveColors.grey350,
566
+ actionIconIconHover: primitiveColors.grey300,
567
+ actionIconIconPress: primitiveColors.grey200,
568
+ actionLinkDefault: primitiveColors.blue500,
569
+ actionLinkHover: primitiveColors.blue400,
570
+ actionLinkPress: primitiveColors.blue300,
571
+ actionPrimaryBackgroundDefault: primitiveColors.blue500,
572
+ actionPrimaryBackgroundHover: primitiveColors.blue400,
573
+ actionPrimaryBackgroundPress: primitiveColors.blue300,
574
+ actionPrimaryIcon: primitiveColors.grey800,
575
+ actionPrimaryTextDefault: primitiveColors.grey800,
576
+ actionPrimaryTextHover: primitiveColors.grey800,
577
+ actionPrimaryTextPress: primitiveColors.grey800,
578
+ actionTertiaryBackgroundDefault: 'rgba(143, 205, 255, 0.0000)',
579
+ actionTertiaryBackgroundHover: 'rgba(143, 205, 255, 0.0800)',
580
+ actionTertiaryBackgroundPress: 'rgba(143, 205, 255, 0.1600)',
581
+ actionTertiaryIconDefault: primitiveColors.blue500,
582
+ actionTertiaryIconHover: primitiveColors.blue400,
583
+ actionTertiaryIconPress: primitiveColors.blue300,
584
+ actionTertiaryTextDefault: primitiveColors.blue500,
585
+ actionTertiaryTextHover: primitiveColors.blue400,
586
+ actionTertiaryTextPress: primitiveColors.blue300,
587
+ backgroundDanger: 'rgba(200, 45, 76, 0.1600)',
588
+ backgroundInfo: 'rgba(68, 83, 95, 0.1600)',
589
+ backgroundPrimary: primitiveColors.grey800,
590
+ backgroundSecondary: primitiveColors.grey700,
591
+ backgroundSuccess: 'rgba(39, 124, 67, 0.1600)',
592
+ backgroundWarning: 'rgba(190, 80, 30, 0.1600)',
593
+ border: primitiveColors.grey650,
594
+ borderAccessible: primitiveColors.grey300,
595
+ borderDanger: primitiveColors.red500,
596
+ borderWarning: primitiveColors.yellow500,
597
+ codeBackground: primitiveColors.grey700,
598
+ overlayOverlay: 'rgba(31, 38, 45, 0.7200)',
599
+ skeleton: 'rgba(228, 236, 241, 0.1000)',
600
+ tableBackgroundSelectedDefault: 'rgba(189, 205, 219, 0.0800)',
601
+ tableBackgroundSelectedHover: 'rgba(189, 205, 219, 0.1200)',
602
+ tableBackgroundUnselectedDefault: primitiveColors.grey800,
603
+ tableBackgroundUnselectedHover: 'rgba(189, 205, 219, 0.0400)',
604
+ tagBrown: 'rgba(166, 99, 12, 0.8600)',
605
+ tagCharcoal: 'rgba(68, 83, 95, 0.8600)',
606
+ tagCoral: 'rgba(200, 50, 67, 0.8600)',
607
+ tagDefault: primitiveColors.grey700,
608
+ tagHover: 'rgba(138, 202, 255, 0.0800)',
609
+ tagIconDefault: primitiveColors.grey350,
610
+ tagIconHover: primitiveColors.grey350,
611
+ tagIconPress: primitiveColors.grey350,
612
+ tagIndigo: 'rgba(67, 74, 147, 0.8600)',
613
+ tagInverse: primitiveColors.grey100,
614
+ tagLemon: 'rgba(250, 203, 102, 0.8600)',
615
+ tagLime: 'rgba(48, 134, 19, 0.8600)',
616
+ tagPink: 'rgba(180, 80, 145, 0.8600)',
617
+ tagPress: 'rgba(138, 202, 255, 0.1600)',
618
+ tagPurple: 'rgba(138, 99, 191, 0.8600)',
619
+ tagTeal: 'rgba(4, 134, 125, 0.8600)',
620
+ tagText: primitiveColors.grey100,
621
+ tagTurquoise: 'rgba(19, 125, 174, 0.8600)',
622
+ textPlaceholder: primitiveColors.grey650,
623
+ textPrimary: primitiveColors.grey100,
624
+ textSecondary: primitiveColors.grey350,
625
+ textValidationDanger: primitiveColors.red500,
626
+ textValidationSuccess: primitiveColors.green500,
627
+ textValidationWarning: primitiveColors.yellow500,
628
+ tooltipBackgroundTooltip: primitiveColors.grey300
628
629
  };
629
630
 
630
- /**
631
- * Provides access to http://go/safex flags from the frontend. Note that this is a temporary
632
- * workaround until direct `safex` imports are available.
633
- * @param flag The name of the flag to check
634
- * @param defaultValue The default value to return if the flag is not set
635
- * @returns
636
- */
637
- const safex = (flag, defaultValue) => {
638
- // Catching errors here, because we don't have type-safety to ensure
639
- // that `__debug__safex`'s API hasn't changed.
640
- try {
641
- const globalSafex = window.__debug__safex;
642
- return globalSafex ? globalSafex(flag, defaultValue) : defaultValue;
643
- } catch (e) {
644
- return defaultValue;
645
- }
631
+ // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
632
+
633
+ const lightColorList = {
634
+ actionDangerDefaultBackgroundDefault: 'rgba(200, 45, 76, 0.0000)',
635
+ actionDangerDefaultBackgroundHover: 'rgba(200, 45, 76, 0.0800)',
636
+ actionDangerDefaultBackgroundPress: 'rgba(200, 45, 76, 0.1600)',
637
+ actionDangerDefaultBorderDefault: primitiveColors.red600,
638
+ actionDangerDefaultBorderHover: primitiveColors.red700,
639
+ actionDangerDefaultBorderPress: primitiveColors.red800,
640
+ actionDangerDefaultTextDefault: primitiveColors.red600,
641
+ actionDangerDefaultTextHover: primitiveColors.red700,
642
+ actionDangerDefaultTextPress: primitiveColors.red800,
643
+ actionDangerPrimaryBackgroundDefault: primitiveColors.red600,
644
+ actionDangerPrimaryBackgroundHover: primitiveColors.red700,
645
+ actionDangerPrimaryBackgroundPress: primitiveColors.red800,
646
+ actionDangerPrimaryText: primitiveColors.white,
647
+ actionDefaultBackgroundDefault: 'rgba(34, 114, 180, 0.0000)',
648
+ actionDefaultBackgroundHover: 'rgba(34, 114, 180, 0.0800)',
649
+ actionDefaultBackgroundPress: 'rgba(34, 114, 180, 0.1600)',
650
+ actionDefaultBorderDefault: primitiveColors.grey300,
651
+ actionDefaultBorderFocus: primitiveColors.blue700,
652
+ actionDefaultBorderHover: primitiveColors.blue600,
653
+ actionDefaultBorderPress: primitiveColors.blue800,
654
+ actionDefaultIconDefault: primitiveColors.grey600,
655
+ actionDefaultIconHover: primitiveColors.blue700,
656
+ actionDefaultIconPress: primitiveColors.blue800,
657
+ actionDefaultTextDefault: primitiveColors.grey800,
658
+ actionDefaultTextHover: primitiveColors.blue700,
659
+ actionDefaultTextPress: primitiveColors.blue800,
660
+ actionDisabledBackground: primitiveColors.grey050,
661
+ actionDisabledBorder: primitiveColors.grey100,
662
+ actionDisabledText: primitiveColors.grey300,
663
+ actionIconBackgroundDefault: 'rgba(34, 114, 180, 0.0000)',
664
+ actionIconBackgroundHover: 'rgba(34, 114, 180, 0.0800)',
665
+ actionIconBackgroundPress: 'rgba(34, 114, 180, 0.1600)',
666
+ actionIconIconDefault: primitiveColors.grey600,
667
+ actionIconIconHover: primitiveColors.blue700,
668
+ actionIconIconPress: primitiveColors.blue800,
669
+ actionLinkDefault: primitiveColors.blue600,
670
+ actionLinkHover: primitiveColors.blue700,
671
+ actionLinkPress: primitiveColors.blue800,
672
+ actionPrimaryBackgroundDefault: primitiveColors.blue600,
673
+ actionPrimaryBackgroundHover: primitiveColors.blue700,
674
+ actionPrimaryBackgroundPress: primitiveColors.blue800,
675
+ actionPrimaryIcon: primitiveColors.white,
676
+ actionPrimaryTextDefault: primitiveColors.white,
677
+ actionPrimaryTextHover: primitiveColors.white,
678
+ actionPrimaryTextPress: primitiveColors.white,
679
+ actionTertiaryBackgroundDefault: 'rgba(34, 114, 180, 0.0000)',
680
+ actionTertiaryBackgroundHover: 'rgba(34, 114, 180, 0.0800)',
681
+ actionTertiaryBackgroundPress: 'rgba(34, 114, 180, 0.1600)',
682
+ actionTertiaryIconDefault: primitiveColors.blue600,
683
+ actionTertiaryIconHover: primitiveColors.blue700,
684
+ actionTertiaryIconPress: primitiveColors.blue800,
685
+ actionTertiaryTextDefault: primitiveColors.blue600,
686
+ actionTertiaryTextHover: primitiveColors.blue700,
687
+ actionTertiaryTextPress: primitiveColors.blue800,
688
+ backgroundDanger: primitiveColors.red100,
689
+ backgroundInfo: primitiveColors.grey100,
690
+ backgroundPrimary: primitiveColors.white,
691
+ backgroundSecondary: primitiveColors.grey050,
692
+ backgroundSuccess: primitiveColors.green100,
693
+ backgroundWarning: primitiveColors.yellow100,
694
+ border: primitiveColors.grey200,
695
+ borderAccessible: primitiveColors.grey500,
696
+ borderDanger: primitiveColors.red300,
697
+ borderWarning: primitiveColors.yellow300,
698
+ codeBackground: 'rgba(68, 83, 95, 0.0800)',
699
+ overlayOverlay: 'rgba(64, 63, 63, 0.7200)',
700
+ skeleton: 'rgba(17, 23, 28, 0.1000)',
701
+ tableBackgroundSelectedDefault: 'rgba(68, 83, 95, 0.0800)',
702
+ tableBackgroundSelectedHover: 'rgba(68, 83, 95, 0.1200)',
703
+ tableBackgroundUnselectedDefault: primitiveColors.white,
704
+ tableBackgroundUnselectedHover: 'rgba(68, 83, 95, 0.0400)',
705
+ tagBrown: primitiveColors.brown,
706
+ tagCharcoal: primitiveColors.grey600,
707
+ tagCoral: primitiveColors.coral,
708
+ tagDefault: primitiveColors.grey050,
709
+ tagHover: 'rgba(34, 114, 180, 0.0800)',
710
+ tagIconDefault: primitiveColors.grey600,
711
+ tagIconHover: primitiveColors.grey600,
712
+ tagIconPress: primitiveColors.grey600,
713
+ tagIndigo: primitiveColors.indigo,
714
+ tagInverse: primitiveColors.grey800,
715
+ tagLemon: primitiveColors.lemon,
716
+ tagLime: primitiveColors.lime,
717
+ tagPink: primitiveColors.pink,
718
+ tagPress: 'rgba(34, 114, 180, 0.1600)',
719
+ tagPurple: primitiveColors.purple,
720
+ tagTeal: primitiveColors.teal,
721
+ tagText: primitiveColors.white,
722
+ tagTurquoise: primitiveColors.turquoise,
723
+ textPlaceholder: primitiveColors.grey400,
724
+ textPrimary: primitiveColors.grey800,
725
+ textSecondary: primitiveColors.grey600,
726
+ textValidationDanger: primitiveColors.red600,
727
+ textValidationSuccess: primitiveColors.green600,
728
+ textValidationWarning: primitiveColors.yellow600,
729
+ tooltipBackgroundTooltip: primitiveColors.grey800
646
730
  };
647
731
 
732
+ // Currently these are the same for both light and dark mode, but we may want to change this in the future.
733
+ const branded = {
734
+ /** For AI components, the top-oriented start color of gradient treatments. */
735
+ aiGradientStart: '#677FFD',
736
+ /** For AI components, the bottom-oriented end color of gradient treatments. */
737
+ aiGradientEnd: '#79BFF1'
738
+ };
648
739
  const darkColors = {
649
740
  ...darkColorList,
650
- ...colorPalettePrimary,
651
- ...colorPaletteSecondary
741
+ ...primitiveColors,
742
+ branded
652
743
  };
653
744
  const lightColors = {
654
745
  ...lightColorList,
655
- ...colorPalettePrimary,
656
- ...colorPaletteSecondary
746
+ ...primitiveColors,
747
+ branded
657
748
  };
658
749
  function getSemanticColors(isDarkMode) {
659
- const enableNewGreys = safex('databricks.fe.designsystem.enableNewGreys', false);
660
- const colorList = isDarkMode ? darkColors : lightColors;
661
- if (enableNewGreys) {
662
- return {
663
- ...colorList,
664
- ...newGreys,
665
- ...secondaryColorsUsingNewGreys,
666
- ...(isDarkMode ? darkColorsUsingNewGreys : lightColorsUsingNewGreys)
667
- };
668
- } else {
669
- return colorList;
670
- }
750
+ return isDarkMode ? darkColors : lightColors;
671
751
  }
672
752
 
673
- // TODO (FEINF-1674): Remove when removing USE_NEW_RADIO_STYLES
674
- /*
675
- Colors that need to be replaced by semantic colors.
676
- */
677
- const deprecatedColors = {
678
- // Radio Colors
679
- radioInteractiveAvailable: colorPalettePrimary.primary,
753
+ // When deprecating a color, add it to this object with a comment explaining why it's deprecated and a link to a JIRA ticket.
754
+ // Example: `@deprecated This color supports XXXX will be removed in an upcoming release (FEINF-1234).`
755
+ const deprecatedPrimitiveColors = {
756
+ /** @deprecated This was an alias to `primitiveColors.blue600`, please use that instead.
757
+ * If possible, please use an appropriate semantic color, such as `actionPrimaryBackgroundDefault`. */
758
+ primary: primitiveColors.blue600,
759
+ /** @deprecated This was an alias to `primitiveColors.grey600`, please use that instead.
760
+ * If possible, please use an appropriate semantic color, such as `actionPrimaryBackgroundHover`. */
761
+ charcoal: primitiveColors.grey600,
762
+ /** @deprecated This color supports legacy radio styles and will be removed in an upcoming release (FEINF-1674). */
763
+ radioInteractiveAvailable: primitiveColors.blue600,
764
+ /** @deprecated This color supports legacy radio styles and will be removed in an upcoming release (FEINF-1674). */
680
765
  radioInteractiveHover: '#186099',
766
+ /** @deprecated This color supports legacy radio styles and will be removed in an upcoming release (FEINF-1674). */
681
767
  radioInteractivePress: '#0D4F85',
768
+ /** @deprecated This color supports legacy radio styles and will be removed in an upcoming release (FEINF-1674). */
682
769
  radioDisabled: '#A2AEB8',
770
+ /** @deprecated This color supports legacy radio styles and will be removed in an upcoming release (FEINF-1674). */
683
771
  radioDefaultBorder: '#64727D',
772
+ /** @deprecated This color supports legacy radio styles and will be removed in an upcoming release (FEINF-1674). */
684
773
  radioDefaultBackground: '#FFFFFF',
774
+ /** @deprecated This color supports legacy radio styles and will be removed in an upcoming release (FEINF-1674). */
685
775
  radioInteractiveHoverSecondary: 'rgba(34, 115, 181, 0.08)',
686
- // Fade of Interactive Available
687
- radioInteractivePressSecondary: 'rgba(34, 115, 181, 0.16)' // Fade of Interactive Available
776
+ /** @deprecated This color supports legacy radio styles and will be removed in an upcoming release (FEINF-1674). */
777
+ radioInteractivePressSecondary: 'rgba(34, 115, 181, 0.16)'
778
+ };
779
+ const deprecatedSemanticColorsLight = {
780
+ /** @deprecated Use `backgroundDanger` (FEINF-xxxx) */
781
+ backgroundValidationDanger: lightColorList.backgroundDanger,
782
+ /** @deprecated Use `backgroundSuccess` (FEINF-xxxx) */
783
+ backgroundValidationSuccess: lightColorList.backgroundSuccess,
784
+ /** @deprecated Use `backgroundWarning` (FEINF-xxxx) */
785
+ backgroundValidationWarning: lightColorList.backgroundWarning,
786
+ /** @deprecated Use `border` (FEINF-xxxx) */
787
+ borderDecorative: lightColorList.border,
788
+ /** @deprecated Use `borderDanger` (FEINF-xxxx) */
789
+ borderValidationDanger: lightColorList.borderDanger,
790
+ /** @deprecated Use `borderWarning` (FEINF-xxxx) */
791
+ borderValidationWarning: lightColorList.borderWarning,
792
+ /** @deprecated Use `tableBackgroundUnselectedHover` (FEINF-xxxx) */
793
+ tableRowHover: lightColorList.tableBackgroundUnselectedHover,
794
+ /** @deprecated Use `textSecondary` (FEINF-xxxx) */
795
+ textValidationInfo: lightColorList.textSecondary,
796
+ /** @deprecated Use `codeBackground` (FEINF-xxxx) */
797
+ typographyCodeBg: lightColorList.codeBackground
798
+ };
799
+ const deprecatedSemanticColorsDark = {
800
+ backgroundValidationDanger: darkColorList.backgroundDanger,
801
+ backgroundValidationSuccess: darkColorList.backgroundSuccess,
802
+ backgroundValidationWarning: darkColorList.backgroundWarning,
803
+ borderDecorative: darkColorList.border,
804
+ borderValidationDanger: darkColorList.borderDanger,
805
+ borderValidationWarning: darkColorList.borderWarning,
806
+ tableRowHover: darkColorList.tableBackgroundUnselectedHover,
807
+ textValidationInfo: darkColorList.textSecondary,
808
+ typographyCodeBg: darkColorList.codeBackground
688
809
  };
689
810
 
811
+ // A static list of secondary colors; these are used as a limited palette of color options in component props, i.e. `color="lime"`.
812
+ // TODO: We should split primitive colors into primary and secondary colors, and automatically generate this list.
690
813
  function getColors(isDarkMode) {
691
814
  return {
692
- ...deprecatedColors,
815
+ ...deprecatedPrimitiveColors,
816
+ ...(isDarkMode ? deprecatedSemanticColorsDark : deprecatedSemanticColorsLight),
693
817
  ...getSemanticColors(isDarkMode)
694
818
  };
695
819
  }
@@ -971,21 +1095,36 @@ function useDesignSystemFlags() {
971
1095
  return context.flags;
972
1096
  }
973
1097
 
974
- const getIconEmotionStyles = theme => {
975
- return /*#__PURE__*/css({
976
- fontSize: theme.general.iconFontSize
977
- }, process.env.NODE_ENV === "production" ? "" : ";label:getIconEmotionStyles;");
978
- };
979
- const getIconValidationColor = (theme, color) => {
1098
+ const uniqueId = () => new Date().getTime() + Array(16).fill('').map(() => parseInt((Math.random() * 10).toString())).join('');
1099
+ function useUniqueId() {
1100
+ let prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
1101
+ return useState(() => `${prefix}-${uniqueId()}`)[0];
1102
+ }
1103
+
1104
+ const getIconVariantStyles = (theme, linearGradientId, color) => {
980
1105
  switch (color) {
981
1106
  case 'success':
982
- return theme.colors.textValidationSuccess;
1107
+ return {
1108
+ color: theme.colors.textValidationSuccess
1109
+ };
983
1110
  case 'warning':
984
- return theme.colors.textValidationWarning;
1111
+ return {
1112
+ color: theme.colors.textValidationWarning
1113
+ };
985
1114
  case 'danger':
986
- return theme.colors.textValidationDanger;
1115
+ return {
1116
+ color: theme.colors.textValidationDanger
1117
+ };
1118
+ case 'ai':
1119
+ return {
1120
+ 'svg *': {
1121
+ fill: `url(#${linearGradientId})`
1122
+ }
1123
+ };
987
1124
  default:
988
- return color;
1125
+ return {
1126
+ color: color
1127
+ };
989
1128
  }
990
1129
  };
991
1130
  const Icon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
@@ -999,6 +1138,7 @@ const Icon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
999
1138
  const {
1000
1139
  theme
1001
1140
  } = useDesignSystemTheme();
1141
+ const linearGradientId = useUniqueId('ai-linear-gradient');
1002
1142
  const MemoizedComponent = useMemo(() => Component ? _ref => {
1003
1143
  let {
1004
1144
  fill,
@@ -1007,20 +1147,43 @@ const Icon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
1007
1147
  return (
1008
1148
  // We don't rely on top-level fills for our colors. Fills are specified
1009
1149
  // with "currentColor" on children of the top-most svg.
1010
- jsx(Component, {
1011
- fill: "none",
1012
- ...iconProps
1150
+ jsxs(Fragment, {
1151
+ children: [jsx(Component, {
1152
+ fill: "none",
1153
+ ...iconProps
1154
+ }), color === 'ai' && jsx("svg", {
1155
+ width: "0",
1156
+ height: "0",
1157
+ viewBox: "0 0 0 0",
1158
+ css: visuallyHidden,
1159
+ children: jsx("defs", {
1160
+ children: jsxs("linearGradient", {
1161
+ id: linearGradientId,
1162
+ x2: "100%",
1163
+ y2: "100%",
1164
+ children: [jsx("stop", {
1165
+ offset: "0%",
1166
+ stopColor: theme.colors.branded.aiGradientStart
1167
+ }), jsx("stop", {
1168
+ offset: "100%",
1169
+ stopColor: theme.colors.branded.aiGradientEnd
1170
+ })]
1171
+ })
1172
+ })
1173
+ })]
1013
1174
  })
1014
1175
  );
1015
- } : undefined, [Component]);
1176
+ } : undefined, [Component, color, linearGradientId, theme]);
1016
1177
  return jsx(DesignSystemAntDConfigProvider, {
1017
1178
  children: jsx(AntDIcon, {
1018
1179
  ref: forwardedRef,
1019
1180
  "aria-hidden": "true",
1020
- css: getIconEmotionStyles(theme),
1181
+ css: /*#__PURE__*/css({
1182
+ fontSize: theme.general.iconFontSize,
1183
+ ...getIconVariantStyles(theme, linearGradientId, color)
1184
+ }, process.env.NODE_ENV === "production" ? "" : ";label:Icon;"),
1021
1185
  component: MemoizedComponent,
1022
1186
  style: {
1023
- color: getIconValidationColor(theme, color),
1024
1187
  ...style
1025
1188
  },
1026
1189
  ...otherProps,
@@ -1428,6 +1591,35 @@ const NewWindowIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
1428
1591
  NewWindowIcon.displayName = 'NewWindowIcon';
1429
1592
  var NewWindowIcon$1 = NewWindowIcon;
1430
1593
 
1594
+ function SvgWarningIcon(props) {
1595
+ return jsxs("svg", {
1596
+ xmlns: "http://www.w3.org/2000/svg",
1597
+ width: "1em",
1598
+ height: "1em",
1599
+ fill: "none",
1600
+ viewBox: "0 0 16 16",
1601
+ ...props,
1602
+ children: [jsx("path", {
1603
+ fill: "currentColor",
1604
+ d: "M7.25 10V6.5h1.5V10h-1.5ZM8 12.5A.75.75 0 1 0 8 11a.75.75 0 0 0 0 1.5Z"
1605
+ }), jsx("path", {
1606
+ fill: "currentColor",
1607
+ fillRule: "evenodd",
1608
+ d: "M8 1a.75.75 0 0 1 .649.374l7.25 12.5A.75.75 0 0 1 15.25 15H.75a.75.75 0 0 1-.649-1.126l7.25-12.5A.75.75 0 0 1 8 1Zm0 2.245L2.052 13.5h11.896L8 3.245Z",
1609
+ clipRule: "evenodd"
1610
+ })]
1611
+ });
1612
+ }
1613
+ const WarningIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
1614
+ return jsx(Icon, {
1615
+ ref: forwardedRef,
1616
+ ...props,
1617
+ component: SvgWarningIcon
1618
+ });
1619
+ });
1620
+ WarningIcon.displayName = 'WarningIcon';
1621
+ var WarningIcon$1 = WarningIcon;
1622
+
1431
1623
  function getDefaultStyles(theme) {
1432
1624
  let loading = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
1433
1625
  const defaultStyles = {
@@ -1583,6 +1775,107 @@ function getDisabledTertiaryStyles(theme) {
1583
1775
  };
1584
1776
  }
1585
1777
 
1778
+ let DesignSystemEventProviderComponentTypes = /*#__PURE__*/function (DesignSystemEventProviderComponentTypes) {
1779
+ DesignSystemEventProviderComponentTypes["Button"] = "button";
1780
+ DesignSystemEventProviderComponentTypes["Input"] = "input";
1781
+ return DesignSystemEventProviderComponentTypes;
1782
+ }({});
1783
+ let DesignSystemEventProviderAnalyticsEventTypes = /*#__PURE__*/function (DesignSystemEventProviderAnalyticsEventTypes) {
1784
+ DesignSystemEventProviderAnalyticsEventTypes["OnClick"] = "onClick";
1785
+ DesignSystemEventProviderAnalyticsEventTypes["OnView"] = "onView";
1786
+ DesignSystemEventProviderAnalyticsEventTypes["OnValueChange"] = "onValueChange";
1787
+ return DesignSystemEventProviderAnalyticsEventTypes;
1788
+ }({});
1789
+ const shouldTriggerCallback = (eventType, analyticsEvents) => {
1790
+ return analyticsEvents.includes(eventType);
1791
+ };
1792
+ const DefaultEmptyCallbacks = {
1793
+ callback: () => {}
1794
+ };
1795
+ const DesignSystemEventProviderContext = /*#__PURE__*/React__default.createContext(DefaultEmptyCallbacks);
1796
+
1797
+ /**
1798
+ * This gets the event provider, which is used to pass callbacks to the design system for events such as onClick, onView, and onValueChange.
1799
+ * If the value is undefined, then the expected behavior is to not emit any events.
1800
+ *
1801
+ * @returns DesignSystemEventProviderContextType
1802
+ */
1803
+ const useDesignSystemEventProviderContext = () => {
1804
+ return useContext(DesignSystemEventProviderContext);
1805
+ };
1806
+
1807
+ /**
1808
+ * NOTE: This is not suggested for direct usage from engineers, and should emit your own events.
1809
+ * See https://databricks.atlassian.net/wiki/spaces/UN/pages/2533556277/Usage+Logging+in+UI#Send-usage-logging-from-UI for more details.
1810
+ *
1811
+ * This gets the event provider component event type callbacks.
1812
+ * If context & componentId are not undefined, then it will check if the event is in analyticsEvents or the default analyticsEvents for that component.
1813
+ * If the context or componentId are undefined, then the expected behavior is to not emit any events.
1814
+ *
1815
+ * @returns Object of event callbacks
1816
+ */
1817
+ const useDesignSystemEventComponentCallbacks = _ref => {
1818
+ let {
1819
+ componentType,
1820
+ componentId,
1821
+ analyticsEvents
1822
+ } = _ref;
1823
+ const context = useDesignSystemEventProviderContext();
1824
+ const callbacks = useMemo(() => {
1825
+ if (context === DefaultEmptyCallbacks || componentId === undefined) {
1826
+ return {
1827
+ onClick: () => {},
1828
+ onValueChange: () => {},
1829
+ onView: () => {}
1830
+ };
1831
+ }
1832
+ return {
1833
+ onClick: () => {
1834
+ if (shouldTriggerCallback(DesignSystemEventProviderAnalyticsEventTypes.OnClick, analyticsEvents)) {
1835
+ context.callback(DesignSystemEventProviderAnalyticsEventTypes.OnClick, componentType, componentId);
1836
+ }
1837
+ },
1838
+ onValueChange: () => {
1839
+ if (shouldTriggerCallback(DesignSystemEventProviderAnalyticsEventTypes.OnValueChange, analyticsEvents)) {
1840
+ context.callback(DesignSystemEventProviderAnalyticsEventTypes.OnValueChange, componentType, componentId);
1841
+ }
1842
+ },
1843
+ onView: () => {
1844
+ if (shouldTriggerCallback(DesignSystemEventProviderAnalyticsEventTypes.OnView, analyticsEvents)) {
1845
+ context.callback(DesignSystemEventProviderAnalyticsEventTypes.OnView, componentType, componentId);
1846
+ }
1847
+ }
1848
+ };
1849
+ }, [context, componentType, componentId, analyticsEvents]);
1850
+ return callbacks;
1851
+ };
1852
+
1853
+ /**
1854
+ * NOTE: This is not suggested for direct usage from engineers, and should use RecordEventContext instead.
1855
+ * See https://databricks.atlassian.net/wiki/spaces/UN/pages/2533556277/Usage+Logging+in+UI#Send-usage-logging-from-UI for more details.
1856
+ *
1857
+ * This is the Design System Event Context Provider, and is only used to pass callbacks to the design system for events such as onClick, onView, and onValueChange.
1858
+ *
1859
+ * @param children Children react elements
1860
+ * @param callback The event callback function
1861
+ * @returns Design System Event Context Provider with the children inside
1862
+ */
1863
+ function DesignSystemEventProvider(_ref2) {
1864
+ let {
1865
+ children,
1866
+ callback
1867
+ } = _ref2;
1868
+ const contextValue = useMemo(() => {
1869
+ return {
1870
+ callback
1871
+ };
1872
+ }, [callback]);
1873
+ return jsx(DesignSystemEventProviderContext.Provider, {
1874
+ value: contextValue,
1875
+ children: children
1876
+ });
1877
+ }
1878
+
1586
1879
  // Use Symbol to correctly handled null/undefined as stable values
1587
1880
  const NOT_INITIALIZED = Symbol('NOT_INITIALIZED');
1588
1881
 
@@ -1716,6 +2009,24 @@ const Spinner = _ref => {
1716
2009
  );
1717
2010
  };
1718
2011
 
2012
+ /**
2013
+ * Provides access to http://go/safex flags from the frontend. Note that this is a temporary
2014
+ * workaround until direct `safex` imports are available.
2015
+ * @param flag The name of the flag to check
2016
+ * @param defaultValue The default value to return if the flag is not set
2017
+ * @returns
2018
+ */
2019
+ const safex = (flag, defaultValue) => {
2020
+ // Catching errors here, because we don't have type-safety to ensure
2021
+ // that `__debug__safex`'s API hasn't changed.
2022
+ try {
2023
+ const globalSafex = window.__debug__safex;
2024
+ return globalSafex ? globalSafex(flag, defaultValue) : defaultValue;
2025
+ } catch (e) {
2026
+ return defaultValue;
2027
+ }
2028
+ };
2029
+
1719
2030
  function getEndIconClsName(theme) {
1720
2031
  return `${theme.general.iconfontCssPrefix}-btn-end-icon`;
1721
2032
  }
@@ -2026,6 +2337,8 @@ const Button = /* #__PURE__ */(() => {
2026
2337
  dangerouslySetForceIconStyles,
2027
2338
  dangerouslyUseFocusPseudoClass,
2028
2339
  dangerouslyAppendWrapperCss,
2340
+ componentId,
2341
+ analyticsEvents,
2029
2342
  ...props
2030
2343
  } = _ref2;
2031
2344
  const {
@@ -2035,6 +2348,11 @@ const Button = /* #__PURE__ */(() => {
2035
2348
  const {
2036
2349
  USE_FLEX_BUTTON: flexOverride
2037
2350
  } = useDesignSystemFlags();
2351
+ const eventContext = useDesignSystemEventComponentCallbacks({
2352
+ componentType: DesignSystemEventProviderComponentTypes.Button,
2353
+ componentId,
2354
+ analyticsEvents: analyticsEvents !== null && analyticsEvents !== void 0 ? analyticsEvents : [DesignSystemEventProviderAnalyticsEventTypes.OnClick]
2355
+ });
2038
2356
  const flexSafex = safex('databricks.fe.designsystem.useFlexButtonStyles', false);
2039
2357
  const isFlex = flexOverride || flexSafex;
2040
2358
  const clsEndIcon = getEndIconClsName(theme);
@@ -2059,6 +2377,7 @@ const Button = /* #__PURE__ */(() => {
2059
2377
  if (loading) {
2060
2378
  return;
2061
2379
  }
2380
+ eventContext.onClick();
2062
2381
  onClick === null || onClick === void 0 || onClick(event);
2063
2382
  };
2064
2383
  const loadingSpinner = jsx(Spinner, {
@@ -2534,12 +2853,6 @@ const Typography = /* #__PURE__ */(() => {
2534
2853
  return Typography;
2535
2854
  })();
2536
2855
 
2537
- const uniqueId = () => new Date().getTime() + Array(16).fill('').map(() => parseInt((Math.random() * 10).toString())).join('');
2538
- function useUniqueId() {
2539
- let prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
2540
- return useState(() => `${prefix}-${uniqueId()}`)[0];
2541
- }
2542
-
2543
2856
  const Tooltip = _ref => {
2544
2857
  let {
2545
2858
  children,
@@ -3322,5 +3635,5 @@ var DropdownMenu = /*#__PURE__*/Object.freeze({
3322
3635
  dropdownSeparatorStyles: dropdownSeparatorStyles
3323
3636
  });
3324
3637
 
3325
- export { LoadingStateContext as $, ApplyDesignSystemContextOverrides as A, Button as B, CloseIcon$1 as C, DesignSystemAntDConfigProvider as D, getDisabledStyles as E, useUniqueId as F, useDesignSystemFlags as G, getButtonEmotionStyles as H, Icon as I, DesignSystemThemeContext as J, DesignSystemContext as K, LoadingState as L, DesignSystemThemeProvider as M, DesignSystemProvider as N, ApplyDesignSystemFlags as O, useAntDConfigProviderContext as P, DropdownMenu as Q, RestoreAntDDefaultClsPrefix as R, Spinner as S, Typography as T, CursorIcon$1 as U, FaceFrownIcon$1 as V, WithDesignSystemThemeHoc as W, FaceNeutralIcon$1 as X, FaceSmileIcon$1 as Y, MegaphoneIcon$1 as Z, NewWindowIcon$1 as _, getDarkModePortalStyles as a, getTypographyColor as a0, getBottomOnlyShadowScrollStyles as a1, ColorVars as a2, dropdownItemStyles as a3, dropdownSeparatorStyles as a4, ChevronRightIcon$1 as b, useDesignSystemContext as c, Tooltip as d, InfoIcon$1 as e, Input as f, getAnimationCss as g, CheckIcon$1 as h, importantify as i, getValidationStateColor as j, getShadowScrollStyles as k, DangerIcon$1 as l, LoadingIcon$1 as m, dropdownContentStyles as n, Title as o, AccessibleContainer as p, ChevronLeftIcon$1 as q, DU_BOIS_ENABLE_ANIMATION_CLASSNAME as r, safex as s, lightColorList as t, useDesignSystemTheme as u, visuallyHidden as v, Root as w, Trigger as x, getDefaultStyles as y, getPrimaryStyles as z };
3326
- //# sourceMappingURL=DropdownMenu-06a1051f.js.map
3638
+ export { FaceFrownIcon$1 as $, ApplyDesignSystemContextOverrides as A, Button as B, CloseIcon$1 as C, DesignSystemAntDConfigProvider as D, getPrimaryStyles as E, getDisabledStyles as F, useDesignSystemFlags as G, getButtonEmotionStyles as H, Icon as I, DesignSystemEventProviderComponentTypes as J, DesignSystemEventProviderAnalyticsEventTypes as K, LoadingState as L, useDesignSystemEventComponentCallbacks as M, DesignSystemEventProvider as N, DesignSystemThemeContext as O, DesignSystemContext as P, DesignSystemThemeProvider as Q, RestoreAntDDefaultClsPrefix as R, Spinner as S, Typography as T, DesignSystemProvider as U, ApplyDesignSystemFlags as V, WarningIcon$1 as W, useAntDConfigProviderContext as X, DropdownMenu as Y, WithDesignSystemThemeHoc as Z, CursorIcon$1 as _, getDarkModePortalStyles as a, FaceNeutralIcon$1 as a0, FaceSmileIcon$1 as a1, MegaphoneIcon$1 as a2, NewWindowIcon$1 as a3, LoadingStateContext as a4, getTypographyColor as a5, getBottomOnlyShadowScrollStyles as a6, ColorVars as a7, primitiveColors as a8, dropdownItemStyles as a9, dropdownSeparatorStyles as aa, ChevronRightIcon$1 as b, useDesignSystemContext as c, Tooltip as d, InfoIcon$1 as e, Input as f, getAnimationCss as g, CheckIcon$1 as h, importantify as i, getValidationStateColor as j, getShadowScrollStyles as k, DangerIcon$1 as l, LoadingIcon$1 as m, dropdownContentStyles as n, useUniqueId as o, Title as p, AccessibleContainer as q, ChevronLeftIcon$1 as r, safex as s, DU_BOIS_ENABLE_ANIMATION_CLASSNAME as t, useDesignSystemTheme as u, visuallyHidden as v, lightColorList as w, Root as x, Trigger as y, getDefaultStyles as z };
3639
+ //# sourceMappingURL=DropdownMenu-dbeef1b7.js.map