@getflip/swirl-components 0.12.0 → 0.14.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/components.json +648 -106
- package/dist/cjs/balancetext-7a0bdee3.js +763 -0
- package/dist/cjs/file-manager.cjs.entry.js +3 -1
- package/dist/cjs/{floating-ui.dom.esm-75453e4e.js → floating-ui.dom.esm-35943202.js} +0 -0
- package/dist/cjs/{index-72831c5f.js → index-83363034.js} +584 -274
- package/dist/cjs/loader.cjs.js +4 -3
- package/dist/cjs/swirl-action-list-item.cjs.entry.js +9 -4
- package/dist/cjs/swirl-action-list-section.cjs.entry.js +2 -1
- package/dist/cjs/swirl-action-list.cjs.entry.js +2 -2
- package/dist/cjs/swirl-app-layout_5.cjs.entry.js +41 -9
- package/dist/cjs/swirl-autocomplete.cjs.entry.js +22 -11
- package/dist/cjs/swirl-avatar-group.cjs.entry.js +2 -1
- package/dist/cjs/swirl-avatar.cjs.entry.js +13 -7
- package/dist/cjs/swirl-badge.cjs.entry.js +3 -1
- package/dist/cjs/swirl-banner.cjs.entry.js +9 -7
- package/dist/cjs/swirl-button-group.cjs.entry.js +4 -1
- package/dist/cjs/swirl-button.cjs.entry.js +20 -6
- package/dist/cjs/swirl-card.cjs.entry.js +5 -1
- package/dist/cjs/swirl-checkbox.cjs.entry.js +11 -3
- package/dist/cjs/swirl-chip.cjs.entry.js +7 -4
- package/dist/cjs/swirl-components.cjs.js +10 -3
- package/dist/cjs/swirl-console-layout.cjs.entry.js +14 -8
- package/dist/cjs/swirl-date-input.cjs.entry.js +23 -8
- package/dist/cjs/swirl-date-picker_2.cjs.entry.js +19 -82
- package/dist/cjs/swirl-description-list-item.cjs.entry.js +2 -1
- package/dist/cjs/swirl-description-list.cjs.entry.js +1 -1
- package/dist/cjs/swirl-dialog.cjs.entry.js +7 -3
- package/dist/cjs/swirl-file-uploader.cjs.entry.js +12 -5
- package/dist/cjs/swirl-file-viewer_7.cjs.entry.js +40 -16
- package/dist/cjs/swirl-form-control.cjs.entry.js +24 -2
- package/dist/cjs/swirl-form-group.cjs.entry.js +1 -1
- package/dist/cjs/swirl-heading.cjs.entry.js +19 -2
- package/dist/cjs/swirl-icon-add-photo.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-add_4.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-admin-panel-settings.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-arrow-back.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-arrow-downward_2.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-arrow-forward.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-arrow-left_3.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-arrow-right-small.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-attachment.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-block.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-cancel_4.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-chat-bubble.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-chats-filled.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-chats-outlined.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-check-circle.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-check-small_4.cjs.entry.js +3452 -0
- package/dist/cjs/swirl-icon-check-strong.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-check.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-chevron-left.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-chevron-right.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-close-small.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-close.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-cloud-upload.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-column.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-comment.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-copy.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-date-range.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-delete.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-description.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-edit.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-emoji-mood.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-emoji-satisfied.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-error_3.cjs.entry.js +5 -3
- package/dist/cjs/swirl-icon-expand-more.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-file.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-filter.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-folder-shared.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-group-assign.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-groups-custom.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-groups-filled.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-groups-outlined.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-groups.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-help.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-image.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-info.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-inventory.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-like.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-link.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-lock.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-logout.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-mail.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-manage-accounts.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-mention.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-menu-filled.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-menu-outlined.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-menu.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-message.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-more-horizontal.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-more-vertikal.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-news-filled.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-news-outlined.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-notifications-active.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-notifications-off.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-notifications.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-open-in-new.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-people-alt.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-person-off.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-person.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-phone.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-poll.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-print.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-recieved.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-search-strong.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-search.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-send.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-settings.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-sync.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-tasks-filled.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-tasks-outlined.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-time-filled.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-time-outlined.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-user-assign.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-video-camera.cjs.entry.js +1 -1
- package/dist/cjs/swirl-icon-warning.cjs.entry.js +1 -1
- package/dist/cjs/swirl-lightbox.cjs.entry.js +10 -8
- package/dist/cjs/swirl-link.cjs.entry.js +4 -1
- package/dist/cjs/swirl-list.cjs.entry.js +1 -1
- package/dist/cjs/swirl-modal.cjs.entry.js +9 -6
- package/dist/cjs/swirl-option-list-section.cjs.entry.js +2 -1
- package/dist/cjs/swirl-pagination.cjs.entry.js +11 -8
- package/dist/cjs/swirl-pdf-reader.cjs.entry.js +16 -12
- package/dist/cjs/swirl-popover.cjs.entry.js +14 -9
- package/dist/cjs/swirl-progress-indicator.cjs.entry.js +2 -1
- package/dist/cjs/swirl-radio-group.cjs.entry.js +3 -1
- package/dist/cjs/swirl-radio.cjs.entry.js +9 -3
- package/dist/cjs/swirl-resource-list-file-item.cjs.entry.js +9 -4
- package/dist/cjs/swirl-search.cjs.entry.js +10 -4
- package/dist/cjs/swirl-select.cjs.entry.js +14 -4
- package/dist/cjs/swirl-separator.cjs.entry.js +1 -1
- package/dist/cjs/swirl-skeleton-box.cjs.entry.js +34 -0
- package/dist/cjs/swirl-skeleton-text.cjs.entry.js +26 -0
- package/dist/cjs/swirl-stack.cjs.entry.js +1 -1
- package/dist/cjs/swirl-switch.cjs.entry.js +8 -4
- package/dist/cjs/swirl-tab.cjs.entry.js +4 -1
- package/dist/cjs/swirl-table-cell.cjs.entry.js +1 -1
- package/dist/cjs/swirl-table-column.cjs.entry.js +6 -1
- package/dist/cjs/swirl-table-row-group.cjs.entry.js +2 -1
- package/dist/cjs/swirl-table-row.cjs.entry.js +3 -1
- package/dist/cjs/swirl-table.cjs.entry.js +9 -3
- package/dist/cjs/swirl-tabs.cjs.entry.js +4 -1
- package/dist/cjs/swirl-tag.cjs.entry.js +5 -3
- package/dist/cjs/swirl-text-input.cjs.entry.js +34 -10
- package/dist/cjs/swirl-text.cjs.entry.js +19 -3
- package/dist/cjs/swirl-theme-provider.cjs.entry.js +2 -1
- package/dist/cjs/swirl-thumbnail.cjs.entry.js +3 -1
- package/dist/cjs/swirl-toast-provider.cjs.entry.js +3 -2
- package/dist/cjs/swirl-toast.cjs.entry.js +9 -4
- package/dist/cjs/swirl-tooltip.cjs.entry.js +7 -5
- package/dist/cjs/swirl-tree-navigation-item.cjs.entry.js +4 -1
- package/dist/cjs/swirl-video-thumbnail.cjs.entry.js +4 -1
- package/dist/cjs/swirl-visually-hidden.cjs.entry.js +1 -1
- package/dist/cjs/{utils-9c9476b4.js → utils-a07ee0db.js} +18 -0
- package/dist/cjs/wc-datepicker.cjs.entry.js +471 -0
- package/dist/collection/collection-manifest.json +13 -3
- package/dist/collection/components/swirl-action-list/swirl-action-list.js +12 -10
- package/dist/collection/components/swirl-action-list-item/swirl-action-list-item.js +146 -139
- package/dist/collection/components/swirl-action-list-section/swirl-action-list-section.js +36 -31
- package/dist/collection/components/swirl-app-layout/swirl-app-layout.js +425 -427
- package/dist/collection/components/swirl-autocomplete/swirl-autocomplete.js +310 -275
- package/dist/collection/components/swirl-avatar/swirl-avatar.js +238 -228
- package/dist/collection/components/swirl-avatar-group/swirl-avatar-group.js +36 -30
- package/dist/collection/components/swirl-badge/swirl-badge.js +114 -106
- package/dist/collection/components/swirl-banner/swirl-banner.js +192 -187
- package/dist/collection/components/swirl-box/swirl-box.js +144 -134
- package/dist/collection/components/swirl-button/swirl-button.js +382 -360
- package/dist/collection/components/swirl-button-group/swirl-button-group.js +93 -85
- package/dist/collection/components/swirl-card/swirl-card.js +104 -96
- package/dist/collection/components/swirl-checkbox/swirl-checkbox.js +210 -204
- package/dist/collection/components/swirl-chip/swirl-chip.js +108 -102
- package/dist/collection/components/swirl-console-layout/swirl-console-layout.js +312 -322
- package/dist/collection/components/swirl-date-input/swirl-date-input.css +11 -0
- package/dist/collection/components/swirl-date-input/swirl-date-input.js +294 -223
- package/dist/collection/components/swirl-date-picker/swirl-date-picker.css +168 -121
- package/dist/collection/components/swirl-date-picker/swirl-date-picker.js +134 -199
- package/dist/collection/components/swirl-date-picker/swirl-date-picker.stories.js +0 -5
- package/dist/collection/components/swirl-description-list/swirl-description-list.js +12 -10
- package/dist/collection/components/swirl-description-list-item/swirl-description-list-item.js +36 -31
- package/dist/collection/components/swirl-dialog/swirl-dialog.js +182 -174
- package/dist/collection/components/swirl-empty-state/swirl-empty-state.js +53 -50
- package/dist/collection/components/swirl-file-uploader/swirl-file-uploader.js +249 -241
- package/dist/collection/components/swirl-file-viewer/swirl-file-viewer.js +214 -208
- package/dist/collection/components/swirl-file-viewer/viewers/swirl-file-viewer-audio/swirl-file-viewer-audio.js +90 -79
- package/dist/collection/components/swirl-file-viewer/viewers/swirl-file-viewer-csv/swirl-file-viewer-csv.js +87 -77
- package/dist/collection/components/swirl-file-viewer/viewers/swirl-file-viewer-image/swirl-file-viewer-image.js +160 -148
- package/dist/collection/components/swirl-file-viewer/viewers/swirl-file-viewer-pdf/swirl-file-viewer-pdf.js +224 -214
- package/dist/collection/components/swirl-file-viewer/viewers/swirl-file-viewer-text/swirl-file-viewer-text.js +87 -75
- package/dist/collection/components/swirl-file-viewer/viewers/swirl-file-viewer-video/swirl-file-viewer-video.js +90 -79
- package/dist/collection/components/swirl-form-control/swirl-form-control.css +22 -0
- package/dist/collection/components/swirl-form-control/swirl-form-control.js +167 -122
- package/dist/collection/components/swirl-form-group/swirl-form-group.js +38 -33
- package/dist/collection/components/swirl-heading/swirl-heading.js +154 -102
- package/dist/collection/components/swirl-heading/swirl-heading.stories.js +6 -1
- package/dist/collection/components/swirl-icon/icons/swirl-icon-add-photo.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-add.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-admin-panel-settings.js +38 -41
- package/dist/collection/components/swirl-icon/icons/swirl-icon-arrow-back.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-arrow-downward.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-arrow-forward.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-arrow-left.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-arrow-right-small.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-arrow-right.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-arrow-upward.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-attachment.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-block.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-cancel.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-chat-bubble.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-chats-filled.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-chats-outlined.js +38 -44
- package/dist/collection/components/swirl-icon/icons/swirl-icon-check-circle.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-check-small.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-check-strong.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-check.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-chevron-left.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-chevron-right.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-close-small.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-close.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-cloud-upload.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-column.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-comment.js +38 -41
- package/dist/collection/components/swirl-icon/icons/swirl-icon-copy.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-date-range.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-delete.js +38 -41
- package/dist/collection/components/swirl-icon/icons/swirl-icon-description.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-download.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-drag-handle.js +52 -0
- package/dist/collection/components/swirl-icon/icons/swirl-icon-edit.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-emoji-mood.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-emoji-satisfied.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-error.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-expand-less.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-expand-more.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-file.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-filter.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-folder-shared.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-fullscreen-exit.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-fullscreen.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-group-assign.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-groups-custom.js +38 -53
- package/dist/collection/components/swirl-icon/icons/swirl-icon-groups-filled.js +38 -53
- package/dist/collection/components/swirl-icon/icons/swirl-icon-groups-outlined.js +38 -53
- package/dist/collection/components/swirl-icon/icons/swirl-icon-groups.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-help.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-image.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-info.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-inventory.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-like.js +38 -41
- package/dist/collection/components/swirl-icon/icons/swirl-icon-link.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-lock.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-logout.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-mail.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-manage-accounts.js +38 -44
- package/dist/collection/components/swirl-icon/icons/swirl-icon-mention.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-menu-filled.js +38 -47
- package/dist/collection/components/swirl-icon/icons/swirl-icon-menu-outlined.js +38 -47
- package/dist/collection/components/swirl-icon/icons/swirl-icon-menu.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-message.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-more-horizontal.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-more-vertikal.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-news-filled.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-news-outlined.js +38 -44
- package/dist/collection/components/swirl-icon/icons/swirl-icon-notifications-active.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-notifications-off.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-notifications.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-open-in-new.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-people-alt.js +38 -47
- package/dist/collection/components/swirl-icon/icons/swirl-icon-person-off.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-person.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-phone.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-poll.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-print.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-recieved.js +38 -41
- package/dist/collection/components/swirl-icon/icons/swirl-icon-remove.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-search-strong.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-search.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-send.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-settings.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-sync.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-tasks-filled.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-tasks-outlined.js +38 -41
- package/dist/collection/components/swirl-icon/icons/swirl-icon-time-filled.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-time-outlined.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-today.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-user-assign.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-video-camera.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-visibility-off.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-visibility.js +38 -38
- package/dist/collection/components/swirl-icon/icons/swirl-icon-warning.js +38 -38
- package/dist/collection/components/swirl-inline-error/swirl-inline-error.js +56 -52
- package/dist/collection/components/swirl-lightbox/swirl-lightbox.js +170 -178
- package/dist/collection/components/swirl-link/swirl-link.js +74 -63
- package/dist/collection/components/swirl-list/swirl-list.js +12 -10
- package/dist/collection/components/swirl-modal/swirl-modal.js +205 -200
- package/dist/collection/components/swirl-option-list/swirl-option-list.js +364 -126
- package/dist/collection/components/swirl-option-list/swirl-option-list.stories.js +6 -8
- package/dist/collection/components/swirl-option-list-item/swirl-option-list-item.css +64 -1
- package/dist/collection/components/swirl-option-list-item/swirl-option-list-item.js +234 -123
- package/dist/collection/components/swirl-option-list-item/swirl-option-list-item.stories.js +8 -0
- package/dist/collection/components/swirl-option-list-section/swirl-option-list-section.js +36 -31
- package/dist/collection/components/swirl-pagination/swirl-pagination.js +218 -223
- package/dist/collection/components/swirl-pdf-reader/swirl-pdf-reader.js +233 -245
- package/dist/collection/components/swirl-popover/swirl-popover.js +263 -249
- package/dist/collection/components/swirl-progress-indicator/swirl-progress-indicator.js +93 -89
- package/dist/collection/components/swirl-radio/swirl-radio.js +183 -176
- package/dist/collection/components/swirl-radio-group/swirl-radio-group.js +70 -60
- package/dist/collection/components/swirl-resource-list/swirl-resource-list.js +34 -29
- package/dist/collection/components/swirl-resource-list-file-item/swirl-resource-list-file-item.js +158 -156
- package/dist/collection/components/swirl-resource-list-item/swirl-resource-list-item.js +240 -232
- package/dist/collection/components/swirl-search/swirl-search.js +216 -205
- package/dist/collection/components/swirl-select/swirl-select.css +4 -0
- package/dist/collection/components/swirl-select/swirl-select.js +186 -153
- package/dist/collection/components/swirl-separator/swirl-separator.js +12 -9
- package/dist/collection/components/swirl-skeleton-box/swirl-skeleton-box.css +54 -0
- package/dist/collection/components/swirl-skeleton-box/swirl-skeleton-box.js +130 -0
- package/dist/collection/components/swirl-skeleton-box/swirl-skeleton-box.stories.js +20 -0
- package/dist/collection/components/swirl-skeleton-text/swirl-skeleton-text.css +173 -0
- package/dist/collection/components/swirl-skeleton-text/swirl-skeleton-text.js +89 -0
- package/dist/collection/components/swirl-skeleton-text/swirl-skeleton-text.stories.js +19 -0
- package/dist/collection/components/swirl-spinner/swirl-spinner.js +55 -53
- package/dist/collection/components/swirl-stack/swirl-stack.js +135 -127
- package/dist/collection/components/swirl-switch/swirl-switch.js +169 -160
- package/dist/collection/components/swirl-tab/swirl-tab.js +70 -61
- package/dist/collection/components/swirl-table/swirl-table.js +90 -88
- package/dist/collection/components/swirl-table-cell/swirl-table-cell.js +12 -9
- package/dist/collection/components/swirl-table-column/swirl-table-column.js +123 -117
- package/dist/collection/components/swirl-table-row/swirl-table-row.js +53 -44
- package/dist/collection/components/swirl-table-row-group/swirl-table-row-group.js +36 -30
- package/dist/collection/components/swirl-tabs/swirl-tabs.js +112 -101
- package/dist/collection/components/swirl-tag/swirl-tag.js +111 -104
- package/dist/collection/components/swirl-text/swirl-text.js +197 -146
- package/dist/collection/components/swirl-text/swirl-text.stories.js +5 -0
- package/dist/collection/components/swirl-text-input/swirl-text-input.css +21 -0
- package/dist/collection/components/swirl-text-input/swirl-text-input.js +594 -557
- package/dist/collection/components/swirl-theme-provider/swirl-theme-provider.js +141 -122
- package/dist/collection/components/swirl-thumbnail/swirl-thumbnail.js +93 -85
- package/dist/collection/components/swirl-toast/swirl-toast.js +165 -155
- package/dist/collection/components/swirl-toast-provider/swirl-toast-provider.js +112 -104
- package/dist/collection/components/swirl-tooltip/swirl-tooltip.js +122 -113
- package/dist/collection/components/swirl-tree-navigation-item/swirl-tree-navigation-item.js +68 -61
- package/dist/collection/components/swirl-video-thumbnail/swirl-video-thumbnail.js +85 -83
- package/dist/collection/components/swirl-visually-hidden/swirl-visually-hidden.js +12 -9
- package/dist/collection/prototypes/file-manager/file-manager.js +12 -22
- package/dist/collection/utils.js +17 -0
- package/dist/components/balancetext.js +761 -0
- package/dist/components/file-manager.js +36 -29
- package/dist/components/index.d.ts +9 -172
- package/dist/components/index.js +1 -170
- package/dist/components/index2.js +35 -2
- package/dist/components/swirl-action-list-item.js +7 -3
- package/dist/components/swirl-action-list-section.js +1 -1
- package/dist/components/swirl-action-list.js +0 -1
- package/dist/components/swirl-app-layout2.js +20 -6
- package/dist/components/swirl-autocomplete.js +33 -16
- package/dist/components/swirl-avatar-group.js +1 -1
- package/dist/components/swirl-avatar.js +12 -7
- package/dist/components/swirl-badge.js +2 -1
- package/dist/components/swirl-banner.js +7 -6
- package/dist/components/swirl-box2.js +4 -1
- package/dist/components/swirl-button-group2.js +3 -1
- package/dist/components/swirl-button2.js +18 -5
- package/dist/components/swirl-card.js +4 -1
- package/dist/components/swirl-checkbox.js +10 -3
- package/dist/components/swirl-chip.js +5 -3
- package/dist/components/swirl-console-layout.js +12 -7
- package/dist/components/swirl-date-input.js +38 -16
- package/dist/components/swirl-date-picker2.js +26 -86
- package/dist/components/swirl-description-list-item.js +1 -1
- package/dist/components/swirl-description-list.js +0 -1
- package/dist/components/swirl-dialog.js +6 -3
- package/dist/components/swirl-empty-state2.js +2 -1
- package/dist/components/swirl-file-uploader.js +11 -5
- package/dist/components/swirl-file-viewer-audio2.js +3 -1
- package/dist/components/swirl-file-viewer-csv2.js +5 -2
- package/dist/components/swirl-file-viewer-image2.js +6 -5
- package/dist/components/swirl-file-viewer-pdf2.js +12 -9
- package/dist/components/swirl-file-viewer-text2.js +4 -1
- package/dist/components/swirl-file-viewer-video2.js +3 -1
- package/dist/components/swirl-file-viewer2.js +8 -5
- package/dist/components/swirl-form-control.js +24 -2
- package/dist/components/swirl-form-group.js +0 -1
- package/dist/components/swirl-heading2.js +20 -3
- package/dist/components/swirl-icon-add-photo.js +0 -1
- package/dist/components/swirl-icon-add2.js +0 -1
- package/dist/components/swirl-icon-admin-panel-settings.js +0 -1
- package/dist/components/swirl-icon-arrow-back.js +0 -1
- package/dist/components/swirl-icon-arrow-downward2.js +0 -1
- package/dist/components/swirl-icon-arrow-forward.js +0 -1
- package/dist/components/swirl-icon-arrow-left2.js +0 -1
- package/dist/components/swirl-icon-arrow-right-small.js +0 -1
- package/dist/components/swirl-icon-arrow-right2.js +0 -1
- package/dist/components/swirl-icon-arrow-upward2.js +0 -1
- package/dist/components/swirl-icon-attachment.js +0 -1
- package/dist/components/swirl-icon-block.js +0 -1
- package/dist/components/swirl-icon-cancel2.js +0 -1
- package/dist/components/swirl-icon-chat-bubble.js +0 -1
- package/dist/components/swirl-icon-chats-filled.js +0 -1
- package/dist/components/swirl-icon-chats-outlined.js +0 -1
- package/dist/components/swirl-icon-check-circle.js +0 -1
- package/dist/components/swirl-icon-check-small2.js +0 -1
- package/dist/components/swirl-icon-check-strong2.js +0 -1
- package/dist/components/swirl-icon-check.js +0 -1
- package/dist/components/swirl-icon-chevron-left.js +0 -1
- package/dist/components/swirl-icon-chevron-right.js +0 -1
- package/dist/components/swirl-icon-close-small.js +0 -1
- package/dist/components/swirl-icon-close2.js +0 -1
- package/dist/components/swirl-icon-cloud-upload2.js +0 -1
- package/dist/components/swirl-icon-column.js +0 -1
- package/dist/components/swirl-icon-comment.js +0 -1
- package/dist/components/swirl-icon-copy.js +0 -1
- package/dist/components/swirl-icon-date-range.js +0 -1
- package/dist/components/swirl-icon-delete.js +0 -1
- package/dist/components/swirl-icon-description.js +0 -1
- package/dist/components/swirl-icon-download2.js +0 -1
- package/dist/components/swirl-icon-drag-handle.d.ts +11 -0
- package/dist/components/swirl-icon-drag-handle.js +6 -0
- package/dist/components/swirl-icon-drag-handle2.js +36 -0
- package/dist/components/swirl-icon-edit.js +0 -1
- package/dist/components/swirl-icon-emoji-mood.js +0 -1
- package/dist/components/swirl-icon-emoji-satisfied.js +0 -1
- package/dist/components/swirl-icon-error2.js +0 -1
- package/dist/components/swirl-icon-expand-less2.js +0 -1
- package/dist/components/swirl-icon-expand-more2.js +0 -1
- package/dist/components/swirl-icon-file.js +0 -1
- package/dist/components/swirl-icon-filter.js +0 -1
- package/dist/components/swirl-icon-folder-shared.js +0 -1
- package/dist/components/swirl-icon-fullscreen-exit2.js +0 -1
- package/dist/components/swirl-icon-fullscreen2.js +0 -1
- package/dist/components/swirl-icon-group-assign.js +0 -1
- package/dist/components/swirl-icon-groups-custom.js +0 -1
- package/dist/components/swirl-icon-groups-filled.js +0 -1
- package/dist/components/swirl-icon-groups-outlined.js +0 -1
- package/dist/components/swirl-icon-groups.js +0 -1
- package/dist/components/swirl-icon-help.js +0 -1
- package/dist/components/swirl-icon-image.js +0 -1
- package/dist/components/swirl-icon-info.js +0 -1
- package/dist/components/swirl-icon-inventory.js +0 -1
- package/dist/components/swirl-icon-like.js +0 -1
- package/dist/components/swirl-icon-link.js +0 -1
- package/dist/components/swirl-icon-lock.js +0 -1
- package/dist/components/swirl-icon-logout.js +0 -1
- package/dist/components/swirl-icon-mail.js +0 -1
- package/dist/components/swirl-icon-manage-accounts.js +0 -1
- package/dist/components/swirl-icon-mention.js +0 -1
- package/dist/components/swirl-icon-menu-filled.js +0 -1
- package/dist/components/swirl-icon-menu-outlined.js +0 -1
- package/dist/components/swirl-icon-menu.js +0 -1
- package/dist/components/swirl-icon-message.js +0 -1
- package/dist/components/swirl-icon-more-horizontal.js +0 -1
- package/dist/components/swirl-icon-more-vertikal.js +0 -1
- package/dist/components/swirl-icon-news-filled.js +0 -1
- package/dist/components/swirl-icon-news-outlined.js +0 -1
- package/dist/components/swirl-icon-notifications-active.js +0 -1
- package/dist/components/swirl-icon-notifications-off.js +0 -1
- package/dist/components/swirl-icon-notifications.js +0 -1
- package/dist/components/swirl-icon-open-in-new.js +0 -1
- package/dist/components/swirl-icon-people-alt.js +0 -1
- package/dist/components/swirl-icon-person-off.js +0 -1
- package/dist/components/swirl-icon-person2.js +0 -1
- package/dist/components/swirl-icon-phone.js +0 -1
- package/dist/components/swirl-icon-poll.js +0 -1
- package/dist/components/swirl-icon-print.js +0 -1
- package/dist/components/swirl-icon-recieved.js +0 -1
- package/dist/components/swirl-icon-remove2.js +0 -1
- package/dist/components/swirl-icon-search-strong.js +0 -1
- package/dist/components/swirl-icon-search2.js +0 -1
- package/dist/components/swirl-icon-send.js +0 -1
- package/dist/components/swirl-icon-settings.js +0 -1
- package/dist/components/swirl-icon-sync.js +0 -1
- package/dist/components/swirl-icon-tasks-filled.js +0 -1
- package/dist/components/swirl-icon-tasks-outlined.js +0 -1
- package/dist/components/swirl-icon-time-filled.js +0 -1
- package/dist/components/swirl-icon-time-outlined.js +0 -1
- package/dist/components/swirl-icon-today2.js +0 -1
- package/dist/components/swirl-icon-user-assign.js +0 -1
- package/dist/components/swirl-icon-video-camera.js +0 -1
- package/dist/components/swirl-icon-visibility-off2.js +0 -1
- package/dist/components/swirl-icon-visibility2.js +0 -1
- package/dist/components/swirl-icon-warning.js +0 -1
- package/dist/components/swirl-inline-error2.js +2 -2
- package/dist/components/swirl-lightbox.js +8 -7
- package/dist/components/swirl-link.js +3 -1
- package/dist/components/swirl-list.js +0 -1
- package/dist/components/swirl-modal.js +8 -6
- package/dist/components/swirl-option-list-item2.js +39 -13
- package/dist/components/swirl-option-list-section.js +1 -1
- package/dist/components/swirl-option-list2.js +3184 -17
- package/dist/components/swirl-pagination.js +10 -8
- package/dist/components/swirl-pdf-reader.js +14 -11
- package/dist/components/swirl-popover2.js +11 -7
- package/dist/components/swirl-progress-indicator.js +1 -1
- package/dist/components/swirl-radio-group.js +2 -1
- package/dist/components/swirl-radio.js +8 -3
- package/dist/components/swirl-resource-list-file-item.js +7 -3
- package/dist/components/swirl-resource-list-item2.js +12 -3
- package/dist/components/swirl-resource-list2.js +1 -1
- package/dist/components/swirl-search.js +8 -3
- package/dist/components/swirl-select.js +28 -12
- package/dist/components/swirl-separator.js +0 -1
- package/dist/components/swirl-skeleton-box.d.ts +11 -0
- package/dist/components/swirl-skeleton-box.js +53 -0
- package/dist/components/swirl-skeleton-text.d.ts +11 -0
- package/dist/components/swirl-skeleton-text.js +43 -0
- package/dist/components/swirl-spinner2.js +1 -1
- package/dist/components/swirl-stack2.js +0 -1
- package/dist/components/swirl-switch.js +7 -4
- package/dist/components/swirl-tab.js +3 -1
- package/dist/components/swirl-table-cell.js +0 -1
- package/dist/components/swirl-table-column.js +5 -1
- package/dist/components/swirl-table-row-group.js +1 -1
- package/dist/components/swirl-table-row.js +2 -1
- package/dist/components/swirl-table.js +7 -2
- package/dist/components/swirl-tabs.js +3 -1
- package/dist/components/swirl-tag.js +4 -3
- package/dist/components/swirl-text-input2.js +33 -9
- package/dist/components/swirl-text2.js +21 -6
- package/dist/components/swirl-theme-provider.js +1 -1
- package/dist/components/swirl-thumbnail.js +2 -1
- package/dist/components/swirl-toast-provider.js +2 -2
- package/dist/components/swirl-toast2.js +7 -3
- package/dist/components/swirl-tooltip.js +5 -4
- package/dist/components/swirl-tree-navigation-item.js +3 -1
- package/dist/components/swirl-video-thumbnail.js +3 -1
- package/dist/components/swirl-visually-hidden2.js +0 -1
- package/dist/components/utils.js +18 -1
- package/dist/components/wc-datepicker.js +6 -0
- package/dist/components/wc-datepicker2.js +504 -0
- package/dist/{components/_commonjsHelpers.js → esm/_commonjsHelpers-10467d11.js} +1 -1
- package/dist/esm/balancetext-31f1ec68.js +761 -0
- package/dist/esm/file-manager.entry.js +3 -1
- package/dist/esm/{floating-ui.dom.esm-1a4e8b8a.js → floating-ui.dom.esm-b9f28f6d.js} +0 -0
- package/dist/esm/{index-5a3b2828.js → index-0ff2c8e0.js} +584 -275
- package/dist/esm/{index-c3028f7d.js → index-47862d62.js} +1 -1
- package/dist/esm/loader.js +4 -3
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/swirl-action-list-item.entry.js +11 -6
- package/dist/esm/swirl-action-list-section.entry.js +2 -1
- package/dist/esm/swirl-action-list.entry.js +2 -2
- package/dist/esm/swirl-app-layout_5.entry.js +43 -11
- package/dist/esm/swirl-autocomplete.entry.js +24 -13
- package/dist/esm/swirl-avatar-group.entry.js +4 -3
- package/dist/esm/swirl-avatar.entry.js +15 -9
- package/dist/esm/swirl-badge.entry.js +5 -3
- package/dist/esm/swirl-banner.entry.js +11 -9
- package/dist/esm/swirl-button-group.entry.js +6 -3
- package/dist/esm/swirl-button.entry.js +22 -8
- package/dist/esm/swirl-card.entry.js +7 -3
- package/dist/esm/swirl-checkbox.entry.js +13 -5
- package/dist/esm/swirl-chip.entry.js +9 -6
- package/dist/esm/swirl-components.js +7 -3
- package/dist/esm/swirl-console-layout.entry.js +16 -10
- package/dist/esm/swirl-date-input.entry.js +24 -9
- package/dist/esm/swirl-date-picker_2.entry.js +20 -83
- package/dist/esm/swirl-description-list-item.entry.js +2 -1
- package/dist/esm/swirl-description-list.entry.js +1 -1
- package/dist/esm/swirl-dialog.entry.js +9 -5
- package/dist/esm/swirl-file-uploader.entry.js +14 -7
- package/dist/esm/swirl-file-viewer_7.entry.js +41 -17
- package/dist/esm/swirl-form-control.entry.js +26 -4
- package/dist/esm/swirl-form-group.entry.js +3 -3
- package/dist/esm/swirl-heading.entry.js +21 -4
- package/dist/esm/swirl-icon-add-photo.entry.js +3 -3
- package/dist/esm/swirl-icon-add_4.entry.js +3 -3
- package/dist/esm/swirl-icon-admin-panel-settings.entry.js +3 -3
- package/dist/esm/swirl-icon-arrow-back.entry.js +3 -3
- package/dist/esm/swirl-icon-arrow-downward_2.entry.js +3 -3
- package/dist/esm/swirl-icon-arrow-forward.entry.js +3 -3
- package/dist/esm/swirl-icon-arrow-left_3.entry.js +3 -3
- package/dist/esm/swirl-icon-arrow-right-small.entry.js +3 -3
- package/dist/esm/swirl-icon-attachment.entry.js +3 -3
- package/dist/esm/swirl-icon-block.entry.js +3 -3
- package/dist/esm/swirl-icon-cancel_4.entry.js +3 -3
- package/dist/esm/swirl-icon-chat-bubble.entry.js +3 -3
- package/dist/esm/swirl-icon-chats-filled.entry.js +3 -3
- package/dist/esm/swirl-icon-chats-outlined.entry.js +3 -3
- package/dist/esm/swirl-icon-check-circle.entry.js +3 -3
- package/dist/esm/swirl-icon-check-small_4.entry.js +3445 -0
- package/dist/esm/swirl-icon-check-strong.entry.js +3 -3
- package/dist/esm/swirl-icon-check.entry.js +3 -3
- package/dist/esm/swirl-icon-chevron-left.entry.js +3 -3
- package/dist/esm/swirl-icon-chevron-right.entry.js +3 -3
- package/dist/esm/swirl-icon-close-small.entry.js +3 -3
- package/dist/esm/swirl-icon-close.entry.js +3 -3
- package/dist/esm/swirl-icon-cloud-upload.entry.js +3 -3
- package/dist/esm/swirl-icon-column.entry.js +3 -3
- package/dist/esm/swirl-icon-comment.entry.js +3 -3
- package/dist/esm/swirl-icon-copy.entry.js +3 -3
- package/dist/esm/swirl-icon-date-range.entry.js +3 -3
- package/dist/esm/swirl-icon-delete.entry.js +3 -3
- package/dist/esm/swirl-icon-description.entry.js +3 -3
- package/dist/esm/swirl-icon-edit.entry.js +3 -3
- package/dist/esm/swirl-icon-emoji-mood.entry.js +3 -3
- package/dist/esm/swirl-icon-emoji-satisfied.entry.js +3 -3
- package/dist/esm/swirl-icon-error_3.entry.js +7 -5
- package/dist/esm/swirl-icon-expand-more.entry.js +3 -3
- package/dist/esm/swirl-icon-file.entry.js +3 -3
- package/dist/esm/swirl-icon-filter.entry.js +3 -3
- package/dist/esm/swirl-icon-folder-shared.entry.js +3 -3
- package/dist/esm/swirl-icon-group-assign.entry.js +3 -3
- package/dist/esm/swirl-icon-groups-custom.entry.js +3 -3
- package/dist/esm/swirl-icon-groups-filled.entry.js +3 -3
- package/dist/esm/swirl-icon-groups-outlined.entry.js +3 -3
- package/dist/esm/swirl-icon-groups.entry.js +3 -3
- package/dist/esm/swirl-icon-help.entry.js +3 -3
- package/dist/esm/swirl-icon-image.entry.js +3 -3
- package/dist/esm/swirl-icon-info.entry.js +3 -3
- package/dist/esm/swirl-icon-inventory.entry.js +3 -3
- package/dist/esm/swirl-icon-like.entry.js +3 -3
- package/dist/esm/swirl-icon-link.entry.js +3 -3
- package/dist/esm/swirl-icon-lock.entry.js +3 -3
- package/dist/esm/swirl-icon-logout.entry.js +3 -3
- package/dist/esm/swirl-icon-mail.entry.js +3 -3
- package/dist/esm/swirl-icon-manage-accounts.entry.js +3 -3
- package/dist/esm/swirl-icon-mention.entry.js +3 -3
- package/dist/esm/swirl-icon-menu-filled.entry.js +3 -3
- package/dist/esm/swirl-icon-menu-outlined.entry.js +3 -3
- package/dist/esm/swirl-icon-menu.entry.js +3 -3
- package/dist/esm/swirl-icon-message.entry.js +3 -3
- package/dist/esm/swirl-icon-more-horizontal.entry.js +3 -3
- package/dist/esm/swirl-icon-more-vertikal.entry.js +3 -3
- package/dist/esm/swirl-icon-news-filled.entry.js +3 -3
- package/dist/esm/swirl-icon-news-outlined.entry.js +3 -3
- package/dist/esm/swirl-icon-notifications-active.entry.js +3 -3
- package/dist/esm/swirl-icon-notifications-off.entry.js +3 -3
- package/dist/esm/swirl-icon-notifications.entry.js +3 -3
- package/dist/esm/swirl-icon-open-in-new.entry.js +3 -3
- package/dist/esm/swirl-icon-people-alt.entry.js +3 -3
- package/dist/esm/swirl-icon-person-off.entry.js +3 -3
- package/dist/esm/swirl-icon-person.entry.js +3 -3
- package/dist/esm/swirl-icon-phone.entry.js +3 -3
- package/dist/esm/swirl-icon-poll.entry.js +3 -3
- package/dist/esm/swirl-icon-print.entry.js +3 -3
- package/dist/esm/swirl-icon-recieved.entry.js +3 -3
- package/dist/esm/swirl-icon-search-strong.entry.js +3 -3
- package/dist/esm/swirl-icon-search.entry.js +3 -3
- package/dist/esm/swirl-icon-send.entry.js +3 -3
- package/dist/esm/swirl-icon-settings.entry.js +3 -3
- package/dist/esm/swirl-icon-sync.entry.js +3 -3
- package/dist/esm/swirl-icon-tasks-filled.entry.js +3 -3
- package/dist/esm/swirl-icon-tasks-outlined.entry.js +3 -3
- package/dist/esm/swirl-icon-time-filled.entry.js +3 -3
- package/dist/esm/swirl-icon-time-outlined.entry.js +3 -3
- package/dist/esm/swirl-icon-user-assign.entry.js +3 -3
- package/dist/esm/swirl-icon-video-camera.entry.js +3 -3
- package/dist/esm/swirl-icon-warning.entry.js +3 -3
- package/dist/esm/swirl-lightbox.entry.js +12 -10
- package/dist/esm/swirl-link.entry.js +4 -1
- package/dist/esm/swirl-list.entry.js +1 -1
- package/dist/esm/swirl-modal.entry.js +11 -8
- package/dist/esm/swirl-option-list-section.entry.js +2 -1
- package/dist/esm/swirl-pagination.entry.js +13 -10
- package/dist/esm/swirl-pdf-reader.entry.js +18 -14
- package/dist/esm/swirl-popover.entry.js +16 -11
- package/dist/esm/swirl-progress-indicator.entry.js +4 -3
- package/dist/esm/swirl-radio-group.entry.js +3 -1
- package/dist/esm/swirl-radio.entry.js +11 -5
- package/dist/esm/swirl-resource-list-file-item.entry.js +11 -6
- package/dist/esm/swirl-search.entry.js +12 -6
- package/dist/esm/swirl-select.entry.js +16 -6
- package/dist/esm/swirl-separator.entry.js +1 -1
- package/dist/esm/swirl-skeleton-box.entry.js +30 -0
- package/dist/esm/swirl-skeleton-text.entry.js +22 -0
- package/dist/esm/swirl-stack.entry.js +3 -3
- package/dist/esm/swirl-switch.entry.js +10 -6
- package/dist/esm/swirl-tab.entry.js +6 -3
- package/dist/esm/swirl-table-cell.entry.js +1 -1
- package/dist/esm/swirl-table-column.entry.js +6 -1
- package/dist/esm/swirl-table-row-group.entry.js +2 -1
- package/dist/esm/swirl-table-row.entry.js +5 -3
- package/dist/esm/swirl-table.entry.js +9 -3
- package/dist/esm/swirl-tabs.entry.js +6 -3
- package/dist/esm/swirl-tag.entry.js +7 -5
- package/dist/esm/swirl-text-input.entry.js +36 -12
- package/dist/esm/swirl-text.entry.js +21 -5
- package/dist/esm/swirl-theme-provider.entry.js +2 -1
- package/dist/esm/swirl-thumbnail.entry.js +5 -3
- package/dist/esm/swirl-toast-provider.entry.js +3 -2
- package/dist/esm/swirl-toast.entry.js +11 -6
- package/dist/esm/swirl-tooltip.entry.js +7 -5
- package/dist/esm/swirl-tree-navigation-item.entry.js +6 -3
- package/dist/esm/swirl-video-thumbnail.entry.js +4 -1
- package/dist/esm/swirl-visually-hidden.entry.js +1 -1
- package/dist/esm/{utils-7efaa1c6.js → utils-33d31b58.js} +18 -1
- package/dist/esm/wc-datepicker.entry.js +467 -0
- package/dist/swirl-components/{p-435c746a.entry.js → p-00978344.entry.js} +1 -1
- package/dist/swirl-components/{p-96ac53d5.entry.js → p-00ce0096.entry.js} +1 -1
- package/dist/swirl-components/{p-ffe7373d.entry.js → p-026a6c8f.entry.js} +1 -1
- package/dist/swirl-components/{p-6e4135eb.entry.js → p-027680e2.entry.js} +1 -1
- package/dist/swirl-components/{p-98827f45.entry.js → p-0319e9d6.entry.js} +1 -1
- package/dist/swirl-components/p-05c15d47.js +2 -0
- package/dist/swirl-components/{p-90559cbf.entry.js → p-090aa1c5.entry.js} +1 -1
- package/dist/swirl-components/p-0dcc2cbc.entry.js +1 -0
- package/dist/swirl-components/{p-cd8446b2.entry.js → p-0e59a667.entry.js} +1 -1
- package/dist/swirl-components/{p-4935dc49.entry.js → p-0f3b28e9.entry.js} +1 -1
- package/dist/swirl-components/p-107e3594.entry.js +1 -0
- package/dist/swirl-components/{p-0924336d.entry.js → p-121b8ab9.entry.js} +1 -1
- package/dist/swirl-components/{p-0dd24ec2.entry.js → p-12633c5e.entry.js} +1 -1
- package/dist/swirl-components/p-13376409.entry.js +1 -0
- package/dist/swirl-components/{p-e419a9cb.entry.js → p-142ceff7.entry.js} +1 -1
- package/dist/swirl-components/p-148b7b70.entry.js +1 -0
- package/dist/swirl-components/p-1614639e.entry.js +1 -0
- package/dist/swirl-components/{p-86bd3473.js → p-16e63a98.js} +1 -1
- package/dist/swirl-components/p-19caf328.entry.js +1 -0
- package/dist/swirl-components/p-1a6ca33d.entry.js +7 -0
- package/dist/swirl-components/p-1aa44f84.entry.js +1 -0
- package/dist/swirl-components/p-1b7876da.entry.js +1 -0
- package/dist/swirl-components/{p-c215db6a.entry.js → p-1c12a405.entry.js} +1 -1
- package/dist/swirl-components/p-1e7a0c4a.entry.js +1 -0
- package/dist/swirl-components/{p-692e4e5c.entry.js → p-2056c612.entry.js} +1 -1
- package/dist/swirl-components/p-2057f4dc.entry.js +1 -0
- package/dist/swirl-components/{p-a2a3e866.entry.js → p-217b2507.entry.js} +1 -1
- package/dist/swirl-components/p-21ff58e8.entry.js +1 -0
- package/dist/swirl-components/{p-b27dfc38.entry.js → p-27566da1.entry.js} +1 -1
- package/dist/swirl-components/{p-8cabe3e0.entry.js → p-2aede2ed.entry.js} +1 -1
- package/dist/swirl-components/{p-027eabd9.entry.js → p-2c78c2d5.entry.js} +1 -1
- package/dist/swirl-components/p-2c941975.entry.js +1 -0
- package/dist/swirl-components/p-2e733839.entry.js +1 -0
- package/dist/swirl-components/{p-5028921b.entry.js → p-2ea576e0.entry.js} +1 -1
- package/dist/swirl-components/{p-15b398b3.entry.js → p-2edc08f0.entry.js} +1 -1
- package/dist/swirl-components/p-33e4b66d.entry.js +8 -0
- package/dist/swirl-components/p-34e4e242.entry.js +1 -0
- package/dist/swirl-components/{p-f8b0f92a.entry.js → p-354e974d.entry.js} +1 -1
- package/dist/swirl-components/{p-ab7a08a6.entry.js → p-3a8af86e.entry.js} +1 -1
- package/dist/swirl-components/{p-9f45803b.entry.js → p-3e0f6d31.entry.js} +1 -1
- package/dist/swirl-components/{p-f09a3f4e.entry.js → p-429005ee.entry.js} +1 -1
- package/dist/swirl-components/p-4464e2c4.entry.js +1 -0
- package/dist/swirl-components/{p-e3293a79.entry.js → p-447ef6eb.entry.js} +1 -1
- package/dist/swirl-components/{p-409900a9.entry.js → p-44a74d62.entry.js} +1 -1
- package/dist/swirl-components/p-4a847ce0.entry.js +1 -0
- package/dist/swirl-components/p-4ef99de5.js +1 -0
- package/dist/swirl-components/p-50430bab.entry.js +1 -0
- package/dist/swirl-components/{p-70805149.entry.js → p-50ae0963.entry.js} +1 -1
- package/dist/swirl-components/{p-5d0acbf4.entry.js → p-5166e355.entry.js} +1 -1
- package/dist/swirl-components/{p-968adc69.entry.js → p-537b28c8.entry.js} +1 -1
- package/dist/swirl-components/{p-e8618da9.entry.js → p-541c943f.entry.js} +1 -1
- package/dist/swirl-components/{p-8f3d1f73.entry.js → p-5540b8cf.entry.js} +1 -1
- package/dist/swirl-components/p-56499a10.entry.js +1 -0
- package/dist/swirl-components/{p-4307ddfe.entry.js → p-58f83fcc.entry.js} +1 -1
- package/dist/swirl-components/p-619061ef.entry.js +1 -0
- package/dist/swirl-components/{p-294983c3.entry.js → p-61ad8c1a.entry.js} +1 -1
- package/dist/swirl-components/p-61b7f41b.entry.js +1 -0
- package/dist/swirl-components/{p-17e7ea80.entry.js → p-62f0b76b.entry.js} +1 -1
- package/dist/swirl-components/{p-5f461f84.entry.js → p-64cdef0c.entry.js} +1 -1
- package/dist/swirl-components/p-6526bf3e.js +1 -0
- package/dist/swirl-components/{p-6c620f94.entry.js → p-668539d3.entry.js} +1 -1
- package/dist/swirl-components/p-67e86a11.entry.js +1 -0
- package/dist/swirl-components/{p-e7c325b7.entry.js → p-730760c1.entry.js} +1 -1
- package/dist/swirl-components/{p-1bff5707.entry.js → p-79486690.entry.js} +1 -1
- package/dist/swirl-components/{p-474f4c76.entry.js → p-7a6f1bf2.entry.js} +1 -1
- package/dist/swirl-components/p-7b0adf16.js +7 -0
- package/dist/swirl-components/{p-582364ee.entry.js → p-7c32e01c.entry.js} +1 -1
- package/dist/swirl-components/{p-d69a0a99.entry.js → p-7cad01ab.entry.js} +1 -1
- package/dist/swirl-components/{p-8d998974.entry.js → p-7de7d7c4.entry.js} +1 -1
- package/dist/swirl-components/p-7f5648ca.entry.js +1 -0
- package/dist/swirl-components/{p-eac6d46d.entry.js → p-80c7ab11.entry.js} +1 -1
- package/dist/swirl-components/{p-2bcb979a.entry.js → p-81b80dd4.entry.js} +1 -1
- package/dist/swirl-components/p-8317b681.entry.js +1 -0
- package/dist/swirl-components/{p-c6b1fe02.entry.js → p-8342ee34.entry.js} +1 -1
- package/dist/swirl-components/{p-1391e221.entry.js → p-8667eb55.entry.js} +1 -1
- package/dist/swirl-components/p-87ce453b.entry.js +49 -0
- package/dist/swirl-components/{p-0a5d1a8f.entry.js → p-87d2ee0e.entry.js} +1 -1
- package/dist/swirl-components/p-8ea0a318.entry.js +1 -0
- package/dist/swirl-components/{p-3335383c.entry.js → p-8effa03e.entry.js} +1 -1
- package/dist/swirl-components/{p-d9760e10.entry.js → p-8f07da3d.entry.js} +1 -1
- package/dist/swirl-components/{p-2fa4c633.entry.js → p-8f52577a.entry.js} +1 -1
- package/dist/swirl-components/{p-170a2b48.entry.js → p-8fd083ba.entry.js} +1 -1
- package/dist/swirl-components/p-905e3f32.entry.js +1 -0
- package/dist/swirl-components/p-9142e03b.js +1 -0
- package/dist/swirl-components/p-92b0a462.entry.js +1 -0
- package/dist/swirl-components/p-94cefacc.entry.js +1 -0
- package/dist/swirl-components/{p-c9307120.entry.js → p-99ba3b0c.entry.js} +1 -1
- package/dist/swirl-components/{p-c63c0897.entry.js → p-9d8e7ff0.entry.js} +1 -1
- package/dist/swirl-components/{p-d2311589.entry.js → p-9d94f15b.entry.js} +1 -1
- package/dist/swirl-components/p-9dce0e50.entry.js +1 -0
- package/dist/swirl-components/p-9f24f03d.entry.js +1 -0
- package/dist/swirl-components/{p-67626481.entry.js → p-a0c73040.entry.js} +1 -1
- package/dist/swirl-components/p-a0e0322a.entry.js +1 -0
- package/dist/swirl-components/p-a6c15dd2.entry.js +1 -0
- package/dist/swirl-components/{p-99244721.entry.js → p-a8fde9b6.entry.js} +1 -1
- package/dist/swirl-components/{p-d730ab29.entry.js → p-aba143bd.entry.js} +1 -1
- package/dist/swirl-components/p-ada769a2.entry.js +1 -0
- package/dist/swirl-components/{p-3991c596.entry.js → p-aebd2770.entry.js} +1 -1
- package/dist/swirl-components/{p-8ee094ca.entry.js → p-b40d02ab.entry.js} +1 -1
- package/dist/swirl-components/{p-91039432.entry.js → p-b5886f1e.entry.js} +1 -1
- package/dist/swirl-components/{p-49abf88c.entry.js → p-b5bff846.entry.js} +1 -1
- package/dist/swirl-components/{p-4e08d391.entry.js → p-b73f46e9.entry.js} +1 -1
- package/dist/swirl-components/{p-898341d1.entry.js → p-bb664758.entry.js} +1 -1
- package/dist/swirl-components/{p-32c2d812.entry.js → p-bbc4dfae.entry.js} +1 -1
- package/dist/swirl-components/p-bc1985c0.entry.js +1 -0
- package/dist/swirl-components/p-c0036f1f.entry.js +1 -0
- package/dist/swirl-components/p-c00ec508.entry.js +1 -0
- package/dist/swirl-components/{p-297800ad.entry.js → p-c089a86f.entry.js} +1 -1
- package/dist/swirl-components/p-c1119f03.entry.js +1 -0
- package/dist/swirl-components/{p-38d22e69.entry.js → p-c1407ccd.entry.js} +1 -1
- package/dist/swirl-components/{p-d16f5f72.entry.js → p-c1afbdd8.entry.js} +1 -1
- package/dist/swirl-components/p-c1d740a2.entry.js +1 -0
- package/dist/swirl-components/p-c3a1b027.entry.js +1 -0
- package/dist/swirl-components/p-c3badef7.entry.js +1 -0
- package/dist/swirl-components/{p-d78eb6d8.entry.js → p-c4f0b6bd.entry.js} +1 -1
- package/dist/swirl-components/p-c6902302.entry.js +1 -0
- package/dist/swirl-components/p-c7326b88.entry.js +1 -0
- package/dist/swirl-components/p-c783221d.entry.js +1 -0
- package/dist/swirl-components/{p-5af19090.entry.js → p-c81bd519.entry.js} +1 -1
- package/dist/swirl-components/{p-33e363ed.entry.js → p-cb7bca01.entry.js} +1 -1
- package/dist/swirl-components/p-cddec2c8.entry.js +1 -0
- package/dist/swirl-components/p-cef24ae4.entry.js +1 -0
- package/dist/swirl-components/{p-7a1181b5.entry.js → p-d02acd75.entry.js} +1 -1
- package/dist/swirl-components/p-d20dbf47.entry.js +1 -0
- package/dist/swirl-components/{p-20ac0472.entry.js → p-d3243268.entry.js} +1 -1
- package/dist/swirl-components/p-d51a5f4f.entry.js +1 -0
- package/dist/swirl-components/{p-941e7960.entry.js → p-d5b02a31.entry.js} +1 -1
- package/dist/swirl-components/{p-3310a6e2.entry.js → p-d82fce3d.entry.js} +1 -1
- package/dist/swirl-components/{p-634e09ad.entry.js → p-d8c4dfb3.entry.js} +1 -1
- package/dist/swirl-components/{p-2aaeb1e6.entry.js → p-ddb3b371.entry.js} +1 -1
- package/dist/swirl-components/p-ddd49304.entry.js +1 -0
- package/dist/swirl-components/{p-043d093e.entry.js → p-e0193bd5.entry.js} +1 -1
- package/dist/swirl-components/p-e1abf6d5.entry.js +1 -0
- package/dist/swirl-components/{p-5e45f6dc.entry.js → p-e407f7c4.entry.js} +1 -1
- package/dist/swirl-components/{p-acd8fa1d.entry.js → p-e4177f2f.entry.js} +1 -1
- package/dist/swirl-components/p-e60c8c01.entry.js +1 -0
- package/dist/swirl-components/p-e89d3b8c.entry.js +1 -0
- package/dist/swirl-components/p-e8bebe03.entry.js +1 -0
- package/dist/swirl-components/p-e8f693b7.entry.js +1 -0
- package/dist/swirl-components/{p-ed56aa85.entry.js → p-ec21cd3f.entry.js} +1 -1
- package/dist/swirl-components/{p-1339648a.entry.js → p-ec750d72.entry.js} +1 -1
- package/dist/swirl-components/{p-4268041a.entry.js → p-ed5bdc5c.entry.js} +1 -1
- package/dist/swirl-components/{p-4d7dcfee.entry.js → p-eed748e6.entry.js} +1 -1
- package/dist/swirl-components/{p-0d66f638.entry.js → p-ef58fc1e.entry.js} +1 -1
- package/dist/swirl-components/{p-d15994cb.entry.js → p-f4b96d3b.entry.js} +1 -1
- package/dist/swirl-components/{p-92709d5b.entry.js → p-f573b3f3.entry.js} +1 -1
- package/dist/swirl-components/p-f5c1afb6.entry.js +1 -0
- package/dist/swirl-components/{p-38d67d0e.entry.js → p-f828f836.entry.js} +1 -1
- package/dist/swirl-components/{p-88abc2db.entry.js → p-fa67dbce.entry.js} +1 -1
- package/dist/swirl-components/p-fbd4380b.entry.js +1 -0
- package/dist/swirl-components/{p-dbd1b662.entry.js → p-fc65574b.entry.js} +1 -1
- package/dist/swirl-components/{p-6043df71.entry.js → p-fe82f579.entry.js} +1 -1
- package/dist/swirl-components/{p-ebc078da.entry.js → p-feda757e.entry.js} +1 -1
- package/dist/swirl-components/p-ff161795.entry.js +1 -0
- package/dist/swirl-components/swirl-components.css +11 -1
- package/dist/swirl-components/swirl-components.esm.js +1 -1
- package/dist/types/components/swirl-action-list-item/swirl-action-list-item.d.ts +2 -2
- package/dist/types/components/swirl-app-layout/swirl-app-layout.d.ts +2 -2
- package/dist/types/components/swirl-autocomplete/swirl-autocomplete.d.ts +3 -2
- package/dist/types/components/swirl-avatar/swirl-avatar.d.ts +4 -4
- package/dist/types/components/swirl-badge/swirl-badge.d.ts +3 -3
- package/dist/types/components/swirl-banner/swirl-banner.d.ts +2 -2
- package/dist/types/components/swirl-box/swirl-box.d.ts +2 -2
- package/dist/types/components/swirl-button/swirl-button.d.ts +5 -5
- package/dist/types/components/swirl-button-group/swirl-button-group.d.ts +1 -1
- package/dist/types/components/swirl-checkbox/swirl-checkbox.d.ts +1 -1
- package/dist/types/components/swirl-chip/swirl-chip.d.ts +1 -1
- package/dist/types/components/swirl-date-input/swirl-date-input.d.ts +6 -3
- package/dist/types/components/swirl-date-picker/swirl-date-picker.d.ts +6 -10
- package/dist/types/components/swirl-date-picker/swirl-date-picker.stories.d.ts +0 -7
- package/dist/types/components/swirl-dialog/swirl-dialog.d.ts +1 -1
- package/dist/types/components/swirl-file-viewer/viewers/swirl-file-viewer-pdf/swirl-file-viewer-pdf.d.ts +1 -1
- package/dist/types/components/swirl-form-control/swirl-form-control.d.ts +2 -0
- package/dist/types/components/swirl-form-group/swirl-form-group.d.ts +1 -1
- package/dist/types/components/swirl-heading/swirl-heading.d.ts +8 -3
- package/dist/types/components/swirl-heading/swirl-heading.stories.d.ts +5 -0
- package/dist/types/components/swirl-icon/icons/swirl-icon-drag-handle.d.ts +5 -0
- package/dist/types/components/swirl-icon/swirl-icon.types.d.ts +1 -1
- package/dist/types/components/swirl-inline-error/swirl-inline-error.d.ts +1 -1
- package/dist/types/components/swirl-link/swirl-link.d.ts +1 -1
- package/dist/types/components/swirl-option-list/swirl-option-list.d.ts +21 -0
- package/dist/types/components/swirl-option-list-item/swirl-option-list-item.d.ts +9 -1
- package/dist/types/components/swirl-option-list-item/swirl-option-list-item.stories.d.ts +8 -0
- package/dist/types/components/swirl-pagination/swirl-pagination.d.ts +1 -1
- package/dist/types/components/swirl-popover/swirl-popover.d.ts +1 -1
- package/dist/types/components/swirl-progress-indicator/swirl-progress-indicator.d.ts +2 -2
- package/dist/types/components/swirl-radio/swirl-radio.d.ts +1 -1
- package/dist/types/components/swirl-select/swirl-select.d.ts +2 -1
- package/dist/types/components/swirl-skeleton-box/swirl-skeleton-box.d.ts +9 -0
- package/dist/types/components/swirl-skeleton-box/swirl-skeleton-box.stories.d.ts +13 -0
- package/dist/types/components/swirl-skeleton-text/swirl-skeleton-text.d.ts +7 -0
- package/dist/types/components/swirl-skeleton-text/swirl-skeleton-text.stories.d.ts +13 -0
- package/dist/types/components/swirl-spinner/swirl-spinner.d.ts +1 -1
- package/dist/types/components/swirl-stack/swirl-stack.d.ts +4 -4
- package/dist/types/components/swirl-switch/swirl-switch.d.ts +1 -1
- package/dist/types/components/swirl-table-column/swirl-table-column.d.ts +1 -1
- package/dist/types/components/swirl-tag/swirl-tag.d.ts +1 -1
- package/dist/types/components/swirl-text/swirl-text.d.ts +11 -5
- package/dist/types/components/swirl-text/swirl-text.stories.d.ts +5 -0
- package/dist/types/components/swirl-text-input/swirl-text-input.d.ts +3 -2
- package/dist/types/components/swirl-theme-provider/swirl-theme-provider.d.ts +5 -5
- package/dist/types/components/swirl-thumbnail/swirl-thumbnail.d.ts +2 -2
- package/dist/types/components/swirl-toast/swirl-toast.d.ts +1 -1
- package/dist/types/components/swirl-toast-provider/swirl-toast-provider.d.ts +2 -2
- package/dist/types/components/swirl-tooltip/swirl-tooltip.d.ts +1 -1
- package/dist/types/components.d.ts +151 -13
- package/dist/types/index.d.ts +2 -0
- package/dist/types/prototypes/file-manager/file-manager.d.ts +2 -2
- package/dist/types/stencil-public-runtime.d.ts +91 -19
- package/dist/types/utils.d.ts +1 -0
- package/dist/typings.d.ts +1 -0
- package/loader/index.d.ts +9 -0
- package/loader/package.json +1 -0
- package/package.json +27 -15
- package/vscode-data.json +166 -0
- package/dist/cjs/swirl-icon-check-small_3.cjs.entry.js +0 -261
- package/dist/esm/_commonjsHelpers-44457d8d.js +0 -36
- package/dist/esm/swirl-icon-check-small_3.entry.js +0 -255
- package/dist/swirl-components/p-0206d806.entry.js +0 -1
- package/dist/swirl-components/p-06e76536.entry.js +0 -1
- package/dist/swirl-components/p-0cb291d0.entry.js +0 -1
- package/dist/swirl-components/p-0dcba8b2.entry.js +0 -1
- package/dist/swirl-components/p-0ed40682.entry.js +0 -1
- package/dist/swirl-components/p-1133d7f4.entry.js +0 -1
- package/dist/swirl-components/p-1253d22b.entry.js +0 -1
- package/dist/swirl-components/p-13295f24.entry.js +0 -1
- package/dist/swirl-components/p-21267175.entry.js +0 -1
- package/dist/swirl-components/p-29e918f4.entry.js +0 -36
- package/dist/swirl-components/p-2a9cacb2.entry.js +0 -1
- package/dist/swirl-components/p-30740007.entry.js +0 -1
- package/dist/swirl-components/p-31943bc0.entry.js +0 -1
- package/dist/swirl-components/p-31f9bc42.entry.js +0 -1
- package/dist/swirl-components/p-36573727.entry.js +0 -1
- package/dist/swirl-components/p-4181aa7a.entry.js +0 -1
- package/dist/swirl-components/p-4a16e7e1.entry.js +0 -1
- package/dist/swirl-components/p-4af06a9d.entry.js +0 -1
- package/dist/swirl-components/p-4f04a176.entry.js +0 -1
- package/dist/swirl-components/p-51097641.entry.js +0 -1
- package/dist/swirl-components/p-5612f03c.entry.js +0 -1
- package/dist/swirl-components/p-59bfb6f7.entry.js +0 -1
- package/dist/swirl-components/p-6272f11a.entry.js +0 -1
- package/dist/swirl-components/p-659b4fcb.entry.js +0 -1
- package/dist/swirl-components/p-6baff764.entry.js +0 -1
- package/dist/swirl-components/p-6f039422.entry.js +0 -1
- package/dist/swirl-components/p-708ea5cf.entry.js +0 -1
- package/dist/swirl-components/p-733abfbd.entry.js +0 -1
- package/dist/swirl-components/p-745ae10f.entry.js +0 -1
- package/dist/swirl-components/p-7602ab40.entry.js +0 -1
- package/dist/swirl-components/p-76e4350f.entry.js +0 -1
- package/dist/swirl-components/p-7a00efe8.entry.js +0 -1
- package/dist/swirl-components/p-7c514ca1.entry.js +0 -1
- package/dist/swirl-components/p-7f642be8.entry.js +0 -1
- package/dist/swirl-components/p-8157c96f.entry.js +0 -1
- package/dist/swirl-components/p-96ee66e7.entry.js +0 -1
- package/dist/swirl-components/p-9a74850d.entry.js +0 -1
- package/dist/swirl-components/p-9fe00e8a.js +0 -2
- package/dist/swirl-components/p-a0a3e5d3.entry.js +0 -1
- package/dist/swirl-components/p-a333b07d.entry.js +0 -1
- package/dist/swirl-components/p-a5497705.entry.js +0 -1
- package/dist/swirl-components/p-a61783f1.entry.js +0 -1
- package/dist/swirl-components/p-a76e4ffc.entry.js +0 -1
- package/dist/swirl-components/p-bd4b3edf.entry.js +0 -1
- package/dist/swirl-components/p-c0402092.entry.js +0 -1
- package/dist/swirl-components/p-c45a50a2.entry.js +0 -1
- package/dist/swirl-components/p-cbd8f173.entry.js +0 -1
- package/dist/swirl-components/p-d09dc70d.entry.js +0 -7
- package/dist/swirl-components/p-d3d722dc.js +0 -7
- package/dist/swirl-components/p-d46f437e.entry.js +0 -1
- package/dist/swirl-components/p-d97d183f.js +0 -1
- package/dist/swirl-components/p-e0aca739.entry.js +0 -1
- package/dist/swirl-components/p-e8bb09e8.js +0 -1
- package/dist/swirl-components/p-ea5e12d7.entry.js +0 -1
- package/dist/swirl-components/p-f06a85d3.entry.js +0 -1
- package/dist/swirl-components/p-f17a9780.entry.js +0 -1
- package/dist/swirl-components/p-f2763bd6.entry.js +0 -1
- package/dist/swirl-components/p-fa9e7b73.entry.js +0 -1
- package/dist/swirl-components/p-fb50f7b6.entry.js +0 -1
|
@@ -0,0 +1,761 @@
|
|
|
1
|
+
import { c as createCommonjsModule, a as commonjsGlobal } from './_commonjsHelpers-10467d11.js';
|
|
2
|
+
|
|
3
|
+
var balancetext = createCommonjsModule(function (module) {
|
|
4
|
+
/*
|
|
5
|
+
* Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License. *
|
|
18
|
+
*/
|
|
19
|
+
/**
|
|
20
|
+
* balancetext.js
|
|
21
|
+
*
|
|
22
|
+
* Author: Randy Edmunds
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/* global define, module */
|
|
26
|
+
|
|
27
|
+
/*
|
|
28
|
+
* Copyright (c) 2007-2009 unscriptable.com and John M. Hann
|
|
29
|
+
*
|
|
30
|
+
* Permission is hereby granted, free of charge, to any person
|
|
31
|
+
* obtaining a copy of this software and associated documentation
|
|
32
|
+
* files (the “Software”), to deal in the Software without
|
|
33
|
+
* restriction, including without limitation the rights to use,
|
|
34
|
+
* copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
35
|
+
* copies of the Software, and to permit persons to whom the
|
|
36
|
+
* Software is furnished to do so, subject to the following
|
|
37
|
+
* conditions:
|
|
38
|
+
*
|
|
39
|
+
* The above copyright notice and this permission notice shall be
|
|
40
|
+
* included in all copies or substantial portions of the Software.
|
|
41
|
+
*
|
|
42
|
+
* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
|
|
43
|
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
44
|
+
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
45
|
+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
46
|
+
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
47
|
+
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
48
|
+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
49
|
+
* OTHER DEALINGS IN THE SOFTWARE.
|
|
50
|
+
*
|
|
51
|
+
* Except as contained in this notice, the name(s) of the above
|
|
52
|
+
* copyright holders (unscriptable.com and John M. Hann) shall not be
|
|
53
|
+
* used in advertising or otherwise to promote the sale, use or other
|
|
54
|
+
* dealings in this Software without prior written authorization.
|
|
55
|
+
*
|
|
56
|
+
* http://unscriptable.com/index.php/2009/03/20/debouncing-javascript-methods/
|
|
57
|
+
*
|
|
58
|
+
* Tested to work on (lowest browser):
|
|
59
|
+
* - Sarari 4
|
|
60
|
+
* - Chrome 16
|
|
61
|
+
* - Firefox 10
|
|
62
|
+
* - IE 9
|
|
63
|
+
* - Edge 13
|
|
64
|
+
*/
|
|
65
|
+
|
|
66
|
+
(function (root, factory) {
|
|
67
|
+
if (module.exports) {
|
|
68
|
+
module.exports = factory();
|
|
69
|
+
} else {
|
|
70
|
+
root.balanceText = factory();
|
|
71
|
+
}
|
|
72
|
+
}(commonjsGlobal, () => {
|
|
73
|
+
/**
|
|
74
|
+
* Line breaking global vars
|
|
75
|
+
*/
|
|
76
|
+
let breakMatches, wsnwMatches, wsnwOffset;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Selectors and elements to watch;
|
|
80
|
+
* calling $.balanceText(elements) adds "elements" to this list.
|
|
81
|
+
*/
|
|
82
|
+
const watching = {
|
|
83
|
+
sel: [], // default class to watch
|
|
84
|
+
el: [],
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Have handlers been initialized?
|
|
89
|
+
*/
|
|
90
|
+
let handlersInitialized = false;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Is this a polyfill?
|
|
94
|
+
*/
|
|
95
|
+
let polyfilled = false;
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Do nothing
|
|
100
|
+
*/
|
|
101
|
+
function noop() { }
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Loop that works with array-likes
|
|
105
|
+
* @param {Array-like} elements - List of elements to run a function on
|
|
106
|
+
* @param {Function} callback - The function to call on each supplied element
|
|
107
|
+
*/
|
|
108
|
+
function forEach(elements, callback) {
|
|
109
|
+
Array.prototype.forEach.call(elements, callback);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Polyfill for $(document).ready()
|
|
114
|
+
*
|
|
115
|
+
* @param {Function} fn - The function to execute when the document is ready
|
|
116
|
+
*/
|
|
117
|
+
function ready(fn) {
|
|
118
|
+
if (document.readyState !== "loading") {
|
|
119
|
+
fn();
|
|
120
|
+
} else if (document.addEventListener) {
|
|
121
|
+
document.addEventListener("DOMContentLoaded", fn);
|
|
122
|
+
} else {
|
|
123
|
+
document.attachEvent("onreadystatechange", () => {
|
|
124
|
+
if (document.readyState !== "loading") {
|
|
125
|
+
fn();
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Debounces a function over a threshold
|
|
133
|
+
*
|
|
134
|
+
* @param {Function} func - The function to debounce
|
|
135
|
+
* @param {number} threshold - time in ms
|
|
136
|
+
* @param {boolean} execAsap - when true, execute immediately
|
|
137
|
+
* @param args
|
|
138
|
+
* @return {Function} Debounced function
|
|
139
|
+
*/
|
|
140
|
+
function debounce(func, threshold, execAsap, ...args) {
|
|
141
|
+
let timeout;
|
|
142
|
+
|
|
143
|
+
return function () {
|
|
144
|
+
const obj = this;
|
|
145
|
+
|
|
146
|
+
function delayed() {
|
|
147
|
+
if (!execAsap) {
|
|
148
|
+
func.apply(obj, args);
|
|
149
|
+
}
|
|
150
|
+
timeout = null;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
if (timeout) {
|
|
154
|
+
clearTimeout(timeout);
|
|
155
|
+
} else if (execAsap) {
|
|
156
|
+
func.apply(obj, args);
|
|
157
|
+
}
|
|
158
|
+
timeout = setTimeout(delayed, threshold || 100);
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Determine whether the document supports TextWrap
|
|
164
|
+
* @return {boolean}
|
|
165
|
+
*/
|
|
166
|
+
function hasTextWrap() {
|
|
167
|
+
if (typeof window === "undefined") {
|
|
168
|
+
return false;
|
|
169
|
+
}
|
|
170
|
+
const { style } = document.documentElement;
|
|
171
|
+
return style.textWrap || style.WebkitTextWrap || style.MozTextWrap || style.MsTextWrap;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Object for tracking next whitespace params
|
|
176
|
+
*/
|
|
177
|
+
// eslint-disable-next-line camelcase
|
|
178
|
+
function NextWS_params() {
|
|
179
|
+
this.reset();
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
NextWS_params.prototype.reset = function () {
|
|
183
|
+
this.index = 0;
|
|
184
|
+
this.width = 0;
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Check if index is contained in previously calculated list of white-space:nowrap ranges
|
|
189
|
+
*
|
|
190
|
+
* @param {number} index - the index of the character to check
|
|
191
|
+
* @return {boolean}
|
|
192
|
+
*/
|
|
193
|
+
function isWhiteSpaceNoWrap(index) {
|
|
194
|
+
// Is index inside 1 of the ranges?
|
|
195
|
+
// start and end are breakable, but not inside range
|
|
196
|
+
return wsnwMatches.some(range => (range.start < index && index < range.end));
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Recursively calculate white-space:nowrap offsets for line.
|
|
201
|
+
*
|
|
202
|
+
* @param {Node} el - the element to act on
|
|
203
|
+
* @param {boolean} includeTag - include length of tag itself
|
|
204
|
+
*/
|
|
205
|
+
function recursiveCalcNoWrapOffsetsForLine(el, includeTag) {
|
|
206
|
+
if (el.nodeType === el.ELEMENT_NODE) {
|
|
207
|
+
// Found an embedded tag
|
|
208
|
+
const style = window.getComputedStyle(el);
|
|
209
|
+
if (style.whiteSpace === "nowrap") {
|
|
210
|
+
// Tag with white-space:nowrap - add match, skip children
|
|
211
|
+
const len = el.outerHTML.length;
|
|
212
|
+
wsnwMatches.push({ start: wsnwOffset, end: wsnwOffset + len });
|
|
213
|
+
wsnwOffset += len;
|
|
214
|
+
} else {
|
|
215
|
+
// Tag without white-space:nowrap - recursively check children of tag
|
|
216
|
+
forEach(el.childNodes, (child) => {
|
|
217
|
+
recursiveCalcNoWrapOffsetsForLine(child, true);
|
|
218
|
+
});
|
|
219
|
+
if (includeTag) {
|
|
220
|
+
// Length of opening tag, attributes, and closing tag
|
|
221
|
+
wsnwOffset += (el.outerHTML.length - el.innerHTML.length);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
} else if (el.nodeType === el.COMMENT_NODE) {
|
|
225
|
+
wsnwOffset += el.length + 7; // delimiter: <!-- -->
|
|
226
|
+
} else if (el.nodeType === el.PROCESSING_INSTRUCTION_NODE) {
|
|
227
|
+
wsnwOffset += el.length + 2; // delimiter: < >
|
|
228
|
+
} else {
|
|
229
|
+
// Text node: add length
|
|
230
|
+
wsnwOffset += el.length;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Calculate white-space:nowrap offsets for line.
|
|
236
|
+
*
|
|
237
|
+
* @param {Node} el - the element to act on
|
|
238
|
+
* @param {string} oldWS - "old" whitespace setting for temporarily resetting
|
|
239
|
+
* @param {number} lineCharOffset - char offset of current line from start of text
|
|
240
|
+
*/
|
|
241
|
+
function calcNoWrapOffsetsForLine(el, oldWS, lineCharOffset) {
|
|
242
|
+
// For first line (lineCharOffset === 0), calculate start and end offsets for each
|
|
243
|
+
// white-space:nowrap element in the line.
|
|
244
|
+
if (lineCharOffset === 0) {
|
|
245
|
+
// Reset whiteSpace setting when breakMatches is being calculated
|
|
246
|
+
// so white-space:nowrap can be detected in text
|
|
247
|
+
el.style.whiteSpace = oldWS;
|
|
248
|
+
|
|
249
|
+
wsnwOffset = 0;
|
|
250
|
+
wsnwMatches = [];
|
|
251
|
+
recursiveCalcNoWrapOffsetsForLine(el, false);
|
|
252
|
+
|
|
253
|
+
// Restore temporary whitespace setting to recalc width
|
|
254
|
+
el.style.whiteSpace = "nowrap";
|
|
255
|
+
} else {
|
|
256
|
+
// For all other lines, update the offsets for current line
|
|
257
|
+
// 1. Ignore matches less than offset
|
|
258
|
+
// 2. Subtract offset from remaining matches
|
|
259
|
+
const newMatches = [];
|
|
260
|
+
wsnwMatches.forEach((match) => {
|
|
261
|
+
if (match.start > lineCharOffset) {
|
|
262
|
+
newMatches.push({ start: match.start - lineCharOffset, end: match.end - lineCharOffset });
|
|
263
|
+
}
|
|
264
|
+
});
|
|
265
|
+
wsnwMatches = newMatches;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Strip balance-text tags from an element inserted in previous run
|
|
271
|
+
*
|
|
272
|
+
* @param {Node} el - the element to act on
|
|
273
|
+
*/
|
|
274
|
+
function removeTags(el) {
|
|
275
|
+
// Remove soft-hyphen breaks
|
|
276
|
+
let brs = el.querySelectorAll('br[data-owner="balance-text-hyphen"]');
|
|
277
|
+
forEach(brs, (br) => {
|
|
278
|
+
br.outerHTML = "";
|
|
279
|
+
});
|
|
280
|
+
|
|
281
|
+
// Replace other breaks with whitespace
|
|
282
|
+
brs = el.querySelectorAll('br[data-owner="balance-text"]');
|
|
283
|
+
forEach(brs, (br) => {
|
|
284
|
+
br.outerHTML = " ";
|
|
285
|
+
});
|
|
286
|
+
|
|
287
|
+
// Restore hyphens inserted for soft-hyphens
|
|
288
|
+
let spans = el.querySelectorAll('span[data-owner="balance-text-softhyphen"]');
|
|
289
|
+
if (spans.length > 0) {
|
|
290
|
+
forEach(spans, (span) => {
|
|
291
|
+
const textNode = document.createTextNode("\u00ad");
|
|
292
|
+
span.parentNode.insertBefore(textNode, span);
|
|
293
|
+
span.parentNode.removeChild(span);
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
// Remove spans inserted for justified text
|
|
298
|
+
spans = el.querySelectorAll('span[data-owner="balance-text-justify"]');
|
|
299
|
+
if (spans.length > 0) {
|
|
300
|
+
let txt = "";
|
|
301
|
+
forEach(spans, (span) => {
|
|
302
|
+
txt += span.textContent;
|
|
303
|
+
span.parentNode.removeChild(span);
|
|
304
|
+
});
|
|
305
|
+
el.innerHTML = txt;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* Checks to see if we should justify the balanced text with the
|
|
311
|
+
* element based on the textAlign property in the computed CSS
|
|
312
|
+
*
|
|
313
|
+
* @param {Node} el - element to check
|
|
314
|
+
* @return {boolean}
|
|
315
|
+
*/
|
|
316
|
+
const isJustified = function (el) {
|
|
317
|
+
const style = el.currentStyle || window.getComputedStyle(el, null);
|
|
318
|
+
return (style.textAlign === "justify");
|
|
319
|
+
};
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* Add whitespace after words in text to justify the string to
|
|
323
|
+
* the specified size.
|
|
324
|
+
* @param {Node} el - the element to justify
|
|
325
|
+
* @param {string} txt - text string
|
|
326
|
+
* @param {number} conWidth - container width
|
|
327
|
+
* @return {string} Justified text
|
|
328
|
+
*/
|
|
329
|
+
function justify(el, txt, conWidth) {
|
|
330
|
+
txt = txt.trim();
|
|
331
|
+
const words = txt.split(" ").length;
|
|
332
|
+
txt = `${txt} `;
|
|
333
|
+
|
|
334
|
+
// if we don't have at least 2 words, no need to justify.
|
|
335
|
+
if (words < 2) {
|
|
336
|
+
return txt;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
// Find width of text in the DOM
|
|
340
|
+
const tmp = document.createElement("span");
|
|
341
|
+
tmp.innerHTML = txt;
|
|
342
|
+
el.appendChild(tmp);
|
|
343
|
+
const size = tmp.offsetWidth;
|
|
344
|
+
tmp.parentNode.removeChild(tmp);
|
|
345
|
+
|
|
346
|
+
// Figure out our word spacing and return the element
|
|
347
|
+
const wordSpacing = Math.floor((conWidth - size) / (words - 1));
|
|
348
|
+
tmp.style.wordSpacing = `${wordSpacing}px`;
|
|
349
|
+
tmp.setAttribute("data-owner", "balance-text-justify");
|
|
350
|
+
|
|
351
|
+
const div = document.createElement("div");
|
|
352
|
+
div.appendChild(tmp);
|
|
353
|
+
return div.innerHTML;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* Returns true iff char at index is a break char outside of HTML < > tags.
|
|
358
|
+
* Break char can be: whitespace (except non-breaking-space: u00a0),
|
|
359
|
+
* hypen, emdash (u2014), endash (u2013), or soft-hyphen (u00ad).
|
|
360
|
+
*
|
|
361
|
+
* @param {string} txt - the text to check
|
|
362
|
+
* @param {number} index - the index of the character to check
|
|
363
|
+
* @return {boolean}
|
|
364
|
+
*/
|
|
365
|
+
function isBreakChar(txt, index) {
|
|
366
|
+
const re = /([^\S\u00a0]|-|\u2014|\u2013|\u00ad)(?![^<]*>)/g;
|
|
367
|
+
let match;
|
|
368
|
+
|
|
369
|
+
if (!breakMatches) {
|
|
370
|
+
// Only calc break matches once per line
|
|
371
|
+
breakMatches = [];
|
|
372
|
+
match = re.exec(txt);
|
|
373
|
+
while (match !== null) {
|
|
374
|
+
if (!isWhiteSpaceNoWrap(match.index)) {
|
|
375
|
+
breakMatches.push(match.index);
|
|
376
|
+
}
|
|
377
|
+
match = re.exec(txt);
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
return breakMatches.indexOf(index) !== -1;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* In the current implementation, an index is a break
|
|
386
|
+
* opportunity in txt iff it is:
|
|
387
|
+
* - 0 or txt.length
|
|
388
|
+
* - index of a non-whitespace char immediately preceded by a
|
|
389
|
+
* whitespace, hyphen, soft-hyphen, em-dash, or en-dash char.
|
|
390
|
+
*
|
|
391
|
+
* Thus, it doesn't honour "white-space" or any other Unicode
|
|
392
|
+
* line-breaking classes.)
|
|
393
|
+
*
|
|
394
|
+
* @precondition 0 <= index && index <= txt.length
|
|
395
|
+
*
|
|
396
|
+
* @param {string} txt - the text to check
|
|
397
|
+
* @param {number} index - the index to check
|
|
398
|
+
* @return {boolean}
|
|
399
|
+
*/
|
|
400
|
+
function isBreakOpportunity(txt, index) {
|
|
401
|
+
return ((index === 0) || (index === txt.length) ||
|
|
402
|
+
(isBreakChar(txt, index - 1) && !isBreakChar(txt, index)));
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* Finds the first break opportunity (@see isBreakOpportunity)
|
|
407
|
+
* in txt that's both after-or-equal-to index c in the direction dir
|
|
408
|
+
* and resulting in line width equal to or past clamp(desWidth,
|
|
409
|
+
* 0, conWidth) in direction dir. Sets ret.index and ret.width
|
|
410
|
+
* to the corresponding index and line width (from the start of
|
|
411
|
+
* txt to ret.index).
|
|
412
|
+
*
|
|
413
|
+
* @param {Node} el - element
|
|
414
|
+
* @param {string} txt - text string
|
|
415
|
+
* @param {number} conWidth - container width
|
|
416
|
+
* @param {number} desWidth - desired width
|
|
417
|
+
* @param {number} dir - direction (-1 or +1)
|
|
418
|
+
* @param {number} c - char index (0 <= c && c <= txt.length)
|
|
419
|
+
* @param {Object} ret - return {index: {number}, width: {number}} of previous/next break
|
|
420
|
+
*/
|
|
421
|
+
function findBreakOpportunity(el, txt, conWidth, desWidth, dir, c, ret) {
|
|
422
|
+
let w;
|
|
423
|
+
|
|
424
|
+
if (txt && typeof txt === "string") {
|
|
425
|
+
for (;;) {
|
|
426
|
+
while (!isBreakOpportunity(txt, c)) {
|
|
427
|
+
c += dir;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
el.innerHTML = txt.substr(0, c);
|
|
431
|
+
w = el.offsetWidth;
|
|
432
|
+
|
|
433
|
+
if (dir < 0) {
|
|
434
|
+
if ((w <= desWidth) || (w <= 0) || (c === 0)) {
|
|
435
|
+
break;
|
|
436
|
+
}
|
|
437
|
+
} else if ((desWidth <= w) || (conWidth <= w) || (c === txt.length)) {
|
|
438
|
+
break;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
c += dir;
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
ret.index = c;
|
|
445
|
+
ret.width = w;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* Detects the width of a non-breaking space character, given the height of
|
|
450
|
+
* the element with no-wrap applied.
|
|
451
|
+
*
|
|
452
|
+
* @param {Node} el - element
|
|
453
|
+
* @param {number} h - height
|
|
454
|
+
* @return {number}
|
|
455
|
+
*/
|
|
456
|
+
function getSpaceWidth(el, h) {
|
|
457
|
+
const container = document.createElement("div");
|
|
458
|
+
|
|
459
|
+
container.style.display = "block";
|
|
460
|
+
container.style.position = "absolute";
|
|
461
|
+
container.style.bottom = 0;
|
|
462
|
+
container.style.right = 0;
|
|
463
|
+
container.style.width = 0;
|
|
464
|
+
container.style.height = 0;
|
|
465
|
+
container.style.margin = 0;
|
|
466
|
+
container.style.padding = 0;
|
|
467
|
+
container.style.visibility = "hidden";
|
|
468
|
+
container.style.overflow = "hidden";
|
|
469
|
+
|
|
470
|
+
const space = document.createElement("span");
|
|
471
|
+
|
|
472
|
+
space.style.fontSize = "2000px";
|
|
473
|
+
space.innerHTML = " ";
|
|
474
|
+
|
|
475
|
+
container.appendChild(space);
|
|
476
|
+
|
|
477
|
+
el.appendChild(container);
|
|
478
|
+
|
|
479
|
+
const dims = space.getBoundingClientRect();
|
|
480
|
+
container.parentNode.removeChild(container);
|
|
481
|
+
|
|
482
|
+
const spaceRatio = dims.height / dims.width;
|
|
483
|
+
|
|
484
|
+
return (h / spaceRatio);
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* Get a list of elements regardless of input
|
|
489
|
+
*
|
|
490
|
+
* @param {string|Node|Array-like} elements - The selector to query, one or more elements
|
|
491
|
+
* @return {Array<{Node}>}
|
|
492
|
+
*/
|
|
493
|
+
function getElementsList(elements) {
|
|
494
|
+
if (!elements) {
|
|
495
|
+
return [];
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
// is selector
|
|
499
|
+
if (typeof elements === "string") {
|
|
500
|
+
return document.querySelectorAll(elements);
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
// is single element
|
|
504
|
+
if (elements.tagName && elements.querySelectorAll) {
|
|
505
|
+
return [elements];
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
return elements;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
/**
|
|
512
|
+
* When a browser has native support for the text-wrap property,
|
|
513
|
+
* the text balanceText plugin will let the browser handle it natively,
|
|
514
|
+
* otherwise it will apply its own text balancing code.
|
|
515
|
+
*
|
|
516
|
+
* @param {string|Node|Array-like} elements - the list of elements to balance
|
|
517
|
+
*/
|
|
518
|
+
function balanceText(elements) {
|
|
519
|
+
forEach(getElementsList(elements), (el) => {
|
|
520
|
+
// In a lower level language, this algorithm takes time
|
|
521
|
+
// comparable to normal text layout other than the fact
|
|
522
|
+
// that we do two passes instead of one, so we should
|
|
523
|
+
// be able to do without this limit.
|
|
524
|
+
const maxTextWidth = 5000;
|
|
525
|
+
|
|
526
|
+
// strip balance-text generated tags
|
|
527
|
+
removeTags(el);
|
|
528
|
+
|
|
529
|
+
// save settings
|
|
530
|
+
const oldWS = el.style.whiteSpace;
|
|
531
|
+
const oldFloat = el.style.float;
|
|
532
|
+
const oldDisplay = el.style.display;
|
|
533
|
+
const oldPosition = el.style.position;
|
|
534
|
+
const oldLH = el.style.lineHeight;
|
|
535
|
+
|
|
536
|
+
// remove line height before measuring container size
|
|
537
|
+
el.style.lineHeight = "normal";
|
|
538
|
+
|
|
539
|
+
const containerWidth = el.offsetWidth;
|
|
540
|
+
const containerHeight = el.offsetHeight;
|
|
541
|
+
|
|
542
|
+
// temporary settings
|
|
543
|
+
el.style.whiteSpace = "nowrap";
|
|
544
|
+
el.style.float = "none";
|
|
545
|
+
el.style.display = "inline";
|
|
546
|
+
el.style.position = "static";
|
|
547
|
+
|
|
548
|
+
let nowrapWidth = el.offsetWidth;
|
|
549
|
+
const nowrapHeight = el.offsetHeight;
|
|
550
|
+
|
|
551
|
+
// An estimate of the average line width reduction due
|
|
552
|
+
// to trimming trailing space that we expect over all
|
|
553
|
+
// lines other than the last.
|
|
554
|
+
const spaceWidth = ((oldWS === "pre-wrap") ? 0 : getSpaceWidth(el, nowrapHeight));
|
|
555
|
+
|
|
556
|
+
if (containerWidth > 0 && // prevent divide by zero
|
|
557
|
+
nowrapWidth > containerWidth && // text is more than 1 line
|
|
558
|
+
nowrapWidth < maxTextWidth) { // text is less than arbitrary limit (make this a param?)
|
|
559
|
+
let remainingText = el.innerHTML;
|
|
560
|
+
let newText = "";
|
|
561
|
+
let lineText = "";
|
|
562
|
+
const shouldJustify = isJustified(el);
|
|
563
|
+
const totLines = Math.round(containerHeight / nowrapHeight);
|
|
564
|
+
let remLines = totLines;
|
|
565
|
+
let lineCharOffset = 0;
|
|
566
|
+
|
|
567
|
+
// loop vars
|
|
568
|
+
let desiredWidth, guessIndex, le, ge, splitIndex, isHyphen, isSoftHyphen;
|
|
569
|
+
|
|
570
|
+
// Determine where to break:
|
|
571
|
+
while (remLines > 1) {
|
|
572
|
+
// clear whitespace match cache for each line
|
|
573
|
+
breakMatches = null;
|
|
574
|
+
|
|
575
|
+
// Must calc white-space:nowrap offsets before first call to findBreakOpportunity()
|
|
576
|
+
calcNoWrapOffsetsForLine(el, oldWS, lineCharOffset);
|
|
577
|
+
|
|
578
|
+
desiredWidth = Math.round((nowrapWidth + spaceWidth) / remLines - spaceWidth);
|
|
579
|
+
|
|
580
|
+
// Guessed char index
|
|
581
|
+
guessIndex = Math.round((remainingText.length + 1) / remLines) - 1;
|
|
582
|
+
|
|
583
|
+
le = new NextWS_params();
|
|
584
|
+
|
|
585
|
+
// Find a breaking space somewhere before (or equal to) desired width,
|
|
586
|
+
// not necessarily the closest to the desired width.
|
|
587
|
+
findBreakOpportunity(el, remainingText, containerWidth, desiredWidth, -1, guessIndex, le);
|
|
588
|
+
|
|
589
|
+
// Find first breaking char after (or equal to) desired width.
|
|
590
|
+
ge = new NextWS_params();
|
|
591
|
+
guessIndex = le.index;
|
|
592
|
+
findBreakOpportunity(el, remainingText, containerWidth, desiredWidth, +1, guessIndex, ge);
|
|
593
|
+
|
|
594
|
+
// Find first breaking char before (or equal to) desired width.
|
|
595
|
+
le.reset();
|
|
596
|
+
guessIndex = ge.index;
|
|
597
|
+
findBreakOpportunity(el, remainingText, containerWidth, desiredWidth, -1, guessIndex, le);
|
|
598
|
+
|
|
599
|
+
// Find closest string to desired length
|
|
600
|
+
if (le.index === 0) {
|
|
601
|
+
splitIndex = ge.index;
|
|
602
|
+
} else if ((containerWidth < ge.width) || (le.index === ge.index)) {
|
|
603
|
+
splitIndex = le.index;
|
|
604
|
+
} else {
|
|
605
|
+
splitIndex = ((Math.abs(desiredWidth - le.width) < Math.abs(ge.width - desiredWidth))
|
|
606
|
+
? le.index
|
|
607
|
+
: ge.index);
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
// Break string
|
|
611
|
+
lineText = remainingText.substr(0, splitIndex).replace(/\s$/, "");
|
|
612
|
+
|
|
613
|
+
isSoftHyphen = Boolean(lineText.match(/\u00ad$/));
|
|
614
|
+
if (isSoftHyphen) {
|
|
615
|
+
// Replace soft-hyphen causing break with explicit hyphen
|
|
616
|
+
lineText = lineText.replace(/\u00ad$/, '<span data-owner="balance-text-softhyphen">-</span>');
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
if (shouldJustify) {
|
|
620
|
+
newText += justify(el, lineText, containerWidth);
|
|
621
|
+
} else {
|
|
622
|
+
newText += lineText;
|
|
623
|
+
isHyphen = isSoftHyphen || Boolean(lineText.match(/(-|\u2014|\u2013)$/));
|
|
624
|
+
newText += isHyphen ? '<br data-owner="balance-text-hyphen" />'
|
|
625
|
+
: '<br data-owner="balance-text" aria-hidden="true" />';
|
|
626
|
+
}
|
|
627
|
+
remainingText = remainingText.substr(splitIndex);
|
|
628
|
+
lineCharOffset = splitIndex;
|
|
629
|
+
|
|
630
|
+
// update counters
|
|
631
|
+
remLines--;
|
|
632
|
+
el.innerHTML = remainingText;
|
|
633
|
+
nowrapWidth = el.offsetWidth;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
if (shouldJustify) {
|
|
637
|
+
el.innerHTML = newText + justify(el, remainingText, containerWidth);
|
|
638
|
+
} else {
|
|
639
|
+
el.innerHTML = newText + remainingText;
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
// restore settings
|
|
644
|
+
el.style.whiteSpace = oldWS;
|
|
645
|
+
el.style.float = oldFloat;
|
|
646
|
+
el.style.display = oldDisplay;
|
|
647
|
+
el.style.position = oldPosition;
|
|
648
|
+
el.style.lineHeight = oldLH;
|
|
649
|
+
});
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
/**
|
|
653
|
+
* Call the balanceText plugin on elements that it's watching.
|
|
654
|
+
*/
|
|
655
|
+
function updateWatched() {
|
|
656
|
+
const selectors = watching.sel.join(",");
|
|
657
|
+
const selectedElements = getElementsList(selectors);
|
|
658
|
+
const elements = Array.prototype.concat.apply(watching.el, selectedElements);
|
|
659
|
+
balanceText(elements);
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
/**
|
|
663
|
+
* Initialize the events for which to re-apply BalanceText. They are:
|
|
664
|
+
* - Document ready
|
|
665
|
+
* - Document full load
|
|
666
|
+
* - Window resize
|
|
667
|
+
*/
|
|
668
|
+
function initHandlers() {
|
|
669
|
+
if (handlersInitialized) {
|
|
670
|
+
return;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
// Apply on DOM ready
|
|
674
|
+
ready(updateWatched);
|
|
675
|
+
|
|
676
|
+
// Reapply on full load
|
|
677
|
+
window.addEventListener("load", updateWatched);
|
|
678
|
+
|
|
679
|
+
// Reapply on resize
|
|
680
|
+
window.addEventListener("resize", debounce(updateWatched));
|
|
681
|
+
|
|
682
|
+
handlersInitialized = true;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
/**
|
|
686
|
+
* Apply the BalanceText routine on the document and watch the list
|
|
687
|
+
* of elements. On window resize, re-apply BalanceText to the given elements
|
|
688
|
+
*
|
|
689
|
+
* @param {string|Node|Array-like} elements - the elements to watch after applying BalanceText
|
|
690
|
+
*/
|
|
691
|
+
function balanceTextAndWatch(elements) {
|
|
692
|
+
if (typeof elements === "string") {
|
|
693
|
+
watching.sel.push(elements);
|
|
694
|
+
} else {
|
|
695
|
+
forEach(getElementsList(elements), (el) => {
|
|
696
|
+
watching.el.push(el);
|
|
697
|
+
});
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
initHandlers();
|
|
701
|
+
updateWatched();
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
/**
|
|
705
|
+
* Stop watching elements
|
|
706
|
+
*
|
|
707
|
+
* @param {string|Node|Array-like} elements
|
|
708
|
+
*/
|
|
709
|
+
function unwatch(elements) {
|
|
710
|
+
if (typeof elements === "string") {
|
|
711
|
+
watching.sel = watching.sel.filter(el => el !== elements);
|
|
712
|
+
} else {
|
|
713
|
+
elements = getElementsList(elements);
|
|
714
|
+
watching.el = watching.el.filter(el => elements.indexOf(el) === -1);
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
/**
|
|
719
|
+
* Treat this app as a polyfill. Watch for changes to the .balance-text selector
|
|
720
|
+
*/
|
|
721
|
+
function polyfill() {
|
|
722
|
+
if (polyfilled) {
|
|
723
|
+
return;
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
watching.sel.push(".balance-text");
|
|
727
|
+
initHandlers();
|
|
728
|
+
polyfilled = true;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
/**
|
|
732
|
+
* Public interface
|
|
733
|
+
*
|
|
734
|
+
* @param {string|Node|Array-like} elements - elements to balance
|
|
735
|
+
* @param {Object} options - processing options
|
|
736
|
+
* - {boolean} watch - watch elements for resize
|
|
737
|
+
*/
|
|
738
|
+
function publicInterface(elements, options) {
|
|
739
|
+
if (!elements) {
|
|
740
|
+
// empty call means polyfill (watch for changes)
|
|
741
|
+
polyfill();
|
|
742
|
+
} else if (options && options.watch === true) {
|
|
743
|
+
balanceTextAndWatch(elements);
|
|
744
|
+
} else if (options && options.watch === false) {
|
|
745
|
+
unwatch(elements);
|
|
746
|
+
} else {
|
|
747
|
+
balanceText(elements);
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
publicInterface.updateWatched = updateWatched;
|
|
752
|
+
|
|
753
|
+
if (hasTextWrap()) {
|
|
754
|
+
noop.updateWatched = noop;
|
|
755
|
+
return noop;
|
|
756
|
+
}
|
|
757
|
+
return publicInterface;
|
|
758
|
+
}));
|
|
759
|
+
});
|
|
760
|
+
|
|
761
|
+
export { balancetext as b };
|