@saasquatch/mint-components 1.14.6-5 → 1.14.6-7

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 (64) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/mint-components.cjs.js +1 -1
  3. package/dist/cjs/sqm-big-stat_42.cjs.entry.js +18 -5
  4. package/dist/cjs/{sqm-lead-dropdown-field-view-69513385.js → sqm-lead-dropdown-field-view-03a3e03f.js} +1 -1
  5. package/dist/cjs/sqm-lead-dropdown-field.cjs.entry.js +1 -3
  6. package/dist/cjs/{sqm-lead-input-field-view-e2373fc6.js → sqm-lead-input-field-view-6344cd93.js} +1 -1
  7. package/dist/cjs/sqm-lead-input-field.cjs.entry.js +1 -3
  8. package/dist/cjs/sqm-stencilbook.cjs.entry.js +2 -2
  9. package/dist/collection/collection-manifest.json +1 -1
  10. package/dist/collection/components/sqm-lead-form/sqm-lead-dropdown-field-view.js +1 -1
  11. package/dist/collection/components/sqm-lead-form/sqm-lead-dropdown-field.js +1 -21
  12. package/dist/collection/components/sqm-lead-form/sqm-lead-input-field-view.js +1 -1
  13. package/dist/collection/components/sqm-lead-form/sqm-lead-input-field.js +1 -21
  14. package/dist/collection/components/sqm-lead-form/useLeadForm.js +17 -4
  15. package/dist/esm/loader.js +1 -1
  16. package/dist/esm/mint-components.js +1 -1
  17. package/dist/esm/sqm-big-stat_42.entry.js +18 -5
  18. package/dist/esm/{sqm-lead-dropdown-field-view-0f91101f.js → sqm-lead-dropdown-field-view-4c85fe20.js} +1 -1
  19. package/dist/esm/sqm-lead-dropdown-field.entry.js +1 -3
  20. package/dist/esm/{sqm-lead-input-field-view-6bc3aae8.js → sqm-lead-input-field-view-f1dd4b77.js} +1 -1
  21. package/dist/esm/sqm-lead-input-field.entry.js +1 -3
  22. package/dist/esm/sqm-stencilbook.entry.js +2 -2
  23. package/dist/esm-es5/loader.js +1 -1
  24. package/dist/esm-es5/mint-components.js +1 -1
  25. package/dist/esm-es5/sqm-big-stat_42.entry.js +1 -1
  26. package/dist/esm-es5/{sqm-lead-dropdown-field-view-0f91101f.js → sqm-lead-dropdown-field-view-4c85fe20.js} +1 -1
  27. package/dist/esm-es5/sqm-lead-dropdown-field.entry.js +1 -1
  28. package/dist/esm-es5/{sqm-lead-input-field-view-6bc3aae8.js → sqm-lead-input-field-view-f1dd4b77.js} +1 -1
  29. package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
  30. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  31. package/dist/mint-components/mint-components.esm.js +1 -1
  32. package/dist/mint-components/{p-68acdfe8.system.js → p-15f1ff1d.system.js} +1 -1
  33. package/dist/mint-components/p-26da31c6.js +1 -0
  34. package/dist/mint-components/{p-760bd076.entry.js → p-2ccebe27.entry.js} +27 -19
  35. package/dist/mint-components/{p-34bd0446.system.entry.js → p-36ef6219.system.entry.js} +1 -1
  36. package/dist/mint-components/p-37996351.system.js +1 -1
  37. package/dist/mint-components/p-4056c0ea.system.entry.js +1 -0
  38. package/dist/mint-components/{p-6c57e7e6.js → p-4d5b02af.js} +1 -1
  39. package/dist/mint-components/p-6b093d8c.entry.js +1 -0
  40. package/dist/mint-components/{p-daf77001.system.js → p-87384d9e.system.js} +1 -1
  41. package/dist/mint-components/{p-47144172.system.entry.js → p-8af8ab01.system.entry.js} +1 -1
  42. package/dist/mint-components/p-c5a55554.entry.js +1 -0
  43. package/dist/mint-components/{p-a15b3197.entry.js → p-cd1c6113.entry.js} +1 -1
  44. package/dist/mint-components/p-de5356d9.system.entry.js +1 -0
  45. package/dist/types/components/sqm-lead-form/sqm-lead-dropdown-field-view.d.ts +0 -1
  46. package/dist/types/components/sqm-lead-form/sqm-lead-dropdown-field.d.ts +0 -1
  47. package/dist/types/components/sqm-lead-form/sqm-lead-input-field-view.d.ts +0 -1
  48. package/dist/types/components/sqm-lead-form/sqm-lead-input-field.d.ts +0 -1
  49. package/dist/types/components/sqm-lead-form/useLeadForm.d.ts +1 -1
  50. package/dist/types/components/sqm-referral-iframe/useReferralIframe.d.ts +1 -1
  51. package/dist/types/components.d.ts +0 -4
  52. package/dist/types/global/android.d.ts +7 -0
  53. package/dist/types/global/demo.d.ts +2 -0
  54. package/dist/types/stories/features.d.ts +4 -0
  55. package/dist/types/stories/templates.d.ts +4 -0
  56. package/docs/docs.docx +0 -0
  57. package/docs/raisins.json +1 -1
  58. package/grapesjs/grapesjs.js +1 -1
  59. package/package.json +1 -1
  60. package/dist/mint-components/p-506e7681.js +0 -1
  61. package/dist/mint-components/p-72ecdea2.system.entry.js +0 -1
  62. package/dist/mint-components/p-a0e0e36f.entry.js +0 -1
  63. package/dist/mint-components/p-db412748.system.entry.js +0 -1
  64. package/dist/mint-components/p-f16bd3ab.entry.js +0 -1
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.6-5",
4
+ "version": "1.14.6-7",
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 as e}from"./p-f708da7b.js";import{i}from"./p-65069b66.js";import{j as l,a}from"./p-cef45012.js";import{E as o}from"./p-91521e9d.js";const r={ErrorStyle:o,FieldContainer:{"margin-bottom":"var(--sl-spacing-large)"}};l.setup(a());const t=l.createStyleSheet(r),s=t.toString();function n(l){var a,o,r,n,d,p;const{states:u,content:v}=l;return e("div",{part:"sqm-base"},e("style",{type:"text/css"},"\n:host {\n margin: 0 auto;\n width: 100%;\n display: block;\n}\n",s),e("sl-input",Object.assign({exportparts:"label: input-label, base: input-base",name:`/${v.fieldName}`,type:v.fieldType,label:v.fieldLabel},v.fieldOptional?[]:{required:!0},{disabled:(null===(a=u.leadFormState)||void 0===a?void 0:a.loading)||(null===(o=u.leadFormState)||void 0===o?void 0:o.disabled),required:v.required,validationError:({value:e})=>{if(!e)return(({fieldLabel:e})=>i.formatMessage({id:"requiredFieldErrorMessage",defaultMessage:v.requiredFieldErrorMessage},{fieldLabel:e}))({fieldLabel:v.fieldLabel})}},(null===(n=null===(r=u.leadFormState)||void 0===r?void 0:r.validationErrors)||void 0===n?void 0:n.firstName)?{class:t.classes.ErrorStyle,helpText:(null===(p=null===(d=u.leadFormState)||void 0===d?void 0:d.validationErrors)||void 0===p?void 0:p.firstName)||v.requiredFieldErrorMessage}:[])))}export{n as L}
@@ -1 +0,0 @@
1
- var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]}return e};return __assign.apply(this,arguments)};System.register(["./p-f26aedcd.system.js","./p-48135f99.system.js","./p-bdb7d451.system.js","./p-6cd4f2b1.system.js","./p-4bd679a7.system.js","./p-6333265f.system.js","./p-1a673057.system.js","./p-1d704c40.system.js","./p-68acdfe8.system.js"],(function(e){"use strict";var t,n,s,r,o,i,a,d,u,c,l;return{setters:[function(e){t=e.r;n=e.h},function(e){s=e.i;r=e.n},function(){},function(e){o=e.i},function(e){i=e.c},function(e){a=e.a;d=e.g},function(){},function(e){u=e.L;c=e.R},function(e){l=e.L}],execute:function(){function p(){var e=s(u);return{states:{leadFormState:e}}}var f=e("sqm_lead_dropdown_field",function(){function e(e){t(this,e);this.ignored=true;this.dropdownLabel="Select an option";this.required=false;this.requiredFieldErrorMessage="Please select a {dropdownLabel}";this.dropdownOptional=false;r(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=a([{attribute:"dropdown-name",value:this.dropdownName}]);if(!o()&&e){return n(c,{missingProps:e,heading:"An error occured while loading this form",subheading:"A technical problem prevented this drop down field from loading. Please contact us with the link to this page.",description:"Values for the following attributes are missing:"},n("slot",null))}var t=__assign(__assign({},d(this)),{selectOptions:n("slot",null)});var s=(o()?h(this):p()).states;return n(l,{states:s,content:t})};return e}());function h(e){return i({states:{leadFormState:{}},content:{dropdownName:e.dropdownName,dropdownLabel:e.dropdownLabel,requiredFieldErrorMessage:e.requiredFieldErrorMessage,dropdownOptional:e.dropdownOptional,required:e.required}},e.demoData||{},{arrayMerge:function(e,t){return t}})}}}}));
@@ -1 +0,0 @@
1
- import{r as t,h as s}from"./p-f708da7b.js";import{i as e,n as o}from"./p-cd651f81.js";import"./p-65069b66.js";import{i as r}from"./p-94a876b9.js";import{c as a}from"./p-c1086930.js";import{a as i,g as n}from"./p-9ec99ced.js";import"./p-cef45012.js";import{L as d,R as p}from"./p-f98a4354.js";import{L as l}from"./p-6c57e7e6.js";const c=class{constructor(s){t(this,s),this.ignored=!0,this.dropdownLabel="Select an option",this.required=!1,this.requiredFieldErrorMessage="Please select a {dropdownLabel}",this.dropdownOptional=!1,o(this)}disconnectedCallback(){}render(){const t=i([{attribute:"dropdown-name",value:this.dropdownName}]);if(!r()&&t)return s(p,{missingProps:t,heading:"An error occured while loading this form",subheading:"A technical problem prevented this drop down field from loading. Please contact us with the link to this page.",description:"Values for the following attributes are missing:"},s("slot",null));const o={...n(this),selectOptions:s("slot",null)},{states:c}=r()?a({states:{leadFormState:{}},content:{dropdownName:(m=this).dropdownName,dropdownLabel:m.dropdownLabel,requiredFieldErrorMessage:m.requiredFieldErrorMessage,dropdownOptional:m.dropdownOptional,required:m.required}},m.demoData||{},{arrayMerge:(t,s)=>s}):{states:{leadFormState:e(d)}};var m;return s(l,{states:c,content:o})}};export{c as sqm_lead_dropdown_field}
@@ -1 +0,0 @@
1
- var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,s=1,i=arguments.length;s<i;s++){t=arguments[s];for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]}return e};return __assign.apply(this,arguments)};System.register(["./p-f26aedcd.system.js","./p-48135f99.system.js","./p-bdb7d451.system.js","./p-6cd4f2b1.system.js","./p-4bd679a7.system.js","./p-6333265f.system.js","./p-1a673057.system.js","./p-cd1d497f.system.js","./p-1d704c40.system.js","./p-daf77001.system.js"],(function(e){"use strict";var t,s,i,n,r,a,o,f,u,d,c;return{setters:[function(e){t=e.r;s=e.h},function(e){i=e.i;n=e.n},function(){},function(e){r=e.i},function(e){a=e.c},function(e){o=e.g;f=e.a},function(){},function(){},function(e){u=e.L;d=e.R},function(e){c=e.L}],execute:function(){function l(){var e=i(u);return{states:{leadFormState:e}}}var p=e("sqm_lead_input_field",function(){function e(e){t(this,e);this.ignored=true;this.required=false;this.fieldType="text";this.requiredFieldErrorMessage="Please enter a {fieldName}";this.fieldOptional=false;n(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=__assign({},o(this));var t=f([{attribute:"field-name",value:this.fieldName}]);if(!r()&&t){return s(d,{missingProps:t,heading:"An error occured while loading this form",subheading:"A technical problem prevented this input field from loading. Please contact us with the link to this page.",description:"Values for the following attributes are missing:"})}var i=(r()?h(this):l()).states;return s(c,{states:i,content:e})};return e}());function h(e){return a({states:{leadForState:{}},content:{fieldName:e.fieldName,fieldLabel:e.fieldLabel,fieldType:e.fieldType,requiredFieldErrorMessage:e.requiredFieldErrorMessage,required:e.required}},e.demoData||{},{arrayMerge:function(e,t){return t}})}}}}));
@@ -1 +0,0 @@
1
- import{r as e,h as t}from"./p-f708da7b.js";import{i as s,n as i}from"./p-cd651f81.js";import"./p-65069b66.js";import{i as r}from"./p-94a876b9.js";import{c as a}from"./p-c1086930.js";import{g as o,a as n}from"./p-9ec99ced.js";import"./p-cef45012.js";import"./p-91521e9d.js";import{L as p,R as d}from"./p-f98a4354.js";import{L as l}from"./p-506e7681.js";const m=class{constructor(t){e(this,t),this.ignored=!0,this.required=!1,this.fieldType="text",this.requiredFieldErrorMessage="Please enter a {fieldName}",this.fieldOptional=!1,i(this)}disconnectedCallback(){}render(){const e={...o(this)},i=n([{attribute:"field-name",value:this.fieldName}]);if(!r()&&i)return t(d,{missingProps:i,heading:"An error occured while loading this form",subheading:"A technical problem prevented this input field from loading. Please contact us with the link to this page.",description:"Values for the following attributes are missing:"});const{states:m}=r()?a({states:{leadForState:{}},content:{fieldName:(c=this).fieldName,fieldLabel:c.fieldLabel,fieldType:c.fieldType,requiredFieldErrorMessage:c.requiredFieldErrorMessage,required:c.required}},c.demoData||{},{arrayMerge:(e,t)=>t}):{states:{leadFormState:s(p)}};var c;return t(l,{states:m,content:e})}};export{m as sqm_lead_input_field}