fina-react-ds 0.0.1 → 1.0.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.
- package/README.md +5 -15
- package/dist/components/alert.js +30 -27
- package/dist/components/avatar.js +19 -19
- package/dist/components/badge.js +19 -19
- package/dist/components/button.js +51 -51
- package/dist/components/calendar.d.ts +8 -0
- package/dist/components/calendar.js +206 -0
- package/dist/components/card.js +43 -43
- package/dist/components/checkbox.js +17 -17
- package/dist/components/date-picker.d.ts +6 -0
- package/dist/components/date-picker.js +61 -0
- package/dist/components/dialog.js +43 -46
- package/dist/components/dropdown-menu.js +29 -29
- package/dist/components/input.js +15 -13
- package/dist/components/label.js +17 -17
- package/dist/components/pagination.js +25 -25
- package/dist/components/popover.js +9 -9
- package/dist/components/select.js +38 -33
- package/dist/components/separator.js +29 -0
- package/dist/components/sheet.d.ts +15 -0
- package/dist/components/sheet.js +158 -0
- package/dist/components/sidebar.d.ts +69 -0
- package/dist/components/sidebar.js +620 -0
- package/dist/components/simple-tooltip.d.ts +4 -0
- package/dist/components/simple-tooltip.js +17 -0
- package/dist/components/skeleton.d.ts +2 -0
- package/dist/components/skeleton.js +18 -0
- package/dist/components/sonner.d.ts +3 -0
- package/dist/components/sonner.js +24 -0
- package/dist/components/switch.d.ts +4 -0
- package/dist/components/switch.js +34 -0
- package/dist/components/table.d.ts +10 -0
- package/dist/components/table.js +124 -0
- package/dist/components/tabs.js +27 -27
- package/dist/components/textarea.d.ts +3 -0
- package/dist/components/textarea.js +23 -0
- package/dist/components/tooltip.d.ts +7 -0
- package/dist/components/tooltip.js +61 -0
- package/dist/hooks/use-mobile.js +17 -0
- package/dist/index.d.ts +14 -2
- package/dist/index.js +138 -73
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +12 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +21 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchFn.js +36 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +18 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatDistance.js +72 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatLong.js +33 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatRelative.js +13 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/localize.js +123 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/match.js +112 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr.js +21 -0
- package/dist/node_modules/@radix-ui/react-separator/dist/index.js +27 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +47 -40
- package/dist/node_modules/@radix-ui/react-switch/dist/index.js +136 -0
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +348 -0
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js +32 -0
- package/dist/themes/base.css +1679 -585
- package/package.json +4 -19
- package/dist/themes/pro.css +0 -188
- package/dist/themes/puulse-colors.css +0 -388
|
@@ -0,0 +1,158 @@
|
|
|
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 y } 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 b({
|
|
24
|
+
...t
|
|
25
|
+
}) {
|
|
26
|
+
return /* @__PURE__ */ c(g, { "data-slot": "sheet-portal", ...t });
|
|
27
|
+
}
|
|
28
|
+
a(b, "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(b, { 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(y, { 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 B({ className: t, ...e }) {
|
|
110
|
+
return /* @__PURE__ */ c(
|
|
111
|
+
"div",
|
|
112
|
+
{
|
|
113
|
+
"data-slot": "sheet-body",
|
|
114
|
+
className: f("fc:p-4 fc:flex-1 fc:overflow-y-auto", t),
|
|
115
|
+
...e
|
|
116
|
+
}
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
a(B, "SheetBody");
|
|
120
|
+
function F({
|
|
121
|
+
className: t,
|
|
122
|
+
...e
|
|
123
|
+
}) {
|
|
124
|
+
return /* @__PURE__ */ c(
|
|
125
|
+
m,
|
|
126
|
+
{
|
|
127
|
+
"data-slot": "sheet-title",
|
|
128
|
+
className: f("fc:text-foreground fc:font-semibold", t),
|
|
129
|
+
...e
|
|
130
|
+
}
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
a(F, "SheetTitle");
|
|
134
|
+
function H({
|
|
135
|
+
className: t,
|
|
136
|
+
...e
|
|
137
|
+
}) {
|
|
138
|
+
return /* @__PURE__ */ c(
|
|
139
|
+
p,
|
|
140
|
+
{
|
|
141
|
+
"data-slot": "sheet-description",
|
|
142
|
+
className: f("fc:text-muted fc:text-sm", t),
|
|
143
|
+
...e
|
|
144
|
+
}
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
a(H, "SheetDescription");
|
|
148
|
+
export {
|
|
149
|
+
j as Sheet,
|
|
150
|
+
B as SheetBody,
|
|
151
|
+
D as SheetClose,
|
|
152
|
+
O as SheetContent,
|
|
153
|
+
H as SheetDescription,
|
|
154
|
+
z as SheetFooter,
|
|
155
|
+
P as SheetHeader,
|
|
156
|
+
F as SheetTitle,
|
|
157
|
+
k as SheetTrigger
|
|
158
|
+
};
|
|
@@ -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, };
|