@qualtrics/ui-react 2.23.1-alpha.1 → 2.24.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 (942) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/__node_modules/style-inject/dist/style-inject.es.js +28 -0
  3. package/dist/__shared/cjs/index-654986dd.js +2058 -0
  4. package/dist/__shared/cjs/index-81fb69c9.js +12504 -0
  5. package/dist/components/Accordion/Accordion.js +90 -0
  6. package/dist/components/Accordion/Accordion2.js +8 -0
  7. package/dist/components/Accordion/AccordionContext.js +13 -0
  8. package/dist/components/Accordion/AccordionHeader.js +72 -0
  9. package/dist/components/Accordion/AccordionPanel.js +30 -0
  10. package/dist/components/Accordion/AccordionSection.js +40 -0
  11. package/dist/components/Accordion/index.js +4 -0
  12. package/dist/components/Banner/Banner.css.js +21 -0
  13. package/dist/components/Banner/Banner.css.ts.vanilla.js +8 -0
  14. package/dist/components/Banner/Banner.js +105 -0
  15. package/dist/components/Banner/index.js +1 -0
  16. package/dist/components/BreakpointSwitch/Breakpoint.js +16 -0
  17. package/dist/components/BreakpointSwitch/BreakpointContext.js +9 -0
  18. package/dist/components/BreakpointSwitch/BreakpointSwitch.js +34 -0
  19. package/dist/components/BreakpointSwitch/index.js +2 -0
  20. package/dist/components/Button/Button.js +8 -0
  21. package/dist/components/Button/Button2.js +51 -0
  22. package/dist/components/Button/index.js +1 -0
  23. package/dist/components/ButtonGroup/ButtonGroup.js +40 -0
  24. package/dist/components/ButtonGroup/ButtonGroup2.js +8 -0
  25. package/dist/components/ButtonGroup/index.js +1 -0
  26. package/dist/components/Checkbox/Check.js +18 -0
  27. package/dist/components/Checkbox/Checkbox.js +54 -0
  28. package/dist/components/Checkbox/Checkbox2.js +8 -0
  29. package/dist/components/Checkbox/CheckboxField.js +42 -0
  30. package/dist/components/Checkbox/VisualCheckbox.js +31 -0
  31. package/dist/components/Checkbox/VisualCheckbox2.js +8 -0
  32. package/dist/components/Checkbox/index.js +2 -0
  33. package/dist/components/ColorPicker/Alpha.js +106 -0
  34. package/dist/components/ColorPicker/ColorPicker.js +306 -0
  35. package/dist/components/ColorPicker/ColorPicker2.js +8 -0
  36. package/dist/components/ColorPicker/ColorPickerFlyout.js +100 -0
  37. package/dist/components/ColorPicker/ColorPickerFlyoutInputs.js +204 -0
  38. package/dist/components/ColorPicker/Hue.js +107 -0
  39. package/dist/components/ColorPicker/Palette.js +137 -0
  40. package/dist/components/ColorPicker/Saturation.js +129 -0
  41. package/dist/components/ColorPicker/index.js +1 -0
  42. package/dist/components/ColorPicker/utils/calculateTargetId.js +43 -0
  43. package/dist/components/ColorPicker/utils/defaultColorPalette.js +57 -0
  44. package/dist/components/ColorPicker/utils/getMousePosition.js +20 -0
  45. package/dist/components/ColorPicker/utils/hexToHsv.js +44 -0
  46. package/dist/components/ColorPicker/utils/hexToRgb.js +12 -0
  47. package/dist/components/ColorPicker/utils/hexToRgbaString.js +10 -0
  48. package/dist/components/ColorPicker/utils/hsvToHex.js +58 -0
  49. package/dist/components/ColorPicker/utils/index.js +9 -0
  50. package/dist/components/ColorPicker/utils/rgbToHex.js +13 -0
  51. package/dist/components/ColorPicker/utils/validateHex.js +43 -0
  52. package/dist/components/Combobox/Combobox.js +455 -0
  53. package/dist/components/Combobox/Combobox2.js +8 -0
  54. package/dist/components/Combobox/ComboboxContext.js +9 -0
  55. package/dist/components/Combobox/ComboboxHeader.js +21 -0
  56. package/dist/components/Combobox/ComboboxIcon.js +47 -0
  57. package/dist/components/Combobox/ComboboxInput.js +90 -0
  58. package/dist/components/Combobox/ComboboxList.js +57 -0
  59. package/dist/components/Combobox/ComboboxOption.js +25 -0
  60. package/dist/components/Combobox/index.js +5 -0
  61. package/dist/components/ConfigPane/ConfigPane.js +176 -0
  62. package/dist/components/ConfigPane/ConfigPane2.js +8 -0
  63. package/dist/components/ConfigPane/constants.js +9 -0
  64. package/dist/components/ConfigPane/index.js +1 -0
  65. package/dist/components/Divider/Divider.js +18 -0
  66. package/dist/components/Divider/Divider2.js +8 -0
  67. package/dist/components/Divider/index.js +1 -0
  68. package/dist/components/Dropdown/ChildIndexContext/index.js +34 -0
  69. package/dist/components/Dropdown/ChildIndexContext/reach-descendants.js +178 -0
  70. package/dist/components/Dropdown/Dropdown.js +285 -0
  71. package/dist/components/Dropdown/Dropdown2.js +8 -0
  72. package/dist/components/Dropdown/DropdownButton.js +161 -0
  73. package/dist/components/Dropdown/DropdownContext.js +9 -0
  74. package/dist/components/Dropdown/DropdownHeader.js +32 -0
  75. package/dist/components/Dropdown/DropdownHeaderContext.js +9 -0
  76. package/dist/components/Dropdown/DropdownList.js +106 -0
  77. package/dist/components/Dropdown/DropdownOption.js +112 -0
  78. package/dist/components/Dropdown/DropdownSearch.js +108 -0
  79. package/dist/components/Dropdown/index.js +5 -0
  80. package/dist/components/FilePicker/FilePicker.js +119 -0
  81. package/dist/components/FilePicker/FilePicker2.js +8 -0
  82. package/dist/components/FilePicker/index.js +1 -0
  83. package/dist/components/FormField/Caption.js +8 -0
  84. package/dist/components/FormField/ErrorText.js +25 -0
  85. package/dist/components/FormField/FormField.js +64 -0
  86. package/dist/components/FormField/FormField2.js +8 -0
  87. package/dist/components/FormField/FormFieldContext.js +40 -0
  88. package/dist/components/FormField/HelperText.js +19 -0
  89. package/dist/components/FormField/ReadOnlyText.js +28 -0
  90. package/dist/components/FormField/index.js +3 -0
  91. package/dist/components/FullScreenTakeover/FullScreenTakeover.js +79 -0
  92. package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +8 -0
  93. package/dist/components/FullScreenTakeover/index.js +1 -0
  94. package/dist/components/Icon/Icon.js +52 -0
  95. package/dist/components/Icon/IconTypes.js +499 -0
  96. package/dist/components/Icon/index.js +2 -0
  97. package/dist/components/IconButton/IconButton.js +58 -0
  98. package/dist/components/IconButton/IconButton2.js +8 -0
  99. package/dist/components/IconButton/index.js +3 -0
  100. package/dist/components/InlineInput/InlineInput.js +131 -0
  101. package/dist/components/InlineInput/InlineInput2.js +8 -0
  102. package/dist/components/InlineInput/index.js +1 -0
  103. package/dist/components/Input/Input.js +59 -0
  104. package/dist/components/Input/Input2.js +8 -0
  105. package/dist/components/Input/InputField.js +57 -0
  106. package/dist/components/Input/index.js +2 -0
  107. package/dist/components/InputGroup/InputGroup.js +33 -0
  108. package/dist/components/InputGroup/InputGroup2.js +8 -0
  109. package/dist/components/InputGroup/InputGroupAddon.js +23 -0
  110. package/dist/components/InputGroup/InputGroupProvider.js +33 -0
  111. package/dist/components/InputGroup/index.js +2 -0
  112. package/dist/components/Label/Label.js +27 -0
  113. package/dist/components/Label/Label2.js +8 -0
  114. package/dist/components/Label/index.js +1 -0
  115. package/dist/components/Link/Link.js +25 -0
  116. package/dist/components/Link/Link2.js +8 -0
  117. package/dist/components/Link/index.js +1 -0
  118. package/dist/components/LoadingSpinner/LoadingSpinner.js +51 -0
  119. package/dist/components/LoadingSpinner/LoadingSpinner2.js +8 -0
  120. package/dist/components/LoadingSpinner/index.js +1 -0
  121. package/dist/components/LogicEditor/ConditionContainer.js +33 -0
  122. package/dist/components/LogicEditor/ConditionSet.js +181 -0
  123. package/dist/components/LogicEditor/Controls.js +99 -0
  124. package/dist/components/LogicEditor/LogicEditor.js +126 -0
  125. package/dist/components/LogicEditor/LogicEditor2.js +8 -0
  126. package/dist/components/LogicEditor/LogicEditorContext.js +9 -0
  127. package/dist/components/LogicEditor/index.js +1 -0
  128. package/dist/components/LogicEditor/utils.js +140 -0
  129. package/dist/components/Modal/Modal.js +270 -0
  130. package/dist/components/Modal/Modal2.js +8 -0
  131. package/dist/components/Modal/ModalContext.js +9 -0
  132. package/dist/components/Modal/index.js +1 -0
  133. package/dist/components/NewMenu/BaseMenu.js +429 -0
  134. package/dist/components/NewMenu/Menu/Menu.js +24 -0
  135. package/dist/components/NewMenu/Menu/index.js +1 -0
  136. package/dist/components/NewMenu/NewMenu.js +8 -0
  137. package/dist/components/NewMenu/SelectMenu/SelectMenu.js +27 -0
  138. package/dist/components/NewMenu/SelectMenu/index.js +1 -0
  139. package/dist/components/NewMenu/index.js +3 -0
  140. package/dist/components/NewMenu/parts/ArrowNav/ArrowNav.js +169 -0
  141. package/dist/components/NewMenu/parts/ArrowNav/index.js +1 -0
  142. package/dist/components/NewMenu/parts/MenuAnchor.js +55 -0
  143. package/dist/components/NewMenu/parts/MenuContext.js +9 -0
  144. package/dist/components/NewMenu/parts/MenuItem.js +64 -0
  145. package/dist/components/NewMenu/parts/MenuSearchBox.js +34 -0
  146. package/dist/components/NewMenu/parts/MenuSpinner.js +13 -0
  147. package/dist/components/NewMenu/parts/SubmenuAnchor.js +25 -0
  148. package/dist/components/NewMenu/parts/index.js +7 -0
  149. package/dist/components/NumberStepper/NumberStepper.js +284 -0
  150. package/dist/components/NumberStepper/NumberStepper2.js +8 -0
  151. package/dist/components/NumberStepper/NumberStepperContext.js +9 -0
  152. package/dist/components/NumberStepper/NumberStepperDecrement.js +65 -0
  153. package/dist/components/NumberStepper/NumberStepperIncrement.js +65 -0
  154. package/dist/components/NumberStepper/NumberStepperInput.js +136 -0
  155. package/dist/components/NumberStepper/index.js +4 -0
  156. package/dist/components/PageLayout/MainContent.js +17 -0
  157. package/dist/components/PageLayout/PageContainer.js +17 -0
  158. package/dist/components/PageLayout/PageHeader.js +17 -0
  159. package/dist/components/PageLayout/PageLayout.js +8 -0
  160. package/dist/components/PageLayout/index.js +3 -0
  161. package/dist/components/Pagination/Pagination.js +87 -0
  162. package/dist/components/Pagination/Pagination2.js +8 -0
  163. package/dist/components/Pagination/PaginationContext.js +9 -0
  164. package/dist/components/Pagination/PaginationNextButton.js +67 -0
  165. package/dist/components/Pagination/PaginationPageInput.js +125 -0
  166. package/dist/components/Pagination/PaginationPreviousButton.js +66 -0
  167. package/dist/components/Pagination/index.js +4 -0
  168. package/dist/components/Popover/Popover.js +126 -0
  169. package/dist/components/Popover/Popover2.js +8 -0
  170. package/dist/components/Popover/index.js +1 -0
  171. package/dist/components/QuickSearch/QuickSearch.js +66 -0
  172. package/dist/components/QuickSearch/QuickSearch2.js +8 -0
  173. package/dist/components/QuickSearch/QuickSearchInput.js +135 -0
  174. package/dist/components/QuickSearch/index.js +1 -0
  175. package/dist/components/Radio/Radio.js +61 -0
  176. package/dist/components/Radio/Radio2.js +8 -0
  177. package/dist/components/Radio/RadioGroup.js +34 -0
  178. package/dist/components/Radio/RadioGroupContext.js +9 -0
  179. package/dist/components/Radio/RadioOption.js +36 -0
  180. package/dist/components/Radio/index.js +3 -0
  181. package/dist/components/SearchInput/SearchInput.js +113 -0
  182. package/dist/components/SearchInput/SearchInput2.js +8 -0
  183. package/dist/components/SearchInput/index.js +3 -0
  184. package/dist/components/SidebarNav/ExpandCollapseButton.js +52 -0
  185. package/dist/components/SidebarNav/SidebarNav.js +69 -0
  186. package/dist/components/SidebarNav/SidebarNav2.js +8 -0
  187. package/dist/components/SidebarNav/SidebarNavContext.js +9 -0
  188. package/dist/components/SidebarNav/SidebarNavLink.js +59 -0
  189. package/dist/components/SidebarNav/constants.js +9 -0
  190. package/dist/components/SidebarNav/index.js +2 -0
  191. package/dist/components/Slider/RangeSlider.js +139 -0
  192. package/dist/components/Slider/Slider.js +137 -0
  193. package/dist/components/Slider/Slider2.js +8 -0
  194. package/dist/components/Slider/SliderButton.js +80 -0
  195. package/dist/components/Slider/index.js +2 -0
  196. package/dist/components/Switch/Switch.js +54 -0
  197. package/dist/components/Switch/Switch2.js +8 -0
  198. package/dist/components/Switch/SwitchField.js +42 -0
  199. package/dist/components/Switch/index.js +2 -0
  200. package/dist/components/Table/Table.js +18 -0
  201. package/dist/components/Table/Table2.js +8 -0
  202. package/dist/components/Table/TableBody.js +18 -0
  203. package/dist/components/Table/TableCell.js +18 -0
  204. package/dist/components/Table/TableHead.js +18 -0
  205. package/dist/components/Table/TableHeaderCell.js +18 -0
  206. package/dist/components/Table/TableRow.js +18 -0
  207. package/dist/components/Table/index.js +6 -0
  208. package/dist/components/Tabs/Tab.js +51 -0
  209. package/dist/components/Tabs/TabContextProvider.js +33 -0
  210. package/dist/components/Tabs/TabList.js +108 -0
  211. package/dist/components/Tabs/TabPanel.js +35 -0
  212. package/dist/components/Tabs/TabPanels.js +19 -0
  213. package/dist/components/Tabs/Tabs.js +37 -0
  214. package/dist/components/Tabs/Tabs2.js +8 -0
  215. package/dist/components/Tabs/index.js +5 -0
  216. package/dist/components/Tooltip/Tooltip.js +238 -0
  217. package/dist/components/Tooltip/Tooltip2.js +8 -0
  218. package/dist/components/Tooltip/index.js +1 -0
  219. package/dist/components/UIProvider/PortalTargetContext.js +19 -0
  220. package/dist/components/UIProvider/UIProvider.js +19 -0
  221. package/dist/components/UIProvider/index.js +2 -0
  222. package/dist/components/deprecated_ColorPicker/Alpha.js +90 -0
  223. package/dist/components/deprecated_ColorPicker/Color.js +275 -0
  224. package/dist/components/deprecated_ColorPicker/ColorPicker.js +128 -0
  225. package/dist/components/deprecated_ColorPicker/ColorPicker2.js +8 -0
  226. package/dist/components/deprecated_ColorPicker/DEFAULT_SWATCH_COLORS.js +4 -0
  227. package/dist/components/deprecated_ColorPicker/HexInput.js +66 -0
  228. package/dist/components/deprecated_ColorPicker/Hue.js +87 -0
  229. package/dist/components/deprecated_ColorPicker/Saturation.js +120 -0
  230. package/dist/components/deprecated_ColorPicker/Swatch.js +30 -0
  231. package/dist/components/deprecated_ColorPicker/index.js +4 -0
  232. package/dist/components/deprecated_ColorPicker/isMouseEvent.js +5 -0
  233. package/dist/components/deprecated_ColorPicker/useMouseDrag.js +24 -0
  234. package/dist/components/deprecated_NumberStepper/NumberStepper.js +195 -0
  235. package/dist/components/deprecated_NumberStepper/NumberStepper2.js +8 -0
  236. package/dist/components/deprecated_NumberStepper/NumberStepperContext.js +9 -0
  237. package/dist/components/deprecated_NumberStepper/NumberStepperDecrement.js +71 -0
  238. package/dist/components/deprecated_NumberStepper/NumberStepperIncrement.js +71 -0
  239. package/dist/components/deprecated_NumberStepper/NumberStepperInput.js +147 -0
  240. package/dist/components/deprecated_NumberStepper/index.js +6 -0
  241. package/dist/components/deprecated_Tabs/Tab.js +37 -0
  242. package/dist/components/deprecated_Tabs/TabContextProvider.js +9 -0
  243. package/dist/components/deprecated_Tabs/Tabs.js +131 -0
  244. package/dist/components/deprecated_Tabs/Tabs2.js +8 -0
  245. package/dist/components/deprecated_Tabs/index.js +4 -0
  246. package/dist/components/deprecated_Toolbar/IconButtonWithLabel.js +26 -0
  247. package/dist/components/deprecated_Toolbar/Toolbar.js +44 -0
  248. package/dist/components/deprecated_Toolbar/Toolbar2.js +8 -0
  249. package/dist/components/deprecated_Toolbar/ToolbarContext.js +9 -0
  250. package/dist/components/deprecated_Toolbar/ToolbarPanel.js +46 -0
  251. package/dist/components/deprecated_Toolbar/ToolbarPanels.js +140 -0
  252. package/dist/components/deprecated_Toolbar/ToolbarTab.js +141 -0
  253. package/dist/components/deprecated_Toolbar/ToolbarTabs.js +150 -0
  254. package/dist/components/deprecated_Toolbar/index.js +7 -0
  255. package/dist/components/index.js +43 -0
  256. package/dist/hooks/index.js +19 -0
  257. package/dist/hooks/useBreakpoints/index.js +1 -0
  258. package/dist/hooks/useBreakpoints/useBreakpoints.js +46 -0
  259. package/dist/hooks/useClickOutside/index.js +1 -0
  260. package/dist/hooks/useClickOutside/useClickOutside.js +30 -0
  261. package/dist/hooks/useClickOutsidePortals/index.js +1 -0
  262. package/dist/hooks/useClickOutsidePortals/useClickOutsidePortals.js +34 -0
  263. package/dist/hooks/useControllableState/index.js +1 -0
  264. package/dist/hooks/useControllableState/useControllableState.js +88 -0
  265. package/dist/hooks/useDidUpdate/index.js +1 -0
  266. package/dist/hooks/useDidUpdate/useDidUpdate.js +30 -0
  267. package/dist/hooks/useEventCallback/index.js +1 -0
  268. package/dist/hooks/useEventCallback/useEventCallback.js +22 -0
  269. package/dist/hooks/useEventListener/index.js +1 -0
  270. package/dist/hooks/useEventListener/useEventListener.js +40 -0
  271. package/dist/hooks/useFocusSequence/index.js +1 -0
  272. package/dist/hooks/useFocusSequence/useFocusSequence.js +123 -0
  273. package/dist/hooks/useId/index.js +1 -0
  274. package/dist/hooks/useId/useId.js +14 -0
  275. package/dist/hooks/useIsFocused/index.js +1 -0
  276. package/dist/hooks/useIsFocused/useIsFocused.js +17 -0
  277. package/dist/hooks/useIsHovered/index.js +1 -0
  278. package/dist/hooks/useIsHovered/useIsHovered.js +17 -0
  279. package/dist/hooks/useIsTruncated/index.js +1 -0
  280. package/dist/hooks/useIsTruncated/useIsTruncated.js +40 -0
  281. package/dist/hooks/useLatest/index.js +1 -0
  282. package/dist/hooks/useLatest/useLatest.js +16 -0
  283. package/dist/hooks/useMounted/index.js +1 -0
  284. package/dist/hooks/useMounted/useMounted.js +20 -0
  285. package/dist/hooks/useMouseDrag/index.js +1 -0
  286. package/dist/hooks/useMouseDrag/useMouseDrag.js +29 -0
  287. package/dist/hooks/useOverlay/index.js +1 -0
  288. package/dist/hooks/useOverlay/useOverlay.js +68 -0
  289. package/dist/hooks/useOverlay/useOverlay2.js +8 -0
  290. package/dist/hooks/usePrevious/index.js +1 -0
  291. package/dist/hooks/usePrevious/usePrevious.js +16 -0
  292. package/dist/hooks/useResponsiveValue/index.js +1 -0
  293. package/dist/hooks/useResponsiveValue/useResponsiveValue.js +19 -0
  294. package/dist/hooks/useSSRLayoutEffect/index.js +1 -0
  295. package/dist/hooks/useSSRLayoutEffect/useSSRLayoutEffect.js +10 -0
  296. package/dist/hooks/useScreenReaderAnnouncement/index.js +1 -0
  297. package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement.js +72 -0
  298. package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +8 -0
  299. package/dist/icons/Icon.js +8 -0
  300. package/dist/icons/components/ABCIcon.js +6 -0
  301. package/dist/icons/components/AIIcon.js +6 -0
  302. package/dist/icons/components/AccessibilityIcon.js +6 -0
  303. package/dist/icons/components/AccountIcon.js +6 -0
  304. package/dist/icons/components/AccountsTableIcon.js +6 -0
  305. package/dist/icons/components/ActionPlanningIcon.js +6 -0
  306. package/dist/icons/components/ActiveIcon.js +6 -0
  307. package/dist/icons/components/AddIcon.js +6 -0
  308. package/dist/icons/components/AddItemIcon.js +6 -0
  309. package/dist/icons/components/AddonsIcon.js +6 -0
  310. package/dist/icons/components/AdminGearsIcon.js +6 -0
  311. package/dist/icons/components/AgentLeftIcon.js +6 -0
  312. package/dist/icons/components/AgentPerformanceIcon.js +6 -0
  313. package/dist/icons/components/AgentRightIcon.js +6 -0
  314. package/dist/icons/components/AggregateFunctionIcon.js +6 -0
  315. package/dist/icons/components/AlignImageBottomIcon.js +6 -0
  316. package/dist/icons/components/AlignImageCenterIcon.js +6 -0
  317. package/dist/icons/components/AlignImageLeftIcon.js +6 -0
  318. package/dist/icons/components/AlignImageMiddleIcon.js +6 -0
  319. package/dist/icons/components/AlignImageRightIcon.js +6 -0
  320. package/dist/icons/components/AlignImageTopIcon.js +6 -0
  321. package/dist/icons/components/AlignTextBottomIcon.js +6 -0
  322. package/dist/icons/components/AlignTextLeftIcon.js +6 -0
  323. package/dist/icons/components/AlignTextRightIcon.js +6 -0
  324. package/dist/icons/components/AlignTextTopIcon.js +6 -0
  325. package/dist/icons/components/AnimationIcon.js +6 -0
  326. package/dist/icons/components/AreaChartIcon.js +6 -0
  327. package/dist/icons/components/ArrayIcon.js +6 -0
  328. package/dist/icons/components/ArrowDownIcon.js +6 -0
  329. package/dist/icons/components/ArrowLeftIcon.js +6 -0
  330. package/dist/icons/components/ArrowRightIcon.js +6 -0
  331. package/dist/icons/components/ArrowUpIcon.js +6 -0
  332. package/dist/icons/components/AssignUserIcon.js +6 -0
  333. package/dist/icons/components/AutomatedSetupIcon.js +6 -0
  334. package/dist/icons/components/BarChartIcon.js +6 -0
  335. package/dist/icons/components/BellIcon.js +6 -0
  336. package/dist/icons/components/BellSnoozeIcon.js +6 -0
  337. package/dist/icons/components/BenchmarkGraphIcon.js +6 -0
  338. package/dist/icons/components/BinderClipIcon.js +6 -0
  339. package/dist/icons/components/BinocularsIcon.js +6 -0
  340. package/dist/icons/components/BlogIcon.js +6 -0
  341. package/dist/icons/components/BookmarkFillIcon.js +6 -0
  342. package/dist/icons/components/BookmarkIcon.js +6 -0
  343. package/dist/icons/components/BooksIcon.js +6 -0
  344. package/dist/icons/components/BooleanIcon.js +6 -0
  345. package/dist/icons/components/BorderColorElement1Icon.js +6 -0
  346. package/dist/icons/components/BorderColorIcon.js +6 -0
  347. package/dist/icons/components/BranchContinueIcon.js +6 -0
  348. package/dist/icons/components/BranchEndIcon.js +6 -0
  349. package/dist/icons/components/BranchExtensionIcon.js +6 -0
  350. package/dist/icons/components/BubbleCashIcon.js +6 -0
  351. package/dist/icons/components/BubbleChartIcon.js +6 -0
  352. package/dist/icons/components/BubbleClockIcon.js +6 -0
  353. package/dist/icons/components/BubbleDotsIcon.js +6 -0
  354. package/dist/icons/components/BubbleHelpIcon.js +6 -0
  355. package/dist/icons/components/BubbleIcon.js +6 -0
  356. package/dist/icons/components/BubbleInfoIcon.js +6 -0
  357. package/dist/icons/components/BubbleTranslateIcon.js +6 -0
  358. package/dist/icons/components/BugsIcon.js +6 -0
  359. package/dist/icons/components/BusinessImpactIcon.js +6 -0
  360. package/dist/icons/components/ButtonIcon.js +6 -0
  361. package/dist/icons/components/BxLogoIcon.js +6 -0
  362. package/dist/icons/components/CalendarAddIcon.js +6 -0
  363. package/dist/icons/components/CalendarCheckIcon.js +6 -0
  364. package/dist/icons/components/CalendarIcon.js +6 -0
  365. package/dist/icons/components/CameraIcon.js +6 -0
  366. package/dist/icons/components/CaretDownIcon.js +6 -0
  367. package/dist/icons/components/CaretLeftIcon.js +6 -0
  368. package/dist/icons/components/CaretRightIcon.js +6 -0
  369. package/dist/icons/components/CaretUpIcon.js +6 -0
  370. package/dist/icons/components/CarryForwardChoicesIcon.js +6 -0
  371. package/dist/icons/components/CatalogIcon.js +6 -0
  372. package/dist/icons/components/CenterXIcon.js +6 -0
  373. package/dist/icons/components/CenterYIcon.js +6 -0
  374. package/dist/icons/components/Chart19Icon.js +6 -0
  375. package/dist/icons/components/ChartImpactIcon.js +6 -0
  376. package/dist/icons/components/ChartParetoIcon.js +6 -0
  377. package/dist/icons/components/ChartPolarIcon.js +6 -0
  378. package/dist/icons/components/CheckIcon.js +6 -0
  379. package/dist/icons/components/ChevronDownIcon.js +6 -0
  380. package/dist/icons/components/ChevronLeftIcon.js +6 -0
  381. package/dist/icons/components/ChevronRightIcon.js +6 -0
  382. package/dist/icons/components/ChevronSetIcon.js +6 -0
  383. package/dist/icons/components/ChevronSkipBackIcon.js +6 -0
  384. package/dist/icons/components/ChevronSkipForwardIcon.js +6 -0
  385. package/dist/icons/components/ChevronUpIcon.js +6 -0
  386. package/dist/icons/components/ClassIcon.js +6 -0
  387. package/dist/icons/components/ClearFormattingIcon.js +6 -0
  388. package/dist/icons/components/ClipboardIcon.js +6 -0
  389. package/dist/icons/components/ClockIcon.js +6 -0
  390. package/dist/icons/components/CloseCaptioningIcon.js +6 -0
  391. package/dist/icons/components/CloseIcon.js +6 -0
  392. package/dist/icons/components/ClosePanelLeftIcon.js +6 -0
  393. package/dist/icons/components/ClosePanelRightIcon.js +6 -0
  394. package/dist/icons/components/CloudyIcon.js +6 -0
  395. package/dist/icons/components/CoachingPrioritiesIcon.js +6 -0
  396. package/dist/icons/components/CodeBracketsIcon.js +6 -0
  397. package/dist/icons/components/CoffeeIcon.js +6 -0
  398. package/dist/icons/components/ColumnFilterIcon.js +6 -0
  399. package/dist/icons/components/ColumnsIcon.js +6 -0
  400. package/dist/icons/components/CommentsIcon.js +6 -0
  401. package/dist/icons/components/ConditionIcon.js +6 -0
  402. package/dist/icons/components/ConstantSumIcon.js +6 -0
  403. package/dist/icons/components/ContactIcon.js +6 -0
  404. package/dist/icons/components/ContactListIcon.js +6 -0
  405. package/dist/icons/components/ContactsIcon.js +6 -0
  406. package/dist/icons/components/ConversationAgentIcon.js +6 -0
  407. package/dist/icons/components/ConversationCustomerIcon.js +6 -0
  408. package/dist/icons/components/ConversationSilenceIcon.js +6 -0
  409. package/dist/icons/components/ConversionIcon.js +6 -0
  410. package/dist/icons/components/CopyIcon.js +6 -0
  411. package/dist/icons/components/CoreXMIcon.js +6 -0
  412. package/dist/icons/components/CreditCardIcon.js +6 -0
  413. package/dist/icons/components/CrossAnalyticsIcon.js +6 -0
  414. package/dist/icons/components/CustomMetricIcon.js +6 -0
  415. package/dist/icons/components/CustomerLeftIcon.js +6 -0
  416. package/dist/icons/components/CustomerRightIcon.js +6 -0
  417. package/dist/icons/components/CxLogoIcon.js +6 -0
  418. package/dist/icons/components/DashboardIcon.js +6 -0
  419. package/dist/icons/components/DataAnalysisIcon.js +6 -0
  420. package/dist/icons/components/DataSourceIcon.js +6 -0
  421. package/dist/icons/components/DatabaseIcon.js +6 -0
  422. package/dist/icons/components/DeadClickIcon.js +6 -0
  423. package/dist/icons/components/DecimalIcon.js +6 -0
  424. package/dist/icons/components/DefaultChoiceIcon.js +6 -0
  425. package/dist/icons/components/DeltaIcon.js +6 -0
  426. package/dist/icons/components/DeniedIcon.js +6 -0
  427. package/dist/icons/components/DescriptiveTextIcon.js +6 -0
  428. package/dist/icons/components/DesktopIcon.js +6 -0
  429. package/dist/icons/components/DetectedIcon.js +6 -0
  430. package/dist/icons/components/DiamondIcon.js +6 -0
  431. package/dist/icons/components/DirectoryIcon.js +6 -0
  432. package/dist/icons/components/DisplayLogicIcon.js +6 -0
  433. package/dist/icons/components/DistributionSummaryIcon.js +6 -0
  434. package/dist/icons/components/DocumentAlertIcon.js +6 -0
  435. package/dist/icons/components/DogIcon.js +6 -0
  436. package/dist/icons/components/DonutChartIcon.js +6 -0
  437. package/dist/icons/components/DownloadIcon.js +6 -0
  438. package/dist/icons/components/DownvoteFilledIcon.js +6 -0
  439. package/dist/icons/components/DownvoteIcon.js +6 -0
  440. package/dist/icons/components/DraftIcon.js +6 -0
  441. package/dist/icons/components/DragAndDropIcon.js +6 -0
  442. package/dist/icons/components/DragIcon.js +6 -0
  443. package/dist/icons/components/DrilldownIcon.js +6 -0
  444. package/dist/icons/components/DropIcon.js +6 -0
  445. package/dist/icons/components/EXCOVIDReturnToWorkIcon.js +6 -0
  446. package/dist/icons/components/EXCOVIDSolutionIcon.js +6 -0
  447. package/dist/icons/components/EditorGenericIcon.js +6 -0
  448. package/dist/icons/components/EffortEasyIcon.js +6 -0
  449. package/dist/icons/components/EffortHardIcon.js +6 -0
  450. package/dist/icons/components/EffortIcon.js +6 -0
  451. package/dist/icons/components/EffortMixedIcon.js +6 -0
  452. package/dist/icons/components/EffortNegativeIcon.js +6 -0
  453. package/dist/icons/components/EffortNeutralIcon.js +6 -0
  454. package/dist/icons/components/EffortPositiveIcon.js +6 -0
  455. package/dist/icons/components/EffortVeryEasyIcon.js +6 -0
  456. package/dist/icons/components/EffortVeryHardIcon.js +6 -0
  457. package/dist/icons/components/EllipsisHorizontalIcon.js +6 -0
  458. package/dist/icons/components/EllipsisVerticalIcon.js +6 -0
  459. package/dist/icons/components/EmojiColorAngryIcon.js +6 -0
  460. package/dist/icons/components/EmojiColorHappiestIcon.js +6 -0
  461. package/dist/icons/components/EmojiColorHappyIcon.js +6 -0
  462. package/dist/icons/components/EmojiColorNotGreatIcon.js +6 -0
  463. package/dist/icons/components/EmojiColorOKIcon.js +6 -0
  464. package/dist/icons/components/EmojiColorPrettyGoodIcon.js +6 -0
  465. package/dist/icons/components/EmojiColorSadIcon.js +6 -0
  466. package/dist/icons/components/EmojiColorUnhappyIcon.js +6 -0
  467. package/dist/icons/components/EmojiMonoAngryIcon.js +6 -0
  468. package/dist/icons/components/EmojiMonoHappiestIcon.js +6 -0
  469. package/dist/icons/components/EmojiMonoHappyIcon.js +6 -0
  470. package/dist/icons/components/EmojiMonoNotGreatIcon.js +6 -0
  471. package/dist/icons/components/EmojiMonoOKIcon.js +6 -0
  472. package/dist/icons/components/EmojiMonoPrettyGoodIcon.js +6 -0
  473. package/dist/icons/components/EmojiMonoUnhappyIcon.js +6 -0
  474. package/dist/icons/components/Employee360Icon.js +6 -0
  475. package/dist/icons/components/EmployeeAdHocIcon.js +6 -0
  476. package/dist/icons/components/EmployeeEngagementIcon.js +6 -0
  477. package/dist/icons/components/EmployeeLifecycleIcon.js +6 -0
  478. package/dist/icons/components/EmployeePulseIcon.js +6 -0
  479. package/dist/icons/components/EmptyBoxIcon.js +6 -0
  480. package/dist/icons/components/EnvelopeClosedIcon.js +6 -0
  481. package/dist/icons/components/EnvelopeOpenedIcon.js +6 -0
  482. package/dist/icons/components/EnvelopeOptedOutIcon.js +6 -0
  483. package/dist/icons/components/ErrorClickIcon.js +6 -0
  484. package/dist/icons/components/ErrorIcon.js +6 -0
  485. package/dist/icons/components/EventTriggerIcon.js +6 -0
  486. package/dist/icons/components/ExLogoIcon.js +6 -0
  487. package/dist/icons/components/ExampleProjectIcon.js +6 -0
  488. package/dist/icons/components/ExcludeIcon.js +6 -0
  489. package/dist/icons/components/ExclusiveAnswerIcon.js +6 -0
  490. package/dist/icons/components/ExternalLinkIcon.js +6 -0
  491. package/dist/icons/components/EyeDropperIcon.js +6 -0
  492. package/dist/icons/components/FastForwardIcon.js +6 -0
  493. package/dist/icons/components/FastReplyIcon.js +6 -0
  494. package/dist/icons/components/FeedbackIcon.js +6 -0
  495. package/dist/icons/components/FileAudioIcon.js +6 -0
  496. package/dist/icons/components/FileExcelIcon.js +6 -0
  497. package/dist/icons/components/FileIcon.js +6 -0
  498. package/dist/icons/components/FilePdfIcon.js +6 -0
  499. package/dist/icons/components/FilterIcon.js +6 -0
  500. package/dist/icons/components/FingerprintIcon.js +6 -0
  501. package/dist/icons/components/FireIcon.js +6 -0
  502. package/dist/icons/components/FlagIcon.js +6 -0
  503. package/dist/icons/components/FolderFullIcon.js +6 -0
  504. package/dist/icons/components/FolderIcon.js +6 -0
  505. package/dist/icons/components/FolderOpenFullIcon.js +6 -0
  506. package/dist/icons/components/FolderOpenIcon.js +6 -0
  507. package/dist/icons/components/FontSizeIcon.js +6 -0
  508. package/dist/icons/components/FormFieldIcon.js +6 -0
  509. package/dist/icons/components/GalleryIcon.js +6 -0
  510. package/dist/icons/components/GaugeChartIcon.js +6 -0
  511. package/dist/icons/components/GlobeIcon.js +6 -0
  512. package/dist/icons/components/GraphicSliderIcon.js +6 -0
  513. package/dist/icons/components/GridViewIcon.js +6 -0
  514. package/dist/icons/components/HamburgerMenuIcon.js +6 -0
  515. package/dist/icons/components/HeadphonesIcon.js +6 -0
  516. package/dist/icons/components/HeadsetIcon.js +6 -0
  517. package/dist/icons/components/HealthWellnessIcon.js +6 -0
  518. package/dist/icons/components/HeatMapIcon.js +6 -0
  519. package/dist/icons/components/HelpIcon.js +6 -0
  520. package/dist/icons/components/HighVolumeIcon.js +6 -0
  521. package/dist/icons/components/HighlightIcon.js +6 -0
  522. package/dist/icons/components/HistoryIcon.js +6 -0
  523. package/dist/icons/components/HomeIcon.js +6 -0
  524. package/dist/icons/components/HotspotIcon.js +6 -0
  525. package/dist/icons/components/HyperlinkIcon.js +6 -0
  526. package/dist/icons/components/IceCreamIcon.js +6 -0
  527. package/dist/icons/components/IgnoredIcon.js +6 -0
  528. package/dist/icons/components/ImageIcon.js +6 -0
  529. package/dist/icons/components/ImportedDataIcon.js +6 -0
  530. package/dist/icons/components/InactiveIcon.js +6 -0
  531. package/dist/icons/components/IncompleteTranslationsIcon.js +6 -0
  532. package/dist/icons/components/IndentMoreIcon.js +6 -0
  533. package/dist/icons/components/InformationIcon.js +6 -0
  534. package/dist/icons/components/InlineQuestionIcon.js +6 -0
  535. package/dist/icons/components/InsertLineIcon.js +6 -0
  536. package/dist/icons/components/IntegerIcon.js +6 -0
  537. package/dist/icons/components/IntegrationIcon.js +6 -0
  538. package/dist/icons/components/IntensityHighIcon.js +6 -0
  539. package/dist/icons/components/IntensityLowIcon.js +6 -0
  540. package/dist/icons/components/IntensityMediumIcon.js +6 -0
  541. package/dist/icons/components/InterceptIcon.js +6 -0
  542. package/dist/icons/components/JoinInnerIcon.js +6 -0
  543. package/dist/icons/components/JoinLeftOuterIcon.js +6 -0
  544. package/dist/icons/components/JoinOuterIcon.js +6 -0
  545. package/dist/icons/components/JoinRightOuterIcon.js +6 -0
  546. package/dist/icons/components/JourneyMapIcon.js +6 -0
  547. package/dist/icons/components/KeyboardIcon.js +6 -0
  548. package/dist/icons/components/LibrariesIcon.js +6 -0
  549. package/dist/icons/components/LibraryLinkIcon.js +6 -0
  550. package/dist/icons/components/LightBulbIcon.js +6 -0
  551. package/dist/icons/components/LightningBoltIcon.js +6 -0
  552. package/dist/icons/components/LineChartIcon.js +6 -0
  553. package/dist/icons/components/ListBulletsIcon.js +6 -0
  554. package/dist/icons/components/ListCheckedIcon.js +6 -0
  555. package/dist/icons/components/ListNumbersIcon.js +6 -0
  556. package/dist/icons/components/LocationIcon.js +6 -0
  557. package/dist/icons/components/LockIcon.js +6 -0
  558. package/dist/icons/components/LogicTreeIcon.js +6 -0
  559. package/dist/icons/components/LookAndFeelIcon.js +6 -0
  560. package/dist/icons/components/LoopAndMergeIcon.js +6 -0
  561. package/dist/icons/components/LowerCaseIcon.js +6 -0
  562. package/dist/icons/components/MailboxIcon.js +6 -0
  563. package/dist/icons/components/MarkerIcon.js +6 -0
  564. package/dist/icons/components/MatrixTableIcon.js +6 -0
  565. package/dist/icons/components/MaximizeIcon.js +6 -0
  566. package/dist/icons/components/MegaphoneIcon.js +6 -0
  567. package/dist/icons/components/MergeIcon.js +6 -0
  568. package/dist/icons/components/MetadataIcon.js +6 -0
  569. package/dist/icons/components/MicrophoneIcon.js +6 -0
  570. package/dist/icons/components/MicrophoneMuteIcon.js +6 -0
  571. package/dist/icons/components/MinimizeIcon.js +6 -0
  572. package/dist/icons/components/MobileLandscapeIcon.js +6 -0
  573. package/dist/icons/components/MobilePortraitIcon.js +6 -0
  574. package/dist/icons/components/ModelsIcon.js +6 -0
  575. package/dist/icons/components/MoonIcon.js +6 -0
  576. package/dist/icons/components/MouseThrashIcon.js +6 -0
  577. package/dist/icons/components/MouseTrailIcon.js +6 -0
  578. package/dist/icons/components/MoveIcon.js +6 -0
  579. package/dist/icons/components/MultipleChoiceIcon.js +6 -0
  580. package/dist/icons/components/MusicNoteIcon.js +6 -0
  581. package/dist/icons/components/NPSIcon.js +6 -0
  582. package/dist/icons/components/NewCustomerIcon.js +6 -0
  583. package/dist/icons/components/NewTemplateIcon.js +6 -0
  584. package/dist/icons/components/NewspaperIcon.js +6 -0
  585. package/dist/icons/components/NotInFlowIcon.js +6 -0
  586. package/dist/icons/components/NumbersIcon.js +6 -0
  587. package/dist/icons/components/ObjectIcon.js +6 -0
  588. package/dist/icons/components/OnlinePanelIcon.js +6 -0
  589. package/dist/icons/components/OpenPanelLeftIcon.js +6 -0
  590. package/dist/icons/components/OpenPanelRightIcon.js +6 -0
  591. package/dist/icons/components/OrgHierarchyIcon.js +6 -0
  592. package/dist/icons/components/OutboxIcon.js +6 -0
  593. package/dist/icons/components/OutdentIcon.js +6 -0
  594. package/dist/icons/components/PageBreakIcon.js +6 -0
  595. package/dist/icons/components/PagesIcon.js +6 -0
  596. package/dist/icons/components/PaginateFilterIcon.js +6 -0
  597. package/dist/icons/components/PaintBrushIcon.js +6 -0
  598. package/dist/icons/components/PaintBrushRoundIcon.js +6 -0
  599. package/dist/icons/components/PaintBucketIcon.js +6 -0
  600. package/dist/icons/components/PaperClipIcon.js +6 -0
  601. package/dist/icons/components/ParagraphIcon.js +6 -0
  602. package/dist/icons/components/ParticipantInviteAutomationIcon.js +6 -0
  603. package/dist/icons/components/ParticipantPortalIcon.js +6 -0
  604. package/dist/icons/components/PartlyCloudyIcon.js +6 -0
  605. package/dist/icons/components/PasswordLockIcon.js +6 -0
  606. package/dist/icons/components/PauseCircleIcon.js +6 -0
  607. package/dist/icons/components/PauseIcon.js +6 -0
  608. package/dist/icons/components/PencilIcon.js +6 -0
  609. package/dist/icons/components/PercentageIcon.js +6 -0
  610. package/dist/icons/components/PhoneIcon.js +6 -0
  611. package/dist/icons/components/PickGroupRankIcon.js +6 -0
  612. package/dist/icons/components/PieChartIcon.js +6 -0
  613. package/dist/icons/components/PinIcon.js +6 -0
  614. package/dist/icons/components/PinToIcon.js +6 -0
  615. package/dist/icons/components/PipedTextIcon.js +6 -0
  616. package/dist/icons/components/PlayIcon.js +6 -0
  617. package/dist/icons/components/PlaybookIcon.js +6 -0
  618. package/dist/icons/components/PodcastIcon.js +6 -0
  619. package/dist/icons/components/PointerHandCursorIcon.js +6 -0
  620. package/dist/icons/components/PortalConfigIcon.js +6 -0
  621. package/dist/icons/components/PostcardIcon.js +6 -0
  622. package/dist/icons/components/PowerIcon.js +6 -0
  623. package/dist/icons/components/PreIcon.js +6 -0
  624. package/dist/icons/components/PresentationIcon.js +6 -0
  625. package/dist/icons/components/PrinterIcon.js +6 -0
  626. package/dist/icons/components/Priority1Icon.js +6 -0
  627. package/dist/icons/components/Priority2Icon.js +6 -0
  628. package/dist/icons/components/Priority3Icon.js +6 -0
  629. package/dist/icons/components/Priority4Icon.js +6 -0
  630. package/dist/icons/components/PrivateDataIcon.js +6 -0
  631. package/dist/icons/components/ProgramIcon.js +6 -0
  632. package/dist/icons/components/ProjectBarIcon.js +6 -0
  633. package/dist/icons/components/ProjectIcon.js +6 -0
  634. package/dist/icons/components/PublishIcon.js +6 -0
  635. package/dist/icons/components/PxLogoIcon.js +6 -0
  636. package/dist/icons/components/QRCodeIcon.js +6 -0
  637. package/dist/icons/components/QuestionBlockIcon.js +6 -0
  638. package/dist/icons/components/QuoteBoxIcon.js +6 -0
  639. package/dist/icons/components/QuotesIcon.js +6 -0
  640. package/dist/icons/components/RSSIcon.js +6 -0
  641. package/dist/icons/components/RageClickIcon.js +6 -0
  642. package/dist/icons/components/RainyIcon.js +6 -0
  643. package/dist/icons/components/RaiseHandIcon.js +6 -0
  644. package/dist/icons/components/RecodedValuesIcon.js +6 -0
  645. package/dist/icons/components/RecordIcon.js +6 -0
  646. package/dist/icons/components/RedoIcon.js +6 -0
  647. package/dist/icons/components/ReferenceBlockIcon.js +6 -0
  648. package/dist/icons/components/RefreshIcon.js +6 -0
  649. package/dist/icons/components/RemoveItemIcon.js +6 -0
  650. package/dist/icons/components/RemoveLinkIcon.js +6 -0
  651. package/dist/icons/components/ReplyIcon.js +6 -0
  652. package/dist/icons/components/ReportIcon.js +6 -0
  653. package/dist/icons/components/ReputationManagementIcon.js +6 -0
  654. package/dist/icons/components/RetweetIcon.js +6 -0
  655. package/dist/icons/components/ReusableChoicesIcon.js +6 -0
  656. package/dist/icons/components/ReverseIcon.js +6 -0
  657. package/dist/icons/components/RhoIcon.js +6 -0
  658. package/dist/icons/components/RichTextEditorIcon.js +6 -0
  659. package/dist/icons/components/RiskIcon.js +6 -0
  660. package/dist/icons/components/RobotIcon.js +6 -0
  661. package/dist/icons/components/RolesIcon.js +6 -0
  662. package/dist/icons/components/SMSIcon.js +6 -0
  663. package/dist/icons/components/SatisfactionChartsIcon.js +6 -0
  664. package/dist/icons/components/SaveIcon.js +6 -0
  665. package/dist/icons/components/ScheduledIcon.js +6 -0
  666. package/dist/icons/components/SchemaDataIcon.js +6 -0
  667. package/dist/icons/components/SchemaEditorIcon.js +6 -0
  668. package/dist/icons/components/ScorecardIcon.js +6 -0
  669. package/dist/icons/components/ScreenCaptureIcon.js +6 -0
  670. package/dist/icons/components/SearchAddIcon.js +6 -0
  671. package/dist/icons/components/SearchIcon.js +6 -0
  672. package/dist/icons/components/SegmentIcon.js +6 -0
  673. package/dist/icons/components/SelectColumnIcon.js +6 -0
  674. package/dist/icons/components/SendIcon.js +6 -0
  675. package/dist/icons/components/SentenceCaseIcon.js +6 -0
  676. package/dist/icons/components/SentimentMixedIcon.js +6 -0
  677. package/dist/icons/components/SentimentNegativeIcon.js +6 -0
  678. package/dist/icons/components/SentimentNeutralIcon.js +6 -0
  679. package/dist/icons/components/SentimentPositiveIcon.js +6 -0
  680. package/dist/icons/components/SentimentVeryNegativeIcon.js +6 -0
  681. package/dist/icons/components/SentimentVeryPositiveIcon.js +6 -0
  682. package/dist/icons/components/SettingsIcon.js +6 -0
  683. package/dist/icons/components/ShareIcon.js +6 -0
  684. package/dist/icons/components/SharedFolderIcon.js +6 -0
  685. package/dist/icons/components/ShieldIcon.js +6 -0
  686. package/dist/icons/components/ShuffleIcon.js +6 -0
  687. package/dist/icons/components/SideBySideIcon.js +6 -0
  688. package/dist/icons/components/SignatureIcon.js +6 -0
  689. package/dist/icons/components/SkipBackIcon.js +6 -0
  690. package/dist/icons/components/SkipForwardIcon.js +6 -0
  691. package/dist/icons/components/SkipIcon.js +6 -0
  692. package/dist/icons/components/SliderIcon.js +6 -0
  693. package/dist/icons/components/SliderOptionsIcon.js +6 -0
  694. package/dist/icons/components/SmallCapsIcon.js +6 -0
  695. package/dist/icons/components/SocialResponseIcon.js +6 -0
  696. package/dist/icons/components/SortAlphabeticAscendingIcon.js +6 -0
  697. package/dist/icons/components/SortAlphabeticDescendingIcon.js +6 -0
  698. package/dist/icons/components/SortBothIcon.js +6 -0
  699. package/dist/icons/components/SortDownIcon.js +6 -0
  700. package/dist/icons/components/SortNumberAscendingIcon.js +6 -0
  701. package/dist/icons/components/SortNumberDescendingIcon.js +6 -0
  702. package/dist/icons/components/SortUpIcon.js +6 -0
  703. package/dist/icons/components/SparkleIcon.js +6 -0
  704. package/dist/icons/components/SpecialCharactersIcon.js +6 -0
  705. package/dist/icons/components/SpinnerIcon.js +6 -0
  706. package/dist/icons/components/SquareMinusIcon.js +6 -0
  707. package/dist/icons/components/SquarePlusIcon.js +6 -0
  708. package/dist/icons/components/StarFilledIcon.js +6 -0
  709. package/dist/icons/components/StarHalfIcon.js +6 -0
  710. package/dist/icons/components/StarOutlinedIcon.js +6 -0
  711. package/dist/icons/components/StarRankingIcon.js +6 -0
  712. package/dist/icons/components/StatsAnalysisIcon.js +6 -0
  713. package/dist/icons/components/StopRecordingIcon.js +6 -0
  714. package/dist/icons/components/StormyIcon.js +6 -0
  715. package/dist/icons/components/StrategicAccountsIcon.js +6 -0
  716. package/dist/icons/components/StudentIcon.js +6 -0
  717. package/dist/icons/components/SubscriptIcon.js +6 -0
  718. package/dist/icons/components/SubtractIcon.js +6 -0
  719. package/dist/icons/components/SuccessIcon.js +6 -0
  720. package/dist/icons/components/SumIcon.js +6 -0
  721. package/dist/icons/components/SunnyIcon.js +6 -0
  722. package/dist/icons/components/SuperscriptIcon.js +6 -0
  723. package/dist/icons/components/SurveyCompleteIcon.js +6 -0
  724. package/dist/icons/components/SurveyDirectorIcon.js +6 -0
  725. package/dist/icons/components/SurveyExpiredIcon.js +6 -0
  726. package/dist/icons/components/SurveyIQIcon.js +6 -0
  727. package/dist/icons/components/SurveyIcon.js +6 -0
  728. package/dist/icons/components/SurveyInviteIcon.js +6 -0
  729. package/dist/icons/components/TableAppendIcon.js +6 -0
  730. package/dist/icons/components/TableIcon.js +6 -0
  731. package/dist/icons/components/TabletIcon.js +6 -0
  732. package/dist/icons/components/TagIcon.js +6 -0
  733. package/dist/icons/components/TeacherIcon.js +6 -0
  734. package/dist/icons/components/TemplateIcon.js +6 -0
  735. package/dist/icons/components/TextAlignCenterIcon.js +6 -0
  736. package/dist/icons/components/TextAlignJustifiedIcon.js +6 -0
  737. package/dist/icons/components/TextAlignLeftIcon.js +6 -0
  738. package/dist/icons/components/TextAlignRightIcon.js +6 -0
  739. package/dist/icons/components/TextAnalysisIcon.js +6 -0
  740. package/dist/icons/components/TextBlockIcon.js +6 -0
  741. package/dist/icons/components/TextBoldIcon.js +6 -0
  742. package/dist/icons/components/TextBottomToTopIcon.js +6 -0
  743. package/dist/icons/components/TextColorIcon.js +6 -0
  744. package/dist/icons/components/TextColorLetterIcon.js +6 -0
  745. package/dist/icons/components/TextColorSwatchIcon.js +6 -0
  746. package/dist/icons/components/TextEntryIcon.js +6 -0
  747. package/dist/icons/components/TextItalicIcon.js +6 -0
  748. package/dist/icons/components/TextLeftToRightIcon.js +6 -0
  749. package/dist/icons/components/TextRightToLeftIcon.js +6 -0
  750. package/dist/icons/components/TextStrikeThroughIcon.js +6 -0
  751. package/dist/icons/components/TextUnderlineIcon.js +6 -0
  752. package/dist/icons/components/ThirdPartyQuestionIcon.js +6 -0
  753. package/dist/icons/components/ThreeSixtyProjectIcon.js +6 -0
  754. package/dist/icons/components/ThumbsDownIcon.js +6 -0
  755. package/dist/icons/components/ThumbsUpIcon.js +6 -0
  756. package/dist/icons/components/TicketsIcon.js +6 -0
  757. package/dist/icons/components/TimingIcon.js +6 -0
  758. package/dist/icons/components/ToolsIcon.js +6 -0
  759. package/dist/icons/components/TransactionIcon.js +6 -0
  760. package/dist/icons/components/TranslationIcon.js +6 -0
  761. package/dist/icons/components/TrashIcon.js +6 -0
  762. package/dist/icons/components/UndetectedIcon.js +6 -0
  763. package/dist/icons/components/UndoIcon.js +6 -0
  764. package/dist/icons/components/UnionIcon.js +6 -0
  765. package/dist/icons/components/UniqueLinkIcon.js +6 -0
  766. package/dist/icons/components/UnlinkIcon.js +6 -0
  767. package/dist/icons/components/UnlockIcon.js +6 -0
  768. package/dist/icons/components/UnpinIcon.js +6 -0
  769. package/dist/icons/components/UpDownIcon.js +6 -0
  770. package/dist/icons/components/UploadIcon.js +6 -0
  771. package/dist/icons/components/UpperCaseIcon.js +6 -0
  772. package/dist/icons/components/UpvoteFilledIcon.js +6 -0
  773. package/dist/icons/components/UpvoteIcon.js +6 -0
  774. package/dist/icons/components/UserGroupIcon.js +6 -0
  775. package/dist/icons/components/UserIcon.js +6 -0
  776. package/dist/icons/components/UserLockedIcon.js +6 -0
  777. package/dist/icons/components/ValidationIcon.js +6 -0
  778. package/dist/icons/components/VariableNamingIcon.js +6 -0
  779. package/dist/icons/components/VideoIcon.js +6 -0
  780. package/dist/icons/components/ViewOffIcon.js +6 -0
  781. package/dist/icons/components/ViewOnIcon.js +6 -0
  782. package/dist/icons/components/VocalizeDashboardIcon.js +6 -0
  783. package/dist/icons/components/VolumeIcon.js +6 -0
  784. package/dist/icons/components/VolumeLowIcon.js +6 -0
  785. package/dist/icons/components/VolumeMuteIcon.js +6 -0
  786. package/dist/icons/components/WaffleMenuIcon.js +6 -0
  787. package/dist/icons/components/WarningIcon.js +6 -0
  788. package/dist/icons/components/WebhookIcon.js +6 -0
  789. package/dist/icons/components/WhatsAppIcon.js +6 -0
  790. package/dist/icons/components/WidgetsIcon.js +6 -0
  791. package/dist/icons/components/WifiIcon.js +6 -0
  792. package/dist/icons/components/WorkflowsIcon.js +6 -0
  793. package/dist/icons/components/WorkingFromHomeIcon.js +6 -0
  794. package/dist/icons/createIconComponent.js +41 -0
  795. package/dist/icons/index.d.ts +1004 -0
  796. package/dist/icons/index.es.js +496 -0
  797. package/dist/icons/index.js +505 -0
  798. package/dist/index.d.ts +2100 -0
  799. package/dist/index.es.js +106 -0
  800. package/dist/index.js +128 -0
  801. package/dist/next/AdvancedTable/AdvancedTable.js +913 -0
  802. package/dist/next/AdvancedTable/AdvancedTable2.js +8 -0
  803. package/dist/next/AdvancedTable/AdvancedTableCell.js +104 -0
  804. package/dist/next/AdvancedTable/AdvancedTableCheckbox.js +51 -0
  805. package/dist/next/AdvancedTable/AdvancedTableColumnHeader.js +330 -0
  806. package/dist/next/AdvancedTable/AdvancedTableColumnHeaderMenu.js +141 -0
  807. package/dist/next/AdvancedTable/AdvancedTableColumnHeaders.js +24 -0
  808. package/dist/next/AdvancedTable/AdvancedTableDragPreview.js +35 -0
  809. package/dist/next/AdvancedTable/AdvancedTableHiddenDescription.js +20 -0
  810. package/dist/next/AdvancedTable/AdvancedTablePagination.js +36 -0
  811. package/dist/next/AdvancedTable/AdvancedTableRow.js +35 -0
  812. package/dist/next/AdvancedTable/AdvancedTableRowExpandButton.js +45 -0
  813. package/dist/next/AdvancedTable/AdvancedTableTypes.js +18 -0
  814. package/dist/next/AdvancedTable/index.js +3 -0
  815. package/dist/next/AdvancedTable/useAdvancedTableDragAndDrop.js +171 -0
  816. package/dist/next/AdvancedTable/useComputedWidth.js +9 -0
  817. package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput.js +133 -0
  818. package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +8 -0
  819. package/dist/next/CollapsibleSearchInput/CollapsibleSearchInputIconButton.js +30 -0
  820. package/dist/next/CollapsibleSearchInput/index.js +1 -0
  821. package/dist/next/Combobox/Combobox.js +85 -0
  822. package/dist/next/Combobox/Combobox2.js +8 -0
  823. package/dist/next/Combobox/ComboboxContext.js +9 -0
  824. package/dist/next/Combobox/ComboboxFlyout.js +53 -0
  825. package/dist/next/Combobox/ComboboxGroup.js +55 -0
  826. package/dist/next/Combobox/ComboboxGroupContext.js +19 -0
  827. package/dist/next/Combobox/ComboboxInput.js +154 -0
  828. package/dist/next/Combobox/ComboboxOption.js +76 -0
  829. package/dist/next/Combobox/hooks/index.js +7 -0
  830. package/dist/next/Combobox/hooks/useComboboxFilteredGroup/index.js +1 -0
  831. package/dist/next/Combobox/hooks/useComboboxFilteredGroup/useComboboxFilteredGroup.js +43 -0
  832. package/dist/next/Combobox/hooks/useComboboxFocusSequence/index.js +1 -0
  833. package/dist/next/Combobox/hooks/useComboboxFocusSequence/useComboboxFocusSequence.js +290 -0
  834. package/dist/next/Combobox/hooks/useComboboxLoadingState/index.js +1 -0
  835. package/dist/next/Combobox/hooks/useComboboxLoadingState/useComboboxLoadingState.js +56 -0
  836. package/dist/next/Combobox/hooks/useComboboxValue/index.js +1 -0
  837. package/dist/next/Combobox/hooks/useComboboxValue/useComboboxValue.js +35 -0
  838. package/dist/next/Combobox/hooks/useListboxFlyoutDimensions/index.js +1 -0
  839. package/dist/next/Combobox/hooks/useListboxFlyoutDimensions/useListboxFlyoutDimensions.js +54 -0
  840. package/dist/next/Combobox/hooks/useSelectedOptionScroll/index.js +1 -0
  841. package/dist/next/Combobox/hooks/useSelectedOptionScroll/useSelectedOptionScroll.js +32 -0
  842. package/dist/next/Combobox/hooks/useShouldRenderGroupHeader/index.js +1 -0
  843. package/dist/next/Combobox/hooks/useShouldRenderGroupHeader/useShouldRenderGroupHeader.js +28 -0
  844. package/dist/next/Combobox/index.js +5 -0
  845. package/dist/next/Combobox/utils/index.js +1 -0
  846. package/dist/next/Combobox/utils/nodeRegistration/index.js +1 -0
  847. package/dist/next/Combobox/utils/nodeRegistration/nodeRegistration.js +35 -0
  848. package/dist/next/Drawer/Drawer.js +134 -0
  849. package/dist/next/Drawer/Drawer2.js +8 -0
  850. package/dist/next/Drawer/index.js +1 -0
  851. package/dist/next/FilterAnchor/FilterAnchor.js +101 -0
  852. package/dist/next/FilterAnchor/FilterAnchor2.js +8 -0
  853. package/dist/next/FilterAnchor/index.js +1 -0
  854. package/dist/next/Input/Input.js +75 -0
  855. package/dist/next/Input/Input2.js +8 -0
  856. package/dist/next/Input/index.js +1 -0
  857. package/dist/next/Menu/Menu.js +90 -0
  858. package/dist/next/Menu/Menu2.js +8 -0
  859. package/dist/next/Menu/MenuButton.js +64 -0
  860. package/dist/next/Menu/MenuContext.js +39 -0
  861. package/dist/next/Menu/MenuItem.js +81 -0
  862. package/dist/next/Menu/MenuPane.js +178 -0
  863. package/dist/next/Menu/MenuSearch.js +37 -0
  864. package/dist/next/Menu/SubMenu.js +208 -0
  865. package/dist/next/Menu/constants.js +19 -0
  866. package/dist/next/Menu/index.js +5 -0
  867. package/dist/next/Menu/useCSSVariable.js +10 -0
  868. package/dist/next/Menu/useMutationObserver.js +17 -0
  869. package/dist/next/Menu/usePaneSearch.js +128 -0
  870. package/dist/next/PhoneNumberInput/PhoneNumberInput.js +121 -0
  871. package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +8 -0
  872. package/dist/next/PhoneNumberInput/index.js +1 -0
  873. package/dist/next/SplitButton/SplitButton.js +96 -0
  874. package/dist/next/SplitButton/SplitButton2.js +8 -0
  875. package/dist/next/SplitButton/SplitButtonOption.js +22 -0
  876. package/dist/next/SplitButton/index.js +2 -0
  877. package/dist/next/Stack/HStack.js +11 -0
  878. package/dist/next/Stack/Stack.js +95 -0
  879. package/dist/next/Stack/StackItem.js +37 -0
  880. package/dist/next/Stack/VStack.js +11 -0
  881. package/dist/next/Stack/index.js +3 -0
  882. package/dist/next/TimePicker/TimeDropdown.js +77 -0
  883. package/dist/next/TimePicker/TimeInput.js +86 -0
  884. package/dist/next/TimePicker/TimePicker.js +234 -0
  885. package/dist/next/TimePicker/TimePicker2.js +8 -0
  886. package/dist/next/TimePicker/TimePickerIcon.js +35 -0
  887. package/dist/next/TimePicker/index.js +1 -0
  888. package/dist/next/TimePicker/utils.js +176 -0
  889. package/dist/next/ToggleButton/ToggleButton.js +74 -0
  890. package/dist/next/ToggleButton/ToggleButtonGroup.js +40 -0
  891. package/dist/next/ToggleButton/ToggleButtonGroupContext.js +9 -0
  892. package/dist/next/ToggleButton/index.js +2 -0
  893. package/dist/next/ToggleButton/styles.js +8 -0
  894. package/dist/next/index.d.ts +471 -0
  895. package/dist/next/index.es.js +38 -0
  896. package/dist/next/index.js +4968 -0
  897. package/dist/translations-en.js +69 -0
  898. package/dist/utils/Flyout/Flyout.js +58 -0
  899. package/dist/utils/Flyout/Flyout2.js +8 -0
  900. package/dist/utils/Flyout/FlyoutHeader.js +24 -0
  901. package/dist/utils/Flyout/FlyoutOption.js +31 -0
  902. package/dist/utils/Flyout/index.js +3 -0
  903. package/dist/utils/Popper/Popper.js +191 -0
  904. package/dist/utils/Popper/Popper2.js +8 -0
  905. package/dist/utils/Popper/PopperContext.js +11 -0
  906. package/dist/utils/Popper/index.js +1 -0
  907. package/dist/utils/Portal/Portal.js +26 -0
  908. package/dist/utils/Portal/index.js +1 -0
  909. package/dist/utils/Text/Text.js +38 -0
  910. package/dist/utils/Text/index.js +1 -0
  911. package/dist/utils/TextOverflowTooltip/TextOverflowTooltip.js +50 -0
  912. package/dist/utils/TextOverflowTooltip/index.js +1 -0
  913. package/dist/utils/Translation/Translate.js +65 -0
  914. package/dist/utils/Translation/TranslationProvider.js +26 -0
  915. package/dist/utils/Translation/containsComponentOrElement.js +22 -0
  916. package/dist/utils/Translation/index.js +3 -0
  917. package/dist/utils/Translation/insertPlaceholders.js +13 -0
  918. package/dist/utils/Translation/useTranslation.js +50 -0
  919. package/dist/utils/canUseDOM/canUseDOM.js +9 -0
  920. package/dist/utils/canUseDOM/index.js +1 -0
  921. package/dist/utils/concatIds/concatIds.js +13 -0
  922. package/dist/utils/concatIds/index.js +1 -0
  923. package/dist/utils/constants.js +25 -0
  924. package/dist/utils/createContextUtilities/createContextUtilities.js +19 -0
  925. package/dist/utils/createContextUtilities/index.js +1 -0
  926. package/dist/utils/filterChildren/filterChildren.js +53 -0
  927. package/dist/utils/filterChildren/index.js +1 -0
  928. package/dist/utils/getSubDataTestId/getSubDataTestId.js +14 -0
  929. package/dist/utils/getSubDataTestId/index.js +1 -0
  930. package/dist/utils/index.js +16 -0
  931. package/dist/utils/mediaQueryManager/index.js +1 -0
  932. package/dist/utils/mediaQueryManager/mediaQueryManager.js +48 -0
  933. package/dist/utils/mergeRefs/index.js +1 -0
  934. package/dist/utils/mergeRefs/mergeRefs.js +27 -0
  935. package/dist/utils/sharedTypes.js +1 -0
  936. package/dist/utils/wrapAround/index.js +1 -0
  937. package/dist/utils/wrapAround/wrapAround.js +23 -0
  938. package/dist/utils/wrapEvent/index.js +1 -0
  939. package/dist/utils/wrapEvent/wrapEvent.js +18 -0
  940. package/icons/package.json +24 -0
  941. package/next/package.json +27 -0
  942. package/package.json +1 -1
