@pega/cosmos-react-core 5.0.0-dev.1.0 → 5.0.0-dev.2.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 (1525) hide show
  1. package/lib/components/AIButton/AIButton.d.ts +3 -3
  2. package/lib/components/AIButton/AIButton.d.ts.map +1 -1
  3. package/lib/components/AIButton/AIButton.js.map +1 -1
  4. package/lib/components/Actions/Actions.d.ts +5 -7
  5. package/lib/components/Actions/Actions.d.ts.map +1 -1
  6. package/lib/components/Actions/Actions.js +1 -2
  7. package/lib/components/Actions/Actions.js.map +1 -1
  8. package/lib/components/AdditionalInfo/AdditionalInfo.d.ts +6 -7
  9. package/lib/components/AdditionalInfo/AdditionalInfo.d.ts.map +1 -1
  10. package/lib/components/AdditionalInfo/AdditionalInfo.js +1 -2
  11. package/lib/components/AdditionalInfo/AdditionalInfo.js.map +1 -1
  12. package/lib/components/AppShell/AppShell.d.ts.map +1 -1
  13. package/lib/components/AppShell/AppShell.js +1 -2
  14. package/lib/components/AppShell/AppShell.js.map +1 -1
  15. package/lib/components/AppShell/AppShell.styles.d.ts +1 -1
  16. package/lib/components/AppShell/AppShell.styles.d.ts.map +1 -1
  17. package/lib/components/AppShell/AppShell.styles.js +2 -1
  18. package/lib/components/AppShell/AppShell.styles.js.map +1 -1
  19. package/lib/components/Avatar/Avatar.d.ts +1 -1
  20. package/lib/components/Avatar/Avatar.d.ts.map +1 -1
  21. package/lib/components/Avatar/Avatar.js +21 -21
  22. package/lib/components/Avatar/Avatar.js.map +1 -1
  23. package/lib/components/Backdrop/Backdrop.d.ts +6 -13
  24. package/lib/components/Backdrop/Backdrop.d.ts.map +1 -1
  25. package/lib/components/Backdrop/Backdrop.js +24 -25
  26. package/lib/components/Backdrop/Backdrop.js.map +1 -1
  27. package/lib/components/Badges/Alert.d.ts +9 -7
  28. package/lib/components/Badges/Alert.d.ts.map +1 -1
  29. package/lib/components/Badges/Alert.js +1 -3
  30. package/lib/components/Badges/Alert.js.map +1 -1
  31. package/lib/components/Badges/Count.d.ts +5 -6
  32. package/lib/components/Badges/Count.d.ts.map +1 -1
  33. package/lib/components/Badges/Count.js +1 -3
  34. package/lib/components/Badges/Count.js.map +1 -1
  35. package/lib/components/Badges/Keyboard.d.ts +5 -6
  36. package/lib/components/Badges/Keyboard.d.ts.map +1 -1
  37. package/lib/components/Badges/Keyboard.js +4 -4
  38. package/lib/components/Badges/Keyboard.js.map +1 -1
  39. package/lib/components/Badges/Status.d.ts +12 -7
  40. package/lib/components/Badges/Status.d.ts.map +1 -1
  41. package/lib/components/Badges/Status.js +1 -5
  42. package/lib/components/Badges/Status.js.map +1 -1
  43. package/lib/components/Banner/Banner.d.ts +8 -12
  44. package/lib/components/Banner/Banner.d.ts.map +1 -1
  45. package/lib/components/Banner/Banner.js +1 -2
  46. package/lib/components/Banner/Banner.js.map +1 -1
  47. package/lib/components/Boolean/BooleanDisplay.d.ts +6 -10
  48. package/lib/components/Boolean/BooleanDisplay.d.ts.map +1 -1
  49. package/lib/components/Boolean/BooleanDisplay.js +1 -2
  50. package/lib/components/Boolean/BooleanDisplay.js.map +1 -1
  51. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.d.ts.map +1 -1
  52. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.js +7 -3
  53. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.js.map +1 -1
  54. package/lib/components/Currency/CurrencyInput.d.ts.map +1 -1
  55. package/lib/components/Currency/CurrencyInput.js +4 -2
  56. package/lib/components/Currency/CurrencyInput.js.map +1 -1
  57. package/lib/components/DangerButton/DangerButton.d.ts +5 -5
  58. package/lib/components/DangerButton/DangerButton.d.ts.map +1 -1
  59. package/lib/components/DangerButton/DangerButton.js +1 -2
  60. package/lib/components/DangerButton/DangerButton.js.map +1 -1
  61. package/lib/components/DateTime/Input/DateInput.js +2 -3
  62. package/lib/components/DateTime/Input/DateInput.js.map +1 -1
  63. package/lib/components/DateTime/Input/DateTime.styles.d.ts +4 -0
  64. package/lib/components/DateTime/Input/DateTime.styles.d.ts.map +1 -1
  65. package/lib/components/DateTime/Input/DateTime.styles.js +5 -0
  66. package/lib/components/DateTime/Input/DateTime.styles.js.map +1 -1
  67. package/lib/components/DateTime/Input/DateTimeInput.js +2 -3
  68. package/lib/components/DateTime/Input/DateTimeInput.js.map +1 -1
  69. package/lib/components/DateTime/Input/WeekInput.js +2 -3
  70. package/lib/components/DateTime/Input/WeekInput.js.map +1 -1
  71. package/lib/components/Dialog/InfoDialog.d.ts.map +1 -1
  72. package/lib/components/Dialog/InfoDialog.js +1 -1
  73. package/lib/components/Dialog/InfoDialog.js.map +1 -1
  74. package/lib/components/File/FileInput.d.ts +2 -0
  75. package/lib/components/File/FileInput.d.ts.map +1 -1
  76. package/lib/components/File/FileInput.js +3 -2
  77. package/lib/components/File/FileInput.js.map +1 -1
  78. package/lib/components/FormField/FormField.d.ts +4 -1
  79. package/lib/components/FormField/FormField.d.ts.map +1 -1
  80. package/lib/components/FormField/FormField.js +50 -15
  81. package/lib/components/FormField/FormField.js.map +1 -1
  82. package/lib/components/HTML/HTML.d.ts.map +1 -1
  83. package/lib/components/HTML/HTML.js +35 -32
  84. package/lib/components/HTML/HTML.js.map +1 -1
  85. package/lib/components/Icon/streamline-icons/ai-assist.icon.d.ts +5 -0
  86. package/lib/components/Icon/streamline-icons/ai-assist.icon.d.ts.map +1 -0
  87. package/lib/components/Icon/streamline-icons/ai-assist.icon.js +7 -0
  88. package/lib/components/Icon/streamline-icons/ai-assist.icon.js.map +1 -0
  89. package/lib/components/Icon/streamline-icons/alexa.icon.d.ts +1 -1
  90. package/lib/components/Icon/streamline-icons/alexa.icon.d.ts.map +1 -1
  91. package/lib/components/Icon/streamline-icons/alexa.icon.js +2 -2
  92. package/lib/components/Icon/streamline-icons/alexa.icon.js.map +1 -1
  93. package/lib/components/Icon/streamline-icons/align-center.icon.d.ts +1 -1
  94. package/lib/components/Icon/streamline-icons/align-center.icon.d.ts.map +1 -1
  95. package/lib/components/Icon/streamline-icons/align-center.icon.js +2 -2
  96. package/lib/components/Icon/streamline-icons/align-center.icon.js.map +1 -1
  97. package/lib/components/Icon/streamline-icons/align-left.icon.d.ts +1 -1
  98. package/lib/components/Icon/streamline-icons/align-left.icon.d.ts.map +1 -1
  99. package/lib/components/Icon/streamline-icons/align-left.icon.js +2 -2
  100. package/lib/components/Icon/streamline-icons/align-left.icon.js.map +1 -1
  101. package/lib/components/Icon/streamline-icons/align-right.icon.d.ts +1 -1
  102. package/lib/components/Icon/streamline-icons/align-right.icon.d.ts.map +1 -1
  103. package/lib/components/Icon/streamline-icons/align-right.icon.js +2 -2
  104. package/lib/components/Icon/streamline-icons/align-right.icon.js.map +1 -1
  105. package/lib/components/Icon/streamline-icons/amazon.icon.d.ts +5 -0
  106. package/lib/components/Icon/streamline-icons/amazon.icon.d.ts.map +1 -0
  107. package/lib/components/Icon/streamline-icons/amazon.icon.js +7 -0
  108. package/lib/components/Icon/streamline-icons/amazon.icon.js.map +1 -0
  109. package/lib/components/Icon/streamline-icons/api.icon.d.ts +1 -1
  110. package/lib/components/Icon/streamline-icons/api.icon.d.ts.map +1 -1
  111. package/lib/components/Icon/streamline-icons/api.icon.js +2 -2
  112. package/lib/components/Icon/streamline-icons/api.icon.js.map +1 -1
  113. package/lib/components/Icon/streamline-icons/app.icon.d.ts +1 -1
  114. package/lib/components/Icon/streamline-icons/app.icon.d.ts.map +1 -1
  115. package/lib/components/Icon/streamline-icons/app.icon.js +2 -2
  116. package/lib/components/Icon/streamline-icons/app.icon.js.map +1 -1
  117. package/lib/components/Icon/streamline-icons/arrow-above-row-right.icon.d.ts +1 -1
  118. package/lib/components/Icon/streamline-icons/arrow-above-row-right.icon.d.ts.map +1 -1
  119. package/lib/components/Icon/streamline-icons/arrow-above-row-right.icon.js +2 -2
  120. package/lib/components/Icon/streamline-icons/arrow-above-row-right.icon.js.map +1 -1
  121. package/lib/components/Icon/streamline-icons/arrow-bend-left.icon.d.ts +1 -1
  122. package/lib/components/Icon/streamline-icons/arrow-bend-left.icon.d.ts.map +1 -1
  123. package/lib/components/Icon/streamline-icons/arrow-bend-left.icon.js +2 -2
  124. package/lib/components/Icon/streamline-icons/arrow-bend-left.icon.js.map +1 -1
  125. package/lib/components/Icon/streamline-icons/arrow-down.icon.d.ts +5 -0
  126. package/lib/components/Icon/streamline-icons/arrow-down.icon.d.ts.map +1 -0
  127. package/lib/components/Icon/streamline-icons/arrow-down.icon.js +7 -0
  128. package/lib/components/Icon/streamline-icons/arrow-down.icon.js.map +1 -0
  129. package/lib/components/Icon/streamline-icons/arrow-left-column.icon.d.ts +5 -0
  130. package/lib/components/Icon/streamline-icons/arrow-left-column.icon.d.ts.map +1 -0
  131. package/lib/components/Icon/streamline-icons/arrow-left-column.icon.js +7 -0
  132. package/lib/components/Icon/streamline-icons/arrow-left-column.icon.js.map +1 -0
  133. package/lib/components/Icon/streamline-icons/arrow-left.icon.d.ts +1 -1
  134. package/lib/components/Icon/streamline-icons/arrow-left.icon.d.ts.map +1 -1
  135. package/lib/components/Icon/streamline-icons/arrow-left.icon.js +2 -2
  136. package/lib/components/Icon/streamline-icons/arrow-left.icon.js.map +1 -1
  137. package/lib/components/Icon/streamline-icons/arrow-micro-down.icon.d.ts +5 -0
  138. package/lib/components/Icon/streamline-icons/arrow-micro-down.icon.d.ts.map +1 -0
  139. package/lib/components/Icon/streamline-icons/arrow-micro-down.icon.js +7 -0
  140. package/lib/components/Icon/streamline-icons/arrow-micro-down.icon.js.map +1 -0
  141. package/lib/components/Icon/streamline-icons/arrow-micro-left.icon.d.ts +5 -0
  142. package/lib/components/Icon/streamline-icons/arrow-micro-left.icon.d.ts.map +1 -0
  143. package/lib/components/Icon/streamline-icons/arrow-micro-left.icon.js +7 -0
  144. package/lib/components/Icon/streamline-icons/arrow-micro-left.icon.js.map +1 -0
  145. package/lib/components/Icon/streamline-icons/arrow-micro-right.icon.d.ts +5 -0
  146. package/lib/components/Icon/streamline-icons/arrow-micro-right.icon.d.ts.map +1 -0
  147. package/lib/components/Icon/streamline-icons/arrow-micro-right.icon.js +7 -0
  148. package/lib/components/Icon/streamline-icons/arrow-micro-right.icon.js.map +1 -0
  149. package/lib/components/Icon/streamline-icons/arrow-micro-up.icon.d.ts +5 -0
  150. package/lib/components/Icon/streamline-icons/arrow-micro-up.icon.d.ts.map +1 -0
  151. package/lib/components/Icon/streamline-icons/arrow-micro-up.icon.js +7 -0
  152. package/lib/components/Icon/streamline-icons/arrow-micro-up.icon.js.map +1 -0
  153. package/lib/components/Icon/streamline-icons/arrow-out.icon.d.ts +1 -1
  154. package/lib/components/Icon/streamline-icons/arrow-out.icon.d.ts.map +1 -1
  155. package/lib/components/Icon/streamline-icons/arrow-out.icon.js +2 -2
  156. package/lib/components/Icon/streamline-icons/arrow-out.icon.js.map +1 -1
  157. package/lib/components/Icon/streamline-icons/arrow-right-column.icon.d.ts +5 -0
  158. package/lib/components/Icon/streamline-icons/arrow-right-column.icon.d.ts.map +1 -0
  159. package/lib/components/Icon/streamline-icons/arrow-right-column.icon.js +7 -0
  160. package/lib/components/Icon/streamline-icons/arrow-right-column.icon.js.map +1 -0
  161. package/lib/components/Icon/streamline-icons/arrow-right.icon.d.ts +5 -0
  162. package/lib/components/Icon/streamline-icons/arrow-right.icon.d.ts.map +1 -0
  163. package/lib/components/Icon/streamline-icons/arrow-right.icon.js +7 -0
  164. package/lib/components/Icon/streamline-icons/arrow-right.icon.js.map +1 -0
  165. package/lib/components/Icon/streamline-icons/arrow-up-down.icon.d.ts +1 -1
  166. package/lib/components/Icon/streamline-icons/arrow-up-down.icon.d.ts.map +1 -1
  167. package/lib/components/Icon/streamline-icons/arrow-up-down.icon.js +2 -2
  168. package/lib/components/Icon/streamline-icons/arrow-up-down.icon.js.map +1 -1
  169. package/lib/components/Icon/streamline-icons/arrow-up.icon.d.ts +5 -0
  170. package/lib/components/Icon/streamline-icons/arrow-up.icon.d.ts.map +1 -0
  171. package/lib/components/Icon/streamline-icons/arrow-up.icon.js +7 -0
  172. package/lib/components/Icon/streamline-icons/arrow-up.icon.js.map +1 -0
  173. package/lib/components/Icon/streamline-icons/bank.icon.d.ts +1 -1
  174. package/lib/components/Icon/streamline-icons/bank.icon.d.ts.map +1 -1
  175. package/lib/components/Icon/streamline-icons/bank.icon.js +3 -3
  176. package/lib/components/Icon/streamline-icons/bank.icon.js.map +1 -1
  177. package/lib/components/Icon/streamline-icons/bars.icon.d.ts +1 -1
  178. package/lib/components/Icon/streamline-icons/bars.icon.d.ts.map +1 -1
  179. package/lib/components/Icon/streamline-icons/bars.icon.js +2 -2
  180. package/lib/components/Icon/streamline-icons/bars.icon.js.map +1 -1
  181. package/lib/components/Icon/streamline-icons/bell-push-notification.icon.d.ts +1 -1
  182. package/lib/components/Icon/streamline-icons/bell-push-notification.icon.d.ts.map +1 -1
  183. package/lib/components/Icon/streamline-icons/bell-push-notification.icon.js +3 -3
  184. package/lib/components/Icon/streamline-icons/bell-push-notification.icon.js.map +1 -1
  185. package/lib/components/Icon/streamline-icons/bell.icon.d.ts +1 -1
  186. package/lib/components/Icon/streamline-icons/bell.icon.d.ts.map +1 -1
  187. package/lib/components/Icon/streamline-icons/bell.icon.js +2 -2
  188. package/lib/components/Icon/streamline-icons/bell.icon.js.map +1 -1
  189. package/lib/components/Icon/streamline-icons/bluetooth.icon.d.ts +5 -0
  190. package/lib/components/Icon/streamline-icons/bluetooth.icon.d.ts.map +1 -0
  191. package/lib/components/Icon/streamline-icons/bluetooth.icon.js +7 -0
  192. package/lib/components/Icon/streamline-icons/bluetooth.icon.js.map +1 -0
  193. package/lib/components/Icon/streamline-icons/book-open.icon.d.ts +1 -1
  194. package/lib/components/Icon/streamline-icons/book-open.icon.d.ts.map +1 -1
  195. package/lib/components/Icon/streamline-icons/book-open.icon.js +2 -2
  196. package/lib/components/Icon/streamline-icons/book-open.icon.js.map +1 -1
  197. package/lib/components/Icon/streamline-icons/bookmark.icon.d.ts +5 -0
  198. package/lib/components/Icon/streamline-icons/bookmark.icon.d.ts.map +1 -0
  199. package/lib/components/Icon/streamline-icons/bookmark.icon.js +7 -0
  200. package/lib/components/Icon/streamline-icons/bookmark.icon.js.map +1 -0
  201. package/lib/components/Icon/streamline-icons/box-4.icon.d.ts +1 -1
  202. package/lib/components/Icon/streamline-icons/box-4.icon.d.ts.map +1 -1
  203. package/lib/components/Icon/streamline-icons/box-4.icon.js +3 -3
  204. package/lib/components/Icon/streamline-icons/box-4.icon.js.map +1 -1
  205. package/lib/components/Icon/streamline-icons/box.icon.d.ts +5 -0
  206. package/lib/components/Icon/streamline-icons/box.icon.d.ts.map +1 -0
  207. package/lib/components/Icon/streamline-icons/box.icon.js +7 -0
  208. package/lib/components/Icon/streamline-icons/box.icon.js.map +1 -0
  209. package/lib/components/Icon/streamline-icons/browser-code.icon.d.ts +1 -1
  210. package/lib/components/Icon/streamline-icons/browser-code.icon.d.ts.map +1 -1
  211. package/lib/components/Icon/streamline-icons/browser-code.icon.js +2 -2
  212. package/lib/components/Icon/streamline-icons/browser-code.icon.js.map +1 -1
  213. package/lib/components/Icon/streamline-icons/browser.icon.d.ts +1 -1
  214. package/lib/components/Icon/streamline-icons/browser.icon.d.ts.map +1 -1
  215. package/lib/components/Icon/streamline-icons/browser.icon.js +2 -2
  216. package/lib/components/Icon/streamline-icons/browser.icon.js.map +1 -1
  217. package/lib/components/Icon/streamline-icons/bug.icon.d.ts +1 -1
  218. package/lib/components/Icon/streamline-icons/bug.icon.d.ts.map +1 -1
  219. package/lib/components/Icon/streamline-icons/bug.icon.js +2 -2
  220. package/lib/components/Icon/streamline-icons/bug.icon.js.map +1 -1
  221. package/lib/components/Icon/streamline-icons/building-2.icon.d.ts +1 -1
  222. package/lib/components/Icon/streamline-icons/building-2.icon.d.ts.map +1 -1
  223. package/lib/components/Icon/streamline-icons/building-2.icon.js +2 -2
  224. package/lib/components/Icon/streamline-icons/building-2.icon.js.map +1 -1
  225. package/lib/components/Icon/streamline-icons/building-3.icon.d.ts +1 -1
  226. package/lib/components/Icon/streamline-icons/building-3.icon.js +3 -3
  227. package/lib/components/Icon/streamline-icons/building-3.icon.js.map +1 -1
  228. package/lib/components/Icon/streamline-icons/bulb.icon.d.ts +1 -1
  229. package/lib/components/Icon/streamline-icons/bulb.icon.d.ts.map +1 -1
  230. package/lib/components/Icon/streamline-icons/bulb.icon.js +2 -2
  231. package/lib/components/Icon/streamline-icons/bulb.icon.js.map +1 -1
  232. package/lib/components/Icon/streamline-icons/calendar-empty.icon.d.ts +1 -1
  233. package/lib/components/Icon/streamline-icons/calendar-empty.icon.d.ts.map +1 -1
  234. package/lib/components/Icon/streamline-icons/calendar-empty.icon.js +2 -2
  235. package/lib/components/Icon/streamline-icons/calendar-empty.icon.js.map +1 -1
  236. package/lib/components/Icon/streamline-icons/calendar-range.icon.d.ts +1 -1
  237. package/lib/components/Icon/streamline-icons/calendar-range.icon.d.ts.map +1 -1
  238. package/lib/components/Icon/streamline-icons/calendar-range.icon.js +2 -2
  239. package/lib/components/Icon/streamline-icons/calendar-range.icon.js.map +1 -1
  240. package/lib/components/Icon/streamline-icons/calendar.icon.d.ts +5 -0
  241. package/lib/components/Icon/streamline-icons/calendar.icon.d.ts.map +1 -0
  242. package/lib/components/Icon/streamline-icons/calendar.icon.js +7 -0
  243. package/lib/components/Icon/streamline-icons/calendar.icon.js.map +1 -0
  244. package/lib/components/Icon/streamline-icons/car.icon.d.ts +1 -1
  245. package/lib/components/Icon/streamline-icons/car.icon.d.ts.map +1 -1
  246. package/lib/components/Icon/streamline-icons/car.icon.js +2 -2
  247. package/lib/components/Icon/streamline-icons/car.icon.js.map +1 -1
  248. package/lib/components/Icon/streamline-icons/caret-down.icon.d.ts +1 -1
  249. package/lib/components/Icon/streamline-icons/caret-down.icon.d.ts.map +1 -1
  250. package/lib/components/Icon/streamline-icons/caret-down.icon.js +2 -2
  251. package/lib/components/Icon/streamline-icons/caret-down.icon.js.map +1 -1
  252. package/lib/components/Icon/streamline-icons/caret-left.icon.d.ts +1 -1
  253. package/lib/components/Icon/streamline-icons/caret-left.icon.d.ts.map +1 -1
  254. package/lib/components/Icon/streamline-icons/caret-left.icon.js +2 -2
  255. package/lib/components/Icon/streamline-icons/caret-left.icon.js.map +1 -1
  256. package/lib/components/Icon/streamline-icons/caret-right.icon.d.ts +1 -1
  257. package/lib/components/Icon/streamline-icons/caret-right.icon.d.ts.map +1 -1
  258. package/lib/components/Icon/streamline-icons/caret-right.icon.js +2 -2
  259. package/lib/components/Icon/streamline-icons/caret-right.icon.js.map +1 -1
  260. package/lib/components/Icon/streamline-icons/caret-up.icon.d.ts +5 -0
  261. package/lib/components/Icon/streamline-icons/caret-up.icon.d.ts.map +1 -0
  262. package/lib/components/Icon/streamline-icons/caret-up.icon.js +7 -0
  263. package/lib/components/Icon/streamline-icons/caret-up.icon.js.map +1 -0
  264. package/lib/components/Icon/streamline-icons/case-medical.icon.d.ts +1 -1
  265. package/lib/components/Icon/streamline-icons/case-medical.icon.d.ts.map +1 -1
  266. package/lib/components/Icon/streamline-icons/case-medical.icon.js +2 -2
  267. package/lib/components/Icon/streamline-icons/case-medical.icon.js.map +1 -1
  268. package/lib/components/Icon/streamline-icons/case-solid.icon.d.ts +1 -1
  269. package/lib/components/Icon/streamline-icons/case-solid.icon.js +3 -3
  270. package/lib/components/Icon/streamline-icons/case-solid.icon.js.map +1 -1
  271. package/lib/components/Icon/streamline-icons/case.icon.d.ts +1 -1
  272. package/lib/components/Icon/streamline-icons/case.icon.d.ts.map +1 -1
  273. package/lib/components/Icon/streamline-icons/case.icon.js +2 -2
  274. package/lib/components/Icon/streamline-icons/case.icon.js.map +1 -1
  275. package/lib/components/Icon/streamline-icons/chain.icon.d.ts +1 -1
  276. package/lib/components/Icon/streamline-icons/chain.icon.d.ts.map +1 -1
  277. package/lib/components/Icon/streamline-icons/chain.icon.js +2 -2
  278. package/lib/components/Icon/streamline-icons/chain.icon.js.map +1 -1
  279. package/lib/components/Icon/streamline-icons/chart-line.icon.d.ts +5 -0
  280. package/lib/components/Icon/streamline-icons/chart-line.icon.d.ts.map +1 -0
  281. package/lib/components/Icon/streamline-icons/chart-line.icon.js +7 -0
  282. package/lib/components/Icon/streamline-icons/chart-line.icon.js.map +1 -0
  283. package/lib/components/Icon/streamline-icons/chart-pie.icon.d.ts +5 -0
  284. package/lib/components/Icon/streamline-icons/chart-pie.icon.d.ts.map +1 -0
  285. package/lib/components/Icon/streamline-icons/chart-pie.icon.js +7 -0
  286. package/lib/components/Icon/streamline-icons/chart-pie.icon.js.map +1 -0
  287. package/lib/components/Icon/streamline-icons/chat-check.icon.d.ts +1 -1
  288. package/lib/components/Icon/streamline-icons/chat-check.icon.d.ts.map +1 -1
  289. package/lib/components/Icon/streamline-icons/chat-check.icon.js +2 -2
  290. package/lib/components/Icon/streamline-icons/chat-check.icon.js.map +1 -1
  291. package/lib/components/Icon/streamline-icons/chat-exclamation-mark.icon.d.ts +1 -1
  292. package/lib/components/Icon/streamline-icons/chat-exclamation-mark.icon.d.ts.map +1 -1
  293. package/lib/components/Icon/streamline-icons/chat-exclamation-mark.icon.js +2 -2
  294. package/lib/components/Icon/streamline-icons/chat-exclamation-mark.icon.js.map +1 -1
  295. package/lib/components/Icon/streamline-icons/chat-help.icon.d.ts +1 -1
  296. package/lib/components/Icon/streamline-icons/chat-help.icon.d.ts.map +1 -1
  297. package/lib/components/Icon/streamline-icons/chat-help.icon.js +2 -2
  298. package/lib/components/Icon/streamline-icons/chat-help.icon.js.map +1 -1
  299. package/lib/components/Icon/streamline-icons/chat-quote.icon.d.ts +1 -1
  300. package/lib/components/Icon/streamline-icons/chat-quote.icon.d.ts.map +1 -1
  301. package/lib/components/Icon/streamline-icons/chat-quote.icon.js +2 -2
  302. package/lib/components/Icon/streamline-icons/chat-quote.icon.js.map +1 -1
  303. package/lib/components/Icon/streamline-icons/chat-transfer.icon.d.ts +5 -0
  304. package/lib/components/Icon/streamline-icons/chat-transfer.icon.d.ts.map +1 -0
  305. package/lib/components/Icon/streamline-icons/chat-transfer.icon.js +7 -0
  306. package/lib/components/Icon/streamline-icons/chat-transfer.icon.js.map +1 -0
  307. package/lib/components/Icon/streamline-icons/chat-typing.icon.d.ts +1 -1
  308. package/lib/components/Icon/streamline-icons/chat-typing.icon.d.ts.map +1 -1
  309. package/lib/components/Icon/streamline-icons/chat-typing.icon.js +2 -2
  310. package/lib/components/Icon/streamline-icons/chat-typing.icon.js.map +1 -1
  311. package/lib/components/Icon/streamline-icons/chat-unavailable.icon.d.ts +1 -1
  312. package/lib/components/Icon/streamline-icons/chat-unavailable.icon.d.ts.map +1 -1
  313. package/lib/components/Icon/streamline-icons/chat-unavailable.icon.js +2 -2
  314. package/lib/components/Icon/streamline-icons/chat-unavailable.icon.js.map +1 -1
  315. package/lib/components/Icon/streamline-icons/chat.icon.d.ts +1 -1
  316. package/lib/components/Icon/streamline-icons/chat.icon.d.ts.map +1 -1
  317. package/lib/components/Icon/streamline-icons/chat.icon.js +2 -2
  318. package/lib/components/Icon/streamline-icons/chat.icon.js.map +1 -1
  319. package/lib/components/Icon/streamline-icons/chats.icon.d.ts +1 -1
  320. package/lib/components/Icon/streamline-icons/chats.icon.d.ts.map +1 -1
  321. package/lib/components/Icon/streamline-icons/chats.icon.js +2 -2
  322. package/lib/components/Icon/streamline-icons/chats.icon.js.map +1 -1
  323. package/lib/components/Icon/streamline-icons/check-badge.icon.d.ts +1 -1
  324. package/lib/components/Icon/streamline-icons/check-badge.icon.d.ts.map +1 -1
  325. package/lib/components/Icon/streamline-icons/check-badge.icon.js +2 -2
  326. package/lib/components/Icon/streamline-icons/check-badge.icon.js.map +1 -1
  327. package/lib/components/Icon/streamline-icons/check.icon.d.ts +1 -1
  328. package/lib/components/Icon/streamline-icons/check.icon.d.ts.map +1 -1
  329. package/lib/components/Icon/streamline-icons/check.icon.js +2 -2
  330. package/lib/components/Icon/streamline-icons/check.icon.js.map +1 -1
  331. package/lib/components/Icon/streamline-icons/chevron-solid.icon.d.ts +1 -1
  332. package/lib/components/Icon/streamline-icons/chevron-solid.icon.js +2 -2
  333. package/lib/components/Icon/streamline-icons/chevron-solid.icon.js.map +1 -1
  334. package/lib/components/Icon/streamline-icons/chevron.icon.d.ts +1 -1
  335. package/lib/components/Icon/streamline-icons/chevron.icon.d.ts.map +1 -1
  336. package/lib/components/Icon/streamline-icons/chevron.icon.js +2 -2
  337. package/lib/components/Icon/streamline-icons/chevron.icon.js.map +1 -1
  338. package/lib/components/Icon/streamline-icons/circle-mixed-left.icon.d.ts +1 -1
  339. package/lib/components/Icon/streamline-icons/circle-mixed-left.icon.d.ts.map +1 -1
  340. package/lib/components/Icon/streamline-icons/circle-mixed-left.icon.js +2 -2
  341. package/lib/components/Icon/streamline-icons/circle-mixed-left.icon.js.map +1 -1
  342. package/lib/components/Icon/streamline-icons/circle.icon.d.ts +1 -1
  343. package/lib/components/Icon/streamline-icons/circle.icon.d.ts.map +1 -1
  344. package/lib/components/Icon/streamline-icons/circle.icon.js +2 -2
  345. package/lib/components/Icon/streamline-icons/circle.icon.js.map +1 -1
  346. package/lib/components/Icon/streamline-icons/clipboard-check.icon.d.ts +1 -1
  347. package/lib/components/Icon/streamline-icons/clipboard-check.icon.d.ts.map +1 -1
  348. package/lib/components/Icon/streamline-icons/clipboard-check.icon.js +2 -2
  349. package/lib/components/Icon/streamline-icons/clipboard-check.icon.js.map +1 -1
  350. package/lib/components/Icon/streamline-icons/clipboard-medical.icon.d.ts +1 -1
  351. package/lib/components/Icon/streamline-icons/clipboard-medical.icon.d.ts.map +1 -1
  352. package/lib/components/Icon/streamline-icons/clipboard-medical.icon.js +2 -2
  353. package/lib/components/Icon/streamline-icons/clipboard-medical.icon.js.map +1 -1
  354. package/lib/components/Icon/streamline-icons/clipboard-pencil-solid.icon.d.ts +1 -1
  355. package/lib/components/Icon/streamline-icons/clipboard-pencil-solid.icon.d.ts.map +1 -1
  356. package/lib/components/Icon/streamline-icons/clipboard-pencil-solid.icon.js +3 -3
  357. package/lib/components/Icon/streamline-icons/clipboard-pencil-solid.icon.js.map +1 -1
  358. package/lib/components/Icon/streamline-icons/clipboard-pencil.icon.d.ts +1 -1
  359. package/lib/components/Icon/streamline-icons/clipboard-pencil.icon.d.ts.map +1 -1
  360. package/lib/components/Icon/streamline-icons/clipboard-pencil.icon.js +2 -2
  361. package/lib/components/Icon/streamline-icons/clipboard-pencil.icon.js.map +1 -1
  362. package/lib/components/Icon/streamline-icons/clipboard-plus.icon.d.ts +1 -1
  363. package/lib/components/Icon/streamline-icons/clipboard-plus.icon.d.ts.map +1 -1
  364. package/lib/components/Icon/streamline-icons/clipboard-plus.icon.js +2 -2
  365. package/lib/components/Icon/streamline-icons/clipboard-plus.icon.js.map +1 -1
  366. package/lib/components/Icon/streamline-icons/clipboard.icon.d.ts +1 -1
  367. package/lib/components/Icon/streamline-icons/clipboard.icon.d.ts.map +1 -1
  368. package/lib/components/Icon/streamline-icons/clipboard.icon.js +2 -2
  369. package/lib/components/Icon/streamline-icons/clipboard.icon.js.map +1 -1
  370. package/lib/components/Icon/streamline-icons/clock-solid.icon.d.ts +5 -0
  371. package/lib/components/Icon/streamline-icons/clock-solid.icon.d.ts.map +1 -0
  372. package/lib/components/Icon/streamline-icons/clock-solid.icon.js +7 -0
  373. package/lib/components/Icon/streamline-icons/clock-solid.icon.js.map +1 -0
  374. package/lib/components/Icon/streamline-icons/clock.icon.d.ts +1 -1
  375. package/lib/components/Icon/streamline-icons/clock.icon.d.ts.map +1 -1
  376. package/lib/components/Icon/streamline-icons/clock.icon.js +2 -2
  377. package/lib/components/Icon/streamline-icons/clock.icon.js.map +1 -1
  378. package/lib/components/Icon/streamline-icons/cloud.icon.d.ts +1 -1
  379. package/lib/components/Icon/streamline-icons/cloud.icon.d.ts.map +1 -1
  380. package/lib/components/Icon/streamline-icons/cloud.icon.js +2 -2
  381. package/lib/components/Icon/streamline-icons/cloud.icon.js.map +1 -1
  382. package/lib/components/Icon/streamline-icons/code-search.icon.d.ts +1 -1
  383. package/lib/components/Icon/streamline-icons/code-search.icon.d.ts.map +1 -1
  384. package/lib/components/Icon/streamline-icons/code-search.icon.js +2 -2
  385. package/lib/components/Icon/streamline-icons/code-search.icon.js.map +1 -1
  386. package/lib/components/Icon/streamline-icons/code.icon.d.ts +1 -1
  387. package/lib/components/Icon/streamline-icons/code.icon.d.ts.map +1 -1
  388. package/lib/components/Icon/streamline-icons/code.icon.js +2 -2
  389. package/lib/components/Icon/streamline-icons/code.icon.js.map +1 -1
  390. package/lib/components/Icon/streamline-icons/column-delete.icon.d.ts +5 -0
  391. package/lib/components/Icon/streamline-icons/column-delete.icon.d.ts.map +1 -0
  392. package/lib/components/Icon/streamline-icons/column-delete.icon.js +7 -0
  393. package/lib/components/Icon/streamline-icons/column-delete.icon.js.map +1 -0
  394. package/lib/components/Icon/streamline-icons/conversation.icon.d.ts +1 -1
  395. package/lib/components/Icon/streamline-icons/conversation.icon.d.ts.map +1 -1
  396. package/lib/components/Icon/streamline-icons/conversation.icon.js +2 -2
  397. package/lib/components/Icon/streamline-icons/conversation.icon.js.map +1 -1
  398. package/lib/components/Icon/streamline-icons/copy.icon.d.ts +1 -1
  399. package/lib/components/Icon/streamline-icons/copy.icon.d.ts.map +1 -1
  400. package/lib/components/Icon/streamline-icons/copy.icon.js +2 -2
  401. package/lib/components/Icon/streamline-icons/copy.icon.js.map +1 -1
  402. package/lib/components/Icon/streamline-icons/credit.icon.d.ts +1 -1
  403. package/lib/components/Icon/streamline-icons/credit.icon.d.ts.map +1 -1
  404. package/lib/components/Icon/streamline-icons/credit.icon.js +3 -3
  405. package/lib/components/Icon/streamline-icons/credit.icon.js.map +1 -1
  406. package/lib/components/Icon/streamline-icons/csr-agent.icon.d.ts +1 -1
  407. package/lib/components/Icon/streamline-icons/csr-agent.icon.d.ts.map +1 -1
  408. package/lib/components/Icon/streamline-icons/csr-agent.icon.js +2 -2
  409. package/lib/components/Icon/streamline-icons/csr-agent.icon.js.map +1 -1
  410. package/lib/components/Icon/streamline-icons/currency.icon.d.ts +1 -1
  411. package/lib/components/Icon/streamline-icons/currency.icon.d.ts.map +1 -1
  412. package/lib/components/Icon/streamline-icons/currency.icon.js +2 -2
  413. package/lib/components/Icon/streamline-icons/currency.icon.js.map +1 -1
  414. package/lib/components/Icon/streamline-icons/custom-column.icon.d.ts +5 -0
  415. package/lib/components/Icon/streamline-icons/custom-column.icon.d.ts.map +1 -0
  416. package/lib/components/Icon/streamline-icons/custom-column.icon.js +7 -0
  417. package/lib/components/Icon/streamline-icons/custom-column.icon.js.map +1 -0
  418. package/lib/components/Icon/streamline-icons/database-search.icon.d.ts +5 -0
  419. package/lib/components/Icon/streamline-icons/database-search.icon.d.ts.map +1 -0
  420. package/lib/components/Icon/streamline-icons/database-search.icon.js +7 -0
  421. package/lib/components/Icon/streamline-icons/database-search.icon.js.map +1 -0
  422. package/lib/components/Icon/streamline-icons/dataviz-area-multi.icon.d.ts +1 -1
  423. package/lib/components/Icon/streamline-icons/dataviz-area-multi.icon.d.ts.map +1 -1
  424. package/lib/components/Icon/streamline-icons/dataviz-area-multi.icon.js +3 -3
  425. package/lib/components/Icon/streamline-icons/dataviz-area-multi.icon.js.map +1 -1
  426. package/lib/components/Icon/streamline-icons/dataviz-area-stacked.icon.d.ts +1 -1
  427. package/lib/components/Icon/streamline-icons/dataviz-area-stacked.icon.d.ts.map +1 -1
  428. package/lib/components/Icon/streamline-icons/dataviz-area-stacked.icon.js +3 -3
  429. package/lib/components/Icon/streamline-icons/dataviz-area-stacked.icon.js.map +1 -1
  430. package/lib/components/Icon/streamline-icons/dataviz-area.icon.d.ts +1 -1
  431. package/lib/components/Icon/streamline-icons/dataviz-area.icon.d.ts.map +1 -1
  432. package/lib/components/Icon/streamline-icons/dataviz-area.icon.js +3 -3
  433. package/lib/components/Icon/streamline-icons/dataviz-area.icon.js.map +1 -1
  434. package/lib/components/Icon/streamline-icons/dataviz-bar-clustered.icon.d.ts +1 -1
  435. package/lib/components/Icon/streamline-icons/dataviz-bar-clustered.icon.d.ts.map +1 -1
  436. package/lib/components/Icon/streamline-icons/dataviz-bar-clustered.icon.js +2 -2
  437. package/lib/components/Icon/streamline-icons/dataviz-bar-clustered.icon.js.map +1 -1
  438. package/lib/components/Icon/streamline-icons/dataviz-bar-stacked.icon.d.ts +1 -1
  439. package/lib/components/Icon/streamline-icons/dataviz-bar-stacked.icon.d.ts.map +1 -1
  440. package/lib/components/Icon/streamline-icons/dataviz-bar-stacked.icon.js +2 -2
  441. package/lib/components/Icon/streamline-icons/dataviz-bar-stacked.icon.js.map +1 -1
  442. package/lib/components/Icon/streamline-icons/dataviz-bar.icon.d.ts +1 -1
  443. package/lib/components/Icon/streamline-icons/dataviz-bar.icon.d.ts.map +1 -1
  444. package/lib/components/Icon/streamline-icons/dataviz-bar.icon.js +2 -2
  445. package/lib/components/Icon/streamline-icons/dataviz-bar.icon.js.map +1 -1
  446. package/lib/components/Icon/streamline-icons/dataviz-bell-curve.icon.d.ts +5 -0
  447. package/lib/components/Icon/streamline-icons/dataviz-bell-curve.icon.d.ts.map +1 -0
  448. package/lib/components/Icon/streamline-icons/dataviz-bell-curve.icon.js +7 -0
  449. package/lib/components/Icon/streamline-icons/dataviz-bell-curve.icon.js.map +1 -0
  450. package/lib/components/Icon/streamline-icons/dataviz-bubble.icon.d.ts +1 -1
  451. package/lib/components/Icon/streamline-icons/dataviz-bubble.icon.d.ts.map +1 -1
  452. package/lib/components/Icon/streamline-icons/dataviz-bubble.icon.js +2 -2
  453. package/lib/components/Icon/streamline-icons/dataviz-bubble.icon.js.map +1 -1
  454. package/lib/components/Icon/streamline-icons/dataviz-column-clustered.icon.d.ts +1 -1
  455. package/lib/components/Icon/streamline-icons/dataviz-column-clustered.icon.d.ts.map +1 -1
  456. package/lib/components/Icon/streamline-icons/dataviz-column-clustered.icon.js +2 -2
  457. package/lib/components/Icon/streamline-icons/dataviz-column-clustered.icon.js.map +1 -1
  458. package/lib/components/Icon/streamline-icons/dataviz-column-stacked.icon.d.ts +1 -1
  459. package/lib/components/Icon/streamline-icons/dataviz-column-stacked.icon.d.ts.map +1 -1
  460. package/lib/components/Icon/streamline-icons/dataviz-column-stacked.icon.js +2 -2
  461. package/lib/components/Icon/streamline-icons/dataviz-column-stacked.icon.js.map +1 -1
  462. package/lib/components/Icon/streamline-icons/dataviz-column.icon.d.ts +1 -1
  463. package/lib/components/Icon/streamline-icons/dataviz-column.icon.d.ts.map +1 -1
  464. package/lib/components/Icon/streamline-icons/dataviz-column.icon.js +2 -2
  465. package/lib/components/Icon/streamline-icons/dataviz-column.icon.js.map +1 -1
  466. package/lib/components/Icon/streamline-icons/dataviz-combo.icon.d.ts +1 -1
  467. package/lib/components/Icon/streamline-icons/dataviz-combo.icon.d.ts.map +1 -1
  468. package/lib/components/Icon/streamline-icons/dataviz-combo.icon.js +3 -3
  469. package/lib/components/Icon/streamline-icons/dataviz-combo.icon.js.map +1 -1
  470. package/lib/components/Icon/streamline-icons/dataviz-datetime-field.icon.d.ts +1 -1
  471. package/lib/components/Icon/streamline-icons/dataviz-datetime-field.icon.d.ts.map +1 -1
  472. package/lib/components/Icon/streamline-icons/dataviz-datetime-field.icon.js +2 -2
  473. package/lib/components/Icon/streamline-icons/dataviz-datetime-field.icon.js.map +1 -1
  474. package/lib/components/Icon/streamline-icons/dataviz-donut.icon.d.ts +1 -1
  475. package/lib/components/Icon/streamline-icons/dataviz-donut.icon.d.ts.map +1 -1
  476. package/lib/components/Icon/streamline-icons/dataviz-donut.icon.js +2 -2
  477. package/lib/components/Icon/streamline-icons/dataviz-donut.icon.js.map +1 -1
  478. package/lib/components/Icon/streamline-icons/dataviz-flip-counter.icon.d.ts +5 -0
  479. package/lib/components/Icon/streamline-icons/dataviz-flip-counter.icon.d.ts.map +1 -0
  480. package/lib/components/Icon/streamline-icons/dataviz-flip-counter.icon.js +7 -0
  481. package/lib/components/Icon/streamline-icons/dataviz-flip-counter.icon.js.map +1 -0
  482. package/lib/components/Icon/streamline-icons/dataviz-forecast.icon.d.ts +1 -1
  483. package/lib/components/Icon/streamline-icons/dataviz-forecast.icon.d.ts.map +1 -1
  484. package/lib/components/Icon/streamline-icons/dataviz-forecast.icon.js +2 -2
  485. package/lib/components/Icon/streamline-icons/dataviz-forecast.icon.js.map +1 -1
  486. package/lib/components/Icon/streamline-icons/dataviz-funnel.icon.d.ts +1 -1
  487. package/lib/components/Icon/streamline-icons/dataviz-funnel.icon.d.ts.map +1 -1
  488. package/lib/components/Icon/streamline-icons/dataviz-funnel.icon.js +3 -3
  489. package/lib/components/Icon/streamline-icons/dataviz-funnel.icon.js.map +1 -1
  490. package/lib/components/Icon/streamline-icons/dataviz-gauge-linear.icon.d.ts +1 -1
  491. package/lib/components/Icon/streamline-icons/dataviz-gauge-linear.icon.d.ts.map +1 -1
  492. package/lib/components/Icon/streamline-icons/dataviz-gauge-linear.icon.js +2 -2
  493. package/lib/components/Icon/streamline-icons/dataviz-gauge-linear.icon.js.map +1 -1
  494. package/lib/components/Icon/streamline-icons/dataviz-gauge-progress.icon.d.ts +5 -0
  495. package/lib/components/Icon/streamline-icons/dataviz-gauge-progress.icon.d.ts.map +1 -0
  496. package/lib/components/Icon/streamline-icons/dataviz-gauge-progress.icon.js +7 -0
  497. package/lib/components/Icon/streamline-icons/dataviz-gauge-progress.icon.js.map +1 -0
  498. package/lib/components/Icon/streamline-icons/dataviz-gauge.icon.d.ts +1 -1
  499. package/lib/components/Icon/streamline-icons/dataviz-gauge.icon.d.ts.map +1 -1
  500. package/lib/components/Icon/streamline-icons/dataviz-gauge.icon.js +2 -2
  501. package/lib/components/Icon/streamline-icons/dataviz-gauge.icon.js.map +1 -1
  502. package/lib/components/Icon/streamline-icons/dataviz-geo-choropleth.icon.d.ts +1 -1
  503. package/lib/components/Icon/streamline-icons/dataviz-geo-choropleth.icon.d.ts.map +1 -1
  504. package/lib/components/Icon/streamline-icons/dataviz-geo-choropleth.icon.js +2 -2
  505. package/lib/components/Icon/streamline-icons/dataviz-geo-choropleth.icon.js.map +1 -1
  506. package/lib/components/Icon/streamline-icons/dataviz-heatmap.icon.d.ts +1 -1
  507. package/lib/components/Icon/streamline-icons/dataviz-heatmap.icon.d.ts.map +1 -1
  508. package/lib/components/Icon/streamline-icons/dataviz-heatmap.icon.js +2 -2
  509. package/lib/components/Icon/streamline-icons/dataviz-heatmap.icon.js.map +1 -1
  510. package/lib/components/Icon/streamline-icons/dataviz-histogram.icon.d.ts +5 -0
  511. package/lib/components/Icon/streamline-icons/dataviz-histogram.icon.d.ts.map +1 -0
  512. package/lib/components/Icon/streamline-icons/dataviz-histogram.icon.js +7 -0
  513. package/lib/components/Icon/streamline-icons/dataviz-histogram.icon.js.map +1 -0
  514. package/lib/components/Icon/streamline-icons/dataviz-line-horizontal.icon.d.ts +5 -0
  515. package/lib/components/Icon/streamline-icons/dataviz-line-horizontal.icon.d.ts.map +1 -0
  516. package/lib/components/Icon/streamline-icons/dataviz-line-horizontal.icon.js +7 -0
  517. package/lib/components/Icon/streamline-icons/dataviz-line-horizontal.icon.js.map +1 -0
  518. package/lib/components/Icon/streamline-icons/dataviz-line-multi.icon.d.ts +1 -1
  519. package/lib/components/Icon/streamline-icons/dataviz-line-multi.icon.d.ts.map +1 -1
  520. package/lib/components/Icon/streamline-icons/dataviz-line-multi.icon.js +2 -2
  521. package/lib/components/Icon/streamline-icons/dataviz-line-multi.icon.js.map +1 -1
  522. package/lib/components/Icon/streamline-icons/dataviz-line-stepped.icon.d.ts +5 -0
  523. package/lib/components/Icon/streamline-icons/dataviz-line-stepped.icon.d.ts.map +1 -0
  524. package/lib/components/Icon/streamline-icons/dataviz-line-stepped.icon.js +7 -0
  525. package/lib/components/Icon/streamline-icons/dataviz-line-stepped.icon.js.map +1 -0
  526. package/lib/components/Icon/streamline-icons/dataviz-line.icon.d.ts +1 -1
  527. package/lib/components/Icon/streamline-icons/dataviz-line.icon.d.ts.map +1 -1
  528. package/lib/components/Icon/streamline-icons/dataviz-line.icon.js +2 -2
  529. package/lib/components/Icon/streamline-icons/dataviz-line.icon.js.map +1 -1
  530. package/lib/components/Icon/streamline-icons/dataviz-numeric-field.icon.d.ts +5 -0
  531. package/lib/components/Icon/streamline-icons/dataviz-numeric-field.icon.d.ts.map +1 -0
  532. package/lib/components/Icon/streamline-icons/dataviz-numeric-field.icon.js +7 -0
  533. package/lib/components/Icon/streamline-icons/dataviz-numeric-field.icon.js.map +1 -0
  534. package/lib/components/Icon/streamline-icons/dataviz-pareto.icon.d.ts +1 -1
  535. package/lib/components/Icon/streamline-icons/dataviz-pareto.icon.d.ts.map +1 -1
  536. package/lib/components/Icon/streamline-icons/dataviz-pareto.icon.js +2 -2
  537. package/lib/components/Icon/streamline-icons/dataviz-pareto.icon.js.map +1 -1
  538. package/lib/components/Icon/streamline-icons/dataviz-pie.icon.d.ts +1 -1
  539. package/lib/components/Icon/streamline-icons/dataviz-pie.icon.d.ts.map +1 -1
  540. package/lib/components/Icon/streamline-icons/dataviz-pie.icon.js +2 -2
  541. package/lib/components/Icon/streamline-icons/dataviz-pie.icon.js.map +1 -1
  542. package/lib/components/Icon/streamline-icons/dataviz-pivot-table.icon.d.ts +1 -1
  543. package/lib/components/Icon/streamline-icons/dataviz-pivot-table.icon.d.ts.map +1 -1
  544. package/lib/components/Icon/streamline-icons/dataviz-pivot-table.icon.js +2 -2
  545. package/lib/components/Icon/streamline-icons/dataviz-pivot-table.icon.js.map +1 -1
  546. package/lib/components/Icon/streamline-icons/dataviz-radar.icon.d.ts +1 -1
  547. package/lib/components/Icon/streamline-icons/dataviz-radar.icon.d.ts.map +1 -1
  548. package/lib/components/Icon/streamline-icons/dataviz-radar.icon.js +2 -2
  549. package/lib/components/Icon/streamline-icons/dataviz-radar.icon.js.map +1 -1
  550. package/lib/components/Icon/streamline-icons/dataviz-scatter.icon.d.ts +1 -1
  551. package/lib/components/Icon/streamline-icons/dataviz-scatter.icon.d.ts.map +1 -1
  552. package/lib/components/Icon/streamline-icons/dataviz-scatter.icon.js +2 -2
  553. package/lib/components/Icon/streamline-icons/dataviz-scatter.icon.js.map +1 -1
  554. package/lib/components/Icon/streamline-icons/dataviz-spark.icon.d.ts +5 -0
  555. package/lib/components/Icon/streamline-icons/dataviz-spark.icon.d.ts.map +1 -0
  556. package/lib/components/Icon/streamline-icons/dataviz-spark.icon.js +7 -0
  557. package/lib/components/Icon/streamline-icons/dataviz-spark.icon.js.map +1 -0
  558. package/lib/components/Icon/streamline-icons/dataviz-sparklines-area.icon.d.ts +5 -0
  559. package/lib/components/Icon/streamline-icons/dataviz-sparklines-area.icon.d.ts.map +1 -0
  560. package/lib/components/Icon/streamline-icons/dataviz-sparklines-area.icon.js +7 -0
  561. package/lib/components/Icon/streamline-icons/dataviz-sparklines-area.icon.js.map +1 -0
  562. package/lib/components/Icon/streamline-icons/dataviz-sparklines-columns.icon.d.ts +5 -0
  563. package/lib/components/Icon/streamline-icons/dataviz-sparklines-columns.icon.d.ts.map +1 -0
  564. package/lib/components/Icon/streamline-icons/dataviz-sparklines-columns.icon.js +7 -0
  565. package/lib/components/Icon/streamline-icons/dataviz-sparklines-columns.icon.js.map +1 -0
  566. package/lib/components/Icon/streamline-icons/dataviz-sparklines-line.icon.d.ts +1 -1
  567. package/lib/components/Icon/streamline-icons/dataviz-sparklines-line.icon.d.ts.map +1 -1
  568. package/lib/components/Icon/streamline-icons/dataviz-sparklines-line.icon.js +2 -2
  569. package/lib/components/Icon/streamline-icons/dataviz-sparklines-line.icon.js.map +1 -1
  570. package/lib/components/Icon/streamline-icons/dataviz-sparklines-pies.icon.d.ts +5 -0
  571. package/lib/components/Icon/streamline-icons/dataviz-sparklines-pies.icon.d.ts.map +1 -0
  572. package/lib/components/Icon/streamline-icons/dataviz-sparklines-pies.icon.js +7 -0
  573. package/lib/components/Icon/streamline-icons/dataviz-sparklines-pies.icon.js.map +1 -0
  574. package/lib/components/Icon/streamline-icons/dataviz-spline.icon.d.ts +5 -0
  575. package/lib/components/Icon/streamline-icons/dataviz-spline.icon.d.ts.map +1 -0
  576. package/lib/components/Icon/streamline-icons/dataviz-spline.icon.js +7 -0
  577. package/lib/components/Icon/streamline-icons/dataviz-spline.icon.js.map +1 -0
  578. package/lib/components/Icon/streamline-icons/dataviz-string-field.icon.d.ts +1 -1
  579. package/lib/components/Icon/streamline-icons/dataviz-string-field.icon.d.ts.map +1 -1
  580. package/lib/components/Icon/streamline-icons/dataviz-string-field.icon.js +2 -2
  581. package/lib/components/Icon/streamline-icons/dataviz-string-field.icon.js.map +1 -1
  582. package/lib/components/Icon/streamline-icons/dataviz-table-with-bars.icon.d.ts +1 -1
  583. package/lib/components/Icon/streamline-icons/dataviz-table-with-bars.icon.d.ts.map +1 -1
  584. package/lib/components/Icon/streamline-icons/dataviz-table-with-bars.icon.js +2 -2
  585. package/lib/components/Icon/streamline-icons/dataviz-table-with-bars.icon.js.map +1 -1
  586. package/lib/components/Icon/streamline-icons/dataviz-trend-down.icon.d.ts +1 -1
  587. package/lib/components/Icon/streamline-icons/dataviz-trend-down.icon.d.ts.map +1 -1
  588. package/lib/components/Icon/streamline-icons/dataviz-trend-down.icon.js +2 -2
  589. package/lib/components/Icon/streamline-icons/dataviz-trend-down.icon.js.map +1 -1
  590. package/lib/components/Icon/streamline-icons/dataviz-trend-up.icon.d.ts +1 -1
  591. package/lib/components/Icon/streamline-icons/dataviz-trend-up.icon.d.ts.map +1 -1
  592. package/lib/components/Icon/streamline-icons/dataviz-trend-up.icon.js +2 -2
  593. package/lib/components/Icon/streamline-icons/dataviz-trend-up.icon.js.map +1 -1
  594. package/lib/components/Icon/streamline-icons/dataviz-waterfall.icon.d.ts +1 -1
  595. package/lib/components/Icon/streamline-icons/dataviz-waterfall.icon.js +2 -2
  596. package/lib/components/Icon/streamline-icons/dataviz-waterfall.icon.js.map +1 -1
  597. package/lib/components/Icon/streamline-icons/desktop.icon.d.ts +1 -1
  598. package/lib/components/Icon/streamline-icons/desktop.icon.d.ts.map +1 -1
  599. package/lib/components/Icon/streamline-icons/desktop.icon.js +2 -2
  600. package/lib/components/Icon/streamline-icons/desktop.icon.js.map +1 -1
  601. package/lib/components/Icon/streamline-icons/diamond.icon.d.ts +1 -1
  602. package/lib/components/Icon/streamline-icons/diamond.icon.d.ts.map +1 -1
  603. package/lib/components/Icon/streamline-icons/diamond.icon.js +2 -2
  604. package/lib/components/Icon/streamline-icons/diamond.icon.js.map +1 -1
  605. package/lib/components/Icon/streamline-icons/disc-stack-solid.icon.d.ts +1 -1
  606. package/lib/components/Icon/streamline-icons/disc-stack-solid.icon.js +2 -2
  607. package/lib/components/Icon/streamline-icons/disc-stack-solid.icon.js.map +1 -1
  608. package/lib/components/Icon/streamline-icons/disc-stack.icon.d.ts +1 -1
  609. package/lib/components/Icon/streamline-icons/disc-stack.icon.d.ts.map +1 -1
  610. package/lib/components/Icon/streamline-icons/disc-stack.icon.js +2 -2
  611. package/lib/components/Icon/streamline-icons/disc-stack.icon.js.map +1 -1
  612. package/lib/components/Icon/streamline-icons/doctor-female.icon.d.ts +5 -0
  613. package/lib/components/Icon/streamline-icons/doctor-female.icon.d.ts.map +1 -0
  614. package/lib/components/Icon/streamline-icons/doctor-female.icon.js +7 -0
  615. package/lib/components/Icon/streamline-icons/doctor-female.icon.js.map +1 -0
  616. package/lib/components/Icon/streamline-icons/doctor-male.icon.d.ts +1 -1
  617. package/lib/components/Icon/streamline-icons/doctor-male.icon.d.ts.map +1 -1
  618. package/lib/components/Icon/streamline-icons/doctor-male.icon.js +2 -2
  619. package/lib/components/Icon/streamline-icons/doctor-male.icon.js.map +1 -1
  620. package/lib/components/Icon/streamline-icons/document-pdf.icon.d.ts +1 -1
  621. package/lib/components/Icon/streamline-icons/document-pdf.icon.d.ts.map +1 -1
  622. package/lib/components/Icon/streamline-icons/document-pdf.icon.js +2 -2
  623. package/lib/components/Icon/streamline-icons/document-pdf.icon.js.map +1 -1
  624. package/lib/components/Icon/streamline-icons/document.icon.d.ts +1 -1
  625. package/lib/components/Icon/streamline-icons/document.icon.d.ts.map +1 -1
  626. package/lib/components/Icon/streamline-icons/document.icon.js +2 -2
  627. package/lib/components/Icon/streamline-icons/document.icon.js.map +1 -1
  628. package/lib/components/Icon/streamline-icons/docusign.icon.d.ts +5 -0
  629. package/lib/components/Icon/streamline-icons/docusign.icon.d.ts.map +1 -0
  630. package/lib/components/Icon/streamline-icons/docusign.icon.js +7 -0
  631. package/lib/components/Icon/streamline-icons/docusign.icon.js.map +1 -0
  632. package/lib/components/Icon/streamline-icons/dot-9-solid.icon.d.ts +1 -1
  633. package/lib/components/Icon/streamline-icons/dot-9-solid.icon.js +2 -2
  634. package/lib/components/Icon/streamline-icons/dot-9-solid.icon.js.map +1 -1
  635. package/lib/components/Icon/streamline-icons/download.icon.d.ts +1 -1
  636. package/lib/components/Icon/streamline-icons/download.icon.d.ts.map +1 -1
  637. package/lib/components/Icon/streamline-icons/download.icon.js +2 -2
  638. package/lib/components/Icon/streamline-icons/download.icon.js.map +1 -1
  639. package/lib/components/Icon/streamline-icons/drag.icon.d.ts +1 -1
  640. package/lib/components/Icon/streamline-icons/drag.icon.js +2 -2
  641. package/lib/components/Icon/streamline-icons/drag.icon.js.map +1 -1
  642. package/lib/components/Icon/streamline-icons/email-open.icon.d.ts +1 -1
  643. package/lib/components/Icon/streamline-icons/email-open.icon.d.ts.map +1 -1
  644. package/lib/components/Icon/streamline-icons/email-open.icon.js +2 -2
  645. package/lib/components/Icon/streamline-icons/email-open.icon.js.map +1 -1
  646. package/lib/components/Icon/streamline-icons/exchange.icon.d.ts +1 -1
  647. package/lib/components/Icon/streamline-icons/exchange.icon.d.ts.map +1 -1
  648. package/lib/components/Icon/streamline-icons/exchange.icon.js +2 -2
  649. package/lib/components/Icon/streamline-icons/exchange.icon.js.map +1 -1
  650. package/lib/components/Icon/streamline-icons/eye-off.icon.d.ts +1 -1
  651. package/lib/components/Icon/streamline-icons/eye-off.icon.d.ts.map +1 -1
  652. package/lib/components/Icon/streamline-icons/eye-off.icon.js +2 -2
  653. package/lib/components/Icon/streamline-icons/eye-off.icon.js.map +1 -1
  654. package/lib/components/Icon/streamline-icons/face-blank.icon.d.ts +1 -1
  655. package/lib/components/Icon/streamline-icons/face-blank.icon.d.ts.map +1 -1
  656. package/lib/components/Icon/streamline-icons/face-blank.icon.js +2 -2
  657. package/lib/components/Icon/streamline-icons/face-blank.icon.js.map +1 -1
  658. package/lib/components/Icon/streamline-icons/face-happy.icon.d.ts +1 -1
  659. package/lib/components/Icon/streamline-icons/face-happy.icon.d.ts.map +1 -1
  660. package/lib/components/Icon/streamline-icons/face-happy.icon.js +2 -2
  661. package/lib/components/Icon/streamline-icons/face-happy.icon.js.map +1 -1
  662. package/lib/components/Icon/streamline-icons/face-sad.icon.d.ts +1 -1
  663. package/lib/components/Icon/streamline-icons/face-sad.icon.d.ts.map +1 -1
  664. package/lib/components/Icon/streamline-icons/face-sad.icon.js +2 -2
  665. package/lib/components/Icon/streamline-icons/face-sad.icon.js.map +1 -1
  666. package/lib/components/Icon/streamline-icons/facebook.icon.d.ts +5 -0
  667. package/lib/components/Icon/streamline-icons/facebook.icon.d.ts.map +1 -0
  668. package/lib/components/Icon/streamline-icons/facebook.icon.js +7 -0
  669. package/lib/components/Icon/streamline-icons/facebook.icon.js.map +1 -0
  670. package/lib/components/Icon/streamline-icons/farming-wheat.icon.d.ts +1 -1
  671. package/lib/components/Icon/streamline-icons/farming-wheat.icon.d.ts.map +1 -1
  672. package/lib/components/Icon/streamline-icons/farming-wheat.icon.js +2 -2
  673. package/lib/components/Icon/streamline-icons/farming-wheat.icon.js.map +1 -1
  674. package/lib/components/Icon/streamline-icons/fast-forward.icon.d.ts +1 -1
  675. package/lib/components/Icon/streamline-icons/fast-forward.icon.d.ts.map +1 -1
  676. package/lib/components/Icon/streamline-icons/fast-forward.icon.js +2 -2
  677. package/lib/components/Icon/streamline-icons/fast-forward.icon.js.map +1 -1
  678. package/lib/components/Icon/streamline-icons/field-cursor.icon.d.ts +1 -1
  679. package/lib/components/Icon/streamline-icons/field-cursor.icon.d.ts.map +1 -1
  680. package/lib/components/Icon/streamline-icons/field-cursor.icon.js +3 -3
  681. package/lib/components/Icon/streamline-icons/field-cursor.icon.js.map +1 -1
  682. package/lib/components/Icon/streamline-icons/filetype-text.icon.d.ts +1 -1
  683. package/lib/components/Icon/streamline-icons/filetype-text.icon.d.ts.map +1 -1
  684. package/lib/components/Icon/streamline-icons/filetype-text.icon.js +2 -2
  685. package/lib/components/Icon/streamline-icons/filetype-text.icon.js.map +1 -1
  686. package/lib/components/Icon/streamline-icons/filter.icon.d.ts +1 -1
  687. package/lib/components/Icon/streamline-icons/filter.icon.d.ts.map +1 -1
  688. package/lib/components/Icon/streamline-icons/filter.icon.js +2 -2
  689. package/lib/components/Icon/streamline-icons/filter.icon.js.map +1 -1
  690. package/lib/components/Icon/streamline-icons/fingerprint-search.icon.d.ts +1 -1
  691. package/lib/components/Icon/streamline-icons/fingerprint-search.icon.d.ts.map +1 -1
  692. package/lib/components/Icon/streamline-icons/fingerprint-search.icon.js +2 -2
  693. package/lib/components/Icon/streamline-icons/fingerprint-search.icon.js.map +1 -1
  694. package/lib/components/Icon/streamline-icons/flag-check.icon.d.ts +1 -1
  695. package/lib/components/Icon/streamline-icons/flag-check.icon.d.ts.map +1 -1
  696. package/lib/components/Icon/streamline-icons/flag-check.icon.js +2 -2
  697. package/lib/components/Icon/streamline-icons/flag-check.icon.js.map +1 -1
  698. package/lib/components/Icon/streamline-icons/flag-finish.icon.d.ts +1 -1
  699. package/lib/components/Icon/streamline-icons/flag-finish.icon.d.ts.map +1 -1
  700. package/lib/components/Icon/streamline-icons/flag-finish.icon.js +2 -2
  701. package/lib/components/Icon/streamline-icons/flag-finish.icon.js.map +1 -1
  702. package/lib/components/Icon/streamline-icons/flag-solid.icon.d.ts +5 -0
  703. package/lib/components/Icon/streamline-icons/flag-solid.icon.d.ts.map +1 -0
  704. package/lib/components/Icon/streamline-icons/flag-solid.icon.js +7 -0
  705. package/lib/components/Icon/streamline-icons/flag-solid.icon.js.map +1 -0
  706. package/lib/components/Icon/streamline-icons/flag.icon.d.ts +5 -0
  707. package/lib/components/Icon/streamline-icons/flag.icon.d.ts.map +1 -0
  708. package/lib/components/Icon/streamline-icons/flag.icon.js +7 -0
  709. package/lib/components/Icon/streamline-icons/flag.icon.js.map +1 -0
  710. package/lib/components/Icon/streamline-icons/flashlight.icon.d.ts +1 -1
  711. package/lib/components/Icon/streamline-icons/flashlight.icon.d.ts.map +1 -1
  712. package/lib/components/Icon/streamline-icons/flashlight.icon.js +2 -2
  713. package/lib/components/Icon/streamline-icons/flashlight.icon.js.map +1 -1
  714. package/lib/components/Icon/streamline-icons/flow-process.icon.d.ts +1 -1
  715. package/lib/components/Icon/streamline-icons/flow-process.icon.d.ts.map +1 -1
  716. package/lib/components/Icon/streamline-icons/flow-process.icon.js +2 -2
  717. package/lib/components/Icon/streamline-icons/flow-process.icon.js.map +1 -1
  718. package/lib/components/Icon/streamline-icons/folder-closed.icon.d.ts +1 -1
  719. package/lib/components/Icon/streamline-icons/folder-closed.icon.d.ts.map +1 -1
  720. package/lib/components/Icon/streamline-icons/folder-closed.icon.js +2 -2
  721. package/lib/components/Icon/streamline-icons/folder-closed.icon.js.map +1 -1
  722. package/lib/components/Icon/streamline-icons/folder-empty.icon.d.ts +1 -1
  723. package/lib/components/Icon/streamline-icons/folder-empty.icon.d.ts.map +1 -1
  724. package/lib/components/Icon/streamline-icons/folder-empty.icon.js +2 -2
  725. package/lib/components/Icon/streamline-icons/folder-empty.icon.js.map +1 -1
  726. package/lib/components/Icon/streamline-icons/folder-hierarchy.icon.d.ts +1 -1
  727. package/lib/components/Icon/streamline-icons/folder-hierarchy.icon.d.ts.map +1 -1
  728. package/lib/components/Icon/streamline-icons/folder-hierarchy.icon.js +3 -3
  729. package/lib/components/Icon/streamline-icons/folder-hierarchy.icon.js.map +1 -1
  730. package/lib/components/Icon/streamline-icons/folder-nested.icon.d.ts +1 -1
  731. package/lib/components/Icon/streamline-icons/folder-nested.icon.d.ts.map +1 -1
  732. package/lib/components/Icon/streamline-icons/folder-nested.icon.js +2 -2
  733. package/lib/components/Icon/streamline-icons/folder-nested.icon.js.map +1 -1
  734. package/lib/components/Icon/streamline-icons/folder-search.icon.d.ts +1 -1
  735. package/lib/components/Icon/streamline-icons/folder-search.icon.d.ts.map +1 -1
  736. package/lib/components/Icon/streamline-icons/folder-search.icon.js +2 -2
  737. package/lib/components/Icon/streamline-icons/folder-search.icon.js.map +1 -1
  738. package/lib/components/Icon/streamline-icons/folder.icon.d.ts +5 -0
  739. package/lib/components/Icon/streamline-icons/folder.icon.d.ts.map +1 -0
  740. package/lib/components/Icon/streamline-icons/folder.icon.js +7 -0
  741. package/lib/components/Icon/streamline-icons/folder.icon.js.map +1 -0
  742. package/lib/components/Icon/streamline-icons/folders.icon.d.ts +1 -1
  743. package/lib/components/Icon/streamline-icons/folders.icon.d.ts.map +1 -1
  744. package/lib/components/Icon/streamline-icons/folders.icon.js +2 -2
  745. package/lib/components/Icon/streamline-icons/folders.icon.js.map +1 -1
  746. package/lib/components/Icon/streamline-icons/forward-all.icon.d.ts +1 -1
  747. package/lib/components/Icon/streamline-icons/forward-all.icon.d.ts.map +1 -1
  748. package/lib/components/Icon/streamline-icons/forward-all.icon.js +2 -2
  749. package/lib/components/Icon/streamline-icons/forward-all.icon.js.map +1 -1
  750. package/lib/components/Icon/streamline-icons/forward.icon.d.ts +1 -1
  751. package/lib/components/Icon/streamline-icons/forward.icon.d.ts.map +1 -1
  752. package/lib/components/Icon/streamline-icons/forward.icon.js +2 -2
  753. package/lib/components/Icon/streamline-icons/forward.icon.js.map +1 -1
  754. package/lib/components/Icon/streamline-icons/function.icon.d.ts +1 -1
  755. package/lib/components/Icon/streamline-icons/function.icon.d.ts.map +1 -1
  756. package/lib/components/Icon/streamline-icons/function.icon.js +2 -2
  757. package/lib/components/Icon/streamline-icons/function.icon.js.map +1 -1
  758. package/lib/components/Icon/streamline-icons/gear-play.icon.d.ts +1 -1
  759. package/lib/components/Icon/streamline-icons/gear-play.icon.d.ts.map +1 -1
  760. package/lib/components/Icon/streamline-icons/gear-play.icon.js +2 -2
  761. package/lib/components/Icon/streamline-icons/gear-play.icon.js.map +1 -1
  762. package/lib/components/Icon/streamline-icons/gear-solid.icon.d.ts +1 -1
  763. package/lib/components/Icon/streamline-icons/gear-solid.icon.js +2 -2
  764. package/lib/components/Icon/streamline-icons/gear-solid.icon.js.map +1 -1
  765. package/lib/components/Icon/streamline-icons/gear.icon.d.ts +1 -1
  766. package/lib/components/Icon/streamline-icons/gear.icon.d.ts.map +1 -1
  767. package/lib/components/Icon/streamline-icons/gear.icon.js +2 -2
  768. package/lib/components/Icon/streamline-icons/gear.icon.js.map +1 -1
  769. package/lib/components/Icon/streamline-icons/globe.icon.d.ts +1 -1
  770. package/lib/components/Icon/streamline-icons/globe.icon.d.ts.map +1 -1
  771. package/lib/components/Icon/streamline-icons/globe.icon.js +2 -2
  772. package/lib/components/Icon/streamline-icons/globe.icon.js.map +1 -1
  773. package/lib/components/Icon/streamline-icons/google.icon.d.ts +5 -0
  774. package/lib/components/Icon/streamline-icons/google.icon.d.ts.map +1 -0
  775. package/lib/components/Icon/streamline-icons/google.icon.js +7 -0
  776. package/lib/components/Icon/streamline-icons/google.icon.js.map +1 -0
  777. package/lib/components/Icon/streamline-icons/government.icon.d.ts +1 -1
  778. package/lib/components/Icon/streamline-icons/government.icon.d.ts.map +1 -1
  779. package/lib/components/Icon/streamline-icons/government.icon.js +2 -2
  780. package/lib/components/Icon/streamline-icons/government.icon.js.map +1 -1
  781. package/lib/components/Icon/streamline-icons/graduate.icon.d.ts +1 -1
  782. package/lib/components/Icon/streamline-icons/graduate.icon.d.ts.map +1 -1
  783. package/lib/components/Icon/streamline-icons/graduate.icon.js +2 -2
  784. package/lib/components/Icon/streamline-icons/graduate.icon.js.map +1 -1
  785. package/lib/components/Icon/streamline-icons/hand-book-open.icon.d.ts +1 -1
  786. package/lib/components/Icon/streamline-icons/hand-book-open.icon.d.ts.map +1 -1
  787. package/lib/components/Icon/streamline-icons/hand-book-open.icon.js +2 -2
  788. package/lib/components/Icon/streamline-icons/hand-book-open.icon.js.map +1 -1
  789. package/lib/components/Icon/streamline-icons/hand-over-paper.icon.d.ts +1 -1
  790. package/lib/components/Icon/streamline-icons/hand-over-paper.icon.d.ts.map +1 -1
  791. package/lib/components/Icon/streamline-icons/hand-over-paper.icon.js +2 -2
  792. package/lib/components/Icon/streamline-icons/hand-over-paper.icon.js.map +1 -1
  793. package/lib/components/Icon/streamline-icons/hand.icon.d.ts +1 -1
  794. package/lib/components/Icon/streamline-icons/hand.icon.d.ts.map +1 -1
  795. package/lib/components/Icon/streamline-icons/hand.icon.js +2 -2
  796. package/lib/components/Icon/streamline-icons/hand.icon.js.map +1 -1
  797. package/lib/components/Icon/streamline-icons/handshake.icon.d.ts +1 -1
  798. package/lib/components/Icon/streamline-icons/handshake.icon.d.ts.map +1 -1
  799. package/lib/components/Icon/streamline-icons/handshake.icon.js +2 -2
  800. package/lib/components/Icon/streamline-icons/handshake.icon.js.map +1 -1
  801. package/lib/components/Icon/streamline-icons/header.icon.d.ts +5 -0
  802. package/lib/components/Icon/streamline-icons/header.icon.d.ts.map +1 -0
  803. package/lib/components/Icon/streamline-icons/header.icon.js +7 -0
  804. package/lib/components/Icon/streamline-icons/header.icon.js.map +1 -0
  805. package/lib/components/Icon/streamline-icons/headset.icon.d.ts +1 -1
  806. package/lib/components/Icon/streamline-icons/headset.icon.d.ts.map +1 -1
  807. package/lib/components/Icon/streamline-icons/headset.icon.js +3 -3
  808. package/lib/components/Icon/streamline-icons/headset.icon.js.map +1 -1
  809. package/lib/components/Icon/streamline-icons/home-solid.icon.d.ts +1 -1
  810. package/lib/components/Icon/streamline-icons/home-solid.icon.js +2 -2
  811. package/lib/components/Icon/streamline-icons/home-solid.icon.js.map +1 -1
  812. package/lib/components/Icon/streamline-icons/home.icon.d.ts +5 -0
  813. package/lib/components/Icon/streamline-icons/home.icon.d.ts.map +1 -0
  814. package/lib/components/Icon/streamline-icons/home.icon.js +7 -0
  815. package/lib/components/Icon/streamline-icons/home.icon.js.map +1 -0
  816. package/lib/components/Icon/streamline-icons/house-bed.icon.d.ts +1 -1
  817. package/lib/components/Icon/streamline-icons/house-bed.icon.d.ts.map +1 -1
  818. package/lib/components/Icon/streamline-icons/house-bed.icon.js +2 -2
  819. package/lib/components/Icon/streamline-icons/house-bed.icon.js.map +1 -1
  820. package/lib/components/Icon/streamline-icons/house-person.icon.d.ts +1 -1
  821. package/lib/components/Icon/streamline-icons/house-person.icon.d.ts.map +1 -1
  822. package/lib/components/Icon/streamline-icons/house-person.icon.js +2 -2
  823. package/lib/components/Icon/streamline-icons/house-person.icon.js.map +1 -1
  824. package/lib/components/Icon/streamline-icons/infinity.icon.d.ts +5 -0
  825. package/lib/components/Icon/streamline-icons/infinity.icon.d.ts.map +1 -0
  826. package/lib/components/Icon/streamline-icons/infinity.icon.js +7 -0
  827. package/lib/components/Icon/streamline-icons/infinity.icon.js.map +1 -0
  828. package/lib/components/Icon/streamline-icons/information.icon.d.ts +1 -1
  829. package/lib/components/Icon/streamline-icons/information.icon.d.ts.map +1 -1
  830. package/lib/components/Icon/streamline-icons/information.icon.js +2 -2
  831. package/lib/components/Icon/streamline-icons/information.icon.js.map +1 -1
  832. package/lib/components/Icon/streamline-icons/ios-face-id.icon.d.ts +5 -0
  833. package/lib/components/Icon/streamline-icons/ios-face-id.icon.d.ts.map +1 -0
  834. package/lib/components/Icon/streamline-icons/ios-face-id.icon.js +7 -0
  835. package/lib/components/Icon/streamline-icons/ios-face-id.icon.js.map +1 -0
  836. package/lib/components/Icon/streamline-icons/ios-finger-id.icon.d.ts +1 -1
  837. package/lib/components/Icon/streamline-icons/ios-finger-id.icon.d.ts.map +1 -1
  838. package/lib/components/Icon/streamline-icons/ios-finger-id.icon.js +2 -2
  839. package/lib/components/Icon/streamline-icons/ios-finger-id.icon.js.map +1 -1
  840. package/lib/components/Icon/streamline-icons/layers.icon.d.ts +1 -1
  841. package/lib/components/Icon/streamline-icons/layers.icon.d.ts.map +1 -1
  842. package/lib/components/Icon/streamline-icons/layers.icon.js +2 -2
  843. package/lib/components/Icon/streamline-icons/layers.icon.js.map +1 -1
  844. package/lib/components/Icon/streamline-icons/letter.icon.d.ts +1 -1
  845. package/lib/components/Icon/streamline-icons/letter.icon.d.ts.map +1 -1
  846. package/lib/components/Icon/streamline-icons/letter.icon.js +2 -2
  847. package/lib/components/Icon/streamline-icons/letter.icon.js.map +1 -1
  848. package/lib/components/Icon/streamline-icons/linkedin.icon.d.ts +5 -0
  849. package/lib/components/Icon/streamline-icons/linkedin.icon.d.ts.map +1 -0
  850. package/lib/components/Icon/streamline-icons/linkedin.icon.js +7 -0
  851. package/lib/components/Icon/streamline-icons/linkedin.icon.js.map +1 -0
  852. package/lib/components/Icon/streamline-icons/list.icon.d.ts +1 -1
  853. package/lib/components/Icon/streamline-icons/list.icon.d.ts.map +1 -1
  854. package/lib/components/Icon/streamline-icons/list.icon.js +3 -3
  855. package/lib/components/Icon/streamline-icons/list.icon.js.map +1 -1
  856. package/lib/components/Icon/streamline-icons/location-solid.icon.d.ts +5 -0
  857. package/lib/components/Icon/streamline-icons/location-solid.icon.d.ts.map +1 -0
  858. package/lib/components/Icon/streamline-icons/location-solid.icon.js +7 -0
  859. package/lib/components/Icon/streamline-icons/location-solid.icon.js.map +1 -0
  860. package/lib/components/Icon/streamline-icons/mail-warning.icon.d.ts +1 -1
  861. package/lib/components/Icon/streamline-icons/mail-warning.icon.d.ts.map +1 -1
  862. package/lib/components/Icon/streamline-icons/mail-warning.icon.js +2 -2
  863. package/lib/components/Icon/streamline-icons/mail-warning.icon.js.map +1 -1
  864. package/lib/components/Icon/streamline-icons/mail.icon.d.ts +1 -1
  865. package/lib/components/Icon/streamline-icons/mail.icon.d.ts.map +1 -1
  866. package/lib/components/Icon/streamline-icons/mail.icon.js +2 -2
  867. package/lib/components/Icon/streamline-icons/mail.icon.js.map +1 -1
  868. package/lib/components/Icon/streamline-icons/megaphone.icon.d.ts +1 -1
  869. package/lib/components/Icon/streamline-icons/megaphone.icon.d.ts.map +1 -1
  870. package/lib/components/Icon/streamline-icons/megaphone.icon.js +3 -3
  871. package/lib/components/Icon/streamline-icons/megaphone.icon.js.map +1 -1
  872. package/lib/components/Icon/streamline-icons/merge.icon.d.ts +1 -1
  873. package/lib/components/Icon/streamline-icons/merge.icon.d.ts.map +1 -1
  874. package/lib/components/Icon/streamline-icons/merge.icon.js +2 -2
  875. package/lib/components/Icon/streamline-icons/merge.icon.js.map +1 -1
  876. package/lib/components/Icon/streamline-icons/messages-to-chat.icon.d.ts +1 -1
  877. package/lib/components/Icon/streamline-icons/messages-to-chat.icon.d.ts.map +1 -1
  878. package/lib/components/Icon/streamline-icons/messages-to-chat.icon.js +2 -2
  879. package/lib/components/Icon/streamline-icons/messages-to-chat.icon.js.map +1 -1
  880. package/lib/components/Icon/streamline-icons/mic-off.icon.d.ts +1 -1
  881. package/lib/components/Icon/streamline-icons/mic-off.icon.d.ts.map +1 -1
  882. package/lib/components/Icon/streamline-icons/mic-off.icon.js +2 -2
  883. package/lib/components/Icon/streamline-icons/mic-off.icon.js.map +1 -1
  884. package/lib/components/Icon/streamline-icons/mic.icon.d.ts +1 -1
  885. package/lib/components/Icon/streamline-icons/mic.icon.d.ts.map +1 -1
  886. package/lib/components/Icon/streamline-icons/mic.icon.js +2 -2
  887. package/lib/components/Icon/streamline-icons/mic.icon.js.map +1 -1
  888. package/lib/components/Icon/streamline-icons/minus.icon.d.ts +1 -1
  889. package/lib/components/Icon/streamline-icons/minus.icon.d.ts.map +1 -1
  890. package/lib/components/Icon/streamline-icons/minus.icon.js +2 -2
  891. package/lib/components/Icon/streamline-icons/minus.icon.js.map +1 -1
  892. package/lib/components/Icon/streamline-icons/mobile-phone.icon.d.ts +1 -1
  893. package/lib/components/Icon/streamline-icons/mobile-phone.icon.d.ts.map +1 -1
  894. package/lib/components/Icon/streamline-icons/mobile-phone.icon.js +2 -2
  895. package/lib/components/Icon/streamline-icons/mobile-phone.icon.js.map +1 -1
  896. package/lib/components/Icon/streamline-icons/module.icon.d.ts +1 -1
  897. package/lib/components/Icon/streamline-icons/module.icon.d.ts.map +1 -1
  898. package/lib/components/Icon/streamline-icons/module.icon.js +2 -2
  899. package/lib/components/Icon/streamline-icons/module.icon.js.map +1 -1
  900. package/lib/components/Icon/streamline-icons/money-atm.icon.d.ts +1 -1
  901. package/lib/components/Icon/streamline-icons/money-atm.icon.d.ts.map +1 -1
  902. package/lib/components/Icon/streamline-icons/money-atm.icon.js +2 -2
  903. package/lib/components/Icon/streamline-icons/money-atm.icon.js.map +1 -1
  904. package/lib/components/Icon/streamline-icons/money.icon.d.ts +1 -1
  905. package/lib/components/Icon/streamline-icons/money.icon.d.ts.map +1 -1
  906. package/lib/components/Icon/streamline-icons/money.icon.js +2 -2
  907. package/lib/components/Icon/streamline-icons/money.icon.js.map +1 -1
  908. package/lib/components/Icon/streamline-icons/monitor-lock.icon.d.ts +1 -1
  909. package/lib/components/Icon/streamline-icons/monitor-lock.icon.d.ts.map +1 -1
  910. package/lib/components/Icon/streamline-icons/monitor-lock.icon.js +2 -2
  911. package/lib/components/Icon/streamline-icons/monitor-lock.icon.js.map +1 -1
  912. package/lib/components/Icon/streamline-icons/more.icon.d.ts +5 -0
  913. package/lib/components/Icon/streamline-icons/more.icon.d.ts.map +1 -0
  914. package/lib/components/Icon/streamline-icons/more.icon.js +7 -0
  915. package/lib/components/Icon/streamline-icons/more.icon.js.map +1 -0
  916. package/lib/components/Icon/streamline-icons/mountain-top.icon.d.ts +1 -1
  917. package/lib/components/Icon/streamline-icons/mountain-top.icon.d.ts.map +1 -1
  918. package/lib/components/Icon/streamline-icons/mountain-top.icon.js +2 -2
  919. package/lib/components/Icon/streamline-icons/mountain-top.icon.js.map +1 -1
  920. package/lib/components/Icon/streamline-icons/multi-device.icon.d.ts +1 -1
  921. package/lib/components/Icon/streamline-icons/multi-device.icon.d.ts.map +1 -1
  922. package/lib/components/Icon/streamline-icons/multi-device.icon.js +2 -2
  923. package/lib/components/Icon/streamline-icons/multi-device.icon.js.map +1 -1
  924. package/lib/components/Icon/streamline-icons/navigation.icon.d.ts +5 -0
  925. package/lib/components/Icon/streamline-icons/navigation.icon.d.ts.map +1 -0
  926. package/lib/components/Icon/streamline-icons/navigation.icon.js +7 -0
  927. package/lib/components/Icon/streamline-icons/navigation.icon.js.map +1 -0
  928. package/lib/components/Icon/streamline-icons/newspaper-fold.icon.d.ts +1 -1
  929. package/lib/components/Icon/streamline-icons/newspaper-fold.icon.d.ts.map +1 -1
  930. package/lib/components/Icon/streamline-icons/newspaper-fold.icon.js +2 -2
  931. package/lib/components/Icon/streamline-icons/newspaper-fold.icon.js.map +1 -1
  932. package/lib/components/Icon/streamline-icons/newspaper.icon.d.ts +1 -1
  933. package/lib/components/Icon/streamline-icons/newspaper.icon.d.ts.map +1 -1
  934. package/lib/components/Icon/streamline-icons/newspaper.icon.js +2 -2
  935. package/lib/components/Icon/streamline-icons/newspaper.icon.js.map +1 -1
  936. package/lib/components/Icon/streamline-icons/nodes-down.icon.d.ts +5 -0
  937. package/lib/components/Icon/streamline-icons/nodes-down.icon.d.ts.map +1 -0
  938. package/lib/components/Icon/streamline-icons/nodes-down.icon.js +7 -0
  939. package/lib/components/Icon/streamline-icons/nodes-down.icon.js.map +1 -0
  940. package/lib/components/Icon/streamline-icons/note-pin.icon.d.ts +1 -1
  941. package/lib/components/Icon/streamline-icons/note-pin.icon.d.ts.map +1 -1
  942. package/lib/components/Icon/streamline-icons/note-pin.icon.js +2 -2
  943. package/lib/components/Icon/streamline-icons/note-pin.icon.js.map +1 -1
  944. package/lib/components/Icon/streamline-icons/notepad.icon.d.ts +1 -1
  945. package/lib/components/Icon/streamline-icons/notepad.icon.d.ts.map +1 -1
  946. package/lib/components/Icon/streamline-icons/notepad.icon.js +2 -2
  947. package/lib/components/Icon/streamline-icons/notepad.icon.js.map +1 -1
  948. package/lib/components/Icon/streamline-icons/number-decimal.icon.d.ts +1 -1
  949. package/lib/components/Icon/streamline-icons/number-decimal.icon.d.ts.map +1 -1
  950. package/lib/components/Icon/streamline-icons/number-decimal.icon.js +3 -3
  951. package/lib/components/Icon/streamline-icons/number-decimal.icon.js.map +1 -1
  952. package/lib/components/Icon/streamline-icons/offer-list.icon.d.ts +1 -1
  953. package/lib/components/Icon/streamline-icons/offer-list.icon.d.ts.map +1 -1
  954. package/lib/components/Icon/streamline-icons/offer-list.icon.js +2 -2
  955. package/lib/components/Icon/streamline-icons/offer-list.icon.js.map +1 -1
  956. package/lib/components/Icon/streamline-icons/offer-table.icon.d.ts +1 -1
  957. package/lib/components/Icon/streamline-icons/offer-table.icon.d.ts.map +1 -1
  958. package/lib/components/Icon/streamline-icons/offer-table.icon.js +2 -2
  959. package/lib/components/Icon/streamline-icons/offer-table.icon.js.map +1 -1
  960. package/lib/components/Icon/streamline-icons/offer.icon.d.ts +1 -1
  961. package/lib/components/Icon/streamline-icons/offer.icon.d.ts.map +1 -1
  962. package/lib/components/Icon/streamline-icons/offer.icon.js +2 -2
  963. package/lib/components/Icon/streamline-icons/offer.icon.js.map +1 -1
  964. package/lib/components/Icon/streamline-icons/open-new-tab.icon.d.ts +1 -1
  965. package/lib/components/Icon/streamline-icons/open-new-tab.icon.d.ts.map +1 -1
  966. package/lib/components/Icon/streamline-icons/open-new-tab.icon.js +2 -2
  967. package/lib/components/Icon/streamline-icons/open-new-tab.icon.js.map +1 -1
  968. package/lib/components/Icon/streamline-icons/open.icon.d.ts +1 -1
  969. package/lib/components/Icon/streamline-icons/open.icon.d.ts.map +1 -1
  970. package/lib/components/Icon/streamline-icons/open.icon.js +2 -2
  971. package/lib/components/Icon/streamline-icons/open.icon.js.map +1 -1
  972. package/lib/components/Icon/streamline-icons/opportunity-refresh.icon.d.ts +1 -1
  973. package/lib/components/Icon/streamline-icons/opportunity-refresh.icon.d.ts.map +1 -1
  974. package/lib/components/Icon/streamline-icons/opportunity-refresh.icon.js +2 -2
  975. package/lib/components/Icon/streamline-icons/opportunity-refresh.icon.js.map +1 -1
  976. package/lib/components/Icon/streamline-icons/opportunity.icon.d.ts +1 -1
  977. package/lib/components/Icon/streamline-icons/opportunity.icon.d.ts.map +1 -1
  978. package/lib/components/Icon/streamline-icons/opportunity.icon.js +2 -2
  979. package/lib/components/Icon/streamline-icons/opportunity.icon.js.map +1 -1
  980. package/lib/components/Icon/streamline-icons/os-apple.icon.d.ts +5 -0
  981. package/lib/components/Icon/streamline-icons/os-apple.icon.d.ts.map +1 -0
  982. package/lib/components/Icon/streamline-icons/os-apple.icon.js +7 -0
  983. package/lib/components/Icon/streamline-icons/os-apple.icon.js.map +1 -0
  984. package/lib/components/Icon/streamline-icons/paper-clip.icon.d.ts +1 -1
  985. package/lib/components/Icon/streamline-icons/paper-clip.icon.d.ts.map +1 -1
  986. package/lib/components/Icon/streamline-icons/paper-clip.icon.js +2 -2
  987. package/lib/components/Icon/streamline-icons/paper-clip.icon.js.map +1 -1
  988. package/lib/components/Icon/streamline-icons/paper-search.icon.d.ts +1 -1
  989. package/lib/components/Icon/streamline-icons/paper-search.icon.d.ts.map +1 -1
  990. package/lib/components/Icon/streamline-icons/paper-search.icon.js +2 -2
  991. package/lib/components/Icon/streamline-icons/paper-search.icon.js.map +1 -1
  992. package/lib/components/Icon/streamline-icons/password-lock.icon.d.ts +1 -1
  993. package/lib/components/Icon/streamline-icons/password-lock.icon.d.ts.map +1 -1
  994. package/lib/components/Icon/streamline-icons/password-lock.icon.js +2 -2
  995. package/lib/components/Icon/streamline-icons/password-lock.icon.js.map +1 -1
  996. package/lib/components/Icon/streamline-icons/pause.icon.d.ts +1 -1
  997. package/lib/components/Icon/streamline-icons/pause.icon.d.ts.map +1 -1
  998. package/lib/components/Icon/streamline-icons/pause.icon.js +3 -3
  999. package/lib/components/Icon/streamline-icons/pause.icon.js.map +1 -1
  1000. package/lib/components/Icon/streamline-icons/paypal.icon.d.ts +5 -0
  1001. package/lib/components/Icon/streamline-icons/paypal.icon.d.ts.map +1 -0
  1002. package/lib/components/Icon/streamline-icons/paypal.icon.js +7 -0
  1003. package/lib/components/Icon/streamline-icons/paypal.icon.js.map +1 -0
  1004. package/lib/components/Icon/streamline-icons/pega.icon.d.ts +5 -0
  1005. package/lib/components/Icon/streamline-icons/pega.icon.d.ts.map +1 -0
  1006. package/lib/components/Icon/streamline-icons/pega.icon.js +7 -0
  1007. package/lib/components/Icon/streamline-icons/pega.icon.js.map +1 -0
  1008. package/lib/components/Icon/streamline-icons/pegasus.icon.d.ts +5 -0
  1009. package/lib/components/Icon/streamline-icons/pegasus.icon.d.ts.map +1 -0
  1010. package/lib/components/Icon/streamline-icons/pegasus.icon.js +7 -0
  1011. package/lib/components/Icon/streamline-icons/pegasus.icon.js.map +1 -0
  1012. package/lib/components/Icon/streamline-icons/pencil.icon.d.ts +1 -1
  1013. package/lib/components/Icon/streamline-icons/pencil.icon.d.ts.map +1 -1
  1014. package/lib/components/Icon/streamline-icons/pencil.icon.js +2 -2
  1015. package/lib/components/Icon/streamline-icons/pencil.icon.js.map +1 -1
  1016. package/lib/components/Icon/streamline-icons/percentage.icon.d.ts +1 -1
  1017. package/lib/components/Icon/streamline-icons/percentage.icon.d.ts.map +1 -1
  1018. package/lib/components/Icon/streamline-icons/percentage.icon.js +2 -2
  1019. package/lib/components/Icon/streamline-icons/percentage.icon.js.map +1 -1
  1020. package/lib/components/Icon/streamline-icons/person-connection.icon.d.ts +1 -1
  1021. package/lib/components/Icon/streamline-icons/person-connection.icon.d.ts.map +1 -1
  1022. package/lib/components/Icon/streamline-icons/person-connection.icon.js +2 -2
  1023. package/lib/components/Icon/streamline-icons/person-connection.icon.js.map +1 -1
  1024. package/lib/components/Icon/streamline-icons/person-hierarchy-check.icon.d.ts +1 -1
  1025. package/lib/components/Icon/streamline-icons/person-hierarchy-check.icon.d.ts.map +1 -1
  1026. package/lib/components/Icon/streamline-icons/person-hierarchy-check.icon.js +2 -2
  1027. package/lib/components/Icon/streamline-icons/person-hierarchy-check.icon.js.map +1 -1
  1028. package/lib/components/Icon/streamline-icons/person-stars.icon.d.ts +1 -1
  1029. package/lib/components/Icon/streamline-icons/person-stars.icon.d.ts.map +1 -1
  1030. package/lib/components/Icon/streamline-icons/person-stars.icon.js +2 -2
  1031. package/lib/components/Icon/streamline-icons/person-stars.icon.js.map +1 -1
  1032. package/lib/components/Icon/streamline-icons/person.icon.d.ts +1 -1
  1033. package/lib/components/Icon/streamline-icons/person.icon.d.ts.map +1 -1
  1034. package/lib/components/Icon/streamline-icons/person.icon.js +2 -2
  1035. package/lib/components/Icon/streamline-icons/person.icon.js.map +1 -1
  1036. package/lib/components/Icon/streamline-icons/persons-group.icon.d.ts +1 -1
  1037. package/lib/components/Icon/streamline-icons/persons-group.icon.d.ts.map +1 -1
  1038. package/lib/components/Icon/streamline-icons/persons-group.icon.js +2 -2
  1039. package/lib/components/Icon/streamline-icons/persons-group.icon.js.map +1 -1
  1040. package/lib/components/Icon/streamline-icons/phone-call.icon.d.ts +1 -1
  1041. package/lib/components/Icon/streamline-icons/phone-call.icon.d.ts.map +1 -1
  1042. package/lib/components/Icon/streamline-icons/phone-call.icon.js +2 -2
  1043. package/lib/components/Icon/streamline-icons/phone-call.icon.js.map +1 -1
  1044. package/lib/components/Icon/streamline-icons/phone-dial.icon.d.ts +1 -1
  1045. package/lib/components/Icon/streamline-icons/phone-dial.icon.d.ts.map +1 -1
  1046. package/lib/components/Icon/streamline-icons/phone-dial.icon.js +2 -2
  1047. package/lib/components/Icon/streamline-icons/phone-dial.icon.js.map +1 -1
  1048. package/lib/components/Icon/streamline-icons/phone-hangup.icon.d.ts +1 -1
  1049. package/lib/components/Icon/streamline-icons/phone-hangup.icon.d.ts.map +1 -1
  1050. package/lib/components/Icon/streamline-icons/phone-hangup.icon.js +2 -2
  1051. package/lib/components/Icon/streamline-icons/phone-hangup.icon.js.map +1 -1
  1052. package/lib/components/Icon/streamline-icons/phone-in.icon.d.ts +1 -1
  1053. package/lib/components/Icon/streamline-icons/phone-in.icon.d.ts.map +1 -1
  1054. package/lib/components/Icon/streamline-icons/phone-in.icon.js +2 -2
  1055. package/lib/components/Icon/streamline-icons/phone-in.icon.js.map +1 -1
  1056. package/lib/components/Icon/streamline-icons/phone-ivr.icon.d.ts +1 -1
  1057. package/lib/components/Icon/streamline-icons/phone-ivr.icon.d.ts.map +1 -1
  1058. package/lib/components/Icon/streamline-icons/phone-ivr.icon.js +2 -2
  1059. package/lib/components/Icon/streamline-icons/phone-ivr.icon.js.map +1 -1
  1060. package/lib/components/Icon/streamline-icons/phone-off.icon.d.ts +1 -1
  1061. package/lib/components/Icon/streamline-icons/phone-off.icon.d.ts.map +1 -1
  1062. package/lib/components/Icon/streamline-icons/phone-off.icon.js +2 -2
  1063. package/lib/components/Icon/streamline-icons/phone-off.icon.js.map +1 -1
  1064. package/lib/components/Icon/streamline-icons/phone-out.icon.d.ts +1 -1
  1065. package/lib/components/Icon/streamline-icons/phone-out.icon.d.ts.map +1 -1
  1066. package/lib/components/Icon/streamline-icons/phone-out.icon.js +2 -2
  1067. package/lib/components/Icon/streamline-icons/phone-out.icon.js.map +1 -1
  1068. package/lib/components/Icon/streamline-icons/phone-split.icon.d.ts +5 -0
  1069. package/lib/components/Icon/streamline-icons/phone-split.icon.d.ts.map +1 -0
  1070. package/lib/components/Icon/streamline-icons/phone-split.icon.js +7 -0
  1071. package/lib/components/Icon/streamline-icons/phone-split.icon.js.map +1 -0
  1072. package/lib/components/Icon/streamline-icons/phone-transfer.icon.d.ts +1 -1
  1073. package/lib/components/Icon/streamline-icons/phone-transfer.icon.d.ts.map +1 -1
  1074. package/lib/components/Icon/streamline-icons/phone-transfer.icon.js +2 -2
  1075. package/lib/components/Icon/streamline-icons/phone-transfer.icon.js.map +1 -1
  1076. package/lib/components/Icon/streamline-icons/phone.icon.d.ts +1 -1
  1077. package/lib/components/Icon/streamline-icons/phone.icon.d.ts.map +1 -1
  1078. package/lib/components/Icon/streamline-icons/phone.icon.js +2 -2
  1079. package/lib/components/Icon/streamline-icons/phone.icon.js.map +1 -1
  1080. package/lib/components/Icon/streamline-icons/phonebook.icon.d.ts +1 -1
  1081. package/lib/components/Icon/streamline-icons/phonebook.icon.d.ts.map +1 -1
  1082. package/lib/components/Icon/streamline-icons/phonebook.icon.js +2 -2
  1083. package/lib/components/Icon/streamline-icons/phonebook.icon.js.map +1 -1
  1084. package/lib/components/Icon/streamline-icons/picture.icon.d.ts +1 -1
  1085. package/lib/components/Icon/streamline-icons/picture.icon.d.ts.map +1 -1
  1086. package/lib/components/Icon/streamline-icons/picture.icon.js +2 -2
  1087. package/lib/components/Icon/streamline-icons/picture.icon.js.map +1 -1
  1088. package/lib/components/Icon/streamline-icons/play-solid.icon.d.ts +1 -1
  1089. package/lib/components/Icon/streamline-icons/play-solid.icon.js +2 -2
  1090. package/lib/components/Icon/streamline-icons/play-solid.icon.js.map +1 -1
  1091. package/lib/components/Icon/streamline-icons/play.icon.d.ts +1 -1
  1092. package/lib/components/Icon/streamline-icons/play.icon.d.ts.map +1 -1
  1093. package/lib/components/Icon/streamline-icons/play.icon.js +2 -2
  1094. package/lib/components/Icon/streamline-icons/play.icon.js.map +1 -1
  1095. package/lib/components/Icon/streamline-icons/plug-solid.icon.d.ts +1 -1
  1096. package/lib/components/Icon/streamline-icons/plug-solid.icon.d.ts.map +1 -1
  1097. package/lib/components/Icon/streamline-icons/plug-solid.icon.js +3 -3
  1098. package/lib/components/Icon/streamline-icons/plug-solid.icon.js.map +1 -1
  1099. package/lib/components/Icon/streamline-icons/plug.icon.d.ts +1 -1
  1100. package/lib/components/Icon/streamline-icons/plug.icon.d.ts.map +1 -1
  1101. package/lib/components/Icon/streamline-icons/plug.icon.js +2 -2
  1102. package/lib/components/Icon/streamline-icons/plug.icon.js.map +1 -1
  1103. package/lib/components/Icon/streamline-icons/plus.icon.d.ts +1 -1
  1104. package/lib/components/Icon/streamline-icons/plus.icon.d.ts.map +1 -1
  1105. package/lib/components/Icon/streamline-icons/plus.icon.js +2 -2
  1106. package/lib/components/Icon/streamline-icons/plus.icon.js.map +1 -1
  1107. package/lib/components/Icon/streamline-icons/polaris-solid.icon.d.ts +1 -1
  1108. package/lib/components/Icon/streamline-icons/polaris-solid.icon.d.ts.map +1 -1
  1109. package/lib/components/Icon/streamline-icons/polaris-solid.icon.js +2 -2
  1110. package/lib/components/Icon/streamline-icons/polaris-solid.icon.js.map +1 -1
  1111. package/lib/components/Icon/streamline-icons/polaris.icon.d.ts +5 -0
  1112. package/lib/components/Icon/streamline-icons/polaris.icon.d.ts.map +1 -0
  1113. package/lib/components/Icon/streamline-icons/polaris.icon.js +7 -0
  1114. package/lib/components/Icon/streamline-icons/polaris.icon.js.map +1 -0
  1115. package/lib/components/Icon/streamline-icons/presentation.icon.d.ts +1 -1
  1116. package/lib/components/Icon/streamline-icons/presentation.icon.d.ts.map +1 -1
  1117. package/lib/components/Icon/streamline-icons/presentation.icon.js +2 -2
  1118. package/lib/components/Icon/streamline-icons/presentation.icon.js.map +1 -1
  1119. package/lib/components/Icon/streamline-icons/product.icon.d.ts +1 -1
  1120. package/lib/components/Icon/streamline-icons/product.icon.d.ts.map +1 -1
  1121. package/lib/components/Icon/streamline-icons/product.icon.js +2 -2
  1122. package/lib/components/Icon/streamline-icons/product.icon.js.map +1 -1
  1123. package/lib/components/Icon/streamline-icons/project-plan.icon.d.ts +1 -1
  1124. package/lib/components/Icon/streamline-icons/project-plan.icon.d.ts.map +1 -1
  1125. package/lib/components/Icon/streamline-icons/project-plan.icon.js +3 -3
  1126. package/lib/components/Icon/streamline-icons/project-plan.icon.js.map +1 -1
  1127. package/lib/components/Icon/streamline-icons/project.icon.d.ts +1 -1
  1128. package/lib/components/Icon/streamline-icons/project.icon.d.ts.map +1 -1
  1129. package/lib/components/Icon/streamline-icons/project.icon.js +2 -2
  1130. package/lib/components/Icon/streamline-icons/project.icon.js.map +1 -1
  1131. package/lib/components/Icon/streamline-icons/qr.icon.d.ts +1 -1
  1132. package/lib/components/Icon/streamline-icons/qr.icon.d.ts.map +1 -1
  1133. package/lib/components/Icon/streamline-icons/qr.icon.js +2 -2
  1134. package/lib/components/Icon/streamline-icons/qr.icon.js.map +1 -1
  1135. package/lib/components/Icon/streamline-icons/receipt.icon.d.ts +1 -1
  1136. package/lib/components/Icon/streamline-icons/receipt.icon.d.ts.map +1 -1
  1137. package/lib/components/Icon/streamline-icons/receipt.icon.js +2 -2
  1138. package/lib/components/Icon/streamline-icons/receipt.icon.js.map +1 -1
  1139. package/lib/components/Icon/streamline-icons/reply-all.icon.d.ts +1 -1
  1140. package/lib/components/Icon/streamline-icons/reply-all.icon.d.ts.map +1 -1
  1141. package/lib/components/Icon/streamline-icons/reply-all.icon.js +2 -2
  1142. package/lib/components/Icon/streamline-icons/reply-all.icon.js.map +1 -1
  1143. package/lib/components/Icon/streamline-icons/reply.icon.d.ts +1 -1
  1144. package/lib/components/Icon/streamline-icons/reply.icon.d.ts.map +1 -1
  1145. package/lib/components/Icon/streamline-icons/reply.icon.js +2 -2
  1146. package/lib/components/Icon/streamline-icons/reply.icon.js.map +1 -1
  1147. package/lib/components/Icon/streamline-icons/reset.icon.d.ts +1 -1
  1148. package/lib/components/Icon/streamline-icons/reset.icon.d.ts.map +1 -1
  1149. package/lib/components/Icon/streamline-icons/reset.icon.js +2 -2
  1150. package/lib/components/Icon/streamline-icons/reset.icon.js.map +1 -1
  1151. package/lib/components/Icon/streamline-icons/robot-happy.icon.d.ts +1 -1
  1152. package/lib/components/Icon/streamline-icons/robot-happy.icon.d.ts.map +1 -1
  1153. package/lib/components/Icon/streamline-icons/robot-happy.icon.js +2 -2
  1154. package/lib/components/Icon/streamline-icons/robot-happy.icon.js.map +1 -1
  1155. package/lib/components/Icon/streamline-icons/robot-sad.icon.d.ts +1 -1
  1156. package/lib/components/Icon/streamline-icons/robot-sad.icon.d.ts.map +1 -1
  1157. package/lib/components/Icon/streamline-icons/robot-sad.icon.js +2 -2
  1158. package/lib/components/Icon/streamline-icons/robot-sad.icon.js.map +1 -1
  1159. package/lib/components/Icon/streamline-icons/robot.icon.d.ts +1 -1
  1160. package/lib/components/Icon/streamline-icons/robot.icon.d.ts.map +1 -1
  1161. package/lib/components/Icon/streamline-icons/robot.icon.js +2 -2
  1162. package/lib/components/Icon/streamline-icons/robot.icon.js.map +1 -1
  1163. package/lib/components/Icon/streamline-icons/roof-people.icon.d.ts +1 -1
  1164. package/lib/components/Icon/streamline-icons/roof-people.icon.d.ts.map +1 -1
  1165. package/lib/components/Icon/streamline-icons/roof-people.icon.js +2 -2
  1166. package/lib/components/Icon/streamline-icons/roof-people.icon.js.map +1 -1
  1167. package/lib/components/Icon/streamline-icons/row-delete.icon.d.ts +5 -0
  1168. package/lib/components/Icon/streamline-icons/row-delete.icon.d.ts.map +1 -0
  1169. package/lib/components/Icon/streamline-icons/row-delete.icon.js +7 -0
  1170. package/lib/components/Icon/streamline-icons/row-delete.icon.js.map +1 -0
  1171. package/lib/components/Icon/streamline-icons/row-insert.icon.d.ts +1 -1
  1172. package/lib/components/Icon/streamline-icons/row-insert.icon.d.ts.map +1 -1
  1173. package/lib/components/Icon/streamline-icons/row-insert.icon.js +2 -2
  1174. package/lib/components/Icon/streamline-icons/row-insert.icon.js.map +1 -1
  1175. package/lib/components/Icon/streamline-icons/row.icon.d.ts +1 -1
  1176. package/lib/components/Icon/streamline-icons/row.icon.d.ts.map +1 -1
  1177. package/lib/components/Icon/streamline-icons/row.icon.js +3 -3
  1178. package/lib/components/Icon/streamline-icons/row.icon.js.map +1 -1
  1179. package/lib/components/Icon/streamline-icons/rule-library-solid.icon.d.ts +1 -1
  1180. package/lib/components/Icon/streamline-icons/rule-library-solid.icon.d.ts.map +1 -1
  1181. package/lib/components/Icon/streamline-icons/rule-library-solid.icon.js +2 -2
  1182. package/lib/components/Icon/streamline-icons/rule-library-solid.icon.js.map +1 -1
  1183. package/lib/components/Icon/streamline-icons/rule-library.icon.d.ts +1 -1
  1184. package/lib/components/Icon/streamline-icons/rule-library.icon.d.ts.map +1 -1
  1185. package/lib/components/Icon/streamline-icons/rule-library.icon.js +2 -2
  1186. package/lib/components/Icon/streamline-icons/rule-library.icon.js.map +1 -1
  1187. package/lib/components/Icon/streamline-icons/rule.icon.d.ts +1 -1
  1188. package/lib/components/Icon/streamline-icons/rule.icon.d.ts.map +1 -1
  1189. package/lib/components/Icon/streamline-icons/rule.icon.js +3 -3
  1190. package/lib/components/Icon/streamline-icons/rule.icon.js.map +1 -1
  1191. package/lib/components/Icon/streamline-icons/scale-down.icon.d.ts +1 -1
  1192. package/lib/components/Icon/streamline-icons/scale-down.icon.d.ts.map +1 -1
  1193. package/lib/components/Icon/streamline-icons/scale-down.icon.js +2 -2
  1194. package/lib/components/Icon/streamline-icons/scale-down.icon.js.map +1 -1
  1195. package/lib/components/Icon/streamline-icons/scale-up.icon.d.ts +1 -1
  1196. package/lib/components/Icon/streamline-icons/scale-up.icon.d.ts.map +1 -1
  1197. package/lib/components/Icon/streamline-icons/scale-up.icon.js +2 -2
  1198. package/lib/components/Icon/streamline-icons/scale-up.icon.js.map +1 -1
  1199. package/lib/components/Icon/streamline-icons/script.icon.d.ts +1 -1
  1200. package/lib/components/Icon/streamline-icons/script.icon.d.ts.map +1 -1
  1201. package/lib/components/Icon/streamline-icons/script.icon.js +2 -2
  1202. package/lib/components/Icon/streamline-icons/script.icon.js.map +1 -1
  1203. package/lib/components/Icon/streamline-icons/search-analytics-solid.icon.d.ts +1 -1
  1204. package/lib/components/Icon/streamline-icons/search-analytics-solid.icon.d.ts.map +1 -1
  1205. package/lib/components/Icon/streamline-icons/search-analytics-solid.icon.js +3 -3
  1206. package/lib/components/Icon/streamline-icons/search-analytics-solid.icon.js.map +1 -1
  1207. package/lib/components/Icon/streamline-icons/search-analytics.icon.d.ts +1 -1
  1208. package/lib/components/Icon/streamline-icons/search-analytics.icon.d.ts.map +1 -1
  1209. package/lib/components/Icon/streamline-icons/search-analytics.icon.js +2 -2
  1210. package/lib/components/Icon/streamline-icons/search-analytics.icon.js.map +1 -1
  1211. package/lib/components/Icon/streamline-icons/search.icon.d.ts +1 -1
  1212. package/lib/components/Icon/streamline-icons/search.icon.d.ts.map +1 -1
  1213. package/lib/components/Icon/streamline-icons/search.icon.js +2 -2
  1214. package/lib/components/Icon/streamline-icons/search.icon.js.map +1 -1
  1215. package/lib/components/Icon/streamline-icons/send.icon.d.ts +1 -1
  1216. package/lib/components/Icon/streamline-icons/send.icon.d.ts.map +1 -1
  1217. package/lib/components/Icon/streamline-icons/send.icon.js +2 -2
  1218. package/lib/components/Icon/streamline-icons/send.icon.js.map +1 -1
  1219. package/lib/components/Icon/streamline-icons/server.icon.d.ts +1 -1
  1220. package/lib/components/Icon/streamline-icons/server.icon.d.ts.map +1 -1
  1221. package/lib/components/Icon/streamline-icons/server.icon.js +2 -2
  1222. package/lib/components/Icon/streamline-icons/server.icon.js.map +1 -1
  1223. package/lib/components/Icon/streamline-icons/set.icon.d.ts +1 -1
  1224. package/lib/components/Icon/streamline-icons/set.icon.d.ts.map +1 -1
  1225. package/lib/components/Icon/streamline-icons/set.icon.js +2 -2
  1226. package/lib/components/Icon/streamline-icons/set.icon.js.map +1 -1
  1227. package/lib/components/Icon/streamline-icons/share.icon.d.ts +1 -1
  1228. package/lib/components/Icon/streamline-icons/share.icon.d.ts.map +1 -1
  1229. package/lib/components/Icon/streamline-icons/share.icon.js +2 -2
  1230. package/lib/components/Icon/streamline-icons/share.icon.js.map +1 -1
  1231. package/lib/components/Icon/streamline-icons/shield-solid.icon.d.ts +1 -1
  1232. package/lib/components/Icon/streamline-icons/shield-solid.icon.js +2 -2
  1233. package/lib/components/Icon/streamline-icons/shield-solid.icon.js.map +1 -1
  1234. package/lib/components/Icon/streamline-icons/shield.icon.d.ts +1 -1
  1235. package/lib/components/Icon/streamline-icons/shield.icon.d.ts.map +1 -1
  1236. package/lib/components/Icon/streamline-icons/shield.icon.js +2 -2
  1237. package/lib/components/Icon/streamline-icons/shield.icon.js.map +1 -1
  1238. package/lib/components/Icon/streamline-icons/shipment-box.icon.d.ts +1 -1
  1239. package/lib/components/Icon/streamline-icons/shipment-box.icon.d.ts.map +1 -1
  1240. package/lib/components/Icon/streamline-icons/shipment-box.icon.js +2 -2
  1241. package/lib/components/Icon/streamline-icons/shipment-box.icon.js.map +1 -1
  1242. package/lib/components/Icon/streamline-icons/shop.icon.d.ts +1 -1
  1243. package/lib/components/Icon/streamline-icons/shop.icon.d.ts.map +1 -1
  1244. package/lib/components/Icon/streamline-icons/shop.icon.js +2 -2
  1245. package/lib/components/Icon/streamline-icons/shop.icon.js.map +1 -1
  1246. package/lib/components/Icon/streamline-icons/shuffle.icon.d.ts +1 -1
  1247. package/lib/components/Icon/streamline-icons/shuffle.icon.d.ts.map +1 -1
  1248. package/lib/components/Icon/streamline-icons/shuffle.icon.js +2 -2
  1249. package/lib/components/Icon/streamline-icons/shuffle.icon.js.map +1 -1
  1250. package/lib/components/Icon/streamline-icons/sigma.icon.d.ts +1 -1
  1251. package/lib/components/Icon/streamline-icons/sigma.icon.d.ts.map +1 -1
  1252. package/lib/components/Icon/streamline-icons/sigma.icon.js +2 -2
  1253. package/lib/components/Icon/streamline-icons/sigma.icon.js.map +1 -1
  1254. package/lib/components/Icon/streamline-icons/slideshow.icon.d.ts +1 -1
  1255. package/lib/components/Icon/streamline-icons/slideshow.icon.d.ts.map +1 -1
  1256. package/lib/components/Icon/streamline-icons/slideshow.icon.js +2 -2
  1257. package/lib/components/Icon/streamline-icons/slideshow.icon.js.map +1 -1
  1258. package/lib/components/Icon/streamline-icons/snow.icon.d.ts +1 -1
  1259. package/lib/components/Icon/streamline-icons/snow.icon.d.ts.map +1 -1
  1260. package/lib/components/Icon/streamline-icons/snow.icon.js +2 -2
  1261. package/lib/components/Icon/streamline-icons/snow.icon.js.map +1 -1
  1262. package/lib/components/Icon/streamline-icons/speaker.icon.d.ts +1 -1
  1263. package/lib/components/Icon/streamline-icons/speaker.icon.d.ts.map +1 -1
  1264. package/lib/components/Icon/streamline-icons/speaker.icon.js +2 -2
  1265. package/lib/components/Icon/streamline-icons/speaker.icon.js.map +1 -1
  1266. package/lib/components/Icon/streamline-icons/split.icon.d.ts +1 -1
  1267. package/lib/components/Icon/streamline-icons/split.icon.d.ts.map +1 -1
  1268. package/lib/components/Icon/streamline-icons/split.icon.js +2 -2
  1269. package/lib/components/Icon/streamline-icons/split.icon.js.map +1 -1
  1270. package/lib/components/Icon/streamline-icons/stakeholders.icon.d.ts +1 -1
  1271. package/lib/components/Icon/streamline-icons/stakeholders.icon.d.ts.map +1 -1
  1272. package/lib/components/Icon/streamline-icons/stakeholders.icon.js +3 -3
  1273. package/lib/components/Icon/streamline-icons/stakeholders.icon.js.map +1 -1
  1274. package/lib/components/Icon/streamline-icons/star-mixed.icon.d.ts +1 -1
  1275. package/lib/components/Icon/streamline-icons/star-mixed.icon.d.ts.map +1 -1
  1276. package/lib/components/Icon/streamline-icons/star-mixed.icon.js +3 -3
  1277. package/lib/components/Icon/streamline-icons/star-mixed.icon.js.map +1 -1
  1278. package/lib/components/Icon/streamline-icons/star-solid.icon.d.ts +1 -1
  1279. package/lib/components/Icon/streamline-icons/star-solid.icon.js +2 -2
  1280. package/lib/components/Icon/streamline-icons/star-solid.icon.js.map +1 -1
  1281. package/lib/components/Icon/streamline-icons/star.icon.d.ts +1 -1
  1282. package/lib/components/Icon/streamline-icons/star.icon.d.ts.map +1 -1
  1283. package/lib/components/Icon/streamline-icons/star.icon.js +2 -2
  1284. package/lib/components/Icon/streamline-icons/star.icon.js.map +1 -1
  1285. package/lib/components/Icon/streamline-icons/sub-step.icon.d.ts +1 -1
  1286. package/lib/components/Icon/streamline-icons/sub-step.icon.d.ts.map +1 -1
  1287. package/lib/components/Icon/streamline-icons/sub-step.icon.js +2 -2
  1288. package/lib/components/Icon/streamline-icons/sub-step.icon.js.map +1 -1
  1289. package/lib/components/Icon/streamline-icons/table-bolt-solid.icon.d.ts +1 -1
  1290. package/lib/components/Icon/streamline-icons/table-bolt-solid.icon.d.ts.map +1 -1
  1291. package/lib/components/Icon/streamline-icons/table-bolt-solid.icon.js +2 -2
  1292. package/lib/components/Icon/streamline-icons/table-bolt-solid.icon.js.map +1 -1
  1293. package/lib/components/Icon/streamline-icons/table-bolt.icon.d.ts +1 -1
  1294. package/lib/components/Icon/streamline-icons/table-bolt.icon.d.ts.map +1 -1
  1295. package/lib/components/Icon/streamline-icons/table-bolt.icon.js +2 -2
  1296. package/lib/components/Icon/streamline-icons/table-bolt.icon.js.map +1 -1
  1297. package/lib/components/Icon/streamline-icons/table.icon.d.ts +5 -0
  1298. package/lib/components/Icon/streamline-icons/table.icon.d.ts.map +1 -0
  1299. package/lib/components/Icon/streamline-icons/table.icon.js +7 -0
  1300. package/lib/components/Icon/streamline-icons/table.icon.js.map +1 -0
  1301. package/lib/components/Icon/streamline-icons/tag.icon.d.ts +1 -1
  1302. package/lib/components/Icon/streamline-icons/tag.icon.d.ts.map +1 -1
  1303. package/lib/components/Icon/streamline-icons/tag.icon.js +2 -2
  1304. package/lib/components/Icon/streamline-icons/tag.icon.js.map +1 -1
  1305. package/lib/components/Icon/streamline-icons/target-path.icon.d.ts +1 -1
  1306. package/lib/components/Icon/streamline-icons/target-path.icon.d.ts.map +1 -1
  1307. package/lib/components/Icon/streamline-icons/target-path.icon.js +2 -2
  1308. package/lib/components/Icon/streamline-icons/target-path.icon.js.map +1 -1
  1309. package/lib/components/Icon/streamline-icons/team.icon.d.ts +1 -1
  1310. package/lib/components/Icon/streamline-icons/team.icon.d.ts.map +1 -1
  1311. package/lib/components/Icon/streamline-icons/team.icon.js +2 -2
  1312. package/lib/components/Icon/streamline-icons/team.icon.js.map +1 -1
  1313. package/lib/components/Icon/streamline-icons/thumbs-down-solid.icon.d.ts +1 -1
  1314. package/lib/components/Icon/streamline-icons/thumbs-down-solid.icon.d.ts.map +1 -1
  1315. package/lib/components/Icon/streamline-icons/thumbs-down-solid.icon.js +2 -2
  1316. package/lib/components/Icon/streamline-icons/thumbs-down-solid.icon.js.map +1 -1
  1317. package/lib/components/Icon/streamline-icons/thumbs-down.icon.d.ts +1 -1
  1318. package/lib/components/Icon/streamline-icons/thumbs-down.icon.d.ts.map +1 -1
  1319. package/lib/components/Icon/streamline-icons/thumbs-down.icon.js +3 -3
  1320. package/lib/components/Icon/streamline-icons/thumbs-down.icon.js.map +1 -1
  1321. package/lib/components/Icon/streamline-icons/thumbs-up-solid.icon.d.ts +1 -1
  1322. package/lib/components/Icon/streamline-icons/thumbs-up-solid.icon.d.ts.map +1 -1
  1323. package/lib/components/Icon/streamline-icons/thumbs-up-solid.icon.js +2 -2
  1324. package/lib/components/Icon/streamline-icons/thumbs-up-solid.icon.js.map +1 -1
  1325. package/lib/components/Icon/streamline-icons/thumbs-up.icon.d.ts +1 -1
  1326. package/lib/components/Icon/streamline-icons/thumbs-up.icon.d.ts.map +1 -1
  1327. package/lib/components/Icon/streamline-icons/thumbs-up.icon.js +3 -3
  1328. package/lib/components/Icon/streamline-icons/thumbs-up.icon.js.map +1 -1
  1329. package/lib/components/Icon/streamline-icons/times.icon.d.ts +1 -1
  1330. package/lib/components/Icon/streamline-icons/times.icon.d.ts.map +1 -1
  1331. package/lib/components/Icon/streamline-icons/times.icon.js +2 -2
  1332. package/lib/components/Icon/streamline-icons/times.icon.js.map +1 -1
  1333. package/lib/components/Icon/streamline-icons/todo.icon.d.ts +1 -1
  1334. package/lib/components/Icon/streamline-icons/todo.icon.d.ts.map +1 -1
  1335. package/lib/components/Icon/streamline-icons/todo.icon.js +2 -2
  1336. package/lib/components/Icon/streamline-icons/todo.icon.js.map +1 -1
  1337. package/lib/components/Icon/streamline-icons/toolbox-open.icon.d.ts +1 -1
  1338. package/lib/components/Icon/streamline-icons/toolbox-open.icon.d.ts.map +1 -1
  1339. package/lib/components/Icon/streamline-icons/toolbox-open.icon.js +2 -2
  1340. package/lib/components/Icon/streamline-icons/toolbox-open.icon.js.map +1 -1
  1341. package/lib/components/Icon/streamline-icons/toolbox-wrench.icon.d.ts +1 -1
  1342. package/lib/components/Icon/streamline-icons/toolbox-wrench.icon.d.ts.map +1 -1
  1343. package/lib/components/Icon/streamline-icons/toolbox-wrench.icon.js +2 -2
  1344. package/lib/components/Icon/streamline-icons/toolbox-wrench.icon.js.map +1 -1
  1345. package/lib/components/Icon/streamline-icons/transform.icon.d.ts +1 -1
  1346. package/lib/components/Icon/streamline-icons/transform.icon.d.ts.map +1 -1
  1347. package/lib/components/Icon/streamline-icons/transform.icon.js +3 -3
  1348. package/lib/components/Icon/streamline-icons/transform.icon.js.map +1 -1
  1349. package/lib/components/Icon/streamline-icons/trash.icon.d.ts +1 -1
  1350. package/lib/components/Icon/streamline-icons/trash.icon.d.ts.map +1 -1
  1351. package/lib/components/Icon/streamline-icons/trash.icon.js +3 -3
  1352. package/lib/components/Icon/streamline-icons/trash.icon.js.map +1 -1
  1353. package/lib/components/Icon/streamline-icons/tribox.icon.d.ts +1 -1
  1354. package/lib/components/Icon/streamline-icons/tribox.icon.d.ts.map +1 -1
  1355. package/lib/components/Icon/streamline-icons/tribox.icon.js +2 -2
  1356. package/lib/components/Icon/streamline-icons/tribox.icon.js.map +1 -1
  1357. package/lib/components/Icon/streamline-icons/twitter.icon.d.ts +5 -0
  1358. package/lib/components/Icon/streamline-icons/twitter.icon.d.ts.map +1 -0
  1359. package/lib/components/Icon/streamline-icons/twitter.icon.js +7 -0
  1360. package/lib/components/Icon/streamline-icons/twitter.icon.js.map +1 -0
  1361. package/lib/components/Icon/streamline-icons/two-disk-stacks.icon.d.ts +1 -1
  1362. package/lib/components/Icon/streamline-icons/two-disk-stacks.icon.d.ts.map +1 -1
  1363. package/lib/components/Icon/streamline-icons/two-disk-stacks.icon.js +2 -2
  1364. package/lib/components/Icon/streamline-icons/two-disk-stacks.icon.js.map +1 -1
  1365. package/lib/components/Icon/streamline-icons/type-cursor.icon.d.ts +1 -1
  1366. package/lib/components/Icon/streamline-icons/type-cursor.icon.d.ts.map +1 -1
  1367. package/lib/components/Icon/streamline-icons/type-cursor.icon.js +3 -3
  1368. package/lib/components/Icon/streamline-icons/type-cursor.icon.js.map +1 -1
  1369. package/lib/components/Icon/streamline-icons/umbrella.icon.d.ts +1 -1
  1370. package/lib/components/Icon/streamline-icons/umbrella.icon.d.ts.map +1 -1
  1371. package/lib/components/Icon/streamline-icons/umbrella.icon.js +2 -2
  1372. package/lib/components/Icon/streamline-icons/umbrella.icon.js.map +1 -1
  1373. package/lib/components/Icon/streamline-icons/user-check.icon.d.ts +1 -1
  1374. package/lib/components/Icon/streamline-icons/user-check.icon.d.ts.map +1 -1
  1375. package/lib/components/Icon/streamline-icons/user-check.icon.js +2 -2
  1376. package/lib/components/Icon/streamline-icons/user-check.icon.js.map +1 -1
  1377. package/lib/components/Icon/streamline-icons/user-document.icon.d.ts +1 -1
  1378. package/lib/components/Icon/streamline-icons/user-document.icon.d.ts.map +1 -1
  1379. package/lib/components/Icon/streamline-icons/user-document.icon.js +3 -3
  1380. package/lib/components/Icon/streamline-icons/user-document.icon.js.map +1 -1
  1381. package/lib/components/Icon/streamline-icons/user-information.icon.d.ts +1 -1
  1382. package/lib/components/Icon/streamline-icons/user-information.icon.d.ts.map +1 -1
  1383. package/lib/components/Icon/streamline-icons/user-information.icon.js +2 -2
  1384. package/lib/components/Icon/streamline-icons/user-information.icon.js.map +1 -1
  1385. package/lib/components/Icon/streamline-icons/user-pencil.icon.d.ts +1 -1
  1386. package/lib/components/Icon/streamline-icons/user-pencil.icon.d.ts.map +1 -1
  1387. package/lib/components/Icon/streamline-icons/user-pencil.icon.js +2 -2
  1388. package/lib/components/Icon/streamline-icons/user-pencil.icon.js.map +1 -1
  1389. package/lib/components/Icon/streamline-icons/user-solid.icon.d.ts +1 -1
  1390. package/lib/components/Icon/streamline-icons/user-solid.icon.js +2 -2
  1391. package/lib/components/Icon/streamline-icons/user-solid.icon.js.map +1 -1
  1392. package/lib/components/Icon/streamline-icons/user-star.icon.d.ts +5 -0
  1393. package/lib/components/Icon/streamline-icons/user-star.icon.d.ts.map +1 -0
  1394. package/lib/components/Icon/streamline-icons/user-star.icon.js +7 -0
  1395. package/lib/components/Icon/streamline-icons/user-star.icon.js.map +1 -0
  1396. package/lib/components/Icon/streamline-icons/user-unavailable.icon.d.ts +1 -1
  1397. package/lib/components/Icon/streamline-icons/user-unavailable.icon.d.ts.map +1 -1
  1398. package/lib/components/Icon/streamline-icons/user-unavailable.icon.js +2 -2
  1399. package/lib/components/Icon/streamline-icons/user-unavailable.icon.js.map +1 -1
  1400. package/lib/components/Icon/streamline-icons/user.icon.d.ts +1 -1
  1401. package/lib/components/Icon/streamline-icons/user.icon.d.ts.map +1 -1
  1402. package/lib/components/Icon/streamline-icons/user.icon.js +2 -2
  1403. package/lib/components/Icon/streamline-icons/user.icon.js.map +1 -1
  1404. package/lib/components/Icon/streamline-icons/variable.icon.d.ts +1 -1
  1405. package/lib/components/Icon/streamline-icons/variable.icon.d.ts.map +1 -1
  1406. package/lib/components/Icon/streamline-icons/variable.icon.js +2 -2
  1407. package/lib/components/Icon/streamline-icons/variable.icon.js.map +1 -1
  1408. package/lib/components/Icon/streamline-icons/voice.icon.d.ts +1 -1
  1409. package/lib/components/Icon/streamline-icons/voice.icon.d.ts.map +1 -1
  1410. package/lib/components/Icon/streamline-icons/voice.icon.js +2 -2
  1411. package/lib/components/Icon/streamline-icons/voice.icon.js.map +1 -1
  1412. package/lib/components/Icon/streamline-icons/wand.icon.d.ts +1 -1
  1413. package/lib/components/Icon/streamline-icons/wand.icon.d.ts.map +1 -1
  1414. package/lib/components/Icon/streamline-icons/wand.icon.js +2 -2
  1415. package/lib/components/Icon/streamline-icons/wand.icon.js.map +1 -1
  1416. package/lib/components/Icon/streamline-icons/warn-solid.icon.d.ts +5 -0
  1417. package/lib/components/Icon/streamline-icons/warn-solid.icon.d.ts.map +1 -0
  1418. package/lib/components/Icon/streamline-icons/warn-solid.icon.js +7 -0
  1419. package/lib/components/Icon/streamline-icons/warn-solid.icon.js.map +1 -0
  1420. package/lib/components/Icon/streamline-icons/warn.icon.d.ts +5 -0
  1421. package/lib/components/Icon/streamline-icons/warn.icon.d.ts.map +1 -0
  1422. package/lib/components/Icon/streamline-icons/warn.icon.js +7 -0
  1423. package/lib/components/Icon/streamline-icons/warn.icon.js.map +1 -0
  1424. package/lib/components/Icon/streamline-icons/widget.icon.d.ts +1 -1
  1425. package/lib/components/Icon/streamline-icons/widget.icon.d.ts.map +1 -1
  1426. package/lib/components/Icon/streamline-icons/widget.icon.js +3 -3
  1427. package/lib/components/Icon/streamline-icons/widget.icon.js.map +1 -1
  1428. package/lib/components/Icon/streamline-icons/wifi.icon.d.ts +5 -0
  1429. package/lib/components/Icon/streamline-icons/wifi.icon.d.ts.map +1 -0
  1430. package/lib/components/Icon/streamline-icons/wifi.icon.js +7 -0
  1431. package/lib/components/Icon/streamline-icons/wifi.icon.js.map +1 -0
  1432. package/lib/components/Icon/streamline-icons/youtube.icon.d.ts +5 -0
  1433. package/lib/components/Icon/streamline-icons/youtube.icon.d.ts.map +1 -0
  1434. package/lib/components/Icon/streamline-icons/youtube.icon.js +7 -0
  1435. package/lib/components/Icon/streamline-icons/youtube.icon.js.map +1 -0
  1436. package/lib/components/Icon/streamlineIconNames.d.ts +1 -1
  1437. package/lib/components/Icon/streamlineIconNames.d.ts.map +1 -1
  1438. package/lib/components/Icon/streamlineIconNames.js +66 -11
  1439. package/lib/components/Icon/streamlineIconNames.js.map +1 -1
  1440. package/lib/components/Lightbox/Lightbox.d.ts.map +1 -1
  1441. package/lib/components/Lightbox/Lightbox.js +12 -7
  1442. package/lib/components/Lightbox/Lightbox.js.map +1 -1
  1443. package/lib/components/Lightbox/Lightbox.styles.d.ts +1 -1
  1444. package/lib/components/Lightbox/Lightbox.styles.d.ts.map +1 -1
  1445. package/lib/components/Lightbox/Lightbox.types.d.ts +3 -3
  1446. package/lib/components/Lightbox/Lightbox.types.d.ts.map +1 -1
  1447. package/lib/components/Lightbox/Lightbox.types.js.map +1 -1
  1448. package/lib/components/Location/LocationView.d.ts +1 -1
  1449. package/lib/components/Location/LocationView.d.ts.map +1 -1
  1450. package/lib/components/Location/LocationView.js +2 -2
  1451. package/lib/components/Location/LocationView.js.map +1 -1
  1452. package/lib/components/MenuButton/MenuButton.d.ts.map +1 -1
  1453. package/lib/components/MenuButton/MenuButton.js +2 -2
  1454. package/lib/components/MenuButton/MenuButton.js.map +1 -1
  1455. package/lib/components/Progress/Progress.styles.d.ts +1 -1
  1456. package/lib/components/Progress/Progress.styles.d.ts.map +1 -1
  1457. package/lib/components/Slider/Slider.d.ts.map +1 -1
  1458. package/lib/components/Slider/Slider.js +12 -2
  1459. package/lib/components/Slider/Slider.js.map +1 -1
  1460. package/lib/components/Slider/Slider.types.d.ts +2 -0
  1461. package/lib/components/Slider/Slider.types.d.ts.map +1 -1
  1462. package/lib/components/Slider/Slider.types.js.map +1 -1
  1463. package/lib/components/SummaryList/SummaryList.d.ts +1 -0
  1464. package/lib/components/SummaryList/SummaryList.d.ts.map +1 -1
  1465. package/lib/components/SummaryList/SummaryList.js +20 -5
  1466. package/lib/components/SummaryList/SummaryList.js.map +1 -1
  1467. package/lib/hooks/useBreakpoint.d.ts.map +1 -1
  1468. package/lib/hooks/useBreakpoint.js +3 -2
  1469. package/lib/hooks/useBreakpoint.js.map +1 -1
  1470. package/lib/hooks/useI18n.d.ts +1 -0
  1471. package/lib/hooks/useI18n.d.ts.map +1 -1
  1472. package/lib/hooks/useScrollStick.js +73 -96
  1473. package/lib/hooks/useScrollStick.js.map +1 -1
  1474. package/lib/i18n/default.d.ts +1 -0
  1475. package/lib/i18n/default.d.ts.map +1 -1
  1476. package/lib/i18n/default.js +1 -0
  1477. package/lib/i18n/default.js.map +1 -1
  1478. package/lib/i18n/i18n.d.ts +1 -0
  1479. package/lib/i18n/i18n.d.ts.map +1 -1
  1480. package/lib/theme/ThemeMachine.js +4 -24
  1481. package/lib/theme/ThemeMachine.js.map +1 -1
  1482. package/lib/types/types.d.ts +2 -0
  1483. package/lib/types/types.d.ts.map +1 -1
  1484. package/lib/types/types.js.map +1 -1
  1485. package/package.json +7 -7
  1486. package/lib/components/Icon/streamline-icons/ai-assist-solid.icon.d.ts +0 -5
  1487. package/lib/components/Icon/streamline-icons/ai-assist-solid.icon.d.ts.map +0 -1
  1488. package/lib/components/Icon/streamline-icons/ai-assist-solid.icon.js +0 -7
  1489. package/lib/components/Icon/streamline-icons/ai-assist-solid.icon.js.map +0 -1
  1490. package/lib/components/Icon/streamline-icons/arrow-micro-down-solid.icon.d.ts +0 -5
  1491. package/lib/components/Icon/streamline-icons/arrow-micro-down-solid.icon.d.ts.map +0 -1
  1492. package/lib/components/Icon/streamline-icons/arrow-micro-down-solid.icon.js +0 -7
  1493. package/lib/components/Icon/streamline-icons/arrow-micro-down-solid.icon.js.map +0 -1
  1494. package/lib/components/Icon/streamline-icons/arrow-micro-left-solid.icon.d.ts +0 -5
  1495. package/lib/components/Icon/streamline-icons/arrow-micro-left-solid.icon.d.ts.map +0 -1
  1496. package/lib/components/Icon/streamline-icons/arrow-micro-left-solid.icon.js +0 -7
  1497. package/lib/components/Icon/streamline-icons/arrow-micro-left-solid.icon.js.map +0 -1
  1498. package/lib/components/Icon/streamline-icons/arrow-micro-right-solid.icon.d.ts +0 -5
  1499. package/lib/components/Icon/streamline-icons/arrow-micro-right-solid.icon.d.ts.map +0 -1
  1500. package/lib/components/Icon/streamline-icons/arrow-micro-right-solid.icon.js +0 -7
  1501. package/lib/components/Icon/streamline-icons/arrow-micro-right-solid.icon.js.map +0 -1
  1502. package/lib/components/Icon/streamline-icons/bookmarks.icon.d.ts +0 -5
  1503. package/lib/components/Icon/streamline-icons/bookmarks.icon.d.ts.map +0 -1
  1504. package/lib/components/Icon/streamline-icons/bookmarks.icon.js +0 -7
  1505. package/lib/components/Icon/streamline-icons/bookmarks.icon.js.map +0 -1
  1506. package/lib/components/Icon/streamline-icons/dataviz-table.icon.d.ts +0 -5
  1507. package/lib/components/Icon/streamline-icons/dataviz-table.icon.d.ts.map +0 -1
  1508. package/lib/components/Icon/streamline-icons/dataviz-table.icon.js +0 -7
  1509. package/lib/components/Icon/streamline-icons/dataviz-table.icon.js.map +0 -1
  1510. package/lib/components/Icon/streamline-icons/doctor-female.svg.icon.d.ts +0 -5
  1511. package/lib/components/Icon/streamline-icons/doctor-female.svg.icon.d.ts.map +0 -1
  1512. package/lib/components/Icon/streamline-icons/doctor-female.svg.icon.js +0 -7
  1513. package/lib/components/Icon/streamline-icons/doctor-female.svg.icon.js.map +0 -1
  1514. package/lib/components/Icon/streamline-icons/followers.icon.d.ts +0 -5
  1515. package/lib/components/Icon/streamline-icons/followers.icon.d.ts.map +0 -1
  1516. package/lib/components/Icon/streamline-icons/followers.icon.js +0 -7
  1517. package/lib/components/Icon/streamline-icons/followers.icon.js.map +0 -1
  1518. package/lib/components/Icon/streamline-icons/more-solid.icon.d.ts +0 -5
  1519. package/lib/components/Icon/streamline-icons/more-solid.icon.d.ts.map +0 -1
  1520. package/lib/components/Icon/streamline-icons/more-solid.icon.js +0 -7
  1521. package/lib/components/Icon/streamline-icons/more-solid.icon.js.map +0 -1
  1522. package/lib/components/Icon/streamline-icons/transfer-chat.icon.d.ts +0 -5
  1523. package/lib/components/Icon/streamline-icons/transfer-chat.icon.d.ts.map +0 -1
  1524. package/lib/components/Icon/streamline-icons/transfer-chat.icon.js +0 -7
  1525. package/lib/components/Icon/streamline-icons/transfer-chat.icon.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"LocationView.js","sourceRoot":"","sources":["../../../src/components/Location/LocationView.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAM,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAO,MAAM,OAAO,CAAC;AACzE,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAGnC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,cAAc,EAA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Q,EAAE,QAAQ,KACd,SAAS,GACb,EACD,MAAM,KAAK,UAAU,CAAC,IAAI,IAAI,KAAC,QAAQ,IAAC,SAAS,EAAC,OAAO,GAAG,EAC5D,MAAM,KAAK,UAAU,CAAC,KAAK,IAAI,QAAQ,IAAI,CAC1C,KAAC,MAAM,IAAC,EAAE,EAAE,mBAAmB,gBAAc,QAAQ,EAAE,OAAO,EAAC,MAAM,YAClE,QAAQ,GACF,CACV,IACkB,CACtB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC","sourcesContent":["import { FC, useContext, useRef, useState, useEffect, Ref } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport { BaseProps } from '../../types';\nimport { defaultThemeProp } from '../../theme';\nimport { hasProp } from '../../utils';\nimport Progress from '../Progress';\nimport { Status } from '../Badges';\n\nimport { LatLng } from './types';\nimport { loadMapsAPI, getCoords, toGoogleLatLng, getPlaceById, isLatLngObject } from './utils';\nimport BaseLocationProps from './Location.types';\nimport MapsContext from './MapsContext';\n\nexport const StyledLocationError = styled.div`\n position: absolute;\n top: 40%;\n left: 50%;\n transform: translate(-50%, -50%);\n`;\n\nStyledLocationError.defaultProps = defaultThemeProp;\n\nexport const StyledLocationView = styled.div<{ height?: string }>(props => {\n const { height, theme } = props;\n\n return css`\n height: ${height};\n position: relative;\n flex: auto;\n border-radius: ${theme.base['border-radius']};\n mask-image: radial-gradient(white, black);\n -webkit-mask-image: radial-gradient(white, black);\n `;\n});\n\nStyledLocationView.defaultProps = defaultThemeProp;\n\nconst StyledMap = styled.div<{\n height?: string;\n status: string;\n disabled: boolean;\n eMessage: string;\n}>(\n ({\n height,\n disabled,\n status,\n eMessage,\n theme: {\n base: { 'disabled-opacity': disabledOpacity }\n }\n }) => {\n return css`\n height: ${height};\n ${disabled &&\n css`\n opacity: ${disabledOpacity};\n `}\n ${status === 'error' &&\n eMessage &&\n css`\n opacity: ${disabledOpacity};\n `}\n `;\n }\n);\n\nStyledMap.defaultProps = defaultThemeProp;\n\nexport interface LocationViewProps extends BaseLocationProps, BaseProps {\n /**\n * Location string as either coordinates, name of a place, or 'current' for the current location.\n * @default 'current'\n */\n location?: LatLng | string | 'current';\n /**\n * Set to true to always center the map when the selected location changes. Toggling this from false to true will re-center map on the last pinned location.\n * @default false\n */\n centerMapOnChange?: boolean;\n /**\n * Height of the map container.\n * @default '25rem'\n */\n height?: string;\n /**\n * How much the map should zoom.\n * @default 13\n */\n zoomLevel?: number;\n /** Callback fired when user clicks on a location on the map. This function will be passed the coordinates of the location that was clicked. */\n onClick?: (coords: {\n latitude: number;\n longitude: number;\n name?: string;\n address?: string;\n }) => void;\n}\n\nenum LoadStatus {\n Init = 'init',\n Ready = 'ready',\n Error = 'error'\n}\n\nconst hasPlaceId = (obj: any): obj is google.maps.IconMouseEvent & { placeId: string } => {\n return typeof obj === 'object' && obj.placeId && typeof obj.placeId === 'string';\n};\n\nconst LocationView: FC<LocationViewProps> = (props: LocationViewProps) => {\n const {\n location = 'current',\n zoomLevel = 13,\n height = '25rem',\n centerMapOnChange = false,\n onClick,\n onError,\n disabled = false,\n ...restProps\n } = props;\n const { name, ...providerOpts } = useContext(MapsContext);\n const [status, setStatus] = useState<LoadStatus>(LoadStatus.Init);\n const [eMessage, setEMessage] = useState('');\n const mapElemRef = useRef<HTMLDivElement>();\n const map = useRef<google.maps.Map>();\n const marker = useRef<google.maps.Marker>();\n\n function initialize(): void {\n if (mapElemRef.current) {\n const position = toGoogleLatLng({ latitude: 0, longitude: 0 });\n map.current = new google.maps.Map(mapElemRef.current, {\n center: position,\n zoom: 2,\n draggable: !disabled\n });\n marker.current = new google.maps.Marker({\n map: map.current,\n position\n });\n marker.current?.setVisible(false);\n if (onClick)\n map.current.addListener('click', (event: unknown) => {\n if (event && hasPlaceId(event)) {\n getPlaceById(event.placeId).then(placeInfo => {\n if (hasProp(event, 'latLng') && isLatLngObject(event.latLng))\n onClick?.({\n ...placeInfo,\n latitude: event.latLng.lat(),\n longitude: event.latLng.lng()\n });\n });\n }\n });\n }\n }\n\n useEffect(() => {\n let unMounted = false;\n loadMapsAPI(name, providerOpts)\n .then(() => {\n if (!unMounted) {\n initialize();\n setStatus(LoadStatus.Ready);\n }\n })\n .catch((error: Error) => {\n setStatus(LoadStatus.Error);\n setEMessage(error.message);\n onError?.(error);\n });\n\n return () => {\n unMounted = true;\n if (map.current) google.maps.event.clearInstanceListeners(map.current);\n };\n }, []);\n\n useEffect(() => {\n getCoords(location!)\n .then(coords => {\n if (map.current) {\n map.current.setOptions({\n zoom: zoomLevel,\n draggable: !disabled\n });\n marker.current?.setPosition(toGoogleLatLng(coords));\n marker.current?.setVisible(true);\n if (centerMapOnChange) map.current.setCenter(toGoogleLatLng(coords));\n if (status !== LoadStatus.Ready) setStatus(LoadStatus.Ready);\n }\n })\n .catch((error: Error) => {\n if (status !== LoadStatus.Error) setStatus(LoadStatus.Error);\n marker.current?.setVisible(false);\n setEMessage(error.message);\n onError?.(error);\n });\n }, [location, status, zoomLevel, disabled, centerMapOnChange, onError]);\n\n return (\n <StyledLocationView height={height}>\n <StyledMap\n ref={mapElemRef as Ref<HTMLDivElement>}\n height={height}\n disabled={disabled}\n status={status}\n eMessage={eMessage}\n {...restProps}\n />\n {status === LoadStatus.Init && <Progress placement='local' />}\n {status === LoadStatus.Error && eMessage && (\n <Status as={StyledLocationError} aria-label={eMessage} variant='info'>\n {eMessage}\n </Status>\n )}\n </StyledLocationView>\n );\n};\n\nexport default LocationView;\n"]}
