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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (971) 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 +16 -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 +89 -218
  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 +48 -527
  26. package/lib/components/AppShell/AppShell.styles.js.map +1 -1
  27. package/lib/components/AppShell/AppShell.types.d.ts +27 -21
  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 +3 -1
  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 +157 -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 +4 -2
  85. package/lib/components/Badges/Selection.js.map +1 -1
  86. package/lib/components/Banner/Banner.d.ts.map +1 -1
  87. package/lib/components/Banner/Banner.js +8 -2
  88. package/lib/components/Banner/Banner.js.map +1 -1
  89. package/lib/components/Boolean/BooleanDisplay.d.ts.map +1 -1
  90. package/lib/components/Boolean/BooleanDisplay.js +4 -12
  91. package/lib/components/Boolean/BooleanDisplay.js.map +1 -1
  92. package/lib/components/Breadcrumbs/Breadcrumbs.d.ts +2 -1
  93. package/lib/components/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  94. package/lib/components/Breadcrumbs/Breadcrumbs.js +44 -13
  95. package/lib/components/Breadcrumbs/Breadcrumbs.js.map +1 -1
  96. package/lib/components/Button/BareRoleButton.d.ts.map +1 -1
  97. package/lib/components/Button/BareRoleButton.js +3 -1
  98. package/lib/components/Button/BareRoleButton.js.map +1 -1
  99. package/lib/components/Checkbox/Checkbox.d.ts +3 -1
  100. package/lib/components/Checkbox/Checkbox.d.ts.map +1 -1
  101. package/lib/components/Checkbox/Checkbox.js.map +1 -1
  102. package/lib/components/ColorPicker/ColorPicker.d.ts +2 -0
  103. package/lib/components/ColorPicker/ColorPicker.d.ts.map +1 -1
  104. package/lib/components/ColorPicker/ColorPicker.js +1 -1
  105. package/lib/components/ColorPicker/ColorPicker.js.map +1 -1
  106. package/lib/components/ComboBox/ComboBox.d.ts.map +1 -1
  107. package/lib/components/ComboBox/ComboBox.js +68 -13
  108. package/lib/components/ComboBox/ComboBox.js.map +1 -1
  109. package/lib/components/ComboBox/ComboBox.styles.d.ts +3 -1
  110. package/lib/components/ComboBox/ComboBox.styles.d.ts.map +1 -1
  111. package/lib/components/ComboBox/ComboBox.types.d.ts +11 -1
  112. package/lib/components/ComboBox/ComboBox.types.d.ts.map +1 -1
  113. package/lib/components/ComboBox/ComboBox.types.js.map +1 -1
  114. package/lib/components/ComboBox/ComboBoxInput.d.ts +7 -0
  115. package/lib/components/ComboBox/ComboBoxInput.d.ts.map +1 -1
  116. package/lib/components/ComboBox/ComboBoxInput.js +5 -2
  117. package/lib/components/ComboBox/ComboBoxInput.js.map +1 -1
  118. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.d.ts.map +1 -1
  119. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.js +116 -31
  120. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.js.map +1 -1
  121. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.types.d.ts +10 -0
  122. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.types.d.ts.map +1 -1
  123. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.types.js.map +1 -1
  124. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.d.ts.map +1 -1
  125. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.js +2 -2
  126. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.js.map +1 -1
  127. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.types.d.ts +2 -0
  128. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.types.d.ts.map +1 -1
  129. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.types.js.map +1 -1
  130. package/lib/components/CompositeInput/CompositeInput.d.ts +5 -0
  131. package/lib/components/CompositeInput/CompositeInput.d.ts.map +1 -0
  132. package/lib/components/CompositeInput/CompositeInput.js +62 -0
  133. package/lib/components/CompositeInput/CompositeInput.js.map +1 -0
  134. package/lib/components/CompositeInput/CompositeInput.styles.d.ts +5 -0
  135. package/lib/components/CompositeInput/CompositeInput.styles.d.ts.map +1 -0
  136. package/lib/components/CompositeInput/CompositeInput.styles.js +57 -0
  137. package/lib/components/CompositeInput/CompositeInput.styles.js.map +1 -0
  138. package/lib/components/CompositeInput/CompositeInput.types.d.ts +52 -0
  139. package/lib/components/CompositeInput/CompositeInput.types.d.ts.map +1 -0
  140. package/lib/components/CompositeInput/CompositeInput.types.js +2 -0
  141. package/lib/components/CompositeInput/CompositeInput.types.js.map +1 -0
  142. package/lib/components/CompositeInput/index.d.ts +3 -0
  143. package/lib/components/CompositeInput/index.d.ts.map +1 -0
  144. package/lib/components/CompositeInput/index.js +2 -0
  145. package/lib/components/CompositeInput/index.js.map +1 -0
  146. package/lib/components/Configuration/Configuration.d.ts +14 -13
  147. package/lib/components/Configuration/Configuration.d.ts.map +1 -1
  148. package/lib/components/Configuration/Configuration.js +25 -14
  149. package/lib/components/Configuration/Configuration.js.map +1 -1
  150. package/lib/components/Configuration/index.d.ts +0 -1
  151. package/lib/components/Configuration/index.d.ts.map +1 -1
  152. package/lib/components/Configuration/index.js +0 -1
  153. package/lib/components/Configuration/index.js.map +1 -1
  154. package/lib/components/CreditCard/CreditCard.types.d.ts +2 -0
  155. package/lib/components/CreditCard/CreditCard.types.d.ts.map +1 -1
  156. package/lib/components/CreditCard/CreditCard.types.js.map +1 -1
  157. package/lib/components/Currency/CurrencyDisplay.d.ts.map +1 -1
  158. package/lib/components/Currency/CurrencyDisplay.js +2 -2
  159. package/lib/components/Currency/CurrencyDisplay.js.map +1 -1
  160. package/lib/components/Currency/CurrencyInput.d.ts.map +1 -1
  161. package/lib/components/Currency/CurrencyInput.js +92 -26
  162. package/lib/components/Currency/CurrencyInput.js.map +1 -1
  163. package/lib/components/Currency/CurrencyInput.types.d.ts +9 -1
  164. package/lib/components/Currency/CurrencyInput.types.d.ts.map +1 -1
  165. package/lib/components/Currency/CurrencyInput.types.js.map +1 -1
  166. package/lib/components/Currency/utils.d.ts +7 -17
  167. package/lib/components/Currency/utils.d.ts.map +1 -1
  168. package/lib/components/Currency/utils.js +50 -51
  169. package/lib/components/Currency/utils.js.map +1 -1
  170. package/lib/components/DateTime/DateTime.types.d.ts +15 -9
  171. package/lib/components/DateTime/DateTime.types.d.ts.map +1 -1
  172. package/lib/components/DateTime/DateTime.types.js.map +1 -1
  173. package/lib/components/DateTime/DurationDisplay.js +3 -3
  174. package/lib/components/DateTime/DurationDisplay.js.map +1 -1
  175. package/lib/components/DateTime/Input/DateInput.d.ts +9 -2
  176. package/lib/components/DateTime/Input/DateInput.d.ts.map +1 -1
  177. package/lib/components/DateTime/Input/DateInput.js +27 -15
  178. package/lib/components/DateTime/Input/DateInput.js.map +1 -1
  179. package/lib/components/DateTime/Input/DateRangeInput.d.ts +18 -23
  180. package/lib/components/DateTime/Input/DateRangeInput.d.ts.map +1 -1
  181. package/lib/components/DateTime/Input/DateRangeInput.js +98 -83
  182. package/lib/components/DateTime/Input/DateRangeInput.js.map +1 -1
  183. package/lib/components/DateTime/Input/DateTimeInput.d.ts +3 -0
  184. package/lib/components/DateTime/Input/DateTimeInput.d.ts.map +1 -1
  185. package/lib/components/DateTime/Input/DateTimeInput.js +28 -12
  186. package/lib/components/DateTime/Input/DateTimeInput.js.map +1 -1
  187. package/lib/components/DateTime/Input/DayOfWeekInput.d.ts +2 -0
  188. package/lib/components/DateTime/Input/DayOfWeekInput.d.ts.map +1 -1
  189. package/lib/components/DateTime/Input/DayOfWeekInput.js.map +1 -1
  190. package/lib/components/DateTime/Input/Duration/DurationInput.d.ts.map +1 -1
  191. package/lib/components/DateTime/Input/Duration/DurationInput.js +10 -2
  192. package/lib/components/DateTime/Input/Duration/DurationInput.js.map +1 -1
  193. package/lib/components/DateTime/Input/Duration/DurationInput.types.d.ts +2 -0
  194. package/lib/components/DateTime/Input/Duration/DurationInput.types.d.ts.map +1 -1
  195. package/lib/components/DateTime/Input/Duration/DurationInput.types.js.map +1 -1
  196. package/lib/components/DateTime/Input/Duration/NumberUnit.d.ts.map +1 -1
  197. package/lib/components/DateTime/Input/Duration/NumberUnit.js +30 -33
  198. package/lib/components/DateTime/Input/Duration/NumberUnit.js.map +1 -1
  199. package/lib/components/DateTime/Input/Duration/Time.d.ts.map +1 -1
  200. package/lib/components/DateTime/Input/Duration/Time.js +5 -4
  201. package/lib/components/DateTime/Input/Duration/Time.js.map +1 -1
  202. package/lib/components/DateTime/Input/MonthInput.d.ts +3 -0
  203. package/lib/components/DateTime/Input/MonthInput.d.ts.map +1 -1
  204. package/lib/components/DateTime/Input/MonthInput.js +23 -26
  205. package/lib/components/DateTime/Input/MonthInput.js.map +1 -1
  206. package/lib/components/DateTime/Input/QuarterInput.d.ts +3 -0
  207. package/lib/components/DateTime/Input/QuarterInput.d.ts.map +1 -1
  208. package/lib/components/DateTime/Input/QuarterInput.js +24 -25
  209. package/lib/components/DateTime/Input/QuarterInput.js.map +1 -1
  210. package/lib/components/DateTime/Input/TimeInput.d.ts +3 -0
  211. package/lib/components/DateTime/Input/TimeInput.d.ts.map +1 -1
  212. package/lib/components/DateTime/Input/TimeInput.js +21 -9
  213. package/lib/components/DateTime/Input/TimeInput.js.map +1 -1
  214. package/lib/components/DateTime/Input/TimeRangeInput.d.ts +46 -0
  215. package/lib/components/DateTime/Input/TimeRangeInput.d.ts.map +1 -0
  216. package/lib/components/DateTime/Input/TimeRangeInput.js +74 -0
  217. package/lib/components/DateTime/Input/TimeRangeInput.js.map +1 -0
  218. package/lib/components/DateTime/Input/WeekInput.d.ts +3 -2
  219. package/lib/components/DateTime/Input/WeekInput.d.ts.map +1 -1
  220. package/lib/components/DateTime/Input/WeekInput.js +12 -7
  221. package/lib/components/DateTime/Input/WeekInput.js.map +1 -1
  222. package/lib/components/DateTime/Input/usePickerButton.d.ts +1 -1
  223. package/lib/components/DateTime/Input/usePickerButton.d.ts.map +1 -1
  224. package/lib/components/DateTime/Input/utils.d.ts +6 -6
  225. package/lib/components/DateTime/Input/utils.d.ts.map +1 -1
  226. package/lib/components/DateTime/Input/utils.js +2 -1
  227. package/lib/components/DateTime/Input/utils.js.map +1 -1
  228. package/lib/components/DateTime/Picker/Calendar.d.ts.map +1 -1
  229. package/lib/components/DateTime/Picker/Calendar.js +20 -16
  230. package/lib/components/DateTime/Picker/Calendar.js.map +1 -1
  231. package/lib/components/DateTime/Picker/Calendar.styles.d.ts +2 -4
  232. package/lib/components/DateTime/Picker/Calendar.styles.d.ts.map +1 -1
  233. package/lib/components/DateTime/Picker/Calendar.styles.js +13 -55
  234. package/lib/components/DateTime/Picker/Calendar.styles.js.map +1 -1
  235. package/lib/components/DateTime/Picker/DatePicker.d.ts.map +1 -1
  236. package/lib/components/DateTime/Picker/DatePicker.js +2 -1
  237. package/lib/components/DateTime/Picker/DatePicker.js.map +1 -1
  238. package/lib/components/DateTime/Picker/DatePicker.styles.d.ts +3 -0
  239. package/lib/components/DateTime/Picker/DatePicker.styles.d.ts.map +1 -0
  240. package/lib/components/DateTime/Picker/DatePicker.styles.js +39 -0
  241. package/lib/components/DateTime/Picker/DatePicker.styles.js.map +1 -0
  242. package/lib/components/DateTime/Picker/DateRangePicker.js +1 -1
  243. package/lib/components/DateTime/Picker/DateRangePicker.js.map +1 -1
  244. package/lib/components/DateTime/Picker/TimePicker.d.ts +1 -1
  245. package/lib/components/DateTime/Picker/TimePicker.d.ts.map +1 -1
  246. package/lib/components/DateTime/Picker/TimePicker.js +10 -5
  247. package/lib/components/DateTime/Picker/TimePicker.js.map +1 -1
  248. package/lib/components/DateTime/Picker/Weeks.d.ts.map +1 -1
  249. package/lib/components/DateTime/Picker/Weeks.js +14 -6
  250. package/lib/components/DateTime/Picker/Weeks.js.map +1 -1
  251. package/lib/components/DateTime/Picker/utils.d.ts +1 -1
  252. package/lib/components/DateTime/Picker/utils.d.ts.map +1 -1
  253. package/lib/components/DateTime/index.d.ts +4 -0
  254. package/lib/components/DateTime/index.d.ts.map +1 -1
  255. package/lib/components/DateTime/index.js +3 -0
  256. package/lib/components/DateTime/index.js.map +1 -1
  257. package/lib/components/DateTime/utils.d.ts +2 -2
  258. package/lib/components/DateTime/utils.d.ts.map +1 -1
  259. package/lib/components/DateTime/utils.js +18 -4
  260. package/lib/components/DateTime/utils.js.map +1 -1
  261. package/lib/components/Dialog/Dialog.d.ts +32 -0
  262. package/lib/components/Dialog/Dialog.d.ts.map +1 -0
  263. package/lib/components/Dialog/Dialog.js +149 -0
  264. package/lib/components/Dialog/Dialog.js.map +1 -0
  265. package/lib/components/Dialog/index.d.ts +3 -0
  266. package/lib/components/Dialog/index.d.ts.map +1 -0
  267. package/lib/components/Dialog/index.js +3 -0
  268. package/lib/components/Dialog/index.js.map +1 -0
  269. package/lib/components/FieldGroup/FieldGroup.d.ts +7 -0
  270. package/lib/components/FieldGroup/FieldGroup.d.ts.map +1 -1
  271. package/lib/components/FieldGroup/FieldGroup.js +45 -41
  272. package/lib/components/FieldGroup/FieldGroup.js.map +1 -1
  273. package/lib/components/FieldGroup/FieldGroupList.d.ts.map +1 -1
  274. package/lib/components/FieldGroup/FieldGroupList.js +6 -2
  275. package/lib/components/FieldGroup/FieldGroupList.js.map +1 -1
  276. package/lib/components/FieldValueList/FieldValueList.d.ts +13 -7
  277. package/lib/components/FieldValueList/FieldValueList.d.ts.map +1 -1
  278. package/lib/components/FieldValueList/FieldValueList.js +41 -13
  279. package/lib/components/FieldValueList/FieldValueList.js.map +1 -1
  280. package/lib/components/FieldValueList/index.d.ts +3 -5
  281. package/lib/components/FieldValueList/index.d.ts.map +1 -1
  282. package/lib/components/FieldValueList/index.js +2 -4
  283. package/lib/components/FieldValueList/index.js.map +1 -1
  284. package/lib/components/File/utils.d.ts +1 -1
  285. package/lib/components/File/utils.d.ts.map +1 -1
  286. package/lib/components/File/utils.js.map +1 -1
  287. package/lib/components/Flex/Flex.d.ts +11 -10
  288. package/lib/components/Flex/Flex.d.ts.map +1 -1
  289. package/lib/components/Flex/Flex.js.map +1 -1
  290. package/lib/components/Form/Form.d.ts +5 -16
  291. package/lib/components/Form/Form.d.ts.map +1 -1
  292. package/lib/components/Form/Form.js +14 -11
  293. package/lib/components/Form/Form.js.map +1 -1
  294. package/lib/components/FormControl/FormControl.d.ts +12 -2
  295. package/lib/components/FormControl/FormControl.d.ts.map +1 -1
  296. package/lib/components/FormControl/FormControl.js +60 -35
  297. package/lib/components/FormControl/FormControl.js.map +1 -1
  298. package/lib/components/FormField/FormField.d.ts +5 -0
  299. package/lib/components/FormField/FormField.d.ts.map +1 -1
  300. package/lib/components/FormField/FormField.js +87 -16
  301. package/lib/components/FormField/FormField.js.map +1 -1
  302. package/lib/components/Grid/Grid.d.ts +1 -1
  303. package/lib/components/Grid/Grid.d.ts.map +1 -1
  304. package/lib/components/Grid/Grid.types.d.ts +11 -10
  305. package/lib/components/Grid/Grid.types.d.ts.map +1 -1
  306. package/lib/components/Grid/Grid.types.js.map +1 -1
  307. package/lib/components/HTML/HTML.d.ts.map +1 -1
  308. package/lib/components/HTML/HTML.js +56 -16
  309. package/lib/components/HTML/HTML.js.map +1 -1
  310. package/lib/components/Icon/Icon.d.ts.map +1 -1
  311. package/lib/components/Icon/Icon.js +1 -1
  312. package/lib/components/Icon/Icon.js.map +1 -1
  313. package/lib/components/Icon/iconNames.d.ts +2 -2
  314. package/lib/components/Icon/iconNames.d.ts.map +1 -1
  315. package/lib/components/Icon/iconNames.js +2 -1
  316. package/lib/components/Icon/iconNames.js.map +1 -1
  317. package/lib/components/Icon/icons/ai-assist.icon.js +1 -1
  318. package/lib/components/Icon/icons/ai-assist.icon.js.map +1 -1
  319. package/lib/components/Icon/icons/align-center.icon.js +1 -1
  320. package/lib/components/Icon/icons/align-center.icon.js.map +1 -1
  321. package/lib/components/Icon/icons/align-left.icon.js +1 -1
  322. package/lib/components/Icon/icons/align-left.icon.js.map +1 -1
  323. package/lib/components/Icon/icons/align-right.icon.js +1 -1
  324. package/lib/components/Icon/icons/align-right.icon.js.map +1 -1
  325. package/lib/components/Icon/icons/arrow-left.icon.js +1 -1
  326. package/lib/components/Icon/icons/arrow-left.icon.js.map +1 -1
  327. package/lib/components/Icon/icons/arrow-micro-down.icon.js +1 -1
  328. package/lib/components/Icon/icons/arrow-micro-down.icon.js.map +1 -1
  329. package/lib/components/Icon/icons/arrow-micro-left.icon.js +1 -1
  330. package/lib/components/Icon/icons/arrow-micro-left.icon.js.map +1 -1
  331. package/lib/components/Icon/icons/arrow-micro-right.icon.js +1 -1
  332. package/lib/components/Icon/icons/arrow-micro-right.icon.js.map +1 -1
  333. package/lib/components/Icon/icons/arrow-micro-up-down.icon.js +1 -1
  334. package/lib/components/Icon/icons/arrow-micro-up-down.icon.js.map +1 -1
  335. package/lib/components/Icon/icons/arrow-micro-up.icon.js +1 -1
  336. package/lib/components/Icon/icons/arrow-micro-up.icon.js.map +1 -1
  337. package/lib/components/Icon/icons/arrow-up-down.icon.js +1 -1
  338. package/lib/components/Icon/icons/arrow-up-down.icon.js.map +1 -1
  339. package/lib/components/Icon/icons/bars.icon.js +1 -1
  340. package/lib/components/Icon/icons/bars.icon.js.map +1 -1
  341. package/lib/components/Icon/icons/bell-solid.icon.js +1 -1
  342. package/lib/components/Icon/icons/bell-solid.icon.js.map +1 -1
  343. package/lib/components/Icon/icons/bell.icon.js +1 -1
  344. package/lib/components/Icon/icons/bell.icon.js.map +1 -1
  345. package/lib/components/Icon/icons/box-4-solid.icon.js +1 -1
  346. package/lib/components/Icon/icons/box-4-solid.icon.js.map +1 -1
  347. package/lib/components/Icon/icons/box-4.icon.js +1 -1
  348. package/lib/components/Icon/icons/box-4.icon.js.map +1 -1
  349. package/lib/components/Icon/icons/calendar-range.icon.js +1 -1
  350. package/lib/components/Icon/icons/calendar-range.icon.js.map +1 -1
  351. package/lib/components/Icon/icons/calendar-solid.icon.js +1 -1
  352. package/lib/components/Icon/icons/calendar-solid.icon.js.map +1 -1
  353. package/lib/components/Icon/icons/caret-down.icon.js +1 -1
  354. package/lib/components/Icon/icons/caret-down.icon.js.map +1 -1
  355. package/lib/components/Icon/icons/caret-left.icon.js +1 -1
  356. package/lib/components/Icon/icons/caret-left.icon.js.map +1 -1
  357. package/lib/components/Icon/icons/caret-right.icon.js +1 -1
  358. package/lib/components/Icon/icons/caret-right.icon.js.map +1 -1
  359. package/lib/components/Icon/icons/caret-up.icon.js +1 -1
  360. package/lib/components/Icon/icons/caret-up.icon.js.map +1 -1
  361. package/lib/components/Icon/icons/{script-solid.icon.d.ts → carrot.icon.d.ts} +2 -2
  362. package/lib/components/Icon/icons/carrot.icon.d.ts.map +1 -0
  363. package/lib/components/Icon/icons/carrot.icon.js +6 -0
  364. package/lib/components/Icon/icons/carrot.icon.js.map +1 -0
  365. package/lib/components/Icon/icons/case-solid.icon.js +1 -1
  366. package/lib/components/Icon/icons/case-solid.icon.js.map +1 -1
  367. package/lib/components/Icon/icons/case.icon.js +1 -1
  368. package/lib/components/Icon/icons/case.icon.js.map +1 -1
  369. package/lib/components/Icon/icons/chain.icon.js +1 -1
  370. package/lib/components/Icon/icons/chain.icon.js.map +1 -1
  371. package/lib/components/Icon/icons/chat-solid.icon.js +1 -1
  372. package/lib/components/Icon/icons/chat-solid.icon.js.map +1 -1
  373. package/lib/components/Icon/icons/chat.icon.js +1 -1
  374. package/lib/components/Icon/icons/chat.icon.js.map +1 -1
  375. package/lib/components/Icon/icons/check.icon.js +1 -1
  376. package/lib/components/Icon/icons/check.icon.js.map +1 -1
  377. package/lib/components/Icon/icons/clipboard-plus-solid.icon.js +1 -1
  378. package/lib/components/Icon/icons/clipboard-plus-solid.icon.js.map +1 -1
  379. package/lib/components/Icon/icons/clipboard-plus.icon.js +1 -1
  380. package/lib/components/Icon/icons/clipboard-plus.icon.js.map +1 -1
  381. package/lib/components/Icon/icons/clock-solid.icon.js +1 -1
  382. package/lib/components/Icon/icons/clock-solid.icon.js.map +1 -1
  383. package/lib/components/Icon/icons/clock.icon.js +1 -1
  384. package/lib/components/Icon/icons/clock.icon.js.map +1 -1
  385. package/lib/components/Icon/icons/code.icon.js +1 -1
  386. package/lib/components/Icon/icons/code.icon.js.map +1 -1
  387. package/lib/components/Icon/icons/dataviz-string-field.icon.d.ts +1 -1
  388. package/lib/components/Icon/icons/dataviz-string-field.icon.js +2 -2
  389. package/lib/components/Icon/icons/dataviz-string-field.icon.js.map +1 -1
  390. package/lib/components/Icon/icons/dock.icon.js +1 -1
  391. package/lib/components/Icon/icons/dock.icon.js.map +1 -1
  392. package/lib/components/Icon/icons/dot-9-solid.icon.js +1 -1
  393. package/lib/components/Icon/icons/dot-9-solid.icon.js.map +1 -1
  394. package/lib/components/Icon/icons/dot-9.icon.js +1 -1
  395. package/lib/components/Icon/icons/dot-9.icon.js.map +1 -1
  396. package/lib/components/Icon/icons/download.icon.js +1 -1
  397. package/lib/components/Icon/icons/download.icon.js.map +1 -1
  398. package/lib/components/Icon/icons/drag.icon.js +1 -1
  399. package/lib/components/Icon/icons/drag.icon.js.map +1 -1
  400. package/lib/components/Icon/icons/eye-off-solid.icon.js +1 -1
  401. package/lib/components/Icon/icons/eye-off-solid.icon.js.map +1 -1
  402. package/lib/components/Icon/icons/eye-off.icon.js +1 -1
  403. package/lib/components/Icon/icons/eye-off.icon.js.map +1 -1
  404. package/lib/components/Icon/icons/face-blank-solid.icon.d.ts.map +1 -1
  405. package/lib/components/Icon/icons/face-blank-solid.icon.js +1 -1
  406. package/lib/components/Icon/icons/face-blank-solid.icon.js.map +1 -1
  407. package/lib/components/Icon/icons/face-blank.icon.d.ts.map +1 -1
  408. package/lib/components/Icon/icons/face-blank.icon.js +1 -1
  409. package/lib/components/Icon/icons/face-blank.icon.js.map +1 -1
  410. package/lib/components/Icon/icons/face-happy-solid.icon.d.ts.map +1 -1
  411. package/lib/components/Icon/icons/face-happy-solid.icon.js +1 -1
  412. package/lib/components/Icon/icons/face-happy-solid.icon.js.map +1 -1
  413. package/lib/components/Icon/icons/face-happy.icon.d.ts.map +1 -1
  414. package/lib/components/Icon/icons/face-happy.icon.js +1 -1
  415. package/lib/components/Icon/icons/face-happy.icon.js.map +1 -1
  416. package/lib/components/Icon/icons/face-sad-solid.icon.d.ts.map +1 -1
  417. package/lib/components/Icon/icons/face-sad-solid.icon.js +1 -1
  418. package/lib/components/Icon/icons/face-sad-solid.icon.js.map +1 -1
  419. package/lib/components/Icon/icons/face-sad.icon.d.ts.map +1 -1
  420. package/lib/components/Icon/icons/face-sad.icon.js +1 -1
  421. package/lib/components/Icon/icons/face-sad.icon.js.map +1 -1
  422. package/lib/components/Icon/icons/fast-forward-solid.icon.js +1 -1
  423. package/lib/components/Icon/icons/fast-forward-solid.icon.js.map +1 -1
  424. package/lib/components/Icon/icons/filetype-text.icon.d.ts.map +1 -1
  425. package/lib/components/Icon/icons/filetype-text.icon.js +2 -2
  426. package/lib/components/Icon/icons/filetype-text.icon.js.map +1 -1
  427. package/lib/components/Icon/icons/filter-on.icon.js +1 -1
  428. package/lib/components/Icon/icons/filter-on.icon.js.map +1 -1
  429. package/lib/components/Icon/icons/filter.icon.js +1 -1
  430. package/lib/components/Icon/icons/filter.icon.js.map +1 -1
  431. package/lib/components/Icon/icons/folder-hierarchy-solid.icon.js +1 -1
  432. package/lib/components/Icon/icons/folder-hierarchy-solid.icon.js.map +1 -1
  433. package/lib/components/Icon/icons/folder-hierarchy.icon.js +1 -1
  434. package/lib/components/Icon/icons/folder-hierarchy.icon.js.map +1 -1
  435. package/lib/components/Icon/icons/forward-all-solid.icon.js +1 -1
  436. package/lib/components/Icon/icons/forward-all-solid.icon.js.map +1 -1
  437. package/lib/components/Icon/icons/forward-all.icon.js +1 -1
  438. package/lib/components/Icon/icons/forward-all.icon.js.map +1 -1
  439. package/lib/components/Icon/icons/forward-solid.icon.js +1 -1
  440. package/lib/components/Icon/icons/forward-solid.icon.js.map +1 -1
  441. package/lib/components/Icon/icons/forward.icon.js +1 -1
  442. package/lib/components/Icon/icons/forward.icon.js.map +1 -1
  443. package/lib/components/Icon/icons/galaxy.icon.d.ts.map +1 -1
  444. package/lib/components/Icon/icons/galaxy.icon.js +2 -2
  445. package/lib/components/Icon/icons/galaxy.icon.js.map +1 -1
  446. package/lib/components/Icon/icons/globe-solid.icon.js +1 -1
  447. package/lib/components/Icon/icons/globe-solid.icon.js.map +1 -1
  448. package/lib/components/Icon/icons/globe.icon.js +1 -1
  449. package/lib/components/Icon/icons/globe.icon.js.map +1 -1
  450. package/lib/components/Icon/icons/hand.icon.js +1 -1
  451. package/lib/components/Icon/icons/hand.icon.js.map +1 -1
  452. package/lib/components/Icon/icons/help-solid.icon.js +1 -1
  453. package/lib/components/Icon/icons/help-solid.icon.js.map +1 -1
  454. package/lib/components/Icon/icons/help.icon.js +1 -1
  455. package/lib/components/Icon/icons/help.icon.js.map +1 -1
  456. package/lib/components/Icon/icons/home-solid.icon.js +1 -1
  457. package/lib/components/Icon/icons/home-solid.icon.js.map +1 -1
  458. package/lib/components/Icon/icons/home.icon.js +1 -1
  459. package/lib/components/Icon/icons/home.icon.js.map +1 -1
  460. package/lib/components/Icon/icons/information-solid.icon.js +1 -1
  461. package/lib/components/Icon/icons/information-solid.icon.js.map +1 -1
  462. package/lib/components/Icon/icons/information.icon.js +1 -1
  463. package/lib/components/Icon/icons/information.icon.js.map +1 -1
  464. package/lib/components/Icon/icons/list-number.icon.d.ts.map +1 -1
  465. package/lib/components/Icon/icons/list-number.icon.js +2 -2
  466. package/lib/components/Icon/icons/list-number.icon.js.map +1 -1
  467. package/lib/components/Icon/icons/list.icon.d.ts.map +1 -1
  468. package/lib/components/Icon/icons/list.icon.js +2 -2
  469. package/lib/components/Icon/icons/list.icon.js.map +1 -1
  470. package/lib/components/Icon/icons/mail-solid.icon.js +1 -1
  471. package/lib/components/Icon/icons/mail-solid.icon.js.map +1 -1
  472. package/lib/components/Icon/icons/mail.icon.js +1 -1
  473. package/lib/components/Icon/icons/mail.icon.js.map +1 -1
  474. package/lib/components/Icon/icons/minus.icon.js +1 -1
  475. package/lib/components/Icon/icons/minus.icon.js.map +1 -1
  476. package/lib/components/Icon/icons/more.icon.js +1 -1
  477. package/lib/components/Icon/icons/more.icon.js.map +1 -1
  478. package/lib/components/Icon/icons/move-left-solid.icon.js +1 -1
  479. package/lib/components/Icon/icons/move-left-solid.icon.js.map +1 -1
  480. package/lib/components/Icon/icons/move-right-solid.icon.js +1 -1
  481. package/lib/components/Icon/icons/move-right-solid.icon.js.map +1 -1
  482. package/lib/components/Icon/icons/open.icon.js +1 -1
  483. package/lib/components/Icon/icons/open.icon.js.map +1 -1
  484. package/lib/components/Icon/icons/paper-clip.icon.js +1 -1
  485. package/lib/components/Icon/icons/paper-clip.icon.js.map +1 -1
  486. package/lib/components/Icon/icons/phone-solid.icon.js +1 -1
  487. package/lib/components/Icon/icons/phone-solid.icon.js.map +1 -1
  488. package/lib/components/Icon/icons/phone.icon.js +1 -1
  489. package/lib/components/Icon/icons/phone.icon.js.map +1 -1
  490. package/lib/components/Icon/icons/picture-solid.icon.js +1 -1
  491. package/lib/components/Icon/icons/picture-solid.icon.js.map +1 -1
  492. package/lib/components/Icon/icons/picture.icon.js +1 -1
  493. package/lib/components/Icon/icons/picture.icon.js.map +1 -1
  494. package/lib/components/Icon/icons/placeholder.icon.d.ts +4 -0
  495. package/lib/components/Icon/icons/placeholder.icon.d.ts.map +1 -0
  496. package/lib/components/Icon/icons/placeholder.icon.js +6 -0
  497. package/lib/components/Icon/icons/placeholder.icon.js.map +1 -0
  498. package/lib/components/Icon/icons/plus.icon.js +1 -1
  499. package/lib/components/Icon/icons/plus.icon.js.map +1 -1
  500. package/lib/components/Icon/icons/polaris-solid.icon.js +1 -1
  501. package/lib/components/Icon/icons/polaris-solid.icon.js.map +1 -1
  502. package/lib/components/Icon/icons/polaris.icon.js +1 -1
  503. package/lib/components/Icon/icons/polaris.icon.js.map +1 -1
  504. package/lib/components/Icon/icons/qr.icon.js +1 -1
  505. package/lib/components/Icon/icons/qr.icon.js.map +1 -1
  506. package/lib/components/Icon/icons/reply-all-solid.icon.js +1 -1
  507. package/lib/components/Icon/icons/reply-all-solid.icon.js.map +1 -1
  508. package/lib/components/Icon/icons/reply-all.icon.js +1 -1
  509. package/lib/components/Icon/icons/reply-all.icon.js.map +1 -1
  510. package/lib/components/Icon/icons/reply-solid.icon.js +1 -1
  511. package/lib/components/Icon/icons/reply-solid.icon.js.map +1 -1
  512. package/lib/components/Icon/icons/reply.icon.js +1 -1
  513. package/lib/components/Icon/icons/reply.icon.js.map +1 -1
  514. package/lib/components/Icon/icons/reset.icon.js +1 -1
  515. package/lib/components/Icon/icons/reset.icon.js.map +1 -1
  516. package/lib/components/Icon/icons/robot-happy-solid.icon.js +1 -1
  517. package/lib/components/Icon/icons/robot-happy-solid.icon.js.map +1 -1
  518. package/lib/components/Icon/icons/robot-happy.icon.js +1 -1
  519. package/lib/components/Icon/icons/robot-happy.icon.js.map +1 -1
  520. package/lib/components/Icon/icons/row-insert.icon.js +1 -1
  521. package/lib/components/Icon/icons/row-insert.icon.js.map +1 -1
  522. package/lib/components/Icon/icons/row.icon.js +1 -1
  523. package/lib/components/Icon/icons/row.icon.js.map +1 -1
  524. package/lib/components/Icon/icons/scale-down.icon.js +1 -1
  525. package/lib/components/Icon/icons/scale-down.icon.js.map +1 -1
  526. package/lib/components/Icon/icons/scale-up-solid.icon.js +1 -1
  527. package/lib/components/Icon/icons/scale-up-solid.icon.js.map +1 -1
  528. package/lib/components/Icon/icons/scale-up.icon.js +1 -1
  529. package/lib/components/Icon/icons/scale-up.icon.js.map +1 -1
  530. package/lib/components/Icon/icons/script.icon.js +1 -1
  531. package/lib/components/Icon/icons/script.icon.js.map +1 -1
  532. package/lib/components/Icon/icons/search-analytics-solid.icon.js +1 -1
  533. package/lib/components/Icon/icons/search-analytics-solid.icon.js.map +1 -1
  534. package/lib/components/Icon/icons/search-analytics.icon.js +1 -1
  535. package/lib/components/Icon/icons/search-analytics.icon.js.map +1 -1
  536. package/lib/components/Icon/icons/search.icon.js +1 -1
  537. package/lib/components/Icon/icons/search.icon.js.map +1 -1
  538. package/lib/components/Icon/icons/send-solid.icon.js +1 -1
  539. package/lib/components/Icon/icons/send-solid.icon.js.map +1 -1
  540. package/lib/components/Icon/icons/send.icon.js +1 -1
  541. package/lib/components/Icon/icons/send.icon.js.map +1 -1
  542. package/lib/components/Icon/icons/slideshow-solid.icon.js +1 -1
  543. package/lib/components/Icon/icons/slideshow-solid.icon.js.map +1 -1
  544. package/lib/components/Icon/icons/slideshow.icon.js +1 -1
  545. package/lib/components/Icon/icons/slideshow.icon.js.map +1 -1
  546. package/lib/components/Icon/icons/snow.icon.js +1 -1
  547. package/lib/components/Icon/icons/snow.icon.js.map +1 -1
  548. package/lib/components/Icon/icons/speaker-solid.icon.js +1 -1
  549. package/lib/components/Icon/icons/speaker-solid.icon.js.map +1 -1
  550. package/lib/components/Icon/icons/speaker.icon.js +1 -1
  551. package/lib/components/Icon/icons/speaker.icon.js.map +1 -1
  552. package/lib/components/Icon/icons/star-solid.icon.js +1 -1
  553. package/lib/components/Icon/icons/star-solid.icon.js.map +1 -1
  554. package/lib/components/Icon/icons/star.icon.js +1 -1
  555. package/lib/components/Icon/icons/star.icon.js.map +1 -1
  556. package/lib/components/Icon/icons/target-solid.icon.js +1 -1
  557. package/lib/components/Icon/icons/target-solid.icon.js.map +1 -1
  558. package/lib/components/Icon/icons/target.icon.js +1 -1
  559. package/lib/components/Icon/icons/target.icon.js.map +1 -1
  560. package/lib/components/Icon/icons/thumbs-up-solid.icon.js +1 -1
  561. package/lib/components/Icon/icons/thumbs-up-solid.icon.js.map +1 -1
  562. package/lib/components/Icon/icons/thumbs-up.icon.js +1 -1
  563. package/lib/components/Icon/icons/thumbs-up.icon.js.map +1 -1
  564. package/lib/components/Icon/icons/times.icon.js +1 -1
  565. package/lib/components/Icon/icons/times.icon.js.map +1 -1
  566. package/lib/components/Icon/icons/trash-solid.icon.js +1 -1
  567. package/lib/components/Icon/icons/trash-solid.icon.js.map +1 -1
  568. package/lib/components/Icon/icons/trash.icon.js +1 -1
  569. package/lib/components/Icon/icons/trash.icon.js.map +1 -1
  570. package/lib/components/Icon/icons/twitter.icon.js +1 -1
  571. package/lib/components/Icon/icons/twitter.icon.js.map +1 -1
  572. package/lib/components/Icon/icons/undock.icon.js +1 -1
  573. package/lib/components/Icon/icons/undock.icon.js.map +1 -1
  574. package/lib/components/Icon/icons/user-solid.icon.js +1 -1
  575. package/lib/components/Icon/icons/user-solid.icon.js.map +1 -1
  576. package/lib/components/Icon/icons/user-star-solid.icon.js +1 -1
  577. package/lib/components/Icon/icons/user-star-solid.icon.js.map +1 -1
  578. package/lib/components/Icon/icons/user-star.icon.js +1 -1
  579. package/lib/components/Icon/icons/user-star.icon.js.map +1 -1
  580. package/lib/components/Icon/icons/user.icon.js +1 -1
  581. package/lib/components/Icon/icons/user.icon.js.map +1 -1
  582. package/lib/components/Icon/icons/warn-solid.icon.js +1 -1
  583. package/lib/components/Icon/icons/warn-solid.icon.js.map +1 -1
  584. package/lib/components/Icon/icons/warn.icon.js +1 -1
  585. package/lib/components/Icon/icons/warn.icon.js.map +1 -1
  586. package/lib/components/Icon/index.d.ts +1 -1
  587. package/lib/components/Icon/index.d.ts.map +1 -1
  588. package/lib/components/Icon/index.js.map +1 -1
  589. package/lib/components/Input/Input.d.ts.map +1 -1
  590. package/lib/components/Input/Input.js +14 -2
  591. package/lib/components/Input/Input.js.map +1 -1
  592. package/lib/components/Input/Input.styles.d.ts +1 -0
  593. package/lib/components/Input/Input.styles.d.ts.map +1 -1
  594. package/lib/components/Input/Input.styles.js +31 -0
  595. package/lib/components/Input/Input.styles.js.map +1 -1
  596. package/lib/components/Link/Link.d.ts +4 -1
  597. package/lib/components/Link/Link.d.ts.map +1 -1
  598. package/lib/components/Link/Link.js +65 -26
  599. package/lib/components/Link/Link.js.map +1 -1
  600. package/lib/components/List/CommaSeparatedList.d.ts.map +1 -1
  601. package/lib/components/List/CommaSeparatedList.js +6 -14
  602. package/lib/components/List/CommaSeparatedList.js.map +1 -1
  603. package/lib/components/List/List.d.ts +2 -2
  604. package/lib/components/List/List.d.ts.map +1 -1
  605. package/lib/components/List/List.js.map +1 -1
  606. package/lib/components/ListToolbar/ListToolbar.d.ts.map +1 -1
  607. package/lib/components/ListToolbar/ListToolbar.js +108 -53
  608. package/lib/components/ListToolbar/ListToolbar.js.map +1 -1
  609. package/lib/components/ListToolbar/ListToolbar.styles.d.ts +1 -0
  610. package/lib/components/ListToolbar/ListToolbar.styles.d.ts.map +1 -1
  611. package/lib/components/ListToolbar/ListToolbar.styles.js +38 -2
  612. package/lib/components/ListToolbar/ListToolbar.styles.js.map +1 -1
  613. package/lib/components/ListToolbar/ListToolbar.types.d.ts +28 -10
  614. package/lib/components/ListToolbar/ListToolbar.types.d.ts.map +1 -1
  615. package/lib/components/ListToolbar/ListToolbar.types.js.map +1 -1
  616. package/lib/components/ListToolbar/PresetMenuPopover.d.ts +12 -0
  617. package/lib/components/ListToolbar/PresetMenuPopover.d.ts.map +1 -0
  618. package/lib/components/ListToolbar/PresetMenuPopover.js +36 -0
  619. package/lib/components/ListToolbar/PresetMenuPopover.js.map +1 -0
  620. package/lib/components/ListToolbar/QueryOptionPopover.d.ts.map +1 -1
  621. package/lib/components/ListToolbar/QueryOptionPopover.js +14 -44
  622. package/lib/components/ListToolbar/QueryOptionPopover.js.map +1 -1
  623. package/lib/components/Location/LocationInput.d.ts +3 -1
  624. package/lib/components/Location/LocationInput.d.ts.map +1 -1
  625. package/lib/components/Location/LocationInput.js +2 -2
  626. package/lib/components/Location/LocationInput.js.map +1 -1
  627. package/lib/components/Location/LocationView.d.ts +1 -1
  628. package/lib/components/Location/LocationView.d.ts.map +1 -1
  629. package/lib/components/Location/LocationView.js +16 -10
  630. package/lib/components/Location/LocationView.js.map +1 -1
  631. package/lib/components/Location/utils.d.ts +3 -2
  632. package/lib/components/Location/utils.d.ts.map +1 -1
  633. package/lib/components/Location/utils.js +17 -9
  634. package/lib/components/Location/utils.js.map +1 -1
  635. package/lib/components/Menu/Menu.d.ts.map +1 -1
  636. package/lib/components/Menu/Menu.js +10 -6
  637. package/lib/components/Menu/Menu.js.map +1 -1
  638. package/lib/components/Menu/Menu.styles.d.ts.map +1 -1
  639. package/lib/components/Menu/Menu.styles.js +4 -2
  640. package/lib/components/Menu/Menu.styles.js.map +1 -1
  641. package/lib/components/Menu/Menu.types.d.ts +13 -0
  642. package/lib/components/Menu/Menu.types.d.ts.map +1 -1
  643. package/lib/components/Menu/Menu.types.js.map +1 -1
  644. package/lib/components/Menu/MenuGroup.d.ts.map +1 -1
  645. package/lib/components/Menu/MenuGroup.js +3 -3
  646. package/lib/components/Menu/MenuGroup.js.map +1 -1
  647. package/lib/components/Menu/MenuItem.d.ts.map +1 -1
  648. package/lib/components/Menu/MenuItem.js +4 -8
  649. package/lib/components/Menu/MenuItem.js.map +1 -1
  650. package/lib/components/Menu/MenuList.d.ts.map +1 -1
  651. package/lib/components/Menu/MenuList.js +23 -14
  652. package/lib/components/Menu/MenuList.js.map +1 -1
  653. package/lib/components/Menu/NavItemsList.d.ts +2 -2
  654. package/lib/components/Menu/NavItemsList.d.ts.map +1 -1
  655. package/lib/components/Menu/NavItemsList.js +12 -7
  656. package/lib/components/Menu/NavItemsList.js.map +1 -1
  657. package/lib/components/Menu/helpers.d.ts +7 -7
  658. package/lib/components/Menu/helpers.d.ts.map +1 -1
  659. package/lib/components/Menu/index.d.ts +1 -1
  660. package/lib/components/Menu/index.d.ts.map +1 -1
  661. package/lib/components/Menu/index.js +1 -1
  662. package/lib/components/Menu/index.js.map +1 -1
  663. package/lib/components/MetaList/MetaList.d.ts.map +1 -1
  664. package/lib/components/MetaList/MetaList.js +13 -10
  665. package/lib/components/MetaList/MetaList.js.map +1 -1
  666. package/lib/components/Modal/Contexts.d.ts.map +1 -1
  667. package/lib/components/Modal/Contexts.js +2 -3
  668. package/lib/components/Modal/Contexts.js.map +1 -1
  669. package/lib/components/Modal/MinimizedModal.d.ts.map +1 -1
  670. package/lib/components/Modal/MinimizedModal.js +2 -5
  671. package/lib/components/Modal/MinimizedModal.js.map +1 -1
  672. package/lib/components/Modal/Modal.d.ts.map +1 -1
  673. package/lib/components/Modal/Modal.js +3 -5
  674. package/lib/components/Modal/Modal.js.map +1 -1
  675. package/lib/components/Modal/Modal.types.d.ts +2 -6
  676. package/lib/components/Modal/Modal.types.d.ts.map +1 -1
  677. package/lib/components/Modal/Modal.types.js +1 -2
  678. package/lib/components/Modal/Modal.types.js.map +1 -1
  679. package/lib/components/Modal/ModalManager.d.ts +8 -2
  680. package/lib/components/Modal/ModalManager.d.ts.map +1 -1
  681. package/lib/components/Modal/ModalManager.js +14 -20
  682. package/lib/components/Modal/ModalManager.js.map +1 -1
  683. package/lib/components/Modal/index.d.ts +0 -1
  684. package/lib/components/Modal/index.d.ts.map +1 -1
  685. package/lib/components/Modal/index.js +0 -1
  686. package/lib/components/Modal/index.js.map +1 -1
  687. package/lib/components/MultiStepForm/FormProgress.d.ts +10 -0
  688. package/lib/components/MultiStepForm/FormProgress.d.ts.map +1 -0
  689. package/lib/components/{MultiStep/MultiStep.js → MultiStepForm/FormProgress.js} +8 -22
  690. package/lib/components/MultiStepForm/FormProgress.js.map +1 -0
  691. package/lib/components/{MultiStep/MultiStep.styles.d.ts → MultiStepForm/FormProgress.styles.d.ts} +2 -4
  692. package/lib/components/MultiStepForm/FormProgress.styles.d.ts.map +1 -0
  693. package/lib/components/{MultiStep/MultiStep.styles.js → MultiStepForm/FormProgress.styles.js} +3 -4
  694. package/lib/components/MultiStepForm/FormProgress.styles.js.map +1 -0
  695. package/lib/components/MultiStepForm/MultiStepForm.d.ts +9 -0
  696. package/lib/components/MultiStepForm/MultiStepForm.d.ts.map +1 -0
  697. package/lib/components/MultiStepForm/MultiStepForm.js +50 -0
  698. package/lib/components/MultiStepForm/MultiStepForm.js.map +1 -0
  699. package/lib/components/MultiStepForm/MultiStepForm.types.d.ts +48 -0
  700. package/lib/components/MultiStepForm/MultiStepForm.types.d.ts.map +1 -0
  701. package/lib/components/MultiStepForm/MultiStepForm.types.js +2 -0
  702. package/lib/components/MultiStepForm/MultiStepForm.types.js.map +1 -0
  703. package/lib/components/MultiStepForm/index.d.ts +2 -0
  704. package/lib/components/MultiStepForm/index.d.ts.map +1 -0
  705. package/lib/components/MultiStepForm/index.js +2 -0
  706. package/lib/components/MultiStepForm/index.js.map +1 -0
  707. package/lib/components/Number/NumberDisplay.d.ts +0 -5
  708. package/lib/components/Number/NumberDisplay.d.ts.map +1 -1
  709. package/lib/components/Number/NumberDisplay.js +8 -12
  710. package/lib/components/Number/NumberDisplay.js.map +1 -1
  711. package/lib/components/Number/NumberInput.d.ts +1 -1
  712. package/lib/components/Number/NumberInput.d.ts.map +1 -1
  713. package/lib/components/Number/NumberInput.js +51 -25
  714. package/lib/components/Number/NumberInput.js.map +1 -1
  715. package/lib/components/Number/NumberInput.styles.d.ts +8 -5
  716. package/lib/components/Number/NumberInput.styles.d.ts.map +1 -1
  717. package/lib/components/Number/NumberInput.styles.js +6 -3
  718. package/lib/components/Number/NumberInput.styles.js.map +1 -1
  719. package/lib/components/Number/NumberInput.types.d.ts +56 -21
  720. package/lib/components/Number/NumberInput.types.d.ts.map +1 -1
  721. package/lib/components/Number/NumberInput.types.js.map +1 -1
  722. package/lib/components/Number/NumberRangeInput.d.ts +6 -0
  723. package/lib/components/Number/NumberRangeInput.d.ts.map +1 -0
  724. package/lib/components/Number/NumberRangeInput.js +30 -0
  725. package/lib/components/Number/NumberRangeInput.js.map +1 -0
  726. package/lib/components/Number/index.d.ts +3 -2
  727. package/lib/components/Number/index.d.ts.map +1 -1
  728. package/lib/components/Number/index.js +1 -0
  729. package/lib/components/Number/index.js.map +1 -1
  730. package/lib/components/Number/utils.d.ts +3 -4
  731. package/lib/components/Number/utils.d.ts.map +1 -1
  732. package/lib/components/Number/utils.js +41 -22
  733. package/lib/components/Number/utils.js.map +1 -1
  734. package/lib/components/PageTemplates/CategorySubPage.d.ts +3 -3
  735. package/lib/components/PageTemplates/CategorySubPage.d.ts.map +1 -1
  736. package/lib/components/PageTemplates/CategorySubPage.js.map +1 -1
  737. package/lib/components/PageTemplates/DashboardPage.d.ts.map +1 -1
  738. package/lib/components/PageTemplates/DashboardPage.js +1 -4
  739. package/lib/components/PageTemplates/DashboardPage.js.map +1 -1
  740. package/lib/components/PageTemplates/PageTemplates.d.ts +1 -2
  741. package/lib/components/PageTemplates/PageTemplates.d.ts.map +1 -1
  742. package/lib/components/PageTemplates/PageTemplates.js.map +1 -1
  743. package/lib/components/Phone/PhoneInput.d.ts.map +1 -1
  744. package/lib/components/Phone/PhoneInput.js +13 -3
  745. package/lib/components/Phone/PhoneInput.js.map +1 -1
  746. package/lib/components/Popover/Popover.d.ts.map +1 -1
  747. package/lib/components/Popover/Popover.js +0 -6
  748. package/lib/components/Popover/Popover.js.map +1 -1
  749. package/lib/components/Popover/Popover.styles.d.ts.map +1 -1
  750. package/lib/components/Popover/Popover.styles.js +12 -57
  751. package/lib/components/Popover/Popover.styles.js.map +1 -1
  752. package/lib/components/RadioButton/RadioButton.d.ts +3 -1
  753. package/lib/components/RadioButton/RadioButton.d.ts.map +1 -1
  754. package/lib/components/RadioButton/RadioButton.js.map +1 -1
  755. package/lib/components/RadioCheck/RadioCheck.d.ts +2 -0
  756. package/lib/components/RadioCheck/RadioCheck.d.ts.map +1 -1
  757. package/lib/components/RadioCheck/RadioCheck.js +2 -2
  758. package/lib/components/RadioCheck/RadioCheck.js.map +1 -1
  759. package/lib/components/RadioCheckGroup/RadioCheckGroup.d.ts +3 -0
  760. package/lib/components/RadioCheckGroup/RadioCheckGroup.d.ts.map +1 -1
  761. package/lib/components/RadioCheckGroup/RadioCheckGroup.js +1 -1
  762. package/lib/components/RadioCheckGroup/RadioCheckGroup.js.map +1 -1
  763. package/lib/components/RadioCheckGroup/index.d.ts +1 -1
  764. package/lib/components/RadioCheckGroup/index.d.ts.map +1 -1
  765. package/lib/components/RadioCheckGroup/index.js +1 -1
  766. package/lib/components/RadioCheckGroup/index.js.map +1 -1
  767. package/lib/components/SearchInput/SearchInput.d.ts +24 -8
  768. package/lib/components/SearchInput/SearchInput.d.ts.map +1 -1
  769. package/lib/components/SearchInput/SearchInput.js +127 -94
  770. package/lib/components/SearchInput/SearchInput.js.map +1 -1
  771. package/lib/components/SearchInput/SearchInput.styles.d.ts +16 -0
  772. package/lib/components/SearchInput/SearchInput.styles.d.ts.map +1 -0
  773. package/lib/components/SearchInput/SearchInput.styles.js +129 -0
  774. package/lib/components/SearchInput/SearchInput.styles.js.map +1 -0
  775. package/lib/components/SearchInput/index.d.ts +1 -1
  776. package/lib/components/SearchInput/index.d.ts.map +1 -1
  777. package/lib/components/SearchInput/index.js +1 -1
  778. package/lib/components/SearchInput/index.js.map +1 -1
  779. package/lib/components/Select/Select.d.ts +4 -0
  780. package/lib/components/Select/Select.d.ts.map +1 -1
  781. package/lib/components/Select/Select.js +5 -3
  782. package/lib/components/Select/Select.js.map +1 -1
  783. package/lib/components/Skeleton/ParagraphSkeleton.d.ts.map +1 -1
  784. package/lib/components/Skeleton/ParagraphSkeleton.js +2 -2
  785. package/lib/components/Skeleton/ParagraphSkeleton.js.map +1 -1
  786. package/lib/components/SkipLinks/SkipLinks.d.ts +15 -0
  787. package/lib/components/SkipLinks/SkipLinks.d.ts.map +1 -0
  788. package/lib/components/SkipLinks/SkipLinks.js +67 -0
  789. package/lib/components/SkipLinks/SkipLinks.js.map +1 -0
  790. package/lib/components/SkipLinks/index.d.ts +4 -0
  791. package/lib/components/SkipLinks/index.d.ts.map +1 -0
  792. package/lib/components/SkipLinks/index.js +3 -0
  793. package/lib/components/SkipLinks/index.js.map +1 -0
  794. package/lib/components/Slider/Slider.styles.d.ts +1 -1
  795. package/lib/components/SummaryItem/SummaryItem.d.ts +2 -2
  796. package/lib/components/SummaryList/ViewAll.d.ts.map +1 -1
  797. package/lib/components/SummaryList/ViewAll.js +6 -2
  798. package/lib/components/SummaryList/ViewAll.js.map +1 -1
  799. package/lib/components/Tabs/Tab.d.ts.map +1 -1
  800. package/lib/components/Tabs/Tab.js +0 -1
  801. package/lib/components/Tabs/Tab.js.map +1 -1
  802. package/lib/components/Tabs/TabPanel.d.ts.map +1 -1
  803. package/lib/components/Tabs/TabPanel.js +1 -7
  804. package/lib/components/Tabs/TabPanel.js.map +1 -1
  805. package/lib/components/Tabs/Tabs.d.ts.map +1 -1
  806. package/lib/components/Tabs/Tabs.js +1 -1
  807. package/lib/components/Tabs/Tabs.js.map +1 -1
  808. package/lib/components/Text/Text.js +2 -2
  809. package/lib/components/Text/Text.js.map +1 -1
  810. package/lib/components/TextArea/TextArea.d.ts.map +1 -1
  811. package/lib/components/TextArea/TextArea.js +5 -2
  812. package/lib/components/TextArea/TextArea.js.map +1 -1
  813. package/lib/components/Toaster/Context.d.ts +7 -0
  814. package/lib/components/Toaster/Context.d.ts.map +1 -0
  815. package/lib/components/Toaster/Context.js +6 -0
  816. package/lib/components/Toaster/Context.js.map +1 -0
  817. package/lib/components/Toaster/Toaster.d.ts +8 -40
  818. package/lib/components/Toaster/Toaster.d.ts.map +1 -1
  819. package/lib/components/Toaster/Toaster.js +12 -12
  820. package/lib/components/Toaster/Toaster.js.map +1 -1
  821. package/lib/components/Toaster/Toaster.types.d.ts +31 -0
  822. package/lib/components/Toaster/Toaster.types.d.ts.map +1 -0
  823. package/lib/components/Toaster/Toaster.types.js +2 -0
  824. package/lib/components/Toaster/Toaster.types.js.map +1 -0
  825. package/lib/components/Toaster/index.d.ts +1 -2
  826. package/lib/components/Toaster/index.d.ts.map +1 -1
  827. package/lib/components/Toaster/index.js +0 -1
  828. package/lib/components/Toaster/index.js.map +1 -1
  829. package/lib/components/Tooltip/Tooltip.d.ts +5 -0
  830. package/lib/components/Tooltip/Tooltip.d.ts.map +1 -1
  831. package/lib/components/Tooltip/Tooltip.js +23 -5
  832. package/lib/components/Tooltip/Tooltip.js.map +1 -1
  833. package/lib/components/Tree/StandardTree.d.ts.map +1 -1
  834. package/lib/components/Tree/StandardTree.js +27 -13
  835. package/lib/components/Tree/StandardTree.js.map +1 -1
  836. package/lib/components/Tree/StandardTree.styles.js +3 -3
  837. package/lib/components/Tree/StandardTree.styles.js.map +1 -1
  838. package/lib/components/Tree/StandardTree.types.d.ts +1 -0
  839. package/lib/components/Tree/StandardTree.types.d.ts.map +1 -1
  840. package/lib/components/Tree/StandardTree.types.js.map +1 -1
  841. package/lib/hooks/index.d.ts +3 -0
  842. package/lib/hooks/index.d.ts.map +1 -1
  843. package/lib/hooks/index.js +3 -0
  844. package/lib/hooks/index.js.map +1 -1
  845. package/lib/hooks/useActiveDescendant.d.ts +5 -1
  846. package/lib/hooks/useActiveDescendant.d.ts.map +1 -1
  847. package/lib/hooks/useActiveDescendant.js +175 -99
  848. package/lib/hooks/useActiveDescendant.js.map +1 -1
  849. package/lib/hooks/useAutoResize.d.ts +1 -1
  850. package/lib/hooks/useAutoResize.d.ts.map +1 -1
  851. package/lib/hooks/useAutoResize.js +14 -6
  852. package/lib/hooks/useAutoResize.js.map +1 -1
  853. package/lib/hooks/useBreakpoint.d.ts +3 -2
  854. package/lib/hooks/useBreakpoint.d.ts.map +1 -1
  855. package/lib/hooks/useBreakpoint.js +10 -13
  856. package/lib/hooks/useBreakpoint.js.map +1 -1
  857. package/lib/hooks/useConfiguration.d.ts +1 -0
  858. package/lib/hooks/useConfiguration.d.ts.map +1 -1
  859. package/lib/hooks/useConfiguration.js +9 -2
  860. package/lib/hooks/useConfiguration.js.map +1 -1
  861. package/lib/hooks/useDraggable.d.ts +1 -1
  862. package/lib/hooks/useDraggable.d.ts.map +1 -1
  863. package/lib/hooks/useDraggable.js +4 -2
  864. package/lib/hooks/useDraggable.js.map +1 -1
  865. package/lib/hooks/useFocusWithin.d.ts.map +1 -1
  866. package/lib/hooks/useFocusWithin.js +0 -8
  867. package/lib/hooks/useFocusWithin.js.map +1 -1
  868. package/lib/hooks/useI18n.d.ts +130 -34
  869. package/lib/hooks/useI18n.d.ts.map +1 -1
  870. package/lib/hooks/useI18n.js +2 -1
  871. package/lib/hooks/useI18n.js.map +1 -1
  872. package/lib/hooks/useInputFormatter.d.ts.map +1 -1
  873. package/lib/hooks/useInputFormatter.js +5 -0
  874. package/lib/hooks/useInputFormatter.js.map +1 -1
  875. package/lib/hooks/useLongPress.d.ts +1 -1
  876. package/lib/hooks/useLongPress.d.ts.map +1 -1
  877. package/lib/hooks/useModalContext.d.ts +7 -0
  878. package/lib/hooks/useModalContext.d.ts.map +1 -0
  879. package/lib/hooks/useModalContext.js +12 -0
  880. package/lib/hooks/useModalContext.js.map +1 -0
  881. package/lib/hooks/useModalManager.d.ts +8 -0
  882. package/lib/hooks/useModalManager.d.ts.map +1 -0
  883. package/lib/hooks/useModalManager.js +16 -0
  884. package/lib/hooks/useModalManager.js.map +1 -0
  885. package/lib/hooks/useOS.d.ts.map +1 -1
  886. package/lib/hooks/useOS.js +1 -2
  887. package/lib/hooks/useOS.js.map +1 -1
  888. package/lib/hooks/useScrollStick.d.ts +1 -1
  889. package/lib/hooks/useScrollStick.d.ts.map +1 -1
  890. package/lib/hooks/useToaster.d.ts +8 -0
  891. package/lib/hooks/useToaster.d.ts.map +1 -0
  892. package/lib/hooks/useToaster.js +16 -0
  893. package/lib/hooks/useToaster.js.map +1 -0
  894. package/lib/hooks/useTransitionState.js +1 -1
  895. package/lib/hooks/useTransitionState.js.map +1 -1
  896. package/lib/i18n/default.d.ts +130 -34
  897. package/lib/i18n/default.d.ts.map +1 -1
  898. package/lib/i18n/default.js +153 -47
  899. package/lib/i18n/default.js.map +1 -1
  900. package/lib/i18n/i18n.d.ts +126 -698
  901. package/lib/i18n/i18n.d.ts.map +1 -1
  902. package/lib/i18n/translate.d.ts +3 -0
  903. package/lib/i18n/translate.d.ts.map +1 -1
  904. package/lib/i18n/translate.js.map +1 -1
  905. package/lib/index.d.ts +9 -2
  906. package/lib/index.d.ts.map +1 -1
  907. package/lib/index.js +9 -2
  908. package/lib/index.js.map +1 -1
  909. package/lib/init.d.ts +8 -0
  910. package/lib/init.d.ts.map +1 -0
  911. package/lib/init.js +5 -0
  912. package/lib/init.js.map +1 -0
  913. package/lib/register-contexts.d.ts +2 -0
  914. package/lib/register-contexts.d.ts.map +1 -0
  915. package/lib/register-contexts.js +10 -0
  916. package/lib/register-contexts.js.map +1 -0
  917. package/lib/styles/utils.d.ts +1 -1
  918. package/lib/styles/utils.d.ts.map +1 -1
  919. package/lib/styles/utils.js.map +1 -1
  920. package/lib/theme/ThemeMachine.d.ts +11 -3
  921. package/lib/theme/ThemeMachine.d.ts.map +1 -1
  922. package/lib/theme/ThemeMachine.js +28 -26
  923. package/lib/theme/ThemeMachine.js.map +1 -1
  924. package/lib/theme/index.d.ts +1 -0
  925. package/lib/theme/index.d.ts.map +1 -1
  926. package/lib/theme/index.js +1 -0
  927. package/lib/theme/index.js.map +1 -1
  928. package/lib/theme/theme.d.ts +54 -0
  929. package/lib/theme/theme.d.ts.map +1 -1
  930. package/lib/theme/themeDefinition.json +33 -1
  931. package/lib/theme/themeOverrides.schema.json +9 -0
  932. package/lib/theme/themes/buildTheme.json +0 -3
  933. package/lib/theme/themes/darkTheme.json +3 -1
  934. package/lib/theme/themes/legacyBuildTheme.json +0 -3
  935. package/lib/theme/themes/wssTheme.json +6 -0
  936. package/lib/types/types.d.ts +3 -0
  937. package/lib/types/types.d.ts.map +1 -1
  938. package/lib/types/types.js.map +1 -1
  939. package/lib/utils/utils.d.ts +5 -0
  940. package/lib/utils/utils.d.ts.map +1 -1
  941. package/lib/utils/utils.js +23 -0
  942. package/lib/utils/utils.js.map +1 -1
  943. package/package.json +10 -5
  944. package/lib/components/AppShell/SkipNavigation.d.ts +0 -4
  945. package/lib/components/AppShell/SkipNavigation.d.ts.map +0 -1
  946. package/lib/components/AppShell/SkipNavigation.js +0 -61
  947. package/lib/components/AppShell/SkipNavigation.js.map +0 -1
  948. package/lib/components/Currency/currencyCodes.d.ts +0 -3
  949. package/lib/components/Currency/currencyCodes.d.ts.map +0 -1
  950. package/lib/components/Currency/currencyCodes.js +0 -182
  951. package/lib/components/Currency/currencyCodes.js.map +0 -1
  952. package/lib/components/DateTime/types.d.ts +0 -9
  953. package/lib/components/DateTime/types.d.ts.map +0 -1
  954. package/lib/components/DateTime/types.js +0 -2
  955. package/lib/components/DateTime/types.js.map +0 -1
  956. package/lib/components/Icon/icons/script-solid.icon.d.ts.map +0 -1
  957. package/lib/components/Icon/icons/script-solid.icon.js +0 -6
  958. package/lib/components/Icon/icons/script-solid.icon.js.map +0 -1
  959. package/lib/components/MultiStep/MultiStep.d.ts +0 -6
  960. package/lib/components/MultiStep/MultiStep.d.ts.map +0 -1
  961. package/lib/components/MultiStep/MultiStep.js.map +0 -1
  962. package/lib/components/MultiStep/MultiStep.styles.d.ts.map +0 -1
  963. package/lib/components/MultiStep/MultiStep.styles.js.map +0 -1
  964. package/lib/components/MultiStep/MultiStep.types.d.ts +0 -36
  965. package/lib/components/MultiStep/MultiStep.types.d.ts.map +0 -1
  966. package/lib/components/MultiStep/MultiStep.types.js +0 -2
  967. package/lib/components/MultiStep/MultiStep.types.js.map +0 -1
  968. package/lib/components/MultiStep/index.d.ts +0 -3
  969. package/lib/components/MultiStep/index.d.ts.map +0 -1
  970. package/lib/components/MultiStep/index.js +0 -2
  971. package/lib/components/MultiStep/index.js.map +0 -1
