@getflip/swirl-components 0.1.0 → 0.2.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/dist/cjs/flip-action-list-item.cjs.entry.js +1 -1
- package/dist/cjs/flip-action-list-section.cjs.entry.js +1 -1
- package/dist/cjs/flip-action-list.cjs.entry.js +1 -1
- package/dist/cjs/flip-avatar-group.cjs.entry.js +2 -2
- package/dist/cjs/flip-avatar.cjs.entry.js +1 -1
- package/dist/cjs/flip-badge.cjs.entry.js +2 -2
- package/dist/cjs/flip-banner.cjs.entry.js +1 -1
- package/dist/cjs/flip-button-group.cjs.entry.js +24 -0
- package/dist/{esm/flip-button_2.entry.js → cjs/flip-button.cjs.entry.js} +10 -23
- package/dist/cjs/flip-checkbox.cjs.entry.js +3 -2
- package/dist/cjs/flip-chip.cjs.entry.js +1 -1
- package/dist/cjs/flip-description-list-item.cjs.entry.js +1 -1
- package/dist/cjs/flip-description-list.cjs.entry.js +1 -1
- package/dist/cjs/flip-dialog.cjs.entry.js +1 -1
- package/dist/cjs/flip-file-uploader.cjs.entry.js +49 -0
- package/dist/cjs/flip-icon-add-photo.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-add.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-admin-panel-settings.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-arrow-back.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-arrow-forward.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-arrow-right-small.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-attachment.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-cancel_2.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-chat-bubble.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-check-circle.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-check-small.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-check-strong.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-check.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-chevron-left.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-chevron-right.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-close-small.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-close.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-cloud-upload.cjs.entry.js +20 -0
- package/dist/cjs/flip-icon-comment.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-copy.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-date-range.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-delete.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-description.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-download.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-edit.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-emoji-mood.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-emoji-satisfied.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-error.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-expand-less.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-expand-more.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-file.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-folder-shared.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-group-assign.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-groups-custom.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-groups.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-image.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-info.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-inventory.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-like.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-link.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-lock.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-logout.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-mail.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-manage-accounts.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-mention.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-message.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-more-horizontal.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-more-vertikal.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-notifications-active.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-notifications-off.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-notifications.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-people-alt.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-person-off.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-person.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-phone.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-poll.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-recieved.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-search-strong.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-send.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-settings.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-time-filled.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-time-outlined.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-today.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-user-assign.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-video-camera.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-visibility-off.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-visibility.cjs.entry.js +1 -1
- package/dist/cjs/flip-icon-warning.cjs.entry.js +1 -1
- package/dist/cjs/{flip-spinner.cjs.entry.js → flip-inline-error_2.cjs.entry.js} +17 -1
- package/dist/cjs/flip-link.cjs.entry.js +1 -1
- package/dist/cjs/flip-popover.cjs.entry.js +6 -1155
- package/dist/cjs/flip-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/flip-radio.cjs.entry.js +1 -1
- package/dist/cjs/flip-resource-list-file-item.cjs.entry.js +30 -0
- package/dist/cjs/flip-resource-list-item.cjs.entry.js +73 -0
- package/dist/cjs/flip-resource-list.cjs.entry.js +67 -0
- package/dist/cjs/flip-search.cjs.entry.js +1 -1
- package/dist/cjs/flip-stack.cjs.entry.js +1 -1
- package/dist/cjs/flip-switch.cjs.entry.js +1 -1
- package/dist/cjs/flip-tab.cjs.entry.js +21 -0
- package/dist/cjs/flip-tabs.cjs.entry.js +124 -0
- package/dist/cjs/flip-tag.cjs.entry.js +1 -1
- package/dist/cjs/flip-theme-provider.cjs.entry.js +1 -1
- package/dist/cjs/flip-thumbnail.cjs.entry.js +1 -1
- package/dist/cjs/flip-toast-provider.cjs.entry.js +1 -1
- package/dist/cjs/flip-toast.cjs.entry.js +1 -1
- package/dist/cjs/flip-tooltip.cjs.entry.js +22 -14
- package/dist/cjs/flip-visually-hidden.cjs.entry.js +1 -1
- package/dist/cjs/floating-ui.dom.esm-75453e4e.js +1228 -0
- package/dist/cjs/{index-37fbfe64.js → index-bd89db61.js} +3 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/swirl-components.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +7 -0
- package/dist/collection/components/flip-avatar-group/flip-avatar-group.css +2 -2
- package/dist/collection/components/flip-badge/flip-badge.css +1 -1
- package/dist/collection/components/flip-button/flip-button.js +18 -1
- package/dist/collection/components/flip-checkbox/flip-checkbox.js +3 -2
- package/dist/collection/components/flip-file-uploader/flip-file-uploader.css +86 -0
- package/dist/collection/components/flip-file-uploader/flip-file-uploader.js +285 -0
- package/dist/collection/components/flip-file-uploader/flip-file-uploader.stories.js +23 -0
- package/dist/collection/components/flip-icon/icons/flip-icon-cloud-upload.js +49 -0
- package/dist/collection/components/flip-inline-error/flip-inline-error.css +1 -1
- package/dist/collection/components/flip-popover/flip-popover.js +1 -1
- package/dist/collection/components/flip-resource-list/flip-resource-list.css +8 -0
- package/dist/collection/components/flip-resource-list/flip-resource-list.js +85 -0
- package/dist/collection/components/flip-resource-list/flip-resource-list.stories.js +36 -0
- package/dist/collection/components/flip-resource-list-file-item/flip-resource-list-file-item.css +89 -0
- package/dist/collection/components/flip-resource-list-file-item/flip-resource-list-file-item.js +180 -0
- package/dist/collection/components/flip-resource-list-file-item/flip-resource-list-file-item.stories.js +35 -0
- package/dist/collection/components/flip-resource-list-item/flip-resource-list-item.css +195 -0
- package/dist/collection/components/flip-resource-list-item/flip-resource-list-item.js +303 -0
- package/dist/collection/components/flip-resource-list-item/flip-resource-list-item.stories.js +64 -0
- package/dist/collection/components/flip-tab/flip-tab.css +18 -0
- package/dist/collection/components/flip-tab/flip-tab.js +71 -0
- package/dist/collection/components/flip-tab/flip-tab.stories.js +22 -0
- package/dist/collection/components/flip-tabs/flip-tabs.css +94 -0
- package/dist/collection/components/flip-tabs/flip-tabs.js +220 -0
- package/dist/collection/components/flip-tabs/flip-tabs.stories.js +25 -0
- package/dist/collection/components/flip-tooltip/flip-tooltip.css +20 -0
- package/dist/collection/components/flip-tooltip/flip-tooltip.js +20 -10
- package/dist/components/flip-avatar-group.js +1 -1
- package/dist/components/flip-badge.js +1 -1
- package/dist/components/flip-button2.js +2 -1
- package/dist/components/flip-checkbox.js +2 -1
- package/dist/components/flip-file-uploader.d.ts +11 -0
- package/dist/components/flip-file-uploader.js +88 -0
- package/dist/components/flip-icon-cloud-upload.d.ts +11 -0
- package/dist/components/flip-icon-cloud-upload.js +6 -0
- package/dist/components/flip-icon-cloud-upload2.js +34 -0
- package/dist/components/flip-inline-error.js +1 -42
- package/dist/components/flip-inline-error2.js +44 -0
- package/dist/components/flip-popover.js +2 -1151
- package/dist/components/flip-resource-list-file-item.d.ts +11 -0
- package/dist/components/flip-resource-list-file-item.js +83 -0
- package/dist/components/flip-resource-list-item.d.ts +11 -0
- package/dist/components/flip-resource-list-item.js +113 -0
- package/dist/components/flip-resource-list.d.ts +11 -0
- package/dist/components/flip-resource-list.js +90 -0
- package/dist/components/flip-spinner.js +1 -41
- package/dist/{esm/flip-spinner.entry.js → components/flip-spinner2.js} +33 -8
- package/dist/components/flip-tab.d.ts +11 -0
- package/dist/components/flip-tab.js +40 -0
- package/dist/components/flip-tabs.d.ts +11 -0
- package/dist/components/flip-tabs.js +144 -0
- package/dist/components/flip-tooltip.js +21 -13
- package/dist/components/floating-ui.dom.esm.js +1222 -0
- package/dist/components/index.d.ts +7 -0
- package/dist/components/index.js +7 -0
- package/dist/esm/flip-action-list-item.entry.js +1 -1
- package/dist/esm/flip-action-list-section.entry.js +1 -1
- package/dist/esm/flip-action-list.entry.js +1 -1
- package/dist/esm/flip-avatar-group.entry.js +2 -2
- package/dist/esm/flip-avatar.entry.js +1 -1
- package/dist/esm/flip-badge.entry.js +2 -2
- package/dist/esm/flip-banner.entry.js +1 -1
- package/dist/esm/flip-button-group.entry.js +20 -0
- package/dist/{cjs/flip-button_2.cjs.entry.js → esm/flip-button.entry.js} +6 -28
- package/dist/esm/flip-checkbox.entry.js +3 -2
- package/dist/esm/flip-chip.entry.js +1 -1
- package/dist/esm/flip-description-list-item.entry.js +1 -1
- package/dist/esm/flip-description-list.entry.js +1 -1
- package/dist/esm/flip-dialog.entry.js +1 -1
- package/dist/esm/flip-file-uploader.entry.js +45 -0
- package/dist/esm/flip-icon-add-photo.entry.js +1 -1
- package/dist/esm/flip-icon-add.entry.js +1 -1
- package/dist/esm/flip-icon-admin-panel-settings.entry.js +1 -1
- package/dist/esm/flip-icon-arrow-back.entry.js +1 -1
- package/dist/esm/flip-icon-arrow-forward.entry.js +1 -1
- package/dist/esm/flip-icon-arrow-right-small.entry.js +1 -1
- package/dist/esm/flip-icon-attachment.entry.js +1 -1
- package/dist/esm/flip-icon-cancel_2.entry.js +1 -1
- package/dist/esm/flip-icon-chat-bubble.entry.js +1 -1
- package/dist/esm/flip-icon-check-circle.entry.js +1 -1
- package/dist/esm/flip-icon-check-small.entry.js +1 -1
- package/dist/esm/flip-icon-check-strong.entry.js +1 -1
- package/dist/esm/flip-icon-check.entry.js +1 -1
- package/dist/esm/flip-icon-chevron-left.entry.js +1 -1
- package/dist/esm/flip-icon-chevron-right.entry.js +1 -1
- package/dist/esm/flip-icon-close-small.entry.js +1 -1
- package/dist/esm/flip-icon-close.entry.js +1 -1
- package/dist/esm/flip-icon-cloud-upload.entry.js +16 -0
- package/dist/esm/flip-icon-comment.entry.js +1 -1
- package/dist/esm/flip-icon-copy.entry.js +1 -1
- package/dist/esm/flip-icon-date-range.entry.js +1 -1
- package/dist/esm/flip-icon-delete.entry.js +1 -1
- package/dist/esm/flip-icon-description.entry.js +1 -1
- package/dist/esm/flip-icon-download.entry.js +1 -1
- package/dist/esm/flip-icon-edit.entry.js +1 -1
- package/dist/esm/flip-icon-emoji-mood.entry.js +1 -1
- package/dist/esm/flip-icon-emoji-satisfied.entry.js +1 -1
- package/dist/esm/flip-icon-error.entry.js +1 -1
- package/dist/esm/flip-icon-expand-less.entry.js +1 -1
- package/dist/esm/flip-icon-expand-more.entry.js +1 -1
- package/dist/esm/flip-icon-file.entry.js +1 -1
- package/dist/esm/flip-icon-folder-shared.entry.js +1 -1
- package/dist/esm/flip-icon-group-assign.entry.js +1 -1
- package/dist/esm/flip-icon-groups-custom.entry.js +1 -1
- package/dist/esm/flip-icon-groups.entry.js +1 -1
- package/dist/esm/flip-icon-image.entry.js +1 -1
- package/dist/esm/flip-icon-info.entry.js +1 -1
- package/dist/esm/flip-icon-inventory.entry.js +1 -1
- package/dist/esm/flip-icon-like.entry.js +1 -1
- package/dist/esm/flip-icon-link.entry.js +1 -1
- package/dist/esm/flip-icon-lock.entry.js +1 -1
- package/dist/esm/flip-icon-logout.entry.js +1 -1
- package/dist/esm/flip-icon-mail.entry.js +1 -1
- package/dist/esm/flip-icon-manage-accounts.entry.js +1 -1
- package/dist/esm/flip-icon-mention.entry.js +1 -1
- package/dist/esm/flip-icon-message.entry.js +1 -1
- package/dist/esm/flip-icon-more-horizontal.entry.js +1 -1
- package/dist/esm/flip-icon-more-vertikal.entry.js +1 -1
- package/dist/esm/flip-icon-notifications-active.entry.js +1 -1
- package/dist/esm/flip-icon-notifications-off.entry.js +1 -1
- package/dist/esm/flip-icon-notifications.entry.js +1 -1
- package/dist/esm/flip-icon-people-alt.entry.js +1 -1
- package/dist/esm/flip-icon-person-off.entry.js +1 -1
- package/dist/esm/flip-icon-person.entry.js +1 -1
- package/dist/esm/flip-icon-phone.entry.js +1 -1
- package/dist/esm/flip-icon-poll.entry.js +1 -1
- package/dist/esm/flip-icon-recieved.entry.js +1 -1
- package/dist/esm/flip-icon-search-strong.entry.js +1 -1
- package/dist/esm/flip-icon-send.entry.js +1 -1
- package/dist/esm/flip-icon-settings.entry.js +1 -1
- package/dist/esm/flip-icon-time-filled.entry.js +1 -1
- package/dist/esm/flip-icon-time-outlined.entry.js +1 -1
- package/dist/esm/flip-icon-today.entry.js +1 -1
- package/dist/esm/flip-icon-user-assign.entry.js +1 -1
- package/dist/esm/flip-icon-video-camera.entry.js +1 -1
- package/dist/esm/flip-icon-visibility-off.entry.js +1 -1
- package/dist/esm/flip-icon-visibility.entry.js +1 -1
- package/dist/esm/flip-icon-warning.entry.js +1 -1
- package/dist/esm/flip-inline-error_2.entry.js +33 -0
- package/dist/esm/flip-link.entry.js +1 -1
- package/dist/esm/flip-popover.entry.js +3 -1152
- package/dist/esm/flip-radio-group.entry.js +1 -1
- package/dist/esm/flip-radio.entry.js +1 -1
- package/dist/esm/flip-resource-list-file-item.entry.js +26 -0
- package/dist/esm/flip-resource-list-item.entry.js +69 -0
- package/dist/esm/flip-resource-list.entry.js +63 -0
- package/dist/esm/flip-search.entry.js +1 -1
- package/dist/esm/flip-stack.entry.js +1 -1
- package/dist/esm/flip-switch.entry.js +1 -1
- package/dist/esm/flip-tab.entry.js +17 -0
- package/dist/esm/flip-tabs.entry.js +120 -0
- package/dist/esm/flip-tag.entry.js +1 -1
- package/dist/esm/flip-theme-provider.entry.js +1 -1
- package/dist/esm/flip-thumbnail.entry.js +1 -1
- package/dist/esm/flip-toast-provider.entry.js +1 -1
- package/dist/esm/flip-toast.entry.js +1 -1
- package/dist/esm/flip-tooltip.entry.js +22 -14
- package/dist/esm/flip-visually-hidden.entry.js +1 -1
- package/dist/esm/floating-ui.dom.esm-1a4e8b8a.js +1222 -0
- package/dist/esm/{index-36517fab.js → index-64709274.js} +3 -0
- package/dist/esm/loader.js +2 -2
- package/dist/esm/swirl-components.js +2 -2
- package/dist/swirl-components/{p-adbcf0ae.entry.js → p-0b197bc2.entry.js} +1 -1
- package/dist/swirl-components/{p-4f3d8490.entry.js → p-0bd72823.entry.js} +1 -1
- package/dist/swirl-components/{p-e1554c48.entry.js → p-0f72be83.entry.js} +1 -1
- package/dist/swirl-components/p-0fd19b1e.entry.js +1 -0
- package/dist/swirl-components/{p-432dd5f1.entry.js → p-118f9dbc.entry.js} +1 -1
- package/dist/swirl-components/p-14404622.entry.js +1 -0
- package/dist/swirl-components/p-14a71662.entry.js +1 -0
- package/dist/swirl-components/{p-5a13d6fe.entry.js → p-150885c6.entry.js} +1 -1
- package/dist/swirl-components/p-1b14d1f8.entry.js +1 -0
- package/dist/swirl-components/{p-b64b6dc5.entry.js → p-294bc0f5.entry.js} +1 -1
- package/dist/swirl-components/{p-b4540264.entry.js → p-29f4348a.entry.js} +1 -1
- package/dist/swirl-components/{p-7a6b480c.entry.js → p-2b183dbd.entry.js} +1 -1
- package/dist/swirl-components/p-2e39e57a.entry.js +1 -0
- package/dist/swirl-components/{p-63e5b5d9.entry.js → p-2fada438.entry.js} +1 -1
- package/dist/swirl-components/{p-ff0868ae.entry.js → p-2fc324d2.entry.js} +1 -1
- package/dist/swirl-components/{p-f6e77552.entry.js → p-3115dcce.entry.js} +1 -1
- package/dist/swirl-components/{p-a1946e3b.entry.js → p-314da0b6.entry.js} +1 -1
- package/dist/swirl-components/p-3203d26c.entry.js +1 -0
- package/dist/swirl-components/{p-ad434623.entry.js → p-33eeffa4.entry.js} +1 -1
- package/dist/swirl-components/{p-1419666f.entry.js → p-340a8594.entry.js} +1 -1
- package/dist/swirl-components/p-3a78c66a.entry.js +1 -0
- package/dist/swirl-components/{p-6b840e3d.entry.js → p-3fd6dfcc.entry.js} +1 -1
- package/dist/swirl-components/{p-e384bd2c.entry.js → p-41b352e3.entry.js} +1 -1
- package/dist/swirl-components/{p-3234f836.entry.js → p-428b8a65.entry.js} +1 -1
- package/dist/swirl-components/{p-cfef8bdb.entry.js → p-45a0619d.entry.js} +1 -1
- package/dist/swirl-components/{p-d1c899ad.entry.js → p-46db6bb6.entry.js} +1 -1
- package/dist/swirl-components/{p-1429e47a.entry.js → p-482528d9.entry.js} +1 -1
- package/dist/swirl-components/{p-213191cb.entry.js → p-4c846d53.entry.js} +1 -1
- package/dist/swirl-components/{p-1a9f0bc1.entry.js → p-4cd180da.entry.js} +1 -1
- package/dist/swirl-components/{p-17073db0.entry.js → p-4d5bc933.entry.js} +1 -1
- package/dist/swirl-components/{p-e0513b73.entry.js → p-4eda9d6d.entry.js} +1 -1
- package/dist/swirl-components/{p-102db76d.entry.js → p-4f209111.entry.js} +1 -1
- package/dist/swirl-components/{p-e65d2d81.entry.js → p-562db126.entry.js} +1 -1
- package/dist/swirl-components/p-5757b517.entry.js +1 -0
- package/dist/swirl-components/{p-94d933b3.entry.js → p-589d6d22.entry.js} +1 -1
- package/dist/swirl-components/{p-c5200740.entry.js → p-5cc28450.entry.js} +1 -1
- package/dist/swirl-components/{p-b16d4978.entry.js → p-6384f8ba.entry.js} +1 -1
- package/dist/swirl-components/{p-545caf4a.entry.js → p-638b96a3.entry.js} +1 -1
- package/dist/swirl-components/{p-468d0e9b.entry.js → p-639fe827.entry.js} +1 -1
- package/dist/swirl-components/{p-0d619d62.entry.js → p-65231ba1.entry.js} +1 -1
- package/dist/swirl-components/{p-5d27a69e.entry.js → p-6966c97a.entry.js} +1 -1
- package/dist/swirl-components/{p-1609dbf3.entry.js → p-69b15b39.entry.js} +1 -1
- package/dist/swirl-components/p-6ab4b7cf.entry.js +1 -0
- package/dist/swirl-components/{p-56bdede5.entry.js → p-6c2b7a96.entry.js} +1 -1
- package/dist/swirl-components/{p-cc50d7a7.entry.js → p-70c5764b.entry.js} +1 -1
- package/dist/swirl-components/{p-70b255b3.entry.js → p-7272b763.entry.js} +1 -1
- package/dist/swirl-components/{p-f45709c0.entry.js → p-73ee554b.entry.js} +1 -1
- package/dist/swirl-components/p-7548473c.js +2 -0
- package/dist/swirl-components/{p-a71261bc.entry.js → p-75cf42d4.entry.js} +1 -1
- package/dist/swirl-components/{p-9c12d1eb.entry.js → p-7740f11b.entry.js} +1 -1
- package/dist/swirl-components/{p-fb19d8b9.entry.js → p-77cf9f30.entry.js} +1 -1
- package/dist/swirl-components/{p-0fa4c4cf.entry.js → p-84197db5.entry.js} +1 -1
- package/dist/swirl-components/p-88d8a3a9.entry.js +1 -0
- package/dist/swirl-components/{p-54b9e1b5.entry.js → p-8949fe7a.entry.js} +1 -1
- package/dist/swirl-components/{p-47a9a9cb.entry.js → p-8f1f9e78.entry.js} +1 -1
- package/dist/swirl-components/p-8fa700a5.entry.js +1 -0
- package/dist/swirl-components/{p-db229451.entry.js → p-926857f1.entry.js} +1 -1
- package/dist/swirl-components/{p-b624ff23.entry.js → p-97257780.entry.js} +1 -1
- package/dist/swirl-components/{p-0fa6b98f.entry.js → p-9b154fa3.entry.js} +1 -1
- package/dist/swirl-components/{p-453db2cf.entry.js → p-9c9da0a4.entry.js} +1 -1
- package/dist/swirl-components/{p-f8273972.entry.js → p-a133fb9d.entry.js} +1 -1
- package/dist/swirl-components/{p-9d07fb5a.entry.js → p-a362f0f9.entry.js} +1 -1
- package/dist/swirl-components/p-a6054ed9.entry.js +1 -0
- package/dist/swirl-components/p-a81417d9.entry.js +1 -0
- package/dist/swirl-components/{p-a6fb93df.entry.js → p-a8f3668a.entry.js} +1 -1
- package/dist/swirl-components/{p-1c8b77fe.entry.js → p-a94f114d.entry.js} +1 -1
- package/dist/swirl-components/{p-6a6de48d.entry.js → p-a98d70ca.entry.js} +1 -1
- package/dist/swirl-components/{p-126ead5f.entry.js → p-aaad68e8.entry.js} +1 -1
- package/dist/swirl-components/{p-a605b3d1.entry.js → p-b117edfa.entry.js} +1 -1
- package/dist/swirl-components/{p-01857435.entry.js → p-b3a71d9f.entry.js} +1 -1
- package/dist/swirl-components/{p-ae504b3e.entry.js → p-b6790219.entry.js} +1 -1
- package/dist/swirl-components/{p-24d112d7.entry.js → p-bb2d617e.entry.js} +1 -1
- package/dist/swirl-components/{p-0a9f3ada.entry.js → p-be40f14f.entry.js} +1 -1
- package/dist/swirl-components/{p-1bd3e7c0.entry.js → p-c3b49fae.entry.js} +1 -1
- package/dist/swirl-components/{p-f1774da0.entry.js → p-c69ba478.entry.js} +1 -1
- package/dist/swirl-components/{p-1c2e8e09.entry.js → p-c6d26cc3.entry.js} +1 -1
- package/dist/swirl-components/{p-fa7cc450.entry.js → p-c7427e54.entry.js} +1 -1
- package/dist/swirl-components/{p-cf8be27a.entry.js → p-c76f568b.entry.js} +1 -1
- package/dist/swirl-components/{p-a203be4a.entry.js → p-c8ef7c7b.entry.js} +1 -1
- package/dist/swirl-components/{p-6b957569.entry.js → p-c9281fc5.entry.js} +1 -1
- package/dist/swirl-components/p-cb622b3f.entry.js +1 -0
- package/dist/swirl-components/{p-0de885c6.entry.js → p-d34657bb.entry.js} +1 -1
- package/dist/swirl-components/{p-db902aec.entry.js → p-d353d8a6.entry.js} +1 -1
- package/dist/swirl-components/{p-55aaf1d3.entry.js → p-d437a017.entry.js} +1 -1
- package/dist/swirl-components/{p-67deba9e.entry.js → p-daf021ff.entry.js} +1 -1
- package/dist/swirl-components/p-db407fe2.entry.js +1 -0
- package/dist/swirl-components/{p-30011711.entry.js → p-df779bfc.entry.js} +1 -1
- package/dist/swirl-components/{p-95bd2274.entry.js → p-e04eac13.entry.js} +1 -1
- package/dist/swirl-components/{p-e89c7891.entry.js → p-e3c228f6.entry.js} +1 -1
- package/dist/swirl-components/{p-32a5e2a7.entry.js → p-e4a8a549.entry.js} +1 -1
- package/dist/swirl-components/p-e8bb09e8.js +1 -0
- package/dist/swirl-components/{p-e4df2658.entry.js → p-e8f32c6d.entry.js} +1 -1
- package/dist/swirl-components/{p-37d96123.entry.js → p-ec59a844.entry.js} +1 -1
- package/dist/swirl-components/{p-1126e372.entry.js → p-ece8d0a9.entry.js} +1 -1
- package/dist/swirl-components/{p-6a9a0e08.entry.js → p-f2bd932c.entry.js} +1 -1
- package/dist/swirl-components/{p-46f638cf.entry.js → p-f5bd49b1.entry.js} +1 -1
- package/dist/swirl-components/{p-b5cd4041.entry.js → p-f6a1e319.entry.js} +1 -1
- package/dist/swirl-components/{p-d41e3a37.entry.js → p-f8eaba53.entry.js} +1 -1
- package/dist/swirl-components/{p-437842a2.entry.js → p-f9719283.entry.js} +1 -1
- package/dist/swirl-components/{p-f59098f7.entry.js → p-f9a4a60c.entry.js} +1 -1
- package/dist/swirl-components/{p-8bf1ad8a.entry.js → p-f9e967e7.entry.js} +1 -1
- package/dist/swirl-components/{p-828cc4a3.entry.js → p-fa626f0f.entry.js} +1 -1
- package/dist/swirl-components/{p-8423a1b5.entry.js → p-fca2a909.entry.js} +1 -1
- package/dist/swirl-components/{p-c35a6610.entry.js → p-fcd09fdc.entry.js} +1 -1
- package/dist/swirl-components/{p-67aaf094.entry.js → p-ff23c876.entry.js} +1 -1
- package/dist/swirl-components/swirl-components.css +2 -2
- package/dist/swirl-components/swirl-components.esm.js +1 -1
- package/dist/types/components/flip-button/flip-button.d.ts +1 -0
- package/dist/types/components/flip-file-uploader/flip-file-uploader.d.ts +24 -0
- package/dist/types/components/flip-file-uploader/flip-file-uploader.stories.d.ts +13 -0
- package/dist/types/components/flip-icon/icons/flip-icon-cloud-upload.d.ts +5 -0
- package/dist/types/components/flip-resource-list/flip-resource-list.d.ts +13 -0
- package/dist/types/components/flip-resource-list/flip-resource-list.stories.d.ts +13 -0
- package/dist/types/components/flip-resource-list-file-item/flip-resource-list-file-item.d.ts +12 -0
- package/dist/types/components/flip-resource-list-file-item/flip-resource-list-file-item.stories.d.ts +23 -0
- package/dist/types/components/flip-resource-list-item/flip-resource-list-item.d.ts +23 -0
- package/dist/types/components/flip-resource-list-item/flip-resource-list-item.stories.d.ts +16 -0
- package/dist/types/components/flip-tab/flip-tab.d.ts +6 -0
- package/dist/types/components/flip-tab/flip-tab.stories.d.ts +13 -0
- package/dist/types/components/flip-tabs/flip-tabs.d.ts +27 -0
- package/dist/types/components/flip-tabs/flip-tabs.stories.d.ts +13 -0
- package/dist/types/components/flip-tooltip/flip-tooltip.d.ts +2 -2
- package/dist/types/components.d.ts +196 -0
- package/dist/types/utils.d.ts +9 -0
- package/package.json +3 -4
- package/vscode-data.json +215 -0
- package/dist/cjs/flip-inline-error.cjs.entry.js +0 -23
- package/dist/esm/flip-inline-error.entry.js +0 -19
- package/dist/swirl-components/p-1853aaf0.entry.js +0 -1
- package/dist/swirl-components/p-18965b40.entry.js +0 -1
- package/dist/swirl-components/p-18a51976.entry.js +0 -1
- package/dist/swirl-components/p-3d59d365.entry.js +0 -1
- package/dist/swirl-components/p-9b4a9856.entry.js +0 -1
- package/dist/swirl-components/p-aada2b77.entry.js +0 -1
- package/dist/swirl-components/p-cac72e30.entry.js +0 -1
- package/dist/swirl-components/p-d3999b94.entry.js +0 -2
- package/dist/swirl-components/p-e12fbb2d.js +0 -2
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-bd89db61.js');
|
|
6
6
|
|
|
7
7
|
const flipRadioGroupCss = ".sc-flip-radio-group-h{display:block}.sc-flip-radio-group-h *.sc-flip-radio-group{box-sizing:border-box}.radio-group.sc-flip-radio-group{display:flex;flex-direction:column;gap:var(--s-space-4)}";
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-bd89db61.js');
|
|
6
6
|
const index$1 = require('./index-b9715722.js');
|
|
7
7
|
|
|
8
8
|
const flipRadioCss = ".sc-flip-radio-h{display:inline-flex}.sc-flip-radio-h *.sc-flip-radio{box-sizing:border-box}.radio.sc-flip-radio{display:inline-flex;cursor:pointer;line-height:var(--s-line-height-base)}.radio.sc-flip-radio:focus-within .radio__box.sc-flip-radio{box-shadow:0 0 0 0.0625rem var(--s-background-default),\n 0 0 0 0.1875rem var(--s-focus-default)}.radio--checked.sc-flip-radio .radio__control.sc-flip-radio:hover .radio__box.sc-flip-radio{border-color:var(--s-interactive-primary-hovered);background-color:var(--s-interactive-primary-hovered)}.radio--checked.sc-flip-radio .radio__box.sc-flip-radio{position:relative;border-color:var(--s-icon-highlight);background-color:var(--s-icon-highlight)}.radio--checked.sc-flip-radio .radio__box.sc-flip-radio:after{position:absolute;top:50%;left:50%;width:0.5rem;height:0.5rem;border-radius:50%;background-color:var(--s-background-default);content:\"\";transform:translate3d(-50%, -50%, 0)}.radio--invalid.radio--checked.sc-flip-radio .radio__box.sc-flip-radio,.radio--invalid.radio--indeterminate.sc-flip-radio .radio__box.sc-flip-radio{background-color:var(--s-icon-critical)}.radio--invalid.sc-flip-radio .radio__box.sc-flip-radio{border-color:var(--s-icon-critical)}.radio--disabled.sc-flip-radio{cursor:default}.radio--disabled.radio--checked.sc-flip-radio .radio__control.sc-flip-radio:hover .radio__box.sc-flip-radio{border-color:var(--s-icon-disabled);background-color:transparent}.radio--disabled.radio--checked.sc-flip-radio .radio__box.sc-flip-radio{border-color:var(--s-icon-disabled);background-color:var(--s-background-default)}.radio--disabled.radio--checked.sc-flip-radio .radio__box.sc-flip-radio:after{background-color:var(--s-icon-disabled)}.radio--disabled.sc-flip-radio .radio__control.sc-flip-radio:hover .radio__box.sc-flip-radio{background-color:transparent}.radio--disabled.sc-flip-radio .radio__box.sc-flip-radio{border-color:var(--s-icon-disabled);backround-color:var(--s-icon-disabled)}.radio--disabled.sc-flip-radio .radio__description.sc-flip-radio,.radio--disabled.sc-flip-radio .radio__label.sc-flip-radio{color:var(--s-text-disabled)}.radio__control.sc-flip-radio{position:relative;display:inline-flex;width:1.5rem;height:1.5rem;padding:var(--s-space-2);flex-shrink:0}.radio__control.sc-flip-radio:hover .radio__box.sc-flip-radio{background-color:var(--s-action-neutral-hovered)}.radio__box.sc-flip-radio{position:relative;display:flex;width:100%;height:100%;justify-content:center;align-items:center;border:0.125rem solid var(--s-icon-default);border-radius:50%}.radio__label-container.sc-flip-radio{display:inline-flex;margin-left:var(--s-space-12);padding-top:var(--s-space-2);flex-direction:column}.radio__label.sc-flip-radio{font-weight:var(--s-font-weight-medium)}.radio__description.sc-flip-radio{color:var(--s-text-subdued)}";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-bd89db61.js');
|
|
6
|
+
const index$1 = require('./index-b9715722.js');
|
|
7
|
+
|
|
8
|
+
const flipResourceListFileItemCss = ":host{display:block;width:100%}:host *{box-sizing:border-box}.resource-list-file-item{position:relative;display:flex;width:100%;padding:var(--s-space-12) var(--s-space-16);align-items:center;background-color:var(--s-background-default);line-height:var(--s-line-height-base);gap:var(--s-space-12)}.resource-list-file-item:focus{background-color:var(--s-background-hovered);outline:none}.resource-list-file-item--has-control .resource-list-file-item__label-container{padding-right:calc(var(--s-space-12) + 2.5rem)}.resource-list-file-item__icon{color:var(--s-icon-highlight)}.resource-list-file-item__label-container{position:relative;display:flex;min-width:0;min-height:2.875rem;flex-grow:1;justify-content:center;flex-direction:column}.resource-list-file-item__label-container:after{position:absolute;right:0;bottom:calc(-1 * var(--s-space-12) + 0.0625rem);left:0;height:0.0625rem;background-color:var(--s-border-default);content:\"\"}.resource-list-file-item__label{overflow:hidden;font-weight:var(--s-font-weight-medium);white-space:nowrap;text-overflow:ellipsis}.resource-list-file-item__description{overflow:hidden;margin-top:var(--s-space-2);color:var(--s-text-subdued);font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm);white-space:nowrap;text-overflow:ellipsis}.resource-list-file-item__error-message{margin-top:var(--s-space-2)}.resource-list-file-item__remove-button{position:absolute;top:50%;right:var(--s-space-16);display:inline-flex;transform:translateY(-50%)}.resource-list-file-item__spinner{position:absolute;top:50%;right:var(--s-space-24);display:inline-flex;transform:translateY(-50%)}";
|
|
9
|
+
|
|
10
|
+
const FlipResourceListFileItem = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
this.remove = index.createEvent(this, "remove", 7);
|
|
14
|
+
this.icon = "<flip-icon-file></flip-icon-file>";
|
|
15
|
+
this.removeButtonLabel = "Remove file";
|
|
16
|
+
}
|
|
17
|
+
render() {
|
|
18
|
+
const showError = Boolean(this.errorMessage);
|
|
19
|
+
const showDescription = !showError && Boolean(this.description);
|
|
20
|
+
const showSpinner = !showError && this.loading;
|
|
21
|
+
const showRemoveButton = this.removable && !showSpinner;
|
|
22
|
+
const className = index$1.classnames("resource-list-file-item", {
|
|
23
|
+
"resource-list-file-item--has-control": showSpinner || showRemoveButton,
|
|
24
|
+
});
|
|
25
|
+
return (index.h(index.Host, { role: "row" }, index.h("div", { class: className, role: "gridcell" }, index.h("span", { class: "resource-list-file-item__icon", innerHTML: this.icon }), index.h("span", { class: "resource-list-file-item__label-container" }, index.h("span", { class: "resource-list-file-item__label", id: "label" }, this.label), showDescription && (index.h("span", { class: "resource-list-file-item__description" }, this.description)), showError && (index.h("span", { "aria-live": "polite", class: "resource-list-file-item__error-message" }, index.h("flip-inline-error", { message: this.errorMessage, size: "s" })))), showSpinner && (index.h("span", { class: "resource-list-file-item__spinner" }, index.h("flip-spinner", { size: "s" }))), showRemoveButton && (index.h("span", { class: "resource-list-file-item__remove-button" }, index.h("flip-button", { hideLabel: true, icon: "<flip-icon-close></flip-icon-close>", label: this.removeButtonLabel, onClick: this.remove.emit }))))));
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
FlipResourceListFileItem.style = flipResourceListFileItemCss;
|
|
29
|
+
|
|
30
|
+
exports.flip_resource_list_file_item = FlipResourceListFileItem;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-bd89db61.js');
|
|
6
|
+
const index$1 = require('./index-b9715722.js');
|
|
7
|
+
|
|
8
|
+
const flipResourceListItemCss = ":host{display:block;width:100%}:host *{box-sizing:border-box}.resource-list-item{position:relative;width:100%}.resource-list-item--checked .resource-list-item__checkbox{border-color:var(--s-icon-highlight);color:var(--s-text-on-status);background-color:var(--s-icon-highlight)}.resource-list-item--has-menu .resource-list-item__label-container{padding-right:calc(var(--s-space-16) + 2.5rem + var(--s-space-12))}@media (--from-tablet){.resource-list-item--selectable .resource-list-item__content{padding-left:calc(var(--s-space-16) + 1.5rem + var(--s-space-12))}}.resource-list-item--selectable .resource-list-item__label-container{padding-right:calc(var(--s-space-16) + 1.5rem + var(--s-space-12))}@media (--from-tablet){.resource-list-item--selectable .resource-list-item__label-container{padding-right:var(--s-space-16)}}.resource-list-item--hide-divider .resource-list-item__label-container:after{display:none}.resource-list-item__content{--flip-avatar-group-border-color:var(--s-background-default);--flip-badge-border-color:var(--s-background-default);display:flex;width:100%;padding-top:var(--s-space-12);padding-right:0;padding-bottom:var(--s-space-12);padding-left:var(--s-space-16);align-items:center;border:none;color:var(--s-text-default);background-color:var(--s-background-default);font:inherit;line-height:var(--s-line-height-base);text-align:left;text-decoration:none;cursor:pointer;gap:var(--s-space-12)}.resource-list-item__content:hover:not(:disabled){background-color:var(--s-background-hovered)}.resource-list-item__content:hover:not(:disabled) .resource-list-item__media{--flip-avatar-group-border-color:var(--s-background-hovered);--flip-badge-border-color:var(--s-background-hovered)}.resource-list-item__content:active:not(:disabled){background-color:var(--s-background-pressed)}.resource-list-item__content:active:not(:disabled) .resource-list-item__media{--flip-avatar-group-border-color:var(--s-background-pressed);--flip-badge-border-color:var(--s-background-pressed)}.resource-list-item__content:focus{background-color:var(--s-background-hovered);outline:none}.resource-list-item__content:focus .resource-list-item__media{--flip-avatar-group-border-color:var(--s-background-hovered);--flip-badge-border-color:var(--s-background-hovered)}.resource-list-item__content:disabled{color:var(--s-text-disabled);background-color:var(--s-background-default);cursor:default}.resource-list-item__content:disabled .resource-list-item__description{color:var(--s-text-disabled)}.resource-list-item__media{display:inline-flex}.resource-list-item__label-container{position:relative;display:flex;min-width:0;min-height:2.875rem;padding-right:var(--s-space-16);flex-grow:1;justify-content:center;flex-direction:column}.resource-list-item__label-container:after{position:absolute;right:0;bottom:calc(-1 * var(--s-space-12) + 0.0625rem);left:0;height:0.0625rem;background-color:var(--s-border-default);content:\"\"}.resource-list-item__label{overflow:hidden;font-weight:var(--s-font-weight-medium);white-space:nowrap;text-overflow:ellipsis}.resource-list-item__description{overflow:hidden;margin-top:var(--s-space-2);color:var(--s-text-subdued);font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm);white-space:nowrap;text-overflow:ellipsis}.resource-list-item__menu-trigger{position:absolute;top:50%;right:var(--s-space-16);transform:translateY(-50%)}.resource-list-item__checkbox{position:absolute;top:50%;right:var(--s-space-16);display:flex;width:1.25rem;height:1.25rem;justify-content:center;align-items:center;border:0.125rem solid var(--s-icon-default);border-radius:var(--s-border-radius-s);transform:translateY(-50%)}@media (--from-tablet){.resource-list-item__checkbox{right:auto;left:var(--s-space-16)}}.resource-list-item__checkbox-icon{display:inline-flex;width:1.0625rem;height:1.0625rem}.resource-list-item__checkbox-icon>*::part(icon){width:1.0625rem;height:1.0625rem}.resource-list-item__meta{position:absolute;top:calc(var(--s-space-12) + var(--s-space-4));right:var(--s-space-16);color:var(--s-text-subdued);font-size:var(--s-font-size-sm)}";
|
|
9
|
+
|
|
10
|
+
const FlipResourceListItem = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
this.valueChange = index.createEvent(this, "valueChange", 7);
|
|
14
|
+
this.checked = false;
|
|
15
|
+
this.menuTriggerLabel = "Options";
|
|
16
|
+
this.onClick = () => {
|
|
17
|
+
if (!this.selectable) {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
this.checked = !this.checked;
|
|
21
|
+
this.valueChange.emit(this.checked);
|
|
22
|
+
};
|
|
23
|
+
this.onMenuTriggerClick = (event) => {
|
|
24
|
+
if (this.disabled && !Boolean(this.href)) {
|
|
25
|
+
event.stopPropagation();
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
componentDidLoad() {
|
|
30
|
+
this.forceAvatarProps();
|
|
31
|
+
this.forceThumbnailProps();
|
|
32
|
+
}
|
|
33
|
+
forceAvatarProps() {
|
|
34
|
+
const avatarEl = this.el.querySelector("flip-avatar");
|
|
35
|
+
if (!Boolean(avatarEl)) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
avatarEl.removeAttribute("interactive");
|
|
39
|
+
avatarEl.removeAttribute("show-label");
|
|
40
|
+
avatarEl.removeAttribute("variant");
|
|
41
|
+
avatarEl.setAttribute("size", "l");
|
|
42
|
+
}
|
|
43
|
+
forceThumbnailProps() {
|
|
44
|
+
const thumbnailEl = this.el.querySelector("flip-thumbnail");
|
|
45
|
+
if (!Boolean(thumbnailEl)) {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
thumbnailEl.setAttribute("format", "landscape");
|
|
49
|
+
if (!["s", "m"].includes(thumbnailEl.getAttribute("size"))) {
|
|
50
|
+
thumbnailEl.setAttribute("size", "m");
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
render() {
|
|
54
|
+
const Tag = Boolean(this.href) && !this.selectable ? "a" : "button";
|
|
55
|
+
const disabled = this.disabled && !Boolean(this.href);
|
|
56
|
+
const hasMenu = Boolean(this.menuTriggerId);
|
|
57
|
+
const showMenu = hasMenu && !Boolean(this.meta) && !this.selectable;
|
|
58
|
+
const showMeta = Boolean(this.meta) && !this.selectable;
|
|
59
|
+
const ariaChecked = this.selectable ? String(this.checked) : undefined;
|
|
60
|
+
const role = this.selectable ? "checkbox" : undefined;
|
|
61
|
+
const className = index$1.classnames("resource-list-item", {
|
|
62
|
+
"resource-list-item--checked": this.checked,
|
|
63
|
+
"resource-list-item--has-menu": hasMenu,
|
|
64
|
+
"resource-list-item--hide-divider": this.hideDivider,
|
|
65
|
+
"resource-list-item--selectable": this.selectable,
|
|
66
|
+
});
|
|
67
|
+
return (index.h(index.Host, { role: "row" }, index.h("div", { class: className, role: "gridcell" }, index.h(Tag, { "aria-checked": ariaChecked, "aria-disabled": disabled ? "true" : undefined, "aria-labelledby": "label", class: "resource-list-item__content", href: this.href, disabled: disabled, onClick: this.onClick, role: role, tabIndex: 0 }, Boolean(this.media) && (index.h("span", { class: "resource-list-item__media", innerHTML: this.media })), index.h("span", { class: "resource-list-item__label-container" }, index.h("span", { class: "resource-list-item__label", id: "label" }, this.label), this.description && (index.h("span", { class: "resource-list-item__description" }, this.description)))), this.selectable && (index.h("span", { "aria-hidden": "true", class: "resource-list-item__checkbox" }, index.h("span", { class: "resource-list-item__checkbox-icon" }, this.checked && (index.h("flip-icon-check-strong", null))))), showMeta && (index.h("span", { class: "resource-list-item__meta" }, this.meta)), showMenu && (index.h("flip-button", { "aria-disabled": disabled ? "true" : undefined, class: "resource-list-item__menu-trigger", disabled: disabled, hideLabel: true, icon: "<flip-icon-more-horizontal></flip-icon-more-horizontal>", id: this.menuTriggerId, intent: "primary", label: this.menuTriggerLabel, onClick: this.onMenuTriggerClick })))));
|
|
68
|
+
}
|
|
69
|
+
get el() { return index.getElement(this); }
|
|
70
|
+
};
|
|
71
|
+
FlipResourceListItem.style = flipResourceListItemCss;
|
|
72
|
+
|
|
73
|
+
exports.flip_resource_list_item = FlipResourceListItem;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-bd89db61.js');
|
|
6
|
+
|
|
7
|
+
const flipResourceListCss = ":host{display:block;width:100%}:host *{box-sizing:border-box}";
|
|
8
|
+
|
|
9
|
+
const FlipResourceList = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
this.focusedIndex = 0;
|
|
13
|
+
this.onFocus = () => {
|
|
14
|
+
this.focusItemAtIndex(this.focusedIndex);
|
|
15
|
+
};
|
|
16
|
+
this.onKeyDown = (event) => {
|
|
17
|
+
if (event.key === "ArrowDown") {
|
|
18
|
+
event.preventDefault();
|
|
19
|
+
this.focusItemAtIndex((this.focusedIndex + 1) % this.items.length);
|
|
20
|
+
}
|
|
21
|
+
else if (event.key === "ArrowUp") {
|
|
22
|
+
event.preventDefault();
|
|
23
|
+
const prevIndex = this.focusedIndex === 0 ? this.items.length - 1 : this.focusedIndex - 1;
|
|
24
|
+
this.focusItemAtIndex(prevIndex);
|
|
25
|
+
}
|
|
26
|
+
else if (event.key === "Home") {
|
|
27
|
+
event.preventDefault();
|
|
28
|
+
this.focusItemAtIndex(0);
|
|
29
|
+
}
|
|
30
|
+
else if (event.key === "End") {
|
|
31
|
+
event.preventDefault();
|
|
32
|
+
this.focusItemAtIndex(this.items.length - 1);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
componentDidLoad() {
|
|
37
|
+
this.collectItems();
|
|
38
|
+
this.removeItemsFromTabOrder();
|
|
39
|
+
}
|
|
40
|
+
collectItems() {
|
|
41
|
+
this.items = Array.from(this.el.querySelectorAll("flip-resource-list-item, flip-resource-list-file-item"));
|
|
42
|
+
}
|
|
43
|
+
removeItemsFromTabOrder() {
|
|
44
|
+
this.items.forEach((item) => {
|
|
45
|
+
var _a, _b;
|
|
46
|
+
return (_b = (_a = item.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".resource-list-item__content, .resource-list-file-item")) === null || _b === void 0 ? void 0 : _b.setAttribute("tabIndex", "-1");
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
focusItemAtIndex(index) {
|
|
50
|
+
this.removeItemsFromTabOrder();
|
|
51
|
+
const item = this.items[index];
|
|
52
|
+
if (!Boolean(item)) {
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
const interactiveElement = item.shadowRoot.querySelector(".resource-list-item__content, .resource-list-file-item");
|
|
56
|
+
interactiveElement.setAttribute("tabIndex", "0");
|
|
57
|
+
interactiveElement.focus();
|
|
58
|
+
this.focusedIndex = index;
|
|
59
|
+
}
|
|
60
|
+
render() {
|
|
61
|
+
return (index.h(index.Host, { onKeyDown: this.onKeyDown }, index.h("flip-stack", { "aria-label": this.label, onFocus: this.onFocus, role: "grid", tabIndex: 0 }, index.h("slot", null))));
|
|
62
|
+
}
|
|
63
|
+
get el() { return index.getElement(this); }
|
|
64
|
+
};
|
|
65
|
+
FlipResourceList.style = flipResourceListCss;
|
|
66
|
+
|
|
67
|
+
exports.flip_resource_list = FlipResourceList;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-bd89db61.js');
|
|
6
6
|
const index$1 = require('./index-b9715722.js');
|
|
7
7
|
|
|
8
8
|
const flipSearchCss = ".sc-flip-search-h{display:flex;width:100%}.sc-flip-search-h *.sc-flip-search{box-sizing:border-box}.search.sc-flip-search{position:relative;display:flex;width:100%}.search--disabled.sc-flip-search .search__icon.sc-flip-search{color:var(--s-icon-disabled)}.search--disabled.sc-flip-search .search__input.sc-flip-search{color:var(--s-text-disabled)}.search--disabled.sc-flip-search .search__input.sc-flip-search::-moz-placeholder{color:var(--s-text-disabled)}.search--disabled.sc-flip-search .search__input.sc-flip-search::placeholder{color:var(--s-text-disabled)}.search__icon.sc-flip-search{position:absolute;top:50%;left:var(--s-space-12);display:inline-flex;color:var(--s-icon-default);transform:translateY(-50%)}.search__input.sc-flip-search{width:100%;height:2.5rem;padding-top:var(--s-space-8);padding-right:calc(var(--s-space-12) + 1.5rem + var(--s-space-8));padding-bottom:var(--s-space-8);padding-left:calc(var(--s-space-12) + 1.5rem + var(--s-space-8));border:none;border-radius:var(--s-border-radius-base);color:var(--s-text-default);background-color:var(--s-surface-raised-default);font:inherit;line-height:var(--s-line-height-base);caret-color:var(--s-border-highlight)}.search__input.sc-flip-search:focus{outline-color:var(--s-focus-default)}.search__input.sc-flip-search::-moz-placeholder{color:var(--s-text-subdued)}.search__input.sc-flip-search::placeholder{color:var(--s-text-subdued)}.search__input.sc-flip-search::-webkit-search-decoration,.search__input.sc-flip-search::-webkit-search-cancel-button,.search__input.sc-flip-search::-webkit-search-results-button,.search__input.sc-flip-search::-webkit-search-results-decoration{-webkit-appearance:none;appearance:none}.search__input.sc-flip-search:not(:-moz-placeholder-shown)+.search__clear-button.sc-flip-search{display:inline-flex}.search__input.sc-flip-search:not(:placeholder-shown)+.search__clear-button.sc-flip-search{display:inline-flex}.search__clear-button.sc-flip-search{position:absolute;top:50%;right:var(--s-space-12);display:none;padding:0;border:none;color:var(--s-icon-default);background-color:transparent;cursor:pointer;transform:translateY(-50%)}";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-bd89db61.js');
|
|
6
6
|
const index$1 = require('./index-b9715722.js');
|
|
7
7
|
|
|
8
8
|
const flipStackCss = ":host{display:block;width:100%}:host *{box-sizing:border-box}.stack{display:flex;width:100%;max-width:100%}.stack ::slotted(*){min-width:0;max-width:100%;flex-basis:auto;flex-grow:0;flex-shrink:0}.stack--align-start{align-items:flex-start}.stack--align-center{align-items:center}.stack--align-end{align-items:flex-end}.stack--align-stretch{align-items:stretch}.stack--justify-start{justify-content:flex-start}.stack--justify-center{justify-content:center}.stack--justify-end{justify-content:flex-end}.stack--justify-space-between{justify-content:space-between}.stack--justify-space-around{justify-content:space-around}.stack--justify-space-evenly{justify-content:space-evenly}.stack--justify-stretch{justify-content:stretch}.stack--justify-stretch ::slotted(*){flex-grow:1}.stack--orientation-vertical{flex-direction:column}.stack--orientation-horizontal{flex-direction:row}.stack--wrap{flex-wrap:wrap}";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-bd89db61.js');
|
|
6
6
|
const index$1 = require('./index-b9715722.js');
|
|
7
7
|
|
|
8
8
|
const flipSwitchCss = ".sc-flip-switch-h{display:inline-flex}.sc-flip-switch-h *.sc-flip-switch{box-sizing:border-box}.switch.sc-flip-switch{display:inline-flex;align-items:center;touch-action:none}.switch.sc-flip-switch:focus-within .switch__control.sc-flip-switch{box-shadow:0 0 0 0.0625rem var(--s-background-default),\n 0 0 0 0.1875rem var(--s-focus-default)}.switch--size-m.sc-flip-switch .switch__control.sc-flip-switch{width:2.75rem;height:1.5rem;border-radius:calc(1.5rem / 2)}.switch--size-m.sc-flip-switch .switch__thumb.sc-flip-switch{width:1.25rem;height:1.25rem}.switch--on.switch--size-m.sc-flip-switch .switch__thumb.sc-flip-switch{left:calc(100% - 1.25rem - var(--s-space-2))}.switch--on.sc-flip-switch .switch__control.sc-flip-switch{background-color:var(--s-interactive-primary-default)}.switch--on.sc-flip-switch .switch__thumb.sc-flip-switch{left:calc(100% - 0.875rem - var(--s-space-2))}.switch--disabled.sc-flip-switch .switch__control.sc-flip-switch{background-color:var(--s-interactive-primary-disabled);cursor:default}.switch--disabled.sc-flip-switch .switch__thumb.sc-flip-switch{background-color:var(--s-interactive-neutral-default)}.switch--disabled.sc-flip-switch .switch__label.sc-flip-switch{color:var(--s-text-disabled)}.switch__control.sc-flip-switch{position:relative;width:1.875rem;height:1.125rem;flex-shrink:0;border-radius:calc(1.125rem / 2);background-color:var(--s-interactive-primary-disabled);cursor:pointer;transition:background-color 0.2s}@media (prefers-reduced-motion){.switch__control.sc-flip-switch{transition:none}}.switch__thumb.sc-flip-switch{position:absolute;top:var(--s-space-2);left:var(--s-space-2);width:0.875rem;height:0.875rem;border-radius:50%;background-color:var(--s-surface-default);transition:left 0.2s;pointer-events:none}@media (prefers-reduced-motion){.switch__thumb.sc-flip-switch{transition:none}}.switch__label.sc-flip-switch{position:relative;z-index:1;margin-left:var(--s-space-12);font-size:var(--s-font-size-sm);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-base)}";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-bd89db61.js');
|
|
6
|
+
const index$1 = require('./index-b9715722.js');
|
|
7
|
+
|
|
8
|
+
const flipTabCss = ":host{display:block;width:100%}:host *{box-sizing:border-box}.tab{display:none;width:100%;padding:var(--s-space-8)}.tab--active{display:block}";
|
|
9
|
+
|
|
10
|
+
const FlipTab = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
const className = index$1.classnames("tab", { "tab--active": this.active });
|
|
16
|
+
return (index.h(index.Host, { "aria-labelledby": `tab-${this.tabId}`, id: this.tabId, role: "tabpanel", tabIndex: this.active ? 0 : -1 }, index.h("div", { class: className }, index.h("slot", null))));
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
FlipTab.style = flipTabCss;
|
|
20
|
+
|
|
21
|
+
exports.flip_tab = FlipTab;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-bd89db61.js');
|
|
6
|
+
const index$1 = require('./index-b9715722.js');
|
|
7
|
+
|
|
8
|
+
const flipTabsCss = ".sc-flip-tabs-h{display:block;width:100%}.sc-flip-tabs-h *.sc-flip-tabs{box-sizing:border-box}.tabs.sc-flip-tabs{width:100%}.tabs__tab-bar.sc-flip-tabs{position:relative;display:flex;width:100%;padding-right:var(--s-space-16);padding-left:var(--s-space-16);justify-content:flex-start;border-bottom:var(--s-border-width-default) solid var(--s-border-default)}@media (--from-tablet){.tabs__tab-bar.sc-flip-tabs{padding-right:0;padding-left:0}}.tabs__tab.sc-flip-tabs{display:block;min-width:0;margin:0;padding:var(--s-space-4) 0;border:none;background-color:transparent;font:inherit;font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-base);cursor:pointer}.tabs__tab.sc-flip-tabs:focus-visible{outline:none}.tabs__tab.sc-flip-tabs:focus-visible .tabs__tab-label.sc-flip-tabs{border-radius:var(--s-border-radius-s);box-shadow:inset 0 0 0 0.125rem var(--s-focus-default)}.tabs__tab.sc-flip-tabs:not(:first-of-type){padding-left:var(--s-space-8)}.tabs__tab.sc-flip-tabs:not(:last-of-type){padding-right:var(--s-space-8)}.tabs__tab-label.sc-flip-tabs{display:block;overflow:hidden;width:100%;padding:var(--s-space-8) var(--s-space-8);text-align:center;white-space:nowrap;text-overflow:ellipsis}.tabs__tab--active.sc-flip-tabs{color:var(--s-text-highlight)}.tabs__indicator.sc-flip-tabs{position:absolute;bottom:0;left:0;width:0;height:0.125rem;border-radius:0.0625rem;background-color:var(--s-border-highlight);transition:background-color 0.15s, transform 0.15s, width 0.15s;transform:translate3d(0, 0, 0);pointer-events:none}@media (prefers-reduced-motion){.tabs__indicator.sc-flip-tabs{transition:none}}";
|
|
9
|
+
|
|
10
|
+
const FlipTabs = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
this.tabActivated = index.createEvent(this, "tabActivated", 7);
|
|
14
|
+
this.tabs = [];
|
|
15
|
+
this.onKeyDown = (event) => {
|
|
16
|
+
if (event.code === "ArrowLeft") {
|
|
17
|
+
event.preventDefault();
|
|
18
|
+
this.activatePreviousTab();
|
|
19
|
+
}
|
|
20
|
+
else if (event.code === "ArrowRight") {
|
|
21
|
+
event.preventDefault();
|
|
22
|
+
this.activateNextTab();
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
this.onMouseEnter = (event, tab) => {
|
|
26
|
+
if (tab.tabId === this.activeTab) {
|
|
27
|
+
this.highlightedTab = undefined;
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
this.highlightedTab =
|
|
31
|
+
event.target.closest(".tabs__tab") || undefined;
|
|
32
|
+
};
|
|
33
|
+
this.onMouseLeave = () => {
|
|
34
|
+
this.highlightedTab = undefined;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
componentWillLoad() {
|
|
38
|
+
this.collectTabs();
|
|
39
|
+
}
|
|
40
|
+
componentDidRender() {
|
|
41
|
+
this.updateIndicatorPosition();
|
|
42
|
+
}
|
|
43
|
+
onWindowResize() {
|
|
44
|
+
this.updateIndicatorPosition();
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Activate a tab.
|
|
48
|
+
* @param tabId
|
|
49
|
+
*/
|
|
50
|
+
async activateTab(tabId) {
|
|
51
|
+
if (this.activeTab === tabId) {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
this.activeTab = tabId;
|
|
55
|
+
this.tabs.forEach((tab) => (tab.active = false));
|
|
56
|
+
const tab = this.tabs.find((tab) => tab.tabId === tabId);
|
|
57
|
+
if (!Boolean(tab)) {
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
this.highlightedTab = undefined;
|
|
61
|
+
tab.active = true;
|
|
62
|
+
this.tabActivated.emit(tab);
|
|
63
|
+
}
|
|
64
|
+
activateNextTab() {
|
|
65
|
+
const currentIndex = this.tabs.findIndex((tab) => tab.tabId === this.activeTab);
|
|
66
|
+
const nextIndex = Math.min(this.tabs.length - 1, currentIndex + 1);
|
|
67
|
+
this.activateTab(this.tabs[nextIndex].tabId);
|
|
68
|
+
requestAnimationFrame(() => {
|
|
69
|
+
var _a;
|
|
70
|
+
(_a = this.el.querySelector(".tabs__tab--active")) === null || _a === void 0 ? void 0 : _a.focus();
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
activatePreviousTab() {
|
|
74
|
+
const currentIndex = this.tabs.findIndex((tab) => tab.tabId === this.activeTab);
|
|
75
|
+
const previousIndex = Math.max(0, currentIndex - 1);
|
|
76
|
+
this.activateTab(this.tabs[previousIndex].tabId);
|
|
77
|
+
requestAnimationFrame(() => {
|
|
78
|
+
var _a;
|
|
79
|
+
(_a = this.el.querySelector(".tabs__tab--active")) === null || _a === void 0 ? void 0 : _a.focus();
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
collectTabs() {
|
|
83
|
+
this.tabs = Array.from(this.el.querySelectorAll("flip-tab"));
|
|
84
|
+
if (this.tabs.length === 0) {
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
const initialTab = this.tabs.find((tab) => tab.tabId === this.initialTab);
|
|
88
|
+
this.activateTab(Boolean(initialTab) ? initialTab.tabId : this.tabs[0].tabId);
|
|
89
|
+
}
|
|
90
|
+
updateIndicatorPosition() {
|
|
91
|
+
const activeTab = this.tabs.find((tab) => tab.tabId === this.activeTab);
|
|
92
|
+
if (!Boolean(activeTab) && !Boolean(this.highlightedTab)) {
|
|
93
|
+
this.indicatorEl.style.width = "";
|
|
94
|
+
this.indicatorEl.style.transform = "";
|
|
95
|
+
this.indicatorEl.style.backgroundColor = "";
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
const activeTabEl = this.highlightedTab ||
|
|
99
|
+
this.el.querySelector(`#tab-${activeTab.tabId}`);
|
|
100
|
+
const activeTabLabelEl = activeTabEl.querySelector(".tabs__tab-label");
|
|
101
|
+
this.indicatorEl.style.width = `${activeTabLabelEl.getBoundingClientRect().width / 16}rem`;
|
|
102
|
+
this.indicatorEl.style.transform = `translate3d(${activeTabLabelEl.offsetLeft / 16}rem, 0, 0)`;
|
|
103
|
+
this.indicatorEl.style.backgroundColor = Boolean(this.highlightedTab)
|
|
104
|
+
? "var(--s-border-default)"
|
|
105
|
+
: "";
|
|
106
|
+
}
|
|
107
|
+
render() {
|
|
108
|
+
return (index.h(index.Host, null, index.h("div", { class: "tabs" }, index.h("div", { "aria-label": this.label, class: "tabs__tab-bar", onKeyDown: this.onKeyDown, role: "tablist" }, this.tabs.map((tab) => {
|
|
109
|
+
const isActive = tab.tabId === this.activeTab;
|
|
110
|
+
const className = index$1.classnames("tabs__tab", {
|
|
111
|
+
"tabs__tab--active": isActive,
|
|
112
|
+
});
|
|
113
|
+
return (index.h("button", { "aria-controls": tab.tabId, "aria-selected": isActive ? "true" : "false", class: className, id: `tab-${tab.tabId}`, key: tab.tabId,
|
|
114
|
+
// eslint-disable-next-line react/jsx-no-bind
|
|
115
|
+
onClick: () => this.activateTab(tab.tabId),
|
|
116
|
+
// eslint-disable-next-line react/jsx-no-bind
|
|
117
|
+
onMouseEnter: (event) => this.onMouseEnter(event, tab), onMouseLeave: this.onMouseLeave, role: "tab", tabIndex: isActive ? 0 : -1, type: "button" }, index.h("span", { class: "tabs__tab-label" }, tab.label)));
|
|
118
|
+
}), index.h("span", { class: "tabs__indicator", ref: (el) => (this.indicatorEl = el) })), index.h("slot", null))));
|
|
119
|
+
}
|
|
120
|
+
get el() { return index.getElement(this); }
|
|
121
|
+
};
|
|
122
|
+
FlipTabs.style = flipTabsCss;
|
|
123
|
+
|
|
124
|
+
exports.flip_tabs = FlipTabs;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-bd89db61.js');
|
|
6
6
|
const index$1 = require('./index-b9715722.js');
|
|
7
7
|
|
|
8
8
|
const flipTagCss = ":host{display:inline-flex}:host *{box-sizing:border-box}.tag{display:inline-flex;padding:var(--s-space-2) var(--s-space-8);align-items:center;border-radius:var(--s-border-radius-s);color:var(--s-text-default);background-color:var(--s-surface-neutral-subdued);font-size:var(--s-font-size-sm);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-sm);gap:var(--s-space-4)}.tag--intent-info{color:var(--s-text-info);background-color:var(--s-surface-info-subdued)}.tag--intent-info .tag__removal-button{color:var(--icon-info)}.tag--intent-critical{color:var(--s-text-critical);background-color:var(--s-surface-critical-subdued)}.tag--intent-critical .tag__removal-button{color:var(--icon-critical)}.tag--intent-warning{color:var(--s-text-warning);background-color:var(--s-surface-warning-subdued)}.tag--intent-warning .tag__removal-button{color:var(--icon-warning)}.tag--intent-success{color:var(--s-text-success);background-color:var(--s-surface-success-subdued)}.tag--intent-success .tag__removal-button{color:var(--icon-success)}.tag__removal-button{display:inline-flex;margin-right:calc(-1 * var(--s-space-4));padding:0;border:none;color:var(--s-icon-strong);background-color:transparent;cursor:pointer}.tag__removal-button:focus{outline-color:var(--s-focus-default)}";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-bd89db61.js');
|
|
6
6
|
const index$1 = require('./index-b9715722.js');
|
|
7
7
|
|
|
8
8
|
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)}";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-bd89db61.js');
|
|
6
6
|
const index$1 = require('./index-b9715722.js');
|
|
7
7
|
|
|
8
8
|
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)}";
|
|
@@ -2,12 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-bd89db61.js');
|
|
6
|
+
const floatingUi_dom_esm = require('./floating-ui.dom.esm-75453e4e.js');
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
const e={variantFlipOrder:{start:"sme",middle:"mse",end:"ems"},positionFlipOrder:{top:"tbrl",right:"rltb",bottom:"btrl",left:"lrbt"},position:"bottom",margin:8},r=(t,r,o)=>{const{container:n,margin:i,position:p,variantFlipOrder:s,positionFlipOrder:l}={container:document.documentElement.getBoundingClientRect(),...e,...o},{left:c,top:f}=r.style;r.style.left="0",r.style.top="0";const m=t.getBoundingClientRect(),a=r.getBoundingClientRect(),b={t:m.top-a.height-i,b:m.bottom+i,r:m.right+i,l:m.left-a.width-i},d={vs:m.left,vm:m.left+m.width/2+-a.width/2,ve:m.left+m.width-a.width,hs:m.top,hm:m.bottom-m.height/2-a.height/2,he:m.bottom-a.height},[h,u="middle"]=p.split("-"),v=l[h],g=s[u],{top:O,left:F,bottom:x,right:j}=n;for(const t of v){const e="t"===t||"b"===t,o=b[t],[n,i]=e?["top","left"]:["left","top"],[p,s]=e?[a.height,a.width]:[a.width,a.height],[l,c]=e?[x,j]:[j,x],[f,m]=e?[O,F]:[F,O];if(!(o<f||o+p>l))for(const p of g){const l=d[(e?"v":"h")+p];if(!(l<m||l+s>c))return r.style[i]=l-a[i]+"px",r.style[n]=o-a[n]+"px",t+p}}return r.style.left=c,r.style.top=f,null};
|
|
9
|
-
|
|
10
|
-
const flipTooltipCss = ":host{display:inline-flex}:host *{box-sizing:border-box}.tooltip{display:inline-flex}.tooltip .tooltip__reference{display:inline-flex}.tooltip__popper{position:fixed;z-index:var(--s-z-40);max-width:17.5rem}.tooltip__bubble{position:relative;display:block;padding-top:var(--s-space-8);padding-right:var(--s-space-12);padding-bottom:var(--s-space-8);padding-left:var(--s-space-12);border-radius:var(--s-border-radius-sm);color:var(--s-text-on-status);background-color:var(--s-surface-neutral-default);line-height:var(--s-line-height-base);backgrund-color:red}.tooltip__arrow{position:absolute;width:0.5rem;height:0.5rem;background-color:var(--s-surface-neutral-default)}";
|
|
8
|
+
const flipTooltipCss = ":host{display:inline-flex}:host *{box-sizing:border-box}.tooltip{display:inline-flex}.tooltip .tooltip__reference{display:inline-flex}.tooltip__popper{position:fixed;z-index:var(--s-z-40);max-width:17.5rem}.tooltip__bubble{position:relative;display:block;padding-top:var(--s-space-8);padding-right:var(--s-space-12);padding-bottom:var(--s-space-8);padding-left:var(--s-space-12);border-radius:var(--s-border-radius-sm);color:var(--s-text-on-status);background-color:var(--s-surface-neutral-default);line-height:var(--s-line-height-base);-webkit-animation:tooltip-fade-in 0.1s;animation:tooltip-fade-in 0.1s;backgrund-color:red}.tooltip__arrow{position:absolute;width:0.5rem;height:0.5rem;background-color:var(--s-surface-neutral-default)}@-webkit-keyframes tooltip-fade-in{from{opacity:0}to{opacity:1}}@keyframes tooltip-fade-in{from{opacity:0}to{opacity:1}}";
|
|
11
9
|
|
|
12
10
|
const FlipTooltip = class {
|
|
13
11
|
constructor(hostRef) {
|
|
@@ -20,11 +18,11 @@ const FlipTooltip = class {
|
|
|
20
18
|
this.hide();
|
|
21
19
|
}
|
|
22
20
|
};
|
|
23
|
-
this.reposition = () => {
|
|
21
|
+
this.reposition = async () => {
|
|
24
22
|
if (!Boolean(this.referenceEl) || !Boolean(this.popperEl)) {
|
|
25
23
|
return;
|
|
26
24
|
}
|
|
27
|
-
this.actualPosition =
|
|
25
|
+
this.actualPosition = await floatingUi_dom_esm.computePosition(this.referenceEl, this.popperEl, this.options);
|
|
28
26
|
};
|
|
29
27
|
this.show = () => {
|
|
30
28
|
this.visible = true;
|
|
@@ -53,33 +51,35 @@ const FlipTooltip = class {
|
|
|
53
51
|
.getPropertyValue("--s-space-12")
|
|
54
52
|
.replace("rem", "") * 16;
|
|
55
53
|
this.options = {
|
|
56
|
-
margin,
|
|
57
|
-
|
|
54
|
+
middleware: [floatingUi_dom_esm.offset(margin), floatingUi_dom_esm.shift(), floatingUi_dom_esm.flip()],
|
|
55
|
+
placement: this.position,
|
|
56
|
+
strategy: "fixed",
|
|
58
57
|
};
|
|
59
58
|
};
|
|
60
59
|
this.getArrowStyles = () => {
|
|
61
|
-
|
|
60
|
+
var _a, _b, _c, _d;
|
|
61
|
+
if (((_a = this.actualPosition) === null || _a === void 0 ? void 0 : _a.placement) === "top") {
|
|
62
62
|
return {
|
|
63
63
|
top: "100%",
|
|
64
64
|
left: "50%",
|
|
65
65
|
transform: "translate3d(-50%, -50%, 0) rotate(45deg)",
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
|
-
if (this.actualPosition === "
|
|
68
|
+
if (((_b = this.actualPosition) === null || _b === void 0 ? void 0 : _b.placement) === "bottom") {
|
|
69
69
|
return {
|
|
70
70
|
bottom: "100%",
|
|
71
71
|
left: "50%",
|
|
72
72
|
transform: "translate3d(-50%, 50%, 0) rotate(45deg)",
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
|
-
if (this.actualPosition === "
|
|
75
|
+
if (((_c = this.actualPosition) === null || _c === void 0 ? void 0 : _c.placement) === "right") {
|
|
76
76
|
return {
|
|
77
77
|
top: "50%",
|
|
78
78
|
right: "100%",
|
|
79
79
|
transform: "translate3d(50%, -50%, 0) rotate(45deg)",
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
|
-
if (this.actualPosition === "
|
|
82
|
+
if (((_d = this.actualPosition) === null || _d === void 0 ? void 0 : _d.placement) === "left") {
|
|
83
83
|
return {
|
|
84
84
|
top: "50%",
|
|
85
85
|
left: "100%",
|
|
@@ -110,8 +110,16 @@ const FlipTooltip = class {
|
|
|
110
110
|
this.updateOptions();
|
|
111
111
|
}
|
|
112
112
|
render() {
|
|
113
|
+
var _a, _b;
|
|
113
114
|
const arrowStyles = this.getArrowStyles();
|
|
114
|
-
return (index.h(index.Host, { onKeydown: this.onKeydown }, index.h("span", { class: "tooltip" }, index.h("span", { class: "tooltip__reference", "aria-describedby": "tooltip", onBlur: this.hide, onClick: this.hide, onFocus: this.show, ref: (el) => (this.referenceEl = el), tabIndex: 0 }, index.h("slot", null)), index.h("span", { class: "tooltip__popper", ref: (el) => (this.popperEl = el)
|
|
115
|
+
return (index.h(index.Host, { onKeydown: this.onKeydown }, index.h("span", { class: "tooltip" }, index.h("span", { class: "tooltip__reference", "aria-describedby": "tooltip", onBlur: this.hide, onClick: this.hide, onFocus: this.show, ref: (el) => (this.referenceEl = el), tabIndex: 0 }, index.h("slot", null)), index.h("span", { class: "tooltip__popper", ref: (el) => (this.popperEl = el), style: {
|
|
116
|
+
top: Boolean(this.actualPosition)
|
|
117
|
+
? `${(_a = this.actualPosition) === null || _a === void 0 ? void 0 : _a.y}px`
|
|
118
|
+
: "",
|
|
119
|
+
left: Boolean(this.actualPosition)
|
|
120
|
+
? `${(_b = this.actualPosition) === null || _b === void 0 ? void 0 : _b.x}px`
|
|
121
|
+
: "",
|
|
122
|
+
} }, this.visible && (index.h("span", { class: "tooltip__bubble", id: "tooltip", role: "tooltip" }, index.h("span", { class: "tooltip__content", innerHTML: this.content }), index.h("span", { class: "tooltip__arrow", style: arrowStyles })))))));
|
|
115
123
|
}
|
|
116
124
|
static get watchers() { return {
|
|
117
125
|
"position": ["watchPosition"]
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-bd89db61.js');
|
|
6
6
|
|
|
7
7
|
const flipVisuallyHiddenCss = ":host{position:absolute;display:inline;overflow:hidden;width:1px;height:1px;margin:-1px;padding:0;border:0;white-space:nowrap;word-wrap:normal;clip:rect(0, 0, 0, 0)}";
|
|
8
8
|
|