@databricks/design-system 1.9.2 → 1.10.0

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 (195) 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/index.d.ts +1 -1
  33. package/dist/design-system/index.d.ts.map +1 -1
  34. package/dist/development/Filter/Filter.d.ts +10 -0
  35. package/dist/development/Filter/Filter.d.ts.map +1 -0
  36. package/dist/development/Filter/Filter.test.d.ts +2 -0
  37. package/dist/development/Filter/Filter.test.d.ts.map +1 -0
  38. package/dist/development/Filter/FilterButtonContainer.d.ts +2 -0
  39. package/dist/development/Filter/FilterButtonContainer.d.ts.map +1 -0
  40. package/dist/development/Filter/FilterContent.d.ts +14 -0
  41. package/dist/development/Filter/FilterContent.d.ts.map +1 -0
  42. package/dist/development/Filter/FilterCountBadge.d.ts +2 -0
  43. package/dist/development/Filter/FilterCountBadge.d.ts.map +1 -0
  44. package/dist/development/Filter/FilterLoadingSpinner.d.ts +2 -0
  45. package/dist/development/Filter/FilterLoadingSpinner.d.ts.map +1 -0
  46. package/dist/development/Filter/FilterOptionControlledList.d.ts +9 -0
  47. package/dist/development/Filter/FilterOptionControlledList.d.ts.map +1 -0
  48. package/dist/development/Filter/FilterOptionList.d.ts +10 -0
  49. package/dist/development/Filter/FilterOptionList.d.ts.map +1 -0
  50. package/dist/development/Filter/FilterOptionListCheckboxItem.d.ts +11 -0
  51. package/dist/development/Filter/FilterOptionListCheckboxItem.d.ts.map +1 -0
  52. package/dist/development/Filter/FilterOptionListSearch.d.ts +7 -0
  53. package/dist/development/Filter/FilterOptionListSearch.d.ts.map +1 -0
  54. package/dist/development/Filter/FilterOptionListSelectItem.d.ts +10 -0
  55. package/dist/development/Filter/FilterOptionListSelectItem.d.ts.map +1 -0
  56. package/dist/development/Filter/FilterSectionHeader.d.ts +2 -0
  57. package/dist/development/Filter/FilterSectionHeader.d.ts.map +1 -0
  58. package/dist/development/Filter/FilterSeparator.d.ts +2 -0
  59. package/dist/development/Filter/FilterSeparator.d.ts.map +1 -0
  60. package/dist/development/Filter/FilterTrigger.d.ts +15 -0
  61. package/dist/development/Filter/FilterTrigger.d.ts.map +1 -0
  62. package/dist/development/Filter/hooks/useFilterContext.d.ts +2 -0
  63. package/dist/development/Filter/hooks/useFilterContext.d.ts.map +1 -0
  64. package/dist/development/Filter/hooks/useFilterOptionListContext.d.ts +2 -0
  65. package/dist/development/Filter/hooks/useFilterOptionListContext.d.ts.map +1 -0
  66. package/dist/development/Filter/index.d.ts +14 -0
  67. package/dist/development/Filter/index.d.ts.map +1 -0
  68. package/dist/development/Filter/providers/FilterContext.d.ts +15 -0
  69. package/dist/development/Filter/providers/FilterContext.d.ts.map +1 -0
  70. package/dist/development/Filter/providers/FilterOptionListContext.d.ts +10 -0
  71. package/dist/development/Filter/providers/FilterOptionListContext.d.ts.map +1 -0
  72. package/dist/development/Filter/shared.d.ts +3 -0
  73. package/dist/development/Filter/shared.d.ts.map +1 -0
  74. package/dist/development/TableUI/index.d.ts +19 -0
  75. package/dist/development/TableUI/index.d.ts.map +1 -1
  76. package/dist/development/index.d.ts +1 -0
  77. package/dist/development/index.d.ts.map +1 -1
  78. package/dist/development.js +1052 -52
  79. package/dist/development.js.map +1 -1
  80. package/dist/index.js +573 -1523
  81. package/dist/index.js.map +1 -1
  82. package/dist/test-utils/common.d.ts +11 -0
  83. package/dist/test-utils/common.d.ts.map +1 -0
  84. package/dist/test-utils/enzyme/index.d.ts +1 -0
  85. package/dist/test-utils/enzyme/index.d.ts.map +1 -1
  86. package/dist/test-utils/enzyme/selectEvent.d.ts +42 -0
  87. package/dist/test-utils/enzyme/selectEvent.d.ts.map +1 -0
  88. package/dist/test-utils/enzyme/selectEvent.test.d.ts +2 -0
  89. package/dist/test-utils/enzyme/selectEvent.test.d.ts.map +1 -0
  90. package/dist/test-utils/enzyme/utils.d.ts +33 -0
  91. package/dist/test-utils/enzyme/utils.d.ts.map +1 -0
  92. package/dist/test-utils/enzyme.js +258 -1
  93. package/dist/test-utils/enzyme.js.map +1 -1
  94. package/dist/test-utils/rtl/index.d.ts +1 -0
  95. package/dist/test-utils/rtl/index.d.ts.map +1 -1
  96. package/dist/test-utils/rtl/selectEvent.d.ts +41 -0
  97. package/dist/test-utils/rtl/selectEvent.d.ts.map +1 -0
  98. package/dist/test-utils/rtl/selectEvent.test.d.ts +2 -0
  99. package/dist/test-utils/rtl/selectEvent.test.d.ts.map +1 -0
  100. package/dist/test-utils/rtl.js +135 -1
  101. package/dist/test-utils/rtl.js.map +1 -1
  102. package/dist/test-utils/types.d.ts +1 -14
  103. package/dist/test-utils/types.d.ts.map +1 -1
  104. package/dist/theme/colorList.d.ts +6 -7
  105. package/dist/theme/colorList.d.ts.map +1 -1
  106. package/dist/theme/colors.d.ts +6 -7
  107. package/dist/theme/colors.d.ts.map +1 -1
  108. package/package.json +5 -4
  109. package/dist/Typography-04e40f87.js +0 -1465
  110. package/dist/Typography-04e40f87.js.map +0 -1
  111. package/dist/Typography-52abe0b7.js +0 -1142
  112. package/dist/Typography-52abe0b7.js.map +0 -1
  113. package/dist/Typography-74e19785.js.map +0 -1
  114. package/dist/Typography-84a00e02.js +0 -1465
  115. package/dist/Typography-84a00e02.js.map +0 -1
  116. package/dist/design-system/Icon/__generated/icons/ArrayIcon.v2.d.ts +0 -4
  117. package/dist/design-system/Icon/__generated/icons/ArrayIcon.v2.d.ts.map +0 -1
  118. package/dist/design-system/Icon/__generated/icons/BookmarkBorderIcon.d.ts +0 -4
  119. package/dist/design-system/Icon/__generated/icons/BookmarkBorderIcon.d.ts.map +0 -1
  120. package/dist/design-system/Icon/__generated/icons/BracketsIcon.v2.d.ts +0 -4
  121. package/dist/design-system/Icon/__generated/icons/BracketsIcon.v2.d.ts.map +0 -1
  122. package/dist/design-system/Icon/__generated/icons/CheckCircleBorderIcon.d.ts +0 -4
  123. package/dist/design-system/Icon/__generated/icons/CheckCircleBorderIcon.d.ts.map +0 -1
  124. package/dist/design-system/Icon/__generated/icons/ClusterIcon.d.ts +0 -4
  125. package/dist/design-system/Icon/__generated/icons/ClusterIcon.d.ts.map +0 -1
  126. package/dist/design-system/Icon/__generated/icons/ClustersIcon.d.ts +0 -4
  127. package/dist/design-system/Icon/__generated/icons/ClustersIcon.d.ts.map +0 -1
  128. package/dist/design-system/Icon/__generated/icons/DataMarketplace.v2.d.ts +0 -4
  129. package/dist/design-system/Icon/__generated/icons/DataMarketplace.v2.d.ts.map +0 -1
  130. package/dist/design-system/Icon/__generated/icons/ErrorBorderIcon.d.ts +0 -4
  131. package/dist/design-system/Icon/__generated/icons/ErrorBorderIcon.d.ts.map +0 -1
  132. package/dist/design-system/Icon/__generated/icons/ErrorFillIcon.d.ts +0 -4
  133. package/dist/design-system/Icon/__generated/icons/ErrorFillIcon.d.ts.map +0 -1
  134. package/dist/design-system/Icon/__generated/icons/ExperimentIcon.d.ts +0 -4
  135. package/dist/design-system/Icon/__generated/icons/ExperimentIcon.d.ts.map +0 -1
  136. package/dist/design-system/Icon/__generated/icons/Folder1Icon.d.ts +0 -4
  137. package/dist/design-system/Icon/__generated/icons/Folder1Icon.d.ts.map +0 -1
  138. package/dist/design-system/Icon/__generated/icons/Gear1Icon.d.ts +0 -4
  139. package/dist/design-system/Icon/__generated/icons/Gear1Icon.d.ts.map +0 -1
  140. package/dist/design-system/Icon/__generated/icons/InfoBorderIcon.d.ts +0 -4
  141. package/dist/design-system/Icon/__generated/icons/InfoBorderIcon.d.ts.map +0 -1
  142. package/dist/design-system/Icon/__generated/icons/LifesaverIcon.d.ts +0 -4
  143. package/dist/design-system/Icon/__generated/icons/LifesaverIcon.d.ts.map +0 -1
  144. package/dist/design-system/Icon/__generated/icons/LinkRemoveIcon.d.ts +0 -4
  145. package/dist/design-system/Icon/__generated/icons/LinkRemoveIcon.d.ts.map +0 -1
  146. package/dist/design-system/Icon/__generated/icons/LockBorderIcon.d.ts +0 -4
  147. package/dist/design-system/Icon/__generated/icons/LockBorderIcon.d.ts.map +0 -1
  148. package/dist/design-system/Icon/__generated/icons/MinusCircleBorderIcon.d.ts +0 -4
  149. package/dist/design-system/Icon/__generated/icons/MinusCircleBorderIcon.d.ts.map +0 -1
  150. package/dist/design-system/Icon/__generated/icons/NotificationsOffIcon.v2.d.ts +0 -4
  151. package/dist/design-system/Icon/__generated/icons/NotificationsOffIcon.v2.d.ts.map +0 -1
  152. package/dist/design-system/Icon/__generated/icons/PinBorderIcon.d.ts +0 -4
  153. package/dist/design-system/Icon/__generated/icons/PinBorderIcon.d.ts.map +0 -1
  154. package/dist/design-system/Icon/__generated/icons/PlayCircleBorderIcon.d.ts +0 -4
  155. package/dist/design-system/Icon/__generated/icons/PlayCircleBorderIcon.d.ts.map +0 -1
  156. package/dist/design-system/Icon/__generated/icons/PlusCircleBorderIcon.d.ts +0 -4
  157. package/dist/design-system/Icon/__generated/icons/PlusCircleBorderIcon.d.ts.map +0 -1
  158. package/dist/design-system/Icon/__generated/icons/QueryListViewIcon.d.ts +0 -4
  159. package/dist/design-system/Icon/__generated/icons/QueryListViewIcon.d.ts.map +0 -1
  160. package/dist/design-system/Icon/__generated/icons/QueryNavIcon.d.ts +0 -4
  161. package/dist/design-system/Icon/__generated/icons/QueryNavIcon.d.ts.map +0 -1
  162. package/dist/design-system/Icon/__generated/icons/QuestionMarkBorderIcon.d.ts +0 -4
  163. package/dist/design-system/Icon/__generated/icons/QuestionMarkBorderIcon.d.ts.map +0 -1
  164. package/dist/design-system/Icon/__generated/icons/Redo.d.ts +0 -4
  165. package/dist/design-system/Icon/__generated/icons/Redo.d.ts.map +0 -1
  166. package/dist/design-system/Icon/__generated/icons/RedoIcon.v2.d.ts +0 -4
  167. package/dist/design-system/Icon/__generated/icons/RedoIcon.v2.d.ts.map +0 -1
  168. package/dist/design-system/Icon/__generated/icons/Refresh.d.ts +0 -4
  169. package/dist/design-system/Icon/__generated/icons/Refresh.d.ts.map +0 -1
  170. package/dist/design-system/Icon/__generated/icons/Refresh.v2.d.ts +0 -4
  171. package/dist/design-system/Icon/__generated/icons/Refresh.v2.d.ts.map +0 -1
  172. package/dist/design-system/Icon/__generated/icons/RefreshIcon.v2.d.ts +0 -4
  173. package/dist/design-system/Icon/__generated/icons/RefreshIcon.v2.d.ts.map +0 -1
  174. package/dist/design-system/Icon/__generated/icons/Search1Icon.d.ts +0 -4
  175. package/dist/design-system/Icon/__generated/icons/Search1Icon.d.ts.map +0 -1
  176. package/dist/design-system/Icon/__generated/icons/StarBorderIcon.d.ts +0 -4
  177. package/dist/design-system/Icon/__generated/icons/StarBorderIcon.d.ts.map +0 -1
  178. package/dist/design-system/Icon/__generated/icons/StopCircleBorderIcon.d.ts +0 -4
  179. package/dist/design-system/Icon/__generated/icons/StopCircleBorderIcon.d.ts.map +0 -1
  180. package/dist/design-system/Icon/__generated/icons/StopCricleFillIcon.d.ts +0 -4
  181. package/dist/design-system/Icon/__generated/icons/StopCricleFillIcon.d.ts.map +0 -1
  182. package/dist/design-system/Icon/__generated/icons/Undo.d.ts +0 -4
  183. package/dist/design-system/Icon/__generated/icons/Undo.d.ts.map +0 -1
  184. package/dist/design-system/Icon/__generated/icons/Visible.d.ts +0 -4
  185. package/dist/design-system/Icon/__generated/icons/Visible.d.ts.map +0 -1
  186. package/dist/design-system/Icon/__generated/icons/VisibleOff.d.ts +0 -4
  187. package/dist/design-system/Icon/__generated/icons/VisibleOff.d.ts.map +0 -1
  188. package/dist/design-system/Icon/__generated/icons/WarningBorderIcon.d.ts +0 -4
  189. package/dist/design-system/Icon/__generated/icons/WarningBorderIcon.d.ts.map +0 -1
  190. package/dist/design-system/Icon/__generated/icons/XCircleBorderIcon.d.ts +0 -4
  191. package/dist/design-system/Icon/__generated/icons/XCircleBorderIcon.d.ts.map +0 -1
  192. package/dist/test-utils/enzyme.d.ts +0 -8
  193. package/dist/test-utils/enzyme.d.ts.map +0 -1
  194. package/dist/test-utils/rtl.d.ts +0 -7
  195. 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,6 @@ 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';
