@qualtrics/ui-react 2.79.1 → 2.81.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 (361) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/__node_modules/@radix-ui/primitive/dist/index.js +5 -6
  3. package/dist/__node_modules/@radix-ui/react-arrow/dist/index.js +8 -7
  4. package/dist/__node_modules/@radix-ui/react-collection/dist/index.js +71 -63
  5. package/dist/__node_modules/@radix-ui/react-context/dist/index.js +10 -14
  6. package/dist/__node_modules/@radix-ui/react-direction/dist/index.js +2 -4
  7. package/dist/__node_modules/@radix-ui/react-dismissable-layer/dist/index.js +22 -15
  8. package/dist/__node_modules/@radix-ui/react-dropdown-menu/dist/index.js +89 -89
  9. package/dist/__node_modules/@radix-ui/react-focus-scope/dist/index.js +26 -19
  10. package/dist/__node_modules/@radix-ui/react-id/dist/index.js +5 -2
  11. package/dist/__node_modules/@radix-ui/react-menu/dist/index.js +165 -129
  12. package/dist/__node_modules/@radix-ui/react-popper/dist/index.js +139 -106
  13. package/dist/__node_modules/@radix-ui/react-portal/dist/index.js +9 -5
  14. package/dist/__node_modules/@radix-ui/react-presence/dist/index.js +27 -20
  15. package/dist/__node_modules/@radix-ui/react-primitive/dist/index.js +4 -5
  16. package/dist/__node_modules/@radix-ui/react-roving-focus/dist/index.js +61 -38
  17. package/dist/__node_modules/@radix-ui/react-slot/dist/index.js +8 -12
  18. package/dist/__node_modules/@radix-ui/react-use-controllable-state/dist/index.js +40 -35
  19. package/dist/__node_modules/@radix-ui/react-use-size/dist/index.js +5 -2
  20. package/dist/__shared/cjs/{index-91d2f6f8.js → index-2272eaad.js} +15 -9
  21. package/dist/__shared/cjs/{index-d4ec6b6f.js → index-7fd3ddfe.js} +2829 -2634
  22. package/dist/components/Accordion/Accordion.js +27 -21
  23. package/dist/components/Accordion/Accordion2.js +3 -3
  24. package/dist/components/Accordion/AccordionContext.js +6 -8
  25. package/dist/components/Accordion/AccordionHeader.js +13 -17
  26. package/dist/components/Accordion/AccordionPanel.js +7 -11
  27. package/dist/components/Accordion/AccordionSection.js +14 -11
  28. package/dist/components/Banner/Banner.js +10 -11
  29. package/dist/components/Banner/BannerBody.js +1 -3
  30. package/dist/components/Banner/BannerFooter.js +1 -3
  31. package/dist/components/Banner/BannerTitle.js +1 -3
  32. package/dist/components/BreakpointSwitch/Breakpoint.js +2 -5
  33. package/dist/components/BreakpointSwitch/BreakpointContext.js +3 -4
  34. package/dist/components/BreakpointSwitch/BreakpointSwitch.js +1 -3
  35. package/dist/components/Button/Button.js +3 -3
  36. package/dist/components/Button/Button2.js +19 -13
  37. package/dist/components/ButtonGroup/ButtonGroup.js +7 -7
  38. package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
  39. package/dist/components/Checkbox/Check.js +8 -6
  40. package/dist/components/Checkbox/Checkbox.js +31 -28
  41. package/dist/components/Checkbox/Checkbox2.js +3 -3
  42. package/dist/components/Checkbox/CheckboxField.js +14 -13
  43. package/dist/components/ColorPicker/Alpha.js +8 -12
  44. package/dist/components/ColorPicker/ColorPicker.js +67 -48
  45. package/dist/components/ColorPicker/ColorPicker2.js +3 -3
  46. package/dist/components/ColorPicker/ColorPickerFlyout.js +23 -24
  47. package/dist/components/ColorPicker/ColorPickerFlyoutInputs.js +27 -22
  48. package/dist/components/ColorPicker/ColorPickerWIthNoColor.js +11 -7
  49. package/dist/components/ColorPicker/Hue.js +9 -13
  50. package/dist/components/ColorPicker/Palette.js +23 -21
  51. package/dist/components/ColorPicker/Saturation.js +11 -15
  52. package/dist/components/ColorPicker/utils/hexToHsv.js +4 -5
  53. package/dist/components/ColorPicker/utils/hsvToHex.js +3 -5
  54. package/dist/components/ColorPicker/utils/rgbToHex.js +3 -5
  55. package/dist/components/Combobox/Combobox.js +166 -133
  56. package/dist/components/Combobox/Combobox2.js +3 -3
  57. package/dist/components/Combobox/ComboboxContext.js +3 -4
  58. package/dist/components/Combobox/ComboboxHeader.js +6 -6
  59. package/dist/components/Combobox/ComboboxIcon.js +14 -14
  60. package/dist/components/Combobox/ComboboxInput.js +41 -43
  61. package/dist/components/Combobox/ComboboxList.js +20 -20
  62. package/dist/components/Combobox/ComboboxOption.js +9 -10
  63. package/dist/components/ConfigPane/ConfigPane.js +52 -36
  64. package/dist/components/ConfigPane/ConfigPane2.js +3 -3
  65. package/dist/components/Divider/Divider.js +4 -4
  66. package/dist/components/Divider/Divider2.js +3 -3
  67. package/dist/components/Dropdown/ChildIndexContext/index.js +7 -9
  68. package/dist/components/Dropdown/ChildIndexContext/reach-descendants.js +18 -21
  69. package/dist/components/Dropdown/Dropdown.js +68 -43
  70. package/dist/components/Dropdown/Dropdown2.js +3 -3
  71. package/dist/components/Dropdown/DropdownButton.js +53 -47
  72. package/dist/components/Dropdown/DropdownContext.js +3 -4
  73. package/dist/components/Dropdown/DropdownHeader.js +12 -9
  74. package/dist/components/Dropdown/DropdownHeaderContext.js +3 -4
  75. package/dist/components/Dropdown/DropdownList.js +32 -32
  76. package/dist/components/Dropdown/DropdownOption.js +32 -30
  77. package/dist/components/Dropdown/DropdownSearch.js +12 -14
  78. package/dist/components/FilePicker/FilePicker.js +30 -25
  79. package/dist/components/FilePicker/FilePicker2.js +3 -3
  80. package/dist/components/FormField/Caption.js +3 -3
  81. package/dist/components/FormField/ErrorText.js +5 -5
  82. package/dist/components/FormField/FormField.js +27 -14
  83. package/dist/components/FormField/FormField2.js +3 -3
  84. package/dist/components/FormField/FormFieldContext.js +6 -13
  85. package/dist/components/FormField/HelperText.js +5 -5
  86. package/dist/components/FormField/ReadOnlyText.js +4 -6
  87. package/dist/components/FullScreenTakeover/FullScreenTakeover.js +22 -15
  88. package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
  89. package/dist/components/Icon/Icon.js +6 -5
  90. package/dist/components/Icon/IconTypes.js +1 -0
  91. package/dist/components/IconButton/IconButton.js +25 -16
  92. package/dist/components/IconButton/IconButton2.js +3 -3
  93. package/dist/components/InlineInput/InlineInput.js +25 -14
  94. package/dist/components/InlineInput/InlineInput2.js +3 -3
  95. package/dist/components/Input/Input.js +42 -29
  96. package/dist/components/Input/Input2.js +3 -3
  97. package/dist/components/Input/InputField.js +26 -21
  98. package/dist/components/InputGroup/InputGroup.js +7 -7
  99. package/dist/components/InputGroup/InputGroup2.js +3 -3
  100. package/dist/components/InputGroup/InputGroupAddon.js +7 -6
  101. package/dist/components/InputGroup/InputGroupProvider.js +5 -8
  102. package/dist/components/Label/Label.js +8 -9
  103. package/dist/components/Label/Label2.js +3 -3
  104. package/dist/components/Link/Link.js +9 -7
  105. package/dist/components/Link/Link2.js +3 -3
  106. package/dist/components/LoadingSpinner/LoadingSpinner.js +22 -17
  107. package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
  108. package/dist/components/LogicEditor/ConditionContainer.js +8 -10
  109. package/dist/components/LogicEditor/ConditionSet.js +16 -21
  110. package/dist/components/LogicEditor/Controls.js +17 -20
  111. package/dist/components/LogicEditor/LogicEditor.js +33 -24
  112. package/dist/components/LogicEditor/LogicEditor2.js +3 -3
  113. package/dist/components/LogicEditor/LogicEditorContext.js +3 -4
  114. package/dist/components/LogicEditor/utils.js +5 -9
  115. package/dist/components/Modal/Modal.js +63 -49
  116. package/dist/components/Modal/Modal2.js +3 -3
  117. package/dist/components/Modal/ModalBody.js +5 -5
  118. package/dist/components/Modal/ModalContext.js +3 -4
  119. package/dist/components/Modal/ModalFooter.js +5 -5
  120. package/dist/components/Modal/ModalHeader.js +10 -12
  121. package/dist/components/NewMenu/BaseMenu.js +83 -54
  122. package/dist/components/NewMenu/Menu/Menu.js +10 -12
  123. package/dist/components/NewMenu/NewMenu.js +3 -3
  124. package/dist/components/NewMenu/SelectMenu/SelectMenu.js +6 -7
  125. package/dist/components/NewMenu/parts/ArrowNav/ArrowNav.js +35 -30
  126. package/dist/components/NewMenu/parts/MenuAnchor.js +15 -16
  127. package/dist/components/NewMenu/parts/MenuContext.js +3 -4
  128. package/dist/components/NewMenu/parts/MenuItem.js +23 -17
  129. package/dist/components/NewMenu/parts/MenuSearchBox.js +4 -6
  130. package/dist/components/NewMenu/parts/SubmenuAnchor.js +5 -5
  131. package/dist/components/NumberStepper/NumberStepper.js +42 -37
  132. package/dist/components/NumberStepper/NumberStepper2.js +3 -3
  133. package/dist/components/NumberStepper/NumberStepperContext.js +3 -4
  134. package/dist/components/NumberStepper/NumberStepperDecrement.js +13 -15
  135. package/dist/components/NumberStepper/NumberStepperIncrement.js +13 -15
  136. package/dist/components/NumberStepper/NumberStepperInput.js +28 -30
  137. package/dist/components/PageLayout/MainContent.js +4 -4
  138. package/dist/components/PageLayout/PageContainer.js +4 -4
  139. package/dist/components/PageLayout/PageHeader.js +4 -4
  140. package/dist/components/PageLayout/PageLayout.js +3 -3
  141. package/dist/components/Pagination/Pagination.js +20 -16
  142. package/dist/components/Pagination/Pagination2.js +3 -3
  143. package/dist/components/Pagination/PaginationContext.js +3 -4
  144. package/dist/components/Pagination/PaginationNextButton.js +15 -17
  145. package/dist/components/Pagination/PaginationPageInput.js +24 -24
  146. package/dist/components/Pagination/PaginationPreviousButton.js +14 -16
  147. package/dist/components/Popover/Popover.js +27 -18
  148. package/dist/components/Popover/Popover2.js +3 -3
  149. package/dist/components/QuickSearch/QuickSearch.js +23 -16
  150. package/dist/components/QuickSearch/QuickSearch2.js +3 -3
  151. package/dist/components/QuickSearch/QuickSearchInput.js +33 -23
  152. package/dist/components/Radio/Radio.js +26 -28
  153. package/dist/components/Radio/Radio2.js +3 -3
  154. package/dist/components/Radio/RadioGroup.js +15 -16
  155. package/dist/components/Radio/RadioGroupContext.js +3 -4
  156. package/dist/components/Radio/RadioOption.js +11 -10
  157. package/dist/components/SearchInput/SearchInput.js +32 -25
  158. package/dist/components/SearchInput/SearchInput2.js +3 -3
  159. package/dist/components/SidebarNav/ExpandCollapseButton.js +4 -6
  160. package/dist/components/SidebarNav/SidebarNav.js +19 -13
  161. package/dist/components/SidebarNav/SidebarNav2.js +3 -3
  162. package/dist/components/SidebarNav/SidebarNavContext.js +3 -4
  163. package/dist/components/SidebarNav/SidebarNavLink.js +7 -10
  164. package/dist/components/Slider/RangeSlider.js +36 -24
  165. package/dist/components/Slider/Slider.js +29 -20
  166. package/dist/components/Slider/Slider2.js +3 -3
  167. package/dist/components/Slider/SliderButton.js +26 -17
  168. package/dist/components/Switch/Switch.js +19 -19
  169. package/dist/components/Switch/Switch2.js +3 -3
  170. package/dist/components/Switch/SwitchField.js +13 -13
  171. package/dist/components/Table/Table.js +5 -5
  172. package/dist/components/Table/Table2.js +3 -3
  173. package/dist/components/Table/TableBody.js +5 -5
  174. package/dist/components/Table/TableCell.js +5 -5
  175. package/dist/components/Table/TableHead.js +5 -5
  176. package/dist/components/Table/TableHeaderCell.js +5 -5
  177. package/dist/components/Table/TableRow.js +5 -5
  178. package/dist/components/Tabs/Tab.js +12 -13
  179. package/dist/components/Tabs/TabContextProvider.js +10 -13
  180. package/dist/components/Tabs/TabList.js +17 -13
  181. package/dist/components/Tabs/TabPanel.js +10 -11
  182. package/dist/components/Tabs/TabPanels.js +1 -3
  183. package/dist/components/Tabs/Tabs.js +20 -12
  184. package/dist/components/Tabs/Tabs2.js +3 -3
  185. package/dist/components/Tooltip/Tooltip.js +51 -29
  186. package/dist/components/Tooltip/Tooltip2.js +3 -3
  187. package/dist/components/UIProvider/A11yHelpersContext.js +3 -9
  188. package/dist/components/UIProvider/PortalTargetContext.js +6 -8
  189. package/dist/components/UIProvider/UIProvider.js +4 -5
  190. package/dist/components/deprecated_ColorPicker/Alpha.js +7 -7
  191. package/dist/components/deprecated_ColorPicker/ColorPicker.js +24 -13
  192. package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
  193. package/dist/components/deprecated_ColorPicker/HexInput.js +16 -9
  194. package/dist/components/deprecated_ColorPicker/Hue.js +6 -6
  195. package/dist/components/deprecated_ColorPicker/Saturation.js +14 -16
  196. package/dist/components/deprecated_ColorPicker/Swatch.js +7 -6
  197. package/dist/components/deprecated_ColorPicker/useMouseDrag.js +5 -1
  198. package/dist/components/deprecated_NumberStepper/NumberStepper.js +34 -25
  199. package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
  200. package/dist/components/deprecated_NumberStepper/NumberStepperContext.js +3 -4
  201. package/dist/components/deprecated_NumberStepper/NumberStepperDecrement.js +14 -16
  202. package/dist/components/deprecated_NumberStepper/NumberStepperIncrement.js +14 -16
  203. package/dist/components/deprecated_NumberStepper/NumberStepperInput.js +32 -34
  204. package/dist/components/deprecated_Tabs/Tab.js +8 -9
  205. package/dist/components/deprecated_Tabs/TabContextProvider.js +3 -4
  206. package/dist/components/deprecated_Tabs/Tabs.js +13 -9
  207. package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
  208. package/dist/components/deprecated_Toolbar/IconButtonWithLabel.js +6 -6
  209. package/dist/components/deprecated_Toolbar/Toolbar.js +16 -11
  210. package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
  211. package/dist/components/deprecated_Toolbar/ToolbarContext.js +3 -4
  212. package/dist/components/deprecated_Toolbar/ToolbarPanel.js +16 -16
  213. package/dist/components/deprecated_Toolbar/ToolbarPanels.js +44 -29
  214. package/dist/components/deprecated_Toolbar/ToolbarTab.js +19 -20
  215. package/dist/components/deprecated_Toolbar/ToolbarTabs.js +34 -24
  216. package/dist/design-tokens/less/typography.js +3 -3
  217. package/dist/hooks/useBreakpoints/useBreakpoints.js +12 -4
  218. package/dist/hooks/useClickOutside/useClickOutside.js +1 -3
  219. package/dist/hooks/useClickOutsidePortals/useClickOutsidePortals.js +3 -3
  220. package/dist/hooks/useControllableState/useControllableState.js +5 -2
  221. package/dist/hooks/useEventListener/useEventListener.js +6 -5
  222. package/dist/hooks/useFocusSequence/useFocusSequence.js +12 -12
  223. package/dist/hooks/useId/useId.js +4 -1
  224. package/dist/hooks/useIsFocused/useIsFocused.js +5 -1
  225. package/dist/hooks/useIsHovered/useIsHovered.js +5 -1
  226. package/dist/hooks/useIsTruncated/useIsTruncated.js +11 -16
  227. package/dist/hooks/useMouseDrag/useMouseDrag.js +5 -1
  228. package/dist/hooks/useOverlay/useOverlay.js +10 -10
  229. package/dist/hooks/useOverlay/useOverlay2.js +3 -3
  230. package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement.js +9 -2
  231. package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
  232. package/dist/icons/Icon.js +3 -3
  233. package/dist/icons/components/FrontlineEmployeeVoiceIcon.js +6 -0
  234. package/dist/icons/createIconComponent.js +7 -6
  235. package/dist/icons/index.d.ts +2 -0
  236. package/dist/icons/index.es.js +1 -0
  237. package/dist/icons/index.js +3 -1
  238. package/dist/index.d.ts +1 -0
  239. package/dist/index.es.js +1 -1
  240. package/dist/index.js +7 -3
  241. package/dist/next/AdvancedTable/AdvancedTable.js +192 -173
  242. package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
  243. package/dist/next/AdvancedTable/AdvancedTableCell.js +30 -25
  244. package/dist/next/AdvancedTable/AdvancedTableCheckbox.js +12 -15
  245. package/dist/next/AdvancedTable/AdvancedTableColumnHeader.js +83 -65
  246. package/dist/next/AdvancedTable/AdvancedTableColumnHeaderMenu.js +25 -30
  247. package/dist/next/AdvancedTable/AdvancedTableColumnHeaders.js +10 -9
  248. package/dist/next/AdvancedTable/AdvancedTableDnDContext.js +12 -10
  249. package/dist/next/AdvancedTable/AdvancedTableDragPreview.js +4 -7
  250. package/dist/next/AdvancedTable/AdvancedTableHiddenDescription.js +4 -7
  251. package/dist/next/AdvancedTable/AdvancedTablePagination.js +9 -13
  252. package/dist/next/AdvancedTable/AdvancedTableRow.js +16 -16
  253. package/dist/next/AdvancedTable/AdvancedTableRowExpandButton.js +7 -11
  254. package/dist/next/AdvancedTable/useAdvancedTableDragAndDrop.js +32 -36
  255. package/dist/next/AdvancedTable/useDragAndDropConfig.js +44 -53
  256. package/dist/next/Chat/Chat.js +5 -6
  257. package/dist/next/Chat/ChatContext.js +3 -4
  258. package/dist/next/Chat/ChatInput.js +24 -20
  259. package/dist/next/Chat/ChatMessage.js +16 -20
  260. package/dist/next/Chat/ChatMessageList.js +11 -10
  261. package/dist/next/Chat/ChatMessageText.js +1 -3
  262. package/dist/next/Chat/Loader.js +6 -9
  263. package/dist/next/Chat/MessageContext.js +3 -4
  264. package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput.js +28 -18
  265. package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
  266. package/dist/next/CollapsibleSearchInput/CollapsibleSearchInputIconButton.js +8 -8
  267. package/dist/next/CollectionGrid/CollectionGrid.js +14 -12
  268. package/dist/next/CollectionGrid/CollectionGridItem.js +4 -5
  269. package/dist/next/Combobox/Combobox.js +48 -37
  270. package/dist/next/Combobox/Combobox2.js +3 -3
  271. package/dist/next/Combobox/ComboboxContext.js +3 -4
  272. package/dist/next/Combobox/ComboboxFlyout.js +12 -15
  273. package/dist/next/Combobox/ComboboxGroup.js +10 -14
  274. package/dist/next/Combobox/ComboboxGroupContext.js +9 -10
  275. package/dist/next/Combobox/ComboboxInput.js +37 -39
  276. package/dist/next/Combobox/ComboboxOption.js +15 -19
  277. package/dist/next/Combobox/hooks/useComboboxFocusSequence/useComboboxFocusSequence.js +9 -4
  278. package/dist/next/Combobox/hooks/useComboboxLoadingState/useComboboxLoadingState.js +2 -3
  279. package/dist/next/Combobox/hooks/useComboboxValue/useComboboxValue.js +10 -5
  280. package/dist/next/Combobox/hooks/useListboxFlyoutDimensions/useListboxFlyoutDimensions.js +12 -5
  281. package/dist/next/Combobox/hooks/useShouldRenderGroupHeader/useShouldRenderGroupHeader.js +5 -1
  282. package/dist/next/Drawer/Drawer.js +52 -27
  283. package/dist/next/Drawer/Drawer2.js +3 -3
  284. package/dist/next/FilterAnchor/FilterAnchor.js +21 -19
  285. package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
  286. package/dist/next/Form/FormFields/FormFieldWrapper.js +11 -11
  287. package/dist/next/Form/FormFields/InputField.js +3 -3
  288. package/dist/next/Form/useForm.js +25 -30
  289. package/dist/next/Form/useFormField.js +3 -4
  290. package/dist/next/Form/utils/createFormInstance.js +7 -9
  291. package/dist/next/Form/utils/useFormContext.js +3 -4
  292. package/dist/next/Indicator/Indicator.js +12 -8
  293. package/dist/next/Indicator/Indicator2.js +3 -3
  294. package/dist/next/Input/Input.js +49 -35
  295. package/dist/next/Input/Input2.js +3 -3
  296. package/dist/next/LayoutGrid/LayoutGrid.js +11 -12
  297. package/dist/next/LayoutGrid/LayoutGridItem.js +5 -6
  298. package/dist/next/LoadingSpinner/LoadingSpinner.js +22 -17
  299. package/dist/next/LoadingSpinner/LoadingSpinner2.js +3 -3
  300. package/dist/next/Menu/Hooks/useFocusVirtualBoundary.js +7 -4
  301. package/dist/next/Menu/Hooks/useMaskDimensions.js +6 -7
  302. package/dist/next/Menu/Hooks/usePaneSearch.js +50 -39
  303. package/dist/next/Menu/Menu.js +28 -15
  304. package/dist/next/Menu/Menu2.js +3 -3
  305. package/dist/next/Menu/MenuButton.js +17 -18
  306. package/dist/next/Menu/MenuContext.js +13 -18
  307. package/dist/next/Menu/MenuItem.js +28 -29
  308. package/dist/next/Menu/MenuPane.js +74 -61
  309. package/dist/next/Menu/MenuSearch.js +10 -10
  310. package/dist/next/Menu/PaneChildren.js +10 -15
  311. package/dist/next/Menu/SubMenu.js +91 -76
  312. package/dist/next/Pagination/Pagination.js +40 -31
  313. package/dist/next/Pagination/RowDisplayCount.js +6 -7
  314. package/dist/next/PhoneNumberInput/PhoneNumberInput.js +49 -47
  315. package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
  316. package/dist/next/Select/Select.js +27 -30
  317. package/dist/next/Select/Select2.js +3 -3
  318. package/dist/next/Select/SelectButton.js +16 -15
  319. package/dist/next/Select/SelectContext.js +3 -4
  320. package/dist/next/Select/SelectItem.js +12 -13
  321. package/dist/next/Select/SelectPane.js +13 -14
  322. package/dist/next/Select/SelectedItems.js +16 -10
  323. package/dist/next/Select/SubSelect.js +21 -18
  324. package/dist/next/SplitButton/SplitButton.js +30 -22
  325. package/dist/next/SplitButton/SplitButton2.js +3 -3
  326. package/dist/next/SplitButton/SplitButtonOption.js +6 -6
  327. package/dist/next/Stack/Stack.js +26 -26
  328. package/dist/next/Stack/StackItem.js +12 -14
  329. package/dist/next/TimePicker/TimeDropdown.js +18 -18
  330. package/dist/next/TimePicker/TimeInput.js +38 -42
  331. package/dist/next/TimePicker/TimePicker.js +46 -25
  332. package/dist/next/TimePicker/TimePicker2.js +3 -3
  333. package/dist/next/TimePicker/TimePickerIcon.js +5 -7
  334. package/dist/next/TimePicker/utils.js +34 -13
  335. package/dist/next/ToggleButton/ToggleButton.js +14 -13
  336. package/dist/next/ToggleButton/ToggleButtonGroup.js +8 -10
  337. package/dist/next/ToggleButton/ToggleButtonGroupContext.js +3 -4
  338. package/dist/next/ToggleButton/styles.js +3 -3
  339. package/dist/next/Tooltip/Tooltip.js +5 -4
  340. package/dist/next/Typography/Typography.js +8 -7
  341. package/dist/next/index.d.ts +12 -2
  342. package/dist/next/index.js +2395 -2199
  343. package/dist/utils/Flyout/Flyout.js +14 -13
  344. package/dist/utils/Flyout/Flyout2.js +3 -3
  345. package/dist/utils/Flyout/FlyoutHeader.js +6 -6
  346. package/dist/utils/Flyout/FlyoutOption.js +11 -8
  347. package/dist/utils/GridChildrenWrapper/GridChildrenWrapper.js +4 -6
  348. package/dist/utils/Popper/Popper.js +71 -61
  349. package/dist/utils/Popper/PopperContext.js +5 -6
  350. package/dist/utils/Portal/Portal.js +7 -5
  351. package/dist/utils/Text/Text.js +10 -8
  352. package/dist/utils/TextOverflowTooltip/TextOverflowTooltip.js +10 -6
  353. package/dist/utils/Translation/Translate.js +4 -7
  354. package/dist/utils/Translation/TranslationProvider.js +10 -14
  355. package/dist/utils/Translation/containsComponentOrElement.js +3 -1
  356. package/dist/utils/Translation/useTranslation.js +2 -3
  357. package/dist/utils/VirtuosoTestWrapper/VirtuosoTestWrapper.js +1 -3
  358. package/dist/utils/filterChildren/filterChildren.js +4 -4
  359. package/icons/package.json +1 -1
  360. package/next/package.json +2 -2
  361. package/package.json +4 -4
