ml-uikit 1.1.4 → 1.1.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.
@@ -1 +1 @@
1
- {"version":3,"file":"phone-input.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/phone-input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAkB9B,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,mBAAmB,CAAA;AAE1B,QAAA,MAAM,uBAAuB,sBAAwB,CAAA;AAErD,MAAM,WAAW,eACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,WAAW,CAAC;IACxD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,cAAc,CAAC,EAAE,kBAAkB,EAAE,CAAA;IACrC,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,kBAAkB,KAAK,IAAI,CAAA;CACxD;AAED,QAAA,MAAM,UAAU,uGAgNf,CAAA;AAID,OAAO,EAAE,UAAU,EAAE,uBAAuB,EAAE,CAAA;AAC9C,YAAY,EAAE,kBAAkB,EAAE,CAAA"}
1
+ {"version":3,"file":"phone-input.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/phone-input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAmB9B,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,mBAAmB,CAAA;AAE1B,QAAA,MAAM,uBAAuB,sBAAwB,CAAA;AAKrD,MAAM,WAAW,eACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,WAAW,CAAC;IACxD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,cAAc,CAAC,EAAE,kBAAkB,EAAE,CAAA;IACrC,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,kBAAkB,KAAK,IAAI,CAAA;CACxD;AAoDD,QAAA,MAAM,UAAU,uGAgNf,CAAA;AAID,OAAO,EAAE,UAAU,EAAE,uBAAuB,EAAE,CAAA;AAC9C,YAAY,EAAE,kBAAkB,EAAE,CAAA"}
@@ -13,6 +13,10 @@ declare const TableHead: React.ForwardRefExoticComponent<React.ThHTMLAttributes<
13
13
  declare const TableCell: React.ForwardRefExoticComponent<React.TdHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
14
14
  declare const TableCaption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
15
15
  declare const TablePagination: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
16
+ declare const TablePaginationEntries: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
17
+ label?: string | undefined;
18
+ count?: string | number | undefined;
19
+ } & React.RefAttributes<HTMLDivElement>>;
16
20
  declare const TablePaginationContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
17
21
  declare const TablePaginationPages: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
18
22
  declare const TablePaginationButton: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
@@ -29,5 +33,5 @@ declare const TablePaginationIcon: ({ className, direction, }: {
29
33
  className?: string | undefined;
30
34
  direction: "left" | "right";
31
35
  }) => import("react/jsx-dev-runtime").JSX.Element;
32
- export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, TablePagination, TablePaginationContent, TablePaginationPages, TablePaginationButton, TablePaginationPage, TablePaginationGoTo, TablePaginationIcon, };
36
+ export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, TablePagination, TablePaginationEntries, TablePaginationContent, TablePaginationPages, TablePaginationButton, TablePaginationPage, TablePaginationGoTo, TablePaginationIcon, };
33
37
  //# sourceMappingURL=table.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAY9B,QAAA,MAAM,KAAK;iBANI,MAAM,SAAS;;;;0CAmC7B,CAAA;AAGD,QAAA,MAAM,WAAW,+HASf,CAAA;AAGF,QAAA,MAAM,SAAS,+HASb,CAAA;AAGF,QAAA,MAAM,WAAW,+HAYf,CAAA;AAGF,QAAA,MAAM,QAAQ,uHAYZ,CAAA;AAGF,QAAA,MAAM,SAAS,2HAYb,CAAA;AAGF,QAAA,MAAM,SAAS,2HAYb,CAAA;AAGF,QAAA,MAAM,YAAY,+HAShB,CAAA;AAGF,QAAA,MAAM,eAAe,6GAYnB,CAAA;AAGF,QAAA,MAAM,sBAAsB,6GAS1B,CAAA;AAGF,QAAA,MAAM,oBAAoB,6GASxB,CAAA;AAGF,QAAA,MAAM,qBAAqB,yHAazB,CAAA;AAOF,QAAA,MAAM,mBAAmB;;2CAiBvB,CAAA;AAUF,QAAA,MAAM,mBAAmB;;;;WAHhB,MAAM,SAAS;wCAsCvB,CAAA;AAGD,QAAA,MAAM,mBAAm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pB,qBAAqB,EACrB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,GACpB,CAAA"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("react"),f=require("lucide-react"),a=require("./index.cjs59.js"),s=require("./index.cjs19.js"),b=require("./index.cjs40.js"),L=require("./index.cjs32.js");function M(n){const p=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const l in n)if(l!=="default"){const m=Object.getOwnPropertyDescriptor(n,l);Object.defineProperty(p,l,m.get?m:{enumerable:!0,get:()=>n[l]})}}return p.default=n,Object.freeze(p)}const e=M(A),v=L.PHONE_COUNTRY_OPTIONS,C=e.forwardRef(({className:n,inputClassName:p,label:l="Phone number",helperText:m,error:o,country:d,defaultCountry:y,countryOptions:u=v,onCountryChange:g,disabled:r,type:O="tel",onFocus:S,onBlur:P,placeholder:I="Enter phone number",...i},T)=>{const[w,_]=e.useState(!1),[R,h]=e.useState(!1),[q,F]=e.useState(y),x=d??q,c=e.useMemo(()=>u.find(t=>t.value===x),[u,x]),U=e.useCallback(t=>{d===void 0&&F(t.value),g?.(t),_(!1)},[d,g]),j=i["aria-invalid"]===!0||i["aria-invalid"]==="true",D=!!o||j,N=w||R;return e.createElement("div",{className:a.cn("flex w-full flex-col items-start gap-1",n)},l?e.createElement("p",{className:"w-full text-[14px] font-medium leading-[20px] text-black"},l):null,e.createElement("div",{className:a.cn("flex h-10 w-full items-stretch overflow-hidden rounded-[8px] border bg-white transition-colors",r?"border-[#e6e6e6] bg-[#f2f2f2]":D?"border-[#ff3b30]":N?"border-[#1d1c20]":"border-[#e6e6e6]")},e.createElement(b.Popover,{open:w,onOpenChange:t=>{r||_(t)}},e.createElement(b.PopoverTrigger,{asChild:!0},e.createElement("button",{type:"button",disabled:r,"aria-label":"Select country",className:a.cn("flex h-full shrink-0 items-center gap-1 px-2 text-[14px] leading-[20px] outline-none transition-colors",c?N?"bg-white":"bg-[#fafafa]":"bg-white",r&&"bg-[#f2f2f2] text-[#b3b3b3]")},c?e.createElement(e.Fragment,null,e.createElement("span",{className:"text-[#adacb0]"},c.flag),e.createElement("span",{className:"font-normal text-black"},c.label)):e.createElement(f.Globe,{className:"h-4 w-4 text-[#adacb0]"}),e.createElement(f.ChevronDown,{className:"h-4 w-4 text-[#adacb0]"}))),e.createElement(b.PopoverContent,{align:"start",sideOffset:8,className:"w-[240px] rounded-[8px] border border-[#e6e6e6] bg-white p-0 shadow-[0px_2px_4px_0px_rgba(19,25,39,0.12),0px_4px_4px_0px_rgba(19,25,39,0.08)]"},e.createElement(s.Command,{className:a.cn("rounded-[8px] bg-white","[&_[cmdk-input-wrapper]]:mx-2 [&_[cmdk-input-wrapper]]:mb-1 [&_[cmdk-input-wrapper]]:mt-2 [&_[cmdk-input-wrapper]]:h-8 [&_[cmdk-input-wrapper]]:rounded-[4px] [&_[cmdk-input-wrapper]]:border [&_[cmdk-input-wrapper]]:border-[#e6e6e6] [&_[cmdk-input-wrapper]]:px-3","[&_[cmdk-input-wrapper]_svg]:mr-2 [&_[cmdk-input-wrapper]_svg]:h-4 [&_[cmdk-input-wrapper]_svg]:w-4 [&_[cmdk-input-wrapper]_svg]:text-[#adacb0]","[&_[cmdk-input]]:h-full [&_[cmdk-input]]:py-0 [&_[cmdk-input]]:text-[14px] [&_[cmdk-input]]:leading-[20px] [&_[cmdk-input]]:text-black [&_[cmdk-input]]:placeholder:text-[#adacb0]")},e.createElement(s.CommandInput,{placeholder:"Search country"}),e.createElement(s.CommandList,{className:"max-h-56 px-1 pb-1"},e.createElement(s.CommandEmpty,{className:"px-3 py-2 text-left text-[12px] leading-[16px] text-[#7f7d83]"},"No country found"),e.createElement(s.CommandGroup,{className:"p-0"},u.map(t=>{const E=t.value===x,k=t.name||t.label;return e.createElement(s.CommandItem,{key:t.value,value:`${t.label} ${k} ${t.dialCode}`,onSelect:()=>U(t),className:a.cn("flex w-full cursor-pointer items-center gap-2 rounded-[4px] px-3 py-2 text-[14px] leading-[20px] text-black","data-[selected=true]:bg-[#fafafa] data-[selected=true]:text-black",E&&"bg-[#fafafa]")},e.createElement("span",{className:"text-[#adacb0]"},t.flag),e.createElement("span",{className:"min-w-0 flex-1 truncate"},k),t.dialCode?e.createElement("span",{className:"text-[#7f7d83]"},t.dialCode):null,e.createElement(f.Check,{className:a.cn("h-4 w-4 text-[#1d1c20]",E?"opacity-100":"opacity-0")}))})))))),e.createElement("div",{className:a.cn("flex min-w-0 flex-1 items-center gap-2 border-l border-[#e6e6e6] bg-white px-3 py-2",r&&"bg-[#f2f2f2]")},c?.dialCode?e.createElement("span",{className:"shrink-0 text-[14px] leading-[20px] text-[#7f7d83]"},c.dialCode):null,e.createElement("input",{ref:T,disabled:r,placeholder:I,onFocus:t=>{h(!0),S?.(t)},onBlur:t=>{h(!1),P?.(t)},className:a.cn("h-full w-full min-w-0 border-0 bg-transparent p-0 text-[14px] leading-[20px] text-black outline-none placeholder:text-[#adacb0]",r&&"cursor-not-allowed text-[#9ca3af] placeholder:text-[#b3b3b3]",p),type:O,...i}))),o?e.createElement("p",{className:"w-full text-[12px] leading-[16px] text-[#ff3b30]"},o):m?e.createElement("p",{className:"w-full text-[12px] leading-[16px] text-[#7f7d83]"},m):null)});C.displayName="PhoneInput";exports.DEFAULT_COUNTRY_OPTIONS=v;exports.PhoneInput=C;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const M=require("react"),x=require("lucide-react"),L=require("./index.cjs60.js"),c=require("./index.cjs59.js"),p=require("./index.cjs19.js"),b=require("./index.cjs40.js"),Y=require("./index.cjs32.js");function G(a){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const n in a)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(a,n);Object.defineProperty(l,n,r.get?r:{enumerable:!0,get:()=>a[n]})}}return l.default=a,Object.freeze(l)}const e=G(M),v=Y.PHONE_COUNTRY_OPTIONS,$=L,B=a=>{const l=Array.from(a);if(l.length!==2)return null;const n=l.map(r=>{const o=r.codePointAt(0);return!o||o<127462||o>127487?null:String.fromCharCode(o-127462+65)});return n.some(r=>r===null)?null:n.join("")},C=({flag:a,className:l})=>{const n=e.useMemo(()=>B(a),[a]),r=n?$[n]:void 0;return r?e.createElement(r,{"aria-hidden":"true",className:c.cn("h-3.5 w-5 shrink-0 rounded-[2px] object-cover",l)}):e.createElement("span",{"aria-hidden":"true",className:l},a)},y=e.forwardRef(({className:a,inputClassName:l,label:n="Phone number",helperText:r,error:o,country:m,defaultCountry:O,countryOptions:d=v,onCountryChange:g,disabled:s,type:S="tel",onFocus:P,onBlur:I,placeholder:T="Enter phone number",...i},F)=>{const[h,_]=e.useState(!1),[j,w]=e.useState(!1),[R,q]=e.useState(O),f=m??R,u=e.useMemo(()=>d.find(t=>t.value===f),[d,f]),A=e.useCallback(t=>{m===void 0&&q(t.value),g?.(t),_(!1)},[m,g]),U=i["aria-invalid"]===!0||i["aria-invalid"]==="true",D=!!o||U,E=h||j;return e.createElement("div",{className:c.cn("flex w-full flex-col items-start gap-1",a)},n?e.createElement("p",{className:"w-full text-[14px] font-medium leading-[20px] text-black"},n):null,e.createElement("div",{className:c.cn("flex h-10 w-full items-stretch overflow-hidden rounded-[8px] border bg-white transition-colors",s?"border-[#e6e6e6] bg-[#f2f2f2]":D?"border-[#ff3b30]":E?"border-[#1d1c20]":"border-[#e6e6e6]")},e.createElement(b.Popover,{open:h,onOpenChange:t=>{s||_(t)}},e.createElement(b.PopoverTrigger,{asChild:!0},e.createElement("button",{type:"button",disabled:s,"aria-label":"Select country",className:c.cn("flex h-full shrink-0 items-center gap-1 px-2 text-[14px] leading-[20px] outline-none transition-colors",u?E?"bg-white":"bg-[#fafafa]":"bg-white",s&&"bg-[#f2f2f2] text-[#b3b3b3]")},u?e.createElement(e.Fragment,null,e.createElement(C,{flag:u.flag}),e.createElement("span",{className:"font-normal text-black"},u.label)):e.createElement(x.Globe,{className:"h-4 w-4 text-[#adacb0]"}),e.createElement(x.ChevronDown,{className:"h-4 w-4 text-[#adacb0]"}))),e.createElement(b.PopoverContent,{align:"start",sideOffset:8,className:"w-[240px] rounded-[8px] border border-[#e6e6e6] bg-white p-0 shadow-[0px_2px_4px_0px_rgba(19,25,39,0.12),0px_4px_4px_0px_rgba(19,25,39,0.08)]"},e.createElement(p.Command,{className:c.cn("rounded-[8px] bg-white","[&_[cmdk-input-wrapper]]:mx-2 [&_[cmdk-input-wrapper]]:mb-1 [&_[cmdk-input-wrapper]]:mt-2 [&_[cmdk-input-wrapper]]:h-8 [&_[cmdk-input-wrapper]]:rounded-[4px] [&_[cmdk-input-wrapper]]:border [&_[cmdk-input-wrapper]]:border-[#e6e6e6] [&_[cmdk-input-wrapper]]:px-3","[&_[cmdk-input-wrapper]_svg]:mr-2 [&_[cmdk-input-wrapper]_svg]:h-4 [&_[cmdk-input-wrapper]_svg]:w-4 [&_[cmdk-input-wrapper]_svg]:text-[#adacb0]","[&_[cmdk-input]]:h-full [&_[cmdk-input]]:py-0 [&_[cmdk-input]]:text-[14px] [&_[cmdk-input]]:leading-[20px] [&_[cmdk-input]]:text-black [&_[cmdk-input]]:placeholder:text-[#adacb0]")},e.createElement(p.CommandInput,{placeholder:"Search country"}),e.createElement(p.CommandList,{className:"max-h-56 px-1 pb-1"},e.createElement(p.CommandEmpty,{className:"px-3 py-2 text-left text-[12px] leading-[16px] text-[#7f7d83]"},"No country found"),e.createElement(p.CommandGroup,{className:"p-0"},d.map(t=>{const N=t.value===f,k=t.name||t.label;return e.createElement(p.CommandItem,{key:t.value,value:`${t.label} ${k} ${t.dialCode}`,onSelect:()=>A(t),className:c.cn("flex w-full cursor-pointer items-center gap-2 rounded-[4px] px-3 py-2 text-[14px] leading-[20px] text-black","data-[selected=true]:bg-[#fafafa] data-[selected=true]:text-black",N&&"bg-[#fafafa]")},e.createElement(C,{flag:t.flag}),e.createElement("span",{className:"min-w-0 flex-1 truncate"},k),t.dialCode?e.createElement("span",{className:"text-[#7f7d83]"},t.dialCode):null,e.createElement(x.Check,{className:c.cn("h-4 w-4 text-[#1d1c20]",N?"opacity-100":"opacity-0")}))})))))),e.createElement("div",{className:c.cn("flex min-w-0 flex-1 items-center gap-2 border-l border-[#e6e6e6] bg-white px-3 py-2",s&&"bg-[#f2f2f2]")},u?.dialCode?e.createElement("span",{className:"shrink-0 text-[14px] leading-[20px] text-[#7f7d83]"},u.dialCode):null,e.createElement("input",{ref:F,disabled:s,placeholder:T,onFocus:t=>{w(!0),P?.(t)},onBlur:t=>{w(!1),I?.(t)},className:c.cn("h-full w-full min-w-0 border-0 bg-transparent p-0 text-[14px] leading-[20px] text-black outline-none placeholder:text-[#adacb0]",s&&"cursor-not-allowed text-[#9ca3af] placeholder:text-[#b3b3b3]",l),type:S,...i}))),o?e.createElement("p",{className:"w-full text-[12px] leading-[16px] text-[#ff3b30]"},o):r?e.createElement("p",{className:"w-full text-[12px] leading-[16px] text-[#7f7d83]"},r):null)});y.displayName="PhoneInput";exports.DEFAULT_COUNTRY_OPTIONS=v;exports.PhoneInput=y;
