kwant-ui 3.47.1-dev.5 → 3.47.1-dev.6

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.
@@ -7,7 +7,6 @@ export declare namespace Checkbox {
7
7
  onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
8
8
  color?: string;
9
9
  disabled?: boolean;
10
- defaultChecked?: boolean;
11
10
  checked?: boolean;
12
11
  variant?: CheckboxVariant;
13
12
  checkBoxColor?: string;
package/dist/index.es.js CHANGED
@@ -160,7 +160,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
160
160
  `})(o)};
161
161
  }
162
162
  `}
163
- `,he=r=>{const{label:n,buttontype:a="primary",disabled:c=!1,onClick:i,leftIcon:o,rightIcon:s,buttonElementProps:l,...h}=r;return e(le,{rightIcon:s,leftIcon:o,buttontype:a,disabled:c,label:n,...h,children:t("button",{onClick:e=>(e=>{c||i&&i(e)})(e),disabled:c,...h,...l,children:[o&&o," ",n&&e("p",{children:n})," ",s&&s]})})},ve=n.div`
163
+ `,he=r=>{const{label:n,buttontype:a="primary",disabled:c=!1,onClick:i,leftIcon:o,rightIcon:s,buttonElementProps:l,...h}=r;return e(le,{rightIcon:s,leftIcon:o,buttontype:a,disabled:c,label:n,...h,children:t("button",{onClick:e=>(e=>{c||i&&i(e)})(e),disabled:c,...l,children:[o&&o," ",n&&e("p",{children:n})," ",s&&s]})})},ve=n.div`
164
164
  height: 100%;
165
165
  display: flex;
166
166
  flex-direction: ${e=>`\n ${"row"===e.direction?"row":"column"};`};
@@ -722,7 +722,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
722
722
  white-space: nowrap;
723
723
  ${e=>"onNormal"===e.type?V.body1:V.body2};
724
724
  font-weight: ${e=>"onNormal"===e.type?400:500};
725
- `,Be=h(((r,n)=>{const{name:a,label:c,onClick:i,onChange:o,color:s,disabled:l=!1,defaultChecked:h=!1,checked:p=!1,variant:u="default",checkBoxColor:g,type:m="onNormal"}=r,d=v();return t(Ce,{color:s,disabled:l,htmlFor:d,children:[t(Ae,{type:m,children:[e(Le,{ref:n,type:"checkbox",id:d,checked:p,defaultChecked:h,disabled:l,name:a,onClick:e=>i?.(e),onChange:e=>o?.(e),checkBoxColor:g,checkboxType:m}),u===Ve.Variant.line?e("span",{className:"checkboxCheckmarkLine"}):e("span",{className:"checkboxCheckmark"})]}),e(ze,{type:m,children:c})]})})),ke=(e,t)=>e?"number"==typeof e?`${e}px`:e:t,Se=()=>Math.random().toString(16).slice(2,10),Re=e=>e[e.length-1],De=n.div`
725
+ `,Be=h(((r,n)=>{const{name:a,label:c,onClick:i,onChange:o,color:s,disabled:l=!1,checked:h=!1,variant:p="default",checkBoxColor:u,type:g="onNormal"}=r,m=v();return t(Ce,{color:s,disabled:l,htmlFor:m,children:[t(Ae,{type:g,children:[e(Le,{ref:n,type:"checkbox",id:m,checked:h,disabled:l,name:a,onClick:e=>i?.(e),onChange:e=>o?.(e),checkBoxColor:u,checkboxType:g}),p===Ve.Variant.line?e("span",{className:"checkboxCheckmarkLine"}):e("span",{className:"checkboxCheckmark"})]}),e(ze,{type:g,children:c})]})})),ke=(e,t)=>e?"number"==typeof e?`${e}px`:e:t,Se=()=>Math.random().toString(16).slice(2,10),Re=e=>e[e.length-1],De=n.div`
726
726
  width: ${({width:e})=>"full"===e?"100%":e};
727
727
  display: flex;
728
728
  justify-content: ${({contentAlignment:e})=>e};
package/dist/index.js CHANGED
@@ -160,7 +160,7 @@
160
160
  `})(h)};
161
161
  }
162
162
  `}
