@saasquatch/mint-components 1.14.9-0 → 1.14.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 (68) hide show
  1. package/dist/cjs/{ShadowViewAddon-3c344355.js → ShadowViewAddon-28865623.js} +12 -4
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/mint-components.cjs.js +1 -1
  4. package/dist/cjs/sqm-big-stat_43.cjs.entry.js +10 -3
  5. package/dist/cjs/sqm-lead-checkbox-field-view-34d94919.js +83 -0
  6. package/dist/cjs/sqm-lead-checkbox-field.cjs.entry.js +81 -0
  7. package/dist/cjs/sqm-lead-input-field.cjs.entry.js +1 -1
  8. package/dist/cjs/sqm-stencilbook.cjs.entry.js +56 -3
  9. package/dist/collection/collection-manifest.json +1 -0
  10. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +11 -4
  11. package/dist/collection/components/sqm-lead-form/LeadCheckboxField.stories.js +44 -0
  12. package/dist/collection/components/sqm-lead-form/sqm-lead-checkbox-field-view.js +79 -0
  13. package/dist/collection/components/sqm-lead-form/sqm-lead-checkbox-field.js +234 -0
  14. package/dist/collection/components/sqm-lead-form/sqm-lead-form.js +1 -0
  15. package/dist/collection/components/sqm-lead-form/useCheckboxField.js +10 -0
  16. package/dist/collection/components/sqm-lead-form/useLeadForm.js +8 -1
  17. package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +1 -1
  18. package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +1 -0
  19. package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js +1 -0
  20. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +2 -0
  21. package/dist/esm/{ShadowViewAddon-64194d20.js → ShadowViewAddon-f2176779.js} +12 -4
  22. package/dist/esm/loader.js +1 -1
  23. package/dist/esm/mint-components.js +1 -1
  24. package/dist/esm/sqm-big-stat_43.entry.js +10 -3
  25. package/dist/esm/sqm-lead-checkbox-field-view-a8c1c78e.js +81 -0
  26. package/dist/esm/sqm-lead-checkbox-field.entry.js +77 -0
  27. package/dist/esm/sqm-lead-input-field.entry.js +1 -1
  28. package/dist/esm/sqm-stencilbook.entry.js +56 -3
  29. package/dist/esm-es5/ShadowViewAddon-f2176779.js +1 -0
  30. package/dist/esm-es5/loader.js +1 -1
  31. package/dist/esm-es5/mint-components.js +1 -1
  32. package/dist/esm-es5/sqm-big-stat_43.entry.js +1 -1
  33. package/dist/esm-es5/sqm-lead-checkbox-field-view-a8c1c78e.js +1 -0
  34. package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -0
  35. package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
  36. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  37. package/dist/mint-components/mint-components.esm.js +1 -1
  38. package/dist/mint-components/p-00df0cac.js +1 -0
  39. package/dist/mint-components/p-0b4cac9f.system.entry.js +1 -0
  40. package/dist/mint-components/p-0d939b73.system.js +1 -0
  41. package/dist/mint-components/{p-d3e72503.entry.js → p-12bba567.entry.js} +1 -1
  42. package/dist/mint-components/p-37996351.system.js +1 -1
  43. package/dist/mint-components/p-48c69c2d.entry.js +1 -0
  44. package/dist/mint-components/p-4cff3345.system.entry.js +1 -0
  45. package/dist/mint-components/{p-0a4f1306.entry.js → p-653a8a7b.entry.js} +10 -10
  46. package/dist/mint-components/{p-fbbb85f0.system.entry.js → p-8c0b7881.system.entry.js} +1 -1
  47. package/dist/mint-components/p-95b88eb6.system.js +1 -0
  48. package/dist/mint-components/p-a01e3c3d.system.entry.js +1 -0
  49. package/dist/mint-components/p-c1b074b6.js +394 -0
  50. package/dist/mint-components/{p-f60d1ae9.entry.js → p-c4ce8578.entry.js} +2 -2
  51. package/dist/types/components/sqm-lead-form/LeadCheckboxField.stories.d.ts +28 -0
  52. package/dist/types/components/sqm-lead-form/sqm-lead-checkbox-field-view.d.ts +15 -0
  53. package/dist/types/components/sqm-lead-form/sqm-lead-checkbox-field.d.ts +46 -0
  54. package/dist/types/components/sqm-lead-form/sqm-lead-form.d.ts +1 -0
  55. package/dist/types/components/sqm-lead-form/useCheckboxField.d.ts +6 -0
  56. package/dist/types/components/sqm-name-fields/sqm-name-fields.d.ts +1 -1
  57. package/dist/types/components/sqm-portal-register/sqm-portal-register.d.ts +1 -0
  58. package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form.d.ts +1 -0
  59. package/dist/types/components.d.ts +80 -0
  60. package/docs/docs.docx +0 -0
  61. package/docs/raisins.json +1 -1
  62. package/grapesjs/grapesjs.js +1 -1
  63. package/package.json +1 -1
  64. package/dist/esm-es5/ShadowViewAddon-64194d20.js +0 -1
  65. package/dist/mint-components/p-0d94d81a.system.js +0 -1
  66. package/dist/mint-components/p-30a11ec0.js +0 -394
  67. package/dist/mint-components/p-74fdf750.system.entry.js +0 -1
  68. package/dist/mint-components/p-eaf1a8a6.system.entry.js +0 -1
