@databricks/design-system 1.12.12 → 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 (174) hide show
  1. package/dist/{DropdownMenu-06a1051f.js → Stepper-839336b1.js} +951 -873
  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 +13 -1
  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 +45 -0
  13. package/dist/design-system/DesignSystemEventProvider/DesignSystemEventProvider.d.ts.map +1 -0
  14. package/dist/design-system/DesignSystemEventProvider/index.d.ts +2 -0
  15. package/dist/design-system/DesignSystemEventProvider/index.d.ts.map +1 -0
  16. package/dist/design-system/DialogCombobox/DialogComboboxAddButton.d.ts +1 -1
  17. package/dist/design-system/DialogCombobox/DialogComboboxAddButton.d.ts.map +1 -1
  18. package/dist/design-system/DialogCombobox/DialogComboboxContent.d.ts.map +1 -1
  19. package/dist/design-system/DialogCombobox/DialogComboboxHintRow.d.ts.map +1 -1
  20. package/dist/design-system/DialogCombobox/DialogComboboxOptionListCheckboxItem.d.ts.map +1 -1
  21. package/dist/design-system/DialogCombobox/DialogComboboxOptionListSearch.d.ts +9 -5
  22. package/dist/design-system/DialogCombobox/DialogComboboxOptionListSearch.d.ts.map +1 -1
  23. package/dist/design-system/DialogCombobox/DialogComboboxOptionListSelectItem.d.ts +9 -0
  24. package/dist/design-system/DialogCombobox/DialogComboboxOptionListSelectItem.d.ts.map +1 -1
  25. package/dist/design-system/DialogCombobox/DialogComboboxTrigger.d.ts +7 -0
  26. package/dist/design-system/DialogCombobox/DialogComboboxTrigger.d.ts.map +1 -1
  27. package/dist/design-system/Drawer/Drawer.d.ts.map +1 -1
  28. package/dist/design-system/DropdownMenu/DropdownMenu.d.ts +1 -2
  29. package/dist/design-system/DropdownMenu/DropdownMenu.d.ts.map +1 -1
  30. package/dist/design-system/FormV2/RHFAdapters.d.ts +7 -1
  31. package/dist/design-system/FormV2/RHFAdapters.d.ts.map +1 -1
  32. package/dist/design-system/Header/Header.d.ts.map +1 -1
  33. package/dist/design-system/Icon/Icon.d.ts +1 -1
  34. package/dist/design-system/Icon/Icon.d.ts.map +1 -1
  35. package/dist/design-system/Icon/__generated/icons/BarStackedPercentageIcon.d.ts +5 -0
  36. package/dist/design-system/Icon/__generated/icons/BarStackedPercentageIcon.d.ts.map +1 -0
  37. package/dist/design-system/Icon/__generated/icons/ErdIcon.d.ts +5 -0
  38. package/dist/design-system/Icon/__generated/icons/ErdIcon.d.ts.map +1 -0
  39. package/dist/design-system/Icon/__generated/icons/ListClearIcon.d.ts +5 -0
  40. package/dist/design-system/Icon/__generated/icons/ListClearIcon.d.ts.map +1 -0
  41. package/dist/design-system/Icon/__generated/icons/PauseIcon.d.ts +5 -0
  42. package/dist/design-system/Icon/__generated/icons/PauseIcon.d.ts.map +1 -0
  43. package/dist/design-system/Icon/__generated/icons/SparkleIcon.d.ts +5 -0
  44. package/dist/design-system/Icon/__generated/icons/SparkleIcon.d.ts.map +1 -0
  45. package/dist/design-system/Icon/__generated/icons/StepIntoIcon.d.ts +5 -0
  46. package/dist/design-system/Icon/__generated/icons/StepIntoIcon.d.ts.map +1 -0
  47. package/dist/design-system/Icon/__generated/icons/StepOutIcon.d.ts +5 -0
  48. package/dist/design-system/Icon/__generated/icons/StepOutIcon.d.ts.map +1 -0
  49. package/dist/design-system/Icon/__generated/icons/StepOverIcon.d.ts +5 -0
  50. package/dist/design-system/Icon/__generated/icons/StepOverIcon.d.ts.map +1 -0
  51. package/dist/design-system/Icon/__generated/icons/TableOnlineViewIcon.d.ts +5 -0
  52. package/dist/design-system/Icon/__generated/icons/TableOnlineViewIcon.d.ts.map +1 -0
  53. package/dist/design-system/Icon/__generated/icons/index.d.ts +9 -0
  54. package/dist/design-system/Icon/__generated/icons/index.d.ts.map +1 -1
  55. package/dist/design-system/Input/Input.d.ts +9 -1
  56. package/dist/design-system/Input/Input.d.ts.map +1 -1
  57. package/dist/design-system/Input/index.d.ts +2 -1
  58. package/dist/design-system/Input/index.d.ts.map +1 -1
  59. package/dist/design-system/Label/Label.d.ts +1 -0
  60. package/dist/design-system/Label/Label.d.ts.map +1 -1
  61. package/dist/design-system/Modal/Modal.d.ts +2 -2
  62. package/dist/design-system/Modal/Modal.d.ts.map +1 -1
  63. package/dist/design-system/Notification/Notification.d.ts.map +1 -1
  64. package/dist/design-system/Pagination/index.d.ts +9 -1
  65. package/dist/design-system/Pagination/index.d.ts.map +1 -1
  66. package/dist/design-system/Popover/InfoPopover.d.ts +2 -1
  67. package/dist/design-system/Popover/InfoPopover.d.ts.map +1 -1
  68. package/dist/design-system/SegmentedControl/SegmentedControl.d.ts +1 -0
  69. package/dist/design-system/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  70. package/dist/design-system/Select/Select.d.ts.map +1 -1
  71. package/dist/design-system/Sidebar/Sidebar.d.ts.map +1 -1
  72. package/dist/design-system/SplitButton/Dropdown/DropdownButton.d.ts.map +1 -1
  73. package/dist/design-system/SplitButton/SplitButton.d.ts.map +1 -1
  74. package/dist/design-system/Steps/Steps.d.ts +1 -2
  75. package/dist/design-system/Steps/Steps.d.ts.map +1 -1
  76. package/dist/design-system/Switch/Switch.d.ts.map +1 -1
  77. package/dist/design-system/TableUI/Table.d.ts.map +1 -1
  78. package/dist/design-system/TableUI/TableFilterInput.d.ts +2 -1
  79. package/dist/design-system/TableUI/TableFilterInput.d.ts.map +1 -1
  80. package/dist/design-system/TableUI/TableFilterLayout.d.ts.map +1 -1
  81. package/dist/design-system/TableUI/TableRow.d.ts.map +1 -1
  82. package/dist/design-system/Tag/index.d.ts +2 -2
  83. package/dist/design-system/Tag/index.d.ts.map +1 -1
  84. package/dist/design-system/Tooltip/Tooltip.d.ts +6 -0
  85. package/dist/design-system/Tooltip/Tooltip.d.ts.map +1 -1
  86. package/dist/design-system/Tree/Tree.d.ts +24 -0
  87. package/dist/design-system/Tree/Tree.d.ts.map +1 -1
  88. package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxAddButton.d.ts +3 -0
  89. package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxAddButton.d.ts.map +1 -0
  90. package/dist/design-system/TypeaheadCombobox/hooks/downshiftHookWrappers.d.ts +3 -1
  91. package/dist/design-system/TypeaheadCombobox/hooks/downshiftHookWrappers.d.ts.map +1 -1
  92. package/dist/design-system/TypeaheadCombobox/index.d.ts +1 -0
  93. package/dist/design-system/TypeaheadCombobox/index.d.ts.map +1 -1
  94. package/dist/design-system/Wizard/Wizard.d.ts +74 -0
  95. package/dist/design-system/Wizard/Wizard.d.ts.map +1 -0
  96. package/dist/design-system/Wizard/WizardFooter.d.ts +15 -0
  97. package/dist/design-system/Wizard/WizardFooter.d.ts.map +1 -0
  98. package/dist/design-system/Wizard/WizardModal.d.ts +7 -0
  99. package/dist/design-system/Wizard/WizardModal.d.ts.map +1 -0
  100. package/dist/design-system/Wizard/WizardStep.d.ts +71 -0
  101. package/dist/design-system/Wizard/WizardStep.d.ts.map +1 -0
  102. package/dist/design-system/Wizard/WizardStepsContent.d.ts +10 -0
  103. package/dist/design-system/Wizard/WizardStepsContent.d.ts.map +1 -0
  104. package/dist/design-system/Wizard/index.d.ts +5 -0
  105. package/dist/design-system/Wizard/index.d.ts.map +1 -0
  106. package/dist/design-system/Wizard/useWizardCurrentStep.d.ts +20 -0
  107. package/dist/design-system/Wizard/useWizardCurrentStep.d.ts.map +1 -0
  108. package/dist/design-system/_shared_/Combobox/styles.d.ts +12 -0
  109. package/dist/design-system/_shared_/Combobox/styles.d.ts.map +1 -1
  110. package/dist/design-system/constants.d.ts +2 -2
  111. package/dist/design-system/constants.d.ts.map +1 -1
  112. package/dist/design-system/index.d.ts +3 -0
  113. package/dist/design-system/index.d.ts.map +1 -1
  114. package/dist/design-system/utils/safex.d.ts +3 -2
  115. package/dist/design-system/utils/safex.d.ts.map +1 -1
  116. package/dist/design-system/utils/useNotifyOnFirstView.d.ts +15 -0
  117. package/dist/design-system/utils/useNotifyOnFirstView.d.ts.map +1 -0
  118. package/dist/development/Banner/Banner.d.ts +16 -6
  119. package/dist/development/Banner/Banner.d.ts.map +1 -1
  120. package/dist/development/ChatUI/ChatInput.d.ts.map +1 -1
  121. package/dist/development/ChatUI/Feedback.d.ts.map +1 -1
  122. package/dist/development/Stepper/Stepper.d.ts +62 -0
  123. package/dist/development/Stepper/Stepper.d.ts.map +1 -0
  124. package/dist/development/Stepper/index.d.ts +2 -0
  125. package/dist/development/Stepper/index.d.ts.map +1 -0
  126. package/dist/development/Toolbar/Toolbar.d.ts +15 -0
  127. package/dist/development/Toolbar/Toolbar.d.ts.map +1 -0
  128. package/dist/development/Toolbar/index.d.ts +2 -0
  129. package/dist/development/Toolbar/index.d.ts.map +1 -0
  130. package/dist/development/index.d.ts +3 -2
  131. package/dist/development/index.d.ts.map +1 -1
  132. package/dist/development.js +340 -327
  133. package/dist/development.js.map +1 -1
  134. package/dist/dubois-colors.less +203 -142
  135. package/dist/flags.d.ts +1 -2
  136. package/dist/flags.d.ts.map +1 -1
  137. package/dist/index-dark.css +289 -289
  138. package/dist/index.css +196 -196
  139. package/dist/index.js +2588 -937
  140. package/dist/index.js.map +1 -1
  141. package/dist/rollup/less.d.ts.map +1 -1
  142. package/dist/test-utils/enzyme/selectEvent.d.ts +5 -0
  143. package/dist/test-utils/enzyme/selectEvent.d.ts.map +1 -1
  144. package/dist/test-utils/enzyme/table.d.ts.map +1 -1
  145. package/dist/test-utils/enzyme/utils.d.ts +6 -0
  146. package/dist/test-utils/enzyme/utils.d.ts.map +1 -1
  147. package/dist/test-utils/enzyme.js +34 -15
  148. package/dist/test-utils/enzyme.js.map +1 -1
  149. package/dist/test-utils/rtl/selectEvent.d.ts +5 -0
  150. package/dist/test-utils/rtl/selectEvent.d.ts.map +1 -1
  151. package/dist/test-utils/rtl.js +16 -1
  152. package/dist/test-utils/rtl.js.map +1 -1
  153. package/dist/theme/_generated/PrimitiveColors.d.ts +3 -0
  154. package/dist/theme/_generated/PrimitiveColors.d.ts.map +1 -0
  155. package/dist/theme/_generated/SemanticColors-Dark.d.ts +3 -0
  156. package/dist/theme/_generated/SemanticColors-Dark.d.ts.map +1 -0
  157. package/dist/theme/_generated/SemanticColors-Light.d.ts +3 -0
  158. package/dist/theme/_generated/SemanticColors-Light.d.ts.map +1 -0
  159. package/dist/theme/_generated/ValidPrimitiveColors.d.ts +56 -0
  160. package/dist/theme/_generated/ValidPrimitiveColors.d.ts.map +1 -0
  161. package/dist/theme/_generated/ValidSemanticColors.d.ts +98 -0
  162. package/dist/theme/_generated/ValidSemanticColors.d.ts.map +1 -0
  163. package/dist/theme/colors.d.ts +62 -141
  164. package/dist/theme/colors.d.ts.map +1 -1
  165. package/dist/theme/spacing.d.ts +1 -0
  166. package/dist/theme/spacing.d.ts.map +1 -1
  167. package/package.json +13 -15
  168. package/dist/DropdownMenu-06a1051f.js.map +0 -1
  169. package/dist/development/ContextMenu/ContextMenu.d.ts.map +0 -1
  170. package/dist/development/ContextMenu/index.d.ts +0 -2
  171. package/dist/development/ContextMenu/index.d.ts.map +0 -1
  172. package/dist/theme/colorList.d.ts +0 -130
  173. package/dist/theme/colorList.d.ts.map +0 -1
  174. /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, m as LoadingIcon, n as dropdownContentStyles, o as Title$2, p as AccessibleContainer, q as ChevronLeftIcon, r as DU_BOIS_ENABLE_ANIMATION_CLASSNAME, t as lightColorList, w as Root$4, x as Trigger$2, y as getDefaultStyles, z as getPrimaryStyles, E as getDisabledStyles, F as useUniqueId, G as useDesignSystemFlags } from './DropdownMenu-06a1051f.js';
2
- export { O as ApplyDesignSystemFlags, a2 as ColorVars, U as CursorIcon, K as DesignSystemContext, N as DesignSystemProvider, J as DesignSystemThemeContext, M as DesignSystemThemeProvider, Q as DropdownMenu, V as FaceFrownIcon, X as FaceNeutralIcon, Y as FaceSmileIcon, $ as LoadingStateContext, Z as MegaphoneIcon, _ as NewWindowIcon, W as WithDesignSystemThemeHoc, a1 as getBottomOnlyShadowScrollStyles, H as getButtonEmotionStyles, a0 as getTypographyColor, P as useAntDConfigProviderContext } from './DropdownMenu-06a1051f.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, 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, Switch as Switch$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';
@@ -485,6 +488,32 @@ const BarStackedIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
485
488
  BarStackedIcon.displayName = 'BarStackedIcon';
486
489
  var BarStackedIcon$1 = BarStackedIcon;
487
490
 
