@inntechcorp/it-design 2.1.38 → 2.1.39
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/index.cjs.js +20 -14
- package/dist/index.esm.js +20 -14
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -2240,7 +2240,7 @@ function(b,o){e.exports?e.exports=o(Wi()):o(b.moment)}(Li,(function(e){void 0===
|
|
|
2240
2240
|
pointer-events: none;
|
|
2241
2241
|
/* z-index: 1; */
|
|
2242
2242
|
|
|
2243
|
-
`,wa=({id:e,errorMessage:b="",isOpen:p=!1,locked:z=!1,disabled:c=!1,showSearch:n=!1,labelType:r="single",size:O="default",placeholder:i,value:a,label:s,prefix:A,suffix:d,icon:l,image:q,onFocus:u,onBlur:f,onShow:W,onFilter:h})=>{const R=M.useRef(null),[m,g]=M.useState(!1),[L,v]=M.useState(!1);M.useEffect((()=>{g(p)}),[p]);const N=()=>{if(""!==b)return o.jsx(va,{"data-icon":"i",className:"itd-select-failed itd-failed-status",onPointerOver:()=>v(!0),onPointerOut:()=>v(!1),children:L?o.jsx(xa,{className:"itd-select-error-tooltip itd-error-tooltip",children:b}):null})};return o.jsxs(ha,{$showSearch:n,className:"itd-select-selector",onClick:n?void 0:()=>{u(),m&&W(!1)},children:[(()=>{if(A)return A})(),l?o.jsx(ga,{className:"itd-icon "+l}):q?q.indexOf(".svg")>-1?o.jsx(t.ReactSVG,{src:q,className:"itd-image itd-svg"}):o.jsx(Wa,{src:q,height:"20",brokenHeight:"20",className:"itd-image"}):void 0,o.jsx(Ra,{className:"itd-select-selection-item",children:"floating"===r?o.jsx(ua,{id:e,placeholder:i,label:s||void 0,size:O,value:a}):o.jsx(aa,{id:e,placeholder:i,label:s||void 0,size:O,isOpen:m,showSearch:n,disabled:c,onFocus:u,onBlur:f,onFilter:h,ref:R})}),(()=>{if(""!==b)return o.jsx(Ba,{className:"itd-error-border"})})(),o.jsxs(ya,{className:"itd-select-suffix",children:[d,o.jsx(ma,{$open:m,className:"itd-select-arrow",children:o.jsx(Ci,{})}),z?o.jsx(Na,{className:"itd-svg",width:"18",height:"18"}):null,N()]})]})};
|
|
2243
|
+
`,wa=({id:e,errorMessage:b="",isOpen:p=!1,locked:z=!1,disabled:c=!1,showSearch:n=!1,labelType:r="single",size:O="default",placeholder:i,value:a,label:s,prefix:A,suffix:d,icon:l,image:q,onFocus:u,onBlur:f,onShow:W,onFilter:h})=>{const R=M.useRef(null),[m,g]=M.useState(!1),[L,v]=M.useState(!1);M.useEffect((()=>{g(p)}),[p]);const N=()=>{if(""!==b)return o.jsx(va,{"data-icon":"i",className:"itd-select-failed itd-failed-status",onPointerOver:()=>v(!0),onPointerOut:()=>v(!1),children:L?o.jsx(xa,{className:"itd-select-error-tooltip itd-error-tooltip",children:b}):null})};return o.jsxs(ha,{$showSearch:n,className:"itd-select-selector",onClick:n||c?void 0:()=>{u(),m&&W(!1)},children:[(()=>{if(A)return A})(),l?o.jsx(ga,{className:"itd-icon "+l}):q?q.indexOf(".svg")>-1?o.jsx(t.ReactSVG,{src:q,className:"itd-image itd-svg"}):o.jsx(Wa,{src:q,height:"20",brokenHeight:"20",className:"itd-image"}):void 0,o.jsx(Ra,{className:"itd-select-selection-item",children:"floating"===r?o.jsx(ua,{id:e,placeholder:i,label:s||void 0,size:O,value:a}):o.jsx(aa,{id:e,placeholder:i,label:s||void 0,size:O,isOpen:m,showSearch:n,disabled:c,onFocus:u,onBlur:f,onFilter:h,ref:R})}),(()=>{if(""!==b)return o.jsx(Ba,{className:"itd-error-border"})})(),o.jsxs(ya,{className:"itd-select-suffix",children:[d,o.jsx(ma,{$open:m,className:"itd-select-arrow",children:o.jsx(Ci,{})}),z?o.jsx(Na,{className:"itd-svg",width:"18",height:"18"}):null,N()]})]})};
|
|
2244
2244
|
/*!
|
|
2245
2245
|
* OverlayScrollbars
|
|
2246
2246
|
* Version: 2.0.3
|
|
@@ -3116,6 +3116,7 @@ function Xa(e,b){if(Ha(e))for(let o=0;o<e.length&&!1!==b(e[o],o,e);o++);else e&&
|
|
|
3116
3116
|
|
|
3117
3117
|
.itd-select-selector {
|
|
3118
3118
|
|
|
3119
|
+
border : 1px solid #d9d9d900;
|
|
3119
3120
|
height : ${`${M.height}px`};
|
|
3120
3121
|
|
|
3121
3122
|
.itd-select-selection-item-single {
|
|
@@ -3258,27 +3259,32 @@ function Xa(e,b){if(Ha(e))for(let o=0;o<e.length&&!1!==b(e[o],o,e);o++);else e&&
|
|
|
3258
3259
|
${()=>ut`
|
|
3259
3260
|
&[disabled] {
|
|
3260
3261
|
|
|
3262
|
+
cursor: not-allowed;
|
|
3263
|
+
pointer-events: none;
|
|
3264
|
+
|
|
3261
3265
|
.itd-select-selector {
|
|
3266
|
+
|
|
3262
3267
|
background-color: #0000000a;
|
|
3263
3268
|
border: 1px solid #d9d9d9;
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
svg {
|
|
3268
|
-
fill: #00000040;
|
|
3269
|
-
}
|
|
3270
|
-
}
|
|
3269
|
+
border-radius: ${fl};
|
|
3270
|
+
cursor: not-allowed;
|
|
3271
|
+
pointer-events: auto;
|
|
3271
3272
|
|
|
3272
|
-
|
|
3273
|
-
color: #00000040;
|
|
3274
|
-
&::placeholder {
|
|
3273
|
+
.itd-select-selection-item input[disabled] {
|
|
3275
3274
|
color: #00000040;
|
|
3275
|
+
&::placeholder {
|
|
3276
|
+
color: #00000040;
|
|
3277
|
+
}
|
|
3278
|
+
}
|
|
3279
|
+
|
|
3280
|
+
.itd-select-arrow {
|
|
3281
|
+
svg {
|
|
3282
|
+
fill: #00000040;
|
|
3283
|
+
}
|
|
3276
3284
|
}
|
|
3285
|
+
|
|
3277
3286
|
}
|
|
3278
3287
|
|
|
3279
|
-
cursor: not-allowed;
|
|
3280
|
-
pointer-events: none;
|
|
3281
|
-
|
|
3282
3288
|
}
|
|
3283
3289
|
`}
|
|
3284
3290
|
|
package/dist/index.esm.js
CHANGED
|
@@ -2240,7 +2240,7 @@ function(b,M){e.exports?e.exports=M(ua()):M(b.moment)}(ma,(function(e){void 0===
|
|
|
2240
2240
|
pointer-events: none;
|
|
2241
2241
|
/* z-index: 1; */
|
|
2242
2242
|
|
|
2243
|
-
`,PA=({id:e,errorMessage:b="",isOpen:M=!1,locked:p=!1,disabled:t=!1,showSearch:c=!1,labelType:i="single",size:a="default",placeholder:A,value:s,label:d,prefix:l,suffix:q,icon:u,image:f,onFocus:W,onBlur:h,onShow:R,onFilter:m})=>{const g=r(null),[L,v]=n(!1),[N,y]=n(!1);O((()=>{v(M)}),[M]);const x=()=>{if(""!==b)return o(SA,{"data-icon":"i",className:"itd-select-failed itd-failed-status",onPointerOver:()=>y(!0),onPointerOut:()=>y(!1),children:N?o(CA,{className:"itd-select-error-tooltip itd-error-tooltip",children:b}):null})};return z(xA,{$showSearch:c,className:"itd-select-selector",onClick:c?void 0:()=>{W(),L&&R(!1)},children:[(()=>{if(l)return l})(),u?o(kA,{className:"itd-icon "+u}):f?f.indexOf(".svg")>-1?o(B,{src:f,className:"itd-image itd-svg"}):o(BA,{src:f,height:"20",brokenHeight:"20",className:"itd-image"}):void 0,o(wA,{className:"itd-select-selection-item",children:"floating"===i?o(NA,{id:e,placeholder:A,label:d||void 0,size:a,value:s}):o(hA,{id:e,placeholder:A,label:d||void 0,size:a,isOpen:L,showSearch:c,disabled:t,onFocus:W,onBlur:h,onFilter:m,ref:g})}),(()=>{if(""!==b)return o(DA,{className:"itd-error-border"})})(),z(EA,{className:"itd-select-suffix",children:[q,o(XA,{$open:L,className:"itd-select-arrow",children:o(Ua,{})}),p?o(_A,{className:"itd-svg",width:"18",height:"18"}):null,x()]})]})};
|
|
2243
|
+
`,PA=({id:e,errorMessage:b="",isOpen:M=!1,locked:p=!1,disabled:t=!1,showSearch:c=!1,labelType:i="single",size:a="default",placeholder:A,value:s,label:d,prefix:l,suffix:q,icon:u,image:f,onFocus:W,onBlur:h,onShow:R,onFilter:m})=>{const g=r(null),[L,v]=n(!1),[N,y]=n(!1);O((()=>{v(M)}),[M]);const x=()=>{if(""!==b)return o(SA,{"data-icon":"i",className:"itd-select-failed itd-failed-status",onPointerOver:()=>y(!0),onPointerOut:()=>y(!1),children:N?o(CA,{className:"itd-select-error-tooltip itd-error-tooltip",children:b}):null})};return z(xA,{$showSearch:c,className:"itd-select-selector",onClick:c||t?void 0:()=>{W(),L&&R(!1)},children:[(()=>{if(l)return l})(),u?o(kA,{className:"itd-icon "+u}):f?f.indexOf(".svg")>-1?o(B,{src:f,className:"itd-image itd-svg"}):o(BA,{src:f,height:"20",brokenHeight:"20",className:"itd-image"}):void 0,o(wA,{className:"itd-select-selection-item",children:"floating"===i?o(NA,{id:e,placeholder:A,label:d||void 0,size:a,value:s}):o(hA,{id:e,placeholder:A,label:d||void 0,size:a,isOpen:L,showSearch:c,disabled:t,onFocus:W,onBlur:h,onFilter:m,ref:g})}),(()=>{if(""!==b)return o(DA,{className:"itd-error-border"})})(),z(EA,{className:"itd-select-suffix",children:[q,o(XA,{$open:L,className:"itd-select-arrow",children:o(Ua,{})}),p?o(_A,{className:"itd-svg",width:"18",height:"18"}):null,x()]})]})};
|
|
2244
2244
|
/*!
|
|
2245
2245
|
* OverlayScrollbars
|
|
2246
2246
|
* Version: 2.0.3
|
|
@@ -3116,6 +3116,7 @@ function IA(e,b){if(Ms(e))for(let M=0;M<e.length&&!1!==b(e[M],M,e);M++);else e&&
|
|
|
3116
3116
|
|
|
3117
3117
|
.itd-select-selector {
|
|
3118
3118
|
|
|
3119
|
+
border : 1px solid #d9d9d900;
|
|
3119
3120
|
height : ${`${o.height}px`};
|
|
3120
3121
|
|
|
3121
3122
|
.itd-select-selection-item-single {
|
|
@@ -3258,27 +3259,32 @@ function IA(e,b){if(Ms(e))for(let M=0;M<e.length&&!1!==b(e[M],M,e);M++);else e&&
|
|
|
3258
3259
|
${()=>Zt`
|
|
3259
3260
|
&[disabled] {
|
|
3260
3261
|
|
|
3262
|
+
cursor: not-allowed;
|
|
3263
|
+
pointer-events: none;
|
|
3264
|
+
|
|
3261
3265
|
.itd-select-selector {
|
|
3266
|
+
|
|
3262
3267
|
background-color: #0000000a;
|
|
3263
3268
|
border: 1px solid #d9d9d9;
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
svg {
|
|
3268
|
-
fill: #00000040;
|
|
3269
|
-
}
|
|
3270
|
-
}
|
|
3269
|
+
border-radius: ${yq};
|
|
3270
|
+
cursor: not-allowed;
|
|
3271
|
+
pointer-events: auto;
|
|
3271
3272
|
|
|
3272
|
-
|
|
3273
|
-
color: #00000040;
|
|
3274
|
-
&::placeholder {
|
|
3273
|
+
.itd-select-selection-item input[disabled] {
|
|
3275
3274
|
color: #00000040;
|
|
3275
|
+
&::placeholder {
|
|
3276
|
+
color: #00000040;
|
|
3277
|
+
}
|
|
3278
|
+
}
|
|
3279
|
+
|
|
3280
|
+
.itd-select-arrow {
|
|
3281
|
+
svg {
|
|
3282
|
+
fill: #00000040;
|
|
3283
|
+
}
|
|
3276
3284
|
}
|
|
3285
|
+
|
|
3277
3286
|
}
|
|
3278
3287
|
|
|
3279
|
-
cursor: not-allowed;
|
|
3280
|
-
pointer-events: none;
|
|
3281
|
-
|
|
3282
3288
|
}
|
|
3283
3289
|
`}
|
|
3284
3290
|
|