@wrdagency/blockout 0.0.11 → 0.0.13
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-raj2vrMY.js → 2NBKRL7C-C6mXReCE.js} +3 -3
- package/dist/{P7GR5CS5-PkUYC6hd.js → P7GR5CS5-DNbthaqU.js} +11 -11
- package/dist/{T7VMP3TM-BeJUiw28.js → T7VMP3TM-B3jxXFmj.js} +2 -2
- package/dist/{UQQRIHDV-xtNCxi0H.js → UQQRIHDV-CFdrMoqW.js} +1 -1
- package/dist/{VIIRIBF3-B3f0V2Nc.js → VIIRIBF3-B585VK9r.js} +1 -1
- package/dist/assets/form.css +1 -0
- package/dist/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -0
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/components/breadcrumbs/index.d.ts +7 -0
- package/dist/components/breadcrumbs/index.js +29 -0
- package/dist/components/breadcrumbs/types.d.ts +4 -0
- package/dist/components/button/index.js +1 -1
- package/dist/components/controls/base-control/index.js +1 -1
- package/dist/components/controls/choice-control/index.d.ts +12 -3
- package/dist/components/controls/choice-control/index.js +32 -22
- package/dist/components/controls/number-control/index.d.ts +1 -0
- package/dist/components/controls/number-control/index.js +33 -25
- package/dist/components/controls/select-control/index.d.ts +2 -0
- package/dist/components/controls/select-control/index.js +337 -334
- package/dist/components/controls/text-control/index.d.ts +1 -0
- package/dist/components/controls/text-control/index.js +15 -8
- package/dist/components/controls/textarea-control/index.d.ts +1 -0
- package/dist/components/controls/textarea-control/index.js +17 -9
- package/dist/components/controls/toggle-control/index.d.ts +3 -1
- package/dist/components/controls/toggle-control/index.js +35 -23
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/form/components/description.d.ts +2 -0
- package/dist/components/form/components/description.js +15 -0
- package/dist/components/form/components/form.d.ts +9 -0
- package/dist/components/form/components/form.js +41 -0
- package/dist/components/form/components/index.js +18 -0
- package/dist/components/form/components/pagination.d.ts +6 -0
- package/dist/components/form/components/pagination.js +46 -0
- package/dist/components/form/components/progress.d.ts +5 -0
- package/dist/components/form/components/progress.js +22 -0
- package/dist/components/form/components/row.d.ts +6 -0
- package/dist/components/form/components/row.js +22 -0
- package/dist/components/form/components/step.d.ts +6 -0
- package/dist/components/form/components/step.js +24 -0
- package/dist/components/form/components/title.d.ts +2 -0
- package/dist/components/form/components/title.js +15 -0
- package/dist/components/form/index.d.ts +9 -0
- package/dist/components/form/index.js +6 -0
- package/dist/components/form/types/fields.d.ts +21 -0
- package/dist/components/form/types/fields.js +11 -0
- package/dist/components/form/types/form.d.ts +28 -0
- package/dist/components/form/types/form.js +7 -0
- package/dist/components/form/types/steps.d.ts +5 -0
- package/dist/components/form/types/steps.js +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +29 -23
- package/dist/components/markdown/formats.d.ts +11 -0
- package/dist/components/markdown/formats.js +318 -0
- package/dist/components/markdown/index.js +1 -0
- package/dist/components/markdown/types/format.d.ts +27 -0
- package/dist/components/markdown/types/format.js +4 -0
- package/dist/components/menu/index.js +11 -11
- package/dist/components/menu/item.js +1 -1
- package/dist/components/menu/items/action.js +1 -1
- package/dist/components/menu/items/spacer.js +10 -10
- package/dist/components/menu/items/submenu.js +2 -2
- package/dist/components/menu/items/toggle.js +1 -1
- package/dist/components/progress/index.js +13 -11
- package/dist/index.js +33 -27
- package/dist/{item-Bcbx6pI-.js → item-C0kyELlf.js} +36 -36
- package/package.json +3 -2
- /package/dist/components/{controls/ranked-choice-control/index.js → breadcrumbs/types.js} +0 -0
- /package/dist/components/{controls/ranked-choice-control → markdown}/index.d.ts +0 -0
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
import { jsx as l, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import * as a from "react";
|
|
3
|
+
import '../../assets/style.css';/* empty css */
|
|
4
|
+
import { VisuallyHidden as H } from "../../primitives/visually-hidden/index.js";
|
|
5
|
+
import { w as r } from "../../SSRBase.es-BUXS72ra.js";
|
|
6
|
+
import { createFormat as n } from "./types/format.js";
|
|
7
|
+
const M = /* @__PURE__ */ new Map([
|
|
8
|
+
[
|
|
9
|
+
"bold",
|
|
10
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M76,64A12,12,0,0,1,88,52H216a12,12,0,0,1,0,24H88A12,12,0,0,1,76,64Zm140,52H88a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24Zm0,64H88a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24ZM44,112a16,16,0,1,0,16,16A16,16,0,0,0,44,112Zm0-64A16,16,0,1,0,60,64,16,16,0,0,0,44,48Zm0,128a16,16,0,1,0,16,16A16,16,0,0,0,44,176Z" }))
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"duotone",
|
|
14
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M216,64V192H88V64Z", opacity: "0.2" }), /* @__PURE__ */ a.createElement("path", { d: "M80,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H88A8,8,0,0,1,80,64Zm136,56H88a8,8,0,1,0,0,16H216a8,8,0,0,0,0-16Zm0,64H88a8,8,0,1,0,0,16H216a8,8,0,0,0,0-16ZM44,52A12,12,0,1,0,56,64,12,12,0,0,0,44,52Zm0,64a12,12,0,1,0,12,12A12,12,0,0,0,44,116Zm0,64a12,12,0,1,0,12,12A12,12,0,0,0,44,180Z" }))
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"fill",
|
|
18
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM68,188a12,12,0,1,1,12-12A12,12,0,0,1,68,188Zm0-48a12,12,0,1,1,12-12A12,12,0,0,1,68,140Zm0-48A12,12,0,1,1,80,80,12,12,0,0,1,68,92Zm124,92H104a8,8,0,0,1,0-16h88a8,8,0,0,1,0,16Zm0-48H104a8,8,0,0,1,0-16h88a8,8,0,0,1,0,16Zm0-48H104a8,8,0,0,1,0-16h88a8,8,0,0,1,0,16Z" }))
|
|
19
|
+
],
|
|
20
|
+
[
|
|
21
|
+
"light",
|
|
22
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M82,64a6,6,0,0,1,6-6H216a6,6,0,0,1,0,12H88A6,6,0,0,1,82,64Zm134,58H88a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12Zm0,64H88a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12ZM44,54A10,10,0,1,0,54,64,10,10,0,0,0,44,54Zm0,128a10,10,0,1,0,10,10A10,10,0,0,0,44,182Zm0-64a10,10,0,1,0,10,10A10,10,0,0,0,44,118Z" }))
|
|
23
|
+
],
|
|
24
|
+
[
|
|
25
|
+
"regular",
|
|
26
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M80,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H88A8,8,0,0,1,80,64Zm136,56H88a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Zm0,64H88a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16ZM44,52A12,12,0,1,0,56,64,12,12,0,0,0,44,52Zm0,64a12,12,0,1,0,12,12A12,12,0,0,0,44,116Zm0,64a12,12,0,1,0,12,12A12,12,0,0,0,44,180Z" }))
|
|
27
|
+
],
|
|
28
|
+
[
|
|
29
|
+
"thin",
|
|
30
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M84,64a4,4,0,0,1,4-4H216a4,4,0,0,1,0,8H88A4,4,0,0,1,84,64Zm132,60H88a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8Zm0,64H88a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8ZM44,120a8,8,0,1,0,8,8A8,8,0,0,0,44,120Zm0-64a8,8,0,1,0,8,8A8,8,0,0,0,44,56Zm0,128a8,8,0,1,0,8,8A8,8,0,0,0,44,184Z" }))
|
|
31
|
+
]
|
|
32
|
+
]), Z = a.forwardRef((e, t) => /* @__PURE__ */ a.createElement(r, { ref: t, ...e, weights: M }));
|
|
33
|
+
Z.displayName = "ListBulletsIcon";
|
|
34
|
+
const s = /* @__PURE__ */ new Map([
|
|
35
|
+
[
|
|
36
|
+
"bold",
|
|
37
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M228,128a12,12,0,0,1-12,12H116a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128ZM116,76H216a12,12,0,0,0,0-24H116a12,12,0,0,0,0,24ZM216,180H116a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24ZM44,59.31V104a12,12,0,0,0,24,0V40A12,12,0,0,0,50.64,29.27l-16,8a12,12,0,0,0,9.36,22Zm39.73,96.86a27.7,27.7,0,0,0-11.2-18.63A28.89,28.89,0,0,0,32.9,143a27.71,27.71,0,0,0-4.17,7.54,12,12,0,0,0,22.55,8.21,4,4,0,0,1,.58-1,4.78,4.78,0,0,1,6.5-.82,3.82,3.82,0,0,1,1.61,2.6,3.63,3.63,0,0,1-.77,2.77l-.13.17L30.39,200.82A12,12,0,0,0,40,220H72a12,12,0,0,0,0-24H64l14.28-19.11A27.48,27.48,0,0,0,83.73,156.17Z" }))
|
|
38
|
+
],
|
|
39
|
+
[
|
|
40
|
+
"duotone",
|
|
41
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M216,64V192H104V64Z", opacity: "0.2" }), /* @__PURE__ */ a.createElement("path", { d: "M224,128a8,8,0,0,1-8,8H104a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM104,72H216a8,8,0,0,0,0-16H104a8,8,0,0,0,0,16ZM216,184H104a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16ZM43.58,55.16,48,52.94V104a8,8,0,0,0,16,0V40a8,8,0,0,0-11.58-7.16l-16,8a8,8,0,0,0,7.16,14.32ZM79.77,156.72a23.73,23.73,0,0,0-9.6-15.95,24.86,24.86,0,0,0-34.11,4.7,23.63,23.63,0,0,0-3.57,6.46,8,8,0,1,0,15,5.47,7.84,7.84,0,0,1,1.18-2.13,8.76,8.76,0,0,1,12-1.59A7.91,7.91,0,0,1,63.93,159a7.64,7.64,0,0,1-1.57,5.78,1,1,0,0,0-.08.11L33.59,203.21A8,8,0,0,0,40,216H72a8,8,0,0,0,0-16H56l19.08-25.53A23.47,23.47,0,0,0,79.77,156.72Z" }))
|
|
42
|
+
],
|
|
43
|
+
[
|
|
44
|
+
"fill",
|
|
45
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM56.84,75.58a8,8,0,0,1,3.58-10.74l16-8A8,8,0,0,1,88,64v48a8,8,0,0,1-16,0V76.94l-4.42,2.22A8,8,0,0,1,56.84,75.58ZM92,180a8,8,0,0,1,0,16H68a8,8,0,0,1-6.4-12.8l21.67-28.89A3.92,3.92,0,0,0,84,152a4,4,0,0,0-7.77-1.33,8,8,0,0,1-15.09-5.34,20,20,0,1,1,35,18.53L84,180Zm100,4H120a8,8,0,0,1,0-16h72a8,8,0,0,1,0,16Zm0-48H120a8,8,0,0,1,0-16h72a8,8,0,0,1,0,16Zm0-48H120a8,8,0,0,1,0-16h72a8,8,0,0,1,0,16Z" }))
|
|
46
|
+
],
|
|
47
|
+
[
|
|
48
|
+
"light",
|
|
49
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M222,128a6,6,0,0,1-6,6H104a6,6,0,0,1,0-12H216A6,6,0,0,1,222,128ZM104,70H216a6,6,0,0,0,0-12H104a6,6,0,0,0,0,12ZM216,186H104a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12ZM42.68,53.37,50,49.71V104a6,6,0,0,0,12,0V40a6,6,0,0,0-8.68-5.37l-16,8a6,6,0,0,0,5.36,10.74ZM72,202H52l21.48-28.74A21.5,21.5,0,0,0,77.79,157,21.75,21.75,0,0,0,69,142.38a22.86,22.86,0,0,0-31.35,4.31,22.18,22.18,0,0,0-3.28,5.92,6,6,0,0,0,11.28,4.11,9.87,9.87,0,0,1,1.48-2.67,10.78,10.78,0,0,1,14.78-2,9.89,9.89,0,0,1,4,6.61,9.64,9.64,0,0,1-2,7.28l-.06.09L35.2,204.41A6,6,0,0,0,40,214H72a6,6,0,0,0,0-12Z" }))
|
|
50
|
+
],
|
|
51
|
+
[
|
|
52
|
+
"regular",
|
|
53
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M224,128a8,8,0,0,1-8,8H104a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM104,72H216a8,8,0,0,0,0-16H104a8,8,0,0,0,0,16ZM216,184H104a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16ZM43.58,55.16,48,52.94V104a8,8,0,0,0,16,0V40a8,8,0,0,0-11.58-7.16l-16,8a8,8,0,0,0,7.16,14.32ZM79.77,156.72a23.73,23.73,0,0,0-9.6-15.95,24.86,24.86,0,0,0-34.11,4.7,23.63,23.63,0,0,0-3.57,6.46,8,8,0,1,0,15,5.47,7.84,7.84,0,0,1,1.18-2.13,8.76,8.76,0,0,1,12-1.59A7.91,7.91,0,0,1,63.93,159a7.64,7.64,0,0,1-1.57,5.78,1,1,0,0,0-.08.11L33.59,203.21A8,8,0,0,0,40,216H72a8,8,0,0,0,0-16H56l19.08-25.53A23.47,23.47,0,0,0,79.77,156.72Z" }))
|
|
54
|
+
],
|
|
55
|
+
[
|
|
56
|
+
"thin",
|
|
57
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M220,128a4,4,0,0,1-4,4H104a4,4,0,0,1,0-8H216A4,4,0,0,1,220,128ZM104,68H216a4,4,0,0,0,0-8H104a4,4,0,0,0,0,8ZM216,188H104a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8ZM41.79,51.58,52,46.47V104a4,4,0,0,0,8,0V40a4,4,0,0,0-5.79-3.58l-16,8a4,4,0,1,0,3.58,7.16ZM72,204H48l23.85-31.92a19.54,19.54,0,0,0,4-14.8,19.76,19.76,0,0,0-8-13.28,20.84,20.84,0,0,0-28.59,3.92,19.85,19.85,0,0,0-3,5.38A4,4,0,0,0,43.76,156a12.1,12.1,0,0,1,1.78-3.22,12.78,12.78,0,0,1,17.54-2.37,11.85,11.85,0,0,1,4.81,7.94,11.65,11.65,0,0,1-2.41,8.85L36.8,205.61A4,4,0,0,0,40,212H72a4,4,0,0,0,0-8Z" }))
|
|
58
|
+
]
|
|
59
|
+
]), o = a.forwardRef((e, t) => /* @__PURE__ */ a.createElement(r, { ref: t, ...e, weights: s }));
|
|
60
|
+
o.displayName = "ListNumbersIcon";
|
|
61
|
+
const E = /* @__PURE__ */ new Map([
|
|
62
|
+
[
|
|
63
|
+
"bold",
|
|
64
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M185.08,114.46A48,48,0,0,0,148,36H80A12,12,0,0,0,68,48V200a12,12,0,0,0,12,12h80a52,52,0,0,0,25.08-97.54ZM92,60h56a24,24,0,0,1,0,48H92Zm68,128H92V132h68a28,28,0,0,1,0,56Z" }))
|
|
65
|
+
],
|
|
66
|
+
[
|
|
67
|
+
"duotone",
|
|
68
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(
|
|
69
|
+
"path",
|
|
70
|
+
{
|
|
71
|
+
d: "M200,160a40,40,0,0,1-40,40H80V48h68a36,36,0,0,1,0,72h12A40,40,0,0,1,200,160Z",
|
|
72
|
+
opacity: "0.2"
|
|
73
|
+
}
|
|
74
|
+
), /* @__PURE__ */ a.createElement("path", { d: "M178.48,115.7A44,44,0,0,0,148,40H80a8,8,0,0,0-8,8V200a8,8,0,0,0,8,8h80a48,48,0,0,0,18.48-92.3ZM88,56h60a28,28,0,0,1,0,56H88Zm72,136H88V128h72a32,32,0,0,1,0,64Z" }))
|
|
75
|
+
],
|
|
76
|
+
[
|
|
77
|
+
"fill",
|
|
78
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M168,156a20,20,0,0,1-20,20H96V136h52A20,20,0,0,1,168,156ZM224,48V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48ZM184,156a36,36,0,0,0-18-31.15A36,36,0,0,0,140,64H88a8,8,0,0,0-8,8V184a8,8,0,0,0,8,8h60A36,36,0,0,0,184,156Zm-24-56a20,20,0,0,0-20-20H96v40h44A20,20,0,0,0,160,100Z" }))
|
|
79
|
+
],
|
|
80
|
+
[
|
|
81
|
+
"light",
|
|
82
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M174.69,116.41A42,42,0,0,0,148,42H80a6,6,0,0,0-6,6V200a6,6,0,0,0,6,6h80a46,46,0,0,0,14.69-89.59ZM86,54h62a30,30,0,0,1,0,60H86Zm74,140H86V126h74a34,34,0,0,1,0,68Z" }))
|
|
83
|
+
],
|
|
84
|
+
[
|
|
85
|
+
"regular",
|
|
86
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M178.48,115.7A44,44,0,0,0,148,40H80a8,8,0,0,0-8,8V200a8,8,0,0,0,8,8h80a48,48,0,0,0,18.48-92.3ZM88,56h60a28,28,0,0,1,0,56H88Zm72,136H88V128h72a32,32,0,0,1,0,64Z" }))
|
|
87
|
+
],
|
|
88
|
+
[
|
|
89
|
+
"thin",
|
|
90
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M170.27,117.21A40,40,0,0,0,148,44H80a4,4,0,0,0-4,4V200a4,4,0,0,0,4,4h80a44,44,0,0,0,10.27-86.79ZM84,52h64a32,32,0,0,1,0,64H84Zm76,144H84V124h76a36,36,0,0,1,0,72Z" }))
|
|
91
|
+
]
|
|
92
|
+
]), d = a.forwardRef((e, t) => /* @__PURE__ */ a.createElement(r, { ref: t, ...e, weights: E }));
|
|
93
|
+
d.displayName = "TextBIcon";
|
|
94
|
+
const u = /* @__PURE__ */ new Map([
|
|
95
|
+
[
|
|
96
|
+
"bold",
|
|
97
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M236,112v96a12,12,0,0,1-24,0V134.42L206.66,138a12,12,0,0,1-13.32-20l24-16A12,12,0,0,1,236,112ZM144,44a12,12,0,0,0-12,12v48H52V56a12,12,0,0,0-24,0V176a12,12,0,0,0,24,0V128h80v48a12,12,0,0,0,24,0V56A12,12,0,0,0,144,44Z" }))
|
|
98
|
+
],
|
|
99
|
+
[
|
|
100
|
+
"duotone",
|
|
101
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(
|
|
102
|
+
"path",
|
|
103
|
+
{
|
|
104
|
+
d: "M224,72V208H56a16,16,0,0,1-16-16V56H208A16,16,0,0,1,224,72Z",
|
|
105
|
+
opacity: "0.2"
|
|
106
|
+
}
|
|
107
|
+
), /* @__PURE__ */ a.createElement("path", { d: "M152,56V176a8,8,0,0,1-16,0V124H48v52a8,8,0,0,1-16,0V56a8,8,0,0,1,16,0v52h88V56a8,8,0,0,1,16,0Zm75.77,49a8,8,0,0,0-8.21.39l-24,16a8,8,0,1,0,8.88,13.32L216,127V208a8,8,0,0,0,16,0V112A8,8,0,0,0,227.77,105Z" }))
|
|
108
|
+
],
|
|
109
|
+
[
|
|
110
|
+
"fill",
|
|
111
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM144,160a8,8,0,0,1-16,0V128H72v32a8,8,0,0,1-16,0V80a8,8,0,0,1,16,0v32h56V80a8,8,0,0,1,16,0Zm56,16a8,8,0,0,1-16,0V111l-11.56,7.71a8,8,0,1,1-8.88-13.32l24-16A8,8,0,0,1,200,96Z" }))
|
|
112
|
+
],
|
|
113
|
+
[
|
|
114
|
+
"light",
|
|
115
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M230,112v96a6,6,0,0,1-12,0V123.21L203.33,133a6,6,0,0,1-6.66-10l24-16a6,6,0,0,1,9.33,5ZM144,50a6,6,0,0,0-6,6v54H46V56a6,6,0,0,0-12,0V176a6,6,0,0,0,12,0V122h92v54a6,6,0,0,0,12,0V56A6,6,0,0,0,144,50Z" }))
|
|
116
|
+
],
|
|
117
|
+
[
|
|
118
|
+
"regular",
|
|
119
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M152,56V176a8,8,0,0,1-16,0V124H48v52a8,8,0,0,1-16,0V56a8,8,0,0,1,16,0v52h88V56a8,8,0,0,1,16,0Zm75.77,49a8,8,0,0,0-8.21.39l-24,16a8,8,0,1,0,8.88,13.32L216,127V208a8,8,0,0,0,16,0V112A8,8,0,0,0,227.77,105Z" }))
|
|
120
|
+
],
|
|
121
|
+
[
|
|
122
|
+
"thin",
|
|
123
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M228,112v96a4,4,0,0,1-8,0V119.47l-17.78,11.86a4,4,0,1,1-4.44-6.66l24-16A4,4,0,0,1,228,112ZM144,52a4,4,0,0,0-4,4v56H44V56a4,4,0,0,0-8,0V176a4,4,0,0,0,8,0V120h96v56a4,4,0,0,0,8,0V56A4,4,0,0,0,144,52Z" }))
|
|
124
|
+
]
|
|
125
|
+
]), A = a.forwardRef((e, t) => /* @__PURE__ */ a.createElement(r, { ref: t, ...e, weights: u }));
|
|
126
|
+
A.displayName = "TextHOneIcon";
|
|
127
|
+
const g = /* @__PURE__ */ new Map([
|
|
128
|
+
[
|
|
129
|
+
"bold",
|
|
130
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M204,56a12,12,0,0,1-12,12H160.65l-40,120H144a12,12,0,0,1,0,24H64a12,12,0,0,1,0-24H95.35l40-120H112a12,12,0,0,1,0-24h80A12,12,0,0,1,204,56Z" }))
|
|
131
|
+
],
|
|
132
|
+
[
|
|
133
|
+
"duotone",
|
|
134
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M192,56,144,200H64L112,56Z", opacity: "0.2" }), /* @__PURE__ */ a.createElement("path", { d: "M200,56a8,8,0,0,1-8,8H157.77L115.1,192H144a8,8,0,0,1,0,16H64a8,8,0,0,1,0-16H98.23L140.9,64H112a8,8,0,0,1,0-16h80A8,8,0,0,1,200,56Z" }))
|
|
135
|
+
],
|
|
136
|
+
[
|
|
137
|
+
"fill",
|
|
138
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM176,80H153.64l-34.29,96H136a8,8,0,0,1,0,16H80a8,8,0,0,1,0-16h22.36l34.29-96H120a8,8,0,0,1,0-16h56a8,8,0,0,1,0,16Z" }))
|
|
139
|
+
],
|
|
140
|
+
[
|
|
141
|
+
"light",
|
|
142
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M198,56a6,6,0,0,1-6,6H156.32l-44,132H144a6,6,0,0,1,0,12H64a6,6,0,0,1,0-12H99.68l44-132H112a6,6,0,0,1,0-12h80A6,6,0,0,1,198,56Z" }))
|
|
143
|
+
],
|
|
144
|
+
[
|
|
145
|
+
"regular",
|
|
146
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M200,56a8,8,0,0,1-8,8H157.77L115.1,192H144a8,8,0,0,1,0,16H64a8,8,0,0,1,0-16H98.23L140.9,64H112a8,8,0,0,1,0-16h80A8,8,0,0,1,200,56Z" }))
|
|
147
|
+
],
|
|
148
|
+
[
|
|
149
|
+
"thin",
|
|
150
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M196,56a4,4,0,0,1-4,4H154.88L109.55,196H144a4,4,0,0,1,0,8H64a4,4,0,0,1,0-8h37.12L146.45,60H112a4,4,0,0,1,0-8h80A4,4,0,0,1,196,56Z" }))
|
|
151
|
+
]
|
|
152
|
+
]), h = a.forwardRef((e, t) => /* @__PURE__ */ a.createElement(r, { ref: t, ...e, weights: g }));
|
|
153
|
+
h.displayName = "TextItalicIcon";
|
|
154
|
+
const V = /* @__PURE__ */ new Map([
|
|
155
|
+
[
|
|
156
|
+
"bold",
|
|
157
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M228,128a12,12,0,0,1-12,12H185.86A41.48,41.48,0,0,1,196,168c0,14.45-7.81,28.32-21.43,38.05C162,215.05,145.44,220,128,220s-34-4.95-46.57-13.95C67.81,196.32,60,182.45,60,168a12,12,0,0,1,24,0c0,15.18,20.15,28,44,28s44-12.82,44-28c0-12.76-9.3-20.18-35.35-28H40a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128ZM75.11,100a12,12,0,0,0,12-12c0-16,17.58-28,40.89-28,17.36,0,31.37,6.65,37.48,17.78a12,12,0,0,0,21-11.56C176.13,47.3,154.25,36,128,36,91,36,63.11,58.35,63.11,88A12,12,0,0,0,75.11,100Z" }))
|
|
158
|
+
],
|
|
159
|
+
[
|
|
160
|
+
"duotone",
|
|
161
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(
|
|
162
|
+
"path",
|
|
163
|
+
{
|
|
164
|
+
d: "M176,72l-55.31,51.05c-24-6.7-45.58-14.26-45.58-35,0-22.09,22-40,52.89-40C151.2,48,168.37,57.64,176,72Zm-55.31,51.05L72,168c0,22.09,25.07,40,56,40s56-17.91,56-40C184,138.43,150.52,131.4,120.69,123.05Z",
|
|
165
|
+
opacity: "0.2"
|
|
166
|
+
}
|
|
167
|
+
), /* @__PURE__ */ a.createElement("path", { d: "M224,128a8,8,0,0,1-8,8H175.93c9.19,7.11,16.07,17.2,16.07,32,0,13.34-7,25.7-19.75,34.79C160.33,211.31,144.61,216,128,216s-32.33-4.69-44.25-13.21C71,193.7,64,181.34,64,168a8,8,0,0,1,16,0c0,17.35,22,32,48,32s48-14.65,48-32c0-14.85-10.54-23.58-38.77-32H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM76.33,104a8,8,0,0,0,7.61-10.49A17.3,17.3,0,0,1,83.11,88c0-18.24,19.3-32,44.89-32,18.84,0,34.16,7.42,41,19.85a8,8,0,0,0,14-7.7C173.33,50.52,152.77,40,128,40,93.29,40,67.11,60.63,67.11,88a33.73,33.73,0,0,0,1.62,10.49A8,8,0,0,0,76.33,104Z" }))
|
|
168
|
+
],
|
|
169
|
+
[
|
|
170
|
+
"fill",
|
|
171
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM82.71,94.58C86,76.57,104.58,64,128,64c18.2,0,33.59,7.41,41.18,19.83a8,8,0,1,1-13.66,8.34C150.94,84.66,140.39,80,128,80c-15.3,0-27.73,7.33-29.55,17.42A8,8,0,0,1,90.59,104a7.76,7.76,0,0,1-1.43-.13A8,8,0,0,1,82.71,94.58ZM192,136H168.29A28.45,28.45,0,0,1,176,156c0,20.19-21.08,36-48,36-23.89,0-43.83-12.78-47.43-30.4a8,8,0,1,1,15.67-3.2c2,9.87,16,17.6,31.76,17.6,17.35,0,32-9.16,32-20,0-9.14-6.76-14.43-25.72-20H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Z" }))
|
|
172
|
+
],
|
|
173
|
+
[
|
|
174
|
+
"light",
|
|
175
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M222,128a6,6,0,0,1-6,6H169.45c11.28,6.92,20.55,17.38,20.55,34,0,25.36-27.81,46-62,46s-62-20.64-62-46a6,6,0,0,1,12,0c0,18.75,22.43,34,50,34s50-15.25,50-34c0-18.23-15.46-26.59-40.47-34H40a6,6,0,0,1,0-12H216A6,6,0,0,1,222,128ZM76.33,102a6.2,6.2,0,0,0,1.88-.3A6,6,0,0,0,82,94.13,19.74,19.74,0,0,1,81.11,88c0-19.38,20.16-34,46.89-34,19.58,0,35.56,7.81,42.74,20.89a6,6,0,0,0,10.52-5.78C171.94,52.13,152,42,128,42,94.43,42,69.11,61.77,69.11,88a31.62,31.62,0,0,0,1.52,9.87A6,6,0,0,0,76.33,102Z" }))
|
|
176
|
+
],
|
|
177
|
+
[
|
|
178
|
+
"regular",
|
|
179
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M224,128a8,8,0,0,1-8,8H175.93c9.19,7.11,16.07,17.2,16.07,32,0,13.34-7,25.7-19.75,34.79C160.33,211.31,144.61,216,128,216s-32.33-4.69-44.25-13.21C71,193.7,64,181.34,64,168a8,8,0,0,1,16,0c0,17.35,22,32,48,32s48-14.65,48-32c0-14.85-10.54-23.58-38.77-32H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM76.33,104a8,8,0,0,0,7.61-10.49A17.3,17.3,0,0,1,83.11,88c0-18.24,19.3-32,44.89-32,18.84,0,34.16,7.42,41,19.85a8,8,0,0,0,14-7.7C173.33,50.52,152.77,40,128,40,93.29,40,67.11,60.63,67.11,88a33.73,33.73,0,0,0,1.62,10.49A8,8,0,0,0,76.33,104Z" }))
|
|
180
|
+
],
|
|
181
|
+
[
|
|
182
|
+
"thin",
|
|
183
|
+
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M220,128a4,4,0,0,1-4,4H161.16c15.45,7.24,26.84,17.8,26.84,36,0,24.26-26.92,44-60,44s-60-19.74-60-44a4,4,0,0,1,8,0c0,19.85,23.33,36,52,36s52-16.15,52-36c0-19.54-16.13-28.3-42.18-36H40a4,4,0,0,1,0-8H216A4,4,0,0,1,220,128ZM76.33,100a3.85,3.85,0,0,0,1.25-.2,4,4,0,0,0,2.55-5,21.9,21.9,0,0,1-1-6.75c0-20.52,21-36,48.89-36,20.32,0,37,8.2,44.49,21.92a4,4,0,0,0,7-3.85C170.54,53.75,151.29,44,128,44,95.57,44,71.11,62.92,71.11,88a29.76,29.76,0,0,0,1.42,9.25A4,4,0,0,0,76.33,100Z" }))
|
|
184
|
+
]
|
|
185
|
+
]), i = a.forwardRef((e, t) => /* @__PURE__ */ a.createElement(r, { ref: t, ...e, weights: V }));
|
|
186
|
+
i.displayName = "TextStrikethroughIcon";
|
|
187
|
+
const y = n({
|
|
188
|
+
toolbar: {
|
|
189
|
+
icon: /* @__PURE__ */ l(d, {}),
|
|
190
|
+
label: "Bold"
|
|
191
|
+
},
|
|
192
|
+
hotkey: {
|
|
193
|
+
ctrl: !0,
|
|
194
|
+
key: "B"
|
|
195
|
+
},
|
|
196
|
+
markup: {
|
|
197
|
+
find: /\*\*(?<text>[\w\s\d,.]+)\*\*/,
|
|
198
|
+
wrap: (e, { text: t }) => /* @__PURE__ */ l("strong", { children: t })
|
|
199
|
+
}
|
|
200
|
+
}), v = n({
|
|
201
|
+
toolbar: {
|
|
202
|
+
icon: /* @__PURE__ */ l(h, {}),
|
|
203
|
+
label: "Italic"
|
|
204
|
+
},
|
|
205
|
+
hotkey: {
|
|
206
|
+
ctrl: !0,
|
|
207
|
+
key: "I"
|
|
208
|
+
},
|
|
209
|
+
markup: {
|
|
210
|
+
find: /\*(?<text>[\w\s\d,.]+)\*/,
|
|
211
|
+
wrap: (e, { text: t }) => /* @__PURE__ */ l("em", { children: t })
|
|
212
|
+
}
|
|
213
|
+
}), x = n({
|
|
214
|
+
toolbar: {
|
|
215
|
+
icon: /* @__PURE__ */ l(i, {}),
|
|
216
|
+
label: "Strikethrough"
|
|
217
|
+
},
|
|
218
|
+
hotkey: {
|
|
219
|
+
ctrl: !0,
|
|
220
|
+
key: "D"
|
|
221
|
+
},
|
|
222
|
+
markup: {
|
|
223
|
+
find: /~~(?<text>[\w\s\d,.]+)~~/,
|
|
224
|
+
wrap: (e, { text: t }) => /* @__PURE__ */ l("s", { children: t })
|
|
225
|
+
}
|
|
226
|
+
}), C = n({
|
|
227
|
+
toolbar: {
|
|
228
|
+
icon: /* @__PURE__ */ l(h, {}),
|
|
229
|
+
label: "Link"
|
|
230
|
+
},
|
|
231
|
+
typeahead: {
|
|
232
|
+
getSuggestions: (e) => []
|
|
233
|
+
},
|
|
234
|
+
markup: {
|
|
235
|
+
find: /\((?<label>[\w]+)\)\[(?<url>[\w:\\\/\.]+)\]/,
|
|
236
|
+
wrap: (e, { label: t, url: m }) => /* @__PURE__ */ l("a", { href: t, children: m })
|
|
237
|
+
}
|
|
238
|
+
}), f = (e) => ({
|
|
239
|
+
1: "h1",
|
|
240
|
+
2: "h2",
|
|
241
|
+
3: "h3",
|
|
242
|
+
4: "h4",
|
|
243
|
+
5: "h5",
|
|
244
|
+
6: "h6"
|
|
245
|
+
})[e], N = n({
|
|
246
|
+
toolbar: {
|
|
247
|
+
icon: /* @__PURE__ */ l(A, {}),
|
|
248
|
+
label: "Heading"
|
|
249
|
+
},
|
|
250
|
+
markup: {
|
|
251
|
+
find: /(?<level>#{1,6})\s(?<text>[\w])+/,
|
|
252
|
+
wrap: (e, { text: t, level: m }) => {
|
|
253
|
+
const p = f(m.length) || "h2";
|
|
254
|
+
return /* @__PURE__ */ l(p, { children: t });
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}), _ = n({
|
|
258
|
+
toolbar: {
|
|
259
|
+
icon: /* @__PURE__ */ l(o, {}),
|
|
260
|
+
label: "Numbered List"
|
|
261
|
+
},
|
|
262
|
+
markup: {
|
|
263
|
+
find: /\d\.\s(?<text>[\w]+)/,
|
|
264
|
+
wrap: (e, { text: t }) => /* @__PURE__ */ l("ol", { children: /* @__PURE__ */ l("li", { children: t }) })
|
|
265
|
+
}
|
|
266
|
+
}), I = n({
|
|
267
|
+
toolbar: {
|
|
268
|
+
icon: /* @__PURE__ */ l(Z, {}),
|
|
269
|
+
label: "Bullet List"
|
|
270
|
+
},
|
|
271
|
+
markup: {
|
|
272
|
+
find: /-\s(?<text>[\w]+)/,
|
|
273
|
+
wrap: (e, { text: t }) => /* @__PURE__ */ l("ul", { children: /* @__PURE__ */ l("li", { children: t }) })
|
|
274
|
+
}
|
|
275
|
+
}), $ = n({
|
|
276
|
+
markup: {
|
|
277
|
+
find: /\[(?<done>x|X|s){,1}\](?<text>[w]+)/,
|
|
278
|
+
wrap: (e, { done: t, text: m }) => /* @__PURE__ */ c("span", { className: "md-task", children: [
|
|
279
|
+
/* @__PURE__ */ l(H, { children: "Task: " }),
|
|
280
|
+
/* @__PURE__ */ l("span", { role: "checkbox", "aria-checked": t ? "true" : "false" }),
|
|
281
|
+
m
|
|
282
|
+
] })
|
|
283
|
+
}
|
|
284
|
+
}), R = n({
|
|
285
|
+
markup: {
|
|
286
|
+
find: /@(?<name>[\w]+)/,
|
|
287
|
+
wrap: (e) => /* @__PURE__ */ c("span", { className: "md-user", children: [
|
|
288
|
+
/* @__PURE__ */ l(H, { children: "User: " }),
|
|
289
|
+
e
|
|
290
|
+
] })
|
|
291
|
+
},
|
|
292
|
+
typeahead: {
|
|
293
|
+
getSuggestions: (e) => []
|
|
294
|
+
}
|
|
295
|
+
}), T = n({
|
|
296
|
+
markup: {
|
|
297
|
+
find: /#(?<tag>[\w]+)/,
|
|
298
|
+
wrap: (e) => /* @__PURE__ */ c("span", { className: "md-tag", children: [
|
|
299
|
+
/* @__PURE__ */ l(H, { children: "Tag: " }),
|
|
300
|
+
e
|
|
301
|
+
] })
|
|
302
|
+
},
|
|
303
|
+
typeahead: {
|
|
304
|
+
getSuggestions: (e) => []
|
|
305
|
+
}
|
|
306
|
+
});
|
|
307
|
+
export {
|
|
308
|
+
C as anchor,
|
|
309
|
+
y as bold,
|
|
310
|
+
R as callout,
|
|
311
|
+
N as heading,
|
|
312
|
+
v as italic,
|
|
313
|
+
_ as orderedList,
|
|
314
|
+
x as strikethrough,
|
|
315
|
+
$ as task,
|
|
316
|
+
T as topic,
|
|
317
|
+
I as unorderedList
|
|
318
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type ToolbarOpts = {
|
|
3
|
+
icon: ReactNode;
|
|
4
|
+
label: string;
|
|
5
|
+
};
|
|
6
|
+
export type Hotkey = {
|
|
7
|
+
ctrl?: true;
|
|
8
|
+
shift?: true;
|
|
9
|
+
alt?: true;
|
|
10
|
+
key: string;
|
|
11
|
+
};
|
|
12
|
+
export type Typeahead = {
|
|
13
|
+
getSuggestions: (contents: string) => string[];
|
|
14
|
+
};
|
|
15
|
+
export type Markup = {
|
|
16
|
+
find: RegExp;
|
|
17
|
+
wrap: (contents: string, groups: {
|
|
18
|
+
[key: string]: string;
|
|
19
|
+
}) => ReactNode;
|
|
20
|
+
};
|
|
21
|
+
export type Format = {
|
|
22
|
+
markup: Markup;
|
|
23
|
+
toolbar?: ToolbarOpts;
|
|
24
|
+
hotkey?: Hotkey;
|
|
25
|
+
typeahead?: Typeahead;
|
|
26
|
+
};
|
|
27
|
+
export declare const createFormat: (format: Format) => Format;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as a, jsxs as m } from "react/jsx-runtime";
|
|
2
2
|
import { cn as E } from "../../utils/css.js";
|
|
3
|
-
import { M as V, a as C, b as R, c as z } from "../../item-
|
|
4
|
-
import { a as H } from "../../VIIRIBF3-
|
|
5
|
-
import {
|
|
6
|
-
import { u as
|
|
3
|
+
import { M as V, a as C, b as R, c as z } from "../../item-C0kyELlf.js";
|
|
4
|
+
import { a as H } from "../../VIIRIBF3-B585VK9r.js";
|
|
5
|
+
import { d as P, _, q as I, i as O, r as j, j as L, k as f, s as T, t as U, v as B, w as D, m as q, f as k, e as x } from "../../P7GR5CS5-DNbthaqU.js";
|
|
6
|
+
import { u as y } from "../../UQQRIHDV-CFdrMoqW.js";
|
|
7
7
|
import { useMemo as w, useState as Z } from "react";
|
|
8
|
-
import '../../assets/
|
|
8
|
+
import '../../assets/index10.css';var g = "M23 27.8C24.1 29 26.4 30 28 30H30H0H2C3.7 30 5.9 29 7 27.8L14 20.6C14.7 19.8 15.3 19.8 16 20.6L23 27.8Z", F = "div", h = 30, s = h / 2, G = {
|
|
9
9
|
top: `rotate(180 ${s} ${s})`,
|
|
10
10
|
right: `rotate(-90 ${s} ${s})`,
|
|
11
11
|
bottom: `rotate(0 ${s} ${s})`,
|
|
12
12
|
left: `rotate(90 ${s} ${s})`
|
|
13
13
|
};
|
|
14
14
|
function J(o) {
|
|
15
|
-
const [r, t] = Z(), e =
|
|
15
|
+
const [r, t] = Z(), e = y(o, "contentElement");
|
|
16
16
|
return B(() => {
|
|
17
17
|
if (!e) return;
|
|
18
18
|
const u = D(e).getComputedStyle(e);
|
|
@@ -39,7 +39,7 @@ var M = P(
|
|
|
39
39
|
e,
|
|
40
40
|
process.env.NODE_ENV !== "production" && "PopoverArrow must be wrapped in a Popover component."
|
|
41
41
|
);
|
|
42
|
-
const d =
|
|
42
|
+
const d = y(
|
|
43
43
|
e,
|
|
44
44
|
(p) => p.currentPlacement.split("-")[0]
|
|
45
45
|
), l = j(), n = J(e), S = (n == null ? void 0 : n.getPropertyValue("background-color")) || "none", W = (n == null ? void 0 : n.getPropertyValue(`border-${d}-color`)) || "none", A = w(() => {
|
|
@@ -86,9 +86,9 @@ var M = P(
|
|
|
86
86
|
}
|
|
87
87
|
);
|
|
88
88
|
q(
|
|
89
|
-
|
|
89
|
+
k(function(r) {
|
|
90
90
|
const t = M(r);
|
|
91
|
-
return
|
|
91
|
+
return x(F, t);
|
|
92
92
|
})
|
|
93
93
|
);
|
|
94
94
|
var Q = "div", X = P(
|
|
@@ -97,9 +97,9 @@ var Q = "div", X = P(
|
|
|
97
97
|
const u = H();
|
|
98
98
|
return e = e || u, M(f({ store: e }, i));
|
|
99
99
|
}
|
|
100
|
-
), Y =
|
|
100
|
+
), Y = k(function(r) {
|
|
101
101
|
const t = X(r);
|
|
102
|
-
return
|
|
102
|
+
return x(Q, t);
|
|
103
103
|
});
|
|
104
104
|
const ue = ({ className: o, items: r, children: t }) => /* @__PURE__ */ m(V, { children: [
|
|
105
105
|
/* @__PURE__ */ a(C, { className: E("component-menu__button", o), children: t }),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { EmptyIcon as c } from "../icon.js";
|
|
3
|
-
import { M as t } from "../../../2NBKRL7C-
|
|
3
|
+
import { M as t } from "../../../2NBKRL7C-C6mXReCE.js";
|
|
4
4
|
const l = ({ item: n }) => {
|
|
5
5
|
const m = n.icon || c;
|
|
6
6
|
return /* @__PURE__ */ o(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
-
import { a as l } from "../../../VIIRIBF3-
|
|
3
|
-
import {
|
|
4
|
-
var
|
|
2
|
+
import { a as l } from "../../../VIIRIBF3-B585VK9r.js";
|
|
3
|
+
import { d as s, _ as p, k as i, f as u, e as m, p as h, i as C, j as d } from "../../../P7GR5CS5-DNbthaqU.js";
|
|
4
|
+
var x = "hr", c = s(
|
|
5
5
|
function(o) {
|
|
6
6
|
var r = o, { orientation: e = "horizontal" } = r, t = p(r, ["orientation"]);
|
|
7
7
|
return t = i({
|
|
@@ -12,9 +12,9 @@ var d = "hr", c = s(
|
|
|
12
12
|
);
|
|
13
13
|
u(function(o) {
|
|
14
14
|
const r = c(o);
|
|
15
|
-
return m(
|
|
15
|
+
return m(x, r);
|
|
16
16
|
});
|
|
17
|
-
var
|
|
17
|
+
var M = "hr", v = s(function(o) {
|
|
18
18
|
var r = o, { store: e } = r, t = p(r, ["store"]);
|
|
19
19
|
const n = h();
|
|
20
20
|
e = e || n, C(
|
|
@@ -24,21 +24,21 @@ var x = "hr", v = s(function(o) {
|
|
|
24
24
|
const S = e.useState(
|
|
25
25
|
(_) => _.orientation === "horizontal" ? "vertical" : "horizontal"
|
|
26
26
|
);
|
|
27
|
-
return t = c(
|
|
27
|
+
return t = c(d(i({}, t), { orientation: S })), t;
|
|
28
28
|
});
|
|
29
29
|
u(function(o) {
|
|
30
30
|
const r = v(o);
|
|
31
|
-
return m(
|
|
31
|
+
return m(M, r);
|
|
32
32
|
});
|
|
33
|
-
var
|
|
33
|
+
var N = "hr", b = s(
|
|
34
34
|
function(o) {
|
|
35
35
|
var r = o, { store: e } = r, t = p(r, ["store"]);
|
|
36
36
|
const n = l();
|
|
37
37
|
return e = e || n, t = v(i({ store: e }, t)), t;
|
|
38
38
|
}
|
|
39
39
|
), P = u(function(o) {
|
|
40
|
-
const r =
|
|
41
|
-
return m(
|
|
40
|
+
const r = b(o);
|
|
41
|
+
return m(N, r);
|
|
42
42
|
});
|
|
43
43
|
const E = () => /* @__PURE__ */ f(P, { className: "component-menu__separator" });
|
|
44
44
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import { S as p } from "../../../item-
|
|
2
|
+
import { S as p } from "../../../item-C0kyELlf.js";
|
|
3
3
|
import "../icon.js";
|
|
4
|
-
import "../../../2NBKRL7C-
|
|
4
|
+
import "../../../2NBKRL7C-C6mXReCE.js";
|
|
5
5
|
export {
|
|
6
6
|
p as SubmenuMenuItem
|
|
7
7
|
};
|
|
@@ -3,7 +3,7 @@ import { cn as d } from "../../../utils/css.js";
|
|
|
3
3
|
import * as e from "react";
|
|
4
4
|
import { w as H } from "../../../SSRBase.es-BUXS72ra.js";
|
|
5
5
|
import { EmptyIcon as h } from "../icon.js";
|
|
6
|
-
import { M as i } from "../../../2NBKRL7C-
|
|
6
|
+
import { M as i } from "../../../2NBKRL7C-C6mXReCE.js";
|
|
7
7
|
const s = /* @__PURE__ */ new Map([
|
|
8
8
|
[
|
|
9
9
|
"bold",
|
|
@@ -1,28 +1,30 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { cn as
|
|
3
|
-
import '../../assets/
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import { cn as m } from "../../utils/css.js";
|
|
3
|
+
import '../../assets/index8.css';const g = ({
|
|
4
4
|
className: s,
|
|
5
|
+
style: e,
|
|
5
6
|
steps: r = 0,
|
|
6
|
-
max:
|
|
7
|
+
max: t = 1,
|
|
7
8
|
value: o = void 0,
|
|
8
|
-
...
|
|
9
|
-
}) => /* @__PURE__ */
|
|
9
|
+
...n
|
|
10
|
+
}) => /* @__PURE__ */ p(
|
|
10
11
|
"progress",
|
|
11
12
|
{
|
|
12
|
-
className:
|
|
13
|
+
className: m(
|
|
13
14
|
"component-progress",
|
|
14
15
|
r > 0 && "component-progress--with-steps",
|
|
15
16
|
s
|
|
16
17
|
),
|
|
17
18
|
style: {
|
|
18
|
-
"--component-progress__steps": r
|
|
19
|
+
"--component-progress__steps": r,
|
|
20
|
+
...e
|
|
19
21
|
},
|
|
20
|
-
max:
|
|
22
|
+
max: t,
|
|
21
23
|
value: o,
|
|
22
|
-
...
|
|
24
|
+
...n,
|
|
23
25
|
children: o !== void 0 ? o + "%" : "Indeterminate"
|
|
24
26
|
}
|
|
25
27
|
);
|
|
26
28
|
export {
|
|
27
|
-
|
|
29
|
+
g as Progress
|
|
28
30
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,31 +1,37 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { Breadcrumbs as e } from "./components/breadcrumbs/index.js";
|
|
2
|
+
import { Button as m } from "./components/button/index.js";
|
|
3
|
+
import { BaseControl as p } from "./components/controls/base-control/index.js";
|
|
4
|
+
import { ChoiceControl as a } from "./components/controls/choice-control/index.js";
|
|
5
|
+
import { NumberControl as n } from "./components/controls/number-control/index.js";
|
|
6
|
+
import { SelectControl as b } from "./components/controls/select-control/index.js";
|
|
7
|
+
import { TextControl as g } from "./components/controls/text-control/index.js";
|
|
8
|
+
import { TextareaControl as T } from "./components/controls/textarea-control/index.js";
|
|
8
9
|
import { ToggleControl as i } from "./components/controls/toggle-control/index.js";
|
|
9
|
-
import { DataTable as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
10
|
+
import { DataTable as B, ExampleDataTable as D } from "./components/data-table/index.js";
|
|
11
|
+
import { Form as h } from "./components/form/components/index.js";
|
|
12
|
+
import { createForm as z } from "./components/form/types/form.js";
|
|
13
|
+
import { Menu as H } from "./components/menu/index.js";
|
|
14
|
+
import { Progress as N } from "./components/progress/index.js";
|
|
15
|
+
import { Draggable as R } from "./primitives/draggable/index.js";
|
|
16
|
+
import { Resizable as V } from "./primitives/resizable/index.js";
|
|
17
|
+
import { VisuallyHidden as k } from "./primitives/visually-hidden/index.js";
|
|
15
18
|
export {
|
|
16
|
-
|
|
17
|
-
e as
|
|
18
|
-
m as
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
19
|
+
p as BaseControl,
|
|
20
|
+
e as Breadcrumbs,
|
|
21
|
+
m as Button,
|
|
22
|
+
a as ChoiceControl,
|
|
23
|
+
B as DataTable,
|
|
24
|
+
R as Draggable,
|
|
25
|
+
D as ExampleDataTable,
|
|
26
|
+
h as Form,
|
|
27
|
+
H as Menu,
|
|
28
|
+
n as NumberControl,
|
|
29
|
+
N as Progress,
|
|
30
|
+
V as Resizable,
|
|
31
|
+
b as SelectControl,
|
|
32
|
+
g as TextControl,
|
|
33
|
+
T as TextareaControl,
|
|
29
34
|
i as ToggleControl,
|
|
30
|
-
|
|
35
|
+
k as VisuallyHidden,
|
|
36
|
+
z as createForm
|
|
31
37
|
};
|