laif-ds 0.2.37 → 0.2.38
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/_virtual/index3.js +5 -5
- package/dist/_virtual/index4.js +5 -5
- package/dist/_virtual/index5.js +4 -4
- package/dist/components/ui/accordion.js +5 -5
- package/dist/components/ui/alert-dialog.js +6 -6
- package/dist/components/ui/breadcrumb.js +4 -4
- package/dist/components/ui/calendar.js +44 -44
- package/dist/components/ui/context-menu.js +13 -13
- package/dist/components/ui/date-picker.js +62 -54
- package/dist/components/ui/dialog.js +4 -4
- package/dist/components/ui/hover-card.js +4 -4
- package/dist/components/ui/menubar.js +14 -14
- package/dist/components/ui/popover.js +4 -4
- package/dist/components/ui/select.js +13 -13
- package/dist/components/ui/sheet.js +5 -5
- package/dist/components/ui/tabs.js +4 -4
- package/dist/index.d.ts +11 -5
- package/dist/index.js +144 -144
- package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +4 -4
- package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.js +5 -5
- package/dist/node_modules/@radix-ui/react-context-menu/dist/index.js +12 -12
- package/dist/node_modules/@radix-ui/react-menubar/dist/index.js +14 -14
- package/dist/node_modules/eventemitter3/index.js +1 -1
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
- package/dist/node_modules/recharts/es6/util/Events.js +1 -1
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/dist/node_modules/vaul/dist/index.js +3 -3
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as a, jsxs as s } from "react/jsx-runtime";
|
|
3
|
-
import { Root as u,
|
|
3
|
+
import { Root as u, CheckboxItem as c, ItemIndicator as d, Content as l, Group as m, Item as b, Label as f, Menu as p, Portal as g, RadioGroup as x, RadioItem as v, Separator as h, Sub as M, SubContent as z, SubTrigger as N, Trigger as y } from "../../node_modules/@radix-ui/react-menubar/dist/index.js";
|
|
4
4
|
import { cn as r } from "../../lib/utils.js";
|
|
5
5
|
import I from "../../node_modules/lucide-react/dist/esm/icons/check.js";
|
|
6
6
|
import S from "../../node_modules/lucide-react/dist/esm/icons/circle.js";
|
|
@@ -24,29 +24,29 @@ function L({
|
|
|
24
24
|
function P({
|
|
25
25
|
...e
|
|
26
26
|
}) {
|
|
27
|
-
return /* @__PURE__ */ a(
|
|
27
|
+
return /* @__PURE__ */ a(p, { "data-slot": "menubar-menu", ...e });
|
|
28
28
|
}
|
|
29
29
|
function q({
|
|
30
30
|
...e
|
|
31
31
|
}) {
|
|
32
|
-
return /* @__PURE__ */ a(
|
|
32
|
+
return /* @__PURE__ */ a(m, { "data-slot": "menubar-group", ...e });
|
|
33
33
|
}
|
|
34
34
|
function k({
|
|
35
35
|
...e
|
|
36
36
|
}) {
|
|
37
|
-
return /* @__PURE__ */ a(
|
|
37
|
+
return /* @__PURE__ */ a(g, { "data-slot": "menubar-portal", ...e });
|
|
38
38
|
}
|
|
39
39
|
function A({
|
|
40
40
|
...e
|
|
41
41
|
}) {
|
|
42
|
-
return /* @__PURE__ */ a(
|
|
42
|
+
return /* @__PURE__ */ a(x, { "data-slot": "menubar-radio-group", ...e });
|
|
43
43
|
}
|
|
44
44
|
function B({
|
|
45
45
|
className: e,
|
|
46
46
|
...t
|
|
47
47
|
}) {
|
|
48
48
|
return /* @__PURE__ */ a(
|
|
49
|
-
|
|
49
|
+
y,
|
|
50
50
|
{
|
|
51
51
|
"data-slot": "menubar-trigger",
|
|
52
52
|
className: r(
|
|
@@ -65,7 +65,7 @@ function D({
|
|
|
65
65
|
...i
|
|
66
66
|
}) {
|
|
67
67
|
return /* @__PURE__ */ a(k, { children: /* @__PURE__ */ a(
|
|
68
|
-
|
|
68
|
+
l,
|
|
69
69
|
{
|
|
70
70
|
"data-slot": "menubar-content",
|
|
71
71
|
align: t,
|
|
@@ -106,7 +106,7 @@ function F({
|
|
|
106
106
|
...o
|
|
107
107
|
}) {
|
|
108
108
|
return /* @__PURE__ */ s(
|
|
109
|
-
|
|
109
|
+
c,
|
|
110
110
|
{
|
|
111
111
|
"data-slot": "menubar-checkbox-item",
|
|
112
112
|
className: r(
|
|
@@ -128,7 +128,7 @@ function H({
|
|
|
128
128
|
...n
|
|
129
129
|
}) {
|
|
130
130
|
return /* @__PURE__ */ s(
|
|
131
|
-
|
|
131
|
+
v,
|
|
132
132
|
{
|
|
133
133
|
"data-slot": "menubar-radio-item",
|
|
134
134
|
className: r(
|
|
@@ -149,7 +149,7 @@ function J({
|
|
|
149
149
|
...n
|
|
150
150
|
}) {
|
|
151
151
|
return /* @__PURE__ */ a(
|
|
152
|
-
|
|
152
|
+
f,
|
|
153
153
|
{
|
|
154
154
|
"data-slot": "menubar-label",
|
|
155
155
|
"data-inset": t,
|
|
@@ -166,7 +166,7 @@ function K({
|
|
|
166
166
|
...t
|
|
167
167
|
}) {
|
|
168
168
|
return /* @__PURE__ */ a(
|
|
169
|
-
|
|
169
|
+
h,
|
|
170
170
|
{
|
|
171
171
|
"data-slot": "menubar-separator",
|
|
172
172
|
className: r("bg-d-border -mx-1 my-1 h-px", e),
|
|
@@ -193,7 +193,7 @@ function O({
|
|
|
193
193
|
function Q({
|
|
194
194
|
...e
|
|
195
195
|
}) {
|
|
196
|
-
return /* @__PURE__ */ a(
|
|
196
|
+
return /* @__PURE__ */ a(M, { "data-slot": "menubar-sub", ...e });
|
|
197
197
|
}
|
|
198
198
|
function U({
|
|
199
199
|
className: e,
|
|
@@ -202,7 +202,7 @@ function U({
|
|
|
202
202
|
...o
|
|
203
203
|
}) {
|
|
204
204
|
return /* @__PURE__ */ s(
|
|
205
|
-
|
|
205
|
+
N,
|
|
206
206
|
{
|
|
207
207
|
"data-slot": "menubar-sub-trigger",
|
|
208
208
|
"data-inset": t,
|
|
@@ -223,7 +223,7 @@ function V({
|
|
|
223
223
|
...t
|
|
224
224
|
}) {
|
|
225
225
|
return /* @__PURE__ */ a(
|
|
226
|
-
|
|
226
|
+
z,
|
|
227
227
|
{
|
|
228
228
|
"data-slot": "menubar-sub-content",
|
|
229
229
|
className: r(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
-
import { Root as n,
|
|
3
|
+
import { Root as n, Portal as i, Content as s, Trigger as p } from "../../node_modules/@radix-ui/react-popover/dist/index.js";
|
|
4
4
|
import { cn as m } from "../../lib/utils.js";
|
|
5
5
|
function u({
|
|
6
6
|
...o
|
|
@@ -10,7 +10,7 @@ function u({
|
|
|
10
10
|
function g({
|
|
11
11
|
...o
|
|
12
12
|
}) {
|
|
13
|
-
return /* @__PURE__ */ t(
|
|
13
|
+
return /* @__PURE__ */ t(p, { "data-slot": "popover-trigger", ...o });
|
|
14
14
|
}
|
|
15
15
|
function v({
|
|
16
16
|
className: o,
|
|
@@ -19,8 +19,8 @@ function v({
|
|
|
19
19
|
container: a,
|
|
20
20
|
...d
|
|
21
21
|
}) {
|
|
22
|
-
return /* @__PURE__ */ t(
|
|
23
|
-
|
|
22
|
+
return /* @__PURE__ */ t(i, { container: a, children: /* @__PURE__ */ t(
|
|
23
|
+
s,
|
|
24
24
|
{
|
|
25
25
|
"data-slot": "popover-content",
|
|
26
26
|
align: e,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
3
|
-
import { Root as p,
|
|
3
|
+
import { Root as p, Portal as f, Content as g, Viewport as x, Group as h, Item as v, ItemIndicator as b, ItemText as y, Label as S, Separator as z, Trigger as w, Icon as N, Value as C, ScrollUpButton as I, ScrollDownButton as _ } from "../../node_modules/@radix-ui/react-select/dist/index.js";
|
|
4
4
|
import * as c from "react";
|
|
5
5
|
import { Label as j } from "./label.js";
|
|
6
6
|
import { cn as o } from "../../lib/utils.js";
|
|
7
|
-
import u from "../../node_modules/lucide-react/dist/esm/icons/chevron-down.js";
|
|
8
7
|
import k from "../../node_modules/lucide-react/dist/esm/icons/check.js";
|
|
8
|
+
import u from "../../node_modules/lucide-react/dist/esm/icons/chevron-down.js";
|
|
9
9
|
import B from "../../node_modules/lucide-react/dist/esm/icons/chevron-up.js";
|
|
10
10
|
function q({
|
|
11
11
|
size: t = "default",
|
|
@@ -24,12 +24,12 @@ const m = c.createContext({ size: "default" }), L = () => c.useContext(m);
|
|
|
24
24
|
function A({
|
|
25
25
|
...t
|
|
26
26
|
}) {
|
|
27
|
-
return /* @__PURE__ */ e(
|
|
27
|
+
return /* @__PURE__ */ e(h, { "data-slot": "select-group", ...t });
|
|
28
28
|
}
|
|
29
29
|
function E({
|
|
30
30
|
...t
|
|
31
31
|
}) {
|
|
32
|
-
return /* @__PURE__ */ e(
|
|
32
|
+
return /* @__PURE__ */ e(C, { "data-slot": "select-value", ...t });
|
|
33
33
|
}
|
|
34
34
|
function H({
|
|
35
35
|
className: t,
|
|
@@ -39,7 +39,7 @@ function H({
|
|
|
39
39
|
}) {
|
|
40
40
|
const { size: d, id: n } = L(), l = a || d;
|
|
41
41
|
return /* @__PURE__ */ i(
|
|
42
|
-
|
|
42
|
+
w,
|
|
43
43
|
{
|
|
44
44
|
id: n,
|
|
45
45
|
"data-slot": "select-trigger",
|
|
@@ -62,7 +62,7 @@ function H({
|
|
|
62
62
|
...r,
|
|
63
63
|
children: [
|
|
64
64
|
s,
|
|
65
|
-
/* @__PURE__ */ e(
|
|
65
|
+
/* @__PURE__ */ e(N, { asChild: !0, children: /* @__PURE__ */ e(u, { className: "size-4 opacity-50" }) })
|
|
66
66
|
]
|
|
67
67
|
}
|
|
68
68
|
);
|
|
@@ -73,8 +73,8 @@ function J({
|
|
|
73
73
|
position: s = "popper",
|
|
74
74
|
...r
|
|
75
75
|
}) {
|
|
76
|
-
return /* @__PURE__ */ e(
|
|
77
|
-
|
|
76
|
+
return /* @__PURE__ */ e(f, { children: /* @__PURE__ */ i(
|
|
77
|
+
g,
|
|
78
78
|
{
|
|
79
79
|
"data-slot": "select-content",
|
|
80
80
|
className: o(
|
|
@@ -87,7 +87,7 @@ function J({
|
|
|
87
87
|
children: [
|
|
88
88
|
/* @__PURE__ */ e(D, {}),
|
|
89
89
|
/* @__PURE__ */ e(
|
|
90
|
-
|
|
90
|
+
x,
|
|
91
91
|
{
|
|
92
92
|
className: o(
|
|
93
93
|
"p-1",
|
|
@@ -123,7 +123,7 @@ function M({
|
|
|
123
123
|
...s
|
|
124
124
|
}) {
|
|
125
125
|
return /* @__PURE__ */ i(
|
|
126
|
-
|
|
126
|
+
v,
|
|
127
127
|
{
|
|
128
128
|
"data-slot": "select-item",
|
|
129
129
|
className: o(
|
|
@@ -132,8 +132,8 @@ function M({
|
|
|
132
132
|
),
|
|
133
133
|
...s,
|
|
134
134
|
children: [
|
|
135
|
-
/* @__PURE__ */ e("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e(
|
|
136
|
-
/* @__PURE__ */ e(
|
|
135
|
+
/* @__PURE__ */ e("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e(b, { children: /* @__PURE__ */ e(k, { className: "size-4" }) }) }),
|
|
136
|
+
/* @__PURE__ */ e(y, { children: a })
|
|
137
137
|
]
|
|
138
138
|
}
|
|
139
139
|
);
|
|
@@ -143,7 +143,7 @@ function O({
|
|
|
143
143
|
...a
|
|
144
144
|
}) {
|
|
145
145
|
return /* @__PURE__ */ e(
|
|
146
|
-
|
|
146
|
+
z,
|
|
147
147
|
{
|
|
148
148
|
"data-slot": "select-separator",
|
|
149
149
|
className: o(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
3
|
-
import { Root as d,
|
|
3
|
+
import { Root as d, Content as i, Close as l, Description as c, Title as f, Trigger as u, Portal as m, Overlay as h } from "../../node_modules/@radix-ui/react-dialog/dist/index.js";
|
|
4
4
|
import { cn as a } from "../../lib/utils.js";
|
|
5
5
|
import p from "../../node_modules/lucide-react/dist/esm/icons/x.js";
|
|
6
6
|
function v({ ...t }) {
|
|
@@ -9,7 +9,7 @@ function v({ ...t }) {
|
|
|
9
9
|
function w({
|
|
10
10
|
...t
|
|
11
11
|
}) {
|
|
12
|
-
return /* @__PURE__ */ o(
|
|
12
|
+
return /* @__PURE__ */ o(u, { "data-slot": "sheet-trigger", ...t });
|
|
13
13
|
}
|
|
14
14
|
function g({
|
|
15
15
|
...t
|
|
@@ -41,7 +41,7 @@ function C({
|
|
|
41
41
|
return /* @__PURE__ */ s(g, { children: [
|
|
42
42
|
/* @__PURE__ */ o(b, {}),
|
|
43
43
|
/* @__PURE__ */ s(
|
|
44
|
-
|
|
44
|
+
i,
|
|
45
45
|
{
|
|
46
46
|
"data-slot": "sheet-content",
|
|
47
47
|
className: a(
|
|
@@ -55,7 +55,7 @@ function C({
|
|
|
55
55
|
...n,
|
|
56
56
|
children: [
|
|
57
57
|
e,
|
|
58
|
-
/* @__PURE__ */ s(
|
|
58
|
+
/* @__PURE__ */ s(l, { className: "ring-offset-d-background focus:ring-d-ring data-[state=open]:bg-d-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none", children: [
|
|
59
59
|
/* @__PURE__ */ o(p, { className: "size-4" }),
|
|
60
60
|
/* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
|
|
61
61
|
] })
|
|
@@ -102,7 +102,7 @@ function j({
|
|
|
102
102
|
...e
|
|
103
103
|
}) {
|
|
104
104
|
return /* @__PURE__ */ o(
|
|
105
|
-
|
|
105
|
+
c,
|
|
106
106
|
{
|
|
107
107
|
"data-slot": "sheet-description",
|
|
108
108
|
className: a("text-d-secondary-foreground text-sm", t),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as s } from "react/jsx-runtime";
|
|
3
|
-
import { Root as o,
|
|
3
|
+
import { Root as o, Content as i, List as r, Trigger as a } from "../../node_modules/@radix-ui/react-tabs/dist/index.js";
|
|
4
4
|
import { cn as n } from "../../lib/utils.js";
|
|
5
5
|
function u({
|
|
6
6
|
className: e,
|
|
@@ -20,7 +20,7 @@ function f({
|
|
|
20
20
|
...t
|
|
21
21
|
}) {
|
|
22
22
|
return /* @__PURE__ */ s(
|
|
23
|
-
|
|
23
|
+
r,
|
|
24
24
|
{
|
|
25
25
|
"data-slot": "tabs-list",
|
|
26
26
|
className: n(
|
|
@@ -36,7 +36,7 @@ function b({
|
|
|
36
36
|
...t
|
|
37
37
|
}) {
|
|
38
38
|
return /* @__PURE__ */ s(
|
|
39
|
-
|
|
39
|
+
a,
|
|
40
40
|
{
|
|
41
41
|
"data-slot": "tabs-trigger",
|
|
42
42
|
className: n(
|
|
@@ -52,7 +52,7 @@ function g({
|
|
|
52
52
|
...t
|
|
53
53
|
}) {
|
|
54
54
|
return /* @__PURE__ */ s(
|
|
55
|
-
|
|
55
|
+
i,
|
|
56
56
|
{
|
|
57
57
|
"data-slot": "tabs-content",
|
|
58
58
|
className: n("flex-1 outline-none", e),
|
package/dist/index.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ import { HTMLAttributes } from 'react';
|
|
|
26
26
|
import { JSX } from 'react/jsx-runtime';
|
|
27
27
|
import { JSX as JSX_2 } from 'react';
|
|
28
28
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
29
|
+
import { Locale } from 'date-fns';
|
|
29
30
|
import * as LucideIcons from 'lucide-react';
|
|
30
31
|
import * as MenubarPrimitive from '@radix-ui/react-menubar';
|
|
31
32
|
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
|
@@ -386,9 +387,7 @@ export declare const buttonVariants: (props?: ({
|
|
|
386
387
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
387
388
|
} & ClassProp) | undefined) => string;
|
|
388
389
|
|
|
389
|
-
export declare function Calendar({ className, classNames, showOutsideDays,
|
|
390
|
-
buttonVariant?: React_2.ComponentProps<typeof Button>["variant"];
|
|
391
|
-
}): JSX.Element;
|
|
390
|
+
export declare function Calendar({ className, classNames, showOutsideDays, buttonVariant, formatters, components, ...props }: CalendarProps): JSX.Element;
|
|
392
391
|
|
|
393
392
|
export declare interface CalendarAppointment {
|
|
394
393
|
id: number;
|
|
@@ -408,6 +407,10 @@ export declare interface CalendarAppointment {
|
|
|
408
407
|
groupBy?: string;
|
|
409
408
|
}
|
|
410
409
|
|
|
410
|
+
export declare type CalendarProps = React_2.ComponentProps<typeof DayPicker> & {
|
|
411
|
+
buttonVariant?: React_2.ComponentProps<typeof Button>["variant"];
|
|
412
|
+
};
|
|
413
|
+
|
|
411
414
|
export declare function Card({ className, size, ...props }: CardProps): JSX.Element;
|
|
412
415
|
|
|
413
416
|
export declare function CardContent({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
@@ -1052,9 +1055,9 @@ export declare interface DataTableState {
|
|
|
1052
1055
|
computedSorting?: DataTableSorting;
|
|
1053
1056
|
}
|
|
1054
1057
|
|
|
1055
|
-
export declare function DatePicker({ value, onChange, placeholder, dateFormat, className, buttonVariant, disabled, size, firstDate, lastDate, availableDates, }: DatePickerProps): JSX.Element;
|
|
1058
|
+
export declare function DatePicker({ value, onChange, placeholder, dateFormat, className, buttonVariant, disabled, size, firstDate, lastDate, availableDates, locale, initialCalendarMonth, customCalendarProps, }: DatePickerProps): JSX.Element;
|
|
1056
1059
|
|
|
1057
|
-
declare interface DatePickerProps {
|
|
1060
|
+
export declare interface DatePickerProps {
|
|
1058
1061
|
value?: Date;
|
|
1059
1062
|
onChange?: (date: Date | undefined) => void;
|
|
1060
1063
|
placeholder?: string;
|
|
@@ -1066,6 +1069,9 @@ declare interface DatePickerProps {
|
|
|
1066
1069
|
firstDate?: Date;
|
|
1067
1070
|
lastDate?: Date;
|
|
1068
1071
|
availableDates?: Date[];
|
|
1072
|
+
locale?: Partial<Locale>;
|
|
1073
|
+
initialCalendarMonth?: Date;
|
|
1074
|
+
customCalendarProps?: React_2.ComponentProps<typeof Calendar>;
|
|
1069
1075
|
}
|
|
1070
1076
|
|
|
1071
1077
|
export declare function Dialog({ ...props }: React_2.ComponentProps<typeof DialogPrimitive.Root>): JSX.Element;
|