@stoa-dev/kit 1.1.0 → 1.1.1

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.
Files changed (37) hide show
  1. package/dist/shell/NativeSelect/index.js +5 -5
  2. package/dist/shell/NativeSelect/index.js.map +1 -1
  3. package/dist/types/ui/button/index.d.ts +1 -1
  4. package/dist/types/ui/card/index.d.ts +12 -4
  5. package/dist/types/ui/card/index.d.ts.map +1 -1
  6. package/dist/types/ui/index.d.ts +2 -0
  7. package/dist/types/ui/index.d.ts.map +1 -1
  8. package/dist/types/ui/input/index.d.ts +13 -3
  9. package/dist/types/ui/input/index.d.ts.map +1 -1
  10. package/dist/types/ui/marked-text/index.d.ts +9 -0
  11. package/dist/types/ui/marked-text/index.d.ts.map +1 -0
  12. package/dist/types/ui/pill/index.d.ts +8 -0
  13. package/dist/types/ui/pill/index.d.ts.map +1 -0
  14. package/dist/types/ui/radio-group/index.d.ts.map +1 -1
  15. package/dist/ui/card/index.js +109 -52
  16. package/dist/ui/card/index.js.map +1 -1
  17. package/dist/ui/index.js +74 -70
  18. package/dist/ui/index.js.map +1 -1
  19. package/dist/ui/input/index.js +68 -10
  20. package/dist/ui/input/index.js.map +1 -1
  21. package/dist/ui/input-group/index.js +9 -9
  22. package/dist/ui/input-group/index.js.map +1 -1
  23. package/dist/ui/marked-text/index.js +28 -0
  24. package/dist/ui/marked-text/index.js.map +1 -0
  25. package/dist/ui/pill/index.js +33 -0
  26. package/dist/ui/pill/index.js.map +1 -0
  27. package/dist/ui/radio-group/index.js +17 -15
  28. package/dist/ui/radio-group/index.js.map +1 -1
  29. package/dist/ui/select/index.js +10 -10
  30. package/dist/ui/select/index.js.map +1 -1
  31. package/dist/ui/switch/index.js +10 -10
  32. package/dist/ui/switch/index.js.map +1 -1
  33. package/dist/ui/textarea/index.js +4 -4
  34. package/dist/ui/textarea/index.js.map +1 -1
  35. package/package.json +1 -1
  36. package/styles/instrument.css +17 -17
  37. package/styles/theme.css +134 -1
@@ -1,19 +1,19 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
2
  import { cn as t } from "../../utils/cn.js";