@@ -1,88 +1,92 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { forwardRef, useState } from 'react';
3
3
  import styled, { css } from 'styled-components';
4
- import Button, { StyledButton } from '../Button';
4
+ import Button from '../Button';
5
5
  import ExpandCollapse from '../ExpandCollapse';
6
- import Flex, { StyledFlex } from '../Flex';
6
+ import Flex from '../Flex';
7
7
  import HTML from '../HTML';
8
8
  import Icon, { StyledIcon, registerIcon } from '../Icon';
9
9
  import * as caretRightIcon from '../Icon/icons/caret-right.icon';
10
10
  import Actions from '../Actions';
11
11
  import { defaultThemeProp } from '../../theme';
12
- import { useI18n, useUID } from '../../hooks';
12
+ import { useDirection, useI18n, useUID } from '../../hooks';
13
13
  import { calculateFontSize } from '../../styles';
14
+ import AdditionalInfo from '../AdditionalInfo';
14
15
  registerIcon(caretRightIcon);
15
- export const StyledFieldGroupLegend = styled.legend(({ open, theme: { base: { spacing, animation, 'hit-area': { 'mouse-min': hitAreaMouse, 'finger-min': hitAreaFinger } } } }) => css `
16
- width: 100%;
17
- margin-bottom: 0;
18
- ${open &&
19
- css `
20
- margin-block-end: calc(1.5 * ${spacing});
21
- `}
22
- transition: margin-block-end ${animation.speed} ${animation.timing.ease};
23
-
24
- button ${StyledIcon} {
25
- transition: transform ${animation.speed} ${animation.timing.ease};
26
- }
27
-
28
- button[aria-expanded='true'] ${StyledIcon} {
29
- transform: rotate(90deg);
30
- }
31
- button[aria-expanded='false'] ${StyledIcon} {
32
- transform: rotate(0);
33
- }
16
+ const StyledExpandButton = styled(Button)(({ theme: { base: { animation } } }) => {
17
+ const { rtl } = useDirection();
18
+ return css `
19
+ ${StyledIcon} {
20
+ transition: transform ${animation.speed} ${animation.timing.ease};
21
+ }
22
+ &[aria-expanded='true'] ${StyledIcon} {
23
+ transform: rotate(90deg);
24
+ }
25
+ &[aria-expanded='false'] ${StyledIcon} {
26
+ transform: rotate(${rtl ? 180 : 0}deg);
27
+ }
28
+ `;
29
+ });
30
+ StyledExpandButton.defaultProps = defaultThemeProp;
31
+ export const StyledFieldGroupName = styled.span ``;
32
+ export const StyledFieldGroupLegend = styled.legend(({ open, theme: { base: { spacing, animation, 'hit-area': { 'mouse-min': hitAreaMouse, 'finger-min': hitAreaFinger } } } }) => {
33
+ return css `
34
+ width: 100%;
35
+ margin-bottom: 0;
36
+ ${open &&
37
+ css `
38
+ margin-block-end: calc(1.5 * ${spacing});
39
+ `}
40
+ transition: margin-block-end ${animation.speed} ${animation.timing.ease};
34
41
 
35
- > ${StyledFlex} {
36
- min-height: ${hitAreaMouse};
42
+ > ${StyledExpandButton} {
43
+ min-height: ${hitAreaMouse};
37
44
 
38
- @media (pointer: 'coarse') {
39
- min-height: ${hitAreaFinger};
45
+ @media (pointer: 'coarse') {
46
+ min-height: ${hitAreaFinger};
47
+ }
40
48
  }
41
- }
42
- `);
49
+ `;
50
+ });
43
51
  StyledFieldGroupLegend.defaultProps = defaultThemeProp;
