@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.
Files changed (138) hide show
  1. package/dist/AutocompleteDropdown.js +22 -22
  2. package/dist/Badge.js +1 -1
  3. package/dist/BitePreview.js +1 -1
  4. package/dist/Button.d.ts +3 -3
  5. package/dist/Button.js +5 -5
  6. package/dist/ButtonToggle.d.ts +6 -6
  7. package/dist/ButtonToggle.js +10 -10
  8. package/dist/Chapter.js +7 -7
  9. package/dist/ChapterDivider.js +1 -1
  10. package/dist/Checkbox.js +8 -8
  11. package/dist/DisappearingMessage.js +1 -1
  12. package/dist/DropdownPicker.js +3 -3
  13. package/dist/EmptyState.js +1 -1
  14. package/dist/FloatingPanel.js +1 -1
  15. package/dist/FocalPointControl.js +7 -7
  16. package/dist/Icon.js +1 -1
  17. package/dist/LinkPicker.js +2 -2
  18. package/dist/MediaPicker.js +1 -1
  19. package/dist/MetricsControl.d.ts +1 -1
  20. package/dist/MetricsControl.js +40 -41
  21. package/dist/Modal.js +1 -1
  22. package/dist/Notice.d.ts +1 -1
  23. package/dist/Notice.js +9 -9
  24. package/dist/PasswordInput.js +1 -1
  25. package/dist/Popover.js +2 -2
  26. package/dist/RangeSlider.js +5 -5
  27. package/dist/ResponsiveImage.js +1 -1
  28. package/dist/ResponsiveVideo.js +1 -1
  29. package/dist/ScrollList.d.ts +1 -1
  30. package/dist/ScrollList.js +5 -5
  31. package/dist/SectionList.js +25 -25
  32. package/dist/SelectControlWrapper.js +1 -1
  33. package/dist/SingleBlockTypeAppender.js +1 -1
  34. package/dist/SlideIn.js +8 -8
  35. package/dist/Spinner.js +1 -1
  36. package/dist/Tabs.js +6 -6
  37. package/dist/Tag.js +1 -1
  38. package/dist/TextControl.js +5 -5
  39. package/dist/TextControlLabel.js +6 -6
  40. package/dist/ToggleGroup.d.ts +3 -3
  41. package/dist/ToggleGroup.js +7 -7
  42. package/dist/ToggleSwitch.js +9 -9
  43. package/dist/Wrap.js +1 -1
  44. package/dist/node_modules/{react → .pnpm/react@18.2.0/node_modules/react}/cjs/react-jsx-runtime.development.js +204 -219
  45. package/dist/node_modules/{react → .pnpm/react@18.2.0/node_modules/react}/cjs/react-jsx-runtime.production.min.js +1 -1
  46. package/dist/node_modules/{react → .pnpm/react@18.2.0/node_modules/react}/jsx-runtime.js +1 -1
  47. package/dist/packages/icons/jsx/ChevronDown.js +23 -0
  48. package/dist/packages/icons/jsx/ColumnSpacing.js +25 -0
  49. package/dist/packages/icons/jsx/Cross2.js +23 -0
  50. package/dist/packages/icons/jsx/Desktop.js +25 -0
  51. package/dist/packages/icons/jsx/Grid.js +25 -0
  52. package/dist/packages/icons/jsx/Pencil1.js +25 -0
  53. package/dist/packages/icons/jsx/Percentage.js +28 -0
  54. package/dist/packages/icons/jsx/Plus.js +23 -0
  55. package/dist/packages/icons/jsx/Slider.js +25 -0
  56. package/dist/packages/icons/jsx/Tailwind.js +23 -0
  57. package/dist/packages/icons/jsx/Trash.js +25 -0
  58. package/package.json +24 -26
  59. package/dist/_virtual/ChevronDown.js +0 -4
  60. package/dist/_virtual/ColumnSpacing.js +0 -4
  61. package/dist/_virtual/Cross2.js +0 -4
  62. package/dist/_virtual/Desktop.js +0 -4
  63. package/dist/_virtual/Grid.js +0 -4
  64. package/dist/_virtual/Pencil1.js +0 -4
  65. package/dist/_virtual/Percentage.js +0 -4
  66. package/dist/_virtual/Plus.js +0 -4
  67. package/dist/_virtual/Slider.js +0 -4
  68. package/dist/_virtual/Tailwind.js +0 -4
  69. package/dist/_virtual/Trash.js +0 -4
  70. package/dist/_virtual/_commonjsHelpers.js +0 -8
  71. package/dist/node_modules/@blockbite/icons/dist/ChevronDown.js +0 -63
  72. package/dist/node_modules/@blockbite/icons/dist/ColumnSpacing.js +0 -65
  73. package/dist/node_modules/@blockbite/icons/dist/Cross2.js +0 -63
  74. package/dist/node_modules/@blockbite/icons/dist/Desktop.js +0 -65
  75. package/dist/node_modules/@blockbite/icons/dist/Grid.js +0 -65
  76. package/dist/node_modules/@blockbite/icons/dist/Pencil1.js +0 -65
  77. package/dist/node_modules/@blockbite/icons/dist/Percentage.js +0 -74
  78. package/dist/node_modules/@blockbite/icons/dist/Plus.js +0 -63
  79. package/dist/node_modules/@blockbite/icons/dist/Slider.js +0 -65
  80. package/dist/node_modules/@blockbite/icons/dist/Tailwind.js +0 -63
  81. package/dist/node_modules/@blockbite/icons/dist/Trash.js +0 -65
  82. package/dist/node_modules/lodash/_Hash.js +0 -22
  83. package/dist/node_modules/lodash/_ListCache.js +0 -22
  84. package/dist/node_modules/lodash/_Map.js +0 -6
  85. package/dist/node_modules/lodash/_MapCache.js +0 -22
  86. package/dist/node_modules/lodash/_Symbol.js +0 -5
  87. package/dist/node_modules/lodash/_arrayMap.js +0 -9
  88. package/dist/node_modules/lodash/_assocIndexOf.js +0 -12
  89. package/dist/node_modules/lodash/_baseGetTag.js +0 -11
  90. package/dist/node_modules/lodash/_baseHas.js +0 -8
  91. package/dist/node_modules/lodash/_baseIsArguments.js +0 -10
  92. package/dist/node_modules/lodash/_baseIsNative.js +0 -17
  93. package/dist/node_modules/lodash/_baseToString.js +0 -19
  94. package/dist/node_modules/lodash/_castPath.js +0 -12
  95. package/dist/node_modules/lodash/_coreJsData.js +0 -5
  96. package/dist/node_modules/lodash/_freeGlobal.js +0 -5
  97. package/dist/node_modules/lodash/_getMapData.js +0 -10
  98. package/dist/node_modules/lodash/_getNative.js +0 -11
  99. package/dist/node_modules/lodash/_getRawTag.js +0 -16
  100. package/dist/node_modules/lodash/_getValue.js +0 -7
  101. package/dist/node_modules/lodash/_hasPath.js +0 -21
  102. package/dist/node_modules/lodash/_hashClear.js +0 -9
  103. package/dist/node_modules/lodash/_hashDelete.js +0 -8
  104. package/dist/node_modules/lodash/_hashGet.js +0 -14
  105. package/dist/node_modules/lodash/_hashHas.js +0 -10
  106. package/dist/node_modules/lodash/_hashSet.js +0 -10
  107. package/dist/node_modules/lodash/_isIndex.js +0 -9
  108. package/dist/node_modules/lodash/_isKey.js +0 -13
  109. package/dist/node_modules/lodash/_isKeyable.js +0 -8
  110. package/dist/node_modules/lodash/_isMasked.js +0 -12
  111. package/dist/node_modules/lodash/_listCacheClear.js +0 -7
  112. package/dist/node_modules/lodash/_listCacheDelete.js +0 -13
  113. package/dist/node_modules/lodash/_listCacheGet.js +0 -10
  114. package/dist/node_modules/lodash/_listCacheHas.js +0 -9
  115. package/dist/node_modules/lodash/_listCacheSet.js +0 -10
  116. package/dist/node_modules/lodash/_mapCacheClear.js +0 -15
  117. package/dist/node_modules/lodash/_mapCacheDelete.js +0 -10
  118. package/dist/node_modules/lodash/_mapCacheGet.js +0 -9
  119. package/dist/node_modules/lodash/_mapCacheHas.js +0 -9
  120. package/dist/node_modules/lodash/_mapCacheSet.js +0 -10
  121. package/dist/node_modules/lodash/_memoizeCapped.js +0 -12
  122. package/dist/node_modules/lodash/_nativeCreate.js +0 -5
  123. package/dist/node_modules/lodash/_objectToString.js +0 -8
  124. package/dist/node_modules/lodash/_root.js +0 -5
  125. package/dist/node_modules/lodash/_stringToPath.js +0 -10
  126. package/dist/node_modules/lodash/_toKey.js +0 -12
  127. package/dist/node_modules/lodash/_toSource.js +0 -18
  128. package/dist/node_modules/lodash/eq.js +0 -7
  129. package/dist/node_modules/lodash/has.js +0 -12
  130. package/dist/node_modules/lodash/isArguments.js +0 -10
  131. package/dist/node_modules/lodash/isArray.js +0 -4
  132. package/dist/node_modules/lodash/isFunction.js +0 -13
  133. package/dist/node_modules/lodash/isLength.js +0 -8
  134. package/dist/node_modules/lodash/isObject.js +0 -8
  135. package/dist/node_modules/lodash/isObjectLike.js +0 -7
  136. package/dist/node_modules/lodash/isSymbol.js +0 -10
  137. package/dist/node_modules/lodash/memoize.js +0 -19
  138. package/dist/node_modules/lodash/toString.js +0 -9
