@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,2 +1,2 @@
|
|
|
1
|
-
function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","./nile-side-bar-group.css.cjs.js","../internal/nile-element.cjs.js","../internal/accessibility/a11y.state.enum.cjs.js","../internal/accessibility/a11y.property.enum.cjs.js","../internal/accessibility/role.enum.cjs.js"],function(_export,_context){"use strict";var t,e,s,
|
|
1
|
+
function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","./nile-side-bar-group.css.cjs.js","../internal/nile-element.cjs.js","../internal/accessibility/a11y.state.enum.cjs.js","../internal/accessibility/a11y.property.enum.cjs.js","../internal/accessibility/role.enum.cjs.js"],function(_export,_context){"use strict";var t,e,i,s,r,a,_templateObject,_templateObject2,_l,n,o,c;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r);}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_lit){e=_lit.html;},function(_litDecoratorsJs){i=_litDecoratorsJs.property;s=_litDecoratorsJs.customElement;},function(_nileSideBarGroupCssCjsJs){r=_nileSideBarGroupCssCjsJs.s;},function(_internalNileElementCjsJs){a=_internalNileElementCjsJs.N;},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){}],execute:function execute(){n="nile-side-bar-group",o="nile-side-bar, nile-app-shell-side-nav";_export("N",c=_l=/*#__PURE__*/function(_a){function l(){var _this;_classCallCheck(this,l);_this=_callSuper(this,l,arguments),_this.label="",_this.footer=!1,_this.divider=!1,_this.updateLeading=function(){var t=_l.containerOf(_assertThisInitialized(_this)),e=t?_toConsumableArray(t.querySelectorAll(n)).find(function(e){return _l.containerOf(e)===t&&_l.isVisibleIn(e,t);}):_assertThisInitialized(_this);_this.toggleAttribute("data-leading",e===_assertThisInitialized(_this));};return _this;}_inherits(l,_a);return _createClass(l,[{key:"connectedCallback",value:function connectedCallback(){var _this2=this;_superPropGet(l,"connectedCallback",this,3)([]),this.updateLeading();var t=_l.containerOf(this);if(t){var _e=!t.matches(o);this.siblingObserver=new MutationObserver(function(i){i.some(function(i){return!(i.target instanceof Element&&!_e&&i.target.closest(o)!==t)&&("childList"===i.type?[].concat(_toConsumableArray(i.addedNodes),_toConsumableArray(i.removedNodes)).some(_l.affectsGroups):_l.affectsGroups(i.target));})&&_this2.updateLeading();}),this.siblingObserver.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["hidden"]});}}},{key:"disconnectedCallback",value:function disconnectedCallback(){var _this$siblingObserver;(_this$siblingObserver=this.siblingObserver)!==null&&_this$siblingObserver!==void 0&&_this$siblingObserver.disconnect(),this.siblingObserver=void 0,_superPropGet(l,"disconnectedCallback",this,3)([]);}},{key:"render",value:function render(){return e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <section\n part=\"base\"\n class=\"side-bar-group","\"\n role=\"list\"\n aria-label=","\n ?data-footer=","\n >\n ","\n <slot></slot>\n </section>\n "])),this.label?" has-label":"",this.label||"Sidebar group",this.footer,this.label?e(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<div part=\"label\" class=\"group-label\">","</div>"])),this.label):null);}}],[{key:"styles",get:function get(){return[r];}},{key:"containerOf",value:function containerOf(t){var _t$closest;return(_t$closest=t.closest(o))!==null&&_t$closest!==void 0?_t$closest:t.parentElement;}},{key:"isVisibleIn",value:function isVisibleIn(t,e){for(var _i=t;_i&&_i!==e;_i=_i.parentElement)if(_i.hasAttribute("hidden"))return!1;return!0;}},{key:"affectsGroups",value:function affectsGroups(t){return t instanceof Element&&(t.localName===n||null!==t.querySelector(n));}}]);}(a));t([i({type:String})],c.prototype,"label",void 0),t([i({type:Boolean,reflect:!0})],c.prototype,"footer",void 0),t([i({type:Boolean,reflect:!0})],c.prototype,"divider",void 0),_export("N",c=_l=t([s("nile-side-bar-group")],c));}};});
|
|
2
2
|
//# sourceMappingURL=nile-side-bar-group.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nile-side-bar-group.cjs.js","sources":["../../../src/nile-side-bar-group/nile-side-bar-group.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { LitElement, html, CSSResultArray, TemplateResult } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-side-bar-group.css';\nimport NileElement from '../internal/nile-element';\n\n/**\n * Nile side-bar-group component.\n *\n * A logical grouping of sidebar items, optionally with a label and/or footer placement.\n *\n * @tag nile-side-bar-group\n *\n * @slot - Default slot for group items (nile-side-bar-group-item)\n * @csspart base - The group container\n * @csspart label - The group label element\n */\n@customElement('nile-side-bar-group')\nexport class NileSideBarGroup extends NileElement {\n /**\n * Optional label for the group.\n */\n @property({ type: String }) label: string = '';\n\n /**\n * Marks this group as footer (sticks to bottom of sidebar).\n */\n @property({ type: Boolean, reflect: true }) footer: boolean = false;\n @property({ type: Boolean, reflect: true })divider = false;\n\n\n /**\n * The styles for nile-side-bar-group\n * @remarks Extendable via super if needed\n */\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n /* #region Render */\n\n public render(): TemplateResult {\n return html`\n <section\n part=\"base\"\n class=\"side-bar-group\" \n role=\"list\"\n aria-label=${this.label || 'Sidebar group'}\n ?data-footer=${this.footer}\n >\n ${this.label\n ? html`<div part=\"label\" class=\"group-label\">${this.label}</div>`\n : null}\n <slot></slot>\n </section>\n `;\n }\n\n /* #endregion */\n}\n\nexport default NileSideBarGroup;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-side-bar-group': NileSideBarGroup;\n }\n}\n"],"names":["NileSideBarGroup","l","this","label","footer","divider","_this","_inherits","_o","_createClass","key","value","render","html","_templateObject","_taggedTemplateLiteral","_templateObject2","get","styles","NileElement","__decorate","property","type","String","prototype","Boolean","reflect","customElement"],"mappings":"m9GAwBaA,4BAAN,SAAAC,EAAA,qEAIuBC,EAAAA,KAAAA,CAAKC,MAAW,EAKAD,CAAAA,KAAAA,CAAME,QAAY,CACnBF,CAAAA,KAAAA,CAAOG,SAAG,CA+BtD,QAAAC,KAAA,EAxBQC,SAAA,CAAAN,CAAA,CAAAO,EAAA,SAAAC,YAAA,CAAAR,CAAA,GAAAS,GAAA,UAAAC,KAAA,CAMA,SAAAC,MAAAA,CAAAA,CAAAA,CACL,MAAOC,CAAAA,CAAI,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA,gOAKMb,IAAAA,CAAKC,KAAS,EAAA,eAAA,CACZD,IAAKE,CAAAA,MAAAA,CAElBF,IAAAA,CAAKC,KACHU,CAAAA,CAAI,CAAAG,gBAAA,GAAAA,gBAAA,CAAAD,sBAAA,2DAAyCb,IAAAA,CAAKC,KAClD,EAAA,IAAA,EAIT,CAAA,KAAAO,GAAA,UAAAO,GAAA,CArBM,SAAAA,IAAA,CAAWC,CAChB,MAAO,CAACA,CAAAA,CACT,EAIM,MAvB6BC,CAAAA,GAIRC,EAAA,CAA3BC,CAAAA,CAAS,CAAEC,IAAAA,CAAMC,UAA6BvB,CAAAwB,CAAAA,SAAAA,CAAA,OAAA,CAAA,IAAA,EAAA,CAAA,CAKHJ,EAAA,CAA3CC,CAAAA,CAAS,CAAEC,IAAMG,CAAAA,OAAAA,CAASC,SAAS,CAAgC1B,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAwB,SAAA,CAAA,QAAA,CAAA,IAAA,IACzBJ,CAAA,CAAA,CAA1CC,EAAS,CAAEC,IAAAA,CAAMG,QAASC,OAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAuB1B,CAAAwB,CAAAA,SAAAA,CAAA,cAAA,EAVhDxB,CAAAA,CAAAA,OAAAA,KAAAA,CAAAA,CAAgBoB,EAAA,CAD5BO,CAAAA,CAAc,wBACF3B"}
|
|
1
|
+
{"version":3,"file":"nile-side-bar-group.cjs.js","sources":["../../../src/nile-side-bar-group/nile-side-bar-group.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { LitElement, html, CSSResultArray, TemplateResult } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-side-bar-group.css';\nimport NileElement from '../internal/nile-element';\n\nconst GROUP_TAG = 'nile-side-bar-group';\nconst CONTAINER_SELECTOR = 'nile-side-bar, nile-app-shell-side-nav';\n\n/**\n * Nile side-bar-group component.\n *\n * A logical grouping of sidebar items, optionally with a label and/or footer placement.\n *\n * `label` (heading) and `divider` (separator line) are independent, so all four combinations work:\n *\n * ```html\n * <nile-side-bar-group label=\"PAGES\">…</nile-side-bar-group> <!-- heading only -->\n * <nile-side-bar-group divider>…</nile-side-bar-group> <!-- divider only -->\n * <nile-side-bar-group label=\"ACTIONS\" divider>…</nile-side-bar-group> <!-- heading + divider -->\n * <nile-side-bar-group>…</nile-side-bar-group> <!-- neither -->\n * ```\n *\n * @tag nile-side-bar-group\n *\n * @slot - Default slot for group items (nile-side-bar-group-item)\n * @csspart base - The group container\n * @csspart label - The group label element\n */\n@customElement('nile-side-bar-group')\nexport class NileSideBarGroup extends NileElement {\n /**\n * Optional label for the group.\n */\n @property({ type: String }) label: string = '';\n\n /**\n * Marks this group as footer (sticks to bottom of sidebar).\n */\n @property({ type: Boolean, reflect: true }) footer: boolean = false;\n\n /**\n * Adds a decorative separator line before this group. Independent of `label`: with both, the line\n * sits before the heading (never between the heading and its items) and replaces the heading's\n * 16px gap. It is suppressed for the first visible group of its sidebar (a group, or a wrapper around\n * it, with `hidden` is skipped; hiding by CSS is not detected), so it only ever separates groups, and it stays visible, aligned with the items, when the sidebar is collapsed.\n */\n @property({ type: Boolean, reflect: true }) divider: boolean = false;\n\n private siblingObserver?: MutationObserver;\n\n\n /**\n * The styles for nile-side-bar-group\n * @remarks Extendable via super if needed\n */\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n /* #region Leading group */\n\n /**\n * CSS cannot see \"no visible group before me\" (`:first-of-type` ignores `hidden` siblings and\n * cannot look through wrapper elements), so each group marks itself `data-leading` when it is the\n * first visible group in its sidebar. The divider and the heading gap, both of which only belong\n * between groups, key off that.\n *\n * \"First\" is document order within the nearest `nile-side-bar` / `nile-app-shell-side-nav`, so\n * groups may sit directly in it or inside wrapper elements. A group is visible unless it or an\n * ancestor below that container has `hidden`; hiding by CSS (`display: none`, a class) is not\n * detected. Groups of a nested container belong to that container, not this one. A group outside\n * any container falls back to its parent element.\n */\n private static containerOf(el: Element): Element | null {\n return el.closest(CONTAINER_SELECTOR) ?? el.parentElement;\n }\n\n private static isVisibleIn(el: Element, container: Element): boolean {\n for (let e: Element | null = el; e && e !== container; e = e.parentElement) {\n if (e.hasAttribute('hidden')) return false;\n }\n return true;\n }\n\n private updateLeading = (): void => {\n const container = NileSideBarGroup.containerOf(this);\n const first = container\n ? [...container.querySelectorAll(GROUP_TAG)].find(\n g =>\n NileSideBarGroup.containerOf(g) === container &&\n NileSideBarGroup.isVisibleIn(g, container)\n )\n : this;\n this.toggleAttribute('data-leading', first === this);\n };\n\n /** Only changes that can move the first visible group: a group or a wrapper of groups added, removed or hidden. */\n private static affectsGroups(node: Node): boolean {\n return node instanceof Element && (node.localName === GROUP_TAG || node.querySelector(GROUP_TAG) !== null);\n }\n\n public connectedCallback(): void {\n super.connectedCallback();\n this.updateLeading();\n const container = NileSideBarGroup.containerOf(this);\n if (container) {\n const fallback = !container.matches(CONTAINER_SELECTOR); // no sidebar ancestor: the parent element is the scope\n // `hidden` on a sibling or wrapper is an attribute mutation on that element, so this watches the\n // subtree; the callback drops everything that cannot change the answer (item edits, `hidden` on\n // an item, anything inside a nested container).\n this.siblingObserver = new MutationObserver(records => {\n const relevant = records.some(r => {\n if (r.target instanceof Element && !fallback && r.target.closest(CONTAINER_SELECTOR) !== container) return false;\n return r.type === 'childList'\n ? [...r.addedNodes, ...r.removedNodes].some(NileSideBarGroup.affectsGroups)\n : NileSideBarGroup.affectsGroups(r.target);\n });\n if (relevant) this.updateLeading();\n });\n this.siblingObserver.observe(container, {\n childList: true,\n subtree: true,\n attributes: true,\n attributeFilter: ['hidden'],\n });\n }\n }\n\n public disconnectedCallback(): void {\n this.siblingObserver?.disconnect();\n this.siblingObserver = undefined;\n super.disconnectedCallback();\n }\n\n /* #endregion */\n\n /* #region Render */\n\n public render(): TemplateResult {\n return html`\n <section\n part=\"base\"\n class=\"side-bar-group${this.label ? ' has-label' : ''}\"\n role=\"list\"\n aria-label=${this.label || 'Sidebar group'}\n ?data-footer=${this.footer}\n >\n ${this.label\n ? html`<div part=\"label\" class=\"group-label\">${this.label}</div>`\n : null}\n <slot></slot>\n </section>\n `;\n }\n\n /* #endregion */\n}\n\nexport default NileSideBarGroup;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-side-bar-group': NileSideBarGroup;\n }\n}\n"],"names":["GROUP_TAG","CONTAINER_SELECTOR","_export","NileSideBarGroup","NileSideBarGroup_1","_a","l","constructor","this","label","footer","divider","updateLeading","container","containerOf","first","_toConsumableArray","querySelectorAll","find","g","isVisibleIn","toggleAttribute","_this","_inherits","_createClass","key","value","connectedCallback","super","fallback","matches","siblingObserver","MutationObserver","records","some","r","target","Element","closest","type","concat","addedNodes","removedNodes","affectsGroups","observe","childList","subtree","attributes","attributeFilter","disconnectedCallback","disconnect","undefined","render","html","_templateObject","_taggedTemplateLiteral","_templateObject2","get","styles","el","_t$closest","parentElement","e","hasAttribute","node","localName","querySelector","NileElement","__decorate","property","String","prototype","Boolean","reflect","customElement"],"mappings":"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"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["lit"],function(_export,_context){"use strict";var
|
|
1
|
+
System.register(["lit"],function(_export,_context){"use strict";var e,_templateObject,n;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){e=_lit.css;}],execute:function execute(){_export("s",n=e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host {\n display: flex;\n flex-direction: column;\n /* NxtGen: no bottom padding; enterprise keeps 4px. */\n padding-bottom: var(--nile-spacing-xs, var(--ng-spacing-none));\n padding-left: var(--nile-spacing-xl, var(--ng-spacing-xl));\n padding-right: var(--nile-spacing-xl, var(--ng-spacing-xl));\n }\n\n\n /* A group with hidden is gone from layout and the accessibility tree; display: flex above would otherwise override it. */\n :host([hidden]) {\n display: none;\n }\n\n :host([footer]) {\n margin-top: auto;\n margin-bottom: var(--nile-spacing-md);\n }\n\n /* Text xs/Semibold, text-disabled \u2014 content is already literal uppercase, no text-transform forced. */\n .group-label {\n font-size: var(--nile-type-scale-2, var(--ng-font-size-text-xs));\n line-height: var(--nile-line-height-xsmall, var(--ng-line-height-text-xs));\n font-weight: var(--nile-font-weight-semibold, var(--ng-font-weight-semibold));\n letter-spacing: normal;\n color: var(--nile-colors-dark-500, var(--ng-colors-text-disabled));\n padding-right: var(--nile-spacing-none, var(--ng-spacing-2xl));\n margin-bottom: var(--nile-spacing-xs, var(--ng-spacing-xs));\n }\n /* NxtGen: 13px divider block (6px + 1px line + 6px); enterprise keeps its own 8px inset.\n Decorative: generated, outside the list section, not focusable. */\n :host([divider])::before {\n content: \"\";\n display: block;\n height: 1px;\n background: var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));\n margin-left: var(--nile-spacing-md, var(--ng-spacing-none));\n margin-right: var(--nile-spacing-md, var(--ng-spacing-none));\n margin-top: var(--nile-spacing-none, var(--ng-spacing-sm));\n margin-bottom: var(--nile-spacing-none, var(--ng-spacing-sm));\n}\n\n/* A divider only separates groups: none before the first visible group (data-leading, set by the component). */\n:host([divider][data-leading])::before {\n display: none;\n}\n \n.side-bar-group {\n display: flex;\n flex-direction: column;\n /* NxtGen: items stack edge to edge; enterprise keeps 4px. */\n gap: var(--nile-spacing-xs, var(--ng-spacing-none));\n}\n\n/*\n * Grouped sidebar (headings, no dividers): 16px between groups, via spacing-xl rather than\n * Figma's own ng/radius/7 binding (a radius token, read as an authoring slip). The gap is the top\n * padding of every labeled group except the first visible one, so it only ever sits between groups: the\n * last group adds no trailing space (Figma's 418px grouped menu), and a group added later just gets its\n * own gap. A group with a divider takes its separation from the divider block instead (13px), so the two\n * never stack. :has() is avoided on purpose, since :host(:has(...)) never matches.\n */\n:host(:not([data-leading]):not([divider])) .side-bar-group.has-label {\n padding-top: var(--nile-spacing-none, var(--ng-spacing-xl));\n}\n\n:host ::slotted(nile-side-bar-group-item:first-child) {\n margin-top: var(--nile-spacing-xs, var(--ng-spacing-none));\n}\n\n:host([collapsed]) .side-bar-group {\nalign-items: center;\njustify-content: center;\n}\n\n/* Collapsed: the heading has nowhere to go in a 72px rail, so it is hidden. The 16px gap between\n groups above is deliberately kept (no divider, no extra item padding), so groups stay distinct;\n an unlabeled (divider-based) collapsed sidebar has no .has-label match and is unchanged. */\n:host([collapsed]) .group-label {\n display: none;\n}\n\n/* Enterprise keeps the 4px collapsed bottom padding it has always had; NxtGen resolves this to 0 and relies on the 16px gap above. */\n:host([collapsed]) .side-bar-group.has-label {\n padding-bottom: var(--nile-spacing-xs, var(--ng-spacing-none));\n}\n"]))));}};});
|
|
2
2
|
//# sourceMappingURL=nile-side-bar-group.css.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nile-side-bar-group.css.cjs.js","sources":["../../../src/nile-side-bar-group/nile-side-bar-group.css.ts"],"sourcesContent":["import { css } from 'lit';\n\n/**\n * SideBarGroup CSS\n */\nexport const styles = css`\n :host {\n display: flex;\n flex-direction: column;\n padding-bottom: var(--nile-spacing-xs, var(--ng-spacing-
|
|
1
|
+
{"version":3,"file":"nile-side-bar-group.css.cjs.js","sources":["../../../src/nile-side-bar-group/nile-side-bar-group.css.ts"],"sourcesContent":["import { css } from 'lit';\n\n/**\n * SideBarGroup CSS\n */\nexport const styles = css`\n :host {\n display: flex;\n flex-direction: column;\n /* NxtGen: no bottom padding; enterprise keeps 4px. */\n padding-bottom: var(--nile-spacing-xs, var(--ng-spacing-none));\n padding-left: var(--nile-spacing-xl, var(--ng-spacing-xl));\n padding-right: var(--nile-spacing-xl, var(--ng-spacing-xl));\n }\n\n\n /* A group with hidden is gone from layout and the accessibility tree; display: flex above would otherwise override it. */\n :host([hidden]) {\n display: none;\n }\n\n :host([footer]) {\n margin-top: auto;\n margin-bottom: var(--nile-spacing-md);\n }\n\n /* Text xs/Semibold, text-disabled — content is already literal uppercase, no text-transform forced. */\n .group-label {\n font-size: var(--nile-type-scale-2, var(--ng-font-size-text-xs));\n line-height: var(--nile-line-height-xsmall, var(--ng-line-height-text-xs));\n font-weight: var(--nile-font-weight-semibold, var(--ng-font-weight-semibold));\n letter-spacing: normal;\n color: var(--nile-colors-dark-500, var(--ng-colors-text-disabled));\n padding-right: var(--nile-spacing-none, var(--ng-spacing-2xl));\n margin-bottom: var(--nile-spacing-xs, var(--ng-spacing-xs));\n }\n /* NxtGen: 13px divider block (6px + 1px line + 6px); enterprise keeps its own 8px inset.\n Decorative: generated, outside the list section, not focusable. */\n :host([divider])::before {\n content: \"\";\n display: block;\n height: 1px;\n background: var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));\n margin-left: var(--nile-spacing-md, var(--ng-spacing-none));\n margin-right: var(--nile-spacing-md, var(--ng-spacing-none));\n margin-top: var(--nile-spacing-none, var(--ng-spacing-sm));\n margin-bottom: var(--nile-spacing-none, var(--ng-spacing-sm));\n}\n\n/* A divider only separates groups: none before the first visible group (data-leading, set by the component). */\n:host([divider][data-leading])::before {\n display: none;\n}\n \n.side-bar-group {\n display: flex;\n flex-direction: column;\n /* NxtGen: items stack edge to edge; enterprise keeps 4px. */\n gap: var(--nile-spacing-xs, var(--ng-spacing-none));\n}\n\n/*\n * Grouped sidebar (headings, no dividers): 16px between groups, via spacing-xl rather than\n * Figma's own ng/radius/7 binding (a radius token, read as an authoring slip). The gap is the top\n * padding of every labeled group except the first visible one, so it only ever sits between groups: the\n * last group adds no trailing space (Figma's 418px grouped menu), and a group added later just gets its\n * own gap. A group with a divider takes its separation from the divider block instead (13px), so the two\n * never stack. :has() is avoided on purpose, since :host(:has(...)) never matches.\n */\n:host(:not([data-leading]):not([divider])) .side-bar-group.has-label {\n padding-top: var(--nile-spacing-none, var(--ng-spacing-xl));\n}\n\n:host ::slotted(nile-side-bar-group-item:first-child) {\n margin-top: var(--nile-spacing-xs, var(--ng-spacing-none));\n}\n\n:host([collapsed]) .side-bar-group {\nalign-items: center;\njustify-content: center;\n}\n\n/* Collapsed: the heading has nowhere to go in a 72px rail, so it is hidden. The 16px gap between\n groups above is deliberately kept (no divider, no extra item padding), so groups stay distinct;\n an unlabeled (divider-based) collapsed sidebar has no .has-label match and is unchanged. */\n:host([collapsed]) .group-label {\n display: none;\n}\n\n/* Enterprise keeps the 4px collapsed bottom padding it has always had; NxtGen resolves this to 0 and relies on the 16px gap above. */\n:host([collapsed]) .side-bar-group.has-label {\n padding-bottom: var(--nile-spacing-xs, var(--ng-spacing-none));\n}\n`;\n\nexport default [styles];\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAKaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
|
|
@@ -1,46 +1,89 @@
|
|
|
1
|
-
import{css as
|
|
1
|
+
import{css as e}from"lit";const n=e`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
|
-
|
|
5
|
+
/* NxtGen: no bottom padding; enterprise keeps 4px. */
|
|
6
|
+
padding-bottom: var(--nile-spacing-xs, var(--ng-spacing-none));
|
|
6
7
|
padding-left: var(--nile-spacing-xl, var(--ng-spacing-xl));
|
|
7
8
|
padding-right: var(--nile-spacing-xl, var(--ng-spacing-xl));
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
|
|
12
|
+
/* A group with hidden is gone from layout and the accessibility tree; display: flex above would otherwise override it. */
|
|
13
|
+
:host([hidden]) {
|
|
14
|
+
display: none;
|
|
15
|
+
}
|
|
16
|
+
|
|
11
17
|
:host([footer]) {
|
|
12
18
|
margin-top: auto;
|
|
13
19
|
margin-bottom: var(--nile-spacing-md);
|
|
14
20
|
}
|
|
15
21
|
|
|
22
|
+
/* Text xs/Semibold, text-disabled — content is already literal uppercase, no text-transform forced. */
|
|
16
23
|
.group-label {
|
|
24
|
+
font-size: var(--nile-type-scale-2, var(--ng-font-size-text-xs));
|
|
25
|
+
line-height: var(--nile-line-height-xsmall, var(--ng-line-height-text-xs));
|
|
17
26
|
font-weight: var(--nile-font-weight-semibold, var(--ng-font-weight-semibold));
|
|
18
|
-
|
|
19
|
-
|
|
27
|
+
letter-spacing: normal;
|
|
28
|
+
color: var(--nile-colors-dark-500, var(--ng-colors-text-disabled));
|
|
29
|
+
padding-right: var(--nile-spacing-none, var(--ng-spacing-2xl));
|
|
20
30
|
margin-bottom: var(--nile-spacing-xs, var(--ng-spacing-xs));
|
|
21
31
|
}
|
|
32
|
+
/* NxtGen: 13px divider block (6px + 1px line + 6px); enterprise keeps its own 8px inset.
|
|
33
|
+
Decorative: generated, outside the list section, not focusable. */
|
|
22
34
|
:host([divider])::before {
|
|
23
35
|
content: "";
|
|
24
36
|
display: block;
|
|
25
37
|
height: 1px;
|
|
26
38
|
background: var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));
|
|
27
|
-
margin-left: var(--nile-spacing-md, var(--ng-spacing-
|
|
28
|
-
margin-right: var(--nile-spacing-md, var(--ng-spacing-
|
|
39
|
+
margin-left: var(--nile-spacing-md, var(--ng-spacing-none));
|
|
40
|
+
margin-right: var(--nile-spacing-md, var(--ng-spacing-none));
|
|
41
|
+
margin-top: var(--nile-spacing-none, var(--ng-spacing-sm));
|
|
42
|
+
margin-bottom: var(--nile-spacing-none, var(--ng-spacing-sm));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* A divider only separates groups: none before the first visible group (data-leading, set by the component). */
|
|
46
|
+
:host([divider][data-leading])::before {
|
|
47
|
+
display: none;
|
|
29
48
|
}
|
|
30
49
|
|
|
31
50
|
.side-bar-group {
|
|
32
51
|
display: flex;
|
|
33
52
|
flex-direction: column;
|
|
34
|
-
|
|
53
|
+
/* NxtGen: items stack edge to edge; enterprise keeps 4px. */
|
|
54
|
+
gap: var(--nile-spacing-xs, var(--ng-spacing-none));
|
|
35
55
|
}
|
|
36
56
|
|
|
57
|
+
/*
|
|
58
|
+
* Grouped sidebar (headings, no dividers): 16px between groups, via spacing-xl rather than
|
|
59
|
+
* Figma's own ng/radius/7 binding (a radius token, read as an authoring slip). The gap is the top
|
|
60
|
+
* padding of every labeled group except the first visible one, so it only ever sits between groups: the
|
|
61
|
+
* last group adds no trailing space (Figma's 418px grouped menu), and a group added later just gets its
|
|
62
|
+
* own gap. A group with a divider takes its separation from the divider block instead (13px), so the two
|
|
63
|
+
* never stack. :has() is avoided on purpose, since :host(:has(...)) never matches.
|
|
64
|
+
*/
|
|
65
|
+
:host(:not([data-leading]):not([divider])) .side-bar-group.has-label {
|
|
66
|
+
padding-top: var(--nile-spacing-none, var(--ng-spacing-xl));
|
|
67
|
+
}
|
|
37
68
|
|
|
38
69
|
:host ::slotted(nile-side-bar-group-item:first-child) {
|
|
39
|
-
margin-top: var(--nile-spacing-xs, var(--ng-spacing-
|
|
70
|
+
margin-top: var(--nile-spacing-xs, var(--ng-spacing-none));
|
|
40
71
|
}
|
|
41
72
|
|
|
42
73
|
:host([collapsed]) .side-bar-group {
|
|
43
74
|
align-items: center;
|
|
44
75
|
justify-content: center;
|
|
45
76
|
}
|
|
46
|
-
|
|
77
|
+
|
|
78
|
+
/* Collapsed: the heading has nowhere to go in a 72px rail, so it is hidden. The 16px gap between
|
|
79
|
+
groups above is deliberately kept (no divider, no extra item padding), so groups stay distinct;
|
|
80
|
+
an unlabeled (divider-based) collapsed sidebar has no .has-label match and is unchanged. */
|
|
81
|
+
:host([collapsed]) .group-label {
|
|
82
|
+
display: none;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* Enterprise keeps the 4px collapsed bottom padding it has always had; NxtGen resolves this to 0 and relies on the 16px gap above. */
|
|
86
|
+
:host([collapsed]) .side-bar-group.has-label {
|
|
87
|
+
padding-bottom: var(--nile-spacing-xs, var(--ng-spacing-none));
|
|
88
|
+
}
|
|
89
|
+
`;export{n as s};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import{__decorate as
|
|
1
|
+
import{__decorate as t}from"tslib";import{html as e}from"lit";import{property as i,customElement as s}from"lit/decorators.js";import{s as r}from"./nile-side-bar-group.css.esm.js";import{N as a}from"../internal/nile-element.esm.js";import"../internal/accessibility/a11y.state.enum.esm.js";import"../internal/accessibility/a11y.property.enum.esm.js";import"../internal/accessibility/role.enum.esm.js";var l;const n="nile-side-bar-group",o="nile-side-bar, nile-app-shell-side-nav";let c=l=class extends a{constructor(){super(...arguments),this.label="",this.footer=!1,this.divider=!1,this.updateLeading=()=>{const t=l.containerOf(this),e=t?[...t.querySelectorAll(n)].find((e=>l.containerOf(e)===t&&l.isVisibleIn(e,t))):this;this.toggleAttribute("data-leading",e===this)}}static get styles(){return[r]}static containerOf(t){return t.closest(o)??t.parentElement}static isVisibleIn(t,e){for(let i=t;i&&i!==e;i=i.parentElement)if(i.hasAttribute("hidden"))return!1;return!0}static affectsGroups(t){return t instanceof Element&&(t.localName===n||null!==t.querySelector(n))}connectedCallback(){super.connectedCallback(),this.updateLeading();const t=l.containerOf(this);if(t){const e=!t.matches(o);this.siblingObserver=new MutationObserver((i=>{i.some((i=>!(i.target instanceof Element&&!e&&i.target.closest(o)!==t)&&("childList"===i.type?[...i.addedNodes,...i.removedNodes].some(l.affectsGroups):l.affectsGroups(i.target))))&&this.updateLeading()})),this.siblingObserver.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["hidden"]})}}disconnectedCallback(){this.siblingObserver?.disconnect(),this.siblingObserver=void 0,super.disconnectedCallback()}render(){return e`
|
|
2
2
|
<section
|
|
3
3
|
part="base"
|
|
4
|
-
class="side-bar-group"
|
|
4
|
+
class="side-bar-group${this.label?" has-label":""}"
|
|
5
5
|
role="list"
|
|
6
6
|
aria-label=${this.label||"Sidebar group"}
|
|
7
7
|
?data-footer=${this.footer}
|
|
8
8
|
>
|
|
9
|
-
${this.label?
|
|
9
|
+
${this.label?e`<div part="label" class="group-label">${this.label}</div>`:null}
|
|
10
10
|
<slot></slot>
|
|
11
11
|
</section>
|
|
12
|
-
`}};
|
|
12
|
+
`}};t([i({type:String})],c.prototype,"label",void 0),t([i({type:Boolean,reflect:!0})],c.prototype,"footer",void 0),t([i({type:Boolean,reflect:!0})],c.prototype,"divider",void 0),c=l=t([s("nile-side-bar-group")],c);export{c as N};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["lit"],function(_export,_context){"use strict";var
|
|
1
|
+
System.register(["lit"],function(_export,_context){"use strict";var e,_templateObject,r;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){e=_lit.css;}],execute:function execute(){_export("s",r=e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host {\n display: block;\n }\n\n /* NxtGen: a 40px item with 2px block padding so the row inside is 36px; enterprise keeps 208 x 38. */\n .group-item {\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n height: var(--nile-height-38px, var(--ng-spacing-40px));\n width: 100%;\n padding-top: var(--nile-spacing-none, var(--ng-spacing-xxs));\n padding-bottom: var(--nile-spacing-none, var(--ng-spacing-xxs));\n overflow: hidden;\n }\n\n .item-link {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: flex-start;\n height: 100%;\n width: 100%;\n padding-top: var(--nile-spacing-lg, var(--ng-spacing-md));\n padding-bottom: var(--nile-spacing-lg, var(--ng-spacing-md));\n padding-left: var(--nile-spacing-md, var(--ng-spacing-lg));\n padding-right: var(--nile-spacing-md, var(--ng-spacing-lg));\n cursor: pointer;\n color: var(--nile-colors-dark-900, var(--ng-colors-graylightmode-900));\n text-decoration: none;\n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-md));\n line-height: 1.4;\n box-sizing: border-box;\n font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-semibold));\n /* The same 8px radius in every state (rest, hover, selected, focus ring), not only once hovered or selected. */\n border-radius: var(--nile-radius-sm, var(--ng-radius-md));\n }\n\n /* Default: text-secondary-700; the icon is fg-quaternary-400 (set on the nile-icon by nile-side-bar-group-item-icon). */\n ::slotted(nile-side-bar-group-item-text) {\n color: var(--nile-colors-dark-900, var(--ng-colors-text-secondary-700));\n }\n\n .item-link:hover {\n background: var(--nile-colors-neutral-400, var(--ng-colors-bg-secondary-subtle));\n border-radius: var(--nile-radius-sm, var(--ng-radius-md));\n }\n\n /* Hover: text-tertiary-hover label and fg-tertiary-hover icon. A selected item keeps its selected colours, so it is excluded from the icon rule. */\n .item-link:hover ::slotted(nile-side-bar-group-item-text) {\n color: var(--nile-colors-dark-800, var(--ng-colors-text-tertiary-hover));\n }\n\n :host(:not([active])) .item-link:hover ::slotted(nile-side-bar-group-item-icon) {\n color: var(--nile-colors-dark-900, var(--ng-colors-fg-tertiary-hover));\n }\n\n /* The icon is drawn in its own colour: fg-quaternary-400 by default, recoloured by the hover and selected rules above and below. */\n ::slotted(nile-side-bar-group-item-icon) {\n flex-shrink: 0;\n color: var(--nile-colors-dark-900, var(--ng-colors-fg-quaternary-400));\n }\n\n ::slotted(nile-side-bar-group-item-text) {\n flex-grow: 1;\n }\n\n /* Every selected item shows the same background/text/icon regardless of hover/focus state. */\n :host([active]) [part=\"link\"] {\n background: var(--nile-colors-primary-100, var(--ng-colors-bg-primary));\n border-radius: var(--nile-radius-sm, var(--ng-radius-md));\n }\n\n :host([active]) ::slotted(nile-side-bar-group-item-text) {\n color: var(--nile-colors-dark-900, var(--ng-colors-text-brand-secondary-700));\n }\n\n :host([active]) ::slotted(nile-side-bar-group-item-icon) {\n color: var(--ng-colors-fg-brand-primary-600);\n }\n\n /* Focus-visible adds only the ring, independent of selection -- a safe no-op on enterprise. */\n .item-link:focus-visible {\n outline: none;\n box-shadow: inset 0 0 0 var(--ng-border-width-2) var(--ng-colors-effects-focus-ring);\n }\n\n /* Collapsed: 40 x 40 (38 x 38 on enterprise), clipped. */\n :host([collapsed]) .group-item {\n height: var(--nile-height-38px, var(--ng-spacing-40px));\n width: var(--nile-width-38px, var(--ng-spacing-40px));\n }\n\n /* Collapsed NxtGen: the 12px side padding left the icon 2px right of the 40px item's centre (x=38 in a 72px rail). Zero it: the icon box then spans the item and centres its glyph at x=36, with the clipped label starting after it. Enterprise keeps its own padding. */\n :host([collapsed]) .item-link {\n padding-left: var(--nile-spacing-md, var(--ng-spacing-none));\n padding-right: var(--nile-spacing-md, var(--ng-spacing-none));\n }\n\n :host([disabled]) .item-link {\n opacity: 0.5;\n pointer-events: none;\n cursor: not-allowed;\n }\n"]))));}};});
|
|
2
2
|
//# sourceMappingURL=nile-side-bar-group-item.css.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nile-side-bar-group-item.css.cjs.js","sources":["../../../src/nile-side-bar-group-item/nile-side-bar-group-item.css.ts"],"sourcesContent":["/**\n* Copyright Aquera Inc 2023\n*\n* This source code is licensed under the BSD-3-Clause license found in the\n* LICENSE file in the root directory of this source tree.\n*/\n\nimport {css} from 'lit';\n\n/**\n * SideBarGroupItem CSS\n */\nexport const styles = css`\n :host {\n display: block;\n }\n\n .group-item {\n display: flex;\n flex-direction: column;\n height: var(--nile-height-38px, var(--ng-spacing-40px));\n width: var(--nile-
|
|
1
|
+
{"version":3,"file":"nile-side-bar-group-item.css.cjs.js","sources":["../../../src/nile-side-bar-group-item/nile-side-bar-group-item.css.ts"],"sourcesContent":["/**\n* Copyright Aquera Inc 2023\n*\n* This source code is licensed under the BSD-3-Clause license found in the\n* LICENSE file in the root directory of this source tree.\n*/\n\nimport {css} from 'lit';\n\n/**\n * SideBarGroupItem CSS\n */\nexport const styles = css`\n :host {\n display: block;\n }\n\n /* NxtGen: a 40px item with 2px block padding so the row inside is 36px; enterprise keeps 208 x 38. */\n .group-item {\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n height: var(--nile-height-38px, var(--ng-spacing-40px));\n width: 100%;\n padding-top: var(--nile-spacing-none, var(--ng-spacing-xxs));\n padding-bottom: var(--nile-spacing-none, var(--ng-spacing-xxs));\n overflow: hidden;\n }\n\n .item-link {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: flex-start;\n height: 100%;\n width: 100%;\n padding-top: var(--nile-spacing-lg, var(--ng-spacing-md));\n padding-bottom: var(--nile-spacing-lg, var(--ng-spacing-md));\n padding-left: var(--nile-spacing-md, var(--ng-spacing-lg));\n padding-right: var(--nile-spacing-md, var(--ng-spacing-lg));\n cursor: pointer;\n color: var(--nile-colors-dark-900, var(--ng-colors-graylightmode-900));\n text-decoration: none;\n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-md));\n line-height: 1.4;\n box-sizing: border-box;\n font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-semibold));\n /* The same 8px radius in every state (rest, hover, selected, focus ring), not only once hovered or selected. */\n border-radius: var(--nile-radius-sm, var(--ng-radius-md));\n }\n\n /* Default: text-secondary-700; the icon is fg-quaternary-400 (set on the nile-icon by nile-side-bar-group-item-icon). */\n ::slotted(nile-side-bar-group-item-text) {\n color: var(--nile-colors-dark-900, var(--ng-colors-text-secondary-700));\n }\n\n .item-link:hover {\n background: var(--nile-colors-neutral-400, var(--ng-colors-bg-secondary-subtle));\n border-radius: var(--nile-radius-sm, var(--ng-radius-md));\n }\n\n /* Hover: text-tertiary-hover label and fg-tertiary-hover icon. A selected item keeps its selected colours, so it is excluded from the icon rule. */\n .item-link:hover ::slotted(nile-side-bar-group-item-text) {\n color: var(--nile-colors-dark-800, var(--ng-colors-text-tertiary-hover));\n }\n\n :host(:not([active])) .item-link:hover ::slotted(nile-side-bar-group-item-icon) {\n color: var(--nile-colors-dark-900, var(--ng-colors-fg-tertiary-hover));\n }\n\n /* The icon is drawn in its own colour: fg-quaternary-400 by default, recoloured by the hover and selected rules above and below. */\n ::slotted(nile-side-bar-group-item-icon) {\n flex-shrink: 0;\n color: var(--nile-colors-dark-900, var(--ng-colors-fg-quaternary-400));\n }\n\n ::slotted(nile-side-bar-group-item-text) {\n flex-grow: 1;\n }\n\n /* Every selected item shows the same background/text/icon regardless of hover/focus state. */\n :host([active]) [part=\"link\"] {\n background: var(--nile-colors-primary-100, var(--ng-colors-bg-primary));\n border-radius: var(--nile-radius-sm, var(--ng-radius-md));\n }\n\n :host([active]) ::slotted(nile-side-bar-group-item-text) {\n color: var(--nile-colors-dark-900, var(--ng-colors-text-brand-secondary-700));\n }\n\n :host([active]) ::slotted(nile-side-bar-group-item-icon) {\n color: var(--ng-colors-fg-brand-primary-600);\n }\n\n /* Focus-visible adds only the ring, independent of selection -- a safe no-op on enterprise. */\n .item-link:focus-visible {\n outline: none;\n box-shadow: inset 0 0 0 var(--ng-border-width-2) var(--ng-colors-effects-focus-ring);\n }\n\n /* Collapsed: 40 x 40 (38 x 38 on enterprise), clipped. */\n :host([collapsed]) .group-item {\n height: var(--nile-height-38px, var(--ng-spacing-40px));\n width: var(--nile-width-38px, var(--ng-spacing-40px));\n }\n\n /* Collapsed NxtGen: the 12px side padding left the icon 2px right of the 40px item's centre (x=38 in a 72px rail). Zero it: the icon box then spans the item and centres its glyph at x=36, with the clipped label starting after it. Enterprise keeps its own padding. */\n :host([collapsed]) .item-link {\n padding-left: var(--nile-spacing-md, var(--ng-spacing-none));\n padding-right: var(--nile-spacing-md, var(--ng-spacing-none));\n }\n\n :host([disabled]) .item-link {\n opacity: 0.5;\n pointer-events: none;\n cursor: not-allowed;\n }\n`;\n\nexport default [styles];\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAYaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
|
|
@@ -1,17 +1,22 @@
|
|
|
1
|
-
import{css as
|
|
1
|
+
import{css as e}from"lit";const r=e`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
+
/* NxtGen: a 40px item with 2px block padding so the row inside is 36px; enterprise keeps 208 x 38. */
|
|
6
7
|
.group-item {
|
|
7
8
|
display: flex;
|
|
8
9
|
flex-direction: column;
|
|
10
|
+
box-sizing: border-box;
|
|
9
11
|
height: var(--nile-height-38px, var(--ng-spacing-40px));
|
|
10
|
-
width:
|
|
12
|
+
width: 100%;
|
|
13
|
+
padding-top: var(--nile-spacing-none, var(--ng-spacing-xxs));
|
|
14
|
+
padding-bottom: var(--nile-spacing-none, var(--ng-spacing-xxs));
|
|
11
15
|
overflow: hidden;
|
|
12
16
|
}
|
|
13
17
|
|
|
14
18
|
.item-link {
|
|
19
|
+
position: relative;
|
|
15
20
|
display: flex;
|
|
16
21
|
align-items: center;
|
|
17
22
|
justify-content: flex-start;
|
|
@@ -28,29 +33,69 @@ import{css as i}from"lit";const r=i`
|
|
|
28
33
|
line-height: 1.4;
|
|
29
34
|
box-sizing: border-box;
|
|
30
35
|
font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-semibold));
|
|
36
|
+
/* The same 8px radius in every state (rest, hover, selected, focus ring), not only once hovered or selected. */
|
|
37
|
+
border-radius: var(--nile-radius-sm, var(--ng-radius-md));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* Default: text-secondary-700; the icon is fg-quaternary-400 (set on the nile-icon by nile-side-bar-group-item-icon). */
|
|
41
|
+
::slotted(nile-side-bar-group-item-text) {
|
|
42
|
+
color: var(--nile-colors-dark-900, var(--ng-colors-text-secondary-700));
|
|
31
43
|
}
|
|
32
44
|
|
|
33
45
|
.item-link:hover {
|
|
34
|
-
background: var(--nile-colors-neutral-400, var(--ng-colors-bg-
|
|
35
|
-
border-radius: var(--nile-radius-sm, var(--ng-radius-
|
|
46
|
+
background: var(--nile-colors-neutral-400, var(--ng-colors-bg-secondary-subtle));
|
|
47
|
+
border-radius: var(--nile-radius-sm, var(--ng-radius-md));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* Hover: text-tertiary-hover label and fg-tertiary-hover icon. A selected item keeps its selected colours, so it is excluded from the icon rule. */
|
|
51
|
+
.item-link:hover ::slotted(nile-side-bar-group-item-text) {
|
|
52
|
+
color: var(--nile-colors-dark-800, var(--ng-colors-text-tertiary-hover));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
:host(:not([active])) .item-link:hover ::slotted(nile-side-bar-group-item-icon) {
|
|
56
|
+
color: var(--nile-colors-dark-900, var(--ng-colors-fg-tertiary-hover));
|
|
36
57
|
}
|
|
37
58
|
|
|
59
|
+
/* The icon is drawn in its own colour: fg-quaternary-400 by default, recoloured by the hover and selected rules above and below. */
|
|
38
60
|
::slotted(nile-side-bar-group-item-icon) {
|
|
39
61
|
flex-shrink: 0;
|
|
62
|
+
color: var(--nile-colors-dark-900, var(--ng-colors-fg-quaternary-400));
|
|
40
63
|
}
|
|
41
64
|
|
|
42
65
|
::slotted(nile-side-bar-group-item-text) {
|
|
43
66
|
flex-grow: 1;
|
|
44
67
|
}
|
|
45
68
|
|
|
69
|
+
/* Every selected item shows the same background/text/icon regardless of hover/focus state. */
|
|
46
70
|
:host([active]) [part="link"] {
|
|
47
|
-
background: var(--nile-colors-primary-100, var(--ng-colors-bg-
|
|
48
|
-
border-radius: var(--nile-radius-sm, var(--ng-radius-
|
|
71
|
+
background: var(--nile-colors-primary-100, var(--ng-colors-bg-primary));
|
|
72
|
+
border-radius: var(--nile-radius-sm, var(--ng-radius-md));
|
|
49
73
|
}
|
|
50
74
|
|
|
75
|
+
:host([active]) ::slotted(nile-side-bar-group-item-text) {
|
|
76
|
+
color: var(--nile-colors-dark-900, var(--ng-colors-text-brand-secondary-700));
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
:host([active]) ::slotted(nile-side-bar-group-item-icon) {
|
|
80
|
+
color: var(--ng-colors-fg-brand-primary-600);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* Focus-visible adds only the ring, independent of selection -- a safe no-op on enterprise. */
|
|
84
|
+
.item-link:focus-visible {
|
|
85
|
+
outline: none;
|
|
86
|
+
box-shadow: inset 0 0 0 var(--ng-border-width-2) var(--ng-colors-effects-focus-ring);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* Collapsed: 40 x 40 (38 x 38 on enterprise), clipped. */
|
|
51
90
|
:host([collapsed]) .group-item {
|
|
52
|
-
height: 38px;
|
|
53
|
-
width: 38px;
|
|
91
|
+
height: var(--nile-height-38px, var(--ng-spacing-40px));
|
|
92
|
+
width: var(--nile-width-38px, var(--ng-spacing-40px));
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* Collapsed NxtGen: the 12px side padding left the icon 2px right of the 40px item's centre (x=38 in a 72px rail). Zero it: the icon box then spans the item and centres its glyph at x=36, with the clipped label starting after it. Enterprise keeps its own padding. */
|
|
96
|
+
:host([collapsed]) .item-link {
|
|
97
|
+
padding-left: var(--nile-spacing-md, var(--ng-spacing-none));
|
|
98
|
+
padding-right: var(--nile-spacing-md, var(--ng-spacing-none));
|
|
54
99
|
}
|
|
55
100
|
|
|
56
101
|
:host([disabled]) .item-link {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","./nile-side-bar-group-item-icon.css.cjs.js","../internal/nile-element.cjs.js","../internal/accessibility/a11y.state.enum.cjs.js","../internal/accessibility/a11y.property.enum.cjs.js","../internal/accessibility/role.enum.cjs.js"],function(_export,_context){"use strict";var t,i,e,s,o,r,_templateObject,_templateObject2,_templateObject3,_templateObject4,n;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_lit){i=_lit.html;},function(_litDecoratorsJs){e=_litDecoratorsJs.property;s=_litDecoratorsJs.customElement;},function(_nileSideBarGroupItemIconCssCjsJs){o=_nileSideBarGroupItemIconCssCjsJs.s;},function(_internalNileElementCjsJs){r=_internalNileElementCjsJs.N;},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){}],execute:function execute(){_export("N",
|
|
1
|
+
function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","./nile-side-bar-group-item-icon.css.cjs.js","../internal/nile-element.cjs.js","../internal/accessibility/a11y.state.enum.cjs.js","../internal/accessibility/a11y.property.enum.cjs.js","../internal/accessibility/role.enum.cjs.js"],function(_export,_context){"use strict";var t,i,e,s,o,r,_templateObject,_templateObject2,_templateObject3,_templateObject4,l;function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r);}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_lit){i=_lit.html;},function(_litDecoratorsJs){e=_litDecoratorsJs.property;s=_litDecoratorsJs.customElement;},function(_nileSideBarGroupItemIconCssCjsJs){o=_nileSideBarGroupItemIconCssCjsJs.s;},function(_internalNileElementCjsJs){r=_internalNileElementCjsJs.N;},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){}],execute:function execute(){_export("N",l=/*#__PURE__*/function(_r){function l(){var _this;_classCallCheck(this,l);_this=_callSuper(this,l,arguments),_this.icon="",_this.tooltip="",_this.method="fill",_this.size="var(--nile-icon-size-14, var(--ng-height-20px))",_this.enableVisibilityEffect=!1,_this.duration=200;return _this;}_inherits(l,_r);return _createClass(l,[{key:"attributeChangedCallback",value:function attributeChangedCallback(t,i,e){_superPropGet(l,"attributeChangedCallback",this,3)([t,i,e]),"collapsed"===t&&this.requestUpdate();}},{key:"connectedCallback",value:function connectedCallback(){this.hasAttribute("slot")||this.setAttribute("slot","icon"),_superPropGet(l,"connectedCallback",this,3)([]);}},{key:"getSiblingText",value:function getSiblingText(){var _i$textContent$trim,_i$textContent;var t=this.parentElement,i=t===null||t===void 0?void 0:t.querySelector("nile-side-bar-group-item-text");return(_i$textContent$trim=i===null||i===void 0||(_i$textContent=i.textContent)===null||_i$textContent===void 0?void 0:_i$textContent.trim())!==null&&_i$textContent$trim!==void 0?_i$textContent$trim:"";}},{key:"render",value:function render(){var t=this.hasAttribute("collapsed"),e=this.tooltip||this.getSiblingText();return t&&e?i(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\n <slot>\n <nile-lite-tooltip hoist distance=\"18\" content="," placement=\"right\" enableVisibilityEffect="," duration=",">\n ","\n </nile-lite-tooltip>\n </slot>\n\n "])),e,this.enableVisibilityEffect,this.duration,this.icon?i(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-icon size="," color=\"currentColor\" name="," method=","></nile-icon>"])),this.size,this.icon,this.method):null):i(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n <slot>\n ","\n </slot>\n "])),this.icon?i(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-icon size="," color=\"currentColor\" name="," method=","></nile-icon>"])),this.size,this.icon,this.method):null);}}],[{key:"styles",get:function get(){return[o];}},{key:"observedAttributes",get:function get(){return[].concat(_toConsumableArray(_superPropGet(l,"observedAttributes",this)),["collapsed"]);}}]);}(r));t([e({type:String,reflect:!0})],l.prototype,"icon",void 0),t([e({type:String})],l.prototype,"tooltip",void 0),t([e({type:String})],l.prototype,"method",void 0),t([e({type:String})],l.prototype,"size",void 0),t([e({type:Boolean,attribute:!0,reflect:!0})],l.prototype,"enableVisibilityEffect",void 0),t([e({type:Number,attribute:!0,reflect:!0})],l.prototype,"duration",void 0),_export("N",l=t([s("nile-side-bar-group-item-icon")],l));}};});
|
|
2
2
|
//# sourceMappingURL=nile-side-bar-group-item-icon.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nile-side-bar-group-item-icon.cjs.js","sources":["../../../src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html, CSSResultArray, TemplateResult } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-side-bar-group-item-icon.css';\nimport NileElement from '../internal/nile-element';\
|
|
1
|
+
{"version":3,"file":"nile-side-bar-group-item-icon.cjs.js","sources":["../../../src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html, CSSResultArray, TemplateResult } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-side-bar-group-item-icon.css';\nimport NileElement from '../internal/nile-element';\n\n/**\n * Nile side-bar-group-item-icon component.\n *\n * @tag nile-side-bar-group-item-icon\n *\n * @attr icon - The name of the icon to render inside <nile-icon>\n * @attr tooltip - Tooltip text shown when sidebar is collapsed\n *\n * @slot - Optional slot to override the icon completely\n *\n * The icon is drawn in the host's `color`, which nile-side-bar-group-item sets: fg-quaternary-400 by\n * default, fg-tertiary-hover on hover and text-brand-secondary-700 when selected.\n */\n@customElement('nile-side-bar-group-item-icon')\nexport class NileSideBarGroupItemIcon extends NileElement {\n /**\n * Name of the icon (passed to <nile-icon name=\"\">)\n */\n @property({ type: String, reflect: true })\n icon: string = '';\n\n /**\n * Tooltip text (auto-synced from sibling text if available)\n */\n @property({ type: String })\n tooltip: string = '';\n\n @property({ type: String })\n method: string = 'fill';\n\n /** Icon size: 14px on the enterprise sheet, 20px on NxtGen (the App Shell audit's menu icon), resolved by nile-icon from the theme tokens. */\n @property({ type: String })\n size: string = 'var(--nile-icon-size-14, var(--ng-height-20px))';\n\n @property ({type: Boolean, attribute: true, reflect: true}) enableVisibilityEffect: boolean = false;\n\n @property ({type: Number, attribute: true, reflect: true}) duration: number = 200;\n\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n /**\n * The container (nile-side-bar or nile-app-shell-side-nav) sets `[collapsed]` on this element, so\n * the tooltip follows that attribute rather than finding a parent sidebar. It has to re-render\n * when the attribute changes, and it is not a reactive property.\n */\n static get observedAttributes(): string[] {\n return [...super.observedAttributes, 'collapsed'];\n }\n\n attributeChangedCallback(name: string, old: string | null, value: string | null): void {\n super.attributeChangedCallback(name, old, value);\n if (name === 'collapsed') this.requestUpdate();\n }\n\n connectedCallback(): void {\n\tif (!this.hasAttribute('slot')) {\n\t\tthis.setAttribute('slot', 'icon');\n\t }\n super.connectedCallback();\n }\n\n private getSiblingText(): string {\n const parent = this.parentElement;\n const textEl = parent?.querySelector('nile-side-bar-group-item-text');\n return textEl?.textContent?.trim() ?? '';\n }\n\n public render(): TemplateResult {\n const isCollapsed = this.hasAttribute('collapsed');\n const text = this.tooltip || this.getSiblingText();\n\n if (isCollapsed && text) {\n return html`\n\n <slot>\n <nile-lite-tooltip hoist distance=\"18\" content=${text} placement=\"right\" enableVisibilityEffect=${this.enableVisibilityEffect} duration=${this.duration}>\n ${this.icon ? html`<nile-icon size=${this.size} color=\"currentColor\" name=${this.icon} method=${this.method}></nile-icon>` : null}\n </nile-lite-tooltip>\n </slot>\n\n `;\n }\n\n return html`\n <slot>\n ${this.icon ? html`<nile-icon size=${this.size} color=\"currentColor\" name=${this.icon} method=${this.method}></nile-icon>` : null}\n </slot>\n `;\n }\n}\n\nexport default NileSideBarGroupItemIcon;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-side-bar-group-item-icon': NileSideBarGroupItemIcon;\n }\n}\n"],"names":["NileSideBarGroupItemIcon","l","constructor","this","icon","tooltip","method","size","enableVisibilityEffect","duration","_this","_inherits","_r","_createClass","key","value","attributeChangedCallback","name","old","super","requestUpdate","connectedCallback","hasAttribute","setAttribute","getSiblingText","parent","parentElement","textEl","querySelector","_i$textContent$trim","textContent","trim","render","isCollapsed","text","html","_templateObject","_taggedTemplateLiteral","_templateObject2","_templateObject3","_templateObject4","get","styles","observedAttributes","concat","_toConsumableArray","_superPropGet","NileElement","__decorate","property","type","String","reflect","prototype","Boolean","attribute","Number","customElement"],"mappings":"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"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["lit"],function(_export,_context){"use strict";var
|
|
1
|
+
System.register(["lit"],function(_export,_context){"use strict";var n,_templateObject,i;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){n=_lit.css;}],execute:function execute(){_export("s",i=n(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n /* 8px to the label on NxtGen; enterprise keeps 12px. */\n margin-right: var(--nile-spacing-lg, var(--ng-spacing-md));\n color: inherit;\n }\n\n ::slotted(nile-icon) {\n width: 100%;\n height: 100%;\n color: inherit;\n fill: currentColor;\n }\n\n \n /* NxtGen keeps the icon's x when the bar collapses; enterprise centers it in the rail item. */\n :host([collapsed]) {\n margin-right: var(--nile-spacing-none, var(--ng-spacing-md));\n width: 100%; \n min-width: var(--nile-spacing-none, var(--ng-height-20px));\n justify-content: center;\n }\n\n :host([collapsed]) nile-lite-tooltip {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n nile-tooltip::part(body) {\n width: max-content;\n height: max-content;\n padding-top: var(--nile-spacing-xs, var(--ng-spacing-xs));\n padding-bottom: var(--nile-spacing-xs, var(--ng-spacing-xs));\n padding-left: var(--nile-spacing-sm, var(--ng-spacing-sm));\n padding-right: var(--nile-spacing-sm, var(--ng-spacing-sm));\n overflow-x: hidden;\n }\n"]))));}};});
|
|
2
2
|
//# sourceMappingURL=nile-side-bar-group-item-icon.css.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nile-side-bar-group-item-icon.css.cjs.js","sources":["../../../src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.ts"],"sourcesContent":["import { css } from 'lit';\n\nexport const styles = css`\n :host {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n margin-right:
|
|
1
|
+
{"version":3,"file":"nile-side-bar-group-item-icon.css.cjs.js","sources":["../../../src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.ts"],"sourcesContent":["import { css } from 'lit';\n\nexport const styles = css`\n :host {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n /* 8px to the label on NxtGen; enterprise keeps 12px. */\n margin-right: var(--nile-spacing-lg, var(--ng-spacing-md));\n color: inherit;\n }\n\n ::slotted(nile-icon) {\n width: 100%;\n height: 100%;\n color: inherit;\n fill: currentColor;\n }\n\n \n /* NxtGen keeps the icon's x when the bar collapses; enterprise centers it in the rail item. */\n :host([collapsed]) {\n margin-right: var(--nile-spacing-none, var(--ng-spacing-md));\n width: 100%; \n min-width: var(--nile-spacing-none, var(--ng-height-20px));\n justify-content: center;\n }\n\n :host([collapsed]) nile-lite-tooltip {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n nile-tooltip::part(body) {\n width: max-content;\n height: max-content;\n padding-top: var(--nile-spacing-xs, var(--ng-spacing-xs));\n padding-bottom: var(--nile-spacing-xs, var(--ng-spacing-xs));\n padding-left: var(--nile-spacing-sm, var(--ng-spacing-sm));\n padding-right: var(--nile-spacing-sm, var(--ng-spacing-sm));\n overflow-x: hidden;\n }\n`;\n\nexport default [styles];\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAEaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import{css as
|
|
1
|
+
import{css as n}from"lit";const i=n`
|
|
2
2
|
:host {
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
align-items: center;
|
|
5
5
|
justify-content: center;
|
|
6
6
|
flex-shrink: 0;
|
|
7
|
-
|
|
7
|
+
/* 8px to the label on NxtGen; enterprise keeps 12px. */
|
|
8
|
+
margin-right: var(--nile-spacing-lg, var(--ng-spacing-md));
|
|
8
9
|
color: inherit;
|
|
9
10
|
}
|
|
10
11
|
|
|
@@ -16,9 +17,17 @@ import{css as i}from"lit";const n=i`
|
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
|
|
20
|
+
/* NxtGen keeps the icon's x when the bar collapses; enterprise centers it in the rail item. */
|
|
19
21
|
:host([collapsed]) {
|
|
20
|
-
margin-right:
|
|
22
|
+
margin-right: var(--nile-spacing-none, var(--ng-spacing-md));
|
|
21
23
|
width: 100%;
|
|
24
|
+
min-width: var(--nile-spacing-none, var(--ng-height-20px));
|
|
25
|
+
justify-content: center;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:host([collapsed]) nile-lite-tooltip {
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
22
31
|
justify-content: center;
|
|
23
32
|
}
|
|
24
33
|
|
|
@@ -31,4 +40,4 @@ import{css as i}from"lit";const n=i`
|
|
|
31
40
|
padding-right: var(--nile-spacing-sm, var(--ng-spacing-sm));
|
|
32
41
|
overflow-x: hidden;
|
|
33
42
|
}
|
|
34
|
-
`;export{
|
|
43
|
+
`;export{i as s};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import{__decorate as t}from"tslib";import{html as i}from"lit";import{property as e,customElement as s}from"lit/decorators.js";import{s as o}from"./nile-side-bar-group-item-icon.css.esm.js";import{N as r}from"../internal/nile-element.esm.js";import"../internal/accessibility/a11y.state.enum.esm.js";import"../internal/accessibility/a11y.property.enum.esm.js";import"../internal/accessibility/role.enum.esm.js";let
|
|
1
|
+
import{__decorate as t}from"tslib";import{html as i}from"lit";import{property as e,customElement as s}from"lit/decorators.js";import{s as o}from"./nile-side-bar-group-item-icon.css.esm.js";import{N as r}from"../internal/nile-element.esm.js";import"../internal/accessibility/a11y.state.enum.esm.js";import"../internal/accessibility/a11y.property.enum.esm.js";import"../internal/accessibility/role.enum.esm.js";let l=class extends r{constructor(){super(...arguments),this.icon="",this.tooltip="",this.method="fill",this.size="var(--nile-icon-size-14, var(--ng-height-20px))",this.enableVisibilityEffect=!1,this.duration=200}static get styles(){return[o]}static get observedAttributes(){return[...super.observedAttributes,"collapsed"]}attributeChangedCallback(t,i,e){super.attributeChangedCallback(t,i,e),"collapsed"===t&&this.requestUpdate()}connectedCallback(){this.hasAttribute("slot")||this.setAttribute("slot","icon"),super.connectedCallback()}getSiblingText(){const t=this.parentElement,i=t?.querySelector("nile-side-bar-group-item-text");return i?.textContent?.trim()??""}render(){const t=this.hasAttribute("collapsed"),e=this.tooltip||this.getSiblingText();return t&&e?i`
|
|
2
2
|
|
|
3
3
|
<slot>
|
|
4
4
|
<nile-lite-tooltip hoist distance="18" content=${e} placement="right" enableVisibilityEffect=${this.enableVisibilityEffect} duration=${this.duration}>
|
|
5
|
-
${this.icon?i`<nile-icon size=${this.size} color="
|
|
5
|
+
${this.icon?i`<nile-icon size=${this.size} color="currentColor" name=${this.icon} method=${this.method}></nile-icon>`:null}
|
|
6
6
|
</nile-lite-tooltip>
|
|
7
7
|
</slot>
|
|
8
8
|
|
|
9
9
|
`:i`
|
|
10
10
|
<slot>
|
|
11
|
-
${this.icon?i`<nile-icon size=${this.size} color="
|
|
11
|
+
${this.icon?i`<nile-icon size=${this.size} color="currentColor" name=${this.icon} method=${this.method}></nile-icon>`:null}
|
|
12
12
|
</slot>
|
|
13
|
-
`}};t([e({type:String,reflect:!0})],
|
|
13
|
+
`}};t([e({type:String,reflect:!0})],l.prototype,"icon",void 0),t([e({type:String})],l.prototype,"tooltip",void 0),t([e({type:String})],l.prototype,"method",void 0),t([e({type:String})],l.prototype,"size",void 0),t([e({type:Boolean,attribute:!0,reflect:!0})],l.prototype,"enableVisibilityEffect",void 0),t([e({type:Number,attribute:!0,reflect:!0})],l.prototype,"duration",void 0),l=t([s("nile-side-bar-group-item-icon")],l);export{l as N};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["lit"],function(_export,_context){"use strict";var e,_templateObject,
|
|
1
|
+
System.register(["lit"],function(_export,_context){"use strict";var e,_templateObject,t;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){e=_lit.css;}],execute:function execute(){_export("s",t=e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host {\n display: block;\n flex: 1 1 auto; \n min-width: 0; \n /* NxtGen: Text sm/Semibold, 14/20; enterprise is unchanged. */\n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));\n line-height: var(--nile-line-height-small, var(--ng-line-height-text-sm));\n font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-semibold));\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n color: var(--nile-colors-dark-900, var(--ng-colors-text-secondary-700));\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n ::slotted(*) {\n font: inherit;\n color: inherit;\n }\n /* Enterprise hides the label in the rail. NxtGen keeps it laid out at full width and lets the 40px item clip it, as the Figma rail does. */\n :host([collapsed]) {\n display: var(--nile-display-none, block);\n flex: 0 0 auto;\n }\n"]))));}};});
|
|
2
2
|
//# sourceMappingURL=nile-side-bar-group-item-text.css.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nile-side-bar-group-item-text.css.cjs.js","sources":["../../../src/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.ts"],"sourcesContent":["import { css } from 'lit';\n\n/**\n * SideBarGroupItemText CSS\n */\nexport const styles = css`\n :host {\n display: block;\n flex: 1 1 auto; \n min-width: 0; \n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-
|
|
1
|
+
{"version":3,"file":"nile-side-bar-group-item-text.css.cjs.js","sources":["../../../src/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.ts"],"sourcesContent":["import { css } from 'lit';\n\n/**\n * SideBarGroupItemText CSS\n */\nexport const styles = css`\n :host {\n display: block;\n flex: 1 1 auto; \n min-width: 0; \n /* NxtGen: Text sm/Semibold, 14/20; enterprise is unchanged. */\n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));\n line-height: var(--nile-line-height-small, var(--ng-line-height-text-sm));\n font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-semibold));\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n color: var(--nile-colors-dark-900, var(--ng-colors-text-secondary-700));\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n ::slotted(*) {\n font: inherit;\n color: inherit;\n }\n /* Enterprise hides the label in the rail. NxtGen keeps it laid out at full width and lets the 40px item clip it, as the Figma rail does. */\n :host([collapsed]) {\n display: var(--nile-display-none, block);\n flex: 0 0 auto;\n }\n`;\n\nexport default [styles];\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAKaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
|