@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
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { generateStoryElement } from "../../utils";
|
|
2
|
+
import Docs from "./flip-file-uploader.mdx";
|
|
3
|
+
export default {
|
|
4
|
+
component: "flip-file-uploader",
|
|
5
|
+
parameters: {
|
|
6
|
+
docs: {
|
|
7
|
+
page: Docs,
|
|
8
|
+
},
|
|
9
|
+
},
|
|
10
|
+
title: "Components/FlipFileUploader",
|
|
11
|
+
};
|
|
12
|
+
const Template = (args) => {
|
|
13
|
+
const element = generateStoryElement("flip-file-uploader", args);
|
|
14
|
+
return element;
|
|
15
|
+
};
|
|
16
|
+
export const FlipFileUploader = Template.bind({});
|
|
17
|
+
FlipFileUploader.args = {
|
|
18
|
+
accept: "image/*",
|
|
19
|
+
description: "Only image files are allowed.",
|
|
20
|
+
inputId: "file-upload",
|
|
21
|
+
inputName: "file-upload",
|
|
22
|
+
label: "Label",
|
|
23
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// DO NOT EDIT. THIS FILE GETS GENERATED VIA "yarn generate".
|
|
2
|
+
import { Component, Fragment, h, Prop } from "@stencil/core";
|
|
3
|
+
export class FlipIconCloudUpload {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.size = 24;
|
|
6
|
+
}
|
|
7
|
+
render() {
|
|
8
|
+
return (h("svg", { class: "flip-icon", fill: "none", height: this.size, part: "icon", viewBox: `0 0 ${this.size} ${this.size}`, width: this.size, xmlns: "http://www.w3.org/2000/svg" },
|
|
9
|
+
this.size === 16 && (h(Fragment, null,
|
|
10
|
+
h("path", { d: "M4.33333 13.3333C3.32222 13.3333 2.45844 12.9833 1.742 12.2833C1.02511 11.5833 0.666664 10.7277 0.666664 9.71663C0.666664 8.84996 0.927775 8.07774 1.45 7.39996C1.97222 6.72218 2.65555 6.28885 3.5 6.09996C3.77778 5.07774 4.33333 4.24996 5.16666 3.61663C6 2.98329 6.94444 2.66663 8 2.66663C9.3 2.66663 10.4027 3.11929 11.308 4.02463C12.2138 4.9304 12.6667 6.03329 12.6667 7.33329C13.4333 7.42218 14.0696 7.75263 14.5753 8.32463C15.0807 8.89707 15.3333 9.56663 15.3333 10.3333C15.3333 11.1666 15.0418 11.8751 14.4587 12.4586C13.8751 13.0417 13.1667 13.3333 12.3333 13.3333H8.66666V8.56663L9.26666 9.14996C9.38889 9.27218 9.54178 9.33329 9.72533 9.33329C9.90844 9.33329 10.0667 9.26663 10.2 9.13329C10.3222 9.01107 10.3833 8.85552 10.3833 8.66663C10.3833 8.47774 10.3222 8.32218 10.2 8.19996L8.46666 6.46663C8.33333 6.33329 8.17778 6.26663 8 6.26663C7.82222 6.26663 7.66666 6.33329 7.53333 6.46663L5.8 8.19996C5.67778 8.32218 5.614 8.47485 5.60866 8.65796C5.60289 8.84152 5.66666 8.99996 5.8 9.13329C5.92222 9.25551 6.07489 9.31952 6.258 9.32529C6.44155 9.33063 6.6 9.27218 6.73333 9.14996L7.33333 8.56663V13.3333H4.33333Z", fill: "currentColor" }))),
|
|
11
|
+
this.size === 24 && (h(Fragment, null,
|
|
12
|
+
h("path", { d: "M6.5 20C4.98333 20 3.68767 19.475 2.613 18.425C1.53767 17.375 1 16.0917 1 14.575C1 13.275 1.39167 12.1167 2.175 11.1C2.95833 10.0833 3.98333 9.43333 5.25 9.15C5.66667 7.61667 6.5 6.375 7.75 5.425C9 4.475 10.4167 4 12 4C13.95 4 15.604 4.679 16.962 6.037C18.3207 7.39567 19 9.05 19 11C20.15 11.1333 21.1043 11.629 21.863 12.487C22.621 13.3457 23 14.35 23 15.5C23 16.75 22.5627 17.8127 21.688 18.688C20.8127 19.5627 19.75 20 18.5 20H13V12.85L13.9 13.725C14.0833 13.9083 14.3127 14 14.588 14C14.8627 14 15.1 13.9 15.3 13.7C15.4833 13.5167 15.575 13.2833 15.575 13C15.575 12.7167 15.4833 12.4833 15.3 12.3L12.7 9.7C12.5 9.5 12.2667 9.4 12 9.4C11.7333 9.4 11.5 9.5 11.3 9.7L8.7 12.3C8.51667 12.4833 8.421 12.7123 8.413 12.987C8.40433 13.2623 8.5 13.5 8.7 13.7C8.88333 13.8833 9.11233 13.9793 9.387 13.988C9.66233 13.996 9.9 13.9083 10.1 13.725L11 12.85V20H6.5Z", fill: "currentColor" }))),
|
|
13
|
+
this.size === 28 && (h(Fragment, null,
|
|
14
|
+
h("path", { d: "M7.58333 23.3333C5.81389 23.3333 4.30227 22.7208 3.0485 21.4958C1.79394 20.2708 1.16666 18.7736 1.16666 17.0041C1.16666 15.4875 1.62361 14.1361 2.5375 12.95C3.45139 11.7638 4.64722 11.0055 6.125 10.675C6.61111 8.88607 7.58333 7.43746 9.04166 6.32913C10.5 5.22079 12.1528 4.66663 14 4.66663C16.275 4.66663 18.2047 5.45879 19.789 7.04313C21.3741 8.62824 22.1667 10.5583 22.1667 12.8333C23.5083 12.9888 24.6217 13.5671 25.5068 14.5681C26.3912 15.5699 26.8333 16.7416 26.8333 18.0833C26.8333 19.5416 26.3231 20.7814 25.3027 21.8026C24.2814 22.8231 23.0417 23.3333 21.5833 23.3333H15.1667V14.9916L16.2167 16.0125C16.4306 16.2263 16.6981 16.3333 17.0193 16.3333C17.3398 16.3333 17.6167 16.2166 17.85 15.9833C18.0639 15.7694 18.1708 15.4972 18.1708 15.1666C18.1708 14.8361 18.0639 14.5638 17.85 14.35L14.8167 11.3166C14.5833 11.0833 14.3111 10.9666 14 10.9666C13.6889 10.9666 13.4167 11.0833 13.1833 11.3166L10.15 14.35C9.93611 14.5638 9.8245 14.831 9.81516 15.1515C9.80505 15.4727 9.91666 15.75 10.15 15.9833C10.3639 16.1972 10.6311 16.3092 10.9515 16.3193C11.2727 16.3286 11.55 16.2263 11.7833 16.0125L12.8333 14.9916V23.3333H7.58333Z", fill: "currentColor" })))));
|
|
15
|
+
}
|
|
16
|
+
static get is() { return "flip-icon-cloud-upload"; }
|
|
17
|
+
static get encapsulation() { return "shadow"; }
|
|
18
|
+
static get originalStyleUrls() { return {
|
|
19
|
+
"$": ["../flip-icon.css"]
|
|
20
|
+
}; }
|
|
21
|
+
static get styleUrls() { return {
|
|
22
|
+
"$": ["../flip-icon.css"]
|
|
23
|
+
}; }
|
|
24
|
+
static get properties() { return {
|
|
25
|
+
"size": {
|
|
26
|
+
"type": "number",
|
|
27
|
+
"mutable": false,
|
|
28
|
+
"complexType": {
|
|
29
|
+
"original": "FlipIconSize",
|
|
30
|
+
"resolved": "16 | 24 | 28",
|
|
31
|
+
"references": {
|
|
32
|
+
"FlipIconSize": {
|
|
33
|
+
"location": "import",
|
|
34
|
+
"path": "../flip-icon.types"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"required": false,
|
|
39
|
+
"optional": false,
|
|
40
|
+
"docs": {
|
|
41
|
+
"tags": [],
|
|
42
|
+
"text": ""
|
|
43
|
+
},
|
|
44
|
+
"attribute": "size",
|
|
45
|
+
"reflect": false,
|
|
46
|
+
"defaultValue": "24"
|
|
47
|
+
}
|
|
48
|
+
}; }
|
|
49
|
+
}
|
|
@@ -104,7 +104,7 @@ export class FlipPopover {
|
|
|
104
104
|
}
|
|
105
105
|
connectTrigger() {
|
|
106
106
|
var _a;
|
|
107
|
-
const triggerComponent = document.
|
|
107
|
+
const triggerComponent = querySelectorAllDeep(document.body, `#${this.trigger}`)[0];
|
|
108
108
|
this.triggerEl = ((triggerComponent === null || triggerComponent === void 0 ? void 0 : triggerComponent.children[0]) ||
|
|
109
109
|
((_a = triggerComponent === null || triggerComponent === void 0 ? void 0 : triggerComponent.shadowRoot) === null || _a === void 0 ? void 0 : _a.children[0]) ||
|
|
110
110
|
triggerComponent);
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { Component, Element, h, Host, Prop } from "@stencil/core";
|
|
2
|
+
export class FlipResourceList {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.focusedIndex = 0;
|
|
5
|
+
this.onFocus = () => {
|
|
6
|
+
this.focusItemAtIndex(this.focusedIndex);
|
|
7
|
+
};
|
|
8
|
+
this.onKeyDown = (event) => {
|
|
9
|
+
if (event.key === "ArrowDown") {
|
|
10
|
+
event.preventDefault();
|
|
11
|
+
this.focusItemAtIndex((this.focusedIndex + 1) % this.items.length);
|
|
12
|
+
}
|
|
13
|
+
else if (event.key === "ArrowUp") {
|
|
14
|
+
event.preventDefault();
|
|
15
|
+
const prevIndex = this.focusedIndex === 0 ? this.items.length - 1 : this.focusedIndex - 1;
|
|
16
|
+
this.focusItemAtIndex(prevIndex);
|
|
17
|
+
}
|
|
18
|
+
else if (event.key === "Home") {
|
|
19
|
+
event.preventDefault();
|
|
20
|
+
this.focusItemAtIndex(0);
|
|
21
|
+
}
|
|
22
|
+
else if (event.key === "End") {
|
|
23
|
+
event.preventDefault();
|
|
24
|
+
this.focusItemAtIndex(this.items.length - 1);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
componentDidLoad() {
|
|
29
|
+
this.collectItems();
|
|
30
|
+
this.removeItemsFromTabOrder();
|
|
31
|
+
}
|
|
32
|
+
collectItems() {
|
|
33
|
+
this.items = Array.from(this.el.querySelectorAll("flip-resource-list-item, flip-resource-list-file-item"));
|
|
34
|
+
}
|
|
35
|
+
removeItemsFromTabOrder() {
|
|
36
|
+
this.items.forEach((item) => {
|
|
37
|
+
var _a, _b;
|
|
38
|
+
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");
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
focusItemAtIndex(index) {
|
|
42
|
+
this.removeItemsFromTabOrder();
|
|
43
|
+
const item = this.items[index];
|
|
44
|
+
if (!Boolean(item)) {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
const interactiveElement = item.shadowRoot.querySelector(".resource-list-item__content, .resource-list-file-item");
|
|
48
|
+
interactiveElement.setAttribute("tabIndex", "0");
|
|
49
|
+
interactiveElement.focus();
|
|
50
|
+
this.focusedIndex = index;
|
|
51
|
+
}
|
|
52
|
+
render() {
|
|
53
|
+
return (h(Host, { onKeyDown: this.onKeyDown },
|
|
54
|
+
h("flip-stack", { "aria-label": this.label, onFocus: this.onFocus, role: "grid", tabIndex: 0 },
|
|
55
|
+
h("slot", null))));
|
|
56
|
+
}
|
|
57
|
+
static get is() { return "flip-resource-list"; }
|
|
58
|
+
static get encapsulation() { return "shadow"; }
|
|
59
|
+
static get originalStyleUrls() { return {
|
|
60
|
+
"$": ["flip-resource-list.css"]
|
|
61
|
+
}; }
|
|
62
|
+
static get styleUrls() { return {
|
|
63
|
+
"$": ["flip-resource-list.css"]
|
|
64
|
+
}; }
|
|
65
|
+
static get properties() { return {
|
|
66
|
+
"label": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"mutable": false,
|
|
69
|
+
"complexType": {
|
|
70
|
+
"original": "string",
|
|
71
|
+
"resolved": "string",
|
|
72
|
+
"references": {}
|
|
73
|
+
},
|
|
74
|
+
"required": false,
|
|
75
|
+
"optional": true,
|
|
76
|
+
"docs": {
|
|
77
|
+
"tags": [],
|
|
78
|
+
"text": ""
|
|
79
|
+
},
|
|
80
|
+
"attribute": "label",
|
|
81
|
+
"reflect": false
|
|
82
|
+
}
|
|
83
|
+
}; }
|
|
84
|
+
static get elementRef() { return "el"; }
|
|
85
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { generateStoryElement } from "../../utils";
|
|
2
|
+
import Docs from "./flip-resource-list.mdx";
|
|
3
|
+
export default {
|
|
4
|
+
component: "flip-resource-list",
|
|
5
|
+
parameters: {
|
|
6
|
+
docs: {
|
|
7
|
+
page: Docs,
|
|
8
|
+
},
|
|
9
|
+
},
|
|
10
|
+
title: "Components/FlipResourceList",
|
|
11
|
+
};
|
|
12
|
+
const Template = (args) => {
|
|
13
|
+
const element = generateStoryElement("flip-resource-list", args);
|
|
14
|
+
element.innerHTML = `
|
|
15
|
+
<flip-resource-list-item
|
|
16
|
+
description="With a description"
|
|
17
|
+
label="This is a resource item"
|
|
18
|
+
media="<flip-avatar label="John Doe" src="https://picsum.photos/id/433/144/144"></flip-avatar>"
|
|
19
|
+
></flip-resource-list-item>
|
|
20
|
+
<flip-resource-list-item
|
|
21
|
+
description="With a description"
|
|
22
|
+
label="This is a resource item"
|
|
23
|
+
media="<flip-avatar label="John Doe" src="https://picsum.photos/id/103/144/144"></flip-avatar>"
|
|
24
|
+
></flip-resource-list-item>
|
|
25
|
+
<flip-resource-list-item
|
|
26
|
+
description="With a description"
|
|
27
|
+
label="This is a resource item"
|
|
28
|
+
media="<flip-avatar label="John Doe" src="https://picsum.photos/id/1027/144/144"></flip-avatar>"
|
|
29
|
+
></flip-resource-list-item>
|
|
30
|
+
`;
|
|
31
|
+
return element;
|
|
32
|
+
};
|
|
33
|
+
export const FlipResourceList = Template.bind({});
|
|
34
|
+
FlipResourceList.args = {
|
|
35
|
+
label: "A resource list",
|
|
36
|
+
};
|
package/dist/collection/components/flip-resource-list-file-item/flip-resource-list-file-item.css
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
width: 100%;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
:host * {
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.resource-list-file-item {
|
|
11
|
+
position: relative;
|
|
12
|
+
display: flex;
|
|
13
|
+
width: 100%;
|
|
14
|
+
padding: var(--s-space-12) var(--s-space-16);
|
|
15
|
+
align-items: center;
|
|
16
|
+
background-color: var(--s-background-default);
|
|
17
|
+
line-height: var(--s-line-height-base);
|
|
18
|
+
gap: var(--s-space-12);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.resource-list-file-item:focus {
|
|
22
|
+
background-color: var(--s-background-hovered);
|
|
23
|
+
outline: none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.resource-list-file-item--has-control .resource-list-file-item__label-container {
|
|
27
|
+
padding-right: calc(var(--s-space-12) + 2.5rem);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.resource-list-file-item__icon {
|
|
31
|
+
color: var(--s-icon-highlight);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.resource-list-file-item__label-container {
|
|
35
|
+
position: relative;
|
|
36
|
+
display: flex;
|
|
37
|
+
min-width: 0;
|
|
38
|
+
min-height: 2.875rem;
|
|
39
|
+
flex-grow: 1;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
flex-direction: column;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.resource-list-file-item__label-container:after {
|
|
45
|
+
position: absolute;
|
|
46
|
+
right: 0;
|
|
47
|
+
bottom: calc(-1 * var(--s-space-12) + 0.0625rem);
|
|
48
|
+
left: 0;
|
|
49
|
+
height: 0.0625rem;
|
|
50
|
+
background-color: var(--s-border-default);
|
|
51
|
+
content: "";
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.resource-list-file-item__label {
|
|
55
|
+
overflow: hidden;
|
|
56
|
+
font-weight: var(--s-font-weight-medium);
|
|
57
|
+
white-space: nowrap;
|
|
58
|
+
text-overflow: ellipsis;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.resource-list-file-item__description {
|
|
62
|
+
overflow: hidden;
|
|
63
|
+
margin-top: var(--s-space-2);
|
|
64
|
+
color: var(--s-text-subdued);
|
|
65
|
+
font-size: var(--s-font-size-sm);
|
|
66
|
+
line-height: var(--s-line-height-sm);
|
|
67
|
+
white-space: nowrap;
|
|
68
|
+
text-overflow: ellipsis;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.resource-list-file-item__error-message {
|
|
72
|
+
margin-top: var(--s-space-2);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.resource-list-file-item__remove-button {
|
|
76
|
+
position: absolute;
|
|
77
|
+
top: 50%;
|
|
78
|
+
right: var(--s-space-16);
|
|
79
|
+
display: inline-flex;
|
|
80
|
+
transform: translateY(-50%);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.resource-list-file-item__spinner {
|
|
84
|
+
position: absolute;
|
|
85
|
+
top: 50%;
|
|
86
|
+
right: var(--s-space-24);
|
|
87
|
+
display: inline-flex;
|
|
88
|
+
transform: translateY(-50%);
|
|
89
|
+
}
|
package/dist/collection/components/flip-resource-list-file-item/flip-resource-list-file-item.js
ADDED
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { Component, Event, h, Host, Prop } from "@stencil/core";
|
|
2
|
+
import classnames from "classnames";
|
|
3
|
+
export class FlipResourceListFileItem {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.icon = "<flip-icon-file></flip-icon-file>";
|
|
6
|
+
this.removeButtonLabel = "Remove file";
|
|
7
|
+
}
|
|
8
|
+
render() {
|
|
9
|
+
const showError = Boolean(this.errorMessage);
|
|
10
|
+
const showDescription = !showError && Boolean(this.description);
|
|
11
|
+
const showSpinner = !showError && this.loading;
|
|
12
|
+
const showRemoveButton = this.removable && !showSpinner;
|
|
13
|
+
const className = classnames("resource-list-file-item", {
|
|
14
|
+
"resource-list-file-item--has-control": showSpinner || showRemoveButton,
|
|
15
|
+
});
|
|
16
|
+
return (h(Host, { role: "row" },
|
|
17
|
+
h("div", { class: className, role: "gridcell" },
|
|
18
|
+
h("span", { class: "resource-list-file-item__icon", innerHTML: this.icon }),
|
|
19
|
+
h("span", { class: "resource-list-file-item__label-container" },
|
|
20
|
+
h("span", { class: "resource-list-file-item__label", id: "label" }, this.label),
|
|
21
|
+
showDescription && (h("span", { class: "resource-list-file-item__description" }, this.description)),
|
|
22
|
+
showError && (h("span", { "aria-live": "polite", class: "resource-list-file-item__error-message" },
|
|
23
|
+
h("flip-inline-error", { message: this.errorMessage, size: "s" })))),
|
|
24
|
+
showSpinner && (h("span", { class: "resource-list-file-item__spinner" },
|
|
25
|
+
h("flip-spinner", { size: "s" }))),
|
|
26
|
+
showRemoveButton && (h("span", { class: "resource-list-file-item__remove-button" },
|
|
27
|
+
h("flip-button", { hideLabel: true, icon: "<flip-icon-close></flip-icon-close>", label: this.removeButtonLabel, onClick: this.remove.emit }))))));
|
|
28
|
+
}
|
|
29
|
+
static get is() { return "flip-resource-list-file-item"; }
|
|
30
|
+
static get encapsulation() { return "shadow"; }
|
|
31
|
+
static get originalStyleUrls() { return {
|
|
32
|
+
"$": ["flip-resource-list-file-item.css"]
|
|
33
|
+
}; }
|
|
34
|
+
static get styleUrls() { return {
|
|
35
|
+
"$": ["flip-resource-list-file-item.css"]
|
|
36
|
+
}; }
|
|
37
|
+
static get properties() { return {
|
|
38
|
+
"description": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"mutable": false,
|
|
41
|
+
"complexType": {
|
|
42
|
+
"original": "string",
|
|
43
|
+
"resolved": "string",
|
|
44
|
+
"references": {}
|
|
45
|
+
},
|
|
46
|
+
"required": false,
|
|
47
|
+
"optional": true,
|
|
48
|
+
"docs": {
|
|
49
|
+
"tags": [],
|
|
50
|
+
"text": ""
|
|
51
|
+
},
|
|
52
|
+
"attribute": "description",
|
|
53
|
+
"reflect": false
|
|
54
|
+
},
|
|
55
|
+
"errorMessage": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"mutable": false,
|
|
58
|
+
"complexType": {
|
|
59
|
+
"original": "string",
|
|
60
|
+
"resolved": "string",
|
|
61
|
+
"references": {}
|
|
62
|
+
},
|
|
63
|
+
"required": false,
|
|
64
|
+
"optional": true,
|
|
65
|
+
"docs": {
|
|
66
|
+
"tags": [],
|
|
67
|
+
"text": ""
|
|
68
|
+
},
|
|
69
|
+
"attribute": "error-message",
|
|
70
|
+
"reflect": false
|
|
71
|
+
},
|
|
72
|
+
"icon": {
|
|
73
|
+
"type": "string",
|
|
74
|
+
"mutable": false,
|
|
75
|
+
"complexType": {
|
|
76
|
+
"original": "string",
|
|
77
|
+
"resolved": "string",
|
|
78
|
+
"references": {}
|
|
79
|
+
},
|
|
80
|
+
"required": false,
|
|
81
|
+
"optional": true,
|
|
82
|
+
"docs": {
|
|
83
|
+
"tags": [],
|
|
84
|
+
"text": ""
|
|
85
|
+
},
|
|
86
|
+
"attribute": "icon",
|
|
87
|
+
"reflect": false,
|
|
88
|
+
"defaultValue": "\"<flip-icon-file></flip-icon-file>\""
|
|
89
|
+
},
|
|
90
|
+
"label": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"mutable": false,
|
|
93
|
+
"complexType": {
|
|
94
|
+
"original": "string",
|
|
95
|
+
"resolved": "string",
|
|
96
|
+
"references": {}
|
|
97
|
+
},
|
|
98
|
+
"required": true,
|
|
99
|
+
"optional": false,
|
|
100
|
+
"docs": {
|
|
101
|
+
"tags": [],
|
|
102
|
+
"text": ""
|
|
103
|
+
},
|
|
104
|
+
"attribute": "label",
|
|
105
|
+
"reflect": false
|
|
106
|
+
},
|
|
107
|
+
"loading": {
|
|
108
|
+
"type": "boolean",
|
|
109
|
+
"mutable": false,
|
|
110
|
+
"complexType": {
|
|
111
|
+
"original": "boolean",
|
|
112
|
+
"resolved": "boolean",
|
|
113
|
+
"references": {}
|
|
114
|
+
},
|
|
115
|
+
"required": false,
|
|
116
|
+
"optional": false,
|
|
117
|
+
"docs": {
|
|
118
|
+
"tags": [],
|
|
119
|
+
"text": ""
|
|
120
|
+
},
|
|
121
|
+
"attribute": "loading",
|
|
122
|
+
"reflect": false
|
|
123
|
+
},
|
|
124
|
+
"removable": {
|
|
125
|
+
"type": "boolean",
|
|
126
|
+
"mutable": false,
|
|
127
|
+
"complexType": {
|
|
128
|
+
"original": "boolean",
|
|
129
|
+
"resolved": "boolean",
|
|
130
|
+
"references": {}
|
|
131
|
+
},
|
|
132
|
+
"required": false,
|
|
133
|
+
"optional": true,
|
|
134
|
+
"docs": {
|
|
135
|
+
"tags": [],
|
|
136
|
+
"text": ""
|
|
137
|
+
},
|
|
138
|
+
"attribute": "removable",
|
|
139
|
+
"reflect": false
|
|
140
|
+
},
|
|
141
|
+
"removeButtonLabel": {
|
|
142
|
+
"type": "string",
|
|
143
|
+
"mutable": false,
|
|
144
|
+
"complexType": {
|
|
145
|
+
"original": "string",
|
|
146
|
+
"resolved": "string",
|
|
147
|
+
"references": {}
|
|
148
|
+
},
|
|
149
|
+
"required": false,
|
|
150
|
+
"optional": true,
|
|
151
|
+
"docs": {
|
|
152
|
+
"tags": [],
|
|
153
|
+
"text": ""
|
|
154
|
+
},
|
|
155
|
+
"attribute": "remove-button-label",
|
|
156
|
+
"reflect": false,
|
|
157
|
+
"defaultValue": "\"Remove file\""
|
|
158
|
+
}
|
|
159
|
+
}; }
|
|
160
|
+
static get events() { return [{
|
|
161
|
+
"method": "remove",
|
|
162
|
+
"name": "remove",
|
|
163
|
+
"bubbles": true,
|
|
164
|
+
"cancelable": true,
|
|
165
|
+
"composed": true,
|
|
166
|
+
"docs": {
|
|
167
|
+
"tags": [],
|
|
168
|
+
"text": ""
|
|
169
|
+
},
|
|
170
|
+
"complexType": {
|
|
171
|
+
"original": "MouseEvent",
|
|
172
|
+
"resolved": "MouseEvent",
|
|
173
|
+
"references": {
|
|
174
|
+
"MouseEvent": {
|
|
175
|
+
"location": "global"
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}]; }
|
|
180
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { generateStoryElement } from "../../utils";
|
|
2
|
+
import Docs from "./flip-resource-list-file-item.mdx";
|
|
3
|
+
export default {
|
|
4
|
+
argTypes: {
|
|
5
|
+
icon: {
|
|
6
|
+
table: {
|
|
7
|
+
type: {
|
|
8
|
+
detail: "e.g. <flip-icon-file></flip-icon-file>",
|
|
9
|
+
summary: "flip-icon-*",
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
component: "flip-resource-list-file-item",
|
|
15
|
+
parameters: {
|
|
16
|
+
docs: {
|
|
17
|
+
page: Docs,
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
title: "Components/FlipResourceListFileItem",
|
|
21
|
+
};
|
|
22
|
+
const Template = (args) => {
|
|
23
|
+
const container = document.createElement("div");
|
|
24
|
+
const element = generateStoryElement("flip-resource-list-file-item", args);
|
|
25
|
+
container.setAttribute("aria-label", "List");
|
|
26
|
+
container.setAttribute("role", "grid");
|
|
27
|
+
container.append("\n ", element, "\n");
|
|
28
|
+
return container;
|
|
29
|
+
};
|
|
30
|
+
export const FlipResourceListFileItem = Template.bind({});
|
|
31
|
+
FlipResourceListFileItem.args = {
|
|
32
|
+
description: "12MB",
|
|
33
|
+
label: "Design_final-final-12.png",
|
|
34
|
+
removable: true,
|
|
35
|
+
};
|