@databricks/design-system 1.12.13 → 1.12.14

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-dbeef1b7.js → Stepper-839336b1.js} +367 -602
  2. package/dist/Stepper-839336b1.js.map +1 -0
  3. package/dist/design-system/AutoComplete/AutoComplete.d.ts +3 -0
  4. package/dist/design-system/AutoComplete/AutoComplete.d.ts.map +1 -1
  5. package/dist/design-system/Button/Button.d.ts +11 -2
  6. package/dist/design-system/Button/Button.d.ts.map +1 -1
  7. package/dist/design-system/Checkbox/Checkbox.d.ts.map +1 -1
  8. package/dist/design-system/ContextMenu/ContextMenu.d.ts.map +1 -0
  9. package/dist/design-system/ContextMenu/index.d.ts +2 -0
  10. package/dist/design-system/ContextMenu/index.d.ts.map +1 -0
  11. package/dist/design-system/DatePicker/DatePicker.d.ts.map +1 -1
  12. package/dist/design-system/DesignSystemEventProvider/DesignSystemEventProvider.d.ts +1 -0
  13. package/dist/design-system/DesignSystemEventProvider/DesignSystemEventProvider.d.ts.map +1 -1
  14. package/dist/design-system/DialogCombobox/DialogComboboxAddButton.d.ts +1 -1
  15. package/dist/design-system/DialogCombobox/DialogComboboxAddButton.d.ts.map +1 -1
  16. package/dist/design-system/DialogCombobox/DialogComboboxOptionListSearch.d.ts +9 -5
  17. package/dist/design-system/DialogCombobox/DialogComboboxOptionListSearch.d.ts.map +1 -1
  18. package/dist/design-system/DialogCombobox/DialogComboboxOptionListSelectItem.d.ts +1 -1
  19. package/dist/design-system/DialogCombobox/DialogComboboxOptionListSelectItem.d.ts.map +1 -1
  20. package/dist/design-system/DialogCombobox/DialogComboboxTrigger.d.ts.map +1 -1
  21. package/dist/design-system/Drawer/Drawer.d.ts.map +1 -1
  22. package/dist/design-system/DropdownMenu/DropdownMenu.d.ts +1 -2
  23. package/dist/design-system/DropdownMenu/DropdownMenu.d.ts.map +1 -1
  24. package/dist/design-system/FormV2/RHFAdapters.d.ts +1 -1
  25. package/dist/design-system/FormV2/RHFAdapters.d.ts.map +1 -1
  26. package/dist/design-system/Header/Header.d.ts.map +1 -1
  27. package/dist/design-system/Input/Input.d.ts +9 -1
  28. package/dist/design-system/Input/Input.d.ts.map +1 -1
  29. package/dist/design-system/Input/index.d.ts +2 -1
  30. package/dist/design-system/Input/index.d.ts.map +1 -1
  31. package/dist/design-system/Modal/Modal.d.ts +2 -2
  32. package/dist/design-system/Modal/Modal.d.ts.map +1 -1
  33. package/dist/design-system/Notification/Notification.d.ts.map +1 -1
  34. package/dist/design-system/Pagination/index.d.ts +8 -1
  35. package/dist/design-system/Pagination/index.d.ts.map +1 -1
  36. package/dist/design-system/Popover/InfoPopover.d.ts +2 -1
  37. package/dist/design-system/Popover/InfoPopover.d.ts.map +1 -1
  38. package/dist/design-system/Select/Select.d.ts.map +1 -1
  39. package/dist/design-system/Sidebar/Sidebar.d.ts.map +1 -1
  40. package/dist/design-system/SplitButton/Dropdown/DropdownButton.d.ts.map +1 -1
  41. package/dist/design-system/SplitButton/SplitButton.d.ts.map +1 -1
  42. package/dist/design-system/Switch/Switch.d.ts.map +1 -1
  43. package/dist/design-system/TableUI/TableFilterInput.d.ts +2 -1
  44. package/dist/design-system/TableUI/TableFilterInput.d.ts.map +1 -1
  45. package/dist/design-system/TableUI/TableFilterLayout.d.ts.map +1 -1
  46. package/dist/design-system/Tooltip/Tooltip.d.ts +6 -0
  47. package/dist/design-system/Tooltip/Tooltip.d.ts.map +1 -1
  48. package/dist/design-system/Tree/Tree.d.ts.map +1 -1
  49. package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxAddButton.d.ts +3 -0
  50. package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxAddButton.d.ts.map +1 -0
  51. package/dist/design-system/TypeaheadCombobox/hooks/downshiftHookWrappers.d.ts +3 -1
  52. package/dist/design-system/TypeaheadCombobox/hooks/downshiftHookWrappers.d.ts.map +1 -1
  53. package/dist/design-system/TypeaheadCombobox/index.d.ts +1 -0
  54. package/dist/design-system/TypeaheadCombobox/index.d.ts.map +1 -1
  55. package/dist/design-system/Wizard/Wizard.d.ts +74 -0
  56. package/dist/design-system/Wizard/Wizard.d.ts.map +1 -0
  57. package/dist/design-system/Wizard/WizardFooter.d.ts +15 -0
  58. package/dist/design-system/Wizard/WizardFooter.d.ts.map +1 -0
  59. package/dist/design-system/Wizard/WizardModal.d.ts +7 -0
  60. package/dist/design-system/Wizard/WizardModal.d.ts.map +1 -0
  61. package/dist/design-system/Wizard/WizardStep.d.ts +71 -0
  62. package/dist/design-system/Wizard/WizardStep.d.ts.map +1 -0
  63. package/dist/design-system/Wizard/WizardStepsContent.d.ts +10 -0
  64. package/dist/design-system/Wizard/WizardStepsContent.d.ts.map +1 -0
  65. package/dist/design-system/Wizard/index.d.ts +5 -0
  66. package/dist/design-system/Wizard/index.d.ts.map +1 -0
  67. package/dist/design-system/Wizard/useWizardCurrentStep.d.ts +20 -0
  68. package/dist/design-system/Wizard/useWizardCurrentStep.d.ts.map +1 -0
  69. package/dist/design-system/_shared_/Combobox/styles.d.ts +9 -0
  70. package/dist/design-system/_shared_/Combobox/styles.d.ts.map +1 -1
  71. package/dist/design-system/index.d.ts +2 -0
  72. package/dist/design-system/index.d.ts.map +1 -1
  73. package/dist/design-system/utils/safex.d.ts +3 -2
  74. package/dist/design-system/utils/safex.d.ts.map +1 -1
  75. package/dist/design-system/utils/useNotifyOnFirstView.d.ts +15 -0
  76. package/dist/design-system/utils/useNotifyOnFirstView.d.ts.map +1 -0
  77. package/dist/development/Banner/Banner.d.ts +15 -4
  78. package/dist/development/Banner/Banner.d.ts.map +1 -1
  79. package/dist/development/ChatUI/ChatInput.d.ts.map +1 -1
  80. package/dist/development/ChatUI/Feedback.d.ts.map +1 -1
  81. package/dist/development/Stepper/Stepper.d.ts +62 -0
  82. package/dist/development/Stepper/Stepper.d.ts.map +1 -0
  83. package/dist/development/Stepper/index.d.ts +2 -0
  84. package/dist/development/Stepper/index.d.ts.map +1 -0
  85. package/dist/development/index.d.ts +1 -1
  86. package/dist/development/index.d.ts.map +1 -1
  87. package/dist/development.js +111 -228
  88. package/dist/development.js.map +1 -1
  89. package/dist/dubois-colors.less +54 -56
  90. package/dist/index-dark.css +193 -193
  91. package/dist/index.css +109 -109
  92. package/dist/index.js +1734 -511
  93. package/dist/index.js.map +1 -1
  94. package/dist/theme/_generated/SemanticColors-Dark.d.ts.map +1 -1
  95. package/dist/theme/_generated/SemanticColors-Light.d.ts.map +1 -1
  96. package/dist/theme/_generated/ValidSemanticColors.d.ts +0 -1
  97. package/dist/theme/_generated/ValidSemanticColors.d.ts.map +1 -1
  98. package/dist/theme/spacing.d.ts +1 -0
  99. package/dist/theme/spacing.d.ts.map +1 -1
  100. package/package.json +1 -1
  101. package/dist/DropdownMenu-dbeef1b7.js.map +0 -1
  102. package/dist/development/ContextMenu/ContextMenu.d.ts.map +0 -1
  103. package/dist/development/ContextMenu/index.d.ts +0 -2
  104. package/dist/development/ContextMenu/index.d.ts.map +0 -1
  105. /package/dist/{development → design-system}/ContextMenu/ContextMenu.d.ts +0 -0
package/dist/index.js CHANGED
@@ -1,12 +1,15 @@
1
- import { u as useDesignSystemTheme, I as Icon, D as DesignSystemAntDConfigProvider, R as RestoreAntDDefaultClsPrefix, g as getAnimationCss, C as CloseIcon, a as getDarkModePortalStyles, b as ChevronRightIcon, L as LoadingState, v as visuallyHidden, T as Typography, s as safex, i as importantify, S as Spinner, c as useDesignSystemContext, d as Tooltip, e as InfoIcon, f as Input, h as CheckIcon, B as Button, j as getValidationStateColor, A as ApplyDesignSystemContextOverrides, k as getShadowScrollStyles, l as DangerIcon, W as WarningIcon, m as LoadingIcon, n as dropdownContentStyles, o as useUniqueId, p as Title$2, q as AccessibleContainer, r as ChevronLeftIcon, t as DU_BOIS_ENABLE_ANIMATION_CLASSNAME, w as lightColorList, x as Root$4, y as Trigger$2, z as getDefaultStyles, E as getPrimaryStyles, F as getDisabledStyles, G as useDesignSystemFlags } from './DropdownMenu-dbeef1b7.js';
2
- export { V as ApplyDesignSystemFlags, a7 as ColorVars, _ as CursorIcon, P as DesignSystemContext, N as DesignSystemEventProvider, K as DesignSystemEventProviderAnalyticsEventTypes, J as DesignSystemEventProviderComponentTypes, U as DesignSystemProvider, O as DesignSystemThemeContext, Q as DesignSystemThemeProvider, Y as DropdownMenu, $ as FaceFrownIcon, a0 as FaceNeutralIcon, a1 as FaceSmileIcon, a4 as LoadingStateContext, a2 as MegaphoneIcon, a3 as NewWindowIcon, Z as WithDesignSystemThemeHoc, a6 as getBottomOnlyShadowScrollStyles, H as getButtonEmotionStyles, a5 as getTypographyColor, X as useAntDConfigProviderContext, M as useDesignSystemEventComponentCallbacks } from './DropdownMenu-dbeef1b7.js';
1
+ import { u as useDesignSystemTheme, I as Icon, D as DesignSystemAntDConfigProvider, R as RestoreAntDDefaultClsPrefix, g as getAnimationCss, C as CloseIcon, a as getDarkModePortalStyles, b as ChevronRightIcon, L as LoadingState, v as visuallyHidden, T as Typography, s as safex, i as importantify, c as useUniqueId, d as useDesignSystemContext, e as CheckIcon, S as Spinner, f as Input, B as Button, h as getValidationStateColor, A as ApplyDesignSystemContextOverrides, j as getShadowScrollStyles, k as DangerIcon, W as WarningIcon, l as LoadingIcon, m as Title$2, n as AccessibleContainer, o as ChevronLeftIcon, p as DU_BOIS_ENABLE_ANIMATION_CLASSNAME, q as lightColorList, r as getDefaultStyles, t as getPrimaryStyles, w as getDisabledStyles, x as useDesignSystemFlags, y as Stepper } from './Stepper-839336b1.js';
2
+ export { O as ApplyDesignSystemFlags, a3 as ColorVars, U as CursorIcon, K as DesignSystemContext, H as DesignSystemEventProvider, F as DesignSystemEventProviderAnalyticsEventTypes, E as DesignSystemEventProviderComponentTypes, N as DesignSystemProvider, J as DesignSystemThemeContext, M as DesignSystemThemeProvider, V as FaceFrownIcon, X as FaceNeutralIcon, Y as FaceSmileIcon, a0 as LoadingStateContext, Z as MegaphoneIcon, _ as NewWindowIcon, Q as WithDesignSystemThemeHoc, a2 as getBottomOnlyShadowScrollStyles, z as getButtonEmotionStyles, $ as getInputStyles, a1 as getTypographyColor, P as useAntDConfigProviderContext, G as useDesignSystemEventComponentCallbacks } from './Stepper-839336b1.js';
3
3
  import { css, Global, keyframes, ClassNames, createElement } from '@emotion/react';
4
- import { Collapse, Alert as Alert$1, AutoComplete as AutoComplete$1, Breadcrumb as Breadcrumb$1, Checkbox as Checkbox$1, DatePicker, Dropdown as Dropdown$1, Form as Form$1, Radio as Radio$1, Select as Select$1, Switch as Switch$1, Col as Col$1, Row as Row$1, Space as Space$1, Layout as Layout$1, notification, Popover as Popover$2, Skeleton, Pagination as Pagination$1, Table as Table$1, Menu as Menu$1, Modal as Modal$1, Button as Button$1, Steps as Steps$1, Tabs as Tabs$1, Tree as Tree$1 } from 'antd';
4
+ import { Collapse, Alert as Alert$1, AutoComplete as AutoComplete$1, Breadcrumb as Breadcrumb$1, Checkbox as Checkbox$1, Tooltip as Tooltip$1, DatePicker, Dropdown as Dropdown$1, Form as Form$1, Radio as Radio$1, Select as Select$1, Switch as Switch$1, Col as Col$1, Row as Row$1, Space as Space$1, Layout as Layout$1, notification, Popover as Popover$2, Skeleton, Pagination as Pagination$1, Table as Table$1, Menu as Menu$1, Modal as Modal$1, Button as Button$1, Steps as Steps$1, Tabs as Tabs$1, Tree as Tree$1 } from 'antd';
5
5
  import { jsx, jsxs, Fragment } from '@emotion/react/jsx-runtime';
6
6
  import * as React from 'react';
7
7
  import React__default, { useRef, useMemo, forwardRef, useEffect, createContext, useState, useImperativeHandle, useContext, Children, useCallback, Fragment as Fragment$1, useLayoutEffect } from 'react';
8
8
  import classnames from 'classnames';
9
9
  import _isUndefined from 'lodash/isUndefined';
10
+ import { ContextMenu as ContextMenu$2, ContextMenuTrigger, ContextMenuItemIndicator, ContextMenuGroup, ContextMenuRadioGroup, ContextMenuArrow, ContextMenuSub, ContextMenuSubTrigger, ContextMenuPortal, ContextMenuContent, ContextMenuSubContent, ContextMenuItem, ContextMenuCheckboxItem, ContextMenuRadioItem, ContextMenuLabel, ContextMenuSeparator } from '@radix-ui/react-context-menu';
11
+ import * as DropdownMenu$1 from '@radix-ui/react-dropdown-menu';
12
+ import _isNil from 'lodash/isNil';
10
13
  import * as Popover$1 from '@radix-ui/react-popover';
11
14
  import * as DialogPrimitive from '@radix-ui/react-dialog';
12
15
  import { useController } from 'react-hook-form';
@@ -21,8 +24,8 @@ import _times from 'lodash/times';
21
24
  import _random from 'lodash/random';
22
25
  import * as Toggle from '@radix-ui/react-toggle';
23
26
  import chroma from 'chroma-js';
24
- import '@radix-ui/react-dropdown-menu';
25
- import 'lodash/isNil';
27
+ import _compact from 'lodash/compact';
28
+ import _pick from 'lodash/pick';
26
29
  import 'lodash/endsWith';
27
30
  import 'lodash/isBoolean';
28
31
  import 'lodash/isNumber';
@@ -3348,6 +3351,35 @@ const InfoFillIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
3348
3351
  InfoFillIcon.displayName = 'InfoFillIcon';
3349
3352
  var InfoFillIcon$1 = InfoFillIcon;
3350
3353
 
