@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
@@ -1,57 +1,95 @@
|
|
1
|
-
import{i as e}from"../index-0a3007c5.esm.js";const
|
1
|
+
import{i as e}from"../index-0a3007c5.esm.js";const i=e`
|
2
2
|
:host {
|
3
3
|
display:inline-flex;
|
4
|
-
min-width:
|
5
|
-
max-width:
|
4
|
+
min-width:var(--nile-empty-state-max-width);
|
5
|
+
max-width:var(--nile-empty-state-min-width);
|
6
6
|
width:100%;
|
7
7
|
}
|
8
8
|
|
9
9
|
.empty-state--sm {
|
10
10
|
--nile-es-text-size:16px;
|
11
|
+
--nile-es-text-line-height:24px;
|
11
12
|
--nile-es-subtext-size:14px;
|
13
|
+
--nile-es-subtext-line-height:20px;
|
14
|
+
|
12
15
|
--nile-es-icon-size:48px;
|
13
|
-
--es-flat-option-border-radius:5px;
|
16
|
+
--nile-es-flat-option-border-radius:5px;
|
14
17
|
--nile-es-img-height:118px;
|
18
|
+
--nile-es-img-width:152px;
|
19
|
+
|
20
|
+
--nile-es-gap:var(--nile-spacing-spacing-3xl);
|
21
|
+
--nile-es-body-gap:var(--nile-spacing-spacing-xl);
|
22
|
+
--nile-es-text-gap:0px;
|
15
23
|
}
|
16
24
|
|
17
25
|
.empty-state--md {
|
18
26
|
--nile-es-text-size:18px;
|
27
|
+
--nile-es-text-line-height:28px;
|
19
28
|
--nile-es-subtext-size:14px;
|
29
|
+
--nile-es-subtext-line-height:20px;
|
30
|
+
|
20
31
|
--nile-es-icon-size:48px;
|
21
|
-
--es-flat-option-border-radius:5px;
|
32
|
+
--nile-es-flat-option-border-radius:5px;
|
22
33
|
--nile-es-img-height:128px;
|
34
|
+
--nile-es-img-width:172px;
|
35
|
+
|
36
|
+
--nile-es-gap:var(--nile-spacing-spacing-4xl);
|
37
|
+
--nile-es-body-gap:var(--nile-spacing-spacing-2xl);
|
38
|
+
--nile-es-text-gap:var(--nile-spacing-spacing-md);
|
23
39
|
}
|
24
40
|
|
25
41
|
.empty-state--lg {
|
26
42
|
--nile-es-text-size:20px;
|
43
|
+
--nile-es-text-line-height:30px;
|
27
44
|
--nile-es-subtext-size:16px;
|
45
|
+
--nile-es-subtext-line-height:24px;
|
46
|
+
|
28
47
|
--nile-es-icon-size:56px;
|
29
|
-
--es-flat-option-border-radius:10px;
|
48
|
+
--nile-es-flat-option-border-radius:10px;
|
30
49
|
--nile-es-img-height:160px;
|
50
|
+
--nile-es-img-width:220px;
|
51
|
+
|
52
|
+
--nile-es-gap:var(--nile-spacing-spacing-4xl);
|
53
|
+
--nile-es-body-gap:var(--nile-spacing-spacing-3xl);
|
54
|
+
--nile-es-text-gap:var(--nile-spacing-spacing-md)
|
31
55
|
}
|
32
56
|
|
33
57
|
.empty-state {
|
34
|
-
padding:1rem;
|
35
58
|
min-width:300px;
|
36
59
|
max-width:512px;
|
37
60
|
width:100%;
|
38
61
|
height:max-content;
|
39
62
|
display:flex;
|
40
63
|
flex-direction:column;
|
41
|
-
row-gap:
|
64
|
+
row-gap:var(--nile-es-gap);
|
42
65
|
}
|
43
66
|
|
44
67
|
.empty-state__body {
|
45
|
-
row-gap:5px;
|
46
68
|
display:flex;
|
47
69
|
flex-direction:column;
|
48
70
|
justify-content:space-between;
|
49
71
|
align-items:center;
|
72
|
+
row-gap:var(--nile-es-body-gap)
|
50
73
|
}
|
51
74
|
|
52
75
|
.empty-state__body--content {
|
53
76
|
position:relative;
|
54
77
|
}
|
78
|
+
.empty-state__image {
|
79
|
+
background:var(--nile-empty-state-image);
|
80
|
+
background-size: var(--nile-es-img-width) var(--nile-es-img-height);
|
81
|
+
height: var(--nile-es-img-height);
|
82
|
+
width: var(--nile-es-img-width);
|
83
|
+
max-width: 100%;
|
84
|
+
}
|
85
|
+
|
86
|
+
.empty-state__image--grayscale {
|
87
|
+
-webkit-filter: grayscale(100%);
|
88
|
+
-moz-filter: grayscale(100%);
|
89
|
+
-o-filter: grayscale(100%);
|
90
|
+
-ms-filter: grayscale(100%);
|
91
|
+
filter: grayscale(100%);
|
92
|
+
}
|
55
93
|
|
56
94
|
.empty-state__img__icon {
|
57
95
|
height: var(--nile-es-icon-size);
|
@@ -60,19 +98,15 @@ import{i as e}from"../index-0a3007c5.esm.js";const t=e`
|
|
60
98
|
display: grid;
|
61
99
|
place-items: center;
|
62
100
|
background: #34405466;
|
63
|
-
}
|
64
|
-
|
65
|
-
.empty-state__img__icon--abs {
|
66
101
|
position:absolute;
|
67
102
|
left: calc(50% - calc(var(--nile-es-icon-size) / 2));
|
68
|
-
top:calc(
|
103
|
+
top:calc(62.5% - calc(var(--nile-es-icon-size) / 2));
|
69
104
|
}
|
70
105
|
|
71
106
|
.empty-state__body--tonal {
|
72
107
|
background: linear-gradient(180deg, #F9FAFB 0%, #EDF0F3 100%);
|
73
|
-
width:
|
74
|
-
height:
|
75
|
-
padding: 1rem;
|
108
|
+
width: 104px;
|
109
|
+
height: 104px;
|
76
110
|
border-radius: 50%;
|
77
111
|
display:flex;
|
78
112
|
justify-content:center;
|
@@ -80,13 +114,12 @@ import{i as e}from"../index-0a3007c5.esm.js";const t=e`
|
|
80
114
|
}
|
81
115
|
|
82
116
|
.empty-state__body--flat {
|
83
|
-
margin:2rem;
|
84
117
|
}
|
85
118
|
|
86
119
|
.nile-flat-type-icon {
|
87
120
|
height:var(--nile-es-icon-size);
|
88
121
|
aspect-ratio:1 / 1;
|
89
|
-
border-radius: var(--es-flat-option-border-radius);
|
122
|
+
border-radius: var(--nile-es-flat-option-border-radius);
|
90
123
|
|
91
124
|
background-color: white;
|
92
125
|
display: grid;
|
@@ -94,24 +127,32 @@ import{i as e}from"../index-0a3007c5.esm.js";const t=e`
|
|
94
127
|
border: 1px solid #EAECF0;
|
95
128
|
}
|
96
129
|
|
130
|
+
.empty__state__text-section {
|
131
|
+
display:flex;
|
132
|
+
flex-direction:column;
|
133
|
+
gap:var(--nile-es-text-gap);
|
134
|
+
max-width:80%;
|
135
|
+
}
|
136
|
+
|
97
137
|
.empty-state__text {
|
98
138
|
font-size: var(--nile-es-text-size);
|
99
139
|
font-weight: 600;
|
100
|
-
line-height:
|
140
|
+
line-height: var(--nile-es-text-line-height);
|
101
141
|
text-align: center;
|
142
|
+
font-style: normal;
|
102
143
|
}
|
103
144
|
|
104
145
|
.empty-state__subtext {
|
105
146
|
font-size: var(--nile-es-subtext-size);
|
106
147
|
font-weight: 400;
|
107
|
-
line-height:
|
148
|
+
line-height: var(--nile-es-subtext-line-height);
|
108
149
|
text-align: center;
|
109
150
|
color:#475467;
|
151
|
+
font-style: normal;
|
110
152
|
}
|
111
153
|
|
112
154
|
.empty-state-actions {
|
113
155
|
display:flex;
|
114
156
|
justify-content:center;
|
115
|
-
gap:1rem;
|
116
157
|
}
|
117
|
-
`;export{
|
158
|
+
`;export{i as s};
|
@@ -1,32 +1,37 @@
|
|
1
|
-
import{__decorate as t}from"tslib";import{x as s,A as i}from"../index-0a3007c5.esm.js";import{customElement as e}from"lit/decorators.js";import{classMap as
|
2
|
-
<div class="${
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
1
|
+
import{__decorate as t}from"tslib";import{x as s,A as i}from"../index-0a3007c5.esm.js";import{customElement as e}from"lit/decorators.js";import{classMap as a}from"lit/directives/class-map.js";import{s as o}from"./nile-empty-state.css.esm.js";import{N as m}from"../internal/nile-element.esm.js";import{n as l}from"../property-09139d3c.esm.js";import"lit";let n=class extends m{constructor(){super(...arguments),this.size="md",this.variant="tonal",this.icon="error",this.grayscale=!1,this.text="Empty State",this.subText="No Data"}static get styles(){return[o]}render(){return s`
|
2
|
+
<div class="${a({"empty-state":!0,"empty-state--sm":"sm"==this.size,"empty-state--md":"md"==this.size,"empty-state--lg":"lg"==this.size})}">
|
3
|
+
<div class="${a({"empty-state__body":!0})}">
|
4
|
+
|
5
|
+
${"content"==this.variant?s`
|
6
|
+
<div class="empty-state__body--content">
|
7
|
+
|
8
|
+
<div src="" class="${a({"empty-state__image":!0,"empty-state__image--grayscale":this.grayscale})}"></div>
|
9
|
+
${this.icon?s`
|
10
|
+
<div class="empty-state__img__icon">
|
11
|
+
<nile-icon name="${this.icon}" color="white" size="${"sm"==this.size||"md"==this.size?24:28}"></nile-icon>
|
12
|
+
</div>`:i}
|
13
|
+
</div>`:i}
|
12
14
|
|
13
|
-
|
15
|
+
${"tonal"==this.variant?s`
|
14
16
|
<div class="empty-state__body--tonal">
|
15
17
|
<nile-icon name="${this.icon}" size="40"></nile-icon>
|
16
18
|
</div>`:i}
|
17
19
|
|
18
|
-
|
20
|
+
${"flat"==this.variant?s`
|
19
21
|
<div class="empty-state__body--flat">
|
20
22
|
<span class="nile-flat-type-icon">
|
21
23
|
<nile-icon name="${this.icon}" size="${"sm"==this.size||"md"==this.size?24:28}" variant="secondary"></nile-icon>
|
22
24
|
</span>
|
23
25
|
</div>`:i}
|
24
|
-
|
25
|
-
|
26
|
+
|
27
|
+
<div class="empty__state__text-section">
|
28
|
+
<div class="empty-state__text">${this.text}</div>
|
29
|
+
<div class="empty-state__subtext">${this.subText}</div>
|
30
|
+
</div>
|
26
31
|
</div>
|
27
32
|
|
28
33
|
<div class="empty-state-actions">
|
29
34
|
<slot></slot>
|
30
35
|
</div>
|
31
36
|
</div>
|
32
|
-
`}};t([l()],
|
37
|
+
`}};t([l()],n.prototype,"size",void 0),t([l()],n.prototype,"variant",void 0),t([l()],n.prototype,"icon",void 0),t([l({type:Boolean})],n.prototype,"grayscale",void 0),t([l()],n.prototype,"text",void 0),t([l()],n.prototype,"subText",void 0),n=t([e("nile-empty-state")],n);export{n as N};
|
@@ -0,0 +1,2 @@
|
|
1
|
+
System.register(["./nile-format-date.cjs.js","tslib","../index-c7ad3b47.cjs.js","lit/decorators.js","./nile-format-date.css.cjs.js","../internal/nile-element.cjs.js","lit","../property-217fe924.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileFormatDateCjsJs){_export("NileFormatDate",_nileFormatDateCjsJs.N);},function(_tslib){},function(_index001CjsJs){},function(_litDecoratorsJs){},function(_nileFormatDateCssCjsJs){},function(_internalNileElementCjsJs){},function(_lit){},function(_property002CjsJs){}],execute:function execute(){}};});
|
2
|
+
//# sourceMappingURL=index.cjs.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
export{N as NileFormatDate}from"./nile-format-date.esm.js";import"tslib";import"../index-0a3007c5.esm.js";import"lit/decorators.js";import"./nile-format-date.css.esm.js";import"../internal/nile-element.esm.js";import"lit";import"../property-09139d3c.esm.js";
|
@@ -0,0 +1,2 @@
|
|
1
|
+
function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","../index-c7ad3b47.cjs.js","lit/decorators.js","./nile-format-date.css.cjs.js","../internal/nile-element.cjs.js","../property-217fe924.cjs.js","lit"],function(_export,_context){"use strict";var t,e,i,o,r,a,_templateObject,s;function _taggedTemplateLiteral(strings,raw){if(!raw){raw=strings.slice(0);}return Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}));}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call==="function")){return call;}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined");}return _assertThisInitialized(self);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_index001CjsJs){e=_index001CjsJs.x;},function(_litDecoratorsJs){i=_litDecoratorsJs.customElement;},function(_nileFormatDateCssCjsJs){o=_nileFormatDateCssCjsJs.s;},function(_internalNileElementCjsJs){r=_internalNileElementCjsJs.N;},function(_property002CjsJs){a=_property002CjsJs.n;},function(_lit){}],execute:function execute(){_export("N",s=/*#__PURE__*/function(_r){function s(){var _this;_classCallCheck(this,s);_this=_callSuper(this,s,arguments),_this.date=new Date(),_this.hourFormat="auto",_this.dateSeparator="-";return _this;}_inherits(s,_r);return _createClass(s,[{key:"formatDate",value:function formatDate(t,e){var _this2=this;t=new Date(t);return new Intl.DateTimeFormat("en-GB",e).formatToParts(t).map(function(_ref){var t=_ref.type,e=_ref.value;return"day"===t||"month"===t||"year"===t?e:"literal"===t&&"/"===e?_this2.dateSeparator:e;}).join("");}},{key:"render",value:function render(){var t=new Date(this.date),i="auto"===this.hourFormat?void 0:"12"===this.hourFormat;if(!isNaN(t.getMilliseconds()))return e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <time datetime=",">\n ","\n </time>\n "])),t.toISOString(),this.formatDate(t,{weekday:this.weekday,era:this.era,year:this.year,month:this.month,day:this.day,hour:this.hour,minute:this.minute,second:this.second,timeZoneName:this.timeZoneName,timeZone:this.timeZone,hour12:i}));}}],[{key:"styles",get:function get(){return[o];}}]);}(r));t([a()],s.prototype,"date",void 0),t([a()],s.prototype,"weekday",void 0),t([a()],s.prototype,"era",void 0),t([a()],s.prototype,"year",void 0),t([a()],s.prototype,"month",void 0),t([a()],s.prototype,"day",void 0),t([a()],s.prototype,"hour",void 0),t([a()],s.prototype,"minute",void 0),t([a()],s.prototype,"second",void 0),t([a({attribute:"time-zone-name"})],s.prototype,"timeZoneName",void 0),t([a({attribute:"time-zone"})],s.prototype,"timeZone",void 0),t([a({attribute:"hour-format"})],s.prototype,"hourFormat",void 0),t([a({attribute:"date-separator"})],s.prototype,"dateSeparator",void 0),_export("N",s=t([i("nile-format-date")],s));}};});
|
2
|
+
//# sourceMappingURL=nile-format-date.cjs.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"nile-format-date.cjs.js","sources":["../../../src/nile-format-date/nile-format-date.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {LitElement, html, property, CSSResultArray, TemplateResult} from 'lit-element';\nimport { customElement } from 'lit/decorators.js';\nimport {styles} from './nile-format-date.css';\nimport NileElement from '../internal/nile-element';\n\n\n/**\n * Nile format-date component.\n *\n * @tag nile-format-date\n *\n */\n@customElement('nile-format-date')\nexport class NileFormatDate extends NileElement {\n /**\n * The styles for nile-format-date\n * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n */\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n /**\n * The date/time to format. If not set, the current date and time will be used. When passing a string, it's strongly\n * recommended to use the ISO 8601 format to ensure timezones are handled correctly. To convert a date to this format\n * in JavaScript, use [`date.toISOString()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString).\n */\n @property() date: Date | string = new Date();\n\n /** The format for displaying the weekday. */\n @property() weekday: 'narrow' | 'short' | 'long';\n\n /** The format for displaying the era. */\n @property() era: 'narrow' | 'short' | 'long';\n\n /** The format for displaying the year. */\n @property() year: 'numeric' | '2-digit';\n\n /** The format for displaying the month. */\n @property() month: 'numeric' | '2-digit' | 'narrow' | 'short' | 'long';\n\n /** The format for displaying the day. */\n @property() day: 'numeric' | '2-digit';\n\n /** The format for displaying the hour. */\n @property() hour: 'numeric' | '2-digit';\n\n /** The format for displaying the minute. */\n @property() minute: 'numeric' | '2-digit';\n\n /** The format for displaying the second. */\n @property() second: 'numeric' | '2-digit';\n\n /** The format for displaying the time. */\n @property({ attribute: 'time-zone-name' }) timeZoneName: 'short' | 'long';\n\n /** The time zone to express the time in. */\n @property({ attribute: 'time-zone' }) timeZone: string;\n\n /** The format for displaying the hour. */\n @property({ attribute: 'hour-format' }) hourFormat: 'auto' | '12' | '24' =\n 'auto';\n\n /** The separator for the date format. */\n @property({ attribute: 'date-separator' }) dateSeparator: '-' | '/' = '-';\n\n formatDate(dateToFormat: Date | string, options?: Intl.DateTimeFormatOptions): string {\n dateToFormat = new Date(dateToFormat);\n const formatter = new Intl.DateTimeFormat('en-GB', options);\n const parts = formatter.formatToParts(dateToFormat);\n const formattedDate = parts.map(({ type, value }) => {\n if (type === 'day' || type === 'month' || type === 'year') {\n return value;\n }\n if (type === 'literal' && value === '/') {\n return this.dateSeparator;\n }\n return value;\n }).join('');\n return formattedDate;\n }\n\n // formatDate(dateToFormat: Date | string, options?: Intl.DateTimeFormatOptions): string {\n // dateToFormat = new Date(dateToFormat);\n // return new Intl.DateTimeFormat('en-GB', options).format(dateToFormat);\n // }\n\n\n render() {\n const date = new Date(this.date);\n const hour12 =\n this.hourFormat === 'auto' ? undefined : this.hourFormat === '12';\n\n // Check for an invalid date\n if (isNaN(date.getMilliseconds())) {\n return undefined;\n }\n\n return html`\n <time datetime=${date.toISOString()}>\n ${this.formatDate(date, {\n weekday: this.weekday,\n era: this.era,\n year: this.year,\n month: this.month,\n day: this.day,\n hour: this.hour,\n minute: this.minute,\n second: this.second,\n timeZoneName: this.timeZoneName,\n timeZone: this.timeZone,\n hour12: hour12,\n })}\n </time>\n `;\n }\n}\n\t/* #endregion */\n\nexport default NileFormatDate;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-format-date': NileFormatDate;\n }\n}\n"],"names":["NileFormatDate","s","this","date","Date","hourFormat","dateSeparator","_this","_inherits","_r","_createClass","key","value","formatDate","dateToFormat","options","Intl","DateTimeFormat","formatToParts","map","_ref","type","join","render","hour12","undefined","isNaN","getMilliseconds","html","_templateObject","_taggedTemplateLiteral","toISOString","weekday","era","year","month","day","hour","minute","second","timeZoneName","timeZone","__decorate","get","styles","NileElement","property","prototype","attribute","_export","customElement"],"mappings":"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"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
System.register(["../index-c7ad3b47.cjs.js"],function(_export,_context){"use strict";var s,_templateObject,o;function _taggedTemplateLiteral(strings,raw){if(!raw){raw=strings.slice(0);}return Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}));}return{setters:[function(_index001CjsJs){s=_index001CjsJs.i;}],execute:function execute(){_export("s",o=s(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\t:host {\n\n\t}\n"]))));}};});
|
2
|
+
//# sourceMappingURL=nile-format-date.css.cjs.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"nile-format-date.css.cjs.js","sources":["../../../src/nile-format-date/nile-format-date.css.ts"],"sourcesContent":["/**\n* Copyright Aquera Inc 2023\n*\n* This source code is licensed under the BSD-3-Clause license found in the\n* LICENSE file in the root directory of this source tree.\n*/\n\nimport {css} from 'lit-element';\n\n/**\n * FormatDate CSS\n */\nexport const styles = css`\n\t:host {\n\n\t}\n`;\n\nexport default [styles];"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"wXAYaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import{__decorate as t}from"tslib";import{x as e}from"../index-0a3007c5.esm.js";import{customElement as i}from"lit/decorators.js";import{s as o}from"./nile-format-date.css.esm.js";import{N as r}from"../internal/nile-element.esm.js";import{n as a}from"../property-09139d3c.esm.js";import"lit";let s=class extends r{constructor(){super(...arguments),this.date=new Date,this.hourFormat="auto",this.dateSeparator="-"}static get styles(){return[o]}formatDate(t,e){t=new Date(t);return new Intl.DateTimeFormat("en-GB",e).formatToParts(t).map((({type:t,value:e})=>"day"===t||"month"===t||"year"===t?e:"literal"===t&&"/"===e?this.dateSeparator:e)).join("")}render(){const t=new Date(this.date),i="auto"===this.hourFormat?void 0:"12"===this.hourFormat;if(!isNaN(t.getMilliseconds()))return e`
|
2
|
+
<time datetime=${t.toISOString()}>
|
3
|
+
${this.formatDate(t,{weekday:this.weekday,era:this.era,year:this.year,month:this.month,day:this.day,hour:this.hour,minute:this.minute,second:this.second,timeZoneName:this.timeZoneName,timeZone:this.timeZone,hour12:i})}
|
4
|
+
</time>
|
5
|
+
`}};t([a()],s.prototype,"date",void 0),t([a()],s.prototype,"weekday",void 0),t([a()],s.prototype,"era",void 0),t([a()],s.prototype,"year",void 0),t([a()],s.prototype,"month",void 0),t([a()],s.prototype,"day",void 0),t([a()],s.prototype,"hour",void 0),t([a()],s.prototype,"minute",void 0),t([a()],s.prototype,"second",void 0),t([a({attribute:"time-zone-name"})],s.prototype,"timeZoneName",void 0),t([a({attribute:"time-zone"})],s.prototype,"timeZone",void 0),t([a({attribute:"hour-format"})],s.prototype,"hourFormat",void 0),t([a({attribute:"date-separator"})],s.prototype,"dateSeparator",void 0),s=t([i("nile-format-date")],s);export{s as N};
|
@@ -1,2 +1,2 @@
|
|
1
|
-
System.register(["./nile-hero.cjs.js","tslib","../index-c7ad3b47.cjs.js","lit/decorators.js","./nile-hero.css.cjs.js","../internal/nile-element.cjs.js","lit","../property-217fe924.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileHeroCjsJs){_export("NileHero",_nileHeroCjsJs.N);},function(_tslib){},function(_index001CjsJs){},function(_litDecoratorsJs){},function(_nileHeroCssCjsJs){},function(_internalNileElementCjsJs){},function(_lit){},function(_property002CjsJs){}],execute:function execute(){}};});
|
1
|
+
System.register(["./nile-hero.cjs.js","tslib","../index-c7ad3b47.cjs.js","lit/decorators.js","./nile-hero.css.cjs.js","../internal/nile-element.cjs.js","lit","../internal/watch.cjs.js","../property-217fe924.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileHeroCjsJs){_export("NileHero",_nileHeroCjsJs.N);},function(_tslib){},function(_index001CjsJs){},function(_litDecoratorsJs){},function(_nileHeroCssCjsJs){},function(_internalNileElementCjsJs){},function(_lit){},function(_internalWatchCjsJs){},function(_property002CjsJs){}],execute:function execute(){}};});
|
2
2
|
//# sourceMappingURL=index.cjs.js.map
|
@@ -1 +1 @@
|
|
1
|
-
export{N as NileHero}from"./nile-hero.esm.js";import"tslib";import"../index-0a3007c5.esm.js";import"lit/decorators.js";import"./nile-hero.css.esm.js";import"../internal/nile-element.esm.js";import"lit";import"../property-09139d3c.esm.js";
|
1
|
+
export{N as NileHero}from"./nile-hero.esm.js";import"tslib";import"../index-0a3007c5.esm.js";import"lit/decorators.js";import"./nile-hero.css.esm.js";import"../internal/nile-element.esm.js";import"lit";import"../internal/watch.esm.js";import"../property-09139d3c.esm.js";
|
@@ -1,2 +1,2 @@
|
|
1
|
-
function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","../index-c7ad3b47.cjs.js","lit/decorators.js","./nile-hero.css.cjs.js","../internal/nile-element.cjs.js","../property-217fe924.cjs.js","lit"],function(_export,_context){"use strict";var
|
1
|
+
function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","../index-c7ad3b47.cjs.js","lit/decorators.js","./nile-hero.css.cjs.js","../internal/nile-element.cjs.js","../internal/watch.cjs.js","../property-217fe924.cjs.js","lit"],function(_export,_context){"use strict";var e,i,r,t,o,s,n,l,_templateObject,a;function _taggedTemplateLiteral(strings,raw){if(!raw){raw=strings.slice(0);}return Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}));}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call==="function")){return call;}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined");}return _assertThisInitialized(self);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _get(){if(typeof Reflect!=="undefined"&&Reflect.get){_get=Reflect.get.bind();}else{_get=function _get(target,property,receiver){var base=_superPropBase(target,property);if(!base)return;var desc=Object.getOwnPropertyDescriptor(base,property);if(desc.get){return desc.get.call(arguments.length<3?target:receiver);}return desc.value;};}return _get.apply(this,arguments);}function _superPropBase(object,property){while(!Object.prototype.hasOwnProperty.call(object,property)){object=_getPrototypeOf(object);if(object===null)break;}return object;}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}return{setters:[function(_tslib){e=_tslib.__decorate;},function(_index001CjsJs){i=_index001CjsJs.x;},function(_litDecoratorsJs){r=_litDecoratorsJs.query;t=_litDecoratorsJs.customElement;},function(_nileHeroCssCjsJs){o=_nileHeroCssCjsJs.s;},function(_internalNileElementCjsJs){s=_internalNileElementCjsJs.N;},function(_internalWatchCjsJs){n=_internalWatchCjsJs.w;},function(_property002CjsJs){l=_property002CjsJs.n;},function(_lit){}],execute:function execute(){_export("N",a=/*#__PURE__*/function(_s){function a(){var _this;_classCallCheck(this,a);_this=_callSuper(this,a,arguments),_this.icon="action",_this.collapse=!1,_this.imgSrc="",_this.heroText="Nile Hero";return _this;}_inherits(a,_s);return _createClass(a,[{key:"connectedCallback",value:function connectedCallback(){var _this2=this;_get(_getPrototypeOf(a.prototype),"connectedCallback",this).call(this),this.updateComplete.then(function(){_this2.updateOnCollapseChange();});}},{key:"updateOnCollapseChange",value:function updateOnCollapseChange(){if(!this.heroContainer)return;var e=this.heroHeader.scrollHeight;this.collapse?(this.heroContainer.style.height=e+"px",this.heroContainer.style.background="var(--nile-hero-collapsed-background,#fff)",this.heroContainer.style.borderBottom="1px solid #EAECF0",this.imgContainer.style.opacity="0"):(this.heroContainer.style.height="var(--nile-hero-height)",this.heroContainer.style.background="linear-gradient(180deg, var( --nile-hero-color-bg-from-gradient) 0%, var( --nile-hero-color-bg-to-gradient) 100%)",this.heroContainer.style.borderBottom="",this.imgContainer.style.opacity="1");}},{key:"render",value:function render(){return i(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\t\t<div class=\"hero__container\">\n\t\t\t<div class=\"hero__body\">\n\t\t\t\t<nile-hero-header hero-text=\"","\" icon=\"","\"></nile-hero-header>\n\t\t\t\t<div class=\"hero__slot\">\n\t\t\t\t\t<slot></slot>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class=\"hero__img__container\" id=\"hero__img__container\">\n\t\t\t\t<img src=\"","\" class=\"hero__img\">\n\t\t\t</div>\n\t\t</div>\n\t\t"])),this.heroText,this.icon,this.imgSrc);}}],[{key:"styles",get:function get(){return[o];}}]);}(s));e([r(".hero__container")],a.prototype,"heroContainer",void 0),e([r("nile-hero-header")],a.prototype,"heroHeader",void 0),e([r(".hero__img__container")],a.prototype,"imgContainer",void 0),e([l({reflect:!0})],a.prototype,"icon",void 0),e([l({reflect:!0,type:Boolean})],a.prototype,"collapse",void 0),e([l({reflect:!0,attribute:"img-src"})],a.prototype,"imgSrc",void 0),e([l({reflect:!0,attribute:"hero-text"})],a.prototype,"heroText",void 0),e([n("collapse")],a.prototype,"updateOnCollapseChange",null),_export("N",a=e([t("nile-hero")],a));}};});
|
2
2
|
//# sourceMappingURL=nile-hero.cjs.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"nile-hero.cjs.js","sources":["../../../src/nile-hero/nile-hero.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {LitElement, html, property, CSSResultArray, TemplateResult} from 'lit-element';\nimport { customElement } from 'lit/decorators.js';\nimport {styles} from './nile-hero.css';\nimport NileElement from '../internal/nile-element';\n\n\n/**\n * Nile hero component.\n *\n * @tag nile-hero\n *\n */\n@customElement('nile-hero')\nexport class NileHero extends NileElement {\n\t@property({reflect:true}) icon:string='action'\n\t@property({ reflect: true, attribute: 'img-src' }) imgSrc:string='';\n\t@property({ reflect: true, attribute: 'hero-text' }) heroText:string='Nile Hero';\n\n\t/**\n\t * The styles for nile-hero\n\t * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n\t */\n\tpublic static get styles(): CSSResultArray {\n\t\treturn [styles];\n\t}\n\n\t/* #endregion */\n\n\t/* #region Methods */\n\n\t/**\n\t * Render method\n\t * @slot This is a slot test\n\t */\n\tpublic render(): TemplateResult {\n\t\treturn html`\n\t\t
|
1
|
+
{"version":3,"file":"nile-hero.cjs.js","sources":["../../../src/nile-hero/nile-hero.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {LitElement, html, property, CSSResultArray, TemplateResult,nothing} from 'lit-element';\nimport { customElement, query } from 'lit/decorators.js';\nimport {styles} from './nile-hero.css';\nimport NileElement from '../internal/nile-element';\nimport { watch } from '../internal/watch';\nimport { classMap } from 'lit/directives/class-map.js';\n\n\n/**\n * Nile hero component.\n *\n * @tag nile-hero\n *\n */\n@customElement('nile-hero')\nexport class NileHero extends NileElement {\n\t@query('.hero__container') heroContainer:HTMLElement;\n\t@query('nile-hero-header') heroHeader:HTMLElement;\n\t@query('.hero__img__container') imgContainer:HTMLElement;\n\t@property({ reflect: true }) icon: string = 'action';\n\t@property({ reflect: true, type: Boolean }) collapse: boolean = false;\n\t\n\t@property({ reflect: true, attribute: 'img-src' }) imgSrc: string = '';\n\t@property({ reflect: true, attribute: 'hero-text' }) heroText: string = 'Nile Hero';\n\n\t/**\n\t * The styles for nile-hero\n\t * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n\t */\n\tpublic static get styles(): CSSResultArray {\n\t\treturn [styles];\n\t}\n\n\t/* #endregion */\n\tconnectedCallback() {\n\t\tsuper.connectedCallback();\n\t\tthis.updateComplete.then(() => {\n\t\t\tthis.updateOnCollapseChange();\n\t\t});\n\t}\n\t/* #region Methods */\n\n\t@watch('collapse')\n\tupdateOnCollapseChange(){\n\t\tif(!this.heroContainer) return;\n\t\tconst heroHeaderHeight=this.heroHeader.scrollHeight;\n\t\tif(this.collapse){\n\t\t\tthis.heroContainer.style.height=heroHeaderHeight+'px';\n\t\t\tthis.heroContainer.style.background=\"var(--nile-hero-collapsed-background,#fff)\";\n\t\t\tthis.heroContainer.style.borderBottom=\"1px solid #EAECF0\";\n\t\t\tthis.imgContainer.style.opacity='0';\n\t\t}\n\t\telse{\n\t\t\tthis.heroContainer.style.height=\"var(--nile-hero-height)\";\n\t\t\tthis.heroContainer.style.background=\"linear-gradient(180deg, var( --nile-hero-color-bg-from-gradient) 0%, var( --nile-hero-color-bg-to-gradient) 100%)\";\n\t\t\tthis.heroContainer.style.borderBottom='';\n\t\t\tthis.imgContainer.style.opacity='1';\n\t\t}\n\t}\n\t/**\n\t * Render method\n\t * @slot This is a slot test\n\t */\n\tpublic render(): TemplateResult {\n\t\treturn html`\n\t\t<div class=\"hero__container\">\n\t\t\t<div class=\"hero__body\">\n\t\t\t\t<nile-hero-header hero-text=\"${this.heroText}\" icon=\"${this.icon}\"></nile-hero-header>\n\t\t\t\t<div class=\"hero__slot\">\n\t\t\t\t\t<slot></slot>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class=\"hero__img__container\" id=\"hero__img__container\">\n\t\t\t\t<img src=\"${this.imgSrc}\" class=\"hero__img\">\n\t\t\t</div>\n\t\t</div>\n\t\t`;\n\t}\n\n\t/* #endregion */\n}\n\nexport default NileHero;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-hero': NileHero;\n }\n}"],"names":["NileHero","a","constructor","this","icon","collapse","imgSrc","heroText","_this","_inherits","_s","_createClass","key","value","connectedCallback","super","updateComplete","then","updateOnCollapseChange","heroContainer","heroHeaderHeight","heroHeader","scrollHeight","style","height","background","borderBottom","imgContainer","opacity","render","html","_templateObject","_taggedTemplateLiteral","get","styles","NileElement","__decorate","query","prototype","property","reflect","type","Boolean","attribute","watch","customElement"],"mappings":"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"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
System.register(["../index-c7ad3b47.cjs.js"],function(_export,_context){"use strict";var
|
1
|
+
System.register(["../index-c7ad3b47.cjs.js"],function(_export,_context){"use strict";var i,_templateObject,o;function _taggedTemplateLiteral(strings,raw){if(!raw){raw=strings.slice(0);}return Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}));}return{setters:[function(_index001CjsJs){i=_index001CjsJs.i;}],execute:function execute(){_export("s",o=i(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\n\t:host {\n\t\tdisplay:block;\n\t\t--transition:2000ms;\n\t}\n\t.hero__container{\n\t\toverflow:hidden;\n\t\twidth:100%;\n\t\tposition:relative;\n\t\tdisplay:block;\n \t\ttransition: var(--transition);\n\t}\n\t.hero__body {\n\t\theight:100%;\n\t}\n\n\t.hero__slot {\n\t\tpadding-left: 48px;\n\t\tpadding-top: 24px \n\t}\n\n\t.hero__img__container {\n\t\theight:var(--nile-hero-height);\n\t\toverflow:hidden;\n\t\twidth:max-content;\n\t\tposition: absolute;\n\t\tright: 0;\n\t\tbottom:0;\n\t\ttransition:var(--transition);\n\t}\n\n\t.hero__img {\n\t\tobject-fit:cover;\n\t\theight:var(--nile-hero-height);\n\t\twidth:auto;\n\t}\n"]))));}};});
|
2
2
|
//# sourceMappingURL=nile-hero.css.cjs.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"nile-hero.css.cjs.js","sources":["../../../src/nile-hero/nile-hero.css.ts"],"sourcesContent":["/**\n* Copyright Aquera Inc 2023\n*\n* This source code is licensed under the BSD-3-Clause license found in the\n* LICENSE file in the root directory of this source tree.\n*/\n\nimport {css} from 'lit-element';\n\n/**\n * Hero CSS\n */\nexport const styles = css`\n\n\t:host {\n\t\
|
1
|
+
{"version":3,"file":"nile-hero.css.cjs.js","sources":["../../../src/nile-hero/nile-hero.css.ts"],"sourcesContent":["/**\n* Copyright Aquera Inc 2023\n*\n* This source code is licensed under the BSD-3-Clause license found in the\n* LICENSE file in the root directory of this source tree.\n*/\n\nimport {css} from 'lit-element';\n\n/**\n * Hero CSS\n */\nexport const styles = css`\n\n\t:host {\n\t\tdisplay:block;\n\t\t--transition:2000ms;\n\t}\n\t.hero__container{\n\t\toverflow:hidden;\n\t\twidth:100%;\n\t\tposition:relative;\n\t\tdisplay:block;\n \t\ttransition: var(--transition);\n\t}\n\t.hero__body {\n\t\theight:100%;\n\t}\n\n\t.hero__slot {\n\t\tpadding-left: 48px;\n\t\tpadding-top: 24px \n\t}\n\n\t.hero__img__container {\n\t\theight:var(--nile-hero-height);\n\t\toverflow:hidden;\n\t\twidth:max-content;\n\t\tposition: absolute;\n\t\tright: 0;\n\t\tbottom:0;\n\t\ttransition:var(--transition);\n\t}\n\n\t.hero__img {\n\t\tobject-fit:cover;\n\t\theight:var(--nile-hero-height);\n\t\twidth:auto;\n\t}\n`;\n\nexport default [styles];"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"wXAYaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
|
@@ -1,57 +1,38 @@
|
|
1
|
-
import{i
|
1
|
+
import{i}from"../index-0a3007c5.esm.js";const o=i`
|
2
2
|
|
3
3
|
:host {
|
4
|
-
|
4
|
+
display:block;
|
5
|
+
--transition:2000ms;
|
6
|
+
}
|
7
|
+
.hero__container{
|
8
|
+
overflow:hidden;
|
5
9
|
width:100%;
|
6
10
|
position:relative;
|
7
11
|
display:block;
|
8
|
-
|
9
|
-
background: linear-gradient(180deg, var( --nile-hero-color-bg-from-gradient) 0%, var( --nile-hero-color-bg-to-gradient) 100%);
|
12
|
+
transition: var(--transition);
|
10
13
|
}
|
11
|
-
|
12
14
|
.hero__body {
|
13
15
|
height:100%;
|
14
16
|
}
|
15
17
|
|
16
|
-
.hero__header {
|
17
|
-
display: flex;
|
18
|
-
align-items: center;
|
19
|
-
padding: var(--nile-hero-first-elements-padding);
|
20
|
-
gap: .75rem;
|
21
|
-
}
|
22
|
-
|
23
|
-
.icon__container {
|
24
|
-
height: 25px;
|
25
|
-
place-items: center;
|
26
|
-
display: grid;
|
27
|
-
aspect-ratio: 1 / 1;
|
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
|
-
font-style: normal;
|
37
|
-
font-weight: var(--nile-hero-text-font-weight);
|
38
|
-
}
|
39
|
-
|
40
18
|
.hero__slot {
|
41
|
-
padding:
|
19
|
+
padding-left: 48px;
|
20
|
+
padding-top: 24px
|
42
21
|
}
|
43
22
|
|
44
23
|
.hero__img__container {
|
45
|
-
height:
|
24
|
+
height:var(--nile-hero-height);
|
25
|
+
overflow:hidden;
|
46
26
|
width:max-content;
|
47
27
|
position: absolute;
|
48
28
|
right: 0;
|
49
|
-
|
29
|
+
bottom:0;
|
30
|
+
transition:var(--transition);
|
50
31
|
}
|
51
32
|
|
52
33
|
.hero__img {
|
53
34
|
object-fit:cover;
|
54
|
-
height:
|
35
|
+
height:var(--nile-hero-height);
|
55
36
|
width:auto;
|
56
37
|
}
|
57
38
|
`;export{o as s};
|
@@ -1,16 +1,13 @@
|
|
1
|
-
import{__decorate as e}from"tslib";import{x as
|
1
|
+
import{__decorate as e}from"tslib";import{x as i}from"../index-0a3007c5.esm.js";import{query as r,customElement as t}from"lit/decorators.js";import{s as o}from"./nile-hero.css.esm.js";import{N as s}from"../internal/nile-element.esm.js";import{w as n}from"../internal/watch.esm.js";import{n as l}from"../property-09139d3c.esm.js";import"lit";let a=class extends s{constructor(){super(...arguments),this.icon="action",this.collapse=!1,this.imgSrc="",this.heroText="Nile Hero"}static get styles(){return[o]}connectedCallback(){super.connectedCallback(),this.updateComplete.then((()=>{this.updateOnCollapseChange()}))}updateOnCollapseChange(){if(!this.heroContainer)return;const e=this.heroHeader.scrollHeight;this.collapse?(this.heroContainer.style.height=e+"px",this.heroContainer.style.background="var(--nile-hero-collapsed-background,#fff)",this.heroContainer.style.borderBottom="1px solid #EAECF0",this.imgContainer.style.opacity="0"):(this.heroContainer.style.height="var(--nile-hero-height)",this.heroContainer.style.background="linear-gradient(180deg, var( --nile-hero-color-bg-from-gradient) 0%, var( --nile-hero-color-bg-to-gradient) 100%)",this.heroContainer.style.borderBottom="",this.imgContainer.style.opacity="1")}render(){return i`
|
2
|
+
<div class="hero__container">
|
2
3
|
<div class="hero__body">
|
3
|
-
<
|
4
|
-
<span class="icon__container">
|
5
|
-
<nile-icon name="${this.icon}" ></nile-icon>
|
6
|
-
</span>
|
7
|
-
<span class="hero__text">${this.heroText}</span>
|
8
|
-
</div>
|
4
|
+
<nile-hero-header hero-text="${this.heroText}" icon="${this.icon}"></nile-hero-header>
|
9
5
|
<div class="hero__slot">
|
10
6
|
<slot></slot>
|
11
7
|
</div>
|
12
8
|
</div>
|
13
|
-
<div class="hero__img__container">
|
9
|
+
<div class="hero__img__container" id="hero__img__container">
|
14
10
|
<img src="${this.imgSrc}" class="hero__img">
|
15
11
|
</div>
|
16
|
-
|
12
|
+
</div>
|
13
|
+
`}};e([r(".hero__container")],a.prototype,"heroContainer",void 0),e([r("nile-hero-header")],a.prototype,"heroHeader",void 0),e([r(".hero__img__container")],a.prototype,"imgContainer",void 0),e([l({reflect:!0})],a.prototype,"icon",void 0),e([l({reflect:!0,type:Boolean})],a.prototype,"collapse",void 0),e([l({reflect:!0,attribute:"img-src"})],a.prototype,"imgSrc",void 0),e([l({reflect:!0,attribute:"hero-text"})],a.prototype,"heroText",void 0),e([n("collapse")],a.prototype,"updateOnCollapseChange",null),a=e([t("nile-hero")],a);export{a as N};
|
@@ -0,0 +1,2 @@
|
|
1
|
+
System.register(["./nile-hero-header.cjs.js","tslib","../index-c7ad3b47.cjs.js","lit/decorators.js","./nile-hero-header.css.cjs.js","../internal/nile-element.cjs.js","lit","../property-217fe924.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileHeroHeaderCjsJs){_export("NileHeroHeader",_nileHeroHeaderCjsJs.N);},function(_tslib){},function(_index001CjsJs){},function(_litDecoratorsJs){},function(_nileHeroHeaderCssCjsJs){},function(_internalNileElementCjsJs){},function(_lit){},function(_property002CjsJs){}],execute:function execute(){}};});
|
2
|
+
//# sourceMappingURL=index.cjs.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
export{N as NileHeroHeader}from"./nile-hero-header.esm.js";import"tslib";import"../index-0a3007c5.esm.js";import"lit/decorators.js";import"./nile-hero-header.css.esm.js";import"../internal/nile-element.esm.js";import"lit";import"../property-09139d3c.esm.js";
|
@@ -0,0 +1,2 @@
|
|
1
|
+
function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","../index-c7ad3b47.cjs.js","lit/decorators.js","./nile-hero-header.css.cjs.js","../internal/nile-element.cjs.js","../property-217fe924.cjs.js","lit"],function(_export,_context){"use strict";var e,t,r,s,i,o,_templateObject,n;function _taggedTemplateLiteral(strings,raw){if(!raw){raw=strings.slice(0);}return Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}));}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call==="function")){return call;}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined");}return _assertThisInitialized(self);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}return{setters:[function(_tslib){e=_tslib.__decorate;},function(_index001CjsJs){t=_index001CjsJs.x;},function(_litDecoratorsJs){r=_litDecoratorsJs.customElement;},function(_nileHeroHeaderCssCjsJs){s=_nileHeroHeaderCssCjsJs.s;},function(_internalNileElementCjsJs){i=_internalNileElementCjsJs.N;},function(_property002CjsJs){o=_property002CjsJs.n;},function(_lit){}],execute:function execute(){_export("N",n=/*#__PURE__*/function(_i){function n(){var _this;_classCallCheck(this,n);_this=_callSuper(this,n,arguments),_this.icon="action",_this.heroText="Nile Hero";return _this;}_inherits(n,_i);return _createClass(n,[{key:"render",value:function render(){return t(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\t\t\t\t<span class=\"icon__container\">\n\t\t\t\t\t<nile-icon size=\"16\" name=\"","\"></nile-icon>\n\t\t\t\t</span>\n\t\t\t\t<span class=\"hero__text\">","</span>\n\t\t\t"])),this.icon,this.heroText);}}],[{key:"styles",get:function get(){return[s];}}]);}(i));e([o({reflect:!0})],n.prototype,"icon",void 0),e([o({reflect:!0,attribute:"hero-text"})],n.prototype,"heroText",void 0),_export("N",n=e([r("nile-hero-header")],n));}};});
|
2
|
+
//# sourceMappingURL=nile-hero-header.cjs.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"nile-hero-header.cjs.js","sources":["../../../src/nile-hero-header/nile-hero-header.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {LitElement, html, property, CSSResultArray, TemplateResult} from 'lit-element';\nimport { customElement } from 'lit/decorators.js';\nimport {styles} from './nile-hero-header.css';\nimport NileElement from '../internal/nile-element';\n\n\n/**\n * Nile hero-header component.\n *\n * @tag nile-hero-header\n *\n */\n@customElement('nile-hero-header')\nexport class NileHeroHeader extends NileElement {\n\t@property({ reflect: true }) icon: string = 'action';\n\t@property({ reflect: true, attribute: 'hero-text' }) heroText: string = 'Nile Hero';\n\n\t/**\n\t * The styles for nile-hero-header\n\t * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n\t */\n\tpublic static get styles(): CSSResultArray {\n\t\treturn [styles];\n\t}\n\n\t/* #endregion */\n\n\t/* #region Methods */\n\n\t/**\n\t * Render method\n\t * @slot This is a slot test\n\t */\n\tpublic render(): TemplateResult {\n\t\treturn html`\n\t\t\t\t<span class=\"icon__container\">\n\t\t\t\t\t<nile-icon size=\"16\" name=\"${this.icon}\"></nile-icon>\n\t\t\t\t</span>\n\t\t\t\t<span class=\"hero__text\">${this.heroText}</span>\n\t\t\t`;\n\t}\n\n\t/* #endregion */\n}\n\nexport default NileHeroHeader;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-hero-header': NileHeroHeader;\n }\n}"],"names":["NileHeroHeader","_i","n","constructor","this","icon","heroText","_this","_inherits","_createClass","key","value","render","html","_templateObject","_taggedTemplateLiteral","__decorate","get","styles","NileElement","property","reflect","prototype","attribute","customElement"],"mappings":"+sHAoBaA,CAAN,uBAAAC,EAAA,EAAA,SAAAC,EAAA,CAAAC,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,qCACuBC,KAAAA,CAAIC,IAAW,CAAA,QAAA,CACSD,KAAAA,CAAQE,QAAAA,CAAW,WA4BxE,QAAAC,KAAA,EAtBOC,SAAA,CAAAN,CAAA,CAAAD,EAAA,SAAAQ,YAAA,CAAAP,CAAA,GAAAQ,GAAA,UAAAC,KAAA,CAYA,SAAAC,OAAA,CAAAA,CACN,MAAOC,CAAAA,CAAI,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA,sLAEqBX,IAAKC,CAAAA,IAAAA,CAERD,IAAKE,CAAAA,QAAAA,EAElC,CA1B4BU,KAAAA,GAAAA,UAAAA,GAAAA,CAOtB,SAAAC,IAAA,CACN,CAAA,MAAO,CAACC,CACR,CAAA,EAUM,MApB4BC,IACNH,CAAAA,CAAA,CAA5BI,CAAAA,CAAS,CAAEC,OAAAA,CAAAA,CAAS,CAAgCrB,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAsB,SAAA,CAAA,MAAA,CAAA,IAAA,EACAN,CAAAA,CAAAA,CAAAA,CAAA,CAApDI,CAAAA,CAAS,CAAEC,OAAAA,CAAAA,CAAS,CAAME,CAAAA,SAAAA,CAAW,WAA8CvB,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAsB,SAAA,CAAA,UAAA,CAAA,IAAA,EAFxEtB,CAAAA,CAAAA,OAAAA,KAAAA,CAAAA,CAAcgB,CAAA,CAAA,CAD1BQ,CAAc,CAAA,kBAAA,CAAA,CAAA,CACFxB"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
System.register(["../index-c7ad3b47.cjs.js"],function(_export,_context){"use strict";var e,_templateObject,o;function _taggedTemplateLiteral(strings,raw){if(!raw){raw=strings.slice(0);}return Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}));}return{setters:[function(_index001CjsJs){e=_index001CjsJs.i;}],execute:function execute(){_export("s",o=e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\t\n\t:host {\n\t\twidth:100%;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tpadding:16px 48px;\n\t\tgap: 16px;\n\t}\n\n\t.icon__container {\n\t\theight: 32px;\n\t\taspect-ratio: 1 / 1;\n\t\tplace-items: center;\n\t\tdisplay: grid;\n\t\tborder-radius: 8px;\n\t\tborder: 1px solid #EAECF0;\n\t\tbackground: linear-gradient(180deg, var(--nile-hero-color-icon-bg-from-gradient) 0%, var(--nile-hero-color-icon-bg-to-gradient) 100%);\n\t}\n\n\t.hero__text {\n\t\tcolor: var(--nile-hero-text-color);\n\t\tfont-size: var(--nile-hero-text-font-size);\n\t\tline-height: var(--nile-hero-text-line-height);\n\t\tfont-style: normal;\n\t\tfont-weight: var(--nile-hero-text-font-weight);\n\t}\n"]))));}};});
|
2
|
+
//# sourceMappingURL=nile-hero-header.css.cjs.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"nile-hero-header.css.cjs.js","sources":["../../../src/nile-hero-header/nile-hero-header.css.ts"],"sourcesContent":["/**\n* Copyright Aquera Inc 2023\n*\n* This source code is licensed under the BSD-3-Clause license found in the\n* LICENSE file in the root directory of this source tree.\n*/\n\nimport {css} from 'lit-element';\n\n/**\n * HeroHeader CSS\n */\nexport const styles = css`\n\t\n\t:host {\n\t\twidth:100%;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tpadding:16px 48px;\n\t\tgap: 16px;\n\t}\n\n\t.icon__container {\n\t\theight: 32px;\n\t\taspect-ratio: 1 / 1;\n\t\tplace-items: center;\n\t\tdisplay: grid;\n\t\tborder-radius: 8px;\n\t\tborder: 1px solid #EAECF0;\n\t\tbackground: linear-gradient(180deg, var(--nile-hero-color-icon-bg-from-gradient) 0%, var(--nile-hero-color-icon-bg-to-gradient) 100%);\n\t}\n\n\t.hero__text {\n\t\tcolor: var(--nile-hero-text-color);\n\t\tfont-size: var(--nile-hero-text-font-size);\n\t\tline-height: var(--nile-hero-text-line-height);\n\t\tfont-style: normal;\n\t\tfont-weight: var(--nile-hero-text-font-weight);\n\t}\n`;\n\nexport default [styles];"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"wXAYaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import{i as e}from"../index-0a3007c5.esm.js";const o=e`
|
2
|
+
|
3
|
+
:host {
|
4
|
+
width:100%;
|
5
|
+
display: flex;
|
6
|
+
align-items: center;
|
7
|
+
padding:16px 48px;
|
8
|
+
gap: 16px;
|
9
|
+
}
|
10
|
+
|
11
|
+
.icon__container {
|
12
|
+
height: 32px;
|
13
|
+
aspect-ratio: 1 / 1;
|
14
|
+
place-items: center;
|
15
|
+
display: grid;
|
16
|
+
border-radius: 8px;
|
17
|
+
border: 1px solid #EAECF0;
|
18
|
+
background: linear-gradient(180deg, var(--nile-hero-color-icon-bg-from-gradient) 0%, var(--nile-hero-color-icon-bg-to-gradient) 100%);
|
19
|
+
}
|
20
|
+
|
21
|
+
.hero__text {
|
22
|
+
color: var(--nile-hero-text-color);
|
23
|
+
font-size: var(--nile-hero-text-font-size);
|
24
|
+
line-height: var(--nile-hero-text-line-height);
|
25
|
+
font-style: normal;
|
26
|
+
font-weight: var(--nile-hero-text-font-weight);
|
27
|
+
}
|
28
|
+
`;export{o as s};
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import{__decorate as e}from"tslib";import{x as t}from"../index-0a3007c5.esm.js";import{customElement as r}from"lit/decorators.js";import{s}from"./nile-hero-header.css.esm.js";import{N as i}from"../internal/nile-element.esm.js";import{n as o}from"../property-09139d3c.esm.js";import"lit";let n=class extends i{constructor(){super(...arguments),this.icon="action",this.heroText="Nile Hero"}static get styles(){return[s]}render(){return t`
|
2
|
+
<span class="icon__container">
|
3
|
+
<nile-icon size="16" name="${this.icon}"></nile-icon>
|
4
|
+
</span>
|
5
|
+
<span class="hero__text">${this.heroText}</span>
|
6
|
+
`}};e([o({reflect:!0})],n.prototype,"icon",void 0),e([o({reflect:!0,attribute:"hero-text"})],n.prototype,"heroText",void 0),n=e([r("nile-hero-header")],n);export{n as N};
|
@@ -0,0 +1,2 @@
|
|
1
|
+
System.register([],function(_export,_context){"use strict";var M;return{setters:[],execute:function execute(){_export("d",M="PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTIgNy4yOTMzN0wyLjUwOTI0IDcuODAzMDJMNS41NTEzOSA0Ljc1ODU2TDcuNjM0OTYgNi44NDM4MUwxMS4yNjY0IDMuMjIzMTZWNS4wMTgxMkgxMS45NzkyVjJIOC45NjM1MlYyLjcxMzM3SDEwLjc2NzdMNy42MzQ5NiA1LjgyNDM3TDUuNTUxMzkgMy43MzkxMkwyIDcuMjkzMzdaTTEyIDEzSDExLjE3NjRWNi4zNjczNEgxMlYxM1pNMi44MjM2MyAxM0gyVjkuMjkwNjhIMi44MjM2M1YxM1pNOS4wMzI1NyAxM0g4LjIwODk0VjguMjY4MjhIOS4wMzI1N1YxM1pNNS45MjgxIDEzSDUuMTA0NDdWMTAuOTM5M0g1LjkyODFWMTNaTTUuOTI4MSA5LjI5MDY4SDUuMTA0NDdWNi42NDIxSDUuOTI4MVY5LjI5MDY4WiIgZmlsbD0iYmxhY2siLz48cGF0aCBkPSJNMi41IDQuNUMyLjIgMy4xIDIuMiAzLjEgMSAyLjc1QzIuMiAyLjQgMi4yIDIuNCAyLjUgMUMyLjggMi40IDIuOCAyLjQgNCAyLjc1QzIuOCAzLjEgMi44IDMuMSAyLjUgNC41WiIgZmlsbD0iYmxhY2siLz48L3N2Zz4=");}};});
|
2
|
+
//# sourceMappingURL=data-insight.cjs.js.map
|