@ukic/web-components 2.26.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (856) hide show
  1. package/dist/cjs/core.cjs.js +1 -1
  2. package/dist/cjs/ic-accordion-group.cjs.entry.js +7 -7
  3. package/dist/cjs/ic-accordion-group.cjs.entry.js.map +1 -1
  4. package/dist/cjs/ic-accordion.cjs.entry.js +3 -3
  5. package/dist/cjs/ic-accordion.cjs.entry.js.map +1 -1
  6. package/dist/cjs/ic-alert.cjs.entry.js +0 -2
  7. package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
  8. package/dist/cjs/ic-back-to-top.cjs.entry.js +11 -14
  9. package/dist/cjs/ic-back-to-top.cjs.entry.js.map +1 -1
  10. package/dist/cjs/ic-badge.cjs.entry.js +14 -26
  11. package/dist/cjs/ic-badge.cjs.entry.js.map +1 -1
  12. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +3 -3
  13. package/dist/cjs/ic-breadcrumb-group.cjs.entry.js.map +1 -1
  14. package/dist/cjs/ic-breadcrumb.cjs.entry.js +2 -2
  15. package/dist/cjs/ic-breadcrumb.cjs.entry.js.map +1 -1
  16. package/dist/cjs/ic-button_3.cjs.entry.js +16 -16
  17. package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
  18. package/dist/cjs/{ic-card.cjs.entry.js → ic-card-vertical.cjs.entry.js} +5 -5
  19. package/dist/cjs/ic-card-vertical.cjs.entry.js.map +1 -0
  20. package/dist/cjs/ic-checkbox-group.cjs.entry.js +5 -4
  21. package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
  22. package/dist/cjs/ic-checkbox.cjs.entry.js +5 -14
  23. package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
  24. package/dist/cjs/ic-chip.cjs.entry.js +2 -9
  25. package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
  26. package/dist/cjs/ic-classification-banner.cjs.entry.js +2 -2
  27. package/dist/cjs/ic-classification-banner.cjs.entry.js.map +1 -1
  28. package/dist/cjs/ic-data-list.cjs.entry.js +28 -0
  29. package/dist/cjs/ic-data-list.cjs.entry.js.map +1 -0
  30. package/dist/cjs/ic-data-row.cjs.entry.js +8 -9
  31. package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -1
  32. package/dist/cjs/ic-dialog.cjs.entry.js +11 -96
  33. package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
  34. package/dist/cjs/ic-empty-state.cjs.entry.js +5 -5
  35. package/dist/cjs/ic-empty-state.cjs.entry.js.map +1 -1
  36. package/dist/cjs/ic-footer-link-group.cjs.entry.js +8 -8
  37. package/dist/cjs/ic-footer-link-group.cjs.entry.js.map +1 -1
  38. package/dist/cjs/ic-footer-link.cjs.entry.js +5 -6
  39. package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -1
  40. package/dist/cjs/ic-footer.cjs.entry.js +7 -7
  41. package/dist/cjs/ic-footer.cjs.entry.js.map +1 -1
  42. package/dist/cjs/ic-hero.cjs.entry.js +7 -8
  43. package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
  44. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +4 -4
  45. package/dist/cjs/ic-horizontal-scroll.cjs.entry.js.map +1 -1
  46. package/dist/cjs/ic-input-component-container_3.cjs.entry.js +17 -22
  47. package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
  48. package/dist/cjs/ic-input-label_2.cjs.entry.js +10 -11
  49. package/dist/cjs/ic-input-label_2.cjs.entry.js.map +1 -1
  50. package/dist/cjs/ic-link.cjs.entry.js +5 -6
  51. package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
  52. package/dist/cjs/ic-menu-item.cjs.entry.js +2 -2
  53. package/dist/cjs/ic-menu-item.cjs.entry.js.map +1 -1
  54. package/dist/cjs/ic-navigation-group.cjs.entry.js +8 -8
  55. package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
  56. package/dist/cjs/ic-navigation-item.cjs.entry.js +4 -4
  57. package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
  58. package/dist/cjs/ic-navigation-menu.cjs.entry.js +1 -1
  59. package/dist/cjs/ic-navigation-menu.cjs.entry.js.map +1 -1
  60. package/dist/cjs/ic-page-header.cjs.entry.js +6 -7
  61. package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
  62. package/dist/cjs/ic-pagination.cjs.entry.js +34 -32
  63. package/dist/cjs/ic-pagination.cjs.entry.js.map +1 -1
  64. package/dist/cjs/ic-popover-menu.cjs.entry.js +2 -2
  65. package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
  66. package/dist/cjs/ic-radio-group.cjs.entry.js +21 -25
  67. package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
  68. package/dist/cjs/ic-radio-option.cjs.entry.js +4 -17
  69. package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
  70. package/dist/cjs/ic-search-bar.cjs.entry.js +17 -23
  71. package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
  72. package/dist/cjs/ic-select.cjs.entry.js +12 -20
  73. package/dist/cjs/ic-select.cjs.entry.js.map +1 -1
  74. package/dist/cjs/ic-side-navigation.cjs.entry.js +6 -6
  75. package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
  76. package/dist/cjs/ic-skeleton.cjs.entry.js +4 -5
  77. package/dist/cjs/ic-skeleton.cjs.entry.js.map +1 -1
  78. package/dist/cjs/ic-status-tag.cjs.entry.js +1 -10
  79. package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
  80. package/dist/cjs/ic-step.cjs.entry.js +39 -42
  81. package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
  82. package/dist/cjs/ic-stepper.cjs.entry.js +15 -15
  83. package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
  84. package/dist/cjs/ic-switch.cjs.entry.js +4 -5
  85. package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
  86. package/dist/cjs/ic-tab-context.cjs.entry.js +0 -11
  87. package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
  88. package/dist/cjs/ic-tab-group.cjs.entry.js +3 -4
  89. package/dist/cjs/ic-tab-group.cjs.entry.js.map +1 -1
  90. package/dist/cjs/ic-tab-panel.cjs.entry.js +0 -7
  91. package/dist/cjs/ic-tab-panel.cjs.entry.js.map +1 -1
  92. package/dist/cjs/ic-tab.cjs.entry.js +3 -3
  93. package/dist/cjs/ic-tab.cjs.entry.js.map +1 -1
  94. package/dist/cjs/ic-text-field.cjs.entry.js +48 -48
  95. package/dist/cjs/ic-text-field.cjs.entry.js.map +1 -1
  96. package/dist/cjs/ic-toast-region.cjs.entry.js +0 -7
  97. package/dist/cjs/ic-toast-region.cjs.entry.js.map +1 -1
  98. package/dist/cjs/ic-toast.cjs.entry.js +82 -34
  99. package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
  100. package/dist/cjs/ic-toggle-button-group.cjs.entry.js +16 -16
  101. package/dist/cjs/ic-toggle-button-group.cjs.entry.js.map +1 -1
  102. package/dist/cjs/ic-toggle-button.cjs.entry.js +12 -12
  103. package/dist/cjs/ic-toggle-button.cjs.entry.js.map +1 -1
  104. package/dist/cjs/ic-top-navigation.cjs.entry.js +3 -3
  105. package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
  106. package/dist/cjs/ic-typography.cjs.entry.js +5 -5
  107. package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
  108. package/dist/cjs/index-f982899d.js +12 -12
  109. package/dist/cjs/loader.cjs.js +1 -1
  110. package/dist/cjs/types-dc22e301.js.map +1 -1
  111. package/dist/collection/collection-manifest.json +3 -3
  112. package/dist/collection/components/ic-accordion/ic-accordion.css +7 -7
  113. package/dist/collection/components/ic-accordion/ic-accordion.js +2 -2
  114. package/dist/collection/components/ic-accordion/ic-accordion.js.map +1 -1
  115. package/dist/collection/components/ic-accordion-group/ic-accordion-group.css +5 -5
  116. package/dist/collection/components/ic-accordion-group/ic-accordion-group.js +9 -9
  117. package/dist/collection/components/ic-accordion-group/ic-accordion-group.js.map +1 -1
  118. package/dist/collection/components/ic-accordion-group/test/basic/ic-accordion-group.spec.js +7 -7
  119. package/dist/collection/components/ic-accordion-group/test/basic/ic-accordion-group.spec.js.map +1 -1
  120. package/dist/collection/components/ic-alert/ic-alert.js +0 -19
  121. package/dist/collection/components/ic-alert/ic-alert.js.map +1 -1
  122. package/dist/collection/components/ic-back-to-top/ic-back-to-top.css +21 -61
  123. package/dist/collection/components/ic-back-to-top/ic-back-to-top.js +10 -13
  124. package/dist/collection/components/ic-back-to-top/ic-back-to-top.js.map +1 -1
  125. package/dist/collection/components/ic-back-to-top/test/basic/ic-back-to-top.spec.js +9 -10
  126. package/dist/collection/components/ic-back-to-top/test/basic/ic-back-to-top.spec.js.map +1 -1
  127. package/dist/collection/components/ic-badge/ic-badge.css +33 -33
  128. package/dist/collection/components/ic-badge/ic-badge.js +18 -74
  129. package/dist/collection/components/ic-badge/ic-badge.js.map +1 -1
  130. package/dist/collection/components/ic-badge/test/basic/ic-badge.spec.js +41 -43
  131. package/dist/collection/components/ic-badge/test/basic/ic-badge.spec.js.map +1 -1
  132. package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.css +2 -2
  133. package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js +1 -1
  134. package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js.map +1 -1
  135. package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.css +7 -5
  136. package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.js +2 -2
  137. package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.js.map +1 -1
  138. package/dist/collection/components/ic-button/ic-button.css +240 -214
  139. package/dist/collection/components/ic-button/ic-button.js +8 -9
  140. package/dist/collection/components/ic-button/ic-button.js.map +1 -1
  141. package/dist/collection/components/{ic-card/ic-card.js → ic-card-vertical/ic-card-vertical.js} +5 -5
  142. package/dist/collection/components/ic-card-vertical/ic-card-vertical.js.map +1 -0
  143. package/dist/collection/components/{ic-card/test/basic/ic-card.spec.js → ic-card-vertical/test/basic/ic-card-vertical.spec.js} +41 -41
  144. package/dist/collection/components/ic-card-vertical/test/basic/ic-card-vertical.spec.js.map +1 -0
  145. package/dist/collection/components/ic-checkbox/ic-checkbox.css +10 -10
  146. package/dist/collection/components/ic-checkbox/ic-checkbox.js +4 -136
  147. package/dist/collection/components/ic-checkbox/ic-checkbox.js.map +1 -1
  148. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.css +3 -3
  149. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js +4 -24
  150. package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js.map +1 -1
  151. package/dist/collection/components/ic-checkbox-group/test/basic/ic-checkbox-group.spec.js +2 -2
  152. package/dist/collection/components/ic-checkbox-group/test/basic/ic-checkbox-group.spec.js.map +1 -1
  153. package/dist/collection/components/ic-chip/ic-chip.css +0 -5
  154. package/dist/collection/components/ic-chip/ic-chip.js +1 -51
  155. package/dist/collection/components/ic-chip/ic-chip.js.map +1 -1
  156. package/dist/collection/components/ic-classification-banner/ic-classification-banner.css +1 -1
  157. package/dist/collection/components/ic-classification-banner/ic-classification-banner.js +1 -1
  158. package/dist/collection/components/ic-classification-banner/ic-classification-banner.js.map +1 -1
  159. package/dist/collection/components/{ic-data-entity/ic-data-entity.css → ic-data-list/ic-data-list.css} +2 -2
  160. package/dist/collection/components/{ic-data-entity/ic-data-entity.js → ic-data-list/ic-data-list.js} +11 -33
  161. package/dist/collection/components/ic-data-list/ic-data-list.js.map +1 -0
  162. package/dist/collection/components/{ic-data-entity/test/basic/ic-data-entity.spec.js → ic-data-list/test/basic/ic-data-list.spec.js} +32 -32
  163. package/dist/collection/components/ic-data-list/test/basic/ic-data-list.spec.js.map +1 -0
  164. package/dist/collection/components/ic-data-row/ic-data-row.css +1 -1
  165. package/dist/collection/components/ic-data-row/ic-data-row.js +8 -30
  166. package/dist/collection/components/ic-data-row/ic-data-row.js.map +1 -1
  167. package/dist/collection/components/ic-data-row/test/basic/ic-data-row.spec.js +4 -4
  168. package/dist/collection/components/ic-data-row/test/basic/ic-data-row.spec.js.map +1 -1
  169. package/dist/collection/components/ic-dialog/ic-dialog.css +3 -12
  170. package/dist/collection/components/ic-dialog/ic-dialog.js +11 -214
  171. package/dist/collection/components/ic-dialog/ic-dialog.js.map +1 -1
  172. package/dist/collection/components/ic-dialog/test/basic/ic-dialog.spec.js +3 -226
  173. package/dist/collection/components/ic-dialog/test/basic/ic-dialog.spec.js.map +1 -1
  174. package/dist/collection/components/ic-empty-state/ic-empty-state.css +4 -4
  175. package/dist/collection/components/ic-empty-state/ic-empty-state.js +6 -6
  176. package/dist/collection/components/ic-empty-state/ic-empty-state.js.map +1 -1
  177. package/dist/collection/components/ic-footer/ic-footer.css +6 -6
  178. package/dist/collection/components/ic-footer/ic-footer.js +6 -6
  179. package/dist/collection/components/ic-footer/ic-footer.js.map +1 -1
  180. package/dist/collection/components/ic-footer/test/basic/ic-footer.spec.js +1 -1
  181. package/dist/collection/components/ic-footer/test/basic/ic-footer.spec.js.map +1 -1
  182. package/dist/collection/components/ic-footer-link/ic-footer-link.css +33 -107
  183. package/dist/collection/components/ic-footer-link/ic-footer-link.js +4 -5
  184. package/dist/collection/components/ic-footer-link/ic-footer-link.js.map +1 -1
  185. package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.css +7 -7
  186. package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.js +9 -9
  187. package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.js.map +1 -1
  188. package/dist/collection/components/ic-footer-link-group/test/basic/ic-footer-link-group.spec.js +7 -7
  189. package/dist/collection/components/ic-footer-link-group/test/basic/ic-footer-link-group.spec.js.map +1 -1
  190. package/dist/collection/components/ic-hero/ic-hero.css +13 -13
  191. package/dist/collection/components/ic-hero/ic-hero.js +8 -30
  192. package/dist/collection/components/ic-hero/ic-hero.js.map +1 -1
  193. package/dist/collection/components/ic-hero/test/basic/ic-hero.spec.js +6 -6
  194. package/dist/collection/components/ic-hero/test/basic/ic-hero.spec.js.map +1 -1
  195. package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.css +5 -5
  196. package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.js +3 -3
  197. package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.js.map +1 -1
  198. package/dist/collection/components/ic-input-component-container/ic-input-component-container.css +31 -26
  199. package/dist/collection/components/ic-input-component-container/ic-input-component-container.js +9 -54
  200. package/dist/collection/components/ic-input-component-container/ic-input-component-container.js.map +1 -1
  201. package/dist/collection/components/ic-input-component-container/test/basic/ic-input-component-container.spec.js +9 -9
  202. package/dist/collection/components/ic-input-component-container/test/basic/ic-input-component-container.spec.js.map +1 -1
  203. package/dist/collection/components/ic-input-label/ic-input-label.css +1 -1
  204. package/dist/collection/components/ic-input-label/ic-input-label.js +24 -46
  205. package/dist/collection/components/ic-input-label/ic-input-label.js.map +1 -1
  206. package/dist/collection/components/ic-input-label/test/basic/ic-input-label.spec.js +4 -4
  207. package/dist/collection/components/ic-input-label/test/basic/ic-input-label.spec.js.map +1 -1
  208. package/dist/collection/components/ic-input-validation/ic-input-validation.css +1 -1
  209. package/dist/collection/components/ic-input-validation/ic-input-validation.js +2 -2
  210. package/dist/collection/components/ic-input-validation/ic-input-validation.js.map +1 -1
  211. package/dist/collection/components/ic-input-validation/test/basic/ic-input-validation.spec.js +4 -4
  212. package/dist/collection/components/ic-input-validation/test/basic/ic-input-validation.spec.js.map +1 -1
  213. package/dist/collection/components/ic-link/ic-link.css +31 -31
  214. package/dist/collection/components/ic-link/ic-link.js +4 -25
  215. package/dist/collection/components/ic-link/ic-link.js.map +1 -1
  216. package/dist/collection/components/ic-link/test/basic/ic-link.spec.js +18 -16
  217. package/dist/collection/components/ic-link/test/basic/ic-link.spec.js.map +1 -1
  218. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.css +5 -4
  219. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js +7 -7
  220. package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js.map +1 -1
  221. package/dist/collection/components/ic-menu/ic-menu.css +8 -8
  222. package/dist/collection/components/ic-menu/ic-menu.js +6 -29
  223. package/dist/collection/components/ic-menu/ic-menu.js.map +1 -1
  224. package/dist/collection/components/ic-menu/test/basic/ic-menu.spec.js +1 -1
  225. package/dist/collection/components/ic-menu/test/basic/ic-menu.spec.js.map +1 -1
  226. package/dist/collection/components/ic-menu-item/ic-menu-item.css +21 -21
  227. package/dist/collection/components/ic-menu-item/ic-menu-item.js +1 -1
  228. package/dist/collection/components/ic-menu-item/ic-menu-item.js.map +1 -1
  229. package/dist/collection/components/ic-navigation-group/ic-navigation-group.css +10 -10
  230. package/dist/collection/components/ic-navigation-group/ic-navigation-group.js +7 -7
  231. package/dist/collection/components/ic-navigation-group/ic-navigation-group.js.map +1 -1
  232. package/dist/collection/components/ic-navigation-item/ic-navigation-item.js +4 -4
  233. package/dist/collection/components/ic-navigation-item/ic-navigation-item.js.map +1 -1
  234. package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js +1 -1
  235. package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js.map +1 -1
  236. package/dist/collection/components/ic-page-header/ic-page-header.css +2 -2
  237. package/dist/collection/components/ic-page-header/ic-page-header.js +5 -27
  238. package/dist/collection/components/ic-page-header/ic-page-header.js.map +1 -1
  239. package/dist/collection/components/ic-page-header/test/basic/ic-page-header.spec.js +15 -15
  240. package/dist/collection/components/ic-page-header/test/basic/ic-page-header.spec.js.map +1 -1
  241. package/dist/collection/components/ic-pagination/ic-pagination.css +5 -0
  242. package/dist/collection/components/ic-pagination/ic-pagination.js +39 -37
  243. package/dist/collection/components/ic-pagination/ic-pagination.js.map +1 -1
  244. package/dist/collection/components/ic-pagination/test/basic/ic-pagination.spec.js +26 -26
  245. package/dist/collection/components/ic-pagination/test/basic/ic-pagination.spec.js.map +1 -1
  246. package/dist/collection/components/ic-popover-menu/ic-popover-menu.css +2 -2
  247. package/dist/collection/components/ic-popover-menu/ic-popover-menu.js +1 -1
  248. package/dist/collection/components/ic-popover-menu/ic-popover-menu.js.map +1 -1
  249. package/dist/collection/components/ic-radio-group/ic-radio-group.css +4 -4
  250. package/dist/collection/components/ic-radio-group/ic-radio-group.js +23 -46
  251. package/dist/collection/components/ic-radio-group/ic-radio-group.js.map +1 -1
  252. package/dist/collection/components/ic-radio-group/test/basic/ic-radio-group.e2e.js +14 -18
  253. package/dist/collection/components/ic-radio-group/test/basic/ic-radio-group.e2e.js.map +1 -1
  254. package/dist/collection/components/ic-radio-group/test/basic/ic-radio-group.spec.js +11 -2
  255. package/dist/collection/components/ic-radio-group/test/basic/ic-radio-group.spec.js.map +1 -1
  256. package/dist/collection/components/ic-radio-option/ic-radio-option.css +4 -4
  257. package/dist/collection/components/ic-radio-option/ic-radio-option.js +4 -126
  258. package/dist/collection/components/ic-radio-option/ic-radio-option.js.map +1 -1
  259. package/dist/collection/components/ic-search-bar/ic-search-bar.css +6 -6
  260. package/dist/collection/components/ic-search-bar/ic-search-bar.js +29 -96
  261. package/dist/collection/components/ic-search-bar/ic-search-bar.js.map +1 -1
  262. package/dist/collection/components/ic-search-bar/test/basic/ic-search-bar.e2e.js +6 -6
  263. package/dist/collection/components/ic-search-bar/test/basic/ic-search-bar.e2e.js.map +1 -1
  264. package/dist/collection/components/ic-search-bar/test/basic/ic-search-bar.spec.js +15 -15
  265. package/dist/collection/components/ic-search-bar/test/basic/ic-search-bar.spec.js.map +1 -1
  266. package/dist/collection/components/ic-select/ic-select.css +14 -12
  267. package/dist/collection/components/ic-select/ic-select.js +13 -148
  268. package/dist/collection/components/ic-select/ic-select.js.map +1 -1
  269. package/dist/collection/components/ic-select/test/basic/ic-select.spec.js +6 -6
  270. package/dist/collection/components/ic-select/test/basic/ic-select.spec.js.map +1 -1
  271. package/dist/collection/components/ic-side-navigation/ic-side-navigation.css +8 -8
  272. package/dist/collection/components/ic-side-navigation/ic-side-navigation.js +6 -6
  273. package/dist/collection/components/ic-side-navigation/ic-side-navigation.js.map +1 -1
  274. package/dist/collection/components/ic-skeleton/ic-skeleton.css +2 -2
  275. package/dist/collection/components/ic-skeleton/ic-skeleton.js +3 -25
  276. package/dist/collection/components/ic-skeleton/ic-skeleton.js.map +1 -1
  277. package/dist/collection/components/ic-skeleton/test/basic/ic-skeleton.spec.js +1 -1
  278. package/dist/collection/components/ic-skeleton/test/basic/ic-skeleton.spec.js.map +1 -1
  279. package/dist/collection/components/ic-status-tag/ic-status-tag.js +1 -57
  280. package/dist/collection/components/ic-status-tag/ic-status-tag.js.map +1 -1
  281. package/dist/collection/components/ic-status-tag/ic-status-tag.types.js.map +1 -1
  282. package/dist/collection/components/ic-step/ic-step.css +52 -52
  283. package/dist/collection/components/ic-step/ic-step.js +49 -52
  284. package/dist/collection/components/ic-step/ic-step.js.map +1 -1
  285. package/dist/collection/components/ic-step/test/basic/ic-step.spec.js +30 -30
  286. package/dist/collection/components/ic-step/test/basic/ic-step.spec.js.map +1 -1
  287. package/dist/collection/components/ic-stepper/ic-stepper.css +4 -4
  288. package/dist/collection/components/ic-stepper/ic-stepper.js +14 -14
  289. package/dist/collection/components/ic-stepper/ic-stepper.js.map +1 -1
  290. package/dist/collection/components/ic-stepper/test/basic/ic-stepper-test-examples.js +37 -37
  291. package/dist/collection/components/ic-stepper/test/basic/ic-stepper-test-examples.js.map +1 -1
  292. package/dist/collection/components/ic-stepper/test/basic/ic-stepper.spec.js +234 -234
  293. package/dist/collection/components/ic-stepper/test/basic/ic-stepper.spec.js.map +1 -1
  294. package/dist/collection/components/ic-switch/ic-switch.js +4 -26
  295. package/dist/collection/components/ic-switch/ic-switch.js.map +1 -1
  296. package/dist/collection/components/ic-switch/test/basic/ic-switch.spec.js +1 -1
  297. package/dist/collection/components/ic-switch/test/basic/ic-switch.spec.js.map +1 -1
  298. package/dist/collection/components/ic-tab/ic-tab.css +5 -5
  299. package/dist/collection/components/ic-tab/ic-tab.js +2 -2
  300. package/dist/collection/components/ic-tab/ic-tab.js.map +1 -1
  301. package/dist/collection/components/ic-tab/test/basic/ic-tab.spec.js +2 -2
  302. package/dist/collection/components/ic-tab/test/basic/ic-tab.spec.js.map +1 -1
  303. package/dist/collection/components/ic-tab-context/ic-tab-context.js +0 -34
  304. package/dist/collection/components/ic-tab-context/ic-tab-context.js.map +1 -1
  305. package/dist/collection/components/ic-tab-group/ic-tab-group.css +2 -2
  306. package/dist/collection/components/ic-tab-group/ic-tab-group.js +2 -24
  307. package/dist/collection/components/ic-tab-group/ic-tab-group.js.map +1 -1
  308. package/dist/collection/components/ic-tab-panel/ic-tab-panel.js +0 -28
  309. package/dist/collection/components/ic-tab-panel/ic-tab-panel.js.map +1 -1
  310. package/dist/collection/components/ic-tab-panel/test/basic/ic-tab-panel.spec.js +3 -18
  311. package/dist/collection/components/ic-tab-panel/test/basic/ic-tab-panel.spec.js.map +1 -1
  312. package/dist/collection/components/ic-text-field/ic-text-field.css +8 -3
  313. package/dist/collection/components/ic-text-field/ic-text-field.js +67 -89
  314. package/dist/collection/components/ic-text-field/ic-text-field.js.map +1 -1
  315. package/dist/collection/components/ic-text-field/test/basic/ic-text-field.input.spec.js +26 -11
  316. package/dist/collection/components/ic-text-field/test/basic/ic-text-field.input.spec.js.map +1 -1
  317. package/dist/collection/components/ic-text-field/test/basic/ic-text-field.textarea.spec.js +70 -39
  318. package/dist/collection/components/ic-text-field/test/basic/ic-text-field.textarea.spec.js.map +1 -1
  319. package/dist/collection/components/ic-toast/ic-toast.css +10 -3
  320. package/dist/collection/components/ic-toast/ic-toast.js +83 -32
  321. package/dist/collection/components/ic-toast/ic-toast.js.map +1 -1
  322. package/dist/collection/components/ic-toast/test/basic/ic-toast.spec.js +43 -7
  323. package/dist/collection/components/ic-toast/test/basic/ic-toast.spec.js.map +1 -1
  324. package/dist/collection/components/ic-toast-region/ic-toast-region.js +1 -43
  325. package/dist/collection/components/ic-toast-region/ic-toast-region.js.map +1 -1
  326. package/dist/collection/components/ic-toast-region/test/basic/ic-toast-region.spec.js +0 -20
  327. package/dist/collection/components/ic-toast-region/test/basic/ic-toast-region.spec.js.map +1 -1
  328. package/dist/collection/components/ic-toggle-button/ic-toggle-button.css +50 -43
  329. package/dist/collection/components/ic-toggle-button/ic-toggle-button.js +13 -13
  330. package/dist/collection/components/ic-toggle-button/ic-toggle-button.js.map +1 -1
  331. package/dist/collection/components/ic-toggle-button/test/basic/ic-toggle-button.spec.js +4 -4
  332. package/dist/collection/components/ic-toggle-button/test/basic/ic-toggle-button.spec.js.map +1 -1
  333. package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.css +11 -8
  334. package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.js +15 -15
  335. package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.js.map +1 -1
  336. package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.types.js.map +1 -1
  337. package/dist/collection/components/ic-toggle-button-group/test/ic-toggle-button-group.spec.js +19 -19
  338. package/dist/collection/components/ic-toggle-button-group/test/ic-toggle-button-group.spec.js.map +1 -1
  339. package/dist/collection/components/ic-top-navigation/ic-top-navigation.js +4 -4
  340. package/dist/collection/components/ic-top-navigation/ic-top-navigation.js.map +1 -1
  341. package/dist/collection/components/ic-typography/ic-typography.css +5 -5
  342. package/dist/collection/components/ic-typography/ic-typography.js +4 -4
  343. package/dist/collection/components/ic-typography/ic-typography.js.map +1 -1
  344. package/dist/collection/utils/types.js.map +1 -1
  345. package/dist/components/ic-accordion-group.js +8 -8
  346. package/dist/components/ic-accordion-group.js.map +1 -1
  347. package/dist/components/ic-accordion.js +3 -3
  348. package/dist/components/ic-accordion.js.map +1 -1
  349. package/dist/components/ic-alert.js +127 -1
  350. package/dist/components/ic-alert.js.map +1 -1
  351. package/dist/components/ic-back-to-top.js +24 -15
  352. package/dist/components/ic-back-to-top.js.map +1 -1
  353. package/dist/components/ic-badge.js +16 -30
  354. package/dist/components/ic-badge.js.map +1 -1
  355. package/dist/components/ic-breadcrumb-group.js +3 -3
  356. package/dist/components/ic-breadcrumb-group.js.map +1 -1
  357. package/dist/components/ic-breadcrumb2.js +2 -2
  358. package/dist/components/ic-breadcrumb2.js.map +1 -1
  359. package/dist/components/ic-button2.js +9 -9
  360. package/dist/components/ic-button2.js.map +1 -1
  361. package/dist/components/{ic-data-entity.d.ts → ic-card-vertical.d.ts} +4 -4
  362. package/dist/components/{ic-card.js → ic-card-vertical.js} +10 -10
  363. package/dist/components/ic-card-vertical.js.map +1 -0
  364. package/dist/components/ic-checkbox-group.js +5 -5
  365. package/dist/components/ic-checkbox-group.js.map +1 -1
  366. package/dist/components/ic-checkbox.js +5 -20
  367. package/dist/components/ic-checkbox.js.map +1 -1
  368. package/dist/components/ic-chip.js +2 -10
  369. package/dist/components/ic-chip.js.map +1 -1
  370. package/dist/components/ic-classification-banner.js +2 -2
  371. package/dist/components/ic-classification-banner.js.map +1 -1
  372. package/dist/components/{ic-card.d.ts → ic-data-list.d.ts} +4 -4
  373. package/dist/components/ic-data-list.js +51 -0
  374. package/dist/components/ic-data-list.js.map +1 -0
  375. package/dist/components/ic-data-row.js +9 -11
  376. package/dist/components/ic-data-row.js.map +1 -1
  377. package/dist/components/ic-dialog.js +14 -112
  378. package/dist/components/ic-dialog.js.map +1 -1
  379. package/dist/components/ic-empty-state.js +6 -6
  380. package/dist/components/ic-empty-state.js.map +1 -1
  381. package/dist/components/ic-footer-link-group.js +9 -9
  382. package/dist/components/ic-footer-link-group.js.map +1 -1
  383. package/dist/components/ic-footer-link.js +12 -7
  384. package/dist/components/ic-footer-link.js.map +1 -1
  385. package/dist/components/ic-footer.js +7 -7
  386. package/dist/components/ic-footer.js.map +1 -1
  387. package/dist/components/ic-hero.js +7 -9
  388. package/dist/components/ic-hero.js.map +1 -1
  389. package/dist/components/ic-horizontal-scroll2.js +4 -4
  390. package/dist/components/ic-horizontal-scroll2.js.map +1 -1
  391. package/dist/components/ic-input-component-container2.js +10 -15
  392. package/dist/components/ic-input-component-container2.js.map +1 -1
  393. package/dist/components/ic-input-label2.js +9 -11
  394. package/dist/components/ic-input-label2.js.map +1 -1
  395. package/dist/components/ic-input-validation2.js +3 -3
  396. package/dist/components/ic-input-validation2.js.map +1 -1
  397. package/dist/components/ic-link2.js +5 -7
  398. package/dist/components/ic-link2.js.map +1 -1
  399. package/dist/components/ic-loading-indicator2.js +8 -8
  400. package/dist/components/ic-loading-indicator2.js.map +1 -1
  401. package/dist/components/ic-menu-item2.js +2 -2
  402. package/dist/components/ic-menu-item2.js.map +1 -1
  403. package/dist/components/ic-menu2.js +7 -10
  404. package/dist/components/ic-menu2.js.map +1 -1
  405. package/dist/components/ic-navigation-group.js +8 -8
  406. package/dist/components/ic-navigation-group.js.map +1 -1
  407. package/dist/components/ic-navigation-item.js +4 -4
  408. package/dist/components/ic-navigation-item.js.map +1 -1
  409. package/dist/components/ic-navigation-menu2.js +1 -1
  410. package/dist/components/ic-navigation-menu2.js.map +1 -1
  411. package/dist/components/ic-page-header.js +6 -8
  412. package/dist/components/ic-page-header.js.map +1 -1
  413. package/dist/components/ic-pagination.js +38 -36
  414. package/dist/components/ic-pagination.js.map +1 -1
  415. package/dist/components/ic-popover-menu.js +2 -2
  416. package/dist/components/ic-popover-menu.js.map +1 -1
  417. package/dist/components/ic-radio-group.js +23 -27
  418. package/dist/components/ic-radio-group.js.map +1 -1
  419. package/dist/components/ic-radio-option.js +6 -25
  420. package/dist/components/ic-radio-option.js.map +1 -1
  421. package/dist/components/ic-search-bar.js +19 -26
  422. package/dist/components/ic-search-bar.js.map +1 -1
  423. package/dist/components/ic-select.js +13 -28
  424. package/dist/components/ic-select.js.map +1 -1
  425. package/dist/components/ic-side-navigation.js +6 -6
  426. package/dist/components/ic-side-navigation.js.map +1 -1
  427. package/dist/components/ic-skeleton.js +4 -6
  428. package/dist/components/ic-skeleton.js.map +1 -1
  429. package/dist/components/ic-status-tag.js +1 -12
  430. package/dist/components/ic-status-tag.js.map +1 -1
  431. package/dist/components/ic-step.js +45 -48
  432. package/dist/components/ic-step.js.map +1 -1
  433. package/dist/components/ic-stepper.js +15 -15
  434. package/dist/components/ic-stepper.js.map +1 -1
  435. package/dist/components/ic-switch.js +4 -6
  436. package/dist/components/ic-switch.js.map +1 -1
  437. package/dist/components/ic-tab-context.js +0 -11
  438. package/dist/components/ic-tab-context.js.map +1 -1
  439. package/dist/components/ic-tab-group.js +3 -5
  440. package/dist/components/ic-tab-group.js.map +1 -1
  441. package/dist/components/ic-tab-panel.js +0 -8
  442. package/dist/components/ic-tab-panel.js.map +1 -1
  443. package/dist/components/ic-tab.js +3 -3
  444. package/dist/components/ic-tab.js.map +1 -1
  445. package/dist/components/ic-text-field2.js +50 -52
  446. package/dist/components/ic-text-field2.js.map +1 -1
  447. package/dist/components/ic-toast-region.js +1 -9
  448. package/dist/components/ic-toast-region.js.map +1 -1
  449. package/dist/components/ic-toast.js +85 -35
  450. package/dist/components/ic-toast.js.map +1 -1
  451. package/dist/components/ic-toggle-button-group.js +16 -16
  452. package/dist/components/ic-toggle-button-group.js.map +1 -1
  453. package/dist/components/ic-toggle-button.js +13 -13
  454. package/dist/components/ic-toggle-button.js.map +1 -1
  455. package/dist/components/ic-top-navigation.js +3 -3
  456. package/dist/components/ic-top-navigation.js.map +1 -1
  457. package/dist/components/ic-typography2.js +5 -5
  458. package/dist/components/ic-typography2.js.map +1 -1
  459. package/dist/components/types.js.map +1 -1
  460. package/dist/core/core.css +1 -1
  461. package/dist/core/core.esm.js +1 -1
  462. package/dist/core/core.esm.js.map +1 -1
  463. package/dist/core/{p-bb963aa4.entry.js → p-05d32a4f.entry.js} +2 -2
  464. package/dist/core/{p-223889da.entry.js → p-086a6d4f.entry.js} +2 -2
  465. package/dist/core/p-0a00a786.entry.js +2 -0
  466. package/dist/core/p-0a00a786.entry.js.map +1 -0
  467. package/dist/core/p-145fcef3.entry.js +2 -0
  468. package/dist/core/p-145fcef3.entry.js.map +1 -0
  469. package/dist/core/{p-60f7f555.entry.js → p-15367990.entry.js} +2 -2
  470. package/dist/core/p-15367990.entry.js.map +1 -0
  471. package/dist/core/p-1737bf2c.entry.js +2 -0
  472. package/dist/core/p-1737bf2c.entry.js.map +1 -0
  473. package/dist/core/p-1ace2b02.entry.js +2 -0
  474. package/dist/core/p-1ace2b02.entry.js.map +1 -0
  475. package/dist/core/p-1e371012.entry.js +2 -0
  476. package/dist/core/p-1e371012.entry.js.map +1 -0
  477. package/dist/core/p-1f227289.entry.js +2 -0
  478. package/dist/core/p-1f227289.entry.js.map +1 -0
  479. package/dist/core/p-24275b92.entry.js +2 -0
  480. package/dist/core/p-24275b92.entry.js.map +1 -0
  481. package/dist/core/p-26b7b18f.js.map +1 -1
  482. package/dist/core/p-29e6c33f.entry.js +2 -0
  483. package/dist/core/p-29e6c33f.entry.js.map +1 -0
  484. package/dist/core/{p-9c9ba3cd.entry.js → p-2a6f01ad.entry.js} +2 -2
  485. package/dist/core/{p-3f2d4108.entry.js → p-2f86c53b.entry.js} +2 -2
  486. package/dist/core/p-2f86c53b.entry.js.map +1 -0
  487. package/dist/core/p-319e40c0.entry.js +2 -0
  488. package/dist/core/p-319e40c0.entry.js.map +1 -0
  489. package/dist/core/p-346c6920.entry.js +2 -0
  490. package/dist/core/p-346c6920.entry.js.map +1 -0
  491. package/dist/core/{p-ed2b2bd7.entry.js → p-4b1445b3.entry.js} +2 -2
  492. package/dist/core/p-4b1445b3.entry.js.map +1 -0
  493. package/dist/core/p-4b621c67.entry.js +2 -0
  494. package/dist/core/p-4b621c67.entry.js.map +1 -0
  495. package/dist/core/p-4ca2b177.entry.js +2 -0
  496. package/dist/core/p-4ca2b177.entry.js.map +1 -0
  497. package/dist/core/{p-3eda4e14.entry.js → p-54238d16.entry.js} +2 -2
  498. package/dist/core/p-54238d16.entry.js.map +1 -0
  499. package/dist/core/{p-dbc0f5da.entry.js → p-5515ad19.entry.js} +2 -2
  500. package/dist/core/p-5515ad19.entry.js.map +1 -0
  501. package/dist/core/p-5c8081d6.entry.js +2 -0
  502. package/dist/core/p-5c8081d6.entry.js.map +1 -0
  503. package/dist/core/{p-936ab032.entry.js → p-5f941f3a.entry.js} +2 -2
  504. package/dist/core/{p-936ab032.entry.js.map → p-5f941f3a.entry.js.map} +1 -1
  505. package/dist/core/p-5fd293b3.entry.js +2 -0
  506. package/dist/core/p-5fd293b3.entry.js.map +1 -0
  507. package/dist/core/p-60721d95.entry.js +2 -0
  508. package/dist/core/p-60721d95.entry.js.map +1 -0
  509. package/dist/core/{p-230187a8.entry.js → p-64a5a1d8.entry.js} +2 -2
  510. package/dist/core/p-64a5a1d8.entry.js.map +1 -0
  511. package/dist/core/p-65e36461.entry.js +2 -0
  512. package/dist/core/p-65e36461.entry.js.map +1 -0
  513. package/dist/core/{p-cb14349b.entry.js → p-66363c7d.entry.js} +2 -2
  514. package/dist/core/p-66363c7d.entry.js.map +1 -0
  515. package/dist/core/p-69728d76.entry.js +2 -0
  516. package/dist/core/p-69728d76.entry.js.map +1 -0
  517. package/dist/core/p-6b328c76.entry.js +2 -0
  518. package/dist/core/p-6b328c76.entry.js.map +1 -0
  519. package/dist/core/p-6b5ddacd.entry.js +2 -0
  520. package/dist/core/p-6b5ddacd.entry.js.map +1 -0
  521. package/dist/core/{p-e8fa0095.entry.js → p-7b3d6577.entry.js} +2 -2
  522. package/dist/core/p-7b3d6577.entry.js.map +1 -0
  523. package/dist/core/p-7d45828d.entry.js +2 -0
  524. package/dist/core/p-7d45828d.entry.js.map +1 -0
  525. package/dist/core/p-893eca54.entry.js +2 -0
  526. package/dist/core/p-893eca54.entry.js.map +1 -0
  527. package/dist/core/p-8ee262a4.entry.js +2 -0
  528. package/dist/core/p-8ee262a4.entry.js.map +1 -0
  529. package/dist/core/p-8f93d92b.entry.js +2 -0
  530. package/dist/core/p-8f93d92b.entry.js.map +1 -0
  531. package/dist/core/p-90bb13d2.entry.js +2 -0
  532. package/dist/core/p-90bb13d2.entry.js.map +1 -0
  533. package/dist/core/p-9189a82d.entry.js +2 -0
  534. package/dist/core/p-9189a82d.entry.js.map +1 -0
  535. package/dist/core/p-9190a84d.entry.js +2 -0
  536. package/dist/core/p-9190a84d.entry.js.map +1 -0
  537. package/dist/core/{p-843ed766.entry.js → p-93f50a1a.entry.js} +2 -2
  538. package/dist/core/p-93f50a1a.entry.js.map +1 -0
  539. package/dist/core/p-9474baf3.entry.js +2 -0
  540. package/dist/core/p-9474baf3.entry.js.map +1 -0
  541. package/dist/core/{p-02262e76.entry.js → p-9857f6b0.entry.js} +2 -2
  542. package/dist/core/{p-7438ab1f.entry.js → p-a0e4d6bd.entry.js} +2 -2
  543. package/dist/core/p-a0e4d6bd.entry.js.map +1 -0
  544. package/dist/core/p-a1b9a808.entry.js +2 -0
  545. package/dist/core/p-a1b9a808.entry.js.map +1 -0
  546. package/dist/core/p-a79bec03.entry.js +2 -0
  547. package/dist/core/p-a79bec03.entry.js.map +1 -0
  548. package/dist/core/p-a84a4675.entry.js +2 -0
  549. package/dist/core/p-a84a4675.entry.js.map +1 -0
  550. package/dist/core/p-a928c7b3.entry.js +2 -0
  551. package/dist/core/p-a928c7b3.entry.js.map +1 -0
  552. package/dist/core/{p-6fae7e1f.entry.js → p-bf89c86d.entry.js} +2 -2
  553. package/dist/core/p-bf89c86d.entry.js.map +1 -0
  554. package/dist/core/{p-fef9e8c9.js → p-d0524c73.js} +2 -2
  555. package/dist/core/p-d24410ca.entry.js +2 -0
  556. package/dist/core/p-d24410ca.entry.js.map +1 -0
  557. package/dist/core/p-d52ca420.entry.js +2 -0
  558. package/dist/core/p-d52ca420.entry.js.map +1 -0
  559. package/dist/core/p-d67a30ca.entry.js +2 -0
  560. package/dist/core/p-d67a30ca.entry.js.map +1 -0
  561. package/dist/core/{p-ad67c84f.entry.js → p-de27c59e.entry.js} +2 -2
  562. package/dist/core/p-de27c59e.entry.js.map +1 -0
  563. package/dist/core/p-dec339ba.entry.js +2 -0
  564. package/dist/core/p-dec339ba.entry.js.map +1 -0
  565. package/dist/core/p-e4335135.entry.js +2 -0
  566. package/dist/core/p-e4335135.entry.js.map +1 -0
  567. package/dist/core/p-e56a2a06.entry.js +2 -0
  568. package/dist/core/p-e56a2a06.entry.js.map +1 -0
  569. package/dist/core/p-e696dc2a.entry.js +2 -0
  570. package/dist/core/p-e696dc2a.entry.js.map +1 -0
  571. package/dist/core/{p-227f6a41.entry.js → p-f0501be1.entry.js} +2 -2
  572. package/dist/core/p-f0501be1.entry.js.map +1 -0
  573. package/dist/core/{p-dd9d8e68.entry.js → p-f50462df.entry.js} +2 -2
  574. package/dist/core/p-feb80f37.entry.js +2 -0
  575. package/dist/core/p-feb80f37.entry.js.map +1 -0
  576. package/dist/esm/core.js +1 -1
  577. package/dist/esm/{helpers-3905ccc4.js → helpers-35ac5e03.js} +2 -2
  578. package/dist/esm/{helpers-3905ccc4.js.map → helpers-35ac5e03.js.map} +1 -1
  579. package/dist/esm/ic-accordion-group.entry.js +8 -8
  580. package/dist/esm/ic-accordion-group.entry.js.map +1 -1
  581. package/dist/esm/ic-accordion.entry.js +4 -4
  582. package/dist/esm/ic-accordion.entry.js.map +1 -1
  583. package/dist/esm/ic-alert.entry.js +1 -3
  584. package/dist/esm/ic-alert.entry.js.map +1 -1
  585. package/dist/esm/ic-back-to-top.entry.js +12 -15
  586. package/dist/esm/ic-back-to-top.entry.js.map +1 -1
  587. package/dist/esm/ic-badge.entry.js +15 -27
  588. package/dist/esm/ic-badge.entry.js.map +1 -1
  589. package/dist/esm/ic-breadcrumb-group.entry.js +4 -4
  590. package/dist/esm/ic-breadcrumb-group.entry.js.map +1 -1
  591. package/dist/esm/ic-breadcrumb.entry.js +3 -3
  592. package/dist/esm/ic-breadcrumb.entry.js.map +1 -1
  593. package/dist/esm/ic-button_3.entry.js +17 -17
  594. package/dist/esm/ic-button_3.entry.js.map +1 -1
  595. package/dist/esm/{ic-card.entry.js → ic-card-vertical.entry.js} +6 -6
  596. package/dist/esm/ic-card-vertical.entry.js.map +1 -0
  597. package/dist/esm/ic-checkbox-group.entry.js +6 -5
  598. package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
  599. package/dist/esm/ic-checkbox.entry.js +6 -15
  600. package/dist/esm/ic-checkbox.entry.js.map +1 -1
  601. package/dist/esm/ic-chip.entry.js +3 -10
  602. package/dist/esm/ic-chip.entry.js.map +1 -1
  603. package/dist/esm/ic-classification-banner.entry.js +2 -2
  604. package/dist/esm/ic-classification-banner.entry.js.map +1 -1
  605. package/dist/esm/ic-data-list.entry.js +24 -0
  606. package/dist/esm/ic-data-list.entry.js.map +1 -0
  607. package/dist/esm/ic-data-row.entry.js +9 -10
  608. package/dist/esm/ic-data-row.entry.js.map +1 -1
  609. package/dist/esm/ic-dialog.entry.js +12 -97
  610. package/dist/esm/ic-dialog.entry.js.map +1 -1
  611. package/dist/esm/ic-divider.entry.js +1 -1
  612. package/dist/esm/ic-empty-state.entry.js +6 -6
  613. package/dist/esm/ic-empty-state.entry.js.map +1 -1
  614. package/dist/esm/ic-footer-link-group.entry.js +9 -9
  615. package/dist/esm/ic-footer-link-group.entry.js.map +1 -1
  616. package/dist/esm/ic-footer-link.entry.js +6 -7
  617. package/dist/esm/ic-footer-link.entry.js.map +1 -1
  618. package/dist/esm/ic-footer.entry.js +8 -8
  619. package/dist/esm/ic-footer.entry.js.map +1 -1
  620. package/dist/esm/ic-hero.entry.js +8 -9
  621. package/dist/esm/ic-hero.entry.js.map +1 -1
  622. package/dist/esm/ic-horizontal-scroll.entry.js +5 -5
  623. package/dist/esm/ic-horizontal-scroll.entry.js.map +1 -1
  624. package/dist/esm/ic-input-component-container_3.entry.js +18 -23
  625. package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
  626. package/dist/esm/ic-input-label_2.entry.js +11 -12
  627. package/dist/esm/ic-input-label_2.entry.js.map +1 -1
  628. package/dist/esm/ic-link.entry.js +6 -7
  629. package/dist/esm/ic-link.entry.js.map +1 -1
  630. package/dist/esm/ic-menu-group.entry.js +1 -1
  631. package/dist/esm/ic-menu-item.entry.js +3 -3
  632. package/dist/esm/ic-menu-item.entry.js.map +1 -1
  633. package/dist/esm/ic-navigation-button.entry.js +1 -1
  634. package/dist/esm/ic-navigation-group.entry.js +9 -9
  635. package/dist/esm/ic-navigation-group.entry.js.map +1 -1
  636. package/dist/esm/ic-navigation-item.entry.js +5 -5
  637. package/dist/esm/ic-navigation-item.entry.js.map +1 -1
  638. package/dist/esm/ic-navigation-menu.entry.js +2 -2
  639. package/dist/esm/ic-navigation-menu.entry.js.map +1 -1
  640. package/dist/esm/ic-page-header.entry.js +7 -8
  641. package/dist/esm/ic-page-header.entry.js.map +1 -1
  642. package/dist/esm/ic-pagination-item.entry.js +1 -1
  643. package/dist/esm/ic-pagination.entry.js +35 -33
  644. package/dist/esm/ic-pagination.entry.js.map +1 -1
  645. package/dist/esm/ic-popover-menu.entry.js +3 -3
  646. package/dist/esm/ic-popover-menu.entry.js.map +1 -1
  647. package/dist/esm/ic-radio-group.entry.js +22 -26
  648. package/dist/esm/ic-radio-group.entry.js.map +1 -1
  649. package/dist/esm/ic-radio-option.entry.js +5 -18
  650. package/dist/esm/ic-radio-option.entry.js.map +1 -1
  651. package/dist/esm/ic-search-bar.entry.js +18 -24
  652. package/dist/esm/ic-search-bar.entry.js.map +1 -1
  653. package/dist/esm/ic-select.entry.js +13 -21
  654. package/dist/esm/ic-select.entry.js.map +1 -1
  655. package/dist/esm/ic-side-navigation.entry.js +7 -7
  656. package/dist/esm/ic-side-navigation.entry.js.map +1 -1
  657. package/dist/esm/ic-skeleton.entry.js +4 -5
  658. package/dist/esm/ic-skeleton.entry.js.map +1 -1
  659. package/dist/esm/ic-status-tag.entry.js +2 -11
  660. package/dist/esm/ic-status-tag.entry.js.map +1 -1
  661. package/dist/esm/ic-step.entry.js +40 -43
  662. package/dist/esm/ic-step.entry.js.map +1 -1
  663. package/dist/esm/ic-stepper.entry.js +16 -16
  664. package/dist/esm/ic-stepper.entry.js.map +1 -1
  665. package/dist/esm/ic-switch.entry.js +5 -6
  666. package/dist/esm/ic-switch.entry.js.map +1 -1
  667. package/dist/esm/ic-tab-context.entry.js +0 -11
  668. package/dist/esm/ic-tab-context.entry.js.map +1 -1
  669. package/dist/esm/ic-tab-group.entry.js +4 -5
  670. package/dist/esm/ic-tab-group.entry.js.map +1 -1
  671. package/dist/esm/ic-tab-panel.entry.js +1 -8
  672. package/dist/esm/ic-tab-panel.entry.js.map +1 -1
  673. package/dist/esm/ic-tab.entry.js +4 -4
  674. package/dist/esm/ic-tab.entry.js.map +1 -1
  675. package/dist/esm/ic-text-field.entry.js +49 -49
  676. package/dist/esm/ic-text-field.entry.js.map +1 -1
  677. package/dist/esm/ic-theme.entry.js +1 -1
  678. package/dist/esm/ic-toast-region.entry.js +0 -7
  679. package/dist/esm/ic-toast-region.entry.js.map +1 -1
  680. package/dist/esm/ic-toast.entry.js +83 -35
  681. package/dist/esm/ic-toast.entry.js.map +1 -1
  682. package/dist/esm/ic-toggle-button-group.entry.js +16 -16
  683. package/dist/esm/ic-toggle-button-group.entry.js.map +1 -1
  684. package/dist/esm/ic-toggle-button.entry.js +13 -13
  685. package/dist/esm/ic-toggle-button.entry.js.map +1 -1
  686. package/dist/esm/ic-top-navigation.entry.js +4 -4
  687. package/dist/esm/ic-top-navigation.entry.js.map +1 -1
  688. package/dist/esm/ic-typography.entry.js +6 -6
  689. package/dist/esm/ic-typography.entry.js.map +1 -1
  690. package/dist/esm/index-d1d2c456.js +12 -12
  691. package/dist/esm/loader.js +1 -1
  692. package/dist/esm/types-6f6b41a5.js.map +1 -1
  693. package/dist/types/components/ic-accordion-group/ic-accordion-group.d.ts +2 -2
  694. package/dist/types/components/ic-alert/ic-alert.d.ts +0 -4
  695. package/dist/types/components/ic-back-to-top/ic-back-to-top.d.ts +0 -1
  696. package/dist/types/components/ic-badge/ic-badge.d.ts +3 -11
  697. package/dist/types/components/ic-button/ic-button.d.ts +0 -1
  698. package/dist/types/components/{ic-card/ic-card.d.ts → ic-card-vertical/ic-card-vertical.d.ts} +2 -2
  699. package/dist/types/components/ic-checkbox/ic-checkbox.d.ts +0 -28
  700. package/dist/types/components/ic-checkbox-group/ic-checkbox-group.d.ts +0 -4
  701. package/dist/types/components/ic-chip/ic-chip.d.ts +0 -9
  702. package/dist/types/components/ic-data-list/ic-data-list.d.ts +16 -0
  703. package/dist/types/components/ic-data-row/ic-data-row.d.ts +1 -5
  704. package/dist/types/components/ic-dialog/ic-dialog.d.ts +1 -37
  705. package/dist/types/components/ic-empty-state/ic-empty-state.d.ts +1 -1
  706. package/dist/types/components/ic-footer-link-group/ic-footer-link-group.d.ts +1 -1
  707. package/dist/types/components/ic-hero/ic-hero.d.ts +2 -6
  708. package/dist/types/components/ic-input-component-container/ic-input-component-container.d.ts +0 -8
  709. package/dist/types/components/ic-input-label/ic-input-label.d.ts +4 -8
  710. package/dist/types/components/ic-link/ic-link.d.ts +0 -4
  711. package/dist/types/components/ic-loading-indicator/ic-loading-indicator.d.ts +1 -1
  712. package/dist/types/components/ic-menu/ic-menu.d.ts +0 -4
  713. package/dist/types/components/ic-page-header/ic-page-header.d.ts +0 -4
  714. package/dist/types/components/ic-pagination/ic-pagination.d.ts +4 -4
  715. package/dist/types/components/ic-radio-group/ic-radio-group.d.ts +1 -4
  716. package/dist/types/components/ic-radio-option/ic-radio-option.d.ts +0 -24
  717. package/dist/types/components/ic-search-bar/ic-search-bar.d.ts +3 -15
  718. package/dist/types/components/ic-select/ic-select.d.ts +1 -31
  719. package/dist/types/components/ic-side-navigation/ic-side-navigation.d.ts +1 -1
  720. package/dist/types/components/ic-skeleton/ic-skeleton.d.ts +0 -4
  721. package/dist/types/components/ic-status-tag/ic-status-tag.d.ts +1 -10
  722. package/dist/types/components/ic-status-tag/ic-status-tag.types.d.ts +0 -1
  723. package/dist/types/components/ic-step/ic-step.d.ts +6 -6
  724. package/dist/types/components/ic-stepper/test/basic/ic-stepper-test-examples.d.ts +4 -4
  725. package/dist/types/components/ic-switch/ic-switch.d.ts +0 -4
  726. package/dist/types/components/ic-tab-context/ic-tab-context.d.ts +0 -4
  727. package/dist/types/components/ic-tab-group/ic-tab-group.d.ts +0 -5
  728. package/dist/types/components/ic-tab-panel/ic-tab-panel.d.ts +0 -6
  729. package/dist/types/components/ic-text-field/ic-text-field.d.ts +7 -12
  730. package/dist/types/components/ic-toast/ic-toast.d.ts +8 -1
  731. package/dist/types/components/ic-toast-region/ic-toast-region.d.ts +0 -5
  732. package/dist/types/components/ic-toggle-button/ic-toggle-button.d.ts +1 -1
  733. package/dist/types/components/ic-toggle-button-group/ic-toggle-button-group.types.d.ts +1 -1
  734. package/dist/types/components/ic-top-navigation/ic-top-navigation.d.ts +1 -1
  735. package/dist/types/components.d.ts +114 -508
  736. package/dist/types/utils/types.d.ts +1 -1
  737. package/hydrate/index.js +555 -752
  738. package/package.json +2 -2
  739. package/vscode-data.json +52 -245
  740. package/dist/cjs/ic-card.cjs.entry.js.map +0 -1
  741. package/dist/cjs/ic-data-entity.cjs.entry.js +0 -29
  742. package/dist/cjs/ic-data-entity.cjs.entry.js.map +0 -1
  743. package/dist/collection/components/ic-card/ic-card.js.map +0 -1
  744. package/dist/collection/components/ic-card/test/basic/ic-card.spec.js.map +0 -1
  745. package/dist/collection/components/ic-chip/ic-chip.types.js +0 -2
  746. package/dist/collection/components/ic-chip/ic-chip.types.js.map +0 -1
  747. package/dist/collection/components/ic-data-entity/ic-data-entity.js.map +0 -1
  748. package/dist/collection/components/ic-data-entity/test/basic/ic-data-entity.spec.js.map +0 -1
  749. package/dist/components/ic-alert2.js +0 -133
  750. package/dist/components/ic-alert2.js.map +0 -1
  751. package/dist/components/ic-card.js.map +0 -1
  752. package/dist/components/ic-data-entity.js +0 -53
  753. package/dist/components/ic-data-entity.js.map +0 -1
  754. package/dist/core/p-03f23a55.entry.js +0 -2
  755. package/dist/core/p-03f23a55.entry.js.map +0 -1
  756. package/dist/core/p-093600a2.entry.js +0 -2
  757. package/dist/core/p-093600a2.entry.js.map +0 -1
  758. package/dist/core/p-1145e33c.entry.js +0 -2
  759. package/dist/core/p-1145e33c.entry.js.map +0 -1
  760. package/dist/core/p-13a6e7ea.entry.js +0 -2
  761. package/dist/core/p-13a6e7ea.entry.js.map +0 -1
  762. package/dist/core/p-13ec2a00.entry.js +0 -2
  763. package/dist/core/p-13ec2a00.entry.js.map +0 -1
  764. package/dist/core/p-1ae6aadb.entry.js +0 -2
  765. package/dist/core/p-1ae6aadb.entry.js.map +0 -1
  766. package/dist/core/p-1d6e6ebe.entry.js +0 -2
  767. package/dist/core/p-1d6e6ebe.entry.js.map +0 -1
  768. package/dist/core/p-227f6a41.entry.js.map +0 -1
  769. package/dist/core/p-230187a8.entry.js.map +0 -1
  770. package/dist/core/p-2d930c9c.entry.js +0 -2
  771. package/dist/core/p-2d930c9c.entry.js.map +0 -1
  772. package/dist/core/p-3af60dee.entry.js +0 -2
  773. package/dist/core/p-3af60dee.entry.js.map +0 -1
  774. package/dist/core/p-3b4c9571.entry.js +0 -2
  775. package/dist/core/p-3b4c9571.entry.js.map +0 -1
  776. package/dist/core/p-3eda4e14.entry.js.map +0 -1
  777. package/dist/core/p-3f2d4108.entry.js.map +0 -1
  778. package/dist/core/p-49e997c7.entry.js +0 -2
  779. package/dist/core/p-49e997c7.entry.js.map +0 -1
  780. package/dist/core/p-55b11f6f.entry.js +0 -2
  781. package/dist/core/p-55b11f6f.entry.js.map +0 -1
  782. package/dist/core/p-5ccd3703.entry.js +0 -2
  783. package/dist/core/p-5ccd3703.entry.js.map +0 -1
  784. package/dist/core/p-60746e10.entry.js +0 -2
  785. package/dist/core/p-60746e10.entry.js.map +0 -1
  786. package/dist/core/p-60f7f555.entry.js.map +0 -1
  787. package/dist/core/p-69576aa0.entry.js +0 -2
  788. package/dist/core/p-69576aa0.entry.js.map +0 -1
  789. package/dist/core/p-6fae7e1f.entry.js.map +0 -1
  790. package/dist/core/p-7438ab1f.entry.js.map +0 -1
  791. package/dist/core/p-7c2b59fe.entry.js +0 -2
  792. package/dist/core/p-7c2b59fe.entry.js.map +0 -1
  793. package/dist/core/p-836e71de.entry.js +0 -2
  794. package/dist/core/p-836e71de.entry.js.map +0 -1
  795. package/dist/core/p-843ed766.entry.js.map +0 -1
  796. package/dist/core/p-8c325d9b.entry.js +0 -2
  797. package/dist/core/p-8c325d9b.entry.js.map +0 -1
  798. package/dist/core/p-9146a7f9.entry.js +0 -2
  799. package/dist/core/p-9146a7f9.entry.js.map +0 -1
  800. package/dist/core/p-96505636.entry.js +0 -2
  801. package/dist/core/p-96505636.entry.js.map +0 -1
  802. package/dist/core/p-a6ff78aa.entry.js +0 -2
  803. package/dist/core/p-a6ff78aa.entry.js.map +0 -1
  804. package/dist/core/p-a75f3c4d.entry.js +0 -2
  805. package/dist/core/p-a75f3c4d.entry.js.map +0 -1
  806. package/dist/core/p-ad67c84f.entry.js.map +0 -1
  807. package/dist/core/p-aeb001d7.entry.js +0 -2
  808. package/dist/core/p-aeb001d7.entry.js.map +0 -1
  809. package/dist/core/p-b2ceb541.entry.js +0 -2
  810. package/dist/core/p-b2ceb541.entry.js.map +0 -1
  811. package/dist/core/p-b47021d8.entry.js +0 -2
  812. package/dist/core/p-b47021d8.entry.js.map +0 -1
  813. package/dist/core/p-b9be021b.entry.js +0 -2
  814. package/dist/core/p-b9be021b.entry.js.map +0 -1
  815. package/dist/core/p-be5d5f93.entry.js +0 -2
  816. package/dist/core/p-be5d5f93.entry.js.map +0 -1
  817. package/dist/core/p-c1d5e7f2.entry.js +0 -2
  818. package/dist/core/p-c1d5e7f2.entry.js.map +0 -1
  819. package/dist/core/p-c59474bb.entry.js +0 -2
  820. package/dist/core/p-c59474bb.entry.js.map +0 -1
  821. package/dist/core/p-cb14349b.entry.js.map +0 -1
  822. package/dist/core/p-d21f0d15.entry.js +0 -2
  823. package/dist/core/p-d21f0d15.entry.js.map +0 -1
  824. package/dist/core/p-d3750771.entry.js +0 -2
  825. package/dist/core/p-d3750771.entry.js.map +0 -1
  826. package/dist/core/p-db52d416.entry.js +0 -2
  827. package/dist/core/p-db52d416.entry.js.map +0 -1
  828. package/dist/core/p-dbc0f5da.entry.js.map +0 -1
  829. package/dist/core/p-dcd475cc.entry.js +0 -2
  830. package/dist/core/p-dcd475cc.entry.js.map +0 -1
  831. package/dist/core/p-def5ba6b.entry.js +0 -2
  832. package/dist/core/p-def5ba6b.entry.js.map +0 -1
  833. package/dist/core/p-e6bad80b.entry.js +0 -2
  834. package/dist/core/p-e6bad80b.entry.js.map +0 -1
  835. package/dist/core/p-e735d773.entry.js +0 -2
  836. package/dist/core/p-e735d773.entry.js.map +0 -1
  837. package/dist/core/p-e7fa6804.entry.js +0 -2
  838. package/dist/core/p-e7fa6804.entry.js.map +0 -1
  839. package/dist/core/p-e8fa0095.entry.js.map +0 -1
  840. package/dist/core/p-ed2b2bd7.entry.js.map +0 -1
  841. package/dist/core/p-ee1c9f20.entry.js +0 -2
  842. package/dist/core/p-ee1c9f20.entry.js.map +0 -1
  843. package/dist/core/p-f735a277.entry.js +0 -2
  844. package/dist/core/p-f735a277.entry.js.map +0 -1
  845. package/dist/esm/ic-card.entry.js.map +0 -1
  846. package/dist/esm/ic-data-entity.entry.js +0 -25
  847. package/dist/esm/ic-data-entity.entry.js.map +0 -1
  848. package/dist/types/components/ic-chip/ic-chip.types.d.ts +0 -1
  849. package/dist/types/components/ic-data-entity/ic-data-entity.d.ts +0 -20
  850. /package/dist/collection/components/{ic-card/ic-card.css → ic-card-vertical/ic-card-vertical.css} +0 -0
  851. /package/dist/core/{p-bb963aa4.entry.js.map → p-05d32a4f.entry.js.map} +0 -0
  852. /package/dist/core/{p-223889da.entry.js.map → p-086a6d4f.entry.js.map} +0 -0
  853. /package/dist/core/{p-9c9ba3cd.entry.js.map → p-2a6f01ad.entry.js.map} +0 -0
  854. /package/dist/core/{p-02262e76.entry.js.map → p-9857f6b0.entry.js.map} +0 -0
  855. /package/dist/core/{p-fef9e8c9.js.map → p-d0524c73.js.map} +0 -0
  856. /package/dist/core/{p-dd9d8e68.entry.js.map → p-f50462df.entry.js.map} +0 -0
