@pega/cosmos-react-core 3.0.0-dev.15.0 → 3.0.0-dev.17.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 (475) hide show
  1. package/lib/components/AppShell/AppHeader.d.ts.map +1 -1
  2. package/lib/components/AppShell/AppHeader.js +4 -6
  3. package/lib/components/AppShell/AppHeader.js.map +1 -1
  4. package/lib/components/AppShell/AppHeader.styles.d.ts +16 -0
  5. package/lib/components/AppShell/AppHeader.styles.d.ts.map +1 -0
  6. package/lib/components/AppShell/AppHeader.styles.js +155 -0
  7. package/lib/components/AppShell/AppHeader.styles.js.map +1 -0
  8. package/lib/components/AppShell/AppShell.d.ts.map +1 -1
  9. package/lib/components/AppShell/AppShell.js +44 -157
  10. package/lib/components/AppShell/AppShell.js.map +1 -1
  11. package/lib/components/AppShell/AppShell.styles.d.ts +7 -51
  12. package/lib/components/AppShell/AppShell.styles.d.ts.map +1 -1
  13. package/lib/components/AppShell/AppShell.styles.js +44 -535
  14. package/lib/components/AppShell/AppShell.styles.js.map +1 -1
  15. package/lib/components/AppShell/AppShell.types.d.ts +16 -5
  16. package/lib/components/AppShell/AppShell.types.d.ts.map +1 -1
  17. package/lib/components/AppShell/AppShell.types.js.map +1 -1
  18. package/lib/components/AppShell/AppShellContext.d.ts +2 -0
  19. package/lib/components/AppShell/AppShellContext.d.ts.map +1 -1
  20. package/lib/components/AppShell/AppShellContext.js +2 -0
  21. package/lib/components/AppShell/AppShellContext.js.map +1 -1
  22. package/lib/components/AppShell/AppShellList.js +3 -1
  23. package/lib/components/AppShell/AppShellList.js.map +1 -1
  24. package/lib/components/AppShell/AppShellList.styles.d.ts +19 -0
  25. package/lib/components/AppShell/AppShellList.styles.d.ts.map +1 -0
  26. package/lib/components/AppShell/AppShellList.styles.js +141 -0
  27. package/lib/components/AppShell/AppShellList.styles.js.map +1 -0
  28. package/lib/components/AppShell/AppShellSearch.d.ts +10 -0
  29. package/lib/components/AppShell/AppShellSearch.d.ts.map +1 -0
  30. package/lib/components/AppShell/AppShellSearch.js +32 -0
  31. package/lib/components/AppShell/AppShellSearch.js.map +1 -0
  32. package/lib/components/AppShell/AppShellSearch.styles.d.ts +8 -0
  33. package/lib/components/AppShell/AppShellSearch.styles.d.ts.map +1 -0
  34. package/lib/components/AppShell/AppShellSearch.styles.js +190 -0
  35. package/lib/components/AppShell/AppShellSearch.styles.js.map +1 -0
  36. package/lib/components/AppShell/Drawer.js +2 -2
  37. package/lib/components/AppShell/Drawer.js.map +1 -1
  38. package/lib/components/AppShell/Drawer.styles.d.ts +15 -0
  39. package/lib/components/AppShell/Drawer.styles.d.ts.map +1 -0
  40. package/lib/components/AppShell/Drawer.styles.js +153 -0
  41. package/lib/components/AppShell/Drawer.styles.js.map +1 -0
  42. package/lib/components/AppShell/NavigationList.d.ts +5 -0
  43. package/lib/components/AppShell/NavigationList.d.ts.map +1 -0
  44. package/lib/components/AppShell/NavigationList.js +123 -0
  45. package/lib/components/AppShell/NavigationList.js.map +1 -0
  46. package/lib/components/AppShell/NavigationListItemWrapper.d.ts +5 -0
  47. package/lib/components/AppShell/NavigationListItemWrapper.d.ts.map +1 -0
  48. package/lib/components/AppShell/NavigationListItemWrapper.js +109 -0
  49. package/lib/components/AppShell/NavigationListItemWrapper.js.map +1 -0
  50. package/lib/components/AppShell/Operator.js +4 -4
  51. package/lib/components/AppShell/Operator.js.map +1 -1
  52. package/lib/components/Banner/Banner.d.ts.map +1 -1
  53. package/lib/components/Banner/Banner.js +2 -0
  54. package/lib/components/Banner/Banner.js.map +1 -1
  55. package/lib/components/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  56. package/lib/components/Breadcrumbs/Breadcrumbs.js +10 -3
  57. package/lib/components/Breadcrumbs/Breadcrumbs.js.map +1 -1
  58. package/lib/components/ComboBox/ComboBox.d.ts.map +1 -1
  59. package/lib/components/ComboBox/ComboBox.js +11 -2
  60. package/lib/components/ComboBox/ComboBox.js.map +1 -1
  61. package/lib/components/ComboBox/ComboBox.styles.d.ts +3 -1
  62. package/lib/components/ComboBox/ComboBox.styles.d.ts.map +1 -1
  63. package/lib/components/ComboBox/ComboBox.types.d.ts +2 -0
  64. package/lib/components/ComboBox/ComboBox.types.d.ts.map +1 -1
  65. package/lib/components/ComboBox/ComboBox.types.js.map +1 -1
  66. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.d.ts.map +1 -1
  67. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.js +2 -2
  68. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.js.map +1 -1
  69. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.types.d.ts +2 -0
  70. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.types.d.ts.map +1 -1
  71. package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.types.js.map +1 -1
  72. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.d.ts.map +1 -1
  73. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.js +2 -2
  74. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.js.map +1 -1
  75. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.types.d.ts +2 -0
  76. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.types.d.ts.map +1 -1
  77. package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.types.js.map +1 -1
  78. package/lib/components/CompositeInput/CompositeInput.d.ts.map +1 -1
  79. package/lib/components/CompositeInput/CompositeInput.js +4 -1
  80. package/lib/components/CompositeInput/CompositeInput.js.map +1 -1
  81. package/lib/components/Currency/CurrencyInput.d.ts.map +1 -1
  82. package/lib/components/Currency/CurrencyInput.js +33 -6
  83. package/lib/components/Currency/CurrencyInput.js.map +1 -1
  84. package/lib/components/Currency/utils.js +1 -1
  85. package/lib/components/Currency/utils.js.map +1 -1
  86. package/lib/components/DateTime/DateTime.types.d.ts +2 -0
  87. package/lib/components/DateTime/DateTime.types.d.ts.map +1 -1
  88. package/lib/components/DateTime/DateTime.types.js.map +1 -1
  89. package/lib/components/DateTime/Input/DateInput.d.ts.map +1 -1
  90. package/lib/components/DateTime/Input/DateInput.js +13 -4
  91. package/lib/components/DateTime/Input/DateInput.js.map +1 -1
  92. package/lib/components/DateTime/Input/DateTimeInput.d.ts.map +1 -1
  93. package/lib/components/DateTime/Input/DateTimeInput.js +17 -4
  94. package/lib/components/DateTime/Input/DateTimeInput.js.map +1 -1
  95. package/lib/components/DateTime/Input/WeekInput.js +1 -1
  96. package/lib/components/DateTime/Input/WeekInput.js.map +1 -1
  97. package/lib/components/DateTime/Picker/Calendar.d.ts.map +1 -1
  98. package/lib/components/DateTime/Picker/Calendar.js +2 -2
  99. package/lib/components/DateTime/Picker/Calendar.js.map +1 -1
  100. package/lib/components/DateTime/Picker/Calendar.styles.js +2 -2
  101. package/lib/components/DateTime/Picker/Calendar.styles.js.map +1 -1
  102. package/lib/components/DateTime/Picker/TimePicker.d.ts.map +1 -1
  103. package/lib/components/DateTime/Picker/TimePicker.js +10 -5
  104. package/lib/components/DateTime/Picker/TimePicker.js.map +1 -1
  105. package/lib/components/Dialog/Dialog.d.ts +30 -0
  106. package/lib/components/Dialog/Dialog.d.ts.map +1 -0
  107. package/lib/components/Dialog/Dialog.js +148 -0
  108. package/lib/components/Dialog/Dialog.js.map +1 -0
  109. package/lib/components/Dialog/index.d.ts +3 -0
  110. package/lib/components/Dialog/index.d.ts.map +1 -0
  111. package/lib/components/Dialog/index.js +3 -0
  112. package/lib/components/Dialog/index.js.map +1 -0
  113. package/lib/components/ExpandCollapse/ExpandCollapse.d.ts.map +1 -1
  114. package/lib/components/ExpandCollapse/ExpandCollapse.js +1 -1
  115. package/lib/components/ExpandCollapse/ExpandCollapse.js.map +1 -1
  116. package/lib/components/FieldGroup/FieldGroup.d.ts.map +1 -1
  117. package/lib/components/FieldGroup/FieldGroup.js +28 -26
  118. package/lib/components/FieldGroup/FieldGroup.js.map +1 -1
  119. package/lib/components/FormControl/FormControl.d.ts +6 -2
  120. package/lib/components/FormControl/FormControl.d.ts.map +1 -1
  121. package/lib/components/FormControl/FormControl.js +60 -35
  122. package/lib/components/FormControl/FormControl.js.map +1 -1
  123. package/lib/components/FormField/FormField.d.ts.map +1 -1
  124. package/lib/components/FormField/FormField.js +65 -5
  125. package/lib/components/FormField/FormField.js.map +1 -1
  126. package/lib/components/Icon/iconNames.d.ts +1 -1
  127. package/lib/components/Icon/iconNames.d.ts.map +1 -1
  128. package/lib/components/Icon/iconNames.js +2 -0
  129. package/lib/components/Icon/iconNames.js.map +1 -1
  130. package/lib/components/Icon/icons/ai-assist.icon.js +1 -1
  131. package/lib/components/Icon/icons/ai-assist.icon.js.map +1 -1
  132. package/lib/components/Icon/icons/align-center.icon.js +1 -1
  133. package/lib/components/Icon/icons/align-center.icon.js.map +1 -1
  134. package/lib/components/Icon/icons/align-left.icon.js +1 -1
  135. package/lib/components/Icon/icons/align-left.icon.js.map +1 -1
  136. package/lib/components/Icon/icons/align-right.icon.js +1 -1
  137. package/lib/components/Icon/icons/align-right.icon.js.map +1 -1
  138. package/lib/components/Icon/icons/arrow-left.icon.js +1 -1
  139. package/lib/components/Icon/icons/arrow-left.icon.js.map +1 -1
  140. package/lib/components/Icon/icons/arrow-micro-down.icon.js +1 -1
  141. package/lib/components/Icon/icons/arrow-micro-down.icon.js.map +1 -1
  142. package/lib/components/Icon/icons/arrow-micro-left.icon.js +1 -1
  143. package/lib/components/Icon/icons/arrow-micro-left.icon.js.map +1 -1
  144. package/lib/components/Icon/icons/arrow-micro-right.icon.js +1 -1
  145. package/lib/components/Icon/icons/arrow-micro-right.icon.js.map +1 -1
  146. package/lib/components/Icon/icons/arrow-micro-up-down.icon.js +1 -1
  147. package/lib/components/Icon/icons/arrow-micro-up-down.icon.js.map +1 -1
  148. package/lib/components/Icon/icons/arrow-micro-up.icon.js +1 -1
  149. package/lib/components/Icon/icons/arrow-micro-up.icon.js.map +1 -1
  150. package/lib/components/Icon/icons/arrow-up-down.icon.js +1 -1
  151. package/lib/components/Icon/icons/arrow-up-down.icon.js.map +1 -1
  152. package/lib/components/Icon/icons/bars.icon.js +1 -1
  153. package/lib/components/Icon/icons/bars.icon.js.map +1 -1
  154. package/lib/components/Icon/icons/bell-solid.icon.js +1 -1
  155. package/lib/components/Icon/icons/bell-solid.icon.js.map +1 -1
  156. package/lib/components/Icon/icons/bell.icon.js +1 -1
  157. package/lib/components/Icon/icons/bell.icon.js.map +1 -1
  158. package/lib/components/Icon/icons/box-4-solid.icon.js +1 -1
  159. package/lib/components/Icon/icons/box-4-solid.icon.js.map +1 -1
  160. package/lib/components/Icon/icons/box-4.icon.js +1 -1
  161. package/lib/components/Icon/icons/box-4.icon.js.map +1 -1
  162. package/lib/components/Icon/icons/calendar-range.icon.js +1 -1
  163. package/lib/components/Icon/icons/calendar-range.icon.js.map +1 -1
  164. package/lib/components/Icon/icons/calendar-solid.icon.js +1 -1
  165. package/lib/components/Icon/icons/calendar-solid.icon.js.map +1 -1
  166. package/lib/components/Icon/icons/caret-down.icon.js +1 -1
  167. package/lib/components/Icon/icons/caret-down.icon.js.map +1 -1
  168. package/lib/components/Icon/icons/caret-left.icon.js +1 -1
  169. package/lib/components/Icon/icons/caret-left.icon.js.map +1 -1
  170. package/lib/components/Icon/icons/caret-right.icon.js +1 -1
  171. package/lib/components/Icon/icons/caret-right.icon.js.map +1 -1
  172. package/lib/components/Icon/icons/caret-up.icon.js +1 -1
  173. package/lib/components/Icon/icons/caret-up.icon.js.map +1 -1
  174. package/lib/components/Icon/icons/carrot.icon.d.ts +4 -0
  175. package/lib/components/Icon/icons/carrot.icon.d.ts.map +1 -0
  176. package/lib/components/Icon/icons/carrot.icon.js +6 -0
  177. package/lib/components/Icon/icons/carrot.icon.js.map +1 -0
  178. package/lib/components/Icon/icons/case-solid.icon.js +1 -1
  179. package/lib/components/Icon/icons/case-solid.icon.js.map +1 -1
  180. package/lib/components/Icon/icons/case.icon.js +1 -1
  181. package/lib/components/Icon/icons/case.icon.js.map +1 -1
  182. package/lib/components/Icon/icons/chain.icon.js +1 -1
  183. package/lib/components/Icon/icons/chain.icon.js.map +1 -1
  184. package/lib/components/Icon/icons/chat-solid.icon.js +1 -1
  185. package/lib/components/Icon/icons/chat-solid.icon.js.map +1 -1
  186. package/lib/components/Icon/icons/chat.icon.js +1 -1
  187. package/lib/components/Icon/icons/chat.icon.js.map +1 -1
  188. package/lib/components/Icon/icons/check.icon.js +1 -1
  189. package/lib/components/Icon/icons/check.icon.js.map +1 -1
  190. package/lib/components/Icon/icons/clipboard-plus-solid.icon.js +1 -1
  191. package/lib/components/Icon/icons/clipboard-plus-solid.icon.js.map +1 -1
  192. package/lib/components/Icon/icons/clipboard-plus.icon.js +1 -1
  193. package/lib/components/Icon/icons/clipboard-plus.icon.js.map +1 -1
  194. package/lib/components/Icon/icons/clock-solid.icon.js +1 -1
  195. package/lib/components/Icon/icons/clock-solid.icon.js.map +1 -1
  196. package/lib/components/Icon/icons/clock.icon.js +1 -1
  197. package/lib/components/Icon/icons/clock.icon.js.map +1 -1
  198. package/lib/components/Icon/icons/code.icon.js +1 -1
  199. package/lib/components/Icon/icons/code.icon.js.map +1 -1
  200. package/lib/components/Icon/icons/dataviz-string-field.icon.d.ts +1 -1
  201. package/lib/components/Icon/icons/dataviz-string-field.icon.js +2 -2
  202. package/lib/components/Icon/icons/dataviz-string-field.icon.js.map +1 -1
  203. package/lib/components/Icon/icons/dock.icon.js +1 -1
  204. package/lib/components/Icon/icons/dock.icon.js.map +1 -1
  205. package/lib/components/Icon/icons/dot-9-solid.icon.js +1 -1
  206. package/lib/components/Icon/icons/dot-9-solid.icon.js.map +1 -1
  207. package/lib/components/Icon/icons/dot-9.icon.js +1 -1
  208. package/lib/components/Icon/icons/dot-9.icon.js.map +1 -1
  209. package/lib/components/Icon/icons/download.icon.js +1 -1
  210. package/lib/components/Icon/icons/download.icon.js.map +1 -1
  211. package/lib/components/Icon/icons/drag.icon.js +1 -1
  212. package/lib/components/Icon/icons/drag.icon.js.map +1 -1
  213. package/lib/components/Icon/icons/eye-off-solid.icon.js +1 -1
  214. package/lib/components/Icon/icons/eye-off-solid.icon.js.map +1 -1
  215. package/lib/components/Icon/icons/eye-off.icon.js +1 -1
  216. package/lib/components/Icon/icons/eye-off.icon.js.map +1 -1
  217. package/lib/components/Icon/icons/face-blank-solid.icon.d.ts.map +1 -1
  218. package/lib/components/Icon/icons/face-blank-solid.icon.js +1 -1
  219. package/lib/components/Icon/icons/face-blank-solid.icon.js.map +1 -1
  220. package/lib/components/Icon/icons/face-blank.icon.d.ts.map +1 -1
  221. package/lib/components/Icon/icons/face-blank.icon.js +1 -1
  222. package/lib/components/Icon/icons/face-blank.icon.js.map +1 -1
  223. package/lib/components/Icon/icons/face-happy-solid.icon.d.ts.map +1 -1
  224. package/lib/components/Icon/icons/face-happy-solid.icon.js +1 -1
  225. package/lib/components/Icon/icons/face-happy-solid.icon.js.map +1 -1
  226. package/lib/components/Icon/icons/face-happy.icon.d.ts.map +1 -1
  227. package/lib/components/Icon/icons/face-happy.icon.js +1 -1
  228. package/lib/components/Icon/icons/face-happy.icon.js.map +1 -1
  229. package/lib/components/Icon/icons/face-sad-solid.icon.d.ts.map +1 -1
  230. package/lib/components/Icon/icons/face-sad-solid.icon.js +1 -1
  231. package/lib/components/Icon/icons/face-sad-solid.icon.js.map +1 -1
  232. package/lib/components/Icon/icons/face-sad.icon.d.ts.map +1 -1
  233. package/lib/components/Icon/icons/face-sad.icon.js +1 -1
  234. package/lib/components/Icon/icons/face-sad.icon.js.map +1 -1
  235. package/lib/components/Icon/icons/fast-forward-solid.icon.js +1 -1
  236. package/lib/components/Icon/icons/fast-forward-solid.icon.js.map +1 -1
  237. package/lib/components/Icon/icons/filetype-text.icon.d.ts.map +1 -1
  238. package/lib/components/Icon/icons/filetype-text.icon.js +2 -2
  239. package/lib/components/Icon/icons/filetype-text.icon.js.map +1 -1
  240. package/lib/components/Icon/icons/filter-on.icon.js +1 -1
  241. package/lib/components/Icon/icons/filter-on.icon.js.map +1 -1
  242. package/lib/components/Icon/icons/filter.icon.js +1 -1
  243. package/lib/components/Icon/icons/filter.icon.js.map +1 -1
  244. package/lib/components/Icon/icons/folder-hierarchy-solid.icon.js +1 -1
  245. package/lib/components/Icon/icons/folder-hierarchy-solid.icon.js.map +1 -1
  246. package/lib/components/Icon/icons/folder-hierarchy.icon.js +1 -1
  247. package/lib/components/Icon/icons/folder-hierarchy.icon.js.map +1 -1
  248. package/lib/components/Icon/icons/forward-all-solid.icon.js +1 -1
  249. package/lib/components/Icon/icons/forward-all-solid.icon.js.map +1 -1
  250. package/lib/components/Icon/icons/forward-all.icon.js +1 -1
  251. package/lib/components/Icon/icons/forward-all.icon.js.map +1 -1
  252. package/lib/components/Icon/icons/forward-solid.icon.js +1 -1
  253. package/lib/components/Icon/icons/forward-solid.icon.js.map +1 -1
  254. package/lib/components/Icon/icons/forward.icon.js +1 -1
  255. package/lib/components/Icon/icons/forward.icon.js.map +1 -1
  256. package/lib/components/Icon/icons/galaxy.icon.d.ts.map +1 -1
  257. package/lib/components/Icon/icons/galaxy.icon.js +2 -2
  258. package/lib/components/Icon/icons/galaxy.icon.js.map +1 -1
  259. package/lib/components/Icon/icons/globe-solid.icon.js +1 -1
  260. package/lib/components/Icon/icons/globe-solid.icon.js.map +1 -1
  261. package/lib/components/Icon/icons/globe.icon.js +1 -1
  262. package/lib/components/Icon/icons/globe.icon.js.map +1 -1
  263. package/lib/components/Icon/icons/hand.icon.js +1 -1
  264. package/lib/components/Icon/icons/hand.icon.js.map +1 -1
  265. package/lib/components/Icon/icons/help-solid.icon.js +1 -1
  266. package/lib/components/Icon/icons/help-solid.icon.js.map +1 -1
  267. package/lib/components/Icon/icons/help.icon.js +1 -1
  268. package/lib/components/Icon/icons/help.icon.js.map +1 -1
  269. package/lib/components/Icon/icons/home-solid.icon.js +1 -1
  270. package/lib/components/Icon/icons/home-solid.icon.js.map +1 -1
  271. package/lib/components/Icon/icons/home.icon.js +1 -1
  272. package/lib/components/Icon/icons/home.icon.js.map +1 -1
  273. package/lib/components/Icon/icons/information-solid.icon.js +1 -1
  274. package/lib/components/Icon/icons/information-solid.icon.js.map +1 -1
  275. package/lib/components/Icon/icons/information.icon.js +1 -1
  276. package/lib/components/Icon/icons/information.icon.js.map +1 -1
  277. package/lib/components/Icon/icons/list-number.icon.d.ts.map +1 -1
  278. package/lib/components/Icon/icons/list-number.icon.js +2 -2
  279. package/lib/components/Icon/icons/list-number.icon.js.map +1 -1
  280. package/lib/components/Icon/icons/list.icon.d.ts.map +1 -1
  281. package/lib/components/Icon/icons/list.icon.js +2 -2
  282. package/lib/components/Icon/icons/list.icon.js.map +1 -1
  283. package/lib/components/Icon/icons/mail-solid.icon.js +1 -1
  284. package/lib/components/Icon/icons/mail-solid.icon.js.map +1 -1
  285. package/lib/components/Icon/icons/mail.icon.js +1 -1
  286. package/lib/components/Icon/icons/mail.icon.js.map +1 -1
  287. package/lib/components/Icon/icons/minus.icon.js +1 -1
  288. package/lib/components/Icon/icons/minus.icon.js.map +1 -1
  289. package/lib/components/Icon/icons/more.icon.js +1 -1
  290. package/lib/components/Icon/icons/more.icon.js.map +1 -1
  291. package/lib/components/Icon/icons/move-left-solid.icon.js +1 -1
  292. package/lib/components/Icon/icons/move-left-solid.icon.js.map +1 -1
  293. package/lib/components/Icon/icons/move-right-solid.icon.js +1 -1
  294. package/lib/components/Icon/icons/move-right-solid.icon.js.map +1 -1
  295. package/lib/components/Icon/icons/open.icon.js +1 -1
  296. package/lib/components/Icon/icons/open.icon.js.map +1 -1
  297. package/lib/components/Icon/icons/paper-clip.icon.js +1 -1
  298. package/lib/components/Icon/icons/paper-clip.icon.js.map +1 -1
  299. package/lib/components/Icon/icons/phone-solid.icon.js +1 -1
  300. package/lib/components/Icon/icons/phone-solid.icon.js.map +1 -1
  301. package/lib/components/Icon/icons/phone.icon.js +1 -1
  302. package/lib/components/Icon/icons/phone.icon.js.map +1 -1
  303. package/lib/components/Icon/icons/picture-solid.icon.js +1 -1
  304. package/lib/components/Icon/icons/picture-solid.icon.js.map +1 -1
  305. package/lib/components/Icon/icons/picture.icon.js +1 -1
  306. package/lib/components/Icon/icons/picture.icon.js.map +1 -1
  307. package/lib/components/Icon/icons/placeholder.icon.d.ts +4 -0
  308. package/lib/components/Icon/icons/placeholder.icon.d.ts.map +1 -0
  309. package/lib/components/Icon/icons/placeholder.icon.js +6 -0
  310. package/lib/components/Icon/icons/placeholder.icon.js.map +1 -0
  311. package/lib/components/Icon/icons/plus.icon.js +1 -1
  312. package/lib/components/Icon/icons/plus.icon.js.map +1 -1
  313. package/lib/components/Icon/icons/polaris-solid.icon.js +1 -1
  314. package/lib/components/Icon/icons/polaris-solid.icon.js.map +1 -1
  315. package/lib/components/Icon/icons/polaris.icon.js +1 -1
  316. package/lib/components/Icon/icons/polaris.icon.js.map +1 -1
  317. package/lib/components/Icon/icons/qr.icon.js +1 -1
  318. package/lib/components/Icon/icons/qr.icon.js.map +1 -1
  319. package/lib/components/Icon/icons/reply-all-solid.icon.js +1 -1
  320. package/lib/components/Icon/icons/reply-all-solid.icon.js.map +1 -1
  321. package/lib/components/Icon/icons/reply-all.icon.js +1 -1
  322. package/lib/components/Icon/icons/reply-all.icon.js.map +1 -1
  323. package/lib/components/Icon/icons/reply-solid.icon.js +1 -1
  324. package/lib/components/Icon/icons/reply-solid.icon.js.map +1 -1
  325. package/lib/components/Icon/icons/reply.icon.js +1 -1
  326. package/lib/components/Icon/icons/reply.icon.js.map +1 -1
  327. package/lib/components/Icon/icons/reset.icon.js +1 -1
  328. package/lib/components/Icon/icons/reset.icon.js.map +1 -1
  329. package/lib/components/Icon/icons/robot-happy-solid.icon.js +1 -1
  330. package/lib/components/Icon/icons/robot-happy-solid.icon.js.map +1 -1
  331. package/lib/components/Icon/icons/robot-happy.icon.js +1 -1
  332. package/lib/components/Icon/icons/robot-happy.icon.js.map +1 -1
  333. package/lib/components/Icon/icons/row-insert.icon.js +1 -1
  334. package/lib/components/Icon/icons/row-insert.icon.js.map +1 -1
  335. package/lib/components/Icon/icons/row.icon.js +1 -1
  336. package/lib/components/Icon/icons/row.icon.js.map +1 -1
  337. package/lib/components/Icon/icons/scale-down.icon.js +1 -1
  338. package/lib/components/Icon/icons/scale-down.icon.js.map +1 -1
  339. package/lib/components/Icon/icons/scale-up-solid.icon.js +1 -1
  340. package/lib/components/Icon/icons/scale-up-solid.icon.js.map +1 -1
  341. package/lib/components/Icon/icons/scale-up.icon.js +1 -1
  342. package/lib/components/Icon/icons/scale-up.icon.js.map +1 -1
  343. package/lib/components/Icon/icons/script.icon.d.ts +1 -1
  344. package/lib/components/Icon/icons/script.icon.d.ts.map +1 -1
  345. package/lib/components/Icon/icons/script.icon.js +3 -3
  346. package/lib/components/Icon/icons/script.icon.js.map +1 -1
  347. package/lib/components/Icon/icons/search-analytics-solid.icon.js +1 -1
  348. package/lib/components/Icon/icons/search-analytics-solid.icon.js.map +1 -1
  349. package/lib/components/Icon/icons/search-analytics.icon.js +1 -1
  350. package/lib/components/Icon/icons/search-analytics.icon.js.map +1 -1
  351. package/lib/components/Icon/icons/search.icon.js +1 -1
  352. package/lib/components/Icon/icons/search.icon.js.map +1 -1
  353. package/lib/components/Icon/icons/send-solid.icon.js +1 -1
  354. package/lib/components/Icon/icons/send-solid.icon.js.map +1 -1
  355. package/lib/components/Icon/icons/send.icon.js +1 -1
  356. package/lib/components/Icon/icons/send.icon.js.map +1 -1
  357. package/lib/components/Icon/icons/slideshow-solid.icon.js +1 -1
  358. package/lib/components/Icon/icons/slideshow-solid.icon.js.map +1 -1
  359. package/lib/components/Icon/icons/slideshow.icon.js +1 -1
  360. package/lib/components/Icon/icons/slideshow.icon.js.map +1 -1
  361. package/lib/components/Icon/icons/snow.icon.js +1 -1
  362. package/lib/components/Icon/icons/snow.icon.js.map +1 -1
  363. package/lib/components/Icon/icons/speaker-solid.icon.js +1 -1
  364. package/lib/components/Icon/icons/speaker-solid.icon.js.map +1 -1
  365. package/lib/components/Icon/icons/speaker.icon.js +1 -1
  366. package/lib/components/Icon/icons/speaker.icon.js.map +1 -1
  367. package/lib/components/Icon/icons/star-solid.icon.js +1 -1
  368. package/lib/components/Icon/icons/star-solid.icon.js.map +1 -1
  369. package/lib/components/Icon/icons/star.icon.js +1 -1
  370. package/lib/components/Icon/icons/star.icon.js.map +1 -1
  371. package/lib/components/Icon/icons/target-solid.icon.js +1 -1
  372. package/lib/components/Icon/icons/target-solid.icon.js.map +1 -1
  373. package/lib/components/Icon/icons/target.icon.js +1 -1
  374. package/lib/components/Icon/icons/target.icon.js.map +1 -1
  375. package/lib/components/Icon/icons/thumbs-up-solid.icon.js +1 -1
  376. package/lib/components/Icon/icons/thumbs-up-solid.icon.js.map +1 -1
  377. package/lib/components/Icon/icons/thumbs-up.icon.js +1 -1
  378. package/lib/components/Icon/icons/thumbs-up.icon.js.map +1 -1
  379. package/lib/components/Icon/icons/times.icon.js +1 -1
  380. package/lib/components/Icon/icons/times.icon.js.map +1 -1
  381. package/lib/components/Icon/icons/trash-solid.icon.js +1 -1
  382. package/lib/components/Icon/icons/trash-solid.icon.js.map +1 -1
  383. package/lib/components/Icon/icons/trash.icon.js +1 -1
  384. package/lib/components/Icon/icons/trash.icon.js.map +1 -1
  385. package/lib/components/Icon/icons/twitter.icon.js +1 -1
  386. package/lib/components/Icon/icons/twitter.icon.js.map +1 -1
  387. package/lib/components/Icon/icons/undock.icon.js +1 -1
  388. package/lib/components/Icon/icons/undock.icon.js.map +1 -1
  389. package/lib/components/Icon/icons/user-solid.icon.js +1 -1
  390. package/lib/components/Icon/icons/user-solid.icon.js.map +1 -1
  391. package/lib/components/Icon/icons/user-star-solid.icon.js +1 -1
  392. package/lib/components/Icon/icons/user-star-solid.icon.js.map +1 -1
  393. package/lib/components/Icon/icons/user-star.icon.js +1 -1
  394. package/lib/components/Icon/icons/user-star.icon.js.map +1 -1
  395. package/lib/components/Icon/icons/user.icon.js +1 -1
  396. package/lib/components/Icon/icons/user.icon.js.map +1 -1
  397. package/lib/components/Icon/icons/warn-solid.icon.js +1 -1
  398. package/lib/components/Icon/icons/warn-solid.icon.js.map +1 -1
  399. package/lib/components/Icon/icons/warn.icon.js +1 -1
  400. package/lib/components/Icon/icons/warn.icon.js.map +1 -1
  401. package/lib/components/Input/Input.d.ts.map +1 -1
  402. package/lib/components/Input/Input.js +13 -2
  403. package/lib/components/Input/Input.js.map +1 -1
  404. package/lib/components/ListToolbar/ListToolbar.d.ts.map +1 -1
  405. package/lib/components/ListToolbar/ListToolbar.js +16 -10
  406. package/lib/components/ListToolbar/ListToolbar.js.map +1 -1
  407. package/lib/components/ListToolbar/ListToolbar.types.d.ts +8 -1
  408. package/lib/components/ListToolbar/ListToolbar.types.d.ts.map +1 -1
  409. package/lib/components/ListToolbar/ListToolbar.types.js.map +1 -1
  410. package/lib/components/MetaList/MetaList.d.ts.map +1 -1
  411. package/lib/components/MetaList/MetaList.js +13 -10
  412. package/lib/components/MetaList/MetaList.js.map +1 -1
  413. package/lib/components/Number/NumberInput.d.ts.map +1 -1
  414. package/lib/components/Number/NumberInput.js +25 -7
  415. package/lib/components/Number/NumberInput.js.map +1 -1
  416. package/lib/components/Number/NumberInput.styles.d.ts +6 -2
  417. package/lib/components/Number/NumberInput.styles.d.ts.map +1 -1
  418. package/lib/components/Number/NumberInput.styles.js +4 -2
  419. package/lib/components/Number/NumberInput.styles.js.map +1 -1
  420. package/lib/components/Number/NumberInput.types.d.ts +2 -0
  421. package/lib/components/Number/NumberInput.types.d.ts.map +1 -1
  422. package/lib/components/Number/NumberInput.types.js.map +1 -1
  423. package/lib/components/Number/utils.d.ts.map +1 -1
  424. package/lib/components/Number/utils.js +1 -5
  425. package/lib/components/Number/utils.js.map +1 -1
  426. package/lib/components/Phone/PhoneInput.d.ts.map +1 -1
  427. package/lib/components/Phone/PhoneInput.js +12 -3
  428. package/lib/components/Phone/PhoneInput.js.map +1 -1
  429. package/lib/components/SearchInput/SearchInput.d.ts +5 -0
  430. package/lib/components/SearchInput/SearchInput.d.ts.map +1 -1
  431. package/lib/components/SearchInput/SearchInput.js +14 -4
  432. package/lib/components/SearchInput/SearchInput.js.map +1 -1
  433. package/lib/components/SearchInput/SearchInput.styles.d.ts +3 -0
  434. package/lib/components/SearchInput/SearchInput.styles.d.ts.map +1 -1
  435. package/lib/components/SearchInput/SearchInput.styles.js +6 -0
  436. package/lib/components/SearchInput/SearchInput.styles.js.map +1 -1
  437. package/lib/components/Select/Select.d.ts +2 -0
  438. package/lib/components/Select/Select.d.ts.map +1 -1
  439. package/lib/components/Select/Select.js +4 -3
  440. package/lib/components/Select/Select.js.map +1 -1
  441. package/lib/components/Tabs/TabPanel.d.ts.map +1 -1
  442. package/lib/components/Tabs/TabPanel.js +1 -7
  443. package/lib/components/Tabs/TabPanel.js.map +1 -1
  444. package/lib/components/Text/Text.js +2 -2
  445. package/lib/components/Text/Text.js.map +1 -1
  446. package/lib/components/TextArea/TextArea.d.ts.map +1 -1
  447. package/lib/components/TextArea/TextArea.js +4 -2
  448. package/lib/components/TextArea/TextArea.js.map +1 -1
  449. package/lib/components/Tooltip/Tooltip.d.ts +5 -0
  450. package/lib/components/Tooltip/Tooltip.d.ts.map +1 -1
  451. package/lib/components/Tooltip/Tooltip.js +22 -5
  452. package/lib/components/Tooltip/Tooltip.js.map +1 -1
  453. package/lib/hooks/useActiveDescendant.d.ts.map +1 -1
  454. package/lib/hooks/useActiveDescendant.js +6 -3
  455. package/lib/hooks/useActiveDescendant.js.map +1 -1
  456. package/lib/hooks/useI18n.d.ts +16 -5
  457. package/lib/hooks/useI18n.d.ts.map +1 -1
  458. package/lib/hooks/useInputFormatter.d.ts.map +1 -1
  459. package/lib/hooks/useInputFormatter.js +5 -0
  460. package/lib/hooks/useInputFormatter.js.map +1 -1
  461. package/lib/i18n/default.d.ts +16 -5
  462. package/lib/i18n/default.d.ts.map +1 -1
  463. package/lib/i18n/default.js +18 -6
  464. package/lib/i18n/default.js.map +1 -1
  465. package/lib/i18n/i18n.d.ts +32 -10
  466. package/lib/i18n/i18n.d.ts.map +1 -1
  467. package/lib/index.d.ts +2 -0
  468. package/lib/index.d.ts.map +1 -1
  469. package/lib/index.js +2 -0
  470. package/lib/index.js.map +1 -1
  471. package/lib/theme/theme.d.ts +54 -0
  472. package/lib/theme/theme.d.ts.map +1 -1
  473. package/lib/theme/themeDefinition.json +33 -1
  474. package/lib/theme/themeOverrides.schema.json +9 -0
  475. package/package.json +1 -1