163
- `,F=t=>{const{label:r,buttontype:n="primary",disabled:a=!1,onClick:c,leftIcon:i,rightIcon:o,buttonElementProps:s,...l}=t;return e.jsx(N,{rightIcon:o,leftIcon:i,buttontype:n,disabled:a,label:r,...l,children:e.jsxs("button",{onClick:e=>(e=>{a||c&&c(e)})(e),disabled:a,...l,...s,children:[i&&i," ",r&&e.jsx("p",{children:r})," ",o&&o]})})},Q=t.div`
163
+ `,F=t=>{const{label:r,buttontype:n="primary",disabled:a=!1,onClick:c,leftIcon:i,rightIcon:o,buttonElementProps:s,...l}=t;return e.jsx(N,{rightIcon:o,leftIcon:i,buttontype:n,disabled:a,label:r,...l,children:e.jsxs("button",{onClick:e=>(e=>{a||c&&c(e)})(e),disabled:a,...s,children:[i&&i," ",r&&e.jsx("p",{children:r})," ",o&&o]})})},Q=t.div`
164
164
  height: 100%;
165
165
  display: flex;
166
166
  flex-direction: ${e=>`\n ${"row"===e.direction?"row":"column"};`};
@@ -722,7 +722,7 @@
722
722
  white-space: nowrap;
723
723
  ${e=>"onNormal"===e.type?l.body1:l.body2};
724
724
  font-weight: ${e=>"onNormal"===e.type?400:500};
725
- `,pe=r.forwardRef(((t,n)=>{const{name:a,label:c,onClick:i,onChange:o,color:s,disabled:l=!1,defaultChecked:h=!1,checked:v=!1,variant:p="default",checkBoxColor:u,type:g="onNormal"}=t,m=r.useId();return e.jsxs(se,{color:s,disabled:l,htmlFor:m,children:[e.jsxs(le,{type:g,children:[e.jsx(he,{ref:n,type:"checkbox",id:m,checked:v,defaultChecked:h,disabled:l,name:a,onClick:e=>i?.(e),onChange:e=>o?.(e),checkBoxColor:u,checkboxType:g}),p===oe.Variant.line?e.jsx("span",{className:"checkboxCheckmarkLine"}):e.jsx("span",{className:"checkboxCheckmark"})]}),e.jsx(ve,{type:g,children:c})]})})),ue=(e,t)=>e?"number"==typeof e?`${e}px`:e:t,ge=()=>Math.random().toString(16).slice(2,10),me=e=>e[e.length-1],de=t.div`
725
+ `,pe=r.forwardRef(((t,n)=>{const{name:a,label:c,onClick:i,onChange:o,color:s,disabled:l=!1,checked:h=!1,variant:v="default",checkBoxColor:p,type:u="onNormal"}=t,g=r.useId();return e.jsxs(se,{color:s,disabled:l,htmlFor:g,children:[e.jsxs(le,{type:u,children:[e.jsx(he,{ref:n,type:"checkbox",id:g,checked:h,disabled:l,name:a,onClick:e=>i?.(e),onChange:e=>o?.(e),checkBoxColor:p,checkboxType:u}),v===oe.Variant.line?e.jsx("span",{className:"checkboxCheckmarkLine"}):e.jsx("span",{className:"checkboxCheckmark"})]}),e.jsx(ve,{type:u,children:c})]})})),ue=(e,t)=>e?"number"==typeof e?`${e}px`:e:t,ge=()=>Math.random().toString(16).slice(2,10),me=e=>e[e.length-1],de=t.div`
726
726
  width: ${({width:e})=>"full"===e?"100%":e};
727
727
  display: flex;
728
728
  justify-content: ${({contentAlignment:e})=>e};
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kwant-ui",
3
- "version": "3.47.1-dev.5",
3
+ "version": "3.47.1-dev.6",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.es.js",
6
6
  "types": "./dist/index.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kwant-ui",
3
- "version": "3.47.1-dev.5",
3
+ "version": "3.47.1-dev.6",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.es.js",
6
6
  "types": "./dist/index.d.ts",