@databricks/design-system 1.9.2 → 1.9.3

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 (200) hide show
  1. package/dist/{Typography-74e19785.js → Spinner-140f57ac.js} +1080 -27
  2. package/dist/Spinner-140f57ac.js.map +1 -0
  3. package/dist/common-3ab0e300.js +15 -0
  4. package/dist/common-3ab0e300.js.map +1 -0
  5. package/dist/design-system/Button/Button.d.ts +5 -1
  6. package/dist/design-system/Button/Button.d.ts.map +1 -1
  7. package/dist/design-system/Button/styles.d.ts.map +1 -1
  8. package/dist/design-system/Checkbox/Checkbox.d.ts.map +1 -1
  9. package/dist/design-system/DatePicker/DatePicker.d.ts +18 -14
  10. package/dist/design-system/DatePicker/DatePicker.d.ts.map +1 -1
  11. package/dist/design-system/Drawer/Drawer.d.ts +6 -1
  12. package/dist/design-system/Drawer/Drawer.d.ts.map +1 -1
  13. package/dist/design-system/FormV2/RHFAdapters.d.ts +7 -7
  14. package/dist/design-system/FormV2/RHFAdapters.d.ts.map +1 -1
  15. package/dist/design-system/Icon/__generated/icons/index.d.ts +0 -35
  16. package/dist/design-system/Icon/__generated/icons/index.d.ts.map +1 -1
  17. package/dist/design-system/LegacyTable/LegacyTable.d.ts +100 -0
  18. package/dist/design-system/LegacyTable/LegacyTable.d.ts.map +1 -0
  19. package/dist/design-system/LegacyTable/index.d.ts +2 -0
  20. package/dist/design-system/LegacyTable/index.d.ts.map +1 -0
  21. package/dist/design-system/Modal/Modal.d.ts +3 -1
  22. package/dist/design-system/Modal/Modal.d.ts.map +1 -1
  23. package/dist/design-system/Notification/Notification.d.ts.map +1 -1
  24. package/dist/design-system/PageWrapper/PageWrapper.d.ts.map +1 -1
  25. package/dist/design-system/PopoverV2/PopoverV2.d.ts +1 -0
  26. package/dist/design-system/PopoverV2/PopoverV2.d.ts.map +1 -1
  27. package/dist/design-system/Radio/Radio.d.ts.map +1 -1
  28. package/dist/design-system/SegmentedControl/SegmentedControl.d.ts +0 -2
  29. package/dist/design-system/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  30. package/dist/design-system/SplitButton/Dropdown/DropdownButton.d.ts.map +1 -1
  31. package/dist/design-system/Table/index.d.ts +1 -1
  32. package/dist/design-system/ToggleButton/ToggleButton.d.ts.map +1 -1
  33. package/dist/design-system/ToggleButton/index.d.ts +2 -0
  34. package/dist/design-system/ToggleButton/index.d.ts.map +1 -0
  35. package/dist/design-system/index.d.ts +2 -1
  36. package/dist/design-system/index.d.ts.map +1 -1
  37. package/dist/development/Filter/Filter.d.ts +10 -0
  38. package/dist/development/Filter/Filter.d.ts.map +1 -0
  39. package/dist/development/Filter/Filter.test.d.ts +2 -0
  40. package/dist/development/Filter/Filter.test.d.ts.map +1 -0
  41. package/dist/development/Filter/FilterButtonContainer.d.ts +2 -0
  42. package/dist/development/Filter/FilterButtonContainer.d.ts.map +1 -0
  43. package/dist/development/Filter/FilterContent.d.ts +14 -0
  44. package/dist/development/Filter/FilterContent.d.ts.map +1 -0
  45. package/dist/development/Filter/FilterCountBadge.d.ts +2 -0
  46. package/dist/development/Filter/FilterCountBadge.d.ts.map +1 -0
  47. package/dist/development/Filter/FilterLoadingSpinner.d.ts +2 -0
  48. package/dist/development/Filter/FilterLoadingSpinner.d.ts.map +1 -0
  49. package/dist/development/Filter/FilterOptionControlledList.d.ts +9 -0
  50. package/dist/development/Filter/FilterOptionControlledList.d.ts.map +1 -0
  51. package/dist/development/Filter/FilterOptionList.d.ts +10 -0
  52. package/dist/development/Filter/FilterOptionList.d.ts.map +1 -0
  53. package/dist/development/Filter/FilterOptionListCheckboxItem.d.ts +11 -0
  54. package/dist/development/Filter/FilterOptionListCheckboxItem.d.ts.map +1 -0
  55. package/dist/development/Filter/FilterOptionListSearch.d.ts +7 -0
  56. package/dist/development/Filter/FilterOptionListSearch.d.ts.map +1 -0
  57. package/dist/development/Filter/FilterOptionListSelectItem.d.ts +10 -0
  58. package/dist/development/Filter/FilterOptionListSelectItem.d.ts.map +1 -0
  59. package/dist/development/Filter/FilterSectionHeader.d.ts +2 -0
  60. package/dist/development/Filter/FilterSectionHeader.d.ts.map +1 -0
  61. package/dist/development/Filter/FilterSeparator.d.ts +2 -0
  62. package/dist/development/Filter/FilterSeparator.d.ts.map +1 -0
  63. package/dist/development/Filter/FilterTrigger.d.ts +15 -0
  64. package/dist/development/Filter/FilterTrigger.d.ts.map +1 -0
  65. package/dist/development/Filter/hooks/useFilterContext.d.ts +2 -0
  66. package/dist/development/Filter/hooks/useFilterContext.d.ts.map +1 -0
  67. package/dist/development/Filter/hooks/useFilterOptionListContext.d.ts +2 -0
  68. package/dist/development/Filter/hooks/useFilterOptionListContext.d.ts.map +1 -0
  69. package/dist/development/Filter/index.d.ts +14 -0
  70. package/dist/development/Filter/index.d.ts.map +1 -0
  71. package/dist/development/Filter/providers/FilterContext.d.ts +15 -0
  72. package/dist/development/Filter/providers/FilterContext.d.ts.map +1 -0
  73. package/dist/development/Filter/providers/FilterOptionListContext.d.ts +10 -0
  74. package/dist/development/Filter/providers/FilterOptionListContext.d.ts.map +1 -0
  75. package/dist/development/Filter/shared.d.ts +3 -0
  76. package/dist/development/Filter/shared.d.ts.map +1 -0
  77. package/dist/development/ListPagePattern/index.d.ts +1 -0
  78. package/dist/development/ListPagePattern/index.d.ts.map +1 -0
  79. package/dist/development/TableUI/index.d.ts +19 -0
  80. package/dist/development/TableUI/index.d.ts.map +1 -1
  81. package/dist/development/index.d.ts +1 -0
  82. package/dist/development/index.d.ts.map +1 -1
  83. package/dist/development.js +1056 -52
  84. package/dist/development.js.map +1 -1
  85. package/dist/index.js +623 -1508
  86. package/dist/index.js.map +1 -1
  87. package/dist/test-utils/common.d.ts +11 -0
  88. package/dist/test-utils/common.d.ts.map +1 -0
  89. package/dist/test-utils/enzyme/index.d.ts +1 -0
  90. package/dist/test-utils/enzyme/index.d.ts.map +1 -1
  91. package/dist/test-utils/enzyme/selectEvent.d.ts +42 -0
  92. package/dist/test-utils/enzyme/selectEvent.d.ts.map +1 -0
  93. package/dist/test-utils/enzyme/selectEvent.test.d.ts +2 -0
  94. package/dist/test-utils/enzyme/selectEvent.test.d.ts.map +1 -0
  95. package/dist/test-utils/enzyme/utils.d.ts +33 -0
  96. package/dist/test-utils/enzyme/utils.d.ts.map +1 -0
  97. package/dist/test-utils/enzyme.js +258 -1
  98. package/dist/test-utils/enzyme.js.map +1 -1
  99. package/dist/test-utils/rtl/index.d.ts +1 -0
  100. package/dist/test-utils/rtl/index.d.ts.map +1 -1
  101. package/dist/test-utils/rtl/selectEvent.d.ts +41 -0
  102. package/dist/test-utils/rtl/selectEvent.d.ts.map +1 -0
  103. package/dist/test-utils/rtl/selectEvent.test.d.ts +2 -0
  104. package/dist/test-utils/rtl/selectEvent.test.d.ts.map +1 -0
  105. package/dist/test-utils/rtl.js +135 -1
  106. package/dist/test-utils/rtl.js.map +1 -1
  107. package/dist/test-utils/types.d.ts +1 -14
  108. package/dist/test-utils/types.d.ts.map +1 -1
  109. package/dist/theme/colorList.d.ts +6 -7
  110. package/dist/theme/colorList.d.ts.map +1 -1
  111. package/dist/theme/colors.d.ts +6 -7
  112. package/dist/theme/colors.d.ts.map +1 -1
  113. package/package.json +4 -3
  114. package/dist/Typography-04e40f87.js +0 -1465
  115. package/dist/Typography-04e40f87.js.map +0 -1
  116. package/dist/Typography-52abe0b7.js +0 -1142
  117. package/dist/Typography-52abe0b7.js.map +0 -1
  118. package/dist/Typography-74e19785.js.map +0 -1
  119. package/dist/Typography-84a00e02.js +0 -1465
  120. package/dist/Typography-84a00e02.js.map +0 -1
  121. package/dist/design-system/Icon/__generated/icons/ArrayIcon.v2.d.ts +0 -4
  122. package/dist/design-system/Icon/__generated/icons/ArrayIcon.v2.d.ts.map +0 -1
  123. package/dist/design-system/Icon/__generated/icons/BookmarkBorderIcon.d.ts +0 -4
  124. package/dist/design-system/Icon/__generated/icons/BookmarkBorderIcon.d.ts.map +0 -1
  125. package/dist/design-system/Icon/__generated/icons/BracketsIcon.v2.d.ts +0 -4
  126. package/dist/design-system/Icon/__generated/icons/BracketsIcon.v2.d.ts.map +0 -1
  127. package/dist/design-system/Icon/__generated/icons/CheckCircleBorderIcon.d.ts +0 -4
  128. package/dist/design-system/Icon/__generated/icons/CheckCircleBorderIcon.d.ts.map +0 -1
  129. package/dist/design-system/Icon/__generated/icons/ClusterIcon.d.ts +0 -4
  130. package/dist/design-system/Icon/__generated/icons/ClusterIcon.d.ts.map +0 -1
  131. package/dist/design-system/Icon/__generated/icons/ClustersIcon.d.ts +0 -4
  132. package/dist/design-system/Icon/__generated/icons/ClustersIcon.d.ts.map +0 -1
  133. package/dist/design-system/Icon/__generated/icons/DataMarketplace.v2.d.ts +0 -4
  134. package/dist/design-system/Icon/__generated/icons/DataMarketplace.v2.d.ts.map +0 -1
  135. package/dist/design-system/Icon/__generated/icons/ErrorBorderIcon.d.ts +0 -4
  136. package/dist/design-system/Icon/__generated/icons/ErrorBorderIcon.d.ts.map +0 -1
  137. package/dist/design-system/Icon/__generated/icons/ErrorFillIcon.d.ts +0 -4
  138. package/dist/design-system/Icon/__generated/icons/ErrorFillIcon.d.ts.map +0 -1
  139. package/dist/design-system/Icon/__generated/icons/ExperimentIcon.d.ts +0 -4
  140. package/dist/design-system/Icon/__generated/icons/ExperimentIcon.d.ts.map +0 -1
  141. package/dist/design-system/Icon/__generated/icons/Folder1Icon.d.ts +0 -4
  142. package/dist/design-system/Icon/__generated/icons/Folder1Icon.d.ts.map +0 -1
  143. package/dist/design-system/Icon/__generated/icons/Gear1Icon.d.ts +0 -4
  144. package/dist/design-system/Icon/__generated/icons/Gear1Icon.d.ts.map +0 -1
  145. package/dist/design-system/Icon/__generated/icons/InfoBorderIcon.d.ts +0 -4
  146. package/dist/design-system/Icon/__generated/icons/InfoBorderIcon.d.ts.map +0 -1
  147. package/dist/design-system/Icon/__generated/icons/LifesaverIcon.d.ts +0 -4
  148. package/dist/design-system/Icon/__generated/icons/LifesaverIcon.d.ts.map +0 -1
  149. package/dist/design-system/Icon/__generated/icons/LinkRemoveIcon.d.ts +0 -4
  150. package/dist/design-system/Icon/__generated/icons/LinkRemoveIcon.d.ts.map +0 -1
  151. package/dist/design-system/Icon/__generated/icons/LockBorderIcon.d.ts +0 -4
  152. package/dist/design-system/Icon/__generated/icons/LockBorderIcon.d.ts.map +0 -1
  153. package/dist/design-system/Icon/__generated/icons/MinusCircleBorderIcon.d.ts +0 -4
  154. package/dist/design-system/Icon/__generated/icons/MinusCircleBorderIcon.d.ts.map +0 -1
  155. package/dist/design-system/Icon/__generated/icons/NotificationsOffIcon.v2.d.ts +0 -4
  156. package/dist/design-system/Icon/__generated/icons/NotificationsOffIcon.v2.d.ts.map +0 -1
  157. package/dist/design-system/Icon/__generated/icons/PinBorderIcon.d.ts +0 -4
  158. package/dist/design-system/Icon/__generated/icons/PinBorderIcon.d.ts.map +0 -1
  159. package/dist/design-system/Icon/__generated/icons/PlayCircleBorderIcon.d.ts +0 -4
  160. package/dist/design-system/Icon/__generated/icons/PlayCircleBorderIcon.d.ts.map +0 -1
  161. package/dist/design-system/Icon/__generated/icons/PlusCircleBorderIcon.d.ts +0 -4
  162. package/dist/design-system/Icon/__generated/icons/PlusCircleBorderIcon.d.ts.map +0 -1
  163. package/dist/design-system/Icon/__generated/icons/QueryListViewIcon.d.ts +0 -4
  164. package/dist/design-system/Icon/__generated/icons/QueryListViewIcon.d.ts.map +0 -1
  165. package/dist/design-system/Icon/__generated/icons/QueryNavIcon.d.ts +0 -4
  166. package/dist/design-system/Icon/__generated/icons/QueryNavIcon.d.ts.map +0 -1
  167. package/dist/design-system/Icon/__generated/icons/QuestionMarkBorderIcon.d.ts +0 -4
  168. package/dist/design-system/Icon/__generated/icons/QuestionMarkBorderIcon.d.ts.map +0 -1
  169. package/dist/design-system/Icon/__generated/icons/Redo.d.ts +0 -4
  170. package/dist/design-system/Icon/__generated/icons/Redo.d.ts.map +0 -1
  171. package/dist/design-system/Icon/__generated/icons/RedoIcon.v2.d.ts +0 -4
  172. package/dist/design-system/Icon/__generated/icons/RedoIcon.v2.d.ts.map +0 -1
  173. package/dist/design-system/Icon/__generated/icons/Refresh.d.ts +0 -4
  174. package/dist/design-system/Icon/__generated/icons/Refresh.d.ts.map +0 -1
  175. package/dist/design-system/Icon/__generated/icons/Refresh.v2.d.ts +0 -4
  176. package/dist/design-system/Icon/__generated/icons/Refresh.v2.d.ts.map +0 -1
  177. package/dist/design-system/Icon/__generated/icons/RefreshIcon.v2.d.ts +0 -4
  178. package/dist/design-system/Icon/__generated/icons/RefreshIcon.v2.d.ts.map +0 -1
  179. package/dist/design-system/Icon/__generated/icons/Search1Icon.d.ts +0 -4
  180. package/dist/design-system/Icon/__generated/icons/Search1Icon.d.ts.map +0 -1
  181. package/dist/design-system/Icon/__generated/icons/StarBorderIcon.d.ts +0 -4
  182. package/dist/design-system/Icon/__generated/icons/StarBorderIcon.d.ts.map +0 -1
  183. package/dist/design-system/Icon/__generated/icons/StopCircleBorderIcon.d.ts +0 -4
  184. package/dist/design-system/Icon/__generated/icons/StopCircleBorderIcon.d.ts.map +0 -1
  185. package/dist/design-system/Icon/__generated/icons/StopCricleFillIcon.d.ts +0 -4
  186. package/dist/design-system/Icon/__generated/icons/StopCricleFillIcon.d.ts.map +0 -1
  187. package/dist/design-system/Icon/__generated/icons/Undo.d.ts +0 -4
  188. package/dist/design-system/Icon/__generated/icons/Undo.d.ts.map +0 -1
  189. package/dist/design-system/Icon/__generated/icons/Visible.d.ts +0 -4
  190. package/dist/design-system/Icon/__generated/icons/Visible.d.ts.map +0 -1
  191. package/dist/design-system/Icon/__generated/icons/VisibleOff.d.ts +0 -4
  192. package/dist/design-system/Icon/__generated/icons/VisibleOff.d.ts.map +0 -1
  193. package/dist/design-system/Icon/__generated/icons/WarningBorderIcon.d.ts +0 -4
  194. package/dist/design-system/Icon/__generated/icons/WarningBorderIcon.d.ts.map +0 -1
  195. package/dist/design-system/Icon/__generated/icons/XCircleBorderIcon.d.ts +0 -4
  196. package/dist/design-system/Icon/__generated/icons/XCircleBorderIcon.d.ts.map +0 -1
  197. package/dist/test-utils/enzyme.d.ts +0 -8
  198. package/dist/test-utils/enzyme.d.ts.map +0 -1
  199. package/dist/test-utils/rtl.d.ts +0 -7
  200. package/dist/test-utils/rtl.d.ts.map +0 -1
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import * as React from 'react';
2
2
  import React__default, { useRef, useMemo, forwardRef, useImperativeHandle, Children, useCallback, useContext, useState, useEffect, createContext } from 'react';
