@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.
- package/README.md +76 -34
- package/demo/nxtgen-classes.css +24 -4
- package/demo/nxtgen-dark.css +30 -16
- package/demo/nxtgen-properties.css +9 -2
- package/demo/nxtgen-utilities.css +31 -4
- package/demo/nxtgen.css +8 -4
- package/demo/utilities.css +2 -2
- package/demo/variables.css +2 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1954 -937
- package/dist/nile-app-shell/index.cjs.js +1 -1
- package/dist/nile-app-shell/index.esm.js +1 -1
- package/dist/nile-app-shell/nile-app-shell.cjs.js +1 -1
- package/dist/nile-app-shell/nile-app-shell.cjs.js.map +1 -1
- package/dist/nile-app-shell/nile-app-shell.css.cjs.js +1 -1
- package/dist/nile-app-shell/nile-app-shell.css.cjs.js.map +1 -1
- package/dist/nile-app-shell/nile-app-shell.css.esm.js +72 -65
- package/dist/nile-app-shell/nile-app-shell.esm.js +60 -31
- package/dist/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.cjs.js +1 -1
- package/dist/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.cjs.js.map +1 -1
- package/dist/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.esm.js +1 -1
- package/dist/nile-app-shell-side-nav/nile-app-shell-side-nav.cjs.js +1 -1
- package/dist/nile-app-shell-side-nav/nile-app-shell-side-nav.cjs.js.map +1 -1
- package/dist/nile-app-shell-side-nav/nile-app-shell-side-nav.css.cjs.js +1 -1
- package/dist/nile-app-shell-side-nav/nile-app-shell-side-nav.css.cjs.js.map +1 -1
- package/dist/nile-app-shell-side-nav/nile-app-shell-side-nav.css.esm.js +25 -7
- package/dist/nile-app-shell-side-nav/nile-app-shell-side-nav.esm.js +2 -2
- package/dist/nile-button-filter/nile-button-filter.cjs.js +1 -1
- package/dist/nile-button-filter/nile-button-filter.cjs.js.map +1 -1
- package/dist/nile-button-filter/nile-button-filter.css.cjs.js +1 -1
- package/dist/nile-button-filter/nile-button-filter.css.cjs.js.map +1 -1
- package/dist/nile-button-filter/nile-button-filter.css.esm.js +1 -1
- package/dist/nile-button-filter/nile-button-filter.esm.js +2 -4
- package/dist/nile-calendar/nile-calendar.css.cjs.js +1 -1
- package/dist/nile-calendar/nile-calendar.css.cjs.js.map +1 -1
- package/dist/nile-calendar/nile-calendar.css.esm.js +9 -8
- package/dist/nile-color-picker/nile-color-picker.css.cjs.js +1 -1
- package/dist/nile-color-picker/nile-color-picker.css.cjs.js.map +1 -1
- package/dist/nile-color-picker/nile-color-picker.css.esm.js +1 -1
- package/dist/nile-combobox/nile-combobox.css.cjs.js +1 -1
- package/dist/nile-combobox/nile-combobox.css.cjs.js.map +1 -1
- package/dist/nile-combobox/nile-combobox.css.esm.js +1 -1
- package/dist/nile-command-menu-item/nile-command-menu-item.css.cjs.js +1 -1
- package/dist/nile-command-menu-item/nile-command-menu-item.css.cjs.js.map +1 -1
- package/dist/nile-command-menu-item/nile-command-menu-item.css.esm.js +5 -1
- package/dist/nile-context-menu/nile-context-menu.css.cjs.js +1 -1
- package/dist/nile-context-menu/nile-context-menu.css.cjs.js.map +1 -1
- package/dist/nile-context-menu/nile-context-menu.css.esm.js +2 -3
- package/dist/nile-dropdown-switcher/index.cjs.js +2 -0
- package/dist/nile-dropdown-switcher/index.cjs.js.map +1 -0
- package/dist/nile-dropdown-switcher/index.esm.js +1 -0
- package/dist/nile-dropdown-switcher/nile-dropdown-switcher.cjs.js +2 -0
- package/dist/nile-dropdown-switcher/nile-dropdown-switcher.cjs.js.map +1 -0
- package/dist/nile-dropdown-switcher/nile-dropdown-switcher.css.cjs.js +2 -0
- package/dist/nile-dropdown-switcher/nile-dropdown-switcher.css.cjs.js.map +1 -0
- package/dist/nile-dropdown-switcher/nile-dropdown-switcher.css.esm.js +39 -0
- package/dist/nile-dropdown-switcher/nile-dropdown-switcher.esm.js +1 -0
- package/dist/nile-dropdown-switcher-group/index.cjs.js +2 -0
- package/dist/nile-dropdown-switcher-group/index.cjs.js.map +1 -0
- package/dist/nile-dropdown-switcher-group/index.esm.js +1 -0
- package/dist/nile-dropdown-switcher-group/nile-dropdown-switcher-group.cjs.js +2 -0
- package/dist/nile-dropdown-switcher-group/nile-dropdown-switcher-group.cjs.js.map +1 -0
- package/dist/nile-dropdown-switcher-group/nile-dropdown-switcher-group.css.cjs.js +2 -0
- package/dist/nile-dropdown-switcher-group/nile-dropdown-switcher-group.css.cjs.js.map +1 -0
- package/dist/nile-dropdown-switcher-group/nile-dropdown-switcher-group.css.esm.js +37 -0
- package/dist/nile-dropdown-switcher-group/nile-dropdown-switcher-group.esm.js +8 -0
- package/dist/nile-dropdown-switcher-header/index.cjs.js +2 -0
- package/dist/nile-dropdown-switcher-header/index.cjs.js.map +1 -0
- package/dist/nile-dropdown-switcher-header/index.esm.js +1 -0
- package/dist/nile-dropdown-switcher-header/nile-dropdown-switcher-header.cjs.js +2 -0
- package/dist/nile-dropdown-switcher-header/nile-dropdown-switcher-header.cjs.js.map +1 -0
- package/dist/nile-dropdown-switcher-header/nile-dropdown-switcher-header.css.cjs.js +2 -0
- package/dist/nile-dropdown-switcher-header/nile-dropdown-switcher-header.css.cjs.js.map +1 -0
- package/dist/nile-dropdown-switcher-header/nile-dropdown-switcher-header.css.esm.js +91 -0
- package/dist/nile-dropdown-switcher-header/nile-dropdown-switcher-header.esm.js +33 -0
- package/dist/nile-dropdown-switcher-item/index.cjs.js +2 -0
- package/dist/nile-dropdown-switcher-item/index.cjs.js.map +1 -0
- package/dist/nile-dropdown-switcher-item/index.esm.js +1 -0
- package/dist/nile-dropdown-switcher-item/nile-dropdown-switcher-item.cjs.js +2 -0
- package/dist/nile-dropdown-switcher-item/nile-dropdown-switcher-item.cjs.js.map +1 -0
- package/dist/nile-dropdown-switcher-item/nile-dropdown-switcher-item.css.cjs.js +2 -0
- package/dist/nile-dropdown-switcher-item/nile-dropdown-switcher-item.css.cjs.js.map +1 -0
- package/dist/nile-dropdown-switcher-item/nile-dropdown-switcher-item.css.esm.js +102 -0
- package/dist/nile-dropdown-switcher-item/nile-dropdown-switcher-item.esm.js +35 -0
- package/dist/nile-empty-state/nile-empty-state.cjs.js +1 -1
- package/dist/nile-empty-state/nile-empty-state.cjs.js.map +1 -1
- package/dist/nile-empty-state/nile-empty-state.esm.js +4 -4
- package/dist/nile-filter-chip/nile-filter-chip.css.cjs.js +1 -1
- package/dist/nile-filter-chip/nile-filter-chip.css.cjs.js.map +1 -1
- package/dist/nile-filter-chip/nile-filter-chip.css.esm.js +2 -2
- package/dist/nile-form-group/nile-form-group.css.cjs.js +1 -1
- package/dist/nile-form-group/nile-form-group.css.cjs.js.map +1 -1
- package/dist/nile-form-group/nile-form-group.css.esm.js +3 -3
- package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.css.cjs.js +1 -1
- package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.css.cjs.js.map +1 -1
- package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.css.esm.js +20 -4
- package/dist/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.cjs.js +1 -1
- package/dist/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.cjs.js.map +1 -1
- package/dist/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.esm.js +3 -3
- package/dist/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.cjs.js +1 -1
- package/dist/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.cjs.js.map +1 -1
- package/dist/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.esm.js +3 -3
- package/dist/nile-markdown-editor/nile-markdown-editor.css.cjs.js +1 -1
- package/dist/nile-markdown-editor/nile-markdown-editor.css.cjs.js.map +1 -1
- package/dist/nile-markdown-editor/nile-markdown-editor.css.esm.js +4 -4
- package/dist/nile-menu/nile-menu.css.cjs.js +1 -1
- package/dist/nile-menu/nile-menu.css.cjs.js.map +1 -1
- package/dist/nile-menu/nile-menu.css.esm.js +1 -2
- package/dist/nile-menu-item/nile-menu-item.css.cjs.js +1 -1
- package/dist/nile-menu-item/nile-menu-item.css.cjs.js.map +1 -1
- package/dist/nile-menu-item/nile-menu-item.css.esm.js +6 -6
- package/dist/nile-nav-tab/nile-nav-tab.css.cjs.js +1 -1
- package/dist/nile-nav-tab/nile-nav-tab.css.cjs.js.map +1 -1
- package/dist/nile-nav-tab/nile-nav-tab.css.esm.js +3 -3
- package/dist/nile-nav-tab-group/nile-nav-tab-group.css.cjs.js +1 -1
- package/dist/nile-nav-tab-group/nile-nav-tab-group.css.cjs.js.map +1 -1
- package/dist/nile-nav-tab-group/nile-nav-tab-group.css.esm.js +15 -12
- package/dist/nile-option/nile-option.css.cjs.js +1 -1
- package/dist/nile-option/nile-option.css.cjs.js.map +1 -1
- package/dist/nile-option/nile-option.css.esm.js +2 -2
- package/dist/nile-pagination/nile-pagination.cjs.js +1 -1
- package/dist/nile-pagination/nile-pagination.cjs.js.map +1 -1
- package/dist/nile-pagination/nile-pagination.css.cjs.js +1 -1
- package/dist/nile-pagination/nile-pagination.css.cjs.js.map +1 -1
- package/dist/nile-pagination/nile-pagination.css.esm.js +10 -0
- package/dist/nile-pagination/nile-pagination.esm.js +14 -14
- package/dist/nile-side-bar/nile-side-bar.cjs.js +1 -1
- package/dist/nile-side-bar/nile-side-bar.cjs.js.map +1 -1
- package/dist/nile-side-bar/nile-side-bar.css.cjs.js +1 -1
- package/dist/nile-side-bar/nile-side-bar.css.cjs.js.map +1 -1
- package/dist/nile-side-bar/nile-side-bar.css.esm.js +16 -14
- package/dist/nile-side-bar/nile-side-bar.esm.js +2 -2
- package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.css.cjs.js +1 -1
- package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.css.cjs.js.map +1 -1
- package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.css.esm.js +11 -4
- package/dist/nile-side-bar-footer/nile-side-bar-footer.cjs.js.map +1 -1
- package/dist/nile-side-bar-footer/nile-side-bar-footer.css.cjs.js +1 -1
- package/dist/nile-side-bar-footer/nile-side-bar-footer.css.cjs.js.map +1 -1
- package/dist/nile-side-bar-footer/nile-side-bar-footer.css.esm.js +8 -3
- package/dist/nile-side-bar-footer-item/index.cjs.js +1 -1
- package/dist/nile-side-bar-footer-item/index.esm.js +1 -1
- package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.cjs.js +1 -1
- package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.cjs.js.map +1 -1
- package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.css.cjs.js +1 -1
- package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.css.cjs.js.map +1 -1
- package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.css.esm.js +181 -25
- package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.esm.js +10 -3
- package/dist/nile-side-bar-footer-text/nile-side-bar-footer-text.css.cjs.js +1 -1
- package/dist/nile-side-bar-footer-text/nile-side-bar-footer-text.css.cjs.js.map +1 -1
- package/dist/nile-side-bar-footer-text/nile-side-bar-footer-text.css.esm.js +10 -5
- package/dist/nile-side-bar-group/nile-side-bar-group.cjs.js +1 -1
- package/dist/nile-side-bar-group/nile-side-bar-group.cjs.js.map +1 -1
- package/dist/nile-side-bar-group/nile-side-bar-group.css.cjs.js +1 -1
- package/dist/nile-side-bar-group/nile-side-bar-group.css.cjs.js.map +1 -1
- package/dist/nile-side-bar-group/nile-side-bar-group.css.esm.js +52 -9
- package/dist/nile-side-bar-group/nile-side-bar-group.esm.js +4 -4
- package/dist/nile-side-bar-group-item/nile-side-bar-group-item.css.cjs.js +1 -1
- package/dist/nile-side-bar-group-item/nile-side-bar-group-item.css.cjs.js.map +1 -1
- package/dist/nile-side-bar-group-item/nile-side-bar-group-item.css.esm.js +53 -8
- package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.cjs.js +1 -1
- package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.cjs.js.map +1 -1
- package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.cjs.js +1 -1
- package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.cjs.js.map +1 -1
- package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.esm.js +13 -4
- package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.esm.js +4 -4
- package/dist/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.cjs.js +1 -1
- package/dist/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.cjs.js.map +1 -1
- package/dist/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.esm.js +9 -6
- package/dist/nile-side-bar-header/nile-side-bar-header.cjs.js.map +1 -1
- package/dist/nile-side-bar-header/nile-side-bar-header.css.cjs.js +1 -1
- package/dist/nile-side-bar-header/nile-side-bar-header.css.cjs.js.map +1 -1
- package/dist/nile-side-bar-header/nile-side-bar-header.css.esm.js +12 -5
- package/dist/nile-side-bar-header-switcher/index.cjs.js +2 -0
- package/dist/nile-side-bar-header-switcher/index.cjs.js.map +1 -0
- package/dist/nile-side-bar-header-switcher/index.esm.js +1 -0
- package/dist/nile-side-bar-header-switcher/nile-side-bar-header-switcher.cjs.js +2 -0
- package/dist/nile-side-bar-header-switcher/nile-side-bar-header-switcher.cjs.js.map +1 -0
- package/dist/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.cjs.js +2 -0
- package/dist/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.cjs.js.map +1 -0
- package/dist/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.esm.js +83 -0
- package/dist/nile-side-bar-header-switcher/nile-side-bar-header-switcher.esm.js +24 -0
- package/dist/nile-side-bar-search/index.cjs.js +2 -0
- package/dist/nile-side-bar-search/index.cjs.js.map +1 -0
- package/dist/nile-side-bar-search/index.esm.js +1 -0
- package/dist/nile-side-bar-search/nile-side-bar-search.cjs.js +2 -0
- package/dist/nile-side-bar-search/nile-side-bar-search.cjs.js.map +1 -0
- package/dist/nile-side-bar-search/nile-side-bar-search.css.cjs.js +2 -0
- package/dist/nile-side-bar-search/nile-side-bar-search.css.cjs.js.map +1 -0
- package/dist/nile-side-bar-search/nile-side-bar-search.css.esm.js +103 -0
- package/dist/nile-side-bar-search/nile-side-bar-search.esm.js +25 -0
- package/dist/nile-slide-toggle/nile-slide-toggle.css.cjs.js +1 -1
- package/dist/nile-slide-toggle/nile-slide-toggle.css.cjs.js.map +1 -1
- package/dist/nile-slide-toggle/nile-slide-toggle.css.esm.js +1 -1
- package/dist/nile-tooltip/nile-tooltip.css.cjs.js +1 -1
- package/dist/nile-tooltip/nile-tooltip.css.cjs.js.map +1 -1
- package/dist/nile-tooltip/nile-tooltip.css.esm.js +7 -5
- package/dist/nile-virtual-select/nile-virtual-select.css.cjs.js +1 -1
- package/dist/nile-virtual-select/nile-virtual-select.css.cjs.js.map +1 -1
- package/dist/nile-virtual-select/nile-virtual-select.css.esm.js +1 -1
- package/dist/nile-wysiwyg-editor/index.cjs.js +1 -1
- package/dist/nile-wysiwyg-editor/index.esm.js +1 -1
- package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.cjs.js +1 -1
- package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.cjs.js.map +1 -1
- package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.css.cjs.js +1 -1
- package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.css.cjs.js.map +1 -1
- package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.css.esm.js +75 -3
- package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.esm.js +3 -2
- package/dist/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.cjs.js +1 -1
- package/dist/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.cjs.js.map +1 -1
- package/dist/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.esm.js +3 -3
- package/dist/nile-wysiwyg-editor/types.cjs.js +1 -1
- package/dist/nile-wysiwyg-editor/types.cjs.js.map +1 -1
- package/dist/nile-wysiwyg-editor/types.esm.js +1 -1
- package/dist/src/index.d.ts +6 -0
- package/dist/src/index.js +6 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/nile-app-shell/nile-app-shell.css.js +70 -63
- package/dist/src/nile-app-shell/nile-app-shell.css.js.map +1 -1
- package/dist/src/nile-app-shell/nile-app-shell.d.ts +40 -7
- package/dist/src/nile-app-shell/nile-app-shell.js +192 -41
- package/dist/src/nile-app-shell/nile-app-shell.js.map +1 -1
- package/dist/src/nile-app-shell/nile-app-shell.test.d.ts +2 -0
- package/dist/src/nile-app-shell/nile-app-shell.test.js +272 -1020
- package/dist/src/nile-app-shell/nile-app-shell.test.js.map +1 -1
- package/dist/src/nile-app-shell/zz-layout.test.d.ts +15 -0
- package/dist/src/nile-app-shell/zz-layout.test.js +253 -0
- package/dist/src/nile-app-shell/zz-layout.test.js.map +1 -0
- package/dist/src/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.js +1 -1
- package/dist/src/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.js.map +1 -1
- package/dist/src/nile-app-shell-side-nav/nile-app-shell-side-nav.css.js +24 -6
- package/dist/src/nile-app-shell-side-nav/nile-app-shell-side-nav.css.js.map +1 -1
- package/dist/src/nile-app-shell-side-nav/nile-app-shell-side-nav.d.ts +8 -2
- package/dist/src/nile-app-shell-side-nav/nile-app-shell-side-nav.js +56 -2
- package/dist/src/nile-app-shell-side-nav/nile-app-shell-side-nav.js.map +1 -1
- package/dist/src/nile-button-filter/nile-button-filter.css.js +1 -1
- package/dist/src/nile-button-filter/nile-button-filter.css.js.map +1 -1
- package/dist/src/nile-button-filter/nile-button-filter.js +1 -3
- package/dist/src/nile-button-filter/nile-button-filter.js.map +1 -1
- package/dist/src/nile-calendar/nile-calendar.css.js +9 -8
- package/dist/src/nile-calendar/nile-calendar.css.js.map +1 -1
- package/dist/src/nile-color-picker/nile-color-picker.css.js +3 -3
- package/dist/src/nile-color-picker/nile-color-picker.css.js.map +1 -1
- package/dist/src/nile-combobox/nile-combobox.css.js +1 -1
- package/dist/src/nile-combobox/nile-combobox.css.js.map +1 -1
- package/dist/src/nile-command-menu-item/nile-command-menu-item.css.js +5 -1
- package/dist/src/nile-command-menu-item/nile-command-menu-item.css.js.map +1 -1
- package/dist/src/nile-context-menu/nile-context-menu.css.js +2 -4
- package/dist/src/nile-context-menu/nile-context-menu.css.js.map +1 -1
- package/dist/src/nile-dropdown-switcher/index.d.ts +1 -0
- package/dist/src/nile-dropdown-switcher/index.js +2 -0
- package/dist/src/nile-dropdown-switcher/index.js.map +1 -0
- package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.css.d.ts +10 -0
- package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.css.js +49 -0
- package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.css.js.map +1 -0
- package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.d.ts +101 -0
- package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.js +463 -0
- package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.js.map +1 -0
- package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.test.d.ts +4 -0
- package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.test.js +506 -0
- package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.test.js.map +1 -0
- package/dist/src/nile-dropdown-switcher-group/index.d.ts +1 -0
- package/dist/src/nile-dropdown-switcher-group/index.js +2 -0
- package/dist/src/nile-dropdown-switcher-group/index.js.map +1 -0
- package/dist/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.css.d.ts +12 -0
- package/dist/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.css.js +49 -0
- package/dist/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.css.js.map +1 -0
- package/dist/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.d.ts +37 -0
- package/dist/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.js +72 -0
- package/dist/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.js.map +1 -0
- package/dist/src/nile-dropdown-switcher-header/index.d.ts +1 -0
- package/dist/src/nile-dropdown-switcher-header/index.js +2 -0
- package/dist/src/nile-dropdown-switcher-header/index.js.map +1 -0
- package/dist/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.css.d.ts +12 -0
- package/dist/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.css.js +103 -0
- package/dist/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.css.js.map +1 -0
- package/dist/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.d.ts +46 -0
- package/dist/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.js +105 -0
- package/dist/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.js.map +1 -0
- package/dist/src/nile-dropdown-switcher-item/index.d.ts +1 -0
- package/dist/src/nile-dropdown-switcher-item/index.js +2 -0
- package/dist/src/nile-dropdown-switcher-item/index.js.map +1 -0
- package/dist/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.css.d.ts +10 -0
- package/dist/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.css.js +112 -0
- package/dist/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.css.js.map +1 -0
- package/dist/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.d.ts +55 -0
- package/dist/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.js +154 -0
- package/dist/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.js.map +1 -0
- package/dist/src/nile-empty-state/nile-empty-state.d.ts +5 -0
- package/dist/src/nile-empty-state/nile-empty-state.js +11 -2
- package/dist/src/nile-empty-state/nile-empty-state.js.map +1 -1
- package/dist/src/nile-empty-state/nile-empty-state.test.js +31 -0
- package/dist/src/nile-empty-state/nile-empty-state.test.js.map +1 -1
- package/dist/src/nile-filter-chip/nile-filter-chip.css.js +2 -2
- package/dist/src/nile-filter-chip/nile-filter-chip.css.js.map +1 -1
- package/dist/src/nile-form-group/nile-form-group.css.js +1 -1
- package/dist/src/nile-form-group/nile-form-group.css.js.map +1 -1
- package/dist/src/nile-inline-sidebar-item/nile-inline-sidebar-item.css.js +20 -4
- package/dist/src/nile-inline-sidebar-item/nile-inline-sidebar-item.css.js.map +1 -1
- package/dist/src/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.js +1 -1
- package/dist/src/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.js.map +1 -1
- package/dist/src/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.js +3 -3
- package/dist/src/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.js.map +1 -1
- package/dist/src/nile-markdown-editor/nile-markdown-editor.css.js +4 -4
- package/dist/src/nile-markdown-editor/nile-markdown-editor.css.js.map +1 -1
- package/dist/src/nile-menu/nile-menu.css.js +1 -2
- package/dist/src/nile-menu/nile-menu.css.js.map +1 -1
- package/dist/src/nile-menu-item/nile-menu-item.css.js +4 -4
- package/dist/src/nile-menu-item/nile-menu-item.css.js.map +1 -1
- package/dist/src/nile-nav-tab/nile-nav-tab.css.js +3 -3
- package/dist/src/nile-nav-tab/nile-nav-tab.css.js.map +1 -1
- package/dist/src/nile-nav-tab-group/nile-nav-tab-group.css.js +15 -12
- package/dist/src/nile-nav-tab-group/nile-nav-tab-group.css.js.map +1 -1
- package/dist/src/nile-nav-tab-group/nile-nav-tab-group.test.js +111 -0
- package/dist/src/nile-nav-tab-group/nile-nav-tab-group.test.js.map +1 -1
- package/dist/src/nile-option/nile-option.css.js +2 -2
- package/dist/src/nile-option/nile-option.css.js.map +1 -1
- package/dist/src/nile-pagination/nile-pagination.css.js +10 -0
- package/dist/src/nile-pagination/nile-pagination.css.js.map +1 -1
- package/dist/src/nile-pagination/nile-pagination.d.ts +2 -0
- package/dist/src/nile-pagination/nile-pagination.js +13 -9
- package/dist/src/nile-pagination/nile-pagination.js.map +1 -1
- package/dist/src/nile-side-bar/nile-side-bar.css.js +14 -12
- package/dist/src/nile-side-bar/nile-side-bar.css.js.map +1 -1
- package/dist/src/nile-side-bar/nile-side-bar.d.ts +17 -0
- package/dist/src/nile-side-bar/nile-side-bar.js +68 -12
- package/dist/src/nile-side-bar/nile-side-bar.js.map +1 -1
- package/dist/src/nile-side-bar/nile-side-bar.test.d.ts +23 -0
- package/dist/src/nile-side-bar/nile-side-bar.test.js +1614 -1
- package/dist/src/nile-side-bar/nile-side-bar.test.js.map +1 -1
- package/dist/src/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.css.js +11 -4
- package/dist/src/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.css.js.map +1 -1
- package/dist/src/nile-side-bar-footer/nile-side-bar-footer.css.js +8 -3
- package/dist/src/nile-side-bar-footer/nile-side-bar-footer.css.js.map +1 -1
- package/dist/src/nile-side-bar-footer/nile-side-bar-footer.d.ts +7 -5
- package/dist/src/nile-side-bar-footer/nile-side-bar-footer.js +7 -5
- package/dist/src/nile-side-bar-footer/nile-side-bar-footer.js.map +1 -1
- package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.css.js +179 -23
- package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.css.js.map +1 -1
- package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.d.ts +15 -0
- package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.js +82 -2
- package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.js.map +1 -1
- package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.test.d.ts +9 -0
- package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.test.js +201 -0
- package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.test.js.map +1 -0
- package/dist/src/nile-side-bar-footer-text/nile-side-bar-footer-text.css.js +8 -3
- package/dist/src/nile-side-bar-footer-text/nile-side-bar-footer-text.css.js.map +1 -1
- package/dist/src/nile-side-bar-group/nile-side-bar-group.css.js +50 -7
- package/dist/src/nile-side-bar-group/nile-side-bar-group.css.js.map +1 -1
- package/dist/src/nile-side-bar-group/nile-side-bar-group.d.ts +35 -0
- package/dist/src/nile-side-bar-group/nile-side-bar-group.js +90 -3
- package/dist/src/nile-side-bar-group/nile-side-bar-group.js.map +1 -1
- package/dist/src/nile-side-bar-group-item/nile-side-bar-group-item.css.js +52 -7
- package/dist/src/nile-side-bar-group-item/nile-side-bar-group-item.css.js.map +1 -1
- package/dist/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.js +11 -2
- package/dist/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.js.map +1 -1
- package/dist/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.d.ts +11 -2
- package/dist/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.js +21 -15
- package/dist/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.js.map +1 -1
- package/dist/src/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.js +7 -4
- package/dist/src/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.js.map +1 -1
- package/dist/src/nile-side-bar-header/nile-side-bar-app-shell.test.js +22 -17
- package/dist/src/nile-side-bar-header/nile-side-bar-app-shell.test.js.map +1 -1
- package/dist/src/nile-side-bar-header/nile-side-bar-header-surface.test.d.ts +4 -0
- package/dist/src/nile-side-bar-header/nile-side-bar-header-surface.test.js +143 -0
- package/dist/src/nile-side-bar-header/nile-side-bar-header-surface.test.js.map +1 -0
- package/dist/src/nile-side-bar-header/nile-side-bar-header.css.js +10 -3
- package/dist/src/nile-side-bar-header/nile-side-bar-header.css.js.map +1 -1
- package/dist/src/nile-side-bar-header/nile-side-bar-header.d.ts +7 -5
- package/dist/src/nile-side-bar-header/nile-side-bar-header.js +7 -5
- package/dist/src/nile-side-bar-header/nile-side-bar-header.js.map +1 -1
- package/dist/src/nile-side-bar-header-switcher/index.d.ts +1 -0
- package/dist/src/nile-side-bar-header-switcher/index.js +2 -0
- package/dist/src/nile-side-bar-header-switcher/index.js.map +1 -0
- package/dist/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.d.ts +14 -0
- package/dist/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.js +97 -0
- package/dist/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.js.map +1 -0
- package/dist/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.d.ts +38 -0
- package/dist/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.js +86 -0
- package/dist/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.js.map +1 -0
- package/dist/src/nile-side-bar-search/index.d.ts +1 -0
- package/dist/src/nile-side-bar-search/index.js +2 -0
- package/dist/src/nile-side-bar-search/index.js.map +1 -0
- package/dist/src/nile-side-bar-search/nile-side-bar-search.css.d.ts +15 -0
- package/dist/src/nile-side-bar-search/nile-side-bar-search.css.js +118 -0
- package/dist/src/nile-side-bar-search/nile-side-bar-search.css.js.map +1 -0
- package/dist/src/nile-side-bar-search/nile-side-bar-search.d.ts +56 -0
- package/dist/src/nile-side-bar-search/nile-side-bar-search.js +150 -0
- package/dist/src/nile-side-bar-search/nile-side-bar-search.js.map +1 -0
- package/dist/src/nile-side-bar-search/nile-side-bar-search.test.d.ts +3 -0
- package/dist/src/nile-side-bar-search/nile-side-bar-search.test.js +153 -0
- package/dist/src/nile-side-bar-search/nile-side-bar-search.test.js.map +1 -0
- package/dist/src/nile-slide-toggle/nile-slide-toggle.css.js +1 -1
- package/dist/src/nile-slide-toggle/nile-slide-toggle.css.js.map +1 -1
- package/dist/src/nile-tooltip/nile-tooltip.css.js +7 -5
- package/dist/src/nile-tooltip/nile-tooltip.css.js.map +1 -1
- package/dist/src/nile-virtual-select/nile-virtual-select.css.js +1 -1
- package/dist/src/nile-virtual-select/nile-virtual-select.css.js.map +1 -1
- package/dist/src/nile-wysiwyg-editor/index.d.ts +2 -1
- package/dist/src/nile-wysiwyg-editor/index.js +1 -1
- package/dist/src/nile-wysiwyg-editor/index.js.map +1 -1
- package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.css.js +77 -2
- package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.css.js.map +1 -1
- package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.d.ts +20 -0
- package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.js +37 -1
- package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.js.map +1 -1
- package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.test.js +108 -0
- package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.test.js.map +1 -1
- package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.js +3 -3
- package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.js.map +1 -1
- package/dist/src/nile-wysiwyg-editor/types.d.ts +8 -0
- package/dist/src/nile-wysiwyg-editor/types.js +50 -0
- package/dist/src/nile-wysiwyg-editor/types.js.map +1 -1
- package/dist/src/version.js +1 -1
- package/dist/src/version.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/version.cjs.js +1 -1
- package/dist/version.cjs.js.map +1 -1
- package/dist/version.esm.js +1 -1
- package/package.json +1 -1
- package/src/index.ts +6 -0
- package/src/nile-app-shell/nile-app-shell.css.ts +70 -63
- package/src/nile-app-shell/nile-app-shell.test.ts +332 -1227
- package/src/nile-app-shell/nile-app-shell.ts +223 -44
- package/src/nile-app-shell/zz-layout.test.ts +271 -0
- package/src/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.ts +1 -5
- package/src/nile-app-shell-side-nav/nile-app-shell-side-nav.css.ts +24 -6
- package/src/nile-app-shell-side-nav/nile-app-shell-side-nav.ts +62 -2
- package/src/nile-button-filter/nile-button-filter.css.ts +1 -1
- package/src/nile-button-filter/nile-button-filter.ts +1 -3
- package/src/nile-calendar/nile-calendar.css.ts +9 -8
- package/src/nile-color-picker/nile-color-picker.css.ts +3 -3
- package/src/nile-combobox/nile-combobox.css.ts +1 -1
- package/src/nile-command-menu-item/nile-command-menu-item.css.ts +5 -1
- package/src/nile-context-menu/nile-context-menu.css.ts +2 -4
- package/src/nile-dropdown-switcher/index.ts +1 -0
- package/src/nile-dropdown-switcher/nile-dropdown-switcher.css.ts +51 -0
- package/src/nile-dropdown-switcher/nile-dropdown-switcher.test.ts +570 -0
- package/src/nile-dropdown-switcher/nile-dropdown-switcher.ts +502 -0
- package/src/nile-dropdown-switcher-group/index.ts +1 -0
- package/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.css.ts +51 -0
- package/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.ts +78 -0
- package/src/nile-dropdown-switcher-header/index.ts +1 -0
- package/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.css.ts +105 -0
- package/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.ts +105 -0
- package/src/nile-dropdown-switcher-item/index.ts +1 -0
- package/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.css.ts +114 -0
- package/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.ts +151 -0
- package/src/nile-empty-state/nile-empty-state.test.ts +24 -0
- package/src/nile-empty-state/nile-empty-state.ts +12 -2
- package/src/nile-filter-chip/nile-filter-chip.css.ts +2 -2
- package/src/nile-form-group/nile-form-group.css.ts +1 -1
- package/src/nile-inline-sidebar-item/nile-inline-sidebar-item.css.ts +20 -4
- package/src/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.ts +1 -1
- package/src/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.ts +3 -3
- package/src/nile-markdown-editor/nile-markdown-editor.css.ts +4 -4
- package/src/nile-menu/nile-menu.css.ts +1 -2
- package/src/nile-menu-item/nile-menu-item.css.ts +4 -4
- package/src/nile-nav-tab/nile-nav-tab.css.ts +3 -3
- package/src/nile-nav-tab-group/nile-nav-tab-group.css.ts +15 -12
- package/src/nile-nav-tab-group/nile-nav-tab-group.test.ts +130 -0
- package/src/nile-option/nile-option.css.ts +2 -2
- package/src/nile-pagination/nile-pagination.css.ts +10 -0
- package/src/nile-pagination/nile-pagination.ts +14 -9
- package/src/nile-side-bar/nile-side-bar.css.ts +14 -12
- package/src/nile-side-bar/nile-side-bar.test.ts +1854 -2
- package/src/nile-side-bar/nile-side-bar.ts +72 -15
- package/src/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.css.ts +11 -4
- package/src/nile-side-bar-footer/nile-side-bar-footer.css.ts +8 -3
- package/src/nile-side-bar-footer/nile-side-bar-footer.ts +7 -5
- package/src/nile-side-bar-footer-item/nile-side-bar-footer-item.css.ts +179 -23
- package/src/nile-side-bar-footer-item/nile-side-bar-footer-item.test.ts +219 -0
- package/src/nile-side-bar-footer-item/nile-side-bar-footer-item.ts +84 -2
- package/src/nile-side-bar-footer-text/nile-side-bar-footer-text.css.ts +8 -3
- package/src/nile-side-bar-group/nile-side-bar-group.css.ts +50 -7
- package/src/nile-side-bar-group/nile-side-bar-group.ts +100 -2
- package/src/nile-side-bar-group-item/nile-side-bar-group-item.css.ts +52 -7
- package/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.ts +11 -2
- package/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.ts +22 -19
- package/src/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.ts +7 -4
- package/src/nile-side-bar-header/nile-side-bar-app-shell.test.ts +22 -17
- package/src/nile-side-bar-header/nile-side-bar-header-surface.test.ts +175 -0
- package/src/nile-side-bar-header/nile-side-bar-header.css.ts +10 -3
- package/src/nile-side-bar-header/nile-side-bar-header.ts +7 -5
- package/src/nile-side-bar-header-switcher/index.ts +1 -0
- package/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.ts +99 -0
- package/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.ts +88 -0
- package/src/nile-side-bar-search/index.ts +1 -0
- package/src/nile-side-bar-search/nile-side-bar-search.css.ts +120 -0
- package/src/nile-side-bar-search/nile-side-bar-search.test.ts +175 -0
- package/src/nile-side-bar-search/nile-side-bar-search.ts +160 -0
- package/src/nile-slide-toggle/nile-slide-toggle.css.ts +1 -1
- package/src/nile-tooltip/nile-tooltip.css.ts +7 -5
- package/src/nile-virtual-select/nile-virtual-select.css.ts +1 -1
- package/src/nile-wysiwyg-editor/index.ts +2 -1
- package/src/nile-wysiwyg-editor/nile-wysiwyg-editor.css.ts +78 -2
- package/src/nile-wysiwyg-editor/nile-wysiwyg-editor.test.ts +132 -0
- package/src/nile-wysiwyg-editor/nile-wysiwyg-editor.ts +40 -1
- package/src/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.ts +3 -3
- package/src/nile-wysiwyg-editor/types.ts +52 -0
- package/test-timings.json +0 -1
- package/vscode-html-custom-data.json +372 -24
|
@@ -15,15 +15,20 @@ export const styles = css`
|
|
|
15
15
|
display: block;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
+
/* NxtGen: a 40px item with 2px block padding so the row inside is 36px; enterprise keeps 208 x 38. */
|
|
18
19
|
.group-item {
|
|
19
20
|
display: flex;
|
|
20
21
|
flex-direction: column;
|
|
22
|
+
box-sizing: border-box;
|
|
21
23
|
height: var(--nile-height-38px, var(--ng-spacing-40px));
|
|
22
|
-
width:
|
|
24
|
+
width: 100%;
|
|
25
|
+
padding-top: var(--nile-spacing-none, var(--ng-spacing-xxs));
|
|
26
|
+
padding-bottom: var(--nile-spacing-none, var(--ng-spacing-xxs));
|
|
23
27
|
overflow: hidden;
|
|
24
28
|
}
|
|
25
29
|
|
|
26
30
|
.item-link {
|
|
31
|
+
position: relative;
|
|
27
32
|
display: flex;
|
|
28
33
|
align-items: center;
|
|
29
34
|
justify-content: flex-start;
|
|
@@ -40,29 +45,69 @@ export const styles = css`
|
|
|
40
45
|
line-height: 1.4;
|
|
41
46
|
box-sizing: border-box;
|
|
42
47
|
font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-semibold));
|
|
48
|
+
/* The same 8px radius in every state (rest, hover, selected, focus ring), not only once hovered or selected. */
|
|
49
|
+
border-radius: var(--nile-radius-sm, var(--ng-radius-md));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* Default: text-secondary-700; the icon is fg-quaternary-400 (set on the nile-icon by nile-side-bar-group-item-icon). */
|
|
53
|
+
::slotted(nile-side-bar-group-item-text) {
|
|
54
|
+
color: var(--nile-colors-dark-900, var(--ng-colors-text-secondary-700));
|
|
43
55
|
}
|
|
44
56
|
|
|
45
57
|
.item-link:hover {
|
|
46
|
-
background: var(--nile-colors-neutral-400, var(--ng-colors-bg-
|
|
47
|
-
border-radius: var(--nile-radius-sm, var(--ng-radius-
|
|
58
|
+
background: var(--nile-colors-neutral-400, var(--ng-colors-bg-secondary-subtle));
|
|
59
|
+
border-radius: var(--nile-radius-sm, var(--ng-radius-md));
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/* Hover: text-tertiary-hover label and fg-tertiary-hover icon. A selected item keeps its selected colours, so it is excluded from the icon rule. */
|
|
63
|
+
.item-link:hover ::slotted(nile-side-bar-group-item-text) {
|
|
64
|
+
color: var(--nile-colors-dark-800, var(--ng-colors-text-tertiary-hover));
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
:host(:not([active])) .item-link:hover ::slotted(nile-side-bar-group-item-icon) {
|
|
68
|
+
color: var(--nile-colors-dark-900, var(--ng-colors-fg-tertiary-hover));
|
|
48
69
|
}
|
|
49
70
|
|
|
71
|
+
/* The icon is drawn in its own colour: fg-quaternary-400 by default, recoloured by the hover and selected rules above and below. */
|
|
50
72
|
::slotted(nile-side-bar-group-item-icon) {
|
|
51
73
|
flex-shrink: 0;
|
|
74
|
+
color: var(--nile-colors-dark-900, var(--ng-colors-fg-quaternary-400));
|
|
52
75
|
}
|
|
53
76
|
|
|
54
77
|
::slotted(nile-side-bar-group-item-text) {
|
|
55
78
|
flex-grow: 1;
|
|
56
79
|
}
|
|
57
80
|
|
|
81
|
+
/* Every selected item shows the same background/text/icon regardless of hover/focus state. */
|
|
58
82
|
:host([active]) [part="link"] {
|
|
59
|
-
background: var(--nile-colors-primary-100, var(--ng-colors-bg-
|
|
60
|
-
border-radius: var(--nile-radius-sm, var(--ng-radius-
|
|
83
|
+
background: var(--nile-colors-primary-100, var(--ng-colors-bg-primary));
|
|
84
|
+
border-radius: var(--nile-radius-sm, var(--ng-radius-md));
|
|
61
85
|
}
|
|
62
86
|
|
|
87
|
+
:host([active]) ::slotted(nile-side-bar-group-item-text) {
|
|
88
|
+
color: var(--nile-colors-dark-900, var(--ng-colors-text-brand-secondary-700));
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
:host([active]) ::slotted(nile-side-bar-group-item-icon) {
|
|
92
|
+
color: var(--ng-colors-fg-brand-primary-600);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* Focus-visible adds only the ring, independent of selection -- a safe no-op on enterprise. */
|
|
96
|
+
.item-link:focus-visible {
|
|
97
|
+
outline: none;
|
|
98
|
+
box-shadow: inset 0 0 0 var(--ng-border-width-2) var(--ng-colors-effects-focus-ring);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/* Collapsed: 40 x 40 (38 x 38 on enterprise), clipped. */
|
|
63
102
|
:host([collapsed]) .group-item {
|
|
64
|
-
height: 38px;
|
|
65
|
-
width: 38px;
|
|
103
|
+
height: var(--nile-height-38px, var(--ng-spacing-40px));
|
|
104
|
+
width: var(--nile-width-38px, var(--ng-spacing-40px));
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/* Collapsed NxtGen: the 12px side padding left the icon 2px right of the 40px item's centre (x=38 in a 72px rail). Zero it: the icon box then spans the item and centres its glyph at x=36, with the clipped label starting after it. Enterprise keeps its own padding. */
|
|
108
|
+
:host([collapsed]) .item-link {
|
|
109
|
+
padding-left: var(--nile-spacing-md, var(--ng-spacing-none));
|
|
110
|
+
padding-right: var(--nile-spacing-md, var(--ng-spacing-none));
|
|
66
111
|
}
|
|
67
112
|
|
|
68
113
|
:host([disabled]) .item-link {
|
|
@@ -6,7 +6,8 @@ export const styles = css`
|
|
|
6
6
|
align-items: center;
|
|
7
7
|
justify-content: center;
|
|
8
8
|
flex-shrink: 0;
|
|
9
|
-
|
|
9
|
+
/* 8px to the label on NxtGen; enterprise keeps 12px. */
|
|
10
|
+
margin-right: var(--nile-spacing-lg, var(--ng-spacing-md));
|
|
10
11
|
color: inherit;
|
|
11
12
|
}
|
|
12
13
|
|
|
@@ -18,9 +19,17 @@ export const styles = css`
|
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
|
|
22
|
+
/* NxtGen keeps the icon's x when the bar collapses; enterprise centers it in the rail item. */
|
|
21
23
|
:host([collapsed]) {
|
|
22
|
-
margin-right:
|
|
24
|
+
margin-right: var(--nile-spacing-none, var(--ng-spacing-md));
|
|
23
25
|
width: 100%;
|
|
26
|
+
min-width: var(--nile-spacing-none, var(--ng-height-20px));
|
|
27
|
+
justify-content: center;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
:host([collapsed]) nile-lite-tooltip {
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
24
33
|
justify-content: center;
|
|
25
34
|
}
|
|
26
35
|
|
|
@@ -9,7 +9,6 @@ import { html, CSSResultArray, TemplateResult } from 'lit';
|
|
|
9
9
|
import { customElement, property } from 'lit/decorators.js';
|
|
10
10
|
import { styles } from './nile-side-bar-group-item-icon.css';
|
|
11
11
|
import NileElement from '../internal/nile-element';
|
|
12
|
-
import type { NileSideBar } from '../nile-side-bar/nile-side-bar';
|
|
13
12
|
|
|
14
13
|
/**
|
|
15
14
|
* Nile side-bar-group-item-icon component.
|
|
@@ -20,6 +19,9 @@ import type { NileSideBar } from '../nile-side-bar/nile-side-bar';
|
|
|
20
19
|
* @attr tooltip - Tooltip text shown when sidebar is collapsed
|
|
21
20
|
*
|
|
22
21
|
* @slot - Optional slot to override the icon completely
|
|
22
|
+
*
|
|
23
|
+
* The icon is drawn in the host's `color`, which nile-side-bar-group-item sets: fg-quaternary-400 by
|
|
24
|
+
* default, fg-tertiary-hover on hover and text-brand-secondary-700 when selected.
|
|
23
25
|
*/
|
|
24
26
|
@customElement('nile-side-bar-group-item-icon')
|
|
25
27
|
export class NileSideBarGroupItemIcon extends NileElement {
|
|
@@ -38,36 +40,37 @@ export class NileSideBarGroupItemIcon extends NileElement {
|
|
|
38
40
|
@property({ type: String })
|
|
39
41
|
method: string = 'fill';
|
|
40
42
|
|
|
43
|
+
/** Icon size: 14px on the enterprise sheet, 20px on NxtGen (the App Shell audit's menu icon), resolved by nile-icon from the theme tokens. */
|
|
41
44
|
@property({ type: String })
|
|
42
|
-
size: string = '14';
|
|
45
|
+
size: string = 'var(--nile-icon-size-14, var(--ng-height-20px))';
|
|
43
46
|
|
|
44
47
|
@property ({type: Boolean, attribute: true, reflect: true}) enableVisibilityEffect: boolean = false;
|
|
45
48
|
|
|
46
49
|
@property ({type: Number, attribute: true, reflect: true}) duration: number = 200;
|
|
47
50
|
|
|
48
|
-
private sidebar: NileSideBar | null = null;
|
|
49
|
-
|
|
50
51
|
public static get styles(): CSSResultArray {
|
|
51
52
|
return [styles];
|
|
52
53
|
}
|
|
53
54
|
|
|
55
|
+
/**
|
|
56
|
+
* The container (nile-side-bar or nile-app-shell-side-nav) sets `[collapsed]` on this element, so
|
|
57
|
+
* the tooltip follows that attribute rather than finding a parent sidebar. It has to re-render
|
|
58
|
+
* when the attribute changes, and it is not a reactive property.
|
|
59
|
+
*/
|
|
60
|
+
static get observedAttributes(): string[] {
|
|
61
|
+
return [...super.observedAttributes, 'collapsed'];
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
attributeChangedCallback(name: string, old: string | null, value: string | null): void {
|
|
65
|
+
super.attributeChangedCallback(name, old, value);
|
|
66
|
+
if (name === 'collapsed') this.requestUpdate();
|
|
67
|
+
}
|
|
68
|
+
|
|
54
69
|
connectedCallback(): void {
|
|
55
70
|
if (!this.hasAttribute('slot')) {
|
|
56
71
|
this.setAttribute('slot', 'icon');
|
|
57
72
|
}
|
|
58
|
-
|
|
59
73
|
super.connectedCallback();
|
|
60
|
-
this.sidebar = this.closest('nile-side-bar') as NileSideBar | null;
|
|
61
|
-
if (this.sidebar) {
|
|
62
|
-
const observer = new MutationObserver(() => this.requestUpdate());
|
|
63
|
-
observer.observe(this.sidebar, { attributes: true, attributeFilter: ['collapsed'] });
|
|
64
|
-
(this as any)._observer = observer;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
disconnectedCallback(): void {
|
|
69
|
-
super.disconnectedCallback();
|
|
70
|
-
(this as any)._observer?.disconnect();
|
|
71
74
|
}
|
|
72
75
|
|
|
73
76
|
private getSiblingText(): string {
|
|
@@ -77,7 +80,7 @@ export class NileSideBarGroupItemIcon extends NileElement {
|
|
|
77
80
|
}
|
|
78
81
|
|
|
79
82
|
public render(): TemplateResult {
|
|
80
|
-
const isCollapsed =
|
|
83
|
+
const isCollapsed = this.hasAttribute('collapsed');
|
|
81
84
|
const text = this.tooltip || this.getSiblingText();
|
|
82
85
|
|
|
83
86
|
if (isCollapsed && text) {
|
|
@@ -85,7 +88,7 @@ export class NileSideBarGroupItemIcon extends NileElement {
|
|
|
85
88
|
|
|
86
89
|
<slot>
|
|
87
90
|
<nile-lite-tooltip hoist distance="18" content=${text} placement="right" enableVisibilityEffect=${this.enableVisibilityEffect} duration=${this.duration}>
|
|
88
|
-
${this.icon ? html`<nile-icon size=${this.size} color="
|
|
91
|
+
${this.icon ? html`<nile-icon size=${this.size} color="currentColor" name=${this.icon} method=${this.method}></nile-icon>` : null}
|
|
89
92
|
</nile-lite-tooltip>
|
|
90
93
|
</slot>
|
|
91
94
|
|
|
@@ -94,7 +97,7 @@ export class NileSideBarGroupItemIcon extends NileElement {
|
|
|
94
97
|
|
|
95
98
|
return html`
|
|
96
99
|
<slot>
|
|
97
|
-
${this.icon ? html`<nile-icon size=${this.size} color="
|
|
100
|
+
${this.icon ? html`<nile-icon size=${this.size} color="currentColor" name=${this.icon} method=${this.method}></nile-icon>` : null}
|
|
98
101
|
</slot>
|
|
99
102
|
`;
|
|
100
103
|
}
|
|
@@ -8,9 +8,10 @@ export const styles = css`
|
|
|
8
8
|
display: block;
|
|
9
9
|
flex: 1 1 auto;
|
|
10
10
|
min-width: 0;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
/* NxtGen: Text sm/Semibold, 14/20; enterprise is unchanged. */
|
|
12
|
+
font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));
|
|
13
|
+
line-height: var(--nile-line-height-small, var(--ng-line-height-text-sm));
|
|
14
|
+
font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-semibold));
|
|
14
15
|
font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
|
|
15
16
|
color: var(--nile-colors-dark-900, var(--ng-colors-text-secondary-700));
|
|
16
17
|
white-space: nowrap;
|
|
@@ -22,8 +23,10 @@ export const styles = css`
|
|
|
22
23
|
font: inherit;
|
|
23
24
|
color: inherit;
|
|
24
25
|
}
|
|
26
|
+
/* Enterprise hides the label in the rail. NxtGen keeps it laid out at full width and lets the 40px item clip it, as the Figma rail does. */
|
|
25
27
|
:host([collapsed]) {
|
|
26
|
-
display: none;
|
|
28
|
+
display: var(--nile-display-none, block);
|
|
29
|
+
flex: 0 0 auto;
|
|
27
30
|
}
|
|
28
31
|
`;
|
|
29
32
|
|
|
@@ -11,18 +11,19 @@ const TRANSPARENT = 'rgba(0, 0, 0, 0)';
|
|
|
11
11
|
const SURFACE = 'rgb(1, 2, 3)';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
|
-
* nile-app-shell owns the nav track's surface, so it
|
|
15
|
-
* sidebar's own
|
|
14
|
+
* nile-app-shell owns the nav track's surface, so it sets the slotted
|
|
15
|
+
* sidebar's background to the sidebar's own bg-tertiary
|
|
16
|
+
* token:
|
|
16
17
|
*
|
|
17
18
|
* ::slotted([slot='side-nav']) {
|
|
18
|
-
* background: var(--nile-
|
|
19
|
+
* background: var(--nile-colors-neutral-100, var(--ng-colors-bg-tertiary));
|
|
19
20
|
* }
|
|
20
21
|
*
|
|
21
22
|
* That reaches the `nile-side-bar` only. The header and footer live one level
|
|
22
23
|
* deeper — they are light-DOM children of the sidebar, slotted into ITS shadow
|
|
23
|
-
* root — so the shell cannot see them
|
|
24
|
-
*
|
|
25
|
-
* `background
|
|
24
|
+
* root — so the shell cannot see them. The sidebar itself makes them paint nothing
|
|
25
|
+
* by default (`::slotted(nile-side-bar-header / -footer)`), so they show the sidebar
|
|
26
|
+
* surface with no `background` attribute. These tests pin that down.
|
|
26
27
|
*/
|
|
27
28
|
async function shellWithSidebar(headerBg?: string, footerBg?: string) {
|
|
28
29
|
const el = await fixture<NileAppShell>(html`
|
|
@@ -52,27 +53,31 @@ async function shellWithSidebar(headerBg?: string, footerBg?: string) {
|
|
|
52
53
|
const bg = (el: HTMLElement) => getComputedStyle(el).backgroundColor;
|
|
53
54
|
|
|
54
55
|
describe('side-bar header/footer inside nile-app-shell', () => {
|
|
55
|
-
it('1. the shell
|
|
56
|
+
it('1. the shell gives the sidebar the sidebar surface token (the same colour as the shell behind it)', async () => {
|
|
56
57
|
const { sidebar } = await shellWithSidebar();
|
|
57
|
-
expect(bg(sidebar)).to.equal(
|
|
58
|
+
expect(bg(sidebar)).to.equal(SURFACE);
|
|
58
59
|
});
|
|
59
60
|
|
|
60
|
-
it('2.
|
|
61
|
-
const { header, footer } = await shellWithSidebar();
|
|
62
|
-
expect(bg(
|
|
63
|
-
expect(bg(
|
|
61
|
+
it('2. with no property the header and footer paint nothing and follow the sidebar surface, so there is no seam', async () => {
|
|
62
|
+
const { sidebar, header, footer } = await shellWithSidebar();
|
|
63
|
+
expect(bg(sidebar)).to.equal(SURFACE);
|
|
64
|
+
expect(bg(header)).to.equal(TRANSPARENT);
|
|
65
|
+
expect(bg(footer)).to.equal(TRANSPARENT);
|
|
64
66
|
});
|
|
65
67
|
|
|
66
68
|
it('3. background="transparent" closes the seam — nav track is one flat surface', async () => {
|
|
67
69
|
const { sidebar, header, footer } = await shellWithSidebar('transparent', 'transparent');
|
|
68
|
-
expect(bg(sidebar)).to.equal(
|
|
70
|
+
expect(bg(sidebar)).to.equal(SURFACE);
|
|
69
71
|
expect(bg(header)).to.equal(TRANSPARENT);
|
|
70
72
|
expect(bg(footer)).to.equal(TRANSPARENT);
|
|
71
73
|
});
|
|
72
74
|
|
|
73
|
-
it('4.
|
|
74
|
-
const
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
it('4. every header/footer background value gives the same visible surface inside the sidebar', async () => {
|
|
76
|
+
for (const [headerBg, footerBg] of [['default', 'transparent'], ['transparent', 'default'], ['transparent', 'transparent']]) {
|
|
77
|
+
const { sidebar, header, footer } = await shellWithSidebar(headerBg, footerBg);
|
|
78
|
+
expect(bg(sidebar), `${headerBg}/${footerBg}`).to.equal(SURFACE);
|
|
79
|
+
expect(bg(header), `header ${headerBg}`).to.equal(TRANSPARENT);
|
|
80
|
+
expect(bg(footer), `footer ${footerBg}`).to.equal(TRANSPARENT);
|
|
81
|
+
}
|
|
77
82
|
});
|
|
78
83
|
});
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { expect, fixture, html } from '@open-wc/testing';
|
|
2
|
+
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
3
|
+
import '../nile-side-bar/nile-side-bar';
|
|
4
|
+
import './nile-side-bar-header';
|
|
5
|
+
import '../nile-side-bar-footer/nile-side-bar-footer';
|
|
6
|
+
import '../nile-side-bar-group/nile-side-bar-group';
|
|
7
|
+
import type { NileSideBar } from '../nile-side-bar/nile-side-bar';
|
|
8
|
+
import type { NileSideBarHeader } from './nile-side-bar-header';
|
|
9
|
+
import type { NileSideBarFooter } from '../nile-side-bar-footer/nile-side-bar-footer';
|
|
10
|
+
|
|
11
|
+
const TRANSPARENT = 'rgba(0, 0, 0, 0)';
|
|
12
|
+
|
|
13
|
+
const loadSheet = (href: string) =>
|
|
14
|
+
new Promise<HTMLLinkElement>((resolveLoad, reject) => {
|
|
15
|
+
const link = document.createElement('link');
|
|
16
|
+
link.rel = 'stylesheet';
|
|
17
|
+
link.href = href;
|
|
18
|
+
link.onload = () => resolveLoad(link);
|
|
19
|
+
link.onerror = () => reject(new Error(`could not load ${href}`));
|
|
20
|
+
document.head.append(link);
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
// A token's colour as the browser resolves it, so no hex value is written in this file.
|
|
24
|
+
const resolve = (token: string): string => {
|
|
25
|
+
const probe = document.createElement('div');
|
|
26
|
+
probe.style.backgroundColor = `var(${token})`;
|
|
27
|
+
document.body.append(probe);
|
|
28
|
+
const colour = getComputedStyle(probe).backgroundColor;
|
|
29
|
+
probe.remove();
|
|
30
|
+
return colour;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
interface MountOptions {
|
|
34
|
+
background?: string;
|
|
35
|
+
collapsed?: boolean;
|
|
36
|
+
style?: string;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
const mount = async ({ background, collapsed, style }: MountOptions = {}) => {
|
|
40
|
+
const bar = await fixture<NileSideBar>(html`
|
|
41
|
+
<nile-side-bar ?collapsed=${collapsed} style="transition: none">
|
|
42
|
+
<nile-side-bar-header background=${ifDefined(background)} style=${ifDefined(style)}>
|
|
43
|
+
<span slot="logo">Aquera</span>
|
|
44
|
+
</nile-side-bar-header>
|
|
45
|
+
<nile-side-bar-group></nile-side-bar-group>
|
|
46
|
+
<nile-side-bar-footer background=${ifDefined(background)} style=${ifDefined(style)}></nile-side-bar-footer>
|
|
47
|
+
</nile-side-bar>
|
|
48
|
+
`);
|
|
49
|
+
const header = bar.querySelector('nile-side-bar-header') as NileSideBarHeader;
|
|
50
|
+
const footer = bar.querySelector('nile-side-bar-footer') as NileSideBarFooter;
|
|
51
|
+
await header.updateComplete;
|
|
52
|
+
await footer.updateComplete;
|
|
53
|
+
await bar.updateComplete;
|
|
54
|
+
return { bar, header, footer };
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
const bgOf = (el: Element) => getComputedStyle(el).backgroundColor;
|
|
58
|
+
|
|
59
|
+
/** The header paints nothing, so what shows through it is the sidebar's own surface. */
|
|
60
|
+
const expectOneSurface = (bar: Element, header: Element, surface: string, label: string) => {
|
|
61
|
+
expect(bgOf(header), `${label}: header paints nothing`).to.equal(TRANSPARENT);
|
|
62
|
+
const footer = bar.querySelector('nile-side-bar-footer')!;
|
|
63
|
+
expect(bgOf(footer), `${label}: footer paints nothing`).to.equal(TRANSPARENT);
|
|
64
|
+
expect(bgOf(bar), `${label}: sidebar surface`).to.equal(surface);
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
for (const theme of ['light', 'dark'] as const) {
|
|
68
|
+
describe(`nile-side-bar-header surface (NxtGen ${theme})`, () => {
|
|
69
|
+
let sheet: HTMLLinkElement;
|
|
70
|
+
before(async () => {
|
|
71
|
+
sheet = await loadSheet('/demo/nxtgen-dark.css');
|
|
72
|
+
});
|
|
73
|
+
after(() => {
|
|
74
|
+
sheet.remove();
|
|
75
|
+
document.documentElement.removeAttribute('data-theme');
|
|
76
|
+
});
|
|
77
|
+
beforeEach(() => document.documentElement.setAttribute('data-theme', theme));
|
|
78
|
+
|
|
79
|
+
it('follows the sidebar bg-tertiary with no background attribute, expanded and collapsed', async () => {
|
|
80
|
+
for (const collapsed of [false, true]) {
|
|
81
|
+
const { bar, header } = await mount({ collapsed });
|
|
82
|
+
expectOneSurface(bar, header, resolve('--ng-colors-bg-tertiary'), collapsed ? 'collapsed' : 'expanded');
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
it('is not the old bg-primary default', async () => {
|
|
87
|
+
const { header } = await mount();
|
|
88
|
+
expect(bgOf(header)).to.not.equal(resolve('--ng-colors-bg-primary'));
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
it('reflects background="default" and still follows the sidebar', async () => {
|
|
92
|
+
const { bar, header } = await mount();
|
|
93
|
+
expect(header.getAttribute('background')).to.equal('default');
|
|
94
|
+
expectOneSurface(bar, header, resolve('--ng-colors-bg-tertiary'), 'default');
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
it('keeps background="transparent" working', async () => {
|
|
98
|
+
const { bar, header } = await mount({ background: 'transparent' });
|
|
99
|
+
expectOneSurface(bar, header, resolve('--ng-colors-bg-tertiary'), 'transparent');
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
it('lets an author rule on the header win over the sidebar default', async () => {
|
|
103
|
+
const { header, footer } = await mount({ style: 'background: rgb(9, 8, 7)' });
|
|
104
|
+
expect(bgOf(header)).to.equal('rgb(9, 8, 7)');
|
|
105
|
+
expect(bgOf(footer)).to.equal('rgb(9, 8, 7)');
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
it('a header on its own keeps painting bg-primary, and transparent still removes it', async () => {
|
|
109
|
+
const alone = await fixture<NileSideBarHeader>(html`<nile-side-bar-header></nile-side-bar-header>`);
|
|
110
|
+
expect(bgOf(alone)).to.equal(resolve('--ng-colors-bg-primary'));
|
|
111
|
+
const bare = await fixture<NileSideBarHeader>(
|
|
112
|
+
html`<nile-side-bar-header background="transparent"></nile-side-bar-header>`
|
|
113
|
+
);
|
|
114
|
+
expect(bgOf(bare)).to.equal(TRANSPARENT);
|
|
115
|
+
const footer = await fixture<NileSideBarFooter>(html`<nile-side-bar-footer></nile-side-bar-footer>`);
|
|
116
|
+
expect(bgOf(footer), 'a footer on its own keeps bg-primary').to.equal(resolve('--ng-colors-bg-primary'));
|
|
117
|
+
const bareFooter = await fixture<NileSideBarFooter>(
|
|
118
|
+
html`<nile-side-bar-footer background="transparent"></nile-side-bar-footer>`
|
|
119
|
+
);
|
|
120
|
+
expect(bgOf(bareFooter)).to.equal(TRANSPARENT);
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
it('changes no sidebar border, width or header spacing', async () => {
|
|
124
|
+
const expanded = await mount();
|
|
125
|
+
expect(getComputedStyle(expanded.bar).borderRightWidth, 'no NxtGen right border').to.equal('0px');
|
|
126
|
+
expect(expanded.bar.getBoundingClientRect().width).to.equal(260);
|
|
127
|
+
const style = getComputedStyle(expanded.header);
|
|
128
|
+
expect([style.paddingTop, style.paddingLeft, style.paddingRight, style.paddingBottom]).to.deep.equal([
|
|
129
|
+
'12px',
|
|
130
|
+
'16px',
|
|
131
|
+
'16px',
|
|
132
|
+
'16px',
|
|
133
|
+
]);
|
|
134
|
+
const collapsed = await mount({ collapsed: true });
|
|
135
|
+
expect(collapsed.bar.getBoundingClientRect().width).to.equal(72);
|
|
136
|
+
expect(getComputedStyle(collapsed.bar).borderRightWidth).to.equal('0px');
|
|
137
|
+
});
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
describe('nile-side-bar-header surface (Enterprise)', () => {
|
|
142
|
+
let sheet: HTMLLinkElement;
|
|
143
|
+
before(async () => {
|
|
144
|
+
sheet = await loadSheet('/demo/variables.css');
|
|
145
|
+
});
|
|
146
|
+
after(() => sheet.remove());
|
|
147
|
+
|
|
148
|
+
it('follows the enterprise sidebar surface (neutral-100) with no background attribute, expanded and collapsed', async () => {
|
|
149
|
+
for (const collapsed of [false, true]) {
|
|
150
|
+
const { bar, header } = await mount({ collapsed });
|
|
151
|
+
expectOneSurface(bar, header, resolve('--nile-colors-neutral-100'), collapsed ? 'collapsed' : 'expanded');
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
|
|
155
|
+
it('leaves the enterprise sidebar border and size as they were', async () => {
|
|
156
|
+
const { bar } = await mount();
|
|
157
|
+
expect(getComputedStyle(bar).borderRightWidth).to.equal('1px');
|
|
158
|
+
// 240px of width plus the 1px enterprise border (content-box), unchanged by the header.
|
|
159
|
+
expect(bar.getBoundingClientRect().width).to.equal(241);
|
|
160
|
+
const collapsed = await mount({ collapsed: true });
|
|
161
|
+
expect(collapsed.bar.getBoundingClientRect().width).to.equal(71);
|
|
162
|
+
});
|
|
163
|
+
|
|
164
|
+
it('keeps background="transparent" working', async () => {
|
|
165
|
+
const { bar, header } = await mount({ background: 'transparent' });
|
|
166
|
+
expectOneSurface(bar, header, resolve('--nile-colors-neutral-100'), 'transparent');
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
it('a header or footer on its own keeps painting neutral-100', async () => {
|
|
170
|
+
const alone = await fixture<NileSideBarHeader>(html`<nile-side-bar-header></nile-side-bar-header>`);
|
|
171
|
+
expect(bgOf(alone)).to.equal(resolve('--nile-colors-neutral-100'));
|
|
172
|
+
const footer = await fixture<NileSideBarFooter>(html`<nile-side-bar-footer></nile-side-bar-footer>`);
|
|
173
|
+
expect(bgOf(footer)).to.equal(resolve('--nile-colors-neutral-100'));
|
|
174
|
+
});
|
|
175
|
+
});
|
|
@@ -15,10 +15,10 @@ export const styles = css`
|
|
|
15
15
|
display: flex;
|
|
16
16
|
align-items: center;
|
|
17
17
|
justify-content: space-between;
|
|
18
|
-
padding-top: var(--nile-spacing-xl, var(--ng-spacing-
|
|
18
|
+
padding-top: var(--nile-spacing-xl, var(--ng-spacing-lg));
|
|
19
19
|
padding-bottom: var(--nile-spacing-lg, var(--ng-spacing-xl));
|
|
20
|
-
padding-left: var(--nile-spacing-xl, var(--ng-spacing-
|
|
21
|
-
padding-right: var(--nile-spacing-xl, var(--ng-spacing-
|
|
20
|
+
padding-left: var(--nile-spacing-xl, var(--ng-spacing-xl));
|
|
21
|
+
padding-right: var(--nile-spacing-xl, var(--ng-spacing-xl));
|
|
22
22
|
top: 0;
|
|
23
23
|
background: var(--nile-colors-neutral-100, var(--ng-colors-bg-primary));
|
|
24
24
|
}
|
|
@@ -54,6 +54,13 @@ export const styles = css`
|
|
|
54
54
|
text-transform: none;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
/* The workspace switcher fills the row rather than centering at its text width. */
|
|
58
|
+
::slotted(nile-side-bar-header-switcher) {
|
|
59
|
+
flex: 1 1 auto;
|
|
60
|
+
align-self: stretch;
|
|
61
|
+
min-width: 0;
|
|
62
|
+
}
|
|
63
|
+
|
|
57
64
|
::slotted([slot='actions']) {
|
|
58
65
|
display: flex;
|
|
59
66
|
align-items: center;
|
|
@@ -17,16 +17,18 @@ import NileElement from '../internal/nile-element';
|
|
|
17
17
|
* @tag nile-side-bar-header
|
|
18
18
|
*
|
|
19
19
|
* @attr background - Background treatment of the header ("default" | "transparent").
|
|
20
|
-
* Defaults to "default"
|
|
21
|
-
*
|
|
22
|
-
*
|
|
20
|
+
* Defaults to "default". Inside a `nile-side-bar` the header paints nothing, so it
|
|
21
|
+
* follows the sidebar's own surface with no attribute needed; on its own it paints
|
|
22
|
+
* its own surface. "transparent" always drops the background so whatever sits
|
|
23
|
+
* behind the header shows through.
|
|
23
24
|
*/
|
|
24
25
|
@customElement('nile-side-bar-header')
|
|
25
26
|
export class NileSideBarHeader extends NileElement {
|
|
26
27
|
|
|
27
28
|
/**
|
|
28
|
-
* Background treatment of the header. `default`
|
|
29
|
-
*
|
|
29
|
+
* Background treatment of the header. `default` follows the sidebar surface
|
|
30
|
+
* inside a `nile-side-bar` (and paints its own surface when used on its own);
|
|
31
|
+
* `transparent` removes the background everywhere.
|
|
30
32
|
*/
|
|
31
33
|
@property({ type: String, reflect: true, attribute: true }) background: 'default' | 'transparent' = 'default';
|
|
32
34
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NileSideBarHeaderSwitcher } from './nile-side-bar-header-switcher';
|
|
@@ -0,0 +1,99 @@
|
|
|
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
|
+
import { css } from 'lit';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* SideBarHeaderSwitcher CSS
|
|
12
|
+
*
|
|
13
|
+
* 40px tall. The Enterprise stroke is an inset shadow (not a real border) so it adds no layout space; NxtGen draws none.
|
|
14
|
+
*/
|
|
15
|
+
export const styles = css`
|
|
16
|
+
:host {
|
|
17
|
+
display: block;
|
|
18
|
+
min-width: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.switcher {
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
gap: var(--nile-spacing-md, var(--ng-spacing-md));
|
|
25
|
+
box-sizing: border-box;
|
|
26
|
+
width: 100%;
|
|
27
|
+
height: var(--nile-height-40px, var(--ng-height-40px));
|
|
28
|
+
margin: var(--nile-spacing-none, var(--ng-spacing-none));
|
|
29
|
+
padding: var(--nile-spacing-sm, var(--ng-spacing-sm));
|
|
30
|
+
border: var(--nile-border-width-0, var(--ng-border-width-0));
|
|
31
|
+
border-radius: var(--nile-radius-md, var(--ng-radius-md));
|
|
32
|
+
/* NxtGen rests transparent with no visible stroke; Enterprise keeps its neutral-100 fill and neutral-400 stroke. */
|
|
33
|
+
background: var(--nile-colors-neutral-100, transparent);
|
|
34
|
+
box-shadow: inset 0 0 0 1px var(--nile-colors-neutral-400, transparent);
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
font: inherit;
|
|
38
|
+
color: inherit;
|
|
39
|
+
text-align: start;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* 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. */
|
|
43
|
+
.switcher:hover {
|
|
44
|
+
background: var(--nile-colors-neutral-100, var(--ng-colors-bg-secondary-subtle));
|
|
45
|
+
box-shadow: inset 0 0 0 1px var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.logo {
|
|
49
|
+
flex: 0 0 auto;
|
|
50
|
+
display: inline-flex;
|
|
51
|
+
width: var(--nile-height-28px, var(--ng-height-28px));
|
|
52
|
+
height: var(--nile-height-28px, var(--ng-height-28px));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.logo img,
|
|
56
|
+
::slotted([slot='logo']) {
|
|
57
|
+
display: block;
|
|
58
|
+
width: 100%;
|
|
59
|
+
height: 100%;
|
|
60
|
+
object-fit: contain;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* Text sm (14px) on a 24px line, Bold. */
|
|
64
|
+
.label {
|
|
65
|
+
flex: 1 1 auto;
|
|
66
|
+
min-width: 0;
|
|
67
|
+
white-space: nowrap;
|
|
68
|
+
overflow: hidden;
|
|
69
|
+
text-overflow: ellipsis;
|
|
70
|
+
font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
|
|
71
|
+
font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));
|
|
72
|
+
line-height: var(--nile-line-height-medium, var(--ng-line-height-text-md));
|
|
73
|
+
font-weight: var(--nile-font-weight-bold, var(--ng-font-weight-bold));
|
|
74
|
+
/* -4% tracking (-0.56px at 14px): lets "Workforce Intelligence" fit the 152px available. */
|
|
75
|
+
letter-spacing: -0.04em;
|
|
76
|
+
color: var(--nile-colors-dark-900, var(--ng-colors-text-secondary-700));
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.chevron {
|
|
80
|
+
flex: 0 0 auto;
|
|
81
|
+
display: inline-flex;
|
|
82
|
+
align-items: center;
|
|
83
|
+
justify-content: center;
|
|
84
|
+
width: var(--nile-height-20px, var(--ng-height-20px));
|
|
85
|
+
height: var(--nile-height-20px, var(--ng-height-20px));
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/* 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. */
|
|
89
|
+
:host([collapsed]) .switcher {
|
|
90
|
+
justify-content: center;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
:host([collapsed]) .label,
|
|
94
|
+
:host([collapsed]) .chevron {
|
|
95
|
+
display: none;
|
|
96
|
+
}
|
|
97
|
+
`;
|
|
98
|
+
|
|
99
|
+
export default [styles];
|