@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
@@ -0,0 +1,564 @@
1
+ import styled, { css } from 'styled-components';
2
+ import { useContext } from 'react';
3
+ import { defaultThemeProp } from '../../theme';
4
+ import { StyledIcon } from '../Icon';
5
+ import Button from '../Button';
6
+ import MenuButton from '../MenuButton';
7
+ import Flex from '../Flex';
8
+ import AppShellContext from './AppShellContext';
9
+ export const getDocumentTabsVariant = (theme) => {
10
+ const value = theme.components?.['app-shell']?.['document-tabs']?.variant;
11
+ return value === 'segmented' || value === 'anchored' || value === 'underline' ? value : 'folder';
12
+ };
13
+ const getVariant = getDocumentTabsVariant;
14
+ const MAX_TAB_WIDTH = '12rem';
15
+ const getTabFill = (theme) => theme.components?.['app-shell']?.['document-tabs']?.fill ?? theme.base.palette['app-background'];
16
+ /**
17
+ * Each variant returns the CSS slices that customize the tab strip.
18
+ * All values come from theme tokens (spacing, palette, radius, shadow) —
19
+ * no hard-coded pixel values from any specific design frame.
20
+ */
21
+ /**
22
+ * Shared spacing tokens for tabs. Kept in one place so nudging padding /
23
+ * gap / max-width once affects all variants.
24
+ */
25
+ const tabTokens = (theme) => {
26
+ const { spacing } = theme.base;
27
+ return {
28
+ tabPaddingInline: `calc(1.5 * ${spacing})`
29
+ };
30
+ };
31
+ /**
32
+ * CSS slices shared by every variant. Individual variants layer their own
33
+ * background, radius, padding, and active-state visuals on top.
34
+ */
35
+ const baseVariantStyles = (theme) => {
36
+ const { palette, 'border-radius': borderRadius } = theme.base;
37
+ const { tabPaddingInline } = tabTokens(theme);
38
+ return {
39
+ container: css `
40
+ background-color: ${palette['secondary-background']};
41
+ `,
42
+ tab: css `
43
+ padding-inline: ${tabPaddingInline};
44
+
45
+ &:hover {
46
+ background-color: ${palette['primary-background']};
47
+ }
48
+
49
+ /* Outset outline around the tab body. z-index lifts the tab above the
50
+ panel below so the outline is not clipped where they overlap. */
51
+ &:focus-visible {
52
+ outline: 0.125rem solid ${palette.interactive};
53
+ outline-offset: 0.0625rem;
54
+ box-shadow: none;
55
+ position: relative;
56
+ z-index: 3;
57
+ }
58
+
59
+ /* Active folder tab has top-only rounded corners and scoop pseudos
60
+ that weld it into the panel below. On focus, round all corners and
61
+ hide the scoops so the tab reads as a standalone pill — matching
62
+ the non-active tab focus shape. */
63
+ &[aria-selected='true']:focus-visible {
64
+ border-radius: ${borderRadius};
65
+ }
66
+ &[aria-selected='true']:focus-visible::before,
67
+ &[aria-selected='true']:focus-visible::after {
68
+ display: none;
69
+ }
70
+ `,
71
+ activeIcon: css `
72
+ ${StyledIcon} {
73
+ color: ${palette['foreground-color']};
74
+ opacity: 1;
75
+ }
76
+ `
77
+ };
78
+ };
79
+ /**
80
+ * Shared "browser-tab" shape used by anchored + folder variants.
81
+ * The tab has a filled body that grows into the container's bottom edge on
82
+ * active state, with two outward-curving scoop pseudos that visually flow
83
+ * into the panel below.
84
+ *
85
+ * @param fill Background color for the active tab and its scoops.
86
+ * @param onFill Text/icon color when the tab is active.
87
+ * @param inactiveFill Background color for inactive tabs.
88
+ * @param fontWeight Active tab font weight.
89
+ */
90
+ const browserTabStyles = (theme, { fill, onFill, inactiveFill, fontWeight }) => {
91
+ const { palette, spacing, 'border-radius': borderRadius } = theme.base;
92
+ const base = baseVariantStyles(theme);
93
+ return {
94
+ container: css `
95
+ ${base.container}
96
+ --tab-height: 2rem;
97
+ align-items: flex-end;
98
+ padding-block-start: calc(0.375 * ${spacing});
99
+ padding-inline: ${spacing};
100
+ gap: calc(0.5 * ${spacing});
101
+
102
+ &[data-overflowing='true'] {
103
+ padding-block-start: ${spacing};
104
+ }
105
+
106
+ /* Home is the leftmost tab and has no neighbor to weld into on its
107
+ left side. Hide the ::before scoop so it doesn't curve into empty
108
+ space against the nav. */
109
+ [id='document-tab-home']::before {
110
+ display: none;
111
+ }
112
+ `,
113
+ tab: css `
114
+ ${base.tab}
115
+ height: calc(var(--tab-height) - 0.4375rem);
116
+ margin-block-end: 0.3125rem;
117
+ background-color: ${inactiveFill};
118
+ color: ${palette['foreground-color']};
119
+ opacity: 0.9;
120
+ border-radius: ${borderRadius};
121
+
122
+ &:hover,
123
+ &:focus-visible {
124
+ opacity: 1;
125
+ }
126
+ `,
127
+ active: css `
128
+ background-color: ${fill};
129
+ color: ${onFill};
130
+ opacity: 1;
131
+ font-weight: ${fontWeight};
132
+ height: calc(var(--tab-height) - 0.125rem);
133
+ border-radius: ${borderRadius} ${borderRadius} 0 0;
134
+ margin-block-end: 0;
135
+ padding-block-end: 0.3125rem;
136
+ position: relative;
137
+ overflow: visible;
138
+ z-index: 1;
139
+
140
+ &::before,
141
+ &::after {
142
+ content: '';
143
+ position: absolute;
144
+ inset-block-end: 0;
145
+ width: 1.125rem;
146
+ height: 1.125rem;
147
+ pointer-events: none;
148
+ }
149
+
150
+ &::before {
151
+ inset-inline-start: -1.125rem;
152
+ border-end-end-radius: 0.8125rem;
153
+ box-shadow: 0.45rem 0.05rem 0 ${fill};
154
+ }
155
+
156
+ &::after {
157
+ inset-inline-end: -1.125rem;
158
+ border-end-start-radius: 0.8125rem;
159
+ box-shadow: -0.45rem 0.05rem 0 ${fill};
160
+ }
161
+
162
+ ${StyledIcon} {
163
+ color: ${onFill};
164
+ opacity: 1;
165
+ }
166
+
167
+ &:hover {
168
+ background-color: ${fill};
169
+ }
170
+ `
171
+ };
172
+ };
173
+ const variantStyles = (variant, theme) => {
174
+ const { palette, spacing } = theme.base;
175
+ const base = baseVariantStyles(theme);
176
+ switch (variant) {
177
+ case 'segmented':
178
+ return {
179
+ container: css `
180
+ ${base.container}
181
+ padding-block: calc(0.125 * ${spacing});
182
+ padding-inline: calc(0.75 * ${spacing});
183
+ border-radius: calc(var(--tab-height) / 2);
184
+ align-self: center;
185
+ flex-grow: 0;
186
+ `,
187
+ tab: css `
188
+ ${base.tab}
189
+ border-radius: calc(var(--tab-height) / 2);
190
+ `,
191
+ active: css `
192
+ background-color: ${palette['primary-background']};
193
+ color: ${palette['foreground-color']};
194
+ opacity: 1;
195
+ font-weight: 500;
196
+ border: 0.0625rem solid ${palette['border-line']};
197
+
198
+ ${StyledIcon} {
199
+ color: ${palette.interactive};
200
+ opacity: 1;
201
+ }
202
+
203
+ &:hover {
204
+ background-color: ${palette['primary-background']};
205
+ }
206
+ `
207
+ };
208
+ case 'anchored':
209
+ return browserTabStyles(theme, {
210
+ fill: palette.interactive,
211
+ onFill: palette['primary-background'],
212
+ inactiveFill: palette['primary-background'],
213
+ fontWeight: 500
214
+ });
215
+ case 'folder': {
216
+ // Folder tabs read as one flat surface — active and inactive share
217
+ // the same fill; active state is signaled by the scoop pseudos welding
218
+ // it into the panel below rather than by a distinct color.
219
+ const tabFill = getTabFill(theme);
220
+ return browserTabStyles(theme, {
221
+ fill: tabFill,
222
+ onFill: palette['foreground-color'],
223
+ inactiveFill: tabFill,
224
+ fontWeight: 600
225
+ });
226
+ }
227
+ case 'underline':
228
+ default:
229
+ return {
230
+ container: css `
231
+ ${base.container}
232
+ padding-block: calc(0.5 * ${spacing});
233
+ border-block-end: 0.0625rem solid ${palette['border-line']};
234
+ `,
235
+ tab: css `
236
+ ${base.tab}
237
+ `,
238
+ active: css `
239
+ background-color: ${palette['primary-background']};
240
+ color: ${palette['foreground-color']};
241
+ opacity: 1;
242
+ font-weight: 500;
243
+ box-shadow: 0 calc(-0.125 * ${spacing}) 0 0 ${palette['foreground-color']} inset;
244
+
245
+ ${base.activeIcon}
246
+
247
+ &:hover {
248
+ background-color: ${palette['primary-background']};
249
+ }
250
+ `
251
+ };
252
+ }
253
+ };
254
+ export const documentTabsHeight = '2.25rem';
255
+ export const StyledDocumentTabsContainer = styled(Flex)(({ theme }) => {
256
+ const { spacing } = theme.base;
257
+ const variant = getVariant(theme);
258
+ const { isMobileNav, isTopBar, startPanelOpen } = useContext(AppShellContext);
259
+ return css `
260
+ --tab-height: ${documentTabsHeight};
261
+ position: sticky;
262
+ top: calc(var(--appshell-top-offset, 0rem) - var(--document-tabs-height, 0rem));
263
+
264
+ /* Sit above CaseView's own sticky wrappers (which use z-index: 1) and
265
+ similar low-z content so case-content doesn't bleed through the tab
266
+ strip background. */
267
+ z-index: ${theme.base['z-index'].popover};
268
+ align-items: stretch;
269
+ gap: calc(0.25 * ${spacing});
270
+ background-color: transparent;
271
+ min-height: ${documentTabsHeight};
272
+ overflow: visible;
273
+ margin-inline-start: ${isMobileNav || (isTopBar && !startPanelOpen)
274
+ ? 0
275
+ : 'var(--appshell-horizontal-offset, 0)'};
276
+ transition: margin-inline-start
277
+ ${`${theme.base.animation.speed} ${theme.base.animation.timing.ease}`};
278
+
279
+ ${variantStyles(variant, theme).container}
280
+ `;
281
+ });
282
+ StyledDocumentTabsContainer.defaultProps = defaultThemeProp;
283
+ export const StyledDocumentTabButton = styled.button
284
+ .attrs({ type: 'button' })
285
+ .withConfig({ shouldForwardProp: prop => !['hasClose'].includes(prop) })(({ hasClose, theme }) => {
286
+ const { palette, spacing } = theme.base;
287
+ const variant = getVariant(theme);
288
+ return css `
289
+ display: flex;
290
+ align-items: center;
291
+ justify-content: center;
292
+ gap: calc(0.5 * ${spacing});
293
+ box-sizing: border-box;
294
+ height: 100%;
295
+ padding-block: 0;
296
+ border: none;
297
+ background-color: transparent;
298
+ color: ${palette['foreground-color']};
299
+ opacity: 0.7;
300
+ cursor: pointer;
301
+ position: relative;
302
+ max-width: ${MAX_TAB_WIDTH};
303
+ font: inherit;
304
+ text-align: start;
305
+ text-decoration: none;
306
+ transition:
307
+ background-color 120ms ease,
308
+ color 120ms ease,
309
+ opacity 120ms ease;
310
+
311
+ ${StyledIcon} {
312
+ flex-shrink: 0;
313
+ font-size: 1rem;
314
+ opacity: 0.75;
315
+ }
316
+
317
+ &:hover {
318
+ opacity: 1;
319
+
320
+ ${StyledIcon} {
321
+ opacity: 1;
322
+ }
323
+ }
324
+
325
+ ${variantStyles(variant, theme).tab}
326
+
327
+ /* Layered after the variant's shorthand padding-inline so the extra
328
+ right-side room reserved for the close overlay wins the cascade. */
329
+ ${hasClose &&
330
+ css `
331
+ padding-inline-end: calc(1.5rem + ${spacing});
332
+ `}
333
+ `;
334
+ });
335
+ StyledDocumentTabButton.defaultProps = defaultThemeProp;
336
+ /**
337
+ * Absolute-positioned wrapper that overlays the close Button on the tab's
338
+ * inline-end padding. Button has intrinsic min-width/min-height we can't
339
+ * reliably override for tight overlays, so the wrapper handles geometry
340
+ * (flex-centered vertically, full item height) and the Button lives
341
+ * naturally inside.
342
+ */
343
+ export const StyledDocumentTabCloseAnchor = styled.span(({ theme }) => {
344
+ const { spacing } = theme.base;
345
+ return css `
346
+ position: absolute;
347
+ inset-inline-end: calc(0.5 * ${spacing});
348
+ inset-block: 0;
349
+ display: flex;
350
+ align-items: center;
351
+
352
+ /* Sits above the focused tab button (which bumps to z-index: 3 for
353
+ its outline) so the × stays visible while focused. */
354
+ z-index: 4;
355
+ `;
356
+ });
357
+ StyledDocumentTabCloseAnchor.defaultProps = defaultThemeProp;
358
+ export const StyledDocumentTabItem = styled.div.withConfig({
359
+ shouldForwardProp: prop => !['isActive', 'isDropBefore', 'isDragging'].includes(prop)
360
+ })(({ isActive, isDropBefore, isDragging, theme }) => {
361
+ const { palette } = theme.base;
362
+ const variant = getVariant(theme);
363
+ return css `
364
+ flex-shrink: 0;
365
+ white-space: nowrap;
366
+ position: relative;
367
+ display: flex;
368
+ align-items: stretch;
369
+ opacity: ${isDragging ? 0.5 : 1};
370
+
371
+ ${isDropBefore &&
372
+ css `
373
+ &::before {
374
+ content: '';
375
+ position: absolute;
376
+ inset-block: 0.25rem;
377
+ inset-inline-start: -0.0625rem;
378
+ width: 0.125rem;
379
+ background-color: ${palette.interactive};
380
+ border-radius: 0.125rem;
381
+ z-index: 2;
382
+ }
383
+ `}
384
+
385
+ ${StyledDocumentTabButton} {
386
+ ${isActive && variantStyles(variant, theme).active}
387
+ }
388
+
389
+ /* Folder/anchored variants size the row to the active tab (which is
390
+ taller than inactive tabs, and adds padding-block-end on active),
391
+ so the label's optical center sits ~0.3125rem above the row's
392
+ geometric center. Mirror that inset on the close anchor so the ×
393
+ stays optically aligned on every tab in these variants. */
394
+ ${(variant === 'folder' || variant === 'anchored') &&
395
+ css `
396
+ & > ${StyledDocumentTabCloseAnchor} {
397
+ inset-block-end: 0.3125rem;
398
+ }
399
+ `}
400
+ `;
401
+ });
402
+ StyledDocumentTabItem.defaultProps = defaultThemeProp;
403
+ export const StyledDocumentTabList = styled.div(({ theme }) => {
404
+ const { spacing } = theme.base;
405
+ const variant = getVariant(theme);
406
+ const gap = variant === 'segmented' || variant === 'anchored' || variant === 'folder'
407
+ ? `calc(1.5 * ${spacing})`
408
+ : `calc(0.5 * ${spacing})`;
409
+ return css `
410
+ position: relative;
411
+ display: flex;
412
+ align-items: stretch;
413
+ flex-grow: 1;
414
+ min-width: 0;
415
+ gap: ${gap};
416
+ overflow-x: auto;
417
+ overflow-y: hidden;
418
+ margin: 0;
419
+
420
+ /* Padding + negative margin gives the focused-tab pill outline (which
421
+ extends outside the tab body on all sides) room to render inside the
422
+ scroll clip. Negative margins cancel the padding so surrounding
423
+ layout stays put. */
424
+ padding-block-start: 0.5rem;
425
+ padding-block-end: 0.25rem;
426
+ padding-inline: 0.25rem;
427
+ margin-block-start: -0.5rem;
428
+ margin-block-end: -0.25rem;
429
+ margin-inline: -0.25rem;
430
+ `;
431
+ });
432
+ StyledDocumentTabList.defaultProps = defaultThemeProp;
433
+ export const StyledDocumentTabLabel = styled.span `
434
+ overflow: hidden;
435
+ text-overflow: ellipsis;
436
+ min-width: 0;
437
+ `;
438
+ StyledDocumentTabLabel.defaultProps = defaultThemeProp;
439
+ export const StyledDocumentTabClose = styled(Button)(({ theme: { base: { palette, 'border-radius': borderRadius } } }) => {
440
+ return css `
441
+ padding: 0 !important;
442
+ width: 1.5rem !important;
443
+ height: 1.5rem !important;
444
+ min-width: 0 !important;
445
+ min-height: 0 !important;
446
+ border-radius: ${borderRadius};
447
+ opacity: 1;
448
+
449
+ /* Override Button's built-in icon-hover ::before (a currentColor overlay
450
+ positioned at negative inset around the whole 24×24 box) with a
451
+ smaller inset chrome so hover doesn't touch the tab's block edges.
452
+ The 24×24 button remains the pointer target for WCAG 2.5.8. */
453
+ &:hover::before,
454
+ &:active::before {
455
+ top: 0.1875rem !important;
456
+ right: 0.1875rem !important;
457
+ bottom: 0.1875rem !important;
458
+ left: 0.1875rem !important;
459
+ background-color: ${palette['border-line']} !important;
460
+ opacity: 1 !important;
461
+ z-index: -1 !important;
462
+ }
463
+
464
+ ${StyledIcon} {
465
+ font-size: 0.625rem;
466
+ width: 0.625rem;
467
+ height: 0.625rem;
468
+ opacity: 1;
469
+ }
470
+
471
+ svg {
472
+ width: 0.625rem !important;
473
+ height: 0.625rem !important;
474
+ }
475
+ `;
476
+ });
477
+ StyledDocumentTabClose.defaultProps = defaultThemeProp;
478
+ export const StyledOverflowTabMenu = styled(MenuButton)(({ theme }) => {
479
+ const variant = getVariant(theme);
480
+ return css `
481
+ flex-shrink: 0;
482
+
483
+ /* Folder/anchored containers use align-items: flex-end (tabs sit at
484
+ the container bottom); align the caret button to the top edge of
485
+ that same content area so it lines up with the tab tops rather
486
+ than centering in the taller container box. */
487
+ align-self: ${variant === 'folder' || variant === 'anchored' ? 'flex-start' : 'center'};
488
+ `;
489
+ });
490
+ StyledOverflowTabMenu.defaultProps = defaultThemeProp;
491
+ /**
492
+ * Inner content wrapper for each tab. Hosts the pseudo-element flares for
493
+ * the folder variant's active tab. Because this element is inside the button
494
+ * (which we can't force overflow: visible on without breaking other things),
495
+ * the flares live here and can escape their box without fighting the button's
496
+ * inherited overflow behavior.
497
+ */
498
+ export const StyledDocumentTabAnchor = styled.span(({ theme }) => {
499
+ const { spacing } = theme.base;
500
+ return css `
501
+ display: flex;
502
+ align-items: center;
503
+ gap: calc(0.5 * ${spacing});
504
+ position: relative;
505
+ overflow: visible;
506
+
507
+ /* Fill the button so pseudo-flares sit at the button's true edges. */
508
+ align-self: stretch;
509
+ flex: 1;
510
+
511
+ /* Allow the anchor to shrink below its intrinsic content width so the
512
+ label inside can ellipsize when the button hits its max-width cap. */
513
+ min-width: 0;
514
+ `;
515
+ });
516
+ StyledDocumentTabAnchor.defaultProps = defaultThemeProp;
517
+ /**
518
+ * Wrapper for AppShell main content when the tab strip is visible. Certain
519
+ * variants (anchored, folder) require a themed content panel below the tab
520
+ * strip so the active tab can "attach" to it. For other variants this is a
521
+ * transparent pass-through so surrounding layout is unchanged.
522
+ */
523
+ export const StyledDocumentTabPanel = styled.div(({ theme }) => {
524
+ const { palette, spacing, 'border-radius': borderRadius } = theme.base;
525
+ const variant = getVariant(theme);
526
+ switch (variant) {
527
+ case 'anchored':
528
+ return css `
529
+ display: flex;
530
+ flex-direction: column;
531
+ flex: 1;
532
+ min-height: 0;
533
+ background-color: ${palette['primary-background']};
534
+ border-block-start: calc(0.375 * ${spacing}) solid ${palette.interactive};
535
+ border-radius: ${borderRadius} ${borderRadius} 0 0;
536
+ margin-inline: ${spacing};
537
+ `;
538
+ case 'folder':
539
+ return css `
540
+ display: flex;
541
+ flex-direction: column;
542
+ flex: 1;
543
+ min-height: 0;
544
+ background-color: ${palette['primary-background']};
545
+
546
+ /* Top corners are flat so the tab strip welds cleanly into the panel;
547
+ a rounded top-right exposes a curved sliver of the container
548
+ background above the scrollbar when tabs overflow. */
549
+ border-radius: 0;
550
+ margin-block-end: ${spacing};
551
+ `;
552
+ case 'underline':
553
+ case 'segmented':
554
+ default:
555
+ return css `
556
+ display: flex;
557
+ flex-direction: column;
558
+ flex: 1;
559
+ min-height: 0;
560
+ `;
561
+ }
562
+ });
563
+ StyledDocumentTabPanel.defaultProps = defaultThemeProp;
564
+ //# sourceMappingURL=DocumentTabs.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DocumentTabs.styles.js","sourceRoot":"","sources":["../../../src/components/AppShell/DocumentTabs.styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAqB,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAIhD,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,KAAmB,EAAuB,EAAE;IACjF,MAAM,KAAK,GAAG,KAAK,CAAC,UAAU,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1E,OAAO,KAAK,KAAK,WAAW,IAAI,KAAK,KAAK,UAAU,IAAI,KAAK,KAAK,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC;AACnG,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG,sBAAsB,CAAC;AAE1C,MAAM,aAAa,GAAG,OAAO,CAAC;AAE9B,MAAM,UAAU,GAAG,CAAC,KAAmB,EAAU,EAAE,CACjD,KAAK,CAA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from 'styled-components';\nimport { useContext } from 'react';\n\nimport { defaultThemeProp } from '../../theme';\nimport { StyledIcon } from '../Icon';\nimport Button from '../Button';\nimport MenuButton from '../MenuButton';\nimport Flex from '../Flex';\n\nimport AppShellContext from './AppShellContext';\n\nexport type DocumentTabsVariant = 'underline' | 'segmented' | 'anchored' | 'folder';\n\nexport const getDocumentTabsVariant = (theme: DefaultTheme): DocumentTabsVariant => {\n const value = theme.components?.['app-shell']?.['document-tabs']?.variant;\n return value === 'segmented' || value === 'anchored' || value === 'underline' ? value : 'folder';\n};\n\nconst getVariant = getDocumentTabsVariant;\n\nconst MAX_TAB_WIDTH = '12rem';\n\nconst getTabFill = (theme: DefaultTheme): string =>\n theme.components?.['app-shell']?.['document-tabs']?.fill ?? theme.base.palette['app-background'];\n\n/**\n * Each variant returns the CSS slices that customize the tab strip.\n * All values come from theme tokens (spacing, palette, radius, shadow) —\n * no hard-coded pixel values from any specific design frame.\n */\n\n/**\n * Shared spacing tokens for tabs. Kept in one place so nudging padding /\n * gap / max-width once affects all variants.\n */\nconst tabTokens = (theme: DefaultTheme) => {\n const { spacing } = theme.base;\n return {\n tabPaddingInline: `calc(1.5 * ${spacing})`\n };\n};\n\n/**\n * CSS slices shared by every variant. Individual variants layer their own\n * background, radius, padding, and active-state visuals on top.\n */\nconst baseVariantStyles = (theme: DefaultTheme) => {\n const { palette, 'border-radius': borderRadius } = theme.base;\n const { tabPaddingInline } = tabTokens(theme);\n return {\n container: css`\n background-color: ${palette['secondary-background']};\n `,\n tab: css`\n padding-inline: ${tabPaddingInline};\n\n &:hover {\n background-color: ${palette['primary-background']};\n }\n\n /* Outset outline around the tab body. z-index lifts the tab above the\n panel below so the outline is not clipped where they overlap. */\n &:focus-visible {\n outline: 0.125rem solid ${palette.interactive};\n outline-offset: 0.0625rem;\n box-shadow: none;\n position: relative;\n z-index: 3;\n }\n\n /* Active folder tab has top-only rounded corners and scoop pseudos\n that weld it into the panel below. On focus, round all corners and\n hide the scoops so the tab reads as a standalone pill — matching\n the non-active tab focus shape. */\n &[aria-selected='true']:focus-visible {\n border-radius: ${borderRadius};\n }\n &[aria-selected='true']:focus-visible::before,\n &[aria-selected='true']:focus-visible::after {\n display: none;\n }\n `,\n activeIcon: css`\n ${StyledIcon} {\n color: ${palette['foreground-color']};\n opacity: 1;\n }\n `\n };\n};\n\n/**\n * Shared \"browser-tab\" shape used by anchored + folder variants.\n * The tab has a filled body that grows into the container's bottom edge on\n * active state, with two outward-curving scoop pseudos that visually flow\n * into the panel below.\n *\n * @param fill Background color for the active tab and its scoops.\n * @param onFill Text/icon color when the tab is active.\n * @param inactiveFill Background color for inactive tabs.\n * @param fontWeight Active tab font weight.\n */\nconst browserTabStyles = (\n theme: DefaultTheme,\n {\n fill,\n onFill,\n inactiveFill,\n fontWeight\n }: {\n fill: string;\n onFill: string;\n inactiveFill: string;\n fontWeight: number;\n }\n) => {\n const { palette, spacing, 'border-radius': borderRadius } = theme.base;\n const base = baseVariantStyles(theme);\n return {\n container: css`\n ${base.container}\n --tab-height: 2rem;\n align-items: flex-end;\n padding-block-start: calc(0.375 * ${spacing});\n padding-inline: ${spacing};\n gap: calc(0.5 * ${spacing});\n\n &[data-overflowing='true'] {\n padding-block-start: ${spacing};\n }\n\n /* Home is the leftmost tab and has no neighbor to weld into on its\n left side. Hide the ::before scoop so it doesn't curve into empty\n space against the nav. */\n [id='document-tab-home']::before {\n display: none;\n }\n `,\n tab: css`\n ${base.tab}\n height: calc(var(--tab-height) - 0.4375rem);\n margin-block-end: 0.3125rem;\n background-color: ${inactiveFill};\n color: ${palette['foreground-color']};\n opacity: 0.9;\n border-radius: ${borderRadius};\n\n &:hover,\n &:focus-visible {\n opacity: 1;\n }\n `,\n active: css`\n background-color: ${fill};\n color: ${onFill};\n opacity: 1;\n font-weight: ${fontWeight};\n height: calc(var(--tab-height) - 0.125rem);\n border-radius: ${borderRadius} ${borderRadius} 0 0;\n margin-block-end: 0;\n padding-block-end: 0.3125rem;\n position: relative;\n overflow: visible;\n z-index: 1;\n\n &::before,\n &::after {\n content: '';\n position: absolute;\n inset-block-end: 0;\n width: 1.125rem;\n height: 1.125rem;\n pointer-events: none;\n }\n\n &::before {\n inset-inline-start: -1.125rem;\n border-end-end-radius: 0.8125rem;\n box-shadow: 0.45rem 0.05rem 0 ${fill};\n }\n\n &::after {\n inset-inline-end: -1.125rem;\n border-end-start-radius: 0.8125rem;\n box-shadow: -0.45rem 0.05rem 0 ${fill};\n }\n\n ${StyledIcon} {\n color: ${onFill};\n opacity: 1;\n }\n\n &:hover {\n background-color: ${fill};\n }\n `\n };\n};\n\nconst variantStyles = (variant: DocumentTabsVariant, theme: DefaultTheme) => {\n const { palette, spacing } = theme.base;\n const base = baseVariantStyles(theme);\n\n switch (variant) {\n case 'segmented':\n return {\n container: css`\n ${base.container}\n padding-block: calc(0.125 * ${spacing});\n padding-inline: calc(0.75 * ${spacing});\n border-radius: calc(var(--tab-height) / 2);\n align-self: center;\n flex-grow: 0;\n `,\n tab: css`\n ${base.tab}\n border-radius: calc(var(--tab-height) / 2);\n `,\n active: css`\n background-color: ${palette['primary-background']};\n color: ${palette['foreground-color']};\n opacity: 1;\n font-weight: 500;\n border: 0.0625rem solid ${palette['border-line']};\n\n ${StyledIcon} {\n color: ${palette.interactive};\n opacity: 1;\n }\n\n &:hover {\n background-color: ${palette['primary-background']};\n }\n `\n };\n case 'anchored':\n return browserTabStyles(theme, {\n fill: palette.interactive,\n onFill: palette['primary-background'],\n inactiveFill: palette['primary-background'],\n fontWeight: 500\n });\n case 'folder': {\n // Folder tabs read as one flat surface — active and inactive share\n // the same fill; active state is signaled by the scoop pseudos welding\n // it into the panel below rather than by a distinct color.\n const tabFill = getTabFill(theme);\n return browserTabStyles(theme, {\n fill: tabFill,\n onFill: palette['foreground-color'],\n inactiveFill: tabFill,\n fontWeight: 600\n });\n }\n case 'underline':\n default:\n return {\n container: css`\n ${base.container}\n padding-block: calc(0.5 * ${spacing});\n border-block-end: 0.0625rem solid ${palette['border-line']};\n `,\n tab: css`\n ${base.tab}\n `,\n active: css`\n background-color: ${palette['primary-background']};\n color: ${palette['foreground-color']};\n opacity: 1;\n font-weight: 500;\n box-shadow: 0 calc(-0.125 * ${spacing}) 0 0 ${palette['foreground-color']} inset;\n\n ${base.activeIcon}\n\n &:hover {\n background-color: ${palette['primary-background']};\n }\n `\n };\n }\n};\n\nexport const documentTabsHeight = '2.25rem';\n\nexport const StyledDocumentTabsContainer = styled(Flex)(({ theme }) => {\n const { spacing } = theme.base;\n const variant = getVariant(theme);\n const { isMobileNav, isTopBar, startPanelOpen } = useContext(AppShellContext);\n return css`\n --tab-height: ${documentTabsHeight};\n position: sticky;\n top: calc(var(--appshell-top-offset, 0rem) - var(--document-tabs-height, 0rem));\n\n /* Sit above CaseView's own sticky wrappers (which use z-index: 1) and\n similar low-z content so case-content doesn't bleed through the tab\n strip background. */\n z-index: ${theme.base['z-index'].popover};\n align-items: stretch;\n gap: calc(0.25 * ${spacing});\n background-color: transparent;\n min-height: ${documentTabsHeight};\n overflow: visible;\n margin-inline-start: ${isMobileNav || (isTopBar && !startPanelOpen)\n ? 0\n : 'var(--appshell-horizontal-offset, 0)'};\n transition: margin-inline-start\n ${`${theme.base.animation.speed} ${theme.base.animation.timing.ease}`};\n\n ${variantStyles(variant, theme).container}\n `;\n});\n\nStyledDocumentTabsContainer.defaultProps = defaultThemeProp;\n\nexport const StyledDocumentTabButton = styled.button\n .attrs({ type: 'button' as const })\n .withConfig({ shouldForwardProp: prop => !['hasClose'].includes(prop) })<{ hasClose?: boolean }>(\n ({ hasClose, theme }) => {\n const { palette, spacing } = theme.base;\n const variant = getVariant(theme);\n return css`\n display: flex;\n align-items: center;\n justify-content: center;\n gap: calc(0.5 * ${spacing});\n box-sizing: border-box;\n height: 100%;\n padding-block: 0;\n border: none;\n background-color: transparent;\n color: ${palette['foreground-color']};\n opacity: 0.7;\n cursor: pointer;\n position: relative;\n max-width: ${MAX_TAB_WIDTH};\n font: inherit;\n text-align: start;\n text-decoration: none;\n transition:\n background-color 120ms ease,\n color 120ms ease,\n opacity 120ms ease;\n\n ${StyledIcon} {\n flex-shrink: 0;\n font-size: 1rem;\n opacity: 0.75;\n }\n\n &:hover {\n opacity: 1;\n\n ${StyledIcon} {\n opacity: 1;\n }\n }\n\n ${variantStyles(variant, theme).tab}\n\n /* Layered after the variant's shorthand padding-inline so the extra\n right-side room reserved for the close overlay wins the cascade. */\n ${hasClose &&\n css`\n padding-inline-end: calc(1.5rem + ${spacing});\n `}\n `;\n }\n);\n\nStyledDocumentTabButton.defaultProps = defaultThemeProp;\n\n/**\n * Absolute-positioned wrapper that overlays the close Button on the tab's\n * inline-end padding. Button has intrinsic min-width/min-height we can't\n * reliably override for tight overlays, so the wrapper handles geometry\n * (flex-centered vertically, full item height) and the Button lives\n * naturally inside.\n */\nexport const StyledDocumentTabCloseAnchor = styled.span(({ theme }) => {\n const { spacing } = theme.base;\n return css`\n position: absolute;\n inset-inline-end: calc(0.5 * ${spacing});\n inset-block: 0;\n display: flex;\n align-items: center;\n\n /* Sits above the focused tab button (which bumps to z-index: 3 for\n its outline) so the × stays visible while focused. */\n z-index: 4;\n `;\n});\n\nStyledDocumentTabCloseAnchor.defaultProps = defaultThemeProp;\n\nexport const StyledDocumentTabItem = styled.div.withConfig({\n shouldForwardProp: prop => !['isActive', 'isDropBefore', 'isDragging'].includes(prop)\n})<{\n isActive?: boolean;\n isDropBefore?: boolean;\n isDragging?: boolean;\n}>(({ isActive, isDropBefore, isDragging, theme }) => {\n const { palette } = theme.base;\n const variant = getVariant(theme);\n return css`\n flex-shrink: 0;\n white-space: nowrap;\n position: relative;\n display: flex;\n align-items: stretch;\n opacity: ${isDragging ? 0.5 : 1};\n\n ${isDropBefore &&\n css`\n &::before {\n content: '';\n position: absolute;\n inset-block: 0.25rem;\n inset-inline-start: -0.0625rem;\n width: 0.125rem;\n background-color: ${palette.interactive};\n border-radius: 0.125rem;\n z-index: 2;\n }\n `}\n\n ${StyledDocumentTabButton} {\n ${isActive && variantStyles(variant, theme).active}\n }\n\n /* Folder/anchored variants size the row to the active tab (which is\n taller than inactive tabs, and adds padding-block-end on active),\n so the label's optical center sits ~0.3125rem above the row's\n geometric center. Mirror that inset on the close anchor so the ×\n stays optically aligned on every tab in these variants. */\n ${(variant === 'folder' || variant === 'anchored') &&\n css`\n & > ${StyledDocumentTabCloseAnchor} {\n inset-block-end: 0.3125rem;\n }\n `}\n `;\n});\n\nStyledDocumentTabItem.defaultProps = defaultThemeProp;\n\nexport const StyledDocumentTabList = styled.div(({ theme }) => {\n const { spacing } = theme.base;\n const variant = getVariant(theme);\n const gap =\n variant === 'segmented' || variant === 'anchored' || variant === 'folder'\n ? `calc(1.5 * ${spacing})`\n : `calc(0.5 * ${spacing})`;\n return css`\n position: relative;\n display: flex;\n align-items: stretch;\n flex-grow: 1;\n min-width: 0;\n gap: ${gap};\n overflow-x: auto;\n overflow-y: hidden;\n margin: 0;\n\n /* Padding + negative margin gives the focused-tab pill outline (which\n extends outside the tab body on all sides) room to render inside the\n scroll clip. Negative margins cancel the padding so surrounding\n layout stays put. */\n padding-block-start: 0.5rem;\n padding-block-end: 0.25rem;\n padding-inline: 0.25rem;\n margin-block-start: -0.5rem;\n margin-block-end: -0.25rem;\n margin-inline: -0.25rem;\n `;\n});\n\nStyledDocumentTabList.defaultProps = defaultThemeProp;\n\nexport const StyledDocumentTabLabel = styled.span`\n overflow: hidden;\n text-overflow: ellipsis;\n min-width: 0;\n`;\n\nStyledDocumentTabLabel.defaultProps = defaultThemeProp;\n\nexport const StyledDocumentTabClose = styled(Button)(({\n theme: {\n base: { palette, 'border-radius': borderRadius }\n }\n}) => {\n return css`\n padding: 0 !important;\n width: 1.5rem !important;\n height: 1.5rem !important;\n min-width: 0 !important;\n min-height: 0 !important;\n border-radius: ${borderRadius};\n opacity: 1;\n\n /* Override Button's built-in icon-hover ::before (a currentColor overlay\n positioned at negative inset around the whole 24×24 box) with a\n smaller inset chrome so hover doesn't touch the tab's block edges.\n The 24×24 button remains the pointer target for WCAG 2.5.8. */\n &:hover::before,\n &:active::before {\n top: 0.1875rem !important;\n right: 0.1875rem !important;\n bottom: 0.1875rem !important;\n left: 0.1875rem !important;\n background-color: ${palette['border-line']} !important;\n opacity: 1 !important;\n z-index: -1 !important;\n }\n\n ${StyledIcon} {\n font-size: 0.625rem;\n width: 0.625rem;\n height: 0.625rem;\n opacity: 1;\n }\n\n svg {\n width: 0.625rem !important;\n height: 0.625rem !important;\n }\n `;\n});\n\nStyledDocumentTabClose.defaultProps = defaultThemeProp;\n\nexport const StyledOverflowTabMenu = styled(MenuButton)(({ theme }) => {\n const variant = getVariant(theme);\n return css`\n flex-shrink: 0;\n\n /* Folder/anchored containers use align-items: flex-end (tabs sit at\n the container bottom); align the caret button to the top edge of\n that same content area so it lines up with the tab tops rather\n than centering in the taller container box. */\n align-self: ${variant === 'folder' || variant === 'anchored' ? 'flex-start' : 'center'};\n `;\n});\n\nStyledOverflowTabMenu.defaultProps = defaultThemeProp;\n\n/**\n * Inner content wrapper for each tab. Hosts the pseudo-element flares for\n * the folder variant's active tab. Because this element is inside the button\n * (which we can't force overflow: visible on without breaking other things),\n * the flares live here and can escape their box without fighting the button's\n * inherited overflow behavior.\n */\nexport const StyledDocumentTabAnchor = styled.span(({ theme }) => {\n const { spacing } = theme.base;\n return css`\n display: flex;\n align-items: center;\n gap: calc(0.5 * ${spacing});\n position: relative;\n overflow: visible;\n\n /* Fill the button so pseudo-flares sit at the button's true edges. */\n align-self: stretch;\n flex: 1;\n\n /* Allow the anchor to shrink below its intrinsic content width so the\n label inside can ellipsize when the button hits its max-width cap. */\n min-width: 0;\n `;\n});\n\nStyledDocumentTabAnchor.defaultProps = defaultThemeProp;\n\n/**\n * Wrapper for AppShell main content when the tab strip is visible. Certain\n * variants (anchored, folder) require a themed content panel below the tab\n * strip so the active tab can \"attach\" to it. For other variants this is a\n * transparent pass-through so surrounding layout is unchanged.\n */\nexport const StyledDocumentTabPanel = styled.div(({ theme }) => {\n const { palette, spacing, 'border-radius': borderRadius } = theme.base;\n const variant = getVariant(theme);\n\n switch (variant) {\n case 'anchored':\n return css`\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0;\n background-color: ${palette['primary-background']};\n border-block-start: calc(0.375 * ${spacing}) solid ${palette.interactive};\n border-radius: ${borderRadius} ${borderRadius} 0 0;\n margin-inline: ${spacing};\n `;\n case 'folder':\n return css`\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0;\n background-color: ${palette['primary-background']};\n\n /* Top corners are flat so the tab strip welds cleanly into the panel;\n a rounded top-right exposes a curved sliver of the container\n background above the scrollbar when tabs overflow. */\n border-radius: 0;\n margin-block-end: ${spacing};\n `;\n case 'underline':\n case 'segmented':\n default:\n return css`\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0;\n `;\n }\n});\n\nStyledDocumentTabPanel.defaultProps = defaultThemeProp;\n"]}
@@ -6,8 +6,7 @@ interface DrawerViewProps {
6
6
  onDrawerClose?: () => void;
7
7
  drawerOpen: boolean;
8
8
  setDrawerOpen: (open: boolean) => void;
9
- topOffset: string;
10
9
  }