491
+ function SvgBarStackedPercentageIcon(props) {
492
+ return jsx("svg", {
493
+ xmlns: "http://www.w3.org/2000/svg",
494
+ width: "1em",
495
+ height: "1em",
496
+ fill: "none",
497
+ viewBox: "0 0 12 14",
498
+ ...props,
499
+ children: jsx("path", {
500
+ fill: "currentColor",
501
+ fillRule: "evenodd",
502
+ d: "M3.88 0c-.415 0-.38 0 0 0H.75A.75.75 0 0 0 0 .75v12.5c0 .414.336.75.75.75h10.5a.75.75 0 0 0 .75-.75V.5c0-.414-.336-.5-.75-.5H3.88ZM7 7.5v5H5v-5h2ZM7 6V1.5H5V6h2Zm3.5 6.5h-2v-1.75h2v1.75Zm-2-11v7.75h2V1.5h-2Zm-5 7.75V1.5h-2v7.75h2Zm0 3.25v-1.75h-2v1.75h2Z",
503
+ clipRule: "evenodd"
504
+ })
505
+ });
506
+ }
507
+ const BarStackedPercentageIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
508
+ return jsx(Icon, {
509
+ ref: forwardedRef,
510
+ ...props,
511
+ component: SvgBarStackedPercentageIcon
512
+ });
513
+ });
514
+ BarStackedPercentageIcon.displayName = 'BarStackedPercentageIcon';
515
+ var BarStackedPercentageIcon$1 = BarStackedPercentageIcon;
516
+
488
517
  function SvgBeakerIcon(props) {
489
518
  return jsx("svg", {
490
519
  xmlns: "http://www.w3.org/2000/svg",
@@ -2176,6 +2205,136 @@ const DragIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
2176
2205
  DragIcon.displayName = 'DragIcon';
2177
2206
  var DragIcon$1 = DragIcon;
2178
2207
 
2208
+ function SvgErdIcon(props) {
2209
+ return jsxs("svg", {
2210
+ xmlns: "http://www.w3.org/2000/svg",
2211
+ width: "1em",
2212
+ height: "1em",
2213
+ fill: "none",
2214
+ viewBox: "0 0 16 16",
2215
+ ...props,
2216
+ children: [jsx("mask", {
2217
+ id: "ERDIcon_svg__a",
2218
+ width: 6,
2219
+ height: 5,
2220
+ x: 10,
2221
+ y: 1,
2222
+ maskUnits: "userSpaceOnUse",
2223
+ style: {
2224
+ maskType: 'luminance'
2225
+ },
2226
+ children: jsx("path", {
2227
+ fill: "#fff",
2228
+ d: "M11.25 6h4a.75.75 0 0 0 .75-.75v-3.5a.75.75 0 0 0-.75-.75h-4a.75.75 0 0 0-.75.75v3.5c0 .414.336.75.75.75Z"
2229
+ })
2230
+ }), jsx("g", {
2231
+ mask: "url(#ERDIcon_svg__a)",
2232
+ children: jsx("path", {
2233
+ stroke: "currentColor",
2234
+ strokeWidth: 3,
2235
+ d: "M11.25 6h4a.75.75 0 0 0 .75-.75v-3.5a.75.75 0 0 0-.75-.75h-4a.75.75 0 0 0-.75.75v3.5c0 .414.336.75.75.75Z"
2236
+ })
2237
+ }), jsx("mask", {
2238
+ id: "ERDIcon_svg__b",
2239
+ width: 6,
2240
+ height: 5,
2241
+ x: 10,
2242
+ y: 10,
2243
+ maskUnits: "userSpaceOnUse",
2244
+ style: {
2245
+ maskType: 'luminance'
2246
+ },
2247
+ children: jsx("path", {
2248
+ fill: "#fff",
2249
+ d: "M11.25 15h4a.75.75 0 0 0 .75-.75v-3.5a.75.75 0 0 0-.75-.75h-4a.75.75 0 0 0-.75.75v3.5c0 .414.336.75.75.75Z"
2250
+ })
2251
+ }), jsx("g", {
2252
+ mask: "url(#ERDIcon_svg__b)",
2253
+ children: jsx("path", {
2254
+ stroke: "currentColor",
2255
+ strokeWidth: 3,
2256
+ d: "M11.25 15h4a.75.75 0 0 0 .75-.75v-3.5a.75.75 0 0 0-.75-.75h-4a.75.75 0 0 0-.75.75v3.5c0 .414.336.75.75.75Z"
2257
+ })
2258
+ }), jsx("mask", {
2259
+ id: "ERDIcon_svg__c",
2260
+ width: 6,
2261
+ height: 5,
2262
+ x: 0,
2263
+ y: 1,
2264
+ maskUnits: "userSpaceOnUse",
2265
+ style: {
2266
+ maskType: 'luminance'
2267
+ },
2268
+ children: jsx("path", {
2269
+ fill: "#fff",
2270
+ d: "M.75 6h4a.75.75 0 0 0 .75-.75v-3.5A.75.75 0 0 0 4.75 1h-4a.75.75 0 0 0-.75.75v3.5c0 .414.336.75.75.75Z"
2271
+ })
2272
+ }), jsx("g", {
2273
+ mask: "url(#ERDIcon_svg__c)",
2274
+ children: jsx("path", {
2275
+ stroke: "currentColor",
2276
+ strokeWidth: 3,
2277
+ d: "M.75 6h4a.75.75 0 0 0 .75-.75v-3.5A.75.75 0 0 0 4.75 1h-4a.75.75 0 0 0-.75.75v3.5c0 .414.336.75.75.75Z"
2278
+ })
2279
+ }), jsx("mask", {
2280
+ id: "ERDIcon_svg__d",
2281
+ width: 6,
2282
+ height: 5,
2283
+ x: 0,
2284
+ y: 10,
2285
+ maskUnits: "userSpaceOnUse",
2286
+ style: {
2287
+ maskType: 'luminance'
2288
+ },
2289
+ children: jsx("path", {
2290
+ fill: "#fff",
2291
+ d: "M.75 15h4a.75.75 0 0 0 .75-.75v-3.5a.75.75 0 0 0-.75-.75h-4a.75.75 0 0 0-.75.75v3.5c0 .414.336.75.75.75Z"
2292
+ })
2293
+ }), jsx("g", {
2294
+ mask: "url(#ERDIcon_svg__d)",
2295
+ children: jsx("path", {
2296
+ stroke: "currentColor",
2297
+ strokeWidth: 3,
2298
+ d: "M.75 15h4a.75.75 0 0 0 .75-.75v-3.5a.75.75 0 0 0-.75-.75h-4a.75.75 0 0 0-.75.75v3.5c0 .414.336.75.75.75Z"
2299
+ })
2300
+ }), jsx("mask", {
2301
+ id: "ERDIcon_svg__e",
2302
+ width: 6,
2303
+ height: 6,
2304
+ x: 5,
2305
+ y: 5,
2306
+ maskUnits: "userSpaceOnUse",
2307
+ style: {
2308
+ maskType: 'luminance'
2309
+ },
2310
+ children: jsx("path", {
2311
+ fill: "#fff",
2312
+ d: "M6 10.5h4a.75.75 0 0 0 .75-.75v-3.5A.75.75 0 0 0 10 5.5H6a.75.75 0 0 0-.75.75v3.5c0 .414.336.75.75.75Z"
2313
+ })
2314
+ }), jsx("g", {
2315
+ mask: "url(#ERDIcon_svg__e)",
2316
+ children: jsx("path", {
2317
+ stroke: "currentColor",
2318
+ strokeWidth: 3,
2319
+ d: "M6 10.5h4a.75.75 0 0 0 .75-.75v-3.5A.75.75 0 0 0 10 5.5H6a.75.75 0 0 0-.75.75v3.5c0 .414.336.75.75.75Z"
2320
+ })
2321
+ }), jsx("path", {
2322
+ stroke: "currentColor",
2323
+ strokeWidth: 1.5,
2324
+ d: "M11.5 11 9.75 9.5M4.5 5l1.75 1.5M11.5 5 9.75 6.5M4.5 11l1.75-1.5"
2325
+ })]
2326
+ });
2327
+ }
2328
+ const ErdIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
2329
+ return jsx(Icon, {
2330
+ ref: forwardedRef,
2331
+ ...props,
2332
+ component: SvgErdIcon
2333
+ });
2334
+ });
2335
+ ErdIcon.displayName = 'ErdIcon';
2336
+ var ErdIcon$1 = ErdIcon;
2337
+
2179
2338
  function SvgExpandLessIcon(props) {
2180
2339
  return jsx("svg", {
2181
2340
  xmlns: "http://www.w3.org/2000/svg",
@@ -3192,6 +3351,35 @@ const InfoFillIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
3192
3351
  InfoFillIcon.displayName = 'InfoFillIcon';
3193
3352
  var InfoFillIcon$1 = InfoFillIcon;
3194
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
+
3195
3383
  function SvgIngestionIcon(props) {
3196
3384
  return jsxs("svg", {
3197
3385
  xmlns: "http://www.w3.org/2000/svg",
@@ -3527,6 +3715,30 @@ const ListBorderIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
3527
3715
  ListBorderIcon.displayName = 'ListBorderIcon';
3528
3716
  var ListBorderIcon$1 = ListBorderIcon;
3529
3717
 
3718
+ function SvgListClearIcon(props) {
3719
+ return jsx("svg", {
3720
+ xmlns: "http://www.w3.org/2000/svg",
3721
+ width: "1em",
3722
+ height: "1em",
3723
+ fill: "none",
3724
+ viewBox: "0 0 16 14",
3725
+ ...props,
3726
+ children: jsx("path", {
3727
+ fill: "currentColor",
3728
+ d: "M10.133 14 8.89 12.775 11.2 10.5 8.889 8.225 10.133 7l2.311 2.275L14.756 7 16 8.225 13.689 10.5 16 12.775 14.756 14l-2.312-2.275L10.134 14ZM0 8.75V7h6.222v1.75H0Zm0-3.5V3.5h9.778v1.75H0Zm0-3.5V0h9.778v1.75H0Z"
3729
+ })
3730
+ });
3731
+ }
3732
+ const ListClearIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
3733
+ return jsx(Icon, {
3734
+ ref: forwardedRef,
3735
+ ...props,
3736
+ component: SvgListClearIcon
3737
+ });
3738
+ });
3739
+ ListClearIcon.displayName = 'ListClearIcon';
3740
+ var ListClearIcon$1 = ListClearIcon;
3741
+
3530
3742
  function SvgListIcon(props) {
3531
3743
  return jsx("svg", {
3532
3744
  xmlns: "http://www.w3.org/2000/svg",
@@ -4122,6 +4334,32 @@ const PageTopIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
4122
4334
  PageTopIcon.displayName = 'PageTopIcon';
4123
4335
  var PageTopIcon$1 = PageTopIcon;
4124
4336
 
4337
+ function SvgPauseIcon(props) {
4338
+ return jsx("svg", {
4339
+ xmlns: "http://www.w3.org/2000/svg",
4340
+ width: "1em",
4341
+ height: "1em",
4342
+ fill: "none",
4343
+ viewBox: "0 0 16 16",
4344
+ ...props,
4345
+ children: jsx("path", {
4346
+ stroke: "currentColor",
4347
+ strokeLinecap: "round",
4348
+ strokeWidth: 1.5,
4349
+ d: "M5.25 3v10M10.752 3v10"
4350
+ })
4351
+ });
4352
+ }
4353
+ const PauseIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
4354
+ return jsx(Icon, {
4355
+ ref: forwardedRef,
4356
+ ...props,
4357
+ component: SvgPauseIcon
4358
+ });
4359
+ });
4360
+ PauseIcon.displayName = 'PauseIcon';
4361
+ var PauseIcon$1 = PauseIcon;
4362
+
4125
4363
  function SvgPencilIcon(props) {
4126
4364
  return jsx("svg", {
4127
4365
  xmlns: "http://www.w3.org/2000/svg",
@@ -5277,6 +5515,30 @@ const SortUnsortedIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
5277
5515
  SortUnsortedIcon.displayName = 'SortUnsortedIcon';
5278
5516
  var SortUnsortedIcon$1 = SortUnsortedIcon;
5279
5517
 
5518
+ function SvgSparkleIcon(props) {
5519
+ return jsx("svg", {
5520
+ xmlns: "http://www.w3.org/2000/svg",
5521
+ width: "1em",
5522
+ height: "1em",
5523
+ fill: "none",
5524
+ viewBox: "0 0 16 16",
5525
+ ...props,
5526
+ children: jsx("path", {
5527
+ fill: "currentColor",
5528
+ d: "m7.7 6.407-1.14.43c-.45.17-.45.81 0 .98l1.14.43c.82.31 1.46.95 1.77 1.77l.43 1.14c.17.45.81.45.98 0l.43-1.14c.31-.82.95-1.46 1.77-1.77l1.14-.43c.45-.17.45-.81 0-.98l-1.14-.43c-.82-.31-1.46-.95-1.77-1.77l-.43-1.14a.524.524 0 0 0-.98 0l-.43 1.14c-.31.82-.95 1.46-1.77 1.77ZM3.855 11.045l-.66.25c-.26.1-.26.47 0 .57l.66.25c.47.18.85.55 1.03 1.03l.25.66c.1.26.47.26.57 0l.25-.66c.18-.47.55-.85 1.03-1.03l.66-.25c.26-.1.26-.47 0-.57l-.66-.25c-.47-.18-.85-.55-1.03-1.03l-.25-.66a.306.306 0 0 0-.57 0l-.25.66c-.18.47-.55.85-1.03 1.03ZM2.713 4.723l-.551.203a.25.25 0 0 0 0 .468l.55.203c.396.144.707.455.85.85l.204.551a.25.25 0 0 0 .468 0l.203-.55c.144-.396.455-.707.85-.85l.551-.204a.25.25 0 0 0 0-.468l-.55-.203a1.422 1.422 0 0 1-.85-.85l-.204-.551a.25.25 0 0 0-.468 0l-.203.55a1.422 1.422 0 0 1-.85.85Z"
5529
+ })
5530
+ });
5531
+ }
5532
+ const SparkleIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
5533
+ return jsx(Icon, {
5534
+ ref: forwardedRef,
5535
+ ...props,
5536
+ component: SvgSparkleIcon
5537
+ });
5538
+ });
5539
+ SparkleIcon.displayName = 'SparkleIcon';
5540
+ var SparkleIcon$1 = SparkleIcon;
5541
+
5280
5542
  function SvgSpeechBubbleIcon(props) {
5281
5543
  return jsxs("svg", {
5282
5544
  xmlns: "http://www.w3.org/2000/svg",
@@ -5411,6 +5673,93 @@ const StarIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
5411
5673
  StarIcon.displayName = 'StarIcon';
5412
5674
  var StarIcon$1 = StarIcon;
5413
5675
 
5676
+ function SvgStepIntoIcon(props) {
5677
+ return jsxs("svg", {
5678
+ xmlns: "http://www.w3.org/2000/svg",
5679
+ width: "1em",
5680
+ height: "1em",
5681
+ fill: "none",
5682
+ viewBox: "0 0 16 16",
5683
+ ...props,
5684
+ children: [jsx("path", {
5685
+ fill: "currentColor",
5686
+ fillRule: "evenodd",
5687
+ d: "m7.47 10.53-4-4 1.06-1.06 2.72 2.72V1h1.5v7.19l2.72-2.72 1.06 1.06-4 4-.53.53-.53-.53Z",
5688
+ clipRule: "evenodd"
5689
+ }), jsx("path", {
5690
+ fill: "currentColor",
5691
+ d: "M6.5 13.5a1.5 1.5 0 1 0 3 0 1.5 1.5 0 0 0-3 0Z"
5692
+ })]
5693
+ });
5694
+ }
5695
+ const StepIntoIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
5696
+ return jsx(Icon, {
5697
+ ref: forwardedRef,
5698
+ ...props,
5699
+ component: SvgStepIntoIcon
5700
+ });
5701
+ });
5702
+ StepIntoIcon.displayName = 'StepIntoIcon';
5703
+ var StepIntoIcon$1 = StepIntoIcon;
5704
+
5705
+ function SvgStepOutIcon(props) {
5706
+ return jsxs("svg", {
5707
+ xmlns: "http://www.w3.org/2000/svg",
5708
+ width: "1em",
5709
+ height: "1em",
5710
+ fill: "none",
5711
+ viewBox: "0 0 16 16",
5712
+ ...props,
5713
+ children: [jsx("path", {
5714
+ fill: "currentColor",
5715
+ fillRule: "evenodd",
5716
+ d: "m7.47 5.47-4 4 1.06 1.06 2.72-2.72V15h1.5V7.81l2.72 2.72 1.06-1.06-4-4L8 4.94l-.53.53Z",
5717
+ clipRule: "evenodd"
5718
+ }), jsx("path", {
5719
+ fill: "currentColor",
5720
+ d: "M6.5 2.5a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z"
5721
+ })]
5722
+ });
5723
+ }
5724
+ const StepOutIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
5725
+ return jsx(Icon, {
5726
+ ref: forwardedRef,
5727
+ ...props,
5728
+ component: SvgStepOutIcon
5729
+ });
5730
+ });
5731
+ StepOutIcon.displayName = 'StepOutIcon';
5732
+ var StepOutIcon$1 = StepOutIcon;
5733
+
5734
+ function SvgStepOverIcon(props) {
5735
+ return jsxs("svg", {
5736
+ xmlns: "http://www.w3.org/2000/svg",
5737
+ width: "1em",
5738
+ height: "1em",
5739
+ fill: "none",
5740
+ viewBox: "0 0 16 16",
5741
+ ...props,
5742
+ children: [jsx("path", {
5743
+ fill: "currentColor",
5744
+ d: "M9.5 13.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z"
5745
+ }), jsx("path", {
5746
+ fill: "currentColor",
5747
+ fillRule: "evenodd",
5748
+ d: "M8.012 4c2.179 0 4.137.931 5.488 2.412V4H15v5h-1.5v-.018H10v-1.5h2.608a6.018 6.018 0 0 0-4.596-2.116A6.001 6.001 0 0 0 2.477 9C2.5 9 1.27 8.313 1.27 8.313A7.389 7.389 0 0 1 8.012 4Z",
5749
+ clipRule: "evenodd"
5750
+ })]
5751
+ });
5752
+ }
5753
+ const StepOverIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
5754
+ return jsx(Icon, {
5755
+ ref: forwardedRef,
5756
+ ...props,
5757
+ component: SvgStepOverIcon
5758
+ });
5759
+ });
5760
+ StepOverIcon.displayName = 'StepOverIcon';
5761
+ var StepOverIcon$1 = StepOverIcon;
5762
+
5414
5763
  function SvgStopCircleFillIcon(props) {
5415
5764
  return jsx("svg", {
5416
5765
  xmlns: "http://www.w3.org/2000/svg",
@@ -5649,6 +5998,37 @@ const TableLightningIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
5649
5998
  TableLightningIcon.displayName = 'TableLightningIcon';
5650
5999
  var TableLightningIcon$1 = TableLightningIcon;
5651
6000
 
6001
+ function SvgTableOnlineViewIcon(props) {
6002
+ return jsxs("svg", {
6003
+ xmlns: "http://www.w3.org/2000/svg",
6004
+ width: "1em",
6005
+ height: "1em",
6006
+ fill: "none",
6007
+ viewBox: "0 0 16 15",
6008
+ ...props,
6009
+ children: [jsx("path", {
6010
+ stroke: "currentColor",
6011
+ strokeWidth: 1.5,
6012
+ d: "M.75 1A.25.25 0 0 1 1 .75h12a.25.25 0 0 1 .25.25v12a.25.25 0 0 1-.25.25H1A.25.25 0 0 1 .75 13V1ZM1 5.25h12M5.25 13V6"
6013
+ }), jsx("path", {
6014
+ fill: "#fff",
6015
+ d: "M7 7h9v7.5H7z"
6016
+ }), jsx("path", {
6017
+ stroke: "currentColor",
6018
+ d: "M10.5 12H15m0 0-1.5-1.5M15 12l-1.5 1.5M12.5 9.5H8m0 0L9.5 11M8 9.5 9.5 8"
6019
+ })]
6020
+ });
6021
+ }
6022
+ const TableOnlineViewIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
6023
+ return jsx(Icon, {
6024
+ ref: forwardedRef,
6025
+ ...props,
6026
+ component: SvgTableOnlineViewIcon
6027
+ });
6028
+ });
6029
+ TableOnlineViewIcon.displayName = 'TableOnlineViewIcon';
6030
+ var TableOnlineViewIcon$1 = TableOnlineViewIcon;
6031
+
5652
6032
  function SvgTableStreamIcon(props) {
5653
6033
  return jsxs("svg", {
5654
6034
  xmlns: "http://www.w3.org/2000/svg",
@@ -6335,35 +6715,6 @@ const WarningFillIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
6335
6715
  WarningFillIcon.displayName = 'WarningFillIcon';
6336
6716
  var WarningFillIcon$1 = WarningFillIcon;
6337
6717
 
6338
- function SvgWarningIcon(props) {
6339
- return jsxs("svg", {
6340
- xmlns: "http://www.w3.org/2000/svg",
6341
- width: "1em",
6342
- height: "1em",
6343
- fill: "none",
6344
- viewBox: "0 0 16 16",
6345
- ...props,
6346
- children: [jsx("path", {
6347
- fill: "currentColor",
6348
- d: "M7.25 10V6.5h1.5V10h-1.5ZM8 12.5A.75.75 0 1 0 8 11a.75.75 0 0 0 0 1.5Z"
6349
- }), jsx("path", {
6350
- fill: "currentColor",
6351
- fillRule: "evenodd",
6352
- d: "M8 1a.75.75 0 0 1 .649.374l7.25 12.5A.75.75 0 0 1 15.25 15H.75a.75.75 0 0 1-.649-1.126l7.25-12.5A.75.75 0 0 1 8 1Zm0 2.245L2.052 13.5h11.896L8 3.245Z",
6353
- clipRule: "evenodd"
6354
- })]
6355
- });
6356
- }
6357
- const WarningIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
6358
- return jsx(Icon, {
6359
- ref: forwardedRef,
6360
- ...props,
6361
- component: SvgWarningIcon
6362
- });
6363
- });
6364
- WarningIcon.displayName = 'WarningIcon';
6365
- var WarningIcon$1 = WarningIcon;
6366
-
6367
6718
  function SvgWorkflowsIcon(props) {
6368
6719
  return jsx("svg", {
6369
6720
  xmlns: "http://www.w3.org/2000/svg",
@@ -6854,6 +7205,9 @@ const ApplyGlobalStyles = () => {
6854
7205
  });
6855
7206
  };
6856
7207
 
7208
+ /**
7209
+ * @deprecated Use `TypeaheadCombobox` instead.
7210
+ */
6857
7211
  const AutoComplete = /* #__PURE__ */(() => {
6858
7212
  const AutoComplete = _ref => {
6859
7213
  let {
@@ -6991,14 +7345,14 @@ const genSkeletonAnimatedColor = function (theme) {
6991
7345
  }, process.env.NODE_ENV === "production" ? "" : ";label:genSkeletonAnimatedColor;");
6992
7346
  };
6993
7347
 
6994
- 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)."; }
6995
7349
  const GenericContainerStyles = process.env.NODE_ENV === "production" ? {
6996
7350
  name: "12h7em6",
6997
7351
  styles: "cursor:progress;border-radius:var(--border-radius)"
6998
7352
  } : {
6999
7353
  name: "19fx6jo-GenericContainerStyles",
7000
7354
  styles: "cursor:progress;border-radius:var(--border-radius);label:GenericContainerStyles;",
7001
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$u
7355
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$t
7002
7356
  };
7003
7357
  const GenericSkeleton = _ref => {
7004
7358
  let {
@@ -7028,14 +7382,14 @@ const GenericSkeleton = _ref => {
7028
7382
  });
7029
7383
  };
7030
7384
 
7031
- 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)."; }
7032
7386
  const paragraphContainerStyles = process.env.NODE_ENV === "production" ? {
7033
7387
  name: "sj05g9",
7034
7388
  styles: "cursor:progress;width:100%;height:20px;display:flex;justify-content:flex-start;align-items:center"
7035
7389
  } : {
7036
7390
  name: "u3a3v7-paragraphContainerStyles",
7037
7391
  styles: "cursor:progress;width:100%;height:20px;display:flex;justify-content:flex-start;align-items:center;label:paragraphContainerStyles;",
7038
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$t
7392
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$s
7039
7393
  };
7040
7394
  const paragraphFillStyles = process.env.NODE_ENV === "production" ? {
7041
7395
  name: "10nptxl",
@@ -7043,7 +7397,7 @@ const paragraphFillStyles = process.env.NODE_ENV === "production" ? {
7043
7397
  } : {
7044
7398
  name: "h6xifd-paragraphFillStyles",
7045
7399
  styles: "border-radius:var(--border-radius);height:8px;label:paragraphFillStyles;",
7046
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$t
7400
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$s
7047
7401
  };
7048
7402
  const ParagraphSkeleton = _ref => {
7049
7403
  let {
@@ -7080,14 +7434,14 @@ const ParagraphSkeleton = _ref => {
7080
7434
  });
7081
7435
  };
7082
7436
 
7083
- 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)."; }
7084
7438
  const titleContainerStyles = process.env.NODE_ENV === "production" ? {
7085
7439
  name: "116rc6i",
7086
7440
  styles: "cursor:progress;width:100%;height:28px;display:flex;justify-content:flex-start;align-items:center"
7087
7441
  } : {
7088
7442
  name: "1dar8xl-titleContainerStyles",
7089
7443
  styles: "cursor:progress;width:100%;height:28px;display:flex;justify-content:flex-start;align-items:center;label:titleContainerStyles;",
7090
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$s
7444
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$r
7091
7445
  };
7092
7446
  const titleFillStyles = process.env.NODE_ENV === "production" ? {
7093
7447
  name: "9fmdbb",
@@ -7095,7 +7449,7 @@ const titleFillStyles = process.env.NODE_ENV === "production" ? {
7095
7449
  } : {
7096
7450
  name: "1vyd6dg-titleFillStyles",
7097
7451
  styles: "border-radius:var(--border-radius);height:12px;width:100%;label:titleFillStyles;",
7098
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$s
7452
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$r
7099
7453
  };
7100
7454
  const TitleSkeleton = _ref => {
7101
7455
  let {
@@ -7128,7 +7482,7 @@ const TitleSkeleton = _ref => {
7128
7482
  });
7129
7483
  };
7130
7484
 
7131
- 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)."; }
7132
7486
  // Class names that can be used to reference children within
7133
7487
  // Should not be used outside of design system
7134
7488
  // TODO: PE-239 Maybe we could add "dangerous" into the names or make them completely random.
@@ -7151,7 +7505,7 @@ const repeatingElementsStyles = {
7151
7505
  } : {
7152
7506
  name: "10gwa9a-cell",
7153
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;",
7154
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$r
7508
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$q
7155
7509
  },
7156
7510
  header: process.env.NODE_ENV === "production" ? {
7157
7511
  name: "ik7qgz",
@@ -7159,7 +7513,7 @@ const repeatingElementsStyles = {
7159
7513
  } : {
7160
7514
  name: "1xg6jn4-header",
7161
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;",
7162
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$r
7516
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$q
7163
7517
  },
7164
7518
  row: process.env.NODE_ENV === "production" ? {
7165
7519
  name: "ndcf6g",
@@ -7167,7 +7521,7 @@ const repeatingElementsStyles = {
7167
7521
  } : {
7168
7522
  name: "8dtpje-row",
7169
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;",
7170
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$r
7524
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$q
7171
7525
  }
7172
7526
  };
7173
7527
 
@@ -7192,7 +7546,7 @@ const tableStyles = {
7192
7546
  } : {
7193
7547
  name: "1csnd2v-table",
7194
7548
  styles: ".table-isScrollable &{flex:1;overflow:auto;};label:table;",
7195
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$r
7549
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$q
7196
7550
  },
7197
7551
  headerButtonTarget: process.env.NODE_ENV === "production" ? {
7198
7552
  name: "sezlox",
@@ -7200,7 +7554,7 @@ const tableStyles = {
7200
7554
  } : {
7201
7555
  name: "1iv4trp-headerButtonTarget",
7202
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;",
7203
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$r
7557
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$q
7204
7558
  },
7205
7559
  sortHeaderIconOnRight: process.env.NODE_ENV === "production" ? {
7206
7560
  name: "1hdiaor",
@@ -7208,7 +7562,7 @@ const tableStyles = {
7208
7562
  } : {
7209
7563
  name: "evh3p3-sortHeaderIconOnRight",
7210
7564
  styles: "margin-left:var(--table-spacing-xs);label:sortHeaderIconOnRight;",
7211
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$r
7565
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$q
7212
7566
  },
7213
7567
  sortHeaderIconOnLeft: process.env.NODE_ENV === "production" ? {
7214
7568
  name: "d4plmt",
@@ -7216,7 +7570,7 @@ const tableStyles = {
7216
7570
  } : {
7217
7571
  name: "1gr7edl-sortHeaderIconOnLeft",
7218
7572
  styles: "margin-right:var(--table-spacing-xs);label:sortHeaderIconOnLeft;",
7219
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$r
7573
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$q
7220
7574
  },
7221
7575
  checkboxCell: process.env.NODE_ENV === "production" ? {
7222
7576
  name: "4cdr0s",
@@ -7224,7 +7578,7 @@ const tableStyles = {
7224
7578
  } : {
7225
7579
  name: "17au6u2-checkboxCell",
7226
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;",
7227
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$r
7581
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$q
7228
7582
  },
7229
7583
  resizeHandleContainer: /*#__PURE__*/css({
7230
7584
  position: 'absolute',
@@ -7245,7 +7599,7 @@ const tableStyles = {
7245
7599
  } : {
7246
7600
  name: "1ot7jju-resizeHandle",
7247
7601
  styles: "width:1px;background:var(--table-resize-handle-color);label:resizeHandle;",
7248
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$r
7602
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$q
7249
7603
  },
7250
7604
  paginationContainer: process.env.NODE_ENV === "production" ? {
7251
7605
  name: "ehlmid",
@@ -7253,7 +7607,7 @@ const tableStyles = {
7253
7607
  } : {
7254
7608
  name: "p324df-paginationContainer",
7255
7609
  styles: "display:flex;justify-content:flex-end;padding-top:var(--table-spacing-sm);padding-bottom:var(--table-spacing-sm);label:paginationContainer;",
7256
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$r
7610
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$q
7257
7611
  }
7258
7612
  };
7259
7613
  var tableStyles$1 = tableStyles;
@@ -7304,7 +7658,6 @@ const Table = /*#__PURE__*/forwardRef(function Table(_ref, ref) {
7304
7658
  // See: https://emotion.sh/docs/best-practices#advanced-css-variables-with-style
7305
7659
  style: {
7306
7660
  ...style,
7307
- ['--table-background-color']: theme.colors.backgroundPrimary,
7308
7661
  ['--table-header-active-color']: theme.colors.actionDefaultTextPress,
7309
7662
  ['colorScheme']: theme.isDarkMode ? 'dark' : undefined,
7310
7663
  ['--table-header-background-color']: theme.colors.backgroundPrimary,
@@ -7440,7 +7793,7 @@ const TableRow = /*#__PURE__*/forwardRef(function TableRow(_ref, ref) {
7440
7793
  });
7441
7794
  });
7442
7795
 
7443
- 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)."; }
7444
7797
  const TableRowActionStyles = {
7445
7798
  container: process.env.NODE_ENV === "production" ? {
7446
7799
  name: "gk361n",
@@ -7448,7 +7801,7 @@ const TableRowActionStyles = {
7448
7801
  } : {
7449
7802
  name: "q9pljs-container",
7450
7803
  styles: "width:32px;padding-top:var(--vertical-padding);padding-bottom:var(--vertical-padding);display:flex;align-items:start;justify-content:center;label:container;",
7451
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$q
7804
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$p
7452
7805
  }
7453
7806
  };
7454
7807
  const TableRowAction = /*#__PURE__*/forwardRef(function TableRowAction(_ref, ref) {
@@ -7484,7 +7837,7 @@ const TableRowAction = /*#__PURE__*/forwardRef(function TableRowAction(_ref, ref
7484
7837
  /** @deprecated Use `TableRowAction` instead */
7485
7838
  const TableRowMenuContainer = TableRowAction;
7486
7839
 
7487
- 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)."; }
7488
7841
  const TableSkeletonStyles = {
7489
7842
  container: process.env.NODE_ENV === "production" ? {
7490
7843
  name: "6kz1wu",
@@ -7492,7 +7845,7 @@ const TableSkeletonStyles = {
7492
7845
  } : {
7493
7846
  name: "1we0er9-container",
7494
7847
  styles: "display:flex;flex-direction:column;align-items:flex-start;label:container;",
7495
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$p
7848
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$o
7496
7849
  },
7497
7850
  cell: process.env.NODE_ENV === "production" ? {
7498
7851
  name: "1t820zr",
@@ -7500,7 +7853,7 @@ const TableSkeletonStyles = {
7500
7853
  } : {
7501
7854
  name: "1m8dl5b-cell",
7502
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;",
7503
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$p
7856
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$o
7504
7857
  }
7505
7858
  };
7506
7859
  const TableSkeleton = _ref => {
@@ -7723,7 +8076,7 @@ function getCheckboxEmotionStyles(clsPrefix, theme) {
7723
8076
  const hoverSelector = `${classInput}:hover + ${classInner}`;
7724
8077
  const pressSelector = `${classInput}:active + ${classInner}`;
7725
8078
  const styles = {
7726
- ...(useNewCheckboxStyles && {
8079
+ ...(useNewCheckboxStyles ? {
7727
8080
  [`.${clsPrefix}`]: {
7728
8081
  top: 'unset',
7729
8082
  lineHeight: theme.typography.lineHeightBase
@@ -7732,7 +8085,7 @@ function getCheckboxEmotionStyles(clsPrefix, theme) {
7732
8085
  alignItems: 'center',
7733
8086
  lineHeight: theme.typography.lineHeightBase
7734
8087
  }
7735
- }),
8088
+ } : {}),
7736
8089
  // Top level styles are for the unchecked state
7737
8090
  [classInner]: {
7738
8091
  borderColor: theme.colors.actionDefaultBorderDefault
@@ -7881,12 +8234,12 @@ const getWrapperStyle = _ref => {
7881
8234
  const styles = {
7882
8235
  height: theme.typography.lineHeightBase,
7883
8236
  lineHeight: theme.typography.lineHeightBase,
7884
- ...(useNewCheckboxStyles && {
8237
+ ...(useNewCheckboxStyles ? {
7885
8238
  [`&& + .${clsPrefix}-hint, && + .${clsPrefix}-form-message`]: {
7886
8239
  paddingLeft: theme.spacing.lg,
7887
8240
  marginTop: 0
7888
8241
  }
7889
- }),
8242
+ } : {}),
7890
8243
  ...wrapperStyle
7891
8244
  };
7892
8245
  return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getWrapperStyle;");
@@ -7971,172 +8324,972 @@ const Checkbox = CheckboxNamespace;
7971
8324
  // since these will be exposed in the library's exports.
7972
8325
  const __INTERNAL_DO_NOT_USE__Group = CheckboxGroup;
7973
8326
 
7974
- function getEmotionStyles(clsPrefix, theme) {
7975
- const classFocused = `.${clsPrefix}-focused`;
7976
- const classActiveBar = `.${clsPrefix}-active-bar`;
7977
- const classSeparator = `.${clsPrefix}-separator`;
7978
- const classSuffix = `.${clsPrefix}-suffix`;
7979
- const styles = {
7980
- height: 32,
7981
- borderRadius: theme.borders.borderRadiusMd,
7982
- borderColor: theme.colors.border,
7983
- color: theme.colors.textPrimary,
7984
- transition: 'border 0s, box-shadow 0s',
7985
- [`&${classFocused},:hover`]: {
7986
- borderColor: theme.colors.actionDefaultBorderHover
7987
- },
7988
- '&:active': {
7989
- borderColor: theme.colors.actionDefaultBorderPress
7990
- },
7991
- [`&${classFocused}`]: {
7992
- boxShadow: `none !important`,
7993
- outline: `${theme.colors.actionDefaultBorderFocus} solid 2px !important`,
7994
- borderColor: 'transparent !important'
7995
- },
7996
- [`& ${classActiveBar}`]: {
7997
- background: `${theme.colors.actionDefaultBorderPress} !important`
7998
- },
7999
- [`& input::placeholder, & ${classSeparator}, & ${classSuffix}`]: {
8000
- color: theme.colors.textPrimary
8001
- }
8002
- };
8003
- return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getEmotionStyles;");
8004
- }
8005
- const getDropdownStyles$1 = theme => {
8006
- return {
8007
- zIndex: theme.options.zIndexBase + 50
8008
- };
8009
- };
8010
- function useDatePickerStyles() {
8011
- const {
8012
- theme,
8013
- getPrefixedClassName
8014
- } = useDesignSystemTheme();
8015
- const clsPrefix = getPrefixedClassName('picker');
8016
- return getEmotionStyles(clsPrefix, theme);
8017
- }
8018
- const DuboisDatePicker = /*#__PURE__*/forwardRef((props, ref) => {
8019
- 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;
8020
8344
  const {
8021
8345
  theme
8022
8346
  } = useDesignSystemTheme();
8023
- return jsx(DesignSystemAntDConfigProvider, {
8024
- children: jsx(DatePicker, {
8025
- css: styles,
8026
- ref: ref,
8027
- ...props,
8028
- popupStyle: {
8029
- ...getDropdownStyles$1(theme),
8030
- ...(props.popupStyle || {})
8031
- }
8032
- })
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
8033
8364
  });
8034
- });
8035
- const RangePicker = /*#__PURE__*/forwardRef((props, ref) => {
8036
- const styles = useDatePickerStyles();
8037
- const {
8038
- theme
8039
- } = useDesignSystemTheme();
8040
- return jsx(DesignSystemAntDConfigProvider, {
8041
- children: jsx(DatePicker.RangePicker, {
8042
- css: styles,
8043
- ...props,
8044
- ref: ref,
8045
- popupStyle: {
8046
- ...getDropdownStyles$1(theme),
8047
- ...(props.popupStyle || {})
8048
- }
8049
- })
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
8050
8375
  });
8051
- });
8052
- const TimePicker = /*#__PURE__*/forwardRef((props, ref) => {
8053
- const styles = useDatePickerStyles();
8054
8376
  const {
8055
- theme
8056
- } = useDesignSystemTheme();
8377
+ overlayInnerStyle,
8378
+ overlayStyle,
8379
+ ...delegatedDangerouslySetAntdProps
8380
+ } = dangerouslySetAntdProps || {};
8057
8381
  return jsx(DesignSystemAntDConfigProvider, {
8058
- children: jsx(DatePicker.TimePicker, {
8059
- 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,
8060
8405
  ...props,
8061
- ref: ref,
8062
- popupStyle: {
8063
- ...getDropdownStyles$1(theme),
8064
- ...(props.popupStyle || {})
8065
- }
8406
+ children: childWithProps
8066
8407
  })
8067
8408
  });
8068
- });
8069
- const QuarterPicker = /*#__PURE__*/forwardRef((props, ref) => {
8070
- const styles = useDatePickerStyles();
8409
+ };
8410
+
8411
+ const InfoTooltip = _ref => {
8412
+ let {
8413
+ title,
8414
+ tooltipProps,
8415
+ iconTitle,
8416
+ isKeyboardFocusable = true,
8417
+ ...iconProps
8418
+ } = _ref;
8071
8419
  const {
8072
8420
  theme
8073
8421
  } = useDesignSystemTheme();
8074
- return jsx(DesignSystemAntDConfigProvider, {
8075
- children: jsx(DatePicker.QuarterPicker, {
8076
- css: styles,
8077
- ...props,
8078
- ref: ref,
8079
- popupStyle: {
8080
- ...getDropdownStyles$1(theme),
8081
- ...(props.popupStyle || {})
8082
- }
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
+ })
8083
8440
  })
8084
8441
  });
8085
- });
8086
- const WeekPicker = /*#__PURE__*/forwardRef((props, ref) => {
8087
- 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;
8088
8455
  const {
8089
- theme
8090
- } = useDesignSystemTheme();
8091
- return jsx(DesignSystemAntDConfigProvider, {
8092
- children: jsx(DatePicker.WeekPicker, {
8093
- css: styles,
8094
- ...props,
8456
+ getPopupContainer
8457
+ } = useDesignSystemContext();
8458
+ return jsx(DropdownMenu$1.Portal, {
8459
+ container: getPopupContainer && getPopupContainer(),
8460
+ children: jsx(DropdownMenu$1.Content, {
8095
8461
  ref: ref,
8096
- popupStyle: {
8097
- ...getDropdownStyles$1(theme),
8098
- ...(props.popupStyle || {})
8099
- }
8100
- })
8101
- });
8102
- });
8103
- const MonthPicker = /*#__PURE__*/forwardRef((props, ref) => {
8104
- const styles = useDatePickerStyles();
8105
- const {
8106
- theme
8107
- } = useDesignSystemTheme();
8108
- return jsx(DesignSystemAntDConfigProvider, {
8109
- children: jsx(DatePicker.MonthPicker, {
8110
- css: styles,
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
+ },
8111
8480
  ...props,
8112
- ref: ref,
8113
- popupStyle: {
8114
- ...getDropdownStyles$1(theme),
8115
- ...(props.popupStyle || {})
8116
- }
8481
+ children: children
8117
8482
  })
8118
8483
  });
8119
8484
  });
8120
- const YearPicker = /*#__PURE__*/forwardRef((props, ref) => {
8121
- const styles = useDatePickerStyles();
8485
+ const SubContent$1 = /*#__PURE__*/forwardRef(function Content(_ref2, ref) {
8486
+ let {
8487
+ children,
8488
+ minWidth = 220,
8489
+ ...props
8490
+ } = _ref2;
8122
8491
  const {
8123
- theme
8124
- } = useDesignSystemTheme();
8125
- return jsx(DesignSystemAntDConfigProvider, {
8126
- children: jsx(DatePicker.YearPicker, {
8127
- css: styles,
8128
- ...props,
8492
+ getPopupContainer
8493
+ } = useDesignSystemContext();
8494
+ return jsx(DropdownMenu$1.Portal, {
8495
+ container: getPopupContainer && getPopupContainer(),
8496
+ children: jsx(DropdownMenu$1.SubContent, {
8129
8497
  ref: ref,
8130
- popupStyle: {
8131
- ...getDropdownStyles$1(theme),
8132
- ...(props.popupStyle || {})
8133
- }
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
8134
8506
  })
8135
8507
  });
8136
8508
  });
8137
-
8138
- /**
8139
- * `LegacyDatePicker` was added as a temporary solution pending an
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();
9261
+ return jsx(DesignSystemAntDConfigProvider, {
9262
+ children: jsx(DatePicker.MonthPicker, {
9263
+ css: styles,
9264
+ ...props,
9265
+ ref: ref,
9266
+ popupStyle: {
9267
+ ...getDropdownStyles$1(theme),
9268
+ ...(props.popupStyle || {})
9269
+ }
9270
+ })
9271
+ });
9272
+ });
9273
+ const YearPicker = /*#__PURE__*/forwardRef((props, ref) => {
9274
+ const styles = useDatePickerStyles();
9275
+ const {
9276
+ theme
9277
+ } = useDesignSystemTheme();
9278
+ return jsx(DesignSystemAntDConfigProvider, {
9279
+ children: jsx(DatePicker.YearPicker, {
9280
+ css: styles,
9281
+ ...props,
9282
+ ref: ref,
9283
+ popupStyle: {
9284
+ ...getDropdownStyles$1(theme),
9285
+ ...(props.popupStyle || {})
9286
+ }
9287
+ })
9288
+ });
9289
+ });
9290
+
9291
+ /**
9292
+ * `LegacyDatePicker` was added as a temporary solution pending an
8140
9293
  * official Du Bois replacement. Use with caution.
8141
9294
  * @deprecated
8142
9295
  */
@@ -8396,23 +9549,170 @@ const SectionHeader = _ref => {
8396
9549
  children: children
8397
9550
  });
8398
9551
  };
8399
-
8400
- const Separator = props => {
8401
- const {
8402
- theme
8403
- } = useDesignSystemTheme();
8404
- return jsx("div", {
8405
- ...props,
8406
- css: /*#__PURE__*/css({
8407
- display: 'flex',
8408
- flexDirection: 'row',
8409
- alignItems: 'center',
8410
- margin: `${theme.spacing.xs}px ${theme.spacing.lg / 2}px`,
8411
- border: `1px solid ${theme.colors.borderDecorative}`,
8412
- borderBottom: 0,
8413
- alignSelf: 'stretch'
8414
- }, process.env.NODE_ENV === "production" ? "" : ";label:Separator;")
9552
+
9553
+ const Separator = props => {
9554
+ const {
9555
+ theme
9556
+ } = useDesignSystemTheme();
9557
+ return jsx("div", {
9558
+ ...props,
9559
+ css: /*#__PURE__*/css({
9560
+ display: 'flex',
9561
+ flexDirection: 'row',
9562
+ alignItems: 'center',
9563
+ margin: `${theme.spacing.xs}px ${theme.spacing.lg / 2}px`,
9564
+ border: `1px solid ${theme.colors.borderDecorative}`,
9565
+ borderBottom: 0,
9566
+ alignSelf: 'stretch'
9567
+ }, process.env.NODE_ENV === "production" ? "" : ";label:Separator;")
9568
+ });
9569
+ };
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);
8415
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
+ }
8416
9716
  };
8417
9717
 
8418
9718
  const getComboboxContentWrapperStyles = (theme, _ref) => {
@@ -8470,6 +9770,34 @@ const getComboboxOptionItemWrapperStyles = theme => {
8470
9770
  }
8471
9771
  }), process.env.NODE_ENV === "production" ? "" : ";label:getComboboxOptionItemWrapperStyles;");
8472
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
+ };
8473
9801
  const getInfoIconStyles = theme => {
8474
9802
  return /*#__PURE__*/css({
8475
9803
  paddingLeft: theme.spacing.xs,
@@ -8496,9 +9824,9 @@ const getCheckboxStyles = (theme, textOverflowMode) => {
8496
9824
  alignSelf: 'flex-start',
8497
9825
  display: 'inline-flex',
8498
9826
  alignItems: 'center',
8499
- ...(useNewCheckboxStyles && {
9827
+ ...(useNewCheckboxStyles ? {
8500
9828
  paddingTop: theme.spacing.xs / 2
8501
- })
9829
+ } : {})
8502
9830
  },
8503
9831
  '& > span:last-of-type': {
8504
9832
  paddingRight: 0,
@@ -8519,18 +9847,52 @@ const getFooterStyles = theme => {
8519
9847
  background: theme.colors.backgroundPrimary,
8520
9848
  padding: `${theme.spacing.sm}px ${theme.spacing.lg / 2}px ${theme.spacing.sm}px ${theme.spacing.lg / 2}px`,
8521
9849
  position: 'sticky',
8522
- bottom: 0
9850
+ bottom: 0,
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
+ }
8523
9862
  }, process.env.NODE_ENV === "production" ? "" : ";label:getFooterStyles;");
8524
9863
  };
9864
+ const getSelectItemWithHintColumnStyles = function () {
9865
+ let hintColumnWidthPercent = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 50;
9866
+ return /*#__PURE__*/css({
9867
+ flexGrow: 1,
9868
+ display: 'inline-grid',
9869
+ gridTemplateColumns: `${100 - hintColumnWidthPercent}% ${hintColumnWidthPercent}%`
9870
+ }, process.env.NODE_ENV === "production" ? "" : ";label:getSelectItemWithHintColumnStyles;");
9871
+ };
9872
+ const getHintColumnStyles = (theme, disabled, textOverflowMode) => {
9873
+ return /*#__PURE__*/css({
9874
+ color: theme.colors.textSecondary,
9875
+ fontSize: theme.typography.fontSizeSm,
9876
+ textAlign: 'right',
9877
+ ...(disabled && {
9878
+ color: theme.colors.actionDisabledText
9879
+ }),
9880
+ ...(textOverflowMode === 'ellipsis' && {
9881
+ textOverflow: 'ellipsis',
9882
+ whiteSpace: 'nowrap',
9883
+ overflow: 'hidden'
9884
+ })
9885
+ }, process.env.NODE_ENV === "production" ? "" : ";label:getHintColumnStyles;");
9886
+ };
8525
9887
 
8526
- 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)."; }
8527
9889
  var _ref2$g = process.env.NODE_ENV === "production" ? {
8528
9890
  name: "1ij1o5n",
8529
9891
  styles: "display:flex;flex-direction:column;align-items:flex-start;justify-content:center"
8530
9892
  } : {
8531
9893
  name: "189loa6-DialogComboboxContent",
8532
9894
  styles: "display:flex;flex-direction:column;align-items:flex-start;justify-content:center;label:DialogComboboxContent;",
8533
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$o
9895
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$n
8534
9896
  };
8535
9897
  const DialogComboboxContent = /*#__PURE__*/forwardRef((_ref, forwardedRef) => {
8536
9898
  let {
@@ -8572,6 +9934,7 @@ const DialogComboboxContent = /*#__PURE__*/forwardRef((_ref, forwardedRef) => {
8572
9934
  }
8573
9935
  const contentRef = useRef(null);
8574
9936
  useImperativeHandle(forwardedRef, () => contentRef.current);
9937
+ const realContentWidth = matchTriggerWidth ? 'var(--radix-popover-trigger-width)' : width;
8575
9938
  useEffect(() => {
8576
9939
  if (rememberLastScrollPosition) {
8577
9940
  if (!isOpen && contentRef.current) {
@@ -8596,10 +9959,10 @@ const DialogComboboxContent = /*#__PURE__*/forwardRef((_ref, forwardedRef) => {
8596
9959
  return;
8597
9960
  }, [isOpen, rememberLastScrollPosition, lastScrollPosition]);
8598
9961
  useEffect(() => {
8599
- if (contentWidth !== width) {
8600
- setContentWidth(width);
9962
+ if (contentWidth !== realContentWidth) {
9963
+ setContentWidth(realContentWidth);
8601
9964
  }
8602
- }, [width, contentWidth, setContentWidth]);
9965
+ }, [realContentWidth, contentWidth, setContentWidth]);
8603
9966
  useEffect(() => {
8604
9967
  if (textOverflowMode !== contextTextOverflowMode) {
8605
9968
  setTextOverflowMode(textOverflowMode ? textOverflowMode : 'multiline');
@@ -8617,7 +9980,7 @@ const DialogComboboxContent = /*#__PURE__*/forwardRef((_ref, forwardedRef) => {
8617
9980
  maxWidth,
8618
9981
  minHeight,
8619
9982
  minWidth,
8620
- width: matchTriggerWidth ? 'var(--radix-popover-trigger-width)' : width
9983
+ width: realContentWidth
8621
9984
  }),
8622
9985
  align: align,
8623
9986
  side: side,
@@ -8695,187 +10058,41 @@ const DialogComboboxHintRow = _ref => {
8695
10058
  } = useDesignSystemTheme();
8696
10059
  return jsx("div", {
8697
10060
  css: /*#__PURE__*/css({
10061
+ minWidth: '100%',
8698
10062
  color: theme.colors.textSecondary,
8699
- fontSize: theme.typography.fontSizeSm,
8700
- '[data-disabled] &': {
8701
- color: theme.colors.actionDisabledText
8702
- }
8703
- }, process.env.NODE_ENV === "production" ? "" : ";label:DialogComboboxHintRow;"),
8704
- children: children
8705
- });
8706
- };
8707
-
8708
- const DialogComboboxOptionListContext = /*#__PURE__*/createContext({
8709
- isInsideDialogComboboxOptionList: false,
8710
- lookAhead: '',
8711
- setLookAhead: () => {}
8712
- });
8713
- const DialogComboboxOptionListContextProvider = _ref => {
8714
- let {
8715
- children,
8716
- value
8717
- } = _ref;
8718
- return jsx(DialogComboboxOptionListContext.Provider, {
8719
- value: value,
8720
- children: children
8721
- });
8722
- };
8723
-
8724
- const getDialogComboboxOptionLabelWidth = (theme, width) => {
8725
- const paddingLeft = theme.spacing.xs + theme.spacing.sm;
8726
- const iconWidth = theme.spacing.md;
8727
- const labelMarginLeft = theme.spacing.sm;
8728
- if (typeof width === 'string') {
8729
- return `calc(${width} - ${paddingLeft + iconWidth + labelMarginLeft} px)`;
8730
- }
8731
- return width - paddingLeft + iconWidth + labelMarginLeft;
8732
- };
8733
- function isOptionDisabled(option) {
8734
- return option.hasAttribute('disabled') && option.getAttribute('disabled') !== 'false';
8735
- }
8736
- function highlightFirstNonDisabledOption(firstOptionItem) {
8737
- let startAt = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'start';
8738
- let previousSelection = arguments.length > 2 ? arguments[2] : undefined;
8739
- if (isOptionDisabled(firstOptionItem)) {
8740
- const firstHighlightableOption = findClosestOptionSibling(firstOptionItem, startAt === 'end' ? 'previous' : 'next');
8741
- if (firstHighlightableOption) {
8742
- highlightOption(firstHighlightableOption, previousSelection);
8743
- }
8744
- } else {
8745
- highlightOption(firstOptionItem, previousSelection);
8746
- }
8747
- }
8748
- function findClosestOptionSibling(element, direction) {
8749
- const nextSibling = direction === 'previous' ? element.previousElementSibling : element.nextElementSibling;
8750
- if ((nextSibling === null || nextSibling === void 0 ? void 0 : nextSibling.getAttribute('role')) === 'option') {
8751
- if (isOptionDisabled(nextSibling)) {
8752
- return findClosestOptionSibling(nextSibling, direction);
8753
- }
8754
- return nextSibling;
8755
- } else if (nextSibling) {
8756
- let nextOptionSibling = nextSibling;
8757
- while (nextOptionSibling && nextOptionSibling.getAttribute('role') !== 'option' || isOptionDisabled(nextOptionSibling)) {
8758
- nextOptionSibling = direction === 'previous' ? nextOptionSibling.previousElementSibling : nextOptionSibling.nextElementSibling;
8759
- }
8760
- return nextOptionSibling;
8761
- }
8762
- return null;
8763
- }
8764
- const highlightOption = function (currentSelection, prevSelection) {
8765
- var _currentSelection$scr;
8766
- let focus = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
8767
- if (prevSelection) {
8768
- prevSelection.setAttribute('tabIndex', '-1');
8769
- prevSelection.setAttribute('data-highlighted', 'false');
8770
- }
8771
- if (focus) {
8772
- currentSelection.focus();
8773
- }
8774
- currentSelection.setAttribute('tabIndex', '0');
8775
- currentSelection.setAttribute('data-highlighted', 'true');
8776
- (_currentSelection$scr = currentSelection.scrollIntoView) === null || _currentSelection$scr === void 0 || _currentSelection$scr.call(currentSelection, {
8777
- block: 'center'
8778
- });
8779
- };
8780
- const findHighlightedOption = options => {
8781
- var _options$find;
8782
- return (_options$find = options.find(option => option.getAttribute('data-highlighted') === 'true')) !== null && _options$find !== void 0 ? _options$find : undefined;
8783
- };
8784
- const getContentOptions = element => {
8785
- var _element$closest;
8786
- const options = (_element$closest = element.closest('[data-combobox-option-list="true"]')) === null || _element$closest === void 0 ? void 0 : _element$closest.querySelectorAll('[role="option"]');
8787
- return options ? Array.from(options) : undefined;
8788
- };
8789
- const getKeyboardNavigationFunctions = (handleSelect, _ref) => {
8790
- let {
8791
- onKeyDown,
8792
- onMouseEnter,
8793
- onDefaultKeyDown
8794
- } = _ref;
8795
- return {
8796
- onKeyDown: e => {
8797
- onKeyDown === null || onKeyDown === void 0 || onKeyDown(e);
8798
- switch (e.key) {
8799
- case 'ArrowDown':
8800
- e.preventDefault();
8801
- const nextSibling = findClosestOptionSibling(e.currentTarget, 'next');
8802
- if (nextSibling) {
8803
- highlightOption(nextSibling, e.currentTarget);
8804
- } else {
8805
- var _getContentOptions;
8806
- const firstOption = (_getContentOptions = getContentOptions(e.currentTarget)) === null || _getContentOptions === void 0 ? void 0 : _getContentOptions[0];
8807
- if (firstOption) {
8808
- highlightFirstNonDisabledOption(firstOption, 'start', e.currentTarget);
8809
- }
8810
- }
8811
- break;
8812
- case 'ArrowUp':
8813
- e.preventDefault();
8814
- const previousSibling = findClosestOptionSibling(e.currentTarget, 'previous');
8815
- if (previousSibling) {
8816
- highlightOption(previousSibling, e.currentTarget);
8817
- } else {
8818
- var _getContentOptions2;
8819
- const lastOption = (_getContentOptions2 = getContentOptions(e.currentTarget)) === null || _getContentOptions2 === void 0 ? void 0 : _getContentOptions2.slice(-1)[0];
8820
- if (lastOption) {
8821
- highlightFirstNonDisabledOption(lastOption, 'end', e.currentTarget);
8822
- }
8823
- }
8824
- break;
8825
- case 'Enter':
8826
- e.preventDefault();
8827
- handleSelect(e);
8828
- break;
8829
- default:
8830
- onDefaultKeyDown === null || onDefaultKeyDown === void 0 || onDefaultKeyDown(e);
8831
- break;
8832
- }
8833
- },
8834
- onMouseEnter: e => {
8835
- onMouseEnter === null || onMouseEnter === void 0 || onMouseEnter(e);
8836
- resetTabIndexToFocusedElement(e.currentTarget);
8837
- }
8838
- };
8839
- };
8840
- const resetTabIndexToFocusedElement = elem => {
8841
- var _elem$closest;
8842
- (_elem$closest = elem.closest('[role="list"]')) === null || _elem$closest === void 0 || _elem$closest.querySelectorAll('[role="option"]').forEach(el => {
8843
- el.setAttribute('tabIndex', '-1');
8844
- });
8845
- elem.setAttribute('tabIndex', '0');
8846
- elem.focus();
8847
- };
8848
- const dialogComboboxLookAheadKeyDown = (e, setLookAhead, lookAhead) => {
8849
- var _e$currentTarget$pare, _e$currentTarget$pare2;
8850
- if (e.key === 'Escape' || e.key === 'Tab' || e.key === 'Enter') {
8851
- return;
8852
- }
8853
- e.preventDefault();
8854
- 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 : []);
8855
- // Look for the first sibling that starts with the pressed key + recently pressed keys (lookAhead, cleared after 1.5 seconds of inactivity)
8856
- const nextSiblingIndex = siblings.findIndex(sibling => {
8857
- var _sibling$textContent$, _sibling$textContent;
8858
- 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$ : '';
8859
- return siblingLabel.startsWith(lookAhead + e.key);
10063
+ fontSize: theme.typography.fontSizeSm,
10064
+ '[data-disabled] &': {
10065
+ color: theme.colors.actionDisabledText
10066
+ }
10067
+ }, process.env.NODE_ENV === "production" ? "" : ";label:DialogComboboxHintRow;"),
10068
+ children: children
8860
10069
  });
8861
- if (nextSiblingIndex !== -1) {
8862
- const nextSibling = siblings[nextSiblingIndex];
8863
- nextSibling.focus();
8864
- if (setLookAhead) {
8865
- setLookAhead(lookAhead + e.key);
8866
- }
8867
- resetTabIndexToFocusedElement(nextSibling);
8868
- }
8869
10070
  };
8870
10071
 
8871
- 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)."; }
10072
+ const DialogComboboxOptionListContext = /*#__PURE__*/createContext({
10073
+ isInsideDialogComboboxOptionList: false,
10074
+ lookAhead: '',
10075
+ setLookAhead: () => {}
10076
+ });
10077
+ const DialogComboboxOptionListContextProvider = _ref => {
10078
+ let {
10079
+ children,
10080
+ value
10081
+ } = _ref;
10082
+ return jsx(DialogComboboxOptionListContext.Provider, {
10083
+ value: value,
10084
+ children: children
10085
+ });
10086
+ };
10087
+
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)."; }
8872
10089
  var _ref2$f = process.env.NODE_ENV === "production" ? {
8873
10090
  name: "1pgv7dg",
8874
10091
  styles: "display:flex;flex-direction:column;align-items:flex-start;width:100%"
8875
10092
  } : {
8876
10093
  name: "1dtf9pj-DialogComboboxOptionList",
8877
10094
  styles: "display:flex;flex-direction:column;align-items:flex-start;width:100%;label:DialogComboboxOptionList;",
8878
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$n
10095
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$m
8879
10096
  };
8880
10097
  const DialogComboboxOptionList = /*#__PURE__*/forwardRef((_ref, forwardedRef) => {
8881
10098
  let {
@@ -8966,47 +10183,14 @@ const useDialogComboboxOptionListContext = () => {
8966
10183
  return useContext(DialogComboboxOptionListContext);
8967
10184
  };
8968
10185
 
8969
- const InfoTooltip = _ref => {
8970
- let {
8971
- title,
8972
- tooltipProps,
8973
- iconTitle,
8974
- isKeyboardFocusable = true,
8975
- ...iconProps
8976
- } = _ref;
8977
- const {
8978
- theme
8979
- } = useDesignSystemTheme();
8980
- return jsx(Tooltip, {
8981
- title: title,
8982
- ...tooltipProps,
8983
- children: jsx("span", {
8984
- style: {
8985
- display: 'inline-flex'
8986
- },
8987
- tabIndex: isKeyboardFocusable ? 0 : -1,
8988
- children: jsx(InfoCircleOutlined, {
8989
- "aria-hidden": "false",
8990
- title: iconTitle,
8991
- "aria-label": iconTitle,
8992
- css: /*#__PURE__*/css({
8993
- fontSize: theme.typography.fontSizeSm,
8994
- color: theme.colors.textSecondary
8995
- }, process.env.NODE_ENV === "production" ? "" : ";label:InfoTooltip;"),
8996
- ...iconProps
8997
- })
8998
- })
8999
- });
9000
- };
9001
-
9002
- 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)."; }
9003
10187
  var _ref2$e = process.env.NODE_ENV === "production" ? {
9004
10188
  name: "zjik7",
9005
10189
  styles: "display:flex"
9006
10190
  } : {
9007
10191
  name: "tiu4as-content",
9008
10192
  styles: "display:flex;label:content;",
9009
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$m
10193
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$l
9010
10194
  };
9011
10195
  const DuboisDialogComboboxOptionListCheckboxItem = /*#__PURE__*/forwardRef((_ref, ref) => {
9012
10196
  let {
@@ -9051,7 +10235,7 @@ const DuboisDialogComboboxOptionListCheckboxItem = /*#__PURE__*/forwardRef((_ref
9051
10235
  placement: "right",
9052
10236
  children: jsx("span", {
9053
10237
  css: getInfoIconStyles(theme),
9054
- children: jsx(InfoIcon, {
10238
+ children: jsx(InfoIcon$1, {
9055
10239
  "aria-label": "Disabled status information",
9056
10240
  "aria-hidden": "false"
9057
10241
  })
@@ -9096,7 +10280,9 @@ const DuboisDialogComboboxOptionListCheckboxItem = /*#__PURE__*/forwardRef((_ref
9096
10280
  e.stopPropagation();
9097
10281
  handleSelect(e);
9098
10282
  },
9099
- children: content
10283
+ children: jsx("div", {
10284
+ children: content
10285
+ })
9100
10286
  })
9101
10287
  });
9102
10288
  });
@@ -9105,7 +10291,7 @@ DuboisDialogComboboxOptionListCheckboxItem.defaultProps = {
9105
10291
  };
9106
10292
  const DialogComboboxOptionListCheckboxItem = DuboisDialogComboboxOptionListCheckboxItem;
9107
10293
 
9108
- 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)."; }
9109
10295
  const extractTextContent = node => {
9110
10296
  if (typeof node === 'string' || typeof node === 'number') {
9111
10297
  return node.toString();
@@ -9138,7 +10324,7 @@ var _ref2$d = process.env.NODE_ENV === "production" ? {
9138
10324
  } : {
9139
10325
  name: "csdki6-DialogComboboxOptionListSearch",
9140
10326
  styles: "width:100%;label:DialogComboboxOptionListSearch;",
9141
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$l
10327
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$k
9142
10328
  };
9143
10329
  const DialogComboboxOptionListSearch = /*#__PURE__*/forwardRef((_ref, forwardedRef) => {
9144
10330
  var _filteredChildren, _filteredChildren2;
@@ -9148,6 +10334,8 @@ const DialogComboboxOptionListSearch = /*#__PURE__*/forwardRef((_ref, forwardedR
9148
10334
  virtualized,
9149
10335
  children,
9150
10336
  hasWrapper,
10337
+ controlledValue,
10338
+ setControlledValue,
9151
10339
  ...restProps
9152
10340
  } = _ref;
9153
10341
  const {
@@ -9164,10 +10352,11 @@ const DialogComboboxOptionListSearch = /*#__PURE__*/forwardRef((_ref, forwardedR
9164
10352
  if (!virtualized) {
9165
10353
  setSearchValue(event.target.value.toLowerCase());
9166
10354
  }
10355
+ setControlledValue === null || setControlledValue === void 0 || setControlledValue(event.target.value);
9167
10356
  onSearch === null || onSearch === void 0 || onSearch(event.target.value);
9168
10357
  };
9169
10358
  let filteredChildren = children;
9170
- if (searchValue && !virtualized) {
10359
+ if (searchValue && !virtualized && controlledValue === undefined) {
9171
10360
  filteredChildren = filterChildren(hasWrapper ? children.props.children : children, searchValue);
9172
10361
  if (hasWrapper) {
9173
10362
  filteredChildren = /*#__PURE__*/React__default.cloneElement(children, {}, filteredChildren);
@@ -9256,7 +10445,7 @@ const DialogComboboxOptionListSearch = /*#__PURE__*/forwardRef((_ref, forwardedR
9256
10445
  handleOnKeyDown(event);
9257
10446
  (_restProps$onKeyDown = restProps.onKeyDown) === null || _restProps$onKeyDown === void 0 || _restProps$onKeyDown.call(restProps, event);
9258
10447
  },
9259
- value: searchValue,
10448
+ value: controlledValue !== null && controlledValue !== void 0 ? controlledValue : searchValue,
9260
10449
  ...restProps
9261
10450
  })
9262
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", {
@@ -9286,14 +10475,14 @@ const useSelectContext = () => {
9286
10475
  return useContext(SelectContext);
9287
10476
  };
9288
10477
 
9289
- 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)."; }
9290
10479
  var _ref2$c = process.env.NODE_ENV === "production" ? {
9291
10480
  name: "zjik7",
9292
10481
  styles: "display:flex"
9293
10482
  } : {
9294
10483
  name: "tiu4as-content",
9295
10484
  styles: "display:flex;label:content;",
9296
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$k
10485
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$j
9297
10486
  };
9298
10487
  var _ref3$6 = process.env.NODE_ENV === "production" ? {
9299
10488
  name: "kjj0ot",
@@ -9301,7 +10490,7 @@ var _ref3$6 = process.env.NODE_ENV === "production" ? {
9301
10490
  } : {
9302
10491
  name: "15osdio-DuboisDialogComboboxOptionListSelectItem",
9303
10492
  styles: "padding-top:2px;label:DuboisDialogComboboxOptionListSelectItem;",
9304
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$k
10493
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$j
9305
10494
  };
9306
10495
  const DuboisDialogComboboxOptionListSelectItem = /*#__PURE__*/forwardRef((_ref, ref) => {
9307
10496
  let {
@@ -9309,8 +10498,12 @@ const DuboisDialogComboboxOptionListSelectItem = /*#__PURE__*/forwardRef((_ref,
9309
10498
  checked,
9310
10499
  disabledReason,
9311
10500
  onChange,
10501
+ hintColumn,
10502
+ hintColumnWidthPercent = 50,
9312
10503
  children,
9313
10504
  _TYPE,
10505
+ icon,
10506
+ dangerouslyHideCheck,
9314
10507
  ...props
9315
10508
  } = _ref;
9316
10509
  const {
@@ -9388,7 +10581,7 @@ const DuboisDialogComboboxOptionListSelectItem = /*#__PURE__*/forwardRef((_ref,
9388
10581
  placement: "right",
9389
10582
  children: jsx("span", {
9390
10583
  css: getInfoIconStyles(theme),
9391
- children: jsx(InfoIcon, {
10584
+ children: jsx(InfoIcon$1, {
9392
10585
  "aria-label": "Disabled status information",
9393
10586
  "aria-hidden": "false"
9394
10587
  })
@@ -9420,31 +10613,36 @@ const DuboisDialogComboboxOptionListSelectItem = /*#__PURE__*/forwardRef((_ref,
9420
10613
  }),
9421
10614
  role: "option",
9422
10615
  "aria-selected": checked,
9423
- children: [checked ? jsx(CheckIcon, {
10616
+ children: [!dangerouslyHideCheck && (checked ? jsx(CheckIcon, {
9424
10617
  css: _ref3$6
9425
10618
  }) : jsx("div", {
9426
10619
  style: {
9427
10620
  width: 16,
9428
10621
  flexShrink: 0
9429
10622
  }
9430
- }), jsx("label", {
9431
- style: {
9432
- marginLeft: theme.spacing.sm,
9433
- fontSize: theme.typography.fontSizeBase,
9434
- fontStyle: 'normal',
9435
- fontWeight: 400,
9436
- cursor: 'pointer',
9437
- overflow: 'hidden',
9438
- wordBreak: 'break-word',
9439
- ...(textOverflowMode === 'ellipsis' && {
9440
- textOverflow: 'ellipsis',
9441
- whiteSpace: 'nowrap'
9442
- }),
9443
- ...(contentWidth ? {
9444
- width: getDialogComboboxOptionLabelWidth(theme, contentWidth)
9445
- } : {})
9446
- },
9447
- children: content
10623
+ })), jsxs("label", {
10624
+ css: getComboboxOptionLabelStyles({
10625
+ theme,
10626
+ dangerouslyHideCheck,
10627
+ textOverflowMode,
10628
+ contentWidth,
10629
+ hasHintColumn: Boolean(hintColumn)
10630
+ }),
10631
+ children: [icon && jsx("span", {
10632
+ style: {
10633
+ position: 'relative',
10634
+ top: 1,
10635
+ marginRight: theme.spacing.sm,
10636
+ color: theme.colors.textSecondary
10637
+ },
10638
+ children: icon
10639
+ }), hintColumn ? jsxs("span", {
10640
+ css: getSelectItemWithHintColumnStyles(hintColumnWidthPercent),
10641
+ children: [content, jsx("span", {
10642
+ css: getHintColumnStyles(theme, Boolean(props.disabled), textOverflowMode),
10643
+ children: hintColumn
10644
+ })]
10645
+ }) : content]
9448
10646
  })]
9449
10647
  });
9450
10648
  });
@@ -9453,14 +10651,14 @@ DuboisDialogComboboxOptionListSelectItem.defaultProps = {
9453
10651
  };
9454
10652
  const DialogComboboxOptionListSelectItem = DuboisDialogComboboxOptionListSelectItem;
9455
10653
 
9456
- 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)."; }
9457
10655
  var _ref2$b = process.env.NODE_ENV === "production" ? {
9458
10656
  name: "1pgv7dg",
9459
10657
  styles: "display:flex;flex-direction:column;align-items:flex-start;width:100%"
9460
10658
  } : {
9461
10659
  name: "18t0chz-DialogComboboxOptionControlledList",
9462
10660
  styles: "display:flex;flex-direction:column;align-items:flex-start;width:100%;label:DialogComboboxOptionControlledList;",
9463
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$j
10661
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$i
9464
10662
  };
9465
10663
  const DialogComboboxOptionControlledList = /*#__PURE__*/forwardRef((_ref, forwardedRef) => {
9466
10664
  let {
@@ -9914,6 +11112,7 @@ const DialogComboboxTrigger = /*#__PURE__*/forwardRef((_ref, forwardedRef) => {
9914
11112
  title: customSelectContent !== null && customSelectContent !== void 0 ? customSelectContent : displayedValues,
9915
11113
  children: triggerContent
9916
11114
  }) : triggerContent, removable && jsx(Button, {
11115
+ componentId: "codegen_design-system_src_design-system_dialogcombobox_dialogcomboboxtrigger.tsx_355",
9917
11116
  "aria-label": `Remove ${label}`,
9918
11117
  onClick: handleRemove,
9919
11118
  dangerouslySetForceIconStyles: true,
@@ -9924,6 +11123,18 @@ const DialogComboboxTrigger = /*#__PURE__*/forwardRef((_ref, forwardedRef) => {
9924
11123
  })]
9925
11124
  });
9926
11125
  });
11126
+ /**
11127
+ * A custom button trigger that can be wrapped around any button.
11128
+ */
11129
+ const DialogComboboxCustomButtonTriggerWrapper = _ref2 => {
11130
+ let {
11131
+ children
11132
+ } = _ref2;
11133
+ return jsx(Popover$1.Trigger, {
11134
+ asChild: true,
11135
+ children: children
11136
+ });
11137
+ };
9927
11138
 
9928
11139
  const Spacer = _ref => {
9929
11140
  let {
@@ -9951,7 +11162,7 @@ const Spacer = _ref => {
9951
11162
  });
9952
11163
  };
9953
11164
 
9954
- 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)."; }
9955
11166
  const DEFAULT_WIDTH$1 = 320;
9956
11167
  const MIN_WIDTH = 320;
9957
11168
  const MAX_WIDTH = '90vw';
@@ -9964,7 +11175,7 @@ var _ref2$a = process.env.NODE_ENV === "production" ? {
9964
11175
  } : {
9965
11176
  name: "h5yqvj-Content",
9966
11177
  styles: "flex-grow:1;margin-bottom:0;margin-top:0;white-space:nowrap;overflow:hidden;label:Content;",
9967
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$i
11178
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$h
9968
11179
  };
9969
11180
  const Content$3 = _ref => {
9970
11181
  let {
@@ -10100,6 +11311,7 @@ const Content$3 = _ref => {
10100
11311
  marginLeft: theme.spacing.xs
10101
11312
  }, process.env.NODE_ENV === "production" ? "" : ";label:Content;"),
10102
11313
  children: jsx(Button, {
11314
+ componentId: "codegen_design-system_src_design-system_drawer_drawer.tsx_219",
10103
11315
  "aria-label": "Close",
10104
11316
  icon: jsx(CloseIcon, {})
10105
11317
  })
@@ -10181,7 +11393,7 @@ const Dropdown = _ref => {
10181
11393
  });
10182
11394
  };
10183
11395
 
10184
- 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)."; }
10185
11397
  const {
10186
11398
  Title: Title$1,
10187
11399
  Paragraph
@@ -10229,7 +11441,7 @@ var _ref$5 = process.env.NODE_ENV === "production" ? {
10229
11441
  } : {
10230
11442
  name: "11tid6c-Empty",
10231
11443
  styles: "display:flex;justify-content:center;label:Empty;",
10232
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$h
11444
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$g
10233
11445
  };
10234
11446
  const Empty = props => {
10235
11447
  const {
@@ -10379,7 +11591,7 @@ const getMessageStyles = (clsPrefix, theme) => {
10379
11591
  const VALIDATION_STATE_ICONS = {
10380
11592
  error: DangerIcon,
10381
11593
  success: CheckCircleIcon$1,
10382
- warning: WarningIcon$1
11594
+ warning: WarningIcon
10383
11595
  };
10384
11596
  function FormMessage(_ref) {
10385
11597
  let {
@@ -10435,7 +11647,7 @@ const Hint = props => {
10435
11647
  });
10436
11648
  };
10437
11649
 
10438
- 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)."; }
10439
11651
  const getLabelStyles$1 = (classNamePrefix, theme, _ref) => {
10440
11652
  let {
10441
11653
  inline
@@ -10459,15 +11671,16 @@ var _ref2$9 = process.env.NODE_ENV === "production" ? {
10459
11671
  } : {
10460
11672
  name: "53ggpt-Label",
10461
11673
  styles: "display:flex;align-items:center;label:Label;",
10462
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$g
11674
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$f
10463
11675
  };
10464
11676
  const Label = props => {
10465
11677
  const {
10466
11678
  children,
10467
11679
  className,
10468
11680
  inline,
11681
+ required,
10469
11682
  ...restProps
10470
- } = props;
11683
+ } = props; // Destructure the new prop
10471
11684
  const {
10472
11685
  classNamePrefix,
10473
11686
  theme
@@ -10478,9 +11691,12 @@ const Label = props => {
10478
11691
  }),
10479
11692
  className: classnames(`${classNamePrefix}-label`, className),
10480
11693
  ...restProps,
10481
- children: jsx("span", {
11694
+ children: jsxs("span", {
10482
11695
  css: _ref2$9,
10483
- children: children
11696
+ children: [children, required && jsx("span", {
11697
+ "aria-hidden": "true",
11698
+ children: "*"
11699
+ })]
10484
11700
  })
10485
11701
  });
10486
11702
  };
@@ -10601,7 +11817,7 @@ const getCommonRadioGroupStyles = _ref2 => {
10601
11817
  '& > label': {
10602
11818
  ...(useNewStyles && {
10603
11819
  [`&.${classNamePrefix}-radio-wrapper-disabled > span`]: {
10604
- color: theme.colors.textPrimary
11820
+ color: theme.colors.actionDisabledText
10605
11821
  }
10606
11822
  })
10607
11823
  },
@@ -10895,7 +12111,8 @@ function getSelectEmotionStyles(_ref) {
10895
12111
  },
10896
12112
  // Note: This supports search, which we don't support. The styles here support legacy usages.
10897
12113
  [classSearchClear]: {
10898
- right: 24
12114
+ right: 24,
12115
+ backgroundColor: 'transparent'
10899
12116
  },
10900
12117
  [`&${classFocused}`]: {
10901
12118
  [classSelector]: {
@@ -11075,7 +12292,6 @@ function getSelectEmotionStyles(_ref) {
11075
12292
  }
11076
12293
  function getDropdownStyles(clsPrefix, theme) {
11077
12294
  let useNewDropdownStyle = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
11078
- let maxHeight = arguments.length > 3 ? arguments[3] : undefined;
11079
12295
  const classItem = `.${clsPrefix}-item-option`;
11080
12296
  const classItemActive = `.${clsPrefix}-item-option-active`;
11081
12297
  const classItemSelected = `.${clsPrefix}-item-option-selected`;
@@ -11135,9 +12351,6 @@ function getDropdownStyles(clsPrefix, theme) {
11135
12351
  left: -CONTENT_LEFT_PADDING / 2
11136
12352
  })
11137
12353
  },
11138
- '.rc-virtual-list-holder': {
11139
- maxHeight
11140
- },
11141
12354
  ...getAnimationCss(theme.options.enableAnimation),
11142
12355
  ...getDarkModePortalStyles(theme)
11143
12356
  };
@@ -11252,7 +12465,8 @@ function DuboisSelect(_ref2, ref) {
11252
12465
  }),
11253
12466
  children: "No results found"
11254
12467
  }),
11255
- dropdownClassName: css$1([getDropdownStyles(clsPrefix, theme, useNewSelectStyles, MAX_HEIGHT), dropdownClassName]),
12468
+ dropdownClassName: css$1([getDropdownStyles(clsPrefix, theme, useNewSelectStyles), dropdownClassName]),
12469
+ listHeight: MAX_HEIGHT,
11256
12470
  maxTagPlaceholder: items => `+ ${items.length} more`,
11257
12471
  mode: mode,
11258
12472
  options: options,
@@ -11344,67 +12558,256 @@ const SelectV2 = props => {
11344
12558
  isSelect: true,
11345
12559
  placeholder
11346
12560
  },
11347
- children: jsx(DialogCombobox, {
11348
- value: value ? [value] : [],
11349
- ...restProps,
11350
- children: children
11351
- })
11352
- });
12561
+ children: jsx(DialogCombobox, {
12562
+ value: value ? [value] : [],
12563
+ ...restProps,
12564
+ children: children
12565
+ })
12566
+ });
12567
+ };
12568
+
12569
+ const SelectV2Content = /*#__PURE__*/forwardRef((_ref, ref) => {
12570
+ let {
12571
+ children,
12572
+ minWidth = 150,
12573
+ ...restProps
12574
+ } = _ref;
12575
+ return jsx(DialogComboboxContent, {
12576
+ minWidth: minWidth,
12577
+ ...restProps,
12578
+ ref: ref,
12579
+ children: jsx(DialogComboboxOptionList, {
12580
+ children: children
12581
+ })
12582
+ });
12583
+ });
12584
+
12585
+ const SelectV2Option = /*#__PURE__*/forwardRef((props, ref) => {
12586
+ const {
12587
+ value
12588
+ } = useDialogComboboxContext();
12589
+ return jsx(DialogComboboxOptionListSelectItem, {
12590
+ checked: value && value[0] === props.value,
12591
+ ...props,
12592
+ ref: ref
12593
+ });
12594
+ });
12595
+
12596
+ const SelectV2OptionGroup = props => {
12597
+ const {
12598
+ name,
12599
+ children,
12600
+ ...restProps
12601
+ } = props;
12602
+ return jsxs(Fragment, {
12603
+ children: [jsx(DialogComboboxSectionHeader, {
12604
+ ...restProps,
12605
+ children: name
12606
+ }), children]
12607
+ });
12608
+ };
12609
+
12610
+ const SelectV2Trigger = /*#__PURE__*/forwardRef((props, ref) => {
12611
+ const {
12612
+ children,
12613
+ ...restProps
12614
+ } = props;
12615
+ return jsx(DialogComboboxTrigger, {
12616
+ allowClear: false,
12617
+ ...restProps,
12618
+ ref: ref,
12619
+ children: children
12620
+ });
12621
+ });
12622
+
12623
+ const getSwitchWithLabelStyles = _ref => {
12624
+ let {
12625
+ clsPrefix,
12626
+ theme
12627
+ } = _ref;
12628
+ // Default value
12629
+ const SWITCH_WIDTH = 28;
12630
+ const styles = {
12631
+ display: 'flex',
12632
+ alignItems: 'center',
12633
+ // Switch is Off
12634
+ [`&.${clsPrefix}-switch`]: {
12635
+ backgroundColor: theme.colors.backgroundPrimary,
12636
+ border: `1px solid ${theme.colors.actionDefaultBorderDefault}`,
12637
+ [`.${clsPrefix}-switch-handle:before`]: {
12638
+ boxShadow: `0px 0px 0px 1px ${theme.colors.actionDefaultBorderDefault}`,
12639
+ transition: 'none'
12640
+ },
12641
+ [`&:hover:not(.${clsPrefix}-switch-disabled)`]: {
12642
+ backgroundColor: theme.colors.actionDefaultBackgroundHover,
12643
+ border: `1px solid ${theme.colors.actionPrimaryBackgroundHover}`,
12644
+ [`.${clsPrefix}-switch-handle:before`]: {
12645
+ boxShadow: `0px 0px 0px 1px ${theme.colors.actionPrimaryBackgroundHover}`
12646
+ }
12647
+ },
12648
+ [`&:active:not(.${clsPrefix}-switch-disabled)`]: {
12649
+ backgroundColor: theme.colors.actionDefaultBackgroundPress,
12650
+ border: `1px solid ${theme.colors.actionPrimaryBackgroundPress}`,
12651
+ [`.${clsPrefix}-switch-handle:before`]: {
12652
+ boxShadow: `0px 0px 0px 1px ${theme.colors.actionPrimaryBackgroundHover}`
12653
+ }
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
+ },
12662
+ [`&:focus-visible`]: {
12663
+ border: `1px solid ${theme.colors.actionPrimaryBackgroundDefault}`,
12664
+ boxShadow: 'none',
12665
+ outlineStyle: 'solid',
12666
+ outlineWidth: '1px',
12667
+ outlineColor: theme.colors.actionDefaultBorderFocus,
12668
+ [`.${clsPrefix}-switch-handle:before`]: {
12669
+ boxShadow: `0px 0px 0px 1px ${theme.colors.actionPrimaryBackgroundDefault}`
12670
+ }
12671
+ },
12672
+ [`&:focus`]: {
12673
+ boxShadow: 'none'
12674
+ }
12675
+ },
12676
+ // Switch is On
12677
+ [`&.${clsPrefix}-switch-checked`]: {
12678
+ backgroundColor: theme.colors.actionPrimaryBackgroundDefault,
12679
+ border: `1px solid ${theme.colors.actionPrimaryBackgroundDefault}`,
12680
+ [`&:hover:not(.${clsPrefix}-switch-disabled)`]: {
12681
+ backgroundColor: theme.colors.actionPrimaryBackgroundHover,
12682
+ border: `1px solid ${theme.colors.actionPrimaryBackgroundDefault}`
12683
+ },
12684
+ [`&:active:not(.${clsPrefix}-switch-disabled)`]: {
12685
+ backgroundColor: theme.colors.actionPrimaryBackgroundPress
12686
+ },
12687
+ [`.${clsPrefix}-switch-handle:before`]: {
12688
+ boxShadow: `0px 0px 0px 1px ${theme.colors.actionPrimaryBackgroundDefault}`
12689
+ },
12690
+ [`&.${clsPrefix}-switch-disabled`]: {
12691
+ backgroundColor: theme.colors.actionDisabledText,
12692
+ border: `1px solid ${theme.colors.actionDisabledText}`,
12693
+ [`.${clsPrefix}-switch-handle:before`]: {
12694
+ boxShadow: `0px 0px 0px 1px ${theme.colors.actionDisabledText}`
12695
+ }
12696
+ },
12697
+ [`&:focus-visible`]: {
12698
+ outlineOffset: '1px'
12699
+ }
12700
+ },
12701
+ [`.${clsPrefix}-switch-handle:before`]: {
12702
+ backgroundColor: theme.colors.backgroundPrimary
12703
+ },
12704
+ [`&& + .${clsPrefix}-hint, && + .${clsPrefix}-form-message`]: {
12705
+ paddingLeft: theme.spacing.sm + SWITCH_WIDTH
12706
+ },
12707
+ [`&& + .${clsPrefix}-form-message`]: {
12708
+ marginTop: 0
12709
+ },
12710
+ [`.${clsPrefix}-click-animating-node`]: {
12711
+ animation: 'none'
12712
+ },
12713
+ opacity: 1
12714
+ };
12715
+ const importantStyles = importantify(styles);
12716
+ return /*#__PURE__*/css(importantStyles, process.env.NODE_ENV === "production" ? "" : ";label:getSwitchWithLabelStyles;");
11353
12717
  };
11354
-
11355
- const SelectV2Content = /*#__PURE__*/forwardRef((_ref, ref) => {
12718
+ const Switch = _ref2 => {
12719
+ var _props$id;
11356
12720
  let {
11357
- children,
11358
- minWidth = 150,
11359
- ...restProps
11360
- } = _ref;
11361
- return jsx(DialogComboboxContent, {
11362
- minWidth: minWidth,
11363
- ...restProps,
11364
- ref: ref,
11365
- children: jsx(DialogComboboxOptionList, {
11366
- children: children
11367
- })
11368
- });
11369
- });
11370
-
11371
- const SelectV2Option = /*#__PURE__*/forwardRef((props, ref) => {
12721
+ dangerouslySetAntdProps,
12722
+ label,
12723
+ labelProps,
12724
+ activeLabel,
12725
+ inactiveLabel,
12726
+ disabledLabel,
12727
+ ...props
12728
+ } = _ref2;
11372
12729
  const {
11373
- value
11374
- } = useDialogComboboxContext();
11375
- return jsx(DialogComboboxOptionListSelectItem, {
11376
- checked: value && value[0] === props.value,
12730
+ theme,
12731
+ classNamePrefix
12732
+ } = useDesignSystemTheme();
12733
+ const duboisId = useUniqueId('dubois-switch');
12734
+ const uniqueId = (_props$id = props.id) !== null && _props$id !== void 0 ? _props$id : duboisId;
12735
+ const [isChecked, setIsChecked] = useState(props.checked || props.defaultChecked);
12736
+ const handleToggle = (newState, event) => {
12737
+ if (props.onChange) {
12738
+ props.onChange(newState, event);
12739
+ } else {
12740
+ setIsChecked(newState);
12741
+ }
12742
+ };
12743
+ useEffect(() => {
12744
+ setIsChecked(props.checked);
12745
+ }, [props.checked]);
12746
+ const hasNewLabels = activeLabel && inactiveLabel && disabledLabel;
12747
+ const stateMessage = isChecked ? activeLabel : inactiveLabel;
12748
+
12749
+ // AntDSwitch's interface does not include `id` even though it passes it through and works as expected
12750
+ // We are using this to bypass that check
12751
+ const idPropObj = {
12752
+ id: uniqueId
12753
+ };
12754
+ const switchComponent = jsx(Switch$1, {
11377
12755
  ...props,
11378
- ref: ref
12756
+ ...dangerouslySetAntdProps,
12757
+ onChange: handleToggle,
12758
+ ...idPropObj,
12759
+ css: /*#__PURE__*/css({
12760
+ ... /*#__PURE__*/css(getAnimationCss(theme.options.enableAnimation), process.env.NODE_ENV === "production" ? "" : ";label:switchComponent;"),
12761
+ ...getSwitchWithLabelStyles({
12762
+ clsPrefix: classNamePrefix,
12763
+ theme
12764
+ })
12765
+ }, process.env.NODE_ENV === "production" ? "" : ";label:switchComponent;")
11379
12766
  });
11380
- });
11381
-
11382
- const SelectV2OptionGroup = props => {
11383
- const {
11384
- name,
11385
- children,
11386
- ...restProps
11387
- } = props;
11388
- return jsxs(Fragment, {
11389
- children: [jsx(DialogComboboxSectionHeader, {
11390
- ...restProps,
11391
- children: name
11392
- }), children]
12767
+ const labelComponent = jsx(Label, {
12768
+ inline: true,
12769
+ ...labelProps,
12770
+ htmlFor: uniqueId,
12771
+ style: {
12772
+ ...(hasNewLabels && {
12773
+ marginRight: theme.spacing.sm
12774
+ })
12775
+ },
12776
+ children: label
11393
12777
  });
11394
- };
11395
-
11396
- const SelectV2Trigger = /*#__PURE__*/forwardRef((props, ref) => {
11397
- const {
11398
- children,
11399
- ...restProps
11400
- } = props;
11401
- return jsx(DialogComboboxTrigger, {
11402
- allowClear: false,
11403
- ...restProps,
11404
- ref: ref,
11405
- children: children
12778
+ return label ? jsx(DesignSystemAntDConfigProvider, {
12779
+ children: jsx("div", {
12780
+ css: getSwitchWithLabelStyles({
12781
+ clsPrefix: classNamePrefix,
12782
+ theme
12783
+ }),
12784
+ children: hasNewLabels ? jsxs(Fragment, {
12785
+ children: [labelComponent, jsx("span", {
12786
+ style: {
12787
+ marginLeft: 'auto',
12788
+ marginRight: theme.spacing.sm
12789
+ },
12790
+ children: `${stateMessage}${props.disabled ? ` (${disabledLabel})` : ''}`
12791
+ }), switchComponent]
12792
+ }) : jsxs(Fragment, {
12793
+ children: [switchComponent, labelComponent]
12794
+ })
12795
+ })
12796
+ }) : jsx(DesignSystemAntDConfigProvider, {
12797
+ children: jsx(Switch$1, {
12798
+ ...props,
12799
+ ...dangerouslySetAntdProps,
12800
+ ...idPropObj,
12801
+ css: /*#__PURE__*/css({
12802
+ ... /*#__PURE__*/css(getAnimationCss(theme.options.enableAnimation), process.env.NODE_ENV === "production" ? "" : ";label:Switch;"),
12803
+ ...getSwitchWithLabelStyles({
12804
+ clsPrefix: classNamePrefix,
12805
+ theme
12806
+ })
12807
+ }, process.env.NODE_ENV === "production" ? "" : ";label:Switch;")
12808
+ })
11406
12809
  });
11407
- });
12810
+ };
11408
12811
 
11409
12812
  const typeaheadComboboxContextDefaults = {
11410
12813
  isInsideTypeaheadCombobox: false,
@@ -11427,14 +12830,14 @@ const TypeaheadComboboxContextProvider = _ref => {
11427
12830
  });
11428
12831
  };
11429
12832
 
11430
- 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)."; }
11431
12834
  var _ref2$8 = process.env.NODE_ENV === "production" ? {
11432
12835
  name: "18nns55",
11433
12836
  styles: "display:inline-block;width:100%"
11434
12837
  } : {
11435
12838
  name: "19m0398-TypeaheadComboboxRoot",
11436
12839
  styles: "display:inline-block;width:100%;label:TypeaheadComboboxRoot;",
11437
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$f
12840
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$e
11438
12841
  };
11439
12842
  const TypeaheadComboboxRoot = /*#__PURE__*/forwardRef((_ref, ref) => {
11440
12843
  let {
@@ -11494,16 +12897,17 @@ function useComboboxState(_ref) {
11494
12897
  }
11495
12898
  const comboboxState = useCombobox({
11496
12899
  onIsOpenChange: onIsOpenChange,
11497
- onInputValueChange: props.multiSelect ? _ref2 => {
12900
+ onInputValueChange: _ref2 => {
11498
12901
  let {
11499
12902
  inputValue
11500
12903
  } = _ref2;
11501
- return inputValue !== undefined && props.setInputValue(inputValue);
11502
- } : _ref3 => {
11503
- let {
11504
- inputValue
11505
- } = _ref3;
11506
- 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
+ }
11507
12911
  },
11508
12912
  items: items,
11509
12913
  itemToString(item) {
@@ -11551,42 +12955,46 @@ function useComboboxState(_ref) {
11551
12955
  return changes;
11552
12956
  }
11553
12957
  },
11554
- onStateChange: props.multiSelect ? _ref4 => {
11555
- let {
12958
+ onStateChange: args => {
12959
+ var _props$onStateChange;
12960
+ const {
11556
12961
  type,
11557
12962
  selectedItem: newSelectedItem,
11558
12963
  inputValue: newInputValue
11559
- } = _ref4;
11560
- switch (type) {
11561
- case useCombobox.stateChangeTypes.InputKeyDownEnter:
11562
- case useCombobox.stateChangeTypes.ItemClick:
11563
- case useCombobox.stateChangeTypes.InputBlur:
11564
- if (newSelectedItem) {
11565
- props.setSelectedItems([...props.selectedItems, newSelectedItem]);
11566
- props.setInputValue('');
11567
- formOnBlur === null || formOnBlur === void 0 || formOnBlur([...props.selectedItems, newSelectedItem]);
11568
- }
11569
- break;
11570
- case useCombobox.stateChangeTypes.InputChange:
11571
- props.setInputValue(newInputValue !== null && newInputValue !== void 0 ? newInputValue : '');
11572
- break;
11573
- }
11574
- // Unselect when clicking selected item
11575
- if (newSelectedItem && props.selectedItems.includes(newSelectedItem)) {
11576
- 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
+ }
11577
12985
  }
11578
- } : undefined
12986
+ }
11579
12987
  });
11580
12988
  return comboboxState;
11581
12989
  }
11582
12990
  function useMultipleSelectionState(selectedItems, setSelectedItems) {
11583
12991
  return useMultipleSelection({
11584
12992
  selectedItems,
11585
- onStateChange(_ref5) {
12993
+ onStateChange(_ref3) {
11586
12994
  let {
11587
12995
  selectedItems: newSelectedItems,
11588
12996
  type
11589
- } = _ref5;
12997
+ } = _ref3;
11590
12998
  switch (type) {
11591
12999
  case useMultipleSelection.stateChangeTypes.SelectedItemKeyDownBackspace:
11592
13000
  case useMultipleSelection.stateChangeTypes.SelectedItemKeyDownDelete:
@@ -11603,14 +13011,14 @@ const useTypeaheadComboboxContext = () => {
11603
13011
  return useContext(TypeaheadComboboxContext);
11604
13012
  };
11605
13013
 
11606
- 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)."; }
11607
13015
  var _ref$4 = process.env.NODE_ENV === "production" ? {
11608
13016
  name: "xv0ss6",
11609
13017
  styles: "padding:0;margin:0;display:flex;flex-direction:column;align-items:flex-start;position:absolute"
11610
13018
  } : {
11611
13019
  name: "1sd733r-getTypeaheadComboboxMenuStyles",
11612
13020
  styles: "padding:0;margin:0;display:flex;flex-direction:column;align-items:flex-start;position:absolute;label:getTypeaheadComboboxMenuStyles;",
11613
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$e
13021
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$d
11614
13022
  };
11615
13023
  const getTypeaheadComboboxMenuStyles = () => {
11616
13024
  return _ref$4;
@@ -11707,7 +13115,7 @@ const TypeaheadComboboxMenu = /*#__PURE__*/forwardRef((_ref2, ref) => {
11707
13115
  }), getPopupContainer ? getPopupContainer() : document.body);
11708
13116
  });
11709
13117
 
11710
- 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)."; }
11711
13119
  const getMenuItemStyles = (theme, isHighlighted, disabled) => {
11712
13120
  return /*#__PURE__*/css({
11713
13121
  ...(disabled && {
@@ -11740,7 +13148,7 @@ var _ref2$7 = process.env.NODE_ENV === "production" ? {
11740
13148
  } : {
11741
13149
  name: "1uez6s6-TypeaheadComboboxMenuItem",
11742
13150
  styles: "padding-top:2px;label:TypeaheadComboboxMenuItem;",
11743
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$d
13151
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$c
11744
13152
  };
11745
13153
  var _ref3$5 = process.env.NODE_ENV === "production" ? {
11746
13154
  name: "zjik7",
@@ -11748,7 +13156,7 @@ var _ref3$5 = process.env.NODE_ENV === "production" ? {
11748
13156
  } : {
11749
13157
  name: "1p9uv37-TypeaheadComboboxMenuItem",
11750
13158
  styles: "display:flex;label:TypeaheadComboboxMenuItem;",
11751
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$d
13159
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$c
11752
13160
  };
11753
13161
  const TypeaheadComboboxMenuItem = /*#__PURE__*/forwardRef((_ref, ref) => {
11754
13162
  let {
@@ -11829,14 +13237,14 @@ TypeaheadComboboxMenuItem.defaultProps = {
11829
13237
  _TYPE: 'TypeaheadComboboxMenuItem'
11830
13238
  };
11831
13239
 
11832
- 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)."; }
11833
13241
  var _ref2$6 = process.env.NODE_ENV === "production" ? {
11834
13242
  name: "zjik7",
11835
13243
  styles: "display:flex"
11836
13244
  } : {
11837
13245
  name: "1pneh3l-TypeaheadComboboxCheckboxItem",
11838
13246
  styles: "display:flex;label:TypeaheadComboboxCheckboxItem;",
11839
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$c
13247
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$b
11840
13248
  };
11841
13249
  const TypeaheadComboboxCheckboxItem = /*#__PURE__*/forwardRef((_ref, ref) => {
11842
13250
  let {
@@ -11963,14 +13371,14 @@ const TypeaheadComboboxToggleButton = /*#__PURE__*/React__default.forwardRef((_r
11963
13371
  });
11964
13372
  });
11965
13373
 
11966
- 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)."; }
11967
13375
  var _ref2$5 = process.env.NODE_ENV === "production" ? {
11968
13376
  name: "l1fpjx",
11969
13377
  styles: "pointer-events:all;vertical-align:text-top"
11970
13378
  } : {
11971
13379
  name: "4edanz-TypeaheadComboboxControls",
11972
13380
  styles: "pointer-events:all;vertical-align:text-top;label:TypeaheadComboboxControls;",
11973
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$b
13381
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$a
11974
13382
  };
11975
13383
  const TypeaheadComboboxControls = _ref => {
11976
13384
  let {
@@ -11999,14 +13407,14 @@ const TypeaheadComboboxControls = _ref => {
11999
13407
  });
12000
13408
  };
12001
13409
 
12002
- 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)."; }
12003
13411
  var _ref$3 = process.env.NODE_ENV === "production" ? {
12004
13412
  name: "5ob2ly",
12005
13413
  styles: "display:flex;position:relative"
12006
13414
  } : {
12007
13415
  name: "9x5b62-getContainerStyles",
12008
13416
  styles: "display:flex;position:relative;label:getContainerStyles;",
12009
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$a
13417
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$9
12010
13418
  };
12011
13419
  const getContainerStyles$1 = () => {
12012
13420
  return _ref$3;
@@ -12100,7 +13508,7 @@ const TypeaheadComboboxInput = /*#__PURE__*/forwardRef((_ref2, ref) => {
12100
13508
  });
12101
13509
  });
12102
13510
 
12103
- 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)."; }
12104
13512
  const getSelectedItemStyles = theme => {
12105
13513
  return /*#__PURE__*/css({
12106
13514
  backgroundColor: theme.colors.tagDefault,
@@ -12144,7 +13552,7 @@ var _ref2$4 = process.env.NODE_ENV === "production" ? {
12144
13552
  } : {
12145
13553
  name: "d61dng-TypeaheadComboboxSelectedItem",
12146
13554
  styles: "margin-right:2px;label:TypeaheadComboboxSelectedItem;",
12147
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$9
13555
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$8
12148
13556
  };
12149
13557
  const TypeaheadComboboxSelectedItem = /*#__PURE__*/forwardRef((_ref, ref) => {
12150
13558
  let {
@@ -12199,7 +13607,7 @@ const CountBadge = _ref => {
12199
13607
  });
12200
13608
  };
12201
13609
 
12202
- 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)."; }
12203
13611
  const getContainerStyles = (theme, validationState, width, maxHeight) => {
12204
13612
  const validationColor = getValidationStateColor(theme, validationState);
12205
13613
  return /*#__PURE__*/css({
@@ -12260,7 +13668,7 @@ var _ref2$3 = process.env.NODE_ENV === "production" ? {
12260
13668
  } : {
12261
13669
  name: "azzs2i-getContentWrapperStyles",
12262
13670
  styles: "display:flex;flex:auto;flex-wrap:wrap;max-width:100%;position:relative;label:getContentWrapperStyles;",
12263
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$8
13671
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$7
12264
13672
  };
12265
13673
  const getContentWrapperStyles = () => {
12266
13674
  return _ref2$3;
@@ -12271,7 +13679,7 @@ var _ref$2 = process.env.NODE_ENV === "production" ? {
12271
13679
  } : {
12272
13680
  name: "10x8s5t-getInputWrapperStyles",
12273
13681
  styles: "display:inline-flex;position:relative;max-width:100%;align-self:auto;flex:none;label:getInputWrapperStyles;",
12274
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$8
13682
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$7
12275
13683
  };
12276
13684
  const getInputWrapperStyles = () => {
12277
13685
  return _ref$2;
@@ -12302,7 +13710,7 @@ var _ref4$2 = process.env.NODE_ENV === "production" ? {
12302
13710
  } : {
12303
13711
  name: "1noplic-content",
12304
13712
  styles: "visibility:hidden;white-space:pre;position:absolute;label:content;",
12305
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$8
13713
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$7
12306
13714
  };
12307
13715
  const TypeaheadComboboxMultiSelectInput = /*#__PURE__*/forwardRef((_ref3, ref) => {
12308
13716
  var _measureRef$current, _itemsRef$current, _containerRef$current, _innerRef$current2;
@@ -12494,7 +13902,54 @@ const DuboisTypeaheadComboboxFooter = _ref => {
12494
13902
  DuboisTypeaheadComboboxFooter.defaultProps = {
12495
13903
  _TYPE: 'TypeaheadComboboxFooter'
12496
13904
  };
12497
- const TypeaheadComboboxFooter = DuboisTypeaheadComboboxFooter;
13905
+ const TypeaheadComboboxFooter = DuboisTypeaheadComboboxFooter;
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
+ };
12498
13953
 
12499
13954
  function RHFControlledInput(_ref) {
12500
13955
  let {
@@ -12612,13 +14067,17 @@ function RHFControlledSelectV2(_ref5) {
12612
14067
 
12613
14068
  // Find the appropriate label for the selected value
12614
14069
  if (!(options !== null && options !== void 0 && options.length) && children) {
12615
- var _props;
12616
14070
  const renderedChildren = children({
12617
14071
  onChange: handleOnChange
12618
14072
  });
12619
- const child = Children.toArray(renderedChildren.props.children).find(child => /*#__PURE__*/React__default.isValidElement(child) && child.props.value === field.value);
12620
- if (child && ((_props = child.props) === null || _props === void 0 ? void 0 : _props.children) !== field.value) {
12621
- 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
+ }
12622
14081
  }
12623
14082
  } else if (options !== null && options !== void 0 && options.length) {
12624
14083
  const option = options.find(option => option.value === field.value);
@@ -12638,7 +14097,6 @@ function RHFControlledSelectV2(_ref5) {
12638
14097
  }), jsx(SelectV2Content, {
12639
14098
  ...contentProps,
12640
14099
  side: "bottom",
12641
- width: width,
12642
14100
  children: options && options.length > 0 ? options.map(option => createElement(SelectV2Option, {
12643
14101
  ...optionProps,
12644
14102
  key: option.value,
@@ -12946,6 +14404,26 @@ function RHFControlledRadioGroup(_ref11) {
12946
14404
  ...field
12947
14405
  });
12948
14406
  }
14407
+ function RHFControlledSwitch(_ref12) {
14408
+ let {
14409
+ name,
14410
+ control,
14411
+ rules,
14412
+ ...restProps
14413
+ } = _ref12;
14414
+ const {
14415
+ field
14416
+ } = useController({
14417
+ name: name,
14418
+ control: control,
14419
+ rules: rules
14420
+ });
14421
+ return jsx(Switch, {
14422
+ ...restProps,
14423
+ ...field,
14424
+ checked: field.value
14425
+ });
14426
+ }
12949
14427
  const RHFControlledComponents = {
12950
14428
  Input: RHFControlledInput,
12951
14429
  Password: RHFControlledPasswordInput,
@@ -12957,7 +14435,8 @@ const RHFControlledComponents = {
12957
14435
  CheckboxGroup: RHFControlledCheckboxGroup,
12958
14436
  RadioGroup: RHFControlledRadioGroup,
12959
14437
  TypeaheadCombobox: RHFControlledTypeaheadCombobox,
12960
- MultiSelectTypeaheadCombobox: RHFControlledMultiSelectTypeaheadCombobox
14438
+ MultiSelectTypeaheadCombobox: RHFControlledMultiSelectTypeaheadCombobox,
14439
+ Switch: RHFControlledSwitch
12961
14440
  };
12962
14441
 
12963
14442
  const getHorizontalInputStyles = (theme, labelColWidth, inputColWidth) => {
@@ -13038,7 +14517,7 @@ const Space = _ref => {
13038
14517
  });
13039
14518
  };
13040
14519
 
13041
- 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)."; }
13042
14521
  const getHeaderStyles = (clsPrefix, theme) => {
13043
14522
  const breadcrumbClass = `.${clsPrefix}-breadcrumb`;
13044
14523
  const styles = {
@@ -13054,7 +14533,7 @@ var _ref$1 = process.env.NODE_ENV === "production" ? {
13054
14533
  } : {
13055
14534
  name: "n13uil-titleAddOnsWrapper",
13056
14535
  styles: "display:inline-flex;vertical-align:middle;align-items:center;label:titleAddOnsWrapper;",
13057
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$7
14536
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$6
13058
14537
  };
13059
14538
  var _ref2$2 = process.env.NODE_ENV === "production" ? {
13060
14539
  name: "1q4vxyr",
@@ -13062,7 +14541,7 @@ var _ref2$2 = process.env.NODE_ENV === "production" ? {
13062
14541
  } : {
13063
14542
  name: "ozrfom-buttonContainer",
13064
14543
  styles: "margin-left:8px;label:buttonContainer;",
13065
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$7
14544
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$6
13066
14545
  };
13067
14546
  var _ref3$4 = process.env.NODE_ENV === "production" ? {
13068
14547
  name: "s079uh",
@@ -13070,7 +14549,7 @@ var _ref3$4 = process.env.NODE_ENV === "production" ? {
13070
14549
  } : {
13071
14550
  name: "1ky5whb-titleIfOtherElementsPresent",
13072
14551
  styles: "margin-top:2px;label:titleIfOtherElementsPresent;",
13073
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$7
14552
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$6
13074
14553
  };
13075
14554
  var _ref4$1 = process.env.NODE_ENV === "production" ? {
13076
14555
  name: "fuxm9z",
@@ -13078,7 +14557,7 @@ var _ref4$1 = process.env.NODE_ENV === "production" ? {
13078
14557
  } : {
13079
14558
  name: "h5m2l9-title",
13080
14559
  styles: "margin-top:0;margin-bottom:0 !important;align-self:stretch;label:title;",
13081
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$7
14560
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$6
13082
14561
  };
13083
14562
  const Header$1 = _ref5 => {
13084
14563
  let {
@@ -13094,6 +14573,7 @@ const Header$1 = _ref5 => {
13094
14573
  classNamePrefix: clsPrefix,
13095
14574
  theme
13096
14575
  } = useDesignSystemTheme();
14576
+ const useReflowWrapStyles = safex('databricks.fe.wexp.enableReflowWrapStyles', false);
13097
14577
  const buttonsArray = Array.isArray(buttons) ? buttons : buttons ? [buttons] : [];
13098
14578
 
13099
14579
  // TODO: Move to getHeaderStyles for consistency, followup ticket: https://databricks.atlassian.net/browse/FEINF-1222
@@ -13102,6 +14582,9 @@ const Header$1 = _ref5 => {
13102
14582
  display: 'flex',
13103
14583
  alignItems: 'flex-start',
13104
14584
  justifyContent: 'space-between',
14585
+ ...(useReflowWrapStyles ? {
14586
+ flexWrap: 'wrap'
14587
+ } : {}),
13105
14588
  // Buttons have 32px height while Title level 2 elements used by this component have a height of 28px
13106
14589
  // These paddings enforce height to be the same without buttons too
13107
14590
  ...(buttonsArray.length === 0 && {
@@ -13138,6 +14621,11 @@ const Header$1 = _ref5 => {
13138
14621
  }), buttons && jsx("div", {
13139
14622
  css: styles.buttonContainer,
13140
14623
  children: jsx(Space, {
14624
+ ...(useReflowWrapStyles ? {
14625
+ dangerouslySetAntdProps: {
14626
+ wrap: true
14627
+ }
14628
+ } : {}),
13141
14629
  size: 8,
13142
14630
  children: buttonsArray.filter(Boolean).map((button, i) => {
13143
14631
  const defaultKey = `dubois-header-button-${i}`;
@@ -13406,7 +14894,7 @@ const LegacySkeleton = /* #__PURE__ */(() => {
13406
14894
  return LegacySkeleton;
13407
14895
  })();
13408
14896
 
13409
- 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)."; }
13410
14898
  function getPaginationEmotionStyles(clsPrefix, theme) {
13411
14899
  const classRoot = `.${clsPrefix}-pagination`;
13412
14900
  const classItem = `.${clsPrefix}-pagination-item`;
@@ -13521,25 +15009,48 @@ const Pagination = function Pagination(_ref) {
13521
15009
  numTotal,
13522
15010
  onChange,
13523
15011
  style,
15012
+ hideOnSinglePage,
13524
15013
  dangerouslySetAntdProps
13525
15014
  } = _ref;
13526
15015
  const {
13527
15016
  classNamePrefix,
13528
15017
  theme
13529
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]);
13530
15037
  return jsx(DesignSystemAntDConfigProvider, {
13531
- children: jsx(Pagination$1, {
13532
- css: getPaginationEmotionStyles(classNamePrefix, theme),
13533
- current: currentPageIndex,
13534
- pageSize: pageSize,
13535
- responsive: false,
13536
- total: numTotal,
13537
- onChange: onChange,
13538
- showSizeChanger: false,
13539
- showQuickJumper: false,
13540
- size: "small",
13541
- style: style,
13542
- ...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
+ })
13543
15054
  })
13544
15055
  });
13545
15056
  };
@@ -13549,7 +15060,7 @@ var _ref3$3 = process.env.NODE_ENV === "production" ? {
13549
15060
  } : {
13550
15061
  name: "1am9qog-CursorPagination",
13551
15062
  styles: "width:120px;label:CursorPagination;",
13552
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$6
15063
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$5
13553
15064
  };
13554
15065
  const CursorPagination = function CursorPagination(_ref2) {
13555
15066
  let {
@@ -13563,7 +15074,8 @@ const CursorPagination = function CursorPagination(_ref2) {
13563
15074
  options: pageSizeOptions,
13564
15075
  default: defaultPageSize,
13565
15076
  getOptionText: getPageSizeOptionText,
13566
- onChange: onPageSizeChange
15077
+ onChange: onPageSizeChange,
15078
+ ariaLabel = 'Select page size'
13567
15079
  } = {}
13568
15080
  } = _ref2;
13569
15081
  const {
@@ -13582,18 +15094,21 @@ const CursorPagination = function CursorPagination(_ref2) {
13582
15094
  }
13583
15095
  }, process.env.NODE_ENV === "production" ? "" : ";label:CursorPagination;"),
13584
15096
  children: [jsx(Button, {
15097
+ componentId: "codegen_design-system_src_design-system_pagination_index.tsx_237",
13585
15098
  icon: jsx(ChevronLeftIcon, {}),
13586
15099
  disabled: !hasPreviousPage,
13587
15100
  onClick: onPreviousPage,
13588
15101
  type: "tertiary",
13589
15102
  children: previousPageText
13590
15103
  }), jsx(Button, {
15104
+ componentId: "codegen_design-system_src_design-system_pagination_index.tsx_240",
13591
15105
  endIcon: jsx(ChevronRightIcon, {}),
13592
15106
  disabled: !hasNextPage,
13593
15107
  onClick: onNextPage,
13594
15108
  type: "tertiary",
13595
15109
  children: nextPageText
13596
15110
  }), pageSizeOptions && jsx(Select, {
15111
+ "aria-label": ariaLabel,
13597
15112
  value: String(pageSizeValue),
13598
15113
  css: _ref3$3,
13599
15114
  onChange: pageSize => {
@@ -13738,7 +15253,7 @@ const Menu = /* #__PURE__ */(() => {
13738
15253
  return Menu;
13739
15254
  })();
13740
15255
 
13741
- 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)."; }
13742
15257
  const SIZE_PRESETS = {
13743
15258
  normal: 640,
13744
15259
  wide: 880
@@ -13885,12 +15400,14 @@ function DefaultFooter(_ref) {
13885
15400
  };
13886
15401
  return jsxs(Fragment, {
13887
15402
  children: [cancelText && jsx(Button, {
15403
+ componentId: "codegen_design-system_src_design-system_modal_modal.tsx_260",
13888
15404
  onClick: handleCancel,
13889
15405
  autoFocus: autoFocusButton === 'cancel',
13890
15406
  dangerouslyUseFocusPseudoClass: true,
13891
15407
  ...cancelButtonProps,
13892
15408
  children: cancelText
13893
15409
  }), okText && jsx(Button, {
15410
+ componentId: "codegen_design-system_src_design-system_modal_modal.tsx_271",
13894
15411
  loading: confirmLoading,
13895
15412
  onClick: handleOk,
13896
15413
  type: "primary",
@@ -13969,7 +15486,7 @@ var _ref3$2 = process.env.NODE_ENV === "production" ? {
13969
15486
  } : {
13970
15487
  name: "1jkwrsj-titleComp",
13971
15488
  styles: "position:relative;display:inline-flex;align-items:center;label:titleComp;",
13972
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$5
15489
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$4
13973
15490
  };
13974
15491
  var _ref4 = process.env.NODE_ENV === "production" ? {
13975
15492
  name: "1o6wc9k",
@@ -13977,7 +15494,7 @@ var _ref4 = process.env.NODE_ENV === "production" ? {
13977
15494
  } : {
13978
15495
  name: "i303lp-titleComp",
13979
15496
  styles: "padding-left:6px;label:titleComp;",
13980
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$5
15497
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$4
13981
15498
  };
13982
15499
  function DangerModal(props) {
13983
15500
  const {
@@ -14013,10 +15530,12 @@ function DangerModal(props) {
14013
15530
  return jsx(Modal, {
14014
15531
  title: titleComp,
14015
15532
  footer: [jsx(Button, {
15533
+ componentId: "codegen_design-system_src_design-system_modal_modal.tsx_386",
14016
15534
  onClick: onCancel,
14017
15535
  ...cancelButtonProps,
14018
15536
  children: cancelText || 'Cancel'
14019
15537
  }, "cancel"), jsx(Button, {
15538
+ componentId: "codegen_design-system_src_design-system_modal_modal.tsx_395",
14020
15539
  type: "primary",
14021
15540
  danger: true,
14022
15541
  onClick: onOk,
@@ -14134,6 +15653,7 @@ const Root$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
14134
15653
  // TODO: Support light and dark mode
14135
15654
 
14136
15655
  const getViewportStyle = theme => {
15656
+ const enableReflowWrapStyles = safex('databricks.fe.wexp.enableReflowWrapStyles', false);
14137
15657
  return {
14138
15658
  position: 'fixed',
14139
15659
  top: 0,
@@ -14145,7 +15665,10 @@ const getViewportStyle = theme => {
14145
15665
  width: 440,
14146
15666
  listStyle: 'none',
14147
15667
  zIndex: theme.options.zIndexBase + 100,
14148
- outline: 'none'
15668
+ outline: 'none',
15669
+ ...(enableReflowWrapStyles ? {
15670
+ maxWidth: `calc(100% - ${theme.spacing.lg}px)`
15671
+ } : {})
14149
15672
  };
14150
15673
  };
14151
15674
  const getTitleStyles = theme => {
@@ -14228,6 +15751,7 @@ const Close$1 = /*#__PURE__*/forwardRef(function (props, ref) {
14228
15751
  ...restProps,
14229
15752
  asChild: true,
14230
15753
  children: jsx(Button, {
15754
+ componentId: "codegen_design-system_src_design-system_notification_notification.tsx_224",
14231
15755
  icon: jsx(CloseIcon, {}),
14232
15756
  "aria-label": (_ref4 = closeLabel !== null && closeLabel !== void 0 ? closeLabel : restProps['aria-label']) !== null && _ref4 !== void 0 ? _ref4 : 'Close notification'
14233
15757
  })
@@ -14406,7 +15930,8 @@ const InfoPopover = _ref => {
14406
15930
  popoverProps,
14407
15931
  iconTitle,
14408
15932
  iconProps,
14409
- isKeyboardFocusable = true
15933
+ isKeyboardFocusable = true,
15934
+ ariaLabel = 'More details'
14410
15935
  } = _ref;
14411
15936
  const {
14412
15937
  theme
@@ -14432,6 +15957,7 @@ const InfoPopover = _ref => {
14432
15957
  ,
14433
15958
  tabIndex: isKeyboardFocusable ? 0 : -1,
14434
15959
  onKeyDown: handleKeyDown,
15960
+ "aria-label": ariaLabel,
14435
15961
  children: jsx(InfoCircleOutlined, {
14436
15962
  "aria-hidden": "false",
14437
15963
  title: iconTitle,
@@ -14455,7 +15981,7 @@ const colorMap = {
14455
15981
  default: 'tagDefault',
14456
15982
  brown: 'tagBrown',
14457
15983
  coral: 'tagCoral',
14458
- charcoal: 'tagCharcoal',
15984
+ charcoal: 'grey600',
14459
15985
  indigo: 'tagIndigo',
14460
15986
  lemon: 'tagLemon',
14461
15987
  lime: 'tagLime',
@@ -14593,14 +16119,14 @@ function Tag(props) {
14593
16119
  });
14594
16120
  }
14595
16121
 
14596
- 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)."; }
14597
16123
  var _ref2$1 = process.env.NODE_ENV === "production" ? {
14598
16124
  name: "1amee4m",
14599
16125
  styles: "line-height:0"
14600
16126
  } : {
14601
16127
  name: "c77cjr-trigger",
14602
16128
  styles: "line-height:0;label:trigger;",
14603
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$4
16129
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$3
14604
16130
  };
14605
16131
  var _ref3$1 = process.env.NODE_ENV === "production" ? {
14606
16132
  name: "srf7qm",
@@ -14608,7 +16134,7 @@ var _ref3$1 = process.env.NODE_ENV === "production" ? {
14608
16134
  } : {
14609
16135
  name: "qnr75h-trigger",
14610
16136
  styles: "border:none;padding:0;background:transparent;label:trigger;",
14611
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$4
16137
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$3
14612
16138
  };
14613
16139
  const Overflow = _ref => {
14614
16140
  let {
@@ -14713,9 +16239,16 @@ const PageWrapper = _ref => {
14713
16239
 
14714
16240
  const SMALL_BUTTON_HEIGHT = 24;
14715
16241
  function getSegmentedControlGroupEmotionStyles(clsPrefix) {
16242
+ let spaced = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
16243
+ const classGroup = `.${clsPrefix}-radio-group`;
14716
16244
  const classSmallGroup = `.${clsPrefix}-radio-group-small`;
14717
16245
  const classButtonWrapper = `.${clsPrefix}-radio-button-wrapper`;
14718
16246
  const styles = {
16247
+ [`&${classGroup}`]: spaced ? {
16248
+ display: 'flex',
16249
+ gap: 8,
16250
+ flexWrap: 'wrap'
16251
+ } : {},
14719
16252
  [`&${classSmallGroup} ${classButtonWrapper}`]: {
14720
16253
  padding: '0 12px'
14721
16254
  }
@@ -14724,6 +16257,7 @@ function getSegmentedControlGroupEmotionStyles(clsPrefix) {
14724
16257
  return /*#__PURE__*/css(importantStyles, process.env.NODE_ENV === "production" ? "" : ";label:getSegmentedControlGroupEmotionStyles;");
14725
16258
  }
14726
16259
  function getSegmentedControlButtonEmotionStyles(clsPrefix, theme, size) {
16260
+ let spaced = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
14727
16261
  const classWrapperChecked = `.${clsPrefix}-radio-button-wrapper-checked`;
14728
16262
  const classWrapper = `.${clsPrefix}-radio-button-wrapper`;
14729
16263
  const classWrapperDisabled = `.${clsPrefix}-radio-button-wrapper-disabled`;
@@ -14738,7 +16272,9 @@ function getSegmentedControlButtonEmotionStyles(clsPrefix, theme, size) {
14738
16272
  backgroundColor: theme.colors.actionDefaultBackgroundDefault,
14739
16273
  borderColor: theme.colors.actionDefaultBorderDefault,
14740
16274
  color: theme.colors.actionDefaultTextDefault,
16275
+ // This handles the left border of the button when they're adjacent
14741
16276
  '::before': {
16277
+ display: spaced ? 'none' : 'block',
14742
16278
  backgroundColor: theme.colors.actionDefaultBorderDefault
14743
16279
  },
14744
16280
  '&:hover': {
@@ -14791,6 +16327,10 @@ function getSegmentedControlButtonEmotionStyles(clsPrefix, theme, size) {
14791
16327
  padding: size === 'middle' ? '0 16px' : '0 8px',
14792
16328
  display: 'inline-flex',
14793
16329
  verticalAlign: 'middle',
16330
+ ...(spaced ? {
16331
+ borderWidth: 1,
16332
+ borderRadius: theme.general.borderRadiusBase
16333
+ } : {}),
14794
16334
  '&:focus-within': {
14795
16335
  outlineStyle: 'solid',
14796
16336
  outlineWidth: '2px',
@@ -14809,7 +16349,8 @@ function getSegmentedControlButtonEmotionStyles(clsPrefix, theme, size) {
14809
16349
  return /*#__PURE__*/css(importantStyles, process.env.NODE_ENV === "production" ? "" : ";label:getSegmentedControlButtonEmotionStyles;");
14810
16350
  }
14811
16351
  const SegmentedControlGroupContext = /*#__PURE__*/createContext({
14812
- size: 'middle'
16352
+ size: 'middle',
16353
+ spaced: false
14813
16354
  });
14814
16355
  const SegmentedControlButton = /*#__PURE__*/forwardRef(function SegmentedControlButton(_ref, ref) {
14815
16356
  let {
@@ -14821,11 +16362,12 @@ const SegmentedControlButton = /*#__PURE__*/forwardRef(function SegmentedControl
14821
16362
  theme
14822
16363
  } = useDesignSystemTheme();
14823
16364
  const {
14824
- size
16365
+ size,
16366
+ spaced
14825
16367
  } = useContext(SegmentedControlGroupContext);
14826
16368
  return jsx(DesignSystemAntDConfigProvider, {
14827
16369
  children: jsx(Radio$1.Button, {
14828
- css: getSegmentedControlButtonEmotionStyles(classNamePrefix, theme, size),
16370
+ css: getSegmentedControlButtonEmotionStyles(classNamePrefix, theme, size, spaced),
14829
16371
  ...props,
14830
16372
  ...dangerouslySetAntdProps,
14831
16373
  ref: ref
@@ -14836,6 +16378,7 @@ const SegmentedControlGroup = /*#__PURE__*/forwardRef(function SegmentedControlG
14836
16378
  let {
14837
16379
  dangerouslySetAntdProps,
14838
16380
  size = 'middle',
16381
+ spaced = false,
14839
16382
  ...props
14840
16383
  } = _ref2;
14841
16384
  const {
@@ -14844,11 +16387,12 @@ const SegmentedControlGroup = /*#__PURE__*/forwardRef(function SegmentedControlG
14844
16387
  return jsx(DesignSystemAntDConfigProvider, {
14845
16388
  children: jsx(SegmentedControlGroupContext.Provider, {
14846
16389
  value: {
14847
- size
16390
+ size,
16391
+ spaced
14848
16392
  },
14849
16393
  children: jsx(Radio$1.Group, {
14850
16394
  ...props,
14851
- css: getSegmentedControlGroupEmotionStyles(classNamePrefix),
16395
+ css: getSegmentedControlGroupEmotionStyles(classNamePrefix, spaced),
14852
16396
  ...dangerouslySetAntdProps,
14853
16397
  ref: ref
14854
16398
  })
@@ -14856,7 +16400,7 @@ const SegmentedControlGroup = /*#__PURE__*/forwardRef(function SegmentedControlG
14856
16400
  });
14857
16401
  });
14858
16402
 
14859
- 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)."; }
14860
16404
  const DEFAULT_WIDTH = 200;
14861
16405
  const ContentContextDefaults = {
14862
16406
  openPanelId: undefined,
@@ -14938,7 +16482,7 @@ function Content(_ref3) {
14938
16482
  } = _ref3;
14939
16483
  const openAnimation = keyframes`
14940
16484
  from { width: 50px }
14941
- to { width: ${width}px }`;
16485
+ to { width: ${width || DEFAULT_WIDTH}px }`;
14942
16486
  const showAnimation = keyframes`
14943
16487
  from { opacity: 0 }
14944
16488
  80% { opacity: 0 }
@@ -15092,7 +16636,7 @@ var _ref8 = process.env.NODE_ENV === "production" ? {
15092
16636
  } : {
15093
16637
  name: "fs19p8-PanelHeader",
15094
16638
  styles: "display:flex;justify-content:space-between;align-items:center;label:PanelHeader;",
15095
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$3
16639
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
15096
16640
  };
15097
16641
  function PanelHeader(_ref7) {
15098
16642
  let {
@@ -15124,6 +16668,7 @@ function PanelHeader(_ref7) {
15124
16668
  })
15125
16669
  }), contentContext.closable ? jsx("div", {
15126
16670
  children: jsx(Button, {
16671
+ componentId: "codegen_design-system_src_design-system_sidebar_sidebar.tsx_427",
15127
16672
  size: "small",
15128
16673
  icon: jsx(CloseIcon, {}),
15129
16674
  "aria-label": "Close",
@@ -15303,6 +16848,7 @@ const DropdownButton = props => {
15303
16848
  dropdownProps.placement = 'bottomRight';
15304
16849
  }
15305
16850
  const leftButton = jsxs(Button, {
16851
+ componentId: "codegen_design-system_src_design-system_splitbutton_dropdown_dropdownbutton.tsx_148",
15306
16852
  type: type,
15307
16853
  danger: danger,
15308
16854
  disabled: disabled,
@@ -15316,6 +16862,7 @@ const DropdownButton = props => {
15316
16862
  children: [leftButtonIcon && !children ? leftButtonIcon : undefined, children]
15317
16863
  });
15318
16864
  const rightButton = jsx(Button, {
16865
+ componentId: "codegen_design-system_src_design-system_splitbutton_dropdown_dropdownbutton.tsx_166",
15319
16866
  type: type,
15320
16867
  danger: danger,
15321
16868
  disabled: disabled,
@@ -15330,9 +16877,9 @@ const DropdownButton = props => {
15330
16877
  ...dropdownProps,
15331
16878
  overlay: overlay,
15332
16879
  children: rightButtonToRender
15333
- }) : jsxs(Root$4, {
16880
+ }) : jsxs(Root$5, {
15334
16881
  ...dropdownMenuRootProps,
15335
- children: [jsx(Trigger$2, {
16882
+ children: [jsx(Trigger$3, {
15336
16883
  disabled: disabled,
15337
16884
  asChild: true,
15338
16885
  children: rightButtonToRender
@@ -15343,7 +16890,7 @@ const DropdownButton = props => {
15343
16890
  });
15344
16891
  };
15345
16892
 
15346
- 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)."; }
15347
16894
  const BUTTON_HORIZONTAL_PADDING = 12;
15348
16895
  function getSplitButtonEmotionStyles(classNamePrefix, theme) {
15349
16896
  const classDefault = `.${classNamePrefix}-btn`;
@@ -15409,276 +16956,98 @@ function getSplitButtonEmotionStyles(classNamePrefix, theme) {
15409
16956
  const importantStyles = importantify(styles);
15410
16957
  return /*#__PURE__*/css(importantStyles, process.env.NODE_ENV === "production" ? "" : ";label:getSplitButtonEmotionStyles;");
15411
16958
  }
15412
- var _ref = process.env.NODE_ENV === "production" ? {
15413
- name: "tp1ooh",
15414
- styles: "display:inline-flex;position:relative;vertical-align:middle"
15415
- } : {
15416
- name: "1kplxg4-SplitButton",
15417
- styles: "display:inline-flex;position:relative;vertical-align:middle;label:SplitButton;",
15418
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
15419
- };
15420
- const SplitButton = props => {
15421
- const {
15422
- theme,
15423
- classNamePrefix
15424
- } = useDesignSystemTheme();
15425
- const {
15426
- children,
15427
- icon,
15428
- deprecatedMenu,
15429
- type,
15430
- loading,
15431
- loadingButtonStyles,
15432
- placement,
15433
- dangerouslySetAntdProps,
15434
- ...dropdownButtonProps
15435
- } = props;
15436
-
15437
- // Size of button when loading only icon is shown
15438
- const LOADING_BUTTON_SIZE = theme.general.iconFontSize + 2 * BUTTON_HORIZONTAL_PADDING + 2 * theme.general.borderWidth;
15439
- const [width, setWidth] = useState(LOADING_BUTTON_SIZE);
15440
-
15441
- // Set the width to the button's width in regular state to later use when in loading state
15442
- // We do this to have just a loading icon in loading state at the normal width to avoid flicker and width changes in page
15443
- const ref = useCallback(node => {
15444
- if (node && !loading) {
15445
- setWidth(node.getBoundingClientRect().width);
15446
- }
15447
- }, [loading]);
15448
- return jsx(DesignSystemAntDConfigProvider, {
15449
- children: jsx("div", {
15450
- ref: ref,
15451
- css: _ref,
15452
- children: loading ? jsx(Button, {
15453
- type: type === 'default' ? undefined : type,
15454
- style: {
15455
- width: width,
15456
- fontSize: theme.general.iconFontSize,
15457
- ...loadingButtonStyles
15458
- },
15459
- loading: true,
15460
- htmlType: props.htmlType,
15461
- title: props.title,
15462
- className: props.className,
15463
- children: children
15464
- }) : jsx(DropdownButton, {
15465
- ...dropdownButtonProps,
15466
- overlay: deprecatedMenu,
15467
- trigger: ['click'],
15468
- css: getSplitButtonEmotionStyles(classNamePrefix, theme),
15469
- icon: jsx(ChevronDownIcon$1, {
15470
- css: /*#__PURE__*/css({
15471
- fontSize: theme.general.iconSize
15472
- }, process.env.NODE_ENV === "production" ? "" : ";label:SplitButton;"),
15473
- "aria-hidden": "true"
15474
- }),
15475
- placement: placement || 'bottomRight',
15476
- type: type === 'default' ? undefined : type,
15477
- leftButtonIcon: icon,
15478
- ...dangerouslySetAntdProps,
15479
- children: children
15480
- })
15481
- })
15482
- });
15483
- };
15484
-
15485
- const Steps = /* #__PURE__ */(() => {
15486
- function Steps(_ref) {
15487
- let {
15488
- dangerouslySetAntdProps,
15489
- ...props
15490
- } = _ref;
15491
- return jsx(DesignSystemAntDConfigProvider, {
15492
- children: jsx(Steps$1, {
15493
- ...props,
15494
- ...dangerouslySetAntdProps
15495
- })
15496
- });
15497
- }
15498
- Steps.Step = Steps$1.Step;
15499
- return Steps;
15500
- })();
15501
-
15502
- const getSwitchWithLabelStyles = _ref => {
15503
- let {
15504
- clsPrefix,
15505
- theme
15506
- } = _ref;
15507
- // Default value
15508
- const SWITCH_WIDTH = 28;
15509
- const styles = {
15510
- display: 'flex',
15511
- alignItems: 'center',
15512
- // Switch is Off
15513
- [`&.${clsPrefix}-switch`]: {
15514
- backgroundColor: theme.colors.backgroundPrimary,
15515
- border: `1px solid ${theme.colors.actionDefaultBorderDefault}`,
15516
- [`.${clsPrefix}-switch-handle:before`]: {
15517
- boxShadow: `0px 0px 0px 1px ${theme.colors.actionDefaultBorderDefault}`,
15518
- transition: 'none'
15519
- },
15520
- [`&:hover:not(.${clsPrefix}-switch-disabled)`]: {
15521
- backgroundColor: theme.colors.actionDefaultBackgroundHover,
15522
- border: `1px solid ${theme.colors.actionPrimaryBackgroundHover}`,
15523
- [`.${clsPrefix}-switch-handle:before`]: {
15524
- boxShadow: `0px 0px 0px 1px ${theme.colors.actionPrimaryBackgroundHover}`
15525
- }
15526
- },
15527
- [`&:active:not(.${clsPrefix}-switch-disabled)`]: {
15528
- backgroundColor: theme.colors.actionDefaultBackgroundPress,
15529
- border: `1px solid ${theme.colors.actionPrimaryBackgroundPress}`,
15530
- [`.${clsPrefix}-switch-handle:before`]: {
15531
- boxShadow: `0px 0px 0px 1px ${theme.colors.actionPrimaryBackgroundHover}`
15532
- }
15533
- },
15534
- [`&:focus-visible`]: {
15535
- border: `1px solid ${theme.colors.actionPrimaryBackgroundDefault}`,
15536
- boxShadow: 'none',
15537
- outlineStyle: 'solid',
15538
- outlineWidth: '1px',
15539
- outlineOffset: '1px',
15540
- outlineColor: theme.colors.actionDefaultBorderFocus,
15541
- [`.${clsPrefix}-switch-handle:before`]: {
15542
- boxShadow: `0px 0px 0px 1px ${theme.colors.actionPrimaryBackgroundDefault}`
15543
- }
15544
- },
15545
- [`&:focus`]: {
15546
- boxShadow: 'none'
15547
- }
15548
- },
15549
- // Switch is On
15550
- [`&.${clsPrefix}-switch-checked`]: {
15551
- backgroundColor: theme.colors.actionPrimaryBackgroundDefault,
15552
- border: `1px solid ${theme.colors.actionPrimaryBackgroundDefault}`,
15553
- [`&:hover:not(.${clsPrefix}-switch-disabled)`]: {
15554
- backgroundColor: theme.colors.actionPrimaryBackgroundHover,
15555
- border: `1px solid ${theme.colors.actionPrimaryBackgroundDefault}`
15556
- },
15557
- [`&:active:not(.${clsPrefix}-switch-disabled)`]: {
15558
- backgroundColor: theme.colors.actionPrimaryBackgroundPress
15559
- },
15560
- [`.${clsPrefix}-switch-handle:before`]: {
15561
- boxShadow: `0px 0px 0px 1px ${theme.colors.actionPrimaryBackgroundDefault}`
15562
- },
15563
- [`&.${clsPrefix}-switch-disabled`]: {
15564
- backgroundColor: theme.colors.actionDisabledBackground,
15565
- border: `1px solid ${theme.colors.actionDisabledBackground}`,
15566
- [`.${clsPrefix}-switch-handle:before`]: {
15567
- boxShadow: `0px 0px 0px 1px ${theme.colors.actionDisabledBackground}`
15568
- }
15569
- }
15570
- },
15571
- [`.${clsPrefix}-switch-handle:before`]: {
15572
- backgroundColor: theme.colors.backgroundPrimary
15573
- },
15574
- [`&& + .${clsPrefix}-hint, && + .${clsPrefix}-form-message`]: {
15575
- paddingLeft: theme.spacing.sm + SWITCH_WIDTH
15576
- },
15577
- [`&& + .${clsPrefix}-form-message`]: {
15578
- marginTop: 0
15579
- },
15580
- [`.${clsPrefix}-click-animating-node`]: {
15581
- animation: 'none'
15582
- }
15583
- };
15584
- const importantStyles = importantify(styles);
15585
- return /*#__PURE__*/css(importantStyles, process.env.NODE_ENV === "production" ? "" : ";label:getSwitchWithLabelStyles;");
15586
- };
15587
- const Switch = _ref2 => {
15588
- var _props$id;
15589
- let {
15590
- dangerouslySetAntdProps,
15591
- label,
15592
- labelProps,
15593
- activeLabel,
15594
- inactiveLabel,
15595
- disabledLabel,
15596
- ...props
15597
- } = _ref2;
16959
+ var _ref = process.env.NODE_ENV === "production" ? {
16960
+ name: "tp1ooh",
16961
+ styles: "display:inline-flex;position:relative;vertical-align:middle"
16962
+ } : {
16963
+ name: "1kplxg4-SplitButton",
16964
+ styles: "display:inline-flex;position:relative;vertical-align:middle;label:SplitButton;",
16965
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$1
16966
+ };
16967
+ const SplitButton = props => {
15598
16968
  const {
15599
16969
  theme,
15600
16970
  classNamePrefix
15601
16971
  } = useDesignSystemTheme();
15602
- const duboisId = useUniqueId('dubois-switch');
15603
- const uniqueId = (_props$id = props.id) !== null && _props$id !== void 0 ? _props$id : duboisId;
15604
- const [isChecked, setIsChecked] = useState(props.checked || props.defaultChecked);
15605
- const handleToggle = (newState, event) => {
15606
- if (props.onChange) {
15607
- props.onChange(newState, event);
15608
- } else {
15609
- setIsChecked(newState);
15610
- }
15611
- };
15612
- useEffect(() => {
15613
- setIsChecked(props.checked);
15614
- }, [props.checked]);
15615
- const hasNewLabels = activeLabel && inactiveLabel && disabledLabel;
15616
- const stateMessage = isChecked ? activeLabel : inactiveLabel;
16972
+ const {
16973
+ children,
16974
+ icon,
16975
+ deprecatedMenu,
16976
+ type,
16977
+ loading,
16978
+ loadingButtonStyles,
16979
+ placement,
16980
+ dangerouslySetAntdProps,
16981
+ ...dropdownButtonProps
16982
+ } = props;
15617
16983
 
15618
- // AntDSwitch's interface does not include `id` even though it passes it through and works as expected
15619
- // We are using this to bypass that check
15620
- const idPropObj = {
15621
- id: uniqueId
15622
- };
15623
- const switchComponent = jsx(Switch$1, {
15624
- ...props,
15625
- ...dangerouslySetAntdProps,
15626
- onChange: handleToggle,
15627
- ...idPropObj,
15628
- css: /*#__PURE__*/css({
15629
- ... /*#__PURE__*/css(getAnimationCss(theme.options.enableAnimation), process.env.NODE_ENV === "production" ? "" : ";label:switchComponent;"),
15630
- ...getSwitchWithLabelStyles({
15631
- clsPrefix: classNamePrefix,
15632
- theme
15633
- })
15634
- }, process.env.NODE_ENV === "production" ? "" : ";label:switchComponent;")
15635
- });
15636
- const labelComponent = jsx(Label, {
15637
- inline: true,
15638
- ...labelProps,
15639
- htmlFor: uniqueId,
15640
- style: {
15641
- ...(hasNewLabels && {
15642
- marginRight: theme.spacing.sm
15643
- })
15644
- },
15645
- children: label
15646
- });
15647
- return label ? jsx(DesignSystemAntDConfigProvider, {
16984
+ // Size of button when loading only icon is shown
16985
+ const LOADING_BUTTON_SIZE = theme.general.iconFontSize + 2 * BUTTON_HORIZONTAL_PADDING + 2 * theme.general.borderWidth;
16986
+ const [width, setWidth] = useState(LOADING_BUTTON_SIZE);
16987
+
16988
+ // Set the width to the button's width in regular state to later use when in loading state
16989
+ // We do this to have just a loading icon in loading state at the normal width to avoid flicker and width changes in page
16990
+ const ref = useCallback(node => {
16991
+ if (node && !loading) {
16992
+ setWidth(node.getBoundingClientRect().width);
16993
+ }
16994
+ }, [loading]);
16995
+ return jsx(DesignSystemAntDConfigProvider, {
15648
16996
  children: jsx("div", {
15649
- css: getSwitchWithLabelStyles({
15650
- clsPrefix: classNamePrefix,
15651
- theme
15652
- }),
15653
- children: hasNewLabels ? jsxs(Fragment, {
15654
- children: [labelComponent, jsx("span", {
15655
- style: {
15656
- marginLeft: 'auto',
15657
- marginRight: theme.spacing.sm
15658
- },
15659
- children: `${stateMessage}${props.disabled ? ` (${disabledLabel})` : ''}`
15660
- }), switchComponent]
15661
- }) : jsxs(Fragment, {
15662
- children: [switchComponent, labelComponent]
16997
+ ref: ref,
16998
+ css: _ref,
16999
+ children: loading ? jsx(Button, {
17000
+ componentId: "codegen_design-system_src_design-system_splitbutton_splitbutton.tsx_163",
17001
+ type: type === 'default' ? undefined : type,
17002
+ style: {
17003
+ width: width,
17004
+ fontSize: theme.general.iconFontSize,
17005
+ ...loadingButtonStyles
17006
+ },
17007
+ loading: true,
17008
+ htmlType: props.htmlType,
17009
+ title: props.title,
17010
+ className: props.className,
17011
+ children: children
17012
+ }) : jsx(DropdownButton, {
17013
+ ...dropdownButtonProps,
17014
+ overlay: deprecatedMenu,
17015
+ trigger: ['click'],
17016
+ css: getSplitButtonEmotionStyles(classNamePrefix, theme),
17017
+ icon: jsx(ChevronDownIcon$1, {
17018
+ css: /*#__PURE__*/css({
17019
+ fontSize: theme.general.iconSize
17020
+ }, process.env.NODE_ENV === "production" ? "" : ";label:SplitButton;"),
17021
+ "aria-hidden": "true"
17022
+ }),
17023
+ placement: placement || 'bottomRight',
17024
+ type: type === 'default' ? undefined : type,
17025
+ leftButtonIcon: icon,
17026
+ ...dangerouslySetAntdProps,
17027
+ children: children
15663
17028
  })
15664
17029
  })
15665
- }) : jsx(DesignSystemAntDConfigProvider, {
15666
- children: jsx(Switch$1, {
15667
- ...props,
15668
- ...dangerouslySetAntdProps,
15669
- ...idPropObj,
15670
- css: /*#__PURE__*/css({
15671
- ... /*#__PURE__*/css(getAnimationCss(theme.options.enableAnimation), process.env.NODE_ENV === "production" ? "" : ";label:Switch;"),
15672
- ...getSwitchWithLabelStyles({
15673
- clsPrefix: classNamePrefix,
15674
- theme
15675
- })
15676
- }, process.env.NODE_ENV === "production" ? "" : ";label:Switch;")
15677
- })
15678
17030
  });
15679
17031
  };
15680
17032
 
15681
- 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)."; }
17033
+ const Steps = /* #__PURE__ */(() => {
17034
+ function Steps(_ref) {
17035
+ let {
17036
+ dangerouslySetAntdProps,
17037
+ ...props
17038
+ } = _ref;
17039
+ return jsx(DesignSystemAntDConfigProvider, {
17040
+ children: jsx(Steps$1, {
17041
+ ...props,
17042
+ ...dangerouslySetAntdProps
17043
+ })
17044
+ });
17045
+ }
17046
+ Steps.Step = Steps$1.Step;
17047
+ return Steps;
17048
+ })();
17049
+
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)."; }
15682
17051
  const getTableFilterInputStyles = (theme, defaultWidth) => {
15683
17052
  return /*#__PURE__*/css({
15684
17053
  [theme.responsive.mediaQueries.sm]: {
@@ -15698,7 +17067,7 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
15698
17067
  } : {
15699
17068
  name: "3ktoz7-component",
15700
17069
  styles: "display:flex;width:100%;label:component;",
15701
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$1
17070
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
15702
17071
  };
15703
17072
  var _ref3 = process.env.NODE_ENV === "production" ? {
15704
17073
  name: "82a6rk",
@@ -15706,13 +17075,14 @@ var _ref3 = process.env.NODE_ENV === "production" ? {
15706
17075
  } : {
15707
17076
  name: "18ug1j7-component",
15708
17077
  styles: "flex:1;label:component;",
15709
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$1
17078
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
15710
17079
  };
15711
17080
  const TableFilterInput = /*#__PURE__*/forwardRef(function SearchInput(_ref, ref) {
15712
17081
  let {
15713
17082
  onSubmit,
15714
17083
  showSearchButton,
15715
17084
  className,
17085
+ containerProps,
15716
17086
  searchButtonProps,
15717
17087
  ...inputProps
15718
17088
  } = _ref;
@@ -15737,6 +17107,7 @@ const TableFilterInput = /*#__PURE__*/forwardRef(function SearchInput(_ref, ref)
15737
17107
  ref: ref,
15738
17108
  css: _ref3
15739
17109
  }), jsx(Button, {
17110
+ componentId: "codegen_design-system_src_design-system_tableui_tablefilterinput.tsx_65",
15740
17111
  htmlType: "submit",
15741
17112
  "aria-label": "Search",
15742
17113
  ...searchButtonProps,
@@ -15744,56 +17115,22 @@ const TableFilterInput = /*#__PURE__*/forwardRef(function SearchInput(_ref, ref)
15744
17115
  })]
15745
17116
  });
15746
17117
  }
15747
- const commonProps = {
17118
+ return jsx("div", {
15748
17119
  style: {
15749
17120
  height: theme.general.heightSm
15750
17121
  },
15751
- css: getTableFilterInputStyles(theme, DEFAULT_WIDTH)
15752
- };
15753
- if (onSubmit) {
15754
- return jsx("form", {
15755
- ...commonProps,
17122
+ css: getTableFilterInputStyles(theme, DEFAULT_WIDTH),
17123
+ ...containerProps,
17124
+ children: onSubmit ? jsx("form", {
15756
17125
  onSubmit: e => {
15757
17126
  e.preventDefault();
15758
17127
  onSubmit();
15759
17128
  },
15760
17129
  children: component
15761
- });
15762
- } else {
15763
- return jsx("div", {
15764
- ...commonProps,
15765
- children: component
15766
- });
15767
- }
17130
+ }) : component
17131
+ });
15768
17132
  });
15769
17133
 
15770
- 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)."; }
15771
- const tableFilterLayoutStyles = {
15772
- layout: process.env.NODE_ENV === "production" ? {
15773
- name: "1yb0qmd",
15774
- styles: "display:flex;flex-direction:row;justify-content:space-between;margin-bottom:var(--table-filter-layout-group-margin)"
15775
- } : {
15776
- name: "bmua0k-layout",
15777
- styles: "display:flex;flex-direction:row;justify-content:space-between;margin-bottom:var(--table-filter-layout-group-margin);label:layout;",
15778
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
15779
- },
15780
- filters: process.env.NODE_ENV === "production" ? {
15781
- name: "2pdmyz",
15782
- styles: "display:flex;flex-wrap:wrap;flex-direction:row;align-items:center;gap:var(--table-filter-layout-item-gap);flex:1"
15783
- } : {
15784
- name: "i28ows-filters",
15785
- styles: "display:flex;flex-wrap:wrap;flex-direction:row;align-items:center;gap:var(--table-filter-layout-item-gap);flex:1;label:filters;",
15786
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
15787
- },
15788
- filterActions: process.env.NODE_ENV === "production" ? {
15789
- name: "1ol8kzq",
15790
- styles: "display:flex;gap:var(--table-filter-layout-item-gap);margin-left:var(--table-filter-layout-group-margin)"
15791
- } : {
15792
- name: "bcekwq-filterActions",
15793
- styles: "display:flex;gap:var(--table-filter-layout-item-gap);margin-left:var(--table-filter-layout-group-margin);label:filterActions;",
15794
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
15795
- }
15796
- };
15797
17134
  const TableFilterLayout = /*#__PURE__*/forwardRef(function TableFilterLayout(_ref, ref) {
15798
17135
  let {
15799
17136
  children,
@@ -15802,9 +17139,44 @@ const TableFilterLayout = /*#__PURE__*/forwardRef(function TableFilterLayout(_re
15802
17139
  actions,
15803
17140
  ...rest
15804
17141
  } = _ref;
17142
+ const useReflowWrapStyles = safex('databricks.fe.wexp.enableReflowWrapStyles', false);
15805
17143
  const {
15806
17144
  theme
15807
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
+ };
15808
17180
  return jsxs("div", {
15809
17181
  ...rest,
15810
17182
  ref: ref,
@@ -16403,6 +17775,7 @@ function getTreeEmotionStyles(clsPrefix, theme, size, useNewTree) {
16403
17775
  const classNodeActive = `.${clsPrefix}-tree-treenode-active`;
16404
17776
  const classNodeDisabled = `.${clsPrefix}-tree-treenode-disabled`;
16405
17777
  const classContent = `.${clsPrefix}-tree-node-content-wrapper`;
17778
+ const classContentTitle = `.${clsPrefix}-tree-title`;
16406
17779
  const classSelected = `.${clsPrefix}-tree-node-selected`;
16407
17780
  const classSwitcher = `.${clsPrefix}-tree-switcher`;
16408
17781
  const classSwitcherNoop = `.${clsPrefix}-tree-switcher-noop`;
@@ -16413,13 +17786,21 @@ function getTreeEmotionStyles(clsPrefix, theme, size, useNewTree) {
16413
17786
  const classTreeList = `.${clsPrefix}-tree-list`;
16414
17787
  const classScrollbar = `.${clsPrefix}-tree-list-scrollbar`;
16415
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`;
16416
17791
  const NODE_SIZE = sizeMap[size].nodeSize;
16417
17792
  const ICON_FONT_SIZE = useNewTree ? 16 : 24;
16418
17793
  const BORDER_WIDTH = 4;
17794
+ const baselineAligned = {
17795
+ alignSelf: 'baseline',
17796
+ display: 'flex',
17797
+ alignItems: 'center',
17798
+ justifyContent: 'center'
17799
+ };
16419
17800
  const styles = {
16420
17801
  // Basic node
16421
17802
  [classNode]: {
16422
- height: NODE_SIZE,
17803
+ minHeight: NODE_SIZE,
16423
17804
  width: '100%',
16424
17805
  padding: 0,
16425
17806
  paddingLeft: BORDER_WIDTH,
@@ -16497,6 +17878,12 @@ function getTreeEmotionStyles(clsPrefix, theme, size, useNewTree) {
16497
17878
  backgroundColor: 'transparent'
16498
17879
  }
16499
17880
  },
17881
+ [classContentTitle]: {
17882
+ lineHeight: theme.typography.lineHeightBase,
17883
+ padding: `${(NODE_SIZE - parseInt(theme.typography.lineHeightBase, 10)) / 2}px 0`,
17884
+ // The content inside 'classContent' is wrapped in the title class, which is the actual interactive element.
17885
+ width: '100%'
17886
+ },
16500
17887
  // TODO(FEINF-1595): Temporary style for now
16501
17888
  ...(useNewTree && {
16502
17889
  [`${classSwitcherNoop} + ${classContent}, ${classSwitcherNoop} + ${classCheckbox}`]: {
@@ -16539,13 +17926,25 @@ function getTreeEmotionStyles(clsPrefix, theme, size, useNewTree) {
16539
17926
  outlineStyle: 'solid'
16540
17927
  },
16541
17928
  [classCheckbox]: {
16542
- marginTop: 0,
17929
+ marginTop: size === 'default' ? theme.spacing.sm : theme.spacing.xs,
16543
17930
  marginBottom: 0,
16544
- marginRight: theme.spacing.sm
17931
+ marginRight: size === 'default' ? theme.spacing.sm : theme.spacing.xs,
17932
+ ...baselineAligned
16545
17933
  },
16546
17934
  [classScrollbarThumb]: {
16547
17935
  background: chroma(theme.isDarkMode ? '#ffffff' : '#000000').alpha(0.5).hex()
16548
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
+ },
16549
17948
  // Vertical line
16550
17949
  ...(useNewTree && {
16551
17950
  [classIndent]: {
@@ -16629,5 +18028,257 @@ const Tree = /*#__PURE__*/forwardRef(function Tree(_ref, ref) {
16629
18028
  });
16630
18029
  });
16631
18030
 
16632
- 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, 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, 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, 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, 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, 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, SpeechBubbleIcon$1 as SpeechBubbleIcon, SpeechBubblePlusIcon$1 as SpeechBubblePlusIcon, SpeechBubbleQuestionMarkIcon$1 as SpeechBubbleQuestionMarkIcon, Spinner, SplitButton, StarFillIcon$1 as StarFillIcon, StarIcon$1 as StarIcon, 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, 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$1 as 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, 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 };
16633
18284
  //# sourceMappingURL=index.js.map