@aquera/nile-elements 0.0.68 → 0.0.70
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/.nycrc +17 -0
- package/README.md +24 -0
- package/demo/filenames.txt +1 -1
- package/demo/variables.css +12 -6
- package/demo/variables_v2.css +9 -6
- package/dist/axe.min-1a358f34.cjs.js +12 -0
- package/dist/axe.min-1a358f34.cjs.js.map +1 -0
- package/dist/axe.min-c4141dd6.esm.js +12 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.iife.js +372 -206
- package/dist/nile-avatar/nile-avatar.cjs.js +1 -1
- package/dist/nile-avatar/nile-avatar.cjs.js.map +1 -1
- package/dist/nile-avatar/nile-avatar.css.cjs.js +1 -1
- package/dist/nile-avatar/nile-avatar.css.cjs.js.map +1 -1
- package/dist/nile-avatar/nile-avatar.css.esm.js +15 -7
- package/dist/nile-avatar/nile-avatar.esm.js +1 -1
- package/dist/nile-badge/index.cjs.js +1 -1
- package/dist/nile-badge/index.esm.js +1 -1
- package/dist/nile-badge/nile-badge.cjs.js +1 -1
- package/dist/nile-badge/nile-badge.cjs.js.map +1 -1
- package/dist/nile-badge/nile-badge.css.cjs.js +1 -1
- package/dist/nile-badge/nile-badge.css.cjs.js.map +1 -1
- package/dist/nile-badge/nile-badge.css.esm.js +7 -5
- package/dist/nile-badge/nile-badge.esm.js +1 -1
- package/dist/nile-button/index.cjs.js +1 -1
- package/dist/nile-button/index.esm.js +1 -1
- package/dist/nile-button/nile-button.cjs.js +1 -1
- package/dist/nile-button/nile-button.cjs.js.map +1 -1
- package/dist/nile-button/nile-button.css.cjs.js +1 -1
- package/dist/nile-button/nile-button.css.cjs.js.map +1 -1
- package/dist/nile-button/nile-button.css.esm.js +13 -23
- package/dist/nile-button/nile-button.esm.js +1 -1
- package/dist/nile-button-toggle/nile-button-toggle.css.cjs.js +1 -1
- package/dist/nile-button-toggle/nile-button-toggle.css.cjs.js.map +1 -1
- package/dist/nile-button-toggle/nile-button-toggle.css.esm.js +11 -6
- package/dist/nile-button-toggle-group/nile-button-toggle-group.css.cjs.js +1 -1
- package/dist/nile-button-toggle-group/nile-button-toggle-group.css.cjs.js.map +1 -1
- package/dist/nile-button-toggle-group/nile-button-toggle-group.css.esm.js +5 -4
- package/dist/nile-card/nile-card.cjs.js +1 -1
- package/dist/nile-card/nile-card.cjs.js.map +1 -1
- package/dist/nile-card/nile-card.css.cjs.js +1 -1
- package/dist/nile-card/nile-card.css.cjs.js.map +1 -1
- package/dist/nile-card/nile-card.css.esm.js +23 -4
- package/dist/nile-card/nile-card.esm.js +13 -5
- package/dist/nile-checkbox/nile-checkbox.cjs.js +1 -1
- package/dist/nile-checkbox/nile-checkbox.cjs.js.map +1 -1
- package/dist/nile-checkbox/nile-checkbox.css.cjs.js +1 -1
- package/dist/nile-checkbox/nile-checkbox.css.cjs.js.map +1 -1
- package/dist/nile-checkbox/nile-checkbox.css.esm.js +24 -10
- package/dist/nile-checkbox/nile-checkbox.esm.js +4 -4
- package/dist/nile-checkbox/nile-checkbox.test.cjs.js +395 -0
- package/dist/nile-checkbox/nile-checkbox.test.cjs.js.map +1 -0
- package/dist/nile-checkbox/nile-checkbox.test.esm.js +585 -0
- package/dist/nile-dialog/index.cjs.js +1 -1
- package/dist/nile-dialog/index.esm.js +1 -1
- package/dist/nile-dialog/nile-dialog.cjs.js +1 -1
- package/dist/nile-dialog/nile-dialog.cjs.js.map +1 -1
- package/dist/nile-dialog/nile-dialog.esm.js +1 -1
- package/dist/nile-drawer/index.cjs.js +1 -1
- package/dist/nile-drawer/index.esm.js +1 -1
- package/dist/nile-drawer/nile-drawer.cjs.js +1 -1
- package/dist/nile-drawer/nile-drawer.cjs.js.map +1 -1
- package/dist/nile-drawer/nile-drawer.esm.js +1 -1
- package/dist/nile-empty-state/index.cjs.js +1 -1
- package/dist/nile-empty-state/index.esm.js +1 -1
- 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.css.cjs.js +1 -1
- package/dist/nile-empty-state/nile-empty-state.css.cjs.js.map +1 -1
- package/dist/nile-empty-state/nile-empty-state.css.esm.js +63 -22
- package/dist/nile-empty-state/nile-empty-state.esm.js +21 -16
- package/dist/nile-format-date/index.cjs.js +2 -0
- package/dist/nile-format-date/index.cjs.js.map +1 -0
- package/dist/nile-format-date/index.esm.js +1 -0
- package/dist/nile-format-date/nile-format-date.cjs.js +2 -0
- package/dist/nile-format-date/nile-format-date.cjs.js.map +1 -0
- package/dist/nile-format-date/nile-format-date.css.cjs.js +2 -0
- package/dist/nile-format-date/nile-format-date.css.cjs.js.map +1 -0
- package/dist/nile-format-date/nile-format-date.css.esm.js +5 -0
- package/dist/nile-format-date/nile-format-date.esm.js +5 -0
- package/dist/nile-hero/index.cjs.js +1 -1
- package/dist/nile-hero/index.esm.js +1 -1
- package/dist/nile-hero/nile-hero.cjs.js +1 -1
- package/dist/nile-hero/nile-hero.cjs.js.map +1 -1
- package/dist/nile-hero/nile-hero.css.cjs.js +1 -1
- package/dist/nile-hero/nile-hero.css.cjs.js.map +1 -1
- package/dist/nile-hero/nile-hero.css.esm.js +14 -33
- package/dist/nile-hero/nile-hero.esm.js +6 -9
- package/dist/nile-hero-header/index.cjs.js +2 -0
- package/dist/nile-hero-header/index.cjs.js.map +1 -0
- package/dist/nile-hero-header/index.esm.js +1 -0
- package/dist/nile-hero-header/nile-hero-header.cjs.js +2 -0
- package/dist/nile-hero-header/nile-hero-header.cjs.js.map +1 -0
- package/dist/nile-hero-header/nile-hero-header.css.cjs.js +2 -0
- package/dist/nile-hero-header/nile-hero-header.css.cjs.js.map +1 -0
- package/dist/nile-hero-header/nile-hero-header.css.esm.js +28 -0
- package/dist/nile-hero-header/nile-hero-header.esm.js +6 -0
- package/dist/nile-icon/icons/svg/data-insight.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/data-insight.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/data-insight.esm.js +1 -0
- package/dist/nile-icon/icons/svg/index.cjs.js +1 -1
- package/dist/nile-icon/icons/svg/index.esm.js +1 -1
- package/dist/nile-icon/icons/svg/info-circle.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/info-circle.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/info-circle.esm.js +1 -0
- package/dist/nile-icon/icons/svg/user-01.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/user-01.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/user-01.esm.js +1 -0
- package/dist/nile-icon/index.cjs.js +1 -1
- package/dist/nile-icon/index.cjs.js.map +1 -1
- package/dist/nile-icon/index.esm.js +3 -2
- package/dist/nile-icon-button/index.cjs.js +1 -1
- package/dist/nile-icon-button/index.esm.js +1 -1
- package/dist/nile-icon-button/nile-icon-button.cjs.js +1 -1
- package/dist/nile-icon-button/nile-icon-button.cjs.js.map +1 -1
- package/dist/nile-icon-button/nile-icon-button.esm.js +1 -1
- package/dist/nile-input/index.cjs.js +1 -1
- package/dist/nile-input/index.esm.js +1 -1
- package/dist/nile-input/nile-input.cjs.js +1 -1
- package/dist/nile-input/nile-input.cjs.js.map +1 -1
- package/dist/nile-input/nile-input.css.cjs.js +1 -1
- package/dist/nile-input/nile-input.css.cjs.js.map +1 -1
- package/dist/nile-input/nile-input.css.esm.js +7 -13
- package/dist/nile-input/nile-input.esm.js +1 -1
- 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 +2 -1
- package/dist/nile-menu-item/index.cjs.js +1 -1
- package/dist/nile-menu-item/index.esm.js +1 -1
- package/dist/nile-menu-item/nile-menu-item.cjs.js +1 -1
- package/dist/nile-menu-item/nile-menu-item.cjs.js.map +1 -1
- 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 +7 -4
- package/dist/nile-menu-item/nile-menu-item.esm.js +1 -1
- package/dist/nile-option/index.cjs.js +1 -1
- package/dist/nile-option/index.esm.js +1 -1
- package/dist/nile-option/nile-option.cjs.js +1 -1
- package/dist/nile-option/nile-option.cjs.js.map +1 -1
- package/dist/nile-option/nile-option.esm.js +1 -1
- package/dist/nile-select/index.cjs.js +1 -1
- package/dist/nile-select/index.esm.js +1 -1
- package/dist/nile-select/nile-select.cjs.js +1 -1
- package/dist/nile-select/nile-select.cjs.js.map +1 -1
- package/dist/nile-select/nile-select.esm.js +1 -1
- package/dist/nile-slide-toggle/index.cjs.js +1 -1
- package/dist/nile-slide-toggle/index.esm.js +1 -1
- package/dist/nile-slide-toggle/nile-slide-toggle.cjs.js +1 -1
- package/dist/nile-slide-toggle/nile-slide-toggle.cjs.js.map +1 -1
- 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 +26 -2
- package/dist/nile-slide-toggle/nile-slide-toggle.esm.js +5 -3
- package/dist/nile-tab/index.cjs.js +1 -1
- package/dist/nile-tab/index.esm.js +1 -1
- package/dist/nile-tab/nile-tab.cjs.js +1 -1
- package/dist/nile-tab/nile-tab.cjs.js.map +1 -1
- package/dist/nile-tab/nile-tab.css.cjs.js +1 -1
- package/dist/nile-tab/nile-tab.css.cjs.js.map +1 -1
- package/dist/nile-tab/nile-tab.css.esm.js +17 -7
- package/dist/nile-tab/nile-tab.esm.js +1 -1
- package/dist/nile-tab-group/index.cjs.js +1 -1
- package/dist/nile-tab-group/index.esm.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.cjs.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.cjs.js.map +1 -1
- package/dist/nile-tab-group/nile-tab-group.css.cjs.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.css.cjs.js.map +1 -1
- package/dist/nile-tab-group/nile-tab-group.css.esm.js +16 -2
- package/dist/nile-tab-group/nile-tab-group.esm.js +8 -5
- package/dist/nile-table-header-item/nile-table-header-item.css.cjs.js +1 -1
- package/dist/nile-table-header-item/nile-table-header-item.css.cjs.js.map +1 -1
- package/dist/nile-table-header-item/nile-table-header-item.css.esm.js +4 -4
- package/dist/nile-tag/index.cjs.js +1 -1
- package/dist/nile-tag/index.esm.js +1 -1
- package/dist/nile-tag/nile-tag.cjs.js +1 -1
- package/dist/nile-tag/nile-tag.cjs.js.map +1 -1
- package/dist/nile-tag/nile-tag.esm.js +1 -1
- package/dist/nile-toast/index.cjs.js +1 -1
- package/dist/nile-toast/index.esm.js +1 -1
- package/dist/nile-toast/nile-toast.cjs.js +1 -1
- package/dist/nile-toast/nile-toast.cjs.js.map +1 -1
- package/dist/nile-toast/nile-toast.css.cjs.js +1 -1
- package/dist/nile-toast/nile-toast.css.cjs.js.map +1 -1
- package/dist/nile-toast/nile-toast.css.esm.js +17 -16
- package/dist/nile-toast/nile-toast.esm.js +5 -3
- 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 +6 -6
- package/dist/scopedElementsWrapper-2fa3aa8b.cjs.js +6 -0
- package/dist/scopedElementsWrapper-2fa3aa8b.cjs.js.map +1 -0
- package/dist/scopedElementsWrapper-4c29be11.esm.js +7 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.js +2 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/nile-avatar/nile-avatar.css.js +15 -7
- package/dist/src/nile-avatar/nile-avatar.css.js.map +1 -1
- package/dist/src/nile-avatar/nile-avatar.d.ts +1 -1
- package/dist/src/nile-avatar/nile-avatar.js +1 -0
- package/dist/src/nile-avatar/nile-avatar.js.map +1 -1
- package/dist/src/nile-badge/nile-badge.css.js +7 -5
- package/dist/src/nile-badge/nile-badge.css.js.map +1 -1
- package/dist/src/nile-button/nile-button.css.js +13 -23
- package/dist/src/nile-button/nile-button.css.js.map +1 -1
- package/dist/src/nile-button-toggle/nile-button-toggle.css.js +11 -6
- package/dist/src/nile-button-toggle/nile-button-toggle.css.js.map +1 -1
- package/dist/src/nile-button-toggle-group/nile-button-toggle-group.css.d.ts +5 -5
- package/dist/src/nile-button-toggle-group/nile-button-toggle-group.css.js +8 -7
- package/dist/src/nile-button-toggle-group/nile-button-toggle-group.css.js.map +1 -1
- package/dist/src/nile-card/nile-card.css.js +23 -4
- package/dist/src/nile-card/nile-card.css.js.map +1 -1
- package/dist/src/nile-card/nile-card.js +12 -4
- package/dist/src/nile-card/nile-card.js.map +1 -1
- package/dist/src/nile-checkbox/nile-checkbox.css.js +24 -10
- package/dist/src/nile-checkbox/nile-checkbox.css.js.map +1 -1
- package/dist/src/nile-checkbox/nile-checkbox.d.ts +2 -2
- package/dist/src/nile-checkbox/nile-checkbox.js +7 -6
- package/dist/src/nile-checkbox/nile-checkbox.js.map +1 -1
- package/dist/src/nile-checkbox/nile-checkbox.test.d.ts +1 -0
- package/dist/src/nile-checkbox/nile-checkbox.test.js +152 -0
- package/dist/src/nile-checkbox/nile-checkbox.test.js.map +1 -0
- package/dist/src/nile-empty-state/nile-empty-state.css.js +61 -20
- package/dist/src/nile-empty-state/nile-empty-state.css.js.map +1 -1
- package/dist/src/nile-empty-state/nile-empty-state.d.ts +1 -1
- package/dist/src/nile-empty-state/nile-empty-state.js +22 -22
- package/dist/src/nile-empty-state/nile-empty-state.js.map +1 -1
- package/dist/src/nile-format-date/index.d.ts +1 -0
- package/dist/src/nile-format-date/index.js +2 -0
- package/dist/src/nile-format-date/index.js.map +1 -0
- package/dist/src/nile-format-date/nile-format-date.css.d.ts +12 -0
- package/dist/src/nile-format-date/nile-format-date.css.js +17 -0
- package/dist/src/nile-format-date/nile-format-date.css.js.map +1 -0
- package/dist/src/nile-format-date/nile-format-date.d.ts +59 -0
- package/dist/src/nile-format-date/nile-format-date.js +129 -0
- package/dist/src/nile-format-date/nile-format-date.js.map +1 -0
- package/dist/src/nile-hero/nile-hero.css.js +13 -32
- package/dist/src/nile-hero/nile-hero.css.js.map +1 -1
- package/dist/src/nile-hero/nile-hero.d.ts +6 -0
- package/dist/src/nile-hero/nile-hero.js +45 -8
- package/dist/src/nile-hero/nile-hero.js.map +1 -1
- package/dist/src/nile-hero-header/index.d.ts +1 -0
- package/dist/src/nile-hero-header/index.js +2 -0
- package/dist/src/nile-hero-header/index.js.map +1 -0
- package/dist/src/nile-hero-header/nile-hero-header.css.d.ts +12 -0
- package/dist/src/nile-hero-header/nile-hero-header.css.js +40 -0
- package/dist/src/nile-hero-header/nile-hero-header.css.js.map +1 -0
- package/dist/src/nile-hero-header/nile-hero-header.d.ts +34 -0
- package/dist/src/nile-hero-header/nile-hero-header.js +58 -0
- package/dist/src/nile-hero-header/nile-hero-header.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/data-insight.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/data-insight.js +5 -0
- package/dist/src/nile-icon/icons/svg/data-insight.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/index.d.ts +3 -0
- package/dist/src/nile-icon/icons/svg/index.js +3 -0
- package/dist/src/nile-icon/icons/svg/index.js.map +1 -1
- package/dist/src/nile-icon/icons/svg/info-circle.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/info-circle.js +5 -0
- package/dist/src/nile-icon/icons/svg/info-circle.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/user-01.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/user-01.js +5 -0
- package/dist/src/nile-icon/icons/svg/user-01.js.map +1 -0
- package/dist/src/nile-icon/index.js +2 -1
- package/dist/src/nile-icon/index.js.map +1 -1
- package/dist/src/nile-input/nile-input.css.js +7 -13
- package/dist/src/nile-input/nile-input.css.js.map +1 -1
- package/dist/src/nile-menu/nile-menu.css.js +2 -1
- package/dist/src/nile-menu/nile-menu.css.js.map +1 -1
- package/dist/src/nile-menu-item/nile-menu-item.css.js +7 -4
- package/dist/src/nile-menu-item/nile-menu-item.css.js.map +1 -1
- package/dist/src/nile-slide-toggle/nile-slide-toggle.css.js +26 -2
- package/dist/src/nile-slide-toggle/nile-slide-toggle.css.js.map +1 -1
- package/dist/src/nile-slide-toggle/nile-slide-toggle.d.ts +1 -0
- package/dist/src/nile-slide-toggle/nile-slide-toggle.js +11 -1
- package/dist/src/nile-slide-toggle/nile-slide-toggle.js.map +1 -1
- package/dist/src/nile-tab/nile-tab.css.js +15 -5
- package/dist/src/nile-tab/nile-tab.css.js.map +1 -1
- package/dist/src/nile-tab-group/nile-tab-group.css.js +16 -2
- package/dist/src/nile-tab-group/nile-tab-group.css.js.map +1 -1
- package/dist/src/nile-tab-group/nile-tab-group.d.ts +2 -0
- package/dist/src/nile-tab-group/nile-tab-group.js +16 -5
- package/dist/src/nile-tab-group/nile-tab-group.js.map +1 -1
- package/dist/src/nile-table-header-item/nile-table-header-item.css.js +2 -2
- package/dist/src/nile-table-header-item/nile-table-header-item.css.js.map +1 -1
- package/dist/src/nile-toast/nile-toast.css.js +17 -16
- package/dist/src/nile-toast/nile-toast.css.js.map +1 -1
- package/dist/src/nile-toast/nile-toast.d.ts +1 -1
- package/dist/src/nile-toast/nile-toast.js +9 -7
- package/dist/src/nile-toast/nile-toast.js.map +1 -1
- package/dist/src/nile-tooltip/nile-tooltip.css.js +6 -6
- package/dist/src/nile-tooltip/nile-tooltip.css.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -2
- package/plopfile.js +5 -0
- package/rollup.config.js +11 -6
- package/src/index.ts +3 -1
- package/src/nile-avatar/nile-avatar.css.ts +15 -7
- package/src/nile-avatar/nile-avatar.ts +2 -1
- package/src/nile-badge/nile-badge.css.ts +7 -5
- package/src/nile-button/nile-button.css.ts +13 -23
- package/src/nile-button-toggle/nile-button-toggle.css.ts +11 -6
- package/src/nile-button-toggle-group/nile-button-toggle-group.css.ts +9 -8
- package/src/nile-card/nile-card.css.ts +23 -4
- package/src/nile-card/nile-card.ts +19 -8
- package/src/nile-checkbox/nile-checkbox.css.ts +24 -10
- package/src/nile-checkbox/nile-checkbox.test.ts +188 -0
- package/src/nile-checkbox/nile-checkbox.ts +6 -8
- package/src/nile-empty-state/nile-empty-state.css.ts +61 -20
- package/src/nile-empty-state/nile-empty-state.ts +22 -28
- package/src/nile-format-date/index.ts +1 -0
- package/src/nile-format-date/nile-format-date.css.ts +19 -0
- package/src/nile-format-date/nile-format-date.ts +133 -0
- package/src/nile-hero/nile-hero.css.ts +13 -32
- package/src/nile-hero/nile-hero.ts +39 -13
- package/src/nile-hero-header/index.ts +1 -0
- package/src/nile-hero-header/nile-hero-header.css.ts +42 -0
- package/src/nile-hero-header/nile-hero-header.ts +59 -0
- package/src/nile-icon/icons/svg/data-insight.ts +5 -0
- package/src/nile-icon/icons/svg/index.ts +3 -0
- package/src/nile-icon/icons/svg/info-circle.ts +5 -0
- package/src/nile-icon/icons/svg/user-01.ts +5 -0
- package/src/nile-icon/index.ts +2 -1
- package/src/nile-input/nile-input.css.ts +7 -13
- package/src/nile-menu/nile-menu.css.ts +2 -1
- package/src/nile-menu-item/nile-menu-item.css.ts +7 -4
- package/src/nile-slide-toggle/nile-slide-toggle.css.ts +26 -2
- package/src/nile-slide-toggle/nile-slide-toggle.ts +9 -1
- package/src/nile-tab/nile-tab.css.ts +16 -6
- package/src/nile-tab-group/nile-tab-group.css.ts +16 -2
- package/src/nile-tab-group/nile-tab-group.ts +25 -15
- package/src/nile-table-header-item/nile-table-header-item.css.ts +2 -2
- package/src/nile-toast/nile-toast.css.ts +17 -16
- package/src/nile-toast/nile-toast.ts +9 -7
- package/src/nile-tooltip/nile-tooltip.css.ts +6 -6
- package/tsconfig.json +3 -1
- package/web-test-runner.config.mjs +27 -14
- package/dist/stories/icons.stories.d.ts +0 -29
- package/dist/stories/icons.stories.js +0 -27
- package/dist/stories/icons.stories.js.map +0 -1
- package/dist/stories/index.stories.d.ts +0 -33
- package/dist/stories/index.stories.js +0 -37
- package/dist/stories/index.stories.js.map +0 -1
@@ -13,57 +13,38 @@ import {css} from 'lit-element';
|
|
13
13
|
export const styles = css`
|
14
14
|
|
15
15
|
:host {
|
16
|
-
|
16
|
+
display:block;
|
17
|
+
--transition:2000ms;
|
18
|
+
}
|
19
|
+
.hero__container{
|
20
|
+
overflow:hidden;
|
17
21
|
width:100%;
|
18
22
|
position:relative;
|
19
23
|
display:block;
|
20
|
-
|
21
|
-
background: linear-gradient(180deg, var( --nile-hero-color-bg-from-gradient) 0%, var( --nile-hero-color-bg-to-gradient) 100%);
|
24
|
+
transition: var(--transition);
|
22
25
|
}
|
23
|
-
|
24
26
|
.hero__body {
|
25
27
|
height:100%;
|
26
28
|
}
|
27
29
|
|
28
|
-
.hero__header {
|
29
|
-
display: flex;
|
30
|
-
align-items: center;
|
31
|
-
padding: var(--nile-hero-first-elements-padding);
|
32
|
-
gap: .75rem;
|
33
|
-
}
|
34
|
-
|
35
|
-
.icon__container {
|
36
|
-
height: 25px;
|
37
|
-
place-items: center;
|
38
|
-
display: grid;
|
39
|
-
aspect-ratio: 1 / 1;
|
40
|
-
border-radius: 8px;
|
41
|
-
border: 1px solid #EAECF0;
|
42
|
-
background: linear-gradient(180deg, var(--nile-hero-color-icon-bg-from-gradient) 0%, var(--nile-hero-color-icon-bg-to-gradient) 100%);
|
43
|
-
}
|
44
|
-
|
45
|
-
.hero__text {
|
46
|
-
color: var(--nile-hero-text-color);
|
47
|
-
font-size: var(--nile-hero-text-font-size);
|
48
|
-
font-style: normal;
|
49
|
-
font-weight: var(--nile-hero-text-font-weight);
|
50
|
-
}
|
51
|
-
|
52
30
|
.hero__slot {
|
53
|
-
padding:
|
31
|
+
padding-left: 48px;
|
32
|
+
padding-top: 24px
|
54
33
|
}
|
55
34
|
|
56
35
|
.hero__img__container {
|
57
|
-
height:
|
36
|
+
height:var(--nile-hero-height);
|
37
|
+
overflow:hidden;
|
58
38
|
width:max-content;
|
59
39
|
position: absolute;
|
60
40
|
right: 0;
|
61
|
-
|
41
|
+
bottom:0;
|
42
|
+
transition:var(--transition);
|
62
43
|
}
|
63
44
|
|
64
45
|
.hero__img {
|
65
46
|
object-fit:cover;
|
66
|
-
height:
|
47
|
+
height:var(--nile-hero-height);
|
67
48
|
width:auto;
|
68
49
|
}
|
69
50
|
`;
|
@@ -5,10 +5,12 @@
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
7
|
|
8
|
-
import {LitElement, html, property, CSSResultArray, TemplateResult} from 'lit-element';
|
9
|
-
import { customElement } from 'lit/decorators.js';
|
8
|
+
import {LitElement, html, property, CSSResultArray, TemplateResult,nothing} from 'lit-element';
|
9
|
+
import { customElement, query } from 'lit/decorators.js';
|
10
10
|
import {styles} from './nile-hero.css';
|
11
11
|
import NileElement from '../internal/nile-element';
|
12
|
+
import { watch } from '../internal/watch';
|
13
|
+
import { classMap } from 'lit/directives/class-map.js';
|
12
14
|
|
13
15
|
|
14
16
|
/**
|
@@ -19,9 +21,14 @@ import NileElement from '../internal/nile-element';
|
|
19
21
|
*/
|
20
22
|
@customElement('nile-hero')
|
21
23
|
export class NileHero extends NileElement {
|
22
|
-
@
|
23
|
-
@
|
24
|
-
@
|
24
|
+
@query('.hero__container') heroContainer:HTMLElement;
|
25
|
+
@query('nile-hero-header') heroHeader:HTMLElement;
|
26
|
+
@query('.hero__img__container') imgContainer:HTMLElement;
|
27
|
+
@property({ reflect: true }) icon: string = 'action';
|
28
|
+
@property({ reflect: true, type: Boolean }) collapse: boolean = false;
|
29
|
+
|
30
|
+
@property({ reflect: true, attribute: 'img-src' }) imgSrc: string = '';
|
31
|
+
@property({ reflect: true, attribute: 'hero-text' }) heroText: string = 'Nile Hero';
|
25
32
|
|
26
33
|
/**
|
27
34
|
* The styles for nile-hero
|
@@ -32,29 +39,48 @@ export class NileHero extends NileElement {
|
|
32
39
|
}
|
33
40
|
|
34
41
|
/* #endregion */
|
35
|
-
|
42
|
+
connectedCallback() {
|
43
|
+
super.connectedCallback();
|
44
|
+
this.updateComplete.then(() => {
|
45
|
+
this.updateOnCollapseChange();
|
46
|
+
});
|
47
|
+
}
|
36
48
|
/* #region Methods */
|
37
49
|
|
50
|
+
@watch('collapse')
|
51
|
+
updateOnCollapseChange(){
|
52
|
+
if(!this.heroContainer) return;
|
53
|
+
const heroHeaderHeight=this.heroHeader.scrollHeight;
|
54
|
+
if(this.collapse){
|
55
|
+
this.heroContainer.style.height=heroHeaderHeight+'px';
|
56
|
+
this.heroContainer.style.background="var(--nile-hero-collapsed-background,#fff)";
|
57
|
+
this.heroContainer.style.borderBottom="1px solid #EAECF0";
|
58
|
+
this.imgContainer.style.opacity='0';
|
59
|
+
}
|
60
|
+
else{
|
61
|
+
this.heroContainer.style.height="var(--nile-hero-height)";
|
62
|
+
this.heroContainer.style.background="linear-gradient(180deg, var( --nile-hero-color-bg-from-gradient) 0%, var( --nile-hero-color-bg-to-gradient) 100%)";
|
63
|
+
this.heroContainer.style.borderBottom='';
|
64
|
+
this.imgContainer.style.opacity='1';
|
65
|
+
}
|
66
|
+
}
|
38
67
|
/**
|
39
68
|
* Render method
|
40
69
|
* @slot This is a slot test
|
41
70
|
*/
|
42
71
|
public render(): TemplateResult {
|
43
72
|
return html`
|
73
|
+
<div class="hero__container">
|
44
74
|
<div class="hero__body">
|
45
|
-
<
|
46
|
-
<span class="icon__container">
|
47
|
-
<nile-icon name="${this.icon}" ></nile-icon>
|
48
|
-
</span>
|
49
|
-
<span class="hero__text">${this.heroText}</span>
|
50
|
-
</div>
|
75
|
+
<nile-hero-header hero-text="${this.heroText}" icon="${this.icon}"></nile-hero-header>
|
51
76
|
<div class="hero__slot">
|
52
77
|
<slot></slot>
|
53
78
|
</div>
|
54
79
|
</div>
|
55
|
-
<div class="hero__img__container">
|
80
|
+
<div class="hero__img__container" id="hero__img__container">
|
56
81
|
<img src="${this.imgSrc}" class="hero__img">
|
57
82
|
</div>
|
83
|
+
</div>
|
58
84
|
`;
|
59
85
|
}
|
60
86
|
|
@@ -0,0 +1 @@
|
|
1
|
+
export { NileHeroHeader } from './nile-hero-header';
|
@@ -0,0 +1,42 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright Aquera Inc 2023
|
3
|
+
*
|
4
|
+
* This source code is licensed under the BSD-3-Clause license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
|
8
|
+
import {css} from 'lit-element';
|
9
|
+
|
10
|
+
/**
|
11
|
+
* HeroHeader CSS
|
12
|
+
*/
|
13
|
+
export const styles = css`
|
14
|
+
|
15
|
+
:host {
|
16
|
+
width:100%;
|
17
|
+
display: flex;
|
18
|
+
align-items: center;
|
19
|
+
padding:16px 48px;
|
20
|
+
gap: 16px;
|
21
|
+
}
|
22
|
+
|
23
|
+
.icon__container {
|
24
|
+
height: 32px;
|
25
|
+
aspect-ratio: 1 / 1;
|
26
|
+
place-items: center;
|
27
|
+
display: grid;
|
28
|
+
border-radius: 8px;
|
29
|
+
border: 1px solid #EAECF0;
|
30
|
+
background: linear-gradient(180deg, var(--nile-hero-color-icon-bg-from-gradient) 0%, var(--nile-hero-color-icon-bg-to-gradient) 100%);
|
31
|
+
}
|
32
|
+
|
33
|
+
.hero__text {
|
34
|
+
color: var(--nile-hero-text-color);
|
35
|
+
font-size: var(--nile-hero-text-font-size);
|
36
|
+
line-height: var(--nile-hero-text-line-height);
|
37
|
+
font-style: normal;
|
38
|
+
font-weight: var(--nile-hero-text-font-weight);
|
39
|
+
}
|
40
|
+
`;
|
41
|
+
|
42
|
+
export default [styles];
|
@@ -0,0 +1,59 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright Aquera Inc 2023
|
3
|
+
*
|
4
|
+
* This source code is licensed under the BSD-3-Clause license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
|
8
|
+
import {LitElement, html, property, CSSResultArray, TemplateResult} from 'lit-element';
|
9
|
+
import { customElement } from 'lit/decorators.js';
|
10
|
+
import {styles} from './nile-hero-header.css';
|
11
|
+
import NileElement from '../internal/nile-element';
|
12
|
+
|
13
|
+
|
14
|
+
/**
|
15
|
+
* Nile hero-header component.
|
16
|
+
*
|
17
|
+
* @tag nile-hero-header
|
18
|
+
*
|
19
|
+
*/
|
20
|
+
@customElement('nile-hero-header')
|
21
|
+
export class NileHeroHeader extends NileElement {
|
22
|
+
@property({ reflect: true }) icon: string = 'action';
|
23
|
+
@property({ reflect: true, attribute: 'hero-text' }) heroText: string = 'Nile Hero';
|
24
|
+
|
25
|
+
/**
|
26
|
+
* The styles for nile-hero-header
|
27
|
+
* @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`
|
28
|
+
*/
|
29
|
+
public static get styles(): CSSResultArray {
|
30
|
+
return [styles];
|
31
|
+
}
|
32
|
+
|
33
|
+
/* #endregion */
|
34
|
+
|
35
|
+
/* #region Methods */
|
36
|
+
|
37
|
+
/**
|
38
|
+
* Render method
|
39
|
+
* @slot This is a slot test
|
40
|
+
*/
|
41
|
+
public render(): TemplateResult {
|
42
|
+
return html`
|
43
|
+
<span class="icon__container">
|
44
|
+
<nile-icon size="16" name="${this.icon}"></nile-icon>
|
45
|
+
</span>
|
46
|
+
<span class="hero__text">${this.heroText}</span>
|
47
|
+
`;
|
48
|
+
}
|
49
|
+
|
50
|
+
/* #endregion */
|
51
|
+
}
|
52
|
+
|
53
|
+
export default NileHeroHeader;
|
54
|
+
|
55
|
+
declare global {
|
56
|
+
interface HTMLElementTagNameMap {
|
57
|
+
'nile-hero-header': NileHeroHeader;
|
58
|
+
}
|
59
|
+
}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/**
|
2
|
+
* Do not edit directly
|
3
|
+
*/
|
4
|
+
|
5
|
+
export default "PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTIgNy4yOTMzN0wyLjUwOTI0IDcuODAzMDJMNS41NTEzOSA0Ljc1ODU2TDcuNjM0OTYgNi44NDM4MUwxMS4yNjY0IDMuMjIzMTZWNS4wMTgxMkgxMS45NzkyVjJIOC45NjM1MlYyLjcxMzM3SDEwLjc2NzdMNy42MzQ5NiA1LjgyNDM3TDUuNTUxMzkgMy43MzkxMkwyIDcuMjkzMzdaTTEyIDEzSDExLjE3NjRWNi4zNjczNEgxMlYxM1pNMi44MjM2MyAxM0gyVjkuMjkwNjhIMi44MjM2M1YxM1pNOS4wMzI1NyAxM0g4LjIwODk0VjguMjY4MjhIOS4wMzI1N1YxM1pNNS45MjgxIDEzSDUuMTA0NDdWMTAuOTM5M0g1LjkyODFWMTNaTTUuOTI4MSA5LjI5MDY4SDUuMTA0NDdWNi42NDIxSDUuOTI4MVY5LjI5MDY4WiIgZmlsbD0iYmxhY2siLz48cGF0aCBkPSJNMi41IDQuNUMyLjIgMy4xIDIuMiAzLjEgMSAyLjc1QzIuMiAyLjQgMi4yIDIuNCAyLjUgMUMyLjggMi40IDIuOCAyLjQgNCAyLjc1QzIuOCAzLjEgMi44IDMuMSAyLjUgNC41WiIgZmlsbD0iYmxhY2siLz48L3N2Zz4=";
|
@@ -97,6 +97,7 @@ export { default as create } from './create';
|
|
97
97
|
export { default as createuser } from './createuser';
|
98
98
|
export { default as custom } from './custom';
|
99
99
|
export { default as dashboard } from './dashboard';
|
100
|
+
export { default as datainsight } from './data-insight';
|
100
101
|
export { default as datatypearray } from './data-type-array';
|
101
102
|
export { default as datatypeboolean } from './data-type-boolean';
|
102
103
|
export { default as datatypeexpression } from './data-type-expression';
|
@@ -240,6 +241,7 @@ export { default as if } from './if';
|
|
240
241
|
export { default as ifelse } from './ifelse';
|
241
242
|
export { default as image } from './image';
|
242
243
|
export { default as immutable } from './immutable';
|
244
|
+
export { default as infocircle } from './info-circle';
|
243
245
|
export { default as infoicon } from './info-icon';
|
244
246
|
export { default as infoicon1 } from './info-icon1';
|
245
247
|
export { default as info } from './info';
|
@@ -436,6 +438,7 @@ export { default as updateuser } from './updateuser';
|
|
436
438
|
export { default as updown } from './updown';
|
437
439
|
export { default as upgrade } from './upgrade';
|
438
440
|
export { default as upload } from './upload';
|
441
|
+
export { default as user01 } from './user-01';
|
439
442
|
export { default as user03 } from './user-03';
|
440
443
|
export { default as useranalysisicon } from './user-analysis-icon';
|
441
444
|
export { default as usercircle } from './user-circle';
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/**
|
2
|
+
* Do not edit directly
|
3
|
+
*/
|
4
|
+
|
5
|
+
export default "PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjIiIHZpZXdCb3g9IjAgMCAyMiAyMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTEgMTVWMTFNMTEgN0gxMS4wMU0yMSAxMUMyMSAxNi41MjI4IDE2LjUyMjggMjEgMTEgMjFDNS40NzcxNSAyMSAxIDE2LjUyMjggMSAxMUMxIDUuNDc3MTUgNS40NzcxNSAxIDExIDFDMTYuNTIyOCAxIDIxIDUuNDc3MTUgMjEgMTFaIiBzdHJva2U9ImJsYWNrIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz48L3N2Zz4=";
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/**
|
2
|
+
* Do not edit directly
|
3
|
+
*/
|
4
|
+
|
5
|
+
export default "PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMjAgMjFDMjAgMTkuNjA0NCAyMCAxOC45MDY3IDE5LjgyNzggMTguMzM4OUMxOS40NCAxNy4wNjA1IDE4LjQzOTUgMTYuMDYgMTcuMTYxMSAxNS42NzIyQzE2LjU5MzMgMTUuNSAxNS44OTU2IDE1LjUgMTQuNSAxNS41SDkuNUM4LjEwNDQ0IDE1LjUgNy40MDY2NSAxNS41IDYuODM4ODYgMTUuNjcyMkM1LjU2MDQ1IDE2LjA2IDQuNTYwMDQgMTcuMDYwNSA0LjE3MjI0IDE4LjMzODlDNCAxOC45MDY3IDQgMTkuNjA0NCA0IDIxTTE2LjUgNy41QzE2LjUgOS45ODUyOCAxNC40ODUzIDEyIDEyIDEyQzkuNTE0NzIgMTIgNy41IDkuOTg1MjggNy41IDcuNUM3LjUgNS4wMTQ3MiA5LjUxNDcyIDMgMTIgM0MxNC40ODUzIDMgMTYuNSA1LjAxNDcyIDE2LjUgNy41WiIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+PC9zdmc+";
|
package/src/nile-icon/index.ts
CHANGED
@@ -92,6 +92,7 @@ export class NileIcon extends LitElement {
|
|
92
92
|
align-items: center;
|
93
93
|
justify-content: center;
|
94
94
|
contain: content;
|
95
|
+
--nile-svg-stroke-width: 1.3;
|
95
96
|
}
|
96
97
|
|
97
98
|
.nds-icon {
|
@@ -104,7 +105,6 @@ export class NileIcon extends LitElement {
|
|
104
105
|
height: var(--nile-svg-height);
|
105
106
|
width: var(--nile-svg-width);
|
106
107
|
stroke: var(--nile-svg-stroke);
|
107
|
-
stroke-width: var(--nile-svg-stroke-width);
|
108
108
|
}
|
109
109
|
|
110
110
|
.nds-icon svg path {
|
@@ -114,6 +114,7 @@ export class NileIcon extends LitElement {
|
|
114
114
|
.stroke svg path {
|
115
115
|
fill: none !important;
|
116
116
|
stroke: var(--nile-svg-fill) !important;
|
117
|
+
stroke-width: var(--nile-svg-stroke-width);
|
117
118
|
}
|
118
119
|
|
119
120
|
.nds-icon--push {
|
@@ -27,13 +27,13 @@ export const styles = css`
|
|
27
27
|
.form-control--has-label .form-control__label {
|
28
28
|
display: inline-block;
|
29
29
|
color: inherit;
|
30
|
-
margin-bottom:
|
30
|
+
margin-bottom: 6px;
|
31
31
|
color: var(--nile-colors-dark-900);
|
32
32
|
font-family: var(--nile-font-family-serif);
|
33
33
|
font-size: 14px;
|
34
34
|
font-style: normal;
|
35
|
-
font-weight:
|
36
|
-
line-height:
|
35
|
+
font-weight: 500;
|
36
|
+
line-height: 20px;
|
37
37
|
letter-spacing: 0.2px;
|
38
38
|
}
|
39
39
|
|
@@ -198,10 +198,10 @@ export const styles = css`
|
|
198
198
|
-webkit-appearance: none;
|
199
199
|
color: var(--nile-colors-dark-900);
|
200
200
|
font-family: var(--nile-font-family-sans-serif);
|
201
|
-
font-size:
|
201
|
+
font-size: 16px;
|
202
202
|
font-style: normal;
|
203
203
|
font-weight: 400;
|
204
|
-
line-height:
|
204
|
+
line-height: 24px;
|
205
205
|
letter-spacing: 0.2px;
|
206
206
|
}
|
207
207
|
|
@@ -259,11 +259,6 @@ export const styles = css`
|
|
259
259
|
|
260
260
|
.input:hover:not(.input--disabled) .input__control {
|
261
261
|
color: #000;
|
262
|
-
font-size: 14px;
|
263
|
-
line-height: 14px;
|
264
|
-
font-style: normal;
|
265
|
-
font-weight: 400;
|
266
|
-
letter-spacing: 0.2px;
|
267
262
|
}
|
268
263
|
|
269
264
|
.input__control:focus {
|
@@ -289,8 +284,7 @@ export const styles = css`
|
|
289
284
|
.input--standard:focus {
|
290
285
|
border-radius: 4px;
|
291
286
|
border: 1px solid #85aad1;
|
292
|
-
box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05)
|
293
|
-
0px 0px 0px 4px rgba(133, 170, 209, 0.24);
|
287
|
+
box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
|
294
288
|
}
|
295
289
|
|
296
290
|
/*
|
@@ -327,7 +321,7 @@ export const styles = css`
|
|
327
321
|
.input--medium {
|
328
322
|
border-radius: 0.25rem;
|
329
323
|
font-size: var(--nile-input-font-size-medium);
|
330
|
-
height:
|
324
|
+
height: 40px;
|
331
325
|
}
|
332
326
|
|
333
327
|
.input--medium .input__control {
|
@@ -16,9 +16,10 @@ export const styles = css`
|
|
16
16
|
position: relative;
|
17
17
|
background: hsl(0, 0%, 100%);
|
18
18
|
border: solid 1px hsl(240 5.9% 90%);
|
19
|
-
border-radius:
|
19
|
+
border-radius: 6px;
|
20
20
|
overflow: auto;
|
21
21
|
overscroll-behavior: none;
|
22
|
+
box-shadow: 0px 20px 24px -4px rgba(16, 24, 40, 0.08), 0px 8px 8px -4px rgba(16, 24, 40, 0.03);
|
22
23
|
}
|
23
24
|
|
24
25
|
.search__wrapper {
|
@@ -27,6 +27,7 @@ export const styles = css`
|
|
27
27
|
|
28
28
|
:host {
|
29
29
|
display: block;
|
30
|
+
padding:1px 6px;
|
30
31
|
}
|
31
32
|
|
32
33
|
:host([inert]) {
|
@@ -36,13 +37,14 @@ export const styles = css`
|
|
36
37
|
.menu-item {
|
37
38
|
position: relative;
|
38
39
|
display: flex;
|
40
|
+
border-radius: 4px;
|
39
41
|
align-items: stretch;
|
40
42
|
font-size: 1rem;
|
41
43
|
font-weight: 400;
|
42
44
|
line-height: 1.8;
|
43
45
|
letter-spacing: normal;
|
44
46
|
color: hsl(240 5.3% 26.1%);
|
45
|
-
|
47
|
+
min-height:40px;
|
46
48
|
transition: 150ms fill;
|
47
49
|
user-select: none;
|
48
50
|
white-space: nowrap;
|
@@ -57,8 +59,9 @@ export const styles = css`
|
|
57
59
|
|
58
60
|
.menu-item .menu-item__label {
|
59
61
|
flex: 1 1 auto;
|
60
|
-
display:
|
61
|
-
|
62
|
+
display: flex;
|
63
|
+
align-items:center;
|
64
|
+
justify-content:center;
|
62
65
|
}
|
63
66
|
|
64
67
|
.menu-item .menu-item__prefix {
|
@@ -86,7 +89,7 @@ export const styles = css`
|
|
86
89
|
}
|
87
90
|
|
88
91
|
:host(:hover:not([aria-disabled='true'], :focus-visible)) .menu-item {
|
89
|
-
background-color:
|
92
|
+
background-color: #F9FAFB;
|
90
93
|
color: hsl(0, 0%, 0%);
|
91
94
|
}
|
92
95
|
|
@@ -13,13 +13,12 @@ export default css`
|
|
13
13
|
width: 36px;
|
14
14
|
height: 20px;
|
15
15
|
line-height: 22px;
|
16
|
-
margin-right:
|
16
|
+
margin-right: 8px;
|
17
17
|
}
|
18
18
|
|
19
19
|
.nile-slide-toggle__label {
|
20
20
|
display: flex;
|
21
21
|
flex-direction: column;
|
22
|
-
margin-right: 6px;
|
23
22
|
font-size: 14px;
|
24
23
|
color: var(--nile-colors-gray-light-mode-700);
|
25
24
|
font-family: var(--nile-font-family-serif);
|
@@ -28,6 +27,7 @@ export default css`
|
|
28
27
|
font-weight: 500;
|
29
28
|
line-height: 20px;
|
30
29
|
letter-spacing: 0.2px;
|
30
|
+
gap: 2px;
|
31
31
|
}
|
32
32
|
|
33
33
|
.nile-slide-toggle__sublabel {
|
@@ -55,6 +55,14 @@ export default css`
|
|
55
55
|
border-radius: 34px;
|
56
56
|
}
|
57
57
|
|
58
|
+
.nile-slide-toggle__slider:active {
|
59
|
+
box-shadow: 0px 0px 0px 1px rgba(133, 170, 209, 0.54);
|
60
|
+
}
|
61
|
+
|
62
|
+
.nile-slide-toggle__slider:focus {
|
63
|
+
box-shadow: 0px 0px 0px 1px rgba(133, 170, 209, 0.54);
|
64
|
+
}
|
65
|
+
|
58
66
|
.nile-slide-toggle__slider:before {
|
59
67
|
position: absolute;
|
60
68
|
content: '';
|
@@ -86,4 +94,20 @@ export default css`
|
|
86
94
|
.nile-slide-toggle__slider.round:before {
|
87
95
|
border-radius: 50%;
|
88
96
|
}
|
97
|
+
|
98
|
+
.nile-slide--disabled .nile-slide-toggle__slider {
|
99
|
+
background-color: #f2f4f7;
|
100
|
+
}
|
101
|
+
|
102
|
+
.nile-slide--disabled .nile-slide-toggle__switch {
|
103
|
+
pointer-events: none;
|
104
|
+
cursor: not-allowed;
|
105
|
+
}
|
106
|
+
|
107
|
+
.nile-slide--disabled
|
108
|
+
.nile-slide-toggle__switch
|
109
|
+
input:checked
|
110
|
+
+ .nile-slide-toggle__slider {
|
111
|
+
background-color: #f2f4f7;
|
112
|
+
}
|
89
113
|
`;
|
@@ -2,6 +2,7 @@ import { CSSResultGroup } from 'lit';
|
|
2
2
|
import { LitElement, html, property, customElement } from 'lit-element';
|
3
3
|
import styles from './nile-slide-toggle.css';
|
4
4
|
import NileElement from '../internal/nile-element';
|
5
|
+
import { classMap } from 'lit/directives/class-map.js';
|
5
6
|
|
6
7
|
@customElement('nile-slide-toggle')
|
7
8
|
export class NileSlideToggle extends NileElement {
|
@@ -12,6 +13,8 @@ export class NileSlideToggle extends NileElement {
|
|
12
13
|
|
13
14
|
@property({ type: Boolean, reflect: true }) isChecked = false;
|
14
15
|
|
16
|
+
@property({ type: Boolean, reflect: true }) disabled = false;
|
17
|
+
|
15
18
|
@property({ attribute: 'help-text', reflect: true }) helpText = '';
|
16
19
|
|
17
20
|
@property({ attribute: 'error-message', reflect: true }) errorMessage = '';
|
@@ -38,7 +41,12 @@ export class NileSlideToggle extends NileElement {
|
|
38
41
|
const hasErrorMessage = this.errorMessage ? true : false;
|
39
42
|
|
40
43
|
return html`
|
41
|
-
<div
|
44
|
+
<div
|
45
|
+
class=${classMap({
|
46
|
+
'nile-slide-toggle': true,
|
47
|
+
'nile-slide--disabled': this.disabled,
|
48
|
+
})}
|
49
|
+
>
|
42
50
|
<label class="nile-slide-toggle__switch">
|
43
51
|
<input
|
44
52
|
type="checkbox"
|
@@ -5,7 +5,7 @@
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
7
|
|
8
|
-
import {css} from 'lit-element';
|
8
|
+
import { css } from 'lit-element';
|
9
9
|
|
10
10
|
/**
|
11
11
|
* Tab CSS
|
@@ -17,6 +17,10 @@ export const styles = css`
|
|
17
17
|
|
18
18
|
:host {
|
19
19
|
display: inline-block;
|
20
|
+
--tab-border-radius: 8px;
|
21
|
+
--tab-padding: 0px 3px 12px 3px;
|
22
|
+
--tab-hover-background-color:transparent;
|
23
|
+
--tab-active-background-color: transparent;
|
20
24
|
}
|
21
25
|
|
22
26
|
:host([centered]) {
|
@@ -26,10 +30,12 @@ export const styles = css`
|
|
26
30
|
|
27
31
|
.tab {
|
28
32
|
display: inline-flex;
|
33
|
+
width: 100%;
|
29
34
|
align-items: center;
|
30
|
-
border-radius:
|
31
|
-
|
32
|
-
|
35
|
+
border-radius: 4px;
|
36
|
+
border-radius: var(--tab-border-radius);
|
37
|
+
color: var(--nile-colors-gray-light-mode-500);
|
38
|
+
padding: var(--tab-padding);
|
33
39
|
white-space: nowrap;
|
34
40
|
user-select: none;
|
35
41
|
cursor: pointer;
|
@@ -40,11 +46,14 @@ export const styles = css`
|
|
40
46
|
font-weight: 600;
|
41
47
|
line-height: 20px;
|
42
48
|
letter-spacing: 0.2px;
|
43
|
-
gap:
|
49
|
+
gap: 8px;
|
50
|
+
height: 36px;
|
51
|
+
box-sizing: border-box;
|
44
52
|
}
|
45
53
|
|
46
54
|
.tab:hover:not(.tab--disabled) {
|
47
|
-
color: var(--nile-colors-
|
55
|
+
color: var(--nile-colors-primary-700);
|
56
|
+
background-color: var(--tab-hover-background-color);
|
48
57
|
}
|
49
58
|
|
50
59
|
.tab:focus {
|
@@ -57,6 +66,7 @@ export const styles = css`
|
|
57
66
|
|
58
67
|
.tab.tab--active:not(.tab--disabled) {
|
59
68
|
color: var(--nile-colors-primary-700);
|
69
|
+
background-color: var(--tab-active-background-color);
|
60
70
|
}
|
61
71
|
|
62
72
|
.tab.tab--closable {
|
@@ -19,6 +19,7 @@ export const styles = css`
|
|
19
19
|
--indicator-color: var(--nile-colors-primary-600);
|
20
20
|
--track-color: #e5e9eb;
|
21
21
|
--track-width: 2px;
|
22
|
+
--tab-gap: 12px;
|
22
23
|
|
23
24
|
display: block;
|
24
25
|
}
|
@@ -31,7 +32,12 @@ export const styles = css`
|
|
31
32
|
.tab-group__tabs {
|
32
33
|
display: flex;
|
33
34
|
position: relative;
|
34
|
-
gap:
|
35
|
+
gap: var(--tab-gap);
|
36
|
+
}
|
37
|
+
|
38
|
+
.hide__track {
|
39
|
+
--track-width: 0px;
|
40
|
+
--tab-gap: 3px;
|
35
41
|
}
|
36
42
|
|
37
43
|
.tab-group__indicator {
|
@@ -107,7 +113,8 @@ export const styles = css`
|
|
107
113
|
flex: 1 1 auto;
|
108
114
|
position: relative;
|
109
115
|
flex-direction: row;
|
110
|
-
border-bottom: solid var(--track-width)
|
116
|
+
border-bottom: solid var(--track-width)
|
117
|
+
var(--nile-colors-gray-light-mode-200);
|
111
118
|
}
|
112
119
|
|
113
120
|
.tab-group--top .tab-group__indicator {
|
@@ -242,6 +249,13 @@ export const styles = css`
|
|
242
249
|
.tab-group--end ::slotted(nile-tab-panel) {
|
243
250
|
--padding: 0 10px;
|
244
251
|
}
|
252
|
+
|
253
|
+
.hide__track slot::slotted(nile-tab) {
|
254
|
+
--tab-border-radius: 4px;
|
255
|
+
--tab-padding:8px 12px;
|
256
|
+
--tab-hover-background-color: #f9fafb;
|
257
|
+
--tab-active-background-color: var(--nile-colors-brand-50);
|
258
|
+
}
|
245
259
|
`;
|
246
260
|
|
247
261
|
export default [styles];
|