@blockbite/ui 2.0.2 → 2.0.5

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,4 +1,4 @@
1
- import { __exports as t } from "../../../_virtual/react-jsx-runtime.production.min.js";
1
+ import { __exports as t } from "../../../../../../_virtual/react-jsx-runtime.production.min.js";
2
2
  import R from "react";
3
3
  /**
4
4
  * @license React
@@ -1,4 +1,4 @@
1
- import { __module as e } from "../../_virtual/jsx-runtime.js";
1
+ import { __module as e } from "../../../../../_virtual/jsx-runtime.js";
2
2
  import { __require as r } from "./cjs/react-jsx-runtime.production.min.js";
3
3
  import { __require as o } from "./cjs/react-jsx-runtime.development.js";
4
4
  process.env.NODE_ENV === "production" ? e.exports = r() : e.exports = o();
@@ -0,0 +1,23 @@
1
+ import { j as e } from "../../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js";
2
+ const o = (t) => /* @__PURE__ */ e.jsx(
3
+ "svg",
4
+ {
5
+ width: t.width || "1em",
6
+ height: t.height || "1em",
7
+ viewBox: "0 0 15 15",
8
+ fill: "none",
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ role: "img",
11
+ ...t,
12
+ children: /* @__PURE__ */ e.jsx(
13
+ "path",
14
+ {
15
+ d: "M3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523Z",
16
+ fill: "currentColor"
17
+ }
18
+ )
19
+ }
20
+ );
21
+ export {
22
+ o as default
23
+ };
@@ -0,0 +1,25 @@
1
+ import { j as e } from "../../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js";
2
+ const i = (C) => /* @__PURE__ */ e.jsx(
3
+ "svg",
4
+ {
5
+ width: C.width || "1em",
6
+ height: C.height || "1em",
7
+ viewBox: "0 0 15 15",
8
+ fill: "none",
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ role: "img",
11
+ ...C,
12
+ children: /* @__PURE__ */ e.jsx(
13
+ "path",
14
+ {
15
+ fillRule: "evenodd",
16
+ clipRule: "evenodd",
17
+ d: "M7.50012 1C7.22398 1 7.00012 1.22386 7.00012 1.5V13.5C7.00012 13.7761 7.22398 14 7.50012 14C7.77626 14 8.00012 13.7761 8.00012 13.5V1.5C8.00012 1.22386 7.77626 1 7.50012 1ZM3.31812 5.18161C3.14239 5.00587 2.85746 5.00587 2.68173 5.18161L0.681729 7.18161C0.505993 7.35734 0.505993 7.64227 0.681729 7.818L2.68173 9.818C2.85746 9.99374 3.14239 9.99374 3.31812 9.818C3.49386 9.64227 3.49386 9.35734 3.31812 9.18161L2.08632 7.9498H5.50017C5.7487 7.9498 5.95017 7.74833 5.95017 7.4998C5.95017 7.25128 5.7487 7.0498 5.50017 7.0498H2.08632L3.31812 5.818C3.49386 5.64227 3.49386 5.35734 3.31812 5.18161ZM11.6817 5.18161C11.506 5.35734 11.506 5.64227 11.6817 5.818L12.9135 7.0498H9.50017C9.25164 7.0498 9.05017 7.25128 9.05017 7.4998C9.05017 7.74833 9.25164 7.9498 9.50017 7.9498H12.9135L11.6817 9.18161C11.506 9.35734 11.506 9.64227 11.6817 9.818C11.8575 9.99374 12.1424 9.99374 12.3181 9.818L14.3181 7.818C14.4939 7.64227 14.4939 7.35734 14.3181 7.18161L12.3181 5.18161C12.1424 5.00587 11.8575 5.00587 11.6817 5.18161Z",
18
+ fill: "currentColor"
19
+ }
20
+ )
21
+ }
22
+ );
23
+ export {
24
+ i as default
25
+ };
@@ -0,0 +1,23 @@
1
+ import { j as e } from "../../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js";
2
+ const o = (t) => /* @__PURE__ */ e.jsx(
3
+ "svg",
4
+ {
5
+ width: t.width || "1em",
6
+ height: t.height || "1em",
7
+ viewBox: "0 0 15 15",
8
+ fill: "none",
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ role: "img",
11
+ ...t,
12
+ children: /* @__PURE__ */ e.jsx(
13
+ "path",
14
+ {
15
+ d: "M11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184Z",
16
+ fill: "currentColor"
17
+ }
18
+ )
19
+ }
20
+ );
21
+ export {
22
+ o as default
23
+ };
@@ -0,0 +1,25 @@
1
+ import { j as t } from "../../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js";
2
+ const i = (e) => /* @__PURE__ */ t.jsx(
3
+ "svg",
4
+ {
5
+ width: e.width || "1em",
6
+ height: e.height || "1em",
7
+ viewBox: "0 0 15 15",
8
+ fill: "none",
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ role: "img",
11
+ ...e,
12
+ children: /* @__PURE__ */ t.jsx(
13
+ "path",
14
+ {
15
+ fillRule: "evenodd",
16
+ clipRule: "evenodd",
17
+ d: "M0 3.25V10.75C0 11.4404 0.559644 12 1.25 12H5.07341L4.82991 13.2986C4.76645 13.6371 5.02612 13.95 5.37049 13.95H9.62951C9.97389 13.95 10.2336 13.6371 10.1701 13.2986L9.92659 12H13.75C14.4404 12 15 11.4404 15 10.75V3.25C15 2.55964 14.4404 2 13.75 2H1.25C0.559643 2 0 2.55964 0 3.25ZM1.25 3H13.75C13.8881 3 14 3.11193 14 3.25V10.75C14 10.8881 13.8881 11 13.75 11H1.25C1.11193 11 1 10.8881 1 10.75V3.25C1 3.11193 1.11193 3 1.25 3ZM5.98909 12L5.79222 13.05H9.20778L9.01091 12H5.98909Z",
18
+ fill: "currentColor"
19
+ }
20
+ )
21
+ }
22
+ );
23
+ export {
24
+ i as default
25
+ };
@@ -0,0 +1,25 @@
1
+ import { j as i } from "../../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js";
2
+ const t = (e) => /* @__PURE__ */ i.jsx(
3
+ "svg",
4
+ {
5
+ width: e.width || "1em",
6
+ height: e.height || "1em",
7
+ viewBox: "0 0 15 15",
8
+ fill: "none",
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ role: "img",
11
+ ...e,
12
+ children: /* @__PURE__ */ i.jsx(
13
+ "path",
14
+ {
15
+ fillRule: "evenodd",
16
+ clipRule: "evenodd",
17
+ d: "M1 2.5V12.5C1 13.3284 1.67157 14 2.5 14H12.5C13.3284 14 14 13.3284 14 12.5V2.5C14 1.67157 13.3284 1 12.5 1H2.5C1.67157 1 1 1.67157 1 2.5ZM8 2V7H13V2.5C13 2.22386 12.7761 2 12.5 2H8ZM8 8V13H12.5C12.7761 13 13 12.7761 13 12.5V8H8ZM7 2H2.5C2.22386 2 2 2.22386 2 2.5V7H7V2ZM2 12.5C2 12.7761 2.22386 13 2.5 13H7V8H2V12.5Z",
18
+ fill: "currentColor"
19
+ }
20
+ )
21
+ }
22
+ );
23
+ export {
24
+ t as default
25
+ };
@@ -0,0 +1,25 @@
1
+ import { j as l } from "../../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js";
2
+ const t = (e) => /* @__PURE__ */ l.jsx(
3
+ "svg",
4
+ {
5
+ width: e.width || "1em",
6
+ height: e.height || "1em",
7
+ viewBox: "0 0 15 15",
8
+ fill: "none",
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ role: "img",
11
+ ...e,
12
+ children: /* @__PURE__ */ l.jsx(
13
+ "path",
14
+ {
15
+ fillRule: "evenodd",
16
+ clipRule: "evenodd",
17
+ d: "M11.1465 1.14645L3.71455 8.57836C3.62459 8.66832 3.55263 8.77461 3.50251 8.89155L2.04044 12.303C1.9599 12.491 2.00189 12.709 2.14646 12.8536C2.29103 12.9981 2.50905 13.0401 2.69697 12.9596L6.10847 11.4975C6.2254 11.4474 6.3317 11.3754 6.42166 11.2855L13.8536 3.85355C14.0488 3.65829 14.0488 3.34171 13.8536 3.14645L11.8536 1.14645C11.6583 0.951184 11.3417 0.951184 11.1465 1.14645ZM11.5 2.20711L12.7929 3.5L5.71455 10.5784L4.21924 11.2192L3.78081 10.7808L4.42166 9.28547L11.5 2.20711Z",
18
+ fill: "currentColor"
19
+ }
20
+ )
21
+ }
22
+ );
23
+ export {
24
+ t as default
25
+ };
@@ -0,0 +1,28 @@
1
+ import { j as e } from "../../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js";
2
+ const o = (r) => /* @__PURE__ */ e.jsxs(
3
+ "svg",
4
+ {
5
+ width: r.width || "1em",
6
+ height: r.height || "1em",
7
+ viewBox: "0 0 15 15",
8
+ fill: "none",
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ role: "img",
11
+ ...r,
12
+ children: [
13
+ /* @__PURE__ */ e.jsx("circle", { cx: 4.85355, cy: 4.5, r: 1.5, fill: "currentColor" }),
14
+ /* @__PURE__ */ e.jsx("circle", { cx: 9.85355, cy: 10.5, r: 1.5, fill: "currentColor" }),
15
+ /* @__PURE__ */ e.jsx(
16
+ "path",
17
+ {
18
+ d: "M3 11.6464L11 3.64642",
19
+ stroke: "currentColor",
20
+ strokeLinecap: "round"
21
+ }
22
+ )
23
+ ]
24
+ }
25
+ );
26
+ export {
27
+ o as default
28
+ };
@@ -0,0 +1,23 @@
1
+ import { j as e } from "../../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js";
2
+ const l = (t) => /* @__PURE__ */ e.jsx(
3
+ "svg",
4
+ {
5
+ width: t.width || "1em",
6
+ height: t.height || "1em",
7
+ viewBox: "0 0 15 15",
8
+ fill: "none",
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ role: "img",
11
+ ...t,
12
+ children: /* @__PURE__ */ e.jsx(
13
+ "path",
14
+ {
15
+ d: "M7.5 2.25C7.22386 2.25 7 2.47386 7 2.75V7H2.75C2.47386 7 2.25 7.22386 2.25 7.5C2.25 7.77614 2.47386 8 2.75 8H7V12.25C7 12.5261 7.22386 12.75 7.5 12.75C7.77614 12.75 8 12.5261 8 12.25V8H12.25C12.5261 8 12.75 7.77614 12.75 7.5C12.75 7.22386 12.5261 7 12.25 7H8V2.75C8 2.47386 7.77614 2.25 7.5 2.25Z",
16
+ fill: "currentColor"
17
+ }
18
+ )
19
+ }
20
+ );
21
+ export {
22
+ l as default
23
+ };
@@ -0,0 +1,25 @@
1
+ import { j as l } from "../../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js";
2
+ const t = (e) => /* @__PURE__ */ l.jsx(
3
+ "svg",
4
+ {
5
+ width: e.width || "1em",
6
+ height: e.height || "1em",
7
+ viewBox: "0 0 15 15",
8
+ fill: "none",
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ role: "img",
11
+ ...e,
12
+ children: /* @__PURE__ */ l.jsx(
13
+ "path",
14
+ {
15
+ fillRule: "evenodd",
16
+ clipRule: "evenodd",
17
+ d: "M8.49988 10.2504C7.1516 10.2504 6.0299 9.28026 5.79473 7.99997H0.5C0.223858 7.99997 0 7.77611 0 7.49997C0 7.22383 0.223858 6.99997 0.5 6.99997H5.7947C6.0298 5.71959 7.15154 4.74939 8.49988 4.74939C9.84822 4.74939 10.97 5.71959 11.2051 6.99997H14.5C14.7761 6.99997 15 7.22383 15 7.49997C15 7.77611 14.7761 7.99997 14.5 7.99997H11.205C10.9699 9.28026 9.84816 10.2504 8.49988 10.2504ZM8.49988 9.30038C7.50549 9.30038 6.69938 8.49427 6.69938 7.49988C6.69938 6.5055 7.50549 5.69939 8.49988 5.69939C9.49426 5.69939 10.3004 6.5055 10.3004 7.49988C10.3004 8.49427 9.49426 9.30038 8.49988 9.30038Z",
18
+ fill: "currentColor"
19
+ }
20
+ )
21
+ }
22
+ );
23
+ export {
24
+ t as default
25
+ };
@@ -0,0 +1,23 @@
1
+ import { j as i } from "../../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js";
2
+ const e = (t) => /* @__PURE__ */ i.jsx(
3
+ "svg",
4
+ {
5
+ width: t.width || "1em",
6
+ height: t.height || "1em",
7
+ viewBox: "0 0 15 15",
8
+ fill: "none",
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ role: "img",
11
+ ...t,
12
+ children: /* @__PURE__ */ i.jsx(
13
+ "path",
14
+ {
15
+ d: "M4 5.33333C4.4 3.77778 5.4 3 7 3C9.4 3 9.7 4.75 10.9 5.04167C11.7 5.23611 12.4 4.94444 13 4.16667C12.6 5.72222 11.6 6.5 10 6.5C7.6 6.5 7.3 4.75 6.1 4.45833C5.3 4.26389 4.6 4.55556 4 5.33333ZM1 8.83333C1.4 7.27778 2.4 6.5 4 6.5C6.4 6.5 6.7 8.25 7.9 8.54167C8.7 8.73611 9.4 8.44444 10 7.66667C9.6 9.22222 8.6 10 7 10C4.6 10 4.3 8.25 3.1 7.95833C2.3 7.76389 1.6 8.05556 1 8.83333Z",
16
+ fill: "currentColor"
17
+ }
18
+ )
19
+ }
20
+ );
21
+ export {
22
+ e as default
23
+ };
@@ -0,0 +1,25 @@
1
+ import { j as l } from "../../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js";
2
+ const i = (e) => /* @__PURE__ */ l.jsx(
3
+ "svg",
4
+ {
5
+ width: e.width || "1em",
6
+ height: e.height || "1em",
7
+ viewBox: "0 0 15 15",
8
+ fill: "none",
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ role: "img",
11
+ ...e,
12
+ children: /* @__PURE__ */ l.jsx(
13
+ "path",
14
+ {
15
+ fillRule: "evenodd",
16
+ clipRule: "evenodd",
17
+ d: "M5 1.5C5 1.77614 5.22386 2 5.5 2H9.5C9.77614 2 10 1.77614 10 1.5C10 1.22386 9.77614 1 9.5 1H5.5C5.22386 1 5 1.22386 5 1.5ZM3.5 3H11.5C11.7761 3 12 3.22386 12 3.5C12 3.77614 11.7761 4 11.5 4H11V12C11 12.5523 10.5523 13 10 13H5C4.44772 13 4 12.5523 4 12V4L3.5 4C3.22386 4 3 3.77614 3 3.5C3 3.22386 3.22386 3 3.5 3ZM10 4V12H5V4H10Z",
18
+ fill: "currentColor"
19
+ }
20
+ )
21
+ }
22
+ );
23
+ export {
24
+ i as default
25
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockbite/ui",
3
- "version": "2.0.2",
3
+ "version": "2.0.5",
4
4
  "description": "Shared React UI components for Blockbite apps",
5
5
  "author": "Blockbite",
6
6
  "license": "MIT",
@@ -8,7 +8,7 @@
8
8
  "main": "dist/index.js",
9
9
  "module": "dist/index.js",
10
10
  "types": "dist/index.d.ts",
11
- "type": "module",
11
+ "type": "module",
12
12
  "publishConfig": {
13
13
  "access": "public"
14
14
  },
@@ -21,33 +21,13 @@
21
21
  "types": "./dist/*.d.ts"
22
22
  }
