kwant-ui 3.14.4 → 3.14.5
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/Button/Button.d.ts.map +1 -0
- package/dist/components/Button/Button.styled.d.ts.map +1 -0
- package/dist/components/Button/helper.d.ts.map +1 -0
- package/dist/components/Button/types.d.ts.map +1 -0
- package/dist/components/MultiSelect/onOutsideClick.d.ts +3 -0
- package/dist/components/Slider/Slider.d.ts.map +1 -0
- package/dist/components/Slider/Slider.styled.d.ts.map +1 -0
- package/dist/components/Slider/index.d.ts.map +1 -0
- package/dist/components/Slider/types.d.ts.map +1 -0
- package/dist/components/StepperDrawer/StepperDrawer.d.ts +3 -0
- package/dist/components/StepperDrawer/StepperDrawer.types.d.ts +8 -0
- package/dist/components/StepperDrawer/StepperDrawer.utils.d.ts +1 -0
- package/dist/components/StepperDrawer/StepperDrawerStyled.d.ts +5 -0
- package/dist/components/StepperDrawer/index.d.ts +2 -0
- package/dist/components/Text/TextStyled.d.ts.map +1 -0
- package/dist/components/Text/index.d.ts.map +1 -0
- package/dist/components/Text/types.d.ts.map +1 -0
- package/dist/components/Text/typography.d.ts.map +1 -0
- package/dist/components/Text/utils.d.ts.map +1 -0
- package/dist/components/stepper/index.d.ts.map +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.es.js +1 -1
- package/dist/index.js +1 -1
- package/dist/kwant-ui.es.js +4345 -0
- package/dist/kwant-ui.umd.js +507 -0
- package/dist/package.json +1 -1
- package/dist/public/assets/sprite.svg +9502 -0
- package/dist/stories/Drawer/StepperDrawerStory.d.ts +2 -0
- package/dist/stories/StepperDrawer.stories.d.ts +72 -0
- package/dist/themes/colors.d.ts.map +1 -0
- package/dist/themes/index.d.ts.map +1 -0
- package/dist/themes/types.d.ts.map +1 -0
- package/dist/types.d.ts +572 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,QAAA,MAAM,MAAM,UAAW,gBAAgB,KAAK,4CAiC3C,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.styled.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/Button.styled.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAI1C,QAAA,MAAM,aAAa,+FAmClB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/helper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AA2F1C,QAAA,MAAM,kBAAkB,UAAW,gBAAgB,kBAAkB,uEA+DpE,CAAC;AAEF,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAE3C,yBAAiB,eAAe,CAAC;IAC/B,MAAM,MAAM,KAAK,GAAG;QAClB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;QAC/D,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,QAAQ,CAAC,EAAE,cAAc,CAAC;QAC1B,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QACvB,OAAO,CAAC,EAAE,aAAa,CAAC;QACxB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IAEF,MAAM,MAAM,OAAO;QACjB,OAAO,YAAY;QACnB,MAAM,WAAW;QACjB,KAAK,UAAU;QACf,MAAM,WAAW;KAClB;IACD,KAAK,cAAc,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAC;IAC1D,KAAK,aAAa,GAAG,MAAM,OAAO,OAAO,CAAC;IAE1C,MAAM,MAAM,aAAa,GAAG;QAC1B,UAAU,EAAE,UAAU,CAAC;QACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,aAAa,CAAC;KACxB,CAAC;IAEF,MAAM,MAAM,UAAU;QACpB,OAAO,IAAA;QACP,SAAS,IAAA;QACT,KAAK,IAAA;QACL,OAAO,IAAA;QACP,OAAO,IAAA;QACP,QAAQ,IAAA;KACT;IAED,MAAM,MAAM,YAAY,GAAG;QACzB,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,MAAM,CAAC;QAClB,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;IAEF,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,UAAU,CAAC;IAEjD,MAAM,MAAM,kBAAkB,GAAG;QAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,KAAK,EAAE,KAAK,CAAC;QACb,UAAU,EAAE,UAAU,CAAC;QACvB,OAAO,EAAE,aAAa,CAAC;KACxB,CAAC;;CACH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../../src/components/Slider/Slider.tsx"],"names":[],"mappings":"AAKA,MAAM,MAAM,SAAS,GAAG;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,SAAS,EAAE,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,QAAA,MAAM,MAAM,UAAW,WAAW,4CA4FjC,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Slider.styled.d.ts","sourceRoot":"","sources":["../../../../src/components/Slider/Slider.styled.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAI1C,eAAO,MAAM,UAAU,oEAGtB,CAAC;AAEF,eAAO,MAAM,SAAS,oEAerB,CAAC;AAEF,eAAO,MAAM,eAAe,8FAc3B,CAAC;AAQF,eAAO,MAAM,UAAU,kGAwBtB,CAAC;AACF,eAAO,MAAM,WAAW,oEAEvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Slider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9D,OAAO,EAAE,MAAM,EAAE,CAAC;AAClB,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Slider/types.ts"],"names":[],"mappings":"AAAA,yBAAiB,eAAe,CAAC;IAC/B,KAAY,YAAY,GAAG;QACzB,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;IAEF,KAAY,gBAAgB,GAAG;QAC7B,aAAa,EAAE,MAAM,CAAC;QACtB,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,mBAAmB,EAAE,MAAM,CAAC;KAC7B,CAAC;CACH"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DrawerDeclarations } from '../Drawer/Drawer.types';
|
|
3
|
+
export declare namespace StepperDrawerDeclarations {
|
|
4
|
+
interface Props extends DrawerDeclarations.Props {
|
|
5
|
+
drawerSidebar?: React.ReactNode;
|
|
6
|
+
sidebarBorder?: boolean;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const formatGridTemplate: (str: string) => string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { DrawerDeclarations } from '../Drawer/Drawer.types';
|
|
2
|
+
export declare const StepperDrawerContentRoot: import("styled-components").StyledComponent<"div", any, DrawerDeclarations.DrawerContentStyled, never>;
|
|
3
|
+
export declare const StepperDrawerSidebar: import("styled-components").StyledComponent<"aside", any, {
|
|
4
|
+
sidebarBorder?: boolean;
|
|
5
|
+
}, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextStyled.d.ts","sourceRoot":"","sources":["../../../../src/components/Text/TextStyled.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAGxC,QAAA,MAAM,SAAS,2JAKd,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Text/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,QAAA,MAAM,IAAI,UAAW,cAAc,KAAK,4CAWvC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Text/types.ts"],"names":[],"mappings":"AAAA,yBAAiB,aAAa,CAAC;IAC7B,KAAY,KAAK,GAAG,cAAc,GAAG;QACnC,OAAO,CAAC,EAAE,CACR,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,oBAAoB,EAAE,UAAU,CAAC,KACtD,IAAI,CAAC;QACV,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,IAAI,CAAC,EAAE,IAAI,CAAC;KACb,CAAC;IAEF,KAAY,QAAQ,GAChB,UAAU,GACV,WAAW,GACX,MAAM,GACN,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,MAAM,GACN,OAAO,CAAC;IAEZ,KAAY,IAAI,GAAG,OAAO,GAAG,SAAS,CAAC;IAEvC,KAAY,cAAc,GAAG;QAC3B,QAAQ,CAAC,EAAE,QAAQ,CAAC;QACpB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,IAAI,CAAC;KACb,CAAC;CACH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../../../src/components/Text/typography.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,KAAK,UAAU,GAAG;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,QAAA,MAAM,UAAU,EAAE,UAwDjB,CAAC;AAEF,6CAA6C;AAC7C,QAAA,MAAM,gBAAgB,UAAW,cAAc,cAAc,KAAG,MAK/D,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/Text/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,QAAA,MAAM,WAAW,UACR,KAAK,SACL,cAAc,IAAI,UACjB,MAAM,KACb,MAKF,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/stepper/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGlC,KAAK,OAAO,GAAG;IACb,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AACF,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,EAAE,OAAO,EAAE,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,SAAS,EAAE,KAAK,GAAG,QAAQ,CAAC;IAC5B,SAAS,EAAE,OAAO,CAAC;IACnB,aAAa,EAAE,OAAO,EAAE,CAAC;CAC1B,CAAC;AAEF,iBAAS,OAAO,CAAC,EACf,OAAO,EACP,UAAU,EACV,YAAY,EACZ,SAAS,EACT,SAAS,EACT,aAAa,EACd,EAAE,YAAY,2CA6Dd;AAED,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC"}
|
package/dist/index.es.js
CHANGED
|
@@ -1352,7 +1352,7 @@ import{jsx as e,jsxs as t}from"react/jsx-runtime";import c,{css as r}from"styled
|
|
|
1352
1352
|
display: flex;
|
|
1353
1353
|
column-gap: 4px;
|
|
1354
1354
|
align-items: center;
|
|
1355
|
-
`,jt=c=>{const{maxHeight:r=350,width:n=350,offsetTop:a="60px",offsetLeft:s,offsetRight:i,offsetBottom:o,zIndex:v,opened:p,onChange:g,onDropdownVisibilityChange:u,data:d=[],onSelect:_,itemComponent:w,showSeparator:f=!0,collapseOnSelect:b=!0,inputLeftSection:Z,inputRightSection:x,searchPlaceholder:H="Search",searchable:M=!0,showScrollbar:E=!0,targetRef:O,onMouseEnter:P,onMouseLeave:y,onClose:V,searchAutofocus:j=!0,addable:C,selectInputValue:L}=c,[z,A]=h(""),[B,R]=h([]),k=dt(z,400),S=z?B:d,I=z&&0===B.length,Q={select:(e,t)=>()=>{_?.(e,t),b&&V?.()},searchQueryChange:e=>{A(e.target.value)}};return l((()=>{const e=z.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&");const t=new RegExp(e,"ig"),c=d?.filter((({label:e,value:c})=>e.match(t)||c?.match(t)));R(c)}),[k]),l((()=>{g?.(p),u?.()}),[p]),e(xt,{opened:p,onClose:V,width:ye(n),offsetTop:a,offsetLeft:s,offsetRight:i,offsetBottom:o,zIndex:v,targetRef:O,onMouseEnter:P,onMouseLeave:y,children:t(Ht,{expandedHeight:r,children:[M&&e(Mt,{children:e(Ye,{placeholder:H,value:z,onChange:Q.searchQueryChange,leftSection:Z,rightSection:x,autoFocus:j})}),I?e(yt,{children:e(de,{category:"body1",children:"Sorry, no results were found matching your search criteria."})}):t(Et,{separator:f,showScrollbar:E,children:[S.map(((t,c)=>w?e(Pt,{onClick:Q.select(t,c),children:m(w,{...t,label:t.label,value:t.value,index:c,key:`${t.label}${t.value}`})},`${t.label}${t.value}`):e(Ot,{onClick:Q.select(t,c),role:"button",children:t.label},`${t.label}${t.value}`))),C&&0===S.length&&e(Ot,{onClick:Q.select({label:L,value:null},0),role:"button",children:t(Vt,{children:[e(de,{category:"body1",weight:"semiBold",children:"Add:"}),t(de,{children:[" ",L]})]})})]})]})})},Ct=c.div`
|
|
1355
|
+
`,jt=c=>{const{maxHeight:r=350,width:n=350,offsetTop:a="60px",offsetLeft:s,offsetRight:i,offsetBottom:o,zIndex:v,opened:p,onChange:g,onDropdownVisibilityChange:u,data:d=[],onSelect:_,itemComponent:w,showSeparator:f=!0,collapseOnSelect:b=!0,inputLeftSection:Z,inputRightSection:x,searchPlaceholder:H="Search",searchable:M=!0,showScrollbar:E=!0,targetRef:O,onMouseEnter:P,onMouseLeave:y,onClose:V,searchAutofocus:j=!0,addable:C,selectInputValue:L}=c,[z,A]=h(""),[B,R]=h([]),k=dt(z,400),S=z?B:d,I=z&&0===B.length,Q={select:(e,t)=>()=>{_?.(e,t),b&&V?.()},searchQueryChange:e=>{A(e.target.value)}};return l((()=>{const e=z.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&");const t=new RegExp(e,"ig"),c=d?.filter((({label:e,value:c})=>e.match(t)||c?.match(t)));R(c)}),[k,d]),l((()=>{g?.(p),u?.(),A("")}),[p]),e(xt,{opened:p,onClose:V,width:ye(n),offsetTop:a,offsetLeft:s,offsetRight:i,offsetBottom:o,zIndex:v,targetRef:O,onMouseEnter:P,onMouseLeave:y,children:t(Ht,{expandedHeight:r,children:[M&&e(Mt,{children:e(Ye,{placeholder:H,value:z,onChange:Q.searchQueryChange,leftSection:Z,rightSection:x,autoFocus:j})}),I?e(yt,{children:e(de,{category:"body1",children:"Sorry, no results were found matching your search criteria."})}):t(Et,{separator:f,showScrollbar:E,children:[S.map(((t,c)=>w?e(Pt,{onClick:Q.select(t,c),children:m(w,{...t,label:t.label,value:t.value,index:c,key:`${t.label}${t.value}`})},`${t.label}${t.value}`):e(Ot,{onClick:Q.select(t,c),role:"button",children:t.label},`${t.label}${t.value}`))),C&&0===S.length&&e(Ot,{onClick:Q.select({label:L,value:null},0),role:"button",children:t(Vt,{children:[e(de,{category:"body1",weight:"semiBold",children:"Add:"}),t(de,{children:[" ",L]})]})})]})]})})},Ct=c.div`
|
|
1356
1356
|
position: relative;
|
|
1357
1357
|
`,Lt=c.div`
|
|
1358
1358
|
width: 100%;
|
package/dist/index.js
CHANGED
|
@@ -1352,7 +1352,7 @@
|
|
|
1352
1352
|
display: flex;
|
|
1353
1353
|
column-gap: 4px;
|
|
1354
1354
|
align-items: center;
|
|
1355
|
-
`,it=t=>{const{maxHeight:r=350,width:n=350,offsetTop:a="60px",offsetLeft:s,offsetRight:l,offsetBottom:i,zIndex:o,opened:h,onChange:v,onDropdownVisibilityChange:p,data:g=[],onSelect:m,itemComponent:u,showSeparator:d=!0,collapseOnSelect:_=!0,inputLeftSection:w,inputRightSection:f,searchPlaceholder:b="Search",searchable:Z=!0,showScrollbar:x=!0,targetRef:H,onMouseEnter:M,onMouseLeave:E,onClose:O,searchAutofocus:P=!0,addable:y,selectInputValue:j}=t,[V,C]=c.useState(""),[L,z]=c.useState([]),A=Ke(V,400),B=V?L:g,R=V&&0===L.length,k={select:(e,t)=>()=>{m?.(e,t),_&&O?.()},searchQueryChange:e=>{C(e.target.value)}};return c.useEffect((()=>{const e=V.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&");const t=new RegExp(e,"ig"),c=g?.filter((({label:e,value:c})=>e.match(t)||c?.match(t)));z(c)}),[A]),c.useEffect((()=>{v?.(h),p?.()}),[h]),e.jsx(et,{opened:h,onClose:O,width:pe(n),offsetTop:a,offsetLeft:s,offsetRight:l,offsetBottom:i,zIndex:o,targetRef:H,onMouseEnter:M,onMouseLeave:E,children:e.jsxs(tt,{expandedHeight:r,children:[Z&&e.jsx(ct,{children:e.jsx(ye,{placeholder:b,value:V,onChange:k.searchQueryChange,leftSection:w,rightSection:f,autoFocus:P})}),R?e.jsx(st,{children:e.jsx(te,{category:"body1",children:"Sorry, no results were found matching your search criteria."})}):e.jsxs(rt,{separator:d,showScrollbar:x,children:[B.map(((t,r)=>u?e.jsx(at,{onClick:k.select(t,r),children:c.createElement(u,{...t,label:t.label,value:t.value,index:r,key:`${t.label}${t.value}`})},`${t.label}${t.value}`):e.jsx(nt,{onClick:k.select(t,r),role:"button",children:t.label},`${t.label}${t.value}`))),y&&0===B.length&&e.jsx(nt,{onClick:k.select({label:j,value:null},0),role:"button",children:e.jsxs(lt,{children:[e.jsx(te,{category:"body1",weight:"semiBold",children:"Add:"}),e.jsxs(te,{children:[" ",j]})]})})]})]})})},ot=t.div`
|
|
1355
|
+
`,it=t=>{const{maxHeight:r=350,width:n=350,offsetTop:a="60px",offsetLeft:s,offsetRight:l,offsetBottom:i,zIndex:o,opened:h,onChange:v,onDropdownVisibilityChange:p,data:g=[],onSelect:m,itemComponent:u,showSeparator:d=!0,collapseOnSelect:_=!0,inputLeftSection:w,inputRightSection:f,searchPlaceholder:b="Search",searchable:Z=!0,showScrollbar:x=!0,targetRef:H,onMouseEnter:M,onMouseLeave:E,onClose:O,searchAutofocus:P=!0,addable:y,selectInputValue:j}=t,[V,C]=c.useState(""),[L,z]=c.useState([]),A=Ke(V,400),B=V?L:g,R=V&&0===L.length,k={select:(e,t)=>()=>{m?.(e,t),_&&O?.()},searchQueryChange:e=>{C(e.target.value)}};return c.useEffect((()=>{const e=V.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&");const t=new RegExp(e,"ig"),c=g?.filter((({label:e,value:c})=>e.match(t)||c?.match(t)));z(c)}),[A,g]),c.useEffect((()=>{v?.(h),p?.(),C("")}),[h]),e.jsx(et,{opened:h,onClose:O,width:pe(n),offsetTop:a,offsetLeft:s,offsetRight:l,offsetBottom:i,zIndex:o,targetRef:H,onMouseEnter:M,onMouseLeave:E,children:e.jsxs(tt,{expandedHeight:r,children:[Z&&e.jsx(ct,{children:e.jsx(ye,{placeholder:b,value:V,onChange:k.searchQueryChange,leftSection:w,rightSection:f,autoFocus:P})}),R?e.jsx(st,{children:e.jsx(te,{category:"body1",children:"Sorry, no results were found matching your search criteria."})}):e.jsxs(rt,{separator:d,showScrollbar:x,children:[B.map(((t,r)=>u?e.jsx(at,{onClick:k.select(t,r),children:c.createElement(u,{...t,label:t.label,value:t.value,index:r,key:`${t.label}${t.value}`})},`${t.label}${t.value}`):e.jsx(nt,{onClick:k.select(t,r),role:"button",children:t.label},`${t.label}${t.value}`))),y&&0===B.length&&e.jsx(nt,{onClick:k.select({label:j,value:null},0),role:"button",children:e.jsxs(lt,{children:[e.jsx(te,{category:"body1",weight:"semiBold",children:"Add:"}),e.jsxs(te,{children:[" ",j]})]})})]})]})})},ot=t.div`
|
|
1356
1356
|
position: relative;
|
|
1357
1357
|
`,ht=t.div`
|
|
1358
1358
|
width: 100%;
|