@pega/cosmos-react-core 10.0.0-build.1.8 → 10.0.0-build.10.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 (779) 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 +2 -1
  4. package/lib/components/AIButton/AIButton.js.map +1 -1
  5. package/lib/components/AIRewrite/AIRewrite.d.ts +1 -1
  6. package/lib/components/AIRewrite/AIRewrite.d.ts.map +1 -1
  7. package/lib/components/AIRewrite/AIRewrite.js +7 -3
  8. package/lib/components/AIRewrite/AIRewrite.js.map +1 -1
  9. package/lib/components/AIRewrite/AIRewrite.styles.d.ts +43 -7
  10. package/lib/components/AIRewrite/AIRewrite.styles.d.ts.map +1 -1
  11. package/lib/components/AIRewrite/AIRewrite.styles.js +5 -2
  12. package/lib/components/AIRewrite/AIRewrite.styles.js.map +1 -1
  13. package/lib/components/AIRewrite/AIRewrite.types.d.ts +2 -0
  14. package/lib/components/AIRewrite/AIRewrite.types.d.ts.map +1 -1
  15. package/lib/components/AIRewrite/AIRewrite.types.js.map +1 -1
  16. package/lib/components/AppShell/AppHeader.d.ts.map +1 -1
  17. package/lib/components/AppShell/AppHeader.js +90 -9
  18. package/lib/components/AppShell/AppHeader.js.map +1 -1
  19. package/lib/components/AppShell/AppHeader.styles.d.ts +6 -2
  20. package/lib/components/AppShell/AppHeader.styles.d.ts.map +1 -1
  21. package/lib/components/AppShell/AppHeader.styles.js +89 -56
  22. package/lib/components/AppShell/AppHeader.styles.js.map +1 -1
  23. package/lib/components/AppShell/AppNavigationPanel.d.ts.map +1 -1
  24. package/lib/components/AppShell/AppNavigationPanel.js +16 -7
  25. package/lib/components/AppShell/AppNavigationPanel.js.map +1 -1
  26. package/lib/components/AppShell/AppShell.d.ts +3 -2
  27. package/lib/components/AppShell/AppShell.d.ts.map +1 -1
  28. package/lib/components/AppShell/AppShell.js +134 -177
  29. package/lib/components/AppShell/AppShell.js.map +1 -1
  30. package/lib/components/AppShell/AppShell.styles.d.ts +20 -15
  31. package/lib/components/AppShell/AppShell.styles.d.ts.map +1 -1
  32. package/lib/components/AppShell/AppShell.styles.js +145 -211
  33. package/lib/components/AppShell/AppShell.styles.js.map +1 -1
  34. package/lib/components/AppShell/AppShell.types.d.ts +117 -2
  35. package/lib/components/AppShell/AppShell.types.d.ts.map +1 -1
  36. package/lib/components/AppShell/AppShell.types.js.map +1 -1
  37. package/lib/components/AppShell/AppShellContext.d.ts +3 -0
  38. package/lib/components/AppShell/AppShellContext.d.ts.map +1 -1
  39. package/lib/components/AppShell/AppShellContext.js +1 -0
  40. package/lib/components/AppShell/AppShellContext.js.map +1 -1
  41. package/lib/components/AppShell/AppShellList.d.ts +2 -0
  42. package/lib/components/AppShell/AppShellList.d.ts.map +1 -1
  43. package/lib/components/AppShell/AppShellList.js +8 -4
  44. package/lib/components/AppShell/AppShellList.js.map +1 -1
  45. package/lib/components/AppShell/AppShellList.styles.d.ts +1 -1
  46. package/lib/components/AppShell/AppShellList.styles.d.ts.map +1 -1
  47. package/lib/components/AppShell/AppShellList.styles.js +63 -23
  48. package/lib/components/AppShell/AppShellList.styles.js.map +1 -1
  49. package/lib/components/AppShell/AppTopNav.styles.d.ts.map +1 -1
  50. package/lib/components/AppShell/AppTopNav.styles.js +6 -2
  51. package/lib/components/AppShell/AppTopNav.styles.js.map +1 -1
  52. package/lib/components/AppShell/DocumentTabs.d.ts +6 -0
  53. package/lib/components/AppShell/DocumentTabs.d.ts.map +1 -0
  54. package/lib/components/AppShell/DocumentTabs.js +409 -0
  55. package/lib/components/AppShell/DocumentTabs.js.map +1 -0
  56. package/lib/components/AppShell/DocumentTabs.styles.d.ts +231 -0
  57. package/lib/components/AppShell/DocumentTabs.styles.d.ts.map +1 -0
  58. package/lib/components/AppShell/DocumentTabs.styles.js +564 -0
  59. package/lib/components/AppShell/DocumentTabs.styles.js.map +1 -0
  60. package/lib/components/AppShell/Drawer.d.ts +1 -2
  61. package/lib/components/AppShell/Drawer.d.ts.map +1 -1
  62. package/lib/components/AppShell/Drawer.js +4 -4
  63. package/lib/components/AppShell/Drawer.js.map +1 -1
  64. package/lib/components/AppShell/Drawer.styles.d.ts +1 -13
  65. package/lib/components/AppShell/Drawer.styles.d.ts.map +1 -1
  66. package/lib/components/AppShell/Drawer.styles.js +15 -31
  67. package/lib/components/AppShell/Drawer.styles.js.map +1 -1
  68. package/lib/components/AppShell/HeaderActionButton.d.ts +20 -0
  69. package/lib/components/AppShell/HeaderActionButton.d.ts.map +1 -0
  70. package/lib/components/AppShell/HeaderActionButton.js +78 -0
  71. package/lib/components/AppShell/HeaderActionButton.js.map +1 -0
  72. package/lib/components/AppShell/NavigationList.d.ts.map +1 -1
  73. package/lib/components/AppShell/NavigationList.js +4 -5
  74. package/lib/components/AppShell/NavigationList.js.map +1 -1
  75. package/lib/components/AppShell/NavigationListItemWrapper.d.ts.map +1 -1
  76. package/lib/components/AppShell/NavigationListItemWrapper.js +101 -58
  77. package/lib/components/AppShell/NavigationListItemWrapper.js.map +1 -1
  78. package/lib/components/AppShell/Notifications.d.ts +28 -0
  79. package/lib/components/AppShell/Notifications.d.ts.map +1 -0
  80. package/lib/components/AppShell/Notifications.js +145 -0
  81. package/lib/components/AppShell/Notifications.js.map +1 -0
  82. package/lib/components/AppShell/Operator.d.ts.map +1 -1
  83. package/lib/components/AppShell/Operator.js +8 -5
  84. package/lib/components/AppShell/Operator.js.map +1 -1
  85. package/lib/components/AppShell/Panel/Panel.d.ts +15 -0
  86. package/lib/components/AppShell/Panel/Panel.d.ts.map +1 -0
  87. package/lib/components/AppShell/Panel/Panel.js +80 -0
  88. package/lib/components/AppShell/Panel/Panel.js.map +1 -0
  89. package/lib/components/AppShell/Panel/Panel.styles.d.ts +188 -0
  90. package/lib/components/AppShell/Panel/Panel.styles.d.ts.map +1 -0
  91. package/lib/components/AppShell/Panel/Panel.styles.js +85 -0
  92. package/lib/components/AppShell/Panel/Panel.styles.js.map +1 -0
  93. package/lib/components/AppShell/Panel/Panel.test-ids.d.ts +2 -0
  94. package/lib/components/AppShell/Panel/Panel.test-ids.d.ts.map +1 -0
  95. package/lib/components/AppShell/Panel/Panel.test-ids.js +3 -0
  96. package/lib/components/AppShell/Panel/Panel.test-ids.js.map +1 -0
  97. package/lib/components/AppShell/Panel/Panel.types.d.ts +33 -0
  98. package/lib/components/AppShell/Panel/Panel.types.d.ts.map +1 -0
  99. package/lib/components/AppShell/Panel/Panel.types.js +2 -0
  100. package/lib/components/AppShell/Panel/Panel.types.js.map +1 -0
  101. package/lib/components/AppShell/Panel/PanelHeaderActions.d.ts +8 -0
  102. package/lib/components/AppShell/Panel/PanelHeaderActions.d.ts.map +1 -0
  103. package/lib/components/AppShell/Panel/PanelHeaderActions.js +17 -0
  104. package/lib/components/AppShell/Panel/PanelHeaderActions.js.map +1 -0
  105. package/lib/components/AppShell/Panel/index.d.ts +4 -0
  106. package/lib/components/AppShell/Panel/index.d.ts.map +1 -0
  107. package/lib/components/AppShell/Panel/index.js +4 -0
  108. package/lib/components/AppShell/Panel/index.js.map +1 -0
  109. package/lib/components/AppShell/Panel/usePanel.d.ts +12 -0
  110. package/lib/components/AppShell/Panel/usePanel.d.ts.map +1 -0
  111. package/lib/components/AppShell/Panel/usePanel.js +30 -0
  112. package/lib/components/AppShell/Panel/usePanel.js.map +1 -0
  113. package/lib/components/AppShell/ThemeSwitcher.d.ts +1 -1
  114. package/lib/components/AppShell/ThemeSwitcher.d.ts.map +1 -1
  115. package/lib/components/AppShell/ThemeSwitcher.js +1 -0
  116. package/lib/components/AppShell/ThemeSwitcher.js.map +1 -1
  117. package/lib/components/AppShell/TopNavDrawerProvider.d.ts +11 -0
  118. package/lib/components/AppShell/TopNavDrawerProvider.d.ts.map +1 -0
  119. package/lib/components/AppShell/TopNavDrawerProvider.js +43 -0
  120. package/lib/components/AppShell/TopNavDrawerProvider.js.map +1 -0
  121. package/lib/components/AppShell/TouchAppShell.d.ts +16 -0
  122. package/lib/components/AppShell/TouchAppShell.d.ts.map +1 -0
  123. package/lib/components/AppShell/TouchAppShell.js +161 -0
  124. package/lib/components/AppShell/TouchAppShell.js.map +1 -0
  125. package/lib/components/AppShell/TouchAppShell.styles.d.ts +209 -0
  126. package/lib/components/AppShell/TouchAppShell.styles.d.ts.map +1 -0
  127. package/lib/components/AppShell/TouchAppShell.styles.js +188 -0
  128. package/lib/components/AppShell/TouchAppShell.styles.js.map +1 -0
  129. package/lib/components/AppShell/headerActionUtils.d.ts +12 -0
  130. package/lib/components/AppShell/headerActionUtils.d.ts.map +1 -0
  131. package/lib/components/AppShell/headerActionUtils.js +69 -0
  132. package/lib/components/AppShell/headerActionUtils.js.map +1 -0
  133. package/lib/components/AppShell/index.d.ts +2 -1
  134. package/lib/components/AppShell/index.d.ts.map +1 -1
  135. package/lib/components/AppShell/index.js.map +1 -1
  136. package/lib/components/AppShell/style-utils.d.ts.map +1 -1
  137. package/lib/components/AppShell/style-utils.js +22 -9
  138. package/lib/components/AppShell/style-utils.js.map +1 -1
  139. package/lib/components/Avatar/Avatar.d.ts +4 -4
  140. package/lib/components/Avatar/Avatar.d.ts.map +1 -1
  141. package/lib/components/Avatar/Avatar.js +45 -41
  142. package/lib/components/Avatar/Avatar.js.map +1 -1
  143. package/lib/components/Backdrop/Backdrop.d.ts +30 -30
  144. package/lib/components/Backdrop/Backdrop.d.ts.map +1 -1
  145. package/lib/components/Backdrop/Backdrop.js +3 -2
  146. package/lib/components/Backdrop/Backdrop.js.map +1 -1
  147. package/lib/components/Badges/Alert.d.ts +1 -1
  148. package/lib/components/Badges/Count.d.ts +1 -1
  149. package/lib/components/Badges/Keyboard.d.ts +1 -1
  150. package/lib/components/Badges/Selection.d.ts +1 -1
  151. package/lib/components/Badges/Selection.js +1 -1
  152. package/lib/components/Badges/Selection.js.map +1 -1
  153. package/lib/components/Badges/Status.d.ts +1 -1
  154. package/lib/components/Badges/Tag.d.ts +1 -1
  155. package/lib/components/Banner/Banner.d.ts +1 -1
  156. package/lib/components/Banner/Banner.js +1 -5
  157. package/lib/components/Banner/Banner.js.map +1 -1
  158. package/lib/components/Banner/Banner.styles.d.ts +2 -2
  159. package/lib/components/Banner/Banner.styles.d.ts.map +1 -1
  160. package/lib/components/Button/BareRoleButton.d.ts.map +1 -1
  161. package/lib/components/Button/BareRoleButton.js +4 -1
  162. package/lib/components/Button/BareRoleButton.js.map +1 -1
  163. package/lib/components/Button/Button.d.ts.map +1 -1
  164. package/lib/components/Button/Button.js +67 -25
  165. package/lib/components/Button/Button.js.map +1 -1
  166. package/lib/components/Checkbox/Checkbox.d.ts +1 -1
  167. package/lib/components/Checkbox/CheckboxCard.d.ts +1 -1
  168. package/lib/components/CheckboxGroup/CheckboxGroup.d.ts +1 -1
  169. package/lib/components/ClassificationMarking/ClassificationMarking.styles.d.ts.map +1 -1
  170. package/lib/components/ClassificationMarking/ClassificationMarking.styles.js +5 -32
  171. package/lib/components/ClassificationMarking/ClassificationMarking.styles.js.map +1 -1
  172. package/lib/components/ColorPicker/ColorPicker.d.ts +1 -1
  173. package/lib/components/ComboBox/ComboBox.d.ts +1 -1
  174. package/lib/components/ComboBox/ComboBox.d.ts.map +1 -1
  175. package/lib/components/ComboBox/ComboBox.js +5 -8
  176. package/lib/components/ComboBox/ComboBox.js.map +1 -1
  177. package/lib/components/ComboBox/ComboBox.styles.d.ts.map +1 -1
  178. package/lib/components/ComboBox/ComboBox.styles.js +11 -6
  179. package/lib/components/ComboBox/ComboBox.styles.js.map +1 -1
  180. package/lib/components/ComboBox/ComboBox.types.d.ts +3 -3
  181. package/lib/components/ComboBox/ComboBox.types.d.ts.map +1 -1
  182. package/lib/components/ComboBox/ComboBox.types.js.map +1 -1
  183. package/lib/components/ComboBox/ComboBoxInput.d.ts +1 -2
  184. package/lib/components/ComboBox/ComboBoxInput.d.ts.map +1 -1
  185. package/lib/components/ComboBox/ComboBoxInput.js +2 -2
  186. package/lib/components/ComboBox/ComboBoxInput.js.map +1 -1
  187. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.d.ts +4 -6
  188. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.d.ts.map +1 -1
  189. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.js +99 -188
  190. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.js.map +1 -1
  191. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.styles.d.ts +190 -0
  192. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.styles.d.ts.map +1 -0
  193. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.styles.js +72 -0
  194. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.styles.js.map +1 -0
  195. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.types.d.ts +5 -7
  196. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.types.d.ts.map +1 -1
  197. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.types.js.map +1 -1
  198. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.d.ts.map +1 -1
  199. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.js +29 -10
  200. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.js.map +1 -1
  201. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.types.d.ts +5 -5
  202. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.types.d.ts.map +1 -1
  203. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.types.js.map +1 -1
  204. package/lib/components/CompositeInput/CompositeInput.d.ts +1 -1
  205. package/lib/components/CompositeInput/CompositeInput.d.ts.map +1 -1
  206. package/lib/components/CompositeInput/CompositeInput.js +18 -3
  207. package/lib/components/CompositeInput/CompositeInput.js.map +1 -1
  208. package/lib/components/Configuration/Configuration.d.ts.map +1 -1
  209. package/lib/components/Configuration/Configuration.js +3 -1
  210. package/lib/components/Configuration/Configuration.js.map +1 -1
  211. package/lib/components/CreditCard/CreditCardInput.d.ts +1 -1
  212. package/lib/components/Currency/CurrencyDisplay.d.ts.map +1 -1
  213. package/lib/components/Currency/CurrencyDisplay.js +13 -5
  214. package/lib/components/Currency/CurrencyDisplay.js.map +1 -1
  215. package/lib/components/Currency/CurrencyInput.d.ts +1 -1
  216. package/lib/components/Currency/CurrencyInput.d.ts.map +1 -1
  217. package/lib/components/Currency/CurrencyInput.js +21 -14
  218. package/lib/components/Currency/CurrencyInput.js.map +1 -1
  219. package/lib/components/Currency/utils.d.ts +8 -0
  220. package/lib/components/Currency/utils.d.ts.map +1 -1
  221. package/lib/components/Currency/utils.js +34 -4
  222. package/lib/components/Currency/utils.js.map +1 -1
  223. package/lib/components/DangerButton/DangerButton.d.ts +2 -2
  224. package/lib/components/DangerButton/DangerButton.d.ts.map +1 -1
  225. package/lib/components/DangerButton/DangerButton.js +8 -1
  226. package/lib/components/DangerButton/DangerButton.js.map +1 -1
  227. package/lib/components/DateTime/DateTime.types.d.ts +2 -4
  228. package/lib/components/DateTime/DateTime.types.d.ts.map +1 -1
  229. package/lib/components/DateTime/DateTime.types.js.map +1 -1
  230. package/lib/components/DateTime/DateTimeDisplay.d.ts +9 -2
  231. package/lib/components/DateTime/DateTimeDisplay.d.ts.map +1 -1
  232. package/lib/components/DateTime/DateTimeDisplay.js +34 -8
  233. package/lib/components/DateTime/DateTimeDisplay.js.map +1 -1
  234. package/lib/components/DateTime/Input/DateInput.d.ts +3 -1
  235. package/lib/components/DateTime/Input/DateInput.d.ts.map +1 -1
  236. package/lib/components/DateTime/Input/DateInput.js +36 -21
  237. package/lib/components/DateTime/Input/DateInput.js.map +1 -1
  238. package/lib/components/DateTime/Input/DateRangeInput.d.ts +12 -4
  239. package/lib/components/DateTime/Input/DateRangeInput.d.ts.map +1 -1
  240. package/lib/components/DateTime/Input/DateRangeInput.js +28 -7
  241. package/lib/components/DateTime/Input/DateRangeInput.js.map +1 -1
  242. package/lib/components/DateTime/Input/DateTime.styles.d.ts +3 -0
  243. package/lib/components/DateTime/Input/DateTime.styles.d.ts.map +1 -1
  244. package/lib/components/DateTime/Input/DateTime.styles.js +26 -2
  245. package/lib/components/DateTime/Input/DateTime.styles.js.map +1 -1
  246. package/lib/components/DateTime/Input/DateTimeInput.d.ts +15 -3
  247. package/lib/components/DateTime/Input/DateTimeInput.d.ts.map +1 -1
  248. package/lib/components/DateTime/Input/DateTimeInput.js +164 -53
  249. package/lib/components/DateTime/Input/DateTimeInput.js.map +1 -1
  250. package/lib/components/DateTime/Input/DayOfWeekInput.d.ts +1 -1
  251. package/lib/components/DateTime/Input/Duration/DurationInput.d.ts +1 -1
  252. package/lib/components/DateTime/Input/MonthInput.d.ts +1 -1
  253. package/lib/components/DateTime/Input/MonthInput.d.ts.map +1 -1
  254. package/lib/components/DateTime/Input/MonthInput.js +4 -3
  255. package/lib/components/DateTime/Input/MonthInput.js.map +1 -1
  256. package/lib/components/DateTime/Input/PartInput.d.ts.map +1 -1
  257. package/lib/components/DateTime/Input/PartInput.js +3 -2
  258. package/lib/components/DateTime/Input/PartInput.js.map +1 -1
  259. package/lib/components/DateTime/Input/QuarterInput.d.ts +1 -1
  260. package/lib/components/DateTime/Input/QuarterInput.d.ts.map +1 -1
  261. package/lib/components/DateTime/Input/QuarterInput.js +4 -4
  262. package/lib/components/DateTime/Input/QuarterInput.js.map +1 -1
  263. package/lib/components/DateTime/Input/TimeInput.d.ts +13 -4
  264. package/lib/components/DateTime/Input/TimeInput.d.ts.map +1 -1
  265. package/lib/components/DateTime/Input/TimeInput.js +67 -33
  266. package/lib/components/DateTime/Input/TimeInput.js.map +1 -1
  267. package/lib/components/DateTime/Input/TimeRangeInput.d.ts +12 -4
  268. package/lib/components/DateTime/Input/TimeRangeInput.d.ts.map +1 -1
  269. package/lib/components/DateTime/Input/TimeRangeInput.js +28 -10
  270. package/lib/components/DateTime/Input/TimeRangeInput.js.map +1 -1
  271. package/lib/components/DateTime/Input/WeekInput.d.ts +7 -4
  272. package/lib/components/DateTime/Input/WeekInput.d.ts.map +1 -1
  273. package/lib/components/DateTime/Input/WeekInput.js +31 -18
  274. package/lib/components/DateTime/Input/WeekInput.js.map +1 -1
  275. package/lib/components/DateTime/Input/utils.d.ts +10 -1
  276. package/lib/components/DateTime/Input/utils.d.ts.map +1 -1
  277. package/lib/components/DateTime/Input/utils.js +115 -5
  278. package/lib/components/DateTime/Input/utils.js.map +1 -1
  279. package/lib/components/DateTime/Picker/Calendar.js +2 -6
  280. package/lib/components/DateTime/Picker/Calendar.js.map +1 -1
  281. package/lib/components/DateTime/Picker/Calendar.styles.d.ts.map +1 -1
  282. package/lib/components/DateTime/Picker/Calendar.styles.js +5 -0
  283. package/lib/components/DateTime/Picker/Calendar.styles.js.map +1 -1
  284. package/lib/components/DateTime/Picker/DatePicker.styles.d.ts.map +1 -1
  285. package/lib/components/DateTime/Picker/DatePicker.styles.js +37 -7
  286. package/lib/components/DateTime/Picker/DatePicker.styles.js.map +1 -1
  287. package/lib/components/DateTime/Picker/TimePicker.d.ts.map +1 -1
  288. package/lib/components/DateTime/Picker/TimePicker.js +25 -47
  289. package/lib/components/DateTime/Picker/TimePicker.js.map +1 -1
  290. package/lib/components/DateTime/utils.d.ts +15 -4
  291. package/lib/components/DateTime/utils.d.ts.map +1 -1
  292. package/lib/components/DateTime/utils.js +24 -3
  293. package/lib/components/DateTime/utils.js.map +1 -1
  294. package/lib/components/Dialog/Dialog.types.d.ts +60 -20
  295. package/lib/components/Dialog/Dialog.types.d.ts.map +1 -1
  296. package/lib/components/Dialog/Dialog.types.js.map +1 -1
  297. package/lib/components/Dialog/FormDialog.d.ts.map +1 -1
  298. package/lib/components/Dialog/FormDialog.js +76 -42
  299. package/lib/components/Dialog/FormDialog.js.map +1 -1
  300. package/lib/components/Dialog/FormDialogWrapper.d.ts +5 -0
  301. package/lib/components/Dialog/FormDialogWrapper.d.ts.map +1 -0
  302. package/lib/components/Dialog/FormDialogWrapper.js +13 -0
  303. package/lib/components/Dialog/FormDialogWrapper.js.map +1 -0
  304. package/lib/components/Dialog/InfoDialog.d.ts.map +1 -1
  305. package/lib/components/Dialog/InfoDialog.js +6 -4
  306. package/lib/components/Dialog/InfoDialog.js.map +1 -1
  307. package/lib/components/Dialog/InfoDialogWrapper.d.ts +4 -0
  308. package/lib/components/Dialog/InfoDialogWrapper.d.ts.map +1 -0
  309. package/lib/components/Dialog/InfoDialogWrapper.js +13 -0
  310. package/lib/components/Dialog/InfoDialogWrapper.js.map +1 -0
  311. package/lib/components/Dialog/TouchDialog.d.ts +5 -0
  312. package/lib/components/Dialog/TouchDialog.d.ts.map +1 -0
  313. package/lib/components/Dialog/TouchDialog.js +120 -0
  314. package/lib/components/Dialog/TouchDialog.js.map +1 -0
  315. package/lib/components/Dialog/TouchDialog.styles.d.ts +14 -0
  316. package/lib/components/Dialog/TouchDialog.styles.d.ts.map +1 -0
  317. package/lib/components/Dialog/TouchDialog.styles.js +79 -0
  318. package/lib/components/Dialog/TouchDialog.styles.js.map +1 -0
  319. package/lib/components/Dialog/TouchDialog.test-ids.d.ts +2 -0
  320. package/lib/components/Dialog/TouchDialog.test-ids.d.ts.map +1 -0
  321. package/lib/components/Dialog/TouchDialog.test-ids.js +3 -0
  322. package/lib/components/Dialog/TouchDialog.test-ids.js.map +1 -0
  323. package/lib/components/Dialog/TouchDialog.types.d.ts +57 -0
  324. package/lib/components/Dialog/TouchDialog.types.d.ts.map +1 -0
  325. package/lib/components/Dialog/TouchDialog.types.js +2 -0
  326. package/lib/components/Dialog/TouchDialog.types.js.map +1 -0
  327. package/lib/components/Dialog/TouchFormDialog.d.ts +5 -0
  328. package/lib/components/Dialog/TouchFormDialog.d.ts.map +1 -0
  329. package/lib/components/Dialog/TouchFormDialog.js +53 -0
  330. package/lib/components/Dialog/TouchFormDialog.js.map +1 -0
  331. package/lib/components/Dialog/TouchFormDialog.styles.d.ts +7 -0
  332. package/lib/components/Dialog/TouchFormDialog.styles.d.ts.map +1 -0
  333. package/lib/components/Dialog/TouchFormDialog.styles.js +39 -0
  334. package/lib/components/Dialog/TouchFormDialog.styles.js.map +1 -0
  335. package/lib/components/Dialog/TouchInfoDialog.d.ts +4 -0
  336. package/lib/components/Dialog/TouchInfoDialog.d.ts.map +1 -0
  337. package/lib/components/Dialog/TouchInfoDialog.js +21 -0
  338. package/lib/components/Dialog/TouchInfoDialog.js.map +1 -0
  339. package/lib/components/Dialog/index.d.ts +6 -2
  340. package/lib/components/Dialog/index.d.ts.map +1 -1
  341. package/lib/components/Dialog/index.js +5 -2
  342. package/lib/components/Dialog/index.js.map +1 -1
  343. package/lib/components/Drawer/Drawer.d.ts +12 -1
  344. package/lib/components/Drawer/Drawer.d.ts.map +1 -1
  345. package/lib/components/Drawer/Drawer.js +22 -23
  346. package/lib/components/Drawer/Drawer.js.map +1 -1
  347. package/lib/components/Drawer/ResizeHandle.d.ts +9 -2
  348. package/lib/components/Drawer/ResizeHandle.d.ts.map +1 -1
  349. package/lib/components/Drawer/ResizeHandle.js +44 -20
  350. package/lib/components/Drawer/ResizeHandle.js.map +1 -1
  351. package/lib/components/EmojiPicker/EmojiPicker.styles.d.ts.map +1 -1
  352. package/lib/components/EmojiPicker/EmojiPicker.styles.js +2 -2
  353. package/lib/components/EmojiPicker/EmojiPicker.styles.js.map +1 -1
  354. package/lib/components/EmptyState/EmptyState.d.ts +7 -2
  355. package/lib/components/EmptyState/EmptyState.d.ts.map +1 -1
  356. package/lib/components/EmptyState/EmptyState.js +18 -11
  357. package/lib/components/EmptyState/EmptyState.js.map +1 -1
  358. package/lib/components/ExpandCollapse/ExpandCollapseButton.d.ts +2 -2
  359. package/lib/components/ExpandCollapse/ExpandCollapseButton.d.ts.map +1 -1
  360. package/lib/components/FieldGroup/FieldGroup.d.ts +69 -64
  361. package/lib/components/FieldGroup/FieldGroup.d.ts.map +1 -1
  362. package/lib/components/FieldGroup/FieldGroup.js +41 -41
  363. package/lib/components/FieldGroup/FieldGroup.js.map +1 -1
  364. package/lib/components/FieldGroup/FieldGroupList.js +2 -2
  365. package/lib/components/FieldGroup/FieldGroupList.js.map +1 -1
  366. package/lib/components/FieldValueList/FieldValueList.d.ts +5 -3
  367. package/lib/components/FieldValueList/FieldValueList.d.ts.map +1 -1
  368. package/lib/components/FieldValueList/FieldValueList.js +17 -8
  369. package/lib/components/FieldValueList/FieldValueList.js.map +1 -1
  370. package/lib/components/File/CompactList.js +1 -1
  371. package/lib/components/File/CompactList.js.map +1 -1
  372. package/lib/components/File/FileInput.d.ts +1 -1
  373. package/lib/components/File/FileInput.styles.js +1 -1
  374. package/lib/components/File/FileInput.styles.js.map +1 -1
  375. package/lib/components/File/FileItem.d.ts +40 -2
  376. package/lib/components/File/FileItem.d.ts.map +1 -1
  377. package/lib/components/File/FileItem.js +167 -23
  378. package/lib/components/File/FileItem.js.map +1 -1
  379. package/lib/components/File/FileList.d.ts +29 -29
  380. package/lib/components/File/FileList.d.ts.map +1 -1
  381. package/lib/components/File/FileList.js +6 -2
  382. package/lib/components/File/FileList.js.map +1 -1
  383. package/lib/components/File/FileUploadItem.js +1 -3
  384. package/lib/components/File/FileUploadItem.js.map +1 -1
  385. package/lib/components/File/FileVisual.js +1 -1
  386. package/lib/components/File/FileVisual.js.map +1 -1
  387. package/lib/components/File/index.d.ts +1 -1
  388. package/lib/components/File/index.d.ts.map +1 -1
  389. package/lib/components/File/index.js.map +1 -1
  390. package/lib/components/File/mimeTypes.json +1 -0
  391. package/lib/components/Form/Form.d.ts +1 -1
  392. package/lib/components/FormControl/FormControl.d.ts +10 -3
  393. package/lib/components/FormControl/FormControl.d.ts.map +1 -1
  394. package/lib/components/FormControl/FormControl.js +2 -11
  395. package/lib/components/FormControl/FormControl.js.map +1 -1
  396. package/lib/components/FormField/FormField.d.ts +10 -2
  397. package/lib/components/FormField/FormField.d.ts.map +1 -1
  398. package/lib/components/FormField/FormField.js +57 -58
  399. package/lib/components/FormField/FormField.js.map +1 -1
  400. package/lib/components/Fullscreen/Fullscreen.d.ts +1 -1
  401. package/lib/components/Fullscreen/Fullscreen.js +2 -2
  402. package/lib/components/Fullscreen/Fullscreen.js.map +1 -1
  403. package/lib/components/Fullscreen/FullscreenButton.d.ts +2 -2
  404. package/lib/components/Fullscreen/FullscreenButton.d.ts.map +1 -1
  405. package/lib/components/HTML/HTML.d.ts +1 -1
  406. package/lib/components/Icon/Icon.d.ts +5 -0
  407. package/lib/components/Icon/Icon.d.ts.map +1 -1
  408. package/lib/components/Icon/Icon.js +46 -4
  409. package/lib/components/Icon/Icon.js.map +1 -1
  410. package/lib/components/Icon/iconNames.d.ts +2 -1
  411. package/lib/components/Icon/iconNames.d.ts.map +1 -1
  412. package/lib/components/Icon/iconNames.js +3 -0
  413. package/lib/components/Icon/iconNames.js.map +1 -1
  414. package/lib/components/Icon/icons/search-solid.icon.d.ts +1 -1
  415. package/lib/components/Icon/icons/search-solid.icon.js +3 -3
  416. package/lib/components/Icon/icons/search-solid.icon.js.map +1 -1
  417. package/lib/components/Icon/icons/share-external-solid.icon.d.ts +5 -0
  418. package/lib/components/Icon/icons/share-external-solid.icon.d.ts.map +1 -0
  419. package/lib/components/Icon/icons/share-external-solid.icon.js +7 -0
  420. package/lib/components/Icon/icons/share-external-solid.icon.js.map +1 -0
  421. package/lib/components/Icon/icons/share-external.icon.d.ts +5 -0
  422. package/lib/components/Icon/icons/share-external.icon.d.ts.map +1 -0
  423. package/lib/components/Icon/icons/share-external.icon.js +7 -0
  424. package/lib/components/Icon/icons/share-external.icon.js.map +1 -0
  425. package/lib/components/Icon/streamline-icons/share-external-solid.icon.d.ts +5 -0
  426. package/lib/components/Icon/streamline-icons/share-external-solid.icon.d.ts.map +1 -0
  427. package/lib/components/Icon/streamline-icons/share-external-solid.icon.js +7 -0
  428. package/lib/components/Icon/streamline-icons/share-external-solid.icon.js.map +1 -0
  429. package/lib/components/Icon/streamline-icons/share-external.icon.d.ts +5 -0
  430. package/lib/components/Icon/streamline-icons/share-external.icon.d.ts.map +1 -0
  431. package/lib/components/Icon/streamline-icons/share-external.icon.js +7 -0
  432. package/lib/components/Icon/streamline-icons/share-external.icon.js.map +1 -0
  433. package/lib/components/Icon/streamlineIconNames.d.ts +2 -1
  434. package/lib/components/Icon/streamlineIconNames.d.ts.map +1 -1
  435. package/lib/components/Icon/streamlineIconNames.js +3 -0
  436. package/lib/components/Icon/streamlineIconNames.js.map +1 -1
  437. package/lib/components/InlineEdit/InlineEdit.d.ts +19 -4
  438. package/lib/components/InlineEdit/InlineEdit.d.ts.map +1 -1
  439. package/lib/components/InlineEdit/InlineEdit.js +45 -4
  440. package/lib/components/InlineEdit/InlineEdit.js.map +1 -1
  441. package/lib/components/InlineEdit/InlineEdit.styles.d.ts +43 -7
  442. package/lib/components/InlineEdit/InlineEdit.styles.d.ts.map +1 -1
  443. package/lib/components/InlineEdit/InlineEdit.styles.js +38 -20
  444. package/lib/components/InlineEdit/InlineEdit.styles.js.map +1 -1
  445. package/lib/components/Input/Input.d.ts +1 -1
  446. package/lib/components/Input/Input.js +3 -3
  447. package/lib/components/Input/Input.js.map +1 -1
  448. package/lib/components/Lightbox/Lightbox.d.ts +1 -1
  449. package/lib/components/Lightbox/Lightbox.js +2 -6
  450. package/lib/components/Lightbox/Lightbox.js.map +1 -1
  451. package/lib/components/Lightbox/Lightbox.styles.d.ts.map +1 -1
  452. package/lib/components/Lightbox/Lightbox.styles.js +1 -0
  453. package/lib/components/Lightbox/Lightbox.styles.js.map +1 -1
  454. package/lib/components/Link/Link.d.ts +20 -17
  455. package/lib/components/Link/Link.d.ts.map +1 -1
  456. package/lib/components/Link/Link.js +89 -9
  457. package/lib/components/Link/Link.js.map +1 -1
  458. package/lib/components/Link/Link.test-ids.d.ts +1 -1
  459. package/lib/components/Link/Link.test-ids.d.ts.map +1 -1
  460. package/lib/components/Link/Link.test-ids.js +2 -1
  461. package/lib/components/Link/Link.test-ids.js.map +1 -1
  462. package/lib/components/List/CommaSeparatedList.js +1 -3
  463. package/lib/components/List/CommaSeparatedList.js.map +1 -1
  464. package/lib/components/List/List.js +1 -5
  465. package/lib/components/List/List.js.map +1 -1
  466. package/lib/components/ListToolbar/ListToolbar.d.ts +1 -1
  467. package/lib/components/ListToolbar/ListToolbar.d.ts.map +1 -1
  468. package/lib/components/ListToolbar/ListToolbar.js +93 -81
  469. package/lib/components/ListToolbar/ListToolbar.js.map +1 -1
  470. package/lib/components/ListToolbar/ListToolbar.styles.d.ts +821 -40
  471. package/lib/components/ListToolbar/ListToolbar.styles.d.ts.map +1 -1
  472. package/lib/components/ListToolbar/ListToolbar.styles.js +341 -83
  473. package/lib/components/ListToolbar/ListToolbar.styles.js.map +1 -1
  474. package/lib/components/ListToolbar/ListToolbar.types.d.ts +2 -1
  475. package/lib/components/ListToolbar/ListToolbar.types.d.ts.map +1 -1
  476. package/lib/components/ListToolbar/ListToolbar.types.js.map +1 -1
  477. package/lib/components/ListToolbar/PresetMenuPopover.d.ts.map +1 -1
  478. package/lib/components/ListToolbar/PresetMenuPopover.js +16 -5
  479. package/lib/components/ListToolbar/PresetMenuPopover.js.map +1 -1
  480. package/lib/components/Location/LocationInput.d.ts +2 -2
  481. package/lib/components/Location/LocationInput.d.ts.map +1 -1
  482. package/lib/components/Location/LocationInput.js.map +1 -1
  483. package/lib/components/Menu/FlyoutMenuList.d.ts.map +1 -1
  484. package/lib/components/Menu/FlyoutMenuList.js +1 -1
  485. package/lib/components/Menu/FlyoutMenuList.js.map +1 -1
  486. package/lib/components/Menu/Menu.d.ts +1 -1
  487. package/lib/components/Menu/Menu.d.ts.map +1 -1
  488. package/lib/components/Menu/Menu.js +12 -4
  489. package/lib/components/Menu/Menu.js.map +1 -1
  490. package/lib/components/Menu/Menu.styles.d.ts.map +1 -1
  491. package/lib/components/Menu/Menu.styles.js +6 -0
  492. package/lib/components/Menu/Menu.styles.js.map +1 -1
  493. package/lib/components/Menu/Menu.test-ids.d.ts +1 -1
  494. package/lib/components/Menu/Menu.test-ids.d.ts.map +1 -1
  495. package/lib/components/Menu/Menu.test-ids.js +1 -1
  496. package/lib/components/Menu/Menu.test-ids.js.map +1 -1
  497. package/lib/components/Menu/Menu.types.d.ts +9 -0
  498. package/lib/components/Menu/Menu.types.d.ts.map +1 -1
  499. package/lib/components/Menu/Menu.types.js.map +1 -1
  500. package/lib/components/Menu/MenuItem.d.ts +1 -1
  501. package/lib/components/Menu/helpers.d.ts +14 -0
  502. package/lib/components/Menu/helpers.d.ts.map +1 -1
  503. package/lib/components/Menu/helpers.js +26 -0
  504. package/lib/components/Menu/helpers.js.map +1 -1
  505. package/lib/components/MenuButton/MenuButton.d.ts +1 -1
  506. package/lib/components/MenuButton/MenuButton.d.ts.map +1 -1
  507. package/lib/components/MenuButton/MenuButton.js +47 -7
  508. package/lib/components/MenuButton/MenuButton.js.map +1 -1
  509. package/lib/components/MetaList/MetaList.d.ts +1 -1
  510. package/lib/components/Modal/DockedModals.d.ts.map +1 -1
  511. package/lib/components/Modal/DockedModals.js +4 -3
  512. package/lib/components/Modal/DockedModals.js.map +1 -1
  513. package/lib/components/Modal/MinimizedModal.d.ts.map +1 -1
  514. package/lib/components/Modal/MinimizedModal.js +4 -0
  515. package/lib/components/Modal/MinimizedModal.js.map +1 -1
  516. package/lib/components/Modal/Modal.styles.d.ts.map +1 -1
  517. package/lib/components/Modal/Modal.styles.js +7 -3
  518. package/lib/components/Modal/Modal.styles.js.map +1 -1
  519. package/lib/components/MultiStepForm/FormProgress.styles.d.ts +25 -1
  520. package/lib/components/MultiStepForm/FormProgress.styles.d.ts.map +1 -1
  521. package/lib/components/MultiStepForm/FormProgress.styles.js +168 -5
  522. package/lib/components/MultiStepForm/FormProgress.styles.js.map +1 -1
  523. package/lib/components/MultiStepForm/HorizontalFormProgress.d.ts +2 -2
  524. package/lib/components/MultiStepForm/HorizontalFormProgress.d.ts.map +1 -1
  525. package/lib/components/MultiStepForm/HorizontalFormProgress.js +48 -22
  526. package/lib/components/MultiStepForm/HorizontalFormProgress.js.map +1 -1
  527. package/lib/components/MultiStepForm/MultiStepForm.d.ts +29 -29
  528. package/lib/components/MultiStepForm/MultiStepForm.d.ts.map +1 -1
  529. package/lib/components/MultiStepForm/MultiStepForm.js +2 -2
  530. package/lib/components/MultiStepForm/MultiStepForm.js.map +1 -1
  531. package/lib/components/MultiStepForm/MultiStepForm.types.d.ts +5 -0
  532. package/lib/components/MultiStepForm/MultiStepForm.types.d.ts.map +1 -1
  533. package/lib/components/MultiStepForm/MultiStepForm.types.js.map +1 -1
  534. package/lib/components/MultiStepForm/VerticalFormProgress.d.ts +2 -2
  535. package/lib/components/MultiStepForm/VerticalFormProgress.d.ts.map +1 -1
  536. package/lib/components/MultiStepForm/VerticalFormProgress.js +45 -20
  537. package/lib/components/MultiStepForm/VerticalFormProgress.js.map +1 -1
  538. package/lib/components/MultiStepForm/useFormProgressOverflow.d.ts +1 -1
  539. package/lib/components/MultiStepForm/useFormProgressOverflow.d.ts.map +1 -1
  540. package/lib/components/MultiStepForm/useFormProgressOverflow.js +17 -9
  541. package/lib/components/MultiStepForm/useFormProgressOverflow.js.map +1 -1
  542. package/lib/components/Number/NumberDisplay.d.ts +5 -0
  543. package/lib/components/Number/NumberDisplay.d.ts.map +1 -1
  544. package/lib/components/Number/NumberDisplay.js +3 -2
  545. package/lib/components/Number/NumberDisplay.js.map +1 -1
  546. package/lib/components/Number/NumberInput.d.ts +1 -1
  547. package/lib/components/Number/NumberInput.d.ts.map +1 -1
  548. package/lib/components/Number/NumberInput.js +10 -5
  549. package/lib/components/Number/NumberInput.js.map +1 -1
  550. package/lib/components/Number/NumberInput.types.d.ts +11 -3
  551. package/lib/components/Number/NumberInput.types.d.ts.map +1 -1
  552. package/lib/components/Number/NumberInput.types.js.map +1 -1
  553. package/lib/components/Number/NumberRangeInput.d.ts +1 -1
  554. package/lib/components/Number/NumberRangeInput.d.ts.map +1 -1
  555. package/lib/components/Number/NumberRangeInput.js +2 -2
  556. package/lib/components/Number/NumberRangeInput.js.map +1 -1
  557. package/lib/components/Number/utils.d.ts +3 -1
  558. package/lib/components/Number/utils.d.ts.map +1 -1
  559. package/lib/components/Number/utils.js +11 -9
  560. package/lib/components/Number/utils.js.map +1 -1
  561. package/lib/components/PageTemplates/CategorySubPage.styles.js +2 -2
  562. package/lib/components/PageTemplates/CategorySubPage.styles.js.map +1 -1
  563. package/lib/components/PageTemplates/DashboardPage.js +1 -1
  564. package/lib/components/PageTemplates/DashboardPage.js.map +1 -1
  565. package/lib/components/PageTemplates/GridLayout/EditorBackground.js +1 -1
  566. package/lib/components/PageTemplates/GridLayout/EditorBackground.js.map +1 -1
  567. package/lib/components/PageTemplates/GridLayout/GridLayoutEditor.d.ts.map +1 -1
  568. package/lib/components/PageTemplates/GridLayout/GridLayoutEditor.js +44 -10
  569. package/lib/components/PageTemplates/GridLayout/GridLayoutEditor.js.map +1 -1
  570. package/lib/components/PageTemplates/GridLayout/GridLayoutViewer.js +2 -9
  571. package/lib/components/PageTemplates/GridLayout/GridLayoutViewer.js.map +1 -1
  572. package/lib/components/PageTemplates/PageTemplates.d.ts +7 -7
  573. package/lib/components/PageTemplates/PageTemplates.js +1 -1
  574. package/lib/components/PageTemplates/PageTemplates.js.map +1 -1
  575. package/lib/components/Phone/PhoneDisplay.d.ts +10 -0
  576. package/lib/components/Phone/PhoneDisplay.d.ts.map +1 -1
  577. package/lib/components/Phone/PhoneDisplay.js +7 -2
  578. package/lib/components/Phone/PhoneDisplay.js.map +1 -1
  579. package/lib/components/Phone/PhoneInput.d.ts +11 -1
  580. package/lib/components/Phone/PhoneInput.d.ts.map +1 -1
  581. package/lib/components/Phone/PhoneInput.js +21 -8
  582. package/lib/components/Phone/PhoneInput.js.map +1 -1
  583. package/lib/components/Phone/utils.d.ts +4 -2
  584. package/lib/components/Phone/utils.d.ts.map +1 -1
  585. package/lib/components/Phone/utils.js +17 -6
  586. package/lib/components/Phone/utils.js.map +1 -1
  587. package/lib/components/Popover/getResolvedTarget.d.ts +11 -0
  588. package/lib/components/Popover/getResolvedTarget.d.ts.map +1 -0
  589. package/lib/components/Popover/getResolvedTarget.js +13 -0
  590. package/lib/components/Popover/getResolvedTarget.js.map +1 -0
  591. package/lib/components/Popover/index.d.ts +1 -0
  592. package/lib/components/Popover/index.d.ts.map +1 -1
  593. package/lib/components/Popover/index.js +1 -0
  594. package/lib/components/Popover/index.js.map +1 -1
  595. package/lib/components/Preview/Preview.types.d.ts +1 -0
  596. package/lib/components/Preview/Preview.types.d.ts.map +1 -1
  597. package/lib/components/Preview/Preview.types.js.map +1 -1
  598. package/lib/components/Preview/PreviewManager.d.ts.map +1 -1
  599. package/lib/components/Preview/PreviewManager.js +10 -1
  600. package/lib/components/Preview/PreviewManager.js.map +1 -1
  601. package/lib/components/Preview/PreviewPanel.d.ts.map +1 -1
  602. package/lib/components/Preview/PreviewPanel.js +8 -3
  603. package/lib/components/Preview/PreviewPanel.js.map +1 -1
  604. package/lib/components/Progress/Progress.d.ts.map +1 -1
  605. package/lib/components/Progress/Progress.js +39 -7
  606. package/lib/components/Progress/Progress.js.map +1 -1
  607. package/lib/components/Progress/Progress.types.d.ts +10 -4
  608. package/lib/components/Progress/Progress.types.d.ts.map +1 -1
  609. package/lib/components/Progress/Progress.types.js.map +1 -1
  610. package/lib/components/QRCode/QRCode.d.ts +6 -1
  611. package/lib/components/QRCode/QRCode.d.ts.map +1 -1
  612. package/lib/components/QRCode/QRCode.js +17 -9
  613. package/lib/components/QRCode/QRCode.js.map +1 -1
  614. package/lib/components/QRCode/index.d.ts +1 -1
  615. package/lib/components/QRCode/index.d.ts.map +1 -1
  616. package/lib/components/QRCode/index.js.map +1 -1
  617. package/lib/components/RadioButton/RadioButton.d.ts +1 -1
  618. package/lib/components/RadioButton/RadioButtonCard.d.ts +1 -1
  619. package/lib/components/RadioButtonGroup/RadioButtonGroup.d.ts +1 -1
  620. package/lib/components/RadioCheck/RadioCheck.d.ts +5 -3
  621. package/lib/components/RadioCheck/RadioCheck.d.ts.map +1 -1
  622. package/lib/components/RadioCheck/RadioCheck.js +63 -27
  623. package/lib/components/RadioCheck/RadioCheck.js.map +1 -1
  624. package/lib/components/RadioCheckGroup/RadioCheckGroup.d.ts +3 -3
  625. package/lib/components/RadioCheckGroup/RadioCheckGroup.d.ts.map +1 -1
  626. package/lib/components/RadioCheckGroup/RadioCheckGroup.js +46 -25
  627. package/lib/components/RadioCheckGroup/RadioCheckGroup.js.map +1 -1
  628. package/lib/components/ResponsiveActions/ResponsiveActions.d.ts.map +1 -1
  629. package/lib/components/ResponsiveActions/ResponsiveActions.js +1 -0
  630. package/lib/components/ResponsiveActions/ResponsiveActions.js.map +1 -1
  631. package/lib/components/Scanner/Scanner.d.ts +21 -0
  632. package/lib/components/Scanner/Scanner.d.ts.map +1 -0
  633. package/lib/components/Scanner/Scanner.js +177 -0
  634. package/lib/components/Scanner/Scanner.js.map +1 -0
  635. package/lib/components/Scanner/Scanner.styles.d.ts +4 -0
  636. package/lib/components/Scanner/Scanner.styles.d.ts.map +1 -0
  637. package/lib/components/Scanner/Scanner.styles.js +17 -0
  638. package/lib/components/Scanner/Scanner.styles.js.map +1 -0
  639. package/lib/components/Scanner/Scanner.test-ids.d.ts +2 -0
  640. package/lib/components/Scanner/Scanner.test-ids.d.ts.map +1 -0
  641. package/lib/components/Scanner/Scanner.test-ids.js +3 -0
  642. package/lib/components/Scanner/Scanner.test-ids.js.map +1 -0
  643. package/lib/components/Scanner/index.d.ts +3 -0
  644. package/lib/components/Scanner/index.d.ts.map +1 -0
  645. package/lib/components/Scanner/index.js +2 -0
  646. package/lib/components/Scanner/index.js.map +1 -0
  647. package/lib/components/Select/Select.d.ts +3 -4
  648. package/lib/components/Select/Select.d.ts.map +1 -1
  649. package/lib/components/Select/Select.js +11 -6
  650. package/lib/components/Select/Select.js.map +1 -1
  651. package/lib/components/SelectionCard/SelectionCard.d.ts +2 -2
  652. package/lib/components/SelectionCard/SelectionCard.d.ts.map +1 -1
  653. package/lib/components/SelectionCard/SelectionCard.js +3 -3
  654. package/lib/components/SelectionCard/SelectionCard.js.map +1 -1
  655. package/lib/components/SelectionCard/SelectionCard.styles.js +1 -1
  656. package/lib/components/SelectionCard/SelectionCard.styles.js.map +1 -1
  657. package/lib/components/SelectionCard/SelectionCardDisplay.d.ts +6 -1
  658. package/lib/components/SelectionCard/SelectionCardDisplay.d.ts.map +1 -1
  659. package/lib/components/SelectionCard/SelectionCardDisplay.js +4 -2
  660. package/lib/components/SelectionCard/SelectionCardDisplay.js.map +1 -1
  661. package/lib/components/ShortcutManager/Store.d.ts +1 -1
  662. package/lib/components/ShortcutManager/Store.d.ts.map +1 -1
  663. package/lib/components/Signature/Signature.d.ts +28 -0
  664. package/lib/components/Signature/Signature.d.ts.map +1 -0
  665. package/lib/components/Signature/Signature.js +397 -0
  666. package/lib/components/Signature/Signature.js.map +1 -0
  667. package/lib/components/Signature/Signature.styles.d.ts +197 -0
  668. package/lib/components/Signature/Signature.styles.d.ts.map +1 -0
  669. package/lib/components/Signature/Signature.styles.js +119 -0
  670. package/lib/components/Signature/Signature.styles.js.map +1 -0
  671. package/lib/components/Signature/Signature.test-ids.d.ts +2 -0
  672. package/lib/components/Signature/Signature.test-ids.d.ts.map +1 -0
  673. package/lib/components/Signature/Signature.test-ids.js +3 -0
  674. package/lib/components/Signature/Signature.test-ids.js.map +1 -0
  675. package/lib/components/Signature/index.d.ts +4 -0
  676. package/lib/components/Signature/index.d.ts.map +1 -0
  677. package/lib/components/Signature/index.js +3 -0
  678. package/lib/components/Signature/index.js.map +1 -0
  679. package/lib/components/SkipLinks/SkipLinks.d.ts +1 -1
  680. package/lib/components/SkipLinks/SkipLinks.d.ts.map +1 -1
  681. package/lib/components/Slider/Slider.d.ts +1 -1
  682. package/lib/components/SpeechToTextButton/SpeechToTextButton.d.ts +1 -1
  683. package/lib/components/SpeechToTextButton/SpeechToTextButton.js +1 -1
  684. package/lib/components/SpeechToTextButton/SpeechToTextButton.js.map +1 -1
  685. package/lib/components/SummaryItem/SummaryItem.d.ts +57 -57
  686. package/lib/components/SummaryList/SummaryList.d.ts +1 -1
  687. package/lib/components/SummaryList/SummaryList.d.ts.map +1 -1
  688. package/lib/components/SummaryList/SummaryList.js +8 -4
  689. package/lib/components/SummaryList/SummaryList.js.map +1 -1
  690. package/lib/components/Switch/Switch.js +2 -2
  691. package/lib/components/Switch/Switch.js.map +1 -1
  692. package/lib/components/Tabs/Tab.d.ts +1 -1
  693. package/lib/components/Tabs/Tab.d.ts.map +1 -1
  694. package/lib/components/Tabs/Tab.js +24 -8
  695. package/lib/components/Tabs/Tab.js.map +1 -1
  696. package/lib/components/Tabs/TabPanel.d.ts +28 -28
  697. package/lib/components/Text/Text.d.ts.map +1 -1
  698. package/lib/components/Text/Text.js +2 -0
  699. package/lib/components/Text/Text.js.map +1 -1
  700. package/lib/components/TextArea/TextArea.d.ts +1 -1
  701. package/lib/components/TextArea/TextArea.d.ts.map +1 -1
  702. package/lib/components/TextArea/TextArea.js +10 -24
  703. package/lib/components/TextArea/TextArea.js.map +1 -1
  704. package/lib/components/TextArea/TextArea.styles.d.ts +0 -1
  705. package/lib/components/TextArea/TextArea.styles.d.ts.map +1 -1
  706. package/lib/components/TextArea/TextArea.styles.js +1 -2
  707. package/lib/components/TextArea/TextArea.styles.js.map +1 -1
  708. package/lib/components/Toaster/Toaster.js +2 -6
  709. package/lib/components/Toaster/Toaster.js.map +1 -1
  710. package/lib/components/Tooltip/Tooltip.d.ts +1 -1
  711. package/lib/components/Tooltip/Tooltip.d.ts.map +1 -1
  712. package/lib/components/Tooltip/Tooltip.js +8 -2
  713. package/lib/components/Tooltip/Tooltip.js.map +1 -1
  714. package/lib/components/Tree/StandardTree.js +1 -3
  715. package/lib/components/Tree/StandardTree.js.map +1 -1
  716. package/lib/components/Tree/StandardTree.styles.d.ts +2 -2
  717. package/lib/components/Tree/Tree.d.ts +1 -1
  718. package/lib/hooks/index.d.ts +1 -0
  719. package/lib/hooks/index.d.ts.map +1 -1
  720. package/lib/hooks/index.js +1 -0
  721. package/lib/hooks/index.js.map +1 -1
  722. package/lib/hooks/useAnimatedText.d.ts.map +1 -1
  723. package/lib/hooks/useAnimatedText.js +12 -1
  724. package/lib/hooks/useAnimatedText.js.map +1 -1
  725. package/lib/hooks/useBreakpoint.d.ts.map +1 -1
  726. package/lib/hooks/useBreakpoint.js +3 -1
  727. package/lib/hooks/useBreakpoint.js.map +1 -1
  728. package/lib/hooks/useComputedLengthPx.d.ts +10 -0
  729. package/lib/hooks/useComputedLengthPx.d.ts.map +1 -0
  730. package/lib/hooks/useComputedLengthPx.js +46 -0
  731. package/lib/hooks/useComputedLengthPx.js.map +1 -0
  732. package/lib/hooks/useI18n.d.ts +137 -14
  733. package/lib/hooks/useI18n.d.ts.map +1 -1
  734. package/lib/hooks/useScrollToggle.d.ts +2 -1
  735. package/lib/hooks/useScrollToggle.d.ts.map +1 -1
  736. package/lib/hooks/useScrollToggle.js +26 -8
  737. package/lib/hooks/useScrollToggle.js.map +1 -1
  738. package/lib/i18n/default.d.ts +136 -14
  739. package/lib/i18n/default.d.ts.map +1 -1
  740. package/lib/i18n/default.js +153 -22
  741. package/lib/i18n/default.js.map +1 -1
  742. package/lib/i18n/i18n.d.ts +136 -13
  743. package/lib/i18n/i18n.d.ts.map +1 -1
  744. package/lib/index.d.ts +4 -0
  745. package/lib/index.d.ts.map +1 -1
  746. package/lib/index.js +4 -0
  747. package/lib/index.js.map +1 -1
  748. package/lib/styles/GlobalStyle.d.ts.map +1 -1
  749. package/lib/styles/GlobalStyle.js +3 -3
  750. package/lib/styles/GlobalStyle.js.map +1 -1
  751. package/lib/styles/utils.d.ts +24 -4
  752. package/lib/styles/utils.d.ts.map +1 -1
  753. package/lib/styles/utils.js +59 -13
  754. package/lib/styles/utils.js.map +1 -1
  755. package/lib/theme/index.d.ts +4 -0
  756. package/lib/theme/index.d.ts.map +1 -1
  757. package/lib/theme/index.js +4 -0
  758. package/lib/theme/index.js.map +1 -1
  759. package/lib/theme/theme.d.ts +321 -0
  760. package/lib/theme/theme.d.ts.map +1 -1
  761. package/lib/theme/themeDefinition.json +193 -5
  762. package/lib/theme/themeOverrides.schema.json +188 -1
  763. package/lib/theme/themes/aurigaDarkTheme.json +159 -0
  764. package/lib/theme/themes/aurigaTheme.json +150 -0
  765. package/lib/theme/themes/orionDarkTheme.json +3 -1
  766. package/lib/theme/themes/orionTheme.json +3 -3
  767. package/lib/theme/themes/velaDarkTheme.json +175 -0
  768. package/lib/theme/themes/velaTheme.json +169 -0
  769. package/lib/theme/themes/virgoDarkTheme.json +4 -4
  770. package/lib/theme/themes/virgoTheme.json +5 -5
  771. package/lib/utils/index.d.ts +1 -0
  772. package/lib/utils/index.d.ts.map +1 -1
  773. package/lib/utils/index.js +1 -0
  774. package/lib/utils/index.js.map +1 -1
  775. package/lib/utils/isTouchDevice.d.ts +3 -0
  776. package/lib/utils/isTouchDevice.d.ts.map +1 -0
  777. package/lib/utils/isTouchDevice.js +4 -0
  778. package/lib/utils/isTouchDevice.js.map +1 -0
  779. package/package.json +6 -5
