@clasing/ui 2.7.1 → 2.7.2

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,4 +1,4 @@
1
- import { c as a, j as e } from "./index-CwFDnnd3.js";
1
+ import { c as o, j as e } from "./index-CwFDnnd3.js";
2
2
  import { Slot as _ } from "@radix-ui/react-slot";
3
3
  import { c as k } from "./index-CnqageB2.js";
4
4
  import w from "react";
@@ -11,7 +11,7 @@ const T = k(
11
11
  before:absolute before:inset-0 before:z-[-1] before:rounded-full
12
12
  before:transition-transform before:duration-150 before:ease-in-out
13
13
  focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-1
14
- active:before:scale-96
14
+ not-disabled:active:before:scale-96
15
15
  [&_svg]:shrink-0
16
16
  `,
17
17
  {
@@ -29,7 +29,7 @@ const T = k(
29
29
  `
30
30
  text-secondary-foreground
31
31
  before:bg-secondary
32
- hover:before:bg-secondary/60
32
+ hover:before:bg-secondary/80
33
33
  `
34
34
  ],
35
35
  ghost: [
@@ -184,7 +184,7 @@ const T = k(
184
184
  weight: p,
185
185
  children: n,
186
186
  isLoading: r,
187
- disabled: o,
187
+ disabled: a,
188
188
  tooltip: t,
189
189
  tooltipPlacement: l = "top",
190
190
  asChild: d,
@@ -197,13 +197,13 @@ const T = k(
197
197
  md: "w-8 px-0",
198
198
  sm: "w-7 px-0",
199
199
  xs: "w-6 px-0"
200
- }[i || "xl"] : "", N = a(
200
+ }[i || "xl"] : "", N = o(
201
201
  T({
202
202
  variant: x,
203
203
  weight: p,
204
204
  size: i,
205
205
  isLoading: r,
206
- disabled: o
206
+ disabled: a
207
207
  }),
208
208
  m,
209
209
  j
@@ -212,7 +212,7 @@ const T = k(
212
212
  C,
213
213
  {
214
214
  variant: "default",
215
- className: a(
215
+ className: o(
216
216
  "pointer-events-none absolute top-1/2 left-1/2 -translate-1/2",
217
217
  {
218
218
  "visible animate-[spin_2s_linear_infinite] opacity-100": r
@@ -223,7 +223,7 @@ const T = k(
223
223
  /* @__PURE__ */ e.jsx(
224
224
  "span",
225
225
  {
226
- className: a(
226
+ className: o(
227
227
  "flex items-center justify-center gap-2",
228
228
  r ? "invisible opacity-0" : "visible opacity-100"
229
229
  ),
@@ -234,13 +234,13 @@ const T = k(
234
234
  h,
235
235
  {
236
236
  ref: y,
237
- className: N,
238
- disabled: !!r || !!o,
237
+ className: o(N),
238
+ disabled: !!r || !!a,
239
239
  ...v,
240
240
  children: z
241
241
  }
242
242
  );
243
- return t && (o || r) ? /* @__PURE__ */ e.jsx(b, { children: /* @__PURE__ */ e.jsxs(c, { children: [
243
+ return t && (a || r) ? /* @__PURE__ */ e.jsx(b, { children: /* @__PURE__ */ e.jsxs(c, { children: [
244
244
  /* @__PURE__ */ e.jsx(g, { asChild: !0, children: u ? /* @__PURE__ */ e.jsx("div", { className: "inline-block", "aria-disabled": "true", children: s }) : s }),
245
245
  /* @__PURE__ */ e.jsx(f, { side: l, children: t })
246
246
  ] }) }) : t ? /* @__PURE__ */ e.jsx(b, { children: /* @__PURE__ */ e.jsxs(c, { children: [
@@ -4,7 +4,7 @@
4
4
  before:absolute before:inset-0 before:z-[-1] before:rounded-full
5
5
  before:transition-transform before:duration-150 before:ease-in-out
6
6
  focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-1
7
- active:before:scale-96
7
+ not-disabled:active:before:scale-96
8
8
  [&_svg]:shrink-0
9
9
  `,{variants:{variant:{primary:[`
10
10
  text-primary-foreground
@@ -13,7 +13,7 @@
13
13
  `],secondary:[`
14
14
  text-secondary-foreground
15
15
  before:bg-secondary
16
- hover:before:bg-secondary/60
16
+ hover:before:bg-secondary/80
17
17
  `],ghost:[`
18
18
  text-foreground
19
19
  before:bg-background
@@ -67,4 +67,4 @@
67
67
  `},{variant:"destructive",isLoading:!0,className:`
68
68
  text-destructive-foreground!
69
69
  before:bg-destructive/80!
70
- `}],defaultVariants:{variant:"primary",size:"xl",weight:"semibold"}}),b=z.forwardRef(({className:c,variant:g,size:n,weight:m,children:a,isLoading:r,disabled:i,tooltip:s,tooltipPlacement:l="top",asChild:u,iconOnly:d,...f},p)=>{const v=u?R.Slot:"button",y=d?{xl:"w-12 px-0",lg:"w-10 px-0",md:"w-8 px-0",sm:"w-7 px-0",xs:"w-6 px-0"}[n||"xl"]:"",h=e.cn(x({variant:g,weight:m,size:n,isLoading:r,disabled:i}),c,y),j=u?a:e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[r&&e.jsxRuntimeExports.jsx(E.ClasingIcon,{variant:"default",className:e.cn("pointer-events-none absolute top-1/2 left-1/2 -translate-1/2",{"visible animate-[spin_2s_linear_infinite] opacity-100":r})}),e.jsxRuntimeExports.jsx("span",{className:e.cn("flex items-center justify-center gap-2",r?"invisible opacity-0":"visible opacity-100"),children:a})]}),o=e.jsxRuntimeExports.jsx(v,{ref:p,className:h,disabled:!!r||!!i,...f,children:j});return s&&(i||r)?e.jsxRuntimeExports.jsx(t.TooltipProvider,{children:e.jsxRuntimeExports.jsxs(t.Tooltip,{children:[e.jsxRuntimeExports.jsx(t.TooltipTrigger,{asChild:!0,children:d?e.jsxRuntimeExports.jsx("div",{className:"inline-block","aria-disabled":"true",children:o}):o}),e.jsxRuntimeExports.jsx(t.TooltipContent,{side:l,children:s})]})}):s?e.jsxRuntimeExports.jsx(t.TooltipProvider,{children:e.jsxRuntimeExports.jsxs(t.Tooltip,{children:[e.jsxRuntimeExports.jsx(t.TooltipTrigger,{asChild:!0,children:o}),e.jsxRuntimeExports.jsx(t.TooltipContent,{side:l,children:s})]})}):o});b.displayName="Button";exports.Button=b;exports.buttonStyles=x;
70
+ `}],defaultVariants:{variant:"primary",size:"xl",weight:"semibold"}}),b=z.forwardRef(({className:c,variant:g,size:i,weight:m,children:a,isLoading:r,disabled:n,tooltip:s,tooltipPlacement:l="top",asChild:u,iconOnly:d,...f},p)=>{const v=u?R.Slot:"button",y=d?{xl:"w-12 px-0",lg:"w-10 px-0",md:"w-8 px-0",sm:"w-7 px-0",xs:"w-6 px-0"}[i||"xl"]:"",h=e.cn(x({variant:g,weight:m,size:i,isLoading:r,disabled:n}),c,y),j=u?a:e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[r&&e.jsxRuntimeExports.jsx(E.ClasingIcon,{variant:"default",className:e.cn("pointer-events-none absolute top-1/2 left-1/2 -translate-1/2",{"visible animate-[spin_2s_linear_infinite] opacity-100":r})}),e.jsxRuntimeExports.jsx("span",{className:e.cn("flex items-center justify-center gap-2",r?"invisible opacity-0":"visible opacity-100"),children:a})]}),o=e.jsxRuntimeExports.jsx(v,{ref:p,className:e.cn(h),disabled:!!r||!!n,...f,children:j});return s&&(n||r)?e.jsxRuntimeExports.jsx(t.TooltipProvider,{children:e.jsxRuntimeExports.jsxs(t.Tooltip,{children:[e.jsxRuntimeExports.jsx(t.TooltipTrigger,{asChild:!0,children:d?e.jsxRuntimeExports.jsx("div",{className:"inline-block","aria-disabled":"true",children:o}):o}),e.jsxRuntimeExports.jsx(t.TooltipContent,{side:l,children:s})]})}):s?e.jsxRuntimeExports.jsx(t.TooltipProvider,{children:e.jsxRuntimeExports.jsxs(t.Tooltip,{children:[e.jsxRuntimeExports.jsx(t.TooltipTrigger,{asChild:!0,children:o}),e.jsxRuntimeExports.jsx(t.TooltipContent,{side:l,children:s})]})}):o});b.displayName="Button";exports.Button=b;exports.buttonStyles=x;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-Bfismeyo.cjs"),u=require("@radix-ui/react-alert-dialog"),n=require("../button-DWBp81pk.cjs");function c(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const l in t)if(l!=="default"){const r=Object.getOwnPropertyDescriptor(t,l);Object.defineProperty(a,l,r.get?r:{enumerable:!0,get:()=>t[l]})}}return a.default=t,Object.freeze(a)}const o=c(u);function d({...t}){return e.jsxRuntimeExports.jsx(o.Root,{"data-slot":"alert-dialog",...t})}function g({...t}){return e.jsxRuntimeExports.jsx(o.Trigger,{"data-slot":"alert-dialog-trigger",...t})}function i({...t}){return e.jsxRuntimeExports.jsx(o.Portal,{"data-slot":"alert-dialog-portal",...t})}function s({className:t,...a}){return e.jsxRuntimeExports.jsx(o.Overlay,{"data-slot":"alert-dialog-overlay",className:e.cn(`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-Bfismeyo.cjs"),u=require("@radix-ui/react-alert-dialog"),n=require("../button-CBGIJZh6.cjs");function c(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const l in t)if(l!=="default"){const r=Object.getOwnPropertyDescriptor(t,l);Object.defineProperty(a,l,r.get?r:{enumerable:!0,get:()=>t[l]})}}return a.default=t,Object.freeze(a)}const o=c(u);function d({...t}){return e.jsxRuntimeExports.jsx(o.Root,{"data-slot":"alert-dialog",...t})}function g({...t}){return e.jsxRuntimeExports.jsx(o.Trigger,{"data-slot":"alert-dialog-trigger",...t})}function i({...t}){return e.jsxRuntimeExports.jsx(o.Portal,{"data-slot":"alert-dialog-portal",...t})}function s({className:t,...a}){return e.jsxRuntimeExports.jsx(o.Overlay,{"data-slot":"alert-dialog-overlay",className:e.cn(`
2
2
  fixed inset-0 z-50 bg-black/50