2
2
  //# sourceMappingURL=index.cjs31.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs31.js","sources":["../src/components/ui/phone-input.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { Check, ChevronDown, Globe } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\nimport {\n Command,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n} from \"@/components/ui/command\"\nimport {\n Popover,\n PopoverContent,\n PopoverTrigger,\n} from \"@/components/ui/popover\"\n\nimport {\n PHONE_COUNTRY_OPTIONS,\n type PhoneCountryOption,\n} from \"./phone-countries\"\n\nconst DEFAULT_COUNTRY_OPTIONS = PHONE_COUNTRY_OPTIONS\n\nexport interface PhoneInputProps\n extends Omit<React.ComponentProps<\"input\">, \"className\"> {\n className?: string\n inputClassName?: string\n label?: string\n helperText?: string\n error?: string\n country?: string\n defaultCountry?: string\n countryOptions?: PhoneCountryOption[]\n onCountryChange?: (country: PhoneCountryOption) => void\n}\n\nconst PhoneInput = React.forwardRef<HTMLInputElement, PhoneInputProps>(\n (\n {\n className,\n inputClassName,\n label = \"Phone number\",\n helperText,\n error,\n country,\n defaultCountry,\n countryOptions = DEFAULT_COUNTRY_OPTIONS,\n onCountryChange,\n disabled,\n type = \"tel\",\n onFocus,\n onBlur,\n placeholder = \"Enter phone number\",\n ...props\n },\n ref\n ) => {\n const [open, setOpen] = React.useState(false)\n const [isInputFocused, setIsInputFocused] = React.useState(false)\n const [uncontrolledCountry, setUncontrolledCountry] = React.useState(\n defaultCountry\n )\n\n const selectedCountryValue = country ?? uncontrolledCountry\n\n const selectedCountry = React.useMemo(\n () =>\n countryOptions.find((option) => option.value === selectedCountryValue),\n [countryOptions, selectedCountryValue]\n )\n\n const handleCountrySelect = React.useCallback(\n (option: PhoneCountryOption) => {\n if (country === undefined) {\n setUncontrolledCountry(option.value)\n }\n onCountryChange?.(option)\n setOpen(false)\n },\n [country, onCountryChange]\n )\n\n const isAriaInvalid =\n props[\"aria-invalid\"] === true || props[\"aria-invalid\"] === \"true\"\n const hasError = Boolean(error) || isAriaInvalid\n const isActive = open || isInputFocused\n\n return (\n <div className={cn(\"flex w-full flex-col items-start gap-1\", className)}>\n {label ? (\n <p className=\"w-full text-[14px] font-medium leading-[20px] text-black\">\n {label}\n </p>\n ) : null}\n\n <div\n className={cn(\n \"flex h-10 w-full items-stretch overflow-hidden rounded-[8px] border bg-white transition-colors\",\n disabled\n ? \"border-[#e6e6e6] bg-[#f2f2f2]\"\n : hasError\n ? \"border-[#ff3b30]\"\n : isActive\n ? \"border-[#1d1c20]\"\n : \"border-[#e6e6e6]\"\n )}\n >\n <Popover\n open={open}\n onOpenChange={(nextOpen) => {\n if (disabled) {\n return\n }\n setOpen(nextOpen)\n }}\n >\n <PopoverTrigger asChild>\n <button\n type=\"button\"\n disabled={disabled}\n aria-label=\"Select country\"\n className={cn(\n \"flex h-full shrink-0 items-center gap-1 px-2 text-[14px] leading-[20px] outline-none transition-colors\",\n selectedCountry\n ? isActive\n ? \"bg-white\"\n : \"bg-[#fafafa]\"\n : \"bg-white\",\n disabled && \"bg-[#f2f2f2] text-[#b3b3b3]\"\n )}\n >\n {selectedCountry ? (\n <>\n <span className=\"text-[#adacb0]\">{selectedCountry.flag}</span>\n <span className=\"font-normal text-black\">\n {selectedCountry.label}\n </span>\n </>\n ) : (\n <Globe className=\"h-4 w-4 text-[#adacb0]\" />\n )}\n <ChevronDown className=\"h-4 w-4 text-[#adacb0]\" />\n </button>\n </PopoverTrigger>\n\n <PopoverContent\n align=\"start\"\n sideOffset={8}\n className=\"w-[240px] rounded-[8px] border border-[#e6e6e6] bg-white p-0 shadow-[0px_2px_4px_0px_rgba(19,25,39,0.12),0px_4px_4px_0px_rgba(19,25,39,0.08)]\"\n >\n <Command\n className={cn(\n \"rounded-[8px] bg-white\",\n \"[&_[cmdk-input-wrapper]]:mx-2 [&_[cmdk-input-wrapper]]:mb-1 [&_[cmdk-input-wrapper]]:mt-2 [&_[cmdk-input-wrapper]]:h-8 [&_[cmdk-input-wrapper]]:rounded-[4px] [&_[cmdk-input-wrapper]]:border [&_[cmdk-input-wrapper]]:border-[#e6e6e6] [&_[cmdk-input-wrapper]]:px-3\",\n \"[&_[cmdk-input-wrapper]_svg]:mr-2 [&_[cmdk-input-wrapper]_svg]:h-4 [&_[cmdk-input-wrapper]_svg]:w-4 [&_[cmdk-input-wrapper]_svg]:text-[#adacb0]\",\n \"[&_[cmdk-input]]:h-full [&_[cmdk-input]]:py-0 [&_[cmdk-input]]:text-[14px] [&_[cmdk-input]]:leading-[20px] [&_[cmdk-input]]:text-black [&_[cmdk-input]]:placeholder:text-[#adacb0]\"\n )}\n >\n <CommandInput placeholder=\"Search country\" />\n <CommandList className=\"max-h-56 px-1 pb-1\">\n <CommandEmpty className=\"px-3 py-2 text-left text-[12px] leading-[16px] text-[#7f7d83]\">\n No country found\n </CommandEmpty>\n <CommandGroup className=\"p-0\">\n {countryOptions.map((option) => {\n const isSelected = option.value === selectedCountryValue\n const optionName = option.name || option.label\n\n return (\n <CommandItem\n key={option.value}\n value={`${option.label} ${optionName} ${option.dialCode}`}\n onSelect={() => handleCountrySelect(option)}\n className={cn(\n \"flex w-full cursor-pointer items-center gap-2 rounded-[4px] px-3 py-2 text-[14px] leading-[20px] text-black\",\n \"data-[selected=true]:bg-[#fafafa] data-[selected=true]:text-black\",\n isSelected && \"bg-[#fafafa]\"\n )}\n >\n <span className=\"text-[#adacb0]\">{option.flag}</span>\n <span className=\"min-w-0 flex-1 truncate\">{optionName}</span>\n {option.dialCode ? (\n <span className=\"text-[#7f7d83]\">{option.dialCode}</span>\n ) : null}\n <Check\n className={cn(\n \"h-4 w-4 text-[#1d1c20]\",\n isSelected ? \"opacity-100\" : \"opacity-0\"\n )}\n />\n </CommandItem>\n )\n })}\n </CommandGroup>\n </CommandList>\n </Command>\n </PopoverContent>\n </Popover>\n\n <div\n className={cn(\n \"flex min-w-0 flex-1 items-center gap-2 border-l border-[#e6e6e6] bg-white px-3 py-2\",\n disabled && \"bg-[#f2f2f2]\"\n )}\n >\n {selectedCountry?.dialCode ? (\n <span className=\"shrink-0 text-[14px] leading-[20px] text-[#7f7d83]\">\n {selectedCountry.dialCode}\n </span>\n ) : null}\n <input\n ref={ref}\n disabled={disabled}\n placeholder={placeholder}\n onFocus={(event) => {\n setIsInputFocused(true)\n onFocus?.(event)\n }}\n onBlur={(event) => {\n setIsInputFocused(false)\n onBlur?.(event)\n }}\n className={cn(\n \"h-full w-full min-w-0 border-0 bg-transparent p-0 text-[14px] leading-[20px] text-black outline-none placeholder:text-[#adacb0]\",\n disabled &&\n \"cursor-not-allowed text-[#9ca3af] placeholder:text-[#b3b3b3]\",\n inputClassName\n )}\n type={type}\n {...props}\n />\n </div>\n </div>\n\n {error ? (\n <p className=\"w-full text-[12px] leading-[16px] text-[#ff3b30]\">{error}</p>\n ) : helperText ? (\n <p className=\"w-full text-[12px] leading-[16px] text-[#7f7d83]\">\n {helperText}\n </p>\n ) : null}\n </div>\n )\n }\n)\n\nPhoneInput.displayName = \"PhoneInput\"\n\nexport { PhoneInput, DEFAULT_COUNTRY_OPTIONS }\nexport type { PhoneCountryOption }\n"],"names":["DEFAULT_COUNTRY_OPTIONS","PHONE_COUNTRY_OPTIONS","PhoneInput","React","className","inputClassName","label","helperText","error","country","defaultCountry","countryOptions","onCountryChange","disabled","type","onFocus","onBlur","placeholder","props","ref","open","setOpen","isInputFocused","setIsInputFocused","uncontrolledCountry","setUncontrolledCountry","selectedCountryValue","selectedCountry","option","handleCountrySelect","isAriaInvalid","hasError","isActive","cn","Popover","nextOpen","PopoverTrigger","Globe","ChevronDown","PopoverContent","Command","CommandInput","CommandList","CommandEmpty","CommandGroup","isSelected","optionName","CommandItem","Check","event"],"mappings":"qhBAuBMA,EAA0BC,EAAAA,sBAe1BC,EAAaC,EAAM,WACvB,CACE,CACE,UAAAC,EACA,eAAAC,EACA,MAAAC,EAAQ,eACR,WAAAC,EACA,MAAAC,EACA,QAAAC,EACA,eAAAC,EACA,eAAAC,EAAiBX,EACjB,gBAAAY,EACA,SAAAC,EACA,KAAAC,EAAO,MACP,QAAAC,EACA,OAAAC,EACA,YAAAC,EAAc,qBACd,GAAGC,CAAA,EAELC,IACG,CACH,KAAM,CAACC,EAAMC,CAAO,EAAIlB,EAAM,SAAS,EAAK,EACtC,CAACmB,EAAgBC,CAAiB,EAAIpB,EAAM,SAAS,EAAK,EAC1D,CAACqB,EAAqBC,CAAsB,EAAItB,EAAM,SAC1DO,CAAA,EAGIgB,EAAuBjB,GAAWe,EAElCG,EAAkBxB,EAAM,QAC5B,IACEQ,EAAe,KAAMiB,GAAWA,EAAO,QAAUF,CAAoB,EACvE,CAACf,EAAgBe,CAAoB,CAAA,EAGjCG,EAAsB1B,EAAM,YAC/ByB,GAA+B,CAC1BnB,IAAY,QACdgB,EAAuBG,EAAO,KAAK,EAErChB,IAAkBgB,CAAM,EACxBP,EAAQ,EAAK,CAC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,kDAAA,EAAoDK,CAAM,EACrED,kBACD,IAAA,CAAE,UAAU,oDACVA,CACH,EACE,IACN,CAEJ,CACF,EAEAL,EAAW,YAAc"}
