@pega/cosmos-react-core 3.0.0-dev.9.1 → 3.0.0-rc.10

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 (1045) hide show
  1. package/lib/components/Actions/Actions.d.ts +5 -0
  2. package/lib/components/Actions/Actions.d.ts.map +1 -1
  3. package/lib/components/Actions/Actions.js +2 -2
  4. package/lib/components/Actions/Actions.js.map +1 -1
  5. package/lib/components/AdditionalInfo/AdditionalInfo.d.ts +11 -0
  6. package/lib/components/AdditionalInfo/AdditionalInfo.d.ts.map +1 -0
  7. package/lib/components/AdditionalInfo/AdditionalInfo.js +25 -0
  8. package/lib/components/AdditionalInfo/AdditionalInfo.js.map +1 -0
  9. package/lib/components/AdditionalInfo/index.d.ts +2 -0
  10. package/lib/components/AdditionalInfo/index.d.ts.map +1 -0
  11. package/lib/components/AdditionalInfo/index.js +2 -0
  12. package/lib/components/AdditionalInfo/index.js.map +1 -0
  13. package/lib/components/AppShell/AppHeader.d.ts.map +1 -1
  14. package/lib/components/AppShell/AppHeader.js +17 -8
  15. package/lib/components/AppShell/AppHeader.js.map +1 -1
  16. package/lib/components/AppShell/AppHeader.styles.d.ts +16 -0
  17. package/lib/components/AppShell/AppHeader.styles.d.ts.map +1 -0
  18. package/lib/components/AppShell/AppHeader.styles.js +155 -0
  19. package/lib/components/AppShell/AppHeader.styles.js.map +1 -0
  20. package/lib/components/AppShell/AppShell.d.ts.map +1 -1
  21. package/lib/components/AppShell/AppShell.js +92 -220
  22. package/lib/components/AppShell/AppShell.js.map +1 -1
  23. package/lib/components/AppShell/AppShell.styles.d.ts +7 -48
  24. package/lib/components/AppShell/AppShell.styles.d.ts.map +1 -1
  25. package/lib/components/AppShell/AppShell.styles.js +54 -527
  26. package/lib/components/AppShell/AppShell.styles.js.map +1 -1
  27. package/lib/components/AppShell/AppShell.types.d.ts +29 -80
  28. package/lib/components/AppShell/AppShell.types.d.ts.map +1 -1
  29. package/lib/components/AppShell/AppShell.types.js.map +1 -1
  30. package/lib/components/AppShell/AppShellContext.d.ts +12 -6
  31. package/lib/components/AppShell/AppShellContext.d.ts.map +1 -1
  32. package/lib/components/AppShell/AppShellContext.js +10 -5
  33. package/lib/components/AppShell/AppShellContext.js.map +1 -1
  34. package/lib/components/AppShell/AppShellList.d.ts +2 -2
  35. package/lib/components/AppShell/AppShellList.d.ts.map +1 -1
  36. package/lib/components/AppShell/AppShellList.js +16 -2
  37. package/lib/components/AppShell/AppShellList.js.map +1 -1
  38. package/lib/components/AppShell/AppShellList.styles.d.ts +19 -0
  39. package/lib/components/AppShell/AppShellList.styles.d.ts.map +1 -0
  40. package/lib/components/AppShell/AppShellList.styles.js +141 -0
  41. package/lib/components/AppShell/AppShellList.styles.js.map +1 -0
  42. package/lib/components/AppShell/AppShellSearch.d.ts +9 -0
  43. package/lib/components/AppShell/AppShellSearch.d.ts.map +1 -0
  44. package/lib/components/AppShell/AppShellSearch.js +39 -0
  45. package/lib/components/AppShell/AppShellSearch.js.map +1 -0
  46. package/lib/components/AppShell/AppShellSearch.styles.d.ts +8 -0
  47. package/lib/components/AppShell/AppShellSearch.styles.d.ts.map +1 -0
  48. package/lib/components/AppShell/AppShellSearch.styles.js +193 -0
  49. package/lib/components/AppShell/AppShellSearch.styles.js.map +1 -0
  50. package/lib/components/AppShell/Drawer.d.ts +3 -1
  51. package/lib/components/AppShell/Drawer.d.ts.map +1 -1
  52. package/lib/components/AppShell/Drawer.js +14 -11
  53. package/lib/components/AppShell/Drawer.js.map +1 -1
  54. package/lib/components/AppShell/Drawer.styles.d.ts +15 -0
  55. package/lib/components/AppShell/Drawer.styles.d.ts.map +1 -0
  56. package/lib/components/AppShell/Drawer.styles.js +153 -0
  57. package/lib/components/AppShell/Drawer.styles.js.map +1 -0
  58. package/lib/components/AppShell/NavigationList.d.ts +6 -0
  59. package/lib/components/AppShell/NavigationList.d.ts.map +1 -0
  60. package/lib/components/AppShell/NavigationList.js +121 -0
  61. package/lib/components/AppShell/NavigationList.js.map +1 -0
  62. package/lib/components/AppShell/NavigationListItemWrapper.d.ts +5 -0
  63. package/lib/components/AppShell/NavigationListItemWrapper.d.ts.map +1 -0
  64. package/lib/components/AppShell/NavigationListItemWrapper.js +160 -0
  65. package/lib/components/AppShell/NavigationListItemWrapper.js.map +1 -0
  66. package/lib/components/AppShell/Operator.js +4 -4
  67. package/lib/components/AppShell/Operator.js.map +1 -1
  68. package/lib/components/AppShell/index.d.ts +2 -3
  69. package/lib/components/AppShell/index.d.ts.map +1 -1
  70. package/lib/components/AppShell/index.js +1 -2
  71. package/lib/components/AppShell/index.js.map +1 -1
  72. package/lib/components/Avatar/Avatar.d.ts.map +1 -1
  73. package/lib/components/Avatar/Avatar.js +4 -4
  74. package/lib/components/Avatar/Avatar.js.map +1 -1
  75. package/lib/components/Badges/Count.d.ts.map +1 -1
  76. package/lib/components/Badges/Count.js +37 -1
  77. package/lib/components/Badges/Count.js.map +1 -1
  78. package/lib/components/Badges/Keyboard.d.ts +2 -2
  79. package/lib/components/Badges/Keyboard.d.ts.map +1 -1
  80. package/lib/components/Badges/Keyboard.js +6 -1
  81. package/lib/components/Badges/Keyboard.js.map +1 -1
  82. package/lib/components/Badges/Selection.d.ts +1 -1
  83. package/lib/components/Badges/Selection.d.ts.map +1 -1
  84. package/lib/components/Badges/Selection.js +42 -42
  85. package/lib/components/Badges/Selection.js.map +1 -1
  86. package/lib/components/Badges/Tag.d.ts +9 -3
  87. package/lib/components/Badges/Tag.d.ts.map +1 -1
  88. package/lib/components/Badges/Tag.js +3 -2
  89. package/lib/components/Badges/Tag.js.map +1 -1
  90. package/lib/components/Banner/Banner.d.ts.map +1 -1
  91. package/lib/components/Banner/Banner.js +19 -16
  92. package/lib/components/Banner/Banner.js.map +1 -1
  93. package/lib/components/Boolean/BooleanDisplay.d.ts.map +1 -1
  94. package/lib/components/Boolean/BooleanDisplay.js +4 -12
  95. package/lib/components/Boolean/BooleanDisplay.js.map +1 -1
  96. package/lib/components/Breadcrumbs/Breadcrumbs.d.ts +2 -1
  97. package/lib/components/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  98. package/lib/components/Breadcrumbs/Breadcrumbs.js +44 -13
  99. package/lib/components/Breadcrumbs/Breadcrumbs.js.map +1 -1
  100. package/lib/components/Button/BareButton.d.ts.map +1 -1
  101. package/lib/components/Button/BareButton.js +1 -0
  102. package/lib/components/Button/BareButton.js.map +1 -1
  103. package/lib/components/Button/BareRoleButton.d.ts.map +1 -1
  104. package/lib/components/Button/BareRoleButton.js +3 -1
  105. package/lib/components/Button/BareRoleButton.js.map +1 -1
  106. package/lib/components/Button/Button.d.ts.map +1 -1
  107. package/lib/components/Button/Button.js +3 -1
  108. package/lib/components/Button/Button.js.map +1 -1
  109. package/lib/components/Checkbox/Checkbox.d.ts +3 -1
  110. package/lib/components/Checkbox/Checkbox.d.ts.map +1 -1
  111. package/lib/components/Checkbox/Checkbox.js.map +1 -1
  112. package/lib/components/ColorPicker/ColorPicker.d.ts +2 -0
  113. package/lib/components/ColorPicker/ColorPicker.d.ts.map +1 -1
  114. package/lib/components/ColorPicker/ColorPicker.js +2 -4
  115. package/lib/components/ColorPicker/ColorPicker.js.map +1 -1
  116. package/lib/components/ComboBox/ComboBox.d.ts.map +1 -1
  117. package/lib/components/ComboBox/ComboBox.js +70 -13
  118. package/lib/components/ComboBox/ComboBox.js.map +1 -1
  119. package/lib/components/ComboBox/ComboBox.styles.d.ts +3 -1
  120. package/lib/components/ComboBox/ComboBox.styles.d.ts.map +1 -1
  121. package/lib/components/ComboBox/ComboBox.styles.js +4 -1
  122. package/lib/components/ComboBox/ComboBox.styles.js.map +1 -1
  123. package/lib/components/ComboBox/ComboBox.types.d.ts +11 -1
  124. package/lib/components/ComboBox/ComboBox.types.d.ts.map +1 -1
  125. package/lib/components/ComboBox/ComboBox.types.js.map +1 -1
  126. package/lib/components/ComboBox/ComboBoxInput.d.ts +7 -0
  127. package/lib/components/ComboBox/ComboBoxInput.d.ts.map +1 -1
  128. package/lib/components/ComboBox/ComboBoxInput.js +5 -2
  129. package/lib/components/ComboBox/ComboBoxInput.js.map +1 -1
  130. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.d.ts.map +1 -1
  131. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.js +130 -36
  132. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.js.map +1 -1
  133. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.types.d.ts +10 -0
  134. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.types.d.ts.map +1 -1
  135. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.types.js.map +1 -1
  136. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.d.ts.map +1 -1
  137. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.js +3 -3
  138. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.js.map +1 -1
  139. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.types.d.ts +2 -0
  140. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.types.d.ts.map +1 -1
  141. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.types.js.map +1 -1
  142. package/lib/components/CompositeInput/CompositeInput.d.ts +5 -0
  143. package/lib/components/CompositeInput/CompositeInput.d.ts.map +1 -0
  144. package/lib/components/CompositeInput/CompositeInput.js +62 -0
  145. package/lib/components/CompositeInput/CompositeInput.js.map +1 -0
  146. package/lib/components/CompositeInput/CompositeInput.styles.d.ts +5 -0
  147. package/lib/components/CompositeInput/CompositeInput.styles.d.ts.map +1 -0
  148. package/lib/components/CompositeInput/CompositeInput.styles.js +57 -0
  149. package/lib/components/CompositeInput/CompositeInput.styles.js.map +1 -0
  150. package/lib/components/CompositeInput/CompositeInput.types.d.ts +52 -0
  151. package/lib/components/CompositeInput/CompositeInput.types.d.ts.map +1 -0
  152. package/lib/components/CompositeInput/CompositeInput.types.js +2 -0
  153. package/lib/components/CompositeInput/CompositeInput.types.js.map +1 -0
  154. package/lib/components/CompositeInput/index.d.ts +3 -0
  155. package/lib/components/CompositeInput/index.d.ts.map +1 -0
  156. package/lib/components/CompositeInput/index.js +2 -0
  157. package/lib/components/CompositeInput/index.js.map +1 -0
  158. package/lib/components/Configuration/Configuration.d.ts +16 -13
  159. package/lib/components/Configuration/Configuration.d.ts.map +1 -1
  160. package/lib/components/Configuration/Configuration.js +42 -14
  161. package/lib/components/Configuration/Configuration.js.map +1 -1
  162. package/lib/components/Configuration/index.d.ts +0 -1
  163. package/lib/components/Configuration/index.d.ts.map +1 -1
  164. package/lib/components/Configuration/index.js +0 -1
  165. package/lib/components/Configuration/index.js.map +1 -1
  166. package/lib/components/CreditCard/CreditCard.types.d.ts +2 -0
  167. package/lib/components/CreditCard/CreditCard.types.d.ts.map +1 -1
  168. package/lib/components/CreditCard/CreditCard.types.js.map +1 -1
  169. package/lib/components/CreditCard/CreditCardInput.js +1 -1
  170. package/lib/components/CreditCard/CreditCardInput.js.map +1 -1
  171. package/lib/components/Currency/CurrencyDisplay.d.ts.map +1 -1
  172. package/lib/components/Currency/CurrencyDisplay.js +2 -2
  173. package/lib/components/Currency/CurrencyDisplay.js.map +1 -1
  174. package/lib/components/Currency/CurrencyInput.d.ts.map +1 -1
  175. package/lib/components/Currency/CurrencyInput.js +92 -26
  176. package/lib/components/Currency/CurrencyInput.js.map +1 -1
  177. package/lib/components/Currency/CurrencyInput.types.d.ts +9 -1
  178. package/lib/components/Currency/CurrencyInput.types.d.ts.map +1 -1
  179. package/lib/components/Currency/CurrencyInput.types.js.map +1 -1
  180. package/lib/components/Currency/utils.d.ts +7 -17
  181. package/lib/components/Currency/utils.d.ts.map +1 -1
  182. package/lib/components/Currency/utils.js +50 -51
  183. package/lib/components/Currency/utils.js.map +1 -1
  184. package/lib/components/DateTime/DateTime.types.d.ts +15 -9
  185. package/lib/components/DateTime/DateTime.types.d.ts.map +1 -1
  186. package/lib/components/DateTime/DateTime.types.js.map +1 -1
  187. package/lib/components/DateTime/DateTimeDisplay.d.ts.map +1 -1
  188. package/lib/components/DateTime/DateTimeDisplay.js +8 -1
  189. package/lib/components/DateTime/DateTimeDisplay.js.map +1 -1
  190. package/lib/components/DateTime/DurationDisplay.js +3 -3
  191. package/lib/components/DateTime/DurationDisplay.js.map +1 -1
  192. package/lib/components/DateTime/Input/DateInput.d.ts +9 -2
  193. package/lib/components/DateTime/Input/DateInput.d.ts.map +1 -1
  194. package/lib/components/DateTime/Input/DateInput.js +29 -17
  195. package/lib/components/DateTime/Input/DateInput.js.map +1 -1
  196. package/lib/components/DateTime/Input/DateRangeInput.d.ts +18 -23
  197. package/lib/components/DateTime/Input/DateRangeInput.d.ts.map +1 -1
  198. package/lib/components/DateTime/Input/DateRangeInput.js +98 -83
  199. package/lib/components/DateTime/Input/DateRangeInput.js.map +1 -1
  200. package/lib/components/DateTime/Input/DateTimeInput.d.ts +3 -0
  201. package/lib/components/DateTime/Input/DateTimeInput.d.ts.map +1 -1
  202. package/lib/components/DateTime/Input/DateTimeInput.js +30 -14
  203. package/lib/components/DateTime/Input/DateTimeInput.js.map +1 -1
  204. package/lib/components/DateTime/Input/DayOfWeekInput.d.ts +2 -0
  205. package/lib/components/DateTime/Input/DayOfWeekInput.d.ts.map +1 -1
  206. package/lib/components/DateTime/Input/DayOfWeekInput.js.map +1 -1
  207. package/lib/components/DateTime/Input/Duration/DurationInput.d.ts.map +1 -1
  208. package/lib/components/DateTime/Input/Duration/DurationInput.js +10 -2
  209. package/lib/components/DateTime/Input/Duration/DurationInput.js.map +1 -1
  210. package/lib/components/DateTime/Input/Duration/DurationInput.types.d.ts +2 -0
  211. package/lib/components/DateTime/Input/Duration/DurationInput.types.d.ts.map +1 -1
  212. package/lib/components/DateTime/Input/Duration/DurationInput.types.js.map +1 -1
  213. package/lib/components/DateTime/Input/Duration/NumberUnit.d.ts.map +1 -1
  214. package/lib/components/DateTime/Input/Duration/NumberUnit.js +30 -33
  215. package/lib/components/DateTime/Input/Duration/NumberUnit.js.map +1 -1
  216. package/lib/components/DateTime/Input/Duration/Time.d.ts.map +1 -1
  217. package/lib/components/DateTime/Input/Duration/Time.js +5 -4
  218. package/lib/components/DateTime/Input/Duration/Time.js.map +1 -1
  219. package/lib/components/DateTime/Input/MonthInput.d.ts +3 -0
  220. package/lib/components/DateTime/Input/MonthInput.d.ts.map +1 -1
  221. package/lib/components/DateTime/Input/MonthInput.js +30 -26
  222. package/lib/components/DateTime/Input/MonthInput.js.map +1 -1
  223. package/lib/components/DateTime/Input/PartInput.d.ts +1 -0
  224. package/lib/components/DateTime/Input/PartInput.d.ts.map +1 -1
  225. package/lib/components/DateTime/Input/PartInput.js +10 -7
  226. package/lib/components/DateTime/Input/PartInput.js.map +1 -1
  227. package/lib/components/DateTime/Input/QuarterInput.d.ts +3 -0
  228. package/lib/components/DateTime/Input/QuarterInput.d.ts.map +1 -1
  229. package/lib/components/DateTime/Input/QuarterInput.js +31 -25
  230. package/lib/components/DateTime/Input/QuarterInput.js.map +1 -1
  231. package/lib/components/DateTime/Input/TimeInput.d.ts +3 -0
  232. package/lib/components/DateTime/Input/TimeInput.d.ts.map +1 -1
  233. package/lib/components/DateTime/Input/TimeInput.js +21 -9
  234. package/lib/components/DateTime/Input/TimeInput.js.map +1 -1
  235. package/lib/components/DateTime/Input/TimeRangeInput.d.ts +46 -0
  236. package/lib/components/DateTime/Input/TimeRangeInput.d.ts.map +1 -0
  237. package/lib/components/DateTime/Input/TimeRangeInput.js +74 -0
  238. package/lib/components/DateTime/Input/TimeRangeInput.js.map +1 -0
  239. package/lib/components/DateTime/Input/WeekInput.d.ts +3 -2
  240. package/lib/components/DateTime/Input/WeekInput.d.ts.map +1 -1
  241. package/lib/components/DateTime/Input/WeekInput.js +12 -7
  242. package/lib/components/DateTime/Input/WeekInput.js.map +1 -1
  243. package/lib/components/DateTime/Input/usePickerButton.d.ts +1 -1
  244. package/lib/components/DateTime/Input/usePickerButton.d.ts.map +1 -1
  245. package/lib/components/DateTime/Input/utils.d.ts +7 -7
  246. package/lib/components/DateTime/Input/utils.d.ts.map +1 -1
  247. package/lib/components/DateTime/Input/utils.js +19 -6
  248. package/lib/components/DateTime/Input/utils.js.map +1 -1
  249. package/lib/components/DateTime/Picker/Calendar.d.ts.map +1 -1
  250. package/lib/components/DateTime/Picker/Calendar.js +20 -16
  251. package/lib/components/DateTime/Picker/Calendar.js.map +1 -1
  252. package/lib/components/DateTime/Picker/Calendar.styles.d.ts +2 -4
  253. package/lib/components/DateTime/Picker/Calendar.styles.d.ts.map +1 -1
  254. package/lib/components/DateTime/Picker/Calendar.styles.js +13 -55
  255. package/lib/components/DateTime/Picker/Calendar.styles.js.map +1 -1
  256. package/lib/components/DateTime/Picker/DatePicker.d.ts.map +1 -1
  257. package/lib/components/DateTime/Picker/DatePicker.js +2 -1
  258. package/lib/components/DateTime/Picker/DatePicker.js.map +1 -1
  259. package/lib/components/DateTime/Picker/DatePicker.styles.d.ts +3 -0
  260. package/lib/components/DateTime/Picker/DatePicker.styles.d.ts.map +1 -0
  261. package/lib/components/DateTime/Picker/DatePicker.styles.js +39 -0
  262. package/lib/components/DateTime/Picker/DatePicker.styles.js.map +1 -0
  263. package/lib/components/DateTime/Picker/DateRangePicker.js +1 -1
  264. package/lib/components/DateTime/Picker/DateRangePicker.js.map +1 -1
  265. package/lib/components/DateTime/Picker/TimePicker.d.ts +1 -1
  266. package/lib/components/DateTime/Picker/TimePicker.d.ts.map +1 -1
  267. package/lib/components/DateTime/Picker/TimePicker.js +10 -5
  268. package/lib/components/DateTime/Picker/TimePicker.js.map +1 -1
  269. package/lib/components/DateTime/Picker/Weeks.d.ts.map +1 -1
  270. package/lib/components/DateTime/Picker/Weeks.js +14 -6
  271. package/lib/components/DateTime/Picker/Weeks.js.map +1 -1
  272. package/lib/components/DateTime/Picker/utils.d.ts +1 -1
  273. package/lib/components/DateTime/Picker/utils.d.ts.map +1 -1
  274. package/lib/components/DateTime/index.d.ts +4 -0
  275. package/lib/components/DateTime/index.d.ts.map +1 -1
  276. package/lib/components/DateTime/index.js +3 -0
  277. package/lib/components/DateTime/index.js.map +1 -1
  278. package/lib/components/DateTime/utils.d.ts +5 -4
  279. package/lib/components/DateTime/utils.d.ts.map +1 -1
  280. package/lib/components/DateTime/utils.js +21 -8
  281. package/lib/components/DateTime/utils.js.map +1 -1
  282. package/lib/components/Dialog/Dialog.d.ts +32 -0
  283. package/lib/components/Dialog/Dialog.d.ts.map +1 -0
  284. package/lib/components/Dialog/Dialog.js +150 -0
  285. package/lib/components/Dialog/Dialog.js.map +1 -0
  286. package/lib/components/Dialog/index.d.ts +3 -0
  287. package/lib/components/Dialog/index.d.ts.map +1 -0
  288. package/lib/components/Dialog/index.js +3 -0
  289. package/lib/components/Dialog/index.js.map +1 -0
  290. package/lib/components/EmojiPicker/EmojiPicker.styles.d.ts.map +1 -1
  291. package/lib/components/EmojiPicker/EmojiPicker.styles.js +8 -6
  292. package/lib/components/EmojiPicker/EmojiPicker.styles.js.map +1 -1
  293. package/lib/components/FieldGroup/FieldGroup.d.ts +7 -0
  294. package/lib/components/FieldGroup/FieldGroup.d.ts.map +1 -1
  295. package/lib/components/FieldGroup/FieldGroup.js +46 -42
  296. package/lib/components/FieldGroup/FieldGroup.js.map +1 -1
  297. package/lib/components/FieldGroup/FieldGroupList.d.ts.map +1 -1
  298. package/lib/components/FieldGroup/FieldGroupList.js +8 -8
  299. package/lib/components/FieldGroup/FieldGroupList.js.map +1 -1
  300. package/lib/components/FieldValueList/FieldValueList.d.ts +13 -7
  301. package/lib/components/FieldValueList/FieldValueList.d.ts.map +1 -1
  302. package/lib/components/FieldValueList/FieldValueList.js +53 -19
  303. package/lib/components/FieldValueList/FieldValueList.js.map +1 -1
  304. package/lib/components/FieldValueList/index.d.ts +3 -5
  305. package/lib/components/FieldValueList/index.d.ts.map +1 -1
  306. package/lib/components/FieldValueList/index.js +2 -4
  307. package/lib/components/FieldValueList/index.js.map +1 -1
  308. package/lib/components/File/FileItem.d.ts +3 -0
  309. package/lib/components/File/FileItem.d.ts.map +1 -1
  310. package/lib/components/File/FileItem.js +18 -14
  311. package/lib/components/File/FileItem.js.map +1 -1
  312. package/lib/components/File/utils.d.ts +1 -1
  313. package/lib/components/File/utils.d.ts.map +1 -1
  314. package/lib/components/File/utils.js.map +1 -1
  315. package/lib/components/Flex/Flex.d.ts +11 -10
  316. package/lib/components/Flex/Flex.d.ts.map +1 -1
  317. package/lib/components/Flex/Flex.js.map +1 -1
  318. package/lib/components/Form/Form.d.ts +5 -16
  319. package/lib/components/Form/Form.d.ts.map +1 -1
  320. package/lib/components/Form/Form.js +14 -11
  321. package/lib/components/Form/Form.js.map +1 -1
  322. package/lib/components/FormControl/FormControl.d.ts +12 -2
  323. package/lib/components/FormControl/FormControl.d.ts.map +1 -1
  324. package/lib/components/FormControl/FormControl.js +60 -35
  325. package/lib/components/FormControl/FormControl.js.map +1 -1
  326. package/lib/components/FormField/FormField.d.ts +5 -0
  327. package/lib/components/FormField/FormField.d.ts.map +1 -1
  328. package/lib/components/FormField/FormField.js +87 -16
  329. package/lib/components/FormField/FormField.js.map +1 -1
  330. package/lib/components/Grid/Grid.d.ts +1 -1
  331. package/lib/components/Grid/Grid.d.ts.map +1 -1
  332. package/lib/components/Grid/Grid.types.d.ts +11 -10
  333. package/lib/components/Grid/Grid.types.d.ts.map +1 -1
  334. package/lib/components/Grid/Grid.types.js.map +1 -1
  335. package/lib/components/HTML/HTML.d.ts +1 -0
  336. package/lib/components/HTML/HTML.d.ts.map +1 -1
  337. package/lib/components/HTML/HTML.js +63 -17
  338. package/lib/components/HTML/HTML.js.map +1 -1
  339. package/lib/components/Icon/Icon.d.ts +7 -7
  340. package/lib/components/Icon/Icon.d.ts.map +1 -1
  341. package/lib/components/Icon/Icon.js +14 -15
  342. package/lib/components/Icon/Icon.js.map +1 -1
  343. package/lib/components/Icon/iconNames.d.ts +2 -2
  344. package/lib/components/Icon/iconNames.d.ts.map +1 -1
  345. package/lib/components/Icon/iconNames.js +2 -1
  346. package/lib/components/Icon/iconNames.js.map +1 -1
  347. package/lib/components/Icon/icons/ai-assist.icon.js +1 -1
  348. package/lib/components/Icon/icons/ai-assist.icon.js.map +1 -1
  349. package/lib/components/Icon/icons/align-center.icon.js +1 -1
  350. package/lib/components/Icon/icons/align-center.icon.js.map +1 -1
  351. package/lib/components/Icon/icons/align-left.icon.js +1 -1
  352. package/lib/components/Icon/icons/align-left.icon.js.map +1 -1
  353. package/lib/components/Icon/icons/align-right.icon.js +1 -1
  354. package/lib/components/Icon/icons/align-right.icon.js.map +1 -1
  355. package/lib/components/Icon/icons/arrow-left.icon.js +1 -1
  356. package/lib/components/Icon/icons/arrow-left.icon.js.map +1 -1
  357. package/lib/components/Icon/icons/arrow-micro-down.icon.js +1 -1
  358. package/lib/components/Icon/icons/arrow-micro-down.icon.js.map +1 -1
  359. package/lib/components/Icon/icons/arrow-micro-left.icon.js +1 -1
  360. package/lib/components/Icon/icons/arrow-micro-left.icon.js.map +1 -1
  361. package/lib/components/Icon/icons/arrow-micro-right.icon.js +1 -1
  362. package/lib/components/Icon/icons/arrow-micro-right.icon.js.map +1 -1
  363. package/lib/components/Icon/icons/arrow-micro-up-down.icon.js +1 -1
  364. package/lib/components/Icon/icons/arrow-micro-up-down.icon.js.map +1 -1
  365. package/lib/components/Icon/icons/arrow-micro-up.icon.js +1 -1
  366. package/lib/components/Icon/icons/arrow-micro-up.icon.js.map +1 -1
  367. package/lib/components/Icon/icons/arrow-up-down.icon.js +1 -1
  368. package/lib/components/Icon/icons/arrow-up-down.icon.js.map +1 -1
  369. package/lib/components/Icon/icons/bars.icon.js +1 -1
  370. package/lib/components/Icon/icons/bars.icon.js.map +1 -1
  371. package/lib/components/Icon/icons/bell-solid.icon.js +1 -1
  372. package/lib/components/Icon/icons/bell-solid.icon.js.map +1 -1
  373. package/lib/components/Icon/icons/bell.icon.js +1 -1
  374. package/lib/components/Icon/icons/bell.icon.js.map +1 -1
  375. package/lib/components/Icon/icons/box-4-solid.icon.js +1 -1
  376. package/lib/components/Icon/icons/box-4-solid.icon.js.map +1 -1
  377. package/lib/components/Icon/icons/box-4.icon.js +1 -1
  378. package/lib/components/Icon/icons/box-4.icon.js.map +1 -1
  379. package/lib/components/Icon/icons/calendar-range.icon.js +1 -1
  380. package/lib/components/Icon/icons/calendar-range.icon.js.map +1 -1
  381. package/lib/components/Icon/icons/calendar-solid.icon.js +1 -1
  382. package/lib/components/Icon/icons/calendar-solid.icon.js.map +1 -1
  383. package/lib/components/Icon/icons/caret-down.icon.js +1 -1
  384. package/lib/components/Icon/icons/caret-down.icon.js.map +1 -1
  385. package/lib/components/Icon/icons/caret-left.icon.js +1 -1
  386. package/lib/components/Icon/icons/caret-left.icon.js.map +1 -1
  387. package/lib/components/Icon/icons/caret-right.icon.js +1 -1
  388. package/lib/components/Icon/icons/caret-right.icon.js.map +1 -1
  389. package/lib/components/Icon/icons/caret-up.icon.js +1 -1
  390. package/lib/components/Icon/icons/caret-up.icon.js.map +1 -1
  391. package/lib/components/Icon/icons/{script-solid.icon.d.ts → carrot.icon.d.ts} +2 -2
  392. package/lib/components/Icon/icons/carrot.icon.d.ts.map +1 -0
  393. package/lib/components/Icon/icons/carrot.icon.js +6 -0
  394. package/lib/components/Icon/icons/carrot.icon.js.map +1 -0
  395. package/lib/components/Icon/icons/case-solid.icon.js +1 -1
  396. package/lib/components/Icon/icons/case-solid.icon.js.map +1 -1
  397. package/lib/components/Icon/icons/case.icon.js +1 -1
  398. package/lib/components/Icon/icons/case.icon.js.map +1 -1
  399. package/lib/components/Icon/icons/chain.icon.js +1 -1
  400. package/lib/components/Icon/icons/chain.icon.js.map +1 -1
  401. package/lib/components/Icon/icons/chat-solid.icon.js +1 -1
  402. package/lib/components/Icon/icons/chat-solid.icon.js.map +1 -1
  403. package/lib/components/Icon/icons/chat.icon.js +1 -1
  404. package/lib/components/Icon/icons/chat.icon.js.map +1 -1
  405. package/lib/components/Icon/icons/check.icon.js +1 -1
  406. package/lib/components/Icon/icons/check.icon.js.map +1 -1
  407. package/lib/components/Icon/icons/clipboard-plus-solid.icon.js +1 -1
  408. package/lib/components/Icon/icons/clipboard-plus-solid.icon.js.map +1 -1
  409. package/lib/components/Icon/icons/clipboard-plus.icon.js +1 -1
  410. package/lib/components/Icon/icons/clipboard-plus.icon.js.map +1 -1
  411. package/lib/components/Icon/icons/clock-solid.icon.js +1 -1
  412. package/lib/components/Icon/icons/clock-solid.icon.js.map +1 -1
  413. package/lib/components/Icon/icons/clock.icon.js +1 -1
  414. package/lib/components/Icon/icons/clock.icon.js.map +1 -1
  415. package/lib/components/Icon/icons/code.icon.js +1 -1
  416. package/lib/components/Icon/icons/code.icon.js.map +1 -1
  417. package/lib/components/Icon/icons/dataviz-string-field.icon.d.ts +1 -1
  418. package/lib/components/Icon/icons/dataviz-string-field.icon.js +2 -2
  419. package/lib/components/Icon/icons/dataviz-string-field.icon.js.map +1 -1
  420. package/lib/components/Icon/icons/dock.icon.js +1 -1
  421. package/lib/components/Icon/icons/dock.icon.js.map +1 -1
  422. package/lib/components/Icon/icons/dot-9-solid.icon.js +1 -1
  423. package/lib/components/Icon/icons/dot-9-solid.icon.js.map +1 -1
  424. package/lib/components/Icon/icons/dot-9.icon.js +1 -1
  425. package/lib/components/Icon/icons/dot-9.icon.js.map +1 -1
  426. package/lib/components/Icon/icons/download.icon.js +1 -1
  427. package/lib/components/Icon/icons/download.icon.js.map +1 -1
  428. package/lib/components/Icon/icons/drag.icon.js +1 -1
  429. package/lib/components/Icon/icons/drag.icon.js.map +1 -1
  430. package/lib/components/Icon/icons/eye-off-solid.icon.js +1 -1
  431. package/lib/components/Icon/icons/eye-off-solid.icon.js.map +1 -1
  432. package/lib/components/Icon/icons/eye-off.icon.js +1 -1
  433. package/lib/components/Icon/icons/eye-off.icon.js.map +1 -1
  434. package/lib/components/Icon/icons/face-blank-solid.icon.d.ts.map +1 -1
  435. package/lib/components/Icon/icons/face-blank-solid.icon.js +1 -1
  436. package/lib/components/Icon/icons/face-blank-solid.icon.js.map +1 -1
  437. package/lib/components/Icon/icons/face-blank.icon.d.ts.map +1 -1
  438. package/lib/components/Icon/icons/face-blank.icon.js +1 -1
  439. package/lib/components/Icon/icons/face-blank.icon.js.map +1 -1
  440. package/lib/components/Icon/icons/face-happy-solid.icon.d.ts.map +1 -1
  441. package/lib/components/Icon/icons/face-happy-solid.icon.js +1 -1
  442. package/lib/components/Icon/icons/face-happy-solid.icon.js.map +1 -1
  443. package/lib/components/Icon/icons/face-happy.icon.d.ts.map +1 -1
  444. package/lib/components/Icon/icons/face-happy.icon.js +1 -1
  445. package/lib/components/Icon/icons/face-happy.icon.js.map +1 -1
  446. package/lib/components/Icon/icons/face-sad-solid.icon.d.ts.map +1 -1
  447. package/lib/components/Icon/icons/face-sad-solid.icon.js +1 -1
  448. package/lib/components/Icon/icons/face-sad-solid.icon.js.map +1 -1
  449. package/lib/components/Icon/icons/face-sad.icon.d.ts.map +1 -1
  450. package/lib/components/Icon/icons/face-sad.icon.js +1 -1
  451. package/lib/components/Icon/icons/face-sad.icon.js.map +1 -1
  452. package/lib/components/Icon/icons/fast-forward-solid.icon.js +1 -1
  453. package/lib/components/Icon/icons/fast-forward-solid.icon.js.map +1 -1
  454. package/lib/components/Icon/icons/filetype-text.icon.d.ts.map +1 -1
  455. package/lib/components/Icon/icons/filetype-text.icon.js +2 -2
  456. package/lib/components/Icon/icons/filetype-text.icon.js.map +1 -1
  457. package/lib/components/Icon/icons/filter-on.icon.js +1 -1
  458. package/lib/components/Icon/icons/filter-on.icon.js.map +1 -1
  459. package/lib/components/Icon/icons/filter.icon.js +1 -1
  460. package/lib/components/Icon/icons/filter.icon.js.map +1 -1
  461. package/lib/components/Icon/icons/folder-hierarchy-solid.icon.js +1 -1
  462. package/lib/components/Icon/icons/folder-hierarchy-solid.icon.js.map +1 -1
  463. package/lib/components/Icon/icons/folder-hierarchy.icon.js +1 -1
  464. package/lib/components/Icon/icons/folder-hierarchy.icon.js.map +1 -1
  465. package/lib/components/Icon/icons/forward-all-solid.icon.js +1 -1
  466. package/lib/components/Icon/icons/forward-all-solid.icon.js.map +1 -1
  467. package/lib/components/Icon/icons/forward-all.icon.js +1 -1
  468. package/lib/components/Icon/icons/forward-all.icon.js.map +1 -1
  469. package/lib/components/Icon/icons/forward-solid.icon.js +1 -1
  470. package/lib/components/Icon/icons/forward-solid.icon.js.map +1 -1
  471. package/lib/components/Icon/icons/forward.icon.js +1 -1
  472. package/lib/components/Icon/icons/forward.icon.js.map +1 -1
  473. package/lib/components/Icon/icons/galaxy.icon.d.ts.map +1 -1
  474. package/lib/components/Icon/icons/galaxy.icon.js +2 -2
  475. package/lib/components/Icon/icons/galaxy.icon.js.map +1 -1
  476. package/lib/components/Icon/icons/globe-solid.icon.js +1 -1
  477. package/lib/components/Icon/icons/globe-solid.icon.js.map +1 -1
  478. package/lib/components/Icon/icons/globe.icon.js +1 -1
  479. package/lib/components/Icon/icons/globe.icon.js.map +1 -1
  480. package/lib/components/Icon/icons/hand.icon.js +1 -1
  481. package/lib/components/Icon/icons/hand.icon.js.map +1 -1
  482. package/lib/components/Icon/icons/help-solid.icon.js +1 -1
  483. package/lib/components/Icon/icons/help-solid.icon.js.map +1 -1
  484. package/lib/components/Icon/icons/help.icon.js +1 -1
  485. package/lib/components/Icon/icons/help.icon.js.map +1 -1
  486. package/lib/components/Icon/icons/home-solid.icon.js +1 -1
  487. package/lib/components/Icon/icons/home-solid.icon.js.map +1 -1
  488. package/lib/components/Icon/icons/home.icon.js +1 -1
  489. package/lib/components/Icon/icons/home.icon.js.map +1 -1
  490. package/lib/components/Icon/icons/information-solid.icon.js +1 -1
  491. package/lib/components/Icon/icons/information-solid.icon.js.map +1 -1
  492. package/lib/components/Icon/icons/information.icon.js +1 -1
  493. package/lib/components/Icon/icons/information.icon.js.map +1 -1
  494. package/lib/components/Icon/icons/list-number.icon.d.ts.map +1 -1
  495. package/lib/components/Icon/icons/list-number.icon.js +2 -2
  496. package/lib/components/Icon/icons/list-number.icon.js.map +1 -1
  497. package/lib/components/Icon/icons/list.icon.d.ts.map +1 -1
  498. package/lib/components/Icon/icons/list.icon.js +2 -2
  499. package/lib/components/Icon/icons/list.icon.js.map +1 -1
  500. package/lib/components/Icon/icons/mail-solid.icon.js +1 -1
  501. package/lib/components/Icon/icons/mail-solid.icon.js.map +1 -1
  502. package/lib/components/Icon/icons/mail.icon.js +1 -1
  503. package/lib/components/Icon/icons/mail.icon.js.map +1 -1
  504. package/lib/components/Icon/icons/minus.icon.js +1 -1
  505. package/lib/components/Icon/icons/minus.icon.js.map +1 -1
  506. package/lib/components/Icon/icons/more.icon.js +1 -1
  507. package/lib/components/Icon/icons/more.icon.js.map +1 -1
  508. package/lib/components/Icon/icons/move-left-solid.icon.js +1 -1
  509. package/lib/components/Icon/icons/move-left-solid.icon.js.map +1 -1
  510. package/lib/components/Icon/icons/move-right-solid.icon.js +1 -1
  511. package/lib/components/Icon/icons/move-right-solid.icon.js.map +1 -1
  512. package/lib/components/Icon/icons/open.icon.js +1 -1
  513. package/lib/components/Icon/icons/open.icon.js.map +1 -1
  514. package/lib/components/Icon/icons/paper-clip.icon.js +1 -1
  515. package/lib/components/Icon/icons/paper-clip.icon.js.map +1 -1
  516. package/lib/components/Icon/icons/phone-solid.icon.js +1 -1
  517. package/lib/components/Icon/icons/phone-solid.icon.js.map +1 -1
  518. package/lib/components/Icon/icons/phone.icon.js +1 -1
  519. package/lib/components/Icon/icons/phone.icon.js.map +1 -1
  520. package/lib/components/Icon/icons/picture-solid.icon.js +1 -1
  521. package/lib/components/Icon/icons/picture-solid.icon.js.map +1 -1
  522. package/lib/components/Icon/icons/picture.icon.js +1 -1
  523. package/lib/components/Icon/icons/picture.icon.js.map +1 -1
  524. package/lib/components/Icon/icons/placeholder.icon.d.ts +4 -0
  525. package/lib/components/Icon/icons/placeholder.icon.d.ts.map +1 -0
  526. package/lib/components/Icon/icons/placeholder.icon.js +6 -0
  527. package/lib/components/Icon/icons/placeholder.icon.js.map +1 -0
  528. package/lib/components/Icon/icons/plus.icon.js +1 -1
  529. package/lib/components/Icon/icons/plus.icon.js.map +1 -1
  530. package/lib/components/Icon/icons/polaris-solid.icon.js +1 -1
  531. package/lib/components/Icon/icons/polaris-solid.icon.js.map +1 -1
  532. package/lib/components/Icon/icons/polaris.icon.js +1 -1
  533. package/lib/components/Icon/icons/polaris.icon.js.map +1 -1
  534. package/lib/components/Icon/icons/qr.icon.js +1 -1
  535. package/lib/components/Icon/icons/qr.icon.js.map +1 -1
  536. package/lib/components/Icon/icons/reply-all-solid.icon.js +1 -1
  537. package/lib/components/Icon/icons/reply-all-solid.icon.js.map +1 -1
  538. package/lib/components/Icon/icons/reply-all.icon.js +1 -1
  539. package/lib/components/Icon/icons/reply-all.icon.js.map +1 -1
  540. package/lib/components/Icon/icons/reply-solid.icon.js +1 -1
  541. package/lib/components/Icon/icons/reply-solid.icon.js.map +1 -1
  542. package/lib/components/Icon/icons/reply.icon.js +1 -1
  543. package/lib/components/Icon/icons/reply.icon.js.map +1 -1
  544. package/lib/components/Icon/icons/reset.icon.js +1 -1
  545. package/lib/components/Icon/icons/reset.icon.js.map +1 -1
  546. package/lib/components/Icon/icons/robot-happy-solid.icon.js +1 -1
  547. package/lib/components/Icon/icons/robot-happy-solid.icon.js.map +1 -1
  548. package/lib/components/Icon/icons/robot-happy.icon.js +1 -1
  549. package/lib/components/Icon/icons/robot-happy.icon.js.map +1 -1
  550. package/lib/components/Icon/icons/row-insert.icon.js +1 -1
  551. package/lib/components/Icon/icons/row-insert.icon.js.map +1 -1
  552. package/lib/components/Icon/icons/row.icon.js +1 -1
  553. package/lib/components/Icon/icons/row.icon.js.map +1 -1
  554. package/lib/components/Icon/icons/scale-down.icon.js +1 -1
  555. package/lib/components/Icon/icons/scale-down.icon.js.map +1 -1
  556. package/lib/components/Icon/icons/scale-up-solid.icon.js +1 -1
  557. package/lib/components/Icon/icons/scale-up-solid.icon.js.map +1 -1
  558. package/lib/components/Icon/icons/scale-up.icon.js +1 -1
  559. package/lib/components/Icon/icons/scale-up.icon.js.map +1 -1
  560. package/lib/components/Icon/icons/script.icon.js +1 -1
  561. package/lib/components/Icon/icons/script.icon.js.map +1 -1
  562. package/lib/components/Icon/icons/search-analytics-solid.icon.js +1 -1
  563. package/lib/components/Icon/icons/search-analytics-solid.icon.js.map +1 -1
  564. package/lib/components/Icon/icons/search-analytics.icon.js +1 -1
  565. package/lib/components/Icon/icons/search-analytics.icon.js.map +1 -1
  566. package/lib/components/Icon/icons/search.icon.js +1 -1
  567. package/lib/components/Icon/icons/search.icon.js.map +1 -1
  568. package/lib/components/Icon/icons/send-solid.icon.js +1 -1
  569. package/lib/components/Icon/icons/send-solid.icon.js.map +1 -1
  570. package/lib/components/Icon/icons/send.icon.js +1 -1
  571. package/lib/components/Icon/icons/send.icon.js.map +1 -1
  572. package/lib/components/Icon/icons/slideshow-solid.icon.js +1 -1
  573. package/lib/components/Icon/icons/slideshow-solid.icon.js.map +1 -1
  574. package/lib/components/Icon/icons/slideshow.icon.js +1 -1
  575. package/lib/components/Icon/icons/slideshow.icon.js.map +1 -1
  576. package/lib/components/Icon/icons/snow.icon.js +1 -1
  577. package/lib/components/Icon/icons/snow.icon.js.map +1 -1
  578. package/lib/components/Icon/icons/speaker-solid.icon.js +1 -1
  579. package/lib/components/Icon/icons/speaker-solid.icon.js.map +1 -1
  580. package/lib/components/Icon/icons/speaker.icon.js +1 -1
  581. package/lib/components/Icon/icons/speaker.icon.js.map +1 -1
  582. package/lib/components/Icon/icons/star-solid.icon.js +1 -1
  583. package/lib/components/Icon/icons/star-solid.icon.js.map +1 -1
  584. package/lib/components/Icon/icons/star.icon.js +1 -1
  585. package/lib/components/Icon/icons/star.icon.js.map +1 -1
  586. package/lib/components/Icon/icons/target-solid.icon.js +1 -1
  587. package/lib/components/Icon/icons/target-solid.icon.js.map +1 -1
  588. package/lib/components/Icon/icons/target.icon.js +1 -1
  589. package/lib/components/Icon/icons/target.icon.js.map +1 -1
  590. package/lib/components/Icon/icons/thumbs-up-solid.icon.js +1 -1
  591. package/lib/components/Icon/icons/thumbs-up-solid.icon.js.map +1 -1
  592. package/lib/components/Icon/icons/thumbs-up.icon.js +1 -1
  593. package/lib/components/Icon/icons/thumbs-up.icon.js.map +1 -1
  594. package/lib/components/Icon/icons/times.icon.js +1 -1
  595. package/lib/components/Icon/icons/times.icon.js.map +1 -1
  596. package/lib/components/Icon/icons/trash-solid.icon.js +1 -1
  597. package/lib/components/Icon/icons/trash-solid.icon.js.map +1 -1
  598. package/lib/components/Icon/icons/trash.icon.js +1 -1
  599. package/lib/components/Icon/icons/trash.icon.js.map +1 -1
  600. package/lib/components/Icon/icons/twitter.icon.js +1 -1
  601. package/lib/components/Icon/icons/twitter.icon.js.map +1 -1
  602. package/lib/components/Icon/icons/undock.icon.js +1 -1
  603. package/lib/components/Icon/icons/undock.icon.js.map +1 -1
  604. package/lib/components/Icon/icons/user-solid.icon.js +1 -1
  605. package/lib/components/Icon/icons/user-solid.icon.js.map +1 -1
  606. package/lib/components/Icon/icons/user-star-solid.icon.js +1 -1
  607. package/lib/components/Icon/icons/user-star-solid.icon.js.map +1 -1
  608. package/lib/components/Icon/icons/user-star.icon.js +1 -1
  609. package/lib/components/Icon/icons/user-star.icon.js.map +1 -1
  610. package/lib/components/Icon/icons/user.icon.js +1 -1
  611. package/lib/components/Icon/icons/user.icon.js.map +1 -1
  612. package/lib/components/Icon/icons/warn-solid.icon.js +1 -1
  613. package/lib/components/Icon/icons/warn-solid.icon.js.map +1 -1
  614. package/lib/components/Icon/icons/warn.icon.js +1 -1
  615. package/lib/components/Icon/icons/warn.icon.js.map +1 -1
  616. package/lib/components/Icon/index.d.ts +1 -1
  617. package/lib/components/Icon/index.d.ts.map +1 -1
  618. package/lib/components/Icon/index.js.map +1 -1
  619. package/lib/components/Input/Input.d.ts +3 -1
  620. package/lib/components/Input/Input.d.ts.map +1 -1
  621. package/lib/components/Input/Input.js +16 -2
  622. package/lib/components/Input/Input.js.map +1 -1
  623. package/lib/components/Input/Input.styles.d.ts +1 -0
  624. package/lib/components/Input/Input.styles.d.ts.map +1 -1
  625. package/lib/components/Input/Input.styles.js +31 -0
  626. package/lib/components/Input/Input.styles.js.map +1 -1
  627. package/lib/components/Link/Link.d.ts +4 -1
  628. package/lib/components/Link/Link.d.ts.map +1 -1
  629. package/lib/components/Link/Link.js +87 -30
  630. package/lib/components/Link/Link.js.map +1 -1
  631. package/lib/components/List/CommaSeparatedList.d.ts.map +1 -1
  632. package/lib/components/List/CommaSeparatedList.js +6 -14
  633. package/lib/components/List/CommaSeparatedList.js.map +1 -1
  634. package/lib/components/List/List.d.ts +2 -2
  635. package/lib/components/List/List.d.ts.map +1 -1
  636. package/lib/components/List/List.js.map +1 -1
  637. package/lib/components/ListToolbar/ListToolbar.d.ts.map +1 -1
  638. package/lib/components/ListToolbar/ListToolbar.js +108 -53
  639. package/lib/components/ListToolbar/ListToolbar.js.map +1 -1
  640. package/lib/components/ListToolbar/ListToolbar.styles.d.ts +1 -0
  641. package/lib/components/ListToolbar/ListToolbar.styles.d.ts.map +1 -1
  642. package/lib/components/ListToolbar/ListToolbar.styles.js +38 -2
  643. package/lib/components/ListToolbar/ListToolbar.styles.js.map +1 -1
  644. package/lib/components/ListToolbar/ListToolbar.types.d.ts +28 -10
  645. package/lib/components/ListToolbar/ListToolbar.types.d.ts.map +1 -1
  646. package/lib/components/ListToolbar/ListToolbar.types.js.map +1 -1
  647. package/lib/components/ListToolbar/PresetMenuPopover.d.ts +12 -0
  648. package/lib/components/ListToolbar/PresetMenuPopover.d.ts.map +1 -0
  649. package/lib/components/ListToolbar/PresetMenuPopover.js +36 -0
  650. package/lib/components/ListToolbar/PresetMenuPopover.js.map +1 -0
  651. package/lib/components/ListToolbar/QueryOptionPopover.d.ts.map +1 -1
  652. package/lib/components/ListToolbar/QueryOptionPopover.js +14 -44
  653. package/lib/components/ListToolbar/QueryOptionPopover.js.map +1 -1
  654. package/lib/components/Location/LocationInput.d.ts +3 -1
  655. package/lib/components/Location/LocationInput.d.ts.map +1 -1
  656. package/lib/components/Location/LocationInput.js +2 -2
  657. package/lib/components/Location/LocationInput.js.map +1 -1
  658. package/lib/components/Location/LocationView.d.ts +1 -1
  659. package/lib/components/Location/LocationView.d.ts.map +1 -1
  660. package/lib/components/Location/LocationView.js +16 -10
  661. package/lib/components/Location/LocationView.js.map +1 -1
  662. package/lib/components/Location/utils.d.ts +3 -2
  663. package/lib/components/Location/utils.d.ts.map +1 -1
  664. package/lib/components/Location/utils.js +17 -9
  665. package/lib/components/Location/utils.js.map +1 -1
  666. package/lib/components/Menu/FlyoutMenuList.d.ts.map +1 -1
  667. package/lib/components/Menu/FlyoutMenuList.js +11 -7
  668. package/lib/components/Menu/FlyoutMenuList.js.map +1 -1
  669. package/lib/components/Menu/Menu.context.d.ts.map +1 -1
  670. package/lib/components/Menu/Menu.context.js +2 -1
  671. package/lib/components/Menu/Menu.context.js.map +1 -1
  672. package/lib/components/Menu/Menu.d.ts.map +1 -1
  673. package/lib/components/Menu/Menu.js +42 -15
  674. package/lib/components/Menu/Menu.js.map +1 -1
  675. package/lib/components/Menu/Menu.styles.d.ts.map +1 -1
  676. package/lib/components/Menu/Menu.styles.js +4 -2
  677. package/lib/components/Menu/Menu.styles.js.map +1 -1
  678. package/lib/components/Menu/Menu.types.d.ts +14 -0
  679. package/lib/components/Menu/Menu.types.d.ts.map +1 -1
  680. package/lib/components/Menu/Menu.types.js.map +1 -1
  681. package/lib/components/Menu/MenuGroup.d.ts.map +1 -1
  682. package/lib/components/Menu/MenuGroup.js +3 -3
  683. package/lib/components/Menu/MenuGroup.js.map +1 -1
  684. package/lib/components/Menu/MenuItem.d.ts.map +1 -1
  685. package/lib/components/Menu/MenuItem.js +4 -8
  686. package/lib/components/Menu/MenuItem.js.map +1 -1
  687. package/lib/components/Menu/MenuList.d.ts.map +1 -1
  688. package/lib/components/Menu/MenuList.js +23 -14
  689. package/lib/components/Menu/MenuList.js.map +1 -1
  690. package/lib/components/Menu/NavItemsList.d.ts +2 -2
  691. package/lib/components/Menu/NavItemsList.d.ts.map +1 -1
  692. package/lib/components/Menu/NavItemsList.js +12 -7
  693. package/lib/components/Menu/NavItemsList.js.map +1 -1
  694. package/lib/components/Menu/helpers.d.ts +9 -7
  695. package/lib/components/Menu/helpers.d.ts.map +1 -1
  696. package/lib/components/Menu/helpers.js +16 -13
  697. package/lib/components/Menu/helpers.js.map +1 -1
  698. package/lib/components/Menu/index.d.ts +1 -1
  699. package/lib/components/Menu/index.d.ts.map +1 -1
  700. package/lib/components/Menu/index.js +1 -1
  701. package/lib/components/Menu/index.js.map +1 -1
  702. package/lib/components/MenuButton/MenuButton.d.ts.map +1 -1
  703. package/lib/components/MenuButton/MenuButton.js +13 -11
  704. package/lib/components/MenuButton/MenuButton.js.map +1 -1
  705. package/lib/components/MetaList/MetaList.d.ts.map +1 -1
  706. package/lib/components/MetaList/MetaList.js +13 -10
  707. package/lib/components/MetaList/MetaList.js.map +1 -1
  708. package/lib/components/Modal/Contexts.d.ts.map +1 -1
  709. package/lib/components/Modal/Contexts.js +2 -3
  710. package/lib/components/Modal/Contexts.js.map +1 -1
  711. package/lib/components/Modal/MinimizedModal.d.ts.map +1 -1
  712. package/lib/components/Modal/MinimizedModal.js +2 -5
  713. package/lib/components/Modal/MinimizedModal.js.map +1 -1
  714. package/lib/components/Modal/Modal.d.ts.map +1 -1
  715. package/lib/components/Modal/Modal.js +7 -9
  716. package/lib/components/Modal/Modal.js.map +1 -1
  717. package/lib/components/Modal/Modal.types.d.ts +2 -6
  718. package/lib/components/Modal/Modal.types.d.ts.map +1 -1
  719. package/lib/components/Modal/Modal.types.js +1 -2
  720. package/lib/components/Modal/Modal.types.js.map +1 -1
  721. package/lib/components/Modal/ModalManager.d.ts +8 -2
  722. package/lib/components/Modal/ModalManager.d.ts.map +1 -1
  723. package/lib/components/Modal/ModalManager.js +21 -20
  724. package/lib/components/Modal/ModalManager.js.map +1 -1
  725. package/lib/components/Modal/index.d.ts +0 -1
  726. package/lib/components/Modal/index.d.ts.map +1 -1
  727. package/lib/components/Modal/index.js +0 -1
  728. package/lib/components/Modal/index.js.map +1 -1
  729. package/lib/components/MultiStepForm/FormProgress.d.ts +10 -0
  730. package/lib/components/MultiStepForm/FormProgress.d.ts.map +1 -0
  731. package/lib/components/{MultiStep/MultiStep.js → MultiStepForm/FormProgress.js} +8 -22
  732. package/lib/components/MultiStepForm/FormProgress.js.map +1 -0
  733. package/lib/components/{MultiStep/MultiStep.styles.d.ts → MultiStepForm/FormProgress.styles.d.ts} +2 -4
  734. package/lib/components/MultiStepForm/FormProgress.styles.d.ts.map +1 -0
  735. package/lib/components/{MultiStep/MultiStep.styles.js → MultiStepForm/FormProgress.styles.js} +4 -8
  736. package/lib/components/MultiStepForm/FormProgress.styles.js.map +1 -0
  737. package/lib/components/MultiStepForm/MultiStepForm.d.ts +9 -0
  738. package/lib/components/MultiStepForm/MultiStepForm.d.ts.map +1 -0
  739. package/lib/components/MultiStepForm/MultiStepForm.js +50 -0
  740. package/lib/components/MultiStepForm/MultiStepForm.js.map +1 -0
  741. package/lib/components/MultiStepForm/MultiStepForm.types.d.ts +48 -0
  742. package/lib/components/MultiStepForm/MultiStepForm.types.d.ts.map +1 -0
  743. package/lib/components/MultiStepForm/MultiStepForm.types.js +2 -0
  744. package/lib/components/MultiStepForm/MultiStepForm.types.js.map +1 -0
  745. package/lib/components/MultiStepForm/index.d.ts +2 -0
  746. package/lib/components/MultiStepForm/index.d.ts.map +1 -0
  747. package/lib/components/MultiStepForm/index.js +2 -0
  748. package/lib/components/MultiStepForm/index.js.map +1 -0
  749. package/lib/components/Number/NumberDisplay.d.ts +0 -5
  750. package/lib/components/Number/NumberDisplay.d.ts.map +1 -1
  751. package/lib/components/Number/NumberDisplay.js +8 -12
  752. package/lib/components/Number/NumberDisplay.js.map +1 -1
  753. package/lib/components/Number/NumberInput.d.ts +1 -1
  754. package/lib/components/Number/NumberInput.d.ts.map +1 -1
  755. package/lib/components/Number/NumberInput.js +51 -25
  756. package/lib/components/Number/NumberInput.js.map +1 -1
  757. package/lib/components/Number/NumberInput.styles.d.ts +8 -5
  758. package/lib/components/Number/NumberInput.styles.d.ts.map +1 -1
  759. package/lib/components/Number/NumberInput.styles.js +8 -3
  760. package/lib/components/Number/NumberInput.styles.js.map +1 -1
  761. package/lib/components/Number/NumberInput.types.d.ts +56 -21
  762. package/lib/components/Number/NumberInput.types.d.ts.map +1 -1
  763. package/lib/components/Number/NumberInput.types.js.map +1 -1
  764. package/lib/components/Number/NumberRangeInput.d.ts +6 -0
  765. package/lib/components/Number/NumberRangeInput.d.ts.map +1 -0
  766. package/lib/components/Number/NumberRangeInput.js +30 -0
  767. package/lib/components/Number/NumberRangeInput.js.map +1 -0
  768. package/lib/components/Number/index.d.ts +3 -2
  769. package/lib/components/Number/index.d.ts.map +1 -1
  770. package/lib/components/Number/index.js +1 -0
  771. package/lib/components/Number/index.js.map +1 -1
  772. package/lib/components/Number/utils.d.ts +3 -4
  773. package/lib/components/Number/utils.d.ts.map +1 -1
  774. package/lib/components/Number/utils.js +41 -22
  775. package/lib/components/Number/utils.js.map +1 -1
  776. package/lib/components/PageTemplates/CategorySubPage.d.ts +3 -3
  777. package/lib/components/PageTemplates/CategorySubPage.d.ts.map +1 -1
  778. package/lib/components/PageTemplates/CategorySubPage.js.map +1 -1
  779. package/lib/components/PageTemplates/DashboardPage.d.ts.map +1 -1
  780. package/lib/components/PageTemplates/DashboardPage.js +1 -4
  781. package/lib/components/PageTemplates/DashboardPage.js.map +1 -1
  782. package/lib/components/PageTemplates/PageTemplates.d.ts +1 -2
  783. package/lib/components/PageTemplates/PageTemplates.d.ts.map +1 -1
  784. package/lib/components/PageTemplates/PageTemplates.js.map +1 -1
  785. package/lib/components/Phone/PhoneDisplay.d.ts +8 -0
  786. package/lib/components/Phone/PhoneDisplay.d.ts.map +1 -1
  787. package/lib/components/Phone/PhoneDisplay.js +2 -2
  788. package/lib/components/Phone/PhoneDisplay.js.map +1 -1
  789. package/lib/components/Phone/PhoneInput.d.ts.map +1 -1
  790. package/lib/components/Phone/PhoneInput.js +19 -9
  791. package/lib/components/Phone/PhoneInput.js.map +1 -1
  792. package/lib/components/Phone/utils.d.ts +4 -1
  793. package/lib/components/Phone/utils.d.ts.map +1 -1
  794. package/lib/components/Phone/utils.js +4 -2
  795. package/lib/components/Phone/utils.js.map +1 -1
  796. package/lib/components/Popover/Popover.d.ts +4 -1
  797. package/lib/components/Popover/Popover.d.ts.map +1 -1
  798. package/lib/components/Popover/Popover.js +26 -12
  799. package/lib/components/Popover/Popover.js.map +1 -1
  800. package/lib/components/Popover/Popover.styles.d.ts +1 -0
  801. package/lib/components/Popover/Popover.styles.d.ts.map +1 -1
  802. package/lib/components/Popover/Popover.styles.js +19 -58
  803. package/lib/components/Popover/Popover.styles.js.map +1 -1
  804. package/lib/components/Popover/PopoverContext.d.ts +1 -0
  805. package/lib/components/Popover/PopoverContext.d.ts.map +1 -1
  806. package/lib/components/Popover/PopoverContext.js +2 -1
  807. package/lib/components/Popover/PopoverContext.js.map +1 -1
  808. package/lib/components/Popover/PopoverManager.d.ts.map +1 -1
  809. package/lib/components/Popover/PopoverManager.js +2 -1
  810. package/lib/components/Popover/PopoverManager.js.map +1 -1
  811. package/lib/components/Popover/modifiers.d.ts +2 -0
  812. package/lib/components/Popover/modifiers.d.ts.map +1 -1
  813. package/lib/components/Popover/modifiers.js +32 -1
  814. package/lib/components/Popover/modifiers.js.map +1 -1
  815. package/lib/components/Progress/Ring.js +2 -2
  816. package/lib/components/Progress/Ring.js.map +1 -1
  817. package/lib/components/RadioButton/RadioButton.d.ts +3 -1
  818. package/lib/components/RadioButton/RadioButton.d.ts.map +1 -1
  819. package/lib/components/RadioButton/RadioButton.js.map +1 -1
  820. package/lib/components/RadioCheck/RadioCheck.d.ts +2 -0
  821. package/lib/components/RadioCheck/RadioCheck.d.ts.map +1 -1
  822. package/lib/components/RadioCheck/RadioCheck.js +7 -5
  823. package/lib/components/RadioCheck/RadioCheck.js.map +1 -1
  824. package/lib/components/RadioCheckGroup/RadioCheckGroup.d.ts +3 -0
  825. package/lib/components/RadioCheckGroup/RadioCheckGroup.d.ts.map +1 -1
  826. package/lib/components/RadioCheckGroup/RadioCheckGroup.js +2 -2
  827. package/lib/components/RadioCheckGroup/RadioCheckGroup.js.map +1 -1
  828. package/lib/components/RadioCheckGroup/index.d.ts +1 -1
  829. package/lib/components/RadioCheckGroup/index.d.ts.map +1 -1
  830. package/lib/components/RadioCheckGroup/index.js +1 -1
  831. package/lib/components/RadioCheckGroup/index.js.map +1 -1
  832. package/lib/components/SearchInput/SearchInput.d.ts +24 -8
  833. package/lib/components/SearchInput/SearchInput.d.ts.map +1 -1
  834. package/lib/components/SearchInput/SearchInput.js +127 -94
  835. package/lib/components/SearchInput/SearchInput.js.map +1 -1
  836. package/lib/components/SearchInput/SearchInput.styles.d.ts +16 -0
  837. package/lib/components/SearchInput/SearchInput.styles.d.ts.map +1 -0
  838. package/lib/components/SearchInput/SearchInput.styles.js +133 -0
  839. package/lib/components/SearchInput/SearchInput.styles.js.map +1 -0
  840. package/lib/components/SearchInput/index.d.ts +1 -1
  841. package/lib/components/SearchInput/index.d.ts.map +1 -1
  842. package/lib/components/SearchInput/index.js +1 -1
  843. package/lib/components/SearchInput/index.js.map +1 -1
  844. package/lib/components/Select/Select.d.ts +5 -0
  845. package/lib/components/Select/Select.d.ts.map +1 -1
  846. package/lib/components/Select/Select.js +18 -8
  847. package/lib/components/Select/Select.js.map +1 -1
  848. package/lib/components/Sentiment/Sentiment.d.ts.map +1 -1
  849. package/lib/components/Sentiment/Sentiment.js +1 -1
  850. package/lib/components/Sentiment/Sentiment.js.map +1 -1
  851. package/lib/components/Skeleton/ParagraphSkeleton.d.ts.map +1 -1
  852. package/lib/components/Skeleton/ParagraphSkeleton.js +2 -2
  853. package/lib/components/Skeleton/ParagraphSkeleton.js.map +1 -1
  854. package/lib/components/SkipLinks/SkipLinks.d.ts +15 -0
  855. package/lib/components/SkipLinks/SkipLinks.d.ts.map +1 -0
  856. package/lib/components/SkipLinks/SkipLinks.js +67 -0
  857. package/lib/components/SkipLinks/SkipLinks.js.map +1 -0
  858. package/lib/components/SkipLinks/index.d.ts +4 -0
  859. package/lib/components/SkipLinks/index.d.ts.map +1 -0
  860. package/lib/components/SkipLinks/index.js +3 -0
  861. package/lib/components/SkipLinks/index.js.map +1 -0
  862. package/lib/components/Slider/Slider.styles.d.ts +1 -1
  863. package/lib/components/SummaryItem/SummaryItem.d.ts +2 -2
  864. package/lib/components/SummaryList/ViewAll.d.ts.map +1 -1
  865. package/lib/components/SummaryList/ViewAll.js +6 -2
  866. package/lib/components/SummaryList/ViewAll.js.map +1 -1
  867. package/lib/components/Tabs/Tab.d.ts.map +1 -1
  868. package/lib/components/Tabs/Tab.js +11 -4
  869. package/lib/components/Tabs/Tab.js.map +1 -1
  870. package/lib/components/Tabs/TabPanel.d.ts.map +1 -1
  871. package/lib/components/Tabs/TabPanel.js +1 -7
  872. package/lib/components/Tabs/TabPanel.js.map +1 -1
  873. package/lib/components/Tabs/Tabs.d.ts.map +1 -1
  874. package/lib/components/Tabs/Tabs.js +1 -1
  875. package/lib/components/Tabs/Tabs.js.map +1 -1
  876. package/lib/components/Text/Text.js +2 -2
  877. package/lib/components/Text/Text.js.map +1 -1
  878. package/lib/components/TextArea/TextArea.d.ts.map +1 -1
  879. package/lib/components/TextArea/TextArea.js +8 -3
  880. package/lib/components/TextArea/TextArea.js.map +1 -1
  881. package/lib/components/Toaster/Context.d.ts +7 -0
  882. package/lib/components/Toaster/Context.d.ts.map +1 -0
  883. package/lib/components/Toaster/Context.js +6 -0
  884. package/lib/components/Toaster/Context.js.map +1 -0
  885. package/lib/components/Toaster/Toaster.d.ts +8 -40
  886. package/lib/components/Toaster/Toaster.d.ts.map +1 -1
  887. package/lib/components/Toaster/Toaster.js +12 -12
  888. package/lib/components/Toaster/Toaster.js.map +1 -1
  889. package/lib/components/Toaster/Toaster.types.d.ts +31 -0
  890. package/lib/components/Toaster/Toaster.types.d.ts.map +1 -0
  891. package/lib/components/Toaster/Toaster.types.js +2 -0
  892. package/lib/components/Toaster/Toaster.types.js.map +1 -0
  893. package/lib/components/Toaster/index.d.ts +1 -2
  894. package/lib/components/Toaster/index.d.ts.map +1 -1
  895. package/lib/components/Toaster/index.js +0 -1
  896. package/lib/components/Toaster/index.js.map +1 -1
  897. package/lib/components/Tooltip/Tooltip.d.ts +6 -1
  898. package/lib/components/Tooltip/Tooltip.d.ts.map +1 -1
  899. package/lib/components/Tooltip/Tooltip.js +24 -5
  900. package/lib/components/Tooltip/Tooltip.js.map +1 -1
  901. package/lib/components/Tree/StandardTree.d.ts.map +1 -1
  902. package/lib/components/Tree/StandardTree.js +27 -13
  903. package/lib/components/Tree/StandardTree.js.map +1 -1
  904. package/lib/components/Tree/StandardTree.styles.js +3 -3
  905. package/lib/components/Tree/StandardTree.styles.js.map +1 -1
  906. package/lib/components/Tree/StandardTree.types.d.ts +1 -0
  907. package/lib/components/Tree/StandardTree.types.d.ts.map +1 -1
  908. package/lib/components/Tree/StandardTree.types.js.map +1 -1
  909. package/lib/hooks/index.d.ts +3 -0
  910. package/lib/hooks/index.d.ts.map +1 -1
  911. package/lib/hooks/index.js +3 -0
  912. package/lib/hooks/index.js.map +1 -1
  913. package/lib/hooks/useActiveDescendant.d.ts +5 -1
  914. package/lib/hooks/useActiveDescendant.d.ts.map +1 -1
  915. package/lib/hooks/useActiveDescendant.js +179 -100
  916. package/lib/hooks/useActiveDescendant.js.map +1 -1
  917. package/lib/hooks/useAutoResize.d.ts +1 -1
  918. package/lib/hooks/useAutoResize.d.ts.map +1 -1
  919. package/lib/hooks/useAutoResize.js +14 -6
  920. package/lib/hooks/useAutoResize.js.map +1 -1
  921. package/lib/hooks/useBreakpoint.d.ts +3 -2
  922. package/lib/hooks/useBreakpoint.d.ts.map +1 -1
  923. package/lib/hooks/useBreakpoint.js +12 -15
  924. package/lib/hooks/useBreakpoint.js.map +1 -1
  925. package/lib/hooks/useConfiguration.d.ts +1 -0
  926. package/lib/hooks/useConfiguration.d.ts.map +1 -1
  927. package/lib/hooks/useConfiguration.js +9 -2
  928. package/lib/hooks/useConfiguration.js.map +1 -1
  929. package/lib/hooks/useDraggable.d.ts +1 -1
  930. package/lib/hooks/useDraggable.d.ts.map +1 -1
  931. package/lib/hooks/useDraggable.js +35 -8
  932. package/lib/hooks/useDraggable.js.map +1 -1
  933. package/lib/hooks/useFocusTrap.d.ts.map +1 -1
  934. package/lib/hooks/useFocusTrap.js +4 -5
  935. package/lib/hooks/useFocusTrap.js.map +1 -1
  936. package/lib/hooks/useFocusWithin.d.ts.map +1 -1
  937. package/lib/hooks/useFocusWithin.js +0 -8
  938. package/lib/hooks/useFocusWithin.js.map +1 -1
  939. package/lib/hooks/useI18n.d.ts +148 -38
  940. package/lib/hooks/useI18n.d.ts.map +1 -1
  941. package/lib/hooks/useI18n.js +2 -1
  942. package/lib/hooks/useI18n.js.map +1 -1
  943. package/lib/hooks/useInputFormatter.d.ts.map +1 -1
  944. package/lib/hooks/useInputFormatter.js +5 -0
  945. package/lib/hooks/useInputFormatter.js.map +1 -1
  946. package/lib/hooks/useLongPress.d.ts +1 -1
  947. package/lib/hooks/useLongPress.d.ts.map +1 -1
  948. package/lib/hooks/useModalContext.d.ts +7 -0
  949. package/lib/hooks/useModalContext.d.ts.map +1 -0
  950. package/lib/hooks/useModalContext.js +12 -0
  951. package/lib/hooks/useModalContext.js.map +1 -0
  952. package/lib/hooks/useModalManager.d.ts +8 -0
  953. package/lib/hooks/useModalManager.d.ts.map +1 -0
  954. package/lib/hooks/useModalManager.js +16 -0
  955. package/lib/hooks/useModalManager.js.map +1 -0
  956. package/lib/hooks/useOS.d.ts.map +1 -1
  957. package/lib/hooks/useOS.js +1 -2
  958. package/lib/hooks/useOS.js.map +1 -1
  959. package/lib/hooks/useScrollStick.d.ts +1 -1
  960. package/lib/hooks/useScrollStick.d.ts.map +1 -1
  961. package/lib/hooks/useToaster.d.ts +8 -0
  962. package/lib/hooks/useToaster.d.ts.map +1 -0
  963. package/lib/hooks/useToaster.js +16 -0
  964. package/lib/hooks/useToaster.js.map +1 -0
  965. package/lib/hooks/useTransitionState.js +1 -1
  966. package/lib/hooks/useTransitionState.js.map +1 -1
  967. package/lib/i18n/default.d.ts +148 -38
  968. package/lib/i18n/default.d.ts.map +1 -1
  969. package/lib/i18n/default.js +175 -53
  970. package/lib/i18n/default.js.map +1 -1
  971. package/lib/i18n/i18n.d.ts +144 -702
  972. package/lib/i18n/i18n.d.ts.map +1 -1
  973. package/lib/i18n/translate.d.ts +4 -2
  974. package/lib/i18n/translate.d.ts.map +1 -1
  975. package/lib/i18n/translate.js.map +1 -1
  976. package/lib/index.d.ts +9 -2
  977. package/lib/index.d.ts.map +1 -1
  978. package/lib/index.js +9 -2
  979. package/lib/index.js.map +1 -1
  980. package/lib/init.d.ts +8 -0
  981. package/lib/init.d.ts.map +1 -0
  982. package/lib/init.js +5 -0
  983. package/lib/init.js.map +1 -0
  984. package/lib/register-contexts.d.ts +2 -0
  985. package/lib/register-contexts.d.ts.map +1 -0
  986. package/lib/register-contexts.js +10 -0
  987. package/lib/register-contexts.js.map +1 -0
  988. package/lib/styles/GlobalStyle.d.ts.map +1 -1
  989. package/lib/styles/GlobalStyle.js +12 -2
  990. package/lib/styles/GlobalStyle.js.map +1 -1
  991. package/lib/styles/utils.d.ts +1 -1
  992. package/lib/styles/utils.d.ts.map +1 -1
  993. package/lib/styles/utils.js.map +1 -1
  994. package/lib/theme/ThemeMachine.d.ts +11 -3
  995. package/lib/theme/ThemeMachine.d.ts.map +1 -1
  996. package/lib/theme/ThemeMachine.js +28 -26
  997. package/lib/theme/ThemeMachine.js.map +1 -1
  998. package/lib/theme/index.d.ts +1 -0
  999. package/lib/theme/index.d.ts.map +1 -1
  1000. package/lib/theme/index.js +1 -0
  1001. package/lib/theme/index.js.map +1 -1
  1002. package/lib/theme/theme.d.ts +56 -2
  1003. package/lib/theme/theme.d.ts.map +1 -1
  1004. package/lib/theme/themeDefinition.json +37 -5
  1005. package/lib/theme/themeOverrides.schema.json +9 -0
  1006. package/lib/theme/themes/buildTheme.json +0 -3
  1007. package/lib/theme/themes/darkTheme.json +3 -1
  1008. package/lib/theme/themes/legacyBuildTheme.json +0 -3
  1009. package/lib/theme/themes/wssTheme.json +6 -0
  1010. package/lib/types/types.d.ts +3 -0
  1011. package/lib/types/types.d.ts.map +1 -1
  1012. package/lib/types/types.js.map +1 -1
  1013. package/lib/utils/utils.d.ts +11 -0
  1014. package/lib/utils/utils.d.ts.map +1 -1
  1015. package/lib/utils/utils.js +39 -0
  1016. package/lib/utils/utils.js.map +1 -1
  1017. package/package.json +13 -10
  1018. package/lib/components/AppShell/SkipNavigation.d.ts +0 -4
  1019. package/lib/components/AppShell/SkipNavigation.d.ts.map +0 -1
  1020. package/lib/components/AppShell/SkipNavigation.js +0 -61
  1021. package/lib/components/AppShell/SkipNavigation.js.map +0 -1
  1022. package/lib/components/Currency/currencyCodes.d.ts +0 -3
  1023. package/lib/components/Currency/currencyCodes.d.ts.map +0 -1
  1024. package/lib/components/Currency/currencyCodes.js +0 -182
  1025. package/lib/components/Currency/currencyCodes.js.map +0 -1
  1026. package/lib/components/DateTime/types.d.ts +0 -9
  1027. package/lib/components/DateTime/types.d.ts.map +0 -1
  1028. package/lib/components/DateTime/types.js +0 -2
  1029. package/lib/components/DateTime/types.js.map +0 -1
  1030. package/lib/components/Icon/icons/script-solid.icon.d.ts.map +0 -1
  1031. package/lib/components/Icon/icons/script-solid.icon.js +0 -6
  1032. package/lib/components/Icon/icons/script-solid.icon.js.map +0 -1
  1033. package/lib/components/MultiStep/MultiStep.d.ts +0 -6
  1034. package/lib/components/MultiStep/MultiStep.d.ts.map +0 -1
  1035. package/lib/components/MultiStep/MultiStep.js.map +0 -1
  1036. package/lib/components/MultiStep/MultiStep.styles.d.ts.map +0 -1
  1037. package/lib/components/MultiStep/MultiStep.styles.js.map +0 -1
  1038. package/lib/components/MultiStep/MultiStep.types.d.ts +0 -36
  1039. package/lib/components/MultiStep/MultiStep.types.d.ts.map +0 -1
  1040. package/lib/components/MultiStep/MultiStep.types.js +0 -2
  1041. package/lib/components/MultiStep/MultiStep.types.js.map +0 -1
  1042. package/lib/components/MultiStep/index.d.ts +0 -3
  1043. package/lib/components/MultiStep/index.d.ts.map +0 -1
  1044. package/lib/components/MultiStep/index.js +0 -2
  1045. package/lib/components/MultiStep/index.js.map +0 -1