3
3
  data-[state=closed]:animate-out data-[state=closed]:fade-out-0
4
4
  data-[state=open]:animate-in data-[state=open]:fade-in-0
@@ -1,6 +1,6 @@
1
1
  import { j as e, c as l } from "../index-CwFDnnd3.js";
2
2
  import * as o from "@radix-ui/react-alert-dialog";
3
- import { b as r } from "../button-2VesFn_C.js";
3
+ import { b as r } from "../button-BMh8vaQL.js";
4
4
  function c({
5
5
  ...t
6
6
  }) {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../button-DWBp81pk.cjs");exports.Button=t.Button;exports.buttonStyles=t.buttonStyles;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../button-CBGIJZh6.cjs");exports.Button=t.Button;exports.buttonStyles=t.buttonStyles;
@@ -1,4 +1,4 @@
1
- import { B as s, b as a } from "../button-2VesFn_C.js";
1
+ import { B as s, b as a } from "../button-BMh8vaQL.js";
2
2
  export {
3
3
  s as Button,
4
4
  a as buttonStyles
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-Bfismeyo.cjs"),b=require("react"),g=require("react-day-picker"),m=require("../button-DWBp81pk.cjs"),i=require("@phosphor-icons/react");function h(r){const d=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const n in r)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(d,n,o.get?o:{enumerable:!0,get:()=>r[n]})}}return d.default=r,Object.freeze(d)}const p=h(b);function w({className:r,classNames:d,showOutsideDays:n=!0,captionLayout:o="label",buttonVariant:l="ghost",formatters:c,components:f,...x}){const t=g.getDefaultClassNames();return e.jsxRuntimeExports.jsx(g.DayPicker,{showOutsideDays:n,className:e.cn(`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-Bfismeyo.cjs"),b=require("react"),g=require("react-day-picker"),m=require("../button-CBGIJZh6.cjs"),i=require("@phosphor-icons/react");function h(r){const d=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const n in r)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(d,n,o.get?o:{enumerable:!0,get:()=>r[n]})}}return d.default=r,Object.freeze(d)}const p=h(b);function w({className:r,classNames:d,showOutsideDays:n=!0,captionLayout:o="label",buttonVariant:l="ghost",formatters:c,components:f,...x}){const t=g.getDefaultClassNames();return e.jsxRuntimeExports.jsx(g.DayPicker,{showOutsideDays:n,className:e.cn(`
2
2
  group/calendar bg-background p-3 [--cell-size:--spacing(8)]
3
3
  in-data-[slot=card-content]:bg-transparent
4
4
  in-data-[slot=popover-content]:bg-transparent
@@ -30,7 +30,7 @@
30
30
  flex-1 rounded-md text-[0.8rem] font-regular text-muted-foreground
31
31
  select-none
32
32
  `,t.weekday),week:e.cn("mt-2 flex w-full",t.week),week_number_header:e.cn("w-(--cell-size) select-none",t.week_number_header),week_number:e.cn("text-[0.8rem] text-muted-foreground select-none",t.week_number),day:e.cn(`
33
- group/day relative aspect-square h-full w-full p-0 text-center
33
+ group/day relative aspect-square size-full p-0 text-center
34
34
  select-none
35
35
  [&:first-child[data-selected=true]_button]:rounded-l-md
36
36
  [&:last-child[data-selected=true]_button]:rounded-r-md
@@ -1,7 +1,7 @@
1
1
  import { j as n, c as e } from "../index-CwFDnnd3.js";
2
2
  import * as i from "react";
3
3
  import { getDefaultClassNames as p, DayPicker as x } from "react-day-picker";
4
- import { b as m, B as h } from "../button-2VesFn_C.js";
4
+ import { b as m, B as h } from "../button-BMh8vaQL.js";
5
5
  import { CaretLeftIcon as w, CaretRightIcon as _, CaretDownIcon as y } from "@phosphor-icons/react";
6
6
  function C({
7
7
  className: c,
@@ -119,7 +119,7 @@ function C({
119
119
  ),
120
120
  day: e(
121
121
  `
122
- group/day relative aspect-square h-full w-full p-0 text-center
122
+ group/day relative aspect-square size-full p-0 text-center
123
123
  select-none
124
124
  [&:first-child[data-selected=true]_button]:rounded-l-md
125
125
  [&:last-child[data-selected=true]_button]:rounded-r-md
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../input-u-OTHOPe.cjs");exports.Input=t.Input;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../input-DKYrdSsU.cjs");exports.Input=t.Input;
@@ -1,4 +1,4 @@
1
- import { I as r } from "../input-kOA9xJIa.js";
1
+ import { I as r } from "../input-9_pd3W-1.js";
2
2
  export {
3
3
  r as Input
4
4
  };
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-Bfismeyo.cjs"),m=require("../command-DNjJookC.cjs"),D=require("../input-u-OTHOPe.cjs"),C=require("../popover-A1-x5q-F.cjs"),M=require("../scroll-area-DFyIQG6Z.cjs"),S=require("@phosphor-icons/react"),F=require("react"),L=require("react-phone-number-input"),H=require("react-phone-number-input/flags"),G=require("react-phone-number-input/locale/en"),W=require("react-phone-number-input/locale/es"),$=require("react-phone-number-input/locale/fr");function N(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:()=>t[n]})}}return r.default=t,Object.freeze(r)}const s=N(F),I=N(L);function z(t,r){const[n,o]=s.useState(t);return s.useEffect(()=>{const l=setTimeout(()=>{o(t)},r);return()=>{clearTimeout(l)}},[t,r]),n}const P=s.forwardRef(({className:t,onChange:r,value:n,size:o="md",rounded:l="default",locale:c="en",...u},d)=>e.jsxRuntimeExports.jsx(I.default,{ref:d,className:e.cn("flex",t),flagComponent:B,countrySelectComponent:O,inputComponent:q,smartCaret:!1,labels:c==="es"?W:c==="fr"?$:G,value:n||void 0,onChange:f=>r?.(f||""),countrySelectProps:{size:o,rounded:l,...u},numberInputProps:{size:o,rounded:l,...u},...u}));P.displayName="PhoneInput";const q=s.forwardRef(({className:t,rounded:r="default",size:n,...o},l)=>{const{"data-country":c,...u}=o;return e.jsxRuntimeExports.jsx(D.Input,{size:n,className:e.cn("w-full",{"rounded-s-none rounded-e-lg":r!=="full","rounded-s-none rounded-e-full":r==="full","rounded-e-sm":n==="sm","rounded-e-md":n==="md","rounded-e-lg":n==="lg"},t),...u,ref:l})});q.displayName="InputComponent";const O=s.memo(({disabled:t,value:r,options:n,onChange:o,size:l="md",rounded:c="default",...u})=>{const d=s.useRef(null),[f,E]=s.useState(""),[b,R]=s.useState(!1),[y,v]=s.useState(20),x=z(f,100),p=s.useMemo(()=>x?n.filter(({label:a,value:i})=>i&&(a.toLowerCase().includes(x.toLowerCase())||i.toLowerCase().includes(x.toLowerCase()))):n,[n,x]),g=s.useMemo(()=>p.slice(0,y),[p,y]);return s.useEffect(()=>{v(20)},[x]),s.useEffect(()=>{if(!b)return;const a=setTimeout(()=>{if(!d.current)return;const h=d.current.querySelector("[data-radix-scroll-area-viewport]");if(!h)return;const w=()=>{const{scrollTop:_,scrollHeight:V,clientHeight:k}=h;_+k>=V-100&&v(A=>Math.min(A+20,p.length))};h.addEventListener("scroll",w,{passive:!0}),window.__scrollCleanup=()=>{h.removeEventListener("scroll",w)}},100);return()=>{clearTimeout(a);const i=window.__scrollCleanup;i&&i()}},[b,p.length]),e.jsxRuntimeExports.jsxs(C.Popover,{open:b,modal:!0,onOpenChange:a=>{R(a),a&&E("")},children:[e.jsxRuntimeExports.jsx(C.PopoverTrigger,{asChild:!0,children:e.jsxRuntimeExports.jsxs("button",{type:"button","aria-invalid":u["aria-invalid"],className:e.cn(`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-Bfismeyo.cjs"),m=require("../command-DNjJookC.cjs"),D=require("../input-DKYrdSsU.cjs"),C=require("../popover-A1-x5q-F.cjs"),M=require("../scroll-area-DFyIQG6Z.cjs"),S=require("@phosphor-icons/react"),F=require("react"),L=require("react-phone-number-input"),H=require("react-phone-number-input/flags"),G=require("react-phone-number-input/locale/en"),W=require("react-phone-number-input/locale/es"),$=require("react-phone-number-input/locale/fr");function N(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:()=>t[n]})}}return r.default=t,Object.freeze(r)}const s=N(F),I=N(L);function z(t,r){const[n,o]=s.useState(t);return s.useEffect(()=>{const l=setTimeout(()=>{o(t)},r);return()=>{clearTimeout(l)}},[t,r]),n}const P=s.forwardRef(({className:t,onChange:r,value:n,size:o="md",rounded:l="default",locale:c="en",...u},d)=>e.jsxRuntimeExports.jsx(I.default,{ref:d,className:e.cn("flex",t),flagComponent:B,countrySelectComponent:O,inputComponent:q,smartCaret:!1,labels:c==="es"?W:c==="fr"?$:G,value:n||void 0,onChange:f=>r?.(f||""),countrySelectProps:{size:o,rounded:l,...u},numberInputProps:{size:o,rounded:l,...u},...u}));P.displayName="PhoneInput";const q=s.forwardRef(({className:t,rounded:r="default",size:n,...o},l)=>{const{"data-country":c,...u}=o;return e.jsxRuntimeExports.jsx(D.Input,{size:n,className:e.cn("w-full",{"rounded-s-none rounded-e-lg":r!=="full","rounded-s-none rounded-e-full":r==="full","rounded-e-sm":n==="sm","rounded-e-md":n==="md","rounded-e-lg":n==="lg"},t),...u,ref:l})});q.displayName="InputComponent";const O=s.memo(({disabled:t,value:r,options:n,onChange:o,size:l="md",rounded:c="default",...u})=>{const d=s.useRef(null),[f,E]=s.useState(""),[b,R]=s.useState(!1),[y,v]=s.useState(20),x=z(f,100),p=s.useMemo(()=>x?n.filter(({label:a,value:i})=>i&&(a.toLowerCase().includes(x.toLowerCase())||i.toLowerCase().includes(x.toLowerCase()))):n,[n,x]),g=s.useMemo(()=>p.slice(0,y),[p,y]);return s.useEffect(()=>{v(20)},[x]),s.useEffect(()=>{if(!b)return;const a=setTimeout(()=>{if(!d.current)return;const h=d.current.querySelector("[data-radix-scroll-area-viewport]");if(!h)return;const w=()=>{const{scrollTop:_,scrollHeight:V,clientHeight:k}=h;_+k>=V-100&&v(A=>Math.min(A+20,p.length))};h.addEventListener("scroll",w,{passive:!0}),window.__scrollCleanup=()=>{h.removeEventListener("scroll",w)}},100);return()=>{clearTimeout(a);const i=window.__scrollCleanup;i&&i()}},[b,p.length]),e.jsxRuntimeExports.jsxs(C.Popover,{open:b,modal:!0,onOpenChange:a=>{R(a),a&&E("")},children:[e.jsxRuntimeExports.jsx(C.PopoverTrigger,{asChild:!0,children:e.jsxRuntimeExports.jsxs("button",{type:"button","aria-invalid":u["aria-invalid"],className:e.cn(`
2
2
  flex w-fit min-w-0 items-center justify-center border border-r-0
3
3
  border-input bg-transparent paragraph-md
4
4
  transition-[color,box-shadow] outline-none
@@ -1,6 +1,6 @@
1
1
  import { j as e, c as p } from "../index-CwFDnnd3.js";
2
2
  import { C as k, d as A, f as F, b as L, c as D, e as N } from "../command-peXi2dFX.js";
3
- import { I as M } from "../input-kOA9xJIa.js";
3
+ import { I as M } from "../input-9_pd3W-1.js";
4
4
  import { P as q, c as H, b as G } from "../popover-eQq2Is-I.js";
5
5
  import { S as W } from "../scroll-area-CJy_EOqT.js";
6
6
  import { CaretDownIcon as $, CheckIcon as B } from "@phosphor-icons/react";
@@ -2,7 +2,7 @@ import { j as r, c as o } from "./index-CwFDnnd3.js";
2
2
  import { EyeSlashIcon as f, EyeIcon as g } from "@phosphor-icons/react";
3
3
  import { c as b } from "./index-CnqageB2.js";
4
4
  import * as m from "react";
5
- import { B as c } from "./button-2VesFn_C.js";
5
+ import { B as c } from "./button-BMh8vaQL.js";
6
6
  const d = b(
7
7
  `
8
8
  flex w-full min-w-0 rounded-md border border-input bg-transparent
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("./index-Bfismeyo.cjs"),l=require("@phosphor-icons/react"),p=require("./index-BmhzhLcV.cjs"),x=require("react"),f=require("./button-DWBp81pk.cjs");function g(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const s in n)if(s!=="default"){const r=Object.getOwnPropertyDescriptor(n,s);Object.defineProperty(e,s,r.get?r:{enumerable:!0,get:()=>n[s]})}}return e.default=n,Object.freeze(e)}const b=g(x),d=p.cva(`
1
+ "use strict";const t=require("./index-Bfismeyo.cjs"),l=require("@phosphor-icons/react"),p=require("./index-BmhzhLcV.cjs"),x=require("react"),f=require("./button-CBGIJZh6.cjs");function g(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const s in n)if(s!=="default"){const r=Object.getOwnPropertyDescriptor(n,s);Object.defineProperty(e,s,r.get?r:{enumerable:!0,get:()=>n[s]})}}return e.default=n,Object.freeze(e)}const b=g(x),d=p.cva(`
2
2
  flex w-full min-w-0 rounded-md border border-input bg-transparent
3
3
  transition-[color,box-shadow] outline-none
4
4
  selection:bg-primary selection:text-primary-foreground
package/dist/ui.css CHANGED
@@ -58,18 +58,19 @@
58
58
  --font-weight-semibold: 600;
59
59
 
60
60
  --color-*: initial;
61
- --color-black: #0c1717;
61
+ --color-black: #050808;
62
62
  --color-white: #ffffff;
63
63
 
64
- --color-neutral-900: #0c1717;
65
- --color-neutral-800: #364141;
66
- --color-neutral-700: #515a5a;
67
- --color-neutral-600: #6d7272;
68
- --color-neutral-500: #9ea2a2;
69
- --color-neutral-400: #bbbfbf;
70
- --color-neutral-300: #c8cbcb;
71
- --color-neutral-200: #eceded;
72
- --color-neutral-100: #f8f8f8;
64
+ --color-neutral-950: #050808;
65
+ --color-neutral-900: #0c1010;
66
+ --color-neutral-800: #1a1f1f;
67
+ --color-neutral-700: #2d3535;
68
+ --color-neutral-600: #464e4e;
69
+ --color-neutral-500: #737c7c;
70
+ --color-neutral-400: #a1a9a9;
71
+ --color-neutral-300: #cbd2d2;
72
+ --color-neutral-200: #e2e8e8;
73
+ --color-neutral-100: #f4f7f7;
73
74
 
74
75
  --color-yellow-900: #332400;
75
76
  --color-yellow-800: #624600;
@@ -293,7 +294,7 @@
293
294
  :root {
294
295
  --radius: 1rem;
295
296
  --background: var(--color-white);
296
- --foreground: var(--color-black);
297
+ --foreground: var(--color-neutral-900);
297
298
  --card: var(--background);
298
299
  --card-foreground: var(--foreground);
299
300
  --popover: var(--background);
@@ -305,18 +306,18 @@
305
306
  --muted: var(--color-neutral-200);
306
307
  --muted-foreground: var(--color-neutral-500);
307
308
  --accent: var(--color-neutral-200);
308
- --accent-foreground: var(--color-black);
309
+ --accent-foreground: var(--color-neutral-900);
309
310
  --destructive: var(--color-red-050);
310
- --destructive-foreground: var(--color-red-500);
311
+ --destructive-foreground: var(--color-red-600);
311
312
  --success: var(--color-green-050);
312
- --success-foreground: var(--color-green-500);
313
+ --success-foreground: var(--color-green-700);
313
314
  --warning: var(--color-yellow-050);
314
- --warning-foreground: var(--color-yellow-500);
315
+ --warning-foreground: var(--color-yellow-700);
315
316
  --info: var(--color-blue-050);
316
- --info-foreground: var(--color-blue-500);
317
+ --info-foreground: var(--color-blue-700);
317
318
  --border: var(--color-neutral-200);
318
319
  --input: var(--color-neutral-300);
319
- --ring: var(--color-ring-default);
320
+ --ring: var(--color-blue-600);
320
321
  --chart-1: var(--color-blue-300);
321
322
  --chart-2: var(--color-blue-500);
322
323
  --chart-3: var(--color-blue-600);
@@ -331,47 +332,47 @@
331
332
  --sidebar-border: var(--border);
332
333
  --sidebar-ring: var(--color-blue-500);
333
334
  --surface: var(--background);
334
- --surface-foreground: var(--color-foreground);
335
- --code: var(--surface);
336
- --code-foreground: var(--surface-foreground);
335
+ --surface-foreground: var(--foreground);
336
+ --code: var(--color-neutral-100);
337
+ --code-foreground: var(--color-neutral-900);
337
338
  --code-highlight: var(--color-blue-500);
338
339
  --code-number: var(--color-blue-500);
339
- --selection: var(--color-blue-050);
340
- --selection-foreground: var(--color-blue-600);
340
+ --selection: var(--color-blue-100);
341
+ --selection-foreground: var(--color-blue-900);
341
342
  }
342
343
 
343
344
  .dark {
344
- --background: var(--color-black);
345
- --foreground: var(--color-white);
346
- --card: var(--background);
345
+ --background: var(--color-neutral-950);
346
+ --foreground: var(--color-neutral-100);
347
+ --card: var(--color-neutral-900);
347
348
  --card-foreground: var(--foreground);
348
- --popover: var(--background);
349
+ --popover: var(--color-neutral-900);
349
350
  --popover-foreground: var(--foreground);
350
- --primary: var(--color-white);
351
- --primary-foreground: var(--color-neutral-900);
351
+ --primary: var(--color-neutral-100);
352
+ --primary-foreground: var(--color-neutral-950);
352
353
  --secondary: var(--color-neutral-800);
353
- --secondary-foreground: var(--color-white);
354
- --muted: var(--color-neutral-700);
355
- --muted-foreground: var(--color-neutral-500);
354
+ --secondary-foreground: var(--color-neutral-100);
355
+ --muted: var(--color-neutral-800);
356
+ --muted-foreground: var(--color-neutral-400);
356
357
  --accent: var(--color-neutral-800);
357
- --accent-foreground: var(--color-white);
358
+ --accent-foreground: var(--color-neutral-100);
358
359
  --destructive: var(--color-red-900);
359
- --destructive-foreground: var(--color-red-300);
360
+ --destructive-foreground: var(--color-red-200);
360
361
  --success: var(--color-green-900);
361
- --success-foreground: var(--color-green-500);
362
+ --success-foreground: var(--color-green-300);
362
363
  --warning: var(--color-yellow-900);
363
- --warning-foreground: var(--color-yellow-500);
364
+ --warning-foreground: var(--color-yellow-200);
364
365
  --info: var(--color-blue-900);
365
366
  --info-foreground: var(--color-blue-200);
366
367
  --border: var(--color-neutral-800);
367
368
  --input: var(--color-neutral-800);
368
369
  --ring: var(--color-blue-500);
369
- --chart-1: var(--color-blue-300);
370
+ --chart-1: var(--color-blue-400);
370
371
  --chart-2: var(--color-blue-500);
371
- --chart-3: var(--color-blue-600);
372
- --chart-4: var(--color-blue-700);
373
- --chart-5: var(--color-blue-800);
374
- --sidebar: var(--background);
372
+ --chart-3: var(--color-blue-300);
373
+ --chart-4: var(--color-blue-200);
374
+ --chart-5: var(--color-blue-100);
375
+ --sidebar: var(--color-neutral-950);
375
376
  --sidebar-foreground: var(--foreground);
376
377
  --sidebar-primary: var(--primary);
377
378
  --sidebar-primary-foreground: var(--primary-foreground);
@@ -379,16 +380,15 @@
379
380
  --sidebar-accent-foreground: var(--accent-foreground);
380
381
  --sidebar-border: var(--border);
381
382
  --sidebar-ring: var(--color-blue-500);
382
- --surface: var(--background);
383
- --surface-foreground: var(--color-foreground);
384
- --code: var(--surface);
385
- --code-foreground: var(--surface-foreground);
386
- --code-highlight: var(--color-blue-500);
387
- --code-number: var(--color-blue-500);
388
- --selection: var(--color-blue-900);
389
- --selection-foreground: var(--color-blue-600);
383
+ --surface: var(--color-neutral-900);
384
+ --surface-foreground: var(--foreground);
385
+ --code: var(--color-neutral-900);
386
+ --code-foreground: var(--color-neutral-100);
387
+ --code-highlight: var(--color-blue-400);
388
+ --code-number: var(--color-blue-400);
389
+ --selection: var(--color-blue-800);
390
+ --selection-foreground: var(--color-blue-100);
390
391
  }
391
-
392
392
  /*
393
393
  The default border color has changed to `currentcolor` in Tailwind CSS v4,
394
394
  so we've added these compatibility styles to make sure everything still
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clasing/ui",
3
- "version": "2.7.1",
3
+ "version": "2.7.2",
4
4
  "type": "module",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.es.js",