18
17
  import 'lodash/isNil';
19
18
  import 'lodash/endsWith';
20
19
  import 'lodash/isBoolean';
@@ -22,6 +21,7 @@ import 'lodash/isNumber';
22
21
  import 'lodash/isString';
23
22
  import 'lodash/mapValues';
24
23
  import '@emotion/unitless';
24
+ import 'chroma-js';
25
25
 
26
26
  /**
27
27
  * A helper hook that allows quick creation of theme-dependent styles.
@@ -969,47 +969,6 @@ function CheckCircleIcon(props) {
969
969
  });
970
970
  }
971
971
 
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
972
  function SvgCheckLineIconV1(props) {
1014
973
  return jsx("svg", {
1015
974
  width: "1em",
@@ -1268,47 +1227,6 @@ function ChevronDoubleUpIcon(props) {
1268
1227
  });
1269
1228
  }
1270
1229
 
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
1230
  function SvgChevronLeftIconV1(props) {
1313
1231
  return jsx("svg", {
1314
1232
  width: "1em",
@@ -1560,47 +1478,6 @@ function ClockIcon(props) {
1560
1478
  });
1561
1479
  }
1562
1480
 
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
1481
  function SvgCloudDownloadIconV1(props) {
1605
1482
  return jsx("svg", {
1606
1483
  width: "1em",
@@ -3808,49 +3685,6 @@ function ListIcon(props) {
3808
3685
  });
3809
3686
  }
3810
3687
 
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
3688
  function SvgLockFillIconV1(props) {
3855
3689
  return jsx("svg", {
3856
3690
  width: "1em",
@@ -5536,60 +5370,6 @@ function SchoolIcon(props) {
5536
5370
  });
5537
5371
  }
5538
5372
 
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
5373
  function SvgSecurityIconV1(props) {
5594
5374
  return jsx("svg", {
5595
5375
  width: "1em",
@@ -6934,49 +6714,6 @@ function WarningIcon(props) {
6934
6714
  });
6935
6715
  }
6936
6716
 
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
6717
  function SvgXCircleIconV1(props) {
6981
6718
  return jsx("svg", {
6982
6719
  width: "1em",
@@ -8202,455 +7939,22 @@ const Breadcrumb = /* #__PURE__ */(() => {
8202
7939
  return Breadcrumb;
8203
7940
  })();
