laif-ds 0.1.17 → 0.1.19
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/index2.js +5 -2
- package/dist/_virtual/index3.js +5 -5
- package/dist/_virtual/index4.js +2 -5
- package/dist/components/ui/app-sidebar.js +62 -34
- package/dist/components/ui/async-select.js +34 -33
- package/dist/components/ui/calendar.js +1 -1
- package/dist/components/ui/date-picker.js +31 -31
- package/dist/components/ui/input.js +27 -25
- package/dist/components/ui/select.js +46 -40
- package/dist/components/ui/sidebar.js +1 -1
- package/dist/components/ui/tabs.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
- package/dist/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/dist/styles.v3.css +1 -1
- package/package.json +1 -1
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import * as
|
|
4
|
-
import { Root as p, Group as
|
|
2
|
+
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import * as d from "react";
|
|
4
|
+
import { Root as p, Group as f, Value as g, Trigger as x, Icon as h, Portal as v, Content as b, Viewport as y, Label as S, Item as w, ItemIndicator as z, ItemText as N, Separator as C, ScrollUpButton as I, ScrollDownButton as _ } from "../../node_modules/@radix-ui/react-select/dist/index.js";
|
|
5
5
|
import { cn as o } from "../../lib/utils.js";
|
|
6
|
-
import { Label as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
6
|
+
import { Label as j } from "./label.js";
|
|
7
|
+
import c from "../../node_modules/lucide-react/dist/esm/icons/chevron-down.js";
|
|
8
|
+
import k from "../../node_modules/lucide-react/dist/esm/icons/check.js";
|
|
9
|
+
import B from "../../node_modules/lucide-react/dist/esm/icons/chevron-up.js";
|
|
10
10
|
function q({
|
|
11
11
|
size: t = "default",
|
|
12
12
|
label: a,
|
|
13
13
|
labelClassName: s,
|
|
14
14
|
...r
|
|
15
15
|
}) {
|
|
16
|
-
const n =
|
|
17
|
-
return /* @__PURE__ */
|
|
16
|
+
const n = d.useId();
|
|
17
|
+
return /* @__PURE__ */ i("div", { className: "space-y-1.5", children: [
|
|
18
18
|
a && /* @__PURE__ */ e(
|
|
19
|
-
|
|
19
|
+
j,
|
|
20
20
|
{
|
|
21
21
|
htmlFor: n,
|
|
22
22
|
className: s,
|
|
23
23
|
children: a
|
|
24
24
|
}
|
|
25
25
|
),
|
|
26
|
-
/* @__PURE__ */ e(
|
|
26
|
+
/* @__PURE__ */ e(u.Provider, { value: { size: t, id: n }, children: /* @__PURE__ */ e(p, { "data-slot": "select", ...r }) })
|
|
27
27
|
] });
|
|
28
28
|
}
|
|
29
|
-
const
|
|
29
|
+
const u = d.createContext({ size: "default" }), L = () => d.useContext(u);
|
|
30
30
|
function A({
|
|
31
31
|
...t
|
|
32
32
|
}) {
|
|
33
|
-
return /* @__PURE__ */ e(
|
|
33
|
+
return /* @__PURE__ */ e(f, { "data-slot": "select-group", ...t });
|
|
34
34
|
}
|
|
35
35
|
function E({
|
|
36
36
|
...t
|
|
37
37
|
}) {
|
|
38
|
-
return /* @__PURE__ */ e(
|
|
38
|
+
return /* @__PURE__ */ e(g, { "data-slot": "select-value", ...t });
|
|
39
39
|
}
|
|
40
40
|
function H({
|
|
41
41
|
className: t,
|
|
@@ -43,21 +43,27 @@ function H({
|
|
|
43
43
|
children: s,
|
|
44
44
|
...r
|
|
45
45
|
}) {
|
|
46
|
-
const { size: n, id:
|
|
47
|
-
return /* @__PURE__ */
|
|
48
|
-
|
|
46
|
+
const { size: n, id: m } = L(), l = a || n;
|
|
47
|
+
return /* @__PURE__ */ i(
|
|
48
|
+
x,
|
|
49
49
|
{
|
|
50
|
-
id:
|
|
50
|
+
id: m,
|
|
51
51
|
"data-slot": "select-trigger",
|
|
52
|
-
"data-size":
|
|
52
|
+
"data-size": l,
|
|
53
53
|
className: o(
|
|
54
|
-
"
|
|
54
|
+
"flex items-center justify-between whitespace-nowrap rounded-md border border-d-input bg-transparent px-3 py-2 shadow-sm ring-offset-background data-[placeholder]:text-d-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
|
|
55
|
+
"aria-invalid:ring-d-destructive/20 dark:aria-invalid:ring-d-destructive/40 aria-invalid:border-d-destructive",
|
|
56
|
+
"[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
57
|
+
"*:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2",
|
|
58
|
+
l === "default" && "h-9 text-sm",
|
|
59
|
+
l === "sm" && "h-8 text-xs",
|
|
60
|
+
l === "lg" && "h-10 text-lg",
|
|
55
61
|
t
|
|
56
62
|
),
|
|
57
63
|
...r,
|
|
58
64
|
children: [
|
|
59
65
|
s,
|
|
60
|
-
/* @__PURE__ */ e(
|
|
66
|
+
/* @__PURE__ */ e(h, { asChild: !0, children: /* @__PURE__ */ e(c, { className: "size-4 opacity-50" }) })
|
|
61
67
|
]
|
|
62
68
|
}
|
|
63
69
|
);
|
|
@@ -68,8 +74,8 @@ function J({
|
|
|
68
74
|
position: s = "popper",
|
|
69
75
|
...r
|
|
70
76
|
}) {
|
|
71
|
-
return /* @__PURE__ */ e(
|
|
72
|
-
|
|
77
|
+
return /* @__PURE__ */ e(v, { children: /* @__PURE__ */ i(
|
|
78
|
+
b,
|
|
73
79
|
{
|
|
74
80
|
"data-slot": "select-content",
|
|
75
81
|
className: o(
|
|
@@ -80,9 +86,9 @@ function J({
|
|
|
80
86
|
position: s,
|
|
81
87
|
...r,
|
|
82
88
|
children: [
|
|
83
|
-
/* @__PURE__ */ e(
|
|
89
|
+
/* @__PURE__ */ e(D, {}),
|
|
84
90
|
/* @__PURE__ */ e(
|
|
85
|
-
|
|
91
|
+
y,
|
|
86
92
|
{
|
|
87
93
|
className: o(
|
|
88
94
|
"p-1",
|
|
@@ -91,7 +97,7 @@ function J({
|
|
|
91
97
|
children: a
|
|
92
98
|
}
|
|
93
99
|
),
|
|
94
|
-
/* @__PURE__ */ e(
|
|
100
|
+
/* @__PURE__ */ e(R, {})
|
|
95
101
|
]
|
|
96
102
|
}
|
|
97
103
|
) });
|
|
@@ -101,7 +107,7 @@ function K({
|
|
|
101
107
|
...a
|
|
102
108
|
}) {
|
|
103
109
|
return /* @__PURE__ */ e(
|
|
104
|
-
|
|
110
|
+
S,
|
|
105
111
|
{
|
|
106
112
|
"data-slot": "select-label",
|
|
107
113
|
className: o("text-d-secondary-foreground px-2 py-1.5 text-xs", t),
|
|
@@ -114,8 +120,8 @@ function M({
|
|
|
114
120
|
children: a,
|
|
115
121
|
...s
|
|
116
122
|
}) {
|
|
117
|
-
return /* @__PURE__ */
|
|
118
|
-
|
|
123
|
+
return /* @__PURE__ */ i(
|
|
124
|
+
w,
|
|
119
125
|
{
|
|
120
126
|
"data-slot": "select-item",
|
|
121
127
|
className: o(
|
|
@@ -124,8 +130,8 @@ function M({
|
|
|
124
130
|
),
|
|
125
131
|
...s,
|
|
126
132
|
children: [
|
|
127
|
-
/* @__PURE__ */ e("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e(
|
|
128
|
-
/* @__PURE__ */ e(
|
|
133
|
+
/* @__PURE__ */ e("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e(z, { children: /* @__PURE__ */ e(k, { className: "size-4" }) }) }),
|
|
134
|
+
/* @__PURE__ */ e(N, { children: a })
|
|
129
135
|
]
|
|
130
136
|
}
|
|
131
137
|
);
|
|
@@ -135,20 +141,20 @@ function O({
|
|
|
135
141
|
...a
|
|
136
142
|
}) {
|
|
137
143
|
return /* @__PURE__ */ e(
|
|
138
|
-
|
|
144
|
+
C,
|
|
139
145
|
{
|
|
140
146
|
"data-slot": "select-separator",
|
|
141
|
-
className: o("bg-
|
|
147
|
+
className: o("bg-border pointer-events-none -mx-1 my-1 h-px", t),
|
|
142
148
|
...a
|
|
143
149
|
}
|
|
144
150
|
);
|
|
145
151
|
}
|
|
146
|
-
function
|
|
152
|
+
function D({
|
|
147
153
|
className: t,
|
|
148
154
|
...a
|
|
149
155
|
}) {
|
|
150
156
|
return /* @__PURE__ */ e(
|
|
151
|
-
|
|
157
|
+
I,
|
|
152
158
|
{
|
|
153
159
|
"data-slot": "select-scroll-up-button",
|
|
154
160
|
className: o(
|
|
@@ -156,11 +162,11 @@ function L({
|
|
|
156
162
|
t
|
|
157
163
|
),
|
|
158
164
|
...a,
|
|
159
|
-
children: /* @__PURE__ */ e(
|
|
165
|
+
children: /* @__PURE__ */ e(B, { className: "size-4" })
|
|
160
166
|
}
|
|
161
167
|
);
|
|
162
168
|
}
|
|
163
|
-
function
|
|
169
|
+
function R({
|
|
164
170
|
className: t,
|
|
165
171
|
...a
|
|
166
172
|
}) {
|
|
@@ -173,7 +179,7 @@ function D({
|
|
|
173
179
|
t
|
|
174
180
|
),
|
|
175
181
|
...a,
|
|
176
|
-
children: /* @__PURE__ */ e(
|
|
182
|
+
children: /* @__PURE__ */ e(c, { className: "size-4" })
|
|
177
183
|
}
|
|
178
184
|
);
|
|
179
185
|
}
|
|
@@ -183,8 +189,8 @@ export {
|
|
|
183
189
|
A as SelectGroup,
|
|
184
190
|
M as SelectItem,
|
|
185
191
|
K as SelectLabel,
|
|
186
|
-
|
|
187
|
-
|
|
192
|
+
R as SelectScrollDownButton,
|
|
193
|
+
D as SelectScrollUpButton,
|
|
188
194
|
O as SelectSeparator,
|
|
189
195
|
H as SelectTrigger,
|
|
190
196
|
E as SelectValue
|
|
@@ -348,7 +348,7 @@ const ce = d.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ r(
|
|
|
348
348
|
));
|
|
349
349
|
ce.displayName = "SidebarMenuItem";
|
|
350
350
|
const ue = I(
|
|
351
|
-
"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-d-sidebar-ring transition-[width,height,padding] hover:bg-d-sidebar-accent hover:text-d-sidebar-accent-foreground focus-visible:ring-2 active:bg-d-sidebar-accent active:text-d-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-d-sidebar-accent data-[active=true]:font-
|
|
351
|
+
"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-d-sidebar-ring transition-[width,height,padding] hover:bg-d-sidebar-accent hover:text-d-sidebar-accent-foreground focus-visible:ring-2 active:bg-d-sidebar-accent active:text-d-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-d-sidebar-accent data-[active=true]:font-bold data-[active=true]:text-d-sidebar-accent-foreground data-[state=open]:hover:bg-d-sidebar-accent data-[state=open]:hover:text-d-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
|
|
352
352
|
{
|
|
353
353
|
variants: {
|
|
354
354
|
variant: {
|
|
@@ -40,7 +40,7 @@ function g({
|
|
|
40
40
|
{
|
|
41
41
|
"data-slot": "tabs-trigger",
|
|
42
42
|
className: s(
|
|
43
|
-
"data-[state=active]:bg-d-background dark:data-[state=active]:text-d-foreground focus-visible:border-d-ring focus-visible:ring-d-ring/50 focus-visible:outline-d-ring dark:data-[state=active]:border-d-input dark:data-[state=active]:bg-d-
|
|
43
|
+
"data-[state=active]:bg-d-background dark:data-[state=active]:text-d-foreground focus-visible:border-d-ring focus-visible:ring-d-ring/50 focus-visible:outline-d-ring dark:data-[state=active]:border-d-input dark:data-[state=active]:bg-d-background text-d-foreground dark:text-d-secondary-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md d-border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
44
44
|
t
|
|
45
45
|
),
|
|
46
46
|
...e
|
package/dist/index.d.ts
CHANGED
|
@@ -715,7 +715,7 @@ declare interface IconProps {
|
|
|
715
715
|
|
|
716
716
|
declare type IconSize = keyof typeof sizeMap;
|
|
717
717
|
|
|
718
|
-
export declare
|
|
718
|
+
export declare const Input: React_2.ForwardRefExoticComponent<Omit<InputProps, "ref"> & React_2.RefAttributes<HTMLInputElement>>;
|
|
719
719
|
|
|
720
720
|
export declare function InputOTP({ className, containerClassName, ...props }: React_2.ComponentProps<typeof OTPInput> & {
|
|
721
721
|
containerClassName?: string;
|
|
@@ -1189,7 +1189,7 @@ export declare const SidebarGroupLabel: React_2.ForwardRefExoticComponent<Omit<R
|
|
|
1189
1189
|
|
|
1190
1190
|
export declare const SidebarHeader: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
1191
1191
|
|
|
1192
|
-
export declare const SidebarInput: React_2.ForwardRefExoticComponent<Omit<Omit<InputProps_2, "ref">, "ref"> & React_2.RefAttributes<HTMLInputElement>>;
|
|
1192
|
+
export declare const SidebarInput: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<InputProps_2, "ref"> & React_2.RefAttributes<HTMLInputElement>, "ref">, "ref"> & React_2.RefAttributes<HTMLInputElement>>;
|
|
1193
1193
|
|
|
1194
1194
|
export declare const SidebarInset: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
1195
1195
|
|
|
@@ -3,7 +3,7 @@ import { stringify as w } from "../../comma-separated-tokens/index.js";
|
|
|
3
3
|
import { ok as u } from "../../devlop/lib/default.js";
|
|
4
4
|
import { svg as m, html as C } from "../../property-information/index.js";
|
|
5
5
|
import { stringify as N } from "../../space-separated-tokens/index.js";
|
|
6
|
-
import S from "../../../_virtual/
|
|
6
|
+
import S from "../../../_virtual/index2.js";
|
|
7
7
|
import { whitespace as j } from "../../hast-util-whitespace/lib/index.js";
|
|
8
8
|
import { name as x } from "../../estree-util-is-identifier-name/lib/index.js";
|
|
9
9
|
import { VFileMessage as h } from "../../vfile-message/lib/index.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { __module as e } from "../../_virtual/
|
|
2
|
+
import { __module as e } from "../../_virtual/index4.js";
|
|
3
3
|
import { __require as t } from "./cjs/react-is.production.min.js";
|
|
4
4
|
import { __require as o } from "./cjs/react-is.development.js";
|
|
5
5
|
var r;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { bail as P } from "../../bail/index.js";
|
|
3
|
-
import y from "../../../_virtual/
|
|
3
|
+
import y from "../../../_virtual/index3.js";
|
|
4
4
|
import z from "../../is-plain-obj/index.js";
|
|
5
5
|
import { CallableInstance as C } from "./callable-instance.js";
|
|
6
6
|
import { trough as A } from "../../trough/lib/index.js";
|