@@ -1 +1 @@
1
- {"version":3,"file":"GridLayoutViewer.js","sourceRoot":"","sources":["../../../../src/components/PageTemplates/GridLayout/GridLayoutViewer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAW,UAAU,EAA+B,OAAO,EAAE,MAAM,OAAO,CAAC;AAClF,OAAO,EAAE,UAAU,IAAI,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,IAAI,MAAM,YAAY,CAAC;AAC9B,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAG1D,OAAO,mBAAmB,MAAM,UAAU,CAAC;AAC3C,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,EAEjB,MAAM,SAAS,CAAC;AACjB,OAAO,qBAAqB,MAAM,yBAAyB,CAAC;AAE5D,MAAM,aAAa,GAAG,MAAM,CAAC,IAAI,CAAC,CAAA;;CAEjC,CAAC;AA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C,CAAC,MAAM,IAAI,CACtB,MAAC,oBAAoB,OACf,gBAAgB,EACpB,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,EAAE,CAAC,EAClC,OAAO,EAAE,WAAW,EACpB,WAAW,EAAE,KAAK,EAClB,WAAW,EAAE,KAAK,EAClB,WAAW,EAAE,KAAK,EAClB,IAAI,EAAE,IAAI,EACV,WAAW,EAAE,WAAW,aAEvB,QAAQ,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE;wBAC1C,MAAM,QAAQ,GACZ,eAAe,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAI,CAAC,IAAI,iBAAiB,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAI,CAAC,CAAC;wBAEjF,OAAO,CACL,KAAC,cAAc,IAAiB,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,YAC/E,KAAK,IADa,KAAK,CAAC,GAAG,CAEb,CAClB,CAAC;oBACJ,CAAC,CAAC,EAED,CAAC,CAAC,QAAQ,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,CAAC,IAAI;oBACvC,4DAA4D;oBAC5D,oEAAoE;oBACpE,gBAAS,IAAI,CAAG,CACjB,IACoB,CACxB,EAED,KAAC,iBAAiB,KAAG,IACP,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC","sourcesContent":["import { type FC, forwardRef, type ReactElement, type Ref, useMemo } from 'react';\nimport { Responsive as ResponsiveGridLayout } from 'react-grid-layout';\nimport styled, { css } from 'styled-components';\n\nimport Flex from '../../Flex';\nimport { useDirection, useElement } from '../../../hooks';\n\nimport type { GridBreakPointWiseValues, GridLayoutModel } from './config';\nimport useGridLayoutConfig from './config';\nimport {\n convertLtrToRtl,\n getBreakpointAndCols,\n getLastItemsInLayout,\n getRowHeight,\n useGridItemSorter,\n useMonitoredSize,\n type GridLayoutRowsProp\n} from './utils';\nimport ReactGridLayoutStyles from './ReactGridLayoutStyles';\n\nconst StyledWrapper = styled(Flex)`\n block-size: 100%;\n`;\n\nconst StyledEmptyFooter = styled.div`\n block-size: ${({ theme }) => `calc(${theme.base.spacing} * 2)`};\n`;\n\nconst StyledAutoSizeItem = styled(Flex)<{ autoSize: boolean }>(({ autoSize }) => {\n if (!autoSize) return '';\n return css`\n /* Overriding the inline style added by the RGL plugin. Needed to give the item a free height. */\n height: auto !important;\n\n /* Needed to maintain the extra gap at the bottom, since it's position absolute-ly */\n padding-bottom: 1rem;\n `;\n});\n\n/**\n * Wrapper on top of GridItems to forward ref, etc.\n * https://github.com/react-grid-layout/react-grid-layout#custom-child-components-and-draggable-handles\n */\nconst ViewerGridItem = forwardRef(\n ({ children, autoSize, direction, ...restProps }: any, ref: Ref<HTMLDivElement>) => (\n <StyledAutoSizeItem\n autoSize={autoSize}\n container={{ direction: 'column' }}\n ref={ref}\n {...restProps}\n dir={direction}\n >\n {children}\n </StyledAutoSizeItem>\n )\n);\n\n/** Props for the GridLayoutViewer component */\nexport interface GridLayoutViewerProps {\n /**\n * Layout-model saved previously from a GridLayoutEditor.\n * If undefined, the elements will be rendered in some default layout.\n * NOTE: A remount is needed if this layoutModel needs to be changed from the outside.\n * - The component reads it only once on load and populates layouts for missing breakpoints, assuming `lg` as the baseline\n */\n layoutModel: GridLayoutModel | undefined;\n\n /**\n * Breakpoints set on the Grid.\n * Needs to be aligned with `rows` and `cols`\n */\n breakpoints: GridBreakPointWiseValues;\n\n /**\n * # of rows to fit into the container height at each breakpoint (unless a fixed rowHeight is preferred)\n * rows should be aligned with `breakpoints` prop\n */\n rows: GridLayoutRowsProp;\n\n /**\n * Breakpoint-wise numColumns on the Grid.\n * cols should be aligned with `breakpoints` prop\n */\n cols: GridBreakPointWiseValues;\n\n /** Child elements to be rendered as Grid items. Each element should have a unique `key` */\n children?: ReactElement[];\n\n /**\n * List of items that needs to have free-flowing height.\n * NOTE: This works just for the items which don't have any other content underneath them.\n * By default, all items will have fixed heights derived from the `layoutModel` prop\n */\n autoSizeItemIDs?: string[];\n\n /**\n * Add container margin to viewer and runtime\n * @default true\n */\n padContent?: boolean;\n\n /**\n * Optional minimum row height (px) to override the built-in defaults.\n * Useful when grid items contain content that requires more vertical space\n * than the default minimum (e.g. compact SimpleValue insights).\n */\n minRowHeight?: number;\n}\n\n/**\n * Viewer component for a Grid created using GridLayoutEditor\n * @component\n */\nconst GridLayoutViewer: FC<GridLayoutViewerProps> = ({\n children,\n layoutModel: layoutModelProp,\n rows,\n cols,\n autoSizeItemIDs = [],\n breakpoints,\n padContent = true,\n minRowHeight: minRowHeightProp\n}) => {\n // Track width changes: https://github.com/react-grid-layout/react-grid-layout#providing-grid-width\n const [wrapperEl, setWrapperEl] = useElement<HTMLElement>();\n const size = useMonitoredSize(wrapperEl);\n const width = size?.width;\n const height = size?.height;\n const commonGridConfig = useGridLayoutConfig(padContent);\n const { breakpoint, numColumns } = useMemo(\n () => getBreakpointAndCols(width || 0, breakpoints, cols),\n [width, breakpoints, cols]\n );\n const { rowHeight } = useMemo(\n () =>\n getRowHeight(\n breakpoint,\n height || 0,\n commonGridConfig.margin[0],\n rows,\n layoutModelProp,\n minRowHeightProp\n ),\n [breakpoint, commonGridConfig.margin, height, rows, layoutModelProp, minRowHeightProp]\n );\n\n // On load, setting layoutModel based on the direction\n const { rtl } = useDirection();\n const layoutModel = useMemo(() => {\n if (rtl && layoutModelProp) return convertLtrToRtl(layoutModelProp, cols);\n return layoutModelProp;\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n // Callback to sort child DOM nodes to ensure an intuitive tabbing order\n const gridItemSorter = useGridItemSorter(layoutModelProp?.[breakpoint], numColumns);\n\n // Get list of last items in layout\n const lastItemsInLayout = useMemo(\n () => getLastItemsInLayout(layoutModel?.[breakpoint]),\n [breakpoint, layoutModel]\n );\n\n return (\n // Enforcing ltr here due to limitations of the RGL plugin.\n // The layout is mirrored using convertLtrToRtl above,\n // and then the direction is explicitly passed to items below.\n <StyledWrapper ref={setWrapperEl} dir='ltr'>\n <ReactGridLayoutStyles />\n\n {!!width && !!height && (\n <ResponsiveGridLayout\n {...commonGridConfig}\n width={width}\n rowHeight={Math.max(rowHeight, 50)}\n layouts={layoutModel}\n isResizable={false}\n isDraggable={false}\n isDroppable={false}\n cols={cols}\n breakpoints={breakpoints}\n >\n {children?.sort(gridItemSorter).map(child => {\n const autoSize =\n autoSizeItemIDs.includes(child.key!) && lastItemsInLayout.includes(child.key!);\n\n return (\n <ViewerGridItem key={child.key} autoSize={autoSize} direction={rtl ? 'rtl' : 'ltr'}>\n {child}\n </ViewerGridItem>\n );\n })}\n\n {(!children || children.length === 0) && (\n // Placeholder when no children. Needed to avoid exceptions:\n // https://github.com/react-grid-layout/react-grid-layout/issues/216\n <div key='--' />\n )}\n </ResponsiveGridLayout>\n )}\n {/** Removed container padding, hence adding extra space at bottom of grid */}\n <StyledEmptyFooter />\n </StyledWrapper>\n );\n};\n\nexport default GridLayoutViewer;\n"]}
1
+ {"version":3,"file":"GridLayoutViewer.js","sourceRoot":"","sources":["../../../../src/components/PageTemplates/GridLayout/GridLayoutViewer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAW,UAAU,EAA+B,OAAO,EAAE,MAAM,OAAO,CAAC;AAClF,OAAO,EAAE,UAAU,IAAI,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,IAAI,MAAM,YAAY,CAAC;AAC9B,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAG1D,OAAO,mBAAmB,MAAM,UAAU,CAAC;AAC3C,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,EAEjB,MAAM,SAA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AAG,EAAC,KAAK,aACzC,KAAC,qBAAqB,KAAG,EAExB,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,MAAM,IAAI,CACtB,MAAC,oBAAoB,OACf,gBAAgB,EACpB,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,EAAE,CAAC,EAClC,OAAO,EAAE,WAAW,EACpB,WAAW,EAAE,KAAK,EAClB,WAAW,EAAE,KAAK,EAClB,WAAW,EAAE,KAAK,EAClB,IAAI,EAAE,IAAI,EACV,WAAW,EAAE,WAAW,aAEvB,QAAQ,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE;wBAC1C,MAAM,QAAQ,GACZ,eAAe,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAI,CAAC,IAAI,iBAAiB,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAI,CAAC,CAAC;wBAEjF,OAAO,CACL,KAAC,cAAc,IAAiB,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,YAC/E,KAAK,IADa,KAAK,CAAC,GAAG,CAEb,CAClB,CAAC;oBACJ,CAAC,CAAC,EAED,CAAC,CAAC,QAAQ,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,CAAC,IAAI,CAGvC,gBAAS,IAAI,CAAG,CACjB,IACoB,CACxB,EAED,KAAC,iBAAiB,KAAG,IACP,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC","sourcesContent":["import { type FC, forwardRef, type ReactElement, type Ref, useMemo } from 'react';\nimport { Responsive as ResponsiveGridLayout } from 'react-grid-layout';\nimport styled, { css } from 'styled-components';\n\nimport Flex from '../../Flex';\nimport { useDirection, useElement } from '../../../hooks';\n\nimport type { GridBreakPointWiseValues, GridLayoutModel } from './config';\nimport useGridLayoutConfig from './config';\nimport {\n convertLtrToRtl,\n getBreakpointAndCols,\n getLastItemsInLayout,\n getRowHeight,\n useGridItemSorter,\n useMonitoredSize,\n type GridLayoutRowsProp\n} from './utils';\nimport ReactGridLayoutStyles from './ReactGridLayoutStyles';\n\nconst StyledWrapper = styled(Flex)`\n block-size: 100%;\n`;\n\nconst StyledEmptyFooter = styled.div`\n block-size: ${({ theme }) => `calc(${theme.base.spacing} * 2)`};\n`;\n\nconst StyledAutoSizeItem = styled(Flex)<{ autoSize: boolean }>(({ autoSize }) => {\n if (!autoSize) return '';\n return css`\n /* Overriding the inline style added by the RGL plugin. Needed to give the item a free height. */\n height: auto !important;\n\n /* Needed to maintain the extra gap at the bottom, since it's position absolute-ly */\n padding-bottom: 1rem;\n `;\n});\n\n/**\n * Wrapper on top of GridItems to forward ref, etc.\n * https://github.com/react-grid-layout/react-grid-layout#custom-child-components-and-draggable-handles\n */\nconst ViewerGridItem = forwardRef(\n ({ children, autoSize, direction, ...restProps }: any, ref: Ref<HTMLDivElement>) => (\n <StyledAutoSizeItem\n autoSize={autoSize}\n container={{ direction: 'column' }}\n ref={ref}\n {...restProps}\n dir={direction}\n >\n {children}\n </StyledAutoSizeItem>\n )\n);\n\n/** Props for the GridLayoutViewer component */\nexport interface GridLayoutViewerProps {\n /**\n * Layout-model saved previously from a GridLayoutEditor.\n * If undefined, the elements will be rendered in some default layout.\n * NOTE: A remount is needed if this layoutModel needs to be changed from the outside.\n * - The component reads it only once on load and populates layouts for missing breakpoints, assuming `lg` as the baseline\n */\n layoutModel: GridLayoutModel | undefined;\n\n /**\n * Breakpoints set on the Grid.\n * Needs to be aligned with `rows` and `cols`\n */\n breakpoints: GridBreakPointWiseValues;\n\n /**\n * # of rows to fit into the container height at each breakpoint (unless a fixed rowHeight is preferred)\n * rows should be aligned with `breakpoints` prop\n */\n rows: GridLayoutRowsProp;\n\n /**\n * Breakpoint-wise numColumns on the Grid.\n * cols should be aligned with `breakpoints` prop\n */\n cols: GridBreakPointWiseValues;\n\n /** Child elements to be rendered as Grid items. Each element should have a unique `key` */\n children?: ReactElement[];\n\n /**\n * List of items that needs to have free-flowing height.\n * NOTE: This works just for the items which don't have any other content underneath them.\n * By default, all items will have fixed heights derived from the `layoutModel` prop\n */\n autoSizeItemIDs?: string[];\n\n /**\n * Add container margin to viewer and runtime\n * @default true\n */\n padContent?: boolean;\n\n /**\n * Optional minimum row height (px) to override the built-in defaults.\n * Useful when grid items contain content that requires more vertical space\n * than the default minimum (e.g. compact SimpleValue insights).\n */\n minRowHeight?: number;\n}\n\n/**\n * Viewer component for a Grid created using GridLayoutEditor\n * @component\n */\nconst GridLayoutViewer: FC<GridLayoutViewerProps> = ({\n children,\n layoutModel: layoutModelProp,\n rows,\n cols,\n autoSizeItemIDs = [],\n breakpoints,\n padContent = true,\n minRowHeight: minRowHeightProp\n}) => {\n // Track width changes: https://github.com/react-grid-layout/react-grid-layout#providing-grid-width\n const [wrapperEl, setWrapperEl] = useElement<HTMLElement>();\n const size = useMonitoredSize(wrapperEl);\n const width = size?.width;\n const height = size?.height;\n const commonGridConfig = useGridLayoutConfig(padContent);\n const { breakpoint, numColumns } = useMemo(\n () => getBreakpointAndCols(width || 0, breakpoints, cols),\n [width, breakpoints, cols]\n );\n const { rowHeight } = useMemo(\n () =>\n getRowHeight(\n breakpoint,\n height || 0,\n commonGridConfig.margin[0],\n rows,\n layoutModelProp,\n minRowHeightProp\n ),\n [breakpoint, commonGridConfig.margin, height, rows, layoutModelProp, minRowHeightProp]\n );\n\n // On load, setting layoutModel based on the direction\n const { rtl } = useDirection();\n const layoutModel = useMemo(() => {\n if (rtl && layoutModelProp) return convertLtrToRtl(layoutModelProp, cols);\n return layoutModelProp;\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n // Callback to sort child DOM nodes to ensure an intuitive tabbing order\n const gridItemSorter = useGridItemSorter(layoutModelProp?.[breakpoint], numColumns);\n\n // Get list of last items in layout\n const lastItemsInLayout = useMemo(\n () => getLastItemsInLayout(layoutModel?.[breakpoint]),\n [breakpoint, layoutModel]\n );\n\n return (\n // Enforcing ltr here due to limitations of the RGL plugin.\n // The layout is mirrored using convertLtrToRtl above,\n // and then the direction is explicitly passed to items below.\n <StyledWrapper ref={setWrapperEl} dir='ltr'>\n <ReactGridLayoutStyles />\n\n {!!width && !!height && (\n <ResponsiveGridLayout\n {...commonGridConfig}\n width={width}\n rowHeight={Math.max(rowHeight, 50)}\n layouts={layoutModel}\n isResizable={false}\n isDraggable={false}\n isDroppable={false}\n cols={cols}\n breakpoints={breakpoints}\n >\n {children?.sort(gridItemSorter).map(child => {\n const autoSize =\n autoSizeItemIDs.includes(child.key!) && lastItemsInLayout.includes(child.key!);\n\n return (\n <ViewerGridItem key={child.key} autoSize={autoSize} direction={rtl ? 'rtl' : 'ltr'}>\n {child}\n </ViewerGridItem>\n );\n })}\n\n {(!children || children.length === 0) && (\n // Placeholder when no children. Needed to avoid exceptions:\n // https://github.com/react-grid-layout/react-grid-layout/issues/216\n <div key='--' />\n )}\n </ResponsiveGridLayout>\n )}\n {/** Removed container padding, hence adding extra space at bottom of grid */}\n <StyledEmptyFooter />\n </StyledWrapper>\n );\n};\n\nexport default GridLayoutViewer;\n"]}
@@ -108,7 +108,7 @@ export declare const StyledPageIcon: import("styled-components/dist/types").ISty
108
108
  md?: Pick<import("../Flex/Flex").BaseFlexProps, never> & ((Required<Pick<import("../Flex/Flex").BaseFlexProps, "container">> & Partial<Pick<import("../Flex/Flex").BaseFlexProps, "item">>) | (Required<Pick<import("../Flex/Flex").BaseFlexProps, "item">> & Partial<Pick<import("../Flex/Flex").BaseFlexProps, "container">>));
109
109
  lg?: Pick<import("../Flex/Flex").BaseFlexProps, never> & ((Required<Pick<import("../Flex/Flex").BaseFlexProps, "container">> & Partial<Pick<import("../Flex/Flex").BaseFlexProps, "item">>) | (Required<Pick<import("../Flex/Flex").BaseFlexProps, "item">> & Partial<Pick<import("../Flex/Flex").BaseFlexProps, "container">>));
110
110
  xl?: Pick<import("../Flex/Flex").BaseFlexProps, never> & ((Required<Pick<import("../Flex/Flex").BaseFlexProps, "container">> & Partial<Pick<import("../Flex/Flex").BaseFlexProps, "item">>) | (Required<Pick<import("../Flex/Flex").BaseFlexProps, "item">> & Partial<Pick<import("../Flex/Flex").BaseFlexProps, "container">>));
111
- }, "item" | "xs" | "xl" | "sm" | "md" | "lg">>, "ref"> & import("react").RefAttributes<Element> & import("../../types").ForwardProps, "ref"> & {
111
+ }, "item" | "xs" | "xl" | "sm" | "md" | "lg">>, "ref"> & import("react").RefAttributes<Element> & import("../..").ForwardProps, "ref"> & {
112
112
  ref?: import("react").RefObject<Element> | ((instance: Element | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | null | undefined;
113
113
  }) | (Omit<Omit<Pick<import("../Flex/Flex").BaseFlexProps & BaseProps & AsProp & {
114
114
  children?: ReactNode;
@@ -134,7 +134,7 @@ export declare const StyledPageIcon: import("styled-components/dist/types").ISty
134
134
  md?: Pick<import("../Flex/Flex").BaseFlexProps, never> & ((Required<Pick<import("../Flex/Flex").BaseFlexProps, "container">> & Partial<Pick<import("../Flex/Flex").BaseFlexProps, "item">>) | (Required<Pick<import("../Flex/Flex").BaseFlexProps, "item">> & Partial<Pick<import("../Flex/Flex").BaseFlexProps, "container">>));
135
135
  lg?: Pick<import("../Flex/Flex").BaseFlexProps, never> & ((Required<Pick<import("../Flex/Flex").BaseFlexProps, "container">> & Partial<Pick<import("../Flex/Flex").BaseFlexProps, "item">>) | (Required<Pick<import("../Flex/Flex").BaseFlexProps, "item">> & Partial<Pick<import("../Flex/Flex").BaseFlexProps, "container">>));
136
136
  xl?: Pick<import("../Flex/Flex").BaseFlexProps, never> & ((Required<Pick<import("../Flex/Flex").BaseFlexProps, "container">> & Partial<Pick<import("../Flex/Flex").BaseFlexProps, "item">>) | (Required<Pick<import("../Flex/Flex").BaseFlexProps, "item">> & Partial<Pick<import("../Flex/Flex").BaseFlexProps, "container">>));
137
- }, "container" | "xs" | "xl" | "sm" | "md" | "lg">>, "ref"> & import("react").RefAttributes<Element> & import("../../types").ForwardProps, "ref"> & {
137
+ }, "container" | "xs" | "xl" | "sm" | "md" | "lg">>, "ref"> & import("react").RefAttributes<Element> & import("../..").ForwardProps, "ref"> & {
138
138
  ref?: import("react").RefObject<Element> | ((instance: Element | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | null | undefined;
139
139
  }) | (Omit<Omit<Pick<import("../Flex/Flex").BaseFlexProps & BaseProps & AsProp & {
140
140
  children?: ReactNode;
@@ -160,7 +160,7 @@ export declare const StyledPageIcon: import("styled-components/dist/types").ISty
160
160
  md?: Pick<import("../Flex/Flex").BaseFlexProps, never> & ((Required<Pick<import("../Flex/Flex").BaseFlexProps, "container">> & Partial<Pick<import("../Flex/Flex").BaseFlexProps, "item">>) | (Required<Pick<import("../Flex/Flex").BaseFlexProps, "item">> & Partial<Pick<import("../Flex/Flex").BaseFlexProps, "container">>));
161
161
  lg?: Pick<import("../Flex/Flex").BaseFlexProps, never> & ((Required<Pick<import("../Flex/Flex").BaseFlexProps, "container">> & Partial<Pick<import("../Flex/Flex").BaseFlexProps, "item">>) | (Required<Pick<import("../Flex/Flex").BaseFlexProps, "item">> & Partial<Pick<import("../Flex/Flex").BaseFlexProps, "container">>));
162
162
  xl?: Pick<import("../Flex/Flex").BaseFlexProps, never> & ((Required<Pick<import("../Flex/Flex").BaseFlexProps, "container">> & Partial<Pick<import("../Flex/Flex").BaseFlexProps, "item">>) | (Required<Pick<import("../Flex/Flex").BaseFlexProps, "item">> & Partial<Pick<import("../Flex/Flex").BaseFlexProps, "container">>));
163
- }, "container" | "item" | "xl" | "sm" | "md" | "lg">>, "ref"> & import("react").RefAttributes<Element> & import("../../types").ForwardProps, "ref"> & {
163
+ }, "container" | "item" | "xl" | "sm" | "md" | "lg">>, "ref"> & import("react").RefAttributes<Element> & import("../..").ForwardProps, "ref"> & {
164
164
  ref?: import("react").RefObject<Element> | ((instance: Element | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | null | undefined;
165
165
  }) | (Omit<Omit<Pick<import("../Flex/Flex").BaseFlexProps & BaseProps & AsProp & {
166
166
  children?: ReactNode;
@@ -186,7 +186,7 @@ export declare const StyledPageIcon: import("styled-components/dist/types").ISty
186
186
  md?: Pick<import("../Flex/Flex").BaseFlexProps, never> & ((Required<Pick<import("../Flex/Flex").BaseFlexProps, "container">> & Partial<Pick<import("../Flex/Flex").BaseFlexProps, "item">>) | (Required<Pick<import("../Flex/Flex").BaseFlexProps, "item">> & Partial<Pick<import("../Flex/Flex").BaseFlexProps, "container">>));
187
187
  lg?: Pick<import("../Flex/Flex").BaseFlexProps, never> & ((Required<Pick<import("../Flex/Flex").BaseFlexProps, "container">> & Partial<Pick<import("../Flex/Flex").BaseFlexProps, "item">>) | (Required<Pick<import("../Flex/Flex").BaseFlexProps, "item">> & Partial<Pick<import("../Flex/Flex").BaseFlexProps, "container">>));
188
188
  xl?: Pick<import("../Flex/Flex").BaseFlexProps, never> & ((Required<Pick<import("../Flex/Flex").BaseFlexProps, "container">> & Partial<Pick<import("../Flex/Flex").BaseFlexProps, "item">>) | (Required<Pick<import("../Flex/Flex").BaseFlexProps, "item">> & Partial<Pick<import("../Flex/Flex").BaseFlexProps, "container">>));
189
- }, "container" | "item" | "xs" | "sm" | "md" | "lg">>, "ref"> & import("react").RefAttributes<Element> & import("../../types").ForwardProps, "ref"> & {
189
+ }, "container" | "item" | "xs" | "sm" | "md" | "lg">>, "ref"> & import("react").RefAttributes<Element> & import("../..").ForwardProps, "ref"> & {
190
190
  ref?: import("react").RefObject<Element> | ((instance: Element | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | null | undefined;
191
191
  }) | (Omit<Omit<Pick<import("../Flex/Flex").BaseFlexProps & BaseProps & AsProp & {
192
192
  children?: ReactNode;
@@ -212,7 +212,7 @@ export declare const StyledPageIcon: import("styled-components/dist/types").ISty
212
212
  md?: Pick<import("../Flex/Flex").BaseFlexProps, never> & ((Required<Pick<import("../Flex/Flex").BaseFlexProps, "container">> & Partial<Pick<import("../Flex/Flex").BaseFlexProps, "item">>) | (Required<Pick<import("../Flex/Flex").BaseFlexProps, "item">> & Partial<Pick<import("../Flex/Flex").BaseFlexProps, "container">>));
213
213
  lg?: Pick<import("../Flex/Flex").BaseFlexProps, never> & ((Required<Pick<import("../Flex/Flex").BaseFlexProps, "container">> & Partial<Pick<import("../Flex/Flex").BaseFlexProps, "item">>) | (Required<Pick<import("../Flex/Flex").BaseFlexProps, "item">> & Partial<Pick<import("../Flex/Flex").BaseFlexProps, "container">>));
214
214
  xl?: Pick<import("../Flex/Flex").BaseFlexProps, never> & ((Required<Pick<import("../Flex/Flex").BaseFlexProps, "container">> & Partial<Pick<import("../Flex/Flex").BaseFlexProps, "item">>) | (Required<Pick<import("../Flex/Flex").BaseFlexProps, "item">> & Partial<Pick<import("../Flex/Flex").BaseFlexProps, "container">>));
215
- }, "container" | "item" | "xs" | "xl" | "md" | "lg">>, "ref"> & import("react").RefAttributes<Element> & import("../../types").ForwardProps, "ref"> & {
215
+ }, "container" | "item" | "xs" | "xl" | "md" | "lg">>, "ref"> & import("react").RefAttributes<Element> & import("../..").ForwardProps, "ref"> & {
216
216
  ref?: import("react").RefObject<Element> | ((instance: Element | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | null | undefined;
217
217
  }) | (Omit<Omit<Pick<import("../Flex/Flex").BaseFlexProps & BaseProps & AsProp & {
218
218
  children?: ReactNode;
@@ -238,7 +238,7 @@ export declare const StyledPageIcon: import("styled-components/dist/types").ISty
238
238
  md?: Pick<import("../Flex/Flex").BaseFlexProps, never> & ((Required<Pick<import("../Flex/Flex").BaseFlexProps, "container">> & Partial<Pick<import("../Flex/Flex").BaseFlexProps, "item">>) | (Required<Pick<import("../Flex/Flex").BaseFlexProps, "item">> & Partial<Pick<import("../Flex/Flex").BaseFlexProps, "container">>));
239
239
  lg?: Pick<import("../Flex/Flex").BaseFlexProps, never> & ((Required<Pick<import("../Flex/Flex").BaseFlexProps, "container">> & Partial<Pick<import("../Flex/Flex").BaseFlexProps, "item">>) | (Required<Pick<import("../Flex/Flex").BaseFlexProps, "item">> & Partial<Pick<import("../Flex/Flex").BaseFlexProps, "container">>));
240
240
  xl?: Pick<import("../Flex/Flex").BaseFlexProps, never> & ((Required<Pick<import("../Flex/Flex").BaseFlexProps, "container">> & Partial<Pick<import("../Flex/Flex").BaseFlexProps, "item">>) | (Required<Pick<import("../Flex/Flex").BaseFlexProps, "item">> & Partial<Pick<import("../Flex/Flex").BaseFlexProps, "container">>));
241
- }, "container" | "item" | "xs" | "xl" | "sm" | "lg">>, "ref"> & import("react").RefAttributes<Element> & import("../../types").ForwardProps, "ref"> & {
241
+ }, "container" | "item" | "xs" | "xl" | "sm" | "lg">>, "ref"> & import("react").RefAttributes<Element> & import("../..").ForwardProps, "ref"> & {
242
242
  ref?: import("react").RefObject<Element> | ((instance: Element | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | null | undefined;
243
243
  }) | (Omit<Omit<Pick<import("../Flex/Flex").BaseFlexProps & BaseProps & AsProp & {
244
244
  children?: ReactNode;
@@ -264,7 +264,7 @@ export declare const StyledPageIcon: import("styled-components/dist/types").ISty
264
264
  md?: Pick<import("../Flex/Flex").BaseFlexProps, never> & ((Required<Pick<import("../Flex/Flex").BaseFlexProps, "container">> & Partial<Pick<import("../Flex/Flex").BaseFlexProps, "item">>) | (Required<Pick<import("../Flex/Flex").BaseFlexProps, "item">> & Partial<Pick<import("../Flex/Flex").BaseFlexProps, "container">>));
265
265
  lg?: Pick<import("../Flex/Flex").BaseFlexProps, never> & ((Required<Pick<import("../Flex/Flex").BaseFlexProps, "container">> & Partial<Pick<import("../Flex/Flex").BaseFlexProps, "item">>) | (Required<Pick<import("../Flex/Flex").BaseFlexProps, "item">> & Partial<Pick<import("../Flex/Flex").BaseFlexProps, "container">>));
266
266
  xl?: Pick<import("../Flex/Flex").BaseFlexProps, never> & ((Required<Pick<import("../Flex/Flex").BaseFlexProps, "container">> & Partial<Pick<import("../Flex/Flex").BaseFlexProps, "item">>) | (Required<Pick<import("../Flex/Flex").BaseFlexProps, "item">> & Partial<Pick<import("../Flex/Flex").BaseFlexProps, "container">>));
267
- }, "container" | "item" | "xs" | "xl" | "sm" | "md">>, "ref"> & import("react").RefAttributes<Element> & import("../../types").ForwardProps, "ref"> & {
267
+ }, "container" | "item" | "xs" | "xl" | "sm" | "md">>, "ref"> & import("react").RefAttributes<Element> & import("../..").ForwardProps, "ref"> & {
268
268
  ref?: import("react").RefObject<Element> | ((instance: Element | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | null | undefined;
269
269
  }), import("styled-components/dist/types").BaseObject>> & string & Omit<ForwardRefForwardPropsComponent<import("../Flex").FlexProps>, keyof import("react").Component<any, {}, any>>;
270
270
  export declare const StyledPageHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
@@ -234,7 +234,7 @@ const PageLayout = forwardRef(function PageLayout({ regions, cols = `repeat(${re
234
234
  content: utilities
235
235
  }
236
236
  ];
237
- const pageHeader = !!path || !!icon || !!actions || !!title || !!banners || !!tabs || !!header ? (_jsxs(Flex, { container: { direction: 'column', pad: [1.5, 0.75, 0] }, sm: { container: { pad: [1.5, 2, 0] } }, item: { grow: 0, shrink: 0 }, as: StyledPageHeader, children: [path && path.length > 0 && _jsx(Breadcrumbs, { path: path }), header || (_jsx(SummaryItem, { visual: icon && (_jsx(StyledPageIcon, { container: { alignItems: 'center', justify: 'center' }, children: _jsx(Icon, { name: icon }) })), primary: _jsx(Text, { variant: 'h1', children: title }), actions: actions })), banners, tabs] })) : null;
237
+ const pageHeader = !!path || !!icon || !!actions || !!title || !!banners || !!tabs || !!header ? (_jsxs(Flex, { container: { direction: 'column', pad: [1.5, 0.75, 0] }, sm: { container: { pad: [1.5, 2, 0] } }, item: { grow: 0, shrink: 0 }, as: StyledPageHeader, children: [path && path.length > 0 && _jsx(Breadcrumbs, { path: path }), header || (_jsx(SummaryItem, { visual: icon && (_jsx(StyledPageIcon, { container: { alignItems: 'center', justify: 'center' }, children: _jsx(Icon, { name: icon, emphasized: true }) })), primary: _jsx(Text, { variant: 'h1', children: title }), actions: actions })), banners, tabs] })) : null;
238
238
  const handleTabChange = (id) => {
239
239
  setPanel(id);
240
240
  };
@@ -1 +1 @@
1
- {"version":3,"file":"PageTemplates.js","sourceRoot":"","sources":["../../../src/components/PageTemplates/PageTemplates.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACrF,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE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AC,EAAE,CAAC,EAAE,CAAC,CAAC,EAClB,GAAG,EAAE,GAAG,KACJ,SAAS,EACb,IAAI,EAAC,0CAA0C,GAC/C,CACH,CAAC;AACJ,CAAC,CAAC,CAAC;AAEL,MAAM,CAAC,MAAM,kBAAkB,GAC7B,UAAU,CAAC,SAAS,kBAAkB,CACpC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,SAAS,EAA4C,EACnE,GAAmC;IAEnC,OAAO,CACL,KAAC,UAAU,IACT,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAClB,GAAG,EAAE,GAAG,KACJ,SAAS,EACb,IAAI,EAAC,0CAA0C,GAC/C,CACH,CAAC;AACJ,CAAC,CAAC,CAAC;AAEL,MAAM,CAAC,MAAM,oBAAoB,GAC/B,UAAU,CAAC,SAAS,oBAAoB,CACtC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,SAAS,EAA8C,EACrE,GAAqC;IAErC,OAAO,CACL,KAAC,UAAU,IACT,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAClB,GAAG,EAAE,GAAG,KACJ,SAAS,EACb,IAAI,EAAC,8CAA8C,GACnD,CACH,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import type { PropsWithoutRef, ReactElement, ReactNode, Ref } from 'react';\nimport { forwardRef, useContext, useEffect, useMemo, useRef, useState } from 'react';\nimport styled, { css } from 'styled-components';\nimport { readableColor } from 'polished';\n\nimport {\n useBreakpoint,\n useConfiguration,\n useConsolidatedRef,\n useElement,\n useI18n,\n useScrollStick,\n useTheme\n} from '../../hooks';\nimport type { ScrollStickOptions } from '../../hooks/useScrollStick';\nimport { defaultThemeProp } from '../../theme';\nimport type {\n AsProp,\n BaseProps,\n ForwardRefForwardPropsComponent,\n NoChildrenProp,\n OmitStrict\n} from '../../types';\nimport { focusHeadingOrContainer } from '../../utils';\nimport AppShellContext from '../AppShell/AppShellContext';\nimport { StyledBanner } from '../Banner/Banner.styles';\nimport type { BreadcrumbsProps } from '../Breadcrumbs';\nimport Breadcrumbs, { StyledBreadcrumbs } from '../Breadcrumbs';\nimport Flex from '../Flex';\nimport Grid from '../Grid';\nimport Icon from '../Icon';\nimport SummaryItem from '../SummaryItem';\nimport type { Tab, TabsProps } from '../Tabs';\nimport Tabs, { TabPanel } from '../Tabs';\nimport { StyledTabPanel } from '../Tabs/TabPanel';\nimport { StyledAllTabsWrapper, StyledTabs, StylesAllTabsButtonWrapper } from '../Tabs/Tabs.styles';\nimport Text from '../Text';\nimport { StyledMenuButton } from '../MenuButton/MenuButton';\n\nexport interface PageTemplateProps extends BaseProps, AsProp, NoChildrenProp {\n title: string;\n icon?: string;\n actions?: ReactNode;\n banners?: ReactNode;\n path?: BreadcrumbsProps['path'];\n header?: ReactNode;\n utilities?: ReactNode;\n scrollContent?: boolean;\n ref?: Ref<HTMLDivElement>;\n}\n\nexport interface TabbedPageTab extends Tab {\n content: ReactNode;\n /**\n * Determines layout spacing.\n * @default 'standard'\n */\n layout?: 'standard' | 'full-size';\n}\n\nexport interface TabbedPageProps extends OmitStrict<PageTemplateProps, 'forwardedAs'> {\n tabs: OmitStrict<TabsProps, 'tabs' | 'currentTabId'> & {\n tabs: TabbedPageTab[];\n } & (\n | { defaultTabId?: string; currentTabId?: never }\n | { defaultTabId?: never; currentTabId: string }\n );\n}\n\nexport interface DynamicLayoutPageProps extends OmitStrict<PageTemplateProps, 'scrollContent'> {\n a: ReactNode;\n}\n\nexport interface OneColumnPageProps extends PageTemplateProps {\n a: ReactNode;\n}\n\nexport interface TwoColumnPageProps extends PageTemplateProps {\n a: ReactNode;\n b: ReactNode;\n}\n\nexport interface ThreeColumnPageProps extends PageTemplateProps {\n a: ReactNode;\n b: ReactNode;\n c: ReactNode;\n}\n\nexport interface FourColumnPageProps extends PageTemplateProps {\n a: ReactNode;\n b: ReactNode;\n c: ReactNode;\n d: ReactNode;\n}\n\nexport interface WideNarrowPageProps extends PageTemplateProps {\n a: ReactNode;\n b: ReactNode;\n}\n\nexport interface NarrowWidePageProps extends PageTemplateProps {\n a: ReactNode;\n b: ReactNode;\n}\n\nexport interface WideWideNarrowPageProps extends PageTemplateProps {\n a: ReactNode;\n b: ReactNode;\n c: ReactNode;\n}\n\nexport interface NarrowWideWidePageProps extends PageTemplateProps {\n a: ReactNode;\n b: ReactNode;\n c: ReactNode;\n}\n\nexport interface NarrowWideNarrowPageProps extends PageTemplateProps {\n a: ReactNode;\n b: ReactNode;\n c: ReactNode;\n}\n\nexport interface PageLayoutProps extends PageTemplateProps {\n tabs?: ReactElement<typeof Tabs>;\n regions: ReactNode[];\n regionsRef?: Ref<HTMLDivElement>;\n cols?: string;\n padContent?: boolean;\n}\n\nexport const StyledPageIcon = styled(Flex)(({ theme }) => {\n const bgColor = theme.components['case-view'].header['background-color'];\n const color =\n theme.components['case-view'].header['foreground-color'] !== 'auto'\n ? theme.components['case-view'].header['foreground-color']\n : readableColor(bgColor);\n return css`\n --brand-accent: ${theme.base.palette['brand-accent']};\n --gradient-start: oklch(from var(--brand-accent) calc(l - 0.3) calc(c * 1.5) h);\n --gradient-mid: oklch(from var(--brand-accent) l c h);\n --gradient-end: oklch(from var(--brand-accent) calc(l + 0.5) calc(c * 1.5) h);\n height: calc(4 * ${theme.base.spacing});\n width: calc(4 * ${theme.base.spacing});\n color: ${theme.components['case-view'].icon.color !== 'auto'\n ? theme.components['case-view'].icon.color\n : color};\n background: ${theme.components['case-view'].icon.background !== 'auto'\n ? theme.components['case-view'].icon.background\n : bgColor};\n box-shadow: ${theme.components['case-view'].icon['box-shadow']};\n border-radius: calc(0.5 * ${theme.base['border-radius']});\n `;\n});\n\nStyledPageIcon.defaultProps = defaultThemeProp;\n\nexport const StyledPageHeader = styled.header(({ theme }) => {\n const appFg = theme.base.palette['app-foreground'];\n const foregroundColor = theme.base.palette['foreground-color'];\n const tabsDetached = theme.components.tabs.detached;\n const color = appFg !== 'auto' ? appFg : foregroundColor;\n\n return css`\n h1 {\n color: ${color};\n }\n\n h1:focus-visible {\n outline: transparent;\n box-shadow: ${theme.base.shadow.focus};\n }\n\n ${StyledBreadcrumbs} {\n margin-block-end: ${theme.base.spacing};\n }\n\n ${StyledBanner}, ${StyledTabs}, ${StylesAllTabsButtonWrapper} {\n margin-block-start: calc(2 * ${theme.base.spacing});\n }\n\n ${tabsDetached &&\n css`\n ${StyledAllTabsWrapper} {\n margin-block-start: calc(2 * ${theme.base.spacing});\n border-radius: var(--border-radius, ${theme.base['border-radius']});\n border-end-start-radius: 0;\n\n ${StyledTabs} {\n border-radius: unset;\n border-start-end-radius: inherit;\n margin-block-start: 0;\n }\n\n ${StylesAllTabsButtonWrapper} {\n margin-block-start: 0;\n\n ${StyledMenuButton} {\n border-start-start-radius: var(--border-radius, ${theme.base['border-radius']});\n }\n }\n }\n `}\n `;\n});\n\nStyledPageHeader.defaultProps = defaultThemeProp;\n\nexport const StyledRegion = styled.div<{ renderSingleRegion?: boolean }>(\n ({ renderSingleRegion }) => {\n if (renderSingleRegion) {\n return css`\n height: 100%;\n `;\n }\n }\n);\n\nStyledRegion.defaultProps = defaultThemeProp;\n\nexport const StyledRegions = styled.div<{ pad: boolean }>(({ pad, theme }) => {\n const spacing = theme.base.spacing;\n\n return css`\n flex-grow: 1;\n max-width: 100%;\n\n ${pad &&\n css`\n padding: 0 calc(2 * ${spacing}) calc(2 * ${spacing});\n\n @media (width < ${theme.base.breakpoints.sm}) {\n padding: 0 calc(0.75 * ${spacing}) calc(2 * ${spacing});\n }\n `}\n [role='tabpanel'] & {\n padding: 0;\n }\n `;\n});\nStyledRegions.defaultProps = defaultThemeProp;\n\nexport const StyledContent = styled.div``;\nStyledContent.defaultProps = defaultThemeProp;\n\nexport const StyledScrollableTabPanel: typeof TabPanel = styled(TabPanel)(() => {\n return css`\n height: 100%;\n overflow: auto;\n `;\n});\n\nStyledScrollableTabPanel.defaultProps = defaultThemeProp;\n\nexport const StyledPageLayout = styled.div<{\n scrollContent: PageLayoutProps['scrollContent'];\n minContentHeight?: number;\n}>(\n ({\n theme: {\n base: {\n palette: { 'app-background': appBackground }\n }\n },\n scrollContent,\n minContentHeight\n }) => {\n const emptyContentHeight = minContentHeight ? `${minContentHeight}px` : undefined;\n\n return css`\n --content-height-in-view: ${emptyContentHeight};\n position: relative;\n min-height: inherit;\n background: ${appBackground};\n\n ${scrollContent &&\n css`\n ${StyledContent} {\n position: relative;\n }\n\n ${StyledRegions} {\n position: absolute;\n height: 100%;\n width: 100%;\n overflow: auto;\n }\n `}\n `;\n }\n);\n\nStyledPageLayout.defaultProps = defaultThemeProp;\n\nconst StyledPageLayoutWrapper = styled.div`\n height: 100%;\n`;\n\nconst StylePageTabContent = styled.div`\n ${StyledRegions} {\n padding: 0;\n }\n`;\n\nconst PageLayout: ForwardRefForwardPropsComponent<PageLayoutProps> = forwardRef(function PageLayout(\n {\n regions,\n cols = `repeat(${regions.length}, minmax(0, 1fr))`,\n title,\n icon,\n path,\n actions,\n banners,\n tabs,\n utilities,\n as,\n header,\n regionsRef,\n scrollContent = false,\n padContent = true,\n ...restProps\n }: PropsWithoutRef<PageLayoutProps>,\n ref: PageLayoutProps['ref']\n) {\n const t = useI18n();\n const [contentEl, setContentEl] = useElement<HTMLElement>();\n const isMediumOrAbove = useBreakpoint('md');\n const hasSideBySideColumns = regions.length > 1 && isMediumOrAbove;\n const { headerEl } = useContext(AppShellContext);\n const { loadedRef } = useConfiguration();\n const [panel, setPanel] = useState('content');\n const {\n components: {\n tabs: { detached: tabsDetached }\n }\n } = useTheme();\n\n const pageRef = useConsolidatedRef(ref);\n const pageTabsRef = useRef<HTMLElement>(null);\n const consolidatedRegionRef = useConsolidatedRef(regionsRef);\n const scrollStickOptions = useRef<ScrollStickOptions>({\n elements: []\n });\n\n scrollStickOptions.current.scrollContainer = scrollContent && contentEl ? contentEl : undefined;\n scrollStickOptions.current.offset = (headerEl?.offsetHeight ?? 0) + 16;\n\n useScrollStick(hasSideBySideColumns ? scrollStickOptions.current : undefined);\n\n const renderSingleRegion = regions?.length === 1;\n\n const [minContentHeight, setMinContentHeight] = useState<number | undefined>();\n\n useEffect(() => {\n if (loadedRef.current) {\n if (pageRef.current && title) {\n focusHeadingOrContainer(pageRef.current, title);\n }\n } else {\n loadedRef.current = true;\n }\n }, [title]);\n\n useEffect(() => {\n if (consolidatedRegionRef.current) {\n const refElement = consolidatedRegionRef.current;\n const regionsPaddingBottomPixels = Number.parseInt(\n window.getComputedStyle(refElement).getPropertyValue('padding-bottom'),\n 10\n );\n\n const resizeObserver = new ResizeObserver(() => {\n const headerOffset = headerEl?.offsetHeight ?? 0;\n const emptyHeight =\n document.documentElement.offsetHeight -\n (headerOffset + refElement.offsetTop) -\n regionsPaddingBottomPixels;\n\n setMinContentHeight(emptyHeight);\n });\n\n resizeObserver.observe(refElement);\n\n return () => {\n resizeObserver.disconnect();\n };\n }\n }, [consolidatedRegionRef, headerEl]);\n\n const pageContent = (\n <Flex\n container\n item={{ grow: 1 }}\n as={StyledContent}\n ref={scrollContent ? setContentEl : undefined}\n >\n {renderSingleRegion && (\n <StyledRegions ref={consolidatedRegionRef} pad={padContent}>\n <Flex\n container={{\n direction: 'column',\n gap: 2\n }}\n as={StyledRegion}\n ref={(el: HTMLDivElement | null) => {\n if (el) {\n scrollStickOptions.current.elements[0] = el;\n }\n }}\n renderSingleRegion\n >\n {regions[0]}\n </Flex>\n </StyledRegions>\n )}\n\n {!renderSingleRegion && (\n <Grid\n container={{\n cols: 'minmax(0, 1fr)',\n alignItems: 'start',\n gap: 2,\n pad: [0, 0.75, 2]\n }}\n sm={{ container: { pad: [0, 2, 2] } }}\n md={{ container: { cols } }}\n as={StyledRegions}\n ref={consolidatedRegionRef}\n >\n {regions.map((colItems, i) => {\n return (\n <Flex\n container={{\n direction: 'column',\n gap: 2\n }}\n as={StyledRegion}\n // eslint-disable-next-line react/no-array-index-key\n key={i}\n ref={(el: HTMLDivElement | null) => {\n if (el) {\n scrollStickOptions.current.elements[i] = el;\n }\n }}\n >\n {colItems}\n </Flex>\n );\n })}\n </Grid>\n )}\n </Flex>\n );\n\n const pageTabs = [\n { name: t('content'), id: 'content', content: pageContent },\n {\n name: t('chat_with_ai'),\n id: 'chat_with_ai',\n content: utilities\n }\n ];\n\n const pageHeader =\n !!path || !!icon || !!actions || !!title || !!banners || !!tabs || !!header ? (\n <Flex\n container={{ direction: 'column', pad: [1.5, 0.75, 0] }}\n sm={{ container: { pad: [1.5, 2, 0] } }}\n item={{ grow: 0, shrink: 0 }}\n as={StyledPageHeader}\n >\n {path && path.length > 0 && <Breadcrumbs path={path} />}\n\n {header || (\n <SummaryItem\n visual={\n icon && (\n <StyledPageIcon container={{ alignItems: 'center', justify: 'center' }}>\n <Icon name={icon} />\n </StyledPageIcon>\n )\n }\n primary={<Text variant='h1'>{title}</Text>}\n actions={actions}\n />\n )}\n\n {banners}\n {tabs}\n </Flex>\n ) : null;\n\n const handleTabChange = (id: string) => {\n setPanel(id);\n };\n\n if (utilities) {\n if (isMediumOrAbove || tabs) {\n return (\n <Flex container={{ gap: 2 }} as={StyledPageLayoutWrapper}>\n <Flex\n {...restProps}\n container={{\n direction: 'column',\n alignItems: 'stretch',\n gap: 2\n }}\n item={{ grow: 1 }}\n scrollContent={scrollContent}\n as={StyledPageLayout}\n forwardedAs={as}\n ref={pageRef}\n minContentHeight={minContentHeight}\n >\n {pageHeader}\n {pageContent}\n </Flex>\n {(isMediumOrAbove || !tabs) && <div>{utilities}</div>}\n </Flex>\n );\n }\n\n return (\n <Flex\n {...restProps}\n as={StyledPageLayout}\n forwardedAs={as}\n ref={pageRef}\n container={{ direction: 'column' }}\n >\n {pageHeader}\n <Flex\n container={{ direction: 'column', pad: [2, 0.75, 0], gap: tabsDetached ? undefined : 2 }}\n sm={{ container: { pad: [2, 2, 0] } }}\n >\n <Tabs\n tabs={pageTabs}\n onTabClick={handleTabChange}\n currentTabId={panel}\n ref={pageTabsRef}\n />\n {pageTabs.map(tab => (\n <TabPanel tabId={tab.id} currentTabId={panel} tablistRef={pageTabsRef} key={tab.id}>\n <StylePageTabContent>{tab.content}</StylePageTabContent>\n </TabPanel>\n ))}\n </Flex>\n </Flex>\n );\n }\n\n return (\n <Flex\n {...restProps}\n container={{\n direction: 'column',\n alignItems: 'stretch',\n gap: 2\n }}\n item={{ grow: 1 }}\n scrollContent={scrollContent}\n as={StyledPageLayout}\n forwardedAs={as}\n ref={pageRef}\n minContentHeight={minContentHeight}\n >\n {pageHeader}\n {pageContent}\n </Flex>\n );\n});\n\nconst StyledTabbedPage = styled(PageLayout)<{ $layout?: TabbedPageTab['layout'] }>(({\n $layout = 'standard',\n theme: {\n base: {\n palette: { 'border-line': borderLine }\n },\n components: {\n tabs: { detached: tabsDetached }\n }\n }\n}) => {\n return css`\n gap: 0;\n\n ${tabsDetached &&\n css`\n ${StyledTabPanel} {\n border-block-end: none;\n box-shadow: 0 0.0625rem 0 ${borderLine};\n }\n `}\n\n ${$layout === 'full-size' &&\n css`\n ${StyledRegions} {\n padding: 0;\n\n ${StyledTabPanel} {\n padding-block-start: 0;\n }\n }\n `}\n `;\n});\n\nStyledTabbedPage.defaultProps = defaultThemeProp;\n\nexport const TabbedPage: ForwardRefForwardPropsComponent<TabbedPageProps> = forwardRef(\n function TabbedPage(\n { tabs: tabsProps, utilities, as, ...restProps }: PropsWithoutRef<TabbedPageProps>,\n ref: TabbedPageProps['ref']\n ) {\n const isMediumOrAbove = useBreakpoint('md');\n\n const { currentTabId } = tabsProps;\n\n const t = useI18n();\n\n const tabs = useMemo(() => {\n if (utilities && !isMediumOrAbove) {\n return {\n ...tabsProps,\n tabs: [\n ...tabsProps.tabs,\n { id: 'chat_with_ai', name: t('chat_with_ai'), content: utilities }\n ]\n };\n }\n return tabsProps;\n }, [tabsProps, utilities, isMediumOrAbove]);\n\n const [tabId, setTabId] = useState(tabs.defaultTabId || tabs.tabs[0]?.id);\n\n useEffect(() => {\n if (!currentTabId) {\n const activeTabId = tabs.defaultTabId || tabs.tabs[0]?.id;\n if (activeTabId && tabId === 'agent') setTabId(activeTabId);\n }\n }, [tabsProps, isMediumOrAbove]);\n\n const tabPanels = tabs.tabs.map(tab => {\n return (\n <Flex\n container={{ direction: 'column', gap: 2 }}\n as={TabPanel}\n tabId={tab.id}\n currentTabId={currentTabId ?? tabId}\n key={tab.id}\n >\n {tab.content}\n </Flex>\n );\n });\n\n return (\n <StyledTabbedPage\n {...restProps}\n utilities={utilities}\n tabs={\n <Tabs\n {...tabs}\n onTabClick={(id, e) => {\n if (!currentTabId) {\n setTabId(id);\n }\n tabs.onTabClick?.(id, e);\n }}\n currentTabId={currentTabId ?? tabId}\n />\n }\n regions={[<>{tabPanels}</>]}\n $layout={\n tabs.tabs.find(({ id }) => {\n const activeTabId = currentTabId ?? tabId;\n return id === activeTabId;\n })?.layout\n }\n forwardedAs={as}\n ref={ref}\n />\n );\n }\n);\n\nexport const DynamicLayoutPage: ForwardRefForwardPropsComponent<DynamicLayoutPageProps> =\n forwardRef(function DynamicLayoutPage(\n { a, ...restProps }: PropsWithoutRef<DynamicLayoutPageProps>,\n ref: DynamicLayoutPageProps['ref']\n ) {\n return <PageLayout regions={[a]} ref={ref} {...restProps} padContent={false} />;\n });\n\nexport const OneColumnPage: ForwardRefForwardPropsComponent<OneColumnPageProps> = forwardRef(\n function OneColumnPage(\n { a, ...restProps }: PropsWithoutRef<OneColumnPageProps>,\n ref: OneColumnPageProps['ref']\n ) {\n return <PageLayout regions={[a]} ref={ref} {...restProps} cols='minmax(0, 1fr)' />;\n }\n);\n\nexport const TwoColumnPage: ForwardRefForwardPropsComponent<TwoColumnPageProps> = forwardRef(\n function TwoColumnPage(\n { a, b, ...restProps }: PropsWithoutRef<TwoColumnPageProps>,\n ref: TwoColumnPageProps['ref']\n ) {\n return (\n <PageLayout regions={[a, b]} ref={ref} {...restProps} cols='repeat(2, minmax(0, 1fr))' />\n );\n }\n);\n\nexport const ThreeColumnPage: ForwardRefForwardPropsComponent<ThreeColumnPageProps> = forwardRef(\n function ThreeColumnPage(\n { a, b, c, ...restProps }: PropsWithoutRef<ThreeColumnPageProps>,\n ref: ThreeColumnPageProps['ref']\n ) {\n return (\n <PageLayout regions={[a, b, c]} ref={ref} {...restProps} cols='repeat(3, minmax(0, 1fr))' />\n );\n }\n);\n\nexport const FourColumnPage: ForwardRefForwardPropsComponent<FourColumnPageProps> = forwardRef(\n function FourColumnPage(\n { a, b, c, d, ...restProps }: PropsWithoutRef<FourColumnPageProps>,\n ref: FourColumnPageProps['ref']\n ) {\n return (\n <PageLayout\n regions={[a, b, c, d]}\n ref={ref}\n {...restProps}\n cols='repeat(4, minmax(0, 1fr))'\n />\n );\n }\n);\n\nexport const WideNarrowPage: ForwardRefForwardPropsComponent<WideNarrowPageProps> = forwardRef(\n function WideNarrowPage(\n { a, b, ...restProps }: PropsWithoutRef<WideNarrowPageProps>,\n ref: WideNarrowPageProps['ref']\n ) {\n return (\n <PageLayout regions={[a, b]} ref={ref} {...restProps} cols='minmax(0, 2fr) minmax(0, 1fr)' />\n );\n }\n);\n\nexport const NarrowWidePage: ForwardRefForwardPropsComponent<WideNarrowPageProps> = forwardRef(\n function NarrowWidePage(\n { a, b, ...restProps }: PropsWithoutRef<WideNarrowPageProps>,\n ref: NarrowWidePageProps['ref']\n ) {\n return (\n <PageLayout regions={[a, b]} ref={ref} {...restProps} cols='minmax(0, 1fr) minmax(0, 2fr)' />\n );\n }\n);\n\nexport const WideWideNarrowPage: ForwardRefForwardPropsComponent<WideWideNarrowPageProps> =\n forwardRef(function WideWideNarrowPage(\n { a, b, c, ...restProps }: PropsWithoutRef<WideWideNarrowPageProps>,\n ref: WideWideNarrowPageProps['ref']\n ) {\n return (\n <PageLayout\n regions={[a, b, c]}\n ref={ref}\n {...restProps}\n cols='repeat(2, minmax(0, 2fr)) minmax(0, 1fr)'\n />\n );\n });\n\nexport const NarrowWideWidePage: ForwardRefForwardPropsComponent<NarrowWideWidePageProps> =\n forwardRef(function NarrowWideWidePage(\n { a, b, c, ...restProps }: PropsWithoutRef<NarrowWideWidePageProps>,\n ref: NarrowWideWidePageProps['ref']\n ) {\n return (\n <PageLayout\n regions={[a, b, c]}\n ref={ref}\n {...restProps}\n cols='minmax(0, 1fr) repeat(2, minmax(0, 2fr))'\n />\n );\n });\n\nexport const NarrowWideNarrowPage: ForwardRefForwardPropsComponent<NarrowWideNarrowPageProps> =\n forwardRef(function NarrowWideNarrowPage(\n { a, b, c, ...restProps }: PropsWithoutRef<NarrowWideNarrowPageProps>,\n ref: NarrowWideNarrowPageProps['ref']\n ) {\n return (\n <PageLayout\n regions={[a, b, c]}\n ref={ref}\n {...restProps}\n cols='minmax(0, 1fr) minmax(0, 3fr) minmax(0, 1fr)'\n />\n );\n });\n"]}
1
+ {"version":3,"file":"PageTemplates.js","sourceRoot":"","sources":["../../../src/components/PageTemplates/PageTemplates.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACrF,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,UAAU,EACV,OAAO,EACP,cAAc,EACd,QAAQ,EACT,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAQ/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,eAAe,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,OAAO,WAAW,EAAE,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAChE,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,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EL,MAAM,CAAC,MAAM,oBAAoB,GAC/B,UAAU,CAAC,SAAS,oBAAoB,CACtC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,SAAS,EAA8C,EACrE,GAAqC;IAErC,OAAO,CACL,KAAC,UAAU,IACT,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAClB,GAAG,EAAE,GAAG,KACJ,SAAS,EACb,IAAI,EAAC,8CAA8C,GACnD,CACH,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import type { PropsWithoutRef, ReactElement, ReactNode, Ref } from 'react';\nimport { forwardRef, useContext, useEffect, useMemo, useRef, useState } from 'react';\nimport styled, { css } from 'styled-components';\nimport { readableColor } from 'polished';\n\nimport {\n useBreakpoint,\n useConfiguration,\n useConsolidatedRef,\n useElement,\n useI18n,\n useScrollStick,\n useTheme\n} from '../../hooks';\nimport type { ScrollStickOptions } from '../../hooks/useScrollStick';\nimport { defaultThemeProp } from '../../theme';\nimport type {\n AsProp,\n BaseProps,\n ForwardRefForwardPropsComponent,\n NoChildrenProp,\n OmitStrict\n} from '../../types';\nimport { focusHeadingOrContainer } from '../../utils';\nimport AppShellContext from '../AppShell/AppShellContext';\nimport { StyledBanner } from '../Banner/Banner.styles';\nimport type { BreadcrumbsProps } from '../Breadcrumbs';\nimport Breadcrumbs, { StyledBreadcrumbs } from '../Breadcrumbs';\nimport Flex from '../Flex';\nimport Grid from '../Grid';\nimport Icon from '../Icon';\nimport SummaryItem from '../SummaryItem';\nimport type { Tab, TabsProps } from '../Tabs';\nimport Tabs, { TabPanel } from '../Tabs';\nimport { StyledTabPanel } from '../Tabs/TabPanel';\nimport { StyledAllTabsWrapper, StyledTabs, StylesAllTabsButtonWrapper } from '../Tabs/Tabs.styles';\nimport Text from '../Text';\nimport { StyledMenuButton } from '../MenuButton/MenuButton';\n\nexport interface PageTemplateProps extends BaseProps, AsProp, NoChildrenProp {\n title: string;\n icon?: string;\n actions?: ReactNode;\n banners?: ReactNode;\n path?: BreadcrumbsProps['path'];\n header?: ReactNode;\n utilities?: ReactNode;\n scrollContent?: boolean;\n ref?: Ref<HTMLDivElement>;\n}\n\nexport interface TabbedPageTab extends Tab {\n content: ReactNode;\n /**\n * Determines layout spacing.\n * @default 'standard'\n */\n layout?: 'standard' | 'full-size';\n}\n\nexport interface TabbedPageProps extends OmitStrict<PageTemplateProps, 'forwardedAs'> {\n tabs: OmitStrict<TabsProps, 'tabs' | 'currentTabId'> & {\n tabs: TabbedPageTab[];\n } & (\n | { defaultTabId?: string; currentTabId?: never }\n | { defaultTabId?: never; currentTabId: string }\n );\n}\n\nexport interface DynamicLayoutPageProps extends OmitStrict<PageTemplateProps, 'scrollContent'> {\n a: ReactNode;\n}\n\nexport interface OneColumnPageProps extends PageTemplateProps {\n a: ReactNode;\n}\n\nexport interface TwoColumnPageProps extends PageTemplateProps {\n a: ReactNode;\n b: ReactNode;\n}\n\nexport interface ThreeColumnPageProps extends PageTemplateProps {\n a: ReactNode;\n b: ReactNode;\n c: ReactNode;\n}\n\nexport interface FourColumnPageProps extends PageTemplateProps {\n a: ReactNode;\n b: ReactNode;\n c: ReactNode;\n d: ReactNode;\n}\n\nexport interface WideNarrowPageProps extends PageTemplateProps {\n a: ReactNode;\n b: ReactNode;\n}\n\nexport interface NarrowWidePageProps extends PageTemplateProps {\n a: ReactNode;\n b: ReactNode;\n}\n\nexport interface WideWideNarrowPageProps extends PageTemplateProps {\n a: ReactNode;\n b: ReactNode;\n c: ReactNode;\n}\n\nexport interface NarrowWideWidePageProps extends PageTemplateProps {\n a: ReactNode;\n b: ReactNode;\n c: ReactNode;\n}\n\nexport interface NarrowWideNarrowPageProps extends PageTemplateProps {\n a: ReactNode;\n b: ReactNode;\n c: ReactNode;\n}\n\nexport interface PageLayoutProps extends PageTemplateProps {\n tabs?: ReactElement<typeof Tabs>;\n regions: ReactNode[];\n regionsRef?: Ref<HTMLDivElement>;\n cols?: string;\n padContent?: boolean;\n}\n\nexport const StyledPageIcon = styled(Flex)(({ theme }) => {\n const bgColor = theme.components['case-view'].header['background-color'];\n const color =\n theme.components['case-view'].header['foreground-color'] !== 'auto'\n ? theme.components['case-view'].header['foreground-color']\n : readableColor(bgColor);\n return css`\n --brand-accent: ${theme.base.palette['brand-accent']};\n --gradient-start: oklch(from var(--brand-accent) calc(l - 0.3) calc(c * 1.5) h);\n --gradient-mid: oklch(from var(--brand-accent) l c h);\n --gradient-end: oklch(from var(--brand-accent) calc(l + 0.5) calc(c * 1.5) h);\n height: calc(4 * ${theme.base.spacing});\n width: calc(4 * ${theme.base.spacing});\n color: ${theme.components['case-view'].icon.color !== 'auto'\n ? theme.components['case-view'].icon.color\n : color};\n background: ${theme.components['case-view'].icon.background !== 'auto'\n ? theme.components['case-view'].icon.background\n : bgColor};\n box-shadow: ${theme.components['case-view'].icon['box-shadow']};\n border-radius: calc(0.5 * ${theme.base['border-radius']});\n `;\n});\n\nStyledPageIcon.defaultProps = defaultThemeProp;\n\nexport const StyledPageHeader = styled.header(({ theme }) => {\n const appFg = theme.base.palette['app-foreground'];\n const foregroundColor = theme.base.palette['foreground-color'];\n const tabsDetached = theme.components.tabs.detached;\n const color = appFg !== 'auto' ? appFg : foregroundColor;\n\n return css`\n h1 {\n color: ${color};\n }\n\n h1:focus-visible {\n outline: transparent;\n box-shadow: ${theme.base.shadow.focus};\n }\n\n ${StyledBreadcrumbs} {\n margin-block-end: ${theme.base.spacing};\n }\n\n ${StyledBanner}, ${StyledTabs}, ${StylesAllTabsButtonWrapper} {\n margin-block-start: calc(2 * ${theme.base.spacing});\n }\n\n ${tabsDetached &&\n css`\n ${StyledAllTabsWrapper} {\n margin-block-start: calc(2 * ${theme.base.spacing});\n border-radius: var(--border-radius, ${theme.base['border-radius']});\n border-end-start-radius: 0;\n\n ${StyledTabs} {\n border-radius: unset;\n border-start-end-radius: inherit;\n margin-block-start: 0;\n }\n\n ${StylesAllTabsButtonWrapper} {\n margin-block-start: 0;\n\n ${StyledMenuButton} {\n border-start-start-radius: var(--border-radius, ${theme.base['border-radius']});\n }\n }\n }\n `}\n `;\n});\n\nStyledPageHeader.defaultProps = defaultThemeProp;\n\nexport const StyledRegion = styled.div<{ renderSingleRegion?: boolean }>(\n ({ renderSingleRegion }) => {\n if (renderSingleRegion) {\n return css`\n height: 100%;\n `;\n }\n }\n);\n\nStyledRegion.defaultProps = defaultThemeProp;\n\nexport const StyledRegions = styled.div<{ pad: boolean }>(({ pad, theme }) => {\n const spacing = theme.base.spacing;\n\n return css`\n flex-grow: 1;\n max-width: 100%;\n\n ${pad &&\n css`\n padding: 0 calc(2 * ${spacing}) calc(2 * ${spacing});\n\n @media (width < ${theme.base.breakpoints.sm}) {\n padding: 0 calc(0.75 * ${spacing}) calc(2 * ${spacing});\n }\n `}\n [role='tabpanel'] & {\n padding: 0;\n }\n `;\n});\nStyledRegions.defaultProps = defaultThemeProp;\n\nexport const StyledContent = styled.div``;\nStyledContent.defaultProps = defaultThemeProp;\n\nexport const StyledScrollableTabPanel: typeof TabPanel = styled(TabPanel)(() => {\n return css`\n height: 100%;\n overflow: auto;\n `;\n});\n\nStyledScrollableTabPanel.defaultProps = defaultThemeProp;\n\nexport const StyledPageLayout = styled.div<{\n scrollContent: PageLayoutProps['scrollContent'];\n minContentHeight?: number;\n}>(\n ({\n theme: {\n base: {\n palette: { 'app-background': appBackground }\n }\n },\n scrollContent,\n minContentHeight\n }) => {\n const emptyContentHeight = minContentHeight ? `${minContentHeight}px` : undefined;\n\n return css`\n --content-height-in-view: ${emptyContentHeight};\n position: relative;\n min-height: inherit;\n background: ${appBackground};\n\n ${scrollContent &&\n css`\n ${StyledContent} {\n position: relative;\n }\n\n ${StyledRegions} {\n position: absolute;\n height: 100%;\n width: 100%;\n overflow: auto;\n }\n `}\n `;\n }\n);\n\nStyledPageLayout.defaultProps = defaultThemeProp;\n\nconst StyledPageLayoutWrapper = styled.div`\n height: 100%;\n`;\n\nconst StylePageTabContent = styled.div`\n ${StyledRegions} {\n padding: 0;\n }\n`;\n\nconst PageLayout: ForwardRefForwardPropsComponent<PageLayoutProps> = forwardRef(function PageLayout(\n {\n regions,\n cols = `repeat(${regions.length}, minmax(0, 1fr))`,\n title,\n icon,\n path,\n actions,\n banners,\n tabs,\n utilities,\n as,\n header,\n regionsRef,\n scrollContent = false,\n padContent = true,\n ...restProps\n }: PropsWithoutRef<PageLayoutProps>,\n ref: PageLayoutProps['ref']\n) {\n const t = useI18n();\n const [contentEl, setContentEl] = useElement<HTMLElement>();\n const isMediumOrAbove = useBreakpoint('md');\n const hasSideBySideColumns = regions.length > 1 && isMediumOrAbove;\n const { headerEl } = useContext(AppShellContext);\n const { loadedRef } = useConfiguration();\n const [panel, setPanel] = useState('content');\n const {\n components: {\n tabs: { detached: tabsDetached }\n }\n } = useTheme();\n\n const pageRef = useConsolidatedRef(ref);\n const pageTabsRef = useRef<HTMLElement>(null);\n const consolidatedRegionRef = useConsolidatedRef(regionsRef);\n const scrollStickOptions = useRef<ScrollStickOptions>({\n elements: []\n });\n\n scrollStickOptions.current.scrollContainer = scrollContent && contentEl ? contentEl : undefined;\n scrollStickOptions.current.offset = (headerEl?.offsetHeight ?? 0) + 16;\n\n useScrollStick(hasSideBySideColumns ? scrollStickOptions.current : undefined);\n\n const renderSingleRegion = regions?.length === 1;\n\n const [minContentHeight, setMinContentHeight] = useState<number | undefined>();\n\n useEffect(() => {\n if (loadedRef.current) {\n if (pageRef.current && title) {\n focusHeadingOrContainer(pageRef.current, title);\n }\n } else {\n loadedRef.current = true;\n }\n }, [title]);\n\n useEffect(() => {\n if (consolidatedRegionRef.current) {\n const refElement = consolidatedRegionRef.current;\n const regionsPaddingBottomPixels = Number.parseInt(\n window.getComputedStyle(refElement).getPropertyValue('padding-bottom'),\n 10\n );\n\n const resizeObserver = new ResizeObserver(() => {\n const headerOffset = headerEl?.offsetHeight ?? 0;\n const emptyHeight =\n document.documentElement.offsetHeight -\n (headerOffset + refElement.offsetTop) -\n regionsPaddingBottomPixels;\n\n setMinContentHeight(emptyHeight);\n });\n\n resizeObserver.observe(refElement);\n\n return () => {\n resizeObserver.disconnect();\n };\n }\n }, [consolidatedRegionRef, headerEl]);\n\n const pageContent = (\n <Flex\n container\n item={{ grow: 1 }}\n as={StyledContent}\n ref={scrollContent ? setContentEl : undefined}\n >\n {renderSingleRegion && (\n <StyledRegions ref={consolidatedRegionRef} pad={padContent}>\n <Flex\n container={{\n direction: 'column',\n gap: 2\n }}\n as={StyledRegion}\n ref={(el: HTMLDivElement | null) => {\n if (el) {\n scrollStickOptions.current.elements[0] = el;\n }\n }}\n renderSingleRegion\n >\n {regions[0]}\n </Flex>\n </StyledRegions>\n )}\n\n {!renderSingleRegion && (\n <Grid\n container={{\n cols: 'minmax(0, 1fr)',\n alignItems: 'start',\n gap: 2,\n pad: [0, 0.75, 2]\n }}\n sm={{ container: { pad: [0, 2, 2] } }}\n md={{ container: { cols } }}\n as={StyledRegions}\n ref={consolidatedRegionRef}\n >\n {regions.map((colItems, i) => {\n return (\n <Flex\n container={{\n direction: 'column',\n gap: 2\n }}\n as={StyledRegion}\n // eslint-disable-next-line react/no-array-index-key\n key={i}\n ref={(el: HTMLDivElement | null) => {\n if (el) {\n scrollStickOptions.current.elements[i] = el;\n }\n }}\n >\n {colItems}\n </Flex>\n );\n })}\n </Grid>\n )}\n </Flex>\n );\n\n const pageTabs = [\n { name: t('content'), id: 'content', content: pageContent },\n {\n name: t('chat_with_ai'),\n id: 'chat_with_ai',\n content: utilities\n }\n ];\n\n const pageHeader =\n !!path || !!icon || !!actions || !!title || !!banners || !!tabs || !!header ? (\n <Flex\n container={{ direction: 'column', pad: [1.5, 0.75, 0] }}\n sm={{ container: { pad: [1.5, 2, 0] } }}\n item={{ grow: 0, shrink: 0 }}\n as={StyledPageHeader}\n >\n {path && path.length > 0 && <Breadcrumbs path={path} />}\n\n {header || (\n <SummaryItem\n visual={\n icon && (\n <StyledPageIcon container={{ alignItems: 'center', justify: 'center' }}>\n <Icon name={icon} emphasized />\n </StyledPageIcon>\n )\n }\n primary={<Text variant='h1'>{title}</Text>}\n actions={actions}\n />\n )}\n\n {banners}\n {tabs}\n </Flex>\n ) : null;\n\n const handleTabChange = (id: string) => {\n setPanel(id);\n };\n\n if (utilities) {\n if (isMediumOrAbove || tabs) {\n return (\n <Flex container={{ gap: 2 }} as={StyledPageLayoutWrapper}>\n <Flex\n {...restProps}\n container={{\n direction: 'column',\n alignItems: 'stretch',\n gap: 2\n }}\n item={{ grow: 1 }}\n scrollContent={scrollContent}\n as={StyledPageLayout}\n forwardedAs={as}\n ref={pageRef}\n minContentHeight={minContentHeight}\n >\n {pageHeader}\n {pageContent}\n </Flex>\n {(isMediumOrAbove || !tabs) && <div>{utilities}</div>}\n </Flex>\n );\n }\n\n return (\n <Flex\n {...restProps}\n as={StyledPageLayout}\n forwardedAs={as}\n ref={pageRef}\n container={{ direction: 'column' }}\n >\n {pageHeader}\n <Flex\n container={{ direction: 'column', pad: [2, 0.75, 0], gap: tabsDetached ? undefined : 2 }}\n sm={{ container: { pad: [2, 2, 0] } }}\n >\n <Tabs\n tabs={pageTabs}\n onTabClick={handleTabChange}\n currentTabId={panel}\n ref={pageTabsRef}\n />\n {pageTabs.map(tab => (\n <TabPanel tabId={tab.id} currentTabId={panel} tablistRef={pageTabsRef} key={tab.id}>\n <StylePageTabContent>{tab.content}</StylePageTabContent>\n </TabPanel>\n ))}\n </Flex>\n </Flex>\n );\n }\n\n return (\n <Flex\n {...restProps}\n container={{\n direction: 'column',\n alignItems: 'stretch',\n gap: 2\n }}\n item={{ grow: 1 }}\n scrollContent={scrollContent}\n as={StyledPageLayout}\n forwardedAs={as}\n ref={pageRef}\n minContentHeight={minContentHeight}\n >\n {pageHeader}\n {pageContent}\n </Flex>\n );\n});\n\nconst StyledTabbedPage = styled(PageLayout)<{ $layout?: TabbedPageTab['layout'] }>(({\n $layout = 'standard',\n theme: {\n base: {\n palette: { 'border-line': borderLine }\n },\n components: {\n tabs: { detached: tabsDetached }\n }\n }\n}) => {\n return css`\n gap: 0;\n\n ${tabsDetached &&\n css`\n ${StyledTabPanel} {\n border-block-end: none;\n box-shadow: 0 0.0625rem 0 ${borderLine};\n }\n `}\n\n ${$layout === 'full-size' &&\n css`\n ${StyledRegions} {\n padding: 0;\n\n ${StyledTabPanel} {\n padding-block-start: 0;\n }\n }\n `}\n `;\n});\n\nStyledTabbedPage.defaultProps = defaultThemeProp;\n\nexport const TabbedPage: ForwardRefForwardPropsComponent<TabbedPageProps> = forwardRef(\n function TabbedPage(\n { tabs: tabsProps, utilities, as, ...restProps }: PropsWithoutRef<TabbedPageProps>,\n ref: TabbedPageProps['ref']\n ) {\n const isMediumOrAbove = useBreakpoint('md');\n\n const { currentTabId } = tabsProps;\n\n const t = useI18n();\n\n const tabs = useMemo(() => {\n if (utilities && !isMediumOrAbove) {\n return {\n ...tabsProps,\n tabs: [\n ...tabsProps.tabs,\n { id: 'chat_with_ai', name: t('chat_with_ai'), content: utilities }\n ]\n };\n }\n return tabsProps;\n }, [tabsProps, utilities, isMediumOrAbove]);\n\n const [tabId, setTabId] = useState(tabs.defaultTabId || tabs.tabs[0]?.id);\n\n useEffect(() => {\n if (!currentTabId) {\n const activeTabId = tabs.defaultTabId || tabs.tabs[0]?.id;\n if (activeTabId && tabId === 'agent') setTabId(activeTabId);\n }\n }, [tabsProps, isMediumOrAbove]);\n\n const tabPanels = tabs.tabs.map(tab => {\n return (\n <Flex\n container={{ direction: 'column', gap: 2 }}\n as={TabPanel}\n tabId={tab.id}\n currentTabId={currentTabId ?? tabId}\n key={tab.id}\n >\n {tab.content}\n </Flex>\n );\n });\n\n return (\n <StyledTabbedPage\n {...restProps}\n utilities={utilities}\n tabs={\n <Tabs\n {...tabs}\n onTabClick={(id, e) => {\n if (!currentTabId) {\n setTabId(id);\n }\n tabs.onTabClick?.(id, e);\n }}\n currentTabId={currentTabId ?? tabId}\n />\n }\n regions={[<>{tabPanels}</>]}\n $layout={\n tabs.tabs.find(({ id }) => {\n const activeTabId = currentTabId ?? tabId;\n return id === activeTabId;\n })?.layout\n }\n forwardedAs={as}\n ref={ref}\n />\n );\n }\n);\n\nexport const DynamicLayoutPage: ForwardRefForwardPropsComponent<DynamicLayoutPageProps> =\n forwardRef(function DynamicLayoutPage(\n { a, ...restProps }: PropsWithoutRef<DynamicLayoutPageProps>,\n ref: DynamicLayoutPageProps['ref']\n ) {\n return <PageLayout regions={[a]} ref={ref} {...restProps} padContent={false} />;\n });\n\nexport const OneColumnPage: ForwardRefForwardPropsComponent<OneColumnPageProps> = forwardRef(\n function OneColumnPage(\n { a, ...restProps }: PropsWithoutRef<OneColumnPageProps>,\n ref: OneColumnPageProps['ref']\n ) {\n return <PageLayout regions={[a]} ref={ref} {...restProps} cols='minmax(0, 1fr)' />;\n }\n);\n\nexport const TwoColumnPage: ForwardRefForwardPropsComponent<TwoColumnPageProps> = forwardRef(\n function TwoColumnPage(\n { a, b, ...restProps }: PropsWithoutRef<TwoColumnPageProps>,\n ref: TwoColumnPageProps['ref']\n ) {\n return (\n <PageLayout regions={[a, b]} ref={ref} {...restProps} cols='repeat(2, minmax(0, 1fr))' />\n );\n }\n);\n\nexport const ThreeColumnPage: ForwardRefForwardPropsComponent<ThreeColumnPageProps> = forwardRef(\n function ThreeColumnPage(\n { a, b, c, ...restProps }: PropsWithoutRef<ThreeColumnPageProps>,\n ref: ThreeColumnPageProps['ref']\n ) {\n return (\n <PageLayout regions={[a, b, c]} ref={ref} {...restProps} cols='repeat(3, minmax(0, 1fr))' />\n );\n }\n);\n\nexport const FourColumnPage: ForwardRefForwardPropsComponent<FourColumnPageProps> = forwardRef(\n function FourColumnPage(\n { a, b, c, d, ...restProps }: PropsWithoutRef<FourColumnPageProps>,\n ref: FourColumnPageProps['ref']\n ) {\n return (\n <PageLayout\n regions={[a, b, c, d]}\n ref={ref}\n {...restProps}\n cols='repeat(4, minmax(0, 1fr))'\n />\n );\n }\n);\n\nexport const WideNarrowPage: ForwardRefForwardPropsComponent<WideNarrowPageProps> = forwardRef(\n function WideNarrowPage(\n { a, b, ...restProps }: PropsWithoutRef<WideNarrowPageProps>,\n ref: WideNarrowPageProps['ref']\n ) {\n return (\n <PageLayout regions={[a, b]} ref={ref} {...restProps} cols='minmax(0, 2fr) minmax(0, 1fr)' />\n );\n }\n);\n\nexport const NarrowWidePage: ForwardRefForwardPropsComponent<WideNarrowPageProps> = forwardRef(\n function NarrowWidePage(\n { a, b, ...restProps }: PropsWithoutRef<WideNarrowPageProps>,\n ref: NarrowWidePageProps['ref']\n ) {\n return (\n <PageLayout regions={[a, b]} ref={ref} {...restProps} cols='minmax(0, 1fr) minmax(0, 2fr)' />\n );\n }\n);\n\nexport const WideWideNarrowPage: ForwardRefForwardPropsComponent<WideWideNarrowPageProps> =\n forwardRef(function WideWideNarrowPage(\n { a, b, c, ...restProps }: PropsWithoutRef<WideWideNarrowPageProps>,\n ref: WideWideNarrowPageProps['ref']\n ) {\n return (\n <PageLayout\n regions={[a, b, c]}\n ref={ref}\n {...restProps}\n cols='repeat(2, minmax(0, 2fr)) minmax(0, 1fr)'\n />\n );\n });\n\nexport const NarrowWideWidePage: ForwardRefForwardPropsComponent<NarrowWideWidePageProps> =\n forwardRef(function NarrowWideWidePage(\n { a, b, c, ...restProps }: PropsWithoutRef<NarrowWideWidePageProps>,\n ref: NarrowWideWidePageProps['ref']\n ) {\n return (\n <PageLayout\n regions={[a, b, c]}\n ref={ref}\n {...restProps}\n cols='minmax(0, 1fr) repeat(2, minmax(0, 2fr))'\n />\n );\n });\n\nexport const NarrowWideNarrowPage: ForwardRefForwardPropsComponent<NarrowWideNarrowPageProps> =\n forwardRef(function NarrowWideNarrowPage(\n { a, b, c, ...restProps }: PropsWithoutRef<NarrowWideNarrowPageProps>,\n ref: NarrowWideNarrowPageProps['ref']\n ) {\n return (\n <PageLayout\n regions={[a, b, c]}\n ref={ref}\n {...restProps}\n cols='minmax(0, 1fr) minmax(0, 3fr) minmax(0, 1fr)'\n />\n );\n });\n"]}
@@ -1,5 +1,6 @@
1
1
  import type { Ref } from 'react';
2
2
  import type { BaseProps, ForwardRefForwardPropsComponent, NoChildrenProp } from '../../types';
3
+ import type { PhoneFormattingVariant } from './utils';
3
4
  export interface PhoneDisplayProps extends BaseProps, NoChildrenProp {
4
5
  /** Phone number, no 'tel:' scheme, '+18887342669' */
5
6
  value?: string;
@@ -17,6 +18,15 @@ export interface PhoneDisplayProps extends BaseProps, NoChildrenProp {
17
18
  * @default true
18
19
  */
19
20
  showCountryCode?: boolean;
21
+ /**
22
+ * Defines whether the phone number uses domestic or international formatting when the country code is displayed.
23
+ * When the country code is hidden, domestic formatting is used without the country code.
24
+ * @default 'international'
25
+ * @example international: '+1 123 456 7890'
26
+ * @example domestic: '+1 (123) 456-7890'
27
+ * @example without country code: '(123) 456-7890'
28
+ */
29
+ variant?: PhoneFormattingVariant;
20
30
  };
21
31
  /** Ref for the wrapping element. */
22
32
  ref?: Ref<HTMLAnchorElement | HTMLSpanElement>;
@@ -1 +1 @@
1
- {"version":3,"file":"PhoneDisplay.d.ts","sourceRoot":"","sources":["../../../src/components/Phone/PhoneDisplay.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAmB,GAAG,EAAE,MAAM,OAAO,CAAC;AAElD,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA+B,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAM9F,MAAM,WAAW,iBAAkB,SAAQ,SAAS,EAAE,cAAc;IAClE,qDAAqD;IACrD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gCAAgC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,oCAAoC;IACpC,iBAAiB,CAAC,EAAE;QAClB;;;WAGG;QACH,eAAe,CAAC,EAAE,OAAO,CAAC;KAC3B,CAAC;IACF,oCAAoC;IACpC,GAAG,CAAC,EAAE,GAAG,CAAC,iBAAiB,GAAG,eAAe,CAAC,CAAC;CAChD;AAED,QAAA,MAAM,YAAY,EAAE,+BAA+B,CAAC,iBAAiB,CAgCpE,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"PhoneDisplay.d.ts","sourceRoot":"","sources":["../../../src/components/Phone/PhoneDisplay.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAmB,GAAG,EAAE,MAAM,OAAO,CAAC;AAElD,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA+B,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAK9F,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEtD,MAAM,WAAW,iBAAkB,SAAQ,SAAS,EAAE,cAAc;IAClE,qDAAqD;IACrD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gCAAgC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,oCAAoC;IACpC,iBAAiB,CAAC,EAAE;QAClB;;;WAGG;QACH,eAAe,CAAC,EAAE,OAAO,CAAC;QAC1B;;;;;;;WAOG;QACH,OAAO,CAAC,EAAE,sBAAsB,CAAC;KAClC,CAAC;IACF,oCAAoC;IACpC,GAAG,CAAC,EAAE,GAAG,CAAC,iBAAiB,GAAG,eAAe,CAAC,CAAC;CAChD;AAED,QAAA,MAAM,YAAY,EAAE,+BAA+B,CAAC,iBAAiB,CAwCpE,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -3,8 +3,13 @@ import { forwardRef } from 'react';
3
3
  import { StyledButtonLink } from '../Button';
4
4
  import NoValue from '../NoValue/NoValue';
5
5
  import { formatPhone } from './utils';
6
- const PhoneDisplay = forwardRef(function PhoneDisplay({ value, displayText, variant = 'link', formattingOptions: { showCountryCode = true } = {}, ...restProps }, ref) {
7
- const displayValue = value ? (displayText || formatPhone(value || '', { nationalFormat: !showCountryCode }) || value) : (_jsx(NoValue, {}));
6
+ const PhoneDisplay = forwardRef(function PhoneDisplay({ value, displayText, variant = 'link', formattingOptions: { showCountryCode = true, variant: formattingVariant = 'international' } = {}, ...restProps }, ref) {
7
+ const displayValue = value ? (displayText ||
8
+ formatPhone(value || '', {
9
+ nationalFormat: showCountryCode ? formattingVariant === 'domestic' : true,
10
+ showCountryCode
11
+ }) ||
12
+ value) : (_jsx(NoValue, {}));
8
13
  return variant === 'text' || !value ? (_jsx("span", { ref: ref, ...restProps, children: displayValue })) : (_jsx(StyledButtonLink, { ...restProps, variant: 'link', ref: ref, href: `tel:${value}`, children: displayValue }));
9
14
  });
10
15
  export default PhoneDisplay;
@@ -1 +1 @@
1
- {"version":3,"file":"PhoneDisplay.js","sourceRoot":"","sources":["../../../src/components/Phone/PhoneDisplay.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAInC,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,OAAO,MAAM,oBAAoB,CAAC;AAEzC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAwBtC,MAAM,YAAY,GAAuD,UAAU,CACjF,SAAS,YAAY,CACnB,EACE,KAAK,EACL,WAAW,EACX,OAAO,GAAG,MAAM,EAChB,iBAAiB,EAAE,EAAE,eAAe,GAAG,IAAI,EAAE,GAAG,EAAE,EAClD,GAAG,SAAS,EACuB,EACrC,GAA6B;IAE7B,MAAM,YAAY,GAAG,KAAK,CAAC,CAAC,CAAC,CAC3B,WAAW,IAAI,WAAW,CAAC,KAAK,IAAI,EAAE,EAAE,EAAE,cAAc,EAAE,CAAC,eAAe,EAAE,CAAC,IAAI,KAAK,CACvF,CAAC,CAAC,CAAC,CACF,KAAC,OAAO,KAAG,CACZ,CAAC;IAEF,OAAO,OAAO,KAAK,MAAM,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CACpC,eAAM,GAAG,EAAE,GAA2B,KAAM,SAAS,YAClD,YAAY,GACR,CACR,CAAC,CAAC,CAAC,CACF,KAAC,gBAAgB,OACX,SAAS,EACb,OAAO,EAAC,MAAM,EACd,GAAG,EAAE,GAA6B,EAClC,IAAI,EAAE,OAAO,KAAK,EAAE,YAEnB,YAAY,GACI,CACpB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,YAAY,CAAC","sourcesContent":["import { forwardRef } from 'react';\nimport type { PropsWithoutRef, Ref } from 'react';\n\nimport type { BaseProps, ForwardRefForwardPropsComponent, NoChildrenProp } from '../../types';\nimport { StyledButtonLink } from '../Button';\nimport NoValue from '../NoValue/NoValue';\n\nimport { formatPhone } from './utils';\n\nexport interface PhoneDisplayProps extends BaseProps, NoChildrenProp {\n /** Phone number, no 'tel:' scheme, '+18887342669' */\n value?: string;\n /** The text to be displayed. */\n displayText?: string;\n /**\n * Controls styling of the field.\n * @default 'link'\n */\n variant?: 'link' | 'text';\n /** Options to define formatting. */\n formattingOptions?: {\n /**\n * Display phone number with country calling code\n * @default true\n */\n showCountryCode?: boolean;\n };\n /** Ref for the wrapping element. */\n ref?: Ref<HTMLAnchorElement | HTMLSpanElement>;\n}\n\nconst PhoneDisplay: ForwardRefForwardPropsComponent<PhoneDisplayProps> = forwardRef(\n function PhoneDisplay(\n {\n value,\n displayText,\n variant = 'link',\n formattingOptions: { showCountryCode = true } = {},\n ...restProps\n }: PropsWithoutRef<PhoneDisplayProps>,\n ref: PhoneDisplayProps['ref']\n ) {\n const displayValue = value ? (\n displayText || formatPhone(value || '', { nationalFormat: !showCountryCode }) || value\n ) : (\n <NoValue />\n );\n\n return variant === 'text' || !value ? (\n <span ref={ref as Ref<HTMLSpanElement>} {...restProps}>\n {displayValue}\n </span>\n ) : (\n <StyledButtonLink\n {...restProps}\n variant='link'\n ref={ref as Ref<HTMLAnchorElement>}\n href={`tel:${value}`}\n >\n {displayValue}\n </StyledButtonLink>\n );\n }\n);\n\nexport default PhoneDisplay;\n"]}
1
+ {"version":3,"file":"PhoneDisplay.js","sourceRoot":"","sources":["../../../src/components/Phone/PhoneDisplay.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAInC,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,OAAO,MAAM,oBAAoB,CAAC;AAEzC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAkCtC,MAAM,YAAY,GAAuD,UAAU,CACjF,SAAS,YAAY,CACnB,EACE,KAAK,EACL,WAAW,EACX,OAAO,GAAG,MAAM,EAChB,iBAAiB,EAAE,EACjB,eAAe,GAAG,IAAI,EACtB,OAAO,EAAE,iBAAiB,GAAG,eAAe,EAC7C,GAAG,EAAE,EACN,GAAG,SAAS,EACuB,EACrC,GAA6B;IAE7B,MAAM,YAAY,GAAG,KAAK,CAAC,CAAC,CAAC,CAC3B,WAAW;QACX,WAAW,CAAC,KAAK,IAAI,EAAE,EAAE;YACvB,cAAc,EAAE,eAAe,CAAC,CAAC,CAAC,iBAAiB,KAAK,UAAU,CAAC,CAAC,CAAC,IAAI;YACzE,eAAe;SAChB,CAAC;QACF,KAAK,CACN,CAAC,CAAC,CAAC,CACF,KAAC,OAAO,KAAG,CACZ,CAAC;IAEF,OAAO,OAAO,KAAK,MAAM,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CACpC,eAAM,GAAG,EAAE,GAA2B,KAAM,SAAS,YAClD,YAAY,GACR,CACR,CAAC,CAAC,CAAC,CACF,KAAC,gBAAgB,OACX,SAAS,EACb,OAAO,EAAC,MAAM,EACd,GAAG,EAAE,GAA6B,EAClC,IAAI,EAAE,OAAO,KAAK,EAAE,YAEnB,YAAY,GACI,CACpB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,YAAY,CAAC","sourcesContent":["import { forwardRef } from 'react';\nimport type { PropsWithoutRef, Ref } from 'react';\n\nimport type { BaseProps, ForwardRefForwardPropsComponent, NoChildrenProp } from '../../types';\nimport { StyledButtonLink } from '../Button';\nimport NoValue from '../NoValue/NoValue';\n\nimport { formatPhone } from './utils';\nimport type { PhoneFormattingVariant } from './utils';\n\nexport interface PhoneDisplayProps extends BaseProps, NoChildrenProp {\n /** Phone number, no 'tel:' scheme, '+18887342669' */\n value?: string;\n /** The text to be displayed. */\n displayText?: string;\n /**\n * Controls styling of the field.\n * @default 'link'\n */\n variant?: 'link' | 'text';\n /** Options to define formatting. */\n formattingOptions?: {\n /**\n * Display phone number with country calling code\n * @default true\n */\n showCountryCode?: boolean;\n /**\n * Defines whether the phone number uses domestic or international formatting when the country code is displayed.\n * When the country code is hidden, domestic formatting is used without the country code.\n * @default 'international'\n * @example international: '+1 123 456 7890'\n * @example domestic: '+1 (123) 456-7890'\n * @example without country code: '(123) 456-7890'\n */\n variant?: PhoneFormattingVariant;\n };\n /** Ref for the wrapping element. */\n ref?: Ref<HTMLAnchorElement | HTMLSpanElement>;\n}\n\nconst PhoneDisplay: ForwardRefForwardPropsComponent<PhoneDisplayProps> = forwardRef(\n function PhoneDisplay(\n {\n value,\n displayText,\n variant = 'link',\n formattingOptions: {\n showCountryCode = true,\n variant: formattingVariant = 'international'\n } = {},\n ...restProps\n }: PropsWithoutRef<PhoneDisplayProps>,\n ref: PhoneDisplayProps['ref']\n ) {\n const displayValue = value ? (\n displayText ||\n formatPhone(value || '', {\n nationalFormat: showCountryCode ? formattingVariant === 'domestic' : true,\n showCountryCode\n }) ||\n value\n ) : (\n <NoValue />\n );\n\n return variant === 'text' || !value ? (\n <span ref={ref as Ref<HTMLSpanElement>} {...restProps}>\n {displayValue}\n </span>\n ) : (\n <StyledButtonLink\n {...restProps}\n variant='link'\n ref={ref as Ref<HTMLAnchorElement>}\n href={`tel:${value}`}\n >\n {displayValue}\n </StyledButtonLink>\n );\n }\n);\n\nexport default PhoneDisplay;\n"]}
@@ -1,6 +1,7 @@
1
1
  import type { Ref } from 'react';
2
2
  import type { BaseProps, ForwardRefForwardPropsComponent, NoChildrenProp, TestIdProp } from '../../types';
3
3
  import type { FormControlProps } from '../FormControl';
4
+ import type { PhoneFormattingVariant } from './utils';
4
5
  type AutoFillTel = AutoFillBase | `${OptionalPrefixToken<AutoFillSection>}${OptionalPrefixToken<AutoFillAddressKind>}${OptionalPrefixToken<AutoFillContactKind>}tel`;
5
6
  export interface PhoneInputProps extends FormControlProps, BaseProps, NoChildrenProp, TestIdProp {
6
7
  /**
@@ -8,6 +9,15 @@ export interface PhoneInputProps extends FormControlProps, BaseProps, NoChildren
8
9
  * @default false
9
10
  */
10
11
  showCountryCode?: boolean;
12
+ /**
13
+ * Defines how the subscriber number is formatted while typing when the country code is displayed.
14
+ * When the country code is hidden, domestic formatting is used without the country code.
15
+ * @default 'international'
16
+ * @example international: '+1 123 456 7890'
17
+ * @example domestic: '+1 (123) 456-7890'
18
+ * @example without country code: '(123) 456-7890'
19
+ */
20
+ formattingVariant?: PhoneFormattingVariant;
11
21
  /** Changes lists of countries calling codes */
12
22
  callingCodesList?: string[];
13
23
  /** Callback fired on input value change */
@@ -22,7 +32,7 @@ export interface PhoneInputProps extends FormControlProps, BaseProps, NoChildren
22
32
  autoComplete?: AutoFillTel;
23
33
  }
24
34
  declare const _default: ForwardRefForwardPropsComponent<PhoneInputProps> & {
25
- getTestIds: (testIdProp?: TestIdProp["testId"]) => import("../../types").TestIdsRecord<readonly ["control", "country-code", "label", "info", "additional-info", "suggestion-accept", "suggestion-reject"]>;
35
+ getTestIds: (testIdProp?: TestIdProp["testId"]) => import("../..").TestIdsRecord<readonly ["control", "country-code", "label", "info", "additional-info", "suggestion-accept", "suggestion-reject"]>;
26
36
  };
27
37
  export default _default;
28
38
  //# sourceMappingURL=PhoneInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PhoneInput.d.ts","sourceRoot":"","sources":["../../../src/components/Phone/PhoneInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAgC,GAAG,EAAE,MAAM,OAAO,CAAC;AAY/D,OAAO,KAAK,EACV,SAAS,EACT,+BAA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AAY,GACZ,GAAG,mBAAmB,CAAC,eAAe,CAAC,GAAG,mBAAmB,CAAC,mBAAmB,CAAC,GAAG,mBAAmB,CAAC,mBAAmB,CAAC,KAAK,CAAC;AAEvI,MAAM,WAAW,eAAgB,SAAQ,gBAAgB,EAAE,SAAS,EAAE,cAAc,EAAE,UAAU;IAC9F;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;;;;OAOG;IACH,iBAAiB,CAAC,EAAE,sBAAsB,CAAC;IAC3C,+CAA+C;IAC/C,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,oDAAoD;IACpD,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,oDAAoD;IACpD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,oCAAoC;IACpC,GAAG,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAC5B,6CAA6C;IAC7C,YAAY,CAAC,EAAE,WAAW,CAAC;CAC5B;;;;AA+ND,wBAA6D"}
@@ -1,5 +1,6 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { forwardRef, useCallback, useRef } from 'react';
3
+ import { isValidPhoneNumber } from 'libphonenumber-js';
3
4
  import styled, { css } from 'styled-components';
4
5
  import { useConsolidatedRef, useElement, useFocusWithin, useI18n, useInputFormatter, useTestIds } from '../../hooks';
5
6
  import { defaultThemeProp } from '../../theme';
@@ -41,14 +42,15 @@ const StyledPhoneInput = styled.div(() => {
41
42
  });
42
43
  StyledPhoneInput.defaultProps = defaultThemeProp;
43
44
  const PhoneInput = forwardRef(function PhoneInput(props, ref) {
44
- const { testId, value, id, label, labelHidden, info, status, required, readOnly, disabled, showCountryCode = false, callingCodesList = callingCodes, onChange, onBlur, onFocus, onResolveSuggestion, additionalInfo, className, autoComplete = '_off', ...restProps } = props;
45
+ const { testId, value, id, label, labelHidden, info, status, required, readOnly, disabled, showCountryCode = false, formattingVariant = 'international', callingCodesList = callingCodes, onChange, onBlur, onFocus, suggestion, additionalInfo, className, autoComplete = '_off', ...restProps } = props;
45
46
  const testIds = useTestIds(testId, getPhoneInputTestIds);
46
47
  const [selectEl, setSelectEl] = useElement();
47
48
  const [inputEl, setInputEl] = useElement();
48
49
  const t = useI18n();
49
- const [countryCode = callingCodesList[0], subscriberNumber = ''] = value
50
+ const [valueCountryCode, subscriberNumber = ''] = value
50
51
  ? getPhoneNumberParts(value, callingCodesList)
51
52
  : [];
53
+ const countryCode = valueCountryCode ?? callingCodesList[0];
52
54
  const onFocusChange = (focused) => {
53
55
  const callbackParam = convertToCallbackParameter(countryCode, subscriberNumber);
54
56
  if (focused)
@@ -67,20 +69,31 @@ const PhoneInput = forwardRef(function PhoneInput(props, ref) {
67
69
  useFocusWithin([containerRef], onFocusChange);
68
70
  const formatter = useCallback((number) => {
69
71
  if (value && readOnly && showCountryCode) {
70
- const temp = formatPhone(value, { nationalFormat: !readOnly });
72
+ if (isValidPhoneNumber(value)) {
73
+ const formattedPhone = formatPhone(value, {
74
+ nationalFormat: formattingVariant === 'domestic',
75
+ showCountryCode: true
76
+ });
77
+ if (formattedPhone)
78
+ return formattedPhone;
79
+ }
80
+ const formattedNumber = formatPhoneNumber(number, countryCode, formattingVariant === 'international', formattingVariant);
81
+ const temp = valueCountryCode
82
+ ? [valueCountryCode, formattedNumber].filter(Boolean).join(' ')
83
+ : formattedNumber;
71
84
  if (temp)
72
85
  return temp;
73
86
  }
74
- return formatPhoneNumber(number.replace(/\D+/g, ''), countryCode, showCountryCode);
75
- }, [readOnly, countryCode, showCountryCode]);
87
+ return formatPhoneNumber(number, countryCode, false, showCountryCode ? formattingVariant : 'domestic');
88
+ }, [value, valueCountryCode, readOnly, countryCode, showCountryCode, formattingVariant]);
76
89
  const formatted = useInputFormatter(inputRef, subscriberNumber, formatter);
77
90
  const codesOptions = (_jsx(_Fragment, { children: callingCodesList.map(code => (_jsx(Option, { value: code, children: code }, code))) }));
78
91
  const Comp = (_jsx(StyledPhoneInput, { "data-testid": testIds.root, as: StyledFormControl, forwardedAs: Flex, container: { alignItems: 'center', wrap: 'nowrap' }, ref: containerRef, status: status, readOnly: readOnly, disabled: disabled, children: _jsxs(_Fragment, { children: [showCountryCode && !readOnly && (_jsxs(_Fragment, { children: [_jsx(Select, { "data-testid": testIds.countryCode, value: countryCode, "aria-label": t('select_country_code'), onChange: onSelectChange, required: required, status: status, readOnly: readOnly, disabled: disabled, autoComplete: autoComplete && autoComplete.endsWith('tel')
79
92
  ? autoComplete.replace('tel', 'tel-country-code')
80
- : autoComplete, ref: setSelectEl, hasSuggestion: status === 'pending' && !!onResolveSuggestion, children: codesOptions }), selectEl && (_jsx(Tooltip, { target: selectEl, describeTarget: false, showDelay: 'none', hideDelay: 'none', children: t('country_code') }))] })), _jsx(Input, { "data-testid": testIds.control, autoComplete: autoComplete && autoComplete.endsWith('tel')
93
+ : autoComplete, ref: setSelectEl, hasSuggestion: status === 'pending' && !!suggestion, children: codesOptions }), selectEl && (_jsx(Tooltip, { target: selectEl, describeTarget: false, showDelay: 'none', hideDelay: 'none', children: t('country_code') }))] })), _jsx(Input, { "data-testid": testIds.control, autoComplete: autoComplete && autoComplete.endsWith('tel')
81
94
  ? autoComplete.replace('tel', 'tel-national')
82
- : autoComplete, ...restProps, inputMode: 'tel', ref: inputRef, value: formatted, "aria-label": t('enter_a_number'), onChange: onInputChange, required: required, status: status, readOnly: readOnly, disabled: disabled, onResolveSuggestion: onResolveSuggestion, className: createClassName('phone-input', className) }), showCountryCode && inputEl && (_jsx(Tooltip, { target: inputEl, describeTarget: false, showDelay: 'none', hideDelay: 'none', children: t('phone_number') }))] }) }));
83
- return label ? (_jsx(FormField, { testId: testIds, as: 'fieldset', additionalInfo: additionalInfo, label: label, labelHidden: labelHidden, id: id, info: info, readOnly: readOnly, status: status, required: required, disabled: disabled, onResolveSuggestion: onResolveSuggestion, children: Comp })) : (Comp);
95
+ : autoComplete, ...restProps, inputMode: 'tel', ref: inputRef, value: formatted, "aria-label": t('enter_a_number'), onChange: onInputChange, required: required, status: status, readOnly: readOnly, disabled: disabled, suggestion: suggestion, className: createClassName('phone-input', className) }), showCountryCode && inputEl && (_jsx(Tooltip, { target: inputEl, describeTarget: false, showDelay: 'none', hideDelay: 'none', children: t('phone_number') }))] }) }));
96
+ return label ? (_jsx(FormField, { testId: testIds, as: 'fieldset', additionalInfo: additionalInfo, label: label, labelHidden: labelHidden, id: id, info: info, readOnly: readOnly, status: status, required: required, disabled: disabled, suggestion: suggestion, children: Comp })) : (Comp);
84
97
  });
85
98
  export default withTestIds(PhoneInput, getPhoneInputTestIds);
86
99
  //# sourceMappingURL=PhoneInput.js.map