@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nile-side-bar-footer.js","sourceRoot":"","sources":["../../../src/nile-side-bar-footer/nile-side-bar-footer.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAEH,OAAO,EAAE,IAAI,EAAkC,MAAM,KAAK,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,WAAW,MAAM,0BAA0B,CAAC;AAEnD
|
|
1
|
+
{"version":3,"file":"nile-side-bar-footer.js","sourceRoot":"","sources":["../../../src/nile-side-bar-footer/nile-side-bar-footer.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAEH,OAAO,EAAE,IAAI,EAAkC,MAAM,KAAK,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,WAAW,MAAM,0BAA0B,CAAC;AAEnD;;;;;;;;;;;;;GAaG;AAEI,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,WAAW;IAA3C;;QACL;;;;WAIG;QACyD,eAAU,GAA8B,SAAS,CAAC;IAahH,CAAC;IAXQ,MAAM,KAAK,MAAM;QACtB,OAAO,CAAC,MAAM,CAAC,CAAC;IAClB,CAAC;IAEM,MAAM;QACX,OAAO,IAAI,CAAA;;;;KAIV,CAAC;IACJ,CAAC;CACF,CAAA;AAb6D;IAA3D,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;qDAAmD;AANnG,iBAAiB;IAD7B,aAAa,CAAC,sBAAsB,CAAC;GACzB,iBAAiB,CAmB7B;;AAED,eAAe,iBAAiB,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html, CSSResultArray, TemplateResult } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-side-bar-footer.css';\nimport NileElement from '../internal/nile-element';\n\n/**\n * Nile side-bar-footer component.\n *\n * @tag nile-side-bar-footer\n *\n * @slot icon - Slot for footer icon\n * @slot text - Slot for footer text\n *\n * @attr background - Background treatment of the footer (\"default\" | \"transparent\").\n * Defaults to \"default\". Inside a `nile-side-bar` the footer paints nothing, so it\n * follows the sidebar's own surface with no attribute needed; on its own it paints\n * its own surface. \"transparent\" always drops the background so whatever sits\n * behind the footer shows through.\n */\n@customElement('nile-side-bar-footer')\nexport class NileSideBarFooter extends NileElement {\n /**\n * Background treatment of the footer. `default` follows the sidebar surface\n * inside a `nile-side-bar` (and paints its own surface when used on its own);\n * `transparent` removes the background everywhere.\n */\n @property({ type: String, reflect: true, attribute: true }) background: 'default' | 'transparent' = 'default';\n\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n public render(): TemplateResult {\n return html`\n <div part=\"base\" class=\"footer\">\n <slot> </slot>\n </div>\n `;\n }\n}\n\nexport default NileSideBarFooter;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-side-bar-footer': NileSideBarFooter;\n }\n}\n"]}
|
|
@@ -3,26 +3,30 @@ export const styles = css `
|
|
|
3
3
|
:host {
|
|
4
4
|
display: block;
|
|
5
5
|
width: 100%;
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
/* 44px outer item wrapping a 40px inner row. */
|
|
8
|
+
padding: var(--nile-spacing-xxs, var(--ng-spacing-xxs)) var(--nile-spacing-none, var(--ng-spacing-none));
|
|
6
9
|
}
|
|
7
10
|
|
|
8
11
|
.footer-item {
|
|
9
12
|
display: flex;
|
|
10
13
|
align-items: center;
|
|
11
14
|
justify-content: flex-start;
|
|
15
|
+
/* Untyped (Appearance/Help) row height; [type] variants below set their own. */
|
|
16
|
+
height: var(--nile-height-40px, var(--ng-height-36px));
|
|
12
17
|
padding-top: var(--nile-spacing-md, var(--ng-spacing-md));
|
|
13
18
|
padding-bottom: var(--nile-spacing-md, var(--ng-spacing-md));
|
|
14
19
|
padding-left: var(--nile-spacing-lg, var(--ng-spacing-lg));
|
|
15
20
|
padding-right: var(--nile-spacing-lg, var(--ng-spacing-lg));
|
|
16
21
|
font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));
|
|
17
|
-
color: var(--nile-colors-dark-900, var(--ng-colors-text-
|
|
22
|
+
color: var(--nile-colors-dark-900, var(--ng-colors-text-secondary-700));
|
|
18
23
|
cursor: pointer;
|
|
19
24
|
font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
|
|
20
|
-
border-radius: var(--nile-radius-sm, var(--ng-radius-
|
|
25
|
+
border-radius: var(--nile-radius-sm, var(--ng-radius-md));
|
|
21
26
|
transition: background 0.2s ease;
|
|
22
27
|
width: 100%;
|
|
23
28
|
box-sizing: border-box;
|
|
24
29
|
overflow: hidden;
|
|
25
|
-
line-height: 0;
|
|
26
30
|
}
|
|
27
31
|
|
|
28
32
|
.footer-item:hover {
|
|
@@ -32,11 +36,31 @@ export const styles = css `
|
|
|
32
36
|
);
|
|
33
37
|
}
|
|
34
38
|
|
|
35
|
-
/*
|
|
39
|
+
/* Darkens the label on hover for every row except Account; the rule below repeats this for nile-side-bar-footer-text's own .main/.sub, which this selector alone can't reach. */
|
|
40
|
+
:host(:not([type='avatar'])) .footer-item:hover ::slotted([slot='text']) {
|
|
41
|
+
color: var(--nile-colors-dark-800, var(--ng-colors-text-tertiary-hover));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
:host(:not([type='avatar'])) .footer-item {
|
|
45
|
+
--nile-side-bar-footer-text-main-font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));
|
|
46
|
+
--nile-side-bar-footer-text-main-line-height: var(--nile-line-height-medium, var(--ng-line-height-text-sm));
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
:host(:not([type='avatar'])) .footer-item:hover {
|
|
50
|
+
--nile-side-bar-footer-text-main-hover-color: var(--nile-colors-dark-800, var(--ng-colors-text-tertiary-hover));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
:host(:not([type='avatar']):not([active])) .footer-item:hover {
|
|
54
|
+
background: var(--nile-colors-neutral-400, var(--ng-colors-bg-secondary-subtle));
|
|
55
|
+
--nile-side-bar-footer-icon-color: var(--nile-colors-dark-900, var(--ng-colors-fg-tertiary-hover));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* left: icon, a fixed 20x20 box regardless of what the consumer's own icon element asks for. */
|
|
36
59
|
::slotted([slot='icon']) {
|
|
37
60
|
flex-shrink: 0;
|
|
38
|
-
|
|
39
|
-
|
|
61
|
+
width: var(--nile-height-20px, var(--ng-height-20px));
|
|
62
|
+
height: var(--nile-height-20px, var(--ng-height-20px));
|
|
63
|
+
margin-right: var(--nile-spacing-md, var(--ng-spacing-md));
|
|
40
64
|
}
|
|
41
65
|
|
|
42
66
|
/* middle: text */
|
|
@@ -46,52 +70,184 @@ export const styles = css `
|
|
|
46
70
|
white-space: nowrap;
|
|
47
71
|
overflow: hidden;
|
|
48
72
|
text-overflow: ellipsis;
|
|
73
|
+
font-size: var(--nile-type-scale-4, var(--ng-font-size-text-sm));
|
|
74
|
+
line-height: var(--nile-line-height-medium, var(--ng-line-height-text-sm));
|
|
75
|
+
font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-semibold));
|
|
76
|
+
letter-spacing: normal;
|
|
49
77
|
}
|
|
50
78
|
|
|
51
|
-
/* right: action */
|
|
79
|
+
/* right: action (e.g. Help's trailing chevron), a fixed 16x16 box. */
|
|
52
80
|
::slotted([slot='action']) {
|
|
53
81
|
flex-shrink: 0;
|
|
54
|
-
|
|
82
|
+
width: var(--nile-width-16px, var(--ng-width-4));
|
|
83
|
+
height: var(--nile-width-16px, var(--ng-height-16px));
|
|
84
|
+
margin-left: var(--nile-spacing-lg, var(--ng-spacing-lg));
|
|
55
85
|
color: var(
|
|
56
86
|
--nile-side-bar-footer-icon-color,
|
|
57
|
-
var(--ng-colors-fg-quaternary-
|
|
87
|
+
var(--ng-colors-fg-quaternary-hover)
|
|
58
88
|
);
|
|
59
|
-
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/* Collapsed: a trailing action (Help's chevron) isn't shown in the rail. */
|
|
92
|
+
:host([collapsed]:not([type='avatar'])) ::slotted([slot='action']) {
|
|
93
|
+
display: none;
|
|
60
94
|
}
|
|
61
95
|
|
|
62
96
|
|
|
97
|
+
/* Resting: no fill, as in the design; the row sits on the sidebar surface. Hover below still fills. Enterprise keeps its neutral-400 fill. */
|
|
63
98
|
:host([type='support']) .footer-item {
|
|
64
|
-
background: var(--nile-colors-neutral-400,
|
|
65
|
-
height: var(--nile-height-38px, var(--ng-
|
|
66
|
-
border-radius: var(--nile-radius-sm, var(--ng-radius-
|
|
99
|
+
background: var(--nile-colors-neutral-400, transparent);
|
|
100
|
+
height: var(--nile-height-38px, var(--ng-height-36px));
|
|
101
|
+
border-radius: var(--nile-radius-sm, var(--ng-radius-md));
|
|
67
102
|
|
|
68
103
|
}
|
|
69
104
|
|
|
105
|
+
/* Hover follows the nav menu items (nile-side-bar-group-item): bg-secondary-subtle fill, text-tertiary-hover label, fg-tertiary-hover icon and chevron. bg-primary-hover was the same colour as the sidebar surface, so the row showed no change. */
|
|
70
106
|
:host(:hover[type='support']) .footer-item {
|
|
71
|
-
background: var(--nile-colors-neutral-500, var(--ng-colors-bg-
|
|
72
|
-
height: var(--nile-height-38px, var(--ng-
|
|
107
|
+
background: var(--nile-colors-neutral-500, var(--ng-colors-bg-secondary-subtle));
|
|
108
|
+
height: var(--nile-height-38px, var(--ng-height-36px));
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
:host([type='support']) .footer-item:hover ::slotted([slot='text']) {
|
|
112
|
+
color: var(--nile-colors-dark-800, var(--ng-colors-text-tertiary-hover));
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
:host([type='support']) .footer-item:hover {
|
|
116
|
+
--nile-side-bar-footer-text-main-hover-color: var(--nile-colors-dark-800, var(--ng-colors-text-tertiary-hover));
|
|
117
|
+
--nile-side-bar-footer-icon-color: var(--nile-colors-dark-900, var(--ng-colors-fg-tertiary-hover));
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/* Account row: 11px padding + 1px border reproduces Figma's 12px outer-edge-to-content distance, since Figma's stroke doesn't consume its own Auto Layout padding the way a CSS border does. */
|
|
121
|
+
:host([type='avatar']) {
|
|
122
|
+
padding: var(--nile-spacing-none, var(--ng-spacing-none));
|
|
123
|
+
--nile-side-bar-footer-text-main-line-height: var(--nile-line-height-medium, var(--ng-line-height-text-md));
|
|
124
|
+
/* The Account row's name is semibold. Support/Help rows use the text's own medium. */
|
|
125
|
+
--nile-side-bar-footer-text-main-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-semibold));
|
|
73
126
|
}
|
|
74
127
|
|
|
75
128
|
:host([type='avatar']) .footer-item {
|
|
76
|
-
|
|
77
|
-
|
|
129
|
+
height: auto;
|
|
130
|
+
padding: calc(var(--nile-spacing-lg, var(--ng-spacing-lg)) - 1px);
|
|
131
|
+
border: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));
|
|
132
|
+
border-radius: var(--nile-radius-xl, var(--ng-radius-xl));
|
|
133
|
+
/* Resting/closed: bg-primary (Figma). Resolves to the same value as bg-primary-alt in Light and Dark. */
|
|
134
|
+
background: var(--nile-colors-white-base, var(--ng-colors-bg-primary));
|
|
78
135
|
}
|
|
136
|
+
|
|
137
|
+
/* [data-action-open] is set via JS, not :has(), since Chromium doesn't re-match :has() on a slotted child's own attribute changes. */
|
|
138
|
+
:host([type='avatar']:not([collapsed])[data-action-open]) .footer-item {
|
|
139
|
+
background: var(--nile-side-bar-footer-hover-bg, var(--ng-colors-bg-primary-hover));
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/* Hover: bg-primary-hover, like the open state. Not while selected, which keeps its own background. */
|
|
143
|
+
:host([type='avatar']:not([collapsed]):not([active])) .footer-item:hover {
|
|
144
|
+
background: var(--nile-side-bar-footer-hover-bg, var(--ng-colors-bg-primary-hover));
|
|
145
|
+
}
|
|
146
|
+
|
|
79
147
|
:host([type='avatar'][active]) .footer-item {
|
|
80
148
|
background: var(--nile-colors-neutral-400, var(--ng-colors-bg-active));
|
|
81
149
|
}
|
|
82
150
|
|
|
151
|
+
/* Avatar: 40x40, not the generic 20x20 icon box. */
|
|
152
|
+
:host([type='avatar']) ::slotted([slot='icon']) {
|
|
153
|
+
width: var(--nile-height-40px, var(--ng-height-40px));
|
|
154
|
+
height: var(--nile-height-40px, var(--ng-height-40px));
|
|
155
|
+
}
|
|
83
156
|
|
|
157
|
+
/* :not([collapsed]) avoids a specificity tie with the collapsed display:none rule below. */
|
|
158
|
+
:host([type='avatar']:not([collapsed])) ::slotted([slot='action']) {
|
|
159
|
+
display: flex;
|
|
160
|
+
align-items: center;
|
|
161
|
+
justify-content: center;
|
|
162
|
+
box-sizing: border-box;
|
|
163
|
+
width: var(--nile-height-32px, var(--ng-height-32px));
|
|
164
|
+
height: var(--nile-height-32px, var(--ng-height-32px));
|
|
165
|
+
padding: var(--nile-spacing-sm, var(--ng-spacing-sm));
|
|
166
|
+
border-radius: var(--nile-radius-sm, var(--ng-radius-sm));
|
|
167
|
+
}
|
|
84
168
|
|
|
85
169
|
:host([collapsed][type='avatar']) .footer-item {
|
|
170
|
+
position: relative;
|
|
171
|
+
/* Explicit clamp -- the content-driven height above otherwise stays 44px even when collapsed. */
|
|
172
|
+
height: var(--nile-height-40px, var(--ng-height-40px));
|
|
86
173
|
border: none;
|
|
87
|
-
|
|
88
|
-
:
|
|
89
|
-
|
|
90
|
-
|
|
174
|
+
padding: var(--nile-spacing-none, var(--ng-spacing-none));
|
|
175
|
+
background: transparent;
|
|
176
|
+
border-radius: var(--nile-radius-full, var(--ng-radius-full));
|
|
91
177
|
}
|
|
92
178
|
:host([collapsed]) .footer-item{
|
|
93
|
-
|
|
94
|
-
|
|
179
|
+
width: var(--nile-width-40px, var(--ng-height-40px));
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/* Collapsed NxtGen: a 40px row, 44px outer with the host's 2px block padding (Figma). The expanded row and the avatar are untouched, and enterprise resolves --nile-height-* first, so it keeps its own heights. */
|
|
183
|
+
:host([collapsed]:not([type])) .footer-item {
|
|
184
|
+
height: var(--nile-height-40px, var(--ng-height-40px));
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
:host([collapsed][type='support']) .footer-item,
|
|
188
|
+
:host(:hover[collapsed][type='support']) .footer-item {
|
|
189
|
+
height: var(--nile-height-38px, var(--ng-height-40px));
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
:host([collapsed][type='avatar']) ::slotted([slot='action']) {
|
|
193
|
+
position: absolute;
|
|
194
|
+
inset: 0;
|
|
195
|
+
display: block;
|
|
196
|
+
width: 100%;
|
|
197
|
+
height: 100%;
|
|
198
|
+
margin: var(--nile-spacing-none, var(--ng-spacing-none));
|
|
199
|
+
opacity: 0;
|
|
200
|
+
pointer-events: none;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/* Collapsed Account row. The 40px icon box carries no trailing margin (nothing sits beside it in a rail), is centred in the 40px row, and centres whatever avatar size it holds, so xs, sm, md and lg all sit on the rail's centre line. The row lets an avatar wider than 40px overflow evenly instead of being clipped. The expanded row is untouched. */
|
|
204
|
+
:host([collapsed][type='avatar']) .footer-item {
|
|
205
|
+
justify-content: center;
|
|
206
|
+
overflow: visible;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
:host([collapsed][type='avatar']) ::slotted([slot='icon']) {
|
|
210
|
+
margin-right: var(--nile-spacing-none, var(--ng-spacing-none));
|
|
211
|
+
display: flex;
|
|
212
|
+
align-items: center;
|
|
213
|
+
justify-content: center;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/* Collapsed Appearance/Help (NxtGen): the 12px side padding and the 8px icon margin put the icon at x=38 in the 72px rail. Zero both and centre it so it sits at x=36, as the nav icons do; enterprise keeps its padding and margin. */
|
|
217
|
+
:host([collapsed]:not([type])) .footer-item {
|
|
218
|
+
padding-left: var(--nile-spacing-lg, var(--ng-spacing-none));
|
|
219
|
+
padding-right: var(--nile-spacing-lg, var(--ng-spacing-none));
|
|
220
|
+
justify-content: center;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
:host([collapsed]:not([type])) ::slotted([slot='icon']) {
|
|
224
|
+
margin-right: var(--nile-spacing-md, var(--ng-spacing-none));
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/* The label keeps its place in the tree but has no room, so only the icon is centred. */
|
|
228
|
+
:host([collapsed]:not([type])) ::slotted([slot='text']) {
|
|
229
|
+
flex: 0 0 0;
|
|
230
|
+
width: 0;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/* Appearance/Help selected state -- scoped to the untyped variant only; avatar's own [active] rule above is separate. */
|
|
234
|
+
:host([active]:not([type])) .footer-item {
|
|
235
|
+
background: var(--ng-colors-bg-primary);
|
|
236
|
+
border-radius: var(--nile-radius-sm, var(--ng-radius-md));
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
:host([active]:not([type])) ::slotted([slot='text']) {
|
|
240
|
+
color: var(--ng-colors-text-brand-secondary-700);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
:host([active]:not([type])) {
|
|
244
|
+
--nile-side-bar-footer-icon-color: var(--ng-colors-fg-brand-primary-600);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/* Focus-visible is the ring only, independent of selection — same rule as nile-side-bar-group-item. */
|
|
248
|
+
.footer-item:focus-visible {
|
|
249
|
+
outline: none;
|
|
250
|
+
box-shadow: inset 0 0 0 var(--ng-border-width-2) var(--ng-colors-effects-focus-ring);
|
|
95
251
|
}
|
|
96
252
|
`;
|
|
97
253
|
export default [styles];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nile-side-bar-footer-item.css.js","sourceRoot":"","sources":["../../../src/nile-side-bar-footer-item/nile-side-bar-footer-item.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8FxB,CAAC;AAEF,eAAe,CAAC,MAAM,CAAC,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const styles = css`\n :host {\n display: block;\n width: 100%;\n }\n\n .footer-item {\n display: flex;\n align-items: center;\n\t justify-content: flex-start;\n padding-top: var(--nile-spacing-md, var(--ng-spacing-md));\n padding-bottom: var(--nile-spacing-md, var(--ng-spacing-md));\n padding-left: var(--nile-spacing-lg, var(--ng-spacing-lg));\n padding-right: var(--nile-spacing-lg, var(--ng-spacing-lg));\n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));\n color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));\n cursor: pointer;\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n border-radius: var(--nile-radius-sm, var(--ng-radius-lg));\n transition: background 0.2s ease;\n width: 100%;\n box-sizing: border-box;\n overflow: hidden;\n line-height: 0;\n }\n\n .footer-item:hover {\n background: var(\n --nile-side-bar-footer-hover-bg,\n var(--ng-colors-bg-primary-hover)\n );\n }\n\n /* left: icon */\n ::slotted([slot='icon']) {\n flex-shrink: 0;\n font-size: 1.25rem;\n margin-right: 0.5rem;\n }\n\n /* middle: text */\n ::slotted([slot='text']) {\n flex-grow: 1;\n min-width: 0;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n /* right: action */\n ::slotted([slot='action']) {\n flex-shrink: 0;\n font-size: 1.25rem;\n color: var(\n --nile-side-bar-footer-icon-color,\n var(--ng-colors-fg-quaternary-400)\n );\n margin-left: auto;\n }\n\n \n :host([type='support']) .footer-item {\n background: var(--nile-colors-neutral-400, var(--ng-colors-bg-secondary));\n height: var(--nile-height-38px, var(--ng-spacing-5xl));\n border-radius: var(--nile-radius-sm, var(--ng-radius-sm));\n\n }\n \n :host(:hover[type='support']) .footer-item {\n background: var(--nile-colors-neutral-500, var(--ng-colors-bg-primary-hover));\n height: var(--nile-height-38px, var(--ng-spacing-5xl));\n }\n\n :host([type='avatar']) .footer-item {\nborder: 1px solid var(--ng-colors-border-secondary);\nmin-height: var(--nile-radius-4xl, var(--ng-spacing-7xl));\n}\n:host([type='avatar'][active]) .footer-item {\nbackground: var(--nile-colors-neutral-400, var(--ng-colors-bg-active));\n}\n\n\n\n:host([collapsed][type='avatar']) .footer-item {\nborder: none;\n}\n :host([collapsed][type='avatar']) .footer-item {\n padding: 4px;\n \n}\n:host([collapsed]) .footer-item{\n height: 38px;\n width: 38px;\n}\n`;\n\nexport default [styles];\n"]}
|
|
1
|
+
{"version":3,"file":"nile-side-bar-footer-item.css.js","sourceRoot":"","sources":["../../../src/nile-side-bar-footer-item/nile-side-bar-footer-item.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0PxB,CAAC;AAEF,eAAe,CAAC,MAAM,CAAC,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const styles = css`\n :host {\n display: block;\n width: 100%;\n box-sizing: border-box;\n /* 44px outer item wrapping a 40px inner row. */\n padding: var(--nile-spacing-xxs, var(--ng-spacing-xxs)) var(--nile-spacing-none, var(--ng-spacing-none));\n }\n\n .footer-item {\n display: flex;\n align-items: center;\n\t justify-content: flex-start;\n /* Untyped (Appearance/Help) row height; [type] variants below set their own. */\n height: var(--nile-height-40px, var(--ng-height-36px));\n padding-top: var(--nile-spacing-md, var(--ng-spacing-md));\n padding-bottom: var(--nile-spacing-md, var(--ng-spacing-md));\n padding-left: var(--nile-spacing-lg, var(--ng-spacing-lg));\n padding-right: var(--nile-spacing-lg, var(--ng-spacing-lg));\n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));\n color: var(--nile-colors-dark-900, var(--ng-colors-text-secondary-700));\n cursor: pointer;\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n border-radius: var(--nile-radius-sm, var(--ng-radius-md));\n transition: background 0.2s ease;\n width: 100%;\n box-sizing: border-box;\n overflow: hidden;\n }\n\n .footer-item:hover {\n background: var(\n --nile-side-bar-footer-hover-bg,\n var(--ng-colors-bg-primary-hover)\n );\n }\n\n /* Darkens the label on hover for every row except Account; the rule below repeats this for nile-side-bar-footer-text's own .main/.sub, which this selector alone can't reach. */\n :host(:not([type='avatar'])) .footer-item:hover ::slotted([slot='text']) {\n color: var(--nile-colors-dark-800, var(--ng-colors-text-tertiary-hover));\n }\n\n :host(:not([type='avatar'])) .footer-item {\n --nile-side-bar-footer-text-main-font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));\n --nile-side-bar-footer-text-main-line-height: var(--nile-line-height-medium, var(--ng-line-height-text-sm));\n }\n\n :host(:not([type='avatar'])) .footer-item:hover {\n --nile-side-bar-footer-text-main-hover-color: var(--nile-colors-dark-800, var(--ng-colors-text-tertiary-hover));\n }\n\n :host(:not([type='avatar']):not([active])) .footer-item:hover {\n background: var(--nile-colors-neutral-400, var(--ng-colors-bg-secondary-subtle));\n --nile-side-bar-footer-icon-color: var(--nile-colors-dark-900, var(--ng-colors-fg-tertiary-hover));\n }\n\n /* left: icon, a fixed 20x20 box regardless of what the consumer's own icon element asks for. */\n ::slotted([slot='icon']) {\n flex-shrink: 0;\n width: var(--nile-height-20px, var(--ng-height-20px));\n height: var(--nile-height-20px, var(--ng-height-20px));\n margin-right: var(--nile-spacing-md, var(--ng-spacing-md));\n }\n\n /* middle: text */\n ::slotted([slot='text']) {\n flex-grow: 1;\n min-width: 0;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-size: var(--nile-type-scale-4, var(--ng-font-size-text-sm));\n line-height: var(--nile-line-height-medium, var(--ng-line-height-text-sm));\n font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-semibold));\n letter-spacing: normal;\n }\n\n /* right: action (e.g. Help's trailing chevron), a fixed 16x16 box. */\n ::slotted([slot='action']) {\n flex-shrink: 0;\n width: var(--nile-width-16px, var(--ng-width-4));\n height: var(--nile-width-16px, var(--ng-height-16px));\n margin-left: var(--nile-spacing-lg, var(--ng-spacing-lg));\n color: var(\n --nile-side-bar-footer-icon-color,\n var(--ng-colors-fg-quaternary-hover)\n );\n }\n\n /* Collapsed: a trailing action (Help's chevron) isn't shown in the rail. */\n :host([collapsed]:not([type='avatar'])) ::slotted([slot='action']) {\n display: none;\n }\n\n \n /* Resting: no fill, as in the design; the row sits on the sidebar surface. Hover below still fills. Enterprise keeps its neutral-400 fill. */\n :host([type='support']) .footer-item {\n background: var(--nile-colors-neutral-400, transparent);\n height: var(--nile-height-38px, var(--ng-height-36px));\n border-radius: var(--nile-radius-sm, var(--ng-radius-md));\n\n }\n \n /* Hover follows the nav menu items (nile-side-bar-group-item): bg-secondary-subtle fill, text-tertiary-hover label, fg-tertiary-hover icon and chevron. bg-primary-hover was the same colour as the sidebar surface, so the row showed no change. */\n :host(:hover[type='support']) .footer-item {\n background: var(--nile-colors-neutral-500, var(--ng-colors-bg-secondary-subtle));\n height: var(--nile-height-38px, var(--ng-height-36px));\n }\n\n :host([type='support']) .footer-item:hover ::slotted([slot='text']) {\n color: var(--nile-colors-dark-800, var(--ng-colors-text-tertiary-hover));\n }\n\n :host([type='support']) .footer-item:hover {\n --nile-side-bar-footer-text-main-hover-color: var(--nile-colors-dark-800, var(--ng-colors-text-tertiary-hover));\n --nile-side-bar-footer-icon-color: var(--nile-colors-dark-900, var(--ng-colors-fg-tertiary-hover));\n }\n\n /* Account row: 11px padding + 1px border reproduces Figma's 12px outer-edge-to-content distance, since Figma's stroke doesn't consume its own Auto Layout padding the way a CSS border does. */\n :host([type='avatar']) {\n padding: var(--nile-spacing-none, var(--ng-spacing-none));\n --nile-side-bar-footer-text-main-line-height: var(--nile-line-height-medium, var(--ng-line-height-text-md));\n /* The Account row's name is semibold. Support/Help rows use the text's own medium. */\n --nile-side-bar-footer-text-main-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-semibold));\n }\n\n :host([type='avatar']) .footer-item {\n height: auto;\n padding: calc(var(--nile-spacing-lg, var(--ng-spacing-lg)) - 1px);\n border: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));\n border-radius: var(--nile-radius-xl, var(--ng-radius-xl));\n /* Resting/closed: bg-primary (Figma). Resolves to the same value as bg-primary-alt in Light and Dark. */\n background: var(--nile-colors-white-base, var(--ng-colors-bg-primary));\n}\n\n /* [data-action-open] is set via JS, not :has(), since Chromium doesn't re-match :has() on a slotted child's own attribute changes. */\n :host([type='avatar']:not([collapsed])[data-action-open]) .footer-item {\n background: var(--nile-side-bar-footer-hover-bg, var(--ng-colors-bg-primary-hover));\n }\n\n /* Hover: bg-primary-hover, like the open state. Not while selected, which keeps its own background. */\n :host([type='avatar']:not([collapsed]):not([active])) .footer-item:hover {\n background: var(--nile-side-bar-footer-hover-bg, var(--ng-colors-bg-primary-hover));\n }\n\n:host([type='avatar'][active]) .footer-item {\nbackground: var(--nile-colors-neutral-400, var(--ng-colors-bg-active));\n}\n\n /* Avatar: 40x40, not the generic 20x20 icon box. */\n :host([type='avatar']) ::slotted([slot='icon']) {\n width: var(--nile-height-40px, var(--ng-height-40px));\n height: var(--nile-height-40px, var(--ng-height-40px));\n }\n\n /* :not([collapsed]) avoids a specificity tie with the collapsed display:none rule below. */\n :host([type='avatar']:not([collapsed])) ::slotted([slot='action']) {\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n width: var(--nile-height-32px, var(--ng-height-32px));\n height: var(--nile-height-32px, var(--ng-height-32px));\n padding: var(--nile-spacing-sm, var(--ng-spacing-sm));\n border-radius: var(--nile-radius-sm, var(--ng-radius-sm));\n }\n\n:host([collapsed][type='avatar']) .footer-item {\n position: relative;\n /* Explicit clamp -- the content-driven height above otherwise stays 44px even when collapsed. */\n height: var(--nile-height-40px, var(--ng-height-40px));\nborder: none;\n padding: var(--nile-spacing-none, var(--ng-spacing-none));\n background: transparent;\n border-radius: var(--nile-radius-full, var(--ng-radius-full));\n}\n:host([collapsed]) .footer-item{\n width: var(--nile-width-40px, var(--ng-height-40px));\n}\n\n/* Collapsed NxtGen: a 40px row, 44px outer with the host's 2px block padding (Figma). The expanded row and the avatar are untouched, and enterprise resolves --nile-height-* first, so it keeps its own heights. */\n:host([collapsed]:not([type])) .footer-item {\n height: var(--nile-height-40px, var(--ng-height-40px));\n}\n\n:host([collapsed][type='support']) .footer-item,\n:host(:hover[collapsed][type='support']) .footer-item {\n height: var(--nile-height-38px, var(--ng-height-40px));\n}\n\n:host([collapsed][type='avatar']) ::slotted([slot='action']) {\n position: absolute;\n inset: 0;\n display: block;\n width: 100%;\n height: 100%;\n margin: var(--nile-spacing-none, var(--ng-spacing-none));\n opacity: 0;\n pointer-events: none;\n}\n\n/* Collapsed Account row. The 40px icon box carries no trailing margin (nothing sits beside it in a rail), is centred in the 40px row, and centres whatever avatar size it holds, so xs, sm, md and lg all sit on the rail's centre line. The row lets an avatar wider than 40px overflow evenly instead of being clipped. The expanded row is untouched. */\n:host([collapsed][type='avatar']) .footer-item {\n justify-content: center;\n overflow: visible;\n}\n\n:host([collapsed][type='avatar']) ::slotted([slot='icon']) {\n margin-right: var(--nile-spacing-none, var(--ng-spacing-none));\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n/* Collapsed Appearance/Help (NxtGen): the 12px side padding and the 8px icon margin put the icon at x=38 in the 72px rail. Zero both and centre it so it sits at x=36, as the nav icons do; enterprise keeps its padding and margin. */\n:host([collapsed]:not([type])) .footer-item {\n padding-left: var(--nile-spacing-lg, var(--ng-spacing-none));\n padding-right: var(--nile-spacing-lg, var(--ng-spacing-none));\n justify-content: center;\n}\n\n:host([collapsed]:not([type])) ::slotted([slot='icon']) {\n margin-right: var(--nile-spacing-md, var(--ng-spacing-none));\n}\n\n/* The label keeps its place in the tree but has no room, so only the icon is centred. */\n:host([collapsed]:not([type])) ::slotted([slot='text']) {\n flex: 0 0 0;\n width: 0;\n}\n\n/* Appearance/Help selected state -- scoped to the untyped variant only; avatar's own [active] rule above is separate. */\n:host([active]:not([type])) .footer-item {\n background: var(--ng-colors-bg-primary);\n border-radius: var(--nile-radius-sm, var(--ng-radius-md));\n}\n\n:host([active]:not([type])) ::slotted([slot='text']) {\n color: var(--ng-colors-text-brand-secondary-700);\n}\n\n:host([active]:not([type])) {\n --nile-side-bar-footer-icon-color: var(--ng-colors-fg-brand-primary-600);\n}\n\n/* Focus-visible is the ring only, independent of selection — same rule as nile-side-bar-group-item. */\n.footer-item:focus-visible {\n outline: none;\n box-shadow: inset 0 0 0 var(--ng-border-width-2) var(--ng-colors-effects-focus-ring);\n}\n`;\n\nexport default [styles];\n"]}
|
|
@@ -9,6 +9,8 @@ import NileElement from '../internal/nile-element';
|
|
|
9
9
|
* @slot text - Slot for footer item text
|
|
10
10
|
* @slot action - Slot for footer item action
|
|
11
11
|
*
|
|
12
|
+
* @attr active - Selected/current. Same state model as nile-side-bar-group-item.
|
|
13
|
+
*
|
|
12
14
|
* @csspart base - Wrapper for the footer item
|
|
13
15
|
* @csspart icon - Wrapper for the icon slot
|
|
14
16
|
* @csspart text - Wrapper for the text slot
|
|
@@ -16,8 +18,21 @@ import NileElement from '../internal/nile-element';
|
|
|
16
18
|
*/
|
|
17
19
|
export declare class NileSideBarFooterItem extends NileElement {
|
|
18
20
|
type: string | null;
|
|
21
|
+
/** Selected/current, same state model and brand colors as nile-side-bar-group-item. */
|
|
22
|
+
active: boolean;
|
|
19
23
|
static get styles(): CSSResultArray;
|
|
20
24
|
private handleClick;
|
|
25
|
+
private handleActionVisibility;
|
|
26
|
+
connectedCallback(): void;
|
|
27
|
+
disconnectedCallback(): void;
|
|
28
|
+
static get observedAttributes(): string[];
|
|
29
|
+
attributeChangedCallback(name: string, old: string | null, value: string | null): void;
|
|
30
|
+
private actionWasOpen;
|
|
31
|
+
private get collapsedAccount();
|
|
32
|
+
private get actionElement();
|
|
33
|
+
private handleMouseDown;
|
|
34
|
+
private handleAccountClick;
|
|
35
|
+
private handleAccountKeyDown;
|
|
21
36
|
render(): TemplateResult;
|
|
22
37
|
}
|
|
23
38
|
export default NileSideBarFooterItem;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { html } from 'lit';
|
|
3
|
+
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
3
4
|
import { customElement, property } from 'lit/decorators.js';
|
|
4
5
|
import { styles } from './nile-side-bar-footer-item.css';
|
|
5
6
|
import NileElement from '../internal/nile-element';
|
|
@@ -12,6 +13,8 @@ import NileElement from '../internal/nile-element';
|
|
|
12
13
|
* @slot text - Slot for footer item text
|
|
13
14
|
* @slot action - Slot for footer item action
|
|
14
15
|
*
|
|
16
|
+
* @attr active - Selected/current. Same state model as nile-side-bar-group-item.
|
|
17
|
+
*
|
|
15
18
|
* @csspart base - Wrapper for the footer item
|
|
16
19
|
* @csspart icon - Wrapper for the icon slot
|
|
17
20
|
* @csspart text - Wrapper for the text slot
|
|
@@ -21,6 +24,9 @@ let NileSideBarFooterItem = class NileSideBarFooterItem extends NileElement {
|
|
|
21
24
|
constructor() {
|
|
22
25
|
super(...arguments);
|
|
23
26
|
this.type = null;
|
|
27
|
+
/** Selected/current, same state model and brand colors as nile-side-bar-group-item. */
|
|
28
|
+
this.active = false;
|
|
29
|
+
this.actionWasOpen = false;
|
|
24
30
|
}
|
|
25
31
|
static get styles() {
|
|
26
32
|
return [styles];
|
|
@@ -32,9 +38,80 @@ let NileSideBarFooterItem = class NileSideBarFooterItem extends NileElement {
|
|
|
32
38
|
composed: true
|
|
33
39
|
}));
|
|
34
40
|
}
|
|
41
|
+
/* Reflects a slotted nile-side-bar-action's open state as [data-action-open], since :has() doesn't re-match on a slotted child's own attribute changes. */
|
|
42
|
+
handleActionVisibility(e) {
|
|
43
|
+
const target = e.target;
|
|
44
|
+
if (target.tagName?.toLowerCase() === 'nile-side-bar-action') {
|
|
45
|
+
this.toggleAttribute('data-action-open', e.type === 'nile-show');
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
connectedCallback() {
|
|
49
|
+
super.connectedCallback();
|
|
50
|
+
this.handleActionVisibility = this.handleActionVisibility.bind(this);
|
|
51
|
+
this.addEventListener('nile-show', this.handleActionVisibility);
|
|
52
|
+
this.addEventListener('nile-hide', this.handleActionVisibility);
|
|
53
|
+
}
|
|
54
|
+
disconnectedCallback() {
|
|
55
|
+
super.disconnectedCallback();
|
|
56
|
+
this.removeEventListener('nile-show', this.handleActionVisibility);
|
|
57
|
+
this.removeEventListener('nile-hide', this.handleActionVisibility);
|
|
58
|
+
}
|
|
59
|
+
static get observedAttributes() {
|
|
60
|
+
return [...super.observedAttributes, 'collapsed'];
|
|
61
|
+
}
|
|
62
|
+
attributeChangedCallback(name, old, value) {
|
|
63
|
+
super.attributeChangedCallback(name, old, value);
|
|
64
|
+
if (name === 'collapsed')
|
|
65
|
+
this.requestUpdate();
|
|
66
|
+
}
|
|
67
|
+
get collapsedAccount() {
|
|
68
|
+
return this.type === 'avatar' && this.hasAttribute('collapsed');
|
|
69
|
+
}
|
|
70
|
+
get actionElement() {
|
|
71
|
+
return this.querySelector(':scope > nile-side-bar-action[slot="action"]');
|
|
72
|
+
}
|
|
73
|
+
handleMouseDown() {
|
|
74
|
+
this.actionWasOpen = !!this.actionElement?.open;
|
|
75
|
+
}
|
|
76
|
+
handleAccountClick(e) {
|
|
77
|
+
if (!this.collapsedAccount || e.target.closest('nile-side-bar-action'))
|
|
78
|
+
return;
|
|
79
|
+
const action = this.actionElement;
|
|
80
|
+
if (!action)
|
|
81
|
+
return;
|
|
82
|
+
if (this.actionWasOpen) {
|
|
83
|
+
this.actionWasOpen = false;
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
action.show();
|
|
87
|
+
}
|
|
88
|
+
handleAccountKeyDown(e) {
|
|
89
|
+
if (!this.collapsedAccount || e.target.closest('nile-side-bar-action'))
|
|
90
|
+
return;
|
|
91
|
+
if (e.key !== 'Enter' && e.key !== ' ')
|
|
92
|
+
return;
|
|
93
|
+
const action = this.actionElement;
|
|
94
|
+
if (!action)
|
|
95
|
+
return;
|
|
96
|
+
e.preventDefault();
|
|
97
|
+
if (action.open)
|
|
98
|
+
action.hide();
|
|
99
|
+
else
|
|
100
|
+
action.show();
|
|
101
|
+
}
|
|
35
102
|
render() {
|
|
36
103
|
return html `
|
|
37
|
-
<div
|
|
104
|
+
<div
|
|
105
|
+
part="base"
|
|
106
|
+
class="footer-item"
|
|
107
|
+
tabindex=${ifDefined(this.collapsedAccount && this.actionElement ? '0' : undefined)}
|
|
108
|
+
@mousedown=${this.handleMouseDown}
|
|
109
|
+
@click=${(e) => {
|
|
110
|
+
this.handleClick();
|
|
111
|
+
this.handleAccountClick(e);
|
|
112
|
+
}}
|
|
113
|
+
@keydown=${this.handleAccountKeyDown}
|
|
114
|
+
>
|
|
38
115
|
<slot name="icon" part="icon"></slot>
|
|
39
116
|
<slot name="text" part="text"></slot>
|
|
40
117
|
<slot name="action" part="action"></slot>
|
|
@@ -43,8 +120,11 @@ let NileSideBarFooterItem = class NileSideBarFooterItem extends NileElement {
|
|
|
43
120
|
}
|
|
44
121
|
};
|
|
45
122
|
__decorate([
|
|
46
|
-
property({ type: String, reflect: true })
|
|
123
|
+
property({ type: String, attribute: true, reflect: true })
|
|
47
124
|
], NileSideBarFooterItem.prototype, "type", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
property({ type: Boolean, attribute: true, reflect: true })
|
|
127
|
+
], NileSideBarFooterItem.prototype, "active", void 0);
|
|
48
128
|
NileSideBarFooterItem = __decorate([
|
|
49
129
|
customElement('nile-side-bar-footer-item')
|
|
50
130
|
], NileSideBarFooterItem);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nile-side-bar-footer-item.js","sourceRoot":"","sources":["../../../src/nile-side-bar-footer-item/nile-side-bar-footer-item.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAkC,MAAM,KAAK,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AACzD,OAAO,WAAW,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"nile-side-bar-footer-item.js","sourceRoot":"","sources":["../../../src/nile-side-bar-footer-item/nile-side-bar-footer-item.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAkC,MAAM,KAAK,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AACzD,OAAO,WAAW,MAAM,0BAA0B,CAAC;AAGnD;;;;;;;;;;;;;;;GAeG;AAEI,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,WAAW;IAA/C;;QACuD,SAAI,GAAkB,IAAI,CAAC;QAEvF,uFAAuF;QAC1B,WAAM,GAAY,KAAK,CAAC;QA4C7E,kBAAa,GAAG,KAAK,CAAC;IAsDhC,CAAC;IAhGQ,MAAM,KAAK,MAAM;QACtB,OAAO,CAAC,MAAM,CAAC,CAAC;IAClB,CAAC;IAEO,WAAW;QACjB,IAAI,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,YAAY,EAAE;YAC/C,MAAM,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE;YAC3B,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,IAAI;SACf,CAAC,CAAC,CAAC;IACN,CAAC;IAED,2JAA2J;IACnJ,sBAAsB,CAAC,CAAQ;QACrC,MAAM,MAAM,GAAG,CAAC,CAAC,MAAiB,CAAC;QACnC,IAAI,MAAM,CAAC,OAAO,EAAE,WAAW,EAAE,KAAK,sBAAsB,EAAE,CAAC;YAC7D,IAAI,CAAC,eAAe,CAAC,kBAAkB,EAAE,CAAC,CAAC,IAAI,KAAK,WAAW,CAAC,CAAC;QACnE,CAAC;IACH,CAAC;IAED,iBAAiB;QACf,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,IAAI,CAAC,sBAAsB,GAAG,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrE,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,IAAI,CAAC,sBAAsB,CAAC,CAAC;QAChE,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,IAAI,CAAC,sBAAsB,CAAC,CAAC;IAClE,CAAC;IAED,oBAAoB;QAClB,KAAK,CAAC,oBAAoB,EAAE,CAAC;QAC7B,IAAI,CAAC,mBAAmB,CAAC,WAAW,EAAE,IAAI,CAAC,sBAAsB,CAAC,CAAC;QACnE,IAAI,CAAC,mBAAmB,CAAC,WAAW,EAAE,IAAI,CAAC,sBAAsB,CAAC,CAAC;IACrE,CAAC;IAED,MAAM,KAAK,kBAAkB;QAC3B,OAAO,CAAC,GAAG,KAAK,CAAC,kBAAkB,EAAE,WAAW,CAAC,CAAC;IACpD,CAAC;IAED,wBAAwB,CAAC,IAAY,EAAE,GAAkB,EAAE,KAAoB;QAC7E,KAAK,CAAC,wBAAwB,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;QACjD,IAAI,IAAI,KAAK,WAAW;YAAE,IAAI,CAAC,aAAa,EAAE,CAAC;IACjD,CAAC;IAID,IAAY,gBAAgB;QAC1B,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ,IAAI,IAAI,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC;IAClE,CAAC;IAED,IAAY,aAAa;QACvB,OAAO,IAAI,CAAC,aAAa,CAAoB,8CAA8C,CAAC,CAAC;IAC/F,CAAC;IAEO,eAAe;QACrB,IAAI,CAAC,aAAa,GAAG,CAAC,CAAC,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC;IAClD,CAAC;IAEO,kBAAkB,CAAC,CAAQ;QACjC,IAAI,CAAC,IAAI,CAAC,gBAAgB,IAAK,CAAC,CAAC,MAAkB,CAAC,OAAO,CAAC,sBAAsB,CAAC;YAAE,OAAO;QAC5F,MAAM,MAAM,GAAG,IAAI,CAAC,aAAa,CAAC;QAClC,IAAI,CAAC,MAAM;YAAE,OAAO;QACpB,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC;YACvB,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;YAC3B,OAAO;QACT,CAAC;QACD,MAAM,CAAC,IAAI,EAAE,CAAC;IAChB,CAAC;IAEO,oBAAoB,CAAC,CAAgB;QAC3C,IAAI,CAAC,IAAI,CAAC,gBAAgB,IAAK,CAAC,CAAC,MAAkB,CAAC,OAAO,CAAC,sBAAsB,CAAC;YAAE,OAAO;QAC5F,IAAI,CAAC,CAAC,GAAG,KAAK,OAAO,IAAI,CAAC,CAAC,GAAG,KAAK,GAAG;YAAE,OAAO;QAC/C,MAAM,MAAM,GAAG,IAAI,CAAC,aAAa,CAAC;QAClC,IAAI,CAAC,MAAM;YAAE,OAAO;QACpB,CAAC,CAAC,cAAc,EAAE,CAAC;QACnB,IAAI,MAAM,CAAC,IAAI;YAAE,MAAM,CAAC,IAAI,EAAE,CAAC;;YAC1B,MAAM,CAAC,IAAI,EAAE,CAAC;IACrB,CAAC;IAEM,MAAM;QACX,OAAO,IAAI,CAAA;;;;mBAII,SAAS,CAAC,IAAI,CAAC,gBAAgB,IAAI,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;qBACtE,IAAI,CAAC,eAAe;iBACxB,CAAC,CAAQ,EAAE,EAAE;YACpB,IAAI,CAAC,WAAW,EAAE,CAAC;YACnB,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC;QAC7B,CAAC;mBACU,IAAI,CAAC,oBAAoB;;;;;;KAMvC,CAAC;IACJ,CAAC;CACF,CAAA;AArG6D;IAA3D,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;mDAA4B;AAG1B;IAA5D,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;qDAAyB;AAJ1E,qBAAqB;IADjC,aAAa,CAAC,2BAA2B,CAAC;GAC9B,qBAAqB,CAsGjC;;AAED,eAAe,qBAAqB,CAAC","sourcesContent":["import { html, CSSResultArray, TemplateResult } from 'lit';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-side-bar-footer-item.css';\nimport NileElement from '../internal/nile-element';\nimport type { NileSideBarAction } from '../nile-side-bar-action/nile-side-bar-action';\n\n/**\n * Nile side-bar-footer-item component.\n *\n * @tag nile-side-bar-footer-item\n *\n * @slot icon - Slot for footer item icon\n * @slot text - Slot for footer item text\n * @slot action - Slot for footer item action\n *\n * @attr active - Selected/current. Same state model as nile-side-bar-group-item.\n *\n * @csspart base - Wrapper for the footer item\n * @csspart icon - Wrapper for the icon slot\n * @csspart text - Wrapper for the text slot\n * @csspart action - Wrapper for the action slot\n */\n@customElement('nile-side-bar-footer-item')\nexport class NileSideBarFooterItem extends NileElement {\n @property({ type: String, attribute: true, reflect: true }) type: string | null = null;\n\n /** Selected/current, same state model and brand colors as nile-side-bar-group-item. */\n @property({ type: Boolean, attribute: true, reflect: true }) active: boolean = false;\n\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n private handleClick(): void {\n this.dispatchEvent(new CustomEvent('nile-click', {\n detail: { type: this.type },\n bubbles: true,\n composed: true\n }));\n }\n\n /* Reflects a slotted nile-side-bar-action's open state as [data-action-open], since :has() doesn't re-match on a slotted child's own attribute changes. */\n private handleActionVisibility(e: Event): void {\n const target = e.target as Element;\n if (target.tagName?.toLowerCase() === 'nile-side-bar-action') {\n this.toggleAttribute('data-action-open', e.type === 'nile-show');\n }\n }\n\n connectedCallback(): void {\n super.connectedCallback();\n this.handleActionVisibility = this.handleActionVisibility.bind(this);\n this.addEventListener('nile-show', this.handleActionVisibility);\n this.addEventListener('nile-hide', this.handleActionVisibility);\n }\n\n disconnectedCallback(): void {\n super.disconnectedCallback();\n this.removeEventListener('nile-show', this.handleActionVisibility);\n this.removeEventListener('nile-hide', this.handleActionVisibility);\n }\n\n static get observedAttributes(): string[] {\n return [...super.observedAttributes, 'collapsed'];\n }\n\n attributeChangedCallback(name: string, old: string | null, value: string | null): void {\n super.attributeChangedCallback(name, old, value);\n if (name === 'collapsed') this.requestUpdate();\n }\n\n private actionWasOpen = false;\n\n private get collapsedAccount(): boolean {\n return this.type === 'avatar' && this.hasAttribute('collapsed');\n }\n\n private get actionElement(): NileSideBarAction | null {\n return this.querySelector<NileSideBarAction>(':scope > nile-side-bar-action[slot=\"action\"]');\n }\n\n private handleMouseDown(): void {\n this.actionWasOpen = !!this.actionElement?.open;\n }\n\n private handleAccountClick(e: Event): void {\n if (!this.collapsedAccount || (e.target as Element).closest('nile-side-bar-action')) return;\n const action = this.actionElement;\n if (!action) return;\n if (this.actionWasOpen) {\n this.actionWasOpen = false;\n return;\n }\n action.show();\n }\n\n private handleAccountKeyDown(e: KeyboardEvent): void {\n if (!this.collapsedAccount || (e.target as Element).closest('nile-side-bar-action')) return;\n if (e.key !== 'Enter' && e.key !== ' ') return;\n const action = this.actionElement;\n if (!action) return;\n e.preventDefault();\n if (action.open) action.hide();\n else action.show();\n }\n\n public render(): TemplateResult {\n return html`\n <div\n part=\"base\"\n class=\"footer-item\"\n tabindex=${ifDefined(this.collapsedAccount && this.actionElement ? '0' : undefined)}\n @mousedown=${this.handleMouseDown}\n @click=${(e: Event) => {\n this.handleClick();\n this.handleAccountClick(e);\n }}\n @keydown=${this.handleAccountKeyDown}\n >\n <slot name=\"icon\" part=\"icon\"></slot>\n <slot name=\"text\" part=\"text\"></slot>\n <slot name=\"action\" part=\"action\"></slot>\n </div>\n `;\n }\n}\n\nexport default NileSideBarFooterItem;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-side-bar-footer-item': NileSideBarFooterItem;\n }\n}\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import '../nile-side-bar';
|
|
2
|
+
import '../nile-side-bar-footer';
|
|
3
|
+
import '../nile-side-bar-footer-item';
|
|
4
|
+
import '../nile-side-bar-footer-text';
|
|
5
|
+
import '../nile-app-shell';
|
|
6
|
+
import '../nile-app-shell-side-nav';
|
|
7
|
+
import '../nile-avatar';
|
|
8
|
+
import '../nile-icon';
|
|
9
|
+
import '@aquera/nile-glyph/nile-glyph';
|