@aquera/nile-elements 2.0.21 → 2.0.23

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 (502) 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 +1954 -937
  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-empty-state/nile-empty-state.cjs.js +1 -1
  87. package/dist/nile-empty-state/nile-empty-state.cjs.js.map +1 -1
  88. package/dist/nile-empty-state/nile-empty-state.esm.js +4 -4
  89. package/dist/nile-filter-chip/nile-filter-chip.css.cjs.js +1 -1
  90. package/dist/nile-filter-chip/nile-filter-chip.css.cjs.js.map +1 -1
  91. package/dist/nile-filter-chip/nile-filter-chip.css.esm.js +2 -2
  92. package/dist/nile-form-group/nile-form-group.css.cjs.js +1 -1
  93. package/dist/nile-form-group/nile-form-group.css.cjs.js.map +1 -1
  94. package/dist/nile-form-group/nile-form-group.css.esm.js +3 -3
  95. package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.css.cjs.js +1 -1
  96. package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.css.cjs.js.map +1 -1
  97. package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.css.esm.js +20 -4
  98. package/dist/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.cjs.js +1 -1
  99. package/dist/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.cjs.js.map +1 -1
  100. package/dist/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.esm.js +3 -3
  101. package/dist/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.cjs.js +1 -1
  102. package/dist/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.cjs.js.map +1 -1
  103. package/dist/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.esm.js +3 -3
  104. package/dist/nile-markdown-editor/nile-markdown-editor.css.cjs.js +1 -1
  105. package/dist/nile-markdown-editor/nile-markdown-editor.css.cjs.js.map +1 -1
  106. package/dist/nile-markdown-editor/nile-markdown-editor.css.esm.js +4 -4
  107. package/dist/nile-menu/nile-menu.css.cjs.js +1 -1
  108. package/dist/nile-menu/nile-menu.css.cjs.js.map +1 -1
  109. package/dist/nile-menu/nile-menu.css.esm.js +1 -2
  110. package/dist/nile-menu-item/nile-menu-item.css.cjs.js +1 -1
  111. package/dist/nile-menu-item/nile-menu-item.css.cjs.js.map +1 -1
  112. package/dist/nile-menu-item/nile-menu-item.css.esm.js +6 -6
  113. package/dist/nile-nav-tab/nile-nav-tab.css.cjs.js +1 -1
  114. package/dist/nile-nav-tab/nile-nav-tab.css.cjs.js.map +1 -1
  115. package/dist/nile-nav-tab/nile-nav-tab.css.esm.js +3 -3
  116. package/dist/nile-nav-tab-group/nile-nav-tab-group.css.cjs.js +1 -1
  117. package/dist/nile-nav-tab-group/nile-nav-tab-group.css.cjs.js.map +1 -1
  118. package/dist/nile-nav-tab-group/nile-nav-tab-group.css.esm.js +15 -12
  119. package/dist/nile-option/nile-option.css.cjs.js +1 -1
  120. package/dist/nile-option/nile-option.css.cjs.js.map +1 -1
  121. package/dist/nile-option/nile-option.css.esm.js +2 -2
  122. package/dist/nile-pagination/nile-pagination.cjs.js +1 -1
  123. package/dist/nile-pagination/nile-pagination.cjs.js.map +1 -1
  124. package/dist/nile-pagination/nile-pagination.css.cjs.js +1 -1
  125. package/dist/nile-pagination/nile-pagination.css.cjs.js.map +1 -1
  126. package/dist/nile-pagination/nile-pagination.css.esm.js +10 -0
  127. package/dist/nile-pagination/nile-pagination.esm.js +14 -14
  128. package/dist/nile-side-bar/nile-side-bar.cjs.js +1 -1
  129. package/dist/nile-side-bar/nile-side-bar.cjs.js.map +1 -1
  130. package/dist/nile-side-bar/nile-side-bar.css.cjs.js +1 -1
  131. package/dist/nile-side-bar/nile-side-bar.css.cjs.js.map +1 -1
  132. package/dist/nile-side-bar/nile-side-bar.css.esm.js +16 -14
  133. package/dist/nile-side-bar/nile-side-bar.esm.js +2 -2
  134. package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.css.cjs.js +1 -1
  135. package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.css.cjs.js.map +1 -1
  136. package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.css.esm.js +11 -4
  137. package/dist/nile-side-bar-footer/nile-side-bar-footer.cjs.js.map +1 -1
  138. package/dist/nile-side-bar-footer/nile-side-bar-footer.css.cjs.js +1 -1
  139. package/dist/nile-side-bar-footer/nile-side-bar-footer.css.cjs.js.map +1 -1
  140. package/dist/nile-side-bar-footer/nile-side-bar-footer.css.esm.js +8 -3
  141. package/dist/nile-side-bar-footer-item/index.cjs.js +1 -1
  142. package/dist/nile-side-bar-footer-item/index.esm.js +1 -1
  143. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.cjs.js +1 -1
  144. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.cjs.js.map +1 -1
  145. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.css.cjs.js +1 -1
  146. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.css.cjs.js.map +1 -1
  147. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.css.esm.js +181 -25
  148. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.esm.js +10 -3
  149. package/dist/nile-side-bar-footer-text/nile-side-bar-footer-text.css.cjs.js +1 -1
  150. package/dist/nile-side-bar-footer-text/nile-side-bar-footer-text.css.cjs.js.map +1 -1
  151. package/dist/nile-side-bar-footer-text/nile-side-bar-footer-text.css.esm.js +10 -5
  152. package/dist/nile-side-bar-group/nile-side-bar-group.cjs.js +1 -1
  153. package/dist/nile-side-bar-group/nile-side-bar-group.cjs.js.map +1 -1
  154. package/dist/nile-side-bar-group/nile-side-bar-group.css.cjs.js +1 -1
  155. package/dist/nile-side-bar-group/nile-side-bar-group.css.cjs.js.map +1 -1
  156. package/dist/nile-side-bar-group/nile-side-bar-group.css.esm.js +52 -9
  157. package/dist/nile-side-bar-group/nile-side-bar-group.esm.js +4 -4
  158. package/dist/nile-side-bar-group-item/nile-side-bar-group-item.css.cjs.js +1 -1
  159. package/dist/nile-side-bar-group-item/nile-side-bar-group-item.css.cjs.js.map +1 -1
  160. package/dist/nile-side-bar-group-item/nile-side-bar-group-item.css.esm.js +53 -8
  161. package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.cjs.js +1 -1
  162. package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.cjs.js.map +1 -1
  163. package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.cjs.js +1 -1
  164. package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.cjs.js.map +1 -1
  165. package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.esm.js +13 -4
  166. package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.esm.js +4 -4
  167. package/dist/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.cjs.js +1 -1
  168. package/dist/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.cjs.js.map +1 -1
  169. package/dist/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.esm.js +9 -6
  170. package/dist/nile-side-bar-header/nile-side-bar-header.cjs.js.map +1 -1
  171. package/dist/nile-side-bar-header/nile-side-bar-header.css.cjs.js +1 -1
  172. package/dist/nile-side-bar-header/nile-side-bar-header.css.cjs.js.map +1 -1
  173. package/dist/nile-side-bar-header/nile-side-bar-header.css.esm.js +12 -5
  174. package/dist/nile-side-bar-header-switcher/index.cjs.js +2 -0
  175. package/dist/nile-side-bar-header-switcher/index.cjs.js.map +1 -0
  176. package/dist/nile-side-bar-header-switcher/index.esm.js +1 -0
  177. package/dist/nile-side-bar-header-switcher/nile-side-bar-header-switcher.cjs.js +2 -0
  178. package/dist/nile-side-bar-header-switcher/nile-side-bar-header-switcher.cjs.js.map +1 -0
  179. package/dist/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.cjs.js +2 -0
  180. package/dist/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.cjs.js.map +1 -0
  181. package/dist/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.esm.js +83 -0
  182. package/dist/nile-side-bar-header-switcher/nile-side-bar-header-switcher.esm.js +24 -0
  183. package/dist/nile-side-bar-search/index.cjs.js +2 -0
  184. package/dist/nile-side-bar-search/index.cjs.js.map +1 -0
  185. package/dist/nile-side-bar-search/index.esm.js +1 -0
  186. package/dist/nile-side-bar-search/nile-side-bar-search.cjs.js +2 -0
  187. package/dist/nile-side-bar-search/nile-side-bar-search.cjs.js.map +1 -0
  188. package/dist/nile-side-bar-search/nile-side-bar-search.css.cjs.js +2 -0
  189. package/dist/nile-side-bar-search/nile-side-bar-search.css.cjs.js.map +1 -0
  190. package/dist/nile-side-bar-search/nile-side-bar-search.css.esm.js +103 -0
  191. package/dist/nile-side-bar-search/nile-side-bar-search.esm.js +25 -0
  192. package/dist/nile-slide-toggle/nile-slide-toggle.css.cjs.js +1 -1
  193. package/dist/nile-slide-toggle/nile-slide-toggle.css.cjs.js.map +1 -1
  194. package/dist/nile-slide-toggle/nile-slide-toggle.css.esm.js +1 -1
  195. package/dist/nile-tooltip/nile-tooltip.css.cjs.js +1 -1
  196. package/dist/nile-tooltip/nile-tooltip.css.cjs.js.map +1 -1
  197. package/dist/nile-tooltip/nile-tooltip.css.esm.js +7 -5
  198. package/dist/nile-virtual-select/nile-virtual-select.css.cjs.js +1 -1
  199. package/dist/nile-virtual-select/nile-virtual-select.css.cjs.js.map +1 -1
  200. package/dist/nile-virtual-select/nile-virtual-select.css.esm.js +1 -1
  201. package/dist/nile-wysiwyg-editor/index.cjs.js +1 -1
  202. package/dist/nile-wysiwyg-editor/index.esm.js +1 -1
  203. package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.cjs.js +1 -1
  204. package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.cjs.js.map +1 -1
  205. package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.css.cjs.js +1 -1
  206. package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.css.cjs.js.map +1 -1
  207. package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.css.esm.js +75 -3
  208. package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.esm.js +3 -2
  209. package/dist/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.cjs.js +1 -1
  210. package/dist/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.cjs.js.map +1 -1
  211. package/dist/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.esm.js +3 -3
  212. package/dist/nile-wysiwyg-editor/types.cjs.js +1 -1
  213. package/dist/nile-wysiwyg-editor/types.cjs.js.map +1 -1
  214. package/dist/nile-wysiwyg-editor/types.esm.js +1 -1
  215. package/dist/src/index.d.ts +6 -0
  216. package/dist/src/index.js +6 -0
  217. package/dist/src/index.js.map +1 -1
  218. package/dist/src/nile-app-shell/nile-app-shell.css.js +70 -63
  219. package/dist/src/nile-app-shell/nile-app-shell.css.js.map +1 -1
  220. package/dist/src/nile-app-shell/nile-app-shell.d.ts +40 -7
  221. package/dist/src/nile-app-shell/nile-app-shell.js +192 -41
  222. package/dist/src/nile-app-shell/nile-app-shell.js.map +1 -1
  223. package/dist/src/nile-app-shell/nile-app-shell.test.d.ts +2 -0
  224. package/dist/src/nile-app-shell/nile-app-shell.test.js +272 -1020
  225. package/dist/src/nile-app-shell/nile-app-shell.test.js.map +1 -1
  226. package/dist/src/nile-app-shell/zz-layout.test.d.ts +15 -0
  227. package/dist/src/nile-app-shell/zz-layout.test.js +253 -0
  228. package/dist/src/nile-app-shell/zz-layout.test.js.map +1 -0
  229. package/dist/src/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.js +1 -1
  230. package/dist/src/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.js.map +1 -1
  231. package/dist/src/nile-app-shell-side-nav/nile-app-shell-side-nav.css.js +24 -6
  232. package/dist/src/nile-app-shell-side-nav/nile-app-shell-side-nav.css.js.map +1 -1
  233. package/dist/src/nile-app-shell-side-nav/nile-app-shell-side-nav.d.ts +8 -2
  234. package/dist/src/nile-app-shell-side-nav/nile-app-shell-side-nav.js +56 -2
  235. package/dist/src/nile-app-shell-side-nav/nile-app-shell-side-nav.js.map +1 -1
  236. package/dist/src/nile-button-filter/nile-button-filter.css.js +1 -1
  237. package/dist/src/nile-button-filter/nile-button-filter.css.js.map +1 -1
  238. package/dist/src/nile-button-filter/nile-button-filter.js +1 -3
  239. package/dist/src/nile-button-filter/nile-button-filter.js.map +1 -1
  240. package/dist/src/nile-calendar/nile-calendar.css.js +9 -8
  241. package/dist/src/nile-calendar/nile-calendar.css.js.map +1 -1
  242. package/dist/src/nile-color-picker/nile-color-picker.css.js +3 -3
  243. package/dist/src/nile-color-picker/nile-color-picker.css.js.map +1 -1
  244. package/dist/src/nile-combobox/nile-combobox.css.js +1 -1
  245. package/dist/src/nile-combobox/nile-combobox.css.js.map +1 -1
  246. package/dist/src/nile-command-menu-item/nile-command-menu-item.css.js +5 -1
  247. package/dist/src/nile-command-menu-item/nile-command-menu-item.css.js.map +1 -1
  248. package/dist/src/nile-context-menu/nile-context-menu.css.js +2 -4
  249. package/dist/src/nile-context-menu/nile-context-menu.css.js.map +1 -1
  250. package/dist/src/nile-dropdown-switcher/index.d.ts +1 -0
  251. package/dist/src/nile-dropdown-switcher/index.js +2 -0
  252. package/dist/src/nile-dropdown-switcher/index.js.map +1 -0
  253. package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.css.d.ts +10 -0
  254. package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.css.js +49 -0
  255. package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.css.js.map +1 -0
  256. package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.d.ts +101 -0
  257. package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.js +463 -0
  258. package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.js.map +1 -0
  259. package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.test.d.ts +4 -0
  260. package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.test.js +506 -0
  261. package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.test.js.map +1 -0
  262. package/dist/src/nile-dropdown-switcher-group/index.d.ts +1 -0
  263. package/dist/src/nile-dropdown-switcher-group/index.js +2 -0
  264. package/dist/src/nile-dropdown-switcher-group/index.js.map +1 -0
  265. package/dist/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.css.d.ts +12 -0
  266. package/dist/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.css.js +49 -0
  267. package/dist/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.css.js.map +1 -0
  268. package/dist/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.d.ts +37 -0
  269. package/dist/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.js +72 -0
  270. package/dist/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.js.map +1 -0
  271. package/dist/src/nile-dropdown-switcher-header/index.d.ts +1 -0
  272. package/dist/src/nile-dropdown-switcher-header/index.js +2 -0
  273. package/dist/src/nile-dropdown-switcher-header/index.js.map +1 -0
  274. package/dist/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.css.d.ts +12 -0
  275. package/dist/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.css.js +103 -0
  276. package/dist/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.css.js.map +1 -0
  277. package/dist/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.d.ts +46 -0
  278. package/dist/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.js +105 -0
  279. package/dist/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.js.map +1 -0
  280. package/dist/src/nile-dropdown-switcher-item/index.d.ts +1 -0
  281. package/dist/src/nile-dropdown-switcher-item/index.js +2 -0
  282. package/dist/src/nile-dropdown-switcher-item/index.js.map +1 -0
  283. package/dist/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.css.d.ts +10 -0
  284. package/dist/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.css.js +112 -0
  285. package/dist/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.css.js.map +1 -0
  286. package/dist/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.d.ts +55 -0
  287. package/dist/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.js +154 -0
  288. package/dist/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.js.map +1 -0
  289. package/dist/src/nile-empty-state/nile-empty-state.d.ts +5 -0
  290. package/dist/src/nile-empty-state/nile-empty-state.js +11 -2
  291. package/dist/src/nile-empty-state/nile-empty-state.js.map +1 -1
  292. package/dist/src/nile-empty-state/nile-empty-state.test.js +31 -0
  293. package/dist/src/nile-empty-state/nile-empty-state.test.js.map +1 -1
  294. package/dist/src/nile-filter-chip/nile-filter-chip.css.js +2 -2
  295. package/dist/src/nile-filter-chip/nile-filter-chip.css.js.map +1 -1
  296. package/dist/src/nile-form-group/nile-form-group.css.js +1 -1
  297. package/dist/src/nile-form-group/nile-form-group.css.js.map +1 -1
  298. package/dist/src/nile-inline-sidebar-item/nile-inline-sidebar-item.css.js +20 -4
  299. package/dist/src/nile-inline-sidebar-item/nile-inline-sidebar-item.css.js.map +1 -1
  300. package/dist/src/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.js +1 -1
  301. package/dist/src/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.js.map +1 -1
  302. package/dist/src/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.js +3 -3
  303. package/dist/src/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.js.map +1 -1
  304. package/dist/src/nile-markdown-editor/nile-markdown-editor.css.js +4 -4
  305. package/dist/src/nile-markdown-editor/nile-markdown-editor.css.js.map +1 -1
  306. package/dist/src/nile-menu/nile-menu.css.js +1 -2
  307. package/dist/src/nile-menu/nile-menu.css.js.map +1 -1
  308. package/dist/src/nile-menu-item/nile-menu-item.css.js +4 -4
  309. package/dist/src/nile-menu-item/nile-menu-item.css.js.map +1 -1
  310. package/dist/src/nile-nav-tab/nile-nav-tab.css.js +3 -3
  311. package/dist/src/nile-nav-tab/nile-nav-tab.css.js.map +1 -1
  312. package/dist/src/nile-nav-tab-group/nile-nav-tab-group.css.js +15 -12
  313. package/dist/src/nile-nav-tab-group/nile-nav-tab-group.css.js.map +1 -1
  314. package/dist/src/nile-nav-tab-group/nile-nav-tab-group.test.js +111 -0
  315. package/dist/src/nile-nav-tab-group/nile-nav-tab-group.test.js.map +1 -1
  316. package/dist/src/nile-option/nile-option.css.js +2 -2
  317. package/dist/src/nile-option/nile-option.css.js.map +1 -1
  318. package/dist/src/nile-pagination/nile-pagination.css.js +10 -0
  319. package/dist/src/nile-pagination/nile-pagination.css.js.map +1 -1
  320. package/dist/src/nile-pagination/nile-pagination.d.ts +2 -0
  321. package/dist/src/nile-pagination/nile-pagination.js +13 -9
  322. package/dist/src/nile-pagination/nile-pagination.js.map +1 -1
  323. package/dist/src/nile-side-bar/nile-side-bar.css.js +14 -12
  324. package/dist/src/nile-side-bar/nile-side-bar.css.js.map +1 -1
  325. package/dist/src/nile-side-bar/nile-side-bar.d.ts +17 -0
  326. package/dist/src/nile-side-bar/nile-side-bar.js +68 -12
  327. package/dist/src/nile-side-bar/nile-side-bar.js.map +1 -1
  328. package/dist/src/nile-side-bar/nile-side-bar.test.d.ts +23 -0
  329. package/dist/src/nile-side-bar/nile-side-bar.test.js +1614 -1
  330. package/dist/src/nile-side-bar/nile-side-bar.test.js.map +1 -1
  331. package/dist/src/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.css.js +11 -4
  332. package/dist/src/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.css.js.map +1 -1
  333. package/dist/src/nile-side-bar-footer/nile-side-bar-footer.css.js +8 -3
  334. package/dist/src/nile-side-bar-footer/nile-side-bar-footer.css.js.map +1 -1
  335. package/dist/src/nile-side-bar-footer/nile-side-bar-footer.d.ts +7 -5
  336. package/dist/src/nile-side-bar-footer/nile-side-bar-footer.js +7 -5
  337. package/dist/src/nile-side-bar-footer/nile-side-bar-footer.js.map +1 -1
  338. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.css.js +179 -23
  339. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.css.js.map +1 -1
  340. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.d.ts +15 -0
  341. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.js +82 -2
  342. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.js.map +1 -1
  343. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.test.d.ts +9 -0
  344. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.test.js +201 -0
  345. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.test.js.map +1 -0
  346. package/dist/src/nile-side-bar-footer-text/nile-side-bar-footer-text.css.js +8 -3
  347. package/dist/src/nile-side-bar-footer-text/nile-side-bar-footer-text.css.js.map +1 -1
  348. package/dist/src/nile-side-bar-group/nile-side-bar-group.css.js +50 -7
  349. package/dist/src/nile-side-bar-group/nile-side-bar-group.css.js.map +1 -1
  350. package/dist/src/nile-side-bar-group/nile-side-bar-group.d.ts +35 -0
  351. package/dist/src/nile-side-bar-group/nile-side-bar-group.js +90 -3
  352. package/dist/src/nile-side-bar-group/nile-side-bar-group.js.map +1 -1
  353. package/dist/src/nile-side-bar-group-item/nile-side-bar-group-item.css.js +52 -7
  354. package/dist/src/nile-side-bar-group-item/nile-side-bar-group-item.css.js.map +1 -1
  355. package/dist/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.js +11 -2
  356. package/dist/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.js.map +1 -1
  357. package/dist/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.d.ts +11 -2
  358. package/dist/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.js +21 -15
  359. package/dist/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.js.map +1 -1
  360. package/dist/src/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.js +7 -4
  361. package/dist/src/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.js.map +1 -1
  362. package/dist/src/nile-side-bar-header/nile-side-bar-app-shell.test.js +22 -17
  363. package/dist/src/nile-side-bar-header/nile-side-bar-app-shell.test.js.map +1 -1
  364. package/dist/src/nile-side-bar-header/nile-side-bar-header-surface.test.d.ts +4 -0
  365. package/dist/src/nile-side-bar-header/nile-side-bar-header-surface.test.js +143 -0
  366. package/dist/src/nile-side-bar-header/nile-side-bar-header-surface.test.js.map +1 -0
  367. package/dist/src/nile-side-bar-header/nile-side-bar-header.css.js +10 -3
  368. package/dist/src/nile-side-bar-header/nile-side-bar-header.css.js.map +1 -1
  369. package/dist/src/nile-side-bar-header/nile-side-bar-header.d.ts +7 -5
  370. package/dist/src/nile-side-bar-header/nile-side-bar-header.js +7 -5
  371. package/dist/src/nile-side-bar-header/nile-side-bar-header.js.map +1 -1
  372. package/dist/src/nile-side-bar-header-switcher/index.d.ts +1 -0
  373. package/dist/src/nile-side-bar-header-switcher/index.js +2 -0
  374. package/dist/src/nile-side-bar-header-switcher/index.js.map +1 -0
  375. package/dist/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.d.ts +14 -0
  376. package/dist/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.js +97 -0
  377. package/dist/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.js.map +1 -0
  378. package/dist/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.d.ts +38 -0
  379. package/dist/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.js +86 -0
  380. package/dist/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.js.map +1 -0
  381. package/dist/src/nile-side-bar-search/index.d.ts +1 -0
  382. package/dist/src/nile-side-bar-search/index.js +2 -0
  383. package/dist/src/nile-side-bar-search/index.js.map +1 -0
  384. package/dist/src/nile-side-bar-search/nile-side-bar-search.css.d.ts +15 -0
  385. package/dist/src/nile-side-bar-search/nile-side-bar-search.css.js +118 -0
  386. package/dist/src/nile-side-bar-search/nile-side-bar-search.css.js.map +1 -0
  387. package/dist/src/nile-side-bar-search/nile-side-bar-search.d.ts +56 -0
  388. package/dist/src/nile-side-bar-search/nile-side-bar-search.js +150 -0
  389. package/dist/src/nile-side-bar-search/nile-side-bar-search.js.map +1 -0
  390. package/dist/src/nile-side-bar-search/nile-side-bar-search.test.d.ts +3 -0
  391. package/dist/src/nile-side-bar-search/nile-side-bar-search.test.js +153 -0
  392. package/dist/src/nile-side-bar-search/nile-side-bar-search.test.js.map +1 -0
  393. package/dist/src/nile-slide-toggle/nile-slide-toggle.css.js +1 -1
  394. package/dist/src/nile-slide-toggle/nile-slide-toggle.css.js.map +1 -1
  395. package/dist/src/nile-tooltip/nile-tooltip.css.js +7 -5
  396. package/dist/src/nile-tooltip/nile-tooltip.css.js.map +1 -1
  397. package/dist/src/nile-virtual-select/nile-virtual-select.css.js +1 -1
  398. package/dist/src/nile-virtual-select/nile-virtual-select.css.js.map +1 -1
  399. package/dist/src/nile-wysiwyg-editor/index.d.ts +2 -1
  400. package/dist/src/nile-wysiwyg-editor/index.js +1 -1
  401. package/dist/src/nile-wysiwyg-editor/index.js.map +1 -1
  402. package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.css.js +77 -2
  403. package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.css.js.map +1 -1
  404. package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.d.ts +20 -0
  405. package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.js +37 -1
  406. package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.js.map +1 -1
  407. package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.test.js +108 -0
  408. package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.test.js.map +1 -1
  409. package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.js +3 -3
  410. package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.js.map +1 -1
  411. package/dist/src/nile-wysiwyg-editor/types.d.ts +8 -0
  412. package/dist/src/nile-wysiwyg-editor/types.js +50 -0
  413. package/dist/src/nile-wysiwyg-editor/types.js.map +1 -1
  414. package/dist/src/version.js +1 -1
  415. package/dist/src/version.js.map +1 -1
  416. package/dist/tsconfig.tsbuildinfo +1 -1
  417. package/dist/version.cjs.js +1 -1
  418. package/dist/version.cjs.js.map +1 -1
  419. package/dist/version.esm.js +1 -1
  420. package/package.json +1 -1
  421. package/src/index.ts +6 -0
  422. package/src/nile-app-shell/nile-app-shell.css.ts +70 -63
  423. package/src/nile-app-shell/nile-app-shell.test.ts +332 -1227
  424. package/src/nile-app-shell/nile-app-shell.ts +223 -44
  425. package/src/nile-app-shell/zz-layout.test.ts +271 -0
  426. package/src/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.ts +1 -5
  427. package/src/nile-app-shell-side-nav/nile-app-shell-side-nav.css.ts +24 -6
  428. package/src/nile-app-shell-side-nav/nile-app-shell-side-nav.ts +62 -2
  429. package/src/nile-button-filter/nile-button-filter.css.ts +1 -1
  430. package/src/nile-button-filter/nile-button-filter.ts +1 -3
  431. package/src/nile-calendar/nile-calendar.css.ts +9 -8
  432. package/src/nile-color-picker/nile-color-picker.css.ts +3 -3
  433. package/src/nile-combobox/nile-combobox.css.ts +1 -1
  434. package/src/nile-command-menu-item/nile-command-menu-item.css.ts +5 -1
  435. package/src/nile-context-menu/nile-context-menu.css.ts +2 -4
  436. package/src/nile-dropdown-switcher/index.ts +1 -0
  437. package/src/nile-dropdown-switcher/nile-dropdown-switcher.css.ts +51 -0
  438. package/src/nile-dropdown-switcher/nile-dropdown-switcher.test.ts +570 -0
  439. package/src/nile-dropdown-switcher/nile-dropdown-switcher.ts +502 -0
  440. package/src/nile-dropdown-switcher-group/index.ts +1 -0
  441. package/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.css.ts +51 -0
  442. package/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.ts +78 -0
  443. package/src/nile-dropdown-switcher-header/index.ts +1 -0
  444. package/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.css.ts +105 -0
  445. package/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.ts +105 -0
  446. package/src/nile-dropdown-switcher-item/index.ts +1 -0
  447. package/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.css.ts +114 -0
  448. package/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.ts +151 -0
  449. package/src/nile-empty-state/nile-empty-state.test.ts +24 -0
  450. package/src/nile-empty-state/nile-empty-state.ts +12 -2
  451. package/src/nile-filter-chip/nile-filter-chip.css.ts +2 -2
  452. package/src/nile-form-group/nile-form-group.css.ts +1 -1
  453. package/src/nile-inline-sidebar-item/nile-inline-sidebar-item.css.ts +20 -4
  454. package/src/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.ts +1 -1
  455. package/src/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.ts +3 -3
  456. package/src/nile-markdown-editor/nile-markdown-editor.css.ts +4 -4
  457. package/src/nile-menu/nile-menu.css.ts +1 -2
  458. package/src/nile-menu-item/nile-menu-item.css.ts +4 -4
  459. package/src/nile-nav-tab/nile-nav-tab.css.ts +3 -3
  460. package/src/nile-nav-tab-group/nile-nav-tab-group.css.ts +15 -12
  461. package/src/nile-nav-tab-group/nile-nav-tab-group.test.ts +130 -0
  462. package/src/nile-option/nile-option.css.ts +2 -2
  463. package/src/nile-pagination/nile-pagination.css.ts +10 -0
  464. package/src/nile-pagination/nile-pagination.ts +14 -9
  465. package/src/nile-side-bar/nile-side-bar.css.ts +14 -12
  466. package/src/nile-side-bar/nile-side-bar.test.ts +1854 -2
  467. package/src/nile-side-bar/nile-side-bar.ts +72 -15
  468. package/src/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.css.ts +11 -4
  469. package/src/nile-side-bar-footer/nile-side-bar-footer.css.ts +8 -3
  470. package/src/nile-side-bar-footer/nile-side-bar-footer.ts +7 -5
  471. package/src/nile-side-bar-footer-item/nile-side-bar-footer-item.css.ts +179 -23
  472. package/src/nile-side-bar-footer-item/nile-side-bar-footer-item.test.ts +219 -0
  473. package/src/nile-side-bar-footer-item/nile-side-bar-footer-item.ts +84 -2
  474. package/src/nile-side-bar-footer-text/nile-side-bar-footer-text.css.ts +8 -3
  475. package/src/nile-side-bar-group/nile-side-bar-group.css.ts +50 -7
  476. package/src/nile-side-bar-group/nile-side-bar-group.ts +100 -2
  477. package/src/nile-side-bar-group-item/nile-side-bar-group-item.css.ts +52 -7
  478. package/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.ts +11 -2
  479. package/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.ts +22 -19
  480. package/src/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.ts +7 -4
  481. package/src/nile-side-bar-header/nile-side-bar-app-shell.test.ts +22 -17
  482. package/src/nile-side-bar-header/nile-side-bar-header-surface.test.ts +175 -0
  483. package/src/nile-side-bar-header/nile-side-bar-header.css.ts +10 -3
  484. package/src/nile-side-bar-header/nile-side-bar-header.ts +7 -5
  485. package/src/nile-side-bar-header-switcher/index.ts +1 -0
  486. package/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.ts +99 -0
  487. package/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.ts +88 -0
  488. package/src/nile-side-bar-search/index.ts +1 -0
  489. package/src/nile-side-bar-search/nile-side-bar-search.css.ts +120 -0
  490. package/src/nile-side-bar-search/nile-side-bar-search.test.ts +175 -0
  491. package/src/nile-side-bar-search/nile-side-bar-search.ts +160 -0
  492. package/src/nile-slide-toggle/nile-slide-toggle.css.ts +1 -1
  493. package/src/nile-tooltip/nile-tooltip.css.ts +7 -5
  494. package/src/nile-virtual-select/nile-virtual-select.css.ts +1 -1
  495. package/src/nile-wysiwyg-editor/index.ts +2 -1
  496. package/src/nile-wysiwyg-editor/nile-wysiwyg-editor.css.ts +78 -2
  497. package/src/nile-wysiwyg-editor/nile-wysiwyg-editor.test.ts +132 -0
  498. package/src/nile-wysiwyg-editor/nile-wysiwyg-editor.ts +40 -1
  499. package/src/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.ts +3 -3
  500. package/src/nile-wysiwyg-editor/types.ts +52 -0
  501. package/test-timings.json +0 -1
  502. package/vscode-html-custom-data.json +372 -24
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-side-bar-header-surface.test.js","sourceRoot":"","sources":["../../../src/nile-side-bar-header/nile-side-bar-header-surface.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,gCAAgC,CAAC;AACxC,OAAO,wBAAwB,CAAC;AAChC,OAAO,8CAA8C,CAAC;AACtD,OAAO,4CAA4C,CAAC;AAKpD,MAAM,WAAW,GAAG,kBAAkB,CAAC;AAEvC,MAAM,SAAS,GAAG,CAAC,IAAY,EAAE,EAAE,CACjC,IAAI,OAAO,CAAkB,CAAC,WAAW,EAAE,MAAM,EAAE,EAAE;IACnD,MAAM,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IAC5C,IAAI,CAAC,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AE,CAAC,wCAAwC,EAAE,KAAK,IAAI,EAAE;QACtD,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,MAAM,KAAK,CAAC,EAAE,UAAU,EAAE,aAAa,EAAE,CAAC,CAAC;QACnE,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,2BAA2B,CAAC,EAAE,aAAa,CAAC,CAAC;IACrF,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,0DAA0D,EAAE,KAAK,IAAI,EAAE;QACxE,MAAM,KAAK,GAAG,MAAM,OAAO,CAAoB,IAAI,CAAA,+CAA+C,CAAC,CAAC;QACpG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,2BAA2B,CAAC,CAAC,CAAC;QACnE,MAAM,MAAM,GAAG,MAAM,OAAO,CAAoB,IAAI,CAAA,+CAA+C,CAAC,CAAC;QACrG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,2BAA2B,CAAC,CAAC,CAAC;IACtE,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { expect, fixture, html } from '@open-wc/testing';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport '../nile-side-bar/nile-side-bar';\nimport './nile-side-bar-header';\nimport '../nile-side-bar-footer/nile-side-bar-footer';\nimport '../nile-side-bar-group/nile-side-bar-group';\nimport type { NileSideBar } from '../nile-side-bar/nile-side-bar';\nimport type { NileSideBarHeader } from './nile-side-bar-header';\nimport type { NileSideBarFooter } from '../nile-side-bar-footer/nile-side-bar-footer';\n\nconst TRANSPARENT = 'rgba(0, 0, 0, 0)';\n\nconst loadSheet = (href: string) =>\n new Promise<HTMLLinkElement>((resolveLoad, reject) => {\n const link = document.createElement('link');\n link.rel = 'stylesheet';\n link.href = href;\n link.onload = () => resolveLoad(link);\n link.onerror = () => reject(new Error(`could not load ${href}`));\n document.head.append(link);\n });\n\n// A token's colour as the browser resolves it, so no hex value is written in this file.\nconst resolve = (token: string): string => {\n const probe = document.createElement('div');\n probe.style.backgroundColor = `var(${token})`;\n document.body.append(probe);\n const colour = getComputedStyle(probe).backgroundColor;\n probe.remove();\n return colour;\n};\n\ninterface MountOptions {\n background?: string;\n collapsed?: boolean;\n style?: string;\n}\n\nconst mount = async ({ background, collapsed, style }: MountOptions = {}) => {\n const bar = await fixture<NileSideBar>(html`\n <nile-side-bar ?collapsed=${collapsed} style=\"transition: none\">\n <nile-side-bar-header background=${ifDefined(background)} style=${ifDefined(style)}>\n <span slot=\"logo\">Aquera</span>\n </nile-side-bar-header>\n <nile-side-bar-group></nile-side-bar-group>\n <nile-side-bar-footer background=${ifDefined(background)} style=${ifDefined(style)}></nile-side-bar-footer>\n </nile-side-bar>\n `);\n const header = bar.querySelector('nile-side-bar-header') as NileSideBarHeader;\n const footer = bar.querySelector('nile-side-bar-footer') as NileSideBarFooter;\n await header.updateComplete;\n await footer.updateComplete;\n await bar.updateComplete;\n return { bar, header, footer };\n};\n\nconst bgOf = (el: Element) => getComputedStyle(el).backgroundColor;\n\n/** The header paints nothing, so what shows through it is the sidebar's own surface. */\nconst expectOneSurface = (bar: Element, header: Element, surface: string, label: string) => {\n expect(bgOf(header), `${label}: header paints nothing`).to.equal(TRANSPARENT);\n const footer = bar.querySelector('nile-side-bar-footer')!;\n expect(bgOf(footer), `${label}: footer paints nothing`).to.equal(TRANSPARENT);\n expect(bgOf(bar), `${label}: sidebar surface`).to.equal(surface);\n};\n\nfor (const theme of ['light', 'dark'] as const) {\n describe(`nile-side-bar-header surface (NxtGen ${theme})`, () => {\n let sheet: HTMLLinkElement;\n before(async () => {\n sheet = await loadSheet('/demo/nxtgen-dark.css');\n });\n after(() => {\n sheet.remove();\n document.documentElement.removeAttribute('data-theme');\n });\n beforeEach(() => document.documentElement.setAttribute('data-theme', theme));\n\n it('follows the sidebar bg-tertiary with no background attribute, expanded and collapsed', async () => {\n for (const collapsed of [false, true]) {\n const { bar, header } = await mount({ collapsed });\n expectOneSurface(bar, header, resolve('--ng-colors-bg-tertiary'), collapsed ? 'collapsed' : 'expanded');\n }\n });\n\n it('is not the old bg-primary default', async () => {\n const { header } = await mount();\n expect(bgOf(header)).to.not.equal(resolve('--ng-colors-bg-primary'));\n });\n\n it('reflects background=\"default\" and still follows the sidebar', async () => {\n const { bar, header } = await mount();\n expect(header.getAttribute('background')).to.equal('default');\n expectOneSurface(bar, header, resolve('--ng-colors-bg-tertiary'), 'default');\n });\n\n it('keeps background=\"transparent\" working', async () => {\n const { bar, header } = await mount({ background: 'transparent' });\n expectOneSurface(bar, header, resolve('--ng-colors-bg-tertiary'), 'transparent');\n });\n\n it('lets an author rule on the header win over the sidebar default', async () => {\n const { header, footer } = await mount({ style: 'background: rgb(9, 8, 7)' });\n expect(bgOf(header)).to.equal('rgb(9, 8, 7)');\n expect(bgOf(footer)).to.equal('rgb(9, 8, 7)');\n });\n\n it('a header on its own keeps painting bg-primary, and transparent still removes it', async () => {\n const alone = await fixture<NileSideBarHeader>(html`<nile-side-bar-header></nile-side-bar-header>`);\n expect(bgOf(alone)).to.equal(resolve('--ng-colors-bg-primary'));\n const bare = await fixture<NileSideBarHeader>(\n html`<nile-side-bar-header background=\"transparent\"></nile-side-bar-header>`\n );\n expect(bgOf(bare)).to.equal(TRANSPARENT);\n const footer = await fixture<NileSideBarFooter>(html`<nile-side-bar-footer></nile-side-bar-footer>`);\n expect(bgOf(footer), 'a footer on its own keeps bg-primary').to.equal(resolve('--ng-colors-bg-primary'));\n const bareFooter = await fixture<NileSideBarFooter>(\n html`<nile-side-bar-footer background=\"transparent\"></nile-side-bar-footer>`\n );\n expect(bgOf(bareFooter)).to.equal(TRANSPARENT);\n });\n\n it('changes no sidebar border, width or header spacing', async () => {\n const expanded = await mount();\n expect(getComputedStyle(expanded.bar).borderRightWidth, 'no NxtGen right border').to.equal('0px');\n expect(expanded.bar.getBoundingClientRect().width).to.equal(260);\n const style = getComputedStyle(expanded.header);\n expect([style.paddingTop, style.paddingLeft, style.paddingRight, style.paddingBottom]).to.deep.equal([\n '12px',\n '16px',\n '16px',\n '16px',\n ]);\n const collapsed = await mount({ collapsed: true });\n expect(collapsed.bar.getBoundingClientRect().width).to.equal(72);\n expect(getComputedStyle(collapsed.bar).borderRightWidth).to.equal('0px');\n });\n });\n}\n\ndescribe('nile-side-bar-header surface (Enterprise)', () => {\n let sheet: HTMLLinkElement;\n before(async () => {\n sheet = await loadSheet('/demo/variables.css');\n });\n after(() => sheet.remove());\n\n it('follows the enterprise sidebar surface (neutral-100) with no background attribute, expanded and collapsed', async () => {\n for (const collapsed of [false, true]) {\n const { bar, header } = await mount({ collapsed });\n expectOneSurface(bar, header, resolve('--nile-colors-neutral-100'), collapsed ? 'collapsed' : 'expanded');\n }\n });\n\n it('leaves the enterprise sidebar border and size as they were', async () => {\n const { bar } = await mount();\n expect(getComputedStyle(bar).borderRightWidth).to.equal('1px');\n // 240px of width plus the 1px enterprise border (content-box), unchanged by the header.\n expect(bar.getBoundingClientRect().width).to.equal(241);\n const collapsed = await mount({ collapsed: true });\n expect(collapsed.bar.getBoundingClientRect().width).to.equal(71);\n });\n\n it('keeps background=\"transparent\" working', async () => {\n const { bar, header } = await mount({ background: 'transparent' });\n expectOneSurface(bar, header, resolve('--nile-colors-neutral-100'), 'transparent');\n });\n\n it('a header or footer on its own keeps painting neutral-100', async () => {\n const alone = await fixture<NileSideBarHeader>(html`<nile-side-bar-header></nile-side-bar-header>`);\n expect(bgOf(alone)).to.equal(resolve('--nile-colors-neutral-100'));\n const footer = await fixture<NileSideBarFooter>(html`<nile-side-bar-footer></nile-side-bar-footer>`);\n expect(bgOf(footer)).to.equal(resolve('--nile-colors-neutral-100'));\n });\n});\n"]}
@@ -13,10 +13,10 @@ export const styles = css `
13
13
  display: flex;
14
14
  align-items: center;
15
15
  justify-content: space-between;
16
- padding-top: var(--nile-spacing-xl, var(--ng-spacing-3xl));
16
+ padding-top: var(--nile-spacing-xl, var(--ng-spacing-lg));
17
17
  padding-bottom: var(--nile-spacing-lg, var(--ng-spacing-xl));
18
- padding-left: var(--nile-spacing-xl, var(--ng-spacing-2xl));
19
- padding-right: var(--nile-spacing-xl, var(--ng-spacing-2xl));
18
+ padding-left: var(--nile-spacing-xl, var(--ng-spacing-xl));
19
+ padding-right: var(--nile-spacing-xl, var(--ng-spacing-xl));
20
20
  top: 0;
21
21
  background: var(--nile-colors-neutral-100, var(--ng-colors-bg-primary));
22
22
  }
@@ -52,6 +52,13 @@ export const styles = css `
52
52
  text-transform: none;
