fina-react-ds 0.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.
- package/README.md +17 -0
- package/dist/_virtual/index.js +5 -0
- package/dist/_virtual/index2.js +4 -0
- package/dist/_virtual/use-sync-external-store-shim.development.js +4 -0
- package/dist/_virtual/use-sync-external-store-shim.production.js +4 -0
- package/dist/components/alert-dialog.d.ts +16 -0
- package/dist/components/alert.d.ts +8 -0
- package/dist/components/alert.js +70 -0
- package/dist/components/avatar.d.ts +5 -0
- package/dist/components/avatar.js +58 -0
- package/dist/components/badge.d.ts +8 -0
- package/dist/components/badge.js +43 -0
- package/dist/components/button.d.ts +10 -0
- package/dist/components/button.js +152 -0
- package/dist/components/card.d.ts +8 -0
- package/dist/components/card.js +99 -0
- package/dist/components/checkbox.d.ts +4 -0
- package/dist/components/checkbox.js +34 -0
- package/dist/components/dialog.d.ts +15 -0
- package/dist/components/dialog.js +148 -0
- package/dist/components/dropdown-menu.d.ts +25 -0
- package/dist/components/dropdown-menu.js +248 -0
- package/dist/components/input.d.ts +3 -0
- package/dist/components/input.js +24 -0
- package/dist/components/label.d.ts +6 -0
- package/dist/components/label.js +32 -0
- package/dist/components/pagination.d.ts +13 -0
- package/dist/components/pagination.js +128 -0
- package/dist/components/popover.d.ts +7 -0
- package/dist/components/popover.js +50 -0
- package/dist/components/select.d.ts +11 -0
- package/dist/components/select.js +48 -0
- package/dist/components/separator.d.ts +4 -0
- package/dist/components/simple-pagination.d.ts +6 -0
- package/dist/components/simple-pagination.js +34 -0
- package/dist/components/tabs.d.ts +7 -0
- package/dist/components/tabs.js +73 -0
- package/dist/hooks/use-mobile.d.ts +1 -0
- package/dist/index.js +80 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/lib/utils.js +11 -0
- package/dist/lib.d.ts +16 -0
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +534 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +430 -0
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +215 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +159 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +149 -0
- package/dist/node_modules/@radix-ui/primitive/dist/index.js +12 -0
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +24 -0
- package/dist/node_modules/@radix-ui/react-avatar/dist/index.js +80 -0
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +258 -0
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js +51 -0
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +34 -0
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +76 -0
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +265 -0
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js +12 -0
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +133 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +230 -0
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +21 -0
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +149 -0
- package/dist/node_modules/@radix-ui/react-id/dist/index.js +16 -0
- package/dist/node_modules/@radix-ui/react-label/dist/index.js +22 -0
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js +663 -0
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +247 -0
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +224 -0
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +16 -0
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +77 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +39 -0
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +189 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +60 -0
- package/dist/node_modules/@radix-ui/react-tabs/dist/index.js +168 -0
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +16 -0
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +59 -0
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +17 -0
- package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +19 -0
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +6 -0
- package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +11 -0
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +30 -0
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +54 -0
- package/dist/node_modules/get-nonce/dist/es2015/index.js +9 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +11 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +116 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +33 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +18 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +70 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +5 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +7 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +73 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +7 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +27 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js +13 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +17 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +35 -0
- package/dist/node_modules/tslib/tslib.es6.js +31 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +9 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +29 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +28 -0
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js +21 -0
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js +72 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +73 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +62 -0
- package/dist/node_modules/use-sync-external-store/shim/index.js +13 -0
- package/dist/themes/base.css +1982 -0
- package/dist/themes/pro.css +188 -0
- package/dist/themes/puulse-colors.css +388 -0
- package/package.json +114 -0
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# ELSAN REACT PUULSE
|
|
2
|
+
|
|
3
|
+
### Storybook
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
### Installation du package dans un projet:
|
|
8
|
+
[Voir instructions](docs/installation-as-dependency.md)
|
|
9
|
+
|
|
10
|
+
#### Configuration Tailwind >= 4
|
|
11
|
+
[Voir instructions](docs/config-tailwind-4)
|
|
12
|
+
|
|
13
|
+
#### Configuration Thème personnalisé
|
|
14
|
+
[Voir instructions](docs/config-theme)
|
|
15
|
+
|
|
16
|
+
### Installation pour développement:
|
|
17
|
+
[Voir instructions](docs/installation-for-dev.md)
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
3
|
+
declare function AlertDialog({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function AlertDialogTrigger({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function AlertDialogPortal({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function AlertDialogOverlay({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function AlertDialogContent({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function AlertDialogHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function AlertDialogFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function AlertDialogTitle({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function AlertDialogDescription({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function AlertDialogAction({ color, className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Action> & {
|
|
13
|
+
color?: "primary" | "info" | "success" | "warning" | "destructive" | "dark";
|
|
14
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare function AlertDialogCancel({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Cancel>): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { VariantProps } from "class-variance-authority";
|
|
2
|
+
declare const alertVariants: (props?: ({
|
|
3
|
+
variant?: "info" | "warning" | "success" | "destructive" | null | undefined;
|
|
4
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
5
|
+
declare function Alert({ variant, className, ...props }: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function AlertTitle({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function AlertDescription({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export { Alert, AlertTitle, AlertDescription };
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
var g = Object.defineProperty;
|
|
2
|
+
var e = (t, r) => g(t, "name", { value: r, configurable: !0 });
|
|
3
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
4
|
+
import { cva as n } from "class-variance-authority";
|
|
5
|
+
import { cn as o } from "../lib/utils.js";
|
|
6
|
+
const a = n(
|
|
7
|
+
"relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",
|
|
8
|
+
{
|
|
9
|
+
variants: {
|
|
10
|
+
variant: {
|
|
11
|
+
info: "bg-info-light *:data-[slot=alert-description]:text-info-light-foreground text-info-light-foreground border-info-light-foreground/20 [&>svg]:text-info-light-foreground",
|
|
12
|
+
warning: "bg-warning-light text-warning-light-foreground border-warning-light-foreground/20 [&>svg]:text-warning-light-foreground",
|
|
13
|
+
success: "bg-success-light text-success-light-foreground border-success-light-foreground/20 [&>svg]:text-success-light-foreground",
|
|
14
|
+
destructive: "bg-destructive-light text-destructive-light-foreground border-destructive-light-foreground/20 [&>svg]:text-destructive-light-foreground"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
defaultVariants: {
|
|
18
|
+
variant: "info"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
function f({
|
|
23
|
+
variant: t,
|
|
24
|
+
className: r,
|
|
25
|
+
...s
|
|
26
|
+
}) {
|
|
27
|
+
return /* @__PURE__ */ i(
|
|
28
|
+
"div",
|
|
29
|
+
{
|
|
30
|
+
"data-slot": "alert",
|
|
31
|
+
role: "alert",
|
|
32
|
+
className: o(a({ variant: t }), r),
|
|
33
|
+
...s
|
|
34
|
+
}
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
e(f, "Alert");
|
|
38
|
+
function v({ className: t, ...r }) {
|
|
39
|
+
return /* @__PURE__ */ i(
|
|
40
|
+
"div",
|
|
41
|
+
{
|
|
42
|
+
"data-slot": "alert-title",
|
|
43
|
+
className: o(
|
|
44
|
+
"col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",
|
|
45
|
+
t
|
|
46
|
+
),
|
|
47
|
+
...r
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
e(v, "AlertTitle");
|
|
52
|
+
function h({ className: t, ...r }) {
|
|
53
|
+
return /* @__PURE__ */ i(
|
|
54
|
+
"div",
|
|
55
|
+
{
|
|
56
|
+
"data-slot": "alert-description",
|
|
57
|
+
className: o(
|
|
58
|
+
"col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",
|
|
59
|
+
t
|
|
60
|
+
),
|
|
61
|
+
...r
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
e(h, "AlertDescription");
|
|
66
|
+
export {
|
|
67
|
+
f as Alert,
|
|
68
|
+
h as AlertDescription,
|
|
69
|
+
v as AlertTitle
|
|
70
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
2
|
+
declare function Avatar({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function AvatarImage({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function AvatarFallback({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Fallback>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export { Avatar, AvatarImage, AvatarFallback };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
var o = Object.defineProperty;
|
|
2
|
+
var e = (a, t) => o(a, "name", { value: t, configurable: !0 });
|
|
3
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
4
|
+
import { Root as s, Image as n, Fallback as f } from "../node_modules/@radix-ui/react-avatar/dist/index.js";
|
|
5
|
+
import { cn as l } from "../lib/utils.js";
|
|
6
|
+
function d({
|
|
7
|
+
className: a,
|
|
8
|
+
...t
|
|
9
|
+
}) {
|
|
10
|
+
return /* @__PURE__ */ r(
|
|
11
|
+
s,
|
|
12
|
+
{
|
|
13
|
+
"data-slot": "avatar",
|
|
14
|
+
className: l(
|
|
15
|
+
"relative flex size-8 shrink-0 overflow-hidden rounded-full",
|
|
16
|
+
a
|
|
17
|
+
),
|
|
18
|
+
...t
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
e(d, "Avatar");
|
|
23
|
+
function v({
|
|
24
|
+
className: a,
|
|
25
|
+
...t
|
|
26
|
+
}) {
|
|
27
|
+
return /* @__PURE__ */ r(
|
|
28
|
+
n,
|
|
29
|
+
{
|
|
30
|
+
"data-slot": "avatar-image",
|
|
31
|
+
className: l("aspect-square size-full", a),
|
|
32
|
+
...t
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
e(v, "AvatarImage");
|
|
37
|
+
function p({
|
|
38
|
+
className: a,
|
|
39
|
+
...t
|
|
40
|
+
}) {
|
|
41
|
+
return /* @__PURE__ */ r(
|
|
42
|
+
f,
|
|
43
|
+
{
|
|
44
|
+
"data-slot": "avatar-fallback",
|
|
45
|
+
className: l(
|
|
46
|
+
"bg-muted flex size-full items-center justify-center rounded-full",
|
|
47
|
+
a
|
|
48
|
+
),
|
|
49
|
+
...t
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
e(p, "AvatarFallback");
|
|
54
|
+
export {
|
|
55
|
+
d as Avatar,
|
|
56
|
+
p as AvatarFallback,
|
|
57
|
+
v as AvatarImage
|
|
58
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { VariantProps } from "class-variance-authority";
|
|
2
|
+
declare const badgeVariants: (props?: ({
|
|
3
|
+
variant?: "info" | "warning" | "success" | "destructive" | "primary" | null | undefined;
|
|
4
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
5
|
+
declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
|
|
6
|
+
asChild?: boolean;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export { Badge, badgeVariants };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
var n = Object.defineProperty;
|
|
2
|
+
var e = (r, i) => n(r, "name", { value: i, configurable: !0 });
|
|
3
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
4
|
+
import { Root as g } from "../node_modules/@radix-ui/react-slot/dist/index.js";
|
|
5
|
+
import { cva as a } from "class-variance-authority";
|
|
6
|
+
import { cn as d } from "../lib/utils.js";
|
|
7
|
+
const f = a(
|
|
8
|
+
"inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
|
|
9
|
+
{
|
|
10
|
+
variants: {
|
|
11
|
+
variant: {
|
|
12
|
+
primary: "bg-primary-light text-primary-light-foreground border-primary-light-foreground/20",
|
|
13
|
+
info: "bg-info-light text-info-light-foreground border-info-light-foreground/20",
|
|
14
|
+
warning: "bg-warning-light text-warning-light-foreground border-warning-light-foreground/20",
|
|
15
|
+
success: "bg-success-light text-success-light-foreground border-success-light-foreground/20",
|
|
16
|
+
destructive: "bg-destructive-light text-destructive-light-foreground border-destructive-light-foreground/20"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
defaultVariants: {
|
|
20
|
+
variant: "info"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
function m({
|
|
25
|
+
className: r,
|
|
26
|
+
variant: i,
|
|
27
|
+
asChild: t = !1,
|
|
28
|
+
...o
|
|
29
|
+
}) {
|
|
30
|
+
return /* @__PURE__ */ s(
|
|
31
|
+
t ? g : "span",
|
|
32
|
+
{
|
|
33
|
+
"data-slot": "badge",
|
|
34
|
+
className: d(f({ variant: i }), r),
|
|
35
|
+
...o
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
e(m, "Badge");
|
|
40
|
+
export {
|
|
41
|
+
m as Badge,
|
|
42
|
+
f as badgeVariants
|
|
43
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { VariantProps } from "class-variance-authority";
|
|
2
|
+
declare const buttonVariants: (props?: ({
|
|
3
|
+
color?: "info" | "warning" | "success" | "destructive" | "primary" | "dark" | null | undefined;
|
|
4
|
+
variant?: "link" | "contained" | "outline" | "ghost" | null | undefined;
|
|
5
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
declare function Button({ className, variant, color, size, asChild, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
8
|
+
asChild?: boolean;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export { Button, buttonVariants };
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
var s = Object.defineProperty;
|
|
2
|
+
var o = (r, e) => s(r, "name", { value: e, configurable: !0 });
|
|
3
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
4
|
+
import { Root as d } from "../node_modules/@radix-ui/react-slot/dist/index.js";
|
|
5
|
+
import { cva as v } from "class-variance-authority";
|
|
6
|
+
import { cn as g } from "../lib/utils.js";
|
|
7
|
+
const u = v(
|
|
8
|
+
"cursor-pointer inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
9
|
+
{
|
|
10
|
+
variants: {
|
|
11
|
+
color: {
|
|
12
|
+
primary: "focus-visible:ring-primary/50",
|
|
13
|
+
info: "focus-visible:ring-info/50",
|
|
14
|
+
success: "focus-visible:ring-success/50",
|
|
15
|
+
warning: "focus-visible:ring-warning/50",
|
|
16
|
+
destructive: "focus-visible:ring-destructive/50",
|
|
17
|
+
dark: "focus-visible:ring-black/50"
|
|
18
|
+
},
|
|
19
|
+
variant: {
|
|
20
|
+
contained: "border",
|
|
21
|
+
outline: "border bg-transparent",
|
|
22
|
+
ghost: "border border-transparent",
|
|
23
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
24
|
+
},
|
|
25
|
+
size: {
|
|
26
|
+
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
27
|
+
sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
|
|
28
|
+
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
|
|
29
|
+
icon: "size-9"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
compoundVariants: [
|
|
33
|
+
{
|
|
34
|
+
color: "primary",
|
|
35
|
+
variant: "contained",
|
|
36
|
+
className: "bg-primary border-primary text-primary-foreground hover:bg-primary/90"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
color: "info",
|
|
40
|
+
variant: "contained",
|
|
41
|
+
className: "bg-info border-info text-info-foreground hover:bg-info/90"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
color: "success",
|
|
45
|
+
variant: "contained",
|
|
46
|
+
className: "bg-success border-success text-success-foreground hover:bg-success/90"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
color: "warning",
|
|
50
|
+
variant: "contained",
|
|
51
|
+
className: "bg-warning border-warning text-warning-foreground hover:bg-warning/90"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
color: "destructive",
|
|
55
|
+
variant: "contained",
|
|
56
|
+
className: "bg-destructive border-destructive text-destructive-foreground hover:bg-destructive/90"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
color: "dark",
|
|
60
|
+
variant: "contained",
|
|
61
|
+
className: "bg-dark border-dark text-dark-foreground hover:bg-dark/90"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
color: "primary",
|
|
65
|
+
variant: "outline",
|
|
66
|
+
className: "border-primary text-primary hover:bg-primary hover:text-primary-foreground"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
color: "info",
|
|
70
|
+
variant: "outline",
|
|
71
|
+
className: "border-info text-info hover:bg-info hover:text-info-foreground"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
color: "success",
|
|
75
|
+
variant: "outline",
|
|
76
|
+
className: "border-success text-success hover:bg-success hover:text-success-foreground"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
color: "warning",
|
|
80
|
+
variant: "outline",
|
|
81
|
+
className: "border-warning text-warning hover:bg-warning hover:text-warning-foreground"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
color: "destructive",
|
|
85
|
+
variant: "outline",
|
|
86
|
+
className: "border-destructive text-destructive hover:bg-destructive hover:text-destructive-foreground"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
color: "dark",
|
|
90
|
+
variant: "outline",
|
|
91
|
+
className: "border-dark text-dark hover:bg-dark hover:text-dark-foreground dark:text-dark-foreground"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
color: "primary",
|
|
95
|
+
variant: "ghost",
|
|
96
|
+
className: "text-primary hover:bg-primary/10"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
color: "info",
|
|
100
|
+
variant: "ghost",
|
|
101
|
+
className: "text-info hover:bg-info/10"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
color: "success",
|
|
105
|
+
variant: "ghost",
|
|
106
|
+
className: "text-success hover:bg-success/10"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
color: "warning",
|
|
110
|
+
variant: "ghost",
|
|
111
|
+
className: "text-warning hover:bg-warning/10"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
color: "destructive",
|
|
115
|
+
variant: "ghost",
|
|
116
|
+
className: "text-destructive hover:bg-destructive/10"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
color: "dark",
|
|
120
|
+
variant: "ghost",
|
|
121
|
+
className: "text-dark dark:text-dark-foreground hover:bg-dark/10 dark:hover:bg-dark"
|
|
122
|
+
}
|
|
123
|
+
],
|
|
124
|
+
defaultVariants: {
|
|
125
|
+
variant: "contained",
|
|
126
|
+
color: "primary",
|
|
127
|
+
size: "default"
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
);
|
|
131
|
+
function x({
|
|
132
|
+
className: r,
|
|
133
|
+
variant: e,
|
|
134
|
+
color: t,
|
|
135
|
+
size: a,
|
|
136
|
+
asChild: i = !1,
|
|
137
|
+
...n
|
|
138
|
+
}) {
|
|
139
|
+
return /* @__PURE__ */ c(
|
|
140
|
+
i ? d : "button",
|
|
141
|
+
{
|
|
142
|
+
"data-slot": "button",
|
|
143
|
+
className: g(u({ variant: e, color: t, size: a, className: r })),
|
|
144
|
+
...n
|
|
145
|
+
}
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
o(x, "Button");
|
|
149
|
+
export {
|
|
150
|
+
x as Button,
|
|
151
|
+
u as buttonVariants
|
|
152
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare function Card({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare function CardHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function CardTitle({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function CardDescription({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function CardAction({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function CardContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function CardFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, };
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
var d = Object.defineProperty;
|
|
2
|
+
var a = (t, r) => d(t, "name", { value: r, configurable: !0 });
|
|
3
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
4
|
+
import { cn as e } from "../lib/utils.js";
|
|
5
|
+
function i({ className: t, ...r }) {
|
|
6
|
+
return /* @__PURE__ */ o(
|
|
7
|
+
"div",
|
|
8
|
+
{
|
|
9
|
+
"data-slot": "card",
|
|
10
|
+
className: e(
|
|
11
|
+
"bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",
|
|
12
|
+
t
|
|
13
|
+
),
|
|
14
|
+
...r
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
a(i, "Card");
|
|
19
|
+
function l({ className: t, ...r }) {
|
|
20
|
+
return /* @__PURE__ */ o(
|
|
21
|
+
"div",
|
|
22
|
+
{
|
|
23
|
+
"data-slot": "card-header",
|
|
24
|
+
className: e(
|
|
25
|
+
"@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",
|
|
26
|
+
t
|
|
27
|
+
),
|
|
28
|
+
...r
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
a(l, "CardHeader");
|
|
33
|
+
function u({ className: t, ...r }) {
|
|
34
|
+
return /* @__PURE__ */ o(
|
|
35
|
+
"div",
|
|
36
|
+
{
|
|
37
|
+
"data-slot": "card-title",
|
|
38
|
+
className: e("leading-none font-semibold", t),
|
|
39
|
+
...r
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
a(u, "CardTitle");
|
|
44
|
+
function f({ className: t, ...r }) {
|
|
45
|
+
return /* @__PURE__ */ o(
|
|
46
|
+
"div",
|
|
47
|
+
{
|
|
48
|
+
"data-slot": "card-description",
|
|
49
|
+
className: e("text-muted-foreground text-sm", t),
|
|
50
|
+
...r
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
a(f, "CardDescription");
|
|
55
|
+
function m({ className: t, ...r }) {
|
|
56
|
+
return /* @__PURE__ */ o(
|
|
57
|
+
"div",
|
|
58
|
+
{
|
|
59
|
+
"data-slot": "card-action",
|
|
60
|
+
className: e(
|
|
61
|
+
"col-start-2 row-span-2 row-start-1 self-start justify-self-end",
|
|
62
|
+
t
|
|
63
|
+
),
|
|
64
|
+
...r
|
|
65
|
+
}
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
a(m, "CardAction");
|
|
69
|
+
function p({ className: t, ...r }) {
|
|
70
|
+
return /* @__PURE__ */ o(
|
|
71
|
+
"div",
|
|
72
|
+
{
|
|
73
|
+
"data-slot": "card-content",
|
|
74
|
+
className: e("px-6", t),
|
|
75
|
+
...r
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
a(p, "CardContent");
|
|
80
|
+
function x({ className: t, ...r }) {
|
|
81
|
+
return /* @__PURE__ */ o(
|
|
82
|
+
"div",
|
|
83
|
+
{
|
|
84
|
+
"data-slot": "card-footer",
|
|
85
|
+
className: e("flex items-center px-6 [.border-t]:pt-6", t),
|
|
86
|
+
...r
|
|
87
|
+
}
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
a(x, "CardFooter");
|
|
91
|
+
export {
|
|
92
|
+
i as Card,
|
|
93
|
+
m as CardAction,
|
|
94
|
+
p as CardContent,
|
|
95
|
+
f as CardDescription,
|
|
96
|
+
x as CardFooter,
|
|
97
|
+
l as CardHeader,
|
|
98
|
+
u as CardTitle
|
|
99
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
var t = Object.defineProperty;
|
|
2
|
+
var a = (e, r) => t(e, "name", { value: r, configurable: !0 });
|
|
3
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
4
|
+
import { Checkbox as o, CheckboxIndicator as c } from "../node_modules/@radix-ui/react-checkbox/dist/index.js";
|
|
5
|
+
import { CheckIcon as d } from "lucide-react";
|
|
6
|
+
import { cn as n } from "../lib/utils.js";
|
|
7
|
+
function u({
|
|
8
|
+
className: e,
|
|
9
|
+
...r
|
|
10
|
+
}) {
|
|
11
|
+
return /* @__PURE__ */ i(
|
|
12
|
+
o,
|
|
13
|
+
{
|
|
14
|
+
"data-slot": "checkbox",
|
|
15
|
+
className: n(
|
|
16
|
+
"peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
|
|
17
|
+
e
|
|
18
|
+
),
|
|
19
|
+
...r,
|
|
20
|
+
children: /* @__PURE__ */ i(
|
|
21
|
+
c,
|
|
22
|
+
{
|
|
23
|
+
"data-slot": "checkbox-indicator",
|
|
24
|
+
className: "flex items-center justify-center text-current transition-none",
|
|
25
|
+
children: /* @__PURE__ */ i(d, { className: "size-3.5" })
|
|
26
|
+
}
|
|
27
|
+
)
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
a(u, "Checkbox");
|
|
32
|
+
export {
|
|
33
|
+
u as Checkbox
|
|
34
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
3
|
+
declare function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function DialogContent({ className, children, showCloseButton, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
|
|
9
|
+
showCloseButton?: boolean;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function DialogFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
|