@saasquatch/mint-components 1.14.7-0 → 1.14.7-10

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.
Files changed (50) hide show
  1. package/dist/cjs/{ShadowViewAddon-3c344355.js → ShadowViewAddon-d79686c7.js} +1 -1
  2. package/dist/cjs/sqm-big-stat_43.cjs.entry.js +9 -2
  3. package/dist/cjs/sqm-lead-checkbox-field-view-34d94919.js +83 -0
  4. package/dist/cjs/sqm-lead-checkbox-field.cjs.entry.js +8 -82
  5. package/dist/cjs/sqm-stencilbook.cjs.entry.js +56 -3
  6. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +1 -1
  7. package/dist/collection/components/sqm-lead-form/LeadCheckboxField.stories.js +4 -63
  8. package/dist/collection/components/sqm-lead-form/sqm-lead-checkbox-field-view.js +24 -7
  9. package/dist/collection/components/sqm-lead-form/sqm-lead-checkbox-field.js +5 -9
  10. package/dist/collection/components/sqm-lead-form/useCheckboxField.js +1 -14
  11. package/dist/collection/components/sqm-lead-form/useLeadForm.js +8 -1
  12. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +2 -0
  13. package/dist/esm/{ShadowViewAddon-64194d20.js → ShadowViewAddon-88ca6579.js} +1 -1
  14. package/dist/esm/sqm-big-stat_43.entry.js +9 -2
  15. package/dist/esm/sqm-lead-checkbox-field-view-a8c1c78e.js +81 -0
  16. package/dist/esm/sqm-lead-checkbox-field.entry.js +12 -86
  17. package/dist/esm/sqm-stencilbook.entry.js +56 -3
  18. package/dist/esm-es5/ShadowViewAddon-88ca6579.js +1 -0
  19. package/dist/esm-es5/sqm-big-stat_43.entry.js +1 -1
  20. package/dist/esm-es5/sqm-lead-checkbox-field-view-a8c1c78e.js +1 -0
  21. package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
  22. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  23. package/dist/mint-components/mint-components.esm.js +1 -1
  24. package/dist/mint-components/p-00df0cac.js +1 -0
  25. package/dist/mint-components/p-0a6dd9ce.system.entry.js +1 -0
  26. package/dist/mint-components/p-0b4cac9f.system.entry.js +1 -0
  27. package/dist/mint-components/p-2011095e.js +394 -0
  28. package/dist/mint-components/p-2ad84d3e.system.entry.js +1 -0
  29. package/dist/mint-components/p-37996351.system.js +1 -1
  30. package/dist/mint-components/p-48c69c2d.entry.js +1 -0
  31. package/dist/mint-components/p-8a8750b2.system.js +1 -0
  32. package/dist/mint-components/p-95b88eb6.system.js +1 -0
  33. package/dist/mint-components/{p-f60d1ae9.entry.js → p-9743b3d1.entry.js} +2 -2
  34. package/dist/mint-components/{p-851eaf57.entry.js → p-c45a40b0.entry.js} +2 -2
  35. package/dist/types/components/sqm-lead-form/LeadCheckboxField.stories.d.ts +0 -27
  36. package/dist/types/components/sqm-lead-form/sqm-lead-checkbox-field-view.d.ts +0 -4
  37. package/dist/types/components/sqm-lead-form/useCheckboxField.d.ts +1 -6
  38. package/dist/types/global/android.d.ts +7 -0
  39. package/dist/types/global/demo.d.ts +2 -0
  40. package/dist/types/stories/features.d.ts +4 -0
  41. package/dist/types/stories/templates.d.ts +4 -0
  42. package/docs/docs.docx +0 -0
  43. package/package.json +1 -1
  44. package/dist/esm-es5/ShadowViewAddon-64194d20.js +0 -1
  45. package/dist/mint-components/p-0d94d81a.system.js +0 -1
  46. package/dist/mint-components/p-10a8ecae.system.entry.js +0 -1
  47. package/dist/mint-components/p-214c7807.entry.js +0 -1
  48. package/dist/mint-components/p-30a11ec0.js +0 -394
  49. package/dist/mint-components/p-589962db.system.entry.js +0 -1
  50. package/dist/mint-components/p-eaf1a8a6.system.entry.js +0 -1