@@ -1,26 +1,22 @@
1
1
  import styled, { css } from 'styled-components';
2
- import { lighten, mix, readableColor, rgba } from 'polished';
2
+ import { lighten, readableColor, rgba } from 'polished';
3
3
  import { useContext } from 'react';
4
4
  import { StyledAvatar } from '../Avatar';
5
5
  import { StyledIcon } from '../Icon';
6
6
  import { StyledImage } from '../Image/Image';
7
- import { StyledSearchInput, StyledSearchButton, StyledSearchTextInput, StyledCancelButton } from '../SearchInput/SearchInput.styles';
8
7
  import { defaultThemeProp } from '../../theme';
9
8
  import { tryCatch } from '../../utils/utils';
10
9
  import Flex from '../Flex';
11
- import { StyledSummaryItem } from '../SummaryItem';
12
- import { readableHue, calculateFontSize, getHoverColors } from '../../styles';
13
- import { StyledPopover } from '../Popover';
14
- import { StyledEmptyState } from '../EmptyState';
15
- import { StyledMenuListContainer } from '../Menu/Menu.styles';
16
- import Text, { StyledText } from '../Text';
10
+ import { readableHue, calculateFontSize } from '../../styles';
11
+ import { StyledMenuItem } from '../Menu/Menu.styles';
17
12
  import { useDirection } from '../../hooks';
