@clasing/ui 0.1.129 → 0.1.131

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,11 +1,11 @@
1
1
  import { j as t } from "./jsx-runtime-DywqP_6a.js";
2
- import { c as u } from "./index-CRiPKpXj.js";
2
+ import { c as g } from "./index-CRiPKpXj.js";
3
3
  import { Slot as q } from "@radix-ui/react-slot";
4
4
  import { c as v } from "./index-BqtVL8d-.js";
5
- import y from "react";
6
- import { I as s } from "./icon-component-CxQsODCa.js";
7
- import { b as P, T as j, c as N, a as I } from "./tooltip-BnIdKYZi.js";
8
- const f = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] relative flex items-center justify-center outline-1 transition-[color,box-shadow]", F = v(f, {
5
+ import l from "react";
6
+ import { I as o } from "./icon-component-CxQsODCa.js";
7
+ import { b as j, T as N, c as I, a as V } from "./tooltip-BnIdKYZi.js";
8
+ const f = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] relative flex items-center justify-center outline-1 transition-[color,box-shadow]", E = v(f, {
9
9
  variants: {
10
10
  variant: {
11
11
  // Variantes de botón sólido
@@ -128,7 +128,7 @@ const f = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
128
128
  rounded: "full",
129
129
  iconPosition: "left"
130
130
  }
131
- }), M = v(`${f} cursor-default`, {
131
+ }), F = v(`${f} cursor-default`, {
132
132
  variants: {
133
133
  variant: {
134
134
  primary: ["bg-primary-800 text-white outline-transparent"],
@@ -239,7 +239,7 @@ const f = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
239
239
  rounded: "full",
240
240
  iconPosition: "left"
241
241
  }
242
- }), R = v(f, {
242
+ }), M = v(f, {
243
243
  variants: {
244
244
  variant: {
245
245
  primary: ["bg-primary-800 text-white outline-transparent"],
@@ -350,26 +350,26 @@ const f = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
350
350
  rounded: "full",
351
351
  iconPosition: "left"
352
352
  }
353
- }), _ = y.forwardRef(
353
+ }), R = l.forwardRef(
354
354
  ({
355
- className: g,
356
- variant: d,
355
+ className: d,
356
+ variant: c,
357
357
  size: i,
358
- weight: c,
359
- rounded: m,
360
- children: l,
358
+ weight: m,
359
+ rounded: b,
360
+ children: r,
361
361
  iconName: n,
362
- iconText: b,
363
- iconPosition: h = "left",
364
- isLoading: r,
362
+ iconText: h,
363
+ iconPosition: y = "left",
364
+ isLoading: s,
365
365
  isActive: S,
366
366
  disabled: w,
367
- tooltip: o,
367
+ tooltip: p,
368
368
  tooltipPlacement: z = "top",
369
369
  asChild: k,
370
- ...V
371
- }, B) => {
372
- const C = k ? q : "button", e = y.useMemo(() => !l && n || h === "only" ? "only" : h, [l, n, h]), a = y.useMemo(() => n ? typeof n == "string" ? { name: n } : n : null, [n]), p = e === "only" ? {
370
+ ...B
371
+ }, C) => {
372
+ const T = k ? q : "button", e = l.useMemo(() => !r && n || y === "only" ? "only" : y, [r, n, y]), a = l.useMemo(() => n ? typeof n == "string" ? { name: n } : n : null, [n]), x = e === "only" ? {
373
373
  xl: "min-w-6 h-6",
374
374
  lg: "min-w-6 h-6",
375
375
  md: "min-w-5 h-5",
@@ -381,20 +381,20 @@ const f = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
381
381
  md: "min-w-4 h-4",
382
382
  sm: "min-w-4 h-4",
383
383
  xs: "min-w-3.5 h-3.5"
384
- }, T = /* @__PURE__ */ t.jsx(t.Fragment, { children: e === "only" ? (
384
+ }, P = /* @__PURE__ */ t.jsx(t.Fragment, { children: e === "only" ? (
385
385
  // Renderizado para modo icon-only
386
- /* @__PURE__ */ t.jsx(t.Fragment, { children: r ? /* @__PURE__ */ t.jsx(
387
- s,
386
+ /* @__PURE__ */ t.jsx(t.Fragment, { children: s ? /* @__PURE__ */ t.jsx(
387
+ o,
388
388
  {
389
389
  iconName: "IconLoader2",
390
- className: u("animate-spin", p[i || "xl"])
390
+ className: g("animate-spin", x[i || "xl"])
391
391
  }
392
392
  ) : a && /* @__PURE__ */ t.jsx(
393
- s,
393
+ o,
394
394
  {
395
395
  iconName: a.name,
396
396
  stroke: a.stroke,
397
- iconText: b,
397
+ iconText: h,
398
398
  size: 24
399
399
  }
400
400
  ) })
@@ -404,12 +404,12 @@ const f = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
404
404
  /* @__PURE__ */ t.jsx(
405
405
  "span",
406
406
  {
407
- className: `absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 ${r ? "visible opacity-100" : "invisible opacity-0"}`,
407
+ className: `absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 ${s ? "visible opacity-100" : "invisible opacity-0"}`,
408
408
  children: /* @__PURE__ */ t.jsx(
409
- s,
409
+ o,
410
410
  {
411
411
  iconName: "IconLoader2",
412
- className: u("animate-spin", p[i || "xl"])
412
+ className: g("animate-spin", x[i || "xl"])
413
413
  }
414
414
  )
415
415
  }
@@ -417,94 +417,94 @@ const f = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
417
417
  /* @__PURE__ */ t.jsxs(
418
418
  "span",
419
419
  {
420
- className: u(
420
+ className: g(
421
421
  "flex items-center justify-center gap-2",
422
- r ? "invisible opacity-0" : "visible opacity-100"
422
+ s ? "invisible opacity-0" : "visible opacity-100"
423
423
  ),
424
424
  children: [
425
425
  a && e === "left" && /* @__PURE__ */ t.jsx(
426
- s,
426
+ o,
427
427
  {
428
428
  iconName: a.name,
429
- iconText: b,
429
+ iconText: h,
430
430
  stroke: a.stroke,
431
- className: p[i || "xl"]
431
+ className: x[i || "xl"]
432
432
  }
433
433
  ),
434
- l,
434
+ r,
435
435
  a && e === "right" && /* @__PURE__ */ t.jsx(
436
- s,
436
+ o,
437
437
  {
438
438
  iconName: a.name,
439
- iconText: b,
439
+ iconText: h,
440
440
  stroke: a.stroke,
441
- className: p[i || "xl"]
441
+ className: x[i || "xl"]
442
442
  }
443
443
  )
444
444
  ]
445
445
  }
446
446
  )
447
447
  ] })
448
- ) }), x = /* @__PURE__ */ t.jsx(
449
- C,
448
+ ) }), u = /* @__PURE__ */ t.jsx(
449
+ T,
450
450
  {
451
- ref: B,
452
- className: u(
453
- r ? M({
454
- variant: d,
455
- weight: c,
451
+ ref: C,
452
+ className: g(
453
+ s ? F({
454
+ variant: c,
455
+ weight: m,
456
456
  size: i,
457
- rounded: m,
457
+ rounded: b,
458
458
  iconPosition: e,
459
- className: g
460
- }) : S ? R({
461
- variant: d,
462
- weight: c,
459
+ className: d
460
+ }) : S ? M({
461
+ variant: c,
462
+ weight: m,
463
463
  size: i,
464
- rounded: m,
464
+ rounded: b,
465
465
  iconPosition: e,
466
- className: g
467
- }) : F({
468
- variant: d,
469
- weight: c,
466
+ className: d
467
+ }) : E({
468
+ variant: c,
469
+ weight: m,
470
470
  size: i,
471
- rounded: m,
471
+ rounded: b,
472
472
  iconPosition: e,
473
- className: g
473
+ className: d
474
474
  })
475
475
  ),
476
- disabled: w || r,
477
- ...V,
478
- children: k ? l : T
476
+ disabled: w || s,
477
+ ...B,
478
+ children: k ? l.isValidElement(r) ? l.cloneElement(r, {}, P) : r : P
479
479
  }
480
480
  );
481
- return o && (w || r) ? /* @__PURE__ */ t.jsx(P, { children: /* @__PURE__ */ t.jsxs(j, { children: [
482
- /* @__PURE__ */ t.jsx(N, { asChild: e === "only", children: e === "only" ? /* @__PURE__ */ t.jsx("div", { className: "inline-block", "aria-disabled": "true", children: x }) : x }),
481
+ return p && (w || s) ? /* @__PURE__ */ t.jsx(j, { children: /* @__PURE__ */ t.jsxs(N, { children: [
482
+ /* @__PURE__ */ t.jsx(I, { asChild: e === "only", children: e === "only" ? /* @__PURE__ */ t.jsx("div", { className: "inline-block", "aria-disabled": "true", children: u }) : u }),
483
483
  /* @__PURE__ */ t.jsx(
484
- I,
484
+ V,
485
485
  {
486
486
  side: z,
487
487
  className: "text-muted-foreground",
488
- children: o
488
+ children: p
489
489
  }
490
490
  )
491
- ] }) }) : o ? /* @__PURE__ */ t.jsx(P, { children: /* @__PURE__ */ t.jsxs(j, { children: [
492
- /* @__PURE__ */ t.jsx(N, { asChild: e === "only", children: x }),
491
+ ] }) }) : p ? /* @__PURE__ */ t.jsx(j, { children: /* @__PURE__ */ t.jsxs(N, { children: [
492
+ /* @__PURE__ */ t.jsx(I, { asChild: e === "only", children: u }),
493
493
  /* @__PURE__ */ t.jsx(
494
- I,
494
+ V,
495
495
  {
496
496
  side: z,
497
497
  className: "text-muted-foreground",
498
- children: o
498
+ children: p
499
499
  }
500
500
  )
501
- ] }) }) : x;
501
+ ] }) }) : u;
502
502
  }
503
503
  );
504
- _.displayName = "Button";
504
+ R.displayName = "Button";
505
505
  export {
506
- _ as B,
507
- M as a,
508
- R as b,
509
- F as c
506
+ R as B,
507
+ F as a,
508
+ M as b,
509
+ E as c
510
510
  };
@@ -1 +1 @@
1
- "use strict";const t=require("./jsx-runtime-CEDi24JD.cjs"),c=require("./index-DoxiiusW.cjs"),V=require("@radix-ui/react-slot"),f=require("./index-C8P6Mn4U.cjs"),v=require("react"),o=require("./icon-component-DuSAouum.cjs"),i=require("./tooltip-CqOXzvfb.cjs"),j="focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] relative flex items-center justify-center outline-1 transition-[color,box-shadow]",k=f.cva(j,{variants:{variant:{primary:["bg-primary-600 lg:hover:bg-primary-800 text-white outline-transparent disabled:bg-neutral-100 disabled:text-neutral-700 disabled:lg:hover:bg-neutral-100 disabled:lg:hover:text-neutral-700"],secondary:["bg-black text-white outline-transparent disabled:bg-neutral-100 disabled:text-neutral-700 lg:hover:bg-neutral-900 disabled:lg:hover:bg-neutral-100 disabled:lg:hover:text-neutral-700"],inverse:["lg:hover:bg-neutral-000 bg-white text-black outline-transparent disabled:bg-neutral-100 disabled:text-neutral-700 disabled:lg:hover:bg-neutral-100 disabled:lg:hover:text-neutral-700"],outline:["text-primary-600 outline-primary-600 lg:hover:bg-primary-050 bg-white disabled:bg-neutral-100 disabled:text-neutral-700 disabled:outline-transparent disabled:lg:hover:bg-neutral-100 disabled:lg:hover:text-neutral-700"],ghost:["bg-primary-050 text-primary-600 lg:hover:bg-primary-100 outline-transparent disabled:bg-neutral-100 disabled:text-neutral-700 disabled:lg:hover:bg-neutral-100 disabled:lg:hover:text-neutral-700"],destructive:["bg-error-light text-error-main outline-transparent disabled:bg-neutral-100 disabled:text-neutral-700 disabled:lg:hover:bg-neutral-100 disabled:lg:hover:text-neutral-700"],link:["text-primary-600 lg:hover:bg-primary-050 bg-transparent outline-transparent disabled:bg-neutral-100 disabled:text-neutral-700 disabled:lg:hover:bg-neutral-100 disabled:lg:hover:text-neutral-700"]},size:{xl:"h-12 gap-2 px-6 py-1 text-base",lg:"h-10 gap-2 px-5 py-1 text-sm",md:"h-8 gap-1.5 px-4 py-1 text-xs",sm:"h-7 gap-1 px-3 py-1 text-xs",xs:"h-6 gap-1 px-3 py-1 text-xs"},rounded:{default:"rounded-2xl",full:"rounded-full"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"},iconPosition:{left:"",right:"",only:"aspect-square"}},compoundVariants:[{iconPosition:"only",variant:"primary",class:"outline-neutral-050 text-primary-600 lg:hover:bg-neutral-000 bg-white"},{iconPosition:"only",variant:"destructive",class:"bg-error-light text-error-main outline-transparent"},{iconPosition:"only",variant:"link",class:"text-primary-600 lg:hover:bg-primary-050 bg-transparent"},{iconPosition:"only",size:"xl",class:"h-12 w-12 p-1.5"},{iconPosition:"only",size:"lg",class:"h-10 w-10 p-1.5"},{iconPosition:"only",size:"md",class:"h-8 w-8 p-1.5"},{iconPosition:"only",size:"sm",class:"h-7 w-7 p-1.5"},{iconPosition:"only",size:"xs",class:"h-6 w-6 p-1.5"},{variant:"link",size:"xl",class:"h-auto gap-2 px-3 py-1 text-base"},{variant:"link",size:"lg",class:"h-auto gap-2 px-3 py-1 text-base"},{variant:"link",size:"md",class:"h-auto gap-1.5 px-3 py-1 text-sm"},{variant:"link",size:"sm",class:"h-auto gap-1 px-3 py-1 text-xs"},{variant:"link",size:"xs",class:"h-auto gap-1 px-3 py-1 text-xs"}],defaultVariants:{variant:"primary",size:"xl",weight:"semibold",rounded:"full",iconPosition:"left"}}),R=f.cva(`${j} cursor-default`,{variants:{variant:{primary:["bg-primary-800 text-white outline-transparent"],secondary:["bg-neutral-900 text-white outline-transparent"],inverse:["bg-neutral-000 text-black outline-transparent"],ghost:["bg-primary-100 text-primary-600 outline-transparent"],outline:["bg-primary-100 text-primary-600 outline-primary-600"],destructive:["bg-error-light text-error-main outline-transparent"],link:["bg-primary-050 text-primary-600"]},size:{xl:"h-12 gap-2 px-6 text-base",lg:"h-10 gap-2 px-5 text-sm",md:"h-8 gap-1.5 px-4 text-xs",sm:"h-7 gap-1 px-3 text-xs",xs:"h-6 gap-1 px-3 text-xs"},rounded:{default:"rounded-2xl",full:"rounded-full"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"},iconPosition:{left:"",right:"",only:"aspect-square"}},compoundVariants:[{iconPosition:"only",variant:"primary",class:"bg-neutral-000 text-primary-600 outline-neutral-050"},{iconPosition:"only",variant:"destructive",class:"bg-error-light text-error-main outline-transparent"},{iconPosition:"only",variant:"link",class:"bg-primary-050 text-primary-600"},{iconPosition:"only",size:"xl",class:"h-12 w-12 p-3"},{iconPosition:"only",size:"lg",class:"h-10 w-10 p-2"},{iconPosition:"only",size:"md",class:"h-8 w-8 p-1"},{iconPosition:"only",size:"sm",class:"h-7 w-7 p-0.5"},{iconPosition:"only",size:"xs",class:"h-6 w-6 p-0.5"},{variant:"link",size:"xl",class:"h-auto gap-2 px-3 py-1 text-base"},{variant:"link",size:"lg",class:"h-auto gap-2 px-3 py-1 text-base"},{variant:"link",size:"md",class:"h-auto gap-1.5 px-3 py-1 text-sm"},{variant:"link",size:"sm",class:"h-auto gap-1 px-3 py-1 text-xs"},{variant:"link",size:"xs",class:"h-auto gap-1 px-3 py-1 text-xs"}],defaultVariants:{variant:"primary",size:"xl",weight:"semibold",rounded:"full",iconPosition:"left"}}),E=f.cva(j,{variants:{variant:{primary:["bg-primary-800 text-white outline-transparent"],secondary:["bg-neutral-900 text-white outline-transparent"],inverse:["bg-neutral-000 text-black outline-transparent"],ghost:["bg-primary-100 text-primary-600 outline-transparent"],outline:["bg-primary-100 text-primary-600 outline-primary-600"],destructive:["bg-error-light text-error-main outline-transparent"],link:["bg-primary-050 text-primary-600"]},size:{xl:"h-12 gap-2 px-6 text-base",lg:"h-10 gap-2 px-5 text-sm",md:"h-8 gap-1.5 px-4 text-xs",sm:"h-7 gap-1 px-3 text-xs",xs:"h-6 gap-1 px-3 text-xs"},rounded:{default:"rounded-2xl",full:"rounded-full"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"},iconPosition:{left:"",right:"",only:"aspect-square"}},compoundVariants:[{iconPosition:"only",variant:"primary",class:"bg-neutral-000 text-primary-600 outline-neutral-050"},{iconPosition:"only",variant:"destructive",class:"bg-error-light text-error-main outline-transparent"},{iconPosition:"only",variant:"link",class:"bg-primary-050 text-primary-600"},{iconPosition:"only",size:"xl",class:"h-12 w-12 p-3"},{iconPosition:"only",size:"lg",class:"h-10 w-10 p-2"},{iconPosition:"only",size:"md",class:"h-8 w-8 p-1"},{iconPosition:"only",size:"sm",class:"h-7 w-7 p-0.5"},{iconPosition:"only",size:"xs",class:"h-6 w-6 p-0.5"},{variant:"link",size:"xl",class:"h-auto gap-2 px-3 py-1 text-base"},{variant:"link",size:"lg",class:"h-auto gap-2 px-3 py-1 text-base"},{variant:"link",size:"md",class:"h-auto gap-1.5 px-3 py-1 text-sm"},{variant:"link",size:"sm",class:"h-auto gap-1 px-3 py-1 text-xs"},{variant:"link",size:"xs",class:"h-auto gap-1 px-3 py-1 text-xs"}],defaultVariants:{variant:"primary",size:"xl",weight:"semibold",rounded:"full",iconPosition:"left"}}),C=v.forwardRef(({className:g,variant:d,size:s,weight:m,rounded:b,children:l,iconName:r,iconText:h,iconPosition:y="left",isLoading:a,isActive:q,disabled:w,tooltip:x,tooltipPlacement:z="top",asChild:P,...I},S)=>{const N=P?V.Slot:"button",e=v.useMemo(()=>!l&&r||y==="only"?"only":y,[l,r,y]),n=v.useMemo(()=>r?typeof r=="string"?{name:r}:r:null,[r]),p=e==="only"?{xl:"min-w-6 h-6",lg:"min-w-6 h-6",md:"min-w-5 h-5",sm:"min-w-4 h-4",xs:"min-w-3.5 h-3.5"}:{xl:"min-w-5 h-5",lg:"min-w-5 h-5",md:"min-w-4 h-4",sm:"min-w-4 h-4",xs:"min-w-3.5 h-3.5"},T=t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{children:e==="only"?t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{children:a?t.jsxRuntimeExports.jsx(o.IconComponent,{iconName:"IconLoader2",className:c.cn("animate-spin",p[s||"xl"])}):n&&t.jsxRuntimeExports.jsx(o.IconComponent,{iconName:n.name,stroke:n.stroke,iconText:h,size:24})}):t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsx("span",{className:`absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 ${a?"visible opacity-100":"invisible opacity-0"}`,children:t.jsxRuntimeExports.jsx(o.IconComponent,{iconName:"IconLoader2",className:c.cn("animate-spin",p[s||"xl"])})}),t.jsxRuntimeExports.jsxs("span",{className:c.cn("flex items-center justify-center gap-2",a?"invisible opacity-0":"visible opacity-100"),children:[n&&e==="left"&&t.jsxRuntimeExports.jsx(o.IconComponent,{iconName:n.name,iconText:h,stroke:n.stroke,className:p[s||"xl"]}),l,n&&e==="right"&&t.jsxRuntimeExports.jsx(o.IconComponent,{iconName:n.name,iconText:h,stroke:n.stroke,className:p[s||"xl"]})]})]})}),u=t.jsxRuntimeExports.jsx(N,{ref:S,className:c.cn(a?R({variant:d,weight:m,size:s,rounded:b,iconPosition:e,className:g}):q?E({variant:d,weight:m,size:s,rounded:b,iconPosition:e,className:g}):k({variant:d,weight:m,size:s,rounded:b,iconPosition:e,className:g})),disabled:w||a,...I,children:P?l:T});return x&&(w||a)?t.jsxRuntimeExports.jsx(i.TooltipProvider,{children:t.jsxRuntimeExports.jsxs(i.Tooltip,{children:[t.jsxRuntimeExports.jsx(i.TooltipTrigger,{asChild:e==="only",children:e==="only"?t.jsxRuntimeExports.jsx("div",{className:"inline-block","aria-disabled":"true",children:u}):u}),t.jsxRuntimeExports.jsx(i.TooltipContent,{side:z,className:"text-muted-foreground",children:x})]})}):x?t.jsxRuntimeExports.jsx(i.TooltipProvider,{children:t.jsxRuntimeExports.jsxs(i.Tooltip,{children:[t.jsxRuntimeExports.jsx(i.TooltipTrigger,{asChild:e==="only",children:u}),t.jsxRuntimeExports.jsx(i.TooltipContent,{side:z,className:"text-muted-foreground",children:x})]})}):u});C.displayName="Button";exports.Button=C;exports.buttonActiveStyles=E;exports.buttonLoadingStyles=R;exports.buttonStyles=k;
1
+ "use strict";const t=require("./jsx-runtime-CEDi24JD.cjs"),g=require("./index-DoxiiusW.cjs"),V=require("@radix-ui/react-slot"),f=require("./index-C8P6Mn4U.cjs"),l=require("react"),x=require("./icon-component-DuSAouum.cjs"),i=require("./tooltip-CqOXzvfb.cjs"),j="focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] relative flex items-center justify-center outline-1 transition-[color,box-shadow]",E=f.cva(j,{variants:{variant:{primary:["bg-primary-600 lg:hover:bg-primary-800 text-white outline-transparent disabled:bg-neutral-100 disabled:text-neutral-700 disabled:lg:hover:bg-neutral-100 disabled:lg:hover:text-neutral-700"],secondary:["bg-black text-white outline-transparent disabled:bg-neutral-100 disabled:text-neutral-700 lg:hover:bg-neutral-900 disabled:lg:hover:bg-neutral-100 disabled:lg:hover:text-neutral-700"],inverse:["lg:hover:bg-neutral-000 bg-white text-black outline-transparent disabled:bg-neutral-100 disabled:text-neutral-700 disabled:lg:hover:bg-neutral-100 disabled:lg:hover:text-neutral-700"],outline:["text-primary-600 outline-primary-600 lg:hover:bg-primary-050 bg-white disabled:bg-neutral-100 disabled:text-neutral-700 disabled:outline-transparent disabled:lg:hover:bg-neutral-100 disabled:lg:hover:text-neutral-700"],ghost:["bg-primary-050 text-primary-600 lg:hover:bg-primary-100 outline-transparent disabled:bg-neutral-100 disabled:text-neutral-700 disabled:lg:hover:bg-neutral-100 disabled:lg:hover:text-neutral-700"],destructive:["bg-error-light text-error-main outline-transparent disabled:bg-neutral-100 disabled:text-neutral-700 disabled:lg:hover:bg-neutral-100 disabled:lg:hover:text-neutral-700"],link:["text-primary-600 lg:hover:bg-primary-050 bg-transparent outline-transparent disabled:bg-neutral-100 disabled:text-neutral-700 disabled:lg:hover:bg-neutral-100 disabled:lg:hover:text-neutral-700"]},size:{xl:"h-12 gap-2 px-6 py-1 text-base",lg:"h-10 gap-2 px-5 py-1 text-sm",md:"h-8 gap-1.5 px-4 py-1 text-xs",sm:"h-7 gap-1 px-3 py-1 text-xs",xs:"h-6 gap-1 px-3 py-1 text-xs"},rounded:{default:"rounded-2xl",full:"rounded-full"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"},iconPosition:{left:"",right:"",only:"aspect-square"}},compoundVariants:[{iconPosition:"only",variant:"primary",class:"outline-neutral-050 text-primary-600 lg:hover:bg-neutral-000 bg-white"},{iconPosition:"only",variant:"destructive",class:"bg-error-light text-error-main outline-transparent"},{iconPosition:"only",variant:"link",class:"text-primary-600 lg:hover:bg-primary-050 bg-transparent"},{iconPosition:"only",size:"xl",class:"h-12 w-12 p-1.5"},{iconPosition:"only",size:"lg",class:"h-10 w-10 p-1.5"},{iconPosition:"only",size:"md",class:"h-8 w-8 p-1.5"},{iconPosition:"only",size:"sm",class:"h-7 w-7 p-1.5"},{iconPosition:"only",size:"xs",class:"h-6 w-6 p-1.5"},{variant:"link",size:"xl",class:"h-auto gap-2 px-3 py-1 text-base"},{variant:"link",size:"lg",class:"h-auto gap-2 px-3 py-1 text-base"},{variant:"link",size:"md",class:"h-auto gap-1.5 px-3 py-1 text-sm"},{variant:"link",size:"sm",class:"h-auto gap-1 px-3 py-1 text-xs"},{variant:"link",size:"xs",class:"h-auto gap-1 px-3 py-1 text-xs"}],defaultVariants:{variant:"primary",size:"xl",weight:"semibold",rounded:"full",iconPosition:"left"}}),R=f.cva(`${j} cursor-default`,{variants:{variant:{primary:["bg-primary-800 text-white outline-transparent"],secondary:["bg-neutral-900 text-white outline-transparent"],inverse:["bg-neutral-000 text-black outline-transparent"],ghost:["bg-primary-100 text-primary-600 outline-transparent"],outline:["bg-primary-100 text-primary-600 outline-primary-600"],destructive:["bg-error-light text-error-main outline-transparent"],link:["bg-primary-050 text-primary-600"]},size:{xl:"h-12 gap-2 px-6 text-base",lg:"h-10 gap-2 px-5 text-sm",md:"h-8 gap-1.5 px-4 text-xs",sm:"h-7 gap-1 px-3 text-xs",xs:"h-6 gap-1 px-3 text-xs"},rounded:{default:"rounded-2xl",full:"rounded-full"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"},iconPosition:{left:"",right:"",only:"aspect-square"}},compoundVariants:[{iconPosition:"only",variant:"primary",class:"bg-neutral-000 text-primary-600 outline-neutral-050"},{iconPosition:"only",variant:"destructive",class:"bg-error-light text-error-main outline-transparent"},{iconPosition:"only",variant:"link",class:"bg-primary-050 text-primary-600"},{iconPosition:"only",size:"xl",class:"h-12 w-12 p-3"},{iconPosition:"only",size:"lg",class:"h-10 w-10 p-2"},{iconPosition:"only",size:"md",class:"h-8 w-8 p-1"},{iconPosition:"only",size:"sm",class:"h-7 w-7 p-0.5"},{iconPosition:"only",size:"xs",class:"h-6 w-6 p-0.5"},{variant:"link",size:"xl",class:"h-auto gap-2 px-3 py-1 text-base"},{variant:"link",size:"lg",class:"h-auto gap-2 px-3 py-1 text-base"},{variant:"link",size:"md",class:"h-auto gap-1.5 px-3 py-1 text-sm"},{variant:"link",size:"sm",class:"h-auto gap-1 px-3 py-1 text-xs"},{variant:"link",size:"xs",class:"h-auto gap-1 px-3 py-1 text-xs"}],defaultVariants:{variant:"primary",size:"xl",weight:"semibold",rounded:"full",iconPosition:"left"}}),C=f.cva(j,{variants:{variant:{primary:["bg-primary-800 text-white outline-transparent"],secondary:["bg-neutral-900 text-white outline-transparent"],inverse:["bg-neutral-000 text-black outline-transparent"],ghost:["bg-primary-100 text-primary-600 outline-transparent"],outline:["bg-primary-100 text-primary-600 outline-primary-600"],destructive:["bg-error-light text-error-main outline-transparent"],link:["bg-primary-050 text-primary-600"]},size:{xl:"h-12 gap-2 px-6 text-base",lg:"h-10 gap-2 px-5 text-sm",md:"h-8 gap-1.5 px-4 text-xs",sm:"h-7 gap-1 px-3 text-xs",xs:"h-6 gap-1 px-3 text-xs"},rounded:{default:"rounded-2xl",full:"rounded-full"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"},iconPosition:{left:"",right:"",only:"aspect-square"}},compoundVariants:[{iconPosition:"only",variant:"primary",class:"bg-neutral-000 text-primary-600 outline-neutral-050"},{iconPosition:"only",variant:"destructive",class:"bg-error-light text-error-main outline-transparent"},{iconPosition:"only",variant:"link",class:"bg-primary-050 text-primary-600"},{iconPosition:"only",size:"xl",class:"h-12 w-12 p-3"},{iconPosition:"only",size:"lg",class:"h-10 w-10 p-2"},{iconPosition:"only",size:"md",class:"h-8 w-8 p-1"},{iconPosition:"only",size:"sm",class:"h-7 w-7 p-0.5"},{iconPosition:"only",size:"xs",class:"h-6 w-6 p-0.5"},{variant:"link",size:"xl",class:"h-auto gap-2 px-3 py-1 text-base"},{variant:"link",size:"lg",class:"h-auto gap-2 px-3 py-1 text-base"},{variant:"link",size:"md",class:"h-auto gap-1.5 px-3 py-1 text-sm"},{variant:"link",size:"sm",class:"h-auto gap-1 px-3 py-1 text-xs"},{variant:"link",size:"xs",class:"h-auto gap-1 px-3 py-1 text-xs"}],defaultVariants:{variant:"primary",size:"xl",weight:"semibold",rounded:"full",iconPosition:"left"}}),q=l.forwardRef(({className:m,variant:d,size:s,weight:b,rounded:h,children:a,iconName:r,iconText:y,iconPosition:v="left",isLoading:o,isActive:I,disabled:w,tooltip:p,tooltipPlacement:z="top",asChild:P,...S},N)=>{const T=P?V.Slot:"button",e=l.useMemo(()=>!a&&r||v==="only"?"only":v,[a,r,v]),n=l.useMemo(()=>r?typeof r=="string"?{name:r}:r:null,[r]),u=e==="only"?{xl:"min-w-6 h-6",lg:"min-w-6 h-6",md:"min-w-5 h-5",sm:"min-w-4 h-4",xs:"min-w-3.5 h-3.5"}:{xl:"min-w-5 h-5",lg:"min-w-5 h-5",md:"min-w-4 h-4",sm:"min-w-4 h-4",xs:"min-w-3.5 h-3.5"},k=t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{children:e==="only"?t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{children:o?t.jsxRuntimeExports.jsx(x.IconComponent,{iconName:"IconLoader2",className:g.cn("animate-spin",u[s||"xl"])}):n&&t.jsxRuntimeExports.jsx(x.IconComponent,{iconName:n.name,stroke:n.stroke,iconText:y,size:24})}):t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsx("span",{className:`absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 ${o?"visible opacity-100":"invisible opacity-0"}`,children:t.jsxRuntimeExports.jsx(x.IconComponent,{iconName:"IconLoader2",className:g.cn("animate-spin",u[s||"xl"])})}),t.jsxRuntimeExports.jsxs("span",{className:g.cn("flex items-center justify-center gap-2",o?"invisible opacity-0":"visible opacity-100"),children:[n&&e==="left"&&t.jsxRuntimeExports.jsx(x.IconComponent,{iconName:n.name,iconText:y,stroke:n.stroke,className:u[s||"xl"]}),a,n&&e==="right"&&t.jsxRuntimeExports.jsx(x.IconComponent,{iconName:n.name,iconText:y,stroke:n.stroke,className:u[s||"xl"]})]})]})}),c=t.jsxRuntimeExports.jsx(T,{ref:N,className:g.cn(o?R({variant:d,weight:b,size:s,rounded:h,iconPosition:e,className:m}):I?C({variant:d,weight:b,size:s,rounded:h,iconPosition:e,className:m}):E({variant:d,weight:b,size:s,rounded:h,iconPosition:e,className:m})),disabled:w||o,...S,children:P?l.isValidElement(a)?l.cloneElement(a,{},k):a:k});return p&&(w||o)?t.jsxRuntimeExports.jsx(i.TooltipProvider,{children:t.jsxRuntimeExports.jsxs(i.Tooltip,{children:[t.jsxRuntimeExports.jsx(i.TooltipTrigger,{asChild:e==="only",children:e==="only"?t.jsxRuntimeExports.jsx("div",{className:"inline-block","aria-disabled":"true",children:c}):c}),t.jsxRuntimeExports.jsx(i.TooltipContent,{side:z,className:"text-muted-foreground",children:p})]})}):p?t.jsxRuntimeExports.jsx(i.TooltipProvider,{children:t.jsxRuntimeExports.jsxs(i.Tooltip,{children:[t.jsxRuntimeExports.jsx(i.TooltipTrigger,{asChild:e==="only",children:c}),t.jsxRuntimeExports.jsx(i.TooltipContent,{side:z,className:"text-muted-foreground",children:p})]})}):c});q.displayName="Button";exports.Button=q;exports.buttonActiveStyles=C;exports.buttonLoadingStyles=R;exports.buttonStyles=E;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../jsx-runtime-CEDi24JD.cjs"),u=require("@radix-ui/react-alert-dialog"),i=require("../button-Ha5yZjbm.cjs"),r=require("../index-DoxiiusW.cjs");function d(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const l in t)if(l!=="default"){const n=Object.getOwnPropertyDescriptor(t,l);Object.defineProperty(e,l,n.get?n:{enumerable:!0,get:()=>t[l]})}}return e.default=t,Object.freeze(e)}const o=d(u);function g({...t}){return a.jsxRuntimeExports.jsx(o.Root,{"data-slot":"alert-dialog",...t})}function x({...t}){return a.jsxRuntimeExports.jsx(o.Trigger,{"data-slot":"alert-dialog-trigger",...t})}function s({...t}){return a.jsxRuntimeExports.jsx(o.Portal,{"data-slot":"alert-dialog-portal",...t})}function c({className:t,...e}){return a.jsxRuntimeExports.jsx(o.Overlay,{"data-slot":"alert-dialog-overlay",className:r.cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...e})}function m({className:t,...e}){return a.jsxRuntimeExports.jsxs(s,{children:[a.jsxRuntimeExports.jsx(c,{}),a.jsxRuntimeExports.jsx(o.Content,{"data-slot":"alert-dialog-content",className:r.cn("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t),...e})]})}function f({className:t,...e}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"alert-dialog-header",className:r.cn("flex flex-col gap-2 text-center sm:text-left",t),...e})}function p({className:t,...e}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"alert-dialog-footer",className:r.cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...e})}function j({className:t,...e}){return a.jsxRuntimeExports.jsx(o.Title,{"data-slot":"alert-dialog-title",className:r.cn("text-lg font-semibold",t),...e})}function D({className:t,...e}){return a.jsxRuntimeExports.jsx(o.Description,{"data-slot":"alert-dialog-description",className:r.cn("text-muted-foreground text-sm",t),...e})}function A({className:t,...e}){return a.jsxRuntimeExports.jsx(o.Action,{className:r.cn(i.buttonStyles(),t),...e})}function b({className:t,...e}){return a.jsxRuntimeExports.jsx(o.Cancel,{className:r.cn(i.buttonStyles({variant:"outline"}),t),...e})}exports.AlertDialog=g;exports.AlertDialogAction=A;exports.AlertDialogCancel=b;exports.AlertDialogContent=m;exports.AlertDialogDescription=D;exports.AlertDialogFooter=p;exports.AlertDialogHeader=f;exports.AlertDialogOverlay=c;exports.AlertDialogPortal=s;exports.AlertDialogTitle=j;exports.AlertDialogTrigger=x;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../jsx-runtime-CEDi24JD.cjs"),u=require("@radix-ui/react-alert-dialog"),i=require("../button-DVFHfLyC.cjs"),r=require("../index-DoxiiusW.cjs");function d(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const l in t)if(l!=="default"){const n=Object.getOwnPropertyDescriptor(t,l);Object.defineProperty(e,l,n.get?n:{enumerable:!0,get:()=>t[l]})}}return e.default=t,Object.freeze(e)}const o=d(u);function g({...t}){return a.jsxRuntimeExports.jsx(o.Root,{"data-slot":"alert-dialog",...t})}function x({...t}){return a.jsxRuntimeExports.jsx(o.Trigger,{"data-slot":"alert-dialog-trigger",...t})}function s({...t}){return a.jsxRuntimeExports.jsx(o.Portal,{"data-slot":"alert-dialog-portal",...t})}function c({className:t,...e}){return a.jsxRuntimeExports.jsx(o.Overlay,{"data-slot":"alert-dialog-overlay",className:r.cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...e})}function m({className:t,...e}){return a.jsxRuntimeExports.jsxs(s,{children:[a.jsxRuntimeExports.jsx(c,{}),a.jsxRuntimeExports.jsx(o.Content,{"data-slot":"alert-dialog-content",className:r.cn("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t),...e})]})}function f({className:t,...e}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"alert-dialog-header",className:r.cn("flex flex-col gap-2 text-center sm:text-left",t),...e})}function p({className:t,...e}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"alert-dialog-footer",className:r.cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...e})}function j({className:t,...e}){return a.jsxRuntimeExports.jsx(o.Title,{"data-slot":"alert-dialog-title",className:r.cn("text-lg font-semibold",t),...e})}function D({className:t,...e}){return a.jsxRuntimeExports.jsx(o.Description,{"data-slot":"alert-dialog-description",className:r.cn("text-muted-foreground text-sm",t),...e})}function A({className:t,...e}){return a.jsxRuntimeExports.jsx(o.Action,{className:r.cn(i.buttonStyles(),t),...e})}function b({className:t,...e}){return a.jsxRuntimeExports.jsx(o.Cancel,{className:r.cn(i.buttonStyles({variant:"outline"}),t),...e})}exports.AlertDialog=g;exports.AlertDialogAction=A;exports.AlertDialogCancel=b;exports.AlertDialogContent=m;exports.AlertDialogDescription=D;exports.AlertDialogFooter=p;exports.AlertDialogHeader=f;exports.AlertDialogOverlay=c;exports.AlertDialogPortal=s;exports.AlertDialogTitle=j;exports.AlertDialogTrigger=x;
@@ -1,6 +1,6 @@
1
1
  import { j as e } from "../jsx-runtime-DywqP_6a.js";
2
2
  import * as o from "@radix-ui/react-alert-dialog";
3
- import { c as r } from "../button-DcSOP6sn.js";
3
+ import { c as r } from "../button-BVN4jg0O.js";
4
4
  import { c as l } from "../index-CRiPKpXj.js";
5
5
  function g({
6
6
  ...t
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../button-Ha5yZjbm.cjs");exports.Button=t.Button;exports.buttonActiveStyles=t.buttonActiveStyles;exports.buttonLoadingStyles=t.buttonLoadingStyles;exports.buttonStyles=t.buttonStyles;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../button-DVFHfLyC.cjs");exports.Button=t.Button;exports.buttonActiveStyles=t.buttonActiveStyles;exports.buttonLoadingStyles=t.buttonLoadingStyles;exports.buttonStyles=t.buttonStyles;
@@ -1,4 +1,4 @@
1
- import { B as s, b as a, a as e, c as n } from "../button-DcSOP6sn.js";
1
+ import { B as s, b as a, a as e, c as n } from "../button-BVN4jg0O.js";
2
2
  export {
3
3
  s as Button,
4
4
  a as buttonActiveStyles,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../jsx-runtime-CEDi24JD.cjs"),q=require("react"),I=require("react-phone-number-input"),P=require("react-phone-number-input/flags"),v=require("react-phone-number-input/locale/en"),O=require("react-phone-number-input/locale/es"),w=require("react-phone-number-input/locale/fr"),_=require("../button-Ha5yZjbm.cjs"),p=require("../command-8g6GQBZ9.cjs"),z=require("../input-DHz92pYC.cjs"),T=require("../label-DzIkWgU7.cjs"),g=require("../popover-DuG87bap.cjs"),A=require("../scroll-area-DWxaYCKb.cjs"),d=require("../index-DoxiiusW.cjs"),C=require("../icon-component-DuSAouum.cjs");function N(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const s=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(n,o,s.get?s:{enumerable:!0,get:()=>t[o]})}}return n.default=t,Object.freeze(n)}const j=N(q),y=N(I),b=j.forwardRef(({className:t,onChange:n,value:o,variant:s="md",rounded:r="default",label:c,helperText:a,locale:x="en",error:u,touched:m,...l},R)=>(console.log(s),e.jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-3",children:[c&&e.jsxRuntimeExports.jsx(T.Label,{htmlFor:l.id,className:d.cn({"text-neutral-700":l.disabled}),children:c}),e.jsxRuntimeExports.jsx(y.default,{ref:R,className:d.cn("flex",t),flagComponent:E,countrySelectComponent:D,inputComponent:S,smartCaret:!1,labels:x==="es"?O:x==="fr"?w:v,value:o||void 0,onChange:f=>n?.(f||""),countrySelectProps:{variant:s,rounded:r,error:u,touched:m},numberInputProps:{variant:s,rounded:r,error:u,touched:m},...l}),u&&m?e.jsxRuntimeExports.jsx("span",{id:l.id&&`${l.id}-error-text`,"aria-invalid":!0,className:"text-destructive text-label-md -mt-1",children:u}):a?e.jsxRuntimeExports.jsx("span",{id:l.id&&`${l.id}-helper-text`,className:d.cn("text-label-md -mt-1",{"text-muted-foreground":!u&&!m,"text-destructive":u&&m,"text-neutral-700":l.disabled}),children:a}):null]})));b.displayName="PhoneInput";const S=j.forwardRef(({className:t,rounded:n="default",error:o,touched:s,variant:r,...c},a)=>{const{"data-country":x,...u}=c;return e.jsxRuntimeExports.jsx(z.Input,{variant:r,className:d.cn(n==="default"?"rounded-s-none rounded-e-lg":"rounded-s-none rounded-e-full",{"border-destructive":o&&s,"border-blue-800":s&&!o,"rounded-e-sm":r==="sm","rounded-e-md":r==="md","rounded-e-lg":r==="lg"},t),...u,ref:a})});S.displayName="InputComponent";const D=({disabled:t,value:n,options:o,onChange:s,variant:r="md",rounded:c="default",error:a,touched:x})=>{const u=j.useRef(null),[m,l]=j.useState(""),[R,f]=j.useState(!1);return e.jsxRuntimeExports.jsxs(g.Popover,{open:R,modal:!0,onOpenChange:i=>{f(i),i&&l("")},children:[e.jsxRuntimeExports.jsx(g.PopoverTrigger,{asChild:!0,children:e.jsxRuntimeExports.jsxs(_.Button,{type:"button",variant:"outline",className:d.cn("outline-r-0 outline-input text-secondary flex gap-1 px-3 focus:z-10",c==="default"?"rounded-e-none":"rounded-s-full rounded-e-none",{"outline-destructive":a&&x,"outline-blue-800":x&&!a,"h-8 rounded-s-sm":r==="sm","h-12 rounded-s-md":r==="md","h-16 rounded-s-lg":r==="lg"}),disabled:t,children:[e.jsxRuntimeExports.jsx(E,{country:n,countryName:n,disabled:t}),e.jsxRuntimeExports.jsx(C.IconComponent,{iconName:"IconChevronDown",className:d.cn("-mr-2 size-4 opacity-50",t?"hidden":"opacity-100")})]})}),e.jsxRuntimeExports.jsx(g.PopoverContent,{className:"w-[300px] p-0",children:e.jsxRuntimeExports.jsxs(p.Command,{children:[e.jsxRuntimeExports.jsx(p.CommandInput,{value:m,onValueChange:i=>{l(i),setTimeout(()=>{if(u.current){const h=u.current.querySelector("[data-radix-scroll-area-viewport]");h&&(h.scrollTop=0)}},0)},placeholder:"Search country..."}),e.jsxRuntimeExports.jsx(p.CommandList,{children:e.jsxRuntimeExports.jsxs(A.ScrollArea,{ref:u,className:"h-72",children:[e.jsxRuntimeExports.jsx(p.CommandEmpty,{children:"No country found."}),e.jsxRuntimeExports.jsx(p.CommandGroup,{children:o.map(({value:i,label:h})=>i?e.jsxRuntimeExports.jsx(F,{country:i,countryName:h,selectedCountry:n,onChange:s,onSelectComplete:()=>f(!1)},i):null)})]})})]})})]})},F=({country:t,countryName:n,selectedCountry:o,onChange:s,onSelectComplete:r})=>{const c=()=>{s(t),r()};return e.jsxRuntimeExports.jsxs(p.CommandItem,{className:"gap-2",onSelect:c,children:[e.jsxRuntimeExports.jsx(E,{country:t,countryName:n}),e.jsxRuntimeExports.jsx("span",{className:"flex-1 text-sm",children:n}),e.jsxRuntimeExports.jsx("span",{className:"text-foreground/50 text-sm",children:`+${y.getCountryCallingCode(t)}`}),e.jsxRuntimeExports.jsx(C.IconComponent,{iconName:"IconCheck",className:`ml-auto size-4 ${t===o?"opacity-100":"opacity-0"}`})]})},E=({country:t,countryName:n,disabled:o})=>{const s=P[t];return e.jsxRuntimeExports.jsx("span",{className:d.cn("bg-foreground/20 flex h-4 w-6 overflow-hidden rounded-[4px] [&_svg:not([class*='size-'])]:size-full",{"opacity-50":o}),children:s&&e.jsxRuntimeExports.jsx(s,{title:n})})};exports.PhoneInput=b;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../jsx-runtime-CEDi24JD.cjs"),S=require("react"),I=require("react-phone-number-input"),q=require("react-phone-number-input/flags"),w=require("react-phone-number-input/locale/en"),P=require("react-phone-number-input/locale/es"),O=require("react-phone-number-input/locale/fr"),p=require("../command-8g6GQBZ9.cjs"),_=require("../input-DHz92pYC.cjs"),T=require("../label-DzIkWgU7.cjs"),h=require("../popover-DuG87bap.cjs"),k=require("../scroll-area-DWxaYCKb.cjs"),m=require("../index-DoxiiusW.cjs"),y=require("../icon-component-DuSAouum.cjs");function C(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const o=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(n,s,o.get?o:{enumerable:!0,get:()=>t[s]})}}return n.default=t,Object.freeze(n)}const f=C(S),E=C(I),N=f.forwardRef(({className:t,onChange:n,value:s,size:o="md",rounded:r="default",label:a,helperText:c,locale:x="en",error:l,touched:d,...i},g)=>e.jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-3",children:[a&&e.jsxRuntimeExports.jsx(T.Label,{htmlFor:i.id,className:m.cn({"text-neutral-700":i.disabled}),children:a}),e.jsxRuntimeExports.jsx(E.default,{ref:g,className:m.cn("flex",t),flagComponent:R,countrySelectComponent:A,inputComponent:v,smartCaret:!1,labels:x==="es"?P:x==="fr"?O:w,value:s||void 0,onChange:j=>n?.(j||""),countrySelectProps:{size:o,rounded:r,error:l,touched:d},numberInputProps:{size:o,rounded:r,error:l,touched:d},...i}),l&&d?e.jsxRuntimeExports.jsx("span",{id:i.id&&`${i.id}-error-text`,"aria-invalid":!0,className:"text-destructive text-label-md -mt-1",children:l}):c?e.jsxRuntimeExports.jsx("span",{id:i.id&&`${i.id}-helper-text`,className:m.cn("text-label-md -mt-1",{"text-muted-foreground":!l&&!d,"text-destructive":l&&d,"text-neutral-700":i.disabled}),children:c}):null]}));N.displayName="PhoneInput";const v=f.forwardRef(({className:t,rounded:n="default",error:s,touched:o,size:r,...a},c)=>{const{"data-country":x,...l}=a;return e.jsxRuntimeExports.jsx(_.Input,{size:r,containerClassName:"w-full",className:m.cn("w-full",{"border-destructive":s&&o,"border-blue-800":o&&!s,"rounded-s-none rounded-e-lg":n!=="full","rounded-s-none rounded-e-full":n==="full","rounded-e-sm":r==="sm","rounded-e-md":r==="md","rounded-e-lg":r==="lg"},t),...l,ref:c})});v.displayName="InputComponent";const A=({disabled:t,value:n,options:s,onChange:o,size:r="md",rounded:a="default",error:c,touched:x})=>{const l=f.useRef(null),[d,i]=f.useState(""),[g,j]=f.useState(!1);return e.jsxRuntimeExports.jsxs(h.Popover,{open:g,modal:!0,onOpenChange:u=>{j(u),u&&i("")},children:[e.jsxRuntimeExports.jsx(h.PopoverTrigger,{asChild:!0,children:e.jsxRuntimeExports.jsxs("button",{type:"button",className:m.cn("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex w-fit items-center justify-center min-w-0 border bg-transparent text-base transition-[color,box-shadow] outline-none file:inline-flex file:border-0 file:bg-transparent file:text-sm file:font-semibold disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm border-r-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] focus-visible:z-1",a==="default"?"rounded-e-none":"rounded-s-full rounded-e-none",{"outline-destructive":c&&x,"outline-blue-800":x&&!c,"text-label-md h-8 rounded-s-sm px-2 py-1":r==="sm","text-label-lg h-12 rounded-s-md px-3 py-1":r==="md","text-label-xl h-16 rounded-s-lg px-4 py-2":r==="lg"}),disabled:t,children:[e.jsxRuntimeExports.jsx(R,{country:n,countryName:n,disabled:t}),e.jsxRuntimeExports.jsx(y.IconComponent,{iconName:"IconChevronDown",className:m.cn("-mr-2 size-4 opacity-50",t?"hidden":"opacity-100")})]})}),e.jsxRuntimeExports.jsx(h.PopoverContent,{className:"w-[300px] p-0",children:e.jsxRuntimeExports.jsxs(p.Command,{children:[e.jsxRuntimeExports.jsx(p.CommandInput,{value:d,onValueChange:u=>{i(u),setTimeout(()=>{if(l.current){const b=l.current.querySelector("[data-radix-scroll-area-viewport]");b&&(b.scrollTop=0)}},0)},placeholder:"Search country..."}),e.jsxRuntimeExports.jsx(p.CommandList,{children:e.jsxRuntimeExports.jsxs(k.ScrollArea,{ref:l,className:"h-72",children:[e.jsxRuntimeExports.jsx(p.CommandEmpty,{children:"No country found."}),e.jsxRuntimeExports.jsx(p.CommandGroup,{children:s.map(({value:u,label:b})=>u?e.jsxRuntimeExports.jsx(D,{country:u,countryName:b,selectedCountry:n,onChange:o,onSelectComplete:()=>j(!1)},u):null)})]})})]})})]})},D=({country:t,countryName:n,selectedCountry:s,onChange:o,onSelectComplete:r})=>{const a=()=>{o(t),r()};return e.jsxRuntimeExports.jsxs(p.CommandItem,{className:"gap-2",onSelect:a,children:[e.jsxRuntimeExports.jsx(R,{country:t,countryName:n}),e.jsxRuntimeExports.jsx("span",{className:"flex-1 text-sm",children:n}),e.jsxRuntimeExports.jsx("span",{className:"text-foreground/50 text-sm",children:`+${E.getCountryCallingCode(t)}`}),e.jsxRuntimeExports.jsx(y.IconComponent,{iconName:"IconCheck",className:`ml-auto size-4 ${t===s?"opacity-100":"opacity-0"}`})]})},R=({country:t,countryName:n,disabled:s})=>{const o=q[t];return e.jsxRuntimeExports.jsx("span",{className:m.cn("bg-foreground/20 flex h-4 w-6 overflow-hidden rounded-[4px] [&_svg:not([class*='size-'])]:size-full",{"opacity-50":s}),children:o&&e.jsxRuntimeExports.jsx(o,{title:n})})};exports.PhoneInput=N;
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import * as RPNInput from 'react-phone-number-input';
3
3
  type PhoneInputProps = Omit<React.ComponentProps<'input'>, 'onChange' | 'value' | 'ref'> & Omit<RPNInput.Props<typeof RPNInput.default>, 'onChange'> & {
4
4
  onChange?: (value: RPNInput.Value) => void;
5
- variant?: 'sm' | 'md' | 'lg';
5
+ size?: 'sm' | 'md' | 'lg';
6
6
  rounded?: 'default' | 'full';
7
7
  label?: string;
8
8
  helperText?: string;
@@ -1,204 +1,205 @@
1
1
  import { j as e } from "../jsx-runtime-DywqP_6a.js";
2
2
  import * as f from "react";
3
- import * as g from "react-phone-number-input";
4
- import I from "react-phone-number-input/flags";
5
- import S from "react-phone-number-input/locale/en";
6
- import b from "react-phone-number-input/locale/es";
7
- import v from "react-phone-number-input/locale/fr";
8
- import { B as P } from "../button-DcSOP6sn.js";
9
- import { C as w, d as R, f as z, b as O, c as $, e as E } from "../command-pED95x7-.js";
3
+ import * as j from "react-phone-number-input";
4
+ import N from "react-phone-number-input/flags";
5
+ import v from "react-phone-number-input/locale/en";
6
+ import I from "react-phone-number-input/locale/es";
7
+ import w from "react-phone-number-input/locale/fr";
8
+ import { C as S, d as P, f as R, b as O, c as $, e as E } from "../command-pED95x7-.js";
10
9
  import { I as F } from "../input-CUSAqhCy.js";
11
10
  import { L } from "../label-_kG7WBoJ.js";
12
- import { P as V, c as A, b as B } from "../popover-CHAUhJda.js";
11
+ import { P as V, c as k, b as A } from "../popover-CHAUhJda.js";
13
12
  import { S as T } from "../scroll-area-DwBiu3Jn.js";
14
13
  import { c as u } from "../index-CRiPKpXj.js";
15
- import { I as N } from "../icon-component-CxQsODCa.js";
14
+ import { I as C } from "../icon-component-CxQsODCa.js";
16
15
  const _ = f.forwardRef(
17
16
  ({
18
- className: n,
19
- onChange: s,
20
- value: r,
21
- variant: t = "md",
17
+ className: t,
18
+ onChange: n,
19
+ value: a,
20
+ size: s = "md",
22
21
  rounded: o = "default",
23
- label: m,
24
- helperText: c,
22
+ label: i,
23
+ helperText: m,
25
24
  locale: p = "en",
26
25
  error: l,
27
- touched: i,
28
- ...a
29
- }, j) => (console.log(t), /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-3", children: [
30
- m && /* @__PURE__ */ e.jsx(
26
+ touched: c,
27
+ ...r
28
+ }, g) => /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-3", children: [
29
+ i && /* @__PURE__ */ e.jsx(
31
30
  L,
32
31
  {
33
- htmlFor: a.id,
32
+ htmlFor: r.id,
34
33
  className: u({
35
- "text-neutral-700": a.disabled
34
+ "text-neutral-700": r.disabled
36
35
  }),
37
- children: m
36
+ children: i
38
37
  }
39
38
  ),
40
39
  /* @__PURE__ */ e.jsx(
41
- g.default,
40
+ j.default,
42
41
  {
43
- ref: j,
44
- className: u("flex", n),
45
- flagComponent: C,
46
- countrySelectComponent: k,
42
+ ref: g,
43
+ className: u("flex", t),
44
+ flagComponent: h,
45
+ countrySelectComponent: q,
47
46
  inputComponent: y,
48
47
  smartCaret: !1,
49
- labels: p === "es" ? b : p === "fr" ? v : S,
50
- value: r || void 0,
51
- onChange: (x) => s?.(x || ""),
48
+ labels: p === "es" ? I : p === "fr" ? w : v,
49
+ value: a || void 0,
50
+ onChange: (x) => n?.(x || ""),
52
51
  countrySelectProps: {
53
- variant: t,
52
+ size: s,
54
53
  rounded: o,
55
54
  error: l,
56
- touched: i
55
+ touched: c
57
56
  },
58
57
  numberInputProps: {
59
- variant: t,
58
+ size: s,
60
59
  rounded: o,
61
60
  error: l,
62
- touched: i
61
+ touched: c
63
62
  },
64
- ...a
63
+ ...r
65
64
  }
66
65
  ),
67
- l && i ? /* @__PURE__ */ e.jsx(
66
+ l && c ? /* @__PURE__ */ e.jsx(
68
67
  "span",
69
68
  {
70
- id: a.id && `${a.id}-error-text`,
69
+ id: r.id && `${r.id}-error-text`,
71
70
  "aria-invalid": !0,
72
71
  className: "text-destructive text-label-md -mt-1",
73
72
  children: l
74
73
  }
75
- ) : c ? /* @__PURE__ */ e.jsx(
74
+ ) : m ? /* @__PURE__ */ e.jsx(
76
75
  "span",
77
76
  {
78
- id: a.id && `${a.id}-helper-text`,
77
+ id: r.id && `${r.id}-helper-text`,
79
78
  className: u("text-label-md -mt-1", {
80
- "text-muted-foreground": !l && !i,
81
- "text-destructive": l && i,
82
- "text-neutral-700": a.disabled
79
+ "text-muted-foreground": !l && !c,
80
+ "text-destructive": l && c,
81
+ "text-neutral-700": r.disabled
83
82
  }),
84
- children: c
83
+ children: m
85
84
  }
86
85
  ) : null
87
- ] }))
86
+ ] })
88
87
  );
89
88
  _.displayName = "PhoneInput";
90
89
  const y = f.forwardRef(
91
- ({ className: n, rounded: s = "default", error: r, touched: t, variant: o, ...m }, c) => {
92
- const { "data-country": p, ...l } = m;
90
+ ({ className: t, rounded: n = "default", error: a, touched: s, size: o, ...i }, m) => {
91
+ const { "data-country": p, ...l } = i;
93
92
  return /* @__PURE__ */ e.jsx(
94
93
  F,
95
94
  {
96
- variant: o,
95
+ size: o,
96
+ containerClassName: "w-full",
97
97
  className: u(
98
- s === "default" ? "rounded-s-none rounded-e-lg" : "rounded-s-none rounded-e-full",
98
+ "w-full",
99
99
  {
100
- "border-destructive": r && t,
101
- "border-blue-800": t && !r,
100
+ "border-destructive": a && s,
101
+ "border-blue-800": s && !a,
102
+ "rounded-s-none rounded-e-lg": n !== "full",
103
+ "rounded-s-none rounded-e-full": n === "full",
102
104
  "rounded-e-sm": o === "sm",
103
105
  "rounded-e-md": o === "md",
104
106
  "rounded-e-lg": o === "lg"
105
107
  },
106
- n
108
+ t
107
109
  ),
108
110
  ...l,
109
- ref: c
111
+ ref: m
110
112
  }
111
113
  );
112
114
  }
113
115
  );
114
116
  y.displayName = "InputComponent";
115
- const k = ({
116
- disabled: n,
117
- value: s,
118
- options: r,
119
- onChange: t,
120
- variant: o = "md",
121
- rounded: m = "default",
122
- error: c,
117
+ const q = ({
118
+ disabled: t,
119
+ value: n,
120
+ options: a,
121
+ onChange: s,
122
+ size: o = "md",
123
+ rounded: i = "default",
124
+ error: m,
123
125
  touched: p
124
126
  }) => {
125
- const l = f.useRef(null), [i, a] = f.useState(""), [j, x] = f.useState(!1);
127
+ const l = f.useRef(null), [c, r] = f.useState(""), [g, x] = f.useState(!1);
126
128
  return /* @__PURE__ */ e.jsxs(
127
129
  V,
128
130
  {
129
- open: j,
131
+ open: g,
130
132
  modal: !0,
131
133
  onOpenChange: (d) => {
132
- x(d), d && a("");
134
+ x(d), d && r("");
133
135
  },
134
136
  children: [
135
- /* @__PURE__ */ e.jsx(A, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
136
- P,
137
+ /* @__PURE__ */ e.jsx(k, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
138
+ "button",
137
139
  {
138
140
  type: "button",
139
- variant: "outline",
140
141
  className: u(
141
- "outline-r-0 outline-input text-secondary flex gap-1 px-3 focus:z-10",
142
- m === "default" ? "rounded-e-none" : "rounded-s-full rounded-e-none",
142
+ "file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex w-fit items-center justify-center min-w-0 border bg-transparent text-base transition-[color,box-shadow] outline-none file:inline-flex file:border-0 file:bg-transparent file:text-sm file:font-semibold disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm border-r-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] focus-visible:z-1",
143
+ i === "default" ? "rounded-e-none" : "rounded-s-full rounded-e-none",
143
144
  {
144
- "outline-destructive": c && p,
145
- "outline-blue-800": p && !c,
146
- "h-8 rounded-s-sm": o === "sm",
147
- "h-12 rounded-s-md": o === "md",
148
- "h-16 rounded-s-lg": o === "lg"
145
+ "outline-destructive": m && p,
146
+ "outline-blue-800": p && !m,
147
+ "text-label-md h-8 rounded-s-sm px-2 py-1": o === "sm",
148
+ "text-label-lg h-12 rounded-s-md px-3 py-1": o === "md",
149
+ "text-label-xl h-16 rounded-s-lg px-4 py-2": o === "lg"
149
150
  }
150
151
  ),
151
- disabled: n,
152
+ disabled: t,
152
153
  children: [
153
154
  /* @__PURE__ */ e.jsx(
154
- C,
155
+ h,
155
156
  {
156
- country: s,
157
- countryName: s,
158
- disabled: n
157
+ country: n,
158
+ countryName: n,
159
+ disabled: t
159
160
  }
160
161
  ),
161
162
  /* @__PURE__ */ e.jsx(
162
- N,
163
+ C,
163
164
  {
164
165
  iconName: "IconChevronDown",
165
166
  className: u(
166
167
  "-mr-2 size-4 opacity-50",
167
- n ? "hidden" : "opacity-100"
168
+ t ? "hidden" : "opacity-100"
168
169
  )
169
170
  }
170
171
  )
171
172
  ]
172
173
  }
173
174
  ) }),
174
- /* @__PURE__ */ e.jsx(B, { className: "w-[300px] p-0", children: /* @__PURE__ */ e.jsxs(w, { children: [
175
+ /* @__PURE__ */ e.jsx(A, { className: "w-[300px] p-0", children: /* @__PURE__ */ e.jsxs(S, { children: [
175
176
  /* @__PURE__ */ e.jsx(
176
- R,
177
+ P,
177
178
  {
178
- value: i,
179
+ value: c,
179
180
  onValueChange: (d) => {
180
- a(d), setTimeout(() => {
181
+ r(d), setTimeout(() => {
181
182
  if (l.current) {
182
- const h = l.current.querySelector(
183
+ const b = l.current.querySelector(
183
184
  "[data-radix-scroll-area-viewport]"
184
185
  );
185
- h && (h.scrollTop = 0);
186
+ b && (b.scrollTop = 0);
186
187
  }
187
188
  }, 0);
188
189
  },
189
190
  placeholder: "Search country..."
190
191
  }
191
192
  ),
192
- /* @__PURE__ */ e.jsx(z, { children: /* @__PURE__ */ e.jsxs(T, { ref: l, className: "h-72", children: [
193
+ /* @__PURE__ */ e.jsx(R, { children: /* @__PURE__ */ e.jsxs(T, { ref: l, className: "h-72", children: [
193
194
  /* @__PURE__ */ e.jsx(O, { children: "No country found." }),
194
- /* @__PURE__ */ e.jsx($, { children: r.map(
195
- ({ value: d, label: h }) => d ? /* @__PURE__ */ e.jsx(
196
- q,
195
+ /* @__PURE__ */ e.jsx($, { children: a.map(
196
+ ({ value: d, label: b }) => d ? /* @__PURE__ */ e.jsx(
197
+ D,
197
198
  {
198
199
  country: d,
199
- countryName: h,
200
- selectedCountry: s,
201
- onChange: t,
200
+ countryName: b,
201
+ selectedCountry: n,
202
+ onChange: s,
202
203
  onSelectComplete: () => x(!1)
203
204
  },
204
205
  d
@@ -209,42 +210,42 @@ const k = ({
209
210
  ]
210
211
  }
211
212
  );
212
- }, q = ({
213
- country: n,
214
- countryName: s,
215
- selectedCountry: r,
216
- onChange: t,
213
+ }, D = ({
214
+ country: t,
215
+ countryName: n,
216
+ selectedCountry: a,
217
+ onChange: s,
217
218
  onSelectComplete: o
218
219
  }) => {
219
- const m = () => {
220
- t(n), o();
220
+ const i = () => {
221
+ s(t), o();
221
222
  };
222
- return /* @__PURE__ */ e.jsxs(E, { className: "gap-2", onSelect: m, children: [
223
- /* @__PURE__ */ e.jsx(C, { country: n, countryName: s }),
224
- /* @__PURE__ */ e.jsx("span", { className: "flex-1 text-sm", children: s }),
225
- /* @__PURE__ */ e.jsx("span", { className: "text-foreground/50 text-sm", children: `+${g.getCountryCallingCode(n)}` }),
223
+ return /* @__PURE__ */ e.jsxs(E, { className: "gap-2", onSelect: i, children: [
224
+ /* @__PURE__ */ e.jsx(h, { country: t, countryName: n }),
225
+ /* @__PURE__ */ e.jsx("span", { className: "flex-1 text-sm", children: n }),
226
+ /* @__PURE__ */ e.jsx("span", { className: "text-foreground/50 text-sm", children: `+${j.getCountryCallingCode(t)}` }),
226
227
  /* @__PURE__ */ e.jsx(
227
- N,
228
+ C,
228
229
  {
229
230
  iconName: "IconCheck",
230
- className: `ml-auto size-4 ${n === r ? "opacity-100" : "opacity-0"}`
231
+ className: `ml-auto size-4 ${t === a ? "opacity-100" : "opacity-0"}`
231
232
  }
232
233
  )
233
234
  ] });
234
- }, C = ({
235
- country: n,
236
- countryName: s,
237
- disabled: r
235
+ }, h = ({
236
+ country: t,
237
+ countryName: n,
238
+ disabled: a
238
239
  }) => {
239
- const t = I[n];
240
+ const s = N[t];
240
241
  return /* @__PURE__ */ e.jsx(
241
242
  "span",
242
243
  {
243
244
  className: u(
244
245
  "bg-foreground/20 flex h-4 w-6 overflow-hidden rounded-[4px] [&_svg:not([class*='size-'])]:size-full",
245
- { "opacity-50": r }
246
+ { "opacity-50": a }
246
247
  ),
247
- children: t && /* @__PURE__ */ e.jsx(t, { title: s })
248
+ children: s && /* @__PURE__ */ e.jsx(s, { title: n })
248
249
  }
249
250
  );
250
251
  };
package/dist/ui.css CHANGED
@@ -1,6 +1,8 @@
1
1
  @import 'tailwindcss';
2
2
  @import 'tw-animate-css';
3
3
 
4
+ @source "./**/*.{js,jsx,ts,tsx}";
5
+
4
6
  @custom-variant dark (&:is(.dark *));
5
7
 
6
8
  @custom-variant fixed (&:is(.layout-fixed *));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clasing/ui",
3
- "version": "0.1.129",
3
+ "version": "0.1.131",
4
4
  "type": "module",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.es.js",