@pega/cosmos-react-core 2.0.0-dev.9.4 → 2.0.0-rc.1

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 (736) hide show
  1. package/README.md +3 -3
  2. package/lib/components/Actions/Actions.js +1 -1
  3. package/lib/components/Actions/Actions.js.map +1 -1
  4. package/lib/components/AppShell/AppHeader.d.ts.map +1 -1
  5. package/lib/components/AppShell/AppHeader.js +1 -6
  6. package/lib/components/AppShell/AppHeader.js.map +1 -1
  7. package/lib/components/AppShell/AppShell.d.ts.map +1 -1
  8. package/lib/components/AppShell/AppShell.js +84 -61
  9. package/lib/components/AppShell/AppShell.js.map +1 -1
  10. package/lib/components/AppShell/AppShell.styles.d.ts +19 -16
  11. package/lib/components/AppShell/AppShell.styles.d.ts.map +1 -1
  12. package/lib/components/AppShell/AppShell.styles.js +227 -173
  13. package/lib/components/AppShell/AppShell.styles.js.map +1 -1
  14. package/lib/components/AppShell/AppShell.types.d.ts +5 -5
  15. package/lib/components/AppShell/AppShell.types.d.ts.map +1 -1
  16. package/lib/components/AppShell/AppShell.types.js.map +1 -1
  17. package/lib/components/AppShell/AppShellContext.d.ts +2 -0
  18. package/lib/components/AppShell/AppShellContext.d.ts.map +1 -1
  19. package/lib/components/AppShell/AppShellContext.js +1 -0
  20. package/lib/components/AppShell/AppShellContext.js.map +1 -1
  21. package/lib/components/AppShell/AppShellList.d.ts +4 -3
  22. package/lib/components/AppShell/AppShellList.d.ts.map +1 -1
  23. package/lib/components/AppShell/AppShellList.js +24 -19
  24. package/lib/components/AppShell/AppShellList.js.map +1 -1
  25. package/lib/components/AppShell/Drawer.d.ts.map +1 -1
  26. package/lib/components/AppShell/Drawer.js +7 -8
  27. package/lib/components/AppShell/Drawer.js.map +1 -1
  28. package/lib/components/AppShell/Operator.js +3 -5
  29. package/lib/components/AppShell/Operator.js.map +1 -1
  30. package/lib/components/AppShell/SkipNavigation.d.ts.map +1 -1
  31. package/lib/components/AppShell/SkipNavigation.js +30 -39
  32. package/lib/components/AppShell/SkipNavigation.js.map +1 -1
  33. package/lib/components/Avatar/Avatar.d.ts.map +1 -1
  34. package/lib/components/Avatar/Avatar.js +5 -4
  35. package/lib/components/Avatar/Avatar.js.map +1 -1
  36. package/lib/components/Backdrop/Backdrop.d.ts +1 -1
  37. package/lib/components/Backdrop/Backdrop.d.ts.map +1 -1
  38. package/lib/components/Backdrop/Backdrop.js +7 -6
  39. package/lib/components/Backdrop/Backdrop.js.map +1 -1
  40. package/lib/components/Badges/Alert.js +1 -1
  41. package/lib/components/Badges/Alert.js.map +1 -1
  42. package/lib/components/Badges/Count.js +1 -1
  43. package/lib/components/Badges/Count.js.map +1 -1
  44. package/lib/components/Badges/Selection.d.ts.map +1 -1
  45. package/lib/components/Badges/Selection.js +10 -9
  46. package/lib/components/Badges/Selection.js.map +1 -1
  47. package/lib/components/Badges/Status.d.ts +2 -2
  48. package/lib/components/Badges/Status.d.ts.map +1 -1
  49. package/lib/components/Badges/Status.js +1 -1
  50. package/lib/components/Badges/Status.js.map +1 -1
  51. package/lib/components/Badges/Tag.js +1 -1
  52. package/lib/components/Badges/Tag.js.map +1 -1
  53. package/lib/components/Banner/Banner.d.ts.map +1 -1
  54. package/lib/components/Banner/Banner.js +6 -8
  55. package/lib/components/Banner/Banner.js.map +1 -1
  56. package/lib/components/Boolean/BooleanDisplay.js +1 -2
  57. package/lib/components/Boolean/BooleanDisplay.js.map +1 -1
  58. package/lib/components/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  59. package/lib/components/Breadcrumbs/Breadcrumbs.js +13 -11
  60. package/lib/components/Breadcrumbs/Breadcrumbs.js.map +1 -1
  61. package/lib/components/Button/BareButton.d.ts.map +1 -1
  62. package/lib/components/Button/BareButton.js +21 -2
  63. package/lib/components/Button/BareButton.js.map +1 -1
  64. package/lib/components/Button/BareRoleButton.d.ts +12 -0
  65. package/lib/components/Button/BareRoleButton.d.ts.map +1 -0
  66. package/lib/components/Button/BareRoleButton.js +20 -0
  67. package/lib/components/Button/BareRoleButton.js.map +1 -0
  68. package/lib/components/Button/Button.d.ts +5 -0
  69. package/lib/components/Button/Button.d.ts.map +1 -1
  70. package/lib/components/Button/Button.js +34 -10
  71. package/lib/components/Button/Button.js.map +1 -1
  72. package/lib/components/Card/Card.d.ts.map +1 -1
  73. package/lib/components/Card/Card.js +3 -2
  74. package/lib/components/Card/Card.js.map +1 -1
  75. package/lib/components/Card/CardContent.d.ts.map +1 -1
  76. package/lib/components/Card/CardContent.js +5 -4
  77. package/lib/components/Card/CardContent.js.map +1 -1
  78. package/lib/components/Card/CardFooter.d.ts.map +1 -1
  79. package/lib/components/Card/CardFooter.js +5 -4
  80. package/lib/components/Card/CardFooter.js.map +1 -1
  81. package/lib/components/Card/CardHeader.d.ts +3 -1
  82. package/lib/components/Card/CardHeader.d.ts.map +1 -1
  83. package/lib/components/Card/CardHeader.js +9 -7
  84. package/lib/components/Card/CardHeader.js.map +1 -1
  85. package/lib/components/Card/CardMedia.js +1 -1
  86. package/lib/components/Card/CardMedia.js.map +1 -1
  87. package/lib/components/Card/CollapsibleCard.d.ts.map +1 -1
  88. package/lib/components/Card/CollapsibleCard.js +5 -7
  89. package/lib/components/Card/CollapsibleCard.js.map +1 -1
  90. package/lib/components/Card/SelectableCard.js +1 -1
  91. package/lib/components/Card/SelectableCard.js.map +1 -1
  92. package/lib/components/Checkbox/Checkbox.js +1 -1
  93. package/lib/components/Checkbox/Checkbox.js.map +1 -1
  94. package/lib/components/ColorPicker/ColorPicker.js +8 -11
  95. package/lib/components/ColorPicker/ColorPicker.js.map +1 -1
  96. package/lib/components/ComboBox/ComboBox.d.ts +1 -1
  97. package/lib/components/ComboBox/ComboBox.d.ts.map +1 -1
  98. package/lib/components/ComboBox/ComboBox.js +30 -33
  99. package/lib/components/ComboBox/ComboBox.js.map +1 -1
  100. package/lib/components/ComboBox/ComboBoxInput.js +4 -4
  101. package/lib/components/ComboBox/ComboBoxInput.js.map +1 -1
  102. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.d.ts.map +1 -1
  103. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.js +23 -29
  104. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.js.map +1 -1
  105. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.d.ts.map +1 -1
  106. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.js +16 -12
  107. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.js.map +1 -1
  108. package/lib/components/Configuration/Configuration.js +11 -13
  109. package/lib/components/Configuration/Configuration.js.map +1 -1
  110. package/lib/components/Currency/CurrencyDisplay.d.ts +4 -0
  111. package/lib/components/Currency/CurrencyDisplay.d.ts.map +1 -1
  112. package/lib/components/Currency/CurrencyDisplay.js +11 -7
  113. package/lib/components/Currency/CurrencyDisplay.js.map +1 -1
  114. package/lib/components/Currency/CurrencyInput.d.ts.map +1 -1
  115. package/lib/components/Currency/CurrencyInput.js +16 -16
  116. package/lib/components/Currency/CurrencyInput.js.map +1 -1
  117. package/lib/components/Currency/CurrencyInput.types.d.ts +4 -0
  118. package/lib/components/Currency/CurrencyInput.types.d.ts.map +1 -1
  119. package/lib/components/Currency/CurrencyInput.types.js.map +1 -1
  120. package/lib/components/Currency/utils.d.ts +12 -1
  121. package/lib/components/Currency/utils.d.ts.map +1 -1
  122. package/lib/components/Currency/utils.js +30 -2
  123. package/lib/components/Currency/utils.js.map +1 -1
  124. package/lib/components/DateTime/DateTimeDisplay.d.ts +1 -1
  125. package/lib/components/DateTime/DateTimeDisplay.d.ts.map +1 -1
  126. package/lib/components/DateTime/DateTimeDisplay.js +10 -2
  127. package/lib/components/DateTime/DateTimeDisplay.js.map +1 -1
  128. package/lib/components/DateTime/DurationDisplay.d.ts.map +1 -1
  129. package/lib/components/DateTime/DurationDisplay.js +11 -6
  130. package/lib/components/DateTime/DurationDisplay.js.map +1 -1
  131. package/lib/components/DateTime/Input/DateInput.d.ts.map +1 -1
  132. package/lib/components/DateTime/Input/DateInput.js +26 -28
  133. package/lib/components/DateTime/Input/DateInput.js.map +1 -1
  134. package/lib/components/DateTime/Input/DateRangeInput.d.ts.map +1 -1
  135. package/lib/components/DateTime/Input/DateRangeInput.js +10 -16
  136. package/lib/components/DateTime/Input/DateRangeInput.js.map +1 -1
  137. package/lib/components/DateTime/Input/DateTime.styles.d.ts.map +1 -1
  138. package/lib/components/DateTime/Input/DateTime.styles.js +14 -3
  139. package/lib/components/DateTime/Input/DateTime.styles.js.map +1 -1
  140. package/lib/components/DateTime/Input/DateTimeInput.d.ts.map +1 -1
  141. package/lib/components/DateTime/Input/DateTimeInput.js +37 -44
  142. package/lib/components/DateTime/Input/DateTimeInput.js.map +1 -1
  143. package/lib/components/DateTime/Input/DayOfWeekInput.d.ts.map +1 -1
  144. package/lib/components/DateTime/Input/DayOfWeekInput.js +7 -5
  145. package/lib/components/DateTime/Input/DayOfWeekInput.js.map +1 -1
  146. package/lib/components/DateTime/Input/Duration/DurationInput.d.ts.map +1 -1
  147. package/lib/components/DateTime/Input/Duration/DurationInput.js +3 -3
  148. package/lib/components/DateTime/Input/Duration/DurationInput.js.map +1 -1
  149. package/lib/components/DateTime/Input/Duration/NumberUnit.js +4 -5
  150. package/lib/components/DateTime/Input/Duration/NumberUnit.js.map +1 -1
  151. package/lib/components/DateTime/Input/Duration/Time.d.ts.map +1 -1
  152. package/lib/components/DateTime/Input/Duration/Time.js +12 -15
  153. package/lib/components/DateTime/Input/Duration/Time.js.map +1 -1
  154. package/lib/components/DateTime/Input/MonthInput.js +12 -16
  155. package/lib/components/DateTime/Input/MonthInput.js.map +1 -1
  156. package/lib/components/DateTime/Input/PartInput.js +3 -4
  157. package/lib/components/DateTime/Input/PartInput.js.map +1 -1
  158. package/lib/components/DateTime/Input/QuarterInput.d.ts +9 -0
  159. package/lib/components/DateTime/Input/QuarterInput.d.ts.map +1 -0
  160. package/lib/components/DateTime/Input/QuarterInput.js +102 -0
  161. package/lib/components/DateTime/Input/QuarterInput.js.map +1 -0
  162. package/lib/components/DateTime/Input/TimeInput.d.ts.map +1 -1
  163. package/lib/components/DateTime/Input/TimeInput.js +26 -30
  164. package/lib/components/DateTime/Input/TimeInput.js.map +1 -1
  165. package/lib/components/DateTime/Input/WeekInput.d.ts.map +1 -1
  166. package/lib/components/DateTime/Input/WeekInput.js +23 -24
  167. package/lib/components/DateTime/Input/WeekInput.js.map +1 -1
  168. package/lib/components/DateTime/Input/useAutoFocusNextInput.d.ts.map +1 -1
  169. package/lib/components/DateTime/Input/useAutoFocusNextInput.js +8 -9
  170. package/lib/components/DateTime/Input/useAutoFocusNextInput.js.map +1 -1
  171. package/lib/components/DateTime/Input/usePickerButton.js +4 -4
  172. package/lib/components/DateTime/Input/usePickerButton.js.map +1 -1
  173. package/lib/components/DateTime/Input/utils.d.ts +7 -0
  174. package/lib/components/DateTime/Input/utils.d.ts.map +1 -1
  175. package/lib/components/DateTime/Input/utils.js +52 -10
  176. package/lib/components/DateTime/Input/utils.js.map +1 -1
  177. package/lib/components/DateTime/Picker/Calendar.d.ts.map +1 -1
  178. package/lib/components/DateTime/Picker/Calendar.js +32 -34
  179. package/lib/components/DateTime/Picker/Calendar.js.map +1 -1
  180. package/lib/components/DateTime/Picker/Calendar.styles.d.ts +2 -2
  181. package/lib/components/DateTime/Picker/Calendar.styles.d.ts.map +1 -1
  182. package/lib/components/DateTime/Picker/Calendar.styles.js +16 -7
  183. package/lib/components/DateTime/Picker/Calendar.styles.js.map +1 -1
  184. package/lib/components/DateTime/Picker/DatePicker.d.ts.map +1 -1
  185. package/lib/components/DateTime/Picker/DatePicker.js +13 -17
  186. package/lib/components/DateTime/Picker/DatePicker.js.map +1 -1
  187. package/lib/components/DateTime/Picker/DateRangePicker.d.ts.map +1 -1
  188. package/lib/components/DateTime/Picker/DateRangePicker.js +13 -17
  189. package/lib/components/DateTime/Picker/DateRangePicker.js.map +1 -1
  190. package/lib/components/DateTime/Picker/TimePicker.js +9 -10
  191. package/lib/components/DateTime/Picker/TimePicker.js.map +1 -1
  192. package/lib/components/DateTime/Picker/Weeks.js +9 -11
  193. package/lib/components/DateTime/Picker/Weeks.js.map +1 -1
  194. package/lib/components/DateTime/Picker/utils.d.ts +1 -0
  195. package/lib/components/DateTime/Picker/utils.d.ts.map +1 -1
  196. package/lib/components/DateTime/Picker/utils.js +3 -0
  197. package/lib/components/DateTime/Picker/utils.js.map +1 -1
  198. package/lib/components/DateTime/index.d.ts +2 -0
  199. package/lib/components/DateTime/index.d.ts.map +1 -1
  200. package/lib/components/DateTime/index.js +1 -0
  201. package/lib/components/DateTime/index.js.map +1 -1
  202. package/lib/components/Drawer/Drawer.js +6 -6
  203. package/lib/components/Drawer/Drawer.js.map +1 -1
  204. package/lib/components/Email/EmailDisplay.js +2 -2
  205. package/lib/components/Email/EmailDisplay.js.map +1 -1
  206. package/lib/components/EmojiPicker/EmojiDisplay.d.ts.map +1 -1
  207. package/lib/components/EmojiPicker/EmojiDisplay.js +1 -1
  208. package/lib/components/EmojiPicker/EmojiDisplay.js.map +1 -1
  209. package/lib/components/EmojiPicker/EmojiPicker.js +3 -4
  210. package/lib/components/EmojiPicker/EmojiPicker.js.map +1 -1
  211. package/lib/components/EmptyState/EmptyState.d.ts +14 -0
  212. package/lib/components/EmptyState/EmptyState.d.ts.map +1 -0
  213. package/lib/components/{NoItems/NoItems.js → EmptyState/EmptyState.js} +11 -8
  214. package/lib/components/EmptyState/EmptyState.js.map +1 -0
  215. package/lib/components/EmptyState/index.d.ts +4 -0
  216. package/lib/components/EmptyState/index.d.ts.map +1 -0
  217. package/lib/components/EmptyState/index.js +3 -0
  218. package/lib/components/EmptyState/index.js.map +1 -0
  219. package/lib/components/ErrorState/ErrorState.d.ts +16 -0
  220. package/lib/components/ErrorState/ErrorState.d.ts.map +1 -0
  221. package/lib/components/ErrorState/ErrorState.js +31 -0
  222. package/lib/components/ErrorState/ErrorState.js.map +1 -0
  223. package/lib/components/ErrorState/index.d.ts +4 -0
  224. package/lib/components/ErrorState/index.d.ts.map +1 -0
  225. package/lib/components/ErrorState/index.js +3 -0
  226. package/lib/components/ErrorState/index.js.map +1 -0
  227. package/lib/components/ExpandCollapse/ExpandCollapse.js +5 -5
  228. package/lib/components/ExpandCollapse/ExpandCollapse.js.map +1 -1
  229. package/lib/components/FieldGroup/FieldGroup.d.ts.map +1 -1
  230. package/lib/components/FieldGroup/FieldGroup.js +6 -7
  231. package/lib/components/FieldGroup/FieldGroup.js.map +1 -1
  232. package/lib/components/FieldGroup/FieldGroupList.d.ts.map +1 -1
  233. package/lib/components/FieldGroup/FieldGroupList.js +7 -6
  234. package/lib/components/FieldGroup/FieldGroupList.js.map +1 -1
  235. package/lib/components/FieldValueList/FieldValueList.js +5 -7
  236. package/lib/components/FieldValueList/FieldValueList.js.map +1 -1
  237. package/lib/components/File/FileDisplay.d.ts +4 -1
  238. package/lib/components/File/FileDisplay.d.ts.map +1 -1
  239. package/lib/components/File/FileDisplay.js +7 -7
  240. package/lib/components/File/FileDisplay.js.map +1 -1
  241. package/lib/components/File/FileInput.d.ts +1 -1
  242. package/lib/components/File/FileInput.d.ts.map +1 -1
  243. package/lib/components/File/FileInput.js +18 -19
  244. package/lib/components/File/FileInput.js.map +1 -1
  245. package/lib/components/File/FileItem.js +2 -3
  246. package/lib/components/File/FileItem.js.map +1 -1
  247. package/lib/components/File/FileUploadItem.d.ts +2 -0
  248. package/lib/components/File/FileUploadItem.d.ts.map +1 -1
  249. package/lib/components/File/FileUploadItem.js +43 -12
  250. package/lib/components/File/FileUploadItem.js.map +1 -1
  251. package/lib/components/File/FileVisual.d.ts +5 -7
  252. package/lib/components/File/FileVisual.d.ts.map +1 -1
  253. package/lib/components/File/FileVisual.js +51 -43
  254. package/lib/components/File/FileVisual.js.map +1 -1
  255. package/lib/components/File/utils.js +2 -3
  256. package/lib/components/File/utils.js.map +1 -1
  257. package/lib/components/Flex/Flex.d.ts +17 -7
  258. package/lib/components/Flex/Flex.d.ts.map +1 -1
  259. package/lib/components/Flex/Flex.js +21 -5
  260. package/lib/components/Flex/Flex.js.map +1 -1
  261. package/lib/components/Form/Form.d.ts +7 -1
  262. package/lib/components/Form/Form.d.ts.map +1 -1
  263. package/lib/components/Form/Form.js +5 -4
  264. package/lib/components/Form/Form.js.map +1 -1
  265. package/lib/components/FormControl/FormControl.d.ts +1 -1
  266. package/lib/components/FormControl/FormControl.d.ts.map +1 -1
  267. package/lib/components/FormControl/FormControl.js +1 -1
  268. package/lib/components/FormControl/FormControl.js.map +1 -1
  269. package/lib/components/FormField/FormField.d.ts +5 -7
  270. package/lib/components/FormField/FormField.d.ts.map +1 -1
  271. package/lib/components/FormField/FormField.js +9 -19
  272. package/lib/components/FormField/FormField.js.map +1 -1
  273. package/lib/components/Grid/Grid.d.ts +1 -1
  274. package/lib/components/Grid/Grid.d.ts.map +1 -1
  275. package/lib/components/Grid/Grid.js +13 -17
  276. package/lib/components/Grid/Grid.js.map +1 -1
  277. package/lib/components/Icon/Icon.js +3 -5
  278. package/lib/components/Icon/Icon.js.map +1 -1
  279. package/lib/components/Icon/iconNames.d.ts +1 -1
  280. package/lib/components/Icon/iconNames.d.ts.map +1 -1
  281. package/lib/components/Icon/iconNames.js +2 -0
  282. package/lib/components/Icon/iconNames.js.map +1 -1
  283. package/lib/components/Icon/icons/compass-solid.icon.js +1 -2
  284. package/lib/components/Icon/icons/compass-solid.icon.js.map +1 -1
  285. package/lib/components/Icon/icons/dataviz-table-with-bars.icon.js +1 -4
  286. package/lib/components/Icon/icons/dataviz-table-with-bars.icon.js.map +1 -1
  287. package/lib/components/Icon/icons/dataviz-table-with-cross.icon.js +1 -2
  288. package/lib/components/Icon/icons/dataviz-table-with-cross.icon.js.map +1 -1
  289. package/lib/components/Icon/icons/dataviz-waterfall.icon.js +1 -5
  290. package/lib/components/Icon/icons/dataviz-waterfall.icon.js.map +1 -1
  291. package/lib/components/Icon/icons/dock.icon.d.ts +4 -0
  292. package/lib/components/Icon/icons/dock.icon.d.ts.map +1 -0
  293. package/lib/components/Icon/icons/dock.icon.js +6 -0
  294. package/lib/components/Icon/icons/dock.icon.js.map +1 -0
  295. package/lib/components/Icon/icons/filetype-text.icon.js +1 -4
  296. package/lib/components/Icon/icons/filetype-text.icon.js.map +1 -1
  297. package/lib/components/Icon/icons/folder-dollar.icon.js +1 -2
  298. package/lib/components/Icon/icons/folder-dollar.icon.js.map +1 -1
  299. package/lib/components/Icon/icons/freeze-column.icon.js +1 -2
  300. package/lib/components/Icon/icons/freeze-column.icon.js.map +1 -1
  301. package/lib/components/Icon/icons/galaxy.icon.js +1 -3
  302. package/lib/components/Icon/icons/galaxy.icon.js.map +1 -1
  303. package/lib/components/Icon/icons/grad-solid.icon.js +1 -2
  304. package/lib/components/Icon/icons/grad-solid.icon.js.map +1 -1
  305. package/lib/components/Icon/icons/grad.icon.js +1 -5
  306. package/lib/components/Icon/icons/grad.icon.js.map +1 -1
  307. package/lib/components/Icon/icons/list-number.icon.js +1 -6
  308. package/lib/components/Icon/icons/list-number.icon.js.map +1 -1
  309. package/lib/components/Icon/icons/list.icon.js +1 -6
  310. package/lib/components/Icon/icons/list.icon.js.map +1 -1
  311. package/lib/components/Icon/icons/pin.icon.js +1 -2
  312. package/lib/components/Icon/icons/pin.icon.js.map +1 -1
  313. package/lib/components/Icon/icons/search-solid.icon.js +1 -2
  314. package/lib/components/Icon/icons/search-solid.icon.js.map +1 -1
  315. package/lib/components/Icon/icons/tracer.icon.js +1 -2
  316. package/lib/components/Icon/icons/tracer.icon.js.map +1 -1
  317. package/lib/components/Icon/icons/tribox-solid.icon.js +1 -3
  318. package/lib/components/Icon/icons/tribox-solid.icon.js.map +1 -1
  319. package/lib/components/Icon/icons/tribox.icon.js +1 -3
  320. package/lib/components/Icon/icons/tribox.icon.js.map +1 -1
  321. package/lib/components/Icon/icons/undock.icon.d.ts +4 -0
  322. package/lib/components/Icon/icons/undock.icon.d.ts.map +1 -0
  323. package/lib/components/Icon/icons/undock.icon.js +6 -0
  324. package/lib/components/Icon/icons/undock.icon.js.map +1 -0
  325. package/lib/components/Image/Image.js +1 -1
  326. package/lib/components/Image/Image.js.map +1 -1
  327. package/lib/components/Input/Input.js +13 -13
  328. package/lib/components/Input/Input.js.map +1 -1
  329. package/lib/components/Input/Input.styles.js +2 -2
  330. package/lib/components/Input/Input.styles.js.map +1 -1
  331. package/lib/components/Label/Label.js +1 -1
  332. package/lib/components/Label/Label.js.map +1 -1
  333. package/lib/components/Lightbox/Lightbox.d.ts +6 -0
  334. package/lib/components/Lightbox/Lightbox.d.ts.map +1 -0
  335. package/lib/components/Lightbox/Lightbox.js +129 -0
  336. package/lib/components/Lightbox/Lightbox.js.map +1 -0
  337. package/lib/components/Lightbox/Lightbox.styles.d.ts +11 -0
  338. package/lib/components/Lightbox/Lightbox.styles.d.ts.map +1 -0
  339. package/lib/components/Lightbox/Lightbox.styles.js +166 -0
  340. package/lib/components/Lightbox/Lightbox.styles.js.map +1 -0
  341. package/lib/components/Lightbox/Lightbox.types.d.ts +42 -0
  342. package/lib/components/Lightbox/Lightbox.types.d.ts.map +1 -0
  343. package/lib/components/Lightbox/Lightbox.types.js +2 -0
  344. package/lib/components/Lightbox/Lightbox.types.js.map +1 -0
  345. package/lib/components/Lightbox/index.d.ts +3 -0
  346. package/lib/components/Lightbox/index.d.ts.map +1 -0
  347. package/lib/components/Lightbox/index.js +2 -0
  348. package/lib/components/Lightbox/index.js.map +1 -0
  349. package/lib/components/Link/Link.js +5 -8
  350. package/lib/components/Link/Link.js.map +1 -1
  351. package/lib/components/List/CommaSeparatedList.d.ts +15 -0
  352. package/lib/components/List/CommaSeparatedList.d.ts.map +1 -0
  353. package/lib/components/List/CommaSeparatedList.js +61 -0
  354. package/lib/components/List/CommaSeparatedList.js.map +1 -0
  355. package/lib/components/List/List.d.ts +30 -0
  356. package/lib/components/List/List.d.ts.map +1 -0
  357. package/lib/components/List/List.js +56 -0
  358. package/lib/components/List/List.js.map +1 -0
  359. package/lib/components/List/OrderedList.d.ts +6 -0
  360. package/lib/components/List/OrderedList.d.ts.map +1 -0
  361. package/lib/components/List/OrderedList.js +6 -0
  362. package/lib/components/List/OrderedList.js.map +1 -0
  363. package/lib/components/List/UnorderedList.d.ts +6 -0
  364. package/lib/components/List/UnorderedList.d.ts.map +1 -0
  365. package/lib/components/List/UnorderedList.js +6 -0
  366. package/lib/components/List/UnorderedList.js.map +1 -0
  367. package/lib/components/List/index.d.ts +5 -0
  368. package/lib/components/List/index.d.ts.map +1 -0
  369. package/lib/components/List/index.js +4 -0
  370. package/lib/components/List/index.js.map +1 -0
  371. package/lib/components/Location/CurrentLocationButton.d.ts.map +1 -1
  372. package/lib/components/Location/CurrentLocationButton.js +7 -7
  373. package/lib/components/Location/CurrentLocationButton.js.map +1 -1
  374. package/lib/components/Location/LocationDisplay.js +8 -9
  375. package/lib/components/Location/LocationDisplay.js.map +1 -1
  376. package/lib/components/Location/LocationInput.js +27 -28
  377. package/lib/components/Location/LocationInput.js.map +1 -1
  378. package/lib/components/Location/LocationView.js +8 -13
  379. package/lib/components/Location/LocationView.js.map +1 -1
  380. package/lib/components/Location/utils.js +11 -15
  381. package/lib/components/Location/utils.js.map +1 -1
  382. package/lib/components/Menu/FlyoutMenuList.d.ts.map +1 -1
  383. package/lib/components/Menu/FlyoutMenuList.js +12 -15
  384. package/lib/components/Menu/FlyoutMenuList.js.map +1 -1
  385. package/lib/components/Menu/Menu.context.d.ts.map +1 -1
  386. package/lib/components/Menu/Menu.context.js +2 -0
  387. package/lib/components/Menu/Menu.context.js.map +1 -1
  388. package/lib/components/Menu/Menu.d.ts.map +1 -1
  389. package/lib/components/Menu/Menu.js +89 -46
  390. package/lib/components/Menu/Menu.js.map +1 -1
  391. package/lib/components/Menu/Menu.styles.d.ts +11 -0
  392. package/lib/components/Menu/Menu.styles.d.ts.map +1 -1
  393. package/lib/components/Menu/Menu.styles.js +202 -3
  394. package/lib/components/Menu/Menu.styles.js.map +1 -1
  395. package/lib/components/Menu/Menu.types.d.ts +28 -10
  396. package/lib/components/Menu/Menu.types.d.ts.map +1 -1
  397. package/lib/components/Menu/Menu.types.js.map +1 -1
  398. package/lib/components/Menu/MenuGroup.d.ts +6 -0
  399. package/lib/components/Menu/MenuGroup.d.ts.map +1 -0
  400. package/lib/components/Menu/MenuGroup.js +17 -0
  401. package/lib/components/Menu/MenuGroup.js.map +1 -0
  402. package/lib/components/Menu/MenuItem.d.ts +0 -3
  403. package/lib/components/Menu/MenuItem.d.ts.map +1 -1
  404. package/lib/components/Menu/MenuItem.js +57 -164
  405. package/lib/components/Menu/MenuItem.js.map +1 -1
  406. package/lib/components/Menu/MenuList.d.ts +1 -1
  407. package/lib/components/Menu/MenuList.d.ts.map +1 -1
  408. package/lib/components/Menu/MenuList.js +28 -30
  409. package/lib/components/Menu/MenuList.js.map +1 -1
  410. package/lib/components/Menu/MenuListHeader.d.ts +0 -1
  411. package/lib/components/Menu/MenuListHeader.d.ts.map +1 -1
  412. package/lib/components/Menu/MenuListHeader.js +7 -55
  413. package/lib/components/Menu/MenuListHeader.js.map +1 -1
  414. package/lib/components/Menu/NavItemsList.d.ts.map +1 -1
  415. package/lib/components/Menu/NavItemsList.js +2 -3
  416. package/lib/components/Menu/NavItemsList.js.map +1 -1
  417. package/lib/components/Menu/helpers.d.ts +13 -12
  418. package/lib/components/Menu/helpers.d.ts.map +1 -1
  419. package/lib/components/Menu/helpers.js +40 -36
  420. package/lib/components/Menu/helpers.js.map +1 -1
  421. package/lib/components/Menu/index.d.ts +2 -3
  422. package/lib/components/Menu/index.d.ts.map +1 -1
  423. package/lib/components/Menu/index.js +1 -2
  424. package/lib/components/Menu/index.js.map +1 -1
  425. package/lib/components/MenuButton/MenuButton.d.ts +3 -1
  426. package/lib/components/MenuButton/MenuButton.d.ts.map +1 -1
  427. package/lib/components/MenuButton/MenuButton.js +13 -14
  428. package/lib/components/MenuButton/MenuButton.js.map +1 -1
  429. package/lib/components/MetaList/MetaList.d.ts +11 -2
  430. package/lib/components/MetaList/MetaList.d.ts.map +1 -1
  431. package/lib/components/MetaList/MetaList.js +34 -20
  432. package/lib/components/MetaList/MetaList.js.map +1 -1
  433. package/lib/components/Modal/Contexts.d.ts.map +1 -1
  434. package/lib/components/Modal/Contexts.js +3 -0
  435. package/lib/components/Modal/Contexts.js.map +1 -1
  436. package/lib/components/Modal/DockedModals.d.ts.map +1 -1
  437. package/lib/components/Modal/DockedModals.js +5 -4
  438. package/lib/components/Modal/DockedModals.js.map +1 -1
  439. package/lib/components/Modal/MinimizedModal.d.ts.map +1 -1
  440. package/lib/components/Modal/MinimizedModal.js +53 -38
  441. package/lib/components/Modal/MinimizedModal.js.map +1 -1
  442. package/lib/components/Modal/Modal.d.ts +1 -6
  443. package/lib/components/Modal/Modal.d.ts.map +1 -1
  444. package/lib/components/Modal/Modal.js +82 -134
  445. package/lib/components/Modal/Modal.js.map +1 -1
  446. package/lib/components/Modal/Modal.styles.d.ts +9 -0
  447. package/lib/components/Modal/Modal.styles.d.ts.map +1 -0
  448. package/lib/components/Modal/Modal.styles.js +135 -0
  449. package/lib/components/Modal/Modal.styles.js.map +1 -0
  450. package/lib/components/Modal/Modal.types.d.ts +56 -5
  451. package/lib/components/Modal/Modal.types.d.ts.map +1 -1
  452. package/lib/components/Modal/Modal.types.js.map +1 -1
  453. package/lib/components/Modal/ModalManager.d.ts.map +1 -1
  454. package/lib/components/Modal/ModalManager.js +74 -65
  455. package/lib/components/Modal/ModalManager.js.map +1 -1
  456. package/lib/components/MultiStep/MultiStep.d.ts.map +1 -1
  457. package/lib/components/MultiStep/MultiStep.js +10 -12
  458. package/lib/components/MultiStep/MultiStep.js.map +1 -1
  459. package/lib/components/MultiStep/MultiStep.styles.js +1 -1
  460. package/lib/components/MultiStep/MultiStep.styles.js.map +1 -1
  461. package/lib/components/MultiStep/MultiStep.types.d.ts +2 -0
  462. package/lib/components/MultiStep/MultiStep.types.d.ts.map +1 -1
  463. package/lib/components/MultiStep/MultiStep.types.js.map +1 -1
  464. package/lib/components/Number/NumberDisplay.js +1 -1
  465. package/lib/components/Number/NumberDisplay.js.map +1 -1
  466. package/lib/components/Number/NumberInput.d.ts.map +1 -1
  467. package/lib/components/Number/NumberInput.js +18 -25
  468. package/lib/components/Number/NumberInput.js.map +1 -1
  469. package/lib/components/Number/NumberInput.styles.d.ts +2 -2
  470. package/lib/components/Number/NumberInput.styles.d.ts.map +1 -1
  471. package/lib/components/Number/utils.js +2 -3
  472. package/lib/components/Number/utils.js.map +1 -1
  473. package/lib/components/PageTemplates/CategorySubPage.d.ts +1 -1
  474. package/lib/components/PageTemplates/CategorySubPage.d.ts.map +1 -1
  475. package/lib/components/PageTemplates/CategorySubPage.js +8 -18
  476. package/lib/components/PageTemplates/CategorySubPage.js.map +1 -1
  477. package/lib/components/PageTemplates/CategorySubPage.styles.d.ts +1 -1
  478. package/lib/components/PageTemplates/CategorySubPage.styles.d.ts.map +1 -1
  479. package/lib/components/PageTemplates/DashboardPage.d.ts +7 -1
  480. package/lib/components/PageTemplates/DashboardPage.d.ts.map +1 -1
  481. package/lib/components/PageTemplates/DashboardPage.js +48 -28
  482. package/lib/components/PageTemplates/DashboardPage.js.map +1 -1
  483. package/lib/components/PageTemplates/PageTemplates.d.ts +15 -6
  484. package/lib/components/PageTemplates/PageTemplates.d.ts.map +1 -1
  485. package/lib/components/PageTemplates/PageTemplates.js +89 -79
  486. package/lib/components/PageTemplates/PageTemplates.js.map +1 -1
  487. package/lib/components/PageTemplates/index.d.ts +3 -0
  488. package/lib/components/PageTemplates/index.d.ts.map +1 -1
  489. package/lib/components/PageTemplates/index.js +1 -0
  490. package/lib/components/PageTemplates/index.js.map +1 -1
  491. package/lib/components/Pagination/Pagination.d.ts.map +1 -1
  492. package/lib/components/Pagination/Pagination.js +7 -6
  493. package/lib/components/Pagination/Pagination.js.map +1 -1
  494. package/lib/components/Phone/PhoneDisplay.js +2 -3
  495. package/lib/components/Phone/PhoneDisplay.js.map +1 -1
  496. package/lib/components/Phone/PhoneInput.d.ts.map +1 -1
  497. package/lib/components/Phone/PhoneInput.js +18 -17
  498. package/lib/components/Phone/PhoneInput.js.map +1 -1
  499. package/lib/components/Phone/utils.js +2 -3
  500. package/lib/components/Phone/utils.js.map +1 -1
  501. package/lib/components/Popover/Popover.d.ts +0 -4
  502. package/lib/components/Popover/Popover.d.ts.map +1 -1
  503. package/lib/components/Popover/Popover.js +11 -122
  504. package/lib/components/Popover/Popover.js.map +1 -1
  505. package/lib/components/Popover/Popover.styles.d.ts +5 -0
  506. package/lib/components/Popover/Popover.styles.d.ts.map +1 -0
  507. package/lib/components/Popover/Popover.styles.js +116 -0
  508. package/lib/components/Popover/Popover.styles.js.map +1 -0
  509. package/lib/components/Popover/PopoverManager.js +2 -2
  510. package/lib/components/Popover/PopoverManager.js.map +1 -1
  511. package/lib/components/Popover/index.d.ts +1 -1
  512. package/lib/components/Popover/index.d.ts.map +1 -1
  513. package/lib/components/Popover/index.js +1 -1
  514. package/lib/components/Popover/index.js.map +1 -1
  515. package/lib/components/Progress/Bar.js +2 -2
  516. package/lib/components/Progress/Bar.js.map +1 -1
  517. package/lib/components/Progress/Ellipsis.js +1 -3
  518. package/lib/components/Progress/Ellipsis.js.map +1 -1
  519. package/lib/components/Progress/Progress.js +3 -4
  520. package/lib/components/Progress/Progress.js.map +1 -1
  521. package/lib/components/Progress/Ring.d.ts.map +1 -1
  522. package/lib/components/Progress/Ring.js +3 -3
  523. package/lib/components/Progress/Ring.js.map +1 -1
  524. package/lib/components/RadioButton/RadioButton.js +1 -1
  525. package/lib/components/RadioButton/RadioButton.js.map +1 -1
  526. package/lib/components/RadioCheck/RadioCheck.d.ts.map +1 -1
  527. package/lib/components/RadioCheck/RadioCheck.js +7 -8
  528. package/lib/components/RadioCheck/RadioCheck.js.map +1 -1
  529. package/lib/components/RadioCheckGroup/RadioCheckGroup.d.ts +4 -0
  530. package/lib/components/RadioCheckGroup/RadioCheckGroup.d.ts.map +1 -1
  531. package/lib/components/RadioCheckGroup/RadioCheckGroup.js +19 -18
  532. package/lib/components/RadioCheckGroup/RadioCheckGroup.js.map +1 -1
  533. package/lib/components/Rating/Rating.d.ts.map +1 -1
  534. package/lib/components/Rating/Rating.js +6 -7
  535. package/lib/components/Rating/Rating.js.map +1 -1
  536. package/lib/components/SearchInput/SearchInput.d.ts +2 -2
  537. package/lib/components/SearchInput/SearchInput.d.ts.map +1 -1
  538. package/lib/components/SearchInput/SearchInput.js +14 -14
  539. package/lib/components/SearchInput/SearchInput.js.map +1 -1
  540. package/lib/components/Select/Option.js +1 -1
  541. package/lib/components/Select/Option.js.map +1 -1
  542. package/lib/components/Select/Select.d.ts.map +1 -1
  543. package/lib/components/Select/Select.js +15 -16
  544. package/lib/components/Select/Select.js.map +1 -1
  545. package/lib/components/Sentiment/Sentiment.js +1 -2
  546. package/lib/components/Sentiment/Sentiment.js.map +1 -1
  547. package/lib/components/Skeleton/LineSkeleton.js +1 -1
  548. package/lib/components/Skeleton/LineSkeleton.js.map +1 -1
  549. package/lib/components/Skeleton/ParagraphSkeleton.js +1 -1
  550. package/lib/components/Skeleton/ParagraphSkeleton.js.map +1 -1
  551. package/lib/components/Skeleton/RectangleSkeleton.js +1 -1
  552. package/lib/components/Skeleton/RectangleSkeleton.js.map +1 -1
  553. package/lib/components/Slider/Slider.d.ts.map +1 -1
  554. package/lib/components/Slider/Slider.js +12 -19
  555. package/lib/components/Slider/Slider.js.map +1 -1
  556. package/lib/components/Slider/Slider.styles.d.ts +4 -1
  557. package/lib/components/Slider/Slider.styles.d.ts.map +1 -1
  558. package/lib/components/Slider/Slider.styles.js +17 -5
  559. package/lib/components/Slider/Slider.styles.js.map +1 -1
  560. package/lib/components/Slider/SliderTicks.d.ts +1 -0
  561. package/lib/components/Slider/SliderTicks.d.ts.map +1 -1
  562. package/lib/components/Slider/SliderTicks.js +19 -12
  563. package/lib/components/Slider/SliderTicks.js.map +1 -1
  564. package/lib/components/Slider/utils.d.ts +10 -11
  565. package/lib/components/Slider/utils.d.ts.map +1 -1
  566. package/lib/components/Slider/utils.js +24 -18
  567. package/lib/components/Slider/utils.js.map +1 -1
  568. package/lib/components/SummaryItem/SummaryItem.d.ts +3 -3
  569. package/lib/components/SummaryItem/SummaryItem.d.ts.map +1 -1
  570. package/lib/components/SummaryItem/SummaryItem.js +3 -5
  571. package/lib/components/SummaryItem/SummaryItem.js.map +1 -1
  572. package/lib/components/SummaryList/SummaryList.d.ts +8 -2
  573. package/lib/components/SummaryList/SummaryList.d.ts.map +1 -1
  574. package/lib/components/SummaryList/SummaryList.js +10 -11
  575. package/lib/components/SummaryList/SummaryList.js.map +1 -1
  576. package/lib/components/SummaryList/ViewAll.d.ts +1 -1
  577. package/lib/components/SummaryList/ViewAll.d.ts.map +1 -1
  578. package/lib/components/SummaryList/ViewAll.js +14 -10
  579. package/lib/components/SummaryList/ViewAll.js.map +1 -1
  580. package/lib/components/Switch/Switch.d.ts.map +1 -1
  581. package/lib/components/Switch/Switch.js +41 -30
  582. package/lib/components/Switch/Switch.js.map +1 -1
  583. package/lib/components/Table/Table.d.ts.map +1 -1
  584. package/lib/components/Table/Table.js +14 -13
  585. package/lib/components/Table/Table.js.map +1 -1
  586. package/lib/components/Tabs/Tab.d.ts +1 -1
  587. package/lib/components/Tabs/Tab.d.ts.map +1 -1
  588. package/lib/components/Tabs/Tab.js +9 -7
  589. package/lib/components/Tabs/Tab.js.map +1 -1
  590. package/lib/components/Tabs/TabPanel.d.ts +10 -2
  591. package/lib/components/Tabs/TabPanel.d.ts.map +1 -1
  592. package/lib/components/Tabs/TabPanel.js +24 -8
  593. package/lib/components/Tabs/TabPanel.js.map +1 -1
  594. package/lib/components/Tabs/Tabs.d.ts +1 -0
  595. package/lib/components/Tabs/Tabs.d.ts.map +1 -1
  596. package/lib/components/Tabs/Tabs.js +22 -18
  597. package/lib/components/Tabs/Tabs.js.map +1 -1
  598. package/lib/components/Text/Text.d.ts +1 -1
  599. package/lib/components/Text/Text.d.ts.map +1 -1
  600. package/lib/components/Text/Text.js +2 -2
  601. package/lib/components/Text/Text.js.map +1 -1
  602. package/lib/components/TextArea/TextArea.d.ts.map +1 -1
  603. package/lib/components/TextArea/TextArea.js +33 -30
  604. package/lib/components/TextArea/TextArea.js.map +1 -1
  605. package/lib/components/Toaster/Toaster.d.ts +8 -36
  606. package/lib/components/Toaster/Toaster.d.ts.map +1 -1
  607. package/lib/components/Toaster/Toaster.js +97 -102
  608. package/lib/components/Toaster/Toaster.js.map +1 -1
  609. package/lib/components/Tooltip/Tooltip.d.ts +6 -1
  610. package/lib/components/Tooltip/Tooltip.d.ts.map +1 -1
  611. package/lib/components/Tooltip/Tooltip.js +6 -13
  612. package/lib/components/Tooltip/Tooltip.js.map +1 -1
  613. package/lib/components/Tree/StandardTree.d.ts +6 -0
  614. package/lib/components/Tree/StandardTree.d.ts.map +1 -0
  615. package/lib/components/Tree/StandardTree.js +175 -0
  616. package/lib/components/Tree/StandardTree.js.map +1 -0
  617. package/lib/components/Tree/StandardTree.styles.d.ts +13 -0
  618. package/lib/components/Tree/StandardTree.styles.d.ts.map +1 -0
  619. package/lib/components/Tree/StandardTree.styles.js +155 -0
  620. package/lib/components/Tree/StandardTree.styles.js.map +1 -0
  621. package/lib/components/Tree/StandardTree.types.d.ts +25 -0
  622. package/lib/components/Tree/StandardTree.types.d.ts.map +1 -0
  623. package/lib/components/Tree/StandardTree.types.js +2 -0
  624. package/lib/components/Tree/StandardTree.types.js.map +1 -0
  625. package/lib/components/Tree/Tree.d.ts +35 -49
  626. package/lib/components/Tree/Tree.d.ts.map +1 -1
  627. package/lib/components/Tree/Tree.js +18 -56
  628. package/lib/components/Tree/Tree.js.map +1 -1
  629. package/lib/components/Tree/helpers.d.ts +19 -0
  630. package/lib/components/Tree/helpers.d.ts.map +1 -0
  631. package/lib/components/Tree/helpers.js +180 -0
  632. package/lib/components/Tree/helpers.js.map +1 -0
  633. package/lib/components/Tree/index.d.ts +4 -2
  634. package/lib/components/Tree/index.d.ts.map +1 -1
  635. package/lib/components/Tree/index.js +3 -1
  636. package/lib/components/Tree/index.js.map +1 -1
  637. package/lib/components/URL/URLDisplay.js +2 -2
  638. package/lib/components/URL/URLDisplay.js.map +1 -1
  639. package/lib/hooks/index.d.ts +7 -4
  640. package/lib/hooks/index.d.ts.map +1 -1
  641. package/lib/hooks/index.js +7 -3
  642. package/lib/hooks/index.js.map +1 -1
  643. package/lib/hooks/useActiveDescendant.d.ts +17 -3
  644. package/lib/hooks/useActiveDescendant.d.ts.map +1 -1
  645. package/lib/hooks/useActiveDescendant.js +86 -64
  646. package/lib/hooks/useActiveDescendant.js.map +1 -1
  647. package/lib/hooks/useAutoResize.d.ts.map +1 -1
  648. package/lib/hooks/useAutoResize.js +6 -7
  649. package/lib/hooks/useAutoResize.js.map +1 -1
  650. package/lib/hooks/useBreakpoint.js +2 -4
  651. package/lib/hooks/useBreakpoint.js.map +1 -1
  652. package/lib/hooks/useDraggable.d.ts +8 -0
  653. package/lib/hooks/useDraggable.d.ts.map +1 -0
  654. package/lib/hooks/useDraggable.js +64 -0
  655. package/lib/hooks/useDraggable.js.map +1 -0
  656. package/lib/hooks/useFocusWithin.d.ts +1 -1
  657. package/lib/hooks/useFocusWithin.d.ts.map +1 -1
  658. package/lib/hooks/useFocusWithin.js +29 -24
  659. package/lib/hooks/useFocusWithin.js.map +1 -1
  660. package/lib/hooks/useI18n.d.ts +477 -170
  661. package/lib/hooks/useI18n.d.ts.map +1 -1
  662. package/lib/hooks/useI18n.js +2 -2
  663. package/lib/hooks/useI18n.js.map +1 -1
  664. package/lib/hooks/useLongPress.d.ts +16 -0
  665. package/lib/hooks/useLongPress.d.ts.map +1 -0
  666. package/lib/hooks/useLongPress.js +59 -0
  667. package/lib/hooks/useLongPress.js.map +1 -0
  668. package/lib/hooks/useOuterEvent.js +1 -1
  669. package/lib/hooks/useOuterEvent.js.map +1 -1
  670. package/lib/hooks/useOverride.js +1 -1
  671. package/lib/hooks/useOverride.js.map +1 -1
  672. package/lib/hooks/useScrollStick.js +14 -3
  673. package/lib/hooks/useScrollStick.js.map +1 -1
  674. package/lib/hooks/useScrollToggle.d.ts +6 -0
  675. package/lib/hooks/useScrollToggle.d.ts.map +1 -0
  676. package/lib/hooks/useScrollToggle.js +40 -0
  677. package/lib/hooks/useScrollToggle.js.map +1 -0
  678. package/lib/hooks/useTransitionState.d.ts +39 -0
  679. package/lib/hooks/useTransitionState.d.ts.map +1 -0
  680. package/lib/hooks/useTransitionState.js +56 -0
  681. package/lib/hooks/useTransitionState.js.map +1 -0
  682. package/lib/i18n/default.d.ts +555 -0
  683. package/lib/i18n/default.d.ts.map +1 -0
  684. package/lib/i18n/default.js +600 -0
  685. package/lib/i18n/default.js.map +1 -0
  686. package/lib/i18n/i18n.d.ts +932 -318
  687. package/lib/i18n/i18n.d.ts.map +1 -1
  688. package/lib/i18n/i18n.js +1 -1
  689. package/lib/i18n/i18n.js.map +1 -1
  690. package/lib/i18n/index.d.ts +1 -0
  691. package/lib/i18n/index.d.ts.map +1 -1
  692. package/lib/i18n/index.js.map +1 -1
  693. package/lib/i18n/translate.d.ts +29 -4
  694. package/lib/i18n/translate.d.ts.map +1 -1
  695. package/lib/i18n/translate.js +21 -8
  696. package/lib/i18n/translate.js.map +1 -1
  697. package/lib/index.d.ts +7 -2
  698. package/lib/index.d.ts.map +1 -1
  699. package/lib/index.js +7 -2
  700. package/lib/index.js.map +1 -1
  701. package/lib/styles/GlobalStyle.d.ts.map +1 -1
  702. package/lib/styles/GlobalStyle.js +2 -26
  703. package/lib/styles/GlobalStyle.js.map +1 -1
  704. package/lib/theme/ThemeMachine.js +7 -1
  705. package/lib/theme/ThemeMachine.js.map +1 -1
  706. package/lib/theme/index.d.ts +1 -0
  707. package/lib/theme/index.d.ts.map +1 -1
  708. package/lib/theme/index.js +1 -0
  709. package/lib/theme/index.js.map +1 -1
  710. package/lib/theme/theme.d.ts +83 -53
  711. package/lib/theme/theme.d.ts.map +1 -1
  712. package/lib/theme/themeDefinition.json +50 -30
  713. package/lib/theme/themeOverrides.schema.json +24 -3
  714. package/lib/theme/themes/buildTheme.json +3 -39
  715. package/lib/theme/themes/darkTheme.json +6 -0
  716. package/lib/theme/themes/legacyBuildTheme.json +50 -0
  717. package/lib/types/types.d.ts +6 -1
  718. package/lib/types/types.d.ts.map +1 -1
  719. package/lib/types/types.js.map +1 -1
  720. package/lib/utils/utils.d.ts +46 -4
  721. package/lib/utils/utils.d.ts.map +1 -1
  722. package/lib/utils/utils.js +63 -9
  723. package/lib/utils/utils.js.map +1 -1
  724. package/package.json +10 -11
  725. package/lib/components/DateTime/Input/useButtonAriaLabel.d.ts +0 -3
  726. package/lib/components/DateTime/Input/useButtonAriaLabel.d.ts.map +0 -1
  727. package/lib/components/DateTime/Input/useButtonAriaLabel.js +0 -33
  728. package/lib/components/DateTime/Input/useButtonAriaLabel.js.map +0 -1
  729. package/lib/components/NoItems/NoItems.d.ts +0 -14
  730. package/lib/components/NoItems/NoItems.d.ts.map +0 -1
  731. package/lib/components/NoItems/NoItems.js.map +0 -1
  732. package/lib/components/NoItems/index.d.ts +0 -4
  733. package/lib/components/NoItems/index.d.ts.map +0 -1
  734. package/lib/components/NoItems/index.js +0 -3
  735. package/lib/components/NoItems/index.js.map +0 -1
  736. package/lib/i18n/default.json +0 -246
