@saasquatch/mint-components 2.2.0-6 → 2.2.0-8
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/{ShadowViewAddon-1c054d52.js → ShadowViewAddon-3b477e58.js} +429 -27
- package/dist/cjs/{data-c03e282a.js → data-89ac73dd.js} +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +48 -307
- package/dist/cjs/sqm-big-stat_46.cjs.entry.js +334 -36
- package/dist/cjs/sqm-code-verification.cjs.entry.js +1 -1
- package/dist/cjs/sqm-email-verification_2.cjs.entry.js +20 -13
- package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-partner-info-modal-view-97770d03.js → sqm-partner-info-modal-view-f6faecf5.js} +1 -1
- package/dist/cjs/{sqm-portal-container-view-70a47420.js → sqm-portal-container-view-757f921b.js} +5 -6
- package/dist/cjs/{sqm-portal-email-verification-view-d51c2a06.js → sqm-portal-email-verification-view-abb773a7.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
- package/dist/cjs/sqm-portal-forgot-password_6.cjs.entry.js +5 -5
- package/dist/cjs/{sqm-portal-profile-view-e6927959.js → sqm-portal-profile-view-3515e1e5.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-registration-form-view-fd48f1d3.js → sqm-portal-registration-form-view-a45f7a52.js} +1 -1
- package/dist/cjs/{sqm-portal-reset-password-view-d90d77f9.js → sqm-portal-reset-password-view-a767b044.js} +1 -1
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-verify-email-view-6258dcae.js → sqm-portal-verify-email-view-717d0633.js} +1 -1
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -1
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +176 -32
- package/dist/cjs/{sqm-text-span-view-8a32dd8c.js → sqm-text-span-view-b9e10f5d.js} +1 -1
- package/dist/cjs/sqm-text-span.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-user-info-form-view-4d56b339.js → sqm-user-info-form-view-0e1ddbe4.js} +3 -388
- package/dist/cjs/{usePayoutStatus-0a98ee05.js → useIndirectTaxForm-c3c1ec56.js} +291 -0
- package/dist/cjs/utils-a3b3d05b.js +478 -0
- package/dist/collection/components/sqm-big-stat/useBigStat.js +5 -6
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +1 -1
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +2 -3
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +1 -1
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal.js +4 -4
- package/dist/collection/components/sqm-partner-info-modal/usePartnerInfoModal.js +15 -8
- package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +6 -7
- package/dist/collection/components/sqm-portal-google-login/sqm-portal-google-login.js +1 -1
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +1 -1
- package/dist/collection/components/sqm-referral-iframe/ReferralIframe.stories.js +1 -0
- package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe-view.js +1 -1
- package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe.js +27 -1
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +0 -1
- package/dist/collection/components/sqm-share-link/ShareLink.stories.js +136 -11
- package/dist/collection/components/sqm-share-link/UseShareLink.stories.js +14 -5
- package/dist/collection/components/sqm-share-link/sqm-share-link-view.js +192 -0
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +935 -48
- package/dist/collection/components/sqm-share-link/useShareLink.js +227 -14
- package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +1 -1
- package/dist/collection/components/tax-and-cash/data.js +1 -0
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/formDefinitions.js +19 -1
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +50 -0
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +4 -4
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +65 -7
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +49 -3
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +2 -2
- package/dist/esm/{ShadowViewAddon-4d554869.js → ShadowViewAddon-e115fa1c.js} +431 -30
- package/dist/esm/{data-017e5ef2.js → data-8698cbc6.js} +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-banking-info-form_10.entry.js +36 -295
- package/dist/esm/sqm-big-stat_46.entry.js +333 -35
- package/dist/esm/sqm-code-verification.entry.js +1 -1
- package/dist/esm/sqm-email-verification_2.entry.js +20 -13
- package/dist/esm/sqm-empty_4.entry.js +1 -1
- package/dist/esm/{sqm-partner-info-modal-view-5709904e.js → sqm-partner-info-modal-view-d6f3a215.js} +1 -1
- package/dist/esm/{sqm-portal-container-view-a8c708cd.js → sqm-portal-container-view-200c9df8.js} +6 -7
- package/dist/esm/{sqm-portal-email-verification-view-58bad294.js → sqm-portal-email-verification-view-fde1eb35.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
- package/dist/esm/sqm-portal-forgot-password_6.entry.js +5 -5
- package/dist/esm/{sqm-portal-profile-view-115bad4a.js → sqm-portal-profile-view-2018590a.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +2 -2
- package/dist/esm/{sqm-portal-registration-form-view-9bf30b56.js → sqm-portal-registration-form-view-79265df5.js} +1 -1
- package/dist/esm/{sqm-portal-reset-password-view-f8d1689c.js → sqm-portal-reset-password-view-f84c04cf.js} +1 -1
- package/dist/esm/sqm-portal-reset-password.entry.js +2 -2
- package/dist/esm/{sqm-portal-verify-email-view-c053ead1.js → sqm-portal-verify-email-view-590f964b.js} +1 -1
- package/dist/esm/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +174 -30
- package/dist/esm/{sqm-text-span-view-4db9e33f.js → sqm-text-span-view-72f43dff.js} +1 -1
- package/dist/esm/sqm-text-span.entry.js +1 -1
- package/dist/esm/{sqm-user-info-form-view-d13f9d3e.js → sqm-user-info-form-view-e1ba6009.js} +3 -385
- package/dist/esm/{usePayoutStatus-227ae365.js → useIndirectTaxForm-b2888ea5.js} +291 -3
- package/dist/esm/utils-4f5cd04c.js +467 -0
- package/dist/esm-es5/ShadowViewAddon-e115fa1c.js +1 -0
- package/dist/esm-es5/data-8698cbc6.js +1 -0
- 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-big-stat_46.entry.js +1 -1
- package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification_2.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/{sqm-partner-info-modal-view-5709904e.js → sqm-partner-info-modal-view-d6f3a215.js} +1 -1
- package/dist/esm-es5/sqm-portal-container-view-200c9df8.js +1 -0
- package/dist/esm-es5/{sqm-portal-email-verification-view-58bad294.js → sqm-portal-email-verification-view-fde1eb35.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password_6.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-115bad4a.js → sqm-portal-profile-view-2018590a.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-registration-form-view-9bf30b56.js → sqm-portal-registration-form-view-79265df5.js} +1 -1
- package/dist/esm-es5/{sqm-portal-reset-password-view-f8d1689c.js → sqm-portal-reset-password-view-f84c04cf.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-c053ead1.js → sqm-portal-verify-email-view-590f964b.js} +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/{sqm-text-span-view-4db9e33f.js → sqm-text-span-view-72f43dff.js} +1 -1
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/sqm-user-info-form-view-e1ba6009.js +1 -0
- package/dist/esm-es5/useIndirectTaxForm-b2888ea5.js +6 -0
- package/dist/esm-es5/utils-4f5cd04c.js +1 -0
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-4034f157.js → p-0afa6148.js} +1 -1
- package/dist/mint-components/p-0b1e90fe.system.js +1 -0
- package/dist/mint-components/{p-731c4d33.entry.js → p-13d1b10d.entry.js} +1 -1
- package/dist/mint-components/{p-b1b20d42.entry.js → p-1d398dbc.entry.js} +1 -1
- package/dist/mint-components/p-1e6a2945.js +1 -0
- package/dist/mint-components/p-1efb42e2.js +499 -0
- package/dist/mint-components/p-1f387c7b.system.js +1 -1
- package/dist/mint-components/{p-d6ccb6fc.entry.js → p-2ed13619.entry.js} +1 -1
- package/dist/mint-components/{p-b1765c78.system.js → p-31815fb6.system.js} +1 -1
- package/dist/mint-components/p-335a5736.entry.js +1 -0
- package/dist/mint-components/{p-dbc8afaa.system.entry.js → p-33ca28ba.system.entry.js} +1 -1
- package/dist/mint-components/{p-0f042aa6.entry.js → p-3596e241.entry.js} +2 -2
- package/dist/mint-components/{p-1faa6ddf.system.entry.js → p-37e24621.system.entry.js} +1 -1
- package/dist/mint-components/{p-dafe30c3.entry.js → p-4d73a616.entry.js} +1 -1
- package/dist/mint-components/{p-9ba8b28b.system.entry.js → p-51ae6716.system.entry.js} +1 -1
- package/dist/mint-components/p-58c24352.system.js +6 -0
- package/dist/mint-components/{p-00046ec1.js → p-5c52100b.js} +1 -0
- package/dist/mint-components/{p-f368f04a.system.js → p-686dd5eb.system.js} +1 -1
- package/dist/mint-components/{p-379cb9f1.system.js → p-7562cd98.system.js} +1 -1
- package/dist/mint-components/{p-bd972473.system.js → p-7628e56f.system.js} +1 -1
- package/dist/mint-components/{p-d71a8b38.entry.js → p-7cbdf341.entry.js} +2 -2
- package/dist/mint-components/p-7d2d9ef9.system.js +1 -0
- package/dist/mint-components/{p-8d073bdf.entry.js → p-84495fb8.entry.js} +1 -1
- package/dist/mint-components/{p-cfba6b4e.system.entry.js → p-86d20b47.system.entry.js} +1 -1
- package/dist/mint-components/{p-71561bb2.system.entry.js → p-8899ff38.system.entry.js} +1 -1
- package/dist/mint-components/p-9674856e.entry.js +9 -0
- package/dist/mint-components/p-9c1f5317.system.js +1 -0
- package/dist/mint-components/p-9f48640d.js +1 -0
- package/dist/mint-components/{p-df88dcaa.system.js → p-a4825ec2.system.js} +1 -1
- package/dist/mint-components/p-a88b8165.system.entry.js +1 -0
- package/dist/mint-components/p-abe9f5b1.js +99 -0
- package/dist/mint-components/{p-31edeff4.system.js → p-ae2f610e.system.js} +1 -1
- package/dist/mint-components/p-b222bace.system.entry.js +1 -0
- package/dist/mint-components/{p-45e2a83a.js → p-b3ad957c.js} +1 -1
- package/dist/mint-components/{p-2ab31786.js → p-b871d158.js} +1 -1
- package/dist/mint-components/p-b96ed8eb.js +1 -0
- package/dist/mint-components/p-bbd41807.entry.js +291 -0
- package/dist/mint-components/{p-9b15ee47.system.js → p-be6a0dee.system.js} +1 -1
- package/dist/mint-components/{p-a7f72a66.js → p-bee4af5d.js} +1 -1
- package/dist/mint-components/{p-0102ad17.system.entry.js → p-c0f8f977.system.entry.js} +1 -1
- package/dist/mint-components/{p-50d959bd.js → p-c813ec64.js} +1 -1
- package/dist/mint-components/p-cdabd9de.system.js +1 -0
- package/dist/mint-components/{p-e516e8ca.system.entry.js → p-cfc35705.system.entry.js} +1 -1
- package/dist/mint-components/p-d2ede7cd.system.entry.js +1 -0
- package/dist/mint-components/{p-e1292288.system.entry.js → p-d3b1ab20.system.entry.js} +1 -1
- package/dist/mint-components/p-db6bf7cf.system.entry.js +1 -0
- package/dist/mint-components/p-e30abc44.js +1 -0
- package/dist/mint-components/{p-3218bb1d.entry.js → p-e506bf7f.entry.js} +1 -1
- package/dist/mint-components/{p-ae4994e1.js → p-e8e7af06.js} +1 -1
- package/dist/mint-components/p-ebc519bc.system.js +1 -0
- package/dist/mint-components/{p-eee0bcf4.entry.js → p-ef32fa8f.entry.js} +1 -1
- package/dist/mint-components/{p-ca5b9f4d.system.entry.js → p-fa85ea51.system.entry.js} +1 -1
- package/dist/mint-components/p-ffcebe78.entry.js +83 -0
- package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +1 -1
- package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe-view.d.ts +1 -0
- package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe.d.ts +5 -0
- package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +9 -0
- package/dist/types/components/sqm-share-link/UseShareLink.stories.d.ts +6 -0
- package/dist/types/components/sqm-share-link/sqm-share-link-view.d.ts +41 -0
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +195 -2
- package/dist/types/components/sqm-share-link/useShareLink.d.ts +33 -4
- package/dist/types/components/tax-and-cash/data.d.ts +2 -0
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/formDefinitions.d.ts +6 -0
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +8 -0
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.d.ts +2 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +10 -0
- package/dist/types/components.d.ts +397 -4
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/readme.md +60 -1
- package/shoelace/assets/icons/twitter-x.svg +4 -0
- package/dist/cjs/utils-15ce04e3.js +0 -93
- package/dist/esm/utils-17daa419.js +0 -85
- package/dist/esm-es5/ShadowViewAddon-4d554869.js +0 -1
- package/dist/esm-es5/data-017e5ef2.js +0 -1
- package/dist/esm-es5/sqm-portal-container-view-a8c708cd.js +0 -1
- package/dist/esm-es5/sqm-user-info-form-view-d13f9d3e.js +0 -1
- package/dist/esm-es5/usePayoutStatus-227ae365.js +0 -6
- package/dist/esm-es5/utils-17daa419.js +0 -1
- package/dist/mint-components/p-00dd7f08.js +0 -1
- package/dist/mint-components/p-3254fbb4.entry.js +0 -291
- package/dist/mint-components/p-4a8ffa03.system.js +0 -1
- package/dist/mint-components/p-4e34bcb1.system.js +0 -1
- package/dist/mint-components/p-53d90eb5.js +0 -463
- package/dist/mint-components/p-5e300ec1.system.js +0 -6
- package/dist/mint-components/p-614723aa.js +0 -1
- package/dist/mint-components/p-6af71f23.entry.js +0 -9
- package/dist/mint-components/p-6c23abd8.entry.js +0 -1
- package/dist/mint-components/p-753d06ef.entry.js +0 -133
- package/dist/mint-components/p-7aace2b3.system.js +0 -1
- package/dist/mint-components/p-b0ab1065.system.entry.js +0 -1
- package/dist/mint-components/p-b52a7da9.system.entry.js +0 -1
- package/dist/mint-components/p-b699f76e.system.js +0 -1
- package/dist/mint-components/p-b6a1e2ac.js +0 -1
- package/dist/mint-components/p-b7370480.js +0 -1
- package/dist/mint-components/p-ce7d824b.js +0 -49
- package/dist/mint-components/p-e93cdcbd.system.js +0 -1
- package/dist/mint-components/p-eb285d38.system.entry.js +0 -1
- package/dist/mint-components/p-f782ff10.system.entry.js +0 -1
- package/docs/stats.json +0 -122783
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saasquatch/mint-components",
|
|
3
3
|
"title": "Mint Components",
|
|
4
|
-
"version": "2.2.0-
|
|
4
|
+
"version": "2.2.0-8",
|
|
5
5
|
"description": "A minimal design library with components for referral and loyalty experiences. Built with Shoelace components by Saasquatch.",
|
|
6
6
|
"icon": "https://res.cloudinary.com/saasquatch/image/upload/v1652219900/squatch-assets/For_Mint.svg",
|
|
7
7
|
"raisins": "docs/raisins.json",
|
package/readme.md
CHANGED
|
@@ -4,7 +4,66 @@
|
|
|
4
4
|
|
|
5
5
|
Mint components for the SaaSquatch content platform. Built with Stencil.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## Contributing
|
|
8
|
+
|
|
9
|
+
### Version Management with Changesets
|
|
10
|
+
|
|
11
|
+
This project uses [Changesets](https://github.com/changesets/changesets) to manage versioning and changelogs.
|
|
12
|
+
|
|
13
|
+
#### Adding a Changeset
|
|
14
|
+
|
|
15
|
+
When you make changes that should be included in the next release, create a changeset:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npm run changeset
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Follow the prompts to:
|
|
22
|
+
|
|
23
|
+
1. Select the type of change (major, minor, or patch)
|
|
24
|
+
2. Provide a summary of your changes
|
|
25
|
+
|
|
26
|
+
This will create a new file in the `.changeset` directory that will be used to automatically update the version and changelog when the changes are released.
|
|
27
|
+
|
|
28
|
+
#### Releasing a New Version
|
|
29
|
+
|
|
30
|
+
When changesets are merged to the `master` branch, the mint-components release workflow will automatically:
|
|
31
|
+
|
|
32
|
+
1. Create or update a "Version Packages" pull request that:
|
|
33
|
+
- Bumps the version in `package.json`
|
|
34
|
+
- Updates `package-lock.json`
|
|
35
|
+
- Updates `CHANGELOG.md` with all changeset summaries
|
|
36
|
+
- Removes the processed changeset files
|
|
37
|
+
|
|
38
|
+
2. When you're ready to release, simply **merge the "Version Packages" PR** to `master`
|
|
39
|
+
|
|
40
|
+
3. The workflow will then automatically:
|
|
41
|
+
- Publish the new version to npm
|
|
42
|
+
- Deploy the production Stencilbook site for mint-components
|
|
43
|
+
- Create a git tag for the release
|
|
44
|
+
|
|
45
|
+
mint-components stable releases use the mint-specific **Mint Components Release** workflow (Changesets), and prereleases use the shared **Publish Package** workflow.
|
|
46
|
+
|
|
47
|
+
**Local `npm publish` is blocked.** A `prepublishOnly` script in `package.json` aborts publishes that aren't running in CI (where `CI=true`). All publishes must go through the GitHub Actions workflows below.
|
|
48
|
+
|
|
49
|
+
#### Manual Development Releases (Prereleases)
|
|
50
|
+
|
|
51
|
+
For development and testing purposes, use the shared **Publish Package** GitHub Actions workflow:
|
|
52
|
+
|
|
53
|
+
1. Run the workflow from the branch you want to publish.
|
|
54
|
+
2. Set `package` to `mint-components`.
|
|
55
|
+
3. Set `increment-type` to `prerelease`. The workflow rejects `patch` / `minor` / `major` for mint-components — stable releases must go through the **Mint Components Release** (Changesets) workflow.
|
|
56
|
+
|
|
57
|
+
The workflow will:
|
|
58
|
+
|
|
59
|
+
- Compute the next semver from `package.json` (e.g. `2.1.8` → `2.1.9-0` for `prerelease`)
|
|
60
|
+
- Build mint-components automatically via the `prepack` lifecycle script
|
|
61
|
+
- Publish to npm with `--access public --provenance`, tagged `next` for prereleases or `latest` for stable
|
|
62
|
+
- Commit the version bump and create a signed `@saasquatch/mint-components@<version>` git tag via `saasquatch/git-commit-action`
|
|
63
|
+
|
|
64
|
+
Stable releases should still flow through `master` via the Changesets "Version Packages" PR. When the next stable Changesets release runs, `changeset version` will compute the next stable version from changesets and overwrite any manual prerelease version in `package.json` — that is intentional.
|
|
65
|
+
|
|
66
|
+
## About Stencil
|
|
8
67
|
|
|
9
68
|
Stencil is a compiler for building fast web apps using Web Components.
|
|
10
69
|
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M0 2C0 0.895431 0.895431 0 2 0H14C15.1046 0 16 0.895431 16 2V14C16 15.1046 15.1046 16 14 16H2C0.895431 16 0 15.1046 0 14V2Z" fill="currentColor"/>
|
|
3
|
+
<path d="M8.86754 7.23214L12.5378 3H11.6681L8.48117 6.67471L5.93579 3H3L6.84911 8.55681L3 12.9949H3.86979L7.23525 9.11425L9.92336 12.9949H12.8592L8.86732 7.23214H8.86754ZM7.67624 8.60577L7.28624 8.05244L4.18319 3.64951H5.51914L8.02334 7.20281L8.41333 7.75615L11.6685 12.3749H10.3325L7.67624 8.60598V8.60577Z" fill="white"/>
|
|
4
|
+
</svg>
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const index = require('./index-8277cbb3.js');
|
|
4
|
-
const global = require('./global-b7b1b8fe.js');
|
|
5
|
-
const JSS = require('./JSS-8503a151.js');
|
|
6
|
-
|
|
7
|
-
const style = {
|
|
8
|
-
Container: {
|
|
9
|
-
display: "flex",
|
|
10
|
-
flexDirection: "column",
|
|
11
|
-
gap: "35px",
|
|
12
|
-
},
|
|
13
|
-
HeaderContainer: {
|
|
14
|
-
display: "flex",
|
|
15
|
-
flexDirection: "column",
|
|
16
|
-
gap: "10px",
|
|
17
|
-
},
|
|
18
|
-
};
|
|
19
|
-
const sheet = JSS.createStyleSheet(style);
|
|
20
|
-
const styleString = sheet.toString();
|
|
21
|
-
const LoadingView = () => {
|
|
22
|
-
return (index.h("div", { class: sheet.classes.Container },
|
|
23
|
-
index.h("style", { type: "text/css" }, styleString),
|
|
24
|
-
index.h("sqm-skeleton", { width: "45%", height: "40px !important" }),
|
|
25
|
-
index.h("div", { class: sheet.classes.HeaderContainer },
|
|
26
|
-
index.h("sqm-skeleton", { width: "15%" }),
|
|
27
|
-
index.h("sqm-skeleton", { width: "25%", height: "30px !important" })),
|
|
28
|
-
index.h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
29
|
-
index.h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
30
|
-
index.h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
31
|
-
index.h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
32
|
-
index.h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
33
|
-
index.h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
34
|
-
index.h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
35
|
-
index.h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
36
|
-
index.h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
37
|
-
index.h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
38
|
-
index.h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
39
|
-
index.h("sqm-skeleton", { width: "15%" }),
|
|
40
|
-
index.h("sqm-skeleton", { width: "80px", height: "30px !important" })));
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
function validTaxDocument(requiredType) {
|
|
44
|
-
const validTypes = ["W9", "W8BENE", "W8BEN"];
|
|
45
|
-
if (validTypes.includes(requiredType))
|
|
46
|
-
return true;
|
|
47
|
-
return false;
|
|
48
|
-
}
|
|
49
|
-
const objectIsFull = (obj) => {
|
|
50
|
-
return !Object.keys(obj).find((k) => obj[k] == undefined);
|
|
51
|
-
};
|
|
52
|
-
const taxTypeToName = (taxType) => {
|
|
53
|
-
switch (taxType) {
|
|
54
|
-
case "W9":
|
|
55
|
-
return "W-9";
|
|
56
|
-
case "W8BEN":
|
|
57
|
-
case "W8BENE":
|
|
58
|
-
return "W-8";
|
|
59
|
-
default:
|
|
60
|
-
return "";
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
function validateBillingField(regex, value) {
|
|
64
|
-
const trimmed = value.trim();
|
|
65
|
-
const idx = trimmed.search(regex);
|
|
66
|
-
return idx > -1;
|
|
67
|
-
}
|
|
68
|
-
const formatErrorMessage = (fieldName, errorMessage) => {
|
|
69
|
-
return global.intl.formatMessage({
|
|
70
|
-
id: fieldName,
|
|
71
|
-
defaultMessage: errorMessage,
|
|
72
|
-
}, {
|
|
73
|
-
fieldName,
|
|
74
|
-
});
|
|
75
|
-
};
|
|
76
|
-
function getCountryObj({ countryCode, locale, }) {
|
|
77
|
-
// @ts-ignore DisplayNames not in Intl type
|
|
78
|
-
const displayName = new Intl.DisplayNames([locale], {
|
|
79
|
-
type: "region",
|
|
80
|
-
}).of(countryCode);
|
|
81
|
-
return {
|
|
82
|
-
countryCode,
|
|
83
|
-
displayName,
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
exports.LoadingView = LoadingView;
|
|
88
|
-
exports.formatErrorMessage = formatErrorMessage;
|
|
89
|
-
exports.getCountryObj = getCountryObj;
|
|
90
|
-
exports.objectIsFull = objectIsFull;
|
|
91
|
-
exports.taxTypeToName = taxTypeToName;
|
|
92
|
-
exports.validTaxDocument = validTaxDocument;
|
|
93
|
-
exports.validateBillingField = validateBillingField;
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { h } from './index-38ad4957.js';
|
|
2
|
-
import { i as intl } from './global-75e96214.js';
|
|
3
|
-
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
4
|
-
|
|
5
|
-
const style = {
|
|
6
|
-
Container: {
|
|
7
|
-
display: "flex",
|
|
8
|
-
flexDirection: "column",
|
|
9
|
-
gap: "35px",
|
|
10
|
-
},
|
|
11
|
-
HeaderContainer: {
|
|
12
|
-
display: "flex",
|
|
13
|
-
flexDirection: "column",
|
|
14
|
-
gap: "10px",
|
|
15
|
-
},
|
|
16
|
-
};
|
|
17
|
-
const sheet = createStyleSheet(style);
|
|
18
|
-
const styleString = sheet.toString();
|
|
19
|
-
const LoadingView = () => {
|
|
20
|
-
return (h("div", { class: sheet.classes.Container },
|
|
21
|
-
h("style", { type: "text/css" }, styleString),
|
|
22
|
-
h("sqm-skeleton", { width: "45%", height: "40px !important" }),
|
|
23
|
-
h("div", { class: sheet.classes.HeaderContainer },
|
|
24
|
-
h("sqm-skeleton", { width: "15%" }),
|
|
25
|
-
h("sqm-skeleton", { width: "25%", height: "30px !important" })),
|
|
26
|
-
h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
27
|
-
h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
28
|
-
h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
29
|
-
h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
30
|
-
h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
31
|
-
h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
32
|
-
h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
33
|
-
h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
34
|
-
h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
35
|
-
h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
36
|
-
h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
37
|
-
h("sqm-skeleton", { width: "15%" }),
|
|
38
|
-
h("sqm-skeleton", { width: "80px", height: "30px !important" })));
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
function validTaxDocument(requiredType) {
|
|
42
|
-
const validTypes = ["W9", "W8BENE", "W8BEN"];
|
|
43
|
-
if (validTypes.includes(requiredType))
|
|
44
|
-
return true;
|
|
45
|
-
return false;
|
|
46
|
-
}
|
|
47
|
-
const objectIsFull = (obj) => {
|
|
48
|
-
return !Object.keys(obj).find((k) => obj[k] == undefined);
|
|
49
|
-
};
|
|
50
|
-
const taxTypeToName = (taxType) => {
|
|
51
|
-
switch (taxType) {
|
|
52
|
-
case "W9":
|
|
53
|
-
return "W-9";
|
|
54
|
-
case "W8BEN":
|
|
55
|
-
case "W8BENE":
|
|
56
|
-
return "W-8";
|
|
57
|
-
default:
|
|
58
|
-
return "";
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
function validateBillingField(regex, value) {
|
|
62
|
-
const trimmed = value.trim();
|
|
63
|
-
const idx = trimmed.search(regex);
|
|
64
|
-
return idx > -1;
|
|
65
|
-
}
|
|
66
|
-
const formatErrorMessage = (fieldName, errorMessage) => {
|
|
67
|
-
return intl.formatMessage({
|
|
68
|
-
id: fieldName,
|
|
69
|
-
defaultMessage: errorMessage,
|
|
70
|
-
}, {
|
|
71
|
-
fieldName,
|
|
72
|
-
});
|
|
73
|
-
};
|
|
74
|
-
function getCountryObj({ countryCode, locale, }) {
|
|
75
|
-
// @ts-ignore DisplayNames not in Intl type
|
|
76
|
-
const displayName = new Intl.DisplayNames([locale], {
|
|
77
|
-
type: "region",
|
|
78
|
-
}).of(countryCode);
|
|
79
|
-
return {
|
|
80
|
-
countryCode,
|
|
81
|
-
displayName,
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export { LoadingView as L, validTaxDocument as a, formatErrorMessage as f, getCountryObj as g, objectIsFull as o, taxTypeToName as t, validateBillingField as v };
|