@pega/cosmos-react-core 9.0.0-build.9.8 → 9.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1414) hide show
  1. package/lib/components/AIButton/AIButton.d.ts +3 -1
  2. package/lib/components/AIButton/AIButton.d.ts.map +1 -1
  3. package/lib/components/AIRewrite/AIRewrite.d.ts +4 -0
  4. package/lib/components/AIRewrite/AIRewrite.d.ts.map +1 -0
  5. package/lib/components/AIRewrite/AIRewrite.js +39 -0
  6. package/lib/components/AIRewrite/AIRewrite.js.map +1 -0
  7. package/lib/components/AIRewrite/AIRewrite.styles.d.ts +24 -0
  8. package/lib/components/AIRewrite/AIRewrite.styles.d.ts.map +1 -0
  9. package/lib/components/AIRewrite/AIRewrite.styles.js +24 -0
  10. package/lib/components/AIRewrite/AIRewrite.styles.js.map +1 -0
  11. package/lib/components/AIRewrite/AIRewrite.test-ids.d.ts +2 -0
  12. package/lib/components/AIRewrite/AIRewrite.test-ids.d.ts.map +1 -0
  13. package/lib/components/AIRewrite/AIRewrite.test-ids.js +10 -0
  14. package/lib/components/AIRewrite/AIRewrite.test-ids.js.map +1 -0
  15. package/lib/components/AIRewrite/AIRewrite.types.d.ts +21 -0
  16. package/lib/components/AIRewrite/AIRewrite.types.d.ts.map +1 -0
  17. package/lib/components/AIRewrite/AIRewrite.types.js +2 -0
  18. package/lib/components/AIRewrite/AIRewrite.types.js.map +1 -0
  19. package/lib/components/AIRewrite/index.d.ts +4 -0
  20. package/lib/components/AIRewrite/index.d.ts.map +1 -0
  21. package/lib/components/AIRewrite/index.js +3 -0
  22. package/lib/components/AIRewrite/index.js.map +1 -0
  23. package/lib/components/Actions/Actions.d.ts +2 -0
  24. package/lib/components/Actions/Actions.d.ts.map +1 -1
  25. package/lib/components/Actions/Actions.js +34 -8
  26. package/lib/components/Actions/Actions.js.map +1 -1
  27. package/lib/components/AdditionalInfo/AdditionalInfo.d.ts +1 -1
  28. package/lib/components/AdditionalInfo/AdditionalInfo.d.ts.map +1 -1
  29. package/lib/components/AppShell/AppHeader.d.ts.map +1 -1
  30. package/lib/components/AppShell/AppHeader.js +11 -2
  31. package/lib/components/AppShell/AppHeader.js.map +1 -1
  32. package/lib/components/AppShell/AppHeader.styles.d.ts +14 -12
  33. package/lib/components/AppShell/AppHeader.styles.d.ts.map +1 -1
  34. package/lib/components/AppShell/AppHeader.styles.js +36 -16
  35. package/lib/components/AppShell/AppHeader.styles.js.map +1 -1
  36. package/lib/components/AppShell/AppNavigationPanel.d.ts +14 -0
  37. package/lib/components/AppShell/AppNavigationPanel.d.ts.map +1 -0
  38. package/lib/components/AppShell/AppNavigationPanel.js +173 -0
  39. package/lib/components/AppShell/AppNavigationPanel.js.map +1 -0
  40. package/lib/components/AppShell/AppNavigationPanel.types.d.ts +28 -0
  41. package/lib/components/AppShell/AppNavigationPanel.types.d.ts.map +1 -0
  42. package/lib/components/AppShell/AppNavigationPanel.types.js +2 -0
  43. package/lib/components/AppShell/AppNavigationPanel.types.js.map +1 -0
  44. package/lib/components/AppShell/AppShell.d.ts +2 -5
  45. package/lib/components/AppShell/AppShell.d.ts.map +1 -1
  46. package/lib/components/AppShell/AppShell.js +213 -202
  47. package/lib/components/AppShell/AppShell.js.map +1 -1
  48. package/lib/components/AppShell/AppShell.styles.d.ts +243 -31
  49. package/lib/components/AppShell/AppShell.styles.d.ts.map +1 -1
  50. package/lib/components/AppShell/AppShell.styles.js +574 -128
  51. package/lib/components/AppShell/AppShell.styles.js.map +1 -1
  52. package/lib/components/AppShell/AppShell.types.d.ts +42 -5
  53. package/lib/components/AppShell/AppShell.types.d.ts.map +1 -1
  54. package/lib/components/AppShell/AppShell.types.js.map +1 -1
  55. package/lib/components/AppShell/AppShellContext.d.ts +6 -2
  56. package/lib/components/AppShell/AppShellContext.d.ts.map +1 -1
  57. package/lib/components/AppShell/AppShellContext.js +5 -9
  58. package/lib/components/AppShell/AppShellContext.js.map +1 -1
  59. package/lib/components/AppShell/AppShellList.styles.d.ts +14 -14
  60. package/lib/components/AppShell/AppShellList.styles.d.ts.map +1 -1
  61. package/lib/components/AppShell/AppShellList.styles.js +0 -1
  62. package/lib/components/AppShell/AppShellList.styles.js.map +1 -1
  63. package/lib/components/AppShell/AppShellSearch.d.ts.map +1 -1
  64. package/lib/components/AppShell/AppShellSearch.js +2 -4
  65. package/lib/components/AppShell/AppShellSearch.js.map +1 -1
  66. package/lib/components/AppShell/AppShellSearch.styles.d.ts +7 -5
  67. package/lib/components/AppShell/AppShellSearch.styles.d.ts.map +1 -1
  68. package/lib/components/AppShell/AppShellSearch.styles.js +3 -3
  69. package/lib/components/AppShell/AppShellSearch.styles.js.map +1 -1
  70. package/lib/components/AppShell/AppTopNav.d.ts +4 -0
  71. package/lib/components/AppShell/AppTopNav.d.ts.map +1 -0
  72. package/lib/components/AppShell/AppTopNav.js +183 -0
  73. package/lib/components/AppShell/AppTopNav.js.map +1 -0
  74. package/lib/components/AppShell/AppTopNav.styles.d.ts +946 -0
  75. package/lib/components/AppShell/AppTopNav.styles.d.ts.map +1 -0
  76. package/lib/components/AppShell/AppTopNav.styles.js +184 -0
  77. package/lib/components/AppShell/AppTopNav.styles.js.map +1 -0
  78. package/lib/components/AppShell/AppTopNav.types.d.ts +16 -0
  79. package/lib/components/AppShell/AppTopNav.types.d.ts.map +1 -0
  80. package/lib/components/AppShell/AppTopNav.types.js +2 -0
  81. package/lib/components/AppShell/AppTopNav.types.js.map +1 -0
  82. package/lib/components/AppShell/Drawer.d.ts +2 -1
  83. package/lib/components/AppShell/Drawer.d.ts.map +1 -1
  84. package/lib/components/AppShell/Drawer.js +15 -14
  85. package/lib/components/AppShell/Drawer.js.map +1 -1
  86. package/lib/components/AppShell/Drawer.styles.d.ts +22 -11
  87. package/lib/components/AppShell/Drawer.styles.d.ts.map +1 -1
  88. package/lib/components/AppShell/Drawer.styles.js +37 -40
  89. package/lib/components/AppShell/Drawer.styles.js.map +1 -1
  90. package/lib/components/AppShell/NavigationList.d.ts.map +1 -1
  91. package/lib/components/AppShell/NavigationList.js +17 -13
  92. package/lib/components/AppShell/NavigationList.js.map +1 -1
  93. package/lib/components/AppShell/NavigationListItemWrapper.d.ts.map +1 -1
  94. package/lib/components/AppShell/NavigationListItemWrapper.js +125 -65
  95. package/lib/components/AppShell/NavigationListItemWrapper.js.map +1 -1
  96. package/lib/components/AppShell/ThemeSwitcher.d.ts +11 -0
  97. package/lib/components/AppShell/ThemeSwitcher.d.ts.map +1 -0
  98. package/lib/components/AppShell/ThemeSwitcher.js +58 -0
  99. package/lib/components/AppShell/ThemeSwitcher.js.map +1 -0
  100. package/lib/components/AppShell/ThemeSwitcher.test-ids.d.ts +2 -0
  101. package/lib/components/AppShell/ThemeSwitcher.test-ids.d.ts.map +1 -0
  102. package/lib/components/AppShell/ThemeSwitcher.test-ids.js +3 -0
  103. package/lib/components/AppShell/ThemeSwitcher.test-ids.js.map +1 -0
  104. package/lib/components/AppShell/TopNavMoreMenu.d.ts +9 -0
  105. package/lib/components/AppShell/TopNavMoreMenu.d.ts.map +1 -0
  106. package/lib/components/AppShell/TopNavMoreMenu.js +73 -0
  107. package/lib/components/AppShell/TopNavMoreMenu.js.map +1 -0
  108. package/lib/components/AppShell/index.d.ts +2 -1
  109. package/lib/components/AppShell/index.d.ts.map +1 -1
  110. package/lib/components/AppShell/index.js +1 -0
  111. package/lib/components/AppShell/index.js.map +1 -1
  112. package/lib/components/AppShell/style-utils.d.ts +0 -1
  113. package/lib/components/AppShell/style-utils.d.ts.map +1 -1
  114. package/lib/components/AppShell/style-utils.js +0 -1
  115. package/lib/components/AppShell/style-utils.js.map +1 -1
  116. package/lib/components/AppShell/useTopNavOverflow.d.ts +17 -0
  117. package/lib/components/AppShell/useTopNavOverflow.d.ts.map +1 -0
  118. package/lib/components/AppShell/useTopNavOverflow.js +73 -0
  119. package/lib/components/AppShell/useTopNavOverflow.js.map +1 -0
  120. package/lib/components/AppShell/utils.d.ts +9 -0
  121. package/lib/components/AppShell/utils.d.ts.map +1 -1
  122. package/lib/components/AppShell/utils.js +16 -1
  123. package/lib/components/AppShell/utils.js.map +1 -1
  124. package/lib/components/Avatar/Avatar.d.ts +9 -5
  125. package/lib/components/Avatar/Avatar.d.ts.map +1 -1
  126. package/lib/components/Avatar/Avatar.js +13 -8
  127. package/lib/components/Avatar/Avatar.js.map +1 -1
  128. package/lib/components/Backdrop/Backdrop.d.ts +186 -3
  129. package/lib/components/Backdrop/Backdrop.d.ts.map +1 -1
  130. package/lib/components/Backdrop/Backdrop.js +20 -21
  131. package/lib/components/Backdrop/Backdrop.js.map +1 -1
  132. package/lib/components/Badges/Alert.d.ts +1 -1
  133. package/lib/components/Badges/Alert.d.ts.map +1 -1
  134. package/lib/components/Badges/Count.d.ts +4 -2
  135. package/lib/components/Badges/Count.d.ts.map +1 -1
  136. package/lib/components/Badges/Count.js +9 -3
  137. package/lib/components/Badges/Count.js.map +1 -1
  138. package/lib/components/Badges/Keyboard.d.ts +1 -1
  139. package/lib/components/Badges/Keyboard.d.ts.map +1 -1
  140. package/lib/components/Badges/Keyboard.js +8 -2
  141. package/lib/components/Badges/Keyboard.js.map +1 -1
  142. package/lib/components/Badges/Selection.d.ts +8 -4
  143. package/lib/components/Badges/Selection.d.ts.map +1 -1
  144. package/lib/components/Badges/Selection.js +23 -7
  145. package/lib/components/Badges/Selection.js.map +1 -1
  146. package/lib/components/Badges/Status.d.ts +2 -2
  147. package/lib/components/Badges/Status.d.ts.map +1 -1
  148. package/lib/components/Badges/Tag.d.ts +10 -2
  149. package/lib/components/Badges/Tag.d.ts.map +1 -1
  150. package/lib/components/Badges/Tag.js.map +1 -1
  151. package/lib/components/Banner/Banner.d.ts +10 -13
  152. package/lib/components/Banner/Banner.d.ts.map +1 -1
  153. package/lib/components/Banner/Banner.js +49 -102
  154. package/lib/components/Banner/Banner.js.map +1 -1
  155. package/lib/components/Banner/Banner.styles.d.ts +22 -0
  156. package/lib/components/Banner/Banner.styles.d.ts.map +1 -0
  157. package/lib/components/Banner/Banner.styles.js +84 -0
  158. package/lib/components/Banner/Banner.styles.js.map +1 -0
  159. package/lib/components/Breadcrumbs/Breadcrumbs.d.ts +2 -3
  160. package/lib/components/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  161. package/lib/components/Button/BareButton.d.ts +1 -1
  162. package/lib/components/Button/BareButton.d.ts.map +1 -1
  163. package/lib/components/Button/BareButton.js +4 -1
  164. package/lib/components/Button/BareButton.js.map +1 -1
  165. package/lib/components/Button/BareRoleButton.d.ts +1 -1
  166. package/lib/components/Button/BareRoleButton.d.ts.map +1 -1
  167. package/lib/components/Button/Button.d.ts +7 -3
  168. package/lib/components/Button/Button.d.ts.map +1 -1
  169. package/lib/components/Button/Button.js +22 -8
  170. package/lib/components/Button/Button.js.map +1 -1
  171. package/lib/components/Card/Card.d.ts +3 -3
  172. package/lib/components/Card/Card.d.ts.map +1 -1
  173. package/lib/components/Card/Card.js +25 -25
  174. package/lib/components/Card/Card.js.map +1 -1
  175. package/lib/components/Card/Card.test-ids.d.ts +2 -0
  176. package/lib/components/Card/Card.test-ids.d.ts.map +1 -0
  177. package/lib/components/Card/Card.test-ids.js +3 -0
  178. package/lib/components/Card/Card.test-ids.js.map +1 -0
  179. package/lib/components/Card/CardContent.d.ts +1 -1
  180. package/lib/components/Card/CardContent.d.ts.map +1 -1
  181. package/lib/components/Card/CardContent.js +6 -1
  182. package/lib/components/Card/CardContent.js.map +1 -1
  183. package/lib/components/Card/CardFooter.d.ts +1 -1
  184. package/lib/components/Card/CardFooter.d.ts.map +1 -1
  185. package/lib/components/Card/CardFooter.js +4 -0
  186. package/lib/components/Card/CardFooter.js.map +1 -1
  187. package/lib/components/Card/CardHeader.d.ts +1 -1
  188. package/lib/components/Card/CardHeader.d.ts.map +1 -1
  189. package/lib/components/Card/CardHeader.js +19 -3
  190. package/lib/components/Card/CardHeader.js.map +1 -1
  191. package/lib/components/Card/CardMedia.d.ts +1 -1
  192. package/lib/components/Card/CardMedia.d.ts.map +1 -1
  193. package/lib/components/Checkbox/Checkbox.test-ids.d.ts +1 -1
  194. package/lib/components/Checkbox/Checkbox.test-ids.d.ts.map +1 -1
  195. package/lib/components/Checkbox/CheckboxCard.d.ts +11 -3
  196. package/lib/components/Checkbox/CheckboxCard.d.ts.map +1 -1
  197. package/lib/components/Checkbox/CheckboxCard.js +5 -22
  198. package/lib/components/Checkbox/CheckboxCard.js.map +1 -1
  199. package/lib/components/CheckboxGroup/CheckboxGroup.d.ts +7 -0
  200. package/lib/components/CheckboxGroup/CheckboxGroup.d.ts.map +1 -0
  201. package/lib/components/CheckboxGroup/CheckboxGroup.js +10 -0
  202. package/lib/components/CheckboxGroup/CheckboxGroup.js.map +1 -0
  203. package/lib/components/CheckboxGroup/index.d.ts +2 -1
  204. package/lib/components/CheckboxGroup/index.d.ts.map +1 -1
  205. package/lib/components/CheckboxGroup/index.js +1 -1
  206. package/lib/components/CheckboxGroup/index.js.map +1 -1
  207. package/lib/components/ClassificationMarking/ClassificationMarking.d.ts +6 -0
  208. package/lib/components/ClassificationMarking/ClassificationMarking.d.ts.map +1 -0
  209. package/lib/components/ClassificationMarking/ClassificationMarking.js +11 -0
  210. package/lib/components/ClassificationMarking/ClassificationMarking.js.map +1 -0
  211. package/lib/components/ClassificationMarking/ClassificationMarking.styles.d.ts +19 -0
  212. package/lib/components/ClassificationMarking/ClassificationMarking.styles.d.ts.map +1 -0
  213. package/lib/components/ClassificationMarking/ClassificationMarking.styles.js +66 -0
  214. package/lib/components/ClassificationMarking/ClassificationMarking.styles.js.map +1 -0
  215. package/lib/components/ClassificationMarking/ClassificationMarking.test-ids.d.ts +2 -0
  216. package/lib/components/ClassificationMarking/ClassificationMarking.test-ids.d.ts.map +1 -0
  217. package/lib/components/ClassificationMarking/ClassificationMarking.test-ids.js +7 -0
  218. package/lib/components/ClassificationMarking/ClassificationMarking.test-ids.js.map +1 -0
  219. package/lib/components/ClassificationMarking/ClassificationMarking.types.d.ts +19 -0
  220. package/lib/components/ClassificationMarking/ClassificationMarking.types.d.ts.map +1 -0
  221. package/lib/components/ClassificationMarking/ClassificationMarking.types.js +2 -0
  222. package/lib/components/ClassificationMarking/ClassificationMarking.types.js.map +1 -0
  223. package/lib/components/ClassificationMarking/index.d.ts +3 -0
  224. package/lib/components/ClassificationMarking/index.d.ts.map +1 -0
  225. package/lib/components/ClassificationMarking/index.js +2 -0
  226. package/lib/components/ClassificationMarking/index.js.map +1 -0
  227. package/lib/components/ComboBox/ComboBox.d.ts.map +1 -1
  228. package/lib/components/ComboBox/ComboBox.js +9 -8
  229. package/lib/components/ComboBox/ComboBox.js.map +1 -1
  230. package/lib/components/ComboBox/ComboBox.styles.d.ts +8 -3
  231. package/lib/components/ComboBox/ComboBox.styles.d.ts.map +1 -1
  232. package/lib/components/ComboBox/ComboBox.styles.js +33 -16
  233. package/lib/components/ComboBox/ComboBox.styles.js.map +1 -1
  234. package/lib/components/ComboBox/ComboBox.types.d.ts +1 -0
  235. package/lib/components/ComboBox/ComboBox.types.d.ts.map +1 -1
  236. package/lib/components/ComboBox/ComboBox.types.js.map +1 -1
  237. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.d.ts +3 -1
  238. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.d.ts.map +1 -1
  239. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.js +84 -10
  240. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.js.map +1 -1
  241. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.types.d.ts +2 -0
  242. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.types.d.ts.map +1 -1
  243. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.types.js.map +1 -1
  244. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.d.ts +3 -1
  245. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.d.ts.map +1 -1
  246. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.js +33 -4
  247. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.js.map +1 -1
  248. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.types.d.ts +2 -0
  249. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.types.d.ts.map +1 -1
  250. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.types.js.map +1 -1
  251. package/lib/components/ComboBox/index.d.ts +1 -0
  252. package/lib/components/ComboBox/index.d.ts.map +1 -1
  253. package/lib/components/ComboBox/index.js +1 -0
  254. package/lib/components/ComboBox/index.js.map +1 -1
  255. package/lib/components/CompositeInput/CompositeInput.d.ts.map +1 -1
  256. package/lib/components/CompositeInput/CompositeInput.js +7 -9
  257. package/lib/components/CompositeInput/CompositeInput.js.map +1 -1
  258. package/lib/components/CompositeInput/CompositeInput.styles.d.ts +8 -3
  259. package/lib/components/CompositeInput/CompositeInput.styles.d.ts.map +1 -1
  260. package/lib/components/CompositeInput/CompositeInput.styles.js +31 -1
  261. package/lib/components/CompositeInput/CompositeInput.styles.js.map +1 -1
  262. package/lib/components/Configuration/Configuration.d.ts +8 -3
  263. package/lib/components/Configuration/Configuration.d.ts.map +1 -1
  264. package/lib/components/Configuration/Configuration.js +17 -3
  265. package/lib/components/Configuration/Configuration.js.map +1 -1
  266. package/lib/components/Configuration/LocaleOverride.d.ts +10 -0
  267. package/lib/components/Configuration/LocaleOverride.d.ts.map +1 -0
  268. package/lib/components/Configuration/LocaleOverride.js +23 -0
  269. package/lib/components/Configuration/LocaleOverride.js.map +1 -0
  270. package/lib/components/Configuration/index.d.ts +2 -0
  271. package/lib/components/Configuration/index.d.ts.map +1 -1
  272. package/lib/components/Configuration/index.js +1 -0
  273. package/lib/components/Configuration/index.js.map +1 -1
  274. package/lib/components/CreditCard/CreditCard.types.d.ts +4 -0
  275. package/lib/components/CreditCard/CreditCard.types.d.ts.map +1 -1
  276. package/lib/components/CreditCard/CreditCard.types.js.map +1 -1
  277. package/lib/components/CreditCard/CreditCardInput.d.ts +2 -1
  278. package/lib/components/CreditCard/CreditCardInput.d.ts.map +1 -1
  279. package/lib/components/CreditCard/CreditCardInput.js +1 -1
  280. package/lib/components/CreditCard/CreditCardInput.js.map +1 -1
  281. package/lib/components/Currency/CurrencyInput.js +1 -1
  282. package/lib/components/Currency/CurrencyInput.js.map +1 -1
  283. package/lib/components/Currency/CurrencyInput.styles.d.ts +4 -2
  284. package/lib/components/Currency/CurrencyInput.styles.d.ts.map +1 -1
  285. package/lib/components/DangerButton/DangerButton.d.ts +3 -1
  286. package/lib/components/DangerButton/DangerButton.d.ts.map +1 -1
  287. package/lib/components/DateTime/DateTime.types.d.ts +7 -1
  288. package/lib/components/DateTime/DateTime.types.d.ts.map +1 -1
  289. package/lib/components/DateTime/DateTime.types.js.map +1 -1
  290. package/lib/components/DateTime/DateTimeDisplay.d.ts +1 -1
  291. package/lib/components/DateTime/DateTimeDisplay.d.ts.map +1 -1
  292. package/lib/components/DateTime/Input/DateInput.d.ts +7 -2
  293. package/lib/components/DateTime/Input/DateInput.d.ts.map +1 -1
  294. package/lib/components/DateTime/Input/DateInput.js +16 -8
  295. package/lib/components/DateTime/Input/DateInput.js.map +1 -1
  296. package/lib/components/DateTime/Input/DateRangeInput.d.ts.map +1 -1
  297. package/lib/components/DateTime/Input/DateRangeInput.js +10 -4
  298. package/lib/components/DateTime/Input/DateRangeInput.js.map +1 -1
  299. package/lib/components/DateTime/Input/DateTime.styles.d.ts +11 -7
  300. package/lib/components/DateTime/Input/DateTime.styles.d.ts.map +1 -1
  301. package/lib/components/DateTime/Input/DateTime.styles.js +5 -2
  302. package/lib/components/DateTime/Input/DateTime.styles.js.map +1 -1
  303. package/lib/components/DateTime/Input/DateTimeInput.d.ts +4 -2
  304. package/lib/components/DateTime/Input/DateTimeInput.d.ts.map +1 -1
  305. package/lib/components/DateTime/Input/DateTimeInput.js +20 -14
  306. package/lib/components/DateTime/Input/DateTimeInput.js.map +1 -1
  307. package/lib/components/DateTime/Input/DayOfWeekInput.d.ts.map +1 -1
  308. package/lib/components/DateTime/Input/DayOfWeekInput.js.map +1 -1
  309. package/lib/components/DateTime/Input/Duration/DurationInput.d.ts.map +1 -1
  310. package/lib/components/DateTime/Input/Duration/DurationInput.js +2 -4
  311. package/lib/components/DateTime/Input/Duration/DurationInput.js.map +1 -1
  312. package/lib/components/DateTime/Input/Duration/NumberUnit.d.ts +3 -1
  313. package/lib/components/DateTime/Input/Duration/NumberUnit.d.ts.map +1 -1
  314. package/lib/components/DateTime/Input/MonthInput.d.ts +3 -1
  315. package/lib/components/DateTime/Input/MonthInput.d.ts.map +1 -1
  316. package/lib/components/DateTime/Input/MonthInput.js +6 -8
  317. package/lib/components/DateTime/Input/MonthInput.js.map +1 -1
  318. package/lib/components/DateTime/Input/PartInput.d.ts.map +1 -1
  319. package/lib/components/DateTime/Input/PartInput.js +21 -12
  320. package/lib/components/DateTime/Input/PartInput.js.map +1 -1
  321. package/lib/components/DateTime/Input/QuarterInput.d.ts +3 -1
  322. package/lib/components/DateTime/Input/QuarterInput.d.ts.map +1 -1
  323. package/lib/components/DateTime/Input/QuarterInput.js +2 -2
  324. package/lib/components/DateTime/Input/QuarterInput.js.map +1 -1
  325. package/lib/components/DateTime/Input/TimeInput.d.ts +3 -1
  326. package/lib/components/DateTime/Input/TimeInput.d.ts.map +1 -1
  327. package/lib/components/DateTime/Input/TimeInput.js +3 -3
  328. package/lib/components/DateTime/Input/TimeInput.js.map +1 -1
  329. package/lib/components/DateTime/Input/TimeRangeInput.d.ts.map +1 -1
  330. package/lib/components/DateTime/Input/TimeRangeInput.js +9 -4
  331. package/lib/components/DateTime/Input/TimeRangeInput.js.map +1 -1
  332. package/lib/components/DateTime/Input/WeekInput.d.ts +3 -1
  333. package/lib/components/DateTime/Input/WeekInput.d.ts.map +1 -1
  334. package/lib/components/DateTime/Input/WeekInput.js +23 -12
  335. package/lib/components/DateTime/Input/WeekInput.js.map +1 -1
  336. package/lib/components/DateTime/Input/local.d.ts +10 -9
  337. package/lib/components/DateTime/Input/local.d.ts.map +1 -1
  338. package/lib/components/DateTime/Input/local.js.map +1 -1
  339. package/lib/components/DateTime/Input/utils.d.ts +11 -11
  340. package/lib/components/DateTime/Input/utils.d.ts.map +1 -1
  341. package/lib/components/DateTime/Input/utils.js +77 -48
  342. package/lib/components/DateTime/Input/utils.js.map +1 -1
  343. package/lib/components/DateTime/Picker/Calendar.d.ts +4 -1
  344. package/lib/components/DateTime/Picker/Calendar.d.ts.map +1 -1
  345. package/lib/components/DateTime/Picker/Calendar.js +28 -26
  346. package/lib/components/DateTime/Picker/Calendar.js.map +1 -1
  347. package/lib/components/DateTime/Picker/Calendar.styles.d.ts +14 -8
  348. package/lib/components/DateTime/Picker/Calendar.styles.d.ts.map +1 -1
  349. package/lib/components/DateTime/Picker/Calendar.styles.js +6 -1
  350. package/lib/components/DateTime/Picker/Calendar.styles.js.map +1 -1
  351. package/lib/components/DateTime/Picker/DatePicker.d.ts.map +1 -1
  352. package/lib/components/DateTime/Picker/DatePicker.js +15 -15
  353. package/lib/components/DateTime/Picker/DatePicker.js.map +1 -1
  354. package/lib/components/DateTime/Picker/DatePicker.styles.d.ts +8 -4
  355. package/lib/components/DateTime/Picker/DatePicker.styles.d.ts.map +1 -1
  356. package/lib/components/DateTime/Picker/DatePicker.styles.js +5 -4
  357. package/lib/components/DateTime/Picker/DatePicker.styles.js.map +1 -1
  358. package/lib/components/DateTime/Picker/DatePicker.types.d.ts +11 -1
  359. package/lib/components/DateTime/Picker/DatePicker.types.d.ts.map +1 -1
  360. package/lib/components/DateTime/Picker/DatePicker.types.js.map +1 -1
  361. package/lib/components/DateTime/Picker/DateRangePicker.d.ts.map +1 -1
  362. package/lib/components/DateTime/Picker/DateRangePicker.js +15 -15
  363. package/lib/components/DateTime/Picker/DateRangePicker.js.map +1 -1
  364. package/lib/components/DateTime/Picker/TimePicker.d.ts +2 -0
  365. package/lib/components/DateTime/Picker/TimePicker.d.ts.map +1 -1
  366. package/lib/components/DateTime/Picker/TimePicker.js +19 -11
  367. package/lib/components/DateTime/Picker/TimePicker.js.map +1 -1
  368. package/lib/components/DateTime/Picker/Weeks.d.ts +3 -2
  369. package/lib/components/DateTime/Picker/Weeks.d.ts.map +1 -1
  370. package/lib/components/DateTime/Picker/Weeks.js +7 -7
  371. package/lib/components/DateTime/Picker/Weeks.js.map +1 -1
  372. package/lib/components/DateTime/Picker/utils.d.ts +4 -3
  373. package/lib/components/DateTime/Picker/utils.d.ts.map +1 -1
  374. package/lib/components/DateTime/Picker/utils.js.map +1 -1
  375. package/lib/components/DateTime/utils.d.ts +8 -1
  376. package/lib/components/DateTime/utils.d.ts.map +1 -1
  377. package/lib/components/DateTime/utils.js +86 -82
  378. package/lib/components/DateTime/utils.js.map +1 -1
  379. package/lib/components/Dialog/Dialog.styles.d.ts +5 -5
  380. package/lib/components/Dialog/Dialog.styles.d.ts.map +1 -1
  381. package/lib/components/Dialog/Dialog.styles.js +7 -0
  382. package/lib/components/Dialog/Dialog.styles.js.map +1 -1
  383. package/lib/components/Dialog/Dialog.types.d.ts +5 -2
  384. package/lib/components/Dialog/Dialog.types.d.ts.map +1 -1
  385. package/lib/components/Dialog/Dialog.types.js.map +1 -1
  386. package/lib/components/Dialog/FormDialog.d.ts +3 -1
  387. package/lib/components/Dialog/FormDialog.d.ts.map +1 -1
  388. package/lib/components/Dialog/FormDialog.js +20 -15
  389. package/lib/components/Dialog/FormDialog.js.map +1 -1
  390. package/lib/components/Dialog/InfoDialog.d.ts.map +1 -1
  391. package/lib/components/Dialog/InfoDialog.js +15 -14
  392. package/lib/components/Dialog/InfoDialog.js.map +1 -1
  393. package/lib/components/Dialog/InfoDialog.styles.d.ts +6 -2
  394. package/lib/components/Dialog/InfoDialog.styles.d.ts.map +1 -1
  395. package/lib/components/Drawer/Drawer.d.ts +2 -2
  396. package/lib/components/Drawer/Drawer.d.ts.map +1 -1
  397. package/lib/components/Drawer/Drawer.js +9 -0
  398. package/lib/components/Drawer/Drawer.js.map +1 -1
  399. package/lib/components/Drawer/ResizeHandle.d.ts +2 -1
  400. package/lib/components/Drawer/ResizeHandle.d.ts.map +1 -1
  401. package/lib/components/Drawer/ResizeHandle.js +3 -2
  402. package/lib/components/Drawer/ResizeHandle.js.map +1 -1
  403. package/lib/components/EmojiPicker/EmojiPicker.styles.d.ts +2 -2
  404. package/lib/components/EmojiPicker/EmojiPicker.styles.d.ts.map +1 -1
  405. package/lib/components/EmojiPicker/EmojiPicker.styles.js +1 -1
  406. package/lib/components/EmojiPicker/EmojiPicker.styles.js.map +1 -1
  407. package/lib/components/EmptyState/EmptyState.d.ts +1 -1
  408. package/lib/components/EmptyState/EmptyState.d.ts.map +1 -1
  409. package/lib/components/ErrorState/ErrorState.d.ts +1 -1
  410. package/lib/components/ErrorState/ErrorState.d.ts.map +1 -1
  411. package/lib/components/ExpandCollapse/ExpandCollapseButton.d.ts +32 -0
  412. package/lib/components/ExpandCollapse/ExpandCollapseButton.d.ts.map +1 -0
  413. package/lib/components/ExpandCollapse/ExpandCollapseButton.js +81 -0
  414. package/lib/components/ExpandCollapse/ExpandCollapseButton.js.map +1 -0
  415. package/lib/components/ExpandCollapse/index.d.ts +2 -0
  416. package/lib/components/ExpandCollapse/index.d.ts.map +1 -1
  417. package/lib/components/ExpandCollapse/index.js +1 -0
  418. package/lib/components/ExpandCollapse/index.js.map +1 -1
  419. package/lib/components/FieldGroup/FieldGroup.d.ts +381 -8
  420. package/lib/components/FieldGroup/FieldGroup.d.ts.map +1 -1
  421. package/lib/components/FieldGroup/FieldGroup.js +27 -22
  422. package/lib/components/FieldGroup/FieldGroup.js.map +1 -1
  423. package/lib/components/FieldGroup/FieldGroupList.d.ts +2 -2
  424. package/lib/components/FieldGroup/FieldGroupList.d.ts.map +1 -1
  425. package/lib/components/FieldGroup/FieldGroupList.js +61 -48
  426. package/lib/components/FieldGroup/FieldGroupList.js.map +1 -1
  427. package/lib/components/FieldValueList/FieldValueList.d.ts +13 -4
  428. package/lib/components/FieldValueList/FieldValueList.d.ts.map +1 -1
  429. package/lib/components/FieldValueList/FieldValueList.js +20 -9
  430. package/lib/components/FieldValueList/FieldValueList.js.map +1 -1
  431. package/lib/components/FieldValueList/index.d.ts +1 -1
  432. package/lib/components/FieldValueList/index.d.ts.map +1 -1
  433. package/lib/components/FieldValueList/index.js +1 -1
  434. package/lib/components/FieldValueList/index.js.map +1 -1
  435. package/lib/components/File/FileDisplay.d.ts +1 -1
  436. package/lib/components/File/FileDisplay.d.ts.map +1 -1
  437. package/lib/components/File/FileDisplay.js +2 -2
  438. package/lib/components/File/FileDisplay.js.map +1 -1
  439. package/lib/components/File/FileInput.d.ts.map +1 -1
  440. package/lib/components/File/FileInput.js +11 -21
  441. package/lib/components/File/FileInput.js.map +1 -1
  442. package/lib/components/File/FileInput.styles.d.ts +753 -17
  443. package/lib/components/File/FileInput.styles.d.ts.map +1 -1
  444. package/lib/components/File/FileInput.styles.js +16 -18
  445. package/lib/components/File/FileInput.styles.js.map +1 -1
  446. package/lib/components/File/FileItem.d.ts +11 -3
  447. package/lib/components/File/FileItem.d.ts.map +1 -1
  448. package/lib/components/File/FileItem.js +29 -12
  449. package/lib/components/File/FileItem.js.map +1 -1
  450. package/lib/components/File/FileList.d.ts +184 -2
  451. package/lib/components/File/FileList.d.ts.map +1 -1
  452. package/lib/components/File/FileList.js.map +1 -1
  453. package/lib/components/File/FileUploadItem.js +1 -1
  454. package/lib/components/File/FileUploadItem.js.map +1 -1
  455. package/lib/components/File/FileVisual.d.ts +4 -3
  456. package/lib/components/File/FileVisual.d.ts.map +1 -1
  457. package/lib/components/Flex/Flex.d.ts +1 -1
  458. package/lib/components/Flex/Flex.d.ts.map +1 -1
  459. package/lib/components/Flex/Flex.js +1 -1
  460. package/lib/components/Flex/Flex.js.map +1 -1
  461. package/lib/components/FormControl/FormControl.d.ts +2 -2
  462. package/lib/components/FormControl/FormControl.d.ts.map +1 -1
  463. package/lib/components/FormControl/FormControl.js +65 -54
  464. package/lib/components/FormControl/FormControl.js.map +1 -1
  465. package/lib/components/FormField/FormField.d.ts +12 -5
  466. package/lib/components/FormField/FormField.d.ts.map +1 -1
  467. package/lib/components/FormField/FormField.js +98 -61
  468. package/lib/components/FormField/FormField.js.map +1 -1
  469. package/lib/components/FormField/index.d.ts +1 -1
  470. package/lib/components/FormField/index.d.ts.map +1 -1
  471. package/lib/components/FormField/index.js +1 -1
  472. package/lib/components/FormField/index.js.map +1 -1
  473. package/lib/components/Fullscreen/Fullscreen.d.ts +3 -5
  474. package/lib/components/Fullscreen/Fullscreen.d.ts.map +1 -1
  475. package/lib/components/Fullscreen/Fullscreen.js +12 -8
  476. package/lib/components/Fullscreen/Fullscreen.js.map +1 -1
  477. package/lib/components/Fullscreen/FullscreenButton.d.ts +3 -1
  478. package/lib/components/Fullscreen/FullscreenButton.d.ts.map +1 -1
  479. package/lib/components/Grid/Grid.d.ts +1 -1
  480. package/lib/components/Grid/Grid.d.ts.map +1 -1
  481. package/lib/components/HTML/HTML.d.ts +3 -3
  482. package/lib/components/HTML/HTML.d.ts.map +1 -1
  483. package/lib/components/HTML/HTML.js +11 -5
  484. package/lib/components/HTML/HTML.js.map +1 -1
  485. package/lib/components/HiddenText/HiddenText.d.ts +1 -1
  486. package/lib/components/HiddenText/HiddenText.d.ts.map +1 -1
  487. package/lib/components/Icon/Icon.d.ts +4 -4
  488. package/lib/components/Icon/Icon.d.ts.map +1 -1
  489. package/lib/components/Icon/Icon.js +7 -2
  490. package/lib/components/Icon/Icon.js.map +1 -1
  491. package/lib/components/Icon/iconNames.d.ts +1 -1
  492. package/lib/components/Icon/iconNames.d.ts.map +1 -1
  493. package/lib/components/Icon/iconNames.js +17 -0
  494. package/lib/components/Icon/iconNames.js.map +1 -1
  495. package/lib/components/Icon/icons/arrow-micro-left-right-reverse.icon.d.ts +5 -0
  496. package/lib/components/Icon/icons/arrow-micro-left-right-reverse.icon.d.ts.map +1 -0
  497. package/lib/components/Icon/icons/arrow-micro-left-right-reverse.icon.js +7 -0
  498. package/lib/components/Icon/icons/arrow-micro-left-right-reverse.icon.js.map +1 -0
  499. package/lib/components/Icon/icons/arrow-micro-left-right.icon.d.ts +5 -0
  500. package/lib/components/Icon/icons/arrow-micro-left-right.icon.d.ts.map +1 -0
  501. package/lib/components/Icon/icons/arrow-micro-left-right.icon.js +7 -0
  502. package/lib/components/Icon/icons/arrow-micro-left-right.icon.js.map +1 -0
  503. package/lib/components/Icon/icons/brain.icon.d.ts +5 -0
  504. package/lib/components/Icon/icons/brain.icon.d.ts.map +1 -0
  505. package/lib/components/Icon/icons/brain.icon.js +7 -0
  506. package/lib/components/Icon/icons/brain.icon.js.map +1 -0
  507. package/lib/components/Icon/icons/chats-ai.icon.d.ts +5 -0
  508. package/lib/components/Icon/icons/chats-ai.icon.d.ts.map +1 -0
  509. package/lib/components/Icon/icons/chats-ai.icon.js +7 -0
  510. package/lib/components/Icon/icons/chats-ai.icon.js.map +1 -0
  511. package/lib/components/Icon/icons/check-solid.icon.d.ts +5 -0
  512. package/lib/components/Icon/icons/check-solid.icon.d.ts.map +1 -0
  513. package/lib/components/Icon/icons/check-solid.icon.js +7 -0
  514. package/lib/components/Icon/icons/check-solid.icon.js.map +1 -0
  515. package/lib/components/Icon/icons/clock-sla.icon.d.ts +5 -0
  516. package/lib/components/Icon/icons/clock-sla.icon.d.ts.map +1 -0
  517. package/lib/components/Icon/icons/clock-sla.icon.js +7 -0
  518. package/lib/components/Icon/icons/clock-sla.icon.js.map +1 -0
  519. package/lib/components/Icon/icons/csr-connected.icon.d.ts +5 -0
  520. package/lib/components/Icon/icons/csr-connected.icon.d.ts.map +1 -0
  521. package/lib/components/Icon/icons/csr-connected.icon.js +7 -0
  522. package/lib/components/Icon/icons/csr-connected.icon.js.map +1 -0
  523. package/lib/components/Icon/icons/dataviz-string-field.icon.d.ts.map +1 -1
  524. package/lib/components/Icon/icons/dataviz-string-field.icon.js +1 -1
  525. package/lib/components/Icon/icons/dataviz-string-field.icon.js.map +1 -1
  526. package/lib/components/Icon/icons/gear-box-dotted.icon.d.ts +5 -0
  527. package/lib/components/Icon/icons/gear-box-dotted.icon.d.ts.map +1 -0
  528. package/lib/components/Icon/icons/gear-box-dotted.icon.js +7 -0
  529. package/lib/components/Icon/icons/gear-box-dotted.icon.js.map +1 -0
  530. package/lib/components/Icon/icons/information-solid.icon.js +1 -1
  531. package/lib/components/Icon/icons/information-solid.icon.js.map +1 -1
  532. package/lib/components/Icon/icons/information.icon.js +1 -1
  533. package/lib/components/Icon/icons/information.icon.js.map +1 -1
  534. package/lib/components/Icon/icons/input-pen.icon.d.ts +5 -0
  535. package/lib/components/Icon/icons/input-pen.icon.d.ts.map +1 -0
  536. package/lib/components/Icon/icons/input-pen.icon.js +7 -0
  537. package/lib/components/Icon/icons/input-pen.icon.js.map +1 -0
  538. package/lib/components/Icon/icons/mcp.icon.d.ts +5 -0
  539. package/lib/components/Icon/icons/mcp.icon.d.ts.map +1 -0
  540. package/lib/components/Icon/icons/mcp.icon.js +7 -0
  541. package/lib/components/Icon/icons/mcp.icon.js.map +1 -0
  542. package/lib/components/Icon/icons/open.icon.d.ts.map +1 -1
  543. package/lib/components/Icon/icons/open.icon.js +2 -2
  544. package/lib/components/Icon/icons/open.icon.js.map +1 -1
  545. package/lib/components/Icon/icons/preview-bottom.icon.d.ts +5 -0
  546. package/lib/components/Icon/icons/preview-bottom.icon.d.ts.map +1 -0
  547. package/lib/components/Icon/icons/preview-bottom.icon.js +7 -0
  548. package/lib/components/Icon/icons/preview-bottom.icon.js.map +1 -0
  549. package/lib/components/Icon/icons/preview-collapse.icon.d.ts +5 -0
  550. package/lib/components/Icon/icons/preview-collapse.icon.d.ts.map +1 -0
  551. package/lib/components/Icon/icons/preview-collapse.icon.js +7 -0
  552. package/lib/components/Icon/icons/preview-collapse.icon.js.map +1 -0
  553. package/lib/components/Icon/icons/preview-expand.icon.d.ts +5 -0
  554. package/lib/components/Icon/icons/preview-expand.icon.d.ts.map +1 -0
  555. package/lib/components/Icon/icons/preview-expand.icon.js +7 -0
  556. package/lib/components/Icon/icons/preview-expand.icon.js.map +1 -0
  557. package/lib/components/Icon/icons/preview-hide.icon.d.ts +5 -0
  558. package/lib/components/Icon/icons/preview-hide.icon.d.ts.map +1 -0
  559. package/lib/components/Icon/icons/preview-hide.icon.js +7 -0
  560. package/lib/components/Icon/icons/preview-hide.icon.js.map +1 -0
  561. package/lib/components/Icon/icons/preview-rtl.icon.d.ts +5 -0
  562. package/lib/components/Icon/icons/preview-rtl.icon.d.ts.map +1 -0
  563. package/lib/components/Icon/icons/preview-rtl.icon.js +7 -0
  564. package/lib/components/Icon/icons/preview-rtl.icon.js.map +1 -0
  565. package/lib/components/Icon/icons/script-solid.icon.d.ts +5 -0
  566. package/lib/components/Icon/icons/script-solid.icon.d.ts.map +1 -0
  567. package/lib/components/Icon/icons/script-solid.icon.js +7 -0
  568. package/lib/components/Icon/icons/script-solid.icon.js.map +1 -0
  569. package/lib/components/Icon/icons/user-laptop.icon.d.ts +5 -0
  570. package/lib/components/Icon/icons/user-laptop.icon.d.ts.map +1 -0
  571. package/lib/components/Icon/icons/user-laptop.icon.js +7 -0
  572. package/lib/components/Icon/icons/user-laptop.icon.js.map +1 -0
  573. package/lib/components/Icon/index.d.ts +1 -1
  574. package/lib/components/Icon/index.d.ts.map +1 -1
  575. package/lib/components/Icon/index.js +1 -1
  576. package/lib/components/Icon/index.js.map +1 -1
  577. package/lib/components/Icon/streamline-icons/animal-print.icon.d.ts +5 -0
  578. package/lib/components/Icon/streamline-icons/animal-print.icon.d.ts.map +1 -0
  579. package/lib/components/Icon/streamline-icons/animal-print.icon.js +7 -0
  580. package/lib/components/Icon/streamline-icons/animal-print.icon.js.map +1 -0
  581. package/lib/components/Icon/streamline-icons/boat-cargo.icon.d.ts +5 -0
  582. package/lib/components/Icon/streamline-icons/boat-cargo.icon.d.ts.map +1 -0
  583. package/lib/components/Icon/streamline-icons/boat-cargo.icon.js +7 -0
  584. package/lib/components/Icon/streamline-icons/boat-cargo.icon.js.map +1 -0
  585. package/lib/components/Icon/streamline-icons/bolt-solid.icon.d.ts +5 -0
  586. package/lib/components/Icon/streamline-icons/bolt-solid.icon.d.ts.map +1 -0
  587. package/lib/components/Icon/streamline-icons/bolt-solid.icon.js +7 -0
  588. package/lib/components/Icon/streamline-icons/bolt-solid.icon.js.map +1 -0
  589. package/lib/components/Icon/streamline-icons/bolt.icon.d.ts +5 -0
  590. package/lib/components/Icon/streamline-icons/bolt.icon.d.ts.map +1 -0
  591. package/lib/components/Icon/streamline-icons/bolt.icon.js +7 -0
  592. package/lib/components/Icon/streamline-icons/bolt.icon.js.map +1 -0
  593. package/lib/components/Icon/streamline-icons/browser-site.icon.d.ts +5 -0
  594. package/lib/components/Icon/streamline-icons/browser-site.icon.d.ts.map +1 -0
  595. package/lib/components/Icon/streamline-icons/browser-site.icon.js +7 -0
  596. package/lib/components/Icon/streamline-icons/browser-site.icon.js.map +1 -0
  597. package/lib/components/Icon/streamline-icons/building-globe.icon.d.ts +5 -0
  598. package/lib/components/Icon/streamline-icons/building-globe.icon.d.ts.map +1 -0
  599. package/lib/components/Icon/streamline-icons/building-globe.icon.js +7 -0
  600. package/lib/components/Icon/streamline-icons/building-globe.icon.js.map +1 -0
  601. package/lib/components/Icon/streamline-icons/check-polaris-solid.icon.d.ts +5 -0
  602. package/lib/components/Icon/streamline-icons/check-polaris-solid.icon.d.ts.map +1 -0
  603. package/lib/components/Icon/streamline-icons/check-polaris-solid.icon.js +7 -0
  604. package/lib/components/Icon/streamline-icons/check-polaris-solid.icon.js.map +1 -0
  605. package/lib/components/Icon/streamline-icons/chess.icon.d.ts +5 -0
  606. package/lib/components/Icon/streamline-icons/chess.icon.d.ts.map +1 -0
  607. package/lib/components/Icon/streamline-icons/chess.icon.js +7 -0
  608. package/lib/components/Icon/streamline-icons/chess.icon.js.map +1 -0
  609. package/lib/components/Icon/streamline-icons/clock-sla.icon.d.ts +5 -0
  610. package/lib/components/Icon/streamline-icons/clock-sla.icon.d.ts.map +1 -0
  611. package/lib/components/Icon/streamline-icons/clock-sla.icon.js +7 -0
  612. package/lib/components/Icon/streamline-icons/clock-sla.icon.js.map +1 -0
  613. package/lib/components/Icon/streamline-icons/cloud-nodes.icon.d.ts +5 -0
  614. package/lib/components/Icon/streamline-icons/cloud-nodes.icon.d.ts.map +1 -0
  615. package/lib/components/Icon/streamline-icons/cloud-nodes.icon.js +7 -0
  616. package/lib/components/Icon/streamline-icons/cloud-nodes.icon.js.map +1 -0
  617. package/lib/components/Icon/streamline-icons/confetti.icon.d.ts +5 -0
  618. package/lib/components/Icon/streamline-icons/confetti.icon.d.ts.map +1 -0
  619. package/lib/components/Icon/streamline-icons/confetti.icon.js +7 -0
  620. package/lib/components/Icon/streamline-icons/confetti.icon.js.map +1 -0
  621. package/lib/components/Icon/streamline-icons/conveyor-cargo.icon.d.ts +5 -0
  622. package/lib/components/Icon/streamline-icons/conveyor-cargo.icon.d.ts.map +1 -0
  623. package/lib/components/Icon/streamline-icons/conveyor-cargo.icon.js +7 -0
  624. package/lib/components/Icon/streamline-icons/conveyor-cargo.icon.js.map +1 -0
  625. package/lib/components/Icon/streamline-icons/cpu-chip.icon.d.ts +5 -0
  626. package/lib/components/Icon/streamline-icons/cpu-chip.icon.d.ts.map +1 -0
  627. package/lib/components/Icon/streamline-icons/cpu-chip.icon.js +7 -0
  628. package/lib/components/Icon/streamline-icons/cpu-chip.icon.js.map +1 -0
  629. package/lib/components/Icon/streamline-icons/desktop-pencil.icon.d.ts +5 -0
  630. package/lib/components/Icon/streamline-icons/desktop-pencil.icon.d.ts.map +1 -0
  631. package/lib/components/Icon/streamline-icons/desktop-pencil.icon.js +7 -0
  632. package/lib/components/Icon/streamline-icons/desktop-pencil.icon.js.map +1 -0
  633. package/lib/components/Icon/streamline-icons/disc-document.icon.d.ts +5 -0
  634. package/lib/components/Icon/streamline-icons/disc-document.icon.d.ts.map +1 -0
  635. package/lib/components/Icon/streamline-icons/disc-document.icon.js +7 -0
  636. package/lib/components/Icon/streamline-icons/disc-document.icon.js.map +1 -0
  637. package/lib/components/Icon/streamline-icons/disc-nodes.icon.d.ts +5 -0
  638. package/lib/components/Icon/streamline-icons/disc-nodes.icon.d.ts.map +1 -0
  639. package/lib/components/Icon/streamline-icons/disc-nodes.icon.js +7 -0
  640. package/lib/components/Icon/streamline-icons/disc-nodes.icon.js.map +1 -0
  641. package/lib/components/Icon/streamline-icons/doc-ai.icon.d.ts +5 -0
  642. package/lib/components/Icon/streamline-icons/doc-ai.icon.d.ts.map +1 -0
  643. package/lib/components/Icon/streamline-icons/doc-ai.icon.js +7 -0
  644. package/lib/components/Icon/streamline-icons/doc-ai.icon.js.map +1 -0
  645. package/lib/components/Icon/streamline-icons/document-json.icon.d.ts +5 -0
  646. package/lib/components/Icon/streamline-icons/document-json.icon.d.ts.map +1 -0
  647. package/lib/components/Icon/streamline-icons/document-json.icon.js +7 -0
  648. package/lib/components/Icon/streamline-icons/document-json.icon.js.map +1 -0
  649. package/lib/components/Icon/streamline-icons/exchange-case-user.icon.d.ts +5 -0
  650. package/lib/components/Icon/streamline-icons/exchange-case-user.icon.d.ts.map +1 -0
  651. package/lib/components/Icon/streamline-icons/exchange-case-user.icon.js +7 -0
  652. package/lib/components/Icon/streamline-icons/exchange-case-user.icon.js.map +1 -0
  653. package/lib/components/Icon/streamline-icons/exchange-cases.icon.d.ts +5 -0
  654. package/lib/components/Icon/streamline-icons/exchange-cases.icon.d.ts.map +1 -0
  655. package/lib/components/Icon/streamline-icons/exchange-cases.icon.js +7 -0
  656. package/lib/components/Icon/streamline-icons/exchange-cases.icon.js.map +1 -0
  657. package/lib/components/Icon/streamline-icons/factory.icon.d.ts +5 -0
  658. package/lib/components/Icon/streamline-icons/factory.icon.d.ts.map +1 -0
  659. package/lib/components/Icon/streamline-icons/factory.icon.js +7 -0
  660. package/lib/components/Icon/streamline-icons/factory.icon.js.map +1 -0
  661. package/lib/components/Icon/streamline-icons/fast-food.icon.d.ts +5 -0
  662. package/lib/components/Icon/streamline-icons/fast-food.icon.d.ts.map +1 -0
  663. package/lib/components/Icon/streamline-icons/fast-food.icon.js +7 -0
  664. package/lib/components/Icon/streamline-icons/fast-food.icon.js.map +1 -0
  665. package/lib/components/Icon/streamline-icons/field-cursor.icon.js +1 -1
  666. package/lib/components/Icon/streamline-icons/field-cursor.icon.js.map +1 -1
  667. package/lib/components/Icon/streamline-icons/field-group.icon.d.ts +5 -0
  668. package/lib/components/Icon/streamline-icons/field-group.icon.d.ts.map +1 -0
  669. package/lib/components/Icon/streamline-icons/field-group.icon.js +7 -0
  670. package/lib/components/Icon/streamline-icons/field-group.icon.js.map +1 -0
  671. package/lib/components/Icon/streamline-icons/gear-nodes.icon.d.ts +5 -0
  672. package/lib/components/Icon/streamline-icons/gear-nodes.icon.d.ts.map +1 -0
  673. package/lib/components/Icon/streamline-icons/gear-nodes.icon.js +7 -0
  674. package/lib/components/Icon/streamline-icons/gear-nodes.icon.js.map +1 -0
  675. package/lib/components/Icon/streamline-icons/heart-rate.icon.d.ts +5 -0
  676. package/lib/components/Icon/streamline-icons/heart-rate.icon.d.ts.map +1 -0
  677. package/lib/components/Icon/streamline-icons/heart-rate.icon.js +7 -0
  678. package/lib/components/Icon/streamline-icons/heart-rate.icon.js.map +1 -0
  679. package/lib/components/Icon/streamline-icons/hexagons.icon.d.ts +5 -0
  680. package/lib/components/Icon/streamline-icons/hexagons.icon.d.ts.map +1 -0
  681. package/lib/components/Icon/streamline-icons/hexagons.icon.js +7 -0
  682. package/lib/components/Icon/streamline-icons/hexagons.icon.js.map +1 -0
  683. package/lib/components/Icon/streamline-icons/language-pack.icon.d.ts +5 -0
  684. package/lib/components/Icon/streamline-icons/language-pack.icon.d.ts.map +1 -0
  685. package/lib/components/Icon/streamline-icons/language-pack.icon.js +7 -0
  686. package/lib/components/Icon/streamline-icons/language-pack.icon.js.map +1 -0
  687. package/lib/components/Icon/streamline-icons/layout.icon.d.ts +5 -0
  688. package/lib/components/Icon/streamline-icons/layout.icon.d.ts.map +1 -0
  689. package/lib/components/Icon/streamline-icons/layout.icon.js +7 -0
  690. package/lib/components/Icon/streamline-icons/layout.icon.js.map +1 -0
  691. package/lib/components/Icon/streamline-icons/mcp.icon.d.ts +5 -0
  692. package/lib/components/Icon/streamline-icons/mcp.icon.d.ts.map +1 -0
  693. package/lib/components/Icon/streamline-icons/mcp.icon.js +7 -0
  694. package/lib/components/Icon/streamline-icons/mcp.icon.js.map +1 -0
  695. package/lib/components/Icon/streamline-icons/motherboard.icon.d.ts +5 -0
  696. package/lib/components/Icon/streamline-icons/motherboard.icon.d.ts.map +1 -0
  697. package/lib/components/Icon/streamline-icons/motherboard.icon.js +7 -0
  698. package/lib/components/Icon/streamline-icons/motherboard.icon.js.map +1 -0
  699. package/lib/components/Icon/streamline-icons/oil-tower.icon.d.ts +5 -0
  700. package/lib/components/Icon/streamline-icons/oil-tower.icon.d.ts.map +1 -0
  701. package/lib/components/Icon/streamline-icons/oil-tower.icon.js +7 -0
  702. package/lib/components/Icon/streamline-icons/oil-tower.icon.js.map +1 -0
  703. package/lib/components/Icon/streamline-icons/phone-stethescope.icon.d.ts +5 -0
  704. package/lib/components/Icon/streamline-icons/phone-stethescope.icon.d.ts.map +1 -0
  705. package/lib/components/Icon/streamline-icons/phone-stethescope.icon.js +7 -0
  706. package/lib/components/Icon/streamline-icons/phone-stethescope.icon.js.map +1 -0
  707. package/lib/components/Icon/streamline-icons/piggybank.icon.d.ts +5 -0
  708. package/lib/components/Icon/streamline-icons/piggybank.icon.d.ts.map +1 -0
  709. package/lib/components/Icon/streamline-icons/piggybank.icon.js +7 -0
  710. package/lib/components/Icon/streamline-icons/piggybank.icon.js.map +1 -0
  711. package/lib/components/Icon/streamline-icons/plug-connect.icon.d.ts +5 -0
  712. package/lib/components/Icon/streamline-icons/plug-connect.icon.d.ts.map +1 -0
  713. package/lib/components/Icon/streamline-icons/plug-connect.icon.js +7 -0
  714. package/lib/components/Icon/streamline-icons/plug-connect.icon.js.map +1 -0
  715. package/lib/components/Icon/streamline-icons/prescription.icon.d.ts +5 -0
  716. package/lib/components/Icon/streamline-icons/prescription.icon.d.ts.map +1 -0
  717. package/lib/components/Icon/streamline-icons/prescription.icon.js +7 -0
  718. package/lib/components/Icon/streamline-icons/prescription.icon.js.map +1 -0
  719. package/lib/components/Icon/streamline-icons/preview-bottom.icon.d.ts +5 -0
  720. package/lib/components/Icon/streamline-icons/preview-bottom.icon.d.ts.map +1 -0
  721. package/lib/components/Icon/streamline-icons/preview-bottom.icon.js +7 -0
  722. package/lib/components/Icon/streamline-icons/preview-bottom.icon.js.map +1 -0
  723. package/lib/components/Icon/streamline-icons/preview-hide.icon.d.ts +5 -0
  724. package/lib/components/Icon/streamline-icons/preview-hide.icon.d.ts.map +1 -0
  725. package/lib/components/Icon/streamline-icons/preview-hide.icon.js +7 -0
  726. package/lib/components/Icon/streamline-icons/preview-hide.icon.js.map +1 -0
  727. package/lib/components/Icon/streamline-icons/preview-rtl.icon.d.ts +5 -0
  728. package/lib/components/Icon/streamline-icons/preview-rtl.icon.d.ts.map +1 -0
  729. package/lib/components/Icon/streamline-icons/preview-rtl.icon.js +7 -0
  730. package/lib/components/Icon/streamline-icons/preview-rtl.icon.js.map +1 -0
  731. package/lib/components/Icon/streamline-icons/preview.icon.d.ts +5 -0
  732. package/lib/components/Icon/streamline-icons/preview.icon.d.ts.map +1 -0
  733. package/lib/components/Icon/streamline-icons/preview.icon.js +7 -0
  734. package/lib/components/Icon/streamline-icons/preview.icon.js.map +1 -0
  735. package/lib/components/Icon/streamline-icons/return.icon.d.ts +5 -0
  736. package/lib/components/Icon/streamline-icons/return.icon.d.ts.map +1 -0
  737. package/lib/components/Icon/streamline-icons/return.icon.js +7 -0
  738. package/lib/components/Icon/streamline-icons/return.icon.js.map +1 -0
  739. package/lib/components/Icon/streamline-icons/robot-assembly.icon.d.ts +5 -0
  740. package/lib/components/Icon/streamline-icons/robot-assembly.icon.d.ts.map +1 -0
  741. package/lib/components/Icon/streamline-icons/robot-assembly.icon.js +7 -0
  742. package/lib/components/Icon/streamline-icons/robot-assembly.icon.js.map +1 -0
  743. package/lib/components/Icon/streamline-icons/scale-unequal.icon.d.ts +5 -0
  744. package/lib/components/Icon/streamline-icons/scale-unequal.icon.d.ts.map +1 -0
  745. package/lib/components/Icon/streamline-icons/scale-unequal.icon.js +7 -0
  746. package/lib/components/Icon/streamline-icons/scale-unequal.icon.js.map +1 -0
  747. package/lib/components/Icon/streamline-icons/selection-cursor.icon.d.ts +5 -0
  748. package/lib/components/Icon/streamline-icons/selection-cursor.icon.d.ts.map +1 -0
  749. package/lib/components/Icon/streamline-icons/selection-cursor.icon.js +7 -0
  750. package/lib/components/Icon/streamline-icons/selection-cursor.icon.js.map +1 -0
  751. package/lib/components/Icon/streamline-icons/send-solid.icon.d.ts +5 -0
  752. package/lib/components/Icon/streamline-icons/send-solid.icon.d.ts.map +1 -0
  753. package/lib/components/Icon/streamline-icons/send-solid.icon.js +7 -0
  754. package/lib/components/Icon/streamline-icons/send-solid.icon.js.map +1 -0
  755. package/lib/components/Icon/streamline-icons/sewing-machine.icon.d.ts +5 -0
  756. package/lib/components/Icon/streamline-icons/sewing-machine.icon.d.ts.map +1 -0
  757. package/lib/components/Icon/streamline-icons/sewing-machine.icon.js +7 -0
  758. package/lib/components/Icon/streamline-icons/sewing-machine.icon.js.map +1 -0
  759. package/lib/components/Icon/streamline-icons/shapes.icon.d.ts +5 -0
  760. package/lib/components/Icon/streamline-icons/shapes.icon.d.ts.map +1 -0
  761. package/lib/components/Icon/streamline-icons/shapes.icon.js +7 -0
  762. package/lib/components/Icon/streamline-icons/shapes.icon.js.map +1 -0
  763. package/lib/components/Icon/streamline-icons/share-case.icon.d.ts +5 -0
  764. package/lib/components/Icon/streamline-icons/share-case.icon.d.ts.map +1 -0
  765. package/lib/components/Icon/streamline-icons/share-case.icon.js +7 -0
  766. package/lib/components/Icon/streamline-icons/share-case.icon.js.map +1 -0
  767. package/lib/components/Icon/streamline-icons/share-document.icon.d.ts +5 -0
  768. package/lib/components/Icon/streamline-icons/share-document.icon.d.ts.map +1 -0
  769. package/lib/components/Icon/streamline-icons/share-document.icon.js +7 -0
  770. package/lib/components/Icon/streamline-icons/share-document.icon.js.map +1 -0
  771. package/lib/components/Icon/streamline-icons/shield-currency.icon.d.ts +5 -0
  772. package/lib/components/Icon/streamline-icons/shield-currency.icon.d.ts.map +1 -0
  773. package/lib/components/Icon/streamline-icons/shield-currency.icon.js +7 -0
  774. package/lib/components/Icon/streamline-icons/shield-currency.icon.js.map +1 -0
  775. package/lib/components/Icon/streamline-icons/shield-lock.icon.d.ts +5 -0
  776. package/lib/components/Icon/streamline-icons/shield-lock.icon.d.ts.map +1 -0
  777. package/lib/components/Icon/streamline-icons/shield-lock.icon.js +7 -0
  778. package/lib/components/Icon/streamline-icons/shield-lock.icon.js.map +1 -0
  779. package/lib/components/Icon/streamline-icons/table-disc.icon.d.ts +5 -0
  780. package/lib/components/Icon/streamline-icons/table-disc.icon.d.ts.map +1 -0
  781. package/lib/components/Icon/streamline-icons/table-disc.icon.js +7 -0
  782. package/lib/components/Icon/streamline-icons/table-disc.icon.js.map +1 -0
  783. package/lib/components/Icon/streamline-icons/tablet-rate.icon.d.ts +5 -0
  784. package/lib/components/Icon/streamline-icons/tablet-rate.icon.d.ts.map +1 -0
  785. package/lib/components/Icon/streamline-icons/tablet-rate.icon.js +7 -0
  786. package/lib/components/Icon/streamline-icons/tablet-rate.icon.js.map +1 -0
  787. package/lib/components/Icon/streamline-icons/ticket-movie.icon.d.ts +5 -0
  788. package/lib/components/Icon/streamline-icons/ticket-movie.icon.d.ts.map +1 -0
  789. package/lib/components/Icon/streamline-icons/ticket-movie.icon.js +7 -0
  790. package/lib/components/Icon/streamline-icons/ticket-movie.icon.js.map +1 -0
  791. package/lib/components/Icon/streamline-icons/train.icon.d.ts +5 -0
  792. package/lib/components/Icon/streamline-icons/train.icon.d.ts.map +1 -0
  793. package/lib/components/Icon/streamline-icons/train.icon.js +7 -0
  794. package/lib/components/Icon/streamline-icons/train.icon.js.map +1 -0
  795. package/lib/components/Icon/streamline-icons/translate.icon.d.ts +5 -0
  796. package/lib/components/Icon/streamline-icons/translate.icon.d.ts.map +1 -0
  797. package/lib/components/Icon/streamline-icons/translate.icon.js +7 -0
  798. package/lib/components/Icon/streamline-icons/translate.icon.js.map +1 -0
  799. package/lib/components/Icon/streamline-icons/truck-cargo.icon.d.ts +5 -0
  800. package/lib/components/Icon/streamline-icons/truck-cargo.icon.d.ts.map +1 -0
  801. package/lib/components/Icon/streamline-icons/truck-cargo.icon.js +7 -0
  802. package/lib/components/Icon/streamline-icons/truck-cargo.icon.js.map +1 -0
  803. package/lib/components/Icon/streamline-icons/truck-clock.icon.d.ts +5 -0
  804. package/lib/components/Icon/streamline-icons/truck-clock.icon.d.ts.map +1 -0
  805. package/lib/components/Icon/streamline-icons/truck-clock.icon.js +7 -0
  806. package/lib/components/Icon/streamline-icons/truck-clock.icon.js.map +1 -0
  807. package/lib/components/Icon/streamline-icons/truck.icon.d.ts +5 -0
  808. package/lib/components/Icon/streamline-icons/truck.icon.d.ts.map +1 -0
  809. package/lib/components/Icon/streamline-icons/truck.icon.js +7 -0
  810. package/lib/components/Icon/streamline-icons/truck.icon.js.map +1 -0
  811. package/lib/components/Icon/streamline-icons/user-laptop.icon.d.ts +5 -0
  812. package/lib/components/Icon/streamline-icons/user-laptop.icon.d.ts.map +1 -0
  813. package/lib/components/Icon/streamline-icons/user-laptop.icon.js +7 -0
  814. package/lib/components/Icon/streamline-icons/user-laptop.icon.js.map +1 -0
  815. package/lib/components/Icon/streamline-icons/user-plane.icon.d.ts +5 -0
  816. package/lib/components/Icon/streamline-icons/user-plane.icon.d.ts.map +1 -0
  817. package/lib/components/Icon/streamline-icons/user-plane.icon.js +7 -0
  818. package/lib/components/Icon/streamline-icons/user-plane.icon.js.map +1 -0
  819. package/lib/components/Icon/streamline-icons/user-polaris-solid.icon.d.ts +5 -0
  820. package/lib/components/Icon/streamline-icons/user-polaris-solid.icon.d.ts.map +1 -0
  821. package/lib/components/Icon/streamline-icons/user-polaris-solid.icon.js +7 -0
  822. package/lib/components/Icon/streamline-icons/user-polaris-solid.icon.js.map +1 -0
  823. package/lib/components/Icon/streamline-icons/veterinarian-dog.icon.d.ts +5 -0
  824. package/lib/components/Icon/streamline-icons/veterinarian-dog.icon.d.ts.map +1 -0
  825. package/lib/components/Icon/streamline-icons/veterinarian-dog.icon.js +7 -0
  826. package/lib/components/Icon/streamline-icons/veterinarian-dog.icon.js.map +1 -0
  827. package/lib/components/Icon/streamline-icons/video-player.icon.d.ts +5 -0
  828. package/lib/components/Icon/streamline-icons/video-player.icon.d.ts.map +1 -0
  829. package/lib/components/Icon/streamline-icons/video-player.icon.js +7 -0
  830. package/lib/components/Icon/streamline-icons/video-player.icon.js.map +1 -0
  831. package/lib/components/Icon/streamlineIconNames.d.ts +1 -1
  832. package/lib/components/Icon/streamlineIconNames.d.ts.map +1 -1
  833. package/lib/components/Icon/streamlineIconNames.js +63 -0
  834. package/lib/components/Icon/streamlineIconNames.js.map +1 -1
  835. package/lib/components/Image/Image.d.ts +1 -1
  836. package/lib/components/Image/Image.d.ts.map +1 -1
  837. package/lib/components/Image/Image.js +1 -0
  838. package/lib/components/Image/Image.js.map +1 -1
  839. package/lib/components/InlineEdit/InlineEdit.d.ts +26 -0
  840. package/lib/components/InlineEdit/InlineEdit.d.ts.map +1 -0
  841. package/lib/components/InlineEdit/InlineEdit.js +21 -0
  842. package/lib/components/InlineEdit/InlineEdit.js.map +1 -0
  843. package/lib/components/InlineEdit/InlineEdit.styles.d.ts +27 -0
  844. package/lib/components/InlineEdit/InlineEdit.styles.d.ts.map +1 -0
  845. package/lib/components/InlineEdit/InlineEdit.styles.js +49 -0
  846. package/lib/components/InlineEdit/InlineEdit.styles.js.map +1 -0
  847. package/lib/components/InlineEdit/InlineEdit.test-ids.d.ts +3 -0
  848. package/lib/components/InlineEdit/InlineEdit.test-ids.d.ts.map +1 -0
  849. package/lib/components/InlineEdit/InlineEdit.test-ids.js +4 -0
  850. package/lib/components/InlineEdit/InlineEdit.test-ids.js.map +1 -0
  851. package/lib/components/InlineEdit/index.d.ts +3 -0
  852. package/lib/components/InlineEdit/index.d.ts.map +1 -0
  853. package/lib/components/InlineEdit/index.js +2 -0
  854. package/lib/components/InlineEdit/index.js.map +1 -0
  855. package/lib/components/Input/Input.js +3 -3
  856. package/lib/components/Input/Input.js.map +1 -1
  857. package/lib/components/Input/Input.styles.d.ts +2 -2
  858. package/lib/components/Input/Input.styles.d.ts.map +1 -1
  859. package/lib/components/KeyboardCommands/KeyboardCommands.d.ts +6 -0
  860. package/lib/components/KeyboardCommands/KeyboardCommands.d.ts.map +1 -0
  861. package/lib/components/KeyboardCommands/KeyboardCommands.js +73 -0
  862. package/lib/components/KeyboardCommands/KeyboardCommands.js.map +1 -0
  863. package/lib/components/KeyboardCommands/index.d.ts +3 -0
  864. package/lib/components/KeyboardCommands/index.d.ts.map +1 -0
  865. package/lib/components/KeyboardCommands/index.js +3 -0
  866. package/lib/components/KeyboardCommands/index.js.map +1 -0
  867. package/lib/components/Label/Label.d.ts +4 -2
  868. package/lib/components/Label/Label.d.ts.map +1 -1
  869. package/lib/components/Label/Label.js +5 -1
  870. package/lib/components/Label/Label.js.map +1 -1
  871. package/lib/components/Lightbox/Lightbox.d.ts.map +1 -1
  872. package/lib/components/Lightbox/Lightbox.js +44 -20
  873. package/lib/components/Lightbox/Lightbox.js.map +1 -1
  874. package/lib/components/Lightbox/Lightbox.styles.d.ts +24 -11
  875. package/lib/components/Lightbox/Lightbox.styles.d.ts.map +1 -1
  876. package/lib/components/Lightbox/Lightbox.styles.js +33 -5
  877. package/lib/components/Lightbox/Lightbox.styles.js.map +1 -1
  878. package/lib/components/Lightbox/Lightbox.types.d.ts +13 -0
  879. package/lib/components/Lightbox/Lightbox.types.d.ts.map +1 -1
  880. package/lib/components/Lightbox/Lightbox.types.js.map +1 -1
  881. package/lib/components/Lightbox/index.d.ts +1 -1
  882. package/lib/components/Lightbox/index.d.ts.map +1 -1
  883. package/lib/components/Lightbox/index.js.map +1 -1
  884. package/lib/components/Link/Link.d.ts +17 -6
  885. package/lib/components/Link/Link.d.ts.map +1 -1
  886. package/lib/components/Link/Link.js +9 -7
  887. package/lib/components/Link/Link.js.map +1 -1
  888. package/lib/components/List/CommaSeparatedList.d.ts +2 -2
  889. package/lib/components/List/CommaSeparatedList.d.ts.map +1 -1
  890. package/lib/components/List/List.d.ts +3 -3
  891. package/lib/components/List/List.d.ts.map +1 -1
  892. package/lib/components/ListToolbar/ListToolbar.d.ts +1 -1
  893. package/lib/components/ListToolbar/ListToolbar.d.ts.map +1 -1
  894. package/lib/components/ListToolbar/ListToolbar.js +53 -81
  895. package/lib/components/ListToolbar/ListToolbar.js.map +1 -1
  896. package/lib/components/ListToolbar/ListToolbar.styles.d.ts +405 -15
  897. package/lib/components/ListToolbar/ListToolbar.styles.d.ts.map +1 -1
  898. package/lib/components/ListToolbar/ListToolbar.styles.js +58 -36
  899. package/lib/components/ListToolbar/ListToolbar.styles.js.map +1 -1
  900. package/lib/components/ListToolbar/ListToolbar.test-ids.d.ts +1 -1
  901. package/lib/components/ListToolbar/ListToolbar.test-ids.d.ts.map +1 -1
  902. package/lib/components/ListToolbar/ListToolbar.test-ids.js +0 -1
  903. package/lib/components/ListToolbar/ListToolbar.test-ids.js.map +1 -1
  904. package/lib/components/ListToolbar/ListToolbar.types.d.ts +9 -6
  905. package/lib/components/ListToolbar/ListToolbar.types.d.ts.map +1 -1
  906. package/lib/components/ListToolbar/ListToolbar.types.js.map +1 -1
  907. package/lib/components/LiveLog/LiveLog.js +2 -2
  908. package/lib/components/LiveLog/LiveLog.js.map +1 -1
  909. package/lib/components/LiveLog/LiveLog.styles.d.ts +1 -1
  910. package/lib/components/LiveLog/LiveLog.styles.d.ts.map +1 -1
  911. package/lib/components/LiveLog/LiveLog.types.d.ts +1 -1
  912. package/lib/components/LiveLog/LiveLog.types.js.map +1 -1
  913. package/lib/components/Location/GoogleMapsAPI.d.ts +4 -5
  914. package/lib/components/Location/GoogleMapsAPI.d.ts.map +1 -1
  915. package/lib/components/Location/GoogleMapsAPI.js +66 -69
  916. package/lib/components/Location/GoogleMapsAPI.js.map +1 -1
  917. package/lib/components/Location/LocationAPI.types.d.ts +2 -3
  918. package/lib/components/Location/LocationAPI.types.d.ts.map +1 -1
  919. package/lib/components/Location/LocationAPI.types.js.map +1 -1
  920. package/lib/components/Location/LocationInput.d.ts.map +1 -1
  921. package/lib/components/Location/LocationInput.js +72 -48
  922. package/lib/components/Location/LocationInput.js.map +1 -1
  923. package/lib/components/Location/LocationView.d.ts +2 -0
  924. package/lib/components/Location/LocationView.d.ts.map +1 -1
  925. package/lib/components/Location/LocationView.js +3 -3
  926. package/lib/components/Location/LocationView.js.map +1 -1
  927. package/lib/components/Location/LocationView.styles.d.ts +8 -6
  928. package/lib/components/Location/LocationView.styles.d.ts.map +1 -1
  929. package/lib/components/Mark/Mark.d.ts +5 -1
  930. package/lib/components/Mark/Mark.d.ts.map +1 -1
  931. package/lib/components/Mark/Mark.js +8 -7
  932. package/lib/components/Mark/Mark.js.map +1 -1
  933. package/lib/components/Menu/Menu.d.ts.map +1 -1
  934. package/lib/components/Menu/Menu.js +59 -7
  935. package/lib/components/Menu/Menu.js.map +1 -1
  936. package/lib/components/Menu/Menu.styles.d.ts +21 -15
  937. package/lib/components/Menu/Menu.styles.d.ts.map +1 -1
  938. package/lib/components/Menu/Menu.styles.js +138 -6
  939. package/lib/components/Menu/Menu.styles.js.map +1 -1
  940. package/lib/components/Menu/Menu.types.d.ts +10 -1
  941. package/lib/components/Menu/Menu.types.d.ts.map +1 -1
  942. package/lib/components/Menu/Menu.types.js.map +1 -1
  943. package/lib/components/Menu/MenuItem.d.ts.map +1 -1
  944. package/lib/components/Menu/MenuItem.js +19 -20
  945. package/lib/components/Menu/MenuItem.js.map +1 -1
  946. package/lib/components/MenuButton/MenuButton.d.ts +2 -6
  947. package/lib/components/MenuButton/MenuButton.d.ts.map +1 -1
  948. package/lib/components/MenuButton/MenuButton.js +64 -11
  949. package/lib/components/MenuButton/MenuButton.js.map +1 -1
  950. package/lib/components/MetaList/MetaList.d.ts +4 -4
  951. package/lib/components/MetaList/MetaList.d.ts.map +1 -1
  952. package/lib/components/Modal/Contexts.d.ts.map +1 -1
  953. package/lib/components/Modal/Contexts.js +2 -1
  954. package/lib/components/Modal/Contexts.js.map +1 -1
  955. package/lib/components/Modal/DockedModals.d.ts.map +1 -1
  956. package/lib/components/Modal/DockedModals.js +2 -1
  957. package/lib/components/Modal/DockedModals.js.map +1 -1
  958. package/lib/components/Modal/MinimizedModal.d.ts.map +1 -1
  959. package/lib/components/Modal/MinimizedModal.js +30 -8
  960. package/lib/components/Modal/MinimizedModal.js.map +1 -1
  961. package/lib/components/Modal/Modal.d.ts.map +1 -1
  962. package/lib/components/Modal/Modal.js +54 -17
  963. package/lib/components/Modal/Modal.js.map +1 -1
  964. package/lib/components/Modal/Modal.styles.d.ts +5 -6
  965. package/lib/components/Modal/Modal.styles.d.ts.map +1 -1
  966. package/lib/components/Modal/Modal.styles.js +66 -15
  967. package/lib/components/Modal/Modal.styles.js.map +1 -1
  968. package/lib/components/Modal/Modal.types.d.ts +19 -3
  969. package/lib/components/Modal/Modal.types.d.ts.map +1 -1
  970. package/lib/components/Modal/Modal.types.js.map +1 -1
  971. package/lib/components/Modal/ModalManager.d.ts.map +1 -1
  972. package/lib/components/Modal/ModalManager.js +28 -9
  973. package/lib/components/Modal/ModalManager.js.map +1 -1
  974. package/lib/components/Modal/useModalMove.d.ts +30 -0
  975. package/lib/components/Modal/useModalMove.d.ts.map +1 -0
  976. package/lib/components/Modal/useModalMove.js +148 -0
  977. package/lib/components/Modal/useModalMove.js.map +1 -0
  978. package/lib/components/MultiStepForm/FormProgress.styles.d.ts +208 -12
  979. package/lib/components/MultiStepForm/FormProgress.styles.d.ts.map +1 -1
  980. package/lib/components/MultiStepForm/FormProgress.styles.js +199 -69
  981. package/lib/components/MultiStepForm/FormProgress.styles.js.map +1 -1
  982. package/lib/components/MultiStepForm/HorizontalFormProgress.d.ts +2 -1
  983. package/lib/components/MultiStepForm/HorizontalFormProgress.d.ts.map +1 -1
  984. package/lib/components/MultiStepForm/HorizontalFormProgress.js +44 -25
  985. package/lib/components/MultiStepForm/HorizontalFormProgress.js.map +1 -1
  986. package/lib/components/MultiStepForm/MultiStepForm.d.ts +190 -5
  987. package/lib/components/MultiStepForm/MultiStepForm.d.ts.map +1 -1
  988. package/lib/components/MultiStepForm/MultiStepForm.js +40 -11
  989. package/lib/components/MultiStepForm/MultiStepForm.js.map +1 -1
  990. package/lib/components/MultiStepForm/MultiStepForm.types.d.ts +20 -6
  991. package/lib/components/MultiStepForm/MultiStepForm.types.d.ts.map +1 -1
  992. package/lib/components/MultiStepForm/MultiStepForm.types.js.map +1 -1
  993. package/lib/components/MultiStepForm/VerticalFormProgress.d.ts +1 -1
  994. package/lib/components/MultiStepForm/VerticalFormProgress.d.ts.map +1 -1
  995. package/lib/components/MultiStepForm/VerticalFormProgress.js +7 -4
  996. package/lib/components/MultiStepForm/VerticalFormProgress.js.map +1 -1
  997. package/lib/components/MultiStepForm/useFormProgressOverflow.d.ts +6 -0
  998. package/lib/components/MultiStepForm/useFormProgressOverflow.d.ts.map +1 -0
  999. package/lib/components/MultiStepForm/useFormProgressOverflow.js +35 -0
  1000. package/lib/components/MultiStepForm/useFormProgressOverflow.js.map +1 -0
  1001. package/lib/components/Number/NumberInput.d.ts.map +1 -1
  1002. package/lib/components/Number/NumberInput.js +1 -3
  1003. package/lib/components/Number/NumberInput.js.map +1 -1
  1004. package/lib/components/Number/NumberInput.styles.d.ts +8 -4
  1005. package/lib/components/Number/NumberInput.styles.d.ts.map +1 -1
  1006. package/lib/components/Number/NumberInput.types.d.ts +4 -0
  1007. package/lib/components/Number/NumberInput.types.d.ts.map +1 -1
  1008. package/lib/components/Number/NumberInput.types.js.map +1 -1
  1009. package/lib/components/Number/NumberRangeInput.d.ts.map +1 -1
  1010. package/lib/components/Number/NumberRangeInput.js +2 -5
  1011. package/lib/components/Number/NumberRangeInput.js.map +1 -1
  1012. package/lib/components/PageTemplates/CategorySubPage.styles.d.ts +22 -18
  1013. package/lib/components/PageTemplates/CategorySubPage.styles.d.ts.map +1 -1
  1014. package/lib/components/PageTemplates/CategorySubPage.styles.js +24 -5
  1015. package/lib/components/PageTemplates/CategorySubPage.styles.js.map +1 -1
  1016. package/lib/components/PageTemplates/DashboardPage.d.ts +12 -6
  1017. package/lib/components/PageTemplates/DashboardPage.d.ts.map +1 -1
  1018. package/lib/components/PageTemplates/DashboardPage.js +1 -1
  1019. package/lib/components/PageTemplates/DashboardPage.js.map +1 -1
  1020. package/lib/components/PageTemplates/GridLayout/EditorBackground.d.ts.map +1 -1
  1021. package/lib/components/PageTemplates/GridLayout/EditorBackground.js +1 -0
  1022. package/lib/components/PageTemplates/GridLayout/EditorBackground.js.map +1 -1
  1023. package/lib/components/PageTemplates/GridLayout/EditorGridItem.d.ts.map +1 -1
  1024. package/lib/components/PageTemplates/GridLayout/EditorGridItem.js +6 -0
  1025. package/lib/components/PageTemplates/GridLayout/EditorGridItem.js.map +1 -1
  1026. package/lib/components/PageTemplates/GridLayout/GridLayoutEditor.d.ts +6 -0
  1027. package/lib/components/PageTemplates/GridLayout/GridLayoutEditor.d.ts.map +1 -1
  1028. package/lib/components/PageTemplates/GridLayout/GridLayoutEditor.js +2 -2
  1029. package/lib/components/PageTemplates/GridLayout/GridLayoutEditor.js.map +1 -1
  1030. package/lib/components/PageTemplates/GridLayout/GridLayoutViewer.d.ts +6 -0
  1031. package/lib/components/PageTemplates/GridLayout/GridLayoutViewer.d.ts.map +1 -1
  1032. package/lib/components/PageTemplates/GridLayout/GridLayoutViewer.js +2 -2
  1033. package/lib/components/PageTemplates/GridLayout/GridLayoutViewer.js.map +1 -1
  1034. package/lib/components/PageTemplates/GridLayout/ReactGridLayoutStyles.d.ts +1 -1
  1035. package/lib/components/PageTemplates/GridLayout/ReactGridLayoutStyles.d.ts.map +1 -1
  1036. package/lib/components/PageTemplates/GridLayout/ReactResizableStyles.d.ts +1 -1
  1037. package/lib/components/PageTemplates/GridLayout/ReactResizableStyles.d.ts.map +1 -1
  1038. package/lib/components/PageTemplates/GridLayout/utils.d.ts +2 -1
  1039. package/lib/components/PageTemplates/GridLayout/utils.d.ts.map +1 -1
  1040. package/lib/components/PageTemplates/GridLayout/utils.js +4 -3
  1041. package/lib/components/PageTemplates/GridLayout/utils.js.map +1 -1
  1042. package/lib/components/PageTemplates/PageTemplates.d.ts +191 -9
  1043. package/lib/components/PageTemplates/PageTemplates.d.ts.map +1 -1
  1044. package/lib/components/PageTemplates/PageTemplates.js +31 -16
  1045. package/lib/components/PageTemplates/PageTemplates.js.map +1 -1
  1046. package/lib/components/Phone/PhoneInput.d.ts +3 -0
  1047. package/lib/components/Phone/PhoneInput.d.ts.map +1 -1
  1048. package/lib/components/Phone/PhoneInput.js +8 -4
  1049. package/lib/components/Phone/PhoneInput.js.map +1 -1
  1050. package/lib/components/Phone/utils.d.ts +1 -1
  1051. package/lib/components/Phone/utils.d.ts.map +1 -1
  1052. package/lib/components/Phone/utils.js +5 -2
  1053. package/lib/components/Phone/utils.js.map +1 -1
  1054. package/lib/components/Popover/Popover.d.ts.map +1 -1
  1055. package/lib/components/Popover/Popover.js +18 -10
  1056. package/lib/components/Popover/Popover.js.map +1 -1
  1057. package/lib/components/Popover/Popover.styles.d.ts +3 -3
  1058. package/lib/components/Popover/Popover.styles.d.ts.map +1 -1
  1059. package/lib/components/Popover/Popover.styles.js +13 -9
  1060. package/lib/components/Popover/Popover.styles.js.map +1 -1
  1061. package/lib/components/Popover/modifiers.js +1 -1
  1062. package/lib/components/Popover/modifiers.js.map +1 -1
  1063. package/lib/components/Preview/Contexts.d.ts +5 -0
  1064. package/lib/components/Preview/Contexts.d.ts.map +1 -0
  1065. package/lib/components/Preview/Contexts.js +19 -0
  1066. package/lib/components/Preview/Contexts.js.map +1 -0
  1067. package/lib/components/Preview/Preview.types.d.ts +46 -0
  1068. package/lib/components/Preview/Preview.types.d.ts.map +1 -0
  1069. package/lib/components/Preview/Preview.types.js +2 -0
  1070. package/lib/components/Preview/Preview.types.js.map +1 -0
  1071. package/lib/components/Preview/PreviewManager.d.ts +11 -0
  1072. package/lib/components/Preview/PreviewManager.d.ts.map +1 -0
  1073. package/lib/components/Preview/PreviewManager.js +125 -0
  1074. package/lib/components/Preview/PreviewManager.js.map +1 -0
  1075. package/lib/components/Preview/PreviewPanel.d.ts +7 -0
  1076. package/lib/components/Preview/PreviewPanel.d.ts.map +1 -0
  1077. package/lib/components/Preview/PreviewPanel.js +110 -0
  1078. package/lib/components/Preview/PreviewPanel.js.map +1 -0
  1079. package/lib/components/Preview/PreviewPanel.test-ids.d.ts +2 -0
  1080. package/lib/components/Preview/PreviewPanel.test-ids.d.ts.map +1 -0
  1081. package/lib/components/Preview/PreviewPanel.test-ids.js +6 -0
  1082. package/lib/components/Preview/PreviewPanel.test-ids.js.map +1 -0
  1083. package/lib/components/Preview/index.d.ts +5 -0
  1084. package/lib/components/Preview/index.d.ts.map +1 -0
  1085. package/lib/components/Preview/index.js +4 -0
  1086. package/lib/components/Preview/index.js.map +1 -0
  1087. package/lib/components/Progress/Progress.js +1 -1
  1088. package/lib/components/Progress/Progress.js.map +1 -1
  1089. package/lib/components/Progress/Progress.styles.d.ts +199 -9
  1090. package/lib/components/Progress/Progress.styles.d.ts.map +1 -1
  1091. package/lib/components/Progress/Progress.styles.js +1 -1
  1092. package/lib/components/Progress/Progress.styles.js.map +1 -1
  1093. package/lib/components/QRCode/QRCode.d.ts +1 -1
  1094. package/lib/components/QRCode/QRCode.d.ts.map +1 -1
  1095. package/lib/components/RadioButton/RadioButton.test-ids.d.ts +1 -1
  1096. package/lib/components/RadioButton/RadioButton.test-ids.d.ts.map +1 -1
  1097. package/lib/components/RadioButton/RadioButtonCard.d.ts +11 -3
  1098. package/lib/components/RadioButton/RadioButtonCard.d.ts.map +1 -1
  1099. package/lib/components/RadioButton/RadioButtonCard.js +5 -22
  1100. package/lib/components/RadioButton/RadioButtonCard.js.map +1 -1
  1101. package/lib/components/RadioButtonGroup/RadioButtonGroup.d.ts +7 -0
  1102. package/lib/components/RadioButtonGroup/RadioButtonGroup.d.ts.map +1 -0
  1103. package/lib/components/RadioButtonGroup/RadioButtonGroup.js +10 -0
  1104. package/lib/components/RadioButtonGroup/RadioButtonGroup.js.map +1 -0
  1105. package/lib/components/RadioButtonGroup/index.d.ts +2 -1
  1106. package/lib/components/RadioButtonGroup/index.d.ts.map +1 -1
  1107. package/lib/components/RadioButtonGroup/index.js +1 -1
  1108. package/lib/components/RadioButtonGroup/index.js.map +1 -1
  1109. package/lib/components/RadioCheck/RadioCheck.d.ts +9 -4
  1110. package/lib/components/RadioCheck/RadioCheck.d.ts.map +1 -1
  1111. package/lib/components/RadioCheck/RadioCheck.js +97 -75
  1112. package/lib/components/RadioCheck/RadioCheck.js.map +1 -1
  1113. package/lib/components/RadioCheckGroup/RadioCheckGroup.d.ts +11 -5
  1114. package/lib/components/RadioCheckGroup/RadioCheckGroup.d.ts.map +1 -1
  1115. package/lib/components/RadioCheckGroup/RadioCheckGroup.js +70 -19
  1116. package/lib/components/RadioCheckGroup/RadioCheckGroup.js.map +1 -1
  1117. package/lib/components/Rating/Rating.d.ts +1 -1
  1118. package/lib/components/Rating/Rating.d.ts.map +1 -1
  1119. package/lib/components/ResponsiveActions/ResponsiveActions.d.ts +2 -2
  1120. package/lib/components/ResponsiveActions/ResponsiveActions.d.ts.map +1 -1
  1121. package/lib/components/ResponsiveActions/ResponsiveActions.js +12 -15
  1122. package/lib/components/ResponsiveActions/ResponsiveActions.js.map +1 -1
  1123. package/lib/components/SearchInput/SearchInput.d.ts +7 -7
  1124. package/lib/components/SearchInput/SearchInput.d.ts.map +1 -1
  1125. package/lib/components/SearchInput/SearchInput.js +41 -29
  1126. package/lib/components/SearchInput/SearchInput.js.map +1 -1
  1127. package/lib/components/SearchInput/SearchInput.styles.d.ts +21 -13
  1128. package/lib/components/SearchInput/SearchInput.styles.d.ts.map +1 -1
  1129. package/lib/components/SearchInput/SearchInput.styles.js +3 -5
  1130. package/lib/components/SearchInput/SearchInput.styles.js.map +1 -1
  1131. package/lib/components/Select/Select.d.ts +3 -3
  1132. package/lib/components/Select/Select.d.ts.map +1 -1
  1133. package/lib/components/Select/Select.js +14 -11
  1134. package/lib/components/Select/Select.js.map +1 -1
  1135. package/lib/components/SelectionCard/SelectionCard.d.ts +1 -1
  1136. package/lib/components/SelectionCard/SelectionCard.d.ts.map +1 -1
  1137. package/lib/components/SelectionCard/SelectionCard.js +50 -29
  1138. package/lib/components/SelectionCard/SelectionCard.js.map +1 -1
  1139. package/lib/components/SelectionCard/SelectionCard.styles.d.ts +36 -11
  1140. package/lib/components/SelectionCard/SelectionCard.styles.d.ts.map +1 -1
  1141. package/lib/components/SelectionCard/SelectionCard.styles.js +226 -62
  1142. package/lib/components/SelectionCard/SelectionCard.styles.js.map +1 -1
  1143. package/lib/components/SelectionCard/SelectionCard.test-ids.d.ts +2 -2
  1144. package/lib/components/SelectionCard/SelectionCard.test-ids.d.ts.map +1 -1
  1145. package/lib/components/SelectionCard/SelectionCard.test-ids.js +1 -1
  1146. package/lib/components/SelectionCard/SelectionCard.test-ids.js.map +1 -1
  1147. package/lib/components/SelectionCard/SelectionCard.types.d.ts +24 -6
  1148. package/lib/components/SelectionCard/SelectionCard.types.d.ts.map +1 -1
  1149. package/lib/components/SelectionCard/SelectionCard.types.js.map +1 -1
  1150. package/lib/components/SelectionCard/SelectionCardActions.d.ts +8 -0
  1151. package/lib/components/SelectionCard/SelectionCardActions.d.ts.map +1 -0
  1152. package/lib/components/SelectionCard/SelectionCardActions.js +48 -0
  1153. package/lib/components/SelectionCard/SelectionCardActions.js.map +1 -0
  1154. package/lib/components/SelectionCard/SelectionCardDisplay.d.ts +12 -4
  1155. package/lib/components/SelectionCard/SelectionCardDisplay.d.ts.map +1 -1
  1156. package/lib/components/SelectionCard/SelectionCardDisplay.js +6 -3
  1157. package/lib/components/SelectionCard/SelectionCardDisplay.js.map +1 -1
  1158. package/lib/components/SelectionCard/index.d.ts +1 -1
  1159. package/lib/components/SelectionCard/index.d.ts.map +1 -1
  1160. package/lib/components/SelectionCard/index.js.map +1 -1
  1161. package/lib/components/Sentiment/Sentiment.d.ts +1 -1
  1162. package/lib/components/Sentiment/Sentiment.d.ts.map +1 -1
  1163. package/lib/components/ShowMoreLess/ShowMoreLess.d.ts +3 -1
  1164. package/lib/components/ShowMoreLess/ShowMoreLess.d.ts.map +1 -1
  1165. package/lib/components/Skeleton/LineSkeleton.d.ts +1 -1
  1166. package/lib/components/Skeleton/LineSkeleton.d.ts.map +1 -1
  1167. package/lib/components/Skeleton/RectangleSkeleton.d.ts +1 -1
  1168. package/lib/components/Skeleton/RectangleSkeleton.d.ts.map +1 -1
  1169. package/lib/components/SkipLinks/SkipLinks.d.ts +0 -1
  1170. package/lib/components/SkipLinks/SkipLinks.d.ts.map +1 -1
  1171. package/lib/components/SkipLinks/SkipLinks.js +10 -53
  1172. package/lib/components/SkipLinks/SkipLinks.js.map +1 -1
  1173. package/lib/components/SkipLinks/SkipLinks.styles.d.ts +6 -0
  1174. package/lib/components/SkipLinks/SkipLinks.styles.d.ts.map +1 -0
  1175. package/lib/components/SkipLinks/SkipLinks.styles.js +61 -0
  1176. package/lib/components/SkipLinks/SkipLinks.styles.js.map +1 -0
  1177. package/lib/components/SkipLinks/index.d.ts +1 -1
  1178. package/lib/components/SkipLinks/index.d.ts.map +1 -1
  1179. package/lib/components/SkipLinks/index.js +1 -1
  1180. package/lib/components/SkipLinks/index.js.map +1 -1
  1181. package/lib/components/Slider/Slider.d.ts.map +1 -1
  1182. package/lib/components/Slider/Slider.js +18 -3
  1183. package/lib/components/Slider/Slider.js.map +1 -1
  1184. package/lib/components/Slider/Slider.styles.d.ts +15 -13
  1185. package/lib/components/Slider/Slider.styles.d.ts.map +1 -1
  1186. package/lib/components/Slider/Slider.styles.js +2 -2
  1187. package/lib/components/Slider/Slider.styles.js.map +1 -1
  1188. package/lib/components/SpeechToTextButton/SpeechToTextButton.d.ts +13 -0
  1189. package/lib/components/SpeechToTextButton/SpeechToTextButton.d.ts.map +1 -0
  1190. package/lib/components/SpeechToTextButton/SpeechToTextButton.js +29 -0
  1191. package/lib/components/SpeechToTextButton/SpeechToTextButton.js.map +1 -0
  1192. package/lib/components/SpeechToTextButton/SpeechToTextButton.test-ids.d.ts +2 -0
  1193. package/lib/components/SpeechToTextButton/SpeechToTextButton.test-ids.d.ts.map +1 -0
  1194. package/lib/components/SpeechToTextButton/SpeechToTextButton.test-ids.js +3 -0
  1195. package/lib/components/SpeechToTextButton/SpeechToTextButton.test-ids.js.map +1 -0
  1196. package/lib/components/SpeechToTextButton/index.d.ts +3 -0
  1197. package/lib/components/SpeechToTextButton/index.d.ts.map +1 -0
  1198. package/lib/components/SpeechToTextButton/index.js +2 -0
  1199. package/lib/components/SpeechToTextButton/index.js.map +1 -0
  1200. package/lib/components/SummaryItem/SummaryItem.d.ts +371 -7
  1201. package/lib/components/SummaryItem/SummaryItem.d.ts.map +1 -1
  1202. package/lib/components/SummaryItem/SummaryItem.js +3 -1
  1203. package/lib/components/SummaryItem/SummaryItem.js.map +1 -1
  1204. package/lib/components/SummaryList/SummaryList.d.ts +26 -8
  1205. package/lib/components/SummaryList/SummaryList.d.ts.map +1 -1
  1206. package/lib/components/SummaryList/SummaryList.js +54 -9
  1207. package/lib/components/SummaryList/SummaryList.js.map +1 -1
  1208. package/lib/components/SummaryList/ViewAll.d.ts +10 -4
  1209. package/lib/components/SummaryList/ViewAll.d.ts.map +1 -1
  1210. package/lib/components/SummaryList/ViewAll.js +23 -3
  1211. package/lib/components/SummaryList/ViewAll.js.map +1 -1
  1212. package/lib/components/SummaryList/index.d.ts +1 -0
  1213. package/lib/components/SummaryList/index.d.ts.map +1 -1
  1214. package/lib/components/SummaryList/index.js.map +1 -1
  1215. package/lib/components/Switch/Switch.d.ts +3 -3
  1216. package/lib/components/Switch/Switch.d.ts.map +1 -1
  1217. package/lib/components/Switch/Switch.js +14 -5
  1218. package/lib/components/Switch/Switch.js.map +1 -1
  1219. package/lib/components/Table/Table.d.ts +2 -1
  1220. package/lib/components/Table/Table.d.ts.map +1 -1
  1221. package/lib/components/Table/Table.js +1 -0
  1222. package/lib/components/Table/Table.js.map +1 -1
  1223. package/lib/components/Tabs/Tab.d.ts +3 -4
  1224. package/lib/components/Tabs/Tab.d.ts.map +1 -1
  1225. package/lib/components/Tabs/Tab.js +111 -106
  1226. package/lib/components/Tabs/Tab.js.map +1 -1
  1227. package/lib/components/Tabs/TabPanel.d.ts +184 -2
  1228. package/lib/components/Tabs/TabPanel.d.ts.map +1 -1
  1229. package/lib/components/Tabs/TabPanel.js +4 -2
  1230. package/lib/components/Tabs/TabPanel.js.map +1 -1
  1231. package/lib/components/Tabs/Tabs.d.ts.map +1 -1
  1232. package/lib/components/Tabs/Tabs.js +24 -1
  1233. package/lib/components/Tabs/Tabs.js.map +1 -1
  1234. package/lib/components/Tabs/Tabs.styles.d.ts +12 -10
  1235. package/lib/components/Tabs/Tabs.styles.d.ts.map +1 -1
  1236. package/lib/components/Tabs/Tabs.styles.js +126 -11
  1237. package/lib/components/Tabs/Tabs.styles.js.map +1 -1
  1238. package/lib/components/Text/Text.d.ts +1 -1
  1239. package/lib/components/Text/Text.d.ts.map +1 -1
  1240. package/lib/components/TextArea/TextArea.d.ts +3 -1
  1241. package/lib/components/TextArea/TextArea.d.ts.map +1 -1
  1242. package/lib/components/TextArea/TextArea.js +95 -28
  1243. package/lib/components/TextArea/TextArea.js.map +1 -1
  1244. package/lib/components/TextArea/TextArea.styles.d.ts +3 -2
  1245. package/lib/components/TextArea/TextArea.styles.d.ts.map +1 -1
  1246. package/lib/components/TextArea/TextArea.styles.js +2 -0
  1247. package/lib/components/TextArea/TextArea.styles.js.map +1 -1
  1248. package/lib/components/Toaster/Toaster.d.ts +1 -1
  1249. package/lib/components/Toaster/Toaster.d.ts.map +1 -1
  1250. package/lib/components/Toaster/Toaster.js +5 -5
  1251. package/lib/components/Toaster/Toaster.js.map +1 -1
  1252. package/lib/components/Toaster/Toaster.types.d.ts +0 -13
  1253. package/lib/components/Toaster/Toaster.types.d.ts.map +1 -1
  1254. package/lib/components/Toaster/Toaster.types.js.map +1 -1
  1255. package/lib/components/Tooltip/Tooltip.d.ts +1 -1
  1256. package/lib/components/Tooltip/Tooltip.d.ts.map +1 -1
  1257. package/lib/components/Tooltip/Tooltip.js +5 -0
  1258. package/lib/components/Tooltip/Tooltip.js.map +1 -1
  1259. package/lib/components/Tree/StandardTree.d.ts.map +1 -1
  1260. package/lib/components/Tree/StandardTree.js +4 -3
  1261. package/lib/components/Tree/StandardTree.js.map +1 -1
  1262. package/lib/components/Tree/StandardTree.styles.d.ts +20 -16
  1263. package/lib/components/Tree/StandardTree.styles.d.ts.map +1 -1
  1264. package/lib/components/Tree/StandardTree.styles.js +11 -10
  1265. package/lib/components/Tree/StandardTree.styles.js.map +1 -1
  1266. package/lib/components/Tree/StandardTree.types.d.ts +2 -2
  1267. package/lib/components/Tree/StandardTree.types.d.ts.map +1 -1
  1268. package/lib/components/Tree/StandardTree.types.js.map +1 -1
  1269. package/lib/components/Tree/Tree.d.ts +2 -2
  1270. package/lib/components/Tree/Tree.d.ts.map +1 -1
  1271. package/lib/components/VisuallyHiddenText/VisuallyHiddenText.d.ts +1 -1
  1272. package/lib/components/VisuallyHiddenText/VisuallyHiddenText.d.ts.map +1 -1
  1273. package/lib/hooks/index.d.ts +5 -0
  1274. package/lib/hooks/index.d.ts.map +1 -1
  1275. package/lib/hooks/index.js +5 -0
  1276. package/lib/hooks/index.js.map +1 -1
  1277. package/lib/hooks/useActiveDescendant.d.ts +6 -1
  1278. package/lib/hooks/useActiveDescendant.d.ts.map +1 -1
  1279. package/lib/hooks/useActiveDescendant.js +5 -5
  1280. package/lib/hooks/useActiveDescendant.js.map +1 -1
  1281. package/lib/hooks/useAnimatedText.d.ts +3 -1
  1282. package/lib/hooks/useAnimatedText.d.ts.map +1 -1
  1283. package/lib/hooks/useAnimatedText.js +66 -46
  1284. package/lib/hooks/useAnimatedText.js.map +1 -1
  1285. package/lib/hooks/useArrows.d.ts +27 -7
  1286. package/lib/hooks/useArrows.d.ts.map +1 -1
  1287. package/lib/hooks/useArrows.js +50 -26
  1288. package/lib/hooks/useArrows.js.map +1 -1
  1289. package/lib/hooks/useContentTabIndex.d.ts +17 -0
  1290. package/lib/hooks/useContentTabIndex.d.ts.map +1 -0
  1291. package/lib/hooks/useContentTabIndex.js +48 -0
  1292. package/lib/hooks/useContentTabIndex.js.map +1 -0
  1293. package/lib/hooks/useFocusTrap.d.ts.map +1 -1
  1294. package/lib/hooks/useFocusTrap.js +1 -0
  1295. package/lib/hooks/useFocusTrap.js.map +1 -1
  1296. package/lib/hooks/useFocusWithin.d.ts.map +1 -1
  1297. package/lib/hooks/useFocusWithin.js +11 -6
  1298. package/lib/hooks/useFocusWithin.js.map +1 -1
  1299. package/lib/hooks/useHighlight.d.ts +12 -0
  1300. package/lib/hooks/useHighlight.d.ts.map +1 -0
  1301. package/lib/hooks/useHighlight.js +55 -0
  1302. package/lib/hooks/useHighlight.js.map +1 -0
  1303. package/lib/hooks/useI18n.d.ts +331 -16
  1304. package/lib/hooks/useI18n.d.ts.map +1 -1
  1305. package/lib/hooks/useOS.d.ts +1 -1
  1306. package/lib/hooks/usePreviewContext.d.ts +7 -0
  1307. package/lib/hooks/usePreviewContext.d.ts.map +1 -0
  1308. package/lib/hooks/usePreviewContext.js +12 -0
  1309. package/lib/hooks/usePreviewContext.js.map +1 -0
  1310. package/lib/hooks/usePreviewManager.d.ts +8 -0
  1311. package/lib/hooks/usePreviewManager.d.ts.map +1 -0
  1312. package/lib/hooks/usePreviewManager.js +16 -0
  1313. package/lib/hooks/usePreviewManager.js.map +1 -0
  1314. package/lib/hooks/useScrollStick.js +1 -1
  1315. package/lib/hooks/useScrollStick.js.map +1 -1
  1316. package/lib/hooks/useSpeechRecognition.d.ts +21 -0
  1317. package/lib/hooks/useSpeechRecognition.d.ts.map +1 -0
  1318. package/lib/hooks/useSpeechRecognition.js +123 -0
  1319. package/lib/hooks/useSpeechRecognition.js.map +1 -0
  1320. package/lib/hooks/useThemeMode.d.ts +10 -0
  1321. package/lib/hooks/useThemeMode.d.ts.map +1 -0
  1322. package/lib/hooks/useThemeMode.js +11 -0
  1323. package/lib/hooks/useThemeMode.js.map +1 -0
  1324. package/lib/hooks/useTransitionState.d.ts +3 -2
  1325. package/lib/hooks/useTransitionState.d.ts.map +1 -1
  1326. package/lib/hooks/useTransitionState.js.map +1 -1
  1327. package/lib/i18n/default.d.ts +340 -17
  1328. package/lib/i18n/default.d.ts.map +1 -1
  1329. package/lib/i18n/default.js +379 -36
  1330. package/lib/i18n/default.js.map +1 -1
  1331. package/lib/i18n/i18n.d.ts +331 -16
  1332. package/lib/i18n/i18n.d.ts.map +1 -1
  1333. package/lib/i18n/translate.d.ts +0 -1
  1334. package/lib/i18n/translate.d.ts.map +1 -1
  1335. package/lib/i18n/translate.js +0 -1
  1336. package/lib/i18n/translate.js.map +1 -1
  1337. package/lib/index.d.ts +13 -0
  1338. package/lib/index.d.ts.map +1 -1
  1339. package/lib/index.js +13 -0
  1340. package/lib/index.js.map +1 -1
  1341. package/lib/styles/GlobalStyle.d.ts +3 -3
  1342. package/lib/styles/GlobalStyle.d.ts.map +1 -1
  1343. package/lib/styles/GlobalStyle.js +22 -4
  1344. package/lib/styles/GlobalStyle.js.map +1 -1
  1345. package/lib/styles/animations.d.ts +8 -8
  1346. package/lib/styles/animations.d.ts.map +1 -1
  1347. package/lib/styles/animations.js +71 -53
  1348. package/lib/styles/animations.js.map +1 -1
  1349. package/lib/styles/constants.d.ts +4 -0
  1350. package/lib/styles/constants.d.ts.map +1 -1
  1351. package/lib/styles/constants.js +12 -0
  1352. package/lib/styles/constants.js.map +1 -1
  1353. package/lib/styles/mixins.d.ts +3 -3
  1354. package/lib/styles/mixins.d.ts.map +1 -1
  1355. package/lib/styles/utils.d.ts +35 -4
  1356. package/lib/styles/utils.d.ts.map +1 -1
  1357. package/lib/styles/utils.js +93 -11
  1358. package/lib/styles/utils.js.map +1 -1
  1359. package/lib/theme/index.d.ts +4 -0
  1360. package/lib/theme/index.d.ts.map +1 -1
  1361. package/lib/theme/index.js +4 -0
  1362. package/lib/theme/index.js.map +1 -1
  1363. package/lib/theme/theme.d.ts +348 -0
  1364. package/lib/theme/theme.d.ts.map +1 -1
  1365. package/lib/theme/themeDefinition.json +212 -4
  1366. package/lib/theme/themeOverrides.schema.json +346 -170
  1367. package/lib/theme/themes/andromeda2025Theme.json +2 -2
  1368. package/lib/theme/themes/aries2023DarkTheme.json +22 -0
  1369. package/lib/theme/themes/bootes2025DarkTheme.json +32 -1
  1370. package/lib/theme/themes/bootes2025Theme.json +11 -2
  1371. package/lib/theme/themes/darkTheme.json +22 -0
  1372. package/lib/theme/themes/orionDarkTheme.json +175 -0
  1373. package/lib/theme/themes/orionTheme.json +155 -0
  1374. package/lib/theme/themes/studioDarkTheme.json +25 -7
  1375. package/lib/theme/themes/studioTheme.json +37 -19
  1376. package/lib/theme/themes/virgoDarkTheme.json +206 -0
  1377. package/lib/theme/themes/virgoTheme.json +166 -0
  1378. package/lib/utils/focusHeadingOrContainer.d.ts.map +1 -1
  1379. package/lib/utils/focusHeadingOrContainer.js +2 -17
  1380. package/lib/utils/focusHeadingOrContainer.js.map +1 -1
  1381. package/lib/utils/focusNonInteractiveElement.d.ts +1 -1
  1382. package/lib/utils/focusNonInteractiveElement.d.ts.map +1 -1
  1383. package/lib/utils/focusNonInteractiveElement.js.map +1 -1
  1384. package/lib/utils/formatListToLocaleString.d.ts +0 -1
  1385. package/lib/utils/formatListToLocaleString.d.ts.map +1 -1
  1386. package/lib/utils/formatListToLocaleString.js +0 -1
  1387. package/lib/utils/formatListToLocaleString.js.map +1 -1
  1388. package/lib/utils/getAllPopovers.d.ts.map +1 -1
  1389. package/lib/utils/getAllPopovers.js +2 -1
  1390. package/lib/utils/getAllPopovers.js.map +1 -1
  1391. package/lib/utils/getEffectiveRect.d.ts +13 -0
  1392. package/lib/utils/getEffectiveRect.d.ts.map +1 -0
  1393. package/lib/utils/getEffectiveRect.js +93 -0
  1394. package/lib/utils/getEffectiveRect.js.map +1 -0
  1395. package/lib/utils/getFocusables.d.ts.map +1 -1
  1396. package/lib/utils/getFocusables.js +2 -1
  1397. package/lib/utils/getFocusables.js.map +1 -1
  1398. package/lib/utils/getParentWindow.d.ts +3 -0
  1399. package/lib/utils/getParentWindow.d.ts.map +1 -0
  1400. package/lib/utils/getParentWindow.js +12 -0
  1401. package/lib/utils/getParentWindow.js.map +1 -0
  1402. package/lib/utils/handleLinkClick.d.ts +33 -0
  1403. package/lib/utils/handleLinkClick.d.ts.map +1 -0
  1404. package/lib/utils/handleLinkClick.js +41 -0
  1405. package/lib/utils/handleLinkClick.js.map +1 -0
  1406. package/lib/utils/index.d.ts +3 -0
  1407. package/lib/utils/index.d.ts.map +1 -1
  1408. package/lib/utils/index.js +3 -0
  1409. package/lib/utils/index.js.map +1 -1
  1410. package/lib/utils/markdownTokenizer.d.ts +4 -1
  1411. package/lib/utils/markdownTokenizer.d.ts.map +1 -1
  1412. package/lib/utils/markdownTokenizer.js +46 -13
  1413. package/lib/utils/markdownTokenizer.js.map +1 -1
  1414. package/package.json +6 -5
