@carbon-labs/wc-global-header 0.10.0 → 0.12.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 (263) hide show
  1. package/es/wc-global-header.css +8 -0
  2. package/es/wc-global-header.mjs +7184 -0
  3. package/package.json +7 -6
  4. package/es/_virtual/_commonjsHelpers.js +0 -6
  5. package/es/_virtual/_commonjsHelpers.js.map +0 -1
  6. package/es/_virtual/index.js +0 -8
  7. package/es/_virtual/index.js.map +0 -1
  8. package/es/_virtual/index2.js +0 -4
  9. package/es/_virtual/index2.js.map +0 -1
  10. package/es/components/global-header/global-header.d.ts +0 -19
  11. package/es/components/global-header/global-header.js +0 -27
  12. package/es/components/global-header/global-header.js.map +0 -1
  13. package/es/components/global-header/src/components/AuthContext/AuthContext.d.ts +0 -26
  14. package/es/components/global-header/src/components/AuthContext/AuthContext.js +0 -238
  15. package/es/components/global-header/src/components/AuthContext/AuthContext.js.map +0 -1
  16. package/es/components/global-header/src/components/AuthContext/AuthContext.types.d.ts +0 -17
  17. package/es/components/global-header/src/components/AuthContext/__stories__/AuthContext.stories.d.ts +0 -12
  18. package/es/components/global-header/src/components/AuthContext/__tests__/AuthContext.test.d.ts +0 -9
  19. package/es/components/global-header/src/components/AuthContext/_index.scss.js +0 -6
  20. package/es/components/global-header/src/components/AuthContext/_index.scss.js.map +0 -1
  21. package/es/components/global-header/src/components/CommonHeader/CommonHeader.d.ts +0 -36
  22. package/es/components/global-header/src/components/CommonHeader/CommonHeader.js +0 -247
  23. package/es/components/global-header/src/components/CommonHeader/CommonHeader.js.map +0 -1
  24. package/es/components/global-header/src/components/CommonHeader/WideSideNav.d.ts +0 -15
  25. package/es/components/global-header/src/components/CommonHeader/WideSideNav.js +0 -32
  26. package/es/components/global-header/src/components/CommonHeader/WideSideNav.js.map +0 -1
  27. package/es/components/global-header/src/components/CommonHeader/__stories__/CommonHeader.stories.d.ts +0 -20
  28. package/es/components/global-header/src/components/CommonHeader/__stories__/SideNav.stories.d.ts +0 -16
  29. package/es/components/global-header/src/components/CommonHeader/__tests__/CommonHeader.test.d.ts +0 -9
  30. package/es/components/global-header/src/components/CommonHeader/__tests__/WideSideNav.test.d.ts +0 -9
  31. package/es/components/global-header/src/components/CommonHeader/_index.scss.js +0 -6
  32. package/es/components/global-header/src/components/CommonHeader/_index.scss.js.map +0 -1
  33. package/es/components/global-header/src/components/HeaderContext/HeaderContext.d.ts +0 -43
  34. package/es/components/global-header/src/components/HeaderContext/HeaderContext.js +0 -311
  35. package/es/components/global-header/src/components/HeaderContext/HeaderContext.js.map +0 -1
  36. package/es/components/global-header/src/components/HeaderContext/HeaderContext.types.d.ts +0 -46
  37. package/es/components/global-header/src/components/HeaderContext/__tests__/HeaderContext.test.d.ts +0 -9
  38. package/es/components/global-header/src/components/HeaderContext/_index.scss.js +0 -6
  39. package/es/components/global-header/src/components/HeaderContext/_index.scss.js.map +0 -1
  40. package/es/components/global-header/src/components/HybridIpaasHeader/HybridIpaasHeader.d.ts +0 -42
  41. package/es/components/global-header/src/components/HybridIpaasHeader/HybridIpaasHeader.js +0 -238
  42. package/es/components/global-header/src/components/HybridIpaasHeader/HybridIpaasHeader.js.map +0 -1
  43. package/es/components/global-header/src/components/HybridIpaasHeader/__stories__/HybridIPaasHeader.stories.d.ts +0 -20
  44. package/es/components/global-header/src/components/HybridIpaasHeader/__tests__/HybridIpaasHeader.test.d.ts +0 -10
  45. package/es/components/global-header/src/components/LogoutHeader/LogoutHeader.d.ts +0 -17
  46. package/es/components/global-header/src/components/LogoutHeader/LogoutHeader.js +0 -58
  47. package/es/components/global-header/src/components/LogoutHeader/LogoutHeader.js.map +0 -1
  48. package/es/components/global-header/src/components/LogoutHeader/__stories__/LogoutHeader.stories.d.ts +0 -15
  49. package/es/components/global-header/src/components/LogoutHeader/__tests__/LogoutHeader.test.d.ts +0 -9
  50. package/es/components/global-header/src/components/LogoutHeader/_index.scss.js +0 -6
  51. package/es/components/global-header/src/components/LogoutHeader/_index.scss.js.map +0 -1
  52. package/es/components/global-header/src/components/LogoutTile/LogoutTile.d.ts +0 -24
  53. package/es/components/global-header/src/components/LogoutTile/LogoutTile.js +0 -72
  54. package/es/components/global-header/src/components/LogoutTile/LogoutTile.js.map +0 -1
  55. package/es/components/global-header/src/components/LogoutTile/__stories__/LogoutTile.stories.d.ts +0 -14
  56. package/es/components/global-header/src/components/LogoutTile/__tests__/LogoutTile.test.d.ts +0 -9
  57. package/es/components/global-header/src/components/LogoutTile/_index.scss.js +0 -6
  58. package/es/components/global-header/src/components/LogoutTile/_index.scss.js.map +0 -1
  59. package/es/components/global-header/src/components/ProfilePopover/ProfilePopover.d.ts +0 -22
  60. package/es/components/global-header/src/components/ProfilePopover/ProfilePopover.js +0 -100
  61. package/es/components/global-header/src/components/ProfilePopover/ProfilePopover.js.map +0 -1
  62. package/es/components/global-header/src/components/ProfilePopover/__tests__/ProfilePopover.test.d.ts +0 -9
  63. package/es/components/global-header/src/components/ProfilePopover/_index.scss.js +0 -6
  64. package/es/components/global-header/src/components/ProfilePopover/_index.scss.js.map +0 -1
  65. package/es/components/global-header/src/components/Search/Search.d.ts +0 -25
  66. package/es/components/global-header/src/components/Search/Search.js +0 -72
  67. package/es/components/global-header/src/components/Search/Search.js.map +0 -1
  68. package/es/components/global-header/src/components/Search/__tests__/Search.test.d.ts +0 -9
  69. package/es/components/global-header/src/components/Search/_index.scss.js +0 -6
  70. package/es/components/global-header/src/components/Search/_index.scss.js.map +0 -1
  71. package/es/components/global-header/src/components/SideNavItem/SideNavItem.d.ts +0 -31
  72. package/es/components/global-header/src/components/SideNavItem/SideNavItem.js +0 -214
  73. package/es/components/global-header/src/components/SideNavItem/SideNavItem.js.map +0 -1
  74. package/es/components/global-header/src/components/SideNavItem/SideNavItem.scss.js +0 -6
  75. package/es/components/global-header/src/components/SideNavItem/SideNavItem.scss.js.map +0 -1
  76. package/es/components/global-header/src/components/SideNavItem/__tests__/SideNavItem.test.d.ts +0 -9
  77. package/es/components/global-header/src/components/Switcher/Switcher.d.ts +0 -29
  78. package/es/components/global-header/src/components/Switcher/Switcher.js +0 -188
  79. package/es/components/global-header/src/components/Switcher/Switcher.js.map +0 -1
  80. package/es/components/global-header/src/components/Switcher/Switcher.types.d.ts +0 -11
  81. package/es/components/global-header/src/components/Switcher/__tests__/Switcher.test.d.ts +0 -9
  82. package/es/components/global-header/src/components/Switcher/_index.scss.js +0 -6
  83. package/es/components/global-header/src/components/Switcher/_index.scss.js.map +0 -1
  84. package/es/components/global-header/src/components/TrialContent/TrialContent.d.ts +0 -11
  85. package/es/components/global-header/src/components/TrialContent/TrialContent.js +0 -74
  86. package/es/components/global-header/src/components/TrialContent/TrialContent.js.map +0 -1
  87. package/es/components/global-header/src/components/TrialContent/TrialContent.types.d.ts +0 -12
  88. package/es/components/global-header/src/components/TrialContent/__stories__/TrialContent.stories.d.ts +0 -14
  89. package/es/components/global-header/src/components/TrialPopover/TrialPopover.d.ts +0 -23
  90. package/es/components/global-header/src/components/TrialPopover/TrialPopover.js +0 -79
  91. package/es/components/global-header/src/components/TrialPopover/TrialPopover.js.map +0 -1
  92. package/es/components/global-header/src/components/TrialPopover/__tests__/TrialPopover.test.d.ts +0 -9
  93. package/es/components/global-header/src/components/TrialPopover/_index.scss.js +0 -6
  94. package/es/components/global-header/src/components/TrialPopover/_index.scss.js.map +0 -1
  95. package/es/components/global-header/src/components/UnauthenticatedContext/UnauthenticatedContext.d.ts +0 -19
  96. package/es/components/global-header/src/components/UnauthenticatedContext/UnauthenticatedContext.js +0 -63
  97. package/es/components/global-header/src/components/UnauthenticatedContext/UnauthenticatedContext.js.map +0 -1
  98. package/es/components/global-header/src/components/UnauthenticatedContext/UnauthenticatedContext.stories.d.ts +0 -15
  99. package/es/components/global-header/src/components/UnauthenticatedContext/__tests__/UnauthenticatedContext.test.d.ts +0 -9
  100. package/es/components/global-header/src/components/UserProfileImage/UserProfileImage.d.ts +0 -31
  101. package/es/components/global-header/src/components/UserProfileImage/UserProfileImage.js +0 -104
  102. package/es/components/global-header/src/components/UserProfileImage/UserProfileImage.js.map +0 -1
  103. package/es/components/global-header/src/components/UserProfileImage/UserProfileImage.scss.js +0 -6
  104. package/es/components/global-header/src/components/UserProfileImage/UserProfileImage.scss.js.map +0 -1
  105. package/es/components/global-header/src/components/UserProfileImage/UserProfileImage.types.d.ts +0 -21
  106. package/es/components/global-header/src/components/UserProfileImage/__tests__/UserProfileImage.test.d.ts +0 -9
  107. package/es/components/global-header/src/components/_index.scss.js +0 -6
  108. package/es/components/global-header/src/components/_index.scss.js.map +0 -1
  109. package/es/components/global-header/src/constant.d.ts +0 -53
  110. package/es/components/global-header/src/constant.js +0 -66
  111. package/es/components/global-header/src/constant.js.map +0 -1
  112. package/es/components/global-header/src/global-header.template.d.ts +0 -16
  113. package/es/components/global-header/src/global-header.template.js +0 -20
  114. package/es/components/global-header/src/global-header.template.js.map +0 -1
  115. package/es/components/global-header/src/globals/__tests__/useScript.test.d.ts +0 -9
  116. package/es/components/global-header/src/globals/__tests__/utils.test.d.ts +0 -9
  117. package/es/components/global-header/src/globals/useScript.d.ts +0 -10
  118. package/es/components/global-header/src/globals/useScript.js +0 -47
  119. package/es/components/global-header/src/globals/useScript.js.map +0 -1
  120. package/es/components/global-header/src/globals/utils.d.ts +0 -22
  121. package/es/components/global-header/src/globals/utils.js +0 -89
  122. package/es/components/global-header/src/globals/utils.js.map +0 -1
  123. package/es/components/global-header/src/index.d.ts +0 -12
  124. package/es/components/global-header/src/index.scss.js +0 -6
  125. package/es/components/global-header/src/index.scss.js.map +0 -1
  126. package/es/components/global-header/src/types/Header.types.d.ts +0 -267
  127. package/es/components/global-header/src/types/Header.types.js +0 -22
  128. package/es/components/global-header/src/types/Header.types.js.map +0 -1
  129. package/es/index.d.ts +0 -9
  130. package/es/index.js +0 -6
  131. package/es/index.js.map +0 -1
  132. package/es/node_modules/classnames/index.js +0 -86
  133. package/es/node_modules/classnames/index.js.map +0 -1
  134. package/lib/_virtual/_commonjsHelpers.js +0 -8
  135. package/lib/_virtual/_commonjsHelpers.js.map +0 -1
  136. package/lib/_virtual/index.js +0 -12
  137. package/lib/_virtual/index.js.map +0 -1
  138. package/lib/_virtual/index2.js +0 -6
  139. package/lib/_virtual/index2.js.map +0 -1
  140. package/lib/components/global-header/global-header.d.ts +0 -19
  141. package/lib/components/global-header/global-header.js +0 -46
  142. package/lib/components/global-header/global-header.js.map +0 -1
  143. package/lib/components/global-header/src/components/AuthContext/AuthContext.d.ts +0 -26
  144. package/lib/components/global-header/src/components/AuthContext/AuthContext.js +0 -238
  145. package/lib/components/global-header/src/components/AuthContext/AuthContext.js.map +0 -1
  146. package/lib/components/global-header/src/components/AuthContext/AuthContext.types.d.ts +0 -17
  147. package/lib/components/global-header/src/components/AuthContext/__stories__/AuthContext.stories.d.ts +0 -12
  148. package/lib/components/global-header/src/components/AuthContext/__tests__/AuthContext.test.d.ts +0 -9
  149. package/lib/components/global-header/src/components/AuthContext/_index.scss.js +0 -10
  150. package/lib/components/global-header/src/components/AuthContext/_index.scss.js.map +0 -1
  151. package/lib/components/global-header/src/components/CommonHeader/CommonHeader.d.ts +0 -36
  152. package/lib/components/global-header/src/components/CommonHeader/CommonHeader.js +0 -247
  153. package/lib/components/global-header/src/components/CommonHeader/CommonHeader.js.map +0 -1
  154. package/lib/components/global-header/src/components/CommonHeader/WideSideNav.d.ts +0 -15
  155. package/lib/components/global-header/src/components/CommonHeader/WideSideNav.js +0 -32
  156. package/lib/components/global-header/src/components/CommonHeader/WideSideNav.js.map +0 -1
  157. package/lib/components/global-header/src/components/CommonHeader/__stories__/CommonHeader.stories.d.ts +0 -20
  158. package/lib/components/global-header/src/components/CommonHeader/__stories__/SideNav.stories.d.ts +0 -16
  159. package/lib/components/global-header/src/components/CommonHeader/__tests__/CommonHeader.test.d.ts +0 -9
  160. package/lib/components/global-header/src/components/CommonHeader/__tests__/WideSideNav.test.d.ts +0 -9
  161. package/lib/components/global-header/src/components/CommonHeader/_index.scss.js +0 -10
  162. package/lib/components/global-header/src/components/CommonHeader/_index.scss.js.map +0 -1
  163. package/lib/components/global-header/src/components/HeaderContext/HeaderContext.d.ts +0 -43
  164. package/lib/components/global-header/src/components/HeaderContext/HeaderContext.js +0 -311
  165. package/lib/components/global-header/src/components/HeaderContext/HeaderContext.js.map +0 -1
  166. package/lib/components/global-header/src/components/HeaderContext/HeaderContext.types.d.ts +0 -46
  167. package/lib/components/global-header/src/components/HeaderContext/__tests__/HeaderContext.test.d.ts +0 -9
  168. package/lib/components/global-header/src/components/HeaderContext/_index.scss.js +0 -10
  169. package/lib/components/global-header/src/components/HeaderContext/_index.scss.js.map +0 -1
  170. package/lib/components/global-header/src/components/HybridIpaasHeader/HybridIpaasHeader.d.ts +0 -42
  171. package/lib/components/global-header/src/components/HybridIpaasHeader/HybridIpaasHeader.js +0 -238
  172. package/lib/components/global-header/src/components/HybridIpaasHeader/HybridIpaasHeader.js.map +0 -1
  173. package/lib/components/global-header/src/components/HybridIpaasHeader/__stories__/HybridIPaasHeader.stories.d.ts +0 -20
  174. package/lib/components/global-header/src/components/HybridIpaasHeader/__tests__/HybridIpaasHeader.test.d.ts +0 -10
  175. package/lib/components/global-header/src/components/LogoutHeader/LogoutHeader.d.ts +0 -17
  176. package/lib/components/global-header/src/components/LogoutHeader/LogoutHeader.js +0 -58
  177. package/lib/components/global-header/src/components/LogoutHeader/LogoutHeader.js.map +0 -1
  178. package/lib/components/global-header/src/components/LogoutHeader/__stories__/LogoutHeader.stories.d.ts +0 -15
  179. package/lib/components/global-header/src/components/LogoutHeader/__tests__/LogoutHeader.test.d.ts +0 -9
  180. package/lib/components/global-header/src/components/LogoutHeader/_index.scss.js +0 -10
  181. package/lib/components/global-header/src/components/LogoutHeader/_index.scss.js.map +0 -1
  182. package/lib/components/global-header/src/components/LogoutTile/LogoutTile.d.ts +0 -24
  183. package/lib/components/global-header/src/components/LogoutTile/LogoutTile.js +0 -72
  184. package/lib/components/global-header/src/components/LogoutTile/LogoutTile.js.map +0 -1
  185. package/lib/components/global-header/src/components/LogoutTile/__stories__/LogoutTile.stories.d.ts +0 -14
  186. package/lib/components/global-header/src/components/LogoutTile/__tests__/LogoutTile.test.d.ts +0 -9
  187. package/lib/components/global-header/src/components/LogoutTile/_index.scss.js +0 -10
  188. package/lib/components/global-header/src/components/LogoutTile/_index.scss.js.map +0 -1
  189. package/lib/components/global-header/src/components/ProfilePopover/ProfilePopover.d.ts +0 -22
  190. package/lib/components/global-header/src/components/ProfilePopover/ProfilePopover.js +0 -100
  191. package/lib/components/global-header/src/components/ProfilePopover/ProfilePopover.js.map +0 -1
  192. package/lib/components/global-header/src/components/ProfilePopover/__tests__/ProfilePopover.test.d.ts +0 -9
  193. package/lib/components/global-header/src/components/ProfilePopover/_index.scss.js +0 -10
  194. package/lib/components/global-header/src/components/ProfilePopover/_index.scss.js.map +0 -1
  195. package/lib/components/global-header/src/components/Search/Search.d.ts +0 -25
  196. package/lib/components/global-header/src/components/Search/Search.js +0 -72
  197. package/lib/components/global-header/src/components/Search/Search.js.map +0 -1
  198. package/lib/components/global-header/src/components/Search/__tests__/Search.test.d.ts +0 -9
  199. package/lib/components/global-header/src/components/Search/_index.scss.js +0 -10
  200. package/lib/components/global-header/src/components/Search/_index.scss.js.map +0 -1
  201. package/lib/components/global-header/src/components/SideNavItem/SideNavItem.d.ts +0 -31
  202. package/lib/components/global-header/src/components/SideNavItem/SideNavItem.js +0 -214
  203. package/lib/components/global-header/src/components/SideNavItem/SideNavItem.js.map +0 -1
  204. package/lib/components/global-header/src/components/SideNavItem/SideNavItem.scss.js +0 -10
  205. package/lib/components/global-header/src/components/SideNavItem/SideNavItem.scss.js.map +0 -1
  206. package/lib/components/global-header/src/components/SideNavItem/__tests__/SideNavItem.test.d.ts +0 -9
  207. package/lib/components/global-header/src/components/Switcher/Switcher.d.ts +0 -29
  208. package/lib/components/global-header/src/components/Switcher/Switcher.js +0 -188
  209. package/lib/components/global-header/src/components/Switcher/Switcher.js.map +0 -1
  210. package/lib/components/global-header/src/components/Switcher/Switcher.types.d.ts +0 -11
  211. package/lib/components/global-header/src/components/Switcher/__tests__/Switcher.test.d.ts +0 -9
  212. package/lib/components/global-header/src/components/Switcher/_index.scss.js +0 -10
  213. package/lib/components/global-header/src/components/Switcher/_index.scss.js.map +0 -1
  214. package/lib/components/global-header/src/components/TrialContent/TrialContent.d.ts +0 -11
  215. package/lib/components/global-header/src/components/TrialContent/TrialContent.js +0 -76
  216. package/lib/components/global-header/src/components/TrialContent/TrialContent.js.map +0 -1
  217. package/lib/components/global-header/src/components/TrialContent/TrialContent.types.d.ts +0 -12
  218. package/lib/components/global-header/src/components/TrialContent/__stories__/TrialContent.stories.d.ts +0 -14
  219. package/lib/components/global-header/src/components/TrialPopover/TrialPopover.d.ts +0 -23
  220. package/lib/components/global-header/src/components/TrialPopover/TrialPopover.js +0 -79
  221. package/lib/components/global-header/src/components/TrialPopover/TrialPopover.js.map +0 -1
  222. package/lib/components/global-header/src/components/TrialPopover/__tests__/TrialPopover.test.d.ts +0 -9
  223. package/lib/components/global-header/src/components/TrialPopover/_index.scss.js +0 -10
  224. package/lib/components/global-header/src/components/TrialPopover/_index.scss.js.map +0 -1
  225. package/lib/components/global-header/src/components/UnauthenticatedContext/UnauthenticatedContext.d.ts +0 -19
  226. package/lib/components/global-header/src/components/UnauthenticatedContext/UnauthenticatedContext.js +0 -63
  227. package/lib/components/global-header/src/components/UnauthenticatedContext/UnauthenticatedContext.js.map +0 -1
  228. package/lib/components/global-header/src/components/UnauthenticatedContext/UnauthenticatedContext.stories.d.ts +0 -15
  229. package/lib/components/global-header/src/components/UnauthenticatedContext/__tests__/UnauthenticatedContext.test.d.ts +0 -9
  230. package/lib/components/global-header/src/components/UserProfileImage/UserProfileImage.d.ts +0 -31
  231. package/lib/components/global-header/src/components/UserProfileImage/UserProfileImage.js +0 -104
  232. package/lib/components/global-header/src/components/UserProfileImage/UserProfileImage.js.map +0 -1
  233. package/lib/components/global-header/src/components/UserProfileImage/UserProfileImage.scss.js +0 -10
  234. package/lib/components/global-header/src/components/UserProfileImage/UserProfileImage.scss.js.map +0 -1
  235. package/lib/components/global-header/src/components/UserProfileImage/UserProfileImage.types.d.ts +0 -21
  236. package/lib/components/global-header/src/components/UserProfileImage/__tests__/UserProfileImage.test.d.ts +0 -9
  237. package/lib/components/global-header/src/components/_index.scss.js +0 -10
  238. package/lib/components/global-header/src/components/_index.scss.js.map +0 -1
  239. package/lib/components/global-header/src/constant.d.ts +0 -53
  240. package/lib/components/global-header/src/constant.js +0 -82
  241. package/lib/components/global-header/src/constant.js.map +0 -1
  242. package/lib/components/global-header/src/global-header.template.d.ts +0 -16
  243. package/lib/components/global-header/src/global-header.template.js +0 -24
  244. package/lib/components/global-header/src/global-header.template.js.map +0 -1
  245. package/lib/components/global-header/src/globals/__tests__/useScript.test.d.ts +0 -9
  246. package/lib/components/global-header/src/globals/__tests__/utils.test.d.ts +0 -9
  247. package/lib/components/global-header/src/globals/useScript.d.ts +0 -10
  248. package/lib/components/global-header/src/globals/useScript.js +0 -51
  249. package/lib/components/global-header/src/globals/useScript.js.map +0 -1
  250. package/lib/components/global-header/src/globals/utils.d.ts +0 -22
  251. package/lib/components/global-header/src/globals/utils.js +0 -96
  252. package/lib/components/global-header/src/globals/utils.js.map +0 -1
  253. package/lib/components/global-header/src/index.d.ts +0 -12
  254. package/lib/components/global-header/src/index.scss.js +0 -10
  255. package/lib/components/global-header/src/index.scss.js.map +0 -1
  256. package/lib/components/global-header/src/types/Header.types.d.ts +0 -267
  257. package/lib/components/global-header/src/types/Header.types.js +0 -22
  258. package/lib/components/global-header/src/types/Header.types.js.map +0 -1
  259. package/lib/index.d.ts +0 -9
  260. package/lib/index.js +0 -27
  261. package/lib/index.js.map +0 -1
  262. package/lib/node_modules/classnames/index.js +0 -88
  263. package/lib/node_modules/classnames/index.js.map +0 -1