@@ -0,0 +1,181 @@
1
+ import React__default, { useMemo, useCallback } from 'react';
2
+ import classNames from 'classnames';
3
+ import styles from './LogicEditor2.js';
4
+ import { LOGIC_TYPE_CONDITION, LOGIC_TYPE_SET, SET_VALUE_ANY, SET_VALUE_ALL } from './utils.js';
5
+ import ConditionContainer from './ConditionContainer.js';
6
+ import '../Dropdown/index.js';
7
+ import { useLogicEditorContext } from './LogicEditorContext.js';
8
+ import Controls from './Controls.js';
9
+ import '../../hooks/index.js';
10
+ import '../../utils/index.js';
11
+ import useEventListener from '../../hooks/useEventListener/useEventListener.js';
12
+ import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
13
+ import Dropdown from '../Dropdown/Dropdown.js';
14
+ import DropdownButton from '../Dropdown/DropdownButton.js';
15
+ import DropdownList from '../Dropdown/DropdownList.js';
16
+ import DropdownOption from '../Dropdown/DropdownOption.js';
17
+
18
+ const ConditionSet = function ConditionSet(_ref) {
19
+ let {
20
+ level,
21
+ index,
22
+ parent,
23
+ value,
24
+ firstFocusableElementRef
25
+ } = _ref;
26
+ const {
27
+ fixedSet,
28
+ onNewLogicItem,
29
+ onSetChange,
30
+ translations,
31
+ readOnly,
32
+ rootDataTestId
33
+ } = useLogicEditorContext();
34
+ const position = useMemo(() => ({
35
+ parent,
36
+ index
37
+ }), [parent, index]);
38
+ const conditionRef = React__default.useRef(null);
39
+ const lastConnectionRef = React__default.useRef();
40
+ const lastItemRef = React__default.useRef();
41
+ function setupLastLine() {
42
+ if (lastConnectionRef.current && conditionRef.current && lastItemRef.current) {
43
+ let {
44
+ height
45
+ } = conditionRef.current.getBoundingClientRect();
46
+ const {
47
+ height: lastItemHeight
48
+ } = lastItemRef.current.getBoundingClientRect();
49
+ if (lastItemHeight > 52) {
50
+ height -= lastItemHeight - 52;
51
+ if (fixedSet) {
52
+ height -= 18;
53
+ }
54
+ }
55
+ if (fixedSet) {
56
+ lastConnectionRef.current.style.height = "".concat(height - 38, "px");
57
+ lastConnectionRef.current.style.top = "-".concat(height - 56, "px");
58
+ } else {
59
+ lastConnectionRef.current.style.height = "".concat(height - 18, "px");
60
+ lastConnectionRef.current.style.top = "-".concat(height - 52, "px");
61
+ }
62
+ }
63
+ }
64
+ useEventListener(window, 'resize', setupLastLine);
65
+ React__default.useLayoutEffect(setupLastLine);
66
+ const handleNewLogicItem = useCallback((item, newItemIndex) => {
67
+ onNewLogicItem(item, {
68
+ parent: position,
69
+ index: newItemIndex
70
+ });
71
+ }, [position, onNewLogicItem]);
72
+
73
+ /**
74
+ * Returns a data-testid unique to the current position in the tree.
75
+ * @param prefix - A string that is injected between the root data-testid and the index list.
76
+ * @returns A `-` separated string of indices where the left-most number is the root index and the right-most number is the index of the current controls menu. The string is prefixed with the root data-testid and the string passed to `prefix`;
77
+ */
78
+ const getDataTestId = useCallback((prefix, elementPosition) => {
79
+ const indices = [elementPosition.index];
80
+ let currentParent = elementPosition.parent;
81
+ while (currentParent) {
82
+ indices.unshift(currentParent.index);
83
+ currentParent = currentParent.parent;
84
+ }
85
+
86
+ // Fixed sets still include a root index (which would account for a set dropdown that doesn't actually exist) so the root index is removed from the list
87
+ if (fixedSet) {
88
+ indices.shift();
89
+ }
90
+ return getSubDataTestId(rootDataTestId, "".concat(prefix, "-").concat(indices.join('-')));
91
+ }, [fixedSet, rootDataTestId]);
92
+ function renderControls(itemType, itemPosition, itemLevel, numberOfSetItems, itemId) {
93
+ return /*#__PURE__*/React__default.createElement(Controls, {
94
+ handleNewLogicItem: handleNewLogicItem,
95
+ itemType: itemType,
96
+ parent: itemPosition.parent,
97
+ itemIndex: itemPosition.index,
98
+ itemLevel: itemLevel,
99
+ numberOfSetItems: numberOfSetItems,
100
+ itemId: itemId,
101
+ "data-testid": getDataTestId('condition-actions', itemPosition)
102
+ });
103
+ }
104
+ const renderSetChildren = () => value.conditions.map((item, i, items) => {
105
+ let itemConnectionRef;
106
+ let itemRef;
107
+ if (i === items.length - 1) {
108
+ if (lastConnectionRef.current) {
109
+ // Remove previous last-line styles
110
+ lastConnectionRef.current.style.height = '';
111
+ lastConnectionRef.current.style.top = '';
112
+ }
113
+ itemConnectionRef = lastConnectionRef;
114
+ itemRef = lastItemRef;
115
+ }
116
+ if (item.logicType === LOGIC_TYPE_CONDITION) {
117
+ const conditionPosition = {
118
+ parent: position,
119
+ index: i
120
+ };
121
+ return /*#__PURE__*/React__default.createElement("div", {
122
+ role: "group",
123
+ key: item.id,
124
+ className: styles.branch,
125
+ ref: itemRef
126
+ }, (!fixedSet || value.conditions.length > 1) && /*#__PURE__*/React__default.createElement("span", {
127
+ className: styles.connection,
128
+ ref: itemConnectionRef
129
+ }), /*#__PURE__*/React__default.createElement(ConditionContainer, {
130
+ position: conditionPosition,
131
+ condition: item,
132
+ firstFocusableElementRef: fixedSet && firstFocusableElementRef && i === 0 ? firstFocusableElementRef : undefined,
133
+ conditionControls: !readOnly ? renderControls(LOGIC_TYPE_CONDITION, conditionPosition, level + 1, value.conditions.length, item.id) : undefined
134
+ }));
135
+ }
136
+ if (item.logicType === LOGIC_TYPE_SET) {
137
+ return /*#__PURE__*/React__default.createElement("div", {
138
+ key: item.id,
139
+ className: styles.branch,
140
+ ref: itemRef
141
+ }, /*#__PURE__*/React__default.createElement("span", {
142
+ className: styles.connection,
143
+ ref: itemConnectionRef
144
+ }), /*#__PURE__*/React__default.createElement(ConditionSet, {
145
+ value: item,
146
+ level: level + 1,
147
+ index: i,
148
+ parent: position
149
+ }));
150
+ }
151
+ return undefined;
152
+ });
153
+ return /*#__PURE__*/React__default.createElement("div", {
154
+ className: classNames(styles.set, {
155
+ [styles.fixedSet]: !!fixedSet
156
+ })
157
+ }, !fixedSet && /*#__PURE__*/React__default.createElement("div", {
158
+ className: styles.setWrapper
159
+ }, /*#__PURE__*/React__default.createElement(Dropdown, {
160
+ disabled: readOnly,
161
+ defaultValue: value.value,
162
+ onChange: v => onSetChange(v, position)
163
+ }, /*#__PURE__*/React__default.createElement(DropdownButton, {
164
+ "data-testid": getDataTestId('set-dropdown', {
165
+ parent,
166
+ index
167
+ }),
168
+ ref: firstFocusableElementRef
169
+ }), /*#__PURE__*/React__default.createElement(DropdownList, null, /*#__PURE__*/React__default.createElement(DropdownOption, {
170
+ value: SET_VALUE_ANY,
171
+ label: String(translations.any)
172
+ }), /*#__PURE__*/React__default.createElement(DropdownOption, {
173
+ value: SET_VALUE_ALL,
174
+ label: String(translations.all)
175
+ }))), !readOnly && renderControls(LOGIC_TYPE_SET, position, level, value.conditions.length, value.id)), /*#__PURE__*/React__default.createElement("div", {
176
+ role: "group",
177
+ ref: conditionRef
178
+ }, renderSetChildren()));
179
+ };
180
+
181
+ export { ConditionSet as default };
@@ -0,0 +1,99 @@
1
+ import React__default, { useMemo } from 'react';
2
+ import classNames from 'classnames';
3
+ import styles from './LogicEditor2.js';
4
+ import '../../icons/index.es.js';
5
+ import { LOGIC_TYPE_CONDITION, LOGIC_TYPE_SET, newCondition, newConditionSet } from './utils.js';
6
+ import '../NewMenu/index.js';
7
+ import '../IconButton/index.js';
8
+ import { useLogicEditorContext } from './LogicEditorContext.js';
9
+ import Menu from '../NewMenu/Menu/Menu.js';
10
+ import IconButton from '../IconButton/IconButton.js';
11
+ import EllipsisHorizontalIcon from '../../icons/components/EllipsisHorizontalIcon.js';
12
+ import MenuItem from '../NewMenu/parts/MenuItem.js';
13
+ import AddItemIcon from '../../icons/components/AddItemIcon.js';
14
+ import FilterIcon from '../../icons/components/FilterIcon.js';
15
+ import RemoveItemIcon from '../../icons/components/RemoveItemIcon.js';
16
+
17
+ const Controls = function Controls(_ref) {
18
+ let {
19
+ handleNewLogicItem,
20
+ itemType,
21
+ parent,
22
+ itemIndex,
23
+ itemLevel,
24
+ itemId,
25
+ numberOfSetItems,
26
+ 'data-testid': dataTestId
27
+ } = _ref;
28
+ const {
29
+ translations,
30
+ fixedSet,
31
+ onDelete,
32
+ defaultSetValue,
33
+ maxNestedSets,
34
+ maxConditions,
35
+ controlsRef
36
+ } = useLogicEditorContext();
37
+ const canAddNewSet = useMemo(() => {
38
+ // If "insert condition set below" is clicked on a logic item's control, it's added at the same level.
39
+ // If "insert condition set below" is clicked on a logic set's control, it's added a level deeper.
40
+ const levelOfNewSet = itemType === LOGIC_TYPE_CONDITION ? itemLevel : itemLevel + 1;
41
+ return !fixedSet && levelOfNewSet <= maxNestedSets;
42
+ }, [fixedSet, itemLevel, maxNestedSets, itemType]);
43
+ const indexOfNewItem = useMemo(() => itemType === LOGIC_TYPE_SET ? 0 : itemIndex + 1, [itemType, itemIndex]);
44
+ const menu = useMemo(() => /*#__PURE__*/React__default.createElement(Menu, {
45
+ anchor: /*#__PURE__*/React__default.createElement(IconButton, {
46
+ "aria-label": translations.conditionActions,
47
+ className: styles.controls,
48
+ "data-testid": dataTestId
49
+ }, /*#__PURE__*/React__default.createElement(EllipsisHorizontalIcon, null)),
50
+ ref: node => {
51
+ if (node) {
52
+ controlsRef.current[itemId] = node;
53
+ } else {
54
+ controlsRef.current[itemId] = null;
55
+ }
56
+ }
57
+ }, !(fixedSet && maxConditions && numberOfSetItems >= maxConditions) && /*#__PURE__*/React__default.createElement(MenuItem, {
58
+ value: "add-condition",
59
+ onSelect: () => handleNewLogicItem(newCondition(), indexOfNewItem)
60
+ }, /*#__PURE__*/React__default.createElement(AddItemIcon, {
61
+ "aria-hidden": "true"
62
+ }), /*#__PURE__*/React__default.createElement("span", {
63
+ className: styles.controlMenuItem
64
+ }, translations.insertConditionBelow)), canAddNewSet && /*#__PURE__*/React__default.createElement(MenuItem, {
65
+ value: "add-set",
66
+ onSelect: () => handleNewLogicItem(newConditionSet(defaultSetValue), indexOfNewItem)
67
+ }, /*#__PURE__*/React__default.createElement(FilterIcon, {
68
+ "aria-hidden": "true"
69
+ }), /*#__PURE__*/React__default.createElement("span", {
70
+ className: styles.controlMenuItem
71
+ }, translations.insertSetBelow)), (fixedSet && numberOfSetItems > 1 || !fixedSet && itemLevel > 0) && /*#__PURE__*/React__default.createElement(MenuItem, {
72
+ value: "delete",
73
+ onSelect: e => {
74
+ onDelete({
75
+ parent,
76
+ index: itemIndex
77
+ });
78
+ // We want to move focus to the previous control
79
+ // item when this one is deleted, so we need to
80
+ // prevent Menu's default focus behavior
81
+ e.preventDefault();
82
+ }
83
+ }, /*#__PURE__*/React__default.createElement(RemoveItemIcon, {
84
+ "aria-hidden": "true"
85
+ }), /*#__PURE__*/React__default.createElement("span", {
86
+ className: styles.controlMenuItem
87
+ }, translations.delete))), [
88
+ // context
89
+ translations, fixedSet, onDelete, defaultSetValue, maxConditions, controlsRef,
90
+ // props
91
+ handleNewLogicItem, parent, itemIndex, itemLevel, itemId, numberOfSetItems, dataTestId, canAddNewSet, indexOfNewItem]);
92
+ return /*#__PURE__*/React__default.createElement("div", {
93
+ className: classNames({
94
+ [styles.conditionControlsContainer]: itemType === LOGIC_TYPE_CONDITION
95
+ })
96
+ }, menu);
97
+ };
98
+
99
+ export { Controls as default };
@@ -0,0 +1,126 @@
1
+ import _extends from '@babel/runtime-corejs3/helpers/extends';
2
+ import React__default, { useMemo, useState, useCallback, useRef } from 'react';
3
+ import classNames from 'classnames';
4
+ import styles from './LogicEditor2.js';
5
+ import ConditionSet from './ConditionSet.js';
6
+ import { SET_VALUE_ANY, constructValidDefaultState, shallowCopy, getParentSet, getPreviousItemId } from './utils.js';
7
+ import { LogicEditorContextProvider } from './LogicEditorContext.js';
8
+ import '../../utils/index.js';
9
+ import useTranslation from '../../utils/Translation/useTranslation.js';
10
+
11
+ 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();
29
+ const translations = useMemo(() => ({
30
+ any: translate('logicEditor.any'),
31
+ all: translate('logicEditor.all'),
32
+ insertConditionBelow: translate('logicEditor.insertConditionBelow'),
33
+ insertSetBelow: translate('logicEditor.insertSetBelow'),
34
+ delete: translate('logicEditor.delete'),
35
+ conditionActions: translate('logicEditor.conditionActions')
36
+ }), [translate]);
37
+ const [state, setState] = useState(constructValidDefaultState({
38
+ defaultValue,
39
+ defaultSetValue,
40
+ fixedSet,
41
+ maxNestedSets
42
+ }));
43
+ const classes = classNames(className, styles.editor);
44
+ const update = useCallback(setStateCallback => {
45
+ setState(prevState => {
46
+ const newState = setStateCallback(prevState);
47
+ onChange === null || onChange === void 0 ? void 0 : onChange(newState);
48
+ return newState;
49
+ });
50
+ }, [onChange]);
51
+ const handleNewLogicItem = useCallback((item, position) => {
52
+ update(prevState => {
53
+ const newState = shallowCopy(prevState);
54
+ const parent = getParentSet(newState, position);
55
+ parent.conditions.splice(position.index, 0, item);
56
+ return newState;
57
+ });
58
+ }, [update]);
59
+ const handleSetChange = (newSetValue, position) => {
60
+ update(prevState => {
61
+ const rootState = shallowCopy(prevState);
62
+ const parent = getParentSet(rootState, position);
63
+ if (!position.parent) {
64
+ // root set
65
+ parent.value = newSetValue;
66
+ } else {
67
+ parent.conditions[position.index].value = newSetValue;
68
+ }
69
+ return rootState;
70
+ });
71
+ };
72
+ const handleConditionChange = (newCondition, position) => {
73
+ update(prevState => {
74
+ const newState = shallowCopy(prevState);
75
+ const parent = getParentSet(newState, position);
76
+ parent.conditions[position.index] = newCondition;
77
+ return newState;
78
+ });
79
+ };
80
+ const controlsRef = useRef({});
81
+ const handleDelete = useCallback(position => {
82
+ update(prevState => {
83
+ let previousItemId = getPreviousItemId(prevState, position);
84
+ const newState = shallowCopy(prevState);
85
+ const parent = getParentSet(newState, position);
86
+ parent.conditions.splice(position.index, 1);
87
+
88
+ // If the last condition in a set was deleted, also delete the set.
89
+ if (parent.conditions.length === 0) {
90
+ previousItemId = getPreviousItemId(newState, position.parent);
91
+ getParentSet(newState, position.parent).conditions.splice(position.parent.index, 1);
92
+ }
93
+ controlsRef.current[previousItemId].focus();
94
+ return newState;
95
+ });
96
+ }, [update, controlsRef]);
97
+ return /*#__PURE__*/React__default.createElement("div", _extends({}, rest, {
98
+ role: "group",
99
+ className: classes,
100
+ ref: ref,
101
+ "data-testid": dataTestId
102
+ }), /*#__PURE__*/React__default.createElement(LogicEditorContextProvider, {
103
+ value: {
104
+ onNewLogicItem: handleNewLogicItem,
105
+ onSetChange: handleSetChange,
106
+ onConditionChange: handleConditionChange,
107
+ onDelete: handleDelete,
108
+ defaultSetValue,
109
+ fixedSet,
110
+ conditionTemplate,
111
+ translations,
112
+ maxNestedSets,
113
+ maxConditions,
114
+ readOnly,
115
+ rootDataTestId: dataTestId,
116
+ controlsRef
117
+ }
118
+ }, /*#__PURE__*/React__default.createElement(ConditionSet, {
119
+ value: state,
120
+ level: 0,
121
+ index: 0,
122
+ firstFocusableElementRef: firstFocusableElementRef
123
+ })));
124
+ });
125
+
126
+ export { LogicEditor as default };
@@ -0,0 +1,8 @@
1
+ import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
+
3
+ var css_248z = "._81jnN{width:100%}._yhdPf{display:flex;align-items:center}._9ShNi{display:flex;flex-wrap:wrap;grid-gap:4px}._9ShNi :nth-last-child(2){margin-right:42px}._YjnBZ{position:relative;padding-left:32px;padding-top:16px;display:flex}._cLtOl ._YjnBZ{padding-top:0;padding-left:16px}._cLtOl ._YjnBZ+._YjnBZ{margin-top:16px}._2HJvd{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}._cLtOl ._YjnBZ:first-of-type ._2HJvd{top:16px;border-bottom:none;border-bottom-left-radius:0;border-top:1px solid #c2c2c2;border-top-left-radius:4px}._cLtOl ._2HJvd{top:-16px;left:0}._cLtOl ._YjnBZ:not(:first-of-type):not(:last-of-type) ._2HJvd{border-bottom-left-radius:0}._HuRgr{margin-left:-46px}._LXFNT{margin:0 2px 0 4px}._LXFNT.focus-visible,._LXFNT:focus-visible{outline-width:2px}._04IlH{margin-left:4px}";
4
+ var styles = {"set":"_81jnN","setWrapper":"_yhdPf","condition":"_9ShNi","branch":"_YjnBZ","fixedSet":"_cLtOl","connection":"_2HJvd","conditionControlsContainer":"_HuRgr","controls":"_LXFNT","controlMenuItem":"_04IlH"};
5
+ var stylesheet="._81jnN{width:100%}._yhdPf{display:flex;align-items:center}._9ShNi{display:flex;flex-wrap:wrap;grid-gap:4px}._9ShNi :nth-last-child(2){margin-right:42px}._YjnBZ{position:relative;padding-left:32px;padding-top:16px;display:flex}._cLtOl ._YjnBZ{padding-top:0;padding-left:16px}._cLtOl ._YjnBZ+._YjnBZ{margin-top:16px}._2HJvd{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}._cLtOl ._YjnBZ:first-of-type ._2HJvd{top:16px;border-bottom:none;border-bottom-left-radius:0;border-top:1px solid #c2c2c2;border-top-left-radius:4px}._cLtOl ._2HJvd{top:-16px;left:0}._cLtOl ._YjnBZ:not(:first-of-type):not(:last-of-type) ._2HJvd{border-bottom-left-radius:0}._HuRgr{margin-left:-46px}._LXFNT{margin:0 2px 0 4px}._LXFNT.focus-visible,._LXFNT:focus-visible{outline-width:2px}._04IlH{margin-left:4px}";
6
+ styleInject(css_248z);
7
+
8
+ export { styles as default, stylesheet };
@@ -0,0 +1,9 @@
1
+ import '../../utils/index.js';
2
+ import createContextUtilities from '../../utils/createContextUtilities/createContextUtilities.js';
3
+
4
+ const {
5
+ Provider: LogicEditorContextProvider,
6
+ useContext: useLogicEditorContext
7
+ } = createContextUtilities();
8
+
9
+ export { LogicEditorContextProvider, useLogicEditorContext };
@@ -0,0 +1 @@
1
+ export { default as LogicEditor } from './LogicEditor.js';
@@ -0,0 +1,140 @@
1
+ /* eslint-disable @typescript-eslint/no-use-before-define */
2
+ const LOGIC_TYPE_CONDITION = 'condition';
3
+ const LOGIC_TYPE_SET = 'set';
4
+ const SET_VALUE_ANY = 'any';
5
+ const SET_VALUE_ALL = 'all';
6
+ function constructValidDefaultState(_ref) {
7
+ let {
8
+ defaultValue,
9
+ defaultSetValue,
10
+ fixedSet,
11
+ maxNestedSets
12
+ } = _ref;
13
+ let clone;
14
+ if (defaultValue) {
15
+ clone = deepCopy(defaultValue);
16
+ } else {
17
+ clone = newConditionSet(defaultSetValue);
18
+ }
19
+ let internalMaxNestedSets = maxNestedSets;
20
+ if (fixedSet) {
21
+ internalMaxNestedSets = 0;
22
+ }
23
+ ensureFixedSetHasOneCondition(clone, fixedSet);
24
+ pruneSets(clone, 0, internalMaxNestedSets);
25
+ assignIdentifiersAndSetValues(clone, defaultSetValue);
26
+ return clone;
27
+ }
28
+ function fixedSetHasNoConditions(defaultValue, fixedSet) {
29
+ var _defaultValue$conditi;
30
+ return fixedSet && defaultValue && (!(defaultValue !== null && defaultValue !== void 0 && defaultValue.conditions) || !((defaultValue === null || defaultValue === void 0 || (_defaultValue$conditi = defaultValue.conditions) === null || _defaultValue$conditi === void 0 ? void 0 : _defaultValue$conditi.length) >= 1));
31
+ }
32
+ function ensureFixedSetHasOneCondition(defaultValue, fixedSet) {
33
+ if (fixedSetHasNoConditions(defaultValue, fixedSet)) {
34
+ // eslint-disable-next-line no-param-reassign
35
+ defaultValue.conditions = [newCondition()];
36
+ }
37
+ }
38
+ function pruneSets(set, level, maxNestedSets) {
39
+ if (level === maxNestedSets) {
40
+ // eslint-disable-next-line no-param-reassign
41
+ set.conditions = set.conditions.filter(condition => condition.logicType !== LOGIC_TYPE_SET);
42
+ } else {
43
+ set.conditions.forEach(condition => {
44
+ if (condition.logicType === LOGIC_TYPE_SET) {
45
+ pruneSets(condition, level + 1, maxNestedSets);
46
+ }
47
+ });
48
+ }
49
+ }
50
+ function uuidv4() {
51
+ return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, c => {
52
+ // eslint-disable-next-line no-bitwise
53
+ const r = Math.random() * 16 | 0;
54
+ // eslint-disable-next-line no-bitwise
55
+ const v = c === 'x' ? r : r & 0x3 | 0x8;
56
+ return v.toString(16);
57
+ });
58
+ }
59
+ function deepCopy(object) {
60
+ return JSON.parse(JSON.stringify(object));
61
+ }
62
+ function shallowCopy(object) {
63
+ return {
64
+ ...object
65
+ };
66
+ }
67
+ function newCondition() {
68
+ return {
69
+ id: uuidv4(),
70
+ logicType: LOGIC_TYPE_CONDITION
71
+ };
72
+ }
73
+ function newConditionSet(value) {
74
+ return {
75
+ id: uuidv4(),
76
+ logicType: LOGIC_TYPE_SET,
77
+ value,
78
+ conditions: [newCondition()]
79
+ };
80
+ }
81
+ function assignIdentifiersAndSetValues(tree, defaultSetValue) {
82
+ const queue = [];
83
+ queue.push(tree);
84
+ while (queue.length > 0) {
85
+ const node = queue.pop();
86
+ if (!node.id) {
87
+ node.id = uuidv4();
88
+ }
89
+ if (node.logicType === LOGIC_TYPE_SET && !node.value) {
90
+ node.value = defaultSetValue;
91
+ }
92
+ if (node.conditions) {
93
+ queue.push(...node.conditions);
94
+ }
95
+ }
96
+ return tree;
97
+ }
98
+ function walkToRoot(position) {
99
+ let root = {
100
+ level: position.level,
101
+ index: position.index
102
+ };
103
+ for (let current = position.parent; current; current = current.parent) {
104
+ root = {
105
+ level: current.level,
106
+ index: current.index,
107
+ child: {
108
+ ...root
109
+ }
110
+ };
111
+ }
112
+ return root;
113
+ }
114
+ function getPreviousItemId(conditionRoot, position) {
115
+ const parentSet = getParentSet(conditionRoot, position);
116
+ if (position.index === 0) {
117
+ // The previous item is the parent
118
+ return parentSet.id;
119
+ }
120
+ // The previous item is the previous sibling's deepest child
121
+ let previousIndex = position.index - 1;
122
+ let previousItem = parentSet.conditions[previousIndex];
123
+ while (previousItem.conditions) {
124
+ previousIndex = previousItem.conditions.length - 1;
125
+ previousItem = previousItem.conditions[previousIndex];
126
+ }
127
+ return previousItem.id;
128
+ }
129
+ function getParentSet(conditionRoot, position) {
130
+ const positionFromRoot = walkToRoot(position);
131
+ let set = conditionRoot;
132
+ for (let {
133
+ child
134
+ } = positionFromRoot; child && child.child; child = child.child) {
135
+ set = set.conditions[child.index];
136
+ }
137
+ return set;
138
+ }
139
+
140
+ export { LOGIC_TYPE_CONDITION, LOGIC_TYPE_SET, SET_VALUE_ALL, SET_VALUE_ANY, assignIdentifiersAndSetValues, constructValidDefaultState, getParentSet, getPreviousItemId, newCondition, newConditionSet, shallowCopy };