@purpurds/checkbox 5.10.0 → 5.11.0

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/LICENSE.txt CHANGED
@@ -1,26 +1,26 @@
1
1
  Name: @purpurds/field-error-text
2
- Version: 5.9.0
2
+ Version: 5.10.1
3
3
  License: AGPL-3.0-only
4
4
  Private: false
5
5
 
6
6
  ---
7
7
 
8
8
  Name: @purpurds/icon
9
- Version: 5.9.0
9
+ Version: 5.10.1
10
10
  License: AGPL-3.0-only
11
11
  Private: false
12
12
 
13
13
  ---
14
14
 
15
15
  Name: @purpurds/label
16
- Version: 5.9.0
16
+ Version: 5.10.1
17
17
  License: AGPL-3.0-only
18
18
  Private: false
19
19
 
20
20
  ---
21
21
 
22
22
  Name: @purpurds/paragraph
23
- Version: 5.9.0
23
+ Version: 5.10.1
24
24
  License: AGPL-3.0-only
25
25
  Private: false
26
26
 
@@ -2,15 +2,15 @@
2
2
  Copyright (c) 2018 Jed Watson.
3
3
  Licensed under the MIT License (MIT), see
4
4
  http://jedwatson.github.io/classnames
5
- */(function(e){(function(){var n={}.hasOwnProperty;function t(){for(var r="",o=0;o<arguments.length;o++){var i=arguments[o];i&&(r=u(r,a.call(this,i)))}return r}function a(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return t.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var o="";for(var i in r)n.call(r,i)&&r[i]&&(o=u(o,this&&this[i]||i));return o}function u(r,o){return o?r?r+" "+o:r+o:r}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(H);var se=H.exports;const le=ce(se),pe={"purpur-icon":"_purpur-icon_8u1lq_1","purpur-icon--xxs":"_purpur-icon--xxs_8u1lq_4","purpur-icon--xs":"_purpur-icon--xs_8u1lq_8","purpur-icon--sm":"_purpur-icon--sm_8u1lq_12","purpur-icon--md":"_purpur-icon--md_8u1lq_16","purpur-icon--lg":"_purpur-icon--lg_8u1lq_20","purpur-icon--xl":"_purpur-icon--xl_8u1lq_24"},de={name:"error-filled",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 24" fill="currentColor"><path fill-rule="evenodd" d="M14.268 3.5c-.77-1.333-2.694-1.333-3.464 0l-8.66 15c-.77 1.333.192 3 1.732 3h17.32c1.54 0 2.502-1.667 1.733-3l-8.66-15Zm-.694 5.067-.247 6.876h-1.566l-.247-6.876a1.03 1.03 0 1 1 2.06 0Zm.212 8.917c0 .649-.585 1.234-1.25 1.234-.648 0-1.25-.585-1.25-1.234 0-.633.602-1.234 1.25-1.234.665 0 1.25.601 1.25 1.234Z" clip-rule="evenodd"/></svg>',keywords:["error-filled"],category:"status"},fe=le.bind(pe),L="purpur-icon",he="md",me=e=>e.filter(n=>Object.keys(n).length>=1).map(n=>`${n.name}="${n.value}"`).join(" "),ve=({content:e="",title:n}={})=>{const t=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},n?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],a=n?`<title>${n}</title>`:"";return`<svg ${me(t)}>${a}${e}</svg>`},be=e=>e.replace(/<(\/?)svg([^>]*)>/g,"").trim(),ge=({["data-testid"]:e,svg:n,allyTitle:t,className:a="",size:u=he,...r})=>{const o=ve({content:be(n.svg),title:t}),i=fe(a,L,`${L}--${u}`);return d.jsx("span",{"aria-label":t,className:i,"data-testid":e,dangerouslySetInnerHTML:{__html:o},...r})};function _e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var F={exports:{}};/*!
5
+ */(function(e){(function(){var n={}.hasOwnProperty;function t(){for(var r="",o=0;o<arguments.length;o++){var i=arguments[o];i&&(r=u(r,a.call(this,i)))}return r}function a(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return t.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var o="";for(var i in r)n.call(r,i)&&r[i]&&(o=u(o,this&&this[i]||i));return o}function u(r,o){return o?r?r+" "+o:r+o:r}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(H);var se=H.exports;const le=ce(se),pe={"purpur-icon":"_purpur-icon_8u1lq_1","purpur-icon--xxs":"_purpur-icon--xxs_8u1lq_4","purpur-icon--xs":"_purpur-icon--xs_8u1lq_8","purpur-icon--sm":"_purpur-icon--sm_8u1lq_12","purpur-icon--md":"_purpur-icon--md_8u1lq_16","purpur-icon--lg":"_purpur-icon--lg_8u1lq_20","purpur-icon--xl":"_purpur-icon--xl_8u1lq_24"},de={name:"error-filled",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 24" fill="currentColor"><path fill-rule="evenodd" d="M14.268 3.5c-.77-1.333-2.694-1.333-3.464 0l-8.66 15c-.77 1.333.192 3 1.732 3h17.32c1.54 0 2.502-1.667 1.733-3l-8.66-15Zm-.694 5.067-.247 6.876h-1.566l-.247-6.876a1.03 1.03 0 1 1 2.06 0Zm.212 8.917c0 .649-.585 1.234-1.25 1.234-.648 0-1.25-.585-1.25-1.234 0-.633.602-1.234 1.25-1.234.665 0 1.25.601 1.25 1.234Z" clip-rule="evenodd"/></svg>',keywords:["error-filled"],category:"status"},fe=le.bind(pe),B="purpur-icon",he="md",me=e=>e.filter(n=>Object.keys(n).length>=1).map(n=>`${n.name}="${n.value}"`).join(" "),ve=({content:e="",title:n}={})=>{const t=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},n?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],a=n?`<title>${n}</title>`:"";return`<svg ${me(t)}>${a}${e}</svg>`},be=e=>e.replace(/<(\/?)svg([^>]*)>/g,"").trim(),ge=({["data-testid"]:e,svg:n,allyTitle:t,className:a="",size:u=he,...r})=>{const o=ve({content:be(n.svg),title:t}),i=fe(a,B,`${B}--${u}`);return d.jsx("span",{"aria-label":t,className:i,"data-testid":e,dangerouslySetInnerHTML:{__html:o},...r})};function _e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var F={exports:{}};/*!
6
6
  Copyright (c) 2018 Jed Watson.
7
7
  Licensed under the MIT License (MIT), see
8
8
  http://jedwatson.github.io/classnames
9
- */(function(e){(function(){var n={}.hasOwnProperty;function t(){for(var r="",o=0;o<arguments.length;o++){var i=arguments[o];i&&(r=u(r,a(i)))}return r}function a(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return t.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var o="";for(var i in r)n.call(r,i)&&r[i]&&(o=u(o,i));return o}function u(r,o){return o?r?r+" "+o:r+o:r}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(F);var $e=F.exports;const xe=_e($e),B={"purpur-field-error-text":"_purpur-field-error-text_1u768_1","purpur-field-error-text__icon":"_purpur-field-error-text__icon_1u768_12"},z="purpur-field-error-text",ye=({["data-testid"]:e,children:n,className:t,relevant:a="additions text",...u})=>d.jsxs("div",{className:xe([t,B[z]]),"data-testid":e,"aria-live":"assertive","aria-relevant":a,...u,children:[d.jsx(ge,{svg:de,size:"xs",className:B[`${z}__icon`]}),n]});function we(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Z={exports:{}};/*!
9
+ */(function(e){(function(){var n={}.hasOwnProperty;function t(){for(var r="",o=0;o<arguments.length;o++){var i=arguments[o];i&&(r=u(r,a(i)))}return r}function a(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return t.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var o="";for(var i in r)n.call(r,i)&&r[i]&&(o=u(o,i));return o}function u(r,o){return o?r?r+" "+o:r+o:r}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(F);var $e=F.exports;const xe=_e($e),L={"purpur-field-error-text":"_purpur-field-error-text_1u768_1","purpur-field-error-text__icon":"_purpur-field-error-text__icon_1u768_12"},T="purpur-field-error-text",ye=({["data-testid"]:e,children:n,className:t,relevant:a="additions text",...u})=>d.jsxs("div",{className:xe([t,L[T]]),"data-testid":e,"aria-live":"assertive","aria-relevant":a,...u,children:[d.jsx(ge,{svg:de,size:"xs",className:L[`${T}__icon`]}),n]});function we(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Z={exports:{}};/*!
10
10
  Copyright (c) 2018 Jed Watson.
11
11
  Licensed under the MIT License (MIT), see
12
12
  http://jedwatson.github.io/classnames
13
- */(function(e){(function(){var n={}.hasOwnProperty;function t(){for(var r="",o=0;o<arguments.length;o++){var i=arguments[o];i&&(r=u(r,a.call(this,i)))}return r}function a(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return t.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var o="";for(var i in r)n.call(r,i)&&r[i]&&(o=u(o,this&&this[i]||i));return o}function u(r,o){return o?r?r+" "+o:r+o:r}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(Z);var Ce=Z.exports;const Ne=we(Ce),Se={"purpur-icon":"_purpur-icon_8u1lq_1","purpur-icon--xxs":"_purpur-icon--xxs_8u1lq_4","purpur-icon--xs":"_purpur-icon--xs_8u1lq_8","purpur-icon--sm":"_purpur-icon--sm_8u1lq_12","purpur-icon--md":"_purpur-icon--md_8u1lq_16","purpur-icon--lg":"_purpur-icon--lg_8u1lq_20","purpur-icon--xl":"_purpur-icon--xl_8u1lq_24"},Ee={name:"checkmark-bold",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M21.243 4.176a2 2 0 0 1 .324 2.81l-10.45 13.176a2.092 2.092 0 0 1-3.118.18l-5.413-5.413A2 2 0 1 1 5.414 12.1l3.9 3.9 9.118-11.5a2 2 0 0 1 2.81-.324Z" clip-rule="evenodd"/></svg>',keywords:["checkmark-bold"],category:"utility"},Oe={name:"minus-bold",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M3 12c0-1.105.711-2 1.588-2h14.824c.877 0 1.588.895 1.588 2s-.711 2-1.588 2H4.588C3.711 14 3 13.105 3 12Z" clip-rule="evenodd"/></svg>',keywords:["minus-bold"],category:"utility"},Ae=Ne.bind(Se),T="purpur-icon",Pe="md",ke=e=>e.filter(n=>Object.keys(n).length>=1).map(n=>`${n.name}="${n.value}"`).join(" "),je=({content:e="",title:n}={})=>{const t=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},n?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],a=n?`<title>${n}</title>`:"";return`<svg ${ke(t)}>${a}${e}</svg>`},Re=e=>e.replace(/<(\/?)svg([^>]*)>/g,"").trim(),U=({["data-testid"]:e,svg:n,allyTitle:t,className:a="",size:u=Pe,...r})=>{const o=je({content:Re(n.svg),title:t}),i=Ae(a,T,`${T}--${u}`);return d.jsx("span",{"aria-label":t,className:i,"data-testid":e,dangerouslySetInnerHTML:{__html:o},...r})};function M(){return M=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},M.apply(this,arguments)}function N(){return N=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},N.apply(this,arguments)}function Me(e,n){typeof e=="function"?e(n):e!=null&&(e.current=n)}function qe(...e){return n=>e.forEach(t=>Me(t,n))}const G=c.forwardRef((e,n)=>{const{children:t,...a}=e,u=c.Children.toArray(t),r=u.find(Ie);if(r){const o=r.props.children,i=u.map(s=>s===r?c.Children.count(o)>1?c.Children.only(null):c.isValidElement(o)?o.props.children:null:s);return c.createElement(q,N({},a,{ref:n}),c.isValidElement(o)?c.cloneElement(o,void 0,i):null)}return c.createElement(q,N({},a,{ref:n}),t)});G.displayName="Slot";const q=c.forwardRef((e,n)=>{const{children:t,...a}=e;return c.isValidElement(t)?c.cloneElement(t,{...Le(a,t.props),ref:n?qe(n,t.ref):t.ref}):c.Children.count(t)>1?c.Children.only(null):null});q.displayName="SlotClone";const De=({children:e})=>c.createElement(c.Fragment,null,e);function Ie(e){return c.isValidElement(e)&&e.type===De}function Le(e,n){const t={...n};for(const a in n){const u=e[a],r=n[a];/^on[A-Z]/.test(a)?u&&r?t[a]=(...o)=>{r(...o),u(...o)}:u&&(t[a]=u):a==="style"?t[a]={...u,...r}:a==="className"&&(t[a]=[u,r].filter(Boolean).join(" "))}return{...e,...t}}const Be=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ze=Be.reduce((e,n)=>{const t=c.forwardRef((a,u)=>{const{asChild:r,...o}=a,i=r?G:n;return c.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),c.createElement(i,N({},o,{ref:u}))});return t.displayName=`Primitive.${n}`,{...e,[n]:t}},{}),Te=c.forwardRef((e,n)=>c.createElement(ze.label,M({},e,{ref:n,onMouseDown:t=>{var a;(a=e.onMouseDown)===null||a===void 0||a.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault()}}))),Ue=Te;function Ve(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var K={exports:{}};/*!
13
+ */(function(e){(function(){var n={}.hasOwnProperty;function t(){for(var r="",o=0;o<arguments.length;o++){var i=arguments[o];i&&(r=u(r,a.call(this,i)))}return r}function a(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return t.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var o="";for(var i in r)n.call(r,i)&&r[i]&&(o=u(o,this&&this[i]||i));return o}function u(r,o){return o?r?r+" "+o:r+o:r}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(Z);var Ce=Z.exports;const Ne=we(Ce),Se={"purpur-icon":"_purpur-icon_8u1lq_1","purpur-icon--xxs":"_purpur-icon--xxs_8u1lq_4","purpur-icon--xs":"_purpur-icon--xs_8u1lq_8","purpur-icon--sm":"_purpur-icon--sm_8u1lq_12","purpur-icon--md":"_purpur-icon--md_8u1lq_16","purpur-icon--lg":"_purpur-icon--lg_8u1lq_20","purpur-icon--xl":"_purpur-icon--xl_8u1lq_24"},Ee={name:"checkmark-bold",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M21.243 4.176a2 2 0 0 1 .324 2.81l-10.45 13.176a2.092 2.092 0 0 1-3.118.18l-5.413-5.413A2 2 0 1 1 5.414 12.1l3.9 3.9 9.118-11.5a2 2 0 0 1 2.81-.324Z" clip-rule="evenodd"/></svg>',keywords:["checkmark-bold"],category:"utility"},Oe={name:"minus-bold",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M3 12c0-1.105.711-2 1.588-2h14.824c.877 0 1.588.895 1.588 2s-.711 2-1.588 2H4.588C3.711 14 3 13.105 3 12Z" clip-rule="evenodd"/></svg>',keywords:["minus-bold"],category:"utility"},Ae=Ne.bind(Se),z="purpur-icon",Pe="md",ke=e=>e.filter(n=>Object.keys(n).length>=1).map(n=>`${n.name}="${n.value}"`).join(" "),je=({content:e="",title:n}={})=>{const t=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},n?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],a=n?`<title>${n}</title>`:"";return`<svg ${ke(t)}>${a}${e}</svg>`},Me=e=>e.replace(/<(\/?)svg([^>]*)>/g,"").trim(),U=({["data-testid"]:e,svg:n,allyTitle:t,className:a="",size:u=Pe,...r})=>{const o=je({content:Me(n.svg),title:t}),i=Ae(a,z,`${z}--${u}`);return d.jsx("span",{"aria-label":t,className:i,"data-testid":e,dangerouslySetInnerHTML:{__html:o},...r})};function R(){return R=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},R.apply(this,arguments)}function N(){return N=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},N.apply(this,arguments)}function Re(e,n){typeof e=="function"?e(n):e!=null&&(e.current=n)}function qe(...e){return n=>e.forEach(t=>Re(t,n))}const G=c.forwardRef((e,n)=>{const{children:t,...a}=e,u=c.Children.toArray(t),r=u.find(Ie);if(r){const o=r.props.children,i=u.map(s=>s===r?c.Children.count(o)>1?c.Children.only(null):c.isValidElement(o)?o.props.children:null:s);return c.createElement(q,N({},a,{ref:n}),c.isValidElement(o)?c.cloneElement(o,void 0,i):null)}return c.createElement(q,N({},a,{ref:n}),t)});G.displayName="Slot";const q=c.forwardRef((e,n)=>{const{children:t,...a}=e;return c.isValidElement(t)?c.cloneElement(t,{...Be(a,t.props),ref:n?qe(n,t.ref):t.ref}):c.Children.count(t)>1?c.Children.only(null):null});q.displayName="SlotClone";const De=({children:e})=>c.createElement(c.Fragment,null,e);function Ie(e){return c.isValidElement(e)&&e.type===De}function Be(e,n){const t={...n};for(const a in n){const u=e[a],r=n[a];/^on[A-Z]/.test(a)?u&&r?t[a]=(...o)=>{r(...o),u(...o)}:u&&(t[a]=u):a==="style"?t[a]={...u,...r}:a==="className"&&(t[a]=[u,r].filter(Boolean).join(" "))}return{...e,...t}}const Le=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Te=Le.reduce((e,n)=>{const t=c.forwardRef((a,u)=>{const{asChild:r,...o}=a,i=r?G:n;return c.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),c.createElement(i,N({},o,{ref:u}))});return t.displayName=`Primitive.${n}`,{...e,[n]:t}},{}),ze=c.forwardRef((e,n)=>c.createElement(Te.label,R({},e,{ref:n,onMouseDown:t=>{var a;(a=e.onMouseDown)===null||a===void 0||a.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault()}}))),Ue=ze;function Ve(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var K={exports:{}};/*!
14
14
  Copyright (c) 2018 Jed Watson.
15
15
  Licensed under the MIT License (MIT), see
16
16
  http://jedwatson.github.io/classnames
@@ -22,5 +22,5 @@
22
22
  Copyright (c) 2018 Jed Watson.
23
23
  Licensed under the MIT License (MIT), see
24
24
  http://jedwatson.github.io/classnames
25
- */(function(e){(function(){var n={}.hasOwnProperty;function t(){for(var r="",o=0;o<arguments.length;o++){var i=arguments[o];i&&(r=u(r,a(i)))}return r}function a(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return t.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var o="";for(var i in r)n.call(r,i)&&r[i]&&(o=u(o,i));return o}function u(r,o){return o?r?r+" "+o:r+o:r}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(oe);var xr=oe.exports;const R=$r(xr),_={"purpur-checkbox":"_purpur-checkbox_10fl8_1","purpur-checkbox__box":"_purpur-checkbox__box_10fl8_7","purpur-checkbox--error":"_purpur-checkbox--error_10fl8_16","purpur-checkbox__indicator":"_purpur-checkbox__indicator_10fl8_59","purpur-checkbox__label":"_purpur-checkbox__label_10fl8_70","purpur-checkbox__wrapper":"_purpur-checkbox__wrapper_10fl8_73","purpur-checkbox__container":"_purpur-checkbox__container_10fl8_79"},$="purpur-checkbox",yr=({["data-testid"]:e,checked:n,className:t,errorText:a,label:u,onChange:r,...o},i)=>{const s=a&&!n;return d.jsxs("div",{className:R([t,_[`${$}__wrapper`]]),children:[d.jsxs("div",{className:R([t,_[`${$}__container`]]),children:[d.jsx(gr,{...o,checked:n,className:R(_[$],{[_[`${$}--error`]]:s}),"data-testid":e,onCheckedChange:r,ref:i,children:d.jsx("span",{className:_[`${$}__box`],children:d.jsx(_r,{className:_[`${$}__indicator`],children:n==="indeterminate"?d.jsx(U,{"data-testid":e&&`${e}-checked-icon`,size:"xs",svg:Oe}):d.jsx(U,{"data-testid":e&&`${e}-indeterminate-icon`,size:"xs",svg:Ee})})})}),u&&d.jsx(Ze,{htmlFor:o.id,"data-testid":e&&`${e}-label`,disabled:o.disabled,className:_[`${$}__label`],children:d.jsx(Je,{variant:"paragraph-100",disabled:o.disabled,children:`${o.required?"* ":""}${u}`})})]}),s&&d.jsx(ye,{"data-testid":e&&`${e}-error-text`,children:a})]})},ae=c.forwardRef(yr);ae.displayName="Checkbox";exports.Checkbox=ae;
25
+ */(function(e){(function(){var n={}.hasOwnProperty;function t(){for(var r="",o=0;o<arguments.length;o++){var i=arguments[o];i&&(r=u(r,a(i)))}return r}function a(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return t.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var o="";for(var i in r)n.call(r,i)&&r[i]&&(o=u(o,i));return o}function u(r,o){return o?r?r+" "+o:r+o:r}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(oe);var xr=oe.exports;const M=$r(xr),_={"purpur-checkbox":"_purpur-checkbox_10fl8_1","purpur-checkbox__box":"_purpur-checkbox__box_10fl8_7","purpur-checkbox--error":"_purpur-checkbox--error_10fl8_16","purpur-checkbox__indicator":"_purpur-checkbox__indicator_10fl8_59","purpur-checkbox__label":"_purpur-checkbox__label_10fl8_70","purpur-checkbox__wrapper":"_purpur-checkbox__wrapper_10fl8_73","purpur-checkbox__container":"_purpur-checkbox__container_10fl8_79"},$="purpur-checkbox",yr=({["data-testid"]:e,checked:n,className:t,errorText:a,label:u,onChange:r,...o},i)=>{const s=a&&!n;return d.jsxs("div",{className:M([t,_[`${$}__wrapper`]]),children:[d.jsxs("div",{className:M([t,_[`${$}__container`]]),children:[d.jsx(gr,{...o,checked:n,className:M(_[$],{[_[`${$}--error`]]:s}),"data-testid":e,onCheckedChange:r,ref:i,children:d.jsx("span",{className:_[`${$}__box`],children:d.jsx(_r,{className:_[`${$}__indicator`],children:n==="indeterminate"?d.jsx(U,{"data-testid":e&&`${e}-checked-icon`,size:"xs",svg:Oe}):d.jsx(U,{"data-testid":e&&`${e}-indeterminate-icon`,size:"xs",svg:Ee})})})}),u&&d.jsx(Ze,{htmlFor:o.id,"data-testid":e&&`${e}-label`,disabled:o.disabled,className:_[`${$}__label`],children:d.jsx(Je,{variant:"paragraph-100",disabled:o.disabled,children:`${o.required?"* ":""}${u}`})})]}),s&&d.jsx(ye,{"data-testid":e&&`${e}-error-text`,children:a})]})},ae=c.forwardRef(yr);ae.displayName="Checkbox";exports.Checkbox=ae;
26
26
  //# sourceMappingURL=checkbox.cjs.js.map