@aquera/nile-elements 2.0.22 → 2.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (477) hide show
  1. package/README.md +76 -34
  2. package/demo/nxtgen-classes.css +24 -4
  3. package/demo/nxtgen-dark.css +30 -16
  4. package/demo/nxtgen-properties.css +9 -2
  5. package/demo/nxtgen-utilities.css +31 -4
  6. package/demo/nxtgen.css +8 -4
  7. package/demo/utilities.css +2 -2
  8. package/demo/variables.css +2 -2
  9. package/dist/index.cjs.js +1 -1
  10. package/dist/index.esm.js +1 -1
  11. package/dist/index.js +1929 -936
  12. package/dist/nile-app-shell/index.cjs.js +1 -1
  13. package/dist/nile-app-shell/index.esm.js +1 -1
  14. package/dist/nile-app-shell/nile-app-shell.cjs.js +1 -1
  15. package/dist/nile-app-shell/nile-app-shell.cjs.js.map +1 -1
  16. package/dist/nile-app-shell/nile-app-shell.css.cjs.js +1 -1
  17. package/dist/nile-app-shell/nile-app-shell.css.cjs.js.map +1 -1
  18. package/dist/nile-app-shell/nile-app-shell.css.esm.js +72 -65
  19. package/dist/nile-app-shell/nile-app-shell.esm.js +60 -31
  20. package/dist/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.cjs.js +1 -1
  21. package/dist/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.cjs.js.map +1 -1
  22. package/dist/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.esm.js +1 -1
  23. package/dist/nile-app-shell-side-nav/nile-app-shell-side-nav.cjs.js +1 -1
  24. package/dist/nile-app-shell-side-nav/nile-app-shell-side-nav.cjs.js.map +1 -1
  25. package/dist/nile-app-shell-side-nav/nile-app-shell-side-nav.css.cjs.js +1 -1
  26. package/dist/nile-app-shell-side-nav/nile-app-shell-side-nav.css.cjs.js.map +1 -1
  27. package/dist/nile-app-shell-side-nav/nile-app-shell-side-nav.css.esm.js +25 -7
  28. package/dist/nile-app-shell-side-nav/nile-app-shell-side-nav.esm.js +2 -2
  29. package/dist/nile-button-filter/nile-button-filter.cjs.js +1 -1
  30. package/dist/nile-button-filter/nile-button-filter.cjs.js.map +1 -1
  31. package/dist/nile-button-filter/nile-button-filter.css.cjs.js +1 -1
  32. package/dist/nile-button-filter/nile-button-filter.css.cjs.js.map +1 -1
  33. package/dist/nile-button-filter/nile-button-filter.css.esm.js +1 -1
  34. package/dist/nile-button-filter/nile-button-filter.esm.js +2 -4
  35. package/dist/nile-calendar/nile-calendar.css.cjs.js +1 -1
  36. package/dist/nile-calendar/nile-calendar.css.cjs.js.map +1 -1
  37. package/dist/nile-calendar/nile-calendar.css.esm.js +9 -8
  38. package/dist/nile-color-picker/nile-color-picker.css.cjs.js +1 -1
  39. package/dist/nile-color-picker/nile-color-picker.css.cjs.js.map +1 -1
  40. package/dist/nile-color-picker/nile-color-picker.css.esm.js +1 -1
  41. package/dist/nile-combobox/nile-combobox.css.cjs.js +1 -1
  42. package/dist/nile-combobox/nile-combobox.css.cjs.js.map +1 -1
  43. package/dist/nile-combobox/nile-combobox.css.esm.js +1 -1
  44. package/dist/nile-command-menu-item/nile-command-menu-item.css.cjs.js +1 -1
  45. package/dist/nile-command-menu-item/nile-command-menu-item.css.cjs.js.map +1 -1
  46. package/dist/nile-command-menu-item/nile-command-menu-item.css.esm.js +5 -1
  47. package/dist/nile-context-menu/nile-context-menu.css.cjs.js +1 -1
  48. package/dist/nile-context-menu/nile-context-menu.css.cjs.js.map +1 -1
  49. package/dist/nile-context-menu/nile-context-menu.css.esm.js +2 -3
  50. package/dist/nile-dropdown-switcher/index.cjs.js +2 -0
  51. package/dist/nile-dropdown-switcher/index.cjs.js.map +1 -0
  52. package/dist/nile-dropdown-switcher/index.esm.js +1 -0
  53. package/dist/nile-dropdown-switcher/nile-dropdown-switcher.cjs.js +2 -0
  54. package/dist/nile-dropdown-switcher/nile-dropdown-switcher.cjs.js.map +1 -0
  55. package/dist/nile-dropdown-switcher/nile-dropdown-switcher.css.cjs.js +2 -0
  56. package/dist/nile-dropdown-switcher/nile-dropdown-switcher.css.cjs.js.map +1 -0
  57. package/dist/nile-dropdown-switcher/nile-dropdown-switcher.css.esm.js +39 -0
  58. package/dist/nile-dropdown-switcher/nile-dropdown-switcher.esm.js +1 -0
  59. package/dist/nile-dropdown-switcher-group/index.cjs.js +2 -0
  60. package/dist/nile-dropdown-switcher-group/index.cjs.js.map +1 -0
  61. package/dist/nile-dropdown-switcher-group/index.esm.js +1 -0
  62. package/dist/nile-dropdown-switcher-group/nile-dropdown-switcher-group.cjs.js +2 -0
  63. package/dist/nile-dropdown-switcher-group/nile-dropdown-switcher-group.cjs.js.map +1 -0
  64. package/dist/nile-dropdown-switcher-group/nile-dropdown-switcher-group.css.cjs.js +2 -0
  65. package/dist/nile-dropdown-switcher-group/nile-dropdown-switcher-group.css.cjs.js.map +1 -0
  66. package/dist/nile-dropdown-switcher-group/nile-dropdown-switcher-group.css.esm.js +37 -0
  67. package/dist/nile-dropdown-switcher-group/nile-dropdown-switcher-group.esm.js +8 -0
  68. package/dist/nile-dropdown-switcher-header/index.cjs.js +2 -0
  69. package/dist/nile-dropdown-switcher-header/index.cjs.js.map +1 -0
  70. package/dist/nile-dropdown-switcher-header/index.esm.js +1 -0
  71. package/dist/nile-dropdown-switcher-header/nile-dropdown-switcher-header.cjs.js +2 -0
  72. package/dist/nile-dropdown-switcher-header/nile-dropdown-switcher-header.cjs.js.map +1 -0
  73. package/dist/nile-dropdown-switcher-header/nile-dropdown-switcher-header.css.cjs.js +2 -0
  74. package/dist/nile-dropdown-switcher-header/nile-dropdown-switcher-header.css.cjs.js.map +1 -0
  75. package/dist/nile-dropdown-switcher-header/nile-dropdown-switcher-header.css.esm.js +91 -0
  76. package/dist/nile-dropdown-switcher-header/nile-dropdown-switcher-header.esm.js +33 -0
  77. package/dist/nile-dropdown-switcher-item/index.cjs.js +2 -0
  78. package/dist/nile-dropdown-switcher-item/index.cjs.js.map +1 -0
  79. package/dist/nile-dropdown-switcher-item/index.esm.js +1 -0
  80. package/dist/nile-dropdown-switcher-item/nile-dropdown-switcher-item.cjs.js +2 -0
  81. package/dist/nile-dropdown-switcher-item/nile-dropdown-switcher-item.cjs.js.map +1 -0
  82. package/dist/nile-dropdown-switcher-item/nile-dropdown-switcher-item.css.cjs.js +2 -0
  83. package/dist/nile-dropdown-switcher-item/nile-dropdown-switcher-item.css.cjs.js.map +1 -0
  84. package/dist/nile-dropdown-switcher-item/nile-dropdown-switcher-item.css.esm.js +102 -0
  85. package/dist/nile-dropdown-switcher-item/nile-dropdown-switcher-item.esm.js +35 -0
  86. package/dist/nile-filter-chip/nile-filter-chip.css.cjs.js +1 -1
  87. package/dist/nile-filter-chip/nile-filter-chip.css.cjs.js.map +1 -1
  88. package/dist/nile-filter-chip/nile-filter-chip.css.esm.js +2 -2
  89. package/dist/nile-form-group/nile-form-group.css.cjs.js +1 -1
  90. package/dist/nile-form-group/nile-form-group.css.cjs.js.map +1 -1
  91. package/dist/nile-form-group/nile-form-group.css.esm.js +3 -3
  92. package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.css.cjs.js +1 -1
  93. package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.css.cjs.js.map +1 -1
  94. package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.css.esm.js +20 -4
  95. package/dist/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.cjs.js +1 -1
  96. package/dist/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.cjs.js.map +1 -1
  97. package/dist/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.esm.js +3 -3
  98. package/dist/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.cjs.js +1 -1
  99. package/dist/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.cjs.js.map +1 -1
  100. package/dist/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.esm.js +3 -3
  101. package/dist/nile-markdown-editor/nile-markdown-editor.css.cjs.js +1 -1
  102. package/dist/nile-markdown-editor/nile-markdown-editor.css.cjs.js.map +1 -1
  103. package/dist/nile-markdown-editor/nile-markdown-editor.css.esm.js +4 -4
  104. package/dist/nile-menu/nile-menu.css.cjs.js +1 -1
  105. package/dist/nile-menu/nile-menu.css.cjs.js.map +1 -1
  106. package/dist/nile-menu/nile-menu.css.esm.js +1 -2
  107. package/dist/nile-menu-item/nile-menu-item.css.cjs.js +1 -1
  108. package/dist/nile-menu-item/nile-menu-item.css.cjs.js.map +1 -1
  109. package/dist/nile-menu-item/nile-menu-item.css.esm.js +6 -6
  110. package/dist/nile-nav-tab/nile-nav-tab.css.cjs.js +1 -1
  111. package/dist/nile-nav-tab/nile-nav-tab.css.cjs.js.map +1 -1
  112. package/dist/nile-nav-tab/nile-nav-tab.css.esm.js +3 -3
  113. package/dist/nile-nav-tab-group/nile-nav-tab-group.css.cjs.js +1 -1
  114. package/dist/nile-nav-tab-group/nile-nav-tab-group.css.cjs.js.map +1 -1
  115. package/dist/nile-nav-tab-group/nile-nav-tab-group.css.esm.js +15 -12
  116. package/dist/nile-option/nile-option.css.cjs.js +1 -1
  117. package/dist/nile-option/nile-option.css.cjs.js.map +1 -1
  118. package/dist/nile-option/nile-option.css.esm.js +2 -2
  119. package/dist/nile-pagination/nile-pagination.cjs.js +1 -1
  120. package/dist/nile-pagination/nile-pagination.cjs.js.map +1 -1
  121. package/dist/nile-pagination/nile-pagination.css.cjs.js +1 -1
  122. package/dist/nile-pagination/nile-pagination.css.cjs.js.map +1 -1
  123. package/dist/nile-pagination/nile-pagination.css.esm.js +10 -0
  124. package/dist/nile-pagination/nile-pagination.esm.js +14 -14
  125. package/dist/nile-side-bar/nile-side-bar.cjs.js +1 -1
  126. package/dist/nile-side-bar/nile-side-bar.cjs.js.map +1 -1
  127. package/dist/nile-side-bar/nile-side-bar.css.cjs.js +1 -1
  128. package/dist/nile-side-bar/nile-side-bar.css.cjs.js.map +1 -1
  129. package/dist/nile-side-bar/nile-side-bar.css.esm.js +16 -14
  130. package/dist/nile-side-bar/nile-side-bar.esm.js +2 -2
  131. package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.css.cjs.js +1 -1
  132. package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.css.cjs.js.map +1 -1
  133. package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.css.esm.js +11 -4
  134. package/dist/nile-side-bar-footer/nile-side-bar-footer.cjs.js.map +1 -1
  135. package/dist/nile-side-bar-footer/nile-side-bar-footer.css.cjs.js +1 -1
  136. package/dist/nile-side-bar-footer/nile-side-bar-footer.css.cjs.js.map +1 -1
  137. package/dist/nile-side-bar-footer/nile-side-bar-footer.css.esm.js +8 -3
  138. package/dist/nile-side-bar-footer-item/index.cjs.js +1 -1
  139. package/dist/nile-side-bar-footer-item/index.esm.js +1 -1
  140. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.cjs.js +1 -1
  141. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.cjs.js.map +1 -1
  142. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.css.cjs.js +1 -1
  143. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.css.cjs.js.map +1 -1
  144. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.css.esm.js +181 -25
  145. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.esm.js +10 -3
  146. package/dist/nile-side-bar-footer-text/nile-side-bar-footer-text.css.cjs.js +1 -1
  147. package/dist/nile-side-bar-footer-text/nile-side-bar-footer-text.css.cjs.js.map +1 -1
  148. package/dist/nile-side-bar-footer-text/nile-side-bar-footer-text.css.esm.js +10 -5
  149. package/dist/nile-side-bar-group/nile-side-bar-group.cjs.js +1 -1
  150. package/dist/nile-side-bar-group/nile-side-bar-group.cjs.js.map +1 -1
  151. package/dist/nile-side-bar-group/nile-side-bar-group.css.cjs.js +1 -1
  152. package/dist/nile-side-bar-group/nile-side-bar-group.css.cjs.js.map +1 -1
  153. package/dist/nile-side-bar-group/nile-side-bar-group.css.esm.js +52 -9
  154. package/dist/nile-side-bar-group/nile-side-bar-group.esm.js +4 -4
  155. package/dist/nile-side-bar-group-item/nile-side-bar-group-item.css.cjs.js +1 -1
  156. package/dist/nile-side-bar-group-item/nile-side-bar-group-item.css.cjs.js.map +1 -1
  157. package/dist/nile-side-bar-group-item/nile-side-bar-group-item.css.esm.js +53 -8
  158. package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.cjs.js +1 -1
  159. package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.cjs.js.map +1 -1
  160. package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.cjs.js +1 -1
  161. package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.cjs.js.map +1 -1
  162. package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.esm.js +13 -4
  163. package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.esm.js +4 -4
  164. package/dist/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.cjs.js +1 -1
  165. package/dist/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.cjs.js.map +1 -1
  166. package/dist/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.esm.js +9 -6
  167. package/dist/nile-side-bar-header/nile-side-bar-header.cjs.js.map +1 -1
  168. package/dist/nile-side-bar-header/nile-side-bar-header.css.cjs.js +1 -1
  169. package/dist/nile-side-bar-header/nile-side-bar-header.css.cjs.js.map +1 -1
  170. package/dist/nile-side-bar-header/nile-side-bar-header.css.esm.js +13 -6
  171. package/dist/nile-side-bar-header-switcher/index.cjs.js +2 -0
  172. package/dist/nile-side-bar-header-switcher/index.cjs.js.map +1 -0
  173. package/dist/nile-side-bar-header-switcher/index.esm.js +1 -0
  174. package/dist/nile-side-bar-header-switcher/nile-side-bar-header-switcher.cjs.js +2 -0
  175. package/dist/nile-side-bar-header-switcher/nile-side-bar-header-switcher.cjs.js.map +1 -0
  176. package/dist/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.cjs.js +2 -0
  177. package/dist/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.cjs.js.map +1 -0
  178. package/dist/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.esm.js +83 -0
  179. package/dist/nile-side-bar-header-switcher/nile-side-bar-header-switcher.esm.js +24 -0
  180. package/dist/nile-side-bar-search/index.cjs.js +2 -0
  181. package/dist/nile-side-bar-search/index.cjs.js.map +1 -0
  182. package/dist/nile-side-bar-search/index.esm.js +1 -0
  183. package/dist/nile-side-bar-search/nile-side-bar-search.cjs.js +2 -0
  184. package/dist/nile-side-bar-search/nile-side-bar-search.cjs.js.map +1 -0
  185. package/dist/nile-side-bar-search/nile-side-bar-search.css.cjs.js +2 -0
  186. package/dist/nile-side-bar-search/nile-side-bar-search.css.cjs.js.map +1 -0
  187. package/dist/nile-side-bar-search/nile-side-bar-search.css.esm.js +103 -0
  188. package/dist/nile-side-bar-search/nile-side-bar-search.esm.js +25 -0
  189. package/dist/nile-slide-toggle/nile-slide-toggle.css.cjs.js +1 -1
  190. package/dist/nile-slide-toggle/nile-slide-toggle.css.cjs.js.map +1 -1
  191. package/dist/nile-slide-toggle/nile-slide-toggle.css.esm.js +1 -1
  192. package/dist/nile-tooltip/nile-tooltip.css.cjs.js +1 -1
  193. package/dist/nile-tooltip/nile-tooltip.css.cjs.js.map +1 -1
  194. package/dist/nile-tooltip/nile-tooltip.css.esm.js +7 -5
  195. package/dist/nile-virtual-select/nile-virtual-select.css.cjs.js +1 -1
  196. package/dist/nile-virtual-select/nile-virtual-select.css.cjs.js.map +1 -1
  197. package/dist/nile-virtual-select/nile-virtual-select.css.esm.js +1 -1
  198. package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.cjs.js +1 -1
  199. package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.cjs.js.map +1 -1
  200. package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.css.cjs.js +1 -1
  201. package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.css.cjs.js.map +1 -1
  202. package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.css.esm.js +51 -2
  203. package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.esm.js +1 -1
  204. package/dist/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.cjs.js +1 -1
  205. package/dist/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.cjs.js.map +1 -1
  206. package/dist/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.esm.js +3 -3
  207. package/dist/src/index.d.ts +6 -0
  208. package/dist/src/index.js +6 -0
  209. package/dist/src/index.js.map +1 -1
  210. package/dist/src/nile-app-shell/nile-app-shell.css.js +70 -63
  211. package/dist/src/nile-app-shell/nile-app-shell.css.js.map +1 -1
  212. package/dist/src/nile-app-shell/nile-app-shell.d.ts +40 -7
  213. package/dist/src/nile-app-shell/nile-app-shell.js +192 -41
  214. package/dist/src/nile-app-shell/nile-app-shell.js.map +1 -1
  215. package/dist/src/nile-app-shell/nile-app-shell.test.d.ts +2 -0
  216. package/dist/src/nile-app-shell/nile-app-shell.test.js +272 -1020
  217. package/dist/src/nile-app-shell/nile-app-shell.test.js.map +1 -1
  218. package/dist/src/nile-app-shell/zz-layout.test.d.ts +15 -0
  219. package/dist/src/nile-app-shell/zz-layout.test.js +253 -0
  220. package/dist/src/nile-app-shell/zz-layout.test.js.map +1 -0
  221. package/dist/src/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.js +1 -1
  222. package/dist/src/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.js.map +1 -1
  223. package/dist/src/nile-app-shell-side-nav/nile-app-shell-side-nav.css.js +24 -6
  224. package/dist/src/nile-app-shell-side-nav/nile-app-shell-side-nav.css.js.map +1 -1
  225. package/dist/src/nile-app-shell-side-nav/nile-app-shell-side-nav.d.ts +8 -2
  226. package/dist/src/nile-app-shell-side-nav/nile-app-shell-side-nav.js +56 -2
  227. package/dist/src/nile-app-shell-side-nav/nile-app-shell-side-nav.js.map +1 -1
  228. package/dist/src/nile-button-filter/nile-button-filter.css.js +1 -1
  229. package/dist/src/nile-button-filter/nile-button-filter.css.js.map +1 -1
  230. package/dist/src/nile-button-filter/nile-button-filter.js +1 -3
  231. package/dist/src/nile-button-filter/nile-button-filter.js.map +1 -1
  232. package/dist/src/nile-calendar/nile-calendar.css.js +9 -8
  233. package/dist/src/nile-calendar/nile-calendar.css.js.map +1 -1
  234. package/dist/src/nile-color-picker/nile-color-picker.css.js +3 -3
  235. package/dist/src/nile-color-picker/nile-color-picker.css.js.map +1 -1
  236. package/dist/src/nile-combobox/nile-combobox.css.js +1 -1
  237. package/dist/src/nile-combobox/nile-combobox.css.js.map +1 -1
  238. package/dist/src/nile-command-menu-item/nile-command-menu-item.css.js +5 -1
  239. package/dist/src/nile-command-menu-item/nile-command-menu-item.css.js.map +1 -1
  240. package/dist/src/nile-context-menu/nile-context-menu.css.js +2 -4
  241. package/dist/src/nile-context-menu/nile-context-menu.css.js.map +1 -1
  242. package/dist/src/nile-dropdown-switcher/index.d.ts +1 -0
  243. package/dist/src/nile-dropdown-switcher/index.js +2 -0
  244. package/dist/src/nile-dropdown-switcher/index.js.map +1 -0
  245. package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.css.d.ts +10 -0
  246. package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.css.js +49 -0
  247. package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.css.js.map +1 -0
  248. package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.d.ts +101 -0
  249. package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.js +463 -0
  250. package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.js.map +1 -0
  251. package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.test.d.ts +4 -0
  252. package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.test.js +506 -0
  253. package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.test.js.map +1 -0
  254. package/dist/src/nile-dropdown-switcher-group/index.d.ts +1 -0
  255. package/dist/src/nile-dropdown-switcher-group/index.js +2 -0
  256. package/dist/src/nile-dropdown-switcher-group/index.js.map +1 -0
  257. package/dist/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.css.d.ts +12 -0
  258. package/dist/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.css.js +49 -0
  259. package/dist/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.css.js.map +1 -0
  260. package/dist/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.d.ts +37 -0
  261. package/dist/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.js +72 -0
  262. package/dist/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.js.map +1 -0
  263. package/dist/src/nile-dropdown-switcher-header/index.d.ts +1 -0
  264. package/dist/src/nile-dropdown-switcher-header/index.js +2 -0
  265. package/dist/src/nile-dropdown-switcher-header/index.js.map +1 -0
  266. package/dist/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.css.d.ts +12 -0
  267. package/dist/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.css.js +103 -0
  268. package/dist/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.css.js.map +1 -0
  269. package/dist/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.d.ts +46 -0
  270. package/dist/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.js +105 -0
  271. package/dist/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.js.map +1 -0
  272. package/dist/src/nile-dropdown-switcher-item/index.d.ts +1 -0
  273. package/dist/src/nile-dropdown-switcher-item/index.js +2 -0
  274. package/dist/src/nile-dropdown-switcher-item/index.js.map +1 -0
  275. package/dist/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.css.d.ts +10 -0
  276. package/dist/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.css.js +112 -0
  277. package/dist/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.css.js.map +1 -0
  278. package/dist/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.d.ts +55 -0
  279. package/dist/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.js +154 -0
  280. package/dist/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.js.map +1 -0
  281. package/dist/src/nile-filter-chip/nile-filter-chip.css.js +2 -2
  282. package/dist/src/nile-filter-chip/nile-filter-chip.css.js.map +1 -1
  283. package/dist/src/nile-form-group/nile-form-group.css.js +1 -1
  284. package/dist/src/nile-form-group/nile-form-group.css.js.map +1 -1
  285. package/dist/src/nile-inline-sidebar-item/nile-inline-sidebar-item.css.js +20 -4
  286. package/dist/src/nile-inline-sidebar-item/nile-inline-sidebar-item.css.js.map +1 -1
  287. package/dist/src/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.js +1 -1
  288. package/dist/src/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.js.map +1 -1
  289. package/dist/src/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.js +3 -3
  290. package/dist/src/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.js.map +1 -1
  291. package/dist/src/nile-markdown-editor/nile-markdown-editor.css.js +4 -4
  292. package/dist/src/nile-markdown-editor/nile-markdown-editor.css.js.map +1 -1
  293. package/dist/src/nile-menu/nile-menu.css.js +1 -2
  294. package/dist/src/nile-menu/nile-menu.css.js.map +1 -1
  295. package/dist/src/nile-menu-item/nile-menu-item.css.js +4 -4
  296. package/dist/src/nile-menu-item/nile-menu-item.css.js.map +1 -1
  297. package/dist/src/nile-nav-tab/nile-nav-tab.css.js +3 -3
  298. package/dist/src/nile-nav-tab/nile-nav-tab.css.js.map +1 -1
  299. package/dist/src/nile-nav-tab-group/nile-nav-tab-group.css.js +15 -12
  300. package/dist/src/nile-nav-tab-group/nile-nav-tab-group.css.js.map +1 -1
  301. package/dist/src/nile-nav-tab-group/nile-nav-tab-group.test.js +111 -0
  302. package/dist/src/nile-nav-tab-group/nile-nav-tab-group.test.js.map +1 -1
  303. package/dist/src/nile-option/nile-option.css.js +2 -2
  304. package/dist/src/nile-option/nile-option.css.js.map +1 -1
  305. package/dist/src/nile-pagination/nile-pagination.css.js +10 -0
  306. package/dist/src/nile-pagination/nile-pagination.css.js.map +1 -1
  307. package/dist/src/nile-pagination/nile-pagination.d.ts +2 -0
  308. package/dist/src/nile-pagination/nile-pagination.js +13 -9
  309. package/dist/src/nile-pagination/nile-pagination.js.map +1 -1
  310. package/dist/src/nile-side-bar/nile-side-bar.css.js +14 -12
  311. package/dist/src/nile-side-bar/nile-side-bar.css.js.map +1 -1
  312. package/dist/src/nile-side-bar/nile-side-bar.d.ts +17 -0
  313. package/dist/src/nile-side-bar/nile-side-bar.js +68 -12
  314. package/dist/src/nile-side-bar/nile-side-bar.js.map +1 -1
  315. package/dist/src/nile-side-bar/nile-side-bar.test.d.ts +23 -0
  316. package/dist/src/nile-side-bar/nile-side-bar.test.js +1614 -1
  317. package/dist/src/nile-side-bar/nile-side-bar.test.js.map +1 -1
  318. package/dist/src/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.css.js +11 -4
  319. package/dist/src/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.css.js.map +1 -1
  320. package/dist/src/nile-side-bar-footer/nile-side-bar-footer.css.js +8 -3
  321. package/dist/src/nile-side-bar-footer/nile-side-bar-footer.css.js.map +1 -1
  322. package/dist/src/nile-side-bar-footer/nile-side-bar-footer.d.ts +7 -5
  323. package/dist/src/nile-side-bar-footer/nile-side-bar-footer.js +7 -5
  324. package/dist/src/nile-side-bar-footer/nile-side-bar-footer.js.map +1 -1
  325. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.css.js +179 -23
  326. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.css.js.map +1 -1
  327. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.d.ts +15 -0
  328. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.js +82 -2
  329. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.js.map +1 -1
  330. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.test.d.ts +9 -0
  331. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.test.js +201 -0
  332. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.test.js.map +1 -0
  333. package/dist/src/nile-side-bar-footer-text/nile-side-bar-footer-text.css.js +8 -3
  334. package/dist/src/nile-side-bar-footer-text/nile-side-bar-footer-text.css.js.map +1 -1
  335. package/dist/src/nile-side-bar-group/nile-side-bar-group.css.js +50 -7
  336. package/dist/src/nile-side-bar-group/nile-side-bar-group.css.js.map +1 -1
  337. package/dist/src/nile-side-bar-group/nile-side-bar-group.d.ts +35 -0
  338. package/dist/src/nile-side-bar-group/nile-side-bar-group.js +90 -3
  339. package/dist/src/nile-side-bar-group/nile-side-bar-group.js.map +1 -1
  340. package/dist/src/nile-side-bar-group-item/nile-side-bar-group-item.css.js +52 -7
  341. package/dist/src/nile-side-bar-group-item/nile-side-bar-group-item.css.js.map +1 -1
  342. package/dist/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.js +11 -2
  343. package/dist/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.js.map +1 -1
  344. package/dist/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.d.ts +11 -2
  345. package/dist/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.js +21 -15
  346. package/dist/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.js.map +1 -1
  347. package/dist/src/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.js +7 -4
  348. package/dist/src/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.js.map +1 -1
  349. package/dist/src/nile-side-bar-header/nile-side-bar-app-shell.test.js +22 -17
  350. package/dist/src/nile-side-bar-header/nile-side-bar-app-shell.test.js.map +1 -1
  351. package/dist/src/nile-side-bar-header/nile-side-bar-header-surface.test.d.ts +4 -0
  352. package/dist/src/nile-side-bar-header/nile-side-bar-header-surface.test.js +143 -0
  353. package/dist/src/nile-side-bar-header/nile-side-bar-header-surface.test.js.map +1 -0
  354. package/dist/src/nile-side-bar-header/nile-side-bar-header.css.js +11 -4
  355. package/dist/src/nile-side-bar-header/nile-side-bar-header.css.js.map +1 -1
  356. package/dist/src/nile-side-bar-header/nile-side-bar-header.d.ts +7 -5
  357. package/dist/src/nile-side-bar-header/nile-side-bar-header.js +7 -5
  358. package/dist/src/nile-side-bar-header/nile-side-bar-header.js.map +1 -1
  359. package/dist/src/nile-side-bar-header-switcher/index.d.ts +1 -0
  360. package/dist/src/nile-side-bar-header-switcher/index.js +2 -0
  361. package/dist/src/nile-side-bar-header-switcher/index.js.map +1 -0
  362. package/dist/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.d.ts +14 -0
  363. package/dist/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.js +97 -0
  364. package/dist/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.js.map +1 -0
  365. package/dist/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.d.ts +38 -0
  366. package/dist/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.js +86 -0
  367. package/dist/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.js.map +1 -0
  368. package/dist/src/nile-side-bar-search/index.d.ts +1 -0
  369. package/dist/src/nile-side-bar-search/index.js +2 -0
  370. package/dist/src/nile-side-bar-search/index.js.map +1 -0
  371. package/dist/src/nile-side-bar-search/nile-side-bar-search.css.d.ts +15 -0
  372. package/dist/src/nile-side-bar-search/nile-side-bar-search.css.js +118 -0
  373. package/dist/src/nile-side-bar-search/nile-side-bar-search.css.js.map +1 -0
  374. package/dist/src/nile-side-bar-search/nile-side-bar-search.d.ts +56 -0
  375. package/dist/src/nile-side-bar-search/nile-side-bar-search.js +150 -0
  376. package/dist/src/nile-side-bar-search/nile-side-bar-search.js.map +1 -0
  377. package/dist/src/nile-side-bar-search/nile-side-bar-search.test.d.ts +3 -0
  378. package/dist/src/nile-side-bar-search/nile-side-bar-search.test.js +153 -0
  379. package/dist/src/nile-side-bar-search/nile-side-bar-search.test.js.map +1 -0
  380. package/dist/src/nile-slide-toggle/nile-slide-toggle.css.js +1 -1
  381. package/dist/src/nile-slide-toggle/nile-slide-toggle.css.js.map +1 -1
  382. package/dist/src/nile-tooltip/nile-tooltip.css.js +7 -5
  383. package/dist/src/nile-tooltip/nile-tooltip.css.js.map +1 -1
  384. package/dist/src/nile-virtual-select/nile-virtual-select.css.js +1 -1
  385. package/dist/src/nile-virtual-select/nile-virtual-select.css.js.map +1 -1
  386. package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.css.js +51 -2
  387. package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.css.js.map +1 -1
  388. package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.js +1 -1
  389. package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.js.map +1 -1
  390. package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.js +3 -3
  391. package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.js.map +1 -1
  392. package/dist/src/version.js +1 -1
  393. package/dist/src/version.js.map +1 -1
  394. package/dist/tsconfig.tsbuildinfo +1 -1
  395. package/dist/version.cjs.js +1 -1
  396. package/dist/version.cjs.js.map +1 -1
  397. package/dist/version.esm.js +1 -1
  398. package/docs/screenshots/wysiwyg-focus-state-focused.png +0 -0
  399. package/docs/screenshots/wysiwyg-focus-state-unfocused.png +0 -0
  400. package/package.json +1 -1
  401. package/src/index.ts +6 -0
  402. package/src/nile-app-shell/nile-app-shell.css.ts +70 -63
  403. package/src/nile-app-shell/nile-app-shell.test.ts +332 -1227
  404. package/src/nile-app-shell/nile-app-shell.ts +223 -44
  405. package/src/nile-app-shell/zz-layout.test.ts +271 -0
  406. package/src/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.ts +1 -5
  407. package/src/nile-app-shell-side-nav/nile-app-shell-side-nav.css.ts +24 -6
  408. package/src/nile-app-shell-side-nav/nile-app-shell-side-nav.ts +62 -2
  409. package/src/nile-button-filter/nile-button-filter.css.ts +1 -1
  410. package/src/nile-button-filter/nile-button-filter.ts +1 -3
  411. package/src/nile-calendar/nile-calendar.css.ts +9 -8
  412. package/src/nile-color-picker/nile-color-picker.css.ts +3 -3
  413. package/src/nile-combobox/nile-combobox.css.ts +1 -1
  414. package/src/nile-command-menu-item/nile-command-menu-item.css.ts +5 -1
  415. package/src/nile-context-menu/nile-context-menu.css.ts +2 -4
  416. package/src/nile-dropdown-switcher/index.ts +1 -0
  417. package/src/nile-dropdown-switcher/nile-dropdown-switcher.css.ts +51 -0
  418. package/src/nile-dropdown-switcher/nile-dropdown-switcher.test.ts +570 -0
  419. package/src/nile-dropdown-switcher/nile-dropdown-switcher.ts +502 -0
  420. package/src/nile-dropdown-switcher-group/index.ts +1 -0
  421. package/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.css.ts +51 -0
  422. package/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.ts +78 -0
  423. package/src/nile-dropdown-switcher-header/index.ts +1 -0
  424. package/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.css.ts +105 -0
  425. package/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.ts +105 -0
  426. package/src/nile-dropdown-switcher-item/index.ts +1 -0
  427. package/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.css.ts +114 -0
  428. package/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.ts +151 -0
  429. package/src/nile-filter-chip/nile-filter-chip.css.ts +2 -2
  430. package/src/nile-form-group/nile-form-group.css.ts +1 -1
  431. package/src/nile-inline-sidebar-item/nile-inline-sidebar-item.css.ts +20 -4
  432. package/src/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.ts +1 -1
  433. package/src/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.ts +3 -3
  434. package/src/nile-markdown-editor/nile-markdown-editor.css.ts +4 -4
  435. package/src/nile-menu/nile-menu.css.ts +1 -2
  436. package/src/nile-menu-item/nile-menu-item.css.ts +4 -4
  437. package/src/nile-nav-tab/nile-nav-tab.css.ts +3 -3
  438. package/src/nile-nav-tab-group/nile-nav-tab-group.css.ts +15 -12
  439. package/src/nile-nav-tab-group/nile-nav-tab-group.test.ts +130 -0
  440. package/src/nile-option/nile-option.css.ts +2 -2
  441. package/src/nile-pagination/nile-pagination.css.ts +10 -0
  442. package/src/nile-pagination/nile-pagination.ts +14 -9
  443. package/src/nile-side-bar/nile-side-bar.css.ts +14 -12
  444. package/src/nile-side-bar/nile-side-bar.test.ts +1854 -2
  445. package/src/nile-side-bar/nile-side-bar.ts +72 -15
  446. package/src/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.css.ts +11 -4
  447. package/src/nile-side-bar-footer/nile-side-bar-footer.css.ts +8 -3
  448. package/src/nile-side-bar-footer/nile-side-bar-footer.ts +7 -5
  449. package/src/nile-side-bar-footer-item/nile-side-bar-footer-item.css.ts +179 -23
  450. package/src/nile-side-bar-footer-item/nile-side-bar-footer-item.test.ts +219 -0
  451. package/src/nile-side-bar-footer-item/nile-side-bar-footer-item.ts +84 -2
  452. package/src/nile-side-bar-footer-text/nile-side-bar-footer-text.css.ts +8 -3
  453. package/src/nile-side-bar-group/nile-side-bar-group.css.ts +50 -7
  454. package/src/nile-side-bar-group/nile-side-bar-group.ts +100 -2
  455. package/src/nile-side-bar-group-item/nile-side-bar-group-item.css.ts +52 -7
  456. package/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.ts +11 -2
  457. package/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.ts +22 -19
  458. package/src/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.ts +7 -4
  459. package/src/nile-side-bar-header/nile-side-bar-app-shell.test.ts +22 -17
  460. package/src/nile-side-bar-header/nile-side-bar-header-surface.test.ts +175 -0
  461. package/src/nile-side-bar-header/nile-side-bar-header.css.ts +11 -4
  462. package/src/nile-side-bar-header/nile-side-bar-header.ts +7 -5
  463. package/src/nile-side-bar-header-switcher/index.ts +1 -0
  464. package/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.ts +99 -0
  465. package/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.ts +88 -0
  466. package/src/nile-side-bar-search/index.ts +1 -0
  467. package/src/nile-side-bar-search/nile-side-bar-search.css.ts +120 -0
  468. package/src/nile-side-bar-search/nile-side-bar-search.test.ts +175 -0
  469. package/src/nile-side-bar-search/nile-side-bar-search.ts +160 -0
  470. package/src/nile-slide-toggle/nile-slide-toggle.css.ts +1 -1
  471. package/src/nile-tooltip/nile-tooltip.css.ts +7 -5
  472. package/src/nile-virtual-select/nile-virtual-select.css.ts +1 -1
  473. package/src/nile-wysiwyg-editor/nile-wysiwyg-editor.css.ts +51 -2
  474. package/src/nile-wysiwyg-editor/nile-wysiwyg-editor.ts +1 -1
  475. package/src/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.ts +3 -3
  476. package/test-timings.json +0 -1
  477. package/vscode-html-custom-data.json +349 -22