11
- declare const _default: ({ content, header, onDrawerOpen, onDrawerClose, drawerOpen, setDrawerOpen, topOffset }: DrawerViewProps) => import("react/jsx-runtime").JSX.Element;
10
+ declare const _default: ({ content, header, onDrawerOpen, onDrawerClose, drawerOpen, setDrawerOpen }: DrawerViewProps) => import("react/jsx-runtime").JSX.Element;
12
11
  export default _default;
13
12
  //# sourceMappingURL=Drawer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/components/AppShell/Drawer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAiCvC,UAAU,eAAe;IACvB,OAAO,EAAE,SAAS,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,SAAS,EAAE,MAAM,CAAC;CACnB;yBAEe,wFAQb,eAAe;AARlB,wBAyGE"}
1
+ {"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/components/AppShell/Drawer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAgCvC,UAAU,eAAe;IACvB,OAAO,EAAE,SAAS,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACxC;yBAEe,6EAOb,eAAe;AAPlB,wBAmGE"}
@@ -11,10 +11,10 @@ import { isSolidColor } from '../../styles';
11
11
  import Button from '../Button';
12
12
  import Configuration from '../Configuration';
13
13
  import AppShellContext from './AppShellContext';
14
- import { StyledDrawerWrapper, StyledDrawerHeading, StyledDrawerListContainer, StyledTopNavDrawerOffset } from './Drawer.styles';
14
+ import { StyledDrawerWrapper, StyledDrawerHeading, StyledDrawerListContainer } from './Drawer.styles';
15
15
  import { navContrastColors } from './style-utils';