@@ -0,0 +1 @@
1
+ import{h}from"./index-91e7729f.js";import{i as intl}from"./global-be1f9992.js";import{j as jss,a as create}from"./JSS-67b5cff8.js";var style={ErrorStyle:{"&::part(control)":{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 vanillaStyle="\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";jss.setup(create());var sheet=jss.createStyleSheet(style);var styleString=sheet.toString();function LeadCheckboxFieldView(e){var a,l,t,r,o;var s=e.states,n=e.content;var i=(a=s===null||s===void 0?void 0:s.leadFormState)===null||a===void 0?void 0:a.validationErrors;var c=function(e){var a=e.checkboxLabel;return intl.formatMessage({id:"requiredFieldErrorMessage-"+a,defaultMessage:n.errorMessage},{checkboxLabel:a})};return h("div",{class:sheet.classes.FieldContainer,part:"sqm-base"},h("style",{type:"text/css"},vanillaStyle,styleString),h("sl-checkbox",Object.assign({exportparts:"label: input-label, base: input-base",name:"/"+n.checkboxName,"onSl-change":function(e){e.target.value=e.target.checked}},!n.checkboxOptional?{required:false}:[],{disabled:((l=s.leadFormState)===null||l===void 0?void 0:l.loading)||((t=s.leadFormState)===null||t===void 0?void 0:t.disabled),validationError:function(e){var a=e.value;if(!a&&!n.checkboxOptional){return c({checkboxLabel:n.checkboxLabel})}}},((o=(r=s.leadFormState)===null||r===void 0?void 0:r.validationErrors)===null||o===void 0?void 0:o[n.checkboxName])?{class:sheet.classes.ErrorStyle}:[]),intl.formatMessage({id:n.checkboxName+"-message",defaultMessage:n.checkboxLabel},{labelLink:h("a",{href:n.checkboxLabelLink,target:"_blank"},n.checkboxLabelLinkText||n.checkboxLabelLink)})),(i===null||i===void 0?void 0:i[n.checkboxName])&&h("p",{class:sheet.classes.ErrorMessageStyle},c({checkboxLabel:n.checkboxLabel})))}export{LeadCheckboxFieldView as L};
@@ -0,0 +1 @@
1
+ var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var s,t=1,i=arguments.length;t<i;t++){s=arguments[t];for(var o in s)if(Object.prototype.hasOwnProperty.call(s,o))e[o]=s[o]}return e};return __assign.apply(this,arguments)};import{r as registerInstance,h as h$1}from"./index-91e7729f.js";import{i as d,n as h}from"./stencil-hooks.module-4bc38af4.js";import"./global-be1f9992.js";import{i as isDemo}from"./index.module-89a79f66.js";import{c as cjs}from"./cjs-bdfb4486.js";import{a as getMissingProps,g as getProps}from"./utils-334c1e34.js";import"./JSS-67b5cff8.js";import{L as LEAD_FORM_STATE_CONTEXT,R as RequiredPropsError}from"./useLeadFormState-9016d812.js";import{L as LeadCheckboxFieldView}from"./sqm-lead-checkbox-field-view-a8c1c78e.js";function useLeadCheckboxField(){var e=d(LEAD_FORM_STATE_CONTEXT);return{states:{leadFormState:e}}}var LeadCheckboxField=function(){function e(e){registerInstance(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;h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=getMissingProps([{attribute:"checkbox-name",value:this.checkboxName}]);if(!isDemo()&&e){return h$1(RequiredPropsError,{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 s=__assign({},getProps(this));var t=(isDemo()?useLeadCheckboxFieldDemo(this):useLeadCheckboxField()).states;return h$1(LeadCheckboxFieldView,{states:t,content:s})};return e}();function useLeadCheckboxFieldDemo(e){return cjs({states:{leadFormState:{}}},e.demoData||{},{arrayMerge:function(e,s){return s}})}export{LeadCheckboxField as sqm_lead_checkbox_field};
@@ -1 +1 @@
1
- var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var i,t=1,s=arguments.length;t<s;t++){i=arguments[t];for(var r in i)if(Object.prototype.hasOwnProperty.call(i,r))e[r]=i[r]}return e};return __assign.apply(this,arguments)};import{r as registerInstance,h as h$1}from"./index-91e7729f.js";import{i as d,n as h}from"./stencil-hooks.module-4bc38af4.js";import"./global-be1f9992.js";import{i as isDemo}from"./index.module-89a79f66.js";import{c as cjs}from"./cjs-bdfb4486.js";import{g as getProps,a as getMissingProps}from"./utils-334c1e34.js";import"./JSS-67b5cff8.js";import"./mixins-83f90fa1.js";import{L as LeadInputFieldView}from"./sqm-lead-input-field-view-4ede5d7f.js";import{L as LEAD_FORM_STATE_CONTEXT,R as RequiredPropsError}from"./useLeadFormState-9016d812.js";function useLeadInputField(){var e=d(LEAD_FORM_STATE_CONTEXT);return{states:{leadFormState:e}}}var LeadInputField=function(){function e(e){registerInstance(this,e);this.ignored=true;this.optionalLabel="(optional)";this.fieldType="text";this.requiredFieldErrorMessage="Please enter a {fieldLabel}";this.fieldOptional=false;h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=__assign({},getProps(this));var i=getMissingProps([{attribute:"field-name",value:this.fieldName}]);if(!isDemo()&&i){return h$1(RequiredPropsError,{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:"})}var t=(isDemo()?useLeadInputFieldDemo(this):useLeadInputField()).states;return h$1(LeadInputFieldView,{states:t,content:e})};return e}();function useLeadInputFieldDemo(e){return cjs({states:{leadForState:{}},content:{fieldName:e.fieldName,fieldLabel:e.fieldLabel,fieldType:e.fieldType,requiredFieldErrorMessage:e.requiredFieldErrorMessage}},e.demoData||{},{arrayMerge:function(e,i){return i}})}export{LeadInputField as sqm_lead_input_field};
1
+ var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var i,t=1,s=arguments.length;t<s;t++){i=arguments[t];for(var r in i)if(Object.prototype.hasOwnProperty.call(i,r))e[r]=i[r]}return e};return __assign.apply(this,arguments)};import{r as registerInstance,h as h$1}from"./index-91e7729f.js";import{i as d,n as h}from"./stencil-hooks.module-4bc38af4.js";import"./global-be1f9992.js";import{i as isDemo}from"./index.module-89a79f66.js";import{c as cjs}from"./cjs-bdfb4486.js";import{g as getProps,a as getMissingProps}from"./utils-334c1e34.js";import"./JSS-67b5cff8.js";import"./mixins-83f90fa1.js";import{L as LEAD_FORM_STATE_CONTEXT,R as RequiredPropsError}from"./useLeadFormState-9016d812.js";import{L as LeadInputFieldView}from"./sqm-lead-input-field-view-4ede5d7f.js";function useLeadInputField(){var e=d(LEAD_FORM_STATE_CONTEXT);return{states:{leadFormState:e}}}var LeadInputField=function(){function e(e){registerInstance(this,e);this.ignored=true;this.optionalLabel="(optional)";this.fieldType="text";this.requiredFieldErrorMessage="Please enter a {fieldLabel}";this.fieldOptional=false;h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=__assign({},getProps(this));var i=getMissingProps([{attribute:"field-name",value:this.fieldName}]);if(!isDemo()&&i){return h$1(RequiredPropsError,{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:"})}var t=(isDemo()?useLeadInputFieldDemo(this):useLeadInputField()).states;return h$1(LeadInputFieldView,{states:t,content:e})};return e}();function useLeadInputFieldDemo(e){return cjs({states:{leadForState:{}},content:{fieldName:e.fieldName,fieldLabel:e.fieldLabel,fieldType:e.fieldType,requiredFieldErrorMessage:e.requiredFieldErrorMessage}},e.demoData||{},{arrayMerge:function(e,i){return i}})}export{LeadInputField as sqm_lead_input_field};