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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1045) hide show
  1. package/lib/components/Actions/Actions.d.ts +5 -0
  2. package/lib/components/Actions/Actions.d.ts.map +1 -1
  3. package/lib/components/Actions/Actions.js +2 -2
  4. package/lib/components/Actions/Actions.js.map +1 -1
  5. package/lib/components/AdditionalInfo/AdditionalInfo.d.ts +11 -0
  6. package/lib/components/AdditionalInfo/AdditionalInfo.d.ts.map +1 -0
  7. package/lib/components/AdditionalInfo/AdditionalInfo.js +25 -0
  8. package/lib/components/AdditionalInfo/AdditionalInfo.js.map +1 -0
  9. package/lib/components/AdditionalInfo/index.d.ts +2 -0
  10. package/lib/components/AdditionalInfo/index.d.ts.map +1 -0
  11. package/lib/components/AdditionalInfo/index.js +2 -0
  12. package/lib/components/AdditionalInfo/index.js.map +1 -0
  13. package/lib/components/AppShell/AppHeader.d.ts.map +1 -1
  14. package/lib/components/AppShell/AppHeader.js +17 -8
  15. package/lib/components/AppShell/AppHeader.js.map +1 -1
  16. package/lib/components/AppShell/AppHeader.styles.d.ts +16 -0
  17. package/lib/components/AppShell/AppHeader.styles.d.ts.map +1 -0
  18. package/lib/components/AppShell/AppHeader.styles.js +155 -0
  19. package/lib/components/AppShell/AppHeader.styles.js.map +1 -0
  20. package/lib/components/AppShell/AppShell.d.ts.map +1 -1
  21. package/lib/components/AppShell/AppShell.js +92 -220
  22. package/lib/components/AppShell/AppShell.js.map +1 -1
  23. package/lib/components/AppShell/AppShell.styles.d.ts +7 -48
  24. package/lib/components/AppShell/AppShell.styles.d.ts.map +1 -1
  25. package/lib/components/AppShell/AppShell.styles.js +54 -527
  26. package/lib/components/AppShell/AppShell.styles.js.map +1 -1
  27. package/lib/components/AppShell/AppShell.types.d.ts +29 -80
  28. package/lib/components/AppShell/AppShell.types.d.ts.map +1 -1
  29. package/lib/components/AppShell/AppShell.types.js.map +1 -1
  30. package/lib/components/AppShell/AppShellContext.d.ts +12 -6
  31. package/lib/components/AppShell/AppShellContext.d.ts.map +1 -1
  32. package/lib/components/AppShell/AppShellContext.js +10 -5
  33. package/lib/components/AppShell/AppShellContext.js.map +1 -1
  34. package/lib/components/AppShell/AppShellList.d.ts +2 -2
  35. package/lib/components/AppShell/AppShellList.d.ts.map +1 -1
  36. package/lib/components/AppShell/AppShellList.js +16 -2
  37. package/lib/components/AppShell/AppShellList.js.map +1 -1
  38. package/lib/components/AppShell/AppShellList.styles.d.ts +19 -0
  39. package/lib/components/AppShell/AppShellList.styles.d.ts.map +1 -0
  40. package/lib/components/AppShell/AppShellList.styles.js +141 -0
  41. package/lib/components/AppShell/AppShellList.styles.js.map +1 -0
  42. package/lib/components/AppShell/AppShellSearch.d.ts +9 -0
  43. package/lib/components/AppShell/AppShellSearch.d.ts.map +1 -0
  44. package/lib/components/AppShell/AppShellSearch.js +39 -0
  45. package/lib/components/AppShell/AppShellSearch.js.map +1 -0
  46. package/lib/components/AppShell/AppShellSearch.styles.d.ts +8 -0
  47. package/lib/components/AppShell/AppShellSearch.styles.d.ts.map +1 -0
  48. package/lib/components/AppShell/AppShellSearch.styles.js +193 -0
  49. package/lib/components/AppShell/AppShellSearch.styles.js.map +1 -0
  50. package/lib/components/AppShell/Drawer.d.ts +3 -1
  51. package/lib/components/AppShell/Drawer.d.ts.map +1 -1
  52. package/lib/components/AppShell/Drawer.js +14 -11
  53. package/lib/components/AppShell/Drawer.js.map +1 -1
  54. package/lib/components/AppShell/Drawer.styles.d.ts +15 -0
  55. package/lib/components/AppShell/Drawer.styles.d.ts.map +1 -0
  56. package/lib/components/AppShell/Drawer.styles.js +153 -0
  57. package/lib/components/AppShell/Drawer.styles.js.map +1 -0
  58. package/lib/components/AppShell/NavigationList.d.ts +6 -0
  59. package/lib/components/AppShell/NavigationList.d.ts.map +1 -0
  60. package/lib/components/AppShell/NavigationList.js +121 -0
  61. package/lib/components/AppShell/NavigationList.js.map +1 -0
  62. package/lib/components/AppShell/NavigationListItemWrapper.d.ts +5 -0
  63. package/lib/components/AppShell/NavigationListItemWrapper.d.ts.map +1 -0
  64. package/lib/components/AppShell/NavigationListItemWrapper.js +160 -0
  65. package/lib/components/AppShell/NavigationListItemWrapper.js.map +1 -0
  66. package/lib/components/AppShell/Operator.js +4 -4
  67. package/lib/components/AppShell/Operator.js.map +1 -1
  68. package/lib/components/AppShell/index.d.ts +2 -3
  69. package/lib/components/AppShell/index.d.ts.map +1 -1
  70. package/lib/components/AppShell/index.js +1 -2
  71. package/lib/components/AppShell/index.js.map +1 -1
  72. package/lib/components/Avatar/Avatar.d.ts.map +1 -1
  73. package/lib/components/Avatar/Avatar.js +4 -4
  74. package/lib/components/Avatar/Avatar.js.map +1 -1
  75. package/lib/components/Badges/Count.d.ts.map +1 -1
  76. package/lib/components/Badges/Count.js +37 -1
  77. package/lib/components/Badges/Count.js.map +1 -1
  78. package/lib/components/Badges/Keyboard.d.ts +2 -2
  79. package/lib/components/Badges/Keyboard.d.ts.map +1 -1
  80. package/lib/components/Badges/Keyboard.js +6 -1
  81. package/lib/components/Badges/Keyboard.js.map +1 -1
  82. package/lib/components/Badges/Selection.d.ts +1 -1
  83. package/lib/components/Badges/Selection.d.ts.map +1 -1
  84. package/lib/components/Badges/Selection.js +42 -42
  85. package/lib/components/Badges/Selection.js.map +1 -1
  86. package/lib/components/Badges/Tag.d.ts +9 -3
  87. package/lib/components/Badges/Tag.d.ts.map +1 -1
  88. package/lib/components/Badges/Tag.js +3 -2
  89. package/lib/components/Badges/Tag.js.map +1 -1
  90. package/lib/components/Banner/Banner.d.ts.map +1 -1
  91. package/lib/components/Banner/Banner.js +19 -16
  92. package/lib/components/Banner/Banner.js.map +1 -1
  93. package/lib/components/Boolean/BooleanDisplay.d.ts.map +1 -1
  94. package/lib/components/Boolean/BooleanDisplay.js +4 -12
  95. package/lib/components/Boolean/BooleanDisplay.js.map +1 -1
  96. package/lib/components/Breadcrumbs/Breadcrumbs.d.ts +2 -1
  97. package/lib/components/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  98. package/lib/components/Breadcrumbs/Breadcrumbs.js +44 -13
  99. package/lib/components/Breadcrumbs/Breadcrumbs.js.map +1 -1
  100. package/lib/components/Button/BareButton.d.ts.map +1 -1
  101. package/lib/components/Button/BareButton.js +1 -0
  102. package/lib/components/Button/BareButton.js.map +1 -1
  103. package/lib/components/Button/BareRoleButton.d.ts.map +1 -1
  104. package/lib/components/Button/BareRoleButton.js +3 -1
  105. package/lib/components/Button/BareRoleButton.js.map +1 -1
  106. package/lib/components/Button/Button.d.ts.map +1 -1
  107. package/lib/components/Button/Button.js +3 -1
  108. package/lib/components/Button/Button.js.map +1 -1
  109. package/lib/components/Checkbox/Checkbox.d.ts +3 -1
  110. package/lib/components/Checkbox/Checkbox.d.ts.map +1 -1
  111. package/lib/components/Checkbox/Checkbox.js.map +1 -1
  112. package/lib/components/ColorPicker/ColorPicker.d.ts +2 -0
  113. package/lib/components/ColorPicker/ColorPicker.d.ts.map +1 -1
  114. package/lib/components/ColorPicker/ColorPicker.js +2 -4
  115. package/lib/components/ColorPicker/ColorPicker.js.map +1 -1
  116. package/lib/components/ComboBox/ComboBox.d.ts.map +1 -1
  117. package/lib/components/ComboBox/ComboBox.js +70 -13
  118. package/lib/components/ComboBox/ComboBox.js.map +1 -1
  119. package/lib/components/ComboBox/ComboBox.styles.d.ts +3 -1
  120. package/lib/components/ComboBox/ComboBox.styles.d.ts.map +1 -1
  121. package/lib/components/ComboBox/ComboBox.styles.js +4 -1
  122. package/lib/components/ComboBox/ComboBox.styles.js.map +1 -1
  123. package/lib/components/ComboBox/ComboBox.types.d.ts +11 -1
  124. package/lib/components/ComboBox/ComboBox.types.d.ts.map +1 -1
  125. package/lib/components/ComboBox/ComboBox.types.js.map +1 -1
  126. package/lib/components/ComboBox/ComboBoxInput.d.ts +7 -0
  127. package/lib/components/ComboBox/ComboBoxInput.d.ts.map +1 -1
  128. package/lib/components/ComboBox/ComboBoxInput.js +5 -2
  129. package/lib/components/ComboBox/ComboBoxInput.js.map +1 -1
  130. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.d.ts.map +1 -1
  131. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.js +130 -36
  132. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.js.map +1 -1
  133. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.types.d.ts +10 -0
  134. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.types.d.ts.map +1 -1
  135. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.types.js.map +1 -1
  136. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.d.ts.map +1 -1
  137. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.js +3 -3
  138. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.js.map +1 -1
  139. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.types.d.ts +2 -0
  140. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.types.d.ts.map +1 -1
  141. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.types.js.map +1 -1
  142. package/lib/components/CompositeInput/CompositeInput.d.ts +5 -0
  143. package/lib/components/CompositeInput/CompositeInput.d.ts.map +1 -0
  144. package/lib/components/CompositeInput/CompositeInput.js +62 -0
  145. package/lib/components/CompositeInput/CompositeInput.js.map +1 -0
  146. package/lib/components/CompositeInput/CompositeInput.styles.d.ts +5 -0
  147. package/lib/components/CompositeInput/CompositeInput.styles.d.ts.map +1 -0
  148. package/lib/components/CompositeInput/CompositeInput.styles.js +57 -0
  149. package/lib/components/CompositeInput/CompositeInput.styles.js.map +1 -0
  150. package/lib/components/CompositeInput/CompositeInput.types.d.ts +52 -0
  151. package/lib/components/CompositeInput/CompositeInput.types.d.ts.map +1 -0
  152. package/lib/components/CompositeInput/CompositeInput.types.js +2 -0
  153. package/lib/components/CompositeInput/CompositeInput.types.js.map +1 -0
  154. package/lib/components/CompositeInput/index.d.ts +3 -0
  155. package/lib/components/CompositeInput/index.d.ts.map +1 -0
  156. package/lib/components/CompositeInput/index.js +2 -0
  157. package/lib/components/CompositeInput/index.js.map +1 -0
  158. package/lib/components/Configuration/Configuration.d.ts +16 -13
  159. package/lib/components/Configuration/Configuration.d.ts.map +1 -1
  160. package/lib/components/Configuration/Configuration.js +42 -14
  161. package/lib/components/Configuration/Configuration.js.map +1 -1
  162. package/lib/components/Configuration/index.d.ts +0 -1
  163. package/lib/components/Configuration/index.d.ts.map +1 -1
  164. package/lib/components/Configuration/index.js +0 -1
  165. package/lib/components/Configuration/index.js.map +1 -1
  166. package/lib/components/CreditCard/CreditCard.types.d.ts +2 -0
  167. package/lib/components/CreditCard/CreditCard.types.d.ts.map +1 -1
  168. package/lib/components/CreditCard/CreditCard.types.js.map +1 -1
  169. package/lib/components/CreditCard/CreditCardInput.js +1 -1
  170. package/lib/components/CreditCard/CreditCardInput.js.map +1 -1
  171. package/lib/components/Currency/CurrencyDisplay.d.ts.map +1 -1
  172. package/lib/components/Currency/CurrencyDisplay.js +2 -2
  173. package/lib/components/Currency/CurrencyDisplay.js.map +1 -1
  174. package/lib/components/Currency/CurrencyInput.d.ts.map +1 -1
  175. package/lib/components/Currency/CurrencyInput.js +92 -26
  176. package/lib/components/Currency/CurrencyInput.js.map +1 -1
  177. package/lib/components/Currency/CurrencyInput.types.d.ts +9 -1
  178. package/lib/components/Currency/CurrencyInput.types.d.ts.map +1 -1
  179. package/lib/components/Currency/CurrencyInput.types.js.map +1 -1
  180. package/lib/components/Currency/utils.d.ts +7 -17
  181. package/lib/components/Currency/utils.d.ts.map +1 -1
  182. package/lib/components/Currency/utils.js +50 -51
  183. package/lib/components/Currency/utils.js.map +1 -1
  184. package/lib/components/DateTime/DateTime.types.d.ts +15 -9
  185. package/lib/components/DateTime/DateTime.types.d.ts.map +1 -1
  186. package/lib/components/DateTime/DateTime.types.js.map +1 -1
  187. package/lib/components/DateTime/DateTimeDisplay.d.ts.map +1 -1
  188. package/lib/components/DateTime/DateTimeDisplay.js +8 -1
  189. package/lib/components/DateTime/DateTimeDisplay.js.map +1 -1
  190. package/lib/components/DateTime/DurationDisplay.js +3 -3
  191. package/lib/components/DateTime/DurationDisplay.js.map +1 -1
  192. package/lib/components/DateTime/Input/DateInput.d.ts +9 -2
  193. package/lib/components/DateTime/Input/DateInput.d.ts.map +1 -1
  194. package/lib/components/DateTime/Input/DateInput.js +29 -17
  195. package/lib/components/DateTime/Input/DateInput.js.map +1 -1
  196. package/lib/components/DateTime/Input/DateRangeInput.d.ts +18 -23
  197. package/lib/components/DateTime/Input/DateRangeInput.d.ts.map +1 -1
  198. package/lib/components/DateTime/Input/DateRangeInput.js +98 -83
  199. package/lib/components/DateTime/Input/DateRangeInput.js.map +1 -1
  200. package/lib/components/DateTime/Input/DateTimeInput.d.ts +3 -0
  201. package/lib/components/DateTime/Input/DateTimeInput.d.ts.map +1 -1
  202. package/lib/components/DateTime/Input/DateTimeInput.js +30 -14
  203. package/lib/components/DateTime/Input/DateTimeInput.js.map +1 -1
  204. package/lib/components/DateTime/Input/DayOfWeekInput.d.ts +2 -0
  205. package/lib/components/DateTime/Input/DayOfWeekInput.d.ts.map +1 -1
  206. package/lib/components/DateTime/Input/DayOfWeekInput.js.map +1 -1
  207. package/lib/components/DateTime/Input/Duration/DurationInput.d.ts.map +1 -1
  208. package/lib/components/DateTime/Input/Duration/DurationInput.js +10 -2
  209. package/lib/components/DateTime/Input/Duration/DurationInput.js.map +1 -1
  210. package/lib/components/DateTime/Input/Duration/DurationInput.types.d.ts +2 -0
  211. package/lib/components/DateTime/Input/Duration/DurationInput.types.d.ts.map +1 -1
  212. package/lib/components/DateTime/Input/Duration/DurationInput.types.js.map +1 -1
  213. package/lib/components/DateTime/Input/Duration/NumberUnit.d.ts.map +1 -1
  214. package/lib/components/DateTime/Input/Duration/NumberUnit.js +30 -33
  215. package/lib/components/DateTime/Input/Duration/NumberUnit.js.map +1 -1
  216. package/lib/components/DateTime/Input/Duration/Time.d.ts.map +1 -1
  217. package/lib/components/DateTime/Input/Duration/Time.js +5 -4
  218. package/lib/components/DateTime/Input/Duration/Time.js.map +1 -1
  219. package/lib/components/DateTime/Input/MonthInput.d.ts +3 -0
  220. package/lib/components/DateTime/Input/MonthInput.d.ts.map +1 -1
  221. package/lib/components/DateTime/Input/MonthInput.js +30 -26
  222. package/lib/components/DateTime/Input/MonthInput.js.map +1 -1
  223. package/lib/components/DateTime/Input/PartInput.d.ts +1 -0
  224. package/lib/components/DateTime/Input/PartInput.d.ts.map +1 -1
  225. package/lib/components/DateTime/Input/PartInput.js +10 -7
  226. package/lib/components/DateTime/Input/PartInput.js.map +1 -1
  227. package/lib/components/DateTime/Input/QuarterInput.d.ts +3 -0
  228. package/lib/components/DateTime/Input/QuarterInput.d.ts.map +1 -1
  229. package/lib/components/DateTime/Input/QuarterInput.js +31 -25
  230. package/lib/components/DateTime/Input/QuarterInput.js.map +1 -1
  231. package/lib/components/DateTime/Input/TimeInput.d.ts +3 -0
  232. package/lib/components/DateTime/Input/TimeInput.d.ts.map +1 -1
  233. package/lib/components/DateTime/Input/TimeInput.js +21 -9
  234. package/lib/components/DateTime/Input/TimeInput.js.map +1 -1
  235. package/lib/components/DateTime/Input/TimeRangeInput.d.ts +46 -0
  236. package/lib/components/DateTime/Input/TimeRangeInput.d.ts.map +1 -0
  237. package/lib/components/DateTime/Input/TimeRangeInput.js +74 -0
  238. package/lib/components/DateTime/Input/TimeRangeInput.js.map +1 -0
  239. package/lib/components/DateTime/Input/WeekInput.d.ts +3 -2
  240. package/lib/components/DateTime/Input/WeekInput.d.ts.map +1 -1
  241. package/lib/components/DateTime/Input/WeekInput.js +12 -7
  242. package/lib/components/DateTime/Input/WeekInput.js.map +1 -1
  243. package/lib/components/DateTime/Input/usePickerButton.d.ts +1 -1
  244. package/lib/components/DateTime/Input/usePickerButton.d.ts.map +1 -1
  245. package/lib/components/DateTime/Input/utils.d.ts +7 -7
  246. package/lib/components/DateTime/Input/utils.d.ts.map +1 -1
  247. package/lib/components/DateTime/Input/utils.js +19 -6
  248. package/lib/components/DateTime/Input/utils.js.map +1 -1
  249. package/lib/components/DateTime/Picker/Calendar.d.ts.map +1 -1
  250. package/lib/components/DateTime/Picker/Calendar.js +20 -16
  251. package/lib/components/DateTime/Picker/Calendar.js.map +1 -1
  252. package/lib/components/DateTime/Picker/Calendar.styles.d.ts +2 -4
  253. package/lib/components/DateTime/Picker/Calendar.styles.d.ts.map +1 -1
  254. package/lib/components/DateTime/Picker/Calendar.styles.js +13 -55
  255. package/lib/components/DateTime/Picker/Calendar.styles.js.map +1 -1
  256. package/lib/components/DateTime/Picker/DatePicker.d.ts.map +1 -1
  257. package/lib/components/DateTime/Picker/DatePicker.js +2 -1
  258. package/lib/components/DateTime/Picker/DatePicker.js.map +1 -1
  259. package/lib/components/DateTime/Picker/DatePicker.styles.d.ts +3 -0
  260. package/lib/components/DateTime/Picker/DatePicker.styles.d.ts.map +1 -0
  261. package/lib/components/DateTime/Picker/DatePicker.styles.js +39 -0
  262. package/lib/components/DateTime/Picker/DatePicker.styles.js.map +1 -0
  263. package/lib/components/DateTime/Picker/DateRangePicker.js +1 -1
  264. package/lib/components/DateTime/Picker/DateRangePicker.js.map +1 -1
  265. package/lib/components/DateTime/Picker/TimePicker.d.ts +1 -1
  266. package/lib/components/DateTime/Picker/TimePicker.d.ts.map +1 -1
  267. package/lib/components/DateTime/Picker/TimePicker.js +10 -5
  268. package/lib/components/DateTime/Picker/TimePicker.js.map +1 -1
  269. package/lib/components/DateTime/Picker/Weeks.d.ts.map +1 -1
  270. package/lib/components/DateTime/Picker/Weeks.js +14 -6
  271. package/lib/components/DateTime/Picker/Weeks.js.map +1 -1
  272. package/lib/components/DateTime/Picker/utils.d.ts +1 -1
  273. package/lib/components/DateTime/Picker/utils.d.ts.map +1 -1
  274. package/lib/components/DateTime/index.d.ts +4 -0
  275. package/lib/components/DateTime/index.d.ts.map +1 -1
  276. package/lib/components/DateTime/index.js +3 -0
  277. package/lib/components/DateTime/index.js.map +1 -1
  278. package/lib/components/DateTime/utils.d.ts +5 -4
  279. package/lib/components/DateTime/utils.d.ts.map +1 -1
  280. package/lib/components/DateTime/utils.js +21 -8
  281. package/lib/components/DateTime/utils.js.map +1 -1
  282. package/lib/components/Dialog/Dialog.d.ts +32 -0
  283. package/lib/components/Dialog/Dialog.d.ts.map +1 -0
  284. package/lib/components/Dialog/Dialog.js +150 -0
  285. package/lib/components/Dialog/Dialog.js.map +1 -0
  286. package/lib/components/Dialog/index.d.ts +3 -0
  287. package/lib/components/Dialog/index.d.ts.map +1 -0
  288. package/lib/components/Dialog/index.js +3 -0
  289. package/lib/components/Dialog/index.js.map +1 -0
  290. package/lib/components/EmojiPicker/EmojiPicker.styles.d.ts.map +1 -1
  291. package/lib/components/EmojiPicker/EmojiPicker.styles.js +8 -6
  292. package/lib/components/EmojiPicker/EmojiPicker.styles.js.map +1 -1
  293. package/lib/components/FieldGroup/FieldGroup.d.ts +7 -0
  294. package/lib/components/FieldGroup/FieldGroup.d.ts.map +1 -1
  295. package/lib/components/FieldGroup/FieldGroup.js +46 -42
  296. package/lib/components/FieldGroup/FieldGroup.js.map +1 -1
  297. package/lib/components/FieldGroup/FieldGroupList.d.ts.map +1 -1
  298. package/lib/components/FieldGroup/FieldGroupList.js +8 -8
  299. package/lib/components/FieldGroup/FieldGroupList.js.map +1 -1
  300. package/lib/components/FieldValueList/FieldValueList.d.ts +13 -7
  301. package/lib/components/FieldValueList/FieldValueList.d.ts.map +1 -1
  302. package/lib/components/FieldValueList/FieldValueList.js +53 -19
  303. package/lib/components/FieldValueList/FieldValueList.js.map +1 -1
  304. package/lib/components/FieldValueList/index.d.ts +3 -5
  305. package/lib/components/FieldValueList/index.d.ts.map +1 -1
  306. package/lib/components/FieldValueList/index.js +2 -4
  307. package/lib/components/FieldValueList/index.js.map +1 -1
  308. package/lib/components/File/FileItem.d.ts +3 -0
  309. package/lib/components/File/FileItem.d.ts.map +1 -1
  310. package/lib/components/File/FileItem.js +18 -14
  311. package/lib/components/File/FileItem.js.map +1 -1
  312. package/lib/components/File/utils.d.ts +1 -1
  313. package/lib/components/File/utils.d.ts.map +1 -1
  314. package/lib/components/File/utils.js.map +1 -1
  315. package/lib/components/Flex/Flex.d.ts +11 -10
  316. package/lib/components/Flex/Flex.d.ts.map +1 -1
  317. package/lib/components/Flex/Flex.js.map +1 -1
  318. package/lib/components/Form/Form.d.ts +5 -16
  319. package/lib/components/Form/Form.d.ts.map +1 -1
  320. package/lib/components/Form/Form.js +14 -11
  321. package/lib/components/Form/Form.js.map +1 -1
  322. package/lib/components/FormControl/FormControl.d.ts +12 -2
  323. package/lib/components/FormControl/FormControl.d.ts.map +1 -1
  324. package/lib/components/FormControl/FormControl.js +60 -35
  325. package/lib/components/FormControl/FormControl.js.map +1 -1
  326. package/lib/components/FormField/FormField.d.ts +5 -0
  327. package/lib/components/FormField/FormField.d.ts.map +1 -1
  328. package/lib/components/FormField/FormField.js +87 -16
  329. package/lib/components/FormField/FormField.js.map +1 -1
  330. package/lib/components/Grid/Grid.d.ts +1 -1
  331. package/lib/components/Grid/Grid.d.ts.map +1 -1
  332. package/lib/components/Grid/Grid.types.d.ts +11 -10
  333. package/lib/components/Grid/Grid.types.d.ts.map +1 -1
  334. package/lib/components/Grid/Grid.types.js.map +1 -1
  335. package/lib/components/HTML/HTML.d.ts +1 -0
  336. package/lib/components/HTML/HTML.d.ts.map +1 -1
  337. package/lib/components/HTML/HTML.js +63 -17
  338. package/lib/components/HTML/HTML.js.map +1 -1
  339. package/lib/components/Icon/Icon.d.ts +7 -7
  340. package/lib/components/Icon/Icon.d.ts.map +1 -1
  341. package/lib/components/Icon/Icon.js +14 -15
  342. package/lib/components/Icon/Icon.js.map +1 -1
  343. package/lib/components/Icon/iconNames.d.ts +2 -2
  344. package/lib/components/Icon/iconNames.d.ts.map +1 -1
  345. package/lib/components/Icon/iconNames.js +2 -1
  346. package/lib/components/Icon/iconNames.js.map +1 -1
  347. package/lib/components/Icon/icons/ai-assist.icon.js +1 -1
  348. package/lib/components/Icon/icons/ai-assist.icon.js.map +1 -1
  349. package/lib/components/Icon/icons/align-center.icon.js +1 -1
  350. package/lib/components/Icon/icons/align-center.icon.js.map +1 -1
  351. package/lib/components/Icon/icons/align-left.icon.js +1 -1
  352. package/lib/components/Icon/icons/align-left.icon.js.map +1 -1
  353. package/lib/components/Icon/icons/align-right.icon.js +1 -1
  354. package/lib/components/Icon/icons/align-right.icon.js.map +1 -1
  355. package/lib/components/Icon/icons/arrow-left.icon.js +1 -1
  356. package/lib/components/Icon/icons/arrow-left.icon.js.map +1 -1
  357. package/lib/components/Icon/icons/arrow-micro-down.icon.js +1 -1
  358. package/lib/components/Icon/icons/arrow-micro-down.icon.js.map +1 -1
  359. package/lib/components/Icon/icons/arrow-micro-left.icon.js +1 -1
  360. package/lib/components/Icon/icons/arrow-micro-left.icon.js.map +1 -1
  361. package/lib/components/Icon/icons/arrow-micro-right.icon.js +1 -1
  362. package/lib/components/Icon/icons/arrow-micro-right.icon.js.map +1 -1
  363. package/lib/components/Icon/icons/arrow-micro-up-down.icon.js +1 -1
  364. package/lib/components/Icon/icons/arrow-micro-up-down.icon.js.map +1 -1
  365. package/lib/components/Icon/icons/arrow-micro-up.icon.js +1 -1
  366. package/lib/components/Icon/icons/arrow-micro-up.icon.js.map +1 -1
  367. package/lib/components/Icon/icons/arrow-up-down.icon.js +1 -1
  368. package/lib/components/Icon/icons/arrow-up-down.icon.js.map +1 -1
  369. package/lib/components/Icon/icons/bars.icon.js +1 -1
  370. package/lib/components/Icon/icons/bars.icon.js.map +1 -1
  371. package/lib/components/Icon/icons/bell-solid.icon.js +1 -1
  372. package/lib/components/Icon/icons/bell-solid.icon.js.map +1 -1
  373. package/lib/components/Icon/icons/bell.icon.js +1 -1
  374. package/lib/components/Icon/icons/bell.icon.js.map +1 -1
  375. package/lib/components/Icon/icons/box-4-solid.icon.js +1 -1
  376. package/lib/components/Icon/icons/box-4-solid.icon.js.map +1 -1
  377. package/lib/components/Icon/icons/box-4.icon.js +1 -1
  378. package/lib/components/Icon/icons/box-4.icon.js.map +1 -1
  379. package/lib/components/Icon/icons/calendar-range.icon.js +1 -1
  380. package/lib/components/Icon/icons/calendar-range.icon.js.map +1 -1
  381. package/lib/components/Icon/icons/calendar-solid.icon.js +1 -1
  382. package/lib/components/Icon/icons/calendar-solid.icon.js.map +1 -1
  383. package/lib/components/Icon/icons/caret-down.icon.js +1 -1
  384. package/lib/components/Icon/icons/caret-down.icon.js.map +1 -1
  385. package/lib/components/Icon/icons/caret-left.icon.js +1 -1
  386. package/lib/components/Icon/icons/caret-left.icon.js.map +1 -1
  387. package/lib/components/Icon/icons/caret-right.icon.js +1 -1
  388. package/lib/components/Icon/icons/caret-right.icon.js.map +1 -1
  389. package/lib/components/Icon/icons/caret-up.icon.js +1 -1
  390. package/lib/components/Icon/icons/caret-up.icon.js.map +1 -1
  391. package/lib/components/Icon/icons/{script-solid.icon.d.ts → carrot.icon.d.ts} +2 -2
  392. package/lib/components/Icon/icons/carrot.icon.d.ts.map +1 -0
  393. package/lib/components/Icon/icons/carrot.icon.js +6 -0
  394. package/lib/components/Icon/icons/carrot.icon.js.map +1 -0
  395. package/lib/components/Icon/icons/case-solid.icon.js +1 -1
  396. package/lib/components/Icon/icons/case-solid.icon.js.map +1 -1
  397. package/lib/components/Icon/icons/case.icon.js +1 -1
  398. package/lib/components/Icon/icons/case.icon.js.map +1 -1
  399. package/lib/components/Icon/icons/chain.icon.js +1 -1
  400. package/lib/components/Icon/icons/chain.icon.js.map +1 -1
  401. package/lib/components/Icon/icons/chat-solid.icon.js +1 -1
  402. package/lib/components/Icon/icons/chat-solid.icon.js.map +1 -1
  403. package/lib/components/Icon/icons/chat.icon.js +1 -1
  404. package/lib/components/Icon/icons/chat.icon.js.map +1 -1
  405. package/lib/components/Icon/icons/check.icon.js +1 -1
  406. package/lib/components/Icon/icons/check.icon.js.map +1 -1
  407. package/lib/components/Icon/icons/clipboard-plus-solid.icon.js +1 -1
  408. package/lib/components/Icon/icons/clipboard-plus-solid.icon.js.map +1 -1
  409. package/lib/components/Icon/icons/clipboard-plus.icon.js +1 -1
  410. package/lib/components/Icon/icons/clipboard-plus.icon.js.map +1 -1
  411. package/lib/components/Icon/icons/clock-solid.icon.js +1 -1
  412. package/lib/components/Icon/icons/clock-solid.icon.js.map +1 -1
  413. package/lib/components/Icon/icons/clock.icon.js +1 -1
  414. package/lib/components/Icon/icons/clock.icon.js.map +1 -1
  415. package/lib/components/Icon/icons/code.icon.js +1 -1
  416. package/lib/components/Icon/icons/code.icon.js.map +1 -1
  417. package/lib/components/Icon/icons/dataviz-string-field.icon.d.ts +1 -1
  418. package/lib/components/Icon/icons/dataviz-string-field.icon.js +2 -2
  419. package/lib/components/Icon/icons/dataviz-string-field.icon.js.map +1 -1
  420. package/lib/components/Icon/icons/dock.icon.js +1 -1
  421. package/lib/components/Icon/icons/dock.icon.js.map +1 -1
  422. package/lib/components/Icon/icons/dot-9-solid.icon.js +1 -1
  423. package/lib/components/Icon/icons/dot-9-solid.icon.js.map +1 -1
  424. package/lib/components/Icon/icons/dot-9.icon.js +1 -1
  425. package/lib/components/Icon/icons/dot-9.icon.js.map +1 -1
  426. package/lib/components/Icon/icons/download.icon.js +1 -1
  427. package/lib/components/Icon/icons/download.icon.js.map +1 -1
  428. package/lib/components/Icon/icons/drag.icon.js +1 -1
  429. package/lib/components/Icon/icons/drag.icon.js.map +1 -1
  430. package/lib/components/Icon/icons/eye-off-solid.icon.js +1 -1
  431. package/lib/components/Icon/icons/eye-off-solid.icon.js.map +1 -1
  432. package/lib/components/Icon/icons/eye-off.icon.js +1 -1
  433. package/lib/components/Icon/icons/eye-off.icon.js.map +1 -1
  434. package/lib/components/Icon/icons/face-blank-solid.icon.d.ts.map +1 -1
  435. package/lib/components/Icon/icons/face-blank-solid.icon.js +1 -1
  436. package/lib/components/Icon/icons/face-blank-solid.icon.js.map +1 -1
  437. package/lib/components/Icon/icons/face-blank.icon.d.ts.map +1 -1
  438. package/lib/components/Icon/icons/face-blank.icon.js +1 -1
  439. package/lib/components/Icon/icons/face-blank.icon.js.map +1 -1
  440. package/lib/components/Icon/icons/face-happy-solid.icon.d.ts.map +1 -1
  441. package/lib/components/Icon/icons/face-happy-solid.icon.js +1 -1
  442. package/lib/components/Icon/icons/face-happy-solid.icon.js.map +1 -1
  443. package/lib/components/Icon/icons/face-happy.icon.d.ts.map +1 -1
  444. package/lib/components/Icon/icons/face-happy.icon.js +1 -1
  445. package/lib/components/Icon/icons/face-happy.icon.js.map +1 -1
  446. package/lib/components/Icon/icons/face-sad-solid.icon.d.ts.map +1 -1
  447. package/lib/components/Icon/icons/face-sad-solid.icon.js +1 -1
  448. package/lib/components/Icon/icons/face-sad-solid.icon.js.map +1 -1
  449. package/lib/components/Icon/icons/face-sad.icon.d.ts.map +1 -1
  450. package/lib/components/Icon/icons/face-sad.icon.js +1 -1
  451. package/lib/components/Icon/icons/face-sad.icon.js.map +1 -1
  452. package/lib/components/Icon/icons/fast-forward-solid.icon.js +1 -1
  453. package/lib/components/Icon/icons/fast-forward-solid.icon.js.map +1 -1
  454. package/lib/components/Icon/icons/filetype-text.icon.d.ts.map +1 -1
  455. package/lib/components/Icon/icons/filetype-text.icon.js +2 -2
  456. package/lib/components/Icon/icons/filetype-text.icon.js.map +1 -1
  457. package/lib/components/Icon/icons/filter-on.icon.js +1 -1
  458. package/lib/components/Icon/icons/filter-on.icon.js.map +1 -1
  459. package/lib/components/Icon/icons/filter.icon.js +1 -1
  460. package/lib/components/Icon/icons/filter.icon.js.map +1 -1
  461. package/lib/components/Icon/icons/folder-hierarchy-solid.icon.js +1 -1
  462. package/lib/components/Icon/icons/folder-hierarchy-solid.icon.js.map +1 -1
  463. package/lib/components/Icon/icons/folder-hierarchy.icon.js +1 -1
  464. package/lib/components/Icon/icons/folder-hierarchy.icon.js.map +1 -1
  465. package/lib/components/Icon/icons/forward-all-solid.icon.js +1 -1
  466. package/lib/components/Icon/icons/forward-all-solid.icon.js.map +1 -1
  467. package/lib/components/Icon/icons/forward-all.icon.js +1 -1
  468. package/lib/components/Icon/icons/forward-all.icon.js.map +1 -1
  469. package/lib/components/Icon/icons/forward-solid.icon.js +1 -1
  470. package/lib/components/Icon/icons/forward-solid.icon.js.map +1 -1
  471. package/lib/components/Icon/icons/forward.icon.js +1 -1
  472. package/lib/components/Icon/icons/forward.icon.js.map +1 -1
  473. package/lib/components/Icon/icons/galaxy.icon.d.ts.map +1 -1
  474. package/lib/components/Icon/icons/galaxy.icon.js +2 -2
  475. package/lib/components/Icon/icons/galaxy.icon.js.map +1 -1
  476. package/lib/components/Icon/icons/globe-solid.icon.js +1 -1
  477. package/lib/components/Icon/icons/globe-solid.icon.js.map +1 -1
  478. package/lib/components/Icon/icons/globe.icon.js +1 -1
  479. package/lib/components/Icon/icons/globe.icon.js.map +1 -1
  480. package/lib/components/Icon/icons/hand.icon.js +1 -1
  481. package/lib/components/Icon/icons/hand.icon.js.map +1 -1
  482. package/lib/components/Icon/icons/help-solid.icon.js +1 -1
  483. package/lib/components/Icon/icons/help-solid.icon.js.map +1 -1
  484. package/lib/components/Icon/icons/help.icon.js +1 -1
  485. package/lib/components/Icon/icons/help.icon.js.map +1 -1
  486. package/lib/components/Icon/icons/home-solid.icon.js +1 -1
  487. package/lib/components/Icon/icons/home-solid.icon.js.map +1 -1
  488. package/lib/components/Icon/icons/home.icon.js +1 -1
  489. package/lib/components/Icon/icons/home.icon.js.map +1 -1
  490. package/lib/components/Icon/icons/information-solid.icon.js +1 -1
  491. package/lib/components/Icon/icons/information-solid.icon.js.map +1 -1
  492. package/lib/components/Icon/icons/information.icon.js +1 -1
  493. package/lib/components/Icon/icons/information.icon.js.map +1 -1
  494. package/lib/components/Icon/icons/list-number.icon.d.ts.map +1 -1
  495. package/lib/components/Icon/icons/list-number.icon.js +2 -2
  496. package/lib/components/Icon/icons/list-number.icon.js.map +1 -1
  497. package/lib/components/Icon/icons/list.icon.d.ts.map +1 -1
  498. package/lib/components/Icon/icons/list.icon.js +2 -2
  499. package/lib/components/Icon/icons/list.icon.js.map +1 -1
  500. package/lib/components/Icon/icons/mail-solid.icon.js +1 -1
  501. package/lib/components/Icon/icons/mail-solid.icon.js.map +1 -1
  502. package/lib/components/Icon/icons/mail.icon.js +1 -1
  503. package/lib/components/Icon/icons/mail.icon.js.map +1 -1
  504. package/lib/components/Icon/icons/minus.icon.js +1 -1
  505. package/lib/components/Icon/icons/minus.icon.js.map +1 -1
  506. package/lib/components/Icon/icons/more.icon.js +1 -1
  507. package/lib/components/Icon/icons/more.icon.js.map +1 -1
  508. package/lib/components/Icon/icons/move-left-solid.icon.js +1 -1
  509. package/lib/components/Icon/icons/move-left-solid.icon.js.map +1 -1
  510. package/lib/components/Icon/icons/move-right-solid.icon.js +1 -1
  511. package/lib/components/Icon/icons/move-right-solid.icon.js.map +1 -1
  512. package/lib/components/Icon/icons/open.icon.js +1 -1
  513. package/lib/components/Icon/icons/open.icon.js.map +1 -1
  514. package/lib/components/Icon/icons/paper-clip.icon.js +1 -1
  515. package/lib/components/Icon/icons/paper-clip.icon.js.map +1 -1
  516. package/lib/components/Icon/icons/phone-solid.icon.js +1 -1
  517. package/lib/components/Icon/icons/phone-solid.icon.js.map +1 -1
  518. package/lib/components/Icon/icons/phone.icon.js +1 -1
  519. package/lib/components/Icon/icons/phone.icon.js.map +1 -1
  520. package/lib/components/Icon/icons/picture-solid.icon.js +1 -1
  521. package/lib/components/Icon/icons/picture-solid.icon.js.map +1 -1
  522. package/lib/components/Icon/icons/picture.icon.js +1 -1
  523. package/lib/components/Icon/icons/picture.icon.js.map +1 -1
  524. package/lib/components/Icon/icons/placeholder.icon.d.ts +4 -0
  525. package/lib/components/Icon/icons/placeholder.icon.d.ts.map +1 -0
  526. package/lib/components/Icon/icons/placeholder.icon.js +6 -0
  527. package/lib/components/Icon/icons/placeholder.icon.js.map +1 -0
  528. package/lib/components/Icon/icons/plus.icon.js +1 -1
  529. package/lib/components/Icon/icons/plus.icon.js.map +1 -1
  530. package/lib/components/Icon/icons/polaris-solid.icon.js +1 -1
  531. package/lib/components/Icon/icons/polaris-solid.icon.js.map +1 -1
  532. package/lib/components/Icon/icons/polaris.icon.js +1 -1
  533. package/lib/components/Icon/icons/polaris.icon.js.map +1 -1
  534. package/lib/components/Icon/icons/qr.icon.js +1 -1
  535. package/lib/components/Icon/icons/qr.icon.js.map +1 -1
  536. package/lib/components/Icon/icons/reply-all-solid.icon.js +1 -1
  537. package/lib/components/Icon/icons/reply-all-solid.icon.js.map +1 -1
  538. package/lib/components/Icon/icons/reply-all.icon.js +1 -1
  539. package/lib/components/Icon/icons/reply-all.icon.js.map +1 -1
  540. package/lib/components/Icon/icons/reply-solid.icon.js +1 -1
  541. package/lib/components/Icon/icons/reply-solid.icon.js.map +1 -1
  542. package/lib/components/Icon/icons/reply.icon.js +1 -1
  543. package/lib/components/Icon/icons/reply.icon.js.map +1 -1
  544. package/lib/components/Icon/icons/reset.icon.js +1 -1
  545. package/lib/components/Icon/icons/reset.icon.js.map +1 -1
  546. package/lib/components/Icon/icons/robot-happy-solid.icon.js +1 -1
  547. package/lib/components/Icon/icons/robot-happy-solid.icon.js.map +1 -1
  548. package/lib/components/Icon/icons/robot-happy.icon.js +1 -1
  549. package/lib/components/Icon/icons/robot-happy.icon.js.map +1 -1
  550. package/lib/components/Icon/icons/row-insert.icon.js +1 -1
  551. package/lib/components/Icon/icons/row-insert.icon.js.map +1 -1
  552. package/lib/components/Icon/icons/row.icon.js +1 -1
  553. package/lib/components/Icon/icons/row.icon.js.map +1 -1
  554. package/lib/components/Icon/icons/scale-down.icon.js +1 -1
  555. package/lib/components/Icon/icons/scale-down.icon.js.map +1 -1
  556. package/lib/components/Icon/icons/scale-up-solid.icon.js +1 -1
  557. package/lib/components/Icon/icons/scale-up-solid.icon.js.map +1 -1
  558. package/lib/components/Icon/icons/scale-up.icon.js +1 -1
  559. package/lib/components/Icon/icons/scale-up.icon.js.map +1 -1
  560. package/lib/components/Icon/icons/script.icon.js +1 -1
  561. package/lib/components/Icon/icons/script.icon.js.map +1 -1
  562. package/lib/components/Icon/icons/search-analytics-solid.icon.js +1 -1
  563. package/lib/components/Icon/icons/search-analytics-solid.icon.js.map +1 -1
  564. package/lib/components/Icon/icons/search-analytics.icon.js +1 -1
  565. package/lib/components/Icon/icons/search-analytics.icon.js.map +1 -1
  566. package/lib/components/Icon/icons/search.icon.js +1 -1
  567. package/lib/components/Icon/icons/search.icon.js.map +1 -1
  568. package/lib/components/Icon/icons/send-solid.icon.js +1 -1
  569. package/lib/components/Icon/icons/send-solid.icon.js.map +1 -1
  570. package/lib/components/Icon/icons/send.icon.js +1 -1
  571. package/lib/components/Icon/icons/send.icon.js.map +1 -1
  572. package/lib/components/Icon/icons/slideshow-solid.icon.js +1 -1
  573. package/lib/components/Icon/icons/slideshow-solid.icon.js.map +1 -1
  574. package/lib/components/Icon/icons/slideshow.icon.js +1 -1
  575. package/lib/components/Icon/icons/slideshow.icon.js.map +1 -1
  576. package/lib/components/Icon/icons/snow.icon.js +1 -1
  577. package/lib/components/Icon/icons/snow.icon.js.map +1 -1
  578. package/lib/components/Icon/icons/speaker-solid.icon.js +1 -1
  579. package/lib/components/Icon/icons/speaker-solid.icon.js.map +1 -1
  580. package/lib/components/Icon/icons/speaker.icon.js +1 -1
  581. package/lib/components/Icon/icons/speaker.icon.js.map +1 -1
  582. package/lib/components/Icon/icons/star-solid.icon.js +1 -1
  583. package/lib/components/Icon/icons/star-solid.icon.js.map +1 -1
  584. package/lib/components/Icon/icons/star.icon.js +1 -1
  585. package/lib/components/Icon/icons/star.icon.js.map +1 -1
  586. package/lib/components/Icon/icons/target-solid.icon.js +1 -1
  587. package/lib/components/Icon/icons/target-solid.icon.js.map +1 -1
  588. package/lib/components/Icon/icons/target.icon.js +1 -1
  589. package/lib/components/Icon/icons/target.icon.js.map +1 -1
  590. package/lib/components/Icon/icons/thumbs-up-solid.icon.js +1 -1
  591. package/lib/components/Icon/icons/thumbs-up-solid.icon.js.map +1 -1
  592. package/lib/components/Icon/icons/thumbs-up.icon.js +1 -1
  593. package/lib/components/Icon/icons/thumbs-up.icon.js.map +1 -1
  594. package/lib/components/Icon/icons/times.icon.js +1 -1
  595. package/lib/components/Icon/icons/times.icon.js.map +1 -1
  596. package/lib/components/Icon/icons/trash-solid.icon.js +1 -1
  597. package/lib/components/Icon/icons/trash-solid.icon.js.map +1 -1
  598. package/lib/components/Icon/icons/trash.icon.js +1 -1
  599. package/lib/components/Icon/icons/trash.icon.js.map +1 -1
  600. package/lib/components/Icon/icons/twitter.icon.js +1 -1
  601. package/lib/components/Icon/icons/twitter.icon.js.map +1 -1
  602. package/lib/components/Icon/icons/undock.icon.js +1 -1
  603. package/lib/components/Icon/icons/undock.icon.js.map +1 -1
  604. package/lib/components/Icon/icons/user-solid.icon.js +1 -1
  605. package/lib/components/Icon/icons/user-solid.icon.js.map +1 -1
  606. package/lib/components/Icon/icons/user-star-solid.icon.js +1 -1
  607. package/lib/components/Icon/icons/user-star-solid.icon.js.map +1 -1
  608. package/lib/components/Icon/icons/user-star.icon.js +1 -1
  609. package/lib/components/Icon/icons/user-star.icon.js.map +1 -1
  610. package/lib/components/Icon/icons/user.icon.js +1 -1
  611. package/lib/components/Icon/icons/user.icon.js.map +1 -1
  612. package/lib/components/Icon/icons/warn-solid.icon.js +1 -1
  613. package/lib/components/Icon/icons/warn-solid.icon.js.map +1 -1
  614. package/lib/components/Icon/icons/warn.icon.js +1 -1
  615. package/lib/components/Icon/icons/warn.icon.js.map +1 -1
  616. package/lib/components/Icon/index.d.ts +1 -1
  617. package/lib/components/Icon/index.d.ts.map +1 -1
  618. package/lib/components/Icon/index.js.map +1 -1
  619. package/lib/components/Input/Input.d.ts +3 -1
  620. package/lib/components/Input/Input.d.ts.map +1 -1
  621. package/lib/components/Input/Input.js +16 -2
  622. package/lib/components/Input/Input.js.map +1 -1
  623. package/lib/components/Input/Input.styles.d.ts +1 -0
  624. package/lib/components/Input/Input.styles.d.ts.map +1 -1
  625. package/lib/components/Input/Input.styles.js +31 -0
  626. package/lib/components/Input/Input.styles.js.map +1 -1
  627. package/lib/components/Link/Link.d.ts +4 -1
  628. package/lib/components/Link/Link.d.ts.map +1 -1
  629. package/lib/components/Link/Link.js +87 -30
  630. package/lib/components/Link/Link.js.map +1 -1
  631. package/lib/components/List/CommaSeparatedList.d.ts.map +1 -1
  632. package/lib/components/List/CommaSeparatedList.js +6 -14
  633. package/lib/components/List/CommaSeparatedList.js.map +1 -1
  634. package/lib/components/List/List.d.ts +2 -2
  635. package/lib/components/List/List.d.ts.map +1 -1
  636. package/lib/components/List/List.js.map +1 -1
  637. package/lib/components/ListToolbar/ListToolbar.d.ts.map +1 -1
  638. package/lib/components/ListToolbar/ListToolbar.js +108 -53
  639. package/lib/components/ListToolbar/ListToolbar.js.map +1 -1
  640. package/lib/components/ListToolbar/ListToolbar.styles.d.ts +1 -0
  641. package/lib/components/ListToolbar/ListToolbar.styles.d.ts.map +1 -1
  642. package/lib/components/ListToolbar/ListToolbar.styles.js +38 -2
  643. package/lib/components/ListToolbar/ListToolbar.styles.js.map +1 -1
  644. package/lib/components/ListToolbar/ListToolbar.types.d.ts +28 -10
  645. package/lib/components/ListToolbar/ListToolbar.types.d.ts.map +1 -1
  646. package/lib/components/ListToolbar/ListToolbar.types.js.map +1 -1
  647. package/lib/components/ListToolbar/PresetMenuPopover.d.ts +12 -0
  648. package/lib/components/ListToolbar/PresetMenuPopover.d.ts.map +1 -0
  649. package/lib/components/ListToolbar/PresetMenuPopover.js +36 -0
  650. package/lib/components/ListToolbar/PresetMenuPopover.js.map +1 -0
  651. package/lib/components/ListToolbar/QueryOptionPopover.d.ts.map +1 -1
  652. package/lib/components/ListToolbar/QueryOptionPopover.js +14 -44
  653. package/lib/components/ListToolbar/QueryOptionPopover.js.map +1 -1
  654. package/lib/components/Location/LocationInput.d.ts +3 -1
  655. package/lib/components/Location/LocationInput.d.ts.map +1 -1
  656. package/lib/components/Location/LocationInput.js +2 -2
  657. package/lib/components/Location/LocationInput.js.map +1 -1
  658. package/lib/components/Location/LocationView.d.ts +1 -1
  659. package/lib/components/Location/LocationView.d.ts.map +1 -1
  660. package/lib/components/Location/LocationView.js +16 -10
  661. package/lib/components/Location/LocationView.js.map +1 -1
  662. package/lib/components/Location/utils.d.ts +3 -2
  663. package/lib/components/Location/utils.d.ts.map +1 -1
  664. package/lib/components/Location/utils.js +17 -9
  665. package/lib/components/Location/utils.js.map +1 -1
  666. package/lib/components/Menu/FlyoutMenuList.d.ts.map +1 -1
  667. package/lib/components/Menu/FlyoutMenuList.js +11 -7
  668. package/lib/components/Menu/FlyoutMenuList.js.map +1 -1
  669. package/lib/components/Menu/Menu.context.d.ts.map +1 -1
  670. package/lib/components/Menu/Menu.context.js +2 -1
  671. package/lib/components/Menu/Menu.context.js.map +1 -1
  672. package/lib/components/Menu/Menu.d.ts.map +1 -1
  673. package/lib/components/Menu/Menu.js +42 -15
  674. package/lib/components/Menu/Menu.js.map +1 -1
  675. package/lib/components/Menu/Menu.styles.d.ts.map +1 -1
  676. package/lib/components/Menu/Menu.styles.js +4 -2
  677. package/lib/components/Menu/Menu.styles.js.map +1 -1
  678. package/lib/components/Menu/Menu.types.d.ts +14 -0
  679. package/lib/components/Menu/Menu.types.d.ts.map +1 -1
  680. package/lib/components/Menu/Menu.types.js.map +1 -1
  681. package/lib/components/Menu/MenuGroup.d.ts.map +1 -1
  682. package/lib/components/Menu/MenuGroup.js +3 -3
  683. package/lib/components/Menu/MenuGroup.js.map +1 -1
  684. package/lib/components/Menu/MenuItem.d.ts.map +1 -1
  685. package/lib/components/Menu/MenuItem.js +4 -8
  686. package/lib/components/Menu/MenuItem.js.map +1 -1
  687. package/lib/components/Menu/MenuList.d.ts.map +1 -1
  688. package/lib/components/Menu/MenuList.js +23 -14
  689. package/lib/components/Menu/MenuList.js.map +1 -1
  690. package/lib/components/Menu/NavItemsList.d.ts +2 -2
  691. package/lib/components/Menu/NavItemsList.d.ts.map +1 -1
  692. package/lib/components/Menu/NavItemsList.js +12 -7
  693. package/lib/components/Menu/NavItemsList.js.map +1 -1
  694. package/lib/components/Menu/helpers.d.ts +9 -7
  695. package/lib/components/Menu/helpers.d.ts.map +1 -1
  696. package/lib/components/Menu/helpers.js +16 -13
  697. package/lib/components/Menu/helpers.js.map +1 -1
  698. package/lib/components/Menu/index.d.ts +1 -1
  699. package/lib/components/Menu/index.d.ts.map +1 -1
  700. package/lib/components/Menu/index.js +1 -1
  701. package/lib/components/Menu/index.js.map +1 -1
  702. package/lib/components/MenuButton/MenuButton.d.ts.map +1 -1
  703. package/lib/components/MenuButton/MenuButton.js +13 -11
  704. package/lib/components/MenuButton/MenuButton.js.map +1 -1
  705. package/lib/components/MetaList/MetaList.d.ts.map +1 -1
  706. package/lib/components/MetaList/MetaList.js +13 -10
  707. package/lib/components/MetaList/MetaList.js.map +1 -1
  708. package/lib/components/Modal/Contexts.d.ts.map +1 -1
  709. package/lib/components/Modal/Contexts.js +2 -3
  710. package/lib/components/Modal/Contexts.js.map +1 -1
  711. package/lib/components/Modal/MinimizedModal.d.ts.map +1 -1
  712. package/lib/components/Modal/MinimizedModal.js +2 -5
  713. package/lib/components/Modal/MinimizedModal.js.map +1 -1
  714. package/lib/components/Modal/Modal.d.ts.map +1 -1
  715. package/lib/components/Modal/Modal.js +7 -9
  716. package/lib/components/Modal/Modal.js.map +1 -1
  717. package/lib/components/Modal/Modal.types.d.ts +2 -6
  718. package/lib/components/Modal/Modal.types.d.ts.map +1 -1
  719. package/lib/components/Modal/Modal.types.js +1 -2
  720. package/lib/components/Modal/Modal.types.js.map +1 -1
  721. package/lib/components/Modal/ModalManager.d.ts +8 -2
  722. package/lib/components/Modal/ModalManager.d.ts.map +1 -1
  723. package/lib/components/Modal/ModalManager.js +21 -20
  724. package/lib/components/Modal/ModalManager.js.map +1 -1
  725. package/lib/components/Modal/index.d.ts +0 -1
  726. package/lib/components/Modal/index.d.ts.map +1 -1
  727. package/lib/components/Modal/index.js +0 -1
  728. package/lib/components/Modal/index.js.map +1 -1
  729. package/lib/components/MultiStepForm/FormProgress.d.ts +10 -0
  730. package/lib/components/MultiStepForm/FormProgress.d.ts.map +1 -0
  731. package/lib/components/{MultiStep/MultiStep.js → MultiStepForm/FormProgress.js} +8 -22
  732. package/lib/components/MultiStepForm/FormProgress.js.map +1 -0
  733. package/lib/components/{MultiStep/MultiStep.styles.d.ts → MultiStepForm/FormProgress.styles.d.ts} +2 -4
  734. package/lib/components/MultiStepForm/FormProgress.styles.d.ts.map +1 -0
  735. package/lib/components/{MultiStep/MultiStep.styles.js → MultiStepForm/FormProgress.styles.js} +4 -8
  736. package/lib/components/MultiStepForm/FormProgress.styles.js.map +1 -0
  737. package/lib/components/MultiStepForm/MultiStepForm.d.ts +9 -0
  738. package/lib/components/MultiStepForm/MultiStepForm.d.ts.map +1 -0
  739. package/lib/components/MultiStepForm/MultiStepForm.js +50 -0
  740. package/lib/components/MultiStepForm/MultiStepForm.js.map +1 -0
  741. package/lib/components/MultiStepForm/MultiStepForm.types.d.ts +48 -0
  742. package/lib/components/MultiStepForm/MultiStepForm.types.d.ts.map +1 -0
  743. package/lib/components/MultiStepForm/MultiStepForm.types.js +2 -0
  744. package/lib/components/MultiStepForm/MultiStepForm.types.js.map +1 -0
  745. package/lib/components/MultiStepForm/index.d.ts +2 -0
  746. package/lib/components/MultiStepForm/index.d.ts.map +1 -0
  747. package/lib/components/MultiStepForm/index.js +2 -0
  748. package/lib/components/MultiStepForm/index.js.map +1 -0
  749. package/lib/components/Number/NumberDisplay.d.ts +0 -5
  750. package/lib/components/Number/NumberDisplay.d.ts.map +1 -1
  751. package/lib/components/Number/NumberDisplay.js +8 -12
  752. package/lib/components/Number/NumberDisplay.js.map +1 -1
  753. package/lib/components/Number/NumberInput.d.ts +1 -1
  754. package/lib/components/Number/NumberInput.d.ts.map +1 -1
  755. package/lib/components/Number/NumberInput.js +51 -25
  756. package/lib/components/Number/NumberInput.js.map +1 -1
  757. package/lib/components/Number/NumberInput.styles.d.ts +8 -5
  758. package/lib/components/Number/NumberInput.styles.d.ts.map +1 -1
  759. package/lib/components/Number/NumberInput.styles.js +8 -3
  760. package/lib/components/Number/NumberInput.styles.js.map +1 -1
  761. package/lib/components/Number/NumberInput.types.d.ts +56 -21
  762. package/lib/components/Number/NumberInput.types.d.ts.map +1 -1
  763. package/lib/components/Number/NumberInput.types.js.map +1 -1
  764. package/lib/components/Number/NumberRangeInput.d.ts +6 -0
  765. package/lib/components/Number/NumberRangeInput.d.ts.map +1 -0
  766. package/lib/components/Number/NumberRangeInput.js +30 -0
  767. package/lib/components/Number/NumberRangeInput.js.map +1 -0
  768. package/lib/components/Number/index.d.ts +3 -2
  769. package/lib/components/Number/index.d.ts.map +1 -1
  770. package/lib/components/Number/index.js +1 -0
  771. package/lib/components/Number/index.js.map +1 -1
  772. package/lib/components/Number/utils.d.ts +3 -4
  773. package/lib/components/Number/utils.d.ts.map +1 -1
  774. package/lib/components/Number/utils.js +41 -22
  775. package/lib/components/Number/utils.js.map +1 -1
  776. package/lib/components/PageTemplates/CategorySubPage.d.ts +3 -3
  777. package/lib/components/PageTemplates/CategorySubPage.d.ts.map +1 -1
  778. package/lib/components/PageTemplates/CategorySubPage.js.map +1 -1
  779. package/lib/components/PageTemplates/DashboardPage.d.ts.map +1 -1
  780. package/lib/components/PageTemplates/DashboardPage.js +1 -4
  781. package/lib/components/PageTemplates/DashboardPage.js.map +1 -1
  782. package/lib/components/PageTemplates/PageTemplates.d.ts +1 -2
  783. package/lib/components/PageTemplates/PageTemplates.d.ts.map +1 -1
  784. package/lib/components/PageTemplates/PageTemplates.js.map +1 -1
  785. package/lib/components/Phone/PhoneDisplay.d.ts +8 -0
  786. package/lib/components/Phone/PhoneDisplay.d.ts.map +1 -1
  787. package/lib/components/Phone/PhoneDisplay.js +2 -2
  788. package/lib/components/Phone/PhoneDisplay.js.map +1 -1
  789. package/lib/components/Phone/PhoneInput.d.ts.map +1 -1
  790. package/lib/components/Phone/PhoneInput.js +19 -9
  791. package/lib/components/Phone/PhoneInput.js.map +1 -1
  792. package/lib/components/Phone/utils.d.ts +4 -1
  793. package/lib/components/Phone/utils.d.ts.map +1 -1
  794. package/lib/components/Phone/utils.js +4 -2
  795. package/lib/components/Phone/utils.js.map +1 -1
  796. package/lib/components/Popover/Popover.d.ts +4 -1
  797. package/lib/components/Popover/Popover.d.ts.map +1 -1
  798. package/lib/components/Popover/Popover.js +26 -12
  799. package/lib/components/Popover/Popover.js.map +1 -1
  800. package/lib/components/Popover/Popover.styles.d.ts +1 -0
  801. package/lib/components/Popover/Popover.styles.d.ts.map +1 -1
  802. package/lib/components/Popover/Popover.styles.js +19 -58
  803. package/lib/components/Popover/Popover.styles.js.map +1 -1
  804. package/lib/components/Popover/PopoverContext.d.ts +1 -0
  805. package/lib/components/Popover/PopoverContext.d.ts.map +1 -1
  806. package/lib/components/Popover/PopoverContext.js +2 -1
  807. package/lib/components/Popover/PopoverContext.js.map +1 -1
  808. package/lib/components/Popover/PopoverManager.d.ts.map +1 -1
  809. package/lib/components/Popover/PopoverManager.js +2 -1
  810. package/lib/components/Popover/PopoverManager.js.map +1 -1
  811. package/lib/components/Popover/modifiers.d.ts +2 -0
  812. package/lib/components/Popover/modifiers.d.ts.map +1 -1
  813. package/lib/components/Popover/modifiers.js +32 -1
  814. package/lib/components/Popover/modifiers.js.map +1 -1
  815. package/lib/components/Progress/Ring.js +2 -2
  816. package/lib/components/Progress/Ring.js.map +1 -1
  817. package/lib/components/RadioButton/RadioButton.d.ts +3 -1
  818. package/lib/components/RadioButton/RadioButton.d.ts.map +1 -1
  819. package/lib/components/RadioButton/RadioButton.js.map +1 -1
  820. package/lib/components/RadioCheck/RadioCheck.d.ts +2 -0
  821. package/lib/components/RadioCheck/RadioCheck.d.ts.map +1 -1
  822. package/lib/components/RadioCheck/RadioCheck.js +7 -5
  823. package/lib/components/RadioCheck/RadioCheck.js.map +1 -1
  824. package/lib/components/RadioCheckGroup/RadioCheckGroup.d.ts +3 -0
  825. package/lib/components/RadioCheckGroup/RadioCheckGroup.d.ts.map +1 -1
  826. package/lib/components/RadioCheckGroup/RadioCheckGroup.js +2 -2
  827. package/lib/components/RadioCheckGroup/RadioCheckGroup.js.map +1 -1
  828. package/lib/components/RadioCheckGroup/index.d.ts +1 -1
  829. package/lib/components/RadioCheckGroup/index.d.ts.map +1 -1
  830. package/lib/components/RadioCheckGroup/index.js +1 -1
  831. package/lib/components/RadioCheckGroup/index.js.map +1 -1
  832. package/lib/components/SearchInput/SearchInput.d.ts +24 -8
  833. package/lib/components/SearchInput/SearchInput.d.ts.map +1 -1
  834. package/lib/components/SearchInput/SearchInput.js +127 -94
  835. package/lib/components/SearchInput/SearchInput.js.map +1 -1
  836. package/lib/components/SearchInput/SearchInput.styles.d.ts +16 -0
  837. package/lib/components/SearchInput/SearchInput.styles.d.ts.map +1 -0
  838. package/lib/components/SearchInput/SearchInput.styles.js +133 -0
  839. package/lib/components/SearchInput/SearchInput.styles.js.map +1 -0
  840. package/lib/components/SearchInput/index.d.ts +1 -1
  841. package/lib/components/SearchInput/index.d.ts.map +1 -1
  842. package/lib/components/SearchInput/index.js +1 -1
  843. package/lib/components/SearchInput/index.js.map +1 -1
  844. package/lib/components/Select/Select.d.ts +5 -0
  845. package/lib/components/Select/Select.d.ts.map +1 -1
  846. package/lib/components/Select/Select.js +18 -8
  847. package/lib/components/Select/Select.js.map +1 -1
  848. package/lib/components/Sentiment/Sentiment.d.ts.map +1 -1
  849. package/lib/components/Sentiment/Sentiment.js +1 -1
  850. package/lib/components/Sentiment/Sentiment.js.map +1 -1
  851. package/lib/components/Skeleton/ParagraphSkeleton.d.ts.map +1 -1
  852. package/lib/components/Skeleton/ParagraphSkeleton.js +2 -2
  853. package/lib/components/Skeleton/ParagraphSkeleton.js.map +1 -1
  854. package/lib/components/SkipLinks/SkipLinks.d.ts +15 -0
  855. package/lib/components/SkipLinks/SkipLinks.d.ts.map +1 -0
  856. package/lib/components/SkipLinks/SkipLinks.js +67 -0
  857. package/lib/components/SkipLinks/SkipLinks.js.map +1 -0
  858. package/lib/components/SkipLinks/index.d.ts +4 -0
  859. package/lib/components/SkipLinks/index.d.ts.map +1 -0
  860. package/lib/components/SkipLinks/index.js +3 -0
  861. package/lib/components/SkipLinks/index.js.map +1 -0
  862. package/lib/components/Slider/Slider.styles.d.ts +1 -1
  863. package/lib/components/SummaryItem/SummaryItem.d.ts +2 -2
  864. package/lib/components/SummaryList/ViewAll.d.ts.map +1 -1
  865. package/lib/components/SummaryList/ViewAll.js +6 -2
  866. package/lib/components/SummaryList/ViewAll.js.map +1 -1
  867. package/lib/components/Tabs/Tab.d.ts.map +1 -1
  868. package/lib/components/Tabs/Tab.js +11 -4
  869. package/lib/components/Tabs/Tab.js.map +1 -1
  870. package/lib/components/Tabs/TabPanel.d.ts.map +1 -1
  871. package/lib/components/Tabs/TabPanel.js +1 -7
  872. package/lib/components/Tabs/TabPanel.js.map +1 -1
  873. package/lib/components/Tabs/Tabs.d.ts.map +1 -1
  874. package/lib/components/Tabs/Tabs.js +1 -1
  875. package/lib/components/Tabs/Tabs.js.map +1 -1
  876. package/lib/components/Text/Text.js +2 -2
  877. package/lib/components/Text/Text.js.map +1 -1
  878. package/lib/components/TextArea/TextArea.d.ts.map +1 -1
  879. package/lib/components/TextArea/TextArea.js +8 -3
  880. package/lib/components/TextArea/TextArea.js.map +1 -1
  881. package/lib/components/Toaster/Context.d.ts +7 -0
  882. package/lib/components/Toaster/Context.d.ts.map +1 -0
  883. package/lib/components/Toaster/Context.js +6 -0
  884. package/lib/components/Toaster/Context.js.map +1 -0
  885. package/lib/components/Toaster/Toaster.d.ts +8 -40
  886. package/lib/components/Toaster/Toaster.d.ts.map +1 -1
  887. package/lib/components/Toaster/Toaster.js +12 -12
  888. package/lib/components/Toaster/Toaster.js.map +1 -1
  889. package/lib/components/Toaster/Toaster.types.d.ts +31 -0
  890. package/lib/components/Toaster/Toaster.types.d.ts.map +1 -0
  891. package/lib/components/Toaster/Toaster.types.js +2 -0
  892. package/lib/components/Toaster/Toaster.types.js.map +1 -0
  893. package/lib/components/Toaster/index.d.ts +1 -2
  894. package/lib/components/Toaster/index.d.ts.map +1 -1
  895. package/lib/components/Toaster/index.js +0 -1
  896. package/lib/components/Toaster/index.js.map +1 -1
  897. package/lib/components/Tooltip/Tooltip.d.ts +6 -1
  898. package/lib/components/Tooltip/Tooltip.d.ts.map +1 -1
  899. package/lib/components/Tooltip/Tooltip.js +24 -5
  900. package/lib/components/Tooltip/Tooltip.js.map +1 -1
  901. package/lib/components/Tree/StandardTree.d.ts.map +1 -1
  902. package/lib/components/Tree/StandardTree.js +27 -13
  903. package/lib/components/Tree/StandardTree.js.map +1 -1
  904. package/lib/components/Tree/StandardTree.styles.js +3 -3
  905. package/lib/components/Tree/StandardTree.styles.js.map +1 -1
  906. package/lib/components/Tree/StandardTree.types.d.ts +1 -0
  907. package/lib/components/Tree/StandardTree.types.d.ts.map +1 -1
  908. package/lib/components/Tree/StandardTree.types.js.map +1 -1
  909. package/lib/hooks/index.d.ts +3 -0
  910. package/lib/hooks/index.d.ts.map +1 -1
  911. package/lib/hooks/index.js +3 -0
  912. package/lib/hooks/index.js.map +1 -1
  913. package/lib/hooks/useActiveDescendant.d.ts +5 -1
  914. package/lib/hooks/useActiveDescendant.d.ts.map +1 -1
  915. package/lib/hooks/useActiveDescendant.js +179 -100
  916. package/lib/hooks/useActiveDescendant.js.map +1 -1
  917. package/lib/hooks/useAutoResize.d.ts +1 -1
  918. package/lib/hooks/useAutoResize.d.ts.map +1 -1
  919. package/lib/hooks/useAutoResize.js +14 -6
  920. package/lib/hooks/useAutoResize.js.map +1 -1
  921. package/lib/hooks/useBreakpoint.d.ts +3 -2
  922. package/lib/hooks/useBreakpoint.d.ts.map +1 -1
  923. package/lib/hooks/useBreakpoint.js +12 -15
  924. package/lib/hooks/useBreakpoint.js.map +1 -1
  925. package/lib/hooks/useConfiguration.d.ts +1 -0
  926. package/lib/hooks/useConfiguration.d.ts.map +1 -1
  927. package/lib/hooks/useConfiguration.js +9 -2
  928. package/lib/hooks/useConfiguration.js.map +1 -1
  929. package/lib/hooks/useDraggable.d.ts +1 -1
  930. package/lib/hooks/useDraggable.d.ts.map +1 -1
  931. package/lib/hooks/useDraggable.js +35 -8
  932. package/lib/hooks/useDraggable.js.map +1 -1
  933. package/lib/hooks/useFocusTrap.d.ts.map +1 -1
  934. package/lib/hooks/useFocusTrap.js +4 -5
  935. package/lib/hooks/useFocusTrap.js.map +1 -1
  936. package/lib/hooks/useFocusWithin.d.ts.map +1 -1
  937. package/lib/hooks/useFocusWithin.js +0 -8
  938. package/lib/hooks/useFocusWithin.js.map +1 -1
  939. package/lib/hooks/useI18n.d.ts +148 -38
  940. package/lib/hooks/useI18n.d.ts.map +1 -1
  941. package/lib/hooks/useI18n.js +2 -1
  942. package/lib/hooks/useI18n.js.map +1 -1
  943. package/lib/hooks/useInputFormatter.d.ts.map +1 -1
  944. package/lib/hooks/useInputFormatter.js +5 -0
  945. package/lib/hooks/useInputFormatter.js.map +1 -1
  946. package/lib/hooks/useLongPress.d.ts +1 -1
  947. package/lib/hooks/useLongPress.d.ts.map +1 -1
  948. package/lib/hooks/useModalContext.d.ts +7 -0
  949. package/lib/hooks/useModalContext.d.ts.map +1 -0
  950. package/lib/hooks/useModalContext.js +12 -0
  951. package/lib/hooks/useModalContext.js.map +1 -0
  952. package/lib/hooks/useModalManager.d.ts +8 -0
  953. package/lib/hooks/useModalManager.d.ts.map +1 -0
  954. package/lib/hooks/useModalManager.js +16 -0
  955. package/lib/hooks/useModalManager.js.map +1 -0
  956. package/lib/hooks/useOS.d.ts.map +1 -1
  957. package/lib/hooks/useOS.js +1 -2
  958. package/lib/hooks/useOS.js.map +1 -1
  959. package/lib/hooks/useScrollStick.d.ts +1 -1
  960. package/lib/hooks/useScrollStick.d.ts.map +1 -1
  961. package/lib/hooks/useToaster.d.ts +8 -0
  962. package/lib/hooks/useToaster.d.ts.map +1 -0
  963. package/lib/hooks/useToaster.js +16 -0
  964. package/lib/hooks/useToaster.js.map +1 -0
  965. package/lib/hooks/useTransitionState.js +1 -1
  966. package/lib/hooks/useTransitionState.js.map +1 -1
  967. package/lib/i18n/default.d.ts +148 -38
  968. package/lib/i18n/default.d.ts.map +1 -1
  969. package/lib/i18n/default.js +175 -53
  970. package/lib/i18n/default.js.map +1 -1
  971. package/lib/i18n/i18n.d.ts +144 -702
  972. package/lib/i18n/i18n.d.ts.map +1 -1
  973. package/lib/i18n/translate.d.ts +4 -2
  974. package/lib/i18n/translate.d.ts.map +1 -1
  975. package/lib/i18n/translate.js.map +1 -1
  976. package/lib/index.d.ts +9 -2
  977. package/lib/index.d.ts.map +1 -1
  978. package/lib/index.js +9 -2
  979. package/lib/index.js.map +1 -1
  980. package/lib/init.d.ts +8 -0
  981. package/lib/init.d.ts.map +1 -0
  982. package/lib/init.js +5 -0
  983. package/lib/init.js.map +1 -0
  984. package/lib/register-contexts.d.ts +2 -0
  985. package/lib/register-contexts.d.ts.map +1 -0
  986. package/lib/register-contexts.js +10 -0
  987. package/lib/register-contexts.js.map +1 -0
  988. package/lib/styles/GlobalStyle.d.ts.map +1 -1
  989. package/lib/styles/GlobalStyle.js +12 -2
  990. package/lib/styles/GlobalStyle.js.map +1 -1
  991. package/lib/styles/utils.d.ts +1 -1
  992. package/lib/styles/utils.d.ts.map +1 -1
  993. package/lib/styles/utils.js.map +1 -1
  994. package/lib/theme/ThemeMachine.d.ts +11 -3
  995. package/lib/theme/ThemeMachine.d.ts.map +1 -1
  996. package/lib/theme/ThemeMachine.js +28 -26
  997. package/lib/theme/ThemeMachine.js.map +1 -1
  998. package/lib/theme/index.d.ts +1 -0
  999. package/lib/theme/index.d.ts.map +1 -1
  1000. package/lib/theme/index.js +1 -0
  1001. package/lib/theme/index.js.map +1 -1
  1002. package/lib/theme/theme.d.ts +56 -2
  1003. package/lib/theme/theme.d.ts.map +1 -1
  1004. package/lib/theme/themeDefinition.json +37 -5
  1005. package/lib/theme/themeOverrides.schema.json +9 -0
  1006. package/lib/theme/themes/buildTheme.json +0 -3
  1007. package/lib/theme/themes/darkTheme.json +3 -1
  1008. package/lib/theme/themes/legacyBuildTheme.json +0 -3
  1009. package/lib/theme/themes/wssTheme.json +6 -0
  1010. package/lib/types/types.d.ts +3 -0
  1011. package/lib/types/types.d.ts.map +1 -1
  1012. package/lib/types/types.js.map +1 -1
  1013. package/lib/utils/utils.d.ts +11 -0
  1014. package/lib/utils/utils.d.ts.map +1 -1
  1015. package/lib/utils/utils.js +39 -0
  1016. package/lib/utils/utils.js.map +1 -1
  1017. package/package.json +13 -10
  1018. package/lib/components/AppShell/SkipNavigation.d.ts +0 -4
  1019. package/lib/components/AppShell/SkipNavigation.d.ts.map +0 -1
  1020. package/lib/components/AppShell/SkipNavigation.js +0 -61
  1021. package/lib/components/AppShell/SkipNavigation.js.map +0 -1
  1022. package/lib/components/Currency/currencyCodes.d.ts +0 -3
  1023. package/lib/components/Currency/currencyCodes.d.ts.map +0 -1
  1024. package/lib/components/Currency/currencyCodes.js +0 -182
  1025. package/lib/components/Currency/currencyCodes.js.map +0 -1
  1026. package/lib/components/DateTime/types.d.ts +0 -9
  1027. package/lib/components/DateTime/types.d.ts.map +0 -1
  1028. package/lib/components/DateTime/types.js +0 -2
  1029. package/lib/components/DateTime/types.js.map +0 -1
  1030. package/lib/components/Icon/icons/script-solid.icon.d.ts.map +0 -1
  1031. package/lib/components/Icon/icons/script-solid.icon.js +0 -6
  1032. package/lib/components/Icon/icons/script-solid.icon.js.map +0 -1
  1033. package/lib/components/MultiStep/MultiStep.d.ts +0 -6
  1034. package/lib/components/MultiStep/MultiStep.d.ts.map +0 -1
  1035. package/lib/components/MultiStep/MultiStep.js.map +0 -1
  1036. package/lib/components/MultiStep/MultiStep.styles.d.ts.map +0 -1
  1037. package/lib/components/MultiStep/MultiStep.styles.js.map +0 -1
  1038. package/lib/components/MultiStep/MultiStep.types.d.ts +0 -36
  1039. package/lib/components/MultiStep/MultiStep.types.d.ts.map +0 -1
  1040. package/lib/components/MultiStep/MultiStep.types.js +0 -2
  1041. package/lib/components/MultiStep/MultiStep.types.js.map +0 -1
  1042. package/lib/components/MultiStep/index.d.ts +0 -3
  1043. package/lib/components/MultiStep/index.d.ts.map +0 -1
  1044. package/lib/components/MultiStep/index.js +0 -2
  1045. package/lib/components/MultiStep/index.js.map +0 -1
