@blockbite/ui 2.0.2 → 2.0.4
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/AutocompleteDropdown.js +22 -22
- package/dist/Badge.js +1 -1
- package/dist/BitePreview.js +1 -1
- package/dist/Button.d.ts +3 -3
- package/dist/Button.js +5 -5
- package/dist/ButtonToggle.d.ts +6 -6
- package/dist/ButtonToggle.js +10 -10
- package/dist/Chapter.js +7 -7
- package/dist/ChapterDivider.js +1 -1
- package/dist/Checkbox.js +8 -8
- package/dist/DisappearingMessage.js +1 -1
- package/dist/DropdownPicker.js +3 -3
- package/dist/EmptyState.js +1 -1
- package/dist/FloatingPanel.js +1 -1
- package/dist/FocalPointControl.js +7 -7
- package/dist/Icon.js +1 -1
- package/dist/LinkPicker.js +2 -2
- package/dist/MediaPicker.js +1 -1
- package/dist/MetricsControl.d.ts +1 -1
- package/dist/MetricsControl.js +40 -41
- package/dist/Modal.js +1 -1
- package/dist/Notice.d.ts +1 -1
- package/dist/Notice.js +9 -9
- package/dist/PasswordInput.js +1 -1
- package/dist/Popover.js +2 -2
- package/dist/RangeSlider.js +5 -5
- package/dist/ResponsiveImage.js +1 -1
- package/dist/ResponsiveVideo.js +1 -1
- package/dist/ScrollList.d.ts +1 -1
- package/dist/ScrollList.js +5 -5
- package/dist/SectionList.js +25 -25
- package/dist/SelectControlWrapper.js +1 -1
- package/dist/SingleBlockTypeAppender.js +1 -1
- package/dist/SlideIn.js +8 -8
- package/dist/Spinner.js +1 -1
- package/dist/Tabs.js +6 -6
- package/dist/Tag.js +1 -1
- package/dist/TextControl.js +5 -5
- package/dist/TextControlLabel.js +6 -6
- package/dist/ToggleGroup.d.ts +3 -3
- package/dist/ToggleGroup.js +7 -7
- package/dist/ToggleSwitch.js +9 -9
- package/dist/Wrap.js +1 -1
- package/dist/node_modules/{react → .pnpm/react@18.2.0/node_modules/react}/cjs/react-jsx-runtime.development.js +204 -219
- package/dist/node_modules/{react → .pnpm/react@18.2.0/node_modules/react}/cjs/react-jsx-runtime.production.min.js +1 -1
- package/dist/node_modules/{react → .pnpm/react@18.2.0/node_modules/react}/jsx-runtime.js +1 -1
- package/dist/packages/icons/jsx/ChevronDown.js +23 -0
- package/dist/packages/icons/jsx/ColumnSpacing.js +25 -0
- package/dist/packages/icons/jsx/Cross2.js +23 -0
- package/dist/packages/icons/jsx/Desktop.js +25 -0
- package/dist/packages/icons/jsx/Grid.js +25 -0
- package/dist/packages/icons/jsx/Pencil1.js +25 -0
- package/dist/packages/icons/jsx/Percentage.js +28 -0
- package/dist/packages/icons/jsx/Plus.js +23 -0
- package/dist/packages/icons/jsx/Slider.js +25 -0
- package/dist/packages/icons/jsx/Tailwind.js +23 -0
- package/dist/packages/icons/jsx/Trash.js +25 -0
- package/package.json +24 -26
- package/dist/_virtual/ChevronDown.js +0 -4
- package/dist/_virtual/ColumnSpacing.js +0 -4
- package/dist/_virtual/Cross2.js +0 -4
- package/dist/_virtual/Desktop.js +0 -4
- package/dist/_virtual/Grid.js +0 -4
- package/dist/_virtual/Pencil1.js +0 -4
- package/dist/_virtual/Percentage.js +0 -4
- package/dist/_virtual/Plus.js +0 -4
- package/dist/_virtual/Slider.js +0 -4
- package/dist/_virtual/Tailwind.js +0 -4
- package/dist/_virtual/Trash.js +0 -4
- package/dist/_virtual/_commonjsHelpers.js +0 -8
- package/dist/node_modules/@blockbite/icons/dist/ChevronDown.js +0 -63
- package/dist/node_modules/@blockbite/icons/dist/ColumnSpacing.js +0 -65
- package/dist/node_modules/@blockbite/icons/dist/Cross2.js +0 -63
- package/dist/node_modules/@blockbite/icons/dist/Desktop.js +0 -65
- package/dist/node_modules/@blockbite/icons/dist/Grid.js +0 -65
- package/dist/node_modules/@blockbite/icons/dist/Pencil1.js +0 -65
- package/dist/node_modules/@blockbite/icons/dist/Percentage.js +0 -74
- package/dist/node_modules/@blockbite/icons/dist/Plus.js +0 -63
- package/dist/node_modules/@blockbite/icons/dist/Slider.js +0 -65
- package/dist/node_modules/@blockbite/icons/dist/Tailwind.js +0 -63
- package/dist/node_modules/@blockbite/icons/dist/Trash.js +0 -65
- package/dist/node_modules/lodash/_Hash.js +0 -22
- package/dist/node_modules/lodash/_ListCache.js +0 -22
- package/dist/node_modules/lodash/_Map.js +0 -6
- package/dist/node_modules/lodash/_MapCache.js +0 -22
- package/dist/node_modules/lodash/_Symbol.js +0 -5
- package/dist/node_modules/lodash/_arrayMap.js +0 -9
- package/dist/node_modules/lodash/_assocIndexOf.js +0 -12
- package/dist/node_modules/lodash/_baseGetTag.js +0 -11
- package/dist/node_modules/lodash/_baseHas.js +0 -8
- package/dist/node_modules/lodash/_baseIsArguments.js +0 -10
- package/dist/node_modules/lodash/_baseIsNative.js +0 -17
- package/dist/node_modules/lodash/_baseToString.js +0 -19
- package/dist/node_modules/lodash/_castPath.js +0 -12
- package/dist/node_modules/lodash/_coreJsData.js +0 -5
- package/dist/node_modules/lodash/_freeGlobal.js +0 -5
- package/dist/node_modules/lodash/_getMapData.js +0 -10
- package/dist/node_modules/lodash/_getNative.js +0 -11
- package/dist/node_modules/lodash/_getRawTag.js +0 -16
- package/dist/node_modules/lodash/_getValue.js +0 -7
- package/dist/node_modules/lodash/_hasPath.js +0 -21
- package/dist/node_modules/lodash/_hashClear.js +0 -9
- package/dist/node_modules/lodash/_hashDelete.js +0 -8
- package/dist/node_modules/lodash/_hashGet.js +0 -14
- package/dist/node_modules/lodash/_hashHas.js +0 -10
- package/dist/node_modules/lodash/_hashSet.js +0 -10
- package/dist/node_modules/lodash/_isIndex.js +0 -9
- package/dist/node_modules/lodash/_isKey.js +0 -13
- package/dist/node_modules/lodash/_isKeyable.js +0 -8
- package/dist/node_modules/lodash/_isMasked.js +0 -12
- package/dist/node_modules/lodash/_listCacheClear.js +0 -7
- package/dist/node_modules/lodash/_listCacheDelete.js +0 -13
- package/dist/node_modules/lodash/_listCacheGet.js +0 -10
- package/dist/node_modules/lodash/_listCacheHas.js +0 -9
- package/dist/node_modules/lodash/_listCacheSet.js +0 -10
- package/dist/node_modules/lodash/_mapCacheClear.js +0 -15
- package/dist/node_modules/lodash/_mapCacheDelete.js +0 -10
- package/dist/node_modules/lodash/_mapCacheGet.js +0 -9
- package/dist/node_modules/lodash/_mapCacheHas.js +0 -9
- package/dist/node_modules/lodash/_mapCacheSet.js +0 -10
- package/dist/node_modules/lodash/_memoizeCapped.js +0 -12
- package/dist/node_modules/lodash/_nativeCreate.js +0 -5
- package/dist/node_modules/lodash/_objectToString.js +0 -8
- package/dist/node_modules/lodash/_root.js +0 -5
- package/dist/node_modules/lodash/_stringToPath.js +0 -10
- package/dist/node_modules/lodash/_toKey.js +0 -12
- package/dist/node_modules/lodash/_toSource.js +0 -18
- package/dist/node_modules/lodash/eq.js +0 -7
- package/dist/node_modules/lodash/has.js +0 -12
- package/dist/node_modules/lodash/isArguments.js +0 -10
- package/dist/node_modules/lodash/isArray.js +0 -4
- package/dist/node_modules/lodash/isFunction.js +0 -13
- package/dist/node_modules/lodash/isLength.js +0 -8
- package/dist/node_modules/lodash/isObject.js +0 -8
- package/dist/node_modules/lodash/isObjectLike.js +0 -7
- package/dist/node_modules/lodash/isSymbol.js +0 -10
- package/dist/node_modules/lodash/memoize.js +0 -19
- package/dist/node_modules/lodash/toString.js +0 -9
package/dist/RangeSlider.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as a } from "./node_modules/react/jsx-runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { j as a } from "./node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js";
|
|
2
|
+
import { useState as r, useEffect as h } from "@wordpress/element";
|
|
3
|
+
import { Wrap as j } from "./Wrap.js";
|
|
4
4
|
import { RangeControl as C } from "@wordpress/components";
|
|
5
5
|
const $ = ({
|
|
6
6
|
defaultValue: t,
|
|
@@ -14,14 +14,14 @@ const $ = ({
|
|
|
14
14
|
...x
|
|
15
15
|
}) => {
|
|
16
16
|
const [i] = r(0), [s, o] = r(0);
|
|
17
|
-
|
|
17
|
+
h(() => {
|
|
18
18
|
o(Math.round(parseInt(t) / (n ? 16 : 1)));
|
|
19
19
|
}, [t]);
|
|
20
20
|
function g(e) {
|
|
21
21
|
const R = e * (n ? 16 : 1);
|
|
22
22
|
m(R.toString());
|
|
23
23
|
}
|
|
24
|
-
return /* @__PURE__ */ a.jsxs(
|
|
24
|
+
return /* @__PURE__ */ a.jsxs(j, { className: "flex min-w-[240px] flex-col", children: [
|
|
25
25
|
/* @__PURE__ */ a.jsx(
|
|
26
26
|
C,
|
|
27
27
|
{
|
package/dist/ResponsiveImage.js
CHANGED
package/dist/ResponsiveVideo.js
CHANGED
package/dist/ScrollList.d.ts
CHANGED
package/dist/ScrollList.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { j as s } from "./node_modules/react/jsx-runtime.js";
|
|
2
|
-
import
|
|
3
|
-
import a from "
|
|
1
|
+
import { j as s } from "./node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js";
|
|
2
|
+
import m from "classnames";
|
|
3
|
+
import { Wrap as a } from "./Wrap.js";
|
|
4
4
|
const x = ({
|
|
5
5
|
children: l,
|
|
6
6
|
className: o = "",
|
|
7
7
|
height: r = "large"
|
|
8
8
|
}) => /* @__PURE__ */ s.jsx(
|
|
9
|
-
|
|
9
|
+
a,
|
|
10
10
|
{
|
|
11
|
-
className:
|
|
11
|
+
className: m("scrollbar relative overflow-y-scroll", o, {
|
|
12
12
|
"h-[400px]": r === "large",
|
|
13
13
|
"h-[300px]": r === "medium",
|
|
14
14
|
"h-[200px]": r === "small"
|
package/dist/SectionList.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { j as t } from "./node_modules/react/jsx-runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
import { Button as u } from "@wordpress/components";
|
|
1
|
+
import { j as t } from "./node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js";
|
|
2
|
+
import { Button as c } from "@wordpress/components";
|
|
4
3
|
import { useState as w, useRef as v } from "@wordpress/element";
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import R from "./
|
|
8
|
-
import k from "./
|
|
4
|
+
import { Wrap as u } from "./Wrap.js";
|
|
5
|
+
import C from "classnames";
|
|
6
|
+
import { TextControl as R } from "./TextControl.js";
|
|
7
|
+
import k from "./packages/icons/jsx/Plus.js";
|
|
8
|
+
import _ from "./packages/icons/jsx/Trash.js";
|
|
9
9
|
const E = ({
|
|
10
|
-
sections:
|
|
10
|
+
sections: a,
|
|
11
11
|
setSections: o,
|
|
12
|
-
activeSection:
|
|
12
|
+
activeSection: n,
|
|
13
13
|
setActiveSection: m,
|
|
14
14
|
Update: x,
|
|
15
15
|
newSection: s,
|
|
@@ -21,15 +21,15 @@ const E = ({
|
|
|
21
21
|
name: ""
|
|
22
22
|
}), h = v(null), j = () => {
|
|
23
23
|
const e = { ...s() };
|
|
24
|
-
o([...
|
|
24
|
+
o([...a, e]);
|
|
25
25
|
}, b = () => {
|
|
26
|
-
if (!
|
|
27
|
-
const e =
|
|
28
|
-
(r) => r.id !==
|
|
26
|
+
if (!n || a.length === 0) return;
|
|
27
|
+
const e = a.filter(
|
|
28
|
+
(r) => r.id !== n
|
|
29
29
|
);
|
|
30
30
|
let l = null;
|
|
31
31
|
if (e.length > 0) {
|
|
32
|
-
const r =
|
|
32
|
+
const r = a.findIndex((g) => g.id === n), N = Math.min(r, e.length - 1);
|
|
33
33
|
l = e[N]?.id || e[0]?.id;
|
|
34
34
|
} else {
|
|
35
35
|
const r = { ...s() };
|
|
@@ -46,10 +46,10 @@ const E = ({
|
|
|
46
46
|
name: ""
|
|
47
47
|
});
|
|
48
48
|
};
|
|
49
|
-
return /* @__PURE__ */ t.jsxs(
|
|
49
|
+
return /* @__PURE__ */ t.jsxs(u, { important: !0, className: "w-[200px] border-r", children: [
|
|
50
50
|
/* @__PURE__ */ t.jsxs("ul", { className: "h-[calc(100%-80px)] divide-y overflow-auto", children: [
|
|
51
51
|
p,
|
|
52
|
-
/* @__PURE__ */ t.jsx("li", { children: /* @__PURE__ */ t.jsx("ul", { className: "divide-y border-b", children:
|
|
52
|
+
/* @__PURE__ */ t.jsx("li", { children: /* @__PURE__ */ t.jsx("ul", { className: "divide-y border-b", children: a.map((e, l) => /* @__PURE__ */ t.jsxs(
|
|
53
53
|
"li",
|
|
54
54
|
{
|
|
55
55
|
className: "relative m-0",
|
|
@@ -57,14 +57,14 @@ const E = ({
|
|
|
57
57
|
/* @__PURE__ */ t.jsx(
|
|
58
58
|
"button",
|
|
59
59
|
{
|
|
60
|
-
className:
|
|
60
|
+
className: C(
|
|
61
61
|
"text-gray-medium w-full truncate bg-opacity-50 px-3 py-2 text-left text-sm/6 font-semibold hover:bg-easy hover:text-wordpress",
|
|
62
62
|
{
|
|
63
|
-
"bg-easy": e.id ===
|
|
63
|
+
"bg-easy": e.id === n
|
|
64
64
|
}
|
|
65
65
|
),
|
|
66
66
|
onClick: () => {
|
|
67
|
-
m(e.id), x(
|
|
67
|
+
m(e.id), x(n, e.id);
|
|
68
68
|
},
|
|
69
69
|
onDoubleClick: () => {
|
|
70
70
|
d({
|
|
@@ -76,7 +76,7 @@ const E = ({
|
|
|
76
76
|
}
|
|
77
77
|
),
|
|
78
78
|
i.id === e.id && /* @__PURE__ */ t.jsx(
|
|
79
|
-
|
|
79
|
+
R,
|
|
80
80
|
{
|
|
81
81
|
className: "absolute left-0 top-0 h-full w-full",
|
|
82
82
|
defaultValue: i.name,
|
|
@@ -93,22 +93,22 @@ const E = ({
|
|
|
93
93
|
`section__${l}__${e?.id}`
|
|
94
94
|
)) }) })
|
|
95
95
|
] }),
|
|
96
|
-
/* @__PURE__ */ t.jsxs(
|
|
96
|
+
/* @__PURE__ */ t.jsxs(u, { className: "flex justify-center gap-2 p-2", children: [
|
|
97
97
|
/* @__PURE__ */ t.jsx(
|
|
98
|
-
|
|
98
|
+
c,
|
|
99
99
|
{
|
|
100
100
|
onClick: j,
|
|
101
|
-
icon: /* @__PURE__ */ t.jsx(
|
|
101
|
+
icon: /* @__PURE__ */ t.jsx(k, {}),
|
|
102
102
|
variant: "tertiary",
|
|
103
103
|
size: "compact",
|
|
104
104
|
children: "Add"
|
|
105
105
|
}
|
|
106
106
|
),
|
|
107
107
|
/* @__PURE__ */ t.jsx(
|
|
108
|
-
|
|
108
|
+
c,
|
|
109
109
|
{
|
|
110
110
|
onClick: b,
|
|
111
|
-
icon: /* @__PURE__ */ t.jsx(
|
|
111
|
+
icon: /* @__PURE__ */ t.jsx(_, {}),
|
|
112
112
|
variant: "tertiary",
|
|
113
113
|
size: "compact",
|
|
114
114
|
children: "Remove"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as t } from "./node_modules/react/jsx-runtime.js";
|
|
1
|
+
import { j as t } from "./node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js";
|
|
2
2
|
import { SelectControl as p } from "@wordpress/components";
|
|
3
3
|
import { useState as u, useEffect as m } from "@wordpress/element";
|
|
4
4
|
const j = ({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as s } from "./node_modules/react/jsx-runtime.js";
|
|
1
|
+
import { j as s } from "./node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js";
|
|
2
2
|
import { createBlock as i } from "@wordpress/blocks";
|
|
3
3
|
import { Button as a } from "@wordpress/components";
|
|
4
4
|
const { select: d, dispatch: k } = wp.data, u = ({
|
package/dist/SlideIn.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { j as a } from "./node_modules/react/jsx-runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import l from "
|
|
1
|
+
import { j as a } from "./node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js";
|
|
2
|
+
import { useState as i, useEffect as m } from "@wordpress/element";
|
|
3
|
+
import n from "classnames";
|
|
4
|
+
import { Wrap as l } from "./Wrap.js";
|
|
5
5
|
const c = ({ children: s, watch: e, className: r }) => {
|
|
6
|
-
const [t, o] =
|
|
7
|
-
return
|
|
6
|
+
const [t, o] = i(0);
|
|
7
|
+
return m(() => {
|
|
8
8
|
setTimeout(() => {
|
|
9
9
|
o(1);
|
|
10
10
|
}, 250);
|
|
11
11
|
}, [e]), /* @__PURE__ */ a.jsx(
|
|
12
|
-
|
|
12
|
+
l,
|
|
13
13
|
{
|
|
14
|
-
className:
|
|
14
|
+
className: n(
|
|
15
15
|
r,
|
|
16
16
|
"duration-50 transform transition-all ease-in-out",
|
|
17
17
|
{
|
package/dist/Spinner.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as o } from "./node_modules/react/jsx-runtime.js";
|
|
1
|
+
import { j as o } from "./node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js";
|
|
2
2
|
import { Spinner as i } from "@wordpress/components";
|
|
3
3
|
import { useState as m, useEffect as n } from "@wordpress/element";
|
|
4
4
|
import a from "classnames";
|
package/dist/Tabs.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { j as r } from "./node_modules/react/jsx-runtime.js";
|
|
2
|
-
import { Wrap as b } from "./Wrap.js";
|
|
1
|
+
import { j as r } from "./node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js";
|
|
3
2
|
import { TabPanel as p } from "@wordpress/components";
|
|
4
|
-
import { createContext as v, useState as u, useContext as
|
|
3
|
+
import { createContext as v, useState as u, useContext as b } from "@wordpress/element";
|
|
5
4
|
import d from "classnames";
|
|
5
|
+
import { Wrap as m } from "./Wrap.js";
|
|
6
6
|
const i = v(null), S = ({
|
|
7
7
|
children: s,
|
|
8
8
|
defaultValue: a,
|
|
@@ -16,14 +16,14 @@ const i = v(null), S = ({
|
|
|
16
16
|
n || T(l), e && e(l);
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
|
-
return /* @__PURE__ */ r.jsx(i.Provider, { value: x, children: /* @__PURE__ */ r.jsx(
|
|
19
|
+
return /* @__PURE__ */ r.jsx(i.Provider, { value: x, children: /* @__PURE__ */ r.jsx(m, { important: !0, className: o.className, children: s }) });
|
|
20
20
|
}, W = ({
|
|
21
21
|
options: s,
|
|
22
22
|
children: a,
|
|
23
23
|
className: t,
|
|
24
24
|
onValueChange: e
|
|
25
25
|
}) => {
|
|
26
|
-
const o =
|
|
26
|
+
const o = b(i), n = e || o?.setActiveTab;
|
|
27
27
|
return /* @__PURE__ */ r.jsx(
|
|
28
28
|
p,
|
|
29
29
|
{
|
|
@@ -39,7 +39,7 @@ const i = v(null), S = ({
|
|
|
39
39
|
value: s,
|
|
40
40
|
children: a,
|
|
41
41
|
className: t
|
|
42
|
-
}) =>
|
|
42
|
+
}) => b(i)?.activeTab === s ? /* @__PURE__ */ r.jsx(m, { className: t, children: a }) : null;
|
|
43
43
|
export {
|
|
44
44
|
E as TabsContent,
|
|
45
45
|
W as TabsList,
|
package/dist/Tag.js
CHANGED
package/dist/TextControl.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { j as r } from "./node_modules/react/jsx-runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
import { forwardRef as N } from "@wordpress/element";
|
|
1
|
+
import { j as r } from "./node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js";
|
|
2
|
+
import { forwardRef as j } from "@wordpress/element";
|
|
4
3
|
import i from "classnames";
|
|
5
|
-
|
|
4
|
+
import { Wrap as N } from "./Wrap.js";
|
|
5
|
+
const g = j(
|
|
6
6
|
({
|
|
7
7
|
onClick: t,
|
|
8
8
|
onChange: o,
|
|
@@ -18,7 +18,7 @@ const g = N(
|
|
|
18
18
|
helper: a = ""
|
|
19
19
|
}, b) => {
|
|
20
20
|
const n = `text-control-${Math.random().toString(36).substring(2, 15)}`;
|
|
21
|
-
return /* @__PURE__ */ r.jsxs(
|
|
21
|
+
return /* @__PURE__ */ r.jsxs(N, { className: i("flex items-center p-0", x), children: [
|
|
22
22
|
m ? /* @__PURE__ */ r.jsx("label", { htmlFor: n, className: "text-primary !m-0 !mb-0 !mr-2", children: m }) : null,
|
|
23
23
|
/* @__PURE__ */ r.jsx(
|
|
24
24
|
"input",
|
package/dist/TextControlLabel.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { j as t } from "./node_modules/react/jsx-runtime.js";
|
|
2
|
-
import r from "./
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { j as t } from "./node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js";
|
|
2
|
+
import r from "./packages/icons/jsx/Pencil1.js";
|
|
3
|
+
import { TextControl as s } from "@wordpress/components";
|
|
4
|
+
import { Wrap as i } from "./Wrap.js";
|
|
5
5
|
const x = ({
|
|
6
6
|
onChange: e,
|
|
7
7
|
defaultValue: o,
|
|
8
8
|
children: l
|
|
9
|
-
}) => /* @__PURE__ */ t.jsxs(
|
|
9
|
+
}) => /* @__PURE__ */ t.jsxs(i, { className: "blockbite-ui__text-control-label flex items-center", children: [
|
|
10
10
|
/* @__PURE__ */ t.jsxs("span", { className: "outline-b-2 relative block -outline-offset-2 outline-black", children: [
|
|
11
|
-
/* @__PURE__ */ t.jsx(
|
|
11
|
+
/* @__PURE__ */ t.jsx(s, { type: "text", value: o, onChange: e }),
|
|
12
12
|
/* @__PURE__ */ t.jsx(r, { className: "absolute right-1 top-2" })
|
|
13
13
|
] }),
|
|
14
14
|
" ",
|
package/dist/ToggleGroup.d.ts
CHANGED
|
@@ -7,9 +7,9 @@ type ToggleProps = {
|
|
|
7
7
|
}[];
|
|
8
8
|
defaultPressed: string;
|
|
9
9
|
label?: string | boolean;
|
|
10
|
-
variant?:
|
|
11
|
-
display?:
|
|
12
|
-
size?:
|
|
10
|
+
variant?: 'primary' | 'secondary';
|
|
11
|
+
display?: 'icon' | 'label';
|
|
12
|
+
size?: 'small' | 'default' | 'compact';
|
|
13
13
|
onPressedChange: (value: string) => void;
|
|
14
14
|
};
|
|
15
15
|
declare const ToggleGroup: React.FC<ToggleProps>;
|
package/dist/ToggleGroup.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { j as l } from "./node_modules/react/jsx-runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { j as l } from "./node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js";
|
|
2
|
+
import { memo as g, useState as i, useEffect as p } from "@wordpress/element";
|
|
3
|
+
import { Wrap as x } from "./Wrap.js";
|
|
4
4
|
import { __experimentalToggleGroupControl as v, __experimentalToggleGroupControlOptionIcon as f, __experimentalToggleGroupControlOption as C } from "@wordpress/components";
|
|
5
5
|
import j from "classnames";
|
|
6
|
-
const d =
|
|
6
|
+
const d = g(
|
|
7
7
|
({
|
|
8
8
|
className: s,
|
|
9
9
|
options: t,
|
|
@@ -12,12 +12,12 @@ const d = i(
|
|
|
12
12
|
label: o = !1,
|
|
13
13
|
onPressedChange: m
|
|
14
14
|
}) => {
|
|
15
|
-
const [u, c] =
|
|
15
|
+
const [u, c] = i(""), a = (e) => {
|
|
16
16
|
m(e);
|
|
17
17
|
};
|
|
18
|
-
return
|
|
18
|
+
return p(() => {
|
|
19
19
|
c(r);
|
|
20
|
-
}, [r]), /* @__PURE__ */ l.jsx(
|
|
20
|
+
}, [r]), /* @__PURE__ */ l.jsx(x, { className: j(s), children: /* @__PURE__ */ l.jsx(
|
|
21
21
|
v,
|
|
22
22
|
{
|
|
23
23
|
isBlock: !0,
|
package/dist/ToggleSwitch.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { j as r } from "./node_modules/react/jsx-runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import n from "
|
|
1
|
+
import { j as r } from "./node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js";
|
|
2
|
+
import { ToggleControl as f } from "@wordpress/components";
|
|
3
|
+
import { useState as p, useEffect as c } from "@wordpress/element";
|
|
4
|
+
import l from "classnames";
|
|
5
|
+
import { Wrap as n } from "./Wrap.js";
|
|
6
6
|
const C = ({
|
|
7
7
|
label: m,
|
|
8
8
|
className: i,
|
|
@@ -10,11 +10,11 @@ const C = ({
|
|
|
10
10
|
checked: e = !1
|
|
11
11
|
// Default to false if undefined, so it's always controlled
|
|
12
12
|
}) => {
|
|
13
|
-
const [a, t] =
|
|
14
|
-
return
|
|
13
|
+
const [a, t] = p(e);
|
|
14
|
+
return c(() => {
|
|
15
15
|
t(e);
|
|
16
|
-
}, [e]), /* @__PURE__ */ r.jsx(
|
|
17
|
-
|
|
16
|
+
}, [e]), /* @__PURE__ */ r.jsx(n, { className: l(i, "flex items-center gap-2"), children: /* @__PURE__ */ r.jsx(
|
|
17
|
+
f,
|
|
18
18
|
{
|
|
19
19
|
checked: a,
|
|
20
20
|
label: m,
|
package/dist/Wrap.js
CHANGED