@pega/cosmos-react-core 4.0.1 → 5.0.0-dev.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1537) 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 +11 -10
  14. package/lib/components/AppShell/AppShell.js.map +1 -1
  15. package/lib/components/AppShell/AppShell.styles.d.ts +3 -3
  16. package/lib/components/AppShell/AppShell.styles.d.ts.map +1 -1
  17. package/lib/components/AppShell/AppShell.styles.js +6 -3
  18. package/lib/components/AppShell/AppShell.styles.js.map +1 -1
  19. package/lib/components/AppShell/NavigationList.d.ts.map +1 -1
  20. package/lib/components/AppShell/NavigationList.js +1 -1
  21. package/lib/components/AppShell/NavigationList.js.map +1 -1
  22. package/lib/components/Avatar/Avatar.d.ts +1 -1
  23. package/lib/components/Avatar/Avatar.d.ts.map +1 -1
  24. package/lib/components/Avatar/Avatar.js +21 -21
  25. package/lib/components/Avatar/Avatar.js.map +1 -1
  26. package/lib/components/Backdrop/Backdrop.d.ts +6 -13
  27. package/lib/components/Backdrop/Backdrop.d.ts.map +1 -1
  28. package/lib/components/Backdrop/Backdrop.js +24 -25
  29. package/lib/components/Backdrop/Backdrop.js.map +1 -1
  30. package/lib/components/Badges/Alert.d.ts +9 -7
  31. package/lib/components/Badges/Alert.d.ts.map +1 -1
  32. package/lib/components/Badges/Alert.js +1 -3
  33. package/lib/components/Badges/Alert.js.map +1 -1
  34. package/lib/components/Badges/Count.d.ts +5 -6
  35. package/lib/components/Badges/Count.d.ts.map +1 -1
  36. package/lib/components/Badges/Count.js +1 -3
  37. package/lib/components/Badges/Count.js.map +1 -1
  38. package/lib/components/Badges/Keyboard.d.ts +5 -6
  39. package/lib/components/Badges/Keyboard.d.ts.map +1 -1
  40. package/lib/components/Badges/Keyboard.js +4 -4
  41. package/lib/components/Badges/Keyboard.js.map +1 -1
  42. package/lib/components/Badges/Status.d.ts +12 -7
  43. package/lib/components/Badges/Status.d.ts.map +1 -1
  44. package/lib/components/Badges/Status.js +1 -5
  45. package/lib/components/Badges/Status.js.map +1 -1
  46. package/lib/components/Banner/Banner.d.ts +8 -12
  47. package/lib/components/Banner/Banner.d.ts.map +1 -1
  48. package/lib/components/Banner/Banner.js +1 -2
  49. package/lib/components/Banner/Banner.js.map +1 -1
  50. package/lib/components/Boolean/BooleanDisplay.d.ts +6 -10
  51. package/lib/components/Boolean/BooleanDisplay.d.ts.map +1 -1
  52. package/lib/components/Boolean/BooleanDisplay.js +1 -2
  53. package/lib/components/Boolean/BooleanDisplay.js.map +1 -1
  54. package/lib/components/Button/Button.d.ts.map +1 -1
  55. package/lib/components/Button/Button.js +0 -1
  56. package/lib/components/Button/Button.js.map +1 -1
  57. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.d.ts.map +1 -1
  58. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.js +7 -3
  59. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.js.map +1 -1
  60. package/lib/components/Currency/CurrencyInput.d.ts.map +1 -1
  61. package/lib/components/Currency/CurrencyInput.js +4 -2
  62. package/lib/components/Currency/CurrencyInput.js.map +1 -1
  63. package/lib/components/DangerButton/DangerButton.d.ts +5 -5
  64. package/lib/components/DangerButton/DangerButton.d.ts.map +1 -1
  65. package/lib/components/DangerButton/DangerButton.js +1 -2
  66. package/lib/components/DangerButton/DangerButton.js.map +1 -1
  67. package/lib/components/DateTime/Input/DateInput.js +2 -3
  68. package/lib/components/DateTime/Input/DateInput.js.map +1 -1
  69. package/lib/components/DateTime/Input/DateTime.styles.d.ts +4 -0
  70. package/lib/components/DateTime/Input/DateTime.styles.d.ts.map +1 -1
  71. package/lib/components/DateTime/Input/DateTime.styles.js +5 -0
  72. package/lib/components/DateTime/Input/DateTime.styles.js.map +1 -1
  73. package/lib/components/DateTime/Input/DateTimeInput.js +2 -3
  74. package/lib/components/DateTime/Input/DateTimeInput.js.map +1 -1
  75. package/lib/components/DateTime/Input/WeekInput.js +2 -3
  76. package/lib/components/DateTime/Input/WeekInput.js.map +1 -1
  77. package/lib/components/Dialog/InfoDialog.d.ts.map +1 -1
  78. package/lib/components/Dialog/InfoDialog.js +1 -1
  79. package/lib/components/Dialog/InfoDialog.js.map +1 -1
  80. package/lib/components/File/FileInput.d.ts +2 -0
  81. package/lib/components/File/FileInput.d.ts.map +1 -1
  82. package/lib/components/File/FileInput.js +3 -2
  83. package/lib/components/File/FileInput.js.map +1 -1
  84. package/lib/components/FormField/FormField.d.ts +4 -1
  85. package/lib/components/FormField/FormField.d.ts.map +1 -1
  86. package/lib/components/FormField/FormField.js +50 -15
  87. package/lib/components/FormField/FormField.js.map +1 -1
  88. package/lib/components/HTML/HTML.d.ts.map +1 -1
  89. package/lib/components/HTML/HTML.js +5 -4
  90. package/lib/components/HTML/HTML.js.map +1 -1
  91. package/lib/components/Icon/streamline-icons/ai-assist.icon.d.ts +5 -0
  92. package/lib/components/Icon/streamline-icons/ai-assist.icon.d.ts.map +1 -0
  93. package/lib/components/Icon/streamline-icons/ai-assist.icon.js +7 -0
  94. package/lib/components/Icon/streamline-icons/ai-assist.icon.js.map +1 -0
  95. package/lib/components/Icon/streamline-icons/alexa.icon.d.ts +1 -1
  96. package/lib/components/Icon/streamline-icons/alexa.icon.d.ts.map +1 -1
  97. package/lib/components/Icon/streamline-icons/alexa.icon.js +2 -2
  98. package/lib/components/Icon/streamline-icons/alexa.icon.js.map +1 -1
  99. package/lib/components/Icon/streamline-icons/align-center.icon.d.ts +1 -1
  100. package/lib/components/Icon/streamline-icons/align-center.icon.d.ts.map +1 -1
  101. package/lib/components/Icon/streamline-icons/align-center.icon.js +2 -2
  102. package/lib/components/Icon/streamline-icons/align-center.icon.js.map +1 -1
  103. package/lib/components/Icon/streamline-icons/align-left.icon.d.ts +1 -1
  104. package/lib/components/Icon/streamline-icons/align-left.icon.d.ts.map +1 -1
  105. package/lib/components/Icon/streamline-icons/align-left.icon.js +2 -2
  106. package/lib/components/Icon/streamline-icons/align-left.icon.js.map +1 -1
  107. package/lib/components/Icon/streamline-icons/align-right.icon.d.ts +1 -1
  108. package/lib/components/Icon/streamline-icons/align-right.icon.d.ts.map +1 -1
  109. package/lib/components/Icon/streamline-icons/align-right.icon.js +2 -2
  110. package/lib/components/Icon/streamline-icons/align-right.icon.js.map +1 -1
  111. package/lib/components/Icon/streamline-icons/amazon.icon.d.ts +5 -0
  112. package/lib/components/Icon/streamline-icons/amazon.icon.d.ts.map +1 -0
  113. package/lib/components/Icon/streamline-icons/amazon.icon.js +7 -0
  114. package/lib/components/Icon/streamline-icons/amazon.icon.js.map +1 -0
  115. package/lib/components/Icon/streamline-icons/api.icon.d.ts +1 -1
  116. package/lib/components/Icon/streamline-icons/api.icon.d.ts.map +1 -1
  117. package/lib/components/Icon/streamline-icons/api.icon.js +2 -2
  118. package/lib/components/Icon/streamline-icons/api.icon.js.map +1 -1
  119. package/lib/components/Icon/streamline-icons/app.icon.d.ts +1 -1
  120. package/lib/components/Icon/streamline-icons/app.icon.d.ts.map +1 -1
  121. package/lib/components/Icon/streamline-icons/app.icon.js +2 -2
  122. package/lib/components/Icon/streamline-icons/app.icon.js.map +1 -1
  123. package/lib/components/Icon/streamline-icons/arrow-above-row-right.icon.d.ts +1 -1
  124. package/lib/components/Icon/streamline-icons/arrow-above-row-right.icon.d.ts.map +1 -1
  125. package/lib/components/Icon/streamline-icons/arrow-above-row-right.icon.js +2 -2
  126. package/lib/components/Icon/streamline-icons/arrow-above-row-right.icon.js.map +1 -1
  127. package/lib/components/Icon/streamline-icons/arrow-bend-left.icon.d.ts +1 -1
  128. package/lib/components/Icon/streamline-icons/arrow-bend-left.icon.d.ts.map +1 -1
  129. package/lib/components/Icon/streamline-icons/arrow-bend-left.icon.js +2 -2
  130. package/lib/components/Icon/streamline-icons/arrow-bend-left.icon.js.map +1 -1
  131. package/lib/components/Icon/streamline-icons/arrow-down.icon.d.ts +5 -0
  132. package/lib/components/Icon/streamline-icons/arrow-down.icon.d.ts.map +1 -0
  133. package/lib/components/Icon/streamline-icons/arrow-down.icon.js +7 -0
  134. package/lib/components/Icon/streamline-icons/arrow-down.icon.js.map +1 -0
  135. package/lib/components/Icon/streamline-icons/arrow-left-column.icon.d.ts +5 -0
  136. package/lib/components/Icon/streamline-icons/arrow-left-column.icon.d.ts.map +1 -0
  137. package/lib/components/Icon/streamline-icons/arrow-left-column.icon.js +7 -0
  138. package/lib/components/Icon/streamline-icons/arrow-left-column.icon.js.map +1 -0
  139. package/lib/components/Icon/streamline-icons/arrow-left.icon.d.ts +1 -1
  140. package/lib/components/Icon/streamline-icons/arrow-left.icon.d.ts.map +1 -1
  141. package/lib/components/Icon/streamline-icons/arrow-left.icon.js +2 -2
  142. package/lib/components/Icon/streamline-icons/arrow-left.icon.js.map +1 -1
  143. package/lib/components/Icon/streamline-icons/arrow-micro-down.icon.d.ts +5 -0
  144. package/lib/components/Icon/streamline-icons/arrow-micro-down.icon.d.ts.map +1 -0
  145. package/lib/components/Icon/streamline-icons/arrow-micro-down.icon.js +7 -0
  146. package/lib/components/Icon/streamline-icons/arrow-micro-down.icon.js.map +1 -0
  147. package/lib/components/Icon/streamline-icons/arrow-micro-left.icon.d.ts +5 -0
  148. package/lib/components/Icon/streamline-icons/arrow-micro-left.icon.d.ts.map +1 -0
  149. package/lib/components/Icon/streamline-icons/arrow-micro-left.icon.js +7 -0
  150. package/lib/components/Icon/streamline-icons/arrow-micro-left.icon.js.map +1 -0
  151. package/lib/components/Icon/streamline-icons/arrow-micro-right.icon.d.ts +5 -0
  152. package/lib/components/Icon/streamline-icons/arrow-micro-right.icon.d.ts.map +1 -0
  153. package/lib/components/Icon/streamline-icons/arrow-micro-right.icon.js +7 -0
  154. package/lib/components/Icon/streamline-icons/arrow-micro-right.icon.js.map +1 -0
  155. package/lib/components/Icon/streamline-icons/arrow-micro-up.icon.d.ts +5 -0
  156. package/lib/components/Icon/streamline-icons/arrow-micro-up.icon.d.ts.map +1 -0
  157. package/lib/components/Icon/streamline-icons/arrow-micro-up.icon.js +7 -0
  158. package/lib/components/Icon/streamline-icons/arrow-micro-up.icon.js.map +1 -0
  159. package/lib/components/Icon/streamline-icons/arrow-out.icon.d.ts +1 -1
  160. package/lib/components/Icon/streamline-icons/arrow-out.icon.d.ts.map +1 -1
  161. package/lib/components/Icon/streamline-icons/arrow-out.icon.js +2 -2
  162. package/lib/components/Icon/streamline-icons/arrow-out.icon.js.map +1 -1
  163. package/lib/components/Icon/streamline-icons/arrow-right-column.icon.d.ts +5 -0
  164. package/lib/components/Icon/streamline-icons/arrow-right-column.icon.d.ts.map +1 -0
  165. package/lib/components/Icon/streamline-icons/arrow-right-column.icon.js +7 -0
  166. package/lib/components/Icon/streamline-icons/arrow-right-column.icon.js.map +1 -0
  167. package/lib/components/Icon/streamline-icons/arrow-right.icon.d.ts +5 -0
  168. package/lib/components/Icon/streamline-icons/arrow-right.icon.d.ts.map +1 -0
  169. package/lib/components/Icon/streamline-icons/arrow-right.icon.js +7 -0
  170. package/lib/components/Icon/streamline-icons/arrow-right.icon.js.map +1 -0
  171. package/lib/components/Icon/streamline-icons/arrow-up-down.icon.d.ts +1 -1
  172. package/lib/components/Icon/streamline-icons/arrow-up-down.icon.d.ts.map +1 -1
  173. package/lib/components/Icon/streamline-icons/arrow-up-down.icon.js +2 -2
  174. package/lib/components/Icon/streamline-icons/arrow-up-down.icon.js.map +1 -1
  175. package/lib/components/Icon/streamline-icons/arrow-up.icon.d.ts +5 -0
  176. package/lib/components/Icon/streamline-icons/arrow-up.icon.d.ts.map +1 -0
  177. package/lib/components/Icon/streamline-icons/arrow-up.icon.js +7 -0
  178. package/lib/components/Icon/streamline-icons/arrow-up.icon.js.map +1 -0
  179. package/lib/components/Icon/streamline-icons/bank.icon.d.ts +1 -1
  180. package/lib/components/Icon/streamline-icons/bank.icon.d.ts.map +1 -1
  181. package/lib/components/Icon/streamline-icons/bank.icon.js +3 -3
  182. package/lib/components/Icon/streamline-icons/bank.icon.js.map +1 -1
  183. package/lib/components/Icon/streamline-icons/bars.icon.d.ts +1 -1
  184. package/lib/components/Icon/streamline-icons/bars.icon.d.ts.map +1 -1
  185. package/lib/components/Icon/streamline-icons/bars.icon.js +2 -2
  186. package/lib/components/Icon/streamline-icons/bars.icon.js.map +1 -1
  187. package/lib/components/Icon/streamline-icons/bell-push-notification.icon.d.ts +1 -1
  188. package/lib/components/Icon/streamline-icons/bell-push-notification.icon.d.ts.map +1 -1
  189. package/lib/components/Icon/streamline-icons/bell-push-notification.icon.js +3 -3
  190. package/lib/components/Icon/streamline-icons/bell-push-notification.icon.js.map +1 -1
  191. package/lib/components/Icon/streamline-icons/bell.icon.d.ts +1 -1
  192. package/lib/components/Icon/streamline-icons/bell.icon.d.ts.map +1 -1
  193. package/lib/components/Icon/streamline-icons/bell.icon.js +2 -2
  194. package/lib/components/Icon/streamline-icons/bell.icon.js.map +1 -1
  195. package/lib/components/Icon/streamline-icons/bluetooth.icon.d.ts +5 -0
  196. package/lib/components/Icon/streamline-icons/bluetooth.icon.d.ts.map +1 -0
  197. package/lib/components/Icon/streamline-icons/bluetooth.icon.js +7 -0
  198. package/lib/components/Icon/streamline-icons/bluetooth.icon.js.map +1 -0
  199. package/lib/components/Icon/streamline-icons/book-open.icon.d.ts +1 -1
  200. package/lib/components/Icon/streamline-icons/book-open.icon.d.ts.map +1 -1
  201. package/lib/components/Icon/streamline-icons/book-open.icon.js +2 -2
  202. package/lib/components/Icon/streamline-icons/book-open.icon.js.map +1 -1
  203. package/lib/components/Icon/streamline-icons/bookmark.icon.d.ts +5 -0
  204. package/lib/components/Icon/streamline-icons/bookmark.icon.d.ts.map +1 -0
  205. package/lib/components/Icon/streamline-icons/bookmark.icon.js +7 -0
  206. package/lib/components/Icon/streamline-icons/bookmark.icon.js.map +1 -0
  207. package/lib/components/Icon/streamline-icons/box-4.icon.d.ts +1 -1
  208. package/lib/components/Icon/streamline-icons/box-4.icon.d.ts.map +1 -1
  209. package/lib/components/Icon/streamline-icons/box-4.icon.js +3 -3
  210. package/lib/components/Icon/streamline-icons/box-4.icon.js.map +1 -1
  211. package/lib/components/Icon/streamline-icons/box.icon.d.ts +5 -0
  212. package/lib/components/Icon/streamline-icons/box.icon.d.ts.map +1 -0
  213. package/lib/components/Icon/streamline-icons/box.icon.js +7 -0
  214. package/lib/components/Icon/streamline-icons/box.icon.js.map +1 -0
  215. package/lib/components/Icon/streamline-icons/browser-code.icon.d.ts +1 -1
  216. package/lib/components/Icon/streamline-icons/browser-code.icon.d.ts.map +1 -1
  217. package/lib/components/Icon/streamline-icons/browser-code.icon.js +2 -2
  218. package/lib/components/Icon/streamline-icons/browser-code.icon.js.map +1 -1
  219. package/lib/components/Icon/streamline-icons/browser.icon.d.ts +1 -1
  220. package/lib/components/Icon/streamline-icons/browser.icon.d.ts.map +1 -1
  221. package/lib/components/Icon/streamline-icons/browser.icon.js +2 -2
  222. package/lib/components/Icon/streamline-icons/browser.icon.js.map +1 -1
  223. package/lib/components/Icon/streamline-icons/bug.icon.d.ts +1 -1
  224. package/lib/components/Icon/streamline-icons/bug.icon.d.ts.map +1 -1
  225. package/lib/components/Icon/streamline-icons/bug.icon.js +2 -2
  226. package/lib/components/Icon/streamline-icons/bug.icon.js.map +1 -1
  227. package/lib/components/Icon/streamline-icons/building-2.icon.d.ts +1 -1
  228. package/lib/components/Icon/streamline-icons/building-2.icon.d.ts.map +1 -1
  229. package/lib/components/Icon/streamline-icons/building-2.icon.js +2 -2
  230. package/lib/components/Icon/streamline-icons/building-2.icon.js.map +1 -1
  231. package/lib/components/Icon/streamline-icons/building-3.icon.d.ts +1 -1
  232. package/lib/components/Icon/streamline-icons/building-3.icon.js +3 -3
  233. package/lib/components/Icon/streamline-icons/building-3.icon.js.map +1 -1
  234. package/lib/components/Icon/streamline-icons/bulb.icon.d.ts +1 -1
  235. package/lib/components/Icon/streamline-icons/bulb.icon.d.ts.map +1 -1
  236. package/lib/components/Icon/streamline-icons/bulb.icon.js +2 -2
  237. package/lib/components/Icon/streamline-icons/bulb.icon.js.map +1 -1
  238. package/lib/components/Icon/streamline-icons/calendar-empty.icon.d.ts +1 -1
  239. package/lib/components/Icon/streamline-icons/calendar-empty.icon.d.ts.map +1 -1
  240. package/lib/components/Icon/streamline-icons/calendar-empty.icon.js +2 -2
  241. package/lib/components/Icon/streamline-icons/calendar-empty.icon.js.map +1 -1
  242. package/lib/components/Icon/streamline-icons/calendar-range.icon.d.ts +1 -1
  243. package/lib/components/Icon/streamline-icons/calendar-range.icon.d.ts.map +1 -1
  244. package/lib/components/Icon/streamline-icons/calendar-range.icon.js +2 -2
  245. package/lib/components/Icon/streamline-icons/calendar-range.icon.js.map +1 -1
  246. package/lib/components/Icon/streamline-icons/calendar.icon.d.ts +5 -0
  247. package/lib/components/Icon/streamline-icons/calendar.icon.d.ts.map +1 -0
  248. package/lib/components/Icon/streamline-icons/calendar.icon.js +7 -0
  249. package/lib/components/Icon/streamline-icons/calendar.icon.js.map +1 -0
  250. package/lib/components/Icon/streamline-icons/car.icon.d.ts +1 -1
  251. package/lib/components/Icon/streamline-icons/car.icon.d.ts.map +1 -1
  252. package/lib/components/Icon/streamline-icons/car.icon.js +2 -2
  253. package/lib/components/Icon/streamline-icons/car.icon.js.map +1 -1
  254. package/lib/components/Icon/streamline-icons/caret-down.icon.d.ts +1 -1
  255. package/lib/components/Icon/streamline-icons/caret-down.icon.d.ts.map +1 -1
  256. package/lib/components/Icon/streamline-icons/caret-down.icon.js +2 -2
  257. package/lib/components/Icon/streamline-icons/caret-down.icon.js.map +1 -1
  258. package/lib/components/Icon/streamline-icons/caret-left.icon.d.ts +1 -1
  259. package/lib/components/Icon/streamline-icons/caret-left.icon.d.ts.map +1 -1
  260. package/lib/components/Icon/streamline-icons/caret-left.icon.js +2 -2
  261. package/lib/components/Icon/streamline-icons/caret-left.icon.js.map +1 -1
  262. package/lib/components/Icon/streamline-icons/caret-right.icon.d.ts +1 -1
  263. package/lib/components/Icon/streamline-icons/caret-right.icon.d.ts.map +1 -1
  264. package/lib/components/Icon/streamline-icons/caret-right.icon.js +2 -2
  265. package/lib/components/Icon/streamline-icons/caret-right.icon.js.map +1 -1
  266. package/lib/components/Icon/streamline-icons/caret-up.icon.d.ts +5 -0
  267. package/lib/components/Icon/streamline-icons/caret-up.icon.d.ts.map +1 -0
  268. package/lib/components/Icon/streamline-icons/caret-up.icon.js +7 -0
  269. package/lib/components/Icon/streamline-icons/caret-up.icon.js.map +1 -0
  270. package/lib/components/Icon/streamline-icons/case-medical.icon.d.ts +1 -1
  271. package/lib/components/Icon/streamline-icons/case-medical.icon.d.ts.map +1 -1
  272. package/lib/components/Icon/streamline-icons/case-medical.icon.js +2 -2
  273. package/lib/components/Icon/streamline-icons/case-medical.icon.js.map +1 -1
  274. package/lib/components/Icon/streamline-icons/case-solid.icon.d.ts +1 -1
  275. package/lib/components/Icon/streamline-icons/case-solid.icon.js +3 -3
  276. package/lib/components/Icon/streamline-icons/case-solid.icon.js.map +1 -1
  277. package/lib/components/Icon/streamline-icons/case.icon.d.ts +1 -1
  278. package/lib/components/Icon/streamline-icons/case.icon.d.ts.map +1 -1
  279. package/lib/components/Icon/streamline-icons/case.icon.js +2 -2
  280. package/lib/components/Icon/streamline-icons/case.icon.js.map +1 -1
  281. package/lib/components/Icon/streamline-icons/chain.icon.d.ts +1 -1
  282. package/lib/components/Icon/streamline-icons/chain.icon.d.ts.map +1 -1
  283. package/lib/components/Icon/streamline-icons/chain.icon.js +2 -2
  284. package/lib/components/Icon/streamline-icons/chain.icon.js.map +1 -1
  285. package/lib/components/Icon/streamline-icons/chart-line.icon.d.ts +5 -0
  286. package/lib/components/Icon/streamline-icons/chart-line.icon.d.ts.map +1 -0
  287. package/lib/components/Icon/streamline-icons/chart-line.icon.js +7 -0
  288. package/lib/components/Icon/streamline-icons/chart-line.icon.js.map +1 -0
  289. package/lib/components/Icon/streamline-icons/chart-pie.icon.d.ts +5 -0
  290. package/lib/components/Icon/streamline-icons/chart-pie.icon.d.ts.map +1 -0
  291. package/lib/components/Icon/streamline-icons/chart-pie.icon.js +7 -0
  292. package/lib/components/Icon/streamline-icons/chart-pie.icon.js.map +1 -0
  293. package/lib/components/Icon/streamline-icons/chat-check.icon.d.ts +1 -1
  294. package/lib/components/Icon/streamline-icons/chat-check.icon.d.ts.map +1 -1
  295. package/lib/components/Icon/streamline-icons/chat-check.icon.js +2 -2
  296. package/lib/components/Icon/streamline-icons/chat-check.icon.js.map +1 -1
  297. package/lib/components/Icon/streamline-icons/chat-exclamation-mark.icon.d.ts +1 -1
  298. package/lib/components/Icon/streamline-icons/chat-exclamation-mark.icon.d.ts.map +1 -1
  299. package/lib/components/Icon/streamline-icons/chat-exclamation-mark.icon.js +2 -2
  300. package/lib/components/Icon/streamline-icons/chat-exclamation-mark.icon.js.map +1 -1
  301. package/lib/components/Icon/streamline-icons/chat-help.icon.d.ts +1 -1
  302. package/lib/components/Icon/streamline-icons/chat-help.icon.d.ts.map +1 -1
  303. package/lib/components/Icon/streamline-icons/chat-help.icon.js +2 -2
  304. package/lib/components/Icon/streamline-icons/chat-help.icon.js.map +1 -1
  305. package/lib/components/Icon/streamline-icons/chat-quote.icon.d.ts +1 -1
  306. package/lib/components/Icon/streamline-icons/chat-quote.icon.d.ts.map +1 -1
  307. package/lib/components/Icon/streamline-icons/chat-quote.icon.js +2 -2
  308. package/lib/components/Icon/streamline-icons/chat-quote.icon.js.map +1 -1
  309. package/lib/components/Icon/streamline-icons/chat-transfer.icon.d.ts +5 -0
  310. package/lib/components/Icon/streamline-icons/chat-transfer.icon.d.ts.map +1 -0
  311. package/lib/components/Icon/streamline-icons/chat-transfer.icon.js +7 -0
  312. package/lib/components/Icon/streamline-icons/chat-transfer.icon.js.map +1 -0
  313. package/lib/components/Icon/streamline-icons/chat-typing.icon.d.ts +1 -1
  314. package/lib/components/Icon/streamline-icons/chat-typing.icon.d.ts.map +1 -1
  315. package/lib/components/Icon/streamline-icons/chat-typing.icon.js +2 -2
  316. package/lib/components/Icon/streamline-icons/chat-typing.icon.js.map +1 -1
  317. package/lib/components/Icon/streamline-icons/chat-unavailable.icon.d.ts +1 -1
  318. package/lib/components/Icon/streamline-icons/chat-unavailable.icon.d.ts.map +1 -1
  319. package/lib/components/Icon/streamline-icons/chat-unavailable.icon.js +2 -2
  320. package/lib/components/Icon/streamline-icons/chat-unavailable.icon.js.map +1 -1
  321. package/lib/components/Icon/streamline-icons/chat.icon.d.ts +1 -1
  322. package/lib/components/Icon/streamline-icons/chat.icon.d.ts.map +1 -1
  323. package/lib/components/Icon/streamline-icons/chat.icon.js +2 -2
  324. package/lib/components/Icon/streamline-icons/chat.icon.js.map +1 -1
  325. package/lib/components/Icon/streamline-icons/chats.icon.d.ts +1 -1
  326. package/lib/components/Icon/streamline-icons/chats.icon.d.ts.map +1 -1
  327. package/lib/components/Icon/streamline-icons/chats.icon.js +2 -2
  328. package/lib/components/Icon/streamline-icons/chats.icon.js.map +1 -1
  329. package/lib/components/Icon/streamline-icons/check-badge.icon.d.ts +1 -1
  330. package/lib/components/Icon/streamline-icons/check-badge.icon.d.ts.map +1 -1
  331. package/lib/components/Icon/streamline-icons/check-badge.icon.js +2 -2
  332. package/lib/components/Icon/streamline-icons/check-badge.icon.js.map +1 -1
  333. package/lib/components/Icon/streamline-icons/check.icon.d.ts +1 -1
  334. package/lib/components/Icon/streamline-icons/check.icon.d.ts.map +1 -1
  335. package/lib/components/Icon/streamline-icons/check.icon.js +2 -2
  336. package/lib/components/Icon/streamline-icons/check.icon.js.map +1 -1
  337. package/lib/components/Icon/streamline-icons/chevron-solid.icon.d.ts +1 -1
  338. package/lib/components/Icon/streamline-icons/chevron-solid.icon.js +2 -2
  339. package/lib/components/Icon/streamline-icons/chevron-solid.icon.js.map +1 -1
  340. package/lib/components/Icon/streamline-icons/chevron.icon.d.ts +1 -1
  341. package/lib/components/Icon/streamline-icons/chevron.icon.d.ts.map +1 -1
  342. package/lib/components/Icon/streamline-icons/chevron.icon.js +2 -2
  343. package/lib/components/Icon/streamline-icons/chevron.icon.js.map +1 -1
  344. package/lib/components/Icon/streamline-icons/circle-mixed-left.icon.d.ts +1 -1
  345. package/lib/components/Icon/streamline-icons/circle-mixed-left.icon.d.ts.map +1 -1
  346. package/lib/components/Icon/streamline-icons/circle-mixed-left.icon.js +2 -2
  347. package/lib/components/Icon/streamline-icons/circle-mixed-left.icon.js.map +1 -1
  348. package/lib/components/Icon/streamline-icons/circle.icon.d.ts +1 -1
  349. package/lib/components/Icon/streamline-icons/circle.icon.d.ts.map +1 -1
  350. package/lib/components/Icon/streamline-icons/circle.icon.js +2 -2
  351. package/lib/components/Icon/streamline-icons/circle.icon.js.map +1 -1
  352. package/lib/components/Icon/streamline-icons/clipboard-check.icon.d.ts +1 -1
  353. package/lib/components/Icon/streamline-icons/clipboard-check.icon.d.ts.map +1 -1
  354. package/lib/components/Icon/streamline-icons/clipboard-check.icon.js +2 -2
  355. package/lib/components/Icon/streamline-icons/clipboard-check.icon.js.map +1 -1
  356. package/lib/components/Icon/streamline-icons/clipboard-medical.icon.d.ts +1 -1
  357. package/lib/components/Icon/streamline-icons/clipboard-medical.icon.d.ts.map +1 -1
  358. package/lib/components/Icon/streamline-icons/clipboard-medical.icon.js +2 -2
  359. package/lib/components/Icon/streamline-icons/clipboard-medical.icon.js.map +1 -1
  360. package/lib/components/Icon/streamline-icons/clipboard-pencil-solid.icon.d.ts +1 -1
  361. package/lib/components/Icon/streamline-icons/clipboard-pencil-solid.icon.d.ts.map +1 -1
  362. package/lib/components/Icon/streamline-icons/clipboard-pencil-solid.icon.js +3 -3
  363. package/lib/components/Icon/streamline-icons/clipboard-pencil-solid.icon.js.map +1 -1
  364. package/lib/components/Icon/streamline-icons/clipboard-pencil.icon.d.ts +1 -1
  365. package/lib/components/Icon/streamline-icons/clipboard-pencil.icon.d.ts.map +1 -1
  366. package/lib/components/Icon/streamline-icons/clipboard-pencil.icon.js +2 -2
  367. package/lib/components/Icon/streamline-icons/clipboard-pencil.icon.js.map +1 -1
  368. package/lib/components/Icon/streamline-icons/clipboard-plus.icon.d.ts +1 -1
  369. package/lib/components/Icon/streamline-icons/clipboard-plus.icon.d.ts.map +1 -1
  370. package/lib/components/Icon/streamline-icons/clipboard-plus.icon.js +2 -2
  371. package/lib/components/Icon/streamline-icons/clipboard-plus.icon.js.map +1 -1
  372. package/lib/components/Icon/streamline-icons/clipboard.icon.d.ts +1 -1
  373. package/lib/components/Icon/streamline-icons/clipboard.icon.d.ts.map +1 -1
  374. package/lib/components/Icon/streamline-icons/clipboard.icon.js +2 -2
  375. package/lib/components/Icon/streamline-icons/clipboard.icon.js.map +1 -1
  376. package/lib/components/Icon/streamline-icons/clock-solid.icon.d.ts +5 -0
  377. package/lib/components/Icon/streamline-icons/clock-solid.icon.d.ts.map +1 -0
  378. package/lib/components/Icon/streamline-icons/clock-solid.icon.js +7 -0
  379. package/lib/components/Icon/streamline-icons/clock-solid.icon.js.map +1 -0
  380. package/lib/components/Icon/streamline-icons/clock.icon.d.ts +1 -1
  381. package/lib/components/Icon/streamline-icons/clock.icon.d.ts.map +1 -1
  382. package/lib/components/Icon/streamline-icons/clock.icon.js +2 -2
  383. package/lib/components/Icon/streamline-icons/clock.icon.js.map +1 -1
  384. package/lib/components/Icon/streamline-icons/cloud.icon.d.ts +1 -1
  385. package/lib/components/Icon/streamline-icons/cloud.icon.d.ts.map +1 -1
  386. package/lib/components/Icon/streamline-icons/cloud.icon.js +2 -2
  387. package/lib/components/Icon/streamline-icons/cloud.icon.js.map +1 -1
  388. package/lib/components/Icon/streamline-icons/code-search.icon.d.ts +1 -1
  389. package/lib/components/Icon/streamline-icons/code-search.icon.d.ts.map +1 -1
  390. package/lib/components/Icon/streamline-icons/code-search.icon.js +2 -2
  391. package/lib/components/Icon/streamline-icons/code-search.icon.js.map +1 -1
  392. package/lib/components/Icon/streamline-icons/code.icon.d.ts +1 -1
  393. package/lib/components/Icon/streamline-icons/code.icon.d.ts.map +1 -1
  394. package/lib/components/Icon/streamline-icons/code.icon.js +2 -2
  395. package/lib/components/Icon/streamline-icons/code.icon.js.map +1 -1
  396. package/lib/components/Icon/streamline-icons/column-delete.icon.d.ts +5 -0
  397. package/lib/components/Icon/streamline-icons/column-delete.icon.d.ts.map +1 -0
  398. package/lib/components/Icon/streamline-icons/column-delete.icon.js +7 -0
  399. package/lib/components/Icon/streamline-icons/column-delete.icon.js.map +1 -0
  400. package/lib/components/Icon/streamline-icons/conversation.icon.d.ts +1 -1
  401. package/lib/components/Icon/streamline-icons/conversation.icon.d.ts.map +1 -1
  402. package/lib/components/Icon/streamline-icons/conversation.icon.js +2 -2
  403. package/lib/components/Icon/streamline-icons/conversation.icon.js.map +1 -1
  404. package/lib/components/Icon/streamline-icons/copy.icon.d.ts +1 -1
  405. package/lib/components/Icon/streamline-icons/copy.icon.d.ts.map +1 -1
  406. package/lib/components/Icon/streamline-icons/copy.icon.js +2 -2
  407. package/lib/components/Icon/streamline-icons/copy.icon.js.map +1 -1
  408. package/lib/components/Icon/streamline-icons/credit.icon.d.ts +1 -1
  409. package/lib/components/Icon/streamline-icons/credit.icon.d.ts.map +1 -1
  410. package/lib/components/Icon/streamline-icons/credit.icon.js +3 -3
  411. package/lib/components/Icon/streamline-icons/credit.icon.js.map +1 -1
  412. package/lib/components/Icon/streamline-icons/csr-agent.icon.d.ts +1 -1
  413. package/lib/components/Icon/streamline-icons/csr-agent.icon.d.ts.map +1 -1
  414. package/lib/components/Icon/streamline-icons/csr-agent.icon.js +2 -2
  415. package/lib/components/Icon/streamline-icons/csr-agent.icon.js.map +1 -1
  416. package/lib/components/Icon/streamline-icons/currency.icon.d.ts +1 -1
  417. package/lib/components/Icon/streamline-icons/currency.icon.d.ts.map +1 -1
  418. package/lib/components/Icon/streamline-icons/currency.icon.js +2 -2
  419. package/lib/components/Icon/streamline-icons/currency.icon.js.map +1 -1
  420. package/lib/components/Icon/streamline-icons/custom-column.icon.d.ts +5 -0
  421. package/lib/components/Icon/streamline-icons/custom-column.icon.d.ts.map +1 -0
  422. package/lib/components/Icon/streamline-icons/custom-column.icon.js +7 -0
  423. package/lib/components/Icon/streamline-icons/custom-column.icon.js.map +1 -0
  424. package/lib/components/Icon/streamline-icons/database-search.icon.d.ts +5 -0
  425. package/lib/components/Icon/streamline-icons/database-search.icon.d.ts.map +1 -0
  426. package/lib/components/Icon/streamline-icons/database-search.icon.js +7 -0
  427. package/lib/components/Icon/streamline-icons/database-search.icon.js.map +1 -0
  428. package/lib/components/Icon/streamline-icons/dataviz-area-multi.icon.d.ts +1 -1
  429. package/lib/components/Icon/streamline-icons/dataviz-area-multi.icon.d.ts.map +1 -1
  430. package/lib/components/Icon/streamline-icons/dataviz-area-multi.icon.js +3 -3
  431. package/lib/components/Icon/streamline-icons/dataviz-area-multi.icon.js.map +1 -1
  432. package/lib/components/Icon/streamline-icons/dataviz-area-stacked.icon.d.ts +1 -1
  433. package/lib/components/Icon/streamline-icons/dataviz-area-stacked.icon.d.ts.map +1 -1
  434. package/lib/components/Icon/streamline-icons/dataviz-area-stacked.icon.js +3 -3
  435. package/lib/components/Icon/streamline-icons/dataviz-area-stacked.icon.js.map +1 -1
  436. package/lib/components/Icon/streamline-icons/dataviz-area.icon.d.ts +1 -1
  437. package/lib/components/Icon/streamline-icons/dataviz-area.icon.d.ts.map +1 -1
  438. package/lib/components/Icon/streamline-icons/dataviz-area.icon.js +3 -3
  439. package/lib/components/Icon/streamline-icons/dataviz-area.icon.js.map +1 -1
  440. package/lib/components/Icon/streamline-icons/dataviz-bar-clustered.icon.d.ts +1 -1
  441. package/lib/components/Icon/streamline-icons/dataviz-bar-clustered.icon.d.ts.map +1 -1
  442. package/lib/components/Icon/streamline-icons/dataviz-bar-clustered.icon.js +2 -2
  443. package/lib/components/Icon/streamline-icons/dataviz-bar-clustered.icon.js.map +1 -1
  444. package/lib/components/Icon/streamline-icons/dataviz-bar-stacked.icon.d.ts +1 -1
  445. package/lib/components/Icon/streamline-icons/dataviz-bar-stacked.icon.d.ts.map +1 -1
  446. package/lib/components/Icon/streamline-icons/dataviz-bar-stacked.icon.js +2 -2
  447. package/lib/components/Icon/streamline-icons/dataviz-bar-stacked.icon.js.map +1 -1
  448. package/lib/components/Icon/streamline-icons/dataviz-bar.icon.d.ts +1 -1
  449. package/lib/components/Icon/streamline-icons/dataviz-bar.icon.d.ts.map +1 -1
  450. package/lib/components/Icon/streamline-icons/dataviz-bar.icon.js +2 -2
  451. package/lib/components/Icon/streamline-icons/dataviz-bar.icon.js.map +1 -1
  452. package/lib/components/Icon/streamline-icons/dataviz-bell-curve.icon.d.ts +5 -0
  453. package/lib/components/Icon/streamline-icons/dataviz-bell-curve.icon.d.ts.map +1 -0
  454. package/lib/components/Icon/streamline-icons/dataviz-bell-curve.icon.js +7 -0
  455. package/lib/components/Icon/streamline-icons/dataviz-bell-curve.icon.js.map +1 -0
  456. package/lib/components/Icon/streamline-icons/dataviz-bubble.icon.d.ts +1 -1
  457. package/lib/components/Icon/streamline-icons/dataviz-bubble.icon.d.ts.map +1 -1
  458. package/lib/components/Icon/streamline-icons/dataviz-bubble.icon.js +2 -2
  459. package/lib/components/Icon/streamline-icons/dataviz-bubble.icon.js.map +1 -1
  460. package/lib/components/Icon/streamline-icons/dataviz-column-clustered.icon.d.ts +1 -1
  461. package/lib/components/Icon/streamline-icons/dataviz-column-clustered.icon.d.ts.map +1 -1
  462. package/lib/components/Icon/streamline-icons/dataviz-column-clustered.icon.js +2 -2
  463. package/lib/components/Icon/streamline-icons/dataviz-column-clustered.icon.js.map +1 -1
  464. package/lib/components/Icon/streamline-icons/dataviz-column-stacked.icon.d.ts +1 -1
  465. package/lib/components/Icon/streamline-icons/dataviz-column-stacked.icon.d.ts.map +1 -1
  466. package/lib/components/Icon/streamline-icons/dataviz-column-stacked.icon.js +2 -2
  467. package/lib/components/Icon/streamline-icons/dataviz-column-stacked.icon.js.map +1 -1
  468. package/lib/components/Icon/streamline-icons/dataviz-column.icon.d.ts +1 -1
  469. package/lib/components/Icon/streamline-icons/dataviz-column.icon.d.ts.map +1 -1
  470. package/lib/components/Icon/streamline-icons/dataviz-column.icon.js +2 -2
  471. package/lib/components/Icon/streamline-icons/dataviz-column.icon.js.map +1 -1
  472. package/lib/components/Icon/streamline-icons/dataviz-combo.icon.d.ts +1 -1
  473. package/lib/components/Icon/streamline-icons/dataviz-combo.icon.d.ts.map +1 -1
  474. package/lib/components/Icon/streamline-icons/dataviz-combo.icon.js +3 -3
  475. package/lib/components/Icon/streamline-icons/dataviz-combo.icon.js.map +1 -1
  476. package/lib/components/Icon/streamline-icons/dataviz-datetime-field.icon.d.ts +1 -1
  477. package/lib/components/Icon/streamline-icons/dataviz-datetime-field.icon.d.ts.map +1 -1
  478. package/lib/components/Icon/streamline-icons/dataviz-datetime-field.icon.js +2 -2
  479. package/lib/components/Icon/streamline-icons/dataviz-datetime-field.icon.js.map +1 -1
  480. package/lib/components/Icon/streamline-icons/dataviz-donut.icon.d.ts +1 -1
  481. package/lib/components/Icon/streamline-icons/dataviz-donut.icon.d.ts.map +1 -1
  482. package/lib/components/Icon/streamline-icons/dataviz-donut.icon.js +2 -2
  483. package/lib/components/Icon/streamline-icons/dataviz-donut.icon.js.map +1 -1
  484. package/lib/components/Icon/streamline-icons/dataviz-flip-counter.icon.d.ts +5 -0
  485. package/lib/components/Icon/streamline-icons/dataviz-flip-counter.icon.d.ts.map +1 -0
  486. package/lib/components/Icon/streamline-icons/dataviz-flip-counter.icon.js +7 -0
  487. package/lib/components/Icon/streamline-icons/dataviz-flip-counter.icon.js.map +1 -0
  488. package/lib/components/Icon/streamline-icons/dataviz-forecast.icon.d.ts +1 -1
  489. package/lib/components/Icon/streamline-icons/dataviz-forecast.icon.d.ts.map +1 -1
  490. package/lib/components/Icon/streamline-icons/dataviz-forecast.icon.js +2 -2
  491. package/lib/components/Icon/streamline-icons/dataviz-forecast.icon.js.map +1 -1
  492. package/lib/components/Icon/streamline-icons/dataviz-funnel.icon.d.ts +1 -1
  493. package/lib/components/Icon/streamline-icons/dataviz-funnel.icon.d.ts.map +1 -1
  494. package/lib/components/Icon/streamline-icons/dataviz-funnel.icon.js +3 -3
  495. package/lib/components/Icon/streamline-icons/dataviz-funnel.icon.js.map +1 -1
  496. package/lib/components/Icon/streamline-icons/dataviz-gauge-linear.icon.d.ts +1 -1
  497. package/lib/components/Icon/streamline-icons/dataviz-gauge-linear.icon.d.ts.map +1 -1
  498. package/lib/components/Icon/streamline-icons/dataviz-gauge-linear.icon.js +2 -2
  499. package/lib/components/Icon/streamline-icons/dataviz-gauge-linear.icon.js.map +1 -1
  500. package/lib/components/Icon/streamline-icons/dataviz-gauge-progress.icon.d.ts +5 -0
  501. package/lib/components/Icon/streamline-icons/dataviz-gauge-progress.icon.d.ts.map +1 -0
  502. package/lib/components/Icon/streamline-icons/dataviz-gauge-progress.icon.js +7 -0
  503. package/lib/components/Icon/streamline-icons/dataviz-gauge-progress.icon.js.map +1 -0
  504. package/lib/components/Icon/streamline-icons/dataviz-gauge.icon.d.ts +1 -1
  505. package/lib/components/Icon/streamline-icons/dataviz-gauge.icon.d.ts.map +1 -1
  506. package/lib/components/Icon/streamline-icons/dataviz-gauge.icon.js +2 -2
  507. package/lib/components/Icon/streamline-icons/dataviz-gauge.icon.js.map +1 -1
  508. package/lib/components/Icon/streamline-icons/dataviz-geo-choropleth.icon.d.ts +1 -1
  509. package/lib/components/Icon/streamline-icons/dataviz-geo-choropleth.icon.d.ts.map +1 -1
  510. package/lib/components/Icon/streamline-icons/dataviz-geo-choropleth.icon.js +2 -2
  511. package/lib/components/Icon/streamline-icons/dataviz-geo-choropleth.icon.js.map +1 -1
  512. package/lib/components/Icon/streamline-icons/dataviz-heatmap.icon.d.ts +1 -1
  513. package/lib/components/Icon/streamline-icons/dataviz-heatmap.icon.d.ts.map +1 -1
  514. package/lib/components/Icon/streamline-icons/dataviz-heatmap.icon.js +2 -2
  515. package/lib/components/Icon/streamline-icons/dataviz-heatmap.icon.js.map +1 -1
  516. package/lib/components/Icon/streamline-icons/dataviz-histogram.icon.d.ts +5 -0
  517. package/lib/components/Icon/streamline-icons/dataviz-histogram.icon.d.ts.map +1 -0
  518. package/lib/components/Icon/streamline-icons/dataviz-histogram.icon.js +7 -0
  519. package/lib/components/Icon/streamline-icons/dataviz-histogram.icon.js.map +1 -0
  520. package/lib/components/Icon/streamline-icons/dataviz-line-horizontal.icon.d.ts +5 -0
  521. package/lib/components/Icon/streamline-icons/dataviz-line-horizontal.icon.d.ts.map +1 -0
  522. package/lib/components/Icon/streamline-icons/dataviz-line-horizontal.icon.js +7 -0
  523. package/lib/components/Icon/streamline-icons/dataviz-line-horizontal.icon.js.map +1 -0
  524. package/lib/components/Icon/streamline-icons/dataviz-line-multi.icon.d.ts +1 -1
  525. package/lib/components/Icon/streamline-icons/dataviz-line-multi.icon.d.ts.map +1 -1
  526. package/lib/components/Icon/streamline-icons/dataviz-line-multi.icon.js +2 -2
  527. package/lib/components/Icon/streamline-icons/dataviz-line-multi.icon.js.map +1 -1
  528. package/lib/components/Icon/streamline-icons/dataviz-line-stepped.icon.d.ts +5 -0
  529. package/lib/components/Icon/streamline-icons/dataviz-line-stepped.icon.d.ts.map +1 -0
  530. package/lib/components/Icon/streamline-icons/dataviz-line-stepped.icon.js +7 -0
  531. package/lib/components/Icon/streamline-icons/dataviz-line-stepped.icon.js.map +1 -0
  532. package/lib/components/Icon/streamline-icons/dataviz-line.icon.d.ts +1 -1
  533. package/lib/components/Icon/streamline-icons/dataviz-line.icon.d.ts.map +1 -1
  534. package/lib/components/Icon/streamline-icons/dataviz-line.icon.js +2 -2
  535. package/lib/components/Icon/streamline-icons/dataviz-line.icon.js.map +1 -1
  536. package/lib/components/Icon/streamline-icons/dataviz-numeric-field.icon.d.ts +5 -0
  537. package/lib/components/Icon/streamline-icons/dataviz-numeric-field.icon.d.ts.map +1 -0
  538. package/lib/components/Icon/streamline-icons/dataviz-numeric-field.icon.js +7 -0
  539. package/lib/components/Icon/streamline-icons/dataviz-numeric-field.icon.js.map +1 -0
  540. package/lib/components/Icon/streamline-icons/dataviz-pareto.icon.d.ts +1 -1
  541. package/lib/components/Icon/streamline-icons/dataviz-pareto.icon.d.ts.map +1 -1
  542. package/lib/components/Icon/streamline-icons/dataviz-pareto.icon.js +2 -2
  543. package/lib/components/Icon/streamline-icons/dataviz-pareto.icon.js.map +1 -1
  544. package/lib/components/Icon/streamline-icons/dataviz-pie.icon.d.ts +1 -1
  545. package/lib/components/Icon/streamline-icons/dataviz-pie.icon.d.ts.map +1 -1
  546. package/lib/components/Icon/streamline-icons/dataviz-pie.icon.js +2 -2
  547. package/lib/components/Icon/streamline-icons/dataviz-pie.icon.js.map +1 -1
  548. package/lib/components/Icon/streamline-icons/dataviz-pivot-table.icon.d.ts +1 -1
  549. package/lib/components/Icon/streamline-icons/dataviz-pivot-table.icon.d.ts.map +1 -1
  550. package/lib/components/Icon/streamline-icons/dataviz-pivot-table.icon.js +2 -2
  551. package/lib/components/Icon/streamline-icons/dataviz-pivot-table.icon.js.map +1 -1
  552. package/lib/components/Icon/streamline-icons/dataviz-radar.icon.d.ts +1 -1
  553. package/lib/components/Icon/streamline-icons/dataviz-radar.icon.d.ts.map +1 -1
  554. package/lib/components/Icon/streamline-icons/dataviz-radar.icon.js +2 -2
  555. package/lib/components/Icon/streamline-icons/dataviz-radar.icon.js.map +1 -1
  556. package/lib/components/Icon/streamline-icons/dataviz-scatter.icon.d.ts +1 -1
  557. package/lib/components/Icon/streamline-icons/dataviz-scatter.icon.d.ts.map +1 -1
  558. package/lib/components/Icon/streamline-icons/dataviz-scatter.icon.js +2 -2
  559. package/lib/components/Icon/streamline-icons/dataviz-scatter.icon.js.map +1 -1
  560. package/lib/components/Icon/streamline-icons/dataviz-spark.icon.d.ts +5 -0
  561. package/lib/components/Icon/streamline-icons/dataviz-spark.icon.d.ts.map +1 -0
  562. package/lib/components/Icon/streamline-icons/dataviz-spark.icon.js +7 -0
  563. package/lib/components/Icon/streamline-icons/dataviz-spark.icon.js.map +1 -0
  564. package/lib/components/Icon/streamline-icons/dataviz-sparklines-area.icon.d.ts +5 -0
  565. package/lib/components/Icon/streamline-icons/dataviz-sparklines-area.icon.d.ts.map +1 -0
  566. package/lib/components/Icon/streamline-icons/dataviz-sparklines-area.icon.js +7 -0
  567. package/lib/components/Icon/streamline-icons/dataviz-sparklines-area.icon.js.map +1 -0
  568. package/lib/components/Icon/streamline-icons/dataviz-sparklines-columns.icon.d.ts +5 -0
  569. package/lib/components/Icon/streamline-icons/dataviz-sparklines-columns.icon.d.ts.map +1 -0
  570. package/lib/components/Icon/streamline-icons/dataviz-sparklines-columns.icon.js +7 -0
  571. package/lib/components/Icon/streamline-icons/dataviz-sparklines-columns.icon.js.map +1 -0
  572. package/lib/components/Icon/streamline-icons/dataviz-sparklines-line.icon.d.ts +1 -1
  573. package/lib/components/Icon/streamline-icons/dataviz-sparklines-line.icon.d.ts.map +1 -1
  574. package/lib/components/Icon/streamline-icons/dataviz-sparklines-line.icon.js +2 -2
  575. package/lib/components/Icon/streamline-icons/dataviz-sparklines-line.icon.js.map +1 -1
  576. package/lib/components/Icon/streamline-icons/dataviz-sparklines-pies.icon.d.ts +5 -0
  577. package/lib/components/Icon/streamline-icons/dataviz-sparklines-pies.icon.d.ts.map +1 -0
  578. package/lib/components/Icon/streamline-icons/dataviz-sparklines-pies.icon.js +7 -0
  579. package/lib/components/Icon/streamline-icons/dataviz-sparklines-pies.icon.js.map +1 -0
  580. package/lib/components/Icon/streamline-icons/dataviz-spline.icon.d.ts +5 -0
  581. package/lib/components/Icon/streamline-icons/dataviz-spline.icon.d.ts.map +1 -0
  582. package/lib/components/Icon/streamline-icons/dataviz-spline.icon.js +7 -0
  583. package/lib/components/Icon/streamline-icons/dataviz-spline.icon.js.map +1 -0
  584. package/lib/components/Icon/streamline-icons/dataviz-string-field.icon.d.ts +1 -1
  585. package/lib/components/Icon/streamline-icons/dataviz-string-field.icon.d.ts.map +1 -1
  586. package/lib/components/Icon/streamline-icons/dataviz-string-field.icon.js +2 -2
  587. package/lib/components/Icon/streamline-icons/dataviz-string-field.icon.js.map +1 -1
  588. package/lib/components/Icon/streamline-icons/dataviz-table-with-bars.icon.d.ts +1 -1
  589. package/lib/components/Icon/streamline-icons/dataviz-table-with-bars.icon.d.ts.map +1 -1
  590. package/lib/components/Icon/streamline-icons/dataviz-table-with-bars.icon.js +2 -2
  591. package/lib/components/Icon/streamline-icons/dataviz-table-with-bars.icon.js.map +1 -1
  592. package/lib/components/Icon/streamline-icons/dataviz-trend-down.icon.d.ts +1 -1
  593. package/lib/components/Icon/streamline-icons/dataviz-trend-down.icon.d.ts.map +1 -1
  594. package/lib/components/Icon/streamline-icons/dataviz-trend-down.icon.js +2 -2
  595. package/lib/components/Icon/streamline-icons/dataviz-trend-down.icon.js.map +1 -1
  596. package/lib/components/Icon/streamline-icons/dataviz-trend-up.icon.d.ts +1 -1
  597. package/lib/components/Icon/streamline-icons/dataviz-trend-up.icon.d.ts.map +1 -1
  598. package/lib/components/Icon/streamline-icons/dataviz-trend-up.icon.js +2 -2
  599. package/lib/components/Icon/streamline-icons/dataviz-trend-up.icon.js.map +1 -1
  600. package/lib/components/Icon/streamline-icons/dataviz-waterfall.icon.d.ts +1 -1
  601. package/lib/components/Icon/streamline-icons/dataviz-waterfall.icon.js +2 -2
  602. package/lib/components/Icon/streamline-icons/dataviz-waterfall.icon.js.map +1 -1
  603. package/lib/components/Icon/streamline-icons/desktop.icon.d.ts +1 -1
  604. package/lib/components/Icon/streamline-icons/desktop.icon.d.ts.map +1 -1
  605. package/lib/components/Icon/streamline-icons/desktop.icon.js +2 -2
  606. package/lib/components/Icon/streamline-icons/desktop.icon.js.map +1 -1
  607. package/lib/components/Icon/streamline-icons/diamond.icon.d.ts +1 -1
  608. package/lib/components/Icon/streamline-icons/diamond.icon.d.ts.map +1 -1
  609. package/lib/components/Icon/streamline-icons/diamond.icon.js +2 -2
  610. package/lib/components/Icon/streamline-icons/diamond.icon.js.map +1 -1
  611. package/lib/components/Icon/streamline-icons/disc-stack-solid.icon.d.ts +1 -1
  612. package/lib/components/Icon/streamline-icons/disc-stack-solid.icon.js +2 -2
  613. package/lib/components/Icon/streamline-icons/disc-stack-solid.icon.js.map +1 -1
  614. package/lib/components/Icon/streamline-icons/disc-stack.icon.d.ts +1 -1
  615. package/lib/components/Icon/streamline-icons/disc-stack.icon.d.ts.map +1 -1
  616. package/lib/components/Icon/streamline-icons/disc-stack.icon.js +2 -2
  617. package/lib/components/Icon/streamline-icons/disc-stack.icon.js.map +1 -1
  618. package/lib/components/Icon/streamline-icons/doctor-female.icon.d.ts +5 -0
  619. package/lib/components/Icon/streamline-icons/doctor-female.icon.d.ts.map +1 -0
  620. package/lib/components/Icon/streamline-icons/doctor-female.icon.js +7 -0
  621. package/lib/components/Icon/streamline-icons/doctor-female.icon.js.map +1 -0
  622. package/lib/components/Icon/streamline-icons/doctor-male.icon.d.ts +1 -1
  623. package/lib/components/Icon/streamline-icons/doctor-male.icon.d.ts.map +1 -1
  624. package/lib/components/Icon/streamline-icons/doctor-male.icon.js +2 -2
  625. package/lib/components/Icon/streamline-icons/doctor-male.icon.js.map +1 -1
  626. package/lib/components/Icon/streamline-icons/document-pdf.icon.d.ts +1 -1
  627. package/lib/components/Icon/streamline-icons/document-pdf.icon.d.ts.map +1 -1
  628. package/lib/components/Icon/streamline-icons/document-pdf.icon.js +2 -2
  629. package/lib/components/Icon/streamline-icons/document-pdf.icon.js.map +1 -1
  630. package/lib/components/Icon/streamline-icons/document.icon.d.ts +1 -1
  631. package/lib/components/Icon/streamline-icons/document.icon.d.ts.map +1 -1
  632. package/lib/components/Icon/streamline-icons/document.icon.js +2 -2
  633. package/lib/components/Icon/streamline-icons/document.icon.js.map +1 -1
  634. package/lib/components/Icon/streamline-icons/docusign.icon.d.ts +5 -0
  635. package/lib/components/Icon/streamline-icons/docusign.icon.d.ts.map +1 -0
  636. package/lib/components/Icon/streamline-icons/docusign.icon.js +7 -0
  637. package/lib/components/Icon/streamline-icons/docusign.icon.js.map +1 -0
  638. package/lib/components/Icon/streamline-icons/dot-9-solid.icon.d.ts +1 -1
  639. package/lib/components/Icon/streamline-icons/dot-9-solid.icon.js +2 -2
  640. package/lib/components/Icon/streamline-icons/dot-9-solid.icon.js.map +1 -1
  641. package/lib/components/Icon/streamline-icons/download.icon.d.ts +1 -1
  642. package/lib/components/Icon/streamline-icons/download.icon.d.ts.map +1 -1
  643. package/lib/components/Icon/streamline-icons/download.icon.js +2 -2
  644. package/lib/components/Icon/streamline-icons/download.icon.js.map +1 -1
  645. package/lib/components/Icon/streamline-icons/drag.icon.d.ts +1 -1
  646. package/lib/components/Icon/streamline-icons/drag.icon.js +2 -2
  647. package/lib/components/Icon/streamline-icons/drag.icon.js.map +1 -1
  648. package/lib/components/Icon/streamline-icons/email-open.icon.d.ts +1 -1
  649. package/lib/components/Icon/streamline-icons/email-open.icon.d.ts.map +1 -1
  650. package/lib/components/Icon/streamline-icons/email-open.icon.js +2 -2
  651. package/lib/components/Icon/streamline-icons/email-open.icon.js.map +1 -1
  652. package/lib/components/Icon/streamline-icons/exchange.icon.d.ts +1 -1
  653. package/lib/components/Icon/streamline-icons/exchange.icon.d.ts.map +1 -1
  654. package/lib/components/Icon/streamline-icons/exchange.icon.js +2 -2
  655. package/lib/components/Icon/streamline-icons/exchange.icon.js.map +1 -1
  656. package/lib/components/Icon/streamline-icons/eye-off.icon.d.ts +1 -1
  657. package/lib/components/Icon/streamline-icons/eye-off.icon.d.ts.map +1 -1
  658. package/lib/components/Icon/streamline-icons/eye-off.icon.js +2 -2
  659. package/lib/components/Icon/streamline-icons/eye-off.icon.js.map +1 -1
  660. package/lib/components/Icon/streamline-icons/face-blank.icon.d.ts +1 -1
  661. package/lib/components/Icon/streamline-icons/face-blank.icon.d.ts.map +1 -1
  662. package/lib/components/Icon/streamline-icons/face-blank.icon.js +2 -2
  663. package/lib/components/Icon/streamline-icons/face-blank.icon.js.map +1 -1
  664. package/lib/components/Icon/streamline-icons/face-happy.icon.d.ts +1 -1
  665. package/lib/components/Icon/streamline-icons/face-happy.icon.d.ts.map +1 -1
  666. package/lib/components/Icon/streamline-icons/face-happy.icon.js +2 -2
  667. package/lib/components/Icon/streamline-icons/face-happy.icon.js.map +1 -1
  668. package/lib/components/Icon/streamline-icons/face-sad.icon.d.ts +1 -1
  669. package/lib/components/Icon/streamline-icons/face-sad.icon.d.ts.map +1 -1
  670. package/lib/components/Icon/streamline-icons/face-sad.icon.js +2 -2
  671. package/lib/components/Icon/streamline-icons/face-sad.icon.js.map +1 -1
  672. package/lib/components/Icon/streamline-icons/facebook.icon.d.ts +5 -0
  673. package/lib/components/Icon/streamline-icons/facebook.icon.d.ts.map +1 -0
  674. package/lib/components/Icon/streamline-icons/facebook.icon.js +7 -0
  675. package/lib/components/Icon/streamline-icons/facebook.icon.js.map +1 -0
  676. package/lib/components/Icon/streamline-icons/farming-wheat.icon.d.ts +1 -1
  677. package/lib/components/Icon/streamline-icons/farming-wheat.icon.d.ts.map +1 -1
  678. package/lib/components/Icon/streamline-icons/farming-wheat.icon.js +2 -2
  679. package/lib/components/Icon/streamline-icons/farming-wheat.icon.js.map +1 -1
  680. package/lib/components/Icon/streamline-icons/fast-forward.icon.d.ts +1 -1
  681. package/lib/components/Icon/streamline-icons/fast-forward.icon.d.ts.map +1 -1
  682. package/lib/components/Icon/streamline-icons/fast-forward.icon.js +2 -2
  683. package/lib/components/Icon/streamline-icons/fast-forward.icon.js.map +1 -1
  684. package/lib/components/Icon/streamline-icons/field-cursor.icon.d.ts +1 -1
  685. package/lib/components/Icon/streamline-icons/field-cursor.icon.d.ts.map +1 -1
  686. package/lib/components/Icon/streamline-icons/field-cursor.icon.js +3 -3
  687. package/lib/components/Icon/streamline-icons/field-cursor.icon.js.map +1 -1
  688. package/lib/components/Icon/streamline-icons/filetype-text.icon.d.ts +1 -1
  689. package/lib/components/Icon/streamline-icons/filetype-text.icon.d.ts.map +1 -1
  690. package/lib/components/Icon/streamline-icons/filetype-text.icon.js +2 -2
  691. package/lib/components/Icon/streamline-icons/filetype-text.icon.js.map +1 -1
  692. package/lib/components/Icon/streamline-icons/filter.icon.d.ts +1 -1
  693. package/lib/components/Icon/streamline-icons/filter.icon.d.ts.map +1 -1
  694. package/lib/components/Icon/streamline-icons/filter.icon.js +2 -2
  695. package/lib/components/Icon/streamline-icons/filter.icon.js.map +1 -1
  696. package/lib/components/Icon/streamline-icons/fingerprint-search.icon.d.ts +1 -1
  697. package/lib/components/Icon/streamline-icons/fingerprint-search.icon.d.ts.map +1 -1
  698. package/lib/components/Icon/streamline-icons/fingerprint-search.icon.js +2 -2
  699. package/lib/components/Icon/streamline-icons/fingerprint-search.icon.js.map +1 -1
  700. package/lib/components/Icon/streamline-icons/flag-check.icon.d.ts +1 -1
  701. package/lib/components/Icon/streamline-icons/flag-check.icon.d.ts.map +1 -1
  702. package/lib/components/Icon/streamline-icons/flag-check.icon.js +2 -2
  703. package/lib/components/Icon/streamline-icons/flag-check.icon.js.map +1 -1
  704. package/lib/components/Icon/streamline-icons/flag-finish.icon.d.ts +1 -1
  705. package/lib/components/Icon/streamline-icons/flag-finish.icon.d.ts.map +1 -1
  706. package/lib/components/Icon/streamline-icons/flag-finish.icon.js +2 -2
  707. package/lib/components/Icon/streamline-icons/flag-finish.icon.js.map +1 -1
  708. package/lib/components/Icon/streamline-icons/flag-solid.icon.d.ts +5 -0
  709. package/lib/components/Icon/streamline-icons/flag-solid.icon.d.ts.map +1 -0
  710. package/lib/components/Icon/streamline-icons/flag-solid.icon.js +7 -0
  711. package/lib/components/Icon/streamline-icons/flag-solid.icon.js.map +1 -0
  712. package/lib/components/Icon/streamline-icons/flag.icon.d.ts +5 -0
  713. package/lib/components/Icon/streamline-icons/flag.icon.d.ts.map +1 -0
  714. package/lib/components/Icon/streamline-icons/flag.icon.js +7 -0
  715. package/lib/components/Icon/streamline-icons/flag.icon.js.map +1 -0
  716. package/lib/components/Icon/streamline-icons/flashlight.icon.d.ts +1 -1
  717. package/lib/components/Icon/streamline-icons/flashlight.icon.d.ts.map +1 -1
  718. package/lib/components/Icon/streamline-icons/flashlight.icon.js +2 -2
  719. package/lib/components/Icon/streamline-icons/flashlight.icon.js.map +1 -1
  720. package/lib/components/Icon/streamline-icons/flow-process.icon.d.ts +1 -1
  721. package/lib/components/Icon/streamline-icons/flow-process.icon.d.ts.map +1 -1
  722. package/lib/components/Icon/streamline-icons/flow-process.icon.js +2 -2
  723. package/lib/components/Icon/streamline-icons/flow-process.icon.js.map +1 -1
  724. package/lib/components/Icon/streamline-icons/folder-closed.icon.d.ts +1 -1
  725. package/lib/components/Icon/streamline-icons/folder-closed.icon.d.ts.map +1 -1
  726. package/lib/components/Icon/streamline-icons/folder-closed.icon.js +2 -2
  727. package/lib/components/Icon/streamline-icons/folder-closed.icon.js.map +1 -1
  728. package/lib/components/Icon/streamline-icons/folder-empty.icon.d.ts +1 -1
  729. package/lib/components/Icon/streamline-icons/folder-empty.icon.d.ts.map +1 -1
  730. package/lib/components/Icon/streamline-icons/folder-empty.icon.js +2 -2
  731. package/lib/components/Icon/streamline-icons/folder-empty.icon.js.map +1 -1
  732. package/lib/components/Icon/streamline-icons/folder-hierarchy.icon.d.ts +1 -1
  733. package/lib/components/Icon/streamline-icons/folder-hierarchy.icon.d.ts.map +1 -1
  734. package/lib/components/Icon/streamline-icons/folder-hierarchy.icon.js +3 -3
  735. package/lib/components/Icon/streamline-icons/folder-hierarchy.icon.js.map +1 -1
  736. package/lib/components/Icon/streamline-icons/folder-nested.icon.d.ts +1 -1
  737. package/lib/components/Icon/streamline-icons/folder-nested.icon.d.ts.map +1 -1
  738. package/lib/components/Icon/streamline-icons/folder-nested.icon.js +2 -2
  739. package/lib/components/Icon/streamline-icons/folder-nested.icon.js.map +1 -1
  740. package/lib/components/Icon/streamline-icons/folder-search.icon.d.ts +1 -1
  741. package/lib/components/Icon/streamline-icons/folder-search.icon.d.ts.map +1 -1
  742. package/lib/components/Icon/streamline-icons/folder-search.icon.js +2 -2
  743. package/lib/components/Icon/streamline-icons/folder-search.icon.js.map +1 -1
  744. package/lib/components/Icon/streamline-icons/folder.icon.d.ts +5 -0
  745. package/lib/components/Icon/streamline-icons/folder.icon.d.ts.map +1 -0
  746. package/lib/components/Icon/streamline-icons/folder.icon.js +7 -0
  747. package/lib/components/Icon/streamline-icons/folder.icon.js.map +1 -0
  748. package/lib/components/Icon/streamline-icons/folders.icon.d.ts +1 -1
  749. package/lib/components/Icon/streamline-icons/folders.icon.d.ts.map +1 -1
  750. package/lib/components/Icon/streamline-icons/folders.icon.js +2 -2
  751. package/lib/components/Icon/streamline-icons/folders.icon.js.map +1 -1
  752. package/lib/components/Icon/streamline-icons/forward-all.icon.d.ts +1 -1
  753. package/lib/components/Icon/streamline-icons/forward-all.icon.d.ts.map +1 -1
  754. package/lib/components/Icon/streamline-icons/forward-all.icon.js +2 -2
  755. package/lib/components/Icon/streamline-icons/forward-all.icon.js.map +1 -1
  756. package/lib/components/Icon/streamline-icons/forward.icon.d.ts +1 -1
  757. package/lib/components/Icon/streamline-icons/forward.icon.d.ts.map +1 -1
  758. package/lib/components/Icon/streamline-icons/forward.icon.js +2 -2
  759. package/lib/components/Icon/streamline-icons/forward.icon.js.map +1 -1
  760. package/lib/components/Icon/streamline-icons/function.icon.d.ts +1 -1
  761. package/lib/components/Icon/streamline-icons/function.icon.d.ts.map +1 -1
  762. package/lib/components/Icon/streamline-icons/function.icon.js +2 -2
  763. package/lib/components/Icon/streamline-icons/function.icon.js.map +1 -1
  764. package/lib/components/Icon/streamline-icons/gear-play.icon.d.ts +1 -1
  765. package/lib/components/Icon/streamline-icons/gear-play.icon.d.ts.map +1 -1
  766. package/lib/components/Icon/streamline-icons/gear-play.icon.js +2 -2
  767. package/lib/components/Icon/streamline-icons/gear-play.icon.js.map +1 -1
  768. package/lib/components/Icon/streamline-icons/gear-solid.icon.d.ts +1 -1
  769. package/lib/components/Icon/streamline-icons/gear-solid.icon.js +2 -2
  770. package/lib/components/Icon/streamline-icons/gear-solid.icon.js.map +1 -1
  771. package/lib/components/Icon/streamline-icons/gear.icon.d.ts +1 -1
  772. package/lib/components/Icon/streamline-icons/gear.icon.d.ts.map +1 -1
  773. package/lib/components/Icon/streamline-icons/gear.icon.js +2 -2
  774. package/lib/components/Icon/streamline-icons/gear.icon.js.map +1 -1
  775. package/lib/components/Icon/streamline-icons/globe.icon.d.ts +1 -1
  776. package/lib/components/Icon/streamline-icons/globe.icon.d.ts.map +1 -1
  777. package/lib/components/Icon/streamline-icons/globe.icon.js +2 -2
  778. package/lib/components/Icon/streamline-icons/globe.icon.js.map +1 -1
  779. package/lib/components/Icon/streamline-icons/google.icon.d.ts +5 -0
  780. package/lib/components/Icon/streamline-icons/google.icon.d.ts.map +1 -0
  781. package/lib/components/Icon/streamline-icons/google.icon.js +7 -0
  782. package/lib/components/Icon/streamline-icons/google.icon.js.map +1 -0
  783. package/lib/components/Icon/streamline-icons/government.icon.d.ts +1 -1
  784. package/lib/components/Icon/streamline-icons/government.icon.d.ts.map +1 -1
  785. package/lib/components/Icon/streamline-icons/government.icon.js +2 -2
  786. package/lib/components/Icon/streamline-icons/government.icon.js.map +1 -1
  787. package/lib/components/Icon/streamline-icons/graduate.icon.d.ts +1 -1
  788. package/lib/components/Icon/streamline-icons/graduate.icon.d.ts.map +1 -1
  789. package/lib/components/Icon/streamline-icons/graduate.icon.js +2 -2
  790. package/lib/components/Icon/streamline-icons/graduate.icon.js.map +1 -1
  791. package/lib/components/Icon/streamline-icons/hand-book-open.icon.d.ts +1 -1
  792. package/lib/components/Icon/streamline-icons/hand-book-open.icon.d.ts.map +1 -1
  793. package/lib/components/Icon/streamline-icons/hand-book-open.icon.js +2 -2
  794. package/lib/components/Icon/streamline-icons/hand-book-open.icon.js.map +1 -1
  795. package/lib/components/Icon/streamline-icons/hand-over-paper.icon.d.ts +1 -1
  796. package/lib/components/Icon/streamline-icons/hand-over-paper.icon.d.ts.map +1 -1
  797. package/lib/components/Icon/streamline-icons/hand-over-paper.icon.js +2 -2
  798. package/lib/components/Icon/streamline-icons/hand-over-paper.icon.js.map +1 -1
  799. package/lib/components/Icon/streamline-icons/hand.icon.d.ts +1 -1
  800. package/lib/components/Icon/streamline-icons/hand.icon.d.ts.map +1 -1
  801. package/lib/components/Icon/streamline-icons/hand.icon.js +2 -2
  802. package/lib/components/Icon/streamline-icons/hand.icon.js.map +1 -1
  803. package/lib/components/Icon/streamline-icons/handshake.icon.d.ts +1 -1
  804. package/lib/components/Icon/streamline-icons/handshake.icon.d.ts.map +1 -1
  805. package/lib/components/Icon/streamline-icons/handshake.icon.js +2 -2
  806. package/lib/components/Icon/streamline-icons/handshake.icon.js.map +1 -1
  807. package/lib/components/Icon/streamline-icons/header.icon.d.ts +5 -0
  808. package/lib/components/Icon/streamline-icons/header.icon.d.ts.map +1 -0
  809. package/lib/components/Icon/streamline-icons/header.icon.js +7 -0
  810. package/lib/components/Icon/streamline-icons/header.icon.js.map +1 -0
  811. package/lib/components/Icon/streamline-icons/headset.icon.d.ts +1 -1
  812. package/lib/components/Icon/streamline-icons/headset.icon.d.ts.map +1 -1
  813. package/lib/components/Icon/streamline-icons/headset.icon.js +3 -3
  814. package/lib/components/Icon/streamline-icons/headset.icon.js.map +1 -1
  815. package/lib/components/Icon/streamline-icons/home-solid.icon.d.ts +1 -1
  816. package/lib/components/Icon/streamline-icons/home-solid.icon.js +2 -2
  817. package/lib/components/Icon/streamline-icons/home-solid.icon.js.map +1 -1
  818. package/lib/components/Icon/streamline-icons/home.icon.d.ts +5 -0
  819. package/lib/components/Icon/streamline-icons/home.icon.d.ts.map +1 -0
  820. package/lib/components/Icon/streamline-icons/home.icon.js +7 -0
  821. package/lib/components/Icon/streamline-icons/home.icon.js.map +1 -0
  822. package/lib/components/Icon/streamline-icons/house-bed.icon.d.ts +1 -1
  823. package/lib/components/Icon/streamline-icons/house-bed.icon.d.ts.map +1 -1
  824. package/lib/components/Icon/streamline-icons/house-bed.icon.js +2 -2
  825. package/lib/components/Icon/streamline-icons/house-bed.icon.js.map +1 -1
  826. package/lib/components/Icon/streamline-icons/house-person.icon.d.ts +1 -1
  827. package/lib/components/Icon/streamline-icons/house-person.icon.d.ts.map +1 -1
  828. package/lib/components/Icon/streamline-icons/house-person.icon.js +2 -2
  829. package/lib/components/Icon/streamline-icons/house-person.icon.js.map +1 -1
  830. package/lib/components/Icon/streamline-icons/infinity.icon.d.ts +5 -0
  831. package/lib/components/Icon/streamline-icons/infinity.icon.d.ts.map +1 -0
  832. package/lib/components/Icon/streamline-icons/infinity.icon.js +7 -0
  833. package/lib/components/Icon/streamline-icons/infinity.icon.js.map +1 -0
  834. package/lib/components/Icon/streamline-icons/information.icon.d.ts +1 -1
  835. package/lib/components/Icon/streamline-icons/information.icon.d.ts.map +1 -1
  836. package/lib/components/Icon/streamline-icons/information.icon.js +2 -2
  837. package/lib/components/Icon/streamline-icons/information.icon.js.map +1 -1
  838. package/lib/components/Icon/streamline-icons/ios-face-id.icon.d.ts +5 -0
  839. package/lib/components/Icon/streamline-icons/ios-face-id.icon.d.ts.map +1 -0
  840. package/lib/components/Icon/streamline-icons/ios-face-id.icon.js +7 -0
  841. package/lib/components/Icon/streamline-icons/ios-face-id.icon.js.map +1 -0
  842. package/lib/components/Icon/streamline-icons/ios-finger-id.icon.d.ts +1 -1
  843. package/lib/components/Icon/streamline-icons/ios-finger-id.icon.d.ts.map +1 -1
  844. package/lib/components/Icon/streamline-icons/ios-finger-id.icon.js +2 -2
  845. package/lib/components/Icon/streamline-icons/ios-finger-id.icon.js.map +1 -1
  846. package/lib/components/Icon/streamline-icons/layers.icon.d.ts +1 -1
  847. package/lib/components/Icon/streamline-icons/layers.icon.d.ts.map +1 -1
  848. package/lib/components/Icon/streamline-icons/layers.icon.js +2 -2
  849. package/lib/components/Icon/streamline-icons/layers.icon.js.map +1 -1
  850. package/lib/components/Icon/streamline-icons/letter.icon.d.ts +1 -1
  851. package/lib/components/Icon/streamline-icons/letter.icon.d.ts.map +1 -1
  852. package/lib/components/Icon/streamline-icons/letter.icon.js +2 -2
  853. package/lib/components/Icon/streamline-icons/letter.icon.js.map +1 -1
  854. package/lib/components/Icon/streamline-icons/linkedin.icon.d.ts +5 -0
  855. package/lib/components/Icon/streamline-icons/linkedin.icon.d.ts.map +1 -0
  856. package/lib/components/Icon/streamline-icons/linkedin.icon.js +7 -0
  857. package/lib/components/Icon/streamline-icons/linkedin.icon.js.map +1 -0
  858. package/lib/components/Icon/streamline-icons/list.icon.d.ts +1 -1
  859. package/lib/components/Icon/streamline-icons/list.icon.d.ts.map +1 -1
  860. package/lib/components/Icon/streamline-icons/list.icon.js +3 -3
  861. package/lib/components/Icon/streamline-icons/list.icon.js.map +1 -1
  862. package/lib/components/Icon/streamline-icons/location-solid.icon.d.ts +5 -0
  863. package/lib/components/Icon/streamline-icons/location-solid.icon.d.ts.map +1 -0
  864. package/lib/components/Icon/streamline-icons/location-solid.icon.js +7 -0
  865. package/lib/components/Icon/streamline-icons/location-solid.icon.js.map +1 -0
  866. package/lib/components/Icon/streamline-icons/mail-warning.icon.d.ts +1 -1
  867. package/lib/components/Icon/streamline-icons/mail-warning.icon.d.ts.map +1 -1
  868. package/lib/components/Icon/streamline-icons/mail-warning.icon.js +2 -2
  869. package/lib/components/Icon/streamline-icons/mail-warning.icon.js.map +1 -1
  870. package/lib/components/Icon/streamline-icons/mail.icon.d.ts +1 -1
  871. package/lib/components/Icon/streamline-icons/mail.icon.d.ts.map +1 -1
  872. package/lib/components/Icon/streamline-icons/mail.icon.js +2 -2
  873. package/lib/components/Icon/streamline-icons/mail.icon.js.map +1 -1
  874. package/lib/components/Icon/streamline-icons/megaphone.icon.d.ts +1 -1
  875. package/lib/components/Icon/streamline-icons/megaphone.icon.d.ts.map +1 -1
  876. package/lib/components/Icon/streamline-icons/megaphone.icon.js +3 -3
  877. package/lib/components/Icon/streamline-icons/megaphone.icon.js.map +1 -1
  878. package/lib/components/Icon/streamline-icons/merge.icon.d.ts +1 -1
  879. package/lib/components/Icon/streamline-icons/merge.icon.d.ts.map +1 -1
  880. package/lib/components/Icon/streamline-icons/merge.icon.js +2 -2
  881. package/lib/components/Icon/streamline-icons/merge.icon.js.map +1 -1
  882. package/lib/components/Icon/streamline-icons/messages-to-chat.icon.d.ts +1 -1
  883. package/lib/components/Icon/streamline-icons/messages-to-chat.icon.d.ts.map +1 -1
  884. package/lib/components/Icon/streamline-icons/messages-to-chat.icon.js +2 -2
  885. package/lib/components/Icon/streamline-icons/messages-to-chat.icon.js.map +1 -1
  886. package/lib/components/Icon/streamline-icons/mic-off.icon.d.ts +1 -1
  887. package/lib/components/Icon/streamline-icons/mic-off.icon.d.ts.map +1 -1
  888. package/lib/components/Icon/streamline-icons/mic-off.icon.js +2 -2
  889. package/lib/components/Icon/streamline-icons/mic-off.icon.js.map +1 -1
  890. package/lib/components/Icon/streamline-icons/mic.icon.d.ts +1 -1
  891. package/lib/components/Icon/streamline-icons/mic.icon.d.ts.map +1 -1
  892. package/lib/components/Icon/streamline-icons/mic.icon.js +2 -2
  893. package/lib/components/Icon/streamline-icons/mic.icon.js.map +1 -1
  894. package/lib/components/Icon/streamline-icons/minus.icon.d.ts +1 -1
  895. package/lib/components/Icon/streamline-icons/minus.icon.d.ts.map +1 -1
  896. package/lib/components/Icon/streamline-icons/minus.icon.js +2 -2
  897. package/lib/components/Icon/streamline-icons/minus.icon.js.map +1 -1
  898. package/lib/components/Icon/streamline-icons/mobile-phone.icon.d.ts +1 -1
  899. package/lib/components/Icon/streamline-icons/mobile-phone.icon.d.ts.map +1 -1
  900. package/lib/components/Icon/streamline-icons/mobile-phone.icon.js +2 -2
  901. package/lib/components/Icon/streamline-icons/mobile-phone.icon.js.map +1 -1
  902. package/lib/components/Icon/streamline-icons/module.icon.d.ts +1 -1
  903. package/lib/components/Icon/streamline-icons/module.icon.d.ts.map +1 -1
  904. package/lib/components/Icon/streamline-icons/module.icon.js +2 -2
  905. package/lib/components/Icon/streamline-icons/module.icon.js.map +1 -1
  906. package/lib/components/Icon/streamline-icons/money-atm.icon.d.ts +1 -1
  907. package/lib/components/Icon/streamline-icons/money-atm.icon.d.ts.map +1 -1
  908. package/lib/components/Icon/streamline-icons/money-atm.icon.js +2 -2
  909. package/lib/components/Icon/streamline-icons/money-atm.icon.js.map +1 -1
  910. package/lib/components/Icon/streamline-icons/money.icon.d.ts +1 -1
  911. package/lib/components/Icon/streamline-icons/money.icon.d.ts.map +1 -1
  912. package/lib/components/Icon/streamline-icons/money.icon.js +2 -2
  913. package/lib/components/Icon/streamline-icons/money.icon.js.map +1 -1
  914. package/lib/components/Icon/streamline-icons/monitor-lock.icon.d.ts +1 -1
  915. package/lib/components/Icon/streamline-icons/monitor-lock.icon.d.ts.map +1 -1
  916. package/lib/components/Icon/streamline-icons/monitor-lock.icon.js +2 -2
  917. package/lib/components/Icon/streamline-icons/monitor-lock.icon.js.map +1 -1
  918. package/lib/components/Icon/streamline-icons/more.icon.d.ts +5 -0
  919. package/lib/components/Icon/streamline-icons/more.icon.d.ts.map +1 -0
  920. package/lib/components/Icon/streamline-icons/more.icon.js +7 -0
  921. package/lib/components/Icon/streamline-icons/more.icon.js.map +1 -0
  922. package/lib/components/Icon/streamline-icons/mountain-top.icon.d.ts +1 -1
  923. package/lib/components/Icon/streamline-icons/mountain-top.icon.d.ts.map +1 -1
  924. package/lib/components/Icon/streamline-icons/mountain-top.icon.js +2 -2
  925. package/lib/components/Icon/streamline-icons/mountain-top.icon.js.map +1 -1
  926. package/lib/components/Icon/streamline-icons/multi-device.icon.d.ts +1 -1
  927. package/lib/components/Icon/streamline-icons/multi-device.icon.d.ts.map +1 -1
  928. package/lib/components/Icon/streamline-icons/multi-device.icon.js +2 -2
  929. package/lib/components/Icon/streamline-icons/multi-device.icon.js.map +1 -1
  930. package/lib/components/Icon/streamline-icons/navigation.icon.d.ts +5 -0
  931. package/lib/components/Icon/streamline-icons/navigation.icon.d.ts.map +1 -0
  932. package/lib/components/Icon/streamline-icons/navigation.icon.js +7 -0
  933. package/lib/components/Icon/streamline-icons/navigation.icon.js.map +1 -0
  934. package/lib/components/Icon/streamline-icons/newspaper-fold.icon.d.ts +1 -1
  935. package/lib/components/Icon/streamline-icons/newspaper-fold.icon.d.ts.map +1 -1
  936. package/lib/components/Icon/streamline-icons/newspaper-fold.icon.js +2 -2
  937. package/lib/components/Icon/streamline-icons/newspaper-fold.icon.js.map +1 -1
  938. package/lib/components/Icon/streamline-icons/newspaper.icon.d.ts +1 -1
  939. package/lib/components/Icon/streamline-icons/newspaper.icon.d.ts.map +1 -1
  940. package/lib/components/Icon/streamline-icons/newspaper.icon.js +2 -2
  941. package/lib/components/Icon/streamline-icons/newspaper.icon.js.map +1 -1
  942. package/lib/components/Icon/streamline-icons/nodes-down.icon.d.ts +5 -0
  943. package/lib/components/Icon/streamline-icons/nodes-down.icon.d.ts.map +1 -0
  944. package/lib/components/Icon/streamline-icons/nodes-down.icon.js +7 -0
  945. package/lib/components/Icon/streamline-icons/nodes-down.icon.js.map +1 -0
  946. package/lib/components/Icon/streamline-icons/note-pin.icon.d.ts +1 -1
  947. package/lib/components/Icon/streamline-icons/note-pin.icon.d.ts.map +1 -1
  948. package/lib/components/Icon/streamline-icons/note-pin.icon.js +2 -2
  949. package/lib/components/Icon/streamline-icons/note-pin.icon.js.map +1 -1
  950. package/lib/components/Icon/streamline-icons/notepad.icon.d.ts +1 -1
  951. package/lib/components/Icon/streamline-icons/notepad.icon.d.ts.map +1 -1
  952. package/lib/components/Icon/streamline-icons/notepad.icon.js +2 -2
  953. package/lib/components/Icon/streamline-icons/notepad.icon.js.map +1 -1
  954. package/lib/components/Icon/streamline-icons/number-decimal.icon.d.ts +1 -1
  955. package/lib/components/Icon/streamline-icons/number-decimal.icon.d.ts.map +1 -1
  956. package/lib/components/Icon/streamline-icons/number-decimal.icon.js +3 -3
  957. package/lib/components/Icon/streamline-icons/number-decimal.icon.js.map +1 -1
  958. package/lib/components/Icon/streamline-icons/offer-list.icon.d.ts +1 -1
  959. package/lib/components/Icon/streamline-icons/offer-list.icon.d.ts.map +1 -1
  960. package/lib/components/Icon/streamline-icons/offer-list.icon.js +2 -2
  961. package/lib/components/Icon/streamline-icons/offer-list.icon.js.map +1 -1
  962. package/lib/components/Icon/streamline-icons/offer-table.icon.d.ts +1 -1
  963. package/lib/components/Icon/streamline-icons/offer-table.icon.d.ts.map +1 -1
  964. package/lib/components/Icon/streamline-icons/offer-table.icon.js +2 -2
  965. package/lib/components/Icon/streamline-icons/offer-table.icon.js.map +1 -1
  966. package/lib/components/Icon/streamline-icons/offer.icon.d.ts +1 -1
  967. package/lib/components/Icon/streamline-icons/offer.icon.d.ts.map +1 -1
  968. package/lib/components/Icon/streamline-icons/offer.icon.js +2 -2
  969. package/lib/components/Icon/streamline-icons/offer.icon.js.map +1 -1
  970. package/lib/components/Icon/streamline-icons/open-new-tab.icon.d.ts +1 -1
  971. package/lib/components/Icon/streamline-icons/open-new-tab.icon.d.ts.map +1 -1
  972. package/lib/components/Icon/streamline-icons/open-new-tab.icon.js +2 -2
  973. package/lib/components/Icon/streamline-icons/open-new-tab.icon.js.map +1 -1
  974. package/lib/components/Icon/streamline-icons/open.icon.d.ts +1 -1
  975. package/lib/components/Icon/streamline-icons/open.icon.d.ts.map +1 -1
  976. package/lib/components/Icon/streamline-icons/open.icon.js +2 -2
  977. package/lib/components/Icon/streamline-icons/open.icon.js.map +1 -1
  978. package/lib/components/Icon/streamline-icons/opportunity-refresh.icon.d.ts +1 -1
  979. package/lib/components/Icon/streamline-icons/opportunity-refresh.icon.d.ts.map +1 -1
  980. package/lib/components/Icon/streamline-icons/opportunity-refresh.icon.js +2 -2
  981. package/lib/components/Icon/streamline-icons/opportunity-refresh.icon.js.map +1 -1
  982. package/lib/components/Icon/streamline-icons/opportunity.icon.d.ts +1 -1
  983. package/lib/components/Icon/streamline-icons/opportunity.icon.d.ts.map +1 -1
  984. package/lib/components/Icon/streamline-icons/opportunity.icon.js +2 -2
  985. package/lib/components/Icon/streamline-icons/opportunity.icon.js.map +1 -1
  986. package/lib/components/Icon/streamline-icons/os-apple.icon.d.ts +5 -0
  987. package/lib/components/Icon/streamline-icons/os-apple.icon.d.ts.map +1 -0
  988. package/lib/components/Icon/streamline-icons/os-apple.icon.js +7 -0
  989. package/lib/components/Icon/streamline-icons/os-apple.icon.js.map +1 -0
  990. package/lib/components/Icon/streamline-icons/paper-clip.icon.d.ts +1 -1
  991. package/lib/components/Icon/streamline-icons/paper-clip.icon.d.ts.map +1 -1
  992. package/lib/components/Icon/streamline-icons/paper-clip.icon.js +2 -2
  993. package/lib/components/Icon/streamline-icons/paper-clip.icon.js.map +1 -1
  994. package/lib/components/Icon/streamline-icons/paper-search.icon.d.ts +1 -1
  995. package/lib/components/Icon/streamline-icons/paper-search.icon.d.ts.map +1 -1
  996. package/lib/components/Icon/streamline-icons/paper-search.icon.js +2 -2
  997. package/lib/components/Icon/streamline-icons/paper-search.icon.js.map +1 -1
  998. package/lib/components/Icon/streamline-icons/password-lock.icon.d.ts +1 -1
  999. package/lib/components/Icon/streamline-icons/password-lock.icon.d.ts.map +1 -1
  1000. package/lib/components/Icon/streamline-icons/password-lock.icon.js +2 -2
  1001. package/lib/components/Icon/streamline-icons/password-lock.icon.js.map +1 -1
  1002. package/lib/components/Icon/streamline-icons/pause.icon.d.ts +1 -1
  1003. package/lib/components/Icon/streamline-icons/pause.icon.d.ts.map +1 -1
  1004. package/lib/components/Icon/streamline-icons/pause.icon.js +3 -3
  1005. package/lib/components/Icon/streamline-icons/pause.icon.js.map +1 -1
  1006. package/lib/components/Icon/streamline-icons/paypal.icon.d.ts +5 -0
  1007. package/lib/components/Icon/streamline-icons/paypal.icon.d.ts.map +1 -0
  1008. package/lib/components/Icon/streamline-icons/paypal.icon.js +7 -0
  1009. package/lib/components/Icon/streamline-icons/paypal.icon.js.map +1 -0
  1010. package/lib/components/Icon/streamline-icons/pega.icon.d.ts +5 -0
  1011. package/lib/components/Icon/streamline-icons/pega.icon.d.ts.map +1 -0
  1012. package/lib/components/Icon/streamline-icons/pega.icon.js +7 -0
  1013. package/lib/components/Icon/streamline-icons/pega.icon.js.map +1 -0
  1014. package/lib/components/Icon/streamline-icons/pegasus.icon.d.ts +5 -0
  1015. package/lib/components/Icon/streamline-icons/pegasus.icon.d.ts.map +1 -0
  1016. package/lib/components/Icon/streamline-icons/pegasus.icon.js +7 -0
  1017. package/lib/components/Icon/streamline-icons/pegasus.icon.js.map +1 -0
  1018. package/lib/components/Icon/streamline-icons/pencil.icon.d.ts +1 -1
  1019. package/lib/components/Icon/streamline-icons/pencil.icon.d.ts.map +1 -1
  1020. package/lib/components/Icon/streamline-icons/pencil.icon.js +2 -2
  1021. package/lib/components/Icon/streamline-icons/pencil.icon.js.map +1 -1
  1022. package/lib/components/Icon/streamline-icons/percentage.icon.d.ts +1 -1
  1023. package/lib/components/Icon/streamline-icons/percentage.icon.d.ts.map +1 -1
  1024. package/lib/components/Icon/streamline-icons/percentage.icon.js +2 -2
  1025. package/lib/components/Icon/streamline-icons/percentage.icon.js.map +1 -1
  1026. package/lib/components/Icon/streamline-icons/person-connection.icon.d.ts +1 -1
  1027. package/lib/components/Icon/streamline-icons/person-connection.icon.d.ts.map +1 -1
  1028. package/lib/components/Icon/streamline-icons/person-connection.icon.js +2 -2
  1029. package/lib/components/Icon/streamline-icons/person-connection.icon.js.map +1 -1
  1030. package/lib/components/Icon/streamline-icons/person-hierarchy-check.icon.d.ts +1 -1
  1031. package/lib/components/Icon/streamline-icons/person-hierarchy-check.icon.d.ts.map +1 -1
  1032. package/lib/components/Icon/streamline-icons/person-hierarchy-check.icon.js +2 -2
  1033. package/lib/components/Icon/streamline-icons/person-hierarchy-check.icon.js.map +1 -1
  1034. package/lib/components/Icon/streamline-icons/person-stars.icon.d.ts +1 -1
  1035. package/lib/components/Icon/streamline-icons/person-stars.icon.d.ts.map +1 -1
  1036. package/lib/components/Icon/streamline-icons/person-stars.icon.js +2 -2
  1037. package/lib/components/Icon/streamline-icons/person-stars.icon.js.map +1 -1
  1038. package/lib/components/Icon/streamline-icons/person.icon.d.ts +1 -1
  1039. package/lib/components/Icon/streamline-icons/person.icon.d.ts.map +1 -1
  1040. package/lib/components/Icon/streamline-icons/person.icon.js +2 -2
  1041. package/lib/components/Icon/streamline-icons/person.icon.js.map +1 -1
  1042. package/lib/components/Icon/streamline-icons/persons-group.icon.d.ts +1 -1
  1043. package/lib/components/Icon/streamline-icons/persons-group.icon.d.ts.map +1 -1
  1044. package/lib/components/Icon/streamline-icons/persons-group.icon.js +2 -2
  1045. package/lib/components/Icon/streamline-icons/persons-group.icon.js.map +1 -1
  1046. package/lib/components/Icon/streamline-icons/phone-call.icon.d.ts +1 -1
  1047. package/lib/components/Icon/streamline-icons/phone-call.icon.d.ts.map +1 -1
  1048. package/lib/components/Icon/streamline-icons/phone-call.icon.js +2 -2
  1049. package/lib/components/Icon/streamline-icons/phone-call.icon.js.map +1 -1
  1050. package/lib/components/Icon/streamline-icons/phone-dial.icon.d.ts +1 -1
  1051. package/lib/components/Icon/streamline-icons/phone-dial.icon.d.ts.map +1 -1
  1052. package/lib/components/Icon/streamline-icons/phone-dial.icon.js +2 -2
  1053. package/lib/components/Icon/streamline-icons/phone-dial.icon.js.map +1 -1
  1054. package/lib/components/Icon/streamline-icons/phone-hangup.icon.d.ts +1 -1
  1055. package/lib/components/Icon/streamline-icons/phone-hangup.icon.d.ts.map +1 -1
  1056. package/lib/components/Icon/streamline-icons/phone-hangup.icon.js +2 -2
  1057. package/lib/components/Icon/streamline-icons/phone-hangup.icon.js.map +1 -1
  1058. package/lib/components/Icon/streamline-icons/phone-in.icon.d.ts +1 -1
  1059. package/lib/components/Icon/streamline-icons/phone-in.icon.d.ts.map +1 -1
  1060. package/lib/components/Icon/streamline-icons/phone-in.icon.js +2 -2
  1061. package/lib/components/Icon/streamline-icons/phone-in.icon.js.map +1 -1
  1062. package/lib/components/Icon/streamline-icons/phone-ivr.icon.d.ts +1 -1
  1063. package/lib/components/Icon/streamline-icons/phone-ivr.icon.d.ts.map +1 -1
  1064. package/lib/components/Icon/streamline-icons/phone-ivr.icon.js +2 -2
  1065. package/lib/components/Icon/streamline-icons/phone-ivr.icon.js.map +1 -1
  1066. package/lib/components/Icon/streamline-icons/phone-off.icon.d.ts +1 -1
  1067. package/lib/components/Icon/streamline-icons/phone-off.icon.d.ts.map +1 -1
  1068. package/lib/components/Icon/streamline-icons/phone-off.icon.js +2 -2
  1069. package/lib/components/Icon/streamline-icons/phone-off.icon.js.map +1 -1
  1070. package/lib/components/Icon/streamline-icons/phone-out.icon.d.ts +1 -1
  1071. package/lib/components/Icon/streamline-icons/phone-out.icon.d.ts.map +1 -1
  1072. package/lib/components/Icon/streamline-icons/phone-out.icon.js +2 -2
  1073. package/lib/components/Icon/streamline-icons/phone-out.icon.js.map +1 -1
  1074. package/lib/components/Icon/streamline-icons/phone-split.icon.d.ts +5 -0
  1075. package/lib/components/Icon/streamline-icons/phone-split.icon.d.ts.map +1 -0
  1076. package/lib/components/Icon/streamline-icons/phone-split.icon.js +7 -0
  1077. package/lib/components/Icon/streamline-icons/phone-split.icon.js.map +1 -0
  1078. package/lib/components/Icon/streamline-icons/phone-transfer.icon.d.ts +1 -1
  1079. package/lib/components/Icon/streamline-icons/phone-transfer.icon.d.ts.map +1 -1
  1080. package/lib/components/Icon/streamline-icons/phone-transfer.icon.js +2 -2
  1081. package/lib/components/Icon/streamline-icons/phone-transfer.icon.js.map +1 -1
  1082. package/lib/components/Icon/streamline-icons/phone.icon.d.ts +1 -1
  1083. package/lib/components/Icon/streamline-icons/phone.icon.d.ts.map +1 -1
  1084. package/lib/components/Icon/streamline-icons/phone.icon.js +2 -2
  1085. package/lib/components/Icon/streamline-icons/phone.icon.js.map +1 -1
  1086. package/lib/components/Icon/streamline-icons/phonebook.icon.d.ts +1 -1
  1087. package/lib/components/Icon/streamline-icons/phonebook.icon.d.ts.map +1 -1
  1088. package/lib/components/Icon/streamline-icons/phonebook.icon.js +2 -2
  1089. package/lib/components/Icon/streamline-icons/phonebook.icon.js.map +1 -1
  1090. package/lib/components/Icon/streamline-icons/picture.icon.d.ts +1 -1
  1091. package/lib/components/Icon/streamline-icons/picture.icon.d.ts.map +1 -1
  1092. package/lib/components/Icon/streamline-icons/picture.icon.js +2 -2
  1093. package/lib/components/Icon/streamline-icons/picture.icon.js.map +1 -1
  1094. package/lib/components/Icon/streamline-icons/play-solid.icon.d.ts +1 -1
  1095. package/lib/components/Icon/streamline-icons/play-solid.icon.js +2 -2
  1096. package/lib/components/Icon/streamline-icons/play-solid.icon.js.map +1 -1
  1097. package/lib/components/Icon/streamline-icons/play.icon.d.ts +1 -1
  1098. package/lib/components/Icon/streamline-icons/play.icon.d.ts.map +1 -1
  1099. package/lib/components/Icon/streamline-icons/play.icon.js +2 -2
  1100. package/lib/components/Icon/streamline-icons/play.icon.js.map +1 -1
  1101. package/lib/components/Icon/streamline-icons/plug-solid.icon.d.ts +1 -1
  1102. package/lib/components/Icon/streamline-icons/plug-solid.icon.d.ts.map +1 -1
  1103. package/lib/components/Icon/streamline-icons/plug-solid.icon.js +3 -3
  1104. package/lib/components/Icon/streamline-icons/plug-solid.icon.js.map +1 -1
  1105. package/lib/components/Icon/streamline-icons/plug.icon.d.ts +1 -1
  1106. package/lib/components/Icon/streamline-icons/plug.icon.d.ts.map +1 -1
  1107. package/lib/components/Icon/streamline-icons/plug.icon.js +2 -2
  1108. package/lib/components/Icon/streamline-icons/plug.icon.js.map +1 -1
  1109. package/lib/components/Icon/streamline-icons/plus.icon.d.ts +1 -1
  1110. package/lib/components/Icon/streamline-icons/plus.icon.d.ts.map +1 -1
  1111. package/lib/components/Icon/streamline-icons/plus.icon.js +2 -2
  1112. package/lib/components/Icon/streamline-icons/plus.icon.js.map +1 -1
  1113. package/lib/components/Icon/streamline-icons/polaris-solid.icon.d.ts +1 -1
  1114. package/lib/components/Icon/streamline-icons/polaris-solid.icon.d.ts.map +1 -1
  1115. package/lib/components/Icon/streamline-icons/polaris-solid.icon.js +2 -2
  1116. package/lib/components/Icon/streamline-icons/polaris-solid.icon.js.map +1 -1
  1117. package/lib/components/Icon/streamline-icons/polaris.icon.d.ts +5 -0
  1118. package/lib/components/Icon/streamline-icons/polaris.icon.d.ts.map +1 -0
  1119. package/lib/components/Icon/streamline-icons/polaris.icon.js +7 -0
  1120. package/lib/components/Icon/streamline-icons/polaris.icon.js.map +1 -0
  1121. package/lib/components/Icon/streamline-icons/presentation.icon.d.ts +1 -1
  1122. package/lib/components/Icon/streamline-icons/presentation.icon.d.ts.map +1 -1
  1123. package/lib/components/Icon/streamline-icons/presentation.icon.js +2 -2
  1124. package/lib/components/Icon/streamline-icons/presentation.icon.js.map +1 -1
  1125. package/lib/components/Icon/streamline-icons/product.icon.d.ts +1 -1
  1126. package/lib/components/Icon/streamline-icons/product.icon.d.ts.map +1 -1
  1127. package/lib/components/Icon/streamline-icons/product.icon.js +2 -2
  1128. package/lib/components/Icon/streamline-icons/product.icon.js.map +1 -1
  1129. package/lib/components/Icon/streamline-icons/project-plan.icon.d.ts +1 -1
  1130. package/lib/components/Icon/streamline-icons/project-plan.icon.d.ts.map +1 -1
  1131. package/lib/components/Icon/streamline-icons/project-plan.icon.js +3 -3
  1132. package/lib/components/Icon/streamline-icons/project-plan.icon.js.map +1 -1
  1133. package/lib/components/Icon/streamline-icons/project.icon.d.ts +1 -1
  1134. package/lib/components/Icon/streamline-icons/project.icon.d.ts.map +1 -1
  1135. package/lib/components/Icon/streamline-icons/project.icon.js +2 -2
  1136. package/lib/components/Icon/streamline-icons/project.icon.js.map +1 -1
  1137. package/lib/components/Icon/streamline-icons/qr.icon.d.ts +1 -1
  1138. package/lib/components/Icon/streamline-icons/qr.icon.d.ts.map +1 -1
  1139. package/lib/components/Icon/streamline-icons/qr.icon.js +2 -2
  1140. package/lib/components/Icon/streamline-icons/qr.icon.js.map +1 -1
  1141. package/lib/components/Icon/streamline-icons/receipt.icon.d.ts +1 -1
  1142. package/lib/components/Icon/streamline-icons/receipt.icon.d.ts.map +1 -1
  1143. package/lib/components/Icon/streamline-icons/receipt.icon.js +2 -2
  1144. package/lib/components/Icon/streamline-icons/receipt.icon.js.map +1 -1
  1145. package/lib/components/Icon/streamline-icons/reply-all.icon.d.ts +1 -1
  1146. package/lib/components/Icon/streamline-icons/reply-all.icon.d.ts.map +1 -1
  1147. package/lib/components/Icon/streamline-icons/reply-all.icon.js +2 -2
  1148. package/lib/components/Icon/streamline-icons/reply-all.icon.js.map +1 -1
  1149. package/lib/components/Icon/streamline-icons/reply.icon.d.ts +1 -1
  1150. package/lib/components/Icon/streamline-icons/reply.icon.d.ts.map +1 -1
  1151. package/lib/components/Icon/streamline-icons/reply.icon.js +2 -2
  1152. package/lib/components/Icon/streamline-icons/reply.icon.js.map +1 -1
  1153. package/lib/components/Icon/streamline-icons/reset.icon.d.ts +1 -1
  1154. package/lib/components/Icon/streamline-icons/reset.icon.d.ts.map +1 -1
  1155. package/lib/components/Icon/streamline-icons/reset.icon.js +2 -2
  1156. package/lib/components/Icon/streamline-icons/reset.icon.js.map +1 -1
  1157. package/lib/components/Icon/streamline-icons/robot-happy.icon.d.ts +1 -1
  1158. package/lib/components/Icon/streamline-icons/robot-happy.icon.d.ts.map +1 -1
  1159. package/lib/components/Icon/streamline-icons/robot-happy.icon.js +2 -2
  1160. package/lib/components/Icon/streamline-icons/robot-happy.icon.js.map +1 -1
  1161. package/lib/components/Icon/streamline-icons/robot-sad.icon.d.ts +1 -1
  1162. package/lib/components/Icon/streamline-icons/robot-sad.icon.d.ts.map +1 -1
  1163. package/lib/components/Icon/streamline-icons/robot-sad.icon.js +2 -2
  1164. package/lib/components/Icon/streamline-icons/robot-sad.icon.js.map +1 -1
  1165. package/lib/components/Icon/streamline-icons/robot.icon.d.ts +1 -1
  1166. package/lib/components/Icon/streamline-icons/robot.icon.d.ts.map +1 -1
  1167. package/lib/components/Icon/streamline-icons/robot.icon.js +2 -2
  1168. package/lib/components/Icon/streamline-icons/robot.icon.js.map +1 -1
  1169. package/lib/components/Icon/streamline-icons/roof-people.icon.d.ts +1 -1
  1170. package/lib/components/Icon/streamline-icons/roof-people.icon.d.ts.map +1 -1
  1171. package/lib/components/Icon/streamline-icons/roof-people.icon.js +2 -2
  1172. package/lib/components/Icon/streamline-icons/roof-people.icon.js.map +1 -1
  1173. package/lib/components/Icon/streamline-icons/row-delete.icon.d.ts +5 -0
  1174. package/lib/components/Icon/streamline-icons/row-delete.icon.d.ts.map +1 -0
  1175. package/lib/components/Icon/streamline-icons/row-delete.icon.js +7 -0
  1176. package/lib/components/Icon/streamline-icons/row-delete.icon.js.map +1 -0
  1177. package/lib/components/Icon/streamline-icons/row-insert.icon.d.ts +1 -1
  1178. package/lib/components/Icon/streamline-icons/row-insert.icon.d.ts.map +1 -1
  1179. package/lib/components/Icon/streamline-icons/row-insert.icon.js +2 -2
  1180. package/lib/components/Icon/streamline-icons/row-insert.icon.js.map +1 -1
  1181. package/lib/components/Icon/streamline-icons/row.icon.d.ts +1 -1
  1182. package/lib/components/Icon/streamline-icons/row.icon.d.ts.map +1 -1
  1183. package/lib/components/Icon/streamline-icons/row.icon.js +3 -3
  1184. package/lib/components/Icon/streamline-icons/row.icon.js.map +1 -1
  1185. package/lib/components/Icon/streamline-icons/rule-library-solid.icon.d.ts +1 -1
  1186. package/lib/components/Icon/streamline-icons/rule-library-solid.icon.d.ts.map +1 -1
  1187. package/lib/components/Icon/streamline-icons/rule-library-solid.icon.js +2 -2
  1188. package/lib/components/Icon/streamline-icons/rule-library-solid.icon.js.map +1 -1
  1189. package/lib/components/Icon/streamline-icons/rule-library.icon.d.ts +1 -1
  1190. package/lib/components/Icon/streamline-icons/rule-library.icon.d.ts.map +1 -1
  1191. package/lib/components/Icon/streamline-icons/rule-library.icon.js +2 -2
  1192. package/lib/components/Icon/streamline-icons/rule-library.icon.js.map +1 -1
  1193. package/lib/components/Icon/streamline-icons/rule.icon.d.ts +1 -1
  1194. package/lib/components/Icon/streamline-icons/rule.icon.d.ts.map +1 -1
  1195. package/lib/components/Icon/streamline-icons/rule.icon.js +3 -3
  1196. package/lib/components/Icon/streamline-icons/rule.icon.js.map +1 -1
  1197. package/lib/components/Icon/streamline-icons/scale-down.icon.d.ts +1 -1
  1198. package/lib/components/Icon/streamline-icons/scale-down.icon.d.ts.map +1 -1
  1199. package/lib/components/Icon/streamline-icons/scale-down.icon.js +2 -2
  1200. package/lib/components/Icon/streamline-icons/scale-down.icon.js.map +1 -1
  1201. package/lib/components/Icon/streamline-icons/scale-up.icon.d.ts +1 -1
  1202. package/lib/components/Icon/streamline-icons/scale-up.icon.d.ts.map +1 -1
  1203. package/lib/components/Icon/streamline-icons/scale-up.icon.js +2 -2
  1204. package/lib/components/Icon/streamline-icons/scale-up.icon.js.map +1 -1
  1205. package/lib/components/Icon/streamline-icons/script.icon.d.ts +1 -1
  1206. package/lib/components/Icon/streamline-icons/script.icon.d.ts.map +1 -1
  1207. package/lib/components/Icon/streamline-icons/script.icon.js +2 -2
  1208. package/lib/components/Icon/streamline-icons/script.icon.js.map +1 -1
  1209. package/lib/components/Icon/streamline-icons/search-analytics-solid.icon.d.ts +1 -1
  1210. package/lib/components/Icon/streamline-icons/search-analytics-solid.icon.d.ts.map +1 -1
  1211. package/lib/components/Icon/streamline-icons/search-analytics-solid.icon.js +3 -3
  1212. package/lib/components/Icon/streamline-icons/search-analytics-solid.icon.js.map +1 -1
  1213. package/lib/components/Icon/streamline-icons/search-analytics.icon.d.ts +1 -1
  1214. package/lib/components/Icon/streamline-icons/search-analytics.icon.d.ts.map +1 -1
  1215. package/lib/components/Icon/streamline-icons/search-analytics.icon.js +2 -2
  1216. package/lib/components/Icon/streamline-icons/search-analytics.icon.js.map +1 -1
  1217. package/lib/components/Icon/streamline-icons/search.icon.d.ts +1 -1
  1218. package/lib/components/Icon/streamline-icons/search.icon.d.ts.map +1 -1
  1219. package/lib/components/Icon/streamline-icons/search.icon.js +2 -2
  1220. package/lib/components/Icon/streamline-icons/search.icon.js.map +1 -1
  1221. package/lib/components/Icon/streamline-icons/send.icon.d.ts +1 -1
  1222. package/lib/components/Icon/streamline-icons/send.icon.d.ts.map +1 -1
  1223. package/lib/components/Icon/streamline-icons/send.icon.js +2 -2
  1224. package/lib/components/Icon/streamline-icons/send.icon.js.map +1 -1
  1225. package/lib/components/Icon/streamline-icons/server.icon.d.ts +1 -1
  1226. package/lib/components/Icon/streamline-icons/server.icon.d.ts.map +1 -1
  1227. package/lib/components/Icon/streamline-icons/server.icon.js +2 -2
  1228. package/lib/components/Icon/streamline-icons/server.icon.js.map +1 -1
  1229. package/lib/components/Icon/streamline-icons/set.icon.d.ts +1 -1
  1230. package/lib/components/Icon/streamline-icons/set.icon.d.ts.map +1 -1
  1231. package/lib/components/Icon/streamline-icons/set.icon.js +2 -2
  1232. package/lib/components/Icon/streamline-icons/set.icon.js.map +1 -1
  1233. package/lib/components/Icon/streamline-icons/share.icon.d.ts +1 -1
  1234. package/lib/components/Icon/streamline-icons/share.icon.d.ts.map +1 -1
  1235. package/lib/components/Icon/streamline-icons/share.icon.js +2 -2
  1236. package/lib/components/Icon/streamline-icons/share.icon.js.map +1 -1
  1237. package/lib/components/Icon/streamline-icons/shield-solid.icon.d.ts +1 -1
  1238. package/lib/components/Icon/streamline-icons/shield-solid.icon.js +2 -2
  1239. package/lib/components/Icon/streamline-icons/shield-solid.icon.js.map +1 -1
  1240. package/lib/components/Icon/streamline-icons/shield.icon.d.ts +1 -1
  1241. package/lib/components/Icon/streamline-icons/shield.icon.d.ts.map +1 -1
  1242. package/lib/components/Icon/streamline-icons/shield.icon.js +2 -2
  1243. package/lib/components/Icon/streamline-icons/shield.icon.js.map +1 -1
  1244. package/lib/components/Icon/streamline-icons/shipment-box.icon.d.ts +1 -1
  1245. package/lib/components/Icon/streamline-icons/shipment-box.icon.d.ts.map +1 -1
  1246. package/lib/components/Icon/streamline-icons/shipment-box.icon.js +2 -2
  1247. package/lib/components/Icon/streamline-icons/shipment-box.icon.js.map +1 -1
  1248. package/lib/components/Icon/streamline-icons/shop.icon.d.ts +1 -1
  1249. package/lib/components/Icon/streamline-icons/shop.icon.d.ts.map +1 -1
  1250. package/lib/components/Icon/streamline-icons/shop.icon.js +2 -2
  1251. package/lib/components/Icon/streamline-icons/shop.icon.js.map +1 -1
  1252. package/lib/components/Icon/streamline-icons/shuffle.icon.d.ts +1 -1
  1253. package/lib/components/Icon/streamline-icons/shuffle.icon.d.ts.map +1 -1
  1254. package/lib/components/Icon/streamline-icons/shuffle.icon.js +2 -2
  1255. package/lib/components/Icon/streamline-icons/shuffle.icon.js.map +1 -1
  1256. package/lib/components/Icon/streamline-icons/sigma.icon.d.ts +1 -1
  1257. package/lib/components/Icon/streamline-icons/sigma.icon.d.ts.map +1 -1
  1258. package/lib/components/Icon/streamline-icons/sigma.icon.js +2 -2
  1259. package/lib/components/Icon/streamline-icons/sigma.icon.js.map +1 -1
  1260. package/lib/components/Icon/streamline-icons/slideshow.icon.d.ts +1 -1
  1261. package/lib/components/Icon/streamline-icons/slideshow.icon.d.ts.map +1 -1
  1262. package/lib/components/Icon/streamline-icons/slideshow.icon.js +2 -2
  1263. package/lib/components/Icon/streamline-icons/slideshow.icon.js.map +1 -1
  1264. package/lib/components/Icon/streamline-icons/snow.icon.d.ts +1 -1
  1265. package/lib/components/Icon/streamline-icons/snow.icon.d.ts.map +1 -1
  1266. package/lib/components/Icon/streamline-icons/snow.icon.js +2 -2
  1267. package/lib/components/Icon/streamline-icons/snow.icon.js.map +1 -1
  1268. package/lib/components/Icon/streamline-icons/speaker.icon.d.ts +1 -1
  1269. package/lib/components/Icon/streamline-icons/speaker.icon.d.ts.map +1 -1
  1270. package/lib/components/Icon/streamline-icons/speaker.icon.js +2 -2
  1271. package/lib/components/Icon/streamline-icons/speaker.icon.js.map +1 -1
  1272. package/lib/components/Icon/streamline-icons/split.icon.d.ts +1 -1
  1273. package/lib/components/Icon/streamline-icons/split.icon.d.ts.map +1 -1
  1274. package/lib/components/Icon/streamline-icons/split.icon.js +2 -2
  1275. package/lib/components/Icon/streamline-icons/split.icon.js.map +1 -1
  1276. package/lib/components/Icon/streamline-icons/stakeholders.icon.d.ts +1 -1
  1277. package/lib/components/Icon/streamline-icons/stakeholders.icon.d.ts.map +1 -1
  1278. package/lib/components/Icon/streamline-icons/stakeholders.icon.js +3 -3
  1279. package/lib/components/Icon/streamline-icons/stakeholders.icon.js.map +1 -1
  1280. package/lib/components/Icon/streamline-icons/star-mixed.icon.d.ts +1 -1
  1281. package/lib/components/Icon/streamline-icons/star-mixed.icon.d.ts.map +1 -1
  1282. package/lib/components/Icon/streamline-icons/star-mixed.icon.js +3 -3
  1283. package/lib/components/Icon/streamline-icons/star-mixed.icon.js.map +1 -1
  1284. package/lib/components/Icon/streamline-icons/star-solid.icon.d.ts +1 -1
  1285. package/lib/components/Icon/streamline-icons/star-solid.icon.js +2 -2
  1286. package/lib/components/Icon/streamline-icons/star-solid.icon.js.map +1 -1
  1287. package/lib/components/Icon/streamline-icons/star.icon.d.ts +1 -1
  1288. package/lib/components/Icon/streamline-icons/star.icon.d.ts.map +1 -1
  1289. package/lib/components/Icon/streamline-icons/star.icon.js +2 -2
  1290. package/lib/components/Icon/streamline-icons/star.icon.js.map +1 -1
  1291. package/lib/components/Icon/streamline-icons/sub-step.icon.d.ts +1 -1
  1292. package/lib/components/Icon/streamline-icons/sub-step.icon.d.ts.map +1 -1
  1293. package/lib/components/Icon/streamline-icons/sub-step.icon.js +2 -2
  1294. package/lib/components/Icon/streamline-icons/sub-step.icon.js.map +1 -1
  1295. package/lib/components/Icon/streamline-icons/table-bolt-solid.icon.d.ts +1 -1
  1296. package/lib/components/Icon/streamline-icons/table-bolt-solid.icon.d.ts.map +1 -1
  1297. package/lib/components/Icon/streamline-icons/table-bolt-solid.icon.js +2 -2
  1298. package/lib/components/Icon/streamline-icons/table-bolt-solid.icon.js.map +1 -1
  1299. package/lib/components/Icon/streamline-icons/table-bolt.icon.d.ts +1 -1
  1300. package/lib/components/Icon/streamline-icons/table-bolt.icon.d.ts.map +1 -1
  1301. package/lib/components/Icon/streamline-icons/table-bolt.icon.js +2 -2
  1302. package/lib/components/Icon/streamline-icons/table-bolt.icon.js.map +1 -1
  1303. package/lib/components/Icon/streamline-icons/table.icon.d.ts +5 -0
  1304. package/lib/components/Icon/streamline-icons/table.icon.d.ts.map +1 -0
  1305. package/lib/components/Icon/streamline-icons/table.icon.js +7 -0
  1306. package/lib/components/Icon/streamline-icons/table.icon.js.map +1 -0
  1307. package/lib/components/Icon/streamline-icons/tag.icon.d.ts +1 -1
  1308. package/lib/components/Icon/streamline-icons/tag.icon.d.ts.map +1 -1
  1309. package/lib/components/Icon/streamline-icons/tag.icon.js +2 -2
  1310. package/lib/components/Icon/streamline-icons/tag.icon.js.map +1 -1
  1311. package/lib/components/Icon/streamline-icons/target-path.icon.d.ts +1 -1
  1312. package/lib/components/Icon/streamline-icons/target-path.icon.d.ts.map +1 -1
  1313. package/lib/components/Icon/streamline-icons/target-path.icon.js +2 -2
  1314. package/lib/components/Icon/streamline-icons/target-path.icon.js.map +1 -1
  1315. package/lib/components/Icon/streamline-icons/team.icon.d.ts +1 -1
  1316. package/lib/components/Icon/streamline-icons/team.icon.d.ts.map +1 -1
  1317. package/lib/components/Icon/streamline-icons/team.icon.js +2 -2
  1318. package/lib/components/Icon/streamline-icons/team.icon.js.map +1 -1
  1319. package/lib/components/Icon/streamline-icons/thumbs-down-solid.icon.d.ts +1 -1
  1320. package/lib/components/Icon/streamline-icons/thumbs-down-solid.icon.d.ts.map +1 -1
  1321. package/lib/components/Icon/streamline-icons/thumbs-down-solid.icon.js +2 -2
  1322. package/lib/components/Icon/streamline-icons/thumbs-down-solid.icon.js.map +1 -1
  1323. package/lib/components/Icon/streamline-icons/thumbs-down.icon.d.ts +1 -1
  1324. package/lib/components/Icon/streamline-icons/thumbs-down.icon.d.ts.map +1 -1
  1325. package/lib/components/Icon/streamline-icons/thumbs-down.icon.js +3 -3
  1326. package/lib/components/Icon/streamline-icons/thumbs-down.icon.js.map +1 -1
  1327. package/lib/components/Icon/streamline-icons/thumbs-up-solid.icon.d.ts +1 -1
  1328. package/lib/components/Icon/streamline-icons/thumbs-up-solid.icon.d.ts.map +1 -1
  1329. package/lib/components/Icon/streamline-icons/thumbs-up-solid.icon.js +2 -2
  1330. package/lib/components/Icon/streamline-icons/thumbs-up-solid.icon.js.map +1 -1
  1331. package/lib/components/Icon/streamline-icons/thumbs-up.icon.d.ts +1 -1
  1332. package/lib/components/Icon/streamline-icons/thumbs-up.icon.d.ts.map +1 -1
  1333. package/lib/components/Icon/streamline-icons/thumbs-up.icon.js +3 -3
  1334. package/lib/components/Icon/streamline-icons/thumbs-up.icon.js.map +1 -1
  1335. package/lib/components/Icon/streamline-icons/times.icon.d.ts +1 -1
  1336. package/lib/components/Icon/streamline-icons/times.icon.d.ts.map +1 -1
  1337. package/lib/components/Icon/streamline-icons/times.icon.js +2 -2
  1338. package/lib/components/Icon/streamline-icons/times.icon.js.map +1 -1
  1339. package/lib/components/Icon/streamline-icons/todo.icon.d.ts +1 -1
  1340. package/lib/components/Icon/streamline-icons/todo.icon.d.ts.map +1 -1
  1341. package/lib/components/Icon/streamline-icons/todo.icon.js +2 -2
  1342. package/lib/components/Icon/streamline-icons/todo.icon.js.map +1 -1
  1343. package/lib/components/Icon/streamline-icons/toolbox-open.icon.d.ts +1 -1
  1344. package/lib/components/Icon/streamline-icons/toolbox-open.icon.d.ts.map +1 -1
  1345. package/lib/components/Icon/streamline-icons/toolbox-open.icon.js +2 -2
  1346. package/lib/components/Icon/streamline-icons/toolbox-open.icon.js.map +1 -1
  1347. package/lib/components/Icon/streamline-icons/toolbox-wrench.icon.d.ts +1 -1
  1348. package/lib/components/Icon/streamline-icons/toolbox-wrench.icon.d.ts.map +1 -1
  1349. package/lib/components/Icon/streamline-icons/toolbox-wrench.icon.js +2 -2
  1350. package/lib/components/Icon/streamline-icons/toolbox-wrench.icon.js.map +1 -1
  1351. package/lib/components/Icon/streamline-icons/transform.icon.d.ts +1 -1
  1352. package/lib/components/Icon/streamline-icons/transform.icon.d.ts.map +1 -1
  1353. package/lib/components/Icon/streamline-icons/transform.icon.js +3 -3
  1354. package/lib/components/Icon/streamline-icons/transform.icon.js.map +1 -1
  1355. package/lib/components/Icon/streamline-icons/trash.icon.d.ts +1 -1
  1356. package/lib/components/Icon/streamline-icons/trash.icon.d.ts.map +1 -1
  1357. package/lib/components/Icon/streamline-icons/trash.icon.js +3 -3
  1358. package/lib/components/Icon/streamline-icons/trash.icon.js.map +1 -1
  1359. package/lib/components/Icon/streamline-icons/tribox.icon.d.ts +1 -1
  1360. package/lib/components/Icon/streamline-icons/tribox.icon.d.ts.map +1 -1
  1361. package/lib/components/Icon/streamline-icons/tribox.icon.js +2 -2
  1362. package/lib/components/Icon/streamline-icons/tribox.icon.js.map +1 -1
  1363. package/lib/components/Icon/streamline-icons/twitter.icon.d.ts +5 -0
  1364. package/lib/components/Icon/streamline-icons/twitter.icon.d.ts.map +1 -0
  1365. package/lib/components/Icon/streamline-icons/twitter.icon.js +7 -0
  1366. package/lib/components/Icon/streamline-icons/twitter.icon.js.map +1 -0
  1367. package/lib/components/Icon/streamline-icons/two-disk-stacks.icon.d.ts +1 -1
  1368. package/lib/components/Icon/streamline-icons/two-disk-stacks.icon.d.ts.map +1 -1
  1369. package/lib/components/Icon/streamline-icons/two-disk-stacks.icon.js +2 -2
  1370. package/lib/components/Icon/streamline-icons/two-disk-stacks.icon.js.map +1 -1
  1371. package/lib/components/Icon/streamline-icons/type-cursor.icon.d.ts +1 -1
  1372. package/lib/components/Icon/streamline-icons/type-cursor.icon.d.ts.map +1 -1
  1373. package/lib/components/Icon/streamline-icons/type-cursor.icon.js +3 -3
  1374. package/lib/components/Icon/streamline-icons/type-cursor.icon.js.map +1 -1
  1375. package/lib/components/Icon/streamline-icons/umbrella.icon.d.ts +1 -1
  1376. package/lib/components/Icon/streamline-icons/umbrella.icon.d.ts.map +1 -1
  1377. package/lib/components/Icon/streamline-icons/umbrella.icon.js +2 -2
  1378. package/lib/components/Icon/streamline-icons/umbrella.icon.js.map +1 -1
  1379. package/lib/components/Icon/streamline-icons/user-check.icon.d.ts +1 -1
  1380. package/lib/components/Icon/streamline-icons/user-check.icon.d.ts.map +1 -1
  1381. package/lib/components/Icon/streamline-icons/user-check.icon.js +2 -2
  1382. package/lib/components/Icon/streamline-icons/user-check.icon.js.map +1 -1
  1383. package/lib/components/Icon/streamline-icons/user-document.icon.d.ts +1 -1
  1384. package/lib/components/Icon/streamline-icons/user-document.icon.d.ts.map +1 -1
  1385. package/lib/components/Icon/streamline-icons/user-document.icon.js +3 -3
  1386. package/lib/components/Icon/streamline-icons/user-document.icon.js.map +1 -1
  1387. package/lib/components/Icon/streamline-icons/user-information.icon.d.ts +1 -1
  1388. package/lib/components/Icon/streamline-icons/user-information.icon.d.ts.map +1 -1
  1389. package/lib/components/Icon/streamline-icons/user-information.icon.js +2 -2
  1390. package/lib/components/Icon/streamline-icons/user-information.icon.js.map +1 -1
  1391. package/lib/components/Icon/streamline-icons/user-pencil.icon.d.ts +1 -1
  1392. package/lib/components/Icon/streamline-icons/user-pencil.icon.d.ts.map +1 -1
  1393. package/lib/components/Icon/streamline-icons/user-pencil.icon.js +2 -2
  1394. package/lib/components/Icon/streamline-icons/user-pencil.icon.js.map +1 -1
  1395. package/lib/components/Icon/streamline-icons/user-solid.icon.d.ts +1 -1
  1396. package/lib/components/Icon/streamline-icons/user-solid.icon.js +2 -2
  1397. package/lib/components/Icon/streamline-icons/user-solid.icon.js.map +1 -1
  1398. package/lib/components/Icon/streamline-icons/user-star.icon.d.ts +5 -0
  1399. package/lib/components/Icon/streamline-icons/user-star.icon.d.ts.map +1 -0
  1400. package/lib/components/Icon/streamline-icons/user-star.icon.js +7 -0
  1401. package/lib/components/Icon/streamline-icons/user-star.icon.js.map +1 -0
  1402. package/lib/components/Icon/streamline-icons/user-unavailable.icon.d.ts +1 -1
  1403. package/lib/components/Icon/streamline-icons/user-unavailable.icon.d.ts.map +1 -1
  1404. package/lib/components/Icon/streamline-icons/user-unavailable.icon.js +2 -2
  1405. package/lib/components/Icon/streamline-icons/user-unavailable.icon.js.map +1 -1
  1406. package/lib/components/Icon/streamline-icons/user.icon.d.ts +1 -1
  1407. package/lib/components/Icon/streamline-icons/user.icon.d.ts.map +1 -1
  1408. package/lib/components/Icon/streamline-icons/user.icon.js +2 -2
  1409. package/lib/components/Icon/streamline-icons/user.icon.js.map +1 -1
  1410. package/lib/components/Icon/streamline-icons/variable.icon.d.ts +1 -1
  1411. package/lib/components/Icon/streamline-icons/variable.icon.d.ts.map +1 -1
  1412. package/lib/components/Icon/streamline-icons/variable.icon.js +2 -2
  1413. package/lib/components/Icon/streamline-icons/variable.icon.js.map +1 -1
  1414. package/lib/components/Icon/streamline-icons/voice.icon.d.ts +1 -1
  1415. package/lib/components/Icon/streamline-icons/voice.icon.d.ts.map +1 -1
  1416. package/lib/components/Icon/streamline-icons/voice.icon.js +2 -2
  1417. package/lib/components/Icon/streamline-icons/voice.icon.js.map +1 -1
  1418. package/lib/components/Icon/streamline-icons/wand.icon.d.ts +1 -1
  1419. package/lib/components/Icon/streamline-icons/wand.icon.d.ts.map +1 -1
  1420. package/lib/components/Icon/streamline-icons/wand.icon.js +2 -2
  1421. package/lib/components/Icon/streamline-icons/wand.icon.js.map +1 -1
  1422. package/lib/components/Icon/streamline-icons/warn-solid.icon.d.ts +5 -0
  1423. package/lib/components/Icon/streamline-icons/warn-solid.icon.d.ts.map +1 -0
  1424. package/lib/components/Icon/streamline-icons/warn-solid.icon.js +7 -0
  1425. package/lib/components/Icon/streamline-icons/warn-solid.icon.js.map +1 -0
  1426. package/lib/components/Icon/streamline-icons/warn.icon.d.ts +5 -0
  1427. package/lib/components/Icon/streamline-icons/warn.icon.d.ts.map +1 -0
  1428. package/lib/components/Icon/streamline-icons/warn.icon.js +7 -0
  1429. package/lib/components/Icon/streamline-icons/warn.icon.js.map +1 -0
  1430. package/lib/components/Icon/streamline-icons/widget.icon.d.ts +1 -1
  1431. package/lib/components/Icon/streamline-icons/widget.icon.d.ts.map +1 -1
  1432. package/lib/components/Icon/streamline-icons/widget.icon.js +3 -3
  1433. package/lib/components/Icon/streamline-icons/widget.icon.js.map +1 -1
  1434. package/lib/components/Icon/streamline-icons/wifi.icon.d.ts +5 -0
  1435. package/lib/components/Icon/streamline-icons/wifi.icon.d.ts.map +1 -0
  1436. package/lib/components/Icon/streamline-icons/wifi.icon.js +7 -0
  1437. package/lib/components/Icon/streamline-icons/wifi.icon.js.map +1 -0
  1438. package/lib/components/Icon/streamline-icons/youtube.icon.d.ts +5 -0
  1439. package/lib/components/Icon/streamline-icons/youtube.icon.d.ts.map +1 -0
  1440. package/lib/components/Icon/streamline-icons/youtube.icon.js +7 -0
  1441. package/lib/components/Icon/streamline-icons/youtube.icon.js.map +1 -0
  1442. package/lib/components/Icon/streamlineIconNames.d.ts +1 -1
  1443. package/lib/components/Icon/streamlineIconNames.d.ts.map +1 -1
  1444. package/lib/components/Icon/streamlineIconNames.js +66 -11
  1445. package/lib/components/Icon/streamlineIconNames.js.map +1 -1
  1446. package/lib/components/Lightbox/Lightbox.d.ts.map +1 -1
  1447. package/lib/components/Lightbox/Lightbox.js +12 -7
  1448. package/lib/components/Lightbox/Lightbox.js.map +1 -1
  1449. package/lib/components/Lightbox/Lightbox.styles.d.ts +1 -1
  1450. package/lib/components/Lightbox/Lightbox.styles.d.ts.map +1 -1
  1451. package/lib/components/Lightbox/Lightbox.types.d.ts +3 -3
  1452. package/lib/components/Lightbox/Lightbox.types.d.ts.map +1 -1
  1453. package/lib/components/Lightbox/Lightbox.types.js.map +1 -1
  1454. package/lib/components/ListToolbar/ListToolbar.d.ts.map +1 -1
  1455. package/lib/components/ListToolbar/ListToolbar.js +7 -7
  1456. package/lib/components/ListToolbar/ListToolbar.js.map +1 -1
  1457. package/lib/components/Location/LocationView.d.ts +1 -1
  1458. package/lib/components/Location/LocationView.d.ts.map +1 -1
  1459. package/lib/components/Location/LocationView.js +2 -2
  1460. package/lib/components/Location/LocationView.js.map +1 -1
  1461. package/lib/components/MenuButton/MenuButton.d.ts.map +1 -1
  1462. package/lib/components/MenuButton/MenuButton.js +2 -2
  1463. package/lib/components/MenuButton/MenuButton.js.map +1 -1
  1464. package/lib/components/Progress/Progress.styles.d.ts +1 -1
  1465. package/lib/components/Progress/Progress.styles.d.ts.map +1 -1
  1466. package/lib/components/Slider/Slider.d.ts.map +1 -1
  1467. package/lib/components/Slider/Slider.js +12 -2
  1468. package/lib/components/Slider/Slider.js.map +1 -1
  1469. package/lib/components/Slider/Slider.types.d.ts +2 -0
  1470. package/lib/components/Slider/Slider.types.d.ts.map +1 -1
  1471. package/lib/components/Slider/Slider.types.js.map +1 -1
  1472. package/lib/components/SummaryList/SummaryList.d.ts +1 -0
  1473. package/lib/components/SummaryList/SummaryList.d.ts.map +1 -1
  1474. package/lib/components/SummaryList/SummaryList.js +20 -5
  1475. package/lib/components/SummaryList/SummaryList.js.map +1 -1
  1476. package/lib/hooks/useBreakpoint.d.ts.map +1 -1
  1477. package/lib/hooks/useBreakpoint.js +3 -2
  1478. package/lib/hooks/useBreakpoint.js.map +1 -1
  1479. package/lib/hooks/useConsolidatedRef.d.ts.map +1 -1
  1480. package/lib/hooks/useConsolidatedRef.js +3 -4
  1481. package/lib/hooks/useConsolidatedRef.js.map +1 -1
  1482. package/lib/hooks/useI18n.d.ts +1 -0
  1483. package/lib/hooks/useI18n.d.ts.map +1 -1
  1484. package/lib/hooks/useScrollStick.js +73 -96
  1485. package/lib/hooks/useScrollStick.js.map +1 -1
  1486. package/lib/i18n/default.d.ts +1 -0
  1487. package/lib/i18n/default.d.ts.map +1 -1
  1488. package/lib/i18n/default.js +1 -0
  1489. package/lib/i18n/default.js.map +1 -1
  1490. package/lib/i18n/i18n.d.ts +1 -0
  1491. package/lib/i18n/i18n.d.ts.map +1 -1
  1492. package/lib/theme/ThemeMachine.js +4 -24
  1493. package/lib/theme/ThemeMachine.js.map +1 -1
  1494. package/lib/types/types.d.ts +2 -0
  1495. package/lib/types/types.d.ts.map +1 -1
  1496. package/lib/types/types.js.map +1 -1
  1497. package/package.json +7 -7
  1498. package/lib/components/Icon/streamline-icons/ai-assist-solid.icon.d.ts +0 -5
  1499. package/lib/components/Icon/streamline-icons/ai-assist-solid.icon.d.ts.map +0 -1
  1500. package/lib/components/Icon/streamline-icons/ai-assist-solid.icon.js +0 -7
  1501. package/lib/components/Icon/streamline-icons/ai-assist-solid.icon.js.map +0 -1
  1502. package/lib/components/Icon/streamline-icons/arrow-micro-down-solid.icon.d.ts +0 -5
  1503. package/lib/components/Icon/streamline-icons/arrow-micro-down-solid.icon.d.ts.map +0 -1
  1504. package/lib/components/Icon/streamline-icons/arrow-micro-down-solid.icon.js +0 -7
  1505. package/lib/components/Icon/streamline-icons/arrow-micro-down-solid.icon.js.map +0 -1
  1506. package/lib/components/Icon/streamline-icons/arrow-micro-left-solid.icon.d.ts +0 -5
  1507. package/lib/components/Icon/streamline-icons/arrow-micro-left-solid.icon.d.ts.map +0 -1
  1508. package/lib/components/Icon/streamline-icons/arrow-micro-left-solid.icon.js +0 -7
  1509. package/lib/components/Icon/streamline-icons/arrow-micro-left-solid.icon.js.map +0 -1
  1510. package/lib/components/Icon/streamline-icons/arrow-micro-right-solid.icon.d.ts +0 -5
  1511. package/lib/components/Icon/streamline-icons/arrow-micro-right-solid.icon.d.ts.map +0 -1
  1512. package/lib/components/Icon/streamline-icons/arrow-micro-right-solid.icon.js +0 -7
  1513. package/lib/components/Icon/streamline-icons/arrow-micro-right-solid.icon.js.map +0 -1
  1514. package/lib/components/Icon/streamline-icons/bookmarks.icon.d.ts +0 -5
  1515. package/lib/components/Icon/streamline-icons/bookmarks.icon.d.ts.map +0 -1
  1516. package/lib/components/Icon/streamline-icons/bookmarks.icon.js +0 -7
  1517. package/lib/components/Icon/streamline-icons/bookmarks.icon.js.map +0 -1
  1518. package/lib/components/Icon/streamline-icons/dataviz-table.icon.d.ts +0 -5
  1519. package/lib/components/Icon/streamline-icons/dataviz-table.icon.d.ts.map +0 -1
  1520. package/lib/components/Icon/streamline-icons/dataviz-table.icon.js +0 -7
  1521. package/lib/components/Icon/streamline-icons/dataviz-table.icon.js.map +0 -1
  1522. package/lib/components/Icon/streamline-icons/doctor-female.svg.icon.d.ts +0 -5
  1523. package/lib/components/Icon/streamline-icons/doctor-female.svg.icon.d.ts.map +0 -1
  1524. package/lib/components/Icon/streamline-icons/doctor-female.svg.icon.js +0 -7
  1525. package/lib/components/Icon/streamline-icons/doctor-female.svg.icon.js.map +0 -1
  1526. package/lib/components/Icon/streamline-icons/followers.icon.d.ts +0 -5
  1527. package/lib/components/Icon/streamline-icons/followers.icon.d.ts.map +0 -1
  1528. package/lib/components/Icon/streamline-icons/followers.icon.js +0 -7
  1529. package/lib/components/Icon/streamline-icons/followers.icon.js.map +0 -1
  1530. package/lib/components/Icon/streamline-icons/more-solid.icon.d.ts +0 -5
  1531. package/lib/components/Icon/streamline-icons/more-solid.icon.d.ts.map +0 -1
  1532. package/lib/components/Icon/streamline-icons/more-solid.icon.js +0 -7
  1533. package/lib/components/Icon/streamline-icons/more-solid.icon.js.map +0 -1
  1534. package/lib/components/Icon/streamline-icons/transfer-chat.icon.d.ts +0 -5
  1535. package/lib/components/Icon/streamline-icons/transfer-chat.icon.d.ts.map +0 -1
  1536. package/lib/components/Icon/streamline-icons/transfer-chat.icon.js +0 -7
  1537. package/lib/components/Icon/streamline-icons/transfer-chat.icon.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"DateInput.js","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AAK;YACL,WAAW;YACX,EAAE;YACF,IAAI;YACJ,MAAM;YACN,QAAQ;YACR,QAAQ;YACR,mBAAmB;YACnB,cAAc;SACf,EACD,GAAG,EAAE,GAAG,YAEP,IAAI,GACK,CACb,CAAC,CAAC,CAAC,CACF,IAAI,CACL,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,WAAW,CAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC","sourcesContent":["import {\n ClipboardEvent,\n FunctionComponent,\n forwardRef,\n PropsWithoutRef,\n Ref,\n useRef,\n RefObject,\n Dispatch,\n SetStateAction,\n useImperativeHandle,\n useEffect,\n ComponentType\n} from 'react';\nimport styled from 'styled-components';\n\nimport { defaultThemeProp } from '../../../theme';\nimport {\n useConfiguration,\n useFocusWithin,\n useI18n,\n useOuterEvent,\n useTestIds\n} from '../../../hooks';\nimport { ForwardProps } from '../../../types';\nimport FormField from '../../FormField';\nimport Flex from '../../Flex';\nimport Button from '../../Button';\nimport Icon, { registerIcon } from '../../Icon';\nimport * as calendarIcon from '../../Icon/icons/calendar.icon';\nimport DatePicker from '../Picker/DatePicker';\nimport type DatePickerProps from '../Picker/DatePicker.types';\nimport { FormControlProps, HandleValue, StyledFormControl } from '../../FormControl';\nimport DateTimeProps, { DateTimeCallbackParameter } from '../DateTime.types';\nimport { cap, withTestIds } from '../../../utils';\nimport Dialog from '../../Dialog/Dialog';\nimport { getDateInputTestIds } from '../DateTime.test-ids';\n\nimport {\n getDateFormat,\n parsePastedTextToDate,\n parseToDate,\n validateDate,\n generatePickerButtonAriaLabel\n} from './utils';\nimport StyledDateTime, {\n StyledClearNowButtonsContainer,\n StyledDialogContent,\n StyledInputContainer\n} from './DateTime.styles';\nimport useAutoFocusNextInput from './useAutoFocusNextInput';\nimport PartInput from './PartInput';\nimport usePickerButton from './usePickerButton';\nimport type { DateParts } from './DateTimeInput.types';\n\nregisterIcon(calendarIcon);\n\nexport interface DateInputHandleValue extends HandleValue {\n readonly value: Date | undefined;\n setOpen: Dispatch<SetStateAction<boolean>>;\n buttonEl: HTMLElement | null;\n}\n\nexport interface DateInputProps extends DateTimeProps {\n /**\n * Display additional column with week number in date picker popover.\n * @default false\n */\n showWeekNumber?: boolean;\n /** Changes default date picker */\n picker?: {\n renderer: ComponentType;\n rendererProps?: Partial<DatePickerProps> & ForwardProps;\n };\n /** Pass a heading and content to show additional information on the field. */\n additionalInfo?: FormControlProps['additionalInfo'];\n /** Additional properties for imperative control. */\n handle?: Ref<DateInputHandleValue | HandleValue>;\n}\n\nexport const StyledDateInput = styled(StyledDateTime)<DateInputProps>`\n padding-inline-end: 0;\n`;\n\nStyledDateInput.defaultProps = defaultThemeProp;\n\nconst convertToCallbackParameter = (\n date: Date,\n { year, month: monthIndex, day }: DateParts<string | undefined>\n): DateTimeCallbackParameter => {\n if ([year, monthIndex, day].every(Boolean)) {\n if (!validateDate(Number(year), Number(monthIndex) + 1, Number(day))) {\n return {\n valueAsISOString: '',\n valueAsTimestamp: NaN,\n state: 'invalid'\n };\n }\n\n date.setUTCFullYear(Number(year), Number(monthIndex), Number(day));\n return {\n valueAsISOString: date.toISOString(),\n valueAsTimestamp: date.getTime()\n };\n }\n if ([year, monthIndex, day].every(p => !p)) {\n return {\n valueAsISOString: undefined,\n valueAsTimestamp: undefined\n };\n }\n return {\n valueAsISOString: '',\n valueAsTimestamp: NaN,\n state: 'incomplete'\n };\n};\n\nconst DateInput: FunctionComponent<DateInputProps & ForwardProps> = forwardRef(function DateInput(\n props: PropsWithoutRef<DateInputProps>,\n ref: Ref<HTMLFieldSetElement>\n) {\n const { locale } = useConfiguration();\n const {\n testId,\n value,\n min,\n max,\n id,\n label,\n labelHidden,\n info = getDateFormat(locale).join(''),\n status,\n required,\n readOnly,\n disabled,\n onChange,\n onFocus,\n onBlur,\n onResolveSuggestion,\n showWeekNumber,\n picker: { renderer: PickerComp = DatePicker, rendererProps = {} } = {},\n autoFocus,\n additionalInfo,\n handle,\n ...restProps\n } = props;\n\n const testIds = useTestIds(testId, getDateInputTestIds);\n\n const t = useI18n();\n const containerRef = useRef<HTMLElement>(null);\n\n const date = value !== undefined ? parseToDate(value) : undefined;\n\n const [yearInputRef, monthInputRef, dayInputRef] = [\n useRef<HTMLInputElement>(null),\n useRef<HTMLInputElement>(null),\n useRef<HTMLInputElement>(null)\n ];\n\n const pickParts = (): DateParts<string | undefined> => {\n return {\n day: dayInputRef.current?.value || undefined,\n month: monthInputRef.current?.value\n ? (Number(monthInputRef.current.value) - 1).toString()\n : undefined,\n year: yearInputRef.current?.value || undefined\n };\n };\n\n const currentlySelectedDate = () => {\n const parts = pickParts();\n if (Object.values(parts).every(Boolean)) {\n const year = Number(parts.year);\n const monthIndex = Number(parts.month);\n const day = Number(parts.day);\n\n return validateDate(year, monthIndex + 1, day)\n ? new Date(Date.UTC(year, monthIndex, day))\n : undefined;\n }\n };\n\n const [open, setOpen, , setPopoverRef, buttonEl, setButtonEl] = usePickerButton();\n\n const inputContainerRef = useRef<HTMLDivElement>(null);\n\n const onFocusChange = (focused: boolean) => {\n const callbackParam = convertToCallbackParameter(\n date ? new Date(date) : new Date(),\n pickParts()\n );\n if (onFocus && focused) onFocus(callbackParam);\n if (!focused) {\n if (inputContainerRef.current) inputContainerRef.current.scrollTop = 0;\n onBlur?.(callbackParam);\n }\n };\n\n const onInputChange = () => {\n onChange?.(convertToCallbackParameter(date ? new Date(date) : new Date(), pickParts()));\n buttonEl?.setAttribute(\n 'aria-label',\n generatePickerButtonAriaLabel(currentlySelectedDate(), 'date', locale, t, open)\n );\n };\n\n const setInputValue = (newValue?: Date) => {\n if (dayInputRef.current && monthInputRef.current && yearInputRef.current) {\n dayInputRef.current.value = newValue?.getUTCDate().toString().padStart(2, '0') ?? '';\n monthInputRef.current.value =\n (newValue && (newValue.getUTCMonth() + 1).toString().padStart(2, '0')) ?? '';\n yearInputRef.current.value = newValue?.getUTCFullYear().toString() ?? '';\n }\n };\n\n const onPaste = (e: ClipboardEvent) => {\n const text = e.clipboardData.getData('text');\n const newDate = parsePastedTextToDate(text, locale, date || new Date());\n if (newDate) {\n e.preventDefault();\n setInputValue(newDate);\n onInputChange();\n }\n };\n\n // autoclose picker on focusing out\n useOuterEvent('focusin', [containerRef], e => {\n if (containerRef.current?.contains(e.relatedTarget as HTMLElement)) setOpen(false);\n });\n\n const displayNames = new Intl.DisplayNames(locale, { style: 'long', type: 'dateTimeField' });\n\n const DayInput = (\n <PartInput\n data-testid={testIds.controlDay}\n key='day'\n placeholder={t('day_placeholder')}\n aria-label={displayNames.of('day')}\n value={date?.getUTCDate()}\n onChange={onInputChange}\n size={2}\n maxLength={2}\n readOnly={readOnly}\n min={1}\n max={31}\n ref={dayInputRef}\n />\n );\n\n const MonthInput = (\n <PartInput\n data-testid={testIds.controlMonth}\n key='month'\n placeholder={t('month_placeholder')}\n aria-label={displayNames.of('month')}\n value={date ? date.getUTCMonth() + 1 : undefined}\n onChange={onInputChange}\n size={2}\n maxLength={2}\n readOnly={readOnly}\n min={1}\n max={12}\n ref={monthInputRef}\n />\n );\n\n const YearInput = (\n <PartInput\n data-testid={testIds.controlYear}\n key='year'\n placeholder={t('year_placeholder')}\n aria-label={displayNames.of('year')}\n value={date?.getUTCFullYear()}\n onChange={onInputChange}\n size={4}\n maxLength={4}\n padWithZeros={false}\n readOnly={readOnly}\n min={1}\n ref={yearInputRef}\n />\n );\n\n useFocusWithin([containerRef], onFocusChange);\n\n useImperativeHandle(\n handle,\n () => ({\n setOpen,\n buttonEl,\n get value() {\n return currentlySelectedDate();\n },\n clear: () => {\n if (dayInputRef.current) dayInputRef.current.value = '';\n if (monthInputRef.current) monthInputRef.current.value = '';\n if (yearInputRef.current) yearInputRef.current.value = '';\n onInputChange();\n }\n }),\n [onInputChange]\n );\n\n const PickerButton = (\n <>\n <Button\n data-testid={testIds.openClosePicker}\n variant='simple'\n icon\n ref={setButtonEl}\n onClick={() => setOpen(cur => !cur)}\n aria-label={generatePickerButtonAriaLabel(currentlySelectedDate(), 'date', locale, t, open)}\n readOnly={readOnly}\n disabled={disabled}\n >\n <Icon name='calendar' />\n </Button>\n {open && buttonEl && (\n <Dialog\n ref={setPopoverRef}\n target={buttonEl}\n placement='bottom-end'\n ariaLabel={t('choose_date')}\n >\n <Flex container={{ direction: 'column' }} as={StyledDialogContent}>\n <PickerComp\n testId={testIds.root}\n selected={currentlySelectedDate()}\n min={min}\n max={max}\n showWeekNumber={showWeekNumber}\n {...rendererProps}\n onChange={selected => {\n setInputValue(selected);\n setOpen(false);\n setTimeout(() => buttonEl?.focus());\n onInputChange();\n rendererProps?.onChange?.(selected);\n }}\n />\n <Flex as={StyledClearNowButtonsContainer} container={{ justify: 'between' }}>\n <Button\n data-testid={testIds.clearCurrentDate}\n aria-label={t('clear_current_date')}\n onClick={() => {\n setInputValue(undefined);\n setOpen(false);\n setTimeout(() => buttonEl?.focus());\n onInputChange();\n }}\n >\n {t('clear')}\n </Button>\n <Button\n data-testid={testIds.setCurrentDate}\n aria-label={t('set_current_date_a11y')}\n onClick={() => {\n const now = new Date();\n now.setUTCMinutes(now.getMinutes());\n now.setUTCHours(now.getHours());\n now.setUTCSeconds(now.getSeconds());\n setInputValue(now);\n setOpen(false);\n setTimeout(() => buttonEl?.focus());\n onInputChange();\n }}\n >\n {cap(new Intl.RelativeTimeFormat(locale, { numeric: 'auto' }).format(0, 'day'))}\n </Button>\n </Flex>\n </Flex>\n </Dialog>\n )}\n </>\n );\n\n const orderedRefs: RefObject<HTMLInputElement>[] = [];\n\n const Comp = (\n <Flex\n data-testid={testIds.root}\n as={StyledDateInput}\n forwardedAs={StyledFormControl}\n hasSuggestion={status === 'pending' && !!onResolveSuggestion}\n container={{ alignItems: 'center', wrap: 'nowrap' }}\n status={status}\n readOnly={readOnly}\n disabled={disabled}\n ref={containerRef}\n onClick={(e: MouseEvent) => {\n if (e.target === containerRef.current) orderedRefs[0].current?.focus();\n }}\n {...restProps}\n >\n <Flex\n ref={inputContainerRef}\n as={StyledInputContainer}\n container={{ alignItems: 'center', wrap: 'wrap' }}\n onPaste={onPaste}\n >\n {getDateFormat(locale).map(part => {\n switch (part) {\n case 'DD':\n orderedRefs.push(dayInputRef);\n return DayInput;\n case 'MM':\n orderedRefs.push(monthInputRef);\n return MonthInput;\n case 'YYYY':\n orderedRefs.push(yearInputRef);\n return YearInput;\n default:\n return part;\n }\n })}\n </Flex>\n {!readOnly && PickerButton}\n </Flex>\n );\n\n useEffect(() => {\n if (autoFocus) orderedRefs[0].current?.focus();\n }, [autoFocus]);\n\n useAutoFocusNextInput(orderedRefs);\n\n return label ? (\n <FormField\n as='fieldset'\n aria-labelledby={id}\n labelAs='legend'\n {...{\n testId: testIds,\n label,\n labelHidden,\n id,\n info,\n status,\n required,\n disabled,\n onResolveSuggestion,\n additionalInfo\n }}\n ref={ref}\n >\n {Comp}\n </FormField>\n ) : (\n Comp\n );\n});\n\nexport default withTestIds(DateInput, getDateInputTestIds);\n"]}