1
+ {"version":3,"file":"index.cjs31.js","sources":["../src/components/ui/phone-input.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { Check, ChevronDown, Globe } from \"lucide-react\"\nimport * as CountryFlags from \"country-flag-icons/react/3x2\"\n\nimport { cn } from \"@/lib/utils\"\nimport {\n Command,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n} from \"@/components/ui/command\"\nimport {\n Popover,\n PopoverContent,\n PopoverTrigger,\n} from \"@/components/ui/popover\"\n\nimport {\n PHONE_COUNTRY_OPTIONS,\n type PhoneCountryOption,\n} from \"./phone-countries\"\n\nconst DEFAULT_COUNTRY_OPTIONS = PHONE_COUNTRY_OPTIONS\ntype FlagComponent = React.ComponentType<React.SVGProps<SVGSVGElement>>\n\nconst COUNTRY_FLAG_COMPONENTS = CountryFlags as Record<string, FlagComponent>\n\nexport interface PhoneInputProps\n extends Omit<React.ComponentProps<\"input\">, \"className\"> {\n className?: string\n inputClassName?: string\n label?: string\n helperText?: string\n error?: string\n country?: string\n defaultCountry?: string\n countryOptions?: PhoneCountryOption[]\n onCountryChange?: (country: PhoneCountryOption) => void\n}\n\nconst getCountryCodeFromFlagEmoji = (flag: string): string | null => {\n const symbols = Array.from(flag)\n if (symbols.length !== 2) {\n return null\n }\n\n const letters = symbols.map((symbol) => {\n const codePoint = symbol.codePointAt(0)\n if (!codePoint || codePoint < 0x1f1e6 || codePoint > 0x1f1ff) {\n return null\n }\n return String.fromCharCode(codePoint - 0x1f1e6 + 65)\n })\n\n if (letters.some((letter) => letter === null)) {\n return null\n }\n\n return letters.join(\"\")\n}\n\nconst FlagIcon = ({\n flag,\n className,\n}: {\n flag: string\n className?: string\n}) => {\n const countryCode = React.useMemo(\n () => getCountryCodeFromFlagEmoji(flag),\n [flag]\n )\n const SvgFlag = countryCode ? COUNTRY_FLAG_COMPONENTS[countryCode] : undefined\n\n if (SvgFlag) {\n return (\n <SvgFlag\n aria-hidden=\"true\"\n className={cn(\"h-3.5 w-5 shrink-0 rounded-[2px] object-cover\", className)}\n />\n )\n }\n\n return (\n <span aria-hidden=\"true\" className={className}>\n {flag}\n </span>\n )\n}\n\nconst PhoneInput = React.forwardRef<HTMLInputElement, PhoneInputProps>(\n (\n {\n className,\n inputClassName,\n label = \"Phone number\",\n helperText,\n error,\n country,\n defaultCountry,\n countryOptions = DEFAULT_COUNTRY_OPTIONS,\n onCountryChange,\n disabled,\n type = \"tel\",\n onFocus,\n onBlur,\n placeholder = \"Enter phone number\",\n ...props\n },\n ref\n ) => {\n const [open, setOpen] = React.useState(false)\n const [isInputFocused, setIsInputFocused] = React.useState(false)\n const [uncontrolledCountry, setUncontrolledCountry] = React.useState(\n defaultCountry\n )\n\n const selectedCountryValue = country ?? uncontrolledCountry\n\n const selectedCountry = React.useMemo(\n () =>\n countryOptions.find((option) => option.value === selectedCountryValue),\n [countryOptions, selectedCountryValue]\n )\n\n const handleCountrySelect = React.useCallback(\n (option: PhoneCountryOption) => {\n if (country === undefined) {\n setUncontrolledCountry(option.value)\n }\n onCountryChange?.(option)\n setOpen(false)\n },\n [country, onCountryChange]\n )\n\n const isAriaInvalid =\n props[\"aria-invalid\"] === true || props[\"aria-invalid\"] === \"true\"\n const hasError = Boolean(error) || isAriaInvalid\n const isActive = open || isInputFocused\n\n return (\n <div className={cn(\"flex w-full flex-col items-start gap-1\", className)}>\n {label ? (\n <p className=\"w-full text-[14px] font-medium leading-[20px] text-black\">\n {label}\n </p>\n ) : null}\n\n <div\n className={cn(\n \"flex h-10 w-full items-stretch overflow-hidden rounded-[8px] border bg-white transition-colors\",\n disabled\n ? \"border-[#e6e6e6] bg-[#f2f2f2]\"\n : hasError\n ? \"border-[#ff3b30]\"\n : isActive\n ? \"border-[#1d1c20]\"\n : \"border-[#e6e6e6]\"\n )}\n >\n <Popover\n open={open}\n onOpenChange={(nextOpen) => {\n if (disabled) {\n return\n }\n setOpen(nextOpen)\n }}\n >\n <PopoverTrigger asChild>\n <button\n type=\"button\"\n disabled={disabled}\n aria-label=\"Select country\"\n className={cn(\n \"flex h-full shrink-0 items-center gap-1 px-2 text-[14px] leading-[20px] outline-none transition-colors\",\n selectedCountry\n ? isActive\n ? \"bg-white\"\n : \"bg-[#fafafa]\"\n : \"bg-white\",\n disabled && \"bg-[#f2f2f2] text-[#b3b3b3]\"\n )}\n >\n {selectedCountry ? (\n <>\n <FlagIcon flag={selectedCountry.flag} />\n <span className=\"font-normal text-black\">\n {selectedCountry.label}\n </span>\n </>\n ) : (\n <Globe className=\"h-4 w-4 text-[#adacb0]\" />\n )}\n <ChevronDown className=\"h-4 w-4 text-[#adacb0]\" />\n </button>\n </PopoverTrigger>\n\n <PopoverContent\n align=\"start\"\n sideOffset={8}\n className=\"w-[240px] rounded-[8px] border border-[#e6e6e6] bg-white p-0 shadow-[0px_2px_4px_0px_rgba(19,25,39,0.12),0px_4px_4px_0px_rgba(19,25,39,0.08)]\"\n >\n <Command\n className={cn(\n \"rounded-[8px] bg-white\",\n \"[&_[cmdk-input-wrapper]]:mx-2 [&_[cmdk-input-wrapper]]:mb-1 [&_[cmdk-input-wrapper]]:mt-2 [&_[cmdk-input-wrapper]]:h-8 [&_[cmdk-input-wrapper]]:rounded-[4px] [&_[cmdk-input-wrapper]]:border [&_[cmdk-input-wrapper]]:border-[#e6e6e6] [&_[cmdk-input-wrapper]]:px-3\",\n \"[&_[cmdk-input-wrapper]_svg]:mr-2 [&_[cmdk-input-wrapper]_svg]:h-4 [&_[cmdk-input-wrapper]_svg]:w-4 [&_[cmdk-input-wrapper]_svg]:text-[#adacb0]\",\n \"[&_[cmdk-input]]:h-full [&_[cmdk-input]]:py-0 [&_[cmdk-input]]:text-[14px] [&_[cmdk-input]]:leading-[20px] [&_[cmdk-input]]:text-black [&_[cmdk-input]]:placeholder:text-[#adacb0]\"\n )}\n >\n <CommandInput placeholder=\"Search country\" />\n <CommandList className=\"max-h-56 px-1 pb-1\">\n <CommandEmpty className=\"px-3 py-2 text-left text-[12px] leading-[16px] text-[#7f7d83]\">\n No country found\n </CommandEmpty>\n <CommandGroup className=\"p-0\">\n {countryOptions.map((option) => {\n const isSelected = option.value === selectedCountryValue\n const optionName = option.name || option.label\n\n return (\n <CommandItem\n key={option.value}\n value={`${option.label} ${optionName} ${option.dialCode}`}\n onSelect={() => handleCountrySelect(option)}\n className={cn(\n \"flex w-full cursor-pointer items-center gap-2 rounded-[4px] px-3 py-2 text-[14px] leading-[20px] text-black\",\n \"data-[selected=true]:bg-[#fafafa] data-[selected=true]:text-black\",\n isSelected && \"bg-[#fafafa]\"\n )}\n >\n <FlagIcon flag={option.flag} />\n <span className=\"min-w-0 flex-1 truncate\">{optionName}</span>\n {option.dialCode ? (\n <span className=\"text-[#7f7d83]\">{option.dialCode}</span>\n ) : null}\n <Check\n className={cn(\n \"h-4 w-4 text-[#1d1c20]\",\n isSelected ? \"opacity-100\" : \"opacity-0\"\n )}\n />\n </CommandItem>\n )\n })}\n </CommandGroup>\n </CommandList>\n </Command>\n </PopoverContent>\n </Popover>\n\n <div\n className={cn(\n \"flex min-w-0 flex-1 items-center gap-2 border-l border-[#e6e6e6] bg-white px-3 py-2\",\n disabled && \"bg-[#f2f2f2]\"\n )}\n >\n {selectedCountry?.dialCode ? (\n <span className=\"shrink-0 text-[14px] leading-[20px] text-[#7f7d83]\">\n {selectedCountry.dialCode}\n </span>\n ) : null}\n <input\n ref={ref}\n disabled={disabled}\n placeholder={placeholder}\n onFocus={(event) => {\n setIsInputFocused(true)\n onFocus?.(event)\n }}\n onBlur={(event) => {\n setIsInputFocused(false)\n onBlur?.(event)\n }}\n className={cn(\n \"h-full w-full min-w-0 border-0 bg-transparent p-0 text-[14px] leading-[20px] text-black outline-none placeholder:text-[#adacb0]\",\n disabled &&\n \"cursor-not-allowed text-[#9ca3af] placeholder:text-[#b3b3b3]\",\n inputClassName\n )}\n type={type}\n {...props}\n />\n </div>\n </div>\n\n {error ? (\n <p className=\"w-full text-[12px] leading-[16px] text-[#ff3b30]\">{error}</p>\n ) : helperText ? (\n <p className=\"w-full text-[12px] leading-[16px] text-[#7f7d83]\">\n {helperText}\n </p>\n ) : null}\n </div>\n )\n }\n)\n\nPhoneInput.displayName = \"PhoneInput\"\n\nexport { PhoneInput, DEFAULT_COUNTRY_OPTIONS }\nexport type { PhoneCountryOption }\n"],"names":["DEFAULT_COUNTRY_OPTIONS","PHONE_COUNTRY_OPTIONS","COUNTRY_FLAG_COMPONENTS","CountryFlags","getCountryCodeFromFlagEmoji","flag","symbols","letters","symbol","codePoint","letter","FlagIcon","className","countryCode","React","SvgFlag","cn","PhoneInput","inputClassName","label","helperText","error","country","defaultCountry","countryOptions","onCountryChange","disabled","type","onFocus","onBlur","placeholder","props","ref","open","setOpen","isInputFocused","setIsInputFocused","uncontrolledCountry","setUncontrolledCountry","selectedCountryValue","selectedCountry","option","handleCountrySelect","isAriaInvalid","hasError","isActive","Popover","nextOpen","PopoverTrigger","Globe","ChevronDown","PopoverContent","Command","CommandInput","CommandList","CommandEmpty","CommandGroup","isSelected","optionName","CommandItem","Check","event"],"mappings":"mjBAwBMA,EAA0BC,EAAAA,sBAG1BC,EAA0BC,EAe1BC,EAA+BC,GAAgC,CACnE,MAAMC,EAAU,MAAM,KAAKD,CAAI,EAC/B,GAAIC,EAAQ,SAAW,EACrB,OAAO,KAGT,MAAMC,EAAUD,EAAQ,IAAKE,GAAW,CACtC,MAAMC,EAAYD,EAAO,YAAY,CAAC,EACtC,MAAI,CAACC,GAAaA,EAAY,QAAWA,EAAY,OAC5C,KAEF,OAAO,aAAaA,EAAY,OAAU,EAAE,CACrD,CAAC,EAED,OAAIF,EAAQ,KAAMG,GAAWA,IAAW,IAAI,EACnC,KAGFH,EAAQ,KAAK,EAAE,CACxB,EAEMI,EAAW,CAAC,CAChB,KAAAN,EACA,UAAAO,CACF,IAGM,CACJ,MAAM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O,KAAK,IAAIiB,CAAU,IAAIjB,EAAO,QAAQ,GACvD,SAAU,IAAMC,EAAoBD,CAAM,EAC1C,UAAWzB,EAAAA,GACT,8GACA,oEACAyC,GAAc,cAAA,CAChB,EAEA3C,EAAA,cAACH,EAAA,CAAS,KAAM8B,EAAO,KAAM,EAC7B3B,EAAA,cAAC,OAAA,CAAK,UAAU,yBAAA,EAA2B4C,CAAW,EACrDjB,EAAO,SACN3B,EAAA,cAAC,OAAA,CAAK,UAAU,gBAAA,EAAkB2B,EAAO,QAAS,EAChD,KACJ3B,EAAA,cAAC8C,EAAAA,MAAA,CACC,UAAW5C,EAAAA,GACT,yBACAyC,EAAa,cAAgB,WAAA,CAC/B,CAAA,CACF,CAGN,CAAC,CACH,CACF,CAAA,CACF,CACF,EAGF3C,EAAA,cAAC,MAAA,CACC,UAAWE,EAAAA,GACT,sFACAU,GAAY,cAAA,CACd,EAECc,GAAiB,SAChB1B,EAAA,cAAC,OAAA,CAAK,UAAU,oDAAA,EACb0B,EAAgB,QACnB,EACE,KACJ1B,EAAA,cAAC,QAAA,CACC,IAAAkB,EACA,SAAAN,EACA,YAAAI,EACA,QAAU+B,GAAU,CAClBzB,EAAkB,EAAI,EACtBR,IAAUiC,CAAK,CACjB,EACA,OAASA,GAAU,CACjBzB,EAAkB,EAAK,EACvBP,IAASgC,CAAK,CAChB,EACA,UAAW7C,EAAAA,GACT,kIACAU,GACE,+DACFR,CAAA,EAEF,KAAAS,EACC,GAAGI,CAAA,CAAA,CACN,CACF,EAGDV,EACCP,EAAA,cAAC,IAAA,CAAE,UAAU,kDAAA,EAAoDO,CAAM,EACrED,kBACD,IAAA,CAAE,UAAU,oDACVA,CACH,EACE,IACN,CAEJ,CACF,EAEAH,EAAW,YAAc"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("react"),d=require("lucide-react"),o=require("./index.cjs59.js");function R(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const l=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,l.get?l:{enumerable:!0,get:()=>t[e]})}}return n.default=t,Object.freeze(n)}const a=R(E),s=a.forwardRef(({className:t,pagination:n,maxHeight:e,scrollContainerClassName:l,stickyHeader:r,...i},c)=>a.createElement("div",{className:"relative w-full overflow-hidden rounded-[8px] border border-[#e6e6e6] bg-white"},a.createElement("div",{className:o.cn("ml-table-scroll w-full overflow-auto",l),style:e?{maxHeight:typeof e=="number"?`${e}px`:e}:void 0},a.createElement("table",{ref:c,className:o.cn("w-full caption-bottom text-[14px] leading-[20px]",r?"[&_thead]:sticky [&_thead]:top-0 [&_thead]:z-10 [&_thead]:bg-[#fafafa]":void 0,t),...i})),n?a.createElement("div",{className:"w-full"},n):null));s.displayName="Table";const b=a.forwardRef(({className:t,...n},e)=>a.createElement("thead",{ref:e,className:o.cn("bg-[#fafafa] [&_tr]:border-b [&_tr]:border-[#e6e6e6]",t),...n}));b.displayName="TableHeader";const f=a.forwardRef(({className:t,...n},e)=>a.createElement("tbody",{ref:e,className:o.cn("[&_tr:last-child]:border-0",t),...n}));f.displayName="TableBody";const m=a.forwardRef(({className:t,...n},e)=>a.createElement("tfoot",{ref:e,className:o.cn("border-t border-[#e6e6e6] bg-[#fafafa] font-medium [&>tr]:last:border-b-0",t),...n}));m.displayName="TableFooter";const p=a.forwardRef(({className:t,...n},e)=>a.createElement("tr",{ref:e,className:o.cn("border-b border-[#e6e6e6]",t),...n}));p.displayName="TableRow";const g=a.forwardRef(({className:t,...n},e)=>a.createElement("th",{ref:e,className:o.cn("h-12 px-3 py-2 text-left align-middle text-[14px] font-medium leading-[20px] text-foreground",t),...n}));g.displayName="TableHead";const u=a.forwardRef(({className:t,...n},e)=>a.createElement("td",{ref:e,className:o.cn("h-12 px-3 py-2 align-middle text-[14px] font-normal leading-[20px] text-foreground",t),...n}));u.displayName="TableCell";const T=a.forwardRef(({className:t,...n},e)=>a.createElement("caption",{ref:e,className:o.cn("mt-4 text-sm text-muted-foreground",t),...n}));T.displayName="TableCaption";const x=a.forwardRef(({className:t,...n},e)=>a.createElement("div",{ref:e,className:o.cn("flex w-full items-center justify-between border-t border-[#e6e6e6] bg-white p-4",t),...n}));x.displayName="TablePagination";const w=a.forwardRef(({className:t,...n},e)=>a.createElement("div",{ref:e,className:o.cn("flex items-center gap-3",t),...n}));w.displayName="TablePaginationContent";const N=a.forwardRef(({className:t,...n},e)=>a.createElement("div",{ref:e,className:o.cn("flex items-center gap-2",t),...n}));N.displayName="TablePaginationPages";const y=a.forwardRef(({className:t,...n},e)=>a.createElement("button",{ref:e,type:"button",className:o.cn("flex h-7 w-7 items-center justify-center rounded-[8px] text-[#7f7d83] hover:text-foreground",t),...n}));y.displayName="TablePaginationButton";const P=a.forwardRef(({className:t,isActive:n,...e},l)=>a.createElement("button",{ref:l,type:"button","aria-current":n?"page":void 0,className:o.cn("flex h-8 w-8 items-center justify-center rounded-[8px] text-[12px] leading-[16px]",n?"border border-[#e6e6e6] bg-white text-foreground":"text-[#7f7d83]",t),...e}));P.displayName="TablePaginationPage";const h=a.forwardRef(({className:t,label:n="Go to page:",pageLabel:e="-",placeholder:l="-",icon:r,...i},c)=>a.createElement("div",{ref:c,className:o.cn("flex items-center gap-[13px]",t),...i},a.createElement("span",{className:"text-[14px] font-normal leading-[20px] text-foreground"},n),a.createElement("button",{type:"button","aria-haspopup":"listbox",className:"flex h-8 min-w-[72px] items-center justify-between gap-2 rounded-[8px] border border-[#e6e6e6] bg-white px-3 text-[12px] leading-[16px] text-foreground shadow-sm"},a.createElement("span",{className:e===l?"text-[#7f7d83]":void 0},e===l?l:e),r||a.createElement(d.ChevronDown,{className:"h-4 w-4 text-[#7f7d83]"}))));h.displayName="TablePaginationGoTo";const v=({className:t,direction:n})=>n==="left"?a.createElement(d.ChevronLeft,{className:o.cn("h-4 w-4",t)}):a.createElement(d.ChevronRight,{className:o.cn("h-4 w-4",t)});exports.Table=s;exports.TableBody=f;exports.TableCaption=T;exports.TableCell=u;exports.TableFooter=m;exports.TableHead=g;exports.TableHeader=b;exports.TablePagination=x;exports.TablePaginationButton=y;exports.TablePaginationContent=w;exports.TablePaginationGoTo=h;exports.TablePaginationIcon=v;exports.TablePaginationPage=P;exports.TablePaginationPages=N;exports.TableRow=p;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("react"),c=require("lucide-react"),o=require("./index.cjs59.js");function v(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const l=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(n,a,l.get?l:{enumerable:!0,get:()=>t[a]})}}return n.default=t,Object.freeze(n)}const e=v(R),d=e.forwardRef(({className:t,pagination:n,maxHeight:a,scrollContainerClassName:l,stickyHeader:r,...s},i)=>e.createElement("div",{className:"relative w-full overflow-hidden rounded-[8px] border border-[#e6e6e6] bg-white"},e.createElement("div",{className:o.cn("ml-table-scroll w-full overflow-auto",l),style:a?{maxHeight:typeof a=="number"?`${a}px`:a}:void 0},e.createElement("table",{ref:i,className:o.cn("w-full caption-bottom text-[14px] leading-[20px]",r?"[&_thead]:sticky [&_thead]:top-0 [&_thead]:z-10 [&_thead]:bg-[#fafafa]":void 0,t),...s})),n?e.createElement("div",{className:"w-full"},n):null));d.displayName="Table";const f=e.forwardRef(({className:t,...n},a)=>e.createElement("thead",{ref:a,className:o.cn("bg-[#fafafa] [&_tr]:border-b [&_tr]:border-[#e6e6e6]",t),...n}));f.displayName="TableHeader";const m=e.forwardRef(({className:t,...n},a)=>e.createElement("tbody",{ref:a,className:o.cn("[&_tr:last-child]:border-0",t),...n}));m.displayName="TableBody";const b=e.forwardRef(({className:t,...n},a)=>e.createElement("tfoot",{ref:a,className:o.cn("border-t border-[#e6e6e6] bg-[#fafafa] font-medium [&>tr]:last:border-b-0",t),...n}));b.displayName="TableFooter";const p=e.forwardRef(({className:t,...n},a)=>e.createElement("tr",{ref:a,className:o.cn("border-b border-[#e6e6e6]",t),...n}));p.displayName="TableRow";const g=e.forwardRef(({className:t,...n},a)=>e.createElement("th",{ref:a,className:o.cn("h-12 px-3 py-2 text-left align-middle text-[14px] font-medium leading-[20px] text-foreground",t),...n}));g.displayName="TableHead";const u=e.forwardRef(({className:t,...n},a)=>e.createElement("td",{ref:a,className:o.cn("h-12 px-3 py-2 align-middle text-[14px] font-normal leading-[20px] text-foreground",t),...n}));u.displayName="TableCell";const x=e.forwardRef(({className:t,...n},a)=>e.createElement("caption",{ref:a,className:o.cn("mt-4 text-sm text-muted-foreground",t),...n}));x.displayName="TableCaption";const T=e.forwardRef(({className:t,...n},a)=>e.createElement("div",{ref:a,className:o.cn("grid w-full grid-cols-[auto_1fr_auto] items-center border-t border-[#e6e6e6] bg-white p-4",t),...n}));T.displayName="TablePagination";const N=e.forwardRef(({className:t,label:n="Total entries:",count:a="-",...l},r)=>e.createElement("div",{ref:r,className:o.cn("col-start-1 flex items-center gap-1 justify-self-start",t),...l},e.createElement("span",{className:"text-[14px] font-normal leading-[20px] text-[#4f4d55]"},n),e.createElement("span",{className:"text-[14px] font-normal leading-[20px] text-[#1d1c20]"},a)));N.displayName="TablePaginationEntries";const w=e.forwardRef(({className:t,...n},a)=>e.createElement("div",{ref:a,className:o.cn("col-start-2 flex items-center gap-3 justify-self-center",t),...n}));w.displayName="TablePaginationContent";const y=e.forwardRef(({className:t,...n},a)=>e.createElement("div",{ref:a,className:o.cn("flex items-center gap-2",t),...n}));y.displayName="TablePaginationPages";const P=e.forwardRef(({className:t,...n},a)=>e.createElement("button",{ref:a,type:"button",className:o.cn("flex h-7 w-7 items-center justify-center rounded-[8px] text-[#7f7d83] hover:text-foreground",t),...n}));P.displayName="TablePaginationButton";const E=e.forwardRef(({className:t,isActive:n,...a},l)=>e.createElement("button",{ref:l,type:"button","aria-current":n?"page":void 0,className:o.cn("flex h-8 w-8 items-center justify-center rounded-[8px] text-[12px] leading-[16px]",n?"border border-[#e6e6e6] bg-white text-foreground":"text-[#7f7d83]",t),...a}));E.displayName="TablePaginationPage";const h=e.forwardRef(({className:t,label:n="Go to page:",pageLabel:a="-",placeholder:l="-",icon:r,...s},i)=>e.createElement("div",{ref:i,className:o.cn("col-start-3 flex items-center gap-[13px] justify-self-end",t),...s},e.createElement("span",{className:"text-[14px] font-normal leading-[20px] text-foreground"},n),e.createElement("button",{type:"button","aria-haspopup":"listbox",className:"flex h-8 min-w-[72px] items-center justify-between gap-2 rounded-[8px] border border-[#e6e6e6] bg-white px-3 text-[12px] leading-[16px] text-foreground shadow-sm"},e.createElement("span",{className:a===l?"text-[#7f7d83]":void 0},a===l?l:a),r||e.createElement(c.ChevronDown,{className:"h-4 w-4 text-[#7f7d83]"}))));h.displayName="TablePaginationGoTo";const C=({className:t,direction:n})=>n==="left"?e.createElement(c.ChevronLeft,{className:o.cn("h-4 w-4",t)}):e.createElement(c.ChevronRight,{className:o.cn("h-4 w-4",t)});exports.Table=d;exports.TableBody=m;exports.TableCaption=x;exports.TableCell=u;exports.TableFooter=b;exports.TableHead=g;exports.TableHeader=f;exports.TablePagination=T;exports.TablePaginationButton=P;exports.TablePaginationContent=w;exports.TablePaginationEntries=N;exports.TablePaginationGoTo=h;exports.TablePaginationIcon=C;exports.TablePaginationPage=E;exports.TablePaginationPages=y;exports.TableRow=p;
2
2
  //# sourceMappingURL=index.cjs53.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs53.js","sources":["../src/components/ui/table.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { ChevronDown, ChevronLeft, ChevronRight } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype TableProps = React.HTMLAttributes<HTMLTableElement> & {\n pagination?: React.ReactNode\n maxHeight?: number | string\n scrollContainerClassName?: string\n stickyHeader?: boolean\n}\n\nconst Table = React.forwardRef<HTMLTableElement, TableProps>(\n (\n { className, pagination, maxHeight, scrollContainerClassName, stickyHeader, ...props },\n ref\n ) => (\n <div className=\"relative w-full overflow-hidden rounded-[8px] border border-[#e6e6e6] bg-white\">\n <div\n className={cn(\"ml-table-scroll w-full overflow-auto\", scrollContainerClassName)}\n style={\n maxHeight\n ? { maxHeight: typeof maxHeight === \"number\" ? `${maxHeight}px` : maxHeight }\n : undefined\n }\n >\n <table\n ref={ref}\n className={cn(\n \"w-full caption-bottom text-[14px] leading-[20px]\",\n stickyHeader\n ? \"[&_thead]:sticky [&_thead]:top-0 [&_thead]:z-10 [&_thead]:bg-[#fafafa]\"\n : undefined,\n className\n )}\n {...props}\n />\n </div>\n {pagination ? <div className=\"w-full\">{pagination}</div> : null}\n </div>\n )\n)\nTable.displayName = \"Table\"\n\nconst TableHeader = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <thead\n ref={ref}\n className={cn(\"bg-[#fafafa] [&_tr]:border-b [&_tr]:border-[#e6e6e6]\", className)}\n {...props}\n />\n))\nTableHeader.displayName = \"TableHeader\"\n\nconst TableBody = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <tbody\n ref={ref}\n className={cn(\"[&_tr:last-child]:border-0\", className)}\n {...props}\n />\n))\nTableBody.displayName = \"TableBody\"\n\nconst TableFooter = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <tfoot\n ref={ref}\n className={cn(\n \"border-t border-[#e6e6e6] bg-[#fafafa] font-medium [&>tr]:last:border-b-0\",\n className\n )}\n {...props}\n />\n))\nTableFooter.displayName = \"TableFooter\"\n\nconst TableRow = React.forwardRef<\n HTMLTableRowElement,\n React.HTMLAttributes<HTMLTableRowElement>\n>(({ className, ...props }, ref) => (\n <tr\n ref={ref}\n className={cn(\n \"border-b border-[#e6e6e6]\",\n className\n )}\n {...props}\n />\n))\nTableRow.displayName = \"TableRow\"\n\nconst TableHead = React.forwardRef<\n HTMLTableCellElement,\n React.ThHTMLAttributes<HTMLTableCellElement>\n>(({ className, ...props }, ref) => (\n <th\n ref={ref}\n className={cn(\n \"h-12 px-3 py-2 text-left align-middle text-[14px] font-medium leading-[20px] text-foreground\",\n className\n )}\n {...props}\n />\n))\nTableHead.displayName = \"TableHead\"\n\nconst TableCell = React.forwardRef<\n HTMLTableCellElement,\n React.TdHTMLAttributes<HTMLTableCellElement>\n>(({ className, ...props }, ref) => (\n <td\n ref={ref}\n className={cn(\n \"h-12 px-3 py-2 align-middle text-[14px] font-normal leading-[20px] text-foreground\",\n className\n )}\n {...props}\n />\n))\nTableCell.displayName = \"TableCell\"\n\nconst TableCaption = React.forwardRef<\n HTMLTableCaptionElement,\n React.HTMLAttributes<HTMLTableCaptionElement>\n>(({ className, ...props }, ref) => (\n <caption\n ref={ref}\n className={cn(\"mt-4 text-sm text-muted-foreground\", className)}\n {...props}\n />\n))\nTableCaption.displayName = \"TableCaption\"\n\nconst TablePagination = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\n \"flex w-full items-center justify-between border-t border-[#e6e6e6] bg-white p-4\",\n className\n )}\n {...props}\n />\n))\nTablePagination.displayName = \"TablePagination\"\n\nconst TablePaginationContent = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\"flex items-center gap-3\", className)}\n {...props}\n />\n))\nTablePaginationContent.displayName = \"TablePaginationContent\"\n\nconst TablePaginationPages = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\"flex items-center gap-2\", className)}\n {...props}\n />\n))\nTablePaginationPages.displayName = \"TablePaginationPages\"\n\nconst TablePaginationButton = React.forwardRef<\n HTMLButtonElement,\n React.ButtonHTMLAttributes<HTMLButtonElement>\n>(({ className, ...props }, ref) => (\n <button\n ref={ref}\n type=\"button\"\n className={cn(\n \"flex h-7 w-7 items-center justify-center rounded-[8px] text-[#7f7d83] hover:text-foreground\",\n className\n )}\n {...props}\n />\n))\nTablePaginationButton.displayName = \"TablePaginationButton\"\n\ntype TablePaginationPageProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {\n isActive?: boolean\n}\n\nconst TablePaginationPage = React.forwardRef<\n HTMLButtonElement,\n TablePaginationPageProps\n>(({ className, isActive, ...props }, ref) => (\n <button\n ref={ref}\n type=\"button\"\n aria-current={isActive ? \"page\" : undefined}\n className={cn(\n \"flex h-8 w-8 items-center justify-center rounded-[8px] text-[12px] leading-[16px]\",\n isActive\n ? \"border border-[#e6e6e6] bg-white text-foreground\"\n : \"text-[#7f7d83]\",\n className\n )}\n {...props}\n />\n))\nTablePaginationPage.displayName = \"TablePaginationPage\"\n\ntype TablePaginationGoToProps = React.HTMLAttributes<HTMLDivElement> & {\n label?: string\n pageLabel?: string\n placeholder?: string\n icon?: React.ReactNode\n}\n\nconst TablePaginationGoTo = React.forwardRef<\n HTMLDivElement,\n TablePaginationGoToProps\n>(\n (\n {\n className,\n label = \"Go to page:\",\n pageLabel = \"-\",\n placeholder = \"-\",\n icon,\n ...props\n },\n ref\n ) => (\n <div\n ref={ref}\n className={cn(\"flex items-center gap-[13px]\", className)}\n {...props}\n >\n <span className=\"text-[14px] font-normal leading-[20px] text-foreground\">\n {label}\n </span>\n <button\n type=\"button\"\n aria-haspopup=\"listbox\"\n className=\"flex h-8 min-w-[72px] items-center justify-between gap-2 rounded-[8px] border border-[#e6e6e6] bg-white px-3 text-[12px] leading-[16px] text-foreground shadow-sm\"\n >\n <span className={pageLabel === placeholder ? \"text-[#7f7d83]\" : undefined}>\n {pageLabel === placeholder ? placeholder : pageLabel}\n </span>\n {icon || <ChevronDown className=\"h-4 w-4 text-[#7f7d83]\" />}\n </button>\n </div>\n )\n)\nTablePaginationGoTo.displayName = \"TablePaginationGoTo\"\n\nconst TablePaginationIcon = ({\n className,\n direction,\n}: {\n className?: string\n direction: \"left\" | \"right\"\n}) =>\n direction === \"left\" ? (\n <ChevronLeft className={cn(\"h-4 w-4\", className)} />\n ) : (\n <ChevronRight className={cn(\"h-4 w-4\", className)} />\n )\n\nexport {\n Table,\n TableHeader,\n TableBody,\n TableFooter,\n TableHead,\n TableRow,\n TableCell,\n TableCaption,\n TablePagination,\n TablePaginationContent,\n TablePaginationPages,\n TablePaginationButton,\n TablePaginationPage,\n TablePaginationGoTo,\n TablePaginationIcon,\n}\n"],"names":["Table","React","className","pagination","maxHeight","scrollContainerClassName","stickyHeader","props","ref","cn","TableHeader","TableBody","TableFooter","TableRow","TableHead","TableCell","TableCaption","TablePagination","TablePaginationContent","TablePaginationPages","TablePaginationButton","TablePaginationPage","isActive","TablePaginationGoTo","label","pageLabel","placeholder","icon","ChevronDown","TablePaginationIcon","direction","ChevronLeft","ChevronRight"],"mappings":"2bAYMA,EAAQC,EAAM,WAClB,CACE,CAAE,UAAAC,EAAW,WAAAC,EAAY,UAAAC,EAAW,yBAAAC,EAA0B,aAAAC,EAAc,GAAGC,CAAA,EAC/EC,IAEAP,EAAA,cAAC,MAAA,CAAI,UAAU,gFAAA,EACbA,EAAA,cAAC,MAAA,CACC,UAAWQ,EAAAA,GAAG,uCAAwCJ,CAAwB,EAC9E,MACED,EACI,CAAE,UAAW,OAAOA,GAAc,SAAW,GAAGA,CAAS,KAAOA,CAAA,EAChE,MAAA,EAGNH,EAAA,cAAC,QAAA,CACC,IAAAO,EACA,UAAWC,EAAAA,GACT,mDACAH,EACI,yEACA,OACJJ,CAAA,EAED,GAAGK,CAAA,CAAA,CACN,EAEDJ,EAAaF,EAAA,cAAC,MAAA,CAAI,UAAU,QAAA,EAAUE,CAAW,EAAS,IAC7D,CAEJ,EACAH,EAAM,YAAc,QAEpB,MAAMU,EAAcT,EAAM,WAGxB,CAAC,CAAE,UAAAC,EAAW,GAAGK,CAAA,EAASC,IAC1B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EAAsBtB,EAAM,WAIhC,CACE,CACE,UAAAC,EACA,MAAAsB,EAAQ,cACR,UAAAC,EAAY,IACZ,YAAAC,EAAc,IACd,KAAAC,EACA,GAAGpB,CAAA,EAELC,IAEFP,EAAA,cAAC,MAAA,CACC,IAAAO,EACA,UAAWC,EAAAA,GAAG,+BAAgCP,CAAS,EACtD,GAAGK,CAAA,EAEJN,EAAA,cAAC,OAAA,CAAK,UAAU,wDAAA,EACbuB,CACH,EACAvB,EAAA,cAAC,SAAA,CACC,KAAK,SACL,gBAAc,UACd,UAAU,mKAAA,EAEVA,EAAA,cAAC,OAAA,CAAK,UAAWwB,IAAcC,EAAc,iBAAmB,MAAA,EAC7DD,IAAcC,EAAcA,EAAcD,CAC7C,EACCE,GAAQ1B,EAAA,cAAC2B,EAAAA,YAAA,CAAY,UAAU,wBAAA,CAAyB,CAAA,CAC3D,CAGJ,EACAL,EAAoB,YAAc,sBAElC,MAAMM,EAAsB,CAAC,CAC3B,UAAA3B,EACA,UAAA4B,CACF,IAIEA,IAAc,OACZ7B,EAAA,cAAC8B,EAAAA,YAAA,CAAY,UAAWtB,EAAAA,GAAG,UAAWP,CAAS,CAAA,CAAG,kBAEjD8B,EAAAA,aAAA,CAAa,UAAWvB,EAAAA,GAAG,UAAWP,CAAS,CAAA,CAAG"}
