@saasquatch/mint-components 1.15.0-147 → 1.15.0-149
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-45522353.js → IndirectTaxDetailsView-179e1891.js} +2 -2
- package/dist/cjs/{ShadowViewAddon-ddc6557e.js → ShadowViewAddon-2f76675c.js} +1 -1
- package/dist/cjs/{global-d85be54b.js → global-a02b0459.js} +18 -3
- 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 +4 -4
- package/dist/cjs/sqm-big-stat_44.cjs.entry.js +2 -2
- package/dist/cjs/sqm-code-verification.cjs.entry.js +1 -1
- package/dist/cjs/sqm-email-verification.cjs.entry.js +1 -1
- package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +1 -1
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-2d646ab5.js → sqm-portal-email-verification-view-e819c021.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-profile-view-2506db62.js → sqm-portal-profile-view-284e1c10.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -1
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +6 -6
- package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +2 -2
- package/dist/cjs/{utils-995d6e2f.js → utils-a4a91484.js} +1 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +1 -1
- package/dist/collection/global/styles.js +18 -3
- package/dist/collection/global/styles.ts +18 -3
- package/dist/esm/{IndirectTaxDetailsView-b8efccfa.js → IndirectTaxDetailsView-f85b8b8d.js} +2 -2
- package/dist/esm/{ShadowViewAddon-8fbe3727.js → ShadowViewAddon-b84ca8b8.js} +1 -1
- package/dist/esm/{global-988b0b1a.js → global-c523803e.js} +18 -3
- 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 +4 -4
- package/dist/esm/sqm-big-stat_44.entry.js +2 -2
- package/dist/esm/sqm-code-verification.entry.js +1 -1
- package/dist/esm/sqm-email-verification.entry.js +1 -1
- package/dist/esm/sqm-empty_4.entry.js +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm/sqm-pagination_3.entry.js +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-30b8b9ab.js → sqm-portal-email-verification-view-1c128788.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-45f092fe.js → sqm-portal-profile-view-4ca7fecf.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +2 -2
- package/dist/esm/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +6 -6
- package/dist/esm/sqm-tax-and-cash.entry.js +2 -2
- package/dist/esm/{utils-ac666da5.js → utils-b2440ba5.js} +1 -1
- package/dist/esm-es5/{IndirectTaxDetailsView-b8efccfa.js → IndirectTaxDetailsView-f85b8b8d.js} +1 -1
- package/dist/esm-es5/{ShadowViewAddon-8fbe3727.js → ShadowViewAddon-b84ca8b8.js} +1 -1
- package/dist/esm-es5/{global-988b0b1a.js → global-c523803e.js} +1 -1
- 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_44.entry.js +1 -1
- package/dist/esm-es5/sqm-code-verification.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-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-30b8b9ab.js → sqm-portal-email-verification-view-1c128788.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-45f092fe.js → sqm-portal-profile-view-4ca7fecf.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.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-tax-and-cash.entry.js +1 -1
- package/dist/esm-es5/{utils-ac666da5.js → utils-b2440ba5.js} +1 -1
- package/dist/mint-components/global/styles.ts +18 -3
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/p-079d7023.entry.js +33 -0
- package/dist/mint-components/{p-f15169ae.entry.js → p-0f131ab6.entry.js} +1 -1
- package/dist/mint-components/{p-8b05fca8.entry.js → p-1a3d738e.entry.js} +1 -1
- package/dist/mint-components/{p-94433c85.system.js → p-22df47d6.system.js} +1 -1
- package/dist/mint-components/{p-306e5061.js → p-253d102d.js} +1 -1
- package/dist/mint-components/{p-eced3969.system.entry.js → p-291342b2.system.entry.js} +1 -1
- package/dist/mint-components/{p-9e53ae07.entry.js → p-2a237eac.entry.js} +1 -1
- package/dist/mint-components/{p-f7a33af8.entry.js → p-35e4461d.entry.js} +1 -1
- package/dist/mint-components/{p-a1c1f2f0.system.entry.js → p-38c0257c.system.entry.js} +1 -1
- package/dist/mint-components/{p-923b36e0.system.entry.js → p-3bdb3fb6.system.entry.js} +1 -1
- package/dist/mint-components/{p-98553602.js → p-3e12f609.js} +1 -1
- package/dist/mint-components/{p-e4145e2d.system.entry.js → p-3eb1ac6e.system.entry.js} +1 -1
- package/dist/mint-components/{p-4752a352.entry.js → p-4a746954.entry.js} +2 -2
- package/dist/mint-components/{p-b89f58b4.system.js → p-5d287c6d.system.js} +1 -1
- package/dist/mint-components/{p-f5418c58.system.entry.js → p-73332d2b.system.entry.js} +1 -1
- package/dist/mint-components/{p-f2e3d7d7.js → p-762193bb.js} +1 -1
- package/dist/mint-components/{p-ca40b082.system.js → p-7de175a7.system.js} +1 -1
- package/dist/mint-components/{p-134b0ba0.js → p-7e0d1e4c.js} +33 -33
- package/dist/mint-components/{p-e70ba5bd.entry.js → p-8056908f.entry.js} +1 -1
- package/dist/mint-components/{p-bdc49032.system.entry.js → p-82065cc0.system.entry.js} +1 -1
- package/dist/mint-components/{p-24fe1ec5.entry.js → p-842e0395.entry.js} +1 -1
- package/dist/mint-components/{p-b0b17111.system.js → p-855e0ee8.system.js} +1 -1
- package/dist/mint-components/{p-c2267056.system.js → p-92dd2dd8.system.js} +1 -1
- package/dist/mint-components/{p-fb8cb33d.system.entry.js → p-99523d06.system.entry.js} +1 -1
- package/dist/mint-components/{p-ab77f617.system.entry.js → p-998bb48c.system.entry.js} +1 -1
- package/dist/mint-components/{p-655ce467.entry.js → p-9f3fcaaf.entry.js} +1 -1
- package/dist/mint-components/{p-7a2bc8a3.entry.js → p-a667bee3.entry.js} +1 -1
- package/dist/mint-components/{p-694599b4.system.entry.js → p-b3c04f8e.system.entry.js} +1 -1
- package/dist/mint-components/{p-06936aa4.system.entry.js → p-b4b12848.system.entry.js} +1 -1
- package/dist/mint-components/{p-81a0b9d7.entry.js → p-b98203d7.entry.js} +2 -2
- package/dist/mint-components/{p-892b241a.js → p-c41a84ab.js} +1 -1
- package/dist/mint-components/{p-d4885d60.system.entry.js → p-c7c33044.system.entry.js} +1 -1
- package/dist/mint-components/{p-b1ae6eba.system.js → p-d42c2c19.system.js} +1 -1
- package/dist/mint-components/{p-969f2d06.entry.js → p-df99fec4.entry.js} +1 -1
- package/dist/mint-components/{p-2e50f058.system.js → p-e068fcc3.system.js} +1 -1
- package/dist/mint-components/{p-976cc2ba.system.entry.js → p-ea271cae.system.entry.js} +1 -1
- package/dist/mint-components/{p-53b45196.entry.js → p-f5bb8e1b.entry.js} +1 -1
- package/dist/mint-components/{p-e4665a9d.system.entry.js → p-faefb1c3.system.entry.js} +1 -1
- package/dist/mint-components/{p-4c6accdc.js → p-fb139454.js} +1 -1
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/package.json +1 -1
- package/shoelace/assets/icons/twitter-x.svg +4 -0
- package/dist/mint-components/p-630c96ad.entry.js +0 -33
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saasquatch/mint-components",
|
|
3
3
|
"title": "Mint Components",
|
|
4
|
-
"version": "1.15.0-
|
|
4
|
+
"version": "1.15.0-149",
|
|
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",
|
|
@@ -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,33 +0,0 @@
|
|
|
1
|
-
import{r as t,h as e}from"./p-c7c11325.js";import"./p-134b0ba0.js";import{k as r,f as i,n as o}from"./p-63e29387.js";import{d as s,J as a,w as l,$ as n,i as u}from"./p-0ec54f97.js";import{c as d}from"./p-c1086930.js";import{g as m}from"./p-6951663b.js";import"./p-cef45012.js";import"./p-204861a6.js";import{P as c}from"./p-4c6accdc.js";import{i as v}from"./p-513f5d80.js";const f=s.gql`
|
|
2
|
-
query {
|
|
3
|
-
viewer {
|
|
4
|
-
... on User {
|
|
5
|
-
id
|
|
6
|
-
accountId
|
|
7
|
-
firstName
|
|
8
|
-
lastName
|
|
9
|
-
email
|
|
10
|
-
countryCode
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
`,h=s.gql`
|
|
15
|
-
mutation (
|
|
16
|
-
$id: String!
|
|
17
|
-
$accountId: String!
|
|
18
|
-
$firstName: String!
|
|
19
|
-
$lastName: String!
|
|
20
|
-
) {
|
|
21
|
-
upsertUser(
|
|
22
|
-
userInput: {
|
|
23
|
-
id: $id
|
|
24
|
-
accountId: $accountId
|
|
25
|
-
firstName: $firstName
|
|
26
|
-
lastName: $lastName
|
|
27
|
-
}
|
|
28
|
-
) {
|
|
29
|
-
firstName
|
|
30
|
-
lastName
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
`,p={country:"",email:"",firstName:"",lastName:"",errors:{},error:""},b=class{constructor(e){t(this,e),this.ignored=!0,this.firstnametext="First Name",this.lastnametext="Last Name",this.emailtext="Email",this.countrytext="Country",this.editProfileHeader="Edit your profile",this.editProfileSubHeader="Personal Information",this.submitChangeButtonText="Submit Changes",this.hideCountry=!1,this.networkRequestMessage="An error occurred while loading this page. Please refresh the page.",this.fieldEmptyText="Field is required",this.formErrorText="Please correct the errors below to update your profile.",this.submissionSuccessText="Your profile has been successfully updated.",o(this)}disconnectedCallback(){}render(){const t=u()?function(t){return d({states:{success:!1,loading:!1,submitDisabled:!1,showCountry:!t.hideCountry,user:{id:"01",accountId:"111100000",firstName:"Joe",lastName:"Smith",email:"jsmith@gmail.com",countryCode:"CA"},text:{firstnametext:t.firstnametext,lastnametext:t.lastnametext,emailtext:t.emailtext,countrytext:t.countrytext,editProfileHeader:t.editProfileHeader,editProfileSubHeader:t.editProfileSubHeader,submitChangeButtonText:t.submitChangeButtonText,submissionSuccessText:t.submissionSuccessText,fieldEmptyText:t.fieldEmptyText},formState:{country:"Canada",firstName:"Joe",lastName:"Smith",errors:null,error:""}},callbacks:{onSubmit:t=>console.log(t),onChange:t=>console.log(t)}},t.demoData||{},{arrayMerge:(t,e)=>e})}(m(this)):function(t){const e=a(),[o,s]=r(!1),[u,d]=r(void 0),[m,c]=r(p),b=l(f,{},!(null==e?void 0:e.jwt)),[N,g]=n(h);return i((()=>{(null==g?void 0:g.loading)||((null==g?void 0:g.errors)?c((t=>{var e,r,i;return{...t,error:null===(i=null===(r=null===(e=null==g?void 0:g.errors)||void 0===e?void 0:e.response)||void 0===r?void 0:r.errors)||void 0===i?void 0:i[0].message}})):(d((t=>{var e;return{...t,...null===(e=null==g?void 0:g.data)||void 0===e?void 0:e.upsertUser}})),(null==g?void 0:g.data)&&s(!0)))}),[null==g?void 0:g.loading]),i((()=>{var t,e;d((t=>{var e;return{...t,...null===(e=null==b?void 0:b.data)||void 0===e?void 0:e.viewer}})),c({...p,...null===(t=b.data)||void 0===t?void 0:t.viewer,...null===(e=g.data)||void 0===e?void 0:e.upsertUser})}),[null==b?void 0:b.data]),i((()=>{var e,r;(null===(e=null==g?void 0:g.errors)||void 0===e?void 0:e.message)&&c({...null===(r=b.data)||void 0===r?void 0:r.viewer,error:t.networkRequestMessage})}),[null==g?void 0:g.errors]),{states:{success:o,loading:(null==b?void 0:b.loading)||g.loading,submitDisabled:!1,showCountry:!t.hideCountry,formState:m,user:u,text:{firstnametext:t.firstnametext,lastnametext:t.lastnametext,countrytext:t.countrytext,emailtext:t.emailtext,editProfileHeader:t.editProfileHeader,editProfileSubHeader:t.editProfileSubHeader,submitChangeButtonText:t.submitChangeButtonText}},callbacks:{onSubmit:()=>{if(s(!1),m.firstName&&m.lastName)return N({id:null==e?void 0:e.id,accountId:null==e?void 0:e.accountId,firstName:m.firstName,lastName:m.lastName}),void c((t=>({...t,errors:{},error:""})));const r={};m.firstName||(r.firstName={message:t.fieldEmptyText}),m.lastName||(r.lastName={message:t.fieldEmptyText}),v(r)||c((e=>({...e,error:t.formErrorText}))),c((t=>({...t,errors:r})))},onChange:t=>{const{name:e,value:r}=t.target;c((t=>({...t,[e]:r})))}}}}(m(this));return e(c,Object.assign({},t))}};export{b as sqm_portal_profile}
|