@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 +0,0 @@
1
- var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,a=1,n=arguments.length;a<n;a++){t=arguments[a];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}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"],(function(e){"use strict";var t,a,n,i,s,o,r,c,l,d,h,u,b,f,g;return{setters:[function(e){t=e.h;a=e.r},function(e){n=e.i;i=e.k;s=e.f;o=e.n},function(e){r=e.i},function(e){c=e.i},function(e){l=e.c},function(e){d=e.a;h=e.g},function(e){u=e.j;b=e.a},function(e){f=e.L;g=e.R}],execute:function(){var v={ErrorStyle:{"&::part(control)":{background:"var(--sl-color-danger-10)",borderColor:"var(--sl-color-danger-500)",outline:"var(--sl-color-danger-500)"},"&:host":{"--focus-ring":"0 0 0 var(--sl-focus-ring-width) red !important"}},ErrorMessageStyle:{margin:0,marginTop:"5px",color:"var(--sl-color-danger-500)",fontSize:"var(--sl-input-help-text-font-size-medium)",fontFamily:"var(--sl-font-sans)",fontWeight:"var(--sl-font-weight-normal)"},FieldContainer:{"margin-bottom":"var(--sl-spacing-large)"}};var k="\n:host {\n margin: 0 auto;\n width: 100%;\n display: block;\n}\nsl-checkbox::part(label){\n font-size: var(--sl-input-label-font-size-small);\n font-weight: var(--sl-font-weight-normal);\n line-height: 20px;\n}\nsl-checkbox::part(base){\n align-items: start;\n}\n";u.setup(b());var m=u.createStyleSheet(v);var p=m.toString();function x(e){var a,n;var i=e.states,s=e.content,o=e.callbacks;return t("div",{class:m.classes.FieldContainer,part:"sqm-base"},t("style",{type:"text/css"},k,p),t("sl-checkbox",Object.assign({exportparts:"label: input-label, base: input-base",name:"/"+s.checkboxName,checked:i.checked,"onSl-change":function(e){e.target.value=e.target.checked;o.setChecked(e.target.value)}},!s.checkboxOptional?{required:false}:[],{disabled:((a=i.leadFormState)===null||a===void 0?void 0:a.loading)||((n=i.leadFormState)===null||n===void 0?void 0:n.disabled),required:false}),r.formatMessage({id:s.checkboxName+"-message",defaultMessage:s.checkboxLabel},{labelLink:t("a",{href:s.checkboxLabelLink,target:"_blank"},s.checkboxLabelLinkText||s.checkboxLabelLink)})))}function y(e){var t;var a=n(f);var o=i(false),r=o[0],c=o[1];s((function(){var t,n;if((t=a===null||a===void 0?void 0:a.initialData)===null||t===void 0?void 0:t[e.checkboxName]){c(!!((n=a===null||a===void 0?void 0:a.initialData)===null||n===void 0?void 0:n[e.checkboxName]))}}),[(t=a===null||a===void 0?void 0:a.initialData)===null||t===void 0?void 0:t[e.checkboxName]]);return{states:{leadFormState:a,checked:r},callbacks:{setChecked:c}}}var L=e("sqm_lead_checkbox_field",function(){function e(e){a(this,e);this.ignored=true;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=false;o(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=d([{attribute:"checkbox-name",value:this.checkboxName}]);if(!c()&&e){return t(g,{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:"})}var a=__assign({},h(this));var n=c()?_(this):y(this),i=n.states,s=n.callbacks;return t(x,{states:i,content:a,callbacks:s})};return e}());function _(e){return l({states:{registrationFormState:{},checked:false},callbacks:{setChecked:function(){}}},e.demoData||{},{arrayMerge:function(e,t){return t}})}}}}));