@@ -1 +1 @@
1
- {"version":3,"file":"FormField.js","sourceRoot":"","sources":["../../../src/components/FormField/FormField.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExF,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAEhC,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B,OAAO,OAAO,MAAM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,EAAE,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS;YACvC,GAAG,SAAS;SACb,EACD,EAAE,EAAE,eAAe,EACnB,aAAa,EAAE,aAAa,EAC5B,YAAY,EAAE,YAAY,EAC1B,kBAAkB,EAAE,kBAAkB,EACtC,EAAE,EAAE,GAAG,EAAE,QAAQ,EACjB,WAAW,EAAE,EAAE,EACf,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,sBAC9B,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC,cAAc,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,EAC9E,GAAG,EAAE,eAAe,EACpB,SAAS,EAAE,eAAe,CAAC,YAAY,EAAE,SAAS,EAAE,EAAE,MAAM,EAAE,CAAC,aAE9D,CAAC,aAAa,IAAI,CAAC,UAAU,CAAC,IAAI,QAAQ,EAC1C,OAAO,EACP,CAAC,aAAa,IAAI,UAAU,IAAI,QAAQ,EACxC,CAAC,QAAQ,IAAI,WAAW,EACxB,YAAY,IAAI,OAAO,IAAI,CAC1B,KAAC,iBAAiB,IAChB,OAAO,EAAC,MAAM,EACd,OAAO,EAAE,GAAG,EAAE;oBACZ,OAAO,EAAE,CAAC;gBACZ,CAAC,YAEA,CAAC,CAAC,iBAAiB,CAAC,GACH,CACrB,IACI,CACR,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,WAAW,CAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC","sourcesContent":["import { cloneElement, useEffect, forwardRef, useState, useRef, Children } from 'react';\nimport type { FC, ReactNode, ComponentType, ReactElement, PropsWithoutRef, Ref } from 'react';\nimport styled, { css } from 'styled-components';\nimport { rgba } from 'polished';\n\nimport { defaultThemeProp } from '../../theme';\nimport type { Action, ExcludeStrict, ForwardProps, OmitStrict, TestIdProp } from '../../types';\nimport Flex from '../Flex';\nimport type { FlexProps } from '../Flex';\nimport Actions from '../Actions';\nimport type { FormControlProps } from '../FormControl';\nimport { useConsolidatedRef, useI18n, useLiveLog, useTestIds, useUID } from '../../hooks';\nimport Label, { StyledLabel } from '../Label';\nimport type { LabelProps } from '../Label';\nimport { calculateFontSize, getHoverColors, readableColor, readableHue } from '../../styles';\nimport VisuallyHiddenText from '../VisuallyHiddenText';\nimport { getFocusables, tryCatch, withTestIds, createClassName } from '../../utils';\nimport Button from '../Button';\nimport Icon, { registerIcon } from '../Icon';\nimport * as warnSolidIcon from '../Icon/icons/warn-solid.icon';\nimport * as diamondMinusIcon from '../Icon/icons/diamond-minus.icon';\nimport * as checkIcon from '../Icon/icons/check.icon';\nimport AdditionalInfo, { StyledAdditionalInfo } from '../AdditionalInfo';\nimport { StyledRadioCheckInput } from '../RadioCheck/RadioCheck';\n\nimport { getFormFieldTestIds } from './FormField.test-ids';\nimport type { elements } from './FormField.test-ids';\n\nregisterIcon(warnSolidIcon, diamondMinusIcon, checkIcon);\n\nexport interface FormFieldProps\n extends OmitStrict<FormControlProps, 'placeholder' | 'value' | 'defaultValue'>,\n TestIdProp<typeof elements> {\n /** Pass a single form control component i.e. Input | TextArea | Select | etc.. */\n children: ReactElement | ReactElement[];\n /**\n * An id is required to connect a FormField's wrapping element, control element and info(aria-describedby) live region.\n * A random id will be generated if none is provided.\n * Since MOST FormControls should possess an id(excl. i.e RadioCheckGroup and others) this can be used.\n * The id prop will be used to generate the following:\n * - FormControl <-> Label association via a Label's htmlFor prop.\n * - FormField's wrapping element id {id}-field.\n * - FormField info element id ${id}-info.\n */\n id?: string;\n /**\n * Determines how the wrapping label should be rendered.\n * @default 'label'\n */\n labelAs?: LabelProps['as'];\n /**\n * Overrides the for attribute on the label. If this is not set it will default to the forms id.\n * @default undefined\n */\n labelFor?: LabelProps['htmlFor'];\n /**\n * Sets the id of the label.\n * @default undefined\n */\n labelId?: LabelProps['id'];\n /**\n * Visually hides the label region.\n * @default false\n */\n labelHidden?: boolean;\n /**\n * Visually places the label after the input.\n * @default false\n */\n labelAfter?: boolean;\n /**\n * Property used to check whether input type is radio to handle styling for RadioCheck\n * @default false\n */\n isRadioCheck?: boolean;\n /**\n * Wrapping HTML element tag. Renders as a fieldset for grouped elements i.e. RadioButtons/CheckboxGroup\n * @default 'div'\n */\n as?: 'div' | 'fieldset' | ComponentType<any>;\n /**\n * Layout field elements inline in a row.\n * @default false\n */\n inline?: boolean;\n /** Optionally utilized by Input or Select. */\n actions?: Action[];\n /** Enables Flex container prop pass through. */\n container?: ExcludeStrict<FlexProps['container'], true>;\n /** Character remaining count. Typically used on Textareas only */\n charLimitDisplay?: ReactNode;\n /** Id of additional describing element. */\n 'aria-describedby'?: string;\n /** Callback invoked when the clear button is clicked. If provided will render the clear button. */\n onClear?: () => void;\n}\n\nconst StyledStatusIcon = styled(Icon)<{ status: NonNullable<FormFieldProps['status']> }>(({\n theme,\n status\n}) => {\n return css`\n height: 1em;\n width: 1em;\n color: ${tryCatch(\n () =>\n readableHue(\n theme.components['form-field'][status]['status-color'],\n theme.base.palette['primary-background']\n ),\n () => theme.components['form-field'][status]['status-color']\n )};\n vertical-align: baseline;\n `;\n});\n\nStyledStatusIcon.defaultProps = defaultThemeProp;\n\nconst StyledClearButton = styled(Button)(({ theme }) => {\n return css`\n margin-block-start: calc(${theme.base.spacing} / 2);\n align-self: start;\n `;\n});\n\nStyledClearButton.defaultProps = defaultThemeProp;\n\nexport const StyledFormFieldInfo = styled.div<Pick<FormControlProps, 'status'>>(\n ({\n status,\n theme: {\n base: { 'font-size': fontSize, 'font-scale': fontScale, spacing, palette },\n components: { 'form-field': formField }\n }\n }) => {\n const { xxs: infoFontSize } = calculateFontSize(fontSize, fontScale);\n\n return css`\n max-width: max-content;\n font-size: ${infoFontSize};\n word-break: break-word;\n\n &:not(:empty) {\n margin-block-start: calc(0.25 * ${spacing});\n }\n\n ${status &&\n formField[status] &&\n css`\n color: ${tryCatch(\n () => readableHue(formField[status]['status-color'], palette['primary-background']),\n () => formField[status]['status-color']\n )};\n `}\n `;\n }\n);\n\nStyledFormFieldInfo.defaultProps = defaultThemeProp;\n\nexport const StyledLabelRow = styled.div``;\n\nexport const StyledFormField = styled.div<\n FormFieldProps & { labelAsLegend: boolean; showAdditionalInfo: boolean }\n>(props => {\n const {\n labelAsLegend,\n isRadioCheck,\n showAdditionalInfo,\n disabled,\n required,\n theme: {\n base: {\n palette: { urgent },\n 'disabled-opacity': disabledOpacity,\n spacing,\n 'hit-area': { 'compact-min': hitAreaCompact }\n }\n }\n } = props;\n\n return css`\n ${disabled &&\n css`\n opacity: ${disabledOpacity};\n -webkit-user-select: none;\n user-select: none;\n `}\n position: relative;\n border: 0;\n\n &:has(${StyledRadioCheckInput}:only-of-type) {\n ${StyledFormFieldInfo} {\n min-width: 100%;\n }\n }\n\n > ${StyledLabel}, > ${StyledLabelRow} {\n &:not(:empty) {\n margin-bottom: calc(0.25 * ${spacing});\n min-height: ${hitAreaCompact};\n }\n }\n\n > ${StyledLabel}, > ${StyledLabelRow} > ${StyledLabel} {\n ${required &&\n css`\n &::after {\n content: ${'\"\\\\00a0*\" / \"\"'};\n color: ${urgent};\n }\n `}\n\n ${disabled &&\n css`\n cursor: not-allowed;\n `}\n }\n\n ${labelAsLegend &&\n css`\n > legend {\n display: inline-flex;\n align-items: flex-end;\n }\n `}\n\n ${labelAsLegend &&\n showAdditionalInfo &&\n css`\n display: block;\n\n > legend {\n float: inline-start;\n }\n\n > ${StyledAdditionalInfo} {\n ${!isRadioCheck &&\n css`\n float: inline-end;\n `}\n + * {\n clear: both;\n }\n }\n `}\n `;\n});\n\nStyledFormField.defaultProps = defaultThemeProp;\n\nconst StyledSuggestionButton = styled(Button)(({\n theme: {\n base: {\n 'font-size': fontSize,\n 'font-scale': fontScale,\n 'border-radius': baseRadius,\n spacing,\n palette\n },\n components: {\n 'form-control': { 'border-radius': radius, 'border-width': borderWidth },\n 'form-field': formField\n }\n }\n}) => {\n const { xxs: buttonFontSize } = calculateFontSize(fontSize, fontScale);\n const backgroundColor = tryCatch(\n () => readableHue(formField.pending['status-color'], palette['primary-background']),\n () => formField.pending['status-color']\n );\n const hoverColors = getHoverColors(backgroundColor);\n const color = tryCatch(() => readableColor(backgroundColor));\n const borderColor = color ? rgba(color, 0.4) : color;\n\n return css`\n background-color: ${backgroundColor};\n color: ${color};\n font-size: ${buttonFontSize};\n min-width: calc(3 * ${spacing});\n min-height: calc(3 * ${spacing});\n padding: 0 ${spacing};\n border-radius: 0;\n border: none;\n\n &:first-child {\n border-inline-end: ${borderWidth} solid ${borderColor};\n border-end-start-radius: calc(${baseRadius} * ${radius});\n margin-inline-start: calc(2 * ${spacing});\n }\n\n &:last-child {\n border-end-end-radius: calc(${baseRadius} * ${radius});\n margin-inline-start: 0;\n }\n\n &:hover {\n color: ${hoverColors.foreground};\n background-color: ${hoverColors.background};\n }\n\n @media (pointer: coarse) {\n min-height: 2rem;\n }\n `;\n});\n\nStyledSuggestionButton.defaultProps = defaultThemeProp;\n\nconst statusIconMap = { error: 'warn-solid', warning: 'diamond-minus', success: 'check' };\n\nconst FormField: FC<FormFieldProps & ForwardProps> = forwardRef(function FormField(\n props: PropsWithoutRef<FormFieldProps>,\n ref: Ref<HTMLElement>\n) {\n const uid = useUID();\n const {\n testId,\n children: controlElement,\n id = uid,\n as = 'div',\n label,\n labelAs = 'label',\n labelFor = id,\n labelId,\n labelHidden = false,\n labelAfter = false,\n info,\n status,\n isRadioCheck,\n charLimitDisplay,\n required = false,\n disabled = false,\n readOnly = false,\n inline = false,\n onClear,\n actions,\n container,\n additionalInfo,\n onResolveSuggestion,\n 'aria-describedby': ariaDescribedBy,\n className,\n ...restProps\n } = props;\n\n const testIds = useTestIds(testId, getFormFieldTestIds);\n\n const t = useI18n();\n const { announceAssertive } = useLiveLog();\n const labelAsLegend: boolean = labelAs === 'legend';\n const hasSuggestion = status === 'pending' && !!onResolveSuggestion;\n const consolidatedRef = useConsolidatedRef(ref);\n const labelRef = useRef<HTMLLabelElement | HTMLLegendElement>(null);\n const [labelText, setLabelText] = useState<string | null>(null);\n\n const showAdditionalInfo = !!additionalInfo && !disabled && !labelHidden;\n\n const labelContent = (\n <>\n <Label\n data-testid={testIds.label}\n id={labelId}\n as={labelAs}\n htmlFor={labelAs === 'label' ? labelFor : undefined}\n labelHidden={labelHidden}\n onClick={(e: MouseEvent) => {\n if (readOnly) e.preventDefault();\n }}\n inline={inline}\n ref={labelRef}\n >\n {label}\n </Label>\n\n {showAdditionalInfo && labelText && (\n <AdditionalInfo\n data-testid={testIds.additionalInfo}\n heading={additionalInfo.heading}\n contextualLabel={labelText}\n >\n {additionalInfo.content}\n </AdditionalInfo>\n )}\n </>\n );\n\n const labelRow =\n !isRadioCheck && !labelAsLegend && !labelHidden ? (\n <Flex\n as={StyledLabelRow}\n container={{ justify: 'between', alignItems: 'end' }}\n item={{ alignSelf: 'stretch' }}\n >\n {labelContent}\n </Flex>\n ) : (\n labelContent\n );\n\n useEffect(() => {\n setLabelText(labelRef.current?.textContent ?? null);\n }, [label]);\n\n useEffect(() => {\n if (status === 'error' || status === 'warning') {\n let message = `${t(status)} ${info}`;\n if (labelRef.current?.textContent) message = `${labelRef.current?.textContent} ${message}`;\n announceAssertive({ message, type: status });\n }\n }, [status, info]);\n\n // fieldset or single form control element\n let content: FormFieldProps['children'];\n if (labelAsLegend || Children.count(controlElement) > 1) {\n content = controlElement;\n } else {\n const controlElementAriaDescribedBy = Children.only(controlElement).props[\n 'aria-describedby'\n ] as string | undefined;\n content = cloneElement(controlElement as ReactElement, {\n 'aria-describedby':\n [controlElementAriaDescribedBy, info && !readOnly ? `${id}-info` : undefined]\n .join(' ')\n .trim() || undefined\n });\n }\n\n if (actions) {\n content = (\n <Flex container={{ alignItems: 'center', gap: 0.5 }}>\n {content}\n <Actions items={actions} menuAt={3} />\n </Flex>\n );\n }\n\n let infoContent = (\n <Flex\n id={`${id}-info`}\n data-testid={testIds.info}\n status={status}\n as={StyledFormFieldInfo}\n container={{ alignItems: 'center', gap: 0.5 }}\n >\n {status && status !== 'pending' && (\n <>\n <Flex\n item={{ alignSelf: 'start' }}\n as={StyledStatusIcon}\n status={status}\n name={statusIconMap[status]}\n />\n <VisuallyHiddenText>{`${t(status)} `}</VisuallyHiddenText>\n </>\n )}\n {info}\n </Flex>\n );\n\n if (charLimitDisplay) {\n infoContent = (\n <Flex container={{ justify: infoContent ? 'between' : 'end', gap: 1 }}>\n {infoContent}\n <Flex item={{ shrink: 0 }}>{charLimitDisplay}</Flex>\n </Flex>\n );\n }\n\n if (hasSuggestion) {\n const focusables = getFocusables(consolidatedRef);\n infoContent = (\n <Flex container={{ alignItems: 'start', justify: 'between' }}>\n <StyledFormFieldInfo data-testid={testIds.info} status={status} id={`${id}-info`}>\n {t('suggestion_info')}\n <VisuallyHiddenText aria-live='polite'>{t('suggestion_assist')}</VisuallyHiddenText>\n </StyledFormFieldInfo>\n <Flex container={{ wrap: 'nowrap' }}>\n <StyledSuggestionButton\n data-testid={testIds.suggestionReject}\n onClick={() => {\n onResolveSuggestion(false);\n focusables[0]?.focus();\n }}\n aria-label={`${t('no')}, ${t('reject_suggestion_button_a11y')}${labelText ? ` - ${labelText}` : ''}`}\n >\n {t('no')}\n </StyledSuggestionButton>\n <StyledSuggestionButton\n data-testid={testIds.suggestionAccept}\n onClick={() => {\n onResolveSuggestion(true);\n focusables[0]?.focus();\n }}\n aria-label={`${t('yes')}, ${t('accept_suggestion_button_a11y')}${labelText ? ` - ${labelText}` : ''}`}\n >\n {t('yes')}\n </StyledSuggestionButton>\n </Flex>\n </Flex>\n );\n }\n\n const onKeyDown = (e: KeyboardEvent) => {\n if (e.key === 'Enter') {\n const target = e.target as HTMLElement;\n if (!target.closest('button')) {\n e.preventDefault();\n onResolveSuggestion?.(true);\n }\n }\n };\n\n const descriptionIds = [];\n if (ariaDescribedBy) descriptionIds.push(ariaDescribedBy);\n if (labelAsLegend && info) descriptionIds.push(`${id}-info`);\n\n return (\n <Flex\n data-testid={testIds.root}\n {...restProps}\n container={{\n direction: inline ? 'row' : 'column',\n alignItems: inline ? 'center' : undefined,\n wrap: isRadioCheck ? 'wrap' : undefined,\n ...container\n }}\n as={StyledFormField}\n labelAsLegend={labelAsLegend}\n isRadioCheck={isRadioCheck}\n showAdditionalInfo={showAdditionalInfo}\n id={`${id}-field`}\n forwardedAs={as}\n required={required}\n disabled={disabled}\n readOnly={readOnly}\n onKeyDown={hasSuggestion ? onKeyDown : undefined}\n aria-describedby={descriptionIds.length ? descriptionIds.join(' ') : undefined}\n ref={consolidatedRef}\n className={createClassName('form-field', className, { status })}\n >\n {(labelAsLegend || !labelAfter) && labelRow}\n {content}\n {!labelAsLegend && labelAfter && labelRow}\n {!readOnly && infoContent}\n {isRadioCheck && onClear && (\n <StyledClearButton\n variant='link'\n onClick={() => {\n onClear();\n }}\n >\n {t('clear_selection')}\n </StyledClearButton>\n )}\n </Flex>\n );\n});\n\nexport default withTestIds(FormField, getFormFieldTestIds);\n"]}
1
+ {"version":3,"file":"FormField.js","sourceRoot":"","sources":["../../../src/components/FormField/FormField.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExF,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAEhC,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,OAAO,IAAI,EAAE,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE3C,OAAO,OAAO,MAAM,YAAY,CAAC;AAEjC,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACpG,OAAO,KAAK,EAAE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D,GAAG,SAAS;SACb,EACD,EAAE,EAAE,eAAe,EACnB,UAAU,EAAE,UAAU,EACtB,YAAY,EAAE,YAAY,EAC1B,kBAAkB,EAAE,kBAAkB,EACtC,EAAE,EAAE,GAAG,EAAE,QAAQ,EACjB,WAAW,EAAE,EAAE,EACf,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,sBAC9B,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC,cAAc,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,qBAC7D,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,EACjD,GAAG,EAAE,eAAe,EACpB,SAAS,EAAE,eAAe,CAAC,YAAY,EAAE,SAAS,EAAE,EAAE,MAAM,EAAE,CAAC,aAE9D,CAAC,UAAU,IAAI,CAAC,UAAU,CAAC,IAAI,QAAQ,EACvC,CAAC,QAAQ,IAAI,SAAS,IAAI,WAAW,EACrC,OAAO,EACP,CAAC,UAAU,IAAI,UAAU,IAAI,QAAQ,EACrC,CAAC,QAAQ,IAAI,CAAC,SAAS,IAAI,WAAW,EACtC,YAAY,IAAI,OAAO,IAAI,CAC1B,KAAC,iBAAiB,IAChB,OAAO,EAAC,MAAM,EACd,OAAO,EAAE,GAAG,EAAE;oBACZ,OAAO,EAAE,CAAC;gBACZ,CAAC,YAEA,CAAC,CAAC,iBAAiB,CAAC,GACH,CACrB,IACI,CACR,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,WAAW,CAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC","sourcesContent":["import { cloneElement, useEffect, forwardRef, useState, useRef, Children } from 'react';\nimport type { FC, ReactNode, ComponentType, ReactElement, PropsWithoutRef, Ref } from 'react';\nimport styled, { css } from 'styled-components';\nimport { rgba } from 'polished';\n\nimport { defaultThemeProp } from '../../theme';\nimport type { Action, ExcludeStrict, ForwardProps, OmitStrict, TestIdProp } from '../../types';\nimport Flex, { StyledFlex } from '../Flex';\nimport type { FlexProps } from '../Flex';\nimport Actions from '../Actions';\nimport type { FormControlProps } from '../FormControl';\nimport { useConsolidatedRef, useI18n, useLiveLog, useTestIds, useTheme, useUID } from '../../hooks';\nimport Label, { StyledLabel } from '../Label';\nimport type { LabelProps } from '../Label';\nimport {\n calculateFontSize,\n getHoverColors,\n readableColor,\n getReadableStatusColor\n} from '../../styles';\nimport VisuallyHiddenText from '../VisuallyHiddenText';\nimport { getFocusables, tryCatch, withTestIds, createClassName } from '../../utils';\nimport Button from '../Button';\nimport Icon, { registerIcon } from '../Icon';\nimport * as warnSolidIcon from '../Icon/icons/warn-solid.icon';\nimport * as diamondMinusIcon from '../Icon/icons/diamond-minus.icon';\nimport * as checkIcon from '../Icon/icons/check.icon';\nimport AdditionalInfo, { StyledAdditionalInfo } from '../AdditionalInfo';\nimport { StyledRadioCheck, StyledRadioCheckInput } from '../RadioCheck/RadioCheck';\n\nimport { getFormFieldTestIds } from './FormField.test-ids';\nimport type { elements } from './FormField.test-ids';\n\nregisterIcon(warnSolidIcon, diamondMinusIcon, checkIcon);\n\nexport interface FormFieldProps\n extends OmitStrict<FormControlProps, 'placeholder' | 'value' | 'defaultValue'>,\n TestIdProp<typeof elements> {\n /** Pass a single form control component i.e. Input | TextArea | Select | etc.. */\n children: ReactElement | ReactElement[];\n /**\n * An id is required to connect a FormField's wrapping element, control element and info(aria-describedby) live region.\n * A random id will be generated if none is provided.\n * Since MOST FormControls should possess an id(excl. i.e RadioCheckGroup and others) this can be used.\n * The id prop will be used to generate the following:\n * - FormControl <-> Label association via a Label's htmlFor prop.\n * - FormField's wrapping element id {id}-field.\n * - FormField info element id ${id}-info.\n */\n id?: string;\n /**\n * Determines how the wrapping label should be rendered.\n * @default 'label'\n */\n labelAs?: LabelProps['as'];\n /**\n * Overrides the for attribute on the label. If this is not set it will default to the forms id.\n * @default undefined\n */\n labelFor?: LabelProps['htmlFor'];\n /**\n * Sets the id of the label.\n * @default undefined\n */\n labelId?: LabelProps['id'];\n /**\n * Visually hides the label region.\n * @default false\n */\n labelHidden?: boolean;\n /**\n * Visually places the label after the input.\n * @default false\n */\n labelAfter?: boolean;\n /**\n * Property used to check whether input type is radio to handle styling for RadioCheck\n * @default false\n */\n isRadioCheck?: boolean;\n /**\n * Wrapping HTML element tag. Renders as a fieldset for grouped elements i.e. RadioButtons/CheckboxGroup\n * @default 'div'\n */\n as?: 'div' | 'fieldset' | ComponentType<any>;\n /**\n * Layout field elements inline in a row.\n * @default false\n */\n inline?: boolean;\n /** Optionally utilized by Input or Select. */\n actions?: Action[];\n /** Enables Flex container prop pass through. */\n container?: ExcludeStrict<FlexProps['container'], true>;\n /** Character remaining count. Typically used on Textareas only */\n charLimitDisplay?: ReactNode;\n /** Id of additional describing element. */\n 'aria-describedby'?: string;\n /** Callback invoked when the clear button is clicked. If provided will render the clear button. */\n onClear?: () => void;\n /** Suppresses announcements for status changes. */\n suppressAnnouncements?: boolean;\n}\n\nconst StyledStatusIcon = styled(Icon)<{ status: NonNullable<FormFieldProps['status']> }>(({\n theme,\n status\n}) => {\n return css`\n height: 1em;\n width: 1em;\n color: ${getReadableStatusColor(theme, status)};\n vertical-align: baseline;\n `;\n});\n\nStyledStatusIcon.defaultProps = defaultThemeProp;\n\nconst StyledClearButton = styled(Button)(({ theme }) => {\n return css`\n margin-block-start: calc(${theme.base.spacing} / 2);\n align-self: start;\n `;\n});\n\nStyledClearButton.defaultProps = defaultThemeProp;\n\nexport const StyledFormFieldInfo = styled.div<\n Pick<FormControlProps, 'status'> & { infoAbove?: boolean }\n>(({ status, infoAbove, theme }) => {\n const {\n base: { 'font-size': fontSize, 'font-scale': fontScale, spacing },\n components: { 'form-field': formField }\n } = theme;\n const fontSizes = calculateFontSize(fontSize, fontScale);\n const infoFontSize = fontSizes.xxs;\n\n return css`\n font-size: ${infoFontSize};\n word-break: break-word;\n\n &:not(:empty) {\n ${infoAbove\n ? css`\n margin-block-end: calc(0.25 * ${spacing});\n `\n : css`\n margin-block-start: calc(0.25 * ${spacing});\n `}\n }\n\n ${status &&\n formField[status] &&\n css`\n color: ${getReadableStatusColor(theme, status)};\n `}\n `;\n});\n\nStyledFormFieldInfo.defaultProps = defaultThemeProp;\n\nexport const StyledLabelRow = styled.div<{ inline: boolean }>(({ inline }) => {\n if (inline) {\n return css`\n flex-shrink: 0;\n width: 14ch;\n ${StyledAdditionalInfo} {\n align-self: center;\n }\n `;\n }\n});\n\nexport const StyledFormField = styled.div<\n FormFieldProps & {\n asFieldset: boolean;\n showAdditionalInfo: boolean;\n labelInline?: boolean;\n }\n>(props => {\n const {\n asFieldset,\n showAdditionalInfo,\n disabled,\n required,\n labelInline,\n theme: {\n base: {\n palette: { urgent },\n 'disabled-opacity': disabledOpacity,\n spacing,\n 'hit-area': { 'compact-min': hitAreaCompact }\n }\n }\n } = props;\n\n return css`\n ${disabled &&\n css`\n opacity: ${disabledOpacity};\n -webkit-user-select: none;\n user-select: none;\n `}\n position: relative;\n border: 0;\n\n &:has(${StyledRadioCheckInput}:only-of-type) {\n ${StyledFormFieldInfo} {\n min-width: 100%;\n }\n }\n\n ${StyledFlex}:has(${StyledRadioCheck}) {\n flex-shrink: 0;\n }\n\n > ${StyledLabel}, > ${StyledLabelRow}, > ${StyledFlex}:has(> ${StyledLabel}) {\n &:not(:empty) {\n margin-bottom: calc(0.25 * ${spacing});\n min-height: ${hitAreaCompact};\n }\n }\n\n > ${StyledLabel}, > ${StyledLabelRow} > ${StyledLabel}, > ${StyledFlex} > ${StyledLabel} {\n ${required &&\n css`\n &::after {\n content: ${'\"\\\\00a0*\" / \"\"'};\n color: ${urgent};\n }\n `}\n\n ${disabled &&\n css`\n cursor: not-allowed;\n `}\n }\n\n ${asFieldset &&\n showAdditionalInfo &&\n css`\n > ${StyledFlex} > ${StyledLabel} {\n display: block;\n }\n\n > ${StyledFlex}:has(> ${StyledLabel}) > ${StyledAdditionalInfo} {\n align-self: flex-start;\n }\n `}\n\n ${labelInline &&\n css`\n display: grid;\n grid-template-columns: 14ch 1fr;\n grid-template-rows: auto 1fr;\n align-items: start;\n\n ${StyledFlex}:has(> ${StyledLabel}), ${StyledFlex}:has(> ${StyledLabelRow}) {\n grid-row: span 2;\n }\n `}\n `;\n});\n\nStyledFormField.defaultProps = defaultThemeProp;\n\nconst StyledSuggestionButton = styled(Button)(({ theme }) => {\n const {\n base: { 'font-size': fontSize, 'font-scale': fontScale, 'border-radius': baseRadius, spacing },\n components: {\n 'form-control': { 'border-radius': radius, 'border-width': borderWidth }\n }\n } = theme;\n const { xxs: buttonFontSize } = calculateFontSize(fontSize, fontScale);\n const backgroundColor = getReadableStatusColor(theme, 'pending');\n const hoverColors = getHoverColors(backgroundColor);\n const color = tryCatch(() => readableColor(backgroundColor));\n const borderColor = color ? rgba(color, 0.4) : color;\n\n return css`\n background-color: ${backgroundColor};\n color: ${color};\n font-size: ${buttonFontSize};\n min-width: calc(3 * ${spacing});\n min-height: calc(3 * ${spacing});\n padding: 0 ${spacing};\n border-radius: 0;\n border: none;\n\n &:first-child {\n border-inline-end: ${borderWidth} solid ${borderColor};\n border-end-start-radius: calc(${baseRadius} * ${radius});\n margin-inline-start: calc(2 * ${spacing});\n }\n\n &:last-child {\n border-end-end-radius: calc(${baseRadius} * ${radius});\n margin-inline-start: 0;\n }\n\n &:hover {\n color: ${hoverColors.foreground};\n background-color: ${hoverColors.background};\n }\n\n @media (pointer: coarse) {\n min-height: 2rem;\n }\n `;\n});\n\nStyledSuggestionButton.defaultProps = defaultThemeProp;\n\nconst statusIconMap = { error: 'warn-solid', warning: 'diamond-minus', success: 'check' };\n\nconst FormField: FC<FormFieldProps & ForwardProps> = forwardRef(function FormField(\n props: PropsWithoutRef<FormFieldProps>,\n ref: Ref<HTMLElement>\n) {\n const uid = useUID();\n const theme = useTheme();\n const {\n testId,\n children: controlElement,\n id = uid,\n as = 'div',\n label,\n labelAs: labelAsProp = 'label',\n labelFor = id,\n labelId: labelIdProp,\n labelHidden = false,\n labelAfter = false,\n info,\n status,\n suppressAnnouncements,\n isRadioCheck,\n charLimitDisplay,\n required = false,\n disabled = false,\n readOnly = false,\n inline = theme.components['form-field'].layout === 'inline',\n onClear,\n actions,\n container,\n additionalInfo,\n onResolveSuggestion,\n 'aria-describedby': ariaDescribedBy,\n className,\n ...restProps\n } = props;\n\n const infoAbove = theme.components['form-field']['helper-text-position'] === 'above';\n const testIds = useTestIds(testId, getFormFieldTestIds);\n\n const asFieldset =\n as === 'fieldset' || (typeof as !== 'string' && 'target' in as && as.target === 'fieldset');\n const t = useI18n();\n const { announceAssertive } = useLiveLog();\n const labelAs = asFieldset ? 'span' : labelAsProp;\n const hasSuggestion = status === 'pending' && !!onResolveSuggestion;\n const consolidatedRef = useConsolidatedRef(ref);\n const labelRef = useRef<HTMLLabelElement | HTMLLegendElement>(null);\n const [labelText, setLabelText] = useState<string | null>(null);\n\n const showAdditionalInfo = !!additionalInfo && !disabled && !labelHidden;\n const labelInline = inline && !isRadioCheck && !labelHidden;\n const labelId = asFieldset && !labelIdProp ? `${id}-label` : labelIdProp;\n\n const labelContent = (\n <>\n <Label\n data-testid={testIds.label}\n id={labelId}\n as={labelAs}\n htmlFor={labelAs === 'label' ? labelFor : undefined}\n labelHidden={labelHidden}\n onClick={(e: MouseEvent) => {\n if (readOnly) e.preventDefault();\n }}\n inline={labelInline}\n ref={labelRef}\n >\n {label}\n </Label>\n\n {showAdditionalInfo && labelText && (\n <AdditionalInfo\n data-testid={testIds.additionalInfo}\n heading={additionalInfo.heading}\n contextualLabel={labelText}\n >\n {additionalInfo.content}\n </AdditionalInfo>\n )}\n </>\n );\n\n let labelRow: ReactNode;\n if (!isRadioCheck && !asFieldset && !labelHidden) {\n labelRow = (\n <Flex\n as={StyledLabelRow}\n container={{ justify: labelInline ? 'start' : 'between', alignItems: 'end' }}\n item={{ alignSelf: labelInline ? 'start' : 'stretch', shrink: labelInline ? 0 : undefined }}\n inline={labelInline}\n >\n {labelContent}\n </Flex>\n );\n } else if (asFieldset && !labelHidden) {\n labelRow = (\n <Flex\n container={{\n alignItems: 'end',\n justify: showAdditionalInfo && !isRadioCheck ? 'between' : undefined\n }}\n >\n {labelContent}\n </Flex>\n );\n } else {\n labelRow = labelContent;\n }\n\n useEffect(() => {\n setLabelText(labelRef.current?.textContent ?? null);\n }, [label]);\n\n useEffect(() => {\n if (suppressAnnouncements || (status !== 'error' && status !== 'warning')) return;\n\n let message = t(status);\n\n if (typeof info === 'string') message = `${message} ${info}`;\n\n if (labelRef.current?.textContent) message = `${labelRef.current?.textContent} ${message}`;\n\n announceAssertive({ message, type: status });\n }, [status, info]);\n\n // fieldset or single form control element\n let content: FormFieldProps['children'];\n if (asFieldset || Children.count(controlElement) > 1) {\n content = controlElement;\n } else {\n const controlElementAriaDescribedBy = Children.only(controlElement).props[\n 'aria-describedby'\n ] as string | undefined;\n content = cloneElement(controlElement as ReactElement, {\n 'aria-describedby':\n [controlElementAriaDescribedBy, info && !readOnly ? `${id}-info` : undefined]\n .join(' ')\n .trim() || undefined\n });\n }\n\n if (actions) {\n content = (\n <Flex\n container={{ alignItems: 'center', gap: 0.5 }}\n item={{ grow: labelInline ? 1 : undefined }}\n >\n {content}\n <Actions items={actions} menuAt={3} />\n </Flex>\n );\n }\n\n let infoContent = (\n <Flex\n id={`${id}-info`}\n data-testid={testIds.info}\n status={status}\n as={StyledFormFieldInfo}\n container={{ alignItems: 'center', gap: 0.5 }}\n infoAbove={infoAbove}\n >\n {status && status !== 'pending' && (\n <>\n <Flex\n item={{ alignSelf: 'start' }}\n as={StyledStatusIcon}\n status={status}\n name={statusIconMap[status]}\n />\n <VisuallyHiddenText>{`${t(status)} `}</VisuallyHiddenText>\n </>\n )}\n {info}\n </Flex>\n );\n\n if (charLimitDisplay) {\n infoContent = (\n <Flex container={{ justify: infoContent ? 'between' : 'end', gap: 1 }}>\n {infoContent}\n <Flex item={{ shrink: 0 }}>{charLimitDisplay}</Flex>\n </Flex>\n );\n }\n\n if (hasSuggestion) {\n const focusables = getFocusables(consolidatedRef);\n infoContent = (\n <Flex container={{ alignItems: 'start', justify: 'between' }}>\n <StyledFormFieldInfo\n data-testid={testIds.info}\n status={status}\n id={`${id}-info`}\n infoAbove={infoAbove}\n >\n {t('suggestion_info')}\n <VisuallyHiddenText aria-live='polite'>{t('suggestion_assist')}</VisuallyHiddenText>\n </StyledFormFieldInfo>\n <Flex container={{ wrap: 'nowrap' }}>\n <StyledSuggestionButton\n data-testid={testIds.suggestionReject}\n onClick={() => {\n onResolveSuggestion(false);\n focusables[0]?.focus();\n }}\n aria-label={`${t('no')}, ${t('reject_suggestion_button_a11y')}${labelText ? ` - ${labelText}` : ''}`}\n >\n {t('no')}\n </StyledSuggestionButton>\n <StyledSuggestionButton\n data-testid={testIds.suggestionAccept}\n onClick={() => {\n onResolveSuggestion(true);\n focusables[0]?.focus();\n }}\n aria-label={`${t('yes')}, ${t('accept_suggestion_button_a11y')}${labelText ? ` - ${labelText}` : ''}`}\n >\n {t('yes')}\n </StyledSuggestionButton>\n </Flex>\n </Flex>\n );\n }\n\n const onKeyDown = (e: KeyboardEvent) => {\n if (e.key === 'Enter') {\n const target = e.target as HTMLElement;\n if (!target.closest('button')) {\n e.preventDefault();\n onResolveSuggestion?.(true);\n }\n }\n };\n\n const descriptionIds = [];\n if (ariaDescribedBy) descriptionIds.push(ariaDescribedBy);\n if (asFieldset && info) descriptionIds.push(`${id}-info`);\n\n return (\n <Flex\n data-testid={testIds.root}\n {...restProps}\n container={{\n direction: inline && !labelHidden ? 'row' : 'column',\n alignItems: inline && !labelHidden ? 'center' : undefined,\n wrap: isRadioCheck || inline ? 'wrap' : undefined,\n ...container\n }}\n as={StyledFormField}\n asFieldset={asFieldset}\n isRadioCheck={isRadioCheck}\n showAdditionalInfo={showAdditionalInfo}\n id={`${id}-field`}\n forwardedAs={as}\n required={required}\n disabled={disabled}\n readOnly={readOnly}\n labelInline={labelInline}\n onKeyDown={hasSuggestion ? onKeyDown : undefined}\n aria-describedby={descriptionIds.length ? descriptionIds.join(' ') : undefined}\n aria-labelledby={asFieldset ? labelId : undefined}\n ref={consolidatedRef}\n className={createClassName('form-field', className, { status })}\n >\n {(asFieldset || !labelAfter) && labelRow}\n {!readOnly && infoAbove && infoContent}\n {content}\n {!asFieldset && labelAfter && labelRow}\n {!readOnly && !infoAbove && infoContent}\n {isRadioCheck && onClear && (\n <StyledClearButton\n variant='link'\n onClick={() => {\n onClear();\n }}\n >\n {t('clear_selection')}\n </StyledClearButton>\n )}\n </Flex>\n );\n});\n\nexport default withTestIds(FormField, getFormFieldTestIds);\n"]}
@@ -1,3 +1,3 @@
1
- export { default, StyledFormFieldInfo } from './FormField';
1
+ export { default, StyledFormFieldInfo, StyledFormField, StyledLabelRow } from './FormField';
2
2
  export type { FormFieldProps } from './FormField';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FormField/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAC3D,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FormField/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC5F,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC"}
@@ -1,2 +1,2 @@
1
- export { default, StyledFormFieldInfo } from './FormField';
1
+ export { default, StyledFormFieldInfo, StyledFormField, StyledLabelRow } from './FormField';
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/FormField/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC","sourcesContent":["export { default, StyledFormFieldInfo } from './FormField';\nexport type { FormFieldProps } from './FormField';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/FormField/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC","sourcesContent":["export { default, StyledFormFieldInfo, StyledFormField, StyledLabelRow } from './FormField';\nexport type { FormFieldProps } from './FormField';\n"]}
@@ -1,13 +1,11 @@
1
1
  import type { ReactNode } from 'react';
2
- import { type DefaultTheme } from 'styled-components';
3
2
  import type { TestIdProp, WithAttributes } from '../../types';
4
3
  export type FullscreenProps = WithAttributes<'div', {
5
4
  children: ReactNode;
6
5
  }> & TestIdProp;
7
- export declare const StyledFullscreen: import("styled-components").StyledComponent<"div", DefaultTheme, {
8
- theme: DefaultTheme;
9
- fullscreen: boolean;
10
- }, never>;
6
+ export declare const StyledFullscreen: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
7
+ fullscreen?: boolean;
8
+ }>> & string;
11
9
  export type FullscreenContextValue = [boolean | undefined, () => void] | undefined;
12
10
  export declare const FullscreenContext: import("react").Context<FullscreenContextValue>;
13
11
  export declare const useFullscreenContext: () => FullscreenContextValue;
@@ -1 +1 @@
1
- {"version":3,"file":"Fullscreen.d.ts","sourceRoot":"","sources":["../../../src/components/Fullscreen/Fullscreen.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAmB,SAAS,EAA2B,MAAM,OAAO,CAAC;AACjF,OAAe,EAAO,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGnE,OAAO,KAAK,EAAc,UAAU,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAgB1E,MAAM,MAAM,eAAe,GAAG,cAAc,CAC1C,KAAK,EACL;IACE,QAAQ,EAAE,SAAS,CAAC;CACrB,CACF,GACC,UAAU,CAAC;AAEb,eAAO,MAAM,gBAAgB;WACM,YAAY;gBAAc,OAAO;SAYnE,CAAC;AAIF,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,GAAG,SAAS,EAAE,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;AAEnF,eAAO,MAAM,iBAAiB,iDAAmD,CAAC;AAElF,eAAO,MAAM,oBAAoB,8BAGhC,CAAC;;;;AA0BF,wBAqDE"}
1
+ {"version":3,"file":"Fullscreen.d.ts","sourceRoot":"","sources":["../../../src/components/Fullscreen/Fullscreen.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAmB,SAAS,EAA2B,MAAM,OAAO,CAAC;AAIjF,OAAO,KAAK,EAAc,UAAU,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAgB1E,MAAM,MAAM,eAAe,GAAG,cAAc,CAC1C,KAAK,EACL;IACE,QAAQ,EAAE,SAAS,CAAC;CACrB,CACF,GACC,UAAU,CAAC;AAEb,eAAO,MAAM,gBAAgB;iBAA6B,OAAO;YAe/D,CAAC;AAIH,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,GAAG,SAAS,EAAE,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;AAEnF,eAAO,MAAM,iBAAiB,iDAAmD,CAAC;AAElF,eAAO,MAAM,oBAAoB,8BAGhC,CAAC;;;;AA0BF,wBAqDE"}
@@ -9,15 +9,19 @@ import { withTestIds } from '../../utils';
9
9
  import { getFullscreenTestIds } from './Fullscreen.test-ids';
10
10
  export const StyledFullscreen = styled.div(({ theme, fullscreen }) => {
11
11
  return css `
12
- ${fullscreen &&
12
+ ${fullscreen &&
13
13
  css `
14
- --content-height-in-view: 100vh;
15
- position: fixed;
16
- z-index: ${theme.base['z-index'].backdrop};
17
- inset: 0;
18
- background: ${theme.base.palette['primary-background']};
19
- `}
20
- `;
14
+ --content-height-in-view: calc(
15
+ 100dvh - var(--appshell-top-offset, 0rem) - var(--appshell-hard-bottom-offset, 0rem)
16
+ );
17
+ position: fixed;
18
+ z-index: ${theme.base['z-index'].backdrop};
19
+ inset-inline: 0;
20
+ inset-block-start: var(--appshell-top-offset, 0);
21
+ inset-block-end: var(--appshell-hard-bottom-offset, 0);
22
+ background: ${theme.base.palette['primary-background']};
23
+ `}
24
+ `;
21
25
  });
22
26
  StyledFullscreen.defaultProps = defaultThemeProp;
23
27
  export const FullscreenContext = createContext(undefined);
@@ -1 +1 @@
1
- {"version":3,"file":"Fullscreen.js","sourceRoot":"","sources":["../../../src/components/Fullscreen/Fullscreen.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE5F,OAAO,MAAM,EAAE,EAAE,GAAG,EAAqB,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAGzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,UAAU,EACV,YAAY,EACZ,aAAa,EACb,eAAe,EACf,UAAU,EACX,MAAM,aAAa,CAAC;AACrB,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAU7D,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,GAAG,CACxC,CAAC,EAAE,KAAK,EAAE,UAAU,EAAgD,EAAE,EAAE;IACtE,OAAO,GAAG,CAAA;QACN,UAAU;QACZ,GAAG,CAAA;;;mBAGU,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,QAAQ;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AM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,UAAU,EAAkB,CAAC;IAE7D,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAsB,SAAS,CAAC,CAAC;IAE7E,MAAM,QAAQ,GAA2B,OAAO,CAAC,GAAG,EAAE;QACpD,OAAO;YACL,UAAU;YACV,GAAG,EAAE;gBACH,aAAa,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC;YAC7B,CAAC;SACF,CAAC;IACJ,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;IAEjB,MAAM,SAAS,GAAG,aAAa,CAAC,QAAQ,EAAE,CAAC,CAAC,UAAU,CAAC,CAAC;IAExD,MAAM,SAAS,GAAG,CAChB,KAAC,gBAAgB,mBACF,OAAO,CAAC,IAAI,6BACA,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,KAClD,SAAS,EACb,GAAG,EAAE,WAAW,EAChB,UAAU,EAAE,CAAC,CAAC,UAAU,qBACP,SAAS,YAEzB,QAAQ,GACQ,CACpB,CAAC;IAEF,OAAO,CACL,KAAC,iBAAiB,CAAC,QAAQ,IAAC,KAAK,EAAE,QAAQ,YACxC,UAAU,IAAI,QAAQ,CAAC,CAAC,CAAC,CACxB,8BAEE,cAAK,GAAG,EAAE,WAAW,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,GAAI,EACrD,KAAC,YAAY,IAAC,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW,GAAI,IAC/D,CACJ,CAAC,CAAC,CAAC,CACF,SAAS,CACV,GAC0B,CAC9B,CAAC;AACJ,CAAC,CAAC,EACF,oBAAoB,CACrB,CAAC","sourcesContent":["import { forwardRef, createContext, useContext, useMemo, useState, useEffect } from 'react';\nimport type { PropsWithoutRef, ReactNode, ReactElement, RefObject } from 'react';\nimport styled, { css, type DefaultTheme } from 'styled-components';\nimport { createPortal } from 'react-dom';\n\nimport type { RefElement, TestIdProp, WithAttributes } from '../../types';\nimport { defaultThemeProp } from '../../theme';\nimport {\n useConfiguration,\n useConsolidatedRef,\n useElement,\n useFocusTrap,\n usePopoverMap,\n useScrollToggle,\n useTestIds\n} from '../../hooks';\nimport Configuration from '../Configuration';\nimport { withTestIds } from '../../utils';\n\nimport { getFullscreenTestIds } from './Fullscreen.test-ids';\n\nexport type FullscreenProps = WithAttributes<\n 'div',\n {\n children: ReactNode;\n }\n> &\n TestIdProp;\n\nexport const StyledFullscreen = styled.div(\n ({ theme, fullscreen }: { theme: DefaultTheme; fullscreen: boolean }) => {\n return css`\n ${fullscreen &&\n css`\n --content-height-in-view: 100vh;\n position: fixed;\n z-index: ${theme.base['z-index'].backdrop};\n inset: 0;\n background: ${theme.base.palette['primary-background']};\n `}\n `;\n }\n);\n\nStyledFullscreen.defaultProps = defaultThemeProp;\n\nexport type FullscreenContextValue = [boolean | undefined, () => void] | undefined;\n\nexport const FullscreenContext = createContext<FullscreenContextValue>(undefined);\n\nexport const useFullscreenContext = () => {\n // Ensure easier/safer destructuring in use\n return useContext(FullscreenContext);\n};\n\nconst PortalRender = ({\n parentJSX,\n parentElRef\n}: {\n parentJSX: ReactElement;\n parentElRef: RefObject<HTMLDivElement>;\n}) => {\n const { portalTarget } = useConfiguration();\n useFocusTrap(parentElRef);\n const { disableScroll, enableScroll } = useScrollToggle();\n\n useEffect(() => {\n disableScroll();\n return enableScroll;\n }, []);\n\n return portalTarget\n ? createPortal(\n <Configuration portalTarget={parentElRef.current ?? undefined}>{parentJSX}</Configuration>,\n portalTarget\n )\n : null;\n};\n\nexport default withTestIds(\n forwardRef<RefElement<FullscreenProps>, PropsWithoutRef<FullscreenProps>>(function Fullscreen(\n { children, testId, ...restProps },\n ref\n ) {\n const testIds = useTestIds(testId, getFullscreenTestIds);\n // setParentEl ensures one extra render needed for keeping div passed to PortalRender up to date\n const [parentEl, setParentEl] = useElement<HTMLDivElement>();\n const parentElRef = useConsolidatedRef(setParentEl, ref);\n\n const [targetEl, setTargetEl] = useElement<HTMLDivElement>();\n\n const [fullscreen, setFullscreen] = useState<boolean | undefined>(undefined);\n\n const ctxValue: FullscreenContextValue = useMemo(() => {\n return [\n fullscreen,\n () => {\n setFullscreen(cur => !cur);\n }\n ];\n }, [fullscreen]);\n\n const popoverId = usePopoverMap(targetEl, !!fullscreen);\n\n const parentJSX = (\n <StyledFullscreen\n data-testid={testIds.root}\n data-fullscreen-enabled={fullscreen ? true : undefined}\n {...restProps}\n ref={parentElRef}\n fullscreen={!!fullscreen}\n data-popover-id={popoverId}\n >\n {children}\n </StyledFullscreen>\n );\n\n return (\n <FullscreenContext.Provider value={ctxValue}>\n {fullscreen && parentEl ? (\n <>\n {/* DOM element required for outer event management. */}\n <div ref={setTargetEl} style={{ display: 'none' }} />\n <PortalRender parentJSX={parentJSX} parentElRef={parentElRef} />\n </>\n ) : (\n parentJSX\n )}\n </FullscreenContext.Provider>\n );\n }),\n getFullscreenTestIds\n);\n"]}
1
+ {"version":3,"file":"Fullscreen.js","sourceRoot":"","sources":["../../../src/components/Fullscreen/Fullscreen.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE5F,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAGzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,UAAU,EACV,YAAY,EACZ,aAAa,EACb,eAAe,EACf,UAAU,EACX,MAAM,aAAa,CAAC;AACrB,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,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,CAAC,CAAC,CAAC,CACF,SAAS,CACV,GAC0B,CAC9B,CAAC;AACJ,CAAC,CAAC,EACF,oBAAoB,CACrB,CAAC","sourcesContent":["import { forwardRef, createContext, useContext, useMemo, useState, useEffect } from 'react';\nimport type { PropsWithoutRef, ReactNode, ReactElement, RefObject } from 'react';\nimport styled, { css } from 'styled-components';\nimport { createPortal } from 'react-dom';\n\nimport type { RefElement, TestIdProp, WithAttributes } from '../../types';\nimport { defaultThemeProp } from '../../theme';\nimport {\n useConfiguration,\n useConsolidatedRef,\n useElement,\n useFocusTrap,\n usePopoverMap,\n useScrollToggle,\n useTestIds\n} from '../../hooks';\nimport Configuration from '../Configuration';\nimport { withTestIds } from '../../utils';\n\nimport { getFullscreenTestIds } from './Fullscreen.test-ids';\n\nexport type FullscreenProps = WithAttributes<\n 'div',\n {\n children: ReactNode;\n }\n> &\n TestIdProp;\n\nexport const StyledFullscreen = styled.div<{ fullscreen?: boolean }>(({ theme, fullscreen }) => {\n return css`\n ${fullscreen &&\n css`\n --content-height-in-view: calc(\n 100dvh - var(--appshell-top-offset, 0rem) - var(--appshell-hard-bottom-offset, 0rem)\n );\n position: fixed;\n z-index: ${theme.base['z-index'].backdrop};\n inset-inline: 0;\n inset-block-start: var(--appshell-top-offset, 0);\n inset-block-end: var(--appshell-hard-bottom-offset, 0);\n background: ${theme.base.palette['primary-background']};\n `}\n `;\n});\n\nStyledFullscreen.defaultProps = defaultThemeProp;\n\nexport type FullscreenContextValue = [boolean | undefined, () => void] | undefined;\n\nexport const FullscreenContext = createContext<FullscreenContextValue>(undefined);\n\nexport const useFullscreenContext = () => {\n // Ensure easier/safer destructuring in use\n return useContext(FullscreenContext);\n};\n\nconst PortalRender = ({\n parentJSX,\n parentElRef\n}: {\n parentJSX: ReactElement;\n parentElRef: RefObject<HTMLDivElement>;\n}) => {\n const { portalTarget } = useConfiguration();\n useFocusTrap(parentElRef);\n const { disableScroll, enableScroll } = useScrollToggle();\n\n useEffect(() => {\n disableScroll();\n return enableScroll;\n }, []);\n\n return portalTarget\n ? createPortal(\n <Configuration portalTarget={parentElRef.current ?? undefined}>{parentJSX}</Configuration>,\n portalTarget\n )\n : null;\n};\n\nexport default withTestIds(\n forwardRef<RefElement<FullscreenProps>, PropsWithoutRef<FullscreenProps>>(function Fullscreen(\n { children, testId, ...restProps },\n ref\n ) {\n const testIds = useTestIds(testId, getFullscreenTestIds);\n // setParentEl ensures one extra render needed for keeping div passed to PortalRender up to date\n const [parentEl, setParentEl] = useElement<HTMLDivElement>();\n const parentElRef = useConsolidatedRef(setParentEl, ref);\n\n const [targetEl, setTargetEl] = useElement<HTMLDivElement>();\n\n const [fullscreen, setFullscreen] = useState<boolean | undefined>(undefined);\n\n const ctxValue: FullscreenContextValue = useMemo(() => {\n return [\n fullscreen,\n () => {\n setFullscreen(cur => !cur);\n }\n ];\n }, [fullscreen]);\n\n const popoverId = usePopoverMap(targetEl, !!fullscreen);\n\n const parentJSX = (\n <StyledFullscreen\n data-testid={testIds.root}\n data-fullscreen-enabled={fullscreen ? true : undefined}\n {...restProps}\n ref={parentElRef}\n fullscreen={!!fullscreen}\n data-popover-id={popoverId}\n >\n {children}\n </StyledFullscreen>\n );\n\n return (\n <FullscreenContext.Provider value={ctxValue}>\n {fullscreen && parentEl ? (\n <>\n {/* DOM element required for outer event management. */}\n <div ref={setTargetEl} style={{ display: 'none' }} />\n <PortalRender parentJSX={parentJSX} parentElRef={parentElRef} />\n </>\n ) : (\n parentJSX\n )}\n </FullscreenContext.Provider>\n );\n }),\n getFullscreenTestIds\n);\n"]}
@@ -1,6 +1,8 @@
1
1
  import type { NoChildrenProp, WithAttributes } from '../../types';
2
2
  export type FullscreenButtonProps = WithAttributes<'button', NoChildrenProp>;
3
- export declare const StyledFullscreenButton: import("styled-components").StyledComponent<import("../../types").ForwardRefForwardPropsComponent<import("../Button").ButtonProps>, import("styled-components").DefaultTheme, {}, never>;
3
+ export declare const StyledFullscreenButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<import("../Button").ButtonProps, "ref"> & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement> & import("../../types").ForwardProps, "ref"> & {
4
+ ref?: ((instance: HTMLAnchorElement | HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLAnchorElement | HTMLButtonElement> | null | undefined;
5
+ }, never>> & string & Omit<import("../../types").ForwardRefForwardPropsComponent<import("../Button").ButtonProps>, keyof import("react").Component<any, {}, any>>;
4
6
  declare const _default: import("react").ForwardRefExoticComponent<Omit<FullscreenButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
5
7
  export default _default;
6
8
  //# sourceMappingURL=FullscreenButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FullscreenButton.d.ts","sourceRoot":"","sources":["../../../src/components/Fullscreen/FullscreenButton.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAc,cAAc,EAAE,MAAM,aAAa,CAAC;AAY9E,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC;AAE7E,eAAO,MAAM,sBAAsB,0LAAmB,CAAC;;AAIvD,wBAmCG"}
1
+ {"version":3,"file":"FullscreenButton.d.ts","sourceRoot":"","sources":["../../../src/components/Fullscreen/FullscreenButton.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAc,cAAc,EAAE,MAAM,aAAa,CAAC;AAY9E,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC;AAE7E,eAAO,MAAM,sBAAsB;;iKAAmB,CAAC;;AAIvD,wBAmCG"}
@@ -1,6 +1,6 @@
1
1
  import type { ForwardRefForwardPropsComponent } from '../../types';
2
2
  import type GridProps from './Grid.types';
3
- export declare const StyledGrid: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, GridProps, never>;
3
+ export declare const StyledGrid: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, GridProps>> & string;
4
4
  declare const Grid: ForwardRefForwardPropsComponent<GridProps>;
5
5
  export default Grid;
6
6
  //# sourceMappingURL=Grid.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Grid.d.ts","sourceRoot":"","sources":["../../../src/components/Grid/Grid.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,aAAa,CAAC;AAGnE,OAAO,KAAK,SAAS,MAAM,cAAc,CAAC;AAwL1C,eAAO,MAAM,UAAU,gHAqCtB,CAAC;AAIF,QAAA,MAAM,IAAI,EAAE,+BAA+B,CAAC,SAAS,CAKnD,CAAC;AAEH,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"Grid.d.ts","sourceRoot":"","sources":["../../../src/components/Grid/Grid.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,aAAa,CAAC;AAGnE,OAAO,KAAK,SAAS,MAAM,cAAc,CAAC;AAwL1C,eAAO,MAAM,UAAU,8OAqCtB,CAAC;AAIF,QAAA,MAAM,IAAI,EAAE,+BAA+B,CAAC,SAAS,CAKnD,CAAC;AAEH,eAAe,IAAI,CAAC"}
@@ -6,10 +6,10 @@ export interface HTMLProps extends BaseProps, NoChildrenProp, TestIdProp {
6
6
  customTags?: string[];
7
7
  ref?: Ref<HTMLDivElement>;
8
8
  }
9
- export declare const listStyles: import("styled-components").FlattenSimpleInterpolation;
10
- export declare const getTableStyles: (theme: DefaultTheme) => import("styled-components").FlattenSimpleInterpolation;
9
+ export declare const listStyles: import("styled-components").RuleSet<object>;
10
+ export declare const getTableStyles: (theme: DefaultTheme) => import("styled-components").RuleSet<object>;
11
11
  export declare const getHtmlStyles: (theme: DefaultTheme) => string;
12
- export declare const StyledHTML: import("styled-components").StyledComponent<"div", DefaultTheme, {}, never>;
12
+ export declare const StyledHTML: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
13
13
  declare const _default: ForwardRefForwardPropsComponent<HTMLProps> & {
14
14
  getTestIds: (testIdProp?: TestIdProp["testId"]) => import("../../types").TestIdsRecord<readonly []>;
15
15
  };
@@ -1 +1 @@
1
- {"version":3,"file":"HTML.d.ts","sourceRoot":"","sources":["../../../src/components/HTML/HTML.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAmB,GAAG,EAAE,MAAM,OAAO,CAAC;AAElD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAOtD,OAAO,KAAK,EACV,SAAS,EACT,+BAA+B,EAC/B,cAAc,EACd,UAAU,EACX,MAAM,aAAa,CAAC;AAQrB,MAAM,WAAW,SAAU,SAAQ,SAAS,EAAE,cAAc,EAAE,UAAU;IACtE,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CAC3B;AAED,eAAO,MAAM,UAAU,wDA2CtB,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,OAAO,YAAY,2DA2BjD,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,OAAO,YAAY,WAwDhD,CAAC;AAEF,eAAO,MAAM,UAAU,6EAqBrB,CAAC;;;;AA6EH,wBAAiD"}
1
+ {"version":3,"file":"HTML.d.ts","sourceRoot":"","sources":["../../../src/components/HTML/HTML.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAmB,GAAG,EAAE,MAAM,OAAO,CAAC;AAElD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAOtD,OAAO,KAAK,EACV,SAAS,EACT,+BAA+B,EAC/B,cAAc,EACd,UAAU,EACX,MAAM,aAAa,CAAC;AAQrB,MAAM,WAAW,SAAU,SAAQ,SAAS,EAAE,cAAc,EAAE,UAAU;IACtE,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CAC3B;AAED,eAAO,MAAM,UAAU,6CA2CtB,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,OAAO,YAAY,gDAiCjD,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,OAAO,YAAY,WAwDhD,CAAC;AAEF,eAAO,MAAM,UAAU,6NAqBrB,CAAC;;;;AA6EH,wBAAiD"}
@@ -56,27 +56,33 @@ export const listStyles = css `
56
56
  export const getTableStyles = (theme) => css `
57
57
  border-collapse: collapse;
58
58
 
59
- td {
59
+ td,
60
+ th {
60
61
  border: 0.0625rem solid ${theme.base.palette['border-line']};
61
62
  min-width: 6.25rem;
63
+ padding: ${theme.base.spacing};
62
64
  }
63
65
 
64
66
  tr:first-child {
65
- td:first-child {
67
+ td:first-child,
68
+ th:first-child {
66
69
  border-top-left-radius: 0.125rem;
67
70
  }
68
71
 
69
- td:last-child {
72
+ td:last-child,
73
+ th:last-child {
70
74
  border-top-right-radius: 0.125rem;
71
75
  }
72
76
  }
73
77
 
74
78
  tr:last-child {
75
- td:first-child {
79
+ td:first-child,
80
+ th:first-child {
76
81
  border-bottom-left-radius: 0.125rem;
77
82
  }
78
83
 
79
- td:last-child {
84
+ td:last-child,
85
+ th:last-child {
80
86
  border-bottom-right-radius: 0.125rem;
81
87
  }
82
88
  }
@@ -1 +1 @@
1
- {"version":3,"file":"HTML.js","sourceRoot":"","sources":["../../../src/components/HTML/HTML.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE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,OAAO,CAAC,IAAI,KACrB,SAAS,EACb,uBAAuB,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE,EAClD,GAAG,EAAE,GAAG,GACR,CACH,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,WAAW,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC","sourcesContent":["import { forwardRef, useState, useEffect, useMemo } from 'react';\nimport type { PropsWithoutRef, Ref } from 'react';\nimport styled, { css } from 'styled-components';\nimport type { DefaultTheme } from 'styled-components';\nimport createDOMPurify from 'dompurify';\n\nimport { StyledPopover } from '../Popover';\nimport { defaultThemeProp } from '../../theme';\nimport { calculateFontSize } from '../../styles';\nimport type { FontSize } from '../../styles';\nimport type {\n BaseProps,\n ForwardRefForwardPropsComponent,\n NoChildrenProp,\n TestIdProp\n} from '../../types';\nimport { allowedURI, withTestIds } from '../../utils';\nimport { useTestIds } from '../../hooks';\n\nimport { getHTMLTestIds } from './HTML.test-ids';\n\nconst DOMPurify = createDOMPurify();\n\nexport interface HTMLProps extends BaseProps, NoChildrenProp, TestIdProp {\n content: string;\n customTags?: string[];\n ref?: Ref<HTMLDivElement>;\n}\n\nexport const listStyles = css`\n ul,\n ol {\n padding-inline-start: 2.5rem;\n }\n\n li {\n margin: 0.5rem 0;\n }\n\n ul li {\n ul {\n margin-inline-start: 1rem;\n list-style-type: circle;\n }\n\n ul ul {\n margin-inline-start: 2rem;\n list-style-type: square;\n }\n\n ul ul ul {\n margin-inline-start: 3rem;\n list-style-type: disc;\n }\n }\n\n ol li {\n ol {\n margin-inline-start: 1rem;\n list-style-type: lower-alpha;\n }\n\n ol ol {\n margin-inline-start: 2rem;\n list-style-type: lower-roman;\n }\n\n ol ol ol {\n margin-inline-start: 3rem;\n list-style-type: decimal;\n }\n }\n`;\n\nexport const getTableStyles = (theme: DefaultTheme) => css`\n border-collapse: collapse;\n\n td {\n border: 0.0625rem solid ${theme.base.palette['border-line']};\n min-width: 6.25rem;\n }\n\n tr:first-child {\n td:first-child {\n border-top-left-radius: 0.125rem;\n }\n\n td:last-child {\n border-top-right-radius: 0.125rem;\n }\n }\n\n tr:last-child {\n td:first-child {\n border-bottom-left-radius: 0.125rem;\n }\n\n td:last-child {\n border-bottom-right-radius: 0.125rem;\n }\n }\n`;\n\nexport const getHtmlStyles = (theme: DefaultTheme) => {\n const {\n base: { 'font-size': baseFontSize, 'font-scale': baseFontScale, palette },\n components: { text }\n } = theme;\n const fontSize = calculateFontSize(baseFontSize, baseFontScale);\n return `\n ${listStyles}\n table {\n ${getTableStyles(theme)}\n }\n img {\n max-width: 100%;\n height: auto;\n border-radius: 0.25rem;\n }\n a {\n color: ${palette.interactive};\n }\n pre {\n white-space: break-spaces;\n }\n p {\n min-height: ${fontSize[text.primary['font-size'] as FontSize]};\n }\n h1 {\n font-size: ${fontSize[text.h1['font-size'] as FontSize]};\n font-weight: ${text.h1['font-weight']};\n min-height: ${fontSize[text.h1['font-size'] as FontSize]};\n }\n h2 {\n font-size: ${fontSize[text.h2['font-size'] as FontSize]};\n font-weight: ${text.h2['font-weight']};\n min-height: ${fontSize[text.h2['font-size'] as FontSize]};\n }\n h3 {\n font-size: ${fontSize[text.h3['font-size'] as FontSize]};\n font-weight: ${text.h3['font-weight']};\n min-height: ${fontSize[text.h3['font-size'] as FontSize]};\n }\n h4 {\n font-size: ${fontSize[text.h4['font-size'] as FontSize]};\n font-weight: ${text.h4['font-weight']};\n min-height: ${fontSize[text.h4['font-size'] as FontSize]};\n }\n h5 {\n font-size: ${fontSize[text.h5['font-size'] as FontSize]};\n font-weight: ${text.h5['font-weight']};\n min-height: ${fontSize[text.h5['font-size'] as FontSize]};\n }\n h6 {\n font-size: ${fontSize[text.h6['font-size'] as FontSize]};\n font-weight: ${text.h6['font-weight']};\n min-height: ${fontSize[text.h6['font-size'] as FontSize]};\n }\n `;\n};\n\nexport const StyledHTML = styled.div(({ theme }) => {\n return css`\n width: 100%;\n overflow-x: auto;\n overflow-wrap: break-word;\n contain: paint;\n ${getHtmlStyles(theme)}\n\n ${StyledPopover} ul {\n ul {\n padding-inline-start: 0;\n }\n ol {\n padding-inline-start: 0;\n }\n }\n\n ${StyledPopover} li {\n margin: 0;\n }\n `;\n});\n\nStyledHTML.defaultProps = defaultThemeProp;\n\nif (DOMPurify.isSupported) {\n const targetBlankSet = new WeakSet<HTMLAnchorElement>();\n\n DOMPurify.addHook('beforeSanitizeAttributes', node => {\n // Can be passed text nodes\n if (!(node instanceof HTMLElement || node instanceof SVGElement)) return;\n\n node.removeAttribute('class');\n\n if (\n node.tagName === 'A' &&\n node.hasAttribute('href') &&\n node.getAttribute('target') === '_blank'\n ) {\n targetBlankSet.add(node as HTMLAnchorElement);\n }\n });\n\n DOMPurify.addHook('afterSanitizeAttributes', node => {\n if (node.tagName === 'A' && node.hasAttribute('href')) {\n const href = node.getAttribute('href')!;\n\n let fullURL: URL;\n try {\n fullURL = new URL(href, window.location.href);\n } catch (e) {\n return;\n }\n\n if (window.location.origin !== fullURL.origin) {\n node.setAttribute('target', '_blank');\n node.setAttribute('rel', 'noopener');\n } else if (targetBlankSet.has(node as HTMLAnchorElement)) {\n node.setAttribute('target', '_blank');\n targetBlankSet.delete(node as HTMLAnchorElement);\n }\n }\n });\n}\n\nconst HTML: ForwardRefForwardPropsComponent<HTMLProps> = forwardRef(function HTML(\n { testId, content, customTags, ...restProps }: PropsWithoutRef<HTMLProps>,\n ref: HTMLProps['ref']\n) {\n const [mounted, setMounted] = useState(false);\n const sanitizedHtml = useMemo(() => {\n // Don't render content on the server at all.\n return mounted && DOMPurify.isSupported\n ? DOMPurify.sanitize(content, {\n FORBID_TAGS: ['style', 'font'],\n CUSTOM_ELEMENT_HANDLING: {\n tagNameCheck: customTags ? tagName => customTags.includes(tagName) : undefined\n },\n ALLOWED_URI_REGEXP: allowedURI\n })\n : '';\n }, [content, customTags, mounted]);\n const testIds = useTestIds(testId, getHTMLTestIds);\n\n useEffect(() => {\n setMounted(true);\n }, []);\n\n return (\n <StyledHTML\n data-testid={testIds.root}\n {...restProps}\n dangerouslySetInnerHTML={{ __html: sanitizedHtml }}\n ref={ref}\n />\n );\n});\n\nexport default withTestIds(HTML, getHTMLTestIds);\n"]}
1
+ {"version":3,"file":"HTML.js","sourceRoot":"","sources":["../../../src/components/HTML/HTML.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEjE,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,eAAe,MAAM,WAAW,CAAC;AAExC,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAQjD,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,MAAM,SAAS,GAAG,eAAe,EAAE,CAAC;AAQpC,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2C5B,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAmB,EAAE,EAAE,CAAC,GAAG,CAAA;;;;;8BAK5B,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC;;eAEhD,KAAK,CAAC,IAAI,CAAC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BhC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAAmB,EAAE,EAAE;IACnD,MAAM,EACJ,IAAI,EAAE,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,OAAO,EAAE,EACz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EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC;IACnC,MAAM,OAAO,GAAG,UAAU,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAEnD,SAAS,CAAC,GAAG,EAAE;QACb,UAAU,CAAC,IAAI,CAAC,CAAC;IACnB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,KAAC,UAAU,mBACI,OAAO,CAAC,IAAI,KACrB,SAAS,EACb,uBAAuB,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE,EAClD,GAAG,EAAE,GAAG,GACR,CACH,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,WAAW,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC","sourcesContent":["import { forwardRef, useState, useEffect, useMemo } from 'react';\nimport type { PropsWithoutRef, Ref } from 'react';\nimport styled, { css } from 'styled-components';\nimport type { DefaultTheme } from 'styled-components';\nimport createDOMPurify from 'dompurify';\n\nimport { StyledPopover } from '../Popover';\nimport { defaultThemeProp } from '../../theme';\nimport { calculateFontSize } from '../../styles';\nimport type { FontSize } from '../../styles';\nimport type {\n BaseProps,\n ForwardRefForwardPropsComponent,\n NoChildrenProp,\n TestIdProp\n} from '../../types';\nimport { allowedURI, withTestIds } from '../../utils';\nimport { useTestIds } from '../../hooks';\n\nimport { getHTMLTestIds } from './HTML.test-ids';\n\nconst DOMPurify = createDOMPurify();\n\nexport interface HTMLProps extends BaseProps, NoChildrenProp, TestIdProp {\n content: string;\n customTags?: string[];\n ref?: Ref<HTMLDivElement>;\n}\n\nexport const listStyles = css`\n ul,\n ol {\n padding-inline-start: 2.5rem;\n }\n\n li {\n margin: 0.5rem 0;\n }\n\n ul li {\n ul {\n margin-inline-start: 1rem;\n list-style-type: circle;\n }\n\n ul ul {\n margin-inline-start: 2rem;\n list-style-type: square;\n }\n\n ul ul ul {\n margin-inline-start: 3rem;\n list-style-type: disc;\n }\n }\n\n ol li {\n ol {\n margin-inline-start: 1rem;\n list-style-type: lower-alpha;\n }\n\n ol ol {\n margin-inline-start: 2rem;\n list-style-type: lower-roman;\n }\n\n ol ol ol {\n margin-inline-start: 3rem;\n list-style-type: decimal;\n }\n }\n`;\n\nexport const getTableStyles = (theme: DefaultTheme) => css`\n border-collapse: collapse;\n\n td,\n th {\n border: 0.0625rem solid ${theme.base.palette['border-line']};\n min-width: 6.25rem;\n padding: ${theme.base.spacing};\n }\n\n tr:first-child {\n td:first-child,\n th:first-child {\n border-top-left-radius: 0.125rem;\n }\n\n td:last-child,\n th:last-child {\n border-top-right-radius: 0.125rem;\n }\n }\n\n tr:last-child {\n td:first-child,\n th:first-child {\n border-bottom-left-radius: 0.125rem;\n }\n\n td:last-child,\n th:last-child {\n border-bottom-right-radius: 0.125rem;\n }\n }\n`;\n\nexport const getHtmlStyles = (theme: DefaultTheme) => {\n const {\n base: { 'font-size': baseFontSize, 'font-scale': baseFontScale, palette },\n components: { text }\n } = theme;\n const fontSize = calculateFontSize(baseFontSize, baseFontScale);\n return `\n ${listStyles}\n table {\n ${getTableStyles(theme)}\n }\n img {\n max-width: 100%;\n height: auto;\n border-radius: 0.25rem;\n }\n a {\n color: ${palette.interactive};\n }\n pre {\n white-space: break-spaces;\n }\n p {\n min-height: ${fontSize[text.primary['font-size'] as FontSize]};\n }\n h1 {\n font-size: ${fontSize[text.h1['font-size'] as FontSize]};\n font-weight: ${text.h1['font-weight']};\n min-height: ${fontSize[text.h1['font-size'] as FontSize]};\n }\n h2 {\n font-size: ${fontSize[text.h2['font-size'] as FontSize]};\n font-weight: ${text.h2['font-weight']};\n min-height: ${fontSize[text.h2['font-size'] as FontSize]};\n }\n h3 {\n font-size: ${fontSize[text.h3['font-size'] as FontSize]};\n font-weight: ${text.h3['font-weight']};\n min-height: ${fontSize[text.h3['font-size'] as FontSize]};\n }\n h4 {\n font-size: ${fontSize[text.h4['font-size'] as FontSize]};\n font-weight: ${text.h4['font-weight']};\n min-height: ${fontSize[text.h4['font-size'] as FontSize]};\n }\n h5 {\n font-size: ${fontSize[text.h5['font-size'] as FontSize]};\n font-weight: ${text.h5['font-weight']};\n min-height: ${fontSize[text.h5['font-size'] as FontSize]};\n }\n h6 {\n font-size: ${fontSize[text.h6['font-size'] as FontSize]};\n font-weight: ${text.h6['font-weight']};\n min-height: ${fontSize[text.h6['font-size'] as FontSize]};\n }\n `;\n};\n\nexport const StyledHTML = styled.div(({ theme }) => {\n return css`\n width: 100%;\n overflow-x: auto;\n overflow-wrap: break-word;\n contain: paint;\n ${getHtmlStyles(theme)}\n\n ${StyledPopover} ul {\n ul {\n padding-inline-start: 0;\n }\n ol {\n padding-inline-start: 0;\n }\n }\n\n ${StyledPopover} li {\n margin: 0;\n }\n `;\n});\n\nStyledHTML.defaultProps = defaultThemeProp;\n\nif (DOMPurify.isSupported) {\n const targetBlankSet = new WeakSet<HTMLAnchorElement>();\n\n DOMPurify.addHook('beforeSanitizeAttributes', node => {\n // Can be passed text nodes\n if (!(node instanceof HTMLElement || node instanceof SVGElement)) return;\n\n node.removeAttribute('class');\n\n if (\n node.tagName === 'A' &&\n node.hasAttribute('href') &&\n node.getAttribute('target') === '_blank'\n ) {\n targetBlankSet.add(node as HTMLAnchorElement);\n }\n });\n\n DOMPurify.addHook('afterSanitizeAttributes', node => {\n if (node.tagName === 'A' && node.hasAttribute('href')) {\n const href = node.getAttribute('href')!;\n\n let fullURL: URL;\n try {\n fullURL = new URL(href, window.location.href);\n } catch (e) {\n return;\n }\n\n if (window.location.origin !== fullURL.origin) {\n node.setAttribute('target', '_blank');\n node.setAttribute('rel', 'noopener');\n } else if (targetBlankSet.has(node as HTMLAnchorElement)) {\n node.setAttribute('target', '_blank');\n targetBlankSet.delete(node as HTMLAnchorElement);\n }\n }\n });\n}\n\nconst HTML: ForwardRefForwardPropsComponent<HTMLProps> = forwardRef(function HTML(\n { testId, content, customTags, ...restProps }: PropsWithoutRef<HTMLProps>,\n ref: HTMLProps['ref']\n) {\n const [mounted, setMounted] = useState(false);\n const sanitizedHtml = useMemo(() => {\n // Don't render content on the server at all.\n return mounted && DOMPurify.isSupported\n ? DOMPurify.sanitize(content, {\n FORBID_TAGS: ['style', 'font'],\n CUSTOM_ELEMENT_HANDLING: {\n tagNameCheck: customTags ? tagName => customTags.includes(tagName) : undefined\n },\n ALLOWED_URI_REGEXP: allowedURI\n })\n : '';\n }, [content, customTags, mounted]);\n const testIds = useTestIds(testId, getHTMLTestIds);\n\n useEffect(() => {\n setMounted(true);\n }, []);\n\n return (\n <StyledHTML\n data-testid={testIds.root}\n {...restProps}\n dangerouslySetInnerHTML={{ __html: sanitizedHtml }}\n ref={ref}\n />\n );\n});\n\nexport default withTestIds(HTML, getHTMLTestIds);\n"]}
@@ -5,7 +5,7 @@ type HiddenTextProps = WithAttributes<'span', {
5
5
  /** Text content for an accessible label/description. */
6
6
  children: string;
7
7
  }>;
8
- export declare const StyledHiddenText: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
8
+ export declare const StyledHiddenText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
9
9
  declare const _default: import("react").ForwardRefExoticComponent<Omit<HiddenTextProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
10
10
  export default _default;
11
11
  //# sourceMappingURL=HiddenText.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"HiddenText.d.ts","sourceRoot":"","sources":["../../../src/components/HiddenText/HiddenText.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAc,cAAc,EAAE,MAAM,aAAa,CAAC;AAG9D,KAAK,eAAe,GAAG,cAAc,CACnC,MAAM,EACN;IACE,2FAA2F;IAC3F,EAAE,EAAE,MAAM,CAAC;IACX,wDAAwD;IACxD,QAAQ,EAAE,MAAM,CAAC;CAClB,CACF,CAAC;AAEF,eAAO,MAAM,gBAAgB,0GAE5B,CAAC;;AAEF,wBAQE"}
1
+ {"version":3,"file":"HiddenText.d.ts","sourceRoot":"","sources":["../../../src/components/HiddenText/HiddenText.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAc,cAAc,EAAE,MAAM,aAAa,CAAC;AAG9D,KAAK,eAAe,GAAG,cAAc,CACnC,MAAM,EACN;IACE,2FAA2F;IAC3F,EAAE,EAAE,MAAM,CAAC;IACX,wDAAwD;IACxD,QAAQ,EAAE,MAAM,CAAC;CAClB,CACF,CAAC;AAEF,eAAO,MAAM,gBAAgB,+NAE5B,CAAC;;AAEF,wBAQE"}
@@ -42,15 +42,15 @@ export interface IconModule extends IconDefinition {
42
42
  }
43
43
  export declare const registerIcon: (...icons: IconModule[]) => void;
44
44
  export declare const forceRegisterIcon: (...icons: IconModule[]) => void;
45
- export declare const StyledIcon: import("styled-components").StyledComponent<"svg", import("styled-components").DefaultTheme, {
45
+ export declare const StyledIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").SVGProps<SVGSVGElement>, {
46
46
  size?: IconProps["size"];
47
- }, never>;
48
- export declare const StyledIconShape: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
47
+ }>> & string;
48
+ export declare const StyledIconShape: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
49
49
  background: NonNullable<IconProps["background"]>;
50
50
  foreground?: IconProps["foreground"];
51
51
  size?: IconProps["size"];
52
52
  shape?: IconProps["shape"];
53
- }, never>;
53
+ }>> & string;
54
54
  declare const Icon: ForwardRefExoticComponent<IconProps>;
55
55
  export default Icon;
56
56
  //# sourceMappingURL=Icon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAwB,aAAa,EAAE,yBAAyB,EAAE,MAAM,OAAO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S,CAAC,MAAM,CAAC,CAAC;CACzB;AAID,eAAO,MAAM,YAAY,GAAI,GAAG,OAAO,UAAU,EAAE,SAUlD,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,GAAG,OAAO,UAAU,EAAE,SAUvD,CAAC;AAEF,eAAO,MAAM,UAAU;WAAuB,SAAS,CAAC,MAAM,CAAC;YA8C7D,CAAC;AAIH,eAAO,MAAM,eAAe;gBACd,WAAW,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;iBACnC,SAAS,CAAC,YAAY,CAAC;WAC7B,SAAS,CAAC,MAAM,CAAC;YAChB,SAAS,CAAC,OAAO,CAAC;YAiE1B,CAAC;AAMH,QAAA,MAAM,IAAI,EAqGJ,yBAAyB,CAAC,SAAS,CAAC,CAAC;AAE3C,eAAe,IAAI,CAAC"}
@@ -39,6 +39,10 @@ export const StyledIcon = styled.svg(({ theme, size = 's' }) => {
39
39
  min-height: 14px;
40
40
  /* stylelint-enable unit-allowed-list */
41
41
 
42
+ @media (forced-colors: active) {
43
+ fill: CanvasText;
44
+ }
45
+
42
46
  ${size === 's' &&
43
47
  css `
44
48
  width: ${s};
@@ -66,7 +70,7 @@ export const StyledIcon = styled.svg(({ theme, size = 's' }) => {
66
70
  });
67
71
  StyledIcon.defaultProps = defaultThemeProp;
68
72
  export const StyledIconShape = styled.div(({ theme, background, foreground, size = 'm', shape = 'square' }) => {
69
- const readableFg = readableColor(background);
73
+ const readableFg = readableColor(background, { level: 'AANonText' });
70
74
  const { base: { 'border-radius': baseRadius }, components: { icon: { size: { s, m, l }, 'border-radius-multiplier': borderRadiusMultiplier } } } = theme;
71
75
  return css `
72
76
  color: ${foreground ?? readableFg};
@@ -74,6 +78,7 @@ export const StyledIconShape = styled.div(({ theme, background, foreground, size
74
78
  display: flex;
75
79
  justify-content: center;
76
80
  align-items: center;
81
+ overflow: clip;
77
82
 
78
83
  ${size === 's' &&
79
84
  css `
@@ -171,7 +176,7 @@ const Icon = forwardRef(function Icon({ set: setProp, name, size, 'aria-label':
171
176
  })();
172
177
  return () => controller.abort();
173
178
  }, [name, set]);
174
- return typeof restProps.background === 'string' ? (_jsx(StyledIconShape, { ...restProps, background: restProps.background, foreground: restProps.foreground, shape: restProps.shape, size: size, ref: ref, children: _jsx(StyledIcon, { role: role ?? ariaLabel !== undefined ? 'img' : 'presentation', "aria-label": ariaLabel, viewBox: iconDef.viewBox, children: _jsx(iconDef.Component, {}) }) })) : (_jsx(StyledIcon, { ...restProps, role: role ?? ariaLabel !== undefined ? 'img' : 'presentation', "aria-label": ariaLabel, viewBox: iconDef.viewBox, size: size, ref: ref, children: _jsx(iconDef.Component, {}) }));
179
+ return typeof restProps.background === 'string' ? (_jsx(StyledIconShape, { ...restProps, background: restProps.background, foreground: restProps.foreground, shape: restProps.shape, size: size, ref: ref, children: _jsx(StyledIcon, { role: role ?? (ariaLabel === undefined ? 'presentation' : 'img'), "aria-label": ariaLabel, viewBox: iconDef.viewBox, "data-icon-name": name, children: _jsx(iconDef.Component, {}) }) })) : (_jsx(StyledIcon, { ...restProps, role: role ?? (ariaLabel === undefined ? 'presentation' : 'img'), "aria-label": ariaLabel, viewBox: iconDef.viewBox, size: size, "data-icon-name": name, ref: ref, children: _jsx(iconDef.Component, {}) }));
175
180
  });
176
181
  export default Icon;
177
182
  //# sourceMappingURL=Icon.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.js","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAExD,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAsD7C,MAAM,YAAY,GAAG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AAE,CAAC;gBAC/B,UAAU,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,CAAE,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,mBAAmB,CAAC,CAAC;YACtE,CAAC;QACH,CAAC,CAAC,EAAE,CAAC;QAEL,OAAO,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC;IAEhB,OAAO,OAAO,SAAS,CAAC,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,CAChD,KAAC,eAAe,OACV,SAAS,EACb,UAAU,EAAE,SAAS,CAAC,UAAU,EAChC,UAAU,EAAE,SAAS,CAAC,UAAU,EAChC,KAAK,EAAE,SAAS,CAAC,KAAK,EACtB,IAAI,EAAE,IAAI,EACV,GAAG,EAAE,GAA0B,YAE/B,KAAC,UAAU,IACT,IAAI,EAAE,IAAI,IAAI,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,cAAc,gBAClD,SAAS,EACrB,OAAO,EAAE,OAAO,CAAC,OAAO,YAExB,KAAC,OAAO,CAAC,SAAS,KAAG,GACV,GACG,CACnB,CAAC,CAAC,CAAC,CACF,KAAC,UAAU,OACL,SAAS,EACb,IAAI,EAAE,IAAI,IAAI,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,cAAc,gBAClD,SAAS,EACrB,OAAO,EAAE,OAAO,CAAC,OAAO,EACxB,IAAI,EAAE,IAAI,EACV,GAAG,EAAE,GAAyB,YAE9B,KAAC,OAAO,CAAC,SAAS,KAAG,GACV,CACd,CAAC;AACJ,CAAC,CAAyC,CAAC;AAE3C,eAAe,IAAI,CAAC","sourcesContent":["import { forwardRef, useState, useEffect } from 'react';\nimport type { Ref, PropsWithoutRef, ComponentType, ForwardRefExoticComponent } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport { useTheme } from '../../hooks';\nimport type { NoChildrenProp, RefElement, WithAttributes } from '../../types';\nimport { defaultThemeProp } from '../../theme';\nimport { readableColor } from '../../styles';\n\ntype BaseIconProps = NoChildrenProp & {\n /**\n * The name of the icon set.\n * @default theme.base['icon-set']\n */\n set?: string;\n /** The name indicating the Cosmos Icon. Reference the catalog above for the available names. */\n name: string;\n /**\n * Background & svg size.\n * @default \"s\" without background, \"m\" with background.\n */\n size?: 's' | 'm' | 'l' | 'font-size';\n};\n\nexport type IconProps =\n | WithAttributes<\n 'div',\n BaseIconProps & {\n /** Background color. */\n background: string;\n /**\n * Foreground color (svg fill).\n * Applies readable color off background if undefined.\n */\n foreground?: string;\n /**\n * Shape of the background.\n * @default 'square'\n */\n shape?: 'square' | 'circle';\n }\n >\n | WithAttributes<\n 'svg',\n BaseIconProps & {\n background?: never;\n foreground?: never;\n shape?: never;\n }\n >;\n\nexport interface IconDefinition {\n Component: ComponentType;\n viewBox?: string;\n}\n\nexport interface IconModule extends IconDefinition {\n set?: IconProps['set'];\n name: IconProps['name'];\n}\n\nconst iconRegistry = new Map<string, Map<string, IconDefinition>>([]);\n\nexport const registerIcon = (...icons: IconModule[]) => {\n icons.forEach(({ set: modSet, name, ...iconDef }) => {\n const set = modSet ?? 'budicon';\n\n if (!iconRegistry.has(set)) {\n iconRegistry.set(set, new Map([[name, iconDef]]));\n } else if (!iconRegistry.get(set)!.has(name)) {\n iconRegistry.get(set)!.set(name, iconDef);\n }\n });\n};\n\nexport const forceRegisterIcon = (...icons: IconModule[]) => {\n icons.forEach(({ set: modSet, name, ...iconDef }) => {\n const set = modSet ?? 'budicon';\n\n if (!iconRegistry.has(set)) {\n iconRegistry.set(set, new Map([[name, iconDef]]));\n } else {\n iconRegistry.get(set)!.set(name, iconDef);\n }\n });\n};\n\nexport const StyledIcon = styled.svg<{ size?: IconProps['size'] }>(({ theme, size = 's' }) => {\n const {\n components: {\n icon: {\n size: { s, m, l }\n }\n }\n } = theme;\n return css`\n display: inline-block;\n fill: currentColor;\n vertical-align: middle;\n flex-shrink: 0;\n /* stylelint-disable unit-allowed-list */\n min-width: 14px;\n min-height: 14px;\n /* stylelint-enable unit-allowed-list */\n\n ${size === 's' &&\n css`\n width: ${s};\n height: ${s};\n `}\n\n ${size === 'm' &&\n css`\n width: ${m};\n height: ${m};\n `}\n\n ${size === 'l' &&\n css`\n width: ${l};\n height: ${l};\n `}\n\n ${size === 'font-size' &&\n css`\n width: 1em;\n height: 1em;\n `}\n `;\n});\n\nStyledIcon.defaultProps = defaultThemeProp;\n\nexport const StyledIconShape = styled.div<{\n background: NonNullable<IconProps['background']>;\n foreground?: IconProps['foreground'];\n size?: IconProps['size'];\n shape?: IconProps['shape'];\n}>(({ theme, background, foreground, size = 'm', shape = 'square' }) => {\n const readableFg = readableColor(background);\n\n const {\n base: { 'border-radius': baseRadius },\n components: {\n icon: {\n size: { s, m, l },\n 'border-radius-multiplier': borderRadiusMultiplier\n }\n }\n } = theme;\n\n return css`\n color: ${foreground ?? readableFg};\n background-color: ${background};\n display: flex;\n justify-content: center;\n align-items: center;\n\n ${size === 's' &&\n css`\n width: ${s};\n height: ${s};\n `}\n\n ${size === 'm' &&\n css`\n width: ${m};\n height: ${m};\n `}\n\n ${size === 'l' &&\n css`\n width: ${l};\n height: ${l};\n `}\n\n ${size === 'font-size' &&\n css`\n width: 1em;\n height: 1em;\n `}\n\n ${shape === 'square' &&\n css`\n border-radius: calc(${borderRadiusMultiplier} * ${baseRadius});\n `}\n\n ${shape === 'circle' &&\n css`\n border-radius: 50%;\n `}\n\n ${StyledIcon} {\n width: 50%;\n height: 50%;\n /* stylelint-disable unit-allowed-list */\n min-width: min(14px, 90%);\n min-height: min(14px, 90%);\n /* stylelint-enable unit-allowed-list */\n }\n `;\n});\n\nStyledIconShape.defaultProps = defaultThemeProp;\n\nconst emptyIconDefinition: Readonly<IconDefinition> = Object.freeze({ Component: () => null });\n\nconst Icon = forwardRef<RefElement<IconProps>, PropsWithoutRef<IconProps>>(function Icon(\n {\n set: setProp,\n name,\n size,\n 'aria-label': ariaLabel,\n role,\n ...restProps\n }: PropsWithoutRef<IconProps>,\n ref\n) {\n const {\n base: { 'icon-set': setTheme }\n } = useTheme();\n\n const set = setProp ?? setTheme ?? 'budicon';\n\n const [iconDef, setIconDef] = useState(iconRegistry.get(set)?.get(name) ?? emptyIconDefinition);\n\n useEffect(() => {\n if (iconRegistry.get(set)?.has(name)) {\n setIconDef(iconRegistry.get(set)!.get(name)!);\n return;\n }\n\n const controller = new AbortController();\n\n (async () => {\n try {\n const encodedName = encodeURIComponent(name);\n let iconSet: string;\n let module: IconModule;\n\n switch (set) {\n case 'streamline':\n iconSet = 'streamline-icons';\n break;\n case 'budicon':\n iconSet = 'icons';\n break;\n default:\n throw new Error('Unknown icon');\n }\n\n // Different extensions are required for different build setups.\n try {\n module = await import(`./${iconSet}/${encodedName}.icon`);\n } catch {\n try {\n module = await import(`./${iconSet}/${encodedName}.icon.tsx`);\n } catch {\n module = await import(`./${iconSet}/${encodedName}.icon.js`);\n }\n }\n\n if (module.name !== name || !module.Component) throw new Error('Malformed icon definition');\n\n registerIcon(module);\n } catch {\n registerIcon({ set, name, ...emptyIconDefinition });\n }\n\n if (!controller.signal.aborted) {\n setIconDef(iconRegistry.get(set)!.get(name) ?? emptyIconDefinition);\n }\n })();\n\n return () => controller.abort();\n }, [name, set]);\n\n return typeof restProps.background === 'string' ? (\n <StyledIconShape\n {...restProps}\n background={restProps.background}\n foreground={restProps.foreground}\n shape={restProps.shape}\n size={size}\n ref={ref as Ref<HTMLDivElement>}\n >\n <StyledIcon\n role={role ?? ariaLabel !== undefined ? 'img' : 'presentation'}\n aria-label={ariaLabel}\n viewBox={iconDef.viewBox}\n >\n <iconDef.Component />\n </StyledIcon>\n </StyledIconShape>\n ) : (\n <StyledIcon\n {...restProps}\n role={role ?? ariaLabel !== undefined ? 'img' : 'presentation'}\n aria-label={ariaLabel}\n viewBox={iconDef.viewBox}\n size={size}\n ref={ref as Ref<SVGSVGElement>}\n >\n <iconDef.Component />\n </StyledIcon>\n );\n}) as ForwardRefExoticComponent<IconProps>;\n\nexport default Icon;\n"]}
1
+ {"version":3,"file":"Icon.js","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAExD,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAsD7C,MAAM,YAAY,GAAG,IAAI,GAAG,CAAsC,EAAE,CAAC,CAAC;AAEtE,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,GAAG,KAAmB,EAAE,EAAE;IACrD,KAAK,CAAC,OAAO,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,EAAE;QAClD,MAAM,GAAG,GAAG,MAAM,IAAI,SAAS,CAAC;QAEhC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;YAC3B,YAAY,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;QACpD,CAAC;aAAM,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,CAAE,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;YAC7C,YAAY,CAAC,GAAG,CAAC,GAAG,CAAE,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAC5C,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,GAAG,KAAmB,EAAE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AEpB,KAAC,OAAO,CAAC,SAAS,KAAG,GACV,GACG,CACnB,CAAC,CAAC,CAAC,CACF,KAAC,UAAU,OACL,SAAS,EACb,IAAI,EAAE,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,KAAK,CAAC,gBACpD,SAAS,EACrB,OAAO,EAAE,OAAO,CAAC,OAAO,EACxB,IAAI,EAAE,IAAI,oBACM,IAAI,EACpB,GAAG,EAAE,GAAyB,YAE9B,KAAC,OAAO,CAAC,SAAS,KAAG,GACV,CACd,CAAC;AACJ,CAAC,CAAyC,CAAC;AAE3C,eAAe,IAAI,CAAC","sourcesContent":["import { forwardRef, useState, useEffect } from 'react';\nimport type { Ref, PropsWithoutRef, ComponentType, ForwardRefExoticComponent } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport { useTheme } from '../../hooks';\nimport type { NoChildrenProp, RefElement, WithAttributes } from '../../types';\nimport { defaultThemeProp } from '../../theme';\nimport { readableColor } from '../../styles';\n\ntype BaseIconProps = NoChildrenProp & {\n /**\n * The name of the icon set.\n * @default theme.base['icon-set']\n */\n set?: string;\n /** The name indicating the Cosmos Icon. Reference the catalog above for the available names. */\n name: string;\n /**\n * Background & svg size.\n * @default \"s\" without background, \"m\" with background.\n */\n size?: 's' | 'm' | 'l' | 'font-size';\n};\n\nexport type IconProps =\n | WithAttributes<\n 'div',\n BaseIconProps & {\n /** Background color. */\n background: string;\n /**\n * Foreground color (svg fill).\n * Applies readable color off background if undefined.\n */\n foreground?: string;\n /**\n * Shape of the background.\n * @default 'square'\n */\n shape?: 'square' | 'circle';\n }\n >\n | WithAttributes<\n 'svg',\n BaseIconProps & {\n background?: never;\n foreground?: never;\n shape?: never;\n }\n >;\n\nexport interface IconDefinition {\n Component: ComponentType;\n viewBox?: string;\n}\n\nexport interface IconModule extends IconDefinition {\n set?: IconProps['set'];\n name: IconProps['name'];\n}\n\nconst iconRegistry = new Map<string, Map<string, IconDefinition>>([]);\n\nexport const registerIcon = (...icons: IconModule[]) => {\n icons.forEach(({ set: modSet, name, ...iconDef }) => {\n const set = modSet ?? 'budicon';\n\n if (!iconRegistry.has(set)) {\n iconRegistry.set(set, new Map([[name, iconDef]]));\n } else if (!iconRegistry.get(set)!.has(name)) {\n iconRegistry.get(set)!.set(name, iconDef);\n }\n });\n};\n\nexport const forceRegisterIcon = (...icons: IconModule[]) => {\n icons.forEach(({ set: modSet, name, ...iconDef }) => {\n const set = modSet ?? 'budicon';\n\n if (!iconRegistry.has(set)) {\n iconRegistry.set(set, new Map([[name, iconDef]]));\n } else {\n iconRegistry.get(set)!.set(name, iconDef);\n }\n });\n};\n\nexport const StyledIcon = styled.svg<{ size?: IconProps['size'] }>(({ theme, size = 's' }) => {\n const {\n components: {\n icon: {\n size: { s, m, l }\n }\n }\n } = theme;\n return css`\n display: inline-block;\n fill: currentColor;\n vertical-align: middle;\n flex-shrink: 0;\n /* stylelint-disable unit-allowed-list */\n min-width: 14px;\n min-height: 14px;\n /* stylelint-enable unit-allowed-list */\n\n @media (forced-colors: active) {\n fill: CanvasText;\n }\n\n ${size === 's' &&\n css`\n width: ${s};\n height: ${s};\n `}\n\n ${size === 'm' &&\n css`\n width: ${m};\n height: ${m};\n `}\n\n ${size === 'l' &&\n css`\n width: ${l};\n height: ${l};\n `}\n\n ${size === 'font-size' &&\n css`\n width: 1em;\n height: 1em;\n `}\n `;\n});\n\nStyledIcon.defaultProps = defaultThemeProp;\n\nexport const StyledIconShape = styled.div<{\n background: NonNullable<IconProps['background']>;\n foreground?: IconProps['foreground'];\n size?: IconProps['size'];\n shape?: IconProps['shape'];\n}>(({ theme, background, foreground, size = 'm', shape = 'square' }) => {\n const readableFg = readableColor(background, { level: 'AANonText' });\n\n const {\n base: { 'border-radius': baseRadius },\n components: {\n icon: {\n size: { s, m, l },\n 'border-radius-multiplier': borderRadiusMultiplier\n }\n }\n } = theme;\n\n return css`\n color: ${foreground ?? readableFg};\n background-color: ${background};\n display: flex;\n justify-content: center;\n align-items: center;\n overflow: clip;\n\n ${size === 's' &&\n css`\n width: ${s};\n height: ${s};\n `}\n\n ${size === 'm' &&\n css`\n width: ${m};\n height: ${m};\n `}\n\n ${size === 'l' &&\n css`\n width: ${l};\n height: ${l};\n `}\n\n ${size === 'font-size' &&\n css`\n width: 1em;\n height: 1em;\n `}\n\n ${shape === 'square' &&\n css`\n border-radius: calc(${borderRadiusMultiplier} * ${baseRadius});\n `}\n\n ${shape === 'circle' &&\n css`\n border-radius: 50%;\n `}\n\n ${StyledIcon} {\n width: 50%;\n height: 50%;\n /* stylelint-disable unit-allowed-list */\n min-width: min(14px, 90%);\n min-height: min(14px, 90%);\n /* stylelint-enable unit-allowed-list */\n }\n `;\n});\n\nStyledIconShape.defaultProps = defaultThemeProp;\n\nconst emptyIconDefinition: Readonly<IconDefinition> = Object.freeze({ Component: () => null });\n\nconst Icon = forwardRef<RefElement<IconProps>, PropsWithoutRef<IconProps>>(function Icon(\n {\n set: setProp,\n name,\n size,\n 'aria-label': ariaLabel,\n role,\n ...restProps\n }: PropsWithoutRef<IconProps>,\n ref\n) {\n const {\n base: { 'icon-set': setTheme }\n } = useTheme();\n\n const set = setProp ?? setTheme ?? 'budicon';\n\n const [iconDef, setIconDef] = useState(iconRegistry.get(set)?.get(name) ?? emptyIconDefinition);\n\n useEffect(() => {\n if (iconRegistry.get(set)?.has(name)) {\n setIconDef(iconRegistry.get(set)!.get(name)!);\n return;\n }\n\n const controller = new AbortController();\n\n (async () => {\n try {\n const encodedName = encodeURIComponent(name);\n let iconSet: string;\n let module: IconModule;\n\n switch (set) {\n case 'streamline':\n iconSet = 'streamline-icons';\n break;\n case 'budicon':\n iconSet = 'icons';\n break;\n default:\n throw new Error('Unknown icon');\n }\n\n // Different extensions are required for different build setups.\n try {\n module = await import(`./${iconSet}/${encodedName}.icon`);\n } catch {\n try {\n module = await import(`./${iconSet}/${encodedName}.icon.tsx`);\n } catch {\n module = await import(`./${iconSet}/${encodedName}.icon.js`);\n }\n }\n\n if (module.name !== name || !module.Component) throw new Error('Malformed icon definition');\n\n registerIcon(module);\n } catch {\n registerIcon({ set, name, ...emptyIconDefinition });\n }\n\n if (!controller.signal.aborted) {\n setIconDef(iconRegistry.get(set)!.get(name) ?? emptyIconDefinition);\n }\n })();\n\n return () => controller.abort();\n }, [name, set]);\n\n return typeof restProps.background === 'string' ? (\n <StyledIconShape\n {...restProps}\n background={restProps.background}\n foreground={restProps.foreground}\n shape={restProps.shape}\n size={size}\n ref={ref as Ref<HTMLDivElement>}\n >\n <StyledIcon\n role={role ?? (ariaLabel === undefined ? 'presentation' : 'img')}\n aria-label={ariaLabel}\n viewBox={iconDef.viewBox}\n data-icon-name={name}\n >\n <iconDef.Component />\n </StyledIcon>\n </StyledIconShape>\n ) : (\n <StyledIcon\n {...restProps}\n role={role ?? (ariaLabel === undefined ? 'presentation' : 'img')}\n aria-label={ariaLabel}\n viewBox={iconDef.viewBox}\n size={size}\n data-icon-name={name}\n ref={ref as Ref<SVGSVGElement>}\n >\n <iconDef.Component />\n </StyledIcon>\n );\n}) as ForwardRefExoticComponent<IconProps>;\n\nexport default Icon;\n"]}