@6thbridge/hexa 0.0.0-pr40-32 → 0.0.0-pr40-33

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.js CHANGED
@@ -11,5 +11,5 @@
11
11
  focus-visible:border-status-success-fill focus-visible:!ring-offset-status-success-bg focus-visible:!ring-status-success-bg focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-status-success-fill
12
12
  focus:border-status-success-fill focus:!ring-offset-status-success-bg focus:!ring-status-success-bg focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:ring-status-success-fill
13
13
  disabled:cursor-not-allowed disabled:opacity-50 peer`,e==="md"?"h-5 w-5":e==="lg"?"h-6 w-6":"","data-[state=checked]:border-status-success-fill data-[state=checked]:bg-status-success-bg",o),id:r,disabled:l,...u,children:(0,ne.jsx)(xt.Indicator,{className:n(`text-white dark:text-black data-[state=checked]:text-status-success-fill
14
- flex items-center justify-center text-current`),children:t?(0,ne.jsx)(Po.motion.svg,{initial:{opacity:0,scale:.8},exit:{opacity:0},animate:{opacity:1,scale:1},transition:{duration:.1},width:"12",height:"2",viewBox:"0 0 12 2",fill:"none",children:(0,ne.jsx)("path",{d:"M1.9165 1H10.0832",stroke:l?"#B0B0B0":"#00D488",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}):(0,ne.jsx)(Po.motion.svg,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{duration:.1},exit:{opacity:0},width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",children:(0,ne.jsx)("path",{d:"M1 3.99996L3.66353 6.66349L9 1.33643",stroke:l?"#B0B0B0":"#00D488",strokeWidth:"1.06667",strokeLinecap:"round",strokeLinejoin:"round"})})})}),(a||d)&&(0,ne.jsxs)("div",{className:n("flex flex-col justify-start items-start text-base-700 dark:text-white peer-aria-checked:text-base-900 dark:peer-aria-checked:text-white peer-focus-visible:text-base-900 dark:peer-focus-visible:text-white peer-focus:text-base-900 dark:peer-focus:text-white peer-hover:text-base-900 dark:peer-hover:text-white",s),children:[(0,ne.jsx)("label",{htmlFor:r,className:n(i,"text-sm font-normal cursor-pointer disabled:cursor-not-allowed transition-colors"),children:a}),d&&(0,ne.jsx)("p",{className:n("text-sm text-base-500",p),children:d})]})]}));Lo.displayName=xt.Root.displayName;var Da=require("lucide-react"),C=require("react/jsx-runtime"),Do=({disabled:e,className:t,values:o,placeholder:r="",status:a,onDelete:i})=>(0,C.jsxs)(Z,{className:n(q({status:a}),t),disabled:e,children:[(0,C.jsx)("div",{className:"w-full flex flex-row items-center gap-2 flex-wrap",children:o.length?o?.map(s=>(0,C.jsxs)("p",{className:"text-xs p-1.5 py-1 bg-gray-100 rounded-md flex items-center",children:[s.label,(0,C.jsx)("button",{type:"button",className:"pl-2",onClick:l=>{l.stopPropagation(),i&&i(s)},children:(0,C.jsx)(Da.X,{size:12})})]},s?.value)):o.length===0?(0,C.jsx)("span",{className:"text-[#79818C] dark:text-[#959BA4]",children:r}):""}),(0,C.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:(0,C.jsx)("path",{d:"M16.5999 7.45825L11.1666 12.8916C10.5249 13.5333 9.4749 13.5333 8.83324 12.8916L3.3999 7.45825",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})})]}),ka=({options:e,children:t,onChange:o,optionComponent:r,values:a,hideSearch:i,modal:s,placeholder:l,isLoading:d,showSelectedValues:p=!1,error:c,label:u,showAsterisk:m})=>{let[g,v]=ge.useState(""),[w,h]=ge.useState(a),y=b=>{let z=w.find(ie=>ie.value===b.value);h(ie=>z?(o(ie.filter(Ee=>Ee.value!==b.value)),ie.filter(Ee=>Ee.value!==b.value)):(o([...ie,b]),[...ie,b]))},R=g?e.filter(b=>b.label?.trim()?.toLowerCase()?.includes(g?.trim()?.toLowerCase())):e??[],A=ge.useRef(null),[f,D]=ge.useState(void 0);ge.useLayoutEffect(()=>{A.current&&D(A.current.clientWidth)},[A.current]);let F=ge.useCallback(b=>{let z=w?.filter(ie=>ie?.value!==b?.value)??[];console.log("filtered",z),h(z)},[w]);return console.log("values",w),(0,C.jsxs)("div",{className:"relative space-y-1",children:[(0,C.jsx)(V,{showAsterisk:m,error:c,children:u}),(0,C.jsxs)(te,{modal:s,children:[(0,C.jsx)("div",{ref:A,children:t??(0,C.jsx)(Do,{values:w,placeholder:l??"Select",onDelete:F,className:"h-auto"})}),p&&(0,C.jsx)("div",{className:"flex py-2 gap-2 flex-wrap",children:w?.map(b=>(0,C.jsx)("div",{className:"bg-gray-100 border text-black rounded-xl text-[10px] font-medium px-2 py-1",children:b?.label},b?.value))}),(0,C.jsxs)(U,{portal:!s,align:"start",className:"min-w-[200px] p-0",style:{width:f},children:[!i&&(0,C.jsx)("div",{className:"w-full px-4",children:(0,C.jsxs)("div",{className:"w-full h-[36px] px-1 flex items-center justify-start border-[0.5px] rounded-md border-[#D7D7D7] mb-[5px]",children:[d?(0,C.jsx)(ye,{}):(0,C.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,C.jsx)("path",{d:"M11.5 21C16.7467 21 21 16.7467 21 11.5C21 6.25329 16.7467 2 11.5 2C6.25329 2 2 6.25329 2 11.5C2 16.7467 6.25329 21 11.5 21Z",stroke:"#959595",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,C.jsx)("path",{d:"M22 22L20 20",stroke:"#959595",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,C.jsx)("input",{value:g,placeholder:"Search",type:"text",disabled:d,className:"oultine-0 focus-visible:outline-0 focus-visible:ring-0 ml-1 w-full !border-transparent placeholder:text-sm placeholder:font-normal dark:bg-transparent placeholder:text-[#959595] dark:placeholder:text-[#DDDFE0] focus:ring-0 focus:ring-offset-0 focus:bg-white dark:focus:bg-transparent dark:text-[#DDDFE0]",onChange:b=>v(b.target.value)})]})}),(0,C.jsxs)("div",{className:n("w-full h-[44px] px-2.5 flex items-center justify-between mb-[5px] border-[#D7D7D7] dark:border-[#5C636B]",i?"border-b-[0.5px]":"border-y-[0.5px]"),children:[(0,C.jsxs)("button",{className:"text-sm text-primary-main font-normal",onClick:()=>{w?.length===e?.length?(h([]),o([])):(h(e),o(e))},disabled:R?.length<1||d,children:[w?.length===e?.length?"Unselect":"Select"," all"]}),(0,C.jsxs)("p",{className:"text-sm text-[#959595] font-normal dark:text-[#DDDFE0]",children:[w.length," selected"]})]}),(0,C.jsxs)(Ce,{viewPortClassName:"max-h-[225px]",className:"pb-1",children:[d&&(0,C.jsx)("div",{className:"py-7 flex justify-center",children:(0,C.jsx)(ye,{})}),!d&&R?.map(b=>(0,C.jsx)("article",{className:"cursor-pointer relative hover:bg-status-success-bg transition flex w-[calc(100%-0.375rem)] mx-auto rounded-md items-center focus:dark:!text-[#DDDFE0] py-1.5 px-2 text-sm outline-none focus:bg-status-success-bg dark:!text-[#DDDFE0] focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus-visible:ring-1 focus-visible:ring-status-success-fill focus-visible:ring-offset-1 focus-visible:ring-offset-status-success-fill",onClick:()=>{y(b)},children:(0,C.jsx)("div",{className:"w-full h-[30px] flex flex-row items-center dark:!text-white",children:(0,C.jsx)(Lo,{value:b.value,label:r?r(b):b.label,bodyClassName:"w-full",labelWrapperClassName:"w-full",labelClassName:n(r&&"w-full"),checked:w?.map(z=>z.value).includes(b.value)})})},b.value))]})]})]})]})};var ko={USD:"$",CAD:"CA$",EUR:"\u20AC",AED:"AED",AFN:"Af",ALL:"ALL",AMD:"AMD",ARS:"AR$",AUD:"AU$",AZN:"man.",BAM:"KM",BDT:"Tk",BGN:"BGN",BHD:"BD",BIF:"FBu",BND:"BN$",BOB:"Bs",BRL:"R$",BWP:"BWP",BYN:"Br",BZD:"BZ$",CDF:"CDF",CHF:"CHF",CLP:"CL$",CNY:"CN\xA5",COP:"CO$",CRC:"\u20A1",CVE:"CV$",CZK:"K\u010D",DJF:"Fdj",DKK:"Dkr",DOP:"RD$",DZD:"DA",EEK:"Ekr",EGP:"EGP",ERN:"Nfk",ETB:"Br",GBP:"\xA3",GEL:"GEL",GHS:"GH\u20B5",GNF:"FG",GTQ:"GTQ",HKD:"HK$",HNL:"HNL",HRK:"kn",HUF:"Ft",IDR:"Rp",ILS:"\u20AA",INR:"\u20B9",IQD:"IQD",IRR:"IRR",ISK:"Ikr",JMD:"J$",JOD:"JD",JPY:"\xA5",KES:"Ksh",KHR:"KHR",KMF:"CF",KRW:"\u20A9",KWD:"KD",KZT:"KZT",LBP:"L.L.",LKR:"SLRs",LTL:"Lt",LVL:"Ls",LYD:"LD",MAD:"MAD",MDL:"MDL",MGA:"MGA",MKD:"MKD",MMK:"MMK",MOP:"MOP$",MUR:"MURs",MXN:"MX$",MYR:"RM",MZN:"MTn",NAD:"N$",NGN:"\u20A6",NIO:"C$",NOK:"Nkr",NPR:"NPRs",NZD:"NZ$",OMR:"OMR",PAB:"B/.",PEN:"S/.",PHP:"\u20B1",PKR:"PKRs",PLN:"z\u0142",PYG:"\u20B2",QAR:"QR",RON:"RON",RSD:"din.",RUB:"RUB",RWF:"RWF",SAR:"SR",SDG:"SDG",SEK:"Skr",SGD:"S$",SOS:"Ssh",SYP:"SY\xA3",THB:"\u0E3F",TND:"DT",TOP:"T$",TRY:"TL",TTD:"TT$",TWD:"NT$",TZS:"TSh",UAH:"\u20B4",UGX:"USh",UYU:"$U",UZS:"UZS",VEF:"Bs.F.",VND:"\u20AB",XAF:"F CFA",XOF:"CFA",YER:"YR",ZAR:"R",ZMK:"ZK",ZWL:"ZWL$"},wt=class wt{static getCurrencyLocaleMap(t){return{XOF:"fr",XAF:"fr"}[t]||"en"}static koboToNaira(t){return+t/100}static nairaToKobo(t){return+t*100}static getCurrencySymbol(t){return ko[t]||t}};Eo(wt,"formatAmountAndCurrency",(t,o,r)=>{let a=new Intl.NumberFormat(r?.locale||wt.getCurrencyLocaleMap(t),{maximumFractionDigits:3,style:"currency",currency:t,currencyDisplay:"symbol"}).format(r?.convertToMajorCurrency?wt.koboToNaira(Number(o)):Number(o)).replace(/^(\D+)/,"$1 ").replace("\u202F"," ").replace(/\s+/,""),i=ko[t]||t;return a.replace(t,i)});var To=wt;var qt=N(require("dayjs")),So=class{static getDateLibrary(){return(0,qt.default)()}static formatTimestampToDate(t,o){return qt.default.unix(t).format(o||"ddd, MMM, YYYY | HH:mm:ss")}static formatDateToTimestamp(t){return(0,qt.default)(t).unix()}};0&&(module.exports={AmountAction,Banner,Button,CalendarInput,CopyableLabel,Country,CurrencySymbolMap,DateAction,DebouncedInput,DevBanner,Dialog,Drawer,DrawerClose,DrawerRoot,FilterPopover,FlagComponent,FormLabel,HasResourcePermission,Input,Loader,LocaleSelector,MultiSelect,MultiSelectTrigger,OTPInput,PageDataToolbar,Pagination,PasswordInput,PermissionsContext,PermissionsProvider,PhoneInput,Popover,PopoverContent,PopoverRoot,PopoverTrigger,RadioGroup,RadioGroupItem,ScrollArea,Select,Sidebar,Status,Table,TextOverflow,Textarea,Tooltip,TooltipContent,TooltipProvider,TooltipRoot,TooltipTrigger,buttonVariants,cn,useFilterStore,useHasPermission,usePermissions});
14
+ flex items-center justify-center text-current`),children:t?(0,ne.jsx)(Po.motion.svg,{initial:{opacity:0,scale:.8},exit:{opacity:0},animate:{opacity:1,scale:1},transition:{duration:.1},width:"12",height:"2",viewBox:"0 0 12 2",fill:"none",children:(0,ne.jsx)("path",{d:"M1.9165 1H10.0832",stroke:l?"#B0B0B0":"#00D488",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}):(0,ne.jsx)(Po.motion.svg,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{duration:.1},exit:{opacity:0},width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",children:(0,ne.jsx)("path",{d:"M1 3.99996L3.66353 6.66349L9 1.33643",stroke:l?"#B0B0B0":"#00D488",strokeWidth:"1.06667",strokeLinecap:"round",strokeLinejoin:"round"})})})}),(a||d)&&(0,ne.jsxs)("div",{className:n("flex flex-col justify-start items-start text-base-700 dark:text-white peer-aria-checked:text-base-900 dark:peer-aria-checked:text-white peer-focus-visible:text-base-900 dark:peer-focus-visible:text-white peer-focus:text-base-900 dark:peer-focus:text-white peer-hover:text-base-900 dark:peer-hover:text-white",s),children:[(0,ne.jsx)("label",{htmlFor:r,className:n(i,"text-sm font-normal cursor-pointer disabled:cursor-not-allowed transition-colors"),children:a}),d&&(0,ne.jsx)("p",{className:n("text-sm text-base-500",p),children:d})]})]}));Lo.displayName=xt.Root.displayName;var Da=require("lucide-react"),C=require("react/jsx-runtime"),Do=({disabled:e,className:t,values:o,placeholder:r="",status:a,onDelete:i})=>(0,C.jsxs)(Z,{className:n(q({status:a}),t),disabled:e,children:[(0,C.jsx)("div",{className:"w-full flex flex-row items-center gap-2 flex-wrap",children:o.length?o?.map(s=>(0,C.jsxs)("p",{className:"text-xs p-1.5 py-1 bg-gray-100 rounded-md flex items-center",children:[s.label,(0,C.jsx)("button",{type:"button",className:"pl-2",onClick:l=>{l.stopPropagation(),i&&i(s)},children:(0,C.jsx)(Da.X,{size:12})})]},s?.value)):o.length===0?(0,C.jsx)("span",{className:"text-[#79818C] dark:text-[#959BA4]",children:r}):""}),(0,C.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:(0,C.jsx)("path",{d:"M16.5999 7.45825L11.1666 12.8916C10.5249 13.5333 9.4749 13.5333 8.83324 12.8916L3.3999 7.45825",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})})]}),ka=({options:e,children:t,onChange:o,optionComponent:r,values:a,hideSearch:i,modal:s,placeholder:l,isLoading:d,showSelectedValues:p=!1,error:c,label:u,showAsterisk:m})=>{let[g,v]=ge.useState(""),[w,h]=ge.useState(a),y=b=>{let z=w.find(ie=>ie.value===b.value);h(ie=>z?(o(ie.filter(Ee=>Ee.value!==b.value)),ie.filter(Ee=>Ee.value!==b.value)):(o([...ie,b]),[...ie,b]))},R=g?e.filter(b=>b.label?.trim()?.toLowerCase()?.includes(g?.trim()?.toLowerCase())):e??[],A=ge.useRef(null),[f,D]=ge.useState(void 0);ge.useLayoutEffect(()=>{A.current&&D(A.current.clientWidth)},[A.current]);let F=ge.useCallback(b=>{let z=w?.filter(ie=>ie?.value!==b?.value)??[];console.log("filtered",z),h(z)},[w]);return(0,C.jsxs)("div",{className:"relative space-y-1",children:[(0,C.jsx)(V,{showAsterisk:m,error:c,children:u}),(0,C.jsxs)(te,{modal:s,children:[(0,C.jsx)("div",{ref:A,children:t??(0,C.jsx)(Do,{values:w,placeholder:l??"Select",onDelete:F,className:"h-auto"})}),p&&(0,C.jsx)("div",{className:"flex py-2 gap-2 flex-wrap",children:w?.map(b=>(0,C.jsx)("div",{className:"bg-gray-100 border text-black rounded-xl text-[10px] font-medium px-2 py-1",children:b?.label},b?.value))}),(0,C.jsxs)(U,{portal:!s,align:"start",className:"min-w-[200px] p-0",style:{width:f},children:[!i&&(0,C.jsx)("div",{className:"w-full px-4",children:(0,C.jsxs)("div",{className:"w-full h-[36px] px-1 flex items-center justify-start border-[0.5px] rounded-md border-[#D7D7D7] mb-[5px]",children:[d?(0,C.jsx)(ye,{}):(0,C.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,C.jsx)("path",{d:"M11.5 21C16.7467 21 21 16.7467 21 11.5C21 6.25329 16.7467 2 11.5 2C6.25329 2 2 6.25329 2 11.5C2 16.7467 6.25329 21 11.5 21Z",stroke:"#959595",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,C.jsx)("path",{d:"M22 22L20 20",stroke:"#959595",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,C.jsx)("input",{value:g,placeholder:"Search",type:"text",disabled:d,className:"oultine-0 focus-visible:outline-0 focus-visible:ring-0 ml-1 w-full !border-transparent placeholder:text-sm placeholder:font-normal dark:bg-transparent placeholder:text-[#959595] dark:placeholder:text-[#DDDFE0] focus:ring-0 focus:ring-offset-0 focus:bg-white dark:focus:bg-transparent dark:text-[#DDDFE0]",onChange:b=>v(b.target.value)})]})}),(0,C.jsxs)("div",{className:n("w-full h-[44px] px-2.5 flex items-center justify-between mb-[5px] border-[#D7D7D7] dark:border-[#5C636B]",i?"border-b-[0.5px]":"border-y-[0.5px]"),children:[(0,C.jsxs)("button",{className:"text-sm text-primary-main font-normal",onClick:()=>{w?.length===e?.length?(h([]),o([])):(h(e),o(e))},disabled:R?.length<1||d,children:[w?.length===e?.length?"Unselect":"Select"," all"]}),(0,C.jsxs)("p",{className:"text-sm text-[#959595] font-normal dark:text-[#DDDFE0]",children:[w.length," selected"]})]}),(0,C.jsxs)(Ce,{viewPortClassName:"max-h-[225px]",className:"pb-1",children:[d&&(0,C.jsx)("div",{className:"py-7 flex justify-center",children:(0,C.jsx)(ye,{})}),!d&&R?.map(b=>(0,C.jsx)("article",{className:"cursor-pointer relative hover:bg-status-success-bg transition flex w-[calc(100%-0.375rem)] mx-auto rounded-md items-center focus:dark:!text-[#DDDFE0] py-1.5 px-2 text-sm outline-none focus:bg-status-success-bg dark:!text-[#DDDFE0] focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus-visible:ring-1 focus-visible:ring-status-success-fill focus-visible:ring-offset-1 focus-visible:ring-offset-status-success-fill",onClick:()=>{y(b)},children:(0,C.jsx)("div",{className:"w-full h-[30px] flex flex-row items-center dark:!text-white",children:(0,C.jsx)(Lo,{value:b.value,label:r?r(b):b.label,bodyClassName:"w-full",labelWrapperClassName:"w-full",labelClassName:n(r&&"w-full"),checked:w?.map(z=>z.value).includes(b.value)})})},b.value))]})]})]})]})};var ko={USD:"$",CAD:"CA$",EUR:"\u20AC",AED:"AED",AFN:"Af",ALL:"ALL",AMD:"AMD",ARS:"AR$",AUD:"AU$",AZN:"man.",BAM:"KM",BDT:"Tk",BGN:"BGN",BHD:"BD",BIF:"FBu",BND:"BN$",BOB:"Bs",BRL:"R$",BWP:"BWP",BYN:"Br",BZD:"BZ$",CDF:"CDF",CHF:"CHF",CLP:"CL$",CNY:"CN\xA5",COP:"CO$",CRC:"\u20A1",CVE:"CV$",CZK:"K\u010D",DJF:"Fdj",DKK:"Dkr",DOP:"RD$",DZD:"DA",EEK:"Ekr",EGP:"EGP",ERN:"Nfk",ETB:"Br",GBP:"\xA3",GEL:"GEL",GHS:"GH\u20B5",GNF:"FG",GTQ:"GTQ",HKD:"HK$",HNL:"HNL",HRK:"kn",HUF:"Ft",IDR:"Rp",ILS:"\u20AA",INR:"\u20B9",IQD:"IQD",IRR:"IRR",ISK:"Ikr",JMD:"J$",JOD:"JD",JPY:"\xA5",KES:"Ksh",KHR:"KHR",KMF:"CF",KRW:"\u20A9",KWD:"KD",KZT:"KZT",LBP:"L.L.",LKR:"SLRs",LTL:"Lt",LVL:"Ls",LYD:"LD",MAD:"MAD",MDL:"MDL",MGA:"MGA",MKD:"MKD",MMK:"MMK",MOP:"MOP$",MUR:"MURs",MXN:"MX$",MYR:"RM",MZN:"MTn",NAD:"N$",NGN:"\u20A6",NIO:"C$",NOK:"Nkr",NPR:"NPRs",NZD:"NZ$",OMR:"OMR",PAB:"B/.",PEN:"S/.",PHP:"\u20B1",PKR:"PKRs",PLN:"z\u0142",PYG:"\u20B2",QAR:"QR",RON:"RON",RSD:"din.",RUB:"RUB",RWF:"RWF",SAR:"SR",SDG:"SDG",SEK:"Skr",SGD:"S$",SOS:"Ssh",SYP:"SY\xA3",THB:"\u0E3F",TND:"DT",TOP:"T$",TRY:"TL",TTD:"TT$",TWD:"NT$",TZS:"TSh",UAH:"\u20B4",UGX:"USh",UYU:"$U",UZS:"UZS",VEF:"Bs.F.",VND:"\u20AB",XAF:"F CFA",XOF:"CFA",YER:"YR",ZAR:"R",ZMK:"ZK",ZWL:"ZWL$"},wt=class wt{static getCurrencyLocaleMap(t){return{XOF:"fr",XAF:"fr"}[t]||"en"}static koboToNaira(t){return+t/100}static nairaToKobo(t){return+t*100}static getCurrencySymbol(t){return ko[t]||t}};Eo(wt,"formatAmountAndCurrency",(t,o,r)=>{let a=new Intl.NumberFormat(r?.locale||wt.getCurrencyLocaleMap(t),{maximumFractionDigits:3,style:"currency",currency:t,currencyDisplay:"symbol"}).format(r?.convertToMajorCurrency?wt.koboToNaira(Number(o)):Number(o)).replace(/^(\D+)/,"$1 ").replace("\u202F"," ").replace(/\s+/,""),i=ko[t]||t;return a.replace(t,i)});var To=wt;var qt=N(require("dayjs")),So=class{static getDateLibrary(){return(0,qt.default)()}static formatTimestampToDate(t,o){return qt.default.unix(t).format(o||"ddd, MMM, YYYY | HH:mm:ss")}static formatDateToTimestamp(t){return(0,qt.default)(t).unix()}};0&&(module.exports={AmountAction,Banner,Button,CalendarInput,CopyableLabel,Country,CurrencySymbolMap,DateAction,DebouncedInput,DevBanner,Dialog,Drawer,DrawerClose,DrawerRoot,FilterPopover,FlagComponent,FormLabel,HasResourcePermission,Input,Loader,LocaleSelector,MultiSelect,MultiSelectTrigger,OTPInput,PageDataToolbar,Pagination,PasswordInput,PermissionsContext,PermissionsProvider,PhoneInput,Popover,PopoverContent,PopoverRoot,PopoverTrigger,RadioGroup,RadioGroupItem,ScrollArea,Select,Sidebar,Status,Table,TextOverflow,Textarea,Tooltip,TooltipContent,TooltipProvider,TooltipRoot,TooltipTrigger,buttonVariants,cn,useFilterStore,useHasPermission,usePermissions});
15
15
  //# sourceMappingURL=index.js.map