@saasquatch/mint-components 1.15.0-140 → 1.15.0-142
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-92481647.js → IndirectTaxDetailsView-7f6a93d0.js} +2 -2
- package/dist/cjs/{ShadowViewAddon-5ab169b9.js → ShadowViewAddon-677229ca.js} +8 -9
- package/dist/cjs/{copy-text-view-2942fe20.js → copy-text-view-fdc30546.js} +2 -2
- package/dist/cjs/{global-0df1c47f.js → global-304d7dd5.js} +17 -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 +3 -3
- package/dist/cjs/sqm-big-stat_44.cjs.entry.js +3 -3
- 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 +2 -2
- package/dist/cjs/{sqm-portal-email-verification-view-bd4ec210.js → sqm-portal-email-verification-view-a5fb2542.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-profile-view-9f6772c0.js → sqm-portal-profile-view-48a96d6d.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 +7 -7
- package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +2 -2
- package/dist/cjs/{utils-ba8fc342.js → utils-a6522d22.js} +1 -1
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +6 -7
- package/dist/collection/components/views/copy-text-view.js +2 -2
- package/dist/collection/global/styles.js +17 -0
- package/dist/collection/global/styles.ts +17 -0
- package/dist/esm/{IndirectTaxDetailsView-67deb1d0.js → IndirectTaxDetailsView-6230d141.js} +2 -2
- package/dist/esm/{ShadowViewAddon-021e117a.js → ShadowViewAddon-f2d7befa.js} +8 -9
- package/dist/esm/{copy-text-view-a2667802.js → copy-text-view-47cbf0e4.js} +2 -2
- package/dist/esm/{global-200e3d35.js → global-cf7f0da3.js} +17 -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 +3 -3
- package/dist/esm/sqm-big-stat_44.entry.js +3 -3
- 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 +2 -2
- package/dist/esm/{sqm-portal-email-verification-view-6b046416.js → sqm-portal-email-verification-view-b0ba14e0.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-322e6649.js → sqm-portal-profile-view-ff58a280.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 +7 -7
- package/dist/esm/sqm-tax-and-cash.entry.js +2 -2
- package/dist/esm/{utils-325c4849.js → utils-51f47651.js} +1 -1
- package/dist/esm-es5/{IndirectTaxDetailsView-67deb1d0.js → IndirectTaxDetailsView-6230d141.js} +1 -1
- package/dist/esm-es5/{ShadowViewAddon-021e117a.js → ShadowViewAddon-f2d7befa.js} +1 -1
- package/dist/esm-es5/copy-text-view-47cbf0e4.js +1 -0
- package/dist/esm-es5/{global-200e3d35.js → global-cf7f0da3.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-6b046416.js → sqm-portal-email-verification-view-b0ba14e0.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-322e6649.js → sqm-portal-profile-view-ff58a280.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-325c4849.js → utils-51f47651.js} +1 -1
- package/dist/mint-components/global/styles.ts +17 -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-40601ea1.js → p-061d3efa.js} +1 -1
- package/dist/mint-components/{p-4b8c6fd2.system.entry.js → p-13d5c629.system.entry.js} +1 -1
- package/dist/mint-components/p-1b3c16f8.entry.js +33 -0
- package/dist/mint-components/{p-59d63018.entry.js → p-1dac71a2.entry.js} +1 -1
- package/dist/mint-components/{p-6ec042c7.system.entry.js → p-21db3fc4.system.entry.js} +1 -1
- package/dist/mint-components/{p-c9d17c23.system.entry.js → p-23b2f138.system.entry.js} +1 -1
- package/dist/mint-components/{p-c1d8b28d.system.entry.js → p-26199d9f.system.entry.js} +1 -1
- package/dist/mint-components/{p-7e51f5eb.system.entry.js → p-310da87e.system.entry.js} +1 -1
- package/dist/mint-components/{p-65411272.entry.js → p-36e33e25.entry.js} +1 -1
- package/dist/mint-components/{p-e3083901.entry.js → p-4258178f.entry.js} +1 -1
- package/dist/mint-components/{p-56e5d39c.system.js → p-47e30387.system.js} +1 -1
- package/dist/mint-components/{p-e90c16ea.system.js → p-47ee88dc.system.js} +1 -1
- package/dist/mint-components/{p-d8ae8320.js → p-4ff4d197.js} +1 -1
- package/dist/mint-components/{p-e6fa59bc.entry.js → p-50da103a.entry.js} +1 -1
- package/dist/mint-components/{p-5fdc28c3.entry.js → p-5b0a8b42.entry.js} +2 -2
- package/dist/mint-components/{p-c020a549.system.entry.js → p-63cf9fed.system.entry.js} +1 -1
- package/dist/mint-components/{p-21c12094.system.js → p-6a1583e8.system.js} +1 -1
- package/dist/mint-components/{p-0119e244.entry.js → p-756c4856.entry.js} +1 -1
- package/dist/mint-components/{p-c8b4d08d.system.entry.js → p-7ecb610b.system.entry.js} +1 -1
- package/dist/mint-components/{p-8c184d4b.system.js → p-8332f17d.system.js} +1 -1
- package/dist/mint-components/{p-46336db6.system.js → p-94e1f94a.system.js} +1 -1
- package/dist/mint-components/{p-c98f526c.system.js → p-a87ae6ab.system.js} +1 -1
- package/dist/mint-components/{p-6db40a60.entry.js → p-ad0076bd.entry.js} +1 -1
- package/dist/mint-components/{p-8ec70371.js → p-adde23bc.js} +1 -1
- package/dist/mint-components/{p-2352dd91.entry.js → p-b4ef2dfa.entry.js} +1 -1
- package/dist/mint-components/{p-cd827626.system.entry.js → p-b5f42155.system.entry.js} +1 -1
- package/dist/mint-components/p-bc2cce30.js +1 -0
- package/dist/mint-components/p-c096b985.js +448 -0
- package/dist/mint-components/{p-b39e5b44.entry.js → p-d790efeb.entry.js} +1 -1
- package/dist/mint-components/{p-582d1771.system.entry.js → p-e0d95369.system.entry.js} +1 -1
- package/dist/mint-components/{p-7a0ed7a9.system.entry.js → p-e13d75aa.system.entry.js} +1 -1
- package/dist/mint-components/{p-aa349f83.entry.js → p-e178cfb2.entry.js} +1 -1
- package/dist/mint-components/{p-8933514f.system.entry.js → p-e1f210d6.system.entry.js} +1 -1
- package/dist/mint-components/{p-9c7a614a.js → p-e5a4f49e.js} +1 -1
- package/dist/mint-components/{p-cb39dc04.system.js → p-e6c66511.system.js} +1 -1
- package/dist/mint-components/{p-4c3a9913.entry.js → p-e8078b7d.entry.js} +1 -1
- package/dist/mint-components/{p-2a20579d.system.entry.js → p-ee8543cc.system.entry.js} +1 -1
- package/dist/mint-components/{p-2fb29f43.system.entry.js → p-ef528b9a.system.entry.js} +1 -1
- package/dist/mint-components/{p-69782dfe.js → p-f655c9ae.js} +1 -1
- package/dist/mint-components/p-f9e466b8.system.js +1 -0
- package/dist/mint-components/{p-44e23242.entry.js → p-ffb1969e.entry.js} +1 -1
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/copy-text-view-a2667802.js +0 -1
- package/dist/mint-components/p-2c6fd7ae.entry.js +0 -33
- package/dist/mint-components/p-501c64e8.js +0 -448
- package/dist/mint-components/p-7da15a34.js +0 -1
- package/dist/mint-components/p-f31d74a0.system.js +0 -1
- package/shoelace/assets/icons/twitter-x.svg +0 -4
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-142",
|
|
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",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h}from"./index-b3a06de8.js";import{c as createStyleSheet}from"./JSS-67b5cff8.js";import{H as HostBlock}from"./mixins-f750863a.js";var vanillaStyle="\n :host{\n display: block; \n width: 100%;\n }\n";var textAlignStyle={right:"\nsl-input::part(input){\n text-align: right;\n}",center:" \nsl-input::part(input){\n text-align: center;\n}",left:""};var disabledStyles="\n sl-input::part(input){\n cursor: default;\n }\n";function CopyTextView(t){var o=t.buttonStyle,r=o===void 0?"icon":o;var e={HostBlock:HostBlock,inputStyle:{"&::part(input)":{textOverflow:"ellipsis",width:"100%",color:t.textColor||"var(--sl-input-color)"},"&::part(base)":{"--sl-input-border-radius":t.borderRadius+"px"||"var(--sqm-border-radius-normal)","--sl-input-border-color":"var(--sqm-border-color)","--sl-input-border-color-hover":"#999999","--sl-input-border-color-focus":"#999999","--sl-input-color-hover":"var(--sqm-input-color-hover)","--sl-input-color-focus":"var(--sqm-input-color-focus)","--sl-input-color-disabled":"var(--sqm-input-disabled-color)","--sl-input-background-color-focus":"var(--sqm-portal-background)","--sl-input-background-color-hover":"var(--sqm-portal-background)",cursor:"pointer",overflow:"visible",borderRadius:t.borderRadius+"px"||"var(--sqm-border-radius-normal)",background:t.backgroundColor||"var(--sqm-portal-background)",border:"var(--sqm-border-thickness) solid "+(t.borderColor||"var(--sqm-input-border-color)")},width:"100%"},icon:{"&::part(base)":{color:t.textColor||"var(--sqm-text)"}},inputErrorStyle:{},ContainerDiv:{display:"flex",alignItems:"flex-start",flexDirection:"column",justifyContent:"center",gap:"var(--sl-spacing-x-small)",width:"100%"},containerStyle:{display:"flex",alignItems:"center",gap:"var(--sl-spacing-x-small)",width:"100%"},errorTextStyle:{margin:"0",color:"var(--sqm-danger-color-text)"},notificationTextStyle:{margin:"0",color:"inherit"}};var l=createStyleSheet(e);var i=l.toString();var n=!t.loading&&t.error;var a=n?t.inputPlaceholderText:t.copyString;var s=n||t.loading||t.disabled;var c=t.buttonStyle==="button-below"?"bottom":t.buttonStyle==="button-outside"?"top":"top-end";var d=h("sl-tooltip",{trigger:"manual",content:t.tooltiptext,placement:c,disabled:t.disabled,open:t.open,skidding:t.buttonStyle==="icon"?-5:0,slot:"suffix"},r==="icon"?h("sl-icon-button",{class:l.classes.icon,exportparts:"base: icon-button-base",onClick:function(){var o;return(o=t.onClick)===null||o===void 0?void 0:o.call(t)},name:"files",disabled:s}):h("sl-button",{exportparts:"base: "+(t.buttonType||"primary")+"button-base",onClick:function(){var o;return(o=t.onClick)===null||o===void 0?void 0:o.call(t)},size:"medium",style:{width:""+(r==="button-below"&&"100%")},disabled:s,type:"primary"},t.copyButtonLabel||"Copy"));return h("div",{class:l.classes.ContainerDiv},h("style",{type:"text/css"},i,vanillaStyle,textAlignStyle[t.textAlign],s&&disabledStyles),h("div",{class:l.classes.containerStyle,style:{flexDirection:""+(r==="button-below"?"column":"row")}},h("sl-input",{class:l.classes.inputStyle+" "+(n?l.classes.inputErrorStyle:""),value:t.loading?"Loading...":a,readonly:true,disabled:s},r==="icon"&&d,n&&h("p",{slot:"help-text",class:l.classes.errorTextStyle},t.errorText)),(r==="button-outside"||r==="button-below")&&d),t.isCopied&&t.showNotificationText&&t.notificationText&&h("p",{part:"sqm-notification-text",class:l.classes.notificationTextStyle},t.notificationText))}export{CopyTextView as C};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import{r as t,h as e}from"./p-c7c11325.js";import"./p-69782dfe.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-9c7a614a.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:""},N=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),N=l(f,{},!(null==e?void 0:e.jwt)),[b,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==N?void 0:N.data)||void 0===e?void 0:e.viewer}})),c({...p,...null===(t=N.data)||void 0===t?void 0:t.viewer,...null===(e=g.data)||void 0===e?void 0:e.upsertUser})}),[null==N?void 0:N.data]),i((()=>{var e,r;(null===(e=null==g?void 0:g.errors)||void 0===e?void 0:e.message)&&c({...null===(r=N.data)||void 0===r?void 0:r.viewer,error:t.networkRequestMessage})}),[null==g?void 0:g.errors]),{states:{success:o,loading:(null==N?void 0:N.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 b({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{N as sqm_portal_profile}
|