1
+ {"version":3,"file":"DateInput.js","sourceRoot":"","sources":["../../../../src/components/DateTime/Input/DateInput.tsx"],"names":[],"mappings":";AAAA,OAAO,EAGL,UAAU,EAGV,MAAM,EAIN,mBAAmB,EACnB,SAAS,EAEV,MAAM,OAAO,CAAC;AACf,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,OAAO,EACP,aAAa,EACb,UAAU,EACX,MAAM,gBAAgB,CAAC;AAExB,OAAO,SAAS,MAAM,iBAAiB,CAAC;AACxC,OAAO,IAAI,MAAM,YAAY,CAAC;AAC9B,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,IAAI,EAAE,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,KAAK,YAAY,MAAM,gCAAgC,CAAC;AAC/D,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAE9C,OAAO,EAAiC,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;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,OAAO,UAAU,CAAC;wBACpB,KAAK,MAAM;4BACT,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;4BAC/B,OAAO,SAAS,CAAC;wBACnB;4BACE,OAAO,IAAI,CAAC;qBACf;gBACH,CAAC,CAAC,GACG,EACN,CAAC,QAAQ,IAAI,YAAY,IACrB,CACR,CAAC;IAEF,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,SAAS;YAAE,WAAW,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,CAAC;IACjD,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAEhB,qBAAqB,CAAC,WAAW,CAAC,CAAC;IAEnC,OAAO,KAAK,CAAC,CAAC,CAAC,CACb,KAAC,SAAS,IACR,EAAE,EAAC,UAAU,qBACI,EAAE,EACnB,OAAO,EAAC,QAAQ,KACZ;YACF,MAAM,EAAE,OAAO;YACf,KAAK;YACL,WAAW;YACX,EAAE;YACF,IAAI;YACJ,MAAM;YACN,QAAQ;YACR,QAAQ;YACR,mBAAmB;YACnB,cAAc;SACf,EACD,GAAG,EAAE,GAAG,YAEP,IAAI,GACK,CACb,CAAC,CAAC,CAAC,CACF,IAAI,CACL,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,WAAW,CAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC","sourcesContent":["import {\n ClipboardEvent,\n FunctionComponent,\n forwardRef,\n PropsWithoutRef,\n Ref,\n useRef,\n RefObject,\n Dispatch,\n SetStateAction,\n useImperativeHandle,\n useEffect,\n ComponentType\n} from 'react';\nimport styled from 'styled-components';\n\nimport { defaultThemeProp } from '../../../theme';\nimport {\n useConfiguration,\n useFocusWithin,\n useI18n,\n useOuterEvent,\n useTestIds\n} from '../../../hooks';\nimport { ForwardProps } from '../../../types';\nimport FormField from '../../FormField';\nimport Flex from '../../Flex';\nimport Button from '../../Button';\nimport Icon, { registerIcon } from '../../Icon';\nimport * as calendarIcon from '../../Icon/icons/calendar.icon';\nimport DatePicker from '../Picker/DatePicker';\nimport type DatePickerProps from '../Picker/DatePicker.types';\nimport { FormControlProps, HandleValue, StyledFormControl } from '../../FormControl';\nimport DateTimeProps, { DateTimeCallbackParameter } from '../DateTime.types';\nimport { cap, withTestIds } from '../../../utils';\nimport { getDateInputTestIds } from '../DateTime.test-ids';\n\nimport {\n getDateFormat,\n parsePastedTextToDate,\n parseToDate,\n validateDate,\n generatePickerButtonAriaLabel\n} from './utils';\nimport StyledDateTime, {\n StyledClearNowButtonsContainer,\n StyledDatePickerDialog,\n StyledDialogContent,\n StyledInputContainer\n} from './DateTime.styles';\nimport useAutoFocusNextInput from './useAutoFocusNextInput';\nimport PartInput from './PartInput';\nimport usePickerButton from './usePickerButton';\nimport type { DateParts } from './DateTimeInput.types';\n\nregisterIcon(calendarIcon);\n\nexport interface DateInputHandleValue extends HandleValue {\n readonly value: Date | undefined;\n setOpen: Dispatch<SetStateAction<boolean>>;\n buttonEl: HTMLElement | null;\n}\n\nexport interface DateInputProps extends DateTimeProps {\n /**\n * Display additional column with week number in date picker popover.\n * @default false\n */\n showWeekNumber?: boolean;\n /** Changes default date picker */\n picker?: {\n renderer: ComponentType;\n rendererProps?: Partial<DatePickerProps> & ForwardProps;\n };\n /** Pass a heading and content to show additional information on the field. */\n additionalInfo?: FormControlProps['additionalInfo'];\n /** Additional properties for imperative control. */\n handle?: Ref<DateInputHandleValue | HandleValue>;\n}\n\nexport const StyledDateInput = styled(StyledDateTime)<DateInputProps>`\n padding-inline-end: 0;\n`;\n\nStyledDateInput.defaultProps = defaultThemeProp;\n\nconst convertToCallbackParameter = (\n date: Date,\n { year, month: monthIndex, day }: DateParts<string | undefined>\n): DateTimeCallbackParameter => {\n if ([year, monthIndex, day].every(Boolean)) {\n if (!validateDate(Number(year), Number(monthIndex) + 1, Number(day))) {\n return {\n valueAsISOString: '',\n valueAsTimestamp: NaN,\n state: 'invalid'\n };\n }\n\n date.setUTCFullYear(Number(year), Number(monthIndex), Number(day));\n return {\n valueAsISOString: date.toISOString(),\n valueAsTimestamp: date.getTime()\n };\n }\n if ([year, monthIndex, day].every(p => !p)) {\n return {\n valueAsISOString: undefined,\n valueAsTimestamp: undefined\n };\n }\n return {\n valueAsISOString: '',\n valueAsTimestamp: NaN,\n state: 'incomplete'\n };\n};\n\nconst DateInput: FunctionComponent<DateInputProps & ForwardProps> = forwardRef(function DateInput(\n props: PropsWithoutRef<DateInputProps>,\n ref: Ref<HTMLFieldSetElement>\n) {\n const { locale } = useConfiguration();\n const {\n testId,\n value,\n min,\n max,\n id,\n label,\n labelHidden,\n info = getDateFormat(locale).join(''),\n status,\n required,\n readOnly,\n disabled,\n onChange,\n onFocus,\n onBlur,\n onResolveSuggestion,\n showWeekNumber,\n picker: { renderer: PickerComp = DatePicker, rendererProps = {} } = {},\n autoFocus,\n additionalInfo,\n handle,\n ...restProps\n } = props;\n\n const testIds = useTestIds(testId, getDateInputTestIds);\n\n const t = useI18n();\n const containerRef = useRef<HTMLElement>(null);\n\n const date = value !== undefined ? parseToDate(value) : undefined;\n\n const [yearInputRef, monthInputRef, dayInputRef] = [\n useRef<HTMLInputElement>(null),\n useRef<HTMLInputElement>(null),\n useRef<HTMLInputElement>(null)\n ];\n\n const pickParts = (): DateParts<string | undefined> => {\n return {\n day: dayInputRef.current?.value || undefined,\n month: monthInputRef.current?.value\n ? (Number(monthInputRef.current.value) - 1).toString()\n : undefined,\n year: yearInputRef.current?.value || undefined\n };\n };\n\n const currentlySelectedDate = () => {\n const parts = pickParts();\n if (Object.values(parts).every(Boolean)) {\n const year = Number(parts.year);\n const monthIndex = Number(parts.month);\n const day = Number(parts.day);\n\n return validateDate(year, monthIndex + 1, day)\n ? new Date(Date.UTC(year, monthIndex, day))\n : undefined;\n }\n };\n\n const [open, setOpen, , setPopoverRef, buttonEl, setButtonEl] = usePickerButton();\n\n const inputContainerRef = useRef<HTMLDivElement>(null);\n\n const onFocusChange = (focused: boolean) => {\n const callbackParam = convertToCallbackParameter(\n date ? new Date(date) : new Date(),\n pickParts()\n );\n if (onFocus && focused) onFocus(callbackParam);\n if (!focused) {\n if (inputContainerRef.current) inputContainerRef.current.scrollTop = 0;\n onBlur?.(callbackParam);\n }\n };\n\n const onInputChange = () => {\n onChange?.(convertToCallbackParameter(date ? new Date(date) : new Date(), pickParts()));\n buttonEl?.setAttribute(\n 'aria-label',\n generatePickerButtonAriaLabel(currentlySelectedDate(), 'date', locale, t, open)\n );\n };\n\n const setInputValue = (newValue?: Date) => {\n if (dayInputRef.current && monthInputRef.current && yearInputRef.current) {\n dayInputRef.current.value = newValue?.getUTCDate().toString().padStart(2, '0') ?? '';\n monthInputRef.current.value =\n (newValue && (newValue.getUTCMonth() + 1).toString().padStart(2, '0')) ?? '';\n yearInputRef.current.value = newValue?.getUTCFullYear().toString() ?? '';\n }\n };\n\n const onPaste = (e: ClipboardEvent) => {\n const text = e.clipboardData.getData('text');\n const newDate = parsePastedTextToDate(text, locale, date || new Date());\n if (newDate) {\n e.preventDefault();\n setInputValue(newDate);\n onInputChange();\n }\n };\n\n // autoclose picker on focusing out\n useOuterEvent('focusin', [containerRef], e => {\n if (containerRef.current?.contains(e.relatedTarget as HTMLElement)) setOpen(false);\n });\n\n const displayNames = new Intl.DisplayNames(locale, { style: 'long', type: 'dateTimeField' });\n\n const DayInput = (\n <PartInput\n data-testid={testIds.controlDay}\n key='day'\n placeholder={t('day_placeholder')}\n aria-label={displayNames.of('day')}\n value={date?.getUTCDate()}\n onChange={onInputChange}\n size={2}\n maxLength={2}\n readOnly={readOnly}\n min={1}\n max={31}\n ref={dayInputRef}\n />\n );\n\n const MonthInput = (\n <PartInput\n data-testid={testIds.controlMonth}\n key='month'\n placeholder={t('month_placeholder')}\n aria-label={displayNames.of('month')}\n value={date ? date.getUTCMonth() + 1 : undefined}\n onChange={onInputChange}\n size={2}\n maxLength={2}\n readOnly={readOnly}\n min={1}\n max={12}\n ref={monthInputRef}\n />\n );\n\n const YearInput = (\n <PartInput\n data-testid={testIds.controlYear}\n key='year'\n placeholder={t('year_placeholder')}\n aria-label={displayNames.of('year')}\n value={date?.getUTCFullYear()}\n onChange={onInputChange}\n size={4}\n maxLength={4}\n padWithZeros={false}\n readOnly={readOnly}\n min={1}\n ref={yearInputRef}\n />\n );\n\n useFocusWithin([containerRef], onFocusChange);\n\n useImperativeHandle(\n handle,\n () => ({\n setOpen,\n buttonEl,\n get value() {\n return currentlySelectedDate();\n },\n clear: () => {\n if (dayInputRef.current) dayInputRef.current.value = '';\n if (monthInputRef.current) monthInputRef.current.value = '';\n if (yearInputRef.current) yearInputRef.current.value = '';\n onInputChange();\n }\n }),\n [onInputChange]\n );\n\n const PickerButton = (\n <>\n <Button\n data-testid={testIds.openClosePicker}\n variant='simple'\n icon\n ref={setButtonEl}\n onClick={() => setOpen(cur => !cur)}\n aria-label={generatePickerButtonAriaLabel(currentlySelectedDate(), 'date', locale, t, open)}\n readOnly={readOnly}\n disabled={disabled}\n >\n <Icon name='calendar' />\n </Button>\n {open && buttonEl && (\n <StyledDatePickerDialog\n ref={setPopoverRef}\n target={buttonEl}\n placement='bottom-end'\n ariaLabel={t('choose_date')}\n >\n <Flex container={{ direction: 'column' }} as={StyledDialogContent}>\n <PickerComp\n testId={testIds.root}\n selected={currentlySelectedDate()}\n min={min}\n max={max}\n showWeekNumber={showWeekNumber}\n {...rendererProps}\n onChange={selected => {\n setInputValue(selected);\n setOpen(false);\n setTimeout(() => buttonEl?.focus());\n onInputChange();\n rendererProps?.onChange?.(selected);\n }}\n />\n <Flex as={StyledClearNowButtonsContainer} container={{ justify: 'between' }}>\n <Button\n data-testid={testIds.clearCurrentDate}\n aria-label={t('clear_current_date')}\n onClick={() => {\n setInputValue(undefined);\n setOpen(false);\n setTimeout(() => buttonEl?.focus());\n onInputChange();\n }}\n >\n {t('clear')}\n </Button>\n <Button\n data-testid={testIds.setCurrentDate}\n aria-label={t('set_current_date_a11y')}\n onClick={() => {\n const now = new Date();\n now.setUTCMinutes(now.getMinutes());\n now.setUTCHours(now.getHours());\n now.setUTCSeconds(now.getSeconds());\n setInputValue(now);\n setOpen(false);\n setTimeout(() => buttonEl?.focus());\n onInputChange();\n }}\n >\n {cap(new Intl.RelativeTimeFormat(locale, { numeric: 'auto' }).format(0, 'day'))}\n </Button>\n </Flex>\n </Flex>\n </StyledDatePickerDialog>\n )}\n </>\n );\n\n const orderedRefs: RefObject<HTMLInputElement>[] = [];\n\n const Comp = (\n <Flex\n data-testid={testIds.root}\n as={StyledDateInput}\n forwardedAs={StyledFormControl}\n hasSuggestion={status === 'pending' && !!onResolveSuggestion}\n container={{ alignItems: 'center', wrap: 'nowrap' }}\n status={status}\n readOnly={readOnly}\n disabled={disabled}\n ref={containerRef}\n onClick={(e: MouseEvent) => {\n if (e.target === containerRef.current) orderedRefs[0].current?.focus();\n }}\n {...restProps}\n >\n <Flex\n ref={inputContainerRef}\n as={StyledInputContainer}\n container={{ alignItems: 'center', wrap: 'wrap' }}\n onPaste={onPaste}\n >\n {getDateFormat(locale).map(part => {\n switch (part) {\n case 'DD':\n orderedRefs.push(dayInputRef);\n return DayInput;\n case 'MM':\n orderedRefs.push(monthInputRef);\n return MonthInput;\n case 'YYYY':\n orderedRefs.push(yearInputRef);\n return YearInput;\n default:\n return part;\n }\n })}\n </Flex>\n {!readOnly && PickerButton}\n </Flex>\n );\n\n useEffect(() => {\n if (autoFocus) orderedRefs[0].current?.focus();\n }, [autoFocus]);\n\n useAutoFocusNextInput(orderedRefs);\n\n return label ? (\n <FormField\n as='fieldset'\n aria-labelledby={id}\n labelAs='legend'\n {...{\n testId: testIds,\n label,\n labelHidden,\n id,\n info,\n status,\n required,\n disabled,\n onResolveSuggestion,\n additionalInfo\n }}\n ref={ref}\n >\n {Comp}\n </FormField>\n ) : (\n Comp\n );\n});\n\nexport default withTestIds(DateInput, getDateInputTestIds);\n"]}
@@ -4,4 +4,8 @@ declare const StyledDateTime: import("styled-components").StyledComponent<"div",
4
4
  export default StyledDateTime;
