@innovaccer/design-system 2.6.0 → 2.7.0-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 (287) hide show
  1. package/.eslintrc.json +10 -9
  2. package/.github/workflows/chromatic.yml +5 -0
  3. package/.github/workflows/pull_request.yml +1 -1
  4. package/.storybook/main.js +4 -0
  5. package/.vscode/settings.json +11 -0
  6. package/CHANGELOG.md +36 -0
  7. package/CONTRIBUTING.md +7 -1
  8. package/core/accessibility/utils/useAccessibilityProps.ts +4 -2
  9. package/core/common.type.tsx +22 -0
  10. package/core/components/atoms/_chip/__tests__/__snapshots__/_chip.test.tsx.snap +9 -9
  11. package/core/components/atoms/_chip/index.tsx +17 -3
  12. package/core/components/atoms/avatar/Avatar.tsx +4 -14
  13. package/core/components/atoms/avatar/__stories__/variants/Appearance.story.tsx +3 -2
  14. package/core/components/atoms/avatar/__tests__/Avatar.test.tsx +14 -9
  15. package/core/components/atoms/avatarGroup/AvatarGroup.tsx +3 -5
  16. package/core/components/atoms/badge/Badge.tsx +2 -12
  17. package/core/components/atoms/badge/__tests__/Badge.test.tsx +22 -7
  18. package/core/components/atoms/badge/_stories_/variants/Appearance.story.tsx +3 -2
  19. package/core/components/atoms/badge/_stories_/variants/Subtle.story.tsx +3 -2
  20. package/core/components/atoms/button/Button.tsx +10 -7
  21. package/core/components/atoms/button/__stories__/index.story.tsx +1 -1
  22. package/core/components/atoms/button/__stories__/variants/Appearance.story.tsx +2 -2
  23. package/core/components/atoms/button/__stories__/variants/Expanded.story.tsx +2 -2
  24. package/core/components/atoms/button/__stories__/variants/icon/IconLeft.story.tsx +2 -2
  25. package/core/components/atoms/button/__stories__/variants/icon/IconRight.story.tsx +2 -2
  26. package/core/components/atoms/button/__tests__/Button.test.tsx +1 -1
  27. package/core/components/atoms/button/__tests__/__snapshots__/Button.test.tsx.snap +0 -137
  28. package/core/components/atoms/card/__stories__/empty.story.tsx +1 -1
  29. package/core/components/atoms/card/__stories__/nested.story.tsx +1 -1
  30. package/core/components/atoms/card/__stories__/scroll.story.tsx +1 -1
  31. package/core/components/atoms/checkbox/Checkbox.tsx +8 -9
  32. package/core/components/atoms/checkbox/__stories__/variants/Size.story.tsx +2 -2
  33. package/core/components/atoms/chip/Chip.tsx +3 -2
  34. package/core/components/atoms/chip/__stories__/variants/Selection.story.tsx +17 -0
  35. package/core/components/atoms/chip/__stories__/variants/Type.story.tsx +2 -2
  36. package/core/components/atoms/chip/__tests__/Chip.test.tsx +7 -0
  37. package/core/components/atoms/chipGroup/__tests__/__snapshots__/chipGroup.test.tsx.snap +5 -5
  38. package/core/components/atoms/chipGroup/__tests__/chipGroup.test.tsx +2 -2
  39. package/core/components/atoms/chipGroup/_stories_/index.story.tsx +2 -2
  40. package/core/components/atoms/dropdown/Dropdown.tsx +18 -17
  41. package/core/components/atoms/dropdown/DropdownButton.tsx +2 -2
  42. package/core/components/atoms/dropdown/DropdownList.tsx +10 -5
  43. package/core/components/atoms/dropdown/Loading.tsx +1 -1
  44. package/core/components/atoms/dropdown/__stories__/CustomSearchPlaceholder.story.tsx +45 -0
  45. package/core/components/atoms/dropdown/__stories__/_common_/types.tsx +3 -0
  46. package/core/components/atoms/dropdown/__stories__/variants/Size.story.tsx +2 -2
  47. package/core/components/atoms/dropdown/__stories__/variants/controlledDropdown/MultiSelect.story.tsx +1 -1
  48. package/core/components/atoms/dropdown/__tests__/Dropdown.test.tsx +12 -1
  49. package/core/components/atoms/dropdown/__tests__/Loading.test.tsx +0 -1
  50. package/core/components/atoms/dropdown/option/index.tsx +1 -1
  51. package/core/components/atoms/heading/Heading.tsx +4 -4
  52. package/core/components/atoms/heading/__stories__/variants/Appearance.story.tsx +3 -2
  53. package/core/components/atoms/heading/__tests__/Heading.test.tsx +4 -3
  54. package/core/components/atoms/icon/Icon.tsx +3 -3
  55. package/core/components/atoms/input/Input.tsx +3 -3
  56. package/core/components/atoms/input/__stories__/InputWithCaption.story.tsx +62 -0
  57. package/core/components/atoms/input/__stories__/LabelPosition.story.tsx +38 -0
  58. package/core/components/atoms/input/__stories__/variants/controlledInput.story.tsx +46 -0
  59. package/core/components/atoms/input/__stories__/variants/types/BasicInput.story.tsx +2 -2
  60. package/core/components/atoms/input/__stories__/variants/types/IconLeft.story.tsx +2 -10
  61. package/core/components/atoms/input/__stories__/variants/types/WithLabel.story.tsx +1 -9
  62. package/core/components/atoms/label/Label.tsx +1 -1
  63. package/core/components/atoms/legend/Legend.tsx +2 -2
  64. package/core/components/atoms/legend/__stories__/variants/labelAppearance.story.tsx +2 -2
  65. package/core/components/atoms/link/Link.tsx +4 -4
  66. package/core/components/atoms/message/Message.tsx +12 -12
  67. package/core/components/atoms/message/__stories__/index.story.tsx +1 -1
  68. package/core/components/atoms/message/__stories__/variants/Appearance.story.tsx +1 -1
  69. package/core/components/atoms/message/__stories__/variants/AppearanceTitle.story.tsx +1 -1
  70. package/core/components/atoms/message/__tests__/Message.test.tsx +1 -6
  71. package/core/components/atoms/message/__tests__/__snapshots__/Message.test.tsx.snap +0 -45
  72. package/core/components/atoms/metaList/__tests__/MetaList.test.tsx +2 -2
  73. package/core/components/atoms/metricInput/MetricInput.tsx +5 -5
  74. package/core/components/atoms/multiSlider/SliderUtils.tsx +1 -4
  75. package/core/components/atoms/multiSlider/index.tsx +3 -4
  76. package/core/components/atoms/outsideClick/OutsideClick.tsx +1 -2
  77. package/core/components/atoms/paragraph/Paragraph.tsx +2 -2
  78. package/core/components/atoms/paragraph/__stories__/variants/Appearance.story.tsx +2 -2
  79. package/core/components/atoms/paragraph/__tests__/Paragraph.test.tsx +2 -2
  80. package/core/components/atoms/pills/Pills.tsx +2 -12
  81. package/core/components/atoms/pills/__stories__/variants/Appearance.story.tsx +3 -2
  82. package/core/components/atoms/pills/__stories__/variants/Subtle.story.tsx +3 -2
  83. package/core/components/atoms/pills/__tests__/Pills.test.tsx +3 -2
  84. package/core/components/atoms/placeholderImage/PlaceholderImage.tsx +2 -2
  85. package/core/components/atoms/placeholderImage/__stories__/variants/Size.story.tsx +2 -2
  86. package/core/components/atoms/placeholderParagraph/PlaceholderParagraph.tsx +2 -2
  87. package/core/components/atoms/placeholderParagraph/__stories__/variants/Size.story.tsx +2 -2
  88. package/core/components/atoms/popperWrapper/PopperWrapper.tsx +2 -6
  89. package/core/components/atoms/progressRing/ProgressRing.tsx +2 -2
  90. package/core/components/atoms/progressRing/__stories__/variants/Size.story.tsx +1 -1
  91. package/core/components/atoms/radio/Radio.tsx +4 -5
  92. package/core/components/atoms/rangeSlider/RangeSlider.tsx +1 -2
  93. package/core/components/atoms/rangeSlider/__stories__/index.story.tsx +1 -2
  94. package/core/components/atoms/rangeSlider/__stories__/variants/Controlled.story.tsx +1 -2
  95. package/core/components/atoms/rangeSlider/__stories__/variants/CustomLabels.story.tsx +1 -2
  96. package/core/components/atoms/spinner/Spinner.tsx +4 -4
  97. package/core/components/atoms/spinner/__stories__/variants/Appearance.story.tsx +2 -2
  98. package/core/components/atoms/spinner/__stories__/variants/Size.story.tsx +1 -1
  99. package/core/components/atoms/statusHint/StatusHint.tsx +2 -3
  100. package/core/components/atoms/statusHint/__stories__/variants/Appearance.story.tsx +3 -2
  101. package/core/components/atoms/statusHint/__tests__/StatusHint.test.tsx +3 -2
  102. package/core/components/atoms/subheading/Subheading.tsx +2 -2
  103. package/core/components/atoms/subheading/__stories__/variants/Appearance.story.tsx +3 -2
  104. package/core/components/atoms/subheading/__tests__/Subheading.test.tsx +3 -2
  105. package/core/components/atoms/switchInput/Switch.tsx +7 -8
  106. package/core/components/atoms/text/Text.tsx +4 -4
  107. package/core/components/atoms/text/__stories__/variants/Appearance.story.tsx +2 -2
  108. package/core/components/atoms/text/__tests__/Text.test.tsx +2 -3
  109. package/core/components/atoms/toast/ActionButton.tsx +2 -2
  110. package/core/components/atoms/toast/Toast.tsx +11 -6
  111. package/core/components/atoms/toast/__stories__/index.story.tsx +2 -6
  112. package/core/components/atoms/toast/__stories__/variants/Appearance.story.tsx +3 -2
  113. package/core/components/atoms/toast/__stories__/variants/ToastMessage.story.tsx +3 -2
  114. package/core/components/atoms/toast/__stories__/variants/ToastWithAction.story.tsx +3 -2
  115. package/core/components/atoms/toast/__tests__/Toast.test.tsx +1 -1
  116. package/core/components/atoms/toast/__tests__/__snapshots__/Toast.test.tsx.snap +0 -131
  117. package/core/components/css-utilities/Schema.tsx +1 -1
  118. package/core/components/css-utilities/Spacing/Schema.tsx +1 -1
  119. package/core/components/molecules/chipInput/__tests__/__snapshots__/ChipInput.test.tsx.snap +2 -2
  120. package/core/components/molecules/dropzone/Dropzone.tsx +3 -3
  121. package/core/components/molecules/dropzone/DropzoneBase.tsx +22 -38
  122. package/core/components/molecules/dropzone/__stories__/index.story.tsx +151 -41
  123. package/core/components/molecules/dropzone/__tests__/Dropzone.test.tsx +2 -2
  124. package/core/components/molecules/dropzone/utils.tsx +6 -4
  125. package/core/components/molecules/editableChipInput/__tests__/__snapshots__/EditableChipInput.test.tsx.snap +4 -4
  126. package/core/components/molecules/emptyState/EmptyState.tsx +4 -4
  127. package/core/components/molecules/emptyState/__stories__/pageNotLoadedWithSVG.story.tsx +26 -26
  128. package/core/components/molecules/fileList/FileListItem.tsx +1 -2
  129. package/core/components/molecules/fileUploader/FileUploaderItem.tsx +1 -2
  130. package/core/components/molecules/fileUploader/FileUploaderStatus.tsx +1 -1
  131. package/core/components/molecules/fileUploader/__stories__/_common_/types.tsx +3 -0
  132. package/core/components/molecules/fileUploader/__stories__/index.story.tsx +3 -222
  133. package/core/components/molecules/fullscreenModal/FullscreenModal.tsx +5 -7
  134. package/core/components/molecules/inputMask/InputMask.tsx +212 -146
  135. package/core/components/molecules/inputMask/__stories__/index.story.tsx +24 -0
  136. package/core/components/molecules/modal/Modal.tsx +4 -6
  137. package/core/components/molecules/modal/__stories__/Confirmation.story.tsx +1 -1
  138. package/core/components/molecules/placeholder/Placeholder.tsx +2 -2
  139. package/core/components/molecules/popover/Popover.tsx +2 -9
  140. package/core/components/molecules/sidesheet/Sidesheet.tsx +5 -7
  141. package/core/components/molecules/sidesheet/__stories__/variants/CustomHeader.story.tsx +172 -0
  142. package/core/components/molecules/tooltip/Tooltip.tsx +4 -4
  143. package/core/components/organisms/calendar/__stories__/variants/firstDayOfWeek.story.tsx +2 -2
  144. package/core/components/organisms/calendar/utility.ts +3 -3
  145. package/core/components/organisms/choiceList/ChoiceList.tsx +11 -11
  146. package/core/components/organisms/datePicker/DatePicker.tsx +1 -1
  147. package/core/components/organisms/datePicker/Trigger.tsx +1 -5
  148. package/core/components/organisms/dateRangePicker/DateRangePicker.tsx +9 -10
  149. package/core/components/organisms/dateRangePicker/SingleInputTrigger.tsx +0 -1
  150. package/core/components/organisms/dateRangePicker/Trigger.tsx +2 -2
  151. package/core/components/organisms/dateRangePicker/__stories__/variants/monthsInView.story.tsx +2 -2
  152. package/core/components/organisms/dateRangePicker/__tests__/__snapshots__/DateRangePicker.test.tsx.snap +16 -16
  153. package/core/components/organisms/grid/Cell.tsx +19 -19
  154. package/core/components/organisms/grid/Grid.tsx +3 -4
  155. package/core/components/organisms/grid/GridBody.tsx +0 -1
  156. package/core/components/organisms/grid/GridContext.ts +1 -1
  157. package/core/components/organisms/grid/__stories__/_common_/editableSchema.tsx +1 -3
  158. package/core/components/organisms/grid/__stories__/_common_/fetchData.ts +1 -1
  159. package/core/components/organisms/grid/__stories__/_common_/loaderSchema.ts +0 -2
  160. package/core/components/organisms/grid/__stories__/_common_/schema.tsx +1 -3
  161. package/core/components/organisms/grid/__stories__/_common_/simpleLoaderSchema.ts +0 -2
  162. package/core/components/organisms/grid/__stories__/_common_/statusSchema.ts +0 -2
  163. package/core/components/organisms/inlineMessage/InlineMessage.tsx +2 -2
  164. package/core/components/organisms/inlineMessage/__tests__/InlineMessage.test.tsx +3 -2
  165. package/core/components/organisms/list/__stories__/_common_/types.tsx +3 -0
  166. package/core/components/organisms/list/__stories__/index.story.tsx +0 -16
  167. package/core/components/organisms/table/Table.tsx +2 -2
  168. package/core/components/organisms/table/__stories__/CompressedTable.story.tsx +1 -1
  169. package/core/components/organisms/table/__stories__/DataTable.story.tsx +1 -1
  170. package/core/components/organisms/table/__stories__/NestedTableWithNestedCard.story.tsx +1 -1
  171. package/core/components/organisms/table/__stories__/PinnedColumn.story.tsx +1 -1
  172. package/core/components/organisms/table/__stories__/ResourceTable.story.tsx +1 -1
  173. package/core/components/organisms/table/__stories__/StandardTable.story.tsx +1 -1
  174. package/core/components/organisms/table/__stories__/TableAsDescriptionList.story.tsx +1 -1
  175. package/core/components/organisms/table/__stories__/TableAsOptionList.story.tsx +1 -1
  176. package/core/components/organisms/table/__stories__/TightStory.story.tsx +1 -1
  177. package/core/components/organisms/table/__stories__/_common_/types.tsx +3 -0
  178. package/core/components/organisms/table/__stories__/variants/showHead.story.tsx +2 -2
  179. package/core/components/organisms/table/__stories__/variants/showMenu.story.tsx +2 -2
  180. package/core/components/organisms/table/__stories__/variants/size.story.tsx +2 -2
  181. package/core/components/organisms/table/__stories__/variants/type.story.tsx +2 -2
  182. package/core/components/organisms/table/__stories__/variants/withCheckbox.story.tsx +2 -2
  183. package/core/components/organisms/table/__stories__/variants/withPagination.story.tsx +2 -2
  184. package/core/components/organisms/timePicker/TimePicker.tsx +3 -7
  185. package/core/components/organisms/verticalNav/__stories__/schema.tsx +0 -2
  186. package/core/components/organisms/verticalNav/__tests__/VerticalNav.test.tsx +1 -2
  187. package/core/global.d.ts +9 -0
  188. package/core/index.tsx +1 -1
  189. package/core/utils/__tests__/__snapshots__/TS.test.tsx.snap +18 -5
  190. package/core/utils/docPage/generateImports.tsx +2 -3
  191. package/core/utils/docPage/index.tsx +30 -20
  192. package/core/utils/docPage/sandbox.tsx +14 -7
  193. package/core/utils/overlayHelper.ts +7 -3
  194. package/core/utils/testHelper.ts +1 -1
  195. package/core/utils/types.tsx +1 -1
  196. package/css/dist/index.css +48 -30
  197. package/css/dist/index.css.map +1 -1
  198. package/css/src/components/button.css +5 -5
  199. package/css/src/components/calendar.css +1 -1
  200. package/css/src/components/chip.css +6 -4
  201. package/css/src/components/fullscreenModal.css +4 -3
  202. package/css/src/components/message.css +0 -5
  203. package/css/src/components/switch.css +23 -2
  204. package/css/src/components/toast.css +0 -5
  205. package/css/src/variables/index.css +5 -2
  206. package/dist/core/accessibility/utils/useAccessibilityProps.d.ts +4 -1
  207. package/dist/core/common.type.d.ts +12 -0
  208. package/dist/core/components/atoms/avatar/Avatar.d.ts +4 -4
  209. package/dist/core/components/atoms/avatarGroup/AvatarGroup.d.ts +2 -3
  210. package/dist/core/components/atoms/badge/Badge.d.ts +2 -2
  211. package/dist/core/components/atoms/button/Button.d.ts +6 -6
  212. package/dist/core/components/atoms/checkbox/Checkbox.d.ts +3 -3
  213. package/dist/core/components/atoms/chip/Chip.d.ts +2 -2
  214. package/dist/core/components/atoms/dropdown/Dropdown.d.ts +18 -17
  215. package/dist/core/components/atoms/dropdown/DropdownButton.d.ts +2 -2
  216. package/dist/core/components/atoms/dropdown/DropdownList.d.ts +4 -3
  217. package/dist/core/components/atoms/dropdown/option/index.d.ts +1 -1
  218. package/dist/core/components/atoms/heading/Heading.d.ts +4 -4
  219. package/dist/core/components/atoms/icon/Icon.d.ts +2 -2
  220. package/dist/core/components/atoms/input/Input.d.ts +3 -3
  221. package/dist/core/components/atoms/legend/Legend.d.ts +2 -2
  222. package/dist/core/components/atoms/link/Link.d.ts +4 -4
  223. package/dist/core/components/atoms/message/Message.d.ts +2 -2
  224. package/dist/core/components/atoms/metricInput/MetricInput.d.ts +3 -3
  225. package/dist/core/components/atoms/multiSlider/SliderUtils.d.ts +1 -1
  226. package/dist/core/components/atoms/multiSlider/index.d.ts +3 -3
  227. package/dist/core/components/atoms/paragraph/Paragraph.d.ts +2 -2
  228. package/dist/core/components/atoms/pills/Pills.d.ts +2 -2
  229. package/dist/core/components/atoms/placeholderImage/PlaceholderImage.d.ts +2 -2
  230. package/dist/core/components/atoms/placeholderParagraph/PlaceholderParagraph.d.ts +2 -2
  231. package/dist/core/components/atoms/popperWrapper/PopperWrapper.d.ts +1 -2
  232. package/dist/core/components/atoms/progressRing/ProgressRing.d.ts +2 -2
  233. package/dist/core/components/atoms/radio/Radio.d.ts +4 -4
  234. package/dist/core/components/atoms/rangeSlider/RangeSlider.d.ts +1 -1
  235. package/dist/core/components/atoms/spinner/Spinner.d.ts +4 -4
  236. package/dist/core/components/atoms/statusHint/StatusHint.d.ts +2 -2
  237. package/dist/core/components/atoms/subheading/Subheading.d.ts +2 -2
  238. package/dist/core/components/atoms/switchInput/Switch.d.ts +6 -6
  239. package/dist/core/components/atoms/text/Text.d.ts +4 -4
  240. package/dist/core/components/atoms/toast/ActionButton.d.ts +2 -2
  241. package/dist/core/components/atoms/toast/Toast.d.ts +2 -2
  242. package/dist/core/components/molecules/dropzone/Dropzone.d.ts +3 -3
  243. package/dist/core/components/molecules/dropzone/DropzoneBase.d.ts +1 -1
  244. package/dist/core/components/molecules/dropzone/utils.d.ts +5 -3
  245. package/dist/core/components/molecules/emptyState/EmptyState.d.ts +4 -4
  246. package/dist/core/components/molecules/fileList/FileListItem.d.ts +1 -1
  247. package/dist/core/components/molecules/fileUploader/FileUploaderItem.d.ts +1 -1
  248. package/dist/core/components/molecules/fileUploader/FileUploaderStatus.d.ts +1 -1
  249. package/dist/core/components/molecules/fullscreenModal/FullscreenModal.d.ts +4 -7
  250. package/dist/core/components/molecules/inputMask/InputMask.d.ts +10 -2
  251. package/dist/core/components/molecules/modal/Modal.d.ts +3 -6
  252. package/dist/core/components/molecules/placeholder/Placeholder.d.ts +2 -2
  253. package/dist/core/components/molecules/popover/Popover.d.ts +0 -1
  254. package/dist/core/components/molecules/sidesheet/Sidesheet.d.ts +3 -6
  255. package/dist/core/components/molecules/tooltip/Tooltip.d.ts +3 -3
  256. package/dist/core/components/organisms/choiceList/ChoiceList.d.ts +5 -6
  257. package/dist/core/components/organisms/dateRangePicker/DateRangePicker.d.ts +24 -0
  258. package/dist/core/components/organisms/grid/Cell.d.ts +1 -1
  259. package/dist/core/components/organisms/grid/Grid.d.ts +3 -3
  260. package/dist/core/components/organisms/grid/GridContext.d.ts +1 -1
  261. package/dist/core/components/organisms/inlineMessage/InlineMessage.d.ts +2 -2
  262. package/dist/core/components/organisms/table/Table.d.ts +2 -2
  263. package/dist/core/components/patterns/dateRangePicker/withCustomPopover.story.d.ts +5 -1
  264. package/dist/core/utils/docPage/generateImports.d.ts +1 -1
  265. package/dist/core/utils/overlayHelper.d.ts +1 -1
  266. package/dist/core/utils/types.d.ts +1 -1
  267. package/dist/index.esm.js +221 -245
  268. package/dist/index.js +225 -233
  269. package/dist/index.js.map +1 -1
  270. package/dist/index.umd.js +1 -1
  271. package/dist/index.umd.js.br +0 -0
  272. package/dist/index.umd.js.gz +0 -0
  273. package/dts.config.js +11 -2
  274. package/package.json +20 -18
  275. package/tsconfig.json +3 -16
  276. package/tsconfig.type.json +2 -1
  277. package/types/index.d.ts +2217 -0
  278. package/types/{innovaccer-design-system/tsconfig.json → tsconfig.json} +1 -1
  279. package/types/{innovaccer-design-system/tslint.json → tslint.json} +0 -0
  280. package/types/types-tests.tsx +936 -0
  281. package/core/components/atoms/button/__stories__/variants/state/Success.story.tsx +0 -89
  282. package/core/components/atoms/message/__stories__/default.story.tsx +0 -16
  283. package/core/components/atoms/toast/__stories__/DefaultToast.story.tsx +0 -16
  284. package/core/components/molecules/dropzone/__stories__/variants/DropzoneWithFileList.story.tsx +0 -176
  285. package/core/components/molecules/fileUploader/__stories__/variants/FileUploaderList.story.tsx +0 -80
  286. package/types/innovaccer-design-system/index.d.ts +0 -39
  287. package/types/innovaccer-design-system/innovaccer-design-system-tests.ts +0 -0
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
 