8204
7941
 
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
7942
+ function getEmotionStyles(clsPrefix, theme) {
7943
+ const classFocused = ".".concat(clsPrefix, "-focused");
7944
+ const classActiveBar = ".".concat(clsPrefix, "-active-bar");
7945
+ const classSeparator = ".".concat(clsPrefix, "-separator");
7946
+ const classSuffix = ".".concat(clsPrefix, "-suffix");
7947
+ const styles = {
7948
+ height: 32,
7949
+ borderRadius: theme.borders.borderRadiusMd,
7950
+ borderColor: theme.colors.border,
7951
+ color: theme.colors.textPrimary,
7952
+ transition: 'border 0s, box-shadow 0s',
7953
+ ["&".concat(classFocused, ",:hover")]: {
7954
+ borderColor: theme.colors.actionDefaultBorderHover
8215
7955
  },
8216
7956
  '&: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
7957
+ borderColor: theme.colors.actionDefaultBorderPress
8654
7958
  },
8655
7959
  ["&".concat(classFocused)]: {
8656
7960
  boxShadow: "none !important",
@@ -8679,7 +7983,7 @@ function useDatePickerStyles() {
8679
7983
  const clsPrefix = getPrefixedClassName('picker');
8680
7984
  return getEmotionStyles(clsPrefix, theme);
8681
7985
  }
8682
- const DuboisDatePicker = props => {
7986
+ const DuboisDatePicker = /*#__PURE__*/forwardRef((props, ref) => {
8683
7987
  const styles = useDatePickerStyles();
8684
7988
  const {
8685
7989
  theme
@@ -8687,6 +7991,7 @@ const DuboisDatePicker = props => {
8687
7991
  return jsx(DesignSystemAntDConfigProvider, {
8688
7992
  children: jsx(DatePicker, {
8689
7993
  css: styles,
7994
+ ref: ref,
8690
7995
  ...props,
8691
7996
  popupStyle: {
8692
7997
  ...getDropdownStyles$1(theme),
@@ -8694,8 +7999,8 @@ const DuboisDatePicker = props => {
8694
7999
  }
8695
8000
  })
8696
8001
  });
8697
- };
8698
- const RangePicker = props => {
8002
+ });
8003
+ const RangePicker = /*#__PURE__*/forwardRef((props, ref) => {
8699
8004
  const styles = useDatePickerStyles();
8700
8005
  const {
8701
8006
  theme
@@ -8704,14 +8009,15 @@ const RangePicker = props => {
8704
8009
  children: jsx(DatePicker.RangePicker, {
8705
8010
  css: styles,
8706
8011
  ...props,
8012
+ ref: ref,
8707
8013
  popupStyle: {
8708
8014
  ...getDropdownStyles$1(theme),
8709
8015
  ...(props.popupStyle || {})
8710
8016
  }
8711
8017
  })
8712
8018
  });
8713
- };
8714
- const TimePicker = props => {
8019
+ });
8020
+ const TimePicker = /*#__PURE__*/forwardRef((props, ref) => {
8715
8021
  const styles = useDatePickerStyles();
8716
8022
  const {
8717
8023
  theme
@@ -8720,14 +8026,15 @@ const TimePicker = props => {
8720
8026
  children: jsx(DatePicker.TimePicker, {
8721
8027
  css: styles,
8722
8028
  ...props,
8029
+ ref: ref,
8723
8030
  popupStyle: {
8724
8031
  ...getDropdownStyles$1(theme),
8725
8032
  ...(props.popupStyle || {})
8726
8033
  }
8727
8034
  })
8728
8035
  });
8729
- };
8730
- const QuarterPicker = props => {
8036
+ });
8037
+ const QuarterPicker = /*#__PURE__*/forwardRef((props, ref) => {
8731
8038
  const styles = useDatePickerStyles();
8732
8039
  const {
8733
8040
  theme
@@ -8736,14 +8043,15 @@ const QuarterPicker = props => {
8736
8043
  children: jsx(DatePicker.QuarterPicker, {
8737
8044
  css: styles,
8738
8045
  ...props,
8046
+ ref: ref,
8739
8047
  popupStyle: {
8740
8048
  ...getDropdownStyles$1(theme),
8741
8049
  ...(props.popupStyle || {})
8742
8050
  }
8743
8051
  })
8744
8052
  });
8745
- };
8746
- const WeekPicker = props => {
8053
+ });
8054
+ const WeekPicker = /*#__PURE__*/forwardRef((props, ref) => {
8747
8055
  const styles = useDatePickerStyles();
8748
8056
  const {
8749
8057
  theme
@@ -8752,14 +8060,15 @@ const WeekPicker = props => {
8752
8060
  children: jsx(DatePicker.WeekPicker, {
8753
8061
  css: styles,
8754
8062
  ...props,
8063
+ ref: ref,
8755
8064
  popupStyle: {
8756
8065
  ...getDropdownStyles$1(theme),
8757
8066
  ...(props.popupStyle || {})
8758
8067
  }
8759
8068
  })
8760
8069
  });
8761
- };
8762
- const MonthPicker = props => {
8070
+ });
8071
+ const MonthPicker = /*#__PURE__*/forwardRef((props, ref) => {
8763
8072
  const styles = useDatePickerStyles();
8764
8073
  const {
8765
8074
  theme
@@ -8768,14 +8077,15 @@ const MonthPicker = props => {
8768
8077
  children: jsx(DatePicker.MonthPicker, {
8769
8078
  css: styles,
8770
8079
  ...props,
8080
+ ref: ref,
8771
8081
  popupStyle: {
8772
8082
  ...getDropdownStyles$1(theme),
8773
8083
  ...(props.popupStyle || {})
8774
8084
  }
8775
8085
  })
8776
8086
  });
8777
- };
8778
- const YearPicker = props => {
8087
+ });
8088
+ const YearPicker = /*#__PURE__*/forwardRef((props, ref) => {
8779
8089
  const styles = useDatePickerStyles();
8780
8090
  const {
8781
8091
  theme
@@ -8784,13 +8094,14 @@ const YearPicker = props => {
8784
8094
  children: jsx(DatePicker.YearPicker, {
8785
8095
  css: styles,
8786
8096
  ...props,
8097
+ ref: ref,
8787
8098
  popupStyle: {
8788
8099
  ...getDropdownStyles$1(theme),
8789
8100
  ...(props.popupStyle || {})
8790
8101
  }
8791
8102
  })
8792
8103
  });
8793
- };
8104
+ });
8794
8105
 
8795
8106
  /**
8796
8107
  * `LegacyDatePicker` was added as a temporary solution pending an
@@ -8852,20 +8163,20 @@ const Spacer = _ref => {
8852
8163
  });
8853
8164
  };
8854
8165
 
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)."; }
8166
+ 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
8167
  const DEFAULT_WIDTH$1 = 320;
8857
8168
  const MIN_WIDTH = 320;
8858
8169
  const MAX_WIDTH = '90vw';
8859
8170
  const DEFAULT_POSITION = 'right';
8860
8171
  const ZINDEX_OVERLAY = 10;
8861
8172
  const ZINDEX_CONTENT = ZINDEX_OVERLAY + 10;
8862
- var _ref2$2 = process.env.NODE_ENV === "production" ? {
8173
+ var _ref2$1 = process.env.NODE_ENV === "production" ? {
8863
8174
  name: "zh83op",
8864
8175
  styles: "flex-grow:1;margin-bottom:0;margin-top:0;white-space:nowrap;overflow:hidden"
8865
8176
  } : {
8866
8177
  name: "h5yqvj-Content",
8867
8178
  styles: "flex-grow:1;margin-bottom:0;margin-top:0;white-space:nowrap;overflow:hidden;label:Content;",
8868
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$6
8179
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$5
8869
8180
  };
8870
8181
  const Content$4 = _ref => {
8871
8182
  let {
@@ -8875,7 +8186,8 @@ const Content$4 = _ref => {
8875
8186
  width,
8876
8187
  position: positionOverride,
8877
8188
  useCustomScrollBehavior,
8878
- expandContentToFullHeight
8189
+ expandContentToFullHeight,
8190
+ disableOpenAutoFocus
8879
8191
  } = _ref;
8880
8192
  const {
8881
8193
  getPopupContainer
@@ -8945,6 +8257,11 @@ const Content$4 = _ref => {
8945
8257
  justifyContent: 'flex-start'
8946
8258
  },
8947
8259
  ref: contentContainerRef,
8260
+ onOpenAutoFocus: event => {
8261
+ if (disableOpenAutoFocus) {
8262
+ event.preventDefault();
8263
+ }
8264
+ },
8948
8265
  children: jsxs(ApplyDesignSystemContextOverrides, {
8949
8266
  getPopupContainer: () => {
8950
8267
  var _contentContainerRef$;
@@ -8965,7 +8282,7 @@ const Content$4 = _ref => {
8965
8282
  children: [jsx(DialogPrimitive.Title, {
8966
8283
  title: typeof title === 'string' ? title : undefined,
8967
8284
  asChild: typeof title === 'string',
8968
- css: _ref2$2,
8285
+ css: _ref2$1,
8969
8286
  children: typeof title === 'string' ? jsx(Typography.Title, {
8970
8287
  level: 2,
8971
8288
  withoutMargins: true,
@@ -9064,61 +8381,6 @@ const Dropdown = _ref => {
9064
8381
  });
9065
8382
  };
9066
8383
 
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
8384
  const Root$2 = DropdownMenu$1.Root; // Behavioral component only
9123
8385
 
9124
8386
  const Content$3 = /*#__PURE__*/forwardRef(function Content(_ref, ref) {
@@ -9351,7 +8613,7 @@ const RadioItem = /*#__PURE__*/forwardRef(function RadioItem(_ref11, ref) {
9351
8613
  });
9352
8614
 
9353
8615
  // UNWRAPPED RADIX-UI-COMPONENTS
9354
- const Group$2 = DropdownMenu$1.Group;
8616
+ const Group$1 = DropdownMenu$1.Group;
9355
8617
  const RadioGroup = DropdownMenu$1.RadioGroup;
9356
8618
  const Sub = DropdownMenu$1.Sub;
9357
8619
 
@@ -9554,7 +8816,7 @@ var DropdownMenu = /*#__PURE__*/Object.freeze({
9554
8816
  ItemIndicator: ItemIndicator,
9555
8817
  Arrow: Arrow$1,
9556
8818
  RadioItem: RadioItem,
9557
- Group: Group$2,
8819
+ Group: Group$1,
9558
8820
  RadioGroup: RadioGroup,
9559
8821
  Sub: Sub,
9560
8822
  HintColumn: HintColumn,
@@ -9563,7 +8825,7 @@ var DropdownMenu = /*#__PURE__*/Object.freeze({
9563
8825
  dropdownContentStyles: dropdownContentStyles
9564
8826
  });
9565
8827
 
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)."; }
8828
+ 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
8829
  const {
9568
8830
  Title: Title$1,
9569
8831
  Paragraph
@@ -9604,13 +8866,13 @@ function getEmptyDescriptionStyles(theme, clsPrefix) {
9604
8866
  };
9605
8867
  return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getEmptyDescriptionStyles;");
9606
8868
  }
9607
- var _ref$3 = process.env.NODE_ENV === "production" ? {
8869
+ var _ref$2 = process.env.NODE_ENV === "production" ? {
9608
8870
  name: "zl1inp",
9609
8871
  styles: "display:flex;justify-content:center"
9610
8872
  } : {
9611
8873
  name: "11tid6c-Empty",
9612
8874
  styles: "display:flex;justify-content:center;label:Empty;",
9613
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$5
8875
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$4
9614
8876
  };
9615
8877
  const Empty = props => {
9616
8878
  const {
@@ -9627,7 +8889,7 @@ const Empty = props => {
9627
8889
  } = props;
9628
8890
  return jsx("div", {
9629
8891
  ...dataProps,
9630
- css: _ref$3,
8892
+ css: _ref$2,
9631
8893
  children: jsxs("div", {
9632
8894
  css: [getEmptyStyles(theme), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:Empty;"],
9633
8895
  children: [image, title && jsx(Title$1, {
@@ -9856,228 +9118,11 @@ const Label = props => {
9856
9118
  });
9857
9119
  };
9858
9120
 
9859
- const getInputEmotionStyles = (clsPrefix, theme, _ref, useNewIcons, useTransparent) => {
9121
+ const getRadioInputStyles = _ref => {
9860
9122
  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
9123
+ clsPrefix,
9124
+ theme,
9125
+ useNewStyles
10081
9126
  } = _ref;
10082
9127
  return {
10083
9128
  [".".concat(clsPrefix)]: {
@@ -10271,6 +9316,7 @@ const getRadioStyles = _ref5 => {
10271
9316
  };
10272
9317
  const DuboisRadio = /*#__PURE__*/forwardRef(function Radio(_ref6, ref) {
10273
9318
  let {
9319
+ children,
10274
9320
  dangerouslySetAntdProps,
10275
9321
  ...props
10276
9322
  } = _ref6;
@@ -10291,12 +9337,16 @@ const DuboisRadio = /*#__PURE__*/forwardRef(function Radio(_ref6, ref) {
10291
9337
  }),
10292
9338
  ...props,
10293
9339
  ...dangerouslySetAntdProps,
10294
- ref: ref
9340
+ ref: ref,
9341
+ children: jsx(RestoreAntDDefaultClsPrefix, {
9342
+ children: children
9343
+ })
10295
9344
  })
10296
9345
  });
10297
9346
  });
10298
9347
  const StyledRadioGroup = /*#__PURE__*/forwardRef(function StyledRadioGroup(_ref7, ref) {
10299
9348
  let {
9349
+ children,
10300
9350
  dangerouslySetAntdProps,
10301
9351
  ...props
10302
9352
  } = _ref7;
@@ -10319,7 +9369,10 @@ const StyledRadioGroup = /*#__PURE__*/forwardRef(function StyledRadioGroup(_ref7
10319
9369
  useNewStyles: USE_NEW_RADIO_STYLES
10320
9370
  }),
10321
9371
  ...dangerouslySetAntdProps,
10322
- ref: ref
9372
+ ref: ref,
9373
+ children: jsx(RestoreAntDDefaultClsPrefix, {
9374
+ children: children
9375
+ })
10323
9376
  })
10324
9377
  });
10325
9378
  });
@@ -10863,166 +9916,33 @@ const Select = /* #__PURE__ */(() => {
10863
9916
  return DuboisRefForwardedSelect;
10864
9917
  })();
10865
9918
 
10866
- const getSwitchWithLabelStyles = _ref => {
9919
+ function RHFControlledInput(_ref) {
10867
9920
  let {
10868
- clsPrefix,
10869
- theme
9921
+ name,
9922
+ control,
9923
+ rules,
9924
+ ...restProps
10870
9925
  } = _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 => {
9926
+ const {
9927
+ field
9928
+ } = useController({
9929
+ name: name,
9930
+ control: control,
9931
+ rules: rules
9932
+ });
9933
+ return jsx(Input, {
9934
+ ...restProps,
9935
+ ...field,
9936
+ value: field.value,
9937
+ defaultValue: restProps.defaultValue
9938
+ });
9939
+ }
9940
+ function RHFControlledPasswordInput(_ref2) {
10952
9941
  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
9942
+ name,
9943
+ control,
9944
+ rules,
9945
+ ...restProps
11026
9946
  } = _ref2;
11027
9947
  const {
11028
9948
  field
@@ -11100,7 +10020,7 @@ function RHFControlledCheckboxGroup(_ref5) {
11100
10020
  value: field.value
11101
10021
  });
11102
10022
  }
11103
- function RHFControlledRadioGroup(_ref6) {
10023
+ function RHFControlledCheckbox(_ref6) {
11104
10024
  let {
11105
10025
  name,
11106
10026
  control,
@@ -11114,12 +10034,21 @@ function RHFControlledRadioGroup(_ref6) {
11114
10034
  control: control,
11115
10035
  rules: rules
11116
10036
  });
11117
- return jsx(Radio.Group, {
11118
- ...restProps,
11119
- ...field
10037
+ const {
10038
+ theme
10039
+ } = useDesignSystemTheme();
10040
+ return jsx("div", {
10041
+ css: /*#__PURE__*/css({
10042
+ marginTop: theme.spacing.sm
10043
+ }, process.env.NODE_ENV === "production" ? "" : ";label:RHFControlledCheckbox;"),
10044
+ children: jsx(Checkbox, {
10045
+ ...restProps,
10046
+ ...field,
10047
+ checked: field.value
10048
+ })
11120
10049
  });
11121
10050
  }
11122
- function RHFControlledSwitch(_ref7) {
10051
+ function RHFControlledRadioGroup(_ref7) {
11123
10052
  let {
11124
10053
  name,
11125
10054
  control,
@@ -11127,19 +10056,15 @@ function RHFControlledSwitch(_ref7) {
11127
10056
  ...restProps
11128
10057
  } = _ref7;
11129
10058
  const {
11130
- field: {
11131
- value,
11132
- ...restField
11133
- }
10059
+ field
11134
10060
  } = useController({
11135
10061
  name: name,
11136
10062
  control: control,
11137
10063
  rules: rules
11138
10064
  });
11139
- return jsx(Switch, {
10065
+ return jsx(Radio.Group, {
11140
10066
  ...restProps,
11141
- ...restField,
11142
- checked: value
10067
+ ...field
11143
10068
  });
11144
10069
  }
11145
10070
  const RHFControlledComponents = {
@@ -11147,9 +10072,9 @@ const RHFControlledComponents = {
11147
10072
  Password: RHFControlledPasswordInput,
11148
10073
  TextArea: RHFControlledTextArea,
11149
10074
  Select: RHFControlledSelect,
10075
+ Checkbox: RHFControlledCheckbox,
11150
10076
  CheckboxGroup: RHFControlledCheckboxGroup,
11151
- RadioGroup: RHFControlledRadioGroup,
11152
- Switch: RHFControlledSwitch
10077
+ RadioGroup: RHFControlledRadioGroup
11153
10078
  };
11154
10079
 
11155
10080
  const FormUI = {
@@ -11198,7 +10123,7 @@ const Space = _ref => {
11198
10123
  });
11199
10124
  };
11200
10125
 
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)."; }
10126
+ 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
10127
  const getHeaderStyles = (clsPrefix, theme) => {
11203
10128
  const breadcrumbClass = ".".concat(clsPrefix, "-breadcrumb");
11204
10129
  const styles = {
@@ -11208,21 +10133,21 @@ const getHeaderStyles = (clsPrefix, theme) => {
11208
10133
  };
11209
10134
  return /*#__PURE__*/css(importantify(styles), process.env.NODE_ENV === "production" ? "" : ";label:getHeaderStyles;");
11210
10135
  };
11211
- var _ref$2 = process.env.NODE_ENV === "production" ? {
10136
+ var _ref$1 = process.env.NODE_ENV === "production" ? {
11212
10137
  name: "5s4ezj",
11213
10138
  styles: "display:inline-flex;vertical-align:middle;align-items:center;margin-left:8px"
11214
10139
  } : {
11215
10140
  name: "gxikdi-titleAddOnsWrapper",
11216
10141
  styles: "display:inline-flex;vertical-align:middle;align-items:center;margin-left:8px;label:titleAddOnsWrapper;",
11217
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$4
10142
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$3
11218
10143
  };
11219
- var _ref2$1 = process.env.NODE_ENV === "production" ? {
10144
+ var _ref2 = process.env.NODE_ENV === "production" ? {
11220
10145
  name: "1q4vxyr",
11221
10146
  styles: "margin-left:8px"
11222
10147
  } : {
11223
10148
  name: "ozrfom-buttonContainer",
11224
10149
  styles: "margin-left:8px;label:buttonContainer;",
11225
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$4
10150
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$3
11226
10151
  };
11227
10152
  var _ref3$1 = process.env.NODE_ENV === "production" ? {
11228
10153
  name: "s079uh",
@@ -11230,15 +10155,15 @@ var _ref3$1 = process.env.NODE_ENV === "production" ? {
11230
10155
  } : {
11231
10156
  name: "1ky5whb-titleIfOtherElementsPresent",
11232
10157
  styles: "margin-top:2px;label:titleIfOtherElementsPresent;",
11233
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$4
10158
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$3
11234
10159
  };
11235
- var _ref4 = process.env.NODE_ENV === "production" ? {
10160
+ var _ref4$1 = process.env.NODE_ENV === "production" ? {
11236
10161
  name: "18hxk3h",
11237
10162
  styles: "margin-top:0;margin-bottom:0 !important"
11238
10163
  } : {
11239
10164
  name: "abhq57-title",
11240
10165
  styles: "margin-top:0;margin-bottom:0 !important;label:title;",
11241
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$4
10166
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$3
11242
10167
  };
11243
10168
  var _ref5 = process.env.NODE_ENV === "production" ? {
11244
10169
  name: "1cl2a0e",
@@ -11246,7 +10171,7 @@ var _ref5 = process.env.NODE_ENV === "production" ? {
11246
10171
  } : {
11247
10172
  name: "m9gz0x-titleWrapper",
11248
10173
  styles: "display:flex;align-items:flex-start;justify-content:space-between;label:titleWrapper;",
11249
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$4
10174
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$3
11250
10175
  };
11251
10176
  const Header$1 = props => {
11252
10177
  const {
@@ -11261,11 +10186,11 @@ const Header$1 = props => {
11261
10186
  marginBottom: 2,
11262
10187
  lineHeight: theme.typography.lineHeightBase
11263
10188
  }, process.env.NODE_ENV === "production" ? "" : ";label:breadcrumbWrapper;"),
11264
- title: _ref4,
10189
+ title: _ref4$1,
11265
10190
  // TODO: Look into a more emotion-idomatic way of doing this.
11266
10191
  titleIfOtherElementsPresent: _ref3$1,
11267
- buttonContainer: _ref2$1,
11268
- titleAddOnsWrapper: _ref$2
10192
+ buttonContainer: _ref2,
10193
+ titleAddOnsWrapper: _ref$1
11269
10194
  };
11270
10195
  return jsxs("div", {
11271
10196
  css: [getHeaderStyles(clsPrefix, theme), props.dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:Header;"],
@@ -11375,6 +10300,225 @@ const Layout = /* #__PURE__ */(() => {
11375
10300
  return Layout;
11376
10301
  })();
11377
10302
 
10303
+ function getPaginationEmotionStyles(clsPrefix, theme) {
10304
+ const classRoot = ".".concat(clsPrefix, "-pagination");
10305
+ const classItem = ".".concat(clsPrefix, "-pagination-item");
10306
+ const classLink = ".".concat(clsPrefix, "-pagination-item-link");
10307
+ const classActive = ".".concat(clsPrefix, "-pagination-item-active");
10308
+ const classEllipsis = ".".concat(clsPrefix, "-pagination-item-ellipsis");
10309
+ const classNext = ".".concat(clsPrefix, "-pagination-next");
10310
+ const classPrev = ".".concat(clsPrefix, "-pagination-prev");
10311
+ const classJumpNext = ".".concat(clsPrefix, "-pagination-jump-next");
10312
+ const classJumpPrev = ".".concat(clsPrefix, "-pagination-jump-prev");
10313
+ const classSizeChanger = ".".concat(clsPrefix, "-pagination-options-size-changer");
10314
+ const classOptions = ".".concat(clsPrefix, "-pagination-options");
10315
+ const styles = {
10316
+ 'span[role=img]': {
10317
+ color: theme.colors.textSecondary,
10318
+ '> *': {
10319
+ color: 'inherit'
10320
+ }
10321
+ },
10322
+ [classItem]: {
10323
+ backgroundColor: 'none',
10324
+ border: 'none',
10325
+ color: theme.colors.textSecondary,
10326
+ '&:focus-visible': {
10327
+ outline: 'auto'
10328
+ },
10329
+ '> a': {
10330
+ color: theme.colors.textSecondary,
10331
+ '&:hover': {
10332
+ color: theme.colors.actionDefaultTextHover
10333
+ },
10334
+ '&:active': {
10335
+ color: theme.colors.actionDefaultTextPress
10336
+ }
10337
+ },
10338
+ '&:hover': {
10339
+ backgroundColor: theme.colors.actionDefaultBackgroundHover
10340
+ },
10341
+ '&:active': {
10342
+ backgroundColor: theme.colors.actionDefaultBackgroundPress
10343
+ }
10344
+ },
10345
+ [classActive]: {
10346
+ backgroundColor: theme.colors.actionDefaultBackgroundPress,
10347
+ color: theme.colors.actionDefaultTextPress,
10348
+ border: 'none',
10349
+ '> a': {
10350
+ color: theme.colors.actionDefaultTextPress
10351
+ },
10352
+ '&:focus-visible': {
10353
+ outline: 'auto'
10354
+ },
10355
+ '&:hover': {
10356
+ backgroundColor: theme.colors.actionDefaultBackgroundPress,
10357
+ color: theme.colors.actionDefaultTextPress
10358
+ }
10359
+ },
10360
+ [classLink]: {
10361
+ border: 'none',
10362
+ color: theme.colors.textSecondary,
10363
+ '&[disabled]': {
10364
+ display: 'none'
10365
+ },
10366
+ '&:hover': {
10367
+ backgroundColor: theme.colors.actionDefaultBackgroundHover
10368
+ },
10369
+ '&:active': {
10370
+ backgroundColor: theme.colors.actionDefaultBackgroundPress
10371
+ },
10372
+ '&:focus-visible': {
10373
+ outline: 'auto'
10374
+ }
10375
+ },
10376
+ [classEllipsis]: {
10377
+ color: 'inherit'
10378
+ },
10379
+ ["".concat(classNext, ", ").concat(classPrev, ", ").concat(classJumpNext, ", ").concat(classJumpPrev)]: {
10380
+ color: theme.colors.textSecondary,
10381
+ '&:hover': {
10382
+ backgroundColor: theme.colors.actionDefaultBackgroundHover
10383
+ },
10384
+ '&:active': {
10385
+ backgroundColor: theme.colors.actionDefaultBackgroundPress
10386
+ },
10387
+ '&:focus-visible': {
10388
+ outline: 'auto'
10389
+ }
10390
+ },
10391
+ ["&".concat(classRoot, ".mini, ").concat(classRoot, ".mini")]: {
10392
+ ["".concat(classItem, ", ").concat(classNext, ", ").concat(classPrev, ", ").concat(classJumpNext, ", ").concat(classJumpPrev)]: {
10393
+ height: '32px',
10394
+ width: '32px',
10395
+ lineHeight: '32px'
10396
+ },
10397
+ [classSizeChanger]: {
10398
+ marginLeft: 4
10399
+ },
10400
+ ["input, ".concat(classOptions)]: {
10401
+ height: '32px'
10402
+ }
10403
+ }
10404
+ };
10405
+ const importantStyles = importantify(styles);
10406
+ return /*#__PURE__*/css(importantStyles, process.env.NODE_ENV === "production" ? "" : ";label:getPaginationEmotionStyles;");
10407
+ }
10408
+ const Pagination = function Pagination(_ref) {
10409
+ let {
10410
+ currentPageIndex,
10411
+ pageSize = 10,
10412
+ numTotal,
10413
+ onChange,
10414
+ dangerouslySetAntdProps
10415
+ } = _ref;
10416
+ const {
10417
+ classNamePrefix,
10418
+ theme
10419
+ } = useDesignSystemTheme();
10420
+ return jsx(DesignSystemAntDConfigProvider, {
10421
+ children: jsx(Pagination$1, {
10422
+ css: getPaginationEmotionStyles(classNamePrefix, theme),
10423
+ current: currentPageIndex,
10424
+ pageSize: pageSize,
10425
+ responsive: false,
10426
+ total: numTotal,
10427
+ onChange: onChange,
10428
+ showSizeChanger: false,
10429
+ showQuickJumper: true,
10430
+ size: 'small',
10431
+ ...dangerouslySetAntdProps
10432
+ })
10433
+ });
10434
+ };
10435
+
10436
+ const getTableEmotionStyles = (classNamePrefix, theme, scrollableInFlexibleContainer) => {
10437
+ const styles = [/*#__PURE__*/css({
10438
+ [".".concat(classNamePrefix, "-table-pagination")]: {
10439
+ ...getPaginationEmotionStyles(classNamePrefix, theme)
10440
+ }
10441
+ }, process.env.NODE_ENV === "production" ? "" : ";label:styles;")];
10442
+ if (scrollableInFlexibleContainer) {
10443
+ styles.push(getScrollableInFlexibleContainerStyles(classNamePrefix));
10444
+ }
10445
+ return styles;
10446
+ };
10447
+ const getScrollableInFlexibleContainerStyles = clsPrefix => {
10448
+ const styles = {
10449
+ minHeight: 0,
10450
+ [".".concat(clsPrefix, "-spin-nested-loading")]: {
10451
+ height: '100%'
10452
+ },
10453
+ [".".concat(clsPrefix, "-spin-container")]: {
10454
+ height: '100%',
10455
+ display: 'flex',
10456
+ flexDirection: 'column'
10457
+ },
10458
+ [".".concat(clsPrefix, "-table-container")]: {
10459
+ height: '100%',
10460
+ display: 'flex',
10461
+ flexDirection: 'column'
10462
+ },
10463
+ [".".concat(clsPrefix, "-table")]: {
10464
+ minHeight: 0
10465
+ },
10466
+ [".".concat(clsPrefix, "-table-header")]: {
10467
+ flexShrink: 0
10468
+ },
10469
+ [".".concat(clsPrefix, "-table-body")]: {
10470
+ minHeight: 0
10471
+ }
10472
+ };
10473
+ return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getScrollableInFlexibleContainerStyles;");
10474
+ };
10475
+ const DEFAULT_LOADING_SPIN_PROPS = {
10476
+ indicator: jsx(Spinner, {})
10477
+ };
10478
+
10479
+ /**
10480
+ * `LegacyTable` is deprecated in favor of the new `Table` component
10481
+ * For more information please join #dubois-table-early-adopters in Slack.
10482
+ * @deprecated
10483
+ */
10484
+ // eslint-disable-next-line @typescript-eslint/ban-types
10485
+ const LegacyTable = props => {
10486
+ const {
10487
+ classNamePrefix,
10488
+ theme
10489
+ } = useDesignSystemTheme();
10490
+ const {
10491
+ loading,
10492
+ scrollableInFlexibleContainer,
10493
+ children,
10494
+ ...tableProps
10495
+ } = props;
10496
+ return jsx(DesignSystemAntDConfigProvider, {
10497
+ children: jsx(Table$1
10498
+ // NOTE(FEINF-1273): The default loading indicator from AntD does not animate
10499
+ // and the design system spinner is recommended over the AntD one. Therefore,
10500
+ // if `loading` is `true`, render the design system <Spinner/> component.
10501
+ , {
10502
+ loading: loading === true ? DEFAULT_LOADING_SPIN_PROPS : loading,
10503
+ scroll: scrollableInFlexibleContainer ? {
10504
+ y: 'auto'
10505
+ } : undefined,
10506
+ ...tableProps,
10507
+ css: getTableEmotionStyles(classNamePrefix, theme, Boolean(scrollableInFlexibleContainer)),
10508
+ children: jsx(RestoreAntDDefaultClsPrefix, {
10509
+ children: children
10510
+ })
10511
+ })
10512
+ });
10513
+ };
10514
+
10515
+ /**
10516
+ * `LegacyTable` is deprecated in favor of the new `Table` component
10517
+ * For more information please join #dubois-table-early-adopters in Slack.
10518
+ * @deprecated
10519
+ */
10520
+ const Table = LegacyTable;
10521
+
11378
10522
  /**
11379
10523
  * @deprecated Use `DropdownMenu` instead.
11380
10524
  */
@@ -11420,7 +10564,7 @@ const Menu = /* #__PURE__ */(() => {
11420
10564
  return Menu;
11421
10565
  })();
11422
10566
 
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)."; }
10567
+ 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
10568
  const SIZE_PRESETS = {
11425
10569
  normal: 640,
11426
10570
  wide: 880
@@ -11544,7 +10688,46 @@ const getModalEmotionStyles = args => {
11544
10688
  ...getAnimationCss(theme.options.enableAnimation)
11545
10689
  }, process.env.NODE_ENV === "production" ? "" : ";label:getModalEmotionStyles;");
11546
10690
  };
11547
- function Modal(_ref) {
10691
+
10692
+ /**
10693
+ * Render default footer with our buttons. Copied from AntD.
10694
+ */
10695
+ function DefaultFooter(_ref) {
10696
+ let {
10697
+ onOk,
10698
+ onCancel,
10699
+ confirmLoading,
10700
+ okText,
10701
+ cancelText,
10702
+ okButtonProps,
10703
+ cancelButtonProps,
10704
+ autoFocusButton
10705
+ } = _ref;
10706
+ const handleCancel = e => {
10707
+ onCancel === null || onCancel === void 0 ? void 0 : onCancel(e);
10708
+ };
10709
+ const handleOk = e => {
10710
+ onOk === null || onOk === void 0 ? void 0 : onOk(e);
10711
+ };
10712
+ return jsxs(Fragment, {
10713
+ children: [cancelText && jsx(Button, {
10714
+ onClick: handleCancel,
10715
+ autoFocus: autoFocusButton === 'cancel',
10716
+ dangerouslyUseFocusPseudoClass: true,
10717
+ ...cancelButtonProps,
10718
+ children: cancelText
10719
+ }), okText && jsx(Button, {
10720
+ loading: confirmLoading,
10721
+ onClick: handleOk,
10722
+ type: "primary",
10723
+ autoFocus: autoFocusButton === 'ok',
10724
+ dangerouslyUseFocusPseudoClass: true,
10725
+ ...okButtonProps,
10726
+ children: okText
10727
+ })]
10728
+ });
10729
+ }
10730
+ function Modal(_ref2) {
11548
10731
  let {
11549
10732
  okButtonProps,
11550
10733
  cancelButtonProps,
@@ -11554,44 +10737,13 @@ function Modal(_ref) {
11554
10737
  footer,
11555
10738
  size = 'normal',
11556
10739
  verticalSizing = 'dynamic',
10740
+ autoFocusButton,
11557
10741
  ...props
11558
- } = _ref;
10742
+ } = _ref2;
11559
10743
  const {
11560
10744
  theme,
11561
10745
  classNamePrefix
11562
10746
  } = 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
10747
  return jsx(DesignSystemAntDConfigProvider, {
11596
10748
  children: jsx(Modal$1, {
11597
10749
  css: getModalEmotionStyles({
@@ -11604,7 +10756,16 @@ function Modal(_ref) {
11604
10756
  children: title
11605
10757
  }),
11606
10758
  footer: jsx(RestoreAntDDefaultClsPrefix, {
11607
- children: footer === undefined ? renderDefaultFooter() : footer
10759
+ children: footer === undefined ? jsx(DefaultFooter, {
10760
+ onOk: props.onOk,
10761
+ onCancel: props.onCancel,
10762
+ confirmLoading: props.confirmLoading,
10763
+ okText: props.okText,
10764
+ cancelText: props.cancelText,
10765
+ okButtonProps: okButtonProps,
10766
+ cancelButtonProps: cancelButtonProps,
10767
+ autoFocusButton: autoFocusButton
10768
+ }) : footer
11608
10769
  }),
11609
10770
  width: size ? SIZE_PRESETS[size] : undefined,
11610
10771
  closeIcon: jsx(CloseIcon, {}),
@@ -11618,21 +10779,21 @@ function Modal(_ref) {
11618
10779
  })
11619
10780
  });
11620
10781
  }
11621
- var _ref2 = process.env.NODE_ENV === "production" ? {
10782
+ var _ref3 = process.env.NODE_ENV === "production" ? {
11622
10783
  name: "b9hrb",
11623
10784
  styles: "position:relative;display:inline-flex;align-items:center"
11624
10785
  } : {
11625
10786
  name: "1jkwrsj-titleComp",
11626
10787
  styles: "position:relative;display:inline-flex;align-items:center;label:titleComp;",
11627
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$3
10788
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
11628
10789
  };
11629
- var _ref3 = process.env.NODE_ENV === "production" ? {
10790
+ var _ref4 = process.env.NODE_ENV === "production" ? {
11630
10791
  name: "1o6wc9k",
11631
10792
  styles: "padding-left:6px"
11632
10793
  } : {
11633
10794
  name: "i303lp-titleComp",
11634
10795
  styles: "padding-left:6px;label:titleComp;",
11635
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$3
10796
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
11636
10797
  };
11637
10798
  function DangerModal(props) {
11638
10799
  const {
@@ -11654,7 +10815,7 @@ function DangerModal(props) {
11654
10815
  const iconSize = useNewIcons ? 18 : 20;
11655
10816
  const iconFontSize = useNewIcons ? 18 : 22;
11656
10817
  const titleComp = jsxs("div", {
11657
- css: _ref2,
10818
+ css: _ref3,
11658
10819
  children: [jsx(DangerIcon, {
11659
10820
  css: /*#__PURE__*/css({
11660
10821
  color: theme.colors.textValidationDanger,
@@ -11664,7 +10825,7 @@ function DangerModal(props) {
11664
10825
  fontSize: iconFontSize
11665
10826
  }, process.env.NODE_ENV === "production" ? "" : ";label:titleComp;")
11666
10827
  }), jsx("div", {
11667
- css: _ref3,
10828
+ css: _ref4,
11668
10829
  children: title
11669
10830
  })]
11670
10831
  });
@@ -11749,6 +10910,8 @@ function useNotification() {
11749
10910
  success
11750
10911
  };
11751
10912
  }, [open]);
10913
+
10914
+ // eslint-disable-next-line react/jsx-key -- TODO(FEINF-1756)
11752
10915
  return [wrappedNotificationAPI, jsx(DesignSystemAntDConfigProvider, {
11753
10916
  children: contextHolder
11754
10917
  })];
@@ -11957,7 +11120,7 @@ const getCloseStyles = theme => {
11957
11120
  top: 6
11958
11121
  }, process.env.NODE_ENV === "production" ? "" : ";label:getCloseStyles;");
11959
11122
  };
11960
- const Close = /*#__PURE__*/forwardRef(function (props, ref) {
11123
+ const Close$1 = /*#__PURE__*/forwardRef(function (props, ref) {
11961
11124
  const {
11962
11125
  theme
11963
11126
  } = useDesignSystemTheme();
@@ -11993,177 +11156,42 @@ const Provider = _ref4 => {
11993
11156
  });
11994
11157
  };
11995
11158
  const Viewport = props => {
11996
- const {
11997
- theme
11998
- } = useDesignSystemTheme();
11999
- return jsx(Toast.Viewport, {
12000
- className: DU_BOIS_ENABLE_ANIMATION_CLASSNAME,
12001
- style: getViewportStyle(theme),
12002
- ...props
12003
- });
12004
- };
12005
-
12006
- var NotificationV2 = /*#__PURE__*/Object.freeze({
12007
- __proto__: null,
12008
- Root: Root$1,
12009
- Title: Title,
12010
- Description: Description,
12011
- Close: Close,
12012
- Provider: Provider,
12013
- Viewport: Viewport
12014
- });
12015
-
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) {
11159
+ const {
11160
+ theme
11161
+ } = useDesignSystemTheme();
11162
+ return jsx(Toast.Viewport, {
11163
+ className: DU_BOIS_ENABLE_ANIMATION_CLASSNAME,
11164
+ style: getViewportStyle(theme),
11165
+ ...props
11166
+ });
11167
+ };
11168
+
11169
+ var NotificationV2 = /*#__PURE__*/Object.freeze({
11170
+ __proto__: null,
11171
+ Root: Root$1,
11172
+ Title: Title,
11173
+ Description: Description,
11174
+ Close: Close$1,
11175
+ Provider: Provider,
11176
+ Viewport: Viewport
11177
+ });
11178
+
11179
+ const PageWrapper = _ref => {
12143
11180
  let {
12144
- currentPageIndex,
12145
- pageSize = 10,
12146
- numTotal,
12147
- onChange,
12148
- dangerouslySetAntdProps
11181
+ children,
11182
+ ...props
12149
11183
  } = _ref;
12150
11184
  const {
12151
- classNamePrefix,
12152
11185
  theme
12153
11186
  } = 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
- })
11187
+ return jsx("div", {
11188
+ css: /*#__PURE__*/css({
11189
+ paddingLeft: 16,
11190
+ paddingRight: 16,
11191
+ backgroundColor: theme.isDarkMode ? theme.colors.backgroundPrimary : 'transparent'
11192
+ }, process.env.NODE_ENV === "production" ? "" : ";label:PageWrapper;"),
11193
+ ...props,
11194
+ children: children
12167
11195
  });
12168
11196
  };
12169
11197
 
@@ -12222,11 +11250,22 @@ const Trigger = /*#__PURE__*/forwardRef(function Trigger(_ref2, ref) {
12222
11250
  children: children
12223
11251
  });
12224
11252
  });
12225
- const Arrow = /*#__PURE__*/forwardRef(function Arrow(_ref3, ref) {
11253
+ const Close = /*#__PURE__*/forwardRef(function Close(_ref3, ref) {
12226
11254
  let {
12227
11255
  children,
12228
11256
  ...props
12229
11257
  } = _ref3;
11258
+ return jsx(Popover$1.Close, {
11259
+ ref: ref,
11260
+ ...props,
11261
+ children: children
11262
+ });
11263
+ });
11264
+ const Arrow = /*#__PURE__*/forwardRef(function Arrow(_ref4, ref) {
11265
+ let {
11266
+ children,
11267
+ ...props
11268
+ } = _ref4;
12230
11269
  const {
12231
11270
  theme
12232
11271
  } = useDesignSystemTheme();
@@ -12303,6 +11342,7 @@ var PopoverV2 = /*#__PURE__*/Object.freeze({
12303
11342
  Root: Root,
12304
11343
  Content: Content$1,
12305
11344
  Trigger: Trigger,
11345
+ Close: Close,
12306
11346
  Arrow: Arrow
12307
11347
  });
12308
11348
 
@@ -12645,7 +11685,7 @@ function PanelHeader(_ref5) {
12645
11685
  return jsxs("div", {
12646
11686
  css: [{
12647
11687
  display: 'flex',
12648
- paddingLeft: 16,
11688
+ paddingLeft: 8,
12649
11689
  paddingRight: 4,
12650
11690
  alignItems: 'center',
12651
11691
  height: theme.general.heightBase,
@@ -12698,7 +11738,7 @@ function PanelBody(_ref9) {
12698
11738
  dangerouslyAppendEmotionCSS
12699
11739
  } = _ref9;
12700
11740
  return jsx("div", {
12701
- css: ["height:100%;overflow-x:hidden;overflow-y:auto;padding:0 16px;", dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:PanelBody;"],
11741
+ css: ["height:100%;overflow-x:hidden;overflow-y:auto;padding:0 8px;", dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:PanelBody;"],
12702
11742
  children: children
12703
11743
  });
12704
11744
  }
@@ -12763,56 +11803,6 @@ const Skeleton = /* #__PURE__ */(() => {
12763
11803
  return Skeleton;
12764
11804
  })();
12765
11805
 
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
11806
  const defaultGetPrefixCls = (suffixCls, customizePrefixCls) => {
12817
11807
  if (customizePrefixCls) return customizePrefixCls;
12818
11808
  return suffixCls ? "ant-".concat(suffixCls) : 'ant';
@@ -12857,6 +11847,7 @@ const DropdownButton = props => {
12857
11847
  menuButtonLabel = 'Open dropdown',
12858
11848
  menu,
12859
11849
  leftButtonIcon,
11850
+ dropdownMenuRootProps,
12860
11851
  ...restProps
12861
11852
  } = props;
12862
11853
  const prefixCls = getPrefixCls('dropdown-button', customizePrefixCls);
@@ -12909,7 +11900,7 @@ const DropdownButton = props => {
12909
11900
  overlay: overlay,
12910
11901
  children: rightButtonToRender
12911
11902
  }) : jsxs(Root$2, {
12912
- ...props.dropdownMenuRootProps,
11903
+ ...dropdownMenuRootProps,
12913
11904
  children: [jsx(Trigger$1, {
12914
11905
  disabled: disabled,
12915
11906
  asChild: true,
@@ -13064,76 +12055,135 @@ const SplitButton = props => {
13064
12055
  });
13065
12056
  };
13066
12057
 
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 => {
12058
+ const getSwitchWithLabelStyles = _ref => {
12059
+ let {
12060
+ clsPrefix,
12061
+ theme
12062
+ } = _ref;
12063
+ // Default value
12064
+ const SWITCH_WIDTH = 28;
13079
12065
  const styles = {
13080
- minHeight: 0,
13081
- [".".concat(clsPrefix, "-spin-nested-loading")]: {
13082
- height: '100%'
12066
+ display: 'flex',
12067
+ alignItems: 'center',
12068
+ // Switch is Off
12069
+ ["&.".concat(clsPrefix, "-switch")]: {
12070
+ backgroundColor: theme.colors.backgroundPrimary,
12071
+ border: "1px solid ".concat(theme.colors.actionDefaultBorderDefault),
12072
+ [".".concat(clsPrefix, "-switch-handle:before")]: {
12073
+ boxShadow: "0px 0px 0px 1px ".concat(theme.colors.actionDefaultBorderDefault),
12074
+ transition: 'none'
12075
+ },
12076
+ ["&:hover:not(.".concat(clsPrefix, "-switch-disabled)")]: {
12077
+ backgroundColor: theme.colors.actionDefaultBackgroundHover,
12078
+ border: "1px solid ".concat(theme.colors.actionPrimaryBackgroundHover),
12079
+ [".".concat(clsPrefix, "-switch-handle:before")]: {
12080
+ boxShadow: "0px 0px 0px 1px ".concat(theme.colors.actionPrimaryBackgroundHover)
12081
+ }
12082
+ },
12083
+ ["&:active:not(.".concat(clsPrefix, "-switch-disabled)")]: {
12084
+ backgroundColor: theme.colors.actionDefaultBackgroundPress,
12085
+ border: "1px solid ".concat(theme.colors.actionPrimaryBackgroundPress),
12086
+ [".".concat(clsPrefix, "-switch-handle:before")]: {
12087
+ boxShadow: "0px 0px 0px 1px ".concat(theme.colors.actionPrimaryBackgroundHover)
12088
+ }
12089
+ },
12090
+ ["&:focus-visible"]: {
12091
+ border: "1px solid ".concat(theme.colors.actionPrimaryBackgroundDefault),
12092
+ boxShadow: 'none',
12093
+ outlineStyle: 'solid',
12094
+ outlineWidth: '1px',
12095
+ outlineOffset: '1px',
12096
+ outlineColor: theme.colors.actionDefaultBorderFocus,
12097
+ [".".concat(clsPrefix, "-switch-handle:before")]: {
12098
+ boxShadow: "0px 0px 0px 1px ".concat(theme.colors.actionPrimaryBackgroundDefault)
12099
+ }
12100
+ },
12101
+ ["&:focus"]: {
12102
+ boxShadow: 'none'
12103
+ }
13083
12104
  },
13084
- [".".concat(clsPrefix, "-spin-container")]: {
13085
- height: '100%',
13086
- display: 'flex',
13087
- flexDirection: 'column'
12105
+ // Switch is On
12106
+ ["&.".concat(clsPrefix, "-switch-checked")]: {
12107
+ backgroundColor: theme.colors.actionPrimaryBackgroundDefault,
12108
+ border: "1px solid ".concat(theme.colors.actionPrimaryBackgroundDefault),
12109
+ ["&:hover:not(.".concat(clsPrefix, "-switch-disabled)")]: {
12110
+ backgroundColor: theme.colors.actionPrimaryBackgroundHover,
12111
+ border: "1px solid ".concat(theme.colors.actionPrimaryBackgroundDefault)
12112
+ },
12113
+ ["&:active:not(.".concat(clsPrefix, "-switch-disabled)")]: {
12114
+ backgroundColor: theme.colors.actionPrimaryBackgroundPress
12115
+ },
12116
+ [".".concat(clsPrefix, "-switch-handle:before")]: {
12117
+ boxShadow: "0px 0px 0px 1px ".concat(theme.colors.actionPrimaryBackgroundDefault)
12118
+ },
12119
+ ["&.".concat(clsPrefix, "-switch-disabled")]: {
12120
+ backgroundColor: theme.colors.actionDisabledBackground,
12121
+ border: "1px solid ".concat(theme.colors.actionDisabledBackground),
12122
+ [".".concat(clsPrefix, "-switch-handle:before")]: {
12123
+ boxShadow: "0px 0px 0px 1px ".concat(theme.colors.actionDisabledBackground)
12124
+ }
12125
+ }
13088
12126
  },
13089
- [".".concat(clsPrefix, "-table-container")]: {
13090
- height: '100%',
13091
- display: 'flex',
13092
- flexDirection: 'column'
12127
+ [".".concat(clsPrefix, "-switch-handle:before")]: {
12128
+ backgroundColor: theme.colors.backgroundPrimary
13093
12129
  },
13094
- [".".concat(clsPrefix, "-table")]: {
13095
- minHeight: 0
12130
+ ["&& + .".concat(clsPrefix, "-hint, && + .").concat(clsPrefix, "-form-message")]: {
12131
+ paddingLeft: theme.spacing.sm + SWITCH_WIDTH
13096
12132
  },
13097
- [".".concat(clsPrefix, "-table-header")]: {
13098
- flexShrink: 0
12133
+ ["&& + .".concat(clsPrefix, "-form-message")]: {
12134
+ marginTop: 0
13099
12135
  },
13100
- [".".concat(clsPrefix, "-table-body")]: {
13101
- minHeight: 0
12136
+ [".".concat(clsPrefix, "-click-animating-node")]: {
12137
+ animation: 'none'
13102
12138
  }
13103
12139
  };
13104
- return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getScrollableInFlexibleContainerStyles;");
13105
- };
13106
- const DEFAULT_LOADING_SPIN_PROPS = {
13107
- indicator: jsx(Spinner, {})
12140
+ const importantStyles = importantify(styles);
12141
+ return /*#__PURE__*/css(importantStyles, process.env.NODE_ENV === "production" ? "" : ";label:getSwitchWithLabelStyles;");
13108
12142
  };
13109
-
13110
- // eslint-disable-next-line @typescript-eslint/ban-types
13111
- const Table = props => {
12143
+ const Switch = _ref2 => {
12144
+ let {
12145
+ dangerouslySetAntdProps,
12146
+ label,
12147
+ labelProps,
12148
+ ...props
12149
+ } = _ref2;
13112
12150
  const {
13113
- classNamePrefix,
13114
- theme
12151
+ theme,
12152
+ classNamePrefix
13115
12153
  } = 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
- })
12154
+ return label ? jsx(DesignSystemAntDConfigProvider, {
12155
+ children: jsxs("div", {
12156
+ css: getSwitchWithLabelStyles({
12157
+ clsPrefix: classNamePrefix,
12158
+ theme
12159
+ }),
12160
+ children: [jsx(Switch$1, {
12161
+ ...props,
12162
+ ...dangerouslySetAntdProps,
12163
+ css: /*#__PURE__*/css({
12164
+ ... /*#__PURE__*/css(getAnimationCss(theme.options.enableAnimation), process.env.NODE_ENV === "production" ? "" : ";label:Switch;"),
12165
+ ...getSwitchWithLabelStyles({
12166
+ clsPrefix: classNamePrefix,
12167
+ theme
12168
+ })
12169
+ }, process.env.NODE_ENV === "production" ? "" : ";label:Switch;")
12170
+ }), jsx(Label, {
12171
+ inline: true,
12172
+ ...labelProps,
12173
+ children: label
12174
+ })]
12175
+ })
12176
+ }) : jsx(DesignSystemAntDConfigProvider, {
12177
+ children: jsx(Switch$1, {
12178
+ ...props,
12179
+ ...dangerouslySetAntdProps,
12180
+ css: /*#__PURE__*/css({
12181
+ ... /*#__PURE__*/css(getAnimationCss(theme.options.enableAnimation), process.env.NODE_ENV === "production" ? "" : ";label:Switch;"),
12182
+ ...getSwitchWithLabelStyles({
12183
+ clsPrefix: classNamePrefix,
12184
+ theme
12185
+ })
12186
+ }, process.env.NODE_ENV === "production" ? "" : ";label:Switch;")
13137
12187
  })
13138
12188
  });
13139
12189
  };
@@ -13770,5 +12820,5 @@ const Tree = /*#__PURE__*/forwardRef(function Tree(_ref, ref) {
13770
12820
  });
13771
12821
  });
13772
12822
 
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 };
12823
+ 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, 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
12824
  //# sourceMappingURL=index.js.map