laif-ds 0.2.92 → 1.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/dist/CHANGELOG.md +20 -0
- package/dist/_virtual/index3.js +5 -5
- package/dist/_virtual/index4.js +5 -5
- package/dist/_virtual/index5.js +4 -4
- package/dist/agent-docs/adoption-report.json +37 -38
- package/dist/agent-docs/components/AppBottomNav.md +426 -0
- package/dist/agent-docs/components/AppSidebar.md +302 -19
- package/dist/agent-docs/components/Sidebar.md +4 -0
- package/dist/agent-docs/components-list.md +2 -1
- package/dist/agent-docs/manifest.json +113 -14
- package/dist/components/design-tokens.js +84 -0
- package/dist/components/ui/app-bottom-nav.js +165 -0
- package/dist/components/ui/app-sidebar-mobile.js +220 -0
- package/dist/components/ui/app-sidebar.js +366 -109
- package/dist/components/ui/sheet.js +26 -24
- package/dist/components/ui/sidebar.js +190 -166
- package/dist/index.d.ts +92 -1
- package/dist/index.js +183 -181
- 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/styles.v3.css +1 -1
- package/package.json +3 -2
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { Root as i, Content as l, Close as c, Description as u, Title as
|
|
2
|
+
import { jsx as o, jsxs as r } from "react/jsx-runtime";
|
|
3
|
+
import { Root as i, Content as l, Close as c, Description as u, Title as m, Trigger as f, Portal as p, Overlay as h } from "../../node_modules/@radix-ui/react-dialog/dist/index.js";
|
|
4
4
|
import { designTokens as n } from "../design-tokens.js";
|
|
5
|
-
import { cn as
|
|
5
|
+
import { cn as a } from "../../lib/utils.js";
|
|
6
6
|
import b from "../../node_modules/lucide-react/dist/esm/icons/x.js";
|
|
7
7
|
function z({ ...t }) {
|
|
8
|
-
return /* @__PURE__ */
|
|
8
|
+
return /* @__PURE__ */ o(i, { "data-slot": "sheet", ...t });
|
|
9
9
|
}
|
|
10
10
|
function T({
|
|
11
11
|
...t
|
|
12
12
|
}) {
|
|
13
|
-
return /* @__PURE__ */
|
|
13
|
+
return /* @__PURE__ */ o(f, { "data-slot": "sheet-trigger", ...t });
|
|
14
14
|
}
|
|
15
15
|
function g({
|
|
16
16
|
...t
|
|
17
17
|
}) {
|
|
18
|
-
return /* @__PURE__ */
|
|
18
|
+
return /* @__PURE__ */ o(p, { "data-slot": "sheet-portal", ...t });
|
|
19
19
|
}
|
|
20
20
|
function x({
|
|
21
21
|
className: t,
|
|
22
22
|
...e
|
|
23
23
|
}) {
|
|
24
|
-
return /* @__PURE__ */
|
|
25
|
-
|
|
24
|
+
return /* @__PURE__ */ o(
|
|
25
|
+
h,
|
|
26
26
|
{
|
|
27
27
|
"data-slot": "sheet-overlay",
|
|
28
|
-
className:
|
|
28
|
+
className: a(
|
|
29
29
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
|
|
30
30
|
t
|
|
31
31
|
),
|
|
@@ -40,12 +40,12 @@ function k({
|
|
|
40
40
|
...d
|
|
41
41
|
}) {
|
|
42
42
|
return /* @__PURE__ */ r(g, { children: [
|
|
43
|
-
/* @__PURE__ */
|
|
43
|
+
/* @__PURE__ */ o(x, {}),
|
|
44
44
|
/* @__PURE__ */ r(
|
|
45
45
|
l,
|
|
46
46
|
{
|
|
47
47
|
"data-slot": "sheet-content",
|
|
48
|
-
className:
|
|
48
|
+
className: a(
|
|
49
49
|
"bg-d-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
50
50
|
s === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right border-d-border inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
|
|
51
51
|
s === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left border-d-border inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
|
|
@@ -53,7 +53,9 @@ function k({
|
|
|
53
53
|
s === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom border-d-border inset-x-0 bottom-0 h-auto border-t",
|
|
54
54
|
// Covers the viewport, so there is no edge to slide in from: it fades
|
|
55
55
|
// and scales up instead, the usual full-screen mobile menu motion.
|
|
56
|
-
|
|
56
|
+
// The scale is movement, so `motion-reduce` flattens it to 1 and
|
|
57
|
+
// leaves only the fade — this variant carries primary navigation.
|
|
58
|
+
s === "full" && "data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 motion-reduce:data-[state=closed]:zoom-out-100 motion-reduce:data-[state=open]:zoom-in-100 inset-0 h-svh w-screen max-w-none data-[state=closed]:duration-200 data-[state=open]:duration-300",
|
|
57
59
|
t
|
|
58
60
|
),
|
|
59
61
|
...d,
|
|
@@ -62,14 +64,14 @@ function k({
|
|
|
62
64
|
/* @__PURE__ */ r(
|
|
63
65
|
c,
|
|
64
66
|
{
|
|
65
|
-
className:
|
|
67
|
+
className: a(
|
|
66
68
|
"ring-offset-d-background data-[state=open]:bg-d-secondary absolute top-4 right-4 opacity-70 transition-opacity hover:opacity-100 disabled:pointer-events-none",
|
|
67
69
|
n.focusRing,
|
|
68
70
|
n.radius.sm
|
|
69
71
|
),
|
|
70
72
|
children: [
|
|
71
|
-
/* @__PURE__ */
|
|
72
|
-
/* @__PURE__ */
|
|
73
|
+
/* @__PURE__ */ o(b, { className: "size-4" }),
|
|
74
|
+
/* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
|
|
73
75
|
]
|
|
74
76
|
}
|
|
75
77
|
)
|
|
@@ -79,21 +81,21 @@ function k({
|
|
|
79
81
|
] });
|
|
80
82
|
}
|
|
81
83
|
function C({ className: t, ...e }) {
|
|
82
|
-
return /* @__PURE__ */
|
|
84
|
+
return /* @__PURE__ */ o(
|
|
83
85
|
"div",
|
|
84
86
|
{
|
|
85
87
|
"data-slot": "sheet-header",
|
|
86
|
-
className:
|
|
88
|
+
className: a("flex flex-col gap-1.5 p-4", t),
|
|
87
89
|
...e
|
|
88
90
|
}
|
|
89
91
|
);
|
|
90
92
|
}
|
|
91
93
|
function j({ className: t, ...e }) {
|
|
92
|
-
return /* @__PURE__ */
|
|
94
|
+
return /* @__PURE__ */ o(
|
|
93
95
|
"div",
|
|
94
96
|
{
|
|
95
97
|
"data-slot": "sheet-footer",
|
|
96
|
-
className:
|
|
98
|
+
className: a("mt-auto flex flex-col gap-2 p-4", t),
|
|
97
99
|
...e
|
|
98
100
|
}
|
|
99
101
|
);
|
|
@@ -102,11 +104,11 @@ function D({
|
|
|
102
104
|
className: t,
|
|
103
105
|
...e
|
|
104
106
|
}) {
|
|
105
|
-
return /* @__PURE__ */
|
|
106
|
-
|
|
107
|
+
return /* @__PURE__ */ o(
|
|
108
|
+
m,
|
|
107
109
|
{
|
|
108
110
|
"data-slot": "sheet-title",
|
|
109
|
-
className:
|
|
111
|
+
className: a("text-d-foreground font-semibold", t),
|
|
110
112
|
...e
|
|
111
113
|
}
|
|
112
114
|
);
|
|
@@ -115,11 +117,11 @@ function O({
|
|
|
115
117
|
className: t,
|
|
116
118
|
...e
|
|
117
119
|
}) {
|
|
118
|
-
return /* @__PURE__ */
|
|
120
|
+
return /* @__PURE__ */ o(
|
|
119
121
|
u,
|
|
120
122
|
{
|
|
121
123
|
"data-slot": "sheet-description",
|
|
122
|
-
className:
|
|
124
|
+
className: a("text-d-secondary-foreground text-sm", t),
|
|
123
125
|
...e
|
|
124
126
|
}
|
|
125
127
|
);
|