44
52
  export const StyledFieldGroup = styled.fieldset(({ theme: { base: { 'font-size': fontSize, 'font-scale': fontScale }, components: { text } } }) => {
45
53
  const fontSizes = calculateFontSize(fontSize, fontScale);
46
54
  return css `
47
55
  border: none;
48
56
 
49
- ${StyledFieldGroupLegend} ${StyledButton} {
50
- font-weight: inherit;
51
- }
52
-
53
- & ${StyledFieldGroupLegend} {
57
+ & ${StyledFieldGroupName} {
54
58
  font-size: ${fontSizes[text.h3['font-size']]};
55
59
  font-weight: ${text.h3['font-weight']};
56
60
  }
57
61
 
58
- & & ${StyledFieldGroupLegend} {
62
+ & & ${StyledFieldGroupName} {
59
63
  font-size: ${fontSizes[text.h4['font-size']]};
60
64
  font-weight: ${text.h4['font-weight']};
61
65
  }
62
66
 
63
- & & & ${StyledFieldGroupLegend} {
67
+ & & & ${StyledFieldGroupName} {
64
68
  font-size: ${fontSizes[text.h5['font-size']]};
65
69
  font-weight: ${text.h5['font-weight']};
66
70
  }
67
71
 
68
- & & & & ${StyledFieldGroupLegend} {
72
+ & & & & ${StyledFieldGroupName} {
69
73
  font-size: ${fontSizes[text.h6['font-size']]};
70
74
  font-weight: ${text.h6['font-weight']};
71
75
  }
72
76
  `;
73
77
  });
