@wrdagency/blockout 0.1.0 → 0.1.2
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/{2NBKRL7C-7XoDiJp9.js → 2NBKRL7C-BAzCMGOw.js} +2 -2
- package/dist/{4CMBR7SL-BHIN8rB4.js → 4CMBR7SL-BAGv8IL2.js} +1 -1
- package/dist/{6VRAQV3D-Clhw_nNS.js → 6VRAQV3D-2rb_aClP.js} +1 -1
- package/dist/WMYDSCNQ-Dy1O-Kdl.js +2405 -0
- package/dist/{WYCIER3C-8jmp2F15.js → WYCIER3C-DRn904Gy.js} +2 -2
- package/dist/{YV4JVR4I-LkUIiJWj.js → YV4JVR4I-kvospPUa.js} +1 -1
- package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
- package/dist/assets/index.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/components/breadcrumbs/index.js +2 -2
- package/dist/components/controls/base-popover-control/index.js +2 -2
- package/dist/components/controls/password-control/index.js +1 -1
- package/dist/components/controls/recurrence-control/index.js +1 -1
- package/dist/components/controls/select-control/component.js +6 -6
- package/dist/components/data-table/column.js +1 -1
- package/dist/components/filesystem/file.js +1 -1
- package/dist/components/filesystem/folder.js +2 -2
- package/dist/components/filesystem/root.js +1 -1
- package/dist/components/form/components/progress.d.ts +3 -2
- package/dist/components/form/components/step.js +24 -21
- package/dist/components/index.d.ts +0 -1
- package/dist/components/index.js +16 -18
- package/dist/components/menu/index.js +3 -3
- package/dist/components/menu/item.js +1 -1
- package/dist/components/menu/items/action.js +1 -1
- package/dist/components/menu/items/submenu.js +2 -2
- package/dist/components/menu/items/toggle.js +1 -1
- package/dist/components/progress/index.d.ts +5 -3
- package/dist/components/progress/index.js +44 -27
- package/dist/components/tabs/panel.js +2 -2
- package/dist/components/tabs/root.js +2 -2
- package/dist/components/tabs/tab.js +2 -2
- package/dist/components/toolbar/index.js +2 -2
- package/dist/components/toolbar/root.js +1 -1
- package/dist/{composite-provider-DxKEAxsZ.js → composite-provider-DNftbE5U.js} +1 -1
- package/dist/{index-BI5rPXbu.js → index-Cgx3BqdJ.js} +11 -14
- package/dist/index.js +31 -33
- package/dist/{item-BrZqCoM7.js → item-B1ugJ7YQ.js} +5 -5
- package/dist/primitives/scroll-area/index.js +522 -290
- package/dist/{root-CdR32nP9.js → root-CaKPdqzv.js} +2 -2
- package/dist/types/date.js +433 -404
- package/package.json +1 -2
- package/dist/WMYDSCNQ-DECXdiUT.js +0 -1346
- package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
- package/dist/assets/index19.css +0 -1
- package/dist/components/markdown/editor/component.d.ts +0 -7
- package/dist/components/markdown/editor/component.js +0 -25583
- package/dist/components/markdown/editor/index.d.ts +0 -1
- package/dist/components/markdown/editor/index.js +0 -4
- package/dist/components/markdown/formats.d.ts +0 -11
- package/dist/components/markdown/formats.js +0 -320
- package/dist/components/markdown/index.js +0 -8
- package/dist/components/markdown/prose.d.ts +0 -3
- package/dist/components/markdown/prose.js +0 -15
- package/dist/components/markdown/types/format.d.ts +0 -27
- package/dist/components/markdown/types/format.js +0 -4
- package/dist/floating-ui.dom-BqewRPVB.js +0 -1124
- package/dist/index-B5y9bioP.js +0 -258
- package/dist/tslib.es6-DN7pKd6F.js +0 -44
package/dist/index-B5y9bioP.js
DELETED
|
@@ -1,258 +0,0 @@
|
|
|
1
|
-
import * as i from "react";
|
|
2
|
-
import { r as E } from "./index-BI5rPXbu.js";
|
|
3
|
-
import { jsx as y, Fragment as M } from "react/jsx-runtime";
|
|
4
|
-
function v(e, n) {
|
|
5
|
-
if (typeof e == "function")
|
|
6
|
-
return e(n);
|
|
7
|
-
e != null && (e.current = n);
|
|
8
|
-
}
|
|
9
|
-
function P(...e) {
|
|
10
|
-
return (n) => {
|
|
11
|
-
let t = !1;
|
|
12
|
-
const o = e.map((r) => {
|
|
13
|
-
const s = v(r, n);
|
|
14
|
-
return !t && typeof s == "function" && (t = !0), s;
|
|
15
|
-
});
|
|
16
|
-
if (t)
|
|
17
|
-
return () => {
|
|
18
|
-
for (let r = 0; r < o.length; r++) {
|
|
19
|
-
const s = o[r];
|
|
20
|
-
typeof s == "function" ? s() : v(e[r], null);
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
function O(...e) {
|
|
26
|
-
return i.useCallback(P(...e), e);
|
|
27
|
-
}
|
|
28
|
-
// @__NO_SIDE_EFFECTS__
|
|
29
|
-
function R(e) {
|
|
30
|
-
const n = /* @__PURE__ */ w(e), t = i.forwardRef((o, r) => {
|
|
31
|
-
const { children: s, ...l } = o, c = i.Children.toArray(s), u = c.find(b);
|
|
32
|
-
if (u) {
|
|
33
|
-
const a = u.props.children, p = c.map((f) => f === u ? i.Children.count(a) > 1 ? i.Children.only(null) : i.isValidElement(a) ? a.props.children : null : f);
|
|
34
|
-
return /* @__PURE__ */ y(n, { ...l, ref: r, children: i.isValidElement(a) ? i.cloneElement(a, void 0, p) : null });
|
|
35
|
-
}
|
|
36
|
-
return /* @__PURE__ */ y(n, { ...l, ref: r, children: s });
|
|
37
|
-
});
|
|
38
|
-
return t.displayName = `${e}.Slot`, t;
|
|
39
|
-
}
|
|
40
|
-
// @__NO_SIDE_EFFECTS__
|
|
41
|
-
function w(e) {
|
|
42
|
-
const n = i.forwardRef((t, o) => {
|
|
43
|
-
const { children: r, ...s } = t;
|
|
44
|
-
if (i.isValidElement(r)) {
|
|
45
|
-
const l = _(r), c = T(s, r.props);
|
|
46
|
-
return r.type !== i.Fragment && (c.ref = o ? P(o, l) : l), i.cloneElement(r, c);
|
|
47
|
-
}
|
|
48
|
-
return i.Children.count(r) > 1 ? i.Children.only(null) : null;
|
|
49
|
-
});
|
|
50
|
-
return n.displayName = `${e}.SlotClone`, n;
|
|
51
|
-
}
|
|
52
|
-
var A = Symbol("radix.slottable");
|
|
53
|
-
// @__NO_SIDE_EFFECTS__
|
|
54
|
-
function B(e) {
|
|
55
|
-
const n = ({ children: t }) => /* @__PURE__ */ y(M, { children: t });
|
|
56
|
-
return n.displayName = `${e}.Slottable`, n.__radixId = A, n;
|
|
57
|
-
}
|
|
58
|
-
function b(e) {
|
|
59
|
-
return i.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === A;
|
|
60
|
-
}
|
|
61
|
-
function T(e, n) {
|
|
62
|
-
const t = { ...n };
|
|
63
|
-
for (const o in n) {
|
|
64
|
-
const r = e[o], s = n[o];
|
|
65
|
-
/^on[A-Z]/.test(o) ? r && s ? t[o] = (...c) => {
|
|
66
|
-
const u = s(...c);
|
|
67
|
-
return r(...c), u;
|
|
68
|
-
} : r && (t[o] = r) : o === "style" ? t[o] = { ...r, ...s } : o === "className" && (t[o] = [r, s].filter(Boolean).join(" "));
|
|
69
|
-
}
|
|
70
|
-
return { ...e, ...t };
|
|
71
|
-
}
|
|
72
|
-
function _(e) {
|
|
73
|
-
var o, r;
|
|
74
|
-
let n = (o = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : o.get, t = n && "isReactWarning" in n && n.isReactWarning;
|
|
75
|
-
return t ? e.ref : (n = (r = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : r.get, t = n && "isReactWarning" in n && n.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
|
|
76
|
-
}
|
|
77
|
-
var I = [
|
|
78
|
-
"a",
|
|
79
|
-
"button",
|
|
80
|
-
"div",
|
|
81
|
-
"form",
|
|
82
|
-
"h2",
|
|
83
|
-
"h3",
|
|
84
|
-
"img",
|
|
85
|
-
"input",
|
|
86
|
-
"label",
|
|
87
|
-
"li",
|
|
88
|
-
"nav",
|
|
89
|
-
"ol",
|
|
90
|
-
"p",
|
|
91
|
-
"select",
|
|
92
|
-
"span",
|
|
93
|
-
"svg",
|
|
94
|
-
"ul"
|
|
95
|
-
], k = I.reduce((e, n) => {
|
|
96
|
-
const t = /* @__PURE__ */ R(`Primitive.${n}`), o = i.forwardRef((r, s) => {
|
|
97
|
-
const { asChild: l, ...c } = r, u = l ? t : n;
|
|
98
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ y(u, { ...c, ref: s });
|
|
99
|
-
});
|
|
100
|
-
return o.displayName = `Primitive.${n}`, { ...e, [n]: o };
|
|
101
|
-
}, {});
|
|
102
|
-
function Z(e, n) {
|
|
103
|
-
e && E.flushSync(() => e.dispatchEvent(n));
|
|
104
|
-
}
|
|
105
|
-
var x = globalThis != null && globalThis.document ? i.useLayoutEffect : () => {
|
|
106
|
-
};
|
|
107
|
-
function D(e, n) {
|
|
108
|
-
return i.useReducer((t, o) => n[t][o] ?? t, e);
|
|
109
|
-
}
|
|
110
|
-
var U = (e) => {
|
|
111
|
-
const { present: n, children: t } = e, o = W(n), r = typeof t == "function" ? t({ present: o.isPresent }) : i.Children.only(t), s = O(o.ref, $(r));
|
|
112
|
-
return typeof t == "function" || o.isPresent ? i.cloneElement(r, { ref: s }) : null;
|
|
113
|
-
};
|
|
114
|
-
U.displayName = "Presence";
|
|
115
|
-
function W(e) {
|
|
116
|
-
const [n, t] = i.useState(), o = i.useRef(null), r = i.useRef(e), s = i.useRef("none"), l = e ? "mounted" : "unmounted", [c, u] = D(l, {
|
|
117
|
-
mounted: {
|
|
118
|
-
UNMOUNT: "unmounted",
|
|
119
|
-
ANIMATION_OUT: "unmountSuspended"
|
|
120
|
-
},
|
|
121
|
-
unmountSuspended: {
|
|
122
|
-
MOUNT: "mounted",
|
|
123
|
-
ANIMATION_END: "unmounted"
|
|
124
|
-
},
|
|
125
|
-
unmounted: {
|
|
126
|
-
MOUNT: "mounted"
|
|
127
|
-
}
|
|
128
|
-
});
|
|
129
|
-
return i.useEffect(() => {
|
|
130
|
-
const a = S(o.current);
|
|
131
|
-
s.current = c === "mounted" ? a : "none";
|
|
132
|
-
}, [c]), x(() => {
|
|
133
|
-
const a = o.current, p = r.current;
|
|
134
|
-
if (p !== e) {
|
|
135
|
-
const m = s.current, d = S(a);
|
|
136
|
-
e ? u("MOUNT") : d === "none" || (a == null ? void 0 : a.display) === "none" ? u("UNMOUNT") : u(p && m !== d ? "ANIMATION_OUT" : "UNMOUNT"), r.current = e;
|
|
137
|
-
}
|
|
138
|
-
}, [e, u]), x(() => {
|
|
139
|
-
if (n) {
|
|
140
|
-
let a;
|
|
141
|
-
const p = n.ownerDocument.defaultView ?? window, f = (d) => {
|
|
142
|
-
const h = S(o.current).includes(d.animationName);
|
|
143
|
-
if (d.target === n && h && (u("ANIMATION_END"), !r.current)) {
|
|
144
|
-
const C = n.style.animationFillMode;
|
|
145
|
-
n.style.animationFillMode = "forwards", a = p.setTimeout(() => {
|
|
146
|
-
n.style.animationFillMode === "forwards" && (n.style.animationFillMode = C);
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
}, m = (d) => {
|
|
150
|
-
d.target === n && (s.current = S(o.current));
|
|
151
|
-
};
|
|
152
|
-
return n.addEventListener("animationstart", m), n.addEventListener("animationcancel", f), n.addEventListener("animationend", f), () => {
|
|
153
|
-
p.clearTimeout(a), n.removeEventListener("animationstart", m), n.removeEventListener("animationcancel", f), n.removeEventListener("animationend", f);
|
|
154
|
-
};
|
|
155
|
-
} else
|
|
156
|
-
u("ANIMATION_END");
|
|
157
|
-
}, [n, u]), {
|
|
158
|
-
isPresent: ["mounted", "unmountSuspended"].includes(c),
|
|
159
|
-
ref: i.useCallback((a) => {
|
|
160
|
-
o.current = a ? getComputedStyle(a) : null, t(a);
|
|
161
|
-
}, [])
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
|
-
function S(e) {
|
|
165
|
-
return (e == null ? void 0 : e.animationName) || "none";
|
|
166
|
-
}
|
|
167
|
-
function $(e) {
|
|
168
|
-
var o, r;
|
|
169
|
-
let n = (o = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : o.get, t = n && "isReactWarning" in n && n.isReactWarning;
|
|
170
|
-
return t ? e.ref : (n = (r = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : r.get, t = n && "isReactWarning" in n && n.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
|
|
171
|
-
}
|
|
172
|
-
function q(e, n = []) {
|
|
173
|
-
let t = [];
|
|
174
|
-
function o(s, l) {
|
|
175
|
-
const c = i.createContext(l), u = t.length;
|
|
176
|
-
t = [...t, l];
|
|
177
|
-
const a = (f) => {
|
|
178
|
-
var g;
|
|
179
|
-
const { scope: m, children: d, ...N } = f, h = ((g = m == null ? void 0 : m[e]) == null ? void 0 : g[u]) || c, C = i.useMemo(() => N, Object.values(N));
|
|
180
|
-
return /* @__PURE__ */ y(h.Provider, { value: C, children: d });
|
|
181
|
-
};
|
|
182
|
-
a.displayName = s + "Provider";
|
|
183
|
-
function p(f, m) {
|
|
184
|
-
var h;
|
|
185
|
-
const d = ((h = m == null ? void 0 : m[e]) == null ? void 0 : h[u]) || c, N = i.useContext(d);
|
|
186
|
-
if (N) return N;
|
|
187
|
-
if (l !== void 0) return l;
|
|
188
|
-
throw new Error(`\`${f}\` must be used within \`${s}\``);
|
|
189
|
-
}
|
|
190
|
-
return [a, p];
|
|
191
|
-
}
|
|
192
|
-
const r = () => {
|
|
193
|
-
const s = t.map((l) => i.createContext(l));
|
|
194
|
-
return function(c) {
|
|
195
|
-
const u = (c == null ? void 0 : c[e]) || s;
|
|
196
|
-
return i.useMemo(
|
|
197
|
-
() => ({ [`__scope${e}`]: { ...c, [e]: u } }),
|
|
198
|
-
[c, u]
|
|
199
|
-
);
|
|
200
|
-
};
|
|
201
|
-
};
|
|
202
|
-
return r.scopeName = e, [o, L(r, ...n)];
|
|
203
|
-
}
|
|
204
|
-
function L(...e) {
|
|
205
|
-
const n = e[0];
|
|
206
|
-
if (e.length === 1) return n;
|
|
207
|
-
const t = () => {
|
|
208
|
-
const o = e.map((r) => ({
|
|
209
|
-
useScope: r(),
|
|
210
|
-
scopeName: r.scopeName
|
|
211
|
-
}));
|
|
212
|
-
return function(s) {
|
|
213
|
-
const l = o.reduce((c, { useScope: u, scopeName: a }) => {
|
|
214
|
-
const f = u(s)[`__scope${a}`];
|
|
215
|
-
return { ...c, ...f };
|
|
216
|
-
}, {});
|
|
217
|
-
return i.useMemo(() => ({ [`__scope${n.scopeName}`]: l }), [l]);
|
|
218
|
-
};
|
|
219
|
-
};
|
|
220
|
-
return t.scopeName = n.scopeName, t;
|
|
221
|
-
}
|
|
222
|
-
function z(e) {
|
|
223
|
-
const n = i.useRef(e);
|
|
224
|
-
return i.useEffect(() => {
|
|
225
|
-
n.current = e;
|
|
226
|
-
}), i.useMemo(() => (...t) => {
|
|
227
|
-
var o;
|
|
228
|
-
return (o = n.current) == null ? void 0 : o.call(n, ...t);
|
|
229
|
-
}, []);
|
|
230
|
-
}
|
|
231
|
-
var j = i.createContext(void 0);
|
|
232
|
-
function G(e) {
|
|
233
|
-
const n = i.useContext(j);
|
|
234
|
-
return e || n || "ltr";
|
|
235
|
-
}
|
|
236
|
-
function J(e, [n, t]) {
|
|
237
|
-
return Math.min(t, Math.max(n, e));
|
|
238
|
-
}
|
|
239
|
-
function K(e, n, { checkForDefaultPrevented: t = !0 } = {}) {
|
|
240
|
-
return function(r) {
|
|
241
|
-
if (e == null || e(r), t === !1 || !r.defaultPrevented)
|
|
242
|
-
return n == null ? void 0 : n(r);
|
|
243
|
-
};
|
|
244
|
-
}
|
|
245
|
-
export {
|
|
246
|
-
k as P,
|
|
247
|
-
G as a,
|
|
248
|
-
U as b,
|
|
249
|
-
q as c,
|
|
250
|
-
K as d,
|
|
251
|
-
z as e,
|
|
252
|
-
x as f,
|
|
253
|
-
J as g,
|
|
254
|
-
Z as h,
|
|
255
|
-
R as i,
|
|
256
|
-
B as j,
|
|
257
|
-
O as u
|
|
258
|
-
};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
var c = function(n, t) {
|
|
2
|
-
return c = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, r) {
|
|
3
|
-
e.__proto__ = r;
|
|
4
|
-
} || function(e, r) {
|
|
5
|
-
for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (e[o] = r[o]);
|
|
6
|
-
}, c(n, t);
|
|
7
|
-
};
|
|
8
|
-
function s(n, t) {
|
|
9
|
-
if (typeof t != "function" && t !== null)
|
|
10
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
11
|
-
c(n, t);
|
|
12
|
-
function e() {
|
|
13
|
-
this.constructor = n;
|
|
14
|
-
}
|
|
15
|
-
n.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
|
|
16
|
-
}
|
|
17
|
-
var p = function() {
|
|
18
|
-
return p = Object.assign || function(t) {
|
|
19
|
-
for (var e, r = 1, o = arguments.length; r < o; r++) {
|
|
20
|
-
e = arguments[r];
|
|
21
|
-
for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && (t[a] = e[a]);
|
|
22
|
-
}
|
|
23
|
-
return t;
|
|
24
|
-
}, p.apply(this, arguments);
|
|
25
|
-
};
|
|
26
|
-
function u(n, t) {
|
|
27
|
-
var e = {};
|
|
28
|
-
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && t.indexOf(r) < 0 && (e[r] = n[r]);
|
|
29
|
-
if (n != null && typeof Object.getOwnPropertySymbols == "function")
|
|
30
|
-
for (var o = 0, r = Object.getOwnPropertySymbols(n); o < r.length; o++)
|
|
31
|
-
t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(n, r[o]) && (e[r[o]] = n[r[o]]);
|
|
32
|
-
return e;
|
|
33
|
-
}
|
|
34
|
-
function l(n, t, e) {
|
|
35
|
-
if (e || arguments.length === 2) for (var r = 0, o = t.length, a; r < o; r++)
|
|
36
|
-
(a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
|
|
37
|
-
return n.concat(a || Array.prototype.slice.call(t));
|
|
38
|
-
}
|
|
39
|
-
export {
|
|
40
|
-
s as _,
|
|
41
|
-
p as a,
|
|
42
|
-
l as b,
|
|
43
|
-
u as c
|
|
44
|
-
};
|