@@ -6,37 +6,36 @@ const index = require('./index-f982899d.js');
6
6
  const helpers = require('./helpers-94b33ab0.js');
7
7
  const types = require('./types-dc22e301.js');
8
8
 
9
- const icInputLabelCss = "ic-input-label{margin-bottom:var(--ic-space-xs)}ic-input-label.with-helper{margin-bottom:var(--ic-space-xxxs)}ic-input-label.readonly{color:var(--ic-color-tertiary-text)}ic-input-label .helpertext{margin-top:var(--ic-space-xxxs)}ic-input-label .helpertext-normal{color:var(--ic-color-secondary-text)}ic-input-label .helpertext-readonly{color:var(--ic-color-tertiary-text)}ic-input-label .readonly-label{color:var(--ic-color-secondary-text)}ic-input-label .error-label{color:var(--ic-status-error)}ic-input-label .dark{color:var(--ic-architectural-white)}";
9
+ const icInputLabelCss = "ic-input-label{margin-bottom:var(--ic-space-xs)}ic-input-label.with-helper{margin-bottom:var(--ic-space-xxxs)}ic-input-label.ic-input-label-readonly{color:var(--ic-color-tertiary-text)}ic-input-label .helpertext{margin-top:var(--ic-space-xxxs)}ic-input-label .helpertext-normal{color:var(--ic-color-secondary-text)}ic-input-label .helpertext-readonly{color:var(--ic-color-tertiary-text)}ic-input-label .readonly-label{color:var(--ic-color-secondary-text)}ic-input-label .error-label{color:var(--ic-status-error)}ic-input-label .dark{color:var(--ic-architectural-white)}";
10
10
 
