@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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppShellList.styles.js","sourceRoot":"","sources":["../../../src/components/AppShell/AppShellList.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,yBAAyB;AACzB,MAAM,CAAC,MAAM,yBAAyB,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IAChE,OAAO,GAAG,CAAA;;;;MAIN,iBAAiB;;;;;;;;;4BASK,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC;;;GAG7D,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,yBAAyB,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAE1D,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,EAAE,CAAA,EAAE,CAAC;AAE9C,kBAAkB,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAEnD,MAAM,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WAAW;;;GAG1C,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,yBAAyB,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAE1D,MAAM,CAAC,MAAM,yBAAyB,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IAC/D,OAAO,GAAG,CAAA;;;eAGG,KAAK,CAAC,IAAI,CAAC,OAAO,aAAa,KAAK,CAAC,IAAI,CAAC,OAAO;;;GAG7D,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,yBAAyB,CAAC,YAAY,GAAG,gBAAgB,CAAC","sourcesContent":["import { lighten } from 'polished';\nimport styled, { css } from 'styled-components';\n\nimport { defaultThemeProp } from '../../theme';\nimport { tryCatch } from '../../utils';\nimport { StyledAlert } from '../Badges/Alert';\nimport { StyledEmptyState } from '../EmptyState';\nimport { StyledSummaryItem } from '../SummaryItem';\nimport { StyledText } from '../Text';\n\n/* AppShellList styles */\nexport const StyledAppShellListWrapper = styled.div(({ theme }) => {\n return css`\n max-height: 100%;\n white-space: nowrap;\n\n ${StyledSummaryItem} {\n position: relative;\n &::after {\n content: '';\n position: absolute;\n top: calc(100% - 0.03125rem);\n inset-inline-end: 1rem;\n inset-inline-start: 1rem;\n height: 0.0625rem;\n background-color: ${theme.base.colors.gray['extra-dark']};\n }\n }\n `;\n});\n\nStyledAppShellListWrapper.defaultProps = defaultThemeProp;\n\nexport const StyledAppShellList = styled.ul``;\n\nStyledAppShellList.defaultProps = defaultThemeProp;\n\nexport const StyledAppShellSummaryItem = styled.div(({ theme }) => {\n return css`\n padding: ${theme.base.spacing} calc(2 * ${theme.base.spacing});\n color: inherit;\n background-color: transparent;\n border: none;\n text-decoration: none;\n cursor: pointer;\n text-align: start;\n white-space: normal;\n\n &:hover,\n &:focus {\n color: ${theme.base.colors.white};\n background-color: rgba(255, 255, 255, 0.05);\n }\n\n &:focus {\n outline: none;\n box-shadow: inset ${theme.base.shadow['focus-inverted']};\n }\n `;\n});\n\nStyledAppShellSummaryItem.defaultProps = defaultThemeProp;\n\nexport const StyledAppShellMetaList = styled.ul`\n li {\n color: inherit;\n }\n`;\n\nexport const StyledAppShellPinButton = styled.button(({ theme }) => {\n return css`\n color: inherit;\n border: none;\n background-color: transparent;\n\n &:hover,\n &:focus {\n color: ${theme.base.colors.white};\n background-color: rgba(255, 255, 255, 0.05);\n }\n\n &:focus {\n outline: none;\n box-shadow: inset ${theme.base.shadow['focus-inverted']};\n }\n `;\n});\n\nStyledAppShellPinButton.defaultProps = defaultThemeProp;\n\nexport const StyledNotificationVisual = styled.span<{ unread?: boolean; visualIncluded?: boolean }>(\n ({ theme, unread, visualIncluded }) => {\n return css`\n position: relative;\n ${StyledAlert} {\n display: ${unread ? 'auto' : 'none'};\n position: absolute;\n inset-inline-start: -0.65625rem;\n top: ${visualIncluded ? 'calc(50% - 0.15625rem)' : '0.5rem'};\n background-color: ${theme.base.palette.light};\n height: 0.3125rem;\n width: 0.3125rem;\n } ;\n `;\n }\n);\n\nStyledNotificationVisual.defaultProps = defaultThemeProp;\n\nexport const StyledNotificationPrimary = styled.span<{ unread?: boolean }>(({ theme, unread }) => {\n return css`\n font-weight: ${unread\n ? theme.base['font-weight'].bold\n : theme.base['font-weight']['semi-bold']};\n color: ${unread ? theme.base.palette.light : 'inherit'};\n `;\n});\n\nStyledNotificationPrimary.defaultProps = defaultThemeProp;\n\nexport const StyledNotificationSecondary = styled.span<{ unread?: boolean }>(\n ({ theme, unread }) => {\n return css`\n ${StyledText} {\n opacity: ${unread\n ? theme.base.transparency['transparent-1']\n : theme.base.transparency['transparent-3']};\n }\n `;\n }\n);\n\nStyledNotificationSecondary.defaultProps = defaultThemeProp;\n\nexport const EmptyStateColorContrast = styled.div`\n ${StyledEmptyState} {\n span,\n svg {\n color: rgba(255, 255, 255, 0.7);\n }\n }\n`;\n\nexport const StyledAppShellListSection = styled.div(({ theme }) => {\n const borderColor = tryCatch(() =>\n lighten(0.1, theme.components['app-shell'].nav['background-color'])\n );\n\n return css`\n border-top: 0.0625rem solid ${borderColor};\n min-height: max(20%, 8rem);\n overflow-y: auto;\n `;\n});\n\nStyledAppShellListSection.defaultProps = defaultThemeProp;\n\nexport const StyledAppShellListHeading = styled.h3(({ theme }) => {\n return css`\n position: sticky;\n top: 0;\n padding: ${theme.base.spacing} calc(2 * ${theme.base.spacing});\n background-color: hsl(207 14% 13% / 1);\n z-index: 1;\n `;\n});\n\nStyledAppShellListHeading.defaultProps = defaultThemeProp;\n"]}
@@ -0,0 +1,10 @@
1
+ import { FC } from 'react';
2
+ import { AppShellProps } from './AppShell.types';
3
+ export interface AppShellSearchProps {
4
+ collapsed: boolean;
5
+ isMediumOrAbove: boolean;
6
+ searchLabel: string;
7
+ searchInput: AppShellProps['searchInput'];
8
+ }
9
+ export declare const AppShellSearch: FC<AppShellSearchProps>;
10
+ //# sourceMappingURL=AppShellSearch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppShellSearch.d.ts","sourceRoot":"","sources":["../../../src/components/AppShell/AppShellSearch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAA2C,MAAM,OAAO,CAAC;AAOpE,OAAO,EAAE,aAAa,EAA2B,MAAM,kBAAkB,CAAC;AAS1E,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,OAAO,CAAC;IACnB,eAAe,EAAE,OAAO,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;CAC3C;AAED,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CA6DlD,CAAC"}
@@ -0,0 +1,32 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useContext, useEffect, useRef, useState } from 'react';
3
+ import { useElement, useI18n } from '../../hooks';
4
+ import Icon from '../Icon';
5
+ import SearchInput from '../SearchInput';
6
+ import NavigationListItemWrapper from './NavigationListItemWrapper';
7
+ import AppShellContext from './AppShellContext';
8
+ import { StyledAppShellSearchButton, StyledAppshellSearchContainer, StyledAppShellSearchDecoration, StyledSearchForm } from './AppShellSearch.styles';
9
+ export const AppShellSearch = ({ collapsed, isMediumOrAbove, searchLabel, searchInput }) => {
10
+ const [btnEl, setBtnEl] = useElement();
11
+ const searchRef = useRef();
12
+ const t = useI18n();
13
+ const [menuOpen, setMenuOpen] = useState(false);
14
+ const { navOpen } = useContext(AppShellContext);
15
+ const onMenuToggle = state => {
16
+ setMenuOpen(state === 'open');
17
+ };
18
+ useEffect(() => {
19
+ const onTab = (e) => {
20
+ if (menuOpen && e.key === 'Tab') {
21
+ e.preventDefault();
22
+ searchRef.current?.focus();
23
+ }
24
+ };
25
+ btnEl?.addEventListener('keydown', onTab);
26
+ return () => {
27
+ btnEl?.removeEventListener('keydown', onTab);
28
+ };
29
+ }, [btnEl, searchRef, menuOpen]);
30
+ return (_jsx(StyledSearchForm, { role: 'search', "aria-label": searchLabel, collapsed: collapsed, onSubmit: e => e.preventDefault(), isMediumOrAbove: isMediumOrAbove, children: collapsed ? (_jsx(NavigationListItemWrapper, { childrenElement: btnEl, label: t('search_placeholder_default'), tooltipLabel: t('search_placeholder_default'), navOpen: navOpen, onMenuToggle: onMenuToggle, content: _jsx(StyledAppshellSearchContainer, { children: _jsx(SearchInput, { ...searchInput, resultsPopover: false, ref: searchRef }) }), children: _jsx(StyledAppShellSearchButton, { ref: setBtnEl, children: _jsx(StyledAppShellSearchDecoration, { children: _jsx(Icon, { name: 'search' }) }) }) })) : (_jsx(SearchInput, { ...searchInput })) }));
31
+ };
32
+ //# sourceMappingURL=AppShellSearch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppShellSearch.js","sourceRoot":"","sources":["../../../src/components/AppShell/AppShellSearch.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAM,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEpE,OAAO,EAAE,UAAU,EAAE,OAAO,EAA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CAAC,KAAK,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC;IAEjC,OAAO,CACL,KAAC,gBAAgB,IACf,IAAI,EAAC,QAAQ,gBACD,WAAW,EACvB,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,cAAc,EAAE,EACjC,eAAe,EAAE,eAAe,YAE/B,SAAS,CAAC,CAAC,CAAC,CACX,KAAC,yBAAyB,IACxB,eAAe,EAAE,KAAK,EACtB,KAAK,EAAE,CAAC,CAAC,4BAA4B,CAAC,EACtC,YAAY,EAAE,CAAC,CAAC,4BAA4B,CAAC,EAC7C,OAAO,EAAE,OAAO,EAChB,YAAY,EAAE,YAAY,EAC1B,OAAO,EACL,KAAC,6BAA6B,cAC5B,KAAC,WAAW,OAAK,WAAW,EAAE,cAAc,EAAE,KAAK,EAAE,GAAG,EAAE,SAAS,GAAI,GACzC,YAGlC,KAAC,0BAA0B,IAAC,GAAG,EAAE,QAAQ,YACvC,KAAC,8BAA8B,cAC7B,KAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,GAAG,GACS,GACN,GACH,CAC7B,CAAC,CAAC,CAAC,CACF,KAAC,WAAW,OAAK,WAAW,GAAI,CACjC,GACgB,CACpB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { FC, useContext, useEffect, useRef, useState } from 'react';\n\nimport { useElement, useI18n } from '../../hooks';\nimport Icon from '../Icon';\nimport SearchInput from '../SearchInput';\n\nimport NavigationListItemWrapper from './NavigationListItemWrapper';\nimport { AppShellProps, NavListItemWrapperProps } from './AppShell.types';\nimport AppShellContext from './AppShellContext';\nimport {\n StyledAppShellSearchButton,\n StyledAppshellSearchContainer,\n StyledAppShellSearchDecoration,\n StyledSearchForm\n} from './AppShellSearch.styles';\n\nexport interface AppShellSearchProps {\n collapsed: boolean;\n isMediumOrAbove: boolean;\n searchLabel: string;\n searchInput: AppShellProps['searchInput'];\n}\n\nexport const AppShellSearch: FC<AppShellSearchProps> = ({\n collapsed,\n isMediumOrAbove,\n searchLabel,\n searchInput\n}) => {\n const [btnEl, setBtnEl] = useElement<HTMLButtonElement>();\n const searchRef = useRef<HTMLInputElement>();\n const t = useI18n();\n const [menuOpen, setMenuOpen] = useState(false);\n const { navOpen } = useContext(AppShellContext);\n\n const onMenuToggle: NavListItemWrapperProps['onMenuToggle'] = state => {\n setMenuOpen(state === 'open');\n };\n\n useEffect(() => {\n const onTab = (e: KeyboardEvent) => {\n if (menuOpen && e.key === 'Tab') {\n e.preventDefault();\n searchRef.current?.focus();\n }\n };\n btnEl?.addEventListener('keydown', onTab);\n return () => {\n btnEl?.removeEventListener('keydown', onTab);\n };\n }, [btnEl, searchRef, menuOpen]);\n\n return (\n <StyledSearchForm\n role='search'\n aria-label={searchLabel}\n collapsed={collapsed}\n onSubmit={e => e.preventDefault()}\n isMediumOrAbove={isMediumOrAbove}\n >\n {collapsed ? (\n <NavigationListItemWrapper\n childrenElement={btnEl}\n label={t('search_placeholder_default')}\n tooltipLabel={t('search_placeholder_default')}\n navOpen={navOpen}\n onMenuToggle={onMenuToggle}\n content={\n <StyledAppshellSearchContainer>\n <SearchInput {...searchInput} resultsPopover={false} ref={searchRef} />\n </StyledAppshellSearchContainer>\n }\n >\n <StyledAppShellSearchButton ref={setBtnEl}>\n <StyledAppShellSearchDecoration>\n <Icon name='search' />\n </StyledAppShellSearchDecoration>\n </StyledAppShellSearchButton>\n </NavigationListItemWrapper>\n ) : (\n <SearchInput {...searchInput} />\n )}\n </StyledSearchForm>\n );\n};\n"]}
@@ -0,0 +1,8 @@
1
+ export declare const StyledSearchForm: import("styled-components").StyledComponent<"form", import("styled-components").DefaultTheme, {
2
+ collapsed: boolean;
3
+ isMediumOrAbove: boolean;
4
+ }, never>;
5
+ export declare const StyledAppShellSearchDecoration: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
6
+ export declare const StyledAppShellSearchButton: import("styled-components").StyledComponent<import("react").FunctionComponent<import("../Button/BareButton").BareButtonProps & import("../..").ForwardProps>, import("styled-components").DefaultTheme, {}, never>;
7
+ export declare const StyledAppshellSearchContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
8
+ //# sourceMappingURL=AppShellSearch.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppShellSearch.styles.d.ts","sourceRoot":"","sources":["../../../src/components/AppShell/AppShellSearch.styles.ts"],"names":[],"mappings":"AAsBA,eAAO,MAAM,gBAAgB;eAA4B,OAAO;qBAAmB,OAAO;SAwJzF,CAAC;AAIF,eAAO,MAAM,8BAA8B,yGAYzC,CAAC;AAIH,eAAO,MAAM,0BAA0B,oNAQtC,CAAC;AAIF,eAAO,MAAM,6BAA6B,yGAIxC,CAAC"}
@@ -0,0 +1,190 @@
1
+ import { lighten, mix } from 'polished';
2
+ import styled, { css } from 'styled-components';
3
+ import { defaultThemeProp } from '../../theme';
4
+ import { tryCatch } from '../../utils';
5
+ import BareButton from '../Button/BareButton';
6
+ import { StyledLink } from '../Link';
7
+ import { StyledMenuItem } from '../Menu';
8
+ import { StyledMenu, StyledMenuListContainer } from '../Menu/Menu.styles';
9
+ import { StyledSearchInput } from '../SearchInput';
10
+ import { StyledCancelButton, StyledFiltersPopover, StyledResultsPopover, StyledSearchButton } from '../SearchInput/SearchInput.styles';
11
+ import { StyledText } from '../Text';
12
+ import { StyledBackdrop } from '../Backdrop';
13
+ import { StyledEmptyState } from '../EmptyState';
14
+ import { navWidth } from './AppShell.styles';
15
+ export const StyledSearchForm = styled.form(({ theme, collapsed, isMediumOrAbove }) => {
16
+ const backgroundColor = tryCatch(() => lighten(0.1, theme.components['app-shell'].nav['background-color']));
17
+ const maxCollapsedSize = theme.components.input.height;
18
+ const activeColor = tryCatch(() => mix(0.85, theme.base.palette.dark, theme.base.palette.interactive));
19
+ const hoverColor = tryCatch(() => mix(0.95, theme.base.palette.dark, theme.base.palette.interactive));
20
+ return css `
21
+ flex-shrink: 0;
22
+ justify-content: center;
23
+ padding: ${theme.base.spacing} 0;
24
+ --background-color: ${backgroundColor};
25
+
26
+ ${StyledMenuListContainer} {
27
+ background: transparent;
28
+ }
29
+
30
+ header {
31
+ ${StyledText} {
32
+ color: ${theme.base.palette.light};
33
+ }
34
+ }
35
+
36
+ ${StyledBackdrop} {
37
+ background: transparent;
38
+ }
39
+
40
+ ${StyledEmptyState} {
41
+ span,
42
+ svg {
43
+ color: ${theme.base.palette.light};
44
+ }
45
+ }
46
+
47
+ ${StyledMenu} {
48
+ &[data-active-scope='true'] [data-current='true'] {
49
+ background-color: ${activeColor};
50
+ }
51
+
52
+ ${StyledLink} {
53
+ color: ${theme.base.palette.light};
54
+ }
55
+ }
56
+
57
+ ${StyledMenuItem} {
58
+ color: ${theme.base.palette.light};
59
+
60
+ li {
61
+ color: ${theme.base.palette.light};
62
+ }
63
+
64
+ &:focus-within {
65
+ background-color: ${activeColor};
66
+ }
67
+
68
+ &:hover:not([aria-disabled='true']) {
69
+ background-color: ${hoverColor};
70
+ }
71
+ }
72
+
73
+ ${StyledFiltersPopover}, ${StyledResultsPopover} {
74
+ background-color: ${backgroundColor};
75
+ z-index: calc(${theme.base['z-index'].backdrop} + 1);
76
+ }
77
+
78
+ ${StyledSearchInput} {
79
+ border: none;
80
+ background: transparent;
81
+
82
+ ${StyledSearchButton} {
83
+ transition: borderRadius calc(${theme.base.animation.speed} * 2);
84
+ border: none;
85
+ }
86
+
87
+ ${StyledCancelButton} {
88
+ color: rgba(255, 255, 255, 0.9);
89
+ }
90
+
91
+ input {
92
+ border-color: ${backgroundColor};
93
+
94
+ &::placeholder {
95
+ color: rgba(255, 255, 255, 0.4);
96
+ }
97
+
98
+ &:focus:not([disabled]) {
99
+ border-color: ${backgroundColor};
100
+ }
101
+ }
102
+
103
+ input,
104
+ ${StyledSearchButton} {
105
+ background: ${backgroundColor};
106
+ color: rgba(255, 255, 255, 0.7);
107
+ border: transparent;
108
+
109
+ &:focus-within {
110
+ border: transparent;
111
+ }
112
+ }
113
+
114
+ &:focus-within {
115
+ ${StyledSearchButton} {
116
+ color: rgba(255, 255, 255, 0.9);
117
+ }
118
+ }
119
+ }
120
+
121
+ > ${StyledSearchInput} {
122
+ margin: 0 calc((${navWidth} - ${theme.base['hit-area']['mouse-min']}) / 2);
123
+ ${collapsed &&
124
+ isMediumOrAbove &&
125
+ css `
126
+ overflow: hidden;
127
+ `}
128
+ background: ${backgroundColor};
129
+
130
+ ${collapsed &&
131
+ isMediumOrAbove &&
132
+ css `
133
+ ${StyledSearchButton} {
134
+ border-radius: calc(
135
+ ${theme.base['border-radius']} * ${theme.components['search-input']['border-radius']}
136
+ );
137
+ height: ${maxCollapsedSize};
138
+ width: ${maxCollapsedSize};
139
+ padding: 0;
140
+
141
+ > :not(:first-child) {
142
+ display: none;
143
+ }
144
+ }
145
+
146
+ input {
147
+ padding: 0;
148
+ max-width: 0;
149
+ overflow: hidden;
150
+ }
151
+
152
+ ${StyledCancelButton} {
153
+ display: none;
154
+ }
155
+ `}
156
+ }
157
+ `;
158
+ });
159
+ StyledSearchForm.defaultProps = defaultThemeProp;
160
+ export const StyledAppShellSearchDecoration = styled.div(({ theme }) => {
161
+ return css `
162
+ width: ${theme.components.input.height};
163
+ height: ${theme.components.input.height};
164
+ border-radius: 50%;
165
+ display: flex;
166
+ align-items: center;
167
+ justify-content: center;
168
+ background: var(--background-color);
169
+ color: rgba(255, 255, 255, 0.7);
170
+ margin: 0 auto;
171
+ `;
172
+ });
173
+ StyledAppShellSearchDecoration.defaultProps = defaultThemeProp;
174
+ export const StyledAppShellSearchButton = styled(BareButton) `
175
+ width: 100%;
176
+ &:focus {
177
+ ${StyledAppShellSearchDecoration} {
178
+ outline: none;
179
+ box-shadow: inset ${props => props.theme.base.shadow['focus-inverted']};
180
+ }
181
+ }
182
+ `;
183
+ StyledAppShellSearchButton.defaultProps = defaultThemeProp;
184
+ export const StyledAppshellSearchContainer = styled.div(({ theme: { base } }) => {
185
+ return css `
186
+ padding: ${base.spacing};
187
+ `;
188
+ });
189
+ StyledAppshellSearchContainer.defaultProps = defaultThemeProp;
190
+ //# sourceMappingURL=AppShellSearch.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppShellSearch.styles.js","sourceRoot":"","sources":["../../../src/components/AppShell/AppShellSearch.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAC1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EACnB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEjD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,IAAI,CACzC,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,EAAE,EAAE;IACxC,MAAM,eAAe,GAAG,QAAQ,CAAC,GAAG,EAAE,CACpC,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC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A;eACG,IAAI,CAAC,OAAO;GACxB,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,6BAA6B,CAAC,YAAY,GAAG,gBAAgB,CAAC","sourcesContent":["import { lighten, mix } from 'polished';\nimport styled, { css } from 'styled-components';\n\nimport { defaultThemeProp } from '../../theme';\nimport { tryCatch } from '../../utils';\nimport BareButton from '../Button/BareButton';\nimport { StyledLink } from '../Link';\nimport { StyledMenuItem } from '../Menu';\nimport { StyledMenu, StyledMenuListContainer } from '../Menu/Menu.styles';\nimport { StyledSearchInput } from '../SearchInput';\nimport {\n StyledCancelButton,\n StyledFiltersPopover,\n StyledResultsPopover,\n StyledSearchButton\n} from '../SearchInput/SearchInput.styles';\nimport { StyledText } from '../Text';\nimport { StyledBackdrop } from '../Backdrop';\nimport { StyledEmptyState } from '../EmptyState';\n\nimport { navWidth } from './AppShell.styles';\n\nexport const StyledSearchForm = styled.form<{ collapsed: boolean; isMediumOrAbove: boolean }>(\n ({ theme, collapsed, isMediumOrAbove }) => {\n const backgroundColor = tryCatch(() =>\n lighten(0.1, theme.components['app-shell'].nav['background-color'])\n );\n const maxCollapsedSize = theme.components.input.height;\n const activeColor = tryCatch(() =>\n mix(0.85, theme.base.palette.dark, theme.base.palette.interactive)\n );\n const hoverColor = tryCatch(() =>\n mix(0.95, theme.base.palette.dark, theme.base.palette.interactive)\n );\n\n return css`\n flex-shrink: 0;\n justify-content: center;\n padding: ${theme.base.spacing} 0;\n --background-color: ${backgroundColor};\n\n ${StyledMenuListContainer} {\n background: transparent;\n }\n\n header {\n ${StyledText} {\n color: ${theme.base.palette.light};\n }\n }\n\n ${StyledBackdrop} {\n background: transparent;\n }\n\n ${StyledEmptyState} {\n span,\n svg {\n color: ${theme.base.palette.light};\n }\n }\n\n ${StyledMenu} {\n &[data-active-scope='true'] [data-current='true'] {\n background-color: ${activeColor};\n }\n\n ${StyledLink} {\n color: ${theme.base.palette.light};\n }\n }\n\n ${StyledMenuItem} {\n color: ${theme.base.palette.light};\n\n li {\n color: ${theme.base.palette.light};\n }\n\n &:focus-within {\n background-color: ${activeColor};\n }\n\n &:hover:not([aria-disabled='true']) {\n background-color: ${hoverColor};\n }\n }\n\n ${StyledFiltersPopover}, ${StyledResultsPopover} {\n background-color: ${backgroundColor};\n z-index: calc(${theme.base['z-index'].backdrop} + 1);\n }\n\n ${StyledSearchInput} {\n border: none;\n background: transparent;\n\n ${StyledSearchButton} {\n transition: borderRadius calc(${theme.base.animation.speed} * 2);\n border: none;\n }\n\n ${StyledCancelButton} {\n color: rgba(255, 255, 255, 0.9);\n }\n\n input {\n border-color: ${backgroundColor};\n\n &::placeholder {\n color: rgba(255, 255, 255, 0.4);\n }\n\n &:focus:not([disabled]) {\n border-color: ${backgroundColor};\n }\n }\n\n input,\n ${StyledSearchButton} {\n background: ${backgroundColor};\n color: rgba(255, 255, 255, 0.7);\n border: transparent;\n\n &:focus-within {\n border: transparent;\n }\n }\n\n &:focus-within {\n ${StyledSearchButton} {\n color: rgba(255, 255, 255, 0.9);\n }\n }\n }\n\n > ${StyledSearchInput} {\n margin: 0 calc((${navWidth} - ${theme.base['hit-area']['mouse-min']}) / 2);\n ${collapsed &&\n isMediumOrAbove &&\n css`\n overflow: hidden;\n `}\n background: ${backgroundColor};\n\n ${collapsed &&\n isMediumOrAbove &&\n css`\n ${StyledSearchButton} {\n border-radius: calc(\n ${theme.base['border-radius']} * ${theme.components['search-input']['border-radius']}\n );\n height: ${maxCollapsedSize};\n width: ${maxCollapsedSize};\n padding: 0;\n\n > :not(:first-child) {\n display: none;\n }\n }\n\n input {\n padding: 0;\n max-width: 0;\n overflow: hidden;\n }\n\n ${StyledCancelButton} {\n display: none;\n }\n `}\n }\n `;\n }\n);\n\nStyledSearchForm.defaultProps = defaultThemeProp;\n\nexport const StyledAppShellSearchDecoration = styled.div(({ theme }) => {\n return css`\n width: ${theme.components.input.height};\n height: ${theme.components.input.height};\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n background: var(--background-color);\n color: rgba(255, 255, 255, 0.7);\n margin: 0 auto;\n `;\n});\n\nStyledAppShellSearchDecoration.defaultProps = defaultThemeProp;\n\nexport const StyledAppShellSearchButton = styled(BareButton)`\n width: 100%;\n &:focus {\n ${StyledAppShellSearchDecoration} {\n outline: none;\n box-shadow: inset ${props => props.theme.base.shadow['focus-inverted']};\n }\n }\n`;\n\nStyledAppShellSearchButton.defaultProps = defaultThemeProp;\n\nexport const StyledAppshellSearchContainer = styled.div(({ theme: { base } }) => {\n return css`\n padding: ${base.spacing};\n `;\n});\n\nStyledAppshellSearchContainer.defaultProps = defaultThemeProp;\n"]}
@@ -11,7 +11,7 @@ import { useDirection, useI18n, useTheme } from '../../hooks';
11
11
  import Configuration from '../Configuration';