3
- import { u as useDesignSystemTheme, a as useDesignSystemFlags, I as Icon, D as DesignSystemAntDConfigProvider, R as RestoreAntDDefaultClsPrefix, g as getAnimationCss, i as importantify, b as useDesignSystemContext, A as ApplyDesignSystemContextOverrides, T as Typography, c as getValidationStateColor, C as Checkbox, d as Title$2, e as DU_BOIS_ENABLE_ANIMATION_CLASSNAME, l as lightColorList } from './Typography-74e19785.js';
4
- export { A as ApplyDesignSystemContextOverrides, k as ApplyDesignSystemFlags, C as Checkbox, e as DU_BOIS_ENABLE_ANIMATION_CLASSNAME, D as DesignSystemAntDConfigProvider, h as DesignSystemContext, j as DesignSystemProvider, I as Icon, N as NewWindowIcon, R as RestoreAntDDefaultClsPrefix, S as SortAscendingIcon, n as SortDescendingIcon, o as SortUnsortedIcon, T as Typography, W as WithDesignSystemThemeHoc, _ as __INTERNAL_DO_NOT_USE__Group, g as getAnimationCss, f as getWrapperStyle, m as useAntDConfigProviderContext, a as useDesignSystemFlags, u as useDesignSystemTheme } from './Typography-74e19785.js';
3
+ import { u as useDesignSystemTheme, a as useDesignSystemFlags, I as Icon, D as DesignSystemAntDConfigProvider, R as RestoreAntDDefaultClsPrefix, C as ChevronDownIcon, g as getAnimationCss, b as CloseIcon, c as useDesignSystemContext, A as ApplyDesignSystemContextOverrides, T as Typography, B as Button, d as CheckIcon, e as Tooltip, i as importantify, X as XCircleFillIcon, L as LoadingIcon, f as getValidationStateColor, h as Input, j as Checkbox, k as Title$2, S as Spinner, l as DU_BOIS_ENABLE_ANIMATION_CLASSNAME, m as getDefaultStyles, n as getPrimaryStyles, o as getDisabledStyles, p as lightColorList } from './Spinner-140f57ac.js';
4
+ export { A as ApplyDesignSystemContextOverrides, v as ApplyDesignSystemFlags, B as Button, d as CheckIcon, j as Checkbox, C as ChevronDownIcon, b as CloseIcon, l as DU_BOIS_ENABLE_ANIMATION_CLASSNAME, D as DesignSystemAntDConfigProvider, s as DesignSystemContext, t as DesignSystemProvider, I as Icon, h as Input, L as LoadingIcon, N as NewWindowIcon, R as RestoreAntDDefaultClsPrefix, x as SearchIcon, y as SortAscendingIcon, z as SortDescendingIcon, E as SortUnsortedIcon, S as Spinner, e as Tooltip, T as Typography, W as WithDesignSystemThemeHoc, X as XCircleFillIcon, H as __INTERNAL_DO_NOT_USE_DEDUPE__Group, _ as __INTERNAL_DO_NOT_USE__Group, G as __INTERNAL_DO_NOT_USE__Password, F as __INTERNAL_DO_NOT_USE__TextArea, g as getAnimationCss, q as getButtonEmotionStyles, r as getWrapperStyle, w as useAntDConfigProviderContext, a as useDesignSystemFlags, u as useDesignSystemTheme } from './Spinner-140f57ac.js';
5
5
  import { jsx, jsxs, Fragment } from '@emotion/react/jsx-runtime';
6
6
  import { css, keyframes, ClassNames } from '@emotion/react';
7
- import { Collapse, Alert as Alert$1, AutoComplete as AutoComplete$1, Breadcrumb as Breadcrumb$1, Button as Button$1, DatePicker, Dropdown as Dropdown$1, Tooltip as Tooltip$1, Form as Form$1, Input as Input$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, Menu as Menu$1, Modal as Modal$1, notification, Pagination as Pagination$1, Popover as Popover$2, Skeleton as Skeleton$1, Table as Table$1, Tabs as Tabs$1, Tree as Tree$1 } from 'antd';
7
+ import { Collapse, Alert as Alert$1, AutoComplete as AutoComplete$1, Breadcrumb as Breadcrumb$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, Pagination as Pagination$1, Table as Table$1, Menu as Menu$1, Modal as Modal$1, notification, Popover as Popover$2, Skeleton as Skeleton$1, Button as Button$1, Switch as Switch$1, Tabs as Tabs$1, Tree as Tree$1 } from 'antd';
8
8
  import classnames from 'classnames';
9
9
  import * as DialogPrimitive from '@radix-ui/react-dialog';
10
10
  import * as DropdownMenu$1 from '@radix-ui/react-dropdown-menu';
@@ -14,7 +14,7 @@ import * as Popover$1 from '@radix-ui/react-popover';
14
14
  import _taggedTemplateLiteral from '@babel/runtime/helpers/taggedTemplateLiteral';
15
15
  import { ResizableBox } from 'react-resizable';
16
16
  import AntDIcon from '@ant-design/icons';
17
- import 'chroma-js';
17
+ import * as Toggle from '@radix-ui/react-toggle';
18
18
  import 'lodash/isNil';
19
19
  import 'lodash/endsWith';
20
20
  import 'lodash/isBoolean';
@@ -22,6 +22,7 @@ import 'lodash/isNumber';
22
22
  import 'lodash/isString';
23
23
  import 'lodash/mapValues';
24
24
  import '@emotion/unitless';
25
+ import 'chroma-js';
25
26
 
26
27
  /**
27
28
  * A helper hook that allows quick creation of theme-dependent styles.
@@ -969,47 +970,6 @@ function CheckCircleIcon(props) {
969
970
  });
970
971
  }
971
972
 
972
- function SvgCheckIconV1(props) {
973
- return jsx("svg", {
974
- width: "1em",
975
- height: "1em",
976
- viewBox: "0 0 24 24",
977
- fill: "none",
978
- xmlns: "http://www.w3.org/2000/svg",
979
- ...props,
980
- children: jsx("path", {
981
- d: "M8.795 15.875l-3.47-3.47a.996.996 0 00-1.41 0 .996.996 0 000 1.41l4.18 4.18c.39.39 1.02.39 1.41 0l10.58-10.58a.996.996 0 10-1.41-1.41l-9.88 9.87z",
982
- fill: "currentColor"
983
- })
984
- });
985
- }
986
- function SvgCheckIconV2(props) {
987
- return jsx("svg", {
988
- width: "1em",
989
- height: "1em",
990
- viewBox: "0 0 16 16",
991
- fill: "none",
992
- xmlns: "http://www.w3.org/2000/svg",
993
- ...props,
994
- children: jsx("path", {
995
- fillRule: "evenodd",
996
- clipRule: "evenodd",
997
- d: "M15.06 3.56l-9.53 9.531L1 8.561 2.06 7.5l3.47 3.47L14 2.5l1.06 1.06z",
998
- fill: "currentColor"
999
- })
1000
- });
1001
- }
1002
- function CheckIcon(props) {
1003
- const {
1004
- USE_NEW_ICONS
1005
- } = useDesignSystemFlags();
1006
- const component = USE_NEW_ICONS ? SvgCheckIconV2 : SvgCheckIconV1;
1007
- return jsx(Icon, {
1008
- ...props,
1009
- component: component
1010
- });
1011
- }
1012
-
1013
973
  function SvgCheckLineIconV1(props) {
1014
974
  return jsx("svg", {
1015
975
  width: "1em",
@@ -1268,47 +1228,6 @@ function ChevronDoubleUpIcon(props) {
1268
1228
  });
1269
1229
  }
1270
1230
 
1271
- function SvgChevronDownIconV1(props) {
1272
- return jsx("svg", {
1273
- width: "1em",
1274
- height: "1em",
1275
- viewBox: "0 0 24 24",
1276
- fill: "none",
1277
- xmlns: "http://www.w3.org/2000/svg",
1278
- ...props,
1279
- children: jsx("path", {
1280
- d: "M15.875 9l-3.88 3.88L8.115 9a.996.996 0 10-1.41 1.41l4.59 4.59c.39.39 1.02.39 1.41 0l4.59-4.59a.996.996 0 000-1.41c-.39-.38-1.03-.39-1.42 0z",
1281
- fill: "currentColor"
1282
- })
1283
- });
1284
- }
1285
- function SvgChevronDownIconV2(props) {
1286
- return jsx("svg", {
1287
- width: "1em",
1288
- height: "1em",
1289
- viewBox: "0 0 16 16",
1290
- fill: "none",
1291
- xmlns: "http://www.w3.org/2000/svg",
1292
- ...props,
1293
- children: jsx("path", {
1294
- fillRule: "evenodd",
1295
- clipRule: "evenodd",
1296
- d: "M8 8.917L10.947 6 12 7.042 8 11 4 7.042 5.053 6 8 8.917z",
1297
- fill: "currentColor"
1298
- })
1299
- });
1300
- }
1301
- function ChevronDownIcon(props) {
1302
- const {
1303
- USE_NEW_ICONS
1304
- } = useDesignSystemFlags();
1305
- const component = USE_NEW_ICONS ? SvgChevronDownIconV2 : SvgChevronDownIconV1;
1306
- return jsx(Icon, {
1307
- ...props,
1308
- component: component
1309
- });
1310
- }
1311
-
1312
1231
  function SvgChevronLeftIconV1(props) {
1313
1232
  return jsx("svg", {
1314
1233
  width: "1em",
@@ -1560,47 +1479,6 @@ function ClockIcon(props) {
1560
1479
  });
1561
1480
  }
1562
1481
 
1563
- function SvgCloseIconV1(props) {
1564
- return jsx("svg", {
1565
- width: "1em",
1566
- height: "1em",
1567
- viewBox: "0 0 24 24",
1568
- fill: "none",
1569
- xmlns: "http://www.w3.org/2000/svg",
1570
- ...props,
1571
- children: jsx("path", {
1572
- d: "M7.707 6.293a1 1 0 00-1.414 1.414L10.586 12l-4.293 4.293a1 1 0 101.414 1.414L12 13.414l4.293 4.293a1 1 0 001.414-1.414L13.414 12l4.293-4.293a1 1 0 00-1.414-1.414L12 10.586 7.707 6.293z",
1573
- fill: "currentColor"
1574
- })
1575
- });
1576
- }
1577
- function SvgCloseIconV2(props) {
1578
- return jsx("svg", {
1579
- width: "1em",
1580
- height: "1em",
1581
- viewBox: "0 0 16 16",
1582
- fill: "none",
1583
- xmlns: "http://www.w3.org/2000/svg",
1584
- ...props,
1585
- children: jsx("path", {
1586
- fillRule: "evenodd",
1587
- clipRule: "evenodd",
1588
- d: "M6.97 8.03L2 3.06 3.06 2l4.97 4.97L13 2l1.06 1.06-4.969 4.97 4.97 4.97L13 14.06 8.03 9.092l-4.97 4.97L2 13l4.97-4.97z",
1589
- fill: "currentColor"
1590
- })
1591
- });
1592
- }
1593
- function CloseIcon(props) {
1594
- const {
1595
- USE_NEW_ICONS
1596
- } = useDesignSystemFlags();
1597
- const component = USE_NEW_ICONS ? SvgCloseIconV2 : SvgCloseIconV1;
1598
- return jsx(Icon, {
1599
- ...props,
1600
- component: component
1601
- });
1602
- }
1603
-
1604
1482
  function SvgCloudDownloadIconV1(props) {
1605
1483
  return jsx("svg", {
1606
1484
  width: "1em",
@@ -3808,49 +3686,6 @@ function ListIcon(props) {
3808
3686
  });
3809
3687
  }
3810
3688
 
3811
- function SvgLoadingIconV1(props) {
3812
- return jsx("svg", {
3813
- width: "1em",
3814
- height: "1em",
3815
- viewBox: "0 0 24 24",
3816
- fill: "none",
3817
- xmlns: "http://www.w3.org/2000/svg",
3818
- ...props,
3819
- children: jsx("path", {
3820
- fillRule: "evenodd",
3821
- clipRule: "evenodd",
3822
- d: "M23.212 12a.788.788 0 01-.789-.788 9.57 9.57 0 00-.757-3.751 9.662 9.662 0 00-5.129-5.129 9.587 9.587 0 00-3.749-.755.788.788 0 010-1.577c1.513 0 2.983.296 4.365.882a11.128 11.128 0 013.562 2.403 11.157 11.157 0 013.283 7.927.785.785 0 01-.786.788z",
3823
- fill: "currentColor"
3824
- })
3825
- });
3826
- }
3827
- function SvgLoadingIconV2(props) {
3828
- return jsx("svg", {
3829
- width: "1em",
3830
- height: "1em",
3831
- viewBox: "0 0 24 24",
3832
- fill: "none",
3833
- xmlns: "http://www.w3.org/2000/svg",
3834
- ...props,
3835
- children: jsx("path", {
3836
- fillRule: "evenodd",
3837
- clipRule: "evenodd",
3838
- d: "M23.212 12a.788.788 0 01-.789-.788 9.57 9.57 0 00-.757-3.751 9.662 9.662 0 00-5.129-5.129 9.587 9.587 0 00-3.749-.755.788.788 0 010-1.577c1.513 0 2.983.296 4.365.882a11.128 11.128 0 013.562 2.403 11.157 11.157 0 013.283 7.927.785.785 0 01-.786.788z",
3839
- fill: "currentColor"
3840
- })
3841
- });
3842
- }
3843
- function LoadingIcon(props) {
3844
- const {
3845
- USE_NEW_ICONS
3846
- } = useDesignSystemFlags();
3847
- const component = USE_NEW_ICONS ? SvgLoadingIconV2 : SvgLoadingIconV1;
3848
- return jsx(Icon, {
3849
- ...props,
3850
- component: component
3851
- });
3852
- }
3853
-
3854
3689
  function SvgLockFillIconV1(props) {
3855
3690
  return jsx("svg", {
3856
3691
  width: "1em",
@@ -5536,60 +5371,6 @@ function SchoolIcon(props) {
5536
5371
  });
5537
5372
  }
5538
5373
 
5539
- function SvgSearchIconV1(props) {
5540
- return jsx("svg", {
5541
- width: "1em",
5542
- height: "1em",
5543
- viewBox: "0 0 24 24",
5544
- fill: "none",
5545
- xmlns: "http://www.w3.org/2000/svg",
5546
- ...props,
5547
- children: jsx("path", {
5548
- fillRule: "evenodd",
5549
- clipRule: "evenodd",
5550
- d: "M15.187 14.472h.79l4.24 4.26c.41.41.41 1.08 0 1.49-.41.41-1.08.41-1.49 0l-4.25-4.25v-.79l-.27-.28a6.5 6.5 0 01-5.34 1.48c-2.78-.47-5-2.79-5.34-5.59a6.505 6.505 0 017.27-7.27c2.8.34 5.12 2.56 5.59 5.34a6.5 6.5 0 01-1.48 5.34l.28.27zm-9.71-4.5c0 2.49 2.01 4.5 4.5 4.5s4.5-2.01 4.5-4.5-2.01-4.5-4.5-4.5-4.5 2.01-4.5 4.5z",
5551
- fill: "currentColor"
5552
- })
5553
- });
5554
- }
5555
- function SvgSearchIconV2(props) {
5556
- return jsxs("svg", {
5557
- width: "1em",
5558
- height: "1em",
5559
- viewBox: "0 0 16 16",
5560
- fill: "none",
5561
- xmlns: "http://www.w3.org/2000/svg",
5562
- ...props,
5563
- children: [jsx("g", {
5564
- clipPath: "url(#SearchIcon_svg__clip0_13123_34883)",
5565
- children: jsx("path", {
5566
- fillRule: "evenodd",
5567
- clipRule: "evenodd",
5568
- d: "M8 1a7 7 0 104.39 12.453l2.55 2.55 1.06-1.06-2.55-2.55A7 7 0 008 1zM2.5 8a5.5 5.5 0 1111 0 5.5 5.5 0 01-11 0z",
5569
- fill: "currentColor"
5570
- })
5571
- }), jsx("defs", {
5572
- children: jsx("clipPath", {
5573
- id: "SearchIcon_svg__clip0_13123_34883",
5574
- children: jsx("path", {
5575
- fill: "#fff",
5576
- d: "M0 0h16v16H0z"
5577
- })
5578
- })
5579
- })]
5580
- });
5581
- }
5582
- function SearchIcon(props) {
5583
- const {
5584
- USE_NEW_ICONS
5585
- } = useDesignSystemFlags();
5586
- const component = USE_NEW_ICONS ? SvgSearchIconV2 : SvgSearchIconV1;
5587
- return jsx(Icon, {
5588
- ...props,
5589
- component: component
5590
- });
5591
- }
5592
-
5593
5374
  function SvgSecurityIconV1(props) {
5594
5375
  return jsx("svg", {
5595
5376
  width: "1em",
@@ -6934,49 +6715,6 @@ function WarningIcon(props) {
6934
6715
  });
6935
6716
  }
6936
6717
 
6937
- function SvgXCircleFillIconV1(props) {
6938
- return jsx("svg", {
6939
- width: "1em",
6940
- height: "1em",
6941
- viewBox: "0 0 24 24",
6942
- fill: "none",
6943
- xmlns: "http://www.w3.org/2000/svg",
6944
- ...props,
6945
- children: jsx("path", {
6946
- fillRule: "evenodd",
6947
- clipRule: "evenodd",
6948
- d: "M2 12C2 6.48 6.48 2 12 2s10 4.48 10 10-4.48 10-10 10S2 17.52 2 12zm11.414 0l2.122-2.121a1.003 1.003 0 000-1.415 1.003 1.003 0 00-1.415 0L12 10.586 9.879 8.464a1.003 1.003 0 00-1.415 0 1.003 1.003 0 000 1.415L10.586 12l-2.122 2.121a1.003 1.003 0 000 1.415 1.003 1.003 0 001.415 0L12 13.414l2.121 2.122a1.003 1.003 0 001.415 0 1.003 1.003 0 000-1.415L13.414 12z",
6949
- fill: "currentColor"
6950
- })
6951
- });
6952
- }
6953
- function SvgXCircleFillIconV2(props) {
6954
- return jsx("svg", {
6955
- width: "1em",
6956
- height: "1em",
6957
- viewBox: "0 0 16 16",
6958
- fill: "none",
6959
- xmlns: "http://www.w3.org/2000/svg",
6960
- ...props,
6961
- children: jsx("path", {
6962
- fillRule: "evenodd",
6963
- clipRule: "evenodd",
6964
- d: "M8 16A8 8 0 108 0a8 8 0 000 16zm1.97-4.97L8 9.06l-1.97 1.97-1.06-1.06L6.94 8 4.97 6.03l1.06-1.06L8 6.94l1.97-1.97 1.06 1.06L9.06 8l1.97 1.97-1.06 1.06z",
6965
- fill: "currentColor"
6966
- })
6967
- });
6968
- }
6969
- function XCircleFillIcon(props) {
6970
- const {
6971
- USE_NEW_ICONS
6972
- } = useDesignSystemFlags();
6973
- const component = USE_NEW_ICONS ? SvgXCircleFillIconV2 : SvgXCircleFillIconV1;
6974
- return jsx(Icon, {
6975
- ...props,
6976
- component: component
6977
- });
6978
- }
6979
-
6980
6718
  function SvgXCircleIconV1(props) {
6981
6719
  return jsx("svg", {
6982
6720
  width: "1em",
@@ -8202,455 +7940,22 @@ const Breadcrumb = /* #__PURE__ */(() => {
8202
7940
  return Breadcrumb;
8203
7941
  })();
8204
7942
 