18
13
  import { StyledBareButton } from '../Button/BareButton';
19
- import { StyledAlert } from '../Badges/Alert';
14
+ import Button from '../Button';
15
+ import { StyledTooltip } from '../Tooltip';
20
16
  import AppShellContext from './AppShellContext';
21
- const navWidth = '4rem';
22
- const navOpenWidth = '18.75rem';
23
- const headerHeight = '3rem';
17
+ export const navWidth = '4rem';
18
+ export const navOpenWidth = '18.75rem';
19
+ export const headerHeight = '3rem';
24
20
  /* AppShell styles */
25
21
  export const StyledAppEnvironment = styled(Flex)(({ color, theme: { base: { spacing, 'font-weight': { bold } }, components: { 'app-shell': { nav: { 'background-color': navColor } } } } }) => {
26
22
  const foreground = tryCatch(() => readableHue(color, color), () => readableHue(navColor, navColor));
@@ -103,12 +99,10 @@ export const StyledUtilIconCount = styled.span `
103
99
  flex-shrink: 0;
104
100
  `;
105
101
  export const StyledAppNav = styled.nav(({ appHeader, showEnv, theme }) => {
106
- const { navOpen, navState } = useContext(AppShellContext);
102
+ const { navOpen } = useContext(AppShellContext);
107
103
  return css `
108
104
  position: fixed;
109
- z-index: ${navState !== 'closed'
110
- ? css `calc(${theme.base['z-index'].backdrop} - 1) `
111
- : 'auto'};
105
+ z-index: calc(${theme.base['z-index'].backdrop} - 1);
112
106
  background: ${theme.components['app-shell'].nav['background-color']};
113
107
  max-width: calc(100vw - ${theme.base['hit-area']['mouse-min']});
114
108
  width: ${navOpen ? navOpenWidth : navWidth};
@@ -123,13 +117,6 @@ export const StyledAppNav = styled.nav(({ appHeader, showEnv, theme }) => {
123
117
  padding-block-start: ${theme.base.spacing};
124
118
  `}
125
119
 
126
- @media (min-width: ${theme.base.breakpoints.xl}) {
127
- z-index: auto;
128
-
129
- /* Setting width here keeps the nav width transition in sync with main's margin transition on resize which is also in a media query. */
130
- width: ${navOpenWidth};
131
- }
132
-
133
120
  @media (pointer: coarse) {
134
121
  max-width: calc(100vw - ${theme.base['hit-area']['finger-min']});
135
122
  }
@@ -188,110 +175,6 @@ export const StyledAppNav = styled.nav(({ appHeader, showEnv, theme }) => {
188
175
  `;
189
176
  });
190
177
  StyledAppNav.defaultProps = defaultThemeProp;
191
- export const StyledSearchForm = styled.form(({ theme, collapsed, isMediumOrAbove }) => {
192
- const borderColor = tryCatch(() => lighten(0.1, theme.components['app-shell'].nav['background-color']));
193
- const maxCollapsedSize = theme.components.input.height;
194
- return css `
195
- flex-shrink: 0;
196
- padding: ${theme.base.spacing} 0;
197
-
198
- ${StyledSearchInput} {
199
- margin: 0 calc((${navWidth} - ${theme.base['hit-area']['mouse-min']}) / 2);
200
- border: none;
201
- ${collapsed &&
202
- isMediumOrAbove &&
203
- css `
204
- overflow: hidden;
205
- `}
206
- background: ${borderColor};
207
-
208
- &:focus-within {
209
- box-shadow: ${theme.base.shadow['focus-inverted']};
210
-
211
- ${StyledSearchButton} {
212
- color: rgba(255, 255, 255, 0.9);
213
- }
214
- }
215
-
216
- ${collapsed &&
217
- isMediumOrAbove &&
218
- css `
219
- ${StyledSearchButton} {
220
- border-radius: calc(
221
- ${theme.base['border-radius']} * ${theme.components['search-input']['border-radius']}
222
- );
223
- height: ${maxCollapsedSize};
224
- width: ${maxCollapsedSize};
225
- padding: 0;
226
-
227
- > :not(:first-child) {
228
- display: none;
229
- }
230
- }
231
-
232
- input {
233
- padding: 0;
234
- max-width: 0;
235
- overflow: hidden;
236
- }
237
-
238
- ${StyledCancelButton} {
239
- display: none;
240
- }
241
- `}
242
-
243
- ${StyledSearchButton} {
244
- transition: borderRadius 0.5s;
245
- border: none;
246
- }
247
-
248
- ${StyledCancelButton} {
249
- color: rgba(255, 255, 255, 0.9);
250
- }
251
-
252
- input {
253
- border-color: ${borderColor};
254
-
255
- &::placeholder {
256
- color: rgba(255, 255, 255, 0.4);
257
- }
258
-
259
- &:focus:not([disabled]) {
260
- border-color: ${borderColor};
261
- }
262
- }
263
-
264
- input,
265
- ${StyledSearchButton} {
266
- background: ${borderColor};
267
- color: rgba(255, 255, 255, 0.7);
268
- }
269
- }
270
- `;
271
- });
272
- StyledSearchForm.defaultProps = defaultThemeProp;
273
- export const StyledNavListMenuButton = styled.button(({ theme }) => {
274
- return css `
275
- & + ${StyledPopover} {
276
- &,
277
- ${StyledMenuListContainer} {
278
- background-color: ${theme.components['app-shell'].nav['background-color']};
279
- }
280
-
281
- ${StyledMenuListContainer} li {
282
- color: rgba(255, 255, 255, 0.7);
283
- background-color: transparent;
284
-
285
- &:hover,
286
- &[data-current='true'] {
287
- color: #ffffff;
288
- background-color: rgba(255, 255, 255, 0.05);
289
- }
290
- }
291
- }
292
- `;
293
- });
294
- StyledNavListMenuButton.defaultProps = defaultThemeProp;
295
178
  export const StyledCaseClose = styled.button ``;
296
179
  export const StyledNavListItem = styled.li(({ theme, nestedListCollapsed }) => {
297
180
  const { navOpen } = useContext(AppShellContext);
@@ -459,148 +342,6 @@ export const StyledUtils = styled.div(({ theme }) => {
459
342
  `;
460
343
  });
461
344
  StyledUtils.defaultProps = defaultThemeProp;
462
- /* AppHeader styles */
463
- export const StyledAppHeaderInfo = styled.div(({ centerLogo, theme }) => {
464
- return css `
465
- & > :first-child {
466
- vertical-align: top;
467
- }
468
-
469
- & > a,
470
- & > button {
471
- cursor: pointer;
472
- text-decoration: none;
473
- user-select: none;
474
- -webkit-user-select: none;
475
- }
476
-
477
- ${StyledImage} {
478
- height: 1.625rem;
479
-
480
- ${centerLogo &&
481
- css `
482
- padding-inline-start: ${theme.base.spacing};
483
- `}
484
- }
485
- `;
486
- });
487
- StyledAppHeaderInfo.defaultProps = defaultThemeProp;
488
- export const StyledAppHeaderSearchForm = styled.form(({ isMediumOrAbove, theme }) => {
489
- const headerColor = theme.components['app-shell'].header['background-color'];
490
- const contrastColor = tryCatch(() => readableColor(headerColor));
491
- return css `
492
- max-width: 33vw;
493
- min-width: 10rem;
494
- width: 100%;
495
- justify-self: center;
496
- margin-inline-start: 0;
497
- margin-inline-end: auto;
498
- transition: max-width ${theme.base.animation.speed} ${theme.base.animation.timing.ease};
499
-
500
- ${!isMediumOrAbove &&
501
- css `
502
- max-width: 50%;
503
- min-width: 2rem;
504
- margin-inline-end: 0;
505
-
506
- &:not([focused]) {
507
- ${StyledSearchInput} {
508
- ${StyledSearchButton} {
509
- background: ${headerColor};
510
- color: ${contrastColor};
511
- }
512
-
513
- ${StyledSearchTextInput} {
514
- background: ${headerColor};
515
- }
516
- }
517
- }
518
-
519
- &:focus-within {
520
- max-width: 100%;
521
- min-width: 10rem;
522
- }
523
- `}
524
- `;
525
- });
526
- StyledAppHeaderSearchForm.defaultProps = defaultThemeProp;
527
- export const StyledAppHeaderSpacer = styled.div `
528
- margin: auto;
529
- `;
530
- export const StyledAppHeaderText = styled(Text)(({ theme, variant }) => {
531
- const contrastColor = tryCatch(() => readableColor(theme.components['app-shell'].header['background-color']));
532
- const secondaryColor = tryCatch(() => rgba(contrastColor ?? theme.base.palette['foreground-color'], theme.base.transparency['transparent-2']));
533
- const fontSize = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);
534
- return css `
535
- text-overflow: ellipsis;
536
- overflow: hidden;
537
- white-space: nowrap;
538
- color: ${variant === 'secondary' ? secondaryColor : contrastColor};
539
- font-size: ${fontSize.s};
540
-
541
- ${variant !== 'secondary' &&
542
- css `
543
- font-weight: ${theme.base['font-weight']['semi-bold']};
544
- `}
545
- `;
546
- });
547
- StyledAppHeaderText.defaultProps = defaultThemeProp;
548
- export const StyledAppHeaderOperator = styled.button(({ theme }) => css `
549
- border-radius: 50%;
550
-
551
- :focus {
552
- box-shadow: ${theme.base.shadow.focus};
553
- }
554
- `);
555
- StyledAppHeaderOperator.defaultProps = defaultThemeProp;
556
- export const StyledAppHeader = styled.header(({ hideTitle, theme }) => {
557
- const headerColor = theme.components['app-shell'].header['background-color'];
558
- const contrastColor = tryCatch(() => readableColor(headerColor));
559
- const hoverColors = getHoverColors(mix(0.01, theme.base.palette.interactive, headerColor));
560
- return css `
561
- position: sticky;
562
- z-index: ${theme.base['z-index'].drawer};
563
- top: 0;
564
- gap: ${theme.base.spacing};
565
- max-width: 100%;
566
- height: ${headerHeight};
567
- background-color: ${headerColor};
568
- border-bottom: solid 0.0625rem ${theme.base.palette['border-line']};
569
-
570
- > :first-child {
571
- justify-self: flex-start;
572
- min-width: 33vw;
573
-
574
- ${hideTitle &&
575
- css `
576
- min-width: fit-content;
577
- `}
578
- }
579
-
580
- > ${StyledAppHeaderOperator} {
581
- justify-self: flex-end;
582
-
583
- + ${StyledPopover} {
584
- &,
585
- ${StyledMenuListContainer} {
586
- background-color: ${headerColor};
587
- }
588
-
589
- ${StyledMenuListContainer} li {
590
- color: ${contrastColor};
591
- background-color: transparent;
592
-
593
- &:hover,
594
- &[data-current='true'] {
595
- color: ${hoverColors.foreground};
596
- background-color: ${hoverColors.background};
597
- }
598
- }
599
- }
600
- }
601
- `;
602
- });
603
- StyledAppHeader.defaultProps = defaultThemeProp;
604
345
  /* Mobile AppShell styles */
605
346
  export const StyledMobileNav = styled.header(({ theme }) => {
606
347
  const mobileNavColor = theme.base.palette['brand-primary'];
@@ -621,156 +362,11 @@ export const StyledMobileNav = styled.header(({ theme }) => {
621
362
  `;
622
363
  });
623
364
  StyledMobileNav.defaultProps = defaultThemeProp;
624
- /* AppShell Drawer styles */
625
- export const StyledDrawerWrapper = styled.div(({ theme, open }) => {
626
- return css `
627
- background: ${theme.components['app-shell'].nav['background-color']};
628
- width: 100%;
629
- height: 100%;
630
- color: rgba(255, 255, 255, 0.7);
631
- opacity: ${open ? 1 : 0};
632
- `;
633
- });
634
- StyledDrawerWrapper.defaultProps = defaultThemeProp;
635
- export const StyledDrawerHeading = styled.header(({ theme }) => {
636
- const fontSize = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);
637
- return css `
638
- padding: ${theme.base.spacing} calc(2 * ${theme.base.spacing});
639
- line-height: 1;
640
-
641
- span {
642
- font-size: ${fontSize.s};
643
- font-weight: ${theme.base['font-weight']['semi-bold']};
644
- margin: 0 auto;
645
- position: relative;
646
- left: -0.7rem;
647
- }
648
-
649
- svg {
650
- font-size: ${fontSize.xxl};
651
- cursor: pointer;
652
- color: rgba(255, 255, 255, 0.7);
653
- }
654
- `;
655
- });
656
- StyledDrawerHeading.defaultProps = defaultThemeProp;
657
- export const StyledDrawerBackButton = styled.button(({ theme }) => {
658
- return css `
659
- height: ${theme.base['hit-area']['mouse-min']};
660
- width: ${theme.base['hit-area']['mouse-min']};
661
- border-radius: calc(
662
- ${`${theme.base['border-radius']} * ${theme.components.button['border-radius']}`}
663
- );
664
-
665
- &:hover,
666
- &:focus {
667
- color: ${theme.base.colors.white};
668
- background-color: rgba(255, 255, 255, 0.05);
669
- }
670
-
671
- &:focus {
672
- outline: none;
673
- box-shadow: inset ${theme.base.shadow['focus-inverted']};
674
- }
675
- `;
676
- });
677
- StyledDrawerBackButton.defaultProps = defaultThemeProp;
678
- export const StyledDrawerList = styled.ul(() => {
679
- return css ``;
680
- });
681
- StyledDrawerList.defaultProps = defaultThemeProp;
682
- export const StyledDrawerMetaList = styled.ul `
683
- li {
684
- color: inherit;
685
- }
686
- `;
687
- export const StyledDrawerPinButton = styled.button(({ theme }) => {
688
- const fontSize = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);
689
- const { ltr } = useDirection();
690
- return css `
691
- color: inherit;
692
- padding: calc(2 * ${theme.base.spacing});
693
- cursor: pointer;
694
- font-size: ${fontSize.xxl};
695
-
696
- ${StyledIcon} {
697
- display: block;
698
- ${ltr &&
699
- css `
700
- transform: scaleX(-1);
701
- `}
702
- }
703
-
704
- &:hover,
705
- &:focus {
706
- color: ${theme.base.colors.white};
707
- background-color: rgba(255, 255, 255, 0.05);
708
- }
709
-
710
- &:focus {
711
- outline: none;
712
- box-shadow: inset ${theme.base.shadow['focus-inverted']};
713
- }
714
- `;
715
- });
716
- StyledDrawerPinButton.defaultProps = defaultThemeProp;
717
- export const EmptyDrawerVisual = styled.div(({ theme }) => {
718
- return css `
719
- width: calc(4 * ${theme.base.spacing});
720
- height: calc(4 * ${theme.base.spacing});
721
- `;
722
- });
723
- EmptyDrawerVisual.defaultProps = defaultThemeProp;
724
- export const StyledDrawerListHeading = styled.h3(({ theme }) => {
725
- return css `
726
- position: sticky;
727
- top: 0;
728
- padding: ${theme.base.spacing} calc(2 * ${theme.base.spacing});
729
- background-color: hsl(207 14% 13% / 1);
730
- z-index: 1;
731
- `;
732
- });
733
- StyledDrawerListHeading.defaultProps = defaultThemeProp;
734
- export const StyledDrawerViewAll = styled.a(({ theme }) => {
735
- return css `
736
- position: sticky;
737
- bottom: 0;
738
- padding: ${theme.base.spacing} 0;
739
- color: inherit;
740
- background-color: ${theme.components['app-shell'].nav['background-color']};
741
- text-align: center;
742
- margin-top: 0.0625rem;
743
-
744
- &:hover,
745
- &:focus {
746
- color: ${theme.base.colors.white};
747
- box-shadow: unset;
748
- }
749
- `;
750
- });
751
- StyledDrawerViewAll.defaultProps = defaultThemeProp;
752
- export const StyledDrawerListSection = styled.div(({ theme }) => {
753
- const borderColor = tryCatch(() => lighten(0.1, theme.components['app-shell'].nav['background-color']));
754
- return css `
755
- border-top: 0.0625rem solid ${borderColor};
756
- min-height: max(20%, 8rem);
757
- overflow-y: auto;
758
- `;
759
- });
760
- StyledDrawerListSection.defaultProps = defaultThemeProp;
761
- export const StyledDrawerListContainer = styled.div(({ theme }) => {
762
- const fontSize = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);
763
- return css `
764
- height: calc(100% - 4 * ${theme.base.spacing} - ${fontSize.xxl});
765
- overflow: auto;
766
- `;
767
- });
768
- StyledDrawerListContainer.defaultProps = defaultThemeProp;
769
365
  export const StyledLoading = styled.div `
770
366
  font-size: 2rem;
771
367
  `;
772
368
  /* Main content region styles */
773
- export const StyledAppMain = styled.main(({ appHeader, mobileNav, headerOffset = 0, theme }) => {
369
+ export const StyledAppMain = styled.main(({ appHeader, mobileNav, navOpen, headerOffset = 0, theme }) => {
774
370
  const heightOffset = appHeader || mobileNav ? headerHeight : '0rem';
775
371
  return css `
776
372
  --appshell-offset: ${headerOffset}px;
@@ -783,9 +379,10 @@ export const StyledAppMain = styled.main(({ appHeader, mobileNav, headerOffset =
783
379
  outline: none;
784
380
  }
785
381
 
786
- @media (min-width: ${theme.base.breakpoints.xl}) {
382
+ ${navOpen &&
383
+ css `
787
384
  margin-inline-start: ${navOpenWidth};
788
- }
385
+ `}
789
386
 
790
387
  ${!mobileNav &&
791
388
  css `
@@ -801,136 +398,48 @@ export const StyledBannerRegion = styled.div(({ theme }) => {
801
398
  `;
802
399
  });
803
400
  StyledBannerRegion.defaultProps = defaultThemeProp;
804
- /* AppShellList styles */
805
- export const StyledAppShellListWrapper = styled.div(({ theme }) => {
806
- return css `
807
- max-height: 100%;
808
- white-space: nowrap;
809
-
810
- ${StyledSummaryItem} {
811
- position: relative;
812
- &::after {
813
- content: '';
814
- position: absolute;
815
- top: calc(100% - 0.03125rem);
816
- inset-inline-end: 1rem;
817
- inset-inline-start: 1rem;
818
- height: 0.0625rem;
819
- background-color: ${theme.base.colors.gray['extra-dark']};
820
- }
821
- }
822
- `;
823
- });
824
- StyledAppShellListWrapper.defaultProps = defaultThemeProp;
825
- export const StyledAppShellList = styled.ul ``;
826
- StyledAppShellList.defaultProps = defaultThemeProp;
827
- export const StyledAppShellSummaryItem = styled.div(({ theme }) => {
401
+ export const StyledAppshellTooltip = styled(StyledTooltip)(({ theme }) => {
828
402
  return css `
829
- padding: ${theme.base.spacing} calc(2 * ${theme.base.spacing});
830
- color: inherit;
831
- background-color: transparent;
832
- border: none;
833
- text-decoration: none;
834
- cursor: pointer;
835
- text-align: start;
836
- white-space: normal;
837
-
838
- &:hover,
839
- &:focus {
840
- color: ${theme.base.colors.white};
841
- background-color: rgba(255, 255, 255, 0.05);
403
+ background-color: ${theme.components.tooltip['background-color']};
404
+ padding: 0;
405
+ header {
406
+ border-bottom: none;
842
407
  }
408
+ ${StyledMenuItem} {
409
+ background-color: ${theme.components.tooltip['background-color']};
410
+ color: ${theme.base.palette.light};
843
411
 
844
- &:focus {
845
- outline: none;
846
- box-shadow: inset ${theme.base.shadow['focus-inverted']};
412
+ &:hover,
413
+ &:focus {
414
+ background-color: ${theme.components.tooltip['background-color']};
415
+ box-shadow: ${theme.base.shadow['focus-inverted']};
416
+ }
847
417
  }
848
418
  `;
849
419
  });
850
- StyledAppShellSummaryItem.defaultProps = defaultThemeProp;
851
- export const StyledAppShellMetaList = styled.ul `
852
- li {
853
- color: inherit;
854
- }
855
- `;
856
- export const StyledAppShellPinButton = styled.button(({ theme }) => {
420
+ StyledAppshellTooltip.defaultProps = defaultThemeProp;
421
+ export const StyledAppshellToggleButton = styled(Button)(({ theme, open }) => {
857
422
  return css `
858
- color: inherit;
423
+ background-color: ${theme.base.palette.dark};
424
+ color: ${theme.base.palette.light};
859
425
  border: none;
860
- background-color: transparent;
426
+ margin-top: calc(1 * ${theme.base.spacing});
427
+ ${open &&
428
+ css `
429
+ padding-inline: 1rem;
430
+ `}
861
431
 
862
- &:hover,
863
- &:focus {
864
- color: ${theme.base.colors.white};
865
- background-color: rgba(255, 255, 255, 0.05);
432
+ ${StyledIcon} {
433
+ width: 1.25rem;
434
+ height: 1.25rem;
435
+ font-weight: bold;
866
436
  }
867
437
 
868
- &:focus {
869
- outline: none;
870
- box-shadow: inset ${theme.base.shadow['focus-inverted']};
871
- }
872
- `;
873
- });
874
- StyledAppShellPinButton.defaultProps = defaultThemeProp;
875
- export const StyledNotificationVisual = styled.span(({ theme, unread, visualIncluded }) => {
876
- return css `
877
- position: relative;
878
- ${StyledAlert} {
879
- display: ${unread ? 'auto' : 'none'};
880
- position: absolute;
881
- inset-inline-start: -0.65625rem;
882
- top: ${visualIncluded ? 'calc(50% - 0.15625rem)' : '0.5rem'};
883
- background-color: ${theme.base.palette.light};
884
- height: 0.3125rem;
885
- width: 0.3125rem;
886
- } ;
887
- `;
888
- });
889
- StyledNotificationVisual.defaultProps = defaultThemeProp;
890
- export const StyledNotificationPrimary = styled.span(({ theme, unread }) => {
891
- return css `
892
- font-weight: ${unread
893
- ? theme.base['font-weight'].bold
894
- : theme.base['font-weight']['semi-bold']};
895
- color: ${unread ? theme.base.palette.light : 'inherit'};
896
- `;
897
- });
898
- StyledNotificationPrimary.defaultProps = defaultThemeProp;
899
- export const StyledNotificationSecondary = styled.span(({ theme, unread }) => {
900
- return css `
901
- ${StyledText} {
902
- opacity: ${unread
903
- ? theme.base.transparency['transparent-1']
904
- : theme.base.transparency['transparent-3']};
905
- }
906
- `;
907
- });
908
- StyledNotificationSecondary.defaultProps = defaultThemeProp;
909
- export const EmptyStateColorContrast = styled.div `
910
- ${StyledEmptyState} {
911
- span,
912
- svg {
913
- color: rgba(255, 255, 255, 0.7);
438
+ &:enabled:focus,
439
+ :not([disabled]):focus {
440
+ box-shadow: ${theme.base.shadow['focus-inverted']};
914
441
  }
915
- }
916
- `;
917
- export const StyledAppShellListSection = styled.div(({ theme }) => {
918
- const borderColor = tryCatch(() => lighten(0.1, theme.components['app-shell'].nav['background-color']));
919
- return css `
920
- border-top: 0.0625rem solid ${borderColor};
921
- min-height: max(20%, 8rem);
922
- overflow-y: auto;
923
- `;
924
- });
925
- StyledAppShellListSection.defaultProps = defaultThemeProp;
926
- export const StyledAppShellListHeading = styled.h3(({ theme }) => {
927
- return css `
928
- position: sticky;
929
- top: 0;
930
- padding: ${theme.base.spacing} calc(2 * ${theme.base.spacing});
931
- background-color: hsl(207 14% 13% / 1);
932
- z-index: 1;
933
442
  `;
934
443
  });
935
- StyledAppShellListHeading.defaultProps = defaultThemeProp;
444
+ StyledAppshellToggleButton.defaultProps = defaultThemeProp;
936
445
  //# sourceMappingURL=AppShell.styles.js.map