@fluid-app/fluid-cli-theme-dev 0.1.534 → 0.1.535
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/dist-cli-preview/.vite/manifest.json +276 -295
- package/dist/dist-cli-preview/account-screens.js +1 -1
- package/dist/dist-cli-preview/chunks/{Combobox-CJDvxjNn.js → Combobox-D4l7DbBy.js} +54 -53
- package/dist/dist-cli-preview/chunks/{ContactsScreen-DD3XWK3Q.js → ContactsScreen-CEtA3-1c.js} +903 -850
- package/dist/dist-cli-preview/chunks/MediaScreen-C2rOxuuv.js +8 -0
- package/dist/dist-cli-preview/chunks/{MemberManagementProviders-iVdfo0DH.js → MemberManagementProviders-B_YXVcDi.js} +13 -13
- package/dist/dist-cli-preview/chunks/{MemberShareablesScreen-BulCAnNO.js → MemberShareablesScreen-UNjYr5R6.js} +4207 -3757
- package/dist/dist-cli-preview/chunks/{MessagingScreen-DlDsOy19.js → MessagingScreen-Btga_V0H.js} +24118 -21933
- package/dist/dist-cli-preview/chunks/MobileActionSheet-CrEH2vO7.js +1384 -0
- package/dist/dist-cli-preview/chunks/{MySiteScreen-BfPfyV4m.js → MySiteScreen-B1fGtPDj.js} +177 -163
- package/dist/dist-cli-preview/chunks/OrdersScreen-Bf9DtOCA.js +9 -0
- package/dist/dist-cli-preview/chunks/{OrdersScreen-C4yi3z2p.js → OrdersScreen-DyyL-P7j.js} +35 -34
- package/dist/dist-cli-preview/chunks/PlaylistsScreen-tws56I3H.js +8 -0
- package/dist/dist-cli-preview/chunks/{PortalTenantClientProvider-Clys_Bme.js → PortalTenantClientProvider-DUOOCXfW.js} +1 -1
- package/dist/dist-cli-preview/chunks/{ProfileScreen-e4QhExeS.js → ProfileScreen-wZO6QMrU.js} +259 -234
- package/dist/dist-cli-preview/chunks/ResponsiveDialog-DSDcOjhm.js +731 -0
- package/dist/dist-cli-preview/chunks/Select-DmRoXIkQ.js +2499 -0
- package/dist/dist-cli-preview/chunks/{SubscriptionsScreen-DysTJ6w_.js → SubscriptionsScreen-BR2C0m7M.js} +3 -3
- package/dist/dist-cli-preview/chunks/Textarea-C59p5Cek.js +365 -0
- package/dist/dist-cli-preview/chunks/{account-screen-runtime-B3e0JV6I.js → account-screen-runtime-BqMndJcu.js} +1389 -1409
- package/dist/dist-cli-preview/chunks/{arrow-left-BOYuYcvT.js → arrow-left-CFy5J6Id.js} +1 -1
- package/dist/dist-cli-preview/chunks/{cli-preview-cY0EPyxC.js → cli-preview-DZOhxtLy.js} +10 -10
- package/dist/dist-cli-preview/chunks/{client.gen-jwIybX1j.js → client.gen-DTVKCFco.js} +12 -12
- package/dist/dist-cli-preview/chunks/{copy-Cm_EKxcg.js → copy-Da4VLOCZ.js} +1 -1
- package/dist/dist-cli-preview/chunks/{countries-api-adapter-BCS0247N.js → countries-api-adapter-Bh5QfCO1.js} +2 -2
- package/dist/dist-cli-preview/chunks/{create-card-entry-container-CZi7shLR.js → create-card-entry-container-ohrRYgww.js} +1939 -1929
- package/dist/dist-cli-preview/chunks/{hey-api-client-B6n5a7q-.js → hey-api-client-BIjWueui.js} +1 -1
- package/dist/dist-cli-preview/chunks/{index-CfLLmITa.js → index-BMWjXC9i.js} +405 -869
- package/dist/dist-cli-preview/chunks/{index-DFIsiT9r.js → index-BVehJyDQ.js} +2080 -2372
- package/dist/dist-cli-preview/chunks/index-_r1wSvno.js +427 -0
- package/dist/dist-cli-preview/chunks/{isAfter-D0zQuNEJ.js → isAfter-BR4uNpua.js} +145 -156
- package/dist/dist-cli-preview/chunks/{map-pin-Vt1smsNu.js → map-pin-C_cK_i_W.js} +1 -1
- package/dist/dist-cli-preview/chunks/messaging-B1UjYRdl.js +4 -0
- package/dist/dist-cli-preview/chunks/{mount-account-screen-BOVvR3Og.js → mount-account-screen-JJGALFRE.js} +8 -8
- package/dist/dist-cli-preview/chunks/{navigate-account-screen-D756rD78.js → navigate-account-screen-C0VoUNOi.js} +1 -1
- package/dist/dist-cli-preview/chunks/schemas-D0s3rDQw.js +4851 -0
- package/dist/dist-cli-preview/chunks/{screen-route-slug-utils-HNXiCpo6.js → screen-route-slug-utils-n2BiDZmp.js} +205 -260
- package/dist/dist-cli-preview/chunks/search-zEnxG69C.js +14 -0
- package/dist/dist-cli-preview/chunks/sheet-haptics-context-p5ZPxslK.js +133 -0
- package/dist/dist-cli-preview/chunks/{sidebar-BDgHluGp.js → sidebar-CjPHl33n.js} +8 -8
- package/dist/dist-cli-preview/chunks/{sortable.esm-Cw91KlVU.js → sortable.esm-CrxUZkb-.js} +373 -362
- package/dist/dist-cli-preview/chunks/{store-api-context-BCaEZBlj.js → store-api-context-0k_ECvSE.js} +1 -1
- package/dist/dist-cli-preview/chunks/translation-api-context-factory-CP0LBb-M.js +74 -0
- package/dist/dist-cli-preview/chunks/{use-mobile-BztyG-mE.js → use-mobile-DIhDH3dI.js} +1 -1
- package/dist/dist-cli-preview/chunks/{use-optional-store-Dl6PSQur.js → use-optional-store-t4xzc2Rl.js} +2 -2
- package/dist/dist-cli-preview/chunks/use-store-YC0Ovzht.js +76 -0
- package/dist/dist-cli-preview/chunks/{useInfiniteQuery-fL_VYHHr.js → useInfiniteQuery-Bnzu0kZa.js} +9 -20
- package/dist/dist-cli-preview/chunks/{users-B3YJ3D1U.js → users-CabXl4EL.js} +1 -1
- package/package.json +1 -1
- package/dist/dist-cli-preview/chunks/Breadcrumb-ixf0cTR_.js +0 -91
- package/dist/dist-cli-preview/chunks/MediaScreen-D8WSOaze.js +0 -8
- package/dist/dist-cli-preview/chunks/MobileActionSheet-aGr-nGxu.js +0 -3884
- package/dist/dist-cli-preview/chunks/OrdersScreen-hidM-JR_.js +0 -9
- package/dist/dist-cli-preview/chunks/PlaylistsScreen-BIqSXZ5B.js +0 -8
- package/dist/dist-cli-preview/chunks/ellipsis-C1sJRT_T.js +0 -15
- package/dist/dist-cli-preview/chunks/eye-BHBOtWLw.js +0 -20
- package/dist/dist-cli-preview/chunks/index-COIiY5Im.js +0 -135
- package/dist/dist-cli-preview/chunks/log-out-segl_UhK.js +0 -30
- package/dist/dist-cli-preview/chunks/messaging-C_IkzF0O.js +0 -4
- package/dist/dist-cli-preview/chunks/pause-YWP8mWBs.js +0 -41
- package/dist/dist-cli-preview/chunks/schemas-BiM-ImW1.js +0 -5565
- package/dist/dist-cli-preview/chunks/sheet-haptics-context-d9udqor0.js +0 -116
- package/dist/dist-cli-preview/chunks/trash-2-CZEbdFT_.js +0 -17
- package/dist/dist-cli-preview/chunks/use-store-aahN8SDp.js +0 -400
- package/dist/dist-cli-preview/chunks/user-B4pULYRZ.js +0 -14
|
@@ -0,0 +1,427 @@
|
|
|
1
|
+
import { c, l as p, as as $, N as H, j as i, G as I, M as E, J as y, K as b, O as R, X as m } from "./account-screen-runtime-BqMndJcu.js";
|
|
2
|
+
import { u as M, v as z, w as P } from "./MobileActionSheet-CrEH2vO7.js";
|
|
3
|
+
import { k as F, M as G, a as U } from "./index-BVehJyDQ.js";
|
|
4
|
+
/**
|
|
5
|
+
* @license lucide-react v0.575.0 - ISC
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the ISC license.
|
|
8
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
const D = [
|
|
11
|
+
["path", { d: "M11 5h10", key: "1cz7ny" }],
|
|
12
|
+
["path", { d: "M11 12h10", key: "1438ji" }],
|
|
13
|
+
["path", { d: "M11 19h10", key: "11t30w" }],
|
|
14
|
+
["path", { d: "M4 4h1v5", key: "10yrso" }],
|
|
15
|
+
["path", { d: "M4 9h2", key: "r1h2o0" }],
|
|
16
|
+
["path", { d: "M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02", key: "xtkcd5" }]
|
|
17
|
+
], rt = c("list-ordered", D);
|
|
18
|
+
/**
|
|
19
|
+
* @license lucide-react v0.575.0 - ISC
|
|
20
|
+
*
|
|
21
|
+
* This source code is licensed under the ISC license.
|
|
22
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
23
|
+
*/
|
|
24
|
+
const V = [
|
|
25
|
+
["path", { d: "M3 5h.01", key: "18ugdj" }],
|
|
26
|
+
["path", { d: "M3 12h.01", key: "nlz23k" }],
|
|
27
|
+
["path", { d: "M3 19h.01", key: "noohij" }],
|
|
28
|
+
["path", { d: "M8 5h13", key: "1pao27" }],
|
|
29
|
+
["path", { d: "M8 12h13", key: "1za7za" }],
|
|
30
|
+
["path", { d: "M8 19h13", key: "m83p4d" }]
|
|
31
|
+
], dt = c("list", V);
|
|
32
|
+
/**
|
|
33
|
+
* @license lucide-react v0.575.0 - ISC
|
|
34
|
+
*
|
|
35
|
+
* This source code is licensed under the ISC license.
|
|
36
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
37
|
+
*/
|
|
38
|
+
const K = [
|
|
39
|
+
["path", { d: "M12 2v4", key: "3427ic" }],
|
|
40
|
+
["path", { d: "m16.2 7.8 2.9-2.9", key: "r700ao" }],
|
|
41
|
+
["path", { d: "M18 12h4", key: "wj9ykh" }],
|
|
42
|
+
["path", { d: "m16.2 16.2 2.9 2.9", key: "1bxg5t" }],
|
|
43
|
+
["path", { d: "M12 18v4", key: "jadmvz" }],
|
|
44
|
+
["path", { d: "m4.9 19.1 2.9-2.9", key: "bwix9q" }],
|
|
45
|
+
["path", { d: "M2 12h4", key: "j09sii" }],
|
|
46
|
+
["path", { d: "m4.9 4.9 2.9 2.9", key: "giyufr" }]
|
|
47
|
+
], q = c("loader", K);
|
|
48
|
+
/**
|
|
49
|
+
* @license lucide-react v0.575.0 - ISC
|
|
50
|
+
*
|
|
51
|
+
* This source code is licensed under the ISC license.
|
|
52
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
53
|
+
*/
|
|
54
|
+
const O = [
|
|
55
|
+
["path", { d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7", key: "132q7q" }],
|
|
56
|
+
["rect", { x: "2", y: "4", width: "20", height: "16", rx: "2", key: "izxlao" }]
|
|
57
|
+
], lt = c("mail", O);
|
|
58
|
+
/**
|
|
59
|
+
* @license lucide-react v0.575.0 - ISC
|
|
60
|
+
*
|
|
61
|
+
* This source code is licensed under the ISC license.
|
|
62
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
63
|
+
*/
|
|
64
|
+
const B = [
|
|
65
|
+
[
|
|
66
|
+
"path",
|
|
67
|
+
{
|
|
68
|
+
d: "M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",
|
|
69
|
+
key: "9njp5v"
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
], ct = c("phone", B);
|
|
73
|
+
/**
|
|
74
|
+
* @license lucide-react v0.575.0 - ISC
|
|
75
|
+
*
|
|
76
|
+
* This source code is licensed under the ISC license.
|
|
77
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
78
|
+
*/
|
|
79
|
+
const J = [
|
|
80
|
+
["path", { d: "M21 5H3", key: "1fi0y6" }],
|
|
81
|
+
["path", { d: "M17 12H7", key: "16if0g" }],
|
|
82
|
+
["path", { d: "M19 19H5", key: "vjpgq2" }]
|
|
83
|
+
], ut = c("text-align-center", J);
|
|
84
|
+
/**
|
|
85
|
+
* @license lucide-react v0.575.0 - ISC
|
|
86
|
+
*
|
|
87
|
+
* This source code is licensed under the ISC license.
|
|
88
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
89
|
+
*/
|
|
90
|
+
const X = [
|
|
91
|
+
["path", { d: "M21 5H3", key: "1fi0y6" }],
|
|
92
|
+
["path", { d: "M21 12H9", key: "dn1m92" }],
|
|
93
|
+
["path", { d: "M21 19H7", key: "4cu937" }]
|
|
94
|
+
], ht = c("text-align-end", X);
|
|
95
|
+
/**
|
|
96
|
+
* @license lucide-react v0.575.0 - ISC
|
|
97
|
+
*
|
|
98
|
+
* This source code is licensed under the ISC license.
|
|
99
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
+
*/
|
|
101
|
+
const Q = [
|
|
102
|
+
["path", { d: "M3 5h18", key: "1u36vt" }],
|
|
103
|
+
["path", { d: "M3 12h18", key: "1i2n21" }],
|
|
104
|
+
["path", { d: "M3 19h18", key: "awlh7x" }]
|
|
105
|
+
], pt = c("text-align-justify", Q);
|
|
106
|
+
/**
|
|
107
|
+
* @license lucide-react v0.575.0 - ISC
|
|
108
|
+
*
|
|
109
|
+
* This source code is licensed under the ISC license.
|
|
110
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
+
*/
|
|
112
|
+
const W = [
|
|
113
|
+
["path", { d: "M21 5H3", key: "1fi0y6" }],
|
|
114
|
+
["path", { d: "M15 12H3", key: "6jk70r" }],
|
|
115
|
+
["path", { d: "M17 19H3", key: "z6ezky" }]
|
|
116
|
+
], gt = c("text-align-start", W);
|
|
117
|
+
var x = "Tabs", [Y] = I(x, [
|
|
118
|
+
M
|
|
119
|
+
]), T = M(), [Z, v] = Y(x), k = p.forwardRef(
|
|
120
|
+
(t, e) => {
|
|
121
|
+
const {
|
|
122
|
+
__scopeTabs: n,
|
|
123
|
+
value: a,
|
|
124
|
+
onValueChange: r,
|
|
125
|
+
defaultValue: l,
|
|
126
|
+
orientation: s = "horizontal",
|
|
127
|
+
dir: u,
|
|
128
|
+
activationMode: g = "automatic",
|
|
129
|
+
...f
|
|
130
|
+
} = t, d = $(u), [o, h] = H({
|
|
131
|
+
prop: a,
|
|
132
|
+
onChange: r,
|
|
133
|
+
defaultProp: l ?? "",
|
|
134
|
+
caller: x
|
|
135
|
+
});
|
|
136
|
+
return /* @__PURE__ */ i.jsx(
|
|
137
|
+
Z,
|
|
138
|
+
{
|
|
139
|
+
scope: n,
|
|
140
|
+
baseId: E(),
|
|
141
|
+
value: o,
|
|
142
|
+
onValueChange: h,
|
|
143
|
+
orientation: s,
|
|
144
|
+
dir: d,
|
|
145
|
+
activationMode: g,
|
|
146
|
+
children: /* @__PURE__ */ i.jsx(
|
|
147
|
+
y.div,
|
|
148
|
+
{
|
|
149
|
+
dir: d,
|
|
150
|
+
"data-orientation": s,
|
|
151
|
+
...f,
|
|
152
|
+
ref: e
|
|
153
|
+
}
|
|
154
|
+
)
|
|
155
|
+
}
|
|
156
|
+
);
|
|
157
|
+
}
|
|
158
|
+
);
|
|
159
|
+
k.displayName = x;
|
|
160
|
+
var A = "TabsList", _ = p.forwardRef(
|
|
161
|
+
(t, e) => {
|
|
162
|
+
const { __scopeTabs: n, loop: a = !0, ...r } = t, l = v(A, n), s = T(n);
|
|
163
|
+
return /* @__PURE__ */ i.jsx(
|
|
164
|
+
z,
|
|
165
|
+
{
|
|
166
|
+
asChild: !0,
|
|
167
|
+
...s,
|
|
168
|
+
orientation: l.orientation,
|
|
169
|
+
dir: l.dir,
|
|
170
|
+
loop: a,
|
|
171
|
+
children: /* @__PURE__ */ i.jsx(
|
|
172
|
+
y.div,
|
|
173
|
+
{
|
|
174
|
+
role: "tablist",
|
|
175
|
+
"aria-orientation": l.orientation,
|
|
176
|
+
...r,
|
|
177
|
+
ref: e
|
|
178
|
+
}
|
|
179
|
+
)
|
|
180
|
+
}
|
|
181
|
+
);
|
|
182
|
+
}
|
|
183
|
+
);
|
|
184
|
+
_.displayName = A;
|
|
185
|
+
var j = "TabsTrigger", N = p.forwardRef(
|
|
186
|
+
(t, e) => {
|
|
187
|
+
const { __scopeTabs: n, value: a, disabled: r = !1, ...l } = t, s = v(j, n), u = T(n), g = S(s.baseId, a), f = L(s.baseId, a), d = a === s.value;
|
|
188
|
+
return /* @__PURE__ */ i.jsx(
|
|
189
|
+
P,
|
|
190
|
+
{
|
|
191
|
+
asChild: !0,
|
|
192
|
+
...u,
|
|
193
|
+
focusable: !r,
|
|
194
|
+
active: d,
|
|
195
|
+
children: /* @__PURE__ */ i.jsx(
|
|
196
|
+
y.button,
|
|
197
|
+
{
|
|
198
|
+
type: "button",
|
|
199
|
+
role: "tab",
|
|
200
|
+
"aria-selected": d,
|
|
201
|
+
"aria-controls": f,
|
|
202
|
+
"data-state": d ? "active" : "inactive",
|
|
203
|
+
"data-disabled": r ? "" : void 0,
|
|
204
|
+
disabled: r,
|
|
205
|
+
id: g,
|
|
206
|
+
...l,
|
|
207
|
+
ref: e,
|
|
208
|
+
onMouseDown: b(t.onMouseDown, (o) => {
|
|
209
|
+
!r && o.button === 0 && o.ctrlKey === !1 ? s.onValueChange(a) : o.preventDefault();
|
|
210
|
+
}),
|
|
211
|
+
onKeyDown: b(t.onKeyDown, (o) => {
|
|
212
|
+
[" ", "Enter"].includes(o.key) && s.onValueChange(a);
|
|
213
|
+
}),
|
|
214
|
+
onFocus: b(t.onFocus, () => {
|
|
215
|
+
const o = s.activationMode !== "manual";
|
|
216
|
+
!d && !r && o && s.onValueChange(a);
|
|
217
|
+
})
|
|
218
|
+
}
|
|
219
|
+
)
|
|
220
|
+
}
|
|
221
|
+
);
|
|
222
|
+
}
|
|
223
|
+
);
|
|
224
|
+
N.displayName = j;
|
|
225
|
+
var C = "TabsContent", w = p.forwardRef(
|
|
226
|
+
(t, e) => {
|
|
227
|
+
const { __scopeTabs: n, value: a, forceMount: r, children: l, ...s } = t, u = v(C, n), g = S(u.baseId, a), f = L(u.baseId, a), d = a === u.value, o = p.useRef(d);
|
|
228
|
+
return p.useEffect(() => {
|
|
229
|
+
const h = requestAnimationFrame(() => o.current = !1);
|
|
230
|
+
return () => cancelAnimationFrame(h);
|
|
231
|
+
}, []), /* @__PURE__ */ i.jsx(R, { present: r || d, children: ({ present: h }) => /* @__PURE__ */ i.jsx(
|
|
232
|
+
y.div,
|
|
233
|
+
{
|
|
234
|
+
"data-state": d ? "active" : "inactive",
|
|
235
|
+
"data-orientation": u.orientation,
|
|
236
|
+
role: "tabpanel",
|
|
237
|
+
"aria-labelledby": g,
|
|
238
|
+
hidden: !h,
|
|
239
|
+
id: f,
|
|
240
|
+
tabIndex: 0,
|
|
241
|
+
...s,
|
|
242
|
+
ref: e,
|
|
243
|
+
style: {
|
|
244
|
+
...t.style,
|
|
245
|
+
animationDuration: o.current ? "0s" : void 0
|
|
246
|
+
},
|
|
247
|
+
children: h && l
|
|
248
|
+
}
|
|
249
|
+
) });
|
|
250
|
+
}
|
|
251
|
+
);
|
|
252
|
+
w.displayName = C;
|
|
253
|
+
function S(t, e) {
|
|
254
|
+
return `${t}-trigger-${e}`;
|
|
255
|
+
}
|
|
256
|
+
function L(t, e) {
|
|
257
|
+
return `${t}-content-${e}`;
|
|
258
|
+
}
|
|
259
|
+
var tt = k, et = _, nt = N, at = w;
|
|
260
|
+
function ft({
|
|
261
|
+
className: t,
|
|
262
|
+
...e
|
|
263
|
+
}) {
|
|
264
|
+
return /* @__PURE__ */ i.jsx(
|
|
265
|
+
q,
|
|
266
|
+
{
|
|
267
|
+
"data-slot": "spinner",
|
|
268
|
+
role: "status",
|
|
269
|
+
"aria-label": "Loading",
|
|
270
|
+
className: m("size-4 animate-spin", t),
|
|
271
|
+
...e
|
|
272
|
+
}
|
|
273
|
+
);
|
|
274
|
+
}
|
|
275
|
+
function mt({
|
|
276
|
+
className: t,
|
|
277
|
+
...e
|
|
278
|
+
}) {
|
|
279
|
+
return /* @__PURE__ */ i.jsx(
|
|
280
|
+
tt,
|
|
281
|
+
{
|
|
282
|
+
"data-slot": "tabs",
|
|
283
|
+
className: m("flex flex-col gap-2", t),
|
|
284
|
+
...e
|
|
285
|
+
}
|
|
286
|
+
);
|
|
287
|
+
}
|
|
288
|
+
function yt({
|
|
289
|
+
className: t,
|
|
290
|
+
...e
|
|
291
|
+
}) {
|
|
292
|
+
return /* @__PURE__ */ i.jsx(
|
|
293
|
+
et,
|
|
294
|
+
{
|
|
295
|
+
"data-slot": "tabs-list",
|
|
296
|
+
className: m(
|
|
297
|
+
"bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",
|
|
298
|
+
t
|
|
299
|
+
),
|
|
300
|
+
...e
|
|
301
|
+
}
|
|
302
|
+
);
|
|
303
|
+
}
|
|
304
|
+
function xt({
|
|
305
|
+
className: t,
|
|
306
|
+
...e
|
|
307
|
+
}) {
|
|
308
|
+
return /* @__PURE__ */ i.jsx(
|
|
309
|
+
nt,
|
|
310
|
+
{
|
|
311
|
+
"data-slot": "tabs-trigger",
|
|
312
|
+
className: m(
|
|
313
|
+
"text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring data-[state=active]:bg-background inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md 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",
|
|
314
|
+
t
|
|
315
|
+
),
|
|
316
|
+
...e
|
|
317
|
+
}
|
|
318
|
+
);
|
|
319
|
+
}
|
|
320
|
+
function bt({
|
|
321
|
+
className: t,
|
|
322
|
+
...e
|
|
323
|
+
}) {
|
|
324
|
+
return /* @__PURE__ */ i.jsx(
|
|
325
|
+
at,
|
|
326
|
+
{
|
|
327
|
+
"data-slot": "tabs-content",
|
|
328
|
+
className: m("flex-1 outline-none", t),
|
|
329
|
+
...e
|
|
330
|
+
}
|
|
331
|
+
);
|
|
332
|
+
}
|
|
333
|
+
const vt = F.create({
|
|
334
|
+
name: "textAlign",
|
|
335
|
+
addOptions() {
|
|
336
|
+
return {
|
|
337
|
+
types: [],
|
|
338
|
+
alignments: ["left", "center", "right", "justify"],
|
|
339
|
+
defaultAlignment: null
|
|
340
|
+
};
|
|
341
|
+
},
|
|
342
|
+
addGlobalAttributes() {
|
|
343
|
+
return [
|
|
344
|
+
{
|
|
345
|
+
types: this.options.types,
|
|
346
|
+
attributes: {
|
|
347
|
+
textAlign: {
|
|
348
|
+
default: this.options.defaultAlignment,
|
|
349
|
+
parseHTML: (t) => {
|
|
350
|
+
const e = t.style.textAlign;
|
|
351
|
+
return this.options.alignments.includes(e) ? e : this.options.defaultAlignment;
|
|
352
|
+
},
|
|
353
|
+
renderHTML: (t) => t.textAlign ? { style: `text-align: ${t.textAlign}` } : {}
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
];
|
|
358
|
+
},
|
|
359
|
+
addCommands() {
|
|
360
|
+
return {
|
|
361
|
+
setTextAlign: (t) => ({ commands: e }) => this.options.alignments.includes(t) ? this.options.types.map((n) => e.updateAttributes(n, { textAlign: t })).every((n) => n) : !1,
|
|
362
|
+
unsetTextAlign: () => ({ commands: t }) => this.options.types.map((e) => t.resetAttributes(e, "textAlign")).every((e) => e),
|
|
363
|
+
toggleTextAlign: (t) => ({ editor: e, commands: n }) => this.options.alignments.includes(t) ? e.isActive({ textAlign: t }) ? n.unsetTextAlign() : n.setTextAlign(t) : !1
|
|
364
|
+
};
|
|
365
|
+
},
|
|
366
|
+
addKeyboardShortcuts() {
|
|
367
|
+
return {
|
|
368
|
+
"Mod-Shift-l": () => this.editor.commands.setTextAlign("left"),
|
|
369
|
+
"Mod-Shift-e": () => this.editor.commands.setTextAlign("center"),
|
|
370
|
+
"Mod-Shift-r": () => this.editor.commands.setTextAlign("right"),
|
|
371
|
+
"Mod-Shift-j": () => this.editor.commands.setTextAlign("justify")
|
|
372
|
+
};
|
|
373
|
+
}
|
|
374
|
+
}), Mt = G.create({
|
|
375
|
+
name: "underline",
|
|
376
|
+
addOptions() {
|
|
377
|
+
return {
|
|
378
|
+
HTMLAttributes: {}
|
|
379
|
+
};
|
|
380
|
+
},
|
|
381
|
+
parseHTML() {
|
|
382
|
+
return [
|
|
383
|
+
{
|
|
384
|
+
tag: "u"
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
style: "text-decoration",
|
|
388
|
+
consuming: !1,
|
|
389
|
+
getAttrs: (t) => t.includes("underline") ? {} : !1
|
|
390
|
+
}
|
|
391
|
+
];
|
|
392
|
+
},
|
|
393
|
+
renderHTML({ HTMLAttributes: t }) {
|
|
394
|
+
return ["u", U(this.options.HTMLAttributes, t), 0];
|
|
395
|
+
},
|
|
396
|
+
addCommands() {
|
|
397
|
+
return {
|
|
398
|
+
setUnderline: () => ({ commands: t }) => t.setMark(this.name),
|
|
399
|
+
toggleUnderline: () => ({ commands: t }) => t.toggleMark(this.name),
|
|
400
|
+
unsetUnderline: () => ({ commands: t }) => t.unsetMark(this.name)
|
|
401
|
+
};
|
|
402
|
+
},
|
|
403
|
+
addKeyboardShortcuts() {
|
|
404
|
+
return {
|
|
405
|
+
"Mod-u": () => this.editor.commands.toggleUnderline(),
|
|
406
|
+
"Mod-U": () => this.editor.commands.toggleUnderline()
|
|
407
|
+
};
|
|
408
|
+
}
|
|
409
|
+
});
|
|
410
|
+
export {
|
|
411
|
+
dt as L,
|
|
412
|
+
lt as M,
|
|
413
|
+
ct as P,
|
|
414
|
+
ft as S,
|
|
415
|
+
mt as T,
|
|
416
|
+
Mt as U,
|
|
417
|
+
yt as a,
|
|
418
|
+
xt as b,
|
|
419
|
+
q as c,
|
|
420
|
+
vt as d,
|
|
421
|
+
gt as e,
|
|
422
|
+
ut as f,
|
|
423
|
+
ht as g,
|
|
424
|
+
pt as h,
|
|
425
|
+
rt as i,
|
|
426
|
+
bt as j
|
|
427
|
+
};
|