@@ -1,4 +1,4 @@
1
- import{r as e,h as t,c as r}from"./p-f708da7b.js";import{n as s,f as a,i,k as n,m as o,u as l,b as c,j as d}from"./p-cd651f81.js";import{i as u}from"./p-65069b66.js";import{i as h,_ as m,d as p,J as v,H as g,$ as f,w as b,B as y,u as x,L as w,y as k,j as E,r as C,V as I,Q as S,k as R}from"./p-94a876b9.js";import{j as _}from"./p-e7e129ac.js";import{c as N}from"./p-c1086930.js";import{g as T,a as q}from"./p-9ec99ced.js";import{c as M}from"./p-cef45012.js";import"./p-3f7b81b8.js";import"./p-91521e9d.js";import{C as A}from"./p-31015791.js";import{a as L}from"./p-4e451f75.js";import{u as D}from"./p-19ccb4ce.js";import"./p-5bedb58c.js";import"./p-c9f1dde7.js";import{p as P}from"./p-8d363802.js";import{R as F,u as O}from"./p-98698131.js";import{R as V,L as $,u as j}from"./p-f98a4354.js";import{P as U}from"./p-dbcb5359.js";import{u as B}from"./p-4e526a94.js";import{A as z}from"./p-121cdc60.js";import{i as H}from"./p-8c23d1b8.js";import{b as W,W as G,B as Y,U as K,J as Z,i as Q,K as X,D as J,E as ee,H as te,I as re,Q as se,O as ae,X as ie,L as ne,N as oe,C as le,d as ce,h as de,P as ue,e as he,R as me,Y as pe,j as ve,a as ge,S as fe,u as be,c as ye,T as xe}from"./p-30a11ec0.js";import"./p-a9f4ddb1.js";import{u as we}from"./p-11dff275.js";const ke=class{constructor(t){e(this,t),this.flexReverse=!1,this.ignored=!0,s(this)}disconnectedCallback(){}render(){var e;const{props:r,label:s}=h()?W(this):G(this),a=!!(null===(e=m().innerHTML)||void 0===e?void 0:e.trim()),i=t("slot",{name:"label"},a?t("slot",null):s);return t(Y,Object.assign({},r,{labelSlot:i}))}},Ee=class{constructor(t){e(this,t),s(this)}disconnectedCallback(){}render(){var e,s;const i=null!==(e=function(e){if(e)try{return K(e)}catch{}}(this.brandColor))&&void 0!==e?e:"",n=(null!==(s=this.brandFont)&&void 0!==s?s:"Nunito Sans").trim()||void 0;a((()=>{if(!n)return;const e=document.createElement("link");return e.setAttribute("href",function(...e){return`https://fonts.googleapis.com/css2?${e.map((e=>`family=${encodeURIComponent(e)}`)).join("&")}`}(n)),e.setAttribute("rel","stylesheet"),document.head.appendChild(e),()=>document.head.removeChild(e)}),[n]);const o=null!=n?n:"";return t(r,null,t("style",null,`\n\n :host{\n display: contents;\n }\n /* \n Selects any element placed inside a slot\n - resets css variable inheritence for fonts\n \n */\n ::slotted(*) {\n --sl-font-sans: "${o}", arial;\n --sl-input-font-family: "${o}", arial;\n --sl-tooltip-font-family: "${o}", arial;\n font-family: "${o}", arial;\n\t\t\t\n ${i}\n\n --sl-focus-ring-color-primary: var(--sl-color-primary-100);\n --sl-input-border-color-focus: var(--sl-color-primary-500);\n --sl-color-primary-hue: var(--sl-color-primary-500);\n }`),t("slot",null))}},Ce=class{constructor(t){e(this,t),this.ignored=!0,this.width=347,this.gap=24,s(this)}disconnectedCallback(){}render(){return t(Z,Object.assign({},T(this)),t("slot",null))}};function Ie(e){var t;const r=i(F),[s,o]=n(!1);return a((()=>{var t,s;(null===(t=null==r?void 0:r.initialData)||void 0===t?void 0:t[e.checkboxName])&&o(!!(null===(s=null==r?void 0:r.initialData)||void 0===s?void 0:s[e.checkboxName]))}),[null===(t=null==r?void 0:r.initialData)||void 0===t?void 0:t[e.checkboxName]]),{states:{registrationFormState:r,checked:s},callbacks:{setChecked:o}}}const Se=class{constructor(t){e(this,t),this.ignored=!0,this.checkboxLabel="By signing up you agree to the {labelLink}",this.checkboxLabelLink="https://example.com",this.checkboxLabelLinkText="Terms and Conditions",this.errorMessage="Must be checked",this.checkboxOptional=!1,s(this)}disconnectedCallback(){}render(){const e=q([{attribute:"checkbox-name",value:this.checkboxName}]);if(!h()&&e)return t(V,{missingProps:e,heading:"An error occured while loading this form",subheading:"A technical problem prevented this checkbox field from loading. Please contact us with the link to this page.",description:"Values for the following attributes are missing:"});const r={...T(this)},{states:s,callbacks:a}=h()?N({states:{registrationFormState:{},checked:!1},callbacks:{setChecked:()=>{}}},this.demoData||{},{arrayMerge:(e,t)=>t}):Ie(this);return t(Q,{states:s,content:r,callbacks:a})}},Re=p.gql`
1
+ import{r as e,h as t,c as r}from"./p-f708da7b.js";import{n as s,f as a,i,k as n,m as o,u as l,b as c,j as d}from"./p-cd651f81.js";import{i as u}from"./p-65069b66.js";import{i as h,_ as m,d as p,J as v,H as g,$ as f,w as b,B as y,u as x,L as w,y as k,j as E,r as C,V as I,Q as S,k as R}from"./p-94a876b9.js";import{j as _}from"./p-e7e129ac.js";import{c as N}from"./p-c1086930.js";import{g as T,a as q}from"./p-9ec99ced.js";import{c as M}from"./p-cef45012.js";import"./p-3f7b81b8.js";import"./p-91521e9d.js";import{C as A}from"./p-31015791.js";import{a as L}from"./p-4e451f75.js";import{u as D}from"./p-19ccb4ce.js";import"./p-5bedb58c.js";import"./p-c9f1dde7.js";import{p as P}from"./p-8d363802.js";import{R as F,u as O}from"./p-98698131.js";import{R as V,L as $,u as j}from"./p-f98a4354.js";import{P as U}from"./p-dbcb5359.js";import{u as B}from"./p-4e526a94.js";import{A as z}from"./p-121cdc60.js";import{i as H}from"./p-8c23d1b8.js";import{b as W,W as G,B as Y,U as K,J as Z,i as Q,K as X,D as J,E as ee,H as te,I as re,Q as se,O as ae,X as ie,L as ne,N as oe,C as le,d as ce,h as de,P as ue,e as he,R as me,Y as pe,j as ve,a as ge,S as fe,u as be,c as ye,T as xe}from"./p-2011095e.js";import"./p-a9f4ddb1.js";import{u as we}from"./p-11dff275.js";const ke=class{constructor(t){e(this,t),this.flexReverse=!1,this.ignored=!0,s(this)}disconnectedCallback(){}render(){var e;const{props:r,label:s}=h()?W(this):G(this),a=!!(null===(e=m().innerHTML)||void 0===e?void 0:e.trim()),i=t("slot",{name:"label"},a?t("slot",null):s);return t(Y,Object.assign({},r,{labelSlot:i}))}},Ee=class{constructor(t){e(this,t),s(this)}disconnectedCallback(){}render(){var e,s;const i=null!==(e=function(e){if(e)try{return K(e)}catch{}}(this.brandColor))&&void 0!==e?e:"",n=(null!==(s=this.brandFont)&&void 0!==s?s:"Nunito Sans").trim()||void 0;a((()=>{if(!n)return;const e=document.createElement("link");return e.setAttribute("href",function(...e){return`https://fonts.googleapis.com/css2?${e.map((e=>`family=${encodeURIComponent(e)}`)).join("&")}`}(n)),e.setAttribute("rel","stylesheet"),document.head.appendChild(e),()=>document.head.removeChild(e)}),[n]);const o=null!=n?n:"";return t(r,null,t("style",null,`\n\n :host{\n display: contents;\n }\n /* \n Selects any element placed inside a slot\n - resets css variable inheritence for fonts\n \n */\n ::slotted(*) {\n --sl-font-sans: "${o}", arial;\n --sl-input-font-family: "${o}", arial;\n --sl-tooltip-font-family: "${o}", arial;\n font-family: "${o}", arial;\n\t\t\t\n ${i}\n\n --sl-focus-ring-color-primary: var(--sl-color-primary-100);\n --sl-input-border-color-focus: var(--sl-color-primary-500);\n --sl-color-primary-hue: var(--sl-color-primary-500);\n }`),t("slot",null))}},Ce=class{constructor(t){e(this,t),this.ignored=!0,this.width=347,this.gap=24,s(this)}disconnectedCallback(){}render(){return t(Z,Object.assign({},T(this)),t("slot",null))}};function Ie(e){var t;const r=i(F),[s,o]=n(!1);return a((()=>{var t,s;(null===(t=null==r?void 0:r.initialData)||void 0===t?void 0:t[e.checkboxName])&&o(!!(null===(s=null==r?void 0:r.initialData)||void 0===s?void 0:s[e.checkboxName]))}),[null===(t=null==r?void 0:r.initialData)||void 0===t?void 0:t[e.checkboxName]]),{states:{registrationFormState:r,checked:s},callbacks:{setChecked:o}}}const Se=class{constructor(t){e(this,t),this.ignored=!0,this.checkboxLabel="By signing up you agree to the {labelLink}",this.checkboxLabelLink="https://example.com",this.checkboxLabelLinkText="Terms and Conditions",this.errorMessage="Must be checked",this.checkboxOptional=!1,s(this)}disconnectedCallback(){}render(){const e=q([{attribute:"checkbox-name",value:this.checkboxName}]);if(!h()&&e)return t(V,{missingProps:e,heading:"An error occured while loading this form",subheading:"A technical problem prevented this checkbox field from loading. Please contact us with the link to this page.",description:"Values for the following attributes are missing:"});const r={...T(this)},{states:s,callbacks:a}=h()?N({states:{registrationFormState:{},checked:!1},callbacks:{setChecked:()=>{}}},this.demoData||{},{arrayMerge:(e,t)=>t}):Ie(this);return t(Q,{states:s,content:r,callbacks:a})}},Re=p.gql`
2
2
  query fuelTankRewardsQuery($programId: ID!) {
3
3
  user: viewer {
4
4
  ... on User {
@@ -73,7 +73,7 @@ import{r as e,h as t,c as r}from"./p-f708da7b.js";import{n as s,f as a,i,k as n,
73
73
  }
74
74
  }
75
75
  }
76
- `,Ge=class{constructor(t){e(this,t),this.ignored=!0,this.emailLabel="Email",this.firstNameLabel="First name",this.lastNameLabel="Last name",this.submitLabel="Submit",this.resubmitFormLabel="Refer Another Friend",this.pageLabel="Refer your friend",this.formKey="lead-form",this.supportLinkText="Support",this.submitSuccessHeader="Lead submitted",this.submitSuccessDescription="Our team will contact your friend to see if they’re a good fit. In the meantime, you can track this referral on Activity page.",this.submitErrorHeader="An error occurred while submitting",this.submitErrorDescription="Please try again later. If the problem continues, contact {supportLink}",this.requiredFieldErrorMessage="Please enter a valid {fieldLabel}",this.networkErrorMessage="Network request failed.",this.invalidEmailErrorMessage="Must be a valid email address",s(this)}disconnectedCallback(){}render(){const{states:e,callbacks:r,refs:s}=h()?N({states:{error:"",loading:!1,success:!1},callbacks:{submit:async()=>{console.log("submit")},inputFunction:()=>{},resetForm:()=>{}},refs:{formRef:{}}},this.demoData||{},{arrayMerge:(e,t)=>t}):function(e){var t,r,s,i,l,c,d,u,h,m;const p=o(null),{leadFormState:y,setLeadFormState:w}=j({}),k=g(),E=v(),{data:C}=b(We,{programId:k},!(null==E?void 0:E.jwt)||!k),[I,{loading:S,errors:R}]=f(He),[N,T]=n(!1);a((()=>{if(!p.current)return;const e=p.current;return e.addEventListener("sl-input",q),()=>{e.removeEventListener("sl-input",q)}}),[p.current]);const q=x((e=>{var t,r;if("tel"!==(null===(r=null===(t=e.target)||void 0===t?void 0:t.type)||void 0===r?void 0:r.toLowerCase()))return;const s=new z("US");e.target.value=s.input(e.target.value)}),[]);let M="";return M=(null===(t=null==R?void 0:R.response)||void 0===t?void 0:t.error)||(null==R?void 0:R.message)&&!(null===(r=null==R?void 0:R.response)||void 0===r?void 0:r.errors.length)?e.networkErrorMessage:(null===(c=null===(l=null===(i=null===(s=null==R?void 0:R.response)||void 0===s?void 0:s.errors)||void 0===i?void 0:i[0])||void 0===l?void 0:l.extensions)||void 0===c?void 0:c.message)||(null===(h=null===(u=null===(d=null==R?void 0:R.response)||void 0===d?void 0:d.errors)||void 0===u?void 0:u[0])||void 0===h?void 0:h.message)||(null==y?void 0:y.error),{states:{loading:S,error:M,success:N,leadFormState:y,referralCode:(null===(m=null==C?void 0:C.viewer)||void 0===m?void 0:m.referralCode)||""},callbacks:{submit:async t=>{var r;let s=t.target.getFormControls(),a={},i={};if(null==s||s.forEach((t=>{if(!t.name)return;const r=t.name,s=t.value;if(_.set(a,r,s),t.required&&!s&&_.set(i,r,e.requiredFieldErrorMessage),"function"==typeof t.validationError){const e=(0,t.validationError)({control:t,key:r,value:s});e&&_.set(i,r,e)}})),Object.keys(i).length)return void w({loading:!1,error:"",validationErrors:i});w({loading:!0,error:"",validationErrors:{}});const n={key:e.formKey,formData:a};try{const e=await I({formSubmissionInput:n});if(e instanceof Error)throw e;w({loading:!1,error:"",validationErrors:{}}),(null===(r=null==e?void 0:e.submitForm)||void 0===r?void 0:r.success)&&T(!0)}catch(t){w({loading:!1,error:e.networkErrorMessage,validationErrors:{}})}},inputFunction:q,resetForm:function(){var e,t;w({loading:!1,error:"",validationErrors:{}}),null===(t=null===(e=p.current)||void 0===e?void 0:e.getFormControls())||void 0===t||t.forEach((e=>{e.value=""})),T(!1)}},refs:{formRef:p}}}(this),i={formData:t("slot",{name:"formData"}),emailLabel:this.emailLabel,submitLabel:this.submitLabel,resubmitFormLabel:this.resubmitFormLabel,pageLabel:this.pageLabel,supportLinkText:this.supportLinkText,submitSuccessHeader:this.submitSuccessHeader,submitSuccessDescription:this.submitSuccessDescription,submitErrorHeader:this.submitErrorHeader,submitErrorDescription:this.submitErrorDescription,invalidEmailErrorMessage:this.invalidEmailErrorMessage,requiredFieldErrorMessage:this.requiredFieldErrorMessage,firstNameLabel:this.firstNameLabel,lastNameLabel:this.lastNameLabel};return t(ae,{states:e,callbacks:r,content:i,refs:s})}},Ye=p.gql`
76
+ `,Ge=class{constructor(t){e(this,t),this.ignored=!0,this.emailLabel="Email",this.firstNameLabel="First name",this.lastNameLabel="Last name",this.submitLabel="Submit",this.resubmitFormLabel="Refer Another Friend",this.pageLabel="Refer your friend",this.formKey="lead-form",this.supportLinkText="Support",this.submitSuccessHeader="Lead submitted",this.submitSuccessDescription="Our team will contact your friend to see if they’re a good fit. In the meantime, you can track this referral on Activity page.",this.submitErrorHeader="An error occurred while submitting",this.submitErrorDescription="Please try again later. If the problem continues, contact {supportLink}",this.requiredFieldErrorMessage="Please enter a valid {fieldLabel}",this.networkErrorMessage="Network request failed.",this.invalidEmailErrorMessage="Must be a valid email address",s(this)}disconnectedCallback(){}render(){const{states:e,callbacks:r,refs:s}=h()?N({states:{error:"",loading:!1,success:!1},callbacks:{submit:async()=>{console.log("submit")},inputFunction:()=>{},resetForm:()=>{}},refs:{formRef:{}}},this.demoData||{},{arrayMerge:(e,t)=>t}):function(e){var t,r,s,i,l,c,d,u,h,m;const p=o(null),{leadFormState:y,setLeadFormState:w}=j({}),k=g(),E=v(),{data:C}=b(We,{programId:k},!(null==E?void 0:E.jwt)||!k),[I,{loading:S,errors:R}]=f(He),[N,T]=n(!1);a((()=>{if(!p.current)return;const e=p.current;return e.addEventListener("sl-input",q),()=>{e.removeEventListener("sl-input",q)}}),[p.current]);const q=x((e=>{var t,r;if("tel"!==(null===(r=null===(t=e.target)||void 0===t?void 0:t.type)||void 0===r?void 0:r.toLowerCase()))return;const s=new z("US");e.target.value=s.input(e.target.value)}),[]);let M="";return M=(null===(t=null==R?void 0:R.response)||void 0===t?void 0:t.error)||(null==R?void 0:R.message)&&!(null===(r=null==R?void 0:R.response)||void 0===r?void 0:r.errors.length)?e.networkErrorMessage:(null===(c=null===(l=null===(i=null===(s=null==R?void 0:R.response)||void 0===s?void 0:s.errors)||void 0===i?void 0:i[0])||void 0===l?void 0:l.extensions)||void 0===c?void 0:c.message)||(null===(h=null===(u=null===(d=null==R?void 0:R.response)||void 0===d?void 0:d.errors)||void 0===u?void 0:u[0])||void 0===h?void 0:h.message)||(null==y?void 0:y.error),{states:{loading:S,error:M,success:N,leadFormState:y,referralCode:(null===(m=null==C?void 0:C.viewer)||void 0===m?void 0:m.referralCode)||""},callbacks:{submit:async t=>{var r;let s=t.target.getFormControls(),a={},i={};if(null==s||s.forEach((t=>{if(!t.name)return;const r=t.name,s=t.value;if(_.set(a,r,s),t.required&&!s&&_.set(i,r,e.requiredFieldErrorMessage),"function"==typeof t.validationError){const e=(0,t.validationError)({control:t,key:r,value:s});e&&_.set(i,r,e)}})),Object.keys(i).length)return void w({loading:!1,error:"",validationErrors:i});w({loading:!0,error:"",validationErrors:{}});const n={key:e.formKey,formData:a};try{const e=await I({formSubmissionInput:n});if(e instanceof Error)throw e;w({loading:!1,error:"",validationErrors:{}}),(null===(r=null==e?void 0:e.submitForm)||void 0===r?void 0:r.success)&&T(!0)}catch(t){w({loading:!1,error:e.networkErrorMessage,validationErrors:{}})}},inputFunction:q,resetForm:function(){var e,t;w({loading:!1,error:"",validationErrors:{}}),null===(t=null===(e=p.current)||void 0===e?void 0:e.getFormControls())||void 0===t||t.forEach((e=>{var t;"checkbox"===(null===(t=e.input)||void 0===t?void 0:t.type)?(e.checked=!1,e.value=!1):e.value=""})),T(!1)}},refs:{formRef:p}}}(this),i={formData:t("slot",{name:"formData"}),emailLabel:this.emailLabel,submitLabel:this.submitLabel,resubmitFormLabel:this.resubmitFormLabel,pageLabel:this.pageLabel,supportLinkText:this.supportLinkText,submitSuccessHeader:this.submitSuccessHeader,submitSuccessDescription:this.submitSuccessDescription,submitErrorHeader:this.submitErrorHeader,submitErrorDescription:this.submitErrorDescription,invalidEmailErrorMessage:this.invalidEmailErrorMessage,requiredFieldErrorMessage:this.requiredFieldErrorMessage,firstNameLabel:this.firstNameLabel,lastNameLabel:this.lastNameLabel};return t(ae,{states:e,callbacks:r,content:i,refs:s})}},Ye=p.gql`
77
77
  query (
78
78
  $type: String!
79
79
  $filter: UserLeaderboardFilterInput
@@ -1,8 +1,5 @@
1
1
  declare const _default: {
2
2
  title: string;
3
- parameters: {
4
- scenario: string;
5
- };
6
3
  };
7
4
  export default _default;
8
5
  export declare const Default: {
@@ -11,12 +8,6 @@ export declare const Default: {
11
8
  hookStory: Function;
12
9
  };
13
10
  };
14
- export declare const DefaultChecked: {
15
- (): any;
16
- parameters: {
17
- hookStory: Function;
18
- };
19
- };
20
11
  export declare const CustomLabel: {
21
12
  (): any;
22
13
  parameters: {
@@ -35,21 +26,3 @@ export declare const CustomError: {
35
26
  hookStory: Function;
36
27
  };
37
28
  };
38
- export declare const TermsAndConditions: {
39
- (): any;
40
- parameters: {
41
- hookStory: Function;
42
- };
43
- };
44
- export declare const TermsAndConditionsCustomLabel: {
45
- (): any;
46
- parameters: {
47
- hookStory: Function;
48
- };
49
- };
50
- export declare const TermsAndConditionsLongCustomLabel: {
51
- (): any;
52
- parameters: {
53
- hookStory: Function;
54
- };
55
- };
@@ -2,7 +2,6 @@ import { LeadFormState } from "./useLeadFormState";
2
2
  export interface LeadCheckboxFieldViewProps {
3
3
  states: {
4
4
  leadFormState?: LeadFormState;
5
- checked: boolean;
6
5
  };
7
6
  content: {
8
7
  checkboxName: string;
@@ -12,8 +11,5 @@ export interface LeadCheckboxFieldViewProps {
12
11
  checkboxOptional?: boolean;
13
12
  errorMessage?: string;
14
13
  };
15
- callbacks: {
16
- setChecked: Function;
17
- };
18
14
  }
19
15
  export declare function LeadCheckboxFieldView(props: LeadCheckboxFieldViewProps): any;
@@ -1,11 +1,6 @@
1
1
  import { LeadFormState } from "./useLeadFormState";
2
- import { LeadCheckboxField } from "./sqm-lead-checkbox-field";
3
- export declare function useLeadCheckboxField(props: LeadCheckboxField): {
2
+ export declare function useLeadCheckboxField(): {
4
3
  states: {
5
4
  leadFormState: LeadFormState;
6
- checked: boolean;
7
- };
8
- callbacks: {
9
- setChecked: (value: boolean | ((prev: boolean) => boolean)) => void;
10
5
  };
11
6
  };
@@ -0,0 +1,7 @@
1
+ interface AndroidInterface {
2
+ platform: 'android';
3
+ shareOnFacebook(shareUrl: string, fallbackUrl: string): void;
4
+ showToast(toast: string): void;
5
+ }
6
+
7
+ export type PlatformNativeActions = AndroidInterface | undefined;
@@ -0,0 +1,2 @@
1
+ export type DemoData<T extends {}> = Partial<Omit<T, "callbacks" | "text">>;
2
+ export type StoryDemoData<T extends {}> = Partial<Omit<T, "text">>;
@@ -0,0 +1,4 @@
1
+ declare module "*.feature" {
2
+ const content: string;
3
+ export default content;
4
+ }
@@ -0,0 +1,4 @@
1
+ declare module "*.html" {
2
+ const content: string;
3
+ export default content;
4
+ }
package/docs/docs.docx CHANGED
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@saasquatch/mint-components",
3
3
  "title": "Mint Components",
4
- "version": "1.14.7-0",
4
+ "version": "1.14.7-10",
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",