23
23
  },
24
- "scripts": {
25
- "dev": "vite",
26
- "build": "vite build && npm run types",
27
- "preview": "vite preview",
28
- "lint": "eslint ./src --ext .ts,.tsx",
29
- "type-check": "tsc --noEmit",
30
- "types": "tsc --project tsconfig.build.json"
31
- },
32
- "peerDependencies": {
33
- "@blockbite/icons": "^4.4.7",
34
- "@wordpress/api-fetch": "^6.21.0",
35
- "@wordpress/block-editor": "^14.16.0",
36
- "@wordpress/components": "^29.7.0",
37
- "@wordpress/element": "^6.21.0",
38
- "classnames": "^2.5.1",
39
- "lodash": "^4.17.21",
40
- "react": "^18.3.1",
41
- "react-dom": "^18.3.1"
42
- },
43
24
  "devDependencies": {
44
25
  "@types/lodash": "^4.17.16",
45
- "@types/react": "^18.2.39",
46
- "@types/react-dom": "^18.0.11",
26
+ "@types/react": "^18.2.55",
27
+ "@types/react-dom": "^18.2.19",
47
28
  "@types/wordpress__block-editor": "^11.5.16",
48
29
  "@types/wordpress__blocks": "^12.5.17",
49
30
  "@vitejs/plugin-react": "^4.2.1",
50
- "eslint": "^8.57.1",
51
31
  "typescript": "^5.8.2",
52
32
  "vite": "^5.0.0"
53
33
  },
