freemium-ui 1.0.206 → 1.0.207
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 +1 -1
- package/lib/index.esm.js +1 -1
- package/package.json +1 -1
package/lib/index.cjs.js
CHANGED
|
@@ -337,7 +337,7 @@ object-assign
|
|
|
337
337
|
&.selected {
|
|
338
338
|
background-color: ${({theme:{colors:{components:{menu:{menuItem:{selected:e}}}}}})=>e.background};
|
|
339
339
|
}
|
|
340
|
-
`,Os=n.forwardRef(((e,t)=>{const{id:r,position:a="bottom",idAccessor:o="id",nameAccessor:c="name",inline:i=!0,defaultSelectedItem:s={},size:l="normal",type:h="primary",onClick:u=(()=>{}),items:p=[]}=e,[d,m]=n.useState(null);return n.createElement(Is,null,n.createElement(po,{overrideStyleClassName:"nopadding",ref:t,inline:i,size:l,type:h,onClick:e=>{u(s,e)}},n.createElement("div",null,s[c]),n.createElement(Rs,{"aria-describedby":r,onClick:e=>{e.stopPropagation(),m(e.currentTarget)}},n.createElement(Vn,{size:"8",viewBox:"0 0 8 8",glyph:"top"===a?"chevron-up":"chevron-down"}))),n.createElement(dc,{id:r,anchorEl:d,onClose:()=>m(null),anchorOrigin:{vertical:"bottom"===a?"bottom":"top",horizontal:"right"},transformOrigin:{vertical:"bottom"===a?"top":"bottom",horizontal:"right"}},n.createElement(Ns,null,n.createElement(_s,{idAccessor:o,nameAccessor:c,options:p.filter((e=>e[o]!==s[o])),onSelect:e=>{u(e),m(null)}}))))})),Is=tt.div`
|
|
340
|
+
`,Os=n.forwardRef(((e,t)=>{const{id:r,position:a="bottom",idAccessor:o="id",nameAccessor:c="name",inline:i=!0,defaultSelectedItem:s={},size:l="normal",type:h="primary",onClick:u=(()=>{}),items:p=[]}=e,[d,m]=n.useState(null);return n.createElement(Is,null,n.createElement(po,{overrideStyleClassName:"nopadding",ref:t,inline:i,size:l,type:h,onClick:e=>{u(s,e)}},n.createElement("div",null,s[c]),p&&p.length>0&&n.createElement(Rs,{"aria-describedby":r,onClick:e=>{e.stopPropagation(),m(e.currentTarget)}},n.createElement(Vn,{size:"8",viewBox:"0 0 8 8",glyph:"top"===a?"chevron-up":"chevron-down"}))),n.createElement(dc,{id:r,anchorEl:d,onClose:()=>m(null),anchorOrigin:{vertical:"bottom"===a?"bottom":"top",horizontal:"right"},transformOrigin:{vertical:"bottom"===a?"top":"bottom",horizontal:"right"}},n.createElement(Ns,null,n.createElement(_s,{idAccessor:o,nameAccessor:c,options:p.filter((e=>e[o]!==s[o])),onSelect:e=>{u(e),m(null)}}))))})),Is=tt.div`
|
|
341
341
|
& > button.nopadding {
|
|
342
342
|
display: flex;
|
|
343
343
|
padding: 0 !important;
|
package/lib/index.esm.js
CHANGED
|
@@ -337,7 +337,7 @@ object-assign
|
|
|
337
337
|
&.selected {
|
|
338
338
|
background-color: ${({theme:{colors:{components:{menu:{menuItem:{selected:e}}}}}})=>e.background};
|
|
339
339
|
}
|
|
340
|
-
`,dl=e.forwardRef(((t,n)=>{const{id:r,position:a="bottom",idAccessor:o="id",nameAccessor:c="name",inline:i=!0,defaultSelectedItem:s={},size:l="normal",type:h="primary",onClick:p=(()=>{}),items:d=[]}=t,[u,m]=e.useState(null);return e.createElement(ul,null,e.createElement(Fo,{overrideStyleClassName:"nopadding",ref:n,inline:i,size:l,type:h,onClick:e=>{p(s,e)}},e.createElement("div",null,s[c]),e.createElement(vl,{"aria-describedby":r,onClick:e=>{e.stopPropagation(),m(e.currentTarget)}},e.createElement(er,{size:"8",viewBox:"0 0 8 8",glyph:"top"===a?"chevron-up":"chevron-down"}))),e.createElement(Wc,{id:r,anchorEl:u,onClose:()=>m(null),anchorOrigin:{vertical:"bottom"===a?"bottom":"top",horizontal:"right"},transformOrigin:{vertical:"bottom"===a?"top":"bottom",horizontal:"right"}},e.createElement(ml,null,e.createElement(ll,{idAccessor:o,nameAccessor:c,options:d.filter((e=>e[o]!==s[o])),onSelect:e=>{p(e),m(null)}}))))})),ul=Et.div`
|
|
340
|
+
`,dl=e.forwardRef(((t,n)=>{const{id:r,position:a="bottom",idAccessor:o="id",nameAccessor:c="name",inline:i=!0,defaultSelectedItem:s={},size:l="normal",type:h="primary",onClick:p=(()=>{}),items:d=[]}=t,[u,m]=e.useState(null);return e.createElement(ul,null,e.createElement(Fo,{overrideStyleClassName:"nopadding",ref:n,inline:i,size:l,type:h,onClick:e=>{p(s,e)}},e.createElement("div",null,s[c]),d&&d.length>0&&e.createElement(vl,{"aria-describedby":r,onClick:e=>{e.stopPropagation(),m(e.currentTarget)}},e.createElement(er,{size:"8",viewBox:"0 0 8 8",glyph:"top"===a?"chevron-up":"chevron-down"}))),e.createElement(Wc,{id:r,anchorEl:u,onClose:()=>m(null),anchorOrigin:{vertical:"bottom"===a?"bottom":"top",horizontal:"right"},transformOrigin:{vertical:"bottom"===a?"top":"bottom",horizontal:"right"}},e.createElement(ml,null,e.createElement(ll,{idAccessor:o,nameAccessor:c,options:d.filter((e=>e[o]!==s[o])),onSelect:e=>{p(e),m(null)}}))))})),ul=Et.div`
|
|
341
341
|
& > button.nopadding {
|
|
342
342
|
display: flex;
|
|
343
343
|
padding: 0 !important;
|