@getflip/swirl-components 0.1.0
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/LICENSE.md +25 -0
- package/README.md +8 -0
- package/dist/cjs/flip-action-list-item.cjs.entry.js +24 -0
- package/dist/cjs/flip-action-list-section.cjs.entry.js +19 -0
- package/dist/cjs/flip-action-list.cjs.entry.js +52 -0
- package/dist/cjs/flip-avatar-group.cjs.entry.js +24 -0
- package/dist/cjs/flip-avatar.cjs.entry.js +78 -0
- package/dist/cjs/flip-badge.cjs.entry.js +26 -0
- package/dist/cjs/flip-banner.cjs.entry.js +47 -0
- package/dist/cjs/flip-button_2.cjs.entry.js +59 -0
- package/dist/cjs/flip-checkbox.cjs.entry.js +44 -0
- package/dist/cjs/flip-chip.cjs.entry.js +50 -0
- package/dist/cjs/flip-description-list-item.cjs.entry.js +19 -0
- package/dist/cjs/flip-description-list.cjs.entry.js +19 -0
- package/dist/cjs/flip-dialog.cjs.entry.js +476 -0
- package/dist/cjs/flip-icon-add-photo.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-add.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-admin-panel-settings.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-arrow-back.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-arrow-forward.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-arrow-right-small.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-attachment.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-cancel_2.cjs.entry.js +34 -0
- package/dist/cjs/flip-icon-chat-bubble.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-check-circle.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-check-small.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-check-strong.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-check.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-chevron-left.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-chevron-right.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-close-small.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-close.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-comment.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-copy.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-date-range.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-delete.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-description.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-download.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-edit.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-emoji-mood.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-emoji-satisfied.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-error.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-expand-less.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-expand-more.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-file.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-folder-shared.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-group-assign.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-groups-custom.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-groups.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-image.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-info.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-inventory.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-like.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-link.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-lock.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-logout.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-mail.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-manage-accounts.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-mention.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-message.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-more-horizontal.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-more-vertikal.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-notifications-active.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-notifications-off.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-notifications.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-people-alt.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-person-off.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-person.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-phone.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-poll.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-recieved.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-search-strong.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-send.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-settings.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-time-filled.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-time-outlined.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-today.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-user-assign.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-video-camera.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-visibility-off.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-visibility.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-warning.cjs.entry.js +20 -0
- package/dist/cjs/flip-inline-error.cjs.entry.js +23 -0
- package/dist/cjs/flip-link.cjs.entry.js +19 -0
- package/dist/cjs/flip-popover.cjs.entry.js +1558 -0
- package/dist/cjs/flip-radio-group.cjs.entry.js +51 -0
- package/dist/cjs/flip-radio.cjs.entry.js +37 -0
- package/dist/cjs/flip-search.cjs.entry.js +47 -0
- package/dist/cjs/flip-spinner.cjs.entry.js +22 -0
- package/dist/cjs/flip-stack.cjs.entry.js +28 -0
- package/dist/cjs/flip-switch.cjs.entry.js +92 -0
- package/dist/cjs/flip-tag.cjs.entry.js +28 -0
- package/dist/cjs/flip-theme-provider.cjs.entry.js +367 -0
- package/dist/cjs/flip-thumbnail.cjs.entry.js +23 -0
- package/dist/cjs/flip-toast-provider.cjs.entry.js +54 -0
- package/dist/cjs/flip-toast.cjs.entry.js +52 -0
- package/dist/cjs/flip-tooltip.cjs.entry.js +122 -0
- package/dist/cjs/flip-visually-hidden.cjs.entry.js +19 -0
- package/dist/cjs/index-37fbfe64.js +1803 -0
- package/dist/cjs/index-b9715722.js +72 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +21 -0
- package/dist/cjs/swirl-components.cjs.js +19 -0
- package/dist/cjs/utils-a6e2e7da.js +28 -0
- package/dist/collection/collection-manifest.json +109 -0
- package/dist/collection/components/flip-action-list/flip-action-list.css +11 -0
- package/dist/collection/components/flip-action-list/flip-action-list.js +54 -0
- package/dist/collection/components/flip-action-list/flip-action-list.stories.js +22 -0
- package/dist/collection/components/flip-action-list-item/flip-action-list-item.css +97 -0
- package/dist/collection/components/flip-action-list-item/flip-action-list-item.js +158 -0
- package/dist/collection/components/flip-action-list-item/flip-action-list-item.stories.js +30 -0
- package/dist/collection/components/flip-action-list-section/flip-action-list-section.css +22 -0
- package/dist/collection/components/flip-action-list-section/flip-action-list-section.js +40 -0
- package/dist/collection/components/flip-action-list-section/flip-action-list-section.stories.js +27 -0
- package/dist/collection/components/flip-avatar/flip-avatar.css +210 -0
- package/dist/collection/components/flip-avatar/flip-avatar.js +278 -0
- package/dist/collection/components/flip-avatar/flip-avatar.stories.js +40 -0
- package/dist/collection/components/flip-avatar-group/flip-avatar-group.css +46 -0
- package/dist/collection/components/flip-avatar-group/flip-avatar-group.js +44 -0
- package/dist/collection/components/flip-avatar-group/flip-avatar-group.stories.js +33 -0
- package/dist/collection/components/flip-badge/flip-badge.css +121 -0
- package/dist/collection/components/flip-badge/flip-badge.js +128 -0
- package/dist/collection/components/flip-badge/flip-badge.stories.js +31 -0
- package/dist/collection/components/flip-banner/flip-banner.css +146 -0
- package/dist/collection/components/flip-banner/flip-banner.js +222 -0
- package/dist/collection/components/flip-banner/flip-banner.stories.js +22 -0
- package/dist/collection/components/flip-button/flip-button.css +287 -0
- package/dist/collection/components/flip-button/flip-button.js +301 -0
- package/dist/collection/components/flip-button/flip-button.stories.js +31 -0
- package/dist/collection/components/flip-button-group/flip-button-group.css +7 -0
- package/dist/collection/components/flip-button-group/flip-button-group.js +81 -0
- package/dist/collection/components/flip-button-group/flip-button-group.stories.js +21 -0
- package/dist/collection/components/flip-checkbox/flip-checkbox.css +133 -0
- package/dist/collection/components/flip-checkbox/flip-checkbox.js +211 -0
- package/dist/collection/components/flip-checkbox/flip-checkbox.stories.js +29 -0
- package/dist/collection/components/flip-chip/flip-chip.css +89 -0
- package/dist/collection/components/flip-chip/flip-chip.js +144 -0
- package/dist/collection/components/flip-chip/flip-chip.stories.js +37 -0
- package/dist/collection/components/flip-description-list/flip-description-list.css +24 -0
- package/dist/collection/components/flip-description-list/flip-description-list.js +19 -0
- package/dist/collection/components/flip-description-list/flip-description-list.stories.js +30 -0
- package/dist/collection/components/flip-description-list-item/flip-description-list-item.css +65 -0
- package/dist/collection/components/flip-description-list-item/flip-description-list-item.js +40 -0
- package/dist/collection/components/flip-description-list-item/flip-description-list-item.stories.js +20 -0
- package/dist/collection/components/flip-dialog/flip-dialog.css +158 -0
- package/dist/collection/components/flip-dialog/flip-dialog.js +248 -0
- package/dist/collection/components/flip-dialog/flip-dialog.stories.js +40 -0
- package/dist/collection/components/flip-icon/flip-icon.css +3 -0
- package/dist/collection/components/flip-icon/flip-icon.stories.js +42 -0
- package/dist/collection/components/flip-icon/flip-icon.types.js +1 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-add-photo.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-add.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-admin-panel-settings.js +52 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-arrow-back.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-arrow-forward.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-arrow-right-small.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-attachment.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-cancel.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-chat-bubble.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-check-circle.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-check-small.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-check-strong.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-check.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-chevron-left.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-chevron-right.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-close-small.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-close.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-comment.js +52 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-copy.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-date-range.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-delete.js +52 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-description.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-download.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-edit.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-emoji-mood.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-emoji-satisfied.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-error.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-expand-less.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-expand-more.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-file.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-folder-shared.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-group-assign.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-groups-custom.js +64 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-groups.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-image.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-info.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-inventory.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-like.js +52 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-link.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-lock.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-logout.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-mail.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-manage-accounts.js +55 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-mention.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-message.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-more-horizontal.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-more-vertikal.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-notifications-active.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-notifications-off.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-notifications.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-people-alt.js +58 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-person-off.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-person.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-phone.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-poll.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-recieved.js +52 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-search-strong.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-search.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-send.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-settings.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-time-filled.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-time-outlined.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-today.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-user-assign.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-video-camera.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-visibility-off.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-visibility.js +49 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-warning.js +49 -0
- package/dist/collection/components/flip-inline-error/flip-inline-error.css +35 -0
- package/dist/collection/components/flip-inline-error/flip-inline-error.js +65 -0
- package/dist/collection/components/flip-inline-error/flip-inline-error.stories.js +19 -0
- package/dist/collection/components/flip-link/flip-link.css +21 -0
- package/dist/collection/components/flip-link/flip-link.js +72 -0
- package/dist/collection/components/flip-link/flip-link.stories.js +20 -0
- package/dist/collection/components/flip-popover/flip-popover.css +267 -0
- package/dist/collection/components/flip-popover/flip-popover.js +229 -0
- package/dist/collection/components/flip-popover/flip-popover.stories.js +63 -0
- package/dist/collection/components/flip-radio/flip-radio.css +120 -0
- package/dist/collection/components/flip-radio/flip-radio.js +201 -0
- package/dist/collection/components/flip-radio/flip-radio.stories.js +24 -0
- package/dist/collection/components/flip-radio-group/flip-radio-group.css +13 -0
- package/dist/collection/components/flip-radio-group/flip-radio-group.js +82 -0
- package/dist/collection/components/flip-radio-group/flip-radio-group.stories.js +25 -0
- package/dist/collection/components/flip-search/flip-search.css +96 -0
- package/dist/collection/components/flip-search/flip-search.js +247 -0
- package/dist/collection/components/flip-search/flip-search.stories.js +19 -0
- package/dist/collection/components/flip-spinner/flip-spinner.css +90 -0
- package/dist/collection/components/flip-spinner/flip-spinner.js +66 -0
- package/dist/collection/components/flip-spinner/flip-spinner.stories.js +19 -0
- package/dist/collection/components/flip-stack/flip-stack.css +82 -0
- package/dist/collection/components/flip-stack/flip-stack.js +153 -0
- package/dist/collection/components/flip-stack/flip-stack.stories.js +26 -0
- package/dist/collection/components/flip-switch/flip-switch.css +100 -0
- package/dist/collection/components/flip-switch/flip-switch.js +245 -0
- package/dist/collection/components/flip-switch/flip-switch.stories.js +22 -0
- package/dist/collection/components/flip-tag/flip-tag.css +70 -0
- package/dist/collection/components/flip-tag/flip-tag.js +124 -0
- package/dist/collection/components/flip-tag/flip-tag.stories.js +20 -0
- package/dist/collection/components/flip-theme-provider/flip-theme-provider.css +3 -0
- package/dist/collection/components/flip-theme-provider/flip-theme-provider.js +253 -0
- package/dist/collection/components/flip-theme-provider/flip-theme-provider.stories.js +80 -0
- package/dist/collection/components/flip-thumbnail/flip-thumbnail.css +61 -0
- package/dist/collection/components/flip-thumbnail/flip-thumbnail.js +102 -0
- package/dist/collection/components/flip-thumbnail/flip-thumbnail.stories.js +20 -0
- package/dist/collection/components/flip-toast/flip-toast.css +64 -0
- package/dist/collection/components/flip-toast/flip-toast.js +198 -0
- package/dist/collection/components/flip-toast/flip-toast.stories.js +30 -0
- package/dist/collection/components/flip-toast-provider/flip-toast-provider.js +157 -0
- package/dist/collection/components/flip-toast-provider/flip-toast-provider.stories.js +58 -0
- package/dist/collection/components/flip-tooltip/flip-tooltip.css +42 -0
- package/dist/collection/components/flip-tooltip/flip-tooltip.js +212 -0
- package/dist/collection/components/flip-tooltip/flip-tooltip.stories.js +33 -0
- package/dist/collection/components/flip-visually-hidden/flip-visually-hidden.css +13 -0
- package/dist/collection/components/flip-visually-hidden/flip-visually-hidden.js +15 -0
- package/dist/collection/components/flip-visually-hidden/flip-visually-hidden.stories.js +17 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/utils.js +39 -0
- package/dist/components/flip-action-list-item.d.ts +11 -0
- package/dist/components/flip-action-list-item.js +47 -0
- package/dist/components/flip-action-list-section.d.ts +11 -0
- package/dist/components/flip-action-list-section.js +36 -0
- package/dist/components/flip-action-list.d.ts +11 -0
- package/dist/components/flip-action-list.js +67 -0
- package/dist/components/flip-avatar-group.d.ts +11 -0
- package/dist/components/flip-avatar-group.js +41 -0
- package/dist/components/flip-avatar.d.ts +11 -0
- package/dist/components/flip-avatar.js +111 -0
- package/dist/components/flip-badge.d.ts +11 -0
- package/dist/components/flip-badge.js +47 -0
- package/dist/components/flip-banner.d.ts +11 -0
- package/dist/components/flip-banner.js +76 -0
- package/dist/components/flip-button-group.d.ts +11 -0
- package/dist/components/flip-button-group.js +6 -0
- package/dist/components/flip-button-group2.js +46 -0
- package/dist/components/flip-button.d.ts +11 -0
- package/dist/components/flip-button.js +6 -0
- package/dist/components/flip-button2.js +67 -0
- package/dist/components/flip-checkbox.d.ts +11 -0
- package/dist/components/flip-checkbox.js +79 -0
- package/dist/components/flip-chip.d.ts +11 -0
- package/dist/components/flip-chip.js +71 -0
- package/dist/components/flip-description-list-item.d.ts +11 -0
- package/dist/components/flip-description-list-item.js +36 -0
- package/dist/components/flip-description-list.d.ts +11 -0
- package/dist/components/flip-description-list.js +34 -0
- package/dist/components/flip-dialog.d.ts +11 -0
- package/dist/components/flip-dialog.js +518 -0
- package/dist/components/flip-icon-add-photo.d.ts +11 -0
- package/dist/components/flip-icon-add-photo.js +37 -0
- package/dist/components/flip-icon-add.d.ts +11 -0
- package/dist/components/flip-icon-add.js +37 -0
- package/dist/components/flip-icon-admin-panel-settings.d.ts +11 -0
- package/dist/components/flip-icon-admin-panel-settings.js +37 -0
- package/dist/components/flip-icon-arrow-back.d.ts +11 -0
- package/dist/components/flip-icon-arrow-back.js +37 -0
- package/dist/components/flip-icon-arrow-forward.d.ts +11 -0
- package/dist/components/flip-icon-arrow-forward.js +37 -0
- package/dist/components/flip-icon-arrow-right-small.d.ts +11 -0
- package/dist/components/flip-icon-arrow-right-small.js +37 -0
- package/dist/components/flip-icon-attachment.d.ts +11 -0
- package/dist/components/flip-icon-attachment.js +37 -0
- package/dist/components/flip-icon-cancel.d.ts +11 -0
- package/dist/components/flip-icon-cancel.js +6 -0
- package/dist/components/flip-icon-cancel2.js +34 -0
- package/dist/components/flip-icon-chat-bubble.d.ts +11 -0
- package/dist/components/flip-icon-chat-bubble.js +37 -0
- package/dist/components/flip-icon-check-circle.d.ts +11 -0
- package/dist/components/flip-icon-check-circle.js +37 -0
- package/dist/components/flip-icon-check-small.d.ts +11 -0
- package/dist/components/flip-icon-check-small.js +37 -0
- package/dist/components/flip-icon-check-strong.d.ts +11 -0
- package/dist/components/flip-icon-check-strong.js +6 -0
- package/dist/components/flip-icon-check-strong2.js +34 -0
- package/dist/components/flip-icon-check.d.ts +11 -0
- package/dist/components/flip-icon-check.js +37 -0
- package/dist/components/flip-icon-chevron-left.d.ts +11 -0
- package/dist/components/flip-icon-chevron-left.js +37 -0
- package/dist/components/flip-icon-chevron-right.d.ts +11 -0
- package/dist/components/flip-icon-chevron-right.js +37 -0
- package/dist/components/flip-icon-close-small.d.ts +11 -0
- package/dist/components/flip-icon-close-small.js +37 -0
- package/dist/components/flip-icon-close.d.ts +11 -0
- package/dist/components/flip-icon-close.js +6 -0
- package/dist/components/flip-icon-close2.js +34 -0
- package/dist/components/flip-icon-comment.d.ts +11 -0
- package/dist/components/flip-icon-comment.js +37 -0
- package/dist/components/flip-icon-copy.d.ts +11 -0
- package/dist/components/flip-icon-copy.js +37 -0
- package/dist/components/flip-icon-date-range.d.ts +11 -0
- package/dist/components/flip-icon-date-range.js +37 -0
- package/dist/components/flip-icon-delete.d.ts +11 -0
- package/dist/components/flip-icon-delete.js +37 -0
- package/dist/components/flip-icon-description.d.ts +11 -0
- package/dist/components/flip-icon-description.js +37 -0
- package/dist/components/flip-icon-download.d.ts +11 -0
- package/dist/components/flip-icon-download.js +37 -0
- package/dist/components/flip-icon-edit.d.ts +11 -0
- package/dist/components/flip-icon-edit.js +37 -0
- package/dist/components/flip-icon-emoji-mood.d.ts +11 -0
- package/dist/components/flip-icon-emoji-mood.js +37 -0
- package/dist/components/flip-icon-emoji-satisfied.d.ts +11 -0
- package/dist/components/flip-icon-emoji-satisfied.js +37 -0
- package/dist/components/flip-icon-error.d.ts +11 -0
- package/dist/components/flip-icon-error.js +6 -0
- package/dist/components/flip-icon-error2.js +34 -0
- package/dist/components/flip-icon-expand-less.d.ts +11 -0
- package/dist/components/flip-icon-expand-less.js +37 -0
- package/dist/components/flip-icon-expand-more.d.ts +11 -0
- package/dist/components/flip-icon-expand-more.js +37 -0
- package/dist/components/flip-icon-file.d.ts +11 -0
- package/dist/components/flip-icon-file.js +37 -0
- package/dist/components/flip-icon-folder-shared.d.ts +11 -0
- package/dist/components/flip-icon-folder-shared.js +37 -0
- package/dist/components/flip-icon-group-assign.d.ts +11 -0
- package/dist/components/flip-icon-group-assign.js +37 -0
- package/dist/components/flip-icon-groups-custom.d.ts +11 -0
- package/dist/components/flip-icon-groups-custom.js +37 -0
- package/dist/components/flip-icon-groups.d.ts +11 -0
- package/dist/components/flip-icon-groups.js +37 -0
- package/dist/components/flip-icon-image.d.ts +11 -0
- package/dist/components/flip-icon-image.js +37 -0
- package/dist/components/flip-icon-info.d.ts +11 -0
- package/dist/components/flip-icon-info.js +37 -0
- package/dist/components/flip-icon-inventory.d.ts +11 -0
- package/dist/components/flip-icon-inventory.js +37 -0
- package/dist/components/flip-icon-like.d.ts +11 -0
- package/dist/components/flip-icon-like.js +37 -0
- package/dist/components/flip-icon-link.d.ts +11 -0
- package/dist/components/flip-icon-link.js +37 -0
- package/dist/components/flip-icon-lock.d.ts +11 -0
- package/dist/components/flip-icon-lock.js +37 -0
- package/dist/components/flip-icon-logout.d.ts +11 -0
- package/dist/components/flip-icon-logout.js +37 -0
- package/dist/components/flip-icon-mail.d.ts +11 -0
- package/dist/components/flip-icon-mail.js +37 -0
- package/dist/components/flip-icon-manage-accounts.d.ts +11 -0
- package/dist/components/flip-icon-manage-accounts.js +37 -0
- package/dist/components/flip-icon-mention.d.ts +11 -0
- package/dist/components/flip-icon-mention.js +37 -0
- package/dist/components/flip-icon-message.d.ts +11 -0
- package/dist/components/flip-icon-message.js +37 -0
- package/dist/components/flip-icon-more-horizontal.d.ts +11 -0
- package/dist/components/flip-icon-more-horizontal.js +37 -0
- package/dist/components/flip-icon-more-vertikal.d.ts +11 -0
- package/dist/components/flip-icon-more-vertikal.js +37 -0
- package/dist/components/flip-icon-notifications-active.d.ts +11 -0
- package/dist/components/flip-icon-notifications-active.js +37 -0
- package/dist/components/flip-icon-notifications-off.d.ts +11 -0
- package/dist/components/flip-icon-notifications-off.js +37 -0
- package/dist/components/flip-icon-notifications.d.ts +11 -0
- package/dist/components/flip-icon-notifications.js +37 -0
- package/dist/components/flip-icon-people-alt.d.ts +11 -0
- package/dist/components/flip-icon-people-alt.js +37 -0
- package/dist/components/flip-icon-person-off.d.ts +11 -0
- package/dist/components/flip-icon-person-off.js +37 -0
- package/dist/components/flip-icon-person.d.ts +11 -0
- package/dist/components/flip-icon-person.js +6 -0
- package/dist/components/flip-icon-person2.js +34 -0
- package/dist/components/flip-icon-phone.d.ts +11 -0
- package/dist/components/flip-icon-phone.js +37 -0
- package/dist/components/flip-icon-poll.d.ts +11 -0
- package/dist/components/flip-icon-poll.js +37 -0
- package/dist/components/flip-icon-recieved.d.ts +11 -0
- package/dist/components/flip-icon-recieved.js +37 -0
- package/dist/components/flip-icon-search-strong.d.ts +11 -0
- package/dist/components/flip-icon-search-strong.js +37 -0
- package/dist/components/flip-icon-search.d.ts +11 -0
- package/dist/components/flip-icon-search.js +6 -0
- package/dist/components/flip-icon-search2.js +34 -0
- package/dist/components/flip-icon-send.d.ts +11 -0
- package/dist/components/flip-icon-send.js +37 -0
- package/dist/components/flip-icon-settings.d.ts +11 -0
- package/dist/components/flip-icon-settings.js +37 -0
- package/dist/components/flip-icon-time-filled.d.ts +11 -0
- package/dist/components/flip-icon-time-filled.js +37 -0
- package/dist/components/flip-icon-time-outlined.d.ts +11 -0
- package/dist/components/flip-icon-time-outlined.js +37 -0
- package/dist/components/flip-icon-today.d.ts +11 -0
- package/dist/components/flip-icon-today.js +37 -0
- package/dist/components/flip-icon-user-assign.d.ts +11 -0
- package/dist/components/flip-icon-user-assign.js +37 -0
- package/dist/components/flip-icon-video-camera.d.ts +11 -0
- package/dist/components/flip-icon-video-camera.js +37 -0
- package/dist/components/flip-icon-visibility-off.d.ts +11 -0
- package/dist/components/flip-icon-visibility-off.js +37 -0
- package/dist/components/flip-icon-visibility.d.ts +11 -0
- package/dist/components/flip-icon-visibility.js +37 -0
- package/dist/components/flip-icon-warning.d.ts +11 -0
- package/dist/components/flip-icon-warning.js +37 -0
- package/dist/components/flip-inline-error.d.ts +11 -0
- package/dist/components/flip-inline-error.js +47 -0
- package/dist/components/flip-link.d.ts +11 -0
- package/dist/components/flip-link.js +38 -0
- package/dist/components/flip-popover.d.ts +11 -0
- package/dist/components/flip-popover.js +1580 -0
- package/dist/components/flip-radio-group.d.ts +11 -0
- package/dist/components/flip-radio-group.js +67 -0
- package/dist/components/flip-radio.d.ts +11 -0
- package/dist/components/flip-radio.js +66 -0
- package/dist/components/flip-search.d.ts +11 -0
- package/dist/components/flip-search.js +82 -0
- package/dist/components/flip-spinner.d.ts +11 -0
- package/dist/components/flip-spinner.js +46 -0
- package/dist/components/flip-stack.d.ts +11 -0
- package/dist/components/flip-stack.js +6 -0
- package/dist/components/flip-stack2.js +47 -0
- package/dist/components/flip-switch.d.ts +11 -0
- package/dist/components/flip-switch.js +120 -0
- package/dist/components/flip-tag.d.ts +11 -0
- package/dist/components/flip-tag.js +54 -0
- package/dist/components/flip-theme-provider.d.ts +11 -0
- package/dist/components/flip-theme-provider.js +387 -0
- package/dist/components/flip-thumbnail.d.ts +11 -0
- package/dist/components/flip-thumbnail.js +43 -0
- package/dist/components/flip-toast-provider.d.ts +11 -0
- package/dist/components/flip-toast-provider.js +93 -0
- package/dist/components/flip-toast.d.ts +11 -0
- package/dist/components/flip-toast.js +6 -0
- package/dist/components/flip-toast2.js +78 -0
- package/dist/components/flip-tooltip.d.ts +11 -0
- package/dist/components/flip-tooltip.js +143 -0
- package/dist/components/flip-visually-hidden.d.ts +11 -0
- package/dist/components/flip-visually-hidden.js +6 -0
- package/dist/components/flip-visually-hidden2.js +31 -0
- package/dist/components/index.d.ts +119 -0
- package/dist/components/index.js +99 -0
- package/dist/components/index2.js +70 -0
- package/dist/components/utils.js +26 -0
- package/dist/esm/flip-action-list-item.entry.js +20 -0
- package/dist/esm/flip-action-list-section.entry.js +15 -0
- package/dist/esm/flip-action-list.entry.js +48 -0
- package/dist/esm/flip-avatar-group.entry.js +20 -0
- package/dist/esm/flip-avatar.entry.js +74 -0
- package/dist/esm/flip-badge.entry.js +22 -0
- package/dist/esm/flip-banner.entry.js +43 -0
- package/dist/esm/flip-button_2.entry.js +54 -0
- package/dist/esm/flip-checkbox.entry.js +40 -0
- package/dist/esm/flip-chip.entry.js +46 -0
- package/dist/esm/flip-description-list-item.entry.js +15 -0
- package/dist/esm/flip-description-list.entry.js +15 -0
- package/dist/esm/flip-dialog.entry.js +472 -0
- package/dist/esm/flip-icon-add-photo.entry.js +16 -0
- package/dist/esm/flip-icon-add.entry.js +16 -0
- package/dist/esm/flip-icon-admin-panel-settings.entry.js +16 -0
- package/dist/esm/flip-icon-arrow-back.entry.js +16 -0
- package/dist/esm/flip-icon-arrow-forward.entry.js +16 -0
- package/dist/esm/flip-icon-arrow-right-small.entry.js +16 -0
- package/dist/esm/flip-icon-attachment.entry.js +16 -0
- package/dist/esm/flip-icon-cancel_2.entry.js +29 -0
- package/dist/esm/flip-icon-chat-bubble.entry.js +16 -0
- package/dist/esm/flip-icon-check-circle.entry.js +16 -0
- package/dist/esm/flip-icon-check-small.entry.js +16 -0
- package/dist/esm/flip-icon-check-strong.entry.js +16 -0
- package/dist/esm/flip-icon-check.entry.js +16 -0
- package/dist/esm/flip-icon-chevron-left.entry.js +16 -0
- package/dist/esm/flip-icon-chevron-right.entry.js +16 -0
- package/dist/esm/flip-icon-close-small.entry.js +16 -0
- package/dist/esm/flip-icon-close.entry.js +16 -0
- package/dist/esm/flip-icon-comment.entry.js +16 -0
- package/dist/esm/flip-icon-copy.entry.js +16 -0
- package/dist/esm/flip-icon-date-range.entry.js +16 -0
- package/dist/esm/flip-icon-delete.entry.js +16 -0
- package/dist/esm/flip-icon-description.entry.js +16 -0
- package/dist/esm/flip-icon-download.entry.js +16 -0
- package/dist/esm/flip-icon-edit.entry.js +16 -0
- package/dist/esm/flip-icon-emoji-mood.entry.js +16 -0
- package/dist/esm/flip-icon-emoji-satisfied.entry.js +16 -0
- package/dist/esm/flip-icon-error.entry.js +16 -0
- package/dist/esm/flip-icon-expand-less.entry.js +16 -0
- package/dist/esm/flip-icon-expand-more.entry.js +16 -0
- package/dist/esm/flip-icon-file.entry.js +16 -0
- package/dist/esm/flip-icon-folder-shared.entry.js +16 -0
- package/dist/esm/flip-icon-group-assign.entry.js +16 -0
- package/dist/esm/flip-icon-groups-custom.entry.js +16 -0
- package/dist/esm/flip-icon-groups.entry.js +16 -0
- package/dist/esm/flip-icon-image.entry.js +16 -0
- package/dist/esm/flip-icon-info.entry.js +16 -0
- package/dist/esm/flip-icon-inventory.entry.js +16 -0
- package/dist/esm/flip-icon-like.entry.js +16 -0
- package/dist/esm/flip-icon-link.entry.js +16 -0
- package/dist/esm/flip-icon-lock.entry.js +16 -0
- package/dist/esm/flip-icon-logout.entry.js +16 -0
- package/dist/esm/flip-icon-mail.entry.js +16 -0
- package/dist/esm/flip-icon-manage-accounts.entry.js +16 -0
- package/dist/esm/flip-icon-mention.entry.js +16 -0
- package/dist/esm/flip-icon-message.entry.js +16 -0
- package/dist/esm/flip-icon-more-horizontal.entry.js +16 -0
- package/dist/esm/flip-icon-more-vertikal.entry.js +16 -0
- package/dist/esm/flip-icon-notifications-active.entry.js +16 -0
- package/dist/esm/flip-icon-notifications-off.entry.js +16 -0
- package/dist/esm/flip-icon-notifications.entry.js +16 -0
- package/dist/esm/flip-icon-people-alt.entry.js +16 -0
- package/dist/esm/flip-icon-person-off.entry.js +16 -0
- package/dist/esm/flip-icon-person.entry.js +16 -0
- package/dist/esm/flip-icon-phone.entry.js +16 -0
- package/dist/esm/flip-icon-poll.entry.js +16 -0
- package/dist/esm/flip-icon-recieved.entry.js +16 -0
- package/dist/esm/flip-icon-search-strong.entry.js +16 -0
- package/dist/esm/flip-icon-send.entry.js +16 -0
- package/dist/esm/flip-icon-settings.entry.js +16 -0
- package/dist/esm/flip-icon-time-filled.entry.js +16 -0
- package/dist/esm/flip-icon-time-outlined.entry.js +16 -0
- package/dist/esm/flip-icon-today.entry.js +16 -0
- package/dist/esm/flip-icon-user-assign.entry.js +16 -0
- package/dist/esm/flip-icon-video-camera.entry.js +16 -0
- package/dist/esm/flip-icon-visibility-off.entry.js +16 -0
- package/dist/esm/flip-icon-visibility.entry.js +16 -0
- package/dist/esm/flip-icon-warning.entry.js +16 -0
- package/dist/esm/flip-inline-error.entry.js +19 -0
- package/dist/esm/flip-link.entry.js +15 -0
- package/dist/esm/flip-popover.entry.js +1554 -0
- package/dist/esm/flip-radio-group.entry.js +47 -0
- package/dist/esm/flip-radio.entry.js +33 -0
- package/dist/esm/flip-search.entry.js +43 -0
- package/dist/esm/flip-spinner.entry.js +18 -0
- package/dist/esm/flip-stack.entry.js +24 -0
- package/dist/esm/flip-switch.entry.js +88 -0
- package/dist/esm/flip-tag.entry.js +24 -0
- package/dist/esm/flip-theme-provider.entry.js +363 -0
- package/dist/esm/flip-thumbnail.entry.js +19 -0
- package/dist/esm/flip-toast-provider.entry.js +50 -0
- package/dist/esm/flip-toast.entry.js +48 -0
- package/dist/esm/flip-tooltip.entry.js +118 -0
- package/dist/esm/flip-visually-hidden.entry.js +15 -0
- package/dist/esm/index-36517fab.js +1774 -0
- package/dist/esm/index-3c78bcaf.js +70 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +17 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/swirl-components.js +17 -0
- package/dist/esm/utils-03e3261c.js +26 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/swirl-components/index.esm.js +0 -0
- package/dist/swirl-components/p-01857435.entry.js +1 -0
- package/dist/swirl-components/p-0a9f3ada.entry.js +1 -0
- package/dist/swirl-components/p-0d619d62.entry.js +1 -0
- package/dist/swirl-components/p-0de885c6.entry.js +1 -0
- package/dist/swirl-components/p-0fa4c4cf.entry.js +1 -0
- package/dist/swirl-components/p-0fa6b98f.entry.js +1 -0
- package/dist/swirl-components/p-102db76d.entry.js +1 -0
- package/dist/swirl-components/p-1126e372.entry.js +1 -0
- package/dist/swirl-components/p-126ead5f.entry.js +1 -0
- package/dist/swirl-components/p-1419666f.entry.js +1 -0
- package/dist/swirl-components/p-1429e47a.entry.js +1 -0
- package/dist/swirl-components/p-1609dbf3.entry.js +1 -0
- package/dist/swirl-components/p-17073db0.entry.js +1 -0
- package/dist/swirl-components/p-1853aaf0.entry.js +1 -0
- package/dist/swirl-components/p-18965b40.entry.js +1 -0
- package/dist/swirl-components/p-18a51976.entry.js +1 -0
- package/dist/swirl-components/p-1a9f0bc1.entry.js +1 -0
- package/dist/swirl-components/p-1bd3e7c0.entry.js +1 -0
- package/dist/swirl-components/p-1c2e8e09.entry.js +1 -0
- package/dist/swirl-components/p-1c8b77fe.entry.js +1 -0
- package/dist/swirl-components/p-213191cb.entry.js +1 -0
- package/dist/swirl-components/p-24d112d7.entry.js +1 -0
- package/dist/swirl-components/p-30011711.entry.js +1 -0
- package/dist/swirl-components/p-30048d87.js +1 -0
- package/dist/swirl-components/p-3234f836.entry.js +1 -0
- package/dist/swirl-components/p-32a5e2a7.entry.js +1 -0
- package/dist/swirl-components/p-37cfdd8f.js +7 -0
- package/dist/swirl-components/p-37d96123.entry.js +1 -0
- package/dist/swirl-components/p-3d59d365.entry.js +1 -0
- package/dist/swirl-components/p-432dd5f1.entry.js +1 -0
- package/dist/swirl-components/p-437842a2.entry.js +1 -0
- package/dist/swirl-components/p-453db2cf.entry.js +1 -0
- package/dist/swirl-components/p-468d0e9b.entry.js +1 -0
- package/dist/swirl-components/p-46f638cf.entry.js +1 -0
- package/dist/swirl-components/p-47a9a9cb.entry.js +1 -0
- package/dist/swirl-components/p-4f3d8490.entry.js +1 -0
- package/dist/swirl-components/p-545caf4a.entry.js +1 -0
- package/dist/swirl-components/p-54b9e1b5.entry.js +1 -0
- package/dist/swirl-components/p-55aaf1d3.entry.js +1 -0
- package/dist/swirl-components/p-56bdede5.entry.js +1 -0
- package/dist/swirl-components/p-5a13d6fe.entry.js +1 -0
- package/dist/swirl-components/p-5d27a69e.entry.js +1 -0
- package/dist/swirl-components/p-63e5b5d9.entry.js +1 -0
- package/dist/swirl-components/p-67aaf094.entry.js +1 -0
- package/dist/swirl-components/p-67deba9e.entry.js +1 -0
- package/dist/swirl-components/p-6a6de48d.entry.js +1 -0
- package/dist/swirl-components/p-6a9a0e08.entry.js +1 -0
- package/dist/swirl-components/p-6b840e3d.entry.js +1 -0
- package/dist/swirl-components/p-6b957569.entry.js +1 -0
- package/dist/swirl-components/p-70b255b3.entry.js +1 -0
- package/dist/swirl-components/p-7a6b480c.entry.js +1 -0
- package/dist/swirl-components/p-828cc4a3.entry.js +1 -0
- package/dist/swirl-components/p-8423a1b5.entry.js +1 -0
- package/dist/swirl-components/p-8bf1ad8a.entry.js +1 -0
- package/dist/swirl-components/p-94d933b3.entry.js +1 -0
- package/dist/swirl-components/p-95bd2274.entry.js +1 -0
- package/dist/swirl-components/p-9b4a9856.entry.js +1 -0
- package/dist/swirl-components/p-9c12d1eb.entry.js +1 -0
- package/dist/swirl-components/p-9d07fb5a.entry.js +1 -0
- package/dist/swirl-components/p-a1946e3b.entry.js +1 -0
- package/dist/swirl-components/p-a203be4a.entry.js +1 -0
- package/dist/swirl-components/p-a605b3d1.entry.js +1 -0
- package/dist/swirl-components/p-a6fb93df.entry.js +1 -0
- package/dist/swirl-components/p-a71261bc.entry.js +1 -0
- package/dist/swirl-components/p-aada2b77.entry.js +1 -0
- package/dist/swirl-components/p-ad434623.entry.js +1 -0
- package/dist/swirl-components/p-adbcf0ae.entry.js +1 -0
- package/dist/swirl-components/p-ae504b3e.entry.js +1 -0
- package/dist/swirl-components/p-b16d4978.entry.js +1 -0
- package/dist/swirl-components/p-b4540264.entry.js +1 -0
- package/dist/swirl-components/p-b5cd4041.entry.js +1 -0
- package/dist/swirl-components/p-b624ff23.entry.js +1 -0
- package/dist/swirl-components/p-b64b6dc5.entry.js +1 -0
- package/dist/swirl-components/p-c35a6610.entry.js +1 -0
- package/dist/swirl-components/p-c5200740.entry.js +1 -0
- package/dist/swirl-components/p-cac72e30.entry.js +1 -0
- package/dist/swirl-components/p-cc50d7a7.entry.js +1 -0
- package/dist/swirl-components/p-cf8be27a.entry.js +1 -0
- package/dist/swirl-components/p-cfef8bdb.entry.js +1 -0
- package/dist/swirl-components/p-d1c899ad.entry.js +1 -0
- package/dist/swirl-components/p-d3999b94.entry.js +2 -0
- package/dist/swirl-components/p-d41e3a37.entry.js +1 -0
- package/dist/swirl-components/p-db229451.entry.js +1 -0
- package/dist/swirl-components/p-db902aec.entry.js +1 -0
- package/dist/swirl-components/p-e0513b73.entry.js +1 -0
- package/dist/swirl-components/p-e12fbb2d.js +2 -0
- package/dist/swirl-components/p-e1554c48.entry.js +1 -0
- package/dist/swirl-components/p-e384bd2c.entry.js +1 -0
- package/dist/swirl-components/p-e4df2658.entry.js +1 -0
- package/dist/swirl-components/p-e65d2d81.entry.js +1 -0
- package/dist/swirl-components/p-e89c7891.entry.js +1 -0
- package/dist/swirl-components/p-f1774da0.entry.js +1 -0
- package/dist/swirl-components/p-f45709c0.entry.js +1 -0
- package/dist/swirl-components/p-f59098f7.entry.js +1 -0
- package/dist/swirl-components/p-f6e77552.entry.js +1 -0
- package/dist/swirl-components/p-f8273972.entry.js +1 -0
- package/dist/swirl-components/p-fa7cc450.entry.js +1 -0
- package/dist/swirl-components/p-fb19d8b9.entry.js +1 -0
- package/dist/swirl-components/p-ff0868ae.entry.js +1 -0
- package/dist/swirl-components/swirl-components.css +2 -0
- package/dist/swirl-components/swirl-components.esm.js +1 -0
- package/dist/types/components/flip-action-list/flip-action-list.d.ts +13 -0
- package/dist/types/components/flip-action-list/flip-action-list.stories.d.ts +13 -0
- package/dist/types/components/flip-action-list-item/flip-action-list-item.d.ts +12 -0
- package/dist/types/components/flip-action-list-item/flip-action-list-item.stories.d.ts +14 -0
- package/dist/types/components/flip-action-list-section/flip-action-list-section.d.ts +7 -0
- package/dist/types/components/flip-action-list-section/flip-action-list-section.stories.d.ts +13 -0
- package/dist/types/components/flip-avatar/flip-avatar.d.ts +23 -0
- package/dist/types/components/flip-avatar/flip-avatar.stories.d.ts +32 -0
- package/dist/types/components/flip-avatar-group/flip-avatar-group.d.ts +7 -0
- package/dist/types/components/flip-avatar-group/flip-avatar-group.stories.d.ts +23 -0
- package/dist/types/components/flip-badge/flip-badge.d.ts +11 -0
- package/dist/types/components/flip-badge/flip-badge.stories.d.ts +23 -0
- package/dist/types/components/flip-banner/flip-banner.d.ts +18 -0
- package/dist/types/components/flip-banner/flip-banner.stories.d.ts +13 -0
- package/dist/types/components/flip-button/flip-button.d.ts +24 -0
- package/dist/types/components/flip-button/flip-button.stories.d.ts +23 -0
- package/dist/types/components/flip-button-group/flip-button-group.d.ts +8 -0
- package/dist/types/components/flip-button-group/flip-button-group.stories.d.ts +13 -0
- package/dist/types/components/flip-checkbox/flip-checkbox.d.ts +15 -0
- package/dist/types/components/flip-checkbox/flip-checkbox.stories.d.ts +19 -0
- package/dist/types/components/flip-chip/flip-chip.d.ts +14 -0
- package/dist/types/components/flip-chip/flip-chip.stories.d.ts +31 -0
- package/dist/types/components/flip-description-list/flip-description-list.d.ts +6 -0
- package/dist/types/components/flip-description-list/flip-description-list.stories.d.ts +13 -0
- package/dist/types/components/flip-description-list-item/flip-description-list-item.d.ts +7 -0
- package/dist/types/components/flip-description-list-item/flip-description-list-item.stories.d.ts +13 -0
- package/dist/types/components/flip-dialog/flip-dialog.d.ts +33 -0
- package/dist/types/components/flip-dialog/flip-dialog.stories.d.ts +16 -0
- package/dist/types/components/flip-icon/flip-icon.stories.d.ts +16 -0
- package/dist/types/components/flip-icon/flip-icon.types.d.ts +1 -0
- package/dist/types/components/flip-icon/icons/flip-icon-add-photo.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-add.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-admin-panel-settings.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-arrow-back.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-arrow-forward.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-arrow-right-small.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-attachment.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-cancel.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-chat-bubble.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-check-circle.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-check-small.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-check-strong.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-check.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-chevron-left.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-chevron-right.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-close-small.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-close.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-comment.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-copy.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-date-range.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-delete.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-description.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-download.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-edit.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-emoji-mood.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-emoji-satisfied.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-error.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-expand-less.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-expand-more.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-file.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-folder-shared.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-group-assign.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-groups-custom.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-groups.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-image.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-info.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-inventory.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-like.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-link.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-lock.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-logout.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-mail.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-manage-accounts.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-mention.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-message.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-more-horizontal.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-more-vertikal.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-notifications-active.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-notifications-off.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-notifications.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-people-alt.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-person-off.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-person.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-phone.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-poll.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-recieved.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-search-strong.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-search.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-send.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-settings.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-time-filled.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-time-outlined.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-today.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-user-assign.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-video-camera.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-visibility-off.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-visibility.d.ts +5 -0
- package/dist/types/components/flip-icon/icons/flip-icon-warning.d.ts +5 -0
- package/dist/types/components/flip-inline-error/flip-inline-error.d.ts +6 -0
- package/dist/types/components/flip-inline-error/flip-inline-error.stories.d.ts +13 -0
- package/dist/types/components/flip-link/flip-link.d.ts +7 -0
- package/dist/types/components/flip-link/flip-link.stories.d.ts +13 -0
- package/dist/types/components/flip-popover/flip-popover.d.ts +33 -0
- package/dist/types/components/flip-popover/flip-popover.stories.d.ts +21 -0
- package/dist/types/components/flip-radio/flip-radio.d.ts +15 -0
- package/dist/types/components/flip-radio/flip-radio.stories.d.ts +13 -0
- package/dist/types/components/flip-radio-group/flip-radio-group.d.ts +11 -0
- package/dist/types/components/flip-radio-group/flip-radio-group.stories.d.ts +13 -0
- package/dist/types/components/flip-search/flip-search.d.ts +21 -0
- package/dist/types/components/flip-search/flip-search.stories.d.ts +13 -0
- package/dist/types/components/flip-spinner/flip-spinner.d.ts +6 -0
- package/dist/types/components/flip-spinner/flip-spinner.stories.d.ts +13 -0
- package/dist/types/components/flip-stack/flip-stack.d.ts +13 -0
- package/dist/types/components/flip-stack/flip-stack.stories.d.ts +13 -0
- package/dist/types/components/flip-switch/flip-switch.d.ts +23 -0
- package/dist/types/components/flip-switch/flip-switch.stories.d.ts +13 -0
- package/dist/types/components/flip-tag/flip-tag.d.ts +11 -0
- package/dist/types/components/flip-tag/flip-tag.stories.d.ts +13 -0
- package/dist/types/components/flip-theme-provider/flip-theme-provider.d.ts +51 -0
- package/dist/types/components/flip-theme-provider/flip-theme-provider.stories.d.ts +17 -0
- package/dist/types/components/flip-thumbnail/flip-thumbnail.d.ts +9 -0
- package/dist/types/components/flip-thumbnail/flip-thumbnail.stories.d.ts +13 -0
- package/dist/types/components/flip-toast/flip-toast.d.ts +19 -0
- package/dist/types/components/flip-toast/flip-toast.stories.d.ts +23 -0
- package/dist/types/components/flip-toast-provider/flip-toast-provider.d.ts +43 -0
- package/dist/types/components/flip-toast-provider/flip-toast-provider.stories.d.ts +16 -0
- package/dist/types/components/flip-tooltip/flip-tooltip.d.ts +28 -0
- package/dist/types/components/flip-tooltip/flip-tooltip.stories.d.ts +14 -0
- package/dist/types/components/flip-visually-hidden/flip-visually-hidden.d.ts +3 -0
- package/dist/types/components/flip-visually-hidden/flip-visually-hidden.stories.d.ts +13 -0
- package/dist/types/components.d.ts +1809 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1565 -0
- package/dist/types/utils.d.ts +4 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +12 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +10 -0
- package/package.json +82 -0
- package/vscode-data.json +2041 -0
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* A simple guard function:
|
|
5
|
+
*
|
|
6
|
+
* ```js
|
|
7
|
+
* Math.min(Math.max(low, value), high)
|
|
8
|
+
* ```
|
|
9
|
+
*/
|
|
10
|
+
function guard(low, high, value) {
|
|
11
|
+
return Math.min(Math.max(low, value), high);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
class ColorError extends Error {
|
|
15
|
+
constructor(color) {
|
|
16
|
+
super(`Failed to parse color: "${color}"`);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
var ColorError$1 = ColorError;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Parses a color into red, gree, blue, alpha parts
|
|
25
|
+
*
|
|
26
|
+
* @param color the input color. Can be a RGB, RBGA, HSL, HSLA, or named color
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
function parseToRgba(color) {
|
|
30
|
+
if (typeof color !== 'string') throw new ColorError$1(color);
|
|
31
|
+
if (color.trim().toLowerCase() === 'transparent') return [0, 0, 0, 0];
|
|
32
|
+
let normalizedColor = color.trim();
|
|
33
|
+
normalizedColor = namedColorRegex.test(color) ? nameToHex(color) : color;
|
|
34
|
+
const reducedHexMatch = reducedHexRegex.exec(normalizedColor);
|
|
35
|
+
|
|
36
|
+
if (reducedHexMatch) {
|
|
37
|
+
const arr = Array.from(reducedHexMatch).slice(1);
|
|
38
|
+
return [...arr.slice(0, 3).map(x => parseInt(r(x, 2), 16)), parseInt(r(arr[3] || 'f', 2), 16) / 255];
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const hexMatch = hexRegex.exec(normalizedColor);
|
|
42
|
+
|
|
43
|
+
if (hexMatch) {
|
|
44
|
+
const arr = Array.from(hexMatch).slice(1);
|
|
45
|
+
return [...arr.slice(0, 3).map(x => parseInt(x, 16)), parseInt(arr[3] || 'ff', 16) / 255];
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const rgbaMatch = rgbaRegex.exec(normalizedColor);
|
|
49
|
+
|
|
50
|
+
if (rgbaMatch) {
|
|
51
|
+
const arr = Array.from(rgbaMatch).slice(1);
|
|
52
|
+
return [...arr.slice(0, 3).map(x => parseInt(x, 10)), parseFloat(arr[3] || '1')];
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
const hslaMatch = hslaRegex.exec(normalizedColor);
|
|
56
|
+
|
|
57
|
+
if (hslaMatch) {
|
|
58
|
+
const [h, s, l, a] = Array.from(hslaMatch).slice(1).map(parseFloat);
|
|
59
|
+
if (guard(0, 100, s) !== s) throw new ColorError$1(color);
|
|
60
|
+
if (guard(0, 100, l) !== l) throw new ColorError$1(color);
|
|
61
|
+
return [...hslToRgb(h, s, l), a || 1];
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
throw new ColorError$1(color);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
function hash(str) {
|
|
68
|
+
let hash = 5381;
|
|
69
|
+
let i = str.length;
|
|
70
|
+
|
|
71
|
+
while (i) {
|
|
72
|
+
hash = hash * 33 ^ str.charCodeAt(--i);
|
|
73
|
+
}
|
|
74
|
+
/* JavaScript does bitwise operations (like XOR, above) on 32-bit signed
|
|
75
|
+
* integers. Since we want the results to be always positive, convert the
|
|
76
|
+
* signed int to an unsigned by doing an unsigned bitshift. */
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
return (hash >>> 0) % 2341;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
const colorToInt = x => parseInt(x.replace(/_/g, ''), 36);
|
|
83
|
+
|
|
84
|
+
const compressedColorMap = '1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm'.split(' ').reduce((acc, next) => {
|
|
85
|
+
const key = colorToInt(next.substring(0, 3));
|
|
86
|
+
const hex = colorToInt(next.substring(3)).toString(16); // NOTE: padStart could be used here but it breaks Node 6 compat
|
|
87
|
+
// https://github.com/ricokahler/color2k/issues/351
|
|
88
|
+
|
|
89
|
+
let prefix = '';
|
|
90
|
+
|
|
91
|
+
for (let i = 0; i < 6 - hex.length; i++) {
|
|
92
|
+
prefix += '0';
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
acc[key] = `${prefix}${hex}`;
|
|
96
|
+
return acc;
|
|
97
|
+
}, {});
|
|
98
|
+
/**
|
|
99
|
+
* Checks if a string is a CSS named color and returns its equivalent hex value, otherwise returns the original color.
|
|
100
|
+
*/
|
|
101
|
+
|
|
102
|
+
function nameToHex(color) {
|
|
103
|
+
const normalizedColorName = color.toLowerCase().trim();
|
|
104
|
+
const result = compressedColorMap[hash(normalizedColorName)];
|
|
105
|
+
if (!result) throw new ColorError$1(color);
|
|
106
|
+
return `#${result}`;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
const r = (str, amount) => Array.from(Array(amount)).map(() => str).join('');
|
|
110
|
+
|
|
111
|
+
const reducedHexRegex = new RegExp(`^#${r('([a-f0-9])', 3)}([a-f0-9])?$`, 'i');
|
|
112
|
+
const hexRegex = new RegExp(`^#${r('([a-f0-9]{2})', 3)}([a-f0-9]{2})?$`, 'i');
|
|
113
|
+
const rgbaRegex = new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${r(',\\s*(\\d+)\\s*', 2)}(?:,\\s*([\\d.]+))?\\s*\\)$`, 'i');
|
|
114
|
+
const hslaRegex = /^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i;
|
|
115
|
+
const namedColorRegex = /^[a-z]+$/i;
|
|
116
|
+
|
|
117
|
+
const roundColor = color => {
|
|
118
|
+
return Math.round(color * 255);
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
const hslToRgb = (hue, saturation, lightness) => {
|
|
122
|
+
let l = lightness / 100;
|
|
123
|
+
|
|
124
|
+
if (saturation === 0) {
|
|
125
|
+
// achromatic
|
|
126
|
+
return [l, l, l].map(roundColor);
|
|
127
|
+
} // formulae from https://en.wikipedia.org/wiki/HSL_and_HSV
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
const huePrime = (hue % 360 + 360) % 360 / 60;
|
|
131
|
+
const chroma = (1 - Math.abs(2 * l - 1)) * (saturation / 100);
|
|
132
|
+
const secondComponent = chroma * (1 - Math.abs(huePrime % 2 - 1));
|
|
133
|
+
let red = 0;
|
|
134
|
+
let green = 0;
|
|
135
|
+
let blue = 0;
|
|
136
|
+
|
|
137
|
+
if (huePrime >= 0 && huePrime < 1) {
|
|
138
|
+
red = chroma;
|
|
139
|
+
green = secondComponent;
|
|
140
|
+
} else if (huePrime >= 1 && huePrime < 2) {
|
|
141
|
+
red = secondComponent;
|
|
142
|
+
green = chroma;
|
|
143
|
+
} else if (huePrime >= 2 && huePrime < 3) {
|
|
144
|
+
green = chroma;
|
|
145
|
+
blue = secondComponent;
|
|
146
|
+
} else if (huePrime >= 3 && huePrime < 4) {
|
|
147
|
+
green = secondComponent;
|
|
148
|
+
blue = chroma;
|
|
149
|
+
} else if (huePrime >= 4 && huePrime < 5) {
|
|
150
|
+
red = secondComponent;
|
|
151
|
+
blue = chroma;
|
|
152
|
+
} else if (huePrime >= 5 && huePrime < 6) {
|
|
153
|
+
red = chroma;
|
|
154
|
+
blue = secondComponent;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
const lightnessModification = l - chroma / 2;
|
|
158
|
+
const finalRed = red + lightnessModification;
|
|
159
|
+
const finalGreen = green + lightnessModification;
|
|
160
|
+
const finalBlue = blue + lightnessModification;
|
|
161
|
+
return [finalRed, finalGreen, finalBlue].map(roundColor);
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
// taken from:
|
|
165
|
+
/**
|
|
166
|
+
* Parses a color in hue, saturation, lightness, and the alpha channel.
|
|
167
|
+
*
|
|
168
|
+
* Hue is a number between 0 and 360, saturation, lightness, and alpha are
|
|
169
|
+
* decimal percentages between 0 and 1
|
|
170
|
+
*/
|
|
171
|
+
|
|
172
|
+
function parseToHsla(color) {
|
|
173
|
+
const [red, green, blue, alpha] = parseToRgba(color).map((value, index) => // 3rd index is alpha channel which is already normalized
|
|
174
|
+
index === 3 ? value : value / 255);
|
|
175
|
+
const max = Math.max(red, green, blue);
|
|
176
|
+
const min = Math.min(red, green, blue);
|
|
177
|
+
const lightness = (max + min) / 2; // achromatic
|
|
178
|
+
|
|
179
|
+
if (max === min) return [0, 0, lightness, alpha];
|
|
180
|
+
const delta = max - min;
|
|
181
|
+
const saturation = lightness > 0.5 ? delta / (2 - max - min) : delta / (max + min);
|
|
182
|
+
const hue = 60 * (red === max ? (green - blue) / delta + (green < blue ? 6 : 0) : green === max ? (blue - red) / delta + 2 : (red - green) / delta + 4);
|
|
183
|
+
return [hue, saturation, lightness, alpha];
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Takes in hsla parts and constructs an hsla string
|
|
188
|
+
*
|
|
189
|
+
* @param hue The color circle (from 0 to 360) - 0 (or 360) is red, 120 is green, 240 is blue
|
|
190
|
+
* @param saturation Percentage of saturation, given as a decimal between 0 and 1
|
|
191
|
+
* @param lightness Percentage of lightness, given as a decimal between 0 and 1
|
|
192
|
+
* @param alpha Percentage of opacity, given as a decimal between 0 and 1
|
|
193
|
+
*/
|
|
194
|
+
|
|
195
|
+
function hsla(hue, saturation, lightness, alpha) {
|
|
196
|
+
return `hsla(${(hue % 360).toFixed()}, ${guard(0, 100, saturation * 100).toFixed()}%, ${guard(0, 100, lightness * 100).toFixed()}%, ${parseFloat(guard(0, 1, alpha).toFixed(3))})`;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Takes in rgba parts and returns an rgba string
|
|
201
|
+
*
|
|
202
|
+
* @param red The amount of red in the red channel, given in a number between 0 and 255 inclusive
|
|
203
|
+
* @param green The amount of green in the red channel, given in a number between 0 and 255 inclusive
|
|
204
|
+
* @param blue The amount of blue in the red channel, given in a number between 0 and 255 inclusive
|
|
205
|
+
* @param alpha Percentage of opacity, given as a decimal between 0 and 1
|
|
206
|
+
*/
|
|
207
|
+
|
|
208
|
+
function rgba(red, green, blue, alpha) {
|
|
209
|
+
return `rgba(${guard(0, 255, red).toFixed()}, ${guard(0, 255, green).toFixed()}, ${guard(0, 255, blue).toFixed()}, ${parseFloat(guard(0, 1, alpha).toFixed(3))})`;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Takes in any color and returns it as an rgba string.
|
|
214
|
+
*/
|
|
215
|
+
|
|
216
|
+
function toRgba(color) {
|
|
217
|
+
return rgba(...parseToRgba(color));
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
const flipThemeProviderCss = ".sc-flip-theme-provider-h{display:block}";
|
|
221
|
+
|
|
222
|
+
const preferredThemeStorageKey = "flip-preferred-theme";
|
|
223
|
+
const tenantColorMapping = {
|
|
224
|
+
"--s-action-primary-default": "primary",
|
|
225
|
+
"--s-action-primary-hovered": "primaryHovered",
|
|
226
|
+
"--s-action-primary-pressed": "primaryPressed",
|
|
227
|
+
"--s-text-on-action-primary": "primaryContrast",
|
|
228
|
+
"--s-icon-on-action-primary": "primaryContrast",
|
|
229
|
+
"--s-surface-highlight-default": "secondary",
|
|
230
|
+
"--s-surface-highlight-hovered": "secondaryHovered",
|
|
231
|
+
"--s-surface-highlight-pressed": "secondaryPressed",
|
|
232
|
+
"--s-on-surface-highlight-default": "secondaryHovered",
|
|
233
|
+
"--s-text-on-surface-highlight": "secondaryContrast",
|
|
234
|
+
"--s-icon-on-surface-highlight": "secondaryContrast",
|
|
235
|
+
"--s-text-highlight": "text",
|
|
236
|
+
"--s-interactive-primary-default": "text",
|
|
237
|
+
"--s-interactive-primary-hovered": "textHovered",
|
|
238
|
+
"--s-interactive-primary-pressed": "textPressed",
|
|
239
|
+
};
|
|
240
|
+
const FlipThemeProvider$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
241
|
+
constructor() {
|
|
242
|
+
super();
|
|
243
|
+
this.__registerHost();
|
|
244
|
+
}
|
|
245
|
+
componentWillLoad() {
|
|
246
|
+
this.resolveConfig();
|
|
247
|
+
this.determineOSTheme();
|
|
248
|
+
this.updateAppTheme();
|
|
249
|
+
}
|
|
250
|
+
watchConfig() {
|
|
251
|
+
this.resolveConfig();
|
|
252
|
+
this.determineOSTheme();
|
|
253
|
+
this.updateAppTheme();
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* Returns the active app theme.
|
|
257
|
+
* @returns FlipTheme
|
|
258
|
+
*/
|
|
259
|
+
async getActiveTheme() {
|
|
260
|
+
return this.appTheme;
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* Returns the user's preferred theme stored in local storage.
|
|
264
|
+
* @returns FlipTheme
|
|
265
|
+
*/
|
|
266
|
+
async getPreferredTheme() {
|
|
267
|
+
if (!Boolean(this.resolvedConfig.storage)) {
|
|
268
|
+
return;
|
|
269
|
+
}
|
|
270
|
+
return this.resolvedConfig.storage.getItem(preferredThemeStorageKey);
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* Sets the user's preferred theme and stores it in local storage. Overrides
|
|
274
|
+
* the OS theme.
|
|
275
|
+
*/
|
|
276
|
+
async setPreferredTheme(theme) {
|
|
277
|
+
if (!Boolean(this.resolvedConfig.storage)) {
|
|
278
|
+
return;
|
|
279
|
+
}
|
|
280
|
+
this.resolvedConfig.storage.setItem(preferredThemeStorageKey, theme);
|
|
281
|
+
this.updateAppTheme();
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* Resets the user's preferred theme, using the OS theme instead.
|
|
285
|
+
*/
|
|
286
|
+
async resetPreferredTheme() {
|
|
287
|
+
if (!Boolean(this.resolvedConfig.storage)) {
|
|
288
|
+
return;
|
|
289
|
+
}
|
|
290
|
+
this.resolvedConfig.storage.removeItem(preferredThemeStorageKey);
|
|
291
|
+
this.updateAppTheme();
|
|
292
|
+
}
|
|
293
|
+
resolveConfig() {
|
|
294
|
+
var _a, _b;
|
|
295
|
+
this.resolvedConfig = Object.assign(Object.assign({}, (this.config || {})), { rootElement: ((_a = this.config) === null || _a === void 0 ? void 0 : _a.rootElement) || document.documentElement, storage: ((_b = this.config) === null || _b === void 0 ? void 0 : _b.storage) || (window === null || window === void 0 ? void 0 : window.localStorage) });
|
|
296
|
+
}
|
|
297
|
+
determineOSTheme() {
|
|
298
|
+
if (!Boolean(window.matchMedia)) {
|
|
299
|
+
this.osTheme = "light";
|
|
300
|
+
return;
|
|
301
|
+
}
|
|
302
|
+
const darkThemeMediaQuery = window.matchMedia("(prefers-color-scheme: dark)");
|
|
303
|
+
this.osTheme = darkThemeMediaQuery.matches ? "dark" : "light";
|
|
304
|
+
darkThemeMediaQuery.addEventListener("change", (e) => {
|
|
305
|
+
this.osTheme = e.matches ? "dark" : "light";
|
|
306
|
+
this.updateAppTheme();
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
async updateAppTheme() {
|
|
310
|
+
this.appTheme = (await this.getPreferredTheme()) || this.osTheme;
|
|
311
|
+
if (this.appTheme === "dark") {
|
|
312
|
+
document.documentElement.classList.remove("theme-light");
|
|
313
|
+
document.documentElement.classList.add("theme-dark");
|
|
314
|
+
}
|
|
315
|
+
else {
|
|
316
|
+
document.documentElement.classList.remove("theme-dark");
|
|
317
|
+
document.documentElement.classList.add("theme-light");
|
|
318
|
+
}
|
|
319
|
+
this.updateTenantVariables();
|
|
320
|
+
}
|
|
321
|
+
updateTenantVariables() {
|
|
322
|
+
var _a;
|
|
323
|
+
const tenantTheme = (_a = this.resolvedConfig) === null || _a === void 0 ? void 0 : _a.tenantColors;
|
|
324
|
+
if (!Boolean(tenantTheme)) {
|
|
325
|
+
this.resetTenantVariables();
|
|
326
|
+
return;
|
|
327
|
+
}
|
|
328
|
+
const rootElement = this.resolvedConfig.rootElement;
|
|
329
|
+
// generate state colors (hovered, pressed) from base colors
|
|
330
|
+
const primaryHsla = parseToHsla(tenantTheme.primary);
|
|
331
|
+
const secondaryHsla = parseToHsla(tenantTheme.secondary);
|
|
332
|
+
const textHsla = parseToHsla(tenantTheme.text);
|
|
333
|
+
const primaryHovered = toRgba(hsla(primaryHsla[0], primaryHsla[1] - 0.21, primaryHsla[2] + 0.09, 1));
|
|
334
|
+
const primaryPressed = toRgba(hsla(primaryHsla[0], primaryHsla[1] - 0.2, primaryHsla[2] + 0.17, 1));
|
|
335
|
+
const secondaryHovered = toRgba(hsla(secondaryHsla[0], secondaryHsla[1], secondaryHsla[2] + 0.07, 1));
|
|
336
|
+
const secondaryPressed = toRgba(hsla(secondaryHsla[0], secondaryHsla[1], secondaryHsla[2] + 0.15, 1));
|
|
337
|
+
const textHovered = toRgba(hsla(textHsla[0], textHsla[1] - 0.34, textHsla[2] + 0.1, 1));
|
|
338
|
+
const textPressed = toRgba(hsla(textHsla[0], textHsla[1] - 0.48, textHsla[2] + 0.2, 1));
|
|
339
|
+
const tenantThemeWithGeneratedStateColors = Object.assign(Object.assign({}, tenantTheme), { primaryHovered: primaryHovered, primaryPressed: primaryPressed, secondaryHovered: secondaryHovered, secondaryPressed: secondaryPressed, textHovered: textHovered, textPressed: textPressed });
|
|
340
|
+
// set custom properties for tenant theme colors
|
|
341
|
+
Object.entries(tenantColorMapping).forEach(([key, value]) => rootElement.style.setProperty(key, tenantThemeWithGeneratedStateColors[value]));
|
|
342
|
+
}
|
|
343
|
+
resetTenantVariables() {
|
|
344
|
+
const rootElement = this.resolvedConfig.rootElement;
|
|
345
|
+
[
|
|
346
|
+
...Object.keys(tenantColorMapping),
|
|
347
|
+
"primaryHovered",
|
|
348
|
+
"primaryPressed",
|
|
349
|
+
"secondaryHovered",
|
|
350
|
+
"secondaryPressed",
|
|
351
|
+
"textHovered",
|
|
352
|
+
"textPressed",
|
|
353
|
+
].forEach((key) => rootElement.style.removeProperty(key));
|
|
354
|
+
}
|
|
355
|
+
render() {
|
|
356
|
+
return (h(Host, null, h("slot", null)));
|
|
357
|
+
}
|
|
358
|
+
static get watchers() { return {
|
|
359
|
+
"config": ["watchConfig"]
|
|
360
|
+
}; }
|
|
361
|
+
static get style() { return flipThemeProviderCss; }
|
|
362
|
+
}, [6, "flip-theme-provider", {
|
|
363
|
+
"config": [16],
|
|
364
|
+
"getActiveTheme": [64],
|
|
365
|
+
"getPreferredTheme": [64],
|
|
366
|
+
"setPreferredTheme": [64],
|
|
367
|
+
"resetPreferredTheme": [64]
|
|
368
|
+
}]);
|
|
369
|
+
function defineCustomElement$1() {
|
|
370
|
+
if (typeof customElements === "undefined") {
|
|
371
|
+
return;
|
|
372
|
+
}
|
|
373
|
+
const components = ["flip-theme-provider"];
|
|
374
|
+
components.forEach(tagName => { switch (tagName) {
|
|
375
|
+
case "flip-theme-provider":
|
|
376
|
+
if (!customElements.get(tagName)) {
|
|
377
|
+
customElements.define(tagName, FlipThemeProvider$1);
|
|
378
|
+
}
|
|
379
|
+
break;
|
|
380
|
+
} });
|
|
381
|
+
}
|
|
382
|
+
defineCustomElement$1();
|
|
383
|
+
|
|
384
|
+
const FlipThemeProvider = FlipThemeProvider$1;
|
|
385
|
+
const defineCustomElement = defineCustomElement$1;
|
|
386
|
+
|
|
387
|
+
export { FlipThemeProvider, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface FlipThumbnail extends Components.FlipThumbnail, HTMLElement {}
|
|
4
|
+
export const FlipThumbnail: {
|
|
5
|
+
prototype: FlipThumbnail;
|
|
6
|
+
new (): FlipThumbnail;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { c as classnames } from './index2.js';
|
|
3
|
+
|
|
4
|
+
const flipThumbnailCss = ":host{display:inline-flex}:host *{box-sizing:border-box}.thumbnail{position:relative;display:inline-flex;overflow:hidden;border-radius:var(--s-border-radius-s);box-shadow:inset 0 0 0 0.03125rem rgba(0, 0, 0, 0.1)}.thumbnail--size-s{--flip-thumbnail-size:2.5rem}.thumbnail--size-m{--flip-thumbnail-size:3rem}.thumbnail--size-l{--flip-thumbnail-size:4rem}.thumbnail--format-landscape{width:var(--flip-thumbnail-size);aspect-ratio:4 / 3}.thumbnail--format-landscape .thumbnail__image{width:100%}.thumbnail--format-portrait{height:var(--flip-thumbnail-size);aspect-ratio:3 / 4}.thumbnail--format-portrait .thumbnail__image{height:100%}.thumbnail--format-square{width:var(--flip-thumbnail-size);height:var(--flip-thumbnail-size)}.thumbnail--format-square .thumbnail__image{width:100%}.thumbnail__image{position:absolute;top:50%;left:50%;transform:translate3d(-50%, -50%, 0)}";
|
|
5
|
+
|
|
6
|
+
const FlipThumbnail$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
this.__registerHost();
|
|
10
|
+
this.__attachShadow();
|
|
11
|
+
this.format = "landscape";
|
|
12
|
+
this.size = "m";
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
const className = classnames("thumbnail", `thumbnail--format-${this.format}`, `thumbnail--size-${this.size}`);
|
|
16
|
+
return (h(Host, null, h("span", { class: className }, h("img", { alt: this.alt, class: "thumbnail__image", loading: "lazy", src: this.src }))));
|
|
17
|
+
}
|
|
18
|
+
static get style() { return flipThumbnailCss; }
|
|
19
|
+
}, [1, "flip-thumbnail", {
|
|
20
|
+
"alt": [1],
|
|
21
|
+
"format": [1],
|
|
22
|
+
"size": [1],
|
|
23
|
+
"src": [1]
|
|
24
|
+
}]);
|
|
25
|
+
function defineCustomElement$1() {
|
|
26
|
+
if (typeof customElements === "undefined") {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
const components = ["flip-thumbnail"];
|
|
30
|
+
components.forEach(tagName => { switch (tagName) {
|
|
31
|
+
case "flip-thumbnail":
|
|
32
|
+
if (!customElements.get(tagName)) {
|
|
33
|
+
customElements.define(tagName, FlipThumbnail$1);
|
|
34
|
+
}
|
|
35
|
+
break;
|
|
36
|
+
} });
|
|
37
|
+
}
|
|
38
|
+
defineCustomElement$1();
|
|
39
|
+
|
|
40
|
+
const FlipThumbnail = FlipThumbnail$1;
|
|
41
|
+
const defineCustomElement = defineCustomElement$1;
|
|
42
|
+
|
|
43
|
+
export { FlipThumbnail, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface FlipToastProvider extends Components.FlipToastProvider, HTMLElement {}
|
|
4
|
+
export const FlipToastProvider: {
|
|
5
|
+
prototype: FlipToastProvider;
|
|
6
|
+
new (): FlipToastProvider;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { d as defineCustomElement$4 } from './flip-icon-close2.js';
|
|
3
|
+
import { d as defineCustomElement$3 } from './flip-stack2.js';
|
|
4
|
+
import { d as defineCustomElement$2 } from './flip-toast2.js';
|
|
5
|
+
|
|
6
|
+
const FlipToastProvider$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
this.__registerHost();
|
|
10
|
+
this.__attachShadow();
|
|
11
|
+
this.toasts = [];
|
|
12
|
+
this.onDismiss = (event) => {
|
|
13
|
+
this.toasts = [...this.toasts].filter((toast) => toast.toastId !== event.detail);
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Clear all toasts
|
|
18
|
+
* @param newToast
|
|
19
|
+
* @returns
|
|
20
|
+
*/
|
|
21
|
+
async clearAll() {
|
|
22
|
+
this.toasts = [];
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Dismiss a toast
|
|
26
|
+
* @param toastId
|
|
27
|
+
* @returns
|
|
28
|
+
*/
|
|
29
|
+
async dismiss(toastId) {
|
|
30
|
+
this.toasts = [...this.toasts].filter((toast) => toast.toastId !== toastId);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Create a new toast
|
|
34
|
+
* @param newToast
|
|
35
|
+
* @returns
|
|
36
|
+
*/
|
|
37
|
+
async toast(newToast) {
|
|
38
|
+
if (this.toasts.some((toast) => toast.toastId === newToast.toastId)) {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
const duration = this.globalDuration === undefined
|
|
42
|
+
? newToast.duration
|
|
43
|
+
: this.globalDuration === 0
|
|
44
|
+
? undefined
|
|
45
|
+
: this.globalDuration;
|
|
46
|
+
const newToastWithId = Object.assign(Object.assign({}, newToast), { createdAt: new Date(), duration, toastId: newToast.toastId || String(Math.round(Math.random() * 10000)) });
|
|
47
|
+
this.toasts = [...this.toasts, newToastWithId];
|
|
48
|
+
return newToastWithId;
|
|
49
|
+
}
|
|
50
|
+
render() {
|
|
51
|
+
return (h(Host, { role: "status" }, h("flip-stack", { spacing: "12" }, this.toasts.map((toast) => (h("flip-toast", Object.assign({ key: toast.toastId, onDismiss: this.onDismiss }, toast)))))));
|
|
52
|
+
}
|
|
53
|
+
}, [1, "flip-toast-provider", {
|
|
54
|
+
"globalDuration": [2, "global-duration"],
|
|
55
|
+
"toasts": [32],
|
|
56
|
+
"clearAll": [64],
|
|
57
|
+
"dismiss": [64],
|
|
58
|
+
"toast": [64]
|
|
59
|
+
}]);
|
|
60
|
+
function defineCustomElement$1() {
|
|
61
|
+
if (typeof customElements === "undefined") {
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
const components = ["flip-toast-provider", "flip-icon-close", "flip-stack", "flip-toast"];
|
|
65
|
+
components.forEach(tagName => { switch (tagName) {
|
|
66
|
+
case "flip-toast-provider":
|
|
67
|
+
if (!customElements.get(tagName)) {
|
|
68
|
+
customElements.define(tagName, FlipToastProvider$1);
|
|
69
|
+
}
|
|
70
|
+
break;
|
|
71
|
+
case "flip-icon-close":
|
|
72
|
+
if (!customElements.get(tagName)) {
|
|
73
|
+
defineCustomElement$4();
|
|
74
|
+
}
|
|
75
|
+
break;
|
|
76
|
+
case "flip-stack":
|
|
77
|
+
if (!customElements.get(tagName)) {
|
|
78
|
+
defineCustomElement$3();
|
|
79
|
+
}
|
|
80
|
+
break;
|
|
81
|
+
case "flip-toast":
|
|
82
|
+
if (!customElements.get(tagName)) {
|
|
83
|
+
defineCustomElement$2();
|
|
84
|
+
}
|
|
85
|
+
break;
|
|
86
|
+
} });
|
|
87
|
+
}
|
|
88
|
+
defineCustomElement$1();
|
|
89
|
+
|
|
90
|
+
const FlipToastProvider = FlipToastProvider$1;
|
|
91
|
+
const defineCustomElement = defineCustomElement$1;
|
|
92
|
+
|
|
93
|
+
export { FlipToastProvider, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface FlipToast extends Components.FlipToast, HTMLElement {}
|
|
4
|
+
export const FlipToast: {
|
|
5
|
+
prototype: FlipToast;
|
|
6
|
+
new (): FlipToast;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { c as classnames } from './index2.js';
|
|
3
|
+
import { d as defineCustomElement$1 } from './flip-icon-close2.js';
|
|
4
|
+
|
|
5
|
+
const flipToastCss = ":host{display:flex}:host *{box-sizing:border-box}.toast{display:flex;width:100%;max-width:28rem;padding:var(--s-space-16);border-radius:0.75rem;color:var(--s-text-on-status);background-color:var(--s-surface-neutral-default)}.toast--intent-critical{background-color:var(--s-surface-critical-default)}.toast--intent-success{background-color:var(--s-surface-success-default)}.toast__icon{display:inline-flex;margin-top:calc(-1 * var(--s-space-2));margin-right:0.625rem;flex-shrink:0}.toast__icon ::part(icon){color:var(--s-icon-on-status)}.toast__content{flex-grow:1;line-height:var(--s-line-height-base);text-align:left}.toast__dismiss-button{display:inline-flex;min-width:1.5rem;height:1.5rem;margin-top:calc(-1 * var(--s-space-2));margin-left:var(--s-space-16);padding:0;flex-shrink:0;justify-content:center;align-items:center;border:none;color:var(--s-text-on-status);background-color:transparent;font:inherit;font-weight:var(--s-font-weight-semibold);cursor:pointer}.toast__dismiss-button ::part(icon){color:var(--s-icon-on-status)}";
|
|
6
|
+
|
|
7
|
+
const FlipToast = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
8
|
+
constructor() {
|
|
9
|
+
super();
|
|
10
|
+
this.__registerHost();
|
|
11
|
+
this.__attachShadow();
|
|
12
|
+
this.dismiss = createEvent(this, "dismiss", 7);
|
|
13
|
+
this.accessibleDismissLabel = "Dismiss";
|
|
14
|
+
this.intent = "default";
|
|
15
|
+
this.onDismiss = () => {
|
|
16
|
+
this.dismiss.emit(this.toastId);
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
watchDuration() {
|
|
20
|
+
this.startTimer();
|
|
21
|
+
}
|
|
22
|
+
componentDidLoad() {
|
|
23
|
+
this.startTimer();
|
|
24
|
+
}
|
|
25
|
+
startTimer() {
|
|
26
|
+
this.clearTimer();
|
|
27
|
+
if (this.duration === undefined) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
this.timeout = setTimeout(() => {
|
|
31
|
+
this.dismiss.emit(this.toastId);
|
|
32
|
+
}, this.duration);
|
|
33
|
+
}
|
|
34
|
+
clearTimer() {
|
|
35
|
+
if (!Boolean(this.timeout)) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
clearTimeout(this.timeout);
|
|
39
|
+
this.timeout = undefined;
|
|
40
|
+
}
|
|
41
|
+
render() {
|
|
42
|
+
const className = classnames("toast", `toast--intent-${this.intent}`);
|
|
43
|
+
return (h(Host, null, h("div", { class: className }, this.icon && h("span", { class: "toast__icon", innerHTML: this.icon }), h("span", { class: "toast__content" }, this.content), h("button", { "aria-label": this.dismissLabel || this.accessibleDismissLabel, class: "toast__dismiss-button", onClick: this.onDismiss, type: "button" }, this.dismissLabel, !Boolean(this.dismissLabel) && h("flip-icon-close", null)))));
|
|
44
|
+
}
|
|
45
|
+
static get watchers() { return {
|
|
46
|
+
"duration": ["watchDuration"]
|
|
47
|
+
}; }
|
|
48
|
+
static get style() { return flipToastCss; }
|
|
49
|
+
}, [1, "flip-toast", {
|
|
50
|
+
"accessibleDismissLabel": [1, "accessible-dismiss-label"],
|
|
51
|
+
"content": [1],
|
|
52
|
+
"dismissLabel": [1, "dismiss-label"],
|
|
53
|
+
"duration": [2],
|
|
54
|
+
"icon": [1],
|
|
55
|
+
"intent": [1],
|
|
56
|
+
"toastId": [1, "toast-id"]
|
|
57
|
+
}]);
|
|
58
|
+
function defineCustomElement() {
|
|
59
|
+
if (typeof customElements === "undefined") {
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
const components = ["flip-toast", "flip-icon-close"];
|
|
63
|
+
components.forEach(tagName => { switch (tagName) {
|
|
64
|
+
case "flip-toast":
|
|
65
|
+
if (!customElements.get(tagName)) {
|
|
66
|
+
customElements.define(tagName, FlipToast);
|
|
67
|
+
}
|
|
68
|
+
break;
|
|
69
|
+
case "flip-icon-close":
|
|
70
|
+
if (!customElements.get(tagName)) {
|
|
71
|
+
defineCustomElement$1();
|
|
72
|
+
}
|
|
73
|
+
break;
|
|
74
|
+
} });
|
|
75
|
+
}
|
|
76
|
+
defineCustomElement();
|
|
77
|
+
|
|
78
|
+
export { FlipToast as F, defineCustomElement as d };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface FlipTooltip extends Components.FlipTooltip, HTMLElement {}
|
|
4
|
+
export const FlipTooltip: {
|
|
5
|
+
prototype: FlipTooltip;
|
|
6
|
+
new (): FlipTooltip;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|