@@ -60,6 +40,24 @@
60
40
  "typescript"
61
41
  ],
62
42
  "dependencies": {
63
- "vite-plugin-static-copy": "^2.3.1"
43
+ "@wordpress/i18n": "^5.22.0",
44
+ "@wordpress/primitives": "^4.22.0",
45
+ "@wordpress/api-fetch": "^6.21.0",
46
+ "@wordpress/block-editor": "^14.16.0",
47
+ "@wordpress/components": "^29.7.0",
48
+ "@wordpress/element": "^6.21.0",
49
+ "classnames": "^2.5.1",
50
+ "lodash": "^4.17.21",
51
+ "react": "18.2.0",
52
+ "react-dom": "18.2.0",
53
+ "vite-plugin-static-copy": "^2.3.1",
54
+ "@blockbite/icons": "4.4.10"
55
+ },
56
+ "scripts": {
57
+ "dev": "vite",
58
+ "build": "vite build && npm run types",
59
+ "preview": "vite preview",
60
+ "type-check": "tsc --noEmit",
61
+ "types": "tsc --project tsconfig.build.json"
64
62
  }
65
- }
63
+ }
@@ -1,4 +0,0 @@
1
- var o = {};
2
- export {
3
- o as __exports
4
- };
@@ -1,4 +0,0 @@
1
- var a = {};
2
- export {
3
- a as __exports
4
- };
@@ -1,4 +0,0 @@
1
- var r = {};
2
- export {
3
- r as __exports
4
- };
@@ -1,4 +0,0 @@
1
- var e = {};
2
- export {
3
- e as __exports
4
- };
@@ -1,4 +0,0 @@
1
- var r = {};
2
- export {
3
- r as __exports
4
- };
@@ -1,4 +0,0 @@
1
- var e = {};
2
- export {
3
- e as __exports
4
- };
@@ -1,4 +0,0 @@
1
- var e = {};
2
- export {
3
- e as __exports
4
- };
@@ -1,4 +0,0 @@
1
- var r = {};
2
- export {
3
- r as __exports
4
- };
@@ -1,4 +0,0 @@
1
- var r = {};
2
- export {
3
- r as __exports
4
- };
@@ -1,4 +0,0 @@
1
- var a = {};
2
- export {
3
- a as __exports
4
- };
@@ -1,4 +0,0 @@
1
- var r = {};
2
- export {
3
- r as __exports
4
- };
@@ -1,8 +0,0 @@
1
- var o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2
- function l(e) {
3
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
4
- }
5
- export {
6
- o as commonjsGlobal,
7
- l as getDefaultExportFromCjs
8
- };
@@ -1,63 +0,0 @@
1
- import { getDefaultExportFromCjs as m } from "../../../../_virtual/_commonjsHelpers.js";
2
- import { __exports as s } from "../../../../_virtual/ChevronDown.js";
3
- import g from "react";
4
- (function(i) {
5
- function l(t) {
6
- "@babel/helpers - typeof";
7
- return l = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
8
- return typeof e;
9
- } : function(e) {
10
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
11
- }, l(t);
12
- }
13
- Object.defineProperty(i, "__esModule", {
14
- value: !0
15
- }), i.default = void 0;
16
- var c = y(g);
17
- function p(t) {
18
- if (typeof WeakMap != "function") return null;
19
- var e = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakMap();
20
- return (p = function(f) {
21
- return f ? r : e;
22
- })(t);
23
- }
24
- function y(t, e) {
25
- if (t && t.__esModule) return t;
26
- if (t === null || l(t) != "object" && typeof t != "function") return { default: t };
27
- var r = p(e);
28
- if (r && r.has(t)) return r.get(t);
29
- var n = { __proto__: null }, f = Object.defineProperty && Object.getOwnPropertyDescriptor;
30
- for (var o in t) if (o !== "default" && {}.hasOwnProperty.call(t, o)) {
31
- var a = f ? Object.getOwnPropertyDescriptor(t, o) : null;
32
- a && (a.get || a.set) ? Object.defineProperty(n, o, a) : n[o] = t[o];
33
- }
34
- return n.default = t, r && r.set(t, n), n;
35
- }
36
- function u() {
37
- return u = Object.assign ? Object.assign.bind() : function(t) {
38
- for (var e = 1; e < arguments.length; e++) {
39
- var r = arguments[e];
40
- for (var n in r) ({}).hasOwnProperty.call(r, n) && (t[n] = r[n]);
41
- }
42
- return t;
43
- }, u.apply(null, arguments);
44
- }
45
- var d = function(e) {
46
- return /* @__PURE__ */ c.createElement("svg", u({
47
- width: e.width || "1em",
48
- height: e.height || "1em",
49
- viewBox: "0 0 15 15",
50
- fill: "none",
51
- xmlns: "http://www.w3.org/2000/svg",
52
- role: "img"
53
- }, e), /* @__PURE__ */ c.createElement("path", {
54
- d: "M3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523Z",
55
- fill: "currentColor"
56
- }));
57
- };
58
- i.default = d;
59
- })(s);
60
- const w = /* @__PURE__ */ m(s);
61
- export {
62
- w as default
63
- };
@@ -1,65 +0,0 @@
1
- import { getDefaultExportFromCjs as s } from "../../../../_virtual/_commonjsHelpers.js";
2
- import { __exports as d } from "../../../../_virtual/ColumnSpacing.js";
3
- import y from "react";
4
- (function(a) {
5
- function i(e) {
6
- "@babel/helpers - typeof";
7
- return i = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
8
- return typeof t;
9
- } : function(t) {
10
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
11
- }, i(e);
12
- }
13
- Object.defineProperty(a, "__esModule", {
14
- value: !0
15
- }), a.default = void 0;
16
- var c = m(y);
17
- function p(e) {
18
- if (typeof WeakMap != "function") return null;
19
- var t = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakMap();
20
- return (p = function(f) {
21
- return f ? r : t;
22
- })(e);
23
- }
24
- function m(e, t) {
25
- if (e && e.__esModule) return e;
26
- if (e === null || i(e) != "object" && typeof e != "function") return { default: e };
27
- var r = p(t);
28
- if (r && r.has(e)) return r.get(e);
29
- var n = { __proto__: null }, f = Object.defineProperty && Object.getOwnPropertyDescriptor;
30
- for (var o in e) if (o !== "default" && {}.hasOwnProperty.call(e, o)) {
31
- var l = f ? Object.getOwnPropertyDescriptor(e, o) : null;
32
- l && (l.get || l.set) ? Object.defineProperty(n, o, l) : n[o] = e[o];
33
- }
34
- return n.default = e, r && r.set(e, n), n;
35
- }
36
- function u() {
37
- return u = Object.assign ? Object.assign.bind() : function(e) {
38
- for (var t = 1; t < arguments.length; t++) {
39
- var r = arguments[t];
40
- for (var n in r) ({}).hasOwnProperty.call(r, n) && (e[n] = r[n]);
41
- }
42
- return e;
43
- }, u.apply(null, arguments);
44
- }
45
- var C = function(t) {
46
- return /* @__PURE__ */ c.createElement("svg", u({
47
- width: t.width || "1em",
48
- height: t.height || "1em",
49
- viewBox: "0 0 15 15",
50
- fill: "none",
51
- xmlns: "http://www.w3.org/2000/svg",
52
- role: "img"
53
- }, t), /* @__PURE__ */ c.createElement("path", {
54
- fillRule: "evenodd",
55
- clipRule: "evenodd",
56
- d: "M7.50012 1C7.22398 1 7.00012 1.22386 7.00012 1.5V13.5C7.00012 13.7761 7.22398 14 7.50012 14C7.77626 14 8.00012 13.7761 8.00012 13.5V1.5C8.00012 1.22386 7.77626 1 7.50012 1ZM3.31812 5.18161C3.14239 5.00587 2.85746 5.00587 2.68173 5.18161L0.681729 7.18161C0.505993 7.35734 0.505993 7.64227 0.681729 7.818L2.68173 9.818C2.85746 9.99374 3.14239 9.99374 3.31812 9.818C3.49386 9.64227 3.49386 9.35734 3.31812 9.18161L2.08632 7.9498H5.50017C5.7487 7.9498 5.95017 7.74833 5.95017 7.4998C5.95017 7.25128 5.7487 7.0498 5.50017 7.0498H2.08632L3.31812 5.818C3.49386 5.64227 3.49386 5.35734 3.31812 5.18161ZM11.6817 5.18161C11.506 5.35734 11.506 5.64227 11.6817 5.818L12.9135 7.0498H9.50017C9.25164 7.0498 9.05017 7.25128 9.05017 7.4998C9.05017 7.74833 9.25164 7.9498 9.50017 7.9498H12.9135L11.6817 9.18161C11.506 9.35734 11.506 9.64227 11.6817 9.818C11.8575 9.99374 12.1424 9.99374 12.3181 9.818L14.3181 7.818C14.4939 7.64227 14.4939 7.35734 14.3181 7.18161L12.3181 5.18161C12.1424 5.00587 11.8575 5.00587 11.6817 5.18161Z",
57
- fill: "currentColor"
58
- }));
59
- };
60
- a.default = C;
61
- })(d);
62
- const h = /* @__PURE__ */ s(d);
63
- export {
64
- h as default
65
- };
@@ -1,63 +0,0 @@
1
- import { getDefaultExportFromCjs as m } from "../../../../_virtual/_commonjsHelpers.js";
2
- import { __exports as p } from "../../../../_virtual/Cross2.js";
3
- import g from "react";
4
- (function(i) {
5
- function l(t) {
6
- "@babel/helpers - typeof";
7
- return l = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
8
- return typeof e;
9
- } : function(e) {
10
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
11
- }, l(t);
12
- }
13
- Object.defineProperty(i, "__esModule", {
14
- value: !0
15
- }), i.default = void 0;
16
- var c = y(g);
17
- function s(t) {
18
- if (typeof WeakMap != "function") return null;
19
- var e = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakMap();
20
- return (s = function(f) {
21
- return f ? r : e;
22
- })(t);
23
- }
24
- function y(t, e) {
25
- if (t && t.__esModule) return t;
26
- if (t === null || l(t) != "object" && typeof t != "function") return { default: t };
27
- var r = s(e);
28
- if (r && r.has(t)) return r.get(t);
29
- var n = { __proto__: null }, f = Object.defineProperty && Object.getOwnPropertyDescriptor;
30
- for (var o in t) if (o !== "default" && {}.hasOwnProperty.call(t, o)) {
31
- var a = f ? Object.getOwnPropertyDescriptor(t, o) : null;
32
- a && (a.get || a.set) ? Object.defineProperty(n, o, a) : n[o] = t[o];
33
- }
34
- return n.default = t, r && r.set(t, n), n;
35
- }
36
- function u() {
37
- return u = Object.assign ? Object.assign.bind() : function(t) {
38
- for (var e = 1; e < arguments.length; e++) {
39
- var r = arguments[e];
40
- for (var n in r) ({}).hasOwnProperty.call(r, n) && (t[n] = r[n]);
41
- }
42
- return t;
43
- }, u.apply(null, arguments);
44
- }
45
- var d = function(e) {
46
- return /* @__PURE__ */ c.createElement("svg", u({
47
- width: e.width || "1em",
48
- height: e.height || "1em",
49
- viewBox: "0 0 15 15",
50
- fill: "none",
51
- xmlns: "http://www.w3.org/2000/svg",
52
- role: "img"
53
- }, e), /* @__PURE__ */ c.createElement("path", {
54
- d: "M11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184Z",
55
- fill: "currentColor"
56
- }));
57
- };
58
- i.default = d;
59
- })(p);
60
- const v = /* @__PURE__ */ m(p);
61
- export {
62
- v as default
63
- };