74
78
  StyledFieldGroup.defaultProps = defaultThemeProp;
75
- const FieldGroupLegend = ({ children, open, actions, ...restProps }) => {
76
- return (_jsx(StyledFieldGroupLegend, { open: open, ...restProps, children: _jsxs(Flex, { container: { alignItems: 'center', justify: 'between' }, children: [children, actions && _jsx(Actions, { items: actions })] }) }));
79
+ const FieldGroupLegend = ({ children, open, actions, additionalInfo, ...restProps }) => {
80
+ return (_jsx(StyledFieldGroupLegend, { open: open, ...restProps, children: _jsxs(Flex, { container: { alignItems: 'center', justify: 'between', gap: 0.5 }, children: [_jsxs(Flex, { container: { alignItems: 'center', gap: 0.5 }, children: [children, additionalInfo && (_jsx(AdditionalInfo, { heading: additionalInfo.heading, children: additionalInfo.content }))] }), actions && _jsx(Actions, { items: actions })] }) }));
77
81
  };
78
- const FieldGroup = forwardRef(({ children, description, name, actions, collapsible = false, defaultCollapsed = false, ...restProps }, ref) => {
82
+ const FieldGroup = forwardRef(({ children, description, name, additionalInfo, actions, collapsible = false, defaultCollapsed = false, ...restProps }, ref) => {
79
83
  const [open, setOpen] = useState(!defaultCollapsed);
80
84
  const t = useI18n();
81
85
  const uid = useUID();
82
86
  const descAndChildren = (_jsxs(Flex, { container: { direction: 'column', gap: 3 }, children: [description && _jsx(HTML, { id: `${uid}-description`, as: 'p', content: description }), _jsx("div", { children: children })] }));
83
- return (_jsxs(StyledFieldGroup, { "aria-label": name, "aria-describedby": description ? `${uid}-description` : undefined, ...restProps, ref: ref, children: [name && (_jsx(FieldGroupLegend, { open: open, actions: actions, children: collapsible ? (_jsx(Button, { type: 'button', variant: 'text', onClick: () => {
87
+ return (_jsxs(StyledFieldGroup, { "aria-label": name, "aria-describedby": description ? `${uid}-description` : undefined, ...restProps, ref: ref, children: [name && (_jsx(FieldGroupLegend, { open: open, actions: actions, additionalInfo: additionalInfo, children: collapsible ? (_jsx(StyledExpandButton, { type: 'button', variant: 'text', onClick: () => {
84
88
  setOpen(cur => !cur);
85
- }, "aria-expanded": open ? 'true' : 'false', "aria-label": t(open ? 'collapse_noun' : 'expand_noun', [name]), children: _jsxs(Flex, { container: { direction: 'row', alignItems: 'center', gap: 0.5 }, forwardedAs: 'span', children: [_jsx(Icon, { name: 'caret-right' }), _jsx("span", { children: name })] }) })) : (_jsx("span", { children: name })) })), collapsible ? (_jsx(ExpandCollapse, { collapsed: !open, children: descAndChildren })) : (descAndChildren)] }));
89
+ }, "aria-expanded": open ? 'true' : 'false', "aria-label": t(open ? 'collapse_noun' : 'expand_noun', [name]), children: _jsxs(Flex, { container: { direction: 'row', alignItems: 'center', gap: 0.5 }, forwardedAs: 'span', children: [_jsx(Icon, { name: 'caret-right' }), _jsx(StyledFieldGroupName, { children: name })] }) })) : (_jsx(StyledFieldGroupName, { children: name })) })), collapsible ? (_jsx(ExpandCollapse, { collapsed: !open, children: descAndChildren })) : (descAndChildren)] }));
86
90
  });
87
91
  export default FieldGroup;
88
92
  //# sourceMappingURL=FieldGroup.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FieldGroup.js","sourceRoot":"","sources":["../../../src/components/FieldGroup/FieldGroup.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAsD,MAAM,OAAO,CAAC;AACjG,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,MAAM,EAAE,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,IAAI,EAAE,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,IAAI,EAAE,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACzD,OAAO,KAAK,cAAc,MAAM,gCAAgC,CAAC;AACjE,OAAO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,IAAC,SAAS,EAAE,CAAC,IAAI,YAAG,eAAe,GAAkB,CACrE,CAAC,CAAC,CAAC,CACF,eAAe,CAChB,IACgB,CACpB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,UAAU,CAAC","sourcesContent":["import { forwardRef, useState, FunctionComponent, PropsWithoutRef, Ref, ReactNode } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport Button, { StyledButton } from '../Button';\nimport ExpandCollapse from '../ExpandCollapse';\nimport Flex, { StyledFlex } from '../Flex';\nimport HTML from '../HTML';\nimport Icon, { StyledIcon, registerIcon } from '../Icon';\nimport * as caretRightIcon from '../Icon/icons/caret-right.icon';\nimport Actions, { ActionsProps } from '../Actions';\nimport { defaultThemeProp } from '../../theme';\nimport { BaseProps, ForwardProps } from '../../types';\nimport { useI18n, useUID } from '../../hooks';\nimport { calculateFontSize, FontSize } from '../../styles';\n\nregisterIcon(caretRightIcon);\n\nexport interface FieldGroupProps extends BaseProps {\n /** The content of the Field Group. */\n children: ReactNode;\n /** A description of the field group to be displayed above the controls. */\n description?: string;\n /**\n * If true, the Field Group will be able to collapse the content of its children by clicking on the name.\n * @default false\n */\n collapsible?: boolean;\n /**\n * If true, the Field Group will be collapsed on the first render.\n * @default false\n */\n defaultCollapsed?: boolean;\n /** The name associated with the Field Group. */\n name?: string;\n /** An array of actions to add to the header. */\n actions?: ActionsProps['items'];\n /** A reference to the wrapping element. */\n ref?: Ref<HTMLFieldSetElement>;\n}\n\ninterface FieldGroupLegendProps {\n open: boolean;\n actions?: ActionsProps['items'];\n children?: ReactNode;\n}\n\nexport const StyledFieldGroupLegend = styled.legend<{ open: boolean }>(\n ({\n open,\n theme: {\n base: {\n spacing,\n animation,\n 'hit-area': { 'mouse-min': hitAreaMouse, 'finger-min': hitAreaFinger }\n }\n }\n }) => css`\n width: 100%;\n margin-bottom: 0;\n ${open &&\n css`\n margin-block-end: calc(1.5 * ${spacing});\n `}\n transition: margin-block-end ${animation.speed} ${animation.timing.ease};\n\n button ${StyledIcon} {\n transition: transform ${animation.speed} ${animation.timing.ease};\n }\n\n button[aria-expanded='true'] ${StyledIcon} {\n transform: rotate(90deg);\n }\n button[aria-expanded='false'] ${StyledIcon} {\n transform: rotate(0);\n }\n\n > ${StyledFlex} {\n min-height: ${hitAreaMouse};\n\n @media (pointer: 'coarse') {\n min-height: ${hitAreaFinger};\n }\n }\n `\n);\n\nStyledFieldGroupLegend.defaultProps = defaultThemeProp;\n\nexport const StyledFieldGroup = styled.fieldset(\n ({\n theme: {\n base: { 'font-size': fontSize, 'font-scale': fontScale },\n components: { text }\n }\n }) => {\n const fontSizes = calculateFontSize(fontSize, fontScale);\n\n return css`\n border: none;\n\n ${StyledFieldGroupLegend} ${StyledButton} {\n font-weight: inherit;\n }\n\n & ${StyledFieldGroupLegend} {\n font-size: ${fontSizes[text.h3['font-size'] as FontSize]};\n font-weight: ${text.h3['font-weight']};\n }\n\n & & ${StyledFieldGroupLegend} {\n font-size: ${fontSizes[text.h4['font-size'] as FontSize]};\n font-weight: ${text.h4['font-weight']};\n }\n\n & & & ${StyledFieldGroupLegend} {\n font-size: ${fontSizes[text.h5['font-size'] as FontSize]};\n font-weight: ${text.h5['font-weight']};\n }\n\n & & & & ${StyledFieldGroupLegend} {\n font-size: ${fontSizes[text.h6['font-size'] as FontSize]};\n font-weight: ${text.h6['font-weight']};\n }\n `;\n }\n);\n\nStyledFieldGroup.defaultProps = defaultThemeProp;\n\nconst FieldGroupLegend: FunctionComponent<FieldGroupLegendProps> = ({\n children,\n open,\n actions,\n ...restProps\n}) => {\n return (\n <StyledFieldGroupLegend open={open} {...restProps}>\n <Flex container={{ alignItems: 'center', justify: 'between' }}>\n {children}\n {actions && <Actions items={actions} />}\n </Flex>\n </StyledFieldGroupLegend>\n );\n};\n\nconst FieldGroup: FunctionComponent<FieldGroupProps & ForwardProps> = forwardRef(\n (\n {\n children,\n description,\n name,\n actions,\n collapsible = false,\n defaultCollapsed = false,\n ...restProps\n }: PropsWithoutRef<FieldGroupProps>,\n ref: FieldGroupProps['ref']\n ) => {\n const [open, setOpen] = useState(!defaultCollapsed);\n const t = useI18n();\n const uid = useUID();\n\n const descAndChildren = (\n <Flex container={{ direction: 'column', gap: 3 }}>\n {description && <HTML id={`${uid}-description`} as='p' content={description} />}\n <div>{children}</div>\n </Flex>\n );\n\n return (\n <StyledFieldGroup\n aria-label={name}\n aria-describedby={description ? `${uid}-description` : undefined}\n {...restProps}\n ref={ref}\n >\n {name && (\n <FieldGroupLegend open={open} actions={actions}>\n {collapsible ? (\n <Button\n type='button'\n variant='text'\n onClick={() => {\n setOpen(cur => !cur);\n }}\n aria-expanded={open ? 'true' : 'false'}\n aria-label={t(open ? 'collapse_noun' : 'expand_noun', [name])}\n >\n <Flex\n container={{ direction: 'row', alignItems: 'center', gap: 0.5 }}\n forwardedAs='span'\n >\n <Icon name='caret-right' />\n <span>{name}</span>\n </Flex>\n </Button>\n ) : (\n <span>{name}</span>\n )}\n </FieldGroupLegend>\n )}\n {collapsible ? (\n <ExpandCollapse collapsed={!open}>{descAndChildren}</ExpandCollapse>\n ) : (\n descAndChildren\n )}\n </StyledFieldGroup>\n );\n }\n);\n\nexport default FieldGroup;\n"]}
1
+ {"version":3,"file":"FieldGroup.js","sourceRoot":"","sources":["../../../src/components/FieldGroup/FieldGroup.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAsD,MAAM,OAAO,CAAC;AACjG,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,IAAI,EAAE,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACzD,OAAO,KAAK,cAAc,MAAM,gCAAgC,CAAC;AACj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AAE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,YAC3E,WAAW,CAAC,CAAC,CAAC,CACb,KAAC,kBAAkB,IACjB,IAAI,EAAC,QAAQ,EACb,OAAO,EAAC,MAAM,EACd,OAAO,EAAE,GAAG,EAAE;wBACZ,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC;oBACvB,CAAC,mBACc,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,gBAC1B,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,aAAa,EAAE,CAAC,IAAI,CAAC,CAAC,YAE7D,MAAC,IAAI,IACH,SAAS,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAG,EAAE,EAC/D,WAAW,EAAC,MAAM,aAElB,KAAC,IAAI,IAAC,IAAI,EAAC,aAAa,GAAG,EAC3B,KAAC,oBAAoB,cAAE,IAAI,GAAwB,IAC9C,GACY,CACtB,CAAC,CAAC,CAAC,CACF,KAAC,oBAAoB,cAAE,IAAI,GAAwB,CACpD,GACgB,CACpB,EACA,WAAW,CAAC,CAAC,CAAC,CACb,KAAC,cAAc,IAAC,SAAS,EAAE,CAAC,IAAI,YAAG,eAAe,GAAkB,CACrE,CAAC,CAAC,CAAC,CACF,eAAe,CAChB,IACgB,CACpB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,UAAU,CAAC","sourcesContent":["import { forwardRef, useState, FunctionComponent, PropsWithoutRef, Ref, ReactNode } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport Button from '../Button';\nimport ExpandCollapse from '../ExpandCollapse';\nimport Flex from '../Flex';\nimport HTML from '../HTML';\nimport Icon, { StyledIcon, registerIcon } from '../Icon';\nimport * as caretRightIcon from '../Icon/icons/caret-right.icon';\nimport Actions, { ActionsProps } from '../Actions';\nimport { defaultThemeProp } from '../../theme';\nimport { BaseProps, ForwardProps } from '../../types';\nimport { useDirection, useI18n, useUID } from '../../hooks';\nimport { calculateFontSize, FontSize } from '../../styles';\nimport AdditionalInfo, { AdditionalInfoProps } from '../AdditionalInfo';\n\nregisterIcon(caretRightIcon);\n\nexport interface FieldGroupProps extends BaseProps {\n /** The content of the Field Group. */\n children: ReactNode;\n /** A description of the field group to be displayed above the controls. */\n description?: string;\n /**\n * If true, the Field Group will be able to collapse the content of its children by clicking on the name.\n * @default false\n */\n collapsible?: boolean;\n /**\n * If true, the Field Group will be collapsed on the first render.\n * @default false\n */\n defaultCollapsed?: boolean;\n /** The name associated with the Field Group. */\n name?: string;\n /** Provides additional info relevant to the field group. */\n additionalInfo?: {\n heading: AdditionalInfoProps['heading'];\n content: AdditionalInfoProps['children'];\n };\n /** An array of actions to add to the header. */\n actions?: ActionsProps['items'];\n /** A reference to the wrapping element. */\n ref?: Ref<HTMLFieldSetElement>;\n}\n\ninterface FieldGroupLegendProps {\n open: boolean;\n actions?: ActionsProps['items'];\n children?: ReactNode;\n additionalInfo?: FieldGroupProps['additionalInfo'];\n}\n\nconst StyledExpandButton = styled(Button)(\n ({\n theme: {\n base: { animation }\n }\n }) => {\n const { rtl } = useDirection();\n return css`\n ${StyledIcon} {\n transition: transform ${animation.speed} ${animation.timing.ease};\n }\n &[aria-expanded='true'] ${StyledIcon} {\n transform: rotate(90deg);\n }\n &[aria-expanded='false'] ${StyledIcon} {\n transform: rotate(${rtl ? 180 : 0}deg);\n }\n `;\n }\n);\n\nStyledExpandButton.defaultProps = defaultThemeProp;\n\nexport const StyledFieldGroupName = styled.span``;\n\nexport const StyledFieldGroupLegend = styled.legend<{ open: boolean }>(\n ({\n open,\n theme: {\n base: {\n spacing,\n animation,\n 'hit-area': { 'mouse-min': hitAreaMouse, 'finger-min': hitAreaFinger }\n }\n }\n }) => {\n return css`\n width: 100%;\n margin-bottom: 0;\n ${open &&\n css`\n margin-block-end: calc(1.5 * ${spacing});\n `}\n transition: margin-block-end ${animation.speed} ${animation.timing.ease};\n\n > ${StyledExpandButton} {\n min-height: ${hitAreaMouse};\n\n @media (pointer: 'coarse') {\n min-height: ${hitAreaFinger};\n }\n }\n `;\n }\n);\n\nStyledFieldGroupLegend.defaultProps = defaultThemeProp;\n\nexport const StyledFieldGroup = styled.fieldset(\n ({\n theme: {\n base: { 'font-size': fontSize, 'font-scale': fontScale },\n components: { text }\n }\n }) => {\n const fontSizes = calculateFontSize(fontSize, fontScale);\n\n return css`\n border: none;\n\n & ${StyledFieldGroupName} {\n font-size: ${fontSizes[text.h3['font-size'] as FontSize]};\n font-weight: ${text.h3['font-weight']};\n }\n\n & & ${StyledFieldGroupName} {\n font-size: ${fontSizes[text.h4['font-size'] as FontSize]};\n font-weight: ${text.h4['font-weight']};\n }\n\n & & & ${StyledFieldGroupName} {\n font-size: ${fontSizes[text.h5['font-size'] as FontSize]};\n font-weight: ${text.h5['font-weight']};\n }\n\n & & & & ${StyledFieldGroupName} {\n font-size: ${fontSizes[text.h6['font-size'] as FontSize]};\n font-weight: ${text.h6['font-weight']};\n }\n `;\n }\n);\n\nStyledFieldGroup.defaultProps = defaultThemeProp;\n\nconst FieldGroupLegend: FunctionComponent<FieldGroupLegendProps> = ({\n children,\n open,\n actions,\n additionalInfo,\n ...restProps\n}) => {\n return (\n <StyledFieldGroupLegend open={open} {...restProps}>\n <Flex container={{ alignItems: 'center', justify: 'between', gap: 0.5 }}>\n <Flex container={{ alignItems: 'center', gap: 0.5 }}>\n {children}\n {additionalInfo && (\n <AdditionalInfo heading={additionalInfo.heading}>\n {additionalInfo.content}\n </AdditionalInfo>\n )}\n </Flex>\n {actions && <Actions items={actions} />}\n </Flex>\n </StyledFieldGroupLegend>\n );\n};\n\nconst FieldGroup: FunctionComponent<FieldGroupProps & ForwardProps> = forwardRef(\n (\n {\n children,\n description,\n name,\n additionalInfo,\n actions,\n collapsible = false,\n defaultCollapsed = false,\n ...restProps\n }: PropsWithoutRef<FieldGroupProps>,\n ref: FieldGroupProps['ref']\n ) => {\n const [open, setOpen] = useState(!defaultCollapsed);\n const t = useI18n();\n const uid = useUID();\n\n const descAndChildren = (\n <Flex container={{ direction: 'column', gap: 3 }}>\n {description && <HTML id={`${uid}-description`} as='p' content={description} />}\n <div>{children}</div>\n </Flex>\n );\n\n return (\n <StyledFieldGroup\n aria-label={name}\n aria-describedby={description ? `${uid}-description` : undefined}\n {...restProps}\n ref={ref}\n >\n {name && (\n <FieldGroupLegend open={open} actions={actions} additionalInfo={additionalInfo}>\n {collapsible ? (\n <StyledExpandButton\n type='button'\n variant='text'\n onClick={() => {\n setOpen(cur => !cur);\n }}\n aria-expanded={open ? 'true' : 'false'}\n aria-label={t(open ? 'collapse_noun' : 'expand_noun', [name])}\n >\n <Flex\n container={{ direction: 'row', alignItems: 'center', gap: 0.5 }}\n forwardedAs='span'\n >\n <Icon name='caret-right' />\n <StyledFieldGroupName>{name}</StyledFieldGroupName>\n </Flex>\n </StyledExpandButton>\n ) : (\n <StyledFieldGroupName>{name}</StyledFieldGroupName>\n )}\n </FieldGroupLegend>\n )}\n {collapsible ? (\n <ExpandCollapse collapsed={!open}>{descAndChildren}</ExpandCollapse>\n ) : (\n descAndChildren\n )}\n </StyledFieldGroup>\n );\n }\n);\n\nexport default FieldGroup;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"FieldGroupList.d.ts","sourceRoot":"","sources":["../../../src/components/FieldGroup/FieldGroupList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAA+B,GAAG,EAAE,MAAM,OAAO,CAAC;AAG5E,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAO3C,OAAmB,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAI3D,MAAM,WAAW,uBAAwB,SAAQ,eAAe;IAC9D,0CAA0C;IAC1C,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,uBAAuB,EAAE,CAAC;IACjC,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CAC3B;AAWD,eAAO,MAAM,cAAc,qJAe1B,CAAC;AAaF,QAAA,MAAM,cAAc,EAAE,iBAAiB,CAAC,mBAAmB,GAAG,YAAY,CA6CzE,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"FieldGroupList.d.ts","sourceRoot":"","sources":["../../../src/components/FieldGroup/FieldGroupList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAA+B,GAAG,EAAE,MAAM,OAAO,CAAC;AAG5E,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAO3C,OAAmB,EAAE,eAAe,EAAoB,MAAM,cAAc,CAAC;AAI7E,MAAM,WAAW,uBAAwB,SAAQ,eAAe;IAC9D,0CAA0C;IAC1C,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,uBAAuB,EAAE,CAAC;IACjC,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CAC3B;AAeD,eAAO,MAAM,cAAc,qJAe1B,CAAC;AAaF,QAAA,MAAM,cAAc,EAAE,iBAAiB,CAAC,mBAAmB,GAAG,YAAY,CA6CzE,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -6,10 +6,14 @@ 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 `
@@ -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,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,UAA+B,MAAM,cAAc,CAAC;AAE3D,YAAY,CAAC,QAAQ,CAAC,CAAC;AAcvB,MAAM,oBAAoB,GAAG,MAAM,CAAC,GAAG,CACrC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CACZ,GAAG,CAAA;oBACa,KAAK,CAAC,IAAI,CAAC,OAAO;KACjC,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,OA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C,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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AQ,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, 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-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,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,wGA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 +1,13 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Fragment, useState, useLayoutEffect, useRef, useMemo } from 'react';
3
- import styled from 'styled-components';
4
- import { defaultThemeProp } from '../../theme';
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
8
  import { 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
  `;
@@ -15,10 +15,32 @@ export const StyledFieldValue = styled.dd `
15
15
  word-break: break-word;
16
16
  overflow: auto;
17
17
  `;
18
- export const StyledFieldValueList = styled.dl `
19
- width: 100%;
20
- `;
18
+ export const StyledFieldValueList = styled.dl(({ variant, theme }) => {
19
+ return css `
20
+ width: 100%;
21
+
22
+ ${variant === 'value-comparison' &&
23
+ css `
24
+ dt {
25
+ width: 100%;
26
+ }
27
+ dd {
28
+ text-align: end;
29
+ padding-inline-start: calc(2 * ${theme.base.spacing});
30
+ }
31
+ ${StyledLabel} {
32
+ max-width: unset;
33
+ }
34
+ dd:not(:last-of-type),
35
+ dt:not(:last-of-type) {
36
+ border-bottom: 0.0625rem solid ${theme.base.palette['border-line']};
37
+ padding-bottom: calc(0.5 * ${theme.base.spacing});
38
+ }
39
+ `}
40
+ `;
41
+ });
21
42
  StyledFieldValueList.defaultProps = defaultThemeProp;
43
+ export const StyledStackedFieldValue = styled.div ``;
22
44
  const DynamicHeightValue = ({ children }) => {
23
45
  const [collapsed, setCollapsed] = useState(true);
24
46
  const [exceedsMaxHeight, setExceedsMaxHeight] = useState(false);
@@ -46,17 +68,23 @@ const DynamicHeightValue = ({ children }) => {
46
68
  observer.disconnect();
47
69
  };
48
70
  }, [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') }))] }));
71
+ 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') }))] }));
72
+ };
73
+ export const FieldValueItem = ({ name, value, variant = 'inline' }) => {
74
+ const Wrapper = variant === 'stacked' ? StyledStackedFieldValue : Fragment;
75
+ const displayValue = typeof value === 'string' ? _jsx(DynamicHeightValue, { children: value }) : value;
76
+ return (_jsxs(Wrapper, { children: [_jsx(StyledLabel, { as: StyledFieldName, children: name }), _jsx(StyledFieldValue, { children: value ? displayValue : _jsx("span", { "aria-hidden": 'true', children: "\u2013\u2013" }) })] }));
50
77
  };
51
78
  const FieldValueList = ({ fields, variant = 'inline', ...restProps }) => {
52
- const Wrapper = variant === 'inline' ? Fragment : 'div';
53
79
  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));
80
+ cols: ['inline', 'value-comparison'].includes(variant)
81
+ ? '16ch minmax(0, 1fr)'
82
+ : 'minmax(0, 1fr)',
83
+ colGap: variant !== 'value-comparison' ? 2 : 0,
84
+ rowGap: variant !== 'value-comparison' ? 1 : 0.5
85
+ }, as: StyledFieldValueList, variant: variant, children: fields.map(({ id, name, value, variant: fieldVariant }) => {
86
+ const useVariant = fieldVariant ?? variant;
87
+ return (_jsx(FieldValueItem, { name: name, value: value, variant: useVariant === 'stacked' ? 'stacked' : 'inline' }, id ?? name));
60
88
  }) }));
61
89
  };
62
90
  export default FieldValueList;
@@ -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,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IAAI,GAAe,EACtD,KAAC,gBAAgB,cACd,KAAK,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,8BAAkB,MAAM,6BAAsB,GACpD,KAJP,EAAE,IAAI,IAAI,CAKd,CACX,CAAC;QACJ,CAAC,CAAC,GACG,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC","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,EACR,MAAM,OAAO,CAAC;AACf,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,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AO,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,MAAM,UAAU,GAAG,YAAY,IAAI,OAAO,CAAC;YAC3C,OAAO,CACL,KAAC,cAAc,IACb,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,IACnD,EAAE,IAAI,IAAI,CACf,CACH,CAAC;QACJ,CAAC,CAAC,GACG,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC","sourcesContent":["import {\n ReactNode,\n Fragment,\n FunctionComponent,\n useState,\n useLayoutEffect,\n useRef,\n useMemo\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 { 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 overflow: auto;\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> = ({\n fields,\n variant = 'inline',\n ...restProps\n}: FieldValueListProps) => {\n return (\n <Grid\n {...restProps}\n container={{\n cols: ['inline', 'value-comparison'].includes(variant)\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 const useVariant = fieldVariant ?? variant;\n return (\n <FieldValueItem\n name={name}\n value={value}\n variant={useVariant === 'stacked' ? 'stacked' : 'inline'}\n key={id ?? name}\n />\n );\n })}\n </Grid>\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,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
@@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