@saasquatch/mint-components 2.0.0-9 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{IndirectTaxDetailsView-e5f70b8b.js → IndirectTaxDetailsView-3e88d710.js} +2 -2
- package/dist/cjs/{ShadowViewAddon-016bebfd.js → ShadowViewAddon-646dec73.js} +13 -9
- package/dist/cjs/{copy-text-view-51c8ee5d.js → copy-text-view-322436c2.js} +2 -8
- package/dist/cjs/{usePayoutStatus-fe32dd1a.js → data-16106637.js} +142 -0
- package/dist/cjs/{extractProps-fd93ba62.js → extractProps-e9c55ba8.js} +14 -0
- package/dist/cjs/{global-8bba5b3a.js → global-39cb0afc.js} +745 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mint-components.cjs.js +2 -2
- package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +82 -45
- package/dist/cjs/{sqm-base-registration-form-view-8847804c.js → sqm-base-registration-form-view-69a4b615.js} +10 -4
- package/dist/cjs/{sqm-big-stat_46.cjs.entry.js → sqm-big-stat_47.cjs.entry.js} +1324 -26
- package/dist/cjs/sqm-code-verification.cjs.entry.js +2 -2
- package/dist/cjs/sqm-context-router.cjs.entry.js +1 -1
- package/dist/cjs/sqm-email-verification.cjs.entry.js +2 -2
- package/dist/cjs/sqm-empty_4.cjs.entry.js +3 -3
- package/dist/cjs/sqm-form-message.cjs.entry.js +9 -5
- package/dist/cjs/sqm-invoice-table-data-cell_5.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-lead-checkbox-field-view-340acad0.js → sqm-lead-checkbox-field-view-f1c46d4b.js} +1 -1
- package/dist/cjs/sqm-lead-checkbox-field.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-lead-input-field-view-06ed3632.js → sqm-lead-input-field-view-6d388092.js} +1 -1
- package/dist/cjs/sqm-lead-input-field.cjs.entry.js +4 -4
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +1 -1
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +1 -1
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +1 -1
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +3 -3
- package/dist/cjs/sqm-password-field.cjs.entry.js +1 -1
- package/dist/cjs/sqm-popup-container.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-container-view-ca86b9e5.js → sqm-portal-container-view-07e4343f.js} +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-5518eb0d.js → sqm-portal-email-verification-view-6b17e545.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
- package/dist/cjs/sqm-portal-google-login.cjs.entry.js +2 -2
- package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +27 -19
- package/dist/cjs/{sqm-portal-profile-view-615e6975.js → sqm-portal-profile-view-845367bb.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +3 -3
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +1 -1
- package/dist/cjs/sqm-qr-code.cjs.entry.js +1 -1
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +3 -4
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +45 -26
- package/dist/cjs/sqm-tabs.cjs.entry.js +1 -4
- package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +3 -2
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +3 -4
- package/dist/cjs/{useLeadFormState-fd0445f9.js → useLeadFormState-b355759b.js} +1 -1
- package/dist/cjs/{usePortalLogin-353f776a.js → usePortalLogin-1c022d8d.js} +1 -1
- package/dist/cjs/{utils-0d3ac0fb.js → utils-6847bc06.js} +0 -4
- package/dist/cjs/{utils-83d125fa.js → utils-ac82f977.js} +1 -1
- package/dist/collection/components/sqm-base-registration/BaseRegistrationForm.stories.js +2 -2
- package/dist/collection/components/sqm-base-registration/sqm-base-registration-form-view.js +10 -4
- package/dist/collection/components/sqm-big-stat/sqm-big-stat-view.js +0 -2
- package/dist/collection/components/sqm-big-stat/useBigStat.js +7 -1
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +1 -1
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field.js +1 -1
- package/dist/collection/components/sqm-form-message/FormMessage.stories.js +14 -0
- package/dist/collection/components/sqm-form-message/sqm-form-message.css +7 -0
- package/dist/collection/components/sqm-form-message/sqm-form-message.js +26 -4
- package/dist/collection/components/sqm-hero/sqm-hero.js +4 -4
- package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +2 -2
- package/dist/collection/components/sqm-input-field/sqm-input-field.js +1 -1
- package/dist/collection/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.js +1 -1
- package/dist/collection/components/sqm-name-fields/NameFields.stories.js +2 -0
- package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +2 -2
- package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +31 -1
- package/dist/collection/components/sqm-name-fields/useNameFields.js +1 -0
- package/dist/collection/components/sqm-password-field/sqm-password-field.js +2 -2
- package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +1 -1
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer.js +1 -1
- package/dist/collection/components/sqm-portal-forgot-password/PortalForgotPassword.stories.js +1 -0
- package/dist/collection/components/sqm-portal-google-registration-form/PortalGoogleRegistrationForm.stories.js +1 -0
- package/dist/collection/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.js +10 -7
- package/dist/collection/components/sqm-portal-google-registration-form/usePortalGoogleRegistrationForm.js +23 -13
- package/dist/collection/components/sqm-referred-registration/sqm-referred-registration.js +2 -2
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +2 -3
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +0 -1
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +0 -1
- package/dist/collection/components/sqm-tabs/sqm-tabs-view.js +0 -3
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +2 -2
- package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +1 -1
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +10 -4
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +6 -10
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +8 -32
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +2 -3
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +67 -26
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +0 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +1 -4
- package/dist/collection/components/views/copy-text-view.js +2 -8
- package/dist/collection/global/global.js +14 -3
- package/dist/collection/global/styles.v1.js +733 -0
- package/dist/collection/global/styles.v1.ts +735 -0
- package/dist/collection/utils/utils.js +0 -1
- package/dist/esm/{IndirectTaxDetailsView-0a57b622.js → IndirectTaxDetailsView-e5d8767d.js} +2 -2
- package/dist/esm/{ShadowViewAddon-4cde160a.js → ShadowViewAddon-5928ca9d.js} +13 -9
- package/dist/esm/{copy-text-view-83b09456.js → copy-text-view-fac47254.js} +2 -8
- package/dist/esm/{usePayoutStatus-42cc6a2c.js → data-acdb790f.js} +128 -1
- package/dist/esm/{extractProps-ae1afbb3.js → extractProps-54064fb0.js} +14 -1
- package/dist/esm/{global-1099f20d.js → global-943536b9.js} +745 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mint-components.js +2 -2
- package/dist/esm/sqm-banking-info-form_10.entry.js +75 -38
- package/dist/esm/{sqm-base-registration-form-view-193f1721.js → sqm-base-registration-form-view-9e97d8b4.js} +10 -4
- package/dist/esm/{sqm-big-stat_46.entry.js → sqm-big-stat_47.entry.js} +1322 -25
- package/dist/esm/sqm-code-verification.entry.js +2 -2
- package/dist/esm/sqm-context-router.entry.js +1 -1
- package/dist/esm/sqm-email-verification.entry.js +2 -2
- package/dist/esm/sqm-empty_4.entry.js +3 -3
- package/dist/esm/sqm-form-message.entry.js +9 -5
- package/dist/esm/sqm-invoice-table-data-cell_5.entry.js +1 -1
- package/dist/esm/{sqm-lead-checkbox-field-view-cbafee07.js → sqm-lead-checkbox-field-view-adcc49c0.js} +1 -1
- package/dist/esm/sqm-lead-checkbox-field.entry.js +4 -4
- package/dist/esm/{sqm-lead-input-field-view-f3775c28.js → sqm-lead-input-field-view-c0b5aed5.js} +1 -1
- package/dist/esm/sqm-lead-input-field.entry.js +4 -4
- package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm/sqm-pagination_3.entry.js +3 -3
- package/dist/esm/sqm-password-field.entry.js +1 -1
- package/dist/esm/sqm-popup-container.entry.js +1 -1
- package/dist/esm/{sqm-portal-container-view-16309b22.js → sqm-portal-container-view-176e92e3.js} +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-7d86299c.js → sqm-portal-email-verification-view-8ceb6302.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
- package/dist/esm/sqm-portal-google-login.entry.js +2 -2
- package/dist/esm/sqm-portal-google-registration-form.entry.js +27 -19
- package/dist/esm/{sqm-portal-profile-view-3ed13e4d.js → sqm-portal-profile-view-2ec60449.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +3 -3
- package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm/sqm-qr-code.entry.js +1 -1
- package/dist/esm/sqm-referral-table_11.entry.js +2 -2
- package/dist/esm/sqm-rewards-table_9.entry.js +3 -4
- package/dist/esm/sqm-stencilbook.entry.js +45 -26
- package/dist/esm/sqm-tabs.entry.js +1 -4
- package/dist/esm/sqm-widget-verification-controller.entry.js +3 -2
- package/dist/esm/sqm-widget-verification.entry.js +2 -3
- package/dist/esm/{useLeadFormState-c379e5d7.js → useLeadFormState-9a652a42.js} +1 -1
- package/dist/esm/{usePortalLogin-95814943.js → usePortalLogin-f95bbc67.js} +1 -1
- package/dist/esm/{utils-84b4b092.js → utils-334c1e34.js} +0 -4
- package/dist/esm/{utils-6122971b.js → utils-f27e62dc.js} +1 -1
- package/dist/esm-es5/{IndirectTaxDetailsView-0a57b622.js → IndirectTaxDetailsView-e5d8767d.js} +1 -1
- package/dist/esm-es5/{ShadowViewAddon-4cde160a.js → ShadowViewAddon-5928ca9d.js} +1 -1
- package/dist/esm-es5/data-acdb790f.js +6 -0
- package/dist/esm-es5/extractProps-54064fb0.js +1 -0
- package/dist/esm-es5/{global-1099f20d.js → global-943536b9.js} +4 -4
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/esm-es5/sqm-base-registration-form-view-9e97d8b4.js +1 -0
- package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -0
- package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-context-router.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-form-message.entry.js +1 -1
- package/dist/esm-es5/sqm-invoice-table-data-cell_5.entry.js +1 -1
- package/dist/esm-es5/{sqm-lead-checkbox-field-view-cbafee07.js → sqm-lead-checkbox-field-view-adcc49c0.js} +1 -1
- package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
- package/dist/esm-es5/{sqm-lead-input-field-view-f3775c28.js → sqm-lead-input-field-view-c0b5aed5.js} +1 -1
- package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
- package/dist/esm-es5/sqm-password-field.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-container-view-16309b22.js → sqm-portal-container-view-176e92e3.js} +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-7d86299c.js → sqm-portal-email-verification-view-8ceb6302.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-google-login.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-3ed13e4d.js → sqm-portal-profile-view-2ec60449.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tabs.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
- package/dist/esm-es5/{useLeadFormState-c379e5d7.js → useLeadFormState-9a652a42.js} +1 -1
- package/dist/esm-es5/{usePortalLogin-95814943.js → usePortalLogin-f95bbc67.js} +1 -1
- package/dist/esm-es5/utils-334c1e34.js +1 -0
- package/dist/esm-es5/{utils-6122971b.js → utils-f27e62dc.js} +1 -1
- package/dist/mint-components/global/styles.v1.ts +735 -0
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/p-06b4fa6a.entry.js +273 -0
- package/dist/mint-components/p-0797a946.js +1 -0
- package/dist/mint-components/{p-aa08457e.system.js → p-08b373b9.system.js} +1 -1
- package/dist/mint-components/{p-6b0f79d1.system.entry.js → p-0ac84da5.system.entry.js} +1 -1
- package/dist/mint-components/{p-0ea4d6a1.system.entry.js → p-0b9b1b36.system.entry.js} +1 -1
- package/dist/mint-components/{p-7bae9bb7.system.entry.js → p-0cb51ea1.system.entry.js} +1 -1
- package/dist/mint-components/p-11927355.system.entry.js +1 -0
- package/dist/mint-components/{p-61157c6a.entry.js → p-124af9d6.entry.js} +1 -1
- package/dist/mint-components/{p-d4edce6c.system.entry.js → p-19de8749.system.entry.js} +1 -1
- package/dist/mint-components/{p-7b8cd420.system.entry.js → p-1e406d04.system.entry.js} +1 -1
- package/dist/mint-components/{p-c6fa4cc5.system.js → p-20c40fdf.system.js} +1 -1
- package/dist/mint-components/{p-ab79297a.entry.js → p-20f8e7ca.entry.js} +6 -6
- package/dist/mint-components/{p-6d5bd95a.js → p-252465eb.js} +1 -1
- package/dist/mint-components/{p-eba70d67.system.entry.js → p-2700136f.system.entry.js} +1 -1
- package/dist/mint-components/{p-3bf5cd51.entry.js → p-2fd2f22b.entry.js} +1 -1
- package/dist/mint-components/{p-67aa0b2d.entry.js → p-30278955.entry.js} +1 -1
- package/dist/mint-components/p-37ef2ce1.entry.js +1 -0
- package/dist/mint-components/{p-aa8c6332.js → p-38c4653d.js} +1 -1
- package/dist/mint-components/{p-2ff72acc.entry.js → p-3b46fae5.entry.js} +2 -2
- package/dist/mint-components/{p-511c87ce.system.entry.js → p-3fa99fea.system.entry.js} +1 -1
- package/dist/mint-components/{p-e711d0e9.js → p-44fc6029.js} +1 -1
- package/dist/mint-components/p-469a6450.system.js +6 -0
- package/dist/mint-components/p-478ad7c8.system.entry.js +1 -0
- package/dist/mint-components/p-51a6a779.js +1 -0
- package/dist/mint-components/p-53b49d27.system.js +1 -0
- package/dist/mint-components/{p-2623b232.system.entry.js → p-54c250de.system.entry.js} +1 -1
- package/dist/mint-components/{p-4ffc5bce.js → p-58b668a0.js} +4 -4
- package/dist/mint-components/{p-f370bddc.entry.js → p-58f4bf7a.entry.js} +1 -1
- package/dist/mint-components/{p-4c811d12.entry.js → p-5a3e2966.entry.js} +1 -1
- package/dist/mint-components/{p-c86f64ad.system.entry.js → p-5b7a896e.system.entry.js} +1 -1
- package/dist/mint-components/{p-06f13966.system.entry.js → p-5bb24669.system.entry.js} +1 -1
- package/dist/mint-components/p-6333265f.system.js +1 -0
- package/dist/mint-components/{p-a9ad7fb2.system.entry.js → p-674d9089.system.entry.js} +1 -1
- package/dist/mint-components/{p-29f0c87d.entry.js → p-6a0ddee0.entry.js} +1 -1
- package/dist/mint-components/{p-c85f204b.system.js → p-6b55555b.system.js} +1 -1
- package/dist/mint-components/{p-f0eae4e6.system.js → p-6dd86003.system.js} +1 -1
- package/dist/mint-components/{p-b55002dc.system.entry.js → p-72b914b9.system.entry.js} +1 -1
- package/dist/mint-components/{p-e110688b.entry.js → p-735c9185.entry.js} +2 -2
- package/dist/mint-components/{p-433e7458.entry.js → p-7e323f2c.entry.js} +1 -1
- package/dist/mint-components/p-80569911.system.js +1 -0
- package/dist/mint-components/{p-c531cc75.entry.js → p-85029918.entry.js} +1 -1
- package/dist/mint-components/{p-0caad0db.entry.js → p-8677688c.entry.js} +1 -1
- package/dist/mint-components/{p-ab018deb.entry.js → p-8931d05e.entry.js} +2 -2
- package/dist/mint-components/{p-b487cb00.system.entry.js → p-8afb47c5.system.entry.js} +1 -1
- package/dist/mint-components/{p-4250b06d.entry.js → p-8e913ce5.entry.js} +1 -1
- package/dist/mint-components/p-8ea16fb6.js +1233 -0
- package/dist/mint-components/{p-ed16b35a.js → p-946f8a2c.js} +1 -1
- package/dist/mint-components/{p-0d21194c.entry.js → p-94ae86fc.entry.js} +1 -1
- package/dist/mint-components/{p-1fa9ef02.js → p-9580aac3.js} +1 -1
- package/dist/mint-components/p-95b6e903.entry.js +1 -0
- package/dist/mint-components/p-9ba07029.system.entry.js +1 -0
- package/dist/mint-components/{p-6dc742bc.js → p-9ec99ced.js} +1 -1
- package/dist/mint-components/{p-cb845a3a.system.entry.js → p-9f57e731.system.entry.js} +1 -1
- package/dist/mint-components/{p-00bc7211.js → p-a1b3f61a.js} +1 -1
- package/dist/mint-components/{p-74f43a08.system.js → p-a275725a.system.js} +1 -1
- package/dist/mint-components/{p-22a9114f.system.entry.js → p-a30d7069.system.entry.js} +1 -1
- package/dist/mint-components/{p-4c9d80e4.entry.js → p-a32afaaa.entry.js} +1 -1
- package/dist/mint-components/p-a6f4fb03.system.js +1 -0
- package/dist/mint-components/{p-1c6ef258.system.entry.js → p-ac86903a.system.entry.js} +1 -1
- package/dist/mint-components/p-ac9138fd.entry.js +1 -0
- package/dist/mint-components/{p-bfd77a07.entry.js → p-b00e8365.entry.js} +1 -1
- package/dist/mint-components/{p-66cf70f7.system.entry.js → p-b3510ca0.system.entry.js} +1 -1
- package/dist/mint-components/{p-c994512c.system.js → p-b5fd4fb6.system.js} +1 -1
- package/dist/mint-components/{p-47c83656.entry.js → p-bef123be.entry.js} +1 -1
- package/dist/mint-components/{p-79a3344f.js → p-c44b3725.js} +1 -1
- package/dist/mint-components/p-c4f275db.system.entry.js +1 -0
- package/dist/mint-components/p-c5f92183.system.entry.js +1 -0
- package/dist/mint-components/{p-9fed62f8.system.entry.js → p-c67ffd25.system.entry.js} +1 -1
- package/dist/mint-components/{p-60465a2d.system.js → p-c90fcb02.system.js} +1 -1
- package/dist/mint-components/{p-f7c0877d.entry.js → p-c95a437e.entry.js} +1 -1
- package/dist/mint-components/{p-7a268047.js → p-d181b17c.js} +1 -1
- package/dist/mint-components/p-d69c0a32.system.entry.js +1 -0
- package/dist/mint-components/{p-cf4e1709.entry.js → p-d9780ae9.entry.js} +1 -1
- package/dist/mint-components/p-db64c957.entry.js +33 -0
- package/dist/mint-components/{p-4fed8672.js → p-dbb79392.js} +1 -1
- package/dist/mint-components/{p-978d06ab.entry.js → p-e1422b78.entry.js} +1 -1
- package/dist/mint-components/p-e1e7d01c.js +157 -0
- package/dist/mint-components/{p-84d1041d.system.entry.js → p-e3b4e06a.system.entry.js} +1 -1
- package/dist/mint-components/{p-b1eafaae.entry.js → p-e4017ba5.entry.js} +1 -1
- package/dist/mint-components/p-e55aafe9.system.js +1 -0
- package/dist/mint-components/{p-ad4348c3.system.js → p-ee290b30.system.js} +1 -1
- package/dist/mint-components/{p-c62b277d.system.js → p-ee3d2ae4.system.js} +1 -1
- package/dist/mint-components/{p-dd30354a.system.entry.js → p-f3613921.system.entry.js} +1 -1
- package/dist/mint-components/{p-55eaba8e.system.entry.js → p-f3c2074b.system.entry.js} +1 -1
- package/dist/mint-components/{p-e0a724dd.system.js → p-f3ccba80.system.js} +19 -19
- package/dist/mint-components/{p-c065057d.entry.js → p-f7e49c12.entry.js} +2 -2
- package/dist/mint-components/{p-b703c89f.system.entry.js → p-fc86ba65.system.entry.js} +1 -1
- package/dist/types/components/sqm-base-registration/sqm-base-registration-form-view.d.ts +3 -1
- package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +1 -1
- package/dist/types/components/sqm-dropdown-field/sqm-dropdown-field.d.ts +1 -1
- package/dist/types/components/sqm-form-message/FormMessage.stories.d.ts +4 -0
- package/dist/types/components/sqm-form-message/sqm-form-message.d.ts +4 -0
- package/dist/types/components/sqm-hero/sqm-hero.d.ts +4 -4
- package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +2 -2
- package/dist/types/components/sqm-input-field/sqm-input-field.d.ts +1 -1
- package/dist/types/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.d.ts +1 -1
- package/dist/types/components/sqm-name-fields/sqm-name-fields-view.d.ts +1 -0
- package/dist/types/components/sqm-name-fields/sqm-name-fields.d.ts +5 -0
- package/dist/types/components/sqm-name-fields/useNameFields.d.ts +1 -0
- package/dist/types/components/sqm-password-field/sqm-password-field.d.ts +1 -1
- package/dist/types/components/sqm-portal-footer/sqm-portal-footer.d.ts +1 -1
- package/dist/types/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.d.ts +5 -0
- package/dist/types/components/sqm-portal-google-registration-form/usePortalGoogleRegistrationForm.d.ts +2 -1
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.d.ts +1 -1
- package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +1 -1
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +5 -2
- package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +4 -10
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +1 -2
- package/dist/types/components.d.ts +40 -32
- package/dist/types/global/styles.v1.d.ts +2 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +2 -2
- package/dist/cjs/data-88adb95b.js +0 -146
- package/dist/cjs/parseStates-d1effc19.js +0 -16
- package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +0 -1313
- package/dist/esm/data-807686c2.js +0 -130
- package/dist/esm/parseStates-ed75e224.js +0 -14
- package/dist/esm/sqm-tax-and-cash.entry.js +0 -1309
- package/dist/esm-es5/data-807686c2.js +0 -1
- package/dist/esm-es5/extractProps-ae1afbb3.js +0 -1
- package/dist/esm-es5/parseStates-ed75e224.js +0 -1
- package/dist/esm-es5/sqm-base-registration-form-view-193f1721.js +0 -1
- package/dist/esm-es5/sqm-big-stat_46.entry.js +0 -1
- package/dist/esm-es5/sqm-tax-and-cash.entry.js +0 -1
- package/dist/esm-es5/usePayoutStatus-42cc6a2c.js +0 -6
- package/dist/esm-es5/utils-84b4b092.js +0 -1
- package/dist/mint-components/p-115dfc03.system.js +0 -1
- package/dist/mint-components/p-13f3a647.js +0 -1
- package/dist/mint-components/p-26468242.js +0 -1
- package/dist/mint-components/p-38263521.entry.js +0 -273
- package/dist/mint-components/p-3d713973.system.entry.js +0 -1
- package/dist/mint-components/p-3ea29bac.system.entry.js +0 -1
- package/dist/mint-components/p-402984b3.system.entry.js +0 -1
- package/dist/mint-components/p-4306a11d.entry.js +0 -33
- package/dist/mint-components/p-43d9c1c5.system.entry.js +0 -1
- package/dist/mint-components/p-4b9976cc.system.js +0 -1
- package/dist/mint-components/p-60f1cca2.system.js +0 -1
- package/dist/mint-components/p-69d8b4f2.system.entry.js +0 -1
- package/dist/mint-components/p-7837f69e.js +0 -46
- package/dist/mint-components/p-7b8232f8.system.js +0 -6
- package/dist/mint-components/p-8c3c4e92.js +0 -112
- package/dist/mint-components/p-916a2045.system.entry.js +0 -1
- package/dist/mint-components/p-92bed2ad.system.js +0 -1
- package/dist/mint-components/p-967a9040.system.js +0 -1
- package/dist/mint-components/p-a44a912b.entry.js +0 -1
- package/dist/mint-components/p-a597b136.entry.js +0 -1
- package/dist/mint-components/p-a8645c1b.system.js +0 -1
- package/dist/mint-components/p-be88596c.system.js +0 -1
- package/dist/mint-components/p-cf22cf56.entry.js +0 -1
- package/dist/mint-components/p-db1a0db1.js +0 -1233
- package/dist/mint-components/p-ddf3c05e.js +0 -1
- package/dist/mint-components/p-ea063d99.entry.js +0 -1
- package/dist/mint-components/p-ecc84140.system.entry.js +0 -1
- package/shoelace/assets/icons/twitter-x.svg +0 -4
- /package/dist/collection/global/{styles.js → styles.v2.js} +0 -0
- /package/dist/collection/global/{styles.ts → styles.v2.ts} +0 -0
- /package/dist/esm-es5/{copy-text-view-83b09456.js → copy-text-view-fac47254.js} +0 -0
- /package/dist/mint-components/global/{styles.ts → styles.v2.ts} +0 -0
- /package/dist/mint-components/{p-45c3ff6d.js → p-4a0a76a5.js} +0 -0
- /package/dist/mint-components/{p-c210374a.system.js → p-ce81839d.system.js} +0 -0
- /package/dist/types/global/{styles.d.ts → styles.v2.d.ts} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as Host } from './index-b3a06de8.js';
|
|
2
|
-
import './global-
|
|
2
|
+
import './global-943536b9.js';
|
|
3
3
|
import { a as commonjsGlobal, u as useMemo, k as useState, c as createCommonjsModule, f as useEffect, n as h$1 } from './dom-context-hooks.module-63370afd.js';
|
|
4
4
|
import { j as jn, b as setUserIdentity, o as setProgramId, k as kn, d as dist, X as Xe } from './index.module-c9811a48.js';
|
|
5
5
|
import './cjs-bdfb4486.js';
|
|
6
|
-
import './utils-
|
|
6
|
+
import './utils-334c1e34.js';
|
|
7
7
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
8
8
|
import './useReferralCodes-c2e809cf.js';
|
|
9
9
|
import './mixins-f750863a.js';
|
|
10
|
-
import { C as CopyTextView } from './copy-text-view-
|
|
10
|
+
import { C as CopyTextView } from './copy-text-view-fac47254.js';
|
|
11
11
|
import { G as GenericTableView } from './GenericTableView-e43d310f.js';
|
|
12
12
|
import './useChildElements-3d872cef.js';
|
|
13
13
|
import { l as luxon } from './luxon-bbf75a9d.js';
|
|
@@ -15,26 +15,26 @@ import './sqm-text-span-view-4c17b8c9.js';
|
|
|
15
15
|
import { C as CloseButtonView } from './sqm-close-button-view-2fa57229.js';
|
|
16
16
|
import './index-ffa26b43.js';
|
|
17
17
|
import { E as EmailRegistrationView } from './email-registration-view-1f587f8b.js';
|
|
18
|
-
import { L as LeadCheckboxFieldView } from './sqm-lead-checkbox-field-view-
|
|
18
|
+
import { L as LeadCheckboxFieldView } from './sqm-lead-checkbox-field-view-adcc49c0.js';
|
|
19
19
|
import { L as LeaderboardRankView } from './sqm-leaderboard-rank-view-18baae5b.js';
|
|
20
20
|
import { L as LogoutCurrentUserView } from './sqm-logout-current-user-view-f21e54e3.js';
|
|
21
21
|
import { N as NavigationSidebarView } from './sqm-navigation-sidebar-view-0a2ec560.js';
|
|
22
22
|
import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-5a452423.js';
|
|
23
|
-
import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-
|
|
23
|
+
import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-8ceb6302.js';
|
|
24
24
|
import { P as PortalLoginView } from './sqm-portal-login-view-7670cd86.js';
|
|
25
|
-
import { B as BaseRegistrationFormView } from './sqm-base-registration-form-view-
|
|
25
|
+
import { B as BaseRegistrationFormView } from './sqm-base-registration-form-view-9e97d8b4.js';
|
|
26
26
|
import { P as PortalRegistrationFormView } from './sqm-portal-registration-form-view-8bdc3804.js';
|
|
27
|
-
import { P as PortalProfileView } from './sqm-portal-profile-view-
|
|
27
|
+
import { P as PortalProfileView } from './sqm-portal-profile-view-2ec60449.js';
|
|
28
28
|
import './utilities-72c07b09.js';
|
|
29
29
|
import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-abef7286.js';
|
|
30
30
|
import { P as PortalVerifyEmailView } from './sqm-portal-verify-email-view-33805220.js';
|
|
31
31
|
import './ErrorView-bbf0a042.js';
|
|
32
32
|
import { Q as QrCodeView } from './sqm-qr-code-view-ea505213.js';
|
|
33
|
-
import { S as StatContainerView, B as BigStatView, a as ShareButtonView, P as PortalChangePasswordView, b as PoweredByImg$1, u as useDemoBigStat, T as TaskCardView, C as CardFeedView, c as CheckboxFieldView, d as PortalRegisterView, e as CouponCodeView, D as DropdownFieldView, E as EditProfileView, L as LeaderboardView, H as HeroView, I as InputFieldView, N as NameFieldsView, f as ChangeMarktingView, g as PortalFooterView, h as PortalForgotPasswordView, i as PortalFrameView, R as ReferralIframeView, j as RewardExchangeView, r as rewardExchangeCustomErrorMsg, k as rewardExchangeLongText, l as rewardExchangeSelected, m as chooseAmountFixed, n as chooseAmountFixedNoDescription, o as chooseAmountVariable, p as chooseAmountVariableNoDescription, q as chooseAmountVariableDisabled, s as chooseAmountVariableUnavailable, t as confirmFixed, v as confirmVariable, w as redemptionError, x as queryError, y as success, z as successVariable, A as loading, F as empty$1, G as rewardExchange, J as useShareButton, K as useShareLink, M as ProgressBarView, O as ProgressBar$2, Q as LeadFormView, U as LeadDropdownFieldView, V as ShadowViewAddon } from './ShadowViewAddon-
|
|
34
|
-
import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-
|
|
35
|
-
import { I as InvoiceTableView, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, O as OtherRegionSlotView } from './IndirectTaxDetailsView-
|
|
36
|
-
import { t as taxTypeToName, L as LoadingView } from './utils-
|
|
37
|
-
import { L as LeadInputFieldView } from './sqm-lead-input-field-view-
|
|
33
|
+
import { S as StatContainerView, B as BigStatView, a as ShareButtonView, P as PortalChangePasswordView, b as PoweredByImg$1, u as useDemoBigStat, T as TaskCardView, C as CardFeedView, c as CheckboxFieldView, d as PortalRegisterView, e as CouponCodeView, D as DropdownFieldView, E as EditProfileView, L as LeaderboardView, H as HeroView, I as InputFieldView, N as NameFieldsView, f as ChangeMarktingView, g as PortalFooterView, h as PortalForgotPasswordView, i as PortalFrameView, R as ReferralIframeView, j as RewardExchangeView, r as rewardExchangeCustomErrorMsg, k as rewardExchangeLongText, l as rewardExchangeSelected, m as chooseAmountFixed, n as chooseAmountFixedNoDescription, o as chooseAmountVariable, p as chooseAmountVariableNoDescription, q as chooseAmountVariableDisabled, s as chooseAmountVariableUnavailable, t as confirmFixed, v as confirmVariable, w as redemptionError, x as queryError, y as success, z as successVariable, A as loading, F as empty$1, G as rewardExchange, J as useShareButton, K as useShareLink, M as ProgressBarView, O as ProgressBar$2, Q as LeadFormView, U as LeadDropdownFieldView, V as ShadowViewAddon } from './ShadowViewAddon-5928ca9d.js';
|
|
34
|
+
import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-176e92e3.js';
|
|
35
|
+
import { I as InvoiceTableView, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, O as OtherRegionSlotView } from './IndirectTaxDetailsView-e5d8767d.js';
|
|
36
|
+
import { t as taxTypeToName, L as LoadingView } from './utils-f27e62dc.js';
|
|
37
|
+
import { L as LeadInputFieldView } from './sqm-lead-input-field-view-c0b5aed5.js';
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
40
|
* lodash (Custom Build) <https://lodash.com/>
|
|
@@ -5040,7 +5040,7 @@ const BaseRegistrationForm_stories = {
|
|
|
5040
5040
|
};
|
|
5041
5041
|
const defaultProps = {
|
|
5042
5042
|
states: {
|
|
5043
|
-
|
|
5043
|
+
validationErrors: {},
|
|
5044
5044
|
},
|
|
5045
5045
|
callbacks: {
|
|
5046
5046
|
handleEmailSubmit: () => console.log("Submit!"),
|
|
@@ -5060,7 +5060,7 @@ const defaultProps = {
|
|
|
5060
5060
|
const errorProps = {
|
|
5061
5061
|
...defaultProps,
|
|
5062
5062
|
states: {
|
|
5063
|
-
error: "Something went wrong. Please try again.",
|
|
5063
|
+
validationErrors: { error: "Something went wrong. Please try again." },
|
|
5064
5064
|
},
|
|
5065
5065
|
};
|
|
5066
5066
|
const Default$1 = () => {
|
|
@@ -6428,6 +6428,20 @@ const InfoAlert = () => {
|
|
|
6428
6428
|
h("p", { part: "alert-title" }, "This is the title"),
|
|
6429
6429
|
h("p", { part: "alert-description" }, "This is the description")));
|
|
6430
6430
|
};
|
|
6431
|
+
const SuccessAlertTransparent = () => {
|
|
6432
|
+
return (h("sqm-form-message", { type: "success", transparent: true },
|
|
6433
|
+
h("p", { part: "alert-title" }, "This is the title"),
|
|
6434
|
+
h("p", { part: "alert-description" }, "This is the description")));
|
|
6435
|
+
};
|
|
6436
|
+
const ErrorAlertTransparent = () => (h("sqm-form-message", { type: "error", transparent: true },
|
|
6437
|
+
h("p", { part: "alert-title" }, "This is the title"),
|
|
6438
|
+
h("p", { part: "alert-description" }, "This is the description")));
|
|
6439
|
+
const WarningAlertTransparent = () => (h("sqm-form-message", { type: "warning", transparent: true },
|
|
6440
|
+
h("p", { part: "alert-title" }, "This is the title"),
|
|
6441
|
+
h("p", { part: "alert-description" }, "This is the description")));
|
|
6442
|
+
const InfoAlertTransparent = () => (h("sqm-form-message", { type: "info", transparent: true },
|
|
6443
|
+
h("p", { part: "alert-title" }, "This is the title"),
|
|
6444
|
+
h("p", { part: "alert-description" }, "This is the description")));
|
|
6431
6445
|
|
|
6432
6446
|
const FormMessage = /*#__PURE__*/Object.freeze({
|
|
6433
6447
|
__proto__: null,
|
|
@@ -6435,7 +6449,11 @@ const FormMessage = /*#__PURE__*/Object.freeze({
|
|
|
6435
6449
|
SuccessAlert: SuccessAlert,
|
|
6436
6450
|
ErrorAlert: ErrorAlert,
|
|
6437
6451
|
WarningAlert: WarningAlert,
|
|
6438
|
-
InfoAlert: InfoAlert
|
|
6452
|
+
InfoAlert: InfoAlert,
|
|
6453
|
+
SuccessAlertTransparent: SuccessAlertTransparent,
|
|
6454
|
+
ErrorAlertTransparent: ErrorAlertTransparent,
|
|
6455
|
+
WarningAlertTransparent: WarningAlertTransparent,
|
|
6456
|
+
InfoAlertTransparent: InfoAlertTransparent
|
|
6439
6457
|
});
|
|
6440
6458
|
|
|
6441
6459
|
const scenario$6 = "@author:kutay\n@owner:kutay\nFeature: Hero Image\n\n\tThe Hero Image component displays media images with a header, description and button using an overlay or a double column layout to offer an attrative widget page.\n\n\tBackground: A user on the portal is viewing the widget\n\t\tGiven a user viewing the Hero Image component\n\n\t@motivating\n\t@ui\n\tScenario: Overlay image displays header, description, and button with brand color\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000278/squatch-assets/bTwu1Um.png\" |\n\t\t\t| header | \"Klip Rewards\" |\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\n\t\t\t| button-text | \"Start earning\" |\n\t\t\t| layout | \"overlay\" |\n\t\tThen they see their image\n\t\tAnd the image has no padding\n\t\tAnd it has a brand colour overlay\n\t\tAnd \"Klip Rewards\" is displayed over top of the image in xxx-large font\n\t\tAnd below \"Refer friends or complete tasks while using Klip to earn rewards\" is displayed over top of the image in x-large font\n\t\tAnd below they see a brand coloured button with text \"Start earning\"\n\t\tAnd the text section has xxx-large padding\n\t\tWhen the component is scaled down to 599px\n\t\tThen the image is scaled to fit content\n\n\t@motivating\n\t@ui\n\tScenario Outline: Overlay image crop can be aligned left, center or right\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000278/squatch-assets/bTwu1Um.png\" |\n\t\t\t| header | \"Klip Rewards\" |\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\n\t\t\t| button-text | \"Start earning\" |\n\t\t\t| layout | \"overlay\" |\n\t\t\t| image-pos | <value> |\n\t\tThen the image with overlay is displayed\n\t\tWhen the component is scaled down to 599px\n\t\tThen the image is <alignment> to fit content\n\t\tExamples:\n\t\t\t| value | alignment |\n\t\t\t| left | left aligned |\n\t\t\t| center | centered |\n\t\t\t| right | right aligned |\n\t\t\t| N/A | centered |\n\n\t@motivating\n\t@ui\n\tScenario Outline: Overlay padding is configurable\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000278/squatch-assets/bTwu1Um.png\" |\n\t\t\t| header | \"Klip Rewards\" |\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\n\t\t\t| button-text | \"Start earning\" |\n\t\t\t| layout | \"overlay\" |\n\t\t\t| padding-text | <value> |\n\t\tThen the image with overlay is displayed\n\t\tAnd <padding> is applied around header, description and button\n\t\tExamples:\n\t\t\t| value | padding |\n\t\t\t| none | no padding |\n\t\t\t| xxx-small | xxx-small |\n\t\t\t| xx-small | xx-small |\n\t\t\t| x-small | x-small |\n\t\t\t| small | small |\n\t\t\t| medium | medium |\n\t\t\t| large | large |\n\t\t\t| x-large | x-large |\n\t\t\t| xx-large | xx-large |\n\t\t\t| xxx-large | xxx-large |\n\t\t\t| xxxx-large | xxxx-large |\n\t\t\t| N/A | no padding |\n\n\t@motivating\n\t@ui\n\tScenario Outline: Overlay color and background is configurable\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000278/squatch-assets/bTwu1Um.png\" |\n\t\t\t| header | \"Klip Rewards\" |\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\n\t\t\t| button-text | \"Start earning\" |\n\t\t\t| layout | \"overlay\" |\n\t\t\t| text-color | <textColor> |\n\t\t\t| overlay-color | <overlayColor> |\n\t\t\t| overlay-opacity | <overlayOpacity> |\n\t\tThen the image with overlay is displayed\n\t\tAnd the overlay is <overlayColor>\n\t\tAnd the overlay has <overlayOpacity>\n\t\tAnd the text is <textColor>\n\t\tExamples:\n\t\t\t| textColor | overlayColor | overlayOpacity |\n\t\t\t| #fffc4b | #ff7f7f | 0.9 |\n\t\t\t| #1d0314 | #4baa1a | 0 |\n\t\t\t| #211a27 | #aa481a | 1 |\n\n\t@motivating\n\t@ui\n\tScenario: Two-column layout displays an image on one side and on the other side a header, description, and button\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png\" |\n\t\t\t| header | \"Klip Rewards\" |\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\n\t\t\t| button-text | \"Start earning\" |\n\t\t\t| layout | \"columns\" |\n\t\tThen the image is displayed on the left\n\t\tAnd the following elements are displayed on the right\n\t\t\t| elements |\n\t\t\t| header |\n\t\t\t| description |\n\t\t\t| button |\n\t\tWhen the component is scaled down to 599px\n\t\tThen the two-column layout switches to a row layout\n\t\tAnd the image is displayed on top\n\t\tAnd the content is displayed below\n\n\t@motivating\n\t@ui\n\tScenario Outline: Image position is configurable for desktop and mobile\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png\" |\n\t\t\t| header | \"Klip Rewards\" |\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\n\t\t\t| button-text | \"Start earning\" |\n\t\t\t| layout | \"columns\" |\n\t\t\t| image-pos | <imagePos> |\n\t\t\t| image-mobile-pos | <imageMobilePos> |\n\t\tThen the image is displayed on the <imagePos>\n\t\tWhen the component is scaled down to 599px\n\t\tThen two-column layout switches to a row layout\n\t\tAnd image is displayed on the <imageMobilePos>\n\t\tExamples:\n\t\t\t| imagePos | imageMobilePos |\n\t\t\t| left | top |\n\t\t\t| right | bottom |\n\n\t@motivating\n\t@ui\n\tScenario Outline: Padding is configurable for the image and text of two column layouts\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png\" |\n\t\t\t| header | \"Klip Rewards\" |\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\n\t\t\t| button-text | \"Start earning\" |\n\t\t\t| layout | \"columns\" |\n\t\t\t| padding-text | <paddingText> |\n\t\t\t| padding-image | <paddingImage> |\n\t\tThen the two column layout is displayed\n\t\tAnd the image has padding <paddingImage>\n\t\tAnd the text has padding <paddingText>\n\t\tExamples:\n\t\t\t| paddingText | paddingImage |\n\t\t\t| xxx-small | xxx-small |\n\t\t\t| xx-small | xx-small |\n\t\t\t| x-small | x-small |\n\t\t\t| small | small |\n\t\t\t| medium | medium |\n\t\t\t| large | large |\n\t\t\t| x-large | x-large |\n\t\t\t| xx-large | xx-large |\n\t\t\t| xxx-large | xxx-large |\n\t\t\t| xxxx-large | xxxx-large |\n\t\t\t| none | none |\n\n\t@motivating\n\t@ui\n\tScenario Outline: Two-column layout image division percentage is configurable\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000248/squatch-assets/MVgOJn7.png\" |\n\t\t\t| header | \"Klip Rewards\" |\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\n\t\t\t| button-text | \"Start earning\" |\n\t\t\t| layout | \"columns\" |\n\t\t\t| image-percentage | <percent> |\n\t\tThen the two column layout is displayed\n\t\tAnd the image takes up <percent> of the two-column layout\n\t\tAnd the text elements take up the remainder of the space\n\t\tExamples:\n\t\t\t| percent |\n\t\t\t| 25% |\n\t\t\t| 42% |\n\t\t\t| 66% |\n\n\t@motivating\n\t@ui\n\tScenario: Two-column layout text and background color is configurable\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png\" |\n\t\t\t| header | \"Klip Rewards\" |\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\n\t\t\t| button-text | \"Start earning\" |\n\t\t\t| layout | \"columns\" |\n\t\t\t| text-color | <textColor> |\n\t\t\t| background-color | <backgroundColor> |\n\t\tThen the two column layout is displayed\n\t\tAnd the text has color <textColor>\n\t\tAnd the background has color <backgroundColor>\n\t\tExamples:\n\t\t\t| textColor | backgroundColor |\n\t\t\t| #fffc4b | #ff7f7f |\n\t\t\t| #1d0314 | #4baa1a |\n\t\t\t| #211a27 | #aa481a |";
|
|
@@ -8228,6 +8246,7 @@ const NameFields_stories = {
|
|
|
8228
8246
|
};
|
|
8229
8247
|
const props = {
|
|
8230
8248
|
states: {
|
|
8249
|
+
optional: false,
|
|
8231
8250
|
registrationFormState: {
|
|
8232
8251
|
validationErrors: undefined,
|
|
8233
8252
|
},
|
|
@@ -8239,6 +8258,7 @@ const props = {
|
|
|
8239
8258
|
};
|
|
8240
8259
|
const errorProps$1 = {
|
|
8241
8260
|
states: {
|
|
8261
|
+
optional: false,
|
|
8242
8262
|
registrationFormState: {
|
|
8243
8263
|
validationErrors: {
|
|
8244
8264
|
firstName: "Cannot be empty",
|
|
@@ -8994,6 +9014,7 @@ const successProps$2 = {
|
|
|
8994
9014
|
content: {
|
|
8995
9015
|
loginText: "Login",
|
|
8996
9016
|
messageSlot: "Enter your email below to receive a password reset link.",
|
|
9017
|
+
successAlertText: "An email has been sent with instructions to reset your password.",
|
|
8997
9018
|
},
|
|
8998
9019
|
};
|
|
8999
9020
|
const Default$e = () => h(PortalForgotPasswordView, Object.assign({}, defaultProps$e));
|
|
@@ -9167,6 +9188,7 @@ const defaultProps$g = {
|
|
|
9167
9188
|
formData: (h("div", null,
|
|
9168
9189
|
" ",
|
|
9169
9190
|
h(NameFieldsView, { states: {
|
|
9191
|
+
optional: false,
|
|
9170
9192
|
registrationFormState: {
|
|
9171
9193
|
validationErrors: undefined,
|
|
9172
9194
|
disabled: true,
|
|
@@ -16846,16 +16868,12 @@ const TaxAndCashDashboardDisabled = () => {
|
|
|
16846
16868
|
},
|
|
16847
16869
|
} }));
|
|
16848
16870
|
};
|
|
16849
|
-
|
|
16850
|
-
|
|
16851
|
-
//
|
|
16852
|
-
|
|
16853
|
-
|
|
16854
|
-
|
|
16855
|
-
// }}
|
|
16856
|
-
// ></sqm-tax-and-cash>
|
|
16857
|
-
// );
|
|
16858
|
-
// };
|
|
16871
|
+
const TaxAndCashTextProps = () => {
|
|
16872
|
+
return (h("sqm-tax-and-cash", { demoData: {
|
|
16873
|
+
// @ts-ignore
|
|
16874
|
+
showTextProps: true,
|
|
16875
|
+
} }));
|
|
16876
|
+
};
|
|
16859
16877
|
|
|
16860
16878
|
const TaxForm = /*#__PURE__*/Object.freeze({
|
|
16861
16879
|
__proto__: null,
|
|
@@ -16925,7 +16943,8 @@ const TaxForm = /*#__PURE__*/Object.freeze({
|
|
|
16925
16943
|
TaxAndCashDashboardLoading: TaxAndCashDashboardLoading,
|
|
16926
16944
|
TaxAndCashDashboardWithLoadingError: TaxAndCashDashboardWithLoadingError,
|
|
16927
16945
|
TaxAndCashDashboardWithGeneralError: TaxAndCashDashboardWithGeneralError,
|
|
16928
|
-
TaxAndCashDashboardDisabled: TaxAndCashDashboardDisabled
|
|
16946
|
+
TaxAndCashDashboardDisabled: TaxAndCashDashboardDisabled,
|
|
16947
|
+
TaxAndCashTextProps: TaxAndCashTextProps
|
|
16929
16948
|
});
|
|
16930
16949
|
|
|
16931
16950
|
const PayoutDetailsCard_stories = {
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { h, c as Host, r as registerInstance } from './index-b3a06de8.js';
|
|
2
2
|
import { u as useMemo, f as useEffect, n as h$1 } from './dom-context-hooks.module-63370afd.js';
|
|
3
3
|
import { _ } from './index.module-c9811a48.js';
|
|
4
|
-
import { g as getProps } from './utils-
|
|
4
|
+
import { g as getProps } from './utils-334c1e34.js';
|
|
5
5
|
import { u as useRerenderListener } from './re-render-7e22fb0d.js';
|
|
6
6
|
import { u as useChildElements } from './useChildElements-3d872cef.js';
|
|
7
7
|
|
|
8
|
-
// sl-tab-group {
|
|
9
|
-
// --sl-color-primary-500: var(--sqm-accent-color-icon);
|
|
10
|
-
// }
|
|
11
8
|
const TabsView = ({ content, placement, textColor = "var(--sqm-text)", }) => {
|
|
12
9
|
// Vertical padding for top & bottom placement, horizontal for left & right.
|
|
13
10
|
const padding = !placement || placement === "top" || placement === "bottom"
|
|
@@ -34,8 +34,9 @@ const WidgetVerificationController = class {
|
|
|
34
34
|
constructor(hostRef) {
|
|
35
35
|
registerInstance(this, hostRef);
|
|
36
36
|
/**
|
|
37
|
-
* @
|
|
38
|
-
* @componentState { "title": "
|
|
37
|
+
* @undocumented
|
|
38
|
+
* @componentState { "title": "Verify email", "slot": "not-verified", "props": { "isAuth": false }, "disabled": "true" }
|
|
39
|
+
* @componentState { "title": "Tax and cash", "slot": "verified", "props": { "isAuth": true }, "disabled": "true" }
|
|
39
40
|
*/
|
|
40
41
|
this.stateController = "{}";
|
|
41
42
|
h(this);
|
|
@@ -2,9 +2,8 @@ import { r as registerInstance, h as h$1 } from './index-b3a06de8.js';
|
|
|
2
2
|
import { k as useState, f as useEffect, n as h } from './dom-context-hooks.module-63370afd.js';
|
|
3
3
|
import { d as dist, J, I as In, p as En, X as Xe, i as isDemo } from './index.module-c9811a48.js';
|
|
4
4
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
5
|
-
import { g as getProps } from './utils-
|
|
6
|
-
import { p as parseStates } from './
|
|
7
|
-
import { e as extractProps } from './extractProps-ae1afbb3.js';
|
|
5
|
+
import { g as getProps } from './utils-334c1e34.js';
|
|
6
|
+
import { e as extractProps, p as parseStates } from './extractProps-54064fb0.js';
|
|
8
7
|
import { S as SHOW_CODE_NAMESPACE, V as VERIFICATION_EMAIL_NAMESPACE, a as VERIFICATION_PARENT_NAMESPACE } from './keys-406491dc.js';
|
|
9
8
|
|
|
10
9
|
const USER_LOOKUP = dist.gql `
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from './index-b3a06de8.js';
|
|
2
|
-
import { i as intl } from './global-
|
|
2
|
+
import { i as intl } from './global-943536b9.js';
|
|
3
3
|
import { k as useState, y } from './dom-context-hooks.module-63370afd.js';
|
|
4
4
|
import { _ } from './index.module-c9811a48.js';
|
|
5
5
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { k as useState } from './dom-context-hooks.module-63370afd.js';
|
|
2
2
|
import { c as je, h as hn, j as jn } from './index.module-c9811a48.js';
|
|
3
3
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
4
|
-
import { s as sanitizeUrlPath } from './utils-
|
|
4
|
+
import { s as sanitizeUrlPath } from './utils-334c1e34.js';
|
|
5
5
|
|
|
6
6
|
function usePortalLogin(props) {
|
|
7
7
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
@@ -37,9 +37,5 @@ function sanitizeUrlPath(path) {
|
|
|
37
37
|
cleanUrl.hash = url.hash;
|
|
38
38
|
return cleanUrl;
|
|
39
39
|
}
|
|
40
|
-
function capitalizeFirstLetter(word) {
|
|
41
|
-
return word[0].toUpperCase() + word.slice(1);
|
|
42
|
-
}
|
|
43
|
-
console.log(capitalizeFirstLetter("warning"));
|
|
44
40
|
|
|
45
41
|
export { getMissingProps as a, getProps as g, luxonLocale as l, sanitizeUrlPath as s };
|
package/dist/esm-es5/{IndirectTaxDetailsView-0a57b622.js → IndirectTaxDetailsView-e5d8767d.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h}from"./index-b3a06de8.js";import{i as intl}from"./global-1099f20d.js";import{c as createStyleSheet}from"./JSS-67b5cff8.js";import{f as formatErrorMessage}from"./utils-6122971b.js";var style={Description:{fontSize:"var(--sl-font-size-small)",marginTop:"var(--sl-spacing-small)",margin:"0 0 var(--sl-spacing-large)",color:"var(--sqm-text-subdued)"},Header:{fontSize:"var(--sl-font-size-large)",fontWeight:"var(-sl-font-weight-semibold)",margin:"0 0 var(--sl-spacing-xxx-small)"},Container:{},InvoiceTableContaier:{"& sl-details::part(base)":{border:"none"},"& sl-details::part(content)":{padding:0},"& sl-details::part(header)":{fontSize:"var(--sl-font-size-medium)",padding:"0px"},"& sl-details::part(summary)":{fontWeight:"var(-sl-font-weight-semibold)"},"& sl-details::part(summary-icon)":{marginRight:"100%",marginLeft:"var(--sl-spacing-x-small)",transform:"rotate(90deg)"},"& sl-details[open]::part(summary-icon)":{transform:"rotate(270deg)"}}};function InvoiceTableView(e,a){var l=createStyleSheet(style);var r=l.toString();var n="\n :host{\n display: block;\n }";return h("div",{class:l.classes.Container},h("style",{type:"text/css"},n,r),h("div",{class:l.classes.InvoiceTableContaier},h("sl-details",{summary:e.header},h("p",{class:l.classes.Description},e.description),a)))}var INDIRECT_TAX_PROVINCES=[{regionCode:"ALBERTA",taxType:"GST",displayName:"Alberta"},{regionCode:"BRITISHCOLUMBIA",taxType:"HST",displayName:"British Columbia"},{regionCode:"MANITOBA",taxType:"HST",displayName:"Manitoba"},{regionCode:"NEWBRUNSWICK",taxType:"HST",displayName:"New Brunswick"},{regionCode:"NEWFOUNDLANDLABRADOR",taxType:"HST",displayName:"Newfoundland"},{regionCode:"NORTHWESTTERRITORIES",taxType:"GST",displayName:"North West Territories"},{regionCode:"NOVASCOTIA",taxType:"HST",displayName:"Nova Scotia"},{regionCode:"NUNAVUT",taxType:"HST",displayName:"Nunavut"},{regionCode:"ONTARIO",taxType:"HST",displayName:"Ontario"},{regionCode:"PRINCEEDWARDISLAND",taxType:"HST",displayName:"Prince Edward Island"},{regionCode:"QUEBEC",taxType:"GST",displayName:"Quebec"},{regionCode:"SASKATCHEWAN",taxType:"HST",displayName:"Saskatchewan"},{regionCode:"YUKON",taxType:"GST",displayName:"Yukon"}];var INDIRECT_TAX_SPAIN_REGIONS=[{regionCode:"SPAINPROPER",taxType:"VAT",displayName:"Spain Proper"},{regionCode:"CANARYISLANDS",taxType:"VAT",displayName:"Canary Islands"}];var ADDRESS_REGIONS={CA:{labelEnum:"PROVINCE",regions:[{label:"Alberta",value:"ALBERTA"},{label:"British Columbia",value:"BRITISHCOLUMBIA"},{label:"Manitoba",value:"MANITOBA"},{label:"New Brunswick",value:"NEWBRUNSWICK"},{label:"Newfoundland & Labrador",value:"NEWFOUNDLANDANDLABRADOR"},{label:"Northwest Territories",value:"NORTHWESTTERRITORIES"},{label:"Nova Scotia",value:"NOVASCOTIA"},{label:"Nunavut",value:"NUNAVUT"},{label:"Ontario",value:"ONTARIO"},{label:"Prince Edward Island",value:"PRINCEEDWARDISLAND"},{label:"Quebec",value:"QUEBEC"},{label:"Saskatchewan",value:"SASKATCHEWAN"},{label:"Yukon",value:"YUKON"}]},ES:{labelEnum:"REGION",regions:[{label:"Canary Islands",value:"CANARYISLANDS"},{label:"Spain Proper",value:"SPAINPROPER"}]},AU:{labelEnum:"STATE",regions:[{label:"Australian Capital Territory",value:"CAPITALTERRITORY"},{label:"New South Wales",value:"NEWSOUTHWALES"},{label:"Northern Territory",value:"NORTHERNTERRITORY"},{label:"Queensland",value:"QUEENSLAND"},{label:"South Australia",value:"SOUTHAUSTRALIA"},{label:"Tasmania",value:"TASMANIA"},{label:"Victoria",value:"VICTORIA"},{label:"Western Australia",value:"WESTERNAUSTRALIA"}]},US:{labelEnum:"STATE",regions:[{label:"Alabama",value:"ALABAMA"},{label:"Alaska",value:"ALASKA"},{label:"Arizona",value:"ARIZONA"},{label:"Arkansas",value:"ARKANSAS"},{label:"California",value:"CALIFORNIA"},{label:"Colorado",value:"COLORADO"},{label:"Connecticut",value:"CONNECTICUT"},{label:"Delaware",value:"DELAWARE"},{label:"District of Columbia",value:"DISTRICTOFCOLUMBIA"},{label:"Florida",value:"FLORIDA"},{label:"Georgia",value:"GEORGIA"},{label:"Hawaii",value:"HAWAII"},{label:"Idaho",value:"IDAHO"},{label:"Illinois",value:"ILLINOIS"},{label:"Indiana",value:"INDIANA"},{label:"Iowa",value:"IOWA"},{label:"Kansas",value:"KANSAS"},{label:"Kentucky",value:"KENTUCKY"},{label:"Louisiana",value:"LOUISIANA"},{label:"Maine",value:"MAINE"},{label:"Maryland",value:"MARYLAND"},{label:"Massachusetts",value:"MASSACHUSETTS"},{label:"Michigan",value:"MICHIGAN"},{label:"Minnesota",value:"MINNESOTA"},{label:"Mississippi",value:"MISSISSIPPI"},{label:"Missouri",value:"MISSOURI"},{label:"Montana",value:"MONTANA"},{label:"Nebraska",value:"NEBRASKA"},{label:"Nevada",value:"NEVADA"},{label:"New Hampshire",value:"NEWHAMPSHIRE"},{label:"New Jersey",value:"NEWJERSEY"},{label:"New Mexico",value:"NEWMEXICO"},{label:"New York",value:"NEWYORK"},{label:"North Carolina",value:"NORTHCAROLINA"},{label:"North Dakota",value:"NORTHDAKOTA"},{label:"Ohio",value:"OHIO"},{label:"Oklahoma",value:"OKLAHOMA"},{label:"Oregon",value:"OREGON"},{label:"Pennsylvania",value:"PENNSYLVANIA"},{label:"Rhode Island",value:"RHODEISLAND"},{label:"South Carolina",value:"SOUTHCAROLINA"},{label:"South Dakota",value:"SOUTHDAKOTA"},{label:"Tennessee",value:"TENNESSEE"},{label:"Texas",value:"TEXAS"},{label:"Utah",value:"UTAH"},{label:"Vermont",value:"VERMONT"},{label:"Virgin Islands",value:"VIRGINISLANDS"},{label:"Virginia",value:"VIRGINIA"},{label:"Washington",value:"WASHINGTON"},{label:"West Virginia",value:"WESTVIRGINIA"},{label:"Wisconsin",value:"WISCONSIN"},{label:"Wyoming",value:"WYOMING"},{label:"Americas Forces",value:"AAMILITARY"},{label:"Europe, Middle East, Canada, Africa and Canada Forces",value:"AEMILITARY"},{label:"Pacific Forces",value:"APMILITARY"},{label:"Other",value:"OTHER"}]}};var vatLabels={GB:"VAT",AU:"GST",NZ:"GST",CA:"HST",AT:"VAT",BE:"VAT",BG:"VAT",HR:"VAT",CY:"VAT",CZ:"VAT",DK:"VAT",EE:"VAT",FI:"VAT",FR:"VAT",DE:"VAT",GR:"VAT",HU:"VAT",IE:"VAT",IT:"VAT",LV:"VAT",LT:"VAT",LU:"VAT",MT:"VAT",NL:"VAT",PL:"VAT",PT:"VAT",RO:"VAT",SK:"VAT",SI:"VAT",ES:"VAT",SE:"VAT",IS:"VAT",IN:"GST",IL:"VAT",JP:"CT",MX:"VAT",NO:"VAT",SG:"GST",ZA:"VAT",KR:"VAT",CH:"VAT",TW:"VAT",TH:"VAT",PH:"VAT",MY:"SST",AE:"VAT",TR:"VAT",RU:"VAT"};var style$1={Container:{width:"100%"},InputContainer:{width:"100%",display:"flex",justifyContent:"flex-start",flexDirection:"column",gap:"16px",padding:"16px",maxWidth:"450px"},ConditionalInputsContainer:{width:"100%",display:"flex",justifyContent:"flex-start",flexDirection:"column",gap:"16px"},HR:{border:"var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",margin:"10px 0"},Input:{maxWidth:"500px"},Checkbox:{"&::part(control)":{borderRadius:"0 !important"}},SearchInput:{padding:"var(--sl-spacing-x-small)"},ErrorInput:{maxWidth:"500px","&::part(base)":{border:"var(--sqm-border-thickness, 1px) solid var(--sqm-danger-color-border)",borderRadius:"var(--sl-input-border-radius-medium)"},"&::part(help-text)":{color:"var(--sqm-danger-color-text)"}}};var sheet=createStyleSheet(style$1);var styleString=sheet.toString();var vanillaStyle="\n :host{\n display: block; \n }\n * {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n }\n sl-menu-item::part(base) {\n color: var(--sqm-input-color);\n }\n\n sl-menu-item::part(base):hover {\n background-color: var(--sqm-input-border-color-hover);\n }\n sl-checkbox[checked]::part(control){\n background-color: var(--sqm-input-border-color-focus);\n }\n\n sl-checkbox[checked]::part(checked-icon){\n color: var(--sqm-input-background);\n }\n ";var OtherRegionSlotView=function(e){var a,l,r;var n=e.states,i=e.states.formState,s=e.callbacks,t=e.text;var o=sheet.classes;var u=function(e){return intl.formatMessage({id:"tax-field-label"+e,defaultMessage:t.indirectTaxNumber},{taxType:e})};var d=function(e){return intl.formatMessage({id:"tax-field-label"+e,defaultMessage:t.error.indirectTaxNumber},{taxType:e})};var b=function(e){var a=e.label,l=e.error,r=e.name;var s;return h("sl-input",Object.assign({required:true,exportparts:"label: input-label, base: input-base",class:o.Input,label:a,disabled:n.loading||n.disabled,value:i[r]},((s=i.errors)===null||s===void 0?void 0:s[r])&&{class:o.ErrorInput,helpText:l},{id:r,name:"/"+r}))};var T=function(){var a,l;return h("div",{class:o.ConditionalInputsContainer},h("sl-select",Object.assign({required:true,exportparts:"label: input-label, base: input-base",class:o.Input,value:i.subRegion,label:t.subRegion,disabled:n.loading||n.disabled},((a=i.errors)===null||a===void 0?void 0:a.indirectTaxNumber)&&{class:o.ErrorInput,helpText:formatErrorMessage(t.subRegion,t.error.fieldRequiredError)},{id:"subRegion",name:"/subRegion"}),e.data.esRegions.map((function(e){return h("sl-menu-item",{value:e.regionCode},e.displayName)}))),h(b,{name:"indirectTaxNumber",label:u("VAT"),error:d("VAT")}),h("sl-checkbox",{class:o.Checkbox,exportparts:"label: input-label, base: input-base",checked:i.hasSubRegionTaxNumber,"onSl-change":s.onSpainToggle,disabled:n.disabled||n.isPartner},t.isRegisteredSubRegionIncomeTax),i.hasSubRegionTaxNumber&&h("sl-input",Object.assign({required:true,exportparts:"label: input-label, base: input-base",class:o.Input,label:t.subRegionTaxNumberLabel,disabled:n.loading||n.disabled,value:i.subRegionTaxNumber},((l=i.errors)===null||l===void 0?void 0:l.subRegionTaxNumber)&&{class:o.ErrorInput,helpText:formatErrorMessage(t.subRegionTaxNumberLabel,t.error.fieldRequiredError)},{id:"subRegionTaxNumber",name:"/subRegionTaxNumber"})))};var A=function(){var a,l;var r=sheet.classes;var o=(a=INDIRECT_TAX_PROVINCES===null||INDIRECT_TAX_PROVINCES===void 0?void 0:INDIRECT_TAX_PROVINCES.find((function(e){return e.regionCode===i.province})))===null||a===void 0?void 0:a.taxType;return h("div",{class:r.ConditionalInputsContainer},h("sl-select",Object.assign({required:true,value:i.province,exportparts:"label: input-label, base: input-base",class:r.Input,label:t.province,disabled:n.loading||n.disabled,"onSl-select":function(e){return s.onFormChange("province",e)}},((l=i.errors)===null||l===void 0?void 0:l.province)&&{class:r.ErrorInput,helpText:formatErrorMessage(t.province,t.error.fieldRequiredError)},{id:"province",name:"/province"}),e.data.provinces.map((function(e){return h("sl-menu-item",{value:e.regionCode},e.displayName)}))),o==="GST"&&h(b,{label:u("GST"),error:d("GST"),name:"indirectTaxNumber"}),o==="HST"&&h(b,{label:u("HST"),error:d("HST"),name:"indirectTaxNumber"}),i.province==="QUEBEC"&&h("div",{class:r.ConditionalInputsContainer},h("sl-checkbox",{class:r.Checkbox,exportparts:"label: input-label, base: input-base","onSl-change":s.onQstToggle,checked:i.hasQst,disabled:n.isPartner||n.disabled},t.isRegisteredQST),i.hasQst&&h(b,{name:"qstNumber",label:t.qstNumber,error:formatErrorMessage(t.qstNumber,t.error.fieldRequiredError)})))};var c=function(e){var a;switch(e){case"CA":return h(A,null);case"ES":return h(T,null);default:return h("sl-input",Object.assign({required:true,exportparts:"label: input-label, base: input-base",class:o.Input,value:i.indirectTaxNumber,label:u(vatLabels[e]||"GENERAL"),disabled:n.loading||n.disabled},((a=i.errors)===null||a===void 0?void 0:a.indirectTaxNumber)&&{class:o.ErrorInput,helpText:d(vatLabels[e]||"GENERAL")},{id:"indirectTaxNumber",name:"/indirectTaxNumber"}))}};var v=c(i.selectedRegion);return h("div",{style:n.hide?{display:"none"}:{}},h("form",{class:o.Container},h("style",{type:"text/css"},styleString,vanillaStyle),h("hr",{class:o.HR}),h("div",{class:o.InputContainer},h("sl-select",Object.assign({required:true,class:o.Input,value:i.selectedRegion,exportparts:"label: input-label, base: input-base",label:t.selectedRegion,disabled:n.loading||n.disabled,"onSl-select":function(e){return s.onFormChange("selectedRegion",e)}},((a=i.errors)===null||a===void 0?void 0:a.selectedRegion)&&{class:o.ErrorInput,helpText:formatErrorMessage(t.selectedRegion,t.error.fieldRequiredError)},{id:"selectedRegion",name:"/selectedRegion"}),h("sl-input",{class:o.SearchInput,placeholder:t.searchForCountryText,onKeyDown:function(e){e.stopPropagation()},"onSl-input":function(e){s.setCountrySearch(e.target.value)}}),(l=e.data.countries)===null||l===void 0?void 0:l.map((function(e){return h("sl-menu-item",{value:e.countryCode},e.displayName)})),(r=e.data.allCountries)===null||r===void 0?void 0:r.map((function(e){return h("sl-menu-item",{value:e.countryCode,style:{display:"none"}},e.displayName)}))),v),h("hr",{class:o.HR})))};export{ADDRESS_REGIONS as A,InvoiceTableView as I,OtherRegionSlotView as O,INDIRECT_TAX_SPAIN_REGIONS as a,INDIRECT_TAX_PROVINCES as b,vatLabels as v};
|
|
1
|
+
import{h}from"./index-b3a06de8.js";import{i as intl}from"./global-943536b9.js";import{c as createStyleSheet}from"./JSS-67b5cff8.js";import{f as formatErrorMessage}from"./utils-f27e62dc.js";var style={Description:{fontSize:"var(--sl-font-size-small)",marginTop:"var(--sl-spacing-small)",margin:"0 0 var(--sl-spacing-large)",color:"var(--sqm-text-subdued)"},Header:{fontSize:"var(--sl-font-size-large)",fontWeight:"var(-sl-font-weight-semibold)",margin:"0 0 var(--sl-spacing-xxx-small)"},Container:{},InvoiceTableContaier:{"& sl-details::part(base)":{border:"none"},"& sl-details::part(content)":{padding:0},"& sl-details::part(header)":{fontSize:"var(--sl-font-size-medium)",padding:"0px"},"& sl-details::part(summary)":{fontWeight:"var(-sl-font-weight-semibold)"},"& sl-details::part(summary-icon)":{marginRight:"100%",marginLeft:"var(--sl-spacing-x-small)",transform:"rotate(90deg)"},"& sl-details[open]::part(summary-icon)":{transform:"rotate(270deg)"}}};function InvoiceTableView(e,a){var l=createStyleSheet(style);var r=l.toString();var n="\n :host{\n display: block;\n }";return h("div",{class:l.classes.Container},h("style",{type:"text/css"},n,r),h("div",{class:l.classes.InvoiceTableContaier},h("sl-details",{summary:e.header},h("p",{class:l.classes.Description},e.description),a)))}var INDIRECT_TAX_PROVINCES=[{regionCode:"ALBERTA",taxType:"GST",displayName:"Alberta"},{regionCode:"BRITISHCOLUMBIA",taxType:"HST",displayName:"British Columbia"},{regionCode:"MANITOBA",taxType:"HST",displayName:"Manitoba"},{regionCode:"NEWBRUNSWICK",taxType:"HST",displayName:"New Brunswick"},{regionCode:"NEWFOUNDLANDLABRADOR",taxType:"HST",displayName:"Newfoundland"},{regionCode:"NORTHWESTTERRITORIES",taxType:"GST",displayName:"North West Territories"},{regionCode:"NOVASCOTIA",taxType:"HST",displayName:"Nova Scotia"},{regionCode:"NUNAVUT",taxType:"HST",displayName:"Nunavut"},{regionCode:"ONTARIO",taxType:"HST",displayName:"Ontario"},{regionCode:"PRINCEEDWARDISLAND",taxType:"HST",displayName:"Prince Edward Island"},{regionCode:"QUEBEC",taxType:"GST",displayName:"Quebec"},{regionCode:"SASKATCHEWAN",taxType:"HST",displayName:"Saskatchewan"},{regionCode:"YUKON",taxType:"GST",displayName:"Yukon"}];var INDIRECT_TAX_SPAIN_REGIONS=[{regionCode:"SPAINPROPER",taxType:"VAT",displayName:"Spain Proper"},{regionCode:"CANARYISLANDS",taxType:"VAT",displayName:"Canary Islands"}];var ADDRESS_REGIONS={CA:{labelEnum:"PROVINCE",regions:[{label:"Alberta",value:"ALBERTA"},{label:"British Columbia",value:"BRITISHCOLUMBIA"},{label:"Manitoba",value:"MANITOBA"},{label:"New Brunswick",value:"NEWBRUNSWICK"},{label:"Newfoundland & Labrador",value:"NEWFOUNDLANDANDLABRADOR"},{label:"Northwest Territories",value:"NORTHWESTTERRITORIES"},{label:"Nova Scotia",value:"NOVASCOTIA"},{label:"Nunavut",value:"NUNAVUT"},{label:"Ontario",value:"ONTARIO"},{label:"Prince Edward Island",value:"PRINCEEDWARDISLAND"},{label:"Quebec",value:"QUEBEC"},{label:"Saskatchewan",value:"SASKATCHEWAN"},{label:"Yukon",value:"YUKON"}]},ES:{labelEnum:"REGION",regions:[{label:"Canary Islands",value:"CANARYISLANDS"},{label:"Spain Proper",value:"SPAINPROPER"}]},AU:{labelEnum:"STATE",regions:[{label:"Australian Capital Territory",value:"CAPITALTERRITORY"},{label:"New South Wales",value:"NEWSOUTHWALES"},{label:"Northern Territory",value:"NORTHERNTERRITORY"},{label:"Queensland",value:"QUEENSLAND"},{label:"South Australia",value:"SOUTHAUSTRALIA"},{label:"Tasmania",value:"TASMANIA"},{label:"Victoria",value:"VICTORIA"},{label:"Western Australia",value:"WESTERNAUSTRALIA"}]},US:{labelEnum:"STATE",regions:[{label:"Alabama",value:"ALABAMA"},{label:"Alaska",value:"ALASKA"},{label:"Arizona",value:"ARIZONA"},{label:"Arkansas",value:"ARKANSAS"},{label:"California",value:"CALIFORNIA"},{label:"Colorado",value:"COLORADO"},{label:"Connecticut",value:"CONNECTICUT"},{label:"Delaware",value:"DELAWARE"},{label:"District of Columbia",value:"DISTRICTOFCOLUMBIA"},{label:"Florida",value:"FLORIDA"},{label:"Georgia",value:"GEORGIA"},{label:"Hawaii",value:"HAWAII"},{label:"Idaho",value:"IDAHO"},{label:"Illinois",value:"ILLINOIS"},{label:"Indiana",value:"INDIANA"},{label:"Iowa",value:"IOWA"},{label:"Kansas",value:"KANSAS"},{label:"Kentucky",value:"KENTUCKY"},{label:"Louisiana",value:"LOUISIANA"},{label:"Maine",value:"MAINE"},{label:"Maryland",value:"MARYLAND"},{label:"Massachusetts",value:"MASSACHUSETTS"},{label:"Michigan",value:"MICHIGAN"},{label:"Minnesota",value:"MINNESOTA"},{label:"Mississippi",value:"MISSISSIPPI"},{label:"Missouri",value:"MISSOURI"},{label:"Montana",value:"MONTANA"},{label:"Nebraska",value:"NEBRASKA"},{label:"Nevada",value:"NEVADA"},{label:"New Hampshire",value:"NEWHAMPSHIRE"},{label:"New Jersey",value:"NEWJERSEY"},{label:"New Mexico",value:"NEWMEXICO"},{label:"New York",value:"NEWYORK"},{label:"North Carolina",value:"NORTHCAROLINA"},{label:"North Dakota",value:"NORTHDAKOTA"},{label:"Ohio",value:"OHIO"},{label:"Oklahoma",value:"OKLAHOMA"},{label:"Oregon",value:"OREGON"},{label:"Pennsylvania",value:"PENNSYLVANIA"},{label:"Rhode Island",value:"RHODEISLAND"},{label:"South Carolina",value:"SOUTHCAROLINA"},{label:"South Dakota",value:"SOUTHDAKOTA"},{label:"Tennessee",value:"TENNESSEE"},{label:"Texas",value:"TEXAS"},{label:"Utah",value:"UTAH"},{label:"Vermont",value:"VERMONT"},{label:"Virgin Islands",value:"VIRGINISLANDS"},{label:"Virginia",value:"VIRGINIA"},{label:"Washington",value:"WASHINGTON"},{label:"West Virginia",value:"WESTVIRGINIA"},{label:"Wisconsin",value:"WISCONSIN"},{label:"Wyoming",value:"WYOMING"},{label:"Americas Forces",value:"AAMILITARY"},{label:"Europe, Middle East, Canada, Africa and Canada Forces",value:"AEMILITARY"},{label:"Pacific Forces",value:"APMILITARY"},{label:"Other",value:"OTHER"}]}};var vatLabels={GB:"VAT",AU:"GST",NZ:"GST",CA:"HST",AT:"VAT",BE:"VAT",BG:"VAT",HR:"VAT",CY:"VAT",CZ:"VAT",DK:"VAT",EE:"VAT",FI:"VAT",FR:"VAT",DE:"VAT",GR:"VAT",HU:"VAT",IE:"VAT",IT:"VAT",LV:"VAT",LT:"VAT",LU:"VAT",MT:"VAT",NL:"VAT",PL:"VAT",PT:"VAT",RO:"VAT",SK:"VAT",SI:"VAT",ES:"VAT",SE:"VAT",IS:"VAT",IN:"GST",IL:"VAT",JP:"CT",MX:"VAT",NO:"VAT",SG:"GST",ZA:"VAT",KR:"VAT",CH:"VAT",TW:"VAT",TH:"VAT",PH:"VAT",MY:"SST",AE:"VAT",TR:"VAT",RU:"VAT"};var style$1={Container:{width:"100%"},InputContainer:{width:"100%",display:"flex",justifyContent:"flex-start",flexDirection:"column",gap:"16px",padding:"16px",maxWidth:"450px"},ConditionalInputsContainer:{width:"100%",display:"flex",justifyContent:"flex-start",flexDirection:"column",gap:"16px"},HR:{border:"var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",margin:"10px 0"},Input:{maxWidth:"500px"},Checkbox:{"&::part(control)":{borderRadius:"0 !important"}},SearchInput:{padding:"var(--sl-spacing-x-small)"},ErrorInput:{maxWidth:"500px","&::part(base)":{border:"var(--sqm-border-thickness, 1px) solid var(--sqm-danger-color-border)",borderRadius:"var(--sl-input-border-radius-medium)"},"&::part(help-text)":{color:"var(--sqm-danger-color-text)"}}};var sheet=createStyleSheet(style$1);var styleString=sheet.toString();var vanillaStyle="\n :host{\n display: block; \n }\n * {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n }\n sl-menu-item::part(base) {\n color: var(--sqm-input-color);\n }\n\n sl-menu-item::part(base):hover {\n background-color: var(--sqm-input-border-color-hover);\n }\n sl-checkbox[checked]::part(control){\n background-color: var(--sqm-input-border-color-focus);\n }\n\n sl-checkbox[checked]::part(checked-icon){\n color: var(--sqm-input-background);\n }\n ";var OtherRegionSlotView=function(e){var a,l,r;var n=e.states,i=e.states.formState,s=e.callbacks,t=e.text;var o=sheet.classes;var u=function(e){return intl.formatMessage({id:"tax-field-label"+e,defaultMessage:t.indirectTaxNumber},{taxType:e})};var d=function(e){return intl.formatMessage({id:"tax-field-label"+e,defaultMessage:t.error.indirectTaxNumber},{taxType:e})};var b=function(e){var a=e.label,l=e.error,r=e.name;var s;return h("sl-input",Object.assign({required:true,exportparts:"label: input-label, base: input-base",class:o.Input,label:a,disabled:n.loading||n.disabled,value:i[r]},((s=i.errors)===null||s===void 0?void 0:s[r])&&{class:o.ErrorInput,helpText:l},{id:r,name:"/"+r}))};var T=function(){var a,l;return h("div",{class:o.ConditionalInputsContainer},h("sl-select",Object.assign({required:true,exportparts:"label: input-label, base: input-base",class:o.Input,value:i.subRegion,label:t.subRegion,disabled:n.loading||n.disabled},((a=i.errors)===null||a===void 0?void 0:a.indirectTaxNumber)&&{class:o.ErrorInput,helpText:formatErrorMessage(t.subRegion,t.error.fieldRequiredError)},{id:"subRegion",name:"/subRegion"}),e.data.esRegions.map((function(e){return h("sl-menu-item",{value:e.regionCode},e.displayName)}))),h(b,{name:"indirectTaxNumber",label:u("VAT"),error:d("VAT")}),h("sl-checkbox",{class:o.Checkbox,exportparts:"label: input-label, base: input-base",checked:i.hasSubRegionTaxNumber,"onSl-change":s.onSpainToggle,disabled:n.disabled||n.isPartner},t.isRegisteredSubRegionIncomeTax),i.hasSubRegionTaxNumber&&h("sl-input",Object.assign({required:true,exportparts:"label: input-label, base: input-base",class:o.Input,label:t.subRegionTaxNumberLabel,disabled:n.loading||n.disabled,value:i.subRegionTaxNumber},((l=i.errors)===null||l===void 0?void 0:l.subRegionTaxNumber)&&{class:o.ErrorInput,helpText:formatErrorMessage(t.subRegionTaxNumberLabel,t.error.fieldRequiredError)},{id:"subRegionTaxNumber",name:"/subRegionTaxNumber"})))};var A=function(){var a,l;var r=sheet.classes;var o=(a=INDIRECT_TAX_PROVINCES===null||INDIRECT_TAX_PROVINCES===void 0?void 0:INDIRECT_TAX_PROVINCES.find((function(e){return e.regionCode===i.province})))===null||a===void 0?void 0:a.taxType;return h("div",{class:r.ConditionalInputsContainer},h("sl-select",Object.assign({required:true,value:i.province,exportparts:"label: input-label, base: input-base",class:r.Input,label:t.province,disabled:n.loading||n.disabled,"onSl-select":function(e){return s.onFormChange("province",e)}},((l=i.errors)===null||l===void 0?void 0:l.province)&&{class:r.ErrorInput,helpText:formatErrorMessage(t.province,t.error.fieldRequiredError)},{id:"province",name:"/province"}),e.data.provinces.map((function(e){return h("sl-menu-item",{value:e.regionCode},e.displayName)}))),o==="GST"&&h(b,{label:u("GST"),error:d("GST"),name:"indirectTaxNumber"}),o==="HST"&&h(b,{label:u("HST"),error:d("HST"),name:"indirectTaxNumber"}),i.province==="QUEBEC"&&h("div",{class:r.ConditionalInputsContainer},h("sl-checkbox",{class:r.Checkbox,exportparts:"label: input-label, base: input-base","onSl-change":s.onQstToggle,checked:i.hasQst,disabled:n.isPartner||n.disabled},t.isRegisteredQST),i.hasQst&&h(b,{name:"qstNumber",label:t.qstNumber,error:formatErrorMessage(t.qstNumber,t.error.fieldRequiredError)})))};var c=function(e){var a;switch(e){case"CA":return h(A,null);case"ES":return h(T,null);default:return h("sl-input",Object.assign({required:true,exportparts:"label: input-label, base: input-base",class:o.Input,value:i.indirectTaxNumber,label:u(vatLabels[e]||"GENERAL"),disabled:n.loading||n.disabled},((a=i.errors)===null||a===void 0?void 0:a.indirectTaxNumber)&&{class:o.ErrorInput,helpText:d(vatLabels[e]||"GENERAL")},{id:"indirectTaxNumber",name:"/indirectTaxNumber"}))}};var v=c(i.selectedRegion);return h("div",{style:n.hide?{display:"none"}:{}},h("form",{class:o.Container},h("style",{type:"text/css"},styleString,vanillaStyle),h("hr",{class:o.HR}),h("div",{class:o.InputContainer},h("sl-select",Object.assign({required:true,class:o.Input,value:i.selectedRegion,exportparts:"label: input-label, base: input-base",label:t.selectedRegion,disabled:n.loading||n.disabled,"onSl-select":function(e){return s.onFormChange("selectedRegion",e)}},((a=i.errors)===null||a===void 0?void 0:a.selectedRegion)&&{class:o.ErrorInput,helpText:formatErrorMessage(t.selectedRegion,t.error.fieldRequiredError)},{id:"selectedRegion",name:"/selectedRegion"}),h("sl-input",{class:o.SearchInput,placeholder:t.searchForCountryText,onKeyDown:function(e){e.stopPropagation()},"onSl-input":function(e){s.setCountrySearch(e.target.value)}}),(l=e.data.countries)===null||l===void 0?void 0:l.map((function(e){return h("sl-menu-item",{value:e.countryCode},e.displayName)})),(r=e.data.allCountries)===null||r===void 0?void 0:r.map((function(e){return h("sl-menu-item",{value:e.countryCode,style:{display:"none"}},e.displayName)}))),v),h("hr",{class:o.HR})))};export{ADDRESS_REGIONS as A,InvoiceTableView as I,OtherRegionSlotView as O,INDIRECT_TAX_SPAIN_REGIONS as a,INDIRECT_TAX_PROVINCES as b,vatLabels as v};
|