@yuno-payments/dashboard-design-system 0.0.167 → 0.0.170
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/access-denied-alert/access-denied-alert.d.ts +0 -16
- package/dist/components/atoms/accordion/accordion.d.ts +0 -66
- package/dist/components/atoms/alert/alert.d.ts +1 -26
- package/dist/components/atoms/alert/alert.js +8 -9
- package/dist/components/atoms/avatar/avatar-group.d.ts +0 -28
- package/dist/components/atoms/avatar/avatar.d.ts +0 -25
- package/dist/components/atoms/avatar/avatar.js +9 -9
- package/dist/components/atoms/badge/badge.d.ts +2 -30
- package/dist/components/atoms/badge/badge.js +11 -27
- package/dist/components/atoms/button/button.d.ts +0 -44
- package/dist/components/atoms/card/card.d.ts +3 -137
- package/dist/components/atoms/card/card.js +28 -56
- package/dist/components/atoms/checkbox/checkbox.d.ts +2 -38
- package/dist/components/atoms/checkbox/checkbox.js +27 -61
- package/dist/components/atoms/combobox/combobox.d.ts +0 -18
- package/dist/components/atoms/combobox/combobox.js +41 -41
- package/dist/components/atoms/combobox/types.d.ts +1 -90
- package/dist/components/atoms/currency-field/currency-field.d.ts +0 -38
- package/dist/components/atoms/currency-field/currency-field.js +19 -22
- package/dist/components/atoms/date-picker/date-picker.d.ts +0 -15
- package/dist/components/atoms/date-range-picker/date-range-picker.d.ts +0 -15
- package/dist/components/atoms/dots-menu/dots-menu.d.ts +0 -16
- package/dist/components/atoms/dots-menu/dots-menu.js +8 -8
- package/dist/components/atoms/dots-menu/dots-menu.types.d.ts +0 -52
- package/dist/components/atoms/dropdown-menu/dropdown-menu.d.ts +0 -50
- package/dist/components/atoms/field/field.d.ts +0 -55
- package/dist/components/atoms/field/field.js +46 -53
- package/dist/components/atoms/filter/filter-date-range.d.ts +2 -12
- package/dist/components/atoms/filter/filter-date-range.js +168 -203
- package/dist/components/atoms/filter/filter.d.ts +0 -6
- package/dist/components/atoms/filter/filter.js +76 -91
- package/dist/components/atoms/filter/index.d.ts +1 -1
- package/dist/components/atoms/filter-dropdown/filter-dropdown.d.ts +2 -208
- package/dist/components/atoms/filter-dropdown/filter-dropdown.js +160 -214
- package/dist/components/atoms/icon/icon-list.d.ts +0 -5
- package/dist/components/atoms/icon/icon-list.js +384 -394
- package/dist/components/atoms/icon/icon.d.ts +0 -29
- package/dist/components/atoms/index.d.ts +2 -3
- package/dist/components/atoms/label/index.d.ts +1 -1
- package/dist/components/atoms/link/link.d.ts +0 -20
- package/dist/components/atoms/multi-select/multi-select.d.ts +1 -1
- package/dist/components/atoms/multi-select/multi-select.js +6 -6
- package/dist/components/atoms/multi-values-field/multi-values-field.d.ts +0 -16
- package/dist/components/atoms/multi-values-field/multi-values-field.js +87 -109
- package/dist/components/atoms/multi-values-field/multi-values-field.types.d.ts +0 -81
- package/dist/components/atoms/otp-field/otp-field.d.ts +0 -32
- package/dist/components/atoms/password-field/password-field.d.ts +0 -23
- package/dist/components/atoms/password-field/password-field.js +1 -1
- package/dist/components/atoms/progress/progress.d.ts +0 -15
- package/dist/components/atoms/protected-field/protected-field.d.ts +0 -10
- package/dist/components/atoms/protected-field/protected-field.types.d.ts +0 -14
- package/dist/components/atoms/radio-group/radio-group-option.js +11 -11
- package/dist/components/atoms/radio-group/radio-group.d.ts +1 -50
- package/dist/components/atoms/radio-group/radio-group.js +12 -13
- package/dist/components/atoms/search-field/search-field.d.ts +0 -14
- package/dist/components/atoms/search-field/search-field.js +17 -17
- package/dist/components/atoms/search-field/search-field.types.d.ts +0 -57
- package/dist/components/atoms/select/index.d.ts +0 -2
- package/dist/components/atoms/select/select.d.ts +1 -83
- package/dist/components/atoms/select/select.js +21 -21
- package/dist/components/atoms/separator/separator.d.ts +0 -17
- package/dist/components/atoms/skeleton/index.d.ts +0 -9
- package/dist/components/atoms/switch/switch.d.ts +2 -56
- package/dist/components/atoms/switch/switch.js +32 -64
- package/dist/components/atoms/tabs/index.d.ts +0 -16
- package/dist/components/atoms/textarea/textarea.d.ts +0 -32
- package/dist/components/atoms/textarea/textarea.js +1 -1
- package/dist/components/atoms/time-picker/time-picker.d.ts +2 -73
- package/dist/components/atoms/time-picker/time-picker.js +3 -218
- package/dist/components/atoms/toaster/index.d.ts +0 -15
- package/dist/components/atoms/toggle-group/toggle-group.d.ts +1 -26
- package/dist/components/atoms/toggle-group/toggle-group.js +14 -15
- package/dist/components/atoms/tooltip/tooltip.d.ts +2 -53
- package/dist/components/atoms/typography/typography.d.ts +0 -18
- package/dist/components/molecules/breadcrumb/breadcrumb.d.ts +0 -50
- package/dist/components/molecules/breadcrumb/breadcrumb.js +17 -17
- package/dist/components/molecules/dialog-content/dialog-content.d.ts +0 -16
- package/dist/components/molecules/dialog-footer/dialog-footer.d.ts +0 -20
- package/dist/components/molecules/dialog-header/dialog-header.d.ts +0 -31
- package/dist/components/molecules/empty/empty-icon.js +6 -6
- package/dist/components/molecules/empty/empty.d.ts +1 -16
- package/dist/components/molecules/empty/empty.js +34 -37
- package/dist/components/molecules/highlight-banner/highlight-banner.d.ts +0 -17
- package/dist/components/molecules/pagination/pagination.d.ts +0 -49
- package/dist/components/organisms/data-table/components/cells/data-table-list-cell.d.ts +0 -41
- package/dist/components/organisms/data-table/components/column-header/data-table-column-header-content.js +1 -1
- package/dist/components/organisms/data-table/components/column-header/data-table-column-header-menu.js +18 -18
- package/dist/components/organisms/data-table/components/column-header/data-table-column-header.d.ts +0 -18
- package/dist/components/organisms/data-table/components/column-header/data-table-column-header.js +10 -10
- package/dist/components/organisms/data-table/components/data-table-body.d.ts +0 -18
- package/dist/components/organisms/data-table/components/data-table-header.d.ts +0 -12
- package/dist/components/organisms/data-table/components/data-table-header.js +7 -7
- package/dist/components/organisms/data-table/components/states/data-table-loading.d.ts +0 -24
- package/dist/components/organisms/data-table/components/states/data-table-loading.js +6 -6
- package/dist/components/organisms/data-table/data-table.d.ts +4 -133
- package/dist/components/organisms/data-table/data-table.js +100 -132
- package/dist/components/organisms/data-table/data-table.types.d.ts +26 -35
- package/dist/components/organisms/data-table/hooks/use-data-table-columns.js +41 -57
- package/dist/components/organisms/data-table/hooks/use-data-table-state.d.ts +2 -8
- package/dist/components/organisms/data-table/hooks/use-data-table-state.js +47 -82
- package/dist/components/organisms/data-table/utils/data-table-constants.d.ts +2 -8
- package/dist/components/organisms/data-table/utils/data-table-constants.js +10 -16
- package/dist/components/organisms/data-table/utils/data-table-styles.d.ts +0 -1652
- package/dist/components/organisms/data-table/utils/data-table-styles.js +14 -29
- package/dist/components/organisms/dialog/dialog.d.ts +1 -67
- package/dist/components/organisms/dialog/dialog.js +61 -78
- package/dist/components/organisms/index.d.ts +0 -2
- package/dist/components/organisms/sheet/sheet.d.ts +0 -69
- package/dist/components/organisms/sheet/sheet.js +33 -34
- package/dist/index.css +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.js +162 -173
- package/dist/vendor/shadcn/avatar.js +19 -19
- package/dist/vendor/shadcn/badge.js +15 -15
- package/dist/vendor/shadcn/card.js +7 -7
- package/dist/vendor/shadcn/date-picker.d.ts +2 -2
- package/dist/vendor/shadcn/date-picker.js +1 -1
- package/dist/vendor/shadcn/date-range-picker.d.ts +2 -2
- package/dist/vendor/shadcn/date-range-picker.js +1 -1
- package/dist/vendor/shadcn/dialog.js +2 -2
- package/dist/vendor/shadcn/input-group.js +17 -17
- package/dist/vendor/shadcn/input.js +7 -7
- package/dist/vendor/shadcn/popover.js +1 -1
- package/dist/vendor/shadcn/select.js +2 -2
- package/dist/vendor/shadcn/sonner.d.ts +1 -26
- package/dist/vendor/shadcn/sonner.js +8 -12
- package/dist/vendor/shadcn/table.js +30 -30
- package/dist/vendor/shadcn/textarea.js +9 -9
- package/dist/vendor/shadcn/time-picker.d.ts +2 -1
- package/dist/vendor/shadcn/time-picker.js +23 -17
- package/dist/vendor/shadcn/toggle.js +13 -13
- package/dist/vendor/shadcn/tooltip.js +15 -25
- package/package.json +1 -1
- package/dist/components/atoms/icon/aida-logo.d.ts +0 -3
- package/dist/components/atoms/icon/aida-logo.js +0 -64
- package/dist/components/atoms/label/label.d.ts +0 -11
- package/dist/components/atoms/label/label.js +0 -28
- package/dist/components/atoms/loading/index.d.ts +0 -1
- package/dist/components/atoms/loading/loading.d.ts +0 -39
- package/dist/components/atoms/loading/loading.js +0 -37
- package/dist/components/atoms/select/search-select.d.ts +0 -22
- package/dist/components/atoms/select/search-select.js +0 -201
- package/dist/components/organisms/tutorial/index.d.ts +0 -2
- package/dist/components/organisms/tutorial/tutorial.d.ts +0 -16
- package/dist/components/organisms/tutorial/tutorial.js +0 -114
- package/dist/components/organisms/tutorial/tutorial.types.d.ts +0 -15
- package/dist/hooks/index.d.ts +0 -3
- package/dist/hooks/use-body-scroll-lock.d.ts +0 -13
- package/dist/hooks/use-escape-key.d.ts +0 -14
- package/dist/hooks/use-media-query.d.ts +0 -20
- package/dist/hooks/use-media-query.js +0 -21
- package/dist/lib/notification-alert.d.ts +0 -42
- package/dist/lib/notification-alert.js +0 -75
- package/dist/node_modules/@phosphor-icons/react/dist/csr/File.es.js +0 -8
- package/dist/node_modules/@phosphor-icons/react/dist/csr/Microphone.es.js +0 -8
- package/dist/node_modules/@phosphor-icons/react/dist/csr/Stop.es.js +0 -8
- package/dist/node_modules/@phosphor-icons/react/dist/csr/Table.es.js +0 -8
- package/dist/node_modules/@phosphor-icons/react/dist/defs/File.es.js +0 -30
- package/dist/node_modules/@phosphor-icons/react/dist/defs/Microphone.es.js +0 -36
- package/dist/node_modules/@phosphor-icons/react/dist/defs/Stop.es.js +0 -36
- package/dist/node_modules/@phosphor-icons/react/dist/defs/Table.es.js +0 -30
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { j as n } from "../../_virtual/jsx-runtime.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as e from "react";
|
|
3
3
|
import { cva as i } from "../../node_modules/class-variance-authority/dist/index.js";
|
|
4
|
-
import { cn as
|
|
4
|
+
import { cn as a } from "../../lib/utils.js";
|
|
5
5
|
import { Input as u } from "./input.js";
|
|
6
6
|
import { Textarea as p } from "./textarea.js";
|
|
7
7
|
import { Button as d } from "./button.js";
|
|
8
|
-
const l =
|
|
8
|
+
const l = e.forwardRef(({ className: t, ...r }, o) => /* @__PURE__ */ n.jsx(
|
|
9
9
|
"div",
|
|
10
10
|
{
|
|
11
11
|
ref: o,
|
|
12
|
-
className:
|
|
13
|
-
"flex min-w-0 w-full rounded-md border border-input bg-
|
|
12
|
+
className: a(
|
|
13
|
+
"flex min-w-0 w-full rounded-md border border-input bg-white shadow-xs overflow-hidden",
|
|
14
14
|
"has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot=input-group-control]:focus-visible]:ring-[3px]",
|
|
15
15
|
"has-[[data-slot=input-group-control][aria-invalid='true']]:border-destructive has-[[data-slot=input-group-control][aria-invalid='true']]:ring-destructive/20 dark:has-[[data-slot=input-group-control][aria-invalid='true']]:ring-destructive/40",
|
|
16
16
|
t
|
|
@@ -19,11 +19,11 @@ const l = a.forwardRef(({ className: t, ...r }, o) => /* @__PURE__ */ n.jsx(
|
|
|
19
19
|
}
|
|
20
20
|
));
|
|
21
21
|
l.displayName = "InputGroup";
|
|
22
|
-
const c =
|
|
22
|
+
const c = e.forwardRef(({ className: t, align: r = "inline-start", ...o }, s) => /* @__PURE__ */ n.jsx(
|
|
23
23
|
"div",
|
|
24
24
|
{
|
|
25
25
|
ref: s,
|
|
26
|
-
className:
|
|
26
|
+
className: a(
|
|
27
27
|
"flex items-center gap-1.5 h-9 shrink-0",
|
|
28
28
|
r === "inline-start" && "order-first pl-3",
|
|
29
29
|
r === "inline-end" && "order-last pr-3",
|
|
@@ -35,12 +35,12 @@ const c = a.forwardRef(({ className: t, align: r = "inline-start", ...o }, s) =>
|
|
|
35
35
|
}
|
|
36
36
|
));
|
|
37
37
|
c.displayName = "InputGroupAddon";
|
|
38
|
-
const f =
|
|
38
|
+
const f = e.forwardRef(({ className: t, ...r }, o) => /* @__PURE__ */ n.jsx(
|
|
39
39
|
u,
|
|
40
40
|
{
|
|
41
41
|
ref: o,
|
|
42
42
|
"data-slot": "input-group-control",
|
|
43
|
-
className:
|
|
43
|
+
className: a(
|
|
44
44
|
"flex-1 min-w-0 border-0 shadow-none rounded-none bg-transparent",
|
|
45
45
|
"focus-visible:ring-0 focus-visible:border-0",
|
|
46
46
|
"aria-invalid:border-0 aria-invalid:ring-0",
|
|
@@ -50,12 +50,12 @@ const f = a.forwardRef(({ className: t, ...r }, o) => /* @__PURE__ */ n.jsx(
|
|
|
50
50
|
}
|
|
51
51
|
));
|
|
52
52
|
f.displayName = "InputGroupInput";
|
|
53
|
-
const m =
|
|
53
|
+
const m = e.forwardRef(({ className: t, ...r }, o) => /* @__PURE__ */ n.jsx(
|
|
54
54
|
p,
|
|
55
55
|
{
|
|
56
56
|
ref: o,
|
|
57
57
|
"data-slot": "input-group-control",
|
|
58
|
-
className:
|
|
58
|
+
className: a(
|
|
59
59
|
"flex-1 min-w-0 border-0 shadow-none rounded-none bg-transparent",
|
|
60
60
|
"focus-visible:ring-0 focus-visible:border-0",
|
|
61
61
|
t
|
|
@@ -64,11 +64,11 @@ const m = a.forwardRef(({ className: t, ...r }, o) => /* @__PURE__ */ n.jsx(
|
|
|
64
64
|
}
|
|
65
65
|
));
|
|
66
66
|
m.displayName = "InputGroupTextarea";
|
|
67
|
-
const x =
|
|
67
|
+
const x = e.forwardRef(({ className: t, ...r }, o) => /* @__PURE__ */ n.jsx(
|
|
68
68
|
"span",
|
|
69
69
|
{
|
|
70
70
|
ref: o,
|
|
71
|
-
className:
|
|
71
|
+
className: a(
|
|
72
72
|
"text-sm text-muted-foreground whitespace-nowrap",
|
|
73
73
|
t
|
|
74
74
|
),
|
|
@@ -91,19 +91,19 @@ const b = i(
|
|
|
91
91
|
size: "sm"
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
),
|
|
94
|
+
), v = e.forwardRef(({ className: t, size: r, ...o }, s) => /* @__PURE__ */ n.jsx(
|
|
95
95
|
d,
|
|
96
96
|
{
|
|
97
97
|
ref: s,
|
|
98
|
-
className:
|
|
98
|
+
className: a(b({ size: r }), t),
|
|
99
99
|
...o
|
|
100
100
|
}
|
|
101
101
|
));
|
|
102
|
-
|
|
102
|
+
v.displayName = "InputGroupButton";
|
|
103
103
|
export {
|
|
104
104
|
l as InputGroup,
|
|
105
105
|
c as InputGroupAddon,
|
|
106
|
-
|
|
106
|
+
v as InputGroupButton,
|
|
107
107
|
f as InputGroupInput,
|
|
108
108
|
x as InputGroupText,
|
|
109
109
|
m as InputGroupTextarea
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as o } from "../../_virtual/jsx-runtime.js";
|
|
2
2
|
import * as n from "react";
|
|
3
3
|
import { cn as a } from "../../lib/utils.js";
|
|
4
|
-
const
|
|
5
|
-
({ className: e, type: r, ...i },
|
|
4
|
+
const l = n.forwardRef(
|
|
5
|
+
({ className: e, type: r, ...i }, t) => /* @__PURE__ */ o.jsx(
|
|
6
6
|
"input",
|
|
7
7
|
{
|
|
8
8
|
type: r,
|
|
9
|
-
ref:
|
|
9
|
+
ref: t,
|
|
10
10
|
"data-slot": "input",
|
|
11
11
|
className: a(
|
|
12
|
-
"font-normal file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-
|
|
12
|
+
"font-normal file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-white px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-normal disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 text-sm",
|
|
13
13
|
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
14
14
|
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
15
15
|
e
|
|
@@ -18,7 +18,7 @@ const d = n.forwardRef(
|
|
|
18
18
|
}
|
|
19
19
|
)
|
|
20
20
|
);
|
|
21
|
-
|
|
21
|
+
l.displayName = "Input";
|
|
22
22
|
export {
|
|
23
|
-
|
|
23
|
+
l as Input
|
|
24
24
|
};
|
|
@@ -9,7 +9,7 @@ const l = o.Root, c = o.Trigger, m = s.forwardRef(({ className: e, align: a = "c
|
|
|
9
9
|
align: a,
|
|
10
10
|
sideOffset: r,
|
|
11
11
|
className: n(
|
|
12
|
-
"z-
|
|
12
|
+
"z-[150] w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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",
|
|
13
13
|
e
|
|
14
14
|
),
|
|
15
15
|
...d
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as t } from "../../_virtual/jsx-runtime.js";
|
|
2
2
|
import * as d from "react";
|
|
3
3
|
import * as e from "@radix-ui/react-select";
|
|
4
|
-
import { Icon as n } from "../../components/atoms/icon/icon.js";
|
|
5
4
|
import { cn as o } from "../../lib/utils.js";
|
|
5
|
+
import { Icon as n } from "../../components/atoms/icon/icon.js";
|
|
6
6
|
const j = e.Root, N = e.Group, b = e.Value, p = d.forwardRef(({ className: s, children: r, ...a }, l) => /* @__PURE__ */ t.jsxs(
|
|
7
7
|
e.Trigger,
|
|
8
8
|
{
|
|
@@ -50,7 +50,7 @@ const f = d.forwardRef(({ className: s, children: r, position: a = "popper", ...
|
|
|
50
50
|
{
|
|
51
51
|
ref: m,
|
|
52
52
|
className: o(
|
|
53
|
-
"relative z-[
|
|
53
|
+
"relative z-[100] max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-border bg-popover p-1 text-popover-foreground shadow-md 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",
|
|
54
54
|
a === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
55
55
|
s
|
|
56
56
|
),
|
|
@@ -1,29 +1,4 @@
|
|
|
1
1
|
import { Toaster as Sonner } from 'sonner';
|
|
2
2
|
type ToasterProps = React.ComponentProps<typeof Sonner>;
|
|
3
|
-
|
|
4
|
-
position?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'top-center' | 'bottom-center';
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* Toast notification container component (based on Sonner).
|
|
8
|
-
* Place once at root level to enable toast notifications globally.
|
|
9
|
-
*
|
|
10
|
-
* Supports both:
|
|
11
|
-
* - Simple toasts (bottom-center): toast.success('Message')
|
|
12
|
-
* - NotificationAlert toasts (top-right): showNotificationAlert({ mode: 'success', message: 'Message' })
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```tsx
|
|
16
|
-
* // In root layout:
|
|
17
|
-
* <Toaster />
|
|
18
|
-
*
|
|
19
|
-
* // Simple toasts (appear at bottom-center):
|
|
20
|
-
* import { toast } from 'sonner';
|
|
21
|
-
* toast.success('Operation successful!');
|
|
22
|
-
*
|
|
23
|
-
* // NotificationAlert toasts (appear at top-right):
|
|
24
|
-
* import { showNotificationAlert } from '@yuno-payments/dashboard-design-system';
|
|
25
|
-
* showNotificationAlert({ mode: 'success', message: 'Operation successful!' });
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
declare const Toaster: ({ position, ...props }: ExtendedToasterProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const Toaster: ({ ...props }: ToasterProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
4
|
export { Toaster };
|
|
@@ -1,25 +1,21 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { Toaster as
|
|
3
|
-
const
|
|
4
|
-
|
|
1
|
+
import { j as o } from "../../_virtual/jsx-runtime.js";
|
|
2
|
+
import { Toaster as r } from "sonner";
|
|
3
|
+
const a = ({ ...t }) => /* @__PURE__ */ o.jsx(
|
|
4
|
+
r,
|
|
5
5
|
{
|
|
6
6
|
className: "toaster group",
|
|
7
|
-
position:
|
|
7
|
+
position: "bottom-center",
|
|
8
8
|
toastOptions: {
|
|
9
9
|
classNames: {
|
|
10
|
-
toast: "group toast group-[.toaster]:bg-
|
|
10
|
+
toast: "group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",
|
|
11
11
|
description: "group-[.toast]:text-muted-foreground",
|
|
12
12
|
actionButton: "group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",
|
|
13
13
|
cancelButton: "group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"
|
|
14
|
-
},
|
|
15
|
-
style: {
|
|
16
|
-
minWidth: "300px",
|
|
17
|
-
maxWidth: "420px"
|
|
18
14
|
}
|
|
19
15
|
},
|
|
20
|
-
...
|
|
16
|
+
...t
|
|
21
17
|
}
|
|
22
18
|
);
|
|
23
19
|
export {
|
|
24
|
-
|
|
20
|
+
a as Toaster
|
|
25
21
|
};
|
|
@@ -1,89 +1,89 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import * as
|
|
1
|
+
import { j as l } from "../../_virtual/jsx-runtime.js";
|
|
2
|
+
import * as o from "react";
|
|
3
3
|
import { cn as r } from "../../lib/utils.js";
|
|
4
|
-
const s =
|
|
4
|
+
const s = o.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ l.jsx("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ l.jsx(
|
|
5
5
|
"table",
|
|
6
6
|
{
|
|
7
|
-
ref:
|
|
7
|
+
ref: t,
|
|
8
8
|
className: r("w-full caption-bottom text-sm", e),
|
|
9
9
|
...a
|
|
10
10
|
}
|
|
11
11
|
) }));
|
|
12
12
|
s.displayName = "Table";
|
|
13
|
-
const d =
|
|
13
|
+
const d = o.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ l.jsx("thead", { ref: t, className: r("[&_tr]:border-b", e), ...a }));
|
|
14
14
|
d.displayName = "TableHeader";
|
|
15
|
-
const
|
|
15
|
+
const b = o.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ l.jsx(
|
|
16
16
|
"tbody",
|
|
17
17
|
{
|
|
18
|
-
ref:
|
|
18
|
+
ref: t,
|
|
19
19
|
className: r("[&_tr:last-child]:border-0", e),
|
|
20
20
|
...a
|
|
21
21
|
}
|
|
22
22
|
));
|
|
23
|
-
|
|
24
|
-
const
|
|
23
|
+
b.displayName = "TableBody";
|
|
24
|
+
const m = o.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ l.jsx(
|
|
25
25
|
"tfoot",
|
|
26
26
|
{
|
|
27
|
-
ref:
|
|
27
|
+
ref: t,
|
|
28
28
|
className: r(
|
|
29
|
-
"border-t bg-
|
|
29
|
+
"border-t bg-neutral-100/50 font-medium [&>tr]:last:border-b-0",
|
|
30
30
|
e
|
|
31
31
|
),
|
|
32
32
|
...a
|
|
33
33
|
}
|
|
34
34
|
));
|
|
35
|
-
|
|
36
|
-
const c =
|
|
35
|
+
m.displayName = "TableFooter";
|
|
36
|
+
const c = o.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ l.jsx(
|
|
37
37
|
"tr",
|
|
38
38
|
{
|
|
39
|
-
ref:
|
|
39
|
+
ref: t,
|
|
40
40
|
className: r(
|
|
41
|
-
"border-b transition-colors bg-
|
|
41
|
+
"border-b transition-colors bg-white hover:bg-neutral-100/50 data-[state=selected]:bg-neutral-100",
|
|
42
42
|
e
|
|
43
43
|
),
|
|
44
44
|
...a
|
|
45
45
|
}
|
|
46
46
|
));
|
|
47
47
|
c.displayName = "TableRow";
|
|
48
|
-
const i =
|
|
48
|
+
const i = o.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ l.jsx(
|
|
49
49
|
"th",
|
|
50
50
|
{
|
|
51
|
-
ref:
|
|
51
|
+
ref: t,
|
|
52
52
|
className: r(
|
|
53
|
-
"relative h-10 px-2 text-left align-middle font-medium text-
|
|
53
|
+
"relative h-10 px-2 text-left align-middle font-medium text-neutral-500 [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
54
54
|
e
|
|
55
55
|
),
|
|
56
56
|
...a
|
|
57
57
|
}
|
|
58
58
|
));
|
|
59
59
|
i.displayName = "TableHead";
|
|
60
|
-
const
|
|
60
|
+
const n = o.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ l.jsx(
|
|
61
61
|
"td",
|
|
62
62
|
{
|
|
63
|
-
ref:
|
|
63
|
+
ref: t,
|
|
64
64
|
className: r(
|
|
65
|
-
"p-2 align-middle
|
|
65
|
+
"p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
66
66
|
e
|
|
67
67
|
),
|
|
68
68
|
...a
|
|
69
69
|
}
|
|
70
70
|
));
|
|
71
|
-
|
|
72
|
-
const
|
|
71
|
+
n.displayName = "TableCell";
|
|
72
|
+
const f = o.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ l.jsx(
|
|
73
73
|
"caption",
|
|
74
74
|
{
|
|
75
|
-
ref:
|
|
76
|
-
className: r("mt-4 text-sm text-
|
|
75
|
+
ref: t,
|
|
76
|
+
className: r("mt-4 text-sm text-neutral-500", e),
|
|
77
77
|
...a
|
|
78
78
|
}
|
|
79
79
|
));
|
|
80
|
-
|
|
80
|
+
f.displayName = "TableCaption";
|
|
81
81
|
export {
|
|
82
82
|
s as Table,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
83
|
+
b as TableBody,
|
|
84
|
+
f as TableCaption,
|
|
85
|
+
n as TableCell,
|
|
86
|
+
m as TableFooter,
|
|
87
87
|
i as TableHead,
|
|
88
88
|
d as TableHeader,
|
|
89
89
|
c as TableRow
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import * as
|
|
3
|
-
import { cn as
|
|
4
|
-
const n =
|
|
5
|
-
({ className:
|
|
1
|
+
import { j as t } from "../../_virtual/jsx-runtime.js";
|
|
2
|
+
import * as a from "react";
|
|
3
|
+
import { cn as o } from "../../lib/utils.js";
|
|
4
|
+
const n = a.forwardRef(
|
|
5
|
+
({ className: e, ...r }, i) => /* @__PURE__ */ t.jsx(
|
|
6
6
|
"textarea",
|
|
7
7
|
{
|
|
8
8
|
ref: i,
|
|
9
9
|
"data-slot": "textarea",
|
|
10
|
-
className:
|
|
11
|
-
"font-normal placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex min-h-[80px] w-full min-w-0 rounded-md border bg-transparent px-3 py-2 text-
|
|
10
|
+
className: o(
|
|
11
|
+
"font-normal placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex min-h-[80px] w-full min-w-0 rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
12
12
|
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
13
13
|
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
14
14
|
"resize-none",
|
|
15
|
-
|
|
15
|
+
e
|
|
16
16
|
),
|
|
17
|
-
...
|
|
17
|
+
...r
|
|
18
18
|
}
|
|
19
19
|
)
|
|
20
20
|
);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
export interface TimePickerProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "value"> {
|
|
2
|
+
export interface TimePickerProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange"> {
|
|
3
3
|
value?: string;
|
|
4
|
+
onTimeChange?: (time: string) => void;
|
|
4
5
|
}
|
|
5
6
|
declare const TimePicker: React.ForwardRefExoticComponent<TimePickerProps & React.RefAttributes<HTMLInputElement>>;
|
|
6
7
|
export { TimePicker };
|
|
@@ -1,21 +1,27 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import * as
|
|
1
|
+
import { j as s } from "../../_virtual/jsx-runtime.js";
|
|
2
|
+
import * as n from "react";
|
|
3
3
|
import { Input as p } from "./input.js";
|
|
4
|
-
import { cn as
|
|
5
|
-
const
|
|
6
|
-
({ className:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
4
|
+
import { cn as c } from "../../lib/utils.js";
|
|
5
|
+
const f = n.forwardRef(
|
|
6
|
+
({ className: e, value: r, onTimeChange: t, ...m }, o) => {
|
|
7
|
+
const a = (i) => {
|
|
8
|
+
t?.(i.target.value);
|
|
9
|
+
};
|
|
10
|
+
return /* @__PURE__ */ s.jsx(
|
|
11
|
+
p,
|
|
12
|
+
{
|
|
13
|
+
ref: o,
|
|
14
|
+
type: "time",
|
|
15
|
+
step: "1",
|
|
16
|
+
value: r,
|
|
17
|
+
onChange: a,
|
|
18
|
+
className: c("h-9", e),
|
|
19
|
+
...m
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
}
|
|
17
23
|
);
|
|
18
|
-
|
|
24
|
+
f.displayName = "TimePicker";
|
|
19
25
|
export {
|
|
20
|
-
|
|
26
|
+
f as TimePicker
|
|
21
27
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as n } from "../../_virtual/jsx-runtime.js";
|
|
2
2
|
import * as s from "react";
|
|
3
3
|
import * as e from "@radix-ui/react-toggle";
|
|
4
4
|
import { cva as d } from "../../node_modules/class-variance-authority/dist/index.js";
|
|
5
5
|
import { cn as f } from "../../lib/utils.js";
|
|
6
|
-
const
|
|
6
|
+
const l = d(
|
|
7
7
|
"inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",
|
|
8
8
|
{
|
|
9
9
|
variants: {
|
|
10
10
|
variant: {
|
|
11
11
|
default: "bg-transparent",
|
|
12
|
-
outline: "border border-input bg-
|
|
12
|
+
outline: "border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"
|
|
13
13
|
},
|
|
14
14
|
size: {
|
|
15
|
-
default: "h-9
|
|
16
|
-
sm: "h-8
|
|
17
|
-
lg: "h-10
|
|
15
|
+
default: "h-9 px-2",
|
|
16
|
+
sm: "h-8 px-2.5",
|
|
17
|
+
lg: "h-10 px-2.5"
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
defaultVariants: {
|
|
@@ -22,16 +22,16 @@ const c = d(
|
|
|
22
22
|
size: "default"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
),
|
|
25
|
+
), m = s.forwardRef(({ className: t, variant: o, size: r, ...a }, i) => /* @__PURE__ */ n.jsx(
|
|
26
26
|
e.Root,
|
|
27
27
|
{
|
|
28
|
-
ref:
|
|
29
|
-
className: f(
|
|
30
|
-
...
|
|
28
|
+
ref: i,
|
|
29
|
+
className: f(l({ variant: o, size: r, className: t })),
|
|
30
|
+
...a
|
|
31
31
|
}
|
|
32
32
|
));
|
|
33
|
-
|
|
33
|
+
m.displayName = e.Root.displayName;
|
|
34
34
|
export {
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
m as Toggle,
|
|
36
|
+
l as toggleVariants
|
|
37
37
|
};
|
|
@@ -1,36 +1,26 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
4
|
-
import { cn as
|
|
5
|
-
const
|
|
6
|
-
|
|
1
|
+
import { j as t } from "../../_virtual/jsx-runtime.js";
|
|
2
|
+
import * as d from "react";
|
|
3
|
+
import * as o from "@radix-ui/react-tooltip";
|
|
4
|
+
import { cn as s } from "../../lib/utils.js";
|
|
5
|
+
const p = o.Provider, f = o.Root, c = o.Trigger, n = d.forwardRef(({ className: e, sideOffset: i = 4, ...a }, r) => /* @__PURE__ */ t.jsx(o.Portal, { children: /* @__PURE__ */ t.jsx(
|
|
6
|
+
o.Content,
|
|
7
7
|
{
|
|
8
8
|
ref: r,
|
|
9
|
-
sideOffset:
|
|
10
|
-
className:
|
|
11
|
-
"z-
|
|
9
|
+
sideOffset: i,
|
|
10
|
+
className: s(
|
|
11
|
+
"z-[1000000000] overflow-hidden rounded-lg bg-black px-3 py-1.5 text-xs text-white",
|
|
12
12
|
"animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
13
13
|
"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",
|
|
14
14
|
e
|
|
15
15
|
),
|
|
16
16
|
style: { backgroundColor: "rgb(10, 10, 10)", opacity: 1 },
|
|
17
|
-
...
|
|
18
|
-
children: [
|
|
19
|
-
i.children,
|
|
20
|
-
/* @__PURE__ */ o.jsx(
|
|
21
|
-
t.Arrow,
|
|
22
|
-
{
|
|
23
|
-
className: "fill-black",
|
|
24
|
-
style: { fill: "rgb(10, 10, 10)" }
|
|
25
|
-
}
|
|
26
|
-
)
|
|
27
|
-
]
|
|
17
|
+
...a
|
|
28
18
|
}
|
|
29
19
|
) }));
|
|
30
|
-
|
|
20
|
+
n.displayName = o.Content.displayName;
|
|
31
21
|
export {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
22
|
+
f as Tooltip,
|
|
23
|
+
n as TooltipContent,
|
|
24
|
+
p as TooltipProvider,
|
|
25
|
+
c as TooltipTrigger
|
|
36
26
|
};
|
package/package.json
CHANGED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { j as s } from "../../../_virtual/jsx-runtime.js";
|
|
2
|
-
const i = ({ size: C = 16, ...t }) => /* @__PURE__ */ s.jsxs(
|
|
3
|
-
"svg",
|
|
4
|
-
{
|
|
5
|
-
width: C,
|
|
6
|
-
height: C,
|
|
7
|
-
viewBox: "0 0 32 32",
|
|
8
|
-
fill: "none",
|
|
9
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
-
...t,
|
|
11
|
-
children: [
|
|
12
|
-
/* @__PURE__ */ s.jsx(
|
|
13
|
-
"path",
|
|
14
|
-
{
|
|
15
|
-
d: "M22.5987 5.33325C21.7107 7.76002 20.9907 8.47896 18.565 9.36657C20.9907 10.2545 21.7107 10.9746 22.5987 13.4003C23.4867 10.9746 24.2064 10.2545 26.632 9.36657C24.2064 8.47896 23.4867 7.76002 22.5987 5.33325Z",
|
|
16
|
-
fill: "url(#paint0_linear_12357_32157)"
|
|
17
|
-
}
|
|
18
|
-
),
|
|
19
|
-
/* @__PURE__ */ s.jsx(
|
|
20
|
-
"path",
|
|
21
|
-
{
|
|
22
|
-
d: "M13.7673 19.5838H18.8632C18.9599 19.5838 19.0557 19.5641 19.1446 19.526C19.2336 19.4879 19.3139 19.4321 19.3806 19.3621C19.4474 19.2921 19.4993 19.2092 19.5331 19.1186C19.567 19.0279 19.5821 18.9313 19.5775 18.8347C19.3936 15.3146 17.913 11.9873 15.4211 9.49435C12.9292 7.0014 9.60247 5.51937 6.0825 5.33405C5.98585 5.32949 5.88927 5.34459 5.79861 5.37842C5.70796 5.41226 5.62511 5.46414 5.55508 5.53092C5.48504 5.59769 5.42929 5.67798 5.39117 5.76693C5.35306 5.85587 5.33339 5.95162 5.33334 6.04839V11.7631C5.33479 11.9429 5.40368 12.1157 5.5264 12.2471C5.64912 12.3786 5.81672 12.4592 5.99602 12.473C7.49759 12.6156 8.91561 13.2294 10.0473 14.2266C11.179 15.2237 11.9665 16.5532 12.2971 18.0248C12.3447 18.2304 12.3397 18.4446 12.2823 18.6477C12.225 18.8507 12.1172 19.036 11.9691 19.1862C11.8543 19.3013 11.7179 19.3925 11.5678 19.4548C11.4176 19.517 11.2567 19.5491 11.0941 19.549H6.04656C5.9529 19.549 5.86016 19.5674 5.77363 19.6033C5.6871 19.6391 5.60847 19.6917 5.54224 19.7579C5.47601 19.8241 5.42348 19.9028 5.38764 19.9893C5.35179 20.0758 5.33334 20.1686 5.33334 20.2622V25.9534C5.3332 26.047 5.35151 26.1397 5.38723 26.2262C5.42295 26.3127 5.47538 26.3914 5.54152 26.4576C5.60765 26.5239 5.6862 26.5764 5.77267 26.6123C5.85914 26.6481 5.95183 26.6666 6.04544 26.6666H11.7321C11.8257 26.6666 11.9184 26.6481 12.0049 26.6123C12.0913 26.5764 12.1699 26.5239 12.236 26.4576C12.3022 26.3914 12.3546 26.3127 12.3903 26.2262C12.426 26.1397 12.4443 26.047 12.4442 25.9534V20.8991C12.4444 20.5717 12.5745 20.2579 12.8059 20.0263L12.889 19.9421C13.0038 19.8271 13.1402 19.7358 13.2903 19.6735C13.4404 19.6113 13.6014 19.5793 13.7639 19.5793",
|
|
23
|
-
fill: "url(#paint1_linear_12357_32157)"
|
|
24
|
-
}
|
|
25
|
-
),
|
|
26
|
-
/* @__PURE__ */ s.jsxs("defs", { children: [
|
|
27
|
-
/* @__PURE__ */ s.jsxs(
|
|
28
|
-
"linearGradient",
|
|
29
|
-
{
|
|
30
|
-
id: "paint0_linear_12357_32157",
|
|
31
|
-
x1: "19.6597",
|
|
32
|
-
y1: "4.82531",
|
|
33
|
-
x2: "26.6515",
|
|
34
|
-
y2: "9.13909",
|
|
35
|
-
gradientUnits: "userSpaceOnUse",
|
|
36
|
-
children: [
|
|
37
|
-
/* @__PURE__ */ s.jsx("stop", { stopColor: "#D073F6" }),
|
|
38
|
-
/* @__PURE__ */ s.jsx("stop", { offset: "1", stopColor: "#5E77FD" })
|
|
39
|
-
]
|
|
40
|
-
}
|
|
41
|
-
),
|
|
42
|
-
/* @__PURE__ */ s.jsxs(
|
|
43
|
-
"linearGradient",
|
|
44
|
-
{
|
|
45
|
-
id: "paint1_linear_12357_32157",
|
|
46
|
-
x1: "7.26631",
|
|
47
|
-
y1: "3.98998",
|
|
48
|
-
x2: "21.839",
|
|
49
|
-
y2: "9.9936",
|
|
50
|
-
gradientUnits: "userSpaceOnUse",
|
|
51
|
-
children: [
|
|
52
|
-
/* @__PURE__ */ s.jsx("stop", { stopColor: "#D073F6" }),
|
|
53
|
-
/* @__PURE__ */ s.jsx("stop", { offset: "0.5", stopColor: "#5E77FD" }),
|
|
54
|
-
/* @__PURE__ */ s.jsx("stop", { offset: "1", stopColor: "#21B8F2" })
|
|
55
|
-
]
|
|
56
|
-
}
|
|
57
|
-
)
|
|
58
|
-
] })
|
|
59
|
-
]
|
|
60
|
-
}
|
|
61
|
-
);
|
|
62
|
-
export {
|
|
63
|
-
i as default
|
|
64
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Label as ShadcnLabel } from '../../../vendor/shadcn/label';
|
|
2
|
-
import { ComponentProps } from 'react';
|
|
3
|
-
interface LabelProps extends ComponentProps<typeof ShadcnLabel> {
|
|
4
|
-
info?: string;
|
|
5
|
-
className?: string;
|
|
6
|
-
}
|
|
7
|
-
declare const Label: {
|
|
8
|
-
({ htmlFor, className, info, ...props }: LabelProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
displayName: string;
|
|
10
|
-
};
|
|
11
|
-
export { Label };
|