@@ -1,86 +0,0 @@
1
- import { __module as classnames } from '../../_virtual/index2.js';
2
-
3
- /*!
4
- Copyright (c) 2018 Jed Watson.
5
- Licensed under the MIT License (MIT), see
6
- http://jedwatson.github.io/classnames
7
- */
8
-
9
- var hasRequiredClassnames;
10
-
11
- function requireClassnames () {
12
- if (hasRequiredClassnames) return classnames.exports;
13
- hasRequiredClassnames = 1;
14
- (function (module) {
15
- /* global define */
16
-
17
- (function () {
18
-
19
- var hasOwn = {}.hasOwnProperty;
20
-
21
- function classNames () {
22
- var classes = '';
23
-
24
- for (var i = 0; i < arguments.length; i++) {
25
- var arg = arguments[i];
26
- if (arg) {
27
- classes = appendClass(classes, parseValue(arg));
28
- }
29
- }
30
-
31
- return classes;
32
- }
33
-
34
- function parseValue (arg) {
35
- if (typeof arg === 'string' || typeof arg === 'number') {
36
- return arg;
37
- }
38
-
39
- if (typeof arg !== 'object') {
40
- return '';
41
- }
42
-
43
- if (Array.isArray(arg)) {
44
- return classNames.apply(null, arg);
45
- }
46
-
47
- if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
48
- return arg.toString();
49
- }
50
-
51
- var classes = '';
52
-
53
- for (var key in arg) {
54
- if (hasOwn.call(arg, key) && arg[key]) {
55
- classes = appendClass(classes, key);
56
- }
57
- }
58
-
59
- return classes;
60
- }
61
-
62
- function appendClass (value, newClass) {
63
- if (!newClass) {
64
- return value;
65
- }
66
-
67
- if (value) {
68
- return value + ' ' + newClass;
69
- }
70
-
71
- return value + newClass;
72
- }
73
-
74
- if (module.exports) {
75
- classNames.default = classNames;
76
- module.exports = classNames;
77
- } else {
78
- window.classNames = classNames;
79
- }
80
- }());
81
- } (classnames));
82
- return classnames.exports;
83
- }
84
-
85
- export { requireClassnames as __require };
86
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../../node_modules/classnames/index.js"],"sourcesContent":["/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue(arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(null, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAKA;;AAEA,EAAA,CAAC,YAAY;;AAGb,GAAC,IAAI,MAAM,GAAG,EAAE,CAAC,cAAc;;GAE9B,SAAS,UAAU,IAAI;IACtB,IAAI,OAAO,GAAG,EAAE;;AAElB,IAAE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,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;AACjB,KAAG,OAAO,KAAK;AACf,IAAA;AACA;IACE,IAAI,KAAK,EAAE;AACb,KAAG,OAAO,KAAK,GAAG,GAAG,GAAG,QAAQ;AAChC,IAAA;AACA;IACE,OAAO,KAAK,GAAG,QAAQ;AACzB,GAAA;;GAEC,IAAqC,MAAM,CAAC,OAAO,EAAE;AACtD,IAAE,UAAU,CAAC,OAAO,GAAG,UAAU;AACjC,IAAE,iBAAiB,UAAU;AAC7B,GAAA,CAAE,MAKM;AACR,IAAE,MAAM,CAAC,UAAU,GAAG,UAAU;AAChC,GAAA;AACA,EAAA,CAAC,EAAE,EAAA;;;;;;;","x_google_ignoreList":[0]}
@@ -1,8 +0,0 @@
1
- 'use strict';
2
-
3
- function getDefaultExportFromCjs (x) {
4
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
5
- }
6
-
7
- exports.getDefaultExportFromCjs = getDefaultExportFromCjs;
8
- //# sourceMappingURL=_commonjsHelpers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_commonjsHelpers.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -1,12 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var _commonjsHelpers = require('./_commonjsHelpers.js');
6
- var index = require('../node_modules/classnames/index.js');
7
-
8
- var classnamesExports = index.__require();
9
- var cx = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(classnamesExports);
10
-
11
- exports.default = cx;
12
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
@@ -1,6 +0,0 @@
1
- 'use strict';
2
-
3
- var classnames = {exports: {}};
4
-
5
- exports.__module = classnames;
6
- //# sourceMappingURL=index2.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
@@ -1,19 +0,0 @@
1
- /**
2
- * @license
3
- *
4
- * Copyright IBM Corp. 2025
5
- *
6
- * This source code is licensed under the Apache-2.0 license found in the
7
- * LICENSE file in the root directory of this source tree.
8
- */
9
- import globalHeader from './src/global-header.template.js';
10
- export { CommonHeader } from './src/components/CommonHeader/CommonHeader.js';
11
- export { HybridIpaasHeader } from './src/components/HybridIpaasHeader/HybridIpaasHeader.js';
12
- export { LogoutHeader } from './src/components/LogoutHeader/LogoutHeader.js';
13
- export { LogoutTile } from './src/components/LogoutTile/LogoutTile.js';
14
- /**
15
- * Top-level component implementing the global header
16
- */
17
- declare class CLABSGlobalHeader extends globalHeader {
18
- }
19
- export default CLABSGlobalHeader;
@@ -1,46 +0,0 @@
1
- 'use strict';
2
-
3
- var tslib = require('tslib');
4
- var decorators_js = require('lit/decorators.js');
5
- var index_js = require('@carbon-labs/utilities/es/settings/index.js');
6
- var globalHeader_template = require('./src/global-header.template.js');
7
- var CommonHeader = require('./src/components/CommonHeader/CommonHeader.js');
8
- var HybridIpaasHeader = require('./src/components/HybridIpaasHeader/HybridIpaasHeader.js');
9
- var LogoutHeader = require('./src/components/LogoutHeader/LogoutHeader.js');
10
- var LogoutTile = require('./src/components/LogoutTile/LogoutTile.js');
11
-
12
- /**
13
- * @license
14
- *
15
- * Copyright IBM Corp. 2025
16
- *
17
- * This source code is licensed under the Apache-2.0 license found in the
18
- * LICENSE file in the root directory of this source tree.
19
- */
20
- const { stablePrefix: clabsPrefix } = index_js.settings;
21
- /**
22
- * Top-level component implementing the global header
23
- */
24
- let CLABSGlobalHeader = class CLABSGlobalHeader extends globalHeader_template.default {
25
- };
26
- CLABSGlobalHeader = tslib.__decorate([
27
- decorators_js.customElement(`${clabsPrefix}-global-header`)
28
- ], CLABSGlobalHeader);
29
-
30
- Object.defineProperty(exports, "CommonHeader", {
31
- enumerable: true,
32
- get: function () { return CommonHeader.CommonHeader; }
33
- });
34
- Object.defineProperty(exports, "HybridIpaasHeader", {
35
- enumerable: true,
36
- get: function () { return HybridIpaasHeader.HybridIpaasHeader; }
37
- });
38
- Object.defineProperty(exports, "LogoutHeader", {
39
- enumerable: true,
40
- get: function () { return LogoutHeader.LogoutHeader; }
41
- });
42
- Object.defineProperty(exports, "LogoutTile", {
43
- enumerable: true,
44
- get: function () { return LogoutTile.LogoutTile; }
45
- });
46
- //# sourceMappingURL=global-header.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"global-header.js","sources":["../../../../components/global-header/global-header.ts"],"sourcesContent":[null],"names":["settings","globalHeader","__decorate","customElement"],"mappings":";;;;;;;;;;;AAAA;;;;;;;AAOG;AAWH,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,GAAGA,iBAAQ;AAE9C;;AAEG;AAEH,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQC,6BAAY,CAAA;CAAG;AAAzC,iBAAiB,GAAAC,gBAAA,CAAA;AADtB,IAAAC,2BAAa,CAAC,CAAA,EAAG,WAAW,CAAA,cAAA,CAAgB;AACvC,CAAA,EAAA,iBAAiB,CAAwB;;;;;;;;;;;;;;;;;;;"}
@@ -1,26 +0,0 @@
1
- /**
2
- * @license
3
- *
4
- * Copyright IBM Corp. 2025
5
- *
6
- * This source code is licensed under the Apache-2.0 license found in the
7
- * LICENSE file in the root directory of this source tree.
8
- */
9
- import { LitElement, nothing } from 'lit';
10
- import { MainSectionItem, ManagementConsole, ProfileFooterLinks, UserManagement } from '../../types/Header.types';
11
- import { AuthContextProps } from './AuthContext.types';
12
- import '../UserProfileImage/UserProfileImage';
13
- /**
14
- * Show the authentication context (profile menu)
15
- */
16
- export declare class AuthContext extends LitElement {
17
- static styles: import("lit").CSSResult;
18
- props: AuthContextProps;
19
- renderMainSection: (mainSectionItems: MainSectionItem[] | undefined) => import("lit-html").TemplateResult<1> | typeof nothing;
20
- renderFooterSection: (footerSectionItems: ProfileFooterLinks[] | undefined) => typeof nothing | import("lit-html").TemplateResult<1>[];
21
- renderUserManagementSection: (userManagement: UserManagement | undefined) => import("lit-html").TemplateResult<1> | typeof nothing;
22
- renderManagementConsole: (managementConsole: ManagementConsole | undefined) => import("lit-html").TemplateResult<1> | typeof nothing;
23
- renderLinkItem: (item: ProfileFooterLinks) => import("lit-html").TemplateResult<1>;
24
- renderProfileFooterLinks: (profileFooterLinks: ProfileFooterLinks[] | undefined) => typeof nothing | import("lit-html").TemplateResult<1>[];
25
- render(): import("lit-html").TemplateResult<1>;
26
- }
@@ -1,238 +0,0 @@
1
- 'use strict';
2
-
3
- var tslib = require('tslib');
4
- var lit = require('lit');
5
- var constant = require('../../constant.js');
6
- require('../UserProfileImage/UserProfileImage.js');
7
- var decorators_js = require('lit/decorators.js');
8
- var _index = require('./_index.scss.js');
9
- var utils = require('../../globals/utils.js');
10
-
11
- /**
12
- * @license
13
- *
14
- * Copyright IBM Corp. 2025
15
- *
16
- * This source code is licensed under the Apache-2.0 license found in the
17
- * LICENSE file in the root directory of this source tree.
18
- */
19
- /* eslint jsdoc/require-jsdoc: 0 */
20
- const iconSlot = 'title-icon';
21
- const iconSize = 16;
22
- /**
23
- * Show the authentication context (profile menu)
24
- */
25
- exports.AuthContext = class AuthContext extends lit.LitElement {
26
- constructor() {
27
- super(...arguments);
28
- this.props = {};
29
- this.renderMainSection = (mainSectionItems) => {
30
- var _a;
31
- if (typeof mainSectionItems !== 'undefined' &&
32
- (mainSectionItems === null || mainSectionItems === void 0 ? void 0 : mainSectionItems.length) > 0) {
33
- return lit.html `
34
- <section
35
- tabIndex="${0}"
36
- role="tabpanel"
37
- aria-labelledby="${constant.POPOVER_LABEL_ID}"
38
- class="${constant.AUTOMATION_HEADER_BASE_CLASS}__popover__section">
39
- ${(_a = this.props.mainSectionItems) === null || _a === void 0 ? void 0 : _a.map((item) => {
40
- return lit.html `<div class="${constant.AUTOMATION_HEADER_BASE_CLASS}__title_bar">
41
- <p class="title-bar__label">${item.label}</p>
42
- <p class="title-bar__text">${item.text}</p>
43
- </div>`;
44
- })}
45
- </section>
46
- `;
47
- }
48
- else {
49
- return lit.nothing;
50
- }
51
- };
52
- this.renderFooterSection = (footerSectionItems) => {
53
- if (typeof footerSectionItems !== 'undefined' &&
54
- (footerSectionItems === null || footerSectionItems === void 0 ? void 0 : footerSectionItems.length) > 0) {
55
- return footerSectionItems === null || footerSectionItems === void 0 ? void 0 : footerSectionItems.map((item) => {
56
- return lit.html ` <div
57
- class="${constant.AUTOMATION_HEADER_BASE_CLASS}__popover__section ${constant.AUTOMATION_HEADER_BASE_CLASS}__usr_management_lnk_section">
58
- <ul class="${constant.AUTOMATION_HEADER_BASE_CLASS}__popover__links">
59
- <li class="${constant.AUTOMATION_HEADER_BASE_CLASS}__popover__link-item">
60
- <a
61
- href="${item.href}"
62
- target="${(item === null || item === void 0 ? void 0 : item.newTab) ? '_blank' : ''}"
63
- rel="noreferrer">
64
- <span class="${constant.AUTOMATION_HEADER_BASE_CLASS}__popover__link">
65
- <span class="link_icon"
66
- >${item.carbonIcon
67
- ? utils.renderCarbonIcon(item.carbonIcon, iconSize, iconSlot)
68
- : lit.nothing}</span
69
- >
70
- <span class="link_text">${item.text}</span>
71
- </span>
72
- </a>
73
- </li>
74
- </ul>
75
- </div>`;
76
- });
77
- }
78
- else {
79
- return lit.nothing;
80
- }
81
- };
82
- this.renderUserManagementSection = (userManagement) => {
83
- if (userManagement && (userManagement === null || userManagement === void 0 ? void 0 : userManagement.href) && (userManagement === null || userManagement === void 0 ? void 0 : userManagement.text)) {
84
- return lit.html `
85
- <div
86
- class="${constant.AUTOMATION_HEADER_BASE_CLASS}__popover__section ${constant.AUTOMATION_HEADER_BASE_CLASS}__usr_management_lnk_section">
87
- <ul class="${constant.AUTOMATION_HEADER_BASE_CLASS}__popover__links">
88
- <li class="${constant.AUTOMATION_HEADER_BASE_CLASS}__popover__link-item">
89
- <a href=${userManagement.href} target="_blank" rel="noreferrer">
90
- <span class="${constant.AUTOMATION_HEADER_BASE_CLASS}__popover__link">
91
- <span class="link_icon"
92
- >${utils.renderCarbonIcon(userManagement.icon, iconSize, iconSlot)}</span
93
- >
94
- <span class="link_text">${userManagement.text}</span>
95
- <span class="launch_icon"
96
- >${utils.renderCarbonIcon('Launch', iconSize, iconSlot)}</span
97
- >
98
- </span>
99
- </a>
100
- </li>
101
- </ul>
102
- </div>
103
- `;
104
- }
105
- else {
106
- return lit.nothing;
107
- }
108
- };
109
- this.renderManagementConsole = (managementConsole) => {
110
- if (managementConsole &&
111
- (managementConsole === null || managementConsole === void 0 ? void 0 : managementConsole.href) &&
112
- (managementConsole === null || managementConsole === void 0 ? void 0 : managementConsole.text)) {
113
- return lit.html `
114
- <div
115
- class="${constant.AUTOMATION_HEADER_BASE_CLASS}__popover__section ${constant.AUTOMATION_HEADER_BASE_CLASS}__console_lnk_section">
116
- <ul class="${constant.AUTOMATION_HEADER_BASE_CLASS}__popover__links">
117
- <li class="${constant.AUTOMATION_HEADER_BASE_CLASS}__popover__link-item">
118
- <a
119
- href="${managementConsole.href}"
120
- target="${(managementConsole === null || managementConsole === void 0 ? void 0 : managementConsole.newTab) ? '_blank' : undefined}"
121
- rel="noreferrer">
122
- <span class="${constant.AUTOMATION_HEADER_BASE_CLASS}__popover__link">
123
- <span class="link_icon"
124
- >${utils.renderCarbonIcon('Settings', iconSize, iconSlot)}</span
125
- >
126
- <span class="link_text">${managementConsole.text}</span>
127
- ${managementConsole.newTabIcon
128
- ? lit.html `<span class="launch_icon"
129
- >${utils.renderCarbonIcon('Launch', iconSize, iconSlot)}</span
130
- >`
131
- : lit.nothing}
132
- </span>
133
- </a>
134
- </li>
135
- </ul>
136
- </div>
137
- `;
138
- }
139
- else {
140
- return lit.nothing;
141
- }
142
- };
143
- this.renderLinkItem = (item) => {
144
- return lit.html `<span class="${constant.AUTOMATION_HEADER_BASE_CLASS}__popover__link">
145
- <span class="link_icon"
146
- >${item.carbonIcon
147
- ? utils.renderCarbonIcon(item.carbonIcon, iconSize, iconSlot)
148
- : lit.nothing}</span
149
- >
150
- <span class="link_text">${item.text}</span>
151
- ${item.newTabIcon
152
- ? lit.html `<span class="launch_icon"
153
- >${utils.renderCarbonIcon('Launch', iconSize, iconSlot)}</span
154
- >`
155
- : lit.nothing}
156
- </span>`;
157
- };
158
- this.renderProfileFooterLinks = (profileFooterLinks) => {
159
- if (profileFooterLinks) {
160
- return profileFooterLinks.map((item) => {
161
- return lit.html `
162
- <section
163
- class="${constant.AUTOMATION_HEADER_BASE_CLASS}__profile_footer ${constant.NAMESPACE}__popover__footer">
164
- <ul class="${constant.AUTOMATION_HEADER_BASE_CLASS}__popover__links">
165
- <li class="${constant.AUTOMATION_HEADER_BASE_CLASS}__popover__link-item">
166
- ${item.onClickHandler
167
- ? lit.html `<cds-button
168
- @click="${item.onClickHandler}"
169
- size="xs"
170
- kind="ghost"
171
- aria-label="${item.arialLabel}"
172
- >${this.renderLinkItem(item)}</cds-button
173
- >`
174
- : lit.html `<a
175
- href="${item.href}"
176
- target="${(item === null || item === void 0 ? void 0 : item.newTab) ? '_blank' : lit.nothing}"
177
- rel="noreferrer"
178
- aria-label="${item.arialLabel}">
179
- ${this.renderLinkItem(item)}
180
- </a>`}
181
- </li>
182
- </ul>
183
- </section>
184
- `;
185
- });
186
- }
187
- else {
188
- return lit.nothing;
189
- }
190
- };
191
- }
192
- render() {
193
- const { profile, mainSectionItems, footerSectionItems, userManagement, managementConsole, profileFooterLinks, } = this.props;
194
- return lit.html `
195
- <div
196
- tabindex=${0}
197
- role="tabpanel"
198
- aria-labelledby="${constant.POPOVER_LABEL_ID}"
199
- class="${constant.NAMESPACE}__popover--focus">
200
- <div
201
- class="${constant.NAMESPACE}__popover__header ${constant.AUTOMATION_HEADER_BASE_CLASS}__popover__section">
202
- <apaas-user-profile-image
203
- .size="xlg"
204
- .image="${profile === null || profile === void 0 ? void 0 : profile.imageUrl}"
205
- .backgroundColor="light-cyan"
206
- .initials="${profile === null || profile === void 0 ? void 0 : profile.displayName}">
207
- .className="${constant.NAMESPACE}__popover__profile-icon"
208
- </apaas-user-profile-image>
209
- <div class="${constant.AUTOMATION_HEADER_BASE_CLASS}__name_section">
210
- <span
211
- id="${constant.POPOVER_LABEL_ID}"
212
- class="${constant.NAMESPACE}__popover__profile__header__title"
213
- >${profile === null || profile === void 0 ? void 0 : profile.displayName}</span
214
- >
215
- <span class="${constant.NAMESPACE}__popover__profile__header__email"
216
- >${profile === null || profile === void 0 ? void 0 : profile.email}</span
217
- >
218
- </div>
219
- </div>
220
- ${this.renderMainSection(mainSectionItems)}
221
- ${this.renderFooterSection(footerSectionItems)}
222
- ${this.renderUserManagementSection(userManagement)}
223
- ${this.renderManagementConsole(managementConsole)}
224
- ${this.renderProfileFooterLinks(profileFooterLinks)}
225
- </div>
226
- `;
227
- }
228
- };
229
- exports.AuthContext.styles = lit.css `
230
- ${lit.unsafeCSS([_index.default])}
231
- `;
232
- tslib.__decorate([
233
- decorators_js.property({ type: Object })
234
- ], exports.AuthContext.prototype, "props", void 0);
235
- exports.AuthContext = tslib.__decorate([
236
- decorators_js.customElement('apaas-auth-context')
237
- ], exports.AuthContext);
238
- //# sourceMappingURL=AuthContext.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AuthContext.js","sources":["../../../../../../../components/global-header/src/components/AuthContext/AuthContext.ts"],"sourcesContent":[null],"names":["AuthContext","LitElement","html","POPOVER_LABEL_ID","AUTOMATION_HEADER_BASE_CLASS","nothing","renderCarbonIcon","NAMESPACE","css","unsafeCSS","styles","__decorate","property","customElement"],"mappings":";;;;;;;;;;AAAA;;;;;;;AAOG;AACH;AAqBA,MAAM,QAAQ,GAAG,YAAY;AAC7B,MAAM,QAAQ,GAAG,EAAE;AAEnB;;AAEG;AAEUA,mBAAW,GAAjB,MAAM,WAAY,SAAQC,cAAU,CAAA;AAApC,IAAA,WAAA,GAAA;;QAKuB,IAAA,CAAA,KAAK,GAAqB,EAAE;AAExD,QAAA,IAAA,CAAA,iBAAiB,GAAG,CAAC,gBAA+C,KAAI;;YACtE,IACE,OAAO,gBAAgB,KAAK,WAAW;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AAA,CAAA;IADvBE,2BAAa,CAAC,oBAAoB;AACtB,CAAA,EAAAb,mBAAW,CAsOvB;;"}
@@ -1,17 +0,0 @@
1
- /**
2
- * @license
3
- *
4
- * Copyright IBM Corp. 2025
5
- *
6
- * This source code is licensed under the Apache-2.0 license found in the
7
- * LICENSE file in the root directory of this source tree.
8
- */
9
- import { Profile, MainSectionItem, HeaderProps, ProfileFooterLinks, ManagementConsole, UserManagement } from '../../types/Header.types';
10
- export interface AuthContextProps extends HeaderProps {
11
- profile?: Profile;
12
- mainSectionItems?: MainSectionItem[];
13
- footerSectionItems?: ProfileFooterLinks[];
14
- managementConsole?: ManagementConsole;
15
- userManagement?: UserManagement;
16
- profileFooterLinks?: ProfileFooterLinks[];
17
- }
@@ -1,12 +0,0 @@
1
- /**
2
- * @license
3
- *
4
- * Copyright IBM Corp. 2025
5
- *
6
- * This source code is licensed under the Apache-2.0 license found in the
7
- * LICENSE file in the root directory of this source tree.
8
- */
9
- import type { Meta } from '@storybook/web-components-vite';
10
- declare const meta: Meta;
11
- export default meta;
12
- export declare const Default: (args: any) => import("lit-html").TemplateResult<1>;
@@ -1,9 +0,0 @@
1
- /**
2
- * @license
3
- *
4
- * Copyright IBM Corp. 2025
5
- *
6
- * This source code is licensed under the Apache-2.0 license found in the
7
- * LICENSE file in the root directory of this source tree.
8
- */
9
- import '../AuthContext';
@@ -1,10 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var lit = require('lit');
6
-
7
- var styles = lit.css([".automation-global-header__popover__section{padding:1rem;position:relative}.automation-global-header__popover__section:not(:last-child):after{border-block-end:1px solid #393939;content:\"\";inline-size:100%;inset-block-end:0;inset-inline-start:0;position:absolute}.automation--header__popover__header{display:flex;flex-wrap:nowrap}.automation--header__popover__profile__header__title{font-size:var(--cds-productive-heading-03-font-size,1.25rem);font-weight:var(--cds-productive-heading-03-font-weight,400);letter-spacing:var(--cds-productive-heading-03-letter-spacing,0);line-height:var(--cds-productive-heading-03-line-height,1.4);line-height:1.2;margin-block-end:.25rem}.automation--header__popover__profile__header__email,.automation--header__popover__profile__header__title{display:block;inline-size:189px;word-wrap:break-word}.automation-global-header__horizontal_section{border:.25px solid #393939;margin-inline:.5rem}.automation-global-header__name_section{margin-inline-start:1rem}.automation-global-header__console_lnk_section,.automation-global-header__usr_management_lnk_section{padding:0}.automation-global-header__popover__link-item a{text-decoration:none}.automation-global-header__popover__section ul,.automation-global-header__profile_footer ul{margin:0;padding:0}.automation-global-header__popover__section ul li,.automation-global-header__profile_footer ul li{list-style-position:inside;list-style-type:none}.automation-global-header__popover__link{color:#fff;display:flex;font-size:var(--cds-body-short-01-font-size,.875rem);font-weight:var(--cds-body-short-01-font-weight,400);letter-spacing:var(--cds-body-short-01-letter-spacing,.16px);line-height:var(--cds-body-short-01-line-height,1.28572);padding:1rem;text-decoration:none;transition:background-color .11s,color .11s}.automation-global-header__popover__link svg{block-size:100%}.automation-global-header__popover__link .link_icon{margin-inline-end:.5rem}.automation-global-header__popover__link:hover{background-color:#353535}.automation-global-header__popover__link:hover .launch_icon{opacity:1}.automation-global-header__popover__link .link_text{margin:auto 0}.automation-global-header__popover__link .launch_icon{margin-inline-start:auto;opacity:0}.automation--header__popover__profile__header__email{color:#c6c6c6;font-size:var(--cds-label-01-font-size,.75rem);font-weight:var(--cds-label-01-font-weight,400);letter-spacing:var(--cds-label-01-letter-spacing,.32px);line-height:var(--cds-label-01-line-height,1.33333)}.automation-global-header__instance_details{margin:1rem}.automation-global-header__title_bar .title-bar__label{color:#c6c6c6;font-size:var(--cds-label-01-font-size,.75rem);font-weight:var(--cds-label-01-font-weight,400);letter-spacing:var(--cds-label-01-letter-spacing,.32px);line-height:var(--cds-label-01-line-height,1.33333)}.automation-global-header__title_bar .title-bar__text{font-size:var(--cds-expressive-heading-01-font-size,.875rem);font-weight:var(--cds-expressive-heading-01-font-weight,600);font-weight:400;letter-spacing:var(--cds-expressive-heading-01-letter-spacing,.16px);line-height:var(--cds-expressive-heading-01-line-height,1.42857)}.automation-global-header__popover__profile__footer__logout{color:#fff!important}.automation-global-header__popover__link-item cds-button{inline-size:100%}.automation-global-header__popover__link-item cds-button::part(button){inline-size:100%;padding:0}.automation-global-header__popover__link-item cds-button .automation-global-header__popover__link{inline-size:100%}"]);
8
-
9
- exports.default = styles;
10
- //# sourceMappingURL=_index.scss.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_index.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
@@ -1,36 +0,0 @@
1
- /**
2
- * @license
3
- *
4
- * Copyright IBM Corp. 2025
5
- *
6
- * This source code is licensed under the Apache-2.0 license found in the
7
- * LICENSE file in the root directory of this source tree.
8
- */
9
- import { LitElement } from 'lit';
10
- import '@carbon/web-components/es-custom/components/ui-shell/index.js';
11
- import '@carbon/web-components/es-custom/components/popover/index.js';
12
- import { HeaderProps } from '../../types/Header.types';
13
- import './WideSideNav';
14
- import '../SideNavItem/SideNavItem';
15
- import '../HeaderContext/HeaderContext';
16
- /**
17
- * Main global header component
18
- */
19
- export declare class CommonHeader extends LitElement {
20
- createRenderRoot(): HTMLElement | DocumentFragment;
21
- static styles: import("lit").CSSResult;
22
- headerProps: HeaderProps;
23
- hasNewNotifications: boolean;
24
- private isMenuOpen;
25
- assistMeScriptLoaded: boolean;
26
- handleNavItemClick: (e: Event) => void;
27
- connectedCallback(): void;
28
- disconnectedCallback(): void;
29
- updated(changedProperties: Map<string | number | symbol, unknown>): void;
30
- render(): import("lit-html").TemplateResult<1>;
31
- }
32
- declare global {
33
- interface HTMLElementTagNameMap {
34
- 'common-header': CommonHeader;
35
- }
36
- }