@@ -1,16 +1,18 @@
1
1
  import _extends from '@babel/runtime-corejs3/helpers/extends';
2
+ import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
2
3
  import React__default from 'react';
3
4
  import classNames from 'classnames';
4
5
  import styles from './Link2.js';
5
6
 
7
+ const _excluded = ["children", "href", "target", "className"];
6
8
  const Link = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
7
- let {
8
- children,
9
- href = '#',
10
- target = '_self',
11
- className,
12
- ...rest
13
- } = _ref;
9
+ let children = _ref.children,
10
+ _ref$href = _ref.href,
11
+ href = _ref$href === void 0 ? '#' : _ref$href,
12
+ _ref$target = _ref.target,
13
+ target = _ref$target === void 0 ? '_self' : _ref$target,
14
+ className = _ref.className,
15
+ rest = _objectWithoutProperties(_ref, _excluded);
14
16
  const classes = classNames(className, styles.link);
15
17
  const rel = target !== '_self' ? 'noopener noreferrer' : undefined;
16
18
  return /*#__PURE__*/React__default.createElement("a", _extends({}, rest, {
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._WWQ-h{color:#0b6ed0;cursor:pointer;text-decoration:underline;text-decoration-thickness:1px;-webkit-text-decoration-skip:ink;text-decoration-skip-ink:auto;text-underline-offset:3px;border-radius:1px}._WWQ-h:active:focus,._WWQ-h:focus{outline:none}._WWQ-h:visited{color:#0854a1}._WWQ-h:hover{color:#085caf}._WWQ-h:active{color:#0854a1}._WWQ-h.focus-visible,._WWQ-h:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
4
- var styles = {"link":"_WWQ-h"};
5
- var stylesheet="._WWQ-h{color:#0b6ed0;cursor:pointer;text-decoration:underline;text-decoration-thickness:1px;-webkit-text-decoration-skip:ink;text-decoration-skip-ink:auto;text-underline-offset:3px;border-radius:1px}._WWQ-h:active:focus,._WWQ-h:focus{outline:none}._WWQ-h:visited{color:#0854a1}._WWQ-h:hover{color:#085caf}._WWQ-h:active{color:#0854a1}._WWQ-h.focus-visible,._WWQ-h:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
3
+ var css_248z = "._VwY8i{color:#0b6ed0;cursor:pointer;text-decoration:underline;text-decoration-thickness:1px;-webkit-text-decoration-skip:ink;text-decoration-skip-ink:auto;text-underline-offset:3px;border-radius:1px}._VwY8i:active:focus,._VwY8i:focus{outline:none}._VwY8i:visited{color:#0854a1}._VwY8i:hover{color:#085caf}._VwY8i:active{color:#0854a1}._VwY8i.focus-visible,._VwY8i:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
4
+ var styles = {"link":"_VwY8i"};
5
+ var stylesheet="._VwY8i{color:#0b6ed0;cursor:pointer;text-decoration:underline;text-decoration-thickness:1px;-webkit-text-decoration-skip:ink;text-decoration-skip-ink:auto;text-underline-offset:3px;border-radius:1px}._VwY8i:active:focus,._VwY8i:focus{outline:none}._VwY8i:visited{color:#0854a1}._VwY8i:hover{color:#085caf}._VwY8i:active{color:#0854a1}._VwY8i.focus-visible,._VwY8i:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
6
6
  if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
7
7
 
8
8
  export { styles as default, stylesheet };
@@ -1,28 +1,33 @@
1
1
  import _extends from '@babel/runtime-corejs3/helpers/extends';
2
+ import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
2
3
  import React__default from 'react';
3
4
  import classNames from 'classnames';
4
5
  import styles from './LoadingSpinner2.js';
5
6
  import '../../utils/Translation/index.js';
6
7
  import useTranslation from '../../utils/Translation/useTranslation.js';
7
8
 
9
+ const _excluded = ["background", "children", "className", "inverted", "show", "size", "role", "aria-label", "aria-labelledby", "aria-live", "aria-hidden"];
8
10
  const LoadingSpinner = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
9
- let {
10
- background = 'fade',
11
- children,
12
- className,
13
- inverted = false,
14
- show = false,
15
- size = 'medium',
16
- role = 'progressbar',
17
- 'aria-label': ariaLabel,
18
- 'aria-labelledby': ariaLabelledby,
19
- 'aria-live': ariaLive = 'polite',
20
- 'aria-hidden': ariaHidden,
21
- ...rest
22
- } = _ref;
23
- const {
24
- translate
25
- } = useTranslation();
11
+ let _ref$background = _ref.background,
12
+ background = _ref$background === void 0 ? 'fade' : _ref$background,
13
+ children = _ref.children,
14
+ className = _ref.className,
15
+ _ref$inverted = _ref.inverted,
16
+ inverted = _ref$inverted === void 0 ? false : _ref$inverted,
17
+ _ref$show = _ref.show,
18
+ show = _ref$show === void 0 ? false : _ref$show,
19
+ _ref$size = _ref.size,
20
+ size = _ref$size === void 0 ? 'medium' : _ref$size,
21
+ _ref$role = _ref.role,
22
+ role = _ref$role === void 0 ? 'progressbar' : _ref$role,
23
+ ariaLabel = _ref['aria-label'],
24
+ ariaLabelledby = _ref['aria-labelledby'],
25
+ _ref$ariaLive = _ref['aria-live'],
26
+ ariaLive = _ref$ariaLive === void 0 ? 'polite' : _ref$ariaLive,
27
+ ariaHidden = _ref['aria-hidden'],
28
+ rest = _objectWithoutProperties(_ref, _excluded);
29
+ const _useTranslation = useTranslation(),
30
+ translate = _useTranslation.translate;
26
31
  const defaultAriaLabel = translate('loading');
27
32
  return /*#__PURE__*/React__default.createElement("div", _extends({}, rest, {
28
33
  ref: ref,
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._6tqRF{position:relative;display:inline-block}._6tqRF._vYGTs{min-height:20px;min-width:20px}._6tqRF._An46y{min-height:25px;min-width:25px}._6tqRF._rt-a5{min-height:40px;min-width:40px}._6tqRF._-Knjw{min-height:64px;min-width:64px}._6tqRF ._oEC2B{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._6tqRF ._oEC2B._fsZj-{display:none}._6tqRF ._oEC2B div{position:absolute;transform:rotate(20deg)}._6tqRF ._oEC2B div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;animation:_oEC2B .9s linear infinite}._6tqRF ._oEC2B div div:nth-child(-n+9):after{content:\" \";display:block;position:absolute;top:5px;left:-1px;width:2px;height:10px;border-radius:20%;background:#000}._6tqRF ._oEC2B div div:first-child{transform:rotate(20deg);animation-delay:-.8s}._6tqRF ._oEC2B div div:nth-child(2){transform:rotate(60deg);animation-delay:-.7s}._6tqRF ._oEC2B div div:nth-child(3){transform:rotate(100deg);animation-delay:-.6s}._6tqRF ._oEC2B div div:nth-child(4){transform:rotate(140deg);animation-delay:-.5s}._6tqRF ._oEC2B div div:nth-child(5){transform:rotate(180deg);animation-delay:-.4s}._6tqRF ._oEC2B div div:nth-child(6){transform:rotate(220deg);animation-delay:-.3s}._6tqRF ._oEC2B div div:nth-child(7){transform:rotate(260deg);animation-delay:-.2s}._6tqRF ._oEC2B div div:nth-child(8){transform:rotate(300deg);animation-delay:-.1s}._6tqRF ._oEC2B div div:nth-child(9){transform:rotate(340deg);animation-delay:0s}._6tqRF ._-Knjw div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._6tqRF ._vYGTs div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._6tqRF ._An46y div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._6tqRF ._rsp0o div div:nth-child(-n+9):after{background:#fff}._6tqRF ._EIhC2{width:100%;height:100%}._6tqRF ._EIhC2._KDrDU{pointer-events:none}._6tqRF ._EIhC2._fsZj-{opacity:0}._6tqRF ._EIhC2._Kqtbq{opacity:.5}@keyframes _oEC2B{0%{opacity:1}to{opacity:0}}";
4
- var styles = {"spinnerContainer":"_6tqRF","xs":"_vYGTs","small":"_An46y","medium":"_rt-a5","large":"_-Knjw","spinnerComponent":"_oEC2B","hide":"_fsZj-","inverted":"_rsp0o","spinnerContent":"_EIhC2","disablePointerEvents":"_KDrDU","fade":"_Kqtbq"};
5
- var stylesheet="._6tqRF{position:relative;display:inline-block}._6tqRF._vYGTs{min-height:20px;min-width:20px}._6tqRF._An46y{min-height:25px;min-width:25px}._6tqRF._rt-a5{min-height:40px;min-width:40px}._6tqRF._-Knjw{min-height:64px;min-width:64px}._6tqRF ._oEC2B{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._6tqRF ._oEC2B._fsZj-{display:none}._6tqRF ._oEC2B div{position:absolute;transform:rotate(20deg)}._6tqRF ._oEC2B div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;animation:_oEC2B .9s linear infinite}._6tqRF ._oEC2B div div:nth-child(-n+9):after{content:\" \";display:block;position:absolute;top:5px;left:-1px;width:2px;height:10px;border-radius:20%;background:#000}._6tqRF ._oEC2B div div:first-child{transform:rotate(20deg);animation-delay:-.8s}._6tqRF ._oEC2B div div:nth-child(2){transform:rotate(60deg);animation-delay:-.7s}._6tqRF ._oEC2B div div:nth-child(3){transform:rotate(100deg);animation-delay:-.6s}._6tqRF ._oEC2B div div:nth-child(4){transform:rotate(140deg);animation-delay:-.5s}._6tqRF ._oEC2B div div:nth-child(5){transform:rotate(180deg);animation-delay:-.4s}._6tqRF ._oEC2B div div:nth-child(6){transform:rotate(220deg);animation-delay:-.3s}._6tqRF ._oEC2B div div:nth-child(7){transform:rotate(260deg);animation-delay:-.2s}._6tqRF ._oEC2B div div:nth-child(8){transform:rotate(300deg);animation-delay:-.1s}._6tqRF ._oEC2B div div:nth-child(9){transform:rotate(340deg);animation-delay:0s}._6tqRF ._-Knjw div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._6tqRF ._vYGTs div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._6tqRF ._An46y div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._6tqRF ._rsp0o div div:nth-child(-n+9):after{background:#fff}._6tqRF ._EIhC2{width:100%;height:100%}._6tqRF ._EIhC2._KDrDU{pointer-events:none}._6tqRF ._EIhC2._fsZj-{opacity:0}._6tqRF ._EIhC2._Kqtbq{opacity:.5}@keyframes _oEC2B{0%{opacity:1}to{opacity:0}}";
3
+ var css_248z = "._9lRB-{position:relative;display:inline-block}._9lRB-._8G0PA{min-height:20px;min-width:20px}._9lRB-._ZqPNM{min-height:25px;min-width:25px}._9lRB-._o-GBi{min-height:40px;min-width:40px}._9lRB-._GyB4Z{min-height:64px;min-width:64px}._9lRB- ._lGoD5{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._9lRB- ._lGoD5._JvPZN{display:none}._9lRB- ._lGoD5 div{position:absolute;transform:rotate(20deg)}._9lRB- ._lGoD5 div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;animation:_lGoD5 .9s linear infinite}._9lRB- ._lGoD5 div div:nth-child(-n+9):after{content:\" \";display:block;position:absolute;top:5px;left:-1px;width:2px;height:10px;border-radius:20%;background:#000}._9lRB- ._lGoD5 div div:first-child{transform:rotate(20deg);animation-delay:-.8s}._9lRB- ._lGoD5 div div:nth-child(2){transform:rotate(60deg);animation-delay:-.7s}._9lRB- ._lGoD5 div div:nth-child(3){transform:rotate(100deg);animation-delay:-.6s}._9lRB- ._lGoD5 div div:nth-child(4){transform:rotate(140deg);animation-delay:-.5s}._9lRB- ._lGoD5 div div:nth-child(5){transform:rotate(180deg);animation-delay:-.4s}._9lRB- ._lGoD5 div div:nth-child(6){transform:rotate(220deg);animation-delay:-.3s}._9lRB- ._lGoD5 div div:nth-child(7){transform:rotate(260deg);animation-delay:-.2s}._9lRB- ._lGoD5 div div:nth-child(8){transform:rotate(300deg);animation-delay:-.1s}._9lRB- ._lGoD5 div div:nth-child(9){transform:rotate(340deg);animation-delay:0s}._9lRB- ._GyB4Z div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._9lRB- ._8G0PA div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._9lRB- ._ZqPNM div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._9lRB- ._YZunN div div:nth-child(-n+9):after{background:#fff}._9lRB- ._vWuBC{width:100%;height:100%}._9lRB- ._vWuBC._erlb5{pointer-events:none}._9lRB- ._vWuBC._JvPZN{opacity:0}._9lRB- ._vWuBC._W-jwt{opacity:.5}@keyframes _lGoD5{0%{opacity:1}to{opacity:0}}";
4
+ var styles = {"spinnerContainer":"_9lRB-","xs":"_8G0PA","small":"_ZqPNM","medium":"_o-GBi","large":"_GyB4Z","spinnerComponent":"_lGoD5","hide":"_JvPZN","inverted":"_YZunN","spinnerContent":"_vWuBC","disablePointerEvents":"_erlb5","fade":"_W-jwt"};
5
+ var stylesheet="._9lRB-{position:relative;display:inline-block}._9lRB-._8G0PA{min-height:20px;min-width:20px}._9lRB-._ZqPNM{min-height:25px;min-width:25px}._9lRB-._o-GBi{min-height:40px;min-width:40px}._9lRB-._GyB4Z{min-height:64px;min-width:64px}._9lRB- ._lGoD5{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._9lRB- ._lGoD5._JvPZN{display:none}._9lRB- ._lGoD5 div{position:absolute;transform:rotate(20deg)}._9lRB- ._lGoD5 div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;animation:_lGoD5 .9s linear infinite}._9lRB- ._lGoD5 div div:nth-child(-n+9):after{content:\" \";display:block;position:absolute;top:5px;left:-1px;width:2px;height:10px;border-radius:20%;background:#000}._9lRB- ._lGoD5 div div:first-child{transform:rotate(20deg);animation-delay:-.8s}._9lRB- ._lGoD5 div div:nth-child(2){transform:rotate(60deg);animation-delay:-.7s}._9lRB- ._lGoD5 div div:nth-child(3){transform:rotate(100deg);animation-delay:-.6s}._9lRB- ._lGoD5 div div:nth-child(4){transform:rotate(140deg);animation-delay:-.5s}._9lRB- ._lGoD5 div div:nth-child(5){transform:rotate(180deg);animation-delay:-.4s}._9lRB- ._lGoD5 div div:nth-child(6){transform:rotate(220deg);animation-delay:-.3s}._9lRB- ._lGoD5 div div:nth-child(7){transform:rotate(260deg);animation-delay:-.2s}._9lRB- ._lGoD5 div div:nth-child(8){transform:rotate(300deg);animation-delay:-.1s}._9lRB- ._lGoD5 div div:nth-child(9){transform:rotate(340deg);animation-delay:0s}._9lRB- ._GyB4Z div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._9lRB- ._8G0PA div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._9lRB- ._ZqPNM div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._9lRB- ._YZunN div div:nth-child(-n+9):after{background:#fff}._9lRB- ._vWuBC{width:100%;height:100%}._9lRB- ._vWuBC._erlb5{pointer-events:none}._9lRB- ._vWuBC._JvPZN{opacity:0}._9lRB- ._vWuBC._W-jwt{opacity:.5}@keyframes _lGoD5{0%{opacity:1}to{opacity:0}}";
6
6
  if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
7
7
 
8
8
  export { styles as default, stylesheet };
@@ -5,16 +5,14 @@ import { useLogicEditorContext } from './LogicEditorContext.js';
5
5
  import { LOGIC_TYPE_CONDITION } from './utils.js';
6
6
 
7
7
  const ConditionContainer = function ConditionContainer(_ref) {
8
- let {
9
- condition = {},
10
- position,
11
- firstFocusableElementRef,
12
- conditionControls
13
- } = _ref;
14
- const {
15
- conditionTemplate: ConditionTemplate,
16
- onConditionChange
17
- } = useLogicEditorContext();
8
+ let _ref$condition = _ref.condition,
9
+ condition = _ref$condition === void 0 ? {} : _ref$condition,
10
+ position = _ref.position,
11
+ firstFocusableElementRef = _ref.firstFocusableElementRef,
12
+ conditionControls = _ref.conditionControls;
13
+ const _useLogicEditorContex = useLogicEditorContext(),
14
+ ConditionTemplate = _useLogicEditorContex.conditionTemplate,
15
+ onConditionChange = _useLogicEditorContex.onConditionChange;
18
16
  const handleChange = value => {
19
17
  onConditionChange({
20
18
  id: condition.id,
@@ -15,21 +15,18 @@ import DropdownList from '../Dropdown/DropdownList.js';
15
15
  import DropdownOption from '../Dropdown/DropdownOption.js';
16
16
 
17
17
  const ConditionSet = function ConditionSet(_ref) {
18
- let {
19
- level,
20
- index,
21
- parent,
22
- value,
23
- firstFocusableElementRef
24
- } = _ref;
25
- const {
26
- fixedSet,
27
- onNewLogicItem,
28
- onSetChange,
29
- translations,
30
- readOnly,
31
- rootDataTestId
32
- } = useLogicEditorContext();
18
+ let level = _ref.level,
19
+ index = _ref.index,
20
+ parent = _ref.parent,
21
+ value = _ref.value,
22
+ firstFocusableElementRef = _ref.firstFocusableElementRef;
23
+ const _useLogicEditorContex = useLogicEditorContext(),
24
+ fixedSet = _useLogicEditorContex.fixedSet,
25
+ onNewLogicItem = _useLogicEditorContex.onNewLogicItem,
26
+ onSetChange = _useLogicEditorContex.onSetChange,
27
+ translations = _useLogicEditorContex.translations,
28
+ readOnly = _useLogicEditorContex.readOnly,
29
+ rootDataTestId = _useLogicEditorContex.rootDataTestId;
33
30
  const logicEditorContainerRef = useRef(null);
34
31
  const position = useMemo(() => ({
35
32
  parent,
@@ -40,12 +37,10 @@ const ConditionSet = function ConditionSet(_ref) {
40
37
  const lastItemRef = React__default.useRef(null);
41
38
  function setupLastLine() {
42
39
  if (lastConnectionRef.current && conditionRef.current && lastItemRef.current) {
43
- let {
44
- height
45
- } = conditionRef.current.getBoundingClientRect();
46
- const {
47
- height: lastItemHeight
48
- } = lastItemRef.current.getBoundingClientRect();
40
+ let _conditionRef$current = conditionRef.current.getBoundingClientRect(),
41
+ height = _conditionRef$current.height;
42
+ const _lastItemRef$current$ = lastItemRef.current.getBoundingClientRect(),
43
+ lastItemHeight = _lastItemRef$current$.height;
49
44
  if (lastItemHeight > 52) {
50
45
  height -= lastItemHeight - 52;
51
46
  if (fixedSet) {
@@ -15,26 +15,23 @@ import FilterIcon from '../../icons/components/FilterIcon.js';
15
15
  import RemoveItemIcon from '../../icons/components/RemoveItemIcon.js';
16
16
 
17
17
  const Controls = function Controls(_ref) {
18
- let {
19
- handleNewLogicItem,
20
- itemType,
21
- parent,
22
- itemIndex,
23
- itemLevel,
24
- itemId,
25
- 'data-testid': dataTestId
26
- } = _ref;
27
- const {
28
- translations,
29
- fixedSet,
30
- onDelete,
31
- defaultSetValue,
32
- maxNestedSets,
33
- maxConditions,
34
- controlsRef,
35
- numberOfItems,
36
- setNumberOfItems
37
- } = useLogicEditorContext();
18
+ let handleNewLogicItem = _ref.handleNewLogicItem,
19
+ itemType = _ref.itemType,
20
+ parent = _ref.parent,
21
+ itemIndex = _ref.itemIndex,
22
+ itemLevel = _ref.itemLevel,
23
+ itemId = _ref.itemId,
24
+ dataTestId = _ref['data-testid'];
25
+ const _useLogicEditorContex = useLogicEditorContext(),
26
+ translations = _useLogicEditorContex.translations,
27
+ fixedSet = _useLogicEditorContex.fixedSet,
28
+ onDelete = _useLogicEditorContex.onDelete,
29
+ defaultSetValue = _useLogicEditorContex.defaultSetValue,
30
+ maxNestedSets = _useLogicEditorContex.maxNestedSets,
31
+ maxConditions = _useLogicEditorContex.maxConditions,
32
+ controlsRef = _useLogicEditorContex.controlsRef,
33
+ numberOfItems = _useLogicEditorContex.numberOfItems,
34
+ setNumberOfItems = _useLogicEditorContex.setNumberOfItems;
38
35
  const canAddNewCondition = useMemo(() => !maxConditions || numberOfItems < maxConditions, [maxConditions, numberOfItems]);
39
36
  const canAddNewSet = useMemo(() => {
40
37
  // Need to have space for two conditions to add a new set, since
@@ -1,4 +1,6 @@
1
1
  import _extends from '@babel/runtime-corejs3/helpers/extends';
2
+ import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
3
+ import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
2
4
  import React__default, { useMemo, useState, useCallback, useRef, useEffect } from 'react';
3
5
  import classNames from 'classnames';
4
6
  import styles from './LogicEditor2.js';
@@ -8,24 +10,25 @@ import { LogicEditorContextProvider } from './LogicEditorContext.js';
8
10
  import '../../utils/index.js';
9
11
  import useTranslation from '../../utils/Translation/useTranslation.js';
10
12
 
13
+ const _excluded = ["className", "conditionTemplate", "defaultSetValue", "defaultValue", "fixedSet", "onChange", "readOnly", "maxNestedSets", "maxConditions", "firstFocusableElementRef", "data-testid"];
11
14
  const LogicEditor = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
12
- let {
13
- className,
14
- conditionTemplate,
15
- defaultSetValue = SET_VALUE_ANY,
16
- defaultValue,
17
- fixedSet,
18
- onChange,
19
- readOnly = false,
20
- maxNestedSets = 2,
21
- maxConditions,
22
- firstFocusableElementRef,
23
- 'data-testid': dataTestId,
24
- ...rest
25
- } = _ref;
26
- const {
27
- translate
28
- } = useTranslation();
15
+ let className = _ref.className,
16
+ conditionTemplate = _ref.conditionTemplate,
17
+ _ref$defaultSetValue = _ref.defaultSetValue,
18
+ defaultSetValue = _ref$defaultSetValue === void 0 ? SET_VALUE_ANY : _ref$defaultSetValue,
19
+ defaultValue = _ref.defaultValue,
20
+ fixedSet = _ref.fixedSet,
21
+ onChange = _ref.onChange,
22
+ _ref$readOnly = _ref.readOnly,
23
+ readOnly = _ref$readOnly === void 0 ? false : _ref$readOnly,
24
+ _ref$maxNestedSets = _ref.maxNestedSets,
25
+ maxNestedSets = _ref$maxNestedSets === void 0 ? 2 : _ref$maxNestedSets,
26
+ maxConditions = _ref.maxConditions,
27
+ firstFocusableElementRef = _ref.firstFocusableElementRef,
28
+ dataTestId = _ref['data-testid'],
29
+ rest = _objectWithoutProperties(_ref, _excluded);
30
+ const _useTranslation = useTranslation(),
31
+ translate = _useTranslation.translate;
29
32
  const translations = useMemo(() => ({
30
33
  any: translate('logicEditor.any'),
31
34
  all: translate('logicEditor.all'),
@@ -34,12 +37,15 @@ const LogicEditor = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
34
37
  delete: translate('logicEditor.delete'),
35
38
  conditionActions: translate('logicEditor.conditionActions')
36
39
  }), [translate]);
37
- const [state, setState] = useState(constructValidDefaultState({
38
- defaultValue,
39
- defaultSetValue,
40
- fixedSet,
41
- maxNestedSets
42
- }));
40
+ const _useState = useState(constructValidDefaultState({
41
+ defaultValue,
42
+ defaultSetValue,
43
+ fixedSet,
44
+ maxNestedSets
45
+ })),
46
+ _useState2 = _slicedToArray(_useState, 2),
47
+ state = _useState2[0],
48
+ setState = _useState2[1];
43
49
  const classes = classNames(className, styles.editor);
44
50
  const update = useCallback(setStateCallback => {
45
51
  setState(prevState => {
@@ -49,7 +55,10 @@ const LogicEditor = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
49
55
  });
50
56
  }, [onChange]);
51
57
  const controlsRef = useRef(new Map());
52
- const [numberOfItems, setNumberOfItems] = useState(controlsRef.current.size);
58
+ const _useState3 = useState(controlsRef.current.size),
59
+ _useState4 = _slicedToArray(_useState3, 2),
60
+ numberOfItems = _useState4[0],
61
+ setNumberOfItems = _useState4[1];
53
62
  const itemToFocusId = useRef(null);
54
63
  useEffect(() => {
55
64
  // Must be in a useEffect instead of event handlers to ensure `focus` is called
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._Fulk1{width:100%}._lk0dJ{display:flex;align-items:center}._cGiUF{display:flex;flex-wrap:wrap;grid-gap:4px}._cGiUF._-RxTo>:nth-last-child(2){margin-right:42px;max-width:calc(100% - 42px)}._D14L4{position:relative;padding-left:32px;padding-top:16px}._vM2C1 ._D14L4{padding-top:0;padding-left:16px}._vM2C1 ._D14L4+._D14L4{margin-top:16px}._deWwx{position:absolute;left:16px;top:0;height:34px;width:16px;border-left:1px solid #c2c2c2;border-bottom:1px solid #c2c2c2;border-bottom-left-radius:4px}._vM2C1 ._D14L4:first-of-type ._deWwx{top:16px;border-bottom:none;border-bottom-left-radius:0;border-top:1px solid #c2c2c2;border-top-left-radius:4px}._vM2C1 ._deWwx{top:-16px;left:0}._vM2C1 ._D14L4:not(:first-of-type):not(:last-of-type) ._deWwx{border-bottom-left-radius:0}._0B0Dz{margin-left:-46px}._CZY-g{margin:0 2px 0 4px}._CZY-g.focus-visible,._CZY-g:focus-visible{outline-width:2px}._-k8--{margin-left:4px}";
4
- var styles = {"set":"_Fulk1","setWrapper":"_lk0dJ","condition":"_cGiUF","readOnly":"_-RxTo","branch":"_D14L4","fixedSet":"_vM2C1","connection":"_deWwx","conditionControlsContainer":"_0B0Dz","controls":"_CZY-g","controlMenuItem":"_-k8--"};
5
- var stylesheet="._Fulk1{width:100%}._lk0dJ{display:flex;align-items:center}._cGiUF{display:flex;flex-wrap:wrap;grid-gap:4px}._cGiUF._-RxTo>:nth-last-child(2){margin-right:42px;max-width:calc(100% - 42px)}._D14L4{position:relative;padding-left:32px;padding-top:16px}._vM2C1 ._D14L4{padding-top:0;padding-left:16px}._vM2C1 ._D14L4+._D14L4{margin-top:16px}._deWwx{position:absolute;left:16px;top:0;height:34px;width:16px;border-left:1px solid #c2c2c2;border-bottom:1px solid #c2c2c2;border-bottom-left-radius:4px}._vM2C1 ._D14L4:first-of-type ._deWwx{top:16px;border-bottom:none;border-bottom-left-radius:0;border-top:1px solid #c2c2c2;border-top-left-radius:4px}._vM2C1 ._deWwx{top:-16px;left:0}._vM2C1 ._D14L4:not(:first-of-type):not(:last-of-type) ._deWwx{border-bottom-left-radius:0}._0B0Dz{margin-left:-46px}._CZY-g{margin:0 2px 0 4px}._CZY-g.focus-visible,._CZY-g:focus-visible{outline-width:2px}._-k8--{margin-left:4px}";
3
+ var css_248z = "._-HpK-{width:100%}._jC9jk{display:flex;align-items:center}._slnVl{display:flex;flex-wrap:wrap;grid-gap:4px}._slnVl._DkChP>:nth-last-child(2){margin-right:42px;max-width:calc(100% - 42px)}._VsaxK{position:relative;padding-left:32px;padding-top:16px}._VSs7A ._VsaxK{padding-top:0;padding-left:16px}._VSs7A ._VsaxK+._VsaxK{margin-top:16px}._YbI6W{position:absolute;left:16px;top:0;height:34px;width:16px;border-left:1px solid #c2c2c2;border-bottom:1px solid #c2c2c2;border-bottom-left-radius:4px}._VSs7A ._VsaxK:first-of-type ._YbI6W{top:16px;border-bottom:none;border-bottom-left-radius:0;border-top:1px solid #c2c2c2;border-top-left-radius:4px}._VSs7A ._YbI6W{top:-16px;left:0}._VSs7A ._VsaxK:not(:first-of-type):not(:last-of-type) ._YbI6W{border-bottom-left-radius:0}._sJBj2{margin-left:-46px}._IpF96{margin:0 2px 0 4px}._IpF96.focus-visible,._IpF96:focus-visible{outline-width:2px}._MU1v3{margin-left:4px}";
4
+ var styles = {"set":"_-HpK-","setWrapper":"_jC9jk","condition":"_slnVl","readOnly":"_DkChP","branch":"_VsaxK","fixedSet":"_VSs7A","connection":"_YbI6W","conditionControlsContainer":"_sJBj2","controls":"_IpF96","controlMenuItem":"_MU1v3"};
5
+ var stylesheet="._-HpK-{width:100%}._jC9jk{display:flex;align-items:center}._slnVl{display:flex;flex-wrap:wrap;grid-gap:4px}._slnVl._DkChP>:nth-last-child(2){margin-right:42px;max-width:calc(100% - 42px)}._VsaxK{position:relative;padding-left:32px;padding-top:16px}._VSs7A ._VsaxK{padding-top:0;padding-left:16px}._VSs7A ._VsaxK+._VsaxK{margin-top:16px}._YbI6W{position:absolute;left:16px;top:0;height:34px;width:16px;border-left:1px solid #c2c2c2;border-bottom:1px solid #c2c2c2;border-bottom-left-radius:4px}._VSs7A ._VsaxK:first-of-type ._YbI6W{top:16px;border-bottom:none;border-bottom-left-radius:0;border-top:1px solid #c2c2c2;border-top-left-radius:4px}._VSs7A ._YbI6W{top:-16px;left:0}._VSs7A ._VsaxK:not(:first-of-type):not(:last-of-type) ._YbI6W{border-bottom-left-radius:0}._sJBj2{margin-left:-46px}._IpF96{margin:0 2px 0 4px}._IpF96.focus-visible,._IpF96:focus-visible{outline-width:2px}._MU1v3{margin-left:4px}";
6
6
  if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
7
7
 
8
8
  export { styles as default, stylesheet };
@@ -1,9 +1,8 @@
1
1
  import '../../utils/index.js';
2
2
  import createContextUtilities from '../../utils/createContextUtilities/createContextUtilities.js';
3
3
 
4
- const {
5
- Provider: LogicEditorContextProvider,
6
- useContext: useLogicEditorContext
7
- } = createContextUtilities();
4
+ const _createContextUtiliti = createContextUtilities(),
5
+ LogicEditorContextProvider = _createContextUtiliti.Provider,
6
+ useLogicEditorContext = _createContextUtiliti.useContext;
8
7
 
9
8
  export { LogicEditorContextProvider, useLogicEditorContext };
@@ -4,12 +4,10 @@ const LOGIC_TYPE_SET = 'set';
4
4
  const SET_VALUE_ANY = 'any';
5
5
  const SET_VALUE_ALL = 'all';
6
6
  function constructValidDefaultState(_ref) {
7
- let {
8
- defaultValue,
9
- defaultSetValue,
10
- fixedSet,
11
- maxNestedSets
12
- } = _ref;
7
+ let defaultValue = _ref.defaultValue,
8
+ defaultSetValue = _ref.defaultSetValue,
9
+ fixedSet = _ref.fixedSet,
10
+ maxNestedSets = _ref.maxNestedSets;
13
11
  let clone;
14
12
  if (defaultValue) {
15
13
  clone = deepCopy(defaultValue);
@@ -132,9 +130,7 @@ function getPreviousItemId(conditionRoot, position, fixedSet) {
132
130
  function getParentSet(conditionRoot, position) {
133
131
  const positionFromRoot = walkToRoot(position);
134
132
  let set = conditionRoot;
135
- for (let {
136
- child
137
- } = positionFromRoot; child && child.child; child = child.child) {
133
+ for (let child = positionFromRoot.child; child && child.child; child = child.child) {
138
134
  set = set.conditions[child.index];
139
135
  }
140
136
  return set;
@@ -1,4 +1,7 @@
1
+ import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
1
2
  import _extends from '@babel/runtime-corejs3/helpers/extends';
3
+ import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
4
+ import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
2
5
  import React__default, { useState, useRef, useEffect, useMemo } from 'react';
3
6
  import classNames from 'classnames';
4
7
  import ReactFocusLock from 'react-focus-lock';
@@ -11,34 +14,36 @@ import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
11
14
  import { useDidUpdate } from '../../hooks/useDidUpdate/useDidUpdate.js';
12
15
  import Portal from '../../utils/Portal/Portal.js';
13
16
 
17
+ const _excluded = ["children"],
18
+ _excluded2 = ["open", "onDismiss", "zIndex", "children", "style", "disabledFocusLock"],
19
+ _excluded3 = ["maxSize", "isResponsive", "open", "children", "onClick", "className"],
20
+ _excluded4 = ["unstable_maxSize", "maxSize", "isResponsive", "open", "elementRefToFocusOnOpen", "unstable_isHeightExpandedToMaxSize", "onDismiss", "onClose", "elementRefToFocusOnClose", "children", "zIndex", "portalTarget", "dangerouslyDisableFocusLock", "onAnimationEnd"];
14
21
  const OverlayContainer = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
15
- let {
16
- children,
17
- ...rest
18
- } = _ref;
22
+ let children = _ref.children,
23
+ rest = _objectWithoutProperties(_ref, _excluded);
19
24
  return /*#__PURE__*/React__default.createElement("div", _extends({}, rest, {
20
25
  ref: ref
21
26
  }), children, /*#__PURE__*/React__default.createElement("style", null, "body { overflow: hidden !important;}"));
22
27
  });
23
28
  OverlayContainer.displayName = 'OverlayContainer';
24
29
  const Overlay = /*#__PURE__*/React__default.forwardRef((_ref2, ref) => {
25
- let {
26
- open = false,
27
- onDismiss,
28
- zIndex,
29
- children,
30
- style = {},
31
- disabledFocusLock = false,
32
- ...rest
33
- } = _ref2;
30
+ let _ref2$open = _ref2.open,
31
+ open = _ref2$open === void 0 ? false : _ref2$open,
32
+ onDismiss = _ref2.onDismiss,
33
+ zIndex = _ref2.zIndex,
34
+ children = _ref2.children,
35
+ _ref2$style = _ref2.style,
36
+ style = _ref2$style === void 0 ? {} : _ref2$style,
37
+ _ref2$disabledFocusLo = _ref2.disabledFocusLock,
38
+ disabledFocusLock = _ref2$disabledFocusLo === void 0 ? false : _ref2$disabledFocusLo,
39
+ rest = _objectWithoutProperties(_ref2, _excluded2);
34
40
  const classes = classNames(styles.backdrop, {
35
41
  [styles.fadeEnter]: open,
36
42
  [styles.fadeLeave]: !open
37
43
  });
38
44
  const overlay = React__default.useRef(null);
39
- const {
40
- onClose
41
- } = useModalContext();
45
+ const _useModalContext = useModalContext(),
46
+ onClose = _useModalContext.onClose;
42
47
  const mouseDownTarget = React__default.useRef(null);
43
48
  const handleMouseDown = e => {
44
49
  mouseDownTarget.current = e.target;
@@ -77,8 +82,8 @@ const Overlay = /*#__PURE__*/React__default.forwardRef((_ref2, ref) => {
77
82
  // [HOME-3015] allow overlaying non-children elements (next/Select, next/Menu) to receive focus
78
83
  ,
79
84
  whiteList: element => {
80
- var _element$role;
81
- return !['treeitem', 'menuitem'].includes((_element$role = element === null || element === void 0 ? void 0 : element.role) !== null && _element$role !== void 0 ? _element$role : '');
85
+ var _context, _element$role;
86
+ return !_includesInstanceProperty(_context = ['treeitem', 'menuitem']).call(_context, (_element$role = element === null || element === void 0 ? void 0 : element.role) !== null && _element$role !== void 0 ? _element$role : '');
82
87
  },
83
88
  lockProps: {
84
89
  ...rest,
@@ -94,15 +99,15 @@ const Overlay = /*#__PURE__*/React__default.forwardRef((_ref2, ref) => {
94
99
  });
95
100
  Overlay.displayName = 'Overlay';
96
101
  const Dialog = /*#__PURE__*/React__default.forwardRef((_ref3, ref) => {
97
- let {
98
- maxSize,
99
- isResponsive = false,
100
- open = false,
101
- children,
102
- onClick,
103
- className,
104
- ...rest
105
- } = _ref3;
102
+ let maxSize = _ref3.maxSize,
103
+ _ref3$isResponsive = _ref3.isResponsive,
104
+ isResponsive = _ref3$isResponsive === void 0 ? false : _ref3$isResponsive,
105
+ _ref3$open = _ref3.open,
106
+ open = _ref3$open === void 0 ? false : _ref3$open,
107
+ children = _ref3.children,
108
+ onClick = _ref3.onClick,
109
+ className = _ref3.className,
110
+ rest = _objectWithoutProperties(_ref3, _excluded3);
106
111
  const getMaxSizeStyles = () => {
107
112
  if (maxSize) {
108
113
  const prefix = 'dialog';
@@ -121,9 +126,8 @@ const Dialog = /*#__PURE__*/React__default.forwardRef((_ref3, ref) => {
121
126
  }
122
127
  return '';
123
128
  };
124
- const {
125
- isHeightExpandedToMaxSize
126
- } = useModalContext();
129
+ const _useModalContext2 = useModalContext(),
130
+ isHeightExpandedToMaxSize = _useModalContext2.isHeightExpandedToMaxSize;
127
131
  const classes = classNames(styles.modal, styles[getMaxSizeStyles()], className, {
128
132
  [styles.growToMaxHeight]: isHeightExpandedToMaxSize,
129
133
  [styles.responsive]: isResponsive,
@@ -149,25 +153,35 @@ Dialog.displayName = 'Dialog';
149
153
  // Eventually all Modals should be responsive without a static width option
150
154
 
151
155
  const Modal = /*#__PURE__*/React__default.forwardRef((_ref4, ref) => {
152
- let {
153
- unstable_maxSize,
154
- maxSize = unstable_maxSize,
155
- isResponsive = false,
156
- open = false,
157
- elementRefToFocusOnOpen,
158
- unstable_isHeightExpandedToMaxSize: isHeightExpandedToMaxSize = false,
159
- onDismiss,
160
- onClose,
161
- elementRefToFocusOnClose,
162
- children,
163
- zIndex = 1000,
164
- portalTarget,
165
- dangerouslyDisableFocusLock = false,
166
- onAnimationEnd: externalOnAnimationEnd,
167
- ...rest
168
- } = _ref4;
169
- const [isInDOM, setIsInDOM] = React__default.useState(false);
170
- const [elementUsedToOpenModal, setElementUsedToOpenModal] = useState();
156
+ let unstable_maxSize = _ref4.unstable_maxSize,
157
+ _ref4$maxSize = _ref4.maxSize,
158
+ maxSize = _ref4$maxSize === void 0 ? unstable_maxSize : _ref4$maxSize,
159
+ _ref4$isResponsive = _ref4.isResponsive,
160
+ isResponsive = _ref4$isResponsive === void 0 ? false : _ref4$isResponsive,
161
+ _ref4$open = _ref4.open,
162
+ open = _ref4$open === void 0 ? false : _ref4$open,
163
+ elementRefToFocusOnOpen = _ref4.elementRefToFocusOnOpen,
164
+ _ref4$unstable_isHeig = _ref4.unstable_isHeightExpandedToMaxSize,
165
+ isHeightExpandedToMaxSize = _ref4$unstable_isHeig === void 0 ? false : _ref4$unstable_isHeig,
166
+ onDismiss = _ref4.onDismiss,
167
+ onClose = _ref4.onClose,
168
+ elementRefToFocusOnClose = _ref4.elementRefToFocusOnClose,
169
+ children = _ref4.children,
170
+ _ref4$zIndex = _ref4.zIndex,
171
+ zIndex = _ref4$zIndex === void 0 ? 1000 : _ref4$zIndex,
172
+ portalTarget = _ref4.portalTarget,
173
+ _ref4$dangerouslyDisa = _ref4.dangerouslyDisableFocusLock,
174
+ dangerouslyDisableFocusLock = _ref4$dangerouslyDisa === void 0 ? false : _ref4$dangerouslyDisa,
175
+ externalOnAnimationEnd = _ref4.onAnimationEnd,
176
+ rest = _objectWithoutProperties(_ref4, _excluded4);
177
+ const _React$useState = React__default.useState(false),
178
+ _React$useState2 = _slicedToArray(_React$useState, 2),
179
+ isInDOM = _React$useState2[0],
180
+ setIsInDOM = _React$useState2[1];
181
+ const _useState = useState(),
182
+ _useState2 = _slicedToArray(_useState, 2),
183
+ elementUsedToOpenModal = _useState2[0],
184
+ setElementUsedToOpenModal = _useState2[1];
171
185
  const dialogRef = useRef(null);
172
186
  const closeIconButtonRef = useRef(null);
173
187
  useEffect(() => {
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._A4pfK{position:fixed;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.3);align-items:flex-start}._A4pfK,._iCuWO{display:flex;overflow:auto}._iCuWO{flex-direction:column;box-shadow:0 12px 35px -8px rgba(0,0,0,.12);border-radius:8px;background-color:#fff;min-width:450px;min-height:198px;max-width:85%;max-height:85%;margin:auto;outline:none}:not(._-0Ih4)._8UCy8{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._-0Ih4)._8UCy8{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}:not(._-0Ih4)._KJWim{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._-0Ih4)._KJWim{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._-0Ih4)._KJWim{max-width:700px}}:not(._-0Ih4)._ERLhJ{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._-0Ih4)._ERLhJ{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._-0Ih4)._ERLhJ{max-width:700px}}@media screen and (min-width:1024px){:not(._-0Ih4)._ERLhJ{max-width:1000px}}:not(._-0Ih4)._ltQmI{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._-0Ih4)._ltQmI{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._-0Ih4)._ltQmI{max-width:700px}}@media screen and (min-width:1024px){:not(._-0Ih4)._ltQmI{max-width:1000px}}@media screen and (min-width:1632px){:not(._-0Ih4)._ltQmI{max-width:1600px;max-height:calc(100vh - 32px)}}._-0Ih4{min-width:200px;width:calc(100% - 48px)}._-0Ih4,._-0Ih4._8UCy8{max-height:calc(100vh - 80px)}._-0Ih4._8UCy8{max-width:480px;border-radius:8px}._-0Ih4._KJWim{max-width:700px}._-0Ih4._ERLhJ{max-width:1000px}._-0Ih4._ltQmI{max-width:1600px;max-height:calc(100vh - 32px)}._m5GH1{height:calc(100vh - 80px)}@media screen and (max-width:479px){._m5GH1{height:100vh}}@media screen and (min-width:1632px){._m5GH1{height:calc(100vh - 32px)}}._-S0cS{position:relative;display:flex;flex-direction:row;flex-shrink:0;min-height:65px;padding:20px 24px;align-items:center;font-size:18px;font-weight:400;line-height:24px;color:#32363a;border-bottom:1px solid #eee}._shufb{padding-right:64px}._8Z5ux{position:absolute;top:14px;right:14px}._-FtZH{flex-grow:1;font-size:14px;overflow:auto;color:#32363a}._-FtZH,._RKj68{padding:20px 24px}._RKj68{display:flex;flex-direction:row;flex-shrink:0;align-items:center;justify-content:flex-end;border-top:1px solid #eee}._RKj68>*{margin:0 4px}._RKj68>:first-child{margin-left:0}._RKj68>:last-child{margin-right:0}@keyframes _9-AKY{0%{opacity:0}}._9-AKY{animation:_9-AKY ease-in both;animation-duration:.2s}@keyframes _JuuvW{to{opacity:0}}._JuuvW{animation:_JuuvW ease-out both;animation-duration:.2s}@keyframes _zrDhW{0%{transform:scale3d(.7,.7,.7);opacity:0}}._zrDhW{animation:_zrDhW both;animation-duration:.2s}@keyframes _Akjsm{to{transform:scale3d(.7,.7,.7);opacity:0}}._Akjsm{animation:_Akjsm both;animation-duration:.2s}";
4
- var styles = {"backdrop":"_A4pfK","modal":"_iCuWO","responsive":"_-0Ih4","dialogSmall":"_8UCy8","dialogMedium":"_KJWim","dialogLarge":"_ERLhJ","dialogExtraLarge":"_ltQmI","growToMaxHeight":"_m5GH1","modalHeader":"_-S0cS","modalHeaderWithCloseButton":"_shufb","modalHeaderCloseButton":"_8Z5ux","modalBody":"_-FtZH","modalFooter":"_RKj68","fadeEnter":"_9-AKY","fadeLeave":"_JuuvW","zoomEnter":"_zrDhW","zoomLeave":"_Akjsm"};
5
- var stylesheet="._A4pfK{position:fixed;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.3);align-items:flex-start}._A4pfK,._iCuWO{display:flex;overflow:auto}._iCuWO{flex-direction:column;box-shadow:0 12px 35px -8px rgba(0,0,0,.12);border-radius:8px;background-color:#fff;min-width:450px;min-height:198px;max-width:85%;max-height:85%;margin:auto;outline:none}:not(._-0Ih4)._8UCy8{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._-0Ih4)._8UCy8{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}:not(._-0Ih4)._KJWim{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._-0Ih4)._KJWim{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._-0Ih4)._KJWim{max-width:700px}}:not(._-0Ih4)._ERLhJ{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._-0Ih4)._ERLhJ{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._-0Ih4)._ERLhJ{max-width:700px}}@media screen and (min-width:1024px){:not(._-0Ih4)._ERLhJ{max-width:1000px}}:not(._-0Ih4)._ltQmI{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._-0Ih4)._ltQmI{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._-0Ih4)._ltQmI{max-width:700px}}@media screen and (min-width:1024px){:not(._-0Ih4)._ltQmI{max-width:1000px}}@media screen and (min-width:1632px){:not(._-0Ih4)._ltQmI{max-width:1600px;max-height:calc(100vh - 32px)}}._-0Ih4{min-width:200px;width:calc(100% - 48px)}._-0Ih4,._-0Ih4._8UCy8{max-height:calc(100vh - 80px)}._-0Ih4._8UCy8{max-width:480px;border-radius:8px}._-0Ih4._KJWim{max-width:700px}._-0Ih4._ERLhJ{max-width:1000px}._-0Ih4._ltQmI{max-width:1600px;max-height:calc(100vh - 32px)}._m5GH1{height:calc(100vh - 80px)}@media screen and (max-width:479px){._m5GH1{height:100vh}}@media screen and (min-width:1632px){._m5GH1{height:calc(100vh - 32px)}}._-S0cS{position:relative;display:flex;flex-direction:row;flex-shrink:0;min-height:65px;padding:20px 24px;align-items:center;font-size:18px;font-weight:400;line-height:24px;color:#32363a;border-bottom:1px solid #eee}._shufb{padding-right:64px}._8Z5ux{position:absolute;top:14px;right:14px}._-FtZH{flex-grow:1;font-size:14px;overflow:auto;color:#32363a}._-FtZH,._RKj68{padding:20px 24px}._RKj68{display:flex;flex-direction:row;flex-shrink:0;align-items:center;justify-content:flex-end;border-top:1px solid #eee}._RKj68>*{margin:0 4px}._RKj68>:first-child{margin-left:0}._RKj68>:last-child{margin-right:0}@keyframes _9-AKY{0%{opacity:0}}._9-AKY{animation:_9-AKY ease-in both;animation-duration:.2s}@keyframes _JuuvW{to{opacity:0}}._JuuvW{animation:_JuuvW ease-out both;animation-duration:.2s}@keyframes _zrDhW{0%{transform:scale3d(.7,.7,.7);opacity:0}}._zrDhW{animation:_zrDhW both;animation-duration:.2s}@keyframes _Akjsm{to{transform:scale3d(.7,.7,.7);opacity:0}}._Akjsm{animation:_Akjsm both;animation-duration:.2s}";
3
+ var css_248z = "._5qGEs{position:fixed;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.3);align-items:flex-start}._5qGEs,._HdSIg{display:flex;overflow:auto}._HdSIg{flex-direction:column;box-shadow:0 12px 35px -8px rgba(0,0,0,.12);border-radius:8px;background-color:#fff;min-width:450px;min-height:198px;max-width:85%;max-height:85%;margin:auto;outline:none}:not(._0VXWs)._Qi0W8{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._0VXWs)._Qi0W8{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}:not(._0VXWs)._wHBlp{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._0VXWs)._wHBlp{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._0VXWs)._wHBlp{max-width:700px}}:not(._0VXWs)._K7E4p{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._0VXWs)._K7E4p{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._0VXWs)._K7E4p{max-width:700px}}@media screen and (min-width:1024px){:not(._0VXWs)._K7E4p{max-width:1000px}}:not(._0VXWs)._Fev-o{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._0VXWs)._Fev-o{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._0VXWs)._Fev-o{max-width:700px}}@media screen and (min-width:1024px){:not(._0VXWs)._Fev-o{max-width:1000px}}@media screen and (min-width:1632px){:not(._0VXWs)._Fev-o{max-width:1600px;max-height:calc(100vh - 32px)}}._0VXWs{min-width:200px;width:calc(100% - 48px)}._0VXWs,._0VXWs._Qi0W8{max-height:calc(100vh - 80px)}._0VXWs._Qi0W8{max-width:480px;border-radius:8px}._0VXWs._wHBlp{max-width:700px}._0VXWs._K7E4p{max-width:1000px}._0VXWs._Fev-o{max-width:1600px;max-height:calc(100vh - 32px)}._BAvNb{height:calc(100vh - 80px)}@media screen and (max-width:479px){._BAvNb{height:100vh}}@media screen and (min-width:1632px){._BAvNb{height:calc(100vh - 32px)}}._FB4iB{position:relative;display:flex;flex-direction:row;flex-shrink:0;min-height:65px;padding:20px 24px;align-items:center;font-size:18px;font-weight:400;line-height:24px;color:#32363a;border-bottom:1px solid #eee}._Txu4L{padding-right:64px}._d5rFG{position:absolute;top:14px;right:14px}._J-bgo{flex-grow:1;font-size:14px;overflow:auto;color:#32363a}._J-bgo,._ufWyl{padding:20px 24px}._ufWyl{display:flex;flex-direction:row;flex-shrink:0;align-items:center;justify-content:flex-end;border-top:1px solid #eee}._ufWyl>*{margin:0 4px}._ufWyl>:first-child{margin-left:0}._ufWyl>:last-child{margin-right:0}@keyframes _JcH7j{0%{opacity:0}}._JcH7j{animation:_JcH7j ease-in both;animation-duration:.2s}@keyframes _BdQab{to{opacity:0}}._BdQab{animation:_BdQab ease-out both;animation-duration:.2s}@keyframes _K67u8{0%{transform:scale3d(.7,.7,.7);opacity:0}}._K67u8{animation:_K67u8 both;animation-duration:.2s}@keyframes _5UbTd{to{transform:scale3d(.7,.7,.7);opacity:0}}._5UbTd{animation:_5UbTd both;animation-duration:.2s}";
4
+ var styles = {"backdrop":"_5qGEs","modal":"_HdSIg","responsive":"_0VXWs","dialogSmall":"_Qi0W8","dialogMedium":"_wHBlp","dialogLarge":"_K7E4p","dialogExtraLarge":"_Fev-o","growToMaxHeight":"_BAvNb","modalHeader":"_FB4iB","modalHeaderWithCloseButton":"_Txu4L","modalHeaderCloseButton":"_d5rFG","modalBody":"_J-bgo","modalFooter":"_ufWyl","fadeEnter":"_JcH7j","fadeLeave":"_BdQab","zoomEnter":"_K67u8","zoomLeave":"_5UbTd"};
5
+ var stylesheet="._5qGEs{position:fixed;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.3);align-items:flex-start}._5qGEs,._HdSIg{display:flex;overflow:auto}._HdSIg{flex-direction:column;box-shadow:0 12px 35px -8px rgba(0,0,0,.12);border-radius:8px;background-color:#fff;min-width:450px;min-height:198px;max-width:85%;max-height:85%;margin:auto;outline:none}:not(._0VXWs)._Qi0W8{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._0VXWs)._Qi0W8{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}:not(._0VXWs)._wHBlp{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._0VXWs)._wHBlp{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._0VXWs)._wHBlp{max-width:700px}}:not(._0VXWs)._K7E4p{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._0VXWs)._K7E4p{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._0VXWs)._K7E4p{max-width:700px}}@media screen and (min-width:1024px){:not(._0VXWs)._K7E4p{max-width:1000px}}:not(._0VXWs)._Fev-o{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._0VXWs)._Fev-o{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._0VXWs)._Fev-o{max-width:700px}}@media screen and (min-width:1024px){:not(._0VXWs)._Fev-o{max-width:1000px}}@media screen and (min-width:1632px){:not(._0VXWs)._Fev-o{max-width:1600px;max-height:calc(100vh - 32px)}}._0VXWs{min-width:200px;width:calc(100% - 48px)}._0VXWs,._0VXWs._Qi0W8{max-height:calc(100vh - 80px)}._0VXWs._Qi0W8{max-width:480px;border-radius:8px}._0VXWs._wHBlp{max-width:700px}._0VXWs._K7E4p{max-width:1000px}._0VXWs._Fev-o{max-width:1600px;max-height:calc(100vh - 32px)}._BAvNb{height:calc(100vh - 80px)}@media screen and (max-width:479px){._BAvNb{height:100vh}}@media screen and (min-width:1632px){._BAvNb{height:calc(100vh - 32px)}}._FB4iB{position:relative;display:flex;flex-direction:row;flex-shrink:0;min-height:65px;padding:20px 24px;align-items:center;font-size:18px;font-weight:400;line-height:24px;color:#32363a;border-bottom:1px solid #eee}._Txu4L{padding-right:64px}._d5rFG{position:absolute;top:14px;right:14px}._J-bgo{flex-grow:1;font-size:14px;overflow:auto;color:#32363a}._J-bgo,._ufWyl{padding:20px 24px}._ufWyl{display:flex;flex-direction:row;flex-shrink:0;align-items:center;justify-content:flex-end;border-top:1px solid #eee}._ufWyl>*{margin:0 4px}._ufWyl>:first-child{margin-left:0}._ufWyl>:last-child{margin-right:0}@keyframes _JcH7j{0%{opacity:0}}._JcH7j{animation:_JcH7j ease-in both;animation-duration:.2s}@keyframes _BdQab{to{opacity:0}}._BdQab{animation:_BdQab ease-out both;animation-duration:.2s}@keyframes _K67u8{0%{transform:scale3d(.7,.7,.7);opacity:0}}._K67u8{animation:_K67u8 both;animation-duration:.2s}@keyframes _5UbTd{to{transform:scale3d(.7,.7,.7);opacity:0}}._5UbTd{animation:_5UbTd both;animation-duration:.2s}";
6
6
  if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
7
7
 
8
8
  export { styles as default, stylesheet };