@@ -6,23 +6,23 @@ import Icon, { registerIcon } from '../Icon';
6
6
  import * as plusIcon from '../Icon/icons/plus.icon';
7
7
  import { useI18n } from '../../hooks';
8
8
  import { defaultThemeProp } from '../../theme';
9
- import FieldGroup from './FieldGroup';
9
+ import FieldGroup, { StyledFieldGroup } from './FieldGroup';
10
10
  registerIcon(plusIcon);
11
11
  const StyledFieldGroupList = styled.div(({ theme }) => css `
12
- margin-top: ${theme.base.spacing};
12
+ margin-block-start: ${theme.base.spacing};
13
+
14
+ ${StyledFieldGroup} {
15
+ margin-block-start: 0;
16
+ }
13
17
  `);
14
18
  StyledFieldGroupList.defaultProps = defaultThemeProp;
15
19
  export const StyledListItem = styled(FieldGroup)(({ theme }) => css `
16
20
  padding: ${theme.base.spacing} 0 calc(2 * ${theme.base.spacing});
17
21
  border-bottom: 0.0625rem solid ${theme.base.palette['border-line']};
18
- margin-bottom: calc(2 * ${theme.base.spacing});
22
+ margin-block-end: calc(2 * ${theme.base.spacing});
19
23
 
20
24
  legend {
21
- margin-bottom: -${theme.base.spacing};
22
- }
23
-
24
- & > * {
25
- margin: ${theme.base.spacing} 0;
25
+ margin-block-end: 0;
26
26
  }
27
27
  `);