3
3
  function l({
4
- className: o,
4
+ className: e,
5
5
  children: r,
6
- ...e
6
+ ...o
7
7
  }) {
8
8
  return /* @__PURE__ */ i(
9
9
  "select",
10
10
  {
11
11
  "data-slot": "native-select",
12
12
  className: t(
13
- "h-12 w-full rounded-lg border border-input bg-background/70 px-3 text-sm outline-none transition-colors focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-background/40",
14
- o
13
+ "h-12 w-full rounded-lg border border-input bg-transparent px-3 text-sm outline-none transition-colors focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50",
14
+ e
15
15
  ),
16
- ...e,
16
+ ...o,
17
17
  children: r
18
18
  }
19
19
  );
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/shell/NativeSelect/index.tsx"],"sourcesContent":["import { cn } from '../../utils/cn'\n\nexport type NativeSelectProps = React.SelectHTMLAttributes<HTMLSelectElement>\n\nexport function NativeSelect({\n\tclassName,\n\tchildren,\n\t...props\n}: NativeSelectProps) {\n\treturn (\n\t\t<select\n\t\t\tdata-slot='native-select'\n\t\t\tclassName={cn(\n\t\t\t\t'h-12 w-full rounded-lg border border-input bg-background/70 px-3 text-sm outline-none transition-colors focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-background/40',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t>\n\t\t\t{children}\n\t\t</select>\n\t)\n}\n"],"names":["NativeSelect","className","children","props","jsx","cn"],"mappings":";;AAIO,SAASA,EAAa;AAAA,EAC5B,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACJ,GAAsB;AACrB,SACC,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,aAAU;AAAA,MACV,WAAWC;AAAA,QACV;AAAA,QACAJ;AAAA,MAAA;AAAA,MAEA,GAAGE;AAAA,MAEH,UAAAD;AAAA,IAAA;AAAA,EAAA;AAGJ;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/shell/NativeSelect/index.tsx"],"sourcesContent":["import { cn } from '../../utils/cn'\n\nexport type NativeSelectProps = React.SelectHTMLAttributes<HTMLSelectElement>\n\nexport function NativeSelect({\n\tclassName,\n\tchildren,\n\t...props\n}: NativeSelectProps) {\n\treturn (\n\t\t<select\n\t\t\tdata-slot='native-select'\n\t\t\tclassName={cn(\n\t\t\t\t'h-12 w-full rounded-lg border border-input bg-transparent px-3 text-sm outline-none transition-colors focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t>\n\t\t\t{children}\n\t\t</select>\n\t)\n}\n"],"names":["NativeSelect","className","children","props","jsx","cn"],"mappings":";;AAIO,SAASA,EAAa;AAAA,EAC5B,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACJ,GAAsB;AACrB,SACC,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,aAAU;AAAA,MACV,WAAWC;AAAA,QACV;AAAA,QACAJ;AAAA,MAAA;AAAA,MAEA,GAAGE;AAAA,MAEH,UAAAD;AAAA,IAAA;AAAA,EAAA;AAGJ;"}
@@ -2,7 +2,7 @@ import { type VariantProps } from 'class-variance-authority';
2
2
  import type * as React from 'react';
3
3
  declare const buttonVariants: (props?: ({
4
4
  variant?: "link" | "default" | "outline" | "secondary" | "ghost" | "destructive" | null | undefined;
5
- size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
5
+ size?: "default" | "icon" | "xs" | "sm" | "lg" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
6
6
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
7
  declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
8
8
  asChild?: boolean;
@@ -1,12 +1,20 @@
1
- import type * as React from 'react';
2
- declare function Card({ className, size, ...props }: React.ComponentProps<'div'> & {
1
+ import * as React from 'react';
2
+ type CardProps = React.ComponentProps<'div'> & {
3
3
  size?: 'default' | 'sm';
4
- }): React.JSX.Element;
4
+ clickable?: boolean;
5
+ /** Primary action of a clickable card. */
6
+ action?: () => void;
7
+ /** Decorative affordance for the primary action. */
8
+ actionIcon?: React.ReactNode;
9
+ /** On hover-capable devices, also reveal a hover-only icon during keyboard focus. */
10
+ actionIconVisibility?: 'hoverOnly' | 'always';
11
+ };
12
+ declare function Card({ className, size, clickable, action, actionIcon, actionIconVisibility, children, id, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, onClick, ...props }: CardProps): React.JSX.Element;
5
13
  declare function CardHeader({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
6
14
  declare function CardTitle({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
7
15
  declare function CardDescription({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
8
16
  declare function CardAction({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
9
17
  declare function CardContent({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
10
18
  declare function CardFooter({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
11
- export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, };
19
+ export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, };
12
20
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/card/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;AAInC,iBAAS,IA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'./input-group';
12
12
  export * from './label';
13
+ export * from './marked-text';
14
+ export * from './pill';
13
15
  export * from './popover';
14
16
  export * from './radio-group';
15
17
  export * from './scroll-area';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,QAAQ,CAAA;AACtB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,uBAAuB,CAAA;AACrC,cAAc,UAAU,CAAA;AACxB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,QAAQ,CAAA;AACtB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,uBAAuB,CAAA;AACrC,cAAc,UAAU,CAAA;AACxB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,QAAQ,CAAA;AACtB,cAAc,WAAW,CAAA;AACzB,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA"}
@@ -1,4 +1,14 @@
1
- import type * as React from 'react';
2
- declare function Input({ className, type, ...props }: React.ComponentProps<'input'>): React.JSX.Element;
3
- export { Input };
1
+ import { type ComponentProps, type ReactNode } from 'react';
2
+ type InputProps = ComponentProps<'input'> & {
3
+ /** Accessible field name shown inside the empty input until focus. */
4
+ label?: string;
5
+ /** Decorative icon shown inside the right edge of the input. */
6
+ icon?: ReactNode;
7
+ /** Transition used for hover and focus. */
8
+ transitionStyle?: 'default' | 'fancy';
9
+ /** Suggested values offered by the native input picker. */
10
+ suggestions?: readonly string[];
11
+ };
12
+ declare function Input({ className, type, label, icon, transitionStyle, suggestions, list, placeholder, 'aria-label': ariaLabel, onFocus, onBlur, ...props }: InputProps): import("react").JSX.Element;
13
+ export { Input, type InputProps };
4
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/input/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;AAInC,iBAAS,KAAK,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,qBAY1E;AAED,OAAO,EAAE,KAAK,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/input/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,cAAc,EACnB,KAAK,SAAS,EAKd,MAAM,OAAO,CAAA;AAId,KAAK,UAAU,GAAG,cAAc,CAAC,OAAO,CAAC,GAAG;IAC3C,sEAAsE;IACtE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gEAAgE;IAChE,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,2CAA2C;IAC3C,eAAe,CAAC,EAAE,SAAS,GAAG,OAAO,CAAA;IACrC,2DAA2D;IAC3D,WAAW,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;CAC/B,CAAA;AAED,iBAAS,KAAK,CAAC,EACd,SAAS,EACT,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,eAA2B,EAC3B,WAAW,EACX,IAAI,EACJ,WAAW,EACX,YAAY,EAAE,SAAS,EACvB,OAAO,EACP,MAAM,EACN,GAAG,KAAK,EACR,EAAE,UAAU,+BAiGZ;AAED,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,CAAA"}
@@ -0,0 +1,9 @@
1
+ import type { ComponentProps } from 'react';
2
+ type MarkedTextProps = ComponentProps<'div'> & {
3
+ /** CSS color of the leading border. Defaults to the theme accent. */
4
+ color?: string;
5
+ asChild?: boolean;
6
+ };
7
+ declare function MarkedText({ asChild, className, color, style, ...props }: MarkedTextProps): import("react").JSX.Element;
8
+ export { MarkedText, type MarkedTextProps };
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/marked-text/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAI3C,KAAK,eAAe,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IAC9C,qEAAqE;IACrE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,OAAO,CAAA;CACjB,CAAA;AAED,iBAAS,UAAU,CAAC,EACnB,OAAe,EACf,SAAS,EACT,KAAK,EACL,KAAK,EACL,GAAG,KAAK,EACR,EAAE,eAAe,+BAiBjB;AAED,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,CAAA"}
@@ -0,0 +1,8 @@
1
+ import type { ComponentProps } from 'react';
2
+ type PillProps = ComponentProps<'span'> & {
3
+ variant?: 'default' | 'accent' | 'outline';
4
+ asChild?: boolean;
5
+ };
6
+ declare function Pill({ asChild, className, variant, ...props }: PillProps): import("react").JSX.Element;
7
+ export { Pill, type PillProps };
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/pill/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAI3C,KAAK,SAAS,GAAG,cAAc,CAAC,MAAM,CAAC,GAAG;IACzC,OAAO,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAA;IAC1C,OAAO,CAAC,EAAE,OAAO,CAAA;CACjB,CAAA;AAQD,iBAAS,IAAI,CAAC,EACb,OAAe,EACf,SAAS,EACT,OAAmB,EACnB,GAAG,KAAK,EACR,EAAE,SAAS,+BAcX;AAED,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/radio-group/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAC5D,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;AAInC,iBAAS,UAAU,CAAC,EACnB,SAAS,EACT,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,mBAAmB,CAAC,IAAI,CAAC,qBAQvD;AAED,iBAAS,cAAc,CAAC,EACvB,SAAS,EACT,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,mBAAmB,CAAC,IAAI,CAAC,qBAkBvD;AAED,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/radio-group/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAC5D,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;AAInC,iBAAS,UAAU,CAAC,EACnB,SAAS,EACT,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,mBAAmB,CAAC,IAAI,CAAC,qBAQvD;AAED,iBAAS,cAAc,CAAC,EACvB,SAAS,EACT,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,mBAAmB,CAAC,IAAI,CAAC,qBAoBvD;AAED,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,CAAA"}
@@ -1,102 +1,159 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { cn as d } from "../../utils/cn.js";
3
- function i({
4
- className: a,
5
- size: t = "default",
6
- ...e
1
+ import { jsx as e, jsxs as w, Fragment as N } from "react/jsx-runtime";
2
+ import * as j from "react";
3
+ import { cn as r } from "../../utils/cn.js";
4
+ const T = 'a[href], button, input, select, textarea, summary, label, [contenteditable]:not([contenteditable="false"]), [role="button"], [role="link"], [tabindex]';
5
+ function I({
6
+ className: t,
7
+ size: a = "default",
8
+ clickable: s = !1,
9
+ action: f,
10
+ actionIcon: i,
11
+ actionIconVisibility: h = "hoverOnly",
12
+ children: g,
13
+ id: v,
14
+ "aria-label": l,
15
+ "aria-labelledby": b,
16
+ onClick: c,
17
+ ...z
7
18
  }) {
8
- return /* @__PURE__ */ r(
9
- "div",
10
- {
11
- "data-slot": "card",
12
- "data-size": t,
13
- className: d(
14
- "group/card flex flex-col gap-4 overflow-hidden rounded-xl border-0 bg-card/95 py-5 shadow-(--surface-shadow) text-sm text-card-foreground has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",
15
- a
16
- ),
17
- ...e
18
- }
19
+ const y = j.useId(), d = s && !!(f || c), x = v ?? (d ? y : void 0), o = s && i != null && i !== !1;
20
+ function C(u) {
21
+ const { target: p, currentTarget: m } = u;
22
+ if (!(p instanceof Element) || p.closest('[data-slot="card"]') !== m)
23
+ return;
24
+ const n = p.closest(T);
25
+ n && n !== m && m.contains(n) && n.getAttribute("data-slot") !== "card-trigger" || (c?.(u), u.defaultPrevented || f?.());
26
+ }
27
+ return (
28
+ // biome-ignore lint/a11y/useKeyWithClickEvents lint/a11y/noStaticElementInteractions: The native card trigger handles keyboard activation. The card delegates pointer clicks on its surface.
29
+ /* @__PURE__ */ e(
30
+ "div",
31
+ {
32
+ id: x,
33
+ "data-slot": "card",
34
+ "data-size": a,
35
+ "data-clickable": s ? "true" : void 0,
36
+ ...!d && {
37
+ "aria-label": l,
38
+ "aria-labelledby": b
39
+ },
40
+ onClick: d ? C : c,
41
+ className: r(
42
+ "group/card flex flex-col gap-4 overflow-hidden rounded-xl border-0 bg-card/95 py-5 shadow-(--surface-shadow) text-sm text-card-foreground has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",
43
+ s && "relative",
44
+ o ? "pe-9" : d && "pe-3",
45
+ t
46
+ ),
47
+ ...z,
48
+ children: d || o ? /* @__PURE__ */ w(N, { children: [
49
+ g,
50
+ d && /* @__PURE__ */ e(
51
+ "button",
52
+ {
53
+ type: "button",
54
+ "data-slot": "card-trigger",
55
+ "aria-label": l,
56
+ "aria-labelledby": b ?? (l ? void 0 : x),
57
+ className: r(
58
+ "absolute inset-y-0 end-0 outline-none",
59
+ o ? "w-9" : "w-3"
60
+ )
61
+ }
62
+ ),
63
+ o && /* @__PURE__ */ e(
64
+ "span",
65
+ {
66
+ "aria-hidden": "true",
67
+ "data-slot": "card-action-icon",
68
+ "data-visibility": h,
69
+ className: "pointer-events-none absolute end-4 top-1/2 grid size-4 -translate-y-1/2 place-items-center text-muted-foreground [&>svg]:size-full",
70
+ children: i
71
+ }
72
+ )
73
+ ] }) : g
74
+ }
75
+ )
19
76
  );
20
77
  }
21
- function c({ className: a, ...t }) {
22
- return /* @__PURE__ */ r(
78
+ function _({ className: t, ...a }) {
79
+ return /* @__PURE__ */ e(
23
80
  "div",
24
81
  {
25
82
  "data-slot": "card-header",
26
- className: d(
83
+ className: r(
27
84
  "group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-5 sm:px-6 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-5 group-data-[size=sm]/card:[.border-b]:pb-4",
28
- a
85
+ t
29
86
  ),
30
- ...t
87
+ ...a
31
88
  }
32
89
  );
33
90
  }
34
- function n({ className: a, ...t }) {
35
- return /* @__PURE__ */ r(
91
+ function D({ className: t, ...a }) {
92
+ return /* @__PURE__ */ e(
36
93
  "div",
37
94
  {
38
95
  "data-slot": "card-title",
39
- className: d(
96
+ className: r(
40
97
  "font-heading text-lg leading-snug font-semibold tracking-tight group-data-[size=sm]/card:text-sm",
41
- a
98
+ t
42
99
  ),
43
- ...t
100
+ ...a
44
101
  }
45
102
  );
46
103
  }
47
- function l({ className: a, ...t }) {
48
- return /* @__PURE__ */ r(
104
+ function E({ className: t, ...a }) {
105
+ return /* @__PURE__ */ e(
49
106
  "div",
50
107
  {
51
108
  "data-slot": "card-description",
52
- className: d("text-sm text-muted-foreground", a),
53
- ...t
109
+ className: r("text-sm text-muted-foreground", t),
110
+ ...a
54
111
  }
55
112
  );
56
113
  }
57
- function u({ className: a, ...t }) {
58
- return /* @__PURE__ */ r(
114
+ function H({ className: t, ...a }) {
115
+ return /* @__PURE__ */ e(
59
116
  "div",
60
117
  {
61
118
  "data-slot": "card-action",
62
- className: d(
119
+ className: r(
63
120
  "col-start-2 row-span-2 row-start-1 self-start justify-self-end",
64
- a
121
+ t
65
122
  ),
66
- ...t
123
+ ...a
67
124
  }
68
125
  );
69
126
  }
70
- function p({ className: a, ...t }) {
71
- return /* @__PURE__ */ r(
127
+ function O({ className: t, ...a }) {
128
+ return /* @__PURE__ */ e(
72
129
  "div",
73
130
  {
74
131
  "data-slot": "card-content",
75
- className: d("px-5 sm:px-6 group-data-[size=sm]/card:px-3", a),
76
- ...t
132
+ className: r("px-5 sm:px-6 group-data-[size=sm]/card:px-3", t),
133
+ ...a
77
134
  }
78
135
  );
79
136
  }
80
- function m({ className: a, ...t }) {
81
- return /* @__PURE__ */ r(
137
+ function P({ className: t, ...a }) {
138
+ return /* @__PURE__ */ e(
82
139
  "div",
83
140
  {
84
141
  "data-slot": "card-footer",
85
- className: d(
142
+ className: r(
86
143
  "flex items-center rounded-b-xl mt-1 border-t bg-transparent p-5 pt-6 sm:px-6 group-data-[size=sm]/card:p-3 group-data-[size=sm]/card:pt-4",
87
- a
144
+ t
88
145
  ),
89
- ...t
146
+ ...a
90
147
  }
91
148
  );
92
149
  }
93
150
  export {
94
- i as Card,
95
- u as CardAction,
96
- p as CardContent,
97
- l as CardDescription,
98
- m as CardFooter,
99
- c as CardHeader,
100
- n as CardTitle
151
+ I as Card,
152
+ H as CardAction,
153
+ O as CardContent,
154
+ E as CardDescription,
155
+ P as CardFooter,
156
+ _ as CardHeader,
157
+ D as CardTitle
101
158
  };
102
159
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/ui/card/index.tsx"],"sourcesContent":["import type * as React from 'react'\n\nimport { cn } from '../../utils/cn'\n\nfunction Card({\n\tclassName,\n\tsize = 'default',\n\t...props\n}: React.ComponentProps<'div'> & { size?: 'default' | 'sm' }) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot='card'\n\t\t\tdata-size={size}\n\t\t\tclassName={cn(\n\t\t\t\t'group/card flex flex-col gap-4 overflow-hidden rounded-xl border-0 bg-card/95 py-5 shadow-(--surface-shadow) text-sm text-card-foreground has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n\nfunction CardHeader({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot='card-header'\n\t\t\tclassName={cn(\n\t\t\t\t'group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-5 sm:px-6 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-5 group-data-[size=sm]/card:[.border-b]:pb-4',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n\nfunction CardTitle({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot='card-title'\n\t\t\tclassName={cn(\n\t\t\t\t'font-heading text-lg leading-snug font-semibold tracking-tight group-data-[size=sm]/card:text-sm',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n\nfunction CardDescription({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot='card-description'\n\t\t\tclassName={cn('text-sm text-muted-foreground', className)}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n\nfunction CardAction({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot='card-action'\n\t\t\tclassName={cn(\n\t\t\t\t'col-start-2 row-span-2 row-start-1 self-start justify-self-end',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n\nfunction CardContent({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot='card-content'\n\t\t\tclassName={cn('px-5 sm:px-6 group-data-[size=sm]/card:px-3', className)}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n\nfunction CardFooter({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot='card-footer'\n\t\t\tclassName={cn(\n\t\t\t\t'flex items-center rounded-b-xl mt-1 border-t bg-transparent p-5 pt-6 sm:px-6 group-data-[size=sm]/card:p-3 group-data-[size=sm]/card:pt-4',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n\nexport {\n\tCard,\n\tCardAction,\n\tCardContent,\n\tCardDescription,\n\tCardFooter,\n\tCardHeader,\n\tCardTitle,\n}\n"],"names":["Card","className","size","props","jsx","cn","CardHeader","CardTitle","CardDescription","CardAction","CardContent","CardFooter"],"mappings":";;AAIA,SAASA,EAAK;AAAA,EACb,WAAAC;AAAA,EACA,MAAAC,IAAO;AAAA,EACP,GAAGC;AACJ,GAA8D;AAC7D,SACC,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,aAAU;AAAA,MACV,aAAWF;AAAA,MACX,WAAWG;AAAA,QACV;AAAA,QACAJ;AAAA,MAAA;AAAA,MAEA,GAAGE;AAAA,IAAA;AAAA,EAAA;AAGP;AAEA,SAASG,EAAW,EAAE,WAAAL,GAAW,GAAGE,KAAsC;AACzE,SACC,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,aAAU;AAAA,MACV,WAAWC;AAAA,QACV;AAAA,QACAJ;AAAA,MAAA;AAAA,MAEA,GAAGE;AAAA,IAAA;AAAA,EAAA;AAGP;AAEA,SAASI,EAAU,EAAE,WAAAN,GAAW,GAAGE,KAAsC;AACxE,SACC,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,aAAU;AAAA,MACV,WAAWC;AAAA,QACV;AAAA,QACAJ;AAAA,MAAA;AAAA,MAEA,GAAGE;AAAA,IAAA;AAAA,EAAA;AAGP;AAEA,SAASK,EAAgB,EAAE,WAAAP,GAAW,GAAGE,KAAsC;AAC9E,SACC,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,aAAU;AAAA,MACV,WAAWC,EAAG,iCAAiCJ,CAAS;AAAA,MACvD,GAAGE;AAAA,IAAA;AAAA,EAAA;AAGP;AAEA,SAASM,EAAW,EAAE,WAAAR,GAAW,GAAGE,KAAsC;AACzE,SACC,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,aAAU;AAAA,MACV,WAAWC;AAAA,QACV;AAAA,QACAJ;AAAA,MAAA;AAAA,MAEA,GAAGE;AAAA,IAAA;AAAA,EAAA;AAGP;AAEA,SAASO,EAAY,EAAE,WAAAT,GAAW,GAAGE,KAAsC;AAC1E,SACC,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,aAAU;AAAA,MACV,WAAWC,EAAG,+CAA+CJ,CAAS;AAAA,MACrE,GAAGE;AAAA,IAAA;AAAA,EAAA;AAGP;AAEA,SAASQ,EAAW,EAAE,WAAAV,GAAW,GAAGE,KAAsC;AACzE,SACC,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,aAAU;AAAA,MACV,WAAWC;AAAA,QACV;AAAA,QACAJ;AAAA,MAAA;AAAA,MAEA,GAAGE;AAAA,IAAA;AAAA,EAAA;AAGP;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/ui/card/index.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { cn } from '../../utils/cn'\n\ntype CardProps = React.ComponentProps<'div'> & {\n\tsize?: 'default' | 'sm'\n\tclickable?: boolean\n\t/** Primary action of a clickable card. */\n\taction?: () => void\n\t/** Decorative affordance for the primary action. */\n\tactionIcon?: React.ReactNode\n\t/** On hover-capable devices, also reveal a hover-only icon during keyboard focus. */\n\tactionIconVisibility?: 'hoverOnly' | 'always'\n}\n\nconst interactiveCardContent =\n\t'a[href], button, input, select, textarea, summary, label, [contenteditable]:not([contenteditable=\"false\"]), [role=\"button\"], [role=\"link\"], [tabindex]'\n\nfunction Card({\n\tclassName,\n\tsize = 'default',\n\tclickable = false,\n\taction,\n\tactionIcon,\n\tactionIconVisibility = 'hoverOnly',\n\tchildren,\n\tid,\n\t'aria-label': ariaLabel,\n\t'aria-labelledby': ariaLabelledBy,\n\tonClick,\n\t...props\n}: CardProps) {\n\tconst generatedId = React.useId()\n\tconst hasTrigger = clickable && Boolean(action || onClick)\n\tconst cardId = id ?? (hasTrigger ? generatedId : undefined)\n\tconst hasIcon = clickable && actionIcon != null && actionIcon !== false\n\n\tfunction handleClick(event: React.MouseEvent<HTMLDivElement>) {\n\t\tconst { target, currentTarget } = event\n\t\tif (\n\t\t\t!(target instanceof Element) ||\n\t\t\ttarget.closest('[data-slot=\"card\"]') !== currentTarget\n\t\t)\n\t\t\treturn\n\n\t\tconst control = target.closest(interactiveCardContent)\n\t\tif (\n\t\t\tcontrol &&\n\t\t\tcontrol !== currentTarget &&\n\t\t\tcurrentTarget.contains(control) &&\n\t\t\tcontrol.getAttribute('data-slot') !== 'card-trigger'\n\t\t)\n\t\t\treturn\n\n\t\tonClick?.(event)\n\t\tif (!event.defaultPrevented) action?.()\n\t}\n\n\treturn (\n\t\t// biome-ignore lint/a11y/useKeyWithClickEvents lint/a11y/noStaticElementInteractions: The native card trigger handles keyboard activation. The card delegates pointer clicks on its surface.\n\t\t<div\n\t\t\tid={cardId}\n\t\t\tdata-slot='card'\n\t\t\tdata-size={size}\n\t\t\tdata-clickable={clickable ? 'true' : undefined}\n\t\t\t{...(!hasTrigger && {\n\t\t\t\t'aria-label': ariaLabel,\n\t\t\t\t'aria-labelledby': ariaLabelledBy,\n\t\t\t})}\n\t\t\tonClick={hasTrigger ? handleClick : onClick}\n\t\t\tclassName={cn(\n\t\t\t\t'group/card flex flex-col gap-4 overflow-hidden rounded-xl border-0 bg-card/95 py-5 shadow-(--surface-shadow) text-sm text-card-foreground has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl',\n\t\t\t\tclickable && 'relative',\n\t\t\t\thasIcon ? 'pe-9' : hasTrigger && 'pe-3',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t>\n\t\t\t{hasTrigger || hasIcon ? (\n\t\t\t\t<>\n\t\t\t\t\t{children}\n\t\t\t\t\t{hasTrigger && (\n\t\t\t\t\t\t<button\n\t\t\t\t\t\t\ttype='button'\n\t\t\t\t\t\t\tdata-slot='card-trigger'\n\t\t\t\t\t\t\taria-label={ariaLabel}\n\t\t\t\t\t\t\taria-labelledby={\n\t\t\t\t\t\t\t\tariaLabelledBy ?? (ariaLabel ? undefined : cardId)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t\t'absolute inset-y-0 end-0 outline-none',\n\t\t\t\t\t\t\t\thasIcon ? 'w-9' : 'w-3',\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\t\t\t\t\t{hasIcon && (\n\t\t\t\t\t\t<span\n\t\t\t\t\t\t\taria-hidden='true'\n\t\t\t\t\t\t\tdata-slot='card-action-icon'\n\t\t\t\t\t\t\tdata-visibility={actionIconVisibility}\n\t\t\t\t\t\t\tclassName='pointer-events-none absolute end-4 top-1/2 grid size-4 -translate-y-1/2 place-items-center text-muted-foreground [&>svg]:size-full'\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{actionIcon}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t)}\n\t\t\t\t</>\n\t\t\t) : (\n\t\t\t\tchildren\n\t\t\t)}\n\t\t</div>\n\t)\n}\n\nfunction CardHeader({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot='card-header'\n\t\t\tclassName={cn(\n\t\t\t\t'group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-5 sm:px-6 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-5 group-data-[size=sm]/card:[.border-b]:pb-4',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n\nfunction CardTitle({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot='card-title'\n\t\t\tclassName={cn(\n\t\t\t\t'font-heading text-lg leading-snug font-semibold tracking-tight group-data-[size=sm]/card:text-sm',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n\nfunction CardDescription({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot='card-description'\n\t\t\tclassName={cn('text-sm text-muted-foreground', className)}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n\nfunction CardAction({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot='card-action'\n\t\t\tclassName={cn(\n\t\t\t\t'col-start-2 row-span-2 row-start-1 self-start justify-self-end',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n\nfunction CardContent({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot='card-content'\n\t\t\tclassName={cn('px-5 sm:px-6 group-data-[size=sm]/card:px-3', className)}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n\nfunction CardFooter({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot='card-footer'\n\t\t\tclassName={cn(\n\t\t\t\t'flex items-center rounded-b-xl mt-1 border-t bg-transparent p-5 pt-6 sm:px-6 group-data-[size=sm]/card:p-3 group-data-[size=sm]/card:pt-4',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n\nexport {\n\tCard,\n\tCardAction,\n\tCardContent,\n\tCardDescription,\n\tCardFooter,\n\tCardHeader,\n\ttype CardProps,\n\tCardTitle,\n}\n"],"names":["interactiveCardContent","Card","className","size","clickable","action","actionIcon","actionIconVisibility","children","id","ariaLabel","ariaLabelledBy","onClick","props","generatedId","React","hasTrigger","cardId","hasIcon","handleClick","event","target","currentTarget","control","jsx","cn","jsxs","Fragment","CardHeader","CardTitle","CardDescription","CardAction","CardContent","CardFooter"],"mappings":";;;AAeA,MAAMA,IACL;AAED,SAASC,EAAK;AAAA,EACb,WAAAC;AAAA,EACA,MAAAC,IAAO;AAAA,EACP,WAAAC,IAAY;AAAA,EACZ,QAAAC;AAAA,EACA,YAAAC;AAAA,EACA,sBAAAC,IAAuB;AAAA,EACvB,UAAAC;AAAA,EACA,IAAAC;AAAA,EACA,cAAcC;AAAA,EACd,mBAAmBC;AAAA,EACnB,SAAAC;AAAA,EACA,GAAGC;AACJ,GAAc;AACb,QAAMC,IAAcC,EAAM,MAAA,GACpBC,IAAaZ,KAAa,GAAQC,KAAUO,IAC5CK,IAASR,MAAOO,IAAaF,IAAc,SAC3CI,IAAUd,KAAaE,KAAc,QAAQA,MAAe;AAElE,WAASa,EAAYC,GAAyC;AAC7D,UAAM,EAAE,QAAAC,GAAQ,eAAAC,EAAA,IAAkBF;AAClC,QACC,EAAEC,aAAkB,YACpBA,EAAO,QAAQ,oBAAoB,MAAMC;AAEzC;AAED,UAAMC,IAAUF,EAAO,QAAQrB,CAAsB;AACrD,IACCuB,KACAA,MAAYD,KACZA,EAAc,SAASC,CAAO,KAC9BA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A,EAAA;AAGP;AAEA,SAASgB,EAAU,EAAE,WAAA3B,GAAW,GAAGW,KAAsC;AACxE,SACC,gBAAAW;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,aAAU;AAAA,MACV,WAAWC;AAAA,QACV;AAAA,QACAvB;AAAA,MAAA;AAAA,MAEA,GAAGW;AAAA,IAAA;AAAA,EAAA;AAGP;AAEA,SAASiB,EAAgB,EAAE,WAAA5B,GAAW,GAAGW,KAAsC;AAC9E,SACC,gBAAAW;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,aAAU;AAAA,MACV,WAAWC,EAAG,iCAAiCvB,CAAS;AAAA,MACvD,GAAGW;AAAA,IAAA;AAAA,EAAA;AAGP;AAEA,SAASkB,EAAW,EAAE,WAAA7B,GAAW,GAAGW,KAAsC;AACzE,SACC,gBAAAW;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,aAAU;AAAA,MACV,WAAWC;AAAA,QACV;AAAA,QACAvB;AAAA,MAAA;AAAA,MAEA,GAAGW;AAAA,IAAA;AAAA,EAAA;AAGP;AAEA,SAASmB,EAAY,EAAE,WAAA9B,GAAW,GAAGW,KAAsC;AAC1E,SACC,gBAAAW;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,aAAU;AAAA,MACV,WAAWC,EAAG,+CAA+CvB,CAAS;AAAA,MACrE,GAAGW;AAAA,IAAA;AAAA,EAAA;AAGP;AAEA,SAASoB,EAAW,EAAE,WAAA/B,GAAW,GAAGW,KAAsC;AACzE,SACC,gBAAAW;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,aAAU;AAAA,MACV,WAAWC;AAAA,QACV;AAAA,QACAvB;AAAA,MAAA;AAAA,MAEA,GAAGW;AAAA,IAAA;AAAA,EAAA;AAGP;"}
package/dist/ui/index.js CHANGED
@@ -1,45 +1,47 @@
1
- import { Accordion as e, AccordionContent as t, AccordionItem as n, AccordionTrigger as p } from "./accordion/index.js";
1
+ import { Accordion as e, AccordionContent as t, AccordionItem as p, AccordionTrigger as n } from "./accordion/index.js";
2
2
  import { Button as i, buttonVariants as a } from "./button/index.js";
3
3
  import { Calendar as u, CalendarDayButton as c } from "./calendar/index.js";
4
- import { Card as m, CardAction as D, CardContent as x, CardDescription as S, CardFooter as f, CardHeader as T, CardTitle as C } from "./card/index.js";
4
+ import { Card as g, CardAction as x, CardContent as D, CardDescription as f, CardFooter as S, CardHeader as T, CardTitle as C } from "./card/index.js";
5
5
  import { ColorPicker as M } from "./color-picker/index.js";
6
- import { ColorPickerToggle as F } from "./color-picker-toggle/index.js";
7
- import { Dialog as P, DialogClose as b, DialogContent as v, DialogDescription as s, DialogFooter as A, DialogHeader as h, DialogOverlay as B, DialogPortal as L, DialogTitle as R, DialogTrigger as k } from "./dialog/index.js";
6
+ import { ColorPickerToggle as P } from "./color-picker-toggle/index.js";
7
+ import { Dialog as G, DialogClose as b, DialogContent as v, DialogDescription as s, DialogFooter as A, DialogHeader as h, DialogOverlay as B, DialogPortal as L, DialogTitle as k, DialogTrigger as R } from "./dialog/index.js";
8
8
  import { DropdownMenu as V, DropdownMenuCheckboxItem as y, DropdownMenuContent as E, DropdownMenuGroup as O, DropdownMenuItem as U, DropdownMenuLabel as j, DropdownMenuPortal as q, DropdownMenuRadioGroup as z, DropdownMenuRadioItem as J, DropdownMenuSeparator as K, DropdownMenuShortcut as N, DropdownMenuSub as Q, DropdownMenuSubContent as W, DropdownMenuSubTrigger as X, DropdownMenuTrigger as Y } from "./dropdown-menu/index.js";
9
- import { Field as _, FieldContent as $, FieldDescription as oo, FieldError as ro, FieldGroup as eo, FieldLabel as to, FieldLegend as no, FieldSeparator as po, FieldSet as lo, FieldTitle as io } from "./field/index.js";
9
+ import { Field as _, FieldContent as $, FieldDescription as oo, FieldError as ro, FieldGroup as eo, FieldLabel as to, FieldLegend as po, FieldSeparator as no, FieldSet as lo, FieldTitle as io } from "./field/index.js";
10
10
  import { Input as uo } from "./input/index.js";
11
- import { InputGroup as go, InputGroupAddon as mo, InputGroupButton as Do, InputGroupInput as xo, InputGroupText as So, InputGroupTextarea as fo } from "./input-group/index.js";
11
+ import { InputGroup as mo, InputGroupAddon as go, InputGroupButton as xo, InputGroupInput as Do, InputGroupText as fo, InputGroupTextarea as So } from "./input-group/index.js";
12
12
  import { Label as Co } from "./label/index.js";
13
- import { Popover as Mo, PopoverAnchor as Io, PopoverContent as Fo, PopoverDescription as Go, PopoverHeader as Po, PopoverTitle as bo, PopoverTrigger as vo } from "./popover/index.js";
14
- import { RadioGroup as Ao, RadioGroupItem as ho } from "./radio-group/index.js";
15
- import { ScrollArea as Lo, ScrollBar as Ro } from "./scroll-area/index.js";
16
- import { Select as Ho, SelectContent as Vo, SelectGroup as yo, SelectItem as Eo, SelectLabel as Oo, SelectScrollDownButton as Uo, SelectScrollUpButton as jo, SelectSeparator as qo, SelectTrigger as zo, SelectValue as Jo } from "./select/index.js";
17
- import { Separator as No } from "./separator/index.js";
18
- import { Toaster as Wo } from "./sonner/index.js";
19
- import { Switch as Yo } from "./switch/index.js";
20
- import { Textarea as _o } from "./textarea/index.js";
21
- import { ThemeSwitch as or } from "./theme-switch/index.js";
22
- import { ThemeToggle as er } from "./theme-toggle/index.js";
23
- import { Toggle as nr, toggleVariants as pr } from "./toggle/index.js";
24
- import { Tooltip as ir, TooltipContent as ar, TooltipProvider as dr, TooltipTrigger as ur } from "./tooltip/index.js";
13
+ import { MarkedText as Mo } from "./marked-text/index.js";
14
+ import { Pill as Po } from "./pill/index.js";
15
+ import { Popover as Go, PopoverAnchor as bo, PopoverContent as vo, PopoverDescription as so, PopoverHeader as Ao, PopoverTitle as ho, PopoverTrigger as Bo } from "./popover/index.js";
16
+ import { RadioGroup as ko, RadioGroupItem as Ro } from "./radio-group/index.js";
17
+ import { ScrollArea as Vo, ScrollBar as yo } from "./scroll-area/index.js";
18
+ import { Select as Oo, SelectContent as Uo, SelectGroup as jo, SelectItem as qo, SelectLabel as zo, SelectScrollDownButton as Jo, SelectScrollUpButton as Ko, SelectSeparator as No, SelectTrigger as Qo, SelectValue as Wo } from "./select/index.js";
19
+ import { Separator as Yo } from "./separator/index.js";
20
+ import { Toaster as _o } from "./sonner/index.js";
21
+ import { Switch as or } from "./switch/index.js";
22
+ import { Textarea as er } from "./textarea/index.js";
23
+ import { ThemeSwitch as pr } from "./theme-switch/index.js";
24
+ import { ThemeToggle as lr } from "./theme-toggle/index.js";
25
+ import { Toggle as ar, toggleVariants as dr } from "./toggle/index.js";
26
+ import { Tooltip as cr, TooltipContent as mr, TooltipProvider as gr, TooltipTrigger as xr } from "./tooltip/index.js";
25
27
  export {
26
28
  e as Accordion,
27
29
  t as AccordionContent,
28
- n as AccordionItem,
29
- p as AccordionTrigger,
30
+ p as AccordionItem,
31
+ n as AccordionTrigger,
30
32
  i as Button,
31
33
  u as Calendar,
32
34
  c as CalendarDayButton,
33
- m as Card,
34
- D as CardAction,
35
- x as CardContent,
36
- S as CardDescription,
37
- f as CardFooter,
35
+ g as Card,
36
+ x as CardAction,
37
+ D as CardContent,
38
+ f as CardDescription,
39
+ S as CardFooter,
38
40
  T as CardHeader,
39
41
  C as CardTitle,
40
42
  M as ColorPicker,
41
- F as ColorPickerToggle,
42
- P as Dialog,
43
+ P as ColorPickerToggle,
44
+ G as Dialog,
43
45
  b as DialogClose,
44
46
  v as DialogContent,
45
47
  s as DialogDescription,
@@ -47,8 +49,8 @@ export {
47
49
  h as DialogHeader,
48
50
  B as DialogOverlay,
49
51
  L as DialogPortal,
50
- R as DialogTitle,
51
- k as DialogTrigger,
52
+ k as DialogTitle,
53
+ R as DialogTrigger,
52
54
  V as DropdownMenu,
53
55
  y as DropdownMenuCheckboxItem,
54
56
  E as DropdownMenuContent,
@@ -70,51 +72,53 @@ export {
70
72
  ro as FieldError,
71
73
  eo as FieldGroup,
72
74
  to as FieldLabel,
73
- no as FieldLegend,
74
- po as FieldSeparator,
75
+ po as FieldLegend,
76
+ no as FieldSeparator,
75
77
  lo as FieldSet,
76
78
  io as FieldTitle,
77
79
  uo as Input,
78
- go as InputGroup,
79
- mo as InputGroupAddon,
80
- Do as InputGroupButton,
81
- xo as InputGroupInput,
82
- So as InputGroupText,
83
- fo as InputGroupTextarea,
80
+ mo as InputGroup,
81
+ go as InputGroupAddon,
82
+ xo as InputGroupButton,
83
+ Do as InputGroupInput,
84
+ fo as InputGroupText,
85
+ So as InputGroupTextarea,
84
86
  Co as Label,
85
- Mo as Popover,
86
- Io as PopoverAnchor,
87
- Fo as PopoverContent,
88
- Go as PopoverDescription,
89
- Po as PopoverHeader,
90
- bo as PopoverTitle,
91
- vo as PopoverTrigger,
92
- Ao as RadioGroup,
93
- ho as RadioGroupItem,
94
- Lo as ScrollArea,
95
- Ro as ScrollBar,
96
- Ho as Select,
97
- Vo as SelectContent,
98
- yo as SelectGroup,
99
- Eo as SelectItem,
100
- Oo as SelectLabel,
101
- Uo as SelectScrollDownButton,
102
- jo as SelectScrollUpButton,
103
- qo as SelectSeparator,
104
- zo as SelectTrigger,
105
- Jo as SelectValue,
106
- No as Separator,
107
- Yo as Switch,
108
- _o as Textarea,
109
- or as ThemeSwitch,
110
- er as ThemeToggle,
111
- Wo as Toaster,
112
- nr as Toggle,
113
- ir as Tooltip,
114
- ar as TooltipContent,
115
- dr as TooltipProvider,
116
- ur as TooltipTrigger,
87
+ Mo as MarkedText,
88
+ Po as Pill,
89
+ Go as Popover,
90
+ bo as PopoverAnchor,
91
+ vo as PopoverContent,
92
+ so as PopoverDescription,
93
+ Ao as PopoverHeader,
94
+ ho as PopoverTitle,
95
+ Bo as PopoverTrigger,
96
+ ko as RadioGroup,
97
+ Ro as RadioGroupItem,
98
+ Vo as ScrollArea,
99
+ yo as ScrollBar,
100
+ Oo as Select,
101
+ Uo as SelectContent,
102
+ jo as SelectGroup,
103
+ qo as SelectItem,
104
+ zo as SelectLabel,
105
+ Jo as SelectScrollDownButton,
106
+ Ko as SelectScrollUpButton,
107
+ No as SelectSeparator,
108
+ Qo as SelectTrigger,
109
+ Wo as SelectValue,
110
+ Yo as Separator,
111
+ or as Switch,
112
+ er as Textarea,
113
+ pr as ThemeSwitch,
114
+ lr as ThemeToggle,
115
+ _o as Toaster,
116
+ ar as Toggle,
117
+ cr as Tooltip,
118
+ mr as TooltipContent,
119
+ gr as TooltipProvider,
120
+ xr as TooltipTrigger,
117
121
  a as buttonVariants,
118
- pr as toggleVariants
122
+ dr as toggleVariants
119
123
  };
120
124
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}