@aquera/nile-elements 2.0.22 → 2.0.24
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 +1929 -936
- 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-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 +13 -6
- 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/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 +51 -2
- package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.esm.js +1 -1
- 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/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-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 +11 -4
- 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/nile-wysiwyg-editor.css.js +51 -2
- package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.css.js.map +1 -1
- package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.js +1 -1
- package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.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/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/docs/screenshots/wysiwyg-focus-state-focused.png +0 -0
- package/docs/screenshots/wysiwyg-focus-state-unfocused.png +0 -0
- 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-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 +11 -4
- 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/nile-wysiwyg-editor.css.ts +51 -2
- package/src/nile-wysiwyg-editor/nile-wysiwyg-editor.ts +1 -1
- package/src/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.ts +3 -3
- package/test-timings.json +0 -1
- package/vscode-html-custom-data.json +349 -22
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/nile-dropdown-switcher-item/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC","sourcesContent":["export { NileDropdownSwitcherItem } from './nile-dropdown-switcher-item';\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Aquera Inc 2026
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the BSD-3-Clause license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
/** DropdownSwitcherItem CSS -- Default/Selected both render on bg-primary; only Hover gets bg-primary_hover. */
|
|
8
|
+
export declare const styles: import("lit").CSSResult;
|
|
9
|
+
declare const _default: import("lit").CSSResult[];
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Aquera Inc 2026
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the BSD-3-Clause license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
import { css } from 'lit';
|
|
8
|
+
/** DropdownSwitcherItem CSS -- Default/Selected both render on bg-primary; only Hover gets bg-primary_hover. */
|
|
9
|
+
export const styles = css `
|
|
10
|
+
:host {
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
display: block;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
:host *,
|
|
16
|
+
:host *::before,
|
|
17
|
+
:host *::after {
|
|
18
|
+
box-sizing: inherit;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
:host([disabled]) {
|
|
22
|
+
pointer-events: none;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:host(:focus-visible) {
|
|
26
|
+
outline: none;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.item {
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
gap: var(--nile-spacing-md, var(--ng-spacing-md));
|
|
33
|
+
padding: var(--nile-spacing-xs, var(--ng-spacing-xs)) var(--nile-spacing-sm, var(--ng-spacing-sm));
|
|
34
|
+
border-radius: var(--nile-radius-sm, var(--ng-radius-sm));
|
|
35
|
+
background: var(--nile-colors-white-base, var(--ng-colors-bg-primary));
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
:host(:hover) .item,
|
|
40
|
+
:host(:focus-visible) .item {
|
|
41
|
+
background: var(--nile-colors-neutral-100, var(--ng-colors-bg-primary-hover));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.item--disabled {
|
|
45
|
+
opacity: var(--nile-opacity-disabled, 0.5);
|
|
46
|
+
cursor: not-allowed;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.item__icon {
|
|
50
|
+
flex: 0 0 auto;
|
|
51
|
+
display: inline-flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
justify-content: center;
|
|
54
|
+
width: var(--nile-height-32px, var(--ng-height-32px));
|
|
55
|
+
height: var(--nile-height-32px, var(--ng-height-32px));
|
|
56
|
+
border-radius: var(--nile-radius-sm, var(--ng-radius-sm));
|
|
57
|
+
overflow: hidden;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* No icon slotted: collapse the tile so the label (and the flex gap) don't leave a blank 32px. */
|
|
61
|
+
.item__icon--empty {
|
|
62
|
+
display: none;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
::slotted([slot='icon']) {
|
|
66
|
+
width: 100%;
|
|
67
|
+
height: 100%;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.item__text {
|
|
71
|
+
flex: 1 1 auto;
|
|
72
|
+
min-width: 0;
|
|
73
|
+
display: flex;
|
|
74
|
+
flex-direction: column;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.item__label {
|
|
78
|
+
display: block;
|
|
79
|
+
white-space: nowrap;
|
|
80
|
+
overflow: hidden;
|
|
81
|
+
text-overflow: ellipsis;
|
|
82
|
+
font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
|
|
83
|
+
font-size: var(--nile-type-scale-2, var(--ng-font-size-text-xs));
|
|
84
|
+
line-height: var(--nile-line-height-xs, var(--ng-line-height-text-xs));
|
|
85
|
+
font-weight: var(--nile-font-weight-semibold, var(--ng-font-weight-semibold));
|
|
86
|
+
color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.item__description {
|
|
90
|
+
display: block;
|
|
91
|
+
white-space: nowrap;
|
|
92
|
+
overflow: hidden;
|
|
93
|
+
text-overflow: ellipsis;
|
|
94
|
+
font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
|
|
95
|
+
font-size: var(--nile-type-scale-2, var(--ng-font-size-text-xs));
|
|
96
|
+
line-height: var(--nile-line-height-xs, var(--ng-line-height-text-xs));
|
|
97
|
+
font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-regular));
|
|
98
|
+
color: var(--nile-colors-dark-500, var(--ng-colors-text-quaternary-500));
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.item__check {
|
|
102
|
+
flex: 0 0 auto;
|
|
103
|
+
display: inline-flex;
|
|
104
|
+
align-items: center;
|
|
105
|
+
justify-content: center;
|
|
106
|
+
width: var(--nile-height-16px, var(--ng-height-16px));
|
|
107
|
+
height: var(--nile-height-16px, var(--ng-height-16px));
|
|
108
|
+
color: var(--nile-colors-primary-600, var(--ng-colors-border-brand-alt));
|
|
109
|
+
}
|
|
110
|
+
`;
|
|
111
|
+
export default [styles];
|
|
112
|
+
//# sourceMappingURL=nile-dropdown-switcher-item.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nile-dropdown-switcher-item.css.js","sourceRoot":"","sources":["../../../src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.css.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,gHAAgH;AAChH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqGxB,CAAC;AAEF,eAAe,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2026\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { css } from 'lit';\n\n/** DropdownSwitcherItem CSS -- Default/Selected both render on bg-primary; only Hover gets bg-primary_hover. */\nexport const styles = css`\n :host {\n box-sizing: border-box;\n display: block;\n }\n\n :host *,\n :host *::before,\n :host *::after {\n box-sizing: inherit;\n }\n\n :host([disabled]) {\n pointer-events: none;\n }\n\n :host(:focus-visible) {\n outline: none;\n }\n\n .item {\n display: flex;\n align-items: center;\n gap: var(--nile-spacing-md, var(--ng-spacing-md));\n padding: var(--nile-spacing-xs, var(--ng-spacing-xs)) var(--nile-spacing-sm, var(--ng-spacing-sm));\n border-radius: var(--nile-radius-sm, var(--ng-radius-sm));\n background: var(--nile-colors-white-base, var(--ng-colors-bg-primary));\n cursor: pointer;\n }\n\n :host(:hover) .item,\n :host(:focus-visible) .item {\n background: var(--nile-colors-neutral-100, var(--ng-colors-bg-primary-hover));\n }\n\n .item--disabled {\n opacity: var(--nile-opacity-disabled, 0.5);\n cursor: not-allowed;\n }\n\n .item__icon {\n flex: 0 0 auto;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: var(--nile-height-32px, var(--ng-height-32px));\n height: var(--nile-height-32px, var(--ng-height-32px));\n border-radius: var(--nile-radius-sm, var(--ng-radius-sm));\n overflow: hidden;\n }\n\n /* No icon slotted: collapse the tile so the label (and the flex gap) don't leave a blank 32px. */\n .item__icon--empty {\n display: none;\n }\n\n ::slotted([slot='icon']) {\n width: 100%;\n height: 100%;\n }\n\n .item__text {\n flex: 1 1 auto;\n min-width: 0;\n display: flex;\n flex-direction: column;\n }\n\n .item__label {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n font-size: var(--nile-type-scale-2, var(--ng-font-size-text-xs));\n line-height: var(--nile-line-height-xs, var(--ng-line-height-text-xs));\n font-weight: var(--nile-font-weight-semibold, var(--ng-font-weight-semibold));\n color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));\n }\n\n .item__description {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n font-size: var(--nile-type-scale-2, var(--ng-font-size-text-xs));\n line-height: var(--nile-line-height-xs, var(--ng-line-height-text-xs));\n font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-regular));\n color: var(--nile-colors-dark-500, var(--ng-colors-text-quaternary-500));\n }\n\n .item__check {\n flex: 0 0 auto;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: var(--nile-height-16px, var(--ng-height-16px));\n height: var(--nile-height-16px, var(--ng-height-16px));\n color: var(--nile-colors-primary-600, var(--ng-colors-border-brand-alt));\n }\n`;\n\nexport default [styles];\n"]}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Aquera Inc 2026
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the BSD-3-Clause license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
import { TemplateResult } from 'lit';
|
|
8
|
+
import NileElement from '../internal/nile-element';
|
|
9
|
+
import type { CSSResultGroup } from 'lit';
|
|
10
|
+
/**
|
|
11
|
+
* A single selectable row inside a `nile-dropdown-switcher`. Owns no public selection event or keyboard handling -- the parent owns both.
|
|
12
|
+
*
|
|
13
|
+
* @tag nile-dropdown-switcher-item
|
|
14
|
+
*
|
|
15
|
+
* @dependency nile-glyph
|
|
16
|
+
*
|
|
17
|
+
* @slot - The item's primary label. Overrides the `label` property when provided.
|
|
18
|
+
* @slot icon - The leading 32x32 icon tile. Expects a `<nile-glyph slot="icon">`. No space is reserved when empty.
|
|
19
|
+
* @slot description - Overrides the `description` property when provided.
|
|
20
|
+
*
|
|
21
|
+
* @csspart base - The component's base wrapper.
|
|
22
|
+
* @csspart icon - The 32x32 icon container.
|
|
23
|
+
* @csspart label - The primary label.
|
|
24
|
+
* @csspart description - The supporting text line.
|
|
25
|
+
* @csspart check - The trailing selected-state check icon.
|
|
26
|
+
*/
|
|
27
|
+
export declare class NileDropdownSwitcherItem extends NileElement {
|
|
28
|
+
static styles: CSSResultGroup;
|
|
29
|
+
private cachedTextLabel;
|
|
30
|
+
private readonly hasSlotController;
|
|
31
|
+
defaultSlot: HTMLSlotElement;
|
|
32
|
+
/** A unique value used to identify the item when it is selected. */
|
|
33
|
+
value: string;
|
|
34
|
+
/** The item's primary text. Use the default slot for rich content instead. */
|
|
35
|
+
label: string;
|
|
36
|
+
/** Optional supporting text shown under the label. Use the `description` slot for rich content. */
|
|
37
|
+
description: string;
|
|
38
|
+
/** Indicates whether this is the currently selected workspace/product. */
|
|
39
|
+
selected: boolean;
|
|
40
|
+
/** Draws the item in a disabled state, preventing selection. */
|
|
41
|
+
disabled: boolean;
|
|
42
|
+
connectedCallback(): void;
|
|
43
|
+
_syncAria(): void;
|
|
44
|
+
private _handleDefaultSlotChange;
|
|
45
|
+
/** Returns the plain-text label, for the parent's keyboard/typeahead use if ever needed. */
|
|
46
|
+
getTextLabel(): string;
|
|
47
|
+
private _renderCheck;
|
|
48
|
+
render(): TemplateResult<1>;
|
|
49
|
+
}
|
|
50
|
+
export default NileDropdownSwitcherItem;
|
|
51
|
+
declare global {
|
|
52
|
+
interface HTMLElementTagNameMap {
|
|
53
|
+
'nile-dropdown-switcher-item': NileDropdownSwitcherItem;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Aquera Inc 2026
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the BSD-3-Clause license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
import { __decorate } from "tslib";
|
|
8
|
+
import { html, nothing } from 'lit';
|
|
9
|
+
import { customElement, property, query } from 'lit/decorators.js';
|
|
10
|
+
import { classMap } from 'lit/directives/class-map.js';
|
|
11
|
+
import { styles } from './nile-dropdown-switcher-item.css';
|
|
12
|
+
import { getTextContent, HasSlotController } from '../internal/slot';
|
|
13
|
+
import { watch } from '../internal/watch';
|
|
14
|
+
import NileElement from '../internal/nile-element';
|
|
15
|
+
/**
|
|
16
|
+
* A single selectable row inside a `nile-dropdown-switcher`. Owns no public selection event or keyboard handling -- the parent owns both.
|
|
17
|
+
*
|
|
18
|
+
* @tag nile-dropdown-switcher-item
|
|
19
|
+
*
|
|
20
|
+
* @dependency nile-glyph
|
|
21
|
+
*
|
|
22
|
+
* @slot - The item's primary label. Overrides the `label` property when provided.
|
|
23
|
+
* @slot icon - The leading 32x32 icon tile. Expects a `<nile-glyph slot="icon">`. No space is reserved when empty.
|
|
24
|
+
* @slot description - Overrides the `description` property when provided.
|
|
25
|
+
*
|
|
26
|
+
* @csspart base - The component's base wrapper.
|
|
27
|
+
* @csspart icon - The 32x32 icon container.
|
|
28
|
+
* @csspart label - The primary label.
|
|
29
|
+
* @csspart description - The supporting text line.
|
|
30
|
+
* @csspart check - The trailing selected-state check icon.
|
|
31
|
+
*/
|
|
32
|
+
let NileDropdownSwitcherItem = class NileDropdownSwitcherItem extends NileElement {
|
|
33
|
+
constructor() {
|
|
34
|
+
super(...arguments);
|
|
35
|
+
// Whitespace-aware: avoids incidental whitespace defeating the default slot's fallback to `label`.
|
|
36
|
+
this.hasSlotController = new HasSlotController(this, '[default]', 'icon', 'description');
|
|
37
|
+
/** A unique value used to identify the item when it is selected. */
|
|
38
|
+
this.value = '';
|
|
39
|
+
/** The item's primary text. Use the default slot for rich content instead. */
|
|
40
|
+
this.label = '';
|
|
41
|
+
/** Optional supporting text shown under the label. Use the `description` slot for rich content. */
|
|
42
|
+
this.description = '';
|
|
43
|
+
/** Indicates whether this is the currently selected workspace/product. */
|
|
44
|
+
this.selected = false;
|
|
45
|
+
/** Draws the item in a disabled state, preventing selection. */
|
|
46
|
+
this.disabled = false;
|
|
47
|
+
}
|
|
48
|
+
connectedCallback() {
|
|
49
|
+
super.connectedCallback();
|
|
50
|
+
this.setAttribute('role', 'menuitemradio');
|
|
51
|
+
if (!this.hasAttribute('tabindex')) {
|
|
52
|
+
this.setAttribute('tabindex', '-1');
|
|
53
|
+
}
|
|
54
|
+
this._syncAria();
|
|
55
|
+
}
|
|
56
|
+
_syncAria() {
|
|
57
|
+
this.setAttribute('aria-checked', this.selected ? 'true' : 'false');
|
|
58
|
+
this.setAttribute('aria-disabled', this.disabled ? 'true' : 'false');
|
|
59
|
+
}
|
|
60
|
+
_handleDefaultSlotChange() {
|
|
61
|
+
const textLabel = this.getTextLabel();
|
|
62
|
+
if (typeof this.cachedTextLabel === 'undefined') {
|
|
63
|
+
this.cachedTextLabel = textLabel;
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
if (textLabel !== this.cachedTextLabel) {
|
|
67
|
+
this.cachedTextLabel = textLabel;
|
|
68
|
+
this.emit('slotchange');
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
/** Returns the plain-text label, for the parent's keyboard/typeahead use if ever needed. */
|
|
72
|
+
getTextLabel() {
|
|
73
|
+
return getTextContent(this.defaultSlot);
|
|
74
|
+
}
|
|
75
|
+
_renderCheck() {
|
|
76
|
+
if (!this.selected)
|
|
77
|
+
return nothing;
|
|
78
|
+
return html `
|
|
79
|
+
<span part="check" class="item__check" aria-hidden="true">
|
|
80
|
+
<nile-glyph
|
|
81
|
+
name="ng-check"
|
|
82
|
+
method="stroke"
|
|
83
|
+
size="16"
|
|
84
|
+
color="currentColor"
|
|
85
|
+
></nile-glyph>
|
|
86
|
+
</span>
|
|
87
|
+
`;
|
|
88
|
+
}
|
|
89
|
+
render() {
|
|
90
|
+
return html `
|
|
91
|
+
<div
|
|
92
|
+
part="base"
|
|
93
|
+
class=${classMap({
|
|
94
|
+
item: true,
|
|
95
|
+
'item--selected': this.selected,
|
|
96
|
+
'item--disabled': this.disabled,
|
|
97
|
+
})}
|
|
98
|
+
>
|
|
99
|
+
<span
|
|
100
|
+
part="icon"
|
|
101
|
+
class=${classMap({
|
|
102
|
+
item__icon: true,
|
|
103
|
+
'item__icon--empty': !this.hasSlotController.test('icon'),
|
|
104
|
+
})}
|
|
105
|
+
>
|
|
106
|
+
<slot name="icon"></slot>
|
|
107
|
+
</span>
|
|
108
|
+
|
|
109
|
+
<span class="item__text">
|
|
110
|
+
<span part="label" class="item__label">
|
|
111
|
+
<slot class="item__label-slot" @slotchange=${this._handleDefaultSlotChange}></slot
|
|
112
|
+
>${this.hasSlotController.test('[default]') ? nothing : this.label}
|
|
113
|
+
</span>
|
|
114
|
+
|
|
115
|
+
${this.description || this.hasSlotController.test('description')
|
|
116
|
+
? html `<span part="description" class="item__description">
|
|
117
|
+
<slot name="description">${this.description}</slot>
|
|
118
|
+
</span>`
|
|
119
|
+
: nothing}
|
|
120
|
+
</span>
|
|
121
|
+
|
|
122
|
+
${this._renderCheck()}
|
|
123
|
+
</div>
|
|
124
|
+
`;
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
NileDropdownSwitcherItem.styles = styles;
|
|
128
|
+
__decorate([
|
|
129
|
+
query('.item__label-slot')
|
|
130
|
+
], NileDropdownSwitcherItem.prototype, "defaultSlot", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
property({ attribute: true, reflect: true })
|
|
133
|
+
], NileDropdownSwitcherItem.prototype, "value", void 0);
|
|
134
|
+
__decorate([
|
|
135
|
+
property({ attribute: true })
|
|
136
|
+
], NileDropdownSwitcherItem.prototype, "label", void 0);
|
|
137
|
+
__decorate([
|
|
138
|
+
property({ attribute: true })
|
|
139
|
+
], NileDropdownSwitcherItem.prototype, "description", void 0);
|
|
140
|
+
__decorate([
|
|
141
|
+
property({ type: Boolean, attribute: true, reflect: true })
|
|
142
|
+
], NileDropdownSwitcherItem.prototype, "selected", void 0);
|
|
143
|
+
__decorate([
|
|
144
|
+
property({ type: Boolean, attribute: true, reflect: true })
|
|
145
|
+
], NileDropdownSwitcherItem.prototype, "disabled", void 0);
|
|
146
|
+
__decorate([
|
|
147
|
+
watch(['selected', 'disabled'])
|
|
148
|
+
], NileDropdownSwitcherItem.prototype, "_syncAria", null);
|
|
149
|
+
NileDropdownSwitcherItem = __decorate([
|
|
150
|
+
customElement('nile-dropdown-switcher-item')
|
|
151
|
+
], NileDropdownSwitcherItem);
|
|
152
|
+
export { NileDropdownSwitcherItem };
|
|
153
|
+
export default NileDropdownSwitcherItem;
|
|
154
|
+
//# sourceMappingURL=nile-dropdown-switcher-item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nile-dropdown-switcher-item.js","sourceRoot":"","sources":["../../../src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAEH,OAAO,EAAE,IAAI,EAAE,OAAO,EAAkB,MAAM,KAAK,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,WAAW,MAAM,0BAA0B,CAAC;AAGnD;;;;;;;;;;;;;;;;GAgBG;AAEI,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,WAAW;IAAlD;;QAKL,mGAAmG;QAClF,sBAAiB,GAAG,IAAI,iBAAiB,CAAC,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,aAAa,CAAC,CAAC;QAIrG,oEAAoE;QACtB,UAAK,GAAG,EAAE,CAAC;QAEzD,8EAA8E;QAC/C,UAAK,GAAG,EAAE,CAAC;QAE1C,mGAAmG;QACpE,gBAAW,GAAG,EAAE,CAAC;QAEhD,0EAA0E;QACb,aAAQ,GAAG,KAAK,CAAC;QAE9E,gEAAgE;QACH,aAAQ,GAAG,KAAK,CAAC;IAqFhF,CAAC;IAnFC,iBAAiB;QACf,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;QAC3C,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,EAAE,CAAC;YACnC,IAAI,CAAC,YAAY,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;QACtC,CAAC;QACD,IAAI,CAAC,SAAS,EAAE,CAAC;IACnB,CAAC;IAGD,SAAS;QACP,IAAI,CAAC,YAAY,CAAC,cAAc,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;QACpE,IAAI,CAAC,YAAY,CAAC,eAAe,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;IACvE,CAAC;IAEO,wBAAwB;QAC9B,MAAM,SAAS,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;QACtC,IAAI,OAAO,IAAI,CAAC,eAAe,KAAK,WAAW,EAAE,CAAC;YAChD,IAAI,CAAC,eAAe,GAAG,SAAS,CAAC;YACjC,OAAO;QACT,CAAC;QACD,IAAI,SAAS,KAAK,IAAI,CAAC,eAAe,EAAE,CAAC;YACvC,IAAI,CAAC,eAAe,GAAG,SAAS,CAAC;YACjC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC1B,CAAC;IACH,CAAC;IAED,4FAA4F;IAC5F,YAAY;QACV,OAAO,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAC1C,CAAC;IAEO,YAAY;QAClB,IAAI,CAAC,IAAI,CAAC,QAAQ;YAAE,OAAO,OAAO,CAAC;QACnC,OAAO,IAAI,CAAA;;;;;;;;;KASV,CAAC;IACJ,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAA;;;gBAGC,QAAQ,CAAC;YACf,IAAI,EAAE,IAAI;YACV,gBAAgB,EAAE,IAAI,CAAC,QAAQ;YAC/B,gBAAgB,EAAE,IAAI,CAAC,QAAQ;SAChC,CAAC;;;;kBAIQ,QAAQ,CAAC;YACf,UAAU,EAAE,IAAI;YAChB,mBAAmB,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,MAAM,CAAC;SAC1D,CAAC;;;;;;;yDAO6C,IAAI,CAAC,wBAAwB;eACvE,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK;;;YAGlE,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,aAAa,CAAC;YAC9D,CAAC,CAAC,IAAI,CAAA;2CACyB,IAAI,CAAC,WAAW;sBACrC;YACV,CAAC,CAAC,OAAO;;;UAGX,IAAI,CAAC,YAAY,EAAE;;KAExB,CAAC;IACJ,CAAC;;AA1GM,+BAAM,GAAmB,MAAM,AAAzB,CAA0B;AAOX;IAA3B,KAAK,CAAC,mBAAmB,CAAC;6DAA8B;AAGX;IAA7C,QAAQ,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;uDAAY;AAG1B;IAA9B,QAAQ,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;uDAAY;AAGX;IAA9B,QAAQ,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;6DAAkB;AAGa;IAA5D,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;0DAAkB;AAGjB;IAA5D,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;0DAAkB;AAY9E;IADC,KAAK,CAAC,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;yDAI/B;AAtCU,wBAAwB;IADpC,aAAa,CAAC,6BAA6B,CAAC;GAChC,wBAAwB,CA4GpC;;AAED,eAAe,wBAAwB,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2026\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html, nothing, TemplateResult } from 'lit';\nimport { customElement, property, query } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { styles } from './nile-dropdown-switcher-item.css';\nimport { getTextContent, HasSlotController } from '../internal/slot';\nimport { watch } from '../internal/watch';\nimport NileElement from '../internal/nile-element';\nimport type { CSSResultGroup } from 'lit';\n\n/**\n * A single selectable row inside a `nile-dropdown-switcher`. Owns no public selection event or keyboard handling -- the parent owns both.\n *\n * @tag nile-dropdown-switcher-item\n *\n * @dependency nile-glyph\n *\n * @slot - The item's primary label. Overrides the `label` property when provided.\n * @slot icon - The leading 32x32 icon tile. Expects a `<nile-glyph slot=\"icon\">`. No space is reserved when empty.\n * @slot description - Overrides the `description` property when provided.\n *\n * @csspart base - The component's base wrapper.\n * @csspart icon - The 32x32 icon container.\n * @csspart label - The primary label.\n * @csspart description - The supporting text line.\n * @csspart check - The trailing selected-state check icon.\n */\n@customElement('nile-dropdown-switcher-item')\nexport class NileDropdownSwitcherItem extends NileElement {\n static styles: CSSResultGroup = styles;\n\n private cachedTextLabel: string;\n\n // Whitespace-aware: avoids incidental whitespace defeating the default slot's fallback to `label`.\n private readonly hasSlotController = new HasSlotController(this, '[default]', 'icon', 'description');\n\n @query('.item__label-slot') defaultSlot: HTMLSlotElement;\n\n /** A unique value used to identify the item when it is selected. */\n @property({ attribute: true, reflect: true }) value = '';\n\n /** The item's primary text. Use the default slot for rich content instead. */\n @property({ attribute: true }) label = '';\n\n /** Optional supporting text shown under the label. Use the `description` slot for rich content. */\n @property({ attribute: true }) description = '';\n\n /** Indicates whether this is the currently selected workspace/product. */\n @property({ type: Boolean, attribute: true, reflect: true }) selected = false;\n\n /** Draws the item in a disabled state, preventing selection. */\n @property({ type: Boolean, attribute: true, reflect: true }) disabled = false;\n\n connectedCallback(): void {\n super.connectedCallback();\n this.setAttribute('role', 'menuitemradio');\n if (!this.hasAttribute('tabindex')) {\n this.setAttribute('tabindex', '-1');\n }\n this._syncAria();\n }\n\n @watch(['selected', 'disabled'])\n _syncAria(): void {\n this.setAttribute('aria-checked', this.selected ? 'true' : 'false');\n this.setAttribute('aria-disabled', this.disabled ? 'true' : 'false');\n }\n\n private _handleDefaultSlotChange(): void {\n const textLabel = this.getTextLabel();\n if (typeof this.cachedTextLabel === 'undefined') {\n this.cachedTextLabel = textLabel;\n return;\n }\n if (textLabel !== this.cachedTextLabel) {\n this.cachedTextLabel = textLabel;\n this.emit('slotchange');\n }\n }\n\n /** Returns the plain-text label, for the parent's keyboard/typeahead use if ever needed. */\n getTextLabel(): string {\n return getTextContent(this.defaultSlot);\n }\n\n private _renderCheck(): TemplateResult | typeof nothing {\n if (!this.selected) return nothing;\n return html`\n <span part=\"check\" class=\"item__check\" aria-hidden=\"true\">\n <nile-glyph\n name=\"ng-check\"\n method=\"stroke\"\n size=\"16\"\n color=\"currentColor\"\n ></nile-glyph>\n </span>\n `;\n }\n\n render() {\n return html`\n <div\n part=\"base\"\n class=${classMap({\n item: true,\n 'item--selected': this.selected,\n 'item--disabled': this.disabled,\n })}\n >\n <span\n part=\"icon\"\n class=${classMap({\n item__icon: true,\n 'item__icon--empty': !this.hasSlotController.test('icon'),\n })}\n >\n <slot name=\"icon\"></slot>\n </span>\n\n <span class=\"item__text\">\n <span part=\"label\" class=\"item__label\">\n <slot class=\"item__label-slot\" @slotchange=${this._handleDefaultSlotChange}></slot\n >${this.hasSlotController.test('[default]') ? nothing : this.label}\n </span>\n\n ${this.description || this.hasSlotController.test('description')\n ? html`<span part=\"description\" class=\"item__description\">\n <slot name=\"description\">${this.description}</slot>\n </span>`\n : nothing}\n </span>\n\n ${this._renderCheck()}\n </div>\n `;\n }\n}\n\nexport default NileDropdownSwitcherItem;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-dropdown-switcher-item': NileDropdownSwitcherItem;\n }\n}\n"]}
|
|
@@ -42,11 +42,11 @@ export const styles = css `
|
|
|
42
42
|
}
|
|
43
43
|
.chip:active {
|
|
44
44
|
background-color: var(--nile-filter-chip-active-background, var(--ng-colors-bg-brand-primary));
|
|
45
|
-
border-color: var(--nile-filter-chip-active-border-color-stroke);
|
|
45
|
+
border-color: var(--nile-filter-chip-active-border-color-stroke, var(--ng-colors-border-brand));
|
|
46
46
|
}
|
|
47
47
|
:host([active]) .chip {
|
|
48
48
|
background-color: var(--nile-filter-chip-active-background, var(--ng-colors-bg-brand-primary));
|
|
49
|
-
border-color: var(--nile-filter-chip-active-border-color-stroke);
|
|
49
|
+
border-color: var(--nile-filter-chip-active-border-color-stroke, var(--ng-colors-border-brand));
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nile-filter-chip.css.js","sourceRoot":"","sources":["../../../src/nile-filter-chip/nile-filter-chip.css.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AAEF,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AAExB;;GAEG;AAEH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmKxB,CAAC;AAEF,eAAe,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n* Copyright Aquera Inc 2023\n*\n* This source code is licensed under the BSD-3-Clause license found in the\n* LICENSE file in the root directory of this source tree.\n*/\n\nimport {css} from 'lit';\n\n/**\n * FilterChip CSS\n */\n\nexport const styles = css`\n\n :host{\n -webkit-font-smoothing: var(--nile-webkit-font-smoothing, var(--ng-webkit-font-smoothing));\n -moz-osx-font-smoothing: var(--nile-moz-osx-font-smoothing, var(--ng-moz-osx-font-smoothing));\n text-rendering: var(--nile-text-rendering, var(--ng-text-rendering));\n }\n\n .filter-chips {\n display: flex;\n align-items: center;\n }\n\n\n .chip {\n display: inline-flex;\n align-items: center;\n height: 30px;\n padding: 8px;\n border: 1px solid var(--nile-filter-chip-chip-border-color-stroke, var(--ng-colors-border-primary));\n border-radius: var(--nile-radius-sm, var(--ng-radius-md));\n font-size: 14px;\n background-color: var(--nile-filter-chip-background-default, var(--ng-colors-bg-primary));\n color: var(--nile-filter-chip-text-default, var(--ng-colors-text-secondary-700));\n transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;\n cursor: pointer;\n box-sizing: border-box;\n }\n\n .chip:hover {\n background-color: var(--nile-filter-chip-hover-background, var(--ng-colors-bg-secondary-hover));\n }\n .chip:active {\n background-color: var(--nile-filter-chip-active-background, var(--ng-colors-bg-brand-primary));\n border-color: var(--nile-filter-chip-active-border-color-stroke);\n}\n:host([active]) .chip {\n background-color: var(--nile-filter-chip-active-background, var(--ng-colors-bg-brand-primary));\n border-color: var(--nile-filter-chip-active-border-color-stroke);\n}\n\n\n .icon {\n color: var(--nile-filter-chip-icon-color-default, var(--ng-colors-text-primary-900));\n display: flex;\n align-items: center;\n justify-content: center;\n vertical-align: middle;\n position: relative;\n top: 12px;\n }\n\n .label {\n font-weight: 500;\n color: var(--nile-filter-chip-label-color-default, var(--ng-colors-text-primary-900));\n }\n\n nile-badge::part(base) {\n width: auto;\n height: 14px;\n border-radius: 100px;\n padding: 6px;\n gap: 10px;\n font-size: 8px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n line-height: 1;\n }\n\n .chip-container {\n display: flex;\n justify-content: space-between;\n align-items: center;\n width: 100%;\n }\n\n .clear-all-container {\n margin-left: 18px;\n white-space: nowrap;\n cursor: pointer;\n }\n\n\n .value {\n color: var(--nile-filter-chip-values-color-default, var(--ng-colors-text-brand-secondary-700));\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n max-width: 140px;\n vertical-align: bottom;\n}\n\n\n .close-icon {\n color: var(--nile-filter-chip-close-icon-color-default, var(--ng-componentcolors-utility-gray-400));\n cursor: pointer;\n display: flex;\n align-items: center;\n border-radius: 50%;\n transition: background-color 0.2s;\n }\n\n .close-icon:hover {\n background-color: var(--nile-filter-chip-close-icon-hover-background, var(--ng-colors-bg-primary-hover));\n color: var(--nile-filter-chip-close-icon-hover-color, var(--ng-componentcolors-utility-gray-500));\n }\n\n.label-wrapper {\n margin-right: 4px;\n}\n\n::slotted([slot=\"icon\"]) {\n margin-right: 6px;\n}\n\n.value-wrapper {\n margin-right: 4px; \n}\n\n.badge-wrapper {\n margin-right: 12px; \n}\n\n.badge{\n display: inline-flex;\n align-items: center;\n height: 20px; \n}\n\nnile-badge::part(content) {\n line-height: 20px;\n}\n\n:host([disabled]) .chip {\n background-color: var(--nile-colors-white-base, var(--ng-colors-bg-disabled-subtle));\n border-color: var(--nile-colors-neutral-400, var(--ng-colors-border-disabled));\n color: var(--nile-colors-neutral-500, var(--ng-colors-text-secondary-700));\n cursor: not-allowed;\n opacity: var(--nile-opacity-100, var(--ng-opacity-50));\n}\n\n:host([disabled]) .label {\n color: var(--nile-colors-neutral-500, var(--ng-colors-text-secondary-700));\n font-family:colfax-regular;\n user-select: none;\n -webkit-user-select: none;\n}\n\n:host([disabled]) .value {\n color: var(--nile-colors-primary-500, var(--ng-colors-text-brand-secondary-700));\n user-select: none;\n -webkit-user-select: none;\n}\n\n:host([disabled]) nile-badge::part(base) {\n background-color: var(--nile-colors-primary-500,var(--ng-colors-text-brand-secondary-700));\n color: var(--nile-colors-white-base, var(--ng-colors-text-white));\n user-select: none;\n -webkit-user-select: none;\n}\n\n`;\n\nexport default [styles];\n\n "]}
|
|
1
|
+
{"version":3,"file":"nile-filter-chip.css.js","sourceRoot":"","sources":["../../../src/nile-filter-chip/nile-filter-chip.css.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AAEF,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AAExB;;GAEG;AAEH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmKxB,CAAC;AAEF,eAAe,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n* Copyright Aquera Inc 2023\n*\n* This source code is licensed under the BSD-3-Clause license found in the\n* LICENSE file in the root directory of this source tree.\n*/\n\nimport {css} from 'lit';\n\n/**\n * FilterChip CSS\n */\n\nexport const styles = css`\n\n :host{\n -webkit-font-smoothing: var(--nile-webkit-font-smoothing, var(--ng-webkit-font-smoothing));\n -moz-osx-font-smoothing: var(--nile-moz-osx-font-smoothing, var(--ng-moz-osx-font-smoothing));\n text-rendering: var(--nile-text-rendering, var(--ng-text-rendering));\n }\n\n .filter-chips {\n display: flex;\n align-items: center;\n }\n\n\n .chip {\n display: inline-flex;\n align-items: center;\n height: 30px;\n padding: 8px;\n border: 1px solid var(--nile-filter-chip-chip-border-color-stroke, var(--ng-colors-border-primary));\n border-radius: var(--nile-radius-sm, var(--ng-radius-md));\n font-size: 14px;\n background-color: var(--nile-filter-chip-background-default, var(--ng-colors-bg-primary));\n color: var(--nile-filter-chip-text-default, var(--ng-colors-text-secondary-700));\n transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;\n cursor: pointer;\n box-sizing: border-box;\n }\n\n .chip:hover {\n background-color: var(--nile-filter-chip-hover-background, var(--ng-colors-bg-secondary-hover));\n }\n .chip:active {\n background-color: var(--nile-filter-chip-active-background, var(--ng-colors-bg-brand-primary));\n border-color: var(--nile-filter-chip-active-border-color-stroke, var(--ng-colors-border-brand));\n}\n:host([active]) .chip {\n background-color: var(--nile-filter-chip-active-background, var(--ng-colors-bg-brand-primary));\n border-color: var(--nile-filter-chip-active-border-color-stroke, var(--ng-colors-border-brand));\n}\n\n\n .icon {\n color: var(--nile-filter-chip-icon-color-default, var(--ng-colors-text-primary-900));\n display: flex;\n align-items: center;\n justify-content: center;\n vertical-align: middle;\n position: relative;\n top: 12px;\n }\n\n .label {\n font-weight: 500;\n color: var(--nile-filter-chip-label-color-default, var(--ng-colors-text-primary-900));\n }\n\n nile-badge::part(base) {\n width: auto;\n height: 14px;\n border-radius: 100px;\n padding: 6px;\n gap: 10px;\n font-size: 8px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n line-height: 1;\n }\n\n .chip-container {\n display: flex;\n justify-content: space-between;\n align-items: center;\n width: 100%;\n }\n\n .clear-all-container {\n margin-left: 18px;\n white-space: nowrap;\n cursor: pointer;\n }\n\n\n .value {\n color: var(--nile-filter-chip-values-color-default, var(--ng-colors-text-brand-secondary-700));\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n max-width: 140px;\n vertical-align: bottom;\n}\n\n\n .close-icon {\n color: var(--nile-filter-chip-close-icon-color-default, var(--ng-componentcolors-utility-gray-400));\n cursor: pointer;\n display: flex;\n align-items: center;\n border-radius: 50%;\n transition: background-color 0.2s;\n }\n\n .close-icon:hover {\n background-color: var(--nile-filter-chip-close-icon-hover-background, var(--ng-colors-bg-primary-hover));\n color: var(--nile-filter-chip-close-icon-hover-color, var(--ng-componentcolors-utility-gray-500));\n }\n\n.label-wrapper {\n margin-right: 4px;\n}\n\n::slotted([slot=\"icon\"]) {\n margin-right: 6px;\n}\n\n.value-wrapper {\n margin-right: 4px; \n}\n\n.badge-wrapper {\n margin-right: 12px; \n}\n\n.badge{\n display: inline-flex;\n align-items: center;\n height: 20px; \n}\n\nnile-badge::part(content) {\n line-height: 20px;\n}\n\n:host([disabled]) .chip {\n background-color: var(--nile-colors-white-base, var(--ng-colors-bg-disabled-subtle));\n border-color: var(--nile-colors-neutral-400, var(--ng-colors-border-disabled));\n color: var(--nile-colors-neutral-500, var(--ng-colors-text-secondary-700));\n cursor: not-allowed;\n opacity: var(--nile-opacity-100, var(--ng-opacity-50));\n}\n\n:host([disabled]) .label {\n color: var(--nile-colors-neutral-500, var(--ng-colors-text-secondary-700));\n font-family:colfax-regular;\n user-select: none;\n -webkit-user-select: none;\n}\n\n:host([disabled]) .value {\n color: var(--nile-colors-primary-500, var(--ng-colors-text-brand-secondary-700));\n user-select: none;\n -webkit-user-select: none;\n}\n\n:host([disabled]) nile-badge::part(base) {\n background-color: var(--nile-colors-primary-500,var(--ng-colors-text-brand-secondary-700));\n color: var(--nile-colors-white-base, var(--ng-colors-text-white));\n user-select: none;\n -webkit-user-select: none;\n}\n\n`;\n\nexport default [styles];\n\n "]}
|
|
@@ -21,7 +21,7 @@ export const styles = css `
|
|
|
21
21
|
flex-direction: column;
|
|
22
22
|
min-width: var(--min-width);
|
|
23
23
|
width: max-content;
|
|
24
|
-
box-shadow: var(--nile-box-shadow-11,
|
|
24
|
+
box-shadow: var(--nile-box-shadow-11, none);
|
|
25
25
|
padding: var(--nile-spacing-3xl, var(--ng-spacing-3xl));
|
|
26
26
|
border-radius: var(--nile-radius-base-standard, var(--ng-radius-xl));
|
|
27
27
|
border: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nile-form-group.css.js","sourceRoot":"","sources":["../../../src/nile-form-group/nile-form-group.css.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+ExB,CAAC;AACF,eAAe,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { css } from 'lit';\n\n/**\n * FormGroup CSS\n */\nexport const styles = css`\n :host {\n --min-width: 288px;\n -webkit-font-smoothing: var(--nile-webkit-font-smoothing, var(--ng-webkit-font-smoothing));\n -moz-osx-font-smoothing: var(--nile-moz-osx-font-smoothing, var(--ng-moz-osx-font-smoothing));\n text-rendering: var(--nile-text-rendering, var(--ng-text-rendering));\n }\n\n .form__base {\n display: flex;\n flex-direction: column;\n min-width: var(--min-width);\n width: max-content;\n box-shadow: var(--nile-box-shadow-11,
|
|
1
|
+
{"version":3,"file":"nile-form-group.css.js","sourceRoot":"","sources":["../../../src/nile-form-group/nile-form-group.css.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+ExB,CAAC;AACF,eAAe,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { css } from 'lit';\n\n/**\n * FormGroup CSS\n */\nexport const styles = css`\n :host {\n --min-width: 288px;\n -webkit-font-smoothing: var(--nile-webkit-font-smoothing, var(--ng-webkit-font-smoothing));\n -moz-osx-font-smoothing: var(--nile-moz-osx-font-smoothing, var(--ng-moz-osx-font-smoothing));\n text-rendering: var(--nile-text-rendering, var(--ng-text-rendering));\n }\n\n .form__base {\n display: flex;\n flex-direction: column;\n min-width: var(--min-width);\n width: max-content;\n box-shadow: var(--nile-box-shadow-11, none);\n padding: var(--nile-spacing-3xl, var(--ng-spacing-3xl));\n border-radius: var(--nile-radius-base-standard, var(--ng-radius-xl));\n border: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));\n background: var(--nile-colors-white-base, var(--ng-colors-bg-primary));\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n }\n\n .form__header {\n width: 100%;\n box-sizing: border-box;\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n gap: var(--nile-spacing-1-x, var(--ng-spacing-xl));\n background: var(--nile-colors-neutral-100, var(--ng-colors-bg-primary));\n }\n\n .form__divider {\n width: 100%;\n }\n\n .form__divider::part(divider) {\n width: 100%;\n height: 1px;\n margin-top: var(--nile-spacing-2xl, var(--ng-spacing-2xl));\n margin-bottom: var(--nile-spacing-3xl, var(--ng-spacing-3xl));\n }\n\n .form__title-content {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: var(--nile-spacing-1-x, var(--ng-spacing-xxs));\n justify-content:center;\n }\n\n .form__title {\n display: block;\n color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));\n font-feature-settings: 'clig' off, 'liga' off;\n font-size: var(--nile-type-scale-4, var(--ng-font-size-text-lg));\n font-style: normal;\n font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-semibold));\n line-height: var(--nile-type-scale-4, var(--ng-line-height-text-lg));\n letter-spacing: 0.2px;\n }\n\n .form__subtitle {\n display: block;\n color: var(--nile-colors-dark-500, var(--ng-colors-text-tertiary-600));\n font-feature-settings: 'clig' off, 'liga' off;\n font-size: var(--nile-type-scale-2, var(--ng-font-size-text-sm));\n font-style: normal;\n font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-regular));\n line-height: var(--nile-type-scale-2, var(--ng-line-height-text-sm));\n letter-spacing: 0.2px;\n }\n\n .form__body {\n width: 100%;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n gap: var(--nile-spacing-3-x, var(--ng-spacing-3xl));\n }\n`;\nexport default [styles];\n"]}
|
|
@@ -13,7 +13,7 @@ export const styles = css `
|
|
|
13
13
|
display: block;
|
|
14
14
|
font-family: var(--nile-font-family-sans-serif, var(--ng-font-family-body));
|
|
15
15
|
font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));
|
|
16
|
-
color: var(--nile-colors-dark-900, var(--ng-colors-text-
|
|
16
|
+
color: var(--nile-colors-dark-900, var(--ng-colors-text-tertiary-600));
|
|
17
17
|
cursor: pointer;
|
|
18
18
|
user-select: none;
|
|
19
19
|
}
|
|
@@ -24,12 +24,27 @@ export const styles = css `
|
|
|
24
24
|
transition: background 0.2s, color 0.2s;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
.item:not(.item--rich) {
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
box-sizing: border-box;
|
|
31
|
+
height: 36px;
|
|
32
|
+
padding: var(--nile-spacing-none, var(--ng-spacing-none)) var(--nile-spacing-lg, var(--ng-spacing-lg));
|
|
33
|
+
border-radius: var(--nile-radius-md, var(--ng-radius-md));
|
|
34
|
+
font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-medium));
|
|
35
|
+
color: var(--nile-colors-dark-700, var(--ng-colors-text-secondary-700));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.item--rich {
|
|
39
|
+
font-weight: var(--nile-font-weight-semibold, var(--ng-font-weight-semibold));
|
|
40
|
+
}
|
|
41
|
+
|
|
27
42
|
:host(:not([disabled])) .item:hover {
|
|
28
|
-
background: var(--nile-colors-neutral-400, var(--ng-colors-bg-
|
|
43
|
+
background: var(--nile-colors-neutral-400, var(--ng-colors-bg-primary-hover));
|
|
29
44
|
}
|
|
30
45
|
|
|
31
46
|
:host([active]) .item {
|
|
32
|
-
background: var(--nile-colors-primary-100, var(--ng-colors-bg-brand-
|
|
47
|
+
background: var(--nile-colors-primary-100, var(--ng-colors-bg-brand-primary-alt));
|
|
33
48
|
font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-medium));
|
|
34
49
|
color: var(--nile-colors-primary-700, var(--ng-colors-text-brand-secondary-700));
|
|
35
50
|
}
|
|
@@ -38,7 +53,7 @@ export const styles = css `
|
|
|
38
53
|
}
|
|
39
54
|
|
|
40
55
|
:host([active]) .item:hover {
|
|
41
|
-
background: var(--nile-colors-primary-100, var(--ng-colors-bg-brand-
|
|
56
|
+
background: var(--nile-colors-primary-100, var(--ng-colors-bg-brand-primary-alt));
|
|
42
57
|
}
|
|
43
58
|
|
|
44
59
|
:host([disabled]) {
|
|
@@ -48,6 +63,7 @@ export const styles = css `
|
|
|
48
63
|
|
|
49
64
|
:host([disabled]) .item {
|
|
50
65
|
pointer-events: none;
|
|
66
|
+
color: var(--nile-colors-neutral-500, var(--ng-colors-text-disabled));
|
|
51
67
|
}
|
|
52
68
|
a {
|
|
53
69
|
color: inherit;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nile-inline-sidebar-item.css.js","sourceRoot":"","sources":["../../../src/nile-inline-sidebar-item/nile-inline-sidebar-item.css.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AAEF,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"nile-inline-sidebar-item.css.js","sourceRoot":"","sources":["../../../src/nile-inline-sidebar-item/nile-inline-sidebar-item.css.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AAEF,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwExB,CAAC","sourcesContent":["/**\n* Copyright Aquera Inc 2025\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 * InlinesidebarItem CSS — Enterprise (`--nile-*`) primary, NxtGen (`--ng-*`) fallback.\n */\nexport const styles = css`\n:host {\n display: block;\n font-family: var(--nile-font-family-sans-serif, var(--ng-font-family-body));\n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));\n color: var(--nile-colors-dark-900, var(--ng-colors-text-tertiary-600));\n cursor: pointer;\n user-select: none;\n}\n\n.item {\n padding: var(--nile-spacing-lg, var(--ng-spacing-lg)) var(--nile-spacing-md, var(--ng-spacing-md));\n border-radius: var(--nile-radius-sm, var(--ng-radius-xs));\n transition: background 0.2s, color 0.2s;\n}\n\n.item:not(.item--rich) {\n display: flex;\n align-items: center;\n box-sizing: border-box;\n height: 36px;\n padding: var(--nile-spacing-none, var(--ng-spacing-none)) var(--nile-spacing-lg, var(--ng-spacing-lg));\n border-radius: var(--nile-radius-md, var(--ng-radius-md));\n font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-medium));\n color: var(--nile-colors-dark-700, var(--ng-colors-text-secondary-700));\n}\n\n.item--rich {\n font-weight: var(--nile-font-weight-semibold, var(--ng-font-weight-semibold));\n}\n\n:host(:not([disabled])) .item:hover {\n background: var(--nile-colors-neutral-400, var(--ng-colors-bg-primary-hover));\n}\n\n:host([active]) .item {\n background: var(--nile-colors-primary-100, var(--ng-colors-bg-brand-primary-alt));\n font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-medium));\n color: var(--nile-colors-primary-700, var(--ng-colors-text-brand-secondary-700));\n}\n:host([active]) .item--rich {\n border-right: 2px solid var(--nile-colors-primary-600, var(--ng-colors-border-brand));\n}\n\n:host([active]) .item:hover {\n background: var(--nile-colors-primary-100, var(--ng-colors-bg-brand-primary-alt));\n}\n\n:host([disabled]) {\n color: var(--nile-colors-neutral-500, var(--ng-colors-text-disabled));\n cursor: not-allowed;\n}\n\n:host([disabled]) .item {\n pointer-events: none;\n color: var(--nile-colors-neutral-500, var(--ng-colors-text-disabled));\n}\na {\n color: inherit;\n text-decoration: none;\n display: block;\n width: 100%;\n height: 100%;\n }\n\n a:visited,\n a:hover,\n a:active,\n a:focus {\n color: inherit;\n text-decoration: none;\n }\n`;\n"]}
|
|
@@ -22,7 +22,7 @@ export const styles = css `
|
|
|
22
22
|
min-width: 0;
|
|
23
23
|
flex: 1 1 0%;
|
|
24
24
|
max-width: 100%;
|
|
25
|
-
color: var(--nile-colors-dark-500, var(--ng-
|
|
25
|
+
color: var(--nile-colors-dark-500, var(--ng-colors-text-tertiary-600));
|
|
26
26
|
font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));
|
|
27
27
|
font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-regular));
|
|
28
28
|
line-height: var(--nile-line-height-xsmall, var(--ng-line-height-text-xs));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nile-inline-sidebar-item-body.css.js","sourceRoot":"","sources":["../../../src/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AAEF,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoDxB,CAAC;AAEF,eAAe,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n* Copyright Aquera Inc 2026\n*\n* This source code is licensed under the BSD-3-Clause license found in the\n* LICENSE file in the root directory of this source tree.\n*/\n\nimport {css} from 'lit';\n\nexport const styles = css`\n\t:host {\n\t\tdisplay: block;\n\t\tmin-width: 0;\n\t\tfont-family: var(--nile-font-family-sans-serif, var(--ng-font-family-body));\n\t}\n\t.item-body {\n\t\tdisplay: flex;\n\t\talign-items: flex-start;\n\t\tmin-width: 0;\n\t\tpadding-top: var(--nile-spacing-xxsmall, var(--ng-spacing-xxs));\n\t}\n\t.body-content {\n\t\tbox-sizing: border-box;\n\t\tmin-width: 0;\n\t\tflex: 1 1 0%;\n\t\tmax-width: 100%;\n\t\tcolor: var(--nile-colors-dark-500, var(--ng-
|
|
1
|
+
{"version":3,"file":"nile-inline-sidebar-item-body.css.js","sourceRoot":"","sources":["../../../src/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AAEF,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoDxB,CAAC;AAEF,eAAe,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n* Copyright Aquera Inc 2026\n*\n* This source code is licensed under the BSD-3-Clause license found in the\n* LICENSE file in the root directory of this source tree.\n*/\n\nimport {css} from 'lit';\n\nexport const styles = css`\n\t:host {\n\t\tdisplay: block;\n\t\tmin-width: 0;\n\t\tfont-family: var(--nile-font-family-sans-serif, var(--ng-font-family-body));\n\t}\n\t.item-body {\n\t\tdisplay: flex;\n\t\talign-items: flex-start;\n\t\tmin-width: 0;\n\t\tpadding-top: var(--nile-spacing-xxsmall, var(--ng-spacing-xxs));\n\t}\n\t.body-content {\n\t\tbox-sizing: border-box;\n\t\tmin-width: 0;\n\t\tflex: 1 1 0%;\n\t\tmax-width: 100%;\n\t\tcolor: var(--nile-colors-dark-500, var(--ng-colors-text-tertiary-600));\n\t\tfont-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));\n\t\tfont-weight: var(--nile-font-weight-regular, var(--ng-font-weight-regular));\n\t\tline-height: var(--nile-line-height-xsmall, var(--ng-line-height-text-xs));\n\t}\n\t.body-content nile-lite-tooltip {\n\t\tdisplay: block;\n\t\tmin-width: 0;\n\t\tmax-width: 100%;\n\t}\n\t.body-text {\n\t\tdisplay: -webkit-box;\n\t\t-webkit-box-orient: vertical;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\tword-break: break-word;\n\t\toverflow-wrap: anywhere;\n\t\t-webkit-line-clamp: var(--line-clamp);\n\t\tline-clamp: var(--line-clamp);\n\t}\n\t/* Slotted block/paragraph nodes need the same clamp (slot composition) */\n\t.body-text ::slotted(*) {\n\t\tdisplay: -webkit-box;\n\t\t-webkit-box-orient: vertical;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\tword-break: break-word;\n\t\toverflow-wrap: anywhere;\n\t\t-webkit-line-clamp: var(--line-clamp);\n\t\tline-clamp: var(--line-clamp);\n\t\tmargin-block: 0;\n\t}\n\t:host([disabled]) .body-content {\n\t\tcolor: var(--nile-colors-neutral-300, var(--ng-colors-text-disabled));\n\t}\n`;\n\nexport default [styles];\n"]}
|
|
@@ -19,13 +19,13 @@ export const styles = css `
|
|
|
19
19
|
.item-header .body-content .header-text {
|
|
20
20
|
display: block;
|
|
21
21
|
font-family: var(--nile-font-family-medium, var(--ng-font-family-body));
|
|
22
|
-
font-weight:
|
|
22
|
+
font-weight: inherit;
|
|
23
23
|
font-size: var(--nile-type-scale-4, var(--ng-font-size-text-sm));
|
|
24
24
|
line-height: var(--nile-line-height-medium, var(--ng-line-height-text-sm));
|
|
25
|
-
color:
|
|
25
|
+
color: inherit;
|
|
26
26
|
}
|
|
27
27
|
:host([active]) .item-header .body-content .header-text {
|
|
28
|
-
font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-
|
|
28
|
+
font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-semibold));
|
|
29
29
|
color: var(--nile-colors-primary-700, var(--ng-colors-text-brand-secondary-700));
|
|
30
30
|
}
|
|
31
31
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nile-inline-sidebar-item-header.css.js","sourceRoot":"","sources":["../../../src/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AAEF,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BxB,CAAC;AAEF,eAAe,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n* Copyright Aquera Inc 2026\n*\n* This source code is licensed under the BSD-3-Clause license found in the\n* LICENSE file in the root directory of this source tree.\n*/\n\nimport {css} from 'lit';\n\nexport const styles = css`\n\t:host {\n\t\tfont-family: var(--nile-font-family-sans-serif, var(--ng-font-family-body));\n\t}\n\t.item-header {\n\t\tdisplay: flex;\n\t\tgap: var(--nile-spacing-xs, var(--ng-spacing-xs));\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\talign-items: center;\n\t}\n\t.item-header .body-content .header-text {\n\t\tdisplay: block;\n\t\tfont-family: var(--nile-font-family-medium, var(--ng-font-family-body));\n\t\tfont-weight:
|
|
1
|
+
{"version":3,"file":"nile-inline-sidebar-item-header.css.js","sourceRoot":"","sources":["../../../src/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AAEF,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BxB,CAAC;AAEF,eAAe,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n* Copyright Aquera Inc 2026\n*\n* This source code is licensed under the BSD-3-Clause license found in the\n* LICENSE file in the root directory of this source tree.\n*/\n\nimport {css} from 'lit';\n\nexport const styles = css`\n\t:host {\n\t\tfont-family: var(--nile-font-family-sans-serif, var(--ng-font-family-body));\n\t}\n\t.item-header {\n\t\tdisplay: flex;\n\t\tgap: var(--nile-spacing-xs, var(--ng-spacing-xs));\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\talign-items: center;\n\t}\n\t.item-header .body-content .header-text {\n\t\tdisplay: block;\n\t\tfont-family: var(--nile-font-family-medium, var(--ng-font-family-body));\n\t\tfont-weight: inherit;\n\t\tfont-size: var(--nile-type-scale-4, var(--ng-font-size-text-sm));\n\t\tline-height: var(--nile-line-height-medium, var(--ng-line-height-text-sm));\n\t\tcolor: inherit;\n\t}\n\t:host([active]) .item-header .body-content .header-text {\n\t\tfont-weight: var(--nile-font-weight-medium, var(--ng-font-weight-semibold));\n\t\tcolor: var(--nile-colors-primary-700, var(--ng-colors-text-brand-secondary-700));\n\t}\n\n\t:host([disabled]) .item-header .body-content .header-text {\n\t\tcolor: var(--nile-colors-neutral-500, var(--ng-colors-text-disabled));\n\t}\n`;\n\nexport default [styles];\n"]}
|
|
@@ -20,7 +20,7 @@ export const styles = css `
|
|
|
20
20
|
|
|
21
21
|
.editor {
|
|
22
22
|
width: 100%;
|
|
23
|
-
border: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-
|
|
23
|
+
border: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-primary));
|
|
24
24
|
border-radius: var(--nile-radius-radius-xl, var(--ng-radius-md));
|
|
25
25
|
background: var(--nile-colors-white-base, var(--ng-colors-bg-primary));
|
|
26
26
|
box-sizing: border-box;
|
|
@@ -42,7 +42,7 @@ export const styles = css `
|
|
|
42
42
|
gap: 6px;
|
|
43
43
|
flex-wrap: wrap;
|
|
44
44
|
padding: 8px;
|
|
45
|
-
border-bottom: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-
|
|
45
|
+
border-bottom: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));
|
|
46
46
|
background: var(--nile-colors-neutral-100, var(--ng-colors-bg-secondary));
|
|
47
47
|
border-radius: 8px 8px 0 0;
|
|
48
48
|
width: 100%;
|
|
@@ -122,7 +122,7 @@ export const styles = css `
|
|
|
122
122
|
display: inline-block;
|
|
123
123
|
height: 24px;
|
|
124
124
|
width: 1px;
|
|
125
|
-
background: var(--nile-colors-neutral-400, var(--ng-colors-border-
|
|
125
|
+
background: var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
.toolbar__glyph--heading {
|
|
@@ -158,7 +158,7 @@ export const styles = css `
|
|
|
158
158
|
position: relative;
|
|
159
159
|
width: 1px;
|
|
160
160
|
align-self: stretch;
|
|
161
|
-
background: var(--nile-colors-neutral-400, var(--ng-colors-border-
|
|
161
|
+
background: var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));
|
|
162
162
|
cursor: col-resize;
|
|
163
163
|
touch-action: none;
|
|
164
164
|
}
|