2
2
  /**
3
- * Generated on: 1639036106070
3
+ * Generated on: 1639051084834
4
4
  * Package: @innovaccer/design-system
5
- * Version: v2.6.0
5
+ * Version: v2.7.0-0
6
6
  * License: MIT
7
7
  * Docs: https://innovaccer.github.io/design-system
8
8
  */
@@ -991,11 +991,14 @@
991
991
  var useAccessibilityProps = function useAccessibilityProps(_a) {
992
992
  var onClick = _a.onClick,
993
993
  _onKeyDown = _a.onKeyDown,
994
- role = _a.role;
994
+ role = _a.role,
995
+ rest = __rest(_a, ["onClick", "onKeyDown", "role"]);
996
+
995
997
  return __assign({}, onClick ? {
996
998
  onClick: onClick,
997
999
  role: role || 'button',
998
1000
  tabIndex: 0,
1001
+ 'aria-label': rest['aria-label'],
999
1002
  onKeyDown: function onKeyDown(e) {
1000
1003
  if (_onKeyDown) {
1001
1004
  _onKeyDown(e);
@@ -1008,7 +1011,8 @@
1008
1011
  }
1009
1012
  }
1010
1013
  } : {
1011
- role: role
1014
+ role: role,
1015
+ 'aria-label': rest['aria-label']
1012
1016
  });
1013
1017
  };