28
28
  StyledListItem.defaultProps = defaultThemeProp;
@@ -1 +1 @@
1
- {"version":3,"file":"FieldGroupList.js","sourceRoot":"","sources":["../../../src/components/FieldGroup/FieldGroupList.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAqB,UAAU,EAAwB,MAAM,OAAO,CAAC;AAC5E,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGhD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,EAAE,QAAQ,EAAE,GAAG,SAAS,EAAwC,EAC9E,GAA+B,EAC/B,EAAE;IACF,MAAM,CAAC,GAAG,OAAO,EAAE,CAAC;IAEpB,OAAO,CACL,MAAC,oBAAoB,IAAC,GAAG,EAAE,GAAG,KAAM,SAAS,aAC1C,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,aAAa,EAA2B,EAAE,EAAE;gBAC/E,OAAO,CACL,KAAC,cAAc,IAEb,IAAI,EAAE,IAAI,KACN,aAAa,EACjB,OAAO,EACL,QAAQ;wBACN,CAAC,CAAC;4BACE;gCACE,EAAE,EAAE,QAAQ;gCACZ,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC;gCACjB,IAAI,EAAE,OAAO;gCACb,QAAQ,EAAE,IAAI;gCACd,OAAO,EAAE,QAAQ;oCACf,CAAC,CAAC,GAAG,EAAE;wCACH,QAAQ,CAAC,EAAE,CAAC,CAAC;oCACf,CAAC;oCACH,CAAC,CAAC,SAAS;6BACd;yBACF;wBACH,CAAC,CAAC,SAAS,YAGd,QAAQ,IArBJ,EAAE,CAsBQ,CAClB,CAAC;YACJ,CAAC,CAAC,EACD,KAAK,IAAI,CACR,MAAC,eAAe,IAAC,OAAO,EAAC,MAAM,EAAC,OAAO,EAAE,KAAK,aAC5C,KAAC,IAAI,IAAC,IAAI,EAAC,MAAM,GAAG,OAAE,CAAC,CAAC,KAAK,CAAC,IACd,CACnB,IACoB,CACxB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,cAAc,CAAC","sourcesContent":["import { FunctionComponent, forwardRef, PropsWithoutRef, Ref } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport { ForwardProps } from '../../types';\nimport Button from '../Button';\nimport Icon, { registerIcon } from '../Icon';\nimport * as plusIcon from '../Icon/icons/plus.icon';\nimport { useI18n } from '../../hooks';\nimport { defaultThemeProp } from '../../theme';\n\nimport FieldGroup, { FieldGroupProps } from './FieldGroup';\n\nregisterIcon(plusIcon);\n\nexport interface FieldGroupListItemProps extends FieldGroupProps {\n /** The ID of the field group list item */\n id: string;\n}\n\nexport interface FieldGroupListProps {\n items: FieldGroupListItemProps[];\n onAdd?: () => void;\n onDelete?: (id: string) => void;\n ref?: Ref<HTMLDivElement>;\n}\n\nconst StyledFieldGroupList = styled.div(\n ({ theme }) =>\n css`\n margin-top: ${theme.base.spacing};\n `\n);\n\nStyledFieldGroupList.defaultProps = defaultThemeProp;\n\nexport const StyledListItem = styled(FieldGroup)(\n ({ theme }) =>\n css`\n padding: ${theme.base.spacing} 0 calc(2 * ${theme.base.spacing});\n border-bottom: 0.0625rem solid ${theme.base.palette['border-line']};\n margin-bottom: calc(2 * ${theme.base.spacing});\n\n legend {\n margin-bottom: -${theme.base.spacing};\n }\n\n & > * {\n margin: ${theme.base.spacing} 0;\n }\n `\n);\n\nStyledListItem.defaultProps = defaultThemeProp;\n\nconst StyledAddButton = styled(Button)(\n ({ theme }) =>\n css`\n margin-top: ${theme.base.spacing};\n `\n);\n\nStyledAddButton.defaultProps = defaultThemeProp;\n\nconst FieldGroupList: FunctionComponent<FieldGroupListProps & ForwardProps> = forwardRef(\n (\n { items, onAdd, onDelete, ...restProps }: PropsWithoutRef<FieldGroupListProps>,\n ref: FieldGroupListProps['ref']\n ) => {\n const t = useI18n();\n\n return (\n <StyledFieldGroupList ref={ref} {...restProps}>\n {items.map(({ id, children, name, ...restItemProps }: FieldGroupListItemProps) => {\n return (\n <StyledListItem\n key={id}\n name={name}\n {...restItemProps}\n actions={\n onDelete\n ? [\n {\n id: 'delete',\n text: t('delete'),\n icon: 'trash',\n iconOnly: true,\n onClick: onDelete\n ? () => {\n onDelete(id);\n }\n : undefined\n }\n ]\n : undefined\n }\n >\n {children}\n </StyledListItem>\n );\n })}\n {onAdd && (\n <StyledAddButton variant='link' onClick={onAdd}>\n <Icon name='plus' /> {t('add')}\n </StyledAddButton>\n )}\n </StyledFieldGroupList>\n );\n }\n);\n\nexport default FieldGroupList;\n"]}
1
+ {"version":3,"file":"FieldGroupList.js","sourceRoot":"","sources":["../../../src/components/FieldGroup/FieldGroupList.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAqB,UAAU,EAAwB,MAAM,OAAO,CAAC;AAC5E,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGhD,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,IAAI,EAAE,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,QAAQ,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,OAAO,UAAU,EAAE,EAAmB,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAE7E,YAAY,CAAC,QAAQ,CAAC,CAAC;AAcvB,MAAM,oBAAoB,GAAG,MAAM,CAAC,GAAG,CACrC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CACZ,GAAG,CAAA;4BACqB,KAAK,CAAC,IAAI,CAAC,OAAO;;QAEtC,gBAAgB;;;KAGnB,CACJ,CAAC;AAEF,oBAAoB,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAErD,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,UAAU,CAAC,CAC9C,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CACZ,GAAG,CAAA;iBACU,KAAK,CAAC,IAAI,CAAC,OAAO,eAAe,KAAK,CAAC,IAAI,CAAC,OAAO;uCAC7B,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC;mCACrC,KAAK,CAAC,IAAI,CAAC,OAAO;;;;;KAKhD,CACJ,CAAC;AAEF,cAAc,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAE/C,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,CACpC,CAAC,EAA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WithoutRef, Ref } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport { ForwardProps } from '../../types';\nimport Button from '../Button';\nimport Icon, { registerIcon } from '../Icon';\nimport * as plusIcon from '../Icon/icons/plus.icon';\nimport { useI18n } from '../../hooks';\nimport { defaultThemeProp } from '../../theme';\n\nimport FieldGroup, { FieldGroupProps, StyledFieldGroup } from './FieldGroup';\n\nregisterIcon(plusIcon);\n\nexport interface FieldGroupListItemProps extends FieldGroupProps {\n /** The ID of the field group list item */\n id: string;\n}\n\nexport interface FieldGroupListProps {\n items: FieldGroupListItemProps[];\n onAdd?: () => void;\n onDelete?: (id: string) => void;\n ref?: Ref<HTMLDivElement>;\n}\n\nconst StyledFieldGroupList = styled.div(\n ({ theme }) =>\n css`\n margin-block-start: ${theme.base.spacing};\n\n ${StyledFieldGroup} {\n margin-block-start: 0;\n }\n `\n);\n\nStyledFieldGroupList.defaultProps = defaultThemeProp;\n\nexport const StyledListItem = styled(FieldGroup)(\n ({ theme }) =>\n css`\n padding: ${theme.base.spacing} 0 calc(2 * ${theme.base.spacing});\n border-bottom: 0.0625rem solid ${theme.base.palette['border-line']};\n margin-block-end: calc(2 * ${theme.base.spacing});\n\n legend {\n margin-block-end: 0;\n }\n `\n);\n\nStyledListItem.defaultProps = defaultThemeProp;\n\nconst StyledAddButton = styled(Button)(\n ({ theme }) =>\n css`\n margin-top: ${theme.base.spacing};\n `\n);\n\nStyledAddButton.defaultProps = defaultThemeProp;\n\nconst FieldGroupList: FunctionComponent<FieldGroupListProps & ForwardProps> = forwardRef(\n (\n { items, onAdd, onDelete, ...restProps }: PropsWithoutRef<FieldGroupListProps>,\n ref: FieldGroupListProps['ref']\n ) => {\n const t = useI18n();\n\n return (\n <StyledFieldGroupList ref={ref} {...restProps}>\n {items.map(({ id, children, name, ...restItemProps }: FieldGroupListItemProps) => {\n return (\n <StyledListItem\n key={id}\n name={name}\n {...restItemProps}\n actions={\n onDelete\n ? [\n {\n id: 'delete',\n text: t('delete'),\n icon: 'trash',\n iconOnly: true,\n onClick: onDelete\n ? () => {\n onDelete(id);\n }\n : undefined\n }\n ]\n : undefined\n }\n >\n {children}\n </StyledListItem>\n );\n })}\n {onAdd && (\n <StyledAddButton variant='link' onClick={onAdd}>\n <Icon name='plus' /> {t('add')}\n </StyledAddButton>\n )}\n </StyledFieldGroupList>\n );\n }\n);\n\nexport default FieldGroupList;\n"]}
@@ -1,21 +1,27 @@
1
1
  import { ReactNode, FunctionComponent } from 'react';
2
2
  import { BaseProps, ForwardProps, NoChildrenProp } from '../../types';
3
+ export declare type FieldValueVariant = 'inline' | 'stacked';
4
+ export interface FieldValueListItemProps {
5
+ id?: string;
6
+ name: string;
7
+ value?: ReactNode;
8
+ variant?: FieldValueVariant;
9
+ }
3
10
  export interface FieldValueListProps extends BaseProps, NoChildrenProp {
4
11
  /** The set of field values to render in the list. */
5
- fields: {
6
- id?: string;
7
- name: string;
8
- value?: ReactNode;
9
- }[];
12
+ fields: FieldValueListItemProps[];
10
13
  /**
11
14
  * Determines if the field and values should be displayed on the same line, or stacked with the field above the value.
12
15
  * @default "inline"
13
16
  */
14
- variant?: 'inline' | 'stacked';
17
+ variant?: FieldValueVariant | 'value-comparison';
15
18
  }
16
19
  export declare const StyledFieldName: import("styled-components").StyledComponent<"dt", import("styled-components").DefaultTheme, {}, never>;
17
20
  export declare const StyledFieldValue: import("styled-components").StyledComponent<"dd", import("styled-components").DefaultTheme, {}, never>;
18
- export declare const StyledFieldValueList: import("styled-components").StyledComponent<"dl", import("styled-components").DefaultTheme, {}, never>;
21
+ export declare type StyledFieldValueListProps = Pick<FieldValueListProps, 'variant'>;
22
+ export declare const StyledFieldValueList: import("styled-components").StyledComponent<"dl", import("styled-components").DefaultTheme, StyledFieldValueListProps, never>;
23
+ export declare const StyledStackedFieldValue: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
24
+ export declare const FieldValueItem: ({ name, value, variant }: FieldValueListItemProps) => JSX.Element;
19
25
  declare const FieldValueList: FunctionComponent<FieldValueListProps & ForwardProps>;
20
26
  export default FieldValueList;
21
27
  //# sourceMappingURL=FieldValueList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FieldValueList.d.ts","sourceRoot":"","sources":["../../../src/components/FieldValueList/FieldValueList.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAET,iBAAiB,EAKlB,MAAM,OAAO,CAAC;AAIf,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAQtE,MAAM,WAAW,mBAAoB,SAAQ,SAAS,EAAE,cAAc;IACpE,qDAAqD;IACrD,MAAM,EAAE;QACN,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,CAAC,EAAE,SAAS,CAAC;KACnB,EAAE,CAAC;IACJ;;;OAGG;IACH,OAAO,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;CAChC;AAED,eAAO,MAAM,eAAe,wGAE3B,CAAC;AAEF,eAAO,MAAM,gBAAgB,wGAG5B,CAAC;AAEF,eAAO,MAAM,oBAAoB,wGAEhC,CAAC;AA6DF,QAAA,MAAM,cAAc,EAAE,iBAAiB,CAAC,mBAAmB,GAAG,YAAY,CA+BzE,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"FieldValueList.d.ts","sourceRoot":"","sources":["../../../src/components/FieldValueList/FieldValueList.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAET,iBAAiB,EAOlB,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAStE,oBAAY,iBAAiB,GAAG,QAAQ,GAAG,SAAS,CAAC;AAErD,MAAM,WAAW,uBAAuB;IACtC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,iBAAiB,CAAC;CAC7B;AAED,MAAM,WAAW,mBAAoB,SAAQ,SAAS,EAAE,cAAc;IACpE,qDAAqD;IACrD,MAAM,EAAE,uBAAuB,EAAE,CAAC;IAClC;;;OAGG;IACH,OAAO,CAAC,EAAE,iBAAiB,GAAG,kBAAkB,CAAC;CAClD;AAED,eAAO,MAAM,eAAe,wGAE3B,CAAC;AAEF,eAAO,MAAM,gBAAgB,wGAE5B,CAAC;AAEF,oBAAY,yBAAyB,GAAG,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,CAAC;AAE7E,eAAO,MAAM,oBAAoB,+HAuB/B,CAAC;AAIH,eAAO,MAAM,uBAAuB,yGAAe,CAAC;AA2DpD,eAAO,MAAM,cAAc,6BAAyC,uBAAuB,gBAa1F,CAAC;AAEF,QAAA,MAAM,cAAc,EAAE,iBAAiB,CAAC,mBAAmB,GAAG,YAAY,CAyCzE,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1,24 +1,45 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Fragment, useState, useLayoutEffect, useRef, useMemo } from 'react';
3
- import styled from 'styled-components';
4
- import { defaultThemeProp } from '../../theme';
2
+ import { Fragment, useState, useLayoutEffect, useRef, useMemo, forwardRef } from 'react';
3
+ import styled, { css } from 'styled-components';
5
4
  import Button from '../Button';
6
5
  import ExpandCollapse from '../ExpandCollapse';
7
6
  import Grid from '../Grid';
8
7
  import { StyledLabel } from '../Label';
9
- import { useI18n } from '../../hooks';
8
+ import { useBreakpoint, useConsolidatedRef, useI18n } from '../../hooks';
10
9
  import { windowIsAvailable } from '../../utils';
10
+ import { defaultThemeProp } from '../../theme';
11
11
  export const StyledFieldName = styled.dt `
12
12
  word-break: break-word;
13
13
  `;
14
14
  export const StyledFieldValue = styled.dd `
15
15
  word-break: break-word;
16
- overflow: auto;
17
- `;
18
- export const StyledFieldValueList = styled.dl `
19
- width: 100%;
20
16
  `;
17
+ export const StyledFieldValueList = styled.dl(({ variant, theme }) => {
18
+ return css `
19
+ width: 100%;
20
+
21
+ ${variant === 'value-comparison' &&
22
+ css `
23
+ dt {
24
+ width: 100%;
25
+ }
26
+ dd {
27
+ text-align: end;
28
+ padding-inline-start: calc(2 * ${theme.base.spacing});
29
+ }
30
+ ${StyledLabel} {
31
+ max-width: unset;
32
+ }
33
+ dd:not(:last-of-type),
34
+ dt:not(:last-of-type) {
35
+ border-bottom: 0.0625rem solid ${theme.base.palette['border-line']};
36
+ padding-bottom: calc(0.5 * ${theme.base.spacing});
37
+ }
38
+ `}
39
+ `;
40
+ });
21
41
  StyledFieldValueList.defaultProps = defaultThemeProp;
42
+ export const StyledStackedFieldValue = styled.div ``;
22
43
  const DynamicHeightValue = ({ children }) => {
23
44
  const [collapsed, setCollapsed] = useState(true);
24
45
  const [exceedsMaxHeight, setExceedsMaxHeight] = useState(false);
@@ -46,18 +67,31 @@ const DynamicHeightValue = ({ children }) => {
46
67
  observer.disconnect();
47
68
  };
48
69
  }, [textRef.current, maxTextHeight]);