5
5
  export declare const StyledClearNowButtonsContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
6
6
  export declare const StyledDialogContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
7
+ export declare const StyledDatePickerDialog: import("styled-components").StyledComponent<import("react").FC<import("../../Dialog/Dialog.types").BaseDialogProps & {
8
+ labelledbyId?: string | undefined;
9
+ ariaLabel?: string | undefined;
10
+ } & import("react").HTMLAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
7
11
  //# sourceMappingURL=DateTime.styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DateTime.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/DateTime/Input/DateTime.styles.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,SAAS,2GA0CpB,CAAC;AAIH,eAAO,MAAM,oBAAoB,yGAwBhC,CAAC;AAEF,QAAA,MAAM,cAAc,yGAuDlB,CAAC;AAIH,eAAe,cAAc,CAAC;AAE9B,eAAO,MAAM,8BAA8B,yGAOzC,CAAC;AAIH,eAAO,MAAM,mBAAmB,yGAE/B,CAAC"}
1
+ {"version":3,"file":"DateTime.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/DateTime/Input/DateTime.styles.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,SAAS,2GA0CpB,CAAC;AAIH,eAAO,MAAM,oBAAoB,yGAwBhC,CAAC;AAEF,QAAA,MAAM,cAAc,yGAuDlB,CAAC;AAIH,eAAe,cAAc,CAAC;AAE9B,eAAO,MAAM,8BAA8B,yGAOzC,CAAC;AAIH,eAAO,MAAM,mBAAmB,yGAE/B,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;yGAElC,CAAC"}
@@ -3,6 +3,7 @@ import { defaultThemeProp } from '../../../theme';
3
3
  import { StyledButton } from '../../Button';