1014
1018
 
@@ -1050,7 +1054,6 @@
1050
1054
  }
1051
1055
 
1052
1056
  return /*#__PURE__*/React__namespace.createElement("i", __assign({}, baseProps, {
1053
- role: "alert",
1054
1057
  className: iconClass,
1055
1058
  style: styles
1056
1059
  }, accessibilityProps), type ? name + "_" + type : name);
@@ -1086,9 +1089,9 @@
1086
1089
  onChange = props.onChange,
1087
1090
  name = props.name,
1088
1091
  value = props.value,
1089
- className = props.className;
1090
- props.checked;
1091
- var helpText = props.helpText,
1092
+ className = props.className,
1093
+ checkedProp = props.checked,
1094
+ helpText = props.helpText,
1092
1095
  rest = __rest(props, ["size", "tabIndex", "defaultChecked", "indeterminate", "label", "disabled", "onChange", "name", "value", "className", "checked", "helpText"]);
1093
1096
 
1094
1097
  var ref = React__namespace.useRef(null);
@@ -1096,7 +1099,7 @@
1096
1099
  return ref.current;
1097
1100
  });
1098
1101
 
1099
- var _h = React__namespace.useState(props.checked === undefined ? defaultChecked : props.checked),
1102
+ var _h = React__namespace.useState(checkedProp === undefined ? defaultChecked : checkedProp),
1100
1103
  checked = _h[0],
1101
1104
  setChecked = _h[1];
1102
1105
 
@@ -1104,10 +1107,10 @@
1104
1107
  setIndeterminate(indeterminate);
1105
1108
  }, [indeterminate]);
1106
1109
  React__namespace.useEffect(function () {
1107
- if (props.checked !== undefined) {
1108
- setChecked(props.checked);
1110
+ if (checkedProp !== undefined) {
1111
+ setChecked(checkedProp);
1109
1112
  }
1110
- }, [props.checked]);
1113
+ }, [checkedProp]);
1111
1114
  var CheckboxClass = classNames__default["default"]((_a = {}, _a['Checkbox'] = true, _a['Checkbox--disabled'] = disabled, _a), className);
1112
1115
  var CheckboxOuterWrapper = classNames__default["default"]((_b = {}, _b['Checkbox-outerWrapper'] = true, _b["Checkbox-outerWrapper--" + size] = size, _b));
1113
1116
  var CheckboxInputWrapper = classNames__default["default"]((_c = {}, _c['Checkbox-input'] = true, _c['Checkbox-input--checked'] = checked, _c['Checkbox-input--indeterminate'] = props.indeterminate, _c));
@@ -1119,7 +1122,7 @@
1119
1122
  };
1120
1123
 
