@lglab/compose-ui 0.15.0 → 0.16.0

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.
@@ -0,0 +1,79 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from 'react';
3
+ declare const cardVariants: (props?: ({
4
+ variant?: "default" | "outline" | "elevated" | null | undefined;
5
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
+ export type CardVariant = VariantProps<typeof cardVariants>['variant'];
7
+ type CardRootProps = React.ComponentProps<'article'> & VariantProps<typeof cardVariants>;
8
+ /**
9
+ * The root container for a card component.
10
+ * Renders as an `<article>` for semantic HTML.
11
+ */
12
+ declare const CardRoot: React.ForwardRefExoticComponent<Omit<CardRootProps, "ref"> & React.RefAttributes<HTMLElement>>;
13
+ type CardMediaProps = React.ComponentProps<'div'>;
14
+ /**
15
+ * Container for media content (images, videos) within a card.
16
+ * Use Tailwind aspect-* classes for aspect ratios (e.g., className="aspect-video").
17
+ */
18
+ declare const CardMedia: {
19
+ ({ className, ...props }: CardMediaProps): import("react/jsx-runtime").JSX.Element;
20
+ displayName: string;
21
+ };
22
+ type CardHeaderProps = React.ComponentProps<'header'>;
23
+ /**
24
+ * Container for the card's header content (title, description).
25
+ */
26
+ declare const CardHeader: {
27
+ ({ className, ...props }: CardHeaderProps): import("react/jsx-runtime").JSX.Element;
28
+ displayName: string;
29
+ };
30
+ type HeadingLevel = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
31
+ type CardTitleProps = React.ComponentProps<'h3'> & {
32
+ /** The heading level to render */
33
+ as?: HeadingLevel;
34
+ };
35
+ /**
36
+ * The card's title. Renders as an `<h3>` by default.
37
+ * Use the `as` prop to change the heading level.
38
+ */
39
+ declare const CardTitle: {
40
+ ({ as: Component, className, ...props }: CardTitleProps): import("react/jsx-runtime").JSX.Element;
41
+ displayName: string;
42
+ };
43
+ type CardDescriptionProps = React.ComponentProps<'p'>;
44
+ /**
45
+ * Secondary text content for the card.
46
+ */
47
+ declare const CardDescription: {
48
+ ({ className, ...props }: CardDescriptionProps): import("react/jsx-runtime").JSX.Element;
49
+ displayName: string;
50
+ };
51
+ type CardContentProps = React.ComponentProps<'div'>;
52
+ /**
53
+ * Container for the main content of the card.
54
+ */
55
+ declare const CardContent: {
56
+ ({ className, ...props }: CardContentProps): import("react/jsx-runtime").JSX.Element;
57
+ displayName: string;
58
+ };
59
+ type CardSectionProps = React.ComponentProps<'section'>;
60
+ /**
61
+ * A distinct section within a card, useful for multi-section layouts.
62
+ * Use Separator component between sections if visual dividers are needed.
63
+ */
64
+ declare const CardSection: {
65
+ ({ className, ...props }: CardSectionProps): import("react/jsx-runtime").JSX.Element;
66
+ displayName: string;
67
+ };
68
+ type CardFooterProps = React.ComponentProps<'footer'>;
69
+ /**
70
+ * Container for card actions and footer content.
71
+ * Use Separator component above footer if a visual divider is needed.
72
+ */
73
+ declare const CardFooter: {
74
+ ({ className, ...props }: CardFooterProps): import("react/jsx-runtime").JSX.Element;
75
+ displayName: string;
76
+ };
77
+ export { CardRoot, CardMedia, CardHeader, CardTitle, CardDescription, CardContent, CardSection, CardFooter, };
78
+ export type { CardRootProps, CardMediaProps, CardHeaderProps, CardTitleProps, CardDescriptionProps, CardContentProps, CardSectionProps, CardFooterProps, };
79
+ //# sourceMappingURL=card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../src/components/card.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,0BAA0B,CAAA;AACjE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAQ9B,QAAA,MAAM,YAAY;;8EAWhB,CAAA;AAEF,MAAM,MAAM,WAAW,GAAG,YAAY,CAAC,OAAO,YAAY,CAAC,CAAC,SAAS,CAAC,CAAA;AAMtE,KAAK,aAAa,GAAG,KAAK,CAAC,cAAc,CAAC,SAAS,CAAC,GAAG,YAAY,CAA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AS,EACT,eAAe,EACf,WAAW,EACX,WAAW,EACX,UAAU,GACX,CAAA;AAED,YAAY,EACV,aAAa,EACb,cAAc,EACd,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,GAChB,CAAA"}
package/dist/index.d.ts CHANGED
@@ -16,6 +16,7 @@ export { MenuRoot, MenuTrigger, MenuPortal, MenuPositioner, MenuPopup, MenuArrow
16
16
  export { PopoverRoot, PopoverTrigger, PopoverPortal, PopoverBackdrop, PopoverPositioner, PopoverPopup, PopoverArrow, PopoverTitle, PopoverDescription, PopoverClose, PopoverViewport, } from './components/popover';
17
17
  export { ProgressRoot, ProgressTrack, ProgressIndicator, ProgressValue, ProgressLabel, } from './components/progress';
18
18
  export { ToggleGroupRoot, ToggleGroupItem } from './components/toggle-group';
19
+ export { CardRoot, CardMedia, CardHeader, CardTitle, CardDescription, CardFooter, CardSection, CardContent, } from './components/card';
19
20
  export type { ButtonProps } from './components/button';
20
21
  export type { CollapsibleRootProps, CollapsibleTriggerProps, CollapsiblePanelProps, } from './components/collapsible';
21
22
  export type { AlertDialogRootProps, AlertDialogTriggerProps, AlertDialogPortalProps, AlertDialogBackdropProps, AlertDialogViewportProps, AlertDialogPopupProps, AlertDialogTitleProps, AlertDialogDescriptionProps, AlertDialogCloseProps, } from './components/alert-dialog';
@@ -34,4 +35,5 @@ export type { MenuRootProps, MenuTriggerProps, MenuPortalProps, MenuPositionerPr
34
35
  export type { PopoverRootProps, PopoverTriggerProps, PopoverPortalProps, PopoverBackdropProps, PopoverPositionerProps, PopoverPopupProps, PopoverArrowProps, PopoverTitleProps, PopoverDescriptionProps, PopoverCloseProps, PopoverViewportProps, } from './components/popover';
35
36
  export type { ProgressRootProps, ProgressTrackProps, ProgressIndicatorProps, ProgressValueProps, ProgressLabelProps, } from './components/progress';
36
37
  export type { ToggleGroupRootProps, ToggleGroupItemProps, } from './components/toggle-group';
38
+ export type { CardRootProps, CardMediaProps, CardHeaderProps, CardTitleProps, CardDescriptionProps, CardFooterProps, CardSectionProps, CardContentProps, } from './components/card';
37
39
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,sBAAsB,EACtB,gBAAgB,GACjB,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AACzD,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAC1F,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,eAAe,EACf,gBAAgB,GACjB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAClD,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AACzF,OAAO,EACL,UAAU,EACV,aAAa,EACb,YAAY,EACZ,cAAc,EACd,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,YAAY,GACb,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EACL,UAAU,EACV,aAAa,EACb,YAAY,EACZ,cAAc,EACd,WAAW,EACX,WAAW,EACX,iBAAiB,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AuB,EACvB,qBAAqB,EACrB,8BAA8B,EAC9B,0BAA0B,EAC1B,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,mBAAmB,CAAA;AAC1B,YAAY,EACV,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,uBAAuB,EACvB,iBAAiB,EACjB,oBAAoB,GACrB,MAAM,sBAAsB,CAAA;AAC7B,YAAY,EACV,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACtB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,uBAAuB,CAAA;AAC9B,YAAY,EACV,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,2BAA2B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,sBAAsB,EACtB,gBAAgB,GACjB,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AACzD,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAC1F,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,eAAe,EACf,gBAAgB,GACjB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAClD,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAC7D,OAAO,EAAE,MAA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BAAgB,EAChB,sBAAsB,EACtB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,qBAAqB,CAAA;AAC5B,YAAY,EACV,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,wBAAwB,CAAA;AAC/B,YAAY,EACV,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,eAAe,GAChB,MAAM,oBAAoB,CAAA;AAC3B,YAAY,EACV,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,aAAa,EACb,kBAAkB,EAClB,cAAc,EACd,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,2BAA2B,EAC3B,uBAAuB,EACvB,qBAAqB,EACrB,8BAA8B,EAC9B,0BAA0B,EAC1B,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,mBAAmB,CAAA;AAC1B,YAAY,EACV,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,uBAAuB,EACvB,iBAAiB,EACjB,oBAAoB,GACrB,MAAM,sBAAsB,CAAA;AAC7B,YAAY,EACV,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACtB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,uBAAuB,CAAA;AAC9B,YAAY,EACV,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,2BAA2B,CAAA;AAClC,YAAY,EACV,aAAa,EACb,cAAc,EACd,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,eAAe,EACf,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,mBAAmB,CAAA"}
package/dist/index.es.js CHANGED
@@ -1,25 +1,25 @@
1
1
  "use client";
2
- import { jsx as t, jsxs as w } from "react/jsx-runtime";
3
- import { Button as S } from "@base-ui/react/button";
2
+ import { jsx as t, jsxs as k } from "react/jsx-runtime";
3
+ import { Button as I } from "@base-ui/react/button";
4
4
  import { cva as u } from "class-variance-authority";
5
5
  import { clsx as L } from "clsx";
6
- import { twMerge as _ } from "tailwind-merge";
6
+ import { twMerge as H } from "tailwind-merge";
7
7
  import { Collapsible as D } from "@base-ui/react/collapsible";
8
8
  import { AlertDialog as m } from "@base-ui/react/alert-dialog";
9
- import { AlertDialog as nt } from "@base-ui/react/alert-dialog";
10
- import { Avatar as T } from "@base-ui/react/avatar";
11
- import * as k from "react";
9
+ import { AlertDialog as bt } from "@base-ui/react/alert-dialog";
10
+ import { Avatar as C } from "@base-ui/react/avatar";
11
+ import * as y from "react";
12
12
  import { ScrollArea as g } from "@base-ui/react/scroll-area";
13
- import { Separator as H } from "@base-ui/react/separator";
14
- import { Switch as C } from "@base-ui/react/switch";
15
- import { Toggle as z } from "@base-ui/react/toggle";
16
- import { Tabs as y } from "@base-ui/react/tabs";
13
+ import { Separator as _ } from "@base-ui/react/separator";
14
+ import { Switch as A } from "@base-ui/react/switch";
15
+ import { Toggle as R } from "@base-ui/react/toggle";
16
+ import { Tabs as N } from "@base-ui/react/tabs";
17
17
  import { Dialog as n } from "@base-ui/react/dialog";
18
18
  import { Accordion as h } from "@base-ui/react/accordion";
19
- import { Meter as N } from "@base-ui/react/meter";
19
+ import { Meter as x } from "@base-ui/react/meter";
20
20
  import { Menu as l } from "@base-ui/react/menu";
21
21
  import { Popover as i } from "@base-ui/react/popover";
22
- import { Progress as x } from "@base-ui/react/progress";
22
+ import { Progress as v } from "@base-ui/react/progress";
23
23
  import { ToggleGroup as B } from "@base-ui/react/toggle-group";
24
24
  const d = u(
25
25
  [
@@ -51,9 +51,9 @@ const d = u(
51
51
  }
52
52
  );
53
53
  function r(...e) {
54
- return _(L(e));
54
+ return H(L(e));
55
55
  }
56
- const j = ({
56
+ const F = ({
57
57
  className: e,
58
58
  variant: a,
59
59
  size: o,
@@ -61,7 +61,7 @@ const j = ({
61
61
  children: c,
62
62
  ...p
63
63
  }) => /* @__PURE__ */ t(
64
- S,
64
+ I,
65
65
  {
66
66
  className: r(d({ variant: a, size: o }), e),
67
67
  disabled: s,
@@ -69,9 +69,9 @@ const j = ({
69
69
  children: c
70
70
  }
71
71
  );
72
- j.displayName = "Button";
73
- const F = ({ className: e, ...a }) => /* @__PURE__ */ t(D.Root, { className: r("w-full", e), ...a });
74
- F.displayName = "CollapsibleRoot";
72
+ F.displayName = "Button";
73
+ const j = ({ className: e, ...a }) => /* @__PURE__ */ t(D.Root, { className: r("w-full", e), ...a });
74
+ j.displayName = "CollapsibleRoot";
75
75
  const G = ({ className: e, ...a }) => /* @__PURE__ */ t(
76
76
  D.Trigger,
77
77
  {
@@ -205,10 +205,10 @@ const M = u(
205
205
  size: "default"
206
206
  }
207
207
  }
208
- ), R = ({ className: e, size: a, ...o }) => /* @__PURE__ */ t(T.Root, { className: r(M({ size: a }), e), ...o });
209
- R.displayName = "AvatarRoot";
208
+ ), z = ({ className: e, size: a, ...o }) => /* @__PURE__ */ t(C.Root, { className: r(M({ size: a }), e), ...o });
209
+ z.displayName = "AvatarRoot";
210
210
  const Y = ({ className: e, ...a }) => /* @__PURE__ */ t(
211
- T.Image,
211
+ C.Image,
212
212
  {
213
213
  className: r("aspect-square h-full w-full object-cover", e),
214
214
  ...a
@@ -216,7 +216,7 @@ const Y = ({ className: e, ...a }) => /* @__PURE__ */ t(
216
216
  );
217
217
  Y.displayName = "AvatarImage";
218
218
  const ee = ({ className: e, ...a }) => /* @__PURE__ */ t(
219
- T.Fallback,
219
+ C.Fallback,
220
220
  {
221
221
  className: r(
222
222
  "flex h-full w-full items-center justify-center font-medium",
@@ -232,24 +232,24 @@ const ae = ({
232
232
  className: o,
233
233
  children: s
234
234
  }) => {
235
- const c = k.Children.toArray(s), p = c.length, f = a !== void 0 ? Math.min(a, p) : p, v = p - f, P = c.slice(0, f), I = (() => {
235
+ const c = y.Children.toArray(s), p = c.length, f = a !== void 0 ? Math.min(a, p) : p, w = p - f, P = c.slice(0, f), S = (() => {
236
236
  const b = c[0];
237
- return k.isValidElement(b) && b.type === R ? b.props.size ?? "default" : "default";
237
+ return y.isValidElement(b) && b.type === z ? b.props.size ?? "default" : "default";
238
238
  })();
239
- return /* @__PURE__ */ w("ul", { "aria-label": e, className: r("flex -space-x-2", o), children: [
240
- P.map((b, A) => /* @__PURE__ */ t("li", { children: b }, A)),
241
- v > 0 && /* @__PURE__ */ t("li", { children: /* @__PURE__ */ w(
239
+ return /* @__PURE__ */ k("ul", { "aria-label": e, className: r("flex -space-x-2", o), children: [
240
+ P.map((b, T) => /* @__PURE__ */ t("li", { children: b }, T)),
241
+ w > 0 && /* @__PURE__ */ t("li", { children: /* @__PURE__ */ k(
242
242
  "span",
243
243
  {
244
244
  className: r(
245
245
  "relative flex shrink-0 items-center justify-center overflow-hidden rounded-full",
246
246
  "bg-muted text-foreground border-2 border-background",
247
247
  "font-medium",
248
- M({ size: I })
248
+ M({ size: S })
249
249
  ),
250
250
  children: [
251
251
  "+",
252
- v
252
+ w
253
253
  ]
254
254
  }
255
255
  ) })
@@ -306,7 +306,7 @@ const ie = ({
306
306
  orientation: a = "horizontal",
307
307
  ...o
308
308
  }) => /* @__PURE__ */ t(
309
- H,
309
+ _,
310
310
  {
311
311
  orientation: a,
312
312
  className: r(
@@ -319,7 +319,7 @@ const ie = ({
319
319
  );
320
320
  ie.displayName = "Separator";
321
321
  const de = ({ className: e, ...a }) => /* @__PURE__ */ t(
322
- C.Root,
322
+ A.Root,
323
323
  {
324
324
  className: r(
325
325
  "relative flex h-6 w-10 rounded-full",
@@ -336,7 +336,7 @@ const de = ({ className: e, ...a }) => /* @__PURE__ */ t(
336
336
  );
337
337
  de.displayName = "SwitchRoot";
338
338
  const ce = ({ className: e, ...a }) => /* @__PURE__ */ t(
339
- C.Thumb,
339
+ A.Thumb,
340
340
  {
341
341
  className: r(
342
342
  "aspect-square h-full rounded-full bg-background",
@@ -382,9 +382,9 @@ const V = u(
382
382
  size: "default"
383
383
  }
384
384
  }
385
- ), ue = ({ className: e, variant: a, size: o, ...s }) => /* @__PURE__ */ t(z, { className: r(V({ variant: a, size: o }), e), ...s });
385
+ ), ue = ({ className: e, variant: a, size: o, ...s }) => /* @__PURE__ */ t(R, { className: r(V({ variant: a, size: o }), e), ...s });
386
386
  ue.displayName = "Toggle";
387
- const me = ({ className: e, ...a }) => /* @__PURE__ */ t(y.Root, { className: r("flex flex-col", e), ...a });
387
+ const me = ({ className: e, ...a }) => /* @__PURE__ */ t(N.Root, { className: r("flex flex-col", e), ...a });
388
388
  me.displayName = "TabsRoot";
389
389
  const pe = u(
390
390
  ["relative inline-flex w-fit items-center gap-1", "rounded-lg bg-muted p-1"],
@@ -400,7 +400,7 @@ const pe = u(
400
400
  }
401
401
  }
402
402
  ), ge = ({ className: e, orientation: a = "horizontal", ...o }) => /* @__PURE__ */ t(
403
- y.List,
403
+ N.List,
404
404
  {
405
405
  className: r(pe({ orientation: a }), e),
406
406
  ...o
@@ -428,7 +428,7 @@ const fe = u(
428
428
  size: "default"
429
429
  }
430
430
  }
431
- ), be = ({ className: e, size: a, ...o }) => /* @__PURE__ */ t(y.Tab, { className: r(fe({ size: a }), e), ...o });
431
+ ), be = ({ className: e, size: a, ...o }) => /* @__PURE__ */ t(N.Tab, { className: r(fe({ size: a }), e), ...o });
432
432
  be.displayName = "TabsTab";
433
433
  const ye = u(
434
434
  ["absolute rounded-md bg-background shadow-sm", "transition-all duration-200 ease-out"],
@@ -443,20 +443,20 @@ const ye = u(
443
443
  orientation: "horizontal"
444
444
  }
445
445
  }
446
- ), he = ({
446
+ ), Ne = ({
447
447
  className: e,
448
448
  orientation: a = "horizontal",
449
449
  ...o
450
450
  }) => /* @__PURE__ */ t(
451
- y.Indicator,
451
+ N.Indicator,
452
452
  {
453
453
  className: r(ye({ orientation: a }), e),
454
454
  ...o
455
455
  }
456
456
  );
457
- he.displayName = "TabsIndicator";
458
- const Ne = ({ className: e, ...a }) => /* @__PURE__ */ t(y.Panel, { className: r("mt-2 ring-offset-background", e), ...a });
459
- Ne.displayName = "TabsPanel";
457
+ Ne.displayName = "TabsIndicator";
458
+ const he = ({ className: e, ...a }) => /* @__PURE__ */ t(N.Panel, { className: r("mt-2 ring-offset-background", e), ...a });
459
+ he.displayName = "TabsPanel";
460
460
  const xe = (e) => /* @__PURE__ */ t(n.Root, { ...e });
461
461
  xe.displayName = "DialogRoot";
462
462
  const ve = ({ className: e, variant: a, size: o, ...s }) => /* @__PURE__ */ t(
@@ -514,26 +514,26 @@ const Pe = u(
514
514
  }
515
515
  );
516
516
  De.displayName = "DialogPopup";
517
- const Te = ({ className: e, ...a }) => /* @__PURE__ */ t(
517
+ const Ce = ({ className: e, ...a }) => /* @__PURE__ */ t(
518
518
  n.Title,
519
519
  {
520
520
  className: r("text-lg font-semibold leading-none tracking-tight", e),
521
521
  ...a
522
522
  }
523
523
  );
524
- Te.displayName = "DialogTitle";
525
- const Ae = ({ className: e, ...a }) => /* @__PURE__ */ t(n.Description, { className: r("mt-2", e), ...a });
526
- Ae.displayName = "DialogDescription";
527
- const Ce = ({ className: e, variant: a, size: o, ...s }) => /* @__PURE__ */ t(
524
+ Ce.displayName = "DialogTitle";
525
+ const Te = ({ className: e, ...a }) => /* @__PURE__ */ t(n.Description, { className: r("mt-2", e), ...a });
526
+ Te.displayName = "DialogDescription";
527
+ const Ae = ({ className: e, variant: a, size: o, ...s }) => /* @__PURE__ */ t(
528
528
  n.Close,
529
529
  {
530
530
  className: r(d({ variant: a ?? "outline", size: o }), e),
531
531
  ...s
532
532
  }
533
533
  );
534
- Ce.displayName = "DialogClose";
535
- const ze = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("flex flex-col space-y-1 mb-5", e), ...a });
536
- ze.displayName = "DialogHeader";
534
+ Ae.displayName = "DialogClose";
535
+ const Re = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("flex flex-col space-y-1 mb-5", e), ...a });
536
+ Re.displayName = "DialogHeader";
537
537
  const Me = ({ className: e, ...a }) => /* @__PURE__ */ t(
538
538
  "div",
539
539
  {
@@ -545,8 +545,8 @@ const Me = ({ className: e, ...a }) => /* @__PURE__ */ t(
545
545
  }
546
546
  );
547
547
  Me.displayName = "DialogFooter";
548
- const Re = (e) => /* @__PURE__ */ t(n.Root, { ...e });
549
- Re.displayName = "DrawerRoot";
548
+ const ze = (e) => /* @__PURE__ */ t(n.Root, { ...e });
549
+ ze.displayName = "DrawerRoot";
550
550
  const Ve = ({ className: e, variant: a, size: o, ...s }) => /* @__PURE__ */ t(
551
551
  n.Trigger,
552
552
  {
@@ -555,9 +555,9 @@ const Ve = ({ className: e, variant: a, size: o, ...s }) => /* @__PURE__ */ t(
555
555
  }
556
556
  );
557
557
  Ve.displayName = "DrawerTrigger";
558
- const Ie = (e) => /* @__PURE__ */ t(n.Portal, { ...e });
559
- Ie.displayName = "DrawerPortal";
560
- const Se = ({ className: e, ...a }) => /* @__PURE__ */ t(
558
+ const Se = (e) => /* @__PURE__ */ t(n.Portal, { ...e });
559
+ Se.displayName = "DrawerPortal";
560
+ const Ie = ({ className: e, ...a }) => /* @__PURE__ */ t(
561
561
  n.Backdrop,
562
562
  {
563
563
  className: r(
@@ -569,7 +569,7 @@ const Se = ({ className: e, ...a }) => /* @__PURE__ */ t(
569
569
  ...a
570
570
  }
571
571
  );
572
- Se.displayName = "DrawerBackdrop";
572
+ Ie.displayName = "DrawerBackdrop";
573
573
  const Le = u(
574
574
  [
575
575
  "fixed z-50 flex flex-col bg-background p-6 shadow-lg",
@@ -606,34 +606,34 @@ const Le = u(
606
606
  side: "right"
607
607
  }
608
608
  }
609
- ), _e = ({ className: e, side: a, ...o }) => /* @__PURE__ */ t(
609
+ ), He = ({ className: e, side: a, ...o }) => /* @__PURE__ */ t(
610
610
  n.Popup,
611
611
  {
612
612
  className: r(Le({ side: a }), e),
613
613
  ...o
614
614
  }
615
615
  );
616
- _e.displayName = "DrawerPopup";
617
- const He = ({ className: e, ...a }) => /* @__PURE__ */ t(
616
+ He.displayName = "DrawerPopup";
617
+ const _e = ({ className: e, ...a }) => /* @__PURE__ */ t(
618
618
  n.Title,
619
619
  {
620
620
  className: r("text-lg font-semibold leading-none tracking-tight", e),
621
621
  ...a
622
622
  }
623
623
  );
624
- He.displayName = "DrawerTitle";
624
+ _e.displayName = "DrawerTitle";
625
625
  const Be = ({ className: e, ...a }) => /* @__PURE__ */ t(n.Description, { className: r("", e), ...a });
626
626
  Be.displayName = "DrawerDescription";
627
- const je = ({ className: e, variant: a, size: o, ...s }) => /* @__PURE__ */ t(
627
+ const Fe = ({ className: e, variant: a, size: o, ...s }) => /* @__PURE__ */ t(
628
628
  n.Close,
629
629
  {
630
630
  className: r(d({ variant: a ?? "outline", size: o }), e),
631
631
  ...s
632
632
  }
633
633
  );
634
- je.displayName = "DrawerClose";
635
- const Fe = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("flex flex-col space-y-1.5", e), ...a });
636
- Fe.displayName = "DrawerHeader";
634
+ Fe.displayName = "DrawerClose";
635
+ const je = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("flex flex-col space-y-1.5", e), ...a });
636
+ je.displayName = "DrawerHeader";
637
637
  const Ge = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("py-5", e), ...a });
638
638
  Ge.displayName = "DrawerContent";
639
639
  const qe = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("", e), ...a });
@@ -674,23 +674,23 @@ const Je = ({ className: e, ...a }) => /* @__PURE__ */ t(
674
674
  );
675
675
  Je.displayName = "AccordionPanel";
676
676
  const Ke = ({ className: e, animated: a, value: o, ...s }) => {
677
- const c = o ?? 0, [p, f] = k.useState(a ? 0 : c);
678
- return k.useEffect(() => {
677
+ const c = o ?? 0, [p, f] = y.useState(a ? 0 : c);
678
+ return y.useEffect(() => {
679
679
  if (a) {
680
- const v = requestAnimationFrame(() => {
680
+ const w = requestAnimationFrame(() => {
681
681
  const P = requestAnimationFrame(() => {
682
682
  f(c ?? 0);
683
683
  });
684
684
  return () => cancelAnimationFrame(P);
685
685
  });
686
- return () => cancelAnimationFrame(v);
686
+ return () => cancelAnimationFrame(w);
687
687
  } else
688
688
  f(c ?? 0);
689
- }, [a, c]), /* @__PURE__ */ t(N.Root, { className: r("w-full", e), value: p, ...s });
689
+ }, [a, c]), /* @__PURE__ */ t(x.Root, { className: r("w-full", e), value: p, ...s });
690
690
  };
691
691
  Ke.displayName = "MeterRoot";
692
692
  const Qe = ({ className: e, ...a }) => /* @__PURE__ */ t(
693
- N.Track,
693
+ x.Track,
694
694
  {
695
695
  className: r(
696
696
  "relative h-2 w-full overflow-hidden rounded-full bg-primary/20",
@@ -701,7 +701,7 @@ const Qe = ({ className: e, ...a }) => /* @__PURE__ */ t(
701
701
  );
702
702
  Qe.displayName = "MeterTrack";
703
703
  const Ue = ({ className: e, ...a }) => /* @__PURE__ */ t(
704
- N.Indicator,
704
+ x.Indicator,
705
705
  {
706
706
  className: r(
707
707
  "h-full rounded-full bg-primary transition-all duration-1000 ease-out-expo",
@@ -712,7 +712,7 @@ const Ue = ({ className: e, ...a }) => /* @__PURE__ */ t(
712
712
  );
713
713
  Ue.displayName = "MeterIndicator";
714
714
  const We = ({ className: e, ...a }) => /* @__PURE__ */ t(
715
- N.Value,
715
+ x.Value,
716
716
  {
717
717
  className: r("text-sm font-medium text-foreground", e),
718
718
  ...a
@@ -720,7 +720,7 @@ const We = ({ className: e, ...a }) => /* @__PURE__ */ t(
720
720
  );
721
721
  We.displayName = "MeterValue";
722
722
  const Xe = ({ className: e, ...a }) => /* @__PURE__ */ t(
723
- N.Label,
723
+ x.Label,
724
724
  {
725
725
  className: r("text-sm font-medium text-foreground", e),
726
726
  ...a
@@ -766,7 +766,7 @@ const oa = ({ className: e, ...a }) => /* @__PURE__ */ t(
766
766
  }
767
767
  );
768
768
  function sa(e) {
769
- return /* @__PURE__ */ w("svg", { width: "20", height: "10", viewBox: "0 0 20 10", fill: "none", ...e, children: [
769
+ return /* @__PURE__ */ k("svg", { width: "20", height: "10", viewBox: "0 0 20 10", fill: "none", ...e, children: [
770
770
  /* @__PURE__ */ t(
771
771
  "path",
772
772
  {
@@ -863,10 +863,10 @@ const ya = ({ className: e, ...a }) => /* @__PURE__ */ t(
863
863
  }
864
864
  );
865
865
  ya.displayName = "MenuSubmenuTrigger";
866
- const ha = (e) => /* @__PURE__ */ t(l.SubmenuRoot, { ...e });
867
- ha.displayName = "MenuSubmenuRoot";
868
- const Na = (e) => /* @__PURE__ */ t(i.Root, { ...e });
869
- Na.displayName = "PopoverRoot";
866
+ const Na = (e) => /* @__PURE__ */ t(l.SubmenuRoot, { ...e });
867
+ Na.displayName = "MenuSubmenuRoot";
868
+ const ha = (e) => /* @__PURE__ */ t(i.Root, { ...e });
869
+ ha.displayName = "PopoverRoot";
870
870
  const xa = ({ className: e, ...a }) => /* @__PURE__ */ t(i.Trigger, { className: r(e), ...a });
871
871
  xa.displayName = "PopoverTrigger";
872
872
  const va = (e) => /* @__PURE__ */ t(i.Portal, { ...e });
@@ -930,11 +930,11 @@ const Da = ({ className: e, ...a }) => /* @__PURE__ */ t(
930
930
  e
931
931
  ),
932
932
  ...a,
933
- children: /* @__PURE__ */ t(Ta, {})
933
+ children: /* @__PURE__ */ t(Ca, {})
934
934
  }
935
935
  );
936
- function Ta(e) {
937
- return /* @__PURE__ */ w("svg", { width: "20", height: "10", viewBox: "0 0 20 10", fill: "none", ...e, children: [
936
+ function Ca(e) {
937
+ return /* @__PURE__ */ k("svg", { width: "20", height: "10", viewBox: "0 0 20 10", fill: "none", ...e, children: [
938
938
  /* @__PURE__ */ t(
939
939
  "path",
940
940
  {
@@ -952,18 +952,18 @@ function Ta(e) {
952
952
  ] });
953
953
  }
954
954
  Da.displayName = "PopoverArrow";
955
- const Aa = ({ className: e, ...a }) => /* @__PURE__ */ t(i.Title, { className: r("text-sm font-semibold", e), ...a });
956
- Aa.displayName = "PopoverTitle";
957
- const Ca = ({ className: e, ...a }) => /* @__PURE__ */ t(i.Description, { className: r("text-sm", e), ...a });
958
- Ca.displayName = "PopoverDescription";
959
- const za = ({ className: e, ...a }) => /* @__PURE__ */ t(i.Close, { className: r(e), ...a });
960
- za.displayName = "PopoverClose";
955
+ const Ta = ({ className: e, ...a }) => /* @__PURE__ */ t(i.Title, { className: r("text-sm font-semibold", e), ...a });
956
+ Ta.displayName = "PopoverTitle";
957
+ const Aa = ({ className: e, ...a }) => /* @__PURE__ */ t(i.Description, { className: r("text-sm", e), ...a });
958
+ Aa.displayName = "PopoverDescription";
959
+ const Ra = ({ className: e, ...a }) => /* @__PURE__ */ t(i.Close, { className: r(e), ...a });
960
+ Ra.displayName = "PopoverClose";
961
961
  const Ma = ({ className: e, ...a }) => /* @__PURE__ */ t(i.Viewport, { className: r(e), ...a });
962
962
  Ma.displayName = "PopoverViewport";
963
- const Ra = ({ className: e, ...a }) => /* @__PURE__ */ t(x.Root, { className: r("w-full", e), ...a });
964
- Ra.displayName = "ProgressRoot";
963
+ const za = ({ className: e, ...a }) => /* @__PURE__ */ t(v.Root, { className: r("w-full", e), ...a });
964
+ za.displayName = "ProgressRoot";
965
965
  const Va = ({ className: e, ...a }) => /* @__PURE__ */ t(
966
- x.Track,
966
+ v.Track,
967
967
  {
968
968
  className: r(
969
969
  "relative h-2 w-full overflow-hidden rounded-full bg-primary/20",
@@ -973,8 +973,8 @@ const Va = ({ className: e, ...a }) => /* @__PURE__ */ t(
973
973
  }
974
974
  );
975
975
  Va.displayName = "ProgressTrack";
976
- const Ia = ({ className: e, ...a }) => /* @__PURE__ */ t(
977
- x.Indicator,
976
+ const Sa = ({ className: e, ...a }) => /* @__PURE__ */ t(
977
+ v.Indicator,
978
978
  {
979
979
  className: r(
980
980
  "h-full rounded-full bg-primary transition-all duration-1000 ease-out-expo",
@@ -983,24 +983,24 @@ const Ia = ({ className: e, ...a }) => /* @__PURE__ */ t(
983
983
  ...a
984
984
  }
985
985
  );
986
- Ia.displayName = "ProgressIndicator";
987
- const Sa = ({ className: e, ...a }) => /* @__PURE__ */ t(
988
- x.Value,
986
+ Sa.displayName = "ProgressIndicator";
987
+ const Ia = ({ className: e, ...a }) => /* @__PURE__ */ t(
988
+ v.Value,
989
989
  {
990
990
  className: r("text-sm font-medium text-foreground", e),
991
991
  ...a
992
992
  }
993
993
  );
994
- Sa.displayName = "ProgressValue";
994
+ Ia.displayName = "ProgressValue";
995
995
  const La = ({ className: e, ...a }) => /* @__PURE__ */ t(
996
- x.Label,
996
+ v.Label,
997
997
  {
998
998
  className: r("text-sm font-medium text-foreground", e),
999
999
  ...a
1000
1000
  }
1001
1001
  );
1002
1002
  La.displayName = "ProgressLabel";
1003
- const _a = ({ className: e, orientation: a, ...o }) => /* @__PURE__ */ t(
1003
+ const Ha = ({ className: e, orientation: a, ...o }) => /* @__PURE__ */ t(
1004
1004
  B,
1005
1005
  {
1006
1006
  orientation: a,
@@ -1017,14 +1017,14 @@ const _a = ({ className: e, orientation: a, ...o }) => /* @__PURE__ */ t(
1017
1017
  ...o
1018
1018
  }
1019
1019
  );
1020
- _a.displayName = "ToggleGroupRoot";
1021
- const Ha = ({
1020
+ Ha.displayName = "ToggleGroupRoot";
1021
+ const _a = ({
1022
1022
  className: e,
1023
1023
  variant: a,
1024
1024
  size: o,
1025
1025
  ...s
1026
1026
  }) => /* @__PURE__ */ t(
1027
- z,
1027
+ R,
1028
1028
  {
1029
1029
  className: r(
1030
1030
  V({ variant: a, size: o }),
@@ -1035,14 +1035,66 @@ const Ha = ({
1035
1035
  ...s
1036
1036
  }
1037
1037
  );
1038
- Ha.displayName = "ToggleGroupItem";
1038
+ _a.displayName = "ToggleGroupItem";
1039
+ const Ba = u("rounded-lg bg-card text-card-foreground transition-colors", {
1040
+ variants: {
1041
+ variant: {
1042
+ default: "border shadow-sm",
1043
+ outline: "border",
1044
+ elevated: "shadow-md"
1045
+ }
1046
+ },
1047
+ defaultVariants: {
1048
+ variant: "default"
1049
+ }
1050
+ }), Fa = y.forwardRef(
1051
+ ({ className: e, variant: a, ...o }, s) => /* @__PURE__ */ t(
1052
+ "article",
1053
+ {
1054
+ ref: s,
1055
+ className: r(Ba({ variant: a }), e),
1056
+ ...o
1057
+ }
1058
+ )
1059
+ );
1060
+ Fa.displayName = "CardRoot";
1061
+ const ja = ({ className: e, ...a }) => /* @__PURE__ */ t(
1062
+ "div",
1063
+ {
1064
+ className: r(
1065
+ "overflow-hidden",
1066
+ "[&>img]:h-full [&>img]:w-full [&>img]:object-cover",
1067
+ e
1068
+ ),
1069
+ ...a
1070
+ }
1071
+ );
1072
+ ja.displayName = "CardMedia";
1073
+ const Ga = ({ className: e, ...a }) => /* @__PURE__ */ t("header", { className: r("flex flex-col gap-1 p-4", e), ...a });
1074
+ Ga.displayName = "CardHeader";
1075
+ const qa = ({ as: e = "h3", className: a, ...o }) => /* @__PURE__ */ t(
1076
+ e,
1077
+ {
1078
+ className: r("text-base font-semibold leading-tight", a),
1079
+ ...o
1080
+ }
1081
+ );
1082
+ qa.displayName = "CardTitle";
1083
+ const Za = ({ className: e, ...a }) => /* @__PURE__ */ t("p", { className: r("text-sm", e), ...a });
1084
+ Za.displayName = "CardDescription";
1085
+ const $a = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("p-4 pt-0", e), ...a });
1086
+ $a.displayName = "CardContent";
1087
+ const Ea = ({ className: e, ...a }) => /* @__PURE__ */ t("section", { className: r("p-4", e), ...a });
1088
+ Ea.displayName = "CardSection";
1089
+ const Oa = ({ className: e, ...a }) => /* @__PURE__ */ t("footer", { className: r("flex items-center p-4", e), ...a });
1090
+ Oa.displayName = "CardFooter";
1039
1091
  export {
1040
1092
  Ee as AccordionHeader,
1041
1093
  $e as AccordionItem,
1042
1094
  Je as AccordionPanel,
1043
1095
  Ze as AccordionRoot,
1044
1096
  Oe as AccordionTrigger,
1045
- nt as AlertDialog,
1097
+ bt as AlertDialog,
1046
1098
  O as AlertDialogBackdrop,
1047
1099
  X as AlertDialogClose,
1048
1100
  W as AlertDialogDescription,
@@ -1054,32 +1106,40 @@ export {
1054
1106
  J as AlertDialogViewport,
1055
1107
  ee as AvatarFallback,
1056
1108
  Y as AvatarImage,
1057
- R as AvatarRoot,
1109
+ z as AvatarRoot,
1058
1110
  ae as AvatarStack,
1059
- j as Button,
1111
+ F as Button,
1112
+ $a as CardContent,
1113
+ Za as CardDescription,
1114
+ Oa as CardFooter,
1115
+ Ga as CardHeader,
1116
+ ja as CardMedia,
1117
+ Fa as CardRoot,
1118
+ Ea as CardSection,
1119
+ qa as CardTitle,
1060
1120
  q as CollapsiblePanel,
1061
- F as CollapsibleRoot,
1121
+ j as CollapsibleRoot,
1062
1122
  G as CollapsibleTrigger,
1063
1123
  ke as DialogBackdrop,
1064
- Ce as DialogClose,
1065
- Ae as DialogDescription,
1124
+ Ae as DialogClose,
1125
+ Te as DialogDescription,
1066
1126
  Me as DialogFooter,
1067
- ze as DialogHeader,
1127
+ Re as DialogHeader,
1068
1128
  De as DialogPopup,
1069
1129
  we as DialogPortal,
1070
1130
  xe as DialogRoot,
1071
- Te as DialogTitle,
1131
+ Ce as DialogTitle,
1072
1132
  ve as DialogTrigger,
1073
- Se as DrawerBackdrop,
1074
- je as DrawerClose,
1133
+ Ie as DrawerBackdrop,
1134
+ Fe as DrawerClose,
1075
1135
  Ge as DrawerContent,
1076
1136
  Be as DrawerDescription,
1077
1137
  qe as DrawerFooter,
1078
- Fe as DrawerHeader,
1079
- _e as DrawerPopup,
1080
- Ie as DrawerPortal,
1081
- Re as DrawerRoot,
1082
- He as DrawerTitle,
1138
+ je as DrawerHeader,
1139
+ He as DrawerPopup,
1140
+ Se as DrawerPortal,
1141
+ ze as DrawerRoot,
1142
+ _e as DrawerTitle,
1083
1143
  Ve as DrawerTrigger,
1084
1144
  oa as MenuArrow,
1085
1145
  ma as MenuCheckboxItem,
@@ -1097,7 +1157,7 @@ export {
1097
1157
  ba as MenuRadioItemLabel,
1098
1158
  Ye as MenuRoot,
1099
1159
  na as MenuSeparator,
1100
- ha as MenuSubmenuRoot,
1160
+ Na as MenuSubmenuRoot,
1101
1161
  ya as MenuSubmenuTrigger,
1102
1162
  ea as MenuTrigger,
1103
1163
  Ue as MeterIndicator,
@@ -1107,20 +1167,20 @@ export {
1107
1167
  We as MeterValue,
1108
1168
  Da as PopoverArrow,
1109
1169
  wa as PopoverBackdrop,
1110
- za as PopoverClose,
1111
- Ca as PopoverDescription,
1170
+ Ra as PopoverClose,
1171
+ Aa as PopoverDescription,
1112
1172
  Pa as PopoverPopup,
1113
1173
  va as PopoverPortal,
1114
1174
  ka as PopoverPositioner,
1115
- Na as PopoverRoot,
1116
- Aa as PopoverTitle,
1175
+ ha as PopoverRoot,
1176
+ Ta as PopoverTitle,
1117
1177
  xa as PopoverTrigger,
1118
1178
  Ma as PopoverViewport,
1119
- Ia as ProgressIndicator,
1179
+ Sa as ProgressIndicator,
1120
1180
  La as ProgressLabel,
1121
- Ra as ProgressRoot,
1181
+ za as ProgressRoot,
1122
1182
  Va as ProgressTrack,
1123
- Sa as ProgressValue,
1183
+ Ia as ProgressValue,
1124
1184
  oe as ScrollAreaContent,
1125
1185
  ne as ScrollAreaCorner,
1126
1186
  te as ScrollAreaRoot,
@@ -1130,12 +1190,12 @@ export {
1130
1190
  ie as Separator,
1131
1191
  de as SwitchRoot,
1132
1192
  ce as SwitchThumb,
1133
- he as TabsIndicator,
1193
+ Ne as TabsIndicator,
1134
1194
  ge as TabsList,
1135
- Ne as TabsPanel,
1195
+ he as TabsPanel,
1136
1196
  me as TabsRoot,
1137
1197
  be as TabsTab,
1138
1198
  ue as Toggle,
1139
- Ha as ToggleGroupItem,
1140
- _a as ToggleGroupRoot
1199
+ _a as ToggleGroupItem,
1200
+ Ha as ToggleGroupRoot
1141
1201
  };
@@ -20,6 +20,8 @@
20
20
  --color-input: var(--input);
21
21
  --color-border: var(--border);
22
22
  --color-ring: var(--ring);
23
+ --color-card: var(--card);
24
+ --color-card-foreground: var(--card-foreground);
23
25
  }
24
26
 
25
27
  :root {
@@ -38,6 +40,8 @@
38
40
  --border: oklch(0.922 0 0);
39
41
  --input: oklch(0.922 0 0);
40
42
  --ring: oklch(0.708 0 0);
43
+ --card: oklch(1 0 0);
44
+ --card-foreground: oklch(0.145 0 0);
41
45
  }
42
46
 
43
47
  .dark {
@@ -55,6 +59,8 @@
55
59
  --border: oklch(1 0 0 / 10%);
56
60
  --input: oklch(1 0 0 / 15%);
57
61
  --ring: oklch(0.556 0 0);
62
+ --card: oklch(0.205 0 0);
63
+ --card-foreground: oklch(0.985 0 0);
58
64
  }
59
65
 
60
66
  @media (prefers-color-scheme: dark) {
@@ -73,6 +79,8 @@
73
79
  --input: oklch(1 0 0 / 15%);
74
80
  --border: oklch(1 0 0 / 10%);
75
81
  --ring: oklch(0.556 0 0);
82
+ --card: oklch(0.205 0 0);
83
+ --card-foreground: oklch(0.985 0 0);
76
84
  }
77
85
  }
78
86
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lglab/compose-ui",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "description": "A collection of components built with Base UI & Tailwind CSS",
5
5
  "author": "LGLab",
6
6
  "license": "MIT",