@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,195 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
width: 100%;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
:host * {
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.resource-list-item {
|
|
11
|
+
position: relative;
|
|
12
|
+
width: 100%;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.resource-list-item--checked .resource-list-item__checkbox {
|
|
16
|
+
border-color: var(--s-icon-highlight);
|
|
17
|
+
color: var(--s-text-on-status);
|
|
18
|
+
background-color: var(--s-icon-highlight);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.resource-list-item--has-menu .resource-list-item__label-container {
|
|
22
|
+
padding-right: calc(var(--s-space-16) + 2.5rem + var(--s-space-12));
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@media (--from-tablet) {
|
|
26
|
+
|
|
27
|
+
.resource-list-item--selectable .resource-list-item__content {
|
|
28
|
+
padding-left: calc(var(--s-space-16) + 1.5rem + var(--s-space-12))
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.resource-list-item--selectable .resource-list-item__label-container {
|
|
33
|
+
padding-right: calc(var(--s-space-16) + 1.5rem + var(--s-space-12));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@media (--from-tablet) {
|
|
37
|
+
|
|
38
|
+
.resource-list-item--selectable .resource-list-item__label-container {
|
|
39
|
+
padding-right: var(--s-space-16)
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.resource-list-item--hide-divider .resource-list-item__label-container:after {
|
|
44
|
+
display: none;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.resource-list-item__content {
|
|
48
|
+
--flip-avatar-group-border-color: var(--s-background-default);
|
|
49
|
+
--flip-badge-border-color: var(--s-background-default);
|
|
50
|
+
|
|
51
|
+
display: flex;
|
|
52
|
+
width: 100%;
|
|
53
|
+
padding-top: var(--s-space-12);
|
|
54
|
+
padding-right: 0;
|
|
55
|
+
padding-bottom: var(--s-space-12);
|
|
56
|
+
padding-left: var(--s-space-16);
|
|
57
|
+
align-items: center;
|
|
58
|
+
border: none;
|
|
59
|
+
color: var(--s-text-default);
|
|
60
|
+
background-color: var(--s-background-default);
|
|
61
|
+
font: inherit;
|
|
62
|
+
line-height: var(--s-line-height-base);
|
|
63
|
+
text-align: left;
|
|
64
|
+
text-decoration: none;
|
|
65
|
+
cursor: pointer;
|
|
66
|
+
gap: var(--s-space-12);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.resource-list-item__content:hover:not(:disabled) {
|
|
70
|
+
background-color: var(--s-background-hovered);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.resource-list-item__content:hover:not(:disabled) .resource-list-item__media {
|
|
74
|
+
--flip-avatar-group-border-color: var(--s-background-hovered);
|
|
75
|
+
--flip-badge-border-color: var(--s-background-hovered);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.resource-list-item__content:active:not(:disabled) {
|
|
79
|
+
background-color: var(--s-background-pressed);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.resource-list-item__content:active:not(:disabled) .resource-list-item__media {
|
|
83
|
+
--flip-avatar-group-border-color: var(--s-background-pressed);
|
|
84
|
+
--flip-badge-border-color: var(--s-background-pressed);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.resource-list-item__content:focus {
|
|
88
|
+
background-color: var(--s-background-hovered);
|
|
89
|
+
outline: none;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.resource-list-item__content:focus .resource-list-item__media {
|
|
93
|
+
--flip-avatar-group-border-color: var(--s-background-hovered);
|
|
94
|
+
--flip-badge-border-color: var(--s-background-hovered);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.resource-list-item__content:disabled {
|
|
98
|
+
color: var(--s-text-disabled);
|
|
99
|
+
background-color: var(--s-background-default);
|
|
100
|
+
cursor: default;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.resource-list-item__content:disabled .resource-list-item__description {
|
|
104
|
+
color: var(--s-text-disabled);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.resource-list-item__media {
|
|
108
|
+
display: inline-flex;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.resource-list-item__label-container {
|
|
112
|
+
position: relative;
|
|
113
|
+
display: flex;
|
|
114
|
+
min-width: 0;
|
|
115
|
+
min-height: 2.875rem;
|
|
116
|
+
padding-right: var(--s-space-16);
|
|
117
|
+
flex-grow: 1;
|
|
118
|
+
justify-content: center;
|
|
119
|
+
flex-direction: column;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.resource-list-item__label-container:after {
|
|
123
|
+
position: absolute;
|
|
124
|
+
right: 0;
|
|
125
|
+
bottom: calc(-1 * var(--s-space-12) + 0.0625rem);
|
|
126
|
+
left: 0;
|
|
127
|
+
height: 0.0625rem;
|
|
128
|
+
background-color: var(--s-border-default);
|
|
129
|
+
content: "";
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.resource-list-item__label {
|
|
133
|
+
overflow: hidden;
|
|
134
|
+
font-weight: var(--s-font-weight-medium);
|
|
135
|
+
white-space: nowrap;
|
|
136
|
+
text-overflow: ellipsis;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.resource-list-item__description {
|
|
140
|
+
overflow: hidden;
|
|
141
|
+
margin-top: var(--s-space-2);
|
|
142
|
+
color: var(--s-text-subdued);
|
|
143
|
+
font-size: var(--s-font-size-sm);
|
|
144
|
+
line-height: var(--s-line-height-sm);
|
|
145
|
+
white-space: nowrap;
|
|
146
|
+
text-overflow: ellipsis;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.resource-list-item__menu-trigger {
|
|
150
|
+
position: absolute;
|
|
151
|
+
top: 50%;
|
|
152
|
+
right: var(--s-space-16);
|
|
153
|
+
transform: translateY(-50%);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.resource-list-item__checkbox {
|
|
157
|
+
position: absolute;
|
|
158
|
+
top: 50%;
|
|
159
|
+
right: var(--s-space-16);
|
|
160
|
+
display: flex;
|
|
161
|
+
width: 1.25rem;
|
|
162
|
+
height: 1.25rem;
|
|
163
|
+
justify-content: center;
|
|
164
|
+
align-items: center;
|
|
165
|
+
border: 0.125rem solid var(--s-icon-default);
|
|
166
|
+
border-radius: var(--s-border-radius-s);
|
|
167
|
+
transform: translateY(-50%);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
@media (--from-tablet) {
|
|
171
|
+
|
|
172
|
+
.resource-list-item__checkbox {
|
|
173
|
+
right: auto;
|
|
174
|
+
left: var(--s-space-16)
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.resource-list-item__checkbox-icon {
|
|
179
|
+
display: inline-flex;
|
|
180
|
+
width: 1.0625rem;
|
|
181
|
+
height: 1.0625rem;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.resource-list-item__checkbox-icon > *::part(icon) {
|
|
185
|
+
width: 1.0625rem;
|
|
186
|
+
height: 1.0625rem;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.resource-list-item__meta {
|
|
190
|
+
position: absolute;
|
|
191
|
+
top: calc(var(--s-space-12) + var(--s-space-4));
|
|
192
|
+
right: var(--s-space-16);
|
|
193
|
+
color: var(--s-text-subdued);
|
|
194
|
+
font-size: var(--s-font-size-sm);
|
|
195
|
+
}
|
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
import { Component, Element, Event, h, Host, Prop, } from "@stencil/core";
|
|
2
|
+
import classnames from "classnames";
|
|
3
|
+
export class FlipResourceListItem {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.checked = false;
|
|
6
|
+
this.menuTriggerLabel = "Options";
|
|
7
|
+
this.onClick = () => {
|
|
8
|
+
if (!this.selectable) {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
this.checked = !this.checked;
|
|
12
|
+
this.valueChange.emit(this.checked);
|
|
13
|
+
};
|
|
14
|
+
this.onMenuTriggerClick = (event) => {
|
|
15
|
+
if (this.disabled && !Boolean(this.href)) {
|
|
16
|
+
event.stopPropagation();
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
componentDidLoad() {
|
|
21
|
+
this.forceAvatarProps();
|
|
22
|
+
this.forceThumbnailProps();
|
|
23
|
+
}
|
|
24
|
+
forceAvatarProps() {
|
|
25
|
+
const avatarEl = this.el.querySelector("flip-avatar");
|
|
26
|
+
if (!Boolean(avatarEl)) {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
avatarEl.removeAttribute("interactive");
|
|
30
|
+
avatarEl.removeAttribute("show-label");
|
|
31
|
+
avatarEl.removeAttribute("variant");
|
|
32
|
+
avatarEl.setAttribute("size", "l");
|
|
33
|
+
}
|
|
34
|
+
forceThumbnailProps() {
|
|
35
|
+
const thumbnailEl = this.el.querySelector("flip-thumbnail");
|
|
36
|
+
if (!Boolean(thumbnailEl)) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
thumbnailEl.setAttribute("format", "landscape");
|
|
40
|
+
if (!["s", "m"].includes(thumbnailEl.getAttribute("size"))) {
|
|
41
|
+
thumbnailEl.setAttribute("size", "m");
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
render() {
|
|
45
|
+
const Tag = Boolean(this.href) && !this.selectable ? "a" : "button";
|
|
46
|
+
const disabled = this.disabled && !Boolean(this.href);
|
|
47
|
+
const hasMenu = Boolean(this.menuTriggerId);
|
|
48
|
+
const showMenu = hasMenu && !Boolean(this.meta) && !this.selectable;
|
|
49
|
+
const showMeta = Boolean(this.meta) && !this.selectable;
|
|
50
|
+
const ariaChecked = this.selectable ? String(this.checked) : undefined;
|
|
51
|
+
const role = this.selectable ? "checkbox" : undefined;
|
|
52
|
+
const className = classnames("resource-list-item", {
|
|
53
|
+
"resource-list-item--checked": this.checked,
|
|
54
|
+
"resource-list-item--has-menu": hasMenu,
|
|
55
|
+
"resource-list-item--hide-divider": this.hideDivider,
|
|
56
|
+
"resource-list-item--selectable": this.selectable,
|
|
57
|
+
});
|
|
58
|
+
return (h(Host, { role: "row" },
|
|
59
|
+
h("div", { class: className, role: "gridcell" },
|
|
60
|
+
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 },
|
|
61
|
+
Boolean(this.media) && (h("span", { class: "resource-list-item__media", innerHTML: this.media })),
|
|
62
|
+
h("span", { class: "resource-list-item__label-container" },
|
|
63
|
+
h("span", { class: "resource-list-item__label", id: "label" }, this.label),
|
|
64
|
+
this.description && (h("span", { class: "resource-list-item__description" }, this.description)))),
|
|
65
|
+
this.selectable && (h("span", { "aria-hidden": "true", class: "resource-list-item__checkbox" },
|
|
66
|
+
h("span", { class: "resource-list-item__checkbox-icon" }, this.checked && (h("flip-icon-check-strong", null))))),
|
|
67
|
+
showMeta && (h("span", { class: "resource-list-item__meta" }, this.meta)),
|
|
68
|
+
showMenu && (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 })))));
|
|
69
|
+
}
|
|
70
|
+
static get is() { return "flip-resource-list-item"; }
|
|
71
|
+
static get encapsulation() { return "shadow"; }
|
|
72
|
+
static get originalStyleUrls() { return {
|
|
73
|
+
"$": ["flip-resource-list-item.css"]
|
|
74
|
+
}; }
|
|
75
|
+
static get styleUrls() { return {
|
|
76
|
+
"$": ["flip-resource-list-item.css"]
|
|
77
|
+
}; }
|
|
78
|
+
static get properties() { return {
|
|
79
|
+
"checked": {
|
|
80
|
+
"type": "boolean",
|
|
81
|
+
"mutable": true,
|
|
82
|
+
"complexType": {
|
|
83
|
+
"original": "boolean",
|
|
84
|
+
"resolved": "boolean",
|
|
85
|
+
"references": {}
|
|
86
|
+
},
|
|
87
|
+
"required": false,
|
|
88
|
+
"optional": true,
|
|
89
|
+
"docs": {
|
|
90
|
+
"tags": [],
|
|
91
|
+
"text": ""
|
|
92
|
+
},
|
|
93
|
+
"attribute": "checked",
|
|
94
|
+
"reflect": false,
|
|
95
|
+
"defaultValue": "false"
|
|
96
|
+
},
|
|
97
|
+
"description": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"mutable": false,
|
|
100
|
+
"complexType": {
|
|
101
|
+
"original": "string",
|
|
102
|
+
"resolved": "string",
|
|
103
|
+
"references": {}
|
|
104
|
+
},
|
|
105
|
+
"required": false,
|
|
106
|
+
"optional": true,
|
|
107
|
+
"docs": {
|
|
108
|
+
"tags": [],
|
|
109
|
+
"text": ""
|
|
110
|
+
},
|
|
111
|
+
"attribute": "description",
|
|
112
|
+
"reflect": false
|
|
113
|
+
},
|
|
114
|
+
"disabled": {
|
|
115
|
+
"type": "boolean",
|
|
116
|
+
"mutable": false,
|
|
117
|
+
"complexType": {
|
|
118
|
+
"original": "boolean",
|
|
119
|
+
"resolved": "boolean",
|
|
120
|
+
"references": {}
|
|
121
|
+
},
|
|
122
|
+
"required": false,
|
|
123
|
+
"optional": true,
|
|
124
|
+
"docs": {
|
|
125
|
+
"tags": [],
|
|
126
|
+
"text": ""
|
|
127
|
+
},
|
|
128
|
+
"attribute": "disabled",
|
|
129
|
+
"reflect": false
|
|
130
|
+
},
|
|
131
|
+
"hideDivider": {
|
|
132
|
+
"type": "boolean",
|
|
133
|
+
"mutable": false,
|
|
134
|
+
"complexType": {
|
|
135
|
+
"original": "boolean",
|
|
136
|
+
"resolved": "boolean",
|
|
137
|
+
"references": {}
|
|
138
|
+
},
|
|
139
|
+
"required": false,
|
|
140
|
+
"optional": true,
|
|
141
|
+
"docs": {
|
|
142
|
+
"tags": [],
|
|
143
|
+
"text": ""
|
|
144
|
+
},
|
|
145
|
+
"attribute": "hide-divider",
|
|
146
|
+
"reflect": false
|
|
147
|
+
},
|
|
148
|
+
"href": {
|
|
149
|
+
"type": "string",
|
|
150
|
+
"mutable": false,
|
|
151
|
+
"complexType": {
|
|
152
|
+
"original": "string",
|
|
153
|
+
"resolved": "string",
|
|
154
|
+
"references": {}
|
|
155
|
+
},
|
|
156
|
+
"required": false,
|
|
157
|
+
"optional": true,
|
|
158
|
+
"docs": {
|
|
159
|
+
"tags": [],
|
|
160
|
+
"text": ""
|
|
161
|
+
},
|
|
162
|
+
"attribute": "href",
|
|
163
|
+
"reflect": false
|
|
164
|
+
},
|
|
165
|
+
"label": {
|
|
166
|
+
"type": "string",
|
|
167
|
+
"mutable": false,
|
|
168
|
+
"complexType": {
|
|
169
|
+
"original": "string",
|
|
170
|
+
"resolved": "string",
|
|
171
|
+
"references": {}
|
|
172
|
+
},
|
|
173
|
+
"required": true,
|
|
174
|
+
"optional": false,
|
|
175
|
+
"docs": {
|
|
176
|
+
"tags": [],
|
|
177
|
+
"text": ""
|
|
178
|
+
},
|
|
179
|
+
"attribute": "label",
|
|
180
|
+
"reflect": false
|
|
181
|
+
},
|
|
182
|
+
"media": {
|
|
183
|
+
"type": "string",
|
|
184
|
+
"mutable": false,
|
|
185
|
+
"complexType": {
|
|
186
|
+
"original": "string",
|
|
187
|
+
"resolved": "string",
|
|
188
|
+
"references": {}
|
|
189
|
+
},
|
|
190
|
+
"required": false,
|
|
191
|
+
"optional": true,
|
|
192
|
+
"docs": {
|
|
193
|
+
"tags": [],
|
|
194
|
+
"text": ""
|
|
195
|
+
},
|
|
196
|
+
"attribute": "media",
|
|
197
|
+
"reflect": false
|
|
198
|
+
},
|
|
199
|
+
"menuTriggerId": {
|
|
200
|
+
"type": "string",
|
|
201
|
+
"mutable": false,
|
|
202
|
+
"complexType": {
|
|
203
|
+
"original": "string",
|
|
204
|
+
"resolved": "string",
|
|
205
|
+
"references": {}
|
|
206
|
+
},
|
|
207
|
+
"required": false,
|
|
208
|
+
"optional": true,
|
|
209
|
+
"docs": {
|
|
210
|
+
"tags": [],
|
|
211
|
+
"text": ""
|
|
212
|
+
},
|
|
213
|
+
"attribute": "menu-trigger-id",
|
|
214
|
+
"reflect": false
|
|
215
|
+
},
|
|
216
|
+
"menuTriggerLabel": {
|
|
217
|
+
"type": "string",
|
|
218
|
+
"mutable": false,
|
|
219
|
+
"complexType": {
|
|
220
|
+
"original": "string",
|
|
221
|
+
"resolved": "string",
|
|
222
|
+
"references": {}
|
|
223
|
+
},
|
|
224
|
+
"required": false,
|
|
225
|
+
"optional": true,
|
|
226
|
+
"docs": {
|
|
227
|
+
"tags": [],
|
|
228
|
+
"text": ""
|
|
229
|
+
},
|
|
230
|
+
"attribute": "menu-trigger-label",
|
|
231
|
+
"reflect": false,
|
|
232
|
+
"defaultValue": "\"Options\""
|
|
233
|
+
},
|
|
234
|
+
"meta": {
|
|
235
|
+
"type": "string",
|
|
236
|
+
"mutable": false,
|
|
237
|
+
"complexType": {
|
|
238
|
+
"original": "string",
|
|
239
|
+
"resolved": "string",
|
|
240
|
+
"references": {}
|
|
241
|
+
},
|
|
242
|
+
"required": false,
|
|
243
|
+
"optional": true,
|
|
244
|
+
"docs": {
|
|
245
|
+
"tags": [],
|
|
246
|
+
"text": ""
|
|
247
|
+
},
|
|
248
|
+
"attribute": "meta",
|
|
249
|
+
"reflect": false
|
|
250
|
+
},
|
|
251
|
+
"selectable": {
|
|
252
|
+
"type": "boolean",
|
|
253
|
+
"mutable": false,
|
|
254
|
+
"complexType": {
|
|
255
|
+
"original": "boolean",
|
|
256
|
+
"resolved": "boolean",
|
|
257
|
+
"references": {}
|
|
258
|
+
},
|
|
259
|
+
"required": false,
|
|
260
|
+
"optional": true,
|
|
261
|
+
"docs": {
|
|
262
|
+
"tags": [],
|
|
263
|
+
"text": ""
|
|
264
|
+
},
|
|
265
|
+
"attribute": "selectable",
|
|
266
|
+
"reflect": false
|
|
267
|
+
},
|
|
268
|
+
"value": {
|
|
269
|
+
"type": "string",
|
|
270
|
+
"mutable": false,
|
|
271
|
+
"complexType": {
|
|
272
|
+
"original": "string",
|
|
273
|
+
"resolved": "string",
|
|
274
|
+
"references": {}
|
|
275
|
+
},
|
|
276
|
+
"required": false,
|
|
277
|
+
"optional": true,
|
|
278
|
+
"docs": {
|
|
279
|
+
"tags": [],
|
|
280
|
+
"text": ""
|
|
281
|
+
},
|
|
282
|
+
"attribute": "value",
|
|
283
|
+
"reflect": false
|
|
284
|
+
}
|
|
285
|
+
}; }
|
|
286
|
+
static get events() { return [{
|
|
287
|
+
"method": "valueChange",
|
|
288
|
+
"name": "valueChange",
|
|
289
|
+
"bubbles": true,
|
|
290
|
+
"cancelable": true,
|
|
291
|
+
"composed": true,
|
|
292
|
+
"docs": {
|
|
293
|
+
"tags": [],
|
|
294
|
+
"text": ""
|
|
295
|
+
},
|
|
296
|
+
"complexType": {
|
|
297
|
+
"original": "boolean",
|
|
298
|
+
"resolved": "boolean",
|
|
299
|
+
"references": {}
|
|
300
|
+
}
|
|
301
|
+
}]; }
|
|
302
|
+
static get elementRef() { return "el"; }
|
|
303
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { generateStoryElement } from "../../utils";
|
|
2
|
+
import Docs from "./flip-resource-list-item.mdx";
|
|
3
|
+
export default {
|
|
4
|
+
component: "flip-resource-list-item",
|
|
5
|
+
parameters: {
|
|
6
|
+
docs: {
|
|
7
|
+
page: Docs,
|
|
8
|
+
source: {
|
|
9
|
+
code: `<flip-resource-list-item
|
|
10
|
+
description="With a description"
|
|
11
|
+
label="This is a resource item"
|
|
12
|
+
media="<flip-avatar label="John Doe" src="https://picsum.photos/id/433/144/144"></flip-avatar>"
|
|
13
|
+
menu-trigger-id="trigger"
|
|
14
|
+
>
|
|
15
|
+
</flip-resource-list-item>
|
|
16
|
+
|
|
17
|
+
<flip-popover label="Popover" popover-id="popover" trigger="trigger">
|
|
18
|
+
<flip-action-list>
|
|
19
|
+
<flip-action-list-item
|
|
20
|
+
icon="<flip-icon-mention></flip-icon-mention>"
|
|
21
|
+
label="Action item 1"
|
|
22
|
+
></flip-action-list-item>
|
|
23
|
+
<flip-action-list-item
|
|
24
|
+
icon="<flip-icon-mention></flip-icon-mention>"
|
|
25
|
+
label="Action item 2"
|
|
26
|
+
></flip-action-list-item>
|
|
27
|
+
</flip-action-list>
|
|
28
|
+
</flip-popover>`,
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
title: "Components/FlipResourceListItem",
|
|
33
|
+
};
|
|
34
|
+
const Template = (args) => {
|
|
35
|
+
const container = document.createElement("div");
|
|
36
|
+
const popover = document.createElement("flip-popover");
|
|
37
|
+
const element = generateStoryElement("flip-resource-list-item", args);
|
|
38
|
+
container.setAttribute("aria-label", "List");
|
|
39
|
+
container.setAttribute("role", "grid");
|
|
40
|
+
popover.label = "Options";
|
|
41
|
+
popover.popoverId = "popover";
|
|
42
|
+
popover.trigger = "trigger";
|
|
43
|
+
popover.innerHTML = `
|
|
44
|
+
<flip-action-list>
|
|
45
|
+
<flip-action-list-item
|
|
46
|
+
icon="<flip-icon-mention></flip-icon-mention>"
|
|
47
|
+
label="Action item 1"
|
|
48
|
+
></flip-action-list-item>
|
|
49
|
+
<flip-action-list-item
|
|
50
|
+
icon="<flip-icon-mention></flip-icon-mention>"
|
|
51
|
+
label="Action item 2"
|
|
52
|
+
></flip-action-list-item>
|
|
53
|
+
</flip-action-list>
|
|
54
|
+
`;
|
|
55
|
+
container.append(element, popover);
|
|
56
|
+
return container;
|
|
57
|
+
};
|
|
58
|
+
export const FlipResourceListItem = Template.bind({});
|
|
59
|
+
FlipResourceListItem.args = {
|
|
60
|
+
description: "With a description",
|
|
61
|
+
label: "This is a resource item",
|
|
62
|
+
media: `<flip-avatar label="Jane Doe" src="https://avatars.dicebear.com/api/adventurer-neutral/a.svg?size=144" size="s"></flip-avatar>`,
|
|
63
|
+
menuTriggerId: "trigger",
|
|
64
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { Component, h, Host, Prop } from "@stencil/core";
|
|
2
|
+
import classnames from "classnames";
|
|
3
|
+
export class FlipTab {
|
|
4
|
+
render() {
|
|
5
|
+
const className = classnames("tab", { "tab--active": this.active });
|
|
6
|
+
return (h(Host, { "aria-labelledby": `tab-${this.tabId}`, id: this.tabId, role: "tabpanel", tabIndex: this.active ? 0 : -1 },
|
|
7
|
+
h("div", { class: className },
|
|
8
|
+
h("slot", null))));
|
|
9
|
+
}
|
|
10
|
+
static get is() { return "flip-tab"; }
|
|
11
|
+
static get encapsulation() { return "shadow"; }
|
|
12
|
+
static get originalStyleUrls() { return {
|
|
13
|
+
"$": ["flip-tab.css"]
|
|
14
|
+
}; }
|
|
15
|
+
static get styleUrls() { return {
|
|
16
|
+
"$": ["flip-tab.css"]
|
|
17
|
+
}; }
|
|
18
|
+
static get properties() { return {
|
|
19
|
+
"active": {
|
|
20
|
+
"type": "boolean",
|
|
21
|
+
"mutable": false,
|
|
22
|
+
"complexType": {
|
|
23
|
+
"original": "boolean",
|
|
24
|
+
"resolved": "boolean",
|
|
25
|
+
"references": {}
|
|
26
|
+
},
|
|
27
|
+
"required": false,
|
|
28
|
+
"optional": true,
|
|
29
|
+
"docs": {
|
|
30
|
+
"tags": [],
|
|
31
|
+
"text": ""
|
|
32
|
+
},
|
|
33
|
+
"attribute": "active",
|
|
34
|
+
"reflect": false
|
|
35
|
+
},
|
|
36
|
+
"label": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"mutable": false,
|
|
39
|
+
"complexType": {
|
|
40
|
+
"original": "string",
|
|
41
|
+
"resolved": "string",
|
|
42
|
+
"references": {}
|
|
43
|
+
},
|
|
44
|
+
"required": true,
|
|
45
|
+
"optional": false,
|
|
46
|
+
"docs": {
|
|
47
|
+
"tags": [],
|
|
48
|
+
"text": ""
|
|
49
|
+
},
|
|
50
|
+
"attribute": "label",
|
|
51
|
+
"reflect": false
|
|
52
|
+
},
|
|
53
|
+
"tabId": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"mutable": false,
|
|
56
|
+
"complexType": {
|
|
57
|
+
"original": "string",
|
|
58
|
+
"resolved": "string",
|
|
59
|
+
"references": {}
|
|
60
|
+
},
|
|
61
|
+
"required": true,
|
|
62
|
+
"optional": false,
|
|
63
|
+
"docs": {
|
|
64
|
+
"tags": [],
|
|
65
|
+
"text": ""
|
|
66
|
+
},
|
|
67
|
+
"attribute": "tab-id",
|
|
68
|
+
"reflect": false
|
|
69
|
+
}
|
|
70
|
+
}; }
|
|
71
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { generateStoryElement } from "../../utils";
|
|
2
|
+
import Docs from "./flip-tab.mdx";
|
|
3
|
+
export default {
|
|
4
|
+
component: "flip-tab",
|
|
5
|
+
parameters: {
|
|
6
|
+
docs: {
|
|
7
|
+
page: Docs,
|
|
8
|
+
},
|
|
9
|
+
},
|
|
10
|
+
title: "Components/FlipTab",
|
|
11
|
+
};
|
|
12
|
+
const Template = (args) => {
|
|
13
|
+
const element = generateStoryElement("flip-tab", args);
|
|
14
|
+
element.innerHTML = `Content`;
|
|
15
|
+
return element;
|
|
16
|
+
};
|
|
17
|
+
export const FlipTab = Template.bind({});
|
|
18
|
+
FlipTab.args = {
|
|
19
|
+
active: true,
|
|
20
|
+
label: "Label",
|
|
21
|
+
tabId: "tab-id",
|
|
22
|
+
};
|