1121
1124
  var onChangeHandler = function onChangeHandler(e) {
1122
- if (props.checked === undefined) {
1125
+ if (checkedProp === undefined) {
1123
1126
  setChecked(e.target.checked);
1124
1127
  setIndeterminate(e.target.indeterminate);
1125
1128
  }
@@ -1498,51 +1501,51 @@
1498
1501
 
1499
1502
  switch (loadingType) {
1500
1503
  case 'DEFAULT':
1501
- return /*#__PURE__*/React__default["default"].createElement(PlaceholderParagraph, {
1504
+ return /*#__PURE__*/React__namespace.createElement(PlaceholderParagraph, {
1502
1505
  length: 'large',
1503
1506
  "data-test": "DesignSystem-Dropdown--PlaceholderParagraph"
1504
1507
  });
1505
1508
 
1506
1509
  case 'WITH_ICON':
1507
- return /*#__PURE__*/React__default["default"].createElement(Placeholder, {
1510
+ return /*#__PURE__*/React__namespace.createElement(Placeholder, {
1508
1511
  withImage: true,
1509
1512
  round: true,
1510
1513
  "data-test": "DesignSystem-Dropdown--Placeholder"
1511
- }, /*#__PURE__*/React__default["default"].createElement(PlaceholderParagraph, {
1514
+ }, /*#__PURE__*/React__namespace.createElement(PlaceholderParagraph, {
1512
1515
  length: "large"
1513
1516
  }));
1514
1517
 
1515
1518
  case 'WITH_META':
1516
- return /*#__PURE__*/React__default["default"].createElement(Placeholder, {
1519
+ return /*#__PURE__*/React__namespace.createElement(Placeholder, {
1517
1520
  withImage: false,
1518
1521
  "data-test": "DesignSystem-Dropdown--Placeholder"
1519
- }, /*#__PURE__*/React__default["default"].createElement(PlaceholderParagraph, {
1522
+ }, /*#__PURE__*/React__namespace.createElement(PlaceholderParagraph, {
1520
1523
  length: "large",
1521
1524
  "data-test": "DesignSystem-Dropdown--PlaceholderParagraph"
1522
- }), /*#__PURE__*/React__default["default"].createElement(PlaceholderParagraph, {
1525
+ }), /*#__PURE__*/React__namespace.createElement(PlaceholderParagraph, {
1523
1526
  length: "medium",
1524
1527
  size: "xxs",
1525
1528
  "data-test": "DesignSystem-Dropdown--PlaceholderParagraph"
1526
1529
  }));
1527
1530
 
1528
1531
  case 'WITH_CHECKBOX':
1529
- return /*#__PURE__*/React__default["default"].createElement(Placeholder, {
1532
+ return /*#__PURE__*/React__namespace.createElement(Placeholder, {
1530
1533
  withImage: true,
1531
1534
  "data-test": "DesignSystem-Dropdown--Placeholder"
1532
- }, /*#__PURE__*/React__default["default"].createElement(PlaceholderParagraph, {
1535
+ }, /*#__PURE__*/React__namespace.createElement(PlaceholderParagraph, {
1533
1536
  length: "large"
1534
1537
  }));
1535
1538
 
1536
1539
  case 'ICON_WITH_META':
1537
- return /*#__PURE__*/React__default["default"].createElement(Placeholder, {
1540
+ return /*#__PURE__*/React__namespace.createElement(Placeholder, {
1538
1541
  withImage: true,
1539
1542
  round: true,
1540
1543
  imageSize: 'medium',
1541
1544
  "data-test": "DesignSystem-Dropdown--Placeholder"
1542
- }, /*#__PURE__*/React__default["default"].createElement(PlaceholderParagraph, {
1545
+ }, /*#__PURE__*/React__namespace.createElement(PlaceholderParagraph, {
1543
1546
  length: "large",
1544
1547
  "data-test": "DesignSystem-Dropdown--PlaceholderParagraph"
1545
- }), /*#__PURE__*/React__default["default"].createElement(PlaceholderParagraph, {
1548
+ }), /*#__PURE__*/React__namespace.createElement(PlaceholderParagraph, {
1546
1549
  length: "medium",
1547
1550
  size: "xxs",
1548
1551
  "data-test": "DesignSystem-Dropdown--PlaceholderParagraph"
@@ -1563,20 +1566,20 @@
1563
1566
  var _d = props.listOptions,
1564
1567
  listOptions = _d === void 0 ? [] : _d,
1565
1568
  inputRef = props.inputRef,
1566
- _f = props.align,
1567
- align = _f === void 0 ? 'right' : _f,
1568
- _g = props.optionType,
1569
- optionType = _g === void 0 ? 'DEFAULT' : _g,
1570
- _h = props.applyButtonLabel,
1571
- applyButtonLabel = _h === void 0 ? 'Apply' : _h,
1572
- _j = props.cancelButtonLabel,
1573
- cancelButtonLabel = _j === void 0 ? 'Cancel' : _j,
1574
- _k = props.truncateOption,
1575
- truncateOption = _k === void 0 ? true : _k,
1576
- _l = props.withSelectAll,
1577
- withSelectAll = _l === void 0 ? true : _l,
1578
- _m = props.maxHeight,
1579
- maxHeight = _m === void 0 ? 200 : _m,
1569
+ _e = props.align,
1570
+ align = _e === void 0 ? 'right' : _e,
1571
+ _f = props.optionType,
1572
+ optionType = _f === void 0 ? 'DEFAULT' : _f,
1573
+ _g = props.applyButtonLabel,
1574
+ applyButtonLabel = _g === void 0 ? 'Apply' : _g,
1575
+ _h = props.cancelButtonLabel,
1576
+ cancelButtonLabel = _h === void 0 ? 'Cancel' : _h,
1577
+ _j = props.truncateOption,
1578
+ truncateOption = _j === void 0 ? true : _j,
1579
+ _k = props.withSelectAll,
1580
+ withSelectAll = _k === void 0 ? true : _k,
1581
+ _l = props.maxHeight,
1582
+ maxHeight = _l === void 0 ? 200 : _l,
1580
1583
  customTrigger = props.customTrigger,
1581
1584
  selected = props.selected,
1582
1585
  tempSelected = props.tempSelected,
@@ -1595,7 +1598,9 @@
1595
1598
  applyOptions = props.applyOptions,
1596
1599
  cancelOptions = props.cancelOptions,
1597
1600
  toggleDropdown = props.toggleDropdown,
1598
- className = props.className;
1601
+ className = props.className,
1602
+ _m = props.searchPlaceholder,
1603
+ searchPlaceholder = _m === void 0 ? 'Search..' : _m;
1599
1604
  var baseProps = extractBaseProps(props);
1600
1605
  var dropdownRef = /*#__PURE__*/React__namespace.createRef();
1601
1606
  var triggerRef = /*#__PURE__*/React__namespace.createRef();
@@ -1783,7 +1788,7 @@
1783
1788
  name: "Dropdown-search",
1784
1789
  icon: 'search',
1785
1790
  value: searchTerm,
1786
- placeholder: 'Search..',
1791
+ placeholder: searchPlaceholder,
1787
1792
  autoFocus: true,
1788
1793
  onChange: searchHandler,
1789
1794
  onClear: searchClearHandler,
@@ -1814,7 +1819,7 @@
1814
1819
  var label = selectAllLabel.trim() ? selectAllLabel.trim() : 'Select All';
1815
1820
  return /*#__PURE__*/React__namespace.createElement("div", {
1816
1821
  className: SelectAllClass,
1817
- onMouseEnter: function onMouseEnter(_e) {
1822
+ onMouseEnter: function onMouseEnter() {
1818
1823
  return updateActiveOption(0, true);
1819
1824
  }
1820
1825
  }, /*#__PURE__*/React__namespace.createElement(Checkbox, {
@@ -4057,6 +4062,8 @@
4057
4062
  };
4058
4063
 
4059
4064
  var GenericChip = function GenericChip(props) {
4065
+ var _a, _b;
4066
+
4060
4067
  var label = props.label,
4061
4068
  icon = props.icon,
4062
4069
  clearButton = props.clearButton,
@@ -4082,6 +4089,8 @@
4082
4089
  if (onClick) onClick();
4083
4090
  };
4084
4091
 
4092
+ var iconAppearance = classNames__default["default"]((_a = {}, _a['disabled'] = disabled && !selected, _a['info'] = selected, _a['subtle'] = !disabled && !selected && !clearButton && !icon, _a['default'] = !disabled && !selected && !clearButton && icon, _a));
4093
+ var textAppearance = classNames__default["default"]((_b = {}, _b['disabled'] = disabled && !selected, _b['link'] = selected, _b['default'] = !disabled && !selected, _b));
4085
4094
  return /*#__PURE__*/React__namespace.createElement("div", __assign({
4086
4095
  "data-test": "DesignSystem-GenericChip--GenericChipWrapper"
4087
4096
  }, baseProps, {
@@ -4090,15 +4099,15 @@
4090
4099
  }), icon && /*#__PURE__*/React__namespace.createElement(Icon, {
4091
4100
  "data-test": "DesignSystem-GenericChip--Icon",
4092
4101
  name: icon,
4093
- appearance: disabled ? 'disabled' : selected ? 'info' : 'default',
4102
+ appearance: iconAppearance,
4094
4103
  className: iconClass('left')
4095
4104
  }), /*#__PURE__*/React__namespace.createElement(Text, {
4096
4105
  "data-test": "DesignSystem-GenericChip--Text",
4097
- appearance: disabled ? 'disabled' : 'default'
4106
+ appearance: textAppearance
4098
4107
  }, label), clearButton && /*#__PURE__*/React__namespace.createElement(Icon, {
4099
4108
  "data-test": "DesignSystem-GenericChip--clearButton",
4100
4109
  name: "clear",
4101
- appearance: disabled ? 'disabled' : selected ? 'info' : 'subtle',
4110
+ appearance: iconAppearance,
4102
4111
  className: iconClass('right'),
4103
4112
  onClick: onCloseHandler
4104
4113
  }));
@@ -4130,7 +4139,7 @@
4130
4139
 
4131
4140
  var chipClass = classNames__default["default"]((_a = {
4132
4141
  Chip: true
4133
- }, _a["Chip-" + type + "--disabled"] = disabled, _a["Chip--" + type] = type && !disabled, _a["Chip-" + type + "--selected"] = selected && !disabled, _a), className);
4142
+ }, _a["Chip-" + type + "--disabled"] = disabled, _a["Chip--" + type] = type && !disabled, _a["Chip-" + type + "--selected"] = selected && !disabled, _a["Chip-selection--selectedDisabled"] = type === 'selection' && selected && disabled, _a), className);
4134
4143
  var clearbutton = type === 'action' ? false : clearButton;
4135
4144
  var select = type === 'selection' && selected ? true : false;
4136
4145
  return /*#__PURE__*/React__namespace.createElement(GenericChip, __assign({
@@ -4281,13 +4290,13 @@
4281
4290
  };
4282
4291
 
4283
4292
  var mask = date[inputFormat];
4284
- return /*#__PURE__*/React__namespace.createElement(InputMask, __assign({
4293
+ return /*#__PURE__*/React__namespace.createElement(X, __assign({
4285
4294
  icon: "events",
4286
4295
  placeholder: inputFormat
4287
4296
  }, inputOptions, {
4288
4297
  error: showError,
4289
4298
  mask: mask,
4290
- value: date$1 ? translateToString(inputFormat, date$1) : init ? InputMask.utils.getDefaultValue(mask, placeholderChar) : '',
4299
+ value: date$1 ? translateToString(inputFormat, date$1) : init ? X.utils.getDefaultValue(mask, placeholderChar) : '',
4291
4300
  onChange: onChangeHandler,
4292
4301
  onBlur: onBlurHandler,
4293
4302
  onClear: onClearHandler,
@@ -4579,12 +4588,12 @@
4579
4588
  };
4580
4589
 
4581
4590
  var mask = time[inputFormat];
4582
- return /*#__PURE__*/React__namespace.createElement(InputMask, __assign({
4591
+ return /*#__PURE__*/React__namespace.createElement(X, __assign({
4583
4592
  placeholder: placeholders[inputFormat],
4584
4593
  placeholderChar: placeholderChar
4585
4594
  }, inputOptions, {
4586
4595
  mask: mask,
4587
- value: time$1 ? translateToTime(inputFormat, time$1) : init ? InputMask.utils.getDefaultValue(mask, placeholderChar) : '',
4596
+ value: time$1 ? translateToTime(inputFormat, time$1) : init ? X.utils.getDefaultValue(mask, placeholderChar) : '',
4588
4597
  validators: inputValidator,
4589
4598
  onChange: onChangeHandler,
4590
4599
  onClear: onClearHandler,
@@ -4980,7 +4989,10 @@
4980
4989
  className = props.className,
4981
4990
  rest = __rest(props, ["mask", "value", "placeholderChar", "validators", "clearOnEmptyBlur", "defaultValue", "mask", "error", "caption", "required", "onChange", "onBlur", "onFocus", "onClear", "className"]);
4982
4991
 
4983
- var getNewCursorPosition = function getNewCursorPosition(type, position) {
4992
+ var isEditable = React__namespace.useCallback(function (pos) {
4993
+ return _typeof(mask[pos]) === 'object';
4994
+ }, [mask]);
4995
+ var getNewCursorPosition = React__namespace.useCallback(function (type, position) {
4984
4996
  if (type === 'right') {
4985
4997
  for (var i = position; i < mask.length; i++) {
4986
4998
  if (isEditable(i)) return i;
@@ -4998,17 +5010,15 @@
4998
5010
  }
4999
5011
 
5000
5012
  return position;
5001
- };
5002
-
5003
- var getDefaultSelection = function getDefaultSelection() {
5013
+ }, [mask, isEditable]);
5014
+ var getDefaultSelection = React__namespace.useCallback(function () {
5004
5015
  var pos = getNewCursorPosition('right', 0);
5005
5016
  return {
5006
5017
  start: pos,
5007
5018
  end: pos
5008
5019
  };
5009
- };
5010
-
5011
- var getPlaceholderValue = function getPlaceholderValue(start, end) {
5020
+ }, [getNewCursorPosition]);
5021
+ var getPlaceholderValue = React__namespace.useCallback(function (start, end) {
5012
5022
  if (start === void 0) {
5013
5023
  start = 0;
5014
5024
  }
@@ -5018,66 +5028,57 @@
5018
5028
  }
5019
5029
 
5020
5030
  return getDefaultValue(mask, placeholderChar).slice(start, end + 1);
5021
- };
5022
-
5023
- var getSelectionLength = function getSelectionLength(val) {
5024
- return Math.abs(val.end - val.start);
5025
- };
5026
-
5027
- var isEditable = function isEditable(pos) {
5028
- return _typeof(mask[pos]) === 'object';
5029
- };
5030
-
5031
+ }, [mask, placeholderChar]);
5032
+ var defaultPlaceholderValue = React__namespace.useMemo(function () {
5033
+ return getPlaceholderValue();
5034
+ }, [getPlaceholderValue]);
5035
+ var defaultSelection = React__namespace.useMemo(function () {
5036
+ return getDefaultSelection();
5037
+ }, [getDefaultSelection]);
5038
+ var ref = React__namespace.useRef(null);
5031
5039
  var deferId = React__namespace.useRef();
5032
- var selectionRef = React__namespace.useRef(0);
5040
+ var selectionPos = React__namespace.useRef(defaultSelection);
5041
+ var newSelectionPos = React__namespace.useRef(0);
5033
5042
 
5034
5043
  var _d = React__namespace.useState(defaultValue || valueProp || ''),
5035
5044
  value = _d[0],
5036
5045
  setValue = _d[1];
5037
5046
 
5038
- var _e = React__namespace.useState(getDefaultSelection()),
5039
- selection = _e[0],
5040
- setSelection = _e[1];
5041
-
5042
- var ref = React__namespace.useRef(null);
5043
5047
  React__namespace.useImperativeHandle(forwardRef, function () {
5044
5048
  return ref.current;
5045
5049
  });
5046
5050
  React__namespace.useEffect(function () {
5047
5051
  setValue(valueProp || '');
5048
5052
  }, [valueProp]);
5049
-
5050
- var setCursorPosition = function setCursorPosition(val) {
5051
- return setSelectionPos({
5052
- start: val,
5053
- end: val
5054
- });
5055
- };
5056
-
5057
- var getCurrSelection = function getCurrSelection() {
5053
+ React__namespace.useEffect(function () {
5054
+ setCursorPosition(newSelectionPos.current);
5055
+ }, [value]);
5056
+ var getSelectionLength = React__namespace.useCallback(function (val) {
5057
+ return Math.abs(val.end - val.start);
5058
+ }, []);
5059
+ var getCurrSelection = React__namespace.useCallback(function () {
5058
5060
  var _a, _b;
5059
5061
 
5060
5062
  return {
5061
5063
  start: ((_a = ref.current) === null || _a === void 0 ? void 0 : _a.selectionStart) || 0,
5062
5064
  end: ((_b = ref.current) === null || _b === void 0 ? void 0 : _b.selectionEnd) || 0
5063
5065
  };
5064
- };
5065
-
5066
- var setSelectionPos = function setSelectionPos(pos) {
5066
+ }, [ref.current]);
5067
+ var setSelectionPos = React__namespace.useCallback(function (pos) {
5067
5068
  if (ref.current) {
5068
5069
  var el = ref.current;
5069
5070
  var start = Math.min(pos.start, pos.end);
5070
5071
  var end = Math.max(pos.start, pos.end);
5071
5072
  el.setSelectionRange(start, end);
5072
5073
  }
5073
- };
5074
-
5075
- var updateSelection = function updateSelection() {
5076
- setSelection(getCurrSelection());
5077
- deferId.current = window.requestAnimationFrame(updateSelection);
5078
- };
5079
-
5080
- var insertAtIndex = function insertAtIndex(currValue, index, iterator) {
5074
+ }, [ref.current]);
5075
+ var setCursorPosition = React__namespace.useCallback(function (val) {
5076
+ return setSelectionPos({
5077
+ start: val,
5078
+ end: val
5079
+ });
5080
+ }, [setSelectionPos]);
5081
+ var insertAtIndex = React__namespace.useCallback(function (currValue, index, iterator) {
5081
5082
  if (iterator === void 0) {
5082
5083
  iterator = 0;
5083
5084
  }
@@ -5091,7 +5092,10 @@
5091
5092
  }
5092
5093
 
5093
5094
  if (iterator >= currValue.length) {
5094
- selectionRef.current = index;
5095
+ selectionPos.current = {
5096
+ start: index,
5097
+ end: index
5098
+ };
5095
5099
  return newValue;
5096
5100
  }
5097
5101
 
@@ -5111,12 +5115,15 @@
5111
5115
 
5112
5116
  newValue += insertAtIndex(currValue, newIndex, newIterator);
5113
5117
  return newValue;
5114
- };
5115
-
5116
- var onChangeHandler = function onChangeHandler(e) {
5118
+ }, [mask, placeholderChar, isEditable]);
5119
+ var updateSelection = React__namespace.useCallback(function () {
5120
+ selectionPos.current = getCurrSelection();
5121
+ deferId.current = window.requestAnimationFrame(updateSelection);
5122
+ }, [selectionPos.current, getCurrSelection]);
5123
+ var onChangeHandler = React__namespace.useCallback(function (e) {
5117
5124
  var inputVal = e.currentTarget.value;
5118
5125
  var currSelection = getCurrSelection();
5119
- var start = Math.min(selection.start, currSelection.start);
5126
+ var start = Math.min(selectionPos.current.start, currSelection.start);
5120
5127
  var end = currSelection.end;
5121
5128
  var cursorPosition = start;
5122
5129
  var enteredVal = '';
@@ -5127,8 +5134,8 @@
5127
5134
  updatedVal = insertAtIndex(enteredVal, start);
5128
5135
  insertedStringLength = updatedVal.length;
5129
5136
 
5130
- if (currSelection.end > selection.end) {
5131
- removedLength = insertedStringLength ? getSelectionLength(selection) : 0;
5137
+ if (currSelection.end > selectionPos.current.end) {
5138
+ removedLength = insertedStringLength ? getSelectionLength(selectionPos.current) : 0;
5132
5139
  } else if (inputVal.length < value.length) {
5133
5140
  removedLength = value.length - inputVal.length;
5134
5141
  }
@@ -5156,54 +5163,50 @@
5156
5163
  }
5157
5164
 
5158
5165
  var newValue = maskedVal.slice(0, mask.length).join('');
5159
- window.requestAnimationFrame(function () {
5160
- return setCursorPosition(cursorPosition);
5161
- });
5166
+ newSelectionPos.current = cursorPosition;
5162
5167
 
5163
- if (isValid(validators, newValue) && newValue !== value) {
5168
+ if (newValue !== value && isValid(validators, newValue)) {
5164
5169
  setValue(newValue);
5165
- if (onChange) onChange(e, newValue);
5170
+ onChange === null || onChange === void 0 ? void 0 : onChange(e, newValue);
5171
+ } else {
5172
+ window.requestAnimationFrame(function () {
5173
+ return setCursorPosition(newSelectionPos.current);
5174
+ });
5166
5175
  }
5167
- };
5168
-
5169
- var onBlurHandler = function onBlurHandler(e) {
5176
+ }, [selectionPos.current, validators, getCurrSelection, insertAtIndex, getSelectionLength, getPlaceholderValue, getNewCursorPosition, isEditable, setCursorPosition, setValue, onChange]);
5177
+ var onBlurHandler = React__namespace.useCallback(function (e) {
5170
5178
  var inputVal = e.currentTarget.value;
5171
5179
 
5172
5180
  if (clearOnEmptyBlur) {
5173
- if (inputVal === getPlaceholderValue()) {
5181
+ if (inputVal === defaultPlaceholderValue) {
5174
5182
  setValue('');
5175
5183
  inputVal = '';
5176
5184
  }
5177
5185
  }
5178
5186
 
5179
- if (onBlur) onBlur(e, inputVal);
5187
+ onBlur === null || onBlur === void 0 ? void 0 : onBlur(e, inputVal);
5180
5188
  if (deferId.current) window.cancelAnimationFrame(deferId.current);
5181
- };
5182
-
5183
- var onClearHandler = function onClearHandler(e) {
5184
- setValue(getPlaceholderValue());
5185
- window.requestAnimationFrame(function () {
5186
- return setCursorPosition(getDefaultSelection().start);
5187
- });
5188
- if (onClear) onClear(e);
5189
- };
5190
-
5191
- var onFocusHandler = function onFocusHandler(e) {
5189
+ }, [clearOnEmptyBlur, deferId.current, getPlaceholderValue, setValue, onBlur]);
5190
+ var onClearHandler = React__namespace.useCallback(function (e) {
5191
+ newSelectionPos.current = defaultSelection.start;
5192
+ setValue(defaultPlaceholderValue);
5193
+ onClear === null || onClear === void 0 ? void 0 : onClear(e);
5194
+ }, [setValue, getPlaceholderValue, setCursorPosition, getDefaultSelection, onClear]);
5195
+ var onFocusHandler = React__namespace.useCallback(function (e) {
5192
5196
  deferId.current = window.requestAnimationFrame(updateSelection);
5193
5197
 
5194
5198
  if (!value) {
5199
+ newSelectionPos.current = defaultSelection.start;
5195
5200
  setValue(getPlaceholderValue());
5196
- window.requestAnimationFrame(function () {
5197
- return setSelectionPos(getDefaultSelection());
5198
- });
5199
5201
  }
5200
5202
 
5201
- if (onFocus) onFocus(e);
5202
- };
5203
-
5204
- var classes = classNames__default["default"]({
5205
- 'd-flex flex-column flex-grow-1': true
5206
- }, className);
5203
+ onFocus === null || onFocus === void 0 ? void 0 : onFocus(e);
5204
+ }, [deferId.current, value, updateSelection, setValue, setSelectionPos, onFocus]);
5205
+ var classes = React__namespace.useMemo(function () {
5206
+ return classNames__default["default"]({
5207
+ 'd-flex flex-column flex-grow-1': true
5208
+ }, className);
5209
+ }, [className]);
5207
5210
  return /*#__PURE__*/React__namespace.createElement("div", {
5208
5211
  className: classes,
5209
5212
  "data-test": "DesignSystem-InputMask--Wrapper"
@@ -5227,6 +5230,7 @@
5227
5230
  InputMask.utils = {
5228
5231
  getDefaultValue: getDefaultValue
5229
5232
  };
5233
+ var X = InputMask;
5230
5234
 
5231
5235
  var Label = function Label(props) {
5232
5236
  var _a;
@@ -5509,10 +5513,11 @@
5509
5513
  var Message = function Message(props) {
5510
5514
  var _a, _b, _c, _d;
5511
5515
 
5512
- var appearance = props.appearance,
5513
- actions = props.actions,
5516
+ var actions = props.actions,
5514
5517
  title = props.title,
5515
5518
  className = props.className;
5519
+ var appearance = props.appearance;
5520
+ appearance = appearance === 'default' ? 'info' : appearance;
5516
5521
  var baseProps = extractBaseProps(props);
5517
5522
  var MessageClass = classNames__default["default"]((_a = {}, _a['Message'] = true, _a["Message--" + appearance] = appearance, _a), className);
5518
5523
  var IconClass = classNames__default["default"]((_b = {}, _b['Message-icon'] = true, _b["Message-icon--" + appearance] = appearance, _b['Message-icon--withTitle'] = title, _b));
@@ -5541,7 +5546,7 @@
5541
5546
  "data-test": "DesignSystem-Message"
5542
5547
  }, baseProps, {
5543
5548
  className: MessageClass
5544
- }), appearance !== 'default' && /*#__PURE__*/React__namespace.createElement(Icon, {
5549
+ }), /*#__PURE__*/React__namespace.createElement(Icon, {
5545
5550
  "data-test": "DesignSystem-Message--Icon",
5546
5551
  name: IconMapping$2[appearance],
5547
5552
  appearance: appearance,
@@ -5557,7 +5562,7 @@
5557
5562
  };
5558
5563
  Message.displayName = 'Message';
5559
5564
  Message.defaultProps = {
5560
- appearance: 'default',
5565
+ appearance: 'info',
5561
5566
  description: ''
5562
5567
  };
5563
5568
 
@@ -5693,7 +5698,7 @@
5693
5698
  values[index] = fillValue;
5694
5699
  }
5695
5700
  }
5696
- function isElementOfType(element, _ComponentType) {
5701
+ function isElementOfType(element) {
5697
5702
  return element != null && element.type != null;
5698
5703
  }
5699
5704
 
@@ -6347,7 +6352,7 @@
6347
6352
  return;
6348
6353
  }
6349
6354
 
6350
- if (!ReactDOM__namespace.findDOMNode(element.current).contains(event.target)) {
6355
+ if (!element.current.contains(event.target)) {
6351
6356
  onOutsideClick(event);
6352
6357
  }
6353
6358
  }, []);
@@ -6814,12 +6819,13 @@
6814
6819
  var Toast = function Toast(props) {
6815
6820
  var _a, _b, _c, _d;
6816
6821
 
6817
- var appearance = props.appearance,
6818
- title = props.title,
6822
+ var title = props.title,
6819
6823
  message = props.message,
6820
6824
  actions = props.actions,
6821
6825
  onClose = props.onClose,
6822
6826
  className = props.className;
6827
+ var appearance = props.appearance;
6828
+ appearance = appearance === 'default' ? 'info' : appearance;
6823
6829
  var baseProps = extractBaseProps(props);
6824
6830
  var wrapperClass = classNames__default["default"]((_a = {}, _a['Toast'] = true, _a['Toast--withMessage'] = message, _a["Toast--" + appearance] = appearance, _a), className);
6825
6831
  var IconMapping = {
@@ -6878,7 +6884,7 @@
6878
6884
  };
6879
6885
  Toast.displayName = 'Toast';
6880
6886
  Toast.defaultProps = {
6881
- appearance: 'default'
6887
+ appearance: 'info'
6882
6888
  };
6883
6889
 
6884
6890
  var PopperWrapper = function (_super) {
@@ -6894,13 +6900,8 @@
6894
6900
  onToggle(newValue === undefined ? !open : newValue, type);
6895
6901
  };
6896
6902
 
6897
- _this.findDOMNode = function (ref) {
6898
- return ReactDOM__namespace.findDOMNode(ref.current);
6899
- };
6900
-
6901
6903
  _this.doesEventContainsElement = function (event, ref) {
6902
- var el = _this.findDOMNode(ref);
6903
-
6904
+ var el = ref.current;
6904
6905
  return el && el.contains(event.target);
6905
6906
  };
6906
6907
 
@@ -6963,7 +6964,7 @@
6963
6964
  this._throttleWait = false;
6964
6965
 
6965
6966
  if (this.props.open) {
6966
- var triggerElement = this.findDOMNode(this.triggerRef);
6967
+ var triggerElement = this.triggerRef.current;
6967
6968
  var zIndex = this.getZIndexForLayer(triggerElement);
6968
6969
  this.setState({
6969
6970
  zIndex: zIndex === undefined ? zIndex : zIndex + 1
@@ -7154,7 +7155,7 @@
7154
7155
  return PopperWrapper;
7155
7156
  }(React__namespace.Component);
7156
7157
 
7157
- var propsList$1 = ['appendToBody', 'trigger', 'hoverable', 'on', 'open', 'closeOnBackdropClick', 'offset', 'closeOnScroll'];
7158
+ var propsList = ['appendToBody', 'trigger', 'hoverable', 'on', 'open', 'closeOnBackdropClick', 'offset', 'closeOnScroll'];
7158
7159
  var Popover = function Popover(props) {
7159
7160
  var _a;
7160
7161
 
@@ -7165,16 +7166,17 @@
7165
7166
  onToggle = props.onToggle,
7166
7167
  className = props.className,
7167
7168
  hideOnReferenceEscape = props.hideOnReferenceEscape,
7168
- boundaryElement = props.boundaryElement,
7169
+ _b = props.boundaryElement,
7170
+ boundaryElement = _b === void 0 ? document.body : _b,
7169
7171
  rest = __rest(props, ["position", "customStyle", "dark", "children", "onToggle", "className", "hideOnReferenceEscape", "boundaryElement"]);
7170
7172
 
7171
- var _b = React__namespace.useState(!!props.open),
7172
- open = _b[0],
7173
- setOpen = _b[1];
7173
+ var _c = React__namespace.useState(!!props.open),
7174
+ open = _c[0],
7175
+ setOpen = _c[1];
7174
7176
 
7175
- var _c = React__namespace.useState(false),
7176
- init = _c[0],
7177
- setInit = _c[1];
7177
+ var _d = React__namespace.useState(false),
7178
+ init = _d[0],
7179
+ setInit = _d[1];
7178
7180
 
7179
7181
  React__namespace.useEffect(function () {
7180
7182
  if (props.open !== undefined) setOpen(props.open);
@@ -7208,12 +7210,11 @@
7208
7210
  }), PopoverWrapper);
7209
7211
  };
7210
7212
  Popover.displayName = 'Popover';
7211
- Popover.defaultProps = Object.assign({}, filterProps(PopperWrapper.defaultProps, propsList$1, true), {
7213
+ Popover.defaultProps = Object.assign({}, filterProps(PopperWrapper.defaultProps, propsList, true), {
7212
7214
  offset: 'large',
7213
7215
  position: 'bottom',
7214
7216
  hideOnReferenceEscape: true,
7215
- customStyle: {},
7216
- boundaryElement: document.body
7217
+ customStyle: {}
7217
7218
  });
7218
7219
 
7219
7220
  var keyCodes = {
@@ -7669,7 +7670,7 @@
7669
7670
  }), list);
7670
7671
  };
7671
7672
 
7672
- var propsList = ['trigger', 'on', 'open', 'offset', 'onToggle', 'dark', 'customStyle', 'closeOnBackdropClick', 'hideOnReferenceEscape', 'closeOnScroll'];
7673
+ var tooltipPropsList = ['trigger', 'on', 'open', 'offset', 'onToggle', 'dark', 'customStyle', 'closeOnBackdropClick', 'hideOnReferenceEscape', 'closeOnScroll'];
7673
7674
  var Tooltip = function Tooltip(props) {
7674
7675
  var children = props.children,
7675
7676
  tooltip = props.tooltip,
@@ -7687,7 +7688,7 @@
7687
7688
  offset: 'medium'
7688
7689
  }, rest), tooltipWrapper);
7689
7690
  };
7690
- Tooltip.defaultProps = Object.assign({}, filterProps(Popover.defaultProps, propsList), {
7691
+ Tooltip.defaultProps = Object.assign({}, filterProps(Popover.defaultProps, tooltipPropsList), {
7691
7692
  hoverable: false
7692
7693
  });
7693
7694
 
@@ -9586,12 +9587,12 @@
9586
9587
  }, startLabel && /*#__PURE__*/React__namespace.createElement(Label, {
9587
9588
  required: startInputOptions.required,
9588
9589
  withInput: true
9589
- }, startLabel), /*#__PURE__*/React__namespace.createElement(InputMask, __assign({
9590
+ }, startLabel), /*#__PURE__*/React__namespace.createElement(X, __assign({
9590
9591
  icon: "events",
9591
9592
  placeholder: inputFormat
9592
9593
  }, startInputOptions, {
9593
9594
  mask: mask,
9594
- value: startDate ? translateToString(inputFormat, startDate) : init ? InputMask.utils.getDefaultValue(mask, startPlaceholderChar) : '',
9595
+ value: startDate ? translateToString(inputFormat, startDate) : init ? X.utils.getDefaultValue(mask, startPlaceholderChar) : '',
9595
9596
  onChange: function onChange(e, val) {
9596
9597
  onChangeHandler(e, val || '', 'start');
9597
9598
  },
@@ -9615,12 +9616,12 @@
9615
9616
  }, endLabel && /*#__PURE__*/React__namespace.createElement(Label, {
9616
9617
  required: endInputOptions.required,
9617
9618
  withInput: true
9618
- }, endLabel), /*#__PURE__*/React__namespace.createElement(InputMask, __assign({
9619
+ }, endLabel), /*#__PURE__*/React__namespace.createElement(X, __assign({
9619
9620
  icon: "events",
9620
9621
  placeholder: inputFormat
9621
9622
  }, endInputOptions, {
9622
9623
  mask: mask,
9623
- value: endDate ? translateToString(inputFormat, endDate) : init ? InputMask.utils.getDefaultValue(mask, endPlaceholderChar) : '',
9624
+ value: endDate ? translateToString(inputFormat, endDate) : init ? X.utils.getDefaultValue(mask, endPlaceholderChar) : '',
9624
9625
  onChange: function onChange(e, val) {
9625
9626
  onChangeHandler(e, val || '', 'end');
9626
9627
  },
@@ -9659,7 +9660,7 @@
9659
9660
  var label = inputOptions.label;
9660
9661
  var _a = inputOptions.placeholderChar,
9661
9662
  placeholderChar = _a === void 0 ? '_' : _a;
9662
- var defaultValue = InputMask.utils.getDefaultValue(mask, placeholderChar).split(' - ');
9663
+ var defaultValue = X.utils.getDefaultValue(mask, placeholderChar).split(' - ');
9663
9664
  var sValue = startValue || defaultValue[0];
9664
9665
  var eValue = endValue || defaultValue[1];
9665
9666
 
@@ -9749,7 +9750,7 @@
9749
9750
  }, /*#__PURE__*/React__namespace.createElement(Column, null, label && /*#__PURE__*/React__namespace.createElement(Label, {
9750
9751
  required: inputOptions.required,
9751
9752
  withInput: true
9752
- }, label), /*#__PURE__*/React__namespace.createElement(InputMask, __assign({
9753
+ }, label), /*#__PURE__*/React__namespace.createElement(X, __assign({
9753
9754
  icon: "events",
9754
9755
  placeholder: inputFormat + " - " + inputFormat
9755
9756
  }, inputOptions, {
@@ -10146,6 +10147,15 @@
10146
10147
  return this.renderCalendar();
10147
10148
  };
10148
10149
 
10150
+ DateRangePicker.utils = {
10151
+ getCurrentWeek: getCurrentWeek,
10152
+ getPreviousWeek: getPreviousWeek,
10153
+ getPreviousMonth: getPreviousMonth,
10154
+ getPrevious90Days: getPrevious90Days,
10155
+ getCustomDates: getCustomDates,
10156
+ getCurrentYear: getCurrentYear,
10157
+ getCurrentMonth: getCurrentMonth
10158
+ };
10149
10159
  DateRangePicker.defaultProps = __assign(__assign({}, Calendar.defaultProps), {
10150
10160
  children: /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null),
10151
10161
  contentAlign: 'left',
@@ -10166,15 +10176,6 @@
10166
10176
  });
10167
10177
  return DateRangePicker;
10168
10178
  }(React__namespace.Component);
10169
- DateRangePicker.utils = {
10170
- getCurrentWeek: getCurrentWeek,
10171
- getPreviousWeek: getPreviousWeek,
10172
- getPreviousMonth: getPreviousMonth,
10173
- getPrevious90Days: getPrevious90Days,
10174
- getCustomDates: getCustomDates,
10175
- getCurrentYear: getCurrentYear,
10176
- getCurrentMonth: getCurrentMonth
10177
- };
10178
10179
 
10179
10180
  var TabsWrapper = function TabsWrapper(props) {
10180
10181
  var _a;
@@ -10862,7 +10863,7 @@
10862
10863
  dispatch({
10863
10864
  type: 'openDialog'
10864
10865
  });
10865
- inputRef.current.value = null;
10866
+ inputRef.current.value = '';
10866
10867
  inputRef.current.click();
10867
10868
  }
10868
10869
  }, [dispatch]);
@@ -10873,7 +10874,7 @@
10873
10874
  if (inputRef.current) {
10874
10875
  var files = inputRef.current.files;
10875
10876
 
10876
- if (!files.length) {
10877
+ if (!files || !files.length) {
10877
10878
  dispatch({
10878
10879
  type: 'closeDialog'
10879
10880
  });
@@ -10916,7 +10917,7 @@
10916
10917
  var dragTargetsRef = React.useRef([]);
10917
10918
 
10918
10919
  var onDocumentDrop = function onDocumentDrop(event) {
10919
- if (rootRef.current && rootRef.current.contains(event.target)) {
10920
+ if (event.target instanceof HTMLDivElement && rootRef.current && rootRef.current.contains(event.target)) {
10920
10921
  return;
10921
10922
  }
10922
10923
 
@@ -11037,11 +11038,12 @@
11037
11038
  errors = errors.concat(customErrors);
11038
11039
  }
11039
11040
 
11041
+ var filteredErrors = errors.filter(function (e) {
11042
+ return e;
11043
+ });
11040
11044
  fileRejections.push({
11041
11045
  file: file,
11042
- errors: errors.filter(function (e) {
11043
- return e;
11044
- })
11046
+ errors: filteredErrors
11045
11047
  });
11046
11048
  }
11047
11049
  });
@@ -11070,16 +11072,8 @@
11070
11072
  });
11071
11073
  }, [multiple, accept, minSize, maxSize, getFilesFromEvent, onDrop, onDropAccepted, onDropRejected]);
11072
11074
 
11073
- var composeHandler = function composeHandler(fn) {
11074
- return disabled ? null : fn;
11075
- };
11076
-
11077
- var composeKeyboardHandler = function composeKeyboardHandler(_fn) {
11078
- return null;
11079
- };
11080
-
11081
11075
  var composeDragHandler = function composeDragHandler(fn) {
11082
- return composeHandler(fn);
11076
+ return disabled ? null : fn;
11083
11077
  };
11084
11078
 
11085
11079
  var getRootProps = React.useMemo(function () {
@@ -11091,10 +11085,10 @@
11091
11085
  }
11092
11086
 
11093
11087
  var _c = _a.refKey,
11094
- refKey = _c === void 0 ? 'ref' : _c,
11095
- onKeyDown = _a.onKeyDown,
11096
- onFocus = _a.onFocus,
11097
- onBlur = _a.onBlur;
11088
+ refKey = _c === void 0 ? 'ref' : _c;
11089
+ _a.onKeyDown;
11090
+ _a.onFocus;
11091
+ _a.onBlur;
11098
11092
  _a.onClick;
11099
11093
  var onDragEnterCallback = _a.onDragEnterCallback,
11100
11094
  onDragOverCallback = _a.onDragOverCallback,
@@ -11103,9 +11097,6 @@
11103
11097
  rest = __rest(_a, ["refKey", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnterCallback", "onDragOverCallback", "onDragLeaveCallback", "onDropCallback"]);
11104
11098
 
11105
11099
  return __assign((_b = {
11106
- onKeyDown: composeKeyboardHandler(composeEventHandlers(onKeyDown, onKeyDownCb)),
11107
- onFocus: composeKeyboardHandler(composeEventHandlers(onFocus, onFocusCb)),
11108
- onBlur: composeKeyboardHandler(composeEventHandlers(onBlur, onBlurCb)),
11109
11100
  onDragEnter: composeDragHandler(composeEventHandlers(onDragEnterCallback, onDragEnterCb)),
11110
11101
  onDragOver: composeDragHandler(composeEventHandlers(onDragOverCallback, onDragOverCb)),
11111
11102
  onDragLeave: composeDragHandler(composeEventHandlers(onDragLeaveCallback, onDragLeaveCb)),
@@ -11137,8 +11128,8 @@
11137
11128
  style: {
11138
11129
  display: 'none'
11139
11130
  },
11140
- onChange: composeHandler(composeEventHandlers(onChange, onDropCb)),
11141
- onClick: composeHandler(composeEventHandlers(onClick, onInputElementClick)),
11131
+ onChange: composeDragHandler(composeEventHandlers(onChange, onDropCb)),
11132
+ onClick: composeDragHandler(composeEventHandlers(onClick, onInputElementClick)),
11142
11133
  autoComplete: 'off',
11143
11134
  tabIndex: -1
11144
11135
  }, _b[refKey] = inputRef, _b);
@@ -11171,7 +11162,7 @@
11171
11162
  draggedFiles: draggedFiles,
11172
11163
  fileError: fileError,
11173
11164
  isFocused: isFocused && !disabled,
11174
- open: composeHandler(openFileDialog)
11165
+ open: composeDragHandler(openFileDialog)
11175
11166
  });
11176
11167
  };
11177
11168
  DropzoneBase.displayName = 'DropzoneBase';
@@ -11248,42 +11239,42 @@
11248
11239
  var WrapperClass = classNames__default["default"]((_c = {}, _c['DropzoneWrapper'] = true, _c["DropzoneWrapper--" + type] = true, _c));
11249
11240
 
11250
11241
  var renderDropzone = function renderDropzone() {
11251
- if (isDragReject) return /*#__PURE__*/React__default["default"].createElement(DropzoneError, {
11242
+ if (isDragReject) return /*#__PURE__*/React__namespace.createElement(DropzoneError, {
11252
11243
  type: type,
11253
11244
  error: fileErrorMessages[fileError]
11254
11245
  });
11255
- if (isDragActive) return /*#__PURE__*/React__default["default"].createElement(DropzoneActive, {
11246
+ if (isDragActive) return /*#__PURE__*/React__namespace.createElement(DropzoneActive, {
11256
11247
  type: type
11257
11248
  });
11258
- return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, type !== 'tight' && /*#__PURE__*/React__default["default"].createElement(Icon, {
11249
+ return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, type !== 'tight' && /*#__PURE__*/React__namespace.createElement(Icon, {
11259
11250
  name: "backup",
11260
11251
  size: 64,
11261
11252
  className: IconClass
11262
- }), /*#__PURE__*/React__default["default"].createElement("div", {
11253
+ }), /*#__PURE__*/React__namespace.createElement("div", {
11263
11254
  className: WrapperClass,
11264
11255
  "data-test": "DesignSystem-Dropzone-Wrapper"
11265
- }, /*#__PURE__*/React__default["default"].createElement("span", null, /*#__PURE__*/React__default["default"].createElement(Text, {
11256
+ }, /*#__PURE__*/React__namespace.createElement("span", null, /*#__PURE__*/React__namespace.createElement(Text, {
11266
11257
  size: "large",
11267
11258
  weight: "strong",
11268
11259
  className: "mr-2",
11269
11260
  appearance: disabled ? 'disabled' : 'default'
11270
- }, "Drag your files here or"), /*#__PURE__*/React__default["default"].createElement("span", {
11261
+ }, "Drag your files here or"), /*#__PURE__*/React__namespace.createElement("span", {
11271
11262
  className: "cursor-pointer",
11272
11263
  onClick: open
11273
- }, /*#__PURE__*/React__default["default"].createElement(Text, {
11264
+ }, /*#__PURE__*/React__namespace.createElement(Text, {
11274
11265
  size: "large",
11275
11266
  weight: "strong",
11276
11267
  appearance: disabled ? 'disabled' : 'link'
11277
- }, "browse files")), /*#__PURE__*/React__default["default"].createElement("input", __assign({}, getInputProps()))), formatLabel && /*#__PURE__*/React__default["default"].createElement(Text, {
11268
+ }, "browse files")), /*#__PURE__*/React__namespace.createElement("input", __assign({}, getInputProps()))), formatLabel && /*#__PURE__*/React__namespace.createElement(Text, {
11278
11269
  appearance: disabled ? 'disabled' : 'subtle'
11279
- }, formatLabel), sizeLabel && /*#__PURE__*/React__default["default"].createElement(Text, {
11270
+ }, formatLabel), sizeLabel && /*#__PURE__*/React__namespace.createElement(Text, {
11280
11271
  appearance: disabled ? 'disabled' : 'subtle'
11281
- }, sizeLabel), sampleFileLink && /*#__PURE__*/React__default["default"].createElement("div", {
11272
+ }, sizeLabel), sampleFileLink && /*#__PURE__*/React__namespace.createElement("div", {
11282
11273
  className: "mt-5"
11283
11274
  }, sampleFileLink)));
11284
11275
  };
11285
11276
 
11286
- return /*#__PURE__*/React__default["default"].createElement("div", __assign({}, getRootProps(), baseProps, {
11277
+ return /*#__PURE__*/React__namespace.createElement("div", __assign({}, getRootProps(), baseProps, {
11287
11278
  className: DropzoneClass,
11288
11279
  "data-test": "DesignSystem-Dropzone"
11289
11280
  }), renderDropzone());
@@ -11772,7 +11763,7 @@
11772
11763
  showFilters: true
11773
11764
  };
11774
11765
 
11775
- var context = /*#__PURE__*/React__default["default"].createContext(__assign(__assign({}, defaultProps$1), {
11766
+ var context = /*#__PURE__*/React__namespace.createContext(__assign(__assign({}, defaultProps$1), {
11776
11767
  ref: null
11777
11768
  }));
11778
11769
  var GridProvider = context.Provider;
@@ -12004,18 +11995,19 @@
12004
11995
 
12005
11996
  var Cell = function Cell(props) {
12006
11997
  var context$1 = React__namespace.useContext(context);
12007
- var isHead = props.isHead,
12008
- firstCell = props.firstCell,
12009
- schema = props.schema,
12010
- data = props.data,
12011
- rowIndex = props.rowIndex,
12012
- colIndex = props.colIndex,
12013
- expandedState = props.expandedState,
12014
- onSelectAll = props.onSelectAll,
12015
- onMenuChange = props.onMenuChange,
12016
- onFilterChange = props.onFilterChange,
12017
- updateColumnSchema = props.updateColumnSchema,
12018
- reorderColumn = props.reorderColumn;
11998
+ var _a = props,
11999
+ isHead = _a.isHead,
12000
+ firstCell = _a.firstCell,
12001
+ schema = _a.schema,
12002
+ data = _a.data,
12003
+ rowIndex = _a.rowIndex,
12004
+ colIndex = _a.colIndex,
12005
+ expandedState = _a.expandedState,
12006
+ onSelectAll = _a.onSelectAll,
12007
+ onMenuChange = _a.onMenuChange,
12008
+ onFilterChange = _a.onFilterChange,
12009
+ updateColumnSchema = _a.updateColumnSchema,
12010
+ reorderColumn = _a.reorderColumn;
12019
12011
  var draggable = context$1.draggable,
12020
12012
  separator = context$1.separator,
12021
12013
  nestedRows = context$1.nestedRows,
@@ -12024,15 +12016,15 @@
12024
12016
  var name = schema.name,
12025
12017
  hidden = schema.hidden,
12026
12018
  pinned = schema.pinned,
12027
- _a = schema.cellType,
12028
- cellType = _a === void 0 ? 'DEFAULT' : _a;
12019
+ _b = schema.cellType,
12020
+ cellType = _b === void 0 ? 'DEFAULT' : _b;
12029
12021
 
12030
- var _b = getCellSize(cellType),
12031
- width = _b.width,
12032
- _c = _b.minWidth,
12033
- minWidth = _c === void 0 ? 96 : _c,
12034
- _d = _b.maxWidth,
12035
- maxWidth = _d === void 0 ? 800 : _d;
12022
+ var _c = getCellSize(cellType),
12023
+ width = _c.width,
12024
+ _d = _c.minWidth,
12025
+ minWidth = _d === void 0 ? 96 : _d,
12026
+ _e = _c.maxWidth,
12027
+ maxWidth = _e === void 0 ? 800 : _e;
12036
12028
 
12037
12029
  var cellClass = classNames__default["default"]({
12038
12030
  'Grid-cell': true,
@@ -12065,7 +12057,7 @@
12065
12057
  name: name,
12066
12058
  type: pinned || ''
12067
12059
  };
12068
- if (from.type === to.type) reorderColumn(from.name, to.name);
12060
+ if (from.type === to.type && reorderColumn) reorderColumn(from.name, to.name);
12069
12061
  }
12070
12062
  },
12071
12063
  style: {
@@ -14734,7 +14726,7 @@
14734
14726
  vertical: false
14735
14727
  };
14736
14728
 
14737
- var version = "2.6.0";
14729
+ var version = "2.7.0-0";
14738
14730
 
14739
14731
  exports.Avatar = Avatar;
14740
14732
  exports.AvatarGroup = AvatarGroup;
@@ -14778,7 +14770,7 @@
14778
14770
  exports.Icon = Icon;
14779
14771
  exports.InlineMessage = InlineMessage;
14780
14772
  exports.Input = Input;
14781
- exports.InputMask = InputMask;
14773
+ exports.InputMask = X;
14782
14774
  exports.Label = Label;
14783
14775
  exports.Legend = Legend;
14784
14776
  exports.Link = Link;