@clasing/ui 2.9.1 → 2.9.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,9 +1,9 @@
1
- import { c as a, j as e } from "./index-C_XDkVGm.js";
1
+ import { c as o, j as e } from "./index-C_XDkVGm.js";
2
2
  import { Slot as _ } from "@radix-ui/react-slot";
3
3
  import { cva as k } from "class-variance-authority";
4
4
  import w from "react";
5
5
  import { C } from "./clasing-icon-zhfWTLFn.js";
6
- import { b, T as c, c as g, a as f } from "./tooltip-CC_kyHTm.js";
6
+ import { b, T as f, c, a as g } from "./tooltip-CC_kyHTm.js";
7
7
  const T = k(
8
8
  `
9
9
  relative z-0 flex items-center justify-center rounded-full focusable-item
@@ -53,10 +53,8 @@ const T = k(
53
53
  ],
54
54
  link: [
55
55
  `
56
- text-blue-500
57
- hover:bg-blue-050
58
- dark:text-blue-300
59
- dark:hover:bg-blue-900/30
56
+ text-info-foreground
57
+ hover:bg-info
60
58
  `
61
59
  ]
62
60
  },
@@ -183,7 +181,7 @@ const T = k(
183
181
  weight: p,
184
182
  children: n,
185
183
  isLoading: r,
186
- disabled: o,
184
+ disabled: a,
187
185
  tooltip: t,
188
186
  tooltipPlacement: l = "top",
189
187
  asChild: d,
@@ -196,13 +194,13 @@ const T = k(
196
194
  md: "w-8 px-0",
197
195
  sm: "w-7 px-0",
198
196
  xs: "w-6 px-0"
199
- }[i || "xl"] : "", N = a(
197
+ }[i || "xl"] : "", N = o(
200
198
  T({
201
199
  variant: x,
202
200
  weight: p,
203
201
  size: i,
204
202
  isLoading: r,
205
- disabled: o
203
+ disabled: a
206
204
  }),
207
205
  m,
208
206
  j
@@ -211,7 +209,7 @@ const T = k(
211
209
  C,
212
210
  {
213
211
  variant: "default",
214
- className: a(
212
+ className: o(
215
213
  "pointer-events-none absolute top-1/2 left-1/2 -translate-1/2",
216
214
  {
217
215
  "visible animate-[spin_2s_linear_infinite] opacity-100": r
@@ -222,7 +220,7 @@ const T = k(
222
220
  /* @__PURE__ */ e.jsx(
223
221
  "span",
224
222
  {
225
- className: a(
223
+ className: o(
226
224
  "flex items-center justify-center gap-2",
227
225
  r ? "invisible opacity-0" : "visible opacity-100"
228
226
  ),
@@ -233,18 +231,18 @@ const T = k(
233
231
  h,
234
232
  {
235
233
  ref: y,
236
- className: a(N),
237
- disabled: !!r || !!o,
234
+ className: o(N),
235
+ disabled: !!r || !!a,
238
236
  ...v,
239
237
  children: z
240
238
  }
241
239
  );
242
- return t && (o || r) ? /* @__PURE__ */ e.jsx(b, { children: /* @__PURE__ */ e.jsxs(c, { children: [
243
- /* @__PURE__ */ e.jsx(g, { asChild: !0, children: u ? /* @__PURE__ */ e.jsx("div", { className: "inline-block", "aria-disabled": "true", children: s }) : s }),
244
- /* @__PURE__ */ e.jsx(f, { side: l, children: t })
245
- ] }) }) : t ? /* @__PURE__ */ e.jsx(b, { children: /* @__PURE__ */ e.jsxs(c, { children: [
246
- /* @__PURE__ */ e.jsx(g, { asChild: !0, children: s }),
247
- /* @__PURE__ */ e.jsx(f, { side: l, children: t })
240
+ return t && (a || r) ? /* @__PURE__ */ e.jsx(b, { children: /* @__PURE__ */ e.jsxs(f, { children: [
241
+ /* @__PURE__ */ e.jsx(c, { asChild: !0, children: u ? /* @__PURE__ */ e.jsx("div", { className: "inline-block", "aria-disabled": "true", children: s }) : s }),
242
+ /* @__PURE__ */ e.jsx(g, { side: l, children: t })
243
+ ] }) }) : t ? /* @__PURE__ */ e.jsx(b, { children: /* @__PURE__ */ e.jsxs(f, { children: [
244
+ /* @__PURE__ */ e.jsx(c, { asChild: !0, children: s }),
245
+ /* @__PURE__ */ e.jsx(g, { side: l, children: t })
248
246
  ] }) }) : s;
249
247
  }
250
248
  );
@@ -1,6 +1,6 @@
1
1
  import { j as e, c as l } from "../index-C_XDkVGm.js";
2
2
  import * as o from "@radix-ui/react-alert-dialog";
3
- import { b as r } from "../button-DSpGxL2e.js";
3
+ import { b as r } from "../button-CKrOlPSD.js";
4
4
  function c({
5
5
  ...t
6
6
  }) {
@@ -10,7 +10,11 @@ function b({ className: r, ...e }) {
10
10
  {
11
11
  "data-slot": "breadcrumb-list",
12
12
  className: t(
13
- "text-muted-foreground paragraph-sm flex flex-wrap items-center gap-1.5 wrap-break-word sm:gap-2.5",
13
+ `
14
+ flex flex-wrap items-center gap-1.5 paragraph-sm wrap-break-word
15
+ text-muted-foreground
16
+ sm:gap-2.5
17
+ `,
14
18
  r
15
19
  ),
16
20
  ...e
@@ -37,7 +41,13 @@ function x({
37
41
  n,
38
42
  {
39
43
  "data-slot": "breadcrumb-link",
40
- className: t("hover:text-foreground transition-colors", e),
44
+ className: t(
45
+ `
46
+ transition-colors
47
+ hover:text-foreground
48
+ `,
49
+ e
50
+ ),
41
51
  ...s
42
52
  }
43
53
  );
@@ -50,7 +60,7 @@ function f({ className: r, ...e }) {
50
60
  role: "link",
51
61
  "aria-disabled": "true",
52
62
  "aria-current": "page",
53
- className: t("text-foreground font-semibold", r),
63
+ className: t("font-semibold text-foreground", r),
54
64
  ...e
55
65
  }
56
66
  );
@@ -83,7 +93,10 @@ function j({
83
93
  role: "presentation",
84
94
  "aria-hidden": "true",
85
95
  className: t(
86
- "flex size-9 items-center justify-center [&>svg]:size-3.5",
96
+ `
97
+ flex size-9 items-center justify-center
98
+ [&>svg]:size-3.5
99
+ `,
87
100
  r
88
101
  ),
89
102
  ...e,
@@ -3,12 +3,28 @@ import { Slot as i } from "@radix-ui/react-slot";
3
3
  import { cva as a } from "class-variance-authority";
4
4
  import { D as l } from "../divider-DnPsAXol.js";
5
5
  const d = a(
6
- "flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2 [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-full [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1",
6
+ `
7
+ flex w-fit items-stretch
8
+ *:focus-visible:relative *:focus-visible:z-10
9
+ has-[>[data-slot=button-group]]:gap-2
10
+ has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-full
11
+ [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit
12
+ [&>input]:flex-1
13
+ `,
7
14
  {
8
15
  variants: {
9
16
  orientation: {
10
- horizontal: "[&>*:not(:first-child)]:rounded-l-none! [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none!",
11
- vertical: "flex-col [&>*:not(:first-child)]:rounded-t-none! [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none!"
17
+ horizontal: `
18
+ [&>*:not(:first-child)]:rounded-l-none!
19
+ [&>*:not(:first-child)]:border-l-0
20
+ [&>*:not(:last-child)]:rounded-r-none!
21
+ `,
22
+ vertical: `
23
+ flex-col
24
+ [&>*:not(:first-child)]:rounded-t-none!
25
+ [&>*:not(:first-child)]:border-t-0
26
+ [&>*:not(:last-child)]:rounded-b-none!
27
+ `
12
28
  }
13
29
  },
14
30
  defaultVariants: {
@@ -42,7 +58,12 @@ function h({
42
58
  s,
43
59
  {
44
60
  className: n(
45
- "bg-muted flex items-center gap-2 rounded-full border px-4 text-sm font-medium shadow-xs [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",
61
+ `
62
+ flex items-center gap-2 rounded-full border bg-muted px-4 text-sm
63
+ font-medium shadow-xs
64
+ [&_svg]:pointer-events-none
65
+ [&_svg:not([class*='size-'])]:size-4
66
+ `,
46
67
  o
47
68
  ),
48
69
  ...e
@@ -60,7 +81,10 @@ function v({
60
81
  "data-slot": "button-group-separator",
61
82
  orientation: t,
62
83
  className: n(
63
- "bg-input relative m-0! self-stretch data-[orientation=vertical]:h-auto",
84
+ `
85
+ relative m-0! self-stretch bg-input
86
+ data-[orientation=vertical]:h-auto
87
+ `,
64
88
  o
65
89
  ),
66
90
  ...e
@@ -1,4 +1,4 @@
1
- import { B as s, b as a } from "../button-DSpGxL2e.js";
1
+ import { B as s, b as a } from "../button-CKrOlPSD.js";
2
2
  export {
3
3
  s as Button,
4
4
  a as buttonStyles
@@ -1,7 +1,7 @@
1
1
  import { j as n, c as e } from "../index-C_XDkVGm.js";
2
2
  import * as i from "react";
3
3
  import { getDefaultClassNames as m, DayPicker as x } from "react-day-picker";
4
- import { b as f, B as h } from "../button-DSpGxL2e.js";
4
+ import { b as f, B as h } from "../button-CKrOlPSD.js";
5
5
  import { CaretLeftIcon as w, CaretRightIcon as _, CaretDownIcon as y } from "@phosphor-icons/react";
6
6
  function C({
7
7
  className: c,
@@ -0,0 +1,26 @@
1
+ import * as React from 'react';
2
+ import { Label } from '@/components/label';
3
+ declare const FieldGroup: {
4
+ ({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
7
+ declare const Field: {
8
+ ({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
9
+ displayName: string;
10
+ };
11
+ interface FieldLabelProps extends React.ComponentPropsWithoutRef<typeof Label> {
12
+ }
13
+ declare const FieldLabel: React.ForwardRefExoticComponent<FieldLabelProps & React.RefAttributes<HTMLLabelElement>>;
14
+ declare const FieldDescription: {
15
+ ({ className, ...props }: React.ComponentProps<"p">): import("react/jsx-runtime").JSX.Element;
16
+ displayName: string;
17
+ };
18
+ declare const fieldMessageVariants: {
19
+ readonly error: "text-destructive-foreground";
20
+ readonly success: "text-success-foreground";
21
+ };
22
+ interface FieldMessageProps extends React.ComponentProps<'p'> {
23
+ variant?: keyof typeof fieldMessageVariants;
24
+ }
25
+ declare const FieldMessage: React.ForwardRefExoticComponent<Omit<FieldMessageProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
26
+ export { Field, FieldDescription, FieldGroup, FieldLabel, FieldMessage };
@@ -0,0 +1,66 @@
1
+ import { j as a, c as r } from "../index-C_XDkVGm.js";
2
+ import * as t from "react";
3
+ import { L as d } from "../label-CnZHCbRc.js";
4
+ const i = ({ className: s, ...e }) => /* @__PURE__ */ a.jsx(
5
+ "div",
6
+ {
7
+ "data-slot": "field-group",
8
+ className: r("flex flex-col gap-4", s),
9
+ ...e
10
+ }
11
+ );
12
+ i.displayName = "FieldGroup";
13
+ const c = ({ className: s, ...e }) => /* @__PURE__ */ a.jsx(
14
+ "div",
15
+ {
16
+ "data-slot": "field",
17
+ className: r("flex flex-col gap-1.5", s),
18
+ ...e
19
+ }
20
+ );
21
+ c.displayName = "Field";
22
+ const m = t.forwardRef(({ className: s, ...e }, l) => /* @__PURE__ */ a.jsx(
23
+ d,
24
+ {
25
+ ref: l,
26
+ "data-slot": "field-label",
27
+ className: r("label-md font-medium text-foreground", s),
28
+ ...e
29
+ }
30
+ ));
31
+ m.displayName = "FieldLabel";
32
+ const p = ({
33
+ className: s,
34
+ ...e
35
+ }) => /* @__PURE__ */ a.jsx(
36
+ "p",
37
+ {
38
+ "data-slot": "field-description",
39
+ className: r("paragraph-sm text-muted-foreground", s),
40
+ ...e
41
+ }
42
+ );
43
+ p.displayName = "FieldDescription";
44
+ const f = {
45
+ error: "text-destructive-foreground",
46
+ success: "text-success-foreground"
47
+ }, n = t.forwardRef(
48
+ ({ className: s, variant: e = "error", ...l }, o) => /* @__PURE__ */ a.jsx(
49
+ "p",
50
+ {
51
+ ref: o,
52
+ "data-slot": "field-message",
53
+ className: r("paragraph-sm", f[e], s),
54
+ role: e === "error" ? "alert" : void 0,
55
+ ...l
56
+ }
57
+ )
58
+ );
59
+ n.displayName = "FieldMessage";
60
+ export {
61
+ c as Field,
62
+ p as FieldDescription,
63
+ i as FieldGroup,
64
+ m as FieldLabel,
65
+ n as FieldMessage
66
+ };
@@ -1,4 +1,4 @@
1
- import { I as r } from "../input-D9gqZjs0.js";
1
+ import { I as r } from "../input-BlcRuIEB.js";
2
2
  export {
3
3
  r as Input
4
4
  };
@@ -0,0 +1,38 @@
1
+ import * as React from 'react';
2
+ declare const Pagination: {
3
+ ({ className, ...props }: React.ComponentProps<"nav">): import("react/jsx-runtime").JSX.Element;
4
+ displayName: string;
5
+ };
6
+ declare const PaginationContent: {
7
+ ({ className, ...props }: React.ComponentProps<"ul">): import("react/jsx-runtime").JSX.Element;
8
+ displayName: string;
9
+ };
10
+ declare const PaginationItem: {
11
+ ({ className, ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
12
+ displayName: string;
13
+ };
14
+ interface PaginationLinkProps extends React.ComponentProps<'a'> {
15
+ isActive?: boolean;
16
+ asChild?: boolean;
17
+ }
18
+ declare const PaginationLink: {
19
+ ({ className, isActive, asChild, ...props }: PaginationLinkProps): import("react/jsx-runtime").JSX.Element;
20
+ displayName: string;
21
+ };
22
+ interface PaginationPreviousProps extends PaginationLinkProps {
23
+ }
24
+ declare const PaginationPrevious: {
25
+ ({ className, href, ...props }: PaginationPreviousProps): import("react/jsx-runtime").JSX.Element;
26
+ displayName: string;
27
+ };
28
+ interface PaginationNextProps extends PaginationLinkProps {
29
+ }
30
+ declare const PaginationNext: {
31
+ ({ className, href, ...props }: PaginationNextProps): import("react/jsx-runtime").JSX.Element;
32
+ displayName: string;
33
+ };
34
+ declare const PaginationEllipsis: {
35
+ ({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
36
+ displayName: string;
37
+ };
38
+ export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, };
@@ -0,0 +1,107 @@
1
+ import { j as t, c as i } from "../index-C_XDkVGm.js";
2
+ import { DotsThreeIcon as l, CaretRightIcon as c, CaretLeftIcon as m } from "@phosphor-icons/react";
3
+ import { Slot as p } from "@radix-ui/react-slot";
4
+ const d = ({ className: e, ...a }) => /* @__PURE__ */ t.jsx(
5
+ "nav",
6
+ {
7
+ "aria-label": "pagination",
8
+ className: i("mx-auto flex w-full justify-center", e),
9
+ ...a
10
+ }
11
+ );
12
+ d.displayName = "Pagination";
13
+ const u = ({
14
+ className: e,
15
+ ...a
16
+ }) => /* @__PURE__ */ t.jsx(
17
+ "ul",
18
+ {
19
+ className: i("flex flex-row items-center gap-1", e),
20
+ ...a
21
+ }
22
+ );
23
+ u.displayName = "PaginationContent";
24
+ const g = ({
25
+ className: e,
26
+ ...a
27
+ }) => /* @__PURE__ */ t.jsx("li", { className: i("", e), ...a });
28
+ g.displayName = "PaginationItem";
29
+ const s = ({
30
+ className: e,
31
+ isActive: a,
32
+ asChild: n,
33
+ ...o
34
+ }) => {
35
+ const r = n ? p : "a";
36
+ return /* @__PURE__ */ t.jsx(
37
+ r,
38
+ {
39
+ "data-slot": "pagination-link",
40
+ className: i(
41
+ `
42
+ flex size-9 items-center justify-center rounded-full label-md
43
+ font-medium focusable-item
44
+ transition-[color,background-color,box-shadow]
45
+ hover:bg-muted
46
+ disabled:pointer-events-none disabled:opacity-50
47
+ data-[active=true]:bg-primary
48
+ data-[active=true]:text-primary-foreground
49
+ data-[active=true]:shadow-xs
50
+ `,
51
+ e
52
+ ),
53
+ "aria-current": a ? "page" : void 0,
54
+ "data-active": a,
55
+ ...o
56
+ }
57
+ );
58
+ };
59
+ s.displayName = "PaginationLink";
60
+ const x = ({
61
+ className: e,
62
+ href: a,
63
+ ...n
64
+ }) => /* @__PURE__ */ t.jsx(
65
+ s,
66
+ {
67
+ href: a,
68
+ "aria-label": "Go to previous page",
69
+ className: i("gap-1 pr-3 pl-2.5", e),
70
+ ...n,
71
+ children: /* @__PURE__ */ t.jsx(m, { className: "size-4" })
72
+ }
73
+ );
74
+ x.displayName = "PaginationPrevious";
75
+ const N = ({ className: e, href: a, ...n }) => /* @__PURE__ */ t.jsx(
76
+ s,
77
+ {
78
+ href: a,
79
+ "aria-label": "Go to next page",
80
+ className: i("gap-1 pr-2.5 pl-3", e),
81
+ ...n,
82
+ children: /* @__PURE__ */ t.jsx(c, { className: "size-4" })
83
+ }
84
+ );
85
+ N.displayName = "PaginationNext";
86
+ const f = ({
87
+ className: e,
88
+ ...a
89
+ }) => /* @__PURE__ */ t.jsx(
90
+ "span",
91
+ {
92
+ "aria-hidden": !0,
93
+ className: i("flex size-9 items-center justify-center", e),
94
+ ...a,
95
+ children: /* @__PURE__ */ t.jsx(l, { className: "size-4", weight: "bold" })
96
+ }
97
+ );
98
+ f.displayName = "PaginationEllipsis";
99
+ export {
100
+ d as Pagination,
101
+ u as PaginationContent,
102
+ f as PaginationEllipsis,
103
+ g as PaginationItem,
104
+ s as PaginationLink,
105
+ N as PaginationNext,
106
+ x as PaginationPrevious
107
+ };
@@ -1,6 +1,6 @@
1
1
  import { j as e, c as p } from "../index-C_XDkVGm.js";
2
2
  import { C as O, d as A, f as F, b as L, c as D, e as N } from "../command-Cq3FhQXv.js";
3
- import { I as M } from "../input-D9gqZjs0.js";
3
+ import { I as M } from "../input-BlcRuIEB.js";
4
4
  import { P as q, c as H, b as G } from "../popover-CLQxfbEi.js";
5
5
  import { S as W } from "../scroll-area-BTNDZ-p2.js";
6
6
  import { CaretDownIcon as $, CheckIcon as B } from "@phosphor-icons/react";
@@ -0,0 +1,5 @@
1
+ import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
2
+ import * as React from 'react';
3
+ declare const RadioGroup: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
+ declare const RadioGroupItem: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
5
+ export { RadioGroup, RadioGroupItem };
@@ -0,0 +1,45 @@
1
+ import { j as a, c as t } from "../index-C_XDkVGm.js";
2
+ import { CircleIcon as d } from "@phosphor-icons/react";
3
+ import * as r from "@radix-ui/react-radio-group";
4
+ import * as s from "react";
5
+ const l = s.forwardRef(({ className: e, ...o }, i) => /* @__PURE__ */ a.jsx(
6
+ r.Root,
7
+ {
8
+ "data-slot": "radio-group",
9
+ className: t("grid gap-3", e),
10
+ ...o,
11
+ ref: i
12
+ }
13
+ ));
14
+ l.displayName = r.Root.displayName;
15
+ const m = s.forwardRef(({ className: e, ...o }, i) => /* @__PURE__ */ a.jsx(
16
+ r.Item,
17
+ {
18
+ "data-slot": "radio-group-item",
19
+ ref: i,
20
+ className: t(
21
+ `
22
+ aspect-square size-4 shrink-0 rounded-full border border-input
23
+ text-primary focusable-item
24
+ disabled:cursor-not-allowed disabled:opacity-50
25
+ aria-invalid:border-destructive-foreground
26
+ dark:bg-input/30
27
+ `,
28
+ e
29
+ ),
30
+ ...o,
31
+ children: /* @__PURE__ */ a.jsx(
32
+ r.Indicator,
33
+ {
34
+ "data-slot": "radio-group-indicator",
35
+ className: "flex items-center justify-center",
36
+ children: /* @__PURE__ */ a.jsx(d, { weight: "fill", className: "size-2" })
37
+ }
38
+ )
39
+ }
40
+ ));
41
+ m.displayName = r.Item.displayName;
42
+ export {
43
+ l as RadioGroup,
44
+ m as RadioGroupItem
45
+ };
@@ -73,7 +73,7 @@ function b({
73
73
  function v({
74
74
  className: t,
75
75
  children: a,
76
- position: l = "popper",
76
+ position: l = "item-aligned",
77
77
  collisionPadding: o = 24,
78
78
  ...n
79
79
  }) {
@@ -167,7 +167,15 @@ function y({
167
167
  ),
168
168
  ...l,
169
169
  children: [
170
- /* @__PURE__ */ e.jsx("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(s.ItemIndicator, { children: /* @__PURE__ */ e.jsx(i, { className: "size-4" }) }) }),
170
+ /* @__PURE__ */ e.jsx(
171
+ "span",
172
+ {
173
+ className: `\r
174
+ absolute right-2 flex size-3.5 items-center justify-center\r
175
+ `,
176
+ children: /* @__PURE__ */ e.jsx(s.ItemIndicator, { children: /* @__PURE__ */ e.jsx(i, { className: "size-4" }) })
177
+ }
178
+ ),
171
179
  /* @__PURE__ */ e.jsx(s.ItemText, { children: a })
172
180
  ]
173
181
  }
@@ -0,0 +1,83 @@
1
+ import { type VariantProps } from 'class-variance-authority';
2
+ import * as React from 'react';
3
+ import { Button } from './button';
4
+ import { Collapsible, CollapsibleContent, CollapsibleTrigger } from './collapsible';
5
+ import { Divider } from './divider';
6
+ import { Input } from './input';
7
+ import { TooltipContent } from './tooltip';
8
+ type SidebarContextProps = {
9
+ state: 'expanded' | 'collapsed';
10
+ open: boolean;
11
+ setOpen: (open: boolean) => void;
12
+ openMobile: boolean;
13
+ setOpenMobile: (open: boolean) => void;
14
+ isMobile: boolean;
15
+ toggleSidebar: () => void;
16
+ };
17
+ declare function useSidebar(): SidebarContextProps;
18
+ declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: React.ComponentProps<'div'> & {
19
+ defaultOpen?: boolean;
20
+ open?: boolean;
21
+ onOpenChange?: (open: boolean) => void;
22
+ }): import("react/jsx-runtime").JSX.Element;
23
+ declare function Sidebar({ side, variant, collapsible, className, children, ...props }: React.ComponentProps<'div'> & {
24
+ side?: 'left' | 'right';
25
+ variant?: 'sidebar' | 'floating' | 'inset';
26
+ collapsible?: 'offcanvas' | 'icon' | 'none';
27
+ }): import("react/jsx-runtime").JSX.Element;
28
+ declare function SidebarTrigger({ className, onClick, ...props }: React.ComponentProps<typeof Button>): import("react/jsx-runtime").JSX.Element;
29
+ declare function SidebarRail({ className, ...props }: React.ComponentProps<'button'>): import("react/jsx-runtime").JSX.Element;
30
+ declare function SidebarInset({ className, ...props }: React.ComponentProps<'main'>): import("react/jsx-runtime").JSX.Element;
31
+ declare function SidebarInput({ className, ...props }: React.ComponentProps<typeof Input>): import("react/jsx-runtime").JSX.Element;
32
+ declare function SidebarHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
33
+ declare function SidebarFooter({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
34
+ declare function SidebarSeparator({ className, ...props }: React.ComponentProps<typeof Divider>): import("react/jsx-runtime").JSX.Element;
35
+ declare function SidebarContent({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
36
+ declare function SidebarGroup({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
37
+ declare function SidebarGroupLabel({ className, asChild, ...props }: React.ComponentProps<'div'> & {
38
+ asChild?: boolean;
39
+ }): import("react/jsx-runtime").JSX.Element;
40
+ declare function SidebarGroupAction({ className, asChild, ...props }: React.ComponentProps<'button'> & {
41
+ asChild?: boolean;
42
+ }): import("react/jsx-runtime").JSX.Element;
43
+ declare function SidebarGroupContent({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
44
+ declare function SidebarMenu({ className, ...props }: React.ComponentProps<'ul'>): import("react/jsx-runtime").JSX.Element;
45
+ declare function SidebarMenuItem({ className, ...props }: React.ComponentProps<'li'>): import("react/jsx-runtime").JSX.Element;
46
+ declare const sidebarMenuButtonVariants: (props?: ({
47
+ variant?: "default" | "outline" | null | undefined;
48
+ size?: "default" | "lg" | "sm" | null | undefined;
49
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
50
+ declare function SidebarMenuButton({ asChild, isActive, variant, size, tooltip, dropdownItems, className, ...props }: React.ComponentProps<'button'> & {
51
+ asChild?: boolean;
52
+ isActive?: boolean;
53
+ tooltip?: string | React.ComponentProps<typeof TooltipContent>;
54
+ dropdownItems?: {
55
+ title: string;
56
+ href: string;
57
+ }[];
58
+ } & VariantProps<typeof sidebarMenuButtonVariants>): import("react/jsx-runtime").JSX.Element;
59
+ declare function SidebarMenuAction({ className, asChild, showOnHover, ...props }: React.ComponentProps<'button'> & {
60
+ asChild?: boolean;
61
+ showOnHover?: boolean;
62
+ }): import("react/jsx-runtime").JSX.Element;
63
+ declare function SidebarMenuBadge({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
64
+ declare function SidebarMenuSkeleton({ className, showIcon, ...props }: React.ComponentProps<'div'> & {
65
+ showIcon?: boolean;
66
+ }): import("react/jsx-runtime").JSX.Element;
67
+ declare function SidebarMenuSub({ className, ...props }: React.ComponentProps<'ul'>): import("react/jsx-runtime").JSX.Element;
68
+ declare function SidebarMenuSubItem({ className, ...props }: React.ComponentProps<'li'>): import("react/jsx-runtime").JSX.Element;
69
+ declare function SidebarMenuSubButton({ asChild, size, isActive, className, ...props }: React.ComponentProps<'a'> & {
70
+ asChild?: boolean;
71
+ size?: 'sm' | 'md' | 'lg';
72
+ isActive?: boolean;
73
+ }): import("react/jsx-runtime").JSX.Element;
74
+ declare function SidebarSubMenu({ defaultOpen, className, children, ...props }: React.ComponentProps<typeof Collapsible>): import("react/jsx-runtime").JSX.Element;
75
+ declare function SidebarSubMenuTrigger({ className, children, dropdownItems, ...props }: React.ComponentProps<typeof CollapsibleTrigger> & {
76
+ dropdownItems?: {
77
+ title: string;
78
+ href: string;
79
+ }[];
80
+ }): import("react/jsx-runtime").JSX.Element;
81
+ declare function SidebarSubMenuContent({ children, ...props }: React.ComponentProps<typeof CollapsibleContent>): import("react/jsx-runtime").JSX.Element;
82
+ declare function SidebarSubMenuItem({ children, ...props }: React.ComponentProps<typeof SidebarMenuSubItem>): import("react/jsx-runtime").JSX.Element;
83
+ export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarSubMenu, SidebarSubMenuContent, SidebarSubMenuItem, SidebarSubMenuTrigger, SidebarTrigger, useSidebar, };
@@ -0,0 +1,13 @@
1
+ import * as TabsPrimitive from '@radix-ui/react-tabs';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ import * as React from 'react';
4
+ declare const Tabs: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
+ declare const tabsListVariants: (props?: ({
6
+ size?: "lg" | "md" | "sm" | null | undefined;
7
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
+ interface TabsListProps extends React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>, VariantProps<typeof tabsListVariants> {
9
+ }
10
+ declare const TabsList: React.ForwardRefExoticComponent<TabsListProps & React.RefAttributes<HTMLDivElement>>;
11
+ declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
12
+ declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
+ export { Tabs, TabsContent, TabsList, tabsListVariants, TabsTrigger };