laif-ds 0.1.84 → 0.1.86
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/ui/app-editor.js +58 -58
- package/dist/components/ui/app-multiple-select-dropdown.js +2 -2
- package/dist/components/ui/button.js +1 -1
- package/dist/components/ui/checkbox.js +5 -5
- package/dist/components/ui/multiple-selector.js +31 -31
- package/dist/components/ui/navigation-menu.js +2 -2
- package/dist/components/ui/select.js +1 -1
- package/dist/components/ui/switch.js +5 -5
- package/dist/components/ui/weekly-calendar/calendar-header.js +2 -2
- package/dist/index.js +347 -347
- package/dist/styles.css +1 -1
- package/dist/styles.v3.css +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
2
|
+
import { jsx as r, jsxs as t, Fragment as s } from "react/jsx-runtime";
|
|
3
3
|
import { LexicalComposer as w } from "../../node_modules/@lexical/react/LexicalComposer.prod.js";
|
|
4
4
|
import { OnChangePlugin as L } from "../../node_modules/@lexical/react/LexicalOnChangePlugin.prod.js";
|
|
5
5
|
import { LexicalErrorBoundary as S } from "../../node_modules/@lexical/react/LexicalErrorBoundary.prod.js";
|
|
@@ -26,125 +26,125 @@ import { FormatQuote as X } from "../editor/plugins/toolbar/block-format/format-
|
|
|
26
26
|
import { FontFormatToolbarPlugin as l } from "../editor/plugins/toolbar/font-format-toolbar-plugin.js";
|
|
27
27
|
import { ListPlugin as Y } from "../../node_modules/@lexical/react/LexicalListPlugin.prod.js";
|
|
28
28
|
import { CheckListPlugin as Z } from "../../node_modules/@lexical/react/LexicalCheckListPlugin.prod.js";
|
|
29
|
-
import { ListNode as V, ListItemNode as
|
|
30
|
-
import { editorTheme as
|
|
31
|
-
import { TooltipProvider as
|
|
32
|
-
import { HistoryToolbarPlugin as
|
|
33
|
-
const
|
|
34
|
-
function
|
|
35
|
-
defaultValue:
|
|
29
|
+
import { ListNode as V, ListItemNode as rr } from "../../node_modules/@lexical/list/LexicalList.prod.js";
|
|
30
|
+
import { editorTheme as or } from "../editor/themes/editor-theme.js";
|
|
31
|
+
import { TooltipProvider as tr } from "./tooltip.js";
|
|
32
|
+
import { HistoryToolbarPlugin as er } from "../editor/plugins/toolbar/history-toolbar-plugin.js";
|
|
33
|
+
const ir = "Start typing...";
|
|
34
|
+
function nr({
|
|
35
|
+
defaultValue: o,
|
|
36
36
|
onlyMarkdown: i
|
|
37
37
|
}) {
|
|
38
38
|
const [n] = O();
|
|
39
39
|
return $(() => {
|
|
40
|
-
|
|
41
|
-
i ? H(
|
|
42
|
-
new d().append(new p(
|
|
40
|
+
o && n.update(() => {
|
|
41
|
+
i ? H(o, C) : f().append(
|
|
42
|
+
new d().append(new p(o))
|
|
43
43
|
);
|
|
44
44
|
const a = f();
|
|
45
45
|
(a.getFirstChild() ?? a).selectStart();
|
|
46
46
|
});
|
|
47
|
-
}, [n,
|
|
47
|
+
}, [n, o, i]), null;
|
|
48
48
|
}
|
|
49
|
-
function
|
|
50
|
-
defaultValue:
|
|
49
|
+
function zr({
|
|
50
|
+
defaultValue: o,
|
|
51
51
|
onMarkdownEdit: i,
|
|
52
52
|
plugins: n = [],
|
|
53
53
|
toolbars: a = [],
|
|
54
|
-
placeholder:
|
|
54
|
+
placeholder: N = ir,
|
|
55
55
|
onlyMarkdown: h = !0,
|
|
56
|
-
className:
|
|
56
|
+
className: F = "overflow-hidden rounded-lg border border-d-border"
|
|
57
57
|
}) {
|
|
58
|
-
const [
|
|
58
|
+
const [ar, P] = R(null), y = {
|
|
59
59
|
namespace: "AppEditor",
|
|
60
|
-
theme:
|
|
60
|
+
theme: or,
|
|
61
61
|
nodes: [
|
|
62
62
|
j,
|
|
63
63
|
d,
|
|
64
64
|
p,
|
|
65
65
|
A,
|
|
66
66
|
V,
|
|
67
|
-
|
|
67
|
+
rr
|
|
68
68
|
],
|
|
69
69
|
onError: (e) => {
|
|
70
70
|
console.error(e);
|
|
71
71
|
},
|
|
72
|
-
...
|
|
72
|
+
...o && !h ? {
|
|
73
73
|
editorState: () => {
|
|
74
74
|
f().append(
|
|
75
|
-
new d().append(new p(
|
|
75
|
+
new d().append(new p(o))
|
|
76
76
|
);
|
|
77
77
|
}
|
|
78
78
|
} : {}
|
|
79
|
-
},
|
|
80
|
-
return /* @__PURE__ */
|
|
81
|
-
|
|
82
|
-
|
|
79
|
+
}, u = (e) => n.includes(e), m = (e) => a.includes(e), g = u("clear"), v = u("counter"), b = m("block-format"), E = m("font-format"), x = m("history");
|
|
80
|
+
return /* @__PURE__ */ r("div", { className: "bg-d-background", children: /* @__PURE__ */ r(w, { initialConfig: y, children: /* @__PURE__ */ t(tr, { children: [
|
|
81
|
+
o && /* @__PURE__ */ r(
|
|
82
|
+
nr,
|
|
83
83
|
{
|
|
84
|
-
defaultValue:
|
|
84
|
+
defaultValue: o,
|
|
85
85
|
onlyMarkdown: h
|
|
86
86
|
}
|
|
87
87
|
),
|
|
88
|
-
/* @__PURE__ */ t("div", { className: "flex items-center", children: [
|
|
89
|
-
x && /* @__PURE__ */
|
|
90
|
-
|
|
91
|
-
/* @__PURE__ */
|
|
92
|
-
/* @__PURE__ */
|
|
93
|
-
/* @__PURE__ */
|
|
94
|
-
/* @__PURE__ */
|
|
95
|
-
/* @__PURE__ */
|
|
96
|
-
/* @__PURE__ */
|
|
88
|
+
/* @__PURE__ */ t("div", { className: "border-d-border flex items-center border-b", children: [
|
|
89
|
+
x && /* @__PURE__ */ r(c, { children: () => /* @__PURE__ */ r("div", { className: "vertical-align-middle sticky top-0 z-10 flex gap-2 overflow-auto p-1", children: /* @__PURE__ */ r(er, {}) }) }),
|
|
90
|
+
b && /* @__PURE__ */ r(c, { children: () => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r("div", { className: "vertical-align-middle sticky top-0 z-10 flex gap-2 overflow-auto p-1", children: /* @__PURE__ */ t(J, { children: [
|
|
91
|
+
/* @__PURE__ */ r(U, {}),
|
|
92
|
+
/* @__PURE__ */ r(q, { levels: ["h1", "h2", "h3"] }),
|
|
93
|
+
/* @__PURE__ */ r(G, {}),
|
|
94
|
+
/* @__PURE__ */ r(K, {}),
|
|
95
|
+
/* @__PURE__ */ r(W, {}),
|
|
96
|
+
/* @__PURE__ */ r(X, {})
|
|
97
97
|
] }) }) }) }),
|
|
98
|
-
|
|
99
|
-
/* @__PURE__ */
|
|
100
|
-
/* @__PURE__ */
|
|
101
|
-
/* @__PURE__ */
|
|
102
|
-
/* @__PURE__ */
|
|
98
|
+
E && /* @__PURE__ */ r(c, { children: () => /* @__PURE__ */ t("div", { className: "vertical-align-middle sticky top-0 z-10 flex gap-2 overflow-auto p-1", children: [
|
|
99
|
+
/* @__PURE__ */ r(l, { format: "bold" }),
|
|
100
|
+
/* @__PURE__ */ r(l, { format: "italic" }),
|
|
101
|
+
/* @__PURE__ */ r(l, { format: "underline" }),
|
|
102
|
+
/* @__PURE__ */ r(l, { format: "strikethrough" })
|
|
103
103
|
] }) })
|
|
104
104
|
] }),
|
|
105
105
|
/* @__PURE__ */ t("div", { className: "relative", children: [
|
|
106
|
-
x && /* @__PURE__ */
|
|
107
|
-
/* @__PURE__ */
|
|
106
|
+
x && /* @__PURE__ */ r(z, {}),
|
|
107
|
+
/* @__PURE__ */ r(
|
|
108
108
|
T,
|
|
109
109
|
{
|
|
110
110
|
ErrorBoundary: S,
|
|
111
|
-
contentEditable: /* @__PURE__ */
|
|
111
|
+
contentEditable: /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r("div", { ref: P, children: /* @__PURE__ */ r(
|
|
112
112
|
D,
|
|
113
113
|
{
|
|
114
|
-
placeholder:
|
|
115
|
-
className: `ContentEditable__root relative block h-72 min-h-full overflow-auto px-8 py-4 focus:outline-none ${
|
|
114
|
+
placeholder: N,
|
|
115
|
+
className: `ContentEditable__root relative block h-72 min-h-full overflow-auto px-8 py-4 focus:outline-none ${F}`
|
|
116
116
|
}
|
|
117
117
|
) }) })
|
|
118
118
|
}
|
|
119
119
|
),
|
|
120
|
-
|
|
121
|
-
/* @__PURE__ */
|
|
122
|
-
/* @__PURE__ */
|
|
120
|
+
b && /* @__PURE__ */ t(s, { children: [
|
|
121
|
+
/* @__PURE__ */ r(Y, {}),
|
|
122
|
+
/* @__PURE__ */ r(Z, {})
|
|
123
123
|
] }),
|
|
124
|
-
(
|
|
125
|
-
/* @__PURE__ */
|
|
126
|
-
/* @__PURE__ */
|
|
127
|
-
/* @__PURE__ */
|
|
128
|
-
/* @__PURE__ */
|
|
129
|
-
/* @__PURE__ */
|
|
124
|
+
(g || v) && /* @__PURE__ */ r(I, { children: /* @__PURE__ */ t("div", { className: "clear-both flex items-center justify-between gap-2 p-1", children: [
|
|
125
|
+
/* @__PURE__ */ r("div", { className: "flex flex-1 justify-start" }),
|
|
126
|
+
/* @__PURE__ */ r("div", { children: v && /* @__PURE__ */ r(Q, { charset: "UTF-16" }) }),
|
|
127
|
+
/* @__PURE__ */ r("div", { className: "flex flex-1 justify-end gap-2", children: g && /* @__PURE__ */ t(s, { children: [
|
|
128
|
+
/* @__PURE__ */ r(_, {}),
|
|
129
|
+
/* @__PURE__ */ r(M, {})
|
|
130
130
|
] }) })
|
|
131
131
|
] }) })
|
|
132
132
|
] }),
|
|
133
|
-
/* @__PURE__ */
|
|
133
|
+
/* @__PURE__ */ r(
|
|
134
134
|
L,
|
|
135
135
|
{
|
|
136
136
|
ignoreSelectionChange: !0,
|
|
137
137
|
onChange: (e) => {
|
|
138
138
|
if (!i) return;
|
|
139
|
-
const
|
|
139
|
+
const k = e.read(
|
|
140
140
|
() => B(C)
|
|
141
141
|
);
|
|
142
|
-
i(
|
|
142
|
+
i(k);
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
145
|
)
|
|
146
146
|
] }) }) });
|
|
147
147
|
}
|
|
148
148
|
export {
|
|
149
|
-
|
|
149
|
+
zr as AppEditor
|
|
150
150
|
};
|
|
@@ -146,7 +146,7 @@ function ie({
|
|
|
146
146
|
disabled: e.disabled || !i && N,
|
|
147
147
|
onSelect: () => w(e.value),
|
|
148
148
|
className: C(
|
|
149
|
-
"aria-selected
|
|
149
|
+
"aria-selected:!bg-d-accent aria-selected:text-d-accent-foreground flex cursor-pointer items-center gap-2 px-2 py-1.5",
|
|
150
150
|
(e.disabled || !i && N) && "cursor-not-allowed opacity-50"
|
|
151
151
|
),
|
|
152
152
|
onPointerDown: (A) => A.stopPropagation(),
|
|
@@ -155,7 +155,7 @@ function ie({
|
|
|
155
155
|
I,
|
|
156
156
|
{
|
|
157
157
|
checked: i,
|
|
158
|
-
className: "mr-2 flex-shrink-0",
|
|
158
|
+
className: "z-10 mr-2 flex-shrink-0",
|
|
159
159
|
onCheckedChange: () => {
|
|
160
160
|
console.log("checkbox change for:", e.value), w(e.value);
|
|
161
161
|
}
|
|
@@ -14,7 +14,7 @@ const m = h(
|
|
|
14
14
|
outline: "border bg-d-background shadow-xs hover:bg-d-accent hover:text-d-accent-foreground dark:bg-d-input/30 dark:border-d-input dark:hover:bg-d-input/50",
|
|
15
15
|
"outline-primary": "border !border-d-primary bg-d-background shadow-xs text-d-primary/80 hover:!text-d-primary",
|
|
16
16
|
secondary: "bg-d-secondary text-d-secondary-foreground shadow-xs hover:bg-d-secondary/80 hover:text-d-secondary-foreground",
|
|
17
|
-
ghost: "hover:bg-d-accent hover:text-d-accent-foreground dark:hover:bg-d-accent
|
|
17
|
+
ghost: "hover:bg-d-accent hover:text-d-accent-foreground dark:hover:bg-d-accent",
|
|
18
18
|
link: "text-d-primary underline-offset-4 hover:underline"
|
|
19
19
|
},
|
|
20
20
|
size: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as e } from "react/jsx-runtime";
|
|
3
|
-
import { Checkbox as t, CheckboxIndicator as
|
|
4
|
-
import { cn as
|
|
3
|
+
import { Checkbox as t, CheckboxIndicator as d } from "../../node_modules/@radix-ui/react-checkbox/dist/index.js";
|
|
4
|
+
import { cn as a } from "../../lib/utils.js";
|
|
5
5
|
import o from "../../node_modules/lucide-react/dist/esm/icons/check.js";
|
|
6
6
|
function b({
|
|
7
7
|
className: r,
|
|
@@ -11,13 +11,13 @@ function b({
|
|
|
11
11
|
t,
|
|
12
12
|
{
|
|
13
13
|
"data-slot": "checkbox",
|
|
14
|
-
className:
|
|
15
|
-
"peer
|
|
14
|
+
className: a(
|
|
15
|
+
"peer bg-d-input border-d-border data-[state=checked]:bg-d-primary data-[state=checked]:border-d-primary data-[state=checked]:text-d-primary-foreground focus-visible:border-d-ring focus-visible:ring-d-ring/50 aria-invalid:border-d-destructive aria-invalid:ring-d-destructive/20 dark:aria-invalid:ring-d-destructive/40 size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
|
|
16
16
|
r
|
|
17
17
|
),
|
|
18
18
|
...i,
|
|
19
19
|
children: /* @__PURE__ */ e(
|
|
20
|
-
|
|
20
|
+
d,
|
|
21
21
|
{
|
|
22
22
|
"data-slot": "checkbox-indicator",
|
|
23
23
|
className: "flex items-center justify-center text-current transition-none",
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as o, jsxs as L, Fragment as K } from "react/jsx-runtime";
|
|
3
|
-
import { Command as ie, useCommandState as
|
|
4
|
-
import * as
|
|
5
|
-
import { useEffect as C, forwardRef as
|
|
6
|
-
import { CommandPortal as
|
|
3
|
+
import { Command as ie, useCommandState as de } from "../../node_modules/cmdk/dist/index.js";
|
|
4
|
+
import * as d from "react";
|
|
5
|
+
import { useEffect as C, forwardRef as ue } from "react";
|
|
6
|
+
import { CommandPortal as ae } from "./command-portal.js";
|
|
7
7
|
import { Badge as ce } from "./badge.js";
|
|
8
8
|
import { CommandItem as V, Command as fe, CommandList as me, CommandGroup as ge } from "./command.js";
|
|
9
9
|
import { cn as h } from "../../lib/utils.js";
|
|
10
10
|
import { Label as he } from "./label.js";
|
|
11
11
|
import q from "../../node_modules/lucide-react/dist/esm/icons/x.js";
|
|
12
12
|
function ve(r, s) {
|
|
13
|
-
const [l,
|
|
13
|
+
const [l, a] = d.useState(r);
|
|
14
14
|
return C(() => {
|
|
15
|
-
const
|
|
15
|
+
const u = setTimeout(() => a(r), s);
|
|
16
16
|
return () => {
|
|
17
|
-
clearTimeout(
|
|
17
|
+
clearTimeout(u);
|
|
18
18
|
};
|
|
19
19
|
}, [r, s]), l;
|
|
20
20
|
}
|
|
@@ -26,26 +26,26 @@ function I(r, s) {
|
|
|
26
26
|
"": r
|
|
27
27
|
};
|
|
28
28
|
const l = {};
|
|
29
|
-
return r.forEach((
|
|
30
|
-
const
|
|
31
|
-
l[
|
|
29
|
+
return r.forEach((a) => {
|
|
30
|
+
const u = a[s] || "";
|
|
31
|
+
l[u] || (l[u] = []), l[u].push(a);
|
|
32
32
|
}), l;
|
|
33
33
|
}
|
|
34
34
|
function pe(r, s) {
|
|
35
35
|
const l = JSON.parse(JSON.stringify(r));
|
|
36
|
-
for (const [
|
|
37
|
-
l[
|
|
36
|
+
for (const [a, u] of Object.entries(l))
|
|
37
|
+
l[a] = u.filter(
|
|
38
38
|
(F) => !s.find((c) => c.value === F.value)
|
|
39
39
|
);
|
|
40
40
|
return l;
|
|
41
41
|
}
|
|
42
42
|
function be(r, s) {
|
|
43
43
|
for (const [, l] of Object.entries(r))
|
|
44
|
-
if (l.some((
|
|
44
|
+
if (l.some((a) => s.find((u) => u.value === a.value)))
|
|
45
45
|
return !0;
|
|
46
46
|
return !1;
|
|
47
47
|
}
|
|
48
|
-
const Q =
|
|
48
|
+
const Q = ue(({ className: r, ...s }, l) => de((u) => u.filtered.count === 0) ? /* @__PURE__ */ o(
|
|
49
49
|
"div",
|
|
50
50
|
{
|
|
51
51
|
ref: l,
|
|
@@ -56,13 +56,13 @@ const Q = de(({ className: r, ...s }, l) => ae((d) => d.filtered.count === 0) ?
|
|
|
56
56
|
}
|
|
57
57
|
) : null);
|
|
58
58
|
Q.displayName = "CommandEmpty";
|
|
59
|
-
const xe =
|
|
59
|
+
const xe = d.forwardRef(
|
|
60
60
|
({
|
|
61
61
|
value: r,
|
|
62
62
|
onChange: s,
|
|
63
63
|
placeholder: l,
|
|
64
|
-
defaultOptions:
|
|
65
|
-
options:
|
|
64
|
+
defaultOptions: a = [],
|
|
65
|
+
options: u,
|
|
66
66
|
delay: F,
|
|
67
67
|
onSearch: c,
|
|
68
68
|
onSearchSync: G,
|
|
@@ -83,10 +83,10 @@ const xe = a.forwardRef(
|
|
|
83
83
|
hideClearAllButton: P = !1,
|
|
84
84
|
label: U
|
|
85
85
|
}, ee) => {
|
|
86
|
-
const f =
|
|
87
|
-
I(
|
|
88
|
-
), [g, J] =
|
|
89
|
-
|
|
86
|
+
const f = d.useRef(null), [b, M] = d.useState(!1), [te, X] = d.useState(!1), [H, $] = d.useState(!1), R = d.useRef(null), [t, N] = d.useState(r || []), [x, T] = d.useState(
|
|
87
|
+
I(a, p)
|
|
88
|
+
), [g, J] = d.useState(""), w = ve(g, F || 500);
|
|
89
|
+
d.useImperativeHandle(
|
|
90
90
|
ee,
|
|
91
91
|
() => ({
|
|
92
92
|
selectedValue: [...t],
|
|
@@ -98,13 +98,13 @@ const xe = a.forwardRef(
|
|
|
98
98
|
);
|
|
99
99
|
const y = (e) => {
|
|
100
100
|
R.current && !R.current.contains(e.target) && f.current && !f.current.contains(e.target) && (M(!1), f.current.blur());
|
|
101
|
-
}, j =
|
|
101
|
+
}, j = d.useCallback(
|
|
102
102
|
(e) => {
|
|
103
103
|
const n = t.filter((i) => i.value !== e.value);
|
|
104
104
|
N(n), s?.(n);
|
|
105
105
|
},
|
|
106
106
|
[s, t]
|
|
107
|
-
), ne =
|
|
107
|
+
), ne = d.useCallback(
|
|
108
108
|
(e) => {
|
|
109
109
|
const n = f.current;
|
|
110
110
|
n && ((e.key === "Delete" || e.key === "Backspace") && n.value === "" && t.length > 0 && (t[t.length - 1].fixed || j(t[t.length - 1])), e.key === "Escape" && n.blur());
|
|
@@ -119,11 +119,11 @@ const xe = a.forwardRef(
|
|
|
119
119
|
}, [b, y]), C(() => {
|
|
120
120
|
r && N(r);
|
|
121
121
|
}, [r]), C(() => {
|
|
122
|
-
if (!
|
|
122
|
+
if (!u || c)
|
|
123
123
|
return;
|
|
124
|
-
const e = I(
|
|
124
|
+
const e = I(u || [], p);
|
|
125
125
|
JSON.stringify(e) !== JSON.stringify(x) && T(e);
|
|
126
|
-
}, [
|
|
126
|
+
}, [a, u, p, c, x]), C(() => {
|
|
127
127
|
const e = () => {
|
|
128
128
|
const i = G?.(w);
|
|
129
129
|
T(I(i || [], p));
|
|
@@ -166,13 +166,13 @@ const xe = a.forwardRef(
|
|
|
166
166
|
);
|
|
167
167
|
if (!c && g.length > 0 || c && w.length > 0 && !H)
|
|
168
168
|
return e;
|
|
169
|
-
}, oe =
|
|
169
|
+
}, oe = d.useCallback(() => {
|
|
170
170
|
if (D)
|
|
171
171
|
return c && !k && Object.keys(x).length === 0 ? /* @__PURE__ */ o(V, { value: "-", disabled: !0, children: D }) : /* @__PURE__ */ o(Q, { children: D });
|
|
172
|
-
}, [k, D, c, x]), se =
|
|
172
|
+
}, [k, D, c, x]), se = d.useMemo(
|
|
173
173
|
() => pe(x, t),
|
|
174
174
|
[x, t]
|
|
175
|
-
), le =
|
|
175
|
+
), le = d.useCallback(() => {
|
|
176
176
|
if (m?.filter)
|
|
177
177
|
return m.filter;
|
|
178
178
|
if (k)
|
|
@@ -189,7 +189,7 @@ const xe = a.forwardRef(
|
|
|
189
189
|
ne(e), m?.onKeyDown?.(e);
|
|
190
190
|
},
|
|
191
191
|
className: h(
|
|
192
|
-
"h-auto overflow-visible
|
|
192
|
+
"bg-d-input h-auto overflow-visible shadow-sm",
|
|
193
193
|
m?.className
|
|
194
194
|
),
|
|
195
195
|
shouldFilter: m?.shouldFilter !== void 0 ? m.shouldFilter : !c,
|
|
@@ -291,7 +291,7 @@ const xe = a.forwardRef(
|
|
|
291
291
|
}
|
|
292
292
|
),
|
|
293
293
|
/* @__PURE__ */ o(
|
|
294
|
-
|
|
294
|
+
ae,
|
|
295
295
|
{
|
|
296
296
|
open: b,
|
|
297
297
|
triggerRef: R,
|
|
@@ -57,7 +57,7 @@ function k({
|
|
|
57
57
|
);
|
|
58
58
|
}
|
|
59
59
|
const w = f(
|
|
60
|
-
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-d-background px-4 py-2 text-sm font-medium hover:bg-d-accent hover:text-d-accent-foreground focus:bg-d-accent focus:text-d-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-d-accent data-[state=open]:text-d-accent-foreground data-[state=open]:focus:bg-d-accent data-[state=open]:bg-d-accent
|
|
60
|
+
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-d-background px-4 py-2 text-sm font-medium hover:bg-d-accent hover:text-d-accent-foreground focus:bg-d-accent focus:text-d-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-d-accent data-[state=open]:text-d-accent-foreground data-[state=open]:focus:bg-d-accent data-[state=open]:bg-d-accent focus-visible:ring-d-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1"
|
|
61
61
|
);
|
|
62
62
|
function I({
|
|
63
63
|
className: t,
|
|
@@ -134,7 +134,7 @@ function C({
|
|
|
134
134
|
{
|
|
135
135
|
"data-slot": "navigation-menu-link",
|
|
136
136
|
className: o(
|
|
137
|
-
"data-[active=true]:focus:bg-d-accent data-[active=true]:hover:bg-d-accent data-[active=true]:bg-d-accent
|
|
137
|
+
"data-[active=true]:focus:bg-d-accent data-[active=true]:hover:bg-d-accent data-[active=true]:bg-d-accent data-[active=true]:text-d-accent-foreground hover:bg-d-accent hover:text-d-accent-foreground focus:bg-d-accent focus:text-d-accent-foreground focus-visible:ring-d-ring/50 [&_svg:not([class*='text-'])]:text-d-secondary-foreground flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4",
|
|
138
138
|
t
|
|
139
139
|
),
|
|
140
140
|
...a
|
|
@@ -73,7 +73,7 @@ function J({
|
|
|
73
73
|
{
|
|
74
74
|
"data-slot": "select-content",
|
|
75
75
|
className: o(
|
|
76
|
-
"bg-d-popover text-d-popover-foreground 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 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",
|
|
76
|
+
"bg-d-popover text-d-popover-foreground 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 border-d-border relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",
|
|
77
77
|
s === "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",
|
|
78
78
|
t
|
|
79
79
|
),
|
|
@@ -3,18 +3,18 @@ import { jsx as e } from "react/jsx-runtime";
|
|
|
3
3
|
import { Root as d, Thumb as n } from "../../node_modules/@radix-ui/react-switch/dist/index.js";
|
|
4
4
|
import { cn as t } from "../../lib/utils.js";
|
|
5
5
|
function c({
|
|
6
|
-
className:
|
|
7
|
-
...
|
|
6
|
+
className: r,
|
|
7
|
+
...a
|
|
8
8
|
}) {
|
|
9
9
|
return /* @__PURE__ */ e(
|
|
10
10
|
d,
|
|
11
11
|
{
|
|
12
12
|
"data-slot": "switch",
|
|
13
13
|
className: t(
|
|
14
|
-
"peer data-[state=checked]:bg-d-primary data-[state=unchecked]:bg-d-input focus-visible:border-d-ring focus-visible:ring-d-ring/50 dark:data-[state=unchecked]:bg-d-
|
|
15
|
-
|
|
14
|
+
"peer data-[state=checked]:bg-d-primary data-[state=unchecked]:bg-d-input focus-visible:border-d-ring focus-visible:ring-d-ring/50 dark:data-[state=unchecked]:bg-d-foreground/20 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
|
|
15
|
+
r
|
|
16
16
|
),
|
|
17
|
-
...
|
|
17
|
+
...a,
|
|
18
18
|
children: /* @__PURE__ */ e(
|
|
19
19
|
n,
|
|
20
20
|
{
|
|
@@ -31,8 +31,8 @@ const O = () => {
|
|
|
31
31
|
children: l
|
|
32
32
|
}
|
|
33
33
|
),
|
|
34
|
-
/* @__PURE__ */ e("div", { className: "hover:bg-d-accent
|
|
35
|
-
/* @__PURE__ */ e("div", { className: "hover:bg-d-accent
|
|
34
|
+
/* @__PURE__ */ e("div", { className: "hover:bg-d-accent cursor-pointer rounded-full p-2", children: /* @__PURE__ */ e(s, { onClick: c, name: "ChevronLeft" }) }),
|
|
35
|
+
/* @__PURE__ */ e("div", { className: "hover:bg-d-accent cursor-pointer rounded-full p-2", children: /* @__PURE__ */ e(s, { onClick: m, name: "ChevronRight" }) })
|
|
36
36
|
] }),
|
|
37
37
|
/* @__PURE__ */ r("div", { className: "flex flex-col items-center py-2 text-center leading-tight", children: [
|
|
38
38
|
/* @__PURE__ */ e(a, { variant: "h5", children: g.upperFirst(o.format("MMMM YYYY")) }),
|