53
53
  }
54
54
 
55
+ /* The workspace switcher fills the row rather than centering at its text width. */
56
+ ::slotted(nile-side-bar-header-switcher) {
57
+ flex: 1 1 auto;
58
+ align-self: stretch;
59
+ min-width: 0;
60
+ }
61
+
55
62
  ::slotted([slot='actions']) {
56
63
  display: flex;
57
64
  align-items: center;
@@ -1 +1 @@
1
- {"version":3,"file":"nile-side-bar-header.css.js","sourceRoot":"","sources":["../../../src/nile-side-bar-header/nile-side-bar-header.css.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AAEF,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDxB,CAAC;AAEF,eAAe,CAAC,MAAM,CAAC,CAAC","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];"]}
1
+ {"version":3,"file":"nile-side-bar-header.css.js","sourceRoot":"","sources":["../../../src/nile-side-bar-header/nile-side-bar-header.css.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AAEF,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyDxB,CAAC;AAEF,eAAe,CAAC,MAAM,CAAC,CAAC","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-lg));\n padding-bottom: var(--nile-spacing-lg, 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];"]}
@@ -12,14 +12,16 @@ import NileElement from '../internal/nile-element';
12
12
  * @tag nile-side-bar-header
13
13
  *
14
14
  * @attr background - Background treatment of the header ("default" | "transparent").
15
- * Defaults to "default", which paints the sidebar surface color. Set to
16
- * "transparent" to drop the background so whatever sits behind the header shows
17
- * through.
15
+ * Defaults to "default". Inside a `nile-side-bar` the header paints nothing, so it
16
+ * follows the sidebar's own surface with no attribute needed; on its own it paints
17
+ * its own surface. "transparent" always drops the background so whatever sits
18
+ * behind the header shows through.
18
19
  */
19
20
  export declare class NileSideBarHeader extends NileElement {
20
21
  /**
21
- * Background treatment of the header. `default` keeps the sidebar surface
22
- * color; `transparent` removes it.
22
+ * Background treatment of the header. `default` follows the sidebar surface
23
+ * inside a `nile-side-bar` (and paints its own surface when used on its own);
24
+ * `transparent` removes the background everywhere.
23
25
  */
24
26
  background: 'default' | 'transparent';
25
27
  /**
@@ -15,16 +15,18 @@ import NileElement from '../internal/nile-element';
15
15
  * @tag nile-side-bar-header
16
16
  *
17
17
  * @attr background - Background treatment of the header ("default" | "transparent").
18
- * Defaults to "default", which paints the sidebar surface color. Set to
19
- * "transparent" to drop the background so whatever sits behind the header shows
20
- * through.
18
+ * Defaults to "default". Inside a `nile-side-bar` the header paints nothing, so it
19
+ * follows the sidebar's own surface with no attribute needed; on its own it paints
20
+ * its own surface. "transparent" always drops the background so whatever sits
21
+ * behind the header shows through.
21
22
  */
22
23
  let NileSideBarHeader = class NileSideBarHeader extends NileElement {
23
24
  constructor() {
24
25
  super(...arguments);
25
26
  /**
26
- * Background treatment of the header. `default` keeps the sidebar surface
27
- * color; `transparent` removes it.
27
+ * Background treatment of the header. `default` follows the sidebar surface
28
+ * inside a `nile-side-bar` (and paints its own surface when used on its own);
29
+ * `transparent` removes the background everywhere.
28
30
  */
29
31
  this.background = 'default';
30
32
  /* #endregion */
@@ -1 +1 @@
1
- {"version":3,"file":"nile-side-bar-header.js","sourceRoot":"","sources":["../../../src/nile-side-bar-header/nile-side-bar-header.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAEH,OAAO,EAAa,IAAI,EAAiC,MAAM,KAAK,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAC,MAAM,EAAC,MAAM,4BAA4B,CAAC;AAClD,OAAO,WAAW,MAAM,0BAA0B,CAAC;AAGnD;;;;;;;;;GASG;AAEI,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,WAAW;IAA3C;;QAEN;;;WAGG;QACyD,eAAU,GAA8B,SAAS,CAAC;QA2B9G,gBAAgB;IACjB,CAAC;IA1BA;;;OAGG;IACI,MAAM,KAAK,MAAM;QACvB,OAAO,CAAC,MAAM,CAAC,CAAC;IACjB,CAAC;IAED,gBAAgB;IAEhB,qBAAqB;IAErB;;;OAGG;IACI,MAAM;QACZ,OAAO,IAAI,CAAA;;;;;IAKT,CAAC;IACJ,CAAC;CAGD,CAAA;AA5B4D;IAA3D,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;qDAAmD;AANlG,iBAAiB;IAD7B,aAAa,CAAC,sBAAsB,CAAC;GACzB,iBAAiB,CAkC7B;;AAED,eAAe,iBAAiB,CAAC","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}"]}
1
+ {"version":3,"file":"nile-side-bar-header.js","sourceRoot":"","sources":["../../../src/nile-side-bar-header/nile-side-bar-header.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAEH,OAAO,EAAa,IAAI,EAAiC,MAAM,KAAK,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAC,MAAM,EAAC,MAAM,4BAA4B,CAAC;AAClD,OAAO,WAAW,MAAM,0BAA0B,CAAC;AAGnD;;;;;;;;;;GAUG;AAEI,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,WAAW;IAA3C;;QAEN;;;;WAIG;QACyD,eAAU,GAA8B,SAAS,CAAC;QA2B9G,gBAAgB;IACjB,CAAC;IA1BA;;;OAGG;IACI,MAAM,KAAK,MAAM;QACvB,OAAO,CAAC,MAAM,CAAC,CAAC;IACjB,CAAC;IAED,gBAAgB;IAEhB,qBAAqB;IAErB;;;OAGG;IACI,MAAM;QACZ,OAAO,IAAI,CAAA;;;;;IAKT,CAAC;IACJ,CAAC;CAGD,CAAA;AA5B4D;IAA3D,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;qDAAmD;AAPlG,iBAAiB;IAD7B,aAAa,CAAC,sBAAsB,CAAC;GACzB,iBAAiB,CAmC7B;;AAED,eAAe,iBAAiB,CAAC","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}"]}
@@ -0,0 +1 @@
1
+ export { NileSideBarHeaderSwitcher } from './nile-side-bar-header-switcher';
@@ -0,0 +1,2 @@
1
+ export { NileSideBarHeaderSwitcher } from './nile-side-bar-header-switcher';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/nile-side-bar-header-switcher/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC","sourcesContent":["export { NileSideBarHeaderSwitcher } from './nile-side-bar-header-switcher';\n"]}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Copyright Aquera Inc 2026
3
+ *
4
+ * This source code is licensed under the BSD-3-Clause license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ /**
8
+ * SideBarHeaderSwitcher CSS
9
+ *
10
+ * 40px tall. The Enterprise stroke is an inset shadow (not a real border) so it adds no layout space; NxtGen draws none.
11
+ */
12
+ export declare const styles: import("lit").CSSResult;
13
+ declare const _default: import("lit").CSSResult[];
14
+ export default _default;
@@ -0,0 +1,97 @@
1
+ /**
2
+ * Copyright Aquera Inc 2026
3
+ *
4
+ * This source code is licensed under the BSD-3-Clause license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import { css } from 'lit';
8
+ /**
9
+ * SideBarHeaderSwitcher CSS
10
+ *
11
+ * 40px tall. The Enterprise stroke is an inset shadow (not a real border) so it adds no layout space; NxtGen draws none.
12
+ */
13
+ export const styles = css `
14
+ :host {
15
+ display: block;
16
+ min-width: 0;
17
+ }
18
+
19
+ .switcher {
20
+ display: flex;
21
+ align-items: center;
22
+ gap: var(--nile-spacing-md, var(--ng-spacing-md));
23
+ box-sizing: border-box;
24
+ width: 100%;
25
+ height: var(--nile-height-40px, var(--ng-height-40px));
26
+ margin: var(--nile-spacing-none, var(--ng-spacing-none));
27
+ padding: var(--nile-spacing-sm, var(--ng-spacing-sm));
28
+ border: var(--nile-border-width-0, var(--ng-border-width-0));
29
+ border-radius: var(--nile-radius-md, var(--ng-radius-md));
30
+ /* NxtGen rests transparent with no visible stroke; Enterprise keeps its neutral-100 fill and neutral-400 stroke. */
31
+ background: var(--nile-colors-neutral-100, transparent);
32
+ box-shadow: inset 0 0 0 1px var(--nile-colors-neutral-400, transparent);
33
+ overflow: hidden;
34
+ cursor: pointer;
35
+ font: inherit;
36
+ color: inherit;
37
+ text-align: start;
38
+ }
39
+
40
+ /* 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. */
41
+ .switcher:hover {
42
+ background: var(--nile-colors-neutral-100, var(--ng-colors-bg-secondary-subtle));
43
+ box-shadow: inset 0 0 0 1px var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));
44
+ }
45
+
46
+ .logo {
47
+ flex: 0 0 auto;
48
+ display: inline-flex;
49
+ width: var(--nile-height-28px, var(--ng-height-28px));
50
+ height: var(--nile-height-28px, var(--ng-height-28px));
51
+ }
52
+
53
+ .logo img,
54
+ ::slotted([slot='logo']) {
55
+ display: block;
56
+ width: 100%;
57
+ height: 100%;
58
+ object-fit: contain;
59
+ }
60
+
61
+ /* Text sm (14px) on a 24px line, Bold. */
62
+ .label {
63
+ flex: 1 1 auto;
64
+ min-width: 0;
65
+ white-space: nowrap;
66
+ overflow: hidden;
67
+ text-overflow: ellipsis;
68
+ font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
69
+ font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));
70
+ line-height: var(--nile-line-height-medium, var(--ng-line-height-text-md));
71
+ font-weight: var(--nile-font-weight-bold, var(--ng-font-weight-bold));
72
+ /* -4% tracking (-0.56px at 14px): lets "Workforce Intelligence" fit the 152px available. */
73
+ letter-spacing: -0.04em;
74
+ color: var(--nile-colors-dark-900, var(--ng-colors-text-secondary-700));
75
+ }
76
+
77
+ .chevron {
78
+ flex: 0 0 auto;
79
+ display: inline-flex;
80
+ align-items: center;
81
+ justify-content: center;
82
+ width: var(--nile-height-20px, var(--ng-height-20px));
83
+ height: var(--nile-height-20px, var(--ng-height-20px));
84
+ }
85
+
86
+ /* 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. */
87
+ :host([collapsed]) .switcher {
88
+ justify-content: center;
89
+ }
90
+
91
+ :host([collapsed]) .label,
92
+ :host([collapsed]) .chevron {
93
+ display: none;
94
+ }
95
+ `;
96
+ export default [styles];
97
+ //# sourceMappingURL=nile-side-bar-header-switcher.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-side-bar-header-switcher.css.js","sourceRoot":"","sources":["../../../src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B;;;;GAIG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkFxB,CAAC;AAEF,eAAe,CAAC,MAAM,CAAC,CAAC","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];"]}
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Copyright Aquera Inc 2026
3
+ *
4
+ * This source code is licensed under the BSD-3-Clause license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import { CSSResultArray, TemplateResult } from 'lit';
8
+ import NileElement from '../internal/nile-element';
9
+ /**
10
+ * Nile side-bar-header-switcher component. The sidebar builds no menu: listen for `nile-click` and open the app's own.
11
+ *
12
+ * @tag nile-side-bar-header-switcher
13
+ *
14
+ * @slot logo - Replaces the `src` image with custom artwork, sized into the 28px logo box.
15
+ *
16
+ * @event nile-click - Emitted when the switcher is pressed. `detail: { value }`, the workspace `label`.
17
+ *
18
+ * @csspart base - The switcher button.
19
+ * @csspart logo - The 28px logo box.
20
+ * @csspart label - The workspace name.
21
+ * @csspart chevron - The 20px vertical selector (chevron-selector-vertical) box. Hidden when collapsed.
22
+ */
23
+ export declare class NileSideBarHeaderSwitcher extends NileElement {
24
+ /** The workspace or product name shown after the logo. */
25
+ label: string;
26
+ /** URL of the logo artwork. Ignored when the `logo` slot has content. */
27
+ src: string;
28
+ static get styles(): CSSResultArray;
29
+ connectedCallback(): void;
30
+ private _onClick;
31
+ render(): TemplateResult;
32
+ }
33
+ export default NileSideBarHeaderSwitcher;
34
+ declare global {
35
+ interface HTMLElementTagNameMap {
36
+ 'nile-side-bar-header-switcher': NileSideBarHeaderSwitcher;
37
+ }
38
+ }
@@ -0,0 +1,86 @@
1
+ /**
2
+ * Copyright Aquera Inc 2026
3
+ *
4
+ * This source code is licensed under the BSD-3-Clause license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import { __decorate } from "tslib";
8
+ import { html } from 'lit';
9
+ import { customElement, property } from 'lit/decorators.js';
10
+ import { ifDefined } from 'lit/directives/if-defined.js';
11
+ import { styles } from './nile-side-bar-header-switcher.css';
12
+ import NileElement from '../internal/nile-element';
13
+ /**
14
+ * Nile side-bar-header-switcher component. The sidebar builds no menu: listen for `nile-click` and open the app's own.
15
+ *
16
+ * @tag nile-side-bar-header-switcher
17
+ *
18
+ * @slot logo - Replaces the `src` image with custom artwork, sized into the 28px logo box.
19
+ *
20
+ * @event nile-click - Emitted when the switcher is pressed. `detail: { value }`, the workspace `label`.
21
+ *
22
+ * @csspart base - The switcher button.
23
+ * @csspart logo - The 28px logo box.
24
+ * @csspart label - The workspace name.
25
+ * @csspart chevron - The 20px vertical selector (chevron-selector-vertical) box. Hidden when collapsed.
26
+ */
27
+ let NileSideBarHeaderSwitcher = class NileSideBarHeaderSwitcher extends NileElement {
28
+ constructor() {
29
+ super(...arguments);
30
+ /** The workspace or product name shown after the logo. */
31
+ this.label = '';
32
+ /** URL of the logo artwork. Ignored when the `logo` slot has content. */
33
+ this.src = '';
34
+ }
35
+ static get styles() {
36
+ return [styles];
37
+ }
38
+ connectedCallback() {
39
+ /* Lands in nile-side-bar-header's logo slot without the page naming it. */
40
+ if (!this.hasAttribute('slot')) {
41
+ this.setAttribute('slot', 'logo');
42
+ }
43
+ super.connectedCallback();
44
+ }
45
+ _onClick() {
46
+ this.emit('nile-click', { value: this.label });
47
+ }
48
+ render() {
49
+ return html `
50
+ <button
51
+ part="base"
52
+ class="switcher"
53
+ type="button"
54
+ aria-label=${ifDefined(this.label || undefined)}
55
+ @click=${this._onClick}
56
+ >
57
+ <span part="logo" class="logo">
58
+ <slot name="logo">
59
+ ${this.src ? html `<img src=${this.src} alt="" />` : ''}
60
+ </slot>
61
+ </span>
62
+ <span part="label" class="label">${this.label}</span>
63
+ <span part="chevron" class="chevron" aria-hidden="true">
64
+ <nile-glyph
65
+ name="ng-chevron-selector-vertical"
66
+ method="stroke"
67
+ size="20"
68
+ color="var(--nile-colors-dark-500, var(--ng-colors-fg-quaternary-400))"
69
+ ></nile-glyph>
70
+ </span>
71
+ </button>
72
+ `;
73
+ }
74
+ };
75
+ __decorate([
76
+ property({ type: String, attribute: true, reflect: true })
77
+ ], NileSideBarHeaderSwitcher.prototype, "label", void 0);
78
+ __decorate([
79
+ property({ type: String, attribute: true, reflect: true })
80
+ ], NileSideBarHeaderSwitcher.prototype, "src", void 0);
81
+ NileSideBarHeaderSwitcher = __decorate([
82
+ customElement('nile-side-bar-header-switcher')
83
+ ], NileSideBarHeaderSwitcher);
84
+ export { NileSideBarHeaderSwitcher };
85
+ export default NileSideBarHeaderSwitcher;
86
+ //# sourceMappingURL=nile-side-bar-header-switcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-side-bar-header-switcher.js","sourceRoot":"","sources":["../../../src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAEH,OAAO,EAAE,IAAI,EAAkC,MAAM,KAAK,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,qCAAqC,CAAC;AAC7D,OAAO,WAAW,MAAM,0BAA0B,CAAC;AAEnD;;;;;;;;;;;;;GAaG;AAEI,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,WAAW;IAAnD;;QACL,0DAA0D;QAE1D,UAAK,GAAW,EAAE,CAAC;QAEnB,yEAAyE;QAEzE,QAAG,GAAW,EAAE,CAAC;IA4CnB,CAAC;IA1CQ,MAAM,KAAK,MAAM;QACtB,OAAO,CAAC,MAAM,CAAC,CAAC;IAClB,CAAC;IAED,iBAAiB;QACf,2EAA2E;QAC3E,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE,CAAC;YAC/B,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACpC,CAAC;QACD,KAAK,CAAC,iBAAiB,EAAE,CAAC;IAC5B,CAAC;IAEO,QAAQ;QACd,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;IACjD,CAAC;IAEM,MAAM;QACX,OAAO,IAAI,CAAA;;;;;qBAKM,SAAS,CAAC,IAAI,CAAC,KAAK,IAAI,SAAS,CAAC;iBACtC,IAAI,CAAC,QAAQ;;;;cAIhB,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAA,YAAY,IAAI,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC,EAAE;;;2CAGvB,IAAI,CAAC,KAAK;;;;;;;;;;KAUhD,CAAC;IACJ,CAAC;CACF,CAAA;AAhDC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;wDACxC;AAInB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;sDAC1C;AAPN,yBAAyB;IADrC,aAAa,CAAC,+BAA+B,CAAC;GAClC,yBAAyB,CAmDrC;;AAED,eAAe,yBAAyB,CAAC","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"]}
@@ -0,0 +1 @@
1
+ export { NileSideBarSearch } from './nile-side-bar-search';
@@ -0,0 +1,2 @@
1
+ export { NileSideBarSearch } from './nile-side-bar-search';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/nile-side-bar-search/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC","sourcesContent":["export { NileSideBarSearch } from './nile-side-bar-search';\n"]}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Copyright Aquera Inc 2026
3
+ *
4
+ * This source code is licensed under the BSD-3-Clause license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ /**
8
+ * SideBarSearch CSS
9
+ *
10
+ * A 38px field. The border is an inset shadow so it takes no layout space. The field is a button
11
+ * styled to look like one, inert until clicked or keyboard-activated — see nile-side-bar-search.ts.
12
+ */
13
+ export declare const styles: import("lit").CSSResult;
14
+ declare const _default: import("lit").CSSResult[];
15
+ export default _default;
@@ -0,0 +1,118 @@
1
+ /**
2
+ * Copyright Aquera Inc 2026
3
+ *
4
+ * This source code is licensed under the BSD-3-Clause license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import { css } from 'lit';
8
+ /**
9
+ * SideBarSearch CSS
10
+ *
11
+ * A 38px field. The border is an inset shadow so it takes no layout space. The field is a button
12
+ * styled to look like one, inert until clicked or keyboard-activated — see nile-side-bar-search.ts.
13
+ */
14
+ export const styles = css `
15
+ :host {
16
+ display: block;
17
+ padding: var(--nile-spacing-none, var(--ng-spacing-none)) var(--nile-spacing-xl, var(--ng-spacing-xl))
18
+ var(--nile-spacing-xl, var(--ng-spacing-xl));
19
+ }
20
+
21
+ /* searchable=false on the parent sidebar (and this has a parent): render nothing and take no space. */
22
+ :host(:not([data-active])) {
23
+ display: none;
24
+ padding: var(--nile-spacing-none, var(--ng-spacing-none));
25
+ }
26
+
27
+ .field {
28
+ display: flex;
29
+ align-items: center;
30
+ gap: var(--nile-spacing-md, var(--ng-spacing-md));
31
+ box-sizing: border-box;
32
+ width: 100%;
33
+ height: var(--nile-height-38px, var(--ng-height-38px));
34
+ margin: var(--nile-spacing-none, var(--ng-spacing-none));
35
+ padding: var(--nile-spacing-none, var(--ng-spacing-none)) var(--nile-spacing-lg, var(--ng-spacing-lg));
36
+ border: var(--nile-border-width-0, var(--ng-border-width-0));
37
+ border-radius: var(--nile-radius-md, var(--ng-radius-md));
38
+ background: var(--nile-colors-white-base, var(--ng-colors-bg-primary));
39
+ box-shadow: inset 0 0 0 1px
40
+ var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));
41
+ overflow: hidden;
42
+ cursor: pointer;
43
+ font: inherit;
44
+ text-align: start;
45
+ }
46
+
47
+ .icon {
48
+ flex: 0 0 auto;
49
+ display: inline-flex;
50
+ width: var(--nile-height-20px, var(--ng-height-20px));
51
+ height: var(--nile-height-20px, var(--ng-height-20px));
52
+ }
53
+
54
+ .label {
55
+ flex: 1 1 auto;
56
+ min-width: 0;
57
+ white-space: nowrap;
58
+ overflow: hidden;
59
+ text-overflow: ellipsis;
60
+ font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
61
+ /* NxtGen: 16/24 Regular; Enterprise keeps its 14px label. */
62
+ font-size: var(--nile-type-scale-3, var(--ng-font-size-text-md));
63
+ line-height: var(--nile-line-height-small, var(--ng-line-height-text-md));
64
+ font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-regular));
65
+ color: var(--nile-colors-dark-500, var(--ng-colors-text-placeholder));
66
+ }
67
+
68
+ /* Optional keycap for the shortcut slot (text sm/Medium 14/20). Fixed 24px tall, 32px at least, so it never changes the 38px field or squeezes the truncating label. */
69
+ .shortcut {
70
+ flex: 0 0 auto;
71
+ display: inline-flex;
72
+ align-items: center;
73
+ justify-content: center;
74
+ box-sizing: border-box;
75
+ min-width: var(--nile-width-32px, var(--ng-width-8));
76
+ height: var(--nile-height-24px, var(--ng-height-24px));
77
+ padding: var(--nile-spacing-xxs, var(--ng-spacing-xxs)) var(--nile-spacing-xs, var(--ng-spacing-xs));
78
+ border: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));
79
+ border-radius: var(--nile-radius-radius-xs, var(--ng-radius-xs));
80
+ background: var(--nile-colors-neutral-100, var(--ng-colors-bg-secondary-alt));
81
+ color: var(--nile-colors-dark-500, var(--ng-colors-text-tertiary-600));
82
+ font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
83
+ font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));
84
+ font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-medium));
85
+ line-height: var(--nile-line-height-small, var(--ng-line-height-text-sm));
86
+ white-space: nowrap;
87
+ }
88
+
89
+ .shortcut[hidden],
90
+ :host([collapsed]) .shortcut {
91
+ display: none;
92
+ }
93
+
94
+ /* Focus: background/icon unchanged, label darkens, plus the focus ring. This is a trigger, not
95
+ a text field — typing happens in the internal nile-command-menu. */
96
+ .field:focus-visible {
97
+ outline: none;
98
+ box-shadow:
99
+ inset 0 0 0 1px var(--nile-colors-neutral-400, var(--ng-colors-border-secondary)),
100
+ var(--ng-focus-ring, none);
101
+ }
102
+
103
+ .field:focus-visible .label {
104
+ color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));
105
+ }
106
+
107
+ /* Collapsed: a 40px field with only the icon, centered. */
108
+ :host([collapsed]) .field {
109
+ justify-content: center;
110
+ padding: var(--nile-spacing-none, var(--ng-spacing-none));
111
+ }
112
+
113
+ :host([collapsed]) .label {
114
+ display: none;
115
+ }
116
+ `;
117
+ export default [styles];
118
+ //# sourceMappingURL=nile-side-bar-search.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-side-bar-search.css.js","sourceRoot":"","sources":["../../../src/nile-side-bar-search/nile-side-bar-search.css.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B;;;;;GAKG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsGxB,CAAC;AAEF,eAAe,CAAC,MAAM,CAAC,CAAC","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 * SideBarSearch CSS\n *\n * A 38px field. The border is an inset shadow so it takes no layout space. The field is a button\n * styled to look like one, inert until clicked or keyboard-activated — see nile-side-bar-search.ts.\n */\nexport const styles = css`\n :host {\n display: block;\n padding: var(--nile-spacing-none, var(--ng-spacing-none)) var(--nile-spacing-xl, var(--ng-spacing-xl))\n var(--nile-spacing-xl, var(--ng-spacing-xl));\n }\n\n /* searchable=false on the parent sidebar (and this has a parent): render nothing and take no space. */\n :host(:not([data-active])) {\n display: none;\n padding: var(--nile-spacing-none, var(--ng-spacing-none));\n }\n\n .field {\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-38px, var(--ng-height-38px));\n margin: var(--nile-spacing-none, var(--ng-spacing-none));\n padding: var(--nile-spacing-none, var(--ng-spacing-none)) var(--nile-spacing-lg, var(--ng-spacing-lg));\n border: var(--nile-border-width-0, var(--ng-border-width-0));\n border-radius: var(--nile-radius-md, var(--ng-radius-md));\n background: var(--nile-colors-white-base, var(--ng-colors-bg-primary));\n box-shadow: inset 0 0 0 1px\n var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));\n overflow: hidden;\n cursor: pointer;\n font: inherit;\n text-align: start;\n }\n\n .icon {\n flex: 0 0 auto;\n display: inline-flex;\n width: var(--nile-height-20px, var(--ng-height-20px));\n height: var(--nile-height-20px, var(--ng-height-20px));\n }\n\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 /* NxtGen: 16/24 Regular; Enterprise keeps its 14px label. */\n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-md));\n line-height: var(--nile-line-height-small, var(--ng-line-height-text-md));\n font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-regular));\n color: var(--nile-colors-dark-500, var(--ng-colors-text-placeholder));\n }\n\n /* Optional keycap for the shortcut slot (text sm/Medium 14/20). Fixed 24px tall, 32px at least, so it never changes the 38px field or squeezes the truncating label. */\n .shortcut {\n flex: 0 0 auto;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n min-width: var(--nile-width-32px, var(--ng-width-8));\n height: var(--nile-height-24px, var(--ng-height-24px));\n padding: var(--nile-spacing-xxs, var(--ng-spacing-xxs)) var(--nile-spacing-xs, var(--ng-spacing-xs));\n border: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));\n border-radius: var(--nile-radius-radius-xs, var(--ng-radius-xs));\n background: var(--nile-colors-neutral-100, var(--ng-colors-bg-secondary-alt));\n color: var(--nile-colors-dark-500, var(--ng-colors-text-tertiary-600));\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 font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-medium));\n line-height: var(--nile-line-height-small, var(--ng-line-height-text-sm));\n white-space: nowrap;\n }\n\n .shortcut[hidden],\n :host([collapsed]) .shortcut {\n display: none;\n }\n\n /* Focus: background/icon unchanged, label darkens, plus the focus ring. This is a trigger, not\n a text field — typing happens in the internal nile-command-menu. */\n .field:focus-visible {\n outline: none;\n box-shadow:\n inset 0 0 0 1px var(--nile-colors-neutral-400, var(--ng-colors-border-secondary)),\n var(--ng-focus-ring, none);\n }\n\n .field:focus-visible .label {\n color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));\n }\n\n /* Collapsed: a 40px field with only the icon, centered. */\n :host([collapsed]) .field {\n justify-content: center;\n padding: var(--nile-spacing-none, var(--ng-spacing-none));\n }\n\n :host([collapsed]) .label {\n display: none;\n }\n`;\n\nexport default [styles];\n"]}
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Copyright Aquera Inc 2026
3
+ *
4
+ * This source code is licensed under the BSD-3-Clause license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import { CSSResultArray, TemplateResult } from 'lit';
8
+ import NileElement from '../internal/nile-element';
9
+ import '../nile-icon';
10
+ import '../nile-command-menu';
11
+ /**
12
+ * Nile side-bar-search component. A button styled like a search field; activating it opens the sidebar's internal nile-command-menu, which owns filtering, keyboard nav, the focus trap, and focus restoration.
13
+ *
14
+ * @tag nile-side-bar-search
15
+ *
16
+ * @slot commands - nile-command-menu-item / nile-command-menu-group markup, moved into the internal nile-command-menu so it can find them as its own children.
17
+ *
18
+ * @slot shortcut - Optional keyboard-shortcut hint (e.g. `<span slot="shortcut">⌘K</span>`) drawn in a keycap at the trailing edge of the trigger. Empty by default, and shown only when expanded. Display only: this component registers no keybinding (the app owns it), and the keycap is decorative (`aria-hidden`, `inert`), so slotted content is never a focus target.
19
+ *
20
+ * @event nile-select - Re-emitted by the internal nile-command-menu when a command is chosen (`detail: { value, item }`), retargeted to this element.
21
+ *
22
+ * @csspart base - The trigger button.
23
+ * @csspart icon - The 20px search icon box.
24
+ * @csspart label - The placeholder-styled label, hidden when collapsed.
25
+ * @csspart shortcut - The keycap wrapping the `shortcut` slot; rendered only while the slot has content and the sidebar is expanded.
26
+ */
27
+ export declare class NileSideBarSearch extends NileElement {
28
+ /** Placeholder text for the trigger label and the internal command menu; ignored in favour of the parent sidebar's `searchPlaceholder` when set. */
29
+ placeholder: string;
30
+ private _menu;
31
+ private _field;
32
+ /** Whether the `shortcut` slot has content; the keycap is not rendered otherwise, so an unused slot leaves the trigger exactly as it was. */
33
+ private _hasShortcut;
34
+ private sidebar;
35
+ private _observer;
36
+ static get styles(): CSSResultArray;
37
+ static shadowRootOptions: ShadowRootInit;
38
+ connectedCallback(): void;
39
+ disconnectedCallback(): void;
40
+ /** Renders when there's no parent sidebar to gate it, or that sidebar's `searchable` is set. */
41
+ private get _active();
42
+ private get _placeholder();
43
+ private _onCommandsSlotChange;
44
+ private _onShortcutSlotChange;
45
+ private _onActivate;
46
+ private _onMenuHide;
47
+ protected updated(changedProps: Map<string, unknown>): void;
48
+ render(): TemplateResult;
49
+ private _renderTrigger;
50
+ }
51
+ export default NileSideBarSearch;
52
+ declare global {
53
+ interface HTMLElementTagNameMap {
54
+ 'nile-side-bar-search': NileSideBarSearch;
55
+ }
56
+ }