3354
+ function SvgInfoIcon(props) {
3355
+ return jsxs("svg", {
3356
+ xmlns: "http://www.w3.org/2000/svg",
3357
+ width: "1em",
3358
+ height: "1em",
3359
+ fill: "none",
3360
+ viewBox: "0 0 16 16",
3361
+ ...props,
3362
+ children: [jsx("path", {
3363
+ fill: "currentColor",
3364
+ d: "M7.25 11V7h1.5v4h-1.5ZM8 4.5A.75.75 0 1 1 8 6a.75.75 0 0 1 0-1.5Z"
3365
+ }), jsx("path", {
3366
+ fill: "currentColor",
3367
+ fillRule: "evenodd",
3368
+ d: "M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13Z",
3369
+ clipRule: "evenodd"
3370
+ })]
3371
+ });
3372
+ }
3373
+ const InfoIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
3374
+ return jsx(Icon, {
3375
+ ref: forwardedRef,
3376
+ ...props,
3377
+ component: SvgInfoIcon
3378
+ });
3379
+ });
3380
+ InfoIcon.displayName = 'InfoIcon';
3381
+ var InfoIcon$1 = InfoIcon;
3382
+
3351
3383
  function SvgIngestionIcon(props) {
3352
3384
  return jsxs("svg", {
3353
3385
  xmlns: "http://www.w3.org/2000/svg",
@@ -7173,6 +7205,9 @@ const ApplyGlobalStyles = () => {
7173
7205
  });
7174
7206
  };
7175
7207
 
7208
+ /**
7209
+ * @deprecated Use `TypeaheadCombobox` instead.
7210
+ */
7176
7211
  const AutoComplete = /* #__PURE__ */(() => {
7177
7212
  const AutoComplete = _ref => {
7178
7213
  let {
@@ -7310,14 +7345,14 @@ const genSkeletonAnimatedColor = function (theme) {
7310
7345
  }, process.env.NODE_ENV === "production" ? "" : ";label:genSkeletonAnimatedColor;");
7311
7346
  };
7312
7347
 
7313
- function _EMOTION_STRINGIFIED_CSS_ERROR__$u() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
7348
+ function _EMOTION_STRINGIFIED_CSS_ERROR__$t() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
7314
7349
  const GenericContainerStyles = process.env.NODE_ENV === "production" ? {
7315
7350
  name: "12h7em6",
7316
7351
  styles: "cursor:progress;border-radius:var(--border-radius)"
7317
7352
  } : {
7318
7353
  name: "19fx6jo-GenericContainerStyles",
7319
7354
  styles: "cursor:progress;border-radius:var(--border-radius);label:GenericContainerStyles;",
7320
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$u
7355
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$t
7321
7356
  };
7322
7357
  const GenericSkeleton = _ref => {
7323
7358
  let {
@@ -7347,14 +7382,14 @@ const GenericSkeleton = _ref => {
7347
7382
  });
7348
7383
  };
7349
7384
 
7350
- function _EMOTION_STRINGIFIED_CSS_ERROR__$t() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
7385
+ function _EMOTION_STRINGIFIED_CSS_ERROR__$s() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
7351
7386
  const paragraphContainerStyles = process.env.NODE_ENV === "production" ? {
7352
7387
  name: "sj05g9",
7353
7388
  styles: "cursor:progress;width:100%;height:20px;display:flex;justify-content:flex-start;align-items:center"
7354
7389
  } : {
7355
7390
  name: "u3a3v7-paragraphContainerStyles",
7356
7391
  styles: "cursor:progress;width:100%;height:20px;display:flex;justify-content:flex-start;align-items:center;label:paragraphContainerStyles;",
7357
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$t
7392
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$s
7358
7393
  };
7359
7394
  const paragraphFillStyles = process.env.NODE_ENV === "production" ? {
7360
7395
  name: "10nptxl",
@@ -7362,7 +7397,7 @@ const paragraphFillStyles = process.env.NODE_ENV === "production" ? {
7362
7397
  } : {
7363
7398
  name: "h6xifd-paragraphFillStyles",
7364
7399
  styles: "border-radius:var(--border-radius);height:8px;label:paragraphFillStyles;",
7365
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$t
7400
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$s
7366
7401
  };
7367
7402
  const ParagraphSkeleton = _ref => {
7368
7403
  let {
@@ -7399,14 +7434,14 @@ const ParagraphSkeleton = _ref => {
7399
7434
  });
7400
7435
  };
7401
7436
 
7402
- function _EMOTION_STRINGIFIED_CSS_ERROR__$s() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
7437
+ function _EMOTION_STRINGIFIED_CSS_ERROR__$r() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
7403
7438
  const titleContainerStyles = process.env.NODE_ENV === "production" ? {
7404
7439
  name: "116rc6i",
7405
7440
  styles: "cursor:progress;width:100%;height:28px;display:flex;justify-content:flex-start;align-items:center"
7406
7441
  } : {
7407
7442
  name: "1dar8xl-titleContainerStyles",
7408
7443
  styles: "cursor:progress;width:100%;height:28px;display:flex;justify-content:flex-start;align-items:center;label:titleContainerStyles;",
7409
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$s
7444
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$r
7410
7445
  };
7411
7446
  const titleFillStyles = process.env.NODE_ENV === "production" ? {
7412
7447
  name: "9fmdbb",
@@ -7414,7 +7449,7 @@ const titleFillStyles = process.env.NODE_ENV === "production" ? {
7414
7449
  } : {
7415
7450
  name: "1vyd6dg-titleFillStyles",
7416
7451
  styles: "border-radius:var(--border-radius);height:12px;width:100%;label:titleFillStyles;",
7417
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$s
7452
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$r
7418
7453
  };
7419
7454
  const TitleSkeleton = _ref => {
7420
7455
  let {
@@ -7447,7 +7482,7 @@ const TitleSkeleton = _ref => {
7447
7482
  });
7448
7483
  };
7449
7484
 
7450
- function _EMOTION_STRINGIFIED_CSS_ERROR__$r() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
7485
+ function _EMOTION_STRINGIFIED_CSS_ERROR__$q() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
7451
7486
  // Class names that can be used to reference children within
7452
7487
  // Should not be used outside of design system
7453
7488
  // TODO: PE-239 Maybe we could add "dangerous" into the names or make them completely random.
@@ -7470,7 +7505,7 @@ const repeatingElementsStyles = {
7470
7505
  } : {
7471
7506
  name: "10gwa9a-cell",
7472
7507
  styles: "display:inline-grid;position:relative;flex:1;box-sizing:border-box;padding-left:var(--table-spacing-sm);padding-right:var(--table-spacing-sm);word-break:break-word;overflow:hidden;& .anticon{vertical-align:text-bottom;};label:cell;",
7473
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$r
7508
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$q
7474
7509
  },
7475
7510
  header: process.env.NODE_ENV === "production" ? {
7476
7511
  name: "ik7qgz",
@@ -7478,7 +7513,7 @@ const repeatingElementsStyles = {
7478
7513
  } : {
7479
7514
  name: "1xg6jn4-header",
7480
7515
  styles: "font-weight:bold;align-items:flex-end;display:flex;overflow:hidden;&[aria-sort]{cursor:pointer;user-select:none;}.table-header-text{color:var(--table-header-text-color);}.table-header-icon-container{color:var(--table-header-sort-icon-color);display:none;}&[aria-sort]:hover{.table-header-icon-container, .table-header-text{color:var(--table-header-focus-color);}}&[aria-sort]:active{.table-header-icon-container, .table-header-text{color:var(--table-header-active-color);}}&:hover, &[aria-sort=\"ascending\"], &[aria-sort=\"descending\"]{.table-header-icon-container{display:inline;}};label:header;",
7481
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$r
7516
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$q
7482
7517
  },
7483
7518
  row: process.env.NODE_ENV === "production" ? {
7484
7519
  name: "ndcf6g",
@@ -7486,7 +7521,7 @@ const repeatingElementsStyles = {
7486
7521
  } : {
7487
7522
  name: "8dtpje-row",
7488
7523
  styles: "display:flex;&.table-isHeader{> *{background-color:var(--table-header-background-color);}.table-isScrollable &{position:sticky;top:0;z-index:1;}}.table-row-select-cell input[type=\"checkbox\"] ~ *{opacity:var(--row-checkbox-opacity, 0);}&:not(.table-row-isGrid)&:hover{&:not(.table-isHeader){background-color:var(--table-row-hover);}.table-row-select-cell input[type=\"checkbox\"] ~ *{opacity:1;}}.table-row-select-cell input[type=\"checkbox\"]:focus ~ *{opacity:1;}> *{padding-top:var(--table-row-vertical-padding);padding-bottom:var(--table-row-vertical-padding);border-bottom:1px solid;border-color:var(--table-separator-color);}&.table-row-isGrid > *{border-right:1px solid;border-color:var(--table-separator-color);}&.table-row-isGrid > :first-of-type{border-left:1px solid;border-color:var(--table-separator-color);}&.table-row-isGrid.table-isHeader:first-of-type > *{border-top:1px solid;border-color:var(--table-separator-color);};label:row;",
7489
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$r
7524
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$q
7490
7525
  }
7491
7526
  };
7492
7527
 
@@ -7511,7 +7546,7 @@ const tableStyles = {
7511
7546
  } : {
7512
7547
  name: "1csnd2v-table",
7513
7548
  styles: ".table-isScrollable &{flex:1;overflow:auto;};label:table;",
7514
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$r
7549
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$q
7515
7550
  },
7516
7551
  headerButtonTarget: process.env.NODE_ENV === "production" ? {
7517
7552
  name: "sezlox",
@@ -7519,7 +7554,7 @@ const tableStyles = {
7519
7554
  } : {
7520
7555
  name: "1iv4trp-headerButtonTarget",
7521
7556
  styles: "align-items:flex-end;display:flex;overflow:hidden;width:100%;justify-content:inherit;&:focus{.table-header-text{color:var(--table-header-focus-color);}.table-header-icon-container{color:var(--table-header-focus-color);display:inline;}}&:active{.table-header-icon-container, .table-header-text{color:var(--table-header-active-color);}};label:headerButtonTarget;",
7522
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$r
7557
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$q
7523
7558
  },
7524
7559
  sortHeaderIconOnRight: process.env.NODE_ENV === "production" ? {
7525
7560
  name: "1hdiaor",
@@ -7527,7 +7562,7 @@ const tableStyles = {
7527
7562
  } : {
7528
7563
  name: "evh3p3-sortHeaderIconOnRight",
7529
7564
  styles: "margin-left:var(--table-spacing-xs);label:sortHeaderIconOnRight;",
7530
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$r
7565
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$q
7531
7566
  },
7532
7567
  sortHeaderIconOnLeft: process.env.NODE_ENV === "production" ? {
7533
7568
  name: "d4plmt",
@@ -7535,7 +7570,7 @@ const tableStyles = {
7535
7570
  } : {
7536
7571
  name: "1gr7edl-sortHeaderIconOnLeft",
7537
7572
  styles: "margin-right:var(--table-spacing-xs);label:sortHeaderIconOnLeft;",
7538
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$r
7573
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$q
7539
7574
  },
7540
7575
  checkboxCell: process.env.NODE_ENV === "production" ? {
7541
7576
  name: "4cdr0s",
@@ -7543,7 +7578,7 @@ const tableStyles = {
7543
7578
  } : {
7544
7579
  name: "17au6u2-checkboxCell",
7545
7580
  styles: "display:flex;align-items:center;flex:0;padding-left:var(--table-spacing-sm);padding-top:0;padding-bottom:0;min-width:var(--table-spacing-md);max-width:var(--table-spacing-md);box-sizing:content-box;label:checkboxCell;",
7546
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$r
7581
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$q
7547
7582
  },
7548
7583
  resizeHandleContainer: /*#__PURE__*/css({
7549
7584
  position: 'absolute',
@@ -7564,7 +7599,7 @@ const tableStyles = {
7564
7599
  } : {
7565
7600
  name: "1ot7jju-resizeHandle",
7566
7601
  styles: "width:1px;background:var(--table-resize-handle-color);label:resizeHandle;",
7567
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$r
7602
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$q
7568
7603
  },
7569
7604
  paginationContainer: process.env.NODE_ENV === "production" ? {
7570
7605
  name: "ehlmid",
@@ -7572,7 +7607,7 @@ const tableStyles = {
7572
7607
  } : {
7573
7608
  name: "p324df-paginationContainer",
7574
7609
  styles: "display:flex;justify-content:flex-end;padding-top:var(--table-spacing-sm);padding-bottom:var(--table-spacing-sm);label:paginationContainer;",
7575
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$r
7610
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$q
7576
7611
  }
7577
7612
  };
7578
7613
  var tableStyles$1 = tableStyles;
@@ -7758,7 +7793,7 @@ const TableRow = /*#__PURE__*/forwardRef(function TableRow(_ref, ref) {
7758
7793
  });
7759
7794
  });
7760
7795
 
7761
- function _EMOTION_STRINGIFIED_CSS_ERROR__$q() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
7796
+ function _EMOTION_STRINGIFIED_CSS_ERROR__$p() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
7762
7797
  const TableRowActionStyles = {
7763
7798
  container: process.env.NODE_ENV === "production" ? {
7764
7799
  name: "gk361n",
@@ -7766,7 +7801,7 @@ const TableRowActionStyles = {
7766
7801
  } : {
7767
7802
  name: "q9pljs-container",
7768
7803
  styles: "width:32px;padding-top:var(--vertical-padding);padding-bottom:var(--vertical-padding);display:flex;align-items:start;justify-content:center;label:container;",
7769
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$q
7804
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$p
7770
7805
  }
7771
7806
  };
7772
7807
  const TableRowAction = /*#__PURE__*/forwardRef(function TableRowAction(_ref, ref) {
@@ -7802,7 +7837,7 @@ const TableRowAction = /*#__PURE__*/forwardRef(function TableRowAction(_ref, ref
7802
7837
  /** @deprecated Use `TableRowAction` instead */
7803
7838
  const TableRowMenuContainer = TableRowAction;
7804
7839
 
7805
- function _EMOTION_STRINGIFIED_CSS_ERROR__$p() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
7840
+ function _EMOTION_STRINGIFIED_CSS_ERROR__$o() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
7806
7841
  const TableSkeletonStyles = {
7807
7842
  container: process.env.NODE_ENV === "production" ? {
7808
7843
  name: "6kz1wu",
@@ -7810,7 +7845,7 @@ const TableSkeletonStyles = {
7810
7845
  } : {
7811
7846
  name: "1we0er9-container",
7812
7847
  styles: "display:flex;flex-direction:column;align-items:flex-start;label:container;",
7813
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$p
7848
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$o
7814
7849
  },
7815
7850
  cell: process.env.NODE_ENV === "production" ? {
7816
7851
  name: "1t820zr",
@@ -7818,7 +7853,7 @@ const TableSkeletonStyles = {
7818
7853
  } : {
7819
7854
  name: "1m8dl5b-cell",
7820
7855
  styles: "width:100%;height:8px;border-radius:4px;background:var(--table-skeleton-color);margin-top:var(--table-skeleton-row-vertical-margin);margin-bottom:var(--table-skeleton-row-vertical-margin);label:cell;",
7821
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$p
7856
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$o
7822
7857
  }
7823
7858
  };
7824
7859
  const TableSkeleton = _ref => {
@@ -8041,7 +8076,7 @@ function getCheckboxEmotionStyles(clsPrefix, theme) {
8041
8076
  const hoverSelector = `${classInput}:hover + ${classInner}`;
8042
8077
  const pressSelector = `${classInput}:active + ${classInner}`;
8043
8078
  const styles = {
8044
- ...(useNewCheckboxStyles && {
8079
+ ...(useNewCheckboxStyles ? {
8045
8080
  [`.${clsPrefix}`]: {
8046
8081
  top: 'unset',
8047
8082
  lineHeight: theme.typography.lineHeightBase
@@ -8050,7 +8085,7 @@ function getCheckboxEmotionStyles(clsPrefix, theme) {
8050
8085
  alignItems: 'center',
8051
8086
  lineHeight: theme.typography.lineHeightBase
8052
8087
  }
8053
- }),
8088
+ } : {}),
8054
8089
  // Top level styles are for the unchecked state
8055
8090
  [classInner]: {
8056
8091
  borderColor: theme.colors.actionDefaultBorderDefault
@@ -8199,12 +8234,12 @@ const getWrapperStyle = _ref => {
8199
8234
  const styles = {
8200
8235
  height: theme.typography.lineHeightBase,
8201
8236
  lineHeight: theme.typography.lineHeightBase,
8202
- ...(useNewCheckboxStyles && {
8237
+ ...(useNewCheckboxStyles ? {
8203
8238
  [`&& + .${clsPrefix}-hint, && + .${clsPrefix}-form-message`]: {
8204
8239
  paddingLeft: theme.spacing.lg,
8205
8240
  marginTop: 0
8206
8241
  }
8207
- }),
8242
+ } : {}),
8208
8243
  ...wrapperStyle
8209
8244
  };
8210
8245
  return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getWrapperStyle;");
@@ -8289,140 +8324,940 @@ const Checkbox = CheckboxNamespace;
8289
8324
  // since these will be exposed in the library's exports.
8290
8325
  const __INTERNAL_DO_NOT_USE__Group = CheckboxGroup;
8291
8326
 
8292
- function getEmotionStyles(clsPrefix, theme) {
8293
- const classFocused = `.${clsPrefix}-focused`;
8294
- const classActiveBar = `.${clsPrefix}-active-bar`;
8295
- const classSeparator = `.${clsPrefix}-separator`;
8296
- const classSuffix = `.${clsPrefix}-suffix`;
8297
- const styles = {
8298
- height: 32,
8299
- borderRadius: theme.borders.borderRadiusMd,
8300
- borderColor: theme.colors.border,
8301
- color: theme.colors.textPrimary,
8302
- transition: 'border 0s, box-shadow 0s',
8303
- [`&${classFocused},:hover`]: {
8304
- borderColor: theme.colors.actionDefaultBorderHover
8305
- },
8306
- '&:active': {
8307
- borderColor: theme.colors.actionDefaultBorderPress
8308
- },
8309
- [`&${classFocused}`]: {
8310
- boxShadow: `none !important`,
8311
- outline: `${theme.colors.actionDefaultBorderFocus} solid 2px !important`,
8312
- borderColor: 'transparent !important'
8313
- },
8314
- [`& ${classActiveBar}`]: {
8315
- background: `${theme.colors.actionDefaultBorderPress} !important`
8316
- },
8317
- [`& input::placeholder, & ${classSeparator}, & ${classSuffix}`]: {
8318
- color: theme.colors.textPrimary
8319
- }
8320
- };
8321
- return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getEmotionStyles;");
8322
- }
8323
- const getDropdownStyles$1 = theme => {
8324
- return {
8325
- zIndex: theme.options.zIndexBase + 50
8326
- };
8327
- };
8328
- function useDatePickerStyles() {
8329
- const {
8330
- theme,
8331
- getPrefixedClassName
8332
- } = useDesignSystemTheme();
8333
- const clsPrefix = getPrefixedClassName('picker');
8334
- return getEmotionStyles(clsPrefix, theme);
8335
- }
8336
- const DuboisDatePicker = /*#__PURE__*/forwardRef((props, ref) => {
8337
- const styles = useDatePickerStyles();
8327
+ /**
8328
+ * If the tooltip is not displaying for you, it might be because the child does not accept the onMouseEnter, onMouseLeave, onPointerEnter,
8329
+ * onPointerLeave, onFocus, and onClick props. You can add these props to your child component, or wrap it in a `<span>` tag.
8330
+ *
8331
+ * See go/dubois.
8332
+ */
8333
+ const Tooltip = _ref => {
8334
+ let {
8335
+ children,
8336
+ title,
8337
+ placement = 'top',
8338
+ dataTestId,
8339
+ dangerouslySetAntdProps,
8340
+ silenceScreenReader = false,
8341
+ useAsLabel = false,
8342
+ ...props
8343
+ } = _ref;
8338
8344
  const {
8339
8345
  theme
8340
8346
  } = useDesignSystemTheme();
8341
- return jsx(DesignSystemAntDConfigProvider, {
8342
- children: jsx(DatePicker, {
8343
- css: styles,
8344
- ref: ref,
8345
- ...props,
8346
- popupStyle: {
8347
- ...getDropdownStyles$1(theme),
8348
- ...(props.popupStyle || {})
8349
- }
8350
- })
8347
+ const id = useUniqueId('dubois-tooltip-component-');
8348
+ if (!title) {
8349
+ return jsx(React__default.Fragment, {
8350
+ children: children
8351
+ });
8352
+ }
8353
+ const titleProps = silenceScreenReader ? {} : {
8354
+ 'aria-live': 'polite',
8355
+ 'aria-relevant': 'additions'
8356
+ };
8357
+ if (dataTestId) {
8358
+ // TODO FEINF-1337 - this should turn into data-testid
8359
+ titleProps['data-test-id'] = dataTestId;
8360
+ }
8361
+ const liveTitle = title && /*#__PURE__*/React__default.isValidElement(title) ? /*#__PURE__*/React__default.cloneElement(title, titleProps) : jsx("span", {
8362
+ ...titleProps,
8363
+ children: title
8364
+ });
8365
+ const ariaProps = {
8366
+ [useAsLabel ? 'aria-labelledby' : 'aria-describedby']: id,
8367
+ 'aria-hidden': false
8368
+ };
8369
+ const childWithProps = /*#__PURE__*/React__default.isValidElement(children) ? /*#__PURE__*/React__default.cloneElement(children, {
8370
+ ...ariaProps,
8371
+ ...children.props
8372
+ }) : _isNil(children) ? children : jsx("span", {
8373
+ ...ariaProps,
8374
+ children: children
8351
8375
  });
8352
- });
8353
- const RangePicker = /*#__PURE__*/forwardRef((props, ref) => {
8354
- const styles = useDatePickerStyles();
8355
8376
  const {
8356
- theme
8357
- } = useDesignSystemTheme();
8377
+ overlayInnerStyle,
8378
+ overlayStyle,
8379
+ ...delegatedDangerouslySetAntdProps
8380
+ } = dangerouslySetAntdProps || {};
8358
8381
  return jsx(DesignSystemAntDConfigProvider, {
8359
- children: jsx(DatePicker.RangePicker, {
8360
- css: styles,
8382
+ children: jsx(Tooltip$1, {
8383
+ id: id,
8384
+ title: liveTitle,
8385
+ placement: placement
8386
+ // Always trigger on hover and focus
8387
+ ,
8388
+ trigger: ['hover', 'focus'],
8389
+ overlayInnerStyle: {
8390
+ backgroundColor: '#2F3941',
8391
+ lineHeight: '22px',
8392
+ padding: '4px 8px',
8393
+ boxShadow: theme.general.shadowLow,
8394
+ ...overlayInnerStyle,
8395
+ ...getDarkModePortalStyles(theme)
8396
+ },
8397
+ overlayStyle: {
8398
+ zIndex: theme.options.zIndexBase + 70,
8399
+ ...overlayStyle
8400
+ },
8401
+ css: /*#__PURE__*/css({
8402
+ ...getAnimationCss(theme.options.enableAnimation)
8403
+ }, process.env.NODE_ENV === "production" ? "" : ";label:Tooltip;"),
8404
+ ...delegatedDangerouslySetAntdProps,
8361
8405
  ...props,
8362
- ref: ref,
8363
- popupStyle: {
8364
- ...getDropdownStyles$1(theme),
8365
- ...(props.popupStyle || {})
8366
- }
8406
+ children: childWithProps
8367
8407
  })
8368
8408
  });
8369
- });
8370
- const TimePicker = /*#__PURE__*/forwardRef((props, ref) => {
8371
- const styles = useDatePickerStyles();
8409
+ };
8410
+
8411
+ const InfoTooltip = _ref => {
8412
+ let {
8413
+ title,
8414
+ tooltipProps,
8415
+ iconTitle,
8416
+ isKeyboardFocusable = true,
8417
+ ...iconProps
8418
+ } = _ref;
8372
8419
  const {
8373
8420
  theme
8374
8421
  } = useDesignSystemTheme();
8375
- return jsx(DesignSystemAntDConfigProvider, {
8376
- children: jsx(DatePicker.TimePicker, {
8377
- css: styles,
8378
- ...props,
8379
- ref: ref,
8380
- popupStyle: {
8381
- ...getDropdownStyles$1(theme),
8382
- ...(props.popupStyle || {})
8383
- }
8422
+ return jsx(Tooltip, {
8423
+ title: title,
8424
+ ...tooltipProps,
8425
+ children: jsx("span", {
8426
+ style: {
8427
+ display: 'inline-flex'
8428
+ },
8429
+ tabIndex: isKeyboardFocusable ? 0 : -1,
8430
+ children: jsx(InfoCircleOutlined, {
8431
+ "aria-hidden": "false",
8432
+ title: iconTitle,
8433
+ "aria-label": iconTitle,
8434
+ css: /*#__PURE__*/css({
8435
+ fontSize: theme.typography.fontSizeSm,
8436
+ color: theme.colors.textSecondary
8437
+ }, process.env.NODE_ENV === "production" ? "" : ";label:InfoTooltip;"),
8438
+ ...iconProps
8439
+ })
8384
8440
  })
8385
8441
  });
8386
- });
8387
- const QuarterPicker = /*#__PURE__*/forwardRef((props, ref) => {
8388
- const styles = useDatePickerStyles();
8442
+ };
8443
+
8444
+ const Root$5 = DropdownMenu$1.Root; // Behavioral component only
8445
+
8446
+ const Content$5 = /*#__PURE__*/forwardRef(function Content(_ref, ref) {
8447
+ let {
8448
+ children,
8449
+ minWidth = 220,
8450
+ isInsideModal,
8451
+ onEscapeKeyDown,
8452
+ onKeyDown,
8453
+ ...props
8454
+ } = _ref;
8389
8455
  const {
8390
- theme
8391
- } = useDesignSystemTheme();
8392
- return jsx(DesignSystemAntDConfigProvider, {
8393
- children: jsx(DatePicker.QuarterPicker, {
8394
- css: styles,
8395
- ...props,
8456
+ getPopupContainer
8457
+ } = useDesignSystemContext();
8458
+ return jsx(DropdownMenu$1.Portal, {
8459
+ container: getPopupContainer && getPopupContainer(),
8460
+ children: jsx(DropdownMenu$1.Content, {
8396
8461
  ref: ref,
8397
- popupStyle: {
8398
- ...getDropdownStyles$1(theme),
8399
- ...(props.popupStyle || {})
8400
- }
8462
+ loop: true,
8463
+ css: [contentStyles$1, {
8464
+ minWidth
8465
+ }, process.env.NODE_ENV === "production" ? "" : ";label:Content;"],
8466
+ sideOffset: 4,
8467
+ align: "start",
8468
+ onKeyDown: e => {
8469
+ // This is a workaround for Radix's DropdownMenu.Content not receiving Escape key events
8470
+ // when nested inside a modal. We need to stop propagation of the event so that the modal
8471
+ // doesn't close when the DropdownMenu should.
8472
+ if (e.key === 'Escape') {
8473
+ if (isInsideModal) {
8474
+ e.stopPropagation();
8475
+ }
8476
+ onEscapeKeyDown === null || onEscapeKeyDown === void 0 || onEscapeKeyDown(e.nativeEvent);
8477
+ }
8478
+ onKeyDown === null || onKeyDown === void 0 || onKeyDown(e);
8479
+ },
8480
+ ...props,
8481
+ children: children
8401
8482
  })
8402
8483
  });
8403
8484
  });
8404
- const WeekPicker = /*#__PURE__*/forwardRef((props, ref) => {
8405
- const styles = useDatePickerStyles();
8485
+ const SubContent$1 = /*#__PURE__*/forwardRef(function Content(_ref2, ref) {
8486
+ let {
8487
+ children,
8488
+ minWidth = 220,
8489
+ ...props
8490
+ } = _ref2;
8406
8491
  const {
8407
- theme
8408
- } = useDesignSystemTheme();
8409
- return jsx(DesignSystemAntDConfigProvider, {
8410
- children: jsx(DatePicker.WeekPicker, {
8411
- css: styles,
8412
- ...props,
8492
+ getPopupContainer
8493
+ } = useDesignSystemContext();
8494
+ return jsx(DropdownMenu$1.Portal, {
8495
+ container: getPopupContainer && getPopupContainer(),
8496
+ children: jsx(DropdownMenu$1.SubContent, {
8413
8497
  ref: ref,
8414
- popupStyle: {
8415
- ...getDropdownStyles$1(theme),
8416
- ...(props.popupStyle || {})
8417
- }
8498
+ loop: true,
8499
+ css: [contentStyles$1, {
8500
+ minWidth
8501
+ }, process.env.NODE_ENV === "production" ? "" : ";label:SubContent;"],
8502
+ sideOffset: -2,
8503
+ alignOffset: -5,
8504
+ ...props,
8505
+ children: children
8418
8506
  })
8419
8507
  });
8420
8508
  });
8421
- const MonthPicker = /*#__PURE__*/forwardRef((props, ref) => {
8422
- const styles = useDatePickerStyles();
8423
- const {
8424
- theme
8425
- } = useDesignSystemTheme();
8509
+ const Trigger$3 = /*#__PURE__*/forwardRef(function Trigger(_ref3, ref) {
8510
+ let {
8511
+ children,
8512
+ ...props
8513
+ } = _ref3;
8514
+ return jsx(DropdownMenu$1.Trigger, {
8515
+ ref: ref,
8516
+ ...props,
8517
+ children: children
8518
+ });
8519
+ });
8520
+ const Item$1 = /*#__PURE__*/forwardRef(function Item(_ref4, ref) {
8521
+ let {
8522
+ children,
8523
+ disabledReason,
8524
+ danger,
8525
+ onClick,
8526
+ ...props
8527
+ } = _ref4;
8528
+ const itemRef = useRef(null);
8529
+ useImperativeHandle(ref, () => itemRef.current);
8530
+ return jsx(DropdownMenu$1.Item, {
8531
+ css: theme => [dropdownItemStyles, danger && dangerItemStyles(theme)],
8532
+ ref: itemRef,
8533
+ onClick: e => {
8534
+ if (props.disabled) {
8535
+ e.preventDefault();
8536
+ } else {
8537
+ onClick === null || onClick === void 0 || onClick(e);
8538
+ }
8539
+ },
8540
+ ...props,
8541
+ children: getNewChildren(children, props, disabledReason, itemRef)
8542
+ });
8543
+ });
8544
+ const Label$2 = /*#__PURE__*/forwardRef(function Label(_ref5, ref) {
8545
+ let {
8546
+ children,
8547
+ ...props
8548
+ } = _ref5;
8549
+ return jsx(DropdownMenu$1.Label, {
8550
+ ref: ref,
8551
+ css: [dropdownItemStyles, theme => ({
8552
+ color: theme.colors.textSecondary,
8553
+ '&:hover': {
8554
+ cursor: 'default'
8555
+ }
8556
+ }), process.env.NODE_ENV === "production" ? "" : ";label:Label;"],
8557
+ ...props,
8558
+ children: children
8559
+ });
8560
+ });
8561
+ const Separator$2 = /*#__PURE__*/forwardRef(function Separator(_ref6, ref) {
8562
+ let {
8563
+ children,
8564
+ ...props
8565
+ } = _ref6;
8566
+ return jsx(DropdownMenu$1.Separator, {
8567
+ ref: ref,
8568
+ css: dropdownSeparatorStyles,
8569
+ ...props,
8570
+ children: children
8571
+ });
8572
+ });
8573
+ const SubTrigger$1 = /*#__PURE__*/forwardRef(function TriggerItem(_ref7, ref) {
8574
+ let {
8575
+ children,
8576
+ disabledReason,
8577
+ ...props
8578
+ } = _ref7;
8579
+ const subTriggerRef = useRef(null);
8580
+ useImperativeHandle(ref, () => subTriggerRef.current);
8581
+ return jsxs(DropdownMenu$1.SubTrigger, {
8582
+ ref: subTriggerRef,
8583
+ css: [dropdownItemStyles, theme => ({
8584
+ '&[data-state="open"]': {
8585
+ backgroundColor: theme.colors.actionTertiaryBackgroundHover
8586
+ }
8587
+ }), process.env.NODE_ENV === "production" ? "" : ";label:SubTrigger;"],
8588
+ ...props,
8589
+ children: [getNewChildren(children, props, disabledReason, subTriggerRef), jsx(HintColumn, {
8590
+ css: theme => ({
8591
+ margin: CONSTANTS$1.subMenuIconMargin(theme),
8592
+ display: 'flex',
8593
+ alignSelf: 'stretch',
8594
+ alignItems: 'center'
8595
+ }),
8596
+ children: jsx(ChevronRightIcon, {
8597
+ css: theme => ({
8598
+ fontSize: CONSTANTS$1.subMenuIconSize(theme)
8599
+ })
8600
+ })
8601
+ })]
8602
+ });
8603
+ });
8604
+
8605
+ /**
8606
+ * Deprecated. Use `SubTrigger` instead.
8607
+ * @deprecated
8608
+ */
8609
+ const TriggerItem = SubTrigger$1;
8610
+ const CheckboxItem$1 = /*#__PURE__*/forwardRef(function CheckboxItem(_ref8, ref) {
8611
+ let {
8612
+ children,
8613
+ disabledReason,
8614
+ ...props
8615
+ } = _ref8;
8616
+ const checkboxItemRef = useRef(null);
8617
+ useImperativeHandle(ref, () => checkboxItemRef.current);
8618
+ return jsx(DropdownMenu$1.CheckboxItem, {
8619
+ ref: checkboxItemRef,
8620
+ css: theme => [dropdownItemStyles, checkboxItemStyles(theme)],
8621
+ ...props,
8622
+ children: getNewChildren(children, props, disabledReason, checkboxItemRef)
8623
+ });
8624
+ });
8625
+ const ItemIndicator$1 = /*#__PURE__*/forwardRef(function ItemIndicator(_ref9, ref) {
8626
+ let {
8627
+ children,
8628
+ ...props
8629
+ } = _ref9;
8630
+ return jsx(DropdownMenu$1.ItemIndicator, {
8631
+ ref: ref,
8632
+ css: theme => ({
8633
+ marginLeft: -(CONSTANTS$1.checkboxIconWidth(theme) + CONSTANTS$1.checkboxPaddingRight(theme)),
8634
+ position: 'absolute',
8635
+ fontSize: theme.general.iconFontSize
8636
+ }),
8637
+ ...props,
8638
+ children: children !== null && children !== void 0 ? children : jsx(CheckIcon, {
8639
+ css: theme => ({
8640
+ color: theme.colors.textSecondary
8641
+ })
8642
+ })
8643
+ });
8644
+ });
8645
+ const Arrow$2 = /*#__PURE__*/forwardRef(function Arrow(_ref10, ref) {
8646
+ let {
8647
+ children,
8648
+ ...props
8649
+ } = _ref10;
8650
+ const {
8651
+ theme
8652
+ } = useDesignSystemTheme();
8653
+ return jsx(DropdownMenu$1.Arrow, {
8654
+ css: /*#__PURE__*/css({
8655
+ fill: theme.colors.backgroundPrimary,
8656
+ stroke: theme.colors.borderDecorative,
8657
+ strokeDashoffset: -CONSTANTS$1.arrowBottomLength(),
8658
+ strokeDasharray: CONSTANTS$1.arrowBottomLength() + 2 * CONSTANTS$1.arrowSide(),
8659
+ strokeWidth: CONSTANTS$1.arrowStrokeWidth(),
8660
+ // TODO: This is a temporary fix for the alignment of the Arrow;
8661
+ // Radix has changed the implementation for v1.0.0 (uses floating-ui)
8662
+ // which has new behaviors for alignment that we don't want. Generally
8663
+ // we need to fix the arrow to always be aligned to the left of the menu (with
8664
+ // offset equal to border radius)
8665
+ position: 'relative',
8666
+ top: -1
8667
+ }, process.env.NODE_ENV === "production" ? "" : ";label:Arrow;"),
8668
+ ref: ref,
8669
+ width: 12,
8670
+ height: 6,
8671
+ ...props,
8672
+ children: children
8673
+ });
8674
+ });
8675
+ const RadioItem$1 = /*#__PURE__*/forwardRef(function RadioItem(_ref11, ref) {
8676
+ let {
8677
+ children,
8678
+ disabledReason,
8679
+ ...props
8680
+ } = _ref11;
8681
+ const radioItemRef = useRef(null);
8682
+ useImperativeHandle(ref, () => radioItemRef.current);
8683
+ return jsx(DropdownMenu$1.RadioItem, {
8684
+ ref: radioItemRef,
8685
+ css: theme => [dropdownItemStyles, checkboxItemStyles(theme)],
8686
+ ...props,
8687
+ children: getNewChildren(children, props, disabledReason, radioItemRef)
8688
+ });
8689
+ });
8690
+
8691
+ // UNWRAPPED RADIX-UI-COMPONENTS
8692
+ const Group$2 = DropdownMenu$1.Group;
8693
+ const RadioGroup$1 = DropdownMenu$1.RadioGroup;
8694
+ const Sub$1 = DropdownMenu$1.Sub;
8695
+
8696
+ // EXTRA COMPONENTS
8697
+ const HintColumn = /*#__PURE__*/forwardRef(function HintColumn(_ref12, ref) {
8698
+ let {
8699
+ children,
8700
+ ...props
8701
+ } = _ref12;
8702
+ return jsx("div", {
8703
+ ref: ref,
8704
+ css: [metaTextStyles, "margin-left:auto;" + (process.env.NODE_ENV === "production" ? "" : ";label:HintColumn;")],
8705
+ ...props,
8706
+ children: children
8707
+ });
8708
+ });
8709
+ const HintRow$1 = /*#__PURE__*/forwardRef(function HintRow(_ref13, ref) {
8710
+ let {
8711
+ children,
8712
+ ...props
8713
+ } = _ref13;
8714
+ return jsx("div", {
8715
+ ref: ref,
8716
+ css: [metaTextStyles, "min-width:100%;" + (process.env.NODE_ENV === "production" ? "" : ";label:HintRow;")],
8717
+ ...props,
8718
+ children: children
8719
+ });
8720
+ });
8721
+ const IconWrapper = /*#__PURE__*/forwardRef(function IconWrapper(_ref14, ref) {
8722
+ let {
8723
+ children,
8724
+ ...props
8725
+ } = _ref14;
8726
+ return jsx("div", {
8727
+ ref: ref,
8728
+ css: theme => ({
8729
+ fontSize: 16,
8730
+ color: theme.colors.textSecondary,
8731
+ paddingRight: theme.spacing.sm
8732
+ }),
8733
+ ...props,
8734
+ children: children
8735
+ });
8736
+ });
8737
+ const getNewChildren = (children, props, disabledReason, ref) => {
8738
+ const childCount = Children.count(children);
8739
+ const tooltip = jsx(Tooltip, {
8740
+ title: disabledReason,
8741
+ placement: "right",
8742
+ dangerouslySetAntdProps: {
8743
+ getPopupContainer: () => ref.current || document.body
8744
+ },
8745
+ children: jsx("span", {
8746
+ css: theme => infoIconStyles(theme),
8747
+ children: jsx(InfoIcon$1, {
8748
+ role: "presentation",
8749
+ alt: "Disabled state reason",
8750
+ "aria-hidden": "false"
8751
+ })
8752
+ })
8753
+ });
8754
+ if (childCount === 1) {
8755
+ return getChild(children, Boolean(props['disabled']), disabledReason, tooltip, 0, childCount);
8756
+ }
8757
+ return Children.map(children, (child, idx) => {
8758
+ return getChild(child, Boolean(props['disabled']), disabledReason, tooltip, idx, childCount);
8759
+ });
8760
+ };
8761
+ const getChild = (child, isDisabled, disabledReason, tooltip, index, siblingCount) => {
8762
+ const HintColumnType = jsx(HintColumn, {}).type;
8763
+ const isHintColumnType = Boolean(child && typeof child !== 'string' && typeof child !== 'number' && typeof child !== 'boolean' && 'type' in child && (child === null || child === void 0 ? void 0 : child.type) === HintColumnType);
8764
+ if (isDisabled && disabledReason && child && isHintColumnType) {
8765
+ return jsxs(Fragment, {
8766
+ children: [tooltip, child]
8767
+ });
8768
+ } else if (index === siblingCount - 1 && isDisabled && disabledReason) {
8769
+ return jsxs(Fragment, {
8770
+ children: [child, tooltip]
8771
+ });
8772
+ }
8773
+ return child;
8774
+ };
8775
+
8776
+ // CONSTANTS
8777
+ const CONSTANTS$1 = {
8778
+ itemPaddingVertical(theme) {
8779
+ // The number from the mocks is the midpoint between constants
8780
+ return 0.5 * theme.spacing.xs + 0.5 * theme.spacing.sm;
8781
+ },
8782
+ itemPaddingHorizontal(theme) {
8783
+ return theme.spacing.sm;
8784
+ },
8785
+ checkboxIconWidth(theme) {
8786
+ return theme.general.iconFontSize;
8787
+ },
8788
+ checkboxPaddingLeft(theme) {
8789
+ return theme.spacing.sm + theme.spacing.xs;
8790
+ },
8791
+ checkboxPaddingRight(theme) {
8792
+ return theme.spacing.sm;
8793
+ },
8794
+ subMenuIconMargin(theme) {
8795
+ // Negative margin so the icons can be larger without increasing the overall item height
8796
+ const iconMarginVertical = this.itemPaddingVertical(theme) / 2;
8797
+ const iconMarginRight = -this.itemPaddingVertical(theme) + theme.spacing.sm * 1.5;
8798
+ return `${-iconMarginVertical}px ${-iconMarginRight}px ${-iconMarginVertical}px auto`;
8799
+ },
8800
+ subMenuIconSize(theme) {
8801
+ return theme.spacing.lg;
8802
+ },
8803
+ arrowBottomLength() {
8804
+ // The built in arrow is a polygon: 0,0 30,0 15,10
8805
+ return 30;
8806
+ },
8807
+ arrowHeight() {
8808
+ return 10;
8809
+ },
8810
+ arrowSide() {
8811
+ return 2 * (this.arrowHeight() ** 2 * 2) ** 0.5;
8812
+ },
8813
+ arrowStrokeWidth() {
8814
+ // This is eyeballed b/c relative to the svg viewbox coordinate system
8815
+ return 2;
8816
+ }
8817
+ };
8818
+ const dropdownContentStyles = theme => ({
8819
+ backgroundColor: theme.colors.backgroundPrimary,
8820
+ color: theme.colors.textPrimary,
8821
+ lineHeight: theme.typography.lineHeightBase,
8822
+ border: `1px solid ${theme.colors.borderDecorative}`,
8823
+ borderRadius: theme.borders.borderRadiusMd,
8824
+ padding: `${theme.spacing.xs}px 0`,
8825
+ boxShadow: theme.general.shadowLow,
8826
+ userSelect: 'none',
8827
+ ...getDarkModePortalStyles(theme),
8828
+ // Ant Design uses 1000s for their zIndex space; this ensures Radix works with that, but
8829
+ // we'll likely need to be sure that all Radix components are using the same zIndex going forward.
8830
+ //
8831
+ // Additionally, there is an issue where macOS overlay scrollbars in Chrome and Safari (sometimes!)
8832
+ // overlap other elements with higher zIndex, because the scrollbars themselves have zIndex 9999,
8833
+ // so we have to use a higher value than that: https://github.com/databricks/universe/pull/232825
8834
+ zIndex: 10000,
8835
+ a: importantify({
8836
+ color: theme.colors.textPrimary,
8837
+ '&:hover, &:focus': {
8838
+ color: theme.colors.textPrimary,
8839
+ textDecoration: 'none'
8840
+ }
8841
+ })
8842
+ });
8843
+ const contentStyles$1 = theme => ({
8844
+ ...dropdownContentStyles(theme)
8845
+ });
8846
+ const dropdownItemStyles = theme => ({
8847
+ padding: `${CONSTANTS$1.itemPaddingVertical(theme)}px ${CONSTANTS$1.itemPaddingHorizontal(theme)}px`,
8848
+ display: 'flex',
8849
+ flexWrap: 'wrap',
8850
+ alignItems: 'center',
8851
+ outline: 'unset',
8852
+ '&:hover': {
8853
+ cursor: 'pointer'
8854
+ },
8855
+ '&:focus': {
8856
+ backgroundColor: theme.colors.actionTertiaryBackgroundHover
8857
+ },
8858
+ '&[data-disabled]': {
8859
+ pointerEvents: 'none',
8860
+ color: theme.colors.actionDisabledText
8861
+ }
8862
+ });
8863
+ const dangerItemStyles = theme => ({
8864
+ color: theme.colors.textValidationDanger,
8865
+ '&:hover, &:focus': {
8866
+ backgroundColor: theme.colors.actionDangerDefaultBackgroundHover
8867
+ }
8868
+ });
8869
+ const infoIconStyles = theme => ({
8870
+ display: 'inline-flex',
8871
+ paddingLeft: theme.spacing.xs,
8872
+ color: theme.colors.textSecondary,
8873
+ pointerEvents: 'all'
8874
+ });
8875
+ const checkboxItemStyles = theme => ({
8876
+ position: 'relative',
8877
+ paddingLeft: CONSTANTS$1.checkboxIconWidth(theme) + CONSTANTS$1.checkboxPaddingLeft(theme) + CONSTANTS$1.checkboxPaddingRight(theme)
8878
+ });
8879
+ const metaTextStyles = theme => ({
8880
+ color: theme.colors.textSecondary,
8881
+ fontSize: theme.typography.fontSizeSm,
8882
+ '[data-disabled] &': {
8883
+ color: theme.colors.actionDisabledText
8884
+ }
8885
+ });
8886
+ const dropdownSeparatorStyles = theme => ({
8887
+ height: 1,
8888
+ margin: `${theme.spacing.xs}px ${theme.spacing.sm}px`,
8889
+ backgroundColor: theme.colors.borderDecorative
8890
+ });
8891
+
8892
+ var DropdownMenu = /*#__PURE__*/Object.freeze({
8893
+ __proto__: null,
8894
+ Arrow: Arrow$2,
8895
+ CheckboxItem: CheckboxItem$1,
8896
+ Content: Content$5,
8897
+ Group: Group$2,
8898
+ HintColumn: HintColumn,
8899
+ HintRow: HintRow$1,
8900
+ IconWrapper: IconWrapper,
8901
+ Item: Item$1,
8902
+ ItemIndicator: ItemIndicator$1,
8903
+ Label: Label$2,
8904
+ RadioGroup: RadioGroup$1,
8905
+ RadioItem: RadioItem$1,
8906
+ Root: Root$5,
8907
+ Separator: Separator$2,
8908
+ Sub: Sub$1,
8909
+ SubContent: SubContent$1,
8910
+ SubTrigger: SubTrigger$1,
8911
+ Trigger: Trigger$3,
8912
+ TriggerItem: TriggerItem,
8913
+ dropdownContentStyles: dropdownContentStyles,
8914
+ dropdownItemStyles: dropdownItemStyles,
8915
+ dropdownSeparatorStyles: dropdownSeparatorStyles
8916
+ });
8917
+
8918
+ const Root$4 = ContextMenu$2;
8919
+ const Trigger$2 = ContextMenuTrigger;
8920
+ const ItemIndicator = ContextMenuItemIndicator;
8921
+ const Group$1 = ContextMenuGroup;
8922
+ const RadioGroup = ContextMenuRadioGroup;
8923
+ const Arrow$1 = ContextMenuArrow;
8924
+ const Sub = ContextMenuSub;
8925
+ const SubTrigger = _ref => {
8926
+ let {
8927
+ children,
8928
+ ...props
8929
+ } = _ref;
8930
+ const {
8931
+ theme
8932
+ } = useDesignSystemTheme();
8933
+ return jsx(ContextMenuSubTrigger, {
8934
+ ...props,
8935
+ css: dropdownItemStyles(theme),
8936
+ children: children
8937
+ });
8938
+ };
8939
+ const Content$4 = _ref2 => {
8940
+ let {
8941
+ children,
8942
+ minWidth,
8943
+ ...childrenProps
8944
+ } = _ref2;
8945
+ const {
8946
+ getPopupContainer
8947
+ } = useDesignSystemContext();
8948
+ const {
8949
+ theme
8950
+ } = useDesignSystemTheme();
8951
+ return jsx(ContextMenuPortal, {
8952
+ container: getPopupContainer && getPopupContainer(),
8953
+ children: jsx(ContextMenuContent, {
8954
+ ...childrenProps,
8955
+ css: [dropdownContentStyles(theme), {
8956
+ minWidth
8957
+ }, process.env.NODE_ENV === "production" ? "" : ";label:Content;"],
8958
+ children: children
8959
+ })
8960
+ });
8961
+ };
8962
+ const SubContent = _ref3 => {
8963
+ let {
8964
+ children,
8965
+ minWidth,
8966
+ ...childrenProps
8967
+ } = _ref3;
8968
+ const {
8969
+ getPopupContainer
8970
+ } = useDesignSystemContext();
8971
+ const {
8972
+ theme
8973
+ } = useDesignSystemTheme();
8974
+ return jsx(ContextMenuPortal, {
8975
+ container: getPopupContainer && getPopupContainer(),
8976
+ children: jsx(ContextMenuSubContent, {
8977
+ ...childrenProps,
8978
+ css: [dropdownContentStyles(theme), {
8979
+ minWidth
8980
+ }, process.env.NODE_ENV === "production" ? "" : ";label:SubContent;"],
8981
+ children: children
8982
+ })
8983
+ });
8984
+ };
8985
+ const Item = _ref4 => {
8986
+ let {
8987
+ children,
8988
+ ...props
8989
+ } = _ref4;
8990
+ const {
8991
+ theme
8992
+ } = useDesignSystemTheme();
8993
+ return jsx(ContextMenuItem, {
8994
+ ...props,
8995
+ css: dropdownItemStyles(theme),
8996
+ children: children
8997
+ });
8998
+ };
8999
+ const CheckboxItem = _ref5 => {
9000
+ let {
9001
+ children,
9002
+ ...props
9003
+ } = _ref5;
9004
+ const {
9005
+ theme
9006
+ } = useDesignSystemTheme();
9007
+ return jsxs(ContextMenuCheckboxItem, {
9008
+ ...props,
9009
+ css: dropdownItemStyles(theme),
9010
+ children: [jsx(ContextMenuItemIndicator, {
9011
+ css: itemIndicatorStyles(theme),
9012
+ children: jsx(CheckIcon, {})
9013
+ }), !props.checked && jsx("div", {
9014
+ style: {
9015
+ width: theme.general.iconFontSize + theme.spacing.xs
9016
+ }
9017
+ }), children]
9018
+ });
9019
+ };
9020
+ const RadioItem = _ref6 => {
9021
+ let {
9022
+ children,
9023
+ ...props
9024
+ } = _ref6;
9025
+ const {
9026
+ theme
9027
+ } = useDesignSystemTheme();
9028
+ return jsxs(ContextMenuRadioItem, {
9029
+ ...props,
9030
+ css: [dropdownItemStyles(theme), {
9031
+ '&[data-state="unchecked"]': {
9032
+ paddingLeft: theme.general.iconFontSize + theme.spacing.xs + theme.spacing.sm
9033
+ }
9034
+ }, process.env.NODE_ENV === "production" ? "" : ";label:RadioItem;"],
9035
+ children: [jsx(ContextMenuItemIndicator, {
9036
+ css: itemIndicatorStyles(theme),
9037
+ children: jsx(CheckIcon, {})
9038
+ }), children]
9039
+ });
9040
+ };
9041
+ const Label$1 = _ref7 => {
9042
+ let {
9043
+ children,
9044
+ ...props
9045
+ } = _ref7;
9046
+ const {
9047
+ theme
9048
+ } = useDesignSystemTheme();
9049
+ return jsx(ContextMenuLabel, {
9050
+ ...props,
9051
+ css: /*#__PURE__*/css({
9052
+ color: theme.colors.textSecondary,
9053
+ padding: `${theme.spacing.sm - 2}px ${theme.spacing.sm}px`
9054
+ }, process.env.NODE_ENV === "production" ? "" : ";label:Label;"),
9055
+ children: children
9056
+ });
9057
+ };
9058
+ const Hint$1 = _ref8 => {
9059
+ let {
9060
+ children
9061
+ } = _ref8;
9062
+ const {
9063
+ theme
9064
+ } = useDesignSystemTheme();
9065
+ return jsx("span", {
9066
+ css: /*#__PURE__*/css({
9067
+ display: 'inline-flex',
9068
+ marginLeft: 'auto',
9069
+ paddingLeft: theme.spacing.sm
9070
+ }, process.env.NODE_ENV === "production" ? "" : ";label:Hint;"),
9071
+ children: children
9072
+ });
9073
+ };
9074
+ const Separator$1 = () => {
9075
+ const {
9076
+ theme
9077
+ } = useDesignSystemTheme();
9078
+ return jsx(ContextMenuSeparator, {
9079
+ css: dropdownSeparatorStyles(theme)
9080
+ });
9081
+ };
9082
+ const itemIndicatorStyles = theme => /*#__PURE__*/css({
9083
+ display: 'inline-flex',
9084
+ paddingRight: theme.spacing.xs
9085
+ }, process.env.NODE_ENV === "production" ? "" : ";label:itemIndicatorStyles;");
9086
+ const ContextMenu = {
9087
+ Root: Root$4,
9088
+ Trigger: Trigger$2,
9089
+ Label: Label$1,
9090
+ Item,
9091
+ Group: Group$1,
9092
+ RadioGroup,
9093
+ CheckboxItem,
9094
+ RadioItem,
9095
+ Arrow: Arrow$1,
9096
+ Separator: Separator$1,
9097
+ Sub,
9098
+ SubTrigger,
9099
+ SubContent,
9100
+ Content: Content$4,
9101
+ Hint: Hint$1
9102
+ };
9103
+
9104
+ var ContextMenu$1 = /*#__PURE__*/Object.freeze({
9105
+ __proto__: null,
9106
+ Arrow: Arrow$1,
9107
+ CheckboxItem: CheckboxItem,
9108
+ Content: Content$4,
9109
+ ContextMenu: ContextMenu,
9110
+ Group: Group$1,
9111
+ Hint: Hint$1,
9112
+ Item: Item,
9113
+ ItemIndicator: ItemIndicator,
9114
+ Label: Label$1,
9115
+ RadioGroup: RadioGroup,
9116
+ RadioItem: RadioItem,
9117
+ Root: Root$4,
9118
+ Separator: Separator$1,
9119
+ Sub: Sub,
9120
+ SubContent: SubContent,
9121
+ SubTrigger: SubTrigger,
9122
+ Trigger: Trigger$2,
9123
+ itemIndicatorStyles: itemIndicatorStyles
9124
+ });
9125
+
9126
+ function getEmotionStyles(clsPrefix, theme) {
9127
+ const classFocused = `.${clsPrefix}-focused`;
9128
+ const classActiveBar = `.${clsPrefix}-active-bar`;
9129
+ const classSeparator = `.${clsPrefix}-separator`;
9130
+ const classSuffix = `.${clsPrefix}-suffix`;
9131
+ const styles = {
9132
+ height: 32,
9133
+ borderRadius: theme.borders.borderRadiusMd,
9134
+ borderColor: theme.colors.border,
9135
+ color: theme.colors.textPrimary,
9136
+ transition: 'border 0s, box-shadow 0s',
9137
+ [`&${classFocused},:hover`]: {
9138
+ borderColor: theme.colors.actionDefaultBorderHover
9139
+ },
9140
+ '&:active': {
9141
+ borderColor: theme.colors.actionDefaultBorderPress
9142
+ },
9143
+ [`&${classFocused}`]: {
9144
+ boxShadow: `none !important`,
9145
+ outline: `${theme.colors.actionDefaultBorderFocus} solid 2px !important`,
9146
+ outlineOffset: '-2px !important',
9147
+ borderColor: 'transparent !important'
9148
+ },
9149
+ [`& ${classActiveBar}`]: {
9150
+ background: `${theme.colors.actionDefaultBorderPress} !important`
9151
+ },
9152
+ [`& input::placeholder, & ${classSeparator}, & ${classSuffix}`]: {
9153
+ color: theme.colors.textPrimary
9154
+ }
9155
+ };
9156
+ return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getEmotionStyles;");
9157
+ }
9158
+ const getDropdownStyles$1 = theme => {
9159
+ return {
9160
+ zIndex: theme.options.zIndexBase + 50
9161
+ };
9162
+ };
9163
+ function useDatePickerStyles() {
9164
+ const {
9165
+ theme,
9166
+ getPrefixedClassName
9167
+ } = useDesignSystemTheme();
9168
+ const clsPrefix = getPrefixedClassName('picker');
9169
+ return getEmotionStyles(clsPrefix, theme);
9170
+ }
9171
+ const DuboisDatePicker = /*#__PURE__*/forwardRef((props, ref) => {
9172
+ const styles = useDatePickerStyles();
9173
+ const {
9174
+ theme
9175
+ } = useDesignSystemTheme();
9176
+ return jsx(DesignSystemAntDConfigProvider, {
9177
+ children: jsx(DatePicker, {
9178
+ css: styles,
9179
+ ref: ref,
9180
+ ...props,
9181
+ popupStyle: {
9182
+ ...getDropdownStyles$1(theme),
9183
+ ...(props.popupStyle || {})
9184
+ }
9185
+ })
9186
+ });
9187
+ });
9188
+ const RangePicker = /*#__PURE__*/forwardRef((props, ref) => {
9189
+ const styles = useDatePickerStyles();
9190
+ const {
9191
+ theme
9192
+ } = useDesignSystemTheme();
9193
+ return jsx(DesignSystemAntDConfigProvider, {
9194
+ children: jsx(DatePicker.RangePicker, {
9195
+ css: styles,
9196
+ ...props,
9197
+ ref: ref,
9198
+ popupStyle: {
9199
+ ...getDropdownStyles$1(theme),
9200
+ ...(props.popupStyle || {})
9201
+ }
9202
+ })
9203
+ });
9204
+ });
9205
+ const TimePicker = /*#__PURE__*/forwardRef((props, ref) => {
9206
+ const styles = useDatePickerStyles();
9207
+ const {
9208
+ theme
9209
+ } = useDesignSystemTheme();
9210
+ return jsx(DesignSystemAntDConfigProvider, {
9211
+ children: jsx(DatePicker.TimePicker, {
9212
+ css: styles,
9213
+ ...props,
9214
+ ref: ref,
9215
+ popupStyle: {
9216
+ ...getDropdownStyles$1(theme),
9217
+ ...(props.popupStyle || {})
9218
+ }
9219
+ })
9220
+ });
9221
+ });
9222
+ const QuarterPicker = /*#__PURE__*/forwardRef((props, ref) => {
9223
+ const styles = useDatePickerStyles();
9224
+ const {
9225
+ theme
9226
+ } = useDesignSystemTheme();
9227
+ return jsx(DesignSystemAntDConfigProvider, {
9228
+ children: jsx(DatePicker.QuarterPicker, {
9229
+ css: styles,
9230
+ ...props,
9231
+ ref: ref,
9232
+ popupStyle: {
9233
+ ...getDropdownStyles$1(theme),
9234
+ ...(props.popupStyle || {})
9235
+ }
9236
+ })
9237
+ });
9238
+ });
9239
+ const WeekPicker = /*#__PURE__*/forwardRef((props, ref) => {
9240
+ const styles = useDatePickerStyles();
9241
+ const {
9242
+ theme
9243
+ } = useDesignSystemTheme();
9244
+ return jsx(DesignSystemAntDConfigProvider, {
9245
+ children: jsx(DatePicker.WeekPicker, {
9246
+ css: styles,
9247
+ ...props,
9248
+ ref: ref,
9249
+ popupStyle: {
9250
+ ...getDropdownStyles$1(theme),
9251
+ ...(props.popupStyle || {})
9252
+ }
9253
+ })
9254
+ });
9255
+ });
9256
+ const MonthPicker = /*#__PURE__*/forwardRef((props, ref) => {
9257
+ const styles = useDatePickerStyles();
9258
+ const {
9259
+ theme
9260
+ } = useDesignSystemTheme();
8426
9261
  return jsx(DesignSystemAntDConfigProvider, {
8427
9262
  children: jsx(DatePicker.MonthPicker, {
8428
9263
  css: styles,
@@ -8733,6 +9568,153 @@ const Separator = props => {
8733
9568
  });
8734
9569
  };
8735
9570
 
9571
+ const getDialogComboboxOptionLabelWidth = (theme, width) => {
9572
+ const paddingLeft = theme.spacing.xs + theme.spacing.sm;
9573
+ const iconWidth = theme.spacing.md;
9574
+ const labelMarginLeft = theme.spacing.sm;
9575
+ if (typeof width === 'string') {
9576
+ return `calc(${width} - ${paddingLeft + iconWidth + labelMarginLeft}px)`;
9577
+ }
9578
+ return width - paddingLeft + iconWidth + labelMarginLeft;
9579
+ };
9580
+ function isOptionDisabled(option) {
9581
+ return option.hasAttribute('disabled') && option.getAttribute('disabled') !== 'false';
9582
+ }
9583
+ function highlightFirstNonDisabledOption(firstOptionItem) {
9584
+ let startAt = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'start';
9585
+ let previousSelection = arguments.length > 2 ? arguments[2] : undefined;
9586
+ if (isOptionDisabled(firstOptionItem)) {
9587
+ const firstHighlightableOption = findClosestOptionSibling(firstOptionItem, startAt === 'end' ? 'previous' : 'next');
9588
+ if (firstHighlightableOption) {
9589
+ highlightOption(firstHighlightableOption, previousSelection);
9590
+ }
9591
+ } else {
9592
+ highlightOption(firstOptionItem, previousSelection);
9593
+ }
9594
+ }
9595
+ function findClosestOptionSibling(element, direction) {
9596
+ const nextSibling = direction === 'previous' ? element.previousElementSibling : element.nextElementSibling;
9597
+ if ((nextSibling === null || nextSibling === void 0 ? void 0 : nextSibling.getAttribute('role')) === 'option') {
9598
+ if (isOptionDisabled(nextSibling)) {
9599
+ return findClosestOptionSibling(nextSibling, direction);
9600
+ }
9601
+ return nextSibling;
9602
+ } else if (nextSibling) {
9603
+ let nextOptionSibling = nextSibling;
9604
+ while (nextOptionSibling && (nextOptionSibling.getAttribute('role') !== 'option' || isOptionDisabled(nextOptionSibling))) {
9605
+ nextOptionSibling = direction === 'previous' ? nextOptionSibling.previousElementSibling : nextOptionSibling.nextElementSibling;
9606
+ }
9607
+ return nextOptionSibling;
9608
+ }
9609
+ return null;
9610
+ }
9611
+ const highlightOption = function (currentSelection, prevSelection) {
9612
+ var _currentSelection$scr;
9613
+ let focus = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
9614
+ if (prevSelection) {
9615
+ prevSelection.setAttribute('tabIndex', '-1');
9616
+ prevSelection.setAttribute('data-highlighted', 'false');
9617
+ }
9618
+ if (focus) {
9619
+ currentSelection.focus();
9620
+ }
9621
+ currentSelection.setAttribute('tabIndex', '0');
9622
+ currentSelection.setAttribute('data-highlighted', 'true');
9623
+ (_currentSelection$scr = currentSelection.scrollIntoView) === null || _currentSelection$scr === void 0 || _currentSelection$scr.call(currentSelection, {
9624
+ block: 'center'
9625
+ });
9626
+ };
9627
+ const findHighlightedOption = options => {
9628
+ var _options$find;
9629
+ return (_options$find = options.find(option => option.getAttribute('data-highlighted') === 'true')) !== null && _options$find !== void 0 ? _options$find : undefined;
9630
+ };
9631
+ const getContentOptions = element => {
9632
+ var _element$closest;
9633
+ const options = (_element$closest = element.closest('[data-combobox-option-list="true"]')) === null || _element$closest === void 0 ? void 0 : _element$closest.querySelectorAll('[role="option"]');
9634
+ return options ? Array.from(options) : undefined;
9635
+ };
9636
+ const getKeyboardNavigationFunctions = (handleSelect, _ref) => {
9637
+ let {
9638
+ onKeyDown,
9639
+ onMouseEnter,
9640
+ onDefaultKeyDown
9641
+ } = _ref;
9642
+ return {
9643
+ onKeyDown: e => {
9644
+ onKeyDown === null || onKeyDown === void 0 || onKeyDown(e);
9645
+ switch (e.key) {
9646
+ case 'ArrowDown':
9647
+ e.preventDefault();
9648
+ const nextSibling = findClosestOptionSibling(e.currentTarget, 'next');
9649
+ if (nextSibling) {
9650
+ highlightOption(nextSibling, e.currentTarget);
9651
+ } else {
9652
+ var _getContentOptions;
9653
+ const firstOption = (_getContentOptions = getContentOptions(e.currentTarget)) === null || _getContentOptions === void 0 ? void 0 : _getContentOptions[0];
9654
+ if (firstOption) {
9655
+ highlightFirstNonDisabledOption(firstOption, 'start', e.currentTarget);
9656
+ }
9657
+ }
9658
+ break;
9659
+ case 'ArrowUp':
9660
+ e.preventDefault();
9661
+ const previousSibling = findClosestOptionSibling(e.currentTarget, 'previous');
9662
+ if (previousSibling) {
9663
+ highlightOption(previousSibling, e.currentTarget);
9664
+ } else {
9665
+ var _getContentOptions2;
9666
+ const lastOption = (_getContentOptions2 = getContentOptions(e.currentTarget)) === null || _getContentOptions2 === void 0 ? void 0 : _getContentOptions2.slice(-1)[0];
9667
+ if (lastOption) {
9668
+ highlightFirstNonDisabledOption(lastOption, 'end', e.currentTarget);
9669
+ }
9670
+ }
9671
+ break;
9672
+ case 'Enter':
9673
+ e.preventDefault();
9674
+ handleSelect(e);
9675
+ break;
9676
+ default:
9677
+ onDefaultKeyDown === null || onDefaultKeyDown === void 0 || onDefaultKeyDown(e);
9678
+ break;
9679
+ }
9680
+ },
9681
+ onMouseEnter: e => {
9682
+ onMouseEnter === null || onMouseEnter === void 0 || onMouseEnter(e);
9683
+ resetTabIndexToFocusedElement(e.currentTarget);
9684
+ }
9685
+ };
9686
+ };
9687
+ const resetTabIndexToFocusedElement = elem => {
9688
+ var _elem$closest;
9689
+ (_elem$closest = elem.closest('[role="list"]')) === null || _elem$closest === void 0 || _elem$closest.querySelectorAll('[role="option"]').forEach(el => {
9690
+ el.setAttribute('tabIndex', '-1');
9691
+ });
9692
+ elem.setAttribute('tabIndex', '0');
9693
+ elem.focus();
9694
+ };
9695
+ const dialogComboboxLookAheadKeyDown = (e, setLookAhead, lookAhead) => {
9696
+ var _e$currentTarget$pare, _e$currentTarget$pare2;
9697
+ if (e.key === 'Escape' || e.key === 'Tab' || e.key === 'Enter') {
9698
+ return;
9699
+ }
9700
+ e.preventDefault();
9701
+ const siblings = Array.from((_e$currentTarget$pare = (_e$currentTarget$pare2 = e.currentTarget.parentElement) === null || _e$currentTarget$pare2 === void 0 ? void 0 : _e$currentTarget$pare2.children) !== null && _e$currentTarget$pare !== void 0 ? _e$currentTarget$pare : []);
9702
+ // Look for the first sibling that starts with the pressed key + recently pressed keys (lookAhead, cleared after 1.5 seconds of inactivity)
9703
+ const nextSiblingIndex = siblings.findIndex(sibling => {
9704
+ var _sibling$textContent$, _sibling$textContent;
9705
+ const siblingLabel = (_sibling$textContent$ = (_sibling$textContent = sibling.textContent) === null || _sibling$textContent === void 0 ? void 0 : _sibling$textContent.toLowerCase()) !== null && _sibling$textContent$ !== void 0 ? _sibling$textContent$ : '';
9706
+ return siblingLabel.startsWith(lookAhead + e.key);
9707
+ });
9708
+ if (nextSiblingIndex !== -1) {
9709
+ const nextSibling = siblings[nextSiblingIndex];
9710
+ nextSibling.focus();
9711
+ if (setLookAhead) {
9712
+ setLookAhead(lookAhead + e.key);
9713
+ }
9714
+ resetTabIndexToFocusedElement(nextSibling);
9715
+ }
9716
+ };
9717
+
8736
9718
  const getComboboxContentWrapperStyles = (theme, _ref) => {
8737
9719
  let {
8738
9720
  maxHeight = '100vh',
@@ -8788,6 +9770,34 @@ const getComboboxOptionItemWrapperStyles = theme => {
8788
9770
  }
8789
9771
  }), process.env.NODE_ENV === "production" ? "" : ";label:getComboboxOptionItemWrapperStyles;");
8790
9772
  };
9773
+ const getComboboxOptionLabelStyles = _ref2 => {
9774
+ let {
9775
+ theme,
9776
+ dangerouslyHideCheck,
9777
+ textOverflowMode,
9778
+ contentWidth,
9779
+ hasHintColumn
9780
+ } = _ref2;
9781
+ return /*#__PURE__*/css({
9782
+ marginLeft: !dangerouslyHideCheck ? theme.spacing.sm : 0,
9783
+ fontSize: theme.typography.fontSizeBase,
9784
+ fontStyle: 'normal',
9785
+ fontWeight: 400,
9786
+ cursor: 'pointer',
9787
+ overflow: 'hidden',
9788
+ wordBreak: 'break-word',
9789
+ ...(textOverflowMode === 'ellipsis' && {
9790
+ textOverflow: 'ellipsis',
9791
+ whiteSpace: 'nowrap'
9792
+ }),
9793
+ ...(contentWidth ? {
9794
+ width: getDialogComboboxOptionLabelWidth(theme, contentWidth)
9795
+ } : {}),
9796
+ ...(hasHintColumn && {
9797
+ display: 'flex'
9798
+ })
9799
+ }, process.env.NODE_ENV === "production" ? "" : ";label:getComboboxOptionLabelStyles;");
9800
+ };
8791
9801
  const getInfoIconStyles = theme => {
8792
9802
  return /*#__PURE__*/css({
8793
9803
  paddingLeft: theme.spacing.xs,
@@ -8814,9 +9824,9 @@ const getCheckboxStyles = (theme, textOverflowMode) => {
8814
9824
  alignSelf: 'flex-start',
8815
9825
  display: 'inline-flex',
8816
9826
  alignItems: 'center',
8817
- ...(useNewCheckboxStyles && {
9827
+ ...(useNewCheckboxStyles ? {
8818
9828
  paddingTop: theme.spacing.xs / 2
8819
- })
9829
+ } : {})
8820
9830
  },
8821
9831
  '& > span:last-of-type': {
8822
9832
  paddingRight: 0,
@@ -8838,7 +9848,17 @@ const getFooterStyles = theme => {
8838
9848
  padding: `${theme.spacing.sm}px ${theme.spacing.lg / 2}px ${theme.spacing.sm}px ${theme.spacing.lg / 2}px`,
8839
9849
  position: 'sticky',
8840
9850
  bottom: 0,
8841
- boxSizing: 'border-box'
9851
+ boxSizing: 'border-box',
9852
+ '&:has(> .combobox-footer-add-button)': {
9853
+ padding: `${theme.spacing.sm}px 0 ${theme.spacing.sm}px 0`,
9854
+ '& > :not(.combobox-footer-add-button)': {
9855
+ marginLeft: `${theme.spacing.lg / 2}px`,
9856
+ marginRight: `${theme.spacing.lg / 2}px`
9857
+ },
9858
+ '& > .combobox-footer-add-button': {
9859
+ justifyContent: 'flex-start !important'
9860
+ }
9861
+ }
8842
9862
  }, process.env.NODE_ENV === "production" ? "" : ";label:getFooterStyles;");
8843
9863
  };
8844
9864
  const getSelectItemWithHintColumnStyles = function () {
@@ -8865,14 +9885,14 @@ const getHintColumnStyles = (theme, disabled, textOverflowMode) => {
8865
9885
  }, process.env.NODE_ENV === "production" ? "" : ";label:getHintColumnStyles;");
8866
9886
  };
8867
9887
 
8868
- function _EMOTION_STRINGIFIED_CSS_ERROR__$o() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
9888
+ function _EMOTION_STRINGIFIED_CSS_ERROR__$n() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
8869
9889
  var _ref2$g = process.env.NODE_ENV === "production" ? {
8870
9890
  name: "1ij1o5n",
8871
9891
  styles: "display:flex;flex-direction:column;align-items:flex-start;justify-content:center"
8872
9892
  } : {
8873
9893
  name: "189loa6-DialogComboboxContent",
8874
9894
  styles: "display:flex;flex-direction:column;align-items:flex-start;justify-content:center;label:DialogComboboxContent;",
8875
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$o
9895
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$n
8876
9896
  };
8877
9897
  const DialogComboboxContent = /*#__PURE__*/forwardRef((_ref, forwardedRef) => {
8878
9898
  let {
@@ -9065,161 +10085,14 @@ const DialogComboboxOptionListContextProvider = _ref => {
9065
10085
  });
9066
10086
  };
9067
10087
 
9068
- const getDialogComboboxOptionLabelWidth = (theme, width) => {
9069
- const paddingLeft = theme.spacing.xs + theme.spacing.sm;
9070
- const iconWidth = theme.spacing.md;
9071
- const labelMarginLeft = theme.spacing.sm;
9072
- if (typeof width === 'string') {
9073
- return `calc(${width} - ${paddingLeft + iconWidth + labelMarginLeft}px)`;
9074
- }
9075
- return width - paddingLeft + iconWidth + labelMarginLeft;
9076
- };
9077
- function isOptionDisabled(option) {
9078
- return option.hasAttribute('disabled') && option.getAttribute('disabled') !== 'false';
9079
- }
9080
- function highlightFirstNonDisabledOption(firstOptionItem) {
9081
- let startAt = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'start';
9082
- let previousSelection = arguments.length > 2 ? arguments[2] : undefined;
9083
- if (isOptionDisabled(firstOptionItem)) {
9084
- const firstHighlightableOption = findClosestOptionSibling(firstOptionItem, startAt === 'end' ? 'previous' : 'next');
9085
- if (firstHighlightableOption) {
9086
- highlightOption(firstHighlightableOption, previousSelection);
9087
- }
9088
- } else {
9089
- highlightOption(firstOptionItem, previousSelection);
9090
- }
9091
- }
9092
- function findClosestOptionSibling(element, direction) {
9093
- const nextSibling = direction === 'previous' ? element.previousElementSibling : element.nextElementSibling;
9094
- if ((nextSibling === null || nextSibling === void 0 ? void 0 : nextSibling.getAttribute('role')) === 'option') {
9095
- if (isOptionDisabled(nextSibling)) {
9096
- return findClosestOptionSibling(nextSibling, direction);
9097
- }
9098
- return nextSibling;
9099
- } else if (nextSibling) {
9100
- let nextOptionSibling = nextSibling;
9101
- while (nextOptionSibling && nextOptionSibling.getAttribute('role') !== 'option' || isOptionDisabled(nextOptionSibling)) {
9102
- nextOptionSibling = direction === 'previous' ? nextOptionSibling.previousElementSibling : nextOptionSibling.nextElementSibling;
9103
- }
9104
- return nextOptionSibling;
9105
- }
9106
- return null;
9107
- }
9108
- const highlightOption = function (currentSelection, prevSelection) {
9109
- var _currentSelection$scr;
9110
- let focus = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
9111
- if (prevSelection) {
9112
- prevSelection.setAttribute('tabIndex', '-1');
9113
- prevSelection.setAttribute('data-highlighted', 'false');
9114
- }
9115
- if (focus) {
9116
- currentSelection.focus();
9117
- }
9118
- currentSelection.setAttribute('tabIndex', '0');
9119
- currentSelection.setAttribute('data-highlighted', 'true');
9120
- (_currentSelection$scr = currentSelection.scrollIntoView) === null || _currentSelection$scr === void 0 || _currentSelection$scr.call(currentSelection, {
9121
- block: 'center'
9122
- });
9123
- };
9124
- const findHighlightedOption = options => {
9125
- var _options$find;
9126
- return (_options$find = options.find(option => option.getAttribute('data-highlighted') === 'true')) !== null && _options$find !== void 0 ? _options$find : undefined;
9127
- };
9128
- const getContentOptions = element => {
9129
- var _element$closest;
9130
- const options = (_element$closest = element.closest('[data-combobox-option-list="true"]')) === null || _element$closest === void 0 ? void 0 : _element$closest.querySelectorAll('[role="option"]');
9131
- return options ? Array.from(options) : undefined;
9132
- };
9133
- const getKeyboardNavigationFunctions = (handleSelect, _ref) => {
9134
- let {
9135
- onKeyDown,
9136
- onMouseEnter,
9137
- onDefaultKeyDown
9138
- } = _ref;
9139
- return {
9140
- onKeyDown: e => {
9141
- onKeyDown === null || onKeyDown === void 0 || onKeyDown(e);
9142
- switch (e.key) {
9143
- case 'ArrowDown':
9144
- e.preventDefault();
9145
- const nextSibling = findClosestOptionSibling(e.currentTarget, 'next');
9146
- if (nextSibling) {
9147
- highlightOption(nextSibling, e.currentTarget);
9148
- } else {
9149
- var _getContentOptions;
9150
- const firstOption = (_getContentOptions = getContentOptions(e.currentTarget)) === null || _getContentOptions === void 0 ? void 0 : _getContentOptions[0];
9151
- if (firstOption) {
9152
- highlightFirstNonDisabledOption(firstOption, 'start', e.currentTarget);
9153
- }
9154
- }
9155
- break;
9156
- case 'ArrowUp':
9157
- e.preventDefault();
9158
- const previousSibling = findClosestOptionSibling(e.currentTarget, 'previous');
9159
- if (previousSibling) {
9160
- highlightOption(previousSibling, e.currentTarget);
9161
- } else {
9162
- var _getContentOptions2;
9163
- const lastOption = (_getContentOptions2 = getContentOptions(e.currentTarget)) === null || _getContentOptions2 === void 0 ? void 0 : _getContentOptions2.slice(-1)[0];
9164
- if (lastOption) {
9165
- highlightFirstNonDisabledOption(lastOption, 'end', e.currentTarget);
9166
- }
9167
- }
9168
- break;
9169
- case 'Enter':
9170
- e.preventDefault();
9171
- handleSelect(e);
9172
- break;
9173
- default:
9174
- onDefaultKeyDown === null || onDefaultKeyDown === void 0 || onDefaultKeyDown(e);
9175
- break;
9176
- }
9177
- },
9178
- onMouseEnter: e => {
9179
- onMouseEnter === null || onMouseEnter === void 0 || onMouseEnter(e);
9180
- resetTabIndexToFocusedElement(e.currentTarget);
9181
- }
9182
- };
9183
- };
9184
- const resetTabIndexToFocusedElement = elem => {
9185
- var _elem$closest;
9186
- (_elem$closest = elem.closest('[role="list"]')) === null || _elem$closest === void 0 || _elem$closest.querySelectorAll('[role="option"]').forEach(el => {
9187
- el.setAttribute('tabIndex', '-1');
9188
- });
9189
- elem.setAttribute('tabIndex', '0');
9190
- elem.focus();
9191
- };
9192
- const dialogComboboxLookAheadKeyDown = (e, setLookAhead, lookAhead) => {
9193
- var _e$currentTarget$pare, _e$currentTarget$pare2;
9194
- if (e.key === 'Escape' || e.key === 'Tab' || e.key === 'Enter') {
9195
- return;
9196
- }
9197
- e.preventDefault();
9198
- const siblings = Array.from((_e$currentTarget$pare = (_e$currentTarget$pare2 = e.currentTarget.parentElement) === null || _e$currentTarget$pare2 === void 0 ? void 0 : _e$currentTarget$pare2.children) !== null && _e$currentTarget$pare !== void 0 ? _e$currentTarget$pare : []);
9199
- // Look for the first sibling that starts with the pressed key + recently pressed keys (lookAhead, cleared after 1.5 seconds of inactivity)
9200
- const nextSiblingIndex = siblings.findIndex(sibling => {
9201
- var _sibling$textContent$, _sibling$textContent;
9202
- const siblingLabel = (_sibling$textContent$ = (_sibling$textContent = sibling.textContent) === null || _sibling$textContent === void 0 ? void 0 : _sibling$textContent.toLowerCase()) !== null && _sibling$textContent$ !== void 0 ? _sibling$textContent$ : '';
9203
- return siblingLabel.startsWith(lookAhead + e.key);
9204
- });
9205
- if (nextSiblingIndex !== -1) {
9206
- const nextSibling = siblings[nextSiblingIndex];
9207
- nextSibling.focus();
9208
- if (setLookAhead) {
9209
- setLookAhead(lookAhead + e.key);
9210
- }
9211
- resetTabIndexToFocusedElement(nextSibling);
9212
- }
9213
- };
9214
-
9215
- function _EMOTION_STRINGIFIED_CSS_ERROR__$n() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
10088
+ function _EMOTION_STRINGIFIED_CSS_ERROR__$m() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
9216
10089
  var _ref2$f = process.env.NODE_ENV === "production" ? {
9217
10090
  name: "1pgv7dg",
9218
10091
  styles: "display:flex;flex-direction:column;align-items:flex-start;width:100%"
9219
10092
  } : {
9220
10093
  name: "1dtf9pj-DialogComboboxOptionList",
9221
10094
  styles: "display:flex;flex-direction:column;align-items:flex-start;width:100%;label:DialogComboboxOptionList;",
9222
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$n
10095
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$m
9223
10096
  };
9224
10097
  const DialogComboboxOptionList = /*#__PURE__*/forwardRef((_ref, forwardedRef) => {
9225
10098
  let {
@@ -9310,47 +10183,14 @@ const useDialogComboboxOptionListContext = () => {
9310
10183
  return useContext(DialogComboboxOptionListContext);
9311
10184
  };
9312
10185
 
9313
- const InfoTooltip = _ref => {
9314
- let {
9315
- title,
9316
- tooltipProps,
9317
- iconTitle,
9318
- isKeyboardFocusable = true,
9319
- ...iconProps
9320
- } = _ref;
9321
- const {
9322
- theme
9323
- } = useDesignSystemTheme();
9324
- return jsx(Tooltip, {
9325
- title: title,
9326
- ...tooltipProps,
9327
- children: jsx("span", {
9328
- style: {
9329
- display: 'inline-flex'
9330
- },
9331
- tabIndex: isKeyboardFocusable ? 0 : -1,
9332
- children: jsx(InfoCircleOutlined, {
9333
- "aria-hidden": "false",
9334
- title: iconTitle,
9335
- "aria-label": iconTitle,
9336
- css: /*#__PURE__*/css({
9337
- fontSize: theme.typography.fontSizeSm,
9338
- color: theme.colors.textSecondary
9339
- }, process.env.NODE_ENV === "production" ? "" : ";label:InfoTooltip;"),
9340
- ...iconProps
9341
- })
9342
- })
9343
- });
9344
- };
9345
-
9346
- function _EMOTION_STRINGIFIED_CSS_ERROR__$m() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
10186
+ function _EMOTION_STRINGIFIED_CSS_ERROR__$l() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
9347
10187
  var _ref2$e = process.env.NODE_ENV === "production" ? {
9348
10188
  name: "zjik7",
9349
10189
  styles: "display:flex"
9350
10190
  } : {
9351
10191
  name: "tiu4as-content",
9352
10192
  styles: "display:flex;label:content;",
9353
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$m
10193
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$l
9354
10194
  };
9355
10195
  const DuboisDialogComboboxOptionListCheckboxItem = /*#__PURE__*/forwardRef((_ref, ref) => {
9356
10196
  let {
@@ -9395,7 +10235,7 @@ const DuboisDialogComboboxOptionListCheckboxItem = /*#__PURE__*/forwardRef((_ref
9395
10235
  placement: "right",
9396
10236
  children: jsx("span", {
9397
10237
  css: getInfoIconStyles(theme),
9398
- children: jsx(InfoIcon, {
10238
+ children: jsx(InfoIcon$1, {
9399
10239
  "aria-label": "Disabled status information",
9400
10240
  "aria-hidden": "false"
9401
10241
  })
@@ -9451,7 +10291,7 @@ DuboisDialogComboboxOptionListCheckboxItem.defaultProps = {
9451
10291
  };
9452
10292
  const DialogComboboxOptionListCheckboxItem = DuboisDialogComboboxOptionListCheckboxItem;
9453
10293
 
9454
- function _EMOTION_STRINGIFIED_CSS_ERROR__$l() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
10294
+ function _EMOTION_STRINGIFIED_CSS_ERROR__$k() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
9455
10295
  const extractTextContent = node => {
9456
10296
  if (typeof node === 'string' || typeof node === 'number') {
9457
10297
  return node.toString();
@@ -9484,7 +10324,7 @@ var _ref2$d = process.env.NODE_ENV === "production" ? {
9484
10324
  } : {
9485
10325
  name: "csdki6-DialogComboboxOptionListSearch",
9486
10326
  styles: "width:100%;label:DialogComboboxOptionListSearch;",
9487
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$l
10327
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$k
9488
10328
  };
9489
10329
  const DialogComboboxOptionListSearch = /*#__PURE__*/forwardRef((_ref, forwardedRef) => {
9490
10330
  var _filteredChildren, _filteredChildren2;
@@ -9494,6 +10334,8 @@ const DialogComboboxOptionListSearch = /*#__PURE__*/forwardRef((_ref, forwardedR
9494
10334
  virtualized,
9495
10335
  children,
9496
10336
  hasWrapper,
10337
+ controlledValue,
10338
+ setControlledValue,
9497
10339
  ...restProps
9498
10340
  } = _ref;
9499
10341
  const {
@@ -9510,10 +10352,11 @@ const DialogComboboxOptionListSearch = /*#__PURE__*/forwardRef((_ref, forwardedR
9510
10352
  if (!virtualized) {
9511
10353
  setSearchValue(event.target.value.toLowerCase());
9512
10354
  }
10355
+ setControlledValue === null || setControlledValue === void 0 || setControlledValue(event.target.value);
9513
10356
  onSearch === null || onSearch === void 0 || onSearch(event.target.value);
9514
10357
  };
9515
10358
  let filteredChildren = children;
9516
- if (searchValue && !virtualized) {
10359
+ if (searchValue && !virtualized && controlledValue === undefined) {
9517
10360
  filteredChildren = filterChildren(hasWrapper ? children.props.children : children, searchValue);
9518
10361
  if (hasWrapper) {
9519
10362
  filteredChildren = /*#__PURE__*/React__default.cloneElement(children, {}, filteredChildren);
@@ -9602,7 +10445,7 @@ const DialogComboboxOptionListSearch = /*#__PURE__*/forwardRef((_ref, forwardedR
9602
10445
  handleOnKeyDown(event);
9603
10446
  (_restProps$onKeyDown = restProps.onKeyDown) === null || _restProps$onKeyDown === void 0 || _restProps$onKeyDown.call(restProps, event);
9604
10447
  },
9605
- value: searchValue,
10448
+ value: controlledValue !== null && controlledValue !== void 0 ? controlledValue : searchValue,
9606
10449
  ...restProps
9607
10450
  })
9608
10451
  }), virtualized ? children : (hasWrapper && (_filteredChildren = filteredChildren) !== null && _filteredChildren !== void 0 && (_filteredChildren = _filteredChildren.props.children) !== null && _filteredChildren !== void 0 && _filteredChildren.length || !hasWrapper && (_filteredChildren2 = filteredChildren) !== null && _filteredChildren2 !== void 0 && _filteredChildren2.length) && childrenIsNotEmpty ? jsx("div", {
@@ -9632,14 +10475,14 @@ const useSelectContext = () => {
9632
10475
  return useContext(SelectContext);
9633
10476
  };
9634
10477
 
9635
- function _EMOTION_STRINGIFIED_CSS_ERROR__$k() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
10478
+ function _EMOTION_STRINGIFIED_CSS_ERROR__$j() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
9636
10479
  var _ref2$c = process.env.NODE_ENV === "production" ? {
9637
10480
  name: "zjik7",
9638
10481
  styles: "display:flex"
9639
10482
  } : {
9640
10483
  name: "tiu4as-content",
9641
10484
  styles: "display:flex;label:content;",
9642
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$k
10485
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$j
9643
10486
  };
9644
10487
  var _ref3$6 = process.env.NODE_ENV === "production" ? {
9645
10488
  name: "kjj0ot",
@@ -9647,7 +10490,7 @@ var _ref3$6 = process.env.NODE_ENV === "production" ? {
9647
10490
  } : {
9648
10491
  name: "15osdio-DuboisDialogComboboxOptionListSelectItem",
9649
10492
  styles: "padding-top:2px;label:DuboisDialogComboboxOptionListSelectItem;",
9650
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$k
10493
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$j
9651
10494
  };
9652
10495
  const DuboisDialogComboboxOptionListSelectItem = /*#__PURE__*/forwardRef((_ref, ref) => {
9653
10496
  let {
@@ -9738,7 +10581,7 @@ const DuboisDialogComboboxOptionListSelectItem = /*#__PURE__*/forwardRef((_ref,
9738
10581
  placement: "right",
9739
10582
  children: jsx("span", {
9740
10583
  css: getInfoIconStyles(theme),
9741
- children: jsx(InfoIcon, {
10584
+ children: jsx(InfoIcon$1, {
9742
10585
  "aria-label": "Disabled status information",
9743
10586
  "aria-hidden": "false"
9744
10587
  })
@@ -9778,25 +10621,13 @@ const DuboisDialogComboboxOptionListSelectItem = /*#__PURE__*/forwardRef((_ref,
9778
10621
  flexShrink: 0
9779
10622
  }
9780
10623
  })), jsxs("label", {
9781
- style: {
9782
- marginLeft: !dangerouslyHideCheck ? theme.spacing.sm : 0,
9783
- fontSize: theme.typography.fontSizeBase,
9784
- fontStyle: 'normal',
9785
- fontWeight: 400,
9786
- cursor: 'pointer',
9787
- overflow: 'hidden',
9788
- wordBreak: 'break-word',
9789
- ...(textOverflowMode === 'ellipsis' && {
9790
- textOverflow: 'ellipsis',
9791
- whiteSpace: 'nowrap'
9792
- }),
9793
- ...(contentWidth ? {
9794
- width: getDialogComboboxOptionLabelWidth(theme, contentWidth)
9795
- } : {}),
9796
- ...(hintColumn && {
9797
- display: 'flex'
9798
- })
9799
- },
10624
+ css: getComboboxOptionLabelStyles({
10625
+ theme,
10626
+ dangerouslyHideCheck,
10627
+ textOverflowMode,
10628
+ contentWidth,
10629
+ hasHintColumn: Boolean(hintColumn)
10630
+ }),
9800
10631
  children: [icon && jsx("span", {
9801
10632
  style: {
9802
10633
  position: 'relative',
@@ -9820,14 +10651,14 @@ DuboisDialogComboboxOptionListSelectItem.defaultProps = {
9820
10651
  };
9821
10652
  const DialogComboboxOptionListSelectItem = DuboisDialogComboboxOptionListSelectItem;
9822
10653
 
9823
- function _EMOTION_STRINGIFIED_CSS_ERROR__$j() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
10654
+ function _EMOTION_STRINGIFIED_CSS_ERROR__$i() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
9824
10655
  var _ref2$b = process.env.NODE_ENV === "production" ? {
9825
10656
  name: "1pgv7dg",
9826
10657
  styles: "display:flex;flex-direction:column;align-items:flex-start;width:100%"
9827
10658
  } : {
9828
10659
  name: "18t0chz-DialogComboboxOptionControlledList",
9829
10660
  styles: "display:flex;flex-direction:column;align-items:flex-start;width:100%;label:DialogComboboxOptionControlledList;",
9830
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$j
10661
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$i
9831
10662
  };
9832
10663
  const DialogComboboxOptionControlledList = /*#__PURE__*/forwardRef((_ref, forwardedRef) => {
9833
10664
  let {
@@ -10281,6 +11112,7 @@ const DialogComboboxTrigger = /*#__PURE__*/forwardRef((_ref, forwardedRef) => {
10281
11112
  title: customSelectContent !== null && customSelectContent !== void 0 ? customSelectContent : displayedValues,
10282
11113
  children: triggerContent
10283
11114
  }) : triggerContent, removable && jsx(Button, {
11115
+ componentId: "codegen_design-system_src_design-system_dialogcombobox_dialogcomboboxtrigger.tsx_355",
10284
11116
  "aria-label": `Remove ${label}`,
10285
11117
  onClick: handleRemove,
10286
11118
  dangerouslySetForceIconStyles: true,
@@ -10330,7 +11162,7 @@ const Spacer = _ref => {
10330
11162
  });
10331
11163
  };
10332
11164
 
10333
- function _EMOTION_STRINGIFIED_CSS_ERROR__$i() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
11165
+ function _EMOTION_STRINGIFIED_CSS_ERROR__$h() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
10334
11166
  const DEFAULT_WIDTH$1 = 320;
10335
11167
  const MIN_WIDTH = 320;
10336
11168
  const MAX_WIDTH = '90vw';
@@ -10343,7 +11175,7 @@ var _ref2$a = process.env.NODE_ENV === "production" ? {
10343
11175
  } : {
10344
11176
  name: "h5yqvj-Content",
10345
11177
  styles: "flex-grow:1;margin-bottom:0;margin-top:0;white-space:nowrap;overflow:hidden;label:Content;",
10346
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$i
11178
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$h
10347
11179
  };
10348
11180
  const Content$3 = _ref => {
10349
11181
  let {
@@ -10479,6 +11311,7 @@ const Content$3 = _ref => {
10479
11311
  marginLeft: theme.spacing.xs
10480
11312
  }, process.env.NODE_ENV === "production" ? "" : ";label:Content;"),
10481
11313
  children: jsx(Button, {
11314
+ componentId: "codegen_design-system_src_design-system_drawer_drawer.tsx_219",
10482
11315
  "aria-label": "Close",
10483
11316
  icon: jsx(CloseIcon, {})
10484
11317
  })
@@ -10560,7 +11393,7 @@ const Dropdown = _ref => {
10560
11393
  });
10561
11394
  };
10562
11395
 
10563
- function _EMOTION_STRINGIFIED_CSS_ERROR__$h() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
11396
+ function _EMOTION_STRINGIFIED_CSS_ERROR__$g() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
10564
11397
  const {
10565
11398
  Title: Title$1,
10566
11399
  Paragraph
@@ -10608,7 +11441,7 @@ var _ref$5 = process.env.NODE_ENV === "production" ? {
10608
11441
  } : {
10609
11442
  name: "11tid6c-Empty",
10610
11443
  styles: "display:flex;justify-content:center;label:Empty;",
10611
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$h
11444
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$g
10612
11445
  };
10613
11446
  const Empty = props => {
10614
11447
  const {
@@ -10814,7 +11647,7 @@ const Hint = props => {
10814
11647
  });
10815
11648
  };
10816
11649
 
10817
- function _EMOTION_STRINGIFIED_CSS_ERROR__$g() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
11650
+ function _EMOTION_STRINGIFIED_CSS_ERROR__$f() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
10818
11651
  const getLabelStyles$1 = (classNamePrefix, theme, _ref) => {
10819
11652
  let {
10820
11653
  inline
@@ -10838,7 +11671,7 @@ var _ref2$9 = process.env.NODE_ENV === "production" ? {
10838
11671
  } : {
10839
11672
  name: "53ggpt-Label",
10840
11673
  styles: "display:flex;align-items:center;label:Label;",
10841
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$g
11674
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$f
10842
11675
  };
10843
11676
  const Label = props => {
10844
11677
  const {
@@ -10984,7 +11817,7 @@ const getCommonRadioGroupStyles = _ref2 => {
10984
11817
  '& > label': {
10985
11818
  ...(useNewStyles && {
10986
11819
  [`&.${classNamePrefix}-radio-wrapper-disabled > span`]: {
10987
- color: theme.colors.textPrimary
11820
+ color: theme.colors.actionDisabledText
10988
11821
  }
10989
11822
  })
10990
11823
  },
@@ -11278,7 +12111,8 @@ function getSelectEmotionStyles(_ref) {
11278
12111
  },
11279
12112
  // Note: This supports search, which we don't support. The styles here support legacy usages.
11280
12113
  [classSearchClear]: {
11281
- right: 24
12114
+ right: 24,
12115
+ backgroundColor: 'transparent'
11282
12116
  },
11283
12117
  [`&${classFocused}`]: {
11284
12118
  [classSelector]: {
@@ -11818,12 +12652,18 @@ const getSwitchWithLabelStyles = _ref => {
11818
12652
  boxShadow: `0px 0px 0px 1px ${theme.colors.actionPrimaryBackgroundHover}`
11819
12653
  }
11820
12654
  },
12655
+ [`&.${clsPrefix}-switch-disabled`]: {
12656
+ backgroundColor: theme.colors.actionDisabledBackground,
12657
+ border: `1px solid ${theme.colors.actionDisabledBorder}`,
12658
+ [`.${clsPrefix}-switch-handle:before`]: {
12659
+ boxShadow: `0px 0px 0px 1px ${theme.colors.actionDisabledBorder}`
12660
+ }
12661
+ },
11821
12662
  [`&:focus-visible`]: {
11822
12663
  border: `1px solid ${theme.colors.actionPrimaryBackgroundDefault}`,
11823
12664
  boxShadow: 'none',
11824
12665
  outlineStyle: 'solid',
11825
12666
  outlineWidth: '1px',
11826
- outlineOffset: '1px',
11827
12667
  outlineColor: theme.colors.actionDefaultBorderFocus,
11828
12668
  [`.${clsPrefix}-switch-handle:before`]: {
11829
12669
  boxShadow: `0px 0px 0px 1px ${theme.colors.actionPrimaryBackgroundDefault}`
@@ -11848,11 +12688,14 @@ const getSwitchWithLabelStyles = _ref => {
11848
12688
  boxShadow: `0px 0px 0px 1px ${theme.colors.actionPrimaryBackgroundDefault}`
11849
12689
  },
11850
12690
  [`&.${clsPrefix}-switch-disabled`]: {
11851
- backgroundColor: theme.colors.actionDisabledBackground,
11852
- border: `1px solid ${theme.colors.actionDisabledBackground}`,
12691
+ backgroundColor: theme.colors.actionDisabledText,
12692
+ border: `1px solid ${theme.colors.actionDisabledText}`,
11853
12693
  [`.${clsPrefix}-switch-handle:before`]: {
11854
- boxShadow: `0px 0px 0px 1px ${theme.colors.actionDisabledBackground}`
12694
+ boxShadow: `0px 0px 0px 1px ${theme.colors.actionDisabledText}`
11855
12695
  }
12696
+ },
12697
+ [`&:focus-visible`]: {
12698
+ outlineOffset: '1px'
11856
12699
  }
11857
12700
  },
11858
12701
  [`.${clsPrefix}-switch-handle:before`]: {
@@ -11866,7 +12709,8 @@ const getSwitchWithLabelStyles = _ref => {
11866
12709
  },
11867
12710
  [`.${clsPrefix}-click-animating-node`]: {
11868
12711
  animation: 'none'
11869
- }
12712
+ },
12713
+ opacity: 1
11870
12714
  };
11871
12715
  const importantStyles = importantify(styles);
11872
12716
  return /*#__PURE__*/css(importantStyles, process.env.NODE_ENV === "production" ? "" : ";label:getSwitchWithLabelStyles;");
@@ -11986,14 +12830,14 @@ const TypeaheadComboboxContextProvider = _ref => {
11986
12830
  });
11987
12831
  };
11988
12832
 
11989
- function _EMOTION_STRINGIFIED_CSS_ERROR__$f() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
12833
+ function _EMOTION_STRINGIFIED_CSS_ERROR__$e() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
11990
12834
  var _ref2$8 = process.env.NODE_ENV === "production" ? {
11991
12835
  name: "18nns55",
11992
12836
  styles: "display:inline-block;width:100%"
11993
12837
  } : {
11994
12838
  name: "19m0398-TypeaheadComboboxRoot",
11995
12839
  styles: "display:inline-block;width:100%;label:TypeaheadComboboxRoot;",
11996
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$f
12840
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$e
11997
12841
  };
11998
12842
  const TypeaheadComboboxRoot = /*#__PURE__*/forwardRef((_ref, ref) => {
11999
12843
  let {
@@ -12053,16 +12897,17 @@ function useComboboxState(_ref) {
12053
12897
  }
12054
12898
  const comboboxState = useCombobox({
12055
12899
  onIsOpenChange: onIsOpenChange,
12056
- onInputValueChange: props.multiSelect ? _ref2 => {
12900
+ onInputValueChange: _ref2 => {
12057
12901
  let {
12058
12902
  inputValue
12059
12903
  } = _ref2;
12060
- return inputValue !== undefined && props.setInputValue(inputValue);
12061
- } : _ref3 => {
12062
- let {
12063
- inputValue
12064
- } = _ref3;
12065
- props.setItems(getFilteredItems(inputValue));
12904
+ if (inputValue !== undefined) {
12905
+ var _props$setInputValue;
12906
+ (_props$setInputValue = props.setInputValue) === null || _props$setInputValue === void 0 || _props$setInputValue.call(props, inputValue);
12907
+ }
12908
+ if (!props.multiSelect) {
12909
+ props.setItems(getFilteredItems(inputValue));
12910
+ }
12066
12911
  },
12067
12912
  items: items,
12068
12913
  itemToString(item) {
@@ -12110,42 +12955,46 @@ function useComboboxState(_ref) {
12110
12955
  return changes;
12111
12956
  }
12112
12957
  },
12113
- onStateChange: props.multiSelect ? _ref4 => {
12114
- let {
12958
+ onStateChange: args => {
12959
+ var _props$onStateChange;
12960
+ const {
12115
12961
  type,
12116
12962
  selectedItem: newSelectedItem,
12117
12963
  inputValue: newInputValue
12118
- } = _ref4;
12119
- switch (type) {
12120
- case useCombobox.stateChangeTypes.InputKeyDownEnter:
12121
- case useCombobox.stateChangeTypes.ItemClick:
12122
- case useCombobox.stateChangeTypes.InputBlur:
12123
- if (newSelectedItem) {
12124
- props.setSelectedItems([...props.selectedItems, newSelectedItem]);
12125
- props.setInputValue('');
12126
- formOnBlur === null || formOnBlur === void 0 || formOnBlur([...props.selectedItems, newSelectedItem]);
12127
- }
12128
- break;
12129
- case useCombobox.stateChangeTypes.InputChange:
12130
- props.setInputValue(newInputValue !== null && newInputValue !== void 0 ? newInputValue : '');
12131
- break;
12132
- }
12133
- // Unselect when clicking selected item
12134
- if (newSelectedItem && props.selectedItems.includes(newSelectedItem)) {
12135
- props.setSelectedItems(props.selectedItems.filter(item => item !== newSelectedItem));
12964
+ } = args;
12965
+ (_props$onStateChange = props.onStateChange) === null || _props$onStateChange === void 0 || _props$onStateChange.call(props, args);
12966
+ if (props.multiSelect) {
12967
+ switch (type) {
12968
+ case useCombobox.stateChangeTypes.InputKeyDownEnter:
12969
+ case useCombobox.stateChangeTypes.ItemClick:
12970
+ case useCombobox.stateChangeTypes.InputBlur:
12971
+ if (newSelectedItem) {
12972
+ props.setSelectedItems([...props.selectedItems, newSelectedItem]);
12973
+ props.setInputValue('');
12974
+ formOnBlur === null || formOnBlur === void 0 || formOnBlur([...props.selectedItems, newSelectedItem]);
12975
+ }
12976
+ break;
12977
+ case useCombobox.stateChangeTypes.InputChange:
12978
+ props.setInputValue(newInputValue !== null && newInputValue !== void 0 ? newInputValue : '');
12979
+ break;
12980
+ }
12981
+ // Unselect when clicking selected item
12982
+ if (newSelectedItem && props.selectedItems.includes(newSelectedItem)) {
12983
+ props.setSelectedItems(props.selectedItems.filter(item => item !== newSelectedItem));
12984
+ }
12136
12985
  }
12137
- } : undefined
12986
+ }
12138
12987
  });
12139
12988
  return comboboxState;
12140
12989
  }
12141
12990
  function useMultipleSelectionState(selectedItems, setSelectedItems) {
12142
12991
  return useMultipleSelection({
12143
12992
  selectedItems,
12144
- onStateChange(_ref5) {
12993
+ onStateChange(_ref3) {
12145
12994
  let {
12146
12995
  selectedItems: newSelectedItems,
12147
12996
  type
12148
- } = _ref5;
12997
+ } = _ref3;
12149
12998
  switch (type) {
12150
12999
  case useMultipleSelection.stateChangeTypes.SelectedItemKeyDownBackspace:
12151
13000
  case useMultipleSelection.stateChangeTypes.SelectedItemKeyDownDelete:
@@ -12162,14 +13011,14 @@ const useTypeaheadComboboxContext = () => {
12162
13011
  return useContext(TypeaheadComboboxContext);
12163
13012
  };
12164
13013
 
12165
- function _EMOTION_STRINGIFIED_CSS_ERROR__$e() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
13014
+ function _EMOTION_STRINGIFIED_CSS_ERROR__$d() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
12166
13015
  var _ref$4 = process.env.NODE_ENV === "production" ? {
12167
13016
  name: "xv0ss6",
12168
13017
  styles: "padding:0;margin:0;display:flex;flex-direction:column;align-items:flex-start;position:absolute"
12169
13018
  } : {
12170
13019
  name: "1sd733r-getTypeaheadComboboxMenuStyles",
12171
13020
  styles: "padding:0;margin:0;display:flex;flex-direction:column;align-items:flex-start;position:absolute;label:getTypeaheadComboboxMenuStyles;",
12172
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$e
13021
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$d
12173
13022
  };
12174
13023
  const getTypeaheadComboboxMenuStyles = () => {
12175
13024
  return _ref$4;
@@ -12266,7 +13115,7 @@ const TypeaheadComboboxMenu = /*#__PURE__*/forwardRef((_ref2, ref) => {
12266
13115
  }), getPopupContainer ? getPopupContainer() : document.body);
12267
13116
  });
12268
13117
 
12269
- function _EMOTION_STRINGIFIED_CSS_ERROR__$d() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
13118
+ function _EMOTION_STRINGIFIED_CSS_ERROR__$c() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
12270
13119
  const getMenuItemStyles = (theme, isHighlighted, disabled) => {
12271
13120
  return /*#__PURE__*/css({
12272
13121
  ...(disabled && {
@@ -12299,7 +13148,7 @@ var _ref2$7 = process.env.NODE_ENV === "production" ? {
12299
13148
  } : {
12300
13149
  name: "1uez6s6-TypeaheadComboboxMenuItem",
12301
13150
  styles: "padding-top:2px;label:TypeaheadComboboxMenuItem;",
12302
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$d
13151
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$c
12303
13152
  };
12304
13153
  var _ref3$5 = process.env.NODE_ENV === "production" ? {
12305
13154
  name: "zjik7",
@@ -12307,7 +13156,7 @@ var _ref3$5 = process.env.NODE_ENV === "production" ? {
12307
13156
  } : {
12308
13157
  name: "1p9uv37-TypeaheadComboboxMenuItem",
12309
13158
  styles: "display:flex;label:TypeaheadComboboxMenuItem;",
12310
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$d
13159
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$c
12311
13160
  };
12312
13161
  const TypeaheadComboboxMenuItem = /*#__PURE__*/forwardRef((_ref, ref) => {
12313
13162
  let {
@@ -12388,14 +13237,14 @@ TypeaheadComboboxMenuItem.defaultProps = {
12388
13237
  _TYPE: 'TypeaheadComboboxMenuItem'
12389
13238
  };
12390
13239
 
12391
- function _EMOTION_STRINGIFIED_CSS_ERROR__$c() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
13240
+ function _EMOTION_STRINGIFIED_CSS_ERROR__$b() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
12392
13241
  var _ref2$6 = process.env.NODE_ENV === "production" ? {
12393
13242
  name: "zjik7",
12394
13243
  styles: "display:flex"
12395
13244
  } : {
12396
13245
  name: "1pneh3l-TypeaheadComboboxCheckboxItem",
12397
13246
  styles: "display:flex;label:TypeaheadComboboxCheckboxItem;",
12398
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$c
13247
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$b
12399
13248
  };
12400
13249
  const TypeaheadComboboxCheckboxItem = /*#__PURE__*/forwardRef((_ref, ref) => {
12401
13250
  let {
@@ -12522,14 +13371,14 @@ const TypeaheadComboboxToggleButton = /*#__PURE__*/React__default.forwardRef((_r
12522
13371
  });
12523
13372
  });
12524
13373
 
12525
- function _EMOTION_STRINGIFIED_CSS_ERROR__$b() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
13374
+ function _EMOTION_STRINGIFIED_CSS_ERROR__$a() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
12526
13375
  var _ref2$5 = process.env.NODE_ENV === "production" ? {
12527
13376
  name: "l1fpjx",
12528
13377
  styles: "pointer-events:all;vertical-align:text-top"
12529
13378
  } : {
12530
13379
  name: "4edanz-TypeaheadComboboxControls",
12531
13380
  styles: "pointer-events:all;vertical-align:text-top;label:TypeaheadComboboxControls;",
12532
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$b
13381
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$a
12533
13382
  };
12534
13383
  const TypeaheadComboboxControls = _ref => {
12535
13384
  let {
@@ -12558,14 +13407,14 @@ const TypeaheadComboboxControls = _ref => {
12558
13407
  });
12559
13408
  };
12560
13409
 
12561
- function _EMOTION_STRINGIFIED_CSS_ERROR__$a() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
13410
+ function _EMOTION_STRINGIFIED_CSS_ERROR__$9() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
12562
13411
  var _ref$3 = process.env.NODE_ENV === "production" ? {
12563
13412
  name: "5ob2ly",
12564
13413
  styles: "display:flex;position:relative"
12565
13414
  } : {
12566
13415
  name: "9x5b62-getContainerStyles",
12567
13416
  styles: "display:flex;position:relative;label:getContainerStyles;",
12568
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$a
13417
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$9
12569
13418
  };
12570
13419
  const getContainerStyles$1 = () => {
12571
13420
  return _ref$3;
@@ -12659,7 +13508,7 @@ const TypeaheadComboboxInput = /*#__PURE__*/forwardRef((_ref2, ref) => {
12659
13508
  });
12660
13509
  });
12661
13510
 
12662
- function _EMOTION_STRINGIFIED_CSS_ERROR__$9() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
13511
+ function _EMOTION_STRINGIFIED_CSS_ERROR__$8() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
12663
13512
  const getSelectedItemStyles = theme => {
12664
13513
  return /*#__PURE__*/css({
12665
13514
  backgroundColor: theme.colors.tagDefault,
@@ -12703,7 +13552,7 @@ var _ref2$4 = process.env.NODE_ENV === "production" ? {
12703
13552
  } : {
12704
13553
  name: "d61dng-TypeaheadComboboxSelectedItem",
12705
13554
  styles: "margin-right:2px;label:TypeaheadComboboxSelectedItem;",
12706
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$9
13555
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$8
12707
13556
  };
12708
13557
  const TypeaheadComboboxSelectedItem = /*#__PURE__*/forwardRef((_ref, ref) => {
12709
13558
  let {
@@ -12758,7 +13607,7 @@ const CountBadge = _ref => {
12758
13607
  });
12759
13608
  };
12760
13609
 
12761
- function _EMOTION_STRINGIFIED_CSS_ERROR__$8() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
13610
+ function _EMOTION_STRINGIFIED_CSS_ERROR__$7() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
12762
13611
  const getContainerStyles = (theme, validationState, width, maxHeight) => {
12763
13612
  const validationColor = getValidationStateColor(theme, validationState);
12764
13613
  return /*#__PURE__*/css({
@@ -12819,7 +13668,7 @@ var _ref2$3 = process.env.NODE_ENV === "production" ? {
12819
13668
  } : {
12820
13669
  name: "azzs2i-getContentWrapperStyles",
12821
13670
  styles: "display:flex;flex:auto;flex-wrap:wrap;max-width:100%;position:relative;label:getContentWrapperStyles;",
12822
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$8
13671
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$7
12823
13672
  };
12824
13673
  const getContentWrapperStyles = () => {
12825
13674
  return _ref2$3;
@@ -12830,7 +13679,7 @@ var _ref$2 = process.env.NODE_ENV === "production" ? {
12830
13679
  } : {
12831
13680
  name: "10x8s5t-getInputWrapperStyles",
12832
13681
  styles: "display:inline-flex;position:relative;max-width:100%;align-self:auto;flex:none;label:getInputWrapperStyles;",
12833
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$8
13682
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$7
12834
13683
  };
12835
13684
  const getInputWrapperStyles = () => {
12836
13685
  return _ref$2;
@@ -12861,7 +13710,7 @@ var _ref4$2 = process.env.NODE_ENV === "production" ? {
12861
13710
  } : {
12862
13711
  name: "1noplic-content",
12863
13712
  styles: "visibility:hidden;white-space:pre;position:absolute;label:content;",
12864
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$8
13713
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$7
12865
13714
  };
12866
13715
  const TypeaheadComboboxMultiSelectInput = /*#__PURE__*/forwardRef((_ref3, ref) => {
12867
13716
  var _measureRef$current, _itemsRef$current, _containerRef$current, _innerRef$current2;
@@ -13055,6 +13904,53 @@ DuboisTypeaheadComboboxFooter.defaultProps = {
13055
13904
  };
13056
13905
  const TypeaheadComboboxFooter = DuboisTypeaheadComboboxFooter;
13057
13906
 
13907
+ const TypeaheadComboboxAddButton = _ref => {
13908
+ let {
13909
+ children,
13910
+ ...restProps
13911
+ } = _ref;
13912
+ const {
13913
+ theme
13914
+ } = useDesignSystemTheme();
13915
+ const {
13916
+ isInsideTypeaheadCombobox
13917
+ } = useTypeaheadComboboxContext();
13918
+ if (!isInsideTypeaheadCombobox) {
13919
+ throw new Error('`TypeaheadComboboxAddButton` must be used within `TypeaheadCombobox`');
13920
+ }
13921
+ return jsx(Button, {
13922
+ ...restProps,
13923
+ type: "tertiary",
13924
+ onClick: event => {
13925
+ var _restProps$onClick;
13926
+ event.stopPropagation();
13927
+ (_restProps$onClick = restProps.onClick) === null || _restProps$onClick === void 0 || _restProps$onClick.call(restProps, event);
13928
+ },
13929
+ onMouseUp: event => {
13930
+ var _restProps$onMouseUp;
13931
+ event.stopPropagation();
13932
+ (_restProps$onMouseUp = restProps.onMouseUp) === null || _restProps$onMouseUp === void 0 || _restProps$onMouseUp.call(restProps, event);
13933
+ },
13934
+ className: "combobox-footer-add-button",
13935
+ css: /*#__PURE__*/css({
13936
+ ...getComboboxOptionItemWrapperStyles(theme),
13937
+ ... /*#__PURE__*/css(importantify({
13938
+ width: '100%',
13939
+ padding: 0,
13940
+ display: 'flex',
13941
+ alignItems: 'center',
13942
+ borderRadius: 0,
13943
+ '&:focus': {
13944
+ background: theme.colors.actionTertiaryBackgroundHover,
13945
+ outline: 'none'
13946
+ }
13947
+ }), process.env.NODE_ENV === "production" ? "" : ";label:TypeaheadComboboxAddButton;")
13948
+ }, process.env.NODE_ENV === "production" ? "" : ";label:TypeaheadComboboxAddButton;"),
13949
+ icon: jsx(PlusIcon$1, {}),
13950
+ children: children
13951
+ });
13952
+ };
13953
+
13058
13954
  function RHFControlledInput(_ref) {
13059
13955
  let {
13060
13956
  name,
@@ -13171,13 +14067,17 @@ function RHFControlledSelectV2(_ref5) {
13171
14067
 
13172
14068
  // Find the appropriate label for the selected value
13173
14069
  if (!(options !== null && options !== void 0 && options.length) && children) {
13174
- var _props;
13175
14070
  const renderedChildren = children({
13176
14071
  onChange: handleOnChange
13177
14072
  });
13178
- const child = Children.toArray(renderedChildren.props.children).find(child => /*#__PURE__*/React__default.isValidElement(child) && child.props.value === field.value);
13179
- if (child && ((_props = child.props) === null || _props === void 0 ? void 0 : _props.children) !== field.value) {
13180
- setSelectedValueLabel(child.props.children);
14073
+ const child = (Array.isArray(renderedChildren) ? renderedChildren : Children.toArray(renderedChildren.props.children)).find(child => /*#__PURE__*/React__default.isValidElement(child) && child.props.value === field.value);
14074
+ if (child) {
14075
+ var _props;
14076
+ if (((_props = child.props) === null || _props === void 0 ? void 0 : _props.children) !== field.value) {
14077
+ setSelectedValueLabel(child.props.children);
14078
+ } else {
14079
+ setSelectedValueLabel(field.value);
14080
+ }
13181
14081
  }
13182
14082
  } else if (options !== null && options !== void 0 && options.length) {
13183
14083
  const option = options.find(option => option.value === field.value);
@@ -13197,7 +14097,6 @@ function RHFControlledSelectV2(_ref5) {
13197
14097
  }), jsx(SelectV2Content, {
13198
14098
  ...contentProps,
13199
14099
  side: "bottom",
13200
- width: width,
13201
14100
  children: options && options.length > 0 ? options.map(option => createElement(SelectV2Option, {
13202
14101
  ...optionProps,
13203
14102
  key: option.value,
@@ -13618,7 +14517,7 @@ const Space = _ref => {
13618
14517
  });
13619
14518
  };
13620
14519
 
13621
- function _EMOTION_STRINGIFIED_CSS_ERROR__$7() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
14520
+ function _EMOTION_STRINGIFIED_CSS_ERROR__$6() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
13622
14521
  const getHeaderStyles = (clsPrefix, theme) => {
13623
14522
  const breadcrumbClass = `.${clsPrefix}-breadcrumb`;
13624
14523
  const styles = {
@@ -13634,7 +14533,7 @@ var _ref$1 = process.env.NODE_ENV === "production" ? {
13634
14533
  } : {
13635
14534
  name: "n13uil-titleAddOnsWrapper",
13636
14535
  styles: "display:inline-flex;vertical-align:middle;align-items:center;label:titleAddOnsWrapper;",
13637
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$7
14536
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$6
13638
14537
  };
13639
14538
  var _ref2$2 = process.env.NODE_ENV === "production" ? {
13640
14539
  name: "1q4vxyr",
@@ -13642,7 +14541,7 @@ var _ref2$2 = process.env.NODE_ENV === "production" ? {
13642
14541
  } : {
13643
14542
  name: "ozrfom-buttonContainer",
13644
14543
  styles: "margin-left:8px;label:buttonContainer;",
13645
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$7
14544
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$6
13646
14545
  };
13647
14546
  var _ref3$4 = process.env.NODE_ENV === "production" ? {
13648
14547
  name: "s079uh",
@@ -13650,7 +14549,7 @@ var _ref3$4 = process.env.NODE_ENV === "production" ? {
13650
14549
  } : {
13651
14550
  name: "1ky5whb-titleIfOtherElementsPresent",
13652
14551
  styles: "margin-top:2px;label:titleIfOtherElementsPresent;",
13653
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$7
14552
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$6
13654
14553
  };
13655
14554
  var _ref4$1 = process.env.NODE_ENV === "production" ? {
13656
14555
  name: "fuxm9z",
@@ -13658,7 +14557,7 @@ var _ref4$1 = process.env.NODE_ENV === "production" ? {
13658
14557
  } : {
13659
14558
  name: "h5m2l9-title",
13660
14559
  styles: "margin-top:0;margin-bottom:0 !important;align-self:stretch;label:title;",
13661
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$7
14560
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$6
13662
14561
  };
13663
14562
  const Header$1 = _ref5 => {
13664
14563
  let {
@@ -13674,6 +14573,7 @@ const Header$1 = _ref5 => {
13674
14573
  classNamePrefix: clsPrefix,
13675
14574
  theme
13676
14575
  } = useDesignSystemTheme();
14576
+ const useReflowWrapStyles = safex('databricks.fe.wexp.enableReflowWrapStyles', false);
13677
14577
  const buttonsArray = Array.isArray(buttons) ? buttons : buttons ? [buttons] : [];
13678
14578
 
13679
14579
  // TODO: Move to getHeaderStyles for consistency, followup ticket: https://databricks.atlassian.net/browse/FEINF-1222
@@ -13682,6 +14582,9 @@ const Header$1 = _ref5 => {
13682
14582
  display: 'flex',
13683
14583
  alignItems: 'flex-start',
13684
14584
  justifyContent: 'space-between',
14585
+ ...(useReflowWrapStyles ? {
14586
+ flexWrap: 'wrap'
14587
+ } : {}),
13685
14588
  // Buttons have 32px height while Title level 2 elements used by this component have a height of 28px
13686
14589
  // These paddings enforce height to be the same without buttons too
13687
14590
  ...(buttonsArray.length === 0 && {
@@ -13718,6 +14621,11 @@ const Header$1 = _ref5 => {
13718
14621
  }), buttons && jsx("div", {
13719
14622
  css: styles.buttonContainer,
13720
14623
  children: jsx(Space, {
14624
+ ...(useReflowWrapStyles ? {
14625
+ dangerouslySetAntdProps: {
14626
+ wrap: true
14627
+ }
14628
+ } : {}),
13721
14629
  size: 8,
13722
14630
  children: buttonsArray.filter(Boolean).map((button, i) => {
13723
14631
  const defaultKey = `dubois-header-button-${i}`;
@@ -13986,7 +14894,7 @@ const LegacySkeleton = /* #__PURE__ */(() => {
13986
14894
  return LegacySkeleton;
13987
14895
  })();
13988
14896
 
13989
- function _EMOTION_STRINGIFIED_CSS_ERROR__$6() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
14897
+ function _EMOTION_STRINGIFIED_CSS_ERROR__$5() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
13990
14898
  function getPaginationEmotionStyles(clsPrefix, theme) {
13991
14899
  const classRoot = `.${clsPrefix}-pagination`;
13992
14900
  const classItem = `.${clsPrefix}-pagination-item`;
@@ -14108,20 +15016,41 @@ const Pagination = function Pagination(_ref) {
14108
15016
  classNamePrefix,
14109
15017
  theme
14110
15018
  } = useDesignSystemTheme();
15019
+ const {
15020
+ pageSizeSelectAriaLabel,
15021
+ pageQuickJumperAriaLabel,
15022
+ ...restDangerouslySetAntdProps
15023
+ } = dangerouslySetAntdProps !== null && dangerouslySetAntdProps !== void 0 ? dangerouslySetAntdProps : {};
15024
+ const ref = useRef(null);
15025
+ useEffect(() => {
15026
+ if (ref && ref.current) {
15027
+ const selectDropdown = ref.current.querySelector(`.${classNamePrefix}-select-selection-search-input`);
15028
+ if (selectDropdown) {
15029
+ selectDropdown.setAttribute('aria-label', pageSizeSelectAriaLabel !== null && pageSizeSelectAriaLabel !== void 0 ? pageSizeSelectAriaLabel : 'Select page size');
15030
+ }
15031
+ const pageQuickJumper = ref.current.querySelector(`.${classNamePrefix}-pagination-options-quick-jumper > input`);
15032
+ if (pageQuickJumper) {
15033
+ pageQuickJumper.setAttribute('aria-label', pageQuickJumperAriaLabel !== null && pageQuickJumperAriaLabel !== void 0 ? pageQuickJumperAriaLabel : 'Go to page');
15034
+ }
15035
+ }
15036
+ }, [pageQuickJumperAriaLabel, pageSizeSelectAriaLabel, classNamePrefix]);
14111
15037
  return jsx(DesignSystemAntDConfigProvider, {
14112
- children: jsx(Pagination$1, {
14113
- css: getPaginationEmotionStyles(classNamePrefix, theme),
14114
- current: currentPageIndex,
14115
- pageSize: pageSize,
14116
- responsive: false,
14117
- total: numTotal,
14118
- onChange: onChange,
14119
- showSizeChanger: false,
14120
- showQuickJumper: false,
14121
- size: "small",
14122
- style: style,
14123
- hideOnSinglePage: hideOnSinglePage,
14124
- ...dangerouslySetAntdProps
15038
+ children: jsx("div", {
15039
+ ref: ref,
15040
+ children: jsx(Pagination$1, {
15041
+ css: getPaginationEmotionStyles(classNamePrefix, theme),
15042
+ current: currentPageIndex,
15043
+ pageSize: pageSize,
15044
+ responsive: false,
15045
+ total: numTotal,
15046
+ onChange: onChange,
15047
+ showSizeChanger: false,
15048
+ showQuickJumper: false,
15049
+ size: "small",
15050
+ style: style,
15051
+ hideOnSinglePage: hideOnSinglePage,
15052
+ ...restDangerouslySetAntdProps
15053
+ })
14125
15054
  })
14126
15055
  });
14127
15056
  };
@@ -14131,7 +15060,7 @@ var _ref3$3 = process.env.NODE_ENV === "production" ? {
14131
15060
  } : {
14132
15061
  name: "1am9qog-CursorPagination",
14133
15062
  styles: "width:120px;label:CursorPagination;",
14134
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$6
15063
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$5
14135
15064
  };
14136
15065
  const CursorPagination = function CursorPagination(_ref2) {
14137
15066
  let {
@@ -14145,7 +15074,8 @@ const CursorPagination = function CursorPagination(_ref2) {
14145
15074
  options: pageSizeOptions,
14146
15075
  default: defaultPageSize,
14147
15076
  getOptionText: getPageSizeOptionText,
14148
- onChange: onPageSizeChange
15077
+ onChange: onPageSizeChange,
15078
+ ariaLabel = 'Select page size'
14149
15079
  } = {}
14150
15080
  } = _ref2;
14151
15081
  const {
@@ -14164,18 +15094,21 @@ const CursorPagination = function CursorPagination(_ref2) {
14164
15094
  }
14165
15095
  }, process.env.NODE_ENV === "production" ? "" : ";label:CursorPagination;"),
14166
15096
  children: [jsx(Button, {
15097
+ componentId: "codegen_design-system_src_design-system_pagination_index.tsx_237",
14167
15098
  icon: jsx(ChevronLeftIcon, {}),
14168
15099
  disabled: !hasPreviousPage,
14169
15100
  onClick: onPreviousPage,
14170
15101
  type: "tertiary",
14171
15102
  children: previousPageText
14172
15103
  }), jsx(Button, {
15104
+ componentId: "codegen_design-system_src_design-system_pagination_index.tsx_240",
14173
15105
  endIcon: jsx(ChevronRightIcon, {}),
14174
15106
  disabled: !hasNextPage,
14175
15107
  onClick: onNextPage,
14176
15108
  type: "tertiary",
14177
15109
  children: nextPageText
14178
15110
  }), pageSizeOptions && jsx(Select, {
15111
+ "aria-label": ariaLabel,
14179
15112
  value: String(pageSizeValue),
14180
15113
  css: _ref3$3,
14181
15114
  onChange: pageSize => {
@@ -14320,7 +15253,7 @@ const Menu = /* #__PURE__ */(() => {
14320
15253
  return Menu;
14321
15254
  })();
14322
15255
 
14323
- function _EMOTION_STRINGIFIED_CSS_ERROR__$5() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
15256
+ function _EMOTION_STRINGIFIED_CSS_ERROR__$4() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
14324
15257
  const SIZE_PRESETS = {
14325
15258
  normal: 640,
14326
15259
  wide: 880
@@ -14467,12 +15400,14 @@ function DefaultFooter(_ref) {
14467
15400
  };
14468
15401
  return jsxs(Fragment, {
14469
15402
  children: [cancelText && jsx(Button, {
15403
+ componentId: "codegen_design-system_src_design-system_modal_modal.tsx_260",
14470
15404
  onClick: handleCancel,
14471
15405
  autoFocus: autoFocusButton === 'cancel',
14472
15406
  dangerouslyUseFocusPseudoClass: true,
14473
15407
  ...cancelButtonProps,
14474
15408
  children: cancelText
14475
15409
  }), okText && jsx(Button, {
15410
+ componentId: "codegen_design-system_src_design-system_modal_modal.tsx_271",
14476
15411
  loading: confirmLoading,
14477
15412
  onClick: handleOk,
14478
15413
  type: "primary",
@@ -14551,7 +15486,7 @@ var _ref3$2 = process.env.NODE_ENV === "production" ? {
14551
15486
  } : {
14552
15487
  name: "1jkwrsj-titleComp",
14553
15488
  styles: "position:relative;display:inline-flex;align-items:center;label:titleComp;",
14554
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$5
15489
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$4
14555
15490
  };
14556
15491
  var _ref4 = process.env.NODE_ENV === "production" ? {
14557
15492
  name: "1o6wc9k",
@@ -14559,7 +15494,7 @@ var _ref4 = process.env.NODE_ENV === "production" ? {
14559
15494
  } : {
14560
15495
  name: "i303lp-titleComp",
14561
15496
  styles: "padding-left:6px;label:titleComp;",
14562
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$5
15497
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$4
14563
15498
  };
14564
15499
  function DangerModal(props) {
14565
15500
  const {
@@ -14595,10 +15530,12 @@ function DangerModal(props) {
14595
15530
  return jsx(Modal, {
14596
15531
  title: titleComp,
14597
15532
  footer: [jsx(Button, {
15533
+ componentId: "codegen_design-system_src_design-system_modal_modal.tsx_386",
14598
15534
  onClick: onCancel,
14599
15535
  ...cancelButtonProps,
14600
15536
  children: cancelText || 'Cancel'
14601
15537
  }, "cancel"), jsx(Button, {
15538
+ componentId: "codegen_design-system_src_design-system_modal_modal.tsx_395",
14602
15539
  type: "primary",
14603
15540
  danger: true,
14604
15541
  onClick: onOk,
@@ -14716,6 +15653,7 @@ const Root$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
14716
15653
  // TODO: Support light and dark mode
14717
15654
 
14718
15655
  const getViewportStyle = theme => {
15656
+ const enableReflowWrapStyles = safex('databricks.fe.wexp.enableReflowWrapStyles', false);
14719
15657
  return {
14720
15658
  position: 'fixed',
14721
15659
  top: 0,
@@ -14727,7 +15665,10 @@ const getViewportStyle = theme => {
14727
15665
  width: 440,
14728
15666
  listStyle: 'none',
14729
15667
  zIndex: theme.options.zIndexBase + 100,
14730
- outline: 'none'
15668
+ outline: 'none',
15669
+ ...(enableReflowWrapStyles ? {
15670
+ maxWidth: `calc(100% - ${theme.spacing.lg}px)`
15671
+ } : {})
14731
15672
  };
14732
15673
  };
14733
15674
  const getTitleStyles = theme => {
@@ -14810,6 +15751,7 @@ const Close$1 = /*#__PURE__*/forwardRef(function (props, ref) {
14810
15751
  ...restProps,
14811
15752
  asChild: true,
14812
15753
  children: jsx(Button, {
15754
+ componentId: "codegen_design-system_src_design-system_notification_notification.tsx_224",
14813
15755
  icon: jsx(CloseIcon, {}),
14814
15756
  "aria-label": (_ref4 = closeLabel !== null && closeLabel !== void 0 ? closeLabel : restProps['aria-label']) !== null && _ref4 !== void 0 ? _ref4 : 'Close notification'
14815
15757
  })
@@ -14988,7 +15930,8 @@ const InfoPopover = _ref => {
14988
15930
  popoverProps,
14989
15931
  iconTitle,
14990
15932
  iconProps,
14991
- isKeyboardFocusable = true
15933
+ isKeyboardFocusable = true,
15934
+ ariaLabel = 'More details'
14992
15935
  } = _ref;
14993
15936
  const {
14994
15937
  theme
@@ -15014,6 +15957,7 @@ const InfoPopover = _ref => {
15014
15957
  ,
15015
15958
  tabIndex: isKeyboardFocusable ? 0 : -1,
15016
15959
  onKeyDown: handleKeyDown,
15960
+ "aria-label": ariaLabel,
15017
15961
  children: jsx(InfoCircleOutlined, {
15018
15962
  "aria-hidden": "false",
15019
15963
  title: iconTitle,
@@ -15175,14 +16119,14 @@ function Tag(props) {
15175
16119
  });
15176
16120
  }
15177
16121
 
15178
- function _EMOTION_STRINGIFIED_CSS_ERROR__$4() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
16122
+ function _EMOTION_STRINGIFIED_CSS_ERROR__$3() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
15179
16123
  var _ref2$1 = process.env.NODE_ENV === "production" ? {
15180
16124
  name: "1amee4m",
15181
16125
  styles: "line-height:0"
15182
16126
  } : {
15183
16127
  name: "c77cjr-trigger",
15184
16128
  styles: "line-height:0;label:trigger;",
15185
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$4
16129
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$3
15186
16130
  };
15187
16131
  var _ref3$1 = process.env.NODE_ENV === "production" ? {
15188
16132
  name: "srf7qm",
@@ -15190,7 +16134,7 @@ var _ref3$1 = process.env.NODE_ENV === "production" ? {
15190
16134
  } : {
15191
16135
  name: "qnr75h-trigger",
15192
16136
  styles: "border:none;padding:0;background:transparent;label:trigger;",
15193
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$4
16137
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$3
15194
16138
  };
15195
16139
  const Overflow = _ref => {
15196
16140
  let {
@@ -15456,7 +16400,7 @@ const SegmentedControlGroup = /*#__PURE__*/forwardRef(function SegmentedControlG
15456
16400
  });
15457
16401
  });
15458
16402
 
15459
- function _EMOTION_STRINGIFIED_CSS_ERROR__$3() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
16403
+ function _EMOTION_STRINGIFIED_CSS_ERROR__$2() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
15460
16404
  const DEFAULT_WIDTH = 200;
15461
16405
  const ContentContextDefaults = {
15462
16406
  openPanelId: undefined,
@@ -15538,7 +16482,7 @@ function Content(_ref3) {
15538
16482
  } = _ref3;
15539
16483
  const openAnimation = keyframes`
15540
16484
  from { width: 50px }
15541
- to { width: ${width}px }`;
16485
+ to { width: ${width || DEFAULT_WIDTH}px }`;
15542
16486
  const showAnimation = keyframes`
15543
16487
  from { opacity: 0 }
15544
16488
  80% { opacity: 0 }
@@ -15692,7 +16636,7 @@ var _ref8 = process.env.NODE_ENV === "production" ? {
15692
16636
  } : {
15693
16637
  name: "fs19p8-PanelHeader",
15694
16638
  styles: "display:flex;justify-content:space-between;align-items:center;label:PanelHeader;",
15695
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$3
16639
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
15696
16640
  };
15697
16641
  function PanelHeader(_ref7) {
15698
16642
  let {
@@ -15724,6 +16668,7 @@ function PanelHeader(_ref7) {
15724
16668
  })
15725
16669
  }), contentContext.closable ? jsx("div", {
15726
16670
  children: jsx(Button, {
16671
+ componentId: "codegen_design-system_src_design-system_sidebar_sidebar.tsx_427",
15727
16672
  size: "small",
15728
16673
  icon: jsx(CloseIcon, {}),
15729
16674
  "aria-label": "Close",
@@ -15903,6 +16848,7 @@ const DropdownButton = props => {
15903
16848
  dropdownProps.placement = 'bottomRight';
15904
16849
  }
15905
16850
  const leftButton = jsxs(Button, {
16851
+ componentId: "codegen_design-system_src_design-system_splitbutton_dropdown_dropdownbutton.tsx_148",
15906
16852
  type: type,
15907
16853
  danger: danger,
15908
16854
  disabled: disabled,
@@ -15916,6 +16862,7 @@ const DropdownButton = props => {
15916
16862
  children: [leftButtonIcon && !children ? leftButtonIcon : undefined, children]
15917
16863
  });
15918
16864
  const rightButton = jsx(Button, {
16865
+ componentId: "codegen_design-system_src_design-system_splitbutton_dropdown_dropdownbutton.tsx_166",
15919
16866
  type: type,
15920
16867
  danger: danger,
15921
16868
  disabled: disabled,
@@ -15930,9 +16877,9 @@ const DropdownButton = props => {
15930
16877
  ...dropdownProps,
15931
16878
  overlay: overlay,
15932
16879
  children: rightButtonToRender
15933
- }) : jsxs(Root$4, {
16880
+ }) : jsxs(Root$5, {
15934
16881
  ...dropdownMenuRootProps,
15935
- children: [jsx(Trigger$2, {
16882
+ children: [jsx(Trigger$3, {
15936
16883
  disabled: disabled,
15937
16884
  asChild: true,
15938
16885
  children: rightButtonToRender
@@ -15943,7 +16890,7 @@ const DropdownButton = props => {
15943
16890
  });
15944
16891
  };
15945
16892
 
15946
- function _EMOTION_STRINGIFIED_CSS_ERROR__$2() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
16893
+ function _EMOTION_STRINGIFIED_CSS_ERROR__$1() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
15947
16894
  const BUTTON_HORIZONTAL_PADDING = 12;
15948
16895
  function getSplitButtonEmotionStyles(classNamePrefix, theme) {
15949
16896
  const classDefault = `.${classNamePrefix}-btn`;
@@ -16015,7 +16962,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
16015
16962
  } : {
16016
16963
  name: "1kplxg4-SplitButton",
16017
16964
  styles: "display:inline-flex;position:relative;vertical-align:middle;label:SplitButton;",
16018
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
16965
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$1
16019
16966
  };
16020
16967
  const SplitButton = props => {
16021
16968
  const {
@@ -16050,6 +16997,7 @@ const SplitButton = props => {
16050
16997
  ref: ref,
16051
16998
  css: _ref,
16052
16999
  children: loading ? jsx(Button, {
17000
+ componentId: "codegen_design-system_src_design-system_splitbutton_splitbutton.tsx_163",
16053
17001
  type: type === 'default' ? undefined : type,
16054
17002
  style: {
16055
17003
  width: width,
@@ -16099,7 +17047,7 @@ const Steps = /* #__PURE__ */(() => {
16099
17047
  return Steps;
16100
17048
  })();
16101
17049
 
16102
- function _EMOTION_STRINGIFIED_CSS_ERROR__$1() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
17050
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
16103
17051
  const getTableFilterInputStyles = (theme, defaultWidth) => {
16104
17052
  return /*#__PURE__*/css({
16105
17053
  [theme.responsive.mediaQueries.sm]: {
@@ -16119,7 +17067,7 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
16119
17067
  } : {
16120
17068
  name: "3ktoz7-component",
16121
17069
  styles: "display:flex;width:100%;label:component;",
16122
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$1
17070
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
16123
17071
  };
16124
17072
  var _ref3 = process.env.NODE_ENV === "production" ? {
16125
17073
  name: "82a6rk",
@@ -16127,13 +17075,14 @@ var _ref3 = process.env.NODE_ENV === "production" ? {
16127
17075
  } : {
16128
17076
  name: "18ug1j7-component",
16129
17077
  styles: "flex:1;label:component;",
16130
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$1
17078
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
16131
17079
  };
16132
17080
  const TableFilterInput = /*#__PURE__*/forwardRef(function SearchInput(_ref, ref) {
16133
17081
  let {
16134
17082
  onSubmit,
16135
17083
  showSearchButton,
16136
17084
  className,
17085
+ containerProps,
16137
17086
  searchButtonProps,
16138
17087
  ...inputProps
16139
17088
  } = _ref;
@@ -16158,6 +17107,7 @@ const TableFilterInput = /*#__PURE__*/forwardRef(function SearchInput(_ref, ref)
16158
17107
  ref: ref,
16159
17108
  css: _ref3
16160
17109
  }), jsx(Button, {
17110
+ componentId: "codegen_design-system_src_design-system_tableui_tablefilterinput.tsx_65",
16161
17111
  htmlType: "submit",
16162
17112
  "aria-label": "Search",
16163
17113
  ...searchButtonProps,
@@ -16165,56 +17115,22 @@ const TableFilterInput = /*#__PURE__*/forwardRef(function SearchInput(_ref, ref)
16165
17115
  })]
16166
17116
  });
16167
17117
  }
16168
- const commonProps = {
17118
+ return jsx("div", {
16169
17119
  style: {
16170
17120
  height: theme.general.heightSm
16171
17121
  },
16172
- css: getTableFilterInputStyles(theme, DEFAULT_WIDTH)
16173
- };
16174
- if (onSubmit) {
16175
- return jsx("form", {
16176
- ...commonProps,
17122
+ css: getTableFilterInputStyles(theme, DEFAULT_WIDTH),
17123
+ ...containerProps,
17124
+ children: onSubmit ? jsx("form", {
16177
17125
  onSubmit: e => {
16178
17126
  e.preventDefault();
16179
17127
  onSubmit();
16180
17128
  },
16181
17129
  children: component
16182
- });
16183
- } else {
16184
- return jsx("div", {
16185
- ...commonProps,
16186
- children: component
16187
- });
16188
- }
17130
+ }) : component
17131
+ });
16189
17132
  });
16190
17133
 
16191
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
16192
- const tableFilterLayoutStyles = {
16193
- layout: process.env.NODE_ENV === "production" ? {
16194
- name: "1yb0qmd",
16195
- styles: "display:flex;flex-direction:row;justify-content:space-between;margin-bottom:var(--table-filter-layout-group-margin)"
16196
- } : {
16197
- name: "bmua0k-layout",
16198
- styles: "display:flex;flex-direction:row;justify-content:space-between;margin-bottom:var(--table-filter-layout-group-margin);label:layout;",
16199
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
16200
- },
16201
- filters: process.env.NODE_ENV === "production" ? {
16202
- name: "2pdmyz",
16203
- styles: "display:flex;flex-wrap:wrap;flex-direction:row;align-items:center;gap:var(--table-filter-layout-item-gap);flex:1"
16204
- } : {
16205
- name: "i28ows-filters",
16206
- styles: "display:flex;flex-wrap:wrap;flex-direction:row;align-items:center;gap:var(--table-filter-layout-item-gap);flex:1;label:filters;",
16207
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
16208
- },
16209
- filterActions: process.env.NODE_ENV === "production" ? {
16210
- name: "1ol8kzq",
16211
- styles: "display:flex;gap:var(--table-filter-layout-item-gap);margin-left:var(--table-filter-layout-group-margin)"
16212
- } : {
16213
- name: "bcekwq-filterActions",
16214
- styles: "display:flex;gap:var(--table-filter-layout-item-gap);margin-left:var(--table-filter-layout-group-margin);label:filterActions;",
16215
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
16216
- }
16217
- };
16218
17134
  const TableFilterLayout = /*#__PURE__*/forwardRef(function TableFilterLayout(_ref, ref) {
16219
17135
  let {
16220
17136
  children,
@@ -16223,9 +17139,44 @@ const TableFilterLayout = /*#__PURE__*/forwardRef(function TableFilterLayout(_re
16223
17139
  actions,
16224
17140
  ...rest
16225
17141
  } = _ref;
17142
+ const useReflowWrapStyles = safex('databricks.fe.wexp.enableReflowWrapStyles', false);
16226
17143
  const {
16227
17144
  theme
16228
17145
  } = useDesignSystemTheme();
17146
+ const tableFilterLayoutStyles = {
17147
+ layout: /*#__PURE__*/css({
17148
+ display: 'flex',
17149
+ flexDirection: 'row',
17150
+ justifyContent: 'space-between',
17151
+ marginBottom: 'var(--table-filter-layout-group-margin)',
17152
+ ...(useReflowWrapStyles ? {
17153
+ columnGap: 'var(--table-filter-layout-group-margin)',
17154
+ rowGap: 'var(--table-filter-layout-item-gap)',
17155
+ flexWrap: 'wrap'
17156
+ } : {})
17157
+ }, process.env.NODE_ENV === "production" ? "" : ";label:layout;"),
17158
+ filters: /*#__PURE__*/css({
17159
+ display: 'flex',
17160
+ flexWrap: 'wrap',
17161
+ flexDirection: 'row',
17162
+ alignItems: 'center',
17163
+ gap: 'var(--table-filter-layout-item-gap)',
17164
+ ...(useReflowWrapStyles ? {
17165
+ marginRight: 'var(--table-filter-layout-group-margin)'
17166
+ } : {}),
17167
+ flex: 1
17168
+ }, process.env.NODE_ENV === "production" ? "" : ";label:filters;"),
17169
+ filterActions: /*#__PURE__*/css({
17170
+ display: 'flex',
17171
+ ...(useReflowWrapStyles ? {
17172
+ flexWrap: 'wrap'
17173
+ } : {}),
17174
+ gap: 'var(--table-filter-layout-item-gap)',
17175
+ ...(!useReflowWrapStyles ? {
17176
+ marginLeft: 'var(--table-filter-layout-group-margin)'
17177
+ } : {})
17178
+ }, process.env.NODE_ENV === "production" ? "" : ";label:filterActions;")
17179
+ };
16229
17180
  return jsxs("div", {
16230
17181
  ...rest,
16231
17182
  ref: ref,
@@ -16835,9 +17786,17 @@ function getTreeEmotionStyles(clsPrefix, theme, size, useNewTree) {
16835
17786
  const classTreeList = `.${clsPrefix}-tree-list`;
16836
17787
  const classScrollbar = `.${clsPrefix}-tree-list-scrollbar`;
16837
17788
  const classScrollbarThumb = `.${clsPrefix}-tree-list-scrollbar-thumb`;
17789
+ const classIcon = `.${clsPrefix}-tree-iconEle`;
17790
+ const classAntMotion = `.${clsPrefix}-tree-treenode-motion, .ant-motion-collapse-appear, .ant-motion-collapse-appear-active, .ant-motion-collapse`;
16838
17791
  const NODE_SIZE = sizeMap[size].nodeSize;
16839
17792
  const ICON_FONT_SIZE = useNewTree ? 16 : 24;
16840
17793
  const BORDER_WIDTH = 4;
17794
+ const baselineAligned = {
17795
+ alignSelf: 'baseline',
17796
+ display: 'flex',
17797
+ alignItems: 'center',
17798
+ justifyContent: 'center'
17799
+ };
16841
17800
  const styles = {
16842
17801
  // Basic node
16843
17802
  [classNode]: {
@@ -16967,13 +17926,25 @@ function getTreeEmotionStyles(clsPrefix, theme, size, useNewTree) {
16967
17926
  outlineStyle: 'solid'
16968
17927
  },
16969
17928
  [classCheckbox]: {
16970
- marginTop: 0,
17929
+ marginTop: size === 'default' ? theme.spacing.sm : theme.spacing.xs,
16971
17930
  marginBottom: 0,
16972
- marginRight: theme.spacing.sm
17931
+ marginRight: size === 'default' ? theme.spacing.sm : theme.spacing.xs,
17932
+ ...baselineAligned
16973
17933
  },
16974
17934
  [classScrollbarThumb]: {
16975
17935
  background: chroma(theme.isDarkMode ? '#ffffff' : '#000000').alpha(0.5).hex()
16976
17936
  },
17937
+ [`${classIcon}:has(*)`]: {
17938
+ ...baselineAligned,
17939
+ height: NODE_SIZE,
17940
+ color: theme.colors.textSecondary,
17941
+ marginRight: size === 'default' ? theme.spacing.sm : theme.spacing.xs
17942
+ },
17943
+ // Needed to avoid flickering when has icon and expanding
17944
+ [classAntMotion]: {
17945
+ ...getAnimationCss(theme.options.enableAnimation),
17946
+ visibility: 'hidden'
17947
+ },
16977
17948
  // Vertical line
16978
17949
  ...(useNewTree && {
16979
17950
  [classIndent]: {
@@ -17057,5 +18028,257 @@ const Tree = /*#__PURE__*/forwardRef(function Tree(_ref, ref) {
17057
18028
  });
17058
18029
  });
17059
18030
 
17060
- export { AccessibleContainer, Accordion, AccordionPanel, Alert, AlignCenterIcon$1 as AlignCenterIcon, AlignLeftIcon$1 as AlignLeftIcon, AlignRightIcon$1 as AlignRightIcon, AppIcon$1 as AppIcon, ApplyDesignSystemContextOverrides, ApplyGlobalStyles, ArrowDownIcon$1 as ArrowDownIcon, ArrowInIcon$1 as ArrowInIcon, ArrowLeftIcon$1 as ArrowLeftIcon, ArrowRightIcon$1 as ArrowRightIcon, ArrowUpIcon$1 as ArrowUpIcon, ArrowsUpDownIcon$1 as ArrowsUpDownIcon, AssistantIcon$1 as AssistantIcon, AutoComplete, BadgeCodeIcon$1 as BadgeCodeIcon, BadgeCodeOffIcon$1 as BadgeCodeOffIcon, BarChartIcon$1 as BarChartIcon, BarGroupedIcon$1 as BarGroupedIcon, BarStackedIcon$1 as BarStackedIcon, BarStackedPercentageIcon$1 as BarStackedPercentageIcon, BeakerIcon$1 as BeakerIcon, BinaryIcon$1 as BinaryIcon, BoldIcon$1 as BoldIcon, BookIcon$1 as BookIcon, BookmarkFillIcon$1 as BookmarkFillIcon, BookmarkIcon$1 as BookmarkIcon, BooksIcon$1 as BooksIcon, BracketsCurlyIcon$1 as BracketsCurlyIcon, BracketsSquareIcon$1 as BracketsSquareIcon, BracketsXIcon$1 as BracketsXIcon, BranchIcon$1 as BranchIcon, Breadcrumb, BriefcaseFillIcon$1 as BriefcaseFillIcon, BriefcaseIcon$1 as BriefcaseIcon, Button, CalendarClockIcon$1 as CalendarClockIcon, CalendarEventIcon$1 as CalendarEventIcon, CalendarIcon$1 as CalendarIcon, Card, CaretDownSquareIcon$1 as CaretDownSquareIcon, CaretUpSquareIcon$1 as CaretUpSquareIcon, CatalogCloudIcon$1 as CatalogCloudIcon, CatalogIcon$1 as CatalogIcon, CatalogOffIcon$1 as CatalogOffIcon, ChartLineIcon$1 as ChartLineIcon, CheckCircleBadgeIcon$1 as CheckCircleBadgeIcon, CheckCircleFillIcon$1 as CheckCircleFillIcon, CheckCircleIcon$1 as CheckCircleIcon, CheckIcon, CheckLineIcon$1 as CheckLineIcon, Checkbox, CheckboxIcon$1 as CheckboxIcon, ChecklistIcon$1 as ChecklistIcon, ChevronDoubleDownIcon$1 as ChevronDoubleDownIcon, ChevronDoubleLeftIcon$1 as ChevronDoubleLeftIcon, ChevronDoubleRightIcon$1 as ChevronDoubleRightIcon, ChevronDoubleUpIcon$1 as ChevronDoubleUpIcon, ChevronDownIcon$1 as ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon$1 as ChevronUpIcon, CircleIcon$1 as CircleIcon, ClipboardIcon$1 as ClipboardIcon, ClockIcon$1 as ClockIcon, ClockKeyIcon$1 as ClockKeyIcon, CloseIcon, CloudDownloadIcon$1 as CloudDownloadIcon, CloudIcon$1 as CloudIcon, CloudKeyIcon$1 as CloudKeyIcon, CloudModelIcon$1 as CloudModelIcon, CloudOffIcon$1 as CloudOffIcon, CloudUploadIcon$1 as CloudUploadIcon, CodeIcon$1 as CodeIcon, Col, ColorFillIcon$1 as ColorFillIcon, ColumnIcon$1 as ColumnIcon, ColumnsIcon$1 as ColumnsIcon, ConnectIcon$1 as ConnectIcon, Content, CopyIcon$1 as CopyIcon, CursorPagination, CursorTypeIcon$1 as CursorTypeIcon, DIcon$1 as DIcon, DU_BOIS_ENABLE_ANIMATION_CLASSNAME, DagIcon$1 as DagIcon, DangerFillIcon$1 as DangerFillIcon, DangerIcon, DangerModal, DashIcon$1 as DashIcon, DashboardIcon$1 as DashboardIcon, DataIcon$1 as DataIcon, DatabaseIcon$1 as DatabaseIcon, DecimalIcon$1 as DecimalIcon, DesignSystemAntDConfigProvider, DialogCombobox, DialogComboboxContent, DialogComboboxCountBadge, DialogComboboxCustomButtonTriggerWrapper, EmptyResults as DialogComboboxEmpty, DialogComboboxFooter, DialogComboboxHintRow, DialogComboboxOptionControlledList, DialogComboboxOptionList, DialogComboboxOptionListCheckboxItem, DialogComboboxOptionListSearch, DialogComboboxOptionListSelectItem, DialogComboboxSectionHeader, DialogComboboxSeparator, DialogComboboxTrigger, DotsCircleIcon$1 as DotsCircleIcon, DownloadIcon$1 as DownloadIcon, DragIcon$1 as DragIcon, Drawer, Dropdown, DuboisDatePicker, Empty, ErdIcon$1 as ErdIcon, ExpandLessIcon$1 as ExpandLessIcon, ExpandMoreIcon$1 as ExpandMoreIcon, FileCodeIcon$1 as FileCodeIcon, FileDocumentIcon$1 as FileDocumentIcon, FileIcon$1 as FileIcon, FileImageIcon$1 as FileImageIcon, FileModelIcon$1 as FileModelIcon, FilterIcon$1 as FilterIcon, FloatIcon$1 as FloatIcon, FolderBranchIcon$1 as FolderBranchIcon, FolderCloudFilledIcon$1 as FolderCloudFilledIcon, FolderCloudIcon$1 as FolderCloudIcon, FolderFillIcon$1 as FolderFillIcon, FolderIcon$1 as FolderIcon, FontIcon$1 as FontIcon, ForkIcon$1 as ForkIcon, Form, FormDubois, FormUI, FullscreenExitIcon$1 as FullscreenExitIcon, FullscreenIcon$1 as FullscreenIcon, FunctionIcon$1 as FunctionIcon, GearFillIcon$1 as GearFillIcon, GearIcon$1 as GearIcon, GenericSkeleton, GiftIcon$1 as GiftIcon, GitCommitIcon$1 as GitCommitIcon, GlobeIcon$1 as GlobeIcon, GridDashIcon$1 as GridDashIcon, GridIcon$1 as GridIcon, H1Icon$1 as H1Icon, H2Icon$1 as H2Icon, H3Icon$1 as H3Icon, Header$1 as Header, HistoryIcon$1 as HistoryIcon, HomeIcon$1 as HomeIcon, Icon, ImageIcon$1 as ImageIcon, IndentDecreaseIcon$1 as IndentDecreaseIcon, IndentIncreaseIcon$1 as IndentIncreaseIcon, InfinityIcon$1 as InfinityIcon, InfoFillIcon$1 as InfoFillIcon, InfoIcon, InfoPopover, InfoTooltip, IngestionIcon$1 as IngestionIcon, Input, ItalicIcon$1 as ItalicIcon, KeyIcon$1 as KeyIcon, KeyboardIcon$1 as KeyboardIcon, LayerGraphIcon$1 as LayerGraphIcon, LayerIcon$1 as LayerIcon, Layout, LegacyDatePicker, LegacyPopover, LegacySkeleton, LegacyTable, LettersIcon$1 as LettersIcon, LibrariesIcon$1 as LibrariesIcon, LightningIcon$1 as LightningIcon, LinkIcon$1 as LinkIcon, LinkOffIcon$1 as LinkOffIcon, ListBorderIcon$1 as ListBorderIcon, ListClearIcon$1 as ListClearIcon, ListIcon$1 as ListIcon, LoadingIcon, LoadingState, LockFillIcon$1 as LockFillIcon, LockIcon$1 as LockIcon, LockUnlockedIcon$1 as LockUnlockedIcon, MIcon$1 as MIcon, MailIcon$1 as MailIcon, Menu, MenuIcon$1 as MenuIcon, MinusBoxIcon$1 as MinusBoxIcon, MinusCircleFillIcon$1 as MinusCircleFillIcon, MinusCircleIcon$1 as MinusCircleIcon, Modal, ModelsIcon$1 as ModelsIcon, Nav, NavButton, NoIcon$1 as NoIcon, NotebookIcon$1 as NotebookIcon, Notification, NotificationIcon$1 as NotificationIcon, NotificationOffIcon$1 as NotificationOffIcon, NumbersIcon$1 as NumbersIcon, OfficeIcon$1 as OfficeIcon, OptGroup, Option, Overflow, OverflowIcon$1 as OverflowIcon, PageBottomIcon$1 as PageBottomIcon, PageFirstIcon$1 as PageFirstIcon, PageLastIcon$1 as PageLastIcon, PageTopIcon$1 as PageTopIcon, PageWrapper, Pagination, Panel, PanelBody, PanelHeader, PanelHeaderButtons, PanelHeaderTitle, ParagraphSkeleton, PauseIcon$1 as PauseIcon, PencilIcon$1 as PencilIcon, PinCancelIcon$1 as PinCancelIcon, PinFillIcon$1 as PinFillIcon, PinIcon$1 as PinIcon, PipelineIcon$1 as PipelineIcon, PlayCircleFillIcon$1 as PlayCircleFillIcon, PlayCircleIcon$1 as PlayCircleIcon, PlayIcon$1 as PlayIcon, PlugIcon$1 as PlugIcon, PlusCircleFillIcon$1 as PlusCircleFillIcon, PlusCircleIcon$1 as PlusCircleIcon, PlusIcon$1 as PlusIcon, PlusSquareIcon$1 as PlusSquareIcon, Popover, QueryEditorIcon$1 as QueryEditorIcon, QueryIcon$1 as QueryIcon, QuestionMarkFillIcon$1 as QuestionMarkFillIcon, QuestionMarkIcon$1 as QuestionMarkIcon, QuestionMarkSpeechBubbleIcon$1 as QuestionMarkSpeechBubbleIcon, RHFControlledComponents, ROW_GUTTER_SIZE, Radio, ReaderModeIcon$1 as ReaderModeIcon, RedoIcon$1 as RedoIcon, RefreshIcon$1 as RefreshIcon, RestoreAntDDefaultClsPrefix, RobotIcon$1 as RobotIcon, Row, SaveIcon$1 as SaveIcon, SchoolIcon$1 as SchoolIcon, SearchIcon$1 as SearchIcon, SecurityIcon$1 as SecurityIcon, SegmentedControlButton, SegmentedControlGroup, Select, SelectOptGroup, SelectOption, SelectV2, SelectV2Content, SelectV2Option, SelectV2OptionGroup, SelectV2Trigger, SendIcon$1 as SendIcon, ShareIcon$1 as ShareIcon, Sidebar, SidebarAutoIcon$1 as SidebarAutoIcon, SidebarCollapseIcon$1 as SidebarCollapseIcon, SidebarExpandIcon$1 as SidebarExpandIcon, SidebarIcon$1 as SidebarIcon, SlidersIcon$1 as SlidersIcon, SortAlphabeticalAscendingIcon$1 as SortAlphabeticalAscendingIcon, SortAlphabeticalDescendingIcon$1 as SortAlphabeticalDescendingIcon, SortAlphabeticalLeftIcon$1 as SortAlphabeticalLeftIcon, SortAlphabeticalRightIcon$1 as SortAlphabeticalRightIcon, SortAscendingIcon$1 as SortAscendingIcon, SortDescendingIcon$1 as SortDescendingIcon, SortUnsortedIcon$1 as SortUnsortedIcon, Space, Spacer, SparkleIcon$1 as SparkleIcon, SpeechBubbleIcon$1 as SpeechBubbleIcon, SpeechBubblePlusIcon$1 as SpeechBubblePlusIcon, SpeechBubbleQuestionMarkIcon$1 as SpeechBubbleQuestionMarkIcon, Spinner, SplitButton, StarFillIcon$1 as StarFillIcon, StarIcon$1 as StarIcon, StepIntoIcon$1 as StepIntoIcon, StepOutIcon$1 as StepOutIcon, StepOverIcon$1 as StepOverIcon, Steps, StopCircleFillIcon$1 as StopCircleFillIcon, StopCircleIcon$1 as StopCircleIcon, StopIcon$1 as StopIcon, StorefrontIcon$1 as StorefrontIcon, StreamIcon$1 as StreamIcon, Switch, SyncIcon$1 as SyncIcon, TabPane, Table, TableCell, TableContext, TableFilterInput, TableFilterLayout, TableGlassesIcon$1 as TableGlassesIcon, TableHeader, TableIcon$1 as TableIcon, TableLightningIcon$1 as TableLightningIcon, TableOnlineViewIcon$1 as TableOnlineViewIcon, TableRow, TableRowAction, TableRowActionHeader, TableRowContext, TableRowMenuContainer, TableRowSelectCell, TableSkeleton, TableSkeletonRows, TableStreamIcon$1 as TableStreamIcon, TableVectorIcon$1 as TableVectorIcon, TableViewIcon$1 as TableViewIcon, Tabs, Tag, TargetIcon$1 as TargetIcon, TextBoxIcon$1 as TextBoxIcon, ThumbsDownIcon$1 as ThumbsDownIcon, ThumbsUpIcon$1 as ThumbsUpIcon, TitleSkeleton, ToggleButton, Tooltip, TrashIcon$1 as TrashIcon, Tree, TreeIcon$1 as TreeIcon, TypeaheadComboboxCheckboxItem, TypeaheadComboboxFooter, TypeaheadComboboxInput, TypeaheadComboboxMenu, TypeaheadComboboxMenuItem, TypeaheadComboboxMultiSelectInput, TypeaheadComboboxRoot, TypeaheadComboboxSectionHeader, TypeaheadComboboxSelectedItem, TypeaheadComboboxSeparator, TypeaheadComboboxToggleButton, Typography, UnderlineIcon$1 as UnderlineIcon, UndoIcon$1 as UndoIcon, UploadIcon$1 as UploadIcon, UsbIcon$1 as UsbIcon, UserBadgeIcon$1 as UserBadgeIcon, UserCircleIcon$1 as UserCircleIcon, UserGroupIcon$1 as UserGroupIcon, UserIcon$1 as UserIcon, VectorTableIcon$1 as VectorTableIcon, VisibleIcon$1 as VisibleIcon, VisibleOffIcon$1 as VisibleOffIcon, WarningFillIcon$1 as WarningFillIcon, WarningIcon, WorkflowsIcon$1 as WorkflowsIcon, WorkspacesIcon$1 as WorkspacesIcon, XCircleFillIcon$1 as XCircleFillIcon, XCircleIcon$1 as XCircleIcon, ZoomInIcon$1 as ZoomInIcon, ZoomMarqueeSelection$1 as ZoomMarqueeSelection, ZoomOutIcon$1 as ZoomOutIcon, __INTERNAL_DO_NOT_USE__FormItem, __INTERNAL_DO_NOT_USE__Group, __INTERNAL_DO_NOT_USE__HorizontalGroup, __INTERNAL_DO_NOT_USE__VerticalGroup, dialogComboboxLookAheadKeyDown, findClosestOptionSibling, findHighlightedOption, getAnimationCss, getComboboxOptionItemWrapperStyles, getContentOptions, getDarkModePortalStyles, getDialogComboboxOptionLabelWidth, getGlobalStyles, getKeyboardNavigationFunctions, getPaginationEmotionStyles, getRadioStyles, getShadowScrollStyles, getTabEmotionStyles, getValidationStateColor, getWrapperStyle, highlightFirstNonDisabledOption, highlightOption, importantify, isOptionDisabled, resetTabIndexToFocusedElement, useComboboxState, useDesignSystemFlags, useDesignSystemTheme, useLegacyNotification, useMultipleSelectionState, useThemedStyles, useTypeaheadComboboxContext, visuallyHidden, withNotifications };
18031
+ function WizardFooter(props) {
18032
+ const {
18033
+ theme
18034
+ } = useDesignSystemTheme();
18035
+ return jsx("div", {
18036
+ css: /*#__PURE__*/css({
18037
+ display: 'flex',
18038
+ flexDirection: 'row',
18039
+ justifyContent: 'flex-end',
18040
+ columnGap: theme.spacing.sm,
18041
+ paddingTop: theme.spacing.md,
18042
+ borderTop: `1px solid ${theme.colors.border}`
18043
+ }, process.env.NODE_ENV === "production" ? "" : ";label:WizardFooter;"),
18044
+ children: getWizardFooterButtons(props)
18045
+ });
18046
+ }
18047
+ function getWizardFooterButtons(_ref) {
18048
+ let {
18049
+ goToNextStepOrDone,
18050
+ isLastStep,
18051
+ currentStepIndex,
18052
+ goToPreviousStep,
18053
+ busyValidatingNextStep,
18054
+ nextButtonDisabled,
18055
+ nextButtonLoading,
18056
+ nextButtonContentOverride,
18057
+ previousButtonContentOverride,
18058
+ previousStepButtonHidden,
18059
+ previousButtonDisabled,
18060
+ previousButtonLoading,
18061
+ cancelButtonContent,
18062
+ cancelStepButtonHidden,
18063
+ nextButtonContent,
18064
+ previousButtonContent,
18065
+ doneButtonContent,
18066
+ extraFooterButtons,
18067
+ onCancel
18068
+ } = _ref;
18069
+ return _compact([!cancelStepButtonHidden && jsx(Button, {
18070
+ onClick: onCancel,
18071
+ type: "tertiary",
18072
+ componentId: "codegen_dubois_src_wizard_wizardfooter_cancel",
18073
+ children: cancelButtonContent
18074
+ }, "cancel"), extraFooterButtons && extraFooterButtons.map((buttonProps, index) => createElement(Button, {
18075
+ ...buttonProps,
18076
+ type: undefined,
18077
+ key: `extra-${index}`
18078
+ })), currentStepIndex > 0 && !previousStepButtonHidden && jsx(Button, {
18079
+ onClick: goToPreviousStep,
18080
+ disabled: previousButtonDisabled,
18081
+ loading: previousButtonLoading,
18082
+ componentId: "codegen_dubois_src_wizard_wizardfooter_previous",
18083
+ children: previousButtonContentOverride ? previousButtonContentOverride : previousButtonContent
18084
+ }, "previous"), jsx(Button, {
18085
+ onClick: goToNextStepOrDone,
18086
+ disabled: nextButtonDisabled,
18087
+ loading: nextButtonLoading || busyValidatingNextStep,
18088
+ type: "primary",
18089
+ componentId: "codegen_dubois_src_wizard_wizardfooter_next",
18090
+ children: nextButtonContentOverride ? nextButtonContentOverride : isLastStep ? doneButtonContent : nextButtonContent
18091
+ }, "next")]);
18092
+ }
18093
+
18094
+ function WizardStepsContent(_ref) {
18095
+ let {
18096
+ steps: wizardSteps,
18097
+ currentStepIndex,
18098
+ localizeStepNumber
18099
+ } = _ref;
18100
+ const {
18101
+ theme
18102
+ } = useDesignSystemTheme();
18103
+ const stepperSteps = useMemo(() => wizardSteps.map(wizardStep => _pick(wizardStep, ['title', 'description', 'status'])), [wizardSteps]);
18104
+ return jsxs(Fragment, {
18105
+ children: [jsx(Stepper, {
18106
+ currentStepIndex: currentStepIndex,
18107
+ direction: "horizontal",
18108
+ localizeStepNumber: localizeStepNumber,
18109
+ steps: stepperSteps,
18110
+ responsive: false
18111
+ }), jsx("div", {
18112
+ css: /*#__PURE__*/css({
18113
+ marginTop: theme.spacing.md
18114
+ }, process.env.NODE_ENV === "production" ? "" : ";label:WizardStepsContent;"),
18115
+ children: wizardSteps[currentStepIndex].content
18116
+ })]
18117
+ });
18118
+ }
18119
+
18120
+ function useWizardCurrentStep(_ref) {
18121
+ let {
18122
+ initialStep,
18123
+ totalSteps,
18124
+ onValidateStepChange,
18125
+ onStepChanged
18126
+ } = _ref;
18127
+ const [busyValidatingNextStep, setBusyValidatingNextStep] = useState(false);
18128
+ const [currentStepIndex, setCurrentStepIndex] = useState(initialStep !== null && initialStep !== void 0 ? initialStep : 0);
18129
+ const isLastStep = useMemo(() => currentStepIndex === totalSteps - 1, [currentStepIndex, totalSteps]);
18130
+ const onStepsChange = useCallback(async function (step) {
18131
+ let completed = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
18132
+ if (!completed && step === currentStepIndex) return;
18133
+ setCurrentStepIndex(step);
18134
+ onStepChanged({
18135
+ step,
18136
+ completed
18137
+ });
18138
+ }, [currentStepIndex, onStepChanged]);
18139
+ const goToNextStepOrDone = useCallback(async () => {
18140
+ if (onValidateStepChange) {
18141
+ setBusyValidatingNextStep(true);
18142
+ try {
18143
+ const approvedStepChange = await onValidateStepChange(currentStepIndex);
18144
+ if (!approvedStepChange) {
18145
+ return;
18146
+ }
18147
+ } finally {
18148
+ setBusyValidatingNextStep(false);
18149
+ }
18150
+ }
18151
+ onStepsChange(Math.min(currentStepIndex + 1, totalSteps - 1), isLastStep);
18152
+ }, [currentStepIndex, isLastStep, onStepsChange, onValidateStepChange, totalSteps]);
18153
+ const goToPreviousStep = useCallback(() => {
18154
+ if (currentStepIndex > 0) {
18155
+ onStepsChange(currentStepIndex - 1);
18156
+ }
18157
+ }, [currentStepIndex, onStepsChange]);
18158
+ const goToStep = useCallback(step => {
18159
+ if (step > -1 && step < totalSteps) {
18160
+ onStepsChange(step);
18161
+ }
18162
+ }, [onStepsChange, totalSteps]);
18163
+ return {
18164
+ currentStepIndex,
18165
+ busyValidatingNextStep,
18166
+ isLastStep,
18167
+ onStepsChange,
18168
+ goToNextStepOrDone,
18169
+ goToPreviousStep,
18170
+ goToStep
18171
+ };
18172
+ }
18173
+
18174
+ function Wizard(_ref) {
18175
+ let {
18176
+ steps,
18177
+ onStepChanged,
18178
+ onValidateStepChange,
18179
+ initialStep,
18180
+ ...props
18181
+ } = _ref;
18182
+ const currentStepProps = useWizardCurrentStep({
18183
+ initialStep,
18184
+ totalSteps: steps.length,
18185
+ onStepChanged,
18186
+ onValidateStepChange
18187
+ });
18188
+ return jsx(WizardControlled, {
18189
+ ...currentStepProps,
18190
+ initialStep: initialStep,
18191
+ steps: steps,
18192
+ onStepChanged: onStepChanged,
18193
+ ...props
18194
+ });
18195
+ }
18196
+ function WizardControlled(_ref2) {
18197
+ let {
18198
+ initialStep = 0,
18199
+ steps,
18200
+ width = '100%',
18201
+ currentStepIndex,
18202
+ localizeStepNumber,
18203
+ onStepsChange,
18204
+ isLastStep,
18205
+ ...footerProps
18206
+ } = _ref2;
18207
+ if (steps.length === 0 || !_isUndefined(initialStep) && (initialStep < 0 || initialStep >= steps.length)) {
18208
+ return null;
18209
+ }
18210
+ return jsxs("div", {
18211
+ css: /*#__PURE__*/css({
18212
+ width,
18213
+ display: 'flex',
18214
+ flexDirection: 'column',
18215
+ justifyContent: 'flex-start'
18216
+ }, process.env.NODE_ENV === "production" ? "" : ";label:WizardControlled;"),
18217
+ children: [jsx(WizardStepsContent, {
18218
+ steps: steps,
18219
+ currentStepIndex: currentStepIndex,
18220
+ localizeStepNumber: localizeStepNumber
18221
+ }), jsx(Spacer, {
18222
+ size: "lg"
18223
+ }), jsx(WizardFooter, {
18224
+ currentStepIndex: currentStepIndex,
18225
+ isLastStep: isLastStep,
18226
+ ...steps[currentStepIndex],
18227
+ ...footerProps
18228
+ })]
18229
+ });
18230
+ }
18231
+
18232
+ function WizardModal(_ref) {
18233
+ let {
18234
+ onStepChanged,
18235
+ onCancel,
18236
+ initialStep,
18237
+ steps,
18238
+ onModalClose,
18239
+ localizeStepNumber,
18240
+ cancelButtonContent,
18241
+ nextButtonContent,
18242
+ previousButtonContent,
18243
+ doneButtonContent,
18244
+ ...modalProps
18245
+ } = _ref;
18246
+ const {
18247
+ onStepsChange,
18248
+ currentStepIndex,
18249
+ isLastStep,
18250
+ ...footerActions
18251
+ } = useWizardCurrentStep({
18252
+ initialStep,
18253
+ totalSteps: steps.length,
18254
+ onStepChanged
18255
+ });
18256
+ if (steps.length === 0 || !_isUndefined(initialStep) && (initialStep < 0 || initialStep >= steps.length)) {
18257
+ return null;
18258
+ }
18259
+ const footerButtons = getWizardFooterButtons({
18260
+ onCancel,
18261
+ isLastStep,
18262
+ currentStepIndex,
18263
+ doneButtonContent,
18264
+ previousButtonContent,
18265
+ nextButtonContent,
18266
+ cancelButtonContent,
18267
+ ...footerActions,
18268
+ ...steps[currentStepIndex]
18269
+ });
18270
+ return jsx(Modal, {
18271
+ ...modalProps,
18272
+ onCancel: onModalClose,
18273
+ size: "wide",
18274
+ footer: footerButtons,
18275
+ children: jsx(WizardStepsContent, {
18276
+ steps: steps,
18277
+ currentStepIndex: currentStepIndex,
18278
+ localizeStepNumber: localizeStepNumber
18279
+ })
18280
+ });
18281
+ }
18282
+
18283
+ export { AccessibleContainer, Accordion, AccordionPanel, Alert, AlignCenterIcon$1 as AlignCenterIcon, AlignLeftIcon$1 as AlignLeftIcon, AlignRightIcon$1 as AlignRightIcon, AppIcon$1 as AppIcon, ApplyDesignSystemContextOverrides, ApplyGlobalStyles, ArrowDownIcon$1 as ArrowDownIcon, ArrowInIcon$1 as ArrowInIcon, ArrowLeftIcon$1 as ArrowLeftIcon, ArrowRightIcon$1 as ArrowRightIcon, ArrowUpIcon$1 as ArrowUpIcon, ArrowsUpDownIcon$1 as ArrowsUpDownIcon, AssistantIcon$1 as AssistantIcon, AutoComplete, BadgeCodeIcon$1 as BadgeCodeIcon, BadgeCodeOffIcon$1 as BadgeCodeOffIcon, BarChartIcon$1 as BarChartIcon, BarGroupedIcon$1 as BarGroupedIcon, BarStackedIcon$1 as BarStackedIcon, BarStackedPercentageIcon$1 as BarStackedPercentageIcon, BeakerIcon$1 as BeakerIcon, BinaryIcon$1 as BinaryIcon, BoldIcon$1 as BoldIcon, BookIcon$1 as BookIcon, BookmarkFillIcon$1 as BookmarkFillIcon, BookmarkIcon$1 as BookmarkIcon, BooksIcon$1 as BooksIcon, BracketsCurlyIcon$1 as BracketsCurlyIcon, BracketsSquareIcon$1 as BracketsSquareIcon, BracketsXIcon$1 as BracketsXIcon, BranchIcon$1 as BranchIcon, Breadcrumb, BriefcaseFillIcon$1 as BriefcaseFillIcon, BriefcaseIcon$1 as BriefcaseIcon, Button, CalendarClockIcon$1 as CalendarClockIcon, CalendarEventIcon$1 as CalendarEventIcon, CalendarIcon$1 as CalendarIcon, Card, CaretDownSquareIcon$1 as CaretDownSquareIcon, CaretUpSquareIcon$1 as CaretUpSquareIcon, CatalogCloudIcon$1 as CatalogCloudIcon, CatalogIcon$1 as CatalogIcon, CatalogOffIcon$1 as CatalogOffIcon, ChartLineIcon$1 as ChartLineIcon, CheckCircleBadgeIcon$1 as CheckCircleBadgeIcon, CheckCircleFillIcon$1 as CheckCircleFillIcon, CheckCircleIcon$1 as CheckCircleIcon, CheckIcon, CheckLineIcon$1 as CheckLineIcon, Checkbox, CheckboxIcon$1 as CheckboxIcon, ChecklistIcon$1 as ChecklistIcon, ChevronDoubleDownIcon$1 as ChevronDoubleDownIcon, ChevronDoubleLeftIcon$1 as ChevronDoubleLeftIcon, ChevronDoubleRightIcon$1 as ChevronDoubleRightIcon, ChevronDoubleUpIcon$1 as ChevronDoubleUpIcon, ChevronDownIcon$1 as ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon$1 as ChevronUpIcon, CircleIcon$1 as CircleIcon, ClipboardIcon$1 as ClipboardIcon, ClockIcon$1 as ClockIcon, ClockKeyIcon$1 as ClockKeyIcon, CloseIcon, CloudDownloadIcon$1 as CloudDownloadIcon, CloudIcon$1 as CloudIcon, CloudKeyIcon$1 as CloudKeyIcon, CloudModelIcon$1 as CloudModelIcon, CloudOffIcon$1 as CloudOffIcon, CloudUploadIcon$1 as CloudUploadIcon, CodeIcon$1 as CodeIcon, Col, ColorFillIcon$1 as ColorFillIcon, ColumnIcon$1 as ColumnIcon, ColumnsIcon$1 as ColumnsIcon, ConnectIcon$1 as ConnectIcon, Content, ContextMenu$1 as ContextMenu, CopyIcon$1 as CopyIcon, CursorPagination, CursorTypeIcon$1 as CursorTypeIcon, DIcon$1 as DIcon, DU_BOIS_ENABLE_ANIMATION_CLASSNAME, DagIcon$1 as DagIcon, DangerFillIcon$1 as DangerFillIcon, DangerIcon, DangerModal, DashIcon$1 as DashIcon, DashboardIcon$1 as DashboardIcon, DataIcon$1 as DataIcon, DatabaseIcon$1 as DatabaseIcon, DecimalIcon$1 as DecimalIcon, DesignSystemAntDConfigProvider, DialogCombobox, DialogComboboxContent, DialogComboboxCountBadge, DialogComboboxCustomButtonTriggerWrapper, EmptyResults as DialogComboboxEmpty, DialogComboboxFooter, DialogComboboxHintRow, DialogComboboxOptionControlledList, DialogComboboxOptionList, DialogComboboxOptionListCheckboxItem, DialogComboboxOptionListSearch, DialogComboboxOptionListSelectItem, DialogComboboxSectionHeader, DialogComboboxSeparator, DialogComboboxTrigger, DotsCircleIcon$1 as DotsCircleIcon, DownloadIcon$1 as DownloadIcon, DragIcon$1 as DragIcon, Drawer, Dropdown, DropdownMenu, DuboisDatePicker, Empty, ErdIcon$1 as ErdIcon, ExpandLessIcon$1 as ExpandLessIcon, ExpandMoreIcon$1 as ExpandMoreIcon, FileCodeIcon$1 as FileCodeIcon, FileDocumentIcon$1 as FileDocumentIcon, FileIcon$1 as FileIcon, FileImageIcon$1 as FileImageIcon, FileModelIcon$1 as FileModelIcon, FilterIcon$1 as FilterIcon, FloatIcon$1 as FloatIcon, FolderBranchIcon$1 as FolderBranchIcon, FolderCloudFilledIcon$1 as FolderCloudFilledIcon, FolderCloudIcon$1 as FolderCloudIcon, FolderFillIcon$1 as FolderFillIcon, FolderIcon$1 as FolderIcon, FontIcon$1 as FontIcon, ForkIcon$1 as ForkIcon, Form, FormDubois, FormUI, FullscreenExitIcon$1 as FullscreenExitIcon, FullscreenIcon$1 as FullscreenIcon, FunctionIcon$1 as FunctionIcon, GearFillIcon$1 as GearFillIcon, GearIcon$1 as GearIcon, GenericSkeleton, GiftIcon$1 as GiftIcon, GitCommitIcon$1 as GitCommitIcon, GlobeIcon$1 as GlobeIcon, GridDashIcon$1 as GridDashIcon, GridIcon$1 as GridIcon, H1Icon$1 as H1Icon, H2Icon$1 as H2Icon, H3Icon$1 as H3Icon, Header$1 as Header, HistoryIcon$1 as HistoryIcon, HomeIcon$1 as HomeIcon, Icon, ImageIcon$1 as ImageIcon, IndentDecreaseIcon$1 as IndentDecreaseIcon, IndentIncreaseIcon$1 as IndentIncreaseIcon, InfinityIcon$1 as InfinityIcon, InfoFillIcon$1 as InfoFillIcon, InfoIcon$1 as InfoIcon, InfoPopover, InfoTooltip, IngestionIcon$1 as IngestionIcon, Input, ItalicIcon$1 as ItalicIcon, KeyIcon$1 as KeyIcon, KeyboardIcon$1 as KeyboardIcon, LayerGraphIcon$1 as LayerGraphIcon, LayerIcon$1 as LayerIcon, Layout, LegacyDatePicker, LegacyPopover, LegacySkeleton, LegacyTable, LettersIcon$1 as LettersIcon, LibrariesIcon$1 as LibrariesIcon, LightningIcon$1 as LightningIcon, LinkIcon$1 as LinkIcon, LinkOffIcon$1 as LinkOffIcon, ListBorderIcon$1 as ListBorderIcon, ListClearIcon$1 as ListClearIcon, ListIcon$1 as ListIcon, LoadingIcon, LoadingState, LockFillIcon$1 as LockFillIcon, LockIcon$1 as LockIcon, LockUnlockedIcon$1 as LockUnlockedIcon, MIcon$1 as MIcon, MailIcon$1 as MailIcon, Menu, MenuIcon$1 as MenuIcon, MinusBoxIcon$1 as MinusBoxIcon, MinusCircleFillIcon$1 as MinusCircleFillIcon, MinusCircleIcon$1 as MinusCircleIcon, Modal, ModelsIcon$1 as ModelsIcon, Nav, NavButton, NoIcon$1 as NoIcon, NotebookIcon$1 as NotebookIcon, Notification, NotificationIcon$1 as NotificationIcon, NotificationOffIcon$1 as NotificationOffIcon, NumbersIcon$1 as NumbersIcon, OfficeIcon$1 as OfficeIcon, OptGroup, Option, Overflow, OverflowIcon$1 as OverflowIcon, PageBottomIcon$1 as PageBottomIcon, PageFirstIcon$1 as PageFirstIcon, PageLastIcon$1 as PageLastIcon, PageTopIcon$1 as PageTopIcon, PageWrapper, Pagination, Panel, PanelBody, PanelHeader, PanelHeaderButtons, PanelHeaderTitle, ParagraphSkeleton, PauseIcon$1 as PauseIcon, PencilIcon$1 as PencilIcon, PinCancelIcon$1 as PinCancelIcon, PinFillIcon$1 as PinFillIcon, PinIcon$1 as PinIcon, PipelineIcon$1 as PipelineIcon, PlayCircleFillIcon$1 as PlayCircleFillIcon, PlayCircleIcon$1 as PlayCircleIcon, PlayIcon$1 as PlayIcon, PlugIcon$1 as PlugIcon, PlusCircleFillIcon$1 as PlusCircleFillIcon, PlusCircleIcon$1 as PlusCircleIcon, PlusIcon$1 as PlusIcon, PlusSquareIcon$1 as PlusSquareIcon, Popover, QueryEditorIcon$1 as QueryEditorIcon, QueryIcon$1 as QueryIcon, QuestionMarkFillIcon$1 as QuestionMarkFillIcon, QuestionMarkIcon$1 as QuestionMarkIcon, QuestionMarkSpeechBubbleIcon$1 as QuestionMarkSpeechBubbleIcon, RHFControlledComponents, ROW_GUTTER_SIZE, Radio, ReaderModeIcon$1 as ReaderModeIcon, RedoIcon$1 as RedoIcon, RefreshIcon$1 as RefreshIcon, RestoreAntDDefaultClsPrefix, RobotIcon$1 as RobotIcon, Row, SaveIcon$1 as SaveIcon, SchoolIcon$1 as SchoolIcon, SearchIcon$1 as SearchIcon, SecurityIcon$1 as SecurityIcon, SegmentedControlButton, SegmentedControlGroup, Select, SelectOptGroup, SelectOption, SelectV2, SelectV2Content, SelectV2Option, SelectV2OptionGroup, SelectV2Trigger, SendIcon$1 as SendIcon, ShareIcon$1 as ShareIcon, Sidebar, SidebarAutoIcon$1 as SidebarAutoIcon, SidebarCollapseIcon$1 as SidebarCollapseIcon, SidebarExpandIcon$1 as SidebarExpandIcon, SidebarIcon$1 as SidebarIcon, SlidersIcon$1 as SlidersIcon, SortAlphabeticalAscendingIcon$1 as SortAlphabeticalAscendingIcon, SortAlphabeticalDescendingIcon$1 as SortAlphabeticalDescendingIcon, SortAlphabeticalLeftIcon$1 as SortAlphabeticalLeftIcon, SortAlphabeticalRightIcon$1 as SortAlphabeticalRightIcon, SortAscendingIcon$1 as SortAscendingIcon, SortDescendingIcon$1 as SortDescendingIcon, SortUnsortedIcon$1 as SortUnsortedIcon, Space, Spacer, SparkleIcon$1 as SparkleIcon, SpeechBubbleIcon$1 as SpeechBubbleIcon, SpeechBubblePlusIcon$1 as SpeechBubblePlusIcon, SpeechBubbleQuestionMarkIcon$1 as SpeechBubbleQuestionMarkIcon, Spinner, SplitButton, StarFillIcon$1 as StarFillIcon, StarIcon$1 as StarIcon, StepIntoIcon$1 as StepIntoIcon, StepOutIcon$1 as StepOutIcon, StepOverIcon$1 as StepOverIcon, Steps, StopCircleFillIcon$1 as StopCircleFillIcon, StopCircleIcon$1 as StopCircleIcon, StopIcon$1 as StopIcon, StorefrontIcon$1 as StorefrontIcon, StreamIcon$1 as StreamIcon, Switch, SyncIcon$1 as SyncIcon, TabPane, Table, TableCell, TableContext, TableFilterInput, TableFilterLayout, TableGlassesIcon$1 as TableGlassesIcon, TableHeader, TableIcon$1 as TableIcon, TableLightningIcon$1 as TableLightningIcon, TableOnlineViewIcon$1 as TableOnlineViewIcon, TableRow, TableRowAction, TableRowActionHeader, TableRowContext, TableRowMenuContainer, TableRowSelectCell, TableSkeleton, TableSkeletonRows, TableStreamIcon$1 as TableStreamIcon, TableVectorIcon$1 as TableVectorIcon, TableViewIcon$1 as TableViewIcon, Tabs, Tag, TargetIcon$1 as TargetIcon, TextBoxIcon$1 as TextBoxIcon, ThumbsDownIcon$1 as ThumbsDownIcon, ThumbsUpIcon$1 as ThumbsUpIcon, TitleSkeleton, ToggleButton, Tooltip, TrashIcon$1 as TrashIcon, Tree, TreeIcon$1 as TreeIcon, TypeaheadComboboxAddButton, TypeaheadComboboxCheckboxItem, TypeaheadComboboxFooter, TypeaheadComboboxInput, TypeaheadComboboxMenu, TypeaheadComboboxMenuItem, TypeaheadComboboxMultiSelectInput, TypeaheadComboboxRoot, TypeaheadComboboxSectionHeader, TypeaheadComboboxSelectedItem, TypeaheadComboboxSeparator, TypeaheadComboboxToggleButton, Typography, UnderlineIcon$1 as UnderlineIcon, UndoIcon$1 as UndoIcon, UploadIcon$1 as UploadIcon, UsbIcon$1 as UsbIcon, UserBadgeIcon$1 as UserBadgeIcon, UserCircleIcon$1 as UserCircleIcon, UserGroupIcon$1 as UserGroupIcon, UserIcon$1 as UserIcon, VectorTableIcon$1 as VectorTableIcon, VisibleIcon$1 as VisibleIcon, VisibleOffIcon$1 as VisibleOffIcon, WarningFillIcon$1 as WarningFillIcon, WarningIcon, Wizard, WizardControlled, WizardModal, WorkflowsIcon$1 as WorkflowsIcon, WorkspacesIcon$1 as WorkspacesIcon, XCircleFillIcon$1 as XCircleFillIcon, XCircleIcon$1 as XCircleIcon, ZoomInIcon$1 as ZoomInIcon, ZoomMarqueeSelection$1 as ZoomMarqueeSelection, ZoomOutIcon$1 as ZoomOutIcon, __INTERNAL_DO_NOT_USE__FormItem, __INTERNAL_DO_NOT_USE__Group, __INTERNAL_DO_NOT_USE__HorizontalGroup, __INTERNAL_DO_NOT_USE__VerticalGroup, dialogComboboxLookAheadKeyDown, findClosestOptionSibling, findHighlightedOption, getAnimationCss, getComboboxOptionItemWrapperStyles, getComboboxOptionLabelStyles, getContentOptions, getDarkModePortalStyles, getDialogComboboxOptionLabelWidth, getGlobalStyles, getKeyboardNavigationFunctions, getPaginationEmotionStyles, getRadioStyles, getShadowScrollStyles, getTabEmotionStyles, getValidationStateColor, getWrapperStyle, highlightFirstNonDisabledOption, highlightOption, importantify, isOptionDisabled, resetTabIndexToFocusedElement, useComboboxState, useDesignSystemFlags, useDesignSystemTheme, useLegacyNotification, useMultipleSelectionState, useThemedStyles, useTypeaheadComboboxContext, useWizardCurrentStep, visuallyHidden, withNotifications };
17061
18284
  //# sourceMappingURL=index.js.map