fina-react-ds 0.0.0 → 1.0.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.
@@ -1,18 +1,18 @@
1
1
  var d = Object.defineProperty;
2
2
  var t = (o, r) => d(o, "name", { value: r, configurable: !0 });
3
3
  import { jsx as e } from "react/jsx-runtime";
4
- import { Root as i, Trigger as s, Portal as p, Content as m, Anchor as c } from "../node_modules/@radix-ui/react-popover/dist/index.js";
5
- import { cn as f } from "../lib/utils.js";
4
+ import { Root as c, Trigger as f, Portal as i, Content as s, Anchor as p } from "../node_modules/@radix-ui/react-popover/dist/index.js";
5
+ import { cn as m } from "../lib/utils.js";
6
6
  function h({
7
7
  ...o
8
8
  }) {
9
- return /* @__PURE__ */ e(i, { "data-slot": "popover", ...o });
9
+ return /* @__PURE__ */ e(c, { "data-slot": "popover", ...o });
10
10
  }
11
11
  t(h, "Popover");
12
12
  function P({
13
13
  ...o
14
14
  }) {
15
- return /* @__PURE__ */ e(s, { "data-slot": "popover-trigger", ...o });
15
+ return /* @__PURE__ */ e(f, { "data-slot": "popover-trigger", ...o });
16
16
  }
17
17
  t(P, "PopoverTrigger");
