@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
|
@@ -0,0 +1,105 @@
|
|
|
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
|
+
* DropdownSwitcherHeader CSS
|
|
12
|
+
*/
|
|
13
|
+
export const styles = css`
|
|
14
|
+
:host {
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
display: block;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
:host *,
|
|
20
|
+
:host *::before,
|
|
21
|
+
:host *::after {
|
|
22
|
+
box-sizing: inherit;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.header {
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
gap: var(--nile-spacing-md, var(--ng-spacing-md));
|
|
29
|
+
padding: var(--nile-spacing-lg, var(--ng-spacing-lg));
|
|
30
|
+
border-bottom: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.header__icon {
|
|
34
|
+
flex: 0 0 auto;
|
|
35
|
+
display: inline-flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
justify-content: center;
|
|
38
|
+
width: var(--nile-height-32px, var(--ng-height-32px));
|
|
39
|
+
height: var(--nile-height-32px, var(--ng-height-32px));
|
|
40
|
+
border-radius: var(--nile-radius-sm, var(--ng-radius-sm));
|
|
41
|
+
overflow: hidden;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.header__icon--empty {
|
|
45
|
+
display: none;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
::slotted([slot='icon']) {
|
|
49
|
+
width: 100%;
|
|
50
|
+
height: 100%;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.header__text {
|
|
54
|
+
flex: 1 1 auto;
|
|
55
|
+
min-width: 0;
|
|
56
|
+
display: flex;
|
|
57
|
+
flex-direction: column;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.header__label {
|
|
61
|
+
display: block;
|
|
62
|
+
white-space: nowrap;
|
|
63
|
+
overflow: hidden;
|
|
64
|
+
text-overflow: ellipsis;
|
|
65
|
+
font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
|
|
66
|
+
font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));
|
|
67
|
+
line-height: var(--nile-line-height-sm, var(--ng-line-height-text-sm));
|
|
68
|
+
font-weight: var(--nile-font-weight-semibold, var(--ng-font-weight-semibold));
|
|
69
|
+
color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.header__sublabel {
|
|
73
|
+
display: block;
|
|
74
|
+
white-space: nowrap;
|
|
75
|
+
overflow: hidden;
|
|
76
|
+
text-overflow: ellipsis;
|
|
77
|
+
font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
|
|
78
|
+
font-size: var(--nile-type-scale-2, var(--ng-font-size-text-xs));
|
|
79
|
+
line-height: var(--nile-line-height-xs, var(--ng-line-height-text-xs));
|
|
80
|
+
font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-regular));
|
|
81
|
+
color: var(--nile-colors-dark-500, var(--ng-colors-text-quaternary-500));
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.header__close {
|
|
85
|
+
flex: 0 0 auto;
|
|
86
|
+
display: inline-flex;
|
|
87
|
+
align-items: center;
|
|
88
|
+
justify-content: center;
|
|
89
|
+
width: var(--nile-height-28px, var(--ng-height-28px));
|
|
90
|
+
height: var(--nile-height-28px, var(--ng-height-28px));
|
|
91
|
+
margin: var(--nile-spacing-none, var(--ng-spacing-none));
|
|
92
|
+
padding: var(--nile-spacing-none, var(--ng-spacing-none));
|
|
93
|
+
border: var(--nile-border-width-0, var(--ng-border-width-0));
|
|
94
|
+
border-radius: var(--nile-radius-sm, var(--ng-radius-sm));
|
|
95
|
+
background: transparent;
|
|
96
|
+
color: var(--nile-colors-dark-500, var(--ng-colors-fg-quaternary-400));
|
|
97
|
+
cursor: pointer;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.header__close:hover {
|
|
101
|
+
background: var(--nile-colors-neutral-100, var(--ng-colors-bg-primary-hover));
|
|
102
|
+
}
|
|
103
|
+
`;
|
|
104
|
+
|
|
105
|
+
export default [styles];
|
|
@@ -0,0 +1,105 @@
|
|
|
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 { html, nothing } from 'lit';
|
|
9
|
+
import { customElement, property } from 'lit/decorators.js';
|
|
10
|
+
import { styles } from './nile-dropdown-switcher-header.css';
|
|
11
|
+
import { HasSlotController } from '../internal/slot';
|
|
12
|
+
import NileElement from '../internal/nile-element';
|
|
13
|
+
import type { CSSResultGroup } from 'lit';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* The optional header of a `nile-dropdown-switcher`: an icon, a label/sublabel pair, and a close button.
|
|
17
|
+
*
|
|
18
|
+
* @tag nile-dropdown-switcher-header
|
|
19
|
+
*
|
|
20
|
+
* @dependency nile-glyph
|
|
21
|
+
*
|
|
22
|
+
* @slot icon - The header's icon. Slot-only, no icon prop. Expects a `<nile-glyph slot="icon">`.
|
|
23
|
+
* @slot label - Rich override of the `label` property.
|
|
24
|
+
* @slot sublabel - Rich override of the `sublabel` property.
|
|
25
|
+
*
|
|
26
|
+
* @event nile-request-close - Emitted when the close button is pressed. Cancelable. `detail: { source: 'close-button' }`.
|
|
27
|
+
*
|
|
28
|
+
* @csspart base - The component's base wrapper.
|
|
29
|
+
* @csspart icon - The icon container.
|
|
30
|
+
* @csspart label - The title line.
|
|
31
|
+
* @csspart sublabel - The subtitle line.
|
|
32
|
+
* @csspart close-button - The close button.
|
|
33
|
+
*/
|
|
34
|
+
@customElement('nile-dropdown-switcher-header')
|
|
35
|
+
export class NileDropdownSwitcherHeader extends NileElement {
|
|
36
|
+
static styles: CSSResultGroup = styles;
|
|
37
|
+
|
|
38
|
+
private readonly hasSlotController = new HasSlotController(this, 'icon', 'sublabel');
|
|
39
|
+
|
|
40
|
+
/** The header's title. Use the `label` slot for rich content. */
|
|
41
|
+
@property({ attribute: true }) label = '';
|
|
42
|
+
|
|
43
|
+
/** The header's subtitle. Use the `sublabel` slot for rich content. */
|
|
44
|
+
@property({ attribute: true }) sublabel = '';
|
|
45
|
+
|
|
46
|
+
/** Hides the close button. */
|
|
47
|
+
@property({ type: Boolean, attribute: true }) hideClose = false;
|
|
48
|
+
|
|
49
|
+
connectedCallback(): void {
|
|
50
|
+
super.connectedCallback();
|
|
51
|
+
this.setAttribute('role', 'none');
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
private _handleCloseClick(): void {
|
|
55
|
+
this.emit('nile-request-close', { source: 'close-button' }, undefined, undefined, true);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
render() {
|
|
59
|
+
return html`
|
|
60
|
+
<div part="base" class="header">
|
|
61
|
+
<span part="icon" class=${this.hasSlotController.test('icon') ? 'header__icon' : 'header__icon header__icon--empty'}>
|
|
62
|
+
<slot name="icon"></slot>
|
|
63
|
+
</span>
|
|
64
|
+
|
|
65
|
+
<span class="header__text">
|
|
66
|
+
<span part="label" class="header__label">
|
|
67
|
+
<slot name="label">${this.label}</slot>
|
|
68
|
+
</span>
|
|
69
|
+
${this.sublabel || this.hasSlotController.test('sublabel')
|
|
70
|
+
? html`<span part="sublabel" class="header__sublabel">
|
|
71
|
+
<slot name="sublabel">${this.sublabel}</slot>
|
|
72
|
+
</span>`
|
|
73
|
+
: nothing}
|
|
74
|
+
</span>
|
|
75
|
+
|
|
76
|
+
${this.hideClose
|
|
77
|
+
? nothing
|
|
78
|
+
: html`
|
|
79
|
+
<button
|
|
80
|
+
part="close-button"
|
|
81
|
+
class="header__close"
|
|
82
|
+
type="button"
|
|
83
|
+
aria-label="Close"
|
|
84
|
+
@click=${this._handleCloseClick}
|
|
85
|
+
>
|
|
86
|
+
<nile-glyph
|
|
87
|
+
name="ng-x-close"
|
|
88
|
+
method="stroke"
|
|
89
|
+
size="20"
|
|
90
|
+
color="currentColor"
|
|
91
|
+
></nile-glyph>
|
|
92
|
+
</button>
|
|
93
|
+
`}
|
|
94
|
+
</div>
|
|
95
|
+
`;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export default NileDropdownSwitcherHeader;
|
|
100
|
+
|
|
101
|
+
declare global {
|
|
102
|
+
interface HTMLElementTagNameMap {
|
|
103
|
+
'nile-dropdown-switcher-header': NileDropdownSwitcherHeader;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NileDropdownSwitcherItem } from './nile-dropdown-switcher-item';
|
|
@@ -0,0 +1,114 @@
|
|
|
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
|
+
/** DropdownSwitcherItem CSS -- Default/Selected both render on bg-primary; only Hover gets bg-primary_hover. */
|
|
11
|
+
export const styles = css`
|
|
12
|
+
:host {
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
display: block;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:host *,
|
|
18
|
+
:host *::before,
|
|
19
|
+
:host *::after {
|
|
20
|
+
box-sizing: inherit;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:host([disabled]) {
|
|
24
|
+
pointer-events: none;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
:host(:focus-visible) {
|
|
28
|
+
outline: none;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.item {
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
gap: var(--nile-spacing-md, var(--ng-spacing-md));
|
|
35
|
+
padding: var(--nile-spacing-xs, var(--ng-spacing-xs)) var(--nile-spacing-sm, var(--ng-spacing-sm));
|
|
36
|
+
border-radius: var(--nile-radius-sm, var(--ng-radius-sm));
|
|
37
|
+
background: var(--nile-colors-white-base, var(--ng-colors-bg-primary));
|
|
38
|
+
cursor: pointer;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:host(:hover) .item,
|
|
42
|
+
:host(:focus-visible) .item {
|
|
43
|
+
background: var(--nile-colors-neutral-100, var(--ng-colors-bg-primary-hover));
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.item--disabled {
|
|
47
|
+
opacity: var(--nile-opacity-disabled, 0.5);
|
|
48
|
+
cursor: not-allowed;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.item__icon {
|
|
52
|
+
flex: 0 0 auto;
|
|
53
|
+
display: inline-flex;
|
|
54
|
+
align-items: center;
|
|
55
|
+
justify-content: center;
|
|
56
|
+
width: var(--nile-height-32px, var(--ng-height-32px));
|
|
57
|
+
height: var(--nile-height-32px, var(--ng-height-32px));
|
|
58
|
+
border-radius: var(--nile-radius-sm, var(--ng-radius-sm));
|
|
59
|
+
overflow: hidden;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/* No icon slotted: collapse the tile so the label (and the flex gap) don't leave a blank 32px. */
|
|
63
|
+
.item__icon--empty {
|
|
64
|
+
display: none;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
::slotted([slot='icon']) {
|
|
68
|
+
width: 100%;
|
|
69
|
+
height: 100%;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.item__text {
|
|
73
|
+
flex: 1 1 auto;
|
|
74
|
+
min-width: 0;
|
|
75
|
+
display: flex;
|
|
76
|
+
flex-direction: column;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.item__label {
|
|
80
|
+
display: block;
|
|
81
|
+
white-space: nowrap;
|
|
82
|
+
overflow: hidden;
|
|
83
|
+
text-overflow: ellipsis;
|
|
84
|
+
font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
|
|
85
|
+
font-size: var(--nile-type-scale-2, var(--ng-font-size-text-xs));
|
|
86
|
+
line-height: var(--nile-line-height-xs, var(--ng-line-height-text-xs));
|
|
87
|
+
font-weight: var(--nile-font-weight-semibold, var(--ng-font-weight-semibold));
|
|
88
|
+
color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.item__description {
|
|
92
|
+
display: block;
|
|
93
|
+
white-space: nowrap;
|
|
94
|
+
overflow: hidden;
|
|
95
|
+
text-overflow: ellipsis;
|
|
96
|
+
font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
|
|
97
|
+
font-size: var(--nile-type-scale-2, var(--ng-font-size-text-xs));
|
|
98
|
+
line-height: var(--nile-line-height-xs, var(--ng-line-height-text-xs));
|
|
99
|
+
font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-regular));
|
|
100
|
+
color: var(--nile-colors-dark-500, var(--ng-colors-text-quaternary-500));
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.item__check {
|
|
104
|
+
flex: 0 0 auto;
|
|
105
|
+
display: inline-flex;
|
|
106
|
+
align-items: center;
|
|
107
|
+
justify-content: center;
|
|
108
|
+
width: var(--nile-height-16px, var(--ng-height-16px));
|
|
109
|
+
height: var(--nile-height-16px, var(--ng-height-16px));
|
|
110
|
+
color: var(--nile-colors-primary-600, var(--ng-colors-border-brand-alt));
|
|
111
|
+
}
|
|
112
|
+
`;
|
|
113
|
+
|
|
114
|
+
export default [styles];
|
|
@@ -0,0 +1,151 @@
|
|
|
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 { html, nothing, TemplateResult } from 'lit';
|
|
9
|
+
import { customElement, property, query } from 'lit/decorators.js';
|
|
10
|
+
import { classMap } from 'lit/directives/class-map.js';
|
|
11
|
+
import { styles } from './nile-dropdown-switcher-item.css';
|
|
12
|
+
import { getTextContent, HasSlotController } from '../internal/slot';
|
|
13
|
+
import { watch } from '../internal/watch';
|
|
14
|
+
import NileElement from '../internal/nile-element';
|
|
15
|
+
import type { CSSResultGroup } from 'lit';
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* A single selectable row inside a `nile-dropdown-switcher`. Owns no public selection event or keyboard handling -- the parent owns both.
|
|
19
|
+
*
|
|
20
|
+
* @tag nile-dropdown-switcher-item
|
|
21
|
+
*
|
|
22
|
+
* @dependency nile-glyph
|
|
23
|
+
*
|
|
24
|
+
* @slot - The item's primary label. Overrides the `label` property when provided.
|
|
25
|
+
* @slot icon - The leading 32x32 icon tile. Expects a `<nile-glyph slot="icon">`. No space is reserved when empty.
|
|
26
|
+
* @slot description - Overrides the `description` property when provided.
|
|
27
|
+
*
|
|
28
|
+
* @csspart base - The component's base wrapper.
|
|
29
|
+
* @csspart icon - The 32x32 icon container.
|
|
30
|
+
* @csspart label - The primary label.
|
|
31
|
+
* @csspart description - The supporting text line.
|
|
32
|
+
* @csspart check - The trailing selected-state check icon.
|
|
33
|
+
*/
|
|
34
|
+
@customElement('nile-dropdown-switcher-item')
|
|
35
|
+
export class NileDropdownSwitcherItem extends NileElement {
|
|
36
|
+
static styles: CSSResultGroup = styles;
|
|
37
|
+
|
|
38
|
+
private cachedTextLabel: string;
|
|
39
|
+
|
|
40
|
+
// Whitespace-aware: avoids incidental whitespace defeating the default slot's fallback to `label`.
|
|
41
|
+
private readonly hasSlotController = new HasSlotController(this, '[default]', 'icon', 'description');
|
|
42
|
+
|
|
43
|
+
@query('.item__label-slot') defaultSlot: HTMLSlotElement;
|
|
44
|
+
|
|
45
|
+
/** A unique value used to identify the item when it is selected. */
|
|
46
|
+
@property({ attribute: true, reflect: true }) value = '';
|
|
47
|
+
|
|
48
|
+
/** The item's primary text. Use the default slot for rich content instead. */
|
|
49
|
+
@property({ attribute: true }) label = '';
|
|
50
|
+
|
|
51
|
+
/** Optional supporting text shown under the label. Use the `description` slot for rich content. */
|
|
52
|
+
@property({ attribute: true }) description = '';
|
|
53
|
+
|
|
54
|
+
/** Indicates whether this is the currently selected workspace/product. */
|
|
55
|
+
@property({ type: Boolean, attribute: true, reflect: true }) selected = false;
|
|
56
|
+
|
|
57
|
+
/** Draws the item in a disabled state, preventing selection. */
|
|
58
|
+
@property({ type: Boolean, attribute: true, reflect: true }) disabled = false;
|
|
59
|
+
|
|
60
|
+
connectedCallback(): void {
|
|
61
|
+
super.connectedCallback();
|
|
62
|
+
this.setAttribute('role', 'menuitemradio');
|
|
63
|
+
if (!this.hasAttribute('tabindex')) {
|
|
64
|
+
this.setAttribute('tabindex', '-1');
|
|
65
|
+
}
|
|
66
|
+
this._syncAria();
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@watch(['selected', 'disabled'])
|
|
70
|
+
_syncAria(): void {
|
|
71
|
+
this.setAttribute('aria-checked', this.selected ? 'true' : 'false');
|
|
72
|
+
this.setAttribute('aria-disabled', this.disabled ? 'true' : 'false');
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
private _handleDefaultSlotChange(): void {
|
|
76
|
+
const textLabel = this.getTextLabel();
|
|
77
|
+
if (typeof this.cachedTextLabel === 'undefined') {
|
|
78
|
+
this.cachedTextLabel = textLabel;
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
if (textLabel !== this.cachedTextLabel) {
|
|
82
|
+
this.cachedTextLabel = textLabel;
|
|
83
|
+
this.emit('slotchange');
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/** Returns the plain-text label, for the parent's keyboard/typeahead use if ever needed. */
|
|
88
|
+
getTextLabel(): string {
|
|
89
|
+
return getTextContent(this.defaultSlot);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
private _renderCheck(): TemplateResult | typeof nothing {
|
|
93
|
+
if (!this.selected) return nothing;
|
|
94
|
+
return html`
|
|
95
|
+
<span part="check" class="item__check" aria-hidden="true">
|
|
96
|
+
<nile-glyph
|
|
97
|
+
name="ng-check"
|
|
98
|
+
method="stroke"
|
|
99
|
+
size="16"
|
|
100
|
+
color="currentColor"
|
|
101
|
+
></nile-glyph>
|
|
102
|
+
</span>
|
|
103
|
+
`;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
render() {
|
|
107
|
+
return html`
|
|
108
|
+
<div
|
|
109
|
+
part="base"
|
|
110
|
+
class=${classMap({
|
|
111
|
+
item: true,
|
|
112
|
+
'item--selected': this.selected,
|
|
113
|
+
'item--disabled': this.disabled,
|
|
114
|
+
})}
|
|
115
|
+
>
|
|
116
|
+
<span
|
|
117
|
+
part="icon"
|
|
118
|
+
class=${classMap({
|
|
119
|
+
item__icon: true,
|
|
120
|
+
'item__icon--empty': !this.hasSlotController.test('icon'),
|
|
121
|
+
})}
|
|
122
|
+
>
|
|
123
|
+
<slot name="icon"></slot>
|
|
124
|
+
</span>
|
|
125
|
+
|
|
126
|
+
<span class="item__text">
|
|
127
|
+
<span part="label" class="item__label">
|
|
128
|
+
<slot class="item__label-slot" @slotchange=${this._handleDefaultSlotChange}></slot
|
|
129
|
+
>${this.hasSlotController.test('[default]') ? nothing : this.label}
|
|
130
|
+
</span>
|
|
131
|
+
|
|
132
|
+
${this.description || this.hasSlotController.test('description')
|
|
133
|
+
? html`<span part="description" class="item__description">
|
|
134
|
+
<slot name="description">${this.description}</slot>
|
|
135
|
+
</span>`
|
|
136
|
+
: nothing}
|
|
137
|
+
</span>
|
|
138
|
+
|
|
139
|
+
${this._renderCheck()}
|
|
140
|
+
</div>
|
|
141
|
+
`;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export default NileDropdownSwitcherItem;
|
|
146
|
+
|
|
147
|
+
declare global {
|
|
148
|
+
interface HTMLElementTagNameMap {
|
|
149
|
+
'nile-dropdown-switcher-item': NileDropdownSwitcherItem;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
@@ -280,4 +280,28 @@ describe('NileEmptyState', () => {
|
|
|
280
280
|
|
|
281
281
|
|
|
282
282
|
it('165. full new-API integration', async () => { const el = await fixture<NileEmptyState>(html`<nile-empty-state status="not-found" layout="page" size="lg" code="Error 404" bordered><button>Go back</button></nile-empty-state>`); expect(el.text).to.contain(`couldn't find that`); expect(el.tone).to.equal('warning'); expect(container(el).getAttribute('role')).to.equal('status'); expect(container(el).classList.contains('empty-state--page')).to.be.true; expect(container(el).classList.contains('empty-state--bordered')).to.be.true; expect(el.shadowRoot!.querySelector('[part="code"]')!.textContent).to.contain('Error 404'); expect(el.querySelector('button')).to.exist; });
|
|
283
|
+
// iconMethod: stroke stays the default everywhere; fill is opt-in.
|
|
284
|
+
it('192. iconMethod defaults to stroke', async () => { const el = await fixture<NileEmptyState>(html`<nile-empty-state></nile-empty-state>`); expect(el.iconMethod).to.equal('stroke'); });
|
|
285
|
+
it('193. default glyph method is stroke in every variant and layout', async () => {
|
|
286
|
+
for (const t of [
|
|
287
|
+
html`<nile-empty-state variant="tonal"></nile-empty-state>`,
|
|
288
|
+
html`<nile-empty-state variant="content"></nile-empty-state>`,
|
|
289
|
+
html`<nile-empty-state variant="flat"></nile-empty-state>`,
|
|
290
|
+
html`<nile-empty-state layout="inline"></nile-empty-state>`,
|
|
291
|
+
html`<nile-empty-state svgIconUrl="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'/%3E"></nile-empty-state>`,
|
|
292
|
+
]) { const el = await fixture<NileEmptyState>(t); expect(glyph(el).getAttribute('method')).to.equal('stroke'); }
|
|
293
|
+
});
|
|
294
|
+
it('194. iconMethod is not reflected, so existing hosts gain no attribute', async () => { const el = await fixture<NileEmptyState>(html`<nile-empty-state></nile-empty-state>`); expect(el.hasAttribute('iconmethod')).to.be.false; });
|
|
295
|
+
it('195. iconMethod="fill" passes method="fill" in every variant and layout', async () => {
|
|
296
|
+
for (const t of [
|
|
297
|
+
html`<nile-empty-state iconMethod="fill" variant="tonal"></nile-empty-state>`,
|
|
298
|
+
html`<nile-empty-state iconMethod="fill" variant="content"></nile-empty-state>`,
|
|
299
|
+
html`<nile-empty-state iconMethod="fill" variant="flat"></nile-empty-state>`,
|
|
300
|
+
html`<nile-empty-state iconMethod="fill" layout="inline"></nile-empty-state>`,
|
|
301
|
+
]) { const el = await fixture<NileEmptyState>(t); expect(glyph(el).getAttribute('method')).to.equal('fill'); }
|
|
302
|
+
});
|
|
303
|
+
it('196. iconMethod="fill" with svgIconUrl keeps noFill so the SVG keeps its own colours', async () => { const el = await fixture<NileEmptyState>(html`<nile-empty-state iconMethod="fill" svgIconUrl="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'/%3E"></nile-empty-state>`); expect(glyph(el).getAttribute('method')).to.equal('fill'); expect(glyph(el).hasAttribute('nofill')).to.be.true; });
|
|
304
|
+
it('197. unknown iconMethod falls back to stroke', async () => { const el = await fixture<NileEmptyState>(html`<nile-empty-state iconMethod="bogus"></nile-empty-state>`); expect(glyph(el).getAttribute('method')).to.equal('stroke'); });
|
|
305
|
+
it('198. iconMethod can be toggled at runtime', async () => { const el = await fixture<NileEmptyState>(html`<nile-empty-state></nile-empty-state>`); el.iconMethod = 'fill'; await el.updateComplete; expect(glyph(el).getAttribute('method')).to.equal('fill'); el.iconMethod = 'stroke'; await el.updateComplete; expect(glyph(el).getAttribute('method')).to.equal('stroke'); });
|
|
306
|
+
it('199. iconMethod does not change icon, size or colour', async () => { const a = await fixture<NileEmptyState>(html`<nile-empty-state status="error"></nile-empty-state>`); const b = await fixture<NileEmptyState>(html`<nile-empty-state status="error" iconMethod="fill"></nile-empty-state>`); for (const attr of ['name', 'size', 'color']) expect(glyph(b).getAttribute(attr), attr).to.equal(glyph(a).getAttribute(attr)); });
|
|
283
307
|
});
|
|
@@ -27,6 +27,9 @@ export type NileEmptyStateTone = 'neutral' | 'info' | 'warning' | 'error';
|
|
|
27
27
|
/** What shape the state occupies. */
|
|
28
28
|
export type NileEmptyStateLayout = 'stack' | 'inline' | 'page';
|
|
29
29
|
|
|
30
|
+
/** How the glyph is drawn: outlined (`stroke`, the default) or filled (`fill`). */
|
|
31
|
+
export type NileEmptyStateIconMethod = 'stroke' | 'fill';
|
|
32
|
+
|
|
30
33
|
interface StatusPreset {
|
|
31
34
|
icon: string;
|
|
32
35
|
tone: NileEmptyStateTone;
|
|
@@ -109,6 +112,7 @@ export class NileEmptyState extends NileElement {
|
|
|
109
112
|
*/
|
|
110
113
|
@property({ type: Number, attribute: true }) svgIconSize?: number;
|
|
111
114
|
@property({ type: String, attribute: true }) svgIconColor: string;
|
|
115
|
+
@property({ type: String, attribute: true }) iconMethod: NileEmptyStateIconMethod = 'stroke';
|
|
112
116
|
|
|
113
117
|
private _icon?: string;
|
|
114
118
|
private _text?: string;
|
|
@@ -169,6 +173,11 @@ export class NileEmptyState extends NileElement {
|
|
|
169
173
|
return this.status ? STATUS_PRESETS[this.status] : undefined;
|
|
170
174
|
}
|
|
171
175
|
|
|
176
|
+
/** `fill` only when asked for explicitly; anything else keeps today's `stroke`. */
|
|
177
|
+
private get glyphMethod(): NileEmptyStateIconMethod {
|
|
178
|
+
return this.iconMethod === 'fill' ? 'fill' : 'stroke';
|
|
179
|
+
}
|
|
180
|
+
|
|
172
181
|
private get glyphColor(): string | undefined {
|
|
173
182
|
return this.svgIconColor ?? TONE_GLYPH_COLOR[this.tone];
|
|
174
183
|
}
|
|
@@ -182,18 +191,19 @@ export class NileEmptyState extends NileElement {
|
|
|
182
191
|
|
|
183
192
|
private renderGlyph(size: number | string): TemplateResult {
|
|
184
193
|
const color = this.glyphColor;
|
|
194
|
+
const method = this.glyphMethod;
|
|
185
195
|
return this.svgIconUrl ? html`
|
|
186
196
|
<nile-glyph
|
|
187
197
|
customSvgPath="${this.svgIconUrl}"
|
|
188
198
|
size="${this.svgIconSize ?? size}"
|
|
189
|
-
method="
|
|
199
|
+
method="${method}"
|
|
190
200
|
color="${ifDefined(color)}"
|
|
191
201
|
noFill
|
|
192
202
|
></nile-glyph>
|
|
193
203
|
` : html`
|
|
194
204
|
<nile-glyph
|
|
195
205
|
name="${this.icon}"
|
|
196
|
-
method="
|
|
206
|
+
method="${method}"
|
|
197
207
|
size="${size}"
|
|
198
208
|
color="${ifDefined(color)}"
|
|
199
209
|
></nile-glyph>
|
|
@@ -45,11 +45,11 @@ export const styles = css`
|
|
|
45
45
|
}
|
|
46
46
|
.chip:active {
|
|
47
47
|
background-color: var(--nile-filter-chip-active-background, var(--ng-colors-bg-brand-primary));
|
|
48
|
-
border-color: var(--nile-filter-chip-active-border-color-stroke);
|
|
48
|
+
border-color: var(--nile-filter-chip-active-border-color-stroke, var(--ng-colors-border-brand));
|
|
49
49
|
}
|
|
50
50
|
:host([active]) .chip {
|
|
51
51
|
background-color: var(--nile-filter-chip-active-background, var(--ng-colors-bg-brand-primary));
|
|
52
|
-
border-color: var(--nile-filter-chip-active-border-color-stroke);
|
|
52
|
+
border-color: var(--nile-filter-chip-active-border-color-stroke, var(--ng-colors-border-brand));
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
|
|
@@ -23,7 +23,7 @@ export const styles = css`
|
|
|
23
23
|
flex-direction: column;
|
|
24
24
|
min-width: var(--min-width);
|
|
25
25
|
width: max-content;
|
|
26
|
-
box-shadow: var(--nile-box-shadow-11,
|
|
26
|
+
box-shadow: var(--nile-box-shadow-11, none);
|
|
27
27
|
padding: var(--nile-spacing-3xl, var(--ng-spacing-3xl));
|
|
28
28
|
border-radius: var(--nile-radius-base-standard, var(--ng-radius-xl));
|
|
29
29
|
border: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));
|
|
@@ -15,7 +15,7 @@ export const styles = css`
|
|
|
15
15
|
display: block;
|
|
16
16
|
font-family: var(--nile-font-family-sans-serif, var(--ng-font-family-body));
|
|
17
17
|
font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));
|
|
18
|
-
color: var(--nile-colors-dark-900, var(--ng-colors-text-
|
|
18
|
+
color: var(--nile-colors-dark-900, var(--ng-colors-text-tertiary-600));
|
|
19
19
|
cursor: pointer;
|
|
20
20
|
user-select: none;
|
|
21
21
|
}
|
|
@@ -26,12 +26,27 @@ export const styles = css`
|
|
|
26
26
|
transition: background 0.2s, color 0.2s;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
.item:not(.item--rich) {
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
box-sizing: border-box;
|
|
33
|
+
height: 36px;
|
|
34
|
+
padding: var(--nile-spacing-none, var(--ng-spacing-none)) var(--nile-spacing-lg, var(--ng-spacing-lg));
|
|
35
|
+
border-radius: var(--nile-radius-md, var(--ng-radius-md));
|
|
36
|
+
font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-medium));
|
|
37
|
+
color: var(--nile-colors-dark-700, var(--ng-colors-text-secondary-700));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.item--rich {
|
|
41
|
+
font-weight: var(--nile-font-weight-semibold, var(--ng-font-weight-semibold));
|
|
42
|
+
}
|
|
43
|
+
|
|
29
44
|
:host(:not([disabled])) .item:hover {
|
|
30
|
-
background: var(--nile-colors-neutral-400, var(--ng-colors-bg-
|
|
45
|
+
background: var(--nile-colors-neutral-400, var(--ng-colors-bg-primary-hover));
|
|
31
46
|
}
|
|
32
47
|
|
|
33
48
|
:host([active]) .item {
|
|
34
|
-
background: var(--nile-colors-primary-100, var(--ng-colors-bg-brand-
|
|
49
|
+
background: var(--nile-colors-primary-100, var(--ng-colors-bg-brand-primary-alt));
|
|
35
50
|
font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-medium));
|
|
36
51
|
color: var(--nile-colors-primary-700, var(--ng-colors-text-brand-secondary-700));
|
|
37
52
|
}
|
|
@@ -40,7 +55,7 @@ export const styles = css`
|
|
|
40
55
|
}
|
|
41
56
|
|
|
42
57
|
:host([active]) .item:hover {
|
|
43
|
-
background: var(--nile-colors-primary-100, var(--ng-colors-bg-brand-
|
|
58
|
+
background: var(--nile-colors-primary-100, var(--ng-colors-bg-brand-primary-alt));
|
|
44
59
|
}
|
|
45
60
|
|
|
46
61
|
:host([disabled]) {
|
|
@@ -50,6 +65,7 @@ export const styles = css`
|
|
|
50
65
|
|
|
51
66
|
:host([disabled]) .item {
|
|
52
67
|
pointer-events: none;
|
|
68
|
+
color: var(--nile-colors-neutral-500, var(--ng-colors-text-disabled));
|
|
53
69
|
}
|
|
54
70
|
a {
|
|
55
71
|
color: inherit;
|
|
@@ -24,7 +24,7 @@ export const styles = css`
|
|
|
24
24
|
min-width: 0;
|
|
25
25
|
flex: 1 1 0%;
|
|
26
26
|
max-width: 100%;
|
|
27
|
-
color: var(--nile-colors-dark-500, var(--ng-
|
|
27
|
+
color: var(--nile-colors-dark-500, var(--ng-colors-text-tertiary-600));
|
|
28
28
|
font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));
|
|
29
29
|
font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-regular));
|
|
30
30
|
line-height: var(--nile-line-height-xsmall, var(--ng-line-height-text-xs));
|
|
@@ -21,13 +21,13 @@ export const styles = css`
|
|
|
21
21
|
.item-header .body-content .header-text {
|
|
22
22
|
display: block;
|
|
23
23
|
font-family: var(--nile-font-family-medium, var(--ng-font-family-body));
|
|
24
|
-
font-weight:
|
|
24
|
+
font-weight: inherit;
|
|
25
25
|
font-size: var(--nile-type-scale-4, var(--ng-font-size-text-sm));
|
|
26
26
|
line-height: var(--nile-line-height-medium, var(--ng-line-height-text-sm));
|
|
27
|
-
color:
|
|
27
|
+
color: inherit;
|
|
28
28
|
}
|
|
29
29
|
:host([active]) .item-header .body-content .header-text {
|
|
30
|
-
font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-
|
|
30
|
+
font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-semibold));
|
|
31
31
|
color: var(--nile-colors-primary-700, var(--ng-colors-text-brand-secondary-700));
|
|
32
32
|
}
|
|
33
33
|
|