16
16
  registerIcon(arrowLeftIcon);
17
- export default ({ content, header, onDrawerOpen, onDrawerClose, drawerOpen, setDrawerOpen, topOffset }) => {
17
+ export default ({ content, header, onDrawerOpen, onDrawerClose, drawerOpen, setDrawerOpen }) => {
18
18
  const t = useI18n();
19
19
  const theme = useTheme();
20
20
  const { focusedImperatively } = useContext(AppShellContext);
@@ -44,7 +44,7 @@ export default ({ content, header, onDrawerOpen, onDrawerClose, drawerOpen, setD
44
44
  useLayoutEffect(() => {
45
45
  returnFocusRef.current = getActiveElement() ?? undefined;
46
46
  }, []);
47
- const drawerContent = (_jsxs(Drawer, { role: 'dialog', "aria-labelledby": headerId, as: StyledDrawerWrapper, position: 'fixed', topOffset: topOffset, placement: start, open: drawerOpen, nullWhenClosed: true, onAfterOpen: () => {
47
+ const drawerContent = (_jsxs(Drawer, { role: 'dialog', "aria-labelledby": headerId, as: StyledDrawerWrapper, position: 'fixed', placement: start, open: drawerOpen, nullWhenClosed: true, onAfterOpen: () => {
48
48
  if (backButtonRef.current && !drawerRef.current?.contains(getActiveElement())) {
49
49
  focusedImperatively.current = true;
50
50
  backButtonRef.current.focus();
@@ -54,6 +54,6 @@ export default ({ content, header, onDrawerOpen, onDrawerClose, drawerOpen, setD
54
54
  onDrawerClose?.();
55
55
  returnFocusRef.current?.focus();
56
56
  }, onOuterClick: () => setDrawerOpen(false), ref: drawerRef, children: [_jsxs(Flex, { as: StyledDrawerHeading, role: 'none', container: { alignItems: 'center' }, children: [_jsx(Button, { ref: backButtonRef, icon: true, variant: 'simple', onClick: () => setDrawerOpen(false), label: t('close'), "aria-label": t('close_noun', [header]), children: _jsx(Icon, { name: `arrow-${start}` }) }), _jsx(Text, { variant: 'h2', id: headerId, children: header })] }), _jsx(Flex, { as: StyledDrawerListContainer, container: { direction: 'column' }, "aria-labelledby": headerId, children: content })] }));
57
- return (_jsx(Configuration, { theme: navTheme, portalTarget: drawerEl ?? undefined, children: topOffset ? (_jsx(StyledTopNavDrawerOffset, { "$topOffset": topOffset, children: drawerContent })) : (drawerContent) }));
57
+ return (_jsx(Configuration, { theme: navTheme, portalTarget: drawerEl ?? undefined, children: drawerContent }));
58
58
  };
59
59
  //# sourceMappingURL=Drawer.js.map