kwant-ui 3.47.1-dev.4 → 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.
- 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};
|
|
@@ -3811,7 +3811,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
3811
3811
|
}
|
|
3812
3812
|
}
|
|
3813
3813
|
}
|
|
3814
|
-
`;function wi(t){const{label:r,activeOption:n,placeholder:a="Enter",editMode:c,data:i=[],onSelect:o,allowSearch:s=!0,disableEdit:h,selectProps:v,tooltipContent:u,tooltipPosition:g}=t,[m,d]=p(!1),[f,_]=p(""),[w,b]=p(!1);l((()=>{n?.label&&_(n?.label)}),[n,m]),l((()=>{f&&d(!0)}),[f]);return e(_i,{children:e(mi,{editActive:!h&&w,setEditActive:b,onMouseLeaveFromInput:()=>{},disableHover:!0,editMode:!h&&c,label:r,value:n?.label,disableEdit:h,tooltipContent:u,tooltipPosition:g,children:e("div",{onMouseLeave:()=>{_(n?.label),b(!1)},children:e(Zn,{...v,onSelect:e=>{o(e),b(!1)},onInputChange:e=>{_(e.target.value)},width:"100%",placeholder:a,allowInput:s,offsetTop:"48px",searchable:!1,data:i,selectedValue:n?.value,inputProps:{id:"select-input"},required:!1})})})})}const bi=n.div`
|
|
3814
|
+
`;function wi(t){const{label:r,activeOption:n,placeholder:a="Enter",editMode:c,data:i=[],onSelect:o,allowSearch:s=!0,disableEdit:h,selectProps:v,tooltipContent:u,tooltipPosition:g}=t,[m,d]=p(!1),[f,_]=p(""),[w,b]=p(!1);l((()=>{n?.label&&_(n?.label)}),[n,m]),l((()=>{f&&d(!0)}),[f]);return e(_i,{children:e(mi,{editActive:!h&&w,setEditActive:b,onMouseLeaveFromInput:()=>{},disableHover:!0,editMode:!h&&c,label:r,value:n?.label,disableEdit:h,tooltipContent:u,tooltipPosition:g,children:e("div",{onMouseLeave:()=>{_(n?.label),b(!1)},children:e(Zn,{...v,onSelect:e=>{o(e),e&&b(!1)},onInputChange:e=>{_(e.target.value)},width:"100%",placeholder:a,allowInput:s,offsetTop:"48px",searchable:!1,data:i,selectedValue:n?.value,inputProps:{id:"select-input"},required:!1})})})})}const bi=n.div`
|
|
3815
3815
|
width: 100%;
|
|
3816
3816
|
|
|
3817
3817
|
.hover-input-container {
|