@@ -0,0 +1,180 @@
1
+ const helpers = {
2
+ getNode(nodes, id) {
3
+ let found;
4
+ nodes.some(node => {
5
+ if (node.id === id) {
6
+ found = node;
7
+ return true;
8
+ }
9
+ if (node.nodes) {
10
+ found = this.getNode(node.nodes, id);
11
+ return !!found;
12
+ }
13
+ return false;
14
+ });
15
+ return found;
16
+ },
17
+ getParentNode(nodes, id) {
18
+ let found;
19
+ nodes.some(node => {
20
+ const childNodes = node.nodes || [];
21
+ childNodes.some(childNode => {
22
+ if (childNode.id === id) {
23
+ found = node;
24
+ return true;
25
+ }
26
+ if (childNode.nodes) {
27
+ found = this.getParentNode(childNodes, id);
28
+ return !!found;
29
+ }
30
+ return false;
31
+ });
32
+ return !!found;
33
+ });
34
+ return found;
35
+ },
36
+ mapTree(nodes, fn) {
37
+ return nodes.map((node, index, array) => {
38
+ let newNode = node;
39
+ if (node.nodes) {
40
+ newNode = {
41
+ ...newNode,
42
+ nodes: this.mapTree(node.nodes, fn)
43
+ };
44
+ }
45
+ return fn(newNode, index, array);
46
+ });
47
+ },
48
+ mapNode(nodes, id, fn) {
49
+ return nodes.map((node, index, array) => {
50
+ let newNode = node;
51
+ if (node.nodes) {
52
+ newNode = {
53
+ ...newNode,
54
+ nodes: this.mapNode(node.nodes, id, fn)
55
+ };
56
+ }
57
+ if (node.id === id) {
58
+ newNode = fn(newNode, index, array);
59
+ }
60
+ return newNode;
61
+ });
62
+ },
63
+ flatten(nodes, ancestors) {
64
+ return nodes.reduce((flatNodes, node) => {
65
+ if (node.nodes) {
66
+ return [
67
+ ...flatNodes,
68
+ node,
69
+ ...this.flatten(node.nodes, ancestors ? [...ancestors, node] : [node])
70
+ ];
71
+ }
72
+ return [...flatNodes, ancestors ? { ...node, ancestors } : node];
73
+ }, []);
74
+ },
75
+ appendTo(nodes, id, newNodes) {
76
+ if (id) {
77
+ return this.mapNode(nodes, id, node => ({
78
+ ...node,
79
+ nodes: [...(node.nodes ?? []), ...newNodes]
80
+ }));
81
+ }
82
+ return [...nodes, ...newNodes];
83
+ },
84
+ expandTo(nodes, id) {
85
+ return nodes.map(node => {
86
+ // leaf node
87
+ if (node.id === id) {
88
+ return {
89
+ ...node,
90
+ expanded: true
91
+ };
92
+ }
93
+ // parent node
94
+ if (node.nodes && !!this.getNode(node.nodes, id)) {
95
+ return {
96
+ ...node,
97
+ nodes: this.expandTo(node.nodes, id),
98
+ expanded: true
99
+ };
100
+ }
101
+ return { ...node, expanded: false };
102
+ });
103
+ },
104
+ getFirstChildNode(nodes, id) {
105
+ let firstChildNode;
106
+ const node = this.getNode(nodes, id);
107
+ if (node && node.expanded && node.nodes && node.nodes.length > 0) {
108
+ const childNodes = node.nodes;
109
+ firstChildNode = childNodes[0];
110
+ }
111
+ return firstChildNode;
112
+ },
113
+ getAdjacentNode(nodes, id) {
114
+ let nextNode;
115
+ const parent = this.getParentNode(nodes, id);
116
+ if (parent && parent.nodes && parent.nodes.length > 0) {
117
+ const childNodes = parent.nodes;
118
+ const currentIndex = childNodes.map(nodeEl => nodeEl.id).indexOf(id);
119
+ if (currentIndex === childNodes.length - 1) {
120
+ nextNode = this.getAdjacentNode(nodes, parent.id);
121
+ }
122
+ else {
123
+ nextNode = childNodes[currentIndex + 1];
124
+ }
125
+ }
126
+ else {
127
+ const index = nodes.map(nodeEl => nodeEl.id).indexOf(id);
128
+ nextNode = nodes[index + 1];
129
+ }
130
+ return nextNode;
131
+ },
132
+ getNextNode(nodes, id) {
133
+ let nextNode;
134
+ const firstChildNode = this.getFirstChildNode(nodes, id);
135
+ if (firstChildNode) {
136
+ nextNode = firstChildNode;
137
+ }
138
+ else {
139
+ nextNode = this.getAdjacentNode(nodes, id);
140
+ }
141
+ return nextNode;
142
+ },
143
+ getDeepestNode(nodes, id) {
144
+ let lastNode;
145
+ const node = this.getNode(nodes, id);
146
+ if (node && node.expanded && node.nodes && node.nodes.length > 0) {
147
+ const childNodes = node.nodes;
148
+ const lastChildNode = childNodes[childNodes.length - 1];
149
+ if (lastChildNode.expanded) {
150
+ lastNode = this.getDeepestNode(nodes, lastChildNode.id);
151
+ }
152
+ else {
153
+ lastNode = lastChildNode;
154
+ }
155
+ }
156
+ return lastNode;
157
+ },
158
+ getPreviousNode(nodes, id) {
159
+ const parent = this.getParentNode(nodes, id);
160
+ let previousNode;
161
+ if (parent && parent.nodes && parent.nodes.length > 0) {
162
+ const childNodes = parent.nodes;
163
+ const currentIndex = childNodes.map(nodeEl => nodeEl.id).indexOf(id);
164
+ if (currentIndex === 0) {
165
+ previousNode = parent;
166
+ }
167
+ else {
168
+ previousNode = this.getDeepestNode(nodes, childNodes[currentIndex - 1].id);
169
+ }
170
+ }
171
+ else {
172
+ const index = nodes.map(node => node.id).indexOf(id);
173
+ if (nodes[index - 1])
174
+ previousNode = this.getDeepestNode(nodes, nodes[index - 1].id);
175
+ }
176
+ return previousNode;
177
+ }
178
+ };
179
+ export default helpers;
180
+ //# sourceMappingURL=helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../src/components/Tree/helpers.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,GAAG;IACd,OAAO,CAAgC,KAAU,EAAE,EAAW;QAC5D,IAAI,KAAK,CAAC;QACV,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;YAChB,IAAI,IAAI,CAAC,EAAE,KAAK,EAAE,EAAE;gBAClB,KAAK,GAAG,IAAI,CAAC;gBACb,OAAO,IAAI,CAAC;aACb;YAED,IAAI,IAAI,CAAC,KAAK,EAAE;gBACd,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;gBACrC,OAAO,CAAC,CAAC,KAAK,CAAC;aAChB;YAED,OAAO,KAAK,CAAC;QACf,CAAC,CAAC,CAAC;QAEH,OAAO,KAAK,CAAC;IACf,CAAC;IAED,aAAa,CAAgC,KAAU,EAAE,EAAW;QAClE,IAAI,KAAoB,CAAC;QACzB,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;YAChB,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;YACpC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE;gBAC1B,IAAI,SAAS,CAAC,EAAE,KAAK,EAAE,EAAE;oBACvB,KAAK,GAAG,IAAI,CAAC;oBACb,OAAO,IAAI,CAAC;iBACb;gBAED,IAAI,SAAS,CAAC,KAAK,EAAE;oBACnB,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC,UAAU,EAAE,EAAE,CAAM,CAAC;oBAChD,OAAO,CAAC,CAAC,KAAK,CAAC;iBAChB;gBAED,OAAO,KAAK,CAAC;YACf,CAAC,CAAC,CAAC;YAEH,OAAO,CAAC,CAAC,KAAK,C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AI,MAAM,IAAI,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;YACrD,MAAM,UAAU,GAAG,MAAM,CAAC,KAAK,CAAC;YAChC,MAAM,YAAY,GAAG,UAAU,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;YACrE,IAAI,YAAY,KAAK,CAAC,EAAE;gBACtB,YAAY,GAAG,MAAM,CAAC;aACvB;iBAAM;gBACL,YAAY,GAAG,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,UAAU,CAAC,YAAY,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;aAC5E;SACF;aAAM;YACL,MAAM,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;YACrD,IAAI,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC;gBAAE,YAAY,GAAG,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;SACtF;QACD,OAAO,YAAY,CAAC;IACtB,CAAC;CACF,CAAC;AAEF,eAAe,OAAO,CAAC","sourcesContent":["import type { TreeNode } from './Tree';\n\nconst helpers = {\n getNode<T extends TreeNode = TreeNode>(nodes: T[], id: T['id']): T | undefined {\n let found;\n nodes.some(node => {\n if (node.id === id) {\n found = node;\n return true;\n }\n\n if (node.nodes) {\n found = this.getNode(node.nodes, id);\n return !!found;\n }\n\n return false;\n });\n\n return found;\n },\n\n getParentNode<T extends TreeNode = TreeNode>(nodes: T[], id: T['id']): T | undefined {\n let found: T | undefined;\n nodes.some(node => {\n const childNodes = node.nodes || [];\n childNodes.some(childNode => {\n if (childNode.id === id) {\n found = node;\n return true;\n }\n\n if (childNode.nodes) {\n found = this.getParentNode(childNodes, id) as T;\n return !!found;\n }\n\n return false;\n });\n\n return !!found;\n });\n\n return found;\n },\n\n mapTree<T1 extends TreeNode = TreeNode, T2 extends TreeNode = T1>(\n nodes: T1[],\n fn: (node: T1, index: number, nodes: T1[]) => T2\n ): T2[] {\n return nodes.map((node, index, array) => {\n let newNode = node;\n\n if (node.nodes) {\n newNode = {\n ...newNode,\n nodes: this.mapTree(node.nodes as T1[], fn)\n };\n }\n\n return fn(newNode, index, array);\n });\n },\n\n mapNode<T1 extends TreeNode = TreeNode, T2 extends TreeNode = T1>(\n nodes: T1[],\n id: T1['id'],\n fn: (node: T1, index: number, array: T1[]) => T2\n ): (T1 | T2)[] {\n return nodes.map((node, index, array) => {\n let newNode: T1 | T2 = node;\n\n if (node.nodes) {\n newNode = {\n ...newNode,\n nodes: this.mapNode(node.nodes as T1[], id, fn)\n };\n }\n\n if (node.id === id) {\n newNode = fn(newNode, index, array);\n }\n\n return newNode;\n });\n },\n\n flatten<T extends TreeNode = TreeNode>(nodes: T[], ancestors?: T[]): (T & { ancestors?: T[] })[] {\n return nodes.reduce<(T & { ancestors?: T[] })[]>((flatNodes, node) => {\n if (node.nodes) {\n return [\n ...flatNodes,\n node,\n ...this.flatten(node.nodes as T[], ancestors ? [...ancestors, node] : [node])\n ];\n }\n\n return [...flatNodes, ancestors ? { ...node, ancestors } : node];\n }, []);\n },\n\n appendTo<T extends TreeNode = TreeNode>(nodes: T[], id: T['id'], newNodes: T[]): T[] {\n if (id) {\n return this.mapNode(nodes, id, node => ({\n ...node,\n nodes: [...(node.nodes ?? []), ...newNodes]\n }));\n }\n\n return [...nodes, ...newNodes];\n },\n\n expandTo<T extends TreeNode = TreeNode>(nodes: T[], id: T['id']): T[] {\n return nodes.map(node => {\n // leaf node\n if (node.id === id) {\n return {\n ...node,\n expanded: true\n };\n }\n\n // parent node\n if (node.nodes && !!this.getNode(node.nodes, id)) {\n return {\n ...node,\n nodes: this.expandTo(node.nodes, id),\n expanded: true\n };\n }\n\n return { ...node, expanded: false };\n });\n },\n\n getFirstChildNode<T extends TreeNode = TreeNode>(nodes: T[], id: T['id']): T | undefined {\n let firstChildNode;\n const node = this.getNode(nodes, id);\n if (node && node.expanded && node.nodes && node.nodes.length > 0) {\n const childNodes = node.nodes as T[];\n firstChildNode = childNodes[0];\n }\n return firstChildNode;\n },\n\n getAdjacentNode<T extends TreeNode = TreeNode>(nodes: T[], id: T['id']): T | undefined {\n let nextNode;\n const parent = this.getParentNode(nodes, id);\n if (parent && parent.nodes && parent.nodes.length > 0) {\n const childNodes = parent.nodes as T[];\n const currentIndex = childNodes.map(nodeEl => nodeEl.id).indexOf(id);\n if (currentIndex === childNodes.length - 1) {\n nextNode = this.getAdjacentNode(nodes, parent.id);\n } else {\n nextNode = childNodes[currentIndex + 1];\n }\n } else {\n const index = nodes.map(nodeEl => nodeEl.id).indexOf(id);\n nextNode = nodes[index + 1];\n }\n return nextNode;\n },\n\n getNextNode<T extends TreeNode = TreeNode>(nodes: T[], id: T['id']): T | undefined {\n let nextNode;\n const firstChildNode = this.getFirstChildNode(nodes, id);\n if (firstChildNode) {\n nextNode = firstChildNode;\n } else {\n nextNode = this.getAdjacentNode(nodes, id);\n }\n return nextNode;\n },\n\n getDeepestNode<T extends TreeNode = TreeNode>(nodes: T[], id: T['id']): T | undefined {\n let lastNode;\n const node = this.getNode(nodes, id);\n if (node && node.expanded && node.nodes && node.nodes.length > 0) {\n const childNodes = node.nodes as T[];\n const lastChildNode = childNodes[childNodes.length - 1];\n if (lastChildNode.expanded) {\n lastNode = this.getDeepestNode(nodes, lastChildNode.id);\n } else {\n lastNode = lastChildNode;\n }\n }\n return lastNode;\n },\n\n getPreviousNode<T extends TreeNode = TreeNode>(nodes: T[], id: T['id']): T | undefined {\n const parent = this.getParentNode(nodes, id);\n let previousNode;\n if (parent && parent.nodes && parent.nodes.length > 0) {\n const childNodes = parent.nodes;\n const currentIndex = childNodes.map(nodeEl => nodeEl.id).indexOf(id);\n if (currentIndex === 0) {\n previousNode = parent;\n } else {\n previousNode = this.getDeepestNode(nodes, childNodes[currentIndex - 1].id);\n }\n } else {\n const index = nodes.map(node => node.id).indexOf(id);\n if (nodes[index - 1]) previousNode = this.getDeepestNode(nodes, nodes[index - 1].id);\n }\n return previousNode;\n }\n};\n\nexport default helpers;\n"]}
@@ -1,3 +1,5 @@
1
- export { default } from './Tree';
2
- export { TreeProps } from './Tree';
1
+ export { default, TreeProps, StyledTreeList, StyledTreeListItem } from './Tree';
2
+ export { default as StandardTree } from './StandardTree';
3
+ export { StandardTreeProps } from './StandardTree.types';
4
+ export { default as treeHelpers } from './helpers';
3
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Tree/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Tree/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,WAAW,CAAC"}
@@ -1,2 +1,4 @@
1
- export { default } from './Tree';
1
+ export { default, StyledTreeList, StyledTreeListItem } from './Tree';
2
+ export { default as StandardTree } from './StandardTree';
3
+ export { default as treeHelpers } from './helpers';
2
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Tree/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC","sourcesContent":["export { default } from './Tree';\nexport { TreeProps } from './Tree';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Tree/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAa,cAAc,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEzD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,WAAW,CAAC","sourcesContent":["export { default, TreeProps, StyledTreeList, StyledTreeListItem } from './Tree';\nexport { default as StandardTree } from './StandardTree';\nexport { StandardTreeProps } from './StandardTree.types';\nexport { default as treeHelpers } from './helpers';\n"]}
@@ -26,8 +26,8 @@ const generateUrlMarkup = (url) => {
26
26
  }, []);