@@ -2,18 +2,19 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { forwardRef, useContext, useRef, useEffect, useMemo, useState } from 'react';
3
3
  import { createPortal } from 'react-dom';
4
4
  import { usePopper } from 'react-popper';
5
- import { useConfiguration, useConsolidatedRef, useElement, useUID } from '../../hooks';
5
+ import { useAfterInitialEffect, useConfiguration, useConsolidatedRef, useElement, useUID } from '../../hooks';
6
6
  import { windowIsAvailable } from '../../utils';
7
7
  import { PopoverManagerContext } from './PopoverContext';
8
- import { StyledPopover, StyledPopoverArrow } from './Popover.styles';
8
+ import { StyledPopover, StyledPopoverContent, StyledPopoverArrow } from './Popover.styles';
9
+ import { applyMaxSize, maxSize } from './modifiers';
9
10
  const delays = {
10
11
  none: 0,
11
12
  short: 500,
12
13
  long: 1000
13
14
  };
14
- const Popover = forwardRef(({ show = true, portal = false, target, placement, strategy = 'fixed', style, modifiers = [], arrow = false, groupId, showDelay = 'none', hideDelay = 'none', hideOnTargetHidden = false, children, ...restProps }, ref) => {
15
- const { portalTarget } = useConfiguration();
16
- const { checkActive, setActive } = useContext(PopoverManagerContext);
15
+ const Popover = forwardRef(({ show = true, portal = false, target, placement, strategy = 'fixed', style, modifiers = [], arrow = false, groupId, showDelay = 'none', hideDelay = 'none', hideOnTargetHidden = false, children, onHide, ...restProps }, ref) => {
16
+ const { portalTarget: configurationPortal } = useConfiguration();
17
+ const { checkActive, setActive, popovers } = useContext(PopoverManagerContext);
17
18
  const [, setPopperEl] = useElement();
18
19
  const popperRef = useConsolidatedRef(ref, setPopperEl);
19
20
  const arrowRef = useRef(null);
@@ -21,7 +22,14 @@ const Popover = forwardRef(({ show = true, portal = false, target, placement, st
21
22
  const [showPopover, setShowPopover] = useState(show);
22
23
  const timeout = useRef();
23
24
  const uid = useUID();
25
+ const portalTarget = typeof portal === 'boolean' ? configurationPortal : portal;
24
26
  const memoedModifiers = useMemo(() => [
27
+ {
28
+ name: 'computeStyles',
29
+ options: {
30
+ gpuAcceleration: false
31
+ }
32
+ },
25
33
  {
26
34
  name: 'offset',
27
35
  options: {
@@ -36,12 +44,8 @@ const Popover = forwardRef(({ show = true, portal = false, target, placement, st
36
44
  tether: !modifiers.find(m => m.name === 'sameWidth')
37
45
  }
38
46
  },
39
- {
40
- name: 'computeStyles',
41
- options: {
42
- gpuAcceleration: false
43
- }
44
- },
47
+ maxSize,
48
+ applyMaxSize,
45
49
  ...modifiers
46
50
  ], [modifiers, arrow, hideOnTargetHidden]);
47
51
  const offset = useMemo(() => {
@@ -88,7 +92,17 @@ const Popover = forwardRef(({ show = true, portal = false, target, placement, st
88
92
  useEffect(() => {
89
93
  return () => clearTimeout(timeout.current);
90
94
  }, []);
91
- const content = (_jsxs(StyledPopover, { ...restProps, offset: offset, ref: popperRef, style: { ...style, ...styles.popper }, ...attributes.popper, children: [arrow && _jsx(StyledPopoverArrow, { ref: arrowRef, style: { ...styles.arrow } }), children] }));
95
+ useAfterInitialEffect(() => {
96
+ if (!showPopover) {
97
+ onHide?.();
98
+ }
99
+ }, [showPopover]);
100
+ useEffect(() => {
101
+ if (groupId && popovers[groupId] && popovers[groupId] !== uid) {
102
+ setShowPopover(false);
103
+ }
104
+ }, [groupId ? popovers[groupId] : undefined]);
105
+ const content = (_jsxs(StyledPopover, { ...restProps, offset: offset, ref: popperRef, style: { ...style, ...styles.popper }, ...attributes.popper, children: [arrow && _jsx(StyledPopoverArrow, { ref: arrowRef, style: { ...styles.arrow } }), _jsx(StyledPopoverContent, { children: children })] }));
92
106
  if (!target || !showPopover || (groupId && !checkActive(uid, groupId)))
93
107
  return null;
94
108
  return portal && portalTarget ? createPortal(content, portalTarget) : content;
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.js","sourceRoot":"","sources":["../../../src/components/Popover/Popover.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,UAAU,EACV,UAAU,EAKV,MAAM,EAEN,SAAS,EACT,OAAO,EACP,QAAQ,EACT,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,SAAS,EAAe,MAAM,cAAc,CAAC;AAKtD,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACvF,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AA0DrE,MAAM,MAAM,GAAG;IACb,IAAI,EAAE,CAAC;IACP,KAAK,EAAE,GAAG;IACV,IAAI,EAAE,IAAI;CACX,CAAC;AAEF,MAAM,OAAO,GAEc,UAAU,CACnC,CACE,EACE,IAAI,GAAG,IAAI,EACX,MAAM,GAAG,KAAK,EACd,MAAM,EACN,SAAS,EACT,QAAQ,GAAG,OAAO,EAClB,KAAK,EACL,SAAS,GAAG,EAAE,EACd,KAAK,GAAG,KAAK,EACb,OAAO,EACP,SAAS,GAAG,MAAM,EAClB,SAAS,GAAG,MAAM,EAClB,kBAAkB,GAAG,KAAK,EAC1B,QAAQ,EACR,GAAG,SAAS,EAC8C,EAC5D,GAAwB,EACxB,EAAE;IACF,MAAM,EAAE,YAAY,EAAE,GAAG,gBAAgB,EAAE,CAAC;IAC5C,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,UAAU,CAAC,qBAAqB,CAAC,CAAC;IACrE,MAAM,CAAC,EAAE,WAAW,CAAC,GAAG,UAAU,EAAkB,CAAC;IACr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nD,OAAO,CAAC,OAAO,GAAG,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE;gBACvC,cAAc,CAAC,IAAI,CAAC,CAAC;YACvB,CAAC,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;SAC1C;aAAM;YACL,cAAc,CAAC,IAAI,CAAC,CAAC;SACtB;IACH,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;IAEX,SAAS,CAAC,GAAG,EAAE;QACb,OAAO,GAAG,EAAE,CAAC,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAC7C,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,OAAO,GAAG,CACd,MAAC,aAAa,OACR,SAAS,EACb,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,SAAS,EACd,KAAK,EAAE,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,KACjC,UAAU,CAAC,MAAM,aAEpB,KAAK,IAAI,KAAC,kBAAkB,IAAC,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,GAAG,MAAM,CAAC,KAAK,EAAE,GAAI,EAC1E,QAAQ,IACK,CACjB,CAAC;IAEF,IAAI,CAAC,MAAM,IAAI,CAAC,WAAW,IAAI,CAAC,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;QAAE,OAAO,IAAI,CAAC;IAEpF,OAAO,MAAM,IAAI,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;AAChF,CAAC,CACF,CAAC;AAEF,eAAe,OAAO,CAAC","sourcesContent":["import {\n forwardRef,\n useContext,\n PropsWithoutRef,\n Ref,\n CSSProperties,\n ReactElement,\n useRef,\n ReactNode,\n useEffect,\n useMemo,\n useState\n} from 'react';\nimport { createPortal } from 'react-dom';\nimport { usePopper, PopperProps } from 'react-popper';\nimport { VirtualElement } from '@popperjs/core';\nimport { OffsetModifier } from '@popperjs/core/lib/modifiers/offset';\n\nimport { BaseProps, ForwardProps } from '../../types';\nimport { useConfiguration, useConsolidatedRef, useElement, useUID } from '../../hooks';\nimport { windowIsAvailable } from '../../utils';\n\nimport { PopoverManagerContext } from './PopoverContext';\nimport { StyledPopover, StyledPopoverArrow } from './Popover.styles';\n\nexport type Delay = 'none' | 'short' | 'long';\nexport interface PopoverProps<Modifiers extends string = string> extends BaseProps {\n /** The DOM element or [virtual element](https://popper.js.org/docs/v2/virtual-elements) that the Popover is positioned in reference to. */\n target: Element | VirtualElement | null;\n /**\n * If true, the Popover will be visible.\n * @default true\n */\n show?: boolean;\n /**\n * If true, the Popover will render outside of the current DOM hierarchy in a [portal](https://reactjs.org/docs/portals.html).\n * @default false\n */\n portal?: boolean;\n /**\n * Delay on showing the Popover.\n * @default \"none\"\n */\n showDelay?: Delay;\n /**\n * Delay on hiding the Popover.\n * @default \"none\"\n */\n hideDelay?: Delay;\n /**\n * [React Popper Placement](https://popper.js.org/react-popper/v2/render-props/#placement)\n */\n placement?: PopperProps<Modifiers>['placement'];\n /**\n * [React Popper Strategy](https://popper.js.org/react-popper/v2/render-props/#strategy)\n * @default \"absolute\"\n */\n strategy?: PopperProps<Modifiers>['strategy'];\n /**\n * [React Popper Modifiers](https://popper.js.org/react-popper/v2/render-props/#modifiers)\n * @default []\n */\n modifiers?: PopperProps<Modifiers>['modifiers'];\n /**\n * If true, an arrow will visually identify from which element the Popover is rendered.\n * @default false\n */\n arrow?: boolean;\n /** The group that the Popover belongs to. Popovers in the same group will be closed when others open. */\n groupId?: string;\n /**\n * If true, the Popover will be visibly hidden when its target leaves the viewport.\n * @default false\n */\n hideOnTargetHidden?: boolean;\n /** The content of the Popover. */\n children: ReactNode;\n /** The ref of the wrapping element. */\n ref?: Ref<HTMLDivElement>;\n}\n\nconst delays = {\n none: 0,\n short: 500,\n long: 1000\n};\n\nconst Popover: <Modifiers extends string = string>(\n props: PopoverProps<Modifiers> & ForwardProps\n) => ReactElement | null = forwardRef(\n (\n {\n show = true,\n portal = false,\n target,\n placement,\n strategy = 'fixed',\n style,\n modifiers = [],\n arrow = false,\n groupId,\n showDelay = 'none',\n hideDelay = 'none',\n hideOnTargetHidden = false,\n children,\n ...restProps\n }: PropsWithoutRef<PopoverProps> & { style?: CSSProperties },\n ref: PopoverProps['ref']\n ) => {\n const { portalTarget } = useConfiguration();\n const { checkActive, setActive } = useContext(PopoverManagerContext);\n const [, setPopperEl] = useElement<HTMLDivElement>();\n const popperRef = useConsolidatedRef<HTMLDivElement>(ref, setPopperEl);\n const arrowRef = useRef<HTMLDivElement>(null);\n const forceUpdateRef = useRef<() => void>();\n const [showPopover, setShowPopover] = useState(show);\n const timeout = useRef<number>();\n const uid = useUID();\n\n const memoedModifiers = useMemo(\n () => [\n {\n name: 'offset',\n options: {\n offset: [0, arrow ? 5.5 : 2]\n }\n },\n { name: 'hide', enabled: hideOnTargetHidden },\n { name: 'arrow', enabled: arrow, options: { element: arrowRef.current } },\n {\n name: 'preventOverflow',\n options: {\n tether: !modifiers.find(m => m.name === 'sameWidth')\n }\n },\n {\n name: 'computeStyles',\n options: {\n gpuAcceleration: false\n }\n },\n ...modifiers\n ],\n [modifiers, arrow, hideOnTargetHidden]\n );\n\n const offset = useMemo(() => {\n const offsetModifier = [...memoedModifiers]\n .reverse()\n .find(m => m.name === 'offset' && m.enabled !== false) as OffsetModifier | undefined;\n return Array.isArray(offsetModifier?.options?.offset)\n ? offsetModifier?.options?.offset[1] ?? 0\n : 0;\n }, [memoedModifiers]);\n\n const { styles, attributes, forceUpdate } = usePopper(target, popperRef.current, {\n placement,\n strategy,\n modifiers: memoedModifiers\n });\n\n if (forceUpdate) forceUpdateRef.current = forceUpdate;\n\n useEffect(() => {\n const observer = new ResizeObserver(() => {\n forceUpdateRef.current?.();\n });\n\n if (popperRef.current) observer.observe(popperRef.current);\n if (target instanceof Element) observer.observe(target);\n\n return () => {\n observer.disconnect();\n };\n }, [forceUpdate, popperRef.current, target]);\n\n useEffect(() => {\n if (groupId && show) setActive(uid, groupId);\n\n if (windowIsAvailable) {\n if (timeout.current) clearTimeout(timeout.current);\n timeout.current = window.setTimeout(() => {\n setShowPopover(show);\n }, delays[show ? showDelay : hideDelay]);\n } else {\n setShowPopover(show);\n }\n }, [show]);\n\n useEffect(() => {\n return () => clearTimeout(timeout.current);\n }, []);\n\n const content = (\n <StyledPopover\n {...restProps}\n offset={offset}\n ref={popperRef}\n style={{ ...style, ...styles.popper }}\n {...attributes.popper}\n >\n {arrow && <StyledPopoverArrow ref={arrowRef} style={{ ...styles.arrow }} />}\n {children}\n </StyledPopover>\n );\n\n if (!target || !showPopover || (groupId && !checkActive(uid, groupId))) return null;\n\n return portal && portalTarget ? createPortal(content, portalTarget) : content;\n }\n);\n\nexport default Popover;\n"]}
1
+ {"version":3,"file":"Popover.js","sourceRoot":"","sources":["../../../src/components/Popover/Popover.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,UAAU,EACV,UAAU,EAKV,MAAM,EAEN,SAAS,EACT,OAAO,EACP,QAAQ,EACT,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,SAAS,EAAe,MAAM,cAAc,CAAC;AAKtD,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EAChB,kBAAkB,EAClB,UAAU,EACV,MAAM,EACP,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAGhD,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3F,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AA4DpD,MAAM,MAAM,GAAG;IACb,IAAI,EAAE,CAAC;I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,EAAE;QACzB,IAAI,CAAC,WAAW,EAAE;YAChB,MAAM,EAAE,EAAE,CAAC;SACZ;IACH,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;IAElB,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,OAAO,IAAI,QAAQ,CAAC,OAAO,CAAC,IAAI,QAAQ,CAAC,OAAO,CAAC,KAAK,GAAG,EAAE;YAC7D,cAAc,CAAC,KAAK,CAAC,CAAC;SACvB;IACH,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;IAE9C,MAAM,OAAO,GAAG,CACd,MAAC,aAAa,OACR,SAAS,EACb,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,SAAS,EACd,KAAK,EAAE,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,KACjC,UAAU,CAAC,MAAM,aAEpB,KAAK,IAAI,KAAC,kBAAkB,IAAC,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,GAAG,MAAM,CAAC,KAAK,EAAE,GAAI,EAC3E,KAAC,oBAAoB,cAAE,QAAQ,GAAwB,IACzC,CACjB,CAAC;IAEF,IAAI,CAAC,MAAM,IAAI,CAAC,WAAW,IAAI,CAAC,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;QAAE,OAAO,IAAI,CAAC;IAEpF,OAAO,MAAM,IAAI,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;AAChF,CAAC,CACF,CAAC;AAEF,eAAe,OAAO,CAAC","sourcesContent":["import {\n forwardRef,\n useContext,\n PropsWithoutRef,\n Ref,\n CSSProperties,\n ReactElement,\n useRef,\n ReactNode,\n useEffect,\n useMemo,\n useState\n} from 'react';\nimport { createPortal } from 'react-dom';\nimport { usePopper, PopperProps } from 'react-popper';\nimport { VirtualElement } from '@popperjs/core';\nimport { OffsetModifier } from '@popperjs/core/lib/modifiers/offset';\n\nimport { BaseProps, ForwardProps } from '../../types';\nimport {\n useAfterInitialEffect,\n useConfiguration,\n useConsolidatedRef,\n useElement,\n useUID\n} from '../../hooks';\nimport { windowIsAvailable } from '../../utils';\nimport { ConfigurationProps } from '../Configuration';\n\nimport { PopoverManagerContext } from './PopoverContext';\nimport { StyledPopover, StyledPopoverContent, StyledPopoverArrow } from './Popover.styles';\nimport { applyMaxSize, maxSize } from './modifiers';\n\nexport type Delay = 'none' | 'short' | 'long';\nexport interface PopoverProps<Modifiers extends string = string> extends BaseProps {\n /** The DOM element or [virtual element](https://popper.js.org/docs/v2/virtual-elements) that the Popover is positioned in reference to. */\n target: Element | VirtualElement | null;\n /**\n * If true, the Popover will be visible.\n * @default true\n */\n show?: boolean;\n /**\n * If true, the Popover will render outside of the current DOM hierarchy in a [portal](https://reactjs.org/docs/portals.html).\n * @default false\n */\n portal?: boolean | ConfigurationProps['portalTarget'];\n /**\n * Delay on showing the Popover.\n * @default \"none\"\n */\n showDelay?: Delay;\n /**\n * Delay on hiding the Popover.\n * @default \"none\"\n */\n hideDelay?: Delay;\n /**\n * [React Popper Placement](https://popper.js.org/react-popper/v2/render-props/#placement)\n */\n placement?: PopperProps<Modifiers>['placement'];\n /**\n * [React Popper Strategy](https://popper.js.org/react-popper/v2/render-props/#strategy)\n * @default \"absolute\"\n */\n strategy?: PopperProps<Modifiers>['strategy'];\n /**\n * [React Popper Modifiers](https://popper.js.org/react-popper/v2/render-props/#modifiers)\n * @default []\n */\n modifiers?: PopperProps<Modifiers>['modifiers'];\n /**\n * If true, an arrow will visually identify from which element the Popover is rendered.\n * @default false\n */\n arrow?: boolean;\n /** The group that the Popover belongs to. Popovers in the same group will be closed when others open. */\n groupId?: string;\n /**\n * If true, the Popover will be visibly hidden when its target leaves the viewport.\n * @default false\n */\n hideOnTargetHidden?: boolean;\n /** Callback that runs when the popover is hidden */\n onHide?: () => void;\n /** The content of the Popover. */\n children: ReactNode;\n /** The ref of the wrapping element. */\n ref?: Ref<HTMLDivElement>;\n}\n\nconst delays = {\n none: 0,\n short: 500,\n long: 1000\n};\n\nconst Popover: <Modifiers extends string = string>(\n props: PopoverProps<Modifiers> & ForwardProps\n) => ReactElement | null = forwardRef(\n (\n {\n show = true,\n portal = false,\n target,\n placement,\n strategy = 'fixed',\n style,\n modifiers = [],\n arrow = false,\n groupId,\n showDelay = 'none',\n hideDelay = 'none',\n hideOnTargetHidden = false,\n children,\n onHide,\n ...restProps\n }: PropsWithoutRef<PopoverProps> & { style?: CSSProperties },\n ref: PopoverProps['ref']\n ) => {\n const { portalTarget: configurationPortal } = useConfiguration();\n const { checkActive, setActive, popovers } = useContext(PopoverManagerContext);\n const [, setPopperEl] = useElement<HTMLDivElement>();\n const popperRef = useConsolidatedRef<HTMLDivElement>(ref, setPopperEl);\n const arrowRef = useRef<HTMLDivElement>(null);\n const forceUpdateRef = useRef<() => void>();\n const [showPopover, setShowPopover] = useState(show);\n const timeout = useRef<number>();\n const uid = useUID();\n\n const portalTarget = typeof portal === 'boolean' ? configurationPortal : portal;\n\n const memoedModifiers = useMemo(\n () => [\n {\n name: 'computeStyles',\n options: {\n gpuAcceleration: false\n }\n },\n {\n name: 'offset',\n options: {\n offset: [0, arrow ? 5.5 : 2]\n }\n },\n { name: 'hide', enabled: hideOnTargetHidden },\n { name: 'arrow', enabled: arrow, options: { element: arrowRef.current } },\n {\n name: 'preventOverflow',\n options: {\n tether: !modifiers.find(m => m.name === 'sameWidth')\n }\n },\n maxSize,\n applyMaxSize,\n ...modifiers\n ],\n [modifiers, arrow, hideOnTargetHidden]\n );\n\n const offset = useMemo(() => {\n const offsetModifier = [...memoedModifiers]\n .reverse()\n .find(m => m.name === 'offset' && m.enabled !== false) as OffsetModifier | undefined;\n return Array.isArray(offsetModifier?.options?.offset)\n ? offsetModifier?.options?.offset[1] ?? 0\n : 0;\n }, [memoedModifiers]);\n\n const { styles, attributes, forceUpdate } = usePopper(target, popperRef.current, {\n placement,\n strategy,\n modifiers: memoedModifiers\n });\n\n if (forceUpdate) forceUpdateRef.current = forceUpdate;\n\n useEffect(() => {\n const observer = new ResizeObserver(() => {\n forceUpdateRef.current?.();\n });\n\n if (popperRef.current) observer.observe(popperRef.current);\n if (target instanceof Element) observer.observe(target);\n\n return () => {\n observer.disconnect();\n };\n }, [forceUpdate, popperRef.current, target]);\n\n useEffect(() => {\n if (groupId && show) setActive(uid, groupId);\n\n if (windowIsAvailable) {\n if (timeout.current) clearTimeout(timeout.current);\n timeout.current = window.setTimeout(() => {\n setShowPopover(show);\n }, delays[show ? showDelay : hideDelay]);\n } else {\n setShowPopover(show);\n }\n }, [show]);\n\n useEffect(() => {\n return () => clearTimeout(timeout.current);\n }, []);\n\n useAfterInitialEffect(() => {\n if (!showPopover) {\n onHide?.();\n }\n }, [showPopover]);\n\n useEffect(() => {\n if (groupId && popovers[groupId] && popovers[groupId] !== uid) {\n setShowPopover(false);\n }\n }, [groupId ? popovers[groupId] : undefined]);\n\n const content = (\n <StyledPopover\n {...restProps}\n offset={offset}\n ref={popperRef}\n style={{ ...style, ...styles.popper }}\n {...attributes.popper}\n >\n {arrow && <StyledPopoverArrow ref={arrowRef} style={{ ...styles.arrow }} />}\n <StyledPopoverContent>{children}</StyledPopoverContent>\n </StyledPopover>\n );\n\n if (!target || !showPopover || (groupId && !checkActive(uid, groupId))) return null;\n\n return portal && portalTarget ? createPortal(content, portalTarget) : content;\n }\n);\n\nexport default Popover;\n"]}
@@ -1,4 +1,5 @@
1
1
  export declare const StyledPopoverArrow: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
2
+ export declare const StyledPopoverContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
2
3
  export declare const StyledPopover: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
3
4
  offset?: number | undefined;
4
5
  }, never>;
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/Popover.styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB,yGAwB9B,CAAC;AAIF,eAAO,MAAM,aAAa;;SAoJzB,CAAC"}
1
+ {"version":3,"file":"Popover.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/Popover.styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB,yGAW9B,CAAC;AAIF,eAAO,MAAM,oBAAoB,yGAKhC,CAAC;AAEF,eAAO,MAAM,aAAa;;SA4GzB,CAAC"}
@@ -1,24 +1,25 @@
1
1
  import styled, { css } from 'styled-components';
2
2
  import { defaultThemeProp } from '../../theme';
3
- export const StyledPopoverArrow = styled.div(({ theme: { base: { shadow: { 'low-filter': low } } } }) => css `
3
+ export const StyledPopoverArrow = styled.div `
4
+ background-color: inherit;
5
+
6
+ ::before {
7
+ content: '';
8
+ display: block;
9
+ position: absolute;
10
+ inset: -0.25rem;
4
11
  background-color: inherit;
5
-
6
- ::before,
7
- ::after {
8
- content: '';
9
- display: block;
10
- position: absolute;
11
- background-color: inherit;
12
- }
13
-
14
- ::before {
15
- inset: -0.25rem;
16
- filter: ${low};
17
- transform: rotate(45deg);
18
- }
19
- `);
12
+ transform: rotate(45deg);
13
+ }
14
+ `;
20
15
  StyledPopoverArrow.defaultProps = defaultThemeProp;
21
- export const StyledPopover = styled.div(({ theme: { base: { 'border-radius': borderRadius, 'z-index': { popover: zIndex }, shadow: { 'low-filter': low } }, components: { card: { background }, 'form-control': { 'border-radius': formControlBorderRadius } } }, offset }) => {
16
+ export const StyledPopoverContent = styled.div `
17
+ max-width: inherit;
18
+ max-height: inherit;
19
+ border-radius: inherit;
20
+ overflow: auto;
21
+ `;
22
+ export const StyledPopover = styled.div(({ theme: { base: { 'border-radius': borderRadius, 'z-index': { popover: zIndex }, shadow: { low } }, components: { card: { background }, 'form-control': { 'border-radius': formControlBorderRadius } } }, offset }) => {
22
23
  return css `
23
24
  /*
24
25
  Margin should never be used with Popper.
@@ -28,19 +29,7 @@ export const StyledPopover = styled.div(({ theme: { base: { 'border-radius': bor
28
29
  z-index: ${zIndex};
29
30
  background-color: ${background};
30
31
  border-radius: calc(${formControlBorderRadius} * ${borderRadius});
31
-
32
- ::after {
33
- content: '';
34
- background-color: inherit;
35
- border-radius: inherit;
36
- z-index: -2; /* Make sure it's under the arrow. */
37
- filter: ${low};
38
- position: absolute;
39
- top: 0;
40
- right: 0;
41
- bottom: 0;
42
- left: 0;
43
- }
32
+ box-shadow: ${low};
44
33
 
45
34
  &[data-popper-reference-hidden='true'] {
46
35
  visibility: hidden;
@@ -54,13 +43,6 @@ export const StyledPopover = styled.div(({ theme: { base: { 'border-radius': bor
54
43
  ::before {
55
44
  border-bottom-right-radius: calc(${borderRadius} / 4);
56
45
  }
57
-
58
- ::after {
59
- top: -0.75rem;
60
- right: -0.75rem;
61
- bottom: 0;
62
- left: -0.75rem;
63
- }
64
46
  }
65
47
 
66
48
  ::before {
@@ -80,13 +62,6 @@ export const StyledPopover = styled.div(({ theme: { base: { 'border-radius': bor
80
62
  ::before {
81
63
  border-top-left-radius: calc(${borderRadius} / 4);
82
64
  }
83
-
84
- ::after {
85
- top: 0;
86
- right: -0.75rem;
87
- bottom: -0.75rem;
88
- left: -0.75rem;
89
- }
90
65
  }
91
66
 
92
67
  ::before {
@@ -106,13 +81,6 @@ export const StyledPopover = styled.div(({ theme: { base: { 'border-radius': bor
106
81
  ::before {
107
82
  border-bottom-left-radius: calc(${borderRadius} / 4);
108
83
  }
109
-
110
- ::after {
111
- top: -0.75rem;
112
- right: -0.75rem;
113
- bottom: -0.75rem;
114
- left: 0;
115
- }
116
84
  }
117
85
 
118
86
  ::before {
@@ -132,13 +100,6 @@ export const StyledPopover = styled.div(({ theme: { base: { 'border-radius': bor
132
100
  ::before {
133
101
  border-top-right-radius: calc(${borderRadius} / 4);
134
102
  }
135
-
136
- ::after {
137
- top: -0.75rem;
138
- right: 0;
139
- bottom: -0.75rem;
140
- left: -0.75rem;
141
- }
142
103
  }
143
104
 
144
105
  ::before {
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.styles.js","sourceRoot":"","sources":["../../../src/components/Popover/Popover.styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,GAAG,CAC1C,CAAC,EACC,KAAK,EAAE,EACL,IAAI,EAAE,EACJ,MAAM,EAAE,EAAE,YAAY,EAAE,GAAG,EAAE,EAC9B,EACF,EACF,EAAE,EAAE,CAAC,GAAG,CAAA;;;;;;;;;;;;;gBAaK,GAAG;;;GAGhB,CACF,CAAC;AAEF,kBAAkB,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAEnD,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CACrC,CAAC,EACC,KAAK,EAAE,EACL,IAAI,EAAE,EACJ,eAAe,EAAE,YAAY,EAC7B,SAAS,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,EAC9B,MAAM,EAAE,EAAE,YAAY,EAAE,GAAG,EAAE,EAC9B,EACD,UAAU,EAAE,EACV,IAAI,EAAE,EAAE,UAAU,EAAE,EACpB,cAAc,EAAE,EAAE,eAAe,EAAE,uBAAuB,EAAE,EAC7D,EACF,EACD,MAAM,EACP,EAAE,EAAE;IACH,OAAO,GAAG,CAAA;;;;;;iBAMG,MAAM;0BACG,UAAU;4BACR,uBAAuB,MAAM,YAAY;;;;;;;kBAOnD,GAAG;;;;;;;;;;;;;;YAcT,kBAAkB;;;;+CAIiB,YAAY;;;;;;;;;;;;;;oBAcvC,MAAM;qBACL,MAAM;;;;;;;YAOf,kBAAkB;;;;2CAIa,YAAY;;;;;;;;;;;;;;oBAcnC,MAAM;kBACR,MAAM;;;;;;;YAOZ,kBAAkB;;;;8CAIgB,YAAY;;;;;;;;;;;;;;mBAcvC,MAAM;mBACN,MAAM;;;;;;;YAOb,kBAAkB;;;;4CAIc,YAAY;;;;;;;;;;;;;;mBAcrC,MAAM;oBACL,MAAM;;;;;KAKrB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,aAAa,CAAC,YAAY,GAAG,gBAAgB,CAAC","sourcesContent":["import styled, { css } from 'styled-components';\n\nimport { defaultThemeProp } from '../../theme';\n\nexport const StyledPopoverArrow = styled.div(\n ({\n theme: {\n base: {\n shadow: { 'low-filter': low }\n }\n }\n }) => css`\n background-color: inherit;\n\n ::before,\n ::after {\n content: '';\n display: block;\n position: absolute;\n background-color: inherit;\n }\n\n ::before {\n inset: -0.25rem;\n filter: ${low};\n transform: rotate(45deg);\n }\n `\n);\n\nStyledPopoverArrow.defaultProps = defaultThemeProp;\n\nexport const StyledPopover = styled.div<{ offset?: number }>(\n ({\n theme: {\n base: {\n 'border-radius': borderRadius,\n 'z-index': { popover: zIndex },\n shadow: { 'low-filter': low }\n },\n components: {\n card: { background },\n 'form-control': { 'border-radius': formControlBorderRadius }\n }\n },\n offset\n }) => {\n return css`\n /*\n Margin should never be used with Popper.\n https://popper.js.org/docs/v2/migration-guide/#4-remove-all-css-margins\n */\n margin: 0 !important;\n z-index: ${zIndex};\n background-color: ${background};\n border-radius: calc(${formControlBorderRadius} * ${borderRadius});\n\n ::after {\n content: '';\n background-color: inherit;\n border-radius: inherit;\n z-index: -2; /* Make sure it's under the arrow. */\n filter: ${low};\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n }\n\n &[data-popper-reference-hidden='true'] {\n visibility: hidden;\n pointer-events: none;\n }\n\n &[data-popper-placement^='top'] {\n > ${StyledPopoverArrow} {\n top: calc(100%);\n\n ::before {\n border-bottom-right-radius: calc(${borderRadius} / 4);\n }\n\n ::after {\n top: -0.75rem;\n right: -0.75rem;\n bottom: 0;\n left: -0.75rem;\n }\n }\n\n ::before {\n content: '';\n position: absolute;\n height: ${offset}px;\n bottom: -${offset}px;\n left: 0;\n right: 0;\n }\n }\n\n &[data-popper-placement^='bottom'] {\n > ${StyledPopoverArrow} {\n bottom: calc(100%);\n\n ::before {\n border-top-left-radius: calc(${borderRadius} / 4);\n }\n\n ::after {\n top: 0;\n right: -0.75rem;\n bottom: -0.75rem;\n left: -0.75rem;\n }\n }\n\n ::before {\n content: '';\n position: absolute;\n height: ${offset}px;\n top: -${offset}px;\n left: 0;\n right: 0;\n }\n }\n\n &[data-popper-placement^='right'] {\n > ${StyledPopoverArrow} {\n right: calc(100%);\n\n ::before {\n border-bottom-left-radius: calc(${borderRadius} / 4);\n }\n\n ::after {\n top: -0.75rem;\n right: -0.75rem;\n bottom: -0.75rem;\n left: 0;\n }\n }\n\n ::before {\n content: '';\n position: absolute;\n width: ${offset}px;\n left: -${offset}px;\n top: 0;\n bottom: 0;\n }\n }\n\n &[data-popper-placement^='left'] {\n > ${StyledPopoverArrow} {\n left: calc(100%);\n\n ::before {\n border-top-right-radius: calc(${borderRadius} / 4);\n }\n\n ::after {\n top: -0.75rem;\n right: 0;\n bottom: -0.75rem;\n left: -0.75rem;\n }\n }\n\n ::before {\n content: '';\n position: absolute;\n width: ${offset}px;\n right: -${offset}px;\n top: 0;\n bottom: 0;\n }\n }\n `;\n }\n);\n\nStyledPopover.defaultProps = defaultThemeProp;\n"]}
1
+ {"version":3,"file":"Popover.styles.js","sourceRoot":"","sources":["../../../src/components/Popover/Popover.styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;CAW3C,CAAC;AAEF,kBAAkB,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAEnD,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;CAK7C,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CACrC,CAAC,EACC,KAAK,EAAE,EACL,IAAI,EAAE,EACJ,eAAe,EAAE,YAAY,EAC7B,SAAS,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,EAC9B,MAAM,EAAE,EAAE,GAAG,EAAE,EAChB,EACD,UAAU,EAAE,EACV,IAAI,EAAE,EAAE,UAAU,EAAE,EACpB,cAAc,EAAE,EAAE,eAAe,EAAE,uBAAuB,EAAE,EAC7D,EACF,EACD,MAAM,EACP,EAAE,EAAE;IACH,OAAO,GAAG,CAAA;;;;;;iBAMG,MAAM;0BACG,UAAU;4BACR,uBAAuB,MAAM,YAAY;oBACjD,GAAG;;;;;;;;YAQX,kBAAkB;;;;+CAIiB,YAAY;;;;;;;oBAOvC,MAAM;qBACL,MAAM;;;;;;;YAOf,kBAAkB;;;;2CAIa,YAAY;;;;;;;oBAOnC,MAAM;kBACR,MAAM;;;;;;;YAOZ,kBAAkB;;;;8CAIgB,YAAY;;;;;;;mBAOvC,MAAM;mBACN,MAAM;;;;;;;YAOb,kBAAkB;;;;4CAIc,YAAY;;;;;;;mBAOrC,MAAM;oBACL,MAAM;;;;;KAKrB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,aAAa,CAAC,YAAY,GAAG,gBAAgB,CAAC","sourcesContent":["import styled, { css } from 'styled-components';\n\nimport { defaultThemeProp } from '../../theme';\n\nexport const StyledPopoverArrow = styled.div`\n background-color: inherit;\n\n ::before {\n content: '';\n display: block;\n position: absolute;\n inset: -0.25rem;\n background-color: inherit;\n transform: rotate(45deg);\n }\n`;\n\nStyledPopoverArrow.defaultProps = defaultThemeProp;\n\nexport const StyledPopoverContent = styled.div`\n max-width: inherit;\n max-height: inherit;\n border-radius: inherit;\n overflow: auto;\n`;\n\nexport const StyledPopover = styled.div<{ offset?: number }>(\n ({\n theme: {\n base: {\n 'border-radius': borderRadius,\n 'z-index': { popover: zIndex },\n shadow: { low }\n },\n components: {\n card: { background },\n 'form-control': { 'border-radius': formControlBorderRadius }\n }\n },\n offset\n }) => {\n return css`\n /*\n Margin should never be used with Popper.\n https://popper.js.org/docs/v2/migration-guide/#4-remove-all-css-margins\n */\n margin: 0 !important;\n z-index: ${zIndex};\n background-color: ${background};\n border-radius: calc(${formControlBorderRadius} * ${borderRadius});\n box-shadow: ${low};\n\n &[data-popper-reference-hidden='true'] {\n visibility: hidden;\n pointer-events: none;\n }\n\n &[data-popper-placement^='top'] {\n > ${StyledPopoverArrow} {\n top: calc(100%);\n\n ::before {\n border-bottom-right-radius: calc(${borderRadius} / 4);\n }\n }\n\n ::before {\n content: '';\n position: absolute;\n height: ${offset}px;\n bottom: -${offset}px;\n left: 0;\n right: 0;\n }\n }\n\n &[data-popper-placement^='bottom'] {\n > ${StyledPopoverArrow} {\n bottom: calc(100%);\n\n ::before {\n border-top-left-radius: calc(${borderRadius} / 4);\n }\n }\n\n ::before {\n content: '';\n position: absolute;\n height: ${offset}px;\n top: -${offset}px;\n left: 0;\n right: 0;\n }\n }\n\n &[data-popper-placement^='right'] {\n > ${StyledPopoverArrow} {\n right: calc(100%);\n\n ::before {\n border-bottom-left-radius: calc(${borderRadius} / 4);\n }\n }\n\n ::before {\n content: '';\n position: absolute;\n width: ${offset}px;\n left: -${offset}px;\n top: 0;\n bottom: 0;\n }\n }\n\n &[data-popper-placement^='left'] {\n > ${StyledPopoverArrow} {\n left: calc(100%);\n\n ::before {\n border-top-right-radius: calc(${borderRadius} / 4);\n }\n }\n\n ::before {\n content: '';\n position: absolute;\n width: ${offset}px;\n right: -${offset}px;\n top: 0;\n bottom: 0;\n }\n }\n `;\n }\n);\n\nStyledPopover.defaultProps = defaultThemeProp;\n"]}
@@ -1,6 +1,7 @@
1
1
  export interface PopoverContextValue {
2
2
  checkActive: (id: string, groupId: string) => boolean;
3
3
  setActive: (id: string, groupId: string) => void;
4
+ popovers: Record<string, string>;
4
5
  }
5
6
  export declare const PopoverManagerContext: import("react").Context<PopoverContextValue>;
6
7
  //# sourceMappingURL=PopoverContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PopoverContext.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/PopoverContext.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC;IACtD,SAAS,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CAClD;AAED,eAAO,MAAM,qBAAqB,8CAGhC,CAAC"}
1
+ {"version":3,"file":"PopoverContext.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/PopoverContext.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC;IACtD,SAAS,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC;AAED,eAAO,MAAM,qBAAqB,8CAIhC,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import { createContext } from 'react';
2
2
  export const PopoverManagerContext = createContext({
3
3
  checkActive: () => true,
4
- setActive: () => { }
4
+ setActive: () => { },
5
+ popovers: {}
5
6
  });
6
7
  //# sourceMappingURL=PopoverContext.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PopoverContext.js","sourceRoot":"","sources":["../../../src/components/Popover/PopoverContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAOtC,MAAM,CAAC,MAAM,qBAAqB,GAAG,aAAa,CAAsB;IACtE,WAAW,EAAE,GAAG,EAAE,CAAC,IAAI;IACvB,SAAS,EAAE,GAAG,EAAE,GAAE,CAAC;CACpB,CAAC,CAAC","sourcesContent":["import { createContext } from 'react';\n\nexport interface PopoverContextValue {\n checkActive: (id: string, groupId: string) => boolean;\n setActive: (id: string, groupId: string) => void;\n}\n\nexport const PopoverManagerContext = createContext<PopoverContextValue>({\n checkActive: () => true,\n setActive: () => {}\n});\n"]}
1
+ {"version":3,"file":"PopoverContext.js","sourceRoot":"","sources":["../../../src/components/Popover/PopoverContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAQtC,MAAM,CAAC,MAAM,qBAAqB,GAAG,aAAa,CAAsB;IACtE,WAAW,EAAE,GAAG,EAAE,CAAC,IAAI;IACvB,SAAS,EAAE,GAAG,EAAE,GAAE,CAAC;IACnB,QAAQ,EAAE,EAAE;CACb,CAAC,CAAC","sourcesContent":["import { createContext } from 'react';\n\nexport interface PopoverContextValue {\n checkActive: (id: string, groupId: string) => boolean;\n setActive: (id: string, groupId: string) => void;\n popovers: Record<string, string>;\n}\n\nexport const PopoverManagerContext = createContext<PopoverContextValue>({\n checkActive: () => true,\n setActive: () => {},\n popovers: {}\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"PopoverManager.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/PopoverManager.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AAI/D,QAAA,MAAM,cAAc,EAAE,iBAAiB,CAAC;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,CAuB9D,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"PopoverManager.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/PopoverManager.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AAI/D,QAAA,MAAM,cAAc,EAAE,iBAAiB,CAAC;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,CAwB9D,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -13,7 +13,8 @@ const PopoverManager = ({ children }) => {
13
13
  };
14
14
  return (_jsx(PopoverManagerContext.Provider, { value: {
15
15
  checkActive,
16
- setActive
16
+ setActive,
17
+ popovers
17
18
  }, children: children }));
18
19
  };
19
20
  export default PopoverManager;
@@ -1 +1 @@
1
- {"version":3,"file":"PopoverManager.js","sourceRoot":"","sources":["../../../src/components/Popover/PopoverManager.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAgC,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAEzD,MAAM,cAAc,GAA+C,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IAClF,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAyB,EAAE,CAAC,CAAC;IAErE,MAAM,WAAW,GAAG,CAAC,EAAU,EAAE,OAAe,EAAW,EAAE;QAC3D,OAAO,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC,CAAC;IAEF,MAAM,SAAS,GAAG,CAAC,EAAU,EAAE,OAAe,EAAE,EAAE;QAChD,WAAW,CAAC,IAAI,CAAC,EAAE;YACjB,OAAO,EAAE,GAAG,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,CAAC;QACpC,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;IAEF,OAAO,CACL,KAAC,qBAAqB,CAAC,QAAQ,IAC7B,KAAK,EAAE;YACL,WAAW;YACX,SAAS;SACV,YAEA,QAAQ,GACsB,CAClC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC","sourcesContent":["import { FunctionComponent, ReactNode, useState } from 'react';\n\nimport { PopoverManagerContext } from './PopoverContext';\n\nconst PopoverManager: FunctionComponent<{ children: ReactNode }> = ({ children }) => {\n const [popovers, setPopovers] = useState<Record<string, string>>({});\n\n const checkActive = (id: string, groupId: string): boolean => {\n return popovers[groupId] === id;\n };\n\n const setActive = (id: string, groupId: string) => {\n setPopovers(curr => {\n return { ...curr, [groupId]: id };\n });\n };\n\n return (\n <PopoverManagerContext.Provider\n value={{\n checkActive,\n setActive\n }}\n >\n {children}\n </PopoverManagerContext.Provider>\n );\n};\n\nexport default PopoverManager;\n"]}
1
+ {"version":3,"file":"PopoverManager.js","sourceRoot":"","sources":["../../../src/components/Popover/PopoverManager.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAgC,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAEzD,MAAM,cAAc,GAA+C,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IAClF,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAyB,EAAE,CAAC,CAAC;IAErE,MAAM,WAAW,GAAG,CAAC,EAAU,EAAE,OAAe,EAAW,EAAE;QAC3D,OAAO,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC,CAAC;IAEF,MAAM,SAAS,GAAG,CAAC,EAAU,EAAE,OAAe,EAAE,EAAE;QAChD,WAAW,CAAC,IAAI,CAAC,EAAE;YACjB,OAAO,EAAE,GAAG,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,CAAC;QACpC,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;IAEF,OAAO,CACL,KAAC,qBAAqB,CAAC,QAAQ,IAC7B,KAAK,EAAE;YACL,WAAW;YACX,SAAS;YACT,QAAQ;SACT,YAEA,QAAQ,GACsB,CAClC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC","sourcesContent":["import { FunctionComponent, ReactNode, useState } from 'react';\n\nimport { PopoverManagerContext } from './PopoverContext';\n\nconst PopoverManager: FunctionComponent<{ children: ReactNode }> = ({ children }) => {\n const [popovers, setPopovers] = useState<Record<string, string>>({});\n\n const checkActive = (id: string, groupId: string): boolean => {\n return popovers[groupId] === id;\n };\n\n const setActive = (id: string, groupId: string) => {\n setPopovers(curr => {\n return { ...curr, [groupId]: id };\n });\n };\n\n return (\n <PopoverManagerContext.Provider\n value={{\n checkActive,\n setActive,\n popovers\n }}\n >\n {children}\n </PopoverManagerContext.Provider>\n );\n};\n\nexport default PopoverManager;\n"]}
@@ -1,3 +1,5 @@
1
1
  import { Modifier } from '@popperjs/core';
2
2
  export declare const sameWidth: Modifier<'sameWidth', object>;
3
+ export declare const maxSize: Modifier<'maxSize', object>;
4
+ export declare const applyMaxSize: Modifier<'applyMaxSize', object>;
3
5
  //# sourceMappingURL=modifiers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"modifiers.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/modifiers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAG1C,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,WAAW,EAAE,MAAM,CAQlD,CAAC"}
1
+ {"version":3,"file":"modifiers.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/modifiers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAG1D,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,WAAW,EAAE,MAAM,CAQlD,CAAC;AAGH,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,SAAS,EAAE,MAAM,CAmB9C,CAAC;AAGH,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,cAAc,EAAE,MAAM,CASxD,CAAC"}
@@ -1,4 +1,5 @@
1
- // eslint-disable-next-line import/prefer-default-export
1
+ import { detectOverflow } from '@popperjs/core';
2
+ // taken from https://codesandbox.io/s/bitter-sky-pe3z9?file=/src/index.js
2
3
  export const sameWidth = Object.freeze({
3
4
  name: 'sameWidth',
4
5
  enabled: true,
@@ -8,4 +9,34 @@ export const sameWidth = Object.freeze({
8
9
  },
9
10
  requires: ['computeStyles']
10
11
  });
12
+ // taken from https://github.com/atomiks/popper.js/blob/master/src/modifiers/maxSize.js
13
+ export const maxSize = Object.freeze({
14
+ name: 'maxSize',
15
+ enabled: true,
16
+ phase: 'main',
17
+ requiresIfExists: ['offset', 'preventOverflow', 'flip'],
18
+ fn({ state, name, options }) {
19
+ const overflow = detectOverflow(state, options);
20
+ const { x, y } = state.modifiersData.preventOverflow || { x: 0, y: 0 };
21
+ const { width, height } = state.rects.popper;
22
+ const [basePlacement] = state.placement.split('-');
23
+ const widthProp = basePlacement === 'left' ? 'left' : 'right';
24
+ const heightProp = basePlacement === 'top' ? 'top' : 'bottom';
25
+ state.modifiersData[name] = {
26
+ width: width - overflow[widthProp] - x,
27
+ height: height - overflow[heightProp] - y
28
+ };
29
+ }
30
+ });
31
+ // taken from https://codesandbox.io/s/great-tesla-3roz7?file=/src/index.js
32
+ export const applyMaxSize = Object.freeze({
33
+ name: 'applyMaxSize',
34
+ enabled: true,
35
+ phase: 'beforeWrite',
36
+ requires: ['maxSize'],
37
+ fn({ state }) {
38
+ const { height } = state.modifiersData.maxSize;
39
+ state.styles.popper.maxHeight = `${height}px`;
40
+ }
41
+ });
11
42
  //# sourceMappingURL=modifiers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"modifiers.js","sourceRoot":"","sources":["../../../src/components/Popover/modifiers.ts"],"names":[],"mappings":"AAEA,wDAAwD;AACxD,MAAM,CAAC,MAAM,SAAS,GAAkC,MAAM,CAAC,MAAM,CAAC;IACpE,IAAI,EAAE,WAAW;IACjB,OAAO,EAAE,IAAI;IACb,KAAK,EAAE,aAAa;IACpB,EAAE,CAAC,EAAE,KAAK,EAAE;QACV,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,GAAG,GAAG,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,IAAI,CAAC;IACjE,CAAC;IACD,QAAQ,EAAE,CAAC,eAAe,CAAC;CAC5B,CAAC,CAAC","sourcesContent":["import { Modifier } from '@popperjs/core';\n\n// eslint-disable-next-line import/prefer-default-export\nexport const sameWidth: Modifier<'sameWidth', object> = Object.freeze({\n name: 'sameWidth',\n enabled: true,\n phase: 'beforeWrite',\n fn({ state }) {\n state.styles.popper.width = `${state.rects.reference.width}px`;\n },\n requires: ['computeStyles']\n});\n"]}
1
+ {"version":3,"file":"modifiers.js","sourceRoot":"","sources":["../../../src/components/Popover/modifiers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAY,MAAM,gBAAgB,CAAC;AAE1D,0EAA0E;AAC1E,MAAM,CAAC,MAAM,SAAS,GAAkC,MAAM,CAAC,MAAM,CAAC;IACpE,IAAI,EAAE,WAAW;IACjB,OAAO,EAAE,IAAI;IACb,KAAK,EAAE,aAAa;IACpB,EAAE,CAAC,EAAE,KAAK,EAAE;QACV,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,GAAG,GAAG,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,IAAI,CAAC;IACjE,CAAC;IACD,QAAQ,EAAE,CAAC,eAAe,CAAC;CAC5B,CAAC,CAAC;AAEH,uFAAuF;AACvF,MAAM,CAAC,MAAM,OAAO,GAAgC,MAAM,CAAC,MAAM,CAAC;IAChE,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAI;IACb,KAAK,EAAE,MAAM;IACb,gBAAgB,EAAE,CAAC,QAAQ,EAAE,iBAAiB,EAAE,MAAM,CAAC;IACvD,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE;QACzB,MAAM,QAAQ,GAAG,cAAc,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAChD,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,KAAK,CAAC,aAAa,CAAC,eAAe,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;QACvE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC;QAC7C,MAAM,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAEnD,MAAM,SAAS,GAAG,aAAa,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC;QAC9D,MAAM,UAAU,GAAG,aAAa,KAAK,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC;QAE9D,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG;YAC1B,KAAK,EAAE,KAAK,GAAG,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC;YACtC,MAAM,EAAE,MAAM,GAAG,QAAQ,CAAC,UAAU,CAAC,GAAG,CAAC;SAC1C,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,2EAA2E;AAC3E,MAAM,CAAC,MAAM,YAAY,GAAqC,MAAM,CAAC,MAAM,CAAC;IAC1E,IAAI,EAAE,cAAc;IACpB,OAAO,EAAE,IAAI;IACb,KAAK,EAAE,aAAa;IACpB,QAAQ,EAAE,CAAC,SAAS,CAAC;IACrB,EAAE,CAAC,EAAE,KAAK,EAAE;QACV,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC,aAAa,CAAC,OAAO,CAAC;QAC/C,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,GAAG,GAAG,MAAM,IAAI,CAAC;IAChD,CAAC;CACF,CAAC,CAAC","sourcesContent":["import { detectOverflow, Modifier } from '@popperjs/core';\n\n// taken from https://codesandbox.io/s/bitter-sky-pe3z9?file=/src/index.js\nexport const sameWidth: Modifier<'sameWidth', object> = Object.freeze({\n name: 'sameWidth',\n enabled: true,\n phase: 'beforeWrite',\n fn({ state }) {\n state.styles.popper.width = `${state.rects.reference.width}px`;\n },\n requires: ['computeStyles']\n});\n\n// taken from https://github.com/atomiks/popper.js/blob/master/src/modifiers/maxSize.js\nexport const maxSize: Modifier<'maxSize', object> = Object.freeze({\n name: 'maxSize',\n enabled: true,\n phase: 'main',\n requiresIfExists: ['offset', 'preventOverflow', 'flip'],\n fn({ state, name, options }) {\n const overflow = detectOverflow(state, options);\n const { x, y } = state.modifiersData.preventOverflow || { x: 0, y: 0 };\n const { width, height } = state.rects.popper;\n const [basePlacement] = state.placement.split('-');\n\n const widthProp = basePlacement === 'left' ? 'left' : 'right';\n const heightProp = basePlacement === 'top' ? 'top' : 'bottom';\n\n state.modifiersData[name] = {\n width: width - overflow[widthProp] - x,\n height: height - overflow[heightProp] - y\n };\n }\n});\n\n// taken from https://codesandbox.io/s/great-tesla-3roz7?file=/src/index.js\nexport const applyMaxSize: Modifier<'applyMaxSize', object> = Object.freeze({\n name: 'applyMaxSize',\n enabled: true,\n phase: 'beforeWrite',\n requires: ['maxSize'],\n fn({ state }) {\n const { height } = state.modifiersData.maxSize;\n state.styles.popper.maxHeight = `${height}px`;\n }\n});\n"]}
@@ -52,8 +52,8 @@ export const StyledProgressRing = styled.div(({ theme, placement, determinate })
52
52
  vertical-align: top;
53
53
  `
54
54
  : css `
55
- width: ${placement === 'global' ? '4' : '2'}rem;
56
- height: ${placement === 'global' ? '4' : '2'}rem;
55
+ width: 2rem;
56
+ height: 2rem;
57
57
  `}
58
58
  `;
59
59
  });
@@ -1 +1 @@
1
- {"version":3,"file":"Ring.js","sourceRoot":"","sources":["../../../src/components/Progress/Ring.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAM,UAAU,EAAmB,MAAM,OAAO,CAAC;AACxD,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAK/C,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,GAAG,CAE1C,CAAC,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AC;SAClE,IAAI,KAAK,GAAG,QAAQ;QAAE,gBAAgB,GAAG,aAAa,CAAC;;QACvD,gBAAgB,GAAG,CAAC,CAAC,GAAG,CAAC,KAAK,GAAG,QAAQ,CAAC,GAAG,CAAC,QAAQ,GAAG,QAAQ,CAAC,CAAC,GAAG,aAAa,CAAC;IAEzF,OAAO,CACL,KAAC,kBAAkB,IACjB,GAAG,EAAE,GAAG,EACR,IAAI,EAAC,aAAa,mBACH,QAAQ,mBACR,QAAQ,mBACR,KAAK,EACpB,SAAS,EAAE,SAAS,EACpB,WAAW,EAAE,OAAO,KAAK,KAAK,QAAQ,KAClC,SAAS,YAEb,eAAK,OAAO,EAAC,WAAW,aACtB,kBAAU,EACV,iBAAQ,eAAe,EAAE,aAAa,EAAE,KAAK,EAAE,EAAE,gBAAgB,EAAE,GAAI,IACnE,GACa,CACtB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,IAAI,CAAC","sourcesContent":["import { FC, forwardRef, PropsWithoutRef } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport { defaultThemeProp } from '../../theme';\nimport { ForwardProps } from '../../types';\n\nimport { ProgressProps } from './Progress.types';\n\nexport const StyledProgressRing = styled.div<\n Pick<ProgressProps, 'placement'> & { determinate: boolean }\n>(({ theme, placement, determinate }) => {\n return css`\n position: relative;\n min-width: 1em;\n min-height: 1em;\n\n @keyframes LoadingRing {\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n }\n\n svg {\n display: block;\n position: absolute;\n height: 100%;\n\n circle {\n fill: transparent;\n stroke: ${theme.base.colors.gray['extra-light']};\n stroke-width: 2;\n r: 45%;\n cx: 50%;\n cy: 50%;\n transform: rotate(-90deg);\n transform-origin: 50% 50%;\n\n &:nth-child(2) {\n stroke: ${theme.components.progress['progress-color']};\n transition: stroke-dashoffset calc(0.5 * ${theme.base.animation.speed})\n ${theme.base.animation.timing.ease};\n\n ${!determinate &&\n css`\n animation: LoadingRing calc(4 * ${theme.base.animation.speed}) linear infinite;\n `}\n }\n }\n }\n\n ${placement === 'inline'\n ? css`\n display: inline-flex;\n vertical-align: top;\n `\n : css`\n width: ${placement === 'global' ? '4' : '2'}rem;\n height: ${placement === 'global' ? '4' : '2'}rem;\n `}\n `;\n});\n\nStyledProgressRing.defaultProps = defaultThemeProp;\n\nconst Ring: FC<ProgressProps & ForwardProps> = forwardRef(\n (\n {\n value,\n minValue = 0,\n maxValue = 100,\n placement,\n ...restProps\n }: PropsWithoutRef<ProgressProps>,\n ref: ProgressProps['ref']\n ) => {\n let strokeDashoffset;\n const circumference = 18 * Math.PI;\n\n if (typeof value !== 'number') strokeDashoffset = (1 - 33 / 100) * circumference;\n else if (value > maxValue || minValue > maxValue) strokeDashoffset = 0;\n else if (value < minValue) strokeDashoffset = circumference;\n else strokeDashoffset = (1 - (value - minValue) / (maxValue - minValue)) * circumference;\n\n return (\n <StyledProgressRing\n ref={ref}\n role='progressbar'\n aria-valuemin={minValue}\n aria-valuemax={maxValue}\n aria-valuenow={value}\n placement={placement}\n determinate={typeof value === 'number'}\n {...restProps}\n >\n <svg viewBox='0 0 20 20'>\n <circle />\n <circle strokeDasharray={circumference} style={{ strokeDashoffset }} />\n </svg>\n </StyledProgressRing>\n );\n }\n);\n\nexport default Ring;\n"]}
1
+ {"version":3,"file":"Ring.js","sourceRoot":"","sources":["../../../src/components/Progress/Ring.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAM,UAAU,EAAmB,MAAM,OAAO,CAAC;AACxD,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAK/C,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,GAAG,CAE1C,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,EAAE,EAAE;IACtC,OAAO,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;kBAsBM,K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,IAAI,EAAC,aAAa,mBACH,QAAQ,mBACR,QAAQ,mBACR,KAAK,EACpB,SAAS,EAAE,SAAS,EACpB,WAAW,EAAE,OAAO,KAAK,KAAK,QAAQ,KAClC,SAAS,YAEb,eAAK,OAAO,EAAC,WAAW,aACtB,kBAAU,EACV,iBAAQ,eAAe,EAAE,aAAa,EAAE,KAAK,EAAE,EAAE,gBAAgB,EAAE,GAAI,IACnE,GACa,CACtB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,IAAI,CAAC","sourcesContent":["import { FC, forwardRef, PropsWithoutRef } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport { defaultThemeProp } from '../../theme';\nimport { ForwardProps } from '../../types';\n\nimport { ProgressProps } from './Progress.types';\n\nexport const StyledProgressRing = styled.div<\n Pick<ProgressProps, 'placement'> & { determinate: boolean }\n>(({ theme, placement, determinate }) => {\n return css`\n position: relative;\n min-width: 1em;\n min-height: 1em;\n\n @keyframes LoadingRing {\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n }\n\n svg {\n display: block;\n position: absolute;\n height: 100%;\n\n circle {\n fill: transparent;\n stroke: ${theme.base.colors.gray['extra-light']};\n stroke-width: 2;\n r: 45%;\n cx: 50%;\n cy: 50%;\n transform: rotate(-90deg);\n transform-origin: 50% 50%;\n\n &:nth-child(2) {\n stroke: ${theme.components.progress['progress-color']};\n transition: stroke-dashoffset calc(0.5 * ${theme.base.animation.speed})\n ${theme.base.animation.timing.ease};\n\n ${!determinate &&\n css`\n animation: LoadingRing calc(4 * ${theme.base.animation.speed}) linear infinite;\n `}\n }\n }\n }\n\n ${placement === 'inline'\n ? css`\n display: inline-flex;\n vertical-align: top;\n `\n : css`\n width: 2rem;\n height: 2rem;\n `}\n `;\n});\n\nStyledProgressRing.defaultProps = defaultThemeProp;\n\nconst Ring: FC<ProgressProps & ForwardProps> = forwardRef(\n (\n {\n value,\n minValue = 0,\n maxValue = 100,\n placement,\n ...restProps\n }: PropsWithoutRef<ProgressProps>,\n ref: ProgressProps['ref']\n ) => {\n let strokeDashoffset;\n const circumference = 18 * Math.PI;\n\n if (typeof value !== 'number') strokeDashoffset = (1 - 33 / 100) * circumference;\n else if (value > maxValue || minValue > maxValue) strokeDashoffset = 0;\n else if (value < minValue) strokeDashoffset = circumference;\n else strokeDashoffset = (1 - (value - minValue) / (maxValue - minValue)) * circumference;\n\n return (\n <StyledProgressRing\n ref={ref}\n role='progressbar'\n aria-valuemin={minValue}\n aria-valuemax={maxValue}\n aria-valuenow={value}\n placement={placement}\n determinate={typeof value === 'number'}\n {...restProps}\n >\n <svg viewBox='0 0 20 20'>\n <circle />\n <circle strokeDasharray={circumference} style={{ strokeDashoffset }} />\n </svg>\n </StyledProgressRing>\n );\n }\n);\n\nexport default Ring;\n"]}
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
1
+ import { ChangeEvent, FC } from 'react';
2
2
  import { FormControlProps } from '../FormControl';
3
3
  import { RadioCheckProps } from '../RadioCheck';
4
4
  import type { ForwardProps, NoChildrenProp } from '../../types';
@@ -27,6 +27,8 @@ export interface RadioButtonProps extends NoChildrenProp {
27
27
  * @default false
28
28
  */
29
29
  indeterminate?: RadioCheckProps['indeterminate'];
30
+ /** Callback invoked when this particular radio button is selected. */
31
+ onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
30
32
  }
31
33
  declare const RB: FC<RadioButtonProps & ForwardProps>;
32
34
  export default RB;
@@ -1 +1 @@
1
- {"version":3,"file":"RadioButton.d.ts","sourceRoot":"","sources":["../../../src/components/RadioButton/RadioButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAmB,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAmB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAEhE,MAA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AAC","sourcesContent":["import { FC, forwardRef, Ref } from 'react';\n\nimport { FormControlProps } from '../FormControl';\nimport RadioCheck, { RadioCheckProps } from '../RadioCheck';\nimport type { ForwardProps, NoChildrenProp } from '../../types';\n\nexport interface RadioButtonProps extends NoChildrenProp {\n /**\n * Sets DOM id for the control and associates label element via 'for' attribute.\n * If an id is not pass, a random id will be generated for any render.\n */\n id?: FormControlProps['id'];\n /** Pass a string or a fragment with an Icon and string. */\n label?: FormControlProps['label'];\n /** Indicate if the field is required. The browser defaults to false. */\n required?: FormControlProps['required'];\n /** Disable the control. The browser defaults to false. */\n disabled?: FormControlProps['disabled'];\n /** Set visual state based on a validation state. */\n status?: FormControlProps['status'];\n /** Sets html name attribute for the underlying control. Useful for mapping to a data field. */\n name?: FormControlProps['name'];\n /** Sets checked prop via onChange when using as controlled component. */\n checked?: RadioCheckProps['checked'];\n /** Initialize checked prop when using as uncontrolled component. */\n defaultChecked?: RadioCheckProps['defaultChecked'];\n /**\n * Sets Radio Button to an an [indeterminate state](https://css-tricks.com/almanac/selectors/i/indeterminate/#indeterminate-radio-buttons).\n * @default false\n */\n indeterminate?: RadioCheckProps['indeterminate'];\n}\n\n// Odd issue with SB doc prop table not being generated when called RadioButton...so using RB\nconst RB: FC<RadioButtonProps & ForwardProps> = forwardRef(\n (props: RadioButtonProps, ref: Ref<HTMLInputElement>) => (\n <RadioCheck {...props} type='radio' ref={ref} />\n )\n);\n\n// Adding here for doc purposes only\nRB.defaultProps = RadioCheck.defaultProps;\n\nexport default RB;\n"]}
1
+ {"version":3,"file":"RadioButton.js","sourceRoot":"","sources":["../../../src/components/RadioButton/RadioButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAmB,UAAU,EAAO,MAAM,OAAO,CAAC;AAGzD,OAAO,UAA+B,MAAM,eAAe,CAAC;AAgC5D,6FAA6F;AAC7F,MAAM,EAAE,GAAwC,UAAU,CACxD,CAAC,KAAuB,EAAE,GAA0B,EAAE,EAAE,CAAC,CACvD,KAAC,UAAU,OAAK,KAAK,EAAE,IAAI,EAAC,OAAO,EAAC,GAAG,EAAE,GAAG,GAAI,CACjD,CACF,CAAC;AAEF,oCAAoC;AACpC,EAAE,CAAC,YAAY,GAAG,UAAU,CAAC,YAAY,CAAC;AAE1C,eAAe,EAAE,CAAC","sourcesContent":["import { ChangeEvent, FC, forwardRef, Ref } from 'react';\n\nimport { FormControlProps } from '../FormControl';\nimport RadioCheck, { RadioCheckProps } from '../RadioCheck';\nimport type { ForwardProps, NoChildrenProp } from '../../types';\n\nexport interface RadioButtonProps extends NoChildrenProp {\n /**\n * Sets DOM id for the control and associates label element via 'for' attribute.\n * If an id is not pass, a random id will be generated for any render.\n */\n id?: FormControlProps['id'];\n /** Pass a string or a fragment with an Icon and string. */\n label?: FormControlProps['label'];\n /** Indicate if the field is required. The browser defaults to false. */\n required?: FormControlProps['required'];\n /** Disable the control. The browser defaults to false. */\n disabled?: FormControlProps['disabled'];\n /** Set visual state based on a validation state. */\n status?: FormControlProps['status'];\n /** Sets html name attribute for the underlying control. Useful for mapping to a data field. */\n name?: FormControlProps['name'];\n /** Sets checked prop via onChange when using as controlled component. */\n checked?: RadioCheckProps['checked'];\n /** Initialize checked prop when using as uncontrolled component. */\n defaultChecked?: RadioCheckProps['defaultChecked'];\n /**\n * Sets Radio Button to an an [indeterminate state](https://css-tricks.com/almanac/selectors/i/indeterminate/#indeterminate-radio-buttons).\n * @default false\n */\n indeterminate?: RadioCheckProps['indeterminate'];\n /** Callback invoked when this particular radio button is selected. */\n onChange?: (e: ChangeEvent<HTMLInputElement>) => void;\n}\n\n// Odd issue with SB doc prop table not being generated when called RadioButton...so using RB\nconst RB: FC<RadioButtonProps & ForwardProps> = forwardRef(\n (props: RadioButtonProps, ref: Ref<HTMLInputElement>) => (\n <RadioCheck {...props} type='radio' ref={ref} />\n )\n);\n\n// Adding here for doc purposes only\nRB.defaultProps = RadioCheck.defaultProps;\n\nexport default RB;\n"]}
@@ -39,6 +39,8 @@ export interface RadioCheckProps extends BaseProps, NoChildrenProp {
39
39
  onClick?: MouseEventHandler<HTMLInputElement>;
40
40
  /** Callback function for onKeyDown events. */
41
41
  onKeyDown?: KeyboardEventHandler<HTMLInputElement>;
42
+ /** Pass a heading and content to show additional information on the field. */
43
+ additionalInfo?: FormControlProps['additionalInfo'];
42
44
  /** Ref forwarded to the underlying input. */
43
45
  ref?: Ref<HTMLInputElement>;
44
46
  }
@@ -1 +1 @@
1
- {"version":3,"file":"RadioCheck.d.ts","sourceRoot":"","sources":["../../../src/components/RadioCheck/RadioCheck.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,EAAE,EACF,GAAG,EAKH,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,OAAO,CAAC;AAKf,OAAO,EAAE,gBAAgB,EAAqB,MAAM,gBAAgB,CAAC;AAGrE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAKtE,MAAM,WAAW,eAAgB,SAAQ,SAAS,EAAE,cAAc;IAChE;;;OAGG;IACH,EAAE,CAAC,EAAE,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAC5B,2DAA2D;IAC3D,KAAK,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAClC,wEAAwE;IACxE,QAAQ,CAAC,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAC;IACxC,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAC;IACxC,qFAAqF;IACrF,QAAQ,CAAC,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAC;IACxC,oDAAoD;IACpD,MAAM,CAAC,EAAE,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IACpC,+FAA+F;IAC/F,IAAI,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAChC,8BAA8B;IAC9B,IAAI,EAAE,OAAO,GAAG,UAAU,CAAC;IAC3B,yEAAyE;IACzE,OAAO,CAAC,EAA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Prop } from '../../theme';
8
8
  import { tryCatch } from '../../utils/utils';
9
- import { useConsolidatedRef, useDirection, useUID } from '../../hooks';
9
+ import { useConsolidatedRef, useDirection, useI18n, useUID } from '../../hooks';
10
10
  import { StyledLabel } from '../Label';
11
11
  import { calculateFontSize } from '../../styles';
12
+ import VisuallyHiddenText from '../VisuallyHiddenText';
12
13
  export const StyledPseudoRadioCheck = styled.div(props => {
13
14
  const { theme: { base: { spacing, palette: { 'primary-background': primaryBackground } }, components: { 'form-field': formField, 'radio-check': { size, 'touch-size': touchSize, 'background-color': backgroundColor, 'border-color': borderColor, 'border-width': borderWidth } } }, status } = props;
14
15
  const useBorderColor = status === 'error' ? formField.error['status-color'] : borderColor;
@@ -38,7 +39,7 @@ export const StyledPseudoRadioCheck = styled.div(props => {
38
39
  });
39
40
  StyledPseudoRadioCheck.defaultProps = defaultThemeProp;
40
41
  export const StyledRadioCheckInput = styled.input(props => {
41
- const { theme: { base: { 'border-radius': baseBorderRadius }, components: { 'form-control': { ':focus': { 'box-shadow': shadow, 'border-color': focusBorderColor }, ':read-only': { 'background-color': readOnlyBackgroundColor } }, 'radio-check': { ':checked': { 'background-color': checkedBackgroundColor, 'border-color': checkedBorderColor } }, checkbox: { 'border-radius': checkRadius }, 'radio-button': { 'border-radius': radioRadius } } } } = props;
42
+ const { disabled, theme: { base: { 'border-radius': baseBorderRadius }, components: { 'form-control': { ':focus': { 'box-shadow': shadow, 'border-color': focusBorderColor }, ':read-only': { 'background-color': readOnlyBackgroundColor } }, 'radio-check': { ':checked': { 'background-color': checkedBackgroundColor, 'border-color': checkedBorderColor } }, checkbox: { 'border-radius': checkRadius }, 'radio-button': { 'border-radius': radioRadius } } } } = props;
42
43
  const backgroundColor = props.readOnly ? readOnlyBackgroundColor : checkedBackgroundColor;
43
44
  const foreground = tryCatch(() => readableColor(backgroundColor));
44
45
  const prcSelector = `+ ${StyledLabel} ${StyledPseudoRadioCheck}`;
@@ -46,7 +47,7 @@ export const StyledRadioCheckInput = styled.input(props => {
46
47
  return css `
47
48
  ${hideVisually}
48
49
 
49
- ${!(props.disabled || props.readOnly) &&
50
+ ${!disabled &&
50
51
  css `
51
52
  &:focus ${prcSelector} {
52
53
  box-shadow: ${shadow};
@@ -185,7 +186,8 @@ export const StyledRadioCheckCard = styled.label(({ disabled, readOnly, status,
185
186
  StyledRadioCheckCard.defaultProps = defaultThemeProp;
186
187
  const RadioCheck = forwardRef((props, ref) => {
187
188
  const uid = useUID();
188
- const { type, id = uid, label, required = false, disabled = false, indeterminate = false, readOnly = false, variant = 'simple', onClick, onKeyDown, status, ...restProps } = props;
189
+ const t = useI18n();
190
+ const { type, id = uid, label, required = false, disabled = false, indeterminate = false, readOnly = false, variant = 'simple', onClick, onKeyDown, status, additionalInfo, ...restProps } = props;
189
191
  const isRadio = type === 'radio';
190
192
  const card = variant === 'card';
191
193
  const newRef = useConsolidatedRef(ref);
@@ -194,7 +196,7 @@ const RadioCheck = forwardRef((props, ref) => {
194
196
  newRef.current.indeterminate = !!indeterminate;
195
197
  }
196
198
  }, [newRef, indeterminate, isRadio]);
197
- return (_jsx(FormField, { as: card ? StyledRadioCheckCard : StyledRadioCheck, label: _jsxs(_Fragment, { children: [_jsx(StyledPseudoRadioCheck, { status: status, isRadio: isRadio, as: StyledFormControl, required: required, disabled: disabled, readOnly: readOnly }), label] }), labelAs: card ? 'div' : undefined, id: id, required: required, disabled: disabled, readOnly: readOnly, status: status, inline: true, labelAfter: true, children: _jsx(StyledRadioCheckInput, { ...restProps, id: id, type: type, required: required, disabled: disabled, readOnly: readOnly, "aria-readonly": readOnly, onClick: (e) => {
199
+ return (_jsx(FormField, { as: card ? StyledRadioCheckCard : StyledRadioCheck, label: _jsxs(_Fragment, { children: [_jsx(StyledPseudoRadioCheck, { status: status, isRadio: isRadio, as: StyledFormControl, required: required, disabled: disabled, readOnly: readOnly }), _jsxs(_Fragment, { children: [label, readOnly && _jsx(VisuallyHiddenText, { children: ` ${t('read_only')}` })] })] }), labelAs: card ? 'div' : undefined, id: id, required: required, disabled: disabled, readOnly: readOnly, status: status, isRadioCheck: true, inline: true, labelAfter: true, additionalInfo: additionalInfo, children: _jsx(StyledRadioCheckInput, { ...restProps, id: id, type: type, required: required, disabled: disabled, readOnly: readOnly, onClick: (e) => {
198
200
  if (readOnly)
199
201
  e.preventDefault();
200
202
  onClick?.(e);