49
- return (_jsxs(_Fragment, { children: [_jsx(ExpandCollapse, { collapsed: collapsed, min: exceedsMaxHeight ? `${maxTextHeight}px` : 'max-content', children: _jsx(Grid, { ref: textRef, children: _jsx("span", { children: children }) }) }), exceedsMaxHeight && (_jsx(Button, { variant: 'link', onClick: () => setCollapsed(current => !current), children: collapsed ? t('show_more') : t('show_less') }))] }));
70
+ return (_jsxs(_Fragment, { children: [_jsx(ExpandCollapse, { collapsed: collapsed, min: exceedsMaxHeight ? `${maxTextHeight}px` : 'max-content', children: _jsx("div", { ref: textRef, children: _jsx("span", { children: children }) }) }), exceedsMaxHeight && (_jsx(Button, { variant: 'link', onClick: () => setCollapsed(current => !current), children: collapsed ? t('show_more') : t('show_less') }))] }));
50
71
  };
51
- const FieldValueList = ({ fields, variant = 'inline', ...restProps }) => {
52
- const Wrapper = variant === 'inline' ? Fragment : 'div';
53
- return (_jsx(Grid, { ...restProps, container: {
54
- cols: variant === 'inline' ? '16ch minmax(0, 1fr)' : 'minmax(0, 1fr)',
55
- colGap: 2,
56
- rowGap: 1
57
- }, as: StyledFieldValueList, children: fields.map(({ id, name, value }) => {
58
- const diplayValue = typeof value === 'string' ? _jsx(DynamicHeightValue, { children: value }) : value;
59
- return (_jsxs(Wrapper, { children: [_jsx(StyledLabel, { as: StyledFieldName, children: name }), _jsx(StyledFieldValue, { children: value ? diplayValue : _jsx("span", { "aria-hidden": 'true', children: "\u2013\u2013" }) })] }, id ?? name));
60
- }) }));
72
+ export const FieldValueItem = ({ name, value, variant = 'inline' }) => {
73
+ const Wrapper = variant === 'stacked' ? StyledStackedFieldValue : Fragment;
74
+ const displayValue = typeof value === 'string' ? _jsx(DynamicHeightValue, { children: value }) : value;
75
+ return (_jsxs(Wrapper, { children: [_jsx(StyledLabel, { as: StyledFieldName, children: name }), _jsx(StyledFieldValue, { children: value ? displayValue : _jsx("span", { "aria-hidden": 'true', children: "\u2013\u2013" }) })] }));
61
76
  };
77
+ const FieldValueList = forwardRef((props, ref) => {
78
+ const { fields, variant = 'inline', ...restProps } = props;
79
+ const fieldValueListRef = useConsolidatedRef(ref);
80
+ const isXSContentWidthOrAbove = useBreakpoint('xs', {
81
+ breakpointRef: fieldValueListRef,
82
+ themeProp: 'content-width'
83
+ });
84
+ return (_jsx(Grid, { ...restProps, ref: fieldValueListRef, container: {
85
+ cols: ['inline', 'value-comparison'].includes(variant) && isXSContentWidthOrAbove
86
+ ? '16ch minmax(0, 1fr)'
87
+ : 'minmax(0, 1fr)',
88
+ colGap: variant !== 'value-comparison' ? 2 : 0,
89
+ rowGap: variant !== 'value-comparison' ? 1 : 0.5
90
+ }, as: StyledFieldValueList, variant: variant, children: fields.map(({ id, name, value, variant: fieldVariant }) => {
91
+ return (_jsx(FieldValueItem, { name: name, value: value, variant: (fieldVariant ?? variant) === 'stacked' || !isXSContentWidthOrAbove
92
+ ? 'stacked'
93
+ : 'inline' }, id ?? name));
94
+ }) }));
95
+ });
62
96
  export default FieldValueList;
63
97
  //# sourceMappingURL=FieldValueList.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FieldValueList.js","sourceRoot":"","sources":["../../../src/components/FieldValueList/FieldValueList.tsx"],"names":[],"mappings":";AAAA,OAAO,EAEL,QAAQ,EAER,QAAQ,EACR,eAAe,EACf,MAAM,EACN,OAAO,EACR,MAAM,OAAO,CAAC;AACf,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAgBhD,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,EAAE,CAAA;;CAEvC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,EAAE,CAAA;;;CAGxC,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CAAC,EAAE,CAAA;;CAE5C,CAAC;AAEF,oBAAoB,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAErD,MAAM,kBAAkB,GAAG,CAAC,EAAE,QAAQ,EAA2B,EAAe,EAAE;IAChF,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IACjD,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAChE,MAAM,OAAO,GAAG,MAAM,CAAkB,IAAI,CAAC,CAAC;IAC9C,MAAM,CAAC,GAAG,OAAO,EAAE,CAAC;IA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C","sourcesContent":["import {\n ReactNode,\n Fragment,\n FunctionComponent,\n useState,\n useLayoutEffect,\n useRef,\n useMemo\n} from 'react';\nimport styled from 'styled-components';\n\nimport { defaultThemeProp } from '../../theme';\nimport { BaseProps, ForwardProps, NoChildrenProp } from '../../types';\nimport Button from '../Button';\nimport ExpandCollapse from '../ExpandCollapse';\nimport Grid from '../Grid';\nimport { StyledLabel } from '../Label';\nimport { useI18n } from '../../hooks';\nimport { windowIsAvailable } from '../../utils';\n\nexport interface FieldValueListProps extends BaseProps, NoChildrenProp {\n /** The set of field values to render in the list. */\n fields: {\n id?: string;\n name: string;\n value?: ReactNode;\n }[];\n /**\n * Determines if the field and values should be displayed on the same line, or stacked with the field above the value.\n * @default \"inline\"\n */\n variant?: 'inline' | 'stacked';\n}\n\nexport const StyledFieldName = styled.dt`\n word-break: break-word;\n`;\n\nexport const StyledFieldValue = styled.dd`\n word-break: break-word;\n overflow: auto;\n`;\n\nexport const StyledFieldValueList = styled.dl`\n width: 100%;\n`;\n\nStyledFieldValueList.defaultProps = defaultThemeProp;\n\nconst DynamicHeightValue = ({ children }: { children: ReactNode }): JSX.Element => {\n const [collapsed, setCollapsed] = useState(true);\n const [exceedsMaxHeight, setExceedsMaxHeight] = useState(false);\n const textRef = useRef<HTMLSpanElement>(null);\n const t = useI18n();\n\n const maxTextHeight = useMemo(() => {\n if (!windowIsAvailable) return Infinity;\n\n const computedLineHeight =\n Number.parseInt(\n window.getComputedStyle(document.documentElement).getPropertyValue('font-size'),\n 10\n ) * 1.25;\n\n return 3 * computedLineHeight;\n }, []);\n\n useLayoutEffect(() => {\n if (!textRef.current) return;\n\n const observer = new ResizeObserver(entries => {\n const exceedsHeight = entries.some(({ target, contentRect }) => {\n if (target !== textRef.current) return;\n\n return contentRect.height > maxTextHeight;\n });\n\n setExceedsMaxHeight(exceedsHeight);\n });\n\n observer.observe(textRef.current);\n\n return () => {\n observer.disconnect();\n };\n }, [textRef.current, maxTextHeight]);\n\n return (\n <>\n <ExpandCollapse\n collapsed={collapsed}\n min={exceedsMaxHeight ? `${maxTextHeight}px` : 'max-content'}\n >\n <Grid ref={textRef}>\n <span>{children}</span>\n </Grid>\n </ExpandCollapse>\n {exceedsMaxHeight && (\n <Button variant='link' onClick={() => setCollapsed(current => !current)}>\n {collapsed ? t('show_more') : t('show_less')}\n </Button>\n )}\n </>\n );\n};\n\nconst FieldValueList: FunctionComponent<FieldValueListProps & ForwardProps> = ({\n fields,\n variant = 'inline',\n ...restProps\n}: FieldValueListProps) => {\n const Wrapper = variant === 'inline' ? Fragment : 'div';\n\n return (\n <Grid\n {...restProps}\n container={{\n cols: variant === 'inline' ? '16ch minmax(0, 1fr)' : 'minmax(0, 1fr)',\n colGap: 2,\n rowGap: 1\n }}\n as={StyledFieldValueList}\n >\n {fields.map(({ id, name, value }) => {\n const diplayValue =\n typeof value === 'string' ? <DynamicHeightValue>{value}</DynamicHeightValue> : value;\n return (\n <Wrapper key={id ?? name}>\n <StyledLabel as={StyledFieldName}>{name}</StyledLabel>\n <StyledFieldValue>\n {value ? diplayValue : <span aria-hidden='true'>&ndash;&ndash;</span>}\n </StyledFieldValue>\n </Wrapper>\n );\n })}\n </Grid>\n );\n};\n\nexport default FieldValueList;\n"]}
1
+ {"version":3,"file":"FieldValueList.js","sourceRoot":"","sources":["../../../src/components/FieldValueList/FieldValueList.tsx"],"names":[],"mappings":";AAAA,OAAO,EAEL,QAAQ,EAER,QAAQ,EACR,eAAe,EACf,MAAM,EACN,OAAO,EAEP,UAAU,EACX,MAAM,OAAO,CAAC;AACf,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGhD,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,OA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,IAAI,uBAAuB;gBACzE,CAAC,CAAC,qBAAqB;gBACvB,CAAC,CAAC,gBAAgB;YACtB,MAAM,EAAE,OAAO,KAAK,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAC9C,MAAM,EAAE,OAAO,KAAK,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;SACjD,EACD,EAAE,EAAE,oBAAoB,EACxB,OAAO,EAAE,OAAO,YAEf,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,EAAE;YACzD,OAAO,CACL,KAAC,cAAc,IACb,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,KAAK,EACZ,OAAO,EACL,CAAC,YAAY,IAAI,OAAO,CAAC,KAAK,SAAS,IAAI,CAAC,uBAAuB;oBACjE,CAAC,CAAC,SAAS;oBACX,CAAC,CAAC,QAAQ,IAET,EAAE,IAAI,IAAI,CACf,CACH,CAAC;QACJ,CAAC,CAAC,GACG,CACR,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,cAAc,CAAC","sourcesContent":["import {\n ReactNode,\n Fragment,\n FunctionComponent,\n useState,\n useLayoutEffect,\n useRef,\n useMemo,\n Ref,\n forwardRef\n} from 'react';\nimport styled, { css } from 'styled-components';\n\nimport { BaseProps, ForwardProps, NoChildrenProp } from '../../types';\nimport Button from '../Button';\nimport ExpandCollapse from '../ExpandCollapse';\nimport Grid from '../Grid';\nimport { StyledLabel } from '../Label';\nimport { useBreakpoint, useConsolidatedRef, useI18n } from '../../hooks';\nimport { windowIsAvailable } from '../../utils';\nimport { defaultThemeProp } from '../../theme';\n\nexport type FieldValueVariant = 'inline' | 'stacked';\n\nexport interface FieldValueListItemProps {\n id?: string;\n name: string;\n value?: ReactNode;\n variant?: FieldValueVariant;\n}\n\nexport interface FieldValueListProps extends BaseProps, NoChildrenProp {\n /** The set of field values to render in the list. */\n fields: FieldValueListItemProps[];\n /**\n * Determines if the field and values should be displayed on the same line, or stacked with the field above the value.\n * @default \"inline\"\n */\n variant?: FieldValueVariant | 'value-comparison';\n}\n\nexport const StyledFieldName = styled.dt`\n word-break: break-word;\n`;\n\nexport const StyledFieldValue = styled.dd`\n word-break: break-word;\n`;\n\nexport type StyledFieldValueListProps = Pick<FieldValueListProps, 'variant'>;\n\nexport const StyledFieldValueList = styled.dl<StyledFieldValueListProps>(({ variant, theme }) => {\n return css`\n width: 100%;\n\n ${variant === 'value-comparison' &&\n css`\n dt {\n width: 100%;\n }\n dd {\n text-align: end;\n padding-inline-start: calc(2 * ${theme.base.spacing});\n }\n ${StyledLabel} {\n max-width: unset;\n }\n dd:not(:last-of-type),\n dt:not(:last-of-type) {\n border-bottom: 0.0625rem solid ${theme.base.palette['border-line']};\n padding-bottom: calc(0.5 * ${theme.base.spacing});\n }\n `}\n `;\n});\n\nStyledFieldValueList.defaultProps = defaultThemeProp;\n\nexport const StyledStackedFieldValue = styled.div``;\n\nconst DynamicHeightValue = ({ children }: { children: ReactNode }): JSX.Element => {\n const [collapsed, setCollapsed] = useState(true);\n const [exceedsMaxHeight, setExceedsMaxHeight] = useState(false);\n const textRef = useRef<HTMLDivElement>(null);\n const t = useI18n();\n\n const maxTextHeight = useMemo(() => {\n if (!windowIsAvailable) return Infinity;\n\n const computedLineHeight =\n Number.parseInt(\n window.getComputedStyle(document.documentElement).getPropertyValue('font-size'),\n 10\n ) * 1.25;\n\n return 3 * computedLineHeight;\n }, []);\n\n useLayoutEffect(() => {\n if (!textRef.current) return;\n\n const observer = new ResizeObserver(entries => {\n const exceedsHeight = entries.some(({ target, contentRect }) => {\n if (target !== textRef.current) return;\n\n return contentRect.height > maxTextHeight;\n });\n\n setExceedsMaxHeight(exceedsHeight);\n });\n\n observer.observe(textRef.current);\n\n return () => {\n observer.disconnect();\n };\n }, [textRef.current, maxTextHeight]);\n\n return (\n <>\n <ExpandCollapse\n collapsed={collapsed}\n min={exceedsMaxHeight ? `${maxTextHeight}px` : 'max-content'}\n >\n <div ref={textRef}>\n <span>{children}</span>\n </div>\n </ExpandCollapse>\n {exceedsMaxHeight && (\n <Button variant='link' onClick={() => setCollapsed(current => !current)}>\n {collapsed ? t('show_more') : t('show_less')}\n </Button>\n )}\n </>\n );\n};\n\nexport const FieldValueItem = ({ name, value, variant = 'inline' }: FieldValueListItemProps) => {\n const Wrapper = variant === 'stacked' ? StyledStackedFieldValue : Fragment;\n const displayValue =\n typeof value === 'string' ? <DynamicHeightValue>{value}</DynamicHeightValue> : value;\n\n return (\n <Wrapper>\n <StyledLabel as={StyledFieldName}>{name}</StyledLabel>\n <StyledFieldValue>\n {value ? displayValue : <span aria-hidden='true'>&ndash;&ndash;</span>}\n </StyledFieldValue>\n </Wrapper>\n );\n};\n\nconst FieldValueList: FunctionComponent<FieldValueListProps & ForwardProps> = forwardRef(\n (props: FieldValueListProps, ref: Ref<HTMLDivElement>) => {\n const { fields, variant = 'inline', ...restProps } = props;\n const fieldValueListRef = useConsolidatedRef<HTMLDivElement>(ref);\n const isXSContentWidthOrAbove = useBreakpoint('xs', {\n breakpointRef: fieldValueListRef,\n themeProp: 'content-width'\n });\n\n return (\n <Grid\n {...restProps}\n ref={fieldValueListRef}\n container={{\n cols:\n ['inline', 'value-comparison'].includes(variant) && isXSContentWidthOrAbove\n ? '16ch minmax(0, 1fr)'\n : 'minmax(0, 1fr)',\n colGap: variant !== 'value-comparison' ? 2 : 0,\n rowGap: variant !== 'value-comparison' ? 1 : 0.5\n }}\n as={StyledFieldValueList}\n variant={variant}\n >\n {fields.map(({ id, name, value, variant: fieldVariant }) => {\n return (\n <FieldValueItem\n name={name}\n value={value}\n variant={\n (fieldVariant ?? variant) === 'stacked' || !isXSContentWidthOrAbove\n ? 'stacked'\n : 'inline'\n }\n key={id ?? name}\n />\n );\n })}\n </Grid>\n );\n }\n);\n\nexport default FieldValueList;\n"]}
@@ -1,6 +1,4 @@
1
- export { default } from './FieldValueList';
2
- export { FieldValueListProps } from './FieldValueList';
3
- export { StyledFieldValueList } from './FieldValueList';
4
- export { StyledFieldName } from './FieldValueList';
5
- export { StyledFieldValue } from './FieldValueList';
1
+ export { default, FieldValueItem } from './FieldValueList';
2
+ export { FieldValueListProps, StyledFieldValueListProps } from './FieldValueList';
3
+ export { StyledFieldValueList, StyledFieldName, StyledFieldValue, StyledStackedFieldValue } from './FieldValueList';
6
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FieldValueList/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FieldValueList/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAClF,OAAO,EACL,oBAAoB,EACpB,eAAe,EACf,gBAAgB,EAChB,uBAAuB,EACxB,MAAM,kBAAkB,CAAC"}
@@ -1,5 +1,3 @@
1
- export { default } from './FieldValueList';
2
- export { StyledFieldValueList } from './FieldValueList';
3
- export { StyledFieldName } from './FieldValueList';
4
- export { StyledFieldValue } from './FieldValueList';
1
+ export { default, FieldValueItem } from './FieldValueList';
2
+ export { StyledFieldValueList, StyledFieldName, StyledFieldValue, StyledStackedFieldValue } from './FieldValueList';
5
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/FieldValueList/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC","sourcesContent":["export { default } from './FieldValueList';\nexport { FieldValueListProps } from './FieldValueList';\nexport { StyledFieldValueList } from './FieldValueList';\nexport { StyledFieldName } from './FieldValueList';\nexport { StyledFieldValue } from './FieldValueList';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/FieldValueList/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAE3D,OAAO,EACL,oBAAoB,EACpB,eAAe,EACf,gBAAgB,EAChB,uBAAuB,EACxB,MAAM,kBAAkB,CAAC","sourcesContent":["export { default, FieldValueItem } from './FieldValueList';\nexport { FieldValueListProps, StyledFieldValueListProps } from './FieldValueList';\nexport {\n StyledFieldValueList,\n StyledFieldName,\n StyledFieldValue,\n StyledStackedFieldValue\n} from './FieldValueList';\n"]}
@@ -1,10 +1,13 @@
1
1
  import { FC, Ref } from 'react';
2
2
  import { ForwardProps, BaseProps } from '../../types';
3
+ import { FileVisualProps } from './FileVisual';
3
4
  export interface FileItemProps extends BaseProps {
4
5
  /** Name of the file. */
5
6
  name: string;
6
7
  /** Url of the file. */
7
8
  url: string;
9
+ /** A string to be used as an image src for a attachment thumbnail. Falls back to a provided icon or the default attachment icon. */
10
+ thumbnail?: FileVisualProps['thumbnail'];
8
11
  /** When passed, it will make the icon/thumbnail region actionable. Passes file url as the parameter. */
9
12
  onPreview?: (url: FileItemProps['url']) => void;
10
13
  /** When passed, it will make the name region actionable. Passes file url as the parameter. */
@@ -1 +1 @@
1
- {"version":3,"file":"FileItem.d.ts","sourceRoot":"","sources":["../../../src/components/File/FileItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+B,EAAE,EAAE,GAAG,EAAe,MAAM,OAAO,CAAC;AAG1E,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAStD,MAAM,WAAW,aAAc,SAAQ,SAAS;IAC9C,wBAAwB;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,uBAAuB;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,wGAAwG;IACxG,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,aAAa,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC;IAChD,8FAA8F;IAC9F,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,aAAa,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC;IACjD,oCAAoC;IACpC,GAAG,CAAC,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAC;CAC9B;AAmCD,QAAA,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,GAAG,YAAY,CAiC9C,CAAC;AAEF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"FileItem.d.ts","sourceRoot":"","sources":["../../../src/components/File/FileItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+B,EAAE,EAAE,GAAG,EAAyB,MAAM,OAAO,CAAC;AAGpF,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAOtD,OAAmB,EAAE,eAAe,EAAoB,MAAM,cAAc,CAAC;AAE7E,MAAM,WAAW,aAAc,SAAQ,SAAS;IAC9C,wBAAwB;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,uBAAuB;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,oIAAoI;IACpI,SAAS,CAAC,EAAE,eAAe,CAAC,WAAW,CAAC,CAAC;IACzC,wGAAwG;IACxG,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,aAAa,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC;IAChD,8FAA8F;IAC9F,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,aAAa,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC;IACjD,oCAAoC;IACpC,GAAG,CAAC,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAC;CAC9B;AAmCD,QAAA,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,GAAG,YAAY,CAsC9C,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1,22 +1,23 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { forwardRef, useCallback } from 'react';
2
+ import { forwardRef, useCallback, useState } from 'react';
3
3
  import styled, { css } from 'styled-components';
4
4
  import { defaultThemeProp } from '../../theme';
5
5
  import Button, { StyledButton } from '../Button';
6
6
  import Grid from '../Grid';
7
- import { useDirection, useI18n } from '../../hooks';
7
+ import { useI18n } from '../../hooks';
8
8
  import { getKindFromMimeType, getMimeTypeFromFile } from './utils';
9
9
  import FileVisual, { StyledFileVisual } from './FileVisual';
10
- const StyledFileItem = styled.div(({ theme: { base } }) => {
11
- const { start, end } = useDirection();
10
+ const StyledFileItem = styled.div(({ theme: { base, components } }) => {
12
11
  return css `
13
12
  border-radius: calc(0.5 * ${base['border-radius']});
14
13
 
15
14
  > ${StyledFileVisual} {
16
- ${`border-top-${start}-radius`}: inherit;
17
- ${`border-bottom-${start}-radius`}: inherit;
18
- ${`border-top-${end}-radius`}: 0;
19
- ${`border-bottom-${end}-radius`}: 0;
15
+ border-start-start-radius: inherit;
16
+ border-end-start-radius: inherit;
17
+ border-start-end-radius: 0;
18
+ border-end-end-radius: 0;
19
+ height: ${components.input.height};
20
+ width: ${components.input.height};
20
21
  }
21
22
 
22
23
  > ${StyledFileVisual} + ${StyledButton} {
@@ -26,10 +27,10 @@ const StyledFileItem = styled.div(({ theme: { base } }) => {
26
27
  opacity: 1;
27
28
  padding: 0 ${base.spacing};
28
29
  border-inline-start: 0;
29
- ${`border-top-${start}-radius`}: 0;
30
- ${`border-bottom-${start}-radius`}: 0;
31
- ${`border-top-${end}-radius`}: inherit;
32
- ${`border-bottom-${end}-radius`}: inherit;
30
+ border-start-start-radius: 0;
31
+ border-end-start-radius: 0;
32
+ border-start-end-radius: inherit;
33
+ border-end-end-radius: inherit;
33
34
  white-space: nowrap;
34
35
  overflow: hidden;
35
36
  text-overflow: ellipsis;
@@ -38,14 +39,17 @@ const StyledFileItem = styled.div(({ theme: { base } }) => {
38
39
  });
39
40
  StyledFileItem.defaultProps = defaultThemeProp;
40
41
  const FileItem = forwardRef((props, ref) => {
41
- const { name, url, onPreview, onDownload, ...restProps } = props;
42
+ const { name, url, thumbnail, onPreview, onDownload, ...restProps } = props;
43
+ const [thumbnailError, setThumbnailError] = useState(false);
42
44
  const t = useI18n();
43
45
  const onDownloadClick = useCallback(() => {
44
46
  onDownload?.(url);
45
47
  }, [url, onDownload]);
46
48
  const type = getMimeTypeFromFile(url);
47
49
  const text = name || url;
48
- return (_jsxs(Grid, { as: StyledFileItem, container: { cols: 'auto 1fr' }, ref: ref, children: [_jsx(FileVisual, { type: getKindFromMimeType(type ?? ''), disabled: !onPreview, onClick: () => onPreview?.(url), "aria-label": `${t('preview')}: ${text}` }), _jsx(Button, { ...restProps, variant: 'text', disabled: !onDownload, onClick: onDownloadClick, "aria-label": `${t('download')}: ${text}`, children: text })] }));
50
+ return (_jsxs(Grid, { as: StyledFileItem, container: { cols: 'auto 1fr' }, ref: ref, children: [_jsx(FileVisual, { type: getKindFromMimeType(type ?? ''), thumbnail: thumbnailError ? undefined : thumbnail, onThumbnailError: () => {
51
+ setThumbnailError(true);
52
+ }, disabled: !onPreview, onClick: () => onPreview?.(url), "aria-label": `${t('preview')}: ${text}` }), _jsx(Button, { ...restProps, variant: 'text', disabled: !onDownload, onClick: onDownloadClick, "aria-label": `${t('download')}: ${text}`, children: text })] }));
49
53
  });
50
54
  export default FileItem;
51
55
  //# sourceMappingURL=FileItem.js.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GAAG,gBAAgB,CAAC;AAE/C,MAAM,QAAQ,GAAqC,UAAU,CAC3D,CAAC,KAAqC,EAAE,GAAyB,EAAE,EAAE;IACnE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,SAAS,EAAE,GAAG,KAAK,CAAC;IAEjE,MAAM,CAAC,GAAG,OAAO,EAAE,CAAC;IAEpB,MAAM,eAAe,GAAG,WAAW,CAAC,GAAG,EAAE;QACvC,UAAU,EAAE,CAAC,GAAG,CAAC,CAAC;IACpB,CAAC,EAAE,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,CAAC;IAEtB,MAAM,IAAI,GAAG,mBAAmB,CAAC,GAAG,CAAC,CAAC;IACtC,MAAM,IAAI,GAAG,IAAI,IAAI,GAAG,CAAC;IAEzB,OAAO,CACL,MAAC,IAAI,IAAC,EAAE,EAAE,cAAc,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,GAAG,EAAE,GAAG,aACjE,KAAC,UAAU,IACT,IAAI,EAAE,mBAAmB,CAAC,IAAI,IAAI,EAAE,CAAC,EACrC,QAAQ,EAAE,CAAC,SAAS,EACpB,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,EAAE,CAAC,GAAG,CAAC,gBACnB,GAAG,CAAC,CAAC,SAAS,CAAC,KAAK,IAAI,EAAE,GACtC,EACF,KAAC,MAAM,OACD,SAAS,EACb,OAAO,EAAC,MAAM,EACd,QAAQ,EAAE,CAAC,UAAU,EACrB,OAAO,EAAE,eAAe,gBACZ,GAAG,CAAC,CAAC,UAAU,CAAC,KAAK,IAAI,EAAE,YAEtC,IAAI,GACE,IACJ,CACR,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,QAAQ,CAAC","sourcesContent":["import { forwardRef, PropsWithoutRef, FC, Ref, useCallback } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport { ForwardProps, BaseProps } from '../../types';\nimport { defaultThemeProp } from '../../theme';\nimport Button, { StyledButton } from '../Button';\nimport Grid from '../Grid';\nimport { useDirection, useI18n } from '../../hooks';\n\nimport { getKindFromMimeType, getMimeTypeFromFile } from './utils';\nimport FileVisual, { StyledFileVisual } from './FileVisual';\n\nexport interface FileItemProps extends BaseProps {\n /** Name of the file. */\n name: string;\n /** Url of the file. */\n url: string;\n /** When passed, it will make the icon/thumbnail region actionable. Passes file url as the parameter. */\n onPreview?: (url: FileItemProps['url']) => void;\n /** When passed, it will make the name region actionable. Passes file url as the parameter. */\n onDownload?: (url: FileItemProps['url']) => void;\n /** Ref for the wrapping element. */\n ref?: Ref<HTMLButtonElement>;\n}\n\nconst StyledFileItem = styled.div(({ theme: { base } }) => {\n const { start, end } = useDirection();\n\n return css`\n border-radius: calc(0.5 * ${base['border-radius']});\n\n > ${StyledFileVisual} {\n ${`border-top-${start}-radius`}: inherit;\n ${`border-bottom-${start}-radius`}: inherit;\n ${`border-top-${end}-radius`}: 0;\n ${`border-bottom-${end}-radius`}: 0;\n }\n\n > ${StyledFileVisual} + ${StyledButton} {\n margin-inline-start: 0;\n border: 0.0625rem solid ${base.palette['border-line']};\n background-color: ${base.palette['primary-background']};\n opacity: 1;\n padding: 0 ${base.spacing};\n border-inline-start: 0;\n ${`border-top-${start}-radius`}: 0;\n ${`border-bottom-${start}-radius`}: 0;\n ${`border-top-${end}-radius`}: inherit;\n ${`border-bottom-${end}-radius`}: inherit;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n `;\n});\n\nStyledFileItem.defaultProps = defaultThemeProp;\n\nconst FileItem: FC<FileItemProps & ForwardProps> = forwardRef(\n (props: PropsWithoutRef<FileItemProps>, ref: FileItemProps['ref']) => {\n const { name, url, onPreview, onDownload, ...restProps } = props;\n\n const t = useI18n();\n\n const onDownloadClick = useCallback(() => {\n onDownload?.(url);\n }, [url, onDownload]);\n\n const type = getMimeTypeFromFile(url);\n const text = name || url;\n\n return (\n <Grid as={StyledFileItem} container={{ cols: 'auto 1fr' }} ref={ref}>\n <FileVisual\n type={getKindFromMimeType(type ?? '')}\n disabled={!onPreview}\n onClick={() => onPreview?.(url)}\n aria-label={`${t('preview')}: ${text}`}\n />\n <Button\n {...restProps}\n variant='text'\n disabled={!onDownload}\n onClick={onDownloadClick}\n aria-label={`${t('download')}: ${text}`}\n >\n {text}\n </Button>\n </Grid>\n );\n }\n);\n\nexport default FileItem;\n"]}
1
+ {"version":3,"file":"FileItem.js","sourceRoot":"","sources":["../../../src/components/File/FileItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAA4B,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACpF,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,MAAM,EAAE,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AACnE,OAAO,UAAU,EAAE,EAAmB,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAiB7E,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,EAAE;IACpE,OAAO,GAAG,CAAA;gCACoB,IAAI,CAAC,eAAe,CAAC;;QAE7C,gBAAgB;;;;;gBAKR,UAAU,CAAC,KAAK,CAAC,MAAM;eACxB,UAAU,CAAC,KAAK,CAAC,MAAM;;;QAG9B,gBAAgB,MAAM,YAAY;;gCAEV,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC;0BACjC,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC;;mBAEzC,IAAI,CAAC,OAAO;;;;;;;;;;GAU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,EAAE,CAAC,UAAU,EACrB,OAAO,EAAE,eAAe,gBACZ,GAAG,CAAC,CAAC,UAAU,CAAC,KAAK,IAAI,EAAE,YAEtC,IAAI,GACE,IACJ,CACR,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,QAAQ,CAAC","sourcesContent":["import { forwardRef, PropsWithoutRef, FC, Ref, useCallback, useState } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport { ForwardProps, BaseProps } from '../../types';\nimport { defaultThemeProp } from '../../theme';\nimport Button, { StyledButton } from '../Button';\nimport Grid from '../Grid';\nimport { useI18n } from '../../hooks';\n\nimport { getKindFromMimeType, getMimeTypeFromFile } from './utils';\nimport FileVisual, { FileVisualProps, StyledFileVisual } from './FileVisual';\n\nexport interface FileItemProps extends BaseProps {\n /** Name of the file. */\n name: string;\n /** Url of the file. */\n url: string;\n /** A string to be used as an image src for a attachment thumbnail. Falls back to a provided icon or the default attachment icon. */\n thumbnail?: FileVisualProps['thumbnail'];\n /** When passed, it will make the icon/thumbnail region actionable. Passes file url as the parameter. */\n onPreview?: (url: FileItemProps['url']) => void;\n /** When passed, it will make the name region actionable. Passes file url as the parameter. */\n onDownload?: (url: FileItemProps['url']) => void;\n /** Ref for the wrapping element. */\n ref?: Ref<HTMLButtonElement>;\n}\n\nconst StyledFileItem = styled.div(({ theme: { base, components } }) => {\n return css`\n border-radius: calc(0.5 * ${base['border-radius']});\n\n > ${StyledFileVisual} {\n border-start-start-radius: inherit;\n border-end-start-radius: inherit;\n border-start-end-radius: 0;\n border-end-end-radius: 0;\n height: ${components.input.height};\n width: ${components.input.height};\n }\n\n > ${StyledFileVisual} + ${StyledButton} {\n margin-inline-start: 0;\n border: 0.0625rem solid ${base.palette['border-line']};\n background-color: ${base.palette['primary-background']};\n opacity: 1;\n padding: 0 ${base.spacing};\n border-inline-start: 0;\n border-start-start-radius: 0;\n border-end-start-radius: 0;\n border-start-end-radius: inherit;\n border-end-end-radius: inherit;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n `;\n});\n\nStyledFileItem.defaultProps = defaultThemeProp;\n\nconst FileItem: FC<FileItemProps & ForwardProps> = forwardRef(\n (props: PropsWithoutRef<FileItemProps>, ref: FileItemProps['ref']) => {\n const { name, url, thumbnail, onPreview, onDownload, ...restProps } = props;\n\n const [thumbnailError, setThumbnailError] = useState(false);\n const t = useI18n();\n\n const onDownloadClick = useCallback(() => {\n onDownload?.(url);\n }, [url, onDownload]);\n\n const type = getMimeTypeFromFile(url);\n const text = name || url;\n\n return (\n <Grid as={StyledFileItem} container={{ cols: 'auto 1fr' }} ref={ref}>\n <FileVisual\n type={getKindFromMimeType(type ?? '')}\n thumbnail={thumbnailError ? undefined : thumbnail}\n onThumbnailError={() => {\n setThumbnailError(true);\n }}\n disabled={!onPreview}\n onClick={() => onPreview?.(url)}\n aria-label={`${t('preview')}: ${text}`}\n />\n <Button\n {...restProps}\n variant='text'\n disabled={!onDownload}\n onClick={onDownloadClick}\n aria-label={`${t('download')}: ${text}`}\n >\n {text}\n </Button>\n </Grid>\n );\n }\n);\n\nexport default FileItem;\n"]}
@@ -1,4 +1,4 @@
1
- export declare type AttachmentType = 'generic' | 'image' | 'video' | 'audio' | 'pdf' | 'archive' | 'text' | 'message' | 'link' | 'pdf' | 'database' | 'document' | 'spreadsheet' | 'presentation';
1
+ export declare type AttachmentType = 'generic' | 'image' | 'video' | 'audio' | 'pdf' | 'archive' | 'text' | 'message' | 'link' | 'database' | 'document' | 'spreadsheet' | 'presentation';
2
2
  /**
3
3
  * Returns approximately correct mime type for given file based upon the extension. Only few extensions are recognized.
4
4
  * @param fileName file name or url to discover the mime type from.
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/File/utils.ts"],"names":[],"mappings":"AAEA,oBAAY,cAAc,GACtB,SAAS,GACT,OAAO,GACP,OAAO,GACP,OAAO,GACP,KAAK,GACL,SAAS,GACT,MAAM,GACN,SAAS,GACT,MAAM,GACN,KAAK,GACL,UAAU,GACV,UAAU,GACV,aAAa,GACb,cAAc,CAAC;AAEnB;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,aAAc,MAAM,KAAG,MAAM,GAAG,SAG/D,CAAC;AAEF,eAAO,MAAM,mBAAmB,aAAc,MAAM,KAAG,cActD,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/File/utils.ts"],"names":[],"mappings":"AAEA,oBAAY,cAAc,GACtB,SAAS,GACT,OAAO,GACP,OAAO,GACP,OAAO,GACP,KAAK,GACL,SAAS,GACT,MAAM,GACN,SAAS,GACT,MAAM,GACN,UAAU,GACV,UAAU,GACV,aAAa,GACb,cAAc,CAAC;AAEnB;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,aAAc,MAAM,KAAG,MAAM,GAAG,SAG/D,CAAC;AAEF,eAAO,MAAM,mBAAmB,aAAc,MAAM,KAAG,cActD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/components/File/utils.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,kBAAkB,CAAC;AAkBzC;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,QAAgB,EAAsB,EAAE;IAC1E,MAAM,OAAO,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,IAAI,QAAQ,CAAC;IACtD,OAAQ,SAAoC,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;AACtE,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,QAAgB,EAAkB,EAAE;IACtE,IAAI,IAAI,GAAmB,SAAS,CAAC;IACrC,IAAI,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC;QAAE,IAAI,GAAG,OAAO,CAAC;IAClD,IAAI,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC;QAAE,IAAI,GAAG,OAAO,CAAC;IAClD,IAAI,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC;QAAE,IAAI,GAAG,OAAO,CAAC;IAClD,IAAI,QAAQ,CAAC,UAAU,CAAC,OAAO,CAAC;QAAE,IAAI,GAAG,MAAM,CAAC;IAChD,IAAI,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC;QAAE,IAAI,GAAG,SAAS,CAAC;IACtD,IAAI,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC;QAAE,IAAI,GAAG,KAAK,CAAC;IAC5C,IAAI,QAAQ,CAAC,KAAK,CAAC,iCAAiC,CAAC;QAAE,IAAI,GAAG,cAAc,CAAC;IAC7E,IAAI,QAAQ,CAAC,KAAK,CAAC,wBAAwB,CAAC;QAAE,IAAI,GAAG,aAAa,CAAC;IACnE,IAAI,QAAQ,CAAC,KAAK,CAAC,kBAAkB,CAAC;QAAE,IAAI,GAAG,UAAU,CAAC;IAC1D,IAAI,QAAQ,CAAC,KAAK,CAAC,iBAAiB,CAAC;QAAE,IAAI,GAAG,UAAU,CAAC;IACzD,IAAI,QAAQ,CAAC,KAAK,CAAC,YAAY,CAAC;QAAE,IAAI,GAAG,SAAS,CAAC;IACnD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC","sourcesContent":["import mimeTypes from './mimeTypes.json';\n\nexport type AttachmentType =\n | 'generic'\n | 'image'\n | 'video'\n | 'audio'\n | 'pdf'\n | 'archive'\n | 'text'\n | 'message'\n | 'link'\n | 'pdf'\n | 'database'\n | 'document'\n | 'spreadsheet'\n | 'presentation';\n\n/**\n * Returns approximately correct mime type for given file based upon the extension. Only few extensions are recognized.\n * @param fileName file name or url to discover the mime type from.\n * @returns mime type associated to the file.\n */\nexport const getMimeTypeFromFile = (fileName: string): string | undefined => {\n const fileExt = fileName.split('.').pop() ?? fileName;\n return (mimeTypes as Record<string, string>)[fileExt.toLowerCase()];\n};\n\nexport const getKindFromMimeType = (mimeType: string): AttachmentType => {\n let type: AttachmentType = 'generic';\n if (mimeType.startsWith('video/')) type = 'video';\n if (mimeType.startsWith('audio/')) type = 'audio';\n if (mimeType.startsWith('image/')) type = 'image';\n if (mimeType.startsWith('text/')) type = 'text';\n if (mimeType.startsWith('message/')) type = 'message';\n if (mimeType.endsWith('/pdf')) type = 'pdf';\n if (mimeType.match(/powerpoint|presentation|impress/)) type = 'presentation';\n if (mimeType.match(/excel|spreadsheet|calc/)) type = 'spreadsheet';\n if (mimeType.match(/word|writer|text/)) type = 'document';\n if (mimeType.match(/access|database/)) type = 'database';\n if (mimeType.match(/zip|rar|7z/)) type = 'archive';\n return type;\n};\n"]}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/components/File/utils.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,kBAAkB,CAAC;AAiBzC;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,QAAgB,EAAsB,EAAE;IAC1E,MAAM,OAAO,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,IAAI,QAAQ,CAAC;IACtD,OAAQ,SAAoC,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;AACtE,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,QAAgB,EAAkB,EAAE;IACtE,IAAI,IAAI,GAAmB,SAAS,CAAC;IACrC,IAAI,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC;QAAE,IAAI,GAAG,OAAO,CAAC;IAClD,IAAI,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC;QAAE,IAAI,GAAG,OAAO,CAAC;IAClD,IAAI,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC;QAAE,IAAI,GAAG,OAAO,CAAC;IAClD,IAAI,QAAQ,CAAC,UAAU,CAAC,OAAO,CAAC;QAAE,IAAI,GAAG,MAAM,CAAC;IAChD,IAAI,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC;QAAE,IAAI,GAAG,SAAS,CAAC;IACtD,IAAI,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC;QAAE,IAAI,GAAG,KAAK,CAAC;IAC5C,IAAI,QAAQ,CAAC,KAAK,CAAC,iCAAiC,CAAC;QAAE,IAAI,GAAG,cAAc,CAAC;IAC7E,IAAI,QAAQ,CAAC,KAAK,CAAC,wBAAwB,CAAC;QAAE,IAAI,GAAG,aAAa,CAAC;IACnE,IAAI,QAAQ,CAAC,KAAK,CAAC,kBAAkB,CAAC;QAAE,IAAI,GAAG,UAAU,CAAC;IAC1D,IAAI,QAAQ,CAAC,KAAK,CAAC,iBAAiB,CAAC;QAAE,IAAI,GAAG,UAAU,CAAC;IACzD,IAAI,QAAQ,CAAC,KAAK,CAAC,YAAY,CAAC;QAAE,IAAI,GAAG,SAAS,CAAC;IACnD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC","sourcesContent":["import mimeTypes from './mimeTypes.json';\n\nexport type AttachmentType =\n | 'generic'\n | 'image'\n | 'video'\n | 'audio'\n | 'pdf'\n | 'archive'\n | 'text'\n | 'message'\n | 'link'\n | 'database'\n | 'document'\n | 'spreadsheet'\n | 'presentation';\n\n/**\n * Returns approximately correct mime type for given file based upon the extension. Only few extensions are recognized.\n * @param fileName file name or url to discover the mime type from.\n * @returns mime type associated to the file.\n */\nexport const getMimeTypeFromFile = (fileName: string): string | undefined => {\n const fileExt = fileName.split('.').pop() ?? fileName;\n return (mimeTypes as Record<string, string>)[fileExt.toLowerCase()];\n};\n\nexport const getKindFromMimeType = (mimeType: string): AttachmentType => {\n let type: AttachmentType = 'generic';\n if (mimeType.startsWith('video/')) type = 'video';\n if (mimeType.startsWith('audio/')) type = 'audio';\n if (mimeType.startsWith('image/')) type = 'image';\n if (mimeType.startsWith('text/')) type = 'text';\n if (mimeType.startsWith('message/')) type = 'message';\n if (mimeType.endsWith('/pdf')) type = 'pdf';\n if (mimeType.match(/powerpoint|presentation|impress/)) type = 'presentation';\n if (mimeType.match(/excel|spreadsheet|calc/)) type = 'spreadsheet';\n if (mimeType.match(/word|writer|text/)) type = 'document';\n if (mimeType.match(/access|database/)) type = 'database';\n if (mimeType.match(/zip|rar|7z/)) type = 'archive';\n return type;\n};\n"]}
@@ -1,5 +1,5 @@
1
1
  import { FunctionComponent, Ref, ReactNode } from 'react';
2
- import { ForwardProps, BaseProps, AsProp } from '../../types';
2
+ import { ForwardProps, BaseProps, AsProp, RequireAtLeastOne } from '../../types';
3
3
  export interface FlexContainerProps {
4
4
  /** Display as inline-flex. */
5
5
  inline?: boolean;
@@ -46,27 +46,28 @@ export interface FlexItemProps {
46
46
  /** [flex-basis](https://css-tricks.com/almanac/properties/f/flex-basis/) */
47
47
  basis?: string;
48
48
  }
49
- interface BaseFlexProps {
49
+ export interface BaseFlexProps {
50
50
  container?: FlexContainerProps | true;
51
51
  item?: FlexItemProps;
52
52
  }
53
- export interface FlexProps extends BaseFlexProps, BaseProps, AsProp {
53
+ declare type BreakpointFlexProps = RequireAtLeastOne<BaseFlexProps, 'container' | 'item'>;
54
+ export declare type FlexProps = RequireAtLeastOne<BaseFlexProps & BaseProps & AsProp & {
54
55
  /** Content for either a container or item. */
55
56
  children?: ReactNode;
56
57
  /** Ref for the flex element. */
57
58
  ref?: Ref<Element>;
58
59
  /** Override props at extra small screen sizes and above. */
59
- xs?: BaseFlexProps;
60
+ xs?: BreakpointFlexProps;
60
61
  /** Override props at small screen sizes and above. */
61
- sm?: BaseFlexProps;
62
+ sm?: BreakpointFlexProps;
62
63
  /** Override props at medium screen sizes and above. */
63
- md?: BaseFlexProps;
64
+ md?: BreakpointFlexProps;
64
65
  /** Override props at large screen sizes and above. */
65
- lg?: BaseFlexProps;
66
+ lg?: BreakpointFlexProps;
66
67
  /** Override props at extra large screen sizes and above. */
67
- xl?: BaseFlexProps;
68
- }
69
- export declare const StyledFlex: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, FlexProps, never>;
68
+ xl?: BreakpointFlexProps;
69
+ }, 'container' | 'item' | 'xs' | 'sm' | 'md' | 'lg' | 'xl'>;
70
+ export declare const StyledFlex: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {} & FlexProps, never>;
70
71
  declare const Flex: FunctionComponent<FlexProps & ForwardProps>;
71
72
  export default Flex;
72
73
  //# sourceMappingURL=Flex.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Flex.d.ts","sourceRoot":"","sources":["../../../src/components/Flex/Flex.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAA+B,GAAG,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvF,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAG9D,MAAM,WAAW,kBAAkB;IACjC,8BAA8B;IAC9B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,yHAAyH;IACzH,GAAG,CAAC,EACA,MAAM,GACN,CAAC,kBAAkB,EAAE,MAAM,CAAC,GAC5B,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,CAAC,GACtC,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GAChD,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;IAC/D,oFAAoF;IACpF,SAAS,CAAC,EAAE,KAAK,GAAG,aAAa,GAAG,QAAQ,GAAG,gBAAgB,CAAC;IAChE,0FAA0F;IAC1F,OAAO,CAAC,EAAE,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;IACnF,0EAA0E;IAC1E,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,cAAc,CAAC;IAC1C,+EAA+E;IAC/E,UAAU,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,KAAK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T,IAAI,EACJ,KAAK,EAAE,EACL,IAAI,EAAE,EAAE,WAAW,EAAE,gBAAgB,EAAE,EACxC,EACD,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACH,EAAE,EAAE;IACH,MAAM,WAAW,GAAG;QAClB,EAAE;QACF,EAAE;QACF,EAAE;QACF,EAAE;QACF,EAAE;KACH,CAAC;IAEF,OAAO,GAAG,CAAA;QACN,kBAAkB,CAAC,SAAS,CAAC;QAC7B,aAAa,CAAC,IAAI,CAAC;;MAErB,eAAe,CAAC,GAAG,CACjB,UAAU,CAAC,EAAE,CACX,WAAW,CAAC,UAAU,CAAC;QACvB,GAAG,CAAA;4CAC+B,gBAAgB,CAAC,UAAU,CAAC;gBACxD,kBAAkB,CAAC,WAAW,CAAC,UAAU,CAAC,EAAE,SAAS,CAAC;gBACtD,aAAa,CAAC,WAAW,CAAC,UAAU,CAAC,EAAE,IAAI,CAAC;;WAEjD,CACJ;KACF,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,UAAU,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAE3C,MAAM,IAAI,GAAgD,UAAU,CAClE,CAAC,KAAiC,EAAE,GAAqB,EAAE,EAAE;IAC3D,OAAO,KAAC,UAAU,OAAK,KAAK,EAAE,GAAG,EAAE,GAAG,GAAI,CAAC;AAC7C,CAAC,CACF,CAAC;AAEF,eAAe,IAAI,CAAC","sourcesContent":["import { FunctionComponent, forwardRef, PropsWithoutRef, Ref, ReactNode } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport { ForwardProps, BaseProps, AsProp } from '../../types';\nimport { defaultThemeProp } from '../../theme';\n\nexport interface FlexContainerProps {\n /** Display as inline-flex. */\n inline?: boolean;\n /** Padding on the container represented as a multiplier or set of multipliers to the base spacing value in the theme. */\n pad?:\n | number\n | [topRightBottomLeft: number]\n | [topBottom: number, rightLeft: number]\n | [top: number, rightLeft: number, bottom: number]\n | [top: number, right: number, bottom: number, left: number];\n /** [flex-direction](https://css-tricks.com/almanac/properties/f/flex-direction/) */\n direction?: 'row' | 'row-reverse' | 'column' | 'column-reverse';\n /** [justify-content](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content) */\n justify?: 'start' | 'end' | 'center' | 'between' | 'around' | 'evenly' | 'stretch';\n /** [flex-wrap](https://css-tricks.com/almanac/properties/f/flex-wrap/) */\n wrap?: 'wrap' | 'nowrap' | 'wrap-reverse';\n /** [align-items](https://css-tricks.com/almanac/properties/a/align-items/). */\n alignItems?: 'stretch' | 'start' | 'end' | 'center' | 'baseline';\n /** [align-content](https://css-tricks.com/almanac/properties/a/align-content/) */\n alignContent?: 'start' | 'end' | 'center' | 'between' | 'around' | 'stretch';\n /**\n * Defines how much equal space to place between items represented as a multiplier to the base spacing value in the theme.\n * @deprecated\n */\n itemGap?: number;\n /**\n * Defines how much equal space to place between columns represented as a multiplier to the base spacing value in the theme.\n * [column-gap](https://css-tricks.com/almanac/properties/c/column-gap/)\n */\n colGap?: number;\n /**\n * Defines how much equal space to place between rows represented as a multiplier to the base spacing value in the theme.\n * [row-gap](https://css-tricks.com/almanac/properties/r/row-gap/)\n */\n rowGap?: number;\n /**\n * Defines how much equal space to place between both rows and columns represented as a multiplier to the base spacing value in the theme.\n * [gap](https://css-tricks.com/almanac/properties/g/gap/)\n */\n gap?: number;\n}\n\nexport interface FlexItemProps {\n /** [align-self](https://css-tricks.com/almanac/properties/a/align-self/) */\n alignSelf?: 'auto' | 'start' | 'end' | 'baseline' | 'center' | 'stretch';\n /** [flex-grow](https://css-tricks.com/almanac/properties/f/flex-grow/) */\n grow?: number;\n /** [flex-shrink](https://css-tricks.com/almanac/properties/f/flex-shrink/) */\n shrink?: number;\n /** [flex-basis](https://css-tricks.com/almanac/properties/f/flex-basis/) */\n basis?: string;\n}\n\ninterface BaseFlexProps {\n container?: FlexContainerProps | true;\n item?: FlexItemProps;\n}\n\nexport interface FlexProps extends BaseFlexProps, BaseProps, AsProp {\n /** Content for either a container or item. */\n children?: ReactNode;\n /** Ref for the flex element. */\n ref?: Ref<Element>;\n /** Override props at extra small screen sizes and above. */\n xs?: BaseFlexProps;\n /** Override props at small screen sizes and above. */\n sm?: BaseFlexProps;\n /** Override props at medium screen sizes and above. */\n md?: BaseFlexProps;\n /** Override props at large screen sizes and above. */\n lg?: BaseFlexProps;\n /** Override props at extra large screen sizes and above. */\n xl?: BaseFlexProps;\n}\n\nconst prefix = (value: string) => {\n if (['between', 'around', 'evenly'].includes(value)) return `space-${value}`;\n if (['start', 'end'].includes(value)) return `flex-${value}`;\n return value;\n};\n\nconst getContainerStyles = (container: FlexProps['container']) => {\n if (!container) return '';\n\n if (container === true) {\n return css`\n display: flex;\n `;\n }\n\n if (container && typeof container === 'object') {\n const isRow = !container.direction || container.direction.includes('row');\n const isReverse = container.direction && container.direction.includes('reverse');\n\n return css`\n display: ${container.inline ? 'inline-flex' : 'flex'};\n\n ${container.pad !== undefined &&\n css`\n /* stylelint-disable function-name-case, function-whitespace-after */\n padding: ${({\n theme: {\n base: { spacing }\n }\n }) =>\n (Array.isArray(container.pad) ? container.pad : [container.pad])\n .map(p => `calc(${p} * ${spacing})`)\n .join(' ')};\n\n /* stylelint-enable function-name-case, function-whitespace-after */\n `}\n\n ${container.direction &&\n css`\n flex-direction: ${container.direction};\n `}\n\n ${container.justify &&\n css`\n justify-content: ${prefix(container.justify)};\n `}\n\n ${container.wrap &&\n css`\n flex-wrap: ${container.wrap};\n `}\n\n ${container.alignItems &&\n css`\n align-items: ${prefix(container.alignItems)};\n `}\n\n ${container.alignContent &&\n css`\n align-content: ${prefix(container.alignContent)};\n `}\n\n ${container.itemGap &&\n css`\n > * {\n margin-${isRow ? 'inline-start' : 'block-start'}: calc(${container.itemGap} * ${props =>\n props.theme.base.spacing});\n ${isReverse ? ':last-child' : ':first-child'} {\n margin-${isRow ? 'inline-start' : 'block-start'}: 0;\n }\n }\n `}\n\n ${container.gap !== undefined &&\n css`\n gap: calc(${container.gap} * ${props => props.theme.base.spacing});\n `}\n\n ${container.colGap !== undefined &&\n css`\n column-gap: calc(${container.colGap} * ${props => props.theme.base.spacing});\n `}\n\n ${container.rowGap !== undefined &&\n css`\n row-gap: calc(${container.rowGap} * ${props => props.theme.base.spacing});\n `}\n `;\n }\n};\n\nconst getItemStyles = (item: FlexProps['item']) => {\n return css`\n ${item &&\n css`\n max-width: 100%;\n min-width: 0;\n\n ${item.grow !== undefined &&\n css`\n flex-grow: ${item.grow};\n `}\n\n ${item.shrink !== undefined &&\n css`\n flex-shrink: ${item.shrink};\n `}\n\n ${item.alignSelf &&\n css`\n align-self: ${prefix(item.alignSelf)};\n `}\n\n ${item.basis &&\n css`\n flex-basis: ${item.basis};\n `}\n `}\n `;\n};\n\nconst breakpointOrder = ['xs', 'sm', 'md', 'lg', 'xl'] as const;\n\nexport const StyledFlex = styled.div<FlexProps>(\n ({\n container,\n item,\n theme: {\n base: { breakpoints: themeBreakpoints }\n },\n xs,\n sm,\n md,\n lg,\n xl\n }) => {\n const breakpoints = {\n xs,\n sm,\n md,\n lg,\n xl\n };\n\n return css`\n ${getContainerStyles(container)}\n ${getItemStyles(item)}\n\n ${breakpointOrder.map(\n breakpoint =>\n breakpoints[breakpoint] &&\n css`\n @media screen and (min-width: ${themeBreakpoints[breakpoint]}) {\n ${getContainerStyles(breakpoints[breakpoint]?.container)}\n ${getItemStyles(breakpoints[breakpoint]?.item)}\n }\n `\n )}\n `;\n }\n);\n\nStyledFlex.defaultProps = defaultThemeProp;\n\nconst Flex: FunctionComponent<FlexProps & ForwardProps> = forwardRef(\n (props: PropsWithoutRef<FlexProps>, ref: FlexProps['ref']) => {\n return <StyledFlex {...props} ref={ref} />;\n }\n);\n\nexport default Flex;\n"]}
1
+ {"version":3,"file":"Flex.js","sourceRoot":"","sources":["../../../src/components/Flex/Flex.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAqB,UAAU,EAAmC,MAAM,OAAO,CAAC;AACvF,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,m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G,CAAA;4CAC+B,gBAAgB,CAAC,UAAU,CAAC;gBACxD,kBAAkB,CAAC,WAAW,CAAC,UAAU,CAAC,EAAE,SAAS,CAAC;gBACtD,aAAa,CAAC,WAAW,CAAC,UAAU,CAAC,EAAE,IAAI,CAAC;;WAEjD,CACJ;KACF,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,UAAU,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAE3C,MAAM,IAAI,GAAgD,UAAU,CAClE,CAAC,KAAiC,EAAE,GAAqB,EAAE,EAAE;IAC3D,OAAO,KAAC,UAAU,OAAK,KAAK,EAAE,GAAG,EAAE,GAAG,GAAI,CAAC;AAC7C,CAAC,CACF,CAAC;AAEF,eAAe,IAAI,CAAC","sourcesContent":["import { FunctionComponent, forwardRef, PropsWithoutRef, Ref, ReactNode } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport { ForwardProps, BaseProps, AsProp, RequireAtLeastOne } from '../../types';\nimport { defaultThemeProp } from '../../theme';\n\nexport interface FlexContainerProps {\n /** Display as inline-flex. */\n inline?: boolean;\n /** Padding on the container represented as a multiplier or set of multipliers to the base spacing value in the theme. */\n pad?:\n | number\n | [topRightBottomLeft: number]\n | [topBottom: number, rightLeft: number]\n | [top: number, rightLeft: number, bottom: number]\n | [top: number, right: number, bottom: number, left: number];\n /** [flex-direction](https://css-tricks.com/almanac/properties/f/flex-direction/) */\n direction?: 'row' | 'row-reverse' | 'column' | 'column-reverse';\n /** [justify-content](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content) */\n justify?: 'start' | 'end' | 'center' | 'between' | 'around' | 'evenly' | 'stretch';\n /** [flex-wrap](https://css-tricks.com/almanac/properties/f/flex-wrap/) */\n wrap?: 'wrap' | 'nowrap' | 'wrap-reverse';\n /** [align-items](https://css-tricks.com/almanac/properties/a/align-items/). */\n alignItems?: 'stretch' | 'start' | 'end' | 'center' | 'baseline';\n /** [align-content](https://css-tricks.com/almanac/properties/a/align-content/) */\n alignContent?: 'start' | 'end' | 'center' | 'between' | 'around' | 'stretch';\n /**\n * Defines how much equal space to place between items represented as a multiplier to the base spacing value in the theme.\n * @deprecated\n */\n itemGap?: number;\n /**\n * Defines how much equal space to place between columns represented as a multiplier to the base spacing value in the theme.\n * [column-gap](https://css-tricks.com/almanac/properties/c/column-gap/)\n */\n colGap?: number;\n /**\n * Defines how much equal space to place between rows represented as a multiplier to the base spacing value in the theme.\n * [row-gap](https://css-tricks.com/almanac/properties/r/row-gap/)\n */\n rowGap?: number;\n /**\n * Defines how much equal space to place between both rows and columns represented as a multiplier to the base spacing value in the theme.\n * [gap](https://css-tricks.com/almanac/properties/g/gap/)\n */\n gap?: number;\n}\n\nexport interface FlexItemProps {\n /** [align-self](https://css-tricks.com/almanac/properties/a/align-self/) */\n alignSelf?: 'auto' | 'start' | 'end' | 'baseline' | 'center' | 'stretch';\n /** [flex-grow](https://css-tricks.com/almanac/properties/f/flex-grow/) */\n grow?: number;\n /** [flex-shrink](https://css-tricks.com/almanac/properties/f/flex-shrink/) */\n shrink?: number;\n /** [flex-basis](https://css-tricks.com/almanac/properties/f/flex-basis/) */\n basis?: string;\n}\n\nexport interface BaseFlexProps {\n container?: FlexContainerProps | true;\n item?: FlexItemProps;\n}\n\ntype BreakpointFlexProps = RequireAtLeastOne<BaseFlexProps, 'container' | 'item'>;\n\nexport type FlexProps = RequireAtLeastOne<\n BaseFlexProps &\n BaseProps &\n AsProp & {\n /** Content for either a container or item. */\n children?: ReactNode;\n /** Ref for the flex element. */\n ref?: Ref<Element>;\n /** Override props at extra small screen sizes and above. */\n xs?: BreakpointFlexProps;\n /** Override props at small screen sizes and above. */\n sm?: BreakpointFlexProps;\n /** Override props at medium screen sizes and above. */\n md?: BreakpointFlexProps;\n /** Override props at large screen sizes and above. */\n lg?: BreakpointFlexProps;\n /** Override props at extra large screen sizes and above. */\n xl?: BreakpointFlexProps;\n },\n 'container' | 'item' | 'xs' | 'sm' | 'md' | 'lg' | 'xl'\n>;\n\nconst prefix = (value: string) => {\n if (['between', 'around', 'evenly'].includes(value)) return `space-${value}`;\n if (['start', 'end'].includes(value)) return `flex-${value}`;\n return value;\n};\n\nconst getContainerStyles = (container: FlexProps['container']) => {\n if (!container) return '';\n\n if (container === true) {\n return css`\n display: flex;\n `;\n }\n\n if (container && typeof container === 'object') {\n const isRow = !container.direction || container.direction.includes('row');\n const isReverse = container.direction && container.direction.includes('reverse');\n\n return css`\n display: ${container.inline ? 'inline-flex' : 'flex'};\n\n ${container.pad !== undefined &&\n css`\n /* stylelint-disable function-name-case, function-whitespace-after */\n padding: ${({\n theme: {\n base: { spacing }\n }\n }) =>\n (Array.isArray(container.pad) ? container.pad : [container.pad])\n .map(p => `calc(${p} * ${spacing})`)\n .join(' ')};\n\n /* stylelint-enable function-name-case, function-whitespace-after */\n `}\n\n ${container.direction &&\n css`\n flex-direction: ${container.direction};\n `}\n\n ${container.justify &&\n css`\n justify-content: ${prefix(container.justify)};\n `}\n\n ${container.wrap &&\n css`\n flex-wrap: ${container.wrap};\n `}\n\n ${container.alignItems &&\n css`\n align-items: ${prefix(container.alignItems)};\n `}\n\n ${container.alignContent &&\n css`\n align-content: ${prefix(container.alignContent)};\n `}\n\n ${container.itemGap &&\n css`\n > * {\n margin-${isRow ? 'inline-start' : 'block-start'}: calc(${container.itemGap} * ${props =>\n props.theme.base.spacing});\n ${isReverse ? ':last-child' : ':first-child'} {\n margin-${isRow ? 'inline-start' : 'block-start'}: 0;\n }\n }\n `}\n\n ${container.gap !== undefined &&\n css`\n gap: calc(${container.gap} * ${props => props.theme.base.spacing});\n `}\n\n ${container.colGap !== undefined &&\n css`\n column-gap: calc(${container.colGap} * ${props => props.theme.base.spacing});\n `}\n\n ${container.rowGap !== undefined &&\n css`\n row-gap: calc(${container.rowGap} * ${props => props.theme.base.spacing});\n `}\n `;\n }\n};\n\nconst getItemStyles = (item: FlexProps['item']) => {\n return css`\n ${item &&\n css`\n max-width: 100%;\n min-width: 0;\n\n ${item.grow !== undefined &&\n css`\n flex-grow: ${item.grow};\n `}\n\n ${item.shrink !== undefined &&\n css`\n flex-shrink: ${item.shrink};\n `}\n\n ${item.alignSelf &&\n css`\n align-self: ${prefix(item.alignSelf)};\n `}\n\n ${item.basis &&\n css`\n flex-basis: ${item.basis};\n `}\n `}\n `;\n};\n\nconst breakpointOrder = ['xs', 'sm', 'md', 'lg', 'xl'] as const;\n\nexport const StyledFlex = styled.div<FlexProps>(\n ({\n container,\n item,\n theme: {\n base: { breakpoints: themeBreakpoints }\n },\n xs,\n sm,\n md,\n lg,\n xl\n }) => {\n const breakpoints = {\n xs,\n sm,\n md,\n lg,\n xl\n };\n\n return css`\n ${getContainerStyles(container)}\n ${getItemStyles(item)}\n\n ${breakpointOrder.map(\n breakpoint =>\n breakpoints[breakpoint] &&\n css`\n @media screen and (min-width: ${themeBreakpoints[breakpoint]}) {\n ${getContainerStyles(breakpoints[breakpoint]?.container)}\n ${getItemStyles(breakpoints[breakpoint]?.item)}\n }\n `\n )}\n `;\n }\n);\n\nStyledFlex.defaultProps = defaultThemeProp;\n\nconst Flex: FunctionComponent<FlexProps & ForwardProps> = forwardRef(\n (props: PropsWithoutRef<FlexProps>, ref: FlexProps['ref']) => {\n return <StyledFlex {...props} ref={ref} />;\n }\n);\n\nexport default Flex;\n"]}
@@ -1,21 +1,10 @@
1
- import { FC, ReactNode, Ref } from 'react';
2
- import { BaseProps, ForwardProps } from '../../types';
3
- export interface FormProps extends BaseProps {
1
+ import { FC } from 'react';
2
+ import { ForwardProps, OmitStrict } from '../../types';
3
+ import { type BaseFormProps } from '../MultiStepForm/MultiStepForm.types';
4
+ export interface FormProps extends OmitStrict<BaseFormProps, 'content'> {
4
5
  /** The Form content. Recommended composing form elements within a layout template such as Grid or Flex as the only child. */
5
- children: ReactNode;
6
- /** Region for Form Actions. */
7
- actions?: ReactNode;
8
- /** The heading of the form. */
9
- heading?: string;
10
- /** A description of the form to be displayed above the controls. */
11
- description?: string;
12
- /** Region for Banners above the Form. */
13
- banners?: ReactNode;
14
- /** Ref forwarded to the wrapping element. */
15
- ref?: Ref<HTMLFormElement>;
6
+ children: BaseFormProps['content'];
16
7
  }
17
- export declare const StyledForm: import("styled-components").StyledComponent<"form", import("styled-components").DefaultTheme, {}, never>;
18
- export declare const StyledFormContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
19
8
  declare const Form: FC<FormProps & ForwardProps>;
20
9
  export default Form;
21
10
  //# sourceMappingURL=Form.d.ts.map