kwant-ui 3.47.1-dev.5 → 3.47.1-dev.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.
- package/dist/components/Checkbox/types.d.ts +0 -1
- package/dist/index.es.js +3 -3
- package/dist/index.js +3 -3
- package/dist/package.json +1 -1
- package/package.json +1 -1
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,...
|
|
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,
|
|
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};
|
|
@@ -3318,7 +3318,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
3318
3318
|
}
|
|
3319
3319
|
}
|
|
3320
3320
|
}
|
|
3321
|
-
`;function $c(r){const{mode:n="upload",src:a,onUpload:c,onCapture:i,collapseOnClick:o=!0,hideButton:s=!1,...l}=r,[h,v]=p(!1),u=jt((()=>{v(!1)}));return t(Qc,{children:[e("div",{className:"upload-avatar",children:e(ar,{size:"xxl",src:a,backgroundColor:A.grey.grey200,...l})}),!s&&t("div",{className:"upload-button",ref:u,children:[e("button",{onClick:()=>{v(!0)},className:"upload-button__camera-icon",children:(g=n,{upload:e("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M11.7665 3.33366L13.2915 5.00033H16.6665V15.0003H3.33317V5.00033H6.70817L8.23317 3.33366H11.7665ZM12.4998 1.66699H7.49984L5.97484 3.33366H3.33317C2.4165 3.33366 1.6665 4.08366 1.6665 5.00033V15.0003C1.6665 15.917 2.4165 16.667 3.33317 16.667H16.6665C17.5832 16.667 18.3332 15.917 18.3332 15.0003V5.00033C18.3332 4.08366 17.5832 3.33366 16.6665 3.33366H14.0248L12.4998 1.66699ZM9.99984 7.50033C11.3748 7.50033 12.4998 8.62532 12.4998 10.0003C12.4998 11.3753 11.3748 12.5003 9.99984 12.5003C8.62484 12.5003 7.49984 11.3753 7.49984 10.0003C7.49984 8.62532 8.62484 7.50033 9.99984 7.50033ZM9.99984 5.83366C7.69984 5.83366 5.83317 7.70033 5.83317 10.0003C5.83317 12.3003 7.69984 14.167 9.99984 14.167C12.2998 14.167 14.1665 12.3003 14.1665 10.0003C14.1665 7.70033 12.2998 5.83366 9.99984 5.83366Z"})}),edit:e("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M11.7167 7.51667L12.4833 8.28333L4.93333 15.8333H4.16667V15.0667L11.7167 7.51667ZM14.7167 2.5C14.5083 2.5 14.2917 2.58333 14.1333 2.74167L12.6083 4.26667L15.7333 7.39167L17.2583 5.86667C17.5833 5.54167 17.5833 5.01667 17.2583 4.69167L15.3083 2.74167C15.1417 2.575 14.9333 2.5 14.7167 2.5ZM11.7167 5.15833L2.5 14.375V17.5H5.625L14.8417 8.28333L11.7167 5.15833Z"})})}[g||"upload"])}),h&&t("div",{className:"upload-button__upload-options",children:[t("div",{onClick:()=>{o&&v(!1),c()},className:"upload-button__upload-options__option",children:[e("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:
|
|
3321
|
+
`;function $c(r){const{mode:n="upload",src:a,onUpload:c,onCapture:i,collapseOnClick:o=!0,hideButton:s=!1,...l}=r,[h,v]=p(!1),u=jt((()=>{v(!1)}));return t(Qc,{children:[e("div",{className:"upload-avatar",children:e(ar,{size:"xxl",src:a,backgroundColor:A.grey.grey200,...l})}),!s&&t("div",{className:"upload-button",ref:u,children:[e("button",{onClick:()=>{v(!0)},className:"upload-button__camera-icon",children:(g=n,{upload:e("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M11.7665 3.33366L13.2915 5.00033H16.6665V15.0003H3.33317V5.00033H6.70817L8.23317 3.33366H11.7665ZM12.4998 1.66699H7.49984L5.97484 3.33366H3.33317C2.4165 3.33366 1.6665 4.08366 1.6665 5.00033V15.0003C1.6665 15.917 2.4165 16.667 3.33317 16.667H16.6665C17.5832 16.667 18.3332 15.917 18.3332 15.0003V5.00033C18.3332 4.08366 17.5832 3.33366 16.6665 3.33366H14.0248L12.4998 1.66699ZM9.99984 7.50033C11.3748 7.50033 12.4998 8.62532 12.4998 10.0003C12.4998 11.3753 11.3748 12.5003 9.99984 12.5003C8.62484 12.5003 7.49984 11.3753 7.49984 10.0003C7.49984 8.62532 8.62484 7.50033 9.99984 7.50033ZM9.99984 5.83366C7.69984 5.83366 5.83317 7.70033 5.83317 10.0003C5.83317 12.3003 7.69984 14.167 9.99984 14.167C12.2998 14.167 14.1665 12.3003 14.1665 10.0003C14.1665 7.70033 12.2998 5.83366 9.99984 5.83366Z"})}),edit:e("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M11.7167 7.51667L12.4833 8.28333L4.93333 15.8333H4.16667V15.0667L11.7167 7.51667ZM14.7167 2.5C14.5083 2.5 14.2917 2.58333 14.1333 2.74167L12.6083 4.26667L15.7333 7.39167L17.2583 5.86667C17.5833 5.54167 17.5833 5.01667 17.2583 4.69167L15.3083 2.74167C15.1417 2.575 14.9333 2.5 14.7167 2.5ZM11.7167 5.15833L2.5 14.375V17.5H5.625L14.8417 8.28333L11.7167 5.15833Z"})})}[g||"upload"])}),h&&t("div",{className:"upload-button__upload-options",children:[t("div",{onClick:()=>{o&&v(!1),c()},className:"upload-button__upload-options__option",children:[e("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:A.grey.grey400,xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M7.49984 13.3333H12.4998V8.33333H15.8332L9.99984 2.5L4.1665 8.33333H7.49984V13.3333ZM9.99984 4.85833L11.8082 6.66667H10.8332V11.6667H9.1665V6.66667H8.1915L9.99984 4.85833ZM4.1665 15H15.8332V16.6667H4.1665V15Z"})}),e("span",{children:"Upload a picture"})]}),t("div",{onClick:()=>{o&&v(!1),i()},className:"upload-button__upload-options__option",children:[e("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:A.grey.grey400,xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M11.7665 3.33366L13.2915 5.00033H16.6665V15.0003H3.33317V5.00033H6.70817L8.23317 3.33366H11.7665ZM12.4998 1.66699H7.49984L5.97484 3.33366H3.33317C2.4165 3.33366 1.6665 4.08366 1.6665 5.00033V15.0003C1.6665 15.917 2.4165 16.667 3.33317 16.667H16.6665C17.5832 16.667 18.3332 15.917 18.3332 15.0003V5.00033C18.3332 4.08366 17.5832 3.33366 16.6665 3.33366H14.0248L12.4998 1.66699ZM9.99984 7.50033C11.3748 7.50033 12.4998 8.62532 12.4998 10.0003C12.4998 11.3753 11.3748 12.5003 9.99984 12.5003C8.62484 12.5003 7.49984 11.3753 7.49984 10.0003C7.49984 8.62532 8.62484 7.50033 9.99984 7.50033ZM9.99984 5.83366C7.69984 5.83366 5.83317 7.70033 5.83317 10.0003C5.83317 12.3003 7.69984 14.167 9.99984 14.167C12.2998 14.167 14.1665 12.3003 14.1665 10.0003C14.1665 7.70033 12.2998 5.83366 9.99984 5.83366Z"})}),e("span",{children:"Take a picture"})]})]})]})]});var g}const Yc=n.div`
|
|
3322
3322
|
width: 100%;
|
|
3323
3323
|
display: flex;
|
|
3324
3324
|
flex-direction: column;
|