18
18
  function b({
@@ -21,14 +21,14 @@ function b({
21
21
  sideOffset: a = 4,
22
22
  ...n
23
23
  }) {
24
- return /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(
25
- m,
24
+ return /* @__PURE__ */ e(i, { children: /* @__PURE__ */ e(
25
+ s,
26
26
  {
27
27
  "data-slot": "popover-content",
28
28
  align: r,
29
29
  sideOffset: a,
30
- className: f(
31
- "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
30
+ className: m(
31
+ "fc:bg-popover fc:text-popover-foreground fc:data-[state=open]:animate-in fc:data-[state=closed]:animate-out fc:data-[state=closed]:fade-out-0 fc:data-[state=open]:fade-in-0 fc:data-[state=closed]:zoom-out-95 fc:data-[state=open]:zoom-in-95 fc:data-[side=bottom]:slide-in-from-top-2 fc:data-[side=left]:slide-in-from-right-2 fc:data-[side=right]:slide-in-from-left-2 fc:data-[side=top]:slide-in-from-bottom-2 fc:z-50 fc:w-72 fc:origin-(--radix-popover-content-transform-origin) fc:rounded-md fc:border fc:p-4 fc:shadow-md fc:outline-hidden",
32
32
  o
33
33
  ),
34
34
  ...n
@@ -39,7 +39,7 @@ t(b, "PopoverContent");
39
39
  function x({
40
40
  ...o
41
41
  }) {
42
- return /* @__PURE__ */ e(c, { "data-slot": "popover-anchor", ...o });
42
+ return /* @__PURE__ */ e(p, { "data-slot": "popover-anchor", ...o });
43
43
  }
44
44
  t(x, "PopoverAnchor");
45
45
  export {
@@ -1,48 +1,53 @@
1
- var n = Object.defineProperty;
2
- var r = (t, o) => n(t, "name", { value: o, configurable: !0 });
3
- import { jsx as c } from "react/jsx-runtime";
1
+ var s = Object.defineProperty;
2
+ var r = (c, i) => s(c, "name", { value: i, configurable: !0 });
3
+ import { jsx as l } from "react/jsx-runtime";
4
+ import m from "clsx";
4
5
  import p from "react-select";
5
- function b({
6
- options: t,
7
- placeholder: o = "Sélectionner",
8
- onChange: i,
9
- value: u,
10
- ...m
6
+ function y({
7
+ options: c,
8
+ placeholder: i = "Sélectionner",
9
+ onChange: f,
10
+ value: d,
11
+ ...o
11
12
  }) {
12
13
  const a = /* @__PURE__ */ r((e) => {
13
- Array.isArray(t) ? i == null || i(
14
- e.map((d) => d.value)
15
- ) : i == null || i(e == null ? void 0 : e.value);
16
- }, "handleChange"), s = /* @__PURE__ */ r(() => m.isMulti ? Array.isArray(u) ? (t == null ? void 0 : t.filter((e) => u.includes(e.value))) ?? [] : [] : t.find((e) => e.value === u), "getSelectedOptions"), l = /* @__PURE__ */ r((e) => {
17
- const d = e.relatedTarget;
18
- d && (d.tagName === "A" || d.tagName === "BUTTON" || d.tagName === "TEXTAREA" || d.tagName === "INPUT") && d.focus();
14
+ Array.isArray(c) ? f == null || f(
15
+ e.map((t) => t.value)
16
+ ) : f == null || f(e == null ? void 0 : e.value);
17
+ }, "handleChange"), u = /* @__PURE__ */ r(() => o.isMulti ? Array.isArray(d) ? (c == null ? void 0 : c.filter((e) => d.includes(e.value))) ?? [] : [] : c.find((e) => e.value === d), "getSelectedOptions"), n = /* @__PURE__ */ r((e) => {
18
+ const t = e.relatedTarget;
19
+ t && (t.tagName === "A" || t.tagName === "BUTTON" || t.tagName === "TEXTAREA" || t.tagName === "INPUT") && t.focus();
19
20
  }, "onBlurWorkaround");
20
- return /* @__PURE__ */ c(
21
+ return /* @__PURE__ */ l(
21
22
  p,
22
23
  {
23
- ...m,
24
- options: t,
24
+ ...o,
25
+ options: c,
25
26
  onChange: a,
26
- value: s(),
27
+ value: u(),
27
28
  classNames: {
28
- control: /* @__PURE__ */ r(() => "px-3 py-1 border bg-input rounded-md text-base! md:text-sm! min-h-9! shadow-none! border-input-border has-[:focus]:border-ring has-[:focus]:ring-[3px] ring-ring/50 has-aria-invalid:border-destructive! has-aria-invalid:ring-destructive/20!", "control"),
29
- menu: /* @__PURE__ */ r(() => "bg-popover border rounded-md py-0 overflow-hidden shadow-md mt-2", "menu"),
30
- menuList: /* @__PURE__ */ r(() => "py-0! bg-popover", "menuList"),
31
- option: /* @__PURE__ */ r(() => "py-1 px-2 text-popover-foreground! text-base! md:text-sm! hover:bg-muted", "option"),
32
- placeholder: /* @__PURE__ */ r(() => "text-placeholder", "placeholder"),
33
- multiValue: /* @__PURE__ */ r(() => "bg-input-muted mr-1 px-1 py-0.5 rounded-md flex items-center", "multiValue"),
34
- multiValueRemove: /* @__PURE__ */ r(() => "text-muted-foreground cursor-pointer", "multiValueRemove"),
35
- dropdownIndicator: /* @__PURE__ */ r(() => "text-muted-foreground", "dropdownIndicator"),
36
- clearIndicator: /* @__PURE__ */ r(() => "cursor-pointer", "clearIndicator"),
37
- noOptionsMessage: /* @__PURE__ */ r(() => "py-2", "noOptionsMessage")
29
+ control: /* @__PURE__ */ r(() => "fc:px-3 fc:py-1 fc:border fc:bg-input fc:rounded-md fc:text-base fc:md:text-sm fc:min-h-9 fc:shadow-none fc:border-input-border fc:has-[:focus]:border-ring fc:has-[:focus]:ring-[3px] fc:ring-ring/50 fc:has-aria-invalid:border-destructive! fc:has-aria-invalid:ring-destructive/20! fc:has-aria-invalid:dark:ring-destructive/40!", "control"),
30
+ menu: /* @__PURE__ */ r(() => "fc:bg-popover fc:border fc:rounded-md fc:py-0 fc:overflow-hidden fc:shadow-md fc:mt-2", "menu"),
31
+ menuList: /* @__PURE__ */ r(() => "fc:py-0 fc:bg-popover", "menuList"),
32
+ option: /* @__PURE__ */ r((e) => m(
33
+ "fc:py-1 fc:px-2 fc:text-popover-foreground fc:text-base fc:md:text-sm!",
34
+ e.isSelected && "fc:bg-input-accent!",
35
+ e.isFocused && "fc:bg-input-accent/50"
36
+ ), "option"),
37
+ placeholder: /* @__PURE__ */ r(() => "fc:text-placeholder", "placeholder"),
38
+ multiValue: /* @__PURE__ */ r(() => "fc:bg-input-accent fc:text-input-accent-foreground fc:mr-1 fc:px-1 fc:py-0.5 fc:rounded-md fc:flex fc:items-center", "multiValue"),
39
+ multiValueRemove: /* @__PURE__ */ r(() => "fc:cursor-pointer", "multiValueRemove"),
40
+ dropdownIndicator: /* @__PURE__ */ r(() => "fc:text-placeholder fc:cursor-pointer", "dropdownIndicator"),
41
+ clearIndicator: /* @__PURE__ */ r(() => "fc:text-placeholder fc:cursor-pointer", "clearIndicator"),
42
+ noOptionsMessage: /* @__PURE__ */ r(() => "fc:py-2", "noOptionsMessage")
38
43
  },
39
- onBlur: l,
40
- placeholder: o,
44
+ onBlur: n,
45
+ placeholder: i,
41
46
  unstyled: !0
42
47
  }
43
48
  );
44
49
  }
45
- r(b, "Select");
50
+ r(y, "Select");
46
51
  export {
47
- b as Select
52
+ y as Select
48
53
  };
@@ -0,0 +1,15 @@
1
+ import * as React from "react";
2
+ import * as SheetPrimitive from "@radix-ui/react-dialog";
3
+ declare function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function SheetTrigger({ ...props }: React.ComponentProps<typeof SheetPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
5
+ declare function SheetClose({ ...props }: React.ComponentProps<typeof SheetPrimitive.Close>): import("react/jsx-runtime").JSX.Element;
6
+ declare function SheetContent({ className, children, side, size, ...props }: React.ComponentProps<typeof SheetPrimitive.Content> & {
7
+ side?: "right" | "left";
8
+ size?: "s" | "m" | "l";
9
+ }): import("react/jsx-runtime").JSX.Element;
10
+ declare function SheetHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
11
+ declare function SheetFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
12
+ declare function SheetBody({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
13
+ declare function SheetTitle({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
14
+ declare function SheetDescription({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
15
+ export { Sheet, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetBody, SheetTitle, SheetDescription, };
@@ -0,0 +1,146 @@
1
+ var l = Object.defineProperty;
2
+ var a = (t, e) => l(t, "name", { value: e, configurable: !0 });
3
+ import { jsx as c, jsxs as s } from "react/jsx-runtime";
4
+ import { Root as d, Trigger as u, Close as r, Content as h, Title as m, Description as p, Portal as g, Overlay as x } from "../node_modules/@radix-ui/react-dialog/dist/index.js";
5
+ import { XIcon as b } from "lucide-react";
6
+ import { cn as f } from "../lib/utils.js";
7
+ function j({ ...t }) {
8
+ return /* @__PURE__ */ c(d, { "data-slot": "sheet", ...t });
9
+ }
10
+ a(j, "Sheet");
11
+ function k({
12
+ ...t
13
+ }) {
14
+ return /* @__PURE__ */ c(u, { "data-slot": "sheet-trigger", ...t });
15
+ }
16
+ a(k, "SheetTrigger");
17
+ function D({
18
+ ...t
19
+ }) {
20
+ return /* @__PURE__ */ c(r, { "data-slot": "sheet-close", ...t });
21
+ }
22
+ a(D, "SheetClose");
23
+ function y({
24
+ ...t
25
+ }) {
26
+ return /* @__PURE__ */ c(g, { "data-slot": "sheet-portal", ...t });
27
+ }
28
+ a(y, "SheetPortal");
29
+ function S({
30
+ className: t,
31
+ ...e
32
+ }) {
33
+ return /* @__PURE__ */ c(
34
+ x,
35
+ {
36
+ "data-slot": "sheet-overlay",
37
+ className: f(
38
+ "fc:data-[state=open]:animate-in fc:data-[state=closed]:animate-out fc:data-[state=closed]:fade-out-0 fc:data-[state=open]:fade-in-0 fc:fixed fc:inset-0 fc:z-50 fc:bg-black/50",
39
+ t
40
+ ),
41
+ ...e
42
+ }
43
+ );
44
+ }
45
+ a(S, "SheetOverlay");
46
+ function O({
47
+ className: t,
48
+ children: e,
49
+ side: n = "right",
50
+ size: o = "s",
51
+ ...i
52
+ }) {
53
+ return /* @__PURE__ */ s(y, { children: [
54
+ /* @__PURE__ */ c(S, {}),
55
+ /* @__PURE__ */ s(
56
+ h,
57
+ {
58
+ "data-slot": "sheet-content",
59
+ className: f(
60
+ "fc:bg-card fc:data-[state=open]:animate-in fc:data-[state=closed]:animate-out fc:fixed fc:z-50 fc:flex fc:flex-col fc:gap-4 fc:shadow-lg fc:transition fc:ease-in-out fc:data-[state=closed]:duration-300 fc:data-[state=open]:duration-500",
61
+ n === "right" && "fc:data-[state=closed]:slide-out-to-right fc:data-[state=open]:slide-in-from-right fc:inset-y-0 fc:right-0 fc:h-full fc:border-l fc:w-[90%]",
62
+ n === "left" && "fc:data-[state=closed]:slide-out-to-left fc:data-[state=open]:slide-in-from-left fc:inset-y-0 fc:left-0 fc:h-full fc:border-r fc:w-[90%]",
63
+ o === "s" && "fc:md:max-w-1/3",
64
+ o === "m" && "fc:md:max-w-1/2",
65
+ o === "l" && "fc:md:max-w-2/3",
66
+ t
67
+ ),
68
+ ...i,
69
+ children: [
70
+ e,
71
+ /* @__PURE__ */ s(r, { className: "fc:ring-offset-background fc:focus:ring-ring fc:data-[state=open]:bg-secondary fc:absolute fc:top-4 fc:right-4 fc:rounded-xs fc:opacity-70 fc:transition-opacity fc:hover:opacity-100 fc:focus:ring-2 fc:focus:ring-offset-2 fc:focus:outline-hidden fc:disabled:pointer-events-none", children: [
72
+ /* @__PURE__ */ c(b, { className: "fc:size-4" }),
73
+ /* @__PURE__ */ c("span", { className: "fc:sr-only", children: "Close" })
74
+ ] })
75
+ ]
76
+ }
77
+ )
78
+ ] });
79
+ }
80
+ a(O, "SheetContent");
81
+ function P({ className: t, ...e }) {
82
+ return /* @__PURE__ */ c(
83
+ "div",
84
+ {
85
+ "data-slot": "sheet-header",
86
+ className: f(
87
+ "fc:flex fc:flex-col fc:gap-1.5 fc:px-4 fc:pt-4 ",
88
+ t
89
+ ),
90
+ ...e
91
+ }
92
+ );
93
+ }
94
+ a(P, "SheetHeader");
95
+ function z({ className: t, ...e }) {
96
+ return /* @__PURE__ */ c(
97
+ "div",
98
+ {
99
+ "data-slot": "sheet-footer",
100
+ className: f(
101
+ "fc:mt-auto fc:flex fc:flex-col fc:gap-2 fc:px-4 fc:pb-4",
102
+ t
103
+ ),
104
+ ...e
105
+ }
106
+ );
107
+ }
108
+ a(z, "SheetFooter");
109
+ function F({
110
+ className: t,
111
+ ...e
112
+ }) {
113
+ return /* @__PURE__ */ c(
114
+ m,
115
+ {
116
+ "data-slot": "sheet-title",
117
+ className: f("fc:text-foreground fc:font-semibold", t),
118
+ ...e
119
+ }
120
+ );
121
+ }
122
+ a(F, "SheetTitle");
123
+ function H({
124
+ className: t,
125
+ ...e
126
+ }) {
127
+ return /* @__PURE__ */ c(
128
+ p,
129
+ {
130
+ "data-slot": "sheet-description",
131
+ className: f("fc:text-muted fc:text-sm", t),
132
+ ...e
133
+ }
134
+ );
135
+ }
136
+ a(H, "SheetDescription");
137
+ export {
138
+ j as Sheet,
139
+ D as SheetClose,
140
+ O as SheetContent,
141
+ H as SheetDescription,
142
+ z as SheetFooter,
143
+ P as SheetHeader,
144
+ F as SheetTitle,
145
+ k as SheetTrigger
146
+ };
@@ -0,0 +1,69 @@
1
+ import * as React from "react";
2
+ import { VariantProps } from "class-variance-authority";
3
+ import { Button } from "../components/button";
4
+ import { Input } from "../components/input";
5
+ import { Separator } from "../components/separator";
6
+ import { TooltipContent } from "../components/tooltip";
7
+ type SidebarContextProps = {
8
+ state: "expanded" | "collapsed";
9
+ open: boolean;
10
+ setOpen: (open: boolean) => void;
11
+ openMobile: boolean;
12
+ setOpenMobile: (open: boolean) => void;
13
+ isMobile: boolean;
14
+ toggleSidebar: () => void;
15
+ };
16
+ declare function useSidebar(): SidebarContextProps;
17
+ declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: React.ComponentProps<"div"> & {
18
+ defaultOpen?: boolean;
19
+ open?: boolean;
20
+ onOpenChange?: (open: boolean) => void;
21
+ }): import("react/jsx-runtime").JSX.Element;
22
+ declare function Sidebar({ side, variant, collapsible, className, children, ...props }: React.ComponentProps<"div"> & {
23
+ side?: "left" | "right";
24
+ variant?: "sidebar" | "floating" | "inset";
25
+ collapsible?: "offcanvas" | "icon" | "none";
26
+ }): import("react/jsx-runtime").JSX.Element;
27
+ declare function SidebarTrigger({ className, onClick, ...props }: React.ComponentProps<typeof Button>): import("react/jsx-runtime").JSX.Element;
28
+ declare function SidebarRail({ className, ...props }: React.ComponentProps<"button">): import("react/jsx-runtime").JSX.Element;
29
+ declare function SidebarInset({ className, ...props }: React.ComponentProps<"main">): import("react/jsx-runtime").JSX.Element;
30
+ declare function SidebarInput({ className, ...props }: React.ComponentProps<typeof Input>): import("react/jsx-runtime").JSX.Element;
31
+ declare function SidebarHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
32
+ declare function SidebarFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
33
+ declare function SidebarSeparator({ className, ...props }: React.ComponentProps<typeof Separator>): import("react/jsx-runtime").JSX.Element;
34
+ declare function SidebarContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
35
+ declare function SidebarGroup({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
36
+ declare function SidebarGroupLabel({ className, asChild, ...props }: React.ComponentProps<"div"> & {
37
+ asChild?: boolean;
38
+ }): import("react/jsx-runtime").JSX.Element;
39
+ declare function SidebarGroupAction({ className, asChild, ...props }: React.ComponentProps<"button"> & {
40
+ asChild?: boolean;
41
+ }): import("react/jsx-runtime").JSX.Element;
42
+ declare function SidebarGroupContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
43
+ declare function SidebarMenu({ className, ...props }: React.ComponentProps<"ul">): import("react/jsx-runtime").JSX.Element;
44
+ declare function SidebarMenuItem({ className, ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
45
+ declare const sidebarMenuButtonVariants: (props?: ({
46
+ variant?: "default" | "outline" | null | undefined;
47
+ size?: "default" | "sm" | "lg" | null | undefined;
48
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
49
+ declare function SidebarMenuButton({ asChild, isActive, variant, size, tooltip, className, ...props }: React.ComponentProps<"button"> & {
50
+ asChild?: boolean;
51
+ isActive?: boolean;
52
+ tooltip?: string | React.ComponentProps<typeof TooltipContent>;
53
+ } & VariantProps<typeof sidebarMenuButtonVariants>): import("react/jsx-runtime").JSX.Element;
54
+ declare function SidebarMenuAction({ className, asChild, showOnHover, ...props }: React.ComponentProps<"button"> & {
55
+ asChild?: boolean;
56
+ showOnHover?: boolean;
57
+ }): import("react/jsx-runtime").JSX.Element;
58
+ declare function SidebarMenuBadge({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
59
+ declare function SidebarMenuSkeleton({ className, showIcon, ...props }: React.ComponentProps<"div"> & {
60
+ showIcon?: boolean;
61
+ }): import("react/jsx-runtime").JSX.Element;
62
+ declare function SidebarMenuSub({ className, ...props }: React.ComponentProps<"ul">): import("react/jsx-runtime").JSX.Element;
63
+ declare function SidebarMenuSubItem({ className, ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
64
+ declare function SidebarMenuSubButton({ asChild, size, isActive, className, ...props }: React.ComponentProps<"a"> & {
65
+ asChild?: boolean;
66
+ size?: "sm" | "md";
67
+ isActive?: boolean;
68
+ }): import("react/jsx-runtime").JSX.Element;
69
+ export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar, };
@@ -0,0 +1,4 @@
1
+ export declare function SimpleTooltip({ title, children, }: {
2
+ title: string;
3
+ children: React.ReactNode;
4
+ }): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ declare function Skeleton({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
2
+ export { Skeleton };
@@ -0,0 +1,3 @@
1
+ import { ToasterProps } from "sonner";
2
+ declare const Toaster: ({ ...props }: ToasterProps) => import("react/jsx-runtime").JSX.Element;
3
+ export { Toaster };
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import * as SwitchPrimitive from "@radix-ui/react-switch";
3
+ declare function Switch({ className, ...props }: React.ComponentProps<typeof SwitchPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ export { Switch };
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ declare function Table({ className, ...props }: React.ComponentProps<"table">): import("react/jsx-runtime").JSX.Element;
3
+ declare function TableHeader({ className, ...props }: React.ComponentProps<"thead">): import("react/jsx-runtime").JSX.Element;
4
+ declare function TableBody({ className, ...props }: React.ComponentProps<"tbody">): import("react/jsx-runtime").JSX.Element;
5
+ declare function TableFooter({ className, ...props }: React.ComponentProps<"tfoot">): import("react/jsx-runtime").JSX.Element;
6
+ declare function TableRow({ className, ...props }: React.ComponentProps<"tr">): import("react/jsx-runtime").JSX.Element;
7
+ declare function TableHead({ className, ...props }: React.ComponentProps<"th">): import("react/jsx-runtime").JSX.Element;
8
+ declare function TableCell({ className, ...props }: React.ComponentProps<"td">): import("react/jsx-runtime").JSX.Element;
9
+ declare function TableCaption({ className, ...props }: React.ComponentProps<"caption">): import("react/jsx-runtime").JSX.Element;
10
+ export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, };
@@ -0,0 +1,124 @@
1
+ var l = Object.defineProperty;
2
+ var a = (t, e) => l(t, "name", { value: e, configurable: !0 });
3
+ import { jsx as c } from "react/jsx-runtime";
4
+ import { cn as o } from "../lib/utils.js";
5
+ function s({ className: t, ...e }) {
6
+ return /* @__PURE__ */ c(
7
+ "div",
8
+ {
9
+ "data-slot": "table-container",
10
+ className: "fc:relative fc:w-full fc:overflow-x-auto",
11
+ children: /* @__PURE__ */ c(
12
+ "table",
13
+ {
14
+ "data-slot": "table",
15
+ className: o("fc:w-full fc:caption-bottom fc:text-sm", t),
16
+ ...e
17
+ }
18
+ )
19
+ }
20
+ );
21
+ }
22
+ a(s, "Table");
23
+ function b({ className: t, ...e }) {
24
+ return /* @__PURE__ */ c(
25
+ "thead",
26
+ {
27
+ "data-slot": "table-header",
28
+ className: o("fc:[&_tr]:border-b", t),
29
+ ...e
30
+ }
31
+ );
32
+ }
33
+ a(b, "TableHeader");
34
+ function d({ className: t, ...e }) {
35
+ return /* @__PURE__ */ c(
36
+ "tbody",
37
+ {
38
+ "data-slot": "table-body",
39
+ className: o("fc:[&_tr:last-child]:border-0", t),
40
+ ...e
41
+ }
42
+ );
43
+ }
44
+ a(d, "TableBody");
45
+ function i({ className: t, ...e }) {
46
+ return /* @__PURE__ */ c(
47
+ "tfoot",
48
+ {
49
+ "data-slot": "table-footer",
50
+ className: o(
51
+ "fc:bg-accent/50 fc:border-t fc:font-medium fc:[&>tr]:last:border-b-0",
52
+ t
53
+ ),
54
+ ...e
55
+ }
56
+ );
57
+ }
58
+ a(i, "TableFooter");
59
+ function m({ className: t, ...e }) {
60
+ return /* @__PURE__ */ c(
61
+ "tr",
62
+ {
63
+ "data-slot": "table-row",
64
+ className: o(
65
+ "fc:hover:bg-accent/50 fc:data-[state=selected]:bg-accent fc:border-b fc:transition-colors",
66
+ t
67
+ ),
68
+ ...e
69
+ }
70
+ );
71
+ }
72
+ a(m, "TableRow");
73
+ function u({ className: t, ...e }) {
74
+ return /* @__PURE__ */ c(
75
+ "th",
76
+ {
77
+ "data-slot": "table-head",
78
+ className: o(
79
+ "fc:text-foreground fc:h-10 fc:px-2 fc:text-left fc:align-middle fc:font-medium fc:whitespace-nowrap fc:[&:has([role=checkbox])]:pr-0 fc:[&>[role=checkbox]]:translate-y-[2px]",
80
+ t
81
+ ),
82
+ ...e
83
+ }
84
+ );
85
+ }
86
+ a(u, "TableHead");
87
+ function p({ className: t, ...e }) {
88
+ return /* @__PURE__ */ c(
89
+ "td",
90
+ {
91
+ "data-slot": "table-cell",
92
+ className: o(
93
+ "fc:p-2 fc:align-middle fc:whitespace-nowrap fc:[&:has([role=checkbox])]:pr-0 fc:[&>[role=checkbox]]:translate-y-[2px]",
94
+ t
95
+ ),
96
+ ...e
97
+ }
98
+ );
99
+ }
100
+ a(p, "TableCell");
101
+ function h({
102
+ className: t,
103
+ ...e
104
+ }) {
105
+ return /* @__PURE__ */ c(
106
+ "caption",
107
+ {
108
+ "data-slot": "table-caption",
109
+ className: o("fc:text-muted fc:mt-4 fc:text-sm", t),
110
+ ...e
111
+ }
112
+ );
113
+ }
114
+ a(h, "TableCaption");
115
+ export {
116
+ s as Table,
117
+ d as TableBody,
118
+ h as TableCaption,
119
+ p as TableCell,
120
+ i as TableFooter,
121
+ u as TableHead,
122
+ b as TableHeader,
123
+ m as TableRow
124
+ };
@@ -1,73 +1,73 @@
1
- var i = Object.defineProperty;
2
- var s = (t, e) => i(t, "name", { value: e, configurable: !0 });
3
- import { jsx as r } from "react/jsx-runtime";
4
- import { Root as o, List as n, Trigger as l, Content as c } from "../node_modules/@radix-ui/react-tabs/dist/index.js";
5
- import { cn as a } from "../lib/utils.js";
1
+ var r = Object.defineProperty;
2
+ var c = (t, e) => r(t, "name", { value: e, configurable: !0 });
3
+ import { jsx as f } from "react/jsx-runtime";
4
+ import { Root as a, List as i, Trigger as n, Content as o } from "../node_modules/@radix-ui/react-tabs/dist/index.js";
5
+ import { cn as s } from "../lib/utils.js";
6
6
  function p({
7
7
  className: t,
8
8
  ...e
9
9
  }) {
10
- return /* @__PURE__ */ r(
11
- o,
10
+ return /* @__PURE__ */ f(
11
+ a,
12
12
  {
13
13
  "data-slot": "tabs",
14
- className: a("flex flex-col gap-2", t),
14
+ className: s("fc:flex fc:flex-col fc:gap-2", t),
15
15
  ...e
16
16
  }
17
17
  );
18
18
  }
19
- s(p, "Tabs");
20
- function g({
19
+ c(p, "Tabs");
20
+ function m({
21
21
  className: t,
22
22
  ...e
23
23
  }) {
24
- return /* @__PURE__ */ r(
25
- n,
24
+ return /* @__PURE__ */ f(
25
+ i,
26
26
  {
27
27
  "data-slot": "tabs-list",
28
- className: a(
29
- "bg-tabs text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",
28
+ className: s(
29
+ "fc:bg-tabs fc:text-muted fc:inline-flex fc:h-9 fc:w-fit fc:items-center fc:justify-center fc:rounded-lg fc:p-[3px]",
30
30
  t
31
31
  ),
32
32
  ...e
33
33
  }
34
34
  );
35
35
  }
36
- s(g, "TabsList");
37
- function m({
36
+ c(m, "TabsList");
37
+ function g({
38
38
  className: t,
39
39
  ...e
40
40
  }) {
41
- return /* @__PURE__ */ r(
42
- l,
41
+ return /* @__PURE__ */ f(
42
+ n,
43
43
  {
44
44
  "data-slot": "tabs-trigger",
45
- className: a(
46
- "cursor-pointer data-[state=active]:bg-primary data-[state=active]:text-primary-foreground focus-visible:border-ring focus-visible:ring-primary/50 focus-visible:outline-ring dark:data-[state=active]:border-input text-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
45
+ className: s(
46
+ "fc:cursor-pointer fc:data-[state=active]:bg-primary fc:data-[state=active]:text-primary-foreground fc:focus-visible:border-ring fc:focus-visible:ring-primary/50 fc:focus-visible:outline-ring fc:dark:data-[state=active]:border-input fc:text-foreground fc:inline-flex fc:h-[calc(100%-1px)] fc:flex-1 fc:items-center fc:justify-center fc:gap-1.5 fc:rounded-md fc:border fc:border-transparent fc:px-2 fc:py-1 fc:text-sm fc:font-medium fc:whitespace-nowrap fc:transition-[color,box-shadow] fc:focus-visible:ring-[3px] fc:focus-visible:outline-1 fc:disabled:pointer-events-none fc:disabled:opacity-50 fc:data-[state=active]:shadow-sm fc:[&_svg]:pointer-events-none fc:[&_svg]:shrink-0 fc:[&_svg:not([class*='size-'])]:size-4",
47
47
  t
48
48
  ),
49
49
  ...e
50
50
  }
51
51
  );
52
52
  }
53
- s(m, "TabsTrigger");
53
+ c(g, "TabsTrigger");
54
54
  function x({
55
55
  className: t,
56
56
  ...e
57
57
  }) {
58
- return /* @__PURE__ */ r(
59
- c,
58
+ return /* @__PURE__ */ f(
59
+ o,
60
60
  {
61
61
  "data-slot": "tabs-content",
62
- className: a("flex-1 outline-none", t),
62
+ className: s("fc:flex-1 fc:outline-none", t),
63
63
  ...e
64
64
  }
65
65
  );
66
66
  }
67
- s(x, "TabsContent");
67
+ c(x, "TabsContent");
68
68
  export {
69
69
  p as Tabs,
70
70
  x as TabsContent,
71
- g as TabsList,
72
- m as TabsTrigger
71
+ m as TabsList,
72
+ g as TabsTrigger
73
73
  };
@@ -0,0 +1,3 @@
1
+ import * as React from "react";
2
+ declare function Textarea({ className, ...props }: React.ComponentProps<"textarea">): import("react/jsx-runtime").JSX.Element;
3
+ export { Textarea };
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ import * as TooltipPrimitive from "@radix-ui/react-tooltip";
3
+ declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): import("react/jsx-runtime").JSX.Element;
4
+ declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
5
+ declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
6
+ declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
7
+ export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
@@ -14,3 +14,5 @@ export { Pagination, PaginationContent, PaginationLink, PaginationItem, Paginati
14
14
  export { SimplePagination } from "./components/simple-pagination";
15
15
  export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor, } from "./components/popover";
16
16
  export { Select } from "./components/select";
17
+ export { Sheet, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, } from "./components/sheet";
18
+ export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, } from "./components/table";