freemium-ui 2.0.52 → 2.0.53
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/lib/index.cjs.js +9 -10
- package/lib/index.js +9 -10
- package/lib/package.json +1 -1
- package/package.json +1 -1
package/lib/index.cjs.js
CHANGED
|
@@ -4662,23 +4662,21 @@ small:"424px",default:"600px",medium:"720px",large:"800px","x-large":"1200px"
|
|
|
4662
4662
|
${$o}
|
|
4663
4663
|
max-width: ${({size:e})=>Jy[e]};
|
|
4664
4664
|
height: ${({isFullHeight:e})=>e?"100vh":"unset"};
|
|
4665
|
-
right: 0;
|
|
4666
4665
|
position: fixed;
|
|
4667
|
-
${({theme:e})=>"ltr"===e.direction?"right: 0":"left: 0"};
|
|
4668
4666
|
top: 0;
|
|
4669
4667
|
display: flex;
|
|
4670
4668
|
flex-direction: column;
|
|
4671
4669
|
top: ${({placement:e})=>Xy[e].top};
|
|
4672
4670
|
bottom: ${({placement:e})=>Xy[e].bottom};
|
|
4673
|
-
left: ${({placement:e
|
|
4674
|
-
right: ${({placement:e
|
|
4671
|
+
left: ${({placement:e})=>Xy[e].left};
|
|
4672
|
+
right: ${({placement:e})=>Xy[e].right};
|
|
4675
4673
|
animation-duration: ${({theme:e})=>e.transitions.duration.standard};
|
|
4676
4674
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeIn};
|
|
4677
4675
|
&[data-state='open'] {
|
|
4678
|
-
animation-name: ${({
|
|
4676
|
+
animation-name: ${({placement:e})=>Xy[e].right?Xr:Jr};
|
|
4679
4677
|
}
|
|
4680
4678
|
&[data-state='closed'] {
|
|
4681
|
-
animation-name: ${({
|
|
4679
|
+
animation-name: ${({placement:e})=>Xy[e].right?qr:Zr};
|
|
4682
4680
|
}
|
|
4683
4681
|
`,tb=yr.button`
|
|
4684
4682
|
display: grid;
|
|
@@ -4698,8 +4696,8 @@ small:"424px",default:"600px",medium:"720px",large:"800px","x-large":"1200px"
|
|
|
4698
4696
|
background-color: ${({theme:e})=>e.colors.fill.inverse};
|
|
4699
4697
|
`}
|
|
4700
4698
|
`,nb=yr(My)`
|
|
4701
|
-
left: ${({
|
|
4702
|
-
right: ${({
|
|
4699
|
+
left: ${({placement:e})=>"right"===e?"-24px":"unset"};
|
|
4700
|
+
right: ${({placement:e})=>"left"===e?"-24px":"unset"};
|
|
4703
4701
|
`,rb=yr(gy)``,ob=yr(yy)``,ab=({type:t="button",...n})=>"button"===t?e.createElement(ib,{
|
|
4704
4702
|
...n,type:"button"}):e.createElement(lb,{...n,type:"input"}),ib=t=>{
|
|
4705
4703
|
const n=cr(),{itemIdentifier:r="id",label:o,id:a,items:i=[],onChange:l,placeholder:c,readOnly:s=!1,disabled:u=!1,isRequired:d=!1,showTick:h=!0,itemToString:p,name:f,itemComponent:m,width:v,className:g,style:y,defaultSelectedItem:b=null,isErrored:w,portalContainer:C,isMenuLoading:z,errorText:M,defaultIsOpen:x,matchButtonWidth:E=!0,isOpen:S,buttonContentProps:_,selectedItemComponent:H}=t,D=e.useMemo((()=>{
|
|
@@ -17288,11 +17286,12 @@ placement:"ltr"===h.direction?"bottom-start":"bottom-end",usePortal:!0},
|
|
|
17288
17286
|
parseDate:e=>e?FN(e).toDate():new Date,formatDate:e=>e?FN(e).format(u):"",...d
|
|
17289
17287
|
}),i&&l&&e.createElement(lm,null,l))
|
|
17290
17288
|
},exports.Drawer=({isOpen:t,children:n,hideDismissIcon:r,customClass:o="",size:a="default",isFullHeight:i=!0,placement:l="right",clickOutToClose:c=!1,onDismiss:s})=>{
|
|
17291
|
-
const u=cr()
|
|
17289
|
+
const u=cr(),d="rtl"===u.direction?"right"===l?"left":"right":l
|
|
17290
|
+
;return e.createElement(rb,{open:t,onOpenChange:e=>{e||s?.()}
|
|
17292
17291
|
},e.createElement(ob,null,e.createElement(Qy,{forceMount:!0,
|
|
17293
17292
|
className:"DialogOverlay",onClick:()=>{c&&s?.()}}),e.createElement(eb,{
|
|
17294
17293
|
forceMount:!0,className:`DialogContent ${o??""}`.trim(),isFullHeight:i,size:a,
|
|
17295
|
-
placement:
|
|
17294
|
+
placement:d,dir:u.direction},!r&&e.createElement(nb,{asChild:!0,placement:d
|
|
17296
17295
|
},e.createElement(tb,{"aria-label":"Close"},e.createElement(ro,{
|
|
17297
17296
|
fill:u.colors.text.inverse}))),n)))
|
|
17298
17297
|
},exports.Dropdown=ab,exports.DropdownInputItem=$f,
|
package/lib/index.js
CHANGED
|
@@ -4672,23 +4672,21 @@ default:"600px",medium:"720px",large:"800px","x-large":"1200px"},Eb=Or(Uy)`
|
|
|
4672
4672
|
${ca}
|
|
4673
4673
|
max-width: ${({size:e})=>xb[e]};
|
|
4674
4674
|
height: ${({isFullHeight:e})=>e?"100vh":"unset"};
|
|
4675
|
-
right: 0;
|
|
4676
4675
|
position: fixed;
|
|
4677
|
-
${({theme:e})=>"ltr"===e.direction?"right: 0":"left: 0"};
|
|
4678
4676
|
top: 0;
|
|
4679
4677
|
display: flex;
|
|
4680
4678
|
flex-direction: column;
|
|
4681
4679
|
top: ${({placement:e})=>Mb[e].top};
|
|
4682
4680
|
bottom: ${({placement:e})=>Mb[e].bottom};
|
|
4683
|
-
left: ${({placement:e
|
|
4684
|
-
right: ${({placement:e
|
|
4681
|
+
left: ${({placement:e})=>Mb[e].left};
|
|
4682
|
+
right: ${({placement:e})=>Mb[e].right};
|
|
4685
4683
|
animation-duration: ${({theme:e})=>e.transitions.duration.standard};
|
|
4686
4684
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeIn};
|
|
4687
4685
|
&[data-state='open'] {
|
|
4688
|
-
animation-name: ${({
|
|
4686
|
+
animation-name: ${({placement:e})=>Mb[e].right?yo:bo};
|
|
4689
4687
|
}
|
|
4690
4688
|
&[data-state='closed'] {
|
|
4691
|
-
animation-name: ${({
|
|
4689
|
+
animation-name: ${({placement:e})=>Mb[e].right?vo:go};
|
|
4692
4690
|
}
|
|
4693
4691
|
`,_b=Or.button`
|
|
4694
4692
|
display: grid;
|
|
@@ -4708,14 +4706,15 @@ default:"600px",medium:"720px",large:"800px","x-large":"1200px"},Eb=Or(Uy)`
|
|
|
4708
4706
|
background-color: ${({theme:e})=>e.colors.fill.inverse};
|
|
4709
4707
|
`}
|
|
4710
4708
|
`,Hb=Or(Ky)`
|
|
4711
|
-
left: ${({
|
|
4712
|
-
right: ${({
|
|
4709
|
+
left: ${({placement:e})=>"right"===e?"-24px":"unset"};
|
|
4710
|
+
right: ${({placement:e})=>"left"===e?"-24px":"unset"};
|
|
4713
4711
|
`,Db=Or(By)``,Ab=Or(jy)``,Lb=({isOpen:e,children:n,hideDismissIcon:r,customClass:o="",size:a="default",isFullHeight:i=!0,placement:l="right",clickOutToClose:c=!1,onDismiss:s})=>{
|
|
4714
|
-
const u=Hr()
|
|
4712
|
+
const u=Hr(),d="rtl"===u.direction?"right"===l?"left":"right":l
|
|
4713
|
+
;return t.createElement(Db,{open:e,onOpenChange:e=>{e||s?.()}
|
|
4715
4714
|
},t.createElement(Ab,null,t.createElement(Eb,{forceMount:!0,
|
|
4716
4715
|
className:"DialogOverlay",onClick:()=>{c&&s?.()}}),t.createElement(Sb,{
|
|
4717
4716
|
forceMount:!0,className:`DialogContent ${o??""}`.trim(),isFullHeight:i,size:a,
|
|
4718
|
-
placement:
|
|
4717
|
+
placement:d,dir:u.direction},!r&&t.createElement(Hb,{asChild:!0,placement:d
|
|
4719
4718
|
},t.createElement(_b,{"aria-label":"Close"},t.createElement(xo,{
|
|
4720
4719
|
fill:u.colors.text.inverse}))),n)))
|
|
4721
4720
|
},Vb=({type:e="button",...n})=>"button"===e?t.createElement(kb,{...n,
|
package/lib/package.json
CHANGED