1
+ {"version":3,"file":"LocationView.js","sourceRoot":"","sources":["../../../src/components/Location/LocationView.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAM,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAO,MAAM,OAAO,CAAC;AACzE,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,aAA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AkB,IAAC,MAAM,EAAE,MAAM,aAChC,KAAC,SAAS,IACR,GAAG,EAAE,UAAiC,EACtC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,KACd,SAAS,GACb,EACD,MAAM,KAAK,UAAU,CAAC,IAAI,IAAI,KAAC,QAAQ,IAAC,SAAS,EAAC,OAAO,GAAG,EAC5D,MAAM,KAAK,UAAU,CAAC,KAAK,IAAI,QAAQ,IAAI,CAC1C,KAAC,mBAAmB,kBAAa,QAAQ,EAAE,OAAO,EAAC,MAAM,YACtD,QAAQ,GACW,CACvB,IACkB,CACtB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC","sourcesContent":["import { FC, useContext, useRef, useState, useEffect, Ref } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport { BaseProps } from '../../types';\nimport { defaultThemeProp } from '../../theme';\nimport { hasProp } from '../../utils';\nimport Progress from '../Progress';\nimport { Status } from '../Badges';\n\nimport { LatLng } from './types';\nimport { loadMapsAPI, getCoords, toGoogleLatLng, getPlaceById, isLatLngObject } from './utils';\nimport BaseLocationProps from './Location.types';\nimport MapsContext from './MapsContext';\n\nexport const StyledLocationError = styled(Status)`\n position: absolute;\n top: 40%;\n left: 50%;\n transform: translate(-50%, -50%);\n`;\n\nStyledLocationError.defaultProps = defaultThemeProp;\n\nexport const StyledLocationView = styled.div<{ height?: string }>(props => {\n const { height, theme } = props;\n\n return css`\n height: ${height};\n position: relative;\n flex: auto;\n border-radius: ${theme.base['border-radius']};\n mask-image: radial-gradient(white, black);\n -webkit-mask-image: radial-gradient(white, black);\n `;\n});\n\nStyledLocationView.defaultProps = defaultThemeProp;\n\nconst StyledMap = styled.div<{\n height?: string;\n status: string;\n disabled: boolean;\n eMessage: string;\n}>(\n ({\n height,\n disabled,\n status,\n eMessage,\n theme: {\n base: { 'disabled-opacity': disabledOpacity }\n }\n }) => {\n return css`\n height: ${height};\n ${disabled &&\n css`\n opacity: ${disabledOpacity};\n `}\n ${status === 'error' &&\n eMessage &&\n css`\n opacity: ${disabledOpacity};\n `}\n `;\n }\n);\n\nStyledMap.defaultProps = defaultThemeProp;\n\nexport interface LocationViewProps extends BaseLocationProps, BaseProps {\n /**\n * Location string as either coordinates, name of a place, or 'current' for the current location.\n * @default 'current'\n */\n location?: LatLng | string | 'current';\n /**\n * Set to true to always center the map when the selected location changes. Toggling this from false to true will re-center map on the last pinned location.\n * @default false\n */\n centerMapOnChange?: boolean;\n /**\n * Height of the map container.\n * @default '25rem'\n */\n height?: string;\n /**\n * How much the map should zoom.\n * @default 13\n */\n zoomLevel?: number;\n /** Callback fired when user clicks on a location on the map. This function will be passed the coordinates of the location that was clicked. */\n onClick?: (coords: {\n latitude: number;\n longitude: number;\n name?: string;\n address?: string;\n }) => void;\n}\n\nenum LoadStatus {\n Init = 'init',\n Ready = 'ready',\n Error = 'error'\n}\n\nconst hasPlaceId = (obj: any): obj is google.maps.IconMouseEvent & { placeId: string } => {\n return typeof obj === 'object' && obj.placeId && typeof obj.placeId === 'string';\n};\n\nconst LocationView: FC<LocationViewProps> = (props: LocationViewProps) => {\n const {\n location = 'current',\n zoomLevel = 13,\n height = '25rem',\n centerMapOnChange = false,\n onClick,\n onError,\n disabled = false,\n ...restProps\n } = props;\n const { name, ...providerOpts } = useContext(MapsContext);\n const [status, setStatus] = useState<LoadStatus>(LoadStatus.Init);\n const [eMessage, setEMessage] = useState('');\n const mapElemRef = useRef<HTMLDivElement>();\n const map = useRef<google.maps.Map>();\n const marker = useRef<google.maps.Marker>();\n\n function initialize(): void {\n if (mapElemRef.current) {\n const position = toGoogleLatLng({ latitude: 0, longitude: 0 });\n map.current = new google.maps.Map(mapElemRef.current, {\n center: position,\n zoom: 2,\n draggable: !disabled\n });\n marker.current = new google.maps.Marker({\n map: map.current,\n position\n });\n marker.current?.setVisible(false);\n if (onClick)\n map.current.addListener('click', (event: unknown) => {\n if (event && hasPlaceId(event)) {\n getPlaceById(event.placeId).then(placeInfo => {\n if (hasProp(event, 'latLng') && isLatLngObject(event.latLng))\n onClick?.({\n ...placeInfo,\n latitude: event.latLng.lat(),\n longitude: event.latLng.lng()\n });\n });\n }\n });\n }\n }\n\n useEffect(() => {\n let unMounted = false;\n loadMapsAPI(name, providerOpts)\n .then(() => {\n if (!unMounted) {\n initialize();\n setStatus(LoadStatus.Ready);\n }\n })\n .catch((error: Error) => {\n setStatus(LoadStatus.Error);\n setEMessage(error.message);\n onError?.(error);\n });\n\n return () => {\n unMounted = true;\n if (map.current) google.maps.event.clearInstanceListeners(map.current);\n };\n }, []);\n\n useEffect(() => {\n getCoords(location!)\n .then(coords => {\n if (map.current) {\n map.current.setOptions({\n zoom: zoomLevel,\n draggable: !disabled\n });\n marker.current?.setPosition(toGoogleLatLng(coords));\n marker.current?.setVisible(true);\n if (centerMapOnChange) map.current.setCenter(toGoogleLatLng(coords));\n if (status !== LoadStatus.Ready) setStatus(LoadStatus.Ready);\n }\n })\n .catch((error: Error) => {\n if (status !== LoadStatus.Error) setStatus(LoadStatus.Error);\n marker.current?.setVisible(false);\n setEMessage(error.message);\n onError?.(error);\n });\n }, [location, status, zoomLevel, disabled, centerMapOnChange, onError]);\n\n return (\n <StyledLocationView height={height}>\n <StyledMap\n ref={mapElemRef as Ref<HTMLDivElement>}\n height={height}\n disabled={disabled}\n status={status}\n eMessage={eMessage}\n {...restProps}\n />\n {status === LoadStatus.Init && <Progress placement='local' />}\n {status === LoadStatus.Error && eMessage && (\n <StyledLocationError aria-label={eMessage} variant='info'>\n {eMessage}\n </StyledLocationError>\n )}\n </StyledLocationView>\n );\n};\n\nexport default LocationView;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"MenuButton.d.ts","sourceRoot":"","sources":["../../../src/components/MenuButton/MenuButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,iBAAiB,EACjB,iBAAiB,EAKjB,oBAAoB,EACrB,MAAM,OAAO,CAAC;AAGf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aultProps = defaultThemeProp;
30
- const StyledMenuButtonChildren = styled.div(({ theme }) => {
30
+ const StyledMenuButtonChildren = styled.span(({ theme }) => {
31
31
  return css `
32
32
  max-width: 100%;
33
33
 
@@ -47,7 +47,7 @@ const StyledMenuButtonPopover = styled(Popover) `
47
47
  `;
48
48
  const MenuButton = forwardRef(function MenuButton(props, ref) {
49
49
  const uid = useUID();
50
- const { testId, id = uid, text, menu, popover, onClick, onKeyDown, icon, count, iconOnly = false, ...restProps } = props;
50
+ const { testId, id = uid, text, menu, popover, onClick, icon, count, iconOnly = false, ...restProps } = props;
51
51
  const testIds = useTestIds(testId, getMenuButtonTestIds);
52
52
  const [isOpen, setIsOpen] = useState(false);
53
53
  const buttonRef = useConsolidatedRef(ref);
@@ -1 +1 @@
1
- {"version":3,"file":"MenuButton.js","sourceRoot":"","sources":["../../../src/components/MenuButton/MenuButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,UAAU,EACV,QAAQ,EAMR,WAAW,EAEZ,MAAM,OAAO,CAAC;AACf,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EACL,kBAAkB,EAClB,MAAM,EACN,cAAc,EACd,YAAY,EACZ,UAAU,EACV,SAAS,EACV,MAAM,aAAa,CAAC;AACrB,OAAO,MAAM,EAAE,EAAe,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9D,OAAO,OAAO,EAAE,EAAgB,aAAa,EAAE,MAAM,YAAY,CAAC;AAClE,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B,OAAO,IAAI,EAAE,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACzD,OAAO,KAAK,kBAAkB,MAAM,qCAAqC,CAAC;AAC1E,OAAO,IAAI,EAAE,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,IAAI,MAAM,SAAS,CAAC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,CAAC,OAAO,IAAI,SAAS,GAC9C,CACH,GACuB,IACzB,CACJ,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,WAAW,CAAC,UAAU,EAAE,oBAAoB,CAAC,CAAC","sourcesContent":["import {\n forwardRef,\n useState,\n FunctionComponent,\n MouseEventHandler,\n MouseEvent,\n UIEvent,\n PropsWithoutRef,\n useCallback,\n KeyboardEventHandler\n} from 'react';\nimport styled, { css } from 'styled-components';\n\nimport type { BaseProps, ForwardProps, NoChildrenProp, OmitStrict, TestIdProp } from '../../types';\nimport { defaultThemeProp } from '../../theme';\nimport {\n useConsolidatedRef,\n useUID,\n useFocusWithin,\n useDirection,\n useTestIds,\n useEscape\n} from '../../hooks';\nimport Button, { ButtonProps, StyledButton } from '../Button';\nimport Popover, { PopoverProps, StyledPopover } from '../Popover';\nimport Menu from '../Menu';\nimport { AcceptedMouseEventElement } from '../Menu/Menu.types';\nimport Icon, { registerIcon, StyledIcon } from '../Icon';\nimport * as arrowMicroDownIcon from '../Icon/icons/arrow-micro-down.icon';\nimport Text, { StyledText } from '../Text';\nimport Flex from '../Flex';\nimport { Count } from '../Badges';\nimport type { MenuProps } from '../Menu/Menu.types';\nimport type { CountProps } from '../Badges/Count';\nimport { withTestIds } from '../../utils';\n\nimport { getMenuButtonTestIds } from './MenuButton.test-ids';\n\nregisterIcon(arrowMicroDownIcon);\n\nexport interface MenuButtonProps extends BaseProps, NoChildrenProp, TestIdProp {\n /** The text for the MenuButton also used to set the aria-label. */\n text: string;\n /**\n * Determines the Button variant for the MenuButton.\n * @default 'secondary'\n */\n variant?: ButtonProps['variant'];\n /** The name of the icon for the MenuButton. */\n icon?: string;\n /** Only display the icon. The text prop will be forwarded to a tooltip. */\n iconOnly?: ButtonProps['icon'];\n /** The total count representing the list data which was selected. */\n count?: CountProps['children'];\n /** The click handler for the MenuButton. */\n onClick?: MouseEventHandler;\n /** Menu related props. */\n menu?: MenuProps;\n /** Popover related props. */\n popover?: OmitStrict<PopoverProps, 'show' | 'target' | 'children'>;\n /** DOM id for the button element. */\n id?: string;\n /** Ref for the button element. */\n ref?: ButtonProps['ref'];\n /** The keydown handler for the MenuButton. */\n onKeyDown?: KeyboardEventHandler;\n}\n\nconst StyledMenuButton = styled.button(\n ({\n theme: {\n base: { spacing }\n }\n }) => {\n return css`\n gap: ${spacing};\n flex-shrink: 0;\n white-space: nowrap;\n max-width: 100%;\n\n & + ${StyledPopover} + ${StyledButton} {\n margin-inline-start: ${spacing};\n }\n `;\n }\n);\n\nStyledMenuButton.defaultProps = defaultThemeProp;\n\nconst StyledMenuButtonChildren = styled.div(({ theme }) => {\n return css`\n max-width: 100%;\n\n ${StyledText} {\n text-overflow: ellipsis;\n overflow: hidden;\n }\n\n ${StyledIcon}:last-child:not(:first-child) {\n /* Offsets the flex gap to make the down arrow appear to trail the text. */\n margin-inline-start: -${theme.base.spacing};\n }\n `;\n});\n\nconst StyledMenuButtonPopover = styled(Popover)`\n min-width: 20ch;\n`;\n\nconst MenuButton: FunctionComponent<ForwardProps & MenuButtonProps> = forwardRef(\n function MenuButton(props: PropsWithoutRef<MenuButtonProps>, ref: MenuButtonProps['ref']) {\n const uid = useUID();\n const {\n testId,\n id = uid,\n text,\n menu,\n popover,\n onClick,\n onKeyDown,\n icon,\n count,\n iconOnly = false,\n ...restProps\n } = props;\n const testIds = useTestIds(testId, getMenuButtonTestIds);\n const [isOpen, setIsOpen] = useState(false);\n\n const buttonRef = useConsolidatedRef(ref);\n const popoverRef = useConsolidatedRef<HTMLDivElement>(popover?.ref);\n const menuRef = useConsolidatedRef<HTMLDivElement>(menu?.ref);\n\n // FIXME: Type assertion required for issue in useFocusWithin generic\n useFocusWithin<HTMLElement>(\n [popoverRef, buttonRef],\n useCallback(isFocused => {\n if (!isFocused) setIsOpen(false);\n }, [])\n );\n\n useEscape(e => {\n if (isOpen) {\n setIsOpen(false);\n e.stopPropagation();\n }\n }, buttonRef);\n\n const { rtl } = useDirection();\n\n return (\n <>\n <Button\n data-testid={testIds.root}\n as={StyledMenuButton}\n aria-label={text}\n {...restProps}\n id={id}\n ref={buttonRef}\n aria-expanded={isOpen}\n aria-haspopup='menu'\n aria-controls={`${id}-popover`}\n label={iconOnly && !isOpen ? text : undefined}\n onClick={(e: MouseEvent<HTMLButtonElement> & UIEvent<HTMLButtonElement>) => {\n // clickCount is 0 when triggered by keyboard.\n const clickCount = e.detail;\n\n // Close the menu if it is open and either:\n // It is a *mouse* click on the button.\n // Or, the menu mode is not multiselect.\n if (isOpen && (clickCount > 0 || menu?.mode !== 'multi-select')) {\n setIsOpen(false);\n } else {\n setIsOpen(true);\n }\n\n onClick?.(e);\n }}\n icon={iconOnly}\n >\n <Flex as={StyledMenuButtonChildren} container={{ alignItems: 'center', gap: 1 }}>\n {icon && <Icon name={icon} />}\n {!iconOnly && (\n <>\n {text && <Text>{text}</Text>}\n {typeof count === 'number' && <Count>{count}</Count>}\n {text && <Icon name='arrow-micro-down' />}\n </>\n )}\n </Flex>\n </Button>\n <StyledMenuButtonPopover\n placement={rtl ? 'bottom-end' : 'bottom-start'}\n hideOnTargetHidden\n {...popover}\n id={`${id}-popover`}\n show={!!menu && isOpen}\n target={buttonRef.current}\n ref={popoverRef}\n >\n {menu && (\n <Menu\n testId={testIds.root}\n {...menu}\n ref={menuRef}\n items={menu.items}\n onItemClick={(itemId, e) => {\n if (\n menu.mode !== 'multi-select' &&\n (e as MouseEvent<AcceptedMouseEventElement> & UIEvent<AcceptedMouseEventElement>)\n .detail > 0\n ) {\n setIsOpen(false);\n }\n menu.onItemClick?.(itemId, e);\n }}\n focusControlEl={buttonRef.current || undefined}\n />\n )}\n </StyledMenuButtonPopover>\n </>\n );\n }\n);\n\nexport default withTestIds(MenuButton, getMenuButtonTestIds);\n"]}
1
+ {"version":3,"file":"MenuButton.js","sourceRoot":"","sources":["../../../src/components/MenuButton/MenuButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,UAAU,EACV,QAAQ,EAMR,WAAW,EAEZ,MAAM,O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C9C,kBAAkB,WACd,OAAO,EACX,EAAE,EAAE,GAAG,EAAE,UAAU,EACnB,IAAI,EAAE,CAAC,CAAC,IAAI,IAAI,MAAM,EACtB,MAAM,EAAE,SAAS,CAAC,OAAO,EACzB,GAAG,EAAE,UAAU,YAEd,IAAI,IAAI,CACP,KAAC,IAAI,IACH,MAAM,EAAE,OAAO,CAAC,IAAI,KAChB,IAAI,EACR,GAAG,EAAE,OAAO,EACZ,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,WAAW,EAAE,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;wBACzB,IACE,IAAI,CAAC,IAAI,KAAK,cAAc;4BAC3B,CAAgF;iCAC9E,MAAM,GAAG,CAAC,EACb;4BACA,SAAS,CAAC,KAAK,CAAC,CAAC;yBAClB;wBACD,IAAI,CAAC,WAAW,EAAE,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;oBAChC,CAAC,EACD,cAAc,EAAE,SAAS,CAAC,OAAO,IAAI,SAAS,GAC9C,CACH,GACuB,IACzB,CACJ,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,WAAW,CAAC,UAAU,EAAE,oBAAoB,CAAC,CAAC","sourcesContent":["import {\n forwardRef,\n useState,\n FunctionComponent,\n MouseEventHandler,\n MouseEvent,\n UIEvent,\n PropsWithoutRef,\n useCallback,\n KeyboardEventHandler\n} from 'react';\nimport styled, { css } from 'styled-components';\n\nimport type { BaseProps, ForwardProps, NoChildrenProp, OmitStrict, TestIdProp } from '../../types';\nimport { defaultThemeProp } from '../../theme';\nimport {\n useConsolidatedRef,\n useUID,\n useFocusWithin,\n useDirection,\n useTestIds,\n useEscape\n} from '../../hooks';\nimport Button, { ButtonProps, StyledButton } from '../Button';\nimport Popover, { PopoverProps, StyledPopover } from '../Popover';\nimport Menu from '../Menu';\nimport { AcceptedMouseEventElement } from '../Menu/Menu.types';\nimport Icon, { registerIcon, StyledIcon } from '../Icon';\nimport * as arrowMicroDownIcon from '../Icon/icons/arrow-micro-down.icon';\nimport Text, { StyledText } from '../Text';\nimport Flex from '../Flex';\nimport { Count } from '../Badges';\nimport type { MenuProps } from '../Menu/Menu.types';\nimport type { CountProps } from '../Badges/Count';\nimport { withTestIds } from '../../utils';\n\nimport { getMenuButtonTestIds } from './MenuButton.test-ids';\n\nregisterIcon(arrowMicroDownIcon);\n\nexport interface MenuButtonProps extends BaseProps, NoChildrenProp, TestIdProp {\n /** The text for the MenuButton also used to set the aria-label. */\n text: string;\n /**\n * Determines the Button variant for the MenuButton.\n * @default 'secondary'\n */\n variant?: ButtonProps['variant'];\n /** The name of the icon for the MenuButton. */\n icon?: string;\n /** Only display the icon. The text prop will be forwarded to a tooltip. */\n iconOnly?: ButtonProps['icon'];\n /** The total count representing the list data which was selected. */\n count?: CountProps['children'];\n /** The click handler for the MenuButton. */\n onClick?: MouseEventHandler;\n /** Menu related props. */\n menu?: MenuProps;\n /** Popover related props. */\n popover?: OmitStrict<PopoverProps, 'show' | 'target' | 'children'>;\n /** DOM id for the button element. */\n id?: string;\n /** Ref for the button element. */\n ref?: ButtonProps['ref'];\n /** The keydown handler for the MenuButton. */\n onKeyDown?: KeyboardEventHandler;\n}\n\nconst StyledMenuButton = styled.button(\n ({\n theme: {\n base: { spacing }\n }\n }) => {\n return css`\n gap: ${spacing};\n flex-shrink: 0;\n white-space: nowrap;\n max-width: 100%;\n\n & + ${StyledPopover} + ${StyledButton} {\n margin-inline-start: ${spacing};\n }\n `;\n }\n);\n\nStyledMenuButton.defaultProps = defaultThemeProp;\n\nconst StyledMenuButtonChildren = styled.span(({ theme }) => {\n return css`\n max-width: 100%;\n\n ${StyledText} {\n text-overflow: ellipsis;\n overflow: hidden;\n }\n\n ${StyledIcon}:last-child:not(:first-child) {\n /* Offsets the flex gap to make the down arrow appear to trail the text. */\n margin-inline-start: -${theme.base.spacing};\n }\n `;\n});\n\nconst StyledMenuButtonPopover = styled(Popover)`\n min-width: 20ch;\n`;\n\nconst MenuButton: FunctionComponent<ForwardProps & MenuButtonProps> = forwardRef(\n function MenuButton(props: PropsWithoutRef<MenuButtonProps>, ref: MenuButtonProps['ref']) {\n const uid = useUID();\n const {\n testId,\n id = uid,\n text,\n menu,\n popover,\n onClick,\n icon,\n count,\n iconOnly = false,\n ...restProps\n } = props;\n const testIds = useTestIds(testId, getMenuButtonTestIds);\n const [isOpen, setIsOpen] = useState(false);\n\n const buttonRef = useConsolidatedRef(ref);\n const popoverRef = useConsolidatedRef<HTMLDivElement>(popover?.ref);\n const menuRef = useConsolidatedRef<HTMLDivElement>(menu?.ref);\n\n // FIXME: Type assertion required for issue in useFocusWithin generic\n useFocusWithin<HTMLElement>(\n [popoverRef, buttonRef],\n useCallback(isFocused => {\n if (!isFocused) setIsOpen(false);\n }, [])\n );\n\n useEscape(e => {\n if (isOpen) {\n setIsOpen(false);\n e.stopPropagation();\n }\n }, buttonRef);\n\n const { rtl } = useDirection();\n\n return (\n <>\n <Button\n data-testid={testIds.root}\n as={StyledMenuButton}\n aria-label={text}\n {...restProps}\n id={id}\n ref={buttonRef}\n aria-expanded={isOpen}\n aria-haspopup='menu'\n aria-controls={`${id}-popover`}\n label={iconOnly && !isOpen ? text : undefined}\n onClick={(e: MouseEvent<HTMLButtonElement> & UIEvent<HTMLButtonElement>) => {\n // clickCount is 0 when triggered by keyboard.\n const clickCount = e.detail;\n\n // Close the menu if it is open and either:\n // It is a *mouse* click on the button.\n // Or, the menu mode is not multiselect.\n if (isOpen && (clickCount > 0 || menu?.mode !== 'multi-select')) {\n setIsOpen(false);\n } else {\n setIsOpen(true);\n }\n\n onClick?.(e);\n }}\n icon={iconOnly}\n >\n <Flex as={StyledMenuButtonChildren} container={{ alignItems: 'center', gap: 1 }}>\n {icon && <Icon name={icon} />}\n {!iconOnly && (\n <>\n {text && <Text>{text}</Text>}\n {typeof count === 'number' && <Count>{count}</Count>}\n {text && <Icon name='arrow-micro-down' />}\n </>\n )}\n </Flex>\n </Button>\n <StyledMenuButtonPopover\n placement={rtl ? 'bottom-end' : 'bottom-start'}\n hideOnTargetHidden\n {...popover}\n id={`${id}-popover`}\n show={!!menu && isOpen}\n target={buttonRef.current}\n ref={popoverRef}\n >\n {menu && (\n <Menu\n testId={testIds.root}\n {...menu}\n ref={menuRef}\n items={menu.items}\n onItemClick={(itemId, e) => {\n if (\n menu.mode !== 'multi-select' &&\n (e as MouseEvent<AcceptedMouseEventElement> & UIEvent<AcceptedMouseEventElement>)\n .detail > 0\n ) {\n setIsOpen(false);\n }\n menu.onItemClick?.(itemId, e);\n }}\n focusControlEl={buttonRef.current || undefined}\n />\n )}\n </StyledMenuButtonPopover>\n </>\n );\n }\n);\n\nexport default withTestIds(MenuButton, getMenuButtonTestIds);\n"]}
@@ -1,5 +1,5 @@
1
1
  import { ProgressProps } from './Progress.types';
2
- export declare const StyledProgressBackdrop: import("styled-components").StyledComponent<import("react").FunctionComponent<import("../Backdrop").BackdropProps & import("../..").ForwardProps>, import("styled-components").DefaultTheme, {}, never>;
2
+ export declare const StyledProgressBackdrop: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Pick<import("../Backdrop").BackdropProps, "hidden" | "color" | "style" | "alpha" | "open" | "position" | "translate" | "prefix" | "slot" | "title" | "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "variant" | "container" | "transitionSpeed" | "onBeforeTransitionIn" | "onAfterTransitionIn" | "onBeforeTransitionOut" | "onAfterTransitionOut"> & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
3
3
  export declare const StyledProgressRing: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, Pick<ProgressProps, "placement"> & {
4
4
  determinate: boolean;
5
5
  }, never>;
@@ -1 +1 @@
1
- {"version":3,"file":"Progress.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Progress/Progress.styles.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,eAAO,MAAM,sBAAsB,yMAAqB,CAAC;AAczD,eAAO,MAAM,kBAAkB;iBACqB,OAAO;SAkDzD,CAAC;AAIH,eAAO,MAAM,iBAAiB;iBACG,OAAO;SAwDtC,CAAC;AAIH,eAAO,MAAM,sBAAsB,uIAsEjC,CAAC;AAIH,eAAO,MAAM,aAAa,0GAexB,CAAC;AAIH,eAAO,MAAM,cAAc,+NAc1B,CAAC"}
1
+ {"version":3,"file":"Progress.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Progress/Progress.styles.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,eAAO,MAAM,sBAAsB,o3JAAqB,CAAC;AAczD,eAAO,MAAM,kBAAkB;iBACqB,OAAO;SAkDzD,CAAC;AAIH,eAAO,MAAM,iBAAiB;iBACG,OAAO;SAwDtC,CAAC;AAIH,eAAO,MAAM,sBAAsB,uIAsEjC,CAAC;AAIH,eAAO,MAAM,aAAa,0GAexB,CAAC;AAIH,eAAO,MAAM,cAAc,+NAc1B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/Slider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,EAUlB,MAAM,OAAO,CAAC;AAOf,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG3C,OAAO,WAAW,MAAM,gBAAgB,CAAC;;;;AA0PzC,wBAAqD"}
1
+ {"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/Slider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,EAUlB,MAAM,OAAO,CAAC;AAOf,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG3C,OAAO,WAAW,MAAM,gBAAgB,CAAC;;;;AAuQzC,wBAAqD"}
@@ -12,7 +12,7 @@ import SliderTicks from './SliderTicks';
12
12
  import { getSliderTestIds } from './Slider.test-ids';
13
13
  const Slider = forwardRef(function Slider(props, ref) {
14
14
  const uid = useUID();
15
- const { testId, id = uid, required, status, info, label, labelHidden, min = 0, max = 100, step = 1, value = min, orientation = 'horizontal', preview, disabled = false, readOnly = false, showInput = true, showProgress, ticks = {}, onChange, autoFocus, onDragStart, onDragEnd: onDragEndProp, ...restProps } = props;
15
+ const { testId, id = uid, required, status, info, label, labelHidden, min = 0, max = 100, step = 1, value = min, orientation = 'horizontal', preview, disabled = false, readOnly = false, showInput = true, showProgress, ticks = {}, additionalInfo, onChange, autoFocus, onDragStart, onDragEnd: onDragEndProp, ...restProps } = props;
16
16
  const testIds = useTestIds(testId, getSliderTestIds);
17
17
  const thumbRef = useConsolidatedRef(ref);
18
18
  const trackRef = useRef(null);
@@ -117,7 +117,17 @@ const Slider = forwardRef(function Slider(props, ref) {
117
117
  e.preventDefault(); // Prevent dispatching mouse events as some browser may do that
118
118
  onDragStart?.();
119
119
  }, "aria-valuemin": min, "aria-valuemax": max, "aria-valuenow": value, "aria-orientation": orientation, "aria-readonly": readOnly || undefined, "aria-disabled": disabled || undefined, id: id, "aria-label": label?.toString(), "aria-describedby": `${id}-info`, "aria-controls": `${id}-value` })] }), Object.keys(ticks).length > 0 && (_jsx(SliderTicks, { ticks: ticks, min: min, max: max, step: step, orientation: orientation, onClick: setValue }))] }), showInput && !preview && (_jsx(NumberInput, { "data-testid": testIds.control, id: `${id}-value`, status: status, min: min, max: max, step: step, value: inputValue, showGroupSeparators: false, onChange: setInputValue, onBlur: v => setValue(getNearestValue(Number(v), min, max, step)), size: size, readOnly: readOnly, disabled: disabled, "aria-label": label?.toString() })), preview && _jsx(StyledPreview, { id: `${id}-value`, value: value.toString(), size: size })] }));
120
- return label ? (_jsx(FormField, { ...{ testId: testIds, label, labelHidden, id, info, status, required, disabled }, children: Comp })) : (Comp);
120
+ return label ? (_jsx(FormField, { ...{
121
+ testId: testIds,
122
+ label,
123
+ labelHidden,
124
+ id,
125
+ info,
126
+ status,
127
+ required,
128
+ disabled,
129
+ additionalInfo
130
+ }, children: Comp })) : (Comp);
121
131
  });
122
132
  export default withTestIds(Slider, getSliderTestIds);
123
133
  //# sourceMappingURL=Slider.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Slider.js","sourceRoot":"","sources":["../../../src/components/Slider/Slider.tsx"],"names":[],"mappings":";AAAA,OAAO,EAIL,WAAW,EACX,SAAS,EACT,MAAM,EACN,QAAQ,EAER,UAAU,EAGX,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACnF,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B,OAAO,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG/C,OAAO,EACL,YAAY,EACZ,WAAW,EACX,WAAW,EACX,wBAAwB,EACxB,SAAS,EACT,aAAa,EACd,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAChE,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAErD,MAAM,MAAM,GAAkD,UAAU,CAAC,SAAS,MAAM,CACtF,KAAmC,EACnC,GAAwB;IAExB,MAAM,GAAG,GAAG,MAA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Ref,\n useState,\n CSSProperties,\n forwardRef,\n Ref,\n TouchEvent as ReactTouchEvent\n} from 'react';\n\nimport { NumberInput } from '../Number';\nimport { useConsolidatedRef, useDirection, useTestIds, useUID } from '../../hooks';\nimport FormField from '../FormField';\nimport Flex from '../Flex';\nimport Grid from '../Grid';\nimport { ForwardProps } from '../../types';\nimport { cap, withTestIds } from '../../utils';\n\nimport SliderProps from './Slider.types';\nimport {\n StyledSlider,\n StyledTrack,\n StyledThumb,\n StyledSliderTrackWrapper,\n StyledBar,\n StyledPreview\n} from './Slider.styles';\nimport { calculateValueLength, getNearestValue } from './utils';\nimport SliderTicks from './SliderTicks';\nimport { getSliderTestIds } from './Slider.test-ids';\n\nconst Slider: FunctionComponent<SliderProps & ForwardProps> = forwardRef(function Slider(\n props: PropsWithoutRef<SliderProps>,\n ref: Ref<HTMLDivElement>\n) {\n const uid = useUID();\n const {\n testId,\n id = uid,\n required,\n status,\n info,\n label,\n labelHidden,\n min = 0,\n max = 100,\n step = 1,\n value = min,\n orientation = 'horizontal',\n preview,\n disabled = false,\n readOnly = false,\n showInput = true,\n showProgress,\n ticks = {},\n onChange,\n autoFocus,\n onDragStart,\n onDragEnd: onDragEndProp,\n ...restProps\n } = props;\n\n const testIds = useTestIds(testId, getSliderTestIds);\n\n const thumbRef = useConsolidatedRef<HTMLDivElement>(ref);\n const trackRef = useRef<HTMLDivElement>(null);\n const [inDrag, setInDrag] = useState(false);\n const [inputValue, setInputValue] = useState(value.toString());\n\n const setValue = useCallback(\n (newValue: number) => {\n if (disabled || readOnly) return;\n const normalizedValue = Math.min(Math.max(newValue, min), max);\n\n setInputValue(normalizedValue.toString());\n onChange(normalizedValue);\n },\n [disabled, readOnly, onChange]\n );\n\n const { start, end } = useDirection();\n\n const moveThumb = useCallback(\n (e: MouseEvent | TouchEvent) => {\n if (disabled || readOnly) return;\n if (trackRef.current) {\n const track = trackRef.current.getBoundingClientRect();\n const { clientX, clientY } = 'touches' in e ? e.touches[0] : e;\n const newPosition =\n orientation === 'horizontal'\n ? (clientX - track[start]) / (track[end] - track[start])\n : (clientY - track.bottom) / (track.top - track.bottom);\n\n const normalizedValue = Math.min(Math.max(min + (max - min) * newPosition, min), max);\n setValue(getNearestValue(normalizedValue, min, max, step));\n }\n thumbRef.current?.focus();\n },\n [disabled, readOnly, step, min, max, setValue, start, end]\n );\n\n const onThumbKeyDown = useCallback(\n (e: KeyboardEvent<HTMLDivElement>) => {\n if (\n [\n 'ArrowDown',\n 'ArrowUp',\n 'ArrowLeft',\n 'ArrowRight',\n 'PageUp',\n 'PageDown',\n 'Home',\n 'End'\n ].includes(e.key)\n )\n e.preventDefault();\n\n switch (e.key) {\n case 'ArrowDown':\n case `Arrow${cap(start)}`:\n setValue(value - step);\n break;\n case 'ArrowUp':\n case `Arrow${cap(end)}`:\n setValue(value + step);\n break;\n case 'PageUp':\n setValue(value + 10 * step);\n break;\n case 'PageDown':\n setValue(value - 10 * step);\n break;\n case 'Home':\n setValue(min);\n break;\n case 'End':\n setValue(max);\n break;\n default:\n }\n },\n [setValue, value, step, start, end]\n );\n\n useEffect(() => {\n const onDragEnd = () => {\n setInDrag(false);\n if (inDrag) onDragEndProp?.();\n };\n\n document.addEventListener('mouseup', onDragEnd);\n document.addEventListener('touchend', onDragEnd);\n document.addEventListener('touchcancel', onDragEnd);\n if (inDrag) {\n document.addEventListener('mousemove', moveThumb);\n document.addEventListener('touchmove', moveThumb);\n }\n\n return () => {\n document.removeEventListener('mouseup', onDragEnd);\n document.removeEventListener('touchend', onDragEnd);\n document.removeEventListener('touchcancel', onDragEnd);\n document.removeEventListener('mousemove', moveThumb);\n document.removeEventListener('touchmove', moveThumb);\n };\n }, [inDrag, moveThumb, onDragEndProp]);\n\n useEffect(() => {\n if (autoFocus) thumbRef.current?.focus();\n }, [autoFocus]);\n\n const percentage = ((Number(value) - min) / (max - min)) * 100;\n const size = calculateValueLength(min, max, step);\n\n const Comp = (\n <Flex\n data-testid={testIds.root}\n {...restProps}\n as={StyledSlider}\n container={{\n alignItems: 'start',\n direction: orientation === 'horizontal' ? 'row' : 'column'\n }}\n orientation={orientation}\n {...{ status, disabled, readOnly, size }}\n style={\n {\n '--slider-value': `${percentage}%`,\n userSelect: inDrag ? 'none' : 'auto'\n } as CSSProperties\n }\n >\n <Grid as={StyledSliderTrackWrapper} container>\n <Flex\n as={StyledTrack}\n ref={trackRef}\n onMouseDown={moveThumb}\n container={{ alignItems: 'center', justify: 'center' }}\n >\n <StyledBar showProgress={showProgress} />\n <StyledThumb\n ref={thumbRef}\n role='slider'\n tabIndex={0}\n onKeyDown={onThumbKeyDown}\n onMouseDown={() => {\n setInDrag(true);\n onDragStart?.();\n }}\n onTouchStart={(e: ReactTouchEvent<HTMLDivElement>) => {\n setInDrag(true);\n e.preventDefault(); // Prevent dispatching mouse events as some browser may do that\n onDragStart?.();\n }}\n aria-valuemin={min}\n aria-valuemax={max}\n aria-valuenow={value}\n aria-orientation={orientation}\n aria-readonly={readOnly || undefined}\n aria-disabled={disabled || undefined}\n id={id}\n aria-label={label?.toString()}\n aria-describedby={`${id}-info`}\n aria-controls={`${id}-value`}\n />\n </Flex>\n {Object.keys(ticks).length > 0 && (\n <SliderTicks\n ticks={ticks}\n min={min}\n max={max}\n step={step}\n orientation={orientation}\n onClick={setValue}\n />\n )}\n </Grid>\n {showInput && !preview && (\n <NumberInput\n data-testid={testIds.control}\n id={`${id}-value`}\n status={status}\n min={min}\n max={max}\n step={step}\n value={inputValue}\n showGroupSeparators={false}\n onChange={setInputValue}\n onBlur={v => setValue(getNearestValue(Number(v), min, max, step))}\n size={size}\n readOnly={readOnly}\n disabled={disabled}\n aria-label={label?.toString()}\n />\n )}\n {preview && <StyledPreview id={`${id}-value`} value={value.toString()} size={size} />}\n </Flex>\n );\n\n return label ? (\n <FormField {...{ testId: testIds, label, labelHidden, id, info, status, required, disabled }}>\n {Comp}\n </FormField>\n ) : (\n Comp\n );\n});\n\nexport default withTestIds(Slider, getSliderTestIds);\n"]}
1
+ {"version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AE,KAAK,EAC1B,QAAQ,EAAE,aAAa,EACvB,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,QAAQ,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC,EACjE,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,gBACN,KAAK,EAAE,QAAQ,EAAE,GAC7B,CACH,EACA,OAAO,IAAI,KAAC,aAAa,IAAC,EAAE,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,IAAI,GAAI,IAChF,CACR,CAAC;IAEF,OAAO,KAAK,CAAC,CAAC,CAAC,CACb,KAAC,SAAS,OACJ;YACF,MAAM,EAAE,OAAO;YACf,KAAK;YACL,WAAW;YACX,EAAE;YACF,IAAI;YACJ,MAAM;YACN,QAAQ;YACR,QAAQ;YACR,cAAc;SACf,YAEA,IAAI,GACK,CACb,CAAC,CAAC,CAAC,CACF,IAAI,CACL,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,WAAW,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC","sourcesContent":["import {\n KeyboardEvent,\n FunctionComponent,\n PropsWithoutRef,\n useCallback,\n useEffect,\n useRef,\n useState,\n CSSProperties,\n forwardRef,\n Ref,\n TouchEvent as ReactTouchEvent\n} from 'react';\n\nimport { NumberInput } from '../Number';\nimport { useConsolidatedRef, useDirection, useTestIds, useUID } from '../../hooks';\nimport FormField from '../FormField';\nimport Flex from '../Flex';\nimport Grid from '../Grid';\nimport { ForwardProps } from '../../types';\nimport { cap, withTestIds } from '../../utils';\n\nimport SliderProps from './Slider.types';\nimport {\n StyledSlider,\n StyledTrack,\n StyledThumb,\n StyledSliderTrackWrapper,\n StyledBar,\n StyledPreview\n} from './Slider.styles';\nimport { calculateValueLength, getNearestValue } from './utils';\nimport SliderTicks from './SliderTicks';\nimport { getSliderTestIds } from './Slider.test-ids';\n\nconst Slider: FunctionComponent<SliderProps & ForwardProps> = forwardRef(function Slider(\n props: PropsWithoutRef<SliderProps>,\n ref: Ref<HTMLDivElement>\n) {\n const uid = useUID();\n const {\n testId,\n id = uid,\n required,\n status,\n info,\n label,\n labelHidden,\n min = 0,\n max = 100,\n step = 1,\n value = min,\n orientation = 'horizontal',\n preview,\n disabled = false,\n readOnly = false,\n showInput = true,\n showProgress,\n ticks = {},\n additionalInfo,\n onChange,\n autoFocus,\n onDragStart,\n onDragEnd: onDragEndProp,\n ...restProps\n } = props;\n\n const testIds = useTestIds(testId, getSliderTestIds);\n\n const thumbRef = useConsolidatedRef<HTMLDivElement>(ref);\n const trackRef = useRef<HTMLDivElement>(null);\n const [inDrag, setInDrag] = useState(false);\n const [inputValue, setInputValue] = useState(value.toString());\n\n const setValue = useCallback(\n (newValue: number) => {\n if (disabled || readOnly) return;\n const normalizedValue = Math.min(Math.max(newValue, min), max);\n\n setInputValue(normalizedValue.toString());\n onChange(normalizedValue);\n },\n [disabled, readOnly, onChange]\n );\n\n const { start, end } = useDirection();\n\n const moveThumb = useCallback(\n (e: MouseEvent | TouchEvent) => {\n if (disabled || readOnly) return;\n if (trackRef.current) {\n const track = trackRef.current.getBoundingClientRect();\n const { clientX, clientY } = 'touches' in e ? e.touches[0] : e;\n const newPosition =\n orientation === 'horizontal'\n ? (clientX - track[start]) / (track[end] - track[start])\n : (clientY - track.bottom) / (track.top - track.bottom);\n\n const normalizedValue = Math.min(Math.max(min + (max - min) * newPosition, min), max);\n setValue(getNearestValue(normalizedValue, min, max, step));\n }\n thumbRef.current?.focus();\n },\n [disabled, readOnly, step, min, max, setValue, start, end]\n );\n\n const onThumbKeyDown = useCallback(\n (e: KeyboardEvent<HTMLDivElement>) => {\n if (\n [\n 'ArrowDown',\n 'ArrowUp',\n 'ArrowLeft',\n 'ArrowRight',\n 'PageUp',\n 'PageDown',\n 'Home',\n 'End'\n ].includes(e.key)\n )\n e.preventDefault();\n\n switch (e.key) {\n case 'ArrowDown':\n case `Arrow${cap(start)}`:\n setValue(value - step);\n break;\n case 'ArrowUp':\n case `Arrow${cap(end)}`:\n setValue(value + step);\n break;\n case 'PageUp':\n setValue(value + 10 * step);\n break;\n case 'PageDown':\n setValue(value - 10 * step);\n break;\n case 'Home':\n setValue(min);\n break;\n case 'End':\n setValue(max);\n break;\n default:\n }\n },\n [setValue, value, step, start, end]\n );\n\n useEffect(() => {\n const onDragEnd = () => {\n setInDrag(false);\n if (inDrag) onDragEndProp?.();\n };\n\n document.addEventListener('mouseup', onDragEnd);\n document.addEventListener('touchend', onDragEnd);\n document.addEventListener('touchcancel', onDragEnd);\n if (inDrag) {\n document.addEventListener('mousemove', moveThumb);\n document.addEventListener('touchmove', moveThumb);\n }\n\n return () => {\n document.removeEventListener('mouseup', onDragEnd);\n document.removeEventListener('touchend', onDragEnd);\n document.removeEventListener('touchcancel', onDragEnd);\n document.removeEventListener('mousemove', moveThumb);\n document.removeEventListener('touchmove', moveThumb);\n };\n }, [inDrag, moveThumb, onDragEndProp]);\n\n useEffect(() => {\n if (autoFocus) thumbRef.current?.focus();\n }, [autoFocus]);\n\n const percentage = ((Number(value) - min) / (max - min)) * 100;\n const size = calculateValueLength(min, max, step);\n\n const Comp = (\n <Flex\n data-testid={testIds.root}\n {...restProps}\n as={StyledSlider}\n container={{\n alignItems: 'start',\n direction: orientation === 'horizontal' ? 'row' : 'column'\n }}\n orientation={orientation}\n {...{ status, disabled, readOnly, size }}\n style={\n {\n '--slider-value': `${percentage}%`,\n userSelect: inDrag ? 'none' : 'auto'\n } as CSSProperties\n }\n >\n <Grid as={StyledSliderTrackWrapper} container>\n <Flex\n as={StyledTrack}\n ref={trackRef}\n onMouseDown={moveThumb}\n container={{ alignItems: 'center', justify: 'center' }}\n >\n <StyledBar showProgress={showProgress} />\n <StyledThumb\n ref={thumbRef}\n role='slider'\n tabIndex={0}\n onKeyDown={onThumbKeyDown}\n onMouseDown={() => {\n setInDrag(true);\n onDragStart?.();\n }}\n onTouchStart={(e: ReactTouchEvent<HTMLDivElement>) => {\n setInDrag(true);\n e.preventDefault(); // Prevent dispatching mouse events as some browser may do that\n onDragStart?.();\n }}\n aria-valuemin={min}\n aria-valuemax={max}\n aria-valuenow={value}\n aria-orientation={orientation}\n aria-readonly={readOnly || undefined}\n aria-disabled={disabled || undefined}\n id={id}\n aria-label={label?.toString()}\n aria-describedby={`${id}-info`}\n aria-controls={`${id}-value`}\n />\n </Flex>\n {Object.keys(ticks).length > 0 && (\n <SliderTicks\n ticks={ticks}\n min={min}\n max={max}\n step={step}\n orientation={orientation}\n onClick={setValue}\n />\n )}\n </Grid>\n {showInput && !preview && (\n <NumberInput\n data-testid={testIds.control}\n id={`${id}-value`}\n status={status}\n min={min}\n max={max}\n step={step}\n value={inputValue}\n showGroupSeparators={false}\n onChange={setInputValue}\n onBlur={v => setValue(getNearestValue(Number(v), min, max, step))}\n size={size}\n readOnly={readOnly}\n disabled={disabled}\n aria-label={label?.toString()}\n />\n )}\n {preview && <StyledPreview id={`${id}-value`} value={value.toString()} size={size} />}\n </Flex>\n );\n\n return label ? (\n <FormField\n {...{\n testId: testIds,\n label,\n labelHidden,\n id,\n info,\n status,\n required,\n disabled,\n additionalInfo\n }}\n >\n {Comp}\n </FormField>\n ) : (\n Comp\n );\n});\n\nexport default withTestIds(Slider, getSliderTestIds);\n"]}
@@ -68,6 +68,8 @@ export default interface SliderProps extends BaseProps, NoChildrenProp, TestIdPr
68
68
  ticks?: {
69
69
  [key: number]: string;
70
70
  };
71
+ /** Pass a heading and content to show additional information on the field. */
72
+ additionalInfo?: FormControlProps['additionalInfo'];
71
73
  /**
72
74
  * On change callback.
73
75
  * @param value new input value
@@ -1 +1 @@
1
- {"version":3,"file":"Slider.types.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/Slider.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,UAAU,EAA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1D,QAAQ,CAAC,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAC;IACxC,qFAAqF;IACrF,QAAQ,CAAC,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAC;IACxC,+FAA+F;IAC/F,IAAI,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAChC,2DAA2D;IAC3D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,WAAW,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;IACxC;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,6BAA6B;IAC7B,KAAK,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAClC,8EAA8E;IAC9E,cAAc,CAAC,EAAE,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;IACpD;;;OAGG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,6DAA6D;IAC7D,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,4DAA4D;IAC5D,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf"}
@@ -1 +1 @@
1
- {"version":3,"file":"Slider.types.js","sourceRoot":"","sources":["../../../src/components/Slider/Slider.types.ts"],"names":[],"mappings":"","sourcesContent":["import { BaseProps, NoChildrenProp, TestIdProp } from '../../types';\nimport { FormControlProps } from '../FormControl';\n\nexport default interface SliderProps extends BaseProps, NoChildrenProp, TestIdProp {\n /**\n * Sets DOM id for the control and associates label element via 'for' attribute.\n * If an id is not pass, a random id will be generated for any render.\n */\n id?: FormControlProps['id'];\n /** Set visual state based on a validation state. */\n status?: FormControlProps['status'];\n /** Pass a string or a fragment with an Icon and string. */\n label?: FormControlProps['label'];\n /** Visually hides the label region. */\n labelHidden?: FormControlProps['labelHidden'];\n /** It is recommended to pass a simple string to offer guidance. Text will be styled based on status prop. */\n info?: FormControlProps['info'];\n /** Indicate if the field is required. The browser defaults to false. */\n required?: FormControlProps['required'];\n /**\n * Creates a controlled input and sets the value. Requires an onChange handler to update value.\n * value + onChange is the recommended method per React team.\n */\n value: number;\n /** Disable the control. The browser defaults to false. */\n disabled?: FormControlProps['disabled'];\n /** Makes the input non editable and non clickable. The browser defaults to false. */\n readOnly?: FormControlProps['readOnly'];\n /** Sets html name attribute for the underlying control. Useful for mapping to a data field. */\n name?: FormControlProps['name'];\n /** Will automatically focus the thumb on render if true */\n autoFocus?: boolean;\n /**\n * Minimum value.\n * @default 0\n */\n min?: number;\n /**\n * Maximum value.\n * @default 100\n */\n max?: number;\n /**\n * Step value.\n * @default 1\n */\n step?: number;\n /**\n * Slider orientation.\n * @default 'horizontal'\n */\n orientation?: 'vertical' | 'horizontal';\n /**\n * Show slider color progress bar.\n * @default false\n */\n showProgress?: boolean;\n /**\n * Show current value.\n * @default false\n */\n preview?: boolean;\n /**\n * Display input to provide value.\n * @default true\n */\n showInput?: boolean;\n /** Display defined ticks. */\n ticks?: { [key: number]: string };\n /**\n * On change callback.\n * @param value new input value\n */\n onChange: (value: number) => void;\n /** Called when the user starts dragging the slider thumb. */\n onDragStart?: () => void;\n /** Called when the user stops dragging the slider thumb. */\n onDragEnd?: () => void;\n}\n\nexport interface TickDefinition {\n start: number;\n end: number;\n value: number;\n label: string;\n}\n"]}
1
+ {"version":3,"file":"Slider.types.js","sourceRoot":"","sources":["../../../src/components/Slider/Slider.types.ts"],"names":[],"mappings":"","sourcesContent":["import { BaseProps, NoChildrenProp, TestIdProp } from '../../types';\nimport { FormControlProps } from '../FormControl';\n\nexport default interface SliderProps extends BaseProps, NoChildrenProp, TestIdProp {\n /**\n * Sets DOM id for the control and associates label element via 'for' attribute.\n * If an id is not pass, a random id will be generated for any render.\n */\n id?: FormControlProps['id'];\n /** Set visual state based on a validation state. */\n status?: FormControlProps['status'];\n /** Pass a string or a fragment with an Icon and string. */\n label?: FormControlProps['label'];\n /** Visually hides the label region. */\n labelHidden?: FormControlProps['labelHidden'];\n /** It is recommended to pass a simple string to offer guidance. Text will be styled based on status prop. */\n info?: FormControlProps['info'];\n /** Indicate if the field is required. The browser defaults to false. */\n required?: FormControlProps['required'];\n /**\n * Creates a controlled input and sets the value. Requires an onChange handler to update value.\n * value + onChange is the recommended method per React team.\n */\n value: number;\n /** Disable the control. The browser defaults to false. */\n disabled?: FormControlProps['disabled'];\n /** Makes the input non editable and non clickable. The browser defaults to false. */\n readOnly?: FormControlProps['readOnly'];\n /** Sets html name attribute for the underlying control. Useful for mapping to a data field. */\n name?: FormControlProps['name'];\n /** Will automatically focus the thumb on render if true */\n autoFocus?: boolean;\n /**\n * Minimum value.\n * @default 0\n */\n min?: number;\n /**\n * Maximum value.\n * @default 100\n */\n max?: number;\n /**\n * Step value.\n * @default 1\n */\n step?: number;\n /**\n * Slider orientation.\n * @default 'horizontal'\n */\n orientation?: 'vertical' | 'horizontal';\n /**\n * Show slider color progress bar.\n * @default false\n */\n showProgress?: boolean;\n /**\n * Show current value.\n * @default false\n */\n preview?: boolean;\n /**\n * Display input to provide value.\n * @default true\n */\n showInput?: boolean;\n /** Display defined ticks. */\n ticks?: { [key: number]: string };\n /** Pass a heading and content to show additional information on the field. */\n additionalInfo?: FormControlProps['additionalInfo'];\n /**\n * On change callback.\n * @param value new input value\n */\n onChange: (value: number) => void;\n /** Called when the user starts dragging the slider thumb. */\n onDragStart?: () => void;\n /** Called when the user stops dragging the slider thumb. */\n onDragEnd?: () => void;\n}\n\nexport interface TickDefinition {\n start: number;\n end: number;\n value: number;\n label: string;\n}\n"]}
@@ -40,6 +40,7 @@ export interface SummaryListItem extends OmitStrict<SummaryItemProps, 'actions'>
40
40
  /** A set of Actions to render alongside the item. If more than one action is passed a consolidated ActionMenu will be generated. */
41
41
  actions?: Action[];
42
42
  }
43
+ export declare const StyledSummaryListHeader: import("styled-components").StyledComponent<import("react").FunctionComponent<import("../Card").CardHeaderProps & ForwardProps>, import("styled-components").DefaultTheme, {}, never>;
43
44
  export declare const StyledSummaryListContent: import("styled-components").StyledComponent<import("react").FunctionComponent<import("../Card").CardContentProps & ForwardProps>, import("styled-components").DefaultTheme, {
44
45
  loading?: boolean | undefined;
45
46
  }, never>;
@@ -1 +1 @@
1
- {"version":3,"file":"SummaryList.d.ts","sourceRoot":"","sources":["../../../src/components/SummaryList/SummaryList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+B,GAAG,EAAE,EAAE,EAAW,MAAM,OAAO,CAAC;AAGtE,OAAgB,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAMnD,OAAmB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAI3F,OAAO,WAAW,EAAE,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAI/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAErD,MAAM,WAAW,gBAAiB,SAAQ,cAAc;IACtD,uGAAuG;IACvG,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,iDAAiD;IACjD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gFAAgF;IAChF,KAAK,CAAC,EAAE,MAAM,CA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AAIF,eAAO,MAAM,qBAAqB,EAAE,OAAO,WAS1C,CAAC;AAIF,eAAO,MAAM,gBAAgB,oBAAqB,KAAK,gBAAgB,EAAE,OAAO,GAAG,MAAM,CAAC,gBA2BzF,CAAC;AAEF,QAAA,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,GAAG,YAAY,CAgEnD,CAAC;AAEH,eAAe,WAAW,CAAC"}
@@ -6,7 +6,7 @@ import Flex from '../Flex';
6
6
  import Text from '../Text';
7
7
  import Count from '../Badges/Count';
8
8
  import Icon from '../Icon';
9
- import Card, { CardHeader, CardContent, CardFooter } from '../Card';
9
+ import Card, { CardHeader, CardContent, CardFooter, StyledCard } from '../Card';
10
10
  import EmptyState from '../EmptyState';
11
11
  import { omitProps } from '../../styles';
12
12
  import { useI18n } from '../../hooks';
@@ -15,6 +15,13 @@ import SummaryItem from '../SummaryItem';
15
15
  import Progress from '../Progress';
16
16
  import Button from '../Button';
17
17
  import ErrorState from '../ErrorState';
18
+ import { StyledCardFooter } from '../Card/CardFooter';
19
+ export const StyledSummaryListHeader = styled(CardHeader)(({ theme }) => css `
20
+ &:not(${StyledCard} ${StyledCard} > &) {
21
+ padding-block-end: calc(${theme.base.spacing} / 2);
22
+ }
23
+ `);
24
+ StyledSummaryListHeader.defaultProps = defaultThemeProp;
18
25
  export const StyledSummaryListContent = styled(CardContent).withConfig(omitProps('loading'))(({ theme, loading }) => css `
19
26
  ${loading &&
20
27
  css `
@@ -22,15 +29,23 @@ export const StyledSummaryListContent = styled(CardContent).withConfig(omitProps
22
29
  `}
23
30
 
24
31
  &:not(:last-child) > ul > li:last-child {
25
- border-bottom: 0.0625rem solid ${theme.base.palette['border-line']};
32
+ border-block-end: 0.0625rem solid ${theme.base.palette['border-line']};
33
+ }
34
+
35
+ &:not(${StyledCard} ${StyledCard} > &) {
36
+ padding-block-end: calc(${theme.base.spacing} / 2);
37
+
38
+ & + ${StyledCardFooter} {
39
+ padding-block-start: ${theme.base.spacing};
40
+ }
26
41
  }
27
42
  `);
28
43
  StyledSummaryListContent.defaultProps = defaultThemeProp;
29
44
  export const StyledSummaryListItem = styled(SummaryItem)(({ theme }) => css `
30
- padding: ${theme.base.spacing} 0;
45
+ padding-block: ${theme.base.spacing};
31
46
 
32
47
  &:not(:last-child) {
33
- border-bottom: 0.0625rem solid ${theme.base.palette['border-line']};
48
+ border-block-end: 0.0625rem solid ${theme.base.palette['border-line']};
34
49
  }
35
50
  `);
36
51
  StyledSummaryListItem.defaultProps = defaultThemeProp;
@@ -53,7 +68,7 @@ const SummaryList = forwardRef(function SummaryList({ icon, name, headingTag = '
53
68
  }
54
69
  return items.length > 0 ? (_jsx(SummaryListItems, { name: name, items: items })) : (_jsx(EmptyState, { message: noItemsText }));
55
70
  }, [loading, items, noItemsText, error]);
56
- return (_jsxs(Card, { ref: ref, ...restProps, children: [(icon || name || typeof count === 'number' || actions) && (_jsxs(CardHeader, { children: [_jsxs(Flex, { container: { alignItems: 'center', gap: 1 }, children: [icon && _jsx(Icon, { name: icon }), name && _jsx(Text, { variant: headingTag, children: name }), typeof count === 'number' && _jsx(Count, { children: count })] }), actions && _jsx(Actions, { items: actions, contextualLabel: name })] })), _jsx(StyledSummaryListContent, { loading: loading, children: content }), !error && typeof count === 'number' && count > items.length && onViewAll && (_jsx(CardFooter, { justify: 'center', children: _jsx(Button, { variant: 'link', "aria-label": name ? t('view_all_noun', [name.toLowerCase()]) : t('view_all'), onClick: onViewAll, children: t('view_all') }) }))] }));
71
+ return (_jsxs(Card, { ref: ref, ...restProps, children: [(icon || name || typeof count === 'number' || actions) && (_jsxs(StyledSummaryListHeader, { children: [_jsxs(Flex, { container: { alignItems: 'center', gap: 1 }, children: [icon && _jsx(Icon, { name: icon }), name && _jsx(Text, { variant: headingTag, children: name }), typeof count === 'number' && _jsx(Count, { children: count })] }), actions && _jsx(Actions, { items: actions, contextualLabel: name })] })), _jsx(StyledSummaryListContent, { loading: loading, children: content }), !error && typeof count === 'number' && count > items.length && onViewAll && (_jsx(CardFooter, { justify: 'center', children: _jsx(Button, { variant: 'link', "aria-label": name ? t('view_all_noun', [name.toLowerCase()]) : t('view_all'), onClick: onViewAll, children: t('view_all') }) }))] }));
57
72
  });
58
73
  export default SummaryList;
59
74
  //# sourceMappingURL=SummaryList.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SummaryList.js","sourceRoot":"","sources":["../../../src/components/SummaryList/SummaryList.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAA4B,OAAO,EAAE,MAAM,OAAO,CAAC;AACtE,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,OAAyB,MAAM,YAAY,CAAC;AACnD,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,KAAK,MAAM,iBAAiB,CAAC;AACpC,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,IAAI,EAAE,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACpE,OAAO,UAA+B,MAAM,eAAe,CAAC;AAE5D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,WAAiC,MAAM,gBAAgB,CAAC;AAC/D,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,UAAU,MAAM,eAAe,CAAC;AA4CvC,MAAM,CAAC,MAAM,wBAAwB,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC,UAAU,CACpE,SAAS,CAAC,SAAS,CAAC,CACrB,CACC,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,GAAG,CAAA;MACvB,OAAO;IACT,GAAG,CAAA;;KAEF;;;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AS,IAC/C,EACN,OAAO,IAAI,KAAC,OAAO,IAAC,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,IAAI,GAAI,IACnD,CACd,EAED,KAAC,wBAAwB,IAAC,OAAO,EAAE,OAAO,YAAG,OAAO,GAA4B,EAE/E,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,GAAG,KAAK,CAAC,MAAM,IAAI,SAAS,IAAI,CAC3E,KAAC,UAAU,IAAC,OAAO,EAAC,QAAQ,YAC1B,KAAC,MAAM,IACL,OAAO,EAAC,MAAM,gBACF,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,eAAe,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,EAC3E,OAAO,EAAE,SAAS,YAEjB,CAAC,CAAC,UAAU,CAAC,GACP,GACE,CACd,IACI,CACR,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,WAAW,CAAC","sourcesContent":["import { forwardRef, PropsWithoutRef, Ref, FC, useMemo } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport Actions, { ActionsProps } from '../Actions';\nimport Flex from '../Flex';\nimport Text from '../Text';\nimport Count from '../Badges/Count';\nimport Icon from '../Icon';\nimport Card, { CardHeader, CardContent, CardFooter } from '../Card';\nimport EmptyState, { EmptyStateProps } from '../EmptyState';\nimport { ForwardProps, NoChildrenProp, OmitStrict, Action, HeadingTag } from '../../types';\nimport { omitProps } from '../../styles';\nimport { useI18n } from '../../hooks';\nimport { defaultThemeProp } from '../../theme';\nimport SummaryItem, { SummaryItemProps } from '../SummaryItem';\nimport Progress from '../Progress';\nimport Button from '../Button';\nimport ErrorState from '../ErrorState';\nimport type { ErrorStateProps } from '../ErrorState';\n\nexport interface SummaryListProps extends NoChildrenProp {\n /** Name of the utility to be used as its heading along with associated actions and aria attributes. */\n name?: string;\n /**\n * The heading tag to render the provided name as with.\n * @default 'h2'\n */\n headingTag?: HeadingTag;\n /** Identifier for the icon within Pega icons. */\n icon?: string;\n /** Integer representing the total count of items for a list utility dataset. */\n count?: number;\n /** Top level actions for the utility. If more than one action is passed a consolidated ActionMenu will be generated. */\n actions?: Action[];\n /** If the utility is in a state of fetching data. */\n loading?: boolean | string;\n /** An array of SummaryListItem objects to render. Pass an appropriately limited length array with a desired sort order based on design system defaults or config. */\n items: SummaryListItem[];\n /** User click initiated callback for when to show view all modal. List lengths less than the count prop will display a \"View all\" button with this function is bound to. */\n onViewAll?: (callback: Function) => void;\n /** A simple message to display when there are no items. */\n noItemsText?: EmptyStateProps['message'];\n /**\n * Indicate an error occurred while acquiring data for the list.\n * The default error state may be overridden with custom props.\n */\n error?: boolean | ErrorStateProps;\n /** Ref for the SummaryList's root element. */\n ref?: Ref<HTMLElement>;\n}\n\nexport interface SummaryListItem\n extends OmitStrict<SummaryItemProps, 'actions'>,\n Pick<ActionsProps, 'contextualLabel'>,\n ForwardProps {\n /** A unique id to represent the item. */\n id: string;\n /** A set of Actions to render alongside the item. If more than one action is passed a consolidated ActionMenu will be generated. */\n actions?: Action[];\n}\n\nexport const StyledSummaryListContent = styled(CardContent).withConfig<{ loading?: boolean }>(\n omitProps('loading')\n)(\n ({ theme, loading }) => css`\n ${loading &&\n css`\n min-height: 4rem;\n `}\n\n &:not(:last-child) > ul > li:last-child {\n border-bottom: 0.0625rem solid ${theme.base.palette['border-line']};\n }\n `\n);\n\nStyledSummaryListContent.defaultProps = defaultThemeProp;\n\nexport const StyledSummaryListItem: typeof SummaryItem = styled(SummaryItem)(\n ({ theme }) =>\n css`\n padding: ${theme.base.spacing} 0;\n\n &:not(:last-child) {\n border-bottom: 0.0625rem solid ${theme.base.palette['border-line']};\n }\n `\n);\n\nStyledSummaryListItem.defaultProps = defaultThemeProp;\n\nexport const SummaryListItems = ({ name, items }: Pick<SummaryListProps, 'items' | 'name'>) => {\n const t = useI18n();\n return (\n <ul>\n {items.map(({ id, actions: itemActions, contextualLabel, ...restItemProps }) => {\n return (\n <StyledSummaryListItem\n key={id}\n {...restItemProps}\n forwardedAs='li'\n actions={\n itemActions && (\n <Actions\n items={itemActions}\n contextualLabel={\n name && contextualLabel\n ? t('action_from_summarylist_heading', [contextualLabel, name])\n : contextualLabel\n }\n />\n )\n }\n />\n );\n })}\n </ul>\n );\n};\n\nconst SummaryList: FC<SummaryListProps & ForwardProps> = forwardRef(function SummaryList(\n {\n icon,\n name,\n headingTag = 'h2',\n count,\n actions,\n items,\n onViewAll,\n loading,\n noItemsText,\n error,\n ...restProps\n }: PropsWithoutRef<SummaryListProps>,\n ref: SummaryListProps['ref']\n) {\n const t = useI18n();\n\n const content = useMemo(() => {\n if (loading) {\n return (\n <Progress placement='local' message={typeof loading === 'string' ? loading : undefined} />\n );\n }\n\n if (error) {\n return <ErrorState {...(error === true ? {} : error)} />;\n }\n\n return items.length > 0 ? (\n <SummaryListItems name={name} items={items} />\n ) : (\n <EmptyState message={noItemsText} />\n );\n }, [loading, items, noItemsText, error]);\n\n return (\n <Card ref={ref} {...restProps}>\n {(icon || name || typeof count === 'number' || actions) && (\n <CardHeader>\n <Flex container={{ alignItems: 'center', gap: 1 }}>\n {icon && <Icon name={icon} />}\n {name && <Text variant={headingTag}>{name}</Text>}\n {typeof count === 'number' && <Count>{count}</Count>}\n </Flex>\n {actions && <Actions items={actions} contextualLabel={name} />}\n </CardHeader>\n )}\n\n <StyledSummaryListContent loading={loading}>{content}</StyledSummaryListContent>\n\n {!error && typeof count === 'number' && count > items.length && onViewAll && (\n <CardFooter justify='center'>\n <Button\n variant='link'\n aria-label={name ? t('view_all_noun', [name.toLowerCase()]) : t('view_all')}\n onClick={onViewAll}\n >\n {t('view_all')}\n </Button>\n </CardFooter>\n )}\n </Card>\n );\n});\n\nexport default SummaryList;\n"]}
1
+ {"version":3,"file":"SummaryList.js","sourceRoot":"","sources":["../../../src/components/SummaryList/SummaryList.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAA4B,OA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B,IAAI,IAAI,KAAC,IAAI,IAAC,OAAO,EAAE,UAAU,YAAG,IAAI,GAAQ,EAChD,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAC,KAAK,cAAE,KAAK,GAAS,IAC/C,EACN,OAAO,IAAI,KAAC,OAAO,IAAC,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,IAAI,GAAI,IACtC,CAC3B,EAED,KAAC,wBAAwB,IAAC,OAAO,EAAE,OAAO,YAAG,OAAO,GAA4B,EAE/E,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,GAAG,KAAK,CAAC,MAAM,IAAI,SAAS,IAAI,CAC3E,KAAC,UAAU,IAAC,OAAO,EAAC,QAAQ,YAC1B,KAAC,MAAM,IACL,OAAO,EAAC,MAAM,gBACF,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,eAAe,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,EAC3E,OAAO,EAAE,SAAS,YAEjB,CAAC,CAAC,UAAU,CAAC,GACP,GACE,CACd,IACI,CACR,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,WAAW,CAAC","sourcesContent":["import { forwardRef, PropsWithoutRef, Ref, FC, useMemo } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport Actions, { ActionsProps } from '../Actions';\nimport Flex from '../Flex';\nimport Text from '../Text';\nimport Count from '../Badges/Count';\nimport Icon from '../Icon';\nimport Card, { CardHeader, CardContent, CardFooter, StyledCard } from '../Card';\nimport EmptyState, { EmptyStateProps } from '../EmptyState';\nimport { ForwardProps, NoChildrenProp, OmitStrict, Action, HeadingTag } from '../../types';\nimport { omitProps } from '../../styles';\nimport { useI18n } from '../../hooks';\nimport { defaultThemeProp } from '../../theme';\nimport SummaryItem, { SummaryItemProps } from '../SummaryItem';\nimport Progress from '../Progress';\nimport Button from '../Button';\nimport ErrorState from '../ErrorState';\nimport type { ErrorStateProps } from '../ErrorState';\nimport { StyledCardFooter } from '../Card/CardFooter';\n\nexport interface SummaryListProps extends NoChildrenProp {\n /** Name of the utility to be used as its heading along with associated actions and aria attributes. */\n name?: string;\n /**\n * The heading tag to render the provided name as with.\n * @default 'h2'\n */\n headingTag?: HeadingTag;\n /** Identifier for the icon within Pega icons. */\n icon?: string;\n /** Integer representing the total count of items for a list utility dataset. */\n count?: number;\n /** Top level actions for the utility. If more than one action is passed a consolidated ActionMenu will be generated. */\n actions?: Action[];\n /** If the utility is in a state of fetching data. */\n loading?: boolean | string;\n /** An array of SummaryListItem objects to render. Pass an appropriately limited length array with a desired sort order based on design system defaults or config. */\n items: SummaryListItem[];\n /** User click initiated callback for when to show view all modal. List lengths less than the count prop will display a \"View all\" button with this function is bound to. */\n onViewAll?: (callback: Function) => void;\n /** A simple message to display when there are no items. */\n noItemsText?: EmptyStateProps['message'];\n /**\n * Indicate an error occurred while acquiring data for the list.\n * The default error state may be overridden with custom props.\n */\n error?: boolean | ErrorStateProps;\n /** Ref for the SummaryList's root element. */\n ref?: Ref<HTMLElement>;\n}\n\nexport interface SummaryListItem\n extends OmitStrict<SummaryItemProps, 'actions'>,\n Pick<ActionsProps, 'contextualLabel'>,\n ForwardProps {\n /** A unique id to represent the item. */\n id: string;\n /** A set of Actions to render alongside the item. If more than one action is passed a consolidated ActionMenu will be generated. */\n actions?: Action[];\n}\n\nexport const StyledSummaryListHeader = styled(CardHeader)(\n ({ theme }) =>\n css`\n &:not(${StyledCard} ${StyledCard} > &) {\n padding-block-end: calc(${theme.base.spacing} / 2);\n }\n `\n);\n\nStyledSummaryListHeader.defaultProps = defaultThemeProp;\n\nexport const StyledSummaryListContent = styled(CardContent).withConfig<{ loading?: boolean }>(\n omitProps('loading')\n)(\n ({ theme, loading }) => css`\n ${loading &&\n css`\n min-height: 4rem;\n `}\n\n &:not(:last-child) > ul > li:last-child {\n border-block-end: 0.0625rem solid ${theme.base.palette['border-line']};\n }\n\n &:not(${StyledCard} ${StyledCard} > &) {\n padding-block-end: calc(${theme.base.spacing} / 2);\n\n & + ${StyledCardFooter} {\n padding-block-start: ${theme.base.spacing};\n }\n }\n `\n);\n\nStyledSummaryListContent.defaultProps = defaultThemeProp;\n\nexport const StyledSummaryListItem: typeof SummaryItem = styled(SummaryItem)(\n ({ theme }) =>\n css`\n padding-block: ${theme.base.spacing};\n\n &:not(:last-child) {\n border-block-end: 0.0625rem solid ${theme.base.palette['border-line']};\n }\n `\n);\n\nStyledSummaryListItem.defaultProps = defaultThemeProp;\n\nexport const SummaryListItems = ({ name, items }: Pick<SummaryListProps, 'items' | 'name'>) => {\n const t = useI18n();\n return (\n <ul>\n {items.map(({ id, actions: itemActions, contextualLabel, ...restItemProps }) => {\n return (\n <StyledSummaryListItem\n key={id}\n {...restItemProps}\n forwardedAs='li'\n actions={\n itemActions && (\n <Actions\n items={itemActions}\n contextualLabel={\n name && contextualLabel\n ? t('action_from_summarylist_heading', [contextualLabel, name])\n : contextualLabel\n }\n />\n )\n }\n />\n );\n })}\n </ul>\n );\n};\n\nconst SummaryList: FC<SummaryListProps & ForwardProps> = forwardRef(function SummaryList(\n {\n icon,\n name,\n headingTag = 'h2',\n count,\n actions,\n items,\n onViewAll,\n loading,\n noItemsText,\n error,\n ...restProps\n }: PropsWithoutRef<SummaryListProps>,\n ref: SummaryListProps['ref']\n) {\n const t = useI18n();\n\n const content = useMemo(() => {\n if (loading) {\n return (\n <Progress placement='local' message={typeof loading === 'string' ? loading : undefined} />\n );\n }\n\n if (error) {\n return <ErrorState {...(error === true ? {} : error)} />;\n }\n\n return items.length > 0 ? (\n <SummaryListItems name={name} items={items} />\n ) : (\n <EmptyState message={noItemsText} />\n );\n }, [loading, items, noItemsText, error]);\n\n return (\n <Card ref={ref} {...restProps}>\n {(icon || name || typeof count === 'number' || actions) && (\n <StyledSummaryListHeader>\n <Flex container={{ alignItems: 'center', gap: 1 }}>\n {icon && <Icon name={icon} />}\n {name && <Text variant={headingTag}>{name}</Text>}\n {typeof count === 'number' && <Count>{count}</Count>}\n </Flex>\n {actions && <Actions items={actions} contextualLabel={name} />}\n </StyledSummaryListHeader>\n )}\n\n <StyledSummaryListContent loading={loading}>{content}</StyledSummaryListContent>\n\n {!error && typeof count === 'number' && count > items.length && onViewAll && (\n <CardFooter justify='center'>\n <Button\n variant='link'\n aria-label={name ? t('view_all_noun', [name.toLowerCase()]) : t('view_all')}\n onClick={onViewAll}\n >\n {t('view_all')}\n </Button>\n </CardFooter>\n )}\n </Card>\n );\n});\n\nexport default SummaryList;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"useBreakpoint.d.ts","sourceRoot":"","sources":["../../src/hooks/useBreakpoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0C,SAAS,EAAE,MAAM,OAAO,CAAC;AAY1E;;;;;GAKG;AACH,QAAA,MAAM,aAAa,eACL,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI;oBAM1B,UAAU,OAAO,CAAC,GAAG,SAAS;;;aAuEjD,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"useBreakpoint.d.ts","sourceRoot":"","sources":["../../src/hooks/useBreakpoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0C,SAAS,EAAE,MAAM,OAAO,CAAC;AAY1E;;;;;GAKG;AACH,QAAA,MAAM,aAAa,eACL,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI;oBAM1B,UAAU,OAAO,CAAC,GAAG,SAAS;;;aAyEjD,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -23,7 +23,7 @@ const useBreakpoint = (breakpoint, { breakpointRef, defaultValue = false, themeP
23
23
  useLayoutEffect(() => {
24
24
  // Breakpoint handling for contained elements
25
25
  if (breakpointRef && breakpointRef.current) {
26
- const observer = new ResizeObserver(entries => {
26
+ const debouncedResize = debounce((entries) => {
27
27
  const matchesBreakpoint = entries.some(({ target, contentRect }) => {
28
28
  if (target !== breakpointRef.current)
29
29
  return;
@@ -31,7 +31,8 @@ const useBreakpoint = (breakpoint, { breakpointRef, defaultValue = false, themeP
31
31
  return contentRect.width >= parseFloat(breakpointVal) * multiplier;
32
32
  });
33
33
  setMatches(matchesBreakpoint);
34
- });
34
+ }, 100);
35
+ const observer = new ResizeObserver(debouncedResize);
35
36
  observer.observe(breakpointRef.current);
36
37
  return () => {
37
38
  observer.disconnect();
@@ -1 +1 @@
1
- {"version":3,"file":"useBreakpoint.js","sourceRoot":"","sources":["../../src/hooks/useBreakpoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,WAAW,EAAa,MAAM,OAAO,CAAC;AAE1E,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEvD,OAAO,yBAAyB,MAAM,6BAA6B,CAAC;AACpE,OAAO,QAAQ,MAAM,YAAY,CAAC;AAElC,uHAAuH;AACvH,MAAM,YAAY,GAAG,iBAAiB;IACpC,CAAC,CAAC,MAAM,CAAC,gBAAgB,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,QAAQ;IAC5D,CAAC,CAAC,MAAM,CAAC;AAEX;;;;;GAKG;AACH,MAAM,aAAa,GAAG,CACpB,UAA4C,EAC5C,EACE,aAAa,EACb,YAAY,GAAG,KAAK,EACpB,SAAS,GAAG,aAAa,KAKvB,EAAE,EACN,EAAE;IACF,MAAM,EACJ,IAAI,EAAE,EAAE,WAAW,EAAE,eAAe,EAAE,YAAY,EAAE,EACrD,GAAG,QAAQ,EAAE,CAAC;IACf,MAAM,aAAa,GACjB,SAAS,KAAK,eAAe,CAAC,CAAC,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAErF,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CACpC,iBAAiB,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,eAA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AAG,EAAE;gBAClC,UAAU,CAAC,MAAM,CAAC,UAAU,IAAI,QAAQ,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC,CAAC;YAC/D,CAAC,EAAE,GAAG,CAAC,CAAC;YAER,+DAA+D;YAC/D,IAAI,mBAAmB,EAAE;gBACvB,UAAU,CAAC,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;gBAChD,UAAU,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;aAChC;iBAAM;gBACL,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;gBACjD,UAAU,CAAC,MAAM,CAAC,UAAU,IAAI,QAAQ,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC,CAAC;aAC9D;YAED,OAAO,GAAG,EAAE;gBACV,+DAA+D;gBAC/D,IAAI,mBAAmB;oBAAE,UAAU,CAAC,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;qBACvE;oBACH,MAAM,CAAC,mBAAmB,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;iBACrD;YACH,CAAC,CAAC;SACH;IACH,CAAC,EAAE,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC,CAAC;IAE7B,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC","sourcesContent":["import { useState, useLayoutEffect, useCallback, RefObject } from 'react';\n\nimport { windowIsAvailable, debounce } from '../utils';\n\nimport useChToPxConversionFactor from './useChToPxConversionFactor';\nimport useTheme from './useTheme';\n\n// We should be able to safely capture once as the computed root font size is unlikely to change during normal runtime.\nconst rootFontSize = windowIsAvailable\n ? window.getComputedStyle(document.documentElement).fontSize\n : '16px';\n\n/**\n * @example const breakpointActive = useBreakpoint(breakpoint);\n * @param breakpoint The string indicator for the breakpoint that should be checked for validity.\n * @param options\n * @returns breakpointActive:: A boolean indicating if the given breakpoint is active or not. If false, the breakpoint is too big for the screen size.\n */\nconst useBreakpoint = (\n breakpoint: 'xs' | 'sm' | 'md' | 'lg' | 'xl',\n {\n breakpointRef,\n defaultValue = false,\n themeProp = 'breakpoints'\n }: {\n breakpointRef?: RefObject<Element> | undefined;\n defaultValue?: boolean;\n themeProp?: 'breakpoints' | 'content-width';\n } = {}\n) => {\n const {\n base: { breakpoints, 'content-width': contentWidth }\n } = useTheme();\n const breakpointVal =\n themeProp === 'content-width' ? contentWidth[breakpoint] : breakpoints[breakpoint];\n\n const [matches, setMatches] = useState(\n windowIsAvailable ? window.matchMedia(`(min-width: ${breakpointVal})`).matches : !!defaultValue\n );\n\n const chToPxConversionFactor = useChToPxConversionFactor();\n\n const onResize = useCallback((e: MediaQueryListEvent) => {\n setMatches(e.matches);\n }, []);\n\n useLayoutEffect(() => {\n // Breakpoint handling for contained elements\n if (breakpointRef && breakpointRef.current) {\n const observer = new ResizeObserver(entries => {\n const matchesBreakpoint = entries.some(({ target, contentRect }) => {\n if (target !== breakpointRef.current) return;\n\n const multiplier =\n themeProp === 'breakpoints' ? parseFloat(rootFontSize) : chToPxConversionFactor;\n return contentRect.width >= parseFloat(breakpointVal) * multiplier;\n });\n\n setMatches(matchesBreakpoint);\n });\n\n observer.observe(breakpointRef.current);\n\n return () => {\n observer.disconnect();\n };\n }\n\n // Breakpoint handling for viewport\n if (windowIsAvailable) {\n const mediaMatch = window.matchMedia(`(min-width: ${breakpointVal})`);\n const mediaMatchAvailable = 'addEventListener' in mediaMatch;\n const resizeHandler = debounce(() => {\n setMatches(window.innerWidth >= parseInt(breakpointVal, 10));\n }, 100);\n\n // Need to check useMatchMedia in order to support unit testing\n if (mediaMatchAvailable) {\n mediaMatch.addEventListener('change', onResize);\n setMatches(mediaMatch.matches);\n } else {\n window.addEventListener('resize', resizeHandler);\n setMatches(window.innerWidth >= parseInt(breakpointVal, 10));\n }\n\n return () => {\n // Need to check useMatchMedia in order to support unit testing\n if (mediaMatchAvailable) mediaMatch.removeEventListener('change', onResize);\n else {\n window.removeEventListener('resize', resizeHandler);\n }\n };\n }\n }, [breakpointRef?.current]);\n\n return matches;\n};\n\nexport default useBreakpoint;\n"]}
1
+ {"version":3,"file":"useBreakpoint.js","sourceRoot":"","sources":["../../src/hooks/useBreakpoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,WAAW,EAAa,MAAM,OAAO,CAAC;AAE1E,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEvD,OAAO,yBAAyB,MAAM,6BAA6B,CAAC;AACpE,OAAO,QAAQ,MAAM,YAAY,CAAC;AAElC,uHAAuH;AACvH,MAAM,YAAY,GAAG,iBAAiB;IACpC,CAAC,CAAC,MAAM,CAAC,gBAAgB,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,QAAQ;IAC5D,CAAC,CAAC,MAAM,CAAC;AAEX;;;;;GAKG;AACH,MAAM,aAAa,GAAG,CACpB,UAA4C,EAC5C,EACE,aAAa,EACb,YAAY,GAAG,KAAK,EACpB,SAAS,GAAG,aAAa,KAKvB,EAAE,EACN,EAAE;IACF,MAAM,EACJ,IAAI,EAAE,EAAE,WAAW,EAAE,eAAe,EAAE,YAAY,EAAE,EACrD,GAAG,QAAQ,EAAE,CAAC;IACf,MAAM,aAAa,GACjB,SAAS,KAAK,eAAe,CAAC,CAAC,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAErF,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CACpC,iBAAiB,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,eAAe,aAAa,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY,CAChG,CAAC;IAEF,MAAM,sBAAsB,GAAG,yBAAyB,EAAE,CAAC;IAE3D,MAAM,QAAQ,GAAG,WAAW,CAAC,CAAC,CAAsB,EAAE,EAAE;QACtD,UAAU,CAAC,CAAC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AER,+DAA+D;YAC/D,IAAI,mBAAmB,EAAE;gBACvB,UAAU,CAAC,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;gBAChD,UAAU,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;aAChC;iBAAM;gBACL,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;gBACjD,UAAU,CAAC,MAAM,CAAC,UAAU,IAAI,QAAQ,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC,CAAC;aAC9D;YAED,OAAO,GAAG,EAAE;gBACV,+DAA+D;gBAC/D,IAAI,mBAAmB;oBAAE,UAAU,CAAC,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;qBACvE;oBACH,MAAM,CAAC,mBAAmB,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;iBACrD;YACH,CAAC,CAAC;SACH;IACH,CAAC,EAAE,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC,CAAC;IAE7B,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC","sourcesContent":["import { useState, useLayoutEffect, useCallback, RefObject } from 'react';\n\nimport { windowIsAvailable, debounce } from '../utils';\n\nimport useChToPxConversionFactor from './useChToPxConversionFactor';\nimport useTheme from './useTheme';\n\n// We should be able to safely capture once as the computed root font size is unlikely to change during normal runtime.\nconst rootFontSize = windowIsAvailable\n ? window.getComputedStyle(document.documentElement).fontSize\n : '16px';\n\n/**\n * @example const breakpointActive = useBreakpoint(breakpoint);\n * @param breakpoint The string indicator for the breakpoint that should be checked for validity.\n * @param options\n * @returns breakpointActive:: A boolean indicating if the given breakpoint is active or not. If false, the breakpoint is too big for the screen size.\n */\nconst useBreakpoint = (\n breakpoint: 'xs' | 'sm' | 'md' | 'lg' | 'xl',\n {\n breakpointRef,\n defaultValue = false,\n themeProp = 'breakpoints'\n }: {\n breakpointRef?: RefObject<Element> | undefined;\n defaultValue?: boolean;\n themeProp?: 'breakpoints' | 'content-width';\n } = {}\n) => {\n const {\n base: { breakpoints, 'content-width': contentWidth }\n } = useTheme();\n const breakpointVal =\n themeProp === 'content-width' ? contentWidth[breakpoint] : breakpoints[breakpoint];\n\n const [matches, setMatches] = useState(\n windowIsAvailable ? window.matchMedia(`(min-width: ${breakpointVal})`).matches : !!defaultValue\n );\n\n const chToPxConversionFactor = useChToPxConversionFactor();\n\n const onResize = useCallback((e: MediaQueryListEvent) => {\n setMatches(e.matches);\n }, []);\n\n useLayoutEffect(() => {\n // Breakpoint handling for contained elements\n if (breakpointRef && breakpointRef.current) {\n const debouncedResize = debounce((entries: ResizeObserverEntry[]) => {\n const matchesBreakpoint = entries.some(({ target, contentRect }) => {\n if (target !== breakpointRef.current) return;\n\n const multiplier =\n themeProp === 'breakpoints' ? parseFloat(rootFontSize) : chToPxConversionFactor;\n return contentRect.width >= parseFloat(breakpointVal) * multiplier;\n });\n\n setMatches(matchesBreakpoint);\n }, 100);\n\n const observer = new ResizeObserver(debouncedResize);\n\n observer.observe(breakpointRef.current);\n\n return () => {\n observer.disconnect();\n };\n }\n\n // Breakpoint handling for viewport\n if (windowIsAvailable) {\n const mediaMatch = window.matchMedia(`(min-width: ${breakpointVal})`);\n const mediaMatchAvailable = 'addEventListener' in mediaMatch;\n const resizeHandler = debounce(() => {\n setMatches(window.innerWidth >= parseInt(breakpointVal, 10));\n }, 100);\n\n // Need to check useMatchMedia in order to support unit testing\n if (mediaMatchAvailable) {\n mediaMatch.addEventListener('change', onResize);\n setMatches(mediaMatch.matches);\n } else {\n window.addEventListener('resize', resizeHandler);\n setMatches(window.innerWidth >= parseInt(breakpointVal, 10));\n }\n\n return () => {\n // Need to check useMatchMedia in order to support unit testing\n if (mediaMatchAvailable) mediaMatch.removeEventListener('change', onResize);\n else {\n window.removeEventListener('resize', resizeHandler);\n }\n };\n }\n }, [breakpointRef?.current]);\n\n return matches;\n};\n\nexport default useBreakpoint;\n"]}
@@ -616,6 +616,7 @@ declare const useI18n: () => import("../i18n/translate").TranslationFunction<Rea
616
616
  open_live_transcript: string;
617
617
  close_live_transcript: string;
618
618
  download_live_transcript: string;
619
+ transcripts: string;
619
620
  verbatim: string;
620
621
  dialog: string;
621
622
  sentiment_positive: string;
@@ -1 +1 @@
1
- {"version":3,"file":"useI18n.d.ts","sourceRoot":"","sources":["../../src/hooks/useI18n.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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