kemet-ui 2.0.0 → 2.0.2
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/custom-elements.json +305 -305
- package/dist/components/kemet-alert/docs/stories.js.map +1 -1
- package/dist/components/kemet-avatar/docs/stories.d.ts +1 -0
- package/dist/components/kemet-avatar/docs/stories.js +5 -4
- package/dist/components/kemet-avatar/docs/stories.js.map +1 -1
- package/dist/components/kemet-card/docs/stories.js.map +1 -0
- package/dist/components/kemet-carousel/docs/stories.js.map +1 -0
- package/dist/components/kemet-carousel/kemet-carousel.d.ts +13 -0
- package/dist/components/kemet-carousel/kemet-carousel.js +2 -0
- package/dist/components/kemet-carousel/kemet-carousel.js.map +1 -1
- package/dist/components/kemet-checkbox/docs/stories.js.map +1 -0
- package/dist/components/kemet-combo/docs/stories.js.map +1 -0
- package/dist/components/kemet-count/docs/stories.js.map +1 -0
- package/dist/components/kemet-draggable/docs/stories.js.map +1 -0
- package/dist/components/kemet-draggable/kemet-draggable.d.ts +7 -0
- package/dist/components/kemet-draggable/kemet-draggable.js.map +1 -1
- package/dist/components/kemet-drawer/docs/stories.js.map +1 -0
- package/dist/components/kemet-fab/docs/stories.js.map +1 -0
- package/dist/components/kemet-field/docs/stories.js.map +1 -0
- package/dist/components/kemet-flipcard/docs/stories.js.map +1 -0
- package/dist/components/kemet-icon/docs/stories.js.map +1 -0
- package/dist/components/kemet-input/docs/stories.js.map +1 -0
- package/dist/components/kemet-modal/docs/stories.js.map +1 -0
- package/dist/components/kemet-password/docs/stories.js.map +1 -0
- package/dist/components/kemet-popper/docs/stories.js.map +1 -0
- package/dist/components/kemet-radio/docs/stories.js.map +1 -0
- package/dist/components/kemet-rotator/docs/stories.js.map +1 -0
- package/dist/components/kemet-scroll-link/docs/stories.js.map +1 -0
- package/dist/components/kemet-scroll-nav/docs/stories.js.map +1 -0
- package/dist/components/kemet-scroll-nav/styles.js +1 -0
- package/dist/components/kemet-scroll-nav/styles.js.map +1 -1
- package/dist/components/kemet-scroll-snap/docs/stories.js.map +1 -0
- package/dist/components/kemet-select/docs/stories.js.map +1 -0
- package/dist/components/kemet-sortable/docs/stories.js.map +1 -0
- package/dist/components/kemet-svgs/docs/stories.js.map +1 -0
- package/dist/components/kemet-tabs/docs/stories.js.map +1 -0
- package/dist/components/kemet-tabs/kemet-tab-panel.js.map +1 -1
- package/dist/components/kemet-tabs/kemet-tabs.d.ts +1 -5
- package/dist/components/kemet-tabs/kemet-tabs.js +8 -27
- package/dist/components/kemet-tabs/kemet-tabs.js.map +1 -1
- package/dist/components/kemet-tabs/styles.js +14 -0
- package/dist/components/kemet-tabs/styles.js.map +1 -1
- package/dist/components/kemet-tabs/types.d.ts +1 -3
- package/dist/components/kemet-tabs/types.js.map +1 -1
- package/dist/components/kemet-textarea/docs/stories.js.map +1 -0
- package/dist/components/kemet-toggle/docs/stories.js.map +1 -0
- package/dist/components/kemet-tooltip/docs/stories.js.map +1 -0
- package/dist/components/kemet-tracker/docs/stories.js.map +1 -0
- package/dist/components/kemet-upload/docs/stories.js.map +1 -0
- package/dist/kemet-components.bundle.js +7 -7
- package/dist/kemet-components.bundle.js.map +1 -1
- package/dist/kemet-components.cjs +1802 -1804
- package/dist/kemet-components.js +1802 -1804
- package/dist/styles/components/_config.scss +4 -0
- package/dist/styles/components/accordion.scss +9 -0
- package/dist/styles/components/drawer.scss +11 -0
- package/dist/styles/components/modal.scss +8 -0
- package/dist/styles/components/scrollsnap.scss +11 -0
- package/dist/styles/core/attributes.scss +38 -0
- package/dist/styles/core/layout.scss +169 -0
- package/dist/styles/kemet.base.css +1 -0
- package/dist/styles/kemet.base.scss +28 -0
- package/dist/styles/kemet.components.scss +4 -0
- package/dist/styles/kemet.core.css +155 -154
- package/dist/styles/kemet.core.css.map +1 -1
- package/dist/styles/kemet.core.scss +2 -0
- package/dist/styles/shared/_config.scss +358 -0
- package/dist/styles/shared/_helpers.scss +458 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/dist/.storybook/decorators.d.ts +0 -2
- package/dist/.storybook/decorators.js +0 -28
- package/dist/.storybook/decorators.js.map +0 -1
- package/dist/components/kemet-alert/stories.d.ts +0 -9
- package/dist/components/kemet-alert/stories.js +0 -77
- package/dist/components/kemet-alert/stories.js.map +0 -1
- package/dist/components/kemet-avatar/stories.d.ts +0 -10
- package/dist/components/kemet-avatar/stories.js +0 -85
- package/dist/components/kemet-avatar/stories.js.map +0 -1
- package/dist/src/components/kemet-accordion/kemet-accordion-panel.d.ts +0 -51
- package/dist/src/components/kemet-accordion/kemet-accordion-panel.js +0 -136
- package/dist/src/components/kemet-accordion/kemet-accordion-panel.js.map +0 -1
- package/dist/src/components/kemet-accordion/kemet-accordion.d.ts +0 -37
- package/dist/src/components/kemet-accordion/kemet-accordion.js +0 -129
- package/dist/src/components/kemet-accordion/kemet-accordion.js.map +0 -1
- package/dist/src/components/kemet-accordion/stories.d.ts +0 -10
- package/dist/src/components/kemet-accordion/stories.js +0 -44
- package/dist/src/components/kemet-accordion/stories.js.map +0 -1
- package/dist/src/components/kemet-accordion/styles.d.ts +0 -2
- package/dist/src/components/kemet-accordion/styles.js +0 -42
- package/dist/src/components/kemet-accordion/styles.js.map +0 -1
- package/dist/src/components/kemet-accordion/types.d.ts +0 -9
- package/dist/src/components/kemet-accordion/types.js +0 -2
- package/dist/src/components/kemet-accordion/types.js.map +0 -1
- package/dist/src/components/kemet-alert/docs/stories.d.ts +0 -9
- package/dist/src/components/kemet-alert/docs/stories.js +0 -77
- package/dist/src/components/kemet-alert/docs/stories.js.map +0 -1
- package/dist/src/components/kemet-alert/kemet-alert.d.ts +0 -52
- package/dist/src/components/kemet-alert/kemet-alert.js +0 -108
- package/dist/src/components/kemet-alert/kemet-alert.js.map +0 -1
- package/dist/src/components/kemet-alert/styles.d.ts +0 -1
- package/dist/src/components/kemet-alert/styles.js +0 -104
- package/dist/src/components/kemet-alert/styles.js.map +0 -1
- package/dist/src/components/kemet-alert/types.d.ts +0 -10
- package/dist/src/components/kemet-alert/types.js +0 -2
- package/dist/src/components/kemet-alert/types.js.map +0 -1
- package/dist/src/components/kemet-avatar/docs/stories.d.ts +0 -11
- package/dist/src/components/kemet-avatar/docs/stories.js +0 -86
- package/dist/src/components/kemet-avatar/docs/stories.js.map +0 -1
- package/dist/src/components/kemet-avatar/kemet-avatar.d.ts +0 -43
- package/dist/src/components/kemet-avatar/kemet-avatar.js +0 -78
- package/dist/src/components/kemet-avatar/kemet-avatar.js.map +0 -1
- package/dist/src/components/kemet-avatar/kemet-avatars.d.ts +0 -20
- package/dist/src/components/kemet-avatar/kemet-avatars.js +0 -25
- package/dist/src/components/kemet-avatar/kemet-avatars.js.map +0 -1
- package/dist/src/components/kemet-avatar/styles.d.ts +0 -2
- package/dist/src/components/kemet-avatar/styles.js +0 -58
- package/dist/src/components/kemet-avatar/styles.js.map +0 -1
- package/dist/src/components/kemet-avatar/types.d.ts +0 -8
- package/dist/src/components/kemet-avatar/types.js +0 -2
- package/dist/src/components/kemet-avatar/types.js.map +0 -1
- package/dist/src/components/kemet-badge/docs/stories.d.ts +0 -9
- package/dist/src/components/kemet-badge/docs/stories.js +0 -40
- package/dist/src/components/kemet-badge/docs/stories.js.map +0 -1
- package/dist/src/components/kemet-badge/kemet-badge.d.ts +0 -30
- package/dist/src/components/kemet-badge/kemet-badge.js +0 -55
- package/dist/src/components/kemet-badge/kemet-badge.js.map +0 -1
- package/dist/src/components/kemet-badge/styles.d.ts +0 -1
- package/dist/src/components/kemet-badge/styles.js +0 -40
- package/dist/src/components/kemet-badge/styles.js.map +0 -1
- package/dist/src/components/kemet-badge/types.d.ts +0 -6
- package/dist/src/components/kemet-badge/types.js +0 -2
- package/dist/src/components/kemet-badge/types.js.map +0 -1
- package/dist/src/components/kemet-button/docs/stories.d.ts +0 -9
- package/dist/src/components/kemet-button/docs/stories.js +0 -51
- package/dist/src/components/kemet-button/docs/stories.js.map +0 -1
- package/dist/src/components/kemet-button/kemet-button.d.ts +0 -89
- package/dist/src/components/kemet-button/kemet-button.js +0 -153
- package/dist/src/components/kemet-button/kemet-button.js.map +0 -1
- package/dist/src/components/kemet-button/styles.d.ts +0 -1
- package/dist/src/components/kemet-button/styles.js +0 -73
- package/dist/src/components/kemet-button/styles.js.map +0 -1
- package/dist/src/components/kemet-button/types.d.ts +0 -10
- package/dist/src/components/kemet-button/types.js +0 -2
- package/dist/src/components/kemet-button/types.js.map +0 -1
- package/dist/src/components/kemet-card/docs/stories.js.map +0 -1
- package/dist/src/components/kemet-card/kemet-card.d.ts +0 -47
- package/dist/src/components/kemet-card/kemet-card.js +0 -65
- package/dist/src/components/kemet-card/kemet-card.js.map +0 -1
- package/dist/src/components/kemet-card/styles.d.ts +0 -1
- package/dist/src/components/kemet-card/styles.js +0 -63
- package/dist/src/components/kemet-card/styles.js.map +0 -1
- package/dist/src/components/kemet-card/types.d.ts +0 -3
- package/dist/src/components/kemet-card/types.js +0 -2
- package/dist/src/components/kemet-card/types.js.map +0 -1
- package/dist/src/components/kemet-carousel/docs/stories.js.map +0 -1
- package/dist/src/components/kemet-carousel/kemet-carousel-current.d.ts +0 -26
- package/dist/src/components/kemet-carousel/kemet-carousel-current.js +0 -44
- package/dist/src/components/kemet-carousel/kemet-carousel-current.js.map +0 -1
- package/dist/src/components/kemet-carousel/kemet-carousel-first.d.ts +0 -25
- package/dist/src/components/kemet-carousel/kemet-carousel-first.js +0 -50
- package/dist/src/components/kemet-carousel/kemet-carousel-first.js.map +0 -1
- package/dist/src/components/kemet-carousel/kemet-carousel-last.d.ts +0 -25
- package/dist/src/components/kemet-carousel/kemet-carousel-last.js +0 -50
- package/dist/src/components/kemet-carousel/kemet-carousel-last.js.map +0 -1
- package/dist/src/components/kemet-carousel/kemet-carousel-link.d.ts +0 -31
- package/dist/src/components/kemet-carousel/kemet-carousel-link.js +0 -64
- package/dist/src/components/kemet-carousel/kemet-carousel-link.js.map +0 -1
- package/dist/src/components/kemet-carousel/kemet-carousel-next.d.ts +0 -25
- package/dist/src/components/kemet-carousel/kemet-carousel-next.js +0 -50
- package/dist/src/components/kemet-carousel/kemet-carousel-next.js.map +0 -1
- package/dist/src/components/kemet-carousel/kemet-carousel-prev.d.ts +0 -25
- package/dist/src/components/kemet-carousel/kemet-carousel-prev.js +0 -50
- package/dist/src/components/kemet-carousel/kemet-carousel-prev.js.map +0 -1
- package/dist/src/components/kemet-carousel/kemet-carousel-slide.d.ts +0 -29
- package/dist/src/components/kemet-carousel/kemet-carousel-slide.js +0 -53
- package/dist/src/components/kemet-carousel/kemet-carousel-slide.js.map +0 -1
- package/dist/src/components/kemet-carousel/kemet-carousel-total.d.ts +0 -26
- package/dist/src/components/kemet-carousel/kemet-carousel-total.js +0 -44
- package/dist/src/components/kemet-carousel/kemet-carousel-total.js.map +0 -1
- package/dist/src/components/kemet-carousel/kemet-carousel.d.ts +0 -114
- package/dist/src/components/kemet-carousel/kemet-carousel.js +0 -410
- package/dist/src/components/kemet-carousel/kemet-carousel.js.map +0 -1
- package/dist/src/components/kemet-carousel/styles.d.ts +0 -1
- package/dist/src/components/kemet-carousel/styles.js +0 -66
- package/dist/src/components/kemet-carousel/styles.js.map +0 -1
- package/dist/src/components/kemet-carousel/types.d.ts +0 -21
- package/dist/src/components/kemet-carousel/types.js +0 -2
- package/dist/src/components/kemet-carousel/types.js.map +0 -1
- package/dist/src/components/kemet-checkbox/docs/stories.js.map +0 -1
- package/dist/src/components/kemet-checkbox/kemet-checkbox.d.ts +0 -71
- package/dist/src/components/kemet-checkbox/kemet-checkbox.js +0 -192
- package/dist/src/components/kemet-checkbox/kemet-checkbox.js.map +0 -1
- package/dist/src/components/kemet-checkbox/styles.d.ts +0 -1
- package/dist/src/components/kemet-checkbox/styles.js +0 -83
- package/dist/src/components/kemet-checkbox/styles.js.map +0 -1
- package/dist/src/components/kemet-checkbox/types.d.ts +0 -15
- package/dist/src/components/kemet-checkbox/types.js +0 -2
- package/dist/src/components/kemet-checkbox/types.js.map +0 -1
- package/dist/src/components/kemet-combo/docs/stories.js.map +0 -1
- package/dist/src/components/kemet-combo/kemet-combo.d.ts +0 -50
- package/dist/src/components/kemet-combo/kemet-combo.js +0 -162
- package/dist/src/components/kemet-combo/kemet-combo.js.map +0 -1
- package/dist/src/components/kemet-combo/styles.d.ts +0 -1
- package/dist/src/components/kemet-combo/styles.js +0 -44
- package/dist/src/components/kemet-combo/styles.js.map +0 -1
- package/dist/src/components/kemet-combo/types.d.ts +0 -5
- package/dist/src/components/kemet-combo/types.js +0 -2
- package/dist/src/components/kemet-combo/types.js.map +0 -1
- package/dist/src/components/kemet-count/docs/stories.js.map +0 -1
- package/dist/src/components/kemet-count/kemet-count.d.ts +0 -39
- package/dist/src/components/kemet-count/kemet-count.js +0 -98
- package/dist/src/components/kemet-count/kemet-count.js.map +0 -1
- package/dist/src/components/kemet-draggable/docs/stories.js.map +0 -1
- package/dist/src/components/kemet-draggable/kemet-draggable.d.ts +0 -49
- package/dist/src/components/kemet-draggable/kemet-draggable.js +0 -137
- package/dist/src/components/kemet-draggable/kemet-draggable.js.map +0 -1
- package/dist/src/components/kemet-draggable/types.d.ts +0 -6
- package/dist/src/components/kemet-draggable/types.js +0 -2
- package/dist/src/components/kemet-draggable/types.js.map +0 -1
- package/dist/src/components/kemet-drawer/docs/stories.js.map +0 -1
- package/dist/src/components/kemet-drawer/kemet-drawer.d.ts +0 -48
- package/dist/src/components/kemet-drawer/kemet-drawer.js +0 -95
- package/dist/src/components/kemet-drawer/kemet-drawer.js.map +0 -1
- package/dist/src/components/kemet-drawer/styles.d.ts +0 -2
- package/dist/src/components/kemet-drawer/styles.js +0 -314
- package/dist/src/components/kemet-drawer/styles.js.map +0 -1
- package/dist/src/components/kemet-drawer/types.d.ts +0 -8
- package/dist/src/components/kemet-drawer/types.js +0 -2
- package/dist/src/components/kemet-drawer/types.js.map +0 -1
- package/dist/src/components/kemet-fab/docs/stories.js.map +0 -1
- package/dist/src/components/kemet-fab/kemet-fab.d.ts +0 -49
- package/dist/src/components/kemet-fab/kemet-fab.js +0 -107
- package/dist/src/components/kemet-fab/kemet-fab.js.map +0 -1
- package/dist/src/components/kemet-fab/styles.d.ts +0 -1
- package/dist/src/components/kemet-fab/styles.js +0 -95
- package/dist/src/components/kemet-fab/styles.js.map +0 -1
- package/dist/src/components/kemet-fab/types.d.ts +0 -8
- package/dist/src/components/kemet-fab/types.js +0 -2
- package/dist/src/components/kemet-fab/types.js.map +0 -1
- package/dist/src/components/kemet-field/docs/stories.js.map +0 -1
- package/dist/src/components/kemet-field/kemet-field.d.ts +0 -61
- package/dist/src/components/kemet-field/kemet-field.js +0 -144
- package/dist/src/components/kemet-field/kemet-field.js.map +0 -1
- package/dist/src/components/kemet-field/styles.d.ts +0 -1
- package/dist/src/components/kemet-field/styles.js +0 -61
- package/dist/src/components/kemet-field/styles.js.map +0 -1
- package/dist/src/components/kemet-field/types.d.ts +0 -13
- package/dist/src/components/kemet-field/types.js +0 -2
- package/dist/src/components/kemet-field/types.js.map +0 -1
- package/dist/src/components/kemet-flipcard/docs/stories.js.map +0 -1
- package/dist/src/components/kemet-flipcard/kemet-flipcard-trigger.d.ts +0 -21
- package/dist/src/components/kemet-flipcard/kemet-flipcard-trigger.js +0 -42
- package/dist/src/components/kemet-flipcard/kemet-flipcard-trigger.js.map +0 -1
- package/dist/src/components/kemet-flipcard/kemet-flipcard.d.ts +0 -52
- package/dist/src/components/kemet-flipcard/kemet-flipcard.js +0 -131
- package/dist/src/components/kemet-flipcard/kemet-flipcard.js.map +0 -1
- package/dist/src/components/kemet-flipcard/styles.d.ts +0 -1
- package/dist/src/components/kemet-flipcard/styles.js +0 -85
- package/dist/src/components/kemet-flipcard/styles.js.map +0 -1
- package/dist/src/components/kemet-flipcard/types.d.ts +0 -7
- package/dist/src/components/kemet-flipcard/types.js +0 -2
- package/dist/src/components/kemet-flipcard/types.js.map +0 -1
- package/dist/src/components/kemet-icon/docs/stories.js.map +0 -1
- package/dist/src/components/kemet-icon/kemet-icon.d.ts +0 -28
- package/dist/src/components/kemet-icon/kemet-icon.js +0 -114
- package/dist/src/components/kemet-icon/kemet-icon.js.map +0 -1
- package/dist/src/components/kemet-icon/styles.d.ts +0 -1
- package/dist/src/components/kemet-icon/styles.js +0 -9
- package/dist/src/components/kemet-icon/styles.js.map +0 -1
- package/dist/src/components/kemet-icon/types.d.ts +0 -5
- package/dist/src/components/kemet-icon/types.js +0 -2
- package/dist/src/components/kemet-icon/types.js.map +0 -1
- package/dist/src/components/kemet-input/docs/stories.js.map +0 -1
- package/dist/src/components/kemet-input/kemet-input.d.ts +0 -193
- package/dist/src/components/kemet-input/kemet-input.js +0 -417
- package/dist/src/components/kemet-input/kemet-input.js.map +0 -1
- package/dist/src/components/kemet-input/styles.d.ts +0 -1
- package/dist/src/components/kemet-input/styles.js +0 -115
- package/dist/src/components/kemet-input/styles.js.map +0 -1
- package/dist/src/components/kemet-input/types.d.ts +0 -35
- package/dist/src/components/kemet-input/types.js +0 -2
- package/dist/src/components/kemet-input/types.js.map +0 -1
- package/dist/src/components/kemet-modal/docs/stories.js.map +0 -1
- package/dist/src/components/kemet-modal/kemet-modal-close.d.ts +0 -21
- package/dist/src/components/kemet-modal/kemet-modal-close.js +0 -40
- package/dist/src/components/kemet-modal/kemet-modal-close.js.map +0 -1
- package/dist/src/components/kemet-modal/kemet-modal.d.ts +0 -49
- package/dist/src/components/kemet-modal/kemet-modal.js +0 -131
- package/dist/src/components/kemet-modal/kemet-modal.js.map +0 -1
- package/dist/src/components/kemet-modal/styles.d.ts +0 -2
- package/dist/src/components/kemet-modal/styles.js +0 -267
- package/dist/src/components/kemet-modal/styles.js.map +0 -1
- package/dist/src/components/kemet-modal/types.d.ts +0 -8
- package/dist/src/components/kemet-modal/types.js +0 -2
- package/dist/src/components/kemet-modal/types.js.map +0 -1
- package/dist/src/components/kemet-password/docs/stories.js.map +0 -1
- package/dist/src/components/kemet-password/kemet-password.d.ts +0 -77
- package/dist/src/components/kemet-password/kemet-password.js +0 -184
- package/dist/src/components/kemet-password/kemet-password.js.map +0 -1
- package/dist/src/components/kemet-password/styles.d.ts +0 -1
- package/dist/src/components/kemet-password/styles.js +0 -80
- package/dist/src/components/kemet-password/styles.js.map +0 -1
- package/dist/src/components/kemet-password/types.d.ts +0 -10
- package/dist/src/components/kemet-password/types.js +0 -2
- package/dist/src/components/kemet-password/types.js.map +0 -1
- package/dist/src/components/kemet-popper/docs/stories.js.map +0 -1
- package/dist/src/components/kemet-popper/kemet-popper-close.d.ts +0 -22
- package/dist/src/components/kemet-popper/kemet-popper-close.js +0 -49
- package/dist/src/components/kemet-popper/kemet-popper-close.js.map +0 -1
- package/dist/src/components/kemet-popper/kemet-popper.d.ts +0 -63
- package/dist/src/components/kemet-popper/kemet-popper.js +0 -182
- package/dist/src/components/kemet-popper/kemet-popper.js.map +0 -1
- package/dist/src/components/kemet-popper/styles.d.ts +0 -1
- package/dist/src/components/kemet-popper/styles.effects.d.ts +0 -8
- package/dist/src/components/kemet-popper/styles.effects.js +0 -306
- package/dist/src/components/kemet-popper/styles.effects.js.map +0 -1
- package/dist/src/components/kemet-popper/styles.js +0 -28
- package/dist/src/components/kemet-popper/styles.js.map +0 -1
- package/dist/src/components/kemet-popper/types.d.ts +0 -3
- package/dist/src/components/kemet-popper/types.js +0 -2
- package/dist/src/components/kemet-popper/types.js.map +0 -1
- package/dist/src/components/kemet-radio/docs/stories.js.map +0 -1
- package/dist/src/components/kemet-radio/kemet-radio.d.ts +0 -56
- package/dist/src/components/kemet-radio/kemet-radio.js +0 -129
- package/dist/src/components/kemet-radio/kemet-radio.js.map +0 -1
- package/dist/src/components/kemet-radio/kemet-radios.d.ts +0 -49
- package/dist/src/components/kemet-radio/kemet-radios.js +0 -143
- package/dist/src/components/kemet-radio/kemet-radios.js.map +0 -1
- package/dist/src/components/kemet-radio/styles.d.ts +0 -2
- package/dist/src/components/kemet-radio/styles.js +0 -102
- package/dist/src/components/kemet-radio/styles.js.map +0 -1
- package/dist/src/components/kemet-radio/types.d.ts +0 -20
- package/dist/src/components/kemet-radio/types.js +0 -2
- package/dist/src/components/kemet-radio/types.js.map +0 -1
- package/dist/src/components/kemet-rotator/docs/stories.js.map +0 -1
- package/dist/src/components/kemet-rotator/kemet-rotator.d.ts +0 -40
- package/dist/src/components/kemet-rotator/kemet-rotator.js +0 -122
- package/dist/src/components/kemet-rotator/kemet-rotator.js.map +0 -1
- package/dist/src/components/kemet-rotator/styles.d.ts +0 -1
- package/dist/src/components/kemet-rotator/styles.js +0 -72
- package/dist/src/components/kemet-rotator/styles.js.map +0 -1
- package/dist/src/components/kemet-rotator/types.d.ts +0 -9
- package/dist/src/components/kemet-rotator/types.js +0 -2
- package/dist/src/components/kemet-rotator/types.js.map +0 -1
- package/dist/src/components/kemet-scroll-link/docs/stories.js.map +0 -1
- package/dist/src/components/kemet-scroll-link/kemet-scroll-link.d.ts +0 -31
- package/dist/src/components/kemet-scroll-link/kemet-scroll-link.js +0 -82
- package/dist/src/components/kemet-scroll-link/kemet-scroll-link.js.map +0 -1
- package/dist/src/components/kemet-scroll-link/types.d.ts +0 -6
- package/dist/src/components/kemet-scroll-link/types.js +0 -2
- package/dist/src/components/kemet-scroll-link/types.js.map +0 -1
- package/dist/src/components/kemet-scroll-nav/docs/stories.js.map +0 -1
- package/dist/src/components/kemet-scroll-nav/kemet-scroll-nav.d.ts +0 -34
- package/dist/src/components/kemet-scroll-nav/kemet-scroll-nav.js +0 -70
- package/dist/src/components/kemet-scroll-nav/kemet-scroll-nav.js.map +0 -1
- package/dist/src/components/kemet-scroll-nav/styles.d.ts +0 -1
- package/dist/src/components/kemet-scroll-nav/styles.js +0 -27
- package/dist/src/components/kemet-scroll-nav/styles.js.map +0 -1
- package/dist/src/components/kemet-scroll-nav/types.d.ts +0 -6
- package/dist/src/components/kemet-scroll-nav/types.js +0 -2
- package/dist/src/components/kemet-scroll-nav/types.js.map +0 -1
- package/dist/src/components/kemet-scroll-snap/docs/stories.js.map +0 -1
- package/dist/src/components/kemet-scroll-snap/kemet-scroll-snap-paginator.d.ts +0 -44
- package/dist/src/components/kemet-scroll-snap/kemet-scroll-snap-paginator.js +0 -120
- package/dist/src/components/kemet-scroll-snap/kemet-scroll-snap-paginator.js.map +0 -1
- package/dist/src/components/kemet-scroll-snap/kemet-scroll-snap-slide.d.ts +0 -30
- package/dist/src/components/kemet-scroll-snap/kemet-scroll-snap-slide.js +0 -53
- package/dist/src/components/kemet-scroll-snap/kemet-scroll-snap-slide.js.map +0 -1
- package/dist/src/components/kemet-scroll-snap/kemet-scroll-snap.d.ts +0 -46
- package/dist/src/components/kemet-scroll-snap/kemet-scroll-snap.js +0 -122
- package/dist/src/components/kemet-scroll-snap/kemet-scroll-snap.js.map +0 -1
- package/dist/src/components/kemet-scroll-snap/styles.d.ts +0 -2
- package/dist/src/components/kemet-scroll-snap/styles.js +0 -74
- package/dist/src/components/kemet-scroll-snap/styles.js.map +0 -1
- package/dist/src/components/kemet-scroll-snap/types.d.ts +0 -20
- package/dist/src/components/kemet-scroll-snap/types.js +0 -2
- package/dist/src/components/kemet-scroll-snap/types.js.map +0 -1
- package/dist/src/components/kemet-select/docs/stories.js.map +0 -1
- package/dist/src/components/kemet-select/kemet-option.d.ts +0 -29
- package/dist/src/components/kemet-select/kemet-option.js +0 -45
- package/dist/src/components/kemet-select/kemet-option.js.map +0 -1
- package/dist/src/components/kemet-select/kemet-select.d.ts +0 -110
- package/dist/src/components/kemet-select/kemet-select.js +0 -239
- package/dist/src/components/kemet-select/kemet-select.js.map +0 -1
- package/dist/src/components/kemet-select/styles.d.ts +0 -1
- package/dist/src/components/kemet-select/styles.js +0 -73
- package/dist/src/components/kemet-select/styles.js.map +0 -1
- package/dist/src/components/kemet-select/types.d.ts +0 -20
- package/dist/src/components/kemet-select/types.js +0 -2
- package/dist/src/components/kemet-select/types.js.map +0 -1
- package/dist/src/components/kemet-sortable/docs/stories.js.map +0 -1
- package/dist/src/components/kemet-sortable/kemet-sortable-item.d.ts +0 -21
- package/dist/src/components/kemet-sortable/kemet-sortable-item.js +0 -30
- package/dist/src/components/kemet-sortable/kemet-sortable-item.js.map +0 -1
- package/dist/src/components/kemet-sortable/kemet-sortable.d.ts +0 -25
- package/dist/src/components/kemet-sortable/kemet-sortable.js +0 -77
- package/dist/src/components/kemet-sortable/kemet-sortable.js.map +0 -1
- package/dist/src/components/kemet-sortable/styles.d.ts +0 -2
- package/dist/src/components/kemet-sortable/styles.js +0 -22
- package/dist/src/components/kemet-sortable/styles.js.map +0 -1
- package/dist/src/components/kemet-sortable/types.d.ts +0 -3
- package/dist/src/components/kemet-sortable/types.js +0 -2
- package/dist/src/components/kemet-sortable/types.js.map +0 -1
- package/dist/src/components/kemet-svgs/docs/stories.js.map +0 -1
- package/dist/src/components/kemet-svgs/kemet-svg.d.ts +0 -38
- package/dist/src/components/kemet-svgs/kemet-svg.js +0 -97
- package/dist/src/components/kemet-svgs/kemet-svg.js.map +0 -1
- package/dist/src/components/kemet-svgs/kemet-svgs.d.ts +0 -27
- package/dist/src/components/kemet-svgs/kemet-svgs.js +0 -51
- package/dist/src/components/kemet-svgs/kemet-svgs.js.map +0 -1
- package/dist/src/components/kemet-svgs/types.d.ts +0 -10
- package/dist/src/components/kemet-svgs/types.js +0 -2
- package/dist/src/components/kemet-svgs/types.js.map +0 -1
- package/dist/src/components/kemet-tabs/docs/stories.js.map +0 -1
- package/dist/src/components/kemet-tabs/kemet-tab-panel.d.ts +0 -27
- package/dist/src/components/kemet-tabs/kemet-tab-panel.js +0 -52
- package/dist/src/components/kemet-tabs/kemet-tab-panel.js.map +0 -1
- package/dist/src/components/kemet-tabs/kemet-tab.d.ts +0 -37
- package/dist/src/components/kemet-tabs/kemet-tab.js +0 -79
- package/dist/src/components/kemet-tabs/kemet-tab.js.map +0 -1
- package/dist/src/components/kemet-tabs/kemet-tabs.d.ts +0 -91
- package/dist/src/components/kemet-tabs/kemet-tabs.js +0 -523
- package/dist/src/components/kemet-tabs/kemet-tabs.js.map +0 -1
- package/dist/src/components/kemet-tabs/styles.d.ts +0 -3
- package/dist/src/components/kemet-tabs/styles.js +0 -268
- package/dist/src/components/kemet-tabs/styles.js.map +0 -1
- package/dist/src/components/kemet-tabs/types.d.ts +0 -27
- package/dist/src/components/kemet-tabs/types.js +0 -2
- package/dist/src/components/kemet-tabs/types.js.map +0 -1
- package/dist/src/components/kemet-textarea/docs/stories.js.map +0 -1
- package/dist/src/components/kemet-textarea/kemet-textarea.d.ts +0 -123
- package/dist/src/components/kemet-textarea/kemet-textarea.js +0 -293
- package/dist/src/components/kemet-textarea/kemet-textarea.js.map +0 -1
- package/dist/src/components/kemet-textarea/styles.d.ts +0 -1
- package/dist/src/components/kemet-textarea/styles.js +0 -69
- package/dist/src/components/kemet-textarea/styles.js.map +0 -1
- package/dist/src/components/kemet-textarea/types.d.ts +0 -20
- package/dist/src/components/kemet-textarea/types.js +0 -2
- package/dist/src/components/kemet-textarea/types.js.map +0 -1
- package/dist/src/components/kemet-toggle/docs/stories.js.map +0 -1
- package/dist/src/components/kemet-toggle/kemet-toggle.d.ts +0 -60
- package/dist/src/components/kemet-toggle/kemet-toggle.js +0 -130
- package/dist/src/components/kemet-toggle/kemet-toggle.js.map +0 -1
- package/dist/src/components/kemet-toggle/styles.d.ts +0 -1
- package/dist/src/components/kemet-toggle/styles.js +0 -84
- package/dist/src/components/kemet-toggle/styles.js.map +0 -1
- package/dist/src/components/kemet-toggle/types.d.ts +0 -10
- package/dist/src/components/kemet-toggle/types.js +0 -2
- package/dist/src/components/kemet-toggle/types.js.map +0 -1
- package/dist/src/components/kemet-tooltip/docs/stories.js.map +0 -1
- package/dist/src/components/kemet-tooltip/kemet-tooltip.d.ts +0 -33
- package/dist/src/components/kemet-tooltip/kemet-tooltip.js +0 -68
- package/dist/src/components/kemet-tooltip/kemet-tooltip.js.map +0 -1
- package/dist/src/components/kemet-tooltip/styles.d.ts +0 -1
- package/dist/src/components/kemet-tooltip/styles.js +0 -61
- package/dist/src/components/kemet-tooltip/styles.js.map +0 -1
- package/dist/src/components/kemet-tooltip/types.d.ts +0 -3
- package/dist/src/components/kemet-tooltip/types.js +0 -2
- package/dist/src/components/kemet-tooltip/types.js.map +0 -1
- package/dist/src/components/kemet-tracker/docs/stories.js.map +0 -1
- package/dist/src/components/kemet-tracker/kemet-tracker-step.d.ts +0 -63
- package/dist/src/components/kemet-tracker/kemet-tracker-step.js +0 -127
- package/dist/src/components/kemet-tracker/kemet-tracker-step.js.map +0 -1
- package/dist/src/components/kemet-tracker/kemet-tracker.d.ts +0 -26
- package/dist/src/components/kemet-tracker/kemet-tracker.js +0 -70
- package/dist/src/components/kemet-tracker/kemet-tracker.js.map +0 -1
- package/dist/src/components/kemet-tracker/styles.d.ts +0 -1
- package/dist/src/components/kemet-tracker/styles.js +0 -111
- package/dist/src/components/kemet-tracker/styles.js.map +0 -1
- package/dist/src/components/kemet-tracker/types.d.ts +0 -13
- package/dist/src/components/kemet-tracker/types.js +0 -2
- package/dist/src/components/kemet-tracker/types.js.map +0 -1
- package/dist/src/components/kemet-upload/docs/stories.js.map +0 -1
- package/dist/src/components/kemet-upload/kemet-upload-file.d.ts +0 -46
- package/dist/src/components/kemet-upload/kemet-upload-file.js +0 -110
- package/dist/src/components/kemet-upload/kemet-upload-file.js.map +0 -1
- package/dist/src/components/kemet-upload/kemet-upload.d.ts +0 -58
- package/dist/src/components/kemet-upload/kemet-upload.js +0 -154
- package/dist/src/components/kemet-upload/kemet-upload.js.map +0 -1
- package/dist/src/components/kemet-upload/styles.d.ts +0 -3
- package/dist/src/components/kemet-upload/styles.js +0 -169
- package/dist/src/components/kemet-upload/styles.js.map +0 -1
- package/dist/src/components/kemet-upload/types.d.ts +0 -21
- package/dist/src/components/kemet-upload/types.js +0 -2
- package/dist/src/components/kemet-upload/types.js.map +0 -1
- package/dist/src/stories/styles/borders/borders.stories.d.ts +0 -5
- package/dist/src/stories/styles/borders/borders.stories.js +0 -46
- package/dist/src/stories/styles/borders/borders.stories.js.map +0 -1
- package/dist/src/stories/styles/borders/stories.d.ts +0 -5
- package/dist/src/stories/styles/borders/stories.js +0 -46
- package/dist/src/stories/styles/borders/stories.js.map +0 -1
- package/dist/src/stories/styles/borders.stories.d.ts +0 -5
- package/dist/src/stories/styles/borders.stories.js +0 -46
- package/dist/src/stories/styles/borders.stories.js.map +0 -1
- package/dist/src/stories/styles/elevation/elevation.stories.d.ts +0 -1
- package/dist/src/stories/styles/elevation/elevation.stories.js +0 -15
- package/dist/src/stories/styles/elevation/elevation.stories.js.map +0 -1
- package/dist/src/stories/styles/elevation/stories.d.ts +0 -5
- package/dist/src/stories/styles/elevation/stories.js +0 -21
- package/dist/src/stories/styles/elevation/stories.js.map +0 -1
- package/dist/src/stories/styles/flexcolumn/stories.d.ts +0 -6
- package/dist/src/stories/styles/flexcolumn/stories.js +0 -44
- package/dist/src/stories/styles/flexcolumn/stories.js.map +0 -1
- package/dist/src/stories/styles/flexgrid/stories.d.ts +0 -6
- package/dist/src/stories/styles/flexgrid/stories.js +0 -44
- package/dist/src/stories/styles/flexgrid/stories.js.map +0 -1
- package/dist/src/stories/styles/flexlist/stories.d.ts +0 -7
- package/dist/src/stories/styles/flexlist/stories.js +0 -45
- package/dist/src/stories/styles/flexlist/stories.js.map +0 -1
- package/dist/src/stories/styles/flexrow/stories.d.ts +0 -10
- package/dist/src/stories/styles/flexrow/stories.js +0 -77
- package/dist/src/stories/styles/flexrow/stories.js.map +0 -1
- package/dist/src/stories/styles/spacing/stories.d.ts +0 -6
- package/dist/src/stories/styles/spacing/stories.js +0 -49
- package/dist/src/stories/styles/spacing/stories.js.map +0 -1
- package/dist/src/stories/styles/typealignment/stories.d.ts +0 -5
- package/dist/src/stories/styles/typealignment/stories.js +0 -14
- package/dist/src/stories/styles/typealignment/stories.js.map +0 -1
- package/dist/src/stories/styles/typography/stories.d.ts +0 -6
- package/dist/src/stories/styles/typography/stories.js +0 -41
- package/dist/src/stories/styles/typography/stories.js.map +0 -1
- package/dist/src/stories/styles/visibility/stories.d.ts +0 -6
- package/dist/src/stories/styles/visibility/stories.js +0 -60
- package/dist/src/stories/styles/visibility/stories.js.map +0 -1
- package/dist/src/stories/templates/bootstrap/stories.d.ts +0 -6
- package/dist/src/stories/templates/bootstrap/stories.js +0 -159
- package/dist/src/stories/templates/bootstrap/stories.js.map +0 -1
- package/dist/src/stories/templates/foundation/stories.d.ts +0 -8
- package/dist/src/stories/templates/foundation/stories.js +0 -911
- package/dist/src/stories/templates/foundation/stories.js.map +0 -1
- package/dist/src/utilities/controllers/forms.d.ts +0 -11
- package/dist/src/utilities/controllers/forms.js +0 -102
- package/dist/src/utilities/controllers/forms.js.map +0 -1
- package/dist/src/utilities/misc/constants.d.ts +0 -5
- package/dist/src/utilities/misc/constants.js +0 -6
- package/dist/src/utilities/misc/constants.js.map +0 -1
- package/dist/src/utilities/misc/events.d.ts +0 -1
- package/dist/src/utilities/misc/events.js +0 -4
- package/dist/src/utilities/misc/events.js.map +0 -1
- package/dist/utilities/misc/decorators.d.ts +0 -1
- package/dist/utilities/misc/decorators.js +0 -5
- package/dist/utilities/misc/decorators.js.map +0 -1
- /package/dist/{src/components → components}/kemet-card/docs/stories.d.ts +0 -0
- /package/dist/{src/components → components}/kemet-card/docs/stories.js +0 -0
- /package/dist/{src/components → components}/kemet-carousel/docs/stories.d.ts +0 -0
- /package/dist/{src/components → components}/kemet-carousel/docs/stories.js +0 -0
- /package/dist/{src/components → components}/kemet-checkbox/docs/stories.d.ts +0 -0
- /package/dist/{src/components → components}/kemet-checkbox/docs/stories.js +0 -0
- /package/dist/{src/components → components}/kemet-combo/docs/stories.d.ts +0 -0
- /package/dist/{src/components → components}/kemet-combo/docs/stories.js +0 -0
- /package/dist/{src/components → components}/kemet-count/docs/stories.d.ts +0 -0
- /package/dist/{src/components → components}/kemet-count/docs/stories.js +0 -0
- /package/dist/{src/components → components}/kemet-draggable/docs/stories.d.ts +0 -0
- /package/dist/{src/components → components}/kemet-draggable/docs/stories.js +0 -0
- /package/dist/{src/components → components}/kemet-drawer/docs/stories.d.ts +0 -0
- /package/dist/{src/components → components}/kemet-drawer/docs/stories.js +0 -0
- /package/dist/{src/components → components}/kemet-fab/docs/stories.d.ts +0 -0
- /package/dist/{src/components → components}/kemet-fab/docs/stories.js +0 -0
- /package/dist/{src/components → components}/kemet-field/docs/stories.d.ts +0 -0
- /package/dist/{src/components → components}/kemet-field/docs/stories.js +0 -0
- /package/dist/{src/components → components}/kemet-flipcard/docs/stories.d.ts +0 -0
- /package/dist/{src/components → components}/kemet-flipcard/docs/stories.js +0 -0
- /package/dist/{src/components → components}/kemet-icon/docs/stories.d.ts +0 -0
- /package/dist/{src/components → components}/kemet-icon/docs/stories.js +0 -0
- /package/dist/{src/components → components}/kemet-input/docs/stories.d.ts +0 -0
- /package/dist/{src/components → components}/kemet-input/docs/stories.js +0 -0
- /package/dist/{src/components → components}/kemet-modal/docs/stories.d.ts +0 -0
- /package/dist/{src/components → components}/kemet-modal/docs/stories.js +0 -0
- /package/dist/{src/components → components}/kemet-password/docs/stories.d.ts +0 -0
- /package/dist/{src/components → components}/kemet-password/docs/stories.js +0 -0
- /package/dist/{src/components → components}/kemet-popper/docs/stories.d.ts +0 -0
- /package/dist/{src/components → components}/kemet-popper/docs/stories.js +0 -0
- /package/dist/{src/components → components}/kemet-radio/docs/stories.d.ts +0 -0
- /package/dist/{src/components → components}/kemet-radio/docs/stories.js +0 -0
- /package/dist/{src/components → components}/kemet-rotator/docs/stories.d.ts +0 -0
- /package/dist/{src/components → components}/kemet-rotator/docs/stories.js +0 -0
- /package/dist/{src/components → components}/kemet-scroll-link/docs/stories.d.ts +0 -0
- /package/dist/{src/components → components}/kemet-scroll-link/docs/stories.js +0 -0
- /package/dist/{src/components → components}/kemet-scroll-nav/docs/stories.d.ts +0 -0
- /package/dist/{src/components → components}/kemet-scroll-nav/docs/stories.js +0 -0
- /package/dist/{src/components → components}/kemet-scroll-snap/docs/stories.d.ts +0 -0
- /package/dist/{src/components → components}/kemet-scroll-snap/docs/stories.js +0 -0
- /package/dist/{src/components → components}/kemet-select/docs/stories.d.ts +0 -0
- /package/dist/{src/components → components}/kemet-select/docs/stories.js +0 -0
- /package/dist/{src/components → components}/kemet-sortable/docs/stories.d.ts +0 -0
- /package/dist/{src/components → components}/kemet-sortable/docs/stories.js +0 -0
- /package/dist/{src/components → components}/kemet-svgs/docs/stories.d.ts +0 -0
- /package/dist/{src/components → components}/kemet-svgs/docs/stories.js +0 -0
- /package/dist/{src/components → components}/kemet-tabs/docs/stories.d.ts +0 -0
- /package/dist/{src/components → components}/kemet-tabs/docs/stories.js +0 -0
- /package/dist/{src/components → components}/kemet-textarea/docs/stories.d.ts +0 -0
- /package/dist/{src/components → components}/kemet-textarea/docs/stories.js +0 -0
- /package/dist/{src/components → components}/kemet-toggle/docs/stories.d.ts +0 -0
- /package/dist/{src/components → components}/kemet-toggle/docs/stories.js +0 -0
- /package/dist/{src/components → components}/kemet-tooltip/docs/stories.d.ts +0 -0
- /package/dist/{src/components → components}/kemet-tooltip/docs/stories.js +0 -0
- /package/dist/{src/components → components}/kemet-tracker/docs/stories.d.ts +0 -0
- /package/dist/{src/components → components}/kemet-tracker/docs/stories.js +0 -0
- /package/dist/{src/components → components}/kemet-upload/docs/stories.d.ts +0 -0
- /package/dist/{src/components → components}/kemet-upload/docs/stories.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/components/kemet-fab/types.ts"],"names":[],"mappings":"","sourcesContent":["export interface KemetFabInterface extends HTMLElement {\n expanded?: boolean,\n outlined?: boolean,\n disabled?: boolean,\n pill?: boolean,\n expandPoint?: number,\n collapsePoint?: number,\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stories.js","sourceRoot":"","sources":["../../../../../src/components/kemet-field/docs/stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAG3B,OAAO,gBAAgB,CAAC;AACxB,OAAO,+BAA+B,CA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,IAAI,EAAE,MAAM,EAAE;SAC1B;QACD,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;YAC1B,OAAO,EAAE,CAAC,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,CAAC;SACrD;KACF;CACF,CAAC","sourcesContent":["import { html } from 'lit';\nimport type { Meta, StoryObj } from '@storybook/web-components';\n\nimport '../kemet-field';\nimport '../../kemet-input/kemet-input';\nimport '../../kemet-textarea/kemet-textarea';\nimport '../../kemet-select/kemet-select';\nimport '../../kemet-select/kemet-option';\n\nimport '../../kemet-tabs/kemet-tabs';\nimport '../../kemet-tabs/kemet-tab';\nimport '../../kemet-tabs/kemet-tab-panel';\n\nconst meta: Meta = {\n title: 'Components / Field',\n component: 'kemet-accordion',\n};\nexport default meta;\n\ntype Story = StoryObj;\n\nconst TemplateInput = ({\n label = 'Label', message = '', status = 'standard',\n}) => html`\n <kemet-field slug=\"unique-identifier\" label=\"${label}\" message=\"${message}\" status=\"${status}\">\n <kemet-input required slot=\"input\" name=\"input-field\" status=\"${status}\" validate-on-blur></kemet-input>\n </kemet-field>\n`;\n\nconst TemplateSelect = ({\n label = 'Label', message = '', status = 'standard',\n}) => html`\n <kemet-field slug=\"unique-identifier\" label=\"${label}\" message=\"${message}\" status=\"${status}\">\n <kemet-select slot=\"input\" name=\"select-field\" status=\"${status}\" required>\n <kemet-option label=\"Choose an Item\" value=\"\"></kemet-option>\n <kemet-option label=\"Item 1\" value=\"1\"></kemet-option>\n <kemet-option label=\"Item 2\" value=\"2\" selected></kemet-option>\n <kemet-option label=\"Item 3\" value=\"3\"></kemet-option>\n <kemet-option label=\"Item 4\" value=\"4\" disabled></kemet-option>\n </kemet-select>\n </kemet-field>\n`;\n\nconst TemplateTextarea = ({\n label = 'Label', message = '', status = 'standard',\n}) => html`\n <kemet-field slug=\"unique-identifier\" label=\"${label}\" message=\"${message}\" status=\"${status}\">\n <kemet-textarea required slot=\"input\" name=\"textarea-field\" status=\"${status}\"></kemet-textarea>\n </kemet-field>\n`;\n\nexport const Standard: Story = {\n render: args => TemplateInput(args),\n args: {\n label: 'Label',\n message: '',\n status: 'standard',\n },\n argTypes: {\n label: {\n name: 'Label',\n control: { type: 'text' },\n },\n message: {\n name: 'Validation Message',\n control: { type: 'text' },\n },\n status: {\n name: 'Status',\n control: { type: 'radio' },\n options: ['standard', 'error', 'success', 'warning'],\n },\n }\n};\n\nexport const Select: Story = {\n render: args => TemplateSelect(args),\n args: {\n label: 'Label',\n message: '',\n status: 'standard',\n },\n argTypes: {\n label: {\n name: 'Label',\n control: { type: 'text' },\n },\n message: {\n name: 'Validation Message',\n control: { type: 'text' },\n },\n status: {\n name: 'Status',\n control: { type: 'radio' },\n options: ['standard', 'error', 'success', 'warning'],\n },\n }\n};\n\nexport const Textarea: Story = {\n render: args => TemplateTextarea(args),\n args: {\n label: 'Label',\n message: '',\n status: 'standard',\n },\n argTypes: {\n label: {\n name: 'Label',\n control: { type: 'text' },\n },\n message: {\n name: 'Validation Message',\n control: { type: 'text' },\n },\n status: {\n name: 'Status',\n control: { type: 'radio' },\n options: ['standard', 'error', 'success', 'warning'],\n },\n }\n};\n"]}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
import { KemetComboInterface } from '../kemet-combo/types';
|
|
3
|
-
import { KemetInputInterface } from '../kemet-input/types';
|
|
4
|
-
import { KemetTextareaInterface } from '../kemet-textarea/types';
|
|
5
|
-
import { TypeStatus } from './types';
|
|
6
|
-
/**
|
|
7
|
-
* @since 1.0.0
|
|
8
|
-
* @status stable
|
|
9
|
-
*
|
|
10
|
-
* @tagname kemet-field
|
|
11
|
-
* @summary Used in combination with Input, Select, and Textarea, to make a Field.
|
|
12
|
-
*
|
|
13
|
-
* @prop {string} slug - Uniquely identifies the control. Use the same slug for slotted sub components.
|
|
14
|
-
* @prop {string} label - The label text
|
|
15
|
-
* @prop {string} message - The validation message for error or success
|
|
16
|
-
* @prop {boolean} focused - Determines if the containing input is focused
|
|
17
|
-
* @prop {string} status - The validation status of standard, error, or success
|
|
18
|
-
* @prop {boolean} filled - Is true when the containing input has a value
|
|
19
|
-
* @prop {number} length - The length of the containing input
|
|
20
|
-
* @prop {boolean} disabled - Determines the disabled state of the control
|
|
21
|
-
* @prop {string} errorIcon - The icon while in an error or warning state
|
|
22
|
-
* @prop {string} successIcon - The icon while in an success state
|
|
23
|
-
*
|
|
24
|
-
* @slot component - Allows sub components of the field to display.
|
|
25
|
-
*
|
|
26
|
-
* @csspart label - The label of the field.
|
|
27
|
-
* @csspart message - The validation message of the field.
|
|
28
|
-
* @csspart text - The text in the label.
|
|
29
|
-
*
|
|
30
|
-
* @event kemet-field-input - Fires when input fires on the input slot
|
|
31
|
-
*
|
|
32
|
-
*/
|
|
33
|
-
export default class KemetField extends LitElement {
|
|
34
|
-
static styles: import("lit").CSSResult[];
|
|
35
|
-
slug: string;
|
|
36
|
-
label: string;
|
|
37
|
-
message: string;
|
|
38
|
-
focused: boolean;
|
|
39
|
-
status: TypeStatus;
|
|
40
|
-
filled: boolean;
|
|
41
|
-
length: number;
|
|
42
|
-
disabled: boolean;
|
|
43
|
-
errorIcon: string;
|
|
44
|
-
successIcon: string;
|
|
45
|
-
slotInput: KemetInputInterface | KemetTextareaInterface;
|
|
46
|
-
slotCombo: KemetComboInterface;
|
|
47
|
-
constructor();
|
|
48
|
-
firstUpdated(): void;
|
|
49
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
50
|
-
makeStatusIcon(): import("lit-html").TemplateResult<1>;
|
|
51
|
-
makeStatusMessage(): import("lit-html").TemplateResult<1>;
|
|
52
|
-
handleFocused(event: any): void;
|
|
53
|
-
handleStatus(event: any): void;
|
|
54
|
-
handleInput(event: any): void;
|
|
55
|
-
handleSelection(event: any): void;
|
|
56
|
-
}
|
|
57
|
-
declare global {
|
|
58
|
-
interface HTMLElementTagNameMap {
|
|
59
|
-
'kemet-field': KemetField;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { html, LitElement } from 'lit';
|
|
3
|
-
import { customElement, property, state } from 'lit/decorators.js';
|
|
4
|
-
import { emitEvent } from '../../utilities/misc/events';
|
|
5
|
-
import { stylesBase } from './styles';
|
|
6
|
-
/**
|
|
7
|
-
* @since 1.0.0
|
|
8
|
-
* @status stable
|
|
9
|
-
*
|
|
10
|
-
* @tagname kemet-field
|
|
11
|
-
* @summary Used in combination with Input, Select, and Textarea, to make a Field.
|
|
12
|
-
*
|
|
13
|
-
* @prop {string} slug - Uniquely identifies the control. Use the same slug for slotted sub components.
|
|
14
|
-
* @prop {string} label - The label text
|
|
15
|
-
* @prop {string} message - The validation message for error or success
|
|
16
|
-
* @prop {boolean} focused - Determines if the containing input is focused
|
|
17
|
-
* @prop {string} status - The validation status of standard, error, or success
|
|
18
|
-
* @prop {boolean} filled - Is true when the containing input has a value
|
|
19
|
-
* @prop {number} length - The length of the containing input
|
|
20
|
-
* @prop {boolean} disabled - Determines the disabled state of the control
|
|
21
|
-
* @prop {string} errorIcon - The icon while in an error or warning state
|
|
22
|
-
* @prop {string} successIcon - The icon while in an success state
|
|
23
|
-
*
|
|
24
|
-
* @slot component - Allows sub components of the field to display.
|
|
25
|
-
*
|
|
26
|
-
* @csspart label - The label of the field.
|
|
27
|
-
* @csspart message - The validation message of the field.
|
|
28
|
-
* @csspart text - The text in the label.
|
|
29
|
-
*
|
|
30
|
-
* @event kemet-field-input - Fires when input fires on the input slot
|
|
31
|
-
*
|
|
32
|
-
*/
|
|
33
|
-
let KemetField = class KemetField extends LitElement {
|
|
34
|
-
constructor() {
|
|
35
|
-
super();
|
|
36
|
-
this.status = 'standard';
|
|
37
|
-
this.errorIcon = 'exclamation-triangle-fill';
|
|
38
|
-
this.successIcon = 'check-lg';
|
|
39
|
-
// listeners
|
|
40
|
-
this.addEventListener('kemet-input-focused', event => this.handleFocused(event));
|
|
41
|
-
this.addEventListener('kemet-input-status', event => this.handleStatus(event));
|
|
42
|
-
this.addEventListener('kemet-input-input', event => this.handleInput(event));
|
|
43
|
-
this.addEventListener('kemet-count-status', event => this.handleStatus(event));
|
|
44
|
-
this.addEventListener('kemet-combo-selection', event => this.handleSelection(event));
|
|
45
|
-
}
|
|
46
|
-
firstUpdated() {
|
|
47
|
-
this.slotInput = this.querySelector('[slot="input"]');
|
|
48
|
-
this.slotCombo = this.querySelector('[slot="combo"]');
|
|
49
|
-
if (this.slotInput.value) {
|
|
50
|
-
this.length = this.slotInput.value.length;
|
|
51
|
-
}
|
|
52
|
-
else {
|
|
53
|
-
this.length = 0;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
render() {
|
|
57
|
-
return html `
|
|
58
|
-
<label for="${this.slug}" id="${this.slug}-label" part="label">
|
|
59
|
-
<span part="text">${this.label}${this.makeStatusIcon()}</span>
|
|
60
|
-
<slot name="input"></slot>
|
|
61
|
-
</label>
|
|
62
|
-
${this.makeStatusMessage()}
|
|
63
|
-
<slot name="component"></slot>
|
|
64
|
-
`;
|
|
65
|
-
}
|
|
66
|
-
makeStatusIcon() {
|
|
67
|
-
if (this.status === 'error' || this.status === 'warning') {
|
|
68
|
-
return html `<kemet-icon icon="${this.errorIcon}" size="16"></kemet-icon>`;
|
|
69
|
-
}
|
|
70
|
-
if (this.status === 'success') {
|
|
71
|
-
return html `<kemet-icon icon="${this.successIcon}" size="16"></kemet-icon>`;
|
|
72
|
-
}
|
|
73
|
-
return null;
|
|
74
|
-
}
|
|
75
|
-
makeStatusMessage() {
|
|
76
|
-
if (this.status !== 'standard') {
|
|
77
|
-
return html `<span class="message" part="message">${this.message}</span>`;
|
|
78
|
-
}
|
|
79
|
-
return null;
|
|
80
|
-
}
|
|
81
|
-
handleFocused(event) {
|
|
82
|
-
this.focused = event.detail;
|
|
83
|
-
if (!this.focused && this.slotCombo && this.slotCombo.options.length < 1) {
|
|
84
|
-
this.slotCombo.show = false;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
handleStatus(event) {
|
|
88
|
-
this.status = event.detail.status;
|
|
89
|
-
}
|
|
90
|
-
handleInput(event) {
|
|
91
|
-
emitEvent(this, 'kemet-field-input', event.detail.length);
|
|
92
|
-
if (event.detail === '') {
|
|
93
|
-
this.filled = false;
|
|
94
|
-
}
|
|
95
|
-
else {
|
|
96
|
-
this.filled = true;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
handleSelection(event) {
|
|
100
|
-
this.slotInput.setAttribute('aria-activedescendant', event.detail);
|
|
101
|
-
}
|
|
102
|
-
};
|
|
103
|
-
KemetField.styles = [stylesBase];
|
|
104
|
-
__decorate([
|
|
105
|
-
property({ type: String })
|
|
106
|
-
], KemetField.prototype, "slug", void 0);
|
|
107
|
-
__decorate([
|
|
108
|
-
property({ type: String })
|
|
109
|
-
], KemetField.prototype, "label", void 0);
|
|
110
|
-
__decorate([
|
|
111
|
-
property({ type: String })
|
|
112
|
-
], KemetField.prototype, "message", void 0);
|
|
113
|
-
__decorate([
|
|
114
|
-
property({ type: Boolean, reflect: true })
|
|
115
|
-
], KemetField.prototype, "focused", void 0);
|
|
116
|
-
__decorate([
|
|
117
|
-
property({ type: String, reflect: true })
|
|
118
|
-
], KemetField.prototype, "status", void 0);
|
|
119
|
-
__decorate([
|
|
120
|
-
property({ type: Boolean, reflect: true })
|
|
121
|
-
], KemetField.prototype, "filled", void 0);
|
|
122
|
-
__decorate([
|
|
123
|
-
property({ type: Number })
|
|
124
|
-
], KemetField.prototype, "length", void 0);
|
|
125
|
-
__decorate([
|
|
126
|
-
property({ type: Boolean, reflect: true })
|
|
127
|
-
], KemetField.prototype, "disabled", void 0);
|
|
128
|
-
__decorate([
|
|
129
|
-
property({ type: String, attribute: 'error-icon' })
|
|
130
|
-
], KemetField.prototype, "errorIcon", void 0);
|
|
131
|
-
__decorate([
|
|
132
|
-
property({ type: String, attribute: 'success-icon' })
|
|
133
|
-
], KemetField.prototype, "successIcon", void 0);
|
|
134
|
-
__decorate([
|
|
135
|
-
state()
|
|
136
|
-
], KemetField.prototype, "slotInput", void 0);
|
|
137
|
-
__decorate([
|
|
138
|
-
state()
|
|
139
|
-
], KemetField.prototype, "slotCombo", void 0);
|
|
140
|
-
KemetField = __decorate([
|
|
141
|
-
customElement('kemet-field')
|
|
142
|
-
], KemetField);
|
|
143
|
-
export default KemetField;
|
|
144
|
-
//# sourceMappingURL=kemet-field.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"kemet-field.js","sourceRoot":"","sources":["../../../../src/components/kemet-field/kemet-field.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAIxD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAGtC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAGH,IAAqB,UAAU,GAA/B,MAAqB,UAAW,SAAQ,UAAU;IAuChD;QACE,KAAK,EAAE,CAAC;QAxBV,WAAM,GAAe,UAAU,CAAC;QAYhC,cAAS,GAAW,2BAA2B,CAAC;QAGhD,gBAAW,GAAW,UAAU,CAAC;QAW/B,YAAY;QACZ,IAAI,CAAC,gBAAgB,CAAC,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;QACjF,IAAI,CAAC,gBAAgB,CAAC,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;QAC/E,IAAI,CAAC,gBAAgB,CAAC,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,WAAW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,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;0CACV;AAGhC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;0CAC3B;AAGhB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;0CACZ;AAGf;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;4CACzB;AAGlB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;6CACJ;AAGhD;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC;+CACrB;AAGjC;IADC,KAAK,EAAE;6CACgD;AAGxD;IADC,KAAK,EAAE;6CACuB;AArCZ,UAAU;IAD9B,aAAa,CAAC,aAAa,CAAC;GACR,UAAU,CAqH9B;eArHoB,UAAU","sourcesContent":["import { html, LitElement } from 'lit';\nimport { customElement, property, state } from 'lit/decorators.js';\nimport { emitEvent } from '../../utilities/misc/events';\nimport { KemetComboInterface } from '../kemet-combo/types';\nimport { KemetInputInterface } from '../kemet-input/types';\nimport { KemetTextareaInterface } from '../kemet-textarea/types';\nimport { stylesBase } from './styles';\nimport { TypeStatus } from './types';\n\n/**\n * @since 1.0.0\n * @status stable\n *\n * @tagname kemet-field\n * @summary Used in combination with Input, Select, and Textarea, to make a Field.\n *\n * @prop {string} slug - Uniquely identifies the control. Use the same slug for slotted sub components.\n * @prop {string} label - The label text\n * @prop {string} message - The validation message for error or success\n * @prop {boolean} focused - Determines if the containing input is focused\n * @prop {string} status - The validation status of standard, error, or success\n * @prop {boolean} filled - Is true when the containing input has a value\n * @prop {number} length - The length of the containing input\n * @prop {boolean} disabled - Determines the disabled state of the control\n * @prop {string} errorIcon - The icon while in an error or warning state\n * @prop {string} successIcon - The icon while in an success state\n *\n * @slot component - Allows sub components of the field to display.\n *\n * @csspart label - The label of the field.\n * @csspart message - The validation message of the field.\n * @csspart text - The text in the label.\n *\n * @event kemet-field-input - Fires when input fires on the input slot\n *\n */\n\n@customElement('kemet-field')\nexport default class KemetField extends LitElement {\n static styles = [stylesBase];\n\n @property({ type: String })\n slug: string;\n\n @property({ type: String })\n label: string;\n\n @property({ type: String })\n message: string;\n\n @property({ type: Boolean, reflect: true })\n focused: boolean;\n\n @property({ type: String, reflect: true })\n status: TypeStatus = 'standard';\n\n @property({ type: Boolean, reflect: true })\n filled: boolean;\n\n @property({ type: Number })\n length: number;\n\n @property({ type: Boolean, reflect: true })\n disabled: boolean;\n\n @property({ type: String, attribute: 'error-icon' })\n errorIcon: string = 'exclamation-triangle-fill';\n\n @property({ type: String, attribute: 'success-icon' })\n successIcon: string = 'check-lg';\n\n @state()\n slotInput: KemetInputInterface | KemetTextareaInterface;\n\n @state()\n slotCombo: KemetComboInterface;\n\n constructor() {\n super();\n\n // listeners\n this.addEventListener('kemet-input-focused', event => this.handleFocused(event));\n this.addEventListener('kemet-input-status', event => this.handleStatus(event));\n this.addEventListener('kemet-input-input', event => this.handleInput(event));\n this.addEventListener('kemet-count-status', event => this.handleStatus(event));\n this.addEventListener('kemet-combo-selection', event => this.handleSelection(event));\n }\n\n firstUpdated() {\n this.slotInput = this.querySelector('[slot=\"input\"]');\n this.slotCombo = this.querySelector('[slot=\"combo\"]');\n\n if (this.slotInput.value) {\n this.length = this.slotInput.value.length;\n } else {\n this.length = 0;\n }\n }\n\n render() {\n return html`\n <label for=\"${this.slug}\" id=\"${this.slug}-label\" part=\"label\">\n <span part=\"text\">${this.label}${this.makeStatusIcon()}</span>\n <slot name=\"input\"></slot>\n </label>\n ${this.makeStatusMessage()}\n <slot name=\"component\"></slot>\n `;\n }\n\n makeStatusIcon() {\n if (this.status === 'error' || this.status === 'warning') {\n return html`<kemet-icon icon=\"${this.errorIcon}\" size=\"16\"></kemet-icon>`;\n }\n\n if (this.status === 'success') {\n return html`<kemet-icon icon=\"${this.successIcon}\" size=\"16\"></kemet-icon>`;\n }\n\n return null;\n }\n\n makeStatusMessage() {\n if (this.status !== 'standard') {\n return html`<span class=\"message\" part=\"message\">${this.message}</span>`;\n }\n\n return null;\n }\n\n handleFocused(event) {\n this.focused = event.detail;\n\n if (!this.focused && this.slotCombo && this.slotCombo.options.length < 1) {\n this.slotCombo.show = false;\n }\n }\n\n handleStatus(event) {\n this.status = event.detail.status;\n }\n\n handleInput(event) {\n emitEvent(this, 'kemet-field-input', event.detail.length);\n\n if (event.detail === '') {\n this.filled = false;\n } else {\n this.filled = true;\n }\n }\n\n handleSelection(event) {\n this.slotInput.setAttribute('aria-activedescendant', event.detail);\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'kemet-field': KemetField\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const stylesBase: import("lit").CSSResult;
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { css } from 'lit';
|
|
2
|
-
export const stylesBase = css `
|
|
3
|
-
*,
|
|
4
|
-
*::before,
|
|
5
|
-
*::after {
|
|
6
|
-
box-sizing: border-box;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
:host {
|
|
10
|
-
display: block;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
:host([disabled]) {
|
|
14
|
-
opacity: 0.5;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
label {
|
|
18
|
-
position: relative;
|
|
19
|
-
display: block;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
label span {
|
|
23
|
-
color: inherit;
|
|
24
|
-
display: inline-flex;
|
|
25
|
-
gap: 0.5rem;
|
|
26
|
-
align-items: center;
|
|
27
|
-
margin-bottom: 0.8rem;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
:host([status='error']) kemet-icon {
|
|
31
|
-
color: var(--kemet-color-error);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
:host([status='success']) kemet-icon {
|
|
35
|
-
color: var(--kemet-color-success);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
:host([status='warning']) kemet-icon {
|
|
39
|
-
color: var(--kemet-color-warning);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.message {
|
|
43
|
-
font-size: 0.9rem;
|
|
44
|
-
line-height: 1;
|
|
45
|
-
display: block;
|
|
46
|
-
margin-top: 0.8rem;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
:host([status='error']) .message {
|
|
50
|
-
color: var(--kemet-color-error);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
:host([status='success']) .message {
|
|
54
|
-
color: var(--kemet-color-success);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
:host([status='warning']) .message {
|
|
58
|
-
color: var(--kemet-color-warning);
|
|
59
|
-
}
|
|
60
|
-
`;
|
|
61
|
-
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/components/kemet-field/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0D5B,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const stylesBase = css`\n *,\n *::before,\n *::after {\n box-sizing: border-box;\n }\n\n :host {\n display: block;\n }\n\n :host([disabled]) {\n opacity: 0.5;\n }\n\n label {\n position: relative;\n display: block;\n }\n\n label span {\n color: inherit;\n display: inline-flex;\n gap: 0.5rem;\n align-items: center;\n margin-bottom: 0.8rem;\n }\n\n :host([status='error']) kemet-icon {\n color: var(--kemet-color-error);\n }\n\n :host([status='success']) kemet-icon {\n color: var(--kemet-color-success);\n }\n\n :host([status='warning']) kemet-icon {\n color: var(--kemet-color-warning);\n }\n\n .message {\n font-size: 0.9rem;\n line-height: 1;\n display: block;\n margin-top: 0.8rem;\n }\n\n :host([status='error']) .message {\n color: var(--kemet-color-error);\n }\n\n :host([status='success']) .message {\n color: var(--kemet-color-success);\n }\n\n :host([status='warning']) .message {\n color: var(--kemet-color-warning);\n }\n`;\n"]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare type TypeStatus = 'standard' | 'error' | 'success' | 'warning';
|
|
2
|
-
export interface KemetFieldInterface extends HTMLElement {
|
|
3
|
-
slug?: string;
|
|
4
|
-
label?: string;
|
|
5
|
-
message?: string;
|
|
6
|
-
focused?: boolean;
|
|
7
|
-
status?: string;
|
|
8
|
-
filled?: boolean;
|
|
9
|
-
length?: number;
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
errorIcon?: string;
|
|
12
|
-
successIcon?: string;
|
|
13
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/components/kemet-field/types.ts"],"names":[],"mappings":"","sourcesContent":["export type TypeStatus = 'standard' | 'error' | 'success' | 'warning';\n\nexport interface KemetFieldInterface extends HTMLElement {\n slug?: string,\n label?: string,\n message?: string,\n focused?: boolean,\n status?: string,\n filled?: boolean,\n length?: number,\n disabled?: boolean,\n errorIcon?: string,\n successIcon?: string,\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stories.js","sourceRoot":"","sources":["../../../../../src/components/kemet-flipcard/docs/stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAG3B,OAAO,mBAAmB,CAAC;AAC3B,OAAO,2BAA2B,CAAC;AAEnC,OAAO,iCAAiC,CAAC;AACzC,OAAO,6BAA6B,CAAC;AACrC,OAAO,4BAA4B,CAAC;AACpC,OAAO,kCAAkC,CAAC;AAE1C,MAAM,IAAI,GAAS;IACjB,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,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;SAC3B;QACD,MAAM,EAAE;YACN,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;SAC1B;QACD,YAAY,EAAE;YACZ,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;SAC1B;QACD,OAAO,EAAE;YACP,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;SAC7B;QACD,OAAO,EAAE;YACP,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;SAC7B;QACD,IAAI,EAAE;YACJ,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC3B,OAAO,EAAE,CAAC,YAAY,EAAE,UAAU,CAAC;SACpC;QACD,WAAW,EAAE;YACX,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;SAC7B;QACD,OAAO,EAAE;YACP,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;SAC7B;KACF;IACD,IAAI,EAAE;QACJ,KAAK,EAAE,KAAK;QACZ,MAAM,EAAE,MAAM;QACd,UAAU,EAAE,yBAAyB;QACrC,oBAAoB,EAAE,aAAa;QACnC,SAAS,EAAE,yBAAyB;QACpC,mBAAmB,EAAE,aAAa;QAClC,MAAM,EAAE,yCAAyC;QACjD,YAAY,EAAE,GAAG;QACjB,KAAK,EAAE,MAAM;QACb,OAAO,EAAE,KAAK;QACd,OAAO,EAAE,KAAK;QACd,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,KAAK;QAClB,OAAO,EAAE,KAAK;KACf;CACF,CAAC","sourcesContent":["import { html } from 'lit';\nimport type { Meta, StoryObj } from '@storybook/web-components';\n\nimport '../kemet-flipcard';\nimport '../kemet-flipcard-trigger';\n\nimport '../../kemet-button/kemet-button';\nimport '../../kemet-tabs/kemet-tabs';\nimport '../../kemet-tabs/kemet-tab';\nimport '../../kemet-tabs/kemet-tab-panel';\n\nconst meta: Meta = {\n title: 'Components / Flipcard',\n component: 'kemet-flipcard',\n};\nexport default meta;\n\ntype Story = StoryObj;\n\nconst Template = ({\n width = '50%',\n height = 'auto',\n frontColor = 'var(--kemet-color-text)',\n frontBackgroundColor = 'transparent',\n backColor = 'var(--kemet-color-text)',\n backBackgroundColor = 'transparent',\n border = '2px solid var(--kemet-color-background)',\n borderRadius = '0',\n ratio = '16/9',\n flipped = false,\n measure = false,\n axis = 'horizontal',\n flipOnHover = false,\n rounded = false,\n}) => html`\n <style>\n kemet-flipcard {\n --kemet-flipcard-width: ${width};\n --kemet-flipcard-height: ${height};\n --kemet-flipcard-front-color: ${frontColor};\n --kemet-flipcard-front-background-color: ${frontBackgroundColor};\n --kemet-flipcard-back-color: ${backColor};\n --kemet-flipcard-back-background-color: ${backBackgroundColor};\n --kemet-flipcard-border: ${border};\n --kemet-flipcard-border-radius: ${borderRadius};\n --kemet-flipcard-ratio: ${ratio};\n }\n </style>\n <kemet-flipcard\n ?flipped=\"${flipped}\"\n ?measure=\"${measure}\"\n axis=\"${axis}\"\n ?flip-on-hover=\"${flipOnHover}\"\n ?rounded=${rounded}\n >\n <div slot=\"front\" kemet-elevation=\"layer5\" kemet-padding=\"tiny:normal\">\n <p>This is the front of the card.</p>\n <kemet-flipcard-trigger>\n <kemet-button>Flip Me</kemet-button>\n </kemet-flipcard-trigger>\n </div>\n <div slot=\"back\" kemet-elevation=\"layer5\" kemet-padding=\"tiny:normal\">\n <p>This is the back of the card.</p>\n <kemet-flipcard-trigger>\n <kemet-button>Flip Me</kemet-button>\n </kemet-flipcard-trigger>\n </div>\n </kemet-flipcard>\n`;\n\nexport const Standard: Story = {\n render: (args) => Template(args),\n argTypes: {\n width: {\n control: { type: 'text' },\n },\n height: {\n control: { type: 'text' },\n },\n frontColor: {\n control: { type: 'color' },\n },\n frontBackgroundColor: {\n control: { type: 'color' },\n },\n backColor: {\n control: { type: 'color' },\n },\n backBackgroundColor: {\n control: { type: 'color' },\n },\n border: {\n control: { type: 'text' },\n },\n borderRadius: {\n control: { type: 'text' },\n },\n flipped: {\n control: { type: 'boolean' },\n },\n measure: {\n control: { type: 'boolean' },\n },\n axis: {\n control: { type: 'select' },\n options: ['horizontal', 'vertical'],\n },\n flipOnHover: {\n control: { type: 'boolean' },\n },\n rounded: {\n control: { type: 'boolean' },\n },\n },\n args: {\n width: '50%',\n height: 'auto',\n frontColor: 'var(--kemet-color-text)',\n frontBackgroundColor: 'transparent',\n backColor: 'var(--kemet-color-text)',\n backBackgroundColor: 'transparent',\n border: '2px solid var(--kemet-color-background)',\n borderRadius: '0',\n ratio: '16/9',\n flipped: false,\n measure: false,\n axis: 'horizontal',\n flipOnHover: false,\n rounded: false,\n },\n};\n"]}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
/**
|
|
3
|
-
* @since 1.0.0
|
|
4
|
-
* @status stable
|
|
5
|
-
*
|
|
6
|
-
* @tagname kemet-flipcard-trigger
|
|
7
|
-
* @summary Triggers a flipcard component to flip.
|
|
8
|
-
*
|
|
9
|
-
* @event kemet-flipcard-flipped - Fires when a flipcard is flipped
|
|
10
|
-
*/
|
|
11
|
-
export default class KemetFlipcardTrigger extends LitElement {
|
|
12
|
-
static styles: import("lit").CSSResult[];
|
|
13
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
14
|
-
trigger(): void;
|
|
15
|
-
handleKeyup(event: any): void;
|
|
16
|
-
}
|
|
17
|
-
declare global {
|
|
18
|
-
interface HTMLElementTagNameMap {
|
|
19
|
-
'kemet-flipcard-trigger': KemetFlipcardTrigger;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { LitElement, html, css } from 'lit';
|
|
3
|
-
import { customElement } from 'lit/decorators.js';
|
|
4
|
-
import { emitEvent } from '../../utilities/misc/events';
|
|
5
|
-
import { keyCodes } from '../../utilities/misc/constants';
|
|
6
|
-
/**
|
|
7
|
-
* @since 1.0.0
|
|
8
|
-
* @status stable
|
|
9
|
-
*
|
|
10
|
-
* @tagname kemet-flipcard-trigger
|
|
11
|
-
* @summary Triggers a flipcard component to flip.
|
|
12
|
-
*
|
|
13
|
-
* @event kemet-flipcard-flipped - Fires when a flipcard is flipped
|
|
14
|
-
*/
|
|
15
|
-
let KemetFlipcardTrigger = class KemetFlipcardTrigger extends LitElement {
|
|
16
|
-
render() {
|
|
17
|
-
return html `
|
|
18
|
-
<slot tabindex="0" @click=${() => this.trigger()} @keypress=${event => this.handleKeyup(event)}></slot>
|
|
19
|
-
`;
|
|
20
|
-
}
|
|
21
|
-
trigger() {
|
|
22
|
-
emitEvent(this, 'kemet-flipcard-flipped', this);
|
|
23
|
-
}
|
|
24
|
-
handleKeyup(event) {
|
|
25
|
-
event.preventDefault();
|
|
26
|
-
if (event.keyCode === keyCodes.ENTER) {
|
|
27
|
-
this.trigger();
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
KemetFlipcardTrigger.styles = [
|
|
32
|
-
css `
|
|
33
|
-
:host {
|
|
34
|
-
cursor: pointer;
|
|
35
|
-
}
|
|
36
|
-
`,
|
|
37
|
-
];
|
|
38
|
-
KemetFlipcardTrigger = __decorate([
|
|
39
|
-
customElement('kemet-flipcard-trigger')
|
|
40
|
-
], KemetFlipcardTrigger);
|
|
41
|
-
export default KemetFlipcardTrigger;
|
|
42
|
-
//# sourceMappingURL=kemet-flipcard-trigger.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"kemet-flipcard-trigger.js","sourceRoot":"","sources":["../../../../src/components/kemet-flipcard/kemet-flipcard-trigger.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAE1D;;;;;;;;GAQG;AAGH,IAAqB,oBAAoB,GAAzC,MAAqB,oBAAqB,SAAQ,UAAU;IAS1D,MAAM;QACJ,OAAO,IAAI,CAAA;kCACmB,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,cAAc,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;KAC/F,CAAC;IACJ,CAAC;IAED,OAAO;QACL,SAAS,CAAC,IAAI,EAAE,wBAAwB,EAAE,IAAI,CAAC,CAAC;IAClD,CAAC;IAED,WAAW,CAAC,KAAK;QACf,KAAK,CAAC,cAAc,EAAE,CAAC;QAEvB,IAAI,KAAK,CAAC,OAAO,KAAK,QAAQ,CAAC,KAAK,EAAE;YACpC,IAAI,CAAC,OAAO,EAAE,CAAC;SAChB;IACH,CAAC;CACF,CAAA;AAzBQ,2BAAM,GAAG;IACd,GAAG,CAAA;;;;KAIF;CACF,CAAC;AAPiB,oBAAoB;IADxC,aAAa,CAAC,wBAAwB,CAAC;GACnB,oBAAoB,CA0BxC;eA1BoB,oBAAoB","sourcesContent":["import { LitElement, html, css } from 'lit';\nimport { customElement } from 'lit/decorators.js';\nimport { emitEvent } from '../../utilities/misc/events';\nimport { keyCodes } from '../../utilities/misc/constants';\n\n/**\n * @since 1.0.0\n * @status stable\n *\n * @tagname kemet-flipcard-trigger\n * @summary Triggers a flipcard component to flip.\n *\n * @event kemet-flipcard-flipped - Fires when a flipcard is flipped\n */\n\n@customElement('kemet-flipcard-trigger')\nexport default class KemetFlipcardTrigger extends LitElement {\n static styles = [\n css`\n :host {\n cursor: pointer;\n }\n `,\n ];\n\n render() {\n return html`\n <slot tabindex=\"0\" @click=${() => this.trigger()} @keypress=${event => this.handleKeyup(event)}></slot>\n `;\n }\n\n trigger() {\n emitEvent(this, 'kemet-flipcard-flipped', this);\n }\n\n handleKeyup(event) {\n event.preventDefault();\n\n if (event.keyCode === keyCodes.ENTER) {\n this.trigger();\n }\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'kemet-flipcard-trigger': KemetFlipcardTrigger\n }\n}\n"]}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
/**
|
|
3
|
-
* @since 1.0.0
|
|
4
|
-
* @status stable
|
|
5
|
-
*
|
|
6
|
-
* @tagname kemet-flipcard
|
|
7
|
-
* @summary A card that has a front and back side which can be flipped.
|
|
8
|
-
*
|
|
9
|
-
* @prop {string} axis
|
|
10
|
-
* @prop {boolean} flipped
|
|
11
|
-
* @prop {boolean} flipOnHover
|
|
12
|
-
* @prop {string} height
|
|
13
|
-
* @prop {boolean} measure
|
|
14
|
-
*
|
|
15
|
-
* @slot front - The front of the card.
|
|
16
|
-
* @slot back - The back of the card.
|
|
17
|
-
*
|
|
18
|
-
* @csspart front - The front of the card.
|
|
19
|
-
* @csspart back - The back of the card.
|
|
20
|
-
* @csspart wrapper - A container for both front and back of the card.
|
|
21
|
-
*
|
|
22
|
-
* @cssproperty --kemet-flipcard-front-color - The text color for the front of the card. Default: #202020.
|
|
23
|
-
* @cssproperty --kemet-flipcard-back-color - The text color for the back of the card. Default: #202020.
|
|
24
|
-
* @cssproperty --kemet-flipcard-front-background-color - The background color for the front of the card. Default: #fafafa.
|
|
25
|
-
* @cssproperty --kemet-flipcard-back-background-color - The background color for the back of the card. Default: #fafafa.
|
|
26
|
-
* @cssproperty --kemet-flipcard-border - The border on the front and back of the card. Default: 2px solid var(--kemet-color-primary).
|
|
27
|
-
* @cssproperty --kemet-flipcard-border-radius - The border radius on the front and back of the card. Default: 0.
|
|
28
|
-
* @cssproperty --kemet-flipcard-ratio - The aspect ratio of the card. Default: 16/9.
|
|
29
|
-
*
|
|
30
|
-
*/
|
|
31
|
-
export default class KemetFlipcard extends LitElement {
|
|
32
|
-
static styles: import("lit").CSSResult[];
|
|
33
|
-
axis: string;
|
|
34
|
-
flipped: boolean;
|
|
35
|
-
flipOnHover: boolean;
|
|
36
|
-
height: string;
|
|
37
|
-
measure: boolean;
|
|
38
|
-
frontChildren: HTMLSlotElement;
|
|
39
|
-
backChildren: HTMLSlotElement;
|
|
40
|
-
frontElement: any;
|
|
41
|
-
backElement: any;
|
|
42
|
-
constructor();
|
|
43
|
-
firstUpdated(): void;
|
|
44
|
-
updated(): void;
|
|
45
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
46
|
-
determineHeight(): void;
|
|
47
|
-
}
|
|
48
|
-
declare global {
|
|
49
|
-
interface HTMLElementTagNameMap {
|
|
50
|
-
'kemet-flipcard': KemetFlipcard;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { html, LitElement } from 'lit';
|
|
3
|
-
import { customElement, property, state, query } from 'lit/decorators.js';
|
|
4
|
-
import { stylesBase } from './styles';
|
|
5
|
-
/**
|
|
6
|
-
* @since 1.0.0
|
|
7
|
-
* @status stable
|
|
8
|
-
*
|
|
9
|
-
* @tagname kemet-flipcard
|
|
10
|
-
* @summary A card that has a front and back side which can be flipped.
|
|
11
|
-
*
|
|
12
|
-
* @prop {string} axis
|
|
13
|
-
* @prop {boolean} flipped
|
|
14
|
-
* @prop {boolean} flipOnHover
|
|
15
|
-
* @prop {string} height
|
|
16
|
-
* @prop {boolean} measure
|
|
17
|
-
*
|
|
18
|
-
* @slot front - The front of the card.
|
|
19
|
-
* @slot back - The back of the card.
|
|
20
|
-
*
|
|
21
|
-
* @csspart front - The front of the card.
|
|
22
|
-
* @csspart back - The back of the card.
|
|
23
|
-
* @csspart wrapper - A container for both front and back of the card.
|
|
24
|
-
*
|
|
25
|
-
* @cssproperty --kemet-flipcard-front-color - The text color for the front of the card. Default: #202020.
|
|
26
|
-
* @cssproperty --kemet-flipcard-back-color - The text color for the back of the card. Default: #202020.
|
|
27
|
-
* @cssproperty --kemet-flipcard-front-background-color - The background color for the front of the card. Default: #fafafa.
|
|
28
|
-
* @cssproperty --kemet-flipcard-back-background-color - The background color for the back of the card. Default: #fafafa.
|
|
29
|
-
* @cssproperty --kemet-flipcard-border - The border on the front and back of the card. Default: 2px solid var(--kemet-color-primary).
|
|
30
|
-
* @cssproperty --kemet-flipcard-border-radius - The border radius on the front and back of the card. Default: 0.
|
|
31
|
-
* @cssproperty --kemet-flipcard-ratio - The aspect ratio of the card. Default: 16/9.
|
|
32
|
-
*
|
|
33
|
-
*/
|
|
34
|
-
let KemetFlipcard = class KemetFlipcard extends LitElement {
|
|
35
|
-
constructor() {
|
|
36
|
-
super();
|
|
37
|
-
this.axis = 'horizontal';
|
|
38
|
-
this.flipped = false;
|
|
39
|
-
this.flipOnHover = false;
|
|
40
|
-
this.height = 'auto';
|
|
41
|
-
this.measure = false;
|
|
42
|
-
this.addEventListener('kemet-flipcard-flipped', () => {
|
|
43
|
-
this.flipped = !this.flipped;
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
firstUpdated() {
|
|
47
|
-
if (this.frontChildren)
|
|
48
|
-
[this.frontElement] = this.frontChildren.assignedNodes({ flatten: true });
|
|
49
|
-
if (this.backChildren)
|
|
50
|
-
[this.backElement] = this.backChildren.assignedNodes({ flatten: true });
|
|
51
|
-
window.addEventListener('resize', this.determineHeight.bind(this));
|
|
52
|
-
}
|
|
53
|
-
updated() {
|
|
54
|
-
this.determineHeight();
|
|
55
|
-
}
|
|
56
|
-
render() {
|
|
57
|
-
return html `
|
|
58
|
-
<section
|
|
59
|
-
tabindex="0"
|
|
60
|
-
part="wrapper"
|
|
61
|
-
@blur=${() => { if (this.flipOnHover)
|
|
62
|
-
this.flipped = false; }}
|
|
63
|
-
@focus=${() => { if (this.flipOnHover)
|
|
64
|
-
this.flipped = true; }}
|
|
65
|
-
@mouseover=${() => { if (this.flipOnHover)
|
|
66
|
-
this.flipped = true; }}
|
|
67
|
-
@mouseout=${() => { if (this.flipOnHover)
|
|
68
|
-
this.flipped = false; }}>
|
|
69
|
-
<div id="front" class="front" part="front">
|
|
70
|
-
<slot name="front" @slotchange="${() => this.determineHeight()}"></slot>
|
|
71
|
-
</div>
|
|
72
|
-
<div id="back" class="back" part="back">
|
|
73
|
-
<slot name="back" @slotchange="${() => this.determineHeight()}"></slot>
|
|
74
|
-
</div>
|
|
75
|
-
</section>
|
|
76
|
-
`;
|
|
77
|
-
}
|
|
78
|
-
determineHeight() {
|
|
79
|
-
// setTimeout is need to simulate a DOM repaint
|
|
80
|
-
// without the repaint, offsetHeight on Custom Elements = 0
|
|
81
|
-
// so this is needed for 'measure' to work correctly
|
|
82
|
-
setTimeout(() => {
|
|
83
|
-
var _a, _b, _c, _d;
|
|
84
|
-
if (this.measure) {
|
|
85
|
-
if (((_a = this.frontElement) === null || _a === void 0 ? void 0 : _a.offsetHeight) > ((_b = this.backElement) === null || _b === void 0 ? void 0 : _b.offsetHeight)) {
|
|
86
|
-
this.height = `${(_c = this.frontElement) === null || _c === void 0 ? void 0 : _c.offsetHeight}px`;
|
|
87
|
-
}
|
|
88
|
-
else {
|
|
89
|
-
this.height = `${(_d = this.backElement) === null || _d === void 0 ? void 0 : _d.offsetHeight}px`;
|
|
90
|
-
}
|
|
91
|
-
this.style.height = this.height;
|
|
92
|
-
}
|
|
93
|
-
else {
|
|
94
|
-
this.style.removeProperty('height');
|
|
95
|
-
}
|
|
96
|
-
}, 0);
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
KemetFlipcard.styles = [stylesBase];
|
|
100
|
-
__decorate([
|
|
101
|
-
property({ type: String, reflect: true })
|
|
102
|
-
], KemetFlipcard.prototype, "axis", void 0);
|
|
103
|
-
__decorate([
|
|
104
|
-
property({ type: Boolean, reflect: true })
|
|
105
|
-
], KemetFlipcard.prototype, "flipped", void 0);
|
|
106
|
-
__decorate([
|
|
107
|
-
property({ type: Boolean, attribute: 'flip-on-hover' })
|
|
108
|
-
], KemetFlipcard.prototype, "flipOnHover", void 0);
|
|
109
|
-
__decorate([
|
|
110
|
-
property({ type: String })
|
|
111
|
-
], KemetFlipcard.prototype, "height", void 0);
|
|
112
|
-
__decorate([
|
|
113
|
-
property({ type: Boolean })
|
|
114
|
-
], KemetFlipcard.prototype, "measure", void 0);
|
|
115
|
-
__decorate([
|
|
116
|
-
query('[name="front"]')
|
|
117
|
-
], KemetFlipcard.prototype, "frontChildren", void 0);
|
|
118
|
-
__decorate([
|
|
119
|
-
query('[name="back"]')
|
|
120
|
-
], KemetFlipcard.prototype, "backChildren", void 0);
|
|
121
|
-
__decorate([
|
|
122
|
-
state()
|
|
123
|
-
], KemetFlipcard.prototype, "frontElement", void 0);
|
|
124
|
-
__decorate([
|
|
125
|
-
state()
|
|
126
|
-
], KemetFlipcard.prototype, "backElement", void 0);
|
|
127
|
-
KemetFlipcard = __decorate([
|
|
128
|
-
customElement('kemet-flipcard')
|
|
129
|
-
], KemetFlipcard);
|
|
130
|
-
export default KemetFlipcard;
|
|
131
|
-
//# sourceMappingURL=kemet-flipcard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"kemet-flipcard.js","sourceRoot":"","sources":["../../../../src/components/kemet-flipcard/kemet-flipcard.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAGtC;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAGH,IAAqB,aAAa,GAAlC,MAAqB,aAAc,SAAQ,UAAU;IA8BnD;QACE,KAAK,EAAE,CAAC;QA3BV,SAAI,GAAW,YAAY,CAAC;QAG5B,YAAO,GAAY,KAAK,CAAC;QAGzB,gBAAW,GAAY,KAAK,CAAC;QAG7B,WAAM,GAAW,MAAM,CAAC;QAGxB,YAAO,GAAY,KAAK,CAAC;QAiBvB,IA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AAa;IADjC,aAAa,CAAC,gBAAgB,CAAC;GACX,aAAa,CAuFjC;eAvFoB,aAAa","sourcesContent":["import { html, LitElement } from 'lit';\nimport { customElement, property, state, query } from 'lit/decorators.js';\nimport { stylesBase } from './styles';\n\n\n/**\n * @since 1.0.0\n * @status stable\n *\n * @tagname kemet-flipcard\n * @summary A card that has a front and back side which can be flipped.\n *\n * @prop {string} axis\n * @prop {boolean} flipped\n * @prop {boolean} flipOnHover\n * @prop {string} height\n * @prop {boolean} measure\n *\n * @slot front - The front of the card.\n * @slot back - The back of the card.\n *\n * @csspart front - The front of the card.\n * @csspart back - The back of the card.\n * @csspart wrapper - A container for both front and back of the card.\n *\n * @cssproperty --kemet-flipcard-front-color - The text color for the front of the card. Default: #202020.\n * @cssproperty --kemet-flipcard-back-color - The text color for the back of the card. Default: #202020.\n * @cssproperty --kemet-flipcard-front-background-color - The background color for the front of the card. Default: #fafafa.\n * @cssproperty --kemet-flipcard-back-background-color - The background color for the back of the card. Default: #fafafa.\n * @cssproperty --kemet-flipcard-border - The border on the front and back of the card. Default: 2px solid var(--kemet-color-primary).\n * @cssproperty --kemet-flipcard-border-radius - The border radius on the front and back of the card. Default: 0.\n * @cssproperty --kemet-flipcard-ratio - The aspect ratio of the card. Default: 16/9.\n *\n */\n\n@customElement('kemet-flipcard')\nexport default class KemetFlipcard extends LitElement {\n static styles = [stylesBase];\n\n @property({ type: String, reflect: true })\n axis: string = 'horizontal';\n\n @property({ type: Boolean, reflect: true })\n flipped: boolean = false;\n\n @property({ type: Boolean, attribute: 'flip-on-hover' })\n flipOnHover: boolean = false;\n\n @property({ type: String })\n height: string = 'auto';\n\n @property({ type: Boolean })\n measure: boolean = false;\n\n @query('[name=\"front\"]')\n frontChildren: HTMLSlotElement;\n\n @query('[name=\"back\"]')\n backChildren: HTMLSlotElement;\n\n @state()\n frontElement: any;\n\n @state()\n backElement: any;\n\n constructor() {\n super();\n\n this.addEventListener('kemet-flipcard-flipped', () => {\n this.flipped = !this.flipped;\n });\n }\n\n firstUpdated() {\n if (this.frontChildren) [this.frontElement] = this.frontChildren.assignedNodes({ flatten: true });\n if (this.backChildren) [this.backElement] = this.backChildren.assignedNodes({ flatten: true });\n\n window.addEventListener('resize', this.determineHeight.bind(this));\n }\n\n updated() {\n this.determineHeight();\n }\n\n render() {\n return html`\n <section\n tabindex=\"0\"\n part=\"wrapper\"\n @blur=${() => { if (this.flipOnHover) this.flipped = false; }}\n @focus=${() => { if (this.flipOnHover) this.flipped = true; }}\n @mouseover=${() => { if (this.flipOnHover) this.flipped = true; }}\n @mouseout=${() => { if (this.flipOnHover) this.flipped = false; }}>\n <div id=\"front\" class=\"front\" part=\"front\">\n <slot name=\"front\" @slotchange=\"${() => this.determineHeight()}\"></slot>\n </div>\n <div id=\"back\" class=\"back\" part=\"back\">\n <slot name=\"back\" @slotchange=\"${() => this.determineHeight()}\"></slot>\n </div>\n </section>\n `;\n }\n\n determineHeight() {\n // setTimeout is need to simulate a DOM repaint\n // without the repaint, offsetHeight on Custom Elements = 0\n // so this is needed for 'measure' to work correctly\n\n setTimeout(() => {\n if (this.measure) {\n if (this.frontElement?.offsetHeight > this.backElement?.offsetHeight) {\n this.height = `${this.frontElement?.offsetHeight}px`;\n } else {\n this.height = `${this.backElement?.offsetHeight}px`;\n }\n\n this.style.height = this.height;\n } else {\n this.style.removeProperty('height');\n }\n }, 0);\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'kemet-flipcard': KemetFlipcard\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const stylesBase: import("lit").CSSResult;
|