8205
- function getDefaultStyles(theme) {
8206
- return {
8207
- backgroundColor: theme.colors.actionDefaultBackgroundDefault,
8208
- borderColor: theme.colors.actionDefaultBorderDefault,
8209
- color: theme.colors.actionDefaultTextDefault,
8210
- lineHeight: theme.typography.lineHeightBase,
8211
- '&:hover': {
8212
- backgroundColor: theme.colors.actionDefaultBackgroundHover,
8213
- borderColor: theme.colors.actionDefaultBorderHover,
8214
- color: theme.colors.actionDefaultTextHover
7943
+ function getEmotionStyles(clsPrefix, theme) {
7944
+ const classFocused = ".".concat(clsPrefix, "-focused");
7945
+ const classActiveBar = ".".concat(clsPrefix, "-active-bar");
7946
+ const classSeparator = ".".concat(clsPrefix, "-separator");
7947
+ const classSuffix = ".".concat(clsPrefix, "-suffix");
7948
+ const styles = {
7949
+ height: 32,
7950
+ borderRadius: theme.borders.borderRadiusMd,
7951
+ borderColor: theme.colors.border,
7952
+ color: theme.colors.textPrimary,
7953
+ transition: 'border 0s, box-shadow 0s',
7954
+ ["&".concat(classFocused, ",:hover")]: {
7955
+ borderColor: theme.colors.actionDefaultBorderHover
8215
7956
  },
8216
7957
  '&:active': {
8217
- backgroundColor: theme.colors.actionDefaultBackgroundPress,
8218
- borderColor: theme.colors.actionDefaultBorderPress,
8219
- color: theme.colors.actionDefaultTextPress
8220
- }
8221
- };
8222
- }
8223
- function getPrimaryStyles(theme) {
8224
- return {
8225
- backgroundColor: theme.colors.actionPrimaryBackgroundDefault,
8226
- borderColor: 'transparent',
8227
- color: theme.colors.actionPrimaryTextDefault,
8228
- textShadow: 'none',
8229
- '&:hover': {
8230
- backgroundColor: theme.colors.actionPrimaryBackgroundHover,
8231
- borderColor: 'transparent',
8232
- color: theme.colors.actionPrimaryTextHover
8233
- },
8234
- '&:active': {
8235
- backgroundColor: theme.colors.actionPrimaryBackgroundPress,
8236
- borderColor: 'transparent',
8237
- color: theme.colors.actionPrimaryTextPress
8238
- }
8239
- };
8240
- }
8241
- function getLinkStyles(theme) {
8242
- return {
8243
- backgroundColor: theme.colors.actionTertiaryBackgroundDefault,
8244
- borderColor: theme.colors.actionTertiaryBackgroundDefault,
8245
- color: theme.colors.actionTertiaryTextDefault,
8246
- '&:hover': {
8247
- backgroundColor: theme.colors.actionTertiaryBackgroundHover,
8248
- borderColor: 'transparent',
8249
- color: theme.colors.actionTertiaryTextHover
8250
- },
8251
- '&:active': {
8252
- backgroundColor: theme.colors.actionTertiaryBackgroundPress,
8253
- borderColor: 'transparent',
8254
- color: theme.colors.actionTertiaryTextPress
8255
- },
8256
- '&[disabled]:hover': {
8257
- background: 'none'
8258
- }
8259
- };
8260
- }
8261
- function getPrimaryDangerStyles(theme) {
8262
- return {
8263
- backgroundColor: theme.colors.actionDangerPrimaryBackgroundDefault,
8264
- borderColor: 'transparent',
8265
- color: theme.colors.white,
8266
- '&:hover': {
8267
- backgroundColor: theme.colors.actionDangerPrimaryBackgroundHover,
8268
- borderColor: 'transparent',
8269
- color: theme.colors.white
8270
- },
8271
- '&:active': {
8272
- backgroundColor: theme.colors.actionDangerPrimaryBackgroundPress,
8273
- borderColor: 'transparent',
8274
- color: theme.colors.white
8275
- },
8276
- '&:focus-visible': {
8277
- outlineColor: theme.colors.actionDangerPrimaryBackgroundDefault
8278
- }
8279
- };
8280
- }
8281
- function getSecondaryDangerStyles(theme) {
8282
- return {
8283
- backgroundColor: theme.colors.actionDangerDefaultBackgroundDefault,
8284
- borderColor: theme.colors.actionDangerDefaultBorderDefault,
8285
- color: theme.colors.actionDangerDefaultTextDefault,
8286
- '&:hover': {
8287
- backgroundColor: theme.colors.actionDangerDefaultBackgroundHover,
8288
- borderColor: theme.colors.actionDangerDefaultBorderHover,
8289
- color: theme.colors.actionDangerDefaultTextHover
8290
- },
8291
- '&:active': {
8292
- backgroundColor: theme.colors.actionDangerDefaultBackgroundPress,
8293
- borderColor: theme.colors.actionDangerDefaultBorderPress,
8294
- color: theme.colors.actionDangerDefaultTextPress
8295
- },
8296
- '&:focus-visible': {
8297
- outlineColor: theme.colors.actionDangerPrimaryBackgroundDefault
8298
- }
8299
- };
8300
- }
8301
- function getDisabledStyles(theme) {
8302
- return {
8303
- backgroundColor: theme.colors.actionDisabledBackground,
8304
- borderColor: 'transparent',
8305
- color: theme.colors.actionDisabledText,
8306
- '&:hover': {
8307
- backgroundColor: theme.colors.actionDisabledBackground,
8308
- borderColor: 'transparent',
8309
- color: theme.colors.actionDisabledText
8310
- },
8311
- '&:active': {
8312
- backgroundColor: theme.colors.actionDisabledBackground,
8313
- borderColor: 'transparent',
8314
- color: theme.colors.actionDisabledText
8315
- }
8316
- };
8317
- }
8318
- function getDisabledTertiaryStyles(theme) {
8319
- return {
8320
- backgroundColor: theme.colors.actionTertiaryBackgroundDefault,
8321
- borderColor: 'transparent',
8322
- color: theme.colors.actionDisabledText,
8323
- '&:hover': {
8324
- backgroundColor: theme.colors.actionTertiaryBackgroundDefault,
8325
- borderColor: 'transparent',
8326
- color: theme.colors.actionDisabledText
8327
- },
8328
- '&:active': {
8329
- backgroundColor: theme.colors.actionTertiaryBackgroundDefault,
8330
- borderColor: 'transparent',
8331
- color: theme.colors.actionDisabledText
8332
- }
8333
- };
8334
- }
8335
-
8336
- function getEndIconClsName(theme) {
8337
- return "".concat(theme.general.iconfontCssPrefix, "-btn-end-icon");
8338
- }
8339
- const getButtonEmotionStyles = _ref => {
8340
- let {
8341
- theme,
8342
- classNamePrefix,
8343
- loading,
8344
- withIcon,
8345
- onlyIcon,
8346
- isAnchor,
8347
- enableAnimation,
8348
- size,
8349
- type,
8350
- isFlex,
8351
- useNewIcons
8352
- } = _ref;
8353
- const clsIcon = ".".concat(theme.general.iconfontCssPrefix);
8354
- const clsEndIcon = ".".concat(getEndIconClsName(theme));
8355
- const clsLoadingIcon = ".".concat(classNamePrefix, "-btn-loading-icon");
8356
- const clsIconOnly = ".".concat(classNamePrefix, "-btn-icon-only");
8357
- const classPrimary = ".".concat(classNamePrefix, "-btn-primary");
8358
- const classLink = ".".concat(classNamePrefix, "-btn-link");
8359
- const classDangerous = ".".concat(classNamePrefix, "-btn-dangerous");
8360
- const SMALL_BUTTON_HEIGHT = 24;
8361
- const tertiaryColors = {
8362
- background: theme.colors.actionTertiaryBackgroundDefault,
8363
- color: theme.colors.actionTertiaryTextDefault,
8364
- '&:hover': {
8365
- background: theme.colors.actionTertiaryBackgroundHover,
8366
- color: theme.colors.actionTertiaryTextHover
8367
- },
8368
- '&:active': {
8369
- background: theme.colors.actionTertiaryBackgroundPress,
8370
- color: theme.colors.actionTertiaryTextPress
8371
- }
8372
- };
8373
- const iconCss = {
8374
- fontSize: useNewIcons ? theme.general.iconFontSizeNew : theme.general.buttonInnerHeight - 4,
8375
- ...(!isFlex && {
8376
- // verticalAlign used by AntD to move icon and label to center
8377
- // TODO(schs): Try to move buttons to flexbox to solve this. Main problem is that flex-inline and inline-block
8378
- // behave differently (vertically align of multiple buttons is off). See https://codepen.io/qfactor/pen/JXVzBe
8379
- verticalAlign: useNewIcons ? -4 : -5,
8380
- ...(onlyIcon && {
8381
- verticalAlign: -3
8382
- }),
8383
- // verticalAlign used by AntD to move icon and label to center
8384
- // TODO(schs): Try to move buttons to flexbox to solve this. Main problem is that flex-inline and inline-block
8385
- // behave differently (vertically align of multiple buttons is off). See https://codepen.io/qfactor/pen/JXVzBe
8386
- // Need to make sure not to apply this to regular buttons as it will offset the icons
8387
- ...(!onlyIcon && {
8388
- verticalAlign: useNewIcons ? -3 : -4
8389
- })
8390
- }),
8391
- lineHeight: 0,
8392
- ...(size === 'small' && {
8393
- lineHeight: theme.typography.lineHeightSm,
8394
- ...(onlyIcon && {
8395
- fontSize: 16,
8396
- ...(isFlex && {
8397
- height: 16
8398
- })
8399
- })
8400
- })
8401
- };
8402
- const inactiveIconCss = {
8403
- color: theme.colors.grey600
8404
- };
8405
- const endIconCssSelector = "span > ".concat(clsEndIcon, " > ").concat(clsIcon);
8406
- const styles = {
8407
- lineHeight: theme.typography.lineHeightBase,
8408
- boxShadow: 'none',
8409
- height: theme.general.heightSm,
8410
- ...(isFlex && {
8411
- display: 'inline-flex',
8412
- alignItems: 'center',
8413
- justifyContent: 'center',
8414
- verticalAlign: 'middle'
8415
- }),
8416
- ...(!onlyIcon && {
8417
- '&&': {
8418
- padding: '4px 12px',
8419
- ...(size === 'small' && {
8420
- padding: '0 8px'
8421
- })
8422
- }
8423
- }),
8424
- ...(onlyIcon && {
8425
- width: theme.general.heightSm
8426
- }),
8427
- ...(size === 'small' && {
8428
- height: SMALL_BUTTON_HEIGHT,
8429
- lineHeight: theme.typography.lineHeightBase,
8430
- ...(onlyIcon && {
8431
- width: SMALL_BUTTON_HEIGHT,
8432
- paddingTop: 0,
8433
- paddingBottom: 0,
8434
- verticalAlign: 'middle'
8435
- })
8436
- }),
8437
- '&:focus-visible': {
8438
- outlineStyle: 'solid',
8439
- outlineWidth: '2px',
8440
- outlineOffset: '1px',
8441
- outlineColor: theme.themeName === 'dark' ? theme.colors.actionDefaultBorderFocus : theme.colors.primary
8442
- },
8443
- ...getDefaultStyles(theme),
8444
- ["&".concat(classPrimary)]: {
8445
- ...getPrimaryStyles(theme)
8446
- },
8447
- ["&".concat(classLink)]: {
8448
- ...getLinkStyles(theme),
8449
- ...(type === 'link' && {
8450
- padding: 'unset',
8451
- height: 'auto',
8452
- border: 'none',
8453
- boxShadow: 'none',
8454
- '&[disabled],&:hover': {
8455
- background: 'none'
8456
- }
8457
- })
8458
- },
8459
- ["&".concat(classDangerous).concat(classPrimary)]: {
8460
- ...getPrimaryDangerStyles(theme)
8461
- },
8462
- ["&".concat(classDangerous)]: {
8463
- ...getSecondaryDangerStyles(theme)
8464
- },
8465
- ["&[disabled], &".concat(classDangerous, ":disabled")]: {
8466
- ...getDisabledStyles(theme),
8467
- ...(onlyIcon ? {
8468
- backgroundColor: 'transparent'
8469
- } : {
8470
- backgroundColor: theme.colors.actionDisabledBackground
8471
- })
8472
- },
8473
- // Loading styles
8474
- ...(loading && {
8475
- '::before': {
8476
- opacity: 0
8477
- },
8478
- ["".concat(clsLoadingIcon)]: {
8479
- ...(onlyIcon ? {
8480
- // In case of only icon, the icon is already centered but vertically not aligned, this fixes that
8481
- verticalAlign: 'middle'
8482
- } : {
8483
- // Position loading indicator in center
8484
- // This would break vertical centering of loading circle when onlyIcon is true
8485
- position: 'absolute'
8486
- }),
8487
- ...(!isFlex && {
8488
- // Normally we'd do `transform: translateX(-50%)` but `antd` crushes that with injected inline `style`.
8489
- left: 'calc(50% - 7px)'
8490
- }),
8491
- // Re-enable animation for the loading spinner, since it can be disabled by the global animation CSS.
8492
- svg: {
8493
- animationDuration: '1s !important'
8494
- }
8495
- },
8496
- ["> :not(".concat(clsLoadingIcon, ")")]: {
8497
- // Hide all content except loading icon
8498
- opacity: 0,
8499
- visibility: 'hidden',
8500
- // Add horizontal space for icon
8501
- ...(withIcon && {
8502
- paddingLeft: theme.spacing.sm * 2 + 14
8503
- })
8504
- }
8505
- }),
8506
- // Icon styles
8507
- ["> ".concat(clsIcon, " + span, > span + ").concat(clsIcon)]: {
8508
- marginRight: 0
8509
- },
8510
- ["> ".concat(clsIcon)]: iconCss,
8511
- ["> ".concat(endIconCssSelector)]: {
8512
- ...iconCss,
8513
- marginLeft: size === 'small' ? 8 : 12
8514
- },
8515
- ...(!type && {
8516
- ["&:enabled:not(:hover):not(:active) > ".concat(clsIcon)]: inactiveIconCss
8517
- }),
8518
- ...(!type && {
8519
- ["&:enabled:not(:hover):not(:active) > ".concat(endIconCssSelector)]: inactiveIconCss
8520
- }),
8521
- // Disable animations
8522
- ["&[".concat(classNamePrefix, "-click-animating-without-extra-node='true']::after")]: {
8523
- display: 'none'
8524
- },
8525
- ["&".concat(clsIconOnly)]: {
8526
- border: 'none',
8527
- ["&:enabled:not(".concat(classLink, ")")]: {
8528
- ...tertiaryColors,
8529
- color: theme.colors.textSecondary
8530
- },
8531
- ...(isAnchor && {
8532
- lineHeight: "".concat(theme.general.heightSm, "px"),
8533
- ...getLinkStyles(theme),
8534
- '&:disabled': {
8535
- color: theme.colors.actionDisabledText
8536
- }
8537
- }),
8538
- '&[disabled]:hover': {
8539
- backgroundColor: 'transparent'
8540
- }
8541
- },
8542
- ["&:focus"]: {
8543
- ["".concat(clsLoadingIcon)]: {
8544
- ...(onlyIcon && {
8545
- // Mitigate wrong left offset for loading state with onlyIcon
8546
- left: 0
8547
- })
8548
- }
8549
- },
8550
- ...getAnimationCss(enableAnimation)
8551
- };
8552
-
8553
- // Moved outside main style object because state & selector matching in the already existing object keys can create bugs and unwanted overwrites
8554
- const typeStyles = {
8555
- ...(type === 'tertiary' && {
8556
- ["&:enabled:not(".concat(clsIconOnly, ")")]: tertiaryColors,
8557
- ["&".concat(classLink, "[disabled]")]: {
8558
- ...getDisabledTertiaryStyles(theme)
8559
- }
8560
- })
8561
- };
8562
- const importantStyles = importantify(styles);
8563
- const importantTypeStyles = importantify(typeStyles);
8564
- return /*#__PURE__*/css(importantStyles, importantTypeStyles, process.env.NODE_ENV === "production" ? "" : ";label:getButtonEmotionStyles;");
8565
- };
8566
- const Button = /* #__PURE__ */(() => {
8567
- const Button = /*#__PURE__*/forwardRef(function Button( // Keep size out of props passed to AntD to make deprecation and eventual removal have 0 impact
8568
- _ref2, ref) {
8569
- let {
8570
- dangerouslySetAntdProps,
8571
- children,
8572
- size,
8573
- type,
8574
- endIcon,
8575
- ...props
8576
- } = _ref2;
8577
- const {
8578
- theme,
8579
- classNamePrefix
8580
- } = useDesignSystemTheme();
8581
- const {
8582
- USE_FLEX_BUTTON: isFlex,
8583
- USE_NEW_ICONS: useNewIcons
8584
- } = useDesignSystemFlags();
8585
- const clsEndIcon = getEndIconClsName(theme);
8586
- return jsx(DesignSystemAntDConfigProvider, {
8587
- children: jsx(Button$1, {
8588
- ...props,
8589
- css: getButtonEmotionStyles({
8590
- theme,
8591
- classNamePrefix,
8592
- loading: Boolean(props.loading),
8593
- withIcon: Boolean(props.icon),
8594
- onlyIcon: Boolean((props.icon || endIcon) && !children),
8595
- isAnchor: Boolean(props.href && !type),
8596
- danger: Boolean(props.danger),
8597
- enableAnimation: theme.options.enableAnimation,
8598
- size: size || 'middle',
8599
- type,
8600
- isFlex,
8601
- useNewIcons
8602
- }),
8603
- href: props.disabled ? undefined : props.href,
8604
- ...dangerouslySetAntdProps,
8605
- ref: ref,
8606
- type: type === 'tertiary' ? 'link' : type,
8607
- children: children && jsxs("span", {
8608
- style: {
8609
- visibility: props !== null && props !== void 0 && props.loading ? 'hidden' : 'visible',
8610
- ...(isFlex && {
8611
- display: 'inline-flex',
8612
- alignItems: 'center'
8613
- })
8614
- },
8615
- children: [children, endIcon && jsx("span", {
8616
- className: clsEndIcon,
8617
- style: {
8618
- ...(isFlex && {
8619
- display: 'inline-flex',
8620
- alignItems: 'center'
8621
- })
8622
- },
8623
- children: endIcon
8624
- })]
8625
- })
8626
- })
8627
- });
8628
- });
8629
-
8630
- // This is needed for other Ant components that wrap Button, such as Tooltip, to correctly
8631
- // identify it as an Ant button.
8632
- // This should be removed if the component is rewritten to no longer be a wrapper around Ant.
8633
- // See: https://github.com/ant-design/ant-design/blob/6dd39c1f89b4d6632e6ed022ff1bc275ca1e0f1f/components/button/button.tsx#L291
8634
- Button.__ANT_BUTTON = true;
8635
- return Button;
8636
- })();
8637
-
8638
- function getEmotionStyles(clsPrefix, theme) {
8639
- const classFocused = ".".concat(clsPrefix, "-focused");
8640
- const classActiveBar = ".".concat(clsPrefix, "-active-bar");
8641
- const classSeparator = ".".concat(clsPrefix, "-separator");
8642
- const classSuffix = ".".concat(clsPrefix, "-suffix");
8643
- const styles = {
8644
- height: 32,
8645
- borderRadius: theme.borders.borderRadiusMd,
8646
- borderColor: theme.colors.border,
8647
- color: theme.colors.textPrimary,
8648
- transition: 'border 0s, box-shadow 0s',
8649
- ["&".concat(classFocused, ",:hover")]: {
8650
- borderColor: theme.colors.actionDefaultBorderHover
8651
- },
8652
- '&:active': {
8653
- borderColor: theme.colors.actionDefaultBorderPress
7958
+ borderColor: theme.colors.actionDefaultBorderPress
8654
7959
  },
8655
7960
  ["&".concat(classFocused)]: {
8656
7961
  boxShadow: "none !important",
@@ -8679,7 +7984,7 @@ function useDatePickerStyles() {
8679
7984
  const clsPrefix = getPrefixedClassName('picker');
8680
7985
  return getEmotionStyles(clsPrefix, theme);
8681
7986
  }
8682
- const DuboisDatePicker = props => {
7987
+ const DuboisDatePicker = /*#__PURE__*/forwardRef((props, ref) => {
8683
7988
  const styles = useDatePickerStyles();
8684
7989
  const {
8685
7990
  theme
@@ -8687,6 +7992,7 @@ const DuboisDatePicker = props => {
8687
7992
  return jsx(DesignSystemAntDConfigProvider, {
8688
7993
  children: jsx(DatePicker, {
8689
7994
  css: styles,
7995
+ ref: ref,
8690
7996
  ...props,
8691
7997
  popupStyle: {
8692
7998
  ...getDropdownStyles$1(theme),
@@ -8694,8 +8000,8 @@ const DuboisDatePicker = props => {
8694
8000
  }
8695
8001
  })
8696
8002
  });
8697
- };
8698
- const RangePicker = props => {
8003
+ });
8004
+ const RangePicker = /*#__PURE__*/forwardRef((props, ref) => {
8699
8005
  const styles = useDatePickerStyles();
8700
8006
  const {
8701
8007
  theme
@@ -8704,14 +8010,15 @@ const RangePicker = props => {
8704
8010
  children: jsx(DatePicker.RangePicker, {
8705
8011
  css: styles,
8706
8012
  ...props,
8013
+ ref: ref,
8707
8014
  popupStyle: {
8708
8015
  ...getDropdownStyles$1(theme),
8709
8016
  ...(props.popupStyle || {})
8710
8017
  }
8711
8018
  })
8712
8019
  });
8713
- };
8714
- const TimePicker = props => {
8020
+ });
8021
+ const TimePicker = /*#__PURE__*/forwardRef((props, ref) => {
8715
8022
  const styles = useDatePickerStyles();
8716
8023
  const {
8717
8024
  theme
@@ -8720,14 +8027,15 @@ const TimePicker = props => {
8720
8027
  children: jsx(DatePicker.TimePicker, {
8721
8028
  css: styles,
8722
8029
  ...props,
8030
+ ref: ref,
8723
8031
  popupStyle: {
8724
8032
  ...getDropdownStyles$1(theme),
8725
8033
  ...(props.popupStyle || {})
8726
8034
  }
8727
8035
  })
8728
8036
  });
8729
- };
8730
- const QuarterPicker = props => {
8037
+ });
8038
+ const QuarterPicker = /*#__PURE__*/forwardRef((props, ref) => {
8731
8039
  const styles = useDatePickerStyles();
8732
8040
  const {
8733
8041
  theme
@@ -8736,14 +8044,15 @@ const QuarterPicker = props => {
8736
8044
  children: jsx(DatePicker.QuarterPicker, {
8737
8045
  css: styles,
8738
8046
  ...props,
8047
+ ref: ref,
8739
8048
  popupStyle: {
8740
8049
  ...getDropdownStyles$1(theme),
8741
8050
  ...(props.popupStyle || {})
8742
8051
  }
8743
8052
  })
8744
8053
  });
8745
- };
8746
- const WeekPicker = props => {
8054
+ });
8055
+ const WeekPicker = /*#__PURE__*/forwardRef((props, ref) => {
8747
8056
  const styles = useDatePickerStyles();
8748
8057
  const {
8749
8058
  theme
@@ -8752,14 +8061,15 @@ const WeekPicker = props => {
8752
8061
  children: jsx(DatePicker.WeekPicker, {
8753
8062
  css: styles,
8754
8063
  ...props,
8064
+ ref: ref,
8755
8065
  popupStyle: {
8756
8066
  ...getDropdownStyles$1(theme),
8757
8067
  ...(props.popupStyle || {})
8758
8068
  }
8759
8069
  })
8760
8070
  });
8761
- };
8762
- const MonthPicker = props => {
8071
+ });
8072
+ const MonthPicker = /*#__PURE__*/forwardRef((props, ref) => {
8763
8073
  const styles = useDatePickerStyles();
8764
8074
  const {
8765
8075
  theme
@@ -8768,14 +8078,15 @@ const MonthPicker = props => {
8768
8078
  children: jsx(DatePicker.MonthPicker, {
8769
8079
  css: styles,
8770
8080
  ...props,
8081
+ ref: ref,
8771
8082
  popupStyle: {
8772
8083
  ...getDropdownStyles$1(theme),
8773
8084
  ...(props.popupStyle || {})
8774
8085
  }
8775
8086
  })
8776
8087
  });
8777
- };
8778
- const YearPicker = props => {
8088
+ });
8089
+ const YearPicker = /*#__PURE__*/forwardRef((props, ref) => {
8779
8090
  const styles = useDatePickerStyles();
8780
8091
  const {
8781
8092
  theme
@@ -8784,13 +8095,14 @@ const YearPicker = props => {
8784
8095
  children: jsx(DatePicker.YearPicker, {
8785
8096
  css: styles,
8786
8097
  ...props,
8098
+ ref: ref,
8787
8099
  popupStyle: {
8788
8100
  ...getDropdownStyles$1(theme),
8789
8101
  ...(props.popupStyle || {})
8790
8102
  }
8791
8103
  })
8792
8104
  });
8793
- };
8105
+ });
8794
8106
 
8795
8107
  /**
8796
8108
  * `LegacyDatePicker` was added as a temporary solution pending an
@@ -8852,20 +8164,20 @@ const Spacer = _ref => {
8852
8164
  });
8853
8165
  };
8854
8166
 
8855
- 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)."; }
8167
+ 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)."; }
8856
8168
  const DEFAULT_WIDTH$1 = 320;
8857
8169
  const MIN_WIDTH = 320;
8858
8170
  const MAX_WIDTH = '90vw';
8859
8171
  const DEFAULT_POSITION = 'right';
8860
8172
  const ZINDEX_OVERLAY = 10;
8861
8173
  const ZINDEX_CONTENT = ZINDEX_OVERLAY + 10;
8862
- var _ref2$2 = process.env.NODE_ENV === "production" ? {
8174
+ var _ref2$1 = process.env.NODE_ENV === "production" ? {
8863
8175
  name: "zh83op",
8864
8176
  styles: "flex-grow:1;margin-bottom:0;margin-top:0;white-space:nowrap;overflow:hidden"
8865
8177
  } : {
8866
8178
  name: "h5yqvj-Content",
8867
8179
  styles: "flex-grow:1;margin-bottom:0;margin-top:0;white-space:nowrap;overflow:hidden;label:Content;",
8868
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$6
8180
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$5
8869
8181
  };
8870
8182
  const Content$4 = _ref => {
8871
8183
  let {
@@ -8875,7 +8187,8 @@ const Content$4 = _ref => {
8875
8187
  width,
8876
8188
  position: positionOverride,
8877
8189
  useCustomScrollBehavior,
8878
- expandContentToFullHeight
8190
+ expandContentToFullHeight,
8191
+ disableOpenAutoFocus
8879
8192
  } = _ref;
8880
8193
  const {
8881
8194
  getPopupContainer
@@ -8945,6 +8258,11 @@ const Content$4 = _ref => {
8945
8258
  justifyContent: 'flex-start'
8946
8259
  },
8947
8260
  ref: contentContainerRef,
8261
+ onOpenAutoFocus: event => {
8262
+ if (disableOpenAutoFocus) {
8263
+ event.preventDefault();
8264
+ }
8265
+ },
8948
8266
  children: jsxs(ApplyDesignSystemContextOverrides, {
8949
8267
  getPopupContainer: () => {
8950
8268
  var _contentContainerRef$;
@@ -8965,7 +8283,7 @@ const Content$4 = _ref => {
8965
8283
  children: [jsx(DialogPrimitive.Title, {
8966
8284
  title: typeof title === 'string' ? title : undefined,
8967
8285
  asChild: typeof title === 'string',
8968
- css: _ref2$2,
8286
+ css: _ref2$1,
8969
8287
  children: typeof title === 'string' ? jsx(Typography.Title, {
8970
8288
  level: 2,
8971
8289
  withoutMargins: true,
@@ -9064,61 +8382,6 @@ const Dropdown = _ref => {
9064
8382
  });
9065
8383
  };
9066
8384
 
9067
- const Tooltip = _ref => {
9068
- let {
9069
- children,
9070
- title,
9071
- placement = 'top',
9072
- dataTestId,
9073
- dangerouslySetAntdProps,
9074
- ...props
9075
- } = _ref;
9076
- const {
9077
- theme
9078
- } = useDesignSystemTheme();
9079
- if (!title) {
9080
- return jsx(React__default.Fragment, {
9081
- children: children
9082
- });
9083
- }
9084
- const {
9085
- overlayInnerStyle,
9086
- overlayStyle,
9087
- ...delegatedDangerouslySetAntdProps
9088
- } = dangerouslySetAntdProps || {};
9089
- return jsx(DesignSystemAntDConfigProvider, {
9090
- children: jsx(Tooltip$1
9091
- // eslint-disable-next-line react/forbid-dom-props -- FEINF-1337 - this should turn into data-testid
9092
- , {
9093
- title: jsx("span", {
9094
- "data-test-id": dataTestId,
9095
- children: title
9096
- }),
9097
- placement: placement
9098
- // Always trigger on hover and focus
9099
- ,
9100
- trigger: ['hover', 'focus'],
9101
- overlayInnerStyle: {
9102
- backgroundColor: '#2F3941',
9103
- lineHeight: '22px',
9104
- padding: '4px 8px',
9105
- boxShadow: theme.general.shadowLow,
9106
- ...overlayInnerStyle
9107
- },
9108
- overlayStyle: {
9109
- zIndex: theme.options.zIndexBase + 70,
9110
- ...overlayStyle
9111
- },
9112
- css: /*#__PURE__*/css({
9113
- ...getAnimationCss(theme.options.enableAnimation)
9114
- }, process.env.NODE_ENV === "production" ? "" : ";label:Tooltip;"),
9115
- ...delegatedDangerouslySetAntdProps,
9116
- ...props,
9117
- children: children
9118
- })
9119
- });
9120
- };
9121
-
9122
8385
  const Root$2 = DropdownMenu$1.Root; // Behavioral component only
9123
8386
 
9124
8387
  const Content$3 = /*#__PURE__*/forwardRef(function Content(_ref, ref) {
@@ -9351,7 +8614,7 @@ const RadioItem = /*#__PURE__*/forwardRef(function RadioItem(_ref11, ref) {
9351
8614
  });
9352
8615
 
9353
8616
  // UNWRAPPED RADIX-UI-COMPONENTS
9354
- const Group$2 = DropdownMenu$1.Group;
8617
+ const Group$1 = DropdownMenu$1.Group;
9355
8618
  const RadioGroup = DropdownMenu$1.RadioGroup;
9356
8619
  const Sub = DropdownMenu$1.Sub;
9357
8620
 
@@ -9554,7 +8817,7 @@ var DropdownMenu = /*#__PURE__*/Object.freeze({
9554
8817
  ItemIndicator: ItemIndicator,
9555
8818
  Arrow: Arrow$1,
9556
8819
  RadioItem: RadioItem,
9557
- Group: Group$2,
8820
+ Group: Group$1,
9558
8821
  RadioGroup: RadioGroup,
9559
8822
  Sub: Sub,
9560
8823
  HintColumn: HintColumn,
@@ -9563,7 +8826,7 @@ var DropdownMenu = /*#__PURE__*/Object.freeze({
9563
8826
  dropdownContentStyles: dropdownContentStyles
9564
8827
  });
9565
8828
 
9566
- 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)."; }
8829
+ 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)."; }
9567
8830
  const {
9568
8831
  Title: Title$1,
9569
8832
  Paragraph
@@ -9604,13 +8867,13 @@ function getEmptyDescriptionStyles(theme, clsPrefix) {
9604
8867
  };
9605
8868
  return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getEmptyDescriptionStyles;");
9606
8869
  }
9607
- var _ref$3 = process.env.NODE_ENV === "production" ? {
8870
+ var _ref$2 = process.env.NODE_ENV === "production" ? {
9608
8871
  name: "zl1inp",
9609
8872
  styles: "display:flex;justify-content:center"
9610
8873
  } : {
9611
8874
  name: "11tid6c-Empty",
9612
8875
  styles: "display:flex;justify-content:center;label:Empty;",
9613
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$5
8876
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$4
9614
8877
  };
9615
8878
  const Empty = props => {
9616
8879
  const {
@@ -9627,7 +8890,7 @@ const Empty = props => {
9627
8890
  } = props;
9628
8891
  return jsx("div", {
9629
8892
  ...dataProps,
9630
- css: _ref$3,
8893
+ css: _ref$2,
9631
8894
  children: jsxs("div", {
9632
8895
  css: [getEmptyStyles(theme), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:Empty;"],
9633
8896
  children: [image, title && jsx(Title$1, {
@@ -9856,228 +9119,11 @@ const Label = props => {
9856
9119
  });
9857
9120
  };
9858
9121
 
9859
- const getInputEmotionStyles = (clsPrefix, theme, _ref, useNewIcons, useTransparent) => {
9122
+ const getRadioInputStyles = _ref => {
9860
9123
  let {
9861
- validationState
9862
- } = _ref;
9863
- const inputClass = ".".concat(clsPrefix, "-input");
9864
- const affixClass = ".".concat(clsPrefix, "-input-affix-wrapper");
9865
- const affixClassFocused = ".".concat(clsPrefix, "-input-affix-wrapper-focused");
9866
- const clearIcon = ".".concat(clsPrefix, "-input-clear-icon");
9867
- const prefixIcon = ".".concat(clsPrefix, "-input-prefix");
9868
- const suffixIcon = ".".concat(clsPrefix, "-input-suffix");
9869
- const validationColor = getValidationStateColor(theme, validationState);
9870
- const styles = {
9871
- '&&': {
9872
- lineHeight: theme.typography.lineHeightBase,
9873
- minHeight: theme.general.heightSm,
9874
- ...(validationState && {
9875
- borderColor: validationColor
9876
- }),
9877
- '&:hover': {
9878
- borderColor: validationState ? validationColor : theme.colors.actionPrimaryBackgroundHover
9879
- },
9880
- '&:focus': {
9881
- outlineColor: validationState ? validationColor : theme.colors.actionPrimaryBackgroundDefault,
9882
- outlineWidth: 2,
9883
- outlineOffset: -2,
9884
- outlineStyle: 'solid',
9885
- boxShadow: 'none',
9886
- borderColor: 'transparent'
9887
- },
9888
- '&:disabled': {
9889
- backgroundColor: theme.colors.actionDisabledBackground,
9890
- color: theme.colors.actionDisabledText
9891
- }
9892
- },
9893
- ["&".concat(inputClass, ", ").concat(inputClass)]: {
9894
- ...(useTransparent && {
9895
- backgroundColor: 'transparent'
9896
- })
9897
- },
9898
- ["&".concat(affixClass)]: {
9899
- ...(useTransparent && {
9900
- backgroundColor: 'transparent'
9901
- }),
9902
- lineHeight: theme.typography.lineHeightBase,
9903
- paddingTop: 5,
9904
- paddingBottom: 5,
9905
- minHeight: theme.general.heightSm,
9906
- '::before': {
9907
- lineHeight: theme.typography.lineHeightBase
9908
- },
9909
- '&:hover': {
9910
- borderColor: theme.colors.actionPrimaryBackgroundHover
9911
- },
9912
- ["input.".concat(clsPrefix, "-input")]: {
9913
- borderRadius: 0
9914
- }
9915
- },
9916
- ["&".concat(affixClassFocused)]: {
9917
- boxShadow: 'none',
9918
- '&&, &:focus': {
9919
- outlineColor: theme.colors.actionPrimaryBackgroundDefault,
9920
- outlineWidth: 2,
9921
- outlineOffset: -2,
9922
- outlineStyle: 'solid',
9923
- boxShadow: 'none',
9924
- borderColor: 'transparent'
9925
- }
9926
- },
9927
- ...(useNewIcons && {
9928
- [clearIcon]: {
9929
- fontSize: theme.general.iconFontSizeNew
9930
- },
9931
- [prefixIcon]: {
9932
- marginRight: theme.spacing.sm
9933
- },
9934
- [suffixIcon]: {
9935
- marginLeft: theme.spacing.sm
9936
- }
9937
- }),
9938
- ...getAnimationCss(theme.options.enableAnimation)
9939
- };
9940
- return /*#__PURE__*/css(importantify(styles), process.env.NODE_ENV === "production" ? "" : ";label:getInputEmotionStyles;");
9941
- };
9942
- const getInputGroupStyling = clsPrefix => {
9943
- const inputClass = ".".concat(clsPrefix, "-input");
9944
- const buttonClass = ".".concat(clsPrefix, "-btn");
9945
- return /*#__PURE__*/css({
9946
- ["& > ".concat(inputClass)]: {
9947
- '&:disabled': {
9948
- border: 'none'
9949
- }
9950
- },
9951
- ["& > ".concat(buttonClass, " > span")]: {
9952
- verticalAlign: 'middle'
9953
- }
9954
- }, process.env.NODE_ENV === "production" ? "" : ";label:getInputGroupStyling;");
9955
- };
9956
- const TextArea = /*#__PURE__*/forwardRef(function TextArea(_ref2, ref) {
9957
- let {
9958
- validationState,
9959
- autoComplete = 'off',
9960
- dangerouslySetAntdProps,
9961
- dangerouslyAppendEmotionCSS,
9962
- ...props
9963
- } = _ref2;
9964
- const {
9965
- classNamePrefix,
9966
- theme
9967
- } = useDesignSystemTheme();
9968
- const {
9969
- USE_NEW_ICONS: useNewIcons,
9970
- USE_TRANSPARENT_INPUT: useTransparent
9971
- } = useDesignSystemFlags();
9972
- return jsx(DesignSystemAntDConfigProvider, {
9973
- children: jsx(Input$1.TextArea, {
9974
- ref: ref,
9975
- autoComplete: autoComplete,
9976
- css: [getInputEmotionStyles(classNamePrefix, theme, {
9977
- validationState
9978
- }, useNewIcons, useTransparent), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:TextArea;"],
9979
- ...props,
9980
- ...dangerouslySetAntdProps
9981
- })
9982
- });
9983
- });
9984
- const Password = /*#__PURE__*/forwardRef(function Password(_ref3, ref) {
9985
- let {
9986
- validationState,
9987
- autoComplete = 'off',
9988
- dangerouslySetAntdProps,
9989
- dangerouslyAppendEmotionCSS,
9990
- ...props
9991
- } = _ref3;
9992
- const {
9993
- classNamePrefix,
9994
- theme
9995
- } = useDesignSystemTheme();
9996
- const {
9997
- USE_NEW_ICONS: useNewIcons,
9998
- USE_TRANSPARENT_INPUT: useTransparent
9999
- } = useDesignSystemFlags();
10000
- return jsx(DesignSystemAntDConfigProvider, {
10001
- children: jsx(Input$1.Password, {
10002
- visibilityToggle: false,
10003
- ref: ref,
10004
- autoComplete: autoComplete,
10005
- css: [getInputEmotionStyles(classNamePrefix, theme, {
10006
- validationState
10007
- }, useNewIcons, useTransparent), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:Password;"],
10008
- ...props,
10009
- ...dangerouslySetAntdProps
10010
- })
10011
- });
10012
- });
10013
- const DuboisInput = /*#__PURE__*/forwardRef(function Input(_ref4, ref) {
10014
- let {
10015
- validationState,
10016
- autoComplete = 'off',
10017
- dangerouslySetAntdProps,
10018
- dangerouslyAppendEmotionCSS,
10019
- ...props
10020
- } = _ref4;
10021
- const {
10022
- classNamePrefix,
10023
- theme
10024
- } = useDesignSystemTheme();
10025
- const {
10026
- USE_NEW_ICONS: useNewIcons,
10027
- USE_TRANSPARENT_INPUT: useTransparent
10028
- } = useDesignSystemFlags();
10029
- return jsx(DesignSystemAntDConfigProvider, {
10030
- children: jsx(Input$1, {
10031
- autoComplete: autoComplete,
10032
- ref: ref,
10033
- css: [getInputEmotionStyles(classNamePrefix, theme, {
10034
- validationState
10035
- }, useNewIcons, useTransparent), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:DuboisInput;"],
10036
- ...props,
10037
- ...dangerouslySetAntdProps
10038
- })
10039
- });
10040
- });
10041
- const Group$1 = _ref5 => {
10042
- let {
10043
- dangerouslySetAntdProps,
10044
- dangerouslyAppendEmotionCSS,
10045
- compact = true,
10046
- ...props
10047
- } = _ref5;
10048
- const {
10049
- classNamePrefix
10050
- } = useDesignSystemTheme();
10051
- return jsx(DesignSystemAntDConfigProvider, {
10052
- children: jsx(Input$1.Group, {
10053
- css: [getInputGroupStyling(classNamePrefix), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:Group;"],
10054
- compact: compact,
10055
- ...props,
10056
- ...dangerouslySetAntdProps
10057
- })
10058
- });
10059
- };
10060
-
10061
- // Properly creates the namespace and dot-notation components with correct types.
10062
- const InputNamespace = /* #__PURE__ */Object.assign(DuboisInput, {
10063
- TextArea,
10064
- Password,
10065
- Group: Group$1
10066
- });
10067
- const Input = InputNamespace;
10068
-
10069
- // TODO: I'm doing this to support storybook's docgen;
10070
- // We should remove this once we have a better storybook integration,
10071
- // since these will be exposed in the library's exports.
10072
- const __INTERNAL_DO_NOT_USE__TextArea = TextArea;
10073
- const __INTERNAL_DO_NOT_USE__Password = Password;
10074
- const __INTERNAL_DO_NOT_USE_DEDUPE__Group = Group$1;
10075
-
10076
- const getRadioInputStyles = _ref => {
10077
- let {
10078
- clsPrefix,
10079
- theme,
10080
- useNewStyles
9124
+ clsPrefix,
9125
+ theme,
9126
+ useNewStyles
10081
9127
  } = _ref;
10082
9128
  return {
10083
9129
  [".".concat(clsPrefix)]: {
@@ -10271,6 +9317,7 @@ const getRadioStyles = _ref5 => {
10271
9317
  };
10272
9318
  const DuboisRadio = /*#__PURE__*/forwardRef(function Radio(_ref6, ref) {
10273
9319
  let {
9320
+ children,
10274
9321
  dangerouslySetAntdProps,
10275
9322
  ...props
10276
9323
  } = _ref6;
@@ -10291,12 +9338,16 @@ const DuboisRadio = /*#__PURE__*/forwardRef(function Radio(_ref6, ref) {
10291
9338
  }),
10292
9339
  ...props,
10293
9340
  ...dangerouslySetAntdProps,
10294
- ref: ref
9341
+ ref: ref,
9342
+ children: jsx(RestoreAntDDefaultClsPrefix, {
9343
+ children: children
9344
+ })
10295
9345
  })
10296
9346
  });
10297
9347
  });
10298
9348
  const StyledRadioGroup = /*#__PURE__*/forwardRef(function StyledRadioGroup(_ref7, ref) {
10299
9349
  let {
9350
+ children,
10300
9351
  dangerouslySetAntdProps,
10301
9352
  ...props
10302
9353
  } = _ref7;
@@ -10319,7 +9370,10 @@ const StyledRadioGroup = /*#__PURE__*/forwardRef(function StyledRadioGroup(_ref7
10319
9370
  useNewStyles: USE_NEW_RADIO_STYLES
10320
9371
  }),
10321
9372
  ...dangerouslySetAntdProps,
10322
- ref: ref
9373
+ ref: ref,
9374
+ children: jsx(RestoreAntDDefaultClsPrefix, {
9375
+ children: children
9376
+ })
10323
9377
  })
10324
9378
  });
10325
9379
  });
@@ -10863,166 +9917,33 @@ const Select = /* #__PURE__ */(() => {
10863
9917
  return DuboisRefForwardedSelect;
10864
9918
  })();
10865
9919
 
10866
- const getSwitchWithLabelStyles = _ref => {
9920
+ function RHFControlledInput(_ref) {
10867
9921
  let {
10868
- clsPrefix,
10869
- theme
9922
+ name,
9923
+ control,
9924
+ rules,
9925
+ ...restProps
10870
9926
  } = _ref;
10871
- // Default value
10872
- const SWITCH_WIDTH = 28;
10873
- const styles = {
10874
- display: 'flex',
10875
- alignItems: 'center',
10876
- // Switch is Off
10877
- ["&.".concat(clsPrefix, "-switch")]: {
10878
- backgroundColor: theme.colors.backgroundPrimary,
10879
- border: "1px solid ".concat(theme.colors.actionDefaultBorderDefault),
10880
- [".".concat(clsPrefix, "-switch-handle:before")]: {
10881
- boxShadow: "0px 0px 0px 1px ".concat(theme.colors.actionDefaultBorderDefault),
10882
- transition: 'none'
10883
- },
10884
- ["&:hover:not(.".concat(clsPrefix, "-switch-disabled)")]: {
10885
- backgroundColor: theme.colors.actionDefaultBackgroundHover,
10886
- border: "1px solid ".concat(theme.colors.actionPrimaryBackgroundHover),
10887
- [".".concat(clsPrefix, "-switch-handle:before")]: {
10888
- boxShadow: "0px 0px 0px 1px ".concat(theme.colors.actionPrimaryBackgroundHover)
10889
- }
10890
- },
10891
- ["&:active:not(.".concat(clsPrefix, "-switch-disabled)")]: {
10892
- backgroundColor: theme.colors.actionDefaultBackgroundPress,
10893
- border: "1px solid ".concat(theme.colors.actionPrimaryBackgroundPress),
10894
- [".".concat(clsPrefix, "-switch-handle:before")]: {
10895
- boxShadow: "0px 0px 0px 1px ".concat(theme.colors.actionPrimaryBackgroundHover)
10896
- }
10897
- },
10898
- ["&:focus-visible"]: {
10899
- border: "1px solid ".concat(theme.colors.actionPrimaryBackgroundDefault),
10900
- boxShadow: 'none',
10901
- outlineStyle: 'solid',
10902
- outlineWidth: '1px',
10903
- outlineOffset: '1px',
10904
- outlineColor: theme.colors.actionDefaultBorderFocus,
10905
- [".".concat(clsPrefix, "-switch-handle:before")]: {
10906
- boxShadow: "0px 0px 0px 1px ".concat(theme.colors.actionPrimaryBackgroundDefault)
10907
- }
10908
- },
10909
- ["&:focus"]: {
10910
- boxShadow: 'none'
10911
- }
10912
- },
10913
- // Switch is On
10914
- ["&.".concat(clsPrefix, "-switch-checked")]: {
10915
- backgroundColor: theme.colors.actionPrimaryBackgroundDefault,
10916
- border: "1px solid ".concat(theme.colors.actionPrimaryBackgroundDefault),
10917
- ["&:hover:not(.".concat(clsPrefix, "-switch-disabled)")]: {
10918
- backgroundColor: theme.colors.actionPrimaryBackgroundHover,
10919
- border: "1px solid ".concat(theme.colors.actionPrimaryBackgroundDefault)
10920
- },
10921
- ["&:active:not(.".concat(clsPrefix, "-switch-disabled)")]: {
10922
- backgroundColor: theme.colors.actionPrimaryBackgroundPress
10923
- },
10924
- [".".concat(clsPrefix, "-switch-handle:before")]: {
10925
- boxShadow: "0px 0px 0px 1px ".concat(theme.colors.actionPrimaryBackgroundDefault)
10926
- },
10927
- ["&.".concat(clsPrefix, "-switch-disabled")]: {
10928
- backgroundColor: theme.colors.actionDisabledBackground,
10929
- border: "1px solid ".concat(theme.colors.actionDisabledBackground),
10930
- [".".concat(clsPrefix, "-switch-handle:before")]: {
10931
- boxShadow: "0px 0px 0px 1px ".concat(theme.colors.actionDisabledBackground)
10932
- }
10933
- }
10934
- },
10935
- [".".concat(clsPrefix, "-switch-handle:before")]: {
10936
- backgroundColor: theme.colors.backgroundPrimary
10937
- },
10938
- ["&& + .".concat(clsPrefix, "-hint, && + .").concat(clsPrefix, "-form-message")]: {
10939
- paddingLeft: theme.spacing.sm + SWITCH_WIDTH
10940
- },
10941
- ["&& + .".concat(clsPrefix, "-form-message")]: {
10942
- marginTop: 0
10943
- },
10944
- [".".concat(clsPrefix, "-click-animating-node")]: {
10945
- animation: 'none'
10946
- }
10947
- };
10948
- const importantStyles = importantify(styles);
10949
- return /*#__PURE__*/css(importantStyles, process.env.NODE_ENV === "production" ? "" : ";label:getSwitchWithLabelStyles;");
10950
- };
10951
- const Switch = _ref2 => {
9927
+ const {
9928
+ field
9929
+ } = useController({
9930
+ name: name,
9931
+ control: control,
9932
+ rules: rules
9933
+ });
9934
+ return jsx(Input, {
9935
+ ...restProps,
9936
+ ...field,
9937
+ value: field.value,
9938
+ defaultValue: restProps.defaultValue
9939
+ });
9940
+ }
9941
+ function RHFControlledPasswordInput(_ref2) {
10952
9942
  let {
10953
- dangerouslySetAntdProps,
10954
- label,
10955
- labelProps,
10956
- ...props
10957
- } = _ref2;
10958
- const {
10959
- theme,
10960
- classNamePrefix
10961
- } = useDesignSystemTheme();
10962
- return label ? jsx(DesignSystemAntDConfigProvider, {
10963
- children: jsxs("div", {
10964
- css: getSwitchWithLabelStyles({
10965
- clsPrefix: classNamePrefix,
10966
- theme
10967
- }),
10968
- children: [jsx(Switch$1, {
10969
- ...props,
10970
- ...dangerouslySetAntdProps,
10971
- css: /*#__PURE__*/css({
10972
- ... /*#__PURE__*/css(getAnimationCss(theme.options.enableAnimation), process.env.NODE_ENV === "production" ? "" : ";label:Switch;"),
10973
- ...getSwitchWithLabelStyles({
10974
- clsPrefix: classNamePrefix,
10975
- theme
10976
- })
10977
- }, process.env.NODE_ENV === "production" ? "" : ";label:Switch;")
10978
- }), jsx(Label, {
10979
- inline: true,
10980
- ...labelProps,
10981
- children: label
10982
- })]
10983
- })
10984
- }) : jsx(DesignSystemAntDConfigProvider, {
10985
- children: jsx(Switch$1, {
10986
- ...props,
10987
- ...dangerouslySetAntdProps,
10988
- css: /*#__PURE__*/css({
10989
- ... /*#__PURE__*/css(getAnimationCss(theme.options.enableAnimation), process.env.NODE_ENV === "production" ? "" : ";label:Switch;"),
10990
- ...getSwitchWithLabelStyles({
10991
- clsPrefix: classNamePrefix,
10992
- theme
10993
- })
10994
- }, process.env.NODE_ENV === "production" ? "" : ";label:Switch;")
10995
- })
10996
- });
10997
- };
10998
-
10999
- function RHFControlledInput(_ref) {
11000
- let {
11001
- name,
11002
- control,
11003
- rules,
11004
- ...restProps
11005
- } = _ref;
11006
- const {
11007
- field
11008
- } = useController({
11009
- name: name,
11010
- control: control,
11011
- rules: rules
11012
- });
11013
- return jsx(Input, {
11014
- ...restProps,
11015
- ...field,
11016
- value: field.value,
11017
- defaultValue: restProps.defaultValue
11018
- });
11019
- }
11020
- function RHFControlledPasswordInput(_ref2) {
11021
- let {
11022
- name,
11023
- control,
11024
- rules,
11025
- ...restProps
9943
+ name,
9944
+ control,
9945
+ rules,
9946
+ ...restProps
11026
9947
  } = _ref2;
11027
9948
  const {
11028
9949
  field
@@ -11100,7 +10021,7 @@ function RHFControlledCheckboxGroup(_ref5) {
11100
10021
  value: field.value
11101
10022
  });
11102
10023
  }
11103
- function RHFControlledRadioGroup(_ref6) {
10024
+ function RHFControlledCheckbox(_ref6) {
11104
10025
  let {
11105
10026
  name,
11106
10027
  control,
@@ -11114,12 +10035,21 @@ function RHFControlledRadioGroup(_ref6) {
11114
10035
  control: control,
11115
10036
  rules: rules
11116
10037
  });
11117
- return jsx(Radio.Group, {
11118
- ...restProps,
11119
- ...field
10038
+ const {
10039
+ theme
10040
+ } = useDesignSystemTheme();
10041
+ return jsx("div", {
10042
+ css: /*#__PURE__*/css({
10043
+ marginTop: theme.spacing.sm
10044
+ }, process.env.NODE_ENV === "production" ? "" : ";label:RHFControlledCheckbox;"),
10045
+ children: jsx(Checkbox, {
10046
+ ...restProps,
10047
+ ...field,
10048
+ checked: field.value
10049
+ })
11120
10050
  });
11121
10051
  }
11122
- function RHFControlledSwitch(_ref7) {
10052
+ function RHFControlledRadioGroup(_ref7) {
11123
10053
  let {
11124
10054
  name,
11125
10055
  control,
@@ -11127,19 +10057,15 @@ function RHFControlledSwitch(_ref7) {
11127
10057
  ...restProps
11128
10058
  } = _ref7;
11129
10059
  const {
11130
- field: {
11131
- value,
11132
- ...restField
11133
- }
10060
+ field
11134
10061
  } = useController({
11135
10062
  name: name,
11136
10063
  control: control,
11137
10064
  rules: rules
11138
10065
  });
11139
- return jsx(Switch, {
10066
+ return jsx(Radio.Group, {
11140
10067
  ...restProps,
11141
- ...restField,
11142
- checked: value
10068
+ ...field
11143
10069
  });
11144
10070
  }
11145
10071
  const RHFControlledComponents = {
@@ -11147,9 +10073,9 @@ const RHFControlledComponents = {
11147
10073
  Password: RHFControlledPasswordInput,
11148
10074
  TextArea: RHFControlledTextArea,
11149
10075
  Select: RHFControlledSelect,
10076
+ Checkbox: RHFControlledCheckbox,
11150
10077
  CheckboxGroup: RHFControlledCheckboxGroup,
11151
- RadioGroup: RHFControlledRadioGroup,
11152
- Switch: RHFControlledSwitch
10078
+ RadioGroup: RHFControlledRadioGroup
11153
10079
  };
11154
10080
 
11155
10081
  const FormUI = {
@@ -11198,7 +10124,7 @@ const Space = _ref => {
11198
10124
  });
11199
10125
  };
11200
10126
 
11201
- 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)."; }
10127
+ 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)."; }
11202
10128
  const getHeaderStyles = (clsPrefix, theme) => {
11203
10129
  const breadcrumbClass = ".".concat(clsPrefix, "-breadcrumb");
11204
10130
  const styles = {
@@ -11208,21 +10134,21 @@ const getHeaderStyles = (clsPrefix, theme) => {
11208
10134
  };
11209
10135
  return /*#__PURE__*/css(importantify(styles), process.env.NODE_ENV === "production" ? "" : ";label:getHeaderStyles;");
11210
10136
  };
11211
- var _ref$2 = process.env.NODE_ENV === "production" ? {
10137
+ var _ref$1 = process.env.NODE_ENV === "production" ? {
11212
10138
  name: "5s4ezj",
11213
10139
  styles: "display:inline-flex;vertical-align:middle;align-items:center;margin-left:8px"
11214
10140
  } : {
11215
10141
  name: "gxikdi-titleAddOnsWrapper",
11216
10142
  styles: "display:inline-flex;vertical-align:middle;align-items:center;margin-left:8px;label:titleAddOnsWrapper;",
11217
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$4
10143
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$3
11218
10144
  };
11219
- var _ref2$1 = process.env.NODE_ENV === "production" ? {
10145
+ var _ref2 = process.env.NODE_ENV === "production" ? {
11220
10146
  name: "1q4vxyr",
11221
10147
  styles: "margin-left:8px"
11222
10148
  } : {
11223
10149
  name: "ozrfom-buttonContainer",
11224
10150
  styles: "margin-left:8px;label:buttonContainer;",
11225
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$4
10151
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$3
11226
10152
  };
11227
10153
  var _ref3$1 = process.env.NODE_ENV === "production" ? {
11228
10154
  name: "s079uh",
@@ -11230,15 +10156,15 @@ var _ref3$1 = process.env.NODE_ENV === "production" ? {
11230
10156
  } : {
11231
10157
  name: "1ky5whb-titleIfOtherElementsPresent",
11232
10158
  styles: "margin-top:2px;label:titleIfOtherElementsPresent;",
11233
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$4
10159
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$3
11234
10160
  };
11235
- var _ref4 = process.env.NODE_ENV === "production" ? {
10161
+ var _ref4$1 = process.env.NODE_ENV === "production" ? {
11236
10162
  name: "18hxk3h",
11237
10163
  styles: "margin-top:0;margin-bottom:0 !important"
11238
10164
  } : {
11239
10165
  name: "abhq57-title",
11240
10166
  styles: "margin-top:0;margin-bottom:0 !important;label:title;",
11241
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$4
10167
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$3
11242
10168
  };
11243
10169
  var _ref5 = process.env.NODE_ENV === "production" ? {
11244
10170
  name: "1cl2a0e",
@@ -11246,7 +10172,7 @@ var _ref5 = process.env.NODE_ENV === "production" ? {
11246
10172
  } : {
11247
10173
  name: "m9gz0x-titleWrapper",
11248
10174
  styles: "display:flex;align-items:flex-start;justify-content:space-between;label:titleWrapper;",
11249
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$4
10175
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$3
11250
10176
  };
11251
10177
  const Header$1 = props => {
11252
10178
  const {
@@ -11261,11 +10187,11 @@ const Header$1 = props => {
11261
10187
  marginBottom: 2,
11262
10188
  lineHeight: theme.typography.lineHeightBase
11263
10189
  }, process.env.NODE_ENV === "production" ? "" : ";label:breadcrumbWrapper;"),
11264
- title: _ref4,
10190
+ title: _ref4$1,
11265
10191
  // TODO: Look into a more emotion-idomatic way of doing this.
11266
10192
  titleIfOtherElementsPresent: _ref3$1,
11267
- buttonContainer: _ref2$1,
11268
- titleAddOnsWrapper: _ref$2
10193
+ buttonContainer: _ref2,
10194
+ titleAddOnsWrapper: _ref$1
11269
10195
  };
11270
10196
  return jsxs("div", {
11271
10197
  css: [getHeaderStyles(clsPrefix, theme), props.dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:Header;"],
@@ -11375,6 +10301,225 @@ const Layout = /* #__PURE__ */(() => {
11375
10301
  return Layout;
11376
10302
  })();
11377
10303
 
10304
+ function getPaginationEmotionStyles(clsPrefix, theme) {
10305
+ const classRoot = ".".concat(clsPrefix, "-pagination");
10306
+ const classItem = ".".concat(clsPrefix, "-pagination-item");
10307
+ const classLink = ".".concat(clsPrefix, "-pagination-item-link");
10308
+ const classActive = ".".concat(clsPrefix, "-pagination-item-active");
10309
+ const classEllipsis = ".".concat(clsPrefix, "-pagination-item-ellipsis");
10310
+ const classNext = ".".concat(clsPrefix, "-pagination-next");
10311
+ const classPrev = ".".concat(clsPrefix, "-pagination-prev");
10312
+ const classJumpNext = ".".concat(clsPrefix, "-pagination-jump-next");
10313
+ const classJumpPrev = ".".concat(clsPrefix, "-pagination-jump-prev");
10314
+ const classSizeChanger = ".".concat(clsPrefix, "-pagination-options-size-changer");
10315
+ const classOptions = ".".concat(clsPrefix, "-pagination-options");
10316
+ const styles = {
10317
+ 'span[role=img]': {
10318
+ color: theme.colors.textSecondary,
10319
+ '> *': {
10320
+ color: 'inherit'
10321
+ }
10322
+ },
10323
+ [classItem]: {
10324
+ backgroundColor: 'none',
10325
+ border: 'none',
10326
+ color: theme.colors.textSecondary,
10327
+ '&:focus-visible': {
10328
+ outline: 'auto'
10329
+ },
10330
+ '> a': {
10331
+ color: theme.colors.textSecondary,
10332
+ '&:hover': {
10333
+ color: theme.colors.actionDefaultTextHover
10334
+ },
10335
+ '&:active': {
10336
+ color: theme.colors.actionDefaultTextPress
10337
+ }
10338
+ },
10339
+ '&:hover': {
10340
+ backgroundColor: theme.colors.actionDefaultBackgroundHover
10341
+ },
10342
+ '&:active': {
10343
+ backgroundColor: theme.colors.actionDefaultBackgroundPress
10344
+ }
10345
+ },
10346
+ [classActive]: {
10347
+ backgroundColor: theme.colors.actionDefaultBackgroundPress,
10348
+ color: theme.colors.actionDefaultTextPress,
10349
+ border: 'none',
10350
+ '> a': {
10351
+ color: theme.colors.actionDefaultTextPress
10352
+ },
10353
+ '&:focus-visible': {
10354
+ outline: 'auto'
10355
+ },
10356
+ '&:hover': {
10357
+ backgroundColor: theme.colors.actionDefaultBackgroundPress,
10358
+ color: theme.colors.actionDefaultTextPress
10359
+ }
10360
+ },
10361
+ [classLink]: {
10362
+ border: 'none',
10363
+ color: theme.colors.textSecondary,
10364
+ '&[disabled]': {
10365
+ display: 'none'
10366
+ },
10367
+ '&:hover': {
10368
+ backgroundColor: theme.colors.actionDefaultBackgroundHover
10369
+ },
10370
+ '&:active': {
10371
+ backgroundColor: theme.colors.actionDefaultBackgroundPress
10372
+ },
10373
+ '&:focus-visible': {
10374
+ outline: 'auto'
10375
+ }
10376
+ },
10377
+ [classEllipsis]: {
10378
+ color: 'inherit'
10379
+ },
10380
+ ["".concat(classNext, ", ").concat(classPrev, ", ").concat(classJumpNext, ", ").concat(classJumpPrev)]: {
10381
+ color: theme.colors.textSecondary,
10382
+ '&:hover': {
10383
+ backgroundColor: theme.colors.actionDefaultBackgroundHover
10384
+ },
10385
+ '&:active': {
10386
+ backgroundColor: theme.colors.actionDefaultBackgroundPress
10387
+ },
10388
+ '&:focus-visible': {
10389
+ outline: 'auto'
10390
+ }
10391
+ },
10392
+ ["&".concat(classRoot, ".mini, ").concat(classRoot, ".mini")]: {
10393
+ ["".concat(classItem, ", ").concat(classNext, ", ").concat(classPrev, ", ").concat(classJumpNext, ", ").concat(classJumpPrev)]: {
10394
+ height: '32px',
10395
+ width: '32px',
10396
+ lineHeight: '32px'
10397
+ },
10398
+ [classSizeChanger]: {
10399
+ marginLeft: 4
10400
+ },
10401
+ ["input, ".concat(classOptions)]: {
10402
+ height: '32px'
10403
+ }
10404
+ }
10405
+ };
10406
+ const importantStyles = importantify(styles);
10407
+ return /*#__PURE__*/css(importantStyles, process.env.NODE_ENV === "production" ? "" : ";label:getPaginationEmotionStyles;");
10408
+ }
10409
+ const Pagination = function Pagination(_ref) {
10410
+ let {
10411
+ currentPageIndex,
10412
+ pageSize = 10,
10413
+ numTotal,
10414
+ onChange,
10415
+ dangerouslySetAntdProps
10416
+ } = _ref;
10417
+ const {
10418
+ classNamePrefix,
10419
+ theme
10420
+ } = useDesignSystemTheme();
10421
+ return jsx(DesignSystemAntDConfigProvider, {
10422
+ children: jsx(Pagination$1, {
10423
+ css: getPaginationEmotionStyles(classNamePrefix, theme),
10424
+ current: currentPageIndex,
10425
+ pageSize: pageSize,
10426
+ responsive: false,
10427
+ total: numTotal,
10428
+ onChange: onChange,
10429
+ showSizeChanger: false,
10430
+ showQuickJumper: true,
10431
+ size: 'small',
10432
+ ...dangerouslySetAntdProps
10433
+ })
10434
+ });
10435
+ };
10436
+
10437
+ const getTableEmotionStyles = (classNamePrefix, theme, scrollableInFlexibleContainer) => {
10438
+ const styles = [/*#__PURE__*/css({
10439
+ [".".concat(classNamePrefix, "-table-pagination")]: {
10440
+ ...getPaginationEmotionStyles(classNamePrefix, theme)
10441
+ }
10442
+ }, process.env.NODE_ENV === "production" ? "" : ";label:styles;")];
10443
+ if (scrollableInFlexibleContainer) {
10444
+ styles.push(getScrollableInFlexibleContainerStyles(classNamePrefix));
10445
+ }
10446
+ return styles;
10447
+ };
10448
+ const getScrollableInFlexibleContainerStyles = clsPrefix => {
10449
+ const styles = {
10450
+ minHeight: 0,
10451
+ [".".concat(clsPrefix, "-spin-nested-loading")]: {
10452
+ height: '100%'
10453
+ },
10454
+ [".".concat(clsPrefix, "-spin-container")]: {
10455
+ height: '100%',
10456
+ display: 'flex',
10457
+ flexDirection: 'column'
10458
+ },
10459
+ [".".concat(clsPrefix, "-table-container")]: {
10460
+ height: '100%',
10461
+ display: 'flex',
10462
+ flexDirection: 'column'
10463
+ },
10464
+ [".".concat(clsPrefix, "-table")]: {
10465
+ minHeight: 0
10466
+ },
10467
+ [".".concat(clsPrefix, "-table-header")]: {
10468
+ flexShrink: 0
10469
+ },
10470
+ [".".concat(clsPrefix, "-table-body")]: {
10471
+ minHeight: 0
10472
+ }
10473
+ };
10474
+ return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getScrollableInFlexibleContainerStyles;");
10475
+ };
10476
+ const DEFAULT_LOADING_SPIN_PROPS = {
10477
+ indicator: jsx(Spinner, {})
10478
+ };
10479
+
10480
+ /**
10481
+ * `LegacyTable` is deprecated in favor of the new `Table` component
10482
+ * For more information please join #dubois-table-early-adopters in Slack.
10483
+ * @deprecated
10484
+ */
10485
+ // eslint-disable-next-line @typescript-eslint/ban-types
10486
+ const LegacyTable = props => {
10487
+ const {
10488
+ classNamePrefix,
10489
+ theme
10490
+ } = useDesignSystemTheme();
10491
+ const {
10492
+ loading,
10493
+ scrollableInFlexibleContainer,
10494
+ children,
10495
+ ...tableProps
10496
+ } = props;
10497
+ return jsx(DesignSystemAntDConfigProvider, {
10498
+ children: jsx(Table$1
10499
+ // NOTE(FEINF-1273): The default loading indicator from AntD does not animate
10500
+ // and the design system spinner is recommended over the AntD one. Therefore,
10501
+ // if `loading` is `true`, render the design system <Spinner/> component.
10502
+ , {
10503
+ loading: loading === true ? DEFAULT_LOADING_SPIN_PROPS : loading,
10504
+ scroll: scrollableInFlexibleContainer ? {
10505
+ y: 'auto'
10506
+ } : undefined,
10507
+ ...tableProps,
10508
+ css: getTableEmotionStyles(classNamePrefix, theme, Boolean(scrollableInFlexibleContainer)),
10509
+ children: jsx(RestoreAntDDefaultClsPrefix, {
10510
+ children: children
10511
+ })
10512
+ })
10513
+ });
10514
+ };
10515
+
10516
+ /**
10517
+ * `LegacyTable` is deprecated in favor of the new `Table` component
10518
+ * For more information please join #dubois-table-early-adopters in Slack.
10519
+ * @deprecated
10520
+ */
10521
+ const Table = LegacyTable;
10522
+
11378
10523
  /**
11379
10524
  * @deprecated Use `DropdownMenu` instead.
11380
10525
  */
@@ -11420,7 +10565,7 @@ const Menu = /* #__PURE__ */(() => {
11420
10565
  return Menu;
11421
10566
  })();
11422
10567
 
11423
- 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)."; }
10568
+ 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)."; }
11424
10569
  const SIZE_PRESETS = {
11425
10570
  normal: 640,
11426
10571
  wide: 880
@@ -11544,7 +10689,46 @@ const getModalEmotionStyles = args => {
11544
10689
  ...getAnimationCss(theme.options.enableAnimation)
11545
10690
  }, process.env.NODE_ENV === "production" ? "" : ";label:getModalEmotionStyles;");
11546
10691
  };
11547
- function Modal(_ref) {
10692
+
10693
+ /**
10694
+ * Render default footer with our buttons. Copied from AntD.
10695
+ */
10696
+ function DefaultFooter(_ref) {
10697
+ let {
10698
+ onOk,
10699
+ onCancel,
10700
+ confirmLoading,
10701
+ okText,
10702
+ cancelText,
10703
+ okButtonProps,
10704
+ cancelButtonProps,
10705
+ autoFocusButton
10706
+ } = _ref;
10707
+ const handleCancel = e => {
10708
+ onCancel === null || onCancel === void 0 ? void 0 : onCancel(e);
10709
+ };
10710
+ const handleOk = e => {
10711
+ onOk === null || onOk === void 0 ? void 0 : onOk(e);
10712
+ };
10713
+ return jsxs(Fragment, {
10714
+ children: [cancelText && jsx(Button, {
10715
+ onClick: handleCancel,
10716
+ autoFocus: autoFocusButton === 'cancel',
10717
+ dangerouslyUseFocusPseudoClass: true,
10718
+ ...cancelButtonProps,
10719
+ children: cancelText
10720
+ }), okText && jsx(Button, {
10721
+ loading: confirmLoading,
10722
+ onClick: handleOk,
10723
+ type: "primary",
10724
+ autoFocus: autoFocusButton === 'ok',
10725
+ dangerouslyUseFocusPseudoClass: true,
10726
+ ...okButtonProps,
10727
+ children: okText
10728
+ })]
10729
+ });
10730
+ }
10731
+ function Modal(_ref2) {
11548
10732
  let {
11549
10733
  okButtonProps,
11550
10734
  cancelButtonProps,
@@ -11554,44 +10738,13 @@ function Modal(_ref) {
11554
10738
  footer,
11555
10739
  size = 'normal',
11556
10740
  verticalSizing = 'dynamic',
10741
+ autoFocusButton,
11557
10742
  ...props
11558
- } = _ref;
10743
+ } = _ref2;
11559
10744
  const {
11560
10745
  theme,
11561
10746
  classNamePrefix
11562
10747
  } = useDesignSystemTheme();
11563
- const handleCancel = e => {
11564
- var _props$onCancel;
11565
- (_props$onCancel = props.onCancel) === null || _props$onCancel === void 0 ? void 0 : _props$onCancel.call(props, e);
11566
- };
11567
- const handleOk = e => {
11568
- var _props$onOk;
11569
- (_props$onOk = props.onOk) === null || _props$onOk === void 0 ? void 0 : _props$onOk.call(props, e);
11570
- };
11571
-
11572
- /**
11573
- * Render default footer with our buttons. Copied from AntD.
11574
- */
11575
- const renderDefaultFooter = () => {
11576
- const {
11577
- okText,
11578
- cancelText,
11579
- confirmLoading
11580
- } = props;
11581
- return jsxs(Fragment, {
11582
- children: [cancelText && jsx(Button, {
11583
- onClick: handleCancel,
11584
- ...cancelButtonProps,
11585
- children: cancelText
11586
- }), okText && jsx(Button, {
11587
- loading: confirmLoading,
11588
- onClick: handleOk,
11589
- type: "primary",
11590
- ...okButtonProps,
11591
- children: okText
11592
- })]
11593
- });
11594
- };
11595
10748
  return jsx(DesignSystemAntDConfigProvider, {
11596
10749
  children: jsx(Modal$1, {
11597
10750
  css: getModalEmotionStyles({
@@ -11604,7 +10757,16 @@ function Modal(_ref) {
11604
10757
  children: title
11605
10758
  }),
11606
10759
  footer: jsx(RestoreAntDDefaultClsPrefix, {
11607
- children: footer === undefined ? renderDefaultFooter() : footer
10760
+ children: footer === undefined ? jsx(DefaultFooter, {
10761
+ onOk: props.onOk,
10762
+ onCancel: props.onCancel,
10763
+ confirmLoading: props.confirmLoading,
10764
+ okText: props.okText,
10765
+ cancelText: props.cancelText,
10766
+ okButtonProps: okButtonProps,
10767
+ cancelButtonProps: cancelButtonProps,
10768
+ autoFocusButton: autoFocusButton
10769
+ }) : footer
11608
10770
  }),
11609
10771
  width: size ? SIZE_PRESETS[size] : undefined,
11610
10772
  closeIcon: jsx(CloseIcon, {}),
@@ -11618,21 +10780,21 @@ function Modal(_ref) {
11618
10780
  })
11619
10781
  });
11620
10782
  }
11621
- var _ref2 = process.env.NODE_ENV === "production" ? {
10783
+ var _ref3 = process.env.NODE_ENV === "production" ? {
11622
10784
  name: "b9hrb",
11623
10785
  styles: "position:relative;display:inline-flex;align-items:center"
11624
10786
  } : {
11625
10787
  name: "1jkwrsj-titleComp",
11626
10788
  styles: "position:relative;display:inline-flex;align-items:center;label:titleComp;",
11627
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$3
10789
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
11628
10790
  };
11629
- var _ref3 = process.env.NODE_ENV === "production" ? {
10791
+ var _ref4 = process.env.NODE_ENV === "production" ? {
11630
10792
  name: "1o6wc9k",
11631
10793
  styles: "padding-left:6px"
11632
10794
  } : {
11633
10795
  name: "i303lp-titleComp",
11634
10796
  styles: "padding-left:6px;label:titleComp;",
11635
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$3
10797
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
11636
10798
  };
11637
10799
  function DangerModal(props) {
11638
10800
  const {
@@ -11654,7 +10816,7 @@ function DangerModal(props) {
11654
10816
  const iconSize = useNewIcons ? 18 : 20;
11655
10817
  const iconFontSize = useNewIcons ? 18 : 22;
11656
10818
  const titleComp = jsxs("div", {
11657
- css: _ref2,
10819
+ css: _ref3,
11658
10820
  children: [jsx(DangerIcon, {
11659
10821
  css: /*#__PURE__*/css({
11660
10822
  color: theme.colors.textValidationDanger,
@@ -11664,7 +10826,7 @@ function DangerModal(props) {
11664
10826
  fontSize: iconFontSize
11665
10827
  }, process.env.NODE_ENV === "production" ? "" : ";label:titleComp;")
11666
10828
  }), jsx("div", {
11667
- css: _ref3,
10829
+ css: _ref4,
11668
10830
  children: title
11669
10831
  })]
11670
10832
  });
@@ -11749,6 +10911,8 @@ function useNotification() {
11749
10911
  success
11750
10912
  };
11751
10913
  }, [open]);
10914
+
10915
+ // eslint-disable-next-line react/jsx-key -- TODO(FEINF-1756)
11752
10916
  return [wrappedNotificationAPI, jsx(DesignSystemAntDConfigProvider, {
11753
10917
  children: contextHolder
11754
10918
  })];
@@ -11957,7 +11121,7 @@ const getCloseStyles = theme => {
11957
11121
  top: 6
11958
11122
  }, process.env.NODE_ENV === "production" ? "" : ";label:getCloseStyles;");
11959
11123
  };
11960
- const Close = /*#__PURE__*/forwardRef(function (props, ref) {
11124
+ const Close$1 = /*#__PURE__*/forwardRef(function (props, ref) {
11961
11125
  const {
11962
11126
  theme
11963
11127
  } = useDesignSystemTheme();
@@ -12008,162 +11172,27 @@ var NotificationV2 = /*#__PURE__*/Object.freeze({
12008
11172
  Root: Root$1,
12009
11173
  Title: Title,
12010
11174
  Description: Description,
12011
- Close: Close,
11175
+ Close: Close$1,
12012
11176
  Provider: Provider,
12013
11177
  Viewport: Viewport
12014
11178
  });
12015
11179
 
12016
- 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)."; }
12017
- var _ref$1 = process.env.NODE_ENV === "production" ? {
12018
- name: "1dw6hj0",
12019
- styles: "padding-left:16px;padding-right:16px"
12020
- } : {
12021
- name: "xioo5t-PageWrapper",
12022
- styles: "padding-left:16px;padding-right:16px;label:PageWrapper;",
12023
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
12024
- };
12025
- const PageWrapper = _ref2 => {
12026
- let {
12027
- children,
12028
- ...props
12029
- } = _ref2;
12030
- return jsx("div", {
12031
- css: _ref$1,
12032
- ...props,
12033
- children: children
12034
- });
12035
- };
12036
-
12037
- function getPaginationEmotionStyles(clsPrefix, theme) {
12038
- const classRoot = ".".concat(clsPrefix, "-pagination");
12039
- const classItem = ".".concat(clsPrefix, "-pagination-item");
12040
- const classLink = ".".concat(clsPrefix, "-pagination-item-link");
12041
- const classActive = ".".concat(clsPrefix, "-pagination-item-active");
12042
- const classEllipsis = ".".concat(clsPrefix, "-pagination-item-ellipsis");
12043
- const classNext = ".".concat(clsPrefix, "-pagination-next");
12044
- const classPrev = ".".concat(clsPrefix, "-pagination-prev");
12045
- const classJumpNext = ".".concat(clsPrefix, "-pagination-jump-next");
12046
- const classJumpPrev = ".".concat(clsPrefix, "-pagination-jump-prev");
12047
- const classSizeChanger = ".".concat(clsPrefix, "-pagination-options-size-changer");
12048
- const classOptions = ".".concat(clsPrefix, "-pagination-options");
12049
- const styles = {
12050
- 'span[role=img]': {
12051
- color: theme.colors.textSecondary,
12052
- '> *': {
12053
- color: 'inherit'
12054
- }
12055
- },
12056
- [classItem]: {
12057
- backgroundColor: 'none',
12058
- border: 'none',
12059
- color: theme.colors.textSecondary,
12060
- '&:focus-visible': {
12061
- outline: 'auto'
12062
- },
12063
- '> a': {
12064
- color: theme.colors.textSecondary,
12065
- '&:hover': {
12066
- color: theme.colors.actionDefaultTextHover
12067
- },
12068
- '&:active': {
12069
- color: theme.colors.actionDefaultTextPress
12070
- }
12071
- },
12072
- '&:hover': {
12073
- backgroundColor: theme.colors.actionDefaultBackgroundHover
12074
- },
12075
- '&:active': {
12076
- backgroundColor: theme.colors.actionDefaultBackgroundPress
12077
- }
12078
- },
12079
- [classActive]: {
12080
- backgroundColor: theme.colors.actionDefaultBackgroundPress,
12081
- color: theme.colors.actionDefaultTextPress,
12082
- border: 'none',
12083
- '> a': {
12084
- color: theme.colors.actionDefaultTextPress
12085
- },
12086
- '&:focus-visible': {
12087
- outline: 'auto'
12088
- },
12089
- '&:hover': {
12090
- backgroundColor: theme.colors.actionDefaultBackgroundPress,
12091
- color: theme.colors.actionDefaultTextPress
12092
- }
12093
- },
12094
- [classLink]: {
12095
- border: 'none',
12096
- color: theme.colors.textSecondary,
12097
- '&[disabled]': {
12098
- display: 'none'
12099
- },
12100
- '&:hover': {
12101
- backgroundColor: theme.colors.actionDefaultBackgroundHover
12102
- },
12103
- '&:active': {
12104
- backgroundColor: theme.colors.actionDefaultBackgroundPress
12105
- },
12106
- '&:focus-visible': {
12107
- outline: 'auto'
12108
- }
12109
- },
12110
- [classEllipsis]: {
12111
- color: 'inherit'
12112
- },
12113
- ["".concat(classNext, ", ").concat(classPrev, ", ").concat(classJumpNext, ", ").concat(classJumpPrev)]: {
12114
- color: theme.colors.textSecondary,
12115
- '&:hover': {
12116
- backgroundColor: theme.colors.actionDefaultBackgroundHover
12117
- },
12118
- '&:active': {
12119
- backgroundColor: theme.colors.actionDefaultBackgroundPress
12120
- },
12121
- '&:focus-visible': {
12122
- outline: 'auto'
12123
- }
12124
- },
12125
- ["&".concat(classRoot, ".mini, ").concat(classRoot, ".mini")]: {
12126
- ["".concat(classItem, ", ").concat(classNext, ", ").concat(classPrev, ", ").concat(classJumpNext, ", ").concat(classJumpPrev)]: {
12127
- height: '32px',
12128
- width: '32px',
12129
- lineHeight: '32px'
12130
- },
12131
- [classSizeChanger]: {
12132
- marginLeft: 4
12133
- },
12134
- ["input, ".concat(classOptions)]: {
12135
- height: '32px'
12136
- }
12137
- }
12138
- };
12139
- const importantStyles = importantify(styles);
12140
- return /*#__PURE__*/css(importantStyles, process.env.NODE_ENV === "production" ? "" : ";label:getPaginationEmotionStyles;");
12141
- }
12142
- const Pagination = function Pagination(_ref) {
11180
+ const PageWrapper = _ref => {
12143
11181
  let {
12144
- currentPageIndex,
12145
- pageSize = 10,
12146
- numTotal,
12147
- onChange,
12148
- dangerouslySetAntdProps
12149
- } = _ref;
12150
- const {
12151
- classNamePrefix,
12152
- theme
12153
- } = useDesignSystemTheme();
12154
- return jsx(DesignSystemAntDConfigProvider, {
12155
- children: jsx(Pagination$1, {
12156
- css: getPaginationEmotionStyles(classNamePrefix, theme),
12157
- current: currentPageIndex,
12158
- pageSize: pageSize,
12159
- responsive: false,
12160
- total: numTotal,
12161
- onChange: onChange,
12162
- showSizeChanger: false,
12163
- showQuickJumper: true,
12164
- size: 'small',
12165
- ...dangerouslySetAntdProps
12166
- })
11182
+ children,
11183
+ ...props
11184
+ } = _ref;
11185
+ const {
11186
+ theme
11187
+ } = useDesignSystemTheme();
11188
+ return jsx("div", {
11189
+ css: /*#__PURE__*/css({
11190
+ paddingLeft: 16,
11191
+ paddingRight: 16,
11192
+ backgroundColor: theme.isDarkMode ? theme.colors.backgroundPrimary : 'transparent'
11193
+ }, process.env.NODE_ENV === "production" ? "" : ";label:PageWrapper;"),
11194
+ ...props,
11195
+ children: children
12167
11196
  });
12168
11197
  };
12169
11198
 
@@ -12222,11 +11251,22 @@ const Trigger = /*#__PURE__*/forwardRef(function Trigger(_ref2, ref) {
12222
11251
  children: children
12223
11252
  });
12224
11253
  });
12225
- const Arrow = /*#__PURE__*/forwardRef(function Arrow(_ref3, ref) {
11254
+ const Close = /*#__PURE__*/forwardRef(function Close(_ref3, ref) {
12226
11255
  let {
12227
11256
  children,
12228
11257
  ...props
12229
11258
  } = _ref3;
11259
+ return jsx(Popover$1.Close, {
11260
+ ref: ref,
11261
+ ...props,
11262
+ children: children
11263
+ });
11264
+ });
11265
+ const Arrow = /*#__PURE__*/forwardRef(function Arrow(_ref4, ref) {
11266
+ let {
11267
+ children,
11268
+ ...props
11269
+ } = _ref4;
12230
11270
  const {
12231
11271
  theme
12232
11272
  } = useDesignSystemTheme();
@@ -12303,6 +11343,7 @@ var PopoverV2 = /*#__PURE__*/Object.freeze({
12303
11343
  Root: Root,
12304
11344
  Content: Content$1,
12305
11345
  Trigger: Trigger,
11346
+ Close: Close,
12306
11347
  Arrow: Arrow
12307
11348
  });
12308
11349
 
@@ -12645,7 +11686,7 @@ function PanelHeader(_ref5) {
12645
11686
  return jsxs("div", {
12646
11687
  css: [{
12647
11688
  display: 'flex',
12648
- paddingLeft: 16,
11689
+ paddingLeft: 8,
12649
11690
  paddingRight: 4,
12650
11691
  alignItems: 'center',
12651
11692
  height: theme.general.heightBase,
@@ -12698,7 +11739,7 @@ function PanelBody(_ref9) {
12698
11739
  dangerouslyAppendEmotionCSS
12699
11740
  } = _ref9;
12700
11741
  return jsx("div", {
12701
- css: ["height:100%;overflow-x:hidden;overflow-y:auto;padding:0 16px;", dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:PanelBody;"],
11742
+ css: ["height:100%;overflow-x:hidden;overflow-y:auto;padding:0 8px;", dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:PanelBody;"],
12702
11743
  children: children
12703
11744
  });
12704
11745
  }
@@ -12763,56 +11804,6 @@ const Skeleton = /* #__PURE__ */(() => {
12763
11804
  return Skeleton;
12764
11805
  })();
12765
11806
 
12766
- const rotate = keyframes({
12767
- '0%': {
12768
- transform: 'rotate(0deg) translate3d(0, 0, 0)'
12769
- },
12770
- '100%': {
12771
- transform: 'rotate(360deg) translate3d(0, 0, 0)'
12772
- }
12773
- });
12774
- const cssSpinner = function (theme) {
12775
- let frameRate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 60;
12776
- let delay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
12777
- const styles = {
12778
- animation: "".concat(rotate, " 1s steps(").concat(frameRate, ", end) infinite"),
12779
- color: theme.colors.textSecondary,
12780
- animationDelay: "".concat(delay, "s")
12781
- };
12782
- return /*#__PURE__*/css(importantify(styles), process.env.NODE_ENV === "production" ? "" : ";label:cssSpinner;");
12783
- };
12784
- const Spinner = _ref => {
12785
- let {
12786
- frameRate,
12787
- size = 'default',
12788
- delay,
12789
- className: propClass,
12790
- ...props
12791
- } = _ref;
12792
- const {
12793
- classNamePrefix,
12794
- theme
12795
- } = useDesignSystemTheme();
12796
-
12797
- // We use Antd classes to keep styling unchanged
12798
- // TODO(FEINF-1407): We want to move away from Antd classes and use Emotion for styling in the future
12799
- const sizeSuffix = size === 'small' ? '-sm' : size === 'large' ? '-lg' : '';
12800
- const sizeClass = sizeSuffix ? "".concat(classNamePrefix, "-spin").concat(sizeSuffix) : '';
12801
- const wrapperClass = "".concat(propClass || '', " ").concat(classNamePrefix, "-spin ").concat(sizeClass, " ").concat(classNamePrefix, "-spin-spinning ").concat(DU_BOIS_ENABLE_ANIMATION_CLASSNAME).trim();
12802
- const className = "".concat(classNamePrefix, "-spin-dot ").concat(DU_BOIS_ENABLE_ANIMATION_CLASSNAME).trim();
12803
- return (
12804
- // className has to follow {...props}, otherwise is `css` prop is passed down it will overwrite our className
12805
- jsx("div", {
12806
- ...props,
12807
- className: wrapperClass,
12808
- children: jsx(LoadingIcon, {
12809
- css: cssSpinner(theme, frameRate, delay),
12810
- className: className
12811
- })
12812
- })
12813
- );
12814
- };
12815
-
12816
11807
  const defaultGetPrefixCls = (suffixCls, customizePrefixCls) => {
12817
11808
  if (customizePrefixCls) return customizePrefixCls;
12818
11809
  return suffixCls ? "ant-".concat(suffixCls) : 'ant';
@@ -12857,6 +11848,7 @@ const DropdownButton = props => {
12857
11848
  menuButtonLabel = 'Open dropdown',
12858
11849
  menu,
12859
11850
  leftButtonIcon,
11851
+ dropdownMenuRootProps,
12860
11852
  ...restProps
12861
11853
  } = props;
12862
11854
  const prefixCls = getPrefixCls('dropdown-button', customizePrefixCls);
@@ -12909,7 +11901,7 @@ const DropdownButton = props => {
12909
11901
  overlay: overlay,
12910
11902
  children: rightButtonToRender
12911
11903
  }) : jsxs(Root$2, {
12912
- ...props.dropdownMenuRootProps,
11904
+ ...dropdownMenuRootProps,
12913
11905
  children: [jsx(Trigger$1, {
12914
11906
  disabled: disabled,
12915
11907
  asChild: true,
@@ -13064,76 +12056,135 @@ const SplitButton = props => {
13064
12056
  });
13065
12057
  };
13066
12058
 
13067
- const getTableEmotionStyles = (classNamePrefix, theme, scrollableInFlexibleContainer) => {
13068
- const styles = [/*#__PURE__*/css({
13069
- [".".concat(classNamePrefix, "-table-pagination")]: {
13070
- ...getPaginationEmotionStyles(classNamePrefix, theme)
13071
- }
13072
- }, process.env.NODE_ENV === "production" ? "" : ";label:styles;")];
13073
- if (scrollableInFlexibleContainer) {
13074
- styles.push(getScrollableInFlexibleContainerStyles(classNamePrefix));
13075
- }
13076
- return styles;
13077
- };
13078
- const getScrollableInFlexibleContainerStyles = clsPrefix => {
12059
+ const getSwitchWithLabelStyles = _ref => {
12060
+ let {
12061
+ clsPrefix,
12062
+ theme
12063
+ } = _ref;
12064
+ // Default value
12065
+ const SWITCH_WIDTH = 28;
13079
12066
  const styles = {
13080
- minHeight: 0,
13081
- [".".concat(clsPrefix, "-spin-nested-loading")]: {
13082
- height: '100%'
12067
+ display: 'flex',
12068
+ alignItems: 'center',
12069
+ // Switch is Off
12070
+ ["&.".concat(clsPrefix, "-switch")]: {
12071
+ backgroundColor: theme.colors.backgroundPrimary,
12072
+ border: "1px solid ".concat(theme.colors.actionDefaultBorderDefault),
12073
+ [".".concat(clsPrefix, "-switch-handle:before")]: {
12074
+ boxShadow: "0px 0px 0px 1px ".concat(theme.colors.actionDefaultBorderDefault),
12075
+ transition: 'none'
12076
+ },
12077
+ ["&:hover:not(.".concat(clsPrefix, "-switch-disabled)")]: {
12078
+ backgroundColor: theme.colors.actionDefaultBackgroundHover,
12079
+ border: "1px solid ".concat(theme.colors.actionPrimaryBackgroundHover),
12080
+ [".".concat(clsPrefix, "-switch-handle:before")]: {
12081
+ boxShadow: "0px 0px 0px 1px ".concat(theme.colors.actionPrimaryBackgroundHover)
12082
+ }
12083
+ },
12084
+ ["&:active:not(.".concat(clsPrefix, "-switch-disabled)")]: {
12085
+ backgroundColor: theme.colors.actionDefaultBackgroundPress,
12086
+ border: "1px solid ".concat(theme.colors.actionPrimaryBackgroundPress),
12087
+ [".".concat(clsPrefix, "-switch-handle:before")]: {
12088
+ boxShadow: "0px 0px 0px 1px ".concat(theme.colors.actionPrimaryBackgroundHover)
12089
+ }
12090
+ },
12091
+ ["&:focus-visible"]: {
12092
+ border: "1px solid ".concat(theme.colors.actionPrimaryBackgroundDefault),
12093
+ boxShadow: 'none',
12094
+ outlineStyle: 'solid',
12095
+ outlineWidth: '1px',
12096
+ outlineOffset: '1px',
12097
+ outlineColor: theme.colors.actionDefaultBorderFocus,
12098
+ [".".concat(clsPrefix, "-switch-handle:before")]: {
12099
+ boxShadow: "0px 0px 0px 1px ".concat(theme.colors.actionPrimaryBackgroundDefault)
12100
+ }
12101
+ },
12102
+ ["&:focus"]: {
12103
+ boxShadow: 'none'
12104
+ }
13083
12105
  },
13084
- [".".concat(clsPrefix, "-spin-container")]: {
13085
- height: '100%',
13086
- display: 'flex',
13087
- flexDirection: 'column'
12106
+ // Switch is On
12107
+ ["&.".concat(clsPrefix, "-switch-checked")]: {
12108
+ backgroundColor: theme.colors.actionPrimaryBackgroundDefault,
12109
+ border: "1px solid ".concat(theme.colors.actionPrimaryBackgroundDefault),
12110
+ ["&:hover:not(.".concat(clsPrefix, "-switch-disabled)")]: {
12111
+ backgroundColor: theme.colors.actionPrimaryBackgroundHover,
12112
+ border: "1px solid ".concat(theme.colors.actionPrimaryBackgroundDefault)
12113
+ },
12114
+ ["&:active:not(.".concat(clsPrefix, "-switch-disabled)")]: {
12115
+ backgroundColor: theme.colors.actionPrimaryBackgroundPress
12116
+ },
12117
+ [".".concat(clsPrefix, "-switch-handle:before")]: {
12118
+ boxShadow: "0px 0px 0px 1px ".concat(theme.colors.actionPrimaryBackgroundDefault)
12119
+ },
12120
+ ["&.".concat(clsPrefix, "-switch-disabled")]: {
12121
+ backgroundColor: theme.colors.actionDisabledBackground,
12122
+ border: "1px solid ".concat(theme.colors.actionDisabledBackground),
12123
+ [".".concat(clsPrefix, "-switch-handle:before")]: {
12124
+ boxShadow: "0px 0px 0px 1px ".concat(theme.colors.actionDisabledBackground)
12125
+ }
12126
+ }
13088
12127
  },
13089
- [".".concat(clsPrefix, "-table-container")]: {
13090
- height: '100%',
13091
- display: 'flex',
13092
- flexDirection: 'column'
12128
+ [".".concat(clsPrefix, "-switch-handle:before")]: {
12129
+ backgroundColor: theme.colors.backgroundPrimary
13093
12130
  },
13094
- [".".concat(clsPrefix, "-table")]: {
13095
- minHeight: 0
12131
+ ["&& + .".concat(clsPrefix, "-hint, && + .").concat(clsPrefix, "-form-message")]: {
12132
+ paddingLeft: theme.spacing.sm + SWITCH_WIDTH
13096
12133
  },
13097
- [".".concat(clsPrefix, "-table-header")]: {
13098
- flexShrink: 0
12134
+ ["&& + .".concat(clsPrefix, "-form-message")]: {
12135
+ marginTop: 0
13099
12136
  },
13100
- [".".concat(clsPrefix, "-table-body")]: {
13101
- minHeight: 0
12137
+ [".".concat(clsPrefix, "-click-animating-node")]: {
12138
+ animation: 'none'
13102
12139
  }
13103
12140
  };
13104
- return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getScrollableInFlexibleContainerStyles;");
13105
- };
13106
- const DEFAULT_LOADING_SPIN_PROPS = {
13107
- indicator: jsx(Spinner, {})
12141
+ const importantStyles = importantify(styles);
12142
+ return /*#__PURE__*/css(importantStyles, process.env.NODE_ENV === "production" ? "" : ";label:getSwitchWithLabelStyles;");
13108
12143
  };
13109
-
13110
- // eslint-disable-next-line @typescript-eslint/ban-types
13111
- const Table = props => {
12144
+ const Switch = _ref2 => {
12145
+ let {
12146
+ dangerouslySetAntdProps,
12147
+ label,
12148
+ labelProps,
12149
+ ...props
12150
+ } = _ref2;
13112
12151
  const {
13113
- classNamePrefix,
13114
- theme
12152
+ theme,
12153
+ classNamePrefix
13115
12154
  } = useDesignSystemTheme();
13116
- const {
13117
- loading,
13118
- scrollableInFlexibleContainer,
13119
- children,
13120
- ...tableProps
13121
- } = props;
13122
- return jsx(DesignSystemAntDConfigProvider, {
13123
- children: jsx(Table$1
13124
- // NOTE(FEINF-1273): The default loading indicator from AntD does not animate
13125
- // and the design system spinner is recommended over the AntD one. Therefore,
13126
- // if `loading` is `true`, render the design system <Spinner/> component.
13127
- , {
13128
- loading: loading === true ? DEFAULT_LOADING_SPIN_PROPS : loading,
13129
- scroll: scrollableInFlexibleContainer ? {
13130
- y: 'auto'
13131
- } : undefined,
13132
- ...tableProps,
13133
- css: getTableEmotionStyles(classNamePrefix, theme, Boolean(scrollableInFlexibleContainer)),
13134
- children: jsx(RestoreAntDDefaultClsPrefix, {
13135
- children: children
13136
- })
12155
+ return label ? jsx(DesignSystemAntDConfigProvider, {
12156
+ children: jsxs("div", {
12157
+ css: getSwitchWithLabelStyles({
12158
+ clsPrefix: classNamePrefix,
12159
+ theme
12160
+ }),
12161
+ children: [jsx(Switch$1, {
12162
+ ...props,
12163
+ ...dangerouslySetAntdProps,
12164
+ css: /*#__PURE__*/css({
12165
+ ... /*#__PURE__*/css(getAnimationCss(theme.options.enableAnimation), process.env.NODE_ENV === "production" ? "" : ";label:Switch;"),
12166
+ ...getSwitchWithLabelStyles({
12167
+ clsPrefix: classNamePrefix,
12168
+ theme
12169
+ })
12170
+ }, process.env.NODE_ENV === "production" ? "" : ";label:Switch;")
12171
+ }), jsx(Label, {
12172
+ inline: true,
12173
+ ...labelProps,
12174
+ children: label
12175
+ })]
12176
+ })
12177
+ }) : jsx(DesignSystemAntDConfigProvider, {
12178
+ children: jsx(Switch$1, {
12179
+ ...props,
12180
+ ...dangerouslySetAntdProps,
12181
+ css: /*#__PURE__*/css({
12182
+ ... /*#__PURE__*/css(getAnimationCss(theme.options.enableAnimation), process.env.NODE_ENV === "production" ? "" : ";label:Switch;"),
12183
+ ...getSwitchWithLabelStyles({
12184
+ clsPrefix: classNamePrefix,
12185
+ theme
12186
+ })
12187
+ }, process.env.NODE_ENV === "production" ? "" : ";label:Switch;")
13137
12188
  })
13138
12189
  });
13139
12190
  };
@@ -13487,6 +12538,70 @@ function Tag(props) {
13487
12538
  });
13488
12539
  }
13489
12540
 
12541
+ const getStyles = theme => {
12542
+ return /*#__PURE__*/css({
12543
+ display: 'inline-flex',
12544
+ alignItems: 'center',
12545
+ justifyContent: 'center',
12546
+ border: "1px solid ".concat(theme.colors.actionDefaultBorderDefault),
12547
+ borderRadius: theme.general.borderRadiusBase,
12548
+ backgroundColor: 'transparent',
12549
+ color: theme.colors.actionDefaultTextDefault,
12550
+ height: theme.general.heightSm,
12551
+ padding: '0 12px',
12552
+ fontSize: theme.typography.fontSizeBase,
12553
+ lineHeight: "".concat(theme.typography.lineHeightBase, "px"),
12554
+ '&[data-state="on"]': {
12555
+ backgroundColor: theme.colors.actionDefaultBackgroundPress,
12556
+ color: theme.colors.actionDefaultTextPress,
12557
+ borderColor: theme.colors.actionDefaultBorderPress
12558
+ },
12559
+ '&:hover': {
12560
+ cursor: 'pointer',
12561
+ color: theme.colors.actionDefaultTextHover,
12562
+ backgroundColor: theme.colors.actionDefaultBackgroundHover,
12563
+ borderColor: theme.colors.actionDefaultBorderHover
12564
+ },
12565
+ '&:disabled': {
12566
+ cursor: 'default',
12567
+ border: 'transparent',
12568
+ color: theme.colors.actionDisabledText,
12569
+ backgroundColor: theme.colors.actionDisabledBackground
12570
+ }
12571
+ }, process.env.NODE_ENV === "production" ? "" : ";label:getStyles;");
12572
+ };
12573
+ const ToggleButton = /*#__PURE__*/forwardRef((_ref, ref) => {
12574
+ let {
12575
+ children,
12576
+ pressed,
12577
+ defaultPressed,
12578
+ ...props
12579
+ } = _ref;
12580
+ const {
12581
+ theme
12582
+ } = useDesignSystemTheme();
12583
+ const [isPressed, setIsPressed] = React__default.useState(defaultPressed);
12584
+ useEffect(() => {
12585
+ setIsPressed(pressed);
12586
+ }, [pressed]);
12587
+ return jsxs(Toggle.Root, {
12588
+ css: getStyles(theme),
12589
+ ...props,
12590
+ pressed: isPressed,
12591
+ onPressedChange: pressed => {
12592
+ var _props$onPressedChang;
12593
+ (_props$onPressedChang = props.onPressedChange) === null || _props$onPressedChang === void 0 ? void 0 : _props$onPressedChang.call(props, pressed);
12594
+ setIsPressed(pressed);
12595
+ },
12596
+ ref: ref,
12597
+ children: [isPressed && jsx(CheckIcon, {
12598
+ css: /*#__PURE__*/css({
12599
+ marginRight: theme.spacing.xs
12600
+ }, process.env.NODE_ENV === "production" ? "" : ";label:ToggleButton;")
12601
+ }), children]
12602
+ });
12603
+ });
12604
+
13490
12605
  /**
13491
12606
  * These styles share some aspects with the styles in the main `Checkbox.tsx` component.
13492
12607
  * However, due to significant differences in the internal implementation and DOM structure of the Tree Checkbox and the
@@ -13770,5 +12885,5 @@ const Tree = /*#__PURE__*/forwardRef(function Tree(_ref, ref) {
13770
12885
  });
13771
12886
  });
13772
12887
 
13773
- export { Accordion, AccordionPanel, Alert, AlignCenterIcon, AlignLeftIcon, AlignRightIcon, AppIcon, BracketsSquareIcon as ArrayIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, ArrowsUpDownIcon, AutoComplete, BarChartIcon, BeakerIcon, BinaryIcon, BoldIcon, BookIcon, BookmarkIcon as BookmarkBorderIcon, BookmarkFillIcon, BookmarkIcon, BracketsCurlyIcon, BracketsCurlyIcon as BracketsIcon, BracketsSquareIcon, BracketsXIcon, Breadcrumb, BriefcaseFillIcon, BriefcaseIcon, Button, CalendarEventIcon, CalendarIcon, CaretDownSquareIcon, CaretUpSquareIcon, CatalogIcon, ChartLineIcon, CheckCircleIcon as CheckCircleBorderIcon, CheckCircleFillIcon, CheckCircleIcon, CheckIcon, CheckLineIcon, ChecklistIcon, ChevronDoubleDownIcon, ChevronDoubleLeftIcon, ChevronDoubleRightIcon, ChevronDoubleUpIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CircleIcon, ClipboardIcon, ClockIcon, CloseIcon, CloudDownloadIcon, CloudIcon, CloudKeyIcon, CloudModelIcon, CloudOffIcon, CloudUploadIcon, TreeIcon as ClusterIcon, TreeIcon as ClustersIcon, CodeIcon, Col, ColorFillIcon, ConnectIcon, Content, CopyIcon, CursorIcon, DIcon, DagIcon, DangerFillIcon, DangerIcon, DangerModal, DashIcon, DashboardIcon, DataIcon, StorefrontIcon as DataMarketplace, DatabaseIcon, DecimalIcon, DotsCircleIcon, DownloadIcon, DragIcon, Drawer, Dropdown, DropdownMenu, DuboisDatePicker, Empty, DangerIcon as ErrorBorderIcon, DangerFillIcon as ErrorFillIcon, ExpandLessIcon, ExpandMoreIcon, BeakerIcon as ExperimentIcon, FileCodeIcon, FileDocumentIcon, FileIcon, FileImageIcon, FileModelIcon, FilterIcon, FolderIcon as Folder1Icon, FolderFillIcon, FolderIcon, FontIcon, ForkIcon, Form, FormDubois, FormUI, FullscreenExitIcon, FullscreenIcon, GearIcon as Gear1Icon, GearFillIcon, GearIcon, GiftIcon, GridDashIcon, GridIcon, H1Icon, H2Icon, H3Icon, Header$1 as Header, HistoryIcon, HomeIcon, ImageIcon, IndentDecreaseIcon, IndentIncreaseIcon, InfinityIcon, InfoIcon as InfoBorderIcon, InfoFillIcon, InfoIcon, Input, ItalicIcon, KeyboardIcon, LayerIcon, Layout, LegacyDatePicker, LettersIcon, QuestionMarkIcon as LifesaverIcon, LightningIcon, LinkIcon, LinkOffIcon, LinkOffIcon as LinkRemoveIcon, ListBorderIcon, ListIcon, LoadingIcon, LockIcon as LockBorderIcon, LockFillIcon, LockIcon, LockUnlockedIcon, MIcon, Menu, MenuIcon, MinusBoxIcon, MinusCircleIcon as MinusCircleBorderIcon, MinusCircleFillIcon, MinusCircleIcon, Modal, ModelsIcon, Nav, NavButton, NoIcon, NotebookIcon, NotificationIcon, NotificationOffIcon, NotificationV2, NotificationOffIcon as NotificationsOffIcon, NumbersIcon, OfficeIcon, OptGroup, Option, OverflowIcon, PageBottomIcon, PageFirstIcon, PageLastIcon, PageTopIcon, PageWrapper, Pagination, Panel, PanelBody, PanelHeader, PanelHeaderButtons, PanelHeaderTitle, PencilIcon, PinIcon as PinBorderIcon, PinCancelIcon, PinFillIcon, PinIcon, PlayCircleIcon as PlayCircleBorderIcon, PlayCircleFillIcon, PlayCircleIcon, PlayIcon, PlugIcon, PlusCircleIcon as PlusCircleBorderIcon, PlusCircleFillIcon, PlusCircleIcon, PlusIcon, PlusSquareIcon, Popover, PopoverV2, QueryEditorIcon, QueryIcon, QueryIcon as QueryListViewIcon, QueryIcon as QueryNavIcon, QuestionMarkIcon as QuestionMarkBorderIcon, QuestionMarkFillIcon, QuestionMarkIcon, RHFControlledComponents, ROW_GUTTER_SIZE, Radio, ReaderModeIcon, RedoIcon as Redo, RedoIcon, RefreshIcon as Refresh, RefreshIcon, ReposIcon, Row, SaveIcon, SchoolIcon, SearchIcon as Search1Icon, SearchIcon, SecurityIcon, SegmentedControlButton, SegmentedControlGroup, Select, ShareIcon, Sidebar, SidebarAutoIcon, SidebarCollapseIcon, SidebarExpandIcon, SidebarIcon, Skeleton, SlidersIcon, Space, Spacer, SpeechBubbleIcon, SpeechBubblePlusIcon, Spinner, SplitButton, StarIcon as StarBorderIcon, StarFillIcon, StarIcon, StopCircleIcon as StopCircleBorderIcon, StopCircleFillIcon, StopCircleIcon, StopCircleFillIcon as StopCricleFillIcon, StopIcon, StorefrontIcon, StreamIcon, Switch, SyncIcon, TabPane, Table, TableIcon, Tabs, Tag, Tooltip, TrashIcon, Tree, TreeIcon, UnderlineIcon, UndoIcon as Undo, UndoIcon, UploadIcon, UsbIcon, UserBadgeIcon, UserCircleIcon, UserGroupIcon, UserIcon, VariableIcon, VisibleIcon as Visible, VisibleIcon, VisibleOffIcon as VisibleOff, VisibleOffIcon, WarningIcon as WarningBorderIcon, WarningFillIcon, WarningIcon, WorkspacesIcon, XCircleIcon as XCircleBorderIcon, XCircleFillIcon, XCircleIcon, ZoomInIcon, ZoomOutIcon, __INTERNAL_DO_NOT_USE_DEDUPE__Group, __INTERNAL_DO_NOT_USE__FormItem, __INTERNAL_DO_NOT_USE__HorizontalGroup, __INTERNAL_DO_NOT_USE__Password, __INTERNAL_DO_NOT_USE__TextArea, __INTERNAL_DO_NOT_USE__VerticalGroup, getButtonEmotionStyles, getPaginationEmotionStyles, getRadioStyles, getTabEmotionStyles, useNotification, useThemedStyles, withNotifications };
12888
+ export { Accordion, AccordionPanel, Alert, AlignCenterIcon, AlignLeftIcon, AlignRightIcon, AppIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, ArrowsUpDownIcon, AutoComplete, BarChartIcon, BeakerIcon, BinaryIcon, BoldIcon, BookIcon, BookmarkFillIcon, BookmarkIcon, BracketsCurlyIcon, BracketsSquareIcon, BracketsXIcon, Breadcrumb, BriefcaseFillIcon, BriefcaseIcon, CalendarEventIcon, CalendarIcon, CaretDownSquareIcon, CaretUpSquareIcon, CatalogIcon, ChartLineIcon, CheckCircleFillIcon, CheckCircleIcon, CheckLineIcon, ChecklistIcon, ChevronDoubleDownIcon, ChevronDoubleLeftIcon, ChevronDoubleRightIcon, ChevronDoubleUpIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CircleIcon, ClipboardIcon, ClockIcon, CloudDownloadIcon, CloudIcon, CloudKeyIcon, CloudModelIcon, CloudOffIcon, CloudUploadIcon, CodeIcon, Col, ColorFillIcon, ConnectIcon, Content, CopyIcon, CursorIcon, DIcon, DagIcon, DangerFillIcon, DangerIcon, DangerModal, DashIcon, DashboardIcon, DataIcon, DatabaseIcon, DecimalIcon, DotsCircleIcon, DownloadIcon, DragIcon, Drawer, Dropdown, DropdownMenu, DuboisDatePicker, Empty, ExpandLessIcon, ExpandMoreIcon, FileCodeIcon, FileDocumentIcon, FileIcon, FileImageIcon, FileModelIcon, FilterIcon, FolderFillIcon, FolderIcon, FontIcon, ForkIcon, Form, FormDubois, FormUI, FullscreenExitIcon, FullscreenIcon, GearFillIcon, GearIcon, GiftIcon, GridDashIcon, GridIcon, H1Icon, H2Icon, H3Icon, Header$1 as Header, HistoryIcon, HomeIcon, ImageIcon, IndentDecreaseIcon, IndentIncreaseIcon, InfinityIcon, InfoFillIcon, InfoIcon, ItalicIcon, KeyboardIcon, LayerIcon, Layout, LegacyDatePicker, LegacyTable, LettersIcon, LightningIcon, LinkIcon, LinkOffIcon, ListBorderIcon, ListIcon, LockFillIcon, LockIcon, LockUnlockedIcon, MIcon, Menu, MenuIcon, MinusBoxIcon, MinusCircleFillIcon, MinusCircleIcon, Modal, ModelsIcon, Nav, NavButton, NoIcon, NotebookIcon, NotificationIcon, NotificationOffIcon, NotificationV2, NumbersIcon, OfficeIcon, OptGroup, Option, OverflowIcon, PageBottomIcon, PageFirstIcon, PageLastIcon, PageTopIcon, PageWrapper, Pagination, Panel, PanelBody, PanelHeader, PanelHeaderButtons, PanelHeaderTitle, PencilIcon, PinCancelIcon, PinFillIcon, PinIcon, PlayCircleFillIcon, PlayCircleIcon, PlayIcon, PlugIcon, PlusCircleFillIcon, PlusCircleIcon, PlusIcon, PlusSquareIcon, Popover, PopoverV2, QueryEditorIcon, QueryIcon, QuestionMarkFillIcon, QuestionMarkIcon, RHFControlledComponents, ROW_GUTTER_SIZE, Radio, ReaderModeIcon, RedoIcon, RefreshIcon, ReposIcon, Row, SaveIcon, SchoolIcon, SecurityIcon, SegmentedControlButton, SegmentedControlGroup, Select, ShareIcon, Sidebar, SidebarAutoIcon, SidebarCollapseIcon, SidebarExpandIcon, SidebarIcon, Skeleton, SlidersIcon, Space, Spacer, SpeechBubbleIcon, SpeechBubblePlusIcon, SplitButton, StarFillIcon, StarIcon, StopCircleFillIcon, StopCircleIcon, StopIcon, StorefrontIcon, StreamIcon, Switch, SyncIcon, TabPane, Table, TableIcon, Tabs, Tag, ToggleButton, TrashIcon, Tree, TreeIcon, UnderlineIcon, UndoIcon, UploadIcon, UsbIcon, UserBadgeIcon, UserCircleIcon, UserGroupIcon, UserIcon, VariableIcon, VisibleIcon, VisibleOffIcon, WarningFillIcon, WarningIcon, WorkspacesIcon, XCircleIcon, ZoomInIcon, ZoomOutIcon, __INTERNAL_DO_NOT_USE__FormItem, __INTERNAL_DO_NOT_USE__HorizontalGroup, __INTERNAL_DO_NOT_USE__VerticalGroup, getPaginationEmotionStyles, getRadioStyles, getTabEmotionStyles, useNotification, useThemedStyles, withNotifications };
13774
12889
  //# sourceMappingURL=index.js.map