@@ -1,6 +1,6 @@
1
- import { j as a } from "./node_modules/react/jsx-runtime.js";
2
- import { Wrap as h } from "./Wrap.js";
3
- import { useState as r, useEffect as j } from "@wordpress/element";
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
- j(() => {
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(h, { className: "flex min-w-[240px] flex-col", children: [
24
+ return /* @__PURE__ */ a.jsxs(j, { className: "flex min-w-[240px] flex-col", children: [
25
25
  /* @__PURE__ */ a.jsx(
26
26
  C,
27
27
  {
@@ -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
  function f(n) {
3
3
  const { media: r, mediaClass: e } = n, { url: m, alt: i, sizes: t } = r;
4
4
  if (t === void 0)
@@ -1,4 +1,4 @@
1
- import { j as e } from "./node_modules/react/jsx-runtime.js";
1
+ import { j as e } from "./node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js";
2
2
  function a(o) {
3
3
  const { media: s, mediaClass: r } = o, { url: t } = s, n = t;
4
4
  return /* @__PURE__ */ e.jsx(
@@ -1,7 +1,7 @@
1
1
  type ScrollListProps = {
2
2
  children: React.ReactNode;
3
3
  className?: string;
4
- height?: "small" | "medium" | "large";
4
+ height?: 'small' | 'medium' | 'large';
5
5
  };
6
6
  export declare const ScrollList: React.FC<ScrollListProps>;
7
7
  export {};
@@ -1,14 +1,14 @@
1
- import { j as s } from "./node_modules/react/jsx-runtime.js";
2
- import { Wrap as m } from "./Wrap.js";
3
- import a from "classnames";
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
- m,
9
+ a,
10
10
  {
11
- className: a("scrollbar relative overflow-y-scroll", o, {
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"
@@ -1,15 +1,15 @@
1
- import { j as t } from "./node_modules/react/jsx-runtime.js";
2
- import { Wrap as c } from "./Wrap.js";
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 { TextControl as C } from "./TextControl.js";
6
- import I from "classnames";
7
- import R from "./node_modules/@blockbite/icons/dist/Plus.js";
8
- import k from "./node_modules/@blockbite/icons/dist/Trash.js";
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: n,
10
+ sections: a,
11
11
  setSections: o,
12
- activeSection: a,
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([...n, e]);
24
+ o([...a, e]);
25
25
  }, b = () => {
26
- if (!a || n.length === 0) return;
27
- const e = n.filter(
28
- (r) => r.id !== a
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 = n.findIndex((g) => g.id === a), N = Math.min(r, e.length - 1);
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(c, { important: !0, className: "w-[200px] border-r", children: [
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: n.map((e, l) => /* @__PURE__ */ t.jsxs(
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: I(
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 === a
63
+ "bg-easy": e.id === n
64
64
  }
65
65
  ),
66
66
  onClick: () => {
67
- m(e.id), x(a, e.id);
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
- C,
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(c, { className: "flex justify-center gap-2 p-2", children: [
96
+ /* @__PURE__ */ t.jsxs(u, { className: "flex justify-center gap-2 p-2", children: [
97
97
  /* @__PURE__ */ t.jsx(
98
- u,
98
+ c,
99
99
  {
100
100
  onClick: j,
101
- icon: /* @__PURE__ */ t.jsx(R, {}),
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
- u,
108
+ c,
109
109
  {
110
110
  onClick: b,
111
- icon: /* @__PURE__ */ t.jsx(k, {}),
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 { Wrap as i } from "./Wrap.js";
3
- import { useState as m, useEffect as n } from "@wordpress/element";
4
- import l from "classnames";
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] = m(0);
7
- return n(() => {
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
- i,
12
+ l,
13
13
  {
14
- className: l(
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 m } from "@wordpress/element";
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(b, { important: !0, className: o.className, children: s }) });
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 = m(i), n = e || o?.setActiveTab;
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
- }) => m(i)?.activeTab === s ? /* @__PURE__ */ r.jsx(b, { className: t, children: a }) : null;
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
@@ -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 m from "classnames";
3
3
  const n = ({
4
4
  children: r,
@@ -1,8 +1,8 @@
1
- import { j as r } from "./node_modules/react/jsx-runtime.js";
2
- import { Wrap as j } from "./Wrap.js";
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
- const g = N(
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(j, { className: i("flex items-center p-0", x), children: [
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",
@@ -1,14 +1,14 @@
1
- import { j as t } from "./node_modules/react/jsx-runtime.js";
2
- import r from "./node_modules/@blockbite/icons/dist/Pencil1.js";
3
- import { Wrap as s } from "./Wrap.js";
4
- import { TextControl as i } from "@wordpress/components";
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(s, { className: "blockbite-ui__text-control-label flex items-center", children: [
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(i, { type: "text", value: o, onChange: e }),
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
  " ",
@@ -7,9 +7,9 @@ type ToggleProps = {
7
7
  }[];
8
8
  defaultPressed: string;
9
9
  label?: string | boolean;
10
- variant?: "primary" | "secondary";
11
- display?: "icon" | "label";
12
- size?: "small" | "default" | "compact";
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>;
@@ -1,9 +1,9 @@
1
- import { j as l } from "./node_modules/react/jsx-runtime.js";
2
- import { Wrap as g } from "./Wrap.js";
3
- import { memo as i, useState as p, useEffect as x } from "@wordpress/element";
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 = i(
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] = p(""), a = (e) => {
15
+ const [u, c] = i(""), a = (e) => {
16
16
  m(e);
17
17
  };
18
- return x(() => {
18
+ return p(() => {
19
19
  c(r);
20
- }, [r]), /* @__PURE__ */ l.jsx(g, { className: j(s), children: /* @__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,
@@ -1,8 +1,8 @@
1
- import { j as r } from "./node_modules/react/jsx-runtime.js";
2
- import { Wrap as f } from "./Wrap.js";
3
- import { ToggleControl as p } from "@wordpress/components";
4
- import { useState as c, useEffect as l } from "@wordpress/element";
5
- import n from "classnames";
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] = c(e);
14
- return l(() => {
13
+ const [a, t] = p(e);
14
+ return c(() => {
15
15
  t(e);
16
- }, [e]), /* @__PURE__ */ r.jsx(f, { className: n(i, "flex items-center gap-2"), children: /* @__PURE__ */ r.jsx(
17
- p,
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
@@ -1,4 +1,4 @@
1
- import { j as r } from "./node_modules/react/jsx-runtime.js";
1
+ import { j as r } from "./node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js";
2
2
  const j = ({
3
3
  children: s,
4
4
  className: t,