12
12
  import { tryCatch } from '../../utils';
13
13
  import AppShellContext from './AppShellContext';
14
- import { StyledDrawerWrapper, StyledDrawerBackButton, StyledDrawerHeading, StyledDrawerListContainer } from './AppShell.styles';
14
+ import { StyledDrawerWrapper, StyledDrawerBackButton, StyledDrawerHeading, StyledDrawerListContainer } from './Drawer.styles';
15
15
  registerIcon(arrowLeftIcon);
16
16
  export default (props) => {
17
17
  const { setDrawerOpen, drawerOpen, refocusEl, focusedImperatively } = useContext(AppShellContext);
@@ -33,7 +33,7 @@ export default (props) => {
33
33
  };
34
34
  const { ltr, rtl } = useDirection();
35
35
  const t = useI18n();
36
- return (_jsx(Configuration, { theme: appShellTheme, children: _jsxs(Drawer, { as: StyledDrawerWrapper, position: 'absolute', placement: 'right', open: drawerOpen, nullWhenClosed: true, onAfterOpen: () => {
36
+ return (_jsx(Configuration, { theme: appShellTheme, children: _jsxs(Drawer, { as: StyledDrawerWrapper, position: 'fixed', placement: 'left', open: drawerOpen, nullWhenClosed: true, onAfterOpen: () => {
37
37
  if (backButtonRef.current && document.activeElement !== backButtonRef.current) {
38
38
  focusedImperatively.current = true;
39
39
  backButtonRef.current.focus();
@@ -1 +1 @@
1
- {"version":3,"file":"Drawer.js","sourceRoot":"","sources":["../../../src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C7B,KAAC,UAAU,IACT,EAAE,EAAE,sBAAsB,EAC1B,GAAG,EAAE,aAAa,EAClB,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,gBACvB,CAAC,CAAC,YAAY,EAAE,CAAC,MAAM,CAAC,CAAC,YAErC,KAAC,IAAI,IAAC,IAAI,EAAC,YAAY,GAAG,GACf,EACZ,GAAG,IAAI,KAAC,IAAI,cAAE,MAAM,GAAQ,IACxB,EACP,KAAC,IAAI,IAAC,EAAE,EAAE,yBAAyB,EAAE,SAAS,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,YACpE,OAAO,GACH,IACA,GACK,CACjB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useContext, useRef, ReactNode } from 'react';\nimport { lighten } from 'polished';\n\nimport BareButton from '../Button/BareButton';\nimport Drawer from '../Drawer';\nimport Flex from '../Flex';\nimport Icon, { registerIcon } from '../Icon';\nimport * as arrowLeftIcon from '../Icon/icons/arrow-left.icon';\nimport Text from '../Text';\nimport { useDirection, useI18n, useTheme } from '../../hooks';\nimport Configuration from '../Configuration';\nimport { tryCatch } from '../../utils';\n\nimport AppShellContext from './AppShellContext';\nimport {\n StyledDrawerWrapper,\n StyledDrawerBackButton,\n StyledDrawerHeading,\n StyledDrawerListContainer\n} from './AppShell.styles';\n\nregisterIcon(arrowLeftIcon);\n\ninterface DrawerViewProps {\n content: ReactNode;\n header: string;\n onDrawerOpen?: () => void;\n onDrawerClose?: () => void;\n}\n\nexport default (props: DrawerViewProps) => {\n const { setDrawerOpen, drawerOpen, refocusEl, focusedImperatively } = useContext(AppShellContext);\n const { content, header, onDrawerOpen, onDrawerClose } = props;\n const theme = useTheme();\n\n const backButtonRef = useRef<HTMLButtonElement>(null);\n const appShellBg = tryCatch(() =>\n lighten(0.1, theme.components['app-shell'].nav['background-color'])\n );\n const appShellTheme = {\n base: {\n palette: {\n 'primary-background': appShellBg,\n 'foreground-color': 'rgba(255, 255, 255, 0.7)',\n interactive: theme.base.colors.blue.light\n },\n shadow: {\n focus: theme.base.shadow['focus-inverted']\n }\n }\n };\n\n const { ltr, rtl } = useDirection();\n const t = useI18n();\n\n return (\n <Configuration theme={appShellTheme}>\n <Drawer\n as={StyledDrawerWrapper}\n position='absolute'\n placement='right'\n open={drawerOpen}\n nullWhenClosed\n onAfterOpen={() => {\n if (backButtonRef.current && document.activeElement !== backButtonRef.current) {\n focusedImperatively.current = true;\n backButtonRef.current.focus();\n }\n onDrawerOpen?.();\n }}\n onAfterClose={() => {\n if (refocusEl && document.activeElement !== refocusEl) {\n focusedImperatively.current = true;\n refocusEl.focus();\n }\n onDrawerClose?.();\n }}\n >\n <Flex as={StyledDrawerHeading} container={{ alignItems: 'center' }}>\n {rtl && <Text>{header}</Text>}\n <BareButton\n as={StyledDrawerBackButton}\n ref={backButtonRef}\n onClick={() => setDrawerOpen(false)}\n aria-label={t('close_noun', [header])}\n >\n <Icon name='arrow-left' />\n </BareButton>\n {ltr && <Text>{header}</Text>}\n </Flex>\n <Flex as={StyledDrawerListContainer} container={{ direction: 'column' }}>\n {content}\n </Flex>\n </Drawer>\n </Configuration>\n );\n};\n"]}
1
+ {"version":3,"file":"Drawer.js","sourceRoot":"","sources":["../../../src/components/AppShell/Drawer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,EAAa,MAAM,OAAO,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAEnC,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAC9C,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,IAAI,EAAE,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,aAAa,MAAM,+BAA+B,CAAC;AAC/D,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,a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Node } from 'react';\nimport { lighten } from 'polished';\n\nimport BareButton from '../Button/BareButton';\nimport Drawer from '../Drawer';\nimport Flex from '../Flex';\nimport Icon, { registerIcon } from '../Icon';\nimport * as arrowLeftIcon from '../Icon/icons/arrow-left.icon';\nimport Text from '../Text';\nimport { useDirection, useI18n, useTheme } from '../../hooks';\nimport Configuration from '../Configuration';\nimport { tryCatch } from '../../utils';\n\nimport AppShellContext from './AppShellContext';\nimport {\n StyledDrawerWrapper,\n StyledDrawerBackButton,\n StyledDrawerHeading,\n StyledDrawerListContainer\n} from './Drawer.styles';\n\nregisterIcon(arrowLeftIcon);\n\ninterface DrawerViewProps {\n content: ReactNode;\n header: string;\n onDrawerOpen?: () => void;\n onDrawerClose?: () => void;\n}\n\nexport default (props: DrawerViewProps) => {\n const { setDrawerOpen, drawerOpen, refocusEl, focusedImperatively } = useContext(AppShellContext);\n const { content, header, onDrawerOpen, onDrawerClose } = props;\n const theme = useTheme();\n\n const backButtonRef = useRef<HTMLButtonElement>(null);\n const appShellBg = tryCatch(() =>\n lighten(0.1, theme.components['app-shell'].nav['background-color'])\n );\n const appShellTheme = {\n base: {\n palette: {\n 'primary-background': appShellBg,\n 'foreground-color': 'rgba(255, 255, 255, 0.7)',\n interactive: theme.base.colors.blue.light\n },\n shadow: {\n focus: theme.base.shadow['focus-inverted']\n }\n }\n };\n\n const { ltr, rtl } = useDirection();\n const t = useI18n();\n\n return (\n <Configuration theme={appShellTheme}>\n <Drawer\n as={StyledDrawerWrapper}\n position='fixed'\n placement='left'\n open={drawerOpen}\n nullWhenClosed\n onAfterOpen={() => {\n if (backButtonRef.current && document.activeElement !== backButtonRef.current) {\n focusedImperatively.current = true;\n backButtonRef.current.focus();\n }\n onDrawerOpen?.();\n }}\n onAfterClose={() => {\n if (refocusEl && document.activeElement !== refocusEl) {\n focusedImperatively.current = true;\n refocusEl.focus();\n }\n onDrawerClose?.();\n }}\n >\n <Flex as={StyledDrawerHeading} container={{ alignItems: 'center' }}>\n {rtl && <Text>{header}</Text>}\n <BareButton\n as={StyledDrawerBackButton}\n ref={backButtonRef}\n onClick={() => setDrawerOpen(false)}\n aria-label={t('close_noun', [header])}\n >\n <Icon name='arrow-left' />\n </BareButton>\n {ltr && <Text>{header}</Text>}\n </Flex>\n <Flex as={StyledDrawerListContainer} container={{ direction: 'column' }}>\n {content}\n </Flex>\n </Drawer>\n </Configuration>\n );\n};\n"]}
@@ -0,0 +1,15 @@
1
+ import { DrawerProps } from '../Drawer';
2
+ export declare const StyledDrawerWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, DrawerProps, never>;
3
+ export declare const StyledDrawerHeading: import("styled-components").StyledComponent<"header", import("styled-components").DefaultTheme, {}, never>;
4
+ export declare const StyledDrawerBackButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
5
+ export declare const StyledDrawerList: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, {
6
+ displayPins: boolean;
7
+ }, never>;
8
+ export declare const StyledDrawerMetaList: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, {}, never>;
9
+ export declare const StyledDrawerPinButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
10
+ export declare const EmptyDrawerVisual: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
11
+ export declare const StyledDrawerListHeading: import("styled-components").StyledComponent<"h3", import("styled-components").DefaultTheme, {}, never>;
12
+ export declare const StyledDrawerViewAll: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, {}, never>;
13
+ export declare const StyledDrawerListSection: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
14
+ export declare const StyledDrawerListContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
15
+ //# sourceMappingURL=Drawer.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Drawer.styles.d.ts","sourceRoot":"","sources":["../../../src/components/AppShell/Drawer.styles.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAKxC,eAAO,MAAM,mBAAmB,kHAQ9B,CAAC;AAIH,eAAO,MAAM,mBAAmB,4GAqB9B,CAAC;AAIH,eAAO,MAAM,sBAAsB,4GAmBjC,CAAC;AAIH,eAAO,MAAM,gBAAgB;iBAA4B,OAAO;SAE9D,CAAC;AAIH,eAAO,MAAM,oBAAoB,wGAIhC,CAAC;AAEF,eAAO,MAAM,qBAAqB,4GA6BhC,CAAC;AAIH,eAAO,MAAM,iBAAiB,yGAK5B,CAAC;AAIH,eAAO,MAAM,uBAAuB,wGAQlC,CAAC;AAIH,eAAO,MAAM,mBAAmB,uGAgB9B,CAAC;AAIH,eAAO,MAAM,uBAAuB,yGAUlC,CAAC;AAIH,eAAO,MAAM,yBAAyB,yGAOpC,CAAC"}
@@ -0,0 +1,153 @@
1
+ import { lighten } from 'polished';
2
+ import styled, { css } from 'styled-components';
3
+ import { useDirection } from '../../hooks';
4
+ import { calculateFontSize } from '../../styles';
5
+ import { defaultThemeProp } from '../../theme';
6
+ import { tryCatch } from '../../utils';
7
+ import { StyledIcon } from '../Icon';
8
+ import { navOpenWidth } from './AppShell.styles';
9
+ export const StyledDrawerWrapper = styled.div(({ theme, open }) => {
10
+ return css `
11
+ background: ${theme.components['app-shell'].nav['background-color']};
12
+ width: ${navOpenWidth};
13
+ height: 100%;
14
+ color: rgba(255, 255, 255, 0.7);
15
+ opacity: ${open ? 1 : 0};
16
+ `;
17
+ });
18
+ StyledDrawerWrapper.defaultProps = defaultThemeProp;
19
+ export const StyledDrawerHeading = styled.header(({ theme }) => {
20
+ const fontSize = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);
21
+ return css `
22
+ padding: ${theme.base.spacing} calc(2 * ${theme.base.spacing});
23
+ line-height: 1;
24
+
25
+ span {
26
+ font-size: ${fontSize.s};
27
+ font-weight: ${theme.base['font-weight']['semi-bold']};
28
+ margin: 0 auto;
29
+ position: relative;
30
+ left: -0.7rem;
31
+ }
32
+
33
+ svg {
34
+ font-size: ${fontSize.xxl};
35
+ cursor: pointer;
36
+ color: rgba(255, 255, 255, 0.7);
37
+ }
38
+ `;
39
+ });
40
+ StyledDrawerHeading.defaultProps = defaultThemeProp;
41
+ export const StyledDrawerBackButton = styled.button(({ theme }) => {
42
+ return css `
43
+ height: ${theme.base['hit-area']['mouse-min']};
44
+ width: ${theme.base['hit-area']['mouse-min']};
45
+ border-radius: calc(
46
+ ${`${theme.base['border-radius']} * ${theme.components.button['border-radius']}`}
47
+ );
48
+
49
+ &:hover,
50
+ &:focus {
51
+ color: ${theme.base.colors.white};
52
+ background-color: rgba(255, 255, 255, 0.05);
53
+ }
54
+
55
+ &:focus {
56
+ outline: none;
57
+ box-shadow: inset ${theme.base.shadow['focus-inverted']};
58
+ }
59
+ `;
60
+ });
61
+ StyledDrawerBackButton.defaultProps = defaultThemeProp;
62
+ export const StyledDrawerList = styled.ul(() => {
63
+ return css ``;
64
+ });
65
+ StyledDrawerList.defaultProps = defaultThemeProp;
66
+ export const StyledDrawerMetaList = styled.ul `
67
+ li {
68
+ color: inherit;
69
+ }
70
+ `;
71
+ export const StyledDrawerPinButton = styled.button(({ theme }) => {
72
+ const fontSize = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);
73
+ const { ltr } = useDirection();
74
+ return css `
75
+ color: inherit;
76
+ padding: calc(2 * ${theme.base.spacing});
77
+ cursor: pointer;
78
+ font-size: ${fontSize.xxl};
79
+
80
+ ${StyledIcon} {
81
+ display: block;
82
+ ${ltr &&
83
+ css `
84
+ transform: scaleX(-1);
85
+ `}
86
+ }
87
+
88
+ &:hover,
89
+ &:focus {
90
+ color: ${theme.base.colors.white};
91
+ background-color: rgba(255, 255, 255, 0.05);
92
+ }
93
+
94
+ &:focus {
95
+ outline: none;
96
+ box-shadow: inset ${theme.base.shadow['focus-inverted']};
97
+ }
98
+ `;
99
+ });
100
+ StyledDrawerPinButton.defaultProps = defaultThemeProp;
101
+ export const EmptyDrawerVisual = styled.div(({ theme }) => {
102
+ return css `
103
+ width: calc(4 * ${theme.base.spacing});
104
+ height: calc(4 * ${theme.base.spacing});
105
+ `;
106
+ });
107
+ EmptyDrawerVisual.defaultProps = defaultThemeProp;
108
+ export const StyledDrawerListHeading = styled.h3(({ theme }) => {
109
+ return css `
110
+ position: sticky;
111
+ top: 0;
112
+ padding: ${theme.base.spacing} calc(2 * ${theme.base.spacing});
113
+ background-color: hsl(207 14% 13% / 1);
114
+ z-index: 1;
115
+ `;
116
+ });
117
+ StyledDrawerListHeading.defaultProps = defaultThemeProp;
118
+ export const StyledDrawerViewAll = styled.a(({ theme }) => {
119
+ return css `
120
+ position: sticky;
121
+ bottom: 0;
122
+ padding: ${theme.base.spacing} 0;
123
+ color: inherit;
124
+ background-color: ${theme.components['app-shell'].nav['background-color']};
125
+ text-align: center;
126
+ margin-top: 0.0625rem;
127
+
128
+ &:hover,
129
+ &:focus {
130
+ color: ${theme.base.colors.white};
131
+ box-shadow: unset;
132
+ }
133
+ `;
134
+ });
135
+ StyledDrawerViewAll.defaultProps = defaultThemeProp;
136
+ export const StyledDrawerListSection = styled.div(({ theme }) => {
137
+ const borderColor = tryCatch(() => lighten(0.1, theme.components['app-shell'].nav['background-color']));
138
+ return css `
139
+ border-top: 0.0625rem solid ${borderColor};
140
+ min-height: max(20%, 8rem);
141
+ overflow-y: auto;
142
+ `;
143
+ });
144
+ StyledDrawerListSection.defaultProps = defaultThemeProp;
145
+ export const StyledDrawerListContainer = styled.div(({ theme }) => {
146
+ const fontSize = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);
147
+ return css `
148
+ height: calc(100% - 4 * ${theme.base.spacing} - ${fontSize.xxl});
149
+ overflow: auto;
150
+ `;
151
+ });
152
+ StyledDrawerListContainer.defaultProps = defaultThemeProp;
153
+ //# sourceMappingURL=Drawer.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Drawer.styles.js","sourceRoot":"","sources":["../../../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AAC,CAAC,CAAC;AAEH,mBAAmB,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAEpD,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IAC9D,MAAM,WAAW,GAAG,QAAQ,CAAC,GAAG,EAAE,CAChC,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC,CACpE,CAAC;IAEF,OAAO,GAAG,CAAA;kCACsB,WAAW;;;GAG1C,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,uBAAuB,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAExD,MAAM,CAAC,MAAM,yBAAyB,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IAChE,MAAM,QAAQ,GAAG,iBAAiB,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC;IAEtF,OAAO,GAAG,CAAA;8BACkB,KAAK,CAAC,IAAI,CAAC,OAAO,MAAM,QAAQ,CAAC,GAAG;;GAE/D,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,yBAAyB,CAAC,YAAY,GAAG,gBAAgB,CAAC","sourcesContent":["import { lighten } from 'polished';\nimport styled, { css } from 'styled-components';\n\nimport { useDirection } from '../../hooks';\nimport { calculateFontSize } from '../../styles';\nimport { defaultThemeProp } from '../../theme';\nimport { tryCatch } from '../../utils';\nimport { DrawerProps } from '../Drawer';\nimport { StyledIcon } from '../Icon';\n\nimport { navOpenWidth } from './AppShell.styles';\n\nexport const StyledDrawerWrapper = styled.div<DrawerProps>(({ theme, open }) => {\n return css`\n background: ${theme.components['app-shell'].nav['background-color']};\n width: ${navOpenWidth};\n height: 100%;\n color: rgba(255, 255, 255, 0.7);\n opacity: ${open ? 1 : 0};\n `;\n});\n\nStyledDrawerWrapper.defaultProps = defaultThemeProp;\n\nexport const StyledDrawerHeading = styled.header(({ theme }) => {\n const fontSize = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);\n\n return css`\n padding: ${theme.base.spacing} calc(2 * ${theme.base.spacing});\n line-height: 1;\n\n span {\n font-size: ${fontSize.s};\n font-weight: ${theme.base['font-weight']['semi-bold']};\n margin: 0 auto;\n position: relative;\n left: -0.7rem;\n }\n\n svg {\n font-size: ${fontSize.xxl};\n cursor: pointer;\n color: rgba(255, 255, 255, 0.7);\n }\n `;\n});\n\nStyledDrawerHeading.defaultProps = defaultThemeProp;\n\nexport const StyledDrawerBackButton = styled.button(({ theme }) => {\n return css`\n height: ${theme.base['hit-area']['mouse-min']};\n width: ${theme.base['hit-area']['mouse-min']};\n border-radius: calc(\n ${`${theme.base['border-radius']} * ${theme.components.button['border-radius']}`}\n );\n\n &:hover,\n &:focus {\n color: ${theme.base.colors.white};\n background-color: rgba(255, 255, 255, 0.05);\n }\n\n &:focus {\n outline: none;\n box-shadow: inset ${theme.base.shadow['focus-inverted']};\n }\n `;\n});\n\nStyledDrawerBackButton.defaultProps = defaultThemeProp;\n\nexport const StyledDrawerList = styled.ul<{ displayPins: boolean }>(() => {\n return css``;\n});\n\nStyledDrawerList.defaultProps = defaultThemeProp;\n\nexport const StyledDrawerMetaList = styled.ul`\n li {\n color: inherit;\n }\n`;\n\nexport const StyledDrawerPinButton = styled.button(({ theme }) => {\n const fontSize = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);\n const { ltr } = useDirection();\n\n return css`\n color: inherit;\n padding: calc(2 * ${theme.base.spacing});\n cursor: pointer;\n font-size: ${fontSize.xxl};\n\n ${StyledIcon} {\n display: block;\n ${ltr &&\n css`\n transform: scaleX(-1);\n `}\n }\n\n &:hover,\n &:focus {\n color: ${theme.base.colors.white};\n background-color: rgba(255, 255, 255, 0.05);\n }\n\n &:focus {\n outline: none;\n box-shadow: inset ${theme.base.shadow['focus-inverted']};\n }\n `;\n});\n\nStyledDrawerPinButton.defaultProps = defaultThemeProp;\n\nexport const EmptyDrawerVisual = styled.div(({ theme }) => {\n return css`\n width: calc(4 * ${theme.base.spacing});\n height: calc(4 * ${theme.base.spacing});\n `;\n});\n\nEmptyDrawerVisual.defaultProps = defaultThemeProp;\n\nexport const StyledDrawerListHeading = styled.h3(({ theme }) => {\n return css`\n position: sticky;\n top: 0;\n padding: ${theme.base.spacing} calc(2 * ${theme.base.spacing});\n background-color: hsl(207 14% 13% / 1);\n z-index: 1;\n `;\n});\n\nStyledDrawerListHeading.defaultProps = defaultThemeProp;\n\nexport const StyledDrawerViewAll = styled.a(({ theme }) => {\n return css`\n position: sticky;\n bottom: 0;\n padding: ${theme.base.spacing} 0;\n color: inherit;\n background-color: ${theme.components['app-shell'].nav['background-color']};\n text-align: center;\n margin-top: 0.0625rem;\n\n &:hover,\n &:focus {\n color: ${theme.base.colors.white};\n box-shadow: unset;\n }\n `;\n});\n\nStyledDrawerViewAll.defaultProps = defaultThemeProp;\n\nexport const StyledDrawerListSection = styled.div(({ theme }) => {\n const borderColor = tryCatch(() =>\n lighten(0.1, theme.components['app-shell'].nav['background-color'])\n );\n\n return css`\n border-top: 0.0625rem solid ${borderColor};\n min-height: max(20%, 8rem);\n overflow-y: auto;\n `;\n});\n\nStyledDrawerListSection.defaultProps = defaultThemeProp;\n\nexport const StyledDrawerListContainer = styled.div(({ theme }) => {\n const fontSize = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);\n\n return css`\n height: calc(100% - 4 * ${theme.base.spacing} - ${fontSize.xxl});\n overflow: auto;\n `;\n});\n\nStyledDrawerListContainer.defaultProps = defaultThemeProp;\n"]}
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ import { NavListProps } from './AppShell.types';
3
+ declare const NavigationList: FC<NavListProps>;
4
+ export default NavigationList;
5
+ //# sourceMappingURL=NavigationList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavigationList.d.ts","sourceRoot":"","sources":["../../../src/components/AppShell/NavigationList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,EAAE,EAQH,MAAM,OAAO,CAAC;AAsBf,OAAO,EAGL,YAAY,EAEb,MAAM,kBAAkB,CAAC;AAuN1B,QAAA,MAAM,cAAc,EAAE,EAAE,CAAC,YAAY,CA4CpC,CAAC;AAEF,eAAe,cAAc,CAAC"}