@wrdagency/blockout 0.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/2NBKRL7C-DnAMmXv4.js +81 -0
- package/dist/CaretDown.es-eySGHzTJ.js +32 -0
- package/dist/CaretUp.es-Cy8czlHG.js +32 -0
- package/dist/P7GR5CS5-BryEvRCz.js +621 -0
- package/dist/SSRBase.es-BUXS72ra.js +33 -0
- package/dist/T7VMP3TM--1s529fr.js +3544 -0
- package/dist/UQQRIHDV-Bfi_RJby.js +1046 -0
- package/dist/VIIRIBF3-XWA2y8Hu.js +21 -0
- package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
- package/dist/assets/index.css +1 -0
- package/dist/assets/index10.css +1 -0
- package/dist/assets/index11.css +1 -0
- package/dist/assets/index2.css +1 -0
- package/dist/assets/index3.css +1 -0
- package/dist/assets/index4.css +1 -0
- package/dist/assets/index5.css +1 -0
- package/dist/assets/index6.css +1 -0
- package/dist/assets/index7.css +1 -0
- package/dist/assets/index8.css +1 -0
- package/dist/assets/index9.css +1 -0
- package/dist/components/button/index.d.ts +9 -0
- package/dist/components/button/index.js +28 -0
- package/dist/components/button-group/index.d.ts +6 -0
- package/dist/components/button-group/index.js +6 -0
- package/dist/components/controls/base-control/index.d.ts +3 -0
- package/dist/components/controls/base-control/index.js +26 -0
- package/dist/components/controls/base-control/props.d.ts +23 -0
- package/dist/components/controls/base-control/props.js +21 -0
- package/dist/components/controls/index.d.ts +6 -0
- package/dist/components/controls/index.js +14 -0
- package/dist/components/controls/number-control/index.d.ts +6 -0
- package/dist/components/controls/number-control/index.js +52 -0
- package/dist/components/controls/select-control/index.d.ts +9 -0
- package/dist/components/controls/select-control/index.js +591 -0
- package/dist/components/controls/select-control/options.d.ts +11 -0
- package/dist/components/controls/select-control/options.js +12 -0
- package/dist/components/controls/text-control/index.d.ts +6 -0
- package/dist/components/controls/text-control/index.js +12 -0
- package/dist/components/controls/textarea-control/index.d.ts +6 -0
- package/dist/components/controls/textarea-control/index.js +18 -0
- package/dist/components/controls/toggle-control/index.d.ts +8 -0
- package/dist/components/controls/toggle-control/index.js +46 -0
- package/dist/components/data-table/column.d.ts +4 -0
- package/dist/components/data-table/column.js +874 -0
- package/dist/components/data-table/context.d.ts +7 -0
- package/dist/components/data-table/context.js +36 -0
- package/dist/components/data-table/example.d.ts +1 -0
- package/dist/components/data-table/example.js +5 -0
- package/dist/components/data-table/footer.d.ts +2 -0
- package/dist/components/data-table/footer.js +23 -0
- package/dist/components/data-table/header.d.ts +7 -0
- package/dist/components/data-table/header.js +408 -0
- package/dist/components/data-table/index.d.ts +10 -0
- package/dist/components/data-table/index.js +86 -0
- package/dist/components/data-table/types.d.ts +75 -0
- package/dist/components/data-table/types.js +1 -0
- package/dist/components/index.d.ts +5 -0
- package/dist/components/index.js +23 -0
- package/dist/components/menu/icon.d.ts +4 -0
- package/dist/components/menu/icon.js +6 -0
- package/dist/components/menu/index.d.ts +8 -0
- package/dist/components/menu/index.js +131 -0
- package/dist/components/menu/item.d.ts +7 -0
- package/dist/components/menu/item.js +8 -0
- package/dist/components/menu/items/action.d.ts +7 -0
- package/dist/components/menu/items/action.js +23 -0
- package/dist/components/menu/items/spacer.d.ts +2 -0
- package/dist/components/menu/items/spacer.js +46 -0
- package/dist/components/menu/items/submenu.d.ts +7 -0
- package/dist/components/menu/items/submenu.js +7 -0
- package/dist/components/menu/items/toggle.d.ts +7 -0
- package/dist/components/menu/items/toggle.js +109 -0
- package/dist/components/menu/types.d.ts +28 -0
- package/dist/components/menu/types.js +1 -0
- package/dist/components/visually-hidden/index.d.ts +2 -0
- package/dist/components/visually-hidden/index.js +5 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +25 -0
- package/dist/item-CPVd5mKo.js +758 -0
- package/dist/primitives/draggable/index.d.ts +17 -0
- package/dist/primitives/draggable/index.js +52 -0
- package/dist/primitives/index.d.ts +1 -0
- package/dist/primitives/index.js +4 -0
- package/dist/primitives/resizable/index.d.ts +7 -0
- package/dist/primitives/resizable/index.js +76 -0
- package/dist/types/component.d.ts +4 -0
- package/dist/types/component.js +1 -0
- package/dist/types/math.d.ts +10 -0
- package/dist/types/math.js +1 -0
- package/dist/utils/css.d.ts +1 -0
- package/dist/utils/css.js +6 -0
- package/dist/utils/noop.d.ts +1 -0
- package/dist/utils/noop.js +5 -0
- package/package.json +61 -0
- package/readme.md +3 -0
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { u as _ } from "./VIIRIBF3-XWA2y8Hu.js";
|
|
2
|
+
import { c as H, C as T, a as k, m as y, f as P, b as w, d as A, _ as D, i as N, u as F, e as R, g as j, h as C, j as d, k as B, l as K, n as V } from "./P7GR5CS5-BryEvRCz.js";
|
|
3
|
+
import { createContext as W } from "react";
|
|
4
|
+
import { u as q, a as L, b as z, h as x } from "./UQQRIHDV-Bfi_RJby.js";
|
|
5
|
+
var b = H(
|
|
6
|
+
[k],
|
|
7
|
+
[T]
|
|
8
|
+
), ee = b.useContext, G = b.useScopedContext;
|
|
9
|
+
W(
|
|
10
|
+
void 0
|
|
11
|
+
);
|
|
12
|
+
var J = "div";
|
|
13
|
+
function Q(a, o, u) {
|
|
14
|
+
var t;
|
|
15
|
+
if (!a) return !1;
|
|
16
|
+
if (x(a)) return !0;
|
|
17
|
+
const i = o == null ? void 0 : o.find((r) => {
|
|
18
|
+
var l;
|
|
19
|
+
return r.element === u ? !1 : ((l = r.element) == null ? void 0 : l.getAttribute("aria-expanded")) === "true";
|
|
20
|
+
}), c = (t = i == null ? void 0 : i.element) == null ? void 0 : t.getAttribute("aria-controls");
|
|
21
|
+
if (!c) return !1;
|
|
22
|
+
const n = V(a).getElementById(c);
|
|
23
|
+
return n ? x(n) ? !0 : !!n.querySelector("[role=menuitem][aria-expanded=true]") : !1;
|
|
24
|
+
}
|
|
25
|
+
var U = w(
|
|
26
|
+
function(o) {
|
|
27
|
+
var u = o, {
|
|
28
|
+
store: t,
|
|
29
|
+
hideOnClick: i = !0,
|
|
30
|
+
preventScrollOnKeyDown: c = !0,
|
|
31
|
+
focusOnHover: s,
|
|
32
|
+
blurOnHoverEnd: n
|
|
33
|
+
} = u, r = D(u, [
|
|
34
|
+
"store",
|
|
35
|
+
"hideOnClick",
|
|
36
|
+
"preventScrollOnKeyDown",
|
|
37
|
+
"focusOnHover",
|
|
38
|
+
"blurOnHoverEnd"
|
|
39
|
+
]);
|
|
40
|
+
const l = _(!0), g = G();
|
|
41
|
+
t = t || l || g, N(
|
|
42
|
+
t,
|
|
43
|
+
process.env.NODE_ENV !== "production" && "MenuItem must be wrapped in a MenuList, Menu or Menubar component"
|
|
44
|
+
);
|
|
45
|
+
const f = r.onClick, M = F(i), p = "hideAll" in t ? t.hideAll : void 0, m = !!p, h = R((e) => {
|
|
46
|
+
f == null || f(e), !(e.defaultPrevented || B(e) || K(e) || !p || e.currentTarget.getAttribute("aria-haspopup") === "menu") && M(e) && p();
|
|
47
|
+
}), O = q(
|
|
48
|
+
t,
|
|
49
|
+
(e) => "contentElement" in e ? e.contentElement : null
|
|
50
|
+
), E = j(O, "menuitem");
|
|
51
|
+
return r = C(d({
|
|
52
|
+
role: E
|
|
53
|
+
}, r), {
|
|
54
|
+
onClick: h
|
|
55
|
+
}), r = L(d({
|
|
56
|
+
store: t,
|
|
57
|
+
preventScrollOnKeyDown: c
|
|
58
|
+
}, r)), r = z(C(d({
|
|
59
|
+
store: t
|
|
60
|
+
}, r), {
|
|
61
|
+
focusOnHover(e) {
|
|
62
|
+
const v = () => typeof s == "function" ? s(e) : s ?? !0;
|
|
63
|
+
if (!t || !v()) return !1;
|
|
64
|
+
const { baseElement: I, items: S } = t.getState();
|
|
65
|
+
return m ? (e.currentTarget.hasAttribute("aria-expanded") && e.currentTarget.focus(), !0) : Q(I, S, e.currentTarget) ? (e.currentTarget.focus(), !0) : !1;
|
|
66
|
+
},
|
|
67
|
+
blurOnHoverEnd(e) {
|
|
68
|
+
return typeof n == "function" ? n(e) : n ?? m;
|
|
69
|
+
}
|
|
70
|
+
})), r;
|
|
71
|
+
}
|
|
72
|
+
), te = y(
|
|
73
|
+
P(function(o) {
|
|
74
|
+
const u = U(o);
|
|
75
|
+
return A(J, u);
|
|
76
|
+
})
|
|
77
|
+
);
|
|
78
|
+
export {
|
|
79
|
+
te as M,
|
|
80
|
+
ee as u
|
|
81
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { w as l } from "./SSRBase.es-BUXS72ra.js";
|
|
3
|
+
const n = /* @__PURE__ */ new Map([
|
|
4
|
+
[
|
|
5
|
+
"bold",
|
|
6
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z" }))
|
|
7
|
+
],
|
|
8
|
+
[
|
|
9
|
+
"duotone",
|
|
10
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M208,96l-80,80L48,96Z", opacity: "0.2" }), /* @__PURE__ */ e.createElement("path", { d: "M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z" }))
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"fill",
|
|
14
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z" }))
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"light",
|
|
18
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z" }))
|
|
19
|
+
],
|
|
20
|
+
[
|
|
21
|
+
"regular",
|
|
22
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z" }))
|
|
23
|
+
],
|
|
24
|
+
[
|
|
25
|
+
"thin",
|
|
26
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z" }))
|
|
27
|
+
]
|
|
28
|
+
]), r = e.forwardRef((t, a) => /* @__PURE__ */ e.createElement(l, { ref: a, ...t, weights: n }));
|
|
29
|
+
r.displayName = "CaretDownIcon";
|
|
30
|
+
export {
|
|
31
|
+
r as e
|
|
32
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { w as l } from "./SSRBase.es-BUXS72ra.js";
|
|
3
|
+
const n = /* @__PURE__ */ new Map([
|
|
4
|
+
[
|
|
5
|
+
"bold",
|
|
6
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M216.49,168.49a12,12,0,0,1-17,0L128,97,56.49,168.49a12,12,0,0,1-17-17l80-80a12,12,0,0,1,17,0l80,80A12,12,0,0,1,216.49,168.49Z" }))
|
|
7
|
+
],
|
|
8
|
+
[
|
|
9
|
+
"duotone",
|
|
10
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M208,160H48l80-80Z", opacity: "0.2" }), /* @__PURE__ */ e.createElement("path", { d: "M213.66,154.34l-80-80a8,8,0,0,0-11.32,0l-80,80A8,8,0,0,0,48,168H208a8,8,0,0,0,5.66-13.66ZM67.31,152,128,91.31,188.69,152Z" }))
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"fill",
|
|
14
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M215.39,163.06A8,8,0,0,1,208,168H48a8,8,0,0,1-5.66-13.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,215.39,163.06Z" }))
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"light",
|
|
18
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M212.24,164.24a6,6,0,0,1-8.48,0L128,88.49,52.24,164.24a6,6,0,0,1-8.48-8.48l80-80a6,6,0,0,1,8.48,0l80,80A6,6,0,0,1,212.24,164.24Z" }))
|
|
19
|
+
],
|
|
20
|
+
[
|
|
21
|
+
"regular",
|
|
22
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M213.66,165.66a8,8,0,0,1-11.32,0L128,91.31,53.66,165.66a8,8,0,0,1-11.32-11.32l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,213.66,165.66Z" }))
|
|
23
|
+
],
|
|
24
|
+
[
|
|
25
|
+
"thin",
|
|
26
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M210.83,162.83a4,4,0,0,1-5.66,0L128,85.66,50.83,162.83a4,4,0,0,1-5.66-5.66l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,210.83,162.83Z" }))
|
|
27
|
+
]
|
|
28
|
+
]), r = e.forwardRef((a, t) => /* @__PURE__ */ e.createElement(l, { ref: t, ...a, weights: n }));
|
|
29
|
+
r.displayName = "CaretUpIcon";
|
|
30
|
+
export {
|
|
31
|
+
r
|
|
32
|
+
};
|