@yuno-payments/dashboard-design-system 0.0.44 → 0.0.46
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/dist/components/atoms/card/card.d.ts +1 -1
- package/dist/components/atoms/checkbox/checkbox.d.ts +1 -1
- package/dist/components/atoms/checkbox/checkbox.js +11 -11
- package/dist/components/atoms/icon/icon.d.ts +1 -0
- package/dist/components/atoms/icon/icon.js +19 -18
- package/dist/components/atoms/index.d.ts +7 -3
- package/dist/components/atoms/input/input.js +10 -10
- package/dist/components/atoms/password-input/password-input.js +33 -30
- package/dist/components/atoms/radio-group/index.d.ts +1 -0
- package/dist/components/atoms/radio-group/radio-group.js +33 -0
- package/dist/components/atoms/switch/switch.js +47 -0
- package/dist/components/atoms/textarea/index.d.ts +1 -0
- package/dist/components/atoms/textarea/textarea.d.ts +12 -0
- package/dist/components/atoms/textarea/textarea.js +75 -0
- package/dist/components/atoms/tooltip/index.d.ts +1 -1
- package/dist/components/atoms/tooltip/tooltip.d.ts +1 -1
- package/dist/components/atoms/tooltip/tooltip.js +15 -17
- package/dist/index.css +1 -1
- package/dist/index.js +50 -37
- package/dist/node_modules/@radix-ui/react-radio-group/dist/index.js +3 -3
- package/dist/node_modules/@radix-ui/react-switch/dist/index.js +133 -0
- package/dist/vendor/shadcn/alert.d.ts +9 -0
- package/dist/vendor/shadcn/avatar.d.ts +6 -0
- package/dist/vendor/shadcn/badge.d.ts +9 -0
- package/dist/vendor/shadcn/breadcrumb.d.ts +11 -0
- package/dist/vendor/shadcn/button.d.ts +10 -0
- package/dist/vendor/shadcn/calendar.d.ts +8 -0
- package/dist/vendor/shadcn/card.d.ts +14 -0
- package/dist/vendor/shadcn/checkbox.d.ts +4 -0
- package/dist/vendor/shadcn/date-picker.d.ts +9 -0
- package/dist/vendor/shadcn/date-range-picker.d.ts +9 -0
- package/dist/vendor/shadcn/dialog.d.ts +19 -0
- package/dist/vendor/shadcn/dropdown-menu.d.ts +25 -0
- package/dist/vendor/shadcn/input.d.ts +3 -0
- package/dist/vendor/shadcn/label.d.ts +4 -0
- package/dist/vendor/shadcn/popover.d.ts +6 -0
- package/dist/vendor/shadcn/radio-group.d.ts +5 -0
- package/dist/vendor/shadcn/radio-group.js +4 -4
- package/dist/vendor/shadcn/separator.d.ts +4 -0
- package/dist/vendor/shadcn/skeleton.d.ts +2 -0
- package/dist/vendor/shadcn/skeleton.js +15 -0
- package/dist/vendor/shadcn/sonner.d.ts +4 -0
- package/dist/vendor/shadcn/switch.d.ts +4 -0
- package/dist/vendor/shadcn/switch.js +32 -0
- package/dist/vendor/shadcn/tabs.d.ts +7 -0
- package/dist/vendor/shadcn/textarea.d.ts +3 -0
- package/dist/vendor/shadcn/textarea.js +22 -0
- package/dist/vendor/shadcn/time-picker.d.ts +7 -0
- package/dist/vendor/shadcn/toggle-group.d.ts +12 -0
- package/dist/vendor/shadcn/toggle.d.ts +12 -0
- package/dist/vendor/shadcn/tooltip.d.ts +7 -0
- package/package.json +3 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentProps } from 'react';
|
|
2
2
|
import { Checkbox as ShadcnCheckbox } from '../../../vendor/shadcn/checkbox';
|
|
3
3
|
export interface CheckboxProps extends Omit<ComponentProps<typeof ShadcnCheckbox>, "children"> {
|
|
4
|
-
label
|
|
4
|
+
label?: string;
|
|
5
5
|
description?: string;
|
|
6
6
|
}
|
|
7
7
|
declare const Checkbox: import('react').ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { j as e } from "../../../_virtual/jsx-runtime.js";
|
|
2
|
-
import { forwardRef as
|
|
2
|
+
import { forwardRef as i, useId as l } from "react";
|
|
3
3
|
import { Checkbox as d } from "../../../vendor/shadcn/checkbox.js";
|
|
4
4
|
import { Label as h } from "../../../vendor/shadcn/label.js";
|
|
5
|
-
const p =
|
|
6
|
-
({ label:
|
|
7
|
-
const
|
|
5
|
+
const p = i(
|
|
6
|
+
({ label: s, description: r, id: c, name: a, ...m }, x) => {
|
|
7
|
+
const n = l(), o = c || a || n, t = /* @__PURE__ */ e.jsx(
|
|
8
8
|
d,
|
|
9
9
|
{
|
|
10
|
-
ref:
|
|
10
|
+
ref: x,
|
|
11
11
|
id: o,
|
|
12
|
-
...
|
|
12
|
+
...m,
|
|
13
13
|
className: "size-3.5 cursor-pointer"
|
|
14
14
|
}
|
|
15
15
|
);
|
|
16
|
-
return /* @__PURE__ */ e.jsxs("div", { className: "flex items-start gap-2", children: [
|
|
17
|
-
|
|
16
|
+
return s ? /* @__PURE__ */ e.jsxs("div", { className: "flex items-start gap-2", children: [
|
|
17
|
+
t,
|
|
18
18
|
/* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
19
19
|
/* @__PURE__ */ e.jsx(
|
|
20
20
|
h,
|
|
21
21
|
{
|
|
22
22
|
htmlFor: o,
|
|
23
23
|
className: "text-sm leading-none cursor-pointer",
|
|
24
|
-
children:
|
|
24
|
+
children: s
|
|
25
25
|
}
|
|
26
26
|
),
|
|
27
|
-
|
|
27
|
+
r && /* @__PURE__ */ e.jsx("p", { className: "text-sm text-neutral-500", children: r })
|
|
28
28
|
] })
|
|
29
|
-
] });
|
|
29
|
+
] }) : t;
|
|
30
30
|
}
|
|
31
31
|
);
|
|
32
32
|
p.displayName = "Checkbox";
|
|
@@ -8,6 +8,7 @@ interface IconProps extends Omit<PhosphorIconProps, "size">, VariantProps<typeof
|
|
|
8
8
|
name: IconName;
|
|
9
9
|
weight?: PhosphorIconWeight;
|
|
10
10
|
className?: string;
|
|
11
|
+
tooltip?: string;
|
|
11
12
|
}
|
|
12
13
|
declare const Icon: import('react').ForwardRefExoticComponent<Omit<IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
13
14
|
export { Icon, type IconProps };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { cva as
|
|
4
|
-
import { cn as
|
|
5
|
-
import { IconList as
|
|
6
|
-
|
|
1
|
+
import { j as t } from "../../../_virtual/jsx-runtime.js";
|
|
2
|
+
import { forwardRef as f } from "react";
|
|
3
|
+
import { cva as p } from "../../../node_modules/class-variance-authority/dist/index.js";
|
|
4
|
+
import { cn as x } from "../../../lib/utils.js";
|
|
5
|
+
import { IconList as z } from "./icon-list.js";
|
|
6
|
+
import { Tooltip as d } from "../tooltip/tooltip.js";
|
|
7
|
+
const u = p("inline-flex items-center justify-center shrink-0", {
|
|
7
8
|
variants: {
|
|
8
9
|
size: {
|
|
9
10
|
xs: "size-3",
|
|
@@ -16,23 +17,23 @@ const x = l("inline-flex items-center justify-center shrink-0", {
|
|
|
16
17
|
defaultVariants: {
|
|
17
18
|
size: "md"
|
|
18
19
|
}
|
|
19
|
-
}),
|
|
20
|
-
({ name: r, weight:
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
m,
|
|
20
|
+
}), j = f(
|
|
21
|
+
({ name: r, weight: e = "light", size: s, className: n, color: m, tooltip: o, ...c }, a) => {
|
|
22
|
+
const l = z?.[r], i = /* @__PURE__ */ t.jsx(
|
|
23
|
+
l,
|
|
24
24
|
{
|
|
25
|
-
ref:
|
|
25
|
+
ref: a,
|
|
26
26
|
"aria-label": r,
|
|
27
|
-
className:
|
|
28
|
-
color:
|
|
29
|
-
weight:
|
|
30
|
-
...
|
|
27
|
+
className: x(u({ size: s }), n),
|
|
28
|
+
color: m || "currentColor",
|
|
29
|
+
weight: e,
|
|
30
|
+
...c
|
|
31
31
|
}
|
|
32
32
|
);
|
|
33
|
+
return o ? /* @__PURE__ */ t.jsx(d, { content: o, children: i }) : i;
|
|
33
34
|
}
|
|
34
35
|
);
|
|
35
|
-
|
|
36
|
+
j.displayName = "Icon";
|
|
36
37
|
export {
|
|
37
|
-
|
|
38
|
+
j as Icon
|
|
38
39
|
};
|
|
@@ -10,11 +10,15 @@ export { FilterButton, FilterTag, FilterSection, FilterCheckboxOption, FilterRad
|
|
|
10
10
|
export { FilterDropdown, FilterMenu, FilterMenuItem, type FilterDropdownProps, type FilterMenuProps, type FilterMenuItemProps, } from './filter-dropdown';
|
|
11
11
|
export { DropdownMenu, DropdownMenuPortal, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, type DropdownMenuProps, type DropdownMenuPortalProps, type DropdownMenuTriggerProps, type DropdownMenuContentProps, type DropdownMenuGroupProps, type DropdownMenuLabelProps, type DropdownMenuItemProps, type DropdownMenuCheckboxItemProps, type DropdownMenuRadioGroupProps, type DropdownMenuRadioItemProps, type DropdownMenuSeparatorProps, type DropdownMenuShortcutProps, type DropdownMenuSubProps, type DropdownMenuSubTriggerProps, type DropdownMenuSubContentProps, } from './dropdown-menu';
|
|
12
12
|
export { ToggleGroup, ToggleGroupItem, type ToggleGroupProps, type ToggleGroupItemProps, } from './toggle-group';
|
|
13
|
-
export {
|
|
14
|
-
export { Tooltip, type TooltipProps } from './tooltip';
|
|
13
|
+
export { Tooltip, TooltipProvider, type TooltipProps, type TooltipProviderProps } from './tooltip';
|
|
15
14
|
export { Input, type InputProps } from './input';
|
|
15
|
+
export { RadioGroup, type RadioGroupProps, type RadioOption, RadioGroupBase, RadioGroupItem } from './radio-group';
|
|
16
|
+
export { Skeleton } from './skeleton';
|
|
17
|
+
export { Separator, type SeparatorProps } from './separator';
|
|
18
|
+
export { Switch, type SwitchProps } from './switch';
|
|
19
|
+
export { Textarea, type TextareaProps } from './textarea';
|
|
16
20
|
export { Typography, type TypographyProps } from './typography';
|
|
21
|
+
export { Icon, type IconProps, type IconName } from './icon';
|
|
17
22
|
export { Alert, type AlertProps } from './alert';
|
|
18
23
|
export { PasswordInput, type PasswordInputProps } from './password-input';
|
|
19
|
-
export { Separator, type SeparatorProps } from './separator';
|
|
20
24
|
export { Toaster, toast } from './toaster';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { j as t } from "../../../_virtual/jsx-runtime.js";
|
|
2
2
|
import { forwardRef as j, useId as N } from "react";
|
|
3
|
-
import { cva as
|
|
3
|
+
import { cva as f } from "../../../node_modules/class-variance-authority/dist/index.js";
|
|
4
4
|
import { Input as g } from "../../../vendor/shadcn/input.js";
|
|
5
5
|
import { cn as e } from "../../../lib/utils.js";
|
|
6
6
|
import { Label as y } from "../../../vendor/shadcn/label.js";
|
|
7
7
|
import { Icon as b } from "../icon/icon.js";
|
|
8
8
|
import { Button as I } from "../button/button.js";
|
|
9
|
-
const V =
|
|
9
|
+
const V = f("flex gap-2 w-full", {
|
|
10
10
|
variants: {
|
|
11
11
|
layout: {
|
|
12
12
|
vertical: "flex-col",
|
|
@@ -16,7 +16,7 @@ const V = u("flex gap-2 w-full", {
|
|
|
16
16
|
defaultVariants: {
|
|
17
17
|
layout: "vertical"
|
|
18
18
|
}
|
|
19
|
-
}), w =
|
|
19
|
+
}), w = f("text-sm", {
|
|
20
20
|
variants: {
|
|
21
21
|
layout: {
|
|
22
22
|
vertical: "",
|
|
@@ -28,24 +28,24 @@ const V = u("flex gap-2 w-full", {
|
|
|
28
28
|
}
|
|
29
29
|
}), z = j(
|
|
30
30
|
({
|
|
31
|
-
className:
|
|
31
|
+
className: u,
|
|
32
32
|
layout: l,
|
|
33
33
|
label: o,
|
|
34
34
|
description: r,
|
|
35
35
|
error: a,
|
|
36
|
-
id:
|
|
36
|
+
id: x,
|
|
37
37
|
button: m,
|
|
38
38
|
disabled: c,
|
|
39
39
|
endIcon: i,
|
|
40
40
|
endIconProps: n,
|
|
41
|
-
...
|
|
41
|
+
...p
|
|
42
42
|
}, v) => {
|
|
43
|
-
const h = N(), s =
|
|
43
|
+
const h = N(), s = x || h, d = !!a;
|
|
44
44
|
return /* @__PURE__ */ t.jsxs("div", { className: e(V({ layout: l })), children: [
|
|
45
45
|
o && /* @__PURE__ */ t.jsx(y, { htmlFor: s, className: e(w({ layout: l })), children: o }),
|
|
46
46
|
/* @__PURE__ */ t.jsxs("div", { className: "flex flex-col gap-2 flex-1", children: [
|
|
47
47
|
/* @__PURE__ */ t.jsxs("div", { className: "flex gap-2 items-center", children: [
|
|
48
|
-
/* @__PURE__ */ t.jsxs("div", { className: "relative flex-1", children: [
|
|
48
|
+
/* @__PURE__ */ t.jsxs("div", { className: "relative flex flex-1", children: [
|
|
49
49
|
/* @__PURE__ */ t.jsx(
|
|
50
50
|
g,
|
|
51
51
|
{
|
|
@@ -55,11 +55,11 @@ const V = u("flex gap-2 w-full", {
|
|
|
55
55
|
className: e(
|
|
56
56
|
d && "border-destructive focus-visible:border-destructive",
|
|
57
57
|
i && "pr-9",
|
|
58
|
-
|
|
58
|
+
u
|
|
59
59
|
),
|
|
60
60
|
"aria-invalid": d,
|
|
61
61
|
"aria-describedby": r || a ? `${s}-description` : void 0,
|
|
62
|
-
...
|
|
62
|
+
...p
|
|
63
63
|
}
|
|
64
64
|
),
|
|
65
65
|
i && /* @__PURE__ */ t.jsx(
|
|
@@ -1,59 +1,62 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { forwardRef as
|
|
1
|
+
import { j as s } from "../../../_virtual/jsx-runtime.js";
|
|
2
|
+
import { forwardRef as m, useState as p } from "react";
|
|
3
3
|
import { cn as x } from "../../../lib/utils.js";
|
|
4
4
|
import { Label as u } from "../../../vendor/shadcn/label.js";
|
|
5
5
|
import { Button as f } from "../button/button.js";
|
|
6
|
-
import { Input as
|
|
7
|
-
const
|
|
8
|
-
({ defaultVisible:
|
|
9
|
-
const [
|
|
10
|
-
c((
|
|
6
|
+
import { Input as a } from "../input/input.js";
|
|
7
|
+
const w = m(
|
|
8
|
+
({ defaultVisible: l = !1, label: o, forgotPasswordLinkProps: t, ...r }, i) => {
|
|
9
|
+
const [e, c] = p(l), n = () => {
|
|
10
|
+
c((d) => !d);
|
|
11
11
|
};
|
|
12
|
-
return
|
|
13
|
-
/* @__PURE__ */
|
|
14
|
-
/* @__PURE__ */
|
|
15
|
-
/* @__PURE__ */
|
|
12
|
+
return t && o ? /* @__PURE__ */ s.jsxs("div", { className: "flex flex-col gap-2 w-full", children: [
|
|
13
|
+
/* @__PURE__ */ s.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
14
|
+
/* @__PURE__ */ s.jsx(u, { className: "text-sm", children: o }),
|
|
15
|
+
/* @__PURE__ */ s.jsx(
|
|
16
16
|
f,
|
|
17
17
|
{
|
|
18
18
|
variant: "link",
|
|
19
19
|
className: x(
|
|
20
20
|
"text-muted-foreground",
|
|
21
|
-
|
|
21
|
+
t?.className
|
|
22
22
|
),
|
|
23
|
-
|
|
23
|
+
...t,
|
|
24
|
+
children: t.children || "Forgot password?"
|
|
24
25
|
}
|
|
25
26
|
)
|
|
26
27
|
] }),
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
|
|
28
|
+
/* @__PURE__ */ s.jsx(
|
|
29
|
+
a,
|
|
29
30
|
{
|
|
30
|
-
ref:
|
|
31
|
-
type:
|
|
32
|
-
endIcon:
|
|
31
|
+
ref: i,
|
|
32
|
+
type: e ? "text" : "password",
|
|
33
|
+
endIcon: e ? "EyeClosed" : "Eye",
|
|
33
34
|
endIconProps: {
|
|
34
|
-
onClick:
|
|
35
|
-
className: "cursor-pointer"
|
|
35
|
+
onClick: n,
|
|
36
|
+
className: "cursor-pointer",
|
|
37
|
+
tooltip: e ? "Hide password" : "Show password"
|
|
36
38
|
},
|
|
37
39
|
...r
|
|
38
40
|
}
|
|
39
41
|
)
|
|
40
|
-
] }) : /* @__PURE__ */
|
|
41
|
-
|
|
42
|
+
] }) : /* @__PURE__ */ s.jsx(
|
|
43
|
+
a,
|
|
42
44
|
{
|
|
43
|
-
ref:
|
|
44
|
-
label:
|
|
45
|
-
type:
|
|
46
|
-
endIcon:
|
|
45
|
+
ref: i,
|
|
46
|
+
label: o,
|
|
47
|
+
type: e ? "text" : "password",
|
|
48
|
+
endIcon: e ? "EyeClosed" : "Eye",
|
|
47
49
|
endIconProps: {
|
|
48
|
-
onClick:
|
|
49
|
-
className: "cursor-pointer"
|
|
50
|
+
onClick: n,
|
|
51
|
+
className: "cursor-pointer",
|
|
52
|
+
tooltip: e ? "Hide password" : "Show password"
|
|
50
53
|
},
|
|
51
54
|
...r
|
|
52
55
|
}
|
|
53
56
|
);
|
|
54
57
|
}
|
|
55
58
|
);
|
|
56
|
-
|
|
59
|
+
w.displayName = "PasswordInput";
|
|
57
60
|
export {
|
|
58
|
-
|
|
61
|
+
w as PasswordInput
|
|
59
62
|
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { j as a } from "../../../_virtual/jsx-runtime.js";
|
|
2
|
+
import { forwardRef as i } from "react";
|
|
3
|
+
import { RadioGroup as c, RadioGroupItem as m } from "../../../vendor/shadcn/radio-group.js";
|
|
4
|
+
import { Label as o } from "../../../vendor/shadcn/label.js";
|
|
5
|
+
const u = i(({ options: s, name: d, ...t }, l) => /* @__PURE__ */ a.jsx(c, { ref: l, className: "gap-3", ...t, children: s.map((e) => {
|
|
6
|
+
const r = `${d}-${e.value}`;
|
|
7
|
+
return /* @__PURE__ */ a.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
8
|
+
/* @__PURE__ */ a.jsx(
|
|
9
|
+
m,
|
|
10
|
+
{
|
|
11
|
+
value: e.value,
|
|
12
|
+
id: r,
|
|
13
|
+
disabled: e.disabled,
|
|
14
|
+
className: "size-3.5 data-[state=unchecked]:bg-white data-[state=unchecked]:border-neutral-200 data-[state=checked]:border-primary cursor-pointer"
|
|
15
|
+
}
|
|
16
|
+
),
|
|
17
|
+
/* @__PURE__ */ a.jsxs("div", { className: "flex flex-col gap-1.5 flex-1", children: [
|
|
18
|
+
/* @__PURE__ */ a.jsx(
|
|
19
|
+
o,
|
|
20
|
+
{
|
|
21
|
+
htmlFor: r,
|
|
22
|
+
className: "text-sm leading-none cursor-pointer",
|
|
23
|
+
children: e.label
|
|
24
|
+
}
|
|
25
|
+
),
|
|
26
|
+
e.description && /* @__PURE__ */ a.jsx("p", { className: "text-sm text-neutral-500", children: e.description })
|
|
27
|
+
] })
|
|
28
|
+
] }, e.value);
|
|
29
|
+
}) }));
|
|
30
|
+
u.displayName = "RadioGroup";
|
|
31
|
+
export {
|
|
32
|
+
u as RadioGroup
|
|
33
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { j as e } from "../../../_virtual/jsx-runtime.js";
|
|
2
|
+
import { Switch as p } from "../../../vendor/shadcn/switch.js";
|
|
3
|
+
import { forwardRef as f, useId as h } from "react";
|
|
4
|
+
import { cn as w } from "../../../lib/utils.js";
|
|
5
|
+
import { Label as u } from "../../../vendor/shadcn/label.js";
|
|
6
|
+
const j = f(
|
|
7
|
+
({
|
|
8
|
+
label: t,
|
|
9
|
+
description: s,
|
|
10
|
+
side: o = "left",
|
|
11
|
+
variant: a = "default",
|
|
12
|
+
id: i,
|
|
13
|
+
name: l,
|
|
14
|
+
...c
|
|
15
|
+
}, m) => {
|
|
16
|
+
const x = h(), r = i || l || x, d = /* @__PURE__ */ e.jsx(
|
|
17
|
+
p,
|
|
18
|
+
{
|
|
19
|
+
ref: m,
|
|
20
|
+
id: r,
|
|
21
|
+
className: "cursor-pointer",
|
|
22
|
+
...c
|
|
23
|
+
}
|
|
24
|
+
), n = w("flex gap-3 items-start", {
|
|
25
|
+
"flex-row-reverse": o === "right",
|
|
26
|
+
"bg-white box-border justify-start p-4 rounded-lg border shadow-xs": a === "box"
|
|
27
|
+
});
|
|
28
|
+
return /* @__PURE__ */ e.jsxs("div", { className: n, children: [
|
|
29
|
+
d,
|
|
30
|
+
/* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2 flex-1", children: [
|
|
31
|
+
/* @__PURE__ */ e.jsx(
|
|
32
|
+
u,
|
|
33
|
+
{
|
|
34
|
+
htmlFor: r,
|
|
35
|
+
className: "text-sm leading-[18.39px] cursor-pointer",
|
|
36
|
+
children: t
|
|
37
|
+
}
|
|
38
|
+
),
|
|
39
|
+
s && /* @__PURE__ */ e.jsx("p", { className: "text-sm text-neutral-500", children: s })
|
|
40
|
+
] })
|
|
41
|
+
] });
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
j.displayName = "Switch";
|
|
45
|
+
export {
|
|
46
|
+
j as Switch
|
|
47
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Textarea, type TextareaProps } from './textarea';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TextareaHTMLAttributes } from 'react';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare const textareaWrapperVariants: (props?: ({
|
|
4
|
+
layout?: "horizontal" | "vertical" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
export interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement>, VariantProps<typeof textareaWrapperVariants> {
|
|
7
|
+
label?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
error?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const Textarea: import('react').ForwardRefExoticComponent<TextareaProps & import('react').RefAttributes<HTMLTextAreaElement>>;
|
|
12
|
+
export { Textarea };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { j as t } from "../../../_virtual/jsx-runtime.js";
|
|
2
|
+
import { forwardRef as u, useId as v } from "react";
|
|
3
|
+
import { cva as c } from "../../../node_modules/class-variance-authority/dist/index.js";
|
|
4
|
+
import { Textarea as h } from "../../../vendor/shadcn/textarea.js";
|
|
5
|
+
import { cn as r } from "../../../lib/utils.js";
|
|
6
|
+
import { Label as j } from "../../../vendor/shadcn/label.js";
|
|
7
|
+
const b = c("flex gap-2 w-full", {
|
|
8
|
+
variants: {
|
|
9
|
+
layout: {
|
|
10
|
+
vertical: "flex-col",
|
|
11
|
+
horizontal: "flex-row items-start gap-4"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
defaultVariants: {
|
|
15
|
+
layout: "vertical"
|
|
16
|
+
}
|
|
17
|
+
}), N = c("text-sm", {
|
|
18
|
+
variants: {
|
|
19
|
+
layout: {
|
|
20
|
+
vertical: "",
|
|
21
|
+
horizontal: "mt-2"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
defaultVariants: {
|
|
25
|
+
layout: "vertical"
|
|
26
|
+
}
|
|
27
|
+
}), g = u(
|
|
28
|
+
({
|
|
29
|
+
className: d,
|
|
30
|
+
layout: i,
|
|
31
|
+
label: o,
|
|
32
|
+
description: s,
|
|
33
|
+
error: a,
|
|
34
|
+
id: n,
|
|
35
|
+
disabled: m,
|
|
36
|
+
...x
|
|
37
|
+
}, f) => {
|
|
38
|
+
const p = v(), e = n || p, l = !!a;
|
|
39
|
+
return /* @__PURE__ */ t.jsxs("div", { className: r(b({ layout: i })), children: [
|
|
40
|
+
o && /* @__PURE__ */ t.jsx(j, { htmlFor: e, className: r(N({ layout: i })), children: o }),
|
|
41
|
+
/* @__PURE__ */ t.jsxs("div", { className: "flex flex-col gap-2 flex-1", children: [
|
|
42
|
+
/* @__PURE__ */ t.jsx(
|
|
43
|
+
h,
|
|
44
|
+
{
|
|
45
|
+
ref: f,
|
|
46
|
+
id: e,
|
|
47
|
+
disabled: m,
|
|
48
|
+
className: r(
|
|
49
|
+
l && "border-destructive focus-visible:border-destructive",
|
|
50
|
+
d
|
|
51
|
+
),
|
|
52
|
+
"aria-invalid": l,
|
|
53
|
+
"aria-describedby": s || a ? `${e}-description` : void 0,
|
|
54
|
+
...x
|
|
55
|
+
}
|
|
56
|
+
),
|
|
57
|
+
(s || a) && /* @__PURE__ */ t.jsx(
|
|
58
|
+
"p",
|
|
59
|
+
{
|
|
60
|
+
id: `${e}-description`,
|
|
61
|
+
className: r(
|
|
62
|
+
"text-sm",
|
|
63
|
+
a ? "text-destructive" : "text-muted-foreground"
|
|
64
|
+
),
|
|
65
|
+
children: a || s
|
|
66
|
+
}
|
|
67
|
+
)
|
|
68
|
+
] })
|
|
69
|
+
] });
|
|
70
|
+
}
|
|
71
|
+
);
|
|
72
|
+
g.displayName = "Textarea";
|
|
73
|
+
export {
|
|
74
|
+
g as Textarea
|
|
75
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Tooltip, type TooltipProps } from './tooltip';
|
|
1
|
+
export { Tooltip, TooltipProvider, type TooltipProps, type TooltipProviderProps } from './tooltip';
|
|
@@ -11,4 +11,4 @@ interface TooltipProps extends ShadcnTooltipRootProps {
|
|
|
11
11
|
triggerProps?: TooltipTriggerProps;
|
|
12
12
|
}
|
|
13
13
|
declare const Tooltip: import('react').ForwardRefExoticComponent<TooltipProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
14
|
-
export { Tooltip, type TooltipProps };
|
|
14
|
+
export { Tooltip, TooltipProvider, type TooltipProps, type TooltipProviderProps };
|
|
@@ -1,23 +1,21 @@
|
|
|
1
1
|
import { j as o } from "../../../_virtual/jsx-runtime.js";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { TooltipProvider as
|
|
4
|
-
const
|
|
2
|
+
import { forwardRef as n } from "react";
|
|
3
|
+
import { TooltipProvider as m, Tooltip as T, TooltipTrigger as a, TooltipContent as d } from "../../../vendor/shadcn/tooltip.js";
|
|
4
|
+
const x = n(
|
|
5
5
|
({
|
|
6
|
-
content:
|
|
6
|
+
content: r,
|
|
7
7
|
children: i,
|
|
8
|
-
contentProps:
|
|
9
|
-
providerProps:
|
|
10
|
-
triggerProps:
|
|
11
|
-
...
|
|
12
|
-
}, s) => {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
/* @__PURE__ */ o.jsx(j, { ref: s, ...e, children: t })
|
|
17
|
-
] }) });
|
|
18
|
-
}
|
|
8
|
+
contentProps: t,
|
|
9
|
+
providerProps: p,
|
|
10
|
+
triggerProps: e,
|
|
11
|
+
...l
|
|
12
|
+
}, s) => /* @__PURE__ */ o.jsx(m, { delayDuration: 0, ...p, children: /* @__PURE__ */ o.jsxs(T, { ...l, children: [
|
|
13
|
+
/* @__PURE__ */ o.jsx(a, { ...e, children: i }),
|
|
14
|
+
/* @__PURE__ */ o.jsx(d, { ref: s, ...t, children: r })
|
|
15
|
+
] }) })
|
|
19
16
|
);
|
|
20
|
-
|
|
17
|
+
x.displayName = "Tooltip";
|
|
21
18
|
export {
|
|
22
|
-
|
|
19
|
+
x as Tooltip,
|
|
20
|
+
m as TooltipProvider
|
|
23
21
|
};
|