11
11
  const InputLabel = class {
12
12
  constructor(hostRef) {
13
13
  index.registerInstance(this, hostRef);
14
14
  this.appearance = "default";
15
- this.dark = false;
16
15
  this.disabled = false;
17
- this.error = false;
18
16
  this.for = undefined;
19
17
  this.helperText = "";
20
18
  this.label = undefined;
21
19
  this.readonly = false;
22
20
  this.required = false;
21
+ this.status = "";
23
22
  }
24
23
  componentDidLoad() {
25
24
  helpers.onComponentRequiredPropUndefined([{ prop: this.label, propName: "label" }], "Input Label");
26
25
  }
27
26
  render() {
28
- const { disabled, readonly, label, required, helperText, error, dark, appearance, } = this;
27
+ const { disabled, readonly, label, required, helperText, status, appearance, } = this;
29
28
  const labelText = required ? label + " *" : label;
30
29
  const labelContent = readonly ? (`${labelText}`) : (index.h("label", { htmlFor: this.for }, labelText));
31
30
  const id = helpers.getInputHelperTextID(this.for);
32
31
  return (index.h(index.Host, { class: {
33
- ["disabled"]: disabled,
34
- ["readonly"]: readonly,
32
+ ["ic-input-label-disabled"]: disabled,
33
+ ["ic-input-label-readonly"]: readonly,
35
34
  ["with-helper"]: helperText !== "",
36
35
  } }, index.h("ic-typography", { variant: "label", class: {
37
36
  ["readonly-label"]: readonly,
38
- ["error-label"]: error && !(readonly || disabled),
39
- ["dark"]: dark || appearance === "dark",
37
+ ["error-label"]: status === "error" && !(readonly || disabled),
38
+ ["dark"]: appearance === "dark",
40
39
  } }, labelContent), helperText !== "" && (index.h("ic-typography", { variant: "caption", class: {
41
40
  ["helpertext"]: true,
42
41
  ["helpertext-normal"]: !disabled && !readonly,
@@ -46,7 +45,7 @@ const InputLabel = class {
46
45
  };
47
46
  InputLabel.style = icInputLabelCss;
48
47
 
49
- const icInputValidationCss = "ic-input-validation{width:var(--input-width, 20rem);margin-top:var(--ic-space-xs);display:flex}ic-input-validation.fullwidth{width:100%}ic-input-validation span.status-icon{padding-right:var(--ic-space-xxs)}ic-input-validation span.status-icon>svg{height:1.25rem;width:1.25rem}ic-input-validation span.icon-success>svg{fill:var(--ic-status-success)}ic-input-validation span.icon-error>svg{fill:var(--ic-status-error)}ic-input-validation span.icon-warning>svg{fill:var(--ic-status-warning)}ic-input-validation .statustext{flex-grow:1}";
48
+ const icInputValidationCss = "ic-input-validation{width:var(--input-width, 20rem);margin-top:var(--ic-space-xs);display:flex}ic-input-validation.ic-input-validation-full-width{width:100%}ic-input-validation span.status-icon{padding-right:var(--ic-space-xxs)}ic-input-validation span.status-icon>svg{height:1.25rem;width:1.25rem}ic-input-validation span.icon-success>svg{fill:var(--ic-status-success)}ic-input-validation span.icon-error>svg{fill:var(--ic-status-error)}ic-input-validation span.icon-warning>svg{fill:var(--ic-status-warning)}ic-input-validation .statustext{flex-grow:1}";
50
49
 
51
50
  const icon = {
52
51
  [types.IcInformationStatus.Warning]: helpers.warningIcon,
@@ -69,8 +68,8 @@ const InputValidation = class {
69
68
  const displayIcon = this.status !== "" ? icon[this.status] : "";
70
69
  const id = helpers.getInputValidationTextID(this.for);
71
70
  return (index.h(index.Host, { class: {
72
- [this.status]: this.status !== "",
73
- ["fullwidth"]: this.fullWidth,
71
+ [`ic-input-validation-${this.status}`]: this.status !== "",
72
+ ["ic-input-validation-full-width"]: this.fullWidth,
74
73
  } }, displayIcon !== "" && (index.h("span", { class: {
75
74
  ["status-icon"]: true,
76
75
  [`icon-${this.status}`]: true,
@@ -1 +1 @@
1
- {"file":"ic-input-label.ic-input-validation.entry.cjs.js","mappings":";;;;;;;;AAAA,MAAM,eAAe,GAAG,4iBAA4iB;;MCWvjB,UAAU;;;0BAIqB,SAAS;oBAK1B,KAAK;wBAKF,KAAK;qBAKP,KAAK;;0BAUF,EAAE;;wBAUH,KAAK;wBAKL,KAAK;;IAEjC,gBAAgB;QACdA,wCAAgC,CAC9B,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,EACzC,aAAa,CACd,CAAC;KACH;IAED,MAAM;QACJ,MAAM,EACJ,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,UAAU,EACV,KAAK,EACL,IAAI,EACJ,UAAU,GACX,GAAG,IAAI,CAAC;QACT,MAAM,SAAS,GAAG,QAAQ,GAAG,KAAK,GAAG,IAAI,GAAG,KAAK,CAAC;QAClD,MAAM,YAAY,GAAG,QAAQ,IAC3B,GAAG,SAAS,EAAE,KAEdC,mBAAO,OAAO,EAAE,IAAI,CAAC,GAAG,IAAG,SAAS,CAAS,CAC9C,CAAC;QAEF,MAAM,EAAE,GAAGC,4BAAoB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAE1C,QACED,QAACE,UAAI,IACH,KAAK,EAAE;gBACL,CAAC,UAAU,GAAG,QAAQ;gBACtB,CAAC,UAAU,GAAG,QA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AK,EAAE;gBACL,CAAC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,KAAK,EAAE;gBACjC,CAAC,WAAW,GAAG,IAAI,CAAC,SAAS;aAC9B,IAEA,WAAW,KAAK,EAAE,KACjBF,kBACE,KAAK,EAAE;gBACL,CAAC,aAAa,GAAG,IAAI;gBACrB,CAAC,QAAQ,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI;aAC9B,EACD,SAAS,EAAE,WAAW,GACtB,CACH,EAEDA,2BAAe,OAAO,EAAC,SAAS,EAAC,KAAK,EAAC,YAAY,IACjDA,+BAAiB,IAAI,CAAC,YAAY,EAAE,EAAE,EAAE,EAAE,IACvC,IAAI,CAAC,OAAO,CACR,CACO,EAEhBA,kBAAM,IAAI,EAAC,8BAA8B,GAAQ,CAC5C,EACP;KACH;;;;;;;;","names":["onComponentRequiredPropUndefined","h","getInputHelperTextID","Host","IcInformationStatus","warningIcon","errorIcon","successIcon","getInputValidationTextID"],"sources":["src/components/ic-input-label/ic-input-label.css?tag=ic-input-label","src/components/ic-input-label/ic-input-label.tsx","src/components/ic-input-validation/ic-input-validation.css?tag=ic-input-validation","src/components/ic-input-validation/ic-input-validation.tsx"],"sourcesContent":["ic-input-label {\n margin-bottom: var(--ic-space-xs);\n}\n\nic-input-label.with-helper {\n margin-bottom: var(--ic-space-xxxs);\n}\n\nic-input-label.readonly {\n color: var(--ic-color-tertiary-text);\n}\n\nic-input-label .helpertext {\n margin-top: var(--ic-space-xxxs);\n}\n\nic-input-label .helpertext-normal {\n color: var(--ic-color-secondary-text);\n}\n\nic-input-label .helpertext-readonly {\n color: var(--ic-color-tertiary-text);\n}\n\nic-input-label .readonly-label {\n color: var(--ic-color-secondary-text);\n}\n\nic-input-label .error-label {\n color: var(--ic-status-error);\n}\n\nic-input-label .dark {\n color: var(--ic-architectural-white);\n}\n\n/* Add back in after storybook has the `color-scheme: light dark` code */\n\n/* @media (prefers-color-scheme: dark) and (not (forced-colors: active)) {\n ic-input-label,\n ic-input-label .helpertext-normal,\n ic-input-label .readonly-label,\n ic-input-label .helpertext-readonly {\n color: var(--ic-architectural-white);\n }\n} */\n","import { Component, Host, Prop, h } from \"@stencil/core\";\n\nimport {\n getInputHelperTextID,\n onComponentRequiredPropUndefined,\n} from \"../../utils/helpers\";\n\n@Component({\n tag: \"ic-input-label\",\n styleUrl: \"./ic-input-label.css\",\n})\nexport class InputLabel {\n /**\n * The appearance of the input label.\n */\n @Prop() appearance?: \"dark\" | \"default\" = \"default\";\n\n /**\n * @deprecated This prop should not be used anymore. Set prop `appearance` to \"dark\" instead.\n */\n @Prop() dark?: boolean = false;\n\n /**\n * If `true`, the disabled state will be set.\n */\n @Prop() disabled: boolean = false;\n\n /**\n * If `true`, the input label will display with error styling.\n */\n @Prop() error?: boolean = false;\n\n /**\n * The ID of the form element the label is bound to.\n */\n @Prop() for: string;\n\n /**\n * The helper text that will be displayed.\n */\n @Prop() helperText: string = \"\";\n\n /**\n * The text content of the label.\n */\n @Prop() label!: string;\n\n /**\n * If `true`, the readonly state will be set.\n */\n @Prop() readonly: boolean = false;\n\n /**\n * If `true`, the input label will require a value.\n */\n @Prop() required: boolean = false;\n\n componentDidLoad(): void {\n onComponentRequiredPropUndefined(\n [{ prop: this.label, propName: \"label\" }],\n \"Input Label\"\n );\n }\n\n render() {\n const {\n disabled,\n readonly,\n label,\n required,\n helperText,\n error,\n dark,\n appearance,\n } = this;\n const labelText = required ? label + \" *\" : label;\n const labelContent = readonly ? (\n `${labelText}`\n ) : (\n <label htmlFor={this.for}>{labelText}</label>\n );\n\n const id = getInputHelperTextID(this.for);\n\n return (\n <Host\n class={{\n [\"disabled\"]: disabled,\n [\"readonly\"]: readonly,\n [\"with-helper\"]: helperText !== \"\",\n }}\n >\n <ic-typography\n variant=\"label\"\n class={{\n [\"readonly-label\"]: readonly,\n [\"error-label\"]: error && !(readonly || disabled),\n [\"dark\"]: dark || appearance === \"dark\",\n }}\n >\n {labelContent}\n </ic-typography>\n\n {helperText !== \"\" && (\n <ic-typography\n variant=\"caption\"\n class={{\n [\"helpertext\"]: true,\n [\"helpertext-normal\"]: !disabled && !readonly,\n [\"helpertext-readonly\"]: readonly,\n }}\n >\n <span id={id}>{helperText}</span>\n </ic-typography>\n )}\n </Host>\n );\n }\n}\n","ic-input-validation {\n width: var(--input-width, 20rem);\n margin-top: var(--ic-space-xs);\n display: flex;\n}\n\nic-input-validation.fullwidth {\n width: 100%;\n}\n\nic-input-validation span.status-icon {\n padding-right: var(--ic-space-xxs);\n}\n\nic-input-validation span.status-icon > svg {\n height: 1.25rem;\n width: 1.25rem;\n}\n\nic-input-validation span.icon-success > svg {\n fill: var(--ic-status-success);\n}\n\nic-input-validation span.icon-error > svg {\n fill: var(--ic-status-error);\n}\n\nic-input-validation span.icon-warning > svg {\n fill: var(--ic-status-warning);\n}\n\nic-input-validation .statustext {\n flex-grow: 1;\n}\n","import { Element, Component, Host, Prop, h } from \"@stencil/core\";\n\nimport {\n IcInformationStatus,\n IcInformationStatusOrEmpty,\n} from \"../../utils/types\";\nimport errorIcon from \"../../assets/error-icon.svg\";\nimport successIcon from \"../../assets/success-icon.svg\";\nimport warningIcon from \"../../assets/warning-icon.svg\";\n\nimport {\n getInputValidationTextID,\n onComponentRequiredPropUndefined,\n} from \"../../utils/helpers\";\nimport { IcAriaLiveModeVariants } from \"./ic-input-validation.types\";\n\nconst icon = {\n [IcInformationStatus.Warning]: warningIcon,\n [IcInformationStatus.Error]: errorIcon,\n [IcInformationStatus.Success]: successIcon,\n};\n\n/**\n * @slot validation-message-adornment - Content will be placed to the right of the validation message.\n */\n@Component({\n tag: \"ic-input-validation\",\n styleUrl: \"ic-input-validation.css\",\n})\nexport class InputValidation {\n @Element() el: HTMLIcInputValidationElement;\n\n /**\n * The ARIA live mode to apply to the message.\n */\n @Prop() ariaLiveMode: IcAriaLiveModeVariants = \"polite\";\n\n /**\n * The ID of the form element the validation is bound to.\n */\n @Prop() for: string;\n\n /**\n * If `true`, the input validation will fill the width of the container.\n */\n @Prop() fullWidth: boolean = false;\n\n /**\n * The validation message to display.\n */\n @Prop() message!: string;\n\n /**\n * The status of the validation - e.g. 'error' | 'warning' | 'success'.\n */\n @Prop() status: IcInformationStatusOrEmpty = \"\";\n\n componentDidLoad(): void {\n onComponentRequiredPropUndefined(\n [{ prop: this.message, propName: \"message\" }],\n \"Input Validation\"\n );\n }\n\n render() {\n const displayIcon = this.status !== \"\" ? icon[this.status] : \"\";\n const id = getInputValidationTextID(this.for);\n return (\n <Host\n class={{\n [this.status]: this.status !== \"\",\n [\"fullwidth\"]: this.fullWidth,\n }}\n >\n {displayIcon !== \"\" && (\n <span\n class={{\n [\"status-icon\"]: true,\n [`icon-${this.status}`]: true,\n }}\n innerHTML={displayIcon}\n />\n )}\n\n <ic-typography variant=\"caption\" class=\"statustext\">\n <span aria-live={this.ariaLiveMode} id={id}>\n {this.message}\n </span>\n </ic-typography>\n\n <slot name=\"validation-message-adornment\"></slot>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"ic-input-label.ic-input-validation.entry.cjs.js","mappings":";;;;;;;;AAAA,MAAM,eAAe,GAAG,2jBAA2jB;;MCWtkB,UAAU;;;0BAIqB,SAAS;wBAKvB,KAAK;;0BAUJ,EAAE;;wBAUH,KAAK;wBAKL,KAAK;sBAKF,EAAE;;IAEjC,gBAAgB;QACdA,wCAAgC,CAC9B,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,EACzC,aAAa,CACd,CAAC;KACH;IAED,MAAM;QACJ,MAAM,EACJ,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,UAAU,EACV,MAAM,EACN,UAAU,GACX,GAAG,IAAI,CAAC;QACT,MAAM,SAAS,GAAG,QAAQ,GAAG,KAAK,GAAG,IAAI,GAAG,KAAK,CAAC;QAClD,MAAM,YAAY,GAAG,QAAQ,IAC3B,GAAG,SAAS,EAAE,KAEdC,mBAAO,O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C;KACH;IAED,MAAM;QACJ,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,KAAK,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC;QAChE,MAAM,EAAE,GAAGQ,gCAAwB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC9C,QACEP,QAACE,UAAI,IACH,KAAK,EAAE;gBACL,CAAC,uBAAuB,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,MAAM,KAAK,EAAE;gBAC1D,CAAC,gCAAgC,GAAG,IAAI,CAAC,SAAS;aACnD,IAEA,WAAW,KAAK,EAAE,KACjBF,kBACE,KAAK,EAAE;gBACL,CAAC,aAAa,GAAG,IAAI;gBACrB,CAAC,QAAQ,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI;aAC9B,EACD,SAAS,EAAE,WAAW,GACtB,CACH,EAEDA,2BAAe,OAAO,EAAC,SAAS,EAAC,KAAK,EAAC,YAAY,IACjDA,+BAAiB,IAAI,CAAC,YAAY,EAAE,EAAE,EAAE,EAAE,IACvC,IAAI,CAAC,OAAO,CACR,CACO,EAEhBA,kBAAM,IAAI,EAAC,8BAA8B,GAAQ,CAC5C,EACP;KACH;;;;;;;;","names":["onComponentRequiredPropUndefined","h","getInputHelperTextID","Host","IcInformationStatus","warningIcon","errorIcon","successIcon","getInputValidationTextID"],"sources":["src/components/ic-input-label/ic-input-label.css?tag=ic-input-label","src/components/ic-input-label/ic-input-label.tsx","src/components/ic-input-validation/ic-input-validation.css?tag=ic-input-validation","src/components/ic-input-validation/ic-input-validation.tsx"],"sourcesContent":["ic-input-label {\n margin-bottom: var(--ic-space-xs);\n}\n\nic-input-label.with-helper {\n margin-bottom: var(--ic-space-xxxs);\n}\n\nic-input-label.ic-input-label-readonly {\n color: var(--ic-color-tertiary-text);\n}\n\nic-input-label .helpertext {\n margin-top: var(--ic-space-xxxs);\n}\n\nic-input-label .helpertext-normal {\n color: var(--ic-color-secondary-text);\n}\n\nic-input-label .helpertext-readonly {\n color: var(--ic-color-tertiary-text);\n}\n\nic-input-label .readonly-label {\n color: var(--ic-color-secondary-text);\n}\n\nic-input-label .error-label {\n color: var(--ic-status-error);\n}\n\nic-input-label .dark {\n color: var(--ic-architectural-white);\n}\n\n/* Add back in after storybook has the `color-scheme: light dark` code */\n\n/* @media (prefers-color-scheme: dark) and (not (forced-colors: active)) {\n ic-input-label,\n ic-input-label .helpertext-normal,\n ic-input-label .readonly-label,\n ic-input-label .helpertext-readonly {\n color: var(--ic-architectural-white);\n }\n} */\n","import { Component, Host, Prop, h } from \"@stencil/core\";\n\nimport {\n getInputHelperTextID,\n onComponentRequiredPropUndefined,\n} from \"../../utils/helpers\";\n\n@Component({\n tag: \"ic-input-label\",\n styleUrl: \"./ic-input-label.css\",\n})\nexport class InputLabel {\n /**\n * The appearance of the input label.\n */\n @Prop() appearance?: \"dark\" | \"default\" = \"default\";\n\n /**\n * If `true`, the disabled state will be set.\n */\n @Prop() disabled: boolean = false;\n\n /**\n * The ID of the form element the label is bound to.\n */\n @Prop() for: string;\n\n /**\n * The helper text that will be displayed.\n */\n @Prop() helperText: string = \"\";\n\n /**\n * The text content of the label.\n */\n @Prop() label!: string;\n\n /**\n * If `true`, the readonly state will be set.\n */\n @Prop() readonly: boolean = false;\n\n /**\n * If `true`, the input label will require a value.\n */\n @Prop() required: boolean = false;\n\n /**\n * The status of the label - e.g. 'error'.\n */\n @Prop() status: \"error\" | \"\" = \"\";\n\n componentDidLoad(): void {\n onComponentRequiredPropUndefined(\n [{ prop: this.label, propName: \"label\" }],\n \"Input Label\"\n );\n }\n\n render() {\n const {\n disabled,\n readonly,\n label,\n required,\n helperText,\n status,\n appearance,\n } = this;\n const labelText = required ? label + \" *\" : label;\n const labelContent = readonly ? (\n `${labelText}`\n ) : (\n <label htmlFor={this.for}>{labelText}</label>\n );\n\n const id = getInputHelperTextID(this.for);\n\n return (\n <Host\n class={{\n [\"ic-input-label-disabled\"]: disabled,\n [\"ic-input-label-readonly\"]: readonly,\n [\"with-helper\"]: helperText !== \"\",\n }}\n >\n <ic-typography\n variant=\"label\"\n class={{\n [\"readonly-label\"]: readonly,\n [\"error-label\"]: status === \"error\" && !(readonly || disabled),\n [\"dark\"]: appearance === \"dark\",\n }}\n >\n {labelContent}\n </ic-typography>\n\n {helperText !== \"\" && (\n <ic-typography\n variant=\"caption\"\n class={{\n [\"helpertext\"]: true,\n [\"helpertext-normal\"]: !disabled && !readonly,\n [\"helpertext-readonly\"]: readonly,\n }}\n >\n <span id={id}>{helperText}</span>\n </ic-typography>\n )}\n </Host>\n );\n }\n}\n","ic-input-validation {\n width: var(--input-width, 20rem);\n margin-top: var(--ic-space-xs);\n display: flex;\n}\n\nic-input-validation.ic-input-validation-full-width {\n width: 100%;\n}\n\nic-input-validation span.status-icon {\n padding-right: var(--ic-space-xxs);\n}\n\nic-input-validation span.status-icon > svg {\n height: 1.25rem;\n width: 1.25rem;\n}\n\nic-input-validation span.icon-success > svg {\n fill: var(--ic-status-success);\n}\n\nic-input-validation span.icon-error > svg {\n fill: var(--ic-status-error);\n}\n\nic-input-validation span.icon-warning > svg {\n fill: var(--ic-status-warning);\n}\n\nic-input-validation .statustext {\n flex-grow: 1;\n}\n","import { Element, Component, Host, Prop, h } from \"@stencil/core\";\n\nimport {\n IcInformationStatus,\n IcInformationStatusOrEmpty,\n} from \"../../utils/types\";\nimport errorIcon from \"../../assets/error-icon.svg\";\nimport successIcon from \"../../assets/success-icon.svg\";\nimport warningIcon from \"../../assets/warning-icon.svg\";\n\nimport {\n getInputValidationTextID,\n onComponentRequiredPropUndefined,\n} from \"../../utils/helpers\";\nimport { IcAriaLiveModeVariants } from \"./ic-input-validation.types\";\n\nconst icon = {\n [IcInformationStatus.Warning]: warningIcon,\n [IcInformationStatus.Error]: errorIcon,\n [IcInformationStatus.Success]: successIcon,\n};\n\n/**\n * @slot validation-message-adornment - Content will be placed to the right of the validation message.\n */\n@Component({\n tag: \"ic-input-validation\",\n styleUrl: \"ic-input-validation.css\",\n})\nexport class InputValidation {\n @Element() el: HTMLIcInputValidationElement;\n\n /**\n * The ARIA live mode to apply to the message.\n */\n @Prop() ariaLiveMode: IcAriaLiveModeVariants = \"polite\";\n\n /**\n * The ID of the form element the validation is bound to.\n */\n @Prop() for: string;\n\n /**\n * If `true`, the input validation will fill the width of the container.\n */\n @Prop() fullWidth: boolean = false;\n\n /**\n * The validation message to display.\n */\n @Prop() message!: string;\n\n /**\n * The status of the validation - e.g. 'error' | 'warning' | 'success'.\n */\n @Prop() status: IcInformationStatusOrEmpty = \"\";\n\n componentDidLoad(): void {\n onComponentRequiredPropUndefined(\n [{ prop: this.message, propName: \"message\" }],\n \"Input Validation\"\n );\n }\n\n render() {\n const displayIcon = this.status !== \"\" ? icon[this.status] : \"\";\n const id = getInputValidationTextID(this.for);\n return (\n <Host\n class={{\n [`ic-input-validation-${this.status}`]: this.status !== \"\",\n [\"ic-input-validation-full-width\"]: this.fullWidth,\n }}\n >\n {displayIcon !== \"\" && (\n <span\n class={{\n [\"status-icon\"]: true,\n [`icon-${this.status}`]: true,\n }}\n innerHTML={displayIcon}\n />\n )}\n\n <ic-typography variant=\"caption\" class=\"statustext\">\n <span aria-live={this.ariaLiveMode} id={id}>\n {this.message}\n </span>\n </ic-typography>\n\n <slot name=\"validation-message-adornment\"></slot>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -7,7 +7,7 @@ const OpenInNew = require('./OpenInNew-d5d30e77.js');
7
7
  const helpers = require('./helpers-94b33ab0.js');
8
8
  const types = require('./types-dc22e301.js');
9
9
 
10
- const icLinkCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host(.link) .ic-link,:host(.link) ::slotted(a){color:var(--ic-hyperlink);text-decoration:underline;font-weight:var(--ic-font-weight-bold);transition:var(--ic-easing-transition-fast)}:host(.link.dark) .ic-link.dark,:host(.link.dark) ::slotted(a){color:var(--ic-color-primary-text)}:host(.link.light) .ic-link.light,:host(.link.light) ::slotted(a){color:var(--ic-color-white-text)}:host(.link) .ic-link:visited,:host(.link) ::slotted(a:visited){color:var(--ic-hyperlink-visited)}:host(.link) .ic-link:hover,:host(.link) .ic-link:focus,:host(.link) ::slotted(a:hover),:host(.link) ::slotted(a:focus){outline:none;border-bottom:0.25rem solid !important;margin-bottom:-0.25rem !important;text-decoration:none}@supports (text-underline-offset: 10%){:host(.link) .ic-link:hover,:host(.link) .ic-link:focus,:host(.link) ::slotted(a:hover),:host(.link) ::slotted(a:focus){text-decoration-line:underline;text-decoration-thickness:25%;text-underline-offset:10%;border-bottom:0 !important;margin-bottom:0 !important}}:host(.link) .ic-link:active,:host(.link) .ic-link:focus:active,:host(.link) .ic-link:visited:active,:host(.link) ::slotted(a:active),:host(.link) ::slotted(a:focus:active),:host(.link) ::slotted(a:visited:active){text-decoration:none}.ic-link-open-in-new-icon{vertical-align:middle;margin-left:var(--ic-space-xxs)}.ic-link>.ic-link-open-in-new-icon{fill:var(--ic-hyperlink)}.ic-link.dark>.ic-link-open-in-new-icon{fill:var(--ic-color-primary-text)}.ic-link.light>.ic-link-open-in-new-icon{fill:var(--ic-color-white-text)}.ic-link-open-in-new-icon>svg{width:var(--ic-space-md);height:var(--ic-space-md);fill:currentcolor}.ic-link:visited>.ic-link-open-in-new-icon{fill:var(--ic-hyperlink-visited)}.ic-link.light:visited>.ic-link-open-in-new-icon{fill:var(--ic-hyperlink-contrast-visited)}:host(.breadcrumb-link) .ic-link{display:var(--breadcrumb-link-display);align-items:var(--breadcrumb-link-align-items);gap:var(--breadcrumb-link-gap)}:host(.breadcrumb-link) .ic-link ::slotted(.back-icon){height:var(--ic-space-lg);width:var(--ic-space-lg)}:host(.breadcrumb-link.current-page) a,:host(.breadcrumb-link.current-page) ::slotted(a){font-weight:normal;color:inherit;text-decoration:none;display:flex;align-items:center}:host(.breadcrumb-link.current-page) .ic-link,:host(.breadcrumb-link.current-page) ::slotted(a:focus){outline:var(--ic-hc-focus-outline);text-decoration:none}:host(.breadcrumb-link.current-page) .ic-link:visited{color:var(--ic-color-primary-text)}";
10
+ const icLinkCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host(.ic-link) .link,:host(.ic-link) ::slotted(a){color:var(--ic-hyperlink);text-decoration:underline;font-weight:var(--ic-font-weight-bold);transition:var(--ic-easing-transition-fast)}:host(.ic-link.ic-link-dark) .link.dark,:host(.ic-link.ic-link-dark) ::slotted(a){color:var(--ic-color-primary-text)}:host(.ic-link.ic-link-light) .link.light,:host(.ic-link.ic-link-light) ::slotted(a){color:var(--ic-color-white-text)}:host(.ic-link) .link:visited,:host(.ic-link) ::slotted(a:visited){color:var(--ic-hyperlink-visited)}:host(.ic-link) .link:hover,:host(.ic-link) .link:focus,:host(.ic-link) ::slotted(a:hover),:host(.ic-link) ::slotted(a:focus){outline:none;border-bottom:0.25rem solid !important;margin-bottom:-0.25rem !important;text-decoration:none}@supports (text-underline-offset: 10%){:host(.ic-link) .link:hover,:host(.ic-link) .link:focus,:host(.ic-link) ::slotted(a:hover),:host(.ic-link) ::slotted(a:focus){text-decoration-line:underline;text-decoration-thickness:25%;text-underline-offset:10%;border-bottom:0 !important;margin-bottom:0 !important}}:host(.ic-link) .link:active,:host(.ic-link) .link:focus:active,:host(.ic-link) .link:visited:active,:host(.ic-link) ::slotted(a:active),:host(.ic-link) ::slotted(a:focus:active),:host(.ic-link) ::slotted(a:visited:active){text-decoration:none}.ic-link-open-in-new-icon{vertical-align:middle;margin-left:var(--ic-space-xxs)}.link>.ic-link-open-in-new-icon{fill:var(--ic-hyperlink)}.link.dark>.ic-link-open-in-new-icon{fill:var(--ic-color-primary-text)}.link.light>.ic-link-open-in-new-icon{fill:var(--ic-color-white-text)}.ic-link-open-in-new-icon>svg{width:var(--ic-space-md);height:var(--ic-space-md);fill:currentcolor}.link:visited>.ic-link-open-in-new-icon{fill:var(--ic-hyperlink-visited)}.link.light:visited>.ic-link-open-in-new-icon{fill:var(--ic-hyperlink-contrast-visited)}:host(.breadcrumb-link) .link{display:var(--breadcrumb-link-display);align-items:var(--breadcrumb-link-align-items);gap:var(--breadcrumb-link-gap)}:host(.breadcrumb-link) .link ::slotted(.back-icon){height:var(--ic-space-lg);width:var(--ic-space-lg)}:host(.breadcrumb-link.current-page) a,:host(.breadcrumb-link.current-page) ::slotted(a){font-weight:normal;color:inherit;text-decoration:none;display:flex;align-items:center}:host(.breadcrumb-link.current-page) .link,:host(.breadcrumb-link.current-page) ::slotted(a:focus){outline:var(--ic-hc-focus-outline);text-decoration:none}:host(.breadcrumb-link.current-page) .link:visited{color:var(--ic-color-primary-text)}";
11
11
 
12
12
  const Link = class {
13
13
  constructor(hostRef) {
@@ -34,7 +34,6 @@ const Link = class {
34
34
  this.hreflang = undefined;
35
35
  this.referrerpolicy = undefined;
36
36
  this.rel = undefined;
37
- this.showIcon = undefined;
38
37
  this.target = undefined;
39
38
  }
40
39
  componentWillLoad() {
@@ -75,11 +74,11 @@ const Link = class {
75
74
  return !!this.routerSlot;
76
75
  }
77
76
  render() {
78
- const { download, href, hreflang, referrerpolicy, rel, target, showIcon, appearance, } = this;
79
- return (index.h(index.Host, { class: { ["link"]: true, [`${appearance}`]: true } }, this.hasRouterSlot() ? (index.h("slot", { name: "router-item" })) : (index.h("a", Object.assign({ class: {
80
- ["ic-link"]: href !== null,
77
+ const { download, href, hreflang, referrerpolicy, rel, target, appearance, } = this;
78
+ return (index.h(index.Host, { class: { ["ic-link"]: true, [`ic-link-${appearance}`]: true } }, this.hasRouterSlot() ? (index.h("slot", { name: "router-item" })) : (index.h("a", Object.assign({ class: {
79
+ ["link"]: href !== null,
81
80
  [`${appearance}`]: href !== null,
82
- }, download: download !== false ? download : null, href: href, hrefLang: hreflang, referrerPolicy: referrerpolicy, rel: rel, target: target, tabindex: href !== null ? "0" : "-1" }, this.inheritedAttributes), index.h("slot", null), (showIcon || target === "_blank") && (index.h("span", { class: "ic-link-open-in-new-icon", innerHTML: OpenInNew.OpenInNew }))))));
81
+ }, download: download !== false ? download : null, href: href, hrefLang: hreflang, referrerPolicy: referrerpolicy, rel: rel, target: target, tabindex: href !== null ? "0" : "-1" }, this.inheritedAttributes), index.h("slot", null), target === "_blank" && (index.h("span", { class: "ic-link-open-in-new-icon", innerHTML: OpenInNew.OpenInNew }))))));
83
82
  }
84
83
  static get delegatesFocus() { return true; }
85
84
  get el() { return index.getElement(this); }
@@ -1 +1 @@
1
- {"file":"ic-link.entry.cjs.js","mappings":";;;;;;;;;AAAA,MAAM,SAAS,GAAG,yyJAAyyJ;;MC+B9yJ,IAAI;;;QACP,wBAAmB,GAA4B,EAAE,CAAC;QAElD,yBAAoB,GAAqB,IAAI,CAAC;;QA0F9C,yBAAoB,GAAG,CAAC,YAA8B;YAC5D,IAAI,oBAAoB,GAAG,KAAK,CAAC;YACjC,YAAY,CAAC,OAAO,CAAC,CAAC,EAAE,aAAa,EAAE;gBACrC,IAAIA,yBAAiB,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE;oBAC7C,IAAI,CAAC,mBAAmB,CAAC,aAAa,CAAC;wBACrC,IAAI,CAAC,EAAE,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC;oBACtC,oBAAoB,GAAG,IAAI,CAAC;iBAC7B;aACF,CAAC,CAAC;YACH,IAAI,oBAAoB,EAAE;gBACxBC,iBAAW,CAAC,IAAI,CAAC,CAAC;aACnB;SACF,CAAC;0BA/FwD,SAAS;wBAK7B,KAAK;oBAKnB,IAAI;;;;;;;IA2B5B,iBAAiB;QACf,IAAI,CAAC,mBAAmB,GAAGC,yBAAi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AU,GACX,GAAG,IAAI,CAAC;QAET,QACEC,QAACC,UAAI,IAAC,KAAK,EAAE,EAAE,CAAC,MAAM,GAAG,IAAI,EAAE,CAAC,GAAG,UAAU,EAAE,GAAG,IAAI,EAAE,IACrD,IAAI,CAAC,aAAa,EAAE,IACnBD,kBAAM,IAAI,EAAC,aAAa,GAAQ,KAEhCA,6BACE,KAAK,EAAE;gBACL,CAAC,SAAS,GAAG,IAAI,KAAK,IAAI;gBAC1B,CAAC,GAAG,UAAU,EAAE,GAAG,IAAI,KAAK,IAAI;aACjC,EACD,QAAQ,EAAE,QAAQ,KAAK,KAAK,GAAG,QAAQ,GAAG,IAAI,EAC9C,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,QAAQ,EAClB,cAAc,EAAE,cAAc,EAC9B,GAAG,EAAE,GAAG,EACR,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,IAAI,KAAK,IAAI,GAAG,GAAG,GAAG,IAAI,IAChC,IAAI,CAAC,mBAAmB,GAE5BA,qBAAQ,EACP,CAAC,QAAQ,IAAI,MAAM,KAAK,QAAQ,MAC/BA,kBAAM,KAAK,EAAC,0BAA0B,EAAC,SAAS,EAAEE,mBAAS,GAAI,CAChE,CACC,CACL,CACI,EACP;KACH;;;;;;;;","names":["IC_INHERITED_ARIA","forceUpdate","inheritAttributes","getThemeFromContext","IcThemeForegroundEnum","h","Host","OpenInNew"],"sources":["src/components/ic-link/ic-link.css?tag=ic-link&encapsulation=shadow","src/components/ic-link/ic-link.tsx"],"sourcesContent":["@import \"../../global/normalize.css\";\n\n:host(.link) .ic-link,\n:host(.link) ::slotted(a) {\n color: var(--ic-hyperlink);\n text-decoration: underline;\n font-weight: var(--ic-font-weight-bold);\n transition: var(--ic-easing-transition-fast);\n}\n\n:host(.link.dark) .ic-link.dark,\n:host(.link.dark) ::slotted(a) {\n color: var(--ic-color-primary-text);\n}\n\n:host(.link.light) .ic-link.light,\n:host(.link.light) ::slotted(a) {\n color: var(--ic-color-white-text);\n}\n\n:host(.link) .ic-link:visited,\n:host(.link) ::slotted(a:visited) {\n color: var(--ic-hyperlink-visited);\n}\n\n:host(.link) .ic-link:hover,\n:host(.link) .ic-link:focus,\n:host(.link) ::slotted(a:hover),\n:host(.link) ::slotted(a:focus) {\n outline: none;\n border-bottom: 0.25rem solid !important;\n margin-bottom: -0.25rem !important;\n text-decoration: none;\n}\n\n@supports (text-underline-offset: 10%) {\n :host(.link) .ic-link:hover,\n :host(.link) .ic-link:focus,\n :host(.link) ::slotted(a:hover),\n :host(.link) ::slotted(a:focus) {\n text-decoration-line: underline;\n text-decoration-thickness: 25%;\n text-underline-offset: 10%;\n border-bottom: 0 !important;\n margin-bottom: 0 !important;\n }\n}\n\n:host(.link) .ic-link:active,\n:host(.link) .ic-link:focus:active,\n:host(.link) .ic-link:visited:active,\n:host(.link) ::slotted(a:active),\n:host(.link) ::slotted(a:focus:active),\n:host(.link) ::slotted(a:visited:active) {\n text-decoration: none;\n}\n\n.ic-link-open-in-new-icon {\n vertical-align: middle;\n margin-left: var(--ic-space-xxs);\n}\n\n.ic-link > .ic-link-open-in-new-icon {\n fill: var(--ic-hyperlink);\n}\n\n.ic-link.dark > .ic-link-open-in-new-icon {\n fill: var(--ic-color-primary-text);\n}\n\n.ic-link.light > .ic-link-open-in-new-icon {\n fill: var(--ic-color-white-text);\n}\n\n.ic-link-open-in-new-icon > svg {\n width: var(--ic-space-md);\n height: var(--ic-space-md);\n fill: currentcolor;\n}\n\n.ic-link:visited > .ic-link-open-in-new-icon {\n fill: var(--ic-hyperlink-visited);\n}\n\n.ic-link.light:visited > .ic-link-open-in-new-icon {\n fill: var(--ic-hyperlink-contrast-visited);\n}\n\n:host(.breadcrumb-link) .ic-link {\n display: var(--breadcrumb-link-display);\n align-items: var(--breadcrumb-link-align-items);\n gap: var(--breadcrumb-link-gap);\n}\n\n:host(.breadcrumb-link) .ic-link ::slotted(.back-icon) {\n height: var(--ic-space-lg);\n width: var(--ic-space-lg);\n}\n\n:host(.breadcrumb-link.current-page) a,\n:host(.breadcrumb-link.current-page) ::slotted(a) {\n font-weight: normal;\n color: inherit;\n text-decoration: none;\n display: flex;\n align-items: center;\n}\n\n:host(.breadcrumb-link.current-page) .ic-link,\n:host(.breadcrumb-link.current-page) ::slotted(a:focus) {\n outline: var(--ic-hc-focus-outline);\n text-decoration: none;\n}\n\n:host(.breadcrumb-link.current-page) .ic-link:visited {\n color: var(--ic-color-primary-text);\n}\n","import {\n Component,\n Element,\n Prop,\n h,\n Host,\n Listen,\n Method,\n forceUpdate,\n} from \"@stencil/core\";\n\nimport OpenInNew from \"../../assets/OpenInNew.svg\";\nimport { getThemeFromContext, inheritAttributes } from \"../../utils/helpers\";\nimport { IC_INHERITED_ARIA } from \"../../utils/constants\";\nimport {\n IcTheme,\n IcThemeForeground,\n IcThemeForegroundEnum,\n} from \"../../utils/types\";\n\n/**\n * @slot router-item - Handle routing by nesting your routes in this slot.\n */\n\n@Component({\n tag: \"ic-link\",\n styleUrl: \"ic-link.css\",\n shadow: {\n delegatesFocus: true,\n },\n})\nexport class Link {\n private inheritedAttributes: { [k: string]: string } = {};\n private routerSlot: HTMLElement;\n private hostMutationObserver: MutationObserver = null;\n\n @Element() el: HTMLIcLinkElement;\n\n /**\n * The appearance of the link, e.g. dark, light, or default.\n */\n @Prop({ mutable: true }) appearance?: IcThemeForeground = \"default\";\n\n /**\n * If `true`, the user can save the linked URL instead of navigating to it.\n */\n @Prop() download?: string | boolean = false;\n\n /**\n * The URL that the link points to.\n */\n @Prop() href?: string = null;\n\n /**\n * The human language of the linked URL.\n */\n @Prop() hreflang?: string;\n\n /**\n * How much of the referrer to send when following the link.\n */\n @Prop() referrerpolicy?: ReferrerPolicy;\n\n /**\n * The relationship of the linked URL as space-separated link types.\n */\n @Prop() rel?: string;\n\n /**\n * @deprecated This prop should not be used anymore. The 'open in new tab/window' icon will display automatically if target=\"_blank\".\n */\n @Prop() showIcon?: boolean;\n\n /**\n * The place to display the linked URL, as the name for a browsing context (a tab, window, or iframe).\n */\n @Prop() target?: string;\n\n componentWillLoad(): void {\n this.inheritedAttributes = inheritAttributes(this.el, IC_INHERITED_ARIA);\n this.updateTheme();\n }\n\n componentDidLoad(): void {\n this.hostMutationObserver = new MutationObserver(this.hostMutationCallback);\n this.hostMutationObserver.observe(this.el, {\n attributes: true,\n });\n }\n\n disconnectedCallback(): void {\n this.hostMutationObserver?.disconnect();\n }\n\n @Listen(\"themeChange\", { target: \"document\" })\n themeChangeHandler({ detail }: CustomEvent<IcTheme>): void {\n this.updateTheme(detail.mode);\n }\n\n /**\n * Sets focus on the link.\n */\n @Method()\n async setFocus(): Promise<void> {\n this.el.shadowRoot.querySelector(\"a\")?.focus();\n }\n\n private updateTheme(newTheme: IcThemeForeground = null): void {\n const theme = getThemeFromContext(this.el, newTheme);\n\n if (theme !== IcThemeForegroundEnum.Default) {\n this.appearance = theme;\n }\n }\n\n private hasRouterSlot(): boolean {\n this.routerSlot = this.el.querySelector('[slot=\"router-item\"]');\n if (this.routerSlot) {\n this.routerSlot.ariaLabel = this.routerSlot.textContent;\n }\n return !!this.routerSlot;\n }\n\n // triggered when attributes of host element change\n private hostMutationCallback = (mutationList: MutationRecord[]): void => {\n let forceComponentUpdate = false;\n mutationList.forEach(({ attributeName }) => {\n if (IC_INHERITED_ARIA.includes(attributeName)) {\n this.inheritedAttributes[attributeName] =\n this.el.getAttribute(attributeName);\n forceComponentUpdate = true;\n }\n });\n if (forceComponentUpdate) {\n forceUpdate(this);\n }\n };\n\n render() {\n const {\n download,\n href,\n hreflang,\n referrerpolicy,\n rel,\n target,\n showIcon,\n appearance,\n } = this;\n\n return (\n <Host class={{ [\"link\"]: true, [`${appearance}`]: true }}>\n {this.hasRouterSlot() ? (\n <slot name=\"router-item\"></slot>\n ) : (\n <a\n class={{\n [\"ic-link\"]: href !== null,\n [`${appearance}`]: href !== null,\n }}\n download={download !== false ? download : null}\n href={href}\n hrefLang={hreflang}\n referrerPolicy={referrerpolicy}\n rel={rel}\n target={target}\n tabindex={href !== null ? \"0\" : \"-1\"}\n {...this.inheritedAttributes}\n >\n <slot />\n {(showIcon || target === \"_blank\") && (\n <span class=\"ic-link-open-in-new-icon\" innerHTML={OpenInNew} />\n )}\n </a>\n )}\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"ic-link.entry.cjs.js","mappings":";;;;;;;;;AAAA,MAAM,SAAS,GAAG,+0JAA+0J;;MC+Bp1J,IAAI;;;QACP,wBAAmB,GAA4B,EAAE,CAAC;QAElD,yBAAoB,GAAqB,IAAI,CAAC;;QAqF9C,yBAAoB,GAAG,CAAC,YAA8B;YAC5D,IAAI,oBAAoB,GAAG,KAAK,CAAC;YACjC,YAAY,CAAC,OAAO,CAAC,CAAC,EAAE,aAAa,EAAE;gBACrC,IAAIA,yBAAiB,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE;oBAC7C,IAAI,CAAC,mBAAmB,CAAC,aAAa,CAAC;wBACrC,IAAI,CAAC,EAAE,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC;oBACtC,oBAAoB,GAAG,IAAI,CAAC;iBAC7B;aACF,CAAC,CAAC;YACH,IAAI,oBAAoB,EAAE;gBACxBC,iBAAW,CAAC,IAAI,CAAC,CAAC;aACnB;SACF,CAAC;0BA1FwD,SAAS;wBAK7B,KAAK;oBAKnB,IAAI;;;;;;IAsB5B,iBAAiB;QACf,IAAI,CAAC,mBAAmB,GAAGC,yBAAiB,CAAC,IAAI,CAAC,EAAE,EAAEF,yBAAiB,CAAC,CAAC;QACzE,IAAI,CAAC,WAAW,EAAE,CAAC;KACpB;IAED,gBAAgB;QACd,IAAI,CAAC,oBAAoB,GAAG,IAAI,gBAAgB,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;QAC5E,IAAI,CAAC,oBAAoB,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,EAAE;YACzC,UAAU,EAAE,IAAI;SACjB,CAAC,CAAC;KACJ;IAED,oBAAoB;;QAClB,MAAA,IAA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Q,EAAE,QAAQ,KAAK,KAAK,GAAG,QAAQ,GAAG,IAAI,EAC9C,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,QAAQ,EAClB,cAAc,EAAE,cAAc,EAC9B,GAAG,EAAE,GAAG,EACR,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,IAAI,KAAK,IAAI,GAAG,GAAG,GAAG,IAAI,IAChC,IAAI,CAAC,mBAAmB,GAE5BA,qBAAQ,EACP,MAAM,KAAK,QAAQ,KAClBA,kBAAM,KAAK,EAAC,0BAA0B,EAAC,SAAS,EAAEE,mBAAS,GAAI,CAChE,CACC,CACL,CACI,EACP;KACH;;;;;;;;","names":["IC_INHERITED_ARIA","forceUpdate","inheritAttributes","getThemeFromContext","IcThemeForegroundEnum","h","Host","OpenInNew"],"sources":["src/components/ic-link/ic-link.css?tag=ic-link&encapsulation=shadow","src/components/ic-link/ic-link.tsx"],"sourcesContent":["@import \"../../global/normalize.css\";\n\n:host(.ic-link) .link,\n:host(.ic-link) ::slotted(a) {\n color: var(--ic-hyperlink);\n text-decoration: underline;\n font-weight: var(--ic-font-weight-bold);\n transition: var(--ic-easing-transition-fast);\n}\n\n:host(.ic-link.ic-link-dark) .link.dark,\n:host(.ic-link.ic-link-dark) ::slotted(a) {\n color: var(--ic-color-primary-text);\n}\n\n:host(.ic-link.ic-link-light) .link.light,\n:host(.ic-link.ic-link-light) ::slotted(a) {\n color: var(--ic-color-white-text);\n}\n\n:host(.ic-link) .link:visited,\n:host(.ic-link) ::slotted(a:visited) {\n color: var(--ic-hyperlink-visited);\n}\n\n:host(.ic-link) .link:hover,\n:host(.ic-link) .link:focus,\n:host(.ic-link) ::slotted(a:hover),\n:host(.ic-link) ::slotted(a:focus) {\n outline: none;\n border-bottom: 0.25rem solid !important;\n margin-bottom: -0.25rem !important;\n text-decoration: none;\n}\n\n@supports (text-underline-offset: 10%) {\n :host(.ic-link) .link:hover,\n :host(.ic-link) .link:focus,\n :host(.ic-link) ::slotted(a:hover),\n :host(.ic-link) ::slotted(a:focus) {\n text-decoration-line: underline;\n text-decoration-thickness: 25%;\n text-underline-offset: 10%;\n border-bottom: 0 !important;\n margin-bottom: 0 !important;\n }\n}\n\n:host(.ic-link) .link:active,\n:host(.ic-link) .link:focus:active,\n:host(.ic-link) .link:visited:active,\n:host(.ic-link) ::slotted(a:active),\n:host(.ic-link) ::slotted(a:focus:active),\n:host(.ic-link) ::slotted(a:visited:active) {\n text-decoration: none;\n}\n\n.ic-link-open-in-new-icon {\n vertical-align: middle;\n margin-left: var(--ic-space-xxs);\n}\n\n.link > .ic-link-open-in-new-icon {\n fill: var(--ic-hyperlink);\n}\n\n.link.dark > .ic-link-open-in-new-icon {\n fill: var(--ic-color-primary-text);\n}\n\n.link.light > .ic-link-open-in-new-icon {\n fill: var(--ic-color-white-text);\n}\n\n.ic-link-open-in-new-icon > svg {\n width: var(--ic-space-md);\n height: var(--ic-space-md);\n fill: currentcolor;\n}\n\n.link:visited > .ic-link-open-in-new-icon {\n fill: var(--ic-hyperlink-visited);\n}\n\n.link.light:visited > .ic-link-open-in-new-icon {\n fill: var(--ic-hyperlink-contrast-visited);\n}\n\n:host(.breadcrumb-link) .link {\n display: var(--breadcrumb-link-display);\n align-items: var(--breadcrumb-link-align-items);\n gap: var(--breadcrumb-link-gap);\n}\n\n:host(.breadcrumb-link) .link ::slotted(.back-icon) {\n height: var(--ic-space-lg);\n width: var(--ic-space-lg);\n}\n\n:host(.breadcrumb-link.current-page) a,\n:host(.breadcrumb-link.current-page) ::slotted(a) {\n font-weight: normal;\n color: inherit;\n text-decoration: none;\n display: flex;\n align-items: center;\n}\n\n:host(.breadcrumb-link.current-page) .link,\n:host(.breadcrumb-link.current-page) ::slotted(a:focus) {\n outline: var(--ic-hc-focus-outline);\n text-decoration: none;\n}\n\n:host(.breadcrumb-link.current-page) .link:visited {\n color: var(--ic-color-primary-text);\n}\n","import {\n Component,\n Element,\n Prop,\n h,\n Host,\n Listen,\n Method,\n forceUpdate,\n} from \"@stencil/core\";\n\nimport OpenInNew from \"../../assets/OpenInNew.svg\";\nimport { getThemeFromContext, inheritAttributes } from \"../../utils/helpers\";\nimport { IC_INHERITED_ARIA } from \"../../utils/constants\";\nimport {\n IcTheme,\n IcThemeForeground,\n IcThemeForegroundEnum,\n} from \"../../utils/types\";\n\n/**\n * @slot router-item - Handle routing by nesting your routes in this slot.\n */\n\n@Component({\n tag: \"ic-link\",\n styleUrl: \"ic-link.css\",\n shadow: {\n delegatesFocus: true,\n },\n})\nexport class Link {\n private inheritedAttributes: { [k: string]: string } = {};\n private routerSlot: HTMLElement;\n private hostMutationObserver: MutationObserver = null;\n\n @Element() el: HTMLIcLinkElement;\n\n /**\n * The appearance of the link, e.g. dark, light, or default.\n */\n @Prop({ mutable: true }) appearance?: IcThemeForeground = \"default\";\n\n /**\n * If `true`, the user can save the linked URL instead of navigating to it.\n */\n @Prop() download?: string | boolean = false;\n\n /**\n * The URL that the link points to.\n */\n @Prop() href?: string = null;\n\n /**\n * The human language of the linked URL.\n */\n @Prop() hreflang?: string;\n\n /**\n * How much of the referrer to send when following the link.\n */\n @Prop() referrerpolicy?: ReferrerPolicy;\n\n /**\n * The relationship of the linked URL as space-separated link types.\n */\n @Prop() rel?: string;\n\n /**\n * The place to display the linked URL, as the name for a browsing context (a tab, window, or iframe).\n */\n @Prop() target?: string;\n\n componentWillLoad(): void {\n this.inheritedAttributes = inheritAttributes(this.el, IC_INHERITED_ARIA);\n this.updateTheme();\n }\n\n componentDidLoad(): void {\n this.hostMutationObserver = new MutationObserver(this.hostMutationCallback);\n this.hostMutationObserver.observe(this.el, {\n attributes: true,\n });\n }\n\n disconnectedCallback(): void {\n this.hostMutationObserver?.disconnect();\n }\n\n @Listen(\"themeChange\", { target: \"document\" })\n themeChangeHandler({ detail }: CustomEvent<IcTheme>): void {\n this.updateTheme(detail.mode);\n }\n\n /**\n * Sets focus on the link.\n */\n @Method()\n async setFocus(): Promise<void> {\n this.el.shadowRoot.querySelector(\"a\")?.focus();\n }\n\n private updateTheme(newTheme: IcThemeForeground = null): void {\n const theme = getThemeFromContext(this.el, newTheme);\n\n if (theme !== IcThemeForegroundEnum.Default) {\n this.appearance = theme;\n }\n }\n\n private hasRouterSlot(): boolean {\n this.routerSlot = this.el.querySelector('[slot=\"router-item\"]');\n if (this.routerSlot) {\n this.routerSlot.ariaLabel = this.routerSlot.textContent;\n }\n return !!this.routerSlot;\n }\n\n // triggered when attributes of host element change\n private hostMutationCallback = (mutationList: MutationRecord[]): void => {\n let forceComponentUpdate = false;\n mutationList.forEach(({ attributeName }) => {\n if (IC_INHERITED_ARIA.includes(attributeName)) {\n this.inheritedAttributes[attributeName] =\n this.el.getAttribute(attributeName);\n forceComponentUpdate = true;\n }\n });\n if (forceComponentUpdate) {\n forceUpdate(this);\n }\n };\n\n render() {\n const {\n download,\n href,\n hreflang,\n referrerpolicy,\n rel,\n target,\n appearance,\n } = this;\n\n return (\n <Host class={{ [\"ic-link\"]: true, [`ic-link-${appearance}`]: true }}>\n {this.hasRouterSlot() ? (\n <slot name=\"router-item\"></slot>\n ) : (\n <a\n class={{\n [\"link\"]: href !== null,\n [`${appearance}`]: href !== null,\n }}\n download={download !== false ? download : null}\n href={href}\n hrefLang={hreflang}\n referrerPolicy={referrerpolicy}\n rel={rel}\n target={target}\n tabindex={href !== null ? \"0\" : \"-1\"}\n {...this.inheritedAttributes}\n >\n <slot />\n {target === \"_blank\" && (\n <span class=\"ic-link-open-in-new-icon\" innerHTML={OpenInNew} />\n )}\n </a>\n )}\n </Host>\n );\n }\n}\n"],"version":3}
@@ -8,7 +8,7 @@ const checkIcon = require('./check-icon-7225d79b.js');
8
8
  const chevronIcon = require('./chevron-icon-3bf07531.js');
9
9
  require('./types-dc22e301.js');
10
10
 
11
- const icMenuItemCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}li{list-style:none;padding:0}:host ::part(button){color:var(--ic-color-primary-text);padding:calc(var(--ic-space-xxxs) / 2);display:flex;align-items:flex-start;gap:var(--ic-space-xs);border-radius:0;min-height:2.5rem;height:auto}.focus-border{display:flex;align-items:flex-start;gap:var(--ic-space-xs);border-radius:var(--ic-border-radius);margin:calc(var(--ic-space-xxxs) / 2);padding:var(--ic-space-xxs);border:var(--ic-space-xxxs) dashed transparent;--icon-height:auto}:host(.disabled) ::part(button){color:var(--ic-architectural-200) !important;pointer-events:none}:host(.disabled) .menu-item-label,:host(.disabled) .shortcut,:host(.disabled) .menu-item-description{color:var(--ic-architectural-200) !important}:host([variant=\"destructive\"]) ::part(button){color:var(--ic-action-destructive)}:host ::part(button):hover{background-color:var(--ic-action-dark-bg-hover)}:host ::part(button):focus-visible,:host ::part(button):focus{color:var(--ic-color-white-text);background-color:var(--ic-focus-blue);box-shadow:none}:host(.disabled) ::part(button):focus-visible,:host(.disabled) ::part(button):focus{color:var(--ic-theme-lighten-40) !important}:host([variant=\"destructive\"]) ::part(button):focus-visible,:host([variant=\"destructive\"]) ::part(button):focus{background-color:var(--ic-action-destructive)}ic-button:focus-within .menu-item-label,ic-button:focus-within .shortcut,ic-button:focus-within .menu-item-description{color:var(--ic-color-white-text)}:host(.disabled) ic-button:focus-within .focus-border{border-color:var(--ic-architectural-white)}:host(.disabled) ic-button:focus-within .menu-item-label,:host(.disabled) ic-button:focus-within .shortcut,:host(.disabled) ic-button:focus-within .menu-item-description{color:var(--ic-theme-lighten-40) !important}:host ::part(button):active{background-color:var(--ic-action-dark-bg-active);color:var(--ic-color-primary-text) !important}:host([variant=\"destructive\"]) ::part(button):active{background-color:var(--ic-action-dark-bg-active);color:var(--ic-action-destructive) !important}.menu-item-info{display:flex;flex-direction:column;flex:1;align-items:baseline;white-space:pre-line;text-align:left}.menu-labels{display:flex;align-items:baseline;gap:var(--ic-space-xs)}.menu-item-description{color:var(--ic-color-secondary-text)}.shortcut{color:var(--ic-color-tertiary-text);display:flex;flex:min-content}:host([variant=\"destructive\"]) .menu-item-label{text-transform:uppercase;font-weight:600;letter-spacing:0.025em}ic-button:active .menu-item-label{color:var(--ic-color-primary-text)}ic-button:active .menu-item-description{color:var(--ic-color-secondary-text)}ic-button:active .shortcut{color:var(--ic-color-tertiary-text)}:host([variant=\"destructive\"]) ic-button:active .menu-item-label{color:var(--ic-action-destructive) !important}.icon,.check-icon,.submenu-icon,.icon ::slotted(svg),.check-icon svg,.submenu-icon svg{width:var(--ic-space-lg);height:var(--ic-space-lg)}.check-icon.hide{visibility:hidden}@media (forced-colors: active){:host ::part(button){border:canvas}:host ::part(button):focus-visible{outline:var(--ic-space-xxxs) solid transparent}.focus-border{border-color:canvas}:host(.disabled) ic-button:focus-within .focus-border{border-color:GrayText}:host(.disabled) .menu-item-info,:host(.disabled) .menu-item-label,:host(.disabled) .shortcut,:host(.disabled) .menu-item-description,:host(.disabled) ic-button:focus-within .menu-item-info,:host(.disabled) ic-button:focus-within .menu-item-label,:host(.disabled) ic-button:focus-within .shortcut,:host(.disabled) ic-button:focus-within .menu-item-description{color:GrayText !important}:host(.disabled) ::part(button):focus-visible,:host(.disabled) ::part(button):focus{outline-color:GrayText !important}}";
11
+ const icMenuItemCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}li{list-style:none;padding:0}:host ::part(button){color:var(--ic-color-primary-text);padding:calc(var(--ic-space-xxxs) / 2);display:flex;align-items:flex-start;gap:var(--ic-space-xs);border-radius:0;min-height:2.5rem;height:auto}.focus-border{display:flex;align-items:flex-start;gap:var(--ic-space-xs);border-radius:var(--ic-border-radius);margin:calc(var(--ic-space-xxxs) / 2);padding:var(--ic-space-xxs);border:var(--ic-space-xxxs) dashed transparent;--icon-height:auto}:host(.ic-menu-item-disabled) ::part(button){color:var(--ic-architectural-200) !important;pointer-events:none}:host(.ic-menu-item-disabled) .menu-item-label,:host(.ic-menu-item-disabled) .shortcut,:host(.ic-menu-item-disabled) .menu-item-description{color:var(--ic-architectural-200) !important}:host([variant=\"destructive\"]) ::part(button){color:var(--ic-action-destructive)}:host ::part(button):hover{background-color:var(--ic-action-dark-bg-hover)}:host ::part(button):focus-visible,:host ::part(button):focus{color:var(--ic-color-white-text);background-color:var(--ic-focus-blue);box-shadow:none}:host(.ic-menu-item-disabled) ::part(button):focus-visible,:host(.ic-menu-item-disabled) ::part(button):focus{color:var(--ic-theme-lighten-40) !important}:host([variant=\"destructive\"]) ::part(button):focus-visible,:host([variant=\"destructive\"]) ::part(button):focus{background-color:var(--ic-action-destructive)}ic-button:focus-within .menu-item-label,ic-button:focus-within .shortcut,ic-button:focus-within .menu-item-description{color:var(--ic-color-white-text)}:host(.ic-menu-item-disabled) ic-button:focus-within .focus-border{border-color:var(--ic-architectural-white)}:host(.ic-menu-item-disabled) ic-button:focus-within .menu-item-label,:host(.ic-menu-item-disabled) ic-button:focus-within .shortcut,:host(.ic-menu-item-disabled) ic-button:focus-within .menu-item-description{color:var(--ic-theme-lighten-40) !important}:host ::part(button):active{background-color:var(--ic-action-dark-bg-active);color:var(--ic-color-primary-text) !important}:host([variant=\"destructive\"]) ::part(button):active{background-color:var(--ic-action-dark-bg-active);color:var(--ic-action-destructive) !important}.menu-item-info{display:flex;flex-direction:column;flex:1;align-items:baseline;white-space:pre-line;text-align:left}.menu-labels{display:flex;align-items:baseline;gap:var(--ic-space-xs)}.menu-item-description{color:var(--ic-color-secondary-text)}.shortcut{color:var(--ic-color-tertiary-text);display:flex;flex:min-content}:host([variant=\"destructive\"]) .menu-item-label{text-transform:uppercase;font-weight:600;letter-spacing:0.025em}ic-button:active .menu-item-label{color:var(--ic-color-primary-text)}ic-button:active .menu-item-description{color:var(--ic-color-secondary-text)}ic-button:active .shortcut{color:var(--ic-color-tertiary-text)}:host([variant=\"destructive\"]) ic-button:active .menu-item-label{color:var(--ic-action-destructive) !important}.icon,.check-icon,.submenu-icon,.icon ::slotted(svg),.check-icon svg,.submenu-icon svg{width:var(--ic-space-lg);height:var(--ic-space-lg)}.check-icon.hide{visibility:hidden}@media (forced-colors: active){:host ::part(button){border:canvas}:host ::part(button):focus-visible{outline:var(--ic-space-xxxs) solid transparent}.focus-border{border-color:canvas}:host(.ic-menu-item-disabled) ic-button:focus-within .focus-border{border-color:GrayText}:host(.ic-menu-item-disabled) .menu-item-info,:host(.ic-menu-item-disabled) .menu-item-label,:host(.ic-menu-item-disabled) .shortcut,:host(.ic-menu-item-disabled) .menu-item-description,:host(.ic-menu-item-disabled) ic-button:focus-within .menu-item-info,:host(.ic-menu-item-disabled) ic-button:focus-within .menu-item-label,:host(.ic-menu-item-disabled) ic-button:focus-within .shortcut,:host(.ic-menu-item-disabled) ic-button:focus-within .menu-item-description{color:GrayText !important}:host(.ic-menu-item-disabled) ::part(button):focus-visible,:host(.ic-menu-item-disabled) ::part(button):focus{outline-color:GrayText !important}}";
12
12
 
13
13
  const MenuItem = class {
14
14
  constructor(hostRef) {
@@ -89,7 +89,7 @@ const MenuItem = class {
89
89
  return (index.h("div", { class: "menu-item-info" }, index.h("div", { class: "menu-labels" }, index.h("ic-typography", { class: "menu-item-label" }, this.label), this.keyboardShortcut && (index.h("ic-typography", { variant: "caption", class: "shortcut" }, this.keyboardShortcut))), this.description && (index.h("ic-typography", { class: "menu-item-description", variant: "caption" }, this.description))));
90
90
  };
91
91
  return (index.h(index.Host, { class: {
92
- ["disabled"]: this.disabled,
92
+ ["ic-menu-item-disabled"]: this.disabled,
93
93
  } }, index.h("li", { role: this.variant === "toggle" ? "menuitemcheckbox" : "menuitem", "aria-disabled": `${this.disabled}`, "aria-checked": this.variant === "toggle" ? this.toggleChecked : undefined }, index.h("ic-button", { fullWidth: true, variant: "tertiary", onClick: this.handleClick, href: helpers.isPropDefined(this.href), hreflang: helpers.isPropDefined(this.hreflang), target: helpers.isPropDefined(this.target), rel: helpers.isPropDefined(this.rel), referrerpolicy: this.referrerpolicy !== undefined ? this.referrerpolicy : null, "aria-disabled": `${this.disabled}`, "aria-label": this.getMenuItemAriaLabel(), ariaControlsId: helpers.isPropDefined(this.submenuTriggerFor)
94
94
  ? `ic-popover-submenu-${this.submenuTriggerFor}`
95
95
  : false, "aria-haspopup": helpers.isPropDefined(this.submenuTriggerFor) ||
@@ -1 +1 @@
1
- {"file":"ic-menu-item.entry.cjs.js","mappings":";;;;;;;;;;AAAA,MAAM,aAAa,GAAG,+hMAA+hM;;MCgCxiM,QAAQ;;;;;;QAqGX,gBAAW,GAAG,CAAC,CAAQ;YAC7B,IAAIA,qBAAa,CAAC,IAAI,CAAC,iBAAiB,CAAC,EAAE;gBACzC,IAAI,CAAC,0BAA0B,CAAC,IAAI,EAAE,CAAC;aACxC;iBAAM,IAAI,IAAI,CAAC,OAAO,KAAK,QAAQ,EAAE;gBACpC,CAAC,CAAC,cAAc,EAAE,CAAC;gBACnB,IAAI,CAAC,aAAa,GAAG,CAAC,IAAI,CAAC,aAAa,CAAC;aAC1C;YACD,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC;gBAC5B,KAAK,EAAE,IAAI,CAAC,KAAK;gBACjB,UAAU,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,iBAAiB;aACxC,CAAC,CAAC;SACJ,CAAC;QAEM,yBAAoB,GAAG;YAC7B,IAAI,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC;YAE3B,IAAIA,qBAAa,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE;gBACnC,SAAS,GAAG,GAAG,SAAS,KAAK,IAAI,CAAC,WAAW,EAAE,CAAC;aACjD;YAED,IAAIA,qBAAa,CAAC,IAAI,CAAC,gBAAgB,CAAC,EAAE;gBACxC,SAAS,GAAG,GAAG,SAAS,KAAK,IAAI,CAAC,gB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AC9C,KAAK,mBAGTA,qBAAa,CAAC,IAAI,CAAC,iBAAiB,CAAC;gBACrC,IAAI,CAAC,EAAE,CAAC,SAAS,CAAC,QAAQ,CAAC,gCAAgC,CAAC;kBACxD,MAAM;kBACN,KAAK,EAEX,UAAU,EACRA,qBAAa,CAAC,IAAI,CAAC,iBAAiB,CAAC;kBACjC,sBAAsB,IAAI,CAAC,iBAAiB,EAAE;kBAC9C,KAAK,IAGXG,iBAAK,KAAK,EAAC,cAAc,IACtBE,kBAAU,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,CAAC,KAC1BF,kBAAM,KAAK,EAAC,MAAM,IAChBA,kBAAM,IAAI,EAAC,MAAM,GAAQ,CACpB,CACR,EACDA,QAAC,mBAAmB,OAAG,EACtB,IAAI,CAAC,OAAO,KAAK,QAAQ,KACxBA,kBACE,KAAK,EAAE;gBACL,CAAC,YAAY,GAAG,IAAI;gBACpB,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,aAAa;aAC9B,iBACW,MAAM,EAClB,SAAS,EAAEG,eAAK,GAChB,CACH,EACAN,qBAAa,CAAC,IAAI,CAAC,iBAAiB,CAAC,KACpCG,kBACE,KAAK,EAAE,EAAE,CAAC,cAAc,GAAG,IAAI,EAAE,iBACrB,MAAM,EAClB,SAAS,EAAEI,mBAAO,GAClB,CACH,CACG,CACI,CACT,CACA,EACP;KACH;;;;;;;;","names":["isPropDefined","removeDisabledFalse","onComponentRequiredPropUndefined","h","Host","isSlotUsed","Check","Chevron"],"sources":["src/components/ic-menu-item/ic-menu-item.css?tag=ic-menu-item&encapsulation=shadow","src/components/ic-menu-item/ic-menu-item.tsx"],"sourcesContent":["@import \"../../global/normalize.css\";\n\nli {\n list-style: none;\n padding: 0;\n}\n\n:host ::part(button) {\n color: var(--ic-color-primary-text);\n padding: calc(var(--ic-space-xxxs) / 2);\n display: flex;\n align-items: flex-start;\n gap: var(--ic-space-xs);\n border-radius: 0;\n min-height: 2.5rem;\n height: auto;\n}\n\n.focus-border {\n display: flex;\n align-items: flex-start;\n gap: var(--ic-space-xs);\n border-radius: var(--ic-border-radius);\n margin: calc(var(--ic-space-xxxs) / 2);\n padding: var(--ic-space-xxs);\n border: var(--ic-space-xxxs) dashed transparent;\n\n --icon-height: auto;\n}\n\n:host(.disabled) ::part(button) {\n color: var(--ic-architectural-200) !important;\n pointer-events: none;\n}\n\n:host(.disabled) .menu-item-label,\n:host(.disabled) .shortcut,\n:host(.disabled) .menu-item-description {\n color: var(--ic-architectural-200) !important;\n}\n\n:host([variant=\"destructive\"]) ::part(button) {\n color: var(--ic-action-destructive);\n}\n\n:host ::part(button):hover {\n background-color: var(--ic-action-dark-bg-hover);\n}\n\n:host ::part(button):focus-visible,\n:host ::part(button):focus {\n color: var(--ic-color-white-text);\n background-color: var(--ic-focus-blue);\n box-shadow: none;\n}\n\n:host(.disabled) ::part(button):focus-visible,\n:host(.disabled) ::part(button):focus {\n color: var(--ic-theme-lighten-40) !important;\n}\n\n:host([variant=\"destructive\"]) ::part(button):focus-visible,\n:host([variant=\"destructive\"]) ::part(button):focus {\n background-color: var(--ic-action-destructive);\n}\n\nic-button:focus-within .menu-item-label,\nic-button:focus-within .shortcut,\nic-button:focus-within .menu-item-description {\n color: var(--ic-color-white-text);\n}\n\n:host(.disabled) ic-button:focus-within .focus-border {\n border-color: var(--ic-architectural-white);\n}\n\n:host(.disabled) ic-button:focus-within .menu-item-label,\n:host(.disabled) ic-button:focus-within .shortcut,\n:host(.disabled) ic-button:focus-within .menu-item-description {\n color: var(--ic-theme-lighten-40) !important;\n}\n\n:host ::part(button):active {\n background-color: var(--ic-action-dark-bg-active);\n color: var(--ic-color-primary-text) !important;\n}\n\n:host([variant=\"destructive\"]) ::part(button):active {\n background-color: var(--ic-action-dark-bg-active);\n color: var(--ic-action-destructive) !important;\n}\n\n.menu-item-info {\n display: flex;\n flex-direction: column;\n flex: 1;\n align-items: baseline;\n white-space: pre-line;\n text-align: left;\n}\n\n.menu-labels {\n display: flex;\n align-items: baseline;\n gap: var(--ic-space-xs);\n}\n\n.menu-item-description {\n color: var(--ic-color-secondary-text);\n}\n\n.shortcut {\n color: var(--ic-color-tertiary-text);\n display: flex;\n flex: min-content;\n}\n\n:host([variant=\"destructive\"]) .menu-item-label {\n text-transform: uppercase;\n font-weight: 600;\n letter-spacing: 0.025em;\n}\n\nic-button:active .menu-item-label {\n color: var(--ic-color-primary-text);\n}\n\nic-button:active .menu-item-description {\n color: var(--ic-color-secondary-text);\n}\n\nic-button:active .shortcut {\n color: var(--ic-color-tertiary-text);\n}\n\n:host([variant=\"destructive\"]) ic-button:active .menu-item-label {\n color: var(--ic-action-destructive) !important;\n}\n\n.icon,\n.check-icon,\n.submenu-icon,\n.icon ::slotted(svg),\n.check-icon svg,\n.submenu-icon svg {\n width: var(--ic-space-lg);\n height: var(--ic-space-lg);\n}\n\n.check-icon.hide {\n visibility: hidden;\n}\n\n/** High Contrast **/\n@media (forced-colors: active) {\n :host ::part(button) {\n border: canvas;\n }\n\n :host ::part(button):focus-visible {\n outline: var(--ic-space-xxxs) solid transparent;\n }\n\n .focus-border {\n border-color: canvas;\n }\n\n :host(.disabled) ic-button:focus-within .focus-border {\n border-color: GrayText;\n }\n\n :host(.disabled) .menu-item-info,\n :host(.disabled) .menu-item-label,\n :host(.disabled) .shortcut,\n :host(.disabled) .menu-item-description,\n :host(.disabled) ic-button:focus-within .menu-item-info,\n :host(.disabled) ic-button:focus-within .menu-item-label,\n :host(.disabled) ic-button:focus-within .shortcut,\n :host(.disabled) ic-button:focus-within .menu-item-description {\n color: GrayText !important;\n }\n\n :host(.disabled) ::part(button):focus-visible,\n :host(.disabled) ::part(button):focus {\n outline-color: GrayText !important;\n }\n}\n","import {\n Component,\n Element,\n Host,\n Prop,\n h,\n State,\n Event,\n EventEmitter,\n Listen,\n} from \"@stencil/core\";\nimport {\n isSlotUsed,\n onComponentRequiredPropUndefined,\n removeDisabledFalse,\n isPropDefined,\n} from \"../../utils/helpers\";\nimport { IcMenuItemVariants } from \"./ic-menu-item.types\";\nimport Check from \"../../assets/check-icon.svg\";\nimport Chevron from \"../../assets/chevron-icon.svg\";\n\n/**\n * @slot icon - Content will be placed to the left of the menu item label.\n */\n\n@Component({\n tag: \"ic-menu-item\",\n styleUrl: \"ic-menu-item.css\",\n shadow: {\n delegatesFocus: true,\n },\n})\nexport class MenuItem {\n @Element() el: HTMLIcMenuItemElement;\n\n @State() toggleChecked: boolean = false;\n\n /**\n * The description displayed in the menu item, below the label.\n */\n @Prop() description?: string;\n\n /**\n * If `true`, the menu item will be in disabled state.\n */\n @Prop() disabled?: boolean = false;\n\n /**\n * The URL that the link points to. This will render the menu item as an \"a\" tag.\n */\n @Prop() href?: string;\n\n /**\n * The human language of the linked URL.\n */\n @Prop() hreflang?: string;\n\n /**\n * The label describing the keyboard shortcut for a menu item's action.\n */\n @Prop() keyboardShortcut?: string;\n\n /**\n * The label to display in the menu item.\n */\n @Prop() label!: string;\n\n /**\n * How much of the referrer to send when following the link.\n */\n @Prop() referrerpolicy?: ReferrerPolicy;\n\n /**\n * The relationship of the linked URL as space-separated link types.\n */\n @Prop() rel?: string;\n\n /**\n * This references the popover menu instance that the menu item is a trigger for. If this prop is set, then the variant will always be default.\n */\n @Prop() submenuTriggerFor?: string;\n\n /**\n * The place to display the linked URL, as the name for a browsing context (a tab, window, or iframe).\n */\n @Prop() target?: string;\n\n /**\n * The variant of the menu item.\n */\n @Prop({ mutable: true, reflect: true }) variant: IcMenuItemVariants =\n \"default\";\n\n /**\n * @internal Emitted when item loses focus.\n */\n @Event() childBlur: EventEmitter<void>;\n\n /**\n * @internal Emitted when the user clicks a menu item.\n */\n @Event() handleMenuItemClick: EventEmitter<{\n label: string;\n hasSubMenu: boolean;\n }>;\n\n /**\n * @internal Emitted when the user clicks a menu item that triggers a popover menu instance.\n */\n @Event() triggerPopoverMenuInstance: EventEmitter<void>;\n\n componentWillLoad(): void {\n // This ensures that trigger menu items are always set to the default variant\n if (isPropDefined(this.submenuTriggerFor) && this.variant !== \"default\") {\n this.variant = \"default\";\n }\n removeDisabledFalse(this.disabled, this.el);\n }\n\n componentDidLoad(): void {\n onComponentRequiredPropUndefined(\n [{ prop: this.label, propName: \"label\" }],\n \"Menu Item\"\n );\n }\n\n @Listen(\"click\", { capture: true })\n handleHostClick(e: Event): void {\n if (this.disabled) {\n e.stopImmediatePropagation();\n }\n }\n\n private handleClick = (e: Event): void => {\n if (isPropDefined(this.submenuTriggerFor)) {\n this.triggerPopoverMenuInstance.emit();\n } else if (this.variant === \"toggle\") {\n e.preventDefault();\n this.toggleChecked = !this.toggleChecked;\n }\n this.handleMenuItemClick.emit({\n label: this.label,\n hasSubMenu: !!this.el.submenuTriggerFor,\n });\n };\n\n private getMenuItemAriaLabel = (): string => {\n let ariaLabel = this.label;\n\n if (isPropDefined(this.description)) {\n ariaLabel = `${ariaLabel}, ${this.description}`;\n }\n\n if (isPropDefined(this.keyboardShortcut)) {\n ariaLabel = `${ariaLabel}, ${this.keyboardShortcut}`;\n }\n\n if (this.variant === \"destructive\") {\n ariaLabel = `${ariaLabel}, destructive`;\n }\n\n if (isPropDefined(this.submenuTriggerFor)) {\n ariaLabel = `${ariaLabel}, triggers submenu`;\n }\n\n if (this.el.classList.contains(\"ic-popover-submenu-back-button\")) {\n ariaLabel = \"Go back to parent menu\";\n }\n const parentEl = this.el.parentElement;\n\n if (\n parentEl.tagName === \"IC-MENU-GROUP\" &&\n (parentEl as HTMLIcMenuGroupElement).label\n ) {\n return `${ariaLabel}, ${\n (parentEl as HTMLIcMenuGroupElement).label\n } menu group`;\n } else {\n return ariaLabel;\n }\n };\n\n render() {\n // A sub-component to layout the menu information correctly in ic-button\n const MenuItemInformation = () => {\n return (\n <div class=\"menu-item-info\">\n <div class=\"menu-labels\">\n <ic-typography class=\"menu-item-label\">{this.label}</ic-typography>\n {this.keyboardShortcut && (\n <ic-typography variant=\"caption\" class=\"shortcut\">\n {this.keyboardShortcut}\n </ic-typography>\n )}\n </div>\n {this.description && (\n <ic-typography class=\"menu-item-description\" variant=\"caption\">\n {this.description}\n </ic-typography>\n )}\n </div>\n );\n };\n\n return (\n <Host\n class={{\n [\"disabled\"]: this.disabled,\n }}\n >\n <li\n role={this.variant === \"toggle\" ? \"menuitemcheckbox\" : \"menuitem\"}\n aria-disabled={`${this.disabled}`}\n aria-checked={\n this.variant === \"toggle\" ? this.toggleChecked : undefined\n }\n >\n <ic-button\n fullWidth\n variant=\"tertiary\"\n onClick={this.handleClick}\n href={isPropDefined(this.href)}\n hreflang={isPropDefined(this.hreflang)}\n target={isPropDefined(this.target)}\n rel={isPropDefined(this.rel)}\n referrerpolicy={\n this.referrerpolicy !== undefined ? this.referrerpolicy : null\n }\n aria-disabled={`${this.disabled}`}\n aria-label={this.getMenuItemAriaLabel()}\n ariaControlsId={\n isPropDefined(this.submenuTriggerFor)\n ? `ic-popover-submenu-${this.submenuTriggerFor}`\n : false\n }\n aria-haspopup={\n isPropDefined(this.submenuTriggerFor) ||\n this.el.classList.contains(\"ic-popover-submenu-back-button\")\n ? \"menu\"\n : false\n }\n ariaOwnsId={\n isPropDefined(this.submenuTriggerFor)\n ? `ic-popover-submenu-${this.submenuTriggerFor}`\n : false\n }\n >\n <div class=\"focus-border\">\n {isSlotUsed(this.el, \"icon\") && (\n <span class=\"icon\">\n <slot name=\"icon\"></slot>\n </span>\n )}\n <MenuItemInformation />\n {this.variant === \"toggle\" && (\n <span\n class={{\n [\"check-icon\"]: true,\n [\"hide\"]: !this.toggleChecked,\n }}\n aria-hidden=\"true\"\n innerHTML={Check}\n />\n )}\n {isPropDefined(this.submenuTriggerFor) && (\n <span\n class={{ [\"submenu-icon\"]: true }}\n aria-hidden=\"true\"\n innerHTML={Chevron}\n />\n )}\n </div>\n </ic-button>\n </li>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"ic-menu-item.entry.cjs.js","mappings":";;;;;;;;;;AAAA,MAAM,aAAa,GAAG,gzMAAgzM;;MCgCzzM,QAAQ;;;;;;QAqGX,gB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DA,QAAC,mBAAmB,OAAG,EACtB,IAAI,CAAC,OAAO,KAAK,QAAQ,KACxBA,kBACE,KAAK,EAAE;gBACL,CAAC,YAAY,GAAG,IAAI;gBACpB,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,aAAa;aAC9B,iBACW,MAAM,EAClB,SAAS,EAAEG,eAAK,GAChB,CACH,EACAN,qBAAa,CAAC,IAAI,CAAC,iBAAiB,CAAC,KACpCG,kBACE,KAAK,EAAE,EAAE,CAAC,cAAc,GAAG,IAAI,EAAE,iBACrB,MAAM,EAClB,SAAS,EAAEI,mBAAO,GAClB,CACH,CACG,CACI,CACT,CACA,EACP;KACH;;;;;;;;","names":["isPropDefined","removeDisabledFalse","onComponentRequiredPropUndefined","h","Host","isSlotUsed","Check","Chevron"],"sources":["src/components/ic-menu-item/ic-menu-item.css?tag=ic-menu-item&encapsulation=shadow","src/components/ic-menu-item/ic-menu-item.tsx"],"sourcesContent":["@import \"../../global/normalize.css\";\n\nli {\n list-style: none;\n padding: 0;\n}\n\n:host ::part(button) {\n color: var(--ic-color-primary-text);\n padding: calc(var(--ic-space-xxxs) / 2);\n display: flex;\n align-items: flex-start;\n gap: var(--ic-space-xs);\n border-radius: 0;\n min-height: 2.5rem;\n height: auto;\n}\n\n.focus-border {\n display: flex;\n align-items: flex-start;\n gap: var(--ic-space-xs);\n border-radius: var(--ic-border-radius);\n margin: calc(var(--ic-space-xxxs) / 2);\n padding: var(--ic-space-xxs);\n border: var(--ic-space-xxxs) dashed transparent;\n\n --icon-height: auto;\n}\n\n:host(.ic-menu-item-disabled) ::part(button) {\n color: var(--ic-architectural-200) !important;\n pointer-events: none;\n}\n\n:host(.ic-menu-item-disabled) .menu-item-label,\n:host(.ic-menu-item-disabled) .shortcut,\n:host(.ic-menu-item-disabled) .menu-item-description {\n color: var(--ic-architectural-200) !important;\n}\n\n:host([variant=\"destructive\"]) ::part(button) {\n color: var(--ic-action-destructive);\n}\n\n:host ::part(button):hover {\n background-color: var(--ic-action-dark-bg-hover);\n}\n\n:host ::part(button):focus-visible,\n:host ::part(button):focus {\n color: var(--ic-color-white-text);\n background-color: var(--ic-focus-blue);\n box-shadow: none;\n}\n\n:host(.ic-menu-item-disabled) ::part(button):focus-visible,\n:host(.ic-menu-item-disabled) ::part(button):focus {\n color: var(--ic-theme-lighten-40) !important;\n}\n\n:host([variant=\"destructive\"]) ::part(button):focus-visible,\n:host([variant=\"destructive\"]) ::part(button):focus {\n background-color: var(--ic-action-destructive);\n}\n\nic-button:focus-within .menu-item-label,\nic-button:focus-within .shortcut,\nic-button:focus-within .menu-item-description {\n color: var(--ic-color-white-text);\n}\n\n:host(.ic-menu-item-disabled) ic-button:focus-within .focus-border {\n border-color: var(--ic-architectural-white);\n}\n\n:host(.ic-menu-item-disabled) ic-button:focus-within .menu-item-label,\n:host(.ic-menu-item-disabled) ic-button:focus-within .shortcut,\n:host(.ic-menu-item-disabled) ic-button:focus-within .menu-item-description {\n color: var(--ic-theme-lighten-40) !important;\n}\n\n:host ::part(button):active {\n background-color: var(--ic-action-dark-bg-active);\n color: var(--ic-color-primary-text) !important;\n}\n\n:host([variant=\"destructive\"]) ::part(button):active {\n background-color: var(--ic-action-dark-bg-active);\n color: var(--ic-action-destructive) !important;\n}\n\n.menu-item-info {\n display: flex;\n flex-direction: column;\n flex: 1;\n align-items: baseline;\n white-space: pre-line;\n text-align: left;\n}\n\n.menu-labels {\n display: flex;\n align-items: baseline;\n gap: var(--ic-space-xs);\n}\n\n.menu-item-description {\n color: var(--ic-color-secondary-text);\n}\n\n.shortcut {\n color: var(--ic-color-tertiary-text);\n display: flex;\n flex: min-content;\n}\n\n:host([variant=\"destructive\"]) .menu-item-label {\n text-transform: uppercase;\n font-weight: 600;\n letter-spacing: 0.025em;\n}\n\nic-button:active .menu-item-label {\n color: var(--ic-color-primary-text);\n}\n\nic-button:active .menu-item-description {\n color: var(--ic-color-secondary-text);\n}\n\nic-button:active .shortcut {\n color: var(--ic-color-tertiary-text);\n}\n\n:host([variant=\"destructive\"]) ic-button:active .menu-item-label {\n color: var(--ic-action-destructive) !important;\n}\n\n.icon,\n.check-icon,\n.submenu-icon,\n.icon ::slotted(svg),\n.check-icon svg,\n.submenu-icon svg {\n width: var(--ic-space-lg);\n height: var(--ic-space-lg);\n}\n\n.check-icon.hide {\n visibility: hidden;\n}\n\n/** High Contrast **/\n@media (forced-colors: active) {\n :host ::part(button) {\n border: canvas;\n }\n\n :host ::part(button):focus-visible {\n outline: var(--ic-space-xxxs) solid transparent;\n }\n\n .focus-border {\n border-color: canvas;\n }\n\n :host(.ic-menu-item-disabled) ic-button:focus-within .focus-border {\n border-color: GrayText;\n }\n\n :host(.ic-menu-item-disabled) .menu-item-info,\n :host(.ic-menu-item-disabled) .menu-item-label,\n :host(.ic-menu-item-disabled) .shortcut,\n :host(.ic-menu-item-disabled) .menu-item-description,\n :host(.ic-menu-item-disabled) ic-button:focus-within .menu-item-info,\n :host(.ic-menu-item-disabled) ic-button:focus-within .menu-item-label,\n :host(.ic-menu-item-disabled) ic-button:focus-within .shortcut,\n :host(.ic-menu-item-disabled) ic-button:focus-within .menu-item-description {\n color: GrayText !important;\n }\n\n :host(.ic-menu-item-disabled) ::part(button):focus-visible,\n :host(.ic-menu-item-disabled) ::part(button):focus {\n outline-color: GrayText !important;\n }\n}\n","import {\n Component,\n Element,\n Host,\n Prop,\n h,\n State,\n Event,\n EventEmitter,\n Listen,\n} from \"@stencil/core\";\nimport {\n isSlotUsed,\n onComponentRequiredPropUndefined,\n removeDisabledFalse,\n isPropDefined,\n} from \"../../utils/helpers\";\nimport { IcMenuItemVariants } from \"./ic-menu-item.types\";\nimport Check from \"../../assets/check-icon.svg\";\nimport Chevron from \"../../assets/chevron-icon.svg\";\n\n/**\n * @slot icon - Content will be placed to the left of the menu item label.\n */\n\n@Component({\n tag: \"ic-menu-item\",\n styleUrl: \"ic-menu-item.css\",\n shadow: {\n delegatesFocus: true,\n },\n})\nexport class MenuItem {\n @Element() el: HTMLIcMenuItemElement;\n\n @State() toggleChecked: boolean = false;\n\n /**\n * The description displayed in the menu item, below the label.\n */\n @Prop() description?: string;\n\n /**\n * If `true`, the menu item will be in disabled state.\n */\n @Prop() disabled?: boolean = false;\n\n /**\n * The URL that the link points to. This will render the menu item as an \"a\" tag.\n */\n @Prop() href?: string;\n\n /**\n * The human language of the linked URL.\n */\n @Prop() hreflang?: string;\n\n /**\n * The label describing the keyboard shortcut for a menu item's action.\n */\n @Prop() keyboardShortcut?: string;\n\n /**\n * The label to display in the menu item.\n */\n @Prop() label!: string;\n\n /**\n * How much of the referrer to send when following the link.\n */\n @Prop() referrerpolicy?: ReferrerPolicy;\n\n /**\n * The relationship of the linked URL as space-separated link types.\n */\n @Prop() rel?: string;\n\n /**\n * This references the popover menu instance that the menu item is a trigger for. If this prop is set, then the variant will always be default.\n */\n @Prop() submenuTriggerFor?: string;\n\n /**\n * The place to display the linked URL, as the name for a browsing context (a tab, window, or iframe).\n */\n @Prop() target?: string;\n\n /**\n * The variant of the menu item.\n */\n @Prop({ mutable: true, reflect: true }) variant: IcMenuItemVariants =\n \"default\";\n\n /**\n * @internal Emitted when item loses focus.\n */\n @Event() childBlur: EventEmitter<void>;\n\n /**\n * @internal Emitted when the user clicks a menu item.\n */\n @Event() handleMenuItemClick: EventEmitter<{\n label: string;\n hasSubMenu: boolean;\n }>;\n\n /**\n * @internal Emitted when the user clicks a menu item that triggers a popover menu instance.\n */\n @Event() triggerPopoverMenuInstance: EventEmitter<void>;\n\n componentWillLoad(): void {\n // This ensures that trigger menu items are always set to the default variant\n if (isPropDefined(this.submenuTriggerFor) && this.variant !== \"default\") {\n this.variant = \"default\";\n }\n removeDisabledFalse(this.disabled, this.el);\n }\n\n componentDidLoad(): void {\n onComponentRequiredPropUndefined(\n [{ prop: this.label, propName: \"label\" }],\n \"Menu Item\"\n );\n }\n\n @Listen(\"click\", { capture: true })\n handleHostClick(e: Event): void {\n if (this.disabled) {\n e.stopImmediatePropagation();\n }\n }\n\n private handleClick = (e: Event): void => {\n if (isPropDefined(this.submenuTriggerFor)) {\n this.triggerPopoverMenuInstance.emit();\n } else if (this.variant === \"toggle\") {\n e.preventDefault();\n this.toggleChecked = !this.toggleChecked;\n }\n this.handleMenuItemClick.emit({\n label: this.label,\n hasSubMenu: !!this.el.submenuTriggerFor,\n });\n };\n\n private getMenuItemAriaLabel = (): string => {\n let ariaLabel = this.label;\n\n if (isPropDefined(this.description)) {\n ariaLabel = `${ariaLabel}, ${this.description}`;\n }\n\n if (isPropDefined(this.keyboardShortcut)) {\n ariaLabel = `${ariaLabel}, ${this.keyboardShortcut}`;\n }\n\n if (this.variant === \"destructive\") {\n ariaLabel = `${ariaLabel}, destructive`;\n }\n\n if (isPropDefined(this.submenuTriggerFor)) {\n ariaLabel = `${ariaLabel}, triggers submenu`;\n }\n\n if (this.el.classList.contains(\"ic-popover-submenu-back-button\")) {\n ariaLabel = \"Go back to parent menu\";\n }\n const parentEl = this.el.parentElement;\n\n if (\n parentEl.tagName === \"IC-MENU-GROUP\" &&\n (parentEl as HTMLIcMenuGroupElement).label\n ) {\n return `${ariaLabel}, ${\n (parentEl as HTMLIcMenuGroupElement).label\n } menu group`;\n } else {\n return ariaLabel;\n }\n };\n\n render() {\n // A sub-component to layout the menu information correctly in ic-button\n const MenuItemInformation = () => {\n return (\n <div class=\"menu-item-info\">\n <div class=\"menu-labels\">\n <ic-typography class=\"menu-item-label\">{this.label}</ic-typography>\n {this.keyboardShortcut && (\n <ic-typography variant=\"caption\" class=\"shortcut\">\n {this.keyboardShortcut}\n </ic-typography>\n )}\n </div>\n {this.description && (\n <ic-typography class=\"menu-item-description\" variant=\"caption\">\n {this.description}\n </ic-typography>\n )}\n </div>\n );\n };\n\n return (\n <Host\n class={{\n [\"ic-menu-item-disabled\"]: this.disabled,\n }}\n >\n <li\n role={this.variant === \"toggle\" ? \"menuitemcheckbox\" : \"menuitem\"}\n aria-disabled={`${this.disabled}`}\n aria-checked={\n this.variant === \"toggle\" ? this.toggleChecked : undefined\n }\n >\n <ic-button\n fullWidth\n variant=\"tertiary\"\n onClick={this.handleClick}\n href={isPropDefined(this.href)}\n hreflang={isPropDefined(this.hreflang)}\n target={isPropDefined(this.target)}\n rel={isPropDefined(this.rel)}\n referrerpolicy={\n this.referrerpolicy !== undefined ? this.referrerpolicy : null\n }\n aria-disabled={`${this.disabled}`}\n aria-label={this.getMenuItemAriaLabel()}\n ariaControlsId={\n isPropDefined(this.submenuTriggerFor)\n ? `ic-popover-submenu-${this.submenuTriggerFor}`\n : false\n }\n aria-haspopup={\n isPropDefined(this.submenuTriggerFor) ||\n this.el.classList.contains(\"ic-popover-submenu-back-button\")\n ? \"menu\"\n : false\n }\n ariaOwnsId={\n isPropDefined(this.submenuTriggerFor)\n ? `ic-popover-submenu-${this.submenuTriggerFor}`\n : false\n }\n >\n <div class=\"focus-border\">\n {isSlotUsed(this.el, \"icon\") && (\n <span class=\"icon\">\n <slot name=\"icon\"></slot>\n </span>\n )}\n <MenuItemInformation />\n {this.variant === \"toggle\" && (\n <span\n class={{\n [\"check-icon\"]: true,\n [\"hide\"]: !this.toggleChecked,\n }}\n aria-hidden=\"true\"\n innerHTML={Check}\n />\n )}\n {isPropDefined(this.submenuTriggerFor) && (\n <span\n class={{ [\"submenu-icon\"]: true }}\n aria-hidden=\"true\"\n innerHTML={Chevron}\n />\n )}\n </div>\n </ic-button>\n </li>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -7,7 +7,7 @@ const helpers = require('./helpers-94b33ab0.js');
7
7
  const chevronIcon = require('./chevron-icon-3bf07531.js');
8
8
  require('./types-dc22e301.js');
9
9
 
10
- const icNavigationGroupCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block}:host(.in-side-menu){border-bottom:var(--ic-border-width) solid var(--ic-architectural-200);padding:var(--ic-space-md) 0}:host .navigation-group{height:100%;width:-moz-fit-content;width:fit-content;color:var(--ic-theme-text);display:flex;align-items:center;justify-content:center;padding:0 var(--ic-space-md);transition:var(--ic-easing-transition-slow);position:relative;background:none;border:none;white-space:nowrap}:host(.in-side-menu) .navigation-group{height:2.5rem;width:100%;text-align:left}:host(.in-side-menu) .navigation-group .ic-typography-label{width:11.875rem}:host(.in-side-menu) .navigation-group-side-menu{color:var(--ic-action-default);justify-content:flex-start;padding:0 var(--ic-space-md) 0 var(--ic-space-md)}:host(.in-side-menu) .navigation-group-side-menu-collapsed,:host(.in-side-menu) .navigation-group-side-menu-expanded{color:var(--ic-action-default);justify-content:flex-start;padding-left:var(--ic-space-md)}:host(.in-side-menu) .navigation-group-side-menu-expanded{margin-bottom:var(--ic-space-xs)}:host(.in-side-menu) .navigation-group-side-menu-collapsed::after,:host(.in-side-menu) .navigation-group-side-menu-expanded::after{border-style:solid;border-width:0.125em 0.125em 0 0;content:\"\";display:inline-block;height:0.45em;left:0.75em;position:relative;top:-0.1em;transform:rotate(135deg);vertical-align:top;width:0.45em}:host(.in-side-menu) .navigation-group-side-menu-expanded::after{top:0.15em;transform:rotate(-45deg)}:host .navigation-group:hover,:host .navigation-group:active,:host .selected{background-color:var(--ic-architectural-20);color:var(--ic-color-primary-text);outline:none;cursor:pointer}:host(:not(.in-side-menu)) .navigation-group:focus{box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius);outline:var(--ic-hc-focus-outline);z-index:var(--ic-z-index-navigation-item);transition:box-shadow var(--ic-easing-transition-fast)}:host(.in-side-menu) .navigation-group-side-menu:hover,:host(.in-side-menu) .navigation-group-side-menu:active,:host(.in-side-menu) .navigation-group-side-menu:focus{background-color:var(--ic-architectural-20);color:var(--ic-action-default);cursor:auto;box-shadow:none;outline:none}:host(.in-side-menu) .navigation-group-side-menu:focus{outline:var(--ic-hc-focus-outline)}:host(.in-side-menu) .navigation-group-side-menu-expanded:hover:not(:focus),:host(.in-side-menu) .navigation-group-side-menu-collapsed:hover:not(:focus){background-color:var(--ic-action-dark-bg-hover);color:var(--ic-action-default);cursor:pointer}:host(.in-side-menu) .navigation-group-side-menu-expanded:active:not(:focus),:host(.in-side-menu) .navigation-group-side-menu-collapsed:active:not(:focus){background-color:var(--ic-action-dark-bg-active);color:var(--ic-action-default)}:host(.in-side-menu) .navigation-group-side-menu-expanded:focus,:host(.in-side-menu) .navigation-group-side-menu-collapsed:focus{color:var(--ic-action-default);box-shadow:var(--ic-border-focus-inset);border-radius:var(--ic-border-radius-inset);outline:var(--ic-hc-focus-outline)}:host .navigation-group-dropdown{background-color:var(--ic-architectural-20);border-bottom:var(--ic-border-default);position:absolute;left:0;right:0;padding:var(--ic-space-xs) var(--ic-space-md);box-shadow:0 0.375rem 0.5rem -0.375rem rgba(0 0 0 / 20%);z-index:calc(var(--ic-z-index-navigation-item) - 1)}:host .navigation-group-dropdown-items-list{list-style:none;display:flex;flex-flow:column wrap;align-content:flex-start;padding-left:var(--ic-space-md);max-height:16.5rem}:host .chevron-toggle-icon-wrapper{display:flex;align-items:center}:host .chevron-toggle-icon-wrapper svg{transform:rotate(90deg);height:var(--ic-space-lg);width:var(--ic-space-lg)}:host .chevron-toggle-icon-closed svg{transform:rotate(-90deg)}:host(.expanded) .grouped-links-wrapper{height:var(--navigation-child-items-height, auto) !important;transition:var(--ic-easing-transition-slow);overflow:hidden}:host(.navigation-group-side-nav) .link,:host(.navigation-group-side-nav) ::slotted(a){height:var(--navigation-child-items-height, auto)}:host(.collapsed) .grouped-links-wrapper{height:0;transition:var(--ic-easing-transition-slow);overflow:hidden}:host(.navigation-group-side-nav) .navigation-group{height:var(--navigation-group-height);width:var(--navigation-group-width);justify-content:var(--navigation-group-justify-content);padding-right:var(--navigation-group-expand-toggle-padding)}:host(.navigation-group-side-nav) .navigation-group:hover,:host(.navigation-group-side-nav) .navigation-group:active,:host(.navigation-group-side-nav) .selected{background-color:var(--navigation-group-hover);color:var(--navigation-group-text-hover)}:host(.navigation-group-side-nav) .navigation-group:focus{box-shadow:var(--ic-border-focus-inset);border-radius:var(--ic-border-radius-inset);background:none}:host(.navigation-group-side-nav) .ic-typography-caption{position:var(--navigation-group-title-position);left:var(--navigation-group-title-position-left);white-space:nowrap}";
10
+ const icNavigationGroupCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block}:host(.in-side-menu){border-bottom:var(--ic-border-width) solid var(--ic-architectural-200);padding:var(--ic-space-md) 0}:host .navigation-group{height:100%;width:-moz-fit-content;width:fit-content;color:var(--ic-theme-text);display:flex;align-items:center;justify-content:center;padding:0 var(--ic-space-md);transition:var(--ic-easing-transition-slow);position:relative;background:none;border:none;white-space:nowrap}:host(.in-side-menu) .navigation-group{height:2.5rem;width:100%;text-align:left}:host(.in-side-menu) .navigation-group .ic-typography-label{width:11.875rem}:host(.in-side-menu) .navigation-group-side-menu{color:var(--ic-action-default);justify-content:flex-start;padding:0 var(--ic-space-md) 0 var(--ic-space-md)}:host(.in-side-menu) .navigation-group-side-menu-collapsed,:host(.in-side-menu) .navigation-group-side-menu-expanded{color:var(--ic-action-default);justify-content:flex-start;padding-left:var(--ic-space-md)}:host(.in-side-menu) .navigation-group-side-menu-expanded{margin-bottom:var(--ic-space-xs)}:host(.in-side-menu) .navigation-group-side-menu-collapsed::after,:host(.in-side-menu) .navigation-group-side-menu-expanded::after{border-style:solid;border-width:0.125em 0.125em 0 0;content:\"\";display:inline-block;height:0.45em;left:0.75em;position:relative;top:-0.1em;transform:rotate(135deg);vertical-align:top;width:0.45em}:host(.in-side-menu) .navigation-group-side-menu-expanded::after{top:0.15em;transform:rotate(-45deg)}:host .navigation-group:hover,:host .navigation-group:active,:host .selected{background-color:var(--ic-architectural-20);color:var(--ic-color-primary-text);outline:none;cursor:pointer}:host(:not(.in-side-menu)) .navigation-group:focus{box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius);outline:var(--ic-hc-focus-outline);z-index:var(--ic-z-index-navigation-item);transition:box-shadow var(--ic-easing-transition-fast)}:host(.in-side-menu) .navigation-group-side-menu:hover,:host(.in-side-menu) .navigation-group-side-menu:active,:host(.in-side-menu) .navigation-group-side-menu:focus{background-color:var(--ic-architectural-20);color:var(--ic-action-default);cursor:auto;box-shadow:none;outline:none}:host(.in-side-menu) .navigation-group-side-menu:focus{outline:var(--ic-hc-focus-outline)}:host(.in-side-menu) .navigation-group-side-menu-expanded:hover:not(:focus),:host(.in-side-menu) .navigation-group-side-menu-collapsed:hover:not(:focus){background-color:var(--ic-action-dark-bg-hover);color:var(--ic-action-default);cursor:pointer}:host(.in-side-menu) .navigation-group-side-menu-expanded:active:not(:focus),:host(.in-side-menu) .navigation-group-side-menu-collapsed:active:not(:focus){background-color:var(--ic-action-dark-bg-active);color:var(--ic-action-default)}:host(.in-side-menu) .navigation-group-side-menu-expanded:focus,:host(.in-side-menu) .navigation-group-side-menu-collapsed:focus{color:var(--ic-action-default);box-shadow:var(--ic-border-focus-inset);border-radius:var(--ic-border-radius-inset);outline:var(--ic-hc-focus-outline)}:host .navigation-group-dropdown{background-color:var(--ic-architectural-20);border-bottom:var(--ic-border-default);position:absolute;left:0;right:0;padding:var(--ic-space-xs) var(--ic-space-md);box-shadow:0 0.375rem 0.5rem -0.375rem rgba(0 0 0 / 20%);z-index:calc(var(--ic-z-index-navigation-item) - 1)}:host .navigation-group-dropdown-items-list{list-style:none;display:flex;flex-flow:column wrap;align-content:flex-start;padding-left:var(--ic-space-md);max-height:16.5rem}:host .chevron-toggle-icon-wrapper{display:flex;align-items:center}:host .chevron-toggle-icon-wrapper svg{transform:rotate(90deg);height:var(--ic-space-lg);width:var(--ic-space-lg)}:host .chevron-toggle-icon-closed svg{transform:rotate(-90deg)}:host(.ic-navigation-group-expanded) .grouped-links-wrapper{height:var(--navigation-child-items-height, auto) !important;transition:var(--ic-easing-transition-slow);overflow:hidden}:host(.ic-navigation-group-side-nav) .link,:host(.ic-navigation-group-side-nav) ::slotted(a){height:var(--navigation-child-items-height, auto)}:host(.ic-navigation-group-collapsed) .grouped-links-wrapper{height:0;transition:var(--ic-easing-transition-slow);overflow:hidden}:host(.ic-navigation-group-side-nav) .navigation-group{height:var(--navigation-group-height);width:var(--navigation-group-width);justify-content:var(--navigation-group-justify-content);padding-right:var(--navigation-group-expand-toggle-padding)}:host(.ic-navigation-group-side-nav) .navigation-group:hover,:host(.ic-navigation-group-side-nav) .navigation-group:active,:host(.ic-navigation-group-side-nav) .selected{background-color:var(--navigation-group-hover);color:var(--navigation-group-text-hover)}:host(.ic-navigation-group-side-nav) .navigation-group:focus{box-shadow:var(--ic-border-focus-inset);border-radius:var(--ic-border-radius-inset);background:none}:host(.ic-navigation-group-side-nav) .ic-typography-caption{position:var(--navigation-group-title-position);left:var(--navigation-group-title-position-left);white-space:nowrap}";
11
11
 
12
12
  const NavigationGroup = class {
13
13
  constructor(hostRef) {
@@ -218,10 +218,10 @@ const NavigationGroup = class {
218
218
  }
219
219
  disconnectedCallback() {
220
220
  if (this.navigationType === "side") {
221
- this.parentEl.removeEventListener("sideNavExpanded", this.sideNavExpandHandler);
221
+ this.parentEl.removeEventListener("icSideNavExpanded", this.sideNavExpandHandler);
222
222
  }
223
223
  else if (this.navigationType === "top") {
224
- this.parentEl.removeEventListener("topNavResized", this.topNavResizedHandler);
224
+ this.parentEl.removeEventListener("icTopNavResized", this.topNavResizedHandler);
225
225
  }
226
226
  }
227
227
  componentWillLoad() {
@@ -230,10 +230,10 @@ const NavigationGroup = class {
230
230
  this.navigationType = navType;
231
231
  this.parentEl = parent;
232
232
  if (this.navigationType === "side") {
233
- this.parentEl.addEventListener("sideNavExpanded", this.sideNavExpandHandler);
233
+ this.parentEl.addEventListener("icSideNavExpanded", this.sideNavExpandHandler);
234
234
  }
235
235
  else if (this.navigationType === "top") {
236
- this.parentEl.addEventListener("topNavResized", this.topNavResizedHandler);
236
+ this.parentEl.addEventListener("icTopNavResized", this.topNavResizedHandler);
237
237
  if (this.deviceSize <=
238
238
  this.parentEl.customMobileBreakpoint)
239
239
  this.inTopNavSideMenu = true;
@@ -286,9 +286,9 @@ const NavigationGroup = class {
286
286
  const { label, dropdownOpen, inTopNavSideMenu, expandable } = this;
287
287
  return (index.h(index.Host, { class: {
288
288
  ["in-side-menu"]: inTopNavSideMenu,
289
- expanded: this.expanded,
290
- collapsed: !this.expanded,
291
- ["navigation-group-side-nav"]: this.navigationType === "side",
289
+ "ic-navigation-group-expanded": this.expanded,
290
+ "ic-navigation-group-collapsed": !this.expanded,
291
+ ["ic-navigation-group-side-nav"]: this.navigationType === "side",
292
292
  }, role: "listitem" }, index.h("button", { onMouseEnter: !inTopNavSideMenu &&
293
293
  this.navigationType === "top" &&
294
294
  this.handleMouseEnter, onMouseLeave: this.navigationType === "top" && this.handleMouseLeave, tabindex: inTopNavSideMenu && !expandable ? "-1" : "0", onBlur: this.handleBlur, onClick: expandable ? this.handleClick : null, onKeyDown: this.handleKeydown, class: {
@@ -1 +1 @@
1
- {"file":"ic-navigation-group.entry.cjs.js","mappings":";;;;;;;;;AAAA,MAAM,oBAAoB,GAAG,ywOAAywO;;MC2BzxO,eAAe;;;QAClB,8BAAyB,GAAkC,EAAE,CAAC;QAG9D,oCAA+B,GAAG,GAAG,CAAC;QAGtC,uBAAkB,GAAG,oBAAoB,CAAC;QAE1C,cAAS,GAAY,KAAK,CAAC;QAC3B,aAAQ,GAAG,qBAAqB,CAAC;QACjC,gCAA2B,GAAG,wBAAwB,CAAC;QAqGvD,yBAAoB,GAAG,CAAC,KAAmB;YACjD,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC,MAAM,CAAC,eAAe,CAAC;YACtD,MAAM,WAAW,GAAG,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,aAAa,CAClD,IA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,EAC7C,SAAS,EAAE,IAAI,CAAC,aAAa,EAC7B,KAAK,EAAE;gBACL,CAAC,kBAAkB,GAAG,IAAI;gBAC1B,CAAC,IAAI,CAAC,UAAU,GAAG,CAAC,gBAAgB;gBACpC,CAAC,4BAA4B,GAAG,gBAAgB,IAAI,CAAC,UAAU;gBAC/D,CAAC,sCAAsC,GACrC,gBAAgB,IAAI,UAAU,IAAI,CAAC,YAAY;gBACjD,CAAC,qCAAqC,GACpC,gBAAgB,IAAI,UAAU,IAAI,YAAY;gBAChD,CAAC,UAAU,GAAG,YAAY,IAAI,CAAC,gBAAgB;aAChD,EACD,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,mBACjB,GAAG,YAAY,IAAI,IAAI,CAAC,QAAQ,EAAE,mBAClC,GACb,CAAC,gBAAgB,IAAI,IAAI,CAAC,cAAc,KAAK,KAC/C,EAAE,IAEFA,2BACE,OAAO,EAAE,IAAI,CAAC,cAAc,KAAK,MAAM,GAAG,SAAS,GAAG,OAAO,IAE5D,KAAK,CACQ,EACf,IAAI,CAAC,cAAc,KAAK,MAAM,IAAI,UAAU,KAC3CA,iBACE,KAAK,EAAE;gBACL,6BAA6B,EAAE,IAAI;gBACnC,4BAA4B,EAAE,IAAI,CAAC,QAAQ;aAC5C,EACD,SAAS,EAAEK,mBAAW,GACjB,CACR,CACM,EACR,IAAI,CAAC,qBAAqB,EAAE,CACxB,EACP;KACH;;;;;;;;","names":["DEVICE_SIZES","h","getThemeForegroundColor","getCurrentDeviceSize","getNavItemParentDetails","Host","chevronIcon"],"sources":["src/components/ic-navigation-group/ic-navigation-group.css?tag=ic-navigation-group&encapsulation=shadow","src/components/ic-navigation-group/ic-navigation-group.tsx"],"sourcesContent":["@import \"../../global/normalize.css\";\n\n/**\n * @prop --ic-z-index-navigation-item: z-index of navigation group item\n */\n\n:host {\n display: block;\n}\n\n:host(.in-side-menu) {\n border-bottom: var(--ic-border-width) solid var(--ic-architectural-200);\n padding: var(--ic-space-md) 0;\n}\n\n:host .navigation-group {\n height: 100%;\n width: fit-content;\n color: var(--ic-theme-text);\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0 var(--ic-space-md);\n transition: var(--ic-easing-transition-slow);\n position: relative;\n background: none;\n border: none;\n white-space: nowrap;\n}\n\n:host(.in-side-menu) .navigation-group {\n height: 2.5rem;\n width: 100%;\n text-align: left;\n}\n\n:host(.in-side-menu) .navigation-group .ic-typography-label {\n width: 11.875rem;\n}\n\n:host(.in-side-menu) .navigation-group-side-menu {\n color: var(--ic-action-default);\n justify-content: flex-start;\n padding: 0 var(--ic-space-md) 0 var(--ic-space-md);\n}\n\n:host(.in-side-menu) .navigation-group-side-menu-collapsed,\n:host(.in-side-menu) .navigation-group-side-menu-expanded {\n color: var(--ic-action-default);\n justify-content: flex-start;\n padding-left: var(--ic-space-md);\n}\n\n:host(.in-side-menu) .navigation-group-side-menu-expanded {\n margin-bottom: var(--ic-space-xs);\n}\n\n:host(.in-side-menu) .navigation-group-side-menu-collapsed::after,\n:host(.in-side-menu) .navigation-group-side-menu-expanded::after {\n border-style: solid;\n border-width: 0.125em 0.125em 0 0;\n content: \"\";\n display: inline-block;\n height: 0.45em;\n left: 0.75em;\n position: relative;\n top: -0.1em;\n transform: rotate(135deg);\n vertical-align: top;\n width: 0.45em;\n}\n\n:host(.in-side-menu) .navigation-group-side-menu-expanded::after {\n top: 0.15em;\n transform: rotate(-45deg);\n}\n\n:host .navigation-group:hover,\n:host .navigation-group:active,\n:host .selected {\n background-color: var(--ic-architectural-20);\n color: var(--ic-color-primary-text);\n outline: none;\n cursor: pointer;\n}\n\n:host(:not(.in-side-menu)) .navigation-group:focus {\n box-shadow: var(--ic-border-focus);\n border-radius: var(--ic-border-radius);\n outline: var(--ic-hc-focus-outline);\n z-index: var(--ic-z-index-navigation-item);\n transition: box-shadow var(--ic-easing-transition-fast);\n}\n\n:host(.in-side-menu) .navigation-group-side-menu:hover,\n:host(.in-side-menu) .navigation-group-side-menu:active,\n:host(.in-side-menu) .navigation-group-side-menu:focus {\n background-color: var(--ic-architectural-20);\n color: var(--ic-action-default);\n cursor: auto;\n box-shadow: none;\n outline: none;\n}\n\n:host(.in-side-menu) .navigation-group-side-menu:focus {\n outline: var(--ic-hc-focus-outline);\n}\n\n:host(.in-side-menu) .navigation-group-side-menu-expanded:hover:not(:focus),\n:host(.in-side-menu) .navigation-group-side-menu-collapsed:hover:not(:focus) {\n background-color: var(--ic-action-dark-bg-hover);\n color: var(--ic-action-default);\n cursor: pointer;\n}\n\n:host(.in-side-menu) .navigation-group-side-menu-expanded:active:not(:focus),\n:host(.in-side-menu) .navigation-group-side-menu-collapsed:active:not(:focus) {\n background-color: var(--ic-action-dark-bg-active);\n color: var(--ic-action-default);\n}\n\n:host(.in-side-menu) .navigation-group-side-menu-expanded:focus,\n:host(.in-side-menu) .navigation-group-side-menu-collapsed:focus {\n color: var(--ic-action-default);\n box-shadow: var(--ic-border-focus-inset);\n border-radius: var(--ic-border-radius-inset);\n outline: var(--ic-hc-focus-outline);\n}\n\n:host .navigation-group-dropdown {\n background-color: var(--ic-architectural-20);\n border-bottom: var(--ic-border-default);\n position: absolute;\n left: 0;\n right: 0;\n padding: var(--ic-space-xs) var(--ic-space-md);\n box-shadow: 0 0.375rem 0.5rem -0.375rem rgba(0 0 0 / 20%);\n z-index: calc(var(--ic-z-index-navigation-item) - 1);\n}\n\n:host .navigation-group-dropdown-items-list {\n list-style: none;\n display: flex;\n flex-flow: column wrap;\n align-content: flex-start;\n padding-left: var(--ic-space-md);\n max-height: 16.5rem;\n}\n\n:host .chevron-toggle-icon-wrapper {\n display: flex;\n align-items: center;\n}\n\n:host .chevron-toggle-icon-wrapper svg {\n transform: rotate(90deg);\n height: var(--ic-space-lg);\n width: var(--ic-space-lg);\n}\n\n:host .chevron-toggle-icon-closed svg {\n transform: rotate(-90deg);\n}\n\n:host(.expanded) .grouped-links-wrapper {\n height: var(--navigation-child-items-height, auto) !important;\n transition: var(--ic-easing-transition-slow);\n overflow: hidden;\n}\n\n:host(.navigation-group-side-nav) .link,\n:host(.navigation-group-side-nav) ::slotted(a) {\n height: var(--navigation-child-items-height, auto);\n}\n\n:host(.collapsed) .grouped-links-wrapper {\n height: 0;\n transition: var(--ic-easing-transition-slow);\n overflow: hidden;\n}\n\n:host(.navigation-group-side-nav) .navigation-group {\n height: var(--navigation-group-height);\n width: var(--navigation-group-width);\n justify-content: var(--navigation-group-justify-content);\n padding-right: var(--navigation-group-expand-toggle-padding);\n}\n\n:host(.navigation-group-side-nav) .navigation-group:hover,\n:host(.navigation-group-side-nav) .navigation-group:active,\n:host(.navigation-group-side-nav) .selected {\n background-color: var(--navigation-group-hover);\n color: var(--navigation-group-text-hover);\n}\n\n:host(.navigation-group-side-nav) .navigation-group:focus {\n box-shadow: var(--ic-border-focus-inset);\n border-radius: var(--ic-border-radius-inset);\n background: none;\n}\n\n:host(.navigation-group-side-nav) .ic-typography-caption {\n position: var(--navigation-group-title-position);\n left: var(--navigation-group-title-position-left);\n white-space: nowrap;\n}\n","import {\n Component,\n Element,\n Host,\n Prop,\n State,\n Listen,\n h,\n Method,\n} from \"@stencil/core\";\n\nimport {\n DEVICE_SIZES,\n getCurrentDeviceSize,\n getThemeForegroundColor,\n getNavItemParentDetails,\n} from \"../../utils/helpers\";\nimport { IcNavType, IcTheme } from \"../../utils/types\";\n\nimport chevronIcon from \"../../assets/chevron-icon.svg\";\n@Component({\n tag: \"ic-navigation-group\",\n styleUrl: \"ic-navigation-group.css\",\n shadow: {\n delegatesFocus: true,\n },\n})\nexport class NavigationGroup {\n private allGroupedNavigationItems: HTMLIcNavigationItemElement[] = [];\n private collapsedNavItemsHeight: string;\n private dropdown: HTMLElement;\n private DYNAMIC_GROUPED_LINKS_HEIGHT_MS = 100;\n private expandedNavItemsHeight: string;\n private groupEl: HTMLElement;\n private IC_NAVIGATION_ITEM = \"ic-navigation-item\";\n private isSideNavExpanded: boolean;\n private mouseGate: boolean = false;\n private nodeName = \"IC-NAVIGATION-GROUP\";\n private GROUPED_LINKS_WRAPPER_CLASS = \".grouped-links-wrapper\";\n\n @Element() el: HTMLIcNavigationGroupElement;\n\n @State() deviceSize: number = DEVICE_SIZES.XL;\n @State() dropdownOpen: boolean = false;\n @State() expanded: boolean = true;\n @State() focusStyle = getThemeForegroundColor();\n @State() inTopNavSideMenu: boolean = false;\n @State() navigationType: IcNavType | \"\";\n @State() parentEl: HTMLElement;\n\n /**\n * If `true`, the group will be expandable in the side menu.\n */\n @Prop() expandable: boolean = false;\n\n /**\n * The label to display on the group.\n */\n @Prop() label: string;\n\n disconnectedCallback(): void {\n if (this.navigationType === \"side\") {\n this.parentEl.removeEventListener(\n \"sideNavExpanded\",\n this.sideNavExpandHandler\n );\n } else if (this.navigationType === \"top\") {\n this.parentEl.removeEventListener(\n \"topNavResized\",\n this.topNavResizedHandler\n );\n }\n }\n\n componentWillLoad(): void {\n this.deviceSize = getCurrentDeviceSize();\n const { navType, parent } = getNavItemParentDetails(this.el);\n this.navigationType = navType;\n this.parentEl = parent;\n\n if (this.navigationType === \"side\") {\n this.parentEl.addEventListener(\n \"sideNavExpanded\",\n this.sideNavExpandHandler\n );\n } else if (this.navigationType === \"top\") {\n this.parentEl.addEventListener(\n \"topNavResized\",\n this.topNavResizedHandler\n );\n if (\n this.deviceSize <=\n (this.parentEl as HTMLIcTopNavigationElement).customMobileBreakpoint\n )\n this.inTopNavSideMenu = true;\n }\n }\n\n componentDidLoad(): void {\n this.allGroupedNavigationItems = Array.from(\n this.el.querySelectorAll(this.IC_NAVIGATION_ITEM)\n );\n\n /**\n * debounce is required as the incorrect height was retrieved instantly after\n * componentDidLoad is invoked.\n */\n setTimeout(\n () => this.setInitialGroupedLinksWrapperHeight(),\n this.DYNAMIC_GROUPED_LINKS_HEIGHT_MS\n );\n }\n\n @Listen(\"childBlur\")\n childBlurHandler(): void {\n this.hideDropdown();\n }\n\n @Listen(\"navItemClicked\")\n navItemClickHandler(): void {\n this.hideDropdown();\n }\n\n @Listen(\"themeChange\", { target: \"document\" })\n themeChangeHandler(ev: CustomEvent): void {\n const theme: IcTheme = ev.detail;\n this.focusStyle = theme.mode;\n }\n\n /**\n * Sets focus on the nav item.\n */\n @Method()\n async setFocus(): Promise<void> {\n if (this.groupEl) {\n this.groupEl.focus();\n }\n }\n\n private sideNavExpandHandler = (event?: CustomEvent): void => {\n this.isSideNavExpanded = event.detail.sideNavExpanded;\n const linkWrapper = this.el.shadowRoot.querySelector(\n this.GROUPED_LINKS_WRAPPER_CLASS\n ) as HTMLElement;\n\n if (!linkWrapper) return;\n\n if (this.isSideNavExpanded) {\n if (this.expanded && this.expandedNavItemsHeight) {\n this.setGroupedLinksElementHeight(\n linkWrapper,\n this.expandedNavItemsHeight\n );\n } else if (this.expanded) {\n setTimeout(() => {\n this.expandedNavItemsHeight = this.getNavigationChildItemsHeight();\n\n this.setGroupedLinksElementHeight(\n linkWrapper,\n this.expandedNavItemsHeight\n );\n }, this.DYNAMIC_GROUPED_LINKS_HEIGHT_MS);\n }\n } else {\n if (this.expanded && this.collapsedNavItemsHeight) {\n this.setGroupedLinksElementHeight(\n linkWrapper,\n this.collapsedNavItemsHeight\n );\n } else if (this.expanded) {\n setTimeout(() => {\n this.collapsedNavItemsHeight = this.getNavigationChildItemsHeight();\n\n this.setGroupedLinksElementHeight(\n linkWrapper,\n this.collapsedNavItemsHeight\n );\n }, this.DYNAMIC_GROUPED_LINKS_HEIGHT_MS);\n }\n }\n };\n\n private topNavResizedHandler = ({\n detail,\n }: CustomEvent<{ size: number }>): void => {\n const { size } = detail;\n if (size !== this.deviceSize) {\n this.deviceSize = size;\n this.inTopNavSideMenu =\n size <=\n ((this.parentEl as HTMLIcTopNavigationElement)\n ?.customMobileBreakpoint || DEVICE_SIZES.L);\n }\n };\n\n private toggleDropdown() {\n this.dropdownOpen = !this.dropdownOpen;\n }\n\n private setGroupedNavItemTabIndex = (tabIndexValue: string) => {\n this.el\n .querySelectorAll(this.IC_NAVIGATION_ITEM)\n .forEach((navigationItem) => {\n const navItem =\n navigationItem.shadowRoot.querySelector(\"a\") ||\n navigationItem.querySelector(\"a\");\n if (navItem) {\n navItem.setAttribute(\"tabindex\", tabIndexValue);\n }\n });\n };\n\n private toggleGroupedLinkWrapperHeight = (\n wrapper: HTMLElement,\n expanded: boolean\n ) => {\n if (!wrapper) return;\n\n if (expanded) {\n if (this.isSideNavExpanded) {\n this.setGroupedLinksElementHeight(wrapper, this.expandedNavItemsHeight);\n } else {\n this.setGroupedLinksElementHeight(\n wrapper,\n this.collapsedNavItemsHeight\n );\n }\n this.setGroupedNavItemTabIndex(\"0\");\n } else {\n wrapper.style.setProperty(\"--navigation-child-items-height\", \"0\");\n this.setGroupedNavItemTabIndex(\"-1\");\n }\n };\n\n private toggleExpanded = () => {\n this.expanded = !this.expanded;\n const linkWrapper = this.el.shadowRoot.querySelector(\n this.GROUPED_LINKS_WRAPPER_CLASS\n ) as HTMLElement;\n this.toggleGroupedLinkWrapperHeight(linkWrapper, this.expanded);\n };\n\n private showDropdown() {\n if (!this.dropdownOpen) {\n this.toggleDropdown();\n }\n }\n\n private hideDropdown() {\n document.removeEventListener(\"keydown\", this.handleKeydown);\n if (this.dropdownOpen) {\n this.toggleDropdown();\n }\n }\n\n private handleClick = (ev: MouseEvent) => {\n if (this.navigationType === \"top\" && ev.detail) {\n this.toggleDropdown();\n } else {\n this.toggleExpanded();\n }\n };\n\n private handleBlur = (ev: FocusEvent) => {\n const target = ev.relatedTarget as HTMLElement;\n if (!this.el.contains(target)) {\n this.hideDropdown();\n }\n };\n\n private handleTopNavKeydown = (ev: KeyboardEvent) => {\n if (ev.key === \" \" || ev.key === \"Enter\") {\n this.toggleDropdown();\n } else if (!this.inTopNavSideMenu && ev.key === \"Escape\") {\n this.hideDropdown();\n }\n };\n\n private handleKeydown = (ev: KeyboardEvent) => {\n if (ev.key === \"Enter\" || ev.key === \" \" || ev.key === \"Escape\") {\n switch (this.navigationType) {\n case \"top\":\n this.handleTopNavKeydown(ev as KeyboardEvent);\n break;\n case \"side\":\n this.toggleExpanded();\n ev.preventDefault();\n break;\n default:\n this.toggleExpanded();\n break;\n }\n }\n };\n\n private handleMouseLeave = (ev: MouseEvent) => {\n const relTarget = ev.relatedTarget as HTMLElement;\n\n this.mouseGate = false;\n\n if (\n !this.el.contains(relTarget) &&\n relTarget !== this.dropdown &&\n document.activeElement !== this.el &&\n !this.el.contains(document.activeElement) &&\n relTarget?.nodeName === this.nodeName &&\n this.dropdownOpen === true\n ) {\n this.mouseGate = true;\n this.hideDropdown();\n } else if (\n !this.el.contains(relTarget) &&\n relTarget !== this.dropdown &&\n !this.el.contains(document.activeElement)\n ) {\n this.mouseGate = false;\n setTimeout(() => {\n this.dropdownOpen ? this.hideDropdown() : null;\n }, 500);\n }\n };\n\n private handleMouseEnter = (ev: MouseEvent) => {\n const relTarget = ev.relatedTarget as HTMLElement;\n document.addEventListener(\"keydown\", this.handleKeydown);\n\n if (relTarget?.nodeName === this.nodeName && this.mouseGate === true) {\n this.showDropdown();\n } else if (\n this.dropdownOpen === false &&\n relTarget !== null &&\n this.mouseGate === false\n ) {\n this.mouseGate = true;\n setTimeout(() => {\n this.mouseGate && this.showDropdown();\n }, 500);\n }\n };\n\n private renderDropdownGroupedLinks = (): HTMLDivElement => (\n <div\n class={{\n [\"navigation-group-dropdown\"]: !this.inTopNavSideMenu,\n [\"navigation-group-dropdown-side-menu\"]: this.inTopNavSideMenu,\n [\"selected\"]: this.dropdownOpen && !this.inTopNavSideMenu,\n }}\n onMouseLeave={!this.inTopNavSideMenu ? this.handleMouseLeave : null}\n ref={(el) => (this.dropdown = el)}\n >\n <nav\n class={{\n [\"navigation-group-dropdown-items\"]: !this.inTopNavSideMenu,\n }}\n >\n <ul>\n <slot></slot>\n </ul>\n </nav>\n </div>\n );\n\n private renderGroupedLinks = (): HTMLDivElement => (\n <ul class=\"grouped-links-wrapper\">\n <slot></slot>\n </ul>\n );\n\n /**\n * Gets the total height of navigation links to improve\n * smoothness of expand/collapse animations\n */\n private getNavigationChildItemsHeight = (): string => {\n let navigationChildItemsHeight = 0;\n this.allGroupedNavigationItems.forEach((navItem) => {\n navigationChildItemsHeight += navItem.offsetHeight;\n });\n\n return `${navigationChildItemsHeight}px`;\n };\n\n private setInitialGroupedLinksWrapperHeight = () => {\n const linkWrapper = this.el.shadowRoot.querySelector(\n this.GROUPED_LINKS_WRAPPER_CLASS\n ) as HTMLElement;\n\n if (!linkWrapper) return;\n\n if (\n !this.isSideNavExpanded &&\n !this.collapsedNavItemsHeight &&\n this.expanded\n ) {\n this.collapsedNavItemsHeight = this.getNavigationChildItemsHeight();\n this.setGroupedLinksElementHeight(\n linkWrapper,\n this.collapsedNavItemsHeight\n );\n }\n\n if (this.isSideNavExpanded && this.expanded) {\n this.expandedNavItemsHeight = this.getNavigationChildItemsHeight();\n this.setGroupedLinksElementHeight(\n linkWrapper,\n this.expandedNavItemsHeight\n );\n }\n };\n\n private renderNavigationItems = (): HTMLDivElement | null => {\n if (this.dropdownOpen || (this.inTopNavSideMenu && !this.expandable)) {\n return this.renderDropdownGroupedLinks();\n }\n\n if (this.navigationType !== \"top\") {\n return this.renderGroupedLinks();\n }\n\n return null;\n };\n\n private setGroupedLinksElementHeight(\n groupedNavItemWrapper: HTMLElement,\n height: string\n ) {\n groupedNavItemWrapper.style.setProperty(\n \"--navigation-child-items-height\",\n height\n );\n }\n\n render() {\n const { label, dropdownOpen, inTopNavSideMenu, expandable } = this;\n\n return (\n <Host\n class={{\n [\"in-side-menu\"]: inTopNavSideMenu,\n expanded: this.expanded,\n collapsed: !this.expanded,\n [\"navigation-group-side-nav\"]: this.navigationType === \"side\",\n }}\n role=\"listitem\"\n >\n <button\n onMouseEnter={\n !inTopNavSideMenu &&\n this.navigationType === \"top\" &&\n this.handleMouseEnter\n }\n onMouseLeave={this.navigationType === \"top\" && this.handleMouseLeave}\n tabindex={inTopNavSideMenu && !expandable ? \"-1\" : \"0\"}\n onBlur={this.handleBlur}\n onClick={expandable ? this.handleClick : null}\n onKeyDown={this.handleKeydown}\n class={{\n [\"navigation-group\"]: true,\n [this.focusStyle]: !inTopNavSideMenu,\n [\"navigation-group-side-menu\"]: inTopNavSideMenu && !expandable,\n [\"navigation-group-side-menu-collapsed\"]:\n inTopNavSideMenu && expandable && !dropdownOpen,\n [\"navigation-group-side-menu-expanded\"]:\n inTopNavSideMenu && expandable && dropdownOpen,\n [\"selected\"]: dropdownOpen && !inTopNavSideMenu,\n }}\n ref={(el) => (this.groupEl = el)}\n aria-expanded={`${dropdownOpen || this.expanded}`}\n aria-haspopup={`${\n !inTopNavSideMenu && this.navigationType === \"top\"\n }`}\n >\n <ic-typography\n variant={this.navigationType === \"side\" ? \"caption\" : \"label\"}\n >\n {label}\n </ic-typography>\n {this.navigationType === \"side\" && expandable && (\n <div\n class={{\n \"chevron-toggle-icon-wrapper\": true,\n \"chevron-toggle-icon-closed\": this.expanded,\n }}\n innerHTML={chevronIcon}\n ></div>\n )}\n </button>\n {this.renderNavigationItems()}\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"ic-navigation-group.entry.cjs.js","mappings":";;;;;;;;;AAAA,MAAM,oBAAoB,GAAG,y0OAAy0O;;MC2Bz1O,eAAe;;;QAClB,8BAAyB,GAAkC,EAAE,CAAC;QAG9D,oCAA+B,GAAG,GAAG,CAAC;QAGtC,uBAAkB,GAAG,oBAAoB,CAAC;QAE1C,cAAS,GAAY,KAAK,CAAC;QAC3B,aAAQ,GAAG,qBAAqB,CAAC;QACjC,gCAA2B,GAAG,wBAAwB,CAAC;QAqGvD,yBAAoB,GAAG,CAAC,KAAmB;YACjD,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC,MAAM,CAAC,eAAe,CAAC;YACtD,MAAM,WAAW,GAAG,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,aAAa,CAClD,IAAI,CAAC,2BAA2B,CAClB,CAAC;YAEjB,IAAI,CAAC,WAAW;gBAAE,OAAO;YAEzB,IAAI,I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BAAkB,GAAG,IAAI;gBAC1B,CAAC,IAAI,CAAC,UAAU,GAAG,CAAC,gBAAgB;gBACpC,CAAC,4BAA4B,GAAG,gBAAgB,IAAI,CAAC,UAAU;gBAC/D,CAAC,sCAAsC,GACrC,gBAAgB,IAAI,UAAU,IAAI,CAAC,YAAY;gBACjD,CAAC,qCAAqC,GACpC,gBAAgB,IAAI,UAAU,IAAI,YAAY;gBAChD,CAAC,UAAU,GAAG,YAAY,IAAI,CAAC,gBAAgB;aAChD,EACD,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,mBACjB,GAAG,YAAY,IAAI,IAAI,CAAC,QAAQ,EAAE,mBAClC,GACb,CAAC,gBAAgB,IAAI,IAAI,CAAC,cAAc,KAAK,KAC/C,EAAE,IAEFA,2BACE,OAAO,EAAE,IAAI,CAAC,cAAc,KAAK,MAAM,GAAG,SAAS,GAAG,OAAO,IAE5D,KAAK,CACQ,EACf,IAAI,CAAC,cAAc,KAAK,MAAM,IAAI,UAAU,KAC3CA,iBACE,KAAK,EAAE;gBACL,6BAA6B,EAAE,IAAI;gBACnC,4BAA4B,EAAE,IAAI,CAAC,QAAQ;aAC5C,EACD,SAAS,EAAEK,mBAAW,GACjB,CACR,CACM,EACR,IAAI,CAAC,qBAAqB,EAAE,CACxB,EACP;KACH;;;;;;;;","names":["DEVICE_SIZES","h","getThemeForegroundColor","getCurrentDeviceSize","getNavItemParentDetails","Host","chevronIcon"],"sources":["src/components/ic-navigation-group/ic-navigation-group.css?tag=ic-navigation-group&encapsulation=shadow","src/components/ic-navigation-group/ic-navigation-group.tsx"],"sourcesContent":["@import \"../../global/normalize.css\";\n\n/**\n * @prop --ic-z-index-navigation-item: z-index of navigation group item\n */\n\n:host {\n display: block;\n}\n\n:host(.in-side-menu) {\n border-bottom: var(--ic-border-width) solid var(--ic-architectural-200);\n padding: var(--ic-space-md) 0;\n}\n\n:host .navigation-group {\n height: 100%;\n width: fit-content;\n color: var(--ic-theme-text);\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0 var(--ic-space-md);\n transition: var(--ic-easing-transition-slow);\n position: relative;\n background: none;\n border: none;\n white-space: nowrap;\n}\n\n:host(.in-side-menu) .navigation-group {\n height: 2.5rem;\n width: 100%;\n text-align: left;\n}\n\n:host(.in-side-menu) .navigation-group .ic-typography-label {\n width: 11.875rem;\n}\n\n:host(.in-side-menu) .navigation-group-side-menu {\n color: var(--ic-action-default);\n justify-content: flex-start;\n padding: 0 var(--ic-space-md) 0 var(--ic-space-md);\n}\n\n:host(.in-side-menu) .navigation-group-side-menu-collapsed,\n:host(.in-side-menu) .navigation-group-side-menu-expanded {\n color: var(--ic-action-default);\n justify-content: flex-start;\n padding-left: var(--ic-space-md);\n}\n\n:host(.in-side-menu) .navigation-group-side-menu-expanded {\n margin-bottom: var(--ic-space-xs);\n}\n\n:host(.in-side-menu) .navigation-group-side-menu-collapsed::after,\n:host(.in-side-menu) .navigation-group-side-menu-expanded::after {\n border-style: solid;\n border-width: 0.125em 0.125em 0 0;\n content: \"\";\n display: inline-block;\n height: 0.45em;\n left: 0.75em;\n position: relative;\n top: -0.1em;\n transform: rotate(135deg);\n vertical-align: top;\n width: 0.45em;\n}\n\n:host(.in-side-menu) .navigation-group-side-menu-expanded::after {\n top: 0.15em;\n transform: rotate(-45deg);\n}\n\n:host .navigation-group:hover,\n:host .navigation-group:active,\n:host .selected {\n background-color: var(--ic-architectural-20);\n color: var(--ic-color-primary-text);\n outline: none;\n cursor: pointer;\n}\n\n:host(:not(.in-side-menu)) .navigation-group:focus {\n box-shadow: var(--ic-border-focus);\n border-radius: var(--ic-border-radius);\n outline: var(--ic-hc-focus-outline);\n z-index: var(--ic-z-index-navigation-item);\n transition: box-shadow var(--ic-easing-transition-fast);\n}\n\n:host(.in-side-menu) .navigation-group-side-menu:hover,\n:host(.in-side-menu) .navigation-group-side-menu:active,\n:host(.in-side-menu) .navigation-group-side-menu:focus {\n background-color: var(--ic-architectural-20);\n color: var(--ic-action-default);\n cursor: auto;\n box-shadow: none;\n outline: none;\n}\n\n:host(.in-side-menu) .navigation-group-side-menu:focus {\n outline: var(--ic-hc-focus-outline);\n}\n\n:host(.in-side-menu) .navigation-group-side-menu-expanded:hover:not(:focus),\n:host(.in-side-menu) .navigation-group-side-menu-collapsed:hover:not(:focus) {\n background-color: var(--ic-action-dark-bg-hover);\n color: var(--ic-action-default);\n cursor: pointer;\n}\n\n:host(.in-side-menu) .navigation-group-side-menu-expanded:active:not(:focus),\n:host(.in-side-menu) .navigation-group-side-menu-collapsed:active:not(:focus) {\n background-color: var(--ic-action-dark-bg-active);\n color: var(--ic-action-default);\n}\n\n:host(.in-side-menu) .navigation-group-side-menu-expanded:focus,\n:host(.in-side-menu) .navigation-group-side-menu-collapsed:focus {\n color: var(--ic-action-default);\n box-shadow: var(--ic-border-focus-inset);\n border-radius: var(--ic-border-radius-inset);\n outline: var(--ic-hc-focus-outline);\n}\n\n:host .navigation-group-dropdown {\n background-color: var(--ic-architectural-20);\n border-bottom: var(--ic-border-default);\n position: absolute;\n left: 0;\n right: 0;\n padding: var(--ic-space-xs) var(--ic-space-md);\n box-shadow: 0 0.375rem 0.5rem -0.375rem rgba(0 0 0 / 20%);\n z-index: calc(var(--ic-z-index-navigation-item) - 1);\n}\n\n:host .navigation-group-dropdown-items-list {\n list-style: none;\n display: flex;\n flex-flow: column wrap;\n align-content: flex-start;\n padding-left: var(--ic-space-md);\n max-height: 16.5rem;\n}\n\n:host .chevron-toggle-icon-wrapper {\n display: flex;\n align-items: center;\n}\n\n:host .chevron-toggle-icon-wrapper svg {\n transform: rotate(90deg);\n height: var(--ic-space-lg);\n width: var(--ic-space-lg);\n}\n\n:host .chevron-toggle-icon-closed svg {\n transform: rotate(-90deg);\n}\n\n:host(.ic-navigation-group-expanded) .grouped-links-wrapper {\n height: var(--navigation-child-items-height, auto) !important;\n transition: var(--ic-easing-transition-slow);\n overflow: hidden;\n}\n\n:host(.ic-navigation-group-side-nav) .link,\n:host(.ic-navigation-group-side-nav) ::slotted(a) {\n height: var(--navigation-child-items-height, auto);\n}\n\n:host(.ic-navigation-group-collapsed) .grouped-links-wrapper {\n height: 0;\n transition: var(--ic-easing-transition-slow);\n overflow: hidden;\n}\n\n:host(.ic-navigation-group-side-nav) .navigation-group {\n height: var(--navigation-group-height);\n width: var(--navigation-group-width);\n justify-content: var(--navigation-group-justify-content);\n padding-right: var(--navigation-group-expand-toggle-padding);\n}\n\n:host(.ic-navigation-group-side-nav) .navigation-group:hover,\n:host(.ic-navigation-group-side-nav) .navigation-group:active,\n:host(.ic-navigation-group-side-nav) .selected {\n background-color: var(--navigation-group-hover);\n color: var(--navigation-group-text-hover);\n}\n\n:host(.ic-navigation-group-side-nav) .navigation-group:focus {\n box-shadow: var(--ic-border-focus-inset);\n border-radius: var(--ic-border-radius-inset);\n background: none;\n}\n\n:host(.ic-navigation-group-side-nav) .ic-typography-caption {\n position: var(--navigation-group-title-position);\n left: var(--navigation-group-title-position-left);\n white-space: nowrap;\n}\n","import {\n Component,\n Element,\n Host,\n Prop,\n State,\n Listen,\n h,\n Method,\n} from \"@stencil/core\";\n\nimport {\n DEVICE_SIZES,\n getCurrentDeviceSize,\n getThemeForegroundColor,\n getNavItemParentDetails,\n} from \"../../utils/helpers\";\nimport { IcNavType, IcTheme } from \"../../utils/types\";\n\nimport chevronIcon from \"../../assets/chevron-icon.svg\";\n@Component({\n tag: \"ic-navigation-group\",\n styleUrl: \"ic-navigation-group.css\",\n shadow: {\n delegatesFocus: true,\n },\n})\nexport class NavigationGroup {\n private allGroupedNavigationItems: HTMLIcNavigationItemElement[] = [];\n private collapsedNavItemsHeight: string;\n private dropdown: HTMLElement;\n private DYNAMIC_GROUPED_LINKS_HEIGHT_MS = 100;\n private expandedNavItemsHeight: string;\n private groupEl: HTMLElement;\n private IC_NAVIGATION_ITEM = \"ic-navigation-item\";\n private isSideNavExpanded: boolean;\n private mouseGate: boolean = false;\n private nodeName = \"IC-NAVIGATION-GROUP\";\n private GROUPED_LINKS_WRAPPER_CLASS = \".grouped-links-wrapper\";\n\n @Element() el: HTMLIcNavigationGroupElement;\n\n @State() deviceSize: number = DEVICE_SIZES.XL;\n @State() dropdownOpen: boolean = false;\n @State() expanded: boolean = true;\n @State() focusStyle = getThemeForegroundColor();\n @State() inTopNavSideMenu: boolean = false;\n @State() navigationType: IcNavType | \"\";\n @State() parentEl: HTMLElement;\n\n /**\n * If `true`, the group will be expandable in the side menu.\n */\n @Prop() expandable: boolean = false;\n\n /**\n * The label to display on the group.\n */\n @Prop() label: string;\n\n disconnectedCallback(): void {\n if (this.navigationType === \"side\") {\n this.parentEl.removeEventListener(\n \"icSideNavExpanded\",\n this.sideNavExpandHandler\n );\n } else if (this.navigationType === \"top\") {\n this.parentEl.removeEventListener(\n \"icTopNavResized\",\n this.topNavResizedHandler\n );\n }\n }\n\n componentWillLoad(): void {\n this.deviceSize = getCurrentDeviceSize();\n const { navType, parent } = getNavItemParentDetails(this.el);\n this.navigationType = navType;\n this.parentEl = parent;\n\n if (this.navigationType === \"side\") {\n this.parentEl.addEventListener(\n \"icSideNavExpanded\",\n this.sideNavExpandHandler\n );\n } else if (this.navigationType === \"top\") {\n this.parentEl.addEventListener(\n \"icTopNavResized\",\n this.topNavResizedHandler\n );\n if (\n this.deviceSize <=\n (this.parentEl as HTMLIcTopNavigationElement).customMobileBreakpoint\n )\n this.inTopNavSideMenu = true;\n }\n }\n\n componentDidLoad(): void {\n this.allGroupedNavigationItems = Array.from(\n this.el.querySelectorAll(this.IC_NAVIGATION_ITEM)\n );\n\n /**\n * debounce is required as the incorrect height was retrieved instantly after\n * componentDidLoad is invoked.\n */\n setTimeout(\n () => this.setInitialGroupedLinksWrapperHeight(),\n this.DYNAMIC_GROUPED_LINKS_HEIGHT_MS\n );\n }\n\n @Listen(\"childBlur\")\n childBlurHandler(): void {\n this.hideDropdown();\n }\n\n @Listen(\"navItemClicked\")\n navItemClickHandler(): void {\n this.hideDropdown();\n }\n\n @Listen(\"themeChange\", { target: \"document\" })\n themeChangeHandler(ev: CustomEvent): void {\n const theme: IcTheme = ev.detail;\n this.focusStyle = theme.mode;\n }\n\n /**\n * Sets focus on the nav item.\n */\n @Method()\n async setFocus(): Promise<void> {\n if (this.groupEl) {\n this.groupEl.focus();\n }\n }\n\n private sideNavExpandHandler = (event?: CustomEvent): void => {\n this.isSideNavExpanded = event.detail.sideNavExpanded;\n const linkWrapper = this.el.shadowRoot.querySelector(\n this.GROUPED_LINKS_WRAPPER_CLASS\n ) as HTMLElement;\n\n if (!linkWrapper) return;\n\n if (this.isSideNavExpanded) {\n if (this.expanded && this.expandedNavItemsHeight) {\n this.setGroupedLinksElementHeight(\n linkWrapper,\n this.expandedNavItemsHeight\n );\n } else if (this.expanded) {\n setTimeout(() => {\n this.expandedNavItemsHeight = this.getNavigationChildItemsHeight();\n\n this.setGroupedLinksElementHeight(\n linkWrapper,\n this.expandedNavItemsHeight\n );\n }, this.DYNAMIC_GROUPED_LINKS_HEIGHT_MS);\n }\n } else {\n if (this.expanded && this.collapsedNavItemsHeight) {\n this.setGroupedLinksElementHeight(\n linkWrapper,\n this.collapsedNavItemsHeight\n );\n } else if (this.expanded) {\n setTimeout(() => {\n this.collapsedNavItemsHeight = this.getNavigationChildItemsHeight();\n\n this.setGroupedLinksElementHeight(\n linkWrapper,\n this.collapsedNavItemsHeight\n );\n }, this.DYNAMIC_GROUPED_LINKS_HEIGHT_MS);\n }\n }\n };\n\n private topNavResizedHandler = ({\n detail,\n }: CustomEvent<{ size: number }>): void => {\n const { size } = detail;\n if (size !== this.deviceSize) {\n this.deviceSize = size;\n this.inTopNavSideMenu =\n size <=\n ((this.parentEl as HTMLIcTopNavigationElement)\n ?.customMobileBreakpoint || DEVICE_SIZES.L);\n }\n };\n\n private toggleDropdown() {\n this.dropdownOpen = !this.dropdownOpen;\n }\n\n private setGroupedNavItemTabIndex = (tabIndexValue: string) => {\n this.el\n .querySelectorAll(this.IC_NAVIGATION_ITEM)\n .forEach((navigationItem) => {\n const navItem =\n navigationItem.shadowRoot.querySelector(\"a\") ||\n navigationItem.querySelector(\"a\");\n if (navItem) {\n navItem.setAttribute(\"tabindex\", tabIndexValue);\n }\n });\n };\n\n private toggleGroupedLinkWrapperHeight = (\n wrapper: HTMLElement,\n expanded: boolean\n ) => {\n if (!wrapper) return;\n\n if (expanded) {\n if (this.isSideNavExpanded) {\n this.setGroupedLinksElementHeight(wrapper, this.expandedNavItemsHeight);\n } else {\n this.setGroupedLinksElementHeight(\n wrapper,\n this.collapsedNavItemsHeight\n );\n }\n this.setGroupedNavItemTabIndex(\"0\");\n } else {\n wrapper.style.setProperty(\"--navigation-child-items-height\", \"0\");\n this.setGroupedNavItemTabIndex(\"-1\");\n }\n };\n\n private toggleExpanded = () => {\n this.expanded = !this.expanded;\n const linkWrapper = this.el.shadowRoot.querySelector(\n this.GROUPED_LINKS_WRAPPER_CLASS\n ) as HTMLElement;\n this.toggleGroupedLinkWrapperHeight(linkWrapper, this.expanded);\n };\n\n private showDropdown() {\n if (!this.dropdownOpen) {\n this.toggleDropdown();\n }\n }\n\n private hideDropdown() {\n document.removeEventListener(\"keydown\", this.handleKeydown);\n if (this.dropdownOpen) {\n this.toggleDropdown();\n }\n }\n\n private handleClick = (ev: MouseEvent) => {\n if (this.navigationType === \"top\" && ev.detail) {\n this.toggleDropdown();\n } else {\n this.toggleExpanded();\n }\n };\n\n private handleBlur = (ev: FocusEvent) => {\n const target = ev.relatedTarget as HTMLElement;\n if (!this.el.contains(target)) {\n this.hideDropdown();\n }\n };\n\n private handleTopNavKeydown = (ev: KeyboardEvent) => {\n if (ev.key === \" \" || ev.key === \"Enter\") {\n this.toggleDropdown();\n } else if (!this.inTopNavSideMenu && ev.key === \"Escape\") {\n this.hideDropdown();\n }\n };\n\n private handleKeydown = (ev: KeyboardEvent) => {\n if (ev.key === \"Enter\" || ev.key === \" \" || ev.key === \"Escape\") {\n switch (this.navigationType) {\n case \"top\":\n this.handleTopNavKeydown(ev as KeyboardEvent);\n break;\n case \"side\":\n this.toggleExpanded();\n ev.preventDefault();\n break;\n default:\n this.toggleExpanded();\n break;\n }\n }\n };\n\n private handleMouseLeave = (ev: MouseEvent) => {\n const relTarget = ev.relatedTarget as HTMLElement;\n\n this.mouseGate = false;\n\n if (\n !this.el.contains(relTarget) &&\n relTarget !== this.dropdown &&\n document.activeElement !== this.el &&\n !this.el.contains(document.activeElement) &&\n relTarget?.nodeName === this.nodeName &&\n this.dropdownOpen === true\n ) {\n this.mouseGate = true;\n this.hideDropdown();\n } else if (\n !this.el.contains(relTarget) &&\n relTarget !== this.dropdown &&\n !this.el.contains(document.activeElement)\n ) {\n this.mouseGate = false;\n setTimeout(() => {\n this.dropdownOpen ? this.hideDropdown() : null;\n }, 500);\n }\n };\n\n private handleMouseEnter = (ev: MouseEvent) => {\n const relTarget = ev.relatedTarget as HTMLElement;\n document.addEventListener(\"keydown\", this.handleKeydown);\n\n if (relTarget?.nodeName === this.nodeName && this.mouseGate === true) {\n this.showDropdown();\n } else if (\n this.dropdownOpen === false &&\n relTarget !== null &&\n this.mouseGate === false\n ) {\n this.mouseGate = true;\n setTimeout(() => {\n this.mouseGate && this.showDropdown();\n }, 500);\n }\n };\n\n private renderDropdownGroupedLinks = (): HTMLDivElement => (\n <div\n class={{\n [\"navigation-group-dropdown\"]: !this.inTopNavSideMenu,\n [\"navigation-group-dropdown-side-menu\"]: this.inTopNavSideMenu,\n [\"selected\"]: this.dropdownOpen && !this.inTopNavSideMenu,\n }}\n onMouseLeave={!this.inTopNavSideMenu ? this.handleMouseLeave : null}\n ref={(el) => (this.dropdown = el)}\n >\n <nav\n class={{\n [\"navigation-group-dropdown-items\"]: !this.inTopNavSideMenu,\n }}\n >\n <ul>\n <slot></slot>\n </ul>\n </nav>\n </div>\n );\n\n private renderGroupedLinks = (): HTMLDivElement => (\n <ul class=\"grouped-links-wrapper\">\n <slot></slot>\n </ul>\n );\n\n /**\n * Gets the total height of navigation links to improve\n * smoothness of expand/collapse animations\n */\n private getNavigationChildItemsHeight = (): string => {\n let navigationChildItemsHeight = 0;\n this.allGroupedNavigationItems.forEach((navItem) => {\n navigationChildItemsHeight += navItem.offsetHeight;\n });\n\n return `${navigationChildItemsHeight}px`;\n };\n\n private setInitialGroupedLinksWrapperHeight = () => {\n const linkWrapper = this.el.shadowRoot.querySelector(\n this.GROUPED_LINKS_WRAPPER_CLASS\n ) as HTMLElement;\n\n if (!linkWrapper) return;\n\n if (\n !this.isSideNavExpanded &&\n !this.collapsedNavItemsHeight &&\n this.expanded\n ) {\n this.collapsedNavItemsHeight = this.getNavigationChildItemsHeight();\n this.setGroupedLinksElementHeight(\n linkWrapper,\n this.collapsedNavItemsHeight\n );\n }\n\n if (this.isSideNavExpanded && this.expanded) {\n this.expandedNavItemsHeight = this.getNavigationChildItemsHeight();\n this.setGroupedLinksElementHeight(\n linkWrapper,\n this.expandedNavItemsHeight\n );\n }\n };\n\n private renderNavigationItems = (): HTMLDivElement | null => {\n if (this.dropdownOpen || (this.inTopNavSideMenu && !this.expandable)) {\n return this.renderDropdownGroupedLinks();\n }\n\n if (this.navigationType !== \"top\") {\n return this.renderGroupedLinks();\n }\n\n return null;\n };\n\n private setGroupedLinksElementHeight(\n groupedNavItemWrapper: HTMLElement,\n height: string\n ) {\n groupedNavItemWrapper.style.setProperty(\n \"--navigation-child-items-height\",\n height\n );\n }\n\n render() {\n const { label, dropdownOpen, inTopNavSideMenu, expandable } = this;\n\n return (\n <Host\n class={{\n [\"in-side-menu\"]: inTopNavSideMenu,\n \"ic-navigation-group-expanded\": this.expanded,\n \"ic-navigation-group-collapsed\": !this.expanded,\n [\"ic-navigation-group-side-nav\"]: this.navigationType === \"side\",\n }}\n role=\"listitem\"\n >\n <button\n onMouseEnter={\n !inTopNavSideMenu &&\n this.navigationType === \"top\" &&\n this.handleMouseEnter\n }\n onMouseLeave={this.navigationType === \"top\" && this.handleMouseLeave}\n tabindex={inTopNavSideMenu && !expandable ? \"-1\" : \"0\"}\n onBlur={this.handleBlur}\n onClick={expandable ? this.handleClick : null}\n onKeyDown={this.handleKeydown}\n class={{\n [\"navigation-group\"]: true,\n [this.focusStyle]: !inTopNavSideMenu,\n [\"navigation-group-side-menu\"]: inTopNavSideMenu && !expandable,\n [\"navigation-group-side-menu-collapsed\"]:\n inTopNavSideMenu && expandable && !dropdownOpen,\n [\"navigation-group-side-menu-expanded\"]:\n inTopNavSideMenu && expandable && dropdownOpen,\n [\"selected\"]: dropdownOpen && !inTopNavSideMenu,\n }}\n ref={(el) => (this.groupEl = el)}\n aria-expanded={`${dropdownOpen || this.expanded}`}\n aria-haspopup={`${\n !inTopNavSideMenu && this.navigationType === \"top\"\n }`}\n >\n <ic-typography\n variant={this.navigationType === \"side\" ? \"caption\" : \"label\"}\n >\n {label}\n </ic-typography>\n {this.navigationType === \"side\" && expandable && (\n <div\n class={{\n \"chevron-toggle-icon-wrapper\": true,\n \"chevron-toggle-icon-closed\": this.expanded,\n }}\n innerHTML={chevronIcon}\n ></div>\n )}\n </button>\n {this.renderNavigationItems()}\n </Host>\n );\n }\n}\n"],"version":3}