@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
@@ -48,7 +48,7 @@ import type NileTabPanel from '../nile-tab-panel/nile-tab-panel';
|
|
48
48
|
@customElement('nile-tab-group')
|
49
49
|
export class NileTabGroup extends NileElement {
|
50
50
|
|
51
|
-
|
51
|
+
static styles: CSSResultGroup = styles;
|
52
52
|
|
53
53
|
private activeTab?: NileTab;
|
54
54
|
private mutationObserver: MutationObserver;
|
@@ -66,6 +66,10 @@ export class NileTabGroup extends NileElement {
|
|
66
66
|
/** The placement of the tabs. */
|
67
67
|
@property() placement: 'top' | 'bottom' | 'start' | 'end' = 'top';
|
68
68
|
|
69
|
+
|
70
|
+
/** Track for showing Indicators and Background. */
|
71
|
+
@property({ type: Boolean, reflect: true,attribute:'no-track'}) noTrack = false;
|
72
|
+
|
69
73
|
/**
|
70
74
|
* When set to auto, navigating tabs with the arrow keys will instantly show the corresponding tab panel. When set to
|
71
75
|
* manual, the tab will receive focus but will not show until the user presses spacebar or enter.
|
@@ -113,11 +117,11 @@ export class NileTabGroup extends NileElement {
|
|
113
117
|
whenAllDefined.then(() => {
|
114
118
|
// Set initial tab state when the tabs become visible
|
115
119
|
const intersectionObserver = new IntersectionObserver((entries, observer) => {
|
116
|
-
|
117
|
-
|
120
|
+
if (entries[0].intersectionRatio > 0) {
|
121
|
+
this.setAriaLabels();
|
118
122
|
this.setActiveTab(this.getActiveTab() ?? this.tabs[0], { emitEvents: false });
|
119
|
-
|
120
|
-
|
123
|
+
observer.unobserve(entries[0].target);
|
124
|
+
}
|
121
125
|
});
|
122
126
|
intersectionObserver.observe(this.tabGroup);
|
123
127
|
});
|
@@ -231,8 +235,8 @@ export class NileTabGroup extends NileElement {
|
|
231
235
|
this.nav.scroll({
|
232
236
|
left:
|
233
237
|
true
|
234
|
-
|
235
|
-
|
238
|
+
? this.nav.scrollLeft + this.nav.clientWidth
|
239
|
+
: this.nav.scrollLeft - this.nav.clientWidth,
|
236
240
|
behavior: 'smooth'
|
237
241
|
});
|
238
242
|
}
|
@@ -241,8 +245,8 @@ export class NileTabGroup extends NileElement {
|
|
241
245
|
this.nav.scroll({
|
242
246
|
left:
|
243
247
|
true
|
244
|
-
|
245
|
-
|
248
|
+
? this.nav.scrollLeft - this.nav.clientWidth
|
249
|
+
: this.nav.scrollLeft + this.nav.clientWidth,
|
246
250
|
behavior: 'smooth'
|
247
251
|
});
|
248
252
|
}
|
@@ -309,8 +313,8 @@ export class NileTabGroup extends NileElement {
|
|
309
313
|
const precedingTabs = allTabs.slice(0, allTabs.indexOf(currentTab));
|
310
314
|
const offset = precedingTabs.reduce(
|
311
315
|
(previous, current) => ({
|
312
|
-
left: previous.left + current.clientWidth +
|
313
|
-
top: previous.top + current.clientHeight +
|
316
|
+
left: previous.left + current.clientWidth + 10,
|
317
|
+
top: previous.top + current.clientHeight + 10
|
314
318
|
}),
|
315
319
|
{ left: 0, top: 0 }
|
316
320
|
);
|
@@ -353,7 +357,7 @@ export class NileTabGroup extends NileElement {
|
|
353
357
|
} else {
|
354
358
|
this.hasScrollControls =
|
355
359
|
['top', 'bottom'].includes(this.placement) && this.nav.scrollWidth > this.nav.clientWidth;
|
356
|
-
|
360
|
+
this.hasScrollControls = false;
|
357
361
|
}
|
358
362
|
}
|
359
363
|
|
@@ -391,7 +395,8 @@ export class NileTabGroup extends NileElement {
|
|
391
395
|
'tab-group--start': this.placement === 'start',
|
392
396
|
'tab-group--end': this.placement === 'end',
|
393
397
|
'tab-group--rtl': true,
|
394
|
-
'tab-group--has-scroll-controls': this.hasScrollControls
|
398
|
+
'tab-group--has-scroll-controls': this.hasScrollControls,
|
399
|
+
'hide__track':this.noTrack
|
395
400
|
})}
|
396
401
|
@click=${this.handleClick}
|
397
402
|
@keydown=${this.handleKeyDown}
|
@@ -413,8 +418,13 @@ export class NileTabGroup extends NileElement {
|
|
413
418
|
|
414
419
|
<div class="tab-group__nav">
|
415
420
|
<div part="tabs" class="tab-group__tabs" role="tablist">
|
416
|
-
<div
|
417
|
-
|
421
|
+
<div
|
422
|
+
part="active-tab-indicator"
|
423
|
+
class=${classMap({
|
424
|
+
'tab-group__indicator': !this.noTrack,
|
425
|
+
})}
|
426
|
+
></div>
|
427
|
+
<slot name="nav" @slotchange=${this.syncTabsAndPanels}></slot>
|
418
428
|
</div>
|
419
429
|
</div>
|
420
430
|
|
@@ -16,6 +16,7 @@ export const styles = css`
|
|
16
16
|
box-sizing: border-box;
|
17
17
|
padding: var(--nile-spacing-spacing-lg) var(--nile-spacing-spacing-3xl);
|
18
18
|
min-height: 44px;
|
19
|
+
height: 44px;
|
19
20
|
}
|
20
21
|
|
21
22
|
.headers {
|
@@ -24,7 +25,7 @@ export const styles = css`
|
|
24
25
|
height: auto;
|
25
26
|
width: 100%;
|
26
27
|
gap: 8px;
|
27
|
-
color: var(--nile-colors-
|
28
|
+
color: var(--nile-colors-gray-light-mode-600);
|
28
29
|
font-family: var(--nile-font-family-serif);
|
29
30
|
font-feature-settings: 'clig' off, 'liga' off;
|
30
31
|
font-size: var(--nile-type-scale-2);
|
@@ -44,7 +45,6 @@ export const styles = css`
|
|
44
45
|
.sorting__icons {
|
45
46
|
display: flex;
|
46
47
|
flex-direction: column;
|
47
|
-
/* justify-content: space-between; */
|
48
48
|
align-items: centre;
|
49
49
|
}
|
50
50
|
|
@@ -21,12 +21,14 @@ export const styles = css`
|
|
21
21
|
.alert {
|
22
22
|
position: relative;
|
23
23
|
display: flex;
|
24
|
-
align-items:
|
24
|
+
align-items: flex-start;
|
25
25
|
border: solid 2px 2px;
|
26
|
-
border-radius:
|
26
|
+
border-radius: 8px;
|
27
27
|
margin: inherit;
|
28
|
-
padding:
|
29
|
-
gap:
|
28
|
+
padding: 16px;
|
29
|
+
gap: 16px;
|
30
|
+
width: max-content;
|
31
|
+
min-width: 400px;
|
30
32
|
}
|
31
33
|
|
32
34
|
.alert:not(.alert--has-icon) .alert__icon,
|
@@ -35,10 +37,8 @@ export const styles = css`
|
|
35
37
|
}
|
36
38
|
|
37
39
|
.alert__prefix-icon-container {
|
38
|
-
|
39
|
-
width: 26px;
|
40
|
+
background-color: red;
|
40
41
|
border-radius: 4px;
|
41
|
-
padding: 6px;
|
42
42
|
box-sizing: border-box;
|
43
43
|
display: flex;
|
44
44
|
justify-content: center;
|
@@ -111,10 +111,9 @@ export const styles = css`
|
|
111
111
|
.alert--black .alert__prefix-icon-container {
|
112
112
|
background: var(--nile-toast-color-icon-background-color-black);
|
113
113
|
}
|
114
|
-
|
114
|
+
|
115
115
|
.alert__message {
|
116
116
|
flex: 1 1 auto;
|
117
|
-
display: block;
|
118
117
|
overflow: hidden;
|
119
118
|
display: flex;
|
120
119
|
align-items: center;
|
@@ -122,17 +121,19 @@ export const styles = css`
|
|
122
121
|
align-items: flex-start;
|
123
122
|
font-family: var(--nile-font-family-serif);
|
124
123
|
font-size: 14px;
|
125
|
-
|
126
|
-
line-height: 14px;
|
124
|
+
line-height: 20px;
|
127
125
|
color: black;
|
126
|
+
gap:3px;
|
128
127
|
}
|
129
128
|
|
130
129
|
.alert__message--title {
|
131
130
|
font-weight: 600;
|
131
|
+
color:#344054;
|
132
132
|
}
|
133
133
|
|
134
134
|
.alert__message--content {
|
135
|
-
|
135
|
+
font-weight:400;
|
136
|
+
color:#475467;
|
136
137
|
}
|
137
138
|
|
138
139
|
.alert__message--content-only {
|
@@ -168,11 +169,11 @@ export const styles = css`
|
|
168
169
|
padding: 0 6px;
|
169
170
|
|
170
171
|
color: var(--nile-colors-dark-900);
|
171
|
-
font-family:
|
172
|
-
font-size:
|
172
|
+
font-family: var
|
173
|
+
font-size: 14px;
|
173
174
|
font-style: normal;
|
174
|
-
font-weight:
|
175
|
-
line-height:
|
175
|
+
font-weight: 400;
|
176
|
+
line-height: 20px;
|
176
177
|
letter-spacing: 0.2px;
|
177
178
|
}
|
178
179
|
|
@@ -192,15 +192,15 @@ export class NileToast extends NileElement {
|
|
192
192
|
case 'success':
|
193
193
|
return 'check-circle';
|
194
194
|
case 'info':
|
195
|
-
return 'info-
|
195
|
+
return 'info-circle';
|
196
196
|
case 'warning':
|
197
|
-
return '
|
197
|
+
return 'alert-circle';
|
198
198
|
case 'error':
|
199
|
-
return '
|
199
|
+
return 'alert-circle';
|
200
200
|
case 'gray':
|
201
|
-
return 'info-
|
201
|
+
return 'info-circle';
|
202
202
|
case 'black':
|
203
|
-
return 'info-
|
203
|
+
return 'info-circle';
|
204
204
|
}
|
205
205
|
}
|
206
206
|
|
@@ -310,8 +310,9 @@ export class NileToast extends NileElement {
|
|
310
310
|
>
|
311
311
|
<nile-icon
|
312
312
|
name="${this.getIconNameByVariant()}"
|
313
|
-
size="
|
313
|
+
size="20"
|
314
314
|
color="${this.getIconColorByVariant()}"
|
315
|
+
method="stroke"
|
315
316
|
></nile-icon>
|
316
317
|
</div>
|
317
318
|
`
|
@@ -364,7 +365,8 @@ export class NileToast extends NileElement {
|
|
364
365
|
class="alert__close-button"
|
365
366
|
name="close"
|
366
367
|
label="close"
|
367
|
-
size="
|
368
|
+
size="20"
|
369
|
+
color="#98A2B3"
|
368
370
|
@click=${this.handleCloseClick}
|
369
371
|
></nile-icon-button>
|
370
372
|
`
|
@@ -21,7 +21,7 @@ export const styles = css`
|
|
21
21
|
|
22
22
|
.tooltip {
|
23
23
|
--arrow-size: 6px;
|
24
|
-
--arrow-color:
|
24
|
+
--arrow-color: var(--nile-tooltip-color-background);
|
25
25
|
}
|
26
26
|
|
27
27
|
.tooltip::part(popup) {
|
@@ -49,13 +49,13 @@ export const styles = css`
|
|
49
49
|
display: block;
|
50
50
|
width: max-content;
|
51
51
|
max-width: var(--max-width);
|
52
|
-
border-radius:
|
52
|
+
border-radius: 4px;
|
53
53
|
background-color: var(--nile-tooltip-color-background);
|
54
|
-
font-size:var(--nile-tooltip-font-size-sm);
|
55
|
-
font-weight:var(
|
56
|
-
line-height:var(--nile-tooltip-line-height-sm);
|
54
|
+
font-size: var(--nile-tooltip-font-size-sm);
|
55
|
+
font-weight: var(--nile-tooltip-font-weight-sm);
|
56
|
+
line-height: var(--nile-tooltip-line-height-sm);
|
57
57
|
padding: var(--nile-tooltip-padding-y) var(--nile-tooltip-padding-x);
|
58
|
-
color:
|
58
|
+
color: #ffffff;
|
59
59
|
pointer-events: none;
|
60
60
|
word-break: break-word;
|
61
61
|
}
|
package/tsconfig.json
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
|
1
|
+
import { puppeteerLauncher } from '@web/test-runner-puppeteer';
|
2
2
|
|
3
|
-
const filteredLogs = ['Running in dev mode', 'lit-html is in dev mode'];
|
3
|
+
const filteredLogs = ['Running in dev mode', 'lit-html is in dev mode', 'Multiple versions of Lit loaded', 'The main \'lit-element\' module entrypoint is deprecated'];
|
4
4
|
|
5
5
|
export default /** @type {import("@web/test-runner").TestRunnerConfig} */ ({
|
6
6
|
/** Test files to run */
|
7
|
-
files: 'dist/
|
7
|
+
files: 'dist/src/**/*.test.js',
|
8
8
|
|
9
9
|
/** Resolve bare module imports */
|
10
10
|
nodeResolve: {
|
@@ -21,21 +21,34 @@ export default /** @type {import("@web/test-runner").TestRunnerConfig} */ ({
|
|
21
21
|
return true;
|
22
22
|
},
|
23
23
|
|
24
|
-
/** Compile JS for older browsers. Requires @web/dev-server-esbuild plugin */
|
25
|
-
// esbuildTarget: 'auto',
|
26
|
-
|
27
24
|
/** Amount of browsers to run concurrently */
|
28
|
-
|
25
|
+
concurrentBrowsers: 2,
|
29
26
|
|
30
27
|
/** Amount of test files per browser to test concurrently */
|
31
|
-
|
28
|
+
concurrency: 1,
|
32
29
|
|
33
30
|
/** Browsers to run tests on */
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
31
|
+
browsers: [
|
32
|
+
puppeteerLauncher({ launchOptions: { headless: true } }),
|
33
|
+
],
|
34
|
+
|
35
|
+
/** Test framework configuration */
|
36
|
+
testFramework: {
|
37
|
+
config: {
|
38
|
+
timeout: 5000 // Increase the default timeout to 5 seconds
|
39
|
+
}
|
40
|
+
},
|
39
41
|
|
40
|
-
|
42
|
+
/** Coverage configuration */
|
43
|
+
coverageConfig: {
|
44
|
+
include: ['dist/src/**/*.js'],
|
45
|
+
exclude: ['dist/src/**/*.test.js'],
|
46
|
+
reporter: ['html', 'text-summary'],
|
47
|
+
thresholds: {
|
48
|
+
statements: 100,
|
49
|
+
branches: 100,
|
50
|
+
functions: 100,
|
51
|
+
lines: 100,
|
52
|
+
},
|
53
|
+
},
|
41
54
|
});
|
@@ -1,29 +0,0 @@
|
|
1
|
-
import { TemplateResult } from 'lit';
|
2
|
-
import '../src/nile-button';
|
3
|
-
declare const _default: {
|
4
|
-
title: string;
|
5
|
-
component: string;
|
6
|
-
argTypes: {
|
7
|
-
name: {
|
8
|
-
control: string;
|
9
|
-
};
|
10
|
-
textColor: {
|
11
|
-
control: string;
|
12
|
-
};
|
13
|
-
};
|
14
|
-
};
|
15
|
-
export default _default;
|
16
|
-
interface Story<T> {
|
17
|
-
(args: T): TemplateResult;
|
18
|
-
args?: Partial<T>;
|
19
|
-
argTypes?: Record<string, unknown>;
|
20
|
-
}
|
21
|
-
interface ArgTypes {
|
22
|
-
title?: string;
|
23
|
-
name?: string;
|
24
|
-
textColor?: string;
|
25
|
-
slot?: TemplateResult;
|
26
|
-
}
|
27
|
-
export declare const Regular: Story<ArgTypes>;
|
28
|
-
export declare const CustomTitle: Story<ArgTypes>;
|
29
|
-
export declare const SlottedContent: Story<ArgTypes>;
|
@@ -1,27 +0,0 @@
|
|
1
|
-
import { html } from 'lit';
|
2
|
-
import '../src/nile-button';
|
3
|
-
export default {
|
4
|
-
title: 'Nile Icons',
|
5
|
-
component: 'nile-icon',
|
6
|
-
argTypes: {
|
7
|
-
name: { control: 'text' },
|
8
|
-
textColor: { control: 'color' },
|
9
|
-
},
|
10
|
-
};
|
11
|
-
const Template = ({ title = 'Agents', textColor, name, slot, }) => html `
|
12
|
-
<h1>heading 2 ${name}</h1>
|
13
|
-
`;
|
14
|
-
export const Regular = Template.bind({});
|
15
|
-
export const CustomTitle = Template.bind({});
|
16
|
-
CustomTitle.args = {
|
17
|
-
title: 'Agent Icon',
|
18
|
-
name: 'agents',
|
19
|
-
};
|
20
|
-
export const SlottedContent = Template.bind({});
|
21
|
-
SlottedContent.args = {
|
22
|
-
slot: html `<p>Slotted content</p>`,
|
23
|
-
};
|
24
|
-
SlottedContent.argTypes = {
|
25
|
-
slot: { table: { disable: true } },
|
26
|
-
};
|
27
|
-
//# sourceMappingURL=icons.stories.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"icons.stories.js","sourceRoot":"","sources":["../../stories/icons.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAC;AAC3C,OAAO,oBAAoB,CAAC;AAE5B,eAAe;IACb,KAAK,EAAE,YAAY;IACnB,SAAS,EAAE,WAAW;IACtB,QAAQ,EAAE;QACR,IAAI,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;QACzB,SAAS,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE;KAChC;CACF,CAAC;AAeF,MAAM,QAAQ,GAAoB,CAAC,EACjC,KAAK,GAAG,QAAQ,EAChB,SAAS,EACT,IAAI,EACJ,IAAI,GACK,EAAE,EAAE,CAAC,IAAI,CAAA;kBACF,IAAI;CACrB,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAEzC,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAE7C,WAAW,CAAC,IAAI,GAAG;IACjB,KAAK,EAAE,YAAY;IACnB,IAAI,EAAE,QAAQ;CACf,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAChD,cAAc,CAAC,IAAI,GAAG;IACpB,IAAI,EAAE,IAAI,CAAA,wBAAwB;CACnC,CAAC;AACF,cAAc,CAAC,QAAQ,GAAG;IACxB,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;CACnC,CAAC","sourcesContent":["import { html, TemplateResult } from 'lit';\nimport '../src/nile-button';\n\nexport default {\n title: 'Nile Icons',\n component: 'nile-icon',\n argTypes: {\n name: { control: 'text' },\n textColor: { control: 'color' },\n },\n};\n\ninterface Story<T> {\n (args: T): TemplateResult;\n args?: Partial<T>;\n argTypes?: Record<string, unknown>;\n}\n\ninterface ArgTypes {\n title?: string;\n name?: string;\n textColor?: string;\n slot?: TemplateResult;\n}\n\nconst Template: Story<ArgTypes> = ({\n title = 'Agents',\n textColor,\n name,\n slot,\n}: ArgTypes) => html`\n <h1>heading 2 ${name}</h1>\n`;\n\nexport const Regular = Template.bind({});\n\nexport const CustomTitle = Template.bind({});\n\nCustomTitle.args = {\n title: 'Agent Icon',\n name: 'agents',\n};\n\nexport const SlottedContent = Template.bind({});\nSlottedContent.args = {\n slot: html`<p>Slotted content</p>`,\n};\nSlottedContent.argTypes = {\n slot: { table: { disable: true } },\n};\n"]}
|
@@ -1,33 +0,0 @@
|
|
1
|
-
import { TemplateResult } from 'lit';
|
2
|
-
import '../src/nile-button';
|
3
|
-
declare const _default: {
|
4
|
-
title: string;
|
5
|
-
component: string;
|
6
|
-
argTypes: {
|
7
|
-
title: {
|
8
|
-
control: string;
|
9
|
-
};
|
10
|
-
counter: {
|
11
|
-
control: string;
|
12
|
-
};
|
13
|
-
textColor: {
|
14
|
-
control: string;
|
15
|
-
};
|
16
|
-
};
|
17
|
-
};
|
18
|
-
export default _default;
|
19
|
-
interface Story<T> {
|
20
|
-
(args: T): TemplateResult;
|
21
|
-
args?: Partial<T>;
|
22
|
-
argTypes?: Record<string, unknown>;
|
23
|
-
}
|
24
|
-
interface ArgTypes {
|
25
|
-
name?: string;
|
26
|
-
counter?: number;
|
27
|
-
textColor?: string;
|
28
|
-
slot?: TemplateResult;
|
29
|
-
}
|
30
|
-
export declare const Regular: Story<ArgTypes>;
|
31
|
-
export declare const CustomTitle: Story<ArgTypes>;
|
32
|
-
export declare const CustomCounter: Story<ArgTypes>;
|
33
|
-
export declare const SlottedContent: Story<ArgTypes>;
|
@@ -1,37 +0,0 @@
|
|
1
|
-
import { html } from 'lit';
|
2
|
-
import '../src/nile-button';
|
3
|
-
export default {
|
4
|
-
title: 'NileButton',
|
5
|
-
component: 'nile-button',
|
6
|
-
argTypes: {
|
7
|
-
title: { control: 'text' },
|
8
|
-
counter: { control: 'number' },
|
9
|
-
textColor: { control: 'color' },
|
10
|
-
},
|
11
|
-
};
|
12
|
-
const Template = ({ name = 'Primary', counter = 5, textColor, slot, }) => html `
|
13
|
-
<nile-button
|
14
|
-
style="--nile-elements-text-color: ${textColor || 'black'}"
|
15
|
-
.name=${name}
|
16
|
-
.counter=${counter}
|
17
|
-
>
|
18
|
-
${slot}
|
19
|
-
</nile-button>
|
20
|
-
`;
|
21
|
-
export const Regular = Template.bind({});
|
22
|
-
export const CustomTitle = Template.bind({});
|
23
|
-
CustomTitle.args = {
|
24
|
-
name: 'Primary',
|
25
|
-
};
|
26
|
-
export const CustomCounter = Template.bind({});
|
27
|
-
CustomCounter.args = {
|
28
|
-
counter: 123456,
|
29
|
-
};
|
30
|
-
export const SlottedContent = Template.bind({});
|
31
|
-
SlottedContent.args = {
|
32
|
-
slot: html `<p>Slotted content</p>`,
|
33
|
-
};
|
34
|
-
SlottedContent.argTypes = {
|
35
|
-
slot: { table: { disable: true } },
|
36
|
-
};
|
37
|
-
//# sourceMappingURL=index.stories.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.stories.js","sourceRoot":"","sources":["../../stories/index.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAC;AAC3C,OAAO,oBAAoB,CAAC;AAE5B,eAAe;IACb,KAAK,EAAE,YAAY;IACnB,SAAS,EAAE,aAAa;IACxB,QAAQ,EAAE;QACR,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;QAC1B,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;QAC9B,SAAS,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE;KAChC;CACF,CAAC;AAeF,MAAM,QAAQ,GAAoB,CAAC,EACjC,IAAI,GAAG,SAAS,EAChB,OAAO,GAAG,CAAC,EACX,SAAS,EACT,IAAI,GACK,EAAE,EAAE,CAAC,IAAI,CAAA;;yCAEqB,SAAS,IAAI,OAAO;YACjD,IAAI;eACD,OAAO;;MAEhB,IAAI;;CAET,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAEzC,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC7C,WAAW,CAAC,IAAI,GAAG;IACjB,IAAI,EAAE,SAAS;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC/C,aAAa,CAAC,IAAI,GAAG;IACnB,OAAO,EAAE,MAAM;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAChD,cAAc,CAAC,IAAI,GAAG;IACpB,IAAI,EAAE,IAAI,CAAA,wBAAwB;CACnC,CAAC;AACF,cAAc,CAAC,QAAQ,GAAG;IACxB,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;CACnC,CAAC","sourcesContent":["import { html, TemplateResult } from 'lit';\nimport '../src/nile-button';\n\nexport default {\n title: 'NileButton',\n component: 'nile-button',\n argTypes: {\n title: { control: 'text' },\n counter: { control: 'number' },\n textColor: { control: 'color' },\n },\n};\n\ninterface Story<T> {\n (args: T): TemplateResult;\n args?: Partial<T>;\n argTypes?: Record<string, unknown>;\n}\n\ninterface ArgTypes {\n name?: string;\n counter?: number;\n textColor?: string;\n slot?: TemplateResult;\n}\n\nconst Template: Story<ArgTypes> = ({\n name = 'Primary',\n counter = 5,\n textColor,\n slot,\n}: ArgTypes) => html`\n <nile-button\n style=\"--nile-elements-text-color: ${textColor || 'black'}\"\n .name=${name}\n .counter=${counter}\n >\n ${slot}\n </nile-button>\n`;\n\nexport const Regular = Template.bind({});\n\nexport const CustomTitle = Template.bind({});\nCustomTitle.args = {\n name: 'Primary',\n};\n\nexport const CustomCounter = Template.bind({});\nCustomCounter.args = {\n counter: 123456,\n};\n\nexport const SlottedContent = Template.bind({});\nSlottedContent.args = {\n slot: html`<p>Slotted content</p>`,\n};\nSlottedContent.argTypes = {\n slot: { table: { disable: true } },\n};\n"]}
|