1
+ {"version":3,"file":"index.cjs53.js","sources":["../src/components/ui/table.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { ChevronDown, ChevronLeft, ChevronRight } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype TableProps = React.HTMLAttributes<HTMLTableElement> & {\n pagination?: React.ReactNode\n maxHeight?: number | string\n scrollContainerClassName?: string\n stickyHeader?: boolean\n}\n\nconst Table = React.forwardRef<HTMLTableElement, TableProps>(\n (\n { className, pagination, maxHeight, scrollContainerClassName, stickyHeader, ...props },\n ref\n ) => (\n <div className=\"relative w-full overflow-hidden rounded-[8px] border border-[#e6e6e6] bg-white\">\n <div\n className={cn(\"ml-table-scroll w-full overflow-auto\", scrollContainerClassName)}\n style={\n maxHeight\n ? { maxHeight: typeof maxHeight === \"number\" ? `${maxHeight}px` : maxHeight }\n : undefined\n }\n >\n <table\n ref={ref}\n className={cn(\n \"w-full caption-bottom text-[14px] leading-[20px]\",\n stickyHeader\n ? \"[&_thead]:sticky [&_thead]:top-0 [&_thead]:z-10 [&_thead]:bg-[#fafafa]\"\n : undefined,\n className\n )}\n {...props}\n />\n </div>\n {pagination ? <div className=\"w-full\">{pagination}</div> : null}\n </div>\n )\n)\nTable.displayName = \"Table\"\n\nconst TableHeader = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <thead\n ref={ref}\n className={cn(\"bg-[#fafafa] [&_tr]:border-b [&_tr]:border-[#e6e6e6]\", className)}\n {...props}\n />\n))\nTableHeader.displayName = \"TableHeader\"\n\nconst TableBody = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <tbody\n ref={ref}\n className={cn(\"[&_tr:last-child]:border-0\", className)}\n {...props}\n />\n))\nTableBody.displayName = \"TableBody\"\n\nconst TableFooter = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <tfoot\n ref={ref}\n className={cn(\n \"border-t border-[#e6e6e6] bg-[#fafafa] font-medium [&>tr]:last:border-b-0\",\n className\n )}\n {...props}\n />\n))\nTableFooter.displayName = \"TableFooter\"\n\nconst TableRow = React.forwardRef<\n HTMLTableRowElement,\n React.HTMLAttributes<HTMLTableRowElement>\n>(({ className, ...props }, ref) => (\n <tr\n ref={ref}\n className={cn(\n \"border-b border-[#e6e6e6]\",\n className\n )}\n {...props}\n />\n))\nTableRow.displayName = \"TableRow\"\n\nconst TableHead = React.forwardRef<\n HTMLTableCellElement,\n React.ThHTMLAttributes<HTMLTableCellElement>\n>(({ className, ...props }, ref) => (\n <th\n ref={ref}\n className={cn(\n \"h-12 px-3 py-2 text-left align-middle text-[14px] font-medium leading-[20px] text-foreground\",\n className\n )}\n {...props}\n />\n))\nTableHead.displayName = \"TableHead\"\n\nconst TableCell = React.forwardRef<\n HTMLTableCellElement,\n React.TdHTMLAttributes<HTMLTableCellElement>\n>(({ className, ...props }, ref) => (\n <td\n ref={ref}\n className={cn(\n \"h-12 px-3 py-2 align-middle text-[14px] font-normal leading-[20px] text-foreground\",\n className\n )}\n {...props}\n />\n))\nTableCell.displayName = \"TableCell\"\n\nconst TableCaption = React.forwardRef<\n HTMLTableCaptionElement,\n React.HTMLAttributes<HTMLTableCaptionElement>\n>(({ className, ...props }, ref) => (\n <caption\n ref={ref}\n className={cn(\"mt-4 text-sm text-muted-foreground\", className)}\n {...props}\n />\n))\nTableCaption.displayName = \"TableCaption\"\n\nconst TablePagination = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\n \"grid w-full grid-cols-[auto_1fr_auto] items-center border-t border-[#e6e6e6] bg-white p-4\",\n className\n )}\n {...props}\n />\n))\nTablePagination.displayName = \"TablePagination\"\n\ntype TablePaginationEntriesProps = React.HTMLAttributes<HTMLDivElement> & {\n label?: string\n count?: string | number\n}\n\nconst TablePaginationEntries = React.forwardRef<\n HTMLDivElement,\n TablePaginationEntriesProps\n>(({ className, label = \"Total entries:\", count = \"-\", ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\"col-start-1 flex items-center gap-1 justify-self-start\", className)}\n {...props}\n >\n <span className=\"text-[14px] font-normal leading-[20px] text-[#4f4d55]\">\n {label}\n </span>\n <span className=\"text-[14px] font-normal leading-[20px] text-[#1d1c20]\">\n {count}\n </span>\n </div>\n))\nTablePaginationEntries.displayName = \"TablePaginationEntries\"\n\nconst TablePaginationContent = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\"col-start-2 flex items-center gap-3 justify-self-center\", className)}\n {...props}\n />\n))\nTablePaginationContent.displayName = \"TablePaginationContent\"\n\nconst TablePaginationPages = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\"flex items-center gap-2\", className)}\n {...props}\n />\n))\nTablePaginationPages.displayName = \"TablePaginationPages\"\n\nconst TablePaginationButton = React.forwardRef<\n HTMLButtonElement,\n React.ButtonHTMLAttributes<HTMLButtonElement>\n>(({ className, ...props }, ref) => (\n <button\n ref={ref}\n type=\"button\"\n className={cn(\n \"flex h-7 w-7 items-center justify-center rounded-[8px] text-[#7f7d83] hover:text-foreground\",\n className\n )}\n {...props}\n />\n))\nTablePaginationButton.displayName = \"TablePaginationButton\"\n\ntype TablePaginationPageProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {\n isActive?: boolean\n}\n\nconst TablePaginationPage = React.forwardRef<\n HTMLButtonElement,\n TablePaginationPageProps\n>(({ className, isActive, ...props }, ref) => (\n <button\n ref={ref}\n type=\"button\"\n aria-current={isActive ? \"page\" : undefined}\n className={cn(\n \"flex h-8 w-8 items-center justify-center rounded-[8px] text-[12px] leading-[16px]\",\n isActive\n ? \"border border-[#e6e6e6] bg-white text-foreground\"\n : \"text-[#7f7d83]\",\n className\n )}\n {...props}\n />\n))\nTablePaginationPage.displayName = \"TablePaginationPage\"\n\ntype TablePaginationGoToProps = React.HTMLAttributes<HTMLDivElement> & {\n label?: string\n pageLabel?: string\n placeholder?: string\n icon?: React.ReactNode\n}\n\nconst TablePaginationGoTo = React.forwardRef<\n HTMLDivElement,\n TablePaginationGoToProps\n>(\n (\n {\n className,\n label = \"Go to page:\",\n pageLabel = \"-\",\n placeholder = \"-\",\n icon,\n ...props\n },\n ref\n ) => (\n <div\n ref={ref}\n className={cn(\"col-start-3 flex items-center gap-[13px] justify-self-end\", className)}\n {...props}\n >\n <span className=\"text-[14px] font-normal leading-[20px] text-foreground\">\n {label}\n </span>\n <button\n type=\"button\"\n aria-haspopup=\"listbox\"\n className=\"flex h-8 min-w-[72px] items-center justify-between gap-2 rounded-[8px] border border-[#e6e6e6] bg-white px-3 text-[12px] leading-[16px] text-foreground shadow-sm\"\n >\n <span className={pageLabel === placeholder ? \"text-[#7f7d83]\" : undefined}>\n {pageLabel === placeholder ? placeholder : pageLabel}\n </span>\n {icon || <ChevronDown className=\"h-4 w-4 text-[#7f7d83]\" />}\n </button>\n </div>\n )\n)\nTablePaginationGoTo.displayName = \"TablePaginationGoTo\"\n\nconst TablePaginationIcon = ({\n className,\n direction,\n}: {\n className?: string\n direction: \"left\" | \"right\"\n}) =>\n direction === \"left\" ? (\n <ChevronLeft className={cn(\"h-4 w-4\", className)} />\n ) : (\n <ChevronRight className={cn(\"h-4 w-4\", className)} />\n )\n\nexport {\n Table,\n TableHeader,\n TableBody,\n TableFooter,\n TableHead,\n TableRow,\n TableCell,\n TableCaption,\n TablePagination,\n TablePaginationEntries,\n TablePaginationContent,\n TablePaginationPages,\n TablePaginationButton,\n TablePaginationPage,\n TablePaginationGoTo,\n TablePaginationIcon,\n}\n"],"names":["Table","React","className","pagination","maxHeight","scrollContainerClassName","stickyHeader","props","ref","cn","TableHeader","TableBody","TableFooter","TableRow","TableHead","TableCell","TableCaption","TablePagination","TablePaginationEntries","label","count","TablePaginationContent","TablePaginationPages","TablePaginationButton","TablePaginationPage","isActive","TablePaginationGoTo","pageLabel","placeholder","icon","ChevronDown","TablePaginationIcon","direction","ChevronLeft","ChevronRight"],"mappings":"2bAYMA,EAAQC,EAAM,WAClB,CACE,CAAE,UAAAC,EAAW,WAAAC,EAAY,UAAAC,EAAW,yBAAAC,EAA0B,aAAAC,EAAc,GAAGC,CAAA,EAC/EC,IAEAP,EAAA,cAAC,MAAA,CAAI,UAAU,gFAAA,EACbA,EAAA,cAAC,MAAA,CACC,UAAWQ,EAAAA,GAAG,uCAAwCJ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CAC7C,EACCE,GAAQ5B,EAAA,cAAC6B,EAAAA,YAAA,CAAY,UAAU,wBAAA,CAAyB,CAAA,CAC3D,CAGJ,EACAJ,EAAoB,YAAc,sBAElC,MAAMK,EAAsB,CAAC,CAC3B,UAAA7B,EACA,UAAA8B,CACF,IAIEA,IAAc,OACZ/B,EAAA,cAACgC,EAAAA,YAAA,CAAY,UAAWxB,EAAAA,GAAG,UAAWP,CAAS,CAAA,CAAG,kBAEjDgC,EAAAA,aAAA,CAAa,UAAWzB,EAAAA,GAAG,UAAWP,CAAS,CAAA,CAAG"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const M=require("./index.cjs61.js");exports.AC=M.AC;exports.AD=M.AD;exports.AE=M.AE;exports.AF=M.AF;exports.AG=M.AG;exports.AI=M.AI;exports.AL=M.AL;exports.AM=M.AM;exports.AO=M.AO;exports.AQ=M.AQ;exports.AR=M.AR;exports.AS=M.AS;exports.AT=M.AT;exports.AU=M.AU;exports.AW=M.AW;exports.AX=M.AX;exports.AZ=M.AZ;exports.BA=M.BA;exports.BB=M.BB;exports.BD=M.BD;exports.BE=M.BE;exports.BF=M.BF;exports.BG=M.BG;exports.BH=M.BH;exports.BI=M.BI;exports.BJ=M.BJ;exports.BL=M.BL;exports.BM=M.BM;exports.BN=M.BN;exports.BO=M.BO;exports.BQ=M.BQ;exports.BQ_BO=M.BQ_BO;exports.BQ_SA=M.BQ_SA;exports.BQ_SE=M.BQ_SE;exports.BR=M.BR;exports.BS=M.BS;exports.BT=M.BT;exports.BV=M.BV;exports.BW=M.BW;exports.BY=M.BY;exports.BZ=M.BZ;exports.CA=M.CA;exports.CC=M.CC;exports.CD=M.CD;exports.CF=M.CF;exports.CG=M.CG;exports.CH=M.CH;exports.CI=M.CI;exports.CK=M.CK;exports.CL=M.CL;exports.CM=M.CM;exports.CN=M.CN;exports.CO=M.CO;exports.CR=M.CR;exports.CU=M.CU;exports.CV=M.CV;exports.CW=M.CW;exports.CX=M.CX;exports.CY=M.CY;exports.CZ=M.CZ;exports.DE=M.DE;exports.DJ=M.DJ;exports.DK=M.DK;exports.DM=M.DM;exports.DO=M.DO;exports.DZ=M.DZ;exports.EC=M.EC;exports.EE=M.EE;exports.EG=M.EG;exports.EH=M.EH;exports.ER=M.ER;exports.ES=M.ES;exports.ES_CT=M.ES_CT;exports.ET=M.ET;exports.EU=M.EU;exports.FI=M.FI;exports.FJ=M.FJ;exports.FK=M.FK;exports.FM=M.FM;exports.FO=M.FO;exports.FR=M.FR;exports.GA=M.GA;exports.GB=M.GB;exports.GB_ENG=M.GB_ENG;exports.GB_NIR=M.GB_NIR;exports.GB_SCT=M.GB_SCT;exports.GB_WLS=M.GB_WLS;exports.GD=M.GD;exports.GE=M.GE;exports.GF=M.GF;exports.GG=M.GG;exports.GH=M.GH;exports.GI=M.GI;exports.GL=M.GL;exports.GM=M.GM;exports.GN=M.GN;exports.GP=M.GP;exports.GQ=M.GQ;exports.GR=M.GR;exports.GS=M.GS;exports.GT=M.GT;exports.GU=M.GU;exports.GW=M.GW;exports.GY=M.GY;exports.HK=M.HK;exports.HM=M.HM;exports.HN=M.HN;exports.HR=M.HR;exports.HT=M.HT;exports.HU=M.HU;exports.IC=M.IC;exports.ID=M.ID;exports.IE=M.IE;exports.IL=M.IL;exports.IM=M.IM;exports.IN=M.IN;exports.IO=M.IO;exports.IQ=M.IQ;exports.IR=M.IR;exports.IS=M.IS;exports.IT=M.IT;exports.JE=M.JE;exports.JM=M.JM;exports.JO=M.JO;exports.JP=M.JP;exports.KE=M.KE;exports.KG=M.KG;exports.KH=M.KH;exports.KI=M.KI;exports.KM=M.KM;exports.KN=M.KN;exports.KP=M.KP;exports.KR=M.KR;exports.KW=M.KW;exports.KY=M.KY;exports.KZ=M.KZ;exports.LA=M.LA;exports.LB=M.LB;exports.LC=M.LC;exports.LI=M.LI;exports.LK=M.LK;exports.LR=M.LR;exports.LS=M.LS;exports.LT=M.LT;exports.LU=M.LU;exports.LV=M.LV;exports.LY=M.LY;exports.MA=M.MA;exports.MC=M.MC;exports.MD=M.MD;exports.ME=M.ME;exports.MF=M.MF;exports.MG=M.MG;exports.MH=M.MH;exports.MK=M.MK;exports.ML=M.ML;exports.MM=M.MM;exports.MN=M.MN;exports.MO=M.MO;exports.MP=M.MP;exports.MQ=M.MQ;exports.MR=M.MR;exports.MS=M.MS;exports.MT=M.MT;exports.MU=M.MU;exports.MV=M.MV;exports.MW=M.MW;exports.MX=M.MX;exports.MY=M.MY;exports.MZ=M.MZ;exports.NA=M.NA;exports.NC=M.NC;exports.NE=M.NE;exports.NF=M.NF;exports.NG=M.NG;exports.NI=M.NI;exports.NL=M.NL;exports.NO=M.NO;exports.NP=M.NP;exports.NR=M.NR;exports.NU=M.NU;exports.NZ=M.NZ;exports.OM=M.OM;exports.PA=M.PA;exports.PE=M.PE;exports.PF=M.PF;exports.PG=M.PG;exports.PH=M.PH;exports.PK=M.PK;exports.PL=M.PL;exports.PM=M.PM;exports.PN=M.PN;exports.PR=M.PR;exports.PS=M.PS;exports.PT=M.PT;exports.PW=M.PW;exports.PY=M.PY;exports.QA=M.QA;exports.RE=M.RE;exports.RO=M.RO;exports.RS=M.RS;exports.RU=M.RU;exports.RW=M.RW;exports.SA=M.SA;exports.SB=M.SB;exports.SC=M.SC;exports.SD=M.SD;exports.SE=M.SE;exports.SG=M.SG;exports.SH=M.SH;exports.SI=M.SI;exports.SJ=M.SJ;exports.SK=M.SK;exports.SL=M.SL;exports.SM=M.SM;exports.SN=M.SN;exports.SO=M.SO;exports.SR=M.SR;exports.SS=M.SS;exports.ST=M.ST;exports.SV=M.SV;exports.SX=M.SX;exports.SY=M.SY;exports.SZ=M.SZ;exports.TA=M.TA;exports.TC=M.TC;exports.TD=M.TD;exports.TF=M.TF;exports.TG=M.TG;exports.TH=M.TH;exports.TJ=M.TJ;exports.TK=M.TK;exports.TL=M.TL;exports.TM=M.TM;exports.TN=M.TN;exports.TO=M.TO;exports.TR=M.TR;exports.TT=M.TT;exports.TV=M.TV;exports.TW=M.TW;exports.TZ=M.TZ;exports.UA=M.UA;exports.UG=M.UG;exports.UM=M.UM;exports.US=M.US;exports.UY=M.UY;exports.UZ=M.UZ;exports.VA=M.VA;exports.VC=M.VC;exports.VE=M.VE;exports.VG=M.VG;exports.VI=M.VI;exports.VN=M.VN;exports.VU=M.VU;exports.WF=M.WF;exports.WS=M.WS;exports.XA=M.XA;exports.XC=M.XC;exports.XK=M.XK;exports.XO=M.XO;exports.YE=M.YE;exports.YT=M.YT;exports.ZA=M.ZA;exports.ZM=M.ZM;exports.ZW=M.ZW;exports.default=M.default;
2
+ //# sourceMappingURL=index.cjs60.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs60.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}