4
4
  import { StyledPopover } from '../../Popover/Popover.styles';
5
5
  import { StyledSelect } from '../../Select/Select';
6
+ import Dialog from '../../Dialog/Dialog';
6
7
  export const BareInput = styled.input(({ theme, size }) => {
7
8
  return css `
8
9
  color: ${theme.components['form-control']['foreground-color']};
@@ -123,4 +124,8 @@ StyledClearNowButtonsContainer.defaultProps = defaultThemeProp;
123
124
  export const StyledDialogContent = styled.div `
124
125
  overflow: auto;
125
126
  `;
127
+ export const StyledDatePickerDialog = styled(Dialog) `
128
+ min-width: unset;
129
+ `;
130
+ StyledDatePickerDialog.defaultProps = defaultThemeProp;
126
131
  //# sourceMappingURL=DateTime.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DateTime.styles.js","sourceRoot":"","sources":["../../../../src/components/DateTime/Input/DateTime.styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnD,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE;IACxD,OAAO,GAAG,CAAA;aACC,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC,kBAAkB,CAAC;;;aAGpD,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCd,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,SAAS,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAE1C,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;MAIxC,YAAY;;;;;;;;;qBASG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,WAAW,CAAC;;;;qBAI7C,CAAC,CAAC,EAAE,CA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ACJ,CAAC,CAAC,CAAC;AAEH,8BAA8B,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAE/D,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC,GAAG,CAAA;;CAE5C,CAAC","sourcesContent":["import styled, { css } from 'styled-components';\n\nimport { defaultThemeProp } from '../../../theme';\nimport { StyledButton } from '../../Button';\nimport { StyledPopover } from '../../Popover/Popover.styles';\nimport { StyledSelect } from '../../Select/Select';\n\nexport const BareInput = styled.input(({ theme, size }) => {\n return css`\n color: ${theme.components['form-control']['foreground-color']};\n border: 0;\n outline: none;\n width: ${size}ch;\n background-color: transparent;\n text-align: end;\n margin-inline-end: 0.125rem;\n height: inherit;\n\n &::placeholder {\n font-size: 0.6em;\n text-align: center;\n transform: translateY(-0.35ex);\n }\n\n &:last-child {\n text-align: start;\n }\n\n &:nth-child(3) {\n text-align: start;\n &::placeholder {\n text-align: start;\n }\n }\n\n ::-webkit-outer-spin-button,\n ::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n\n &[type='number'] {\n -moz-appearance: textfield;\n }\n\n :not(:first-child) {\n margin-inline-start: 0.125rem;\n }\n `;\n});\n\nBareInput.defaultProps = defaultThemeProp;\n\nexport const StyledInputContainer = styled.div`\n height: inherit;\n overflow: hidden;\n\n > ${StyledSelect} {\n border: 0;\n background-color: transparent;\n color: currentcolor;\n opacity: 1;\n width: max-content;\n\n &:focus:not([readonly]):enabled {\n box-shadow: none;\n font-weight: ${p => p.theme.base['font-weight']['semi-bold']};\n }\n\n option {\n font-weight: ${p => p.theme.base['font-weight'].normal};\n }\n\n @media (pointer: coarse) {\n min-height: inherit;\n }\n }\n`;\n\nconst StyledDateTime = styled.div(props => {\n const {\n theme: {\n base: {\n 'font-family': fontFamily,\n spacing,\n 'border-radius': baseBorderRadius,\n 'hit-area': hitArea\n },\n components: {\n input: { height },\n 'form-control': {\n 'border-radius': formBorderRadius,\n 'foreground-color': fgColor,\n 'border-width': borderWidth,\n ':focus': { 'border-color': focusBorderColor, 'box-shadow': shadow }\n }\n }\n }\n } = props;\n return css`\n min-width: min-content;\n height: ${height};\n min-height: ${hitArea['mouse-min']};\n outline: none;\n padding: 0 ${spacing};\n\n @media (pointer: coarse) {\n min-height: ${hitArea['finger-min']};\n }\n\n &:focus-within:not([disabled]) {\n border-color: ${focusBorderColor};\n box-shadow: ${shadow};\n }\n\n > ${StyledButton} {\n border-radius: calc(${baseBorderRadius} * ${formBorderRadius});\n margin-inline-start: auto;\n border: 0;\n &:enabled {\n color: ${fgColor};\n }\n min-height: calc(${height} - 2 * ${borderWidth});\n height: calc(${height} - 2 * ${borderWidth});\n @media (pointer: coarse) {\n min-height: calc(${hitArea['finger-min']} - 2 * ${borderWidth});\n }\n }\n\n ${StyledPopover},\n ${StyledSelect} {\n font-family: ${fontFamily};\n }\n `;\n});\n\nStyledDateTime.defaultProps = defaultThemeProp;\n\nexport default StyledDateTime;\n\nexport const StyledClearNowButtonsContainer = styled.div(({ theme }) => {\n const spacing = theme.base.spacing;\n\n return css`\n padding-block: calc(${spacing} * 1.5);\n padding-inline: calc(${spacing} * 1.5);\n `;\n});\n\nStyledClearNowButtonsContainer.defaultProps = defaultThemeProp;\n\nexport const StyledDialogContent = styled.div`\n overflow: auto;\n`;\n"]}
1
+ {"version":3,"file":"DateTime.styles.js","sourceRoot":"","sources":["../../../../src/components/DateTime/Input/DateTime.styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,MAAM,CAAC,MAAM,SAAS,GAAG,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BACQ,gBAAgB,MAAM,gBAAgB;;;;iBAIjD,OAAO;;yBAEC,MAAM,UAAU,WAAW;qBAC/B,MAAM,UAAU,WAAW;;2BAErB,OAAO,CAAC,YAAY,CAAC,UAAU,WAAW;;;;MAI/D,aAAa;MACb,YAAY;qBACG,UAAU;;GAE5B,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,cAAc,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAE/C,eAAe,cAAc,CAAC;AAE9B,MAAM,CAAC,MAAM,8BAA8B,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IACrE,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC;IAEnC,OAAO,GAAG,CAAA;0BACc,OAAO;2BACN,OAAO;GAC/B,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,8BAA8B,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAE/D,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC,GAAG,CAAA;;CAE5C,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG,MAAM,CAAC,MAAM,CAAC,CAAA;;CAEnD,CAAC;AAEF,sBAAsB,CAAC,YAAY,GAAG,gBAAgB,CAAC","sourcesContent":["import styled, { css } from 'styled-components';\n\nimport { defaultThemeProp } from '../../../theme';\nimport { StyledButton } from '../../Button';\nimport { StyledPopover } from '../../Popover/Popover.styles';\nimport { StyledSelect } from '../../Select/Select';\nimport Dialog from '../../Dialog/Dialog';\n\nexport const BareInput = styled.input(({ theme, size }) => {\n return css`\n color: ${theme.components['form-control']['foreground-color']};\n border: 0;\n outline: none;\n width: ${size}ch;\n background-color: transparent;\n text-align: end;\n margin-inline-end: 0.125rem;\n height: inherit;\n\n &::placeholder {\n font-size: 0.6em;\n text-align: center;\n transform: translateY(-0.35ex);\n }\n\n &:last-child {\n text-align: start;\n }\n\n &:nth-child(3) {\n text-align: start;\n &::placeholder {\n text-align: start;\n }\n }\n\n ::-webkit-outer-spin-button,\n ::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n\n &[type='number'] {\n -moz-appearance: textfield;\n }\n\n :not(:first-child) {\n margin-inline-start: 0.125rem;\n }\n `;\n});\n\nBareInput.defaultProps = defaultThemeProp;\n\nexport const StyledInputContainer = styled.div`\n height: inherit;\n overflow: hidden;\n\n > ${StyledSelect} {\n border: 0;\n background-color: transparent;\n color: currentcolor;\n opacity: 1;\n width: max-content;\n\n &:focus:not([readonly]):enabled {\n box-shadow: none;\n font-weight: ${p => p.theme.base['font-weight']['semi-bold']};\n }\n\n option {\n font-weight: ${p => p.theme.base['font-weight'].normal};\n }\n\n @media (pointer: coarse) {\n min-height: inherit;\n }\n }\n`;\n\nconst StyledDateTime = styled.div(props => {\n const {\n theme: {\n base: {\n 'font-family': fontFamily,\n spacing,\n 'border-radius': baseBorderRadius,\n 'hit-area': hitArea\n },\n components: {\n input: { height },\n 'form-control': {\n 'border-radius': formBorderRadius,\n 'foreground-color': fgColor,\n 'border-width': borderWidth,\n ':focus': { 'border-color': focusBorderColor, 'box-shadow': shadow }\n }\n }\n }\n } = props;\n return css`\n min-width: min-content;\n height: ${height};\n min-height: ${hitArea['mouse-min']};\n outline: none;\n padding: 0 ${spacing};\n\n @media (pointer: coarse) {\n min-height: ${hitArea['finger-min']};\n }\n\n &:focus-within:not([disabled]) {\n border-color: ${focusBorderColor};\n box-shadow: ${shadow};\n }\n\n > ${StyledButton} {\n border-radius: calc(${baseBorderRadius} * ${formBorderRadius});\n margin-inline-start: auto;\n border: 0;\n &:enabled {\n color: ${fgColor};\n }\n min-height: calc(${height} - 2 * ${borderWidth});\n height: calc(${height} - 2 * ${borderWidth});\n @media (pointer: coarse) {\n min-height: calc(${hitArea['finger-min']} - 2 * ${borderWidth});\n }\n }\n\n ${StyledPopover},\n ${StyledSelect} {\n font-family: ${fontFamily};\n }\n `;\n});\n\nStyledDateTime.defaultProps = defaultThemeProp;\n\nexport default StyledDateTime;\n\nexport const StyledClearNowButtonsContainer = styled.div(({ theme }) => {\n const spacing = theme.base.spacing;\n\n return css`\n padding-block: calc(${spacing} * 1.5);\n padding-inline: calc(${spacing} * 1.5);\n `;\n});\n\nStyledClearNowButtonsContainer.defaultProps = defaultThemeProp;\n\nexport const StyledDialogContent = styled.div`\n overflow: auto;\n`;\n\nexport const StyledDatePickerDialog = styled(Dialog)`\n min-width: unset;\n`;\n\nStyledDatePickerDialog.defaultProps = defaultThemeProp;\n"]}
@@ -11,9 +11,8 @@ import Icon, { registerIcon } from '../../Icon';
11
11
  import * as calendarIcon from '../../Icon/icons/calendar.icon';
12
12
  import DatePicker from '../Picker/DatePicker';
13
13
  import { hasProp, cap, withTestIds } from '../../../utils';
14
- import Dialog from '../../Dialog/Dialog';
15
14
  import { getDateTimeInputTestIds } from '../DateTime.test-ids';
16
- import StyledDateTime, { StyledClearNowButtonsContainer, StyledDialogContent, StyledInputContainer } from './DateTime.styles';
15
+ import StyledDateTime, { StyledClearNowButtonsContainer, StyledDatePickerDialog, StyledDialogContent, StyledInputContainer } from './DateTime.styles';
17
16
  import { generatePickerButtonAriaLabel, getDateFormat, getTimeOptions, is12HClockFormat, parsePastedTextToDate, parseToDate, validateDate, validateTime } from './utils';
18
17
  import useAutoFocusNextInput from './useAutoFocusNextInput';
19
18
  import PartInput from './PartInput';
@@ -321,7 +320,7 @@ const DateTimeInput = forwardRef(function DateTimeInput(props, ref) {
321
320
  useFocusWithin([containerRef], onFocusChange);
322
321
  const Picker = (_jsxs(_Fragment, { children: [_jsx(Button, { "data-testid": testIds.openClosePicker, variant: 'simple', icon: true, ref: setButtonEl, onClick: () => {
323
322
  setOpen(cur => !cur);
324
- }, "aria-label": generatePickerButtonAriaLabel(currentlySelectedDateTime(), 'datetime', locale, t, open), readOnly: readOnly, disabled: disabled, children: _jsx(Icon, { name: 'calendar' }) }), open && buttonEl && (_jsx(Dialog, { ref: setPopoverRef, target: buttonEl, placement: 'bottom-end', ariaLabel: t('choose_date_and_time'), children: _jsxs(Flex, { container: { direction: 'column' }, as: StyledDialogContent, children: [_jsx(DatePicker, { testId: testIds.root, mode: 'datetime', selected: currentlySelectedDateTime(), onChange: selected => {
323
+ }, "aria-label": generatePickerButtonAriaLabel(currentlySelectedDateTime(), 'datetime', locale, t, open), readOnly: readOnly, disabled: disabled, children: _jsx(Icon, { name: 'calendar' }) }), open && buttonEl && (_jsx(StyledDatePickerDialog, { ref: setPopoverRef, target: buttonEl, placement: 'bottom-end', ariaLabel: t('choose_date_and_time'), children: _jsxs(Flex, { container: { direction: 'column' }, as: StyledDialogContent, children: [_jsx(DatePicker, { testId: testIds.root, mode: 'datetime', selected: currentlySelectedDateTime(), onChange: selected => {
325
324
  setInputValue(selected);
326
325
  onInputChange();
327
326
  }, min: min, max: max, showWeekNumber: showWeekNumber, pickerInterval: pickerInterval, withSeconds: withSeconds, clockFormat: clockFormat }), _jsxs(Flex, { as: StyledClearNowButtonsContainer, container: { justify: 'between' }, children: [_jsx(Button, { "data-testid": testIds.clearCurrentDateAndTime, "aria-label": t('clear_current_date_and_time'), onClick: () => {
@@ -1 +1 @@
1
- {"version":3,"file":"DateTimeInput.js","sourceRoot":"","sources":["../../../../src/components/DateTime/Input/DateTimeInput.tsx"],"names":[],"mappings":";AAAA,OAAO,EAEL,UAAU,EAMV,SAAS,EACT,mBAAmB,EACnB,MAAM,EACP,MAAM,OAAO,CAAC;AACf,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGhD,OAAO,EAAoB,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACxE,OAAO,SAAS,MAAM,iBAAiB,CAAC;AACxC,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,OAAO,EACP,aAAa,EACb,UAAU,EACX,MAAM,gBAAgB,CAAC;AACxB,OAAO,MAAM,EAAE,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,IAAI,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QAAQ;YACR,QAAQ;YACR,mBAAmB;YACnB,cAAc;SACf,YAEA,IAAI,GACK,CACb,CAAC,CAAC,CAAC,CACF,IAAI,CACL,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,WAAW,CAAC,aAAa,EAAE,uBAAuB,CAAC,CAAC","sourcesContent":["import {\n ClipboardEvent,\n forwardRef,\n FunctionComponent,\n MouseEvent,\n PropsWithoutRef,\n Ref,\n RefObject,\n useEffect,\n useImperativeHandle,\n useRef\n} from 'react';\nimport styled, { css } from 'styled-components';\n\nimport { ForwardProps } from '../../../types';\nimport { FormControlProps, StyledFormControl } from '../../FormControl';\nimport FormField from '../../FormField';\nimport {\n useConfiguration,\n useConsolidatedRef,\n useFocusWithin,\n useI18n,\n useOuterEvent,\n useTestIds\n} from '../../../hooks';\nimport Select, { Option } from '../../Select';\nimport Flex from '../../Flex';\nimport Button from '../../Button';\nimport Icon, { registerIcon } from '../../Icon';\nimport * as calendarIcon from '../../Icon/icons/calendar.icon';\nimport DatePicker from '../Picker/DatePicker';\nimport { MinuteInterval } from '../Picker/DatePicker.types';\nimport DateTimeProps, { DateTimeCallbackParameter } from '../DateTime.types';\nimport { hasProp, cap, withTestIds } from '../../../utils';\nimport Dialog from '../../Dialog/Dialog';\nimport { getDateTimeInputTestIds } from '../DateTime.test-ids';\n\nimport StyledDateTime, {\n StyledClearNowButtonsContainer,\n StyledDialogContent,\n StyledInputContainer\n} from './DateTime.styles';\nimport {\n ClockFormat,\n generatePickerButtonAriaLabel,\n getDateFormat,\n getTimeOptions,\n is12HClockFormat,\n parsePastedTextToDate,\n parseToDate,\n validateDate,\n validateTime\n} from './utils';\nimport useAutoFocusNextInput from './useAutoFocusNextInput';\nimport PartInput from './PartInput';\nimport usePickerButton from './usePickerButton';\nimport { DateParts, DateTimeParts, TimeParts } from './DateTimeInput.types';\n\nregisterIcon(calendarIcon);\n\nexport interface DateTimeInputProps extends DateTimeProps {\n /**\n * Display the time with seconds.\n * @default false\n */\n withSeconds?: boolean;\n /**\n * Display additional column with week number in date picker popover.\n * @default false\n */\n showWeekNumber?: boolean;\n /**\n * Defines interval for time picker options (in minutes).\n * @default 30\n */\n pickerInterval?: MinuteInterval;\n /** Defines clock format that overrides locale based format. */\n clockFormat?: ClockFormat;\n /** Pass a heading and content to show additional information on the field. */\n additionalInfo?: FormControlProps['additionalInfo'];\n}\n\nexport const StyledDateTimeInput = styled(StyledDateTime)<DateTimeInputProps>(() => {\n return css`\n padding-inline-end: 0;\n min-width: 0;\n `;\n});\n\nconst StyledDateTimeFieldset = styled.fieldset`\n min-width: 0;\n`;\n\nfunction getMeridiem(hour: number) {\n return hour >= 12 ? 'PM' : 'AM';\n}\n\nconst convertTo12h = (hour: number) => {\n let converted: number = hour;\n if (hour > 12) converted = hour - 12;\n else if (hour === 0) converted = 12;\n return converted;\n};\n\nconst convertTo24h = (hour: number, meridiem: string) => {\n let converted: number = hour;\n if (meridiem === 'PM' && hour < 12) converted = hour + 12;\n else if (meridiem === 'AM' && hour === 12) converted = 0;\n return converted;\n};\n\nconst validateDateTime = (\n year: number,\n month: number,\n day: number,\n hour: number,\n minute: number,\n second: number,\n is12h: boolean\n) => {\n return validateDate(year, month, day) && validateTime(hour, minute, second, is12h);\n};\n\nconst convertToCallbackParameter = (\n date: Date,\n parts: DateTimeParts<string | undefined>\n): DateTimeCallbackParameter => {\n const withSeconds = hasProp(parts, 'second');\n const {\n year,\n month: monthIndex,\n day,\n hour,\n minute,\n second = date.getUTCSeconds().toString(),\n dayPeriod: meridiem\n } = parts;\n const toValidate = withSeconds\n ? [year, monthIndex, day, hour, minute, second]\n : [year, monthIndex, day, hour, minute];\n\n if (toValidate.every(Boolean)) {\n const is12h = meridiem !== undefined;\n\n if (\n !validateDateTime(\n Number(year),\n Number(monthIndex) + 1,\n Number(day),\n Number(hour),\n Number(minute),\n Number(second),\n is12h\n )\n ) {\n return {\n valueAsISOString: '',\n valueAsTimestamp: NaN,\n state: 'invalid'\n };\n }\n\n const resultDate = new Date(date);\n resultDate.setUTCFullYear(Number(year), Number(monthIndex), Number(day));\n resultDate.setUTCHours(\n is12h ? convertTo24h(Number(hour), meridiem!) : Number(hour),\n Number(minute),\n Number(second)\n );\n\n return {\n valueAsISOString: resultDate.toISOString(),\n valueAsTimestamp: resultDate.getTime()\n };\n }\n if (toValidate.every(p => !p)) {\n return {\n valueAsISOString: undefined,\n valueAsTimestamp: undefined\n };\n }\n return {\n valueAsISOString: '',\n valueAsTimestamp: NaN,\n state: 'incomplete'\n };\n};\n\nfunction dateOptions() {\n return {\n year: 'numeric',\n month: 'numeric',\n day: 'numeric'\n } as const;\n}\n\nconst DateTimeInput: FunctionComponent<DateTimeInputProps & ForwardProps> = forwardRef(\n function DateTimeInput(\n props: PropsWithoutRef<DateTimeInputProps>,\n ref: Ref<HTMLFieldSetElement>\n ) {\n const { locale } = useConfiguration();\n const {\n testId,\n value,\n min,\n max,\n id,\n label,\n labelHidden,\n withSeconds = false,\n clockFormat,\n info = `${getDateFormat(locale).join('')} ${getDateFormat(\n locale,\n getTimeOptions(withSeconds),\n true\n ).join('')}`,\n status,\n required,\n readOnly,\n disabled,\n showWeekNumber,\n pickerInterval = 30,\n onChange,\n onFocus,\n onBlur,\n onResolveSuggestion,\n additionalInfo,\n autoFocus,\n handle,\n ...restProps\n } = props;\n\n const testIds = useTestIds(testId, getDateTimeInputTestIds);\n\n const t = useI18n();\n const containerRef = useConsolidatedRef(ref);\n\n const dateTime = value !== undefined ? parseToDate(value) : undefined;\n const is12h = clockFormat ? clockFormat === 12 : is12HClockFormat(locale);\n\n const [\n yearInputRef,\n monthInputRef,\n dayInputRef,\n hourInputRef,\n minuteInputRef,\n secondInputRef,\n meridiemSelectRef\n ] = [\n useRef<HTMLInputElement>(null),\n useRef<HTMLInputElement>(null),\n useRef<HTMLInputElement>(null),\n useRef<HTMLInputElement>(null),\n useRef<HTMLInputElement>(null),\n useRef<HTMLInputElement>(null),\n useRef<HTMLSelectElement>(null)\n ];\n\n useAutoFocusNextInput([\n yearInputRef,\n monthInputRef,\n dayInputRef,\n hourInputRef,\n minuteInputRef,\n secondInputRef\n ]);\n\n const setMeridiem = (meridiem: string) => {\n if (meridiemSelectRef.current) {\n meridiemSelectRef.current.value = meridiem;\n }\n };\n\n useEffect(() => {\n if (is12h && meridiemSelectRef.current && dateTime?.getUTCHours()) {\n meridiemSelectRef.current.value = getMeridiem(dateTime?.getUTCHours());\n }\n }, [is12h, dateTime?.getUTCHours()]);\n\n const pickDateParts = (): DateParts<string | undefined> => {\n return {\n day: dayInputRef.current?.value || undefined,\n month: monthInputRef.current?.value\n ? (Number(monthInputRef.current.value) - 1).toString()\n : undefined,\n year: yearInputRef.current?.value || undefined\n };\n };\n\n const pickTimeParts = (): TimeParts<string | undefined> => {\n const parts: TimeParts<string | undefined> = {\n hour: hourInputRef.current?.value || undefined,\n minute: minuteInputRef.current?.value || undefined\n };\n if (withSeconds) parts.second = secondInputRef.current?.value;\n if (is12h) parts.dayPeriod = meridiemSelectRef.current?.value;\n return parts;\n };\n\n const pickParts = (): DateTimeParts<string | undefined> => {\n return { ...pickDateParts(), ...pickTimeParts() };\n };\n\n const currentlySelectedDate = () => {\n const parts = pickDateParts();\n if (Object.values(parts).every(Boolean)) {\n const year = Number(parts.year);\n const month = Number(parts.month);\n const day = Number(parts.day);\n\n return validateDate(year, month + 1, day)\n ? new Date(Date.UTC(year, month, day))\n : undefined;\n }\n };\n\n const currentlySelectedTime = () => {\n const parts = pickParts();\n\n if (Object.values(parts).every(Boolean)) {\n const hour = Number(parts.hour);\n const minute = Number(parts.minute);\n const second = parts.second ? Number(parts.second) : 0;\n\n const current = dateTime ?? new Date();\n return validateTime(hour, minute, second, is12h)\n ? new Date(\n current.setUTCHours(\n is12h ? convertTo24h(hour, parts.dayPeriod!) : hour,\n minute,\n second\n )\n )\n : undefined;\n }\n };\n\n const currentlySelectedDateTime = () => {\n const selectedDate = currentlySelectedDate();\n const selectedTime = currentlySelectedTime();\n\n return selectedDate && selectedTime\n ? new Date(\n selectedDate.setUTCHours(\n selectedTime.getUTCHours(),\n selectedTime.getUTCMinutes(),\n selectedTime.getUTCSeconds()\n )\n )\n : undefined;\n };\n\n const setDefaultTimeIfEmpty = () => {\n // set value to midnight if time empty, skip if date not fully set\n if (\n Object.values(pickDateParts()).every(Boolean) &&\n Object.values(pickTimeParts()).every(p => !p)\n ) {\n if (hourInputRef.current) hourInputRef.current.value = is12h ? '12' : '00';\n\n if (minuteInputRef.current) minuteInputRef.current.value = '00';\n\n if (withSeconds && secondInputRef.current) secondInputRef.current.value = '00';\n\n if (is12h && meridiemSelectRef.current) {\n meridiemSelectRef.current.value = 'AM';\n setMeridiem('AM');\n }\n }\n };\n\n const [open, setOpen, , setPopoverRef, buttonEl, setButtonEl] =\n usePickerButton(setDefaultTimeIfEmpty);\n\n const onInputChange = () => {\n onChange?.(\n convertToCallbackParameter(dateTime ? new Date(dateTime) : new Date(), pickParts())\n );\n buttonEl?.setAttribute(\n 'aria-label',\n generatePickerButtonAriaLabel(currentlySelectedDateTime(), 'datetime', locale, t, open)\n );\n };\n\n const setInputValue = (newValue: Date | undefined) => {\n dayInputRef.current!.value = newValue?.getUTCDate().toString().padStart(2, '0') ?? '';\n monthInputRef.current!.value =\n (newValue && (newValue.getUTCMonth() + 1).toString().padStart(2, '0')) || '';\n yearInputRef.current!.value = newValue?.getUTCFullYear().toString() ?? '';\n\n if (newValue) {\n const hours = newValue.getUTCHours();\n hourInputRef.current!.value = (is12h ? convertTo12h(hours) : hours)\n .toString()\n .padStart(2, '0');\n } else {\n hourInputRef.current!.value = '';\n }\n\n minuteInputRef.current!.value = newValue?.getUTCMinutes().toString().padStart(2, '0') ?? '';\n if (withSeconds) {\n secondInputRef.current!.value = newValue?.getUTCSeconds().toString().padStart(2, '0') ?? '';\n }\n if (meridiemSelectRef.current) {\n meridiemSelectRef.current!.value = newValue ? getMeridiem(newValue.getUTCHours()) : 'AM';\n }\n\n setMeridiem(newValue ? getMeridiem(newValue.getUTCHours()) : 'AM');\n };\n\n const onPaste = (e: ClipboardEvent) => {\n const text = e.clipboardData.getData('text');\n const date = parsePastedTextToDate(text, locale, dateTime || new Date());\n if (date) {\n e.preventDefault();\n setInputValue(date);\n onInputChange();\n }\n };\n\n const inputContainerRef = useRef<HTMLDivElement>(null);\n\n const onFocusChange = (focused: boolean) => {\n const callbackParam = convertToCallbackParameter(\n dateTime ? new Date(dateTime) : new Date(),\n pickParts()\n );\n if (onFocus && focused) onFocus(callbackParam);\n if (!focused) {\n if (inputContainerRef.current) inputContainerRef.current.scrollTop = 0;\n onBlur?.(callbackParam);\n }\n };\n\n // autoclose picker on focusing out\n useOuterEvent('focusin', [containerRef], e => {\n if (containerRef.current?.contains(e.relatedTarget as HTMLElement)) setOpen(false);\n });\n\n useImperativeHandle(\n handle,\n () => ({\n clear: () => {\n if (dayInputRef.current) dayInputRef.current.value = '';\n if (monthInputRef.current) monthInputRef.current.value = '';\n if (yearInputRef.current) yearInputRef.current.value = '';\n if (hourInputRef.current) hourInputRef.current.value = '';\n if (minuteInputRef.current) minuteInputRef.current.value = '';\n if (secondInputRef.current) secondInputRef.current.value = '';\n if (meridiemSelectRef.current) meridiemSelectRef.current.value = '';\n onInputChange();\n }\n }),\n [onInputChange]\n );\n\n const displayNames = new Intl.DisplayNames(locale, { style: 'long', type: 'dateTimeField' });\n\n const DayInput = (\n <PartInput\n data-testid={testIds.controlDay}\n key='day'\n placeholder={t('day_placeholder')}\n aria-label={displayNames.of('day')}\n value={dateTime?.getUTCDate()}\n onChange={onInputChange}\n size={2}\n maxLength={2}\n readOnly={readOnly}\n min={1}\n max={31}\n ref={dayInputRef}\n />\n );\n\n const MonthInput = (\n <PartInput\n data-testid={testIds.controlMonth}\n key='month'\n placeholder={t('month_placeholder')}\n aria-label={displayNames.of('month')}\n value={dateTime ? dateTime.getUTCMonth() + 1 : undefined}\n onChange={onInputChange}\n size={2}\n maxLength={2}\n readOnly={readOnly}\n min={1}\n max={12}\n ref={monthInputRef}\n />\n );\n\n const YearInput = (\n <PartInput\n data-testid={testIds.controlYear}\n key='year'\n placeholder={t('year_placeholder')}\n aria-label={displayNames.of('year')}\n value={dateTime?.getUTCFullYear()}\n onChange={onInputChange}\n size={4}\n maxLength={4}\n padWithZeros={false}\n readOnly={readOnly}\n min={1}\n ref={yearInputRef}\n />\n );\n\n const hour = dateTime && is12h ? convertTo12h(dateTime.getUTCHours()) : dateTime?.getUTCHours();\n\n const HourInput = (\n <PartInput\n data-testid={testIds.controlHour}\n key='hour'\n placeholder={t('hour_placeholder')}\n aria-label={displayNames.of('hour')}\n value={hour}\n onChange={onInputChange}\n size={2}\n maxLength={2}\n readOnly={readOnly}\n min={is12h ? 1 : 0}\n max={is12h ? 12 : 23}\n ref={hourInputRef}\n />\n );\n\n const MinuteInput = (\n <PartInput\n data-testid={testIds.controlMinute}\n key='minute'\n placeholder={t('minute_placeholder')}\n aria-label={displayNames.of('minute')}\n value={dateTime?.getUTCMinutes()}\n onChange={onInputChange}\n size={2}\n maxLength={2}\n readOnly={readOnly}\n max={59}\n ref={minuteInputRef}\n />\n );\n\n const SecondInput = (\n <PartInput\n data-testid={testIds.controlSecond}\n key='second'\n placeholder={t('second_placeholder')}\n aria-label={displayNames.of('second')}\n value={dateTime?.getUTCSeconds()}\n onChange={onInputChange}\n size={2}\n maxLength={2}\n readOnly={readOnly}\n max={59}\n ref={secondInputRef}\n />\n );\n\n const Period = (\n <Select\n data-testid={testIds.controlPeriod}\n ref={meridiemSelectRef}\n aria-label={displayNames.of('dayPeriod')}\n key='period'\n required={required}\n disabled={disabled}\n onChange={() => {\n if (Object.values(pickParts()).every(Boolean)) onInputChange();\n }}\n readOnly={readOnly}\n >\n <Option value='AM'>{t('meridiem_value_am')}</Option>\n <Option value='PM'>{t('meridiem_value_pm')}</Option>\n </Select>\n );\n\n const orderedRefs: RefObject<HTMLInputElement>[] = [];\n\n const dateInputs = getDateFormat(locale, dateOptions()).map(part => {\n switch (part) {\n case 'DD':\n orderedRefs.push(dayInputRef);\n return DayInput;\n case 'MM':\n orderedRefs.push(monthInputRef);\n return MonthInput;\n case 'YYYY':\n orderedRefs.push(yearInputRef);\n return YearInput;\n default:\n return part;\n }\n });\n\n const timeInputs = getDateFormat(locale, getTimeOptions(withSeconds, is12h)).map(part => {\n switch (part) {\n case 'hh':\n orderedRefs.push(hourInputRef);\n return HourInput;\n case 'mm':\n orderedRefs.push(minuteInputRef);\n return MinuteInput;\n case 'ss':\n orderedRefs.push(secondInputRef);\n return SecondInput;\n case 'AM':\n case 'PM':\n return Period;\n default:\n return part;\n }\n });\n\n useEffect(() => {\n if (autoFocus) orderedRefs[0].current?.focus();\n }, [autoFocus]);\n\n useFocusWithin([containerRef], onFocusChange);\n\n const Picker = (\n <>\n <Button\n data-testid={testIds.openClosePicker}\n variant='simple'\n icon\n ref={setButtonEl}\n onClick={() => {\n setOpen(cur => !cur);\n }}\n aria-label={generatePickerButtonAriaLabel(\n currentlySelectedDateTime(),\n 'datetime',\n locale,\n t,\n open\n )}\n readOnly={readOnly}\n disabled={disabled}\n >\n <Icon name='calendar' />\n </Button>\n {open && buttonEl && (\n <Dialog\n ref={setPopoverRef}\n target={buttonEl}\n placement='bottom-end'\n ariaLabel={t('choose_date_and_time')}\n >\n <Flex container={{ direction: 'column' }} as={StyledDialogContent}>\n <DatePicker\n testId={testIds.root}\n mode='datetime'\n selected={currentlySelectedDateTime()}\n onChange={selected => {\n setInputValue(selected);\n onInputChange();\n }}\n min={min}\n max={max}\n showWeekNumber={showWeekNumber}\n pickerInterval={pickerInterval}\n withSeconds={withSeconds}\n clockFormat={clockFormat}\n />\n <Flex as={StyledClearNowButtonsContainer} container={{ justify: 'between' }}>\n <Button\n data-testid={testIds.clearCurrentDateAndTime}\n aria-label={t('clear_current_date_and_time')}\n onClick={() => {\n setInputValue(undefined);\n setOpen(false);\n setTimeout(() => buttonEl?.focus());\n onInputChange();\n }}\n >\n {t('clear')}\n </Button>\n <Button\n data-testid={testIds.setCurrentDateAndTime}\n aria-label={t('set_current_date_and_time_a11y')}\n onClick={() => {\n const now = new Date();\n\n now.setTime(now.getTime() - now.getTimezoneOffset() * 60000);\n\n setInputValue(now);\n\n setOpen(false);\n setTimeout(() => buttonEl?.focus());\n onInputChange();\n }}\n >\n {cap(\n new Intl.RelativeTimeFormat(locale, { numeric: 'auto' }).format(0, 'second')\n )}\n </Button>\n </Flex>\n </Flex>\n </Dialog>\n )}\n </>\n );\n\n const Comp = (\n <Flex\n data-testid={testIds.root}\n as={StyledDateTimeInput}\n forwardedAs={StyledFormControl}\n hasSuggestion={status === 'pending' && !!onResolveSuggestion}\n container={{ alignItems: 'center', wrap: 'nowrap' }}\n status={status}\n readOnly={readOnly}\n disabled={disabled}\n ref={containerRef}\n onClick={(e: MouseEvent) => {\n if (e.target === containerRef.current) orderedRefs[0].current?.focus();\n }}\n {...restProps}\n >\n <Flex\n ref={inputContainerRef}\n as={StyledInputContainer}\n container={{ alignItems: 'center', wrap: 'wrap' }}\n onPaste={onPaste}\n >\n {dateInputs}\n {timeInputs}\n </Flex>\n {!readOnly && Picker}\n </Flex>\n );\n\n useAutoFocusNextInput(orderedRefs);\n\n return label ? (\n <FormField\n as={StyledDateTimeFieldset}\n labelAs='legend'\n aria-labelledby={id}\n ref={ref}\n {...{\n testId: testIds,\n label,\n labelHidden,\n id,\n info,\n status,\n required,\n disabled,\n onResolveSuggestion,\n additionalInfo\n }}\n >\n {Comp}\n </FormField>\n ) : (\n Comp\n );\n }\n);\n\nexport default withTestIds(DateTimeInput, getDateTimeInputTestIds);\n"]}
1
+ {"version":3,"file":"DateTimeInput.js","sourceRoot":"","sources":["../../../../src/components/DateTime/Input/DateTimeInput.tsx"],"names":[],"mappings":";AAAA,OAAO,EAEL,UAAU,EAMV,SAAS,EACT,mBAAmB,EACnB,MAAM,EACP,MAAM,OAAO,CAAC;AACf,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGhD,OAAO,EAAoB,iBAAiB,EAAE,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IAEnC,OAAO,KAAK,CAAC,CAAC,CAAC,CACb,KAAC,SAAS,IACR,EAAE,EAAE,sBAAsB,EAC1B,OAAO,EAAC,QAAQ,qBACC,EAAE,EACnB,GAAG,EAAE,GAAG,KACJ;YACF,MAAM,EAAE,OAAO;YACf,KAAK;YACL,WAAW;YACX,EAAE;YACF,IAAI;YACJ,MAAM;YACN,QAAQ;YACR,QAAQ;YACR,mBAAmB;YACnB,cAAc;SACf,YAEA,IAAI,GACK,CACb,CAAC,CAAC,CAAC,CACF,IAAI,CACL,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,WAAW,CAAC,aAAa,EAAE,uBAAuB,CAAC,CAAC","sourcesContent":["import {\n ClipboardEvent,\n forwardRef,\n FunctionComponent,\n MouseEvent,\n PropsWithoutRef,\n Ref,\n RefObject,\n useEffect,\n useImperativeHandle,\n useRef\n} from 'react';\nimport styled, { css } from 'styled-components';\n\nimport { ForwardProps } from '../../../types';\nimport { FormControlProps, StyledFormControl } from '../../FormControl';\nimport FormField from '../../FormField';\nimport {\n useConfiguration,\n useConsolidatedRef,\n useFocusWithin,\n useI18n,\n useOuterEvent,\n useTestIds\n} from '../../../hooks';\nimport Select, { Option } from '../../Select';\nimport Flex from '../../Flex';\nimport Button from '../../Button';\nimport Icon, { registerIcon } from '../../Icon';\nimport * as calendarIcon from '../../Icon/icons/calendar.icon';\nimport DatePicker from '../Picker/DatePicker';\nimport { MinuteInterval } from '../Picker/DatePicker.types';\nimport DateTimeProps, { DateTimeCallbackParameter } from '../DateTime.types';\nimport { hasProp, cap, withTestIds } from '../../../utils';\nimport { getDateTimeInputTestIds } from '../DateTime.test-ids';\n\nimport StyledDateTime, {\n StyledClearNowButtonsContainer,\n StyledDatePickerDialog,\n StyledDialogContent,\n StyledInputContainer\n} from './DateTime.styles';\nimport {\n ClockFormat,\n generatePickerButtonAriaLabel,\n getDateFormat,\n getTimeOptions,\n is12HClockFormat,\n parsePastedTextToDate,\n parseToDate,\n validateDate,\n validateTime\n} from './utils';\nimport useAutoFocusNextInput from './useAutoFocusNextInput';\nimport PartInput from './PartInput';\nimport usePickerButton from './usePickerButton';\nimport { DateParts, DateTimeParts, TimeParts } from './DateTimeInput.types';\n\nregisterIcon(calendarIcon);\n\nexport interface DateTimeInputProps extends DateTimeProps {\n /**\n * Display the time with seconds.\n * @default false\n */\n withSeconds?: boolean;\n /**\n * Display additional column with week number in date picker popover.\n * @default false\n */\n showWeekNumber?: boolean;\n /**\n * Defines interval for time picker options (in minutes).\n * @default 30\n */\n pickerInterval?: MinuteInterval;\n /** Defines clock format that overrides locale based format. */\n clockFormat?: ClockFormat;\n /** Pass a heading and content to show additional information on the field. */\n additionalInfo?: FormControlProps['additionalInfo'];\n}\n\nexport const StyledDateTimeInput = styled(StyledDateTime)<DateTimeInputProps>(() => {\n return css`\n padding-inline-end: 0;\n min-width: 0;\n `;\n});\n\nconst StyledDateTimeFieldset = styled.fieldset`\n min-width: 0;\n`;\n\nfunction getMeridiem(hour: number) {\n return hour >= 12 ? 'PM' : 'AM';\n}\n\nconst convertTo12h = (hour: number) => {\n let converted: number = hour;\n if (hour > 12) converted = hour - 12;\n else if (hour === 0) converted = 12;\n return converted;\n};\n\nconst convertTo24h = (hour: number, meridiem: string) => {\n let converted: number = hour;\n if (meridiem === 'PM' && hour < 12) converted = hour + 12;\n else if (meridiem === 'AM' && hour === 12) converted = 0;\n return converted;\n};\n\nconst validateDateTime = (\n year: number,\n month: number,\n day: number,\n hour: number,\n minute: number,\n second: number,\n is12h: boolean\n) => {\n return validateDate(year, month, day) && validateTime(hour, minute, second, is12h);\n};\n\nconst convertToCallbackParameter = (\n date: Date,\n parts: DateTimeParts<string | undefined>\n): DateTimeCallbackParameter => {\n const withSeconds = hasProp(parts, 'second');\n const {\n year,\n month: monthIndex,\n day,\n hour,\n minute,\n second = date.getUTCSeconds().toString(),\n dayPeriod: meridiem\n } = parts;\n const toValidate = withSeconds\n ? [year, monthIndex, day, hour, minute, second]\n : [year, monthIndex, day, hour, minute];\n\n if (toValidate.every(Boolean)) {\n const is12h = meridiem !== undefined;\n\n if (\n !validateDateTime(\n Number(year),\n Number(monthIndex) + 1,\n Number(day),\n Number(hour),\n Number(minute),\n Number(second),\n is12h\n )\n ) {\n return {\n valueAsISOString: '',\n valueAsTimestamp: NaN,\n state: 'invalid'\n };\n }\n\n const resultDate = new Date(date);\n resultDate.setUTCFullYear(Number(year), Number(monthIndex), Number(day));\n resultDate.setUTCHours(\n is12h ? convertTo24h(Number(hour), meridiem!) : Number(hour),\n Number(minute),\n Number(second)\n );\n\n return {\n valueAsISOString: resultDate.toISOString(),\n valueAsTimestamp: resultDate.getTime()\n };\n }\n if (toValidate.every(p => !p)) {\n return {\n valueAsISOString: undefined,\n valueAsTimestamp: undefined\n };\n }\n return {\n valueAsISOString: '',\n valueAsTimestamp: NaN,\n state: 'incomplete'\n };\n};\n\nfunction dateOptions() {\n return {\n year: 'numeric',\n month: 'numeric',\n day: 'numeric'\n } as const;\n}\n\nconst DateTimeInput: FunctionComponent<DateTimeInputProps & ForwardProps> = forwardRef(\n function DateTimeInput(\n props: PropsWithoutRef<DateTimeInputProps>,\n ref: Ref<HTMLFieldSetElement>\n ) {\n const { locale } = useConfiguration();\n const {\n testId,\n value,\n min,\n max,\n id,\n label,\n labelHidden,\n withSeconds = false,\n clockFormat,\n info = `${getDateFormat(locale).join('')} ${getDateFormat(\n locale,\n getTimeOptions(withSeconds),\n true\n ).join('')}`,\n status,\n required,\n readOnly,\n disabled,\n showWeekNumber,\n pickerInterval = 30,\n onChange,\n onFocus,\n onBlur,\n onResolveSuggestion,\n additionalInfo,\n autoFocus,\n handle,\n ...restProps\n } = props;\n\n const testIds = useTestIds(testId, getDateTimeInputTestIds);\n\n const t = useI18n();\n const containerRef = useConsolidatedRef(ref);\n\n const dateTime = value !== undefined ? parseToDate(value) : undefined;\n const is12h = clockFormat ? clockFormat === 12 : is12HClockFormat(locale);\n\n const [\n yearInputRef,\n monthInputRef,\n dayInputRef,\n hourInputRef,\n minuteInputRef,\n secondInputRef,\n meridiemSelectRef\n ] = [\n useRef<HTMLInputElement>(null),\n useRef<HTMLInputElement>(null),\n useRef<HTMLInputElement>(null),\n useRef<HTMLInputElement>(null),\n useRef<HTMLInputElement>(null),\n useRef<HTMLInputElement>(null),\n useRef<HTMLSelectElement>(null)\n ];\n\n useAutoFocusNextInput([\n yearInputRef,\n monthInputRef,\n dayInputRef,\n hourInputRef,\n minuteInputRef,\n secondInputRef\n ]);\n\n const setMeridiem = (meridiem: string) => {\n if (meridiemSelectRef.current) {\n meridiemSelectRef.current.value = meridiem;\n }\n };\n\n useEffect(() => {\n if (is12h && meridiemSelectRef.current && dateTime?.getUTCHours()) {\n meridiemSelectRef.current.value = getMeridiem(dateTime?.getUTCHours());\n }\n }, [is12h, dateTime?.getUTCHours()]);\n\n const pickDateParts = (): DateParts<string | undefined> => {\n return {\n day: dayInputRef.current?.value || undefined,\n month: monthInputRef.current?.value\n ? (Number(monthInputRef.current.value) - 1).toString()\n : undefined,\n year: yearInputRef.current?.value || undefined\n };\n };\n\n const pickTimeParts = (): TimeParts<string | undefined> => {\n const parts: TimeParts<string | undefined> = {\n hour: hourInputRef.current?.value || undefined,\n minute: minuteInputRef.current?.value || undefined\n };\n if (withSeconds) parts.second = secondInputRef.current?.value;\n if (is12h) parts.dayPeriod = meridiemSelectRef.current?.value;\n return parts;\n };\n\n const pickParts = (): DateTimeParts<string | undefined> => {\n return { ...pickDateParts(), ...pickTimeParts() };\n };\n\n const currentlySelectedDate = () => {\n const parts = pickDateParts();\n if (Object.values(parts).every(Boolean)) {\n const year = Number(parts.year);\n const month = Number(parts.month);\n const day = Number(parts.day);\n\n return validateDate(year, month + 1, day)\n ? new Date(Date.UTC(year, month, day))\n : undefined;\n }\n };\n\n const currentlySelectedTime = () => {\n const parts = pickParts();\n\n if (Object.values(parts).every(Boolean)) {\n const hour = Number(parts.hour);\n const minute = Number(parts.minute);\n const second = parts.second ? Number(parts.second) : 0;\n\n const current = dateTime ?? new Date();\n return validateTime(hour, minute, second, is12h)\n ? new Date(\n current.setUTCHours(\n is12h ? convertTo24h(hour, parts.dayPeriod!) : hour,\n minute,\n second\n )\n )\n : undefined;\n }\n };\n\n const currentlySelectedDateTime = () => {\n const selectedDate = currentlySelectedDate();\n const selectedTime = currentlySelectedTime();\n\n return selectedDate && selectedTime\n ? new Date(\n selectedDate.setUTCHours(\n selectedTime.getUTCHours(),\n selectedTime.getUTCMinutes(),\n selectedTime.getUTCSeconds()\n )\n )\n : undefined;\n };\n\n const setDefaultTimeIfEmpty = () => {\n // set value to midnight if time empty, skip if date not fully set\n if (\n Object.values(pickDateParts()).every(Boolean) &&\n Object.values(pickTimeParts()).every(p => !p)\n ) {\n if (hourInputRef.current) hourInputRef.current.value = is12h ? '12' : '00';\n\n if (minuteInputRef.current) minuteInputRef.current.value = '00';\n\n if (withSeconds && secondInputRef.current) secondInputRef.current.value = '00';\n\n if (is12h && meridiemSelectRef.current) {\n meridiemSelectRef.current.value = 'AM';\n setMeridiem('AM');\n }\n }\n };\n\n const [open, setOpen, , setPopoverRef, buttonEl, setButtonEl] =\n usePickerButton(setDefaultTimeIfEmpty);\n\n const onInputChange = () => {\n onChange?.(\n convertToCallbackParameter(dateTime ? new Date(dateTime) : new Date(), pickParts())\n );\n buttonEl?.setAttribute(\n 'aria-label',\n generatePickerButtonAriaLabel(currentlySelectedDateTime(), 'datetime', locale, t, open)\n );\n };\n\n const setInputValue = (newValue: Date | undefined) => {\n dayInputRef.current!.value = newValue?.getUTCDate().toString().padStart(2, '0') ?? '';\n monthInputRef.current!.value =\n (newValue && (newValue.getUTCMonth() + 1).toString().padStart(2, '0')) || '';\n yearInputRef.current!.value = newValue?.getUTCFullYear().toString() ?? '';\n\n if (newValue) {\n const hours = newValue.getUTCHours();\n hourInputRef.current!.value = (is12h ? convertTo12h(hours) : hours)\n .toString()\n .padStart(2, '0');\n } else {\n hourInputRef.current!.value = '';\n }\n\n minuteInputRef.current!.value = newValue?.getUTCMinutes().toString().padStart(2, '0') ?? '';\n if (withSeconds) {\n secondInputRef.current!.value = newValue?.getUTCSeconds().toString().padStart(2, '0') ?? '';\n }\n if (meridiemSelectRef.current) {\n meridiemSelectRef.current!.value = newValue ? getMeridiem(newValue.getUTCHours()) : 'AM';\n }\n\n setMeridiem(newValue ? getMeridiem(newValue.getUTCHours()) : 'AM');\n };\n\n const onPaste = (e: ClipboardEvent) => {\n const text = e.clipboardData.getData('text');\n const date = parsePastedTextToDate(text, locale, dateTime || new Date());\n if (date) {\n e.preventDefault();\n setInputValue(date);\n onInputChange();\n }\n };\n\n const inputContainerRef = useRef<HTMLDivElement>(null);\n\n const onFocusChange = (focused: boolean) => {\n const callbackParam = convertToCallbackParameter(\n dateTime ? new Date(dateTime) : new Date(),\n pickParts()\n );\n if (onFocus && focused) onFocus(callbackParam);\n if (!focused) {\n if (inputContainerRef.current) inputContainerRef.current.scrollTop = 0;\n onBlur?.(callbackParam);\n }\n };\n\n // autoclose picker on focusing out\n useOuterEvent('focusin', [containerRef], e => {\n if (containerRef.current?.contains(e.relatedTarget as HTMLElement)) setOpen(false);\n });\n\n useImperativeHandle(\n handle,\n () => ({\n clear: () => {\n if (dayInputRef.current) dayInputRef.current.value = '';\n if (monthInputRef.current) monthInputRef.current.value = '';\n if (yearInputRef.current) yearInputRef.current.value = '';\n if (hourInputRef.current) hourInputRef.current.value = '';\n if (minuteInputRef.current) minuteInputRef.current.value = '';\n if (secondInputRef.current) secondInputRef.current.value = '';\n if (meridiemSelectRef.current) meridiemSelectRef.current.value = '';\n onInputChange();\n }\n }),\n [onInputChange]\n );\n\n const displayNames = new Intl.DisplayNames(locale, { style: 'long', type: 'dateTimeField' });\n\n const DayInput = (\n <PartInput\n data-testid={testIds.controlDay}\n key='day'\n placeholder={t('day_placeholder')}\n aria-label={displayNames.of('day')}\n value={dateTime?.getUTCDate()}\n onChange={onInputChange}\n size={2}\n maxLength={2}\n readOnly={readOnly}\n min={1}\n max={31}\n ref={dayInputRef}\n />\n );\n\n const MonthInput = (\n <PartInput\n data-testid={testIds.controlMonth}\n key='month'\n placeholder={t('month_placeholder')}\n aria-label={displayNames.of('month')}\n value={dateTime ? dateTime.getUTCMonth() + 1 : undefined}\n onChange={onInputChange}\n size={2}\n maxLength={2}\n readOnly={readOnly}\n min={1}\n max={12}\n ref={monthInputRef}\n />\n );\n\n const YearInput = (\n <PartInput\n data-testid={testIds.controlYear}\n key='year'\n placeholder={t('year_placeholder')}\n aria-label={displayNames.of('year')}\n value={dateTime?.getUTCFullYear()}\n onChange={onInputChange}\n size={4}\n maxLength={4}\n padWithZeros={false}\n readOnly={readOnly}\n min={1}\n ref={yearInputRef}\n />\n );\n\n const hour = dateTime && is12h ? convertTo12h(dateTime.getUTCHours()) : dateTime?.getUTCHours();\n\n const HourInput = (\n <PartInput\n data-testid={testIds.controlHour}\n key='hour'\n placeholder={t('hour_placeholder')}\n aria-label={displayNames.of('hour')}\n value={hour}\n onChange={onInputChange}\n size={2}\n maxLength={2}\n readOnly={readOnly}\n min={is12h ? 1 : 0}\n max={is12h ? 12 : 23}\n ref={hourInputRef}\n />\n );\n\n const MinuteInput = (\n <PartInput\n data-testid={testIds.controlMinute}\n key='minute'\n placeholder={t('minute_placeholder')}\n aria-label={displayNames.of('minute')}\n value={dateTime?.getUTCMinutes()}\n onChange={onInputChange}\n size={2}\n maxLength={2}\n readOnly={readOnly}\n max={59}\n ref={minuteInputRef}\n />\n );\n\n const SecondInput = (\n <PartInput\n data-testid={testIds.controlSecond}\n key='second'\n placeholder={t('second_placeholder')}\n aria-label={displayNames.of('second')}\n value={dateTime?.getUTCSeconds()}\n onChange={onInputChange}\n size={2}\n maxLength={2}\n readOnly={readOnly}\n max={59}\n ref={secondInputRef}\n />\n );\n\n const Period = (\n <Select\n data-testid={testIds.controlPeriod}\n ref={meridiemSelectRef}\n aria-label={displayNames.of('dayPeriod')}\n key='period'\n required={required}\n disabled={disabled}\n onChange={() => {\n if (Object.values(pickParts()).every(Boolean)) onInputChange();\n }}\n readOnly={readOnly}\n >\n <Option value='AM'>{t('meridiem_value_am')}</Option>\n <Option value='PM'>{t('meridiem_value_pm')}</Option>\n </Select>\n );\n\n const orderedRefs: RefObject<HTMLInputElement>[] = [];\n\n const dateInputs = getDateFormat(locale, dateOptions()).map(part => {\n switch (part) {\n case 'DD':\n orderedRefs.push(dayInputRef);\n return DayInput;\n case 'MM':\n orderedRefs.push(monthInputRef);\n return MonthInput;\n case 'YYYY':\n orderedRefs.push(yearInputRef);\n return YearInput;\n default:\n return part;\n }\n });\n\n const timeInputs = getDateFormat(locale, getTimeOptions(withSeconds, is12h)).map(part => {\n switch (part) {\n case 'hh':\n orderedRefs.push(hourInputRef);\n return HourInput;\n case 'mm':\n orderedRefs.push(minuteInputRef);\n return MinuteInput;\n case 'ss':\n orderedRefs.push(secondInputRef);\n return SecondInput;\n case 'AM':\n case 'PM':\n return Period;\n default:\n return part;\n }\n });\n\n useEffect(() => {\n if (autoFocus) orderedRefs[0].current?.focus();\n }, [autoFocus]);\n\n useFocusWithin([containerRef], onFocusChange);\n\n const Picker = (\n <>\n <Button\n data-testid={testIds.openClosePicker}\n variant='simple'\n icon\n ref={setButtonEl}\n onClick={() => {\n setOpen(cur => !cur);\n }}\n aria-label={generatePickerButtonAriaLabel(\n currentlySelectedDateTime(),\n 'datetime',\n locale,\n t,\n open\n )}\n readOnly={readOnly}\n disabled={disabled}\n >\n <Icon name='calendar' />\n </Button>\n {open && buttonEl && (\n <StyledDatePickerDialog\n ref={setPopoverRef}\n target={buttonEl}\n placement='bottom-end'\n ariaLabel={t('choose_date_and_time')}\n >\n <Flex container={{ direction: 'column' }} as={StyledDialogContent}>\n <DatePicker\n testId={testIds.root}\n mode='datetime'\n selected={currentlySelectedDateTime()}\n onChange={selected => {\n setInputValue(selected);\n onInputChange();\n }}\n min={min}\n max={max}\n showWeekNumber={showWeekNumber}\n pickerInterval={pickerInterval}\n withSeconds={withSeconds}\n clockFormat={clockFormat}\n />\n <Flex as={StyledClearNowButtonsContainer} container={{ justify: 'between' }}>\n <Button\n data-testid={testIds.clearCurrentDateAndTime}\n aria-label={t('clear_current_date_and_time')}\n onClick={() => {\n setInputValue(undefined);\n setOpen(false);\n setTimeout(() => buttonEl?.focus());\n onInputChange();\n }}\n >\n {t('clear')}\n </Button>\n <Button\n data-testid={testIds.setCurrentDateAndTime}\n aria-label={t('set_current_date_and_time_a11y')}\n onClick={() => {\n const now = new Date();\n\n now.setTime(now.getTime() - now.getTimezoneOffset() * 60000);\n\n setInputValue(now);\n\n setOpen(false);\n setTimeout(() => buttonEl?.focus());\n onInputChange();\n }}\n >\n {cap(\n new Intl.RelativeTimeFormat(locale, { numeric: 'auto' }).format(0, 'second')\n )}\n </Button>\n </Flex>\n </Flex>\n </StyledDatePickerDialog>\n )}\n </>\n );\n\n const Comp = (\n <Flex\n data-testid={testIds.root}\n as={StyledDateTimeInput}\n forwardedAs={StyledFormControl}\n hasSuggestion={status === 'pending' && !!onResolveSuggestion}\n container={{ alignItems: 'center', wrap: 'nowrap' }}\n status={status}\n readOnly={readOnly}\n disabled={disabled}\n ref={containerRef}\n onClick={(e: MouseEvent) => {\n if (e.target === containerRef.current) orderedRefs[0].current?.focus();\n }}\n {...restProps}\n >\n <Flex\n ref={inputContainerRef}\n as={StyledInputContainer}\n container={{ alignItems: 'center', wrap: 'wrap' }}\n onPaste={onPaste}\n >\n {dateInputs}\n {timeInputs}\n </Flex>\n {!readOnly && Picker}\n </Flex>\n );\n\n useAutoFocusNextInput(orderedRefs);\n\n return label ? (\n <FormField\n as={StyledDateTimeFieldset}\n labelAs='legend'\n aria-labelledby={id}\n ref={ref}\n {...{\n testId: testIds,\n label,\n labelHidden,\n id,\n info,\n status,\n required,\n disabled,\n onResolveSuggestion,\n additionalInfo\n }}\n >\n {Comp}\n </FormField>\n ) : (\n Comp\n );\n }\n);\n\nexport default withTestIds(DateTimeInput, getDateTimeInputTestIds);\n"]}
@@ -11,10 +11,9 @@ import * as calendarIcon from '../../Icon/icons/calendar.icon';
11
11
  import Flex from '../../Flex';
12
12
  import { StyledFormControl } from '../../FormControl';
13
13
  import DatePicker from '../Picker/DatePicker';
14
- import Dialog from '../../Dialog/Dialog';
15
14
  import { getWeekInputTestIds } from '../DateTime.test-ids';
16
15
  import { parseToDate, getWeekYear, getWeek, generatePickerButtonAriaLabel, convertWeekYearToDate } from './utils';
17
- import StyledDateTime, { BareInput, StyledDialogContent, StyledInputContainer } from './DateTime.styles';
16
+ import StyledDateTime, { BareInput, StyledDatePickerDialog, StyledDialogContent, StyledInputContainer } from './DateTime.styles';
18
17
  import usePickerButton from './usePickerButton';
19
18
  import PartInput from './PartInput';
20
19
  import useAutoFocusNextInput from './useAutoFocusNextInput';
@@ -107,7 +106,7 @@ const WeekInput = forwardRef(function WeekInput(props, ref) {
107
106
  const WeekNumberInput = (_jsx(PartInput, { "data-testid": testIds.controlWeek, placeholder: t('week_placeholder'), "aria-label": displayNames.of('weekOfYear'), value: date ? getWeek(date) : undefined, onChange: onInputChange, size: 2, maxLength: 2, min: 1, max: 53, readOnly: readOnly, ref: weekInputRef, autoFocus: autoFocus }, 'week'));
108
107
  const YearInput = (_jsx(PartInput, { "data-testid": testIds.controlYear, placeholder: t('year_placeholder'), "aria-label": displayNames.of('year'), value: date ? getWeekYear(date) : undefined, onChange: onInputChange, size: 4, maxLength: 4, min: 1, readOnly: readOnly, ref: yearInputRef }, 'year'));
109
108
  useFocusWithin([containerRef], onFocusChange);
110
- const Picker = (_jsxs(_Fragment, { children: [_jsx(Button, { "data-testid": testIds.openClosePicker, variant: 'simple', icon: true, ref: setButtonEl, onClick: () => setOpen(cur => !cur), "aria-label": generatePickerButtonAriaLabel(currentlySelectedDate(), 'week', locale, t, open), readOnly: readOnly, disabled: disabled, children: _jsx(Icon, { name: 'calendar' }) }), open && buttonEl && (_jsx(Dialog, { ref: setPopoverRef, target: buttonEl, ariaLabel: t('choose_week'), children: _jsx(Flex, { container: { direction: 'column' }, as: StyledDialogContent, children: _jsx(DatePicker, { testId: testIds.root, selected: currentlySelectedDate(), onChange: selected => {
109
+ const Picker = (_jsxs(_Fragment, { children: [_jsx(Button, { "data-testid": testIds.openClosePicker, variant: 'simple', icon: true, ref: setButtonEl, onClick: () => setOpen(cur => !cur), "aria-label": generatePickerButtonAriaLabel(currentlySelectedDate(), 'week', locale, t, open), readOnly: readOnly, disabled: disabled, children: _jsx(Icon, { name: 'calendar' }) }), open && buttonEl && (_jsx(StyledDatePickerDialog, { ref: setPopoverRef, target: buttonEl, ariaLabel: t('choose_week'), children: _jsx(Flex, { container: { direction: 'column' }, as: StyledDialogContent, children: _jsx(DatePicker, { testId: testIds.root, selected: currentlySelectedDate(), onChange: selected => {
111
110
  weekInputRef.current.value =
112
111
  (selected && getWeek(selected).toString().padStart(2, '0')) || '';
113
112
  yearInputRef.current.value = (selected && getWeekYear(selected).toString()) || '';
@@ -1 +1 @@
1
- {"version":3,"file":"WeekInput.js","sourceRoot":"","sources":["../../../../src/components/DateTime/Input/WeekInput.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAqB,UAAU,EAAwB,MAAM,EAAE,MAAM,OAAO,CAAC;AACpF,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAElD,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,OAAO,EACP,aAAa,EACb,UAAU,EACX,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,SAAS,MAAM,iBAAiB,CAAC;AACxC,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,IAAI,EAAE,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,KAAK,YAAY,MAAM,gCAAgC,CAAC;AAC/D,OAAO,IAAI,MAAM,YAAY,CAAC;AAC9B,OAAO,EAAoB,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K,EAAE,CAAC;QACvE,CAAC,KACG,SAAS,aAEb,MAAC,IAAI,IACH,GAAG,EAAE,iBAAiB,EACtB,EAAE,EAAE,oBAAoB,EACxB,SAAS,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,aAEhD,GAAG,CAAC,YAAY,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,OAAG,eAAe,OAAG,SAAS,IAC5D,EACN,CAAC,QAAQ,IAAI,MAAM,IACf,CACR,CAAC;IAEF,OAAO,KAAK,CAAC,CAAC,CAAC,CACb,KAAC,SAAS,IACR,EAAE,EAAC,UAAU,EACb,OAAO,EAAC,QAAQ,KACZ;YACF,MAAM,EAAE,OAAO;YACf,KAAK;YACL,WAAW;YACX,EAAE;YACF,IAAI;YACJ,MAAM;YACN,QAAQ;YACR,QAAQ;YACR,cAAc;SACf,EACD,GAAG,EAAE,GAAG,YAEP,IAAI,GACK,CACb,CAAC,CAAC,CAAC,CACF,IAAI,CACL,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,WAAW,CAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC","sourcesContent":["import { FunctionComponent, forwardRef, PropsWithoutRef, Ref, useRef } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport { defaultThemeProp } from '../../../theme';\nimport { ForwardProps, OmitStrict } from '../../../types';\nimport {\n useConfiguration,\n useConsolidatedRef,\n useFocusWithin,\n useI18n,\n useOuterEvent,\n useTestIds\n} from '../../../hooks';\nimport { cap, withTestIds } from '../../../utils';\nimport FormField from '../../FormField';\nimport Button from '../../Button';\nimport Icon, { registerIcon } from '../../Icon';\nimport * as calendarIcon from '../../Icon/icons/calendar.icon';\nimport Flex from '../../Flex';\nimport { FormControlProps, StyledFormControl } from '../../FormControl';\nimport DatePicker from '../Picker/DatePicker';\nimport DateTimeProps, { DateTimeCallbackParameter } from '../DateTime.types';\nimport Dialog from '../../Dialog/Dialog';\nimport { getWeekInputTestIds } from '../DateTime.test-ids';\n\nimport {\n parseToDate,\n getWeekYear,\n getWeek,\n generatePickerButtonAriaLabel,\n convertWeekYearToDate\n} from './utils';\nimport StyledDateTime, {\n BareInput,\n StyledDialogContent,\n StyledInputContainer\n} from './DateTime.styles';\nimport usePickerButton from './usePickerButton';\nimport PartInput from './PartInput';\nimport useAutoFocusNextInput from './useAutoFocusNextInput';\nimport type { DateParts } from './DateTimeInput.types';\n\nregisterIcon(calendarIcon);\n\nexport interface WeekInputProps\n extends OmitStrict<FormControlProps, 'value' | 'defaultValue'>,\n DateTimeProps {}\n\nexport const StyledWeekInput = styled(StyledDateTime)<WeekInputProps>(props => {\n const {\n theme: { base }\n } = props;\n\n return css`\n padding-inline-end: 0;\n\n ${StyledInputContainer} > ${BareInput}:first-of-type {\n margin-inline-start: ${base.spacing};\n }\n `;\n});\n\nStyledWeekInput.defaultProps = defaultThemeProp;\n\nconst convertToCallbackParameter = (\n date: Date,\n parts: DateParts<string | undefined>\n): DateTimeCallbackParameter => {\n if ([parts.week, parts.year].every(Boolean)) {\n const { year, month, day } = convertWeekYearToDate(parts) ?? {};\n date.setUTCFullYear(Number(year), Number(month), Number(day));\n return {\n valueAsISOString: date.toISOString(),\n valueAsTimestamp: date.getTime()\n };\n }\n if ([parts.week, parts.year].every(p => !p)) {\n return {\n valueAsISOString: undefined,\n valueAsTimestamp: undefined\n };\n }\n return {\n valueAsISOString: '',\n valueAsTimestamp: NaN,\n state: 'incomplete'\n };\n};\n\nconst WeekInput: FunctionComponent<WeekInputProps & ForwardProps> = forwardRef(function WeekInput(\n props: PropsWithoutRef<WeekInputProps>,\n ref: Ref<HTMLFieldSetElement>\n) {\n const {\n testId,\n value,\n min,\n max,\n id,\n label,\n labelHidden,\n status,\n info,\n required,\n readOnly,\n disabled,\n onChange,\n onFocus,\n onBlur,\n autoFocus,\n additionalInfo,\n ...restProps\n } = props;\n\n const testIds = useTestIds(testId, getWeekInputTestIds);\n\n const { locale } = useConfiguration();\n const t = useI18n();\n const containerRef = useConsolidatedRef(ref);\n\n const date = value !== undefined ? parseToDate(value) : undefined;\n\n const [weekInputRef, yearInputRef] = [\n useRef<HTMLInputElement>(null),\n useRef<HTMLInputElement>(null)\n ];\n\n useAutoFocusNextInput([weekInputRef, yearInputRef]);\n\n const pickParts = (): DateParts<string | undefined> => {\n return {\n week: weekInputRef.current?.value || undefined,\n year: yearInputRef.current?.value || undefined\n };\n };\n\n const currentlySelectedDate = () => {\n const dateParts = convertWeekYearToDate(pickParts());\n if (dateParts) {\n const year = Number(dateParts.year);\n const month = Number(dateParts.month);\n const day = Number(dateParts.day);\n\n const current = date ?? new Date();\n return new Date(\n current.setUTCFullYear(\n year ?? current.getUTCFullYear(),\n month ?? current.getUTCMonth(),\n day ?? current.getUTCDate()\n )\n );\n }\n };\n\n const inputContainerRef = useRef<HTMLDivElement>(null);\n\n const onFocusChange = (focused: boolean) => {\n const callbackParam = convertToCallbackParameter(\n date ? new Date(date) : new Date(),\n pickParts()\n );\n if (onFocus && focused) onFocus(callbackParam);\n if (!focused) {\n if (inputContainerRef.current) inputContainerRef.current.scrollTop = 0;\n onBlur?.(callbackParam);\n }\n };\n\n const [open, setOpen, , setPopoverRef, buttonEl, setButtonEl] = usePickerButton();\n\n const onInputChange = () => {\n onChange?.(convertToCallbackParameter(date ? new Date(date) : new Date(), pickParts()));\n buttonEl?.setAttribute(\n 'aria-label',\n generatePickerButtonAriaLabel(currentlySelectedDate(), 'week', locale, t, open)\n );\n };\n\n // autoclose picker on focusing out\n useOuterEvent('focusin', [containerRef], e => {\n if (containerRef.current?.contains(e.relatedTarget as HTMLElement)) setOpen(false);\n });\n\n const displayNames = new Intl.DisplayNames(locale, {\n style: 'long',\n type: 'dateTimeField'\n }) as Intl.DateTimeDisplayNames;\n\n const WeekNumberInput = (\n <PartInput\n data-testid={testIds.controlWeek}\n key='week'\n placeholder={t('week_placeholder')}\n aria-label={displayNames.of('weekOfYear')}\n value={date ? getWeek(date) : undefined}\n onChange={onInputChange}\n size={2}\n maxLength={2}\n min={1}\n max={53}\n readOnly={readOnly}\n ref={weekInputRef}\n autoFocus={autoFocus}\n />\n );\n\n const YearInput = (\n <PartInput\n data-testid={testIds.controlYear}\n key='year'\n placeholder={t('year_placeholder')}\n aria-label={displayNames.of('year')}\n value={date ? getWeekYear(date) : undefined}\n onChange={onInputChange}\n size={4}\n maxLength={4}\n min={1}\n readOnly={readOnly}\n ref={yearInputRef}\n />\n );\n\n useFocusWithin([containerRef], onFocusChange);\n\n const Picker = (\n <>\n <Button\n data-testid={testIds.openClosePicker}\n variant='simple'\n icon\n ref={setButtonEl}\n onClick={() => setOpen(cur => !cur)}\n aria-label={generatePickerButtonAriaLabel(currentlySelectedDate(), 'week', locale, t, open)}\n readOnly={readOnly}\n disabled={disabled}\n >\n <Icon name='calendar' />\n </Button>\n {open && buttonEl && (\n <Dialog ref={setPopoverRef} target={buttonEl} ariaLabel={t('choose_week')}>\n <Flex container={{ direction: 'column' }} as={StyledDialogContent}>\n <DatePicker\n testId={testIds.root}\n selected={currentlySelectedDate()}\n onChange={selected => {\n weekInputRef.current!.value =\n (selected && getWeek(selected).toString().padStart(2, '0')) || '';\n yearInputRef.current!.value = (selected && getWeekYear(selected).toString()) || '';\n setOpen(false);\n setTimeout(() => buttonEl?.focus());\n onInputChange();\n }}\n min={min}\n max={max}\n mode='week'\n />\n </Flex>\n </Dialog>\n )}\n </>\n );\n\n const Comp = (\n <Flex\n data-testid={testIds.root}\n as={StyledWeekInput}\n forwardedAs={StyledFormControl}\n container={{ alignItems: 'center', wrap: 'nowrap' }}\n status={status}\n readOnly={readOnly}\n disabled={disabled}\n ref={containerRef}\n onClick={(e: MouseEvent) => {\n if (e.target === containerRef.current) weekInputRef.current?.focus();\n }}\n {...restProps}\n >\n <Flex\n ref={inputContainerRef}\n as={StyledInputContainer}\n container={{ alignItems: 'center', wrap: 'wrap' }}\n >\n {cap(displayNames.of('weekOfYear'))} {WeekNumberInput},{YearInput}\n </Flex>\n {!readOnly && Picker}\n </Flex>\n );\n\n return label ? (\n <FormField\n as='fieldset'\n labelAs='legend'\n {...{\n testId: testIds,\n label,\n labelHidden,\n id,\n info,\n status,\n required,\n disabled,\n additionalInfo\n }}\n ref={ref}\n >\n {Comp}\n </FormField>\n ) : (\n Comp\n );\n});\n\nexport default withTestIds(WeekInput, getWeekInputTestIds);\n"]}
1
+ {"version":3,"file":"WeekInput.js","sourceRoot":"","sources":["../../../../src/components/DateTime/Input/WeekInput.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAqB,UAAU,EAAwB,MAAM,EAAE,MAAM,OAAO,CAAC;AACpF,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAElD,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,OAAO,EACP,aAAa,EACb,UAAU,EACX,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,SAAS,MAAM,iBAAiB,CAAC;AACxC,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,IAAI,EAAE,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,KAAK,YAAY,MAAM,gCAAgC,CAAC;AAC/D,OAAO,IAAI,MAAM,YAAY,CAAC;AAC9B,OAAO,EAAoB,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACxE,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAE9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,EACL,WAAW,EACX,WAAW,EACX,OAAO,EACP,6BAA6B,EAC7B,qBAAqB,EACtB,MAAM,SAAS,CAAC;AACjB,OAAO,cAAc,EAAE,EACrB,SAAS,EACT,sBAAsB,EACtB,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,mBAAmB,CAAC;AAC3B,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ACb,KAAC,SAAS,IACR,EAAE,EAAC,UAAU,EACb,OAAO,EAAC,QAAQ,KACZ;YACF,MAAM,EAAE,OAAO;YACf,KAAK;YACL,WAAW;YACX,EAAE;YACF,IAAI;YACJ,MAAM;YACN,QAAQ;YACR,QAAQ;YACR,cAAc;SACf,EACD,GAAG,EAAE,GAAG,YAEP,IAAI,GACK,CACb,CAAC,CAAC,CAAC,CACF,IAAI,CACL,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,WAAW,CAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC","sourcesContent":["import { FunctionComponent, forwardRef, PropsWithoutRef, Ref, useRef } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport { defaultThemeProp } from '../../../theme';\nimport { ForwardProps, OmitStrict } from '../../../types';\nimport {\n useConfiguration,\n useConsolidatedRef,\n useFocusWithin,\n useI18n,\n useOuterEvent,\n useTestIds\n} from '../../../hooks';\nimport { cap, withTestIds } from '../../../utils';\nimport FormField from '../../FormField';\nimport Button from '../../Button';\nimport Icon, { registerIcon } from '../../Icon';\nimport * as calendarIcon from '../../Icon/icons/calendar.icon';\nimport Flex from '../../Flex';\nimport { FormControlProps, StyledFormControl } from '../../FormControl';\nimport DatePicker from '../Picker/DatePicker';\nimport DateTimeProps, { DateTimeCallbackParameter } from '../DateTime.types';\nimport { getWeekInputTestIds } from '../DateTime.test-ids';\n\nimport {\n parseToDate,\n getWeekYear,\n getWeek,\n generatePickerButtonAriaLabel,\n convertWeekYearToDate\n} from './utils';\nimport StyledDateTime, {\n BareInput,\n StyledDatePickerDialog,\n StyledDialogContent,\n StyledInputContainer\n} from './DateTime.styles';\nimport usePickerButton from './usePickerButton';\nimport PartInput from './PartInput';\nimport useAutoFocusNextInput from './useAutoFocusNextInput';\nimport type { DateParts } from './DateTimeInput.types';\n\nregisterIcon(calendarIcon);\n\nexport interface WeekInputProps\n extends OmitStrict<FormControlProps, 'value' | 'defaultValue'>,\n DateTimeProps {}\n\nexport const StyledWeekInput = styled(StyledDateTime)<WeekInputProps>(props => {\n const {\n theme: { base }\n } = props;\n\n return css`\n padding-inline-end: 0;\n\n ${StyledInputContainer} > ${BareInput}:first-of-type {\n margin-inline-start: ${base.spacing};\n }\n `;\n});\n\nStyledWeekInput.defaultProps = defaultThemeProp;\n\nconst convertToCallbackParameter = (\n date: Date,\n parts: DateParts<string | undefined>\n): DateTimeCallbackParameter => {\n if ([parts.week, parts.year].every(Boolean)) {\n const { year, month, day } = convertWeekYearToDate(parts) ?? {};\n date.setUTCFullYear(Number(year), Number(month), Number(day));\n return {\n valueAsISOString: date.toISOString(),\n valueAsTimestamp: date.getTime()\n };\n }\n if ([parts.week, parts.year].every(p => !p)) {\n return {\n valueAsISOString: undefined,\n valueAsTimestamp: undefined\n };\n }\n return {\n valueAsISOString: '',\n valueAsTimestamp: NaN,\n state: 'incomplete'\n };\n};\n\nconst WeekInput: FunctionComponent<WeekInputProps & ForwardProps> = forwardRef(function WeekInput(\n props: PropsWithoutRef<WeekInputProps>,\n ref: Ref<HTMLFieldSetElement>\n) {\n const {\n testId,\n value,\n min,\n max,\n id,\n label,\n labelHidden,\n status,\n info,\n required,\n readOnly,\n disabled,\n onChange,\n onFocus,\n onBlur,\n autoFocus,\n additionalInfo,\n ...restProps\n } = props;\n\n const testIds = useTestIds(testId, getWeekInputTestIds);\n\n const { locale } = useConfiguration();\n const t = useI18n();\n const containerRef = useConsolidatedRef(ref);\n\n const date = value !== undefined ? parseToDate(value) : undefined;\n\n const [weekInputRef, yearInputRef] = [\n useRef<HTMLInputElement>(null),\n useRef<HTMLInputElement>(null)\n ];\n\n useAutoFocusNextInput([weekInputRef, yearInputRef]);\n\n const pickParts = (): DateParts<string | undefined> => {\n return {\n week: weekInputRef.current?.value || undefined,\n year: yearInputRef.current?.value || undefined\n };\n };\n\n const currentlySelectedDate = () => {\n const dateParts = convertWeekYearToDate(pickParts());\n if (dateParts) {\n const year = Number(dateParts.year);\n const month = Number(dateParts.month);\n const day = Number(dateParts.day);\n\n const current = date ?? new Date();\n return new Date(\n current.setUTCFullYear(\n year ?? current.getUTCFullYear(),\n month ?? current.getUTCMonth(),\n day ?? current.getUTCDate()\n )\n );\n }\n };\n\n const inputContainerRef = useRef<HTMLDivElement>(null);\n\n const onFocusChange = (focused: boolean) => {\n const callbackParam = convertToCallbackParameter(\n date ? new Date(date) : new Date(),\n pickParts()\n );\n if (onFocus && focused) onFocus(callbackParam);\n if (!focused) {\n if (inputContainerRef.current) inputContainerRef.current.scrollTop = 0;\n onBlur?.(callbackParam);\n }\n };\n\n const [open, setOpen, , setPopoverRef, buttonEl, setButtonEl] = usePickerButton();\n\n const onInputChange = () => {\n onChange?.(convertToCallbackParameter(date ? new Date(date) : new Date(), pickParts()));\n buttonEl?.setAttribute(\n 'aria-label',\n generatePickerButtonAriaLabel(currentlySelectedDate(), 'week', locale, t, open)\n );\n };\n\n // autoclose picker on focusing out\n useOuterEvent('focusin', [containerRef], e => {\n if (containerRef.current?.contains(e.relatedTarget as HTMLElement)) setOpen(false);\n });\n\n const displayNames = new Intl.DisplayNames(locale, {\n style: 'long',\n type: 'dateTimeField'\n }) as Intl.DateTimeDisplayNames;\n\n const WeekNumberInput = (\n <PartInput\n data-testid={testIds.controlWeek}\n key='week'\n placeholder={t('week_placeholder')}\n aria-label={displayNames.of('weekOfYear')}\n value={date ? getWeek(date) : undefined}\n onChange={onInputChange}\n size={2}\n maxLength={2}\n min={1}\n max={53}\n readOnly={readOnly}\n ref={weekInputRef}\n autoFocus={autoFocus}\n />\n );\n\n const YearInput = (\n <PartInput\n data-testid={testIds.controlYear}\n key='year'\n placeholder={t('year_placeholder')}\n aria-label={displayNames.of('year')}\n value={date ? getWeekYear(date) : undefined}\n onChange={onInputChange}\n size={4}\n maxLength={4}\n min={1}\n readOnly={readOnly}\n ref={yearInputRef}\n />\n );\n\n useFocusWithin([containerRef], onFocusChange);\n\n const Picker = (\n <>\n <Button\n data-testid={testIds.openClosePicker}\n variant='simple'\n icon\n ref={setButtonEl}\n onClick={() => setOpen(cur => !cur)}\n aria-label={generatePickerButtonAriaLabel(currentlySelectedDate(), 'week', locale, t, open)}\n readOnly={readOnly}\n disabled={disabled}\n >\n <Icon name='calendar' />\n </Button>\n {open && buttonEl && (\n <StyledDatePickerDialog ref={setPopoverRef} target={buttonEl} ariaLabel={t('choose_week')}>\n <Flex container={{ direction: 'column' }} as={StyledDialogContent}>\n <DatePicker\n testId={testIds.root}\n selected={currentlySelectedDate()}\n onChange={selected => {\n weekInputRef.current!.value =\n (selected && getWeek(selected).toString().padStart(2, '0')) || '';\n yearInputRef.current!.value = (selected && getWeekYear(selected).toString()) || '';\n setOpen(false);\n setTimeout(() => buttonEl?.focus());\n onInputChange();\n }}\n min={min}\n max={max}\n mode='week'\n />\n </Flex>\n </StyledDatePickerDialog>\n )}\n </>\n );\n\n const Comp = (\n <Flex\n data-testid={testIds.root}\n as={StyledWeekInput}\n forwardedAs={StyledFormControl}\n container={{ alignItems: 'center', wrap: 'nowrap' }}\n status={status}\n readOnly={readOnly}\n disabled={disabled}\n ref={containerRef}\n onClick={(e: MouseEvent) => {\n if (e.target === containerRef.current) weekInputRef.current?.focus();\n }}\n {...restProps}\n >\n <Flex\n ref={inputContainerRef}\n as={StyledInputContainer}\n container={{ alignItems: 'center', wrap: 'wrap' }}\n >\n {cap(displayNames.of('weekOfYear'))} {WeekNumberInput},{YearInput}\n </Flex>\n {!readOnly && Picker}\n </Flex>\n );\n\n return label ? (\n <FormField\n as='fieldset'\n labelAs='legend'\n {...{\n testId: testIds,\n label,\n labelHidden,\n id,\n info,\n status,\n required,\n disabled,\n additionalInfo\n }}\n ref={ref}\n >\n {Comp}\n </FormField>\n ) : (\n Comp\n );\n});\n\nexport default withTestIds(WeekInput, getWeekInputTestIds);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"InfoDialog.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/InfoDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuC,EAAE,EAAa,cAAc,EAAE,MAAM,OAAO,CAAC;AAkB3F,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGjD,QAAA,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,GAAG,cAAc,CAAC,cAAc,CAAC,CA8IpE,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"InfoDialog.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/InfoDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuC,EAAE,EAAa,cAAc,EAAE,MAAM,OAAO,CAAC;AAkB3F,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGjD,QAAA,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,GAAG,cAAc,CAAC,cAAc,CAAC,CAgJpE,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -53,7 +53,7 @@ const InfoDialog = forwardRef(function InfoDialog({ target, heading: headingProp
53
53
  }, label: t('close'), ref: closeButtonRef, children: _jsx(Icon, { name: 'times' }) }));
54
54
  return (_jsxs(StyledInfoDialog, { ...restProps, ...(typeof headingProp === 'string'
55
55
  ? { labelledbyId: headingId }
56
- : { ariaLabel: headingProp?.primary }), arrow: true, target: target, progress: progressProp, ref: dialogRef, children: [headingProp && heading && (_jsxs(Flex, { container: { alignItems: 'center', justify: 'between', pad: 2, gap: 1 }, item: { shrink: 0 }, as: StyledDialogHeader, children: [typeof headingProp === 'string' ? (heading) : (_jsx(SummaryItem, { primary: heading, secondary: headingProp.secondary ? (_jsx(Text, { variant: 'secondary', children: headingProp.secondary })) : undefined, visual: headingProp.visual })), dismissButton] })), _jsxs(Flex, { container: { direction: 'column' }, item: { grow: 1 }, as: StyledDialogContent, ref: dialogContentRef, children: [!headingProp && dismissButton, children && (_jsx(StyledChildrenWrap, { inert: progressProp ? '' : undefined, children: children })), progress] })] }));
56
+ : { ariaLabel: headingProp?.primary }), arrow: true, target: target, progress: progressProp, ref: dialogRef, children: [headingProp && heading && (_jsxs(Flex, { container: { alignItems: 'center', justify: 'between', pad: 2, gap: 1 }, item: { shrink: 0 }, as: StyledDialogHeader, children: [typeof headingProp === 'string' ? (heading) : (_jsx(SummaryItem, { primary: heading, secondary: headingProp.secondary ? (_jsx(Text, { variant: 'secondary', children: headingProp.secondary })) : undefined, visual: headingProp.visual })), dismissButton] })), (!headingProp || children || progressProp) && (_jsxs(Flex, { container: { direction: 'column' }, item: { grow: 1 }, as: StyledDialogContent, ref: dialogContentRef, children: [!headingProp && dismissButton, children && (_jsx(StyledChildrenWrap, { inert: progressProp ? '' : undefined, children: children })), progress] }))] }));
57
57
  });
58
58
  export default InfoDialog;
59
59
  //# sourceMappingURL=InfoDialog.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InfoDialog.js","sourceRoot":"","sources":["../../../src/components/Dialog/InfoDialog.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAmB,MAAM,EAAM,SAAS,EAAkB,MAAM,OAAO,CAAC;AAE3F,OAAO,EACL,kBAAkB,EAClB,SAAS,EACT,YAAY,EACZ,OAAO,EACP,aAAa,EACb,MAAM,EACP,MAAM,aAAa,CAAC;AACrB,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE9F,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5E,MAAM,UAAU,GAAyD,UAAU,CACjF,SAAS,UAAU,CACjB,EACE,MAAM,EACN,OAAO,EAAE,WAAW,EACpB,QAAQ,EACR,QAAQ,EAAE,Y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AE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,EACvE,IAAI,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,EACnB,EAAE,EAAE,kBAAkB,aAErB,OAAO,WAAW,KAAK,QAAQ,CAAC,CAAC,CAAC,CACjC,OAAO,CACR,CAAC,CAAC,CAAC,CACF,KAAC,WAAW,IACV,OAAO,EAAE,OAAO,EAChB,SAAS,EACP,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,CACtB,KAAC,IAAI,IAAC,OAAO,EAAC,WAAW,YAAE,WAAW,CAAC,SAAS,GAAQ,CACzD,CAAC,CAAC,CAAC,SAAS,EAEf,MAAM,EAAE,WAAW,CAAC,MAAM,GAC1B,CACH,EACA,aAAa,IACT,CACR,EAED,MAAC,IAAI,IACH,SAAS,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,EAClC,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EACjB,EAAE,EAAE,mBAAmB,EACvB,GAAG,EAAE,gBAAgB,aAEpB,CAAC,WAAW,IAAI,aAAa,EAC7B,QAAQ,IAAI,CACX,KAAC,kBAAkB,IAAC,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,YACrD,QAAQ,GACU,CACtB,EACA,QAAQ,IACJ,IACU,CACpB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,UAAU,CAAC","sourcesContent":["import { forwardRef, PropsWithoutRef, useRef, FC, useEffect, HTMLAttributes } from 'react';\n\nimport {\n useConsolidatedRef,\n useEscape,\n useFocusTrap,\n useI18n,\n useOuterEvent,\n useUID\n} from '../../hooks';\nimport Text from '../Text';\nimport Icon from '../Icon';\nimport Progress from '../Progress';\nimport Flex from '../Flex';\nimport SummaryItem from '../SummaryItem';\nimport { getFocusables } from '../../utils';\n\nimport { StyledChildrenWrap, StyledDialogContent, StyledDialogHeader } from './Dialog.styles';\nimport { InfoDialogProps } from './Dialog.types';\nimport { StyledDismissButton, StyledInfoDialog } from './InfoDialog.styles';\n\nconst InfoDialog: FC<InfoDialogProps & HTMLAttributes<HTMLDivElement>> = forwardRef(\n function InfoDialog(\n {\n target,\n heading: headingProp,\n children,\n progress: progressProp,\n onDismiss,\n ...restProps\n }: PropsWithoutRef<InfoDialogProps>,\n ref: InfoDialogProps['ref']\n ) {\n const t = useI18n();\n const headingId = useUID();\n const dialogRef = useConsolidatedRef(ref);\n const dialogContentRef = useRef<HTMLDivElement>(null);\n const closeButtonRef = useRef<HTMLButtonElement>(null);\n\n const setFocus = () => {\n if (progressProp) return;\n\n const focusables = getFocusables(dialogRef);\n\n const focusable =\n focusables.find(el => {\n return dialogContentRef.current?.contains(el);\n }) ??\n closeButtonRef.current ??\n focusables[0];\n\n focusable?.focus();\n };\n\n useEscape(\n e => {\n onDismiss?.();\n e.stopPropagation();\n },\n dialogRef,\n [onDismiss]\n );\n\n useOuterEvent('mousedown', [target, dialogRef], () => {\n onDismiss?.();\n });\n\n useFocusTrap(dialogRef);\n\n useEffect(() => {\n if (!progressProp) {\n setFocus();\n }\n }, [progressProp]);\n\n useEffect(() => {\n return () => {\n if (document.contains(target)) {\n target.focus();\n }\n };\n }, []);\n\n const heading = headingProp ? (\n <Text id={headingId} variant='h2'>\n {typeof headingProp === 'string' ? headingProp : headingProp.primary}\n </Text>\n ) : null;\n\n const progress = (\n <Progress\n visible={!!progressProp}\n focusOnVisible\n placement='local'\n message={typeof progressProp === 'string' ? progressProp : undefined}\n />\n );\n\n const dismissButton = (\n <StyledDismissButton\n icon\n variant='simple'\n onClick={() => {\n onDismiss();\n }}\n label={t('close')}\n ref={closeButtonRef}\n >\n <Icon name='times' />\n </StyledDismissButton>\n );\n\n return (\n <StyledInfoDialog\n {...restProps}\n {...(typeof headingProp === 'string'\n ? { labelledbyId: headingId }\n : { ariaLabel: headingProp?.primary })}\n arrow\n target={target}\n progress={progressProp}\n ref={dialogRef}\n >\n {headingProp && heading && (\n <Flex\n container={{ alignItems: 'center', justify: 'between', pad: 2, gap: 1 }}\n item={{ shrink: 0 }}\n as={StyledDialogHeader}\n >\n {typeof headingProp === 'string' ? (\n heading\n ) : (\n <SummaryItem\n primary={heading}\n secondary={\n headingProp.secondary ? (\n <Text variant='secondary'>{headingProp.secondary}</Text>\n ) : undefined\n }\n visual={headingProp.visual}\n />\n )}\n {dismissButton}\n </Flex>\n )}\n\n <Flex\n container={{ direction: 'column' }}\n item={{ grow: 1 }}\n as={StyledDialogContent}\n ref={dialogContentRef}\n >\n {!headingProp && dismissButton}\n {children && (\n <StyledChildrenWrap inert={progressProp ? '' : undefined}>\n {children}\n </StyledChildrenWrap>\n )}\n {progress}\n </Flex>\n </StyledInfoDialog>\n );\n }\n);\n\nexport default InfoDialog;\n"]}
1
+ {"version":3,"file":"InfoDialog.js","sourceRoot":"","sources":["../../../src/components/Dialog/InfoDialog.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAmB,MAAM,EAAM,SAAS,EAAkB,MAAM,OAAO,CAAC;AAE3F,OAAO,EACL,kBAAkB,EAClB,SAAS,EACT,YAAY,EACZ,OAAO,EACP,aAAa,EACb,MAAM,EACP,MAAM,aAAa,CAAC;AACrB,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE9F,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5E,MAAM,UAAU,GAAyD,UAAU,CACjF,SAAS,UAAU,C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AS,aAEb,WAAW,IAAI,OAAO,IAAI,CACzB,MAAC,IAAI,IACH,SAAS,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,EACvE,IAAI,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,EACnB,EAAE,EAAE,kBAAkB,aAErB,OAAO,WAAW,KAAK,QAAQ,CAAC,CAAC,CAAC,CACjC,OAAO,CACR,CAAC,CAAC,CAAC,CACF,KAAC,WAAW,IACV,OAAO,EAAE,OAAO,EAChB,SAAS,EACP,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,CACtB,KAAC,IAAI,IAAC,OAAO,EAAC,WAAW,YAAE,WAAW,CAAC,SAAS,GAAQ,CACzD,CAAC,CAAC,CAAC,SAAS,EAEf,MAAM,EAAE,WAAW,CAAC,MAAM,GAC1B,CACH,EACA,aAAa,IACT,CACR,EAEA,CAAC,CAAC,WAAW,IAAI,QAAQ,IAAI,YAAY,CAAC,IAAI,CAC7C,MAAC,IAAI,IACH,SAAS,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,EAClC,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EACjB,EAAE,EAAE,mBAAmB,EACvB,GAAG,EAAE,gBAAgB,aAEpB,CAAC,WAAW,IAAI,aAAa,EAC7B,QAAQ,IAAI,CACX,KAAC,kBAAkB,IAAC,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,YACrD,QAAQ,GACU,CACtB,EACA,QAAQ,IACJ,CACR,IACgB,CACpB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,UAAU,CAAC","sourcesContent":["import { forwardRef, PropsWithoutRef, useRef, FC, useEffect, HTMLAttributes } from 'react';\n\nimport {\n useConsolidatedRef,\n useEscape,\n useFocusTrap,\n useI18n,\n useOuterEvent,\n useUID\n} from '../../hooks';\nimport Text from '../Text';\nimport Icon from '../Icon';\nimport Progress from '../Progress';\nimport Flex from '../Flex';\nimport SummaryItem from '../SummaryItem';\nimport { getFocusables } from '../../utils';\n\nimport { StyledChildrenWrap, StyledDialogContent, StyledDialogHeader } from './Dialog.styles';\nimport { InfoDialogProps } from './Dialog.types';\nimport { StyledDismissButton, StyledInfoDialog } from './InfoDialog.styles';\n\nconst InfoDialog: FC<InfoDialogProps & HTMLAttributes<HTMLDivElement>> = forwardRef(\n function InfoDialog(\n {\n target,\n heading: headingProp,\n children,\n progress: progressProp,\n onDismiss,\n ...restProps\n }: PropsWithoutRef<InfoDialogProps>,\n ref: InfoDialogProps['ref']\n ) {\n const t = useI18n();\n const headingId = useUID();\n const dialogRef = useConsolidatedRef(ref);\n const dialogContentRef = useRef<HTMLDivElement>(null);\n const closeButtonRef = useRef<HTMLButtonElement>(null);\n\n const setFocus = () => {\n if (progressProp) return;\n\n const focusables = getFocusables(dialogRef);\n\n const focusable =\n focusables.find(el => {\n return dialogContentRef.current?.contains(el);\n }) ??\n closeButtonRef.current ??\n focusables[0];\n\n focusable?.focus();\n };\n\n useEscape(\n e => {\n onDismiss?.();\n e.stopPropagation();\n },\n dialogRef,\n [onDismiss]\n );\n\n useOuterEvent('mousedown', [target, dialogRef], () => {\n onDismiss?.();\n });\n\n useFocusTrap(dialogRef);\n\n useEffect(() => {\n if (!progressProp) {\n setFocus();\n }\n }, [progressProp]);\n\n useEffect(() => {\n return () => {\n if (document.contains(target)) {\n target.focus();\n }\n };\n }, []);\n\n const heading = headingProp ? (\n <Text id={headingId} variant='h2'>\n {typeof headingProp === 'string' ? headingProp : headingProp.primary}\n </Text>\n ) : null;\n\n const progress = (\n <Progress\n visible={!!progressProp}\n focusOnVisible\n placement='local'\n message={typeof progressProp === 'string' ? progressProp : undefined}\n />\n );\n\n const dismissButton = (\n <StyledDismissButton\n icon\n variant='simple'\n onClick={() => {\n onDismiss();\n }}\n label={t('close')}\n ref={closeButtonRef}\n >\n <Icon name='times' />\n </StyledDismissButton>\n );\n\n return (\n <StyledInfoDialog\n {...restProps}\n {...(typeof headingProp === 'string'\n ? { labelledbyId: headingId }\n : { ariaLabel: headingProp?.primary })}\n arrow\n target={target}\n progress={progressProp}\n ref={dialogRef}\n >\n {headingProp && heading && (\n <Flex\n container={{ alignItems: 'center', justify: 'between', pad: 2, gap: 1 }}\n item={{ shrink: 0 }}\n as={StyledDialogHeader}\n >\n {typeof headingProp === 'string' ? (\n heading\n ) : (\n <SummaryItem\n primary={heading}\n secondary={\n headingProp.secondary ? (\n <Text variant='secondary'>{headingProp.secondary}</Text>\n ) : undefined\n }\n visual={headingProp.visual}\n />\n )}\n {dismissButton}\n </Flex>\n )}\n\n {(!headingProp || children || progressProp) && (\n <Flex\n container={{ direction: 'column' }}\n item={{ grow: 1 }}\n as={StyledDialogContent}\n ref={dialogContentRef}\n >\n {!headingProp && dismissButton}\n {children && (\n <StyledChildrenWrap inert={progressProp ? '' : undefined}>\n {children}\n </StyledChildrenWrap>\n )}\n {progress}\n </Flex>\n )}\n </StyledInfoDialog>\n );\n }\n);\n\nexport default InfoDialog;\n"]}