@saasquatch/mint-components 1.3.3-0 → 1.3.3-1
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/CHANGELOG.md +165 -165
- package/LICENSE +21 -21
- package/package.json +94 -94
- package/readme.md +13 -13
- package/dist/cjs/ShadowViewAddon-b021dc8c.js +0 -127
- package/dist/cjs/cjs-1066ec21.js +0 -135
- package/dist/cjs/extends-0302d27d.js +0 -1151
- package/dist/cjs/global-5610b310.js +0 -26560
- package/dist/cjs/index-b0129cd6.js +0 -1730
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/index.module-03ce03c2.js +0 -7683
- package/dist/cjs/jsonpointer-11327262.js +0 -106
- package/dist/cjs/jss-preset-default.esm-6304d24f.js +0 -4273
- package/dist/cjs/loader.cjs.js +0 -25
- package/dist/cjs/mint-components.cjs.js +0 -46
- package/dist/cjs/mixins-7b7c59fe.js +0 -95
- package/dist/cjs/re-render-b5efae5f.js +0 -45
- package/dist/cjs/sqm-asset-card-view-07f86880.js +0 -52
- package/dist/cjs/sqm-asset-card.cjs.entry.js +0 -46
- package/dist/cjs/sqm-big-stat.cjs.entry.js +0 -30
- package/dist/cjs/sqm-divided-layout_26.cjs.entry.js +0 -26237
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +0 -35
- package/dist/cjs/sqm-hero-view-bb3d00a1.js +0 -149
- package/dist/cjs/sqm-hero.cjs.entry.js +0 -36
- package/dist/cjs/sqm-leaderboard-rank-view-c287ac06.js +0 -131
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +0 -83
- package/dist/cjs/sqm-leaderboard.cjs.entry.js +0 -69
- package/dist/cjs/sqm-name-fields-view-24614ac7.js +0 -54
- package/dist/cjs/sqm-name-fields.cjs.entry.js +0 -60
- package/dist/cjs/sqm-navigation-sidebar-item-view-153503f0.js +0 -44
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +0 -54
- package/dist/cjs/sqm-navigation-sidebar-view-d06e1885.js +0 -37
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +0 -23
- package/dist/cjs/sqm-popup-container.cjs.entry.js +0 -69
- package/dist/cjs/sqm-portal-container-view-d144735a.js +0 -31
- package/dist/cjs/sqm-portal-container.cjs.entry.js +0 -35
- package/dist/cjs/sqm-portal-email-verification-view-1d8728f9.js +0 -45
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +0 -103
- package/dist/cjs/sqm-portal-footer-view-dc4b0667.js +0 -83
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +0 -59
- package/dist/cjs/sqm-portal-forgot-password-view-1704d285.js +0 -46
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +0 -98
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +0 -32
- package/dist/cjs/sqm-portal-profile-view-a7519f19.js +0 -73
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +0 -249
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +0 -65
- package/dist/cjs/sqm-portal-reset-password-view-4d78fd6d.js +0 -82
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +0 -169
- package/dist/cjs/sqm-portal-section-view-3b008930.js +0 -28
- package/dist/cjs/sqm-portal-verify-email-view-b595e302.js +0 -48
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +0 -127
- package/dist/cjs/sqm-referral-table-column.cjs.entry.js +0 -30
- package/dist/cjs/sqm-referral-table-date-column.cjs.entry.js +0 -47
- package/dist/cjs/sqm-referral-table-rewards-column.cjs.entry.js +0 -38
- package/dist/cjs/sqm-referral-table-status-column.cjs.entry.js +0 -45
- package/dist/cjs/sqm-referral-table-user-column.cjs.entry.js +0 -57
- package/dist/cjs/sqm-route.cjs.entry.js +0 -18
- package/dist/cjs/sqm-share-code.cjs.entry.js +0 -87
- package/dist/cjs/sqm-share-link-view-a935d07e.js +0 -24
- package/dist/cjs/sqm-stat-container-view-ee7b00ff.js +0 -53
- package/dist/cjs/sqm-stat-container.cjs.entry.js +0 -29
- package/dist/cjs/sqm-text-span-view-b5ae787b.js +0 -60
- package/dist/cjs/sqm-text-span.cjs.entry.js +0 -23
- package/dist/cjs/sqm-titled-section.cjs.entry.js +0 -36
- package/dist/cjs/use-callback-fadb2643.js +0 -7
- package/dist/cjs/useDemoBigStat-2025ee9b.js +0 -872
- package/dist/cjs/utils-95e5317c.js +0 -28
- package/dist/collection/ShadowViewAddon.js +0 -35
- package/dist/collection/assets/PoweredBySaaSquatch.png +0 -0
- package/dist/collection/assets/saasquatch-logo-wide.jpeg +0 -0
- package/dist/collection/assets/saasquatch-logo.png +0 -0
- package/dist/collection/collection-manifest.json +0 -67
- package/dist/collection/components/sqm-asset-card/sqm-asset-card-view.js +0 -48
- package/dist/collection/components/sqm-asset-card/sqm-asset-card.js +0 -107
- package/dist/collection/components/sqm-asset-card/useAssetCard.js +0 -9
- package/dist/collection/components/sqm-big-stat/sqm-big-stat-view.js +0 -37
- package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +0 -137
- package/dist/collection/components/sqm-big-stat/useBigStat.js +0 -509
- package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +0 -28
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout-view.js +0 -54
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout.js +0 -76
- package/dist/collection/components/sqm-edit-profile/sqm-edit-profile-view.js +0 -55
- package/dist/collection/components/sqm-edit-profile/sqm-edit-profile.css +0 -70
- package/dist/collection/components/sqm-edit-profile/sqm-edit-profile.js +0 -279
- package/dist/collection/components/sqm-edit-profile/useEditProfile.js +0 -156
- package/dist/collection/components/sqm-form-message/sqm-form-message.css +0 -20
- package/dist/collection/components/sqm-form-message/sqm-form-message.js +0 -82
- package/dist/collection/components/sqm-graphql-client-provider/sqm-graphql-client-provider.js +0 -50
- package/dist/collection/components/sqm-graphql-client-provider/useGraphQLProvider.js +0 -14
- package/dist/collection/components/sqm-hero/sqm-hero-view.js +0 -130
- package/dist/collection/components/sqm-hero/sqm-hero.js +0 -138
- package/dist/collection/components/sqm-hook-story-container/sqm-hook-story-container.js +0 -39
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +0 -22
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.css +0 -37
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +0 -263
- package/dist/collection/components/sqm-leaderboard/useLeaderboard.js +0 -63
- package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank-view.js +0 -5
- package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank.css +0 -11
- package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank.js +0 -198
- package/dist/collection/components/sqm-leaderboard-rank/useLeaderboardRank.js +0 -38
- package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +0 -50
- package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +0 -114
- package/dist/collection/components/sqm-name-fields/useNameFields.js +0 -14
- package/dist/collection/components/sqm-navigation-menu/sqm-navigation-menu-view.js +0 -14
- package/dist/collection/components/sqm-navigation-menu/sqm-navigation-menu.css +0 -25
- package/dist/collection/components/sqm-navigation-menu/sqm-navigation-menu.js +0 -122
- package/dist/collection/components/sqm-navigation-menu/useNavigationMenu.js +0 -27
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.js +0 -33
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar.js +0 -24
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.js +0 -40
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js +0 -127
- package/dist/collection/components/sqm-navigation-sidebar-item/useNavigationSidebarItem.js +0 -14
- package/dist/collection/components/sqm-password-field/passwordValidation.js +0 -78
- package/dist/collection/components/sqm-password-field/sqm-password-field-view.js +0 -43
- package/dist/collection/components/sqm-password-field/sqm-password-field.js +0 -132
- package/dist/collection/components/sqm-password-field/usePasswordField.js +0 -25
- package/dist/collection/components/sqm-popup-container/sqm-popup-container-view.js +0 -11
- package/dist/collection/components/sqm-popup-container/sqm-popup-container.css +0 -11
- package/dist/collection/components/sqm-popup-container/sqm-popup-container.js +0 -139
- package/dist/collection/components/sqm-popup-container/usePopupContainer.js +0 -33
- package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password-view.js +0 -76
- package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +0 -281
- package/dist/collection/components/sqm-portal-change-password/usePortalChangePassword.js +0 -61
- package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +0 -27
- package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +0 -147
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification-view.js +0 -41
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js +0 -148
- package/dist/collection/components/sqm-portal-email-verification/usePortalEmailVerification.js +0 -47
- package/dist/collection/components/sqm-portal-footer/PoweredByImg.js +0 -11
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +0 -68
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer.js +0 -305
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js +0 -42
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +0 -149
- package/dist/collection/components/sqm-portal-forgot-password/usePortalForgotPassword.js +0 -43
- package/dist/collection/components/sqm-portal-frame/sqm-portal-frame-view.js +0 -55
- package/dist/collection/components/sqm-portal-frame/sqm-portal-frame.js +0 -78
- package/dist/collection/components/sqm-portal-frame/usePortalFrame.js +0 -13
- package/dist/collection/components/sqm-portal-login/sqm-portal-login-view.js +0 -47
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +0 -309
- package/dist/collection/components/sqm-portal-login/usePortalLogin.js +0 -47
- package/dist/collection/components/sqm-portal-logout/sqm-portal-logout.js +0 -50
- package/dist/collection/components/sqm-portal-logout/usePortalLogout.js +0 -5
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile-view.js +0 -69
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile.js +0 -298
- package/dist/collection/components/sqm-portal-profile/usePortalProfile.js +0 -149
- package/dist/collection/components/sqm-portal-protected-route/sqm-portal-protected-route.js +0 -106
- package/dist/collection/components/sqm-portal-protected-route/usePortalProtectedRoute.js +0 -26
- package/dist/collection/components/sqm-portal-register/sqm-portal-register-view.js +0 -75
- package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +0 -365
- package/dist/collection/components/sqm-portal-register/usePortalRegister.js +0 -113
- package/dist/collection/components/sqm-portal-register/useValidationState.js +0 -8
- package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password-view.js +0 -78
- package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password.js +0 -290
- package/dist/collection/components/sqm-portal-reset-password/usePortalResetPassword.js +0 -77
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email-view.js +0 -44
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email.js +0 -98
- package/dist/collection/components/sqm-portal-verify-email/usePortalVerifyEmail.js +0 -80
- package/dist/collection/components/sqm-program-menu/sqm-program-menu.js +0 -24
- package/dist/collection/components/sqm-program-menu/useProgramMenu.js +0 -33
- package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe-view.js +0 -30
- package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe.js +0 -156
- package/dist/collection/components/sqm-referral-iframe/useReferralIframe.js +0 -25
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-cell.js +0 -36
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-date-cell.js +0 -43
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +0 -169
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-status-cell.js +0 -44
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-user-cell.js +0 -28
- package/dist/collection/components/sqm-referral-table/columns/ReferralTableColumn.js +0 -1
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-column.js +0 -88
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +0 -137
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +0 -117
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +0 -145
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +0 -157
- package/dist/collection/components/sqm-referral-table/re-render.js +0 -39
- package/dist/collection/components/sqm-referral-table/sqm-referral-table-view.js +0 -54
- package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +0 -238
- package/dist/collection/components/sqm-referral-table/sqm-table-cell.js +0 -52
- package/dist/collection/components/sqm-referral-table/sqm-table-row.js +0 -33
- package/dist/collection/components/sqm-referral-table/useChildElements.js +0 -16
- package/dist/collection/components/sqm-referral-table/useReferralTable.js +0 -321
- package/dist/collection/components/sqm-route/sqm-route.js +0 -40
- package/dist/collection/components/sqm-router/sqm-router.css +0 -7
- package/dist/collection/components/sqm-router/sqm-router.js +0 -30
- package/dist/collection/components/sqm-router/useRouter.js +0 -79
- package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +0 -20
- package/dist/collection/components/sqm-share-button/sqm-share-button.css +0 -11
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +0 -381
- package/dist/collection/components/sqm-share-button/useShareButton.js +0 -89
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +0 -148
- package/dist/collection/components/sqm-share-code/useShareCode.js +0 -30
- package/dist/collection/components/sqm-share-link/sqm-share-link-view.js +0 -20
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +0 -148
- package/dist/collection/components/sqm-share-link/useShareLink.js +0 -30
- package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +0 -49
- package/dist/collection/components/sqm-stat-container/sqm-stat-container.js +0 -63
- package/dist/collection/components/sqm-stencilbook/CucumberAddon.js +0 -18
- package/dist/collection/components/sqm-stencilbook/HookStoryAddon.js +0 -19
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +0 -110
- package/dist/collection/components/sqm-text/sqm-text.js +0 -77
- package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +0 -56
- package/dist/collection/components/sqm-text-span/sqm-text-span.js +0 -69
- package/dist/collection/components/sqm-titled-section/sqm-portal-section-view.js +0 -24
- package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +0 -115
- package/dist/collection/components/sqm-user-name/sqm-user-name-view.js +0 -4
- package/dist/collection/components/sqm-user-name/sqm-user-name.js +0 -114
- package/dist/collection/components/sqm-user-name/useUserName.js +0 -26
- package/dist/collection/global/global.js +0 -80
- package/dist/collection/global/mixins.js +0 -100
- package/dist/collection/global/styles.js +0 -582
- package/dist/collection/global/styles.ts +0 -584
- package/dist/collection/index.js +0 -1
- package/dist/collection/insertcss.js +0 -44
- package/dist/collection/stories/AssetCard.stories.js +0 -29
- package/dist/collection/stories/BigStat.stories.js +0 -58
- package/dist/collection/stories/ChangePassword.stories.js +0 -147
- package/dist/collection/stories/DividedLayout.stories.js +0 -85
- package/dist/collection/stories/EditProfileForm.stories.js +0 -61
- package/dist/collection/stories/FormMessage.stories.js +0 -28
- package/dist/collection/stories/Hero.stories.js +0 -168
- package/dist/collection/stories/Leaderboard.stories.js +0 -100
- package/dist/collection/stories/LeaderboardRank.stories.js +0 -12
- package/dist/collection/stories/NameFields.stories.js +0 -36
- package/dist/collection/stories/NavigationSidebar.stories.js +0 -45
- package/dist/collection/stories/NewPortal.stories.js +0 -305
- package/dist/collection/stories/PasswordField.stories.js +0 -40
- package/dist/collection/stories/PortalEmailVerification.stories.js +0 -77
- package/dist/collection/stories/PortalFooter.stories.js +0 -24
- package/dist/collection/stories/PortalForgotPassword.stories.js +0 -73
- package/dist/collection/stories/PortalFrame.stories.js +0 -118
- package/dist/collection/stories/PortalLogin.stories.js +0 -44
- package/dist/collection/stories/PortalProfile.stories.js +0 -233
- package/dist/collection/stories/PortalRegister.stories.js +0 -97
- package/dist/collection/stories/PortalResetPassword.stories.js +0 -153
- package/dist/collection/stories/PortalTemplates.stories.js +0 -156
- package/dist/collection/stories/PortalVerifyEmail.stories.js +0 -39
- package/dist/collection/stories/PoweredByImg.stories.js +0 -14
- package/dist/collection/stories/ProgramMenu.stories.js +0 -39
- package/dist/collection/stories/ReferralIframe.stories.js +0 -29
- package/dist/collection/stories/ReferralTable.stories.js +0 -475
- package/dist/collection/stories/ReferralTableCell.stories.js +0 -62
- package/dist/collection/stories/ReferralTableRewardsCell.stories.js +0 -213
- package/dist/collection/stories/Router.stories.js +0 -144
- package/dist/collection/stories/ShareButton.stories.js +0 -45
- package/dist/collection/stories/ShareLink.stories.js +0 -33
- package/dist/collection/stories/SidebarItem.stories.js +0 -31
- package/dist/collection/stories/UseBigStat.stories.js +0 -105
- package/dist/collection/stories/UseEditProfile.stories.js +0 -41
- package/dist/collection/stories/UseLeaderboard.stories.js +0 -79
- package/dist/collection/stories/UseShareButton.stories.js +0 -59
- package/dist/collection/stories/UseShareLink.stories.js +0 -59
- package/dist/collection/stories/UserName.stories.js +0 -14
- package/dist/collection/utilities.js +0 -21
- package/dist/collection/utils/RequiredPropsError.js +0 -50
- package/dist/collection/utils/isDemo.js +0 -10
- package/dist/collection/utils/utils.js +0 -33
- package/dist/esm/ShadowViewAddon-2e3ea31f.js +0 -122
- package/dist/esm/cjs-bdfb4486.js +0 -133
- package/dist/esm/extends-3a3f9fe2.js +0 -1132
- package/dist/esm/global-cc82aa03.js +0 -26556
- package/dist/esm/index-17b4da69.js +0 -1699
- package/dist/esm/index.js +0 -1
- package/dist/esm/index.module-33c313d2.js +0 -7651
- package/dist/esm/jsonpointer-388a7082.js +0 -104
- package/dist/esm/jss-preset-default.esm-71fae192.js +0 -4270
- package/dist/esm/loader.js +0 -21
- package/dist/esm/mint-components.js +0 -44
- package/dist/esm/mixins-10353a39.js +0 -88
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/re-render-338d931e.js +0 -42
- package/dist/esm/sqm-asset-card-view-6f360937.js +0 -50
- package/dist/esm/sqm-asset-card.entry.js +0 -42
- package/dist/esm/sqm-big-stat.entry.js +0 -26
- package/dist/esm/sqm-divided-layout_26.entry.js +0 -26208
- package/dist/esm/sqm-graphql-client-provider.entry.js +0 -31
- package/dist/esm/sqm-hero-view-bfd8abd1.js +0 -147
- package/dist/esm/sqm-hero.entry.js +0 -32
- package/dist/esm/sqm-leaderboard-rank-view-4f48da0c.js +0 -128
- package/dist/esm/sqm-leaderboard-rank.entry.js +0 -79
- package/dist/esm/sqm-leaderboard.entry.js +0 -65
- package/dist/esm/sqm-name-fields-view-4162fb7b.js +0 -52
- package/dist/esm/sqm-name-fields.entry.js +0 -56
- package/dist/esm/sqm-navigation-sidebar-item-view-5dfa535f.js +0 -42
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +0 -50
- package/dist/esm/sqm-navigation-sidebar-view-2242502c.js +0 -35
- package/dist/esm/sqm-navigation-sidebar.entry.js +0 -19
- package/dist/esm/sqm-popup-container.entry.js +0 -65
- package/dist/esm/sqm-portal-container-view-73757ca5.js +0 -29
- package/dist/esm/sqm-portal-container.entry.js +0 -31
- package/dist/esm/sqm-portal-email-verification-view-87bf8191.js +0 -43
- package/dist/esm/sqm-portal-email-verification.entry.js +0 -99
- package/dist/esm/sqm-portal-footer-view-da135cff.js +0 -80
- package/dist/esm/sqm-portal-footer.entry.js +0 -55
- package/dist/esm/sqm-portal-forgot-password-view-e3a6a716.js +0 -44
- package/dist/esm/sqm-portal-forgot-password.entry.js +0 -94
- package/dist/esm/sqm-portal-logout.entry.js +0 -28
- package/dist/esm/sqm-portal-profile-view-8781176c.js +0 -71
- package/dist/esm/sqm-portal-profile.entry.js +0 -245
- package/dist/esm/sqm-portal-protected-route.entry.js +0 -61
- package/dist/esm/sqm-portal-reset-password-view-a4e50da2.js +0 -80
- package/dist/esm/sqm-portal-reset-password.entry.js +0 -165
- package/dist/esm/sqm-portal-section-view-f0876545.js +0 -26
- package/dist/esm/sqm-portal-verify-email-view-6f18bac2.js +0 -46
- package/dist/esm/sqm-portal-verify-email.entry.js +0 -123
- package/dist/esm/sqm-referral-table-column.entry.js +0 -26
- package/dist/esm/sqm-referral-table-date-column.entry.js +0 -43
- package/dist/esm/sqm-referral-table-rewards-column.entry.js +0 -34
- package/dist/esm/sqm-referral-table-status-column.entry.js +0 -41
- package/dist/esm/sqm-referral-table-user-column.entry.js +0 -53
- package/dist/esm/sqm-route.entry.js +0 -14
- package/dist/esm/sqm-share-code.entry.js +0 -83
- package/dist/esm/sqm-share-link-view-9282b8e8.js +0 -22
- package/dist/esm/sqm-stat-container-view-4133feb6.js +0 -51
- package/dist/esm/sqm-stat-container.entry.js +0 -25
- package/dist/esm/sqm-text-span-view-1781df94.js +0 -58
- package/dist/esm/sqm-text-span.entry.js +0 -19
- package/dist/esm/sqm-titled-section.entry.js +0 -32
- package/dist/esm/use-callback-b38a1523.js +0 -5
- package/dist/esm/useDemoBigStat-2fe92931.js +0 -867
- package/dist/esm/utils-454405f5.js +0 -25
- package/dist/esm-es5/ShadowViewAddon-2e3ea31f.js +0 -1
- package/dist/esm-es5/cjs-bdfb4486.js +0 -1
- package/dist/esm-es5/extends-3a3f9fe2.js +0 -53
- package/dist/esm-es5/global-cc82aa03.js +0 -285
- package/dist/esm-es5/index-17b4da69.js +0 -1
- package/dist/esm-es5/index.js +0 -0
- package/dist/esm-es5/index.module-33c313d2.js +0 -1
- package/dist/esm-es5/jsonpointer-388a7082.js +0 -1
- package/dist/esm-es5/jss-preset-default.esm-71fae192.js +0 -8
- package/dist/esm-es5/loader.js +0 -1
- package/dist/esm-es5/mint-components.js +0 -1
- package/dist/esm-es5/mixins-10353a39.js +0 -1
- package/dist/esm-es5/re-render-338d931e.js +0 -1
- package/dist/esm-es5/sqm-asset-card-view-6f360937.js +0 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +0 -1
- package/dist/esm-es5/sqm-big-stat.entry.js +0 -1
- package/dist/esm-es5/sqm-divided-layout_26.entry.js +0 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +0 -1
- package/dist/esm-es5/sqm-hero-view-bfd8abd1.js +0 -1
- package/dist/esm-es5/sqm-hero.entry.js +0 -1
- package/dist/esm-es5/sqm-leaderboard-rank-view-4f48da0c.js +0 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +0 -1
- package/dist/esm-es5/sqm-leaderboard.entry.js +0 -1
- package/dist/esm-es5/sqm-name-fields-view-4162fb7b.js +0 -1
- package/dist/esm-es5/sqm-name-fields.entry.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-5dfa535f.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-view-2242502c.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +0 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +0 -1
- package/dist/esm-es5/sqm-portal-container-view-73757ca5.js +0 -1
- package/dist/esm-es5/sqm-portal-container.entry.js +0 -1
- package/dist/esm-es5/sqm-portal-email-verification-view-87bf8191.js +0 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +0 -1
- package/dist/esm-es5/sqm-portal-footer-view-da135cff.js +0 -1
- package/dist/esm-es5/sqm-portal-footer.entry.js +0 -1
- package/dist/esm-es5/sqm-portal-forgot-password-view-e3a6a716.js +0 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +0 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +0 -1
- package/dist/esm-es5/sqm-portal-profile-view-8781176c.js +0 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +0 -1
- package/dist/esm-es5/sqm-portal-protected-route.entry.js +0 -1
- package/dist/esm-es5/sqm-portal-reset-password-view-a4e50da2.js +0 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +0 -1
- package/dist/esm-es5/sqm-portal-section-view-f0876545.js +0 -1
- package/dist/esm-es5/sqm-portal-verify-email-view-6f18bac2.js +0 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +0 -1
- package/dist/esm-es5/sqm-referral-table-column.entry.js +0 -1
- package/dist/esm-es5/sqm-referral-table-date-column.entry.js +0 -1
- package/dist/esm-es5/sqm-referral-table-rewards-column.entry.js +0 -1
- package/dist/esm-es5/sqm-referral-table-status-column.entry.js +0 -1
- package/dist/esm-es5/sqm-referral-table-user-column.entry.js +0 -1
- package/dist/esm-es5/sqm-route.entry.js +0 -1
- package/dist/esm-es5/sqm-share-code.entry.js +0 -1
- package/dist/esm-es5/sqm-share-link-view-9282b8e8.js +0 -1
- package/dist/esm-es5/sqm-stat-container-view-4133feb6.js +0 -1
- package/dist/esm-es5/sqm-stat-container.entry.js +0 -1
- package/dist/esm-es5/sqm-text-span-view-1781df94.js +0 -1
- package/dist/esm-es5/sqm-text-span.entry.js +0 -1
- package/dist/esm-es5/sqm-titled-section.entry.js +0 -1
- package/dist/esm-es5/use-callback-b38a1523.js +0 -1
- package/dist/esm-es5/useDemoBigStat-2fe92931.js +0 -1
- package/dist/esm-es5/utils-454405f5.js +0 -1
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/loader/cdn.js +0 -3
- package/dist/loader/index.cjs.js +0 -3
- package/dist/loader/index.d.ts +0 -13
- package/dist/loader/index.es2017.js +0 -3
- package/dist/loader/index.js +0 -4
- package/dist/loader/package.json +0 -10
- package/dist/mint-components/global/styles.ts +0 -584
- package/dist/mint-components/index.esm.js +0 -0
- package/dist/mint-components/mint-components.esm.js +0 -1
- package/dist/mint-components/mint-components.js +0 -130
- package/dist/mint-components/p-015b683f.system.js +0 -53
- package/dist/mint-components/p-01722953.entry.js +0 -1
- package/dist/mint-components/p-086aaa1e.system.entry.js +0 -1
- package/dist/mint-components/p-0a39b23c.system.entry.js +0 -1
- package/dist/mint-components/p-0bcefa93.entry.js +0 -1
- package/dist/mint-components/p-0f84ebfe.entry.js +0 -1
- package/dist/mint-components/p-126bcba1.system.js +0 -1
- package/dist/mint-components/p-1369c11a.system.entry.js +0 -1
- package/dist/mint-components/p-156464b2.entry.js +0 -1
- package/dist/mint-components/p-1575e8a3.system.js +0 -1
- package/dist/mint-components/p-1915df27.system.entry.js +0 -1
- package/dist/mint-components/p-1996e9c8.system.js +0 -1
- package/dist/mint-components/p-1b7d89a7.system.js +0 -8
- package/dist/mint-components/p-1e182e88.system.js +0 -1
- package/dist/mint-components/p-21bb74aa.system.entry.js +0 -1
- package/dist/mint-components/p-26f627aa.js +0 -1
- package/dist/mint-components/p-282ed862.js +0 -1
- package/dist/mint-components/p-2a6f038c.system.entry.js +0 -1
- package/dist/mint-components/p-2ad23b02.system.entry.js +0 -1
- package/dist/mint-components/p-33b57b39.system.entry.js +0 -1
- package/dist/mint-components/p-34696973.system.js +0 -1
- package/dist/mint-components/p-34dea514.system.entry.js +0 -1
- package/dist/mint-components/p-35476f7e.system.js +0 -1
- package/dist/mint-components/p-36de7c74.entry.js +0 -1
- package/dist/mint-components/p-39c466fb.entry.js +0 -1
- package/dist/mint-components/p-412d31b1.js +0 -1
- package/dist/mint-components/p-44578b22.js +0 -42
- package/dist/mint-components/p-4843c461.js +0 -1
- package/dist/mint-components/p-48cdbd66.js +0 -17
- package/dist/mint-components/p-4a313a31.js +0 -1
- package/dist/mint-components/p-4bd679a7.system.js +0 -1
- package/dist/mint-components/p-4cabd25b.entry.js +0 -1
- package/dist/mint-components/p-4e61f958.system.js +0 -1
- package/dist/mint-components/p-509dda90.js +0 -1
- package/dist/mint-components/p-50ea2036.system.js +0 -1
- package/dist/mint-components/p-53b0c355.system.js +0 -1
- package/dist/mint-components/p-53ec4863.entry.js +0 -1
- package/dist/mint-components/p-547a0354.system.js +0 -1
- package/dist/mint-components/p-55f8387d.system.js +0 -1
- package/dist/mint-components/p-562199e3.system.js +0 -1
- package/dist/mint-components/p-5950e58a.entry.js +0 -1
- package/dist/mint-components/p-60ae1ec5.system.js +0 -1
- package/dist/mint-components/p-639d3dd3.entry.js +0 -1
- package/dist/mint-components/p-64c3217a.js +0 -1
- package/dist/mint-components/p-683a4971.system.entry.js +0 -1
- package/dist/mint-components/p-69f28472.system.js +0 -1
- package/dist/mint-components/p-6a44136e.js +0 -227
- package/dist/mint-components/p-6d27cd05.system.entry.js +0 -1
- package/dist/mint-components/p-7129015b.system.js +0 -1
- package/dist/mint-components/p-713ea21e.system.entry.js +0 -1
- package/dist/mint-components/p-739b3032.js +0 -1
- package/dist/mint-components/p-754060c8.system.js +0 -285
- package/dist/mint-components/p-772341ce.system.entry.js +0 -1
- package/dist/mint-components/p-775529b9.system.entry.js +0 -1
- package/dist/mint-components/p-7b7613cf.system.entry.js +0 -1
- package/dist/mint-components/p-7c3a270c.system.entry.js +0 -1
- package/dist/mint-components/p-83bdbf25.js +0 -1
- package/dist/mint-components/p-846cebe7.js +0 -1
- package/dist/mint-components/p-871ed4c8.system.js +0 -1
- package/dist/mint-components/p-8cbc24b8.entry.js +0 -9
- package/dist/mint-components/p-8d65fef3.entry.js +0 -1
- package/dist/mint-components/p-8e87084e.system.js +0 -1
- package/dist/mint-components/p-952ed169.js +0 -1
- package/dist/mint-components/p-99f1208f.js +0 -1
- package/dist/mint-components/p-9b4f2af6.js +0 -1
- package/dist/mint-components/p-9c79643f.system.js +0 -1
- package/dist/mint-components/p-a011c13c.entry.js +0 -1
- package/dist/mint-components/p-a565e753.entry.js +0 -1
- package/dist/mint-components/p-a8b913a8.js +0 -1
- package/dist/mint-components/p-aaf68d9d.system.js +0 -1
- package/dist/mint-components/p-b1e03222.entry.js +0 -1
- package/dist/mint-components/p-b2295bc5.system.js +0 -1
- package/dist/mint-components/p-b3bda4e8.entry.js +0 -1
- package/dist/mint-components/p-b3e976e0.entry.js +0 -1
- package/dist/mint-components/p-b462e84e.system.js +0 -1
- package/dist/mint-components/p-b4fc47a0.js +0 -1248
- package/dist/mint-components/p-ba505a8c.js +0 -1
- package/dist/mint-components/p-bb76c6f3.system.js +0 -1
- package/dist/mint-components/p-bbb3ff09.js +0 -1
- package/dist/mint-components/p-bd903567.js +0 -1
- package/dist/mint-components/p-c03c68c1.entry.js +0 -1
- package/dist/mint-components/p-c1086930.js +0 -1
- package/dist/mint-components/p-c1a47137.system.entry.js +0 -1
- package/dist/mint-components/p-c1cadf29.entry.js +0 -1
- package/dist/mint-components/p-c324b1e8.system.js +0 -1
- package/dist/mint-components/p-c32fb8e5.entry.js +0 -1
- package/dist/mint-components/p-c35bb682.system.entry.js +0 -1
- package/dist/mint-components/p-c3bf9440.entry.js +0 -1
- package/dist/mint-components/p-c434c33a.system.entry.js +0 -1
- package/dist/mint-components/p-c43f3b6b.system.js +0 -1
- package/dist/mint-components/p-cff66d2e.entry.js +0 -1
- package/dist/mint-components/p-d1604020.system.js +0 -1
- package/dist/mint-components/p-d482d10c.entry.js +0 -1
- package/dist/mint-components/p-d7d6bf44.system.js +0 -1
- package/dist/mint-components/p-d8a80855.entry.js +0 -1
- package/dist/mint-components/p-db5a1e78.js +0 -1
- package/dist/mint-components/p-dd0b0a4a.system.entry.js +0 -1
- package/dist/mint-components/p-e069bc2d.entry.js +0 -1
- package/dist/mint-components/p-e14c15ca.system.entry.js +0 -1
- package/dist/mint-components/p-e2fc8abf.system.entry.js +0 -1
- package/dist/mint-components/p-e426715b.js +0 -1
- package/dist/mint-components/p-e43cc1f8.system.entry.js +0 -1
- package/dist/mint-components/p-e52c77cd.entry.js +0 -13
- package/dist/mint-components/p-e7e129ac.js +0 -1
- package/dist/mint-components/p-e835c56c.system.entry.js +0 -1
- package/dist/mint-components/p-e83632dd.js +0 -1
- package/dist/mint-components/p-ead730e0.system.entry.js +0 -1
- package/dist/mint-components/p-ebcd8a59.js +0 -1
- package/dist/mint-components/p-ec3b7256.entry.js +0 -230
- package/dist/mint-components/p-ec8f1962.system.entry.js +0 -1
- package/dist/mint-components/p-ee6f5a1c.system.js +0 -1
- package/dist/mint-components/p-f02360c9.js +0 -1
- package/dist/mint-components/p-f4a9712a.entry.js +0 -33
- package/dist/mint-components/p-f85f36c6.system.entry.js +0 -1
- package/dist/mint-components/p-f9cb55dc.entry.js +0 -1
- package/dist/mint-components/p-fa20e730.entry.js +0 -1
- package/dist/mint-components/p-fb1b6fdf.js +0 -1
- package/dist/mint-components/p-fee468b7.system.entry.js +0 -1
- package/dist/mint-components/p-fee6801c.js +0 -1
- package/dist/mint-components/p-ff17b3a4.system.js +0 -1
- package/dist/mint-components/p-ff3c9d53.system.entry.js +0 -1
- package/dist/mint-components/p-ff3d1ed1.system.entry.js +0 -1
- package/dist/types/ShadowViewAddon.d.ts +0 -6
- package/dist/types/components/sqm-asset-card/sqm-asset-card-view.d.ts +0 -8
- package/dist/types/components/sqm-asset-card/sqm-asset-card.d.ts +0 -24
- package/dist/types/components/sqm-asset-card/useAssetCard.d.ts +0 -7
- package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +0 -7
- package/dist/types/components/sqm-big-stat/sqm-big-stat.d.ts +0 -36
- package/dist/types/components/sqm-big-stat/useBigStat.d.ts +0 -18
- package/dist/types/components/sqm-big-stat/useDemoBigStat.d.ts +0 -3
- package/dist/types/components/sqm-divided-layout/sqm-divided-layout-view.d.ts +0 -7
- package/dist/types/components/sqm-divided-layout/sqm-divided-layout.d.ts +0 -22
- package/dist/types/components/sqm-edit-profile/sqm-edit-profile-view.d.ts +0 -37
- package/dist/types/components/sqm-edit-profile/sqm-edit-profile.d.ts +0 -48
- package/dist/types/components/sqm-edit-profile/useEditProfile.d.ts +0 -12
- package/dist/types/components/sqm-form-message/sqm-form-message.d.ts +0 -13
- package/dist/types/components/sqm-graphql-client-provider/sqm-graphql-client-provider.d.ts +0 -13
- package/dist/types/components/sqm-graphql-client-provider/useGraphQLProvider.d.ts +0 -3
- package/dist/types/components/sqm-hero/sqm-hero-view.d.ts +0 -15
- package/dist/types/components/sqm-hero/sqm-hero.d.ts +0 -20
- package/dist/types/components/sqm-hook-story-container/sqm-hook-story-container.d.ts +0 -8
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard-view.d.ts +0 -27
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +0 -50
- package/dist/types/components/sqm-leaderboard/useLeaderboard.d.ts +0 -26
- package/dist/types/components/sqm-leaderboard-rank/sqm-leaderboard-rank-view.d.ts +0 -6
- package/dist/types/components/sqm-leaderboard-rank/sqm-leaderboard-rank.d.ts +0 -41
- package/dist/types/components/sqm-leaderboard-rank/useLeaderboardRank.d.ts +0 -9
- package/dist/types/components/sqm-name-fields/sqm-name-fields-view.d.ts +0 -10
- package/dist/types/components/sqm-name-fields/sqm-name-fields.d.ts +0 -21
- package/dist/types/components/sqm-name-fields/useNameFields.d.ts +0 -14
- package/dist/types/components/sqm-navigation-menu/sqm-navigation-menu-view.d.ts +0 -15
- package/dist/types/components/sqm-navigation-menu/sqm-navigation-menu.d.ts +0 -24
- package/dist/types/components/sqm-navigation-menu/useNavigationMenu.d.ts +0 -3
- package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.d.ts +0 -4
- package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar.d.ts +0 -11
- package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.d.ts +0 -11
- package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.d.ts +0 -27
- package/dist/types/components/sqm-navigation-sidebar-item/useNavigationSidebarItem.d.ts +0 -3
- package/dist/types/components/sqm-password-field/passwordValidation.d.ts +0 -1
- package/dist/types/components/sqm-password-field/sqm-password-field-view.d.ts +0 -15
- package/dist/types/components/sqm-password-field/sqm-password-field.d.ts +0 -32
- package/dist/types/components/sqm-password-field/usePasswordField.d.ts +0 -3
- package/dist/types/components/sqm-popup-container/sqm-popup-container-view.d.ts +0 -4
- package/dist/types/components/sqm-popup-container/sqm-popup-container.d.ts +0 -26
- package/dist/types/components/sqm-popup-container/usePopupContainer.d.ts +0 -33
- package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password-view.d.ts +0 -23
- package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password.d.ts +0 -48
- package/dist/types/components/sqm-portal-change-password/usePortalChangePassword.d.ts +0 -24
- package/dist/types/components/sqm-portal-container/sqm-portal-container-view.d.ts +0 -10
- package/dist/types/components/sqm-portal-container/sqm-portal-container.d.ts +0 -30
- package/dist/types/components/sqm-portal-email-verification/sqm-portal-email-verification-view.d.ts +0 -17
- package/dist/types/components/sqm-portal-email-verification/sqm-portal-email-verification.d.ts +0 -28
- package/dist/types/components/sqm-portal-email-verification/usePortalEmailVerification.d.ts +0 -17
- package/dist/types/components/sqm-portal-footer/PoweredByImg.d.ts +0 -7
- package/dist/types/components/sqm-portal-footer/sqm-portal-footer-view.d.ts +0 -16
- package/dist/types/components/sqm-portal-footer/sqm-portal-footer.d.ts +0 -57
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.d.ts +0 -18
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +0 -28
- package/dist/types/components/sqm-portal-forgot-password/usePortalForgotPassword.d.ts +0 -11
- package/dist/types/components/sqm-portal-frame/sqm-portal-frame-view.d.ts +0 -11
- package/dist/types/components/sqm-portal-frame/sqm-portal-frame.d.ts +0 -16
- package/dist/types/components/sqm-portal-frame/usePortalFrame.d.ts +0 -3
- package/dist/types/components/sqm-portal-login/sqm-portal-login-view.d.ts +0 -20
- package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +0 -52
- package/dist/types/components/sqm-portal-login/usePortalLogin.d.ts +0 -11
- package/dist/types/components/sqm-portal-logout/sqm-portal-logout.d.ts +0 -13
- package/dist/types/components/sqm-portal-logout/usePortalLogout.d.ts +0 -3
- package/dist/types/components/sqm-portal-profile/sqm-portal-profile-view.d.ts +0 -37
- package/dist/types/components/sqm-portal-profile/sqm-portal-profile.d.ts +0 -48
- package/dist/types/components/sqm-portal-profile/usePortalProfile.d.ts +0 -12
- package/dist/types/components/sqm-portal-protected-route/sqm-portal-protected-route.d.ts +0 -21
- package/dist/types/components/sqm-portal-protected-route/usePortalProtectedRoute.d.ts +0 -7
- package/dist/types/components/sqm-portal-register/sqm-portal-register-view.d.ts +0 -30
- package/dist/types/components/sqm-portal-register/sqm-portal-register.d.ts +0 -60
- package/dist/types/components/sqm-portal-register/usePortalRegister.d.ts +0 -25
- package/dist/types/components/sqm-portal-register/useValidationState.d.ts +0 -17
- package/dist/types/components/sqm-portal-reset-password/sqm-portal-reset-password-view.d.ts +0 -26
- package/dist/types/components/sqm-portal-reset-password/sqm-portal-reset-password.d.ts +0 -52
- package/dist/types/components/sqm-portal-reset-password/usePortalResetPassword.d.ts +0 -3
- package/dist/types/components/sqm-portal-verify-email/sqm-portal-verify-email-view.d.ts +0 -15
- package/dist/types/components/sqm-portal-verify-email/sqm-portal-verify-email.d.ts +0 -20
- package/dist/types/components/sqm-portal-verify-email/usePortalVerifyEmail.d.ts +0 -16
- package/dist/types/components/sqm-program-menu/sqm-program-menu.d.ts +0 -9
- package/dist/types/components/sqm-program-menu/useProgramMenu.d.ts +0 -13
- package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe-view.d.ts +0 -13
- package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe.d.ts +0 -29
- package/dist/types/components/sqm-referral-iframe/useReferralIframe.d.ts +0 -3
- package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-cell.d.ts +0 -7
- package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-date-cell.d.ts +0 -7
- package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.d.ts +0 -5
- package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-status-cell.d.ts +0 -5
- package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-user-cell.d.ts +0 -4
- package/dist/types/components/sqm-referral-table/columns/ReferralTableColumn.d.ts +0 -6
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-column.d.ts +0 -15
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-date-column.d.ts +0 -29
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.d.ts +0 -19
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-status-column.d.ts +0 -23
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-user-column.d.ts +0 -23
- package/dist/types/components/sqm-referral-table/re-render.d.ts +0 -13
- package/dist/types/components/sqm-referral-table/sqm-referral-table-view.d.ts +0 -29
- package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +0 -33
- package/dist/types/components/sqm-referral-table/sqm-table-cell.d.ts +0 -5
- package/dist/types/components/sqm-referral-table/sqm-table-row.d.ts +0 -4
- package/dist/types/components/sqm-referral-table/useChildElements.d.ts +0 -1
- package/dist/types/components/sqm-referral-table/useReferralTable.d.ts +0 -5
- package/dist/types/components/sqm-route/sqm-route.d.ts +0 -15
- package/dist/types/components/sqm-router/sqm-router.d.ts +0 -9
- package/dist/types/components/sqm-router/useRouter.d.ts +0 -9
- package/dist/types/components/sqm-share-button/sqm-share-button-view.d.ts +0 -16
- package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +0 -80
- package/dist/types/components/sqm-share-button/useShareButton.d.ts +0 -8
- package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +0 -33
- package/dist/types/components/sqm-share-code/useShareCode.d.ts +0 -8
- package/dist/types/components/sqm-share-link/sqm-share-link-view.d.ts +0 -8
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +0 -33
- package/dist/types/components/sqm-share-link/useShareLink.d.ts +0 -8
- package/dist/types/components/sqm-stat-container/sqm-stat-container-view.d.ts +0 -5
- package/dist/types/components/sqm-stat-container/sqm-stat-container.d.ts +0 -16
- package/dist/types/components/sqm-stencilbook/CucumberAddon.d.ts +0 -2
- package/dist/types/components/sqm-stencilbook/HookStoryAddon.d.ts +0 -8
- package/dist/types/components/sqm-stencilbook/sqm-stencilbook.d.ts +0 -11
- package/dist/types/components/sqm-text/sqm-text.d.ts +0 -10
- package/dist/types/components/sqm-text-span/sqm-text-span-view.d.ts +0 -5
- package/dist/types/components/sqm-text-span/sqm-text-span.d.ts +0 -20
- package/dist/types/components/sqm-titled-section/sqm-portal-section-view.d.ts +0 -9
- package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +0 -22
- package/dist/types/components/sqm-user-name/sqm-user-name-view.d.ts +0 -6
- package/dist/types/components/sqm-user-name/sqm-user-name.d.ts +0 -24
- package/dist/types/components/sqm-user-name/useUserName.d.ts +0 -3
- package/dist/types/components.d.ts +0 -2526
- package/dist/types/global/android.d.ts +0 -7
- package/dist/types/global/demo.d.ts +0 -1
- package/dist/types/global/global.d.ts +0 -6
- package/dist/types/global/mixins.d.ts +0 -166
- package/dist/types/global/styles.d.ts +0 -2
- package/dist/types/index.d.ts +0 -1
- package/dist/types/insertcss.d.ts +0 -6
- package/dist/types/saasquatch.d.ts +0 -92
- package/dist/types/stencil-public-runtime.d.ts +0 -1555
- package/dist/types/stories/AssetCard.stories.d.ts +0 -7
- package/dist/types/stories/BigStat.stories.d.ts +0 -12
- package/dist/types/stories/ChangePassword.stories.d.ts +0 -13
- package/dist/types/stories/DividedLayout.stories.d.ts +0 -7
- package/dist/types/stories/EditProfileForm.stories.d.ts +0 -7
- package/dist/types/stories/FormMessage.stories.d.ts +0 -8
- package/dist/types/stories/Hero.stories.d.ts +0 -16
- package/dist/types/stories/Leaderboard.stories.d.ts +0 -11
- package/dist/types/stories/LeaderboardRank.stories.d.ts +0 -5
- package/dist/types/stories/NameFields.stories.d.ts +0 -9
- package/dist/types/stories/NavigationSidebar.stories.d.ts +0 -5
- package/dist/types/stories/NewPortal.stories.d.ts +0 -8
- package/dist/types/stories/PasswordField.stories.d.ts +0 -7
- package/dist/types/stories/PortalEmailVerification.stories.d.ts +0 -11
- package/dist/types/stories/PortalFooter.stories.d.ts +0 -12
- package/dist/types/stories/PortalForgotPassword.stories.d.ts +0 -11
- package/dist/types/stories/PortalFrame.stories.d.ts +0 -8
- package/dist/types/stories/PortalLogin.stories.d.ts +0 -7
- package/dist/types/stories/PortalProfile.stories.d.ts +0 -10
- package/dist/types/stories/PortalRegister.stories.d.ts +0 -9
- package/dist/types/stories/PortalResetPassword.stories.d.ts +0 -13
- package/dist/types/stories/PortalTemplates.stories.d.ts +0 -100
- package/dist/types/stories/PortalVerifyEmail.stories.d.ts +0 -9
- package/dist/types/stories/PoweredByImg.stories.d.ts +0 -7
- package/dist/types/stories/ProgramMenu.stories.d.ts +0 -28
- package/dist/types/stories/ReferralIframe.stories.d.ts +0 -9
- package/dist/types/stories/ReferralTable.stories.d.ts +0 -13
- package/dist/types/stories/ReferralTableCell.stories.d.ts +0 -10
- package/dist/types/stories/ReferralTableRewardsCell.stories.d.ts +0 -19
- package/dist/types/stories/Router.stories.d.ts +0 -28
- package/dist/types/stories/ShareButton.stories.d.ts +0 -11
- package/dist/types/stories/ShareLink.stories.d.ts +0 -8
- package/dist/types/stories/SidebarItem.stories.d.ts +0 -6
- package/dist/types/stories/UseBigStat.stories.d.ts +0 -166
- package/dist/types/stories/UseEditProfile.stories.d.ts +0 -10
- package/dist/types/stories/UseLeaderboard.stories.d.ts +0 -16
- package/dist/types/stories/UseShareButton.stories.d.ts +0 -16
- package/dist/types/stories/UseShareLink.stories.d.ts +0 -22
- package/dist/types/stories/UserName.stories.d.ts +0 -6
- package/dist/types/stories/features.d.ts +0 -4
- package/dist/types/stories/templates.d.ts +0 -4
- package/dist/types/utilities.d.ts +0 -3
- package/dist/types/utils/RequiredPropsError.d.ts +0 -7
- package/dist/types/utils/isDemo.d.ts +0 -4
- package/dist/types/utils/utils.d.ts +0 -12
- package/grapesjs/grapesjs.js +0 -54
- package/shoelace/assets/icons/LICENSE.md +0 -21
- package/shoelace/assets/icons/alarm-fill.svg +0 -3
- package/shoelace/assets/icons/alarm.svg +0 -4
- package/shoelace/assets/icons/align-bottom.svg +0 -4
- package/shoelace/assets/icons/align-center.svg +0 -3
- package/shoelace/assets/icons/align-end.svg +0 -4
- package/shoelace/assets/icons/align-middle.svg +0 -3
- package/shoelace/assets/icons/align-start.svg +0 -4
- package/shoelace/assets/icons/align-top.svg +0 -4
- package/shoelace/assets/icons/alt.svg +0 -3
- package/shoelace/assets/icons/app-indicator.svg +0 -4
- package/shoelace/assets/icons/app.svg +0 -3
- package/shoelace/assets/icons/archive-fill.svg +0 -3
- package/shoelace/assets/icons/archive.svg +0 -3
- package/shoelace/assets/icons/arrow-90deg-down.svg +0 -3
- package/shoelace/assets/icons/arrow-90deg-left.svg +0 -3
- package/shoelace/assets/icons/arrow-90deg-right.svg +0 -3
- package/shoelace/assets/icons/arrow-90deg-up.svg +0 -3
- package/shoelace/assets/icons/arrow-bar-down.svg +0 -3
- package/shoelace/assets/icons/arrow-bar-left.svg +0 -3
- package/shoelace/assets/icons/arrow-bar-right.svg +0 -3
- package/shoelace/assets/icons/arrow-bar-up.svg +0 -3
- package/shoelace/assets/icons/arrow-clockwise.svg +0 -4
- package/shoelace/assets/icons/arrow-counterclockwise.svg +0 -4
- package/shoelace/assets/icons/arrow-down-circle-fill.svg +0 -3
- package/shoelace/assets/icons/arrow-down-circle.svg +0 -3
- package/shoelace/assets/icons/arrow-down-left-circle-fill.svg +0 -3
- package/shoelace/assets/icons/arrow-down-left-circle.svg +0 -3
- package/shoelace/assets/icons/arrow-down-left-square-fill.svg +0 -3
- package/shoelace/assets/icons/arrow-down-left-square.svg +0 -3
- package/shoelace/assets/icons/arrow-down-left.svg +0 -3
- package/shoelace/assets/icons/arrow-down-right-circle-fill.svg +0 -3
- package/shoelace/assets/icons/arrow-down-right-circle.svg +0 -3
- package/shoelace/assets/icons/arrow-down-right-square-fill.svg +0 -3
- package/shoelace/assets/icons/arrow-down-right-square.svg +0 -3
- package/shoelace/assets/icons/arrow-down-right.svg +0 -3
- package/shoelace/assets/icons/arrow-down-short.svg +0 -3
- package/shoelace/assets/icons/arrow-down-square-fill.svg +0 -3
- package/shoelace/assets/icons/arrow-down-square.svg +0 -3
- package/shoelace/assets/icons/arrow-down-up.svg +0 -3
- package/shoelace/assets/icons/arrow-down.svg +0 -3
- package/shoelace/assets/icons/arrow-left-circle-fill.svg +0 -3
- package/shoelace/assets/icons/arrow-left-circle.svg +0 -3
- package/shoelace/assets/icons/arrow-left-right.svg +0 -3
- package/shoelace/assets/icons/arrow-left-short.svg +0 -3
- package/shoelace/assets/icons/arrow-left-square-fill.svg +0 -3
- package/shoelace/assets/icons/arrow-left-square.svg +0 -3
- package/shoelace/assets/icons/arrow-left.svg +0 -3
- package/shoelace/assets/icons/arrow-repeat.svg +0 -4
- package/shoelace/assets/icons/arrow-return-left.svg +0 -3
- package/shoelace/assets/icons/arrow-return-right.svg +0 -3
- package/shoelace/assets/icons/arrow-right-circle-fill.svg +0 -3
- package/shoelace/assets/icons/arrow-right-circle.svg +0 -3
- package/shoelace/assets/icons/arrow-right-short.svg +0 -3
- package/shoelace/assets/icons/arrow-right-square-fill.svg +0 -3
- package/shoelace/assets/icons/arrow-right-square.svg +0 -3
- package/shoelace/assets/icons/arrow-right.svg +0 -3
- package/shoelace/assets/icons/arrow-up-circle-fill.svg +0 -3
- package/shoelace/assets/icons/arrow-up-circle.svg +0 -3
- package/shoelace/assets/icons/arrow-up-left-circle-fill.svg +0 -3
- package/shoelace/assets/icons/arrow-up-left-circle.svg +0 -3
- package/shoelace/assets/icons/arrow-up-left-square-fill.svg +0 -3
- package/shoelace/assets/icons/arrow-up-left-square.svg +0 -3
- package/shoelace/assets/icons/arrow-up-left.svg +0 -3
- package/shoelace/assets/icons/arrow-up-right-circle-fill.svg +0 -3
- package/shoelace/assets/icons/arrow-up-right-circle.svg +0 -3
- package/shoelace/assets/icons/arrow-up-right-square-fill.svg +0 -3
- package/shoelace/assets/icons/arrow-up-right-square.svg +0 -3
- package/shoelace/assets/icons/arrow-up-right.svg +0 -3
- package/shoelace/assets/icons/arrow-up-short.svg +0 -3
- package/shoelace/assets/icons/arrow-up-square-fill.svg +0 -3
- package/shoelace/assets/icons/arrow-up-square.svg +0 -3
- package/shoelace/assets/icons/arrow-up.svg +0 -3
- package/shoelace/assets/icons/arrows-angle-contract.svg +0 -3
- package/shoelace/assets/icons/arrows-angle-expand.svg +0 -3
- package/shoelace/assets/icons/arrows-collapse.svg +0 -3
- package/shoelace/assets/icons/arrows-expand.svg +0 -3
- package/shoelace/assets/icons/arrows-fullscreen.svg +0 -3
- package/shoelace/assets/icons/arrows-move.svg +0 -3
- package/shoelace/assets/icons/aspect-ratio-fill.svg +0 -3
- package/shoelace/assets/icons/aspect-ratio.svg +0 -4
- package/shoelace/assets/icons/asterisk.svg +0 -3
- package/shoelace/assets/icons/at.svg +0 -3
- package/shoelace/assets/icons/award-fill.svg +0 -4
- package/shoelace/assets/icons/award.svg +0 -4
- package/shoelace/assets/icons/back.svg +0 -3
- package/shoelace/assets/icons/backspace-fill.svg +0 -3
- package/shoelace/assets/icons/backspace-reverse-fill.svg +0 -3
- package/shoelace/assets/icons/backspace-reverse.svg +0 -4
- package/shoelace/assets/icons/backspace.svg +0 -4
- package/shoelace/assets/icons/badge-3d-fill.svg +0 -4
- package/shoelace/assets/icons/badge-3d.svg +0 -4
- package/shoelace/assets/icons/badge-4k-fill.svg +0 -4
- package/shoelace/assets/icons/badge-4k.svg +0 -4
- package/shoelace/assets/icons/badge-8k-fill.svg +0 -4
- package/shoelace/assets/icons/badge-8k.svg +0 -4
- package/shoelace/assets/icons/badge-ad-fill.svg +0 -4
- package/shoelace/assets/icons/badge-ad.svg +0 -4
- package/shoelace/assets/icons/badge-ar-fill.svg +0 -4
- package/shoelace/assets/icons/badge-ar.svg +0 -4
- package/shoelace/assets/icons/badge-cc-fill.svg +0 -3
- package/shoelace/assets/icons/badge-cc.svg +0 -4
- package/shoelace/assets/icons/badge-hd-fill.svg +0 -4
- package/shoelace/assets/icons/badge-hd.svg +0 -4
- package/shoelace/assets/icons/badge-tm-fill.svg +0 -3
- package/shoelace/assets/icons/badge-tm.svg +0 -4
- package/shoelace/assets/icons/badge-vo-fill.svg +0 -4
- package/shoelace/assets/icons/badge-vo.svg +0 -4
- package/shoelace/assets/icons/badge-vr-fill.svg +0 -4
- package/shoelace/assets/icons/badge-vr.svg +0 -4
- package/shoelace/assets/icons/badge-wc-fill.svg +0 -3
- package/shoelace/assets/icons/badge-wc.svg +0 -4
- package/shoelace/assets/icons/bag-check-fill.svg +0 -3
- package/shoelace/assets/icons/bag-check.svg +0 -4
- package/shoelace/assets/icons/bag-dash-fill.svg +0 -3
- package/shoelace/assets/icons/bag-dash.svg +0 -4
- package/shoelace/assets/icons/bag-fill.svg +0 -3
- package/shoelace/assets/icons/bag-plus-fill.svg +0 -3
- package/shoelace/assets/icons/bag-plus.svg +0 -4
- package/shoelace/assets/icons/bag-x-fill.svg +0 -3
- package/shoelace/assets/icons/bag-x.svg +0 -4
- package/shoelace/assets/icons/bag.svg +0 -3
- package/shoelace/assets/icons/bar-chart-fill.svg +0 -3
- package/shoelace/assets/icons/bar-chart-line-fill.svg +0 -3
- package/shoelace/assets/icons/bar-chart-line.svg +0 -3
- package/shoelace/assets/icons/bar-chart-steps.svg +0 -3
- package/shoelace/assets/icons/bar-chart.svg +0 -3
- package/shoelace/assets/icons/basket-fill.svg +0 -3
- package/shoelace/assets/icons/basket.svg +0 -3
- package/shoelace/assets/icons/basket2-fill.svg +0 -3
- package/shoelace/assets/icons/basket2.svg +0 -4
- package/shoelace/assets/icons/basket3-fill.svg +0 -3
- package/shoelace/assets/icons/basket3.svg +0 -3
- package/shoelace/assets/icons/battery-charging.svg +0 -6
- package/shoelace/assets/icons/battery-full.svg +0 -4
- package/shoelace/assets/icons/battery-half.svg +0 -4
- package/shoelace/assets/icons/battery.svg +0 -3
- package/shoelace/assets/icons/bell-fill.svg +0 -3
- package/shoelace/assets/icons/bell.svg +0 -3
- package/shoelace/assets/icons/bezier.svg +0 -4
- package/shoelace/assets/icons/bezier2.svg +0 -3
- package/shoelace/assets/icons/bicycle.svg +0 -3
- package/shoelace/assets/icons/binoculars-fill.svg +0 -3
- package/shoelace/assets/icons/binoculars.svg +0 -3
- package/shoelace/assets/icons/blockquote-left.svg +0 -3
- package/shoelace/assets/icons/blockquote-right.svg +0 -3
- package/shoelace/assets/icons/book-fill.svg +0 -3
- package/shoelace/assets/icons/book-half.svg +0 -3
- package/shoelace/assets/icons/book.svg +0 -3
- package/shoelace/assets/icons/bookmark-check-fill.svg +0 -3
- package/shoelace/assets/icons/bookmark-check.svg +0 -4
- package/shoelace/assets/icons/bookmark-dash-fill.svg +0 -3
- package/shoelace/assets/icons/bookmark-dash.svg +0 -4
- package/shoelace/assets/icons/bookmark-fill.svg +0 -3
- package/shoelace/assets/icons/bookmark-heart-fill.svg +0 -3
- package/shoelace/assets/icons/bookmark-heart.svg +0 -4
- package/shoelace/assets/icons/bookmark-plus-fill.svg +0 -3
- package/shoelace/assets/icons/bookmark-plus.svg +0 -4
- package/shoelace/assets/icons/bookmark-star-fill.svg +0 -3
- package/shoelace/assets/icons/bookmark-star.svg +0 -4
- package/shoelace/assets/icons/bookmark-x-fill.svg +0 -3
- package/shoelace/assets/icons/bookmark-x.svg +0 -4
- package/shoelace/assets/icons/bookmark.svg +0 -3
- package/shoelace/assets/icons/bookmarks-fill.svg +0 -4
- package/shoelace/assets/icons/bookmarks.svg +0 -4
- package/shoelace/assets/icons/bookshelf.svg +0 -3
- package/shoelace/assets/icons/bootstrap-fill.svg +0 -4
- package/shoelace/assets/icons/bootstrap-reboot.svg +0 -4
- package/shoelace/assets/icons/bootstrap.svg +0 -4
- package/shoelace/assets/icons/border-all.svg +0 -3
- package/shoelace/assets/icons/border-bottom.svg +0 -3
- package/shoelace/assets/icons/border-center.svg +0 -3
- package/shoelace/assets/icons/border-inner.svg +0 -5
- package/shoelace/assets/icons/border-left.svg +0 -3
- package/shoelace/assets/icons/border-middle.svg +0 -3
- package/shoelace/assets/icons/border-outer.svg +0 -4
- package/shoelace/assets/icons/border-right.svg +0 -3
- package/shoelace/assets/icons/border-style.svg +0 -3
- package/shoelace/assets/icons/border-top.svg +0 -3
- package/shoelace/assets/icons/border-width.svg +0 -3
- package/shoelace/assets/icons/border.svg +0 -3
- package/shoelace/assets/icons/bounding-box-circles.svg +0 -3
- package/shoelace/assets/icons/bounding-box.svg +0 -3
- package/shoelace/assets/icons/box-arrow-down-left.svg +0 -4
- package/shoelace/assets/icons/box-arrow-down-right.svg +0 -4
- package/shoelace/assets/icons/box-arrow-down.svg +0 -4
- package/shoelace/assets/icons/box-arrow-in-down-left.svg +0 -4
- package/shoelace/assets/icons/box-arrow-in-down-right.svg +0 -4
- package/shoelace/assets/icons/box-arrow-in-down.svg +0 -4
- package/shoelace/assets/icons/box-arrow-in-left.svg +0 -4
- package/shoelace/assets/icons/box-arrow-in-right.svg +0 -4
- package/shoelace/assets/icons/box-arrow-in-up-left.svg +0 -4
- package/shoelace/assets/icons/box-arrow-in-up-right.svg +0 -4
- package/shoelace/assets/icons/box-arrow-in-up.svg +0 -4
- package/shoelace/assets/icons/box-arrow-left.svg +0 -4
- package/shoelace/assets/icons/box-arrow-right.svg +0 -4
- package/shoelace/assets/icons/box-arrow-up-left.svg +0 -4
- package/shoelace/assets/icons/box-arrow-up-right.svg +0 -4
- package/shoelace/assets/icons/box-arrow-up.svg +0 -4
- package/shoelace/assets/icons/box-seam.svg +0 -3
- package/shoelace/assets/icons/box.svg +0 -3
- package/shoelace/assets/icons/braces.svg +0 -3
- package/shoelace/assets/icons/bricks.svg +0 -3
- package/shoelace/assets/icons/briefcase-fill.svg +0 -4
- package/shoelace/assets/icons/briefcase.svg +0 -3
- package/shoelace/assets/icons/brightness-alt-high-fill.svg +0 -3
- package/shoelace/assets/icons/brightness-alt-high.svg +0 -3
- package/shoelace/assets/icons/brightness-alt-low-fill.svg +0 -3
- package/shoelace/assets/icons/brightness-alt-low.svg +0 -3
- package/shoelace/assets/icons/brightness-high-fill.svg +0 -3
- package/shoelace/assets/icons/brightness-high.svg +0 -3
- package/shoelace/assets/icons/brightness-low-fill.svg +0 -3
- package/shoelace/assets/icons/brightness-low.svg +0 -3
- package/shoelace/assets/icons/broadcast-pin.svg +0 -3
- package/shoelace/assets/icons/broadcast.svg +0 -3
- package/shoelace/assets/icons/brush-fill.svg +0 -3
- package/shoelace/assets/icons/brush.svg +0 -3
- package/shoelace/assets/icons/bucket-fill.svg +0 -3
- package/shoelace/assets/icons/bucket.svg +0 -3
- package/shoelace/assets/icons/bug-fill.svg +0 -4
- package/shoelace/assets/icons/bug.svg +0 -3
- package/shoelace/assets/icons/building.svg +0 -4
- package/shoelace/assets/icons/bullseye.svg +0 -6
- package/shoelace/assets/icons/calculator-fill.svg +0 -3
- package/shoelace/assets/icons/calculator.svg +0 -4
- package/shoelace/assets/icons/calendar-check-fill.svg +0 -3
- package/shoelace/assets/icons/calendar-check.svg +0 -4
- package/shoelace/assets/icons/calendar-date-fill.svg +0 -4
- package/shoelace/assets/icons/calendar-date.svg +0 -4
- package/shoelace/assets/icons/calendar-day-fill.svg +0 -3
- package/shoelace/assets/icons/calendar-day.svg +0 -4
- package/shoelace/assets/icons/calendar-event-fill.svg +0 -3
- package/shoelace/assets/icons/calendar-event.svg +0 -4
- package/shoelace/assets/icons/calendar-fill.svg +0 -3
- package/shoelace/assets/icons/calendar-minus-fill.svg +0 -3
- package/shoelace/assets/icons/calendar-minus.svg +0 -4
- package/shoelace/assets/icons/calendar-month-fill.svg +0 -4
- package/shoelace/assets/icons/calendar-month.svg +0 -4
- package/shoelace/assets/icons/calendar-plus-fill.svg +0 -3
- package/shoelace/assets/icons/calendar-plus.svg +0 -4
- package/shoelace/assets/icons/calendar-range-fill.svg +0 -3
- package/shoelace/assets/icons/calendar-range.svg +0 -4
- package/shoelace/assets/icons/calendar-week-fill.svg +0 -3
- package/shoelace/assets/icons/calendar-week.svg +0 -4
- package/shoelace/assets/icons/calendar-x-fill.svg +0 -3
- package/shoelace/assets/icons/calendar-x.svg +0 -4
- package/shoelace/assets/icons/calendar.svg +0 -3
- package/shoelace/assets/icons/calendar2-check-fill.svg +0 -3
- package/shoelace/assets/icons/calendar2-check.svg +0 -5
- package/shoelace/assets/icons/calendar2-date-fill.svg +0 -4
- package/shoelace/assets/icons/calendar2-date.svg +0 -5
- package/shoelace/assets/icons/calendar2-day-fill.svg +0 -3
- package/shoelace/assets/icons/calendar2-day.svg +0 -5
- package/shoelace/assets/icons/calendar2-event-fill.svg +0 -3
- package/shoelace/assets/icons/calendar2-event.svg +0 -5
- package/shoelace/assets/icons/calendar2-fill.svg +0 -3
- package/shoelace/assets/icons/calendar2-minus-fill.svg +0 -3
- package/shoelace/assets/icons/calendar2-minus.svg +0 -5
- package/shoelace/assets/icons/calendar2-month-fill.svg +0 -4
- package/shoelace/assets/icons/calendar2-month.svg +0 -5
- package/shoelace/assets/icons/calendar2-plus-fill.svg +0 -3
- package/shoelace/assets/icons/calendar2-plus.svg +0 -4
- package/shoelace/assets/icons/calendar2-range-fill.svg +0 -3
- package/shoelace/assets/icons/calendar2-range.svg +0 -4
- package/shoelace/assets/icons/calendar2-week-fill.svg +0 -3
- package/shoelace/assets/icons/calendar2-week.svg +0 -4
- package/shoelace/assets/icons/calendar2-x-fill.svg +0 -3
- package/shoelace/assets/icons/calendar2-x.svg +0 -5
- package/shoelace/assets/icons/calendar2.svg +0 -4
- package/shoelace/assets/icons/calendar3-event-fill.svg +0 -3
- package/shoelace/assets/icons/calendar3-event.svg +0 -4
- package/shoelace/assets/icons/calendar3-fill.svg +0 -3
- package/shoelace/assets/icons/calendar3-range-fill.svg +0 -3
- package/shoelace/assets/icons/calendar3-range.svg +0 -4
- package/shoelace/assets/icons/calendar3-week-fill.svg +0 -3
- package/shoelace/assets/icons/calendar3-week.svg +0 -4
- package/shoelace/assets/icons/calendar3.svg +0 -4
- package/shoelace/assets/icons/calendar4-event.svg +0 -4
- package/shoelace/assets/icons/calendar4-range.svg +0 -4
- package/shoelace/assets/icons/calendar4-week.svg +0 -4
- package/shoelace/assets/icons/calendar4.svg +0 -3
- package/shoelace/assets/icons/camera-fill.svg +0 -4
- package/shoelace/assets/icons/camera-reels-fill.svg +0 -5
- package/shoelace/assets/icons/camera-reels.svg +0 -5
- package/shoelace/assets/icons/camera-video-fill.svg +0 -3
- package/shoelace/assets/icons/camera-video-off-fill.svg +0 -3
- package/shoelace/assets/icons/camera-video-off.svg +0 -3
- package/shoelace/assets/icons/camera-video.svg +0 -3
- package/shoelace/assets/icons/camera.svg +0 -4
- package/shoelace/assets/icons/camera2.svg +0 -4
- package/shoelace/assets/icons/capslock-fill.svg +0 -3
- package/shoelace/assets/icons/capslock.svg +0 -3
- package/shoelace/assets/icons/card-checklist.svg +0 -4
- package/shoelace/assets/icons/card-heading.svg +0 -4
- package/shoelace/assets/icons/card-image.svg +0 -4
- package/shoelace/assets/icons/card-list.svg +0 -4
- package/shoelace/assets/icons/card-text.svg +0 -4
- package/shoelace/assets/icons/caret-down-fill.svg +0 -3
- package/shoelace/assets/icons/caret-down-square-fill.svg +0 -3
- package/shoelace/assets/icons/caret-down-square.svg +0 -4
- package/shoelace/assets/icons/caret-down.svg +0 -3
- package/shoelace/assets/icons/caret-left-fill.svg +0 -3
- package/shoelace/assets/icons/caret-left-square-fill.svg +0 -3
- package/shoelace/assets/icons/caret-left-square.svg +0 -4
- package/shoelace/assets/icons/caret-left.svg +0 -3
- package/shoelace/assets/icons/caret-right-fill.svg +0 -3
- package/shoelace/assets/icons/caret-right-square-fill.svg +0 -3
- package/shoelace/assets/icons/caret-right-square.svg +0 -4
- package/shoelace/assets/icons/caret-right.svg +0 -3
- package/shoelace/assets/icons/caret-up-fill.svg +0 -3
- package/shoelace/assets/icons/caret-up-square-fill.svg +0 -3
- package/shoelace/assets/icons/caret-up-square.svg +0 -4
- package/shoelace/assets/icons/caret-up.svg +0 -3
- package/shoelace/assets/icons/cart-check-fill.svg +0 -3
- package/shoelace/assets/icons/cart-check.svg +0 -4
- package/shoelace/assets/icons/cart-dash-fill.svg +0 -3
- package/shoelace/assets/icons/cart-dash.svg +0 -4
- package/shoelace/assets/icons/cart-fill.svg +0 -3
- package/shoelace/assets/icons/cart-plus-fill.svg +0 -3
- package/shoelace/assets/icons/cart-plus.svg +0 -4
- package/shoelace/assets/icons/cart-x-fill.svg +0 -3
- package/shoelace/assets/icons/cart-x.svg +0 -4
- package/shoelace/assets/icons/cart.svg +0 -3
- package/shoelace/assets/icons/cart2.svg +0 -3
- package/shoelace/assets/icons/cart3.svg +0 -3
- package/shoelace/assets/icons/cart4.svg +0 -3
- package/shoelace/assets/icons/cash-stack.svg +0 -4
- package/shoelace/assets/icons/cash.svg +0 -4
- package/shoelace/assets/icons/cast.svg +0 -4
- package/shoelace/assets/icons/chat-dots-fill.svg +0 -3
- package/shoelace/assets/icons/chat-dots.svg +0 -4
- package/shoelace/assets/icons/chat-fill.svg +0 -3
- package/shoelace/assets/icons/chat-left-dots-fill.svg +0 -3
- package/shoelace/assets/icons/chat-left-dots.svg +0 -4
- package/shoelace/assets/icons/chat-left-fill.svg +0 -3
- package/shoelace/assets/icons/chat-left-quote-fill.svg +0 -3
- package/shoelace/assets/icons/chat-left-quote.svg +0 -4
- package/shoelace/assets/icons/chat-left-text-fill.svg +0 -3
- package/shoelace/assets/icons/chat-left-text.svg +0 -4
- package/shoelace/assets/icons/chat-left.svg +0 -3
- package/shoelace/assets/icons/chat-quote-fill.svg +0 -3
- package/shoelace/assets/icons/chat-quote.svg +0 -4
- package/shoelace/assets/icons/chat-right-dots-fill.svg +0 -3
- package/shoelace/assets/icons/chat-right-dots.svg +0 -4
- package/shoelace/assets/icons/chat-right-fill.svg +0 -3
- package/shoelace/assets/icons/chat-right-quote-fill.svg +0 -3
- package/shoelace/assets/icons/chat-right-quote.svg +0 -4
- package/shoelace/assets/icons/chat-right-text-fill.svg +0 -3
- package/shoelace/assets/icons/chat-right-text.svg +0 -4
- package/shoelace/assets/icons/chat-right.svg +0 -3
- package/shoelace/assets/icons/chat-square-dots-fill.svg +0 -3
- package/shoelace/assets/icons/chat-square-dots.svg +0 -4
- package/shoelace/assets/icons/chat-square-fill.svg +0 -3
- package/shoelace/assets/icons/chat-square-quote-fill.svg +0 -3
- package/shoelace/assets/icons/chat-square-quote.svg +0 -4
- package/shoelace/assets/icons/chat-square-text-fill.svg +0 -3
- package/shoelace/assets/icons/chat-square-text.svg +0 -4
- package/shoelace/assets/icons/chat-square.svg +0 -3
- package/shoelace/assets/icons/chat-text-fill.svg +0 -3
- package/shoelace/assets/icons/chat-text.svg +0 -4
- package/shoelace/assets/icons/chat.svg +0 -3
- package/shoelace/assets/icons/check-all.svg +0 -3
- package/shoelace/assets/icons/check-circle-fill.svg +0 -3
- package/shoelace/assets/icons/check-circle.svg +0 -4
- package/shoelace/assets/icons/check-square-fill.svg +0 -3
- package/shoelace/assets/icons/check-square.svg +0 -4
- package/shoelace/assets/icons/check.svg +0 -3
- package/shoelace/assets/icons/check2-all.svg +0 -4
- package/shoelace/assets/icons/check2-circle.svg +0 -4
- package/shoelace/assets/icons/check2-square.svg +0 -4
- package/shoelace/assets/icons/check2.svg +0 -3
- package/shoelace/assets/icons/chevron-bar-contract.svg +0 -3
- package/shoelace/assets/icons/chevron-bar-down.svg +0 -3
- package/shoelace/assets/icons/chevron-bar-expand.svg +0 -3
- package/shoelace/assets/icons/chevron-bar-left.svg +0 -3
- package/shoelace/assets/icons/chevron-bar-right.svg +0 -3
- package/shoelace/assets/icons/chevron-bar-up.svg +0 -3
- package/shoelace/assets/icons/chevron-compact-down.svg +0 -3
- package/shoelace/assets/icons/chevron-compact-left.svg +0 -3
- package/shoelace/assets/icons/chevron-compact-right.svg +0 -3
- package/shoelace/assets/icons/chevron-compact-up.svg +0 -3
- package/shoelace/assets/icons/chevron-contract.svg +0 -3
- package/shoelace/assets/icons/chevron-double-down.svg +0 -4
- package/shoelace/assets/icons/chevron-double-left.svg +0 -4
- package/shoelace/assets/icons/chevron-double-right.svg +0 -4
- package/shoelace/assets/icons/chevron-double-up.svg +0 -4
- package/shoelace/assets/icons/chevron-down.svg +0 -3
- package/shoelace/assets/icons/chevron-expand.svg +0 -3
- package/shoelace/assets/icons/chevron-left.svg +0 -3
- package/shoelace/assets/icons/chevron-right.svg +0 -3
- package/shoelace/assets/icons/chevron-up.svg +0 -3
- package/shoelace/assets/icons/circle-fill.svg +0 -3
- package/shoelace/assets/icons/circle-half.svg +0 -3
- package/shoelace/assets/icons/circle-square.svg +0 -4
- package/shoelace/assets/icons/circle.svg +0 -3
- package/shoelace/assets/icons/clipboard-check.svg +0 -5
- package/shoelace/assets/icons/clipboard-data.svg +0 -5
- package/shoelace/assets/icons/clipboard-minus.svg +0 -5
- package/shoelace/assets/icons/clipboard-plus.svg +0 -5
- package/shoelace/assets/icons/clipboard-x.svg +0 -5
- package/shoelace/assets/icons/clipboard.svg +0 -4
- package/shoelace/assets/icons/clock-fill.svg +0 -3
- package/shoelace/assets/icons/clock-history.svg +0 -5
- package/shoelace/assets/icons/clock.svg +0 -4
- package/shoelace/assets/icons/cloud-arrow-down-fill.svg +0 -3
- package/shoelace/assets/icons/cloud-arrow-down.svg +0 -4
- package/shoelace/assets/icons/cloud-arrow-up-fill.svg +0 -3
- package/shoelace/assets/icons/cloud-arrow-up.svg +0 -4
- package/shoelace/assets/icons/cloud-check-fill.svg +0 -3
- package/shoelace/assets/icons/cloud-check.svg +0 -4
- package/shoelace/assets/icons/cloud-download-fill.svg +0 -3
- package/shoelace/assets/icons/cloud-download.svg +0 -4
- package/shoelace/assets/icons/cloud-drizzle-fill.svg +0 -3
- package/shoelace/assets/icons/cloud-drizzle.svg +0 -3
- package/shoelace/assets/icons/cloud-fill.svg +0 -3
- package/shoelace/assets/icons/cloud-fog-fill.svg +0 -3
- package/shoelace/assets/icons/cloud-fog.svg +0 -3
- package/shoelace/assets/icons/cloud-fog2-fill.svg +0 -3
- package/shoelace/assets/icons/cloud-fog2.svg +0 -3
- package/shoelace/assets/icons/cloud-hail-fill.svg +0 -3
- package/shoelace/assets/icons/cloud-hail.svg +0 -3
- package/shoelace/assets/icons/cloud-haze-1.svg +0 -3
- package/shoelace/assets/icons/cloud-haze-fill.svg +0 -3
- package/shoelace/assets/icons/cloud-haze.svg +0 -3
- package/shoelace/assets/icons/cloud-haze2-fill.svg +0 -3
- package/shoelace/assets/icons/cloud-lightning-fill.svg +0 -3
- package/shoelace/assets/icons/cloud-lightning-rain-fill.svg +0 -3
- package/shoelace/assets/icons/cloud-lightning-rain.svg +0 -3
- package/shoelace/assets/icons/cloud-lightning.svg +0 -3
- package/shoelace/assets/icons/cloud-minus-fill.svg +0 -3
- package/shoelace/assets/icons/cloud-minus.svg +0 -3
- package/shoelace/assets/icons/cloud-moon-fill.svg +0 -4
- package/shoelace/assets/icons/cloud-moon.svg +0 -4
- package/shoelace/assets/icons/cloud-plus-fill.svg +0 -3
- package/shoelace/assets/icons/cloud-plus.svg +0 -4
- package/shoelace/assets/icons/cloud-rain-fill.svg +0 -3
- package/shoelace/assets/icons/cloud-rain-heavy-fill.svg +0 -3
- package/shoelace/assets/icons/cloud-rain-heavy.svg +0 -3
- package/shoelace/assets/icons/cloud-rain.svg +0 -3
- package/shoelace/assets/icons/cloud-slash-fill.svg +0 -3
- package/shoelace/assets/icons/cloud-slash.svg +0 -4
- package/shoelace/assets/icons/cloud-sleet-fill.svg +0 -3
- package/shoelace/assets/icons/cloud-sleet.svg +0 -3
- package/shoelace/assets/icons/cloud-snow-fill.svg +0 -3
- package/shoelace/assets/icons/cloud-snow.svg +0 -3
- package/shoelace/assets/icons/cloud-sun-fill.svg +0 -4
- package/shoelace/assets/icons/cloud-sun.svg +0 -4
- package/shoelace/assets/icons/cloud-upload-fill.svg +0 -3
- package/shoelace/assets/icons/cloud-upload.svg +0 -4
- package/shoelace/assets/icons/cloud.svg +0 -3
- package/shoelace/assets/icons/clouds-fill.svg +0 -4
- package/shoelace/assets/icons/clouds.svg +0 -4
- package/shoelace/assets/icons/cloudy-fill.svg +0 -3
- package/shoelace/assets/icons/cloudy.svg +0 -3
- package/shoelace/assets/icons/code-slash.svg +0 -3
- package/shoelace/assets/icons/code-square.svg +0 -4
- package/shoelace/assets/icons/code.svg +0 -3
- package/shoelace/assets/icons/collection-fill.svg +0 -3
- package/shoelace/assets/icons/collection-play-fill.svg +0 -3
- package/shoelace/assets/icons/collection-play.svg +0 -4
- package/shoelace/assets/icons/collection.svg +0 -3
- package/shoelace/assets/icons/columns-gap.svg +0 -3
- package/shoelace/assets/icons/columns.svg +0 -3
- package/shoelace/assets/icons/command.svg +0 -3
- package/shoelace/assets/icons/compass-fill.svg +0 -3
- package/shoelace/assets/icons/compass.svg +0 -4
- package/shoelace/assets/icons/cone-striped.svg +0 -3
- package/shoelace/assets/icons/cone.svg +0 -3
- package/shoelace/assets/icons/controller.svg +0 -4
- package/shoelace/assets/icons/cpu-fill.svg +0 -4
- package/shoelace/assets/icons/cpu.svg +0 -3
- package/shoelace/assets/icons/credit-card-2-back-fill.svg +0 -3
- package/shoelace/assets/icons/credit-card-2-back.svg +0 -4
- package/shoelace/assets/icons/credit-card-2-front-fill.svg +0 -3
- package/shoelace/assets/icons/credit-card-2-front.svg +0 -4
- package/shoelace/assets/icons/credit-card-fill.svg +0 -3
- package/shoelace/assets/icons/credit-card.svg +0 -4
- package/shoelace/assets/icons/crop.svg +0 -3
- package/shoelace/assets/icons/cup-fill.svg +0 -3
- package/shoelace/assets/icons/cup-straw.svg +0 -3
- package/shoelace/assets/icons/cup.svg +0 -3
- package/shoelace/assets/icons/cursor-fill.svg +0 -3
- package/shoelace/assets/icons/cursor-text.svg +0 -3
- package/shoelace/assets/icons/cursor.svg +0 -3
- package/shoelace/assets/icons/dash-circle-dotted.svg +0 -3
- package/shoelace/assets/icons/dash-circle-fill.svg +0 -3
- package/shoelace/assets/icons/dash-circle.svg +0 -4
- package/shoelace/assets/icons/dash-square-dotted.svg +0 -3
- package/shoelace/assets/icons/dash-square-fill.svg +0 -3
- package/shoelace/assets/icons/dash-square.svg +0 -4
- package/shoelace/assets/icons/dash.svg +0 -3
- package/shoelace/assets/icons/diagram-2-fill.svg +0 -3
- package/shoelace/assets/icons/diagram-2.svg +0 -3
- package/shoelace/assets/icons/diagram-3-fill.svg +0 -3
- package/shoelace/assets/icons/diagram-3.svg +0 -3
- package/shoelace/assets/icons/diamond-fill.svg +0 -3
- package/shoelace/assets/icons/diamond-half.svg +0 -3
- package/shoelace/assets/icons/diamond.svg +0 -3
- package/shoelace/assets/icons/dice-1-fill.svg +0 -3
- package/shoelace/assets/icons/dice-1.svg +0 -4
- package/shoelace/assets/icons/dice-2-fill.svg +0 -3
- package/shoelace/assets/icons/dice-2.svg +0 -4
- package/shoelace/assets/icons/dice-3-fill.svg +0 -3
- package/shoelace/assets/icons/dice-3.svg +0 -4
- package/shoelace/assets/icons/dice-4-fill.svg +0 -3
- package/shoelace/assets/icons/dice-4.svg +0 -4
- package/shoelace/assets/icons/dice-5-fill.svg +0 -3
- package/shoelace/assets/icons/dice-5.svg +0 -4
- package/shoelace/assets/icons/dice-6-fill.svg +0 -3
- package/shoelace/assets/icons/dice-6.svg +0 -4
- package/shoelace/assets/icons/disc-fill.svg +0 -3
- package/shoelace/assets/icons/disc.svg +0 -4
- package/shoelace/assets/icons/discord.svg +0 -4
- package/shoelace/assets/icons/display-fill.svg +0 -3
- package/shoelace/assets/icons/display.svg +0 -3
- package/shoelace/assets/icons/distribute-horizontal.svg +0 -4
- package/shoelace/assets/icons/distribute-vertical.svg +0 -4
- package/shoelace/assets/icons/door-closed-fill.svg +0 -3
- package/shoelace/assets/icons/door-closed.svg +0 -4
- package/shoelace/assets/icons/door-open-fill.svg +0 -3
- package/shoelace/assets/icons/door-open.svg +0 -4
- package/shoelace/assets/icons/dot.svg +0 -3
- package/shoelace/assets/icons/download.svg +0 -4
- package/shoelace/assets/icons/droplet-fill.svg +0 -3
- package/shoelace/assets/icons/droplet-half.svg +0 -4
- package/shoelace/assets/icons/droplet.svg +0 -4
- package/shoelace/assets/icons/earbuds.svg +0 -3
- package/shoelace/assets/icons/easel-fill.svg +0 -3
- package/shoelace/assets/icons/easel.svg +0 -3
- package/shoelace/assets/icons/egg-fill.svg +0 -3
- package/shoelace/assets/icons/egg-fried.svg +0 -4
- package/shoelace/assets/icons/egg.svg +0 -3
- package/shoelace/assets/icons/eject-fill.svg +0 -3
- package/shoelace/assets/icons/eject.svg +0 -3
- package/shoelace/assets/icons/emoji-angry-fill.svg +0 -3
- package/shoelace/assets/icons/emoji-angry.svg +0 -4
- package/shoelace/assets/icons/emoji-dizzy-fill.svg +0 -3
- package/shoelace/assets/icons/emoji-dizzy.svg +0 -4
- package/shoelace/assets/icons/emoji-expressionless-fill.svg +0 -3
- package/shoelace/assets/icons/emoji-expressionless.svg +0 -4
- package/shoelace/assets/icons/emoji-frown-fill.svg +0 -3
- package/shoelace/assets/icons/emoji-frown.svg +0 -4
- package/shoelace/assets/icons/emoji-heart-eyes-fill.svg +0 -3
- package/shoelace/assets/icons/emoji-heart-eyes.svg +0 -4
- package/shoelace/assets/icons/emoji-laughing-fill.svg +0 -3
- package/shoelace/assets/icons/emoji-laughing.svg +0 -4
- package/shoelace/assets/icons/emoji-neutral-fill.svg +0 -3
- package/shoelace/assets/icons/emoji-neutral.svg +0 -4
- package/shoelace/assets/icons/emoji-smile-fill.svg +0 -3
- package/shoelace/assets/icons/emoji-smile-upside-down-fill.svg +0 -3
- package/shoelace/assets/icons/emoji-smile-upside-down.svg +0 -4
- package/shoelace/assets/icons/emoji-smile.svg +0 -4
- package/shoelace/assets/icons/emoji-sunglasses-fill.svg +0 -3
- package/shoelace/assets/icons/emoji-sunglasses.svg +0 -4
- package/shoelace/assets/icons/emoji-wink-fill.svg +0 -3
- package/shoelace/assets/icons/emoji-wink.svg +0 -4
- package/shoelace/assets/icons/envelope-fill.svg +0 -3
- package/shoelace/assets/icons/envelope-open-fill.svg +0 -3
- package/shoelace/assets/icons/envelope-open.svg +0 -3
- package/shoelace/assets/icons/envelope.svg +0 -3
- package/shoelace/assets/icons/eraser-fill.svg +0 -3
- package/shoelace/assets/icons/eraser.svg +0 -3
- package/shoelace/assets/icons/exclamation-circle-fill.svg +0 -3
- package/shoelace/assets/icons/exclamation-circle.svg +0 -4
- package/shoelace/assets/icons/exclamation-diamond-fill.svg +0 -3
- package/shoelace/assets/icons/exclamation-diamond.svg +0 -4
- package/shoelace/assets/icons/exclamation-octagon-fill.svg +0 -3
- package/shoelace/assets/icons/exclamation-octagon.svg +0 -4
- package/shoelace/assets/icons/exclamation-square-fill.svg +0 -3
- package/shoelace/assets/icons/exclamation-square.svg +0 -4
- package/shoelace/assets/icons/exclamation-triangle-fill.svg +0 -3
- package/shoelace/assets/icons/exclamation-triangle.svg +0 -4
- package/shoelace/assets/icons/exclamation.svg +0 -3
- package/shoelace/assets/icons/exclude.svg +0 -3
- package/shoelace/assets/icons/eye-fill.svg +0 -4
- package/shoelace/assets/icons/eye-slash-fill.svg +0 -4
- package/shoelace/assets/icons/eye-slash.svg +0 -5
- package/shoelace/assets/icons/eye.svg +0 -4
- package/shoelace/assets/icons/eyedropper.svg +0 -3
- package/shoelace/assets/icons/eyeglasses.svg +0 -3
- package/shoelace/assets/icons/facebook.svg +0 -3
- package/shoelace/assets/icons/file-arrow-down-fill.svg +0 -3
- package/shoelace/assets/icons/file-arrow-down.svg +0 -4
- package/shoelace/assets/icons/file-arrow-up-fill.svg +0 -3
- package/shoelace/assets/icons/file-arrow-up.svg +0 -4
- package/shoelace/assets/icons/file-bar-graph-fill.svg +0 -3
- package/shoelace/assets/icons/file-bar-graph.svg +0 -4
- package/shoelace/assets/icons/file-binary-fill.svg +0 -4
- package/shoelace/assets/icons/file-binary.svg +0 -4
- package/shoelace/assets/icons/file-break-fill.svg +0 -3
- package/shoelace/assets/icons/file-break.svg +0 -3
- package/shoelace/assets/icons/file-check-fill.svg +0 -3
- package/shoelace/assets/icons/file-check.svg +0 -4
- package/shoelace/assets/icons/file-code-fill.svg +0 -3
- package/shoelace/assets/icons/file-code.svg +0 -4
- package/shoelace/assets/icons/file-diff-fill.svg +0 -3
- package/shoelace/assets/icons/file-diff.svg +0 -4
- package/shoelace/assets/icons/file-earmark-arrow-down-fill.svg +0 -3
- package/shoelace/assets/icons/file-earmark-arrow-down.svg +0 -4
- package/shoelace/assets/icons/file-earmark-arrow-up-fill.svg +0 -3
- package/shoelace/assets/icons/file-earmark-arrow-up.svg +0 -4
- package/shoelace/assets/icons/file-earmark-bar-graph-fill.svg +0 -3
- package/shoelace/assets/icons/file-earmark-bar-graph.svg +0 -4
- package/shoelace/assets/icons/file-earmark-binary-fill.svg +0 -4
- package/shoelace/assets/icons/file-earmark-binary.svg +0 -4
- package/shoelace/assets/icons/file-earmark-break-fill.svg +0 -3
- package/shoelace/assets/icons/file-earmark-break.svg +0 -3
- package/shoelace/assets/icons/file-earmark-check-fill.svg +0 -3
- package/shoelace/assets/icons/file-earmark-check.svg +0 -4
- package/shoelace/assets/icons/file-earmark-code-fill.svg +0 -3
- package/shoelace/assets/icons/file-earmark-code.svg +0 -4
- package/shoelace/assets/icons/file-earmark-diff-fill.svg +0 -3
- package/shoelace/assets/icons/file-earmark-diff.svg +0 -4
- package/shoelace/assets/icons/file-earmark-easel-fill.svg +0 -4
- package/shoelace/assets/icons/file-earmark-easel.svg +0 -4
- package/shoelace/assets/icons/file-earmark-excel-fill.svg +0 -3
- package/shoelace/assets/icons/file-earmark-excel.svg +0 -4
- package/shoelace/assets/icons/file-earmark-fill.svg +0 -3
- package/shoelace/assets/icons/file-earmark-font-fill.svg +0 -3
- package/shoelace/assets/icons/file-earmark-font.svg +0 -4
- package/shoelace/assets/icons/file-earmark-image-fill.svg +0 -4
- package/shoelace/assets/icons/file-earmark-image.svg +0 -4
- package/shoelace/assets/icons/file-earmark-lock-fill.svg +0 -4
- package/shoelace/assets/icons/file-earmark-lock.svg +0 -4
- package/shoelace/assets/icons/file-earmark-lock2-fill.svg +0 -4
- package/shoelace/assets/icons/file-earmark-lock2.svg +0 -4
- package/shoelace/assets/icons/file-earmark-medical-fill.svg +0 -3
- package/shoelace/assets/icons/file-earmark-medical.svg +0 -4
- package/shoelace/assets/icons/file-earmark-minus-fill.svg +0 -3
- package/shoelace/assets/icons/file-earmark-minus.svg +0 -4
- package/shoelace/assets/icons/file-earmark-music-fill.svg +0 -3
- package/shoelace/assets/icons/file-earmark-music.svg +0 -4
- package/shoelace/assets/icons/file-earmark-person-fill.svg +0 -3
- package/shoelace/assets/icons/file-earmark-person.svg +0 -4
- package/shoelace/assets/icons/file-earmark-play-fill.svg +0 -3
- package/shoelace/assets/icons/file-earmark-play.svg +0 -4
- package/shoelace/assets/icons/file-earmark-plus-fill.svg +0 -3
- package/shoelace/assets/icons/file-earmark-plus.svg +0 -4
- package/shoelace/assets/icons/file-earmark-post-fill.svg +0 -3
- package/shoelace/assets/icons/file-earmark-post.svg +0 -4
- package/shoelace/assets/icons/file-earmark-ppt-fill.svg +0 -4
- package/shoelace/assets/icons/file-earmark-ppt.svg +0 -4
- package/shoelace/assets/icons/file-earmark-richtext-fill.svg +0 -3
- package/shoelace/assets/icons/file-earmark-richtext.svg +0 -4
- package/shoelace/assets/icons/file-earmark-ruled-fill.svg +0 -3
- package/shoelace/assets/icons/file-earmark-ruled.svg +0 -3
- package/shoelace/assets/icons/file-earmark-slides-fill.svg +0 -4
- package/shoelace/assets/icons/file-earmark-slides.svg +0 -5
- package/shoelace/assets/icons/file-earmark-spreadsheet-fill.svg +0 -4
- package/shoelace/assets/icons/file-earmark-spreadsheet.svg +0 -3
- package/shoelace/assets/icons/file-earmark-text-fill.svg +0 -3
- package/shoelace/assets/icons/file-earmark-text.svg +0 -4
- package/shoelace/assets/icons/file-earmark-word-fill.svg +0 -3
- package/shoelace/assets/icons/file-earmark-word.svg +0 -4
- package/shoelace/assets/icons/file-earmark-x-fill.svg +0 -3
- package/shoelace/assets/icons/file-earmark-x.svg +0 -4
- package/shoelace/assets/icons/file-earmark-zip-fill.svg +0 -4
- package/shoelace/assets/icons/file-earmark-zip.svg +0 -4
- package/shoelace/assets/icons/file-earmark.svg +0 -3
- package/shoelace/assets/icons/file-easel-fill.svg +0 -4
- package/shoelace/assets/icons/file-easel.svg +0 -4
- package/shoelace/assets/icons/file-excel-fill.svg +0 -3
- package/shoelace/assets/icons/file-excel.svg +0 -4
- package/shoelace/assets/icons/file-fill.svg +0 -3
- package/shoelace/assets/icons/file-font-fill.svg +0 -3
- package/shoelace/assets/icons/file-font.svg +0 -4
- package/shoelace/assets/icons/file-image-fill.svg +0 -4
- package/shoelace/assets/icons/file-image.svg +0 -4
- package/shoelace/assets/icons/file-lock-fill.svg +0 -4
- package/shoelace/assets/icons/file-lock.svg +0 -4
- package/shoelace/assets/icons/file-lock2-fill.svg +0 -4
- package/shoelace/assets/icons/file-lock2.svg +0 -4
- package/shoelace/assets/icons/file-medical-fill.svg +0 -3
- package/shoelace/assets/icons/file-medical.svg +0 -4
- package/shoelace/assets/icons/file-minus-fill.svg +0 -3
- package/shoelace/assets/icons/file-minus.svg +0 -4
- package/shoelace/assets/icons/file-music-fill.svg +0 -3
- package/shoelace/assets/icons/file-music.svg +0 -4
- package/shoelace/assets/icons/file-person-fill.svg +0 -3
- package/shoelace/assets/icons/file-person.svg +0 -4
- package/shoelace/assets/icons/file-play-fill.svg +0 -3
- package/shoelace/assets/icons/file-play.svg +0 -4
- package/shoelace/assets/icons/file-plus-fill.svg +0 -3
- package/shoelace/assets/icons/file-plus.svg +0 -4
- package/shoelace/assets/icons/file-post-fill.svg +0 -3
- package/shoelace/assets/icons/file-post.svg +0 -4
- package/shoelace/assets/icons/file-ppt-fill.svg +0 -4
- package/shoelace/assets/icons/file-ppt.svg +0 -4
- package/shoelace/assets/icons/file-richtext-fill.svg +0 -3
- package/shoelace/assets/icons/file-richtext.svg +0 -4
- package/shoelace/assets/icons/file-ruled-fill.svg +0 -3
- package/shoelace/assets/icons/file-ruled.svg +0 -3
- package/shoelace/assets/icons/file-slides-fill.svg +0 -4
- package/shoelace/assets/icons/file-slides.svg +0 -4
- package/shoelace/assets/icons/file-spreadsheet-fill.svg +0 -3
- package/shoelace/assets/icons/file-spreadsheet.svg +0 -3
- package/shoelace/assets/icons/file-text-fill.svg +0 -3
- package/shoelace/assets/icons/file-text.svg +0 -4
- package/shoelace/assets/icons/file-word-fill.svg +0 -3
- package/shoelace/assets/icons/file-word.svg +0 -4
- package/shoelace/assets/icons/file-x-fill.svg +0 -3
- package/shoelace/assets/icons/file-x.svg +0 -4
- package/shoelace/assets/icons/file-zip-fill.svg +0 -4
- package/shoelace/assets/icons/file-zip.svg +0 -4
- package/shoelace/assets/icons/file.svg +0 -3
- package/shoelace/assets/icons/files-alt.svg +0 -3
- package/shoelace/assets/icons/files.svg +0 -3
- package/shoelace/assets/icons/film.svg +0 -3
- package/shoelace/assets/icons/filter-circle-fill.svg +0 -3
- package/shoelace/assets/icons/filter-circle.svg +0 -4
- package/shoelace/assets/icons/filter-left.svg +0 -3
- package/shoelace/assets/icons/filter-right.svg +0 -3
- package/shoelace/assets/icons/filter-square-fill.svg +0 -3
- package/shoelace/assets/icons/filter-square.svg +0 -4
- package/shoelace/assets/icons/filter.svg +0 -3
- package/shoelace/assets/icons/flag-fill.svg +0 -3
- package/shoelace/assets/icons/flag.svg +0 -3
- package/shoelace/assets/icons/flower1.svg +0 -3
- package/shoelace/assets/icons/flower2.svg +0 -3
- package/shoelace/assets/icons/flower3.svg +0 -3
- package/shoelace/assets/icons/folder-check.svg +0 -4
- package/shoelace/assets/icons/folder-fill.svg +0 -3
- package/shoelace/assets/icons/folder-minus.svg +0 -4
- package/shoelace/assets/icons/folder-plus.svg +0 -4
- package/shoelace/assets/icons/folder-symlink-fill.svg +0 -3
- package/shoelace/assets/icons/folder-symlink.svg +0 -4
- package/shoelace/assets/icons/folder-x.svg +0 -4
- package/shoelace/assets/icons/folder.svg +0 -3
- package/shoelace/assets/icons/folder2-open.svg +0 -3
- package/shoelace/assets/icons/folder2.svg +0 -3
- package/shoelace/assets/icons/fonts.svg +0 -3
- package/shoelace/assets/icons/forward-fill.svg +0 -3
- package/shoelace/assets/icons/forward.svg +0 -3
- package/shoelace/assets/icons/front.svg +0 -3
- package/shoelace/assets/icons/fullscreen-exit.svg +0 -3
- package/shoelace/assets/icons/fullscreen.svg +0 -3
- package/shoelace/assets/icons/funnel-fill.svg +0 -3
- package/shoelace/assets/icons/funnel.svg +0 -3
- package/shoelace/assets/icons/gear-fill.svg +0 -3
- package/shoelace/assets/icons/gear-wide-connected.svg +0 -3
- package/shoelace/assets/icons/gear-wide.svg +0 -3
- package/shoelace/assets/icons/gear.svg +0 -4
- package/shoelace/assets/icons/gem.svg +0 -3
- package/shoelace/assets/icons/geo-alt-fill.svg +0 -3
- package/shoelace/assets/icons/geo-alt.svg +0 -4
- package/shoelace/assets/icons/geo-fill.svg +0 -3
- package/shoelace/assets/icons/geo.svg +0 -3
- package/shoelace/assets/icons/gift-fill.svg +0 -3
- package/shoelace/assets/icons/gift.svg +0 -3
- package/shoelace/assets/icons/github.svg +0 -3
- package/shoelace/assets/icons/globe.svg +0 -3
- package/shoelace/assets/icons/globe2.svg +0 -3
- package/shoelace/assets/icons/google.svg +0 -3
- package/shoelace/assets/icons/graph-down.svg +0 -3
- package/shoelace/assets/icons/graph-up.svg +0 -3
- package/shoelace/assets/icons/grid-1x2-fill.svg +0 -3
- package/shoelace/assets/icons/grid-1x2.svg +0 -3
- package/shoelace/assets/icons/grid-3x2-gap-fill.svg +0 -3
- package/shoelace/assets/icons/grid-3x2-gap.svg +0 -3
- package/shoelace/assets/icons/grid-3x2.svg +0 -3
- package/shoelace/assets/icons/grid-3x3-gap-fill.svg +0 -3
- package/shoelace/assets/icons/grid-3x3-gap.svg +0 -3
- package/shoelace/assets/icons/grid-3x3.svg +0 -3
- package/shoelace/assets/icons/grid-fill.svg +0 -3
- package/shoelace/assets/icons/grid.svg +0 -3
- package/shoelace/assets/icons/grip-horizontal.svg +0 -3
- package/shoelace/assets/icons/grip-vertical.svg +0 -3
- package/shoelace/assets/icons/hammer.svg +0 -3
- package/shoelace/assets/icons/hand-index-fill.svg +0 -3
- package/shoelace/assets/icons/hand-index-thumb-fill.svg +0 -3
- package/shoelace/assets/icons/hand-index-thumb.svg +0 -3
- package/shoelace/assets/icons/hand-index.svg +0 -3
- package/shoelace/assets/icons/hand-thumbs-down-fill.svg +0 -3
- package/shoelace/assets/icons/hand-thumbs-down.svg +0 -3
- package/shoelace/assets/icons/hand-thumbs-up-fill.svg +0 -3
- package/shoelace/assets/icons/hand-thumbs-up.svg +0 -3
- package/shoelace/assets/icons/handbag-fill.svg +0 -3
- package/shoelace/assets/icons/handbag.svg +0 -3
- package/shoelace/assets/icons/hash.svg +0 -3
- package/shoelace/assets/icons/hdd-fill.svg +0 -3
- package/shoelace/assets/icons/hdd-network-fill.svg +0 -3
- package/shoelace/assets/icons/hdd-network.svg +0 -4
- package/shoelace/assets/icons/hdd-rack-fill.svg +0 -3
- package/shoelace/assets/icons/hdd-rack.svg +0 -4
- package/shoelace/assets/icons/hdd-stack-fill.svg +0 -3
- package/shoelace/assets/icons/hdd-stack.svg +0 -5
- package/shoelace/assets/icons/hdd.svg +0 -4
- package/shoelace/assets/icons/headphones.svg +0 -3
- package/shoelace/assets/icons/headset.svg +0 -3
- package/shoelace/assets/icons/heart-fill.svg +0 -3
- package/shoelace/assets/icons/heart-half.svg +0 -3
- package/shoelace/assets/icons/heart.svg +0 -3
- package/shoelace/assets/icons/heptagon-fill.svg +0 -3
- package/shoelace/assets/icons/heptagon-half.svg +0 -3
- package/shoelace/assets/icons/heptagon.svg +0 -3
- package/shoelace/assets/icons/hexagon-fill.svg +0 -3
- package/shoelace/assets/icons/hexagon-half.svg +0 -3
- package/shoelace/assets/icons/hexagon.svg +0 -3
- package/shoelace/assets/icons/hourglass-bottom.svg +0 -3
- package/shoelace/assets/icons/hourglass-split.svg +0 -3
- package/shoelace/assets/icons/hourglass-top.svg +0 -3
- package/shoelace/assets/icons/hourglass.svg +0 -3
- package/shoelace/assets/icons/house-door-fill.svg +0 -3
- package/shoelace/assets/icons/house-door.svg +0 -3
- package/shoelace/assets/icons/house-fill.svg +0 -4
- package/shoelace/assets/icons/house.svg +0 -4
- package/shoelace/assets/icons/hr.svg +0 -3
- package/shoelace/assets/icons/hurricane.svg +0 -3
- package/shoelace/assets/icons/icons.json +0 -15666
- package/shoelace/assets/icons/image-alt.svg +0 -3
- package/shoelace/assets/icons/image-fill.svg +0 -3
- package/shoelace/assets/icons/image.svg +0 -4
- package/shoelace/assets/icons/images.svg +0 -4
- package/shoelace/assets/icons/inbox-fill.svg +0 -3
- package/shoelace/assets/icons/inbox.svg +0 -3
- package/shoelace/assets/icons/inboxes-fill.svg +0 -3
- package/shoelace/assets/icons/inboxes.svg +0 -3
- package/shoelace/assets/icons/info-circle-fill.svg +0 -3
- package/shoelace/assets/icons/info-circle.svg +0 -4
- package/shoelace/assets/icons/info-square-fill.svg +0 -3
- package/shoelace/assets/icons/info-square.svg +0 -4
- package/shoelace/assets/icons/info.svg +0 -3
- package/shoelace/assets/icons/input-cursor-text.svg +0 -4
- package/shoelace/assets/icons/input-cursor.svg +0 -4
- package/shoelace/assets/icons/instagram.svg +0 -3
- package/shoelace/assets/icons/intersect.svg +0 -3
- package/shoelace/assets/icons/journal-album.svg +0 -5
- package/shoelace/assets/icons/journal-arrow-down.svg +0 -5
- package/shoelace/assets/icons/journal-arrow-up.svg +0 -5
- package/shoelace/assets/icons/journal-bookmark-fill.svg +0 -5
- package/shoelace/assets/icons/journal-bookmark.svg +0 -5
- package/shoelace/assets/icons/journal-check.svg +0 -5
- package/shoelace/assets/icons/journal-code.svg +0 -5
- package/shoelace/assets/icons/journal-medical.svg +0 -5
- package/shoelace/assets/icons/journal-minus.svg +0 -5
- package/shoelace/assets/icons/journal-plus.svg +0 -5
- package/shoelace/assets/icons/journal-richtext.svg +0 -5
- package/shoelace/assets/icons/journal-text.svg +0 -5
- package/shoelace/assets/icons/journal-x.svg +0 -5
- package/shoelace/assets/icons/journal.svg +0 -4
- package/shoelace/assets/icons/journals.svg +0 -4
- package/shoelace/assets/icons/joystick.svg +0 -4
- package/shoelace/assets/icons/justify-left.svg +0 -3
- package/shoelace/assets/icons/justify-right.svg +0 -3
- package/shoelace/assets/icons/justify.svg +0 -3
- package/shoelace/assets/icons/kanban-fill.svg +0 -3
- package/shoelace/assets/icons/kanban.svg +0 -4
- package/shoelace/assets/icons/key-fill.svg +0 -3
- package/shoelace/assets/icons/key.svg +0 -4
- package/shoelace/assets/icons/keyboard-fill.svg +0 -3
- package/shoelace/assets/icons/keyboard.svg +0 -4
- package/shoelace/assets/icons/ladder.svg +0 -3
- package/shoelace/assets/icons/lamp-fill.svg +0 -3
- package/shoelace/assets/icons/lamp.svg +0 -3
- package/shoelace/assets/icons/laptop-fill.svg +0 -3
- package/shoelace/assets/icons/laptop.svg +0 -3
- package/shoelace/assets/icons/layer-backward.svg +0 -4
- package/shoelace/assets/icons/layer-forward.svg +0 -4
- package/shoelace/assets/icons/layers-fill.svg +0 -4
- package/shoelace/assets/icons/layers-half.svg +0 -3
- package/shoelace/assets/icons/layers.svg +0 -3
- package/shoelace/assets/icons/layout-sidebar-inset-reverse.svg +0 -4
- package/shoelace/assets/icons/layout-sidebar-inset.svg +0 -4
- package/shoelace/assets/icons/layout-sidebar-reverse.svg +0 -3
- package/shoelace/assets/icons/layout-sidebar.svg +0 -3
- package/shoelace/assets/icons/layout-split.svg +0 -3
- package/shoelace/assets/icons/layout-text-sidebar-reverse.svg +0 -4
- package/shoelace/assets/icons/layout-text-sidebar.svg +0 -4
- package/shoelace/assets/icons/layout-text-window-reverse.svg +0 -4
- package/shoelace/assets/icons/layout-text-window.svg +0 -4
- package/shoelace/assets/icons/layout-three-columns.svg +0 -3
- package/shoelace/assets/icons/layout-wtf.svg +0 -3
- package/shoelace/assets/icons/life-preserver.svg +0 -3
- package/shoelace/assets/icons/lightbulb-fill.svg +0 -3
- package/shoelace/assets/icons/lightbulb-off-fill.svg +0 -3
- package/shoelace/assets/icons/lightbulb-off.svg +0 -3
- package/shoelace/assets/icons/lightbulb.svg +0 -3
- package/shoelace/assets/icons/lightning-charge-fill.svg +0 -3
- package/shoelace/assets/icons/lightning-charge.svg +0 -3
- package/shoelace/assets/icons/lightning-fill.svg +0 -3
- package/shoelace/assets/icons/lightning.svg +0 -3
- package/shoelace/assets/icons/link-45deg.svg +0 -4
- package/shoelace/assets/icons/link.svg +0 -4
- package/shoelace/assets/icons/linkedin.svg +0 -3
- package/shoelace/assets/icons/list-check.svg +0 -3
- package/shoelace/assets/icons/list-nested.svg +0 -3
- package/shoelace/assets/icons/list-ol.svg +0 -4
- package/shoelace/assets/icons/list-stars.svg +0 -4
- package/shoelace/assets/icons/list-task.svg +0 -5
- package/shoelace/assets/icons/list-ul.svg +0 -3
- package/shoelace/assets/icons/list.svg +0 -3
- package/shoelace/assets/icons/lock-fill.svg +0 -3
- package/shoelace/assets/icons/lock.svg +0 -3
- package/shoelace/assets/icons/mailbox.svg +0 -4
- package/shoelace/assets/icons/mailbox2.svg +0 -4
- package/shoelace/assets/icons/map-fill.svg +0 -3
- package/shoelace/assets/icons/map.svg +0 -3
- package/shoelace/assets/icons/markdown-fill.svg +0 -3
- package/shoelace/assets/icons/markdown.svg +0 -6
- package/shoelace/assets/icons/mask.svg +0 -3
- package/shoelace/assets/icons/megaphone-fill.svg +0 -3
- package/shoelace/assets/icons/megaphone.svg +0 -3
- package/shoelace/assets/icons/menu-app-fill.svg +0 -3
- package/shoelace/assets/icons/menu-app.svg +0 -3
- package/shoelace/assets/icons/menu-button-fill.svg +0 -3
- package/shoelace/assets/icons/menu-button-wide-fill.svg +0 -3
- package/shoelace/assets/icons/menu-button-wide.svg +0 -4
- package/shoelace/assets/icons/menu-button.svg +0 -4
- package/shoelace/assets/icons/menu-down.svg +0 -3
- package/shoelace/assets/icons/menu-up.svg +0 -3
- package/shoelace/assets/icons/mic-fill.svg +0 -4
- package/shoelace/assets/icons/mic-mute-fill.svg +0 -3
- package/shoelace/assets/icons/mic-mute.svg +0 -3
- package/shoelace/assets/icons/mic.svg +0 -4
- package/shoelace/assets/icons/minecart-loaded.svg +0 -4
- package/shoelace/assets/icons/minecart.svg +0 -3
- package/shoelace/assets/icons/moisture.svg +0 -3
- package/shoelace/assets/icons/moon-fill.svg +0 -3
- package/shoelace/assets/icons/moon-stars-fill.svg +0 -4
- package/shoelace/assets/icons/moon-stars.svg +0 -4
- package/shoelace/assets/icons/moon.svg +0 -3
- package/shoelace/assets/icons/mouse-fill.svg +0 -3
- package/shoelace/assets/icons/mouse.svg +0 -3
- package/shoelace/assets/icons/mouse2-fill.svg +0 -3
- package/shoelace/assets/icons/mouse2.svg +0 -3
- package/shoelace/assets/icons/mouse3-fill.svg +0 -3
- package/shoelace/assets/icons/mouse3.svg +0 -3
- package/shoelace/assets/icons/music-note-beamed.svg +0 -5
- package/shoelace/assets/icons/music-note-list.svg +0 -6
- package/shoelace/assets/icons/music-note.svg +0 -5
- package/shoelace/assets/icons/music-player-fill.svg +0 -4
- package/shoelace/assets/icons/music-player.svg +0 -5
- package/shoelace/assets/icons/newspaper.svg +0 -4
- package/shoelace/assets/icons/node-minus-fill.svg +0 -3
- package/shoelace/assets/icons/node-minus.svg +0 -3
- package/shoelace/assets/icons/node-plus-fill.svg +0 -3
- package/shoelace/assets/icons/node-plus.svg +0 -3
- package/shoelace/assets/icons/nut-fill.svg +0 -3
- package/shoelace/assets/icons/nut.svg +0 -4
- package/shoelace/assets/icons/octagon-fill.svg +0 -3
- package/shoelace/assets/icons/octagon-half.svg +0 -3
- package/shoelace/assets/icons/octagon.svg +0 -3
- package/shoelace/assets/icons/option.svg +0 -3
- package/shoelace/assets/icons/outlet.svg +0 -4
- package/shoelace/assets/icons/paint-bucket.svg +0 -3
- package/shoelace/assets/icons/palette-fill.svg +0 -3
- package/shoelace/assets/icons/palette.svg +0 -4
- package/shoelace/assets/icons/palette2.svg +0 -4
- package/shoelace/assets/icons/paperclip.svg +0 -3
- package/shoelace/assets/icons/paragraph.svg +0 -3
- package/shoelace/assets/icons/patch-check-fill.svg +0 -3
- package/shoelace/assets/icons/patch-check.svg +0 -4
- package/shoelace/assets/icons/patch-exclamation-fill.svg +0 -3
- package/shoelace/assets/icons/patch-exclamation.svg +0 -4
- package/shoelace/assets/icons/patch-minus-fill.svg +0 -3
- package/shoelace/assets/icons/patch-minus.svg +0 -4
- package/shoelace/assets/icons/patch-plus-fill.svg +0 -3
- package/shoelace/assets/icons/patch-plus.svg +0 -4
- package/shoelace/assets/icons/patch-question-fill.svg +0 -3
- package/shoelace/assets/icons/patch-question.svg +0 -5
- package/shoelace/assets/icons/pause-btn-fill.svg +0 -3
- package/shoelace/assets/icons/pause-btn.svg +0 -4
- package/shoelace/assets/icons/pause-circle-fill.svg +0 -3
- package/shoelace/assets/icons/pause-circle.svg +0 -4
- package/shoelace/assets/icons/pause-fill.svg +0 -3
- package/shoelace/assets/icons/pause.svg +0 -3
- package/shoelace/assets/icons/peace-fill.svg +0 -3
- package/shoelace/assets/icons/peace.svg +0 -3
- package/shoelace/assets/icons/pen-fill.svg +0 -3
- package/shoelace/assets/icons/pen.svg +0 -3
- package/shoelace/assets/icons/pencil-fill.svg +0 -3
- package/shoelace/assets/icons/pencil-square.svg +0 -4
- package/shoelace/assets/icons/pencil.svg +0 -3
- package/shoelace/assets/icons/pentagon-fill.svg +0 -3
- package/shoelace/assets/icons/pentagon-half.svg +0 -3
- package/shoelace/assets/icons/pentagon.svg +0 -3
- package/shoelace/assets/icons/people-fill.svg +0 -5
- package/shoelace/assets/icons/people.svg +0 -3
- package/shoelace/assets/icons/percent.svg +0 -3
- package/shoelace/assets/icons/person-badge-fill.svg +0 -3
- package/shoelace/assets/icons/person-badge.svg +0 -4
- package/shoelace/assets/icons/person-bounding-box.svg +0 -4
- package/shoelace/assets/icons/person-check-fill.svg +0 -4
- package/shoelace/assets/icons/person-check.svg +0 -4
- package/shoelace/assets/icons/person-circle.svg +0 -4
- package/shoelace/assets/icons/person-dash-fill.svg +0 -4
- package/shoelace/assets/icons/person-dash.svg +0 -4
- package/shoelace/assets/icons/person-fill.svg +0 -3
- package/shoelace/assets/icons/person-lines-fill.svg +0 -3
- package/shoelace/assets/icons/person-plus-fill.svg +0 -4
- package/shoelace/assets/icons/person-plus.svg +0 -4
- package/shoelace/assets/icons/person-square.svg +0 -4
- package/shoelace/assets/icons/person-x-fill.svg +0 -3
- package/shoelace/assets/icons/person-x.svg +0 -4
- package/shoelace/assets/icons/person.svg +0 -3
- package/shoelace/assets/icons/phone-fill.svg +0 -3
- package/shoelace/assets/icons/phone-landscape-fill.svg +0 -3
- package/shoelace/assets/icons/phone-landscape.svg +0 -4
- package/shoelace/assets/icons/phone-vibrate-fill.svg +0 -3
- package/shoelace/assets/icons/phone-vibrate.svg +0 -4
- package/shoelace/assets/icons/phone.svg +0 -4
- package/shoelace/assets/icons/pie-chart-fill.svg +0 -3
- package/shoelace/assets/icons/pie-chart.svg +0 -3
- package/shoelace/assets/icons/pin-angle-fill.svg +0 -3
- package/shoelace/assets/icons/pin-angle.svg +0 -3
- package/shoelace/assets/icons/pin-fill.svg +0 -3
- package/shoelace/assets/icons/pin.svg +0 -3
- package/shoelace/assets/icons/pip-fill.svg +0 -3
- package/shoelace/assets/icons/pip.svg +0 -4
- package/shoelace/assets/icons/play-btn-fill.svg +0 -3
- package/shoelace/assets/icons/play-btn.svg +0 -4
- package/shoelace/assets/icons/play-circle-fill.svg +0 -3
- package/shoelace/assets/icons/play-circle.svg +0 -4
- package/shoelace/assets/icons/play-fill.svg +0 -3
- package/shoelace/assets/icons/play.svg +0 -3
- package/shoelace/assets/icons/plug-fill.svg +0 -3
- package/shoelace/assets/icons/plug.svg +0 -3
- package/shoelace/assets/icons/plus-circle-dotted.svg +0 -3
- package/shoelace/assets/icons/plus-circle-fill.svg +0 -3
- package/shoelace/assets/icons/plus-circle.svg +0 -4
- package/shoelace/assets/icons/plus-square-dotted.svg +0 -3
- package/shoelace/assets/icons/plus-square-fill.svg +0 -3
- package/shoelace/assets/icons/plus-square.svg +0 -4
- package/shoelace/assets/icons/plus.svg +0 -3
- package/shoelace/assets/icons/power.svg +0 -4
- package/shoelace/assets/icons/printer-fill.svg +0 -4
- package/shoelace/assets/icons/printer.svg +0 -4
- package/shoelace/assets/icons/puzzle-fill.svg +0 -3
- package/shoelace/assets/icons/puzzle.svg +0 -3
- package/shoelace/assets/icons/question-circle-fill.svg +0 -3
- package/shoelace/assets/icons/question-circle.svg +0 -4
- package/shoelace/assets/icons/question-diamond-fill.svg +0 -3
- package/shoelace/assets/icons/question-diamond.svg +0 -4
- package/shoelace/assets/icons/question-octagon-fill.svg +0 -3
- package/shoelace/assets/icons/question-octagon.svg +0 -4
- package/shoelace/assets/icons/question-square-fill.svg +0 -3
- package/shoelace/assets/icons/question-square.svg +0 -4
- package/shoelace/assets/icons/question.svg +0 -3
- package/shoelace/assets/icons/rainbow.svg +0 -3
- package/shoelace/assets/icons/receipt-cutoff.svg +0 -4
- package/shoelace/assets/icons/receipt.svg +0 -4
- package/shoelace/assets/icons/reception-0.svg +0 -3
- package/shoelace/assets/icons/reception-1.svg +0 -3
- package/shoelace/assets/icons/reception-2.svg +0 -3
- package/shoelace/assets/icons/reception-3.svg +0 -3
- package/shoelace/assets/icons/reception-4.svg +0 -3
- package/shoelace/assets/icons/record-btn-fill.svg +0 -3
- package/shoelace/assets/icons/record-btn.svg +0 -4
- package/shoelace/assets/icons/record-circle-fill.svg +0 -3
- package/shoelace/assets/icons/record-circle.svg +0 -4
- package/shoelace/assets/icons/record-fill.svg +0 -3
- package/shoelace/assets/icons/record.svg +0 -3
- package/shoelace/assets/icons/record2-fill.svg +0 -4
- package/shoelace/assets/icons/record2.svg +0 -4
- package/shoelace/assets/icons/reply-all-fill.svg +0 -4
- package/shoelace/assets/icons/reply-all.svg +0 -4
- package/shoelace/assets/icons/reply-fill.svg +0 -3
- package/shoelace/assets/icons/reply.svg +0 -3
- package/shoelace/assets/icons/rss-fill.svg +0 -3
- package/shoelace/assets/icons/rss.svg +0 -4
- package/shoelace/assets/icons/rulers.svg +0 -3
- package/shoelace/assets/icons/save-fill.svg +0 -3
- package/shoelace/assets/icons/save.svg +0 -3
- package/shoelace/assets/icons/save2-fill.svg +0 -3
- package/shoelace/assets/icons/save2.svg +0 -3
- package/shoelace/assets/icons/scissors.svg +0 -3
- package/shoelace/assets/icons/screwdriver.svg +0 -3
- package/shoelace/assets/icons/search.svg +0 -3
- package/shoelace/assets/icons/segmented-nav.svg +0 -3
- package/shoelace/assets/icons/server.svg +0 -5
- package/shoelace/assets/icons/share-fill.svg +0 -3
- package/shoelace/assets/icons/share.svg +0 -3
- package/shoelace/assets/icons/shield-check.svg +0 -4
- package/shoelace/assets/icons/shield-exclamation.svg +0 -4
- package/shoelace/assets/icons/shield-fill-check.svg +0 -3
- package/shoelace/assets/icons/shield-fill-exclamation.svg +0 -3
- package/shoelace/assets/icons/shield-fill-minus.svg +0 -3
- package/shoelace/assets/icons/shield-fill-plus.svg +0 -3
- package/shoelace/assets/icons/shield-fill-x.svg +0 -3
- package/shoelace/assets/icons/shield-fill.svg +0 -3
- package/shoelace/assets/icons/shield-lock-fill.svg +0 -3
- package/shoelace/assets/icons/shield-lock.svg +0 -4
- package/shoelace/assets/icons/shield-minus.svg +0 -4
- package/shoelace/assets/icons/shield-plus.svg +0 -4
- package/shoelace/assets/icons/shield-shaded.svg +0 -3
- package/shoelace/assets/icons/shield-slash-fill.svg +0 -3
- package/shoelace/assets/icons/shield-slash.svg +0 -3
- package/shoelace/assets/icons/shield-x.svg +0 -4
- package/shoelace/assets/icons/shield.svg +0 -3
- package/shoelace/assets/icons/shift-fill.svg +0 -3
- package/shoelace/assets/icons/shift.svg +0 -3
- package/shoelace/assets/icons/shop-window.svg +0 -3
- package/shoelace/assets/icons/shop.svg +0 -3
- package/shoelace/assets/icons/shuffle.svg +0 -4
- package/shoelace/assets/icons/signpost-2-fill.svg +0 -3
- package/shoelace/assets/icons/signpost-2.svg +0 -3
- package/shoelace/assets/icons/signpost-fill.svg +0 -3
- package/shoelace/assets/icons/signpost-split-fill.svg +0 -3
- package/shoelace/assets/icons/signpost-split.svg +0 -3
- package/shoelace/assets/icons/signpost.svg +0 -3
- package/shoelace/assets/icons/sim-fill.svg +0 -4
- package/shoelace/assets/icons/sim.svg +0 -4
- package/shoelace/assets/icons/skip-backward-btn-fill.svg +0 -3
- package/shoelace/assets/icons/skip-backward-btn.svg +0 -4
- package/shoelace/assets/icons/skip-backward-circle-fill.svg +0 -3
- package/shoelace/assets/icons/skip-backward-circle.svg +0 -4
- package/shoelace/assets/icons/skip-backward-fill.svg +0 -3
- package/shoelace/assets/icons/skip-backward.svg +0 -3
- package/shoelace/assets/icons/skip-end-btn-fill.svg +0 -3
- package/shoelace/assets/icons/skip-end-btn.svg +0 -4
- package/shoelace/assets/icons/skip-end-circle-fill.svg +0 -3
- package/shoelace/assets/icons/skip-end-circle.svg +0 -4
- package/shoelace/assets/icons/skip-end-fill.svg +0 -3
- package/shoelace/assets/icons/skip-end.svg +0 -3
- package/shoelace/assets/icons/skip-forward-btn-fill.svg +0 -3
- package/shoelace/assets/icons/skip-forward-btn.svg +0 -4
- package/shoelace/assets/icons/skip-forward-circle-fill.svg +0 -3
- package/shoelace/assets/icons/skip-forward-circle.svg +0 -4
- package/shoelace/assets/icons/skip-forward-fill.svg +0 -3
- package/shoelace/assets/icons/skip-forward.svg +0 -3
- package/shoelace/assets/icons/skip-start-btn-fill.svg +0 -3
- package/shoelace/assets/icons/skip-start-btn.svg +0 -4
- package/shoelace/assets/icons/skip-start-circle-fill.svg +0 -3
- package/shoelace/assets/icons/skip-start-circle.svg +0 -4
- package/shoelace/assets/icons/skip-start-fill.svg +0 -3
- package/shoelace/assets/icons/skip-start.svg +0 -3
- package/shoelace/assets/icons/slack.svg +0 -3
- package/shoelace/assets/icons/slash-circle-fill.svg +0 -3
- package/shoelace/assets/icons/slash-circle.svg +0 -4
- package/shoelace/assets/icons/slash-square-fill.svg +0 -3
- package/shoelace/assets/icons/slash-square.svg +0 -4
- package/shoelace/assets/icons/slash.svg +0 -3
- package/shoelace/assets/icons/sliders.svg +0 -3
- package/shoelace/assets/icons/smartwatch.svg +0 -4
- package/shoelace/assets/icons/snow.svg +0 -3
- package/shoelace/assets/icons/snow2.svg +0 -3
- package/shoelace/assets/icons/snow3.svg +0 -4
- package/shoelace/assets/icons/sort-alpha-down-alt.svg +0 -5
- package/shoelace/assets/icons/sort-alpha-down.svg +0 -4
- package/shoelace/assets/icons/sort-alpha-up-alt.svg +0 -5
- package/shoelace/assets/icons/sort-alpha-up.svg +0 -4
- package/shoelace/assets/icons/sort-down-alt.svg +0 -3
- package/shoelace/assets/icons/sort-down.svg +0 -3
- package/shoelace/assets/icons/sort-numeric-down-alt.svg +0 -4
- package/shoelace/assets/icons/sort-numeric-down.svg +0 -5
- package/shoelace/assets/icons/sort-numeric-up-alt.svg +0 -4
- package/shoelace/assets/icons/sort-numeric-up.svg +0 -5
- package/shoelace/assets/icons/sort-up-alt.svg +0 -3
- package/shoelace/assets/icons/sort-up.svg +0 -3
- package/shoelace/assets/icons/soundwave.svg +0 -3
- package/shoelace/assets/icons/speaker-fill.svg +0 -4
- package/shoelace/assets/icons/speaker.svg +0 -4
- package/shoelace/assets/icons/speedometer.svg +0 -4
- package/shoelace/assets/icons/speedometer2.svg +0 -4
- package/shoelace/assets/icons/spellcheck.svg +0 -4
- package/shoelace/assets/icons/square-fill.svg +0 -3
- package/shoelace/assets/icons/square-half.svg +0 -3
- package/shoelace/assets/icons/square.svg +0 -3
- package/shoelace/assets/icons/stack.svg +0 -4
- package/shoelace/assets/icons/star-fill.svg +0 -3
- package/shoelace/assets/icons/star-half.svg +0 -3
- package/shoelace/assets/icons/star.svg +0 -3
- package/shoelace/assets/icons/stars.svg +0 -3
- package/shoelace/assets/icons/stickies-fill.svg +0 -4
- package/shoelace/assets/icons/stickies.svg +0 -4
- package/shoelace/assets/icons/sticky-fill.svg +0 -3
- package/shoelace/assets/icons/sticky.svg +0 -3
- package/shoelace/assets/icons/stop-btn-fill.svg +0 -3
- package/shoelace/assets/icons/stop-btn.svg +0 -4
- package/shoelace/assets/icons/stop-circle-fill.svg +0 -3
- package/shoelace/assets/icons/stop-circle.svg +0 -4
- package/shoelace/assets/icons/stop-fill.svg +0 -3
- package/shoelace/assets/icons/stop.svg +0 -3
- package/shoelace/assets/icons/stoplights-fill.svg +0 -3
- package/shoelace/assets/icons/stoplights.svg +0 -4
- package/shoelace/assets/icons/stopwatch-fill.svg +0 -3
- package/shoelace/assets/icons/stopwatch.svg +0 -4
- package/shoelace/assets/icons/subtract.svg +0 -3
- package/shoelace/assets/icons/suit-club-fill.svg +0 -3
- package/shoelace/assets/icons/suit-club.svg +0 -3
- package/shoelace/assets/icons/suit-diamond-fill.svg +0 -3
- package/shoelace/assets/icons/suit-diamond.svg +0 -3
- package/shoelace/assets/icons/suit-heart-fill.svg +0 -3
- package/shoelace/assets/icons/suit-heart.svg +0 -3
- package/shoelace/assets/icons/suit-spade-fill.svg +0 -3
- package/shoelace/assets/icons/suit-spade.svg +0 -3
- package/shoelace/assets/icons/sun-fill.svg +0 -3
- package/shoelace/assets/icons/sun.svg +0 -3
- package/shoelace/assets/icons/sunglasses.svg +0 -3
- package/shoelace/assets/icons/sunrise-fill.svg +0 -3
- package/shoelace/assets/icons/sunrise.svg +0 -3
- package/shoelace/assets/icons/sunset-fill.svg +0 -3
- package/shoelace/assets/icons/sunset.svg +0 -3
- package/shoelace/assets/icons/symmetry-horizontal.svg +0 -3
- package/shoelace/assets/icons/symmetry-vertical.svg +0 -3
- package/shoelace/assets/icons/table.svg +0 -3
- package/shoelace/assets/icons/tablet-fill.svg +0 -3
- package/shoelace/assets/icons/tablet-landscape-fill.svg +0 -3
- package/shoelace/assets/icons/tablet-landscape.svg +0 -4
- package/shoelace/assets/icons/tablet.svg +0 -4
- package/shoelace/assets/icons/tag-fill.svg +0 -3
- package/shoelace/assets/icons/tag.svg +0 -4
- package/shoelace/assets/icons/tags-fill.svg +0 -4
- package/shoelace/assets/icons/tags.svg +0 -4
- package/shoelace/assets/icons/telegram.svg +0 -3
- package/shoelace/assets/icons/telephone-fill.svg +0 -3
- package/shoelace/assets/icons/telephone-forward-fill.svg +0 -3
- package/shoelace/assets/icons/telephone-forward.svg +0 -3
- package/shoelace/assets/icons/telephone-inbound-fill.svg +0 -3
- package/shoelace/assets/icons/telephone-inbound.svg +0 -3
- package/shoelace/assets/icons/telephone-minus-fill.svg +0 -3
- package/shoelace/assets/icons/telephone-minus.svg +0 -4
- package/shoelace/assets/icons/telephone-outbound-fill.svg +0 -3
- package/shoelace/assets/icons/telephone-outbound.svg +0 -3
- package/shoelace/assets/icons/telephone-plus-fill.svg +0 -3
- package/shoelace/assets/icons/telephone-plus.svg +0 -4
- package/shoelace/assets/icons/telephone-x-fill.svg +0 -3
- package/shoelace/assets/icons/telephone-x.svg +0 -4
- package/shoelace/assets/icons/telephone.svg +0 -3
- package/shoelace/assets/icons/terminal-fill.svg +0 -3
- package/shoelace/assets/icons/terminal.svg +0 -4
- package/shoelace/assets/icons/text-center.svg +0 -3
- package/shoelace/assets/icons/text-indent-left.svg +0 -3
- package/shoelace/assets/icons/text-indent-right.svg +0 -3
- package/shoelace/assets/icons/text-left.svg +0 -3
- package/shoelace/assets/icons/text-paragraph.svg +0 -3
- package/shoelace/assets/icons/text-right.svg +0 -3
- package/shoelace/assets/icons/textarea-resize.svg +0 -3
- package/shoelace/assets/icons/textarea-t.svg +0 -4
- package/shoelace/assets/icons/textarea.svg +0 -3
- package/shoelace/assets/icons/thermometer-half.svg +0 -4
- package/shoelace/assets/icons/thermometer-high.svg +0 -4
- package/shoelace/assets/icons/thermometer-low.svg +0 -4
- package/shoelace/assets/icons/thermometer-snow.svg +0 -4
- package/shoelace/assets/icons/thermometer-sun.svg +0 -4
- package/shoelace/assets/icons/thermometer.svg +0 -4
- package/shoelace/assets/icons/three-dots-vertical.svg +0 -3
- package/shoelace/assets/icons/three-dots.svg +0 -3
- package/shoelace/assets/icons/toggle-off.svg +0 -3
- package/shoelace/assets/icons/toggle-on.svg +0 -3
- package/shoelace/assets/icons/toggle2-off.svg +0 -4
- package/shoelace/assets/icons/toggle2-on.svg +0 -4
- package/shoelace/assets/icons/toggles.svg +0 -3
- package/shoelace/assets/icons/toggles2.svg +0 -5
- package/shoelace/assets/icons/tools.svg +0 -3
- package/shoelace/assets/icons/tornado.svg +0 -3
- package/shoelace/assets/icons/trash-fill.svg +0 -3
- package/shoelace/assets/icons/trash.svg +0 -4
- package/shoelace/assets/icons/trash2-fill.svg +0 -3
- package/shoelace/assets/icons/trash2.svg +0 -3
- package/shoelace/assets/icons/tree-fill.svg +0 -3
- package/shoelace/assets/icons/tree.svg +0 -3
- package/shoelace/assets/icons/triangle-fill.svg +0 -3
- package/shoelace/assets/icons/triangle-half.svg +0 -3
- package/shoelace/assets/icons/triangle.svg +0 -3
- package/shoelace/assets/icons/trophy-fill.svg +0 -3
- package/shoelace/assets/icons/trophy.svg +0 -3
- package/shoelace/assets/icons/tropical-storm.svg +0 -4
- package/shoelace/assets/icons/truck-flatbed.svg +0 -3
- package/shoelace/assets/icons/truck.svg +0 -3
- package/shoelace/assets/icons/tsunami.svg +0 -3
- package/shoelace/assets/icons/tv-fill.svg +0 -3
- package/shoelace/assets/icons/tv.svg +0 -3
- package/shoelace/assets/icons/twitch.svg +0 -4
- package/shoelace/assets/icons/twitter.svg +0 -3
- package/shoelace/assets/icons/type-bold.svg +0 -3
- package/shoelace/assets/icons/type-h1.svg +0 -3
- package/shoelace/assets/icons/type-h2.svg +0 -3
- package/shoelace/assets/icons/type-h3.svg +0 -3
- package/shoelace/assets/icons/type-italic.svg +0 -3
- package/shoelace/assets/icons/type-strikethrough.svg +0 -3
- package/shoelace/assets/icons/type-underline.svg +0 -3
- package/shoelace/assets/icons/type.svg +0 -3
- package/shoelace/assets/icons/ui-checks-grid.svg +0 -3
- package/shoelace/assets/icons/ui-checks.svg +0 -3
- package/shoelace/assets/icons/ui-radios-grid.svg +0 -3
- package/shoelace/assets/icons/ui-radios.svg +0 -3
- package/shoelace/assets/icons/umbrella-fill.svg +0 -3
- package/shoelace/assets/icons/umbrella.svg +0 -3
- package/shoelace/assets/icons/union.svg +0 -4
- package/shoelace/assets/icons/unlock-fill.svg +0 -3
- package/shoelace/assets/icons/unlock.svg +0 -3
- package/shoelace/assets/icons/upc-scan.svg +0 -3
- package/shoelace/assets/icons/upc.svg +0 -3
- package/shoelace/assets/icons/upload.svg +0 -4
- package/shoelace/assets/icons/vector-pen.svg +0 -4
- package/shoelace/assets/icons/view-list.svg +0 -3
- package/shoelace/assets/icons/view-stacked.svg +0 -3
- package/shoelace/assets/icons/vinyl-fill.svg +0 -4
- package/shoelace/assets/icons/vinyl.svg +0 -5
- package/shoelace/assets/icons/voicemail.svg +0 -3
- package/shoelace/assets/icons/volume-down-fill.svg +0 -3
- package/shoelace/assets/icons/volume-down.svg +0 -3
- package/shoelace/assets/icons/volume-mute-fill.svg +0 -3
- package/shoelace/assets/icons/volume-mute.svg +0 -3
- package/shoelace/assets/icons/volume-off-fill.svg +0 -3
- package/shoelace/assets/icons/volume-off.svg +0 -3
- package/shoelace/assets/icons/volume-up-fill.svg +0 -5
- package/shoelace/assets/icons/volume-up.svg +0 -5
- package/shoelace/assets/icons/vr.svg +0 -3
- package/shoelace/assets/icons/wallet-fill.svg +0 -4
- package/shoelace/assets/icons/wallet.svg +0 -3
- package/shoelace/assets/icons/wallet2.svg +0 -3
- package/shoelace/assets/icons/watch.svg +0 -4
- package/shoelace/assets/icons/water.svg +0 -3
- package/shoelace/assets/icons/whatsapp.svg +0 -3
- package/shoelace/assets/icons/wifi-1.svg +0 -3
- package/shoelace/assets/icons/wifi-2.svg +0 -3
- package/shoelace/assets/icons/wifi-off.svg +0 -3
- package/shoelace/assets/icons/wifi.svg +0 -4
- package/shoelace/assets/icons/wind.svg +0 -3
- package/shoelace/assets/icons/window-dock.svg +0 -4
- package/shoelace/assets/icons/window-sidebar.svg +0 -4
- package/shoelace/assets/icons/window.svg +0 -4
- package/shoelace/assets/icons/wrench.svg +0 -3
- package/shoelace/assets/icons/x-circle-fill.svg +0 -3
- package/shoelace/assets/icons/x-circle.svg +0 -4
- package/shoelace/assets/icons/x-diamond-fill.svg +0 -3
- package/shoelace/assets/icons/x-diamond.svg +0 -3
- package/shoelace/assets/icons/x-octagon-fill.svg +0 -3
- package/shoelace/assets/icons/x-octagon.svg +0 -4
- package/shoelace/assets/icons/x-square-fill.svg +0 -3
- package/shoelace/assets/icons/x-square.svg +0 -4
- package/shoelace/assets/icons/x.svg +0 -3
- package/shoelace/assets/icons/youtube.svg +0 -3
- package/shoelace/assets/icons/zoom-in.svg +0 -5
- package/shoelace/assets/icons/zoom-out.svg +0 -5
- package/shoelace/themes/themes/base.css +0 -273
- package/shoelace/themes/themes/base.d.ts +0 -1
- package/shoelace/themes/themes/base.js +0 -0
- package/shoelace/themes/themes/dark.css +0 -237
- package/shoelace/themes/themes/dark.d.ts +0 -1
- package/shoelace/themes/themes/dark.js +0 -0
|
@@ -1,4273 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const _extends = require('./extends-0302d27d.js');
|
|
4
|
-
|
|
5
|
-
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
6
|
-
|
|
7
|
-
var isBrowser = (typeof window === "undefined" ? "undefined" : _typeof(window)) === "object" && (typeof document === "undefined" ? "undefined" : _typeof(document)) === 'object' && document.nodeType === 9;
|
|
8
|
-
|
|
9
|
-
function _defineProperties(target, props) {
|
|
10
|
-
for (var i = 0; i < props.length; i++) {
|
|
11
|
-
var descriptor = props[i];
|
|
12
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
13
|
-
descriptor.configurable = true;
|
|
14
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
15
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
20
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
21
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
22
|
-
return Constructor;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
function _setPrototypeOf(o, p) {
|
|
26
|
-
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
27
|
-
o.__proto__ = p;
|
|
28
|
-
return o;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
return _setPrototypeOf(o, p);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
function _inheritsLoose(subClass, superClass) {
|
|
35
|
-
subClass.prototype = Object.create(superClass.prototype);
|
|
36
|
-
subClass.prototype.constructor = subClass;
|
|
37
|
-
_setPrototypeOf(subClass, superClass);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
function _assertThisInitialized(self) {
|
|
41
|
-
if (self === void 0) {
|
|
42
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
return self;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
49
|
-
if (source == null) return {};
|
|
50
|
-
var target = {};
|
|
51
|
-
var sourceKeys = Object.keys(source);
|
|
52
|
-
var key, i;
|
|
53
|
-
|
|
54
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
55
|
-
key = sourceKeys[i];
|
|
56
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
57
|
-
target[key] = source[key];
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
return target;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
var plainObjectConstrurctor = {}.constructor;
|
|
64
|
-
function cloneStyle(style) {
|
|
65
|
-
if (style == null || typeof style !== 'object') return style;
|
|
66
|
-
if (Array.isArray(style)) return style.map(cloneStyle);
|
|
67
|
-
if (style.constructor !== plainObjectConstrurctor) return style;
|
|
68
|
-
var newStyle = {};
|
|
69
|
-
|
|
70
|
-
for (var name in style) {
|
|
71
|
-
newStyle[name] = cloneStyle(style[name]);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
return newStyle;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* Create a rule instance.
|
|
79
|
-
*/
|
|
80
|
-
|
|
81
|
-
function createRule(name, decl, options) {
|
|
82
|
-
if (name === void 0) {
|
|
83
|
-
name = 'unnamed';
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
var jss = options.jss;
|
|
87
|
-
var declCopy = cloneStyle(decl);
|
|
88
|
-
var rule = jss.plugins.onCreateRule(name, declCopy, options);
|
|
89
|
-
if (rule) return rule; // It is an at-rule and it has no instance.
|
|
90
|
-
|
|
91
|
-
return null;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
var join = function join(value, by) {
|
|
95
|
-
var result = '';
|
|
96
|
-
|
|
97
|
-
for (var i = 0; i < value.length; i++) {
|
|
98
|
-
// Remove !important from the value, it will be readded later.
|
|
99
|
-
if (value[i] === '!important') break;
|
|
100
|
-
if (result) result += by;
|
|
101
|
-
result += value[i];
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
return result;
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* Converts array values to string.
|
|
109
|
-
*
|
|
110
|
-
* `margin: [['5px', '10px']]` > `margin: 5px 10px;`
|
|
111
|
-
* `border: ['1px', '2px']` > `border: 1px, 2px;`
|
|
112
|
-
* `margin: [['5px', '10px'], '!important']` > `margin: 5px 10px !important;`
|
|
113
|
-
* `color: ['red', !important]` > `color: red !important;`
|
|
114
|
-
*/
|
|
115
|
-
var toCssValue = function toCssValue(value, ignoreImportant) {
|
|
116
|
-
if (ignoreImportant === void 0) {
|
|
117
|
-
ignoreImportant = false;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
if (!Array.isArray(value)) return value;
|
|
121
|
-
var cssValue = ''; // Support space separated values via `[['5px', '10px']]`.
|
|
122
|
-
|
|
123
|
-
if (Array.isArray(value[0])) {
|
|
124
|
-
for (var i = 0; i < value.length; i++) {
|
|
125
|
-
if (value[i] === '!important') break;
|
|
126
|
-
if (cssValue) cssValue += ', ';
|
|
127
|
-
cssValue += join(value[i], ' ');
|
|
128
|
-
}
|
|
129
|
-
} else cssValue = join(value, ', '); // Add !important, because it was ignored.
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
if (!ignoreImportant && value[value.length - 1] === '!important') {
|
|
133
|
-
cssValue += ' !important';
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
return cssValue;
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* Indent a string.
|
|
141
|
-
* http://jsperf.com/array-join-vs-for
|
|
142
|
-
*/
|
|
143
|
-
function indentStr(str, indent) {
|
|
144
|
-
var result = '';
|
|
145
|
-
|
|
146
|
-
for (var index = 0; index < indent; index++) {
|
|
147
|
-
result += ' ';
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
return result + str;
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* Converts a Rule to CSS string.
|
|
154
|
-
*/
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
function toCss(selector, style, options) {
|
|
158
|
-
if (options === void 0) {
|
|
159
|
-
options = {};
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
var result = '';
|
|
163
|
-
if (!style) return result;
|
|
164
|
-
var _options = options,
|
|
165
|
-
_options$indent = _options.indent,
|
|
166
|
-
indent = _options$indent === void 0 ? 0 : _options$indent;
|
|
167
|
-
var fallbacks = style.fallbacks;
|
|
168
|
-
if (selector) indent++; // Apply fallbacks first.
|
|
169
|
-
|
|
170
|
-
if (fallbacks) {
|
|
171
|
-
// Array syntax {fallbacks: [{prop: value}]}
|
|
172
|
-
if (Array.isArray(fallbacks)) {
|
|
173
|
-
for (var index = 0; index < fallbacks.length; index++) {
|
|
174
|
-
var fallback = fallbacks[index];
|
|
175
|
-
|
|
176
|
-
for (var prop in fallback) {
|
|
177
|
-
var value = fallback[prop];
|
|
178
|
-
|
|
179
|
-
if (value != null) {
|
|
180
|
-
if (result) result += '\n';
|
|
181
|
-
result += indentStr(prop + ": " + toCssValue(value) + ";", indent);
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
} else {
|
|
186
|
-
// Object syntax {fallbacks: {prop: value}}
|
|
187
|
-
for (var _prop in fallbacks) {
|
|
188
|
-
var _value = fallbacks[_prop];
|
|
189
|
-
|
|
190
|
-
if (_value != null) {
|
|
191
|
-
if (result) result += '\n';
|
|
192
|
-
result += indentStr(_prop + ": " + toCssValue(_value) + ";", indent);
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
for (var _prop2 in style) {
|
|
199
|
-
var _value2 = style[_prop2];
|
|
200
|
-
|
|
201
|
-
if (_value2 != null && _prop2 !== 'fallbacks') {
|
|
202
|
-
if (result) result += '\n';
|
|
203
|
-
result += indentStr(_prop2 + ": " + toCssValue(_value2) + ";", indent);
|
|
204
|
-
}
|
|
205
|
-
} // Allow empty style in this case, because properties will be added dynamically.
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
if (!result && !options.allowEmpty) return result; // When rule is being stringified before selector was defined.
|
|
209
|
-
|
|
210
|
-
if (!selector) return result;
|
|
211
|
-
indent--;
|
|
212
|
-
if (result) result = "\n" + result + "\n";
|
|
213
|
-
return indentStr(selector + " {" + result, indent) + indentStr('}', indent);
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
var escapeRegex = /([[\].#*$><+~=|^:(),"'`\s])/g;
|
|
217
|
-
var nativeEscape = typeof CSS !== 'undefined' && CSS.escape;
|
|
218
|
-
var escape = (function (str) {
|
|
219
|
-
return nativeEscape ? nativeEscape(str) : str.replace(escapeRegex, '\\$1');
|
|
220
|
-
});
|
|
221
|
-
|
|
222
|
-
var BaseStyleRule =
|
|
223
|
-
/*#__PURE__*/
|
|
224
|
-
function () {
|
|
225
|
-
function BaseStyleRule(key, style, options) {
|
|
226
|
-
this.type = 'style';
|
|
227
|
-
this.key = void 0;
|
|
228
|
-
this.isProcessed = false;
|
|
229
|
-
this.style = void 0;
|
|
230
|
-
this.renderer = void 0;
|
|
231
|
-
this.renderable = void 0;
|
|
232
|
-
this.options = void 0;
|
|
233
|
-
var sheet = options.sheet,
|
|
234
|
-
Renderer = options.Renderer;
|
|
235
|
-
this.key = key;
|
|
236
|
-
this.options = options;
|
|
237
|
-
this.style = style;
|
|
238
|
-
if (sheet) this.renderer = sheet.renderer;else if (Renderer) this.renderer = new Renderer();
|
|
239
|
-
}
|
|
240
|
-
/**
|
|
241
|
-
* Get or set a style property.
|
|
242
|
-
*/
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
var _proto = BaseStyleRule.prototype;
|
|
246
|
-
|
|
247
|
-
_proto.prop = function prop(name, value, options) {
|
|
248
|
-
// It's a getter.
|
|
249
|
-
if (value === undefined) return this.style[name]; // Don't do anything if the value has not changed.
|
|
250
|
-
|
|
251
|
-
var force = options ? options.force : false;
|
|
252
|
-
if (!force && this.style[name] === value) return this;
|
|
253
|
-
var newValue = value;
|
|
254
|
-
|
|
255
|
-
if (!options || options.process !== false) {
|
|
256
|
-
newValue = this.options.jss.plugins.onChangeValue(value, name, this);
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
var isEmpty = newValue == null || newValue === false;
|
|
260
|
-
var isDefined = name in this.style; // Value is empty and wasn't defined before.
|
|
261
|
-
|
|
262
|
-
if (isEmpty && !isDefined && !force) return this; // We are going to remove this value.
|
|
263
|
-
|
|
264
|
-
var remove = isEmpty && isDefined;
|
|
265
|
-
if (remove) delete this.style[name];else this.style[name] = newValue; // Renderable is defined if StyleSheet option `link` is true.
|
|
266
|
-
|
|
267
|
-
if (this.renderable && this.renderer) {
|
|
268
|
-
if (remove) this.renderer.removeProperty(this.renderable, name);else this.renderer.setProperty(this.renderable, name, newValue);
|
|
269
|
-
return this;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
return this;
|
|
273
|
-
};
|
|
274
|
-
|
|
275
|
-
return BaseStyleRule;
|
|
276
|
-
}();
|
|
277
|
-
var StyleRule =
|
|
278
|
-
/*#__PURE__*/
|
|
279
|
-
function (_BaseStyleRule) {
|
|
280
|
-
_inheritsLoose(StyleRule, _BaseStyleRule);
|
|
281
|
-
|
|
282
|
-
function StyleRule(key, style, options) {
|
|
283
|
-
var _this;
|
|
284
|
-
|
|
285
|
-
_this = _BaseStyleRule.call(this, key, style, options) || this;
|
|
286
|
-
_this.selectorText = void 0;
|
|
287
|
-
_this.id = void 0;
|
|
288
|
-
_this.renderable = void 0;
|
|
289
|
-
var selector = options.selector,
|
|
290
|
-
scoped = options.scoped,
|
|
291
|
-
sheet = options.sheet,
|
|
292
|
-
generateId = options.generateId;
|
|
293
|
-
|
|
294
|
-
if (selector) {
|
|
295
|
-
_this.selectorText = selector;
|
|
296
|
-
} else if (scoped !== false) {
|
|
297
|
-
_this.id = generateId(_assertThisInitialized(_assertThisInitialized(_this)), sheet);
|
|
298
|
-
_this.selectorText = "." + escape(_this.id);
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
return _this;
|
|
302
|
-
}
|
|
303
|
-
/**
|
|
304
|
-
* Set selector string.
|
|
305
|
-
* Attention: use this with caution. Most browsers didn't implement
|
|
306
|
-
* selectorText setter, so this may result in rerendering of entire Style Sheet.
|
|
307
|
-
*/
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
var _proto2 = StyleRule.prototype;
|
|
311
|
-
|
|
312
|
-
/**
|
|
313
|
-
* Apply rule to an element inline.
|
|
314
|
-
*/
|
|
315
|
-
_proto2.applyTo = function applyTo(renderable) {
|
|
316
|
-
var renderer = this.renderer;
|
|
317
|
-
|
|
318
|
-
if (renderer) {
|
|
319
|
-
var json = this.toJSON();
|
|
320
|
-
|
|
321
|
-
for (var prop in json) {
|
|
322
|
-
renderer.setProperty(renderable, prop, json[prop]);
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
return this;
|
|
327
|
-
}
|
|
328
|
-
/**
|
|
329
|
-
* Returns JSON representation of the rule.
|
|
330
|
-
* Fallbacks are not supported.
|
|
331
|
-
* Useful for inline styles.
|
|
332
|
-
*/
|
|
333
|
-
;
|
|
334
|
-
|
|
335
|
-
_proto2.toJSON = function toJSON() {
|
|
336
|
-
var json = {};
|
|
337
|
-
|
|
338
|
-
for (var prop in this.style) {
|
|
339
|
-
var value = this.style[prop];
|
|
340
|
-
if (typeof value !== 'object') json[prop] = value;else if (Array.isArray(value)) json[prop] = toCssValue(value);
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
return json;
|
|
344
|
-
}
|
|
345
|
-
/**
|
|
346
|
-
* Generates a CSS string.
|
|
347
|
-
*/
|
|
348
|
-
;
|
|
349
|
-
|
|
350
|
-
_proto2.toString = function toString(options) {
|
|
351
|
-
var sheet = this.options.sheet;
|
|
352
|
-
var link = sheet ? sheet.options.link : false;
|
|
353
|
-
var opts = link ? _extends._extends({}, options, {
|
|
354
|
-
allowEmpty: true
|
|
355
|
-
}) : options;
|
|
356
|
-
return toCss(this.selectorText, this.style, opts);
|
|
357
|
-
};
|
|
358
|
-
|
|
359
|
-
_createClass(StyleRule, [{
|
|
360
|
-
key: "selector",
|
|
361
|
-
set: function set(selector) {
|
|
362
|
-
if (selector === this.selectorText) return;
|
|
363
|
-
this.selectorText = selector;
|
|
364
|
-
var renderer = this.renderer,
|
|
365
|
-
renderable = this.renderable;
|
|
366
|
-
if (!renderable || !renderer) return;
|
|
367
|
-
var hasChanged = renderer.setSelector(renderable, selector); // If selector setter is not implemented, rerender the rule.
|
|
368
|
-
|
|
369
|
-
if (!hasChanged) {
|
|
370
|
-
renderer.replaceRule(renderable, this);
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
/**
|
|
374
|
-
* Get selector string.
|
|
375
|
-
*/
|
|
376
|
-
,
|
|
377
|
-
get: function get() {
|
|
378
|
-
return this.selectorText;
|
|
379
|
-
}
|
|
380
|
-
}]);
|
|
381
|
-
|
|
382
|
-
return StyleRule;
|
|
383
|
-
}(BaseStyleRule);
|
|
384
|
-
var pluginStyleRule = {
|
|
385
|
-
onCreateRule: function onCreateRule(name, style, options) {
|
|
386
|
-
if (name[0] === '@' || options.parent && options.parent.type === 'keyframes') {
|
|
387
|
-
return null;
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
return new StyleRule(name, style, options);
|
|
391
|
-
}
|
|
392
|
-
};
|
|
393
|
-
|
|
394
|
-
var defaultToStringOptions = {
|
|
395
|
-
indent: 1,
|
|
396
|
-
children: true
|
|
397
|
-
};
|
|
398
|
-
var atRegExp = /@([\w-]+)/;
|
|
399
|
-
/**
|
|
400
|
-
* Conditional rule for @media, @supports
|
|
401
|
-
*/
|
|
402
|
-
|
|
403
|
-
var ConditionalRule =
|
|
404
|
-
/*#__PURE__*/
|
|
405
|
-
function () {
|
|
406
|
-
function ConditionalRule(key, styles, options) {
|
|
407
|
-
this.type = 'conditional';
|
|
408
|
-
this.at = void 0;
|
|
409
|
-
this.key = void 0;
|
|
410
|
-
this.query = void 0;
|
|
411
|
-
this.rules = void 0;
|
|
412
|
-
this.options = void 0;
|
|
413
|
-
this.isProcessed = false;
|
|
414
|
-
this.renderable = void 0;
|
|
415
|
-
this.key = key;
|
|
416
|
-
var atMatch = key.match(atRegExp);
|
|
417
|
-
this.at = atMatch ? atMatch[1] : 'unknown'; // Key might contain a unique suffix in case the `name` passed by user was duplicate.
|
|
418
|
-
|
|
419
|
-
this.query = options.name || "@" + this.at;
|
|
420
|
-
this.options = options;
|
|
421
|
-
this.rules = new RuleList(_extends._extends({}, options, {
|
|
422
|
-
parent: this
|
|
423
|
-
}));
|
|
424
|
-
|
|
425
|
-
for (var name in styles) {
|
|
426
|
-
this.rules.add(name, styles[name]);
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
this.rules.process();
|
|
430
|
-
}
|
|
431
|
-
/**
|
|
432
|
-
* Get a rule.
|
|
433
|
-
*/
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
var _proto = ConditionalRule.prototype;
|
|
437
|
-
|
|
438
|
-
_proto.getRule = function getRule(name) {
|
|
439
|
-
return this.rules.get(name);
|
|
440
|
-
}
|
|
441
|
-
/**
|
|
442
|
-
* Get index of a rule.
|
|
443
|
-
*/
|
|
444
|
-
;
|
|
445
|
-
|
|
446
|
-
_proto.indexOf = function indexOf(rule) {
|
|
447
|
-
return this.rules.indexOf(rule);
|
|
448
|
-
}
|
|
449
|
-
/**
|
|
450
|
-
* Create and register rule, run plugins.
|
|
451
|
-
*/
|
|
452
|
-
;
|
|
453
|
-
|
|
454
|
-
_proto.addRule = function addRule(name, style, options) {
|
|
455
|
-
var rule = this.rules.add(name, style, options);
|
|
456
|
-
if (!rule) return null;
|
|
457
|
-
this.options.jss.plugins.onProcessRule(rule);
|
|
458
|
-
return rule;
|
|
459
|
-
}
|
|
460
|
-
/**
|
|
461
|
-
* Generates a CSS string.
|
|
462
|
-
*/
|
|
463
|
-
;
|
|
464
|
-
|
|
465
|
-
_proto.toString = function toString(options) {
|
|
466
|
-
if (options === void 0) {
|
|
467
|
-
options = defaultToStringOptions;
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
if (options.indent == null) options.indent = defaultToStringOptions.indent;
|
|
471
|
-
if (options.children == null) options.children = defaultToStringOptions.children;
|
|
472
|
-
|
|
473
|
-
if (options.children === false) {
|
|
474
|
-
return this.query + " {}";
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
var children = this.rules.toString(options);
|
|
478
|
-
return children ? this.query + " {\n" + children + "\n}" : '';
|
|
479
|
-
};
|
|
480
|
-
|
|
481
|
-
return ConditionalRule;
|
|
482
|
-
}();
|
|
483
|
-
var keyRegExp = /@media|@supports\s+/;
|
|
484
|
-
var pluginConditionalRule = {
|
|
485
|
-
onCreateRule: function onCreateRule(key, styles, options) {
|
|
486
|
-
return keyRegExp.test(key) ? new ConditionalRule(key, styles, options) : null;
|
|
487
|
-
}
|
|
488
|
-
};
|
|
489
|
-
|
|
490
|
-
var defaultToStringOptions$1 = {
|
|
491
|
-
indent: 1,
|
|
492
|
-
children: true
|
|
493
|
-
};
|
|
494
|
-
var nameRegExp = /@keyframes\s+([\w-]+)/;
|
|
495
|
-
/**
|
|
496
|
-
* Rule for @keyframes
|
|
497
|
-
*/
|
|
498
|
-
|
|
499
|
-
var KeyframesRule =
|
|
500
|
-
/*#__PURE__*/
|
|
501
|
-
function () {
|
|
502
|
-
function KeyframesRule(key, frames, options) {
|
|
503
|
-
this.type = 'keyframes';
|
|
504
|
-
this.at = '@keyframes';
|
|
505
|
-
this.key = void 0;
|
|
506
|
-
this.name = void 0;
|
|
507
|
-
this.id = void 0;
|
|
508
|
-
this.rules = void 0;
|
|
509
|
-
this.options = void 0;
|
|
510
|
-
this.isProcessed = false;
|
|
511
|
-
this.renderable = void 0;
|
|
512
|
-
var nameMatch = key.match(nameRegExp);
|
|
513
|
-
|
|
514
|
-
if (nameMatch && nameMatch[1]) {
|
|
515
|
-
this.name = nameMatch[1];
|
|
516
|
-
} else {
|
|
517
|
-
this.name = 'noname';
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
this.key = this.type + "-" + this.name;
|
|
521
|
-
this.options = options;
|
|
522
|
-
var scoped = options.scoped,
|
|
523
|
-
sheet = options.sheet,
|
|
524
|
-
generateId = options.generateId;
|
|
525
|
-
this.id = scoped === false ? this.name : escape(generateId(this, sheet));
|
|
526
|
-
this.rules = new RuleList(_extends._extends({}, options, {
|
|
527
|
-
parent: this
|
|
528
|
-
}));
|
|
529
|
-
|
|
530
|
-
for (var name in frames) {
|
|
531
|
-
this.rules.add(name, frames[name], _extends._extends({}, options, {
|
|
532
|
-
parent: this
|
|
533
|
-
}));
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
this.rules.process();
|
|
537
|
-
}
|
|
538
|
-
/**
|
|
539
|
-
* Generates a CSS string.
|
|
540
|
-
*/
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
var _proto = KeyframesRule.prototype;
|
|
544
|
-
|
|
545
|
-
_proto.toString = function toString(options) {
|
|
546
|
-
if (options === void 0) {
|
|
547
|
-
options = defaultToStringOptions$1;
|
|
548
|
-
}
|
|
549
|
-
|
|
550
|
-
if (options.indent == null) options.indent = defaultToStringOptions$1.indent;
|
|
551
|
-
if (options.children == null) options.children = defaultToStringOptions$1.children;
|
|
552
|
-
|
|
553
|
-
if (options.children === false) {
|
|
554
|
-
return this.at + " " + this.id + " {}";
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
var children = this.rules.toString(options);
|
|
558
|
-
if (children) children = "\n" + children + "\n";
|
|
559
|
-
return this.at + " " + this.id + " {" + children + "}";
|
|
560
|
-
};
|
|
561
|
-
|
|
562
|
-
return KeyframesRule;
|
|
563
|
-
}();
|
|
564
|
-
var keyRegExp$1 = /@keyframes\s+/;
|
|
565
|
-
var refRegExp = /\$([\w-]+)/g;
|
|
566
|
-
|
|
567
|
-
var findReferencedKeyframe = function findReferencedKeyframe(val, keyframes) {
|
|
568
|
-
if (typeof val === 'string') {
|
|
569
|
-
return val.replace(refRegExp, function (match, name) {
|
|
570
|
-
if (name in keyframes) {
|
|
571
|
-
return keyframes[name];
|
|
572
|
-
}
|
|
573
|
-
return match;
|
|
574
|
-
});
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
return val;
|
|
578
|
-
};
|
|
579
|
-
/**
|
|
580
|
-
* Replace the reference for a animation name.
|
|
581
|
-
*/
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
var replaceRef = function replaceRef(style, prop, keyframes) {
|
|
585
|
-
var value = style[prop];
|
|
586
|
-
var refKeyframe = findReferencedKeyframe(value, keyframes);
|
|
587
|
-
|
|
588
|
-
if (refKeyframe !== value) {
|
|
589
|
-
style[prop] = refKeyframe;
|
|
590
|
-
}
|
|
591
|
-
};
|
|
592
|
-
|
|
593
|
-
var plugin = {
|
|
594
|
-
onCreateRule: function onCreateRule(key, frames, options) {
|
|
595
|
-
return typeof key === 'string' && keyRegExp$1.test(key) ? new KeyframesRule(key, frames, options) : null;
|
|
596
|
-
},
|
|
597
|
-
// Animation name ref replacer.
|
|
598
|
-
onProcessStyle: function onProcessStyle(style, rule, sheet) {
|
|
599
|
-
if (rule.type !== 'style' || !sheet) return style;
|
|
600
|
-
if ('animation-name' in style) replaceRef(style, 'animation-name', sheet.keyframes);
|
|
601
|
-
if ('animation' in style) replaceRef(style, 'animation', sheet.keyframes);
|
|
602
|
-
return style;
|
|
603
|
-
},
|
|
604
|
-
onChangeValue: function onChangeValue(val, prop, rule) {
|
|
605
|
-
var sheet = rule.options.sheet;
|
|
606
|
-
|
|
607
|
-
if (!sheet) {
|
|
608
|
-
return val;
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
switch (prop) {
|
|
612
|
-
case 'animation':
|
|
613
|
-
return findReferencedKeyframe(val, sheet.keyframes);
|
|
614
|
-
|
|
615
|
-
case 'animation-name':
|
|
616
|
-
return findReferencedKeyframe(val, sheet.keyframes);
|
|
617
|
-
|
|
618
|
-
default:
|
|
619
|
-
return val;
|
|
620
|
-
}
|
|
621
|
-
}
|
|
622
|
-
};
|
|
623
|
-
|
|
624
|
-
var KeyframeRule =
|
|
625
|
-
/*#__PURE__*/
|
|
626
|
-
function (_BaseStyleRule) {
|
|
627
|
-
_inheritsLoose(KeyframeRule, _BaseStyleRule);
|
|
628
|
-
|
|
629
|
-
function KeyframeRule() {
|
|
630
|
-
var _this;
|
|
631
|
-
|
|
632
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
633
|
-
args[_key] = arguments[_key];
|
|
634
|
-
}
|
|
635
|
-
|
|
636
|
-
_this = _BaseStyleRule.call.apply(_BaseStyleRule, [this].concat(args)) || this;
|
|
637
|
-
_this.renderable = void 0;
|
|
638
|
-
return _this;
|
|
639
|
-
}
|
|
640
|
-
|
|
641
|
-
var _proto = KeyframeRule.prototype;
|
|
642
|
-
|
|
643
|
-
/**
|
|
644
|
-
* Generates a CSS string.
|
|
645
|
-
*/
|
|
646
|
-
_proto.toString = function toString(options) {
|
|
647
|
-
var sheet = this.options.sheet;
|
|
648
|
-
var link = sheet ? sheet.options.link : false;
|
|
649
|
-
var opts = link ? _extends._extends({}, options, {
|
|
650
|
-
allowEmpty: true
|
|
651
|
-
}) : options;
|
|
652
|
-
return toCss(this.key, this.style, opts);
|
|
653
|
-
};
|
|
654
|
-
|
|
655
|
-
return KeyframeRule;
|
|
656
|
-
}(BaseStyleRule);
|
|
657
|
-
var pluginKeyframeRule = {
|
|
658
|
-
onCreateRule: function onCreateRule(key, style, options) {
|
|
659
|
-
if (options.parent && options.parent.type === 'keyframes') {
|
|
660
|
-
return new KeyframeRule(key, style, options);
|
|
661
|
-
}
|
|
662
|
-
|
|
663
|
-
return null;
|
|
664
|
-
}
|
|
665
|
-
};
|
|
666
|
-
|
|
667
|
-
var FontFaceRule =
|
|
668
|
-
/*#__PURE__*/
|
|
669
|
-
function () {
|
|
670
|
-
function FontFaceRule(key, style, options) {
|
|
671
|
-
this.type = 'font-face';
|
|
672
|
-
this.at = '@font-face';
|
|
673
|
-
this.key = void 0;
|
|
674
|
-
this.style = void 0;
|
|
675
|
-
this.options = void 0;
|
|
676
|
-
this.isProcessed = false;
|
|
677
|
-
this.renderable = void 0;
|
|
678
|
-
this.key = key;
|
|
679
|
-
this.style = style;
|
|
680
|
-
this.options = options;
|
|
681
|
-
}
|
|
682
|
-
/**
|
|
683
|
-
* Generates a CSS string.
|
|
684
|
-
*/
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
var _proto = FontFaceRule.prototype;
|
|
688
|
-
|
|
689
|
-
_proto.toString = function toString(options) {
|
|
690
|
-
if (Array.isArray(this.style)) {
|
|
691
|
-
var str = '';
|
|
692
|
-
|
|
693
|
-
for (var index = 0; index < this.style.length; index++) {
|
|
694
|
-
str += toCss(this.at, this.style[index]);
|
|
695
|
-
if (this.style[index + 1]) str += '\n';
|
|
696
|
-
}
|
|
697
|
-
|
|
698
|
-
return str;
|
|
699
|
-
}
|
|
700
|
-
|
|
701
|
-
return toCss(this.at, this.style, options);
|
|
702
|
-
};
|
|
703
|
-
|
|
704
|
-
return FontFaceRule;
|
|
705
|
-
}();
|
|
706
|
-
var keyRegExp$2 = /@font-face/;
|
|
707
|
-
var pluginFontFaceRule = {
|
|
708
|
-
onCreateRule: function onCreateRule(key, style, options) {
|
|
709
|
-
return keyRegExp$2.test(key) ? new FontFaceRule(key, style, options) : null;
|
|
710
|
-
}
|
|
711
|
-
};
|
|
712
|
-
|
|
713
|
-
var ViewportRule =
|
|
714
|
-
/*#__PURE__*/
|
|
715
|
-
function () {
|
|
716
|
-
function ViewportRule(key, style, options) {
|
|
717
|
-
this.type = 'viewport';
|
|
718
|
-
this.at = '@viewport';
|
|
719
|
-
this.key = void 0;
|
|
720
|
-
this.style = void 0;
|
|
721
|
-
this.options = void 0;
|
|
722
|
-
this.isProcessed = false;
|
|
723
|
-
this.renderable = void 0;
|
|
724
|
-
this.key = key;
|
|
725
|
-
this.style = style;
|
|
726
|
-
this.options = options;
|
|
727
|
-
}
|
|
728
|
-
/**
|
|
729
|
-
* Generates a CSS string.
|
|
730
|
-
*/
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
var _proto = ViewportRule.prototype;
|
|
734
|
-
|
|
735
|
-
_proto.toString = function toString(options) {
|
|
736
|
-
return toCss(this.key, this.style, options);
|
|
737
|
-
};
|
|
738
|
-
|
|
739
|
-
return ViewportRule;
|
|
740
|
-
}();
|
|
741
|
-
var pluginViewportRule = {
|
|
742
|
-
onCreateRule: function onCreateRule(key, style, options) {
|
|
743
|
-
return key === '@viewport' || key === '@-ms-viewport' ? new ViewportRule(key, style, options) : null;
|
|
744
|
-
}
|
|
745
|
-
};
|
|
746
|
-
|
|
747
|
-
var SimpleRule =
|
|
748
|
-
/*#__PURE__*/
|
|
749
|
-
function () {
|
|
750
|
-
function SimpleRule(key, value, options) {
|
|
751
|
-
this.type = 'simple';
|
|
752
|
-
this.key = void 0;
|
|
753
|
-
this.value = void 0;
|
|
754
|
-
this.options = void 0;
|
|
755
|
-
this.isProcessed = false;
|
|
756
|
-
this.renderable = void 0;
|
|
757
|
-
this.key = key;
|
|
758
|
-
this.value = value;
|
|
759
|
-
this.options = options;
|
|
760
|
-
}
|
|
761
|
-
/**
|
|
762
|
-
* Generates a CSS string.
|
|
763
|
-
*/
|
|
764
|
-
// eslint-disable-next-line no-unused-vars
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
var _proto = SimpleRule.prototype;
|
|
768
|
-
|
|
769
|
-
_proto.toString = function toString(options) {
|
|
770
|
-
if (Array.isArray(this.value)) {
|
|
771
|
-
var str = '';
|
|
772
|
-
|
|
773
|
-
for (var index = 0; index < this.value.length; index++) {
|
|
774
|
-
str += this.key + " " + this.value[index] + ";";
|
|
775
|
-
if (this.value[index + 1]) str += '\n';
|
|
776
|
-
}
|
|
777
|
-
|
|
778
|
-
return str;
|
|
779
|
-
}
|
|
780
|
-
|
|
781
|
-
return this.key + " " + this.value + ";";
|
|
782
|
-
};
|
|
783
|
-
|
|
784
|
-
return SimpleRule;
|
|
785
|
-
}();
|
|
786
|
-
var keysMap = {
|
|
787
|
-
'@charset': true,
|
|
788
|
-
'@import': true,
|
|
789
|
-
'@namespace': true
|
|
790
|
-
};
|
|
791
|
-
var pluginSimpleRule = {
|
|
792
|
-
onCreateRule: function onCreateRule(key, value, options) {
|
|
793
|
-
return key in keysMap ? new SimpleRule(key, value, options) : null;
|
|
794
|
-
}
|
|
795
|
-
};
|
|
796
|
-
|
|
797
|
-
var plugins = [pluginStyleRule, pluginConditionalRule, plugin, pluginKeyframeRule, pluginFontFaceRule, pluginViewportRule, pluginSimpleRule];
|
|
798
|
-
|
|
799
|
-
var defaultUpdateOptions = {
|
|
800
|
-
process: true
|
|
801
|
-
};
|
|
802
|
-
var forceUpdateOptions = {
|
|
803
|
-
force: true,
|
|
804
|
-
process: true
|
|
805
|
-
/**
|
|
806
|
-
* Contains rules objects and allows adding/removing etc.
|
|
807
|
-
* Is used for e.g. by `StyleSheet` or `ConditionalRule`.
|
|
808
|
-
*/
|
|
809
|
-
|
|
810
|
-
};
|
|
811
|
-
|
|
812
|
-
var RuleList =
|
|
813
|
-
/*#__PURE__*/
|
|
814
|
-
function () {
|
|
815
|
-
// Rules registry for access by .get() method.
|
|
816
|
-
// It contains the same rule registered by name and by selector.
|
|
817
|
-
// Original styles object.
|
|
818
|
-
// Used to ensure correct rules order.
|
|
819
|
-
function RuleList(options) {
|
|
820
|
-
this.map = {};
|
|
821
|
-
this.raw = {};
|
|
822
|
-
this.index = [];
|
|
823
|
-
this.counter = 0;
|
|
824
|
-
this.options = void 0;
|
|
825
|
-
this.classes = void 0;
|
|
826
|
-
this.keyframes = void 0;
|
|
827
|
-
this.options = options;
|
|
828
|
-
this.classes = options.classes;
|
|
829
|
-
this.keyframes = options.keyframes;
|
|
830
|
-
}
|
|
831
|
-
/**
|
|
832
|
-
* Create and register rule.
|
|
833
|
-
*
|
|
834
|
-
* Will not render after Style Sheet was rendered the first time.
|
|
835
|
-
*/
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
var _proto = RuleList.prototype;
|
|
839
|
-
|
|
840
|
-
_proto.add = function add(name, decl, ruleOptions) {
|
|
841
|
-
var _this$options = this.options,
|
|
842
|
-
parent = _this$options.parent,
|
|
843
|
-
sheet = _this$options.sheet,
|
|
844
|
-
jss = _this$options.jss,
|
|
845
|
-
Renderer = _this$options.Renderer,
|
|
846
|
-
generateId = _this$options.generateId,
|
|
847
|
-
scoped = _this$options.scoped;
|
|
848
|
-
|
|
849
|
-
var options = _extends._extends({
|
|
850
|
-
classes: this.classes,
|
|
851
|
-
parent: parent,
|
|
852
|
-
sheet: sheet,
|
|
853
|
-
jss: jss,
|
|
854
|
-
Renderer: Renderer,
|
|
855
|
-
generateId: generateId,
|
|
856
|
-
scoped: scoped,
|
|
857
|
-
name: name,
|
|
858
|
-
keyframes: this.keyframes,
|
|
859
|
-
selector: undefined
|
|
860
|
-
}, ruleOptions); // When user uses .createStyleSheet(), duplicate names are not possible, but
|
|
861
|
-
// `sheet.addRule()` opens the door for any duplicate rule name. When this happens
|
|
862
|
-
// we need to make the key unique within this RuleList instance scope.
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
var key = name;
|
|
866
|
-
|
|
867
|
-
if (name in this.raw) {
|
|
868
|
-
key = name + "-d" + this.counter++;
|
|
869
|
-
} // We need to save the original decl before creating the rule
|
|
870
|
-
// because cache plugin needs to use it as a key to return a cached rule.
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
this.raw[key] = decl;
|
|
874
|
-
|
|
875
|
-
if (key in this.classes) {
|
|
876
|
-
// E.g. rules inside of @media container
|
|
877
|
-
options.selector = "." + escape(this.classes[key]);
|
|
878
|
-
}
|
|
879
|
-
|
|
880
|
-
var rule = createRule(key, decl, options);
|
|
881
|
-
if (!rule) return null;
|
|
882
|
-
this.register(rule);
|
|
883
|
-
var index = options.index === undefined ? this.index.length : options.index;
|
|
884
|
-
this.index.splice(index, 0, rule);
|
|
885
|
-
return rule;
|
|
886
|
-
}
|
|
887
|
-
/**
|
|
888
|
-
* Get a rule.
|
|
889
|
-
*/
|
|
890
|
-
;
|
|
891
|
-
|
|
892
|
-
_proto.get = function get(name) {
|
|
893
|
-
return this.map[name];
|
|
894
|
-
}
|
|
895
|
-
/**
|
|
896
|
-
* Delete a rule.
|
|
897
|
-
*/
|
|
898
|
-
;
|
|
899
|
-
|
|
900
|
-
_proto.remove = function remove(rule) {
|
|
901
|
-
this.unregister(rule);
|
|
902
|
-
delete this.raw[rule.key];
|
|
903
|
-
this.index.splice(this.index.indexOf(rule), 1);
|
|
904
|
-
}
|
|
905
|
-
/**
|
|
906
|
-
* Get index of a rule.
|
|
907
|
-
*/
|
|
908
|
-
;
|
|
909
|
-
|
|
910
|
-
_proto.indexOf = function indexOf(rule) {
|
|
911
|
-
return this.index.indexOf(rule);
|
|
912
|
-
}
|
|
913
|
-
/**
|
|
914
|
-
* Run `onProcessRule()` plugins on every rule.
|
|
915
|
-
*/
|
|
916
|
-
;
|
|
917
|
-
|
|
918
|
-
_proto.process = function process() {
|
|
919
|
-
var plugins = this.options.jss.plugins; // We need to clone array because if we modify the index somewhere else during a loop
|
|
920
|
-
// we end up with very hard-to-track-down side effects.
|
|
921
|
-
|
|
922
|
-
this.index.slice(0).forEach(plugins.onProcessRule, plugins);
|
|
923
|
-
}
|
|
924
|
-
/**
|
|
925
|
-
* Register a rule in `.map`, `.classes` and `.keyframes` maps.
|
|
926
|
-
*/
|
|
927
|
-
;
|
|
928
|
-
|
|
929
|
-
_proto.register = function register(rule) {
|
|
930
|
-
this.map[rule.key] = rule;
|
|
931
|
-
|
|
932
|
-
if (rule instanceof StyleRule) {
|
|
933
|
-
this.map[rule.selector] = rule;
|
|
934
|
-
if (rule.id) this.classes[rule.key] = rule.id;
|
|
935
|
-
} else if (rule instanceof KeyframesRule && this.keyframes) {
|
|
936
|
-
this.keyframes[rule.name] = rule.id;
|
|
937
|
-
}
|
|
938
|
-
}
|
|
939
|
-
/**
|
|
940
|
-
* Unregister a rule.
|
|
941
|
-
*/
|
|
942
|
-
;
|
|
943
|
-
|
|
944
|
-
_proto.unregister = function unregister(rule) {
|
|
945
|
-
delete this.map[rule.key];
|
|
946
|
-
|
|
947
|
-
if (rule instanceof StyleRule) {
|
|
948
|
-
delete this.map[rule.selector];
|
|
949
|
-
delete this.classes[rule.key];
|
|
950
|
-
} else if (rule instanceof KeyframesRule) {
|
|
951
|
-
delete this.keyframes[rule.name];
|
|
952
|
-
}
|
|
953
|
-
}
|
|
954
|
-
/**
|
|
955
|
-
* Update the function values with a new data.
|
|
956
|
-
*/
|
|
957
|
-
;
|
|
958
|
-
|
|
959
|
-
_proto.update = function update() {
|
|
960
|
-
var name;
|
|
961
|
-
var data;
|
|
962
|
-
var options;
|
|
963
|
-
|
|
964
|
-
if (typeof (arguments.length <= 0 ? undefined : arguments[0]) === 'string') {
|
|
965
|
-
name = arguments.length <= 0 ? undefined : arguments[0]; // $FlowFixMe[invalid-tuple-index]
|
|
966
|
-
|
|
967
|
-
data = arguments.length <= 1 ? undefined : arguments[1]; // $FlowFixMe[invalid-tuple-index]
|
|
968
|
-
|
|
969
|
-
options = arguments.length <= 2 ? undefined : arguments[2];
|
|
970
|
-
} else {
|
|
971
|
-
data = arguments.length <= 0 ? undefined : arguments[0]; // $FlowFixMe[invalid-tuple-index]
|
|
972
|
-
|
|
973
|
-
options = arguments.length <= 1 ? undefined : arguments[1];
|
|
974
|
-
name = null;
|
|
975
|
-
}
|
|
976
|
-
|
|
977
|
-
if (name) {
|
|
978
|
-
this.updateOne(this.map[name], data, options);
|
|
979
|
-
} else {
|
|
980
|
-
for (var index = 0; index < this.index.length; index++) {
|
|
981
|
-
this.updateOne(this.index[index], data, options);
|
|
982
|
-
}
|
|
983
|
-
}
|
|
984
|
-
}
|
|
985
|
-
/**
|
|
986
|
-
* Execute plugins, update rule props.
|
|
987
|
-
*/
|
|
988
|
-
;
|
|
989
|
-
|
|
990
|
-
_proto.updateOne = function updateOne(rule, data, options) {
|
|
991
|
-
if (options === void 0) {
|
|
992
|
-
options = defaultUpdateOptions;
|
|
993
|
-
}
|
|
994
|
-
|
|
995
|
-
var _this$options2 = this.options,
|
|
996
|
-
plugins = _this$options2.jss.plugins,
|
|
997
|
-
sheet = _this$options2.sheet; // It is a rules container like for e.g. ConditionalRule.
|
|
998
|
-
|
|
999
|
-
if (rule.rules instanceof RuleList) {
|
|
1000
|
-
rule.rules.update(data, options);
|
|
1001
|
-
return;
|
|
1002
|
-
}
|
|
1003
|
-
|
|
1004
|
-
var styleRule = rule;
|
|
1005
|
-
var style = styleRule.style;
|
|
1006
|
-
plugins.onUpdate(data, rule, sheet, options); // We rely on a new `style` ref in case it was mutated during onUpdate hook.
|
|
1007
|
-
|
|
1008
|
-
if (options.process && style && style !== styleRule.style) {
|
|
1009
|
-
// We need to run the plugins in case new `style` relies on syntax plugins.
|
|
1010
|
-
plugins.onProcessStyle(styleRule.style, styleRule, sheet); // Update and add props.
|
|
1011
|
-
|
|
1012
|
-
for (var prop in styleRule.style) {
|
|
1013
|
-
var nextValue = styleRule.style[prop];
|
|
1014
|
-
var prevValue = style[prop]; // We need to use `force: true` because `rule.style` has been updated during onUpdate hook, so `rule.prop()` will not update the CSSOM rule.
|
|
1015
|
-
// We do this comparison to avoid unneeded `rule.prop()` calls, since we have the old `style` object here.
|
|
1016
|
-
|
|
1017
|
-
if (nextValue !== prevValue) {
|
|
1018
|
-
styleRule.prop(prop, nextValue, forceUpdateOptions);
|
|
1019
|
-
}
|
|
1020
|
-
} // Remove props.
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
for (var _prop in style) {
|
|
1024
|
-
var _nextValue = styleRule.style[_prop];
|
|
1025
|
-
var _prevValue = style[_prop]; // We need to use `force: true` because `rule.style` has been updated during onUpdate hook, so `rule.prop()` will not update the CSSOM rule.
|
|
1026
|
-
// We do this comparison to avoid unneeded `rule.prop()` calls, since we have the old `style` object here.
|
|
1027
|
-
|
|
1028
|
-
if (_nextValue == null && _nextValue !== _prevValue) {
|
|
1029
|
-
styleRule.prop(_prop, null, forceUpdateOptions);
|
|
1030
|
-
}
|
|
1031
|
-
}
|
|
1032
|
-
}
|
|
1033
|
-
}
|
|
1034
|
-
/**
|
|
1035
|
-
* Convert rules to a CSS string.
|
|
1036
|
-
*/
|
|
1037
|
-
;
|
|
1038
|
-
|
|
1039
|
-
_proto.toString = function toString(options) {
|
|
1040
|
-
var str = '';
|
|
1041
|
-
var sheet = this.options.sheet;
|
|
1042
|
-
var link = sheet ? sheet.options.link : false;
|
|
1043
|
-
|
|
1044
|
-
for (var index = 0; index < this.index.length; index++) {
|
|
1045
|
-
var rule = this.index[index];
|
|
1046
|
-
var css = rule.toString(options); // No need to render an empty rule.
|
|
1047
|
-
|
|
1048
|
-
if (!css && !link) continue;
|
|
1049
|
-
if (str) str += '\n';
|
|
1050
|
-
str += css;
|
|
1051
|
-
}
|
|
1052
|
-
|
|
1053
|
-
return str;
|
|
1054
|
-
};
|
|
1055
|
-
|
|
1056
|
-
return RuleList;
|
|
1057
|
-
}();
|
|
1058
|
-
|
|
1059
|
-
var StyleSheet =
|
|
1060
|
-
/*#__PURE__*/
|
|
1061
|
-
function () {
|
|
1062
|
-
function StyleSheet(styles, options) {
|
|
1063
|
-
this.options = void 0;
|
|
1064
|
-
this.deployed = void 0;
|
|
1065
|
-
this.attached = void 0;
|
|
1066
|
-
this.rules = void 0;
|
|
1067
|
-
this.renderer = void 0;
|
|
1068
|
-
this.classes = void 0;
|
|
1069
|
-
this.keyframes = void 0;
|
|
1070
|
-
this.queue = void 0;
|
|
1071
|
-
this.attached = false;
|
|
1072
|
-
this.deployed = false;
|
|
1073
|
-
this.classes = {};
|
|
1074
|
-
this.keyframes = {};
|
|
1075
|
-
this.options = _extends._extends({}, options, {
|
|
1076
|
-
sheet: this,
|
|
1077
|
-
parent: this,
|
|
1078
|
-
classes: this.classes,
|
|
1079
|
-
keyframes: this.keyframes
|
|
1080
|
-
});
|
|
1081
|
-
|
|
1082
|
-
if (options.Renderer) {
|
|
1083
|
-
this.renderer = new options.Renderer(this);
|
|
1084
|
-
}
|
|
1085
|
-
|
|
1086
|
-
this.rules = new RuleList(this.options);
|
|
1087
|
-
|
|
1088
|
-
for (var name in styles) {
|
|
1089
|
-
this.rules.add(name, styles[name]);
|
|
1090
|
-
}
|
|
1091
|
-
|
|
1092
|
-
this.rules.process();
|
|
1093
|
-
}
|
|
1094
|
-
/**
|
|
1095
|
-
* Attach renderable to the render tree.
|
|
1096
|
-
*/
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
var _proto = StyleSheet.prototype;
|
|
1100
|
-
|
|
1101
|
-
_proto.attach = function attach() {
|
|
1102
|
-
if (this.attached) return this;
|
|
1103
|
-
if (this.renderer) this.renderer.attach();
|
|
1104
|
-
this.attached = true; // Order is important, because we can't use insertRule API if style element is not attached.
|
|
1105
|
-
|
|
1106
|
-
if (!this.deployed) this.deploy();
|
|
1107
|
-
return this;
|
|
1108
|
-
}
|
|
1109
|
-
/**
|
|
1110
|
-
* Remove renderable from render tree.
|
|
1111
|
-
*/
|
|
1112
|
-
;
|
|
1113
|
-
|
|
1114
|
-
_proto.detach = function detach() {
|
|
1115
|
-
if (!this.attached) return this;
|
|
1116
|
-
if (this.renderer) this.renderer.detach();
|
|
1117
|
-
this.attached = false;
|
|
1118
|
-
return this;
|
|
1119
|
-
}
|
|
1120
|
-
/**
|
|
1121
|
-
* Add a rule to the current stylesheet.
|
|
1122
|
-
* Will insert a rule also after the stylesheet has been rendered first time.
|
|
1123
|
-
*/
|
|
1124
|
-
;
|
|
1125
|
-
|
|
1126
|
-
_proto.addRule = function addRule(name, decl, options) {
|
|
1127
|
-
var queue = this.queue; // Plugins can create rules.
|
|
1128
|
-
// In order to preserve the right order, we need to queue all `.addRule` calls,
|
|
1129
|
-
// which happen after the first `rules.add()` call.
|
|
1130
|
-
|
|
1131
|
-
if (this.attached && !queue) this.queue = [];
|
|
1132
|
-
var rule = this.rules.add(name, decl, options);
|
|
1133
|
-
if (!rule) return null;
|
|
1134
|
-
this.options.jss.plugins.onProcessRule(rule);
|
|
1135
|
-
|
|
1136
|
-
if (this.attached) {
|
|
1137
|
-
if (!this.deployed) return rule; // Don't insert rule directly if there is no stringified version yet.
|
|
1138
|
-
// It will be inserted all together when .attach is called.
|
|
1139
|
-
|
|
1140
|
-
if (queue) queue.push(rule);else {
|
|
1141
|
-
this.insertRule(rule);
|
|
1142
|
-
|
|
1143
|
-
if (this.queue) {
|
|
1144
|
-
this.queue.forEach(this.insertRule, this);
|
|
1145
|
-
this.queue = undefined;
|
|
1146
|
-
}
|
|
1147
|
-
}
|
|
1148
|
-
return rule;
|
|
1149
|
-
} // We can't add rules to a detached style node.
|
|
1150
|
-
// We will redeploy the sheet once user will attach it.
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
this.deployed = false;
|
|
1154
|
-
return rule;
|
|
1155
|
-
}
|
|
1156
|
-
/**
|
|
1157
|
-
* Insert rule into the StyleSheet
|
|
1158
|
-
*/
|
|
1159
|
-
;
|
|
1160
|
-
|
|
1161
|
-
_proto.insertRule = function insertRule(rule) {
|
|
1162
|
-
if (this.renderer) {
|
|
1163
|
-
this.renderer.insertRule(rule);
|
|
1164
|
-
}
|
|
1165
|
-
}
|
|
1166
|
-
/**
|
|
1167
|
-
* Create and add rules.
|
|
1168
|
-
* Will render also after Style Sheet was rendered the first time.
|
|
1169
|
-
*/
|
|
1170
|
-
;
|
|
1171
|
-
|
|
1172
|
-
_proto.addRules = function addRules(styles, options) {
|
|
1173
|
-
var added = [];
|
|
1174
|
-
|
|
1175
|
-
for (var name in styles) {
|
|
1176
|
-
var rule = this.addRule(name, styles[name], options);
|
|
1177
|
-
if (rule) added.push(rule);
|
|
1178
|
-
}
|
|
1179
|
-
|
|
1180
|
-
return added;
|
|
1181
|
-
}
|
|
1182
|
-
/**
|
|
1183
|
-
* Get a rule by name.
|
|
1184
|
-
*/
|
|
1185
|
-
;
|
|
1186
|
-
|
|
1187
|
-
_proto.getRule = function getRule(name) {
|
|
1188
|
-
return this.rules.get(name);
|
|
1189
|
-
}
|
|
1190
|
-
/**
|
|
1191
|
-
* Delete a rule by name.
|
|
1192
|
-
* Returns `true`: if rule has been deleted from the DOM.
|
|
1193
|
-
*/
|
|
1194
|
-
;
|
|
1195
|
-
|
|
1196
|
-
_proto.deleteRule = function deleteRule(name) {
|
|
1197
|
-
var rule = typeof name === 'object' ? name : this.rules.get(name);
|
|
1198
|
-
|
|
1199
|
-
if (!rule || // Style sheet was created without link: true and attached, in this case we
|
|
1200
|
-
// won't be able to remove the CSS rule from the DOM.
|
|
1201
|
-
this.attached && !rule.renderable) {
|
|
1202
|
-
return false;
|
|
1203
|
-
}
|
|
1204
|
-
|
|
1205
|
-
this.rules.remove(rule);
|
|
1206
|
-
|
|
1207
|
-
if (this.attached && rule.renderable && this.renderer) {
|
|
1208
|
-
return this.renderer.deleteRule(rule.renderable);
|
|
1209
|
-
}
|
|
1210
|
-
|
|
1211
|
-
return true;
|
|
1212
|
-
}
|
|
1213
|
-
/**
|
|
1214
|
-
* Get index of a rule.
|
|
1215
|
-
*/
|
|
1216
|
-
;
|
|
1217
|
-
|
|
1218
|
-
_proto.indexOf = function indexOf(rule) {
|
|
1219
|
-
return this.rules.indexOf(rule);
|
|
1220
|
-
}
|
|
1221
|
-
/**
|
|
1222
|
-
* Deploy pure CSS string to a renderable.
|
|
1223
|
-
*/
|
|
1224
|
-
;
|
|
1225
|
-
|
|
1226
|
-
_proto.deploy = function deploy() {
|
|
1227
|
-
if (this.renderer) this.renderer.deploy();
|
|
1228
|
-
this.deployed = true;
|
|
1229
|
-
return this;
|
|
1230
|
-
}
|
|
1231
|
-
/**
|
|
1232
|
-
* Update the function values with a new data.
|
|
1233
|
-
*/
|
|
1234
|
-
;
|
|
1235
|
-
|
|
1236
|
-
_proto.update = function update() {
|
|
1237
|
-
var _this$rules;
|
|
1238
|
-
|
|
1239
|
-
(_this$rules = this.rules).update.apply(_this$rules, arguments);
|
|
1240
|
-
|
|
1241
|
-
return this;
|
|
1242
|
-
}
|
|
1243
|
-
/**
|
|
1244
|
-
* Updates a single rule.
|
|
1245
|
-
*/
|
|
1246
|
-
;
|
|
1247
|
-
|
|
1248
|
-
_proto.updateOne = function updateOne(rule, data, options) {
|
|
1249
|
-
this.rules.updateOne(rule, data, options);
|
|
1250
|
-
return this;
|
|
1251
|
-
}
|
|
1252
|
-
/**
|
|
1253
|
-
* Convert rules to a CSS string.
|
|
1254
|
-
*/
|
|
1255
|
-
;
|
|
1256
|
-
|
|
1257
|
-
_proto.toString = function toString(options) {
|
|
1258
|
-
return this.rules.toString(options);
|
|
1259
|
-
};
|
|
1260
|
-
|
|
1261
|
-
return StyleSheet;
|
|
1262
|
-
}();
|
|
1263
|
-
|
|
1264
|
-
var PluginsRegistry =
|
|
1265
|
-
/*#__PURE__*/
|
|
1266
|
-
function () {
|
|
1267
|
-
function PluginsRegistry() {
|
|
1268
|
-
this.plugins = {
|
|
1269
|
-
internal: [],
|
|
1270
|
-
external: []
|
|
1271
|
-
};
|
|
1272
|
-
this.registry = void 0;
|
|
1273
|
-
}
|
|
1274
|
-
|
|
1275
|
-
var _proto = PluginsRegistry.prototype;
|
|
1276
|
-
|
|
1277
|
-
/**
|
|
1278
|
-
* Call `onCreateRule` hooks and return an object if returned by a hook.
|
|
1279
|
-
*/
|
|
1280
|
-
_proto.onCreateRule = function onCreateRule(name, decl, options) {
|
|
1281
|
-
for (var i = 0; i < this.registry.onCreateRule.length; i++) {
|
|
1282
|
-
var rule = this.registry.onCreateRule[i](name, decl, options);
|
|
1283
|
-
if (rule) return rule;
|
|
1284
|
-
}
|
|
1285
|
-
|
|
1286
|
-
return null;
|
|
1287
|
-
}
|
|
1288
|
-
/**
|
|
1289
|
-
* Call `onProcessRule` hooks.
|
|
1290
|
-
*/
|
|
1291
|
-
;
|
|
1292
|
-
|
|
1293
|
-
_proto.onProcessRule = function onProcessRule(rule) {
|
|
1294
|
-
if (rule.isProcessed) return;
|
|
1295
|
-
var sheet = rule.options.sheet;
|
|
1296
|
-
|
|
1297
|
-
for (var i = 0; i < this.registry.onProcessRule.length; i++) {
|
|
1298
|
-
this.registry.onProcessRule[i](rule, sheet);
|
|
1299
|
-
}
|
|
1300
|
-
|
|
1301
|
-
if (rule.style) this.onProcessStyle(rule.style, rule, sheet);
|
|
1302
|
-
rule.isProcessed = true;
|
|
1303
|
-
}
|
|
1304
|
-
/**
|
|
1305
|
-
* Call `onProcessStyle` hooks.
|
|
1306
|
-
*/
|
|
1307
|
-
;
|
|
1308
|
-
|
|
1309
|
-
_proto.onProcessStyle = function onProcessStyle(style, rule, sheet) {
|
|
1310
|
-
for (var i = 0; i < this.registry.onProcessStyle.length; i++) {
|
|
1311
|
-
// $FlowFixMe[prop-missing]
|
|
1312
|
-
rule.style = this.registry.onProcessStyle[i](rule.style, rule, sheet);
|
|
1313
|
-
}
|
|
1314
|
-
}
|
|
1315
|
-
/**
|
|
1316
|
-
* Call `onProcessSheet` hooks.
|
|
1317
|
-
*/
|
|
1318
|
-
;
|
|
1319
|
-
|
|
1320
|
-
_proto.onProcessSheet = function onProcessSheet(sheet) {
|
|
1321
|
-
for (var i = 0; i < this.registry.onProcessSheet.length; i++) {
|
|
1322
|
-
this.registry.onProcessSheet[i](sheet);
|
|
1323
|
-
}
|
|
1324
|
-
}
|
|
1325
|
-
/**
|
|
1326
|
-
* Call `onUpdate` hooks.
|
|
1327
|
-
*/
|
|
1328
|
-
;
|
|
1329
|
-
|
|
1330
|
-
_proto.onUpdate = function onUpdate(data, rule, sheet, options) {
|
|
1331
|
-
for (var i = 0; i < this.registry.onUpdate.length; i++) {
|
|
1332
|
-
this.registry.onUpdate[i](data, rule, sheet, options);
|
|
1333
|
-
}
|
|
1334
|
-
}
|
|
1335
|
-
/**
|
|
1336
|
-
* Call `onChangeValue` hooks.
|
|
1337
|
-
*/
|
|
1338
|
-
;
|
|
1339
|
-
|
|
1340
|
-
_proto.onChangeValue = function onChangeValue(value, prop, rule) {
|
|
1341
|
-
var processedValue = value;
|
|
1342
|
-
|
|
1343
|
-
for (var i = 0; i < this.registry.onChangeValue.length; i++) {
|
|
1344
|
-
processedValue = this.registry.onChangeValue[i](processedValue, prop, rule);
|
|
1345
|
-
}
|
|
1346
|
-
|
|
1347
|
-
return processedValue;
|
|
1348
|
-
}
|
|
1349
|
-
/**
|
|
1350
|
-
* Register a plugin.
|
|
1351
|
-
*/
|
|
1352
|
-
;
|
|
1353
|
-
|
|
1354
|
-
_proto.use = function use(newPlugin, options) {
|
|
1355
|
-
if (options === void 0) {
|
|
1356
|
-
options = {
|
|
1357
|
-
queue: 'external'
|
|
1358
|
-
};
|
|
1359
|
-
}
|
|
1360
|
-
|
|
1361
|
-
var plugins = this.plugins[options.queue]; // Avoids applying same plugin twice, at least based on ref.
|
|
1362
|
-
|
|
1363
|
-
if (plugins.indexOf(newPlugin) !== -1) {
|
|
1364
|
-
return;
|
|
1365
|
-
}
|
|
1366
|
-
|
|
1367
|
-
plugins.push(newPlugin);
|
|
1368
|
-
this.registry = [].concat(this.plugins.external, this.plugins.internal).reduce(function (registry, plugin) {
|
|
1369
|
-
for (var name in plugin) {
|
|
1370
|
-
if (name in registry) {
|
|
1371
|
-
registry[name].push(plugin[name]);
|
|
1372
|
-
}
|
|
1373
|
-
}
|
|
1374
|
-
|
|
1375
|
-
return registry;
|
|
1376
|
-
}, {
|
|
1377
|
-
onCreateRule: [],
|
|
1378
|
-
onProcessRule: [],
|
|
1379
|
-
onProcessStyle: [],
|
|
1380
|
-
onProcessSheet: [],
|
|
1381
|
-
onChangeValue: [],
|
|
1382
|
-
onUpdate: []
|
|
1383
|
-
});
|
|
1384
|
-
};
|
|
1385
|
-
|
|
1386
|
-
return PluginsRegistry;
|
|
1387
|
-
}();
|
|
1388
|
-
|
|
1389
|
-
/**
|
|
1390
|
-
* Sheets registry to access them all at one place.
|
|
1391
|
-
*/
|
|
1392
|
-
var SheetsRegistry =
|
|
1393
|
-
/*#__PURE__*/
|
|
1394
|
-
function () {
|
|
1395
|
-
function SheetsRegistry() {
|
|
1396
|
-
this.registry = [];
|
|
1397
|
-
}
|
|
1398
|
-
|
|
1399
|
-
var _proto = SheetsRegistry.prototype;
|
|
1400
|
-
|
|
1401
|
-
/**
|
|
1402
|
-
* Register a Style Sheet.
|
|
1403
|
-
*/
|
|
1404
|
-
_proto.add = function add(sheet) {
|
|
1405
|
-
var registry = this.registry;
|
|
1406
|
-
var index = sheet.options.index;
|
|
1407
|
-
if (registry.indexOf(sheet) !== -1) return;
|
|
1408
|
-
|
|
1409
|
-
if (registry.length === 0 || index >= this.index) {
|
|
1410
|
-
registry.push(sheet);
|
|
1411
|
-
return;
|
|
1412
|
-
} // Find a position.
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
for (var i = 0; i < registry.length; i++) {
|
|
1416
|
-
if (registry[i].options.index > index) {
|
|
1417
|
-
registry.splice(i, 0, sheet);
|
|
1418
|
-
return;
|
|
1419
|
-
}
|
|
1420
|
-
}
|
|
1421
|
-
}
|
|
1422
|
-
/**
|
|
1423
|
-
* Reset the registry.
|
|
1424
|
-
*/
|
|
1425
|
-
;
|
|
1426
|
-
|
|
1427
|
-
_proto.reset = function reset() {
|
|
1428
|
-
this.registry = [];
|
|
1429
|
-
}
|
|
1430
|
-
/**
|
|
1431
|
-
* Remove a Style Sheet.
|
|
1432
|
-
*/
|
|
1433
|
-
;
|
|
1434
|
-
|
|
1435
|
-
_proto.remove = function remove(sheet) {
|
|
1436
|
-
var index = this.registry.indexOf(sheet);
|
|
1437
|
-
this.registry.splice(index, 1);
|
|
1438
|
-
}
|
|
1439
|
-
/**
|
|
1440
|
-
* Convert all attached sheets to a CSS string.
|
|
1441
|
-
*/
|
|
1442
|
-
;
|
|
1443
|
-
|
|
1444
|
-
_proto.toString = function toString(_temp) {
|
|
1445
|
-
var _ref = _temp === void 0 ? {} : _temp,
|
|
1446
|
-
attached = _ref.attached,
|
|
1447
|
-
options = _objectWithoutPropertiesLoose(_ref, ["attached"]);
|
|
1448
|
-
|
|
1449
|
-
var css = '';
|
|
1450
|
-
|
|
1451
|
-
for (var i = 0; i < this.registry.length; i++) {
|
|
1452
|
-
var sheet = this.registry[i];
|
|
1453
|
-
|
|
1454
|
-
if (attached != null && sheet.attached !== attached) {
|
|
1455
|
-
continue;
|
|
1456
|
-
}
|
|
1457
|
-
|
|
1458
|
-
if (css) css += '\n';
|
|
1459
|
-
css += sheet.toString(options);
|
|
1460
|
-
}
|
|
1461
|
-
|
|
1462
|
-
return css;
|
|
1463
|
-
};
|
|
1464
|
-
|
|
1465
|
-
_createClass(SheetsRegistry, [{
|
|
1466
|
-
key: "index",
|
|
1467
|
-
|
|
1468
|
-
/**
|
|
1469
|
-
* Current highest index number.
|
|
1470
|
-
*/
|
|
1471
|
-
get: function get() {
|
|
1472
|
-
return this.registry.length === 0 ? 0 : this.registry[this.registry.length - 1].options.index;
|
|
1473
|
-
}
|
|
1474
|
-
}]);
|
|
1475
|
-
|
|
1476
|
-
return SheetsRegistry;
|
|
1477
|
-
}();
|
|
1478
|
-
|
|
1479
|
-
/**
|
|
1480
|
-
* This is a global sheets registry. Only DomRenderer will add sheets to it.
|
|
1481
|
-
* On the server one should use an own SheetsRegistry instance and add the
|
|
1482
|
-
* sheets to it, because you need to make sure to create a new registry for
|
|
1483
|
-
* each request in order to not leak sheets across requests.
|
|
1484
|
-
*/
|
|
1485
|
-
|
|
1486
|
-
var registry = new SheetsRegistry();
|
|
1487
|
-
|
|
1488
|
-
/* eslint-disable */
|
|
1489
|
-
|
|
1490
|
-
/**
|
|
1491
|
-
* Now that `globalThis` is available on most platforms
|
|
1492
|
-
* (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis#browser_compatibility)
|
|
1493
|
-
* we check for `globalThis` first. `globalThis` is necessary for jss
|
|
1494
|
-
* to run in Agoric's secure version of JavaScript (SES). Under SES,
|
|
1495
|
-
* `globalThis` exists, but `window`, `self`, and `Function('return
|
|
1496
|
-
* this')()` are all undefined for security reasons.
|
|
1497
|
-
*
|
|
1498
|
-
* https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
1499
|
-
*/
|
|
1500
|
-
var globalThis$1 = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' && window.Math === Math ? window : typeof self !== 'undefined' && self.Math === Math ? self : Function('return this')();
|
|
1501
|
-
|
|
1502
|
-
var ns = '2f1acc6c3a606b082e5eef5e54414ffb';
|
|
1503
|
-
if (globalThis$1[ns] == null) globalThis$1[ns] = 0; // Bundle may contain multiple JSS versions at the same time. In order to identify
|
|
1504
|
-
// the current version with just one short number and use it for classes generation
|
|
1505
|
-
// we use a counter. Also it is more accurate, because user can manually reevaluate
|
|
1506
|
-
// the module.
|
|
1507
|
-
|
|
1508
|
-
var moduleId = globalThis$1[ns]++;
|
|
1509
|
-
|
|
1510
|
-
/**
|
|
1511
|
-
* Returns a function which generates unique class names based on counters.
|
|
1512
|
-
* When new generator function is created, rule counter is reseted.
|
|
1513
|
-
* We need to reset the rule counter for SSR for each request.
|
|
1514
|
-
*/
|
|
1515
|
-
var createGenerateId = function createGenerateId(options) {
|
|
1516
|
-
if (options === void 0) {
|
|
1517
|
-
options = {};
|
|
1518
|
-
}
|
|
1519
|
-
|
|
1520
|
-
var ruleCounter = 0;
|
|
1521
|
-
|
|
1522
|
-
var generateId = function generateId(rule, sheet) {
|
|
1523
|
-
ruleCounter += 1;
|
|
1524
|
-
|
|
1525
|
-
var jssId = '';
|
|
1526
|
-
var prefix = '';
|
|
1527
|
-
|
|
1528
|
-
if (sheet) {
|
|
1529
|
-
if (sheet.options.classNamePrefix) {
|
|
1530
|
-
prefix = sheet.options.classNamePrefix;
|
|
1531
|
-
}
|
|
1532
|
-
|
|
1533
|
-
if (sheet.options.jss.id != null) {
|
|
1534
|
-
jssId = String(sheet.options.jss.id);
|
|
1535
|
-
}
|
|
1536
|
-
}
|
|
1537
|
-
|
|
1538
|
-
if (options.minify) {
|
|
1539
|
-
// Using "c" because a number can't be the first char in a class name.
|
|
1540
|
-
return "" + (prefix || 'c') + moduleId + jssId + ruleCounter;
|
|
1541
|
-
}
|
|
1542
|
-
|
|
1543
|
-
return prefix + rule.key + "-" + moduleId + (jssId ? "-" + jssId : '') + "-" + ruleCounter;
|
|
1544
|
-
};
|
|
1545
|
-
|
|
1546
|
-
return generateId;
|
|
1547
|
-
};
|
|
1548
|
-
|
|
1549
|
-
/**
|
|
1550
|
-
* Cache the value from the first time a function is called.
|
|
1551
|
-
*/
|
|
1552
|
-
var memoize = function memoize(fn) {
|
|
1553
|
-
var value;
|
|
1554
|
-
return function () {
|
|
1555
|
-
if (!value) value = fn();
|
|
1556
|
-
return value;
|
|
1557
|
-
};
|
|
1558
|
-
};
|
|
1559
|
-
|
|
1560
|
-
/**
|
|
1561
|
-
* Get a style property value.
|
|
1562
|
-
*/
|
|
1563
|
-
var getPropertyValue = function getPropertyValue(cssRule, prop) {
|
|
1564
|
-
try {
|
|
1565
|
-
// Support CSSTOM.
|
|
1566
|
-
if (cssRule.attributeStyleMap) {
|
|
1567
|
-
return cssRule.attributeStyleMap.get(prop);
|
|
1568
|
-
}
|
|
1569
|
-
|
|
1570
|
-
return cssRule.style.getPropertyValue(prop);
|
|
1571
|
-
} catch (err) {
|
|
1572
|
-
// IE may throw if property is unknown.
|
|
1573
|
-
return '';
|
|
1574
|
-
}
|
|
1575
|
-
};
|
|
1576
|
-
|
|
1577
|
-
/**
|
|
1578
|
-
* Set a style property.
|
|
1579
|
-
*/
|
|
1580
|
-
var setProperty = function setProperty(cssRule, prop, value) {
|
|
1581
|
-
try {
|
|
1582
|
-
var cssValue = value;
|
|
1583
|
-
|
|
1584
|
-
if (Array.isArray(value)) {
|
|
1585
|
-
cssValue = toCssValue(value, true);
|
|
1586
|
-
|
|
1587
|
-
if (value[value.length - 1] === '!important') {
|
|
1588
|
-
cssRule.style.setProperty(prop, cssValue, 'important');
|
|
1589
|
-
return true;
|
|
1590
|
-
}
|
|
1591
|
-
} // Support CSSTOM.
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
if (cssRule.attributeStyleMap) {
|
|
1595
|
-
cssRule.attributeStyleMap.set(prop, cssValue);
|
|
1596
|
-
} else {
|
|
1597
|
-
cssRule.style.setProperty(prop, cssValue);
|
|
1598
|
-
}
|
|
1599
|
-
} catch (err) {
|
|
1600
|
-
// IE may throw if property is unknown.
|
|
1601
|
-
return false;
|
|
1602
|
-
}
|
|
1603
|
-
|
|
1604
|
-
return true;
|
|
1605
|
-
};
|
|
1606
|
-
|
|
1607
|
-
/**
|
|
1608
|
-
* Remove a style property.
|
|
1609
|
-
*/
|
|
1610
|
-
var removeProperty = function removeProperty(cssRule, prop) {
|
|
1611
|
-
try {
|
|
1612
|
-
// Support CSSTOM.
|
|
1613
|
-
if (cssRule.attributeStyleMap) {
|
|
1614
|
-
cssRule.attributeStyleMap.delete(prop);
|
|
1615
|
-
} else {
|
|
1616
|
-
cssRule.style.removeProperty(prop);
|
|
1617
|
-
}
|
|
1618
|
-
} catch (err) {
|
|
1619
|
-
}
|
|
1620
|
-
};
|
|
1621
|
-
|
|
1622
|
-
/**
|
|
1623
|
-
* Set the selector.
|
|
1624
|
-
*/
|
|
1625
|
-
var setSelector = function setSelector(cssRule, selectorText) {
|
|
1626
|
-
cssRule.selectorText = selectorText; // Return false if setter was not successful.
|
|
1627
|
-
// Currently works in chrome only.
|
|
1628
|
-
|
|
1629
|
-
return cssRule.selectorText === selectorText;
|
|
1630
|
-
};
|
|
1631
|
-
/**
|
|
1632
|
-
* Gets the `head` element upon the first call and caches it.
|
|
1633
|
-
* We assume it can't be null.
|
|
1634
|
-
*/
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
var getHead = memoize(function () {
|
|
1638
|
-
return document.querySelector('head');
|
|
1639
|
-
});
|
|
1640
|
-
/**
|
|
1641
|
-
* Find attached sheet with an index higher than the passed one.
|
|
1642
|
-
*/
|
|
1643
|
-
|
|
1644
|
-
function findHigherSheet(registry, options) {
|
|
1645
|
-
for (var i = 0; i < registry.length; i++) {
|
|
1646
|
-
var sheet = registry[i];
|
|
1647
|
-
|
|
1648
|
-
if (sheet.attached && sheet.options.index > options.index && sheet.options.insertionPoint === options.insertionPoint) {
|
|
1649
|
-
return sheet;
|
|
1650
|
-
}
|
|
1651
|
-
}
|
|
1652
|
-
|
|
1653
|
-
return null;
|
|
1654
|
-
}
|
|
1655
|
-
/**
|
|
1656
|
-
* Find attached sheet with the highest index.
|
|
1657
|
-
*/
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
function findHighestSheet(registry, options) {
|
|
1661
|
-
for (var i = registry.length - 1; i >= 0; i--) {
|
|
1662
|
-
var sheet = registry[i];
|
|
1663
|
-
|
|
1664
|
-
if (sheet.attached && sheet.options.insertionPoint === options.insertionPoint) {
|
|
1665
|
-
return sheet;
|
|
1666
|
-
}
|
|
1667
|
-
}
|
|
1668
|
-
|
|
1669
|
-
return null;
|
|
1670
|
-
}
|
|
1671
|
-
/**
|
|
1672
|
-
* Find a comment with "jss" inside.
|
|
1673
|
-
*/
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
function findCommentNode(text) {
|
|
1677
|
-
var head = getHead();
|
|
1678
|
-
|
|
1679
|
-
for (var i = 0; i < head.childNodes.length; i++) {
|
|
1680
|
-
var node = head.childNodes[i];
|
|
1681
|
-
|
|
1682
|
-
if (node.nodeType === 8 && node.nodeValue.trim() === text) {
|
|
1683
|
-
return node;
|
|
1684
|
-
}
|
|
1685
|
-
}
|
|
1686
|
-
|
|
1687
|
-
return null;
|
|
1688
|
-
}
|
|
1689
|
-
|
|
1690
|
-
/**
|
|
1691
|
-
* Find a node before which we can insert the sheet.
|
|
1692
|
-
*/
|
|
1693
|
-
function findPrevNode(options) {
|
|
1694
|
-
var registry$1 = registry.registry;
|
|
1695
|
-
|
|
1696
|
-
if (registry$1.length > 0) {
|
|
1697
|
-
// Try to insert before the next higher sheet.
|
|
1698
|
-
var sheet = findHigherSheet(registry$1, options);
|
|
1699
|
-
|
|
1700
|
-
if (sheet && sheet.renderer) {
|
|
1701
|
-
return {
|
|
1702
|
-
parent: sheet.renderer.element.parentNode,
|
|
1703
|
-
node: sheet.renderer.element
|
|
1704
|
-
};
|
|
1705
|
-
} // Otherwise insert after the last attached.
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
sheet = findHighestSheet(registry$1, options);
|
|
1709
|
-
|
|
1710
|
-
if (sheet && sheet.renderer) {
|
|
1711
|
-
return {
|
|
1712
|
-
parent: sheet.renderer.element.parentNode,
|
|
1713
|
-
node: sheet.renderer.element.nextSibling
|
|
1714
|
-
};
|
|
1715
|
-
}
|
|
1716
|
-
} // Try to find a comment placeholder if registry is empty.
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
var insertionPoint = options.insertionPoint;
|
|
1720
|
-
|
|
1721
|
-
if (insertionPoint && typeof insertionPoint === 'string') {
|
|
1722
|
-
var comment = findCommentNode(insertionPoint);
|
|
1723
|
-
|
|
1724
|
-
if (comment) {
|
|
1725
|
-
return {
|
|
1726
|
-
parent: comment.parentNode,
|
|
1727
|
-
node: comment.nextSibling
|
|
1728
|
-
};
|
|
1729
|
-
} // If user specifies an insertion point and it can't be found in the document -
|
|
1730
|
-
}
|
|
1731
|
-
|
|
1732
|
-
return false;
|
|
1733
|
-
}
|
|
1734
|
-
/**
|
|
1735
|
-
* Insert style element into the DOM.
|
|
1736
|
-
*/
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
function insertStyle(style, options) {
|
|
1740
|
-
var insertionPoint = options.insertionPoint;
|
|
1741
|
-
var nextNode = findPrevNode(options);
|
|
1742
|
-
|
|
1743
|
-
if (nextNode !== false && nextNode.parent) {
|
|
1744
|
-
nextNode.parent.insertBefore(style, nextNode.node);
|
|
1745
|
-
return;
|
|
1746
|
-
} // Works with iframes and any node types.
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
if (insertionPoint && typeof insertionPoint.nodeType === 'number') {
|
|
1750
|
-
// https://stackoverflow.com/questions/41328728/force-casting-in-flow
|
|
1751
|
-
var insertionPointElement = insertionPoint;
|
|
1752
|
-
var parentNode = insertionPointElement.parentNode;
|
|
1753
|
-
if (parentNode) parentNode.insertBefore(style, insertionPointElement.nextSibling);
|
|
1754
|
-
return;
|
|
1755
|
-
}
|
|
1756
|
-
|
|
1757
|
-
getHead().appendChild(style);
|
|
1758
|
-
}
|
|
1759
|
-
/**
|
|
1760
|
-
* Read jss nonce setting from the page if the user has set it.
|
|
1761
|
-
*/
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
var getNonce = memoize(function () {
|
|
1765
|
-
var node = document.querySelector('meta[property="csp-nonce"]');
|
|
1766
|
-
return node ? node.getAttribute('content') : null;
|
|
1767
|
-
});
|
|
1768
|
-
|
|
1769
|
-
var _insertRule = function insertRule(container, rule, index) {
|
|
1770
|
-
try {
|
|
1771
|
-
if ('insertRule' in container) {
|
|
1772
|
-
var c = container;
|
|
1773
|
-
c.insertRule(rule, index);
|
|
1774
|
-
} // Keyframes rule.
|
|
1775
|
-
else if ('appendRule' in container) {
|
|
1776
|
-
var _c = container;
|
|
1777
|
-
|
|
1778
|
-
_c.appendRule(rule);
|
|
1779
|
-
}
|
|
1780
|
-
} catch (err) {
|
|
1781
|
-
return false;
|
|
1782
|
-
}
|
|
1783
|
-
|
|
1784
|
-
return container.cssRules[index];
|
|
1785
|
-
};
|
|
1786
|
-
|
|
1787
|
-
var getValidRuleInsertionIndex = function getValidRuleInsertionIndex(container, index) {
|
|
1788
|
-
var maxIndex = container.cssRules.length; // In case previous insertion fails, passed index might be wrong
|
|
1789
|
-
|
|
1790
|
-
if (index === undefined || index > maxIndex) {
|
|
1791
|
-
// eslint-disable-next-line no-param-reassign
|
|
1792
|
-
return maxIndex;
|
|
1793
|
-
}
|
|
1794
|
-
|
|
1795
|
-
return index;
|
|
1796
|
-
};
|
|
1797
|
-
|
|
1798
|
-
var createStyle = function createStyle() {
|
|
1799
|
-
var el = document.createElement('style'); // Without it, IE will have a broken source order specificity if we
|
|
1800
|
-
// insert rules after we insert the style tag.
|
|
1801
|
-
// It seems to kick-off the source order specificity algorithm.
|
|
1802
|
-
|
|
1803
|
-
el.textContent = '\n';
|
|
1804
|
-
return el;
|
|
1805
|
-
};
|
|
1806
|
-
|
|
1807
|
-
var DomRenderer =
|
|
1808
|
-
/*#__PURE__*/
|
|
1809
|
-
function () {
|
|
1810
|
-
// HTMLStyleElement needs fixing https://github.com/facebook/flow/issues/2696
|
|
1811
|
-
// Will be empty if link: true option is not set, because
|
|
1812
|
-
// it is only for use together with insertRule API.
|
|
1813
|
-
function DomRenderer(sheet) {
|
|
1814
|
-
this.getPropertyValue = getPropertyValue;
|
|
1815
|
-
this.setProperty = setProperty;
|
|
1816
|
-
this.removeProperty = removeProperty;
|
|
1817
|
-
this.setSelector = setSelector;
|
|
1818
|
-
this.element = void 0;
|
|
1819
|
-
this.sheet = void 0;
|
|
1820
|
-
this.hasInsertedRules = false;
|
|
1821
|
-
this.cssRules = [];
|
|
1822
|
-
// There is no sheet when the renderer is used from a standalone StyleRule.
|
|
1823
|
-
if (sheet) registry.add(sheet);
|
|
1824
|
-
this.sheet = sheet;
|
|
1825
|
-
|
|
1826
|
-
var _ref = this.sheet ? this.sheet.options : {},
|
|
1827
|
-
media = _ref.media,
|
|
1828
|
-
meta = _ref.meta,
|
|
1829
|
-
element = _ref.element;
|
|
1830
|
-
|
|
1831
|
-
this.element = element || createStyle();
|
|
1832
|
-
this.element.setAttribute('data-jss', '');
|
|
1833
|
-
if (media) this.element.setAttribute('media', media);
|
|
1834
|
-
if (meta) this.element.setAttribute('data-meta', meta);
|
|
1835
|
-
var nonce = getNonce();
|
|
1836
|
-
if (nonce) this.element.setAttribute('nonce', nonce);
|
|
1837
|
-
}
|
|
1838
|
-
/**
|
|
1839
|
-
* Insert style element into render tree.
|
|
1840
|
-
*/
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
var _proto = DomRenderer.prototype;
|
|
1844
|
-
|
|
1845
|
-
_proto.attach = function attach() {
|
|
1846
|
-
// In the case the element node is external and it is already in the DOM.
|
|
1847
|
-
if (this.element.parentNode || !this.sheet) return;
|
|
1848
|
-
insertStyle(this.element, this.sheet.options); // When rules are inserted using `insertRule` API, after `sheet.detach().attach()`
|
|
1849
|
-
// most browsers create a new CSSStyleSheet, except of all IEs.
|
|
1850
|
-
|
|
1851
|
-
var deployed = Boolean(this.sheet && this.sheet.deployed);
|
|
1852
|
-
|
|
1853
|
-
if (this.hasInsertedRules && deployed) {
|
|
1854
|
-
this.hasInsertedRules = false;
|
|
1855
|
-
this.deploy();
|
|
1856
|
-
}
|
|
1857
|
-
}
|
|
1858
|
-
/**
|
|
1859
|
-
* Remove style element from render tree.
|
|
1860
|
-
*/
|
|
1861
|
-
;
|
|
1862
|
-
|
|
1863
|
-
_proto.detach = function detach() {
|
|
1864
|
-
if (!this.sheet) return;
|
|
1865
|
-
var parentNode = this.element.parentNode;
|
|
1866
|
-
if (parentNode) parentNode.removeChild(this.element); // In the most browsers, rules inserted using insertRule() API will be lost when style element is removed.
|
|
1867
|
-
// Though IE will keep them and we need a consistent behavior.
|
|
1868
|
-
|
|
1869
|
-
if (this.sheet.options.link) {
|
|
1870
|
-
this.cssRules = [];
|
|
1871
|
-
this.element.textContent = '\n';
|
|
1872
|
-
}
|
|
1873
|
-
}
|
|
1874
|
-
/**
|
|
1875
|
-
* Inject CSS string into element.
|
|
1876
|
-
*/
|
|
1877
|
-
;
|
|
1878
|
-
|
|
1879
|
-
_proto.deploy = function deploy() {
|
|
1880
|
-
var sheet = this.sheet;
|
|
1881
|
-
if (!sheet) return;
|
|
1882
|
-
|
|
1883
|
-
if (sheet.options.link) {
|
|
1884
|
-
this.insertRules(sheet.rules);
|
|
1885
|
-
return;
|
|
1886
|
-
}
|
|
1887
|
-
|
|
1888
|
-
this.element.textContent = "\n" + sheet.toString() + "\n";
|
|
1889
|
-
}
|
|
1890
|
-
/**
|
|
1891
|
-
* Insert RuleList into an element.
|
|
1892
|
-
*/
|
|
1893
|
-
;
|
|
1894
|
-
|
|
1895
|
-
_proto.insertRules = function insertRules(rules, nativeParent) {
|
|
1896
|
-
for (var i = 0; i < rules.index.length; i++) {
|
|
1897
|
-
this.insertRule(rules.index[i], i, nativeParent);
|
|
1898
|
-
}
|
|
1899
|
-
}
|
|
1900
|
-
/**
|
|
1901
|
-
* Insert a rule into element.
|
|
1902
|
-
*/
|
|
1903
|
-
;
|
|
1904
|
-
|
|
1905
|
-
_proto.insertRule = function insertRule(rule, index, nativeParent) {
|
|
1906
|
-
if (nativeParent === void 0) {
|
|
1907
|
-
nativeParent = this.element.sheet;
|
|
1908
|
-
}
|
|
1909
|
-
|
|
1910
|
-
if (rule.rules) {
|
|
1911
|
-
var parent = rule;
|
|
1912
|
-
var latestNativeParent = nativeParent;
|
|
1913
|
-
|
|
1914
|
-
if (rule.type === 'conditional' || rule.type === 'keyframes') {
|
|
1915
|
-
var _insertionIndex = getValidRuleInsertionIndex(nativeParent, index); // We need to render the container without children first.
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
latestNativeParent = _insertRule(nativeParent, parent.toString({
|
|
1919
|
-
children: false
|
|
1920
|
-
}), _insertionIndex);
|
|
1921
|
-
|
|
1922
|
-
if (latestNativeParent === false) {
|
|
1923
|
-
return false;
|
|
1924
|
-
}
|
|
1925
|
-
|
|
1926
|
-
this.refCssRule(rule, _insertionIndex, latestNativeParent);
|
|
1927
|
-
}
|
|
1928
|
-
|
|
1929
|
-
this.insertRules(parent.rules, latestNativeParent);
|
|
1930
|
-
return latestNativeParent;
|
|
1931
|
-
}
|
|
1932
|
-
|
|
1933
|
-
var ruleStr = rule.toString();
|
|
1934
|
-
if (!ruleStr) return false;
|
|
1935
|
-
var insertionIndex = getValidRuleInsertionIndex(nativeParent, index);
|
|
1936
|
-
|
|
1937
|
-
var nativeRule = _insertRule(nativeParent, ruleStr, insertionIndex);
|
|
1938
|
-
|
|
1939
|
-
if (nativeRule === false) {
|
|
1940
|
-
return false;
|
|
1941
|
-
}
|
|
1942
|
-
|
|
1943
|
-
this.hasInsertedRules = true;
|
|
1944
|
-
this.refCssRule(rule, insertionIndex, nativeRule);
|
|
1945
|
-
return nativeRule;
|
|
1946
|
-
};
|
|
1947
|
-
|
|
1948
|
-
_proto.refCssRule = function refCssRule(rule, index, cssRule) {
|
|
1949
|
-
rule.renderable = cssRule; // We only want to reference the top level rules, deleteRule API doesn't support removing nested rules
|
|
1950
|
-
// like rules inside media queries or keyframes
|
|
1951
|
-
|
|
1952
|
-
if (rule.options.parent instanceof StyleSheet) {
|
|
1953
|
-
this.cssRules[index] = cssRule;
|
|
1954
|
-
}
|
|
1955
|
-
}
|
|
1956
|
-
/**
|
|
1957
|
-
* Delete a rule.
|
|
1958
|
-
*/
|
|
1959
|
-
;
|
|
1960
|
-
|
|
1961
|
-
_proto.deleteRule = function deleteRule(cssRule) {
|
|
1962
|
-
var sheet = this.element.sheet;
|
|
1963
|
-
var index = this.indexOf(cssRule);
|
|
1964
|
-
if (index === -1) return false;
|
|
1965
|
-
sheet.deleteRule(index);
|
|
1966
|
-
this.cssRules.splice(index, 1);
|
|
1967
|
-
return true;
|
|
1968
|
-
}
|
|
1969
|
-
/**
|
|
1970
|
-
* Get index of a CSS Rule.
|
|
1971
|
-
*/
|
|
1972
|
-
;
|
|
1973
|
-
|
|
1974
|
-
_proto.indexOf = function indexOf(cssRule) {
|
|
1975
|
-
return this.cssRules.indexOf(cssRule);
|
|
1976
|
-
}
|
|
1977
|
-
/**
|
|
1978
|
-
* Generate a new CSS rule and replace the existing one.
|
|
1979
|
-
*
|
|
1980
|
-
* Only used for some old browsers because they can't set a selector.
|
|
1981
|
-
*/
|
|
1982
|
-
;
|
|
1983
|
-
|
|
1984
|
-
_proto.replaceRule = function replaceRule(cssRule, rule) {
|
|
1985
|
-
var index = this.indexOf(cssRule);
|
|
1986
|
-
if (index === -1) return false;
|
|
1987
|
-
this.element.sheet.deleteRule(index);
|
|
1988
|
-
this.cssRules.splice(index, 1);
|
|
1989
|
-
return this.insertRule(rule, index);
|
|
1990
|
-
}
|
|
1991
|
-
/**
|
|
1992
|
-
* Get all rules elements.
|
|
1993
|
-
*/
|
|
1994
|
-
;
|
|
1995
|
-
|
|
1996
|
-
_proto.getRules = function getRules() {
|
|
1997
|
-
return this.element.sheet.cssRules;
|
|
1998
|
-
};
|
|
1999
|
-
|
|
2000
|
-
return DomRenderer;
|
|
2001
|
-
}();
|
|
2002
|
-
|
|
2003
|
-
var instanceCounter = 0;
|
|
2004
|
-
|
|
2005
|
-
var Jss =
|
|
2006
|
-
/*#__PURE__*/
|
|
2007
|
-
function () {
|
|
2008
|
-
function Jss(options) {
|
|
2009
|
-
this.id = instanceCounter++;
|
|
2010
|
-
this.version = "10.7.1";
|
|
2011
|
-
this.plugins = new PluginsRegistry();
|
|
2012
|
-
this.options = {
|
|
2013
|
-
id: {
|
|
2014
|
-
minify: false
|
|
2015
|
-
},
|
|
2016
|
-
createGenerateId: createGenerateId,
|
|
2017
|
-
Renderer: isBrowser ? DomRenderer : null,
|
|
2018
|
-
plugins: []
|
|
2019
|
-
};
|
|
2020
|
-
this.generateId = createGenerateId({
|
|
2021
|
-
minify: false
|
|
2022
|
-
});
|
|
2023
|
-
|
|
2024
|
-
for (var i = 0; i < plugins.length; i++) {
|
|
2025
|
-
this.plugins.use(plugins[i], {
|
|
2026
|
-
queue: 'internal'
|
|
2027
|
-
});
|
|
2028
|
-
}
|
|
2029
|
-
|
|
2030
|
-
this.setup(options);
|
|
2031
|
-
}
|
|
2032
|
-
/**
|
|
2033
|
-
* Prepares various options, applies plugins.
|
|
2034
|
-
* Should not be used twice on the same instance, because there is no plugins
|
|
2035
|
-
* deduplication logic.
|
|
2036
|
-
*/
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
var _proto = Jss.prototype;
|
|
2040
|
-
|
|
2041
|
-
_proto.setup = function setup(options) {
|
|
2042
|
-
if (options === void 0) {
|
|
2043
|
-
options = {};
|
|
2044
|
-
}
|
|
2045
|
-
|
|
2046
|
-
if (options.createGenerateId) {
|
|
2047
|
-
this.options.createGenerateId = options.createGenerateId;
|
|
2048
|
-
}
|
|
2049
|
-
|
|
2050
|
-
if (options.id) {
|
|
2051
|
-
this.options.id = _extends._extends({}, this.options.id, options.id);
|
|
2052
|
-
}
|
|
2053
|
-
|
|
2054
|
-
if (options.createGenerateId || options.id) {
|
|
2055
|
-
this.generateId = this.options.createGenerateId(this.options.id);
|
|
2056
|
-
}
|
|
2057
|
-
|
|
2058
|
-
if (options.insertionPoint != null) this.options.insertionPoint = options.insertionPoint;
|
|
2059
|
-
|
|
2060
|
-
if ('Renderer' in options) {
|
|
2061
|
-
this.options.Renderer = options.Renderer;
|
|
2062
|
-
} // eslint-disable-next-line prefer-spread
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
if (options.plugins) this.use.apply(this, options.plugins);
|
|
2066
|
-
return this;
|
|
2067
|
-
}
|
|
2068
|
-
/**
|
|
2069
|
-
* Create a Style Sheet.
|
|
2070
|
-
*/
|
|
2071
|
-
;
|
|
2072
|
-
|
|
2073
|
-
_proto.createStyleSheet = function createStyleSheet(styles, options) {
|
|
2074
|
-
if (options === void 0) {
|
|
2075
|
-
options = {};
|
|
2076
|
-
}
|
|
2077
|
-
|
|
2078
|
-
var _options = options,
|
|
2079
|
-
index = _options.index;
|
|
2080
|
-
|
|
2081
|
-
if (typeof index !== 'number') {
|
|
2082
|
-
index = registry.index === 0 ? 0 : registry.index + 1;
|
|
2083
|
-
}
|
|
2084
|
-
|
|
2085
|
-
var sheet = new StyleSheet(styles, _extends._extends({}, options, {
|
|
2086
|
-
jss: this,
|
|
2087
|
-
generateId: options.generateId || this.generateId,
|
|
2088
|
-
insertionPoint: this.options.insertionPoint,
|
|
2089
|
-
Renderer: this.options.Renderer,
|
|
2090
|
-
index: index
|
|
2091
|
-
}));
|
|
2092
|
-
this.plugins.onProcessSheet(sheet);
|
|
2093
|
-
return sheet;
|
|
2094
|
-
}
|
|
2095
|
-
/**
|
|
2096
|
-
* Detach the Style Sheet and remove it from the registry.
|
|
2097
|
-
*/
|
|
2098
|
-
;
|
|
2099
|
-
|
|
2100
|
-
_proto.removeStyleSheet = function removeStyleSheet(sheet) {
|
|
2101
|
-
sheet.detach();
|
|
2102
|
-
registry.remove(sheet);
|
|
2103
|
-
return this;
|
|
2104
|
-
}
|
|
2105
|
-
/**
|
|
2106
|
-
* Create a rule without a Style Sheet.
|
|
2107
|
-
* [Deprecated] will be removed in the next major version.
|
|
2108
|
-
*/
|
|
2109
|
-
;
|
|
2110
|
-
|
|
2111
|
-
_proto.createRule = function createRule$1(name, style, options) {
|
|
2112
|
-
if (style === void 0) {
|
|
2113
|
-
style = {};
|
|
2114
|
-
}
|
|
2115
|
-
|
|
2116
|
-
if (options === void 0) {
|
|
2117
|
-
options = {};
|
|
2118
|
-
}
|
|
2119
|
-
|
|
2120
|
-
// Enable rule without name for inline styles.
|
|
2121
|
-
if (typeof name === 'object') {
|
|
2122
|
-
// $FlowFixMe[incompatible-call]
|
|
2123
|
-
return this.createRule(undefined, name, style);
|
|
2124
|
-
} // $FlowFixMe[incompatible-type]
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
var ruleOptions = _extends._extends({}, options, {
|
|
2128
|
-
name: name,
|
|
2129
|
-
jss: this,
|
|
2130
|
-
Renderer: this.options.Renderer
|
|
2131
|
-
});
|
|
2132
|
-
|
|
2133
|
-
if (!ruleOptions.generateId) ruleOptions.generateId = this.generateId;
|
|
2134
|
-
if (!ruleOptions.classes) ruleOptions.classes = {};
|
|
2135
|
-
if (!ruleOptions.keyframes) ruleOptions.keyframes = {};
|
|
2136
|
-
|
|
2137
|
-
var rule = createRule(name, style, ruleOptions);
|
|
2138
|
-
|
|
2139
|
-
if (rule) this.plugins.onProcessRule(rule);
|
|
2140
|
-
return rule;
|
|
2141
|
-
}
|
|
2142
|
-
/**
|
|
2143
|
-
* Register plugin. Passed function will be invoked with a rule instance.
|
|
2144
|
-
*/
|
|
2145
|
-
;
|
|
2146
|
-
|
|
2147
|
-
_proto.use = function use() {
|
|
2148
|
-
var _this = this;
|
|
2149
|
-
|
|
2150
|
-
for (var _len = arguments.length, plugins = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
2151
|
-
plugins[_key] = arguments[_key];
|
|
2152
|
-
}
|
|
2153
|
-
|
|
2154
|
-
plugins.forEach(function (plugin) {
|
|
2155
|
-
_this.plugins.use(plugin);
|
|
2156
|
-
});
|
|
2157
|
-
return this;
|
|
2158
|
-
};
|
|
2159
|
-
|
|
2160
|
-
return Jss;
|
|
2161
|
-
}();
|
|
2162
|
-
|
|
2163
|
-
/**
|
|
2164
|
-
* A better abstraction over CSS.
|
|
2165
|
-
*
|
|
2166
|
-
* @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
|
|
2167
|
-
* @website https://github.com/cssinjs/jss
|
|
2168
|
-
* @license MIT
|
|
2169
|
-
*/
|
|
2170
|
-
|
|
2171
|
-
/**
|
|
2172
|
-
* Export a constant indicating if this browser has CSSTOM support.
|
|
2173
|
-
* https://developers.google.com/web/updates/2018/03/cssom
|
|
2174
|
-
*/
|
|
2175
|
-
var hasCSSTOMSupport = typeof CSS === 'object' && CSS != null && 'number' in CSS;
|
|
2176
|
-
/**
|
|
2177
|
-
* Creates a new instance of Jss.
|
|
2178
|
-
*/
|
|
2179
|
-
|
|
2180
|
-
var create = function create(options) {
|
|
2181
|
-
return new Jss(options);
|
|
2182
|
-
};
|
|
2183
|
-
/**
|
|
2184
|
-
* A global Jss instance.
|
|
2185
|
-
*/
|
|
2186
|
-
|
|
2187
|
-
var jss = create();
|
|
2188
|
-
|
|
2189
|
-
var now = Date.now();
|
|
2190
|
-
var fnValuesNs = "fnValues" + now;
|
|
2191
|
-
var fnRuleNs = "fnStyle" + ++now;
|
|
2192
|
-
|
|
2193
|
-
var functionPlugin = function functionPlugin() {
|
|
2194
|
-
return {
|
|
2195
|
-
onCreateRule: function onCreateRule(name, decl, options) {
|
|
2196
|
-
if (typeof decl !== 'function') return null;
|
|
2197
|
-
var rule = createRule(name, {}, options);
|
|
2198
|
-
rule[fnRuleNs] = decl;
|
|
2199
|
-
return rule;
|
|
2200
|
-
},
|
|
2201
|
-
onProcessStyle: function onProcessStyle(style, rule) {
|
|
2202
|
-
// We need to extract function values from the declaration, so that we can keep core unaware of them.
|
|
2203
|
-
// We need to do that only once.
|
|
2204
|
-
// We don't need to extract functions on each style update, since this can happen only once.
|
|
2205
|
-
// We don't support function values inside of function rules.
|
|
2206
|
-
if (fnValuesNs in rule || fnRuleNs in rule) return style;
|
|
2207
|
-
var fnValues = {};
|
|
2208
|
-
|
|
2209
|
-
for (var prop in style) {
|
|
2210
|
-
var value = style[prop];
|
|
2211
|
-
if (typeof value !== 'function') continue;
|
|
2212
|
-
delete style[prop];
|
|
2213
|
-
fnValues[prop] = value;
|
|
2214
|
-
} // $FlowFixMe[prop-missing]
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
rule[fnValuesNs] = fnValues;
|
|
2218
|
-
return style;
|
|
2219
|
-
},
|
|
2220
|
-
onUpdate: function onUpdate(data, rule, sheet, options) {
|
|
2221
|
-
var styleRule = rule; // $FlowFixMe[prop-missing]
|
|
2222
|
-
|
|
2223
|
-
var fnRule = styleRule[fnRuleNs]; // If we have a style function, the entire rule is dynamic and style object
|
|
2224
|
-
// will be returned from that function.
|
|
2225
|
-
|
|
2226
|
-
if (fnRule) {
|
|
2227
|
-
// Empty object will remove all currently defined props
|
|
2228
|
-
// in case function rule returns a falsy value.
|
|
2229
|
-
styleRule.style = fnRule(data) || {};
|
|
2230
|
-
} // $FlowFixMe[prop-missing]
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
var fnValues = styleRule[fnValuesNs]; // If we have a fn values map, it is a rule with function values.
|
|
2234
|
-
|
|
2235
|
-
if (fnValues) {
|
|
2236
|
-
for (var _prop in fnValues) {
|
|
2237
|
-
styleRule.prop(_prop, fnValues[_prop](data), options);
|
|
2238
|
-
}
|
|
2239
|
-
}
|
|
2240
|
-
}
|
|
2241
|
-
};
|
|
2242
|
-
};
|
|
2243
|
-
|
|
2244
|
-
function symbolObservablePonyfill(root) {
|
|
2245
|
-
var result;
|
|
2246
|
-
var Symbol = root.Symbol;
|
|
2247
|
-
|
|
2248
|
-
if (typeof Symbol === 'function') {
|
|
2249
|
-
if (Symbol.observable) {
|
|
2250
|
-
result = Symbol.observable;
|
|
2251
|
-
} else {
|
|
2252
|
-
result = Symbol('observable');
|
|
2253
|
-
Symbol.observable = result;
|
|
2254
|
-
}
|
|
2255
|
-
} else {
|
|
2256
|
-
result = '@@observable';
|
|
2257
|
-
}
|
|
2258
|
-
|
|
2259
|
-
return result;
|
|
2260
|
-
}
|
|
2261
|
-
|
|
2262
|
-
/* global window */
|
|
2263
|
-
|
|
2264
|
-
var root;
|
|
2265
|
-
|
|
2266
|
-
if (typeof self !== 'undefined') {
|
|
2267
|
-
root = self;
|
|
2268
|
-
} else if (typeof window !== 'undefined') {
|
|
2269
|
-
root = window;
|
|
2270
|
-
} else if (typeof global !== 'undefined') {
|
|
2271
|
-
root = global;
|
|
2272
|
-
} else if (typeof module !== 'undefined') {
|
|
2273
|
-
root = module;
|
|
2274
|
-
} else {
|
|
2275
|
-
root = Function('return this')();
|
|
2276
|
-
}
|
|
2277
|
-
|
|
2278
|
-
var result = symbolObservablePonyfill(root);
|
|
2279
|
-
|
|
2280
|
-
var isObservable = function isObservable(value) {
|
|
2281
|
-
return value && value[result] && value === value[result]();
|
|
2282
|
-
};
|
|
2283
|
-
|
|
2284
|
-
var observablePlugin = function observablePlugin(updateOptions) {
|
|
2285
|
-
return {
|
|
2286
|
-
onCreateRule: function onCreateRule(name, decl, options) {
|
|
2287
|
-
if (!isObservable(decl)) return null; // Cast `decl` to `Observable`, since it passed the type guard.
|
|
2288
|
-
|
|
2289
|
-
var style$ = decl;
|
|
2290
|
-
var rule = createRule(name, {}, options); // TODO
|
|
2291
|
-
// Call `stream.subscribe()` returns a subscription, which should be explicitly
|
|
2292
|
-
// unsubscribed from when we know this sheet is no longer needed.
|
|
2293
|
-
|
|
2294
|
-
style$.subscribe(function (style) {
|
|
2295
|
-
for (var prop in style) {
|
|
2296
|
-
rule.prop(prop, style[prop], updateOptions);
|
|
2297
|
-
}
|
|
2298
|
-
});
|
|
2299
|
-
return rule;
|
|
2300
|
-
},
|
|
2301
|
-
onProcessRule: function onProcessRule(rule) {
|
|
2302
|
-
if (rule && rule.type !== 'style') return;
|
|
2303
|
-
var styleRule = rule;
|
|
2304
|
-
var style = styleRule.style;
|
|
2305
|
-
|
|
2306
|
-
var _loop = function _loop(prop) {
|
|
2307
|
-
var value = style[prop];
|
|
2308
|
-
if (!isObservable(value)) return "continue";
|
|
2309
|
-
delete style[prop];
|
|
2310
|
-
value.subscribe({
|
|
2311
|
-
next: function next(nextValue) {
|
|
2312
|
-
styleRule.prop(prop, nextValue, updateOptions);
|
|
2313
|
-
}
|
|
2314
|
-
});
|
|
2315
|
-
};
|
|
2316
|
-
|
|
2317
|
-
for (var prop in style) {
|
|
2318
|
-
var _ret = _loop(prop);
|
|
2319
|
-
|
|
2320
|
-
if (_ret === "continue") continue;
|
|
2321
|
-
}
|
|
2322
|
-
}
|
|
2323
|
-
};
|
|
2324
|
-
};
|
|
2325
|
-
|
|
2326
|
-
var semiWithNl = /;\n/;
|
|
2327
|
-
|
|
2328
|
-
/**
|
|
2329
|
-
* Naive CSS parser.
|
|
2330
|
-
* - Supports only rule body (no selectors)
|
|
2331
|
-
* - Requires semicolon and new line after the value (except of last line)
|
|
2332
|
-
* - No nested rules support
|
|
2333
|
-
*/
|
|
2334
|
-
var parse = function parse(cssText) {
|
|
2335
|
-
var style = {};
|
|
2336
|
-
var split = cssText.split(semiWithNl);
|
|
2337
|
-
|
|
2338
|
-
for (var i = 0; i < split.length; i++) {
|
|
2339
|
-
var decl = (split[i] || '').trim();
|
|
2340
|
-
if (!decl) continue;
|
|
2341
|
-
var colonIndex = decl.indexOf(':');
|
|
2342
|
-
|
|
2343
|
-
if (colonIndex === -1) {
|
|
2344
|
-
continue;
|
|
2345
|
-
}
|
|
2346
|
-
|
|
2347
|
-
var prop = decl.substr(0, colonIndex).trim();
|
|
2348
|
-
var value = decl.substr(colonIndex + 1).trim();
|
|
2349
|
-
style[prop] = value;
|
|
2350
|
-
}
|
|
2351
|
-
|
|
2352
|
-
return style;
|
|
2353
|
-
};
|
|
2354
|
-
|
|
2355
|
-
var onProcessRule = function onProcessRule(rule) {
|
|
2356
|
-
if (typeof rule.style === 'string') {
|
|
2357
|
-
// $FlowFixMe[prop-missing] We can safely assume that rule has the style property
|
|
2358
|
-
rule.style = parse(rule.style);
|
|
2359
|
-
}
|
|
2360
|
-
};
|
|
2361
|
-
|
|
2362
|
-
function templatePlugin() {
|
|
2363
|
-
return {
|
|
2364
|
-
onProcessRule: onProcessRule
|
|
2365
|
-
};
|
|
2366
|
-
}
|
|
2367
|
-
|
|
2368
|
-
var at = '@global';
|
|
2369
|
-
var atPrefix = '@global ';
|
|
2370
|
-
|
|
2371
|
-
var GlobalContainerRule =
|
|
2372
|
-
/*#__PURE__*/
|
|
2373
|
-
function () {
|
|
2374
|
-
function GlobalContainerRule(key, styles, options) {
|
|
2375
|
-
this.type = 'global';
|
|
2376
|
-
this.at = at;
|
|
2377
|
-
this.rules = void 0;
|
|
2378
|
-
this.options = void 0;
|
|
2379
|
-
this.key = void 0;
|
|
2380
|
-
this.isProcessed = false;
|
|
2381
|
-
this.key = key;
|
|
2382
|
-
this.options = options;
|
|
2383
|
-
this.rules = new RuleList(_extends._extends({}, options, {
|
|
2384
|
-
parent: this
|
|
2385
|
-
}));
|
|
2386
|
-
|
|
2387
|
-
for (var selector in styles) {
|
|
2388
|
-
this.rules.add(selector, styles[selector]);
|
|
2389
|
-
}
|
|
2390
|
-
|
|
2391
|
-
this.rules.process();
|
|
2392
|
-
}
|
|
2393
|
-
/**
|
|
2394
|
-
* Get a rule.
|
|
2395
|
-
*/
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
var _proto = GlobalContainerRule.prototype;
|
|
2399
|
-
|
|
2400
|
-
_proto.getRule = function getRule(name) {
|
|
2401
|
-
return this.rules.get(name);
|
|
2402
|
-
}
|
|
2403
|
-
/**
|
|
2404
|
-
* Create and register rule, run plugins.
|
|
2405
|
-
*/
|
|
2406
|
-
;
|
|
2407
|
-
|
|
2408
|
-
_proto.addRule = function addRule(name, style, options) {
|
|
2409
|
-
var rule = this.rules.add(name, style, options);
|
|
2410
|
-
if (rule) this.options.jss.plugins.onProcessRule(rule);
|
|
2411
|
-
return rule;
|
|
2412
|
-
}
|
|
2413
|
-
/**
|
|
2414
|
-
* Get index of a rule.
|
|
2415
|
-
*/
|
|
2416
|
-
;
|
|
2417
|
-
|
|
2418
|
-
_proto.indexOf = function indexOf(rule) {
|
|
2419
|
-
return this.rules.indexOf(rule);
|
|
2420
|
-
}
|
|
2421
|
-
/**
|
|
2422
|
-
* Generates a CSS string.
|
|
2423
|
-
*/
|
|
2424
|
-
;
|
|
2425
|
-
|
|
2426
|
-
_proto.toString = function toString() {
|
|
2427
|
-
return this.rules.toString();
|
|
2428
|
-
};
|
|
2429
|
-
|
|
2430
|
-
return GlobalContainerRule;
|
|
2431
|
-
}();
|
|
2432
|
-
|
|
2433
|
-
var GlobalPrefixedRule =
|
|
2434
|
-
/*#__PURE__*/
|
|
2435
|
-
function () {
|
|
2436
|
-
function GlobalPrefixedRule(key, style, options) {
|
|
2437
|
-
this.type = 'global';
|
|
2438
|
-
this.at = at;
|
|
2439
|
-
this.options = void 0;
|
|
2440
|
-
this.rule = void 0;
|
|
2441
|
-
this.isProcessed = false;
|
|
2442
|
-
this.key = void 0;
|
|
2443
|
-
this.key = key;
|
|
2444
|
-
this.options = options;
|
|
2445
|
-
var selector = key.substr(atPrefix.length);
|
|
2446
|
-
this.rule = options.jss.createRule(selector, style, _extends._extends({}, options, {
|
|
2447
|
-
parent: this
|
|
2448
|
-
}));
|
|
2449
|
-
}
|
|
2450
|
-
|
|
2451
|
-
var _proto2 = GlobalPrefixedRule.prototype;
|
|
2452
|
-
|
|
2453
|
-
_proto2.toString = function toString(options) {
|
|
2454
|
-
return this.rule ? this.rule.toString(options) : '';
|
|
2455
|
-
};
|
|
2456
|
-
|
|
2457
|
-
return GlobalPrefixedRule;
|
|
2458
|
-
}();
|
|
2459
|
-
|
|
2460
|
-
var separatorRegExp = /\s*,\s*/g;
|
|
2461
|
-
|
|
2462
|
-
function addScope(selector, scope) {
|
|
2463
|
-
var parts = selector.split(separatorRegExp);
|
|
2464
|
-
var scoped = '';
|
|
2465
|
-
|
|
2466
|
-
for (var i = 0; i < parts.length; i++) {
|
|
2467
|
-
scoped += scope + " " + parts[i].trim();
|
|
2468
|
-
if (parts[i + 1]) scoped += ', ';
|
|
2469
|
-
}
|
|
2470
|
-
|
|
2471
|
-
return scoped;
|
|
2472
|
-
}
|
|
2473
|
-
|
|
2474
|
-
function handleNestedGlobalContainerRule(rule, sheet) {
|
|
2475
|
-
var options = rule.options,
|
|
2476
|
-
style = rule.style;
|
|
2477
|
-
var rules = style ? style[at] : null;
|
|
2478
|
-
if (!rules) return;
|
|
2479
|
-
|
|
2480
|
-
for (var name in rules) {
|
|
2481
|
-
sheet.addRule(name, rules[name], _extends._extends({}, options, {
|
|
2482
|
-
selector: addScope(name, rule.selector)
|
|
2483
|
-
}));
|
|
2484
|
-
}
|
|
2485
|
-
|
|
2486
|
-
delete style[at];
|
|
2487
|
-
}
|
|
2488
|
-
|
|
2489
|
-
function handlePrefixedGlobalRule(rule, sheet) {
|
|
2490
|
-
var options = rule.options,
|
|
2491
|
-
style = rule.style;
|
|
2492
|
-
|
|
2493
|
-
for (var prop in style) {
|
|
2494
|
-
if (prop[0] !== '@' || prop.substr(0, at.length) !== at) continue;
|
|
2495
|
-
var selector = addScope(prop.substr(at.length), rule.selector);
|
|
2496
|
-
sheet.addRule(selector, style[prop], _extends._extends({}, options, {
|
|
2497
|
-
selector: selector
|
|
2498
|
-
}));
|
|
2499
|
-
delete style[prop];
|
|
2500
|
-
}
|
|
2501
|
-
}
|
|
2502
|
-
/**
|
|
2503
|
-
* Convert nested rules to separate, remove them from original styles.
|
|
2504
|
-
*
|
|
2505
|
-
* @param {Rule} rule
|
|
2506
|
-
* @api public
|
|
2507
|
-
*/
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
function jssGlobal() {
|
|
2511
|
-
function onCreateRule(name, styles, options) {
|
|
2512
|
-
if (!name) return null;
|
|
2513
|
-
|
|
2514
|
-
if (name === at) {
|
|
2515
|
-
return new GlobalContainerRule(name, styles, options);
|
|
2516
|
-
}
|
|
2517
|
-
|
|
2518
|
-
if (name[0] === '@' && name.substr(0, atPrefix.length) === atPrefix) {
|
|
2519
|
-
return new GlobalPrefixedRule(name, styles, options);
|
|
2520
|
-
}
|
|
2521
|
-
|
|
2522
|
-
var parent = options.parent;
|
|
2523
|
-
|
|
2524
|
-
if (parent) {
|
|
2525
|
-
if (parent.type === 'global' || parent.options.parent && parent.options.parent.type === 'global') {
|
|
2526
|
-
options.scoped = false;
|
|
2527
|
-
}
|
|
2528
|
-
}
|
|
2529
|
-
|
|
2530
|
-
if (options.scoped === false) {
|
|
2531
|
-
options.selector = name;
|
|
2532
|
-
}
|
|
2533
|
-
|
|
2534
|
-
return null;
|
|
2535
|
-
}
|
|
2536
|
-
|
|
2537
|
-
function onProcessRule(rule, sheet) {
|
|
2538
|
-
if (rule.type !== 'style' || !sheet) return;
|
|
2539
|
-
handleNestedGlobalContainerRule(rule, sheet);
|
|
2540
|
-
handlePrefixedGlobalRule(rule, sheet);
|
|
2541
|
-
}
|
|
2542
|
-
|
|
2543
|
-
return {
|
|
2544
|
-
onCreateRule: onCreateRule,
|
|
2545
|
-
onProcessRule: onProcessRule
|
|
2546
|
-
};
|
|
2547
|
-
}
|
|
2548
|
-
|
|
2549
|
-
var isObject = function isObject(obj) {
|
|
2550
|
-
return obj && typeof obj === 'object' && !Array.isArray(obj);
|
|
2551
|
-
};
|
|
2552
|
-
|
|
2553
|
-
var valueNs = "extendCurrValue" + Date.now();
|
|
2554
|
-
|
|
2555
|
-
function mergeExtend(style, rule, sheet, newStyle) {
|
|
2556
|
-
var extendType = typeof style.extend; // Extend using a rule name.
|
|
2557
|
-
|
|
2558
|
-
if (extendType === 'string') {
|
|
2559
|
-
if (!sheet) return;
|
|
2560
|
-
var refRule = sheet.getRule(style.extend);
|
|
2561
|
-
if (!refRule) return;
|
|
2562
|
-
|
|
2563
|
-
if (refRule === rule) {
|
|
2564
|
-
return;
|
|
2565
|
-
}
|
|
2566
|
-
|
|
2567
|
-
var parent = refRule.options.parent;
|
|
2568
|
-
|
|
2569
|
-
if (parent) {
|
|
2570
|
-
var originalStyle = parent.rules.raw[style.extend];
|
|
2571
|
-
extend(originalStyle, rule, sheet, newStyle);
|
|
2572
|
-
}
|
|
2573
|
-
|
|
2574
|
-
return;
|
|
2575
|
-
} // Extend using an array.
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
if (Array.isArray(style.extend)) {
|
|
2579
|
-
for (var index = 0; index < style.extend.length; index++) {
|
|
2580
|
-
var singleExtend = style.extend[index];
|
|
2581
|
-
var singleStyle = typeof singleExtend === 'string' ? _extends._extends({}, style, {
|
|
2582
|
-
extend: singleExtend
|
|
2583
|
-
}) : style.extend[index];
|
|
2584
|
-
extend(singleStyle, rule, sheet, newStyle);
|
|
2585
|
-
}
|
|
2586
|
-
|
|
2587
|
-
return;
|
|
2588
|
-
} // Extend is a style object.
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
for (var prop in style.extend) {
|
|
2592
|
-
if (prop === 'extend') {
|
|
2593
|
-
extend(style.extend.extend, rule, sheet, newStyle);
|
|
2594
|
-
continue;
|
|
2595
|
-
}
|
|
2596
|
-
|
|
2597
|
-
if (isObject(style.extend[prop])) {
|
|
2598
|
-
if (!(prop in newStyle)) newStyle[prop] = {};
|
|
2599
|
-
extend(style.extend[prop], rule, sheet, newStyle[prop]);
|
|
2600
|
-
continue;
|
|
2601
|
-
}
|
|
2602
|
-
|
|
2603
|
-
newStyle[prop] = style.extend[prop];
|
|
2604
|
-
}
|
|
2605
|
-
}
|
|
2606
|
-
|
|
2607
|
-
function mergeRest(style, rule, sheet, newStyle) {
|
|
2608
|
-
// Copy base style.
|
|
2609
|
-
for (var prop in style) {
|
|
2610
|
-
if (prop === 'extend') continue;
|
|
2611
|
-
|
|
2612
|
-
if (isObject(newStyle[prop]) && isObject(style[prop])) {
|
|
2613
|
-
extend(style[prop], rule, sheet, newStyle[prop]);
|
|
2614
|
-
continue;
|
|
2615
|
-
}
|
|
2616
|
-
|
|
2617
|
-
if (isObject(style[prop])) {
|
|
2618
|
-
newStyle[prop] = extend(style[prop], rule, sheet);
|
|
2619
|
-
continue;
|
|
2620
|
-
}
|
|
2621
|
-
|
|
2622
|
-
newStyle[prop] = style[prop];
|
|
2623
|
-
}
|
|
2624
|
-
}
|
|
2625
|
-
/**
|
|
2626
|
-
* Recursively extend styles.
|
|
2627
|
-
*/
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
function extend(style, rule, sheet, newStyle) {
|
|
2631
|
-
if (newStyle === void 0) {
|
|
2632
|
-
newStyle = {};
|
|
2633
|
-
}
|
|
2634
|
-
|
|
2635
|
-
mergeExtend(style, rule, sheet, newStyle);
|
|
2636
|
-
mergeRest(style, rule, sheet, newStyle);
|
|
2637
|
-
return newStyle;
|
|
2638
|
-
}
|
|
2639
|
-
/**
|
|
2640
|
-
* Handle `extend` property.
|
|
2641
|
-
*
|
|
2642
|
-
* @param {Rule} rule
|
|
2643
|
-
* @api public
|
|
2644
|
-
*/
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
function jssExtend() {
|
|
2648
|
-
function onProcessStyle(style, rule, sheet) {
|
|
2649
|
-
if ('extend' in style) return extend(style, rule, sheet);
|
|
2650
|
-
return style;
|
|
2651
|
-
}
|
|
2652
|
-
|
|
2653
|
-
function onChangeValue(value, prop, rule) {
|
|
2654
|
-
if (prop !== 'extend') return value; // Value is empty, remove properties set previously.
|
|
2655
|
-
|
|
2656
|
-
if (value == null || value === false) {
|
|
2657
|
-
// $FlowFixMe[prop-missing]
|
|
2658
|
-
for (var key in rule[valueNs]) {
|
|
2659
|
-
rule.prop(key, null);
|
|
2660
|
-
} // $FlowFixMe[prop-missing] Flow complains because there is no indexer property in StyleRule
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
rule[valueNs] = null;
|
|
2664
|
-
return null;
|
|
2665
|
-
}
|
|
2666
|
-
|
|
2667
|
-
if (typeof value === 'object') {
|
|
2668
|
-
// $FlowFixMe[invalid-in-rhs] This will be an object
|
|
2669
|
-
for (var _key in value) {
|
|
2670
|
-
// $FlowFixMe[incompatible-use] This will be an object
|
|
2671
|
-
rule.prop(_key, value[_key]);
|
|
2672
|
-
} // $FlowFixMe[prop-missing] Flow complains because there is no indexer property in StyleRule
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
rule[valueNs] = value;
|
|
2676
|
-
} // Make sure we don't set the value in the core.
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
return null;
|
|
2680
|
-
}
|
|
2681
|
-
|
|
2682
|
-
return {
|
|
2683
|
-
onProcessStyle: onProcessStyle,
|
|
2684
|
-
onChangeValue: onChangeValue
|
|
2685
|
-
};
|
|
2686
|
-
}
|
|
2687
|
-
|
|
2688
|
-
var separatorRegExp$1 = /\s*,\s*/g;
|
|
2689
|
-
var parentRegExp = /&/g;
|
|
2690
|
-
var refRegExp$1 = /\$([\w-]+)/g;
|
|
2691
|
-
/**
|
|
2692
|
-
* Convert nested rules to separate, remove them from original styles.
|
|
2693
|
-
*
|
|
2694
|
-
* @param {Rule} rule
|
|
2695
|
-
* @api public
|
|
2696
|
-
*/
|
|
2697
|
-
|
|
2698
|
-
function jssNested() {
|
|
2699
|
-
// Get a function to be used for $ref replacement.
|
|
2700
|
-
function getReplaceRef(container, sheet) {
|
|
2701
|
-
return function (match, key) {
|
|
2702
|
-
var rule = container.getRule(key) || sheet && sheet.getRule(key);
|
|
2703
|
-
|
|
2704
|
-
if (rule) {
|
|
2705
|
-
rule = rule;
|
|
2706
|
-
return rule.selector;
|
|
2707
|
-
}
|
|
2708
|
-
return key;
|
|
2709
|
-
};
|
|
2710
|
-
}
|
|
2711
|
-
|
|
2712
|
-
function replaceParentRefs(nestedProp, parentProp) {
|
|
2713
|
-
var parentSelectors = parentProp.split(separatorRegExp$1);
|
|
2714
|
-
var nestedSelectors = nestedProp.split(separatorRegExp$1);
|
|
2715
|
-
var result = '';
|
|
2716
|
-
|
|
2717
|
-
for (var i = 0; i < parentSelectors.length; i++) {
|
|
2718
|
-
var parent = parentSelectors[i];
|
|
2719
|
-
|
|
2720
|
-
for (var j = 0; j < nestedSelectors.length; j++) {
|
|
2721
|
-
var nested = nestedSelectors[j];
|
|
2722
|
-
if (result) result += ', '; // Replace all & by the parent or prefix & with the parent.
|
|
2723
|
-
|
|
2724
|
-
result += nested.indexOf('&') !== -1 ? nested.replace(parentRegExp, parent) : parent + " " + nested;
|
|
2725
|
-
}
|
|
2726
|
-
}
|
|
2727
|
-
|
|
2728
|
-
return result;
|
|
2729
|
-
}
|
|
2730
|
-
|
|
2731
|
-
function getOptions(rule, container, prevOptions) {
|
|
2732
|
-
// Options has been already created, now we only increase index.
|
|
2733
|
-
if (prevOptions) return _extends._extends({}, prevOptions, {
|
|
2734
|
-
index: prevOptions.index + 1 // $FlowFixMe[prop-missing]
|
|
2735
|
-
|
|
2736
|
-
});
|
|
2737
|
-
var nestingLevel = rule.options.nestingLevel;
|
|
2738
|
-
nestingLevel = nestingLevel === undefined ? 1 : nestingLevel + 1;
|
|
2739
|
-
|
|
2740
|
-
var options = _extends._extends({}, rule.options, {
|
|
2741
|
-
nestingLevel: nestingLevel,
|
|
2742
|
-
index: container.indexOf(rule) + 1 // We don't need the parent name to be set options for chlid.
|
|
2743
|
-
|
|
2744
|
-
});
|
|
2745
|
-
|
|
2746
|
-
delete options.name;
|
|
2747
|
-
return options;
|
|
2748
|
-
}
|
|
2749
|
-
|
|
2750
|
-
function onProcessStyle(style, rule, sheet) {
|
|
2751
|
-
if (rule.type !== 'style') return style;
|
|
2752
|
-
var styleRule = rule;
|
|
2753
|
-
var container = styleRule.options.parent;
|
|
2754
|
-
var options;
|
|
2755
|
-
var replaceRef;
|
|
2756
|
-
|
|
2757
|
-
for (var prop in style) {
|
|
2758
|
-
var isNested = prop.indexOf('&') !== -1;
|
|
2759
|
-
var isNestedConditional = prop[0] === '@';
|
|
2760
|
-
if (!isNested && !isNestedConditional) continue;
|
|
2761
|
-
options = getOptions(styleRule, container, options);
|
|
2762
|
-
|
|
2763
|
-
if (isNested) {
|
|
2764
|
-
var selector = replaceParentRefs(prop, styleRule.selector); // Lazily create the ref replacer function just once for
|
|
2765
|
-
// all nested rules within the sheet.
|
|
2766
|
-
|
|
2767
|
-
if (!replaceRef) replaceRef = getReplaceRef(container, sheet); // Replace all $refs.
|
|
2768
|
-
|
|
2769
|
-
selector = selector.replace(refRegExp$1, replaceRef);
|
|
2770
|
-
container.addRule(selector, style[prop], _extends._extends({}, options, {
|
|
2771
|
-
selector: selector
|
|
2772
|
-
}));
|
|
2773
|
-
} else if (isNestedConditional) {
|
|
2774
|
-
// Place conditional right after the parent rule to ensure right ordering.
|
|
2775
|
-
container.addRule(prop, {}, options) // Flow expects more options but they aren't required
|
|
2776
|
-
// And flow doesn't know this will always be a StyleRule which has the addRule method
|
|
2777
|
-
// $FlowFixMe[incompatible-use]
|
|
2778
|
-
// $FlowFixMe[prop-missing]
|
|
2779
|
-
.addRule(styleRule.key, style[prop], {
|
|
2780
|
-
selector: styleRule.selector
|
|
2781
|
-
});
|
|
2782
|
-
}
|
|
2783
|
-
|
|
2784
|
-
delete style[prop];
|
|
2785
|
-
}
|
|
2786
|
-
|
|
2787
|
-
return style;
|
|
2788
|
-
}
|
|
2789
|
-
|
|
2790
|
-
return {
|
|
2791
|
-
onProcessStyle: onProcessStyle
|
|
2792
|
-
};
|
|
2793
|
-
}
|
|
2794
|
-
|
|
2795
|
-
/**
|
|
2796
|
-
* Set selector.
|
|
2797
|
-
*
|
|
2798
|
-
* @param {Object} original rule
|
|
2799
|
-
* @param {String} className class string
|
|
2800
|
-
* @return {Boolean} flag, indicating function was successfull or not
|
|
2801
|
-
*/
|
|
2802
|
-
function registerClass(rule, className) {
|
|
2803
|
-
// Skip falsy values
|
|
2804
|
-
if (!className) return true; // Support array of class names `{composes: ['foo', 'bar']}`
|
|
2805
|
-
|
|
2806
|
-
if (Array.isArray(className)) {
|
|
2807
|
-
for (var index = 0; index < className.length; index++) {
|
|
2808
|
-
var isSetted = registerClass(rule, className[index]);
|
|
2809
|
-
if (!isSetted) return false;
|
|
2810
|
-
}
|
|
2811
|
-
|
|
2812
|
-
return true;
|
|
2813
|
-
} // Support space separated class names `{composes: 'foo bar'}`
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
if (className.indexOf(' ') > -1) {
|
|
2817
|
-
return registerClass(rule, className.split(' '));
|
|
2818
|
-
}
|
|
2819
|
-
|
|
2820
|
-
var _ref = rule.options,
|
|
2821
|
-
parent = _ref.parent; // It is a ref to a local rule.
|
|
2822
|
-
|
|
2823
|
-
if (className[0] === '$') {
|
|
2824
|
-
var refRule = parent.getRule(className.substr(1));
|
|
2825
|
-
|
|
2826
|
-
if (!refRule) {
|
|
2827
|
-
return false;
|
|
2828
|
-
}
|
|
2829
|
-
|
|
2830
|
-
if (refRule === rule) {
|
|
2831
|
-
return false;
|
|
2832
|
-
}
|
|
2833
|
-
|
|
2834
|
-
parent.classes[rule.key] += " " + parent.classes[refRule.key];
|
|
2835
|
-
return true;
|
|
2836
|
-
}
|
|
2837
|
-
|
|
2838
|
-
parent.classes[rule.key] += " " + className;
|
|
2839
|
-
return true;
|
|
2840
|
-
}
|
|
2841
|
-
/**
|
|
2842
|
-
* Convert compose property to additional class, remove property from original styles.
|
|
2843
|
-
*
|
|
2844
|
-
* @param {Rule} rule
|
|
2845
|
-
* @api public
|
|
2846
|
-
*/
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
function jssCompose() {
|
|
2850
|
-
function onProcessStyle(style, rule) {
|
|
2851
|
-
if (!('composes' in style)) return style;
|
|
2852
|
-
registerClass(rule, style.composes); // Remove composes property to prevent infinite loop.
|
|
2853
|
-
|
|
2854
|
-
delete style.composes;
|
|
2855
|
-
return style;
|
|
2856
|
-
}
|
|
2857
|
-
|
|
2858
|
-
return {
|
|
2859
|
-
onProcessStyle: onProcessStyle
|
|
2860
|
-
};
|
|
2861
|
-
}
|
|
2862
|
-
|
|
2863
|
-
/* eslint-disable no-var, prefer-template */
|
|
2864
|
-
var uppercasePattern = /[A-Z]/g;
|
|
2865
|
-
var msPattern = /^ms-/;
|
|
2866
|
-
var cache = {};
|
|
2867
|
-
|
|
2868
|
-
function toHyphenLower(match) {
|
|
2869
|
-
return '-' + match.toLowerCase()
|
|
2870
|
-
}
|
|
2871
|
-
|
|
2872
|
-
function hyphenateStyleName(name) {
|
|
2873
|
-
if (cache.hasOwnProperty(name)) {
|
|
2874
|
-
return cache[name]
|
|
2875
|
-
}
|
|
2876
|
-
|
|
2877
|
-
var hName = name.replace(uppercasePattern, toHyphenLower);
|
|
2878
|
-
return (cache[name] = msPattern.test(hName) ? '-' + hName : hName)
|
|
2879
|
-
}
|
|
2880
|
-
|
|
2881
|
-
/**
|
|
2882
|
-
* Convert camel cased property names to dash separated.
|
|
2883
|
-
*
|
|
2884
|
-
* @param {Object} style
|
|
2885
|
-
* @return {Object}
|
|
2886
|
-
*/
|
|
2887
|
-
|
|
2888
|
-
function convertCase(style) {
|
|
2889
|
-
var converted = {};
|
|
2890
|
-
|
|
2891
|
-
for (var prop in style) {
|
|
2892
|
-
var key = prop.indexOf('--') === 0 ? prop : hyphenateStyleName(prop);
|
|
2893
|
-
converted[key] = style[prop];
|
|
2894
|
-
}
|
|
2895
|
-
|
|
2896
|
-
if (style.fallbacks) {
|
|
2897
|
-
if (Array.isArray(style.fallbacks)) converted.fallbacks = style.fallbacks.map(convertCase);else converted.fallbacks = convertCase(style.fallbacks);
|
|
2898
|
-
}
|
|
2899
|
-
|
|
2900
|
-
return converted;
|
|
2901
|
-
}
|
|
2902
|
-
/**
|
|
2903
|
-
* Allow camel cased property names by converting them back to dasherized.
|
|
2904
|
-
*
|
|
2905
|
-
* @param {Rule} rule
|
|
2906
|
-
*/
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
function camelCase() {
|
|
2910
|
-
function onProcessStyle(style) {
|
|
2911
|
-
if (Array.isArray(style)) {
|
|
2912
|
-
// Handle rules like @font-face, which can have multiple styles in an array
|
|
2913
|
-
for (var index = 0; index < style.length; index++) {
|
|
2914
|
-
style[index] = convertCase(style[index]);
|
|
2915
|
-
}
|
|
2916
|
-
|
|
2917
|
-
return style;
|
|
2918
|
-
}
|
|
2919
|
-
|
|
2920
|
-
return convertCase(style);
|
|
2921
|
-
}
|
|
2922
|
-
|
|
2923
|
-
function onChangeValue(value, prop, rule) {
|
|
2924
|
-
if (prop.indexOf('--') === 0) {
|
|
2925
|
-
return value;
|
|
2926
|
-
}
|
|
2927
|
-
|
|
2928
|
-
var hyphenatedProp = hyphenateStyleName(prop); // There was no camel case in place
|
|
2929
|
-
|
|
2930
|
-
if (prop === hyphenatedProp) return value;
|
|
2931
|
-
rule.prop(hyphenatedProp, value); // Core will ignore that property value we set the proper one above.
|
|
2932
|
-
|
|
2933
|
-
return null;
|
|
2934
|
-
}
|
|
2935
|
-
|
|
2936
|
-
return {
|
|
2937
|
-
onProcessStyle: onProcessStyle,
|
|
2938
|
-
onChangeValue: onChangeValue
|
|
2939
|
-
};
|
|
2940
|
-
}
|
|
2941
|
-
|
|
2942
|
-
var px = hasCSSTOMSupport && CSS ? CSS.px : 'px';
|
|
2943
|
-
var ms = hasCSSTOMSupport && CSS ? CSS.ms : 'ms';
|
|
2944
|
-
var percent = hasCSSTOMSupport && CSS ? CSS.percent : '%';
|
|
2945
|
-
/**
|
|
2946
|
-
* Generated jss-plugin-default-unit CSS property units
|
|
2947
|
-
*
|
|
2948
|
-
* @type object
|
|
2949
|
-
*/
|
|
2950
|
-
|
|
2951
|
-
var defaultUnits = {
|
|
2952
|
-
// Animation properties
|
|
2953
|
-
'animation-delay': ms,
|
|
2954
|
-
'animation-duration': ms,
|
|
2955
|
-
// Background properties
|
|
2956
|
-
'background-position': px,
|
|
2957
|
-
'background-position-x': px,
|
|
2958
|
-
'background-position-y': px,
|
|
2959
|
-
'background-size': px,
|
|
2960
|
-
// Border Properties
|
|
2961
|
-
border: px,
|
|
2962
|
-
'border-bottom': px,
|
|
2963
|
-
'border-bottom-left-radius': px,
|
|
2964
|
-
'border-bottom-right-radius': px,
|
|
2965
|
-
'border-bottom-width': px,
|
|
2966
|
-
'border-left': px,
|
|
2967
|
-
'border-left-width': px,
|
|
2968
|
-
'border-radius': px,
|
|
2969
|
-
'border-right': px,
|
|
2970
|
-
'border-right-width': px,
|
|
2971
|
-
'border-top': px,
|
|
2972
|
-
'border-top-left-radius': px,
|
|
2973
|
-
'border-top-right-radius': px,
|
|
2974
|
-
'border-top-width': px,
|
|
2975
|
-
'border-width': px,
|
|
2976
|
-
'border-block': px,
|
|
2977
|
-
'border-block-end': px,
|
|
2978
|
-
'border-block-end-width': px,
|
|
2979
|
-
'border-block-start': px,
|
|
2980
|
-
'border-block-start-width': px,
|
|
2981
|
-
'border-block-width': px,
|
|
2982
|
-
'border-inline': px,
|
|
2983
|
-
'border-inline-end': px,
|
|
2984
|
-
'border-inline-end-width': px,
|
|
2985
|
-
'border-inline-start': px,
|
|
2986
|
-
'border-inline-start-width': px,
|
|
2987
|
-
'border-inline-width': px,
|
|
2988
|
-
'border-start-start-radius': px,
|
|
2989
|
-
'border-start-end-radius': px,
|
|
2990
|
-
'border-end-start-radius': px,
|
|
2991
|
-
'border-end-end-radius': px,
|
|
2992
|
-
// Margin properties
|
|
2993
|
-
margin: px,
|
|
2994
|
-
'margin-bottom': px,
|
|
2995
|
-
'margin-left': px,
|
|
2996
|
-
'margin-right': px,
|
|
2997
|
-
'margin-top': px,
|
|
2998
|
-
'margin-block': px,
|
|
2999
|
-
'margin-block-end': px,
|
|
3000
|
-
'margin-block-start': px,
|
|
3001
|
-
'margin-inline': px,
|
|
3002
|
-
'margin-inline-end': px,
|
|
3003
|
-
'margin-inline-start': px,
|
|
3004
|
-
// Padding properties
|
|
3005
|
-
padding: px,
|
|
3006
|
-
'padding-bottom': px,
|
|
3007
|
-
'padding-left': px,
|
|
3008
|
-
'padding-right': px,
|
|
3009
|
-
'padding-top': px,
|
|
3010
|
-
'padding-block': px,
|
|
3011
|
-
'padding-block-end': px,
|
|
3012
|
-
'padding-block-start': px,
|
|
3013
|
-
'padding-inline': px,
|
|
3014
|
-
'padding-inline-end': px,
|
|
3015
|
-
'padding-inline-start': px,
|
|
3016
|
-
// Mask properties
|
|
3017
|
-
'mask-position-x': px,
|
|
3018
|
-
'mask-position-y': px,
|
|
3019
|
-
'mask-size': px,
|
|
3020
|
-
// Width and height properties
|
|
3021
|
-
height: px,
|
|
3022
|
-
width: px,
|
|
3023
|
-
'min-height': px,
|
|
3024
|
-
'max-height': px,
|
|
3025
|
-
'min-width': px,
|
|
3026
|
-
'max-width': px,
|
|
3027
|
-
// Position properties
|
|
3028
|
-
bottom: px,
|
|
3029
|
-
left: px,
|
|
3030
|
-
top: px,
|
|
3031
|
-
right: px,
|
|
3032
|
-
inset: px,
|
|
3033
|
-
'inset-block': px,
|
|
3034
|
-
'inset-block-end': px,
|
|
3035
|
-
'inset-block-start': px,
|
|
3036
|
-
'inset-inline': px,
|
|
3037
|
-
'inset-inline-end': px,
|
|
3038
|
-
'inset-inline-start': px,
|
|
3039
|
-
// Shadow properties
|
|
3040
|
-
'box-shadow': px,
|
|
3041
|
-
'text-shadow': px,
|
|
3042
|
-
// Column properties
|
|
3043
|
-
'column-gap': px,
|
|
3044
|
-
'column-rule': px,
|
|
3045
|
-
'column-rule-width': px,
|
|
3046
|
-
'column-width': px,
|
|
3047
|
-
// Font and text properties
|
|
3048
|
-
'font-size': px,
|
|
3049
|
-
'font-size-delta': px,
|
|
3050
|
-
'letter-spacing': px,
|
|
3051
|
-
'text-decoration-thickness': px,
|
|
3052
|
-
'text-indent': px,
|
|
3053
|
-
'text-stroke': px,
|
|
3054
|
-
'text-stroke-width': px,
|
|
3055
|
-
'word-spacing': px,
|
|
3056
|
-
// Motion properties
|
|
3057
|
-
motion: px,
|
|
3058
|
-
'motion-offset': px,
|
|
3059
|
-
// Outline properties
|
|
3060
|
-
outline: px,
|
|
3061
|
-
'outline-offset': px,
|
|
3062
|
-
'outline-width': px,
|
|
3063
|
-
// Perspective properties
|
|
3064
|
-
perspective: px,
|
|
3065
|
-
'perspective-origin-x': percent,
|
|
3066
|
-
'perspective-origin-y': percent,
|
|
3067
|
-
// Transform properties
|
|
3068
|
-
'transform-origin': percent,
|
|
3069
|
-
'transform-origin-x': percent,
|
|
3070
|
-
'transform-origin-y': percent,
|
|
3071
|
-
'transform-origin-z': percent,
|
|
3072
|
-
// Transition properties
|
|
3073
|
-
'transition-delay': ms,
|
|
3074
|
-
'transition-duration': ms,
|
|
3075
|
-
// Alignment properties
|
|
3076
|
-
'vertical-align': px,
|
|
3077
|
-
'flex-basis': px,
|
|
3078
|
-
// Some random properties
|
|
3079
|
-
'shape-margin': px,
|
|
3080
|
-
size: px,
|
|
3081
|
-
gap: px,
|
|
3082
|
-
// Grid properties
|
|
3083
|
-
grid: px,
|
|
3084
|
-
'grid-gap': px,
|
|
3085
|
-
'row-gap': px,
|
|
3086
|
-
'grid-row-gap': px,
|
|
3087
|
-
'grid-column-gap': px,
|
|
3088
|
-
'grid-template-rows': px,
|
|
3089
|
-
'grid-template-columns': px,
|
|
3090
|
-
'grid-auto-rows': px,
|
|
3091
|
-
'grid-auto-columns': px,
|
|
3092
|
-
// Not existing properties.
|
|
3093
|
-
// Used to avoid issues with jss-plugin-expand integration.
|
|
3094
|
-
'box-shadow-x': px,
|
|
3095
|
-
'box-shadow-y': px,
|
|
3096
|
-
'box-shadow-blur': px,
|
|
3097
|
-
'box-shadow-spread': px,
|
|
3098
|
-
'font-line-height': px,
|
|
3099
|
-
'text-shadow-x': px,
|
|
3100
|
-
'text-shadow-y': px,
|
|
3101
|
-
'text-shadow-blur': px
|
|
3102
|
-
};
|
|
3103
|
-
|
|
3104
|
-
/**
|
|
3105
|
-
* Clones the object and adds a camel cased property version.
|
|
3106
|
-
*/
|
|
3107
|
-
function addCamelCasedVersion(obj) {
|
|
3108
|
-
var regExp = /(-[a-z])/g;
|
|
3109
|
-
|
|
3110
|
-
var replace = function replace(str) {
|
|
3111
|
-
return str[1].toUpperCase();
|
|
3112
|
-
};
|
|
3113
|
-
|
|
3114
|
-
var newObj = {};
|
|
3115
|
-
|
|
3116
|
-
for (var _key in obj) {
|
|
3117
|
-
newObj[_key] = obj[_key];
|
|
3118
|
-
newObj[_key.replace(regExp, replace)] = obj[_key];
|
|
3119
|
-
}
|
|
3120
|
-
|
|
3121
|
-
return newObj;
|
|
3122
|
-
}
|
|
3123
|
-
|
|
3124
|
-
var units = addCamelCasedVersion(defaultUnits);
|
|
3125
|
-
/**
|
|
3126
|
-
* Recursive deep style passing function
|
|
3127
|
-
*/
|
|
3128
|
-
|
|
3129
|
-
function iterate(prop, value, options) {
|
|
3130
|
-
if (value == null) return value;
|
|
3131
|
-
|
|
3132
|
-
if (Array.isArray(value)) {
|
|
3133
|
-
for (var i = 0; i < value.length; i++) {
|
|
3134
|
-
value[i] = iterate(prop, value[i], options);
|
|
3135
|
-
}
|
|
3136
|
-
} else if (typeof value === 'object') {
|
|
3137
|
-
if (prop === 'fallbacks') {
|
|
3138
|
-
for (var innerProp in value) {
|
|
3139
|
-
value[innerProp] = iterate(innerProp, value[innerProp], options);
|
|
3140
|
-
}
|
|
3141
|
-
} else {
|
|
3142
|
-
for (var _innerProp in value) {
|
|
3143
|
-
value[_innerProp] = iterate(prop + "-" + _innerProp, value[_innerProp], options);
|
|
3144
|
-
}
|
|
3145
|
-
} // eslint-disable-next-line no-restricted-globals
|
|
3146
|
-
|
|
3147
|
-
} else if (typeof value === 'number' && isNaN(value) === false) {
|
|
3148
|
-
var unit = options[prop] || units[prop]; // Add the unit if available, except for the special case of 0px.
|
|
3149
|
-
|
|
3150
|
-
if (unit && !(value === 0 && unit === px)) {
|
|
3151
|
-
return typeof unit === 'function' ? unit(value).toString() : "" + value + unit;
|
|
3152
|
-
}
|
|
3153
|
-
|
|
3154
|
-
return value.toString();
|
|
3155
|
-
}
|
|
3156
|
-
|
|
3157
|
-
return value;
|
|
3158
|
-
}
|
|
3159
|
-
/**
|
|
3160
|
-
* Add unit to numeric values.
|
|
3161
|
-
*/
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
function defaultUnit(options) {
|
|
3165
|
-
if (options === void 0) {
|
|
3166
|
-
options = {};
|
|
3167
|
-
}
|
|
3168
|
-
|
|
3169
|
-
var camelCasedOptions = addCamelCasedVersion(options);
|
|
3170
|
-
|
|
3171
|
-
function onProcessStyle(style, rule) {
|
|
3172
|
-
if (rule.type !== 'style') return style;
|
|
3173
|
-
|
|
3174
|
-
for (var prop in style) {
|
|
3175
|
-
style[prop] = iterate(prop, style[prop], camelCasedOptions);
|
|
3176
|
-
}
|
|
3177
|
-
|
|
3178
|
-
return style;
|
|
3179
|
-
}
|
|
3180
|
-
|
|
3181
|
-
function onChangeValue(value, prop) {
|
|
3182
|
-
return iterate(prop, value, camelCasedOptions);
|
|
3183
|
-
}
|
|
3184
|
-
|
|
3185
|
-
return {
|
|
3186
|
-
onProcessStyle: onProcessStyle,
|
|
3187
|
-
onChangeValue: onChangeValue
|
|
3188
|
-
};
|
|
3189
|
-
}
|
|
3190
|
-
|
|
3191
|
-
/**
|
|
3192
|
-
* A scheme for converting properties from array to regular style.
|
|
3193
|
-
* All properties listed below will be transformed to a string separated by space.
|
|
3194
|
-
*/
|
|
3195
|
-
var propArray = {
|
|
3196
|
-
'background-size': true,
|
|
3197
|
-
'background-position': true,
|
|
3198
|
-
border: true,
|
|
3199
|
-
'border-bottom': true,
|
|
3200
|
-
'border-left': true,
|
|
3201
|
-
'border-top': true,
|
|
3202
|
-
'border-right': true,
|
|
3203
|
-
'border-radius': true,
|
|
3204
|
-
'border-image': true,
|
|
3205
|
-
'border-width': true,
|
|
3206
|
-
'border-style': true,
|
|
3207
|
-
'border-color': true,
|
|
3208
|
-
'box-shadow': true,
|
|
3209
|
-
flex: true,
|
|
3210
|
-
margin: true,
|
|
3211
|
-
padding: true,
|
|
3212
|
-
outline: true,
|
|
3213
|
-
'transform-origin': true,
|
|
3214
|
-
transform: true,
|
|
3215
|
-
transition: true
|
|
3216
|
-
/**
|
|
3217
|
-
* A scheme for converting arrays to regular styles inside of objects.
|
|
3218
|
-
* For e.g.: "{position: [0, 0]}" => "background-position: 0 0;".
|
|
3219
|
-
*/
|
|
3220
|
-
|
|
3221
|
-
};
|
|
3222
|
-
var propArrayInObj = {
|
|
3223
|
-
position: true,
|
|
3224
|
-
// background-position
|
|
3225
|
-
size: true // background-size
|
|
3226
|
-
|
|
3227
|
-
/**
|
|
3228
|
-
* A scheme for parsing and building correct styles from passed objects.
|
|
3229
|
-
*/
|
|
3230
|
-
|
|
3231
|
-
};
|
|
3232
|
-
var propObj = {
|
|
3233
|
-
padding: {
|
|
3234
|
-
top: 0,
|
|
3235
|
-
right: 0,
|
|
3236
|
-
bottom: 0,
|
|
3237
|
-
left: 0
|
|
3238
|
-
},
|
|
3239
|
-
margin: {
|
|
3240
|
-
top: 0,
|
|
3241
|
-
right: 0,
|
|
3242
|
-
bottom: 0,
|
|
3243
|
-
left: 0
|
|
3244
|
-
},
|
|
3245
|
-
background: {
|
|
3246
|
-
attachment: null,
|
|
3247
|
-
color: null,
|
|
3248
|
-
image: null,
|
|
3249
|
-
position: null,
|
|
3250
|
-
repeat: null
|
|
3251
|
-
},
|
|
3252
|
-
border: {
|
|
3253
|
-
width: null,
|
|
3254
|
-
style: null,
|
|
3255
|
-
color: null
|
|
3256
|
-
},
|
|
3257
|
-
'border-top': {
|
|
3258
|
-
width: null,
|
|
3259
|
-
style: null,
|
|
3260
|
-
color: null
|
|
3261
|
-
},
|
|
3262
|
-
'border-right': {
|
|
3263
|
-
width: null,
|
|
3264
|
-
style: null,
|
|
3265
|
-
color: null
|
|
3266
|
-
},
|
|
3267
|
-
'border-bottom': {
|
|
3268
|
-
width: null,
|
|
3269
|
-
style: null,
|
|
3270
|
-
color: null
|
|
3271
|
-
},
|
|
3272
|
-
'border-left': {
|
|
3273
|
-
width: null,
|
|
3274
|
-
style: null,
|
|
3275
|
-
color: null
|
|
3276
|
-
},
|
|
3277
|
-
outline: {
|
|
3278
|
-
width: null,
|
|
3279
|
-
style: null,
|
|
3280
|
-
color: null
|
|
3281
|
-
},
|
|
3282
|
-
'list-style': {
|
|
3283
|
-
type: null,
|
|
3284
|
-
position: null,
|
|
3285
|
-
image: null
|
|
3286
|
-
},
|
|
3287
|
-
transition: {
|
|
3288
|
-
property: null,
|
|
3289
|
-
duration: null,
|
|
3290
|
-
'timing-function': null,
|
|
3291
|
-
timingFunction: null,
|
|
3292
|
-
// Needed for avoiding comilation issues with jss-plugin-camel-case
|
|
3293
|
-
delay: null
|
|
3294
|
-
},
|
|
3295
|
-
animation: {
|
|
3296
|
-
name: null,
|
|
3297
|
-
duration: null,
|
|
3298
|
-
'timing-function': null,
|
|
3299
|
-
timingFunction: null,
|
|
3300
|
-
// Needed to avoid compilation issues with jss-plugin-camel-case
|
|
3301
|
-
delay: null,
|
|
3302
|
-
'iteration-count': null,
|
|
3303
|
-
iterationCount: null,
|
|
3304
|
-
// Needed to avoid compilation issues with jss-plugin-camel-case
|
|
3305
|
-
direction: null,
|
|
3306
|
-
'fill-mode': null,
|
|
3307
|
-
fillMode: null,
|
|
3308
|
-
// Needed to avoid compilation issues with jss-plugin-camel-case
|
|
3309
|
-
'play-state': null,
|
|
3310
|
-
playState: null // Needed to avoid compilation issues with jss-plugin-camel-case
|
|
3311
|
-
|
|
3312
|
-
},
|
|
3313
|
-
'box-shadow': {
|
|
3314
|
-
x: 0,
|
|
3315
|
-
y: 0,
|
|
3316
|
-
blur: 0,
|
|
3317
|
-
spread: 0,
|
|
3318
|
-
color: null,
|
|
3319
|
-
inset: null
|
|
3320
|
-
},
|
|
3321
|
-
'text-shadow': {
|
|
3322
|
-
x: 0,
|
|
3323
|
-
y: 0,
|
|
3324
|
-
blur: null,
|
|
3325
|
-
color: null
|
|
3326
|
-
}
|
|
3327
|
-
/**
|
|
3328
|
-
* A scheme for converting non-standart properties inside object.
|
|
3329
|
-
* For e.g.: include 'border-radius' property inside 'border' object.
|
|
3330
|
-
*/
|
|
3331
|
-
|
|
3332
|
-
};
|
|
3333
|
-
var customPropObj = {
|
|
3334
|
-
border: {
|
|
3335
|
-
radius: 'border-radius',
|
|
3336
|
-
image: 'border-image',
|
|
3337
|
-
width: 'border-width',
|
|
3338
|
-
style: 'border-style',
|
|
3339
|
-
color: 'border-color'
|
|
3340
|
-
},
|
|
3341
|
-
'border-bottom': {
|
|
3342
|
-
width: 'border-bottom-width',
|
|
3343
|
-
style: 'border-bottom-style',
|
|
3344
|
-
color: 'border-bottom-color'
|
|
3345
|
-
},
|
|
3346
|
-
'border-top': {
|
|
3347
|
-
width: 'border-top-width',
|
|
3348
|
-
style: 'border-top-style',
|
|
3349
|
-
color: 'border-top-color'
|
|
3350
|
-
},
|
|
3351
|
-
'border-left': {
|
|
3352
|
-
width: 'border-left-width',
|
|
3353
|
-
style: 'border-left-style',
|
|
3354
|
-
color: 'border-left-color'
|
|
3355
|
-
},
|
|
3356
|
-
'border-right': {
|
|
3357
|
-
width: 'border-right-width',
|
|
3358
|
-
style: 'border-right-style',
|
|
3359
|
-
color: 'border-right-color'
|
|
3360
|
-
},
|
|
3361
|
-
background: {
|
|
3362
|
-
size: 'background-size',
|
|
3363
|
-
image: 'background-image'
|
|
3364
|
-
},
|
|
3365
|
-
font: {
|
|
3366
|
-
style: 'font-style',
|
|
3367
|
-
variant: 'font-variant',
|
|
3368
|
-
weight: 'font-weight',
|
|
3369
|
-
stretch: 'font-stretch',
|
|
3370
|
-
size: 'font-size',
|
|
3371
|
-
family: 'font-family',
|
|
3372
|
-
lineHeight: 'line-height',
|
|
3373
|
-
// Needed to avoid compilation issues with jss-plugin-camel-case
|
|
3374
|
-
'line-height': 'line-height'
|
|
3375
|
-
},
|
|
3376
|
-
flex: {
|
|
3377
|
-
grow: 'flex-grow',
|
|
3378
|
-
basis: 'flex-basis',
|
|
3379
|
-
direction: 'flex-direction',
|
|
3380
|
-
wrap: 'flex-wrap',
|
|
3381
|
-
flow: 'flex-flow',
|
|
3382
|
-
shrink: 'flex-shrink'
|
|
3383
|
-
},
|
|
3384
|
-
align: {
|
|
3385
|
-
self: 'align-self',
|
|
3386
|
-
items: 'align-items',
|
|
3387
|
-
content: 'align-content'
|
|
3388
|
-
},
|
|
3389
|
-
grid: {
|
|
3390
|
-
'template-columns': 'grid-template-columns',
|
|
3391
|
-
templateColumns: 'grid-template-columns',
|
|
3392
|
-
'template-rows': 'grid-template-rows',
|
|
3393
|
-
templateRows: 'grid-template-rows',
|
|
3394
|
-
'template-areas': 'grid-template-areas',
|
|
3395
|
-
templateAreas: 'grid-template-areas',
|
|
3396
|
-
template: 'grid-template',
|
|
3397
|
-
'auto-columns': 'grid-auto-columns',
|
|
3398
|
-
autoColumns: 'grid-auto-columns',
|
|
3399
|
-
'auto-rows': 'grid-auto-rows',
|
|
3400
|
-
autoRows: 'grid-auto-rows',
|
|
3401
|
-
'auto-flow': 'grid-auto-flow',
|
|
3402
|
-
autoFlow: 'grid-auto-flow',
|
|
3403
|
-
row: 'grid-row',
|
|
3404
|
-
column: 'grid-column',
|
|
3405
|
-
'row-start': 'grid-row-start',
|
|
3406
|
-
rowStart: 'grid-row-start',
|
|
3407
|
-
'row-end': 'grid-row-end',
|
|
3408
|
-
rowEnd: 'grid-row-end',
|
|
3409
|
-
'column-start': 'grid-column-start',
|
|
3410
|
-
columnStart: 'grid-column-start',
|
|
3411
|
-
'column-end': 'grid-column-end',
|
|
3412
|
-
columnEnd: 'grid-column-end',
|
|
3413
|
-
area: 'grid-area',
|
|
3414
|
-
gap: 'grid-gap',
|
|
3415
|
-
'row-gap': 'grid-row-gap',
|
|
3416
|
-
rowGap: 'grid-row-gap',
|
|
3417
|
-
'column-gap': 'grid-column-gap',
|
|
3418
|
-
columnGap: 'grid-column-gap'
|
|
3419
|
-
}
|
|
3420
|
-
};
|
|
3421
|
-
|
|
3422
|
-
/* eslint-disable no-use-before-define */
|
|
3423
|
-
|
|
3424
|
-
/**
|
|
3425
|
-
* Map values by given prop.
|
|
3426
|
-
*
|
|
3427
|
-
* @param {Array} array of values
|
|
3428
|
-
* @param {String} original property
|
|
3429
|
-
* @param {String} original rule
|
|
3430
|
-
* @return {String} mapped values
|
|
3431
|
-
*/
|
|
3432
|
-
function mapValuesByProp(value, prop, rule) {
|
|
3433
|
-
return value.map(function (item) {
|
|
3434
|
-
return objectToArray(item, prop, rule, false, true);
|
|
3435
|
-
});
|
|
3436
|
-
}
|
|
3437
|
-
/**
|
|
3438
|
-
* Convert array to nested array, if needed
|
|
3439
|
-
*/
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
function processArray(value, prop, scheme, rule) {
|
|
3443
|
-
if (scheme[prop] == null) return value;
|
|
3444
|
-
if (value.length === 0) return [];
|
|
3445
|
-
if (Array.isArray(value[0])) return processArray(value[0], prop, scheme, rule);
|
|
3446
|
-
|
|
3447
|
-
if (typeof value[0] === 'object') {
|
|
3448
|
-
return mapValuesByProp(value, prop, rule);
|
|
3449
|
-
}
|
|
3450
|
-
|
|
3451
|
-
return [value];
|
|
3452
|
-
}
|
|
3453
|
-
/**
|
|
3454
|
-
* Convert object to array.
|
|
3455
|
-
*/
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
function objectToArray(value, prop, rule, isFallback, isInArray) {
|
|
3459
|
-
if (!(propObj[prop] || customPropObj[prop])) return [];
|
|
3460
|
-
var result = []; // Check if exists any non-standard property
|
|
3461
|
-
|
|
3462
|
-
if (customPropObj[prop]) {
|
|
3463
|
-
// eslint-disable-next-line no-param-reassign
|
|
3464
|
-
value = customPropsToStyle(value, rule, customPropObj[prop], isFallback);
|
|
3465
|
-
} // Pass throught all standart props
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
if (Object.keys(value).length) {
|
|
3469
|
-
for (var baseProp in propObj[prop]) {
|
|
3470
|
-
if (value[baseProp]) {
|
|
3471
|
-
if (Array.isArray(value[baseProp])) {
|
|
3472
|
-
result.push(propArrayInObj[baseProp] === null ? value[baseProp] : value[baseProp].join(' '));
|
|
3473
|
-
} else result.push(value[baseProp]);
|
|
3474
|
-
|
|
3475
|
-
continue;
|
|
3476
|
-
} // Add default value from props config.
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
if (propObj[prop][baseProp] != null) {
|
|
3480
|
-
result.push(propObj[prop][baseProp]);
|
|
3481
|
-
}
|
|
3482
|
-
}
|
|
3483
|
-
}
|
|
3484
|
-
|
|
3485
|
-
if (!result.length || isInArray) return result;
|
|
3486
|
-
return [result];
|
|
3487
|
-
}
|
|
3488
|
-
/**
|
|
3489
|
-
* Convert custom properties values to styles adding them to rule directly
|
|
3490
|
-
*/
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
function customPropsToStyle(value, rule, customProps, isFallback) {
|
|
3494
|
-
for (var prop in customProps) {
|
|
3495
|
-
var propName = customProps[prop]; // If current property doesn't exist already in rule - add new one
|
|
3496
|
-
|
|
3497
|
-
if (typeof value[prop] !== 'undefined' && (isFallback || !rule.prop(propName))) {
|
|
3498
|
-
var _styleDetector;
|
|
3499
|
-
|
|
3500
|
-
var appendedValue = styleDetector((_styleDetector = {}, _styleDetector[propName] = value[prop], _styleDetector), rule)[propName]; // Add style directly in rule
|
|
3501
|
-
|
|
3502
|
-
if (isFallback) rule.style.fallbacks[propName] = appendedValue;else rule.style[propName] = appendedValue;
|
|
3503
|
-
} // Delete converted property to avoid double converting
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
delete value[prop];
|
|
3507
|
-
}
|
|
3508
|
-
|
|
3509
|
-
return value;
|
|
3510
|
-
}
|
|
3511
|
-
/**
|
|
3512
|
-
* Detect if a style needs to be converted.
|
|
3513
|
-
*/
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
function styleDetector(style, rule, isFallback) {
|
|
3517
|
-
for (var prop in style) {
|
|
3518
|
-
var value = style[prop];
|
|
3519
|
-
|
|
3520
|
-
if (Array.isArray(value)) {
|
|
3521
|
-
// Check double arrays to avoid recursion.
|
|
3522
|
-
if (!Array.isArray(value[0])) {
|
|
3523
|
-
if (prop === 'fallbacks') {
|
|
3524
|
-
for (var index = 0; index < style.fallbacks.length; index++) {
|
|
3525
|
-
style.fallbacks[index] = styleDetector(style.fallbacks[index], rule, true);
|
|
3526
|
-
}
|
|
3527
|
-
|
|
3528
|
-
continue;
|
|
3529
|
-
}
|
|
3530
|
-
|
|
3531
|
-
style[prop] = processArray(value, prop, propArray, rule); // Avoid creating properties with empty values
|
|
3532
|
-
|
|
3533
|
-
if (!style[prop].length) delete style[prop];
|
|
3534
|
-
}
|
|
3535
|
-
} else if (typeof value === 'object') {
|
|
3536
|
-
if (prop === 'fallbacks') {
|
|
3537
|
-
style.fallbacks = styleDetector(style.fallbacks, rule, true);
|
|
3538
|
-
continue;
|
|
3539
|
-
}
|
|
3540
|
-
|
|
3541
|
-
style[prop] = objectToArray(value, prop, rule, isFallback); // Avoid creating properties with empty values
|
|
3542
|
-
|
|
3543
|
-
if (!style[prop].length) delete style[prop];
|
|
3544
|
-
} // Maybe a computed value resulting in an empty string
|
|
3545
|
-
else if (style[prop] === '') delete style[prop];
|
|
3546
|
-
}
|
|
3547
|
-
|
|
3548
|
-
return style;
|
|
3549
|
-
}
|
|
3550
|
-
/**
|
|
3551
|
-
* Adds possibility to write expanded styles.
|
|
3552
|
-
*/
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
function jssExpand() {
|
|
3556
|
-
function onProcessStyle(style, rule) {
|
|
3557
|
-
if (!style || rule.type !== 'style') return style;
|
|
3558
|
-
|
|
3559
|
-
if (Array.isArray(style)) {
|
|
3560
|
-
// Pass rules one by one and reformat them
|
|
3561
|
-
for (var index = 0; index < style.length; index++) {
|
|
3562
|
-
style[index] = styleDetector(style[index], rule);
|
|
3563
|
-
}
|
|
3564
|
-
|
|
3565
|
-
return style;
|
|
3566
|
-
}
|
|
3567
|
-
|
|
3568
|
-
return styleDetector(style, rule);
|
|
3569
|
-
}
|
|
3570
|
-
|
|
3571
|
-
return {
|
|
3572
|
-
onProcessStyle: onProcessStyle
|
|
3573
|
-
};
|
|
3574
|
-
}
|
|
3575
|
-
|
|
3576
|
-
function _arrayLikeToArray(arr, len) {
|
|
3577
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
3578
|
-
|
|
3579
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
3580
|
-
arr2[i] = arr[i];
|
|
3581
|
-
}
|
|
3582
|
-
|
|
3583
|
-
return arr2;
|
|
3584
|
-
}
|
|
3585
|
-
|
|
3586
|
-
function _arrayWithoutHoles(arr) {
|
|
3587
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
3588
|
-
}
|
|
3589
|
-
|
|
3590
|
-
function _iterableToArray(iter) {
|
|
3591
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
3592
|
-
}
|
|
3593
|
-
|
|
3594
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
3595
|
-
if (!o) return;
|
|
3596
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
3597
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
3598
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
3599
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
3600
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
3601
|
-
}
|
|
3602
|
-
|
|
3603
|
-
function _nonIterableSpread() {
|
|
3604
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3605
|
-
}
|
|
3606
|
-
|
|
3607
|
-
function _toConsumableArray(arr) {
|
|
3608
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
3609
|
-
}
|
|
3610
|
-
|
|
3611
|
-
// Export javascript style and css style vendor prefixes.
|
|
3612
|
-
var js = '';
|
|
3613
|
-
var css = '';
|
|
3614
|
-
var vendor = '';
|
|
3615
|
-
var browser = '';
|
|
3616
|
-
var isTouch = isBrowser && 'ontouchstart' in document.documentElement; // We should not do anything if required serverside.
|
|
3617
|
-
|
|
3618
|
-
if (isBrowser) {
|
|
3619
|
-
// Order matters. We need to check Webkit the last one because
|
|
3620
|
-
// other vendors use to add Webkit prefixes to some properties
|
|
3621
|
-
var jsCssMap = {
|
|
3622
|
-
Moz: '-moz-',
|
|
3623
|
-
ms: '-ms-',
|
|
3624
|
-
O: '-o-',
|
|
3625
|
-
Webkit: '-webkit-'
|
|
3626
|
-
};
|
|
3627
|
-
|
|
3628
|
-
var _document$createEleme = document.createElement('p'),
|
|
3629
|
-
style = _document$createEleme.style;
|
|
3630
|
-
|
|
3631
|
-
var testProp = 'Transform';
|
|
3632
|
-
|
|
3633
|
-
for (var key in jsCssMap) {
|
|
3634
|
-
if (key + testProp in style) {
|
|
3635
|
-
js = key;
|
|
3636
|
-
css = jsCssMap[key];
|
|
3637
|
-
break;
|
|
3638
|
-
}
|
|
3639
|
-
} // Correctly detect the Edge browser.
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
if (js === 'Webkit' && 'msHyphens' in style) {
|
|
3643
|
-
js = 'ms';
|
|
3644
|
-
css = jsCssMap.ms;
|
|
3645
|
-
browser = 'edge';
|
|
3646
|
-
} // Correctly detect the Safari browser.
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
if (js === 'Webkit' && '-apple-trailing-word' in style) {
|
|
3650
|
-
vendor = 'apple';
|
|
3651
|
-
}
|
|
3652
|
-
}
|
|
3653
|
-
/**
|
|
3654
|
-
* Vendor prefix string for the current browser.
|
|
3655
|
-
*
|
|
3656
|
-
* @type {{js: String, css: String, vendor: String, browser: String}}
|
|
3657
|
-
* @api public
|
|
3658
|
-
*/
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
var prefix = {
|
|
3662
|
-
js: js,
|
|
3663
|
-
css: css,
|
|
3664
|
-
vendor: vendor,
|
|
3665
|
-
browser: browser,
|
|
3666
|
-
isTouch: isTouch
|
|
3667
|
-
};
|
|
3668
|
-
|
|
3669
|
-
/**
|
|
3670
|
-
* Test if a keyframe at-rule should be prefixed or not
|
|
3671
|
-
*
|
|
3672
|
-
* @param {String} vendor prefix string for the current browser.
|
|
3673
|
-
* @return {String}
|
|
3674
|
-
* @api public
|
|
3675
|
-
*/
|
|
3676
|
-
|
|
3677
|
-
function supportedKeyframes(key) {
|
|
3678
|
-
// Keyframes is already prefixed. e.g. key = '@-webkit-keyframes a'
|
|
3679
|
-
if (key[1] === '-') return key; // No need to prefix IE/Edge. Older browsers will ignore unsupported rules.
|
|
3680
|
-
// https://caniuse.com/#search=keyframes
|
|
3681
|
-
|
|
3682
|
-
if (prefix.js === 'ms') return key;
|
|
3683
|
-
return "@" + prefix.css + "keyframes" + key.substr(10);
|
|
3684
|
-
}
|
|
3685
|
-
|
|
3686
|
-
// https://caniuse.com/#search=appearance
|
|
3687
|
-
|
|
3688
|
-
var appearence = {
|
|
3689
|
-
noPrefill: ['appearance'],
|
|
3690
|
-
supportedProperty: function supportedProperty(prop) {
|
|
3691
|
-
if (prop !== 'appearance') return false;
|
|
3692
|
-
if (prefix.js === 'ms') return "-webkit-" + prop;
|
|
3693
|
-
return prefix.css + prop;
|
|
3694
|
-
}
|
|
3695
|
-
};
|
|
3696
|
-
|
|
3697
|
-
// https://caniuse.com/#search=color-adjust
|
|
3698
|
-
|
|
3699
|
-
var colorAdjust = {
|
|
3700
|
-
noPrefill: ['color-adjust'],
|
|
3701
|
-
supportedProperty: function supportedProperty(prop) {
|
|
3702
|
-
if (prop !== 'color-adjust') return false;
|
|
3703
|
-
if (prefix.js === 'Webkit') return prefix.css + "print-" + prop;
|
|
3704
|
-
return prop;
|
|
3705
|
-
}
|
|
3706
|
-
};
|
|
3707
|
-
|
|
3708
|
-
var regExp = /[-\s]+(.)?/g;
|
|
3709
|
-
/**
|
|
3710
|
-
* Replaces the letter with the capital letter
|
|
3711
|
-
*
|
|
3712
|
-
* @param {String} match
|
|
3713
|
-
* @param {String} c
|
|
3714
|
-
* @return {String}
|
|
3715
|
-
* @api private
|
|
3716
|
-
*/
|
|
3717
|
-
|
|
3718
|
-
function toUpper(match, c) {
|
|
3719
|
-
return c ? c.toUpperCase() : '';
|
|
3720
|
-
}
|
|
3721
|
-
/**
|
|
3722
|
-
* Convert dash separated strings to camel-cased.
|
|
3723
|
-
*
|
|
3724
|
-
* @param {String} str
|
|
3725
|
-
* @return {String}
|
|
3726
|
-
* @api private
|
|
3727
|
-
*/
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
function camelize(str) {
|
|
3731
|
-
return str.replace(regExp, toUpper);
|
|
3732
|
-
}
|
|
3733
|
-
|
|
3734
|
-
/**
|
|
3735
|
-
* Convert dash separated strings to pascal cased.
|
|
3736
|
-
*
|
|
3737
|
-
* @param {String} str
|
|
3738
|
-
* @return {String}
|
|
3739
|
-
* @api private
|
|
3740
|
-
*/
|
|
3741
|
-
|
|
3742
|
-
function pascalize(str) {
|
|
3743
|
-
return camelize("-" + str);
|
|
3744
|
-
}
|
|
3745
|
-
|
|
3746
|
-
// but we can use a longhand property instead.
|
|
3747
|
-
// https://caniuse.com/#search=mask
|
|
3748
|
-
|
|
3749
|
-
var mask = {
|
|
3750
|
-
noPrefill: ['mask'],
|
|
3751
|
-
supportedProperty: function supportedProperty(prop, style) {
|
|
3752
|
-
if (!/^mask/.test(prop)) return false;
|
|
3753
|
-
|
|
3754
|
-
if (prefix.js === 'Webkit') {
|
|
3755
|
-
var longhand = 'mask-image';
|
|
3756
|
-
|
|
3757
|
-
if (camelize(longhand) in style) {
|
|
3758
|
-
return prop;
|
|
3759
|
-
}
|
|
3760
|
-
|
|
3761
|
-
if (prefix.js + pascalize(longhand) in style) {
|
|
3762
|
-
return prefix.css + prop;
|
|
3763
|
-
}
|
|
3764
|
-
}
|
|
3765
|
-
|
|
3766
|
-
return prop;
|
|
3767
|
-
}
|
|
3768
|
-
};
|
|
3769
|
-
|
|
3770
|
-
// https://caniuse.com/#search=text-orientation
|
|
3771
|
-
|
|
3772
|
-
var textOrientation = {
|
|
3773
|
-
noPrefill: ['text-orientation'],
|
|
3774
|
-
supportedProperty: function supportedProperty(prop) {
|
|
3775
|
-
if (prop !== 'text-orientation') return false;
|
|
3776
|
-
|
|
3777
|
-
if (prefix.vendor === 'apple' && !prefix.isTouch) {
|
|
3778
|
-
return prefix.css + prop;
|
|
3779
|
-
}
|
|
3780
|
-
|
|
3781
|
-
return prop;
|
|
3782
|
-
}
|
|
3783
|
-
};
|
|
3784
|
-
|
|
3785
|
-
// https://caniuse.com/#search=transform
|
|
3786
|
-
|
|
3787
|
-
var transform = {
|
|
3788
|
-
noPrefill: ['transform'],
|
|
3789
|
-
supportedProperty: function supportedProperty(prop, style, options) {
|
|
3790
|
-
if (prop !== 'transform') return false;
|
|
3791
|
-
|
|
3792
|
-
if (options.transform) {
|
|
3793
|
-
return prop;
|
|
3794
|
-
}
|
|
3795
|
-
|
|
3796
|
-
return prefix.css + prop;
|
|
3797
|
-
}
|
|
3798
|
-
};
|
|
3799
|
-
|
|
3800
|
-
// https://caniuse.com/#search=transition
|
|
3801
|
-
|
|
3802
|
-
var transition = {
|
|
3803
|
-
noPrefill: ['transition'],
|
|
3804
|
-
supportedProperty: function supportedProperty(prop, style, options) {
|
|
3805
|
-
if (prop !== 'transition') return false;
|
|
3806
|
-
|
|
3807
|
-
if (options.transition) {
|
|
3808
|
-
return prop;
|
|
3809
|
-
}
|
|
3810
|
-
|
|
3811
|
-
return prefix.css + prop;
|
|
3812
|
-
}
|
|
3813
|
-
};
|
|
3814
|
-
|
|
3815
|
-
// https://caniuse.com/#search=writing-mode
|
|
3816
|
-
|
|
3817
|
-
var writingMode = {
|
|
3818
|
-
noPrefill: ['writing-mode'],
|
|
3819
|
-
supportedProperty: function supportedProperty(prop) {
|
|
3820
|
-
if (prop !== 'writing-mode') return false;
|
|
3821
|
-
|
|
3822
|
-
if (prefix.js === 'Webkit' || prefix.js === 'ms' && prefix.browser !== 'edge') {
|
|
3823
|
-
return prefix.css + prop;
|
|
3824
|
-
}
|
|
3825
|
-
|
|
3826
|
-
return prop;
|
|
3827
|
-
}
|
|
3828
|
-
};
|
|
3829
|
-
|
|
3830
|
-
// https://caniuse.com/#search=user-select
|
|
3831
|
-
|
|
3832
|
-
var userSelect = {
|
|
3833
|
-
noPrefill: ['user-select'],
|
|
3834
|
-
supportedProperty: function supportedProperty(prop) {
|
|
3835
|
-
if (prop !== 'user-select') return false;
|
|
3836
|
-
|
|
3837
|
-
if (prefix.js === 'Moz' || prefix.js === 'ms' || prefix.vendor === 'apple') {
|
|
3838
|
-
return prefix.css + prop;
|
|
3839
|
-
}
|
|
3840
|
-
|
|
3841
|
-
return prop;
|
|
3842
|
-
}
|
|
3843
|
-
};
|
|
3844
|
-
|
|
3845
|
-
// https://caniuse.com/#search=multicolumn
|
|
3846
|
-
// https://github.com/postcss/autoprefixer/issues/491
|
|
3847
|
-
// https://github.com/postcss/autoprefixer/issues/177
|
|
3848
|
-
|
|
3849
|
-
var breakPropsOld = {
|
|
3850
|
-
supportedProperty: function supportedProperty(prop, style) {
|
|
3851
|
-
if (!/^break-/.test(prop)) return false;
|
|
3852
|
-
|
|
3853
|
-
if (prefix.js === 'Webkit') {
|
|
3854
|
-
var jsProp = "WebkitColumn" + pascalize(prop);
|
|
3855
|
-
return jsProp in style ? prefix.css + "column-" + prop : false;
|
|
3856
|
-
}
|
|
3857
|
-
|
|
3858
|
-
if (prefix.js === 'Moz') {
|
|
3859
|
-
var _jsProp = "page" + pascalize(prop);
|
|
3860
|
-
|
|
3861
|
-
return _jsProp in style ? "page-" + prop : false;
|
|
3862
|
-
}
|
|
3863
|
-
|
|
3864
|
-
return false;
|
|
3865
|
-
}
|
|
3866
|
-
};
|
|
3867
|
-
|
|
3868
|
-
// See https://github.com/postcss/autoprefixer/issues/324.
|
|
3869
|
-
|
|
3870
|
-
var inlineLogicalOld = {
|
|
3871
|
-
supportedProperty: function supportedProperty(prop, style) {
|
|
3872
|
-
if (!/^(border|margin|padding)-inline/.test(prop)) return false;
|
|
3873
|
-
if (prefix.js === 'Moz') return prop;
|
|
3874
|
-
var newProp = prop.replace('-inline', '');
|
|
3875
|
-
return prefix.js + pascalize(newProp) in style ? prefix.css + newProp : false;
|
|
3876
|
-
}
|
|
3877
|
-
};
|
|
3878
|
-
|
|
3879
|
-
// Camelization is required because we can't test using.
|
|
3880
|
-
// CSS syntax for e.g. in FF.
|
|
3881
|
-
|
|
3882
|
-
var unprefixed = {
|
|
3883
|
-
supportedProperty: function supportedProperty(prop, style) {
|
|
3884
|
-
return camelize(prop) in style ? prop : false;
|
|
3885
|
-
}
|
|
3886
|
-
};
|
|
3887
|
-
|
|
3888
|
-
var prefixed = {
|
|
3889
|
-
supportedProperty: function supportedProperty(prop, style) {
|
|
3890
|
-
var pascalized = pascalize(prop); // Return custom CSS variable without prefixing.
|
|
3891
|
-
|
|
3892
|
-
if (prop[0] === '-') return prop; // Return already prefixed value without prefixing.
|
|
3893
|
-
|
|
3894
|
-
if (prop[0] === '-' && prop[1] === '-') return prop;
|
|
3895
|
-
if (prefix.js + pascalized in style) return prefix.css + prop; // Try webkit fallback.
|
|
3896
|
-
|
|
3897
|
-
if (prefix.js !== 'Webkit' && "Webkit" + pascalized in style) return "-webkit-" + prop;
|
|
3898
|
-
return false;
|
|
3899
|
-
}
|
|
3900
|
-
};
|
|
3901
|
-
|
|
3902
|
-
// https://caniuse.com/#search=scroll-snap
|
|
3903
|
-
|
|
3904
|
-
var scrollSnap = {
|
|
3905
|
-
supportedProperty: function supportedProperty(prop) {
|
|
3906
|
-
if (prop.substring(0, 11) !== 'scroll-snap') return false;
|
|
3907
|
-
|
|
3908
|
-
if (prefix.js === 'ms') {
|
|
3909
|
-
return "" + prefix.css + prop;
|
|
3910
|
-
}
|
|
3911
|
-
|
|
3912
|
-
return prop;
|
|
3913
|
-
}
|
|
3914
|
-
};
|
|
3915
|
-
|
|
3916
|
-
// https://caniuse.com/#search=overscroll-behavior
|
|
3917
|
-
|
|
3918
|
-
var overscrollBehavior = {
|
|
3919
|
-
supportedProperty: function supportedProperty(prop) {
|
|
3920
|
-
if (prop !== 'overscroll-behavior') return false;
|
|
3921
|
-
|
|
3922
|
-
if (prefix.js === 'ms') {
|
|
3923
|
-
return prefix.css + "scroll-chaining";
|
|
3924
|
-
}
|
|
3925
|
-
|
|
3926
|
-
return prop;
|
|
3927
|
-
}
|
|
3928
|
-
};
|
|
3929
|
-
|
|
3930
|
-
var propMap = {
|
|
3931
|
-
'flex-grow': 'flex-positive',
|
|
3932
|
-
'flex-shrink': 'flex-negative',
|
|
3933
|
-
'flex-basis': 'flex-preferred-size',
|
|
3934
|
-
'justify-content': 'flex-pack',
|
|
3935
|
-
order: 'flex-order',
|
|
3936
|
-
'align-items': 'flex-align',
|
|
3937
|
-
'align-content': 'flex-line-pack' // 'align-self' is handled by 'align-self' plugin.
|
|
3938
|
-
|
|
3939
|
-
}; // Support old flex spec from 2012.
|
|
3940
|
-
|
|
3941
|
-
var flex2012 = {
|
|
3942
|
-
supportedProperty: function supportedProperty(prop, style) {
|
|
3943
|
-
var newProp = propMap[prop];
|
|
3944
|
-
if (!newProp) return false;
|
|
3945
|
-
return prefix.js + pascalize(newProp) in style ? prefix.css + newProp : false;
|
|
3946
|
-
}
|
|
3947
|
-
};
|
|
3948
|
-
|
|
3949
|
-
var propMap$1 = {
|
|
3950
|
-
flex: 'box-flex',
|
|
3951
|
-
'flex-grow': 'box-flex',
|
|
3952
|
-
'flex-direction': ['box-orient', 'box-direction'],
|
|
3953
|
-
order: 'box-ordinal-group',
|
|
3954
|
-
'align-items': 'box-align',
|
|
3955
|
-
'flex-flow': ['box-orient', 'box-direction'],
|
|
3956
|
-
'justify-content': 'box-pack'
|
|
3957
|
-
};
|
|
3958
|
-
var propKeys = Object.keys(propMap$1);
|
|
3959
|
-
|
|
3960
|
-
var prefixCss = function prefixCss(p) {
|
|
3961
|
-
return prefix.css + p;
|
|
3962
|
-
}; // Support old flex spec from 2009.
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
var flex2009 = {
|
|
3966
|
-
supportedProperty: function supportedProperty(prop, style, _ref) {
|
|
3967
|
-
var multiple = _ref.multiple;
|
|
3968
|
-
|
|
3969
|
-
if (propKeys.indexOf(prop) > -1) {
|
|
3970
|
-
var newProp = propMap$1[prop];
|
|
3971
|
-
|
|
3972
|
-
if (!Array.isArray(newProp)) {
|
|
3973
|
-
return prefix.js + pascalize(newProp) in style ? prefix.css + newProp : false;
|
|
3974
|
-
}
|
|
3975
|
-
|
|
3976
|
-
if (!multiple) return false;
|
|
3977
|
-
|
|
3978
|
-
for (var i = 0; i < newProp.length; i++) {
|
|
3979
|
-
if (!(prefix.js + pascalize(newProp[0]) in style)) {
|
|
3980
|
-
return false;
|
|
3981
|
-
}
|
|
3982
|
-
}
|
|
3983
|
-
|
|
3984
|
-
return newProp.map(prefixCss);
|
|
3985
|
-
}
|
|
3986
|
-
|
|
3987
|
-
return false;
|
|
3988
|
-
}
|
|
3989
|
-
};
|
|
3990
|
-
|
|
3991
|
-
// plugins = [
|
|
3992
|
-
// ...plugins,
|
|
3993
|
-
// breakPropsOld,
|
|
3994
|
-
// inlineLogicalOld,
|
|
3995
|
-
// unprefixed,
|
|
3996
|
-
// prefixed,
|
|
3997
|
-
// scrollSnap,
|
|
3998
|
-
// flex2012,
|
|
3999
|
-
// flex2009
|
|
4000
|
-
// ]
|
|
4001
|
-
// Plugins without 'noPrefill' value, going last.
|
|
4002
|
-
// 'flex-*' plugins should be at the bottom.
|
|
4003
|
-
// 'flex2009' going after 'flex2012'.
|
|
4004
|
-
// 'prefixed' going after 'unprefixed'
|
|
4005
|
-
|
|
4006
|
-
var plugins$1 = [appearence, colorAdjust, mask, textOrientation, transform, transition, writingMode, userSelect, breakPropsOld, inlineLogicalOld, unprefixed, prefixed, scrollSnap, overscrollBehavior, flex2012, flex2009];
|
|
4007
|
-
var propertyDetectors = plugins$1.filter(function (p) {
|
|
4008
|
-
return p.supportedProperty;
|
|
4009
|
-
}).map(function (p) {
|
|
4010
|
-
return p.supportedProperty;
|
|
4011
|
-
});
|
|
4012
|
-
var noPrefill = plugins$1.filter(function (p) {
|
|
4013
|
-
return p.noPrefill;
|
|
4014
|
-
}).reduce(function (a, p) {
|
|
4015
|
-
a.push.apply(a, _toConsumableArray(p.noPrefill));
|
|
4016
|
-
return a;
|
|
4017
|
-
}, []);
|
|
4018
|
-
|
|
4019
|
-
var el;
|
|
4020
|
-
var cache$1 = {};
|
|
4021
|
-
|
|
4022
|
-
if (isBrowser) {
|
|
4023
|
-
el = document.createElement('p'); // We test every property on vendor prefix requirement.
|
|
4024
|
-
// Once tested, result is cached. It gives us up to 70% perf boost.
|
|
4025
|
-
// http://jsperf.com/element-style-object-access-vs-plain-object
|
|
4026
|
-
//
|
|
4027
|
-
// Prefill cache with known css properties to reduce amount of
|
|
4028
|
-
// properties we need to feature test at runtime.
|
|
4029
|
-
// http://davidwalsh.name/vendor-prefix
|
|
4030
|
-
|
|
4031
|
-
var computed = window.getComputedStyle(document.documentElement, '');
|
|
4032
|
-
|
|
4033
|
-
for (var key$1 in computed) {
|
|
4034
|
-
// eslint-disable-next-line no-restricted-globals
|
|
4035
|
-
if (!isNaN(key$1)) cache$1[computed[key$1]] = computed[key$1];
|
|
4036
|
-
} // Properties that cannot be correctly detected using the
|
|
4037
|
-
// cache prefill method.
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
noPrefill.forEach(function (x) {
|
|
4041
|
-
return delete cache$1[x];
|
|
4042
|
-
});
|
|
4043
|
-
}
|
|
4044
|
-
/**
|
|
4045
|
-
* Test if a property is supported, returns supported property with vendor
|
|
4046
|
-
* prefix if required. Returns `false` if not supported.
|
|
4047
|
-
*
|
|
4048
|
-
* @param {String} prop dash separated
|
|
4049
|
-
* @param {Object} [options]
|
|
4050
|
-
* @return {String|Boolean}
|
|
4051
|
-
* @api public
|
|
4052
|
-
*/
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
function supportedProperty(prop, options) {
|
|
4056
|
-
if (options === void 0) {
|
|
4057
|
-
options = {};
|
|
4058
|
-
}
|
|
4059
|
-
|
|
4060
|
-
// For server-side rendering.
|
|
4061
|
-
if (!el) return prop; // Remove cache for benchmark tests or return property from the cache.
|
|
4062
|
-
|
|
4063
|
-
if ( cache$1[prop] != null) {
|
|
4064
|
-
return cache$1[prop];
|
|
4065
|
-
} // Check if 'transition' or 'transform' natively supported in browser.
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
if (prop === 'transition' || prop === 'transform') {
|
|
4069
|
-
options[prop] = prop in el.style;
|
|
4070
|
-
} // Find a plugin for current prefix property.
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
for (var i = 0; i < propertyDetectors.length; i++) {
|
|
4074
|
-
cache$1[prop] = propertyDetectors[i](prop, el.style, options); // Break loop, if value found.
|
|
4075
|
-
|
|
4076
|
-
if (cache$1[prop]) break;
|
|
4077
|
-
} // Reset styles for current property.
|
|
4078
|
-
// Firefox can even throw an error for invalid properties, e.g., "0".
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
try {
|
|
4082
|
-
el.style[prop] = '';
|
|
4083
|
-
} catch (err) {
|
|
4084
|
-
return false;
|
|
4085
|
-
}
|
|
4086
|
-
|
|
4087
|
-
return cache$1[prop];
|
|
4088
|
-
}
|
|
4089
|
-
|
|
4090
|
-
var cache$1$1 = {};
|
|
4091
|
-
var transitionProperties = {
|
|
4092
|
-
transition: 1,
|
|
4093
|
-
'transition-property': 1,
|
|
4094
|
-
'-webkit-transition': 1,
|
|
4095
|
-
'-webkit-transition-property': 1
|
|
4096
|
-
};
|
|
4097
|
-
var transPropsRegExp = /(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;
|
|
4098
|
-
var el$1;
|
|
4099
|
-
/**
|
|
4100
|
-
* Returns prefixed value transition/transform if needed.
|
|
4101
|
-
*
|
|
4102
|
-
* @param {String} match
|
|
4103
|
-
* @param {String} p1
|
|
4104
|
-
* @param {String} p2
|
|
4105
|
-
* @return {String}
|
|
4106
|
-
* @api private
|
|
4107
|
-
*/
|
|
4108
|
-
|
|
4109
|
-
function prefixTransitionCallback(match, p1, p2) {
|
|
4110
|
-
if (p1 === 'var') return 'var';
|
|
4111
|
-
if (p1 === 'all') return 'all';
|
|
4112
|
-
if (p2 === 'all') return ', all';
|
|
4113
|
-
var prefixedValue = p1 ? supportedProperty(p1) : ", " + supportedProperty(p2);
|
|
4114
|
-
if (!prefixedValue) return p1 || p2;
|
|
4115
|
-
return prefixedValue;
|
|
4116
|
-
}
|
|
4117
|
-
|
|
4118
|
-
if (isBrowser) el$1 = document.createElement('p');
|
|
4119
|
-
/**
|
|
4120
|
-
* Returns prefixed value if needed. Returns `false` if value is not supported.
|
|
4121
|
-
*
|
|
4122
|
-
* @param {String} property
|
|
4123
|
-
* @param {String} value
|
|
4124
|
-
* @return {String|Boolean}
|
|
4125
|
-
* @api public
|
|
4126
|
-
*/
|
|
4127
|
-
|
|
4128
|
-
function supportedValue(property, value) {
|
|
4129
|
-
// For server-side rendering.
|
|
4130
|
-
var prefixedValue = value;
|
|
4131
|
-
if (!el$1 || property === 'content') return value; // It is a string or a number as a string like '1'.
|
|
4132
|
-
// We want only prefixable values here.
|
|
4133
|
-
// eslint-disable-next-line no-restricted-globals
|
|
4134
|
-
|
|
4135
|
-
if (typeof prefixedValue !== 'string' || !isNaN(parseInt(prefixedValue, 10))) {
|
|
4136
|
-
return prefixedValue;
|
|
4137
|
-
} // Create cache key for current value.
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
var cacheKey = property + prefixedValue; // Remove cache for benchmark tests or return value from cache.
|
|
4141
|
-
|
|
4142
|
-
if ( cache$1$1[cacheKey] != null) {
|
|
4143
|
-
return cache$1$1[cacheKey];
|
|
4144
|
-
} // IE can even throw an error in some cases, for e.g. style.content = 'bar'.
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
try {
|
|
4148
|
-
// Test value as it is.
|
|
4149
|
-
el$1.style[property] = prefixedValue;
|
|
4150
|
-
} catch (err) {
|
|
4151
|
-
// Return false if value not supported.
|
|
4152
|
-
cache$1$1[cacheKey] = false;
|
|
4153
|
-
return false;
|
|
4154
|
-
} // If 'transition' or 'transition-property' property.
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
if (transitionProperties[property]) {
|
|
4158
|
-
prefixedValue = prefixedValue.replace(transPropsRegExp, prefixTransitionCallback);
|
|
4159
|
-
} else if (el$1.style[property] === '') {
|
|
4160
|
-
// Value with a vendor prefix.
|
|
4161
|
-
prefixedValue = prefix.css + prefixedValue; // Hardcode test to convert "flex" to "-ms-flexbox" for IE10.
|
|
4162
|
-
|
|
4163
|
-
if (prefixedValue === '-ms-flex') el$1.style[property] = '-ms-flexbox'; // Test prefixed value.
|
|
4164
|
-
|
|
4165
|
-
el$1.style[property] = prefixedValue; // Return false if value not supported.
|
|
4166
|
-
|
|
4167
|
-
if (el$1.style[property] === '') {
|
|
4168
|
-
cache$1$1[cacheKey] = false;
|
|
4169
|
-
return false;
|
|
4170
|
-
}
|
|
4171
|
-
} // Reset styles for current property.
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
el$1.style[property] = ''; // Write current value to cache.
|
|
4175
|
-
|
|
4176
|
-
cache$1$1[cacheKey] = prefixedValue;
|
|
4177
|
-
return cache$1$1[cacheKey];
|
|
4178
|
-
}
|
|
4179
|
-
|
|
4180
|
-
/**
|
|
4181
|
-
* Add vendor prefix to a property name when needed.
|
|
4182
|
-
*
|
|
4183
|
-
* @api public
|
|
4184
|
-
*/
|
|
4185
|
-
|
|
4186
|
-
function jssVendorPrefixer() {
|
|
4187
|
-
function onProcessRule(rule) {
|
|
4188
|
-
if (rule.type === 'keyframes') {
|
|
4189
|
-
var atRule = rule;
|
|
4190
|
-
atRule.at = supportedKeyframes(atRule.at);
|
|
4191
|
-
}
|
|
4192
|
-
}
|
|
4193
|
-
|
|
4194
|
-
function prefixStyle(style) {
|
|
4195
|
-
for (var prop in style) {
|
|
4196
|
-
var value = style[prop];
|
|
4197
|
-
|
|
4198
|
-
if (prop === 'fallbacks' && Array.isArray(value)) {
|
|
4199
|
-
style[prop] = value.map(prefixStyle);
|
|
4200
|
-
continue;
|
|
4201
|
-
}
|
|
4202
|
-
|
|
4203
|
-
var changeProp = false;
|
|
4204
|
-
var supportedProp = supportedProperty(prop);
|
|
4205
|
-
if (supportedProp && supportedProp !== prop) changeProp = true;
|
|
4206
|
-
var changeValue = false;
|
|
4207
|
-
var supportedValue$1 = supportedValue(supportedProp, toCssValue(value));
|
|
4208
|
-
if (supportedValue$1 && supportedValue$1 !== value) changeValue = true;
|
|
4209
|
-
|
|
4210
|
-
if (changeProp || changeValue) {
|
|
4211
|
-
if (changeProp) delete style[prop];
|
|
4212
|
-
style[supportedProp || prop] = supportedValue$1 || value;
|
|
4213
|
-
}
|
|
4214
|
-
}
|
|
4215
|
-
|
|
4216
|
-
return style;
|
|
4217
|
-
}
|
|
4218
|
-
|
|
4219
|
-
function onProcessStyle(style, rule) {
|
|
4220
|
-
if (rule.type !== 'style') return style;
|
|
4221
|
-
return prefixStyle(style);
|
|
4222
|
-
}
|
|
4223
|
-
|
|
4224
|
-
function onChangeValue(value, prop) {
|
|
4225
|
-
return supportedValue(prop, toCssValue(value)) || value;
|
|
4226
|
-
}
|
|
4227
|
-
|
|
4228
|
-
return {
|
|
4229
|
-
onProcessRule: onProcessRule,
|
|
4230
|
-
onProcessStyle: onProcessStyle,
|
|
4231
|
-
onChangeValue: onChangeValue
|
|
4232
|
-
};
|
|
4233
|
-
}
|
|
4234
|
-
|
|
4235
|
-
/**
|
|
4236
|
-
* Sort props by length.
|
|
4237
|
-
*/
|
|
4238
|
-
function jssPropsSort() {
|
|
4239
|
-
var sort = function sort(prop0, prop1) {
|
|
4240
|
-
if (prop0.length === prop1.length) {
|
|
4241
|
-
return prop0 > prop1 ? 1 : -1;
|
|
4242
|
-
}
|
|
4243
|
-
|
|
4244
|
-
return prop0.length - prop1.length;
|
|
4245
|
-
};
|
|
4246
|
-
|
|
4247
|
-
return {
|
|
4248
|
-
onProcessStyle: function onProcessStyle(style, rule) {
|
|
4249
|
-
if (rule.type !== 'style') return style;
|
|
4250
|
-
var newStyle = {};
|
|
4251
|
-
var props = Object.keys(style).sort(sort);
|
|
4252
|
-
|
|
4253
|
-
for (var i = 0; i < props.length; i++) {
|
|
4254
|
-
newStyle[props[i]] = style[props[i]];
|
|
4255
|
-
}
|
|
4256
|
-
|
|
4257
|
-
return newStyle;
|
|
4258
|
-
}
|
|
4259
|
-
};
|
|
4260
|
-
}
|
|
4261
|
-
|
|
4262
|
-
var create$1 = function create(options) {
|
|
4263
|
-
if (options === void 0) {
|
|
4264
|
-
options = {};
|
|
4265
|
-
}
|
|
4266
|
-
|
|
4267
|
-
return {
|
|
4268
|
-
plugins: [functionPlugin(), observablePlugin(options.observable), templatePlugin(), jssGlobal(), jssExtend(), jssNested(), jssCompose(), camelCase(), defaultUnit(options.defaultUnit), jssExpand(), jssVendorPrefixer(), jssPropsSort()]
|
|
4269
|
-
};
|
|
4270
|
-
};
|
|
4271
|
-
|
|
4272
|
-
exports.create = create$1;
|
|
4273
|
-
exports.jss = jss;
|