@@ -1 +1 @@
1
- {"version":3,"file":"nile-side-bar-group-item.css.cjs.js","sources":["../../../src/nile-side-bar-group-item/nile-side-bar-group-item.css.ts"],"sourcesContent":["/**\n* Copyright Aquera Inc 2023\n*\n* This source code is licensed under the BSD-3-Clause license found in the\n* LICENSE file in the root directory of this source tree.\n*/\n\nimport {css} from 'lit';\n\n/**\n * SideBarGroupItem CSS\n */\nexport const styles = css`\n :host {\n display: block;\n }\n\n .group-item {\n display: flex;\n flex-direction: column;\n height: var(--nile-height-38px, var(--ng-spacing-40px));\n width: var(--nile-width-208px, var(--ng-spacing-264));\n overflow: hidden;\n }\n\n .item-link {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n height: 100%;\n width: 100%;\n padding-top: var(--nile-spacing-lg, var(--ng-spacing-md));\n padding-bottom: var(--nile-spacing-lg, var(--ng-spacing-md));\n padding-left: var(--nile-spacing-md, var(--ng-spacing-lg));\n padding-right: var(--nile-spacing-md, var(--ng-spacing-lg));\n cursor: pointer;\n color: var(--nile-colors-dark-900, var(--ng-colors-graylightmode-900));\n text-decoration: none;\n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-md));\n line-height: 1.4;\n box-sizing: border-box;\n font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-semibold));\n }\n\n .item-link:hover {\n background: var(--nile-colors-neutral-400, var(--ng-colors-bg-primary-hover));\n border-radius: var(--nile-radius-sm, var(--ng-radius-sm));\n }\n\n ::slotted(nile-side-bar-group-item-icon) {\n flex-shrink: 0;\n }\n\n ::slotted(nile-side-bar-group-item-text) {\n flex-grow: 1;\n }\n\n :host([active]) [part=\"link\"] {\n background: var(--nile-colors-primary-100, var(--ng-colors-bg-brand-primary));\n border-radius: var(--nile-radius-sm, var(--ng-radius-sm));\n }\n\n :host([collapsed]) .group-item {\n height: 38px;\n width: 38px;\n }\n\n :host([disabled]) .item-link {\n opacity: 0.5;\n pointer-events: none;\n cursor: not-allowed;\n }\n`;\n\nexport default [styles];\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAYaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
1
+ {"version":3,"file":"nile-side-bar-group-item.css.cjs.js","sources":["../../../src/nile-side-bar-group-item/nile-side-bar-group-item.css.ts"],"sourcesContent":["/**\n* Copyright Aquera Inc 2023\n*\n* This source code is licensed under the BSD-3-Clause license found in the\n* LICENSE file in the root directory of this source tree.\n*/\n\nimport {css} from 'lit';\n\n/**\n * SideBarGroupItem CSS\n */\nexport const styles = css`\n :host {\n display: block;\n }\n\n /* NxtGen: a 40px item with 2px block padding so the row inside is 36px; enterprise keeps 208 x 38. */\n .group-item {\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n height: var(--nile-height-38px, var(--ng-spacing-40px));\n width: 100%;\n padding-top: var(--nile-spacing-none, var(--ng-spacing-xxs));\n padding-bottom: var(--nile-spacing-none, var(--ng-spacing-xxs));\n overflow: hidden;\n }\n\n .item-link {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: flex-start;\n height: 100%;\n width: 100%;\n padding-top: var(--nile-spacing-lg, var(--ng-spacing-md));\n padding-bottom: var(--nile-spacing-lg, var(--ng-spacing-md));\n padding-left: var(--nile-spacing-md, var(--ng-spacing-lg));\n padding-right: var(--nile-spacing-md, var(--ng-spacing-lg));\n cursor: pointer;\n color: var(--nile-colors-dark-900, var(--ng-colors-graylightmode-900));\n text-decoration: none;\n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-md));\n line-height: 1.4;\n box-sizing: border-box;\n font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-semibold));\n /* The same 8px radius in every state (rest, hover, selected, focus ring), not only once hovered or selected. */\n border-radius: var(--nile-radius-sm, var(--ng-radius-md));\n }\n\n /* Default: text-secondary-700; the icon is fg-quaternary-400 (set on the nile-icon by nile-side-bar-group-item-icon). */\n ::slotted(nile-side-bar-group-item-text) {\n color: var(--nile-colors-dark-900, var(--ng-colors-text-secondary-700));\n }\n\n .item-link:hover {\n background: var(--nile-colors-neutral-400, var(--ng-colors-bg-secondary-subtle));\n border-radius: var(--nile-radius-sm, var(--ng-radius-md));\n }\n\n /* Hover: text-tertiary-hover label and fg-tertiary-hover icon. A selected item keeps its selected colours, so it is excluded from the icon rule. */\n .item-link:hover ::slotted(nile-side-bar-group-item-text) {\n color: var(--nile-colors-dark-800, var(--ng-colors-text-tertiary-hover));\n }\n\n :host(:not([active])) .item-link:hover ::slotted(nile-side-bar-group-item-icon) {\n color: var(--nile-colors-dark-900, var(--ng-colors-fg-tertiary-hover));\n }\n\n /* The icon is drawn in its own colour: fg-quaternary-400 by default, recoloured by the hover and selected rules above and below. */\n ::slotted(nile-side-bar-group-item-icon) {\n flex-shrink: 0;\n color: var(--nile-colors-dark-900, var(--ng-colors-fg-quaternary-400));\n }\n\n ::slotted(nile-side-bar-group-item-text) {\n flex-grow: 1;\n }\n\n /* Every selected item shows the same background/text/icon regardless of hover/focus state. */\n :host([active]) [part=\"link\"] {\n background: var(--nile-colors-primary-100, var(--ng-colors-bg-primary));\n border-radius: var(--nile-radius-sm, var(--ng-radius-md));\n }\n\n :host([active]) ::slotted(nile-side-bar-group-item-text) {\n color: var(--nile-colors-dark-900, var(--ng-colors-text-brand-secondary-700));\n }\n\n :host([active]) ::slotted(nile-side-bar-group-item-icon) {\n color: var(--ng-colors-fg-brand-primary-600);\n }\n\n /* Focus-visible adds only the ring, independent of selection -- a safe no-op on enterprise. */\n .item-link:focus-visible {\n outline: none;\n box-shadow: inset 0 0 0 var(--ng-border-width-2) var(--ng-colors-effects-focus-ring);\n }\n\n /* Collapsed: 40 x 40 (38 x 38 on enterprise), clipped. */\n :host([collapsed]) .group-item {\n height: var(--nile-height-38px, var(--ng-spacing-40px));\n width: var(--nile-width-38px, var(--ng-spacing-40px));\n }\n\n /* Collapsed NxtGen: the 12px side padding left the icon 2px right of the 40px item's centre (x=38 in a 72px rail). Zero it: the icon box then spans the item and centres its glyph at x=36, with the clipped label starting after it. Enterprise keeps its own padding. */\n :host([collapsed]) .item-link {\n padding-left: var(--nile-spacing-md, var(--ng-spacing-none));\n padding-right: var(--nile-spacing-md, var(--ng-spacing-none));\n }\n\n :host([disabled]) .item-link {\n opacity: 0.5;\n pointer-events: none;\n cursor: not-allowed;\n }\n`;\n\nexport default [styles];\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAYaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
@@ -1,17 +1,22 @@
1
- import{css as i}from"lit";const r=i`
1
+ import{css as e}from"lit";const r=e`
2
2
  :host {
3
3
  display: block;
4
4
  }
5
5
 
6
+ /* NxtGen: a 40px item with 2px block padding so the row inside is 36px; enterprise keeps 208 x 38. */
6
7
  .group-item {
7
8
  display: flex;
8
9
  flex-direction: column;
10
+ box-sizing: border-box;
9
11
  height: var(--nile-height-38px, var(--ng-spacing-40px));
10
- width: var(--nile-width-208px, var(--ng-spacing-264));
12
+ width: 100%;
13
+ padding-top: var(--nile-spacing-none, var(--ng-spacing-xxs));
14
+ padding-bottom: var(--nile-spacing-none, var(--ng-spacing-xxs));
11
15
  overflow: hidden;
12
16
  }
13
17
 
14
18
  .item-link {
19
+ position: relative;
15
20
  display: flex;
16
21
  align-items: center;
17
22
  justify-content: flex-start;
@@ -28,29 +33,69 @@ import{css as i}from"lit";const r=i`
28
33
  line-height: 1.4;
29
34
  box-sizing: border-box;
30
35
  font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-semibold));
36
+ /* The same 8px radius in every state (rest, hover, selected, focus ring), not only once hovered or selected. */
37
+ border-radius: var(--nile-radius-sm, var(--ng-radius-md));
38
+ }
39
+
40
+ /* Default: text-secondary-700; the icon is fg-quaternary-400 (set on the nile-icon by nile-side-bar-group-item-icon). */
41
+ ::slotted(nile-side-bar-group-item-text) {
42
+ color: var(--nile-colors-dark-900, var(--ng-colors-text-secondary-700));
31
43
  }
32
44
 
33
45
  .item-link:hover {
34
- background: var(--nile-colors-neutral-400, var(--ng-colors-bg-primary-hover));
35
- border-radius: var(--nile-radius-sm, var(--ng-radius-sm));
46
+ background: var(--nile-colors-neutral-400, var(--ng-colors-bg-secondary-subtle));
47
+ border-radius: var(--nile-radius-sm, var(--ng-radius-md));
48
+ }
49
+
50
+ /* Hover: text-tertiary-hover label and fg-tertiary-hover icon. A selected item keeps its selected colours, so it is excluded from the icon rule. */
51
+ .item-link:hover ::slotted(nile-side-bar-group-item-text) {
52
+ color: var(--nile-colors-dark-800, var(--ng-colors-text-tertiary-hover));
53
+ }
54
+
55
+ :host(:not([active])) .item-link:hover ::slotted(nile-side-bar-group-item-icon) {
56
+ color: var(--nile-colors-dark-900, var(--ng-colors-fg-tertiary-hover));
36
57
  }
37
58
 
59
+ /* The icon is drawn in its own colour: fg-quaternary-400 by default, recoloured by the hover and selected rules above and below. */
38
60
  ::slotted(nile-side-bar-group-item-icon) {
39
61
  flex-shrink: 0;
62
+ color: var(--nile-colors-dark-900, var(--ng-colors-fg-quaternary-400));
40
63
  }
41
64
 
42
65
  ::slotted(nile-side-bar-group-item-text) {
43
66
  flex-grow: 1;
44
67
  }
45
68
 
69
+ /* Every selected item shows the same background/text/icon regardless of hover/focus state. */
46
70
  :host([active]) [part="link"] {
47
- background: var(--nile-colors-primary-100, var(--ng-colors-bg-brand-primary));
48
- border-radius: var(--nile-radius-sm, var(--ng-radius-sm));
71
+ background: var(--nile-colors-primary-100, var(--ng-colors-bg-primary));
72
+ border-radius: var(--nile-radius-sm, var(--ng-radius-md));
49
73
  }
50
74
 
75
+ :host([active]) ::slotted(nile-side-bar-group-item-text) {
76
+ color: var(--nile-colors-dark-900, var(--ng-colors-text-brand-secondary-700));
77
+ }
78
+
79
+ :host([active]) ::slotted(nile-side-bar-group-item-icon) {
80
+ color: var(--ng-colors-fg-brand-primary-600);
81
+ }
82
+
83
+ /* Focus-visible adds only the ring, independent of selection -- a safe no-op on enterprise. */
84
+ .item-link:focus-visible {
85
+ outline: none;
86
+ box-shadow: inset 0 0 0 var(--ng-border-width-2) var(--ng-colors-effects-focus-ring);
87
+ }
88
+
89
+ /* Collapsed: 40 x 40 (38 x 38 on enterprise), clipped. */
51
90
  :host([collapsed]) .group-item {
52
- height: 38px;
53
- width: 38px;
91
+ height: var(--nile-height-38px, var(--ng-spacing-40px));
92
+ width: var(--nile-width-38px, var(--ng-spacing-40px));
93
+ }
94
+
95
+ /* Collapsed NxtGen: the 12px side padding left the icon 2px right of the 40px item's centre (x=38 in a 72px rail). Zero it: the icon box then spans the item and centres its glyph at x=36, with the clipped label starting after it. Enterprise keeps its own padding. */
96
+ :host([collapsed]) .item-link {
97
+ padding-left: var(--nile-spacing-md, var(--ng-spacing-none));
98
+ padding-right: var(--nile-spacing-md, var(--ng-spacing-none));
54
99
  }
55
100
 
56
101
  :host([disabled]) .item-link {
@@ -1,2 +1,2 @@
1
- function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","./nile-side-bar-group-item-icon.css.cjs.js","../internal/nile-element.cjs.js","../internal/accessibility/a11y.state.enum.cjs.js","../internal/accessibility/a11y.property.enum.cjs.js","../internal/accessibility/role.enum.cjs.js"],function(_export,_context){"use strict";var t,i,e,s,o,r,_templateObject,_templateObject2,_templateObject3,_templateObject4,n;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_lit){i=_lit.html;},function(_litDecoratorsJs){e=_litDecoratorsJs.property;s=_litDecoratorsJs.customElement;},function(_nileSideBarGroupItemIconCssCjsJs){o=_nileSideBarGroupItemIconCssCjsJs.s;},function(_internalNileElementCjsJs){r=_internalNileElementCjsJs.N;},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){}],execute:function execute(){_export("N",n=/*#__PURE__*/function(_r){function n(){var _this;_classCallCheck(this,n);_this=_callSuper(this,n,arguments),_this.icon="",_this.tooltip="",_this.method="fill",_this.size="14",_this.enableVisibilityEffect=!1,_this.duration=200,_this.sidebar=null;return _this;}_inherits(n,_r);return _createClass(n,[{key:"connectedCallback",value:function connectedCallback(){var _this2=this;if(this.hasAttribute("slot")||this.setAttribute("slot","icon"),_superPropGet(n,"connectedCallback",this,3)([]),this.sidebar=this.closest("nile-side-bar"),this.sidebar){var _t=new MutationObserver(function(){return _this2.requestUpdate();});_t.observe(this.sidebar,{attributes:!0,attributeFilter:["collapsed"]}),this._observer=_t;}}},{key:"disconnectedCallback",value:function disconnectedCallback(){var _this$_observer;_superPropGet(n,"disconnectedCallback",this,3)([]),(_this$_observer=this._observer)===null||_this$_observer===void 0?void 0:_this$_observer.disconnect();}},{key:"getSiblingText",value:function getSiblingText(){var _i$textContent$trim,_i$textContent;var t=this.parentElement,i=t===null||t===void 0?void 0:t.querySelector("nile-side-bar-group-item-text");return(_i$textContent$trim=i===null||i===void 0||(_i$textContent=i.textContent)===null||_i$textContent===void 0?void 0:_i$textContent.trim())!==null&&_i$textContent$trim!==void 0?_i$textContent$trim:"";}},{key:"render",value:function render(){var _this$sidebar;var t=!!((_this$sidebar=this.sidebar)!==null&&_this$sidebar!==void 0&&_this$sidebar.collapsed),e=this.tooltip||this.getSiblingText();return t&&e?i(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\n <slot>\n <nile-lite-tooltip hoist distance=\"18\" content="," placement=\"right\" enableVisibilityEffect="," duration=",">\n ","\n </nile-lite-tooltip>\n </slot>\n\n "])),e,this.enableVisibilityEffect,this.duration,this.icon?i(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-icon size="," color=\"var(--nile-colors-dark-900,var(--ng-colors-fg-quaternary-400))\" name="," method=","></nile-icon>"])),this.size,this.icon,this.method):null):i(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n <slot>\n ","\n </slot>\n "])),this.icon?i(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-icon size="," color=\"var(--nile-colors-dark-900,var(--ng-colors-fg-quaternary-400))\" size=\"14\" name="," method=","></nile-icon>"])),this.size,this.icon,this.method):null);}}],[{key:"styles",get:function get(){return[o];}}]);}(r));t([e({type:String,reflect:!0})],n.prototype,"icon",void 0),t([e({type:String})],n.prototype,"tooltip",void 0),t([e({type:String})],n.prototype,"method",void 0),t([e({type:String})],n.prototype,"size",void 0),t([e({type:Boolean,attribute:!0,reflect:!0})],n.prototype,"enableVisibilityEffect",void 0),t([e({type:Number,attribute:!0,reflect:!0})],n.prototype,"duration",void 0),_export("N",n=t([s("nile-side-bar-group-item-icon")],n));}};});
1
+ function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","./nile-side-bar-group-item-icon.css.cjs.js","../internal/nile-element.cjs.js","../internal/accessibility/a11y.state.enum.cjs.js","../internal/accessibility/a11y.property.enum.cjs.js","../internal/accessibility/role.enum.cjs.js"],function(_export,_context){"use strict";var t,i,e,s,o,r,_templateObject,_templateObject2,_templateObject3,_templateObject4,l;function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r);}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_lit){i=_lit.html;},function(_litDecoratorsJs){e=_litDecoratorsJs.property;s=_litDecoratorsJs.customElement;},function(_nileSideBarGroupItemIconCssCjsJs){o=_nileSideBarGroupItemIconCssCjsJs.s;},function(_internalNileElementCjsJs){r=_internalNileElementCjsJs.N;},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){}],execute:function execute(){_export("N",l=/*#__PURE__*/function(_r){function l(){var _this;_classCallCheck(this,l);_this=_callSuper(this,l,arguments),_this.icon="",_this.tooltip="",_this.method="fill",_this.size="var(--nile-icon-size-14, var(--ng-height-20px))",_this.enableVisibilityEffect=!1,_this.duration=200;return _this;}_inherits(l,_r);return _createClass(l,[{key:"attributeChangedCallback",value:function attributeChangedCallback(t,i,e){_superPropGet(l,"attributeChangedCallback",this,3)([t,i,e]),"collapsed"===t&&this.requestUpdate();}},{key:"connectedCallback",value:function connectedCallback(){this.hasAttribute("slot")||this.setAttribute("slot","icon"),_superPropGet(l,"connectedCallback",this,3)([]);}},{key:"getSiblingText",value:function getSiblingText(){var _i$textContent$trim,_i$textContent;var t=this.parentElement,i=t===null||t===void 0?void 0:t.querySelector("nile-side-bar-group-item-text");return(_i$textContent$trim=i===null||i===void 0||(_i$textContent=i.textContent)===null||_i$textContent===void 0?void 0:_i$textContent.trim())!==null&&_i$textContent$trim!==void 0?_i$textContent$trim:"";}},{key:"render",value:function render(){var t=this.hasAttribute("collapsed"),e=this.tooltip||this.getSiblingText();return t&&e?i(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\n <slot>\n <nile-lite-tooltip hoist distance=\"18\" content="," placement=\"right\" enableVisibilityEffect="," duration=",">\n ","\n </nile-lite-tooltip>\n </slot>\n\n "])),e,this.enableVisibilityEffect,this.duration,this.icon?i(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-icon size="," color=\"currentColor\" name="," method=","></nile-icon>"])),this.size,this.icon,this.method):null):i(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n <slot>\n ","\n </slot>\n "])),this.icon?i(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-icon size="," color=\"currentColor\" name="," method=","></nile-icon>"])),this.size,this.icon,this.method):null);}}],[{key:"styles",get:function get(){return[o];}},{key:"observedAttributes",get:function get(){return[].concat(_toConsumableArray(_superPropGet(l,"observedAttributes",this)),["collapsed"]);}}]);}(r));t([e({type:String,reflect:!0})],l.prototype,"icon",void 0),t([e({type:String})],l.prototype,"tooltip",void 0),t([e({type:String})],l.prototype,"method",void 0),t([e({type:String})],l.prototype,"size",void 0),t([e({type:Boolean,attribute:!0,reflect:!0})],l.prototype,"enableVisibilityEffect",void 0),t([e({type:Number,attribute:!0,reflect:!0})],l.prototype,"duration",void 0),_export("N",l=t([s("nile-side-bar-group-item-icon")],l));}};});
2
2
  //# sourceMappingURL=nile-side-bar-group-item-icon.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nile-side-bar-group-item-icon.cjs.js","sources":["../../../src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html, CSSResultArray, TemplateResult } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-side-bar-group-item-icon.css';\nimport NileElement from '../internal/nile-element';\nimport type { NileSideBar } from '../nile-side-bar/nile-side-bar';\n\n/**\n * Nile side-bar-group-item-icon component.\n *\n * @tag nile-side-bar-group-item-icon\n *\n * @attr icon - The name of the icon to render inside <nile-icon>\n * @attr tooltip - Tooltip text shown when sidebar is collapsed\n *\n * @slot - Optional slot to override the icon completely\n */\n@customElement('nile-side-bar-group-item-icon')\nexport class NileSideBarGroupItemIcon extends NileElement {\n /**\n * Name of the icon (passed to <nile-icon name=\"\">)\n */\n @property({ type: String, reflect: true })\n icon: string = '';\n\n /**\n * Tooltip text (auto-synced from sibling text if available)\n */\n @property({ type: String })\n tooltip: string = '';\n\n @property({ type: String })\n method: string = 'fill';\n\n @property({ type: String })\n size: string = '14';\n\n @property ({type: Boolean, attribute: true, reflect: true}) enableVisibilityEffect: boolean = false;\n\n @property ({type: Number, attribute: true, reflect: true}) duration: number = 200;\n\n private sidebar: NileSideBar | null = null;\n\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n connectedCallback(): void {\n\tif (!this.hasAttribute('slot')) {\n\t\tthis.setAttribute('slot', 'icon');\n\t }\n\t \n super.connectedCallback();\n this.sidebar = this.closest('nile-side-bar') as NileSideBar | null;\n if (this.sidebar) {\n const observer = new MutationObserver(() => this.requestUpdate());\n observer.observe(this.sidebar, { attributes: true, attributeFilter: ['collapsed'] });\n (this as any)._observer = observer;\n }\n }\n\n disconnectedCallback(): void {\n super.disconnectedCallback();\n (this as any)._observer?.disconnect();\n }\n\n private getSiblingText(): string {\n const parent = this.parentElement;\n const textEl = parent?.querySelector('nile-side-bar-group-item-text');\n return textEl?.textContent?.trim() ?? '';\n }\n\n public render(): TemplateResult {\n const isCollapsed = !!this.sidebar?.collapsed;\n const text = this.tooltip || this.getSiblingText();\n\n if (isCollapsed && text) {\n return html`\n\n <slot>\n <nile-lite-tooltip hoist distance=\"18\" content=${text} placement=\"right\" enableVisibilityEffect=${this.enableVisibilityEffect} duration=${this.duration}>\n ${this.icon ? html`<nile-icon size=${this.size} color=\"var(--nile-colors-dark-900,var(--ng-colors-fg-quaternary-400))\" name=${this.icon} method=${this.method}></nile-icon>` : null}\n </nile-lite-tooltip>\n </slot>\n\n `;\n }\n\n return html`\n <slot>\n ${this.icon ? html`<nile-icon size=${this.size} color=\"var(--nile-colors-dark-900,var(--ng-colors-fg-quaternary-400))\" size=\"14\" name=${this.icon} method=${this.method}></nile-icon>` : null}\n </slot>\n `;\n }\n}\n\nexport default NileSideBarGroupItemIcon;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-side-bar-group-item-icon': NileSideBarGroupItemIcon;\n }\n}\n"],"names":["NileSideBarGroupItemIcon","_r","n","this","icon","tooltip","method","size","enableVisibilityEffect","duration","sidebar","_this","_inherits","_createClass","key","value","connectedCallback","_this2","hasAttribute","setAttribute","super","closest","observer","MutationObserver","requestUpdate","observe","attributes","attributeFilter","_observer","disconnectedCallback","disconnect","getSiblingText","_i$textContent$trim","_i$textContent","parent","parentElement","textEl","querySelector","textContent","trim","render","isCollapsed","collapsed","text","html","_templateObject","_taggedTemplateLiteral","_templateObject2","_templateObject3","_templateObject4","get","styles","NileElement","__decorate","property","type","String","reflect","prototype","Boolean","attribute","Number","customElement"],"mappings":"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"}
1
+ {"version":3,"file":"nile-side-bar-group-item-icon.cjs.js","sources":["../../../src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html, CSSResultArray, TemplateResult } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-side-bar-group-item-icon.css';\nimport NileElement from '../internal/nile-element';\n\n/**\n * Nile side-bar-group-item-icon component.\n *\n * @tag nile-side-bar-group-item-icon\n *\n * @attr icon - The name of the icon to render inside <nile-icon>\n * @attr tooltip - Tooltip text shown when sidebar is collapsed\n *\n * @slot - Optional slot to override the icon completely\n *\n * The icon is drawn in the host's `color`, which nile-side-bar-group-item sets: fg-quaternary-400 by\n * default, fg-tertiary-hover on hover and text-brand-secondary-700 when selected.\n */\n@customElement('nile-side-bar-group-item-icon')\nexport class NileSideBarGroupItemIcon extends NileElement {\n /**\n * Name of the icon (passed to <nile-icon name=\"\">)\n */\n @property({ type: String, reflect: true })\n icon: string = '';\n\n /**\n * Tooltip text (auto-synced from sibling text if available)\n */\n @property({ type: String })\n tooltip: string = '';\n\n @property({ type: String })\n method: string = 'fill';\n\n /** Icon size: 14px on the enterprise sheet, 20px on NxtGen (the App Shell audit's menu icon), resolved by nile-icon from the theme tokens. */\n @property({ type: String })\n size: string = 'var(--nile-icon-size-14, var(--ng-height-20px))';\n\n @property ({type: Boolean, attribute: true, reflect: true}) enableVisibilityEffect: boolean = false;\n\n @property ({type: Number, attribute: true, reflect: true}) duration: number = 200;\n\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n /**\n * The container (nile-side-bar or nile-app-shell-side-nav) sets `[collapsed]` on this element, so\n * the tooltip follows that attribute rather than finding a parent sidebar. It has to re-render\n * when the attribute changes, and it is not a reactive property.\n */\n static get observedAttributes(): string[] {\n return [...super.observedAttributes, 'collapsed'];\n }\n\n attributeChangedCallback(name: string, old: string | null, value: string | null): void {\n super.attributeChangedCallback(name, old, value);\n if (name === 'collapsed') this.requestUpdate();\n }\n\n connectedCallback(): void {\n\tif (!this.hasAttribute('slot')) {\n\t\tthis.setAttribute('slot', 'icon');\n\t }\n super.connectedCallback();\n }\n\n private getSiblingText(): string {\n const parent = this.parentElement;\n const textEl = parent?.querySelector('nile-side-bar-group-item-text');\n return textEl?.textContent?.trim() ?? '';\n }\n\n public render(): TemplateResult {\n const isCollapsed = this.hasAttribute('collapsed');\n const text = this.tooltip || this.getSiblingText();\n\n if (isCollapsed && text) {\n return html`\n\n <slot>\n <nile-lite-tooltip hoist distance=\"18\" content=${text} placement=\"right\" enableVisibilityEffect=${this.enableVisibilityEffect} duration=${this.duration}>\n ${this.icon ? html`<nile-icon size=${this.size} color=\"currentColor\" name=${this.icon} method=${this.method}></nile-icon>` : null}\n </nile-lite-tooltip>\n </slot>\n\n `;\n }\n\n return html`\n <slot>\n ${this.icon ? html`<nile-icon size=${this.size} color=\"currentColor\" name=${this.icon} method=${this.method}></nile-icon>` : null}\n </slot>\n `;\n }\n}\n\nexport default NileSideBarGroupItemIcon;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-side-bar-group-item-icon': NileSideBarGroupItemIcon;\n }\n}\n"],"names":["NileSideBarGroupItemIcon","l","constructor","this","icon","tooltip","method","size","enableVisibilityEffect","duration","_this","_inherits","_r","_createClass","key","value","attributeChangedCallback","name","old","super","requestUpdate","connectedCallback","hasAttribute","setAttribute","getSiblingText","parent","parentElement","textEl","querySelector","_i$textContent$trim","textContent","trim","render","isCollapsed","text","html","_templateObject","_taggedTemplateLiteral","_templateObject2","_templateObject3","_templateObject4","get","styles","observedAttributes","concat","_toConsumableArray","_superPropGet","NileElement","__decorate","property","type","String","reflect","prototype","Boolean","attribute","Number","customElement"],"mappings":"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"}
@@ -1,2 +1,2 @@
1
- System.register(["lit"],function(_export,_context){"use strict";var i,_templateObject,n;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){i=_lit.css;}],execute:function execute(){_export("s",n=i(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n margin-right: 12px;\n color: inherit;\n }\n\n ::slotted(nile-icon) {\n width: 100%;\n height: 100%;\n color: inherit;\n fill: currentColor;\n }\n\n \n :host([collapsed]) {\n margin-right: 0;\n width: 100%; \n justify-content: center;\n }\n\n nile-tooltip::part(body) {\n width: max-content;\n height: max-content;\n padding-top: var(--nile-spacing-xs, var(--ng-spacing-xs));\n padding-bottom: var(--nile-spacing-xs, var(--ng-spacing-xs));\n padding-left: var(--nile-spacing-sm, var(--ng-spacing-sm));\n padding-right: var(--nile-spacing-sm, var(--ng-spacing-sm));\n overflow-x: hidden;\n }\n"]))));}};});
1
+ System.register(["lit"],function(_export,_context){"use strict";var n,_templateObject,i;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){n=_lit.css;}],execute:function execute(){_export("s",i=n(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n /* 8px to the label on NxtGen; enterprise keeps 12px. */\n margin-right: var(--nile-spacing-lg, var(--ng-spacing-md));\n color: inherit;\n }\n\n ::slotted(nile-icon) {\n width: 100%;\n height: 100%;\n color: inherit;\n fill: currentColor;\n }\n\n \n /* NxtGen keeps the icon's x when the bar collapses; enterprise centers it in the rail item. */\n :host([collapsed]) {\n margin-right: var(--nile-spacing-none, var(--ng-spacing-md));\n width: 100%; \n min-width: var(--nile-spacing-none, var(--ng-height-20px));\n justify-content: center;\n }\n\n :host([collapsed]) nile-lite-tooltip {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n nile-tooltip::part(body) {\n width: max-content;\n height: max-content;\n padding-top: var(--nile-spacing-xs, var(--ng-spacing-xs));\n padding-bottom: var(--nile-spacing-xs, var(--ng-spacing-xs));\n padding-left: var(--nile-spacing-sm, var(--ng-spacing-sm));\n padding-right: var(--nile-spacing-sm, var(--ng-spacing-sm));\n overflow-x: hidden;\n }\n"]))));}};});
2
2
  //# sourceMappingURL=nile-side-bar-group-item-icon.css.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nile-side-bar-group-item-icon.css.cjs.js","sources":["../../../src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.ts"],"sourcesContent":["import { css } from 'lit';\n\nexport const styles = css`\n :host {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n margin-right: 12px;\n color: inherit;\n }\n\n ::slotted(nile-icon) {\n width: 100%;\n height: 100%;\n color: inherit;\n fill: currentColor;\n }\n\n \n :host([collapsed]) {\n margin-right: 0;\n width: 100%; \n justify-content: center;\n }\n\n nile-tooltip::part(body) {\n width: max-content;\n height: max-content;\n padding-top: var(--nile-spacing-xs, var(--ng-spacing-xs));\n padding-bottom: var(--nile-spacing-xs, var(--ng-spacing-xs));\n padding-left: var(--nile-spacing-sm, var(--ng-spacing-sm));\n padding-right: var(--nile-spacing-sm, var(--ng-spacing-sm));\n overflow-x: hidden;\n }\n`;\n\nexport default [styles];\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAEaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
1
+ {"version":3,"file":"nile-side-bar-group-item-icon.css.cjs.js","sources":["../../../src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.ts"],"sourcesContent":["import { css } from 'lit';\n\nexport const styles = css`\n :host {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n /* 8px to the label on NxtGen; enterprise keeps 12px. */\n margin-right: var(--nile-spacing-lg, var(--ng-spacing-md));\n color: inherit;\n }\n\n ::slotted(nile-icon) {\n width: 100%;\n height: 100%;\n color: inherit;\n fill: currentColor;\n }\n\n \n /* NxtGen keeps the icon's x when the bar collapses; enterprise centers it in the rail item. */\n :host([collapsed]) {\n margin-right: var(--nile-spacing-none, var(--ng-spacing-md));\n width: 100%; \n min-width: var(--nile-spacing-none, var(--ng-height-20px));\n justify-content: center;\n }\n\n :host([collapsed]) nile-lite-tooltip {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n nile-tooltip::part(body) {\n width: max-content;\n height: max-content;\n padding-top: var(--nile-spacing-xs, var(--ng-spacing-xs));\n padding-bottom: var(--nile-spacing-xs, var(--ng-spacing-xs));\n padding-left: var(--nile-spacing-sm, var(--ng-spacing-sm));\n padding-right: var(--nile-spacing-sm, var(--ng-spacing-sm));\n overflow-x: hidden;\n }\n`;\n\nexport default [styles];\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAEaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
@@ -1,10 +1,11 @@
1
- import{css as i}from"lit";const n=i`
1
+ import{css as n}from"lit";const i=n`
2
2
  :host {
3
3
  display: inline-flex;
4
4
  align-items: center;
5
5
  justify-content: center;
6
6
  flex-shrink: 0;
7
- margin-right: 12px;
7
+ /* 8px to the label on NxtGen; enterprise keeps 12px. */
8
+ margin-right: var(--nile-spacing-lg, var(--ng-spacing-md));
8
9
  color: inherit;
9
10
  }
10
11
 
@@ -16,9 +17,17 @@ import{css as i}from"lit";const n=i`
16
17
  }
17
18
 
18
19
 
20
+ /* NxtGen keeps the icon's x when the bar collapses; enterprise centers it in the rail item. */
19
21
  :host([collapsed]) {
20
- margin-right: 0;
22
+ margin-right: var(--nile-spacing-none, var(--ng-spacing-md));
21
23
  width: 100%;
24
+ min-width: var(--nile-spacing-none, var(--ng-height-20px));
25
+ justify-content: center;
26
+ }
27
+
28
+ :host([collapsed]) nile-lite-tooltip {
29
+ display: flex;
30
+ align-items: center;
22
31
  justify-content: center;
23
32
  }
24
33
 
@@ -31,4 +40,4 @@ import{css as i}from"lit";const n=i`
31
40
  padding-right: var(--nile-spacing-sm, var(--ng-spacing-sm));
32
41
  overflow-x: hidden;
33
42
  }
34
- `;export{n as s};
43
+ `;export{i as s};
@@ -1,13 +1,13 @@
1
- import{__decorate as t}from"tslib";import{html as i}from"lit";import{property as e,customElement as s}from"lit/decorators.js";import{s as o}from"./nile-side-bar-group-item-icon.css.esm.js";import{N as r}from"../internal/nile-element.esm.js";import"../internal/accessibility/a11y.state.enum.esm.js";import"../internal/accessibility/a11y.property.enum.esm.js";import"../internal/accessibility/role.enum.esm.js";let n=class extends r{constructor(){super(...arguments),this.icon="",this.tooltip="",this.method="fill",this.size="14",this.enableVisibilityEffect=!1,this.duration=200,this.sidebar=null}static get styles(){return[o]}connectedCallback(){if(this.hasAttribute("slot")||this.setAttribute("slot","icon"),super.connectedCallback(),this.sidebar=this.closest("nile-side-bar"),this.sidebar){const t=new MutationObserver((()=>this.requestUpdate()));t.observe(this.sidebar,{attributes:!0,attributeFilter:["collapsed"]}),this._observer=t}}disconnectedCallback(){super.disconnectedCallback(),this._observer?.disconnect()}getSiblingText(){const t=this.parentElement,i=t?.querySelector("nile-side-bar-group-item-text");return i?.textContent?.trim()??""}render(){const t=!!this.sidebar?.collapsed,e=this.tooltip||this.getSiblingText();return t&&e?i`
1
+ import{__decorate as t}from"tslib";import{html as i}from"lit";import{property as e,customElement as s}from"lit/decorators.js";import{s as o}from"./nile-side-bar-group-item-icon.css.esm.js";import{N as r}from"../internal/nile-element.esm.js";import"../internal/accessibility/a11y.state.enum.esm.js";import"../internal/accessibility/a11y.property.enum.esm.js";import"../internal/accessibility/role.enum.esm.js";let l=class extends r{constructor(){super(...arguments),this.icon="",this.tooltip="",this.method="fill",this.size="var(--nile-icon-size-14, var(--ng-height-20px))",this.enableVisibilityEffect=!1,this.duration=200}static get styles(){return[o]}static get observedAttributes(){return[...super.observedAttributes,"collapsed"]}attributeChangedCallback(t,i,e){super.attributeChangedCallback(t,i,e),"collapsed"===t&&this.requestUpdate()}connectedCallback(){this.hasAttribute("slot")||this.setAttribute("slot","icon"),super.connectedCallback()}getSiblingText(){const t=this.parentElement,i=t?.querySelector("nile-side-bar-group-item-text");return i?.textContent?.trim()??""}render(){const t=this.hasAttribute("collapsed"),e=this.tooltip||this.getSiblingText();return t&&e?i`
2
2
 
3
3
  <slot>
4
4
  <nile-lite-tooltip hoist distance="18" content=${e} placement="right" enableVisibilityEffect=${this.enableVisibilityEffect} duration=${this.duration}>
5
- ${this.icon?i`<nile-icon size=${this.size} color="var(--nile-colors-dark-900,var(--ng-colors-fg-quaternary-400))" name=${this.icon} method=${this.method}></nile-icon>`:null}
5
+ ${this.icon?i`<nile-icon size=${this.size} color="currentColor" name=${this.icon} method=${this.method}></nile-icon>`:null}
6
6
  </nile-lite-tooltip>
7
7
  </slot>
8
8
 
9
9
  `:i`
10
10
  <slot>
11
- ${this.icon?i`<nile-icon size=${this.size} color="var(--nile-colors-dark-900,var(--ng-colors-fg-quaternary-400))" size="14" name=${this.icon} method=${this.method}></nile-icon>`:null}
11
+ ${this.icon?i`<nile-icon size=${this.size} color="currentColor" name=${this.icon} method=${this.method}></nile-icon>`:null}
12
12
  </slot>
13
- `}};t([e({type:String,reflect:!0})],n.prototype,"icon",void 0),t([e({type:String})],n.prototype,"tooltip",void 0),t([e({type:String})],n.prototype,"method",void 0),t([e({type:String})],n.prototype,"size",void 0),t([e({type:Boolean,attribute:!0,reflect:!0})],n.prototype,"enableVisibilityEffect",void 0),t([e({type:Number,attribute:!0,reflect:!0})],n.prototype,"duration",void 0),n=t([s("nile-side-bar-group-item-icon")],n);export{n as N};
13
+ `}};t([e({type:String,reflect:!0})],l.prototype,"icon",void 0),t([e({type:String})],l.prototype,"tooltip",void 0),t([e({type:String})],l.prototype,"method",void 0),t([e({type:String})],l.prototype,"size",void 0),t([e({type:Boolean,attribute:!0,reflect:!0})],l.prototype,"enableVisibilityEffect",void 0),t([e({type:Number,attribute:!0,reflect:!0})],l.prototype,"duration",void 0),l=t([s("nile-side-bar-group-item-icon")],l);export{l as N};
@@ -1,2 +1,2 @@
1
- System.register(["lit"],function(_export,_context){"use strict";var e,_templateObject,o;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){e=_lit.css;}],execute:function execute(){_export("s",o=e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host {\n display: block;\n flex: 1 1 auto; \n min-width: 0; \n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-md)); \n line-height: var(--nile-line-height-small);\n font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-medium));\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n color: var(--nile-colors-dark-900, var(--ng-colors-text-secondary-700));\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n ::slotted(*) {\n font: inherit;\n color: inherit;\n }\n :host([collapsed]) {\n display: none;\n }\n"]))));}};});
1
+ System.register(["lit"],function(_export,_context){"use strict";var e,_templateObject,t;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){e=_lit.css;}],execute:function execute(){_export("s",t=e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host {\n display: block;\n flex: 1 1 auto; \n min-width: 0; \n /* NxtGen: Text sm/Semibold, 14/20; enterprise is unchanged. */\n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));\n line-height: var(--nile-line-height-small, var(--ng-line-height-text-sm));\n font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-semibold));\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n color: var(--nile-colors-dark-900, var(--ng-colors-text-secondary-700));\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n ::slotted(*) {\n font: inherit;\n color: inherit;\n }\n /* Enterprise hides the label in the rail. NxtGen keeps it laid out at full width and lets the 40px item clip it, as the Figma rail does. */\n :host([collapsed]) {\n display: var(--nile-display-none, block);\n flex: 0 0 auto;\n }\n"]))));}};});
2
2
  //# sourceMappingURL=nile-side-bar-group-item-text.css.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nile-side-bar-group-item-text.css.cjs.js","sources":["../../../src/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.ts"],"sourcesContent":["import { css } from 'lit';\n\n/**\n * SideBarGroupItemText CSS\n */\nexport const styles = css`\n :host {\n display: block;\n flex: 1 1 auto; \n min-width: 0; \n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-md)); \n line-height: var(--nile-line-height-small);\n font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-medium));\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n color: var(--nile-colors-dark-900, var(--ng-colors-text-secondary-700));\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n ::slotted(*) {\n font: inherit;\n color: inherit;\n }\n :host([collapsed]) {\n display: none;\n }\n`;\n\nexport default [styles];\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAKaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
1
+ {"version":3,"file":"nile-side-bar-group-item-text.css.cjs.js","sources":["../../../src/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.ts"],"sourcesContent":["import { css } from 'lit';\n\n/**\n * SideBarGroupItemText CSS\n */\nexport const styles = css`\n :host {\n display: block;\n flex: 1 1 auto; \n min-width: 0; \n /* NxtGen: Text sm/Semibold, 14/20; enterprise is unchanged. */\n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));\n line-height: var(--nile-line-height-small, var(--ng-line-height-text-sm));\n font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-semibold));\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n color: var(--nile-colors-dark-900, var(--ng-colors-text-secondary-700));\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n ::slotted(*) {\n font: inherit;\n color: inherit;\n }\n /* Enterprise hides the label in the rail. NxtGen keeps it laid out at full width and lets the 40px item clip it, as the Figma rail does. */\n :host([collapsed]) {\n display: var(--nile-display-none, block);\n flex: 0 0 auto;\n }\n`;\n\nexport default [styles];\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAKaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
@@ -1,11 +1,12 @@
1
- import{css as e}from"lit";const o=e`
1
+ import{css as e}from"lit";const t=e`
2
2
  :host {
3
3
  display: block;
4
4
  flex: 1 1 auto;
5
5
  min-width: 0;
6
- font-size: var(--nile-type-scale-3, var(--ng-font-size-text-md));
7
- line-height: var(--nile-line-height-small);
8
- font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-medium));
6
+ /* NxtGen: Text sm/Semibold, 14/20; enterprise is unchanged. */
7
+ font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));
8
+ line-height: var(--nile-line-height-small, var(--ng-line-height-text-sm));
9
+ font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-semibold));
9
10
  font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
10
11
  color: var(--nile-colors-dark-900, var(--ng-colors-text-secondary-700));
11
12
  white-space: nowrap;
@@ -17,7 +18,9 @@ import{css as e}from"lit";const o=e`
17
18
  font: inherit;
18
19
  color: inherit;
19
20
  }
21
+ /* Enterprise hides the label in the rail. NxtGen keeps it laid out at full width and lets the 40px item clip it, as the Figma rail does. */
20
22
  :host([collapsed]) {
21
- display: none;
23
+ display: var(--nile-display-none, block);
24
+ flex: 0 0 auto;
22
25
  }
23
- `;export{o as s};
26
+ `;export{t as s};
@@ -1 +1 @@
1
- {"version":3,"file":"nile-side-bar-header.cjs.js","sources":["../../../src/nile-side-bar-header/nile-side-bar-header.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {LitElement, html, CSSResultArray, TemplateResult} from 'lit';\nimport { customElement, property} from 'lit/decorators.js';\nimport {styles} from './nile-side-bar-header.css';\nimport NileElement from '../internal/nile-element';\n\n\n/**\n * Nile side-bar-header component.\n *\n * @tag nile-side-bar-header\n *\n * @attr background - Background treatment of the header (\"default\" | \"transparent\").\n * Defaults to \"default\", which paints the sidebar surface color. Set to\n * \"transparent\" to drop the background so whatever sits behind the header shows\n * through.\n */\n@customElement('nile-side-bar-header')\nexport class NileSideBarHeader extends NileElement {\n\n\t/**\n\t * Background treatment of the header. `default` keeps the sidebar surface\n\t * color; `transparent` removes it.\n\t */\n\t@property({ type: String, reflect: true, attribute: true }) background: 'default' | 'transparent' = 'default';\n\n\t/**\n\t * The styles for nile-side-bar-header\n\t * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n\t */\n\tpublic static get styles(): CSSResultArray {\n\t\treturn [styles];\n\t}\n\n\t/* #endregion */\n\n\t/* #region Methods */\n\n\t/**\n\t * Render method\n\t * @slot This is a slot test\n\t */\n\tpublic render(): TemplateResult {\n\t\treturn html`\n\t\t <div class=\"header-content\" part=\"header-content\">\n <slot name=\"logo\" part=\"logo\"></slot>\n <slot name=\"expand\" part=\"expand\"></slot>\n </div>\n\t\t\t`;\n\t}\n\n\t/* #endregion */\n}\n\nexport default NileSideBarHeader;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-side-bar-header': NileSideBarHeader;\n }\n}"],"names":["NileSideBarHeader","o","constructor","this","background","_this","_inherits","_a","_createClass","key","value","render","html","_templateObject","_taggedTemplateLiteral","get","styles","NileElement","__decorate","property","type","String","reflect","attribute","prototype","customElement"],"mappings":"q8GAwBaA,4BAAN,SAAAC,EAAA,CAAAC,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,qCAMsDC,KAAAA,CAAUC,UAAAA,CAA8B,SA4BpG,QAAAC,KAAA,EAtBOC,SAAA,CAAAL,CAAA,CAAAM,EAAA,SAAAC,YAAA,CAAAP,CAAA,GAAAQ,GAAA,UAAAC,KAAA,CAYA,SAAAC,MAAAA,CAAAA,CAAAA,CACN,MAAOC,CAAAA,CAAI,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA,iMAMX,CAAA,KAAAL,GAAA,UAAAM,GAAA,CAnBM,SAAAA,IAAA,CACN,CAAA,MAAO,CAACC,CACR,CAAA,EAUM,MAxB+BC,CAAAA,GAMsBC,EAAA,CAA3DC,CAAAA,CAAS,CAAEC,IAAMC,CAAAA,MAAAA,CAAQC,SAAS,CAAMC,CAAAA,SAAAA,CAAAA,CAAW,KAA0DvB,CAAAwB,CAAAA,SAAAA,CAAA,iBAAA,EANlGxB,CAAAA,CAAAA,OAAAA,KAAAA,CAAAA,CAAiBkB,EAAA,CAD7BO,CAAAA,CAAc,yBACFzB"}
1
+ {"version":3,"file":"nile-side-bar-header.cjs.js","sources":["../../../src/nile-side-bar-header/nile-side-bar-header.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {LitElement, html, CSSResultArray, TemplateResult} from 'lit';\nimport { customElement, property} from 'lit/decorators.js';\nimport {styles} from './nile-side-bar-header.css';\nimport NileElement from '../internal/nile-element';\n\n\n/**\n * Nile side-bar-header component.\n *\n * @tag nile-side-bar-header\n *\n * @attr background - Background treatment of the header (\"default\" | \"transparent\").\n * Defaults to \"default\". Inside a `nile-side-bar` the header paints nothing, so it\n * follows the sidebar's own surface with no attribute needed; on its own it paints\n * its own surface. \"transparent\" always drops the background so whatever sits\n * behind the header shows through.\n */\n@customElement('nile-side-bar-header')\nexport class NileSideBarHeader extends NileElement {\n\n\t/**\n\t * Background treatment of the header. `default` follows the sidebar surface\n\t * inside a `nile-side-bar` (and paints its own surface when used on its own);\n\t * `transparent` removes the background everywhere.\n\t */\n\t@property({ type: String, reflect: true, attribute: true }) background: 'default' | 'transparent' = 'default';\n\n\t/**\n\t * The styles for nile-side-bar-header\n\t * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n\t */\n\tpublic static get styles(): CSSResultArray {\n\t\treturn [styles];\n\t}\n\n\t/* #endregion */\n\n\t/* #region Methods */\n\n\t/**\n\t * Render method\n\t * @slot This is a slot test\n\t */\n\tpublic render(): TemplateResult {\n\t\treturn html`\n\t\t <div class=\"header-content\" part=\"header-content\">\n <slot name=\"logo\" part=\"logo\"></slot>\n <slot name=\"expand\" part=\"expand\"></slot>\n </div>\n\t\t\t`;\n\t}\n\n\t/* #endregion */\n}\n\nexport default NileSideBarHeader;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-side-bar-header': NileSideBarHeader;\n }\n}"],"names":["NileSideBarHeader","o","constructor","this","background","_this","_inherits","_a","_createClass","key","value","render","html","_templateObject","_taggedTemplateLiteral","get","styles","NileElement","__decorate","property","type","String","reflect","attribute","prototype","customElement"],"mappings":"q8GAyBaA,4BAAN,SAAAC,EAAA,CAAAC,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,qCAOsDC,KAAAA,CAAUC,UAAAA,CAA8B,SA4BpG,QAAAC,KAAA,EAtBOC,SAAA,CAAAL,CAAA,CAAAM,EAAA,SAAAC,YAAA,CAAAP,CAAA,GAAAQ,GAAA,UAAAC,KAAA,CAYA,SAAAC,MAAAA,CAAAA,CAAAA,CACN,MAAOC,CAAAA,CAAI,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA,iMAMX,CAAA,KAAAL,GAAA,UAAAM,GAAA,CAnBM,SAAAA,IAAA,CACN,CAAA,MAAO,CAACC,CACR,CAAA,EAUM,MAzB+BC,CAAAA,GAOsBC,EAAA,CAA3DC,CAAAA,CAAS,CAAEC,IAAMC,CAAAA,MAAAA,CAAQC,SAAS,CAAMC,CAAAA,SAAAA,CAAAA,CAAW,KAA0DvB,CAAAwB,CAAAA,SAAAA,CAAA,iBAAA,EAPlGxB,CAAAA,CAAAA,OAAAA,KAAAA,CAAAA,CAAiBkB,EAAA,CAD7BO,CAAAA,CAAc,yBACFzB"}
@@ -1,2 +1,2 @@
1
- System.register(["lit"],function(_export,_context){"use strict";var n,_templateObject,e;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){n=_lit.css;}],execute:function execute(){_export("s",e=n(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding-top: var(--nile-spacing-xl, var(--ng-spacing-3xl));\n padding-bottom: var(--nile-spacing-lg, var(--ng-spacing-xl));\n padding-left: var(--nile-spacing-xl, var(--ng-spacing-2xl));\n padding-right: var(--nile-spacing-xl, var(--ng-spacing-2xl));\n top: 0;\n background: var(--nile-colors-neutral-100, var(--ng-colors-bg-primary));\n}\n\n/* Opt-in: drop the surface color so the header sits on whatever is behind it. */\n:host([background='transparent']) {\n background: transparent;\n}\n\n.header-content {\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n}\n\n\n:host([collapsed]) .header-content {\n flex-direction: column;\n justify-content: center;\n gap: var(--nile-spacing-lg, var(--ng-spacing-md));\n}\n\n\n\n \n \n::slotted([slot='logo']) {\n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));\n font-weight: var(--nile-font-weight-bold, var(--ng-font-weight-bold));\n letter-spacing: -0.02em;\n color: var(--nile-colors-dark-900, var(--ng-colors-graylightmode-900));\n text-transform: none;\n}\n\n::slotted([slot='actions']) {\n display: flex;\n align-items: center;\n gap: var(--nile-spacing-md);\n}\n\n"]))));}};});
1
+ System.register(["lit"],function(_export,_context){"use strict";var e,_templateObject,t;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){e=_lit.css;}],execute:function execute(){_export("s",t=e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding-top: var(--nile-spacing-lg, var(--ng-spacing-lg));\n padding-bottom: var(--nile-spacing-xl, var(--ng-spacing-xl));\n padding-left: var(--nile-spacing-xl, var(--ng-spacing-xl));\n padding-right: var(--nile-spacing-xl, var(--ng-spacing-xl));\n top: 0;\n background: var(--nile-colors-neutral-100, var(--ng-colors-bg-primary));\n}\n\n/* Opt-in: drop the surface color so the header sits on whatever is behind it. */\n:host([background='transparent']) {\n background: transparent;\n}\n\n.header-content {\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n}\n\n\n:host([collapsed]) .header-content {\n flex-direction: column;\n justify-content: center;\n gap: var(--nile-spacing-lg, var(--ng-spacing-md));\n}\n\n\n\n \n \n::slotted([slot='logo']) {\n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));\n font-weight: var(--nile-font-weight-bold, var(--ng-font-weight-bold));\n letter-spacing: -0.02em;\n color: var(--nile-colors-dark-900, var(--ng-colors-graylightmode-900));\n text-transform: none;\n}\n\n/* The workspace switcher fills the row rather than centering at its text width. */\n::slotted(nile-side-bar-header-switcher) {\n flex: 1 1 auto;\n align-self: stretch;\n min-width: 0;\n}\n\n::slotted([slot='actions']) {\n display: flex;\n align-items: center;\n gap: var(--nile-spacing-md);\n}\n\n"]))));}};});
2
2
  //# sourceMappingURL=nile-side-bar-header.css.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nile-side-bar-header.css.cjs.js","sources":["../../../src/nile-side-bar-header/nile-side-bar-header.css.ts"],"sourcesContent":["/**\n* Copyright Aquera Inc 2023\n*\n* This source code is licensed under the BSD-3-Clause license found in the\n* LICENSE file in the root directory of this source tree.\n*/\n\nimport {css} from 'lit';\n\n/**\n * SideBarHeader CSS\n */\nexport const styles = css`\n :host {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding-top: var(--nile-spacing-xl, var(--ng-spacing-3xl));\n padding-bottom: var(--nile-spacing-lg, var(--ng-spacing-xl));\n padding-left: var(--nile-spacing-xl, var(--ng-spacing-2xl));\n padding-right: var(--nile-spacing-xl, var(--ng-spacing-2xl));\n top: 0;\n background: var(--nile-colors-neutral-100, var(--ng-colors-bg-primary));\n}\n\n/* Opt-in: drop the surface color so the header sits on whatever is behind it. */\n:host([background='transparent']) {\n background: transparent;\n}\n\n.header-content {\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n}\n\n\n:host([collapsed]) .header-content {\n flex-direction: column;\n justify-content: center;\n gap: var(--nile-spacing-lg, var(--ng-spacing-md));\n}\n\n\n\n \n \n::slotted([slot='logo']) {\n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));\n font-weight: var(--nile-font-weight-bold, var(--ng-font-weight-bold));\n letter-spacing: -0.02em;\n color: var(--nile-colors-dark-900, var(--ng-colors-graylightmode-900));\n text-transform: none;\n}\n\n::slotted([slot='actions']) {\n display: flex;\n align-items: center;\n gap: var(--nile-spacing-md);\n}\n\n`;\n\nexport default [styles];"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAYaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
1
+ {"version":3,"file":"nile-side-bar-header.css.cjs.js","sources":["../../../src/nile-side-bar-header/nile-side-bar-header.css.ts"],"sourcesContent":["/**\n* Copyright Aquera Inc 2023\n*\n* This source code is licensed under the BSD-3-Clause license found in the\n* LICENSE file in the root directory of this source tree.\n*/\n\nimport {css} from 'lit';\n\n/**\n * SideBarHeader CSS\n */\nexport const styles = css`\n :host {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding-top: var(--nile-spacing-lg, var(--ng-spacing-lg));\n padding-bottom: var(--nile-spacing-xl, var(--ng-spacing-xl));\n padding-left: var(--nile-spacing-xl, var(--ng-spacing-xl));\n padding-right: var(--nile-spacing-xl, var(--ng-spacing-xl));\n top: 0;\n background: var(--nile-colors-neutral-100, var(--ng-colors-bg-primary));\n}\n\n/* Opt-in: drop the surface color so the header sits on whatever is behind it. */\n:host([background='transparent']) {\n background: transparent;\n}\n\n.header-content {\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n}\n\n\n:host([collapsed]) .header-content {\n flex-direction: column;\n justify-content: center;\n gap: var(--nile-spacing-lg, var(--ng-spacing-md));\n}\n\n\n\n \n \n::slotted([slot='logo']) {\n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));\n font-weight: var(--nile-font-weight-bold, var(--ng-font-weight-bold));\n letter-spacing: -0.02em;\n color: var(--nile-colors-dark-900, var(--ng-colors-graylightmode-900));\n text-transform: none;\n}\n\n/* The workspace switcher fills the row rather than centering at its text width. */\n::slotted(nile-side-bar-header-switcher) {\n flex: 1 1 auto;\n align-self: stretch;\n min-width: 0;\n}\n\n::slotted([slot='actions']) {\n display: flex;\n align-items: center;\n gap: var(--nile-spacing-md);\n}\n\n`;\n\nexport default [styles];"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAYaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
@@ -1,12 +1,12 @@
1
- import{css as n}from"lit";const e=n`
1
+ import{css as e}from"lit";const t=e`
2
2
  :host {
3
3
  display: flex;
4
4
  align-items: center;
5
5
  justify-content: space-between;
6
- padding-top: var(--nile-spacing-xl, var(--ng-spacing-3xl));
7
- padding-bottom: var(--nile-spacing-lg, var(--ng-spacing-xl));
8
- padding-left: var(--nile-spacing-xl, var(--ng-spacing-2xl));
9
- padding-right: var(--nile-spacing-xl, var(--ng-spacing-2xl));
6
+ padding-top: var(--nile-spacing-lg, var(--ng-spacing-lg));
7
+ padding-bottom: var(--nile-spacing-xl, var(--ng-spacing-xl));
8
+ padding-left: var(--nile-spacing-xl, var(--ng-spacing-xl));
9
+ padding-right: var(--nile-spacing-xl, var(--ng-spacing-xl));
10
10
  top: 0;
11
11
  background: var(--nile-colors-neutral-100, var(--ng-colors-bg-primary));
12
12
  }
@@ -42,10 +42,17 @@ import{css as n}from"lit";const e=n`
42
42
  text-transform: none;
43
43
  }
44
44
 
45
+ /* The workspace switcher fills the row rather than centering at its text width. */
46
+ ::slotted(nile-side-bar-header-switcher) {
47
+ flex: 1 1 auto;
48
+ align-self: stretch;
49
+ min-width: 0;
50
+ }
51
+
45
52
  ::slotted([slot='actions']) {
46
53
  display: flex;
47
54
  align-items: center;
48
55
  gap: var(--nile-spacing-md);
49
56
  }
50
57
 
51
- `;export{e as s};
58
+ `;export{t as s};
@@ -0,0 +1,2 @@
1
+ System.register(["./nile-side-bar-header-switcher.cjs.js","tslib","lit","lit/decorators.js","lit/directives/if-defined.js","./nile-side-bar-header-switcher.css.cjs.js","../internal/nile-element.cjs.js","../internal/accessibility/a11y.state.enum.cjs.js","../internal/accessibility/a11y.property.enum.cjs.js","../internal/accessibility/role.enum.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileSideBarHeaderSwitcherCjsJs){_export("NileSideBarHeaderSwitcher",_nileSideBarHeaderSwitcherCjsJs.N);},function(_tslib){},function(_lit){},function(_litDecoratorsJs){},function(_litDirectivesIfDefinedJs){},function(_nileSideBarHeaderSwitcherCssCjsJs){},function(_internalNileElementCjsJs){},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){}],execute:function execute(){}};});
2
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export{N as NileSideBarHeaderSwitcher}from"./nile-side-bar-header-switcher.esm.js";import"tslib";import"lit";import"lit/decorators.js";import"lit/directives/if-defined.js";import"./nile-side-bar-header-switcher.css.esm.js";import"../internal/nile-element.esm.js";import"../internal/accessibility/a11y.state.enum.esm.js";import"../internal/accessibility/a11y.property.enum.esm.js";import"../internal/accessibility/role.enum.esm.js";
@@ -0,0 +1,2 @@
1
+ function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","lit/directives/if-defined.js","./nile-side-bar-header-switcher.css.cjs.js","../internal/nile-element.cjs.js","../internal/accessibility/a11y.state.enum.cjs.js","../internal/accessibility/a11y.property.enum.cjs.js","../internal/accessibility/role.enum.cjs.js"],function(_export,_context){"use strict";var t,e,s,r,i,l,a,_templateObject,_templateObject2,o;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_lit){e=_lit.html;},function(_litDecoratorsJs){s=_litDecoratorsJs.property;r=_litDecoratorsJs.customElement;},function(_litDirectivesIfDefinedJs){i=_litDirectivesIfDefinedJs.ifDefined;},function(_nileSideBarHeaderSwitcherCssCjsJs){l=_nileSideBarHeaderSwitcherCssCjsJs.s;},function(_internalNileElementCjsJs){a=_internalNileElementCjsJs.N;},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){}],execute:function execute(){_export("N",o=/*#__PURE__*/function(_a){function o(){var _this;_classCallCheck(this,o);_this=_callSuper(this,o,arguments),_this.label="",_this.src="";return _this;}_inherits(o,_a);return _createClass(o,[{key:"connectedCallback",value:function connectedCallback(){this.hasAttribute("slot")||this.setAttribute("slot","logo"),_superPropGet(o,"connectedCallback",this,3)([]);}},{key:"_onClick",value:function _onClick(){this.emit("nile-click",{value:this.label});}},{key:"render",value:function render(){return e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <button\n part=\"base\"\n class=\"switcher\"\n type=\"button\"\n aria-label=","\n @click=","\n >\n <span part=\"logo\" class=\"logo\">\n <slot name=\"logo\">\n ","\n </slot>\n </span>\n <span part=\"label\" class=\"label\">","</span>\n <span part=\"chevron\" class=\"chevron\" aria-hidden=\"true\">\n <nile-glyph\n name=\"ng-chevron-selector-vertical\"\n method=\"stroke\"\n size=\"20\"\n color=\"var(--nile-colors-dark-500, var(--ng-colors-fg-quaternary-400))\"\n ></nile-glyph>\n </span>\n </button>\n "])),i(this.label||void 0),this._onClick,this.src?e(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<img src="," alt=\"\" />"])),this.src):"",this.label);}}],[{key:"styles",get:function get(){return[l];}}]);}(a));t([s({type:String,attribute:!0,reflect:!0})],o.prototype,"label",void 0),t([s({type:String,attribute:!0,reflect:!0})],o.prototype,"src",void 0),_export("N",o=t([r("nile-side-bar-header-switcher")],o));}};});
2
+ //# sourceMappingURL=nile-side-bar-header-switcher.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-side-bar-header-switcher.cjs.js","sources":["../../../src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2026\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html, CSSResultArray, TemplateResult } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { styles } from './nile-side-bar-header-switcher.css';\nimport NileElement from '../internal/nile-element';\n\n/**\n * Nile side-bar-header-switcher component. The sidebar builds no menu: listen for `nile-click` and open the app's own.\n *\n * @tag nile-side-bar-header-switcher\n *\n * @slot logo - Replaces the `src` image with custom artwork, sized into the 28px logo box.\n *\n * @event nile-click - Emitted when the switcher is pressed. `detail: { value }`, the workspace `label`.\n *\n * @csspart base - The switcher button.\n * @csspart logo - The 28px logo box.\n * @csspart label - The workspace name.\n * @csspart chevron - The 20px vertical selector (chevron-selector-vertical) box. Hidden when collapsed.\n */\n@customElement('nile-side-bar-header-switcher')\nexport class NileSideBarHeaderSwitcher extends NileElement {\n /** The workspace or product name shown after the logo. */\n @property({ type: String, attribute: true, reflect: true })\n label: string = '';\n\n /** URL of the logo artwork. Ignored when the `logo` slot has content. */\n @property({ type: String, attribute: true, reflect: true })\n src: string = '';\n\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n connectedCallback(): void {\n /* Lands in nile-side-bar-header's logo slot without the page naming it. */\n if (!this.hasAttribute('slot')) {\n this.setAttribute('slot', 'logo');\n }\n super.connectedCallback();\n }\n\n private _onClick(): void {\n this.emit('nile-click', { value: this.label });\n }\n\n public render(): TemplateResult {\n return html`\n <button\n part=\"base\"\n class=\"switcher\"\n type=\"button\"\n aria-label=${ifDefined(this.label || undefined)}\n @click=${this._onClick}\n >\n <span part=\"logo\" class=\"logo\">\n <slot name=\"logo\">\n ${this.src ? html`<img src=${this.src} alt=\"\" />` : ''}\n </slot>\n </span>\n <span part=\"label\" class=\"label\">${this.label}</span>\n <span part=\"chevron\" class=\"chevron\" aria-hidden=\"true\">\n <nile-glyph\n name=\"ng-chevron-selector-vertical\"\n method=\"stroke\"\n size=\"20\"\n color=\"var(--nile-colors-dark-500, var(--ng-colors-fg-quaternary-400))\"\n ></nile-glyph>\n </span>\n </button>\n `;\n }\n}\n\nexport default NileSideBarHeaderSwitcher;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-side-bar-header-switcher': NileSideBarHeaderSwitcher;\n }\n}\n"],"names":["NileSideBarHeaderSwitcher","_a","o","this","label","src","_this","_inherits","_createClass","key","value","connectedCallback","hasAttribute","setAttribute","super","_onClick","emit","render","html","_templateObject","_taggedTemplateLiteral","ifDefined","undefined","_templateObject2","get","styles","NileElement","__decorate","property","type","String","attribute","reflect","prototype","customElement"],"mappings":"ymIA4BaA,CAAN,uBAAAC,EAAA,EAAA,SAAAC,EAAA,qEAGLC,EAAAA,KAAAA,CAAKC,KAAW,CAAA,EAAA,CAIhBD,KAAAA,CAAGE,GAAAA,CAAW,EA4Cf,QAAAC,KAAA,EA1CQC,SAAA,CAAAL,CAAA,CAAAD,EAAA,SAAAO,YAAA,CAAAN,CAAA,GAAAO,GAAA,qBAAAC,KAAA,CAIP,SAAAC,iBAAAA,CAAAA,CAAAA,CAEOR,IAAKS,CAAAA,YAAAA,CAAa,MACrBT,CAAAA,EAAAA,IAAAA,CAAKU,YAAa,CAAA,MAAA,CAAQ,MAE5BC,CAAAA,CAAAA,aAAAA,CAAAA,CAAAA,gCACD,EAEO,GAAAL,GAAA,YAAAC,KAAA,UAAAK,QAAAA,CAAAA,CAAAA,CACNZ,IAAKa,CAAAA,IAAAA,CAAK,YAAc,CAAA,CAAEN,KAAOP,CAAAA,IAAAA,CAAKC,KACvC,CAAA,CAAA,EAEM,GAAAK,GAAA,UAAAC,KAAA,UAAAO,MAAAA,CAAAA,CAAAA,CACL,MAAOC,CAAAA,CAAI,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA,srBAKMC,CAAAA,CAAUlB,KAAKC,KAASkB,EAAAA,IAAAA,EAAAA,CAAAA,CAC5BnB,IAAKY,CAAAA,QAAAA,CAIRZ,IAAAA,CAAKE,GAAMa,CAAAA,CAAI,CAAAK,gBAAA,GAAAA,gBAAA,CAAAH,sBAAA,gCAAYjB,IAAAA,CAAKE,GAAkB,EAAA,EAAA,CAGrBF,IAAKC,CAAAA,KAAAA,EAW7C,CAAA,KAAAK,GAAA,UAAAe,GAAA,CAzCM,SAAAA,IAAA,CAAWC,CAChB,MAAO,CAACA,CACT,CAAA,EAED,MAb6CC,CAAxC,GAGLC,CAAA,CAAA,CADCC,CAAS,CAAA,CAAEC,KAAMC,MAAQC,CAAAA,SAAAA,CAAAA,CAAW,CAAMC,CAAAA,OAAAA,CAAAA,CAAS,CACjChC,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAiC,SAAA,CAAA,OAAA,CAAA,IAAA,IAInBN,CAAA,CAAA,CADCC,CAAS,CAAA,CAAEC,IAAMC,CAAAA,MAAAA,CAAQC,SAAW,CAAA,CAAA,CAAA,CAAMC,SAAS,CACnChC,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAiC,SAAA,CAAA,KAAA,CAAA,IAAA,gBAPNjC,CAAyB2B,CAAAA,CAAAA,CAAA,CADrCO,CAAAA,CAAc,kCACFlC"}
@@ -0,0 +1,2 @@
1
+ System.register(["lit"],function(_export,_context){"use strict";var e,_templateObject,t;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){e=_lit.css;}],execute:function execute(){_export("s",t=e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host {\n display: block;\n min-width: 0;\n }\n\n .switcher {\n display: flex;\n align-items: center;\n gap: var(--nile-spacing-md, var(--ng-spacing-md));\n box-sizing: border-box;\n width: 100%;\n height: var(--nile-height-40px, var(--ng-height-40px));\n margin: var(--nile-spacing-none, var(--ng-spacing-none));\n padding: var(--nile-spacing-sm, var(--ng-spacing-sm));\n border: var(--nile-border-width-0, var(--ng-border-width-0));\n border-radius: var(--nile-radius-md, var(--ng-radius-md));\n /* NxtGen rests transparent with no visible stroke; Enterprise keeps its neutral-100 fill and neutral-400 stroke. */\n background: var(--nile-colors-neutral-100, transparent);\n box-shadow: inset 0 0 0 1px var(--nile-colors-neutral-400, transparent);\n overflow: hidden;\n cursor: pointer;\n font: inherit;\n color: inherit;\n text-align: start;\n }\n\n /* Hover fills the container with bg-secondary-subtle and draws a 1px border-secondary stroke; the label and chevron colors do not change. The stroke is the same inset shadow as the Enterprise rest state, so it never changes the 40px box; Enterprise's fill and stroke already match, so it is unchanged. */\n .switcher:hover {\n background: var(--nile-colors-neutral-100, var(--ng-colors-bg-secondary-subtle));\n box-shadow: inset 0 0 0 1px var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));\n }\n\n .logo {\n flex: 0 0 auto;\n display: inline-flex;\n width: var(--nile-height-28px, var(--ng-height-28px));\n height: var(--nile-height-28px, var(--ng-height-28px));\n }\n\n .logo img,\n ::slotted([slot='logo']) {\n display: block;\n width: 100%;\n height: 100%;\n object-fit: contain;\n }\n\n /* Text sm (14px) on a 24px line, Bold. */\n .label {\n flex: 1 1 auto;\n min-width: 0;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));\n line-height: var(--nile-line-height-medium, var(--ng-line-height-text-md));\n font-weight: var(--nile-font-weight-bold, var(--ng-font-weight-bold));\n /* -4% tracking (-0.56px at 14px): lets \"Workforce Intelligence\" fit the 152px available. */\n letter-spacing: -0.04em;\n color: var(--nile-colors-dark-900, var(--ng-colors-text-secondary-700));\n }\n\n .chevron {\n flex: 0 0 auto;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: var(--nile-height-20px, var(--ng-height-20px));\n height: var(--nile-height-20px, var(--ng-height-20px));\n }\n\n /* Collapsed: only the logo remains, centred in the 40px control. The label and selector are removed from layout and the accessibility tree (the button keeps its aria-label), so neither can be clipped into view or focused. */\n :host([collapsed]) .switcher {\n justify-content: center;\n }\n\n :host([collapsed]) .label,\n :host([collapsed]) .chevron {\n display: none;\n }\n"]))));}};});
2
+ //# sourceMappingURL=nile-side-bar-header-switcher.css.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-side-bar-header-switcher.css.cjs.js","sources":["../../../src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2026\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { css } from 'lit';\n\n/**\n * SideBarHeaderSwitcher CSS\n *\n * 40px tall. The Enterprise stroke is an inset shadow (not a real border) so it adds no layout space; NxtGen draws none.\n */\nexport const styles = css`\n :host {\n display: block;\n min-width: 0;\n }\n\n .switcher {\n display: flex;\n align-items: center;\n gap: var(--nile-spacing-md, var(--ng-spacing-md));\n box-sizing: border-box;\n width: 100%;\n height: var(--nile-height-40px, var(--ng-height-40px));\n margin: var(--nile-spacing-none, var(--ng-spacing-none));\n padding: var(--nile-spacing-sm, var(--ng-spacing-sm));\n border: var(--nile-border-width-0, var(--ng-border-width-0));\n border-radius: var(--nile-radius-md, var(--ng-radius-md));\n /* NxtGen rests transparent with no visible stroke; Enterprise keeps its neutral-100 fill and neutral-400 stroke. */\n background: var(--nile-colors-neutral-100, transparent);\n box-shadow: inset 0 0 0 1px var(--nile-colors-neutral-400, transparent);\n overflow: hidden;\n cursor: pointer;\n font: inherit;\n color: inherit;\n text-align: start;\n }\n\n /* Hover fills the container with bg-secondary-subtle and draws a 1px border-secondary stroke; the label and chevron colors do not change. The stroke is the same inset shadow as the Enterprise rest state, so it never changes the 40px box; Enterprise's fill and stroke already match, so it is unchanged. */\n .switcher:hover {\n background: var(--nile-colors-neutral-100, var(--ng-colors-bg-secondary-subtle));\n box-shadow: inset 0 0 0 1px var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));\n }\n\n .logo {\n flex: 0 0 auto;\n display: inline-flex;\n width: var(--nile-height-28px, var(--ng-height-28px));\n height: var(--nile-height-28px, var(--ng-height-28px));\n }\n\n .logo img,\n ::slotted([slot='logo']) {\n display: block;\n width: 100%;\n height: 100%;\n object-fit: contain;\n }\n\n /* Text sm (14px) on a 24px line, Bold. */\n .label {\n flex: 1 1 auto;\n min-width: 0;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));\n line-height: var(--nile-line-height-medium, var(--ng-line-height-text-md));\n font-weight: var(--nile-font-weight-bold, var(--ng-font-weight-bold));\n /* -4% tracking (-0.56px at 14px): lets \"Workforce Intelligence\" fit the 152px available. */\n letter-spacing: -0.04em;\n color: var(--nile-colors-dark-900, var(--ng-colors-text-secondary-700));\n }\n\n .chevron {\n flex: 0 0 auto;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: var(--nile-height-20px, var(--ng-height-20px));\n height: var(--nile-height-20px, var(--ng-height-20px));\n }\n\n /* Collapsed: only the logo remains, centred in the 40px control. The label and selector are removed from layout and the accessibility tree (the button keeps its aria-label), so neither can be clipped into view or focused. */\n :host([collapsed]) .switcher {\n justify-content: center;\n }\n\n :host([collapsed]) .label,\n :host([collapsed]) .chevron {\n display: none;\n }\n`;\n\nexport default [styles];"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAcaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
@@ -0,0 +1,83 @@
1
+ import{css as e}from"lit";const t=e`
2
+ :host {
3
+ display: block;
4
+ min-width: 0;
5
+ }
6
+
7
+ .switcher {
8
+ display: flex;
9
+ align-items: center;
10
+ gap: var(--nile-spacing-md, var(--ng-spacing-md));
11
+ box-sizing: border-box;
12
+ width: 100%;
13
+ height: var(--nile-height-40px, var(--ng-height-40px));
14
+ margin: var(--nile-spacing-none, var(--ng-spacing-none));
15
+ padding: var(--nile-spacing-sm, var(--ng-spacing-sm));
16
+ border: var(--nile-border-width-0, var(--ng-border-width-0));
17
+ border-radius: var(--nile-radius-md, var(--ng-radius-md));
18
+ /* NxtGen rests transparent with no visible stroke; Enterprise keeps its neutral-100 fill and neutral-400 stroke. */
19
+ background: var(--nile-colors-neutral-100, transparent);
20
+ box-shadow: inset 0 0 0 1px var(--nile-colors-neutral-400, transparent);
21
+ overflow: hidden;
22
+ cursor: pointer;
23
+ font: inherit;
24
+ color: inherit;
25
+ text-align: start;
26
+ }
27
+
28
+ /* Hover fills the container with bg-secondary-subtle and draws a 1px border-secondary stroke; the label and chevron colors do not change. The stroke is the same inset shadow as the Enterprise rest state, so it never changes the 40px box; Enterprise's fill and stroke already match, so it is unchanged. */
29
+ .switcher:hover {
30
+ background: var(--nile-colors-neutral-100, var(--ng-colors-bg-secondary-subtle));
31
+ box-shadow: inset 0 0 0 1px var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));
32
+ }
33
+
34
+ .logo {
35
+ flex: 0 0 auto;
36
+ display: inline-flex;
37
+ width: var(--nile-height-28px, var(--ng-height-28px));
38
+ height: var(--nile-height-28px, var(--ng-height-28px));
39
+ }
40
+
41
+ .logo img,
42
+ ::slotted([slot='logo']) {
43
+ display: block;
44
+ width: 100%;
45
+ height: 100%;
46
+ object-fit: contain;
47
+ }
48
+
49
+ /* Text sm (14px) on a 24px line, Bold. */
50
+ .label {
51
+ flex: 1 1 auto;
52
+ min-width: 0;
53
+ white-space: nowrap;
54
+ overflow: hidden;
55
+ text-overflow: ellipsis;
56
+ font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
57
+ font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));
58
+ line-height: var(--nile-line-height-medium, var(--ng-line-height-text-md));
59
+ font-weight: var(--nile-font-weight-bold, var(--ng-font-weight-bold));
60
+ /* -4% tracking (-0.56px at 14px): lets "Workforce Intelligence" fit the 152px available. */
61
+ letter-spacing: -0.04em;
62
+ color: var(--nile-colors-dark-900, var(--ng-colors-text-secondary-700));
63
+ }
64
+
65
+ .chevron {
66
+ flex: 0 0 auto;
67
+ display: inline-flex;
68
+ align-items: center;
69
+ justify-content: center;
70
+ width: var(--nile-height-20px, var(--ng-height-20px));
71
+ height: var(--nile-height-20px, var(--ng-height-20px));
72
+ }
73
+
74
+ /* Collapsed: only the logo remains, centred in the 40px control. The label and selector are removed from layout and the accessibility tree (the button keeps its aria-label), so neither can be clipped into view or focused. */
75
+ :host([collapsed]) .switcher {
76
+ justify-content: center;
77
+ }
78
+
79
+ :host([collapsed]) .label,
80
+ :host([collapsed]) .chevron {
81
+ display: none;
82
+ }
83
+ `;export{t as s};