27
27
  };
28
28
  const URLDisplay = forwardRef(({ value, displayText, variant = 'link', ...restProps }, ref) => {
29
- const displayValue = value ? (displayText || generateUrlMarkup(value)) : (_jsx("span", Object.assign({ "aria-hidden": 'true' }, { children: "\u2013\u2013" }), void 0));
30
- return variant === 'text' || !value ? (_jsx("span", Object.assign({ ref: ref }, restProps, { children: displayValue }), void 0)) : (_jsx(Link, Object.assign({ ref: ref }, restProps, { href: value }, { children: displayValue }), void 0));
29
+ const displayValue = value ? (displayText || generateUrlMarkup(value)) : (_jsx("span", { "aria-hidden": 'true', children: "\u2013\u2013" }, void 0));
30
+ return variant === 'text' || !value ? (_jsx("span", { ref: ref, ...restProps, children: displayValue }, void 0)) : (_jsx(Link, { ref: ref, ...restProps, href: value, children: displayValue }, void 0));
31
31
  });
32
32
  export default URLDisplay;
33
33
  //# sourceMappingURL=URLDisplay.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"URLDisplay.js","sourceRoot":"","sources":["../../../src/components/URL/URLDisplay.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAsD,MAAM,OAAO,CAAC;AAEvF,OAAO,IAAI,MA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,CACR,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,UAAU,CAAC","sourcesContent":["import { forwardRef, FunctionComponent, PropsWithoutRef, ReactNode, Ref } from 'react';\n\nimport Link from '../Link';\nimport { BaseProps, ForwardProps } from '../../types';\n\nexport interface URLDisplayProps extends BaseProps {\n /** URL address, includes scheme, 'http://', 'https://' */\n value?: string;\n /** The text to be displayed. */\n displayText?: string;\n /**\n * Controls styling of the field.\n * @default \"link\"\n */\n variant?: 'link' | 'text';\n /** Ref for the wrapping element. */\n ref?: Ref<HTMLAnchorElement | HTMLSpanElement>;\n}\n\n/**\n * Function gets the url as a string and converts it to a HTML markup with whitespace opportunity elements.\n * It helps breaking a long url correctly to avoid parent container overflow issues\n * according to \"The Chicago Manual of Style\" copywriting standard.\n * @param url input url to construct markup for\n * @returns array of nodes\n */\nconst generateUrlMarkup = (url: string): ReactNode => {\n const markedUrl = url\n .split('//')\n /* Insert \\x1f (unit separator) char as a placeholder at correct position. */\n .map(str => {\n return str\n .replace(/:/giu, '$&\\x1f')\n .replace(/[/~.,\\\\-_?#%]/giu, '\\x1f$&')\n .replace(/[=&]/giu, '\\x1f$&\\x1f');\n })\n .join('//\\x1f');\n\n /* Replace unit separator character with <wbr /> element. Create an array of nodes in place of string to pass tags escaping. */\n return markedUrl.split('\\x1f').reduce<ReactNode[]>((urlFragments, part) => {\n urlFragments.push(part, <wbr key={urlFragments.length} />);\n return urlFragments;\n }, []);\n};\n\nconst URLDisplay: FunctionComponent<URLDisplayProps & ForwardProps> = forwardRef(\n (\n { value, displayText, variant = 'link', ...restProps }: PropsWithoutRef<URLDisplayProps>,\n ref: URLDisplayProps['ref']\n ) => {\n const displayValue = value ? (\n displayText || generateUrlMarkup(value)\n ) : (\n <span aria-hidden='true'>&ndash;&ndash;</span>\n );\n return variant === 'text' || !value ? (\n <span ref={ref as Ref<HTMLSpanElement>} {...restProps}>\n {displayValue}\n </span>\n ) : (\n <Link ref={ref as Ref<HTMLAnchorElement>} {...restProps} href={value}>\n {displayValue}\n </Link>\n );\n }\n);\n\nexport default URLDisplay;\n"]}
1
+ {"version":3,"file":"URLDisplay.js","sourceRoot":"","sources":["../../../src/components/URL/URLDisplay.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAsD,MAAM,OAAO,CAAC;AAEvF,OAAO,IAAI,MAAM,SAAS,CAAC;AAiB3B;;;;;;GAMG;AACH,MAAM,iBAAiB,GAAG,CAAC,GAAW,EAAa,EAAE;IACnD,MAAM,SAAS,GAAG,GAAG;SAClB,KAAK,CAAC,IAAI,CAAC;QACZ,6EAA6E;SAC5E,GAAG,CAAC,GAAG,CAAC,EAAE;QACT,OAAO,GAAG;aACP,OAAO,CAAC,MAAM,EAAE,QAAQ,CAAC;aACzB,OAAO,CAAC,kBAAkB,EAAE,QAAQ,CAAC;aACrC,OAAO,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC;IACtC,CAAC,CAAC;SACD,IAAI,CAAC,QAAQ,CAAC,CAAC;IAElB,+HAA+H;IAC/H,OAAO,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,MAAM,CAAc,CAAC,YAAY,EAAE,IAAI,EAAE,EAAE;QACxE,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,gBAAU,YAAY,CAAC,MAAM,CAAI,CAAC,CAAC;QAC3D,OAAO,YAAY,CAAC;IACtB,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC,CAAC;AAEF,MAAM,UAAU,GAAsD,UAAU,CAC9E,CACE,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,GAAG,MAAM,EAAE,GAAG,SAAS,EAAoC,EACxF,GAA2B,EAC3B,EAAE;IACF,MAAM,YAAY,GAAG,KAAK,CAAC,CAAC,CAAC,CAC3B,WAAW,IAAI,iBAAiB,CAAC,KAAK,CAAC,CACxC,CAAC,CAAC,CAAC,CACF,8BAAkB,MAAM,qCAAsB,CAC/C,CAAC;IACF,OAAO,OAAO,KAAK,MAAM,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CACpC,eAAM,GAAG,EAAE,GAA2B,KAAM,SAAS,YAClD,YAAY,WACR,CACR,CAAC,CAAC,CAAC,CACF,KAAC,IAAI,IAAC,GAAG,EAAE,GAA6B,KAAM,SAAS,EAAE,IAAI,EAAE,KAAK,YACjE,YAAY,WACR,CACR,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,UAAU,CAAC","sourcesContent":["import { forwardRef, FunctionComponent, PropsWithoutRef, ReactNode, Ref } from 'react';\n\nimport Link from '../Link';\nimport { BaseProps, ForwardProps } from '../../types';\n\nexport interface URLDisplayProps extends BaseProps {\n /** URL address, includes scheme, 'http://', 'https://' */\n value?: string;\n /** The text to be displayed. */\n displayText?: string;\n /**\n * Controls styling of the field.\n * @default \"link\"\n */\n variant?: 'link' | 'text';\n /** Ref for the wrapping element. */\n ref?: Ref<HTMLAnchorElement | HTMLSpanElement>;\n}\n\n/**\n * Function gets the url as a string and converts it to a HTML markup with whitespace opportunity elements.\n * It helps breaking a long url correctly to avoid parent container overflow issues\n * according to \"The Chicago Manual of Style\" copywriting standard.\n * @param url input url to construct markup for\n * @returns array of nodes\n */\nconst generateUrlMarkup = (url: string): ReactNode => {\n const markedUrl = url\n .split('//')\n /* Insert \\x1f (unit separator) char as a placeholder at correct position. */\n .map(str => {\n return str\n .replace(/:/giu, '$&\\x1f')\n .replace(/[/~.,\\\\-_?#%]/giu, '\\x1f$&')\n .replace(/[=&]/giu, '\\x1f$&\\x1f');\n })\n .join('//\\x1f');\n\n /* Replace unit separator character with <wbr /> element. Create an array of nodes in place of string to pass tags escaping. */\n return markedUrl.split('\\x1f').reduce<ReactNode[]>((urlFragments, part) => {\n urlFragments.push(part, <wbr key={urlFragments.length} />);\n return urlFragments;\n }, []);\n};\n\nconst URLDisplay: FunctionComponent<URLDisplayProps & ForwardProps> = forwardRef(\n (\n { value, displayText, variant = 'link', ...restProps }: PropsWithoutRef<URLDisplayProps>,\n ref: URLDisplayProps['ref']\n ) => {\n const displayValue = value ? (\n displayText || generateUrlMarkup(value)\n ) : (\n <span aria-hidden='true'>&ndash;&ndash;</span>\n );\n return variant === 'text' || !value ? (\n <span ref={ref as Ref<HTMLSpanElement>} {...restProps}>\n {displayValue}\n </span>\n ) : (\n <Link ref={ref as Ref<HTMLAnchorElement>} {...restProps} href={value}>\n {displayValue}\n </Link>\n );\n }\n);\n\nexport default URLDisplay;\n"]}
@@ -1,22 +1,25 @@
1
+ export { default as useActiveDescendant, UseActiveDescendantConfig } from './useActiveDescendant';
1
2
  export { default as useAfterInitialEffect } from './useAfterInitialEffect';
2
3
  export { default as useArrows } from './useArrows';
3
4
  export { default as useAutoResize } from './useAutoResize';
4
5
  export { default as useBreakpoint } from './useBreakpoint';
5
6
  export { default as useConfiguration } from './useConfiguration';
6
7
  export { default as useConsolidatedRef } from './useConsolidatedRef';
8
+ export { default as useDirection } from './useDirection';
9
+ export { default as useDraggable } from './useDraggable';
7
10
  export { default as useElement } from './useElement';
8
11
  export { default as useFocusWithin } from './useFocusWithin';
9
12
  export { default as useI18n } from './useI18n';
13
+ export { default as useItemIntersection } from './useItemIntersection';
14
+ export { default as useLongPress } from './useLongPress';
10
15
  export { default as useOuterEvent } from './useOuterEvent';
11
16
  export { default as useOverride } from './useOverride';
12
17
  export { default as usePrevious } from './usePrevious';
13
18
  export { default as useScrollStick } from './useScrollStick';
19
+ export { default as useScrollToggle } from './useScrollToggle';
14
20
  export { default as useTheme } from './useTheme';
21
+ export { default as useTransitionState } from './useTransitionState';
15
22
  export { default as useTriggerableEffect } from './useTriggerableEffect';
16
23
  export { default as useTriggerableLayoutEffect } from './useTriggerableLayoutEffect';
17
- export { default as useItemIntersection } from './useItemIntersection';
18
24
  export { default as useUID } from './useUID';
19
- export { default as useDirection } from './useDirection';
20
- export { default as useActiveDescendant } from './useActiveDescendant';
21
- export { UseActiveDescendantConfig } from './useActiveDescendant';
22
25
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @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AE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AACrF,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC"}
@@ -1,21 +1,25 @@
1
+ export { default as useActiveDescendant } from './useActiveDescendant';
1
2
  export { default as useAfterInitialEffect } from './useAfterInitialEffect';
2
3
  export { default as useArrows } from './useArrows';
3
4
  export { default as useAutoResize } from './useAutoResize';
4
5
  export { default as useBreakpoint } from './useBreakpoint';
5
6
  export { default as useConfiguration } from './useConfiguration';
6
7
  export { default as useConsolidatedRef } from './useConsolidatedRef';
8
+ export { default as useDirection } from './useDirection';
9
+ export { default as useDraggable } from './useDraggable';
7
10
  export { default as useElement } from './useElement';
8
11
  export { default as useFocusWithin } from './useFocusWithin';
9
12
  export { default as useI18n } from './useI18n';
13
+ export { default as useItemIntersection } from './useItemIntersection';
14
+ export { default as useLongPress } from './useLongPress';
10
15
  export { default as useOuterEvent } from './useOuterEvent';
11
16
  export { default as useOverride } from './useOverride';
12
17
  export { default as usePrevious } from './usePrevious';
13
18
  export { default as useScrollStick } from './useScrollStick';
19
+ export { default as useScrollToggle } from './useScrollToggle';
14
20
  export { default as useTheme } from './useTheme';
21
+ export { default as useTransitionState } from './useTransitionState';
15
22
  export { default as useTriggerableEffect } from './useTriggerableEffect';
16
23
  export { default as useTriggerableLayoutEffect } from './useTriggerableLayoutEffect';
17
- export { default as useItemIntersection } from './useItemIntersection';
18
24
  export { default as useUID } from './useUID';
19
- export { default as useDirection } from './useDirection';
20
- export { default as useActiveDescendant } from './useActiveDescendant';
21
25
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AACrF,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC","sourcesContent":["export { default as useAfterInitialEffect } from './useAfterInitialEffect';\nexport { default as useArrows } from './useArrows';\nexport { default as useAutoResize } from './useAutoResize';\nexport { default as useBreakpoint } from './useBreakpoint';\nexport { default as useConfiguration } from './useConfiguration';\nexport { default as useConsolidatedRef } from './useConsolidatedRef';\nexport { default as useElement } from './useElement';\nexport { default as useFocusWithin } from './useFocusWithin';\nexport { default as useI18n } from './useI18n';\nexport { default as useOuterEvent } from './useOuterEvent';\nexport { default as useOverride } from './useOverride';\nexport { default as usePrevious } from './usePrevious';\nexport { default as useScrollStick } from './useScrollStick';\nexport { default as useTheme } from './useTheme';\nexport { default as useTriggerableEffect } from './useTriggerableEffect';\nexport { default as useTriggerableLayoutEffect } from './useTriggerableLayoutEffect';\nexport { default as useItemIntersection } from './useItemIntersection';\nexport { default as useUID } from './useUID';\nexport { default as useDirection } from './useDirection';\nexport { default as useActiveDescendant } from './useActiveDescendant';\nexport { UseActiveDescendantConfig } from './useActiveDescendant';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAA6B,MAAM,uBAAuB,CAAC;AAClG,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAA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,MAAM,EAAE,MAAM,UAAU,CAAC","sourcesContent":["export { default as useActiveDescendant, UseActiveDescendantConfig } from './useActiveDescendant';\nexport { default as useAfterInitialEffect } from './useAfterInitialEffect';\nexport { default as useArrows } from './useArrows';\nexport { default as useAutoResize } from './useAutoResize';\nexport { default as useBreakpoint } from './useBreakpoint';\nexport { default as useConfiguration } from './useConfiguration';\nexport { default as useConsolidatedRef } from './useConsolidatedRef';\nexport { default as useDirection } from './useDirection';\nexport { default as useDraggable } from './useDraggable';\nexport { default as useElement } from './useElement';\nexport { default as useFocusWithin } from './useFocusWithin';\nexport { default as useI18n } from './useI18n';\nexport { default as useItemIntersection } from './useItemIntersection';\nexport { default as useLongPress } from './useLongPress';\nexport { default as useOuterEvent } from './useOuterEvent';\nexport { default as useOverride } from './useOverride';\nexport { default as usePrevious } from './usePrevious';\nexport { default as useScrollStick } from './useScrollStick';\nexport { default as useScrollToggle } from './useScrollToggle';\nexport { default as useTheme } from './useTheme';\nexport { default as useTransitionState } from './useTransitionState';\nexport { default as useTriggerableEffect } from './useTriggerableEffect';\nexport { default as useTriggerableLayoutEffect } from './useTriggerableLayoutEffect';\nexport { default as useUID } from './useUID';\n"]}
@@ -8,7 +8,15 @@ export interface UseActiveDescendantConfig {
8
8
  scopeSelector?: string;
9
9
  /** Custom selector for descendant options */
10
10
  selector?: string;
11
- /** One-time override for focused element on next re-evaluation of active descendants. */
11
+ /** One-time override for the focused descendant, triggers re-evaluation.
12
+ * Include `clearFocusDescendantEl` for cleanup.
13
+ */
14
+ focusDescendantEl?: HTMLElement | null;
15
+ /** Callback to clear focusDescendantEl after use. */
16
+ clearFocusDescendant?: () => void;
17
+ /** One-time override for focused element on NEXT re-evaluation of active descendants.
18
+ * Include `clearFocusReturn` for cleanup.
19
+ */
12
20
  focusReturnEl?: HTMLElement | null;
13
21
  /** Callback to clear focusReturnEl after use. */
14
22
  clearFocusReturn?: () => void;
@@ -21,14 +29,20 @@ export interface UseActiveDescendantConfig {
21
29
  currentDescendantId?: string;
22
30
  /** Explicit onClick handler called on keydown 'enter' event */
23
31
  onClick?: (currentDescendantEl: HTMLElement) => void;
24
- /** Prevent scrolling to the active descendant on the initial render. */
32
+ /** Prevent scrolling to the active descendant on the initial render.
33
+ * Include `preventInitialScroll` for cleanup.
34
+ */
25
35
  preventInitialScroll?: boolean;
26
36
  /** Callback to clear preventInitialScroll after use. */
27
37
  clearPreventScroll?: () => void;
38
+ /** Boolean to prevent descendant evaluation.
39
+ * @default false
40
+ */
41
+ pauseDescendantEvaluation?: boolean;
28
42
  }
29
43
  declare type CurrentDescendant = HTMLElement | undefined;
30
44
  declare type Descendants = HTMLElement[] | null;
31
- declare const useActiveDescendant: ({ focusEl, scope, scopeSelector, selector, focusReturnEl, clearFocusReturn, currentDescendantId, onClick, preventInitialScroll, clearPreventScroll }: UseActiveDescendantConfig, dependencyArray?: DependencyList) => {
45
+ declare const useActiveDescendant: ({ focusEl, scope, scopeSelector, selector, focusDescendantEl, clearFocusDescendant, focusReturnEl, clearFocusReturn, currentDescendantId, onClick, preventInitialScroll, pauseDescendantEvaluation, clearPreventScroll }: UseActiveDescendantConfig, dependencyArray?: DependencyList) => {
32
46
  activeDescendant: CurrentDescendant;
33
47
  descendants: Descendants;
34
48
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useActiveDescendant.d.ts","sourceRoot":"","sources":["../../src/hooks/useActiveDescendant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,cAAc,EAAuB,MAAM,OAAO,CAAC;AAIjF,MAAM,WAAW,yBAAyB;IACxC,4DAA4D;IAC5D,OAAO,EAAE,WAAW,GAAG,IAAI,CAAC;IAC5B,wCAAwC;IACxC,KAAK,EAAE,WAAW,GAAG,IAAI,CAAC;IAC1B,6EAA6E;IAC7E,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yFAAyF;IACzF,aAAa,CAAC,EAAE,WAAW,GAAG,IAA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