@react-hive/honey-layout 3.2.0 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,9 +28,7 @@ export type HoneyGridProps = HoneyGridStyledProps & {
28
28
  */
29
29
  applyColumnMaxWidth?: HoneyGridColumnStyledProps['applyMaxWidth'];
30
30
  };
31
- export declare const HoneyGrid: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & import('../../types').HoneyPrefixedCSSProperties & {
32
- effects?: import('../../types').HoneyEffectResultFn<object>[];
33
- } & {
31
+ export declare const HoneyGrid: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & Omit<import('..').HoneyBoxProps, "$gap"> & {
34
32
  columnHeight?: import('csstype').Properties["height"];
35
33
  minColumnHeight?: import('csstype').Properties["minHeight"];
36
34
  spacing?: number;
@@ -1,7 +1,7 @@
1
1
  import { HTMLAttributes } from 'react';
2
2
  import { HoneyBoxProps } from '../HoneyBox';
3
3
  import * as CSS from 'csstype';
4
- export type HoneyGridStyledProps = HTMLAttributes<HTMLDivElement> & HoneyBoxProps & {
4
+ export type HoneyGridStyledProps = HTMLAttributes<HTMLDivElement> & Omit<HoneyBoxProps, '$gap'> & {
5
5
  /**
6
6
  * The height of each grid column.
7
7
  */
@@ -1,4 +1,4 @@
1
- import { MutableRefObject } from 'react';
1
+ import { RefObject } from 'react';
2
2
  import { Nullable } from '../types';
3
3
  /**
4
4
  * The handler that is triggered when dragging starts.
@@ -102,9 +102,9 @@ export type HoneyDragOptions = {
102
102
  *
103
103
  * @template Element - The type of the HTML element that is being dragged.
104
104
  *
105
- * @param {MutableRefObject<Nullable<Element>>} draggableElementRef - A reference to the element that can be dragged.
105
+ * @param {RefObject<Nullable<Element>>} draggableElementRef - A reference to the element that can be dragged.
106
106
  * @param {HoneyDragHandlers<Element>} handlers - The drag event handlers for different stages of the drag operation (start, move, end).
107
107
  * @param {HoneyDragOptions} options - Configuration options.
108
108
  */
109
- export declare const useHoneyDrag: <Element extends HTMLElement>(draggableElementRef: MutableRefObject<Nullable<Element>>, { onMoveDrag, onStartDrag, onEndDrag }: HoneyDragHandlers<Element>, { isEnabled }?: HoneyDragOptions) => void;
109
+ export declare const useHoneyDrag: <Element extends HTMLElement>(draggableElementRef: RefObject<Nullable<Element>>, { onMoveDrag, onStartDrag, onEndDrag }: HoneyDragHandlers<Element>, { isEnabled }?: HoneyDragOptions) => void;
110
110
  export {};
@@ -1,4 +1,4 @@
1
- import { MutableRefObject } from 'react';
1
+ import { RefObject } from 'react';
2
2
  import { Nullable } from '../types';
3
3
  import { HoneyDragHandlers } from './use-honey-drag';
4
4
  type SyntheticScrollableContainerOptions<Element extends HTMLElement> = Pick<HoneyDragHandlers<Element>, 'onStartDrag' | 'onEndDrag'> & {
@@ -14,8 +14,8 @@ type SyntheticScrollableContainerOptions<Element extends HTMLElement> = Pick<Hon
14
14
  * It allows horizontal and vertical dragging within a specified window percentage when the content overflows.
15
15
  * The hook handles touch and mouse events for dragging and resets the scroll position upon window resize.
16
16
  *
17
- * @param {MutableRefObject<Nullable<Element>>} scrollableContainerRef - A ref to the scrollable container element to be assigned to the target element.
17
+ * @param {RefObject<Nullable<Element>>} scrollableContainerRef - A ref to the scrollable container element to be assigned to the target element.
18
18
  * @param {SyntheticScrollableContainerOptions<Element>} options - Options for configuring the synthetic scrollable container.
19
19
  */
20
- export declare const useHoneySyntheticScrollableContainer: <Element extends HTMLElement>(scrollableContainerRef: MutableRefObject<Nullable<Element>>, { availableWindowPercentage, onStartDrag, onEndDrag, }?: SyntheticScrollableContainerOptions<Element>) => void;
20
+ export declare const useHoneySyntheticScrollableContainer: <Element extends HTMLElement>(scrollableContainerRef: RefObject<Nullable<Element>>, { availableWindowPercentage, onStartDrag, onEndDrag, }?: SyntheticScrollableContainerOptions<Element>) => void;
21
21
  export {};
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ const lr = [
7
7
  'select:not([disabled]):not([tabindex="-1"])',
8
8
  'textarea:not([disabled]):not([tabindex="-1"])',
9
9
  '[tabindex="0"]'
10
- ], Kr = (r, o = lr) => r.querySelectorAll(o.join(","));
10
+ ], Zr = (r, o = lr) => r.querySelectorAll(o.join(","));
11
11
  function fr(r) {
12
12
  var o = /* @__PURE__ */ Object.create(null);
13
13
  return function(i) {
@@ -20,7 +20,7 @@ var dr = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|def
20
20
  }
21
21
  /* Z+1 */
22
22
  );
23
- const Zr = (r, o) => typeof o == "string" ? pr(r) : !0, hr = (r) => r.replace(/[A-Z]/g, (o) => `-${o.toLowerCase()}`), Lt = (r) => r.split(" ").filter((o) => o), yt = (r, o = 16) => `${r / o}rem`, gr = (r, o, i, c) => {
23
+ const Qr = (r, o) => typeof o == "string" ? pr(r) : !0, hr = (r) => r.replace(/[A-Z]/g, (o) => `-${o.toLowerCase()}`), Lt = (r) => r.split(" ").filter((o) => o), yt = (r, o = 16) => `${r / o}rem`, gr = (r, o, i, c) => {
24
24
  const u = i - r, s = c - o;
25
25
  return Math.sqrt(u ** 2 + s ** 2);
26
26
  }, Pt = (r, o) => Math.abs(r / o), $t = (r, o) => r * o / 100, yr = (r, o) => {
@@ -76,9 +76,9 @@ const Zr = (r, o) => typeof o == "string" ? pr(r) : !0, hr = (r) => r.replace(/[
76
76
  s + 1
77
77
  );
78
78
  }
79
- }), c), Qr = (r, o, i) => r.filter(
79
+ }), c), eo = (r, o, i) => r.filter(
80
80
  (c) => c.parentId === o && (!i || i(c))
81
- ), eo = (r, o, i, c) => {
81
+ ), to = (r, o, i, c) => {
82
82
  const u = Lt(c.toLowerCase());
83
83
  if (!u.length)
84
84
  return r;
@@ -736,7 +736,7 @@ const Jt = xe(ot)`
736
736
  Kt.defaultProps = {
737
737
  $flexWrap: "wrap"
738
738
  };
739
- const Zt = Bt(void 0), to = Dt(
739
+ const Zt = Bt(void 0), Pr = Dt(
740
740
  ({ children: r, columns: o, spacing: i, isColumnGrowing: c = !0, applyColumnMaxWidth: u = !1, ...s }, l) => {
741
741
  const h = et(
742
742
  () => ({
@@ -749,7 +749,9 @@ const Zt = Bt(void 0), to = Dt(
749
749
  );
750
750
  return /* @__PURE__ */ B.jsx(Zt.Provider, { value: h, children: /* @__PURE__ */ B.jsx(Kt, { ref: l, spacing: i, "data-testid": "honey-grid", ...s, children: r }) });
751
751
  }
752
- ), Pr = () => {
752
+ );
753
+ Pr.displayName = "HoneyGrid";
754
+ const $r = () => {
753
755
  const r = vt(Zt);
754
756
  if (!r)
755
757
  throw new Error(
@@ -760,7 +762,7 @@ const Zt = Bt(void 0), to = Dt(
760
762
  children: r,
761
763
  ...o
762
764
  }) => {
763
- const { columns: i, spacing: c, isColumnGrowing: u, applyColumnMaxWidth: s } = Pr();
765
+ const { columns: i, spacing: c, isColumnGrowing: u, applyColumnMaxWidth: s } = $r();
764
766
  return /* @__PURE__ */ B.jsx(
765
767
  Jt,
766
768
  {
@@ -773,7 +775,7 @@ const Zt = Bt(void 0), to = Dt(
773
775
  children: r
774
776
  }
775
777
  );
776
- }, Qt = (r, o, i) => typeof o == "function" ? o(r) : typeof r == "string" || typeof r == "number" ? r : o ? r[o] : i, $r = ({
778
+ }, Qt = (r, o, i) => typeof o == "function" ? o(r) : typeof r == "string" || typeof r == "number" ? r : o ? r[o] : i, Hr = ({
777
779
  children: r,
778
780
  isLoading: o = !1,
779
781
  isError: i = !1,
@@ -781,9 +783,9 @@ const Zt = Bt(void 0), to = Dt(
781
783
  loadingContent: u = null,
782
784
  errorContent: s = null,
783
785
  noContent: l = null
784
- }) => i ? s : o ? u : c ? l : r, Hr = xe(ot)`
786
+ }) => i ? s : o ? u : c ? l : r, kr = xe(ot)`
785
787
  overflow: hidden auto;
786
- `, kr = ({
788
+ `, Mr = ({
787
789
  children: r,
788
790
  items: o,
789
791
  itemKey: i,
@@ -794,7 +796,7 @@ const Zt = Bt(void 0), to = Dt(
794
796
  noContent: h,
795
797
  ...g
796
798
  }, v) => /* @__PURE__ */ B.jsx(
797
- Hr,
799
+ kr,
798
800
  {
799
801
  ref: v,
800
802
  role: "list",
@@ -802,7 +804,7 @@ const Zt = Bt(void 0), to = Dt(
802
804
  "data-testid": "honey-list",
803
805
  ...g,
804
806
  children: /* @__PURE__ */ B.jsx(
805
- $r,
807
+ Hr,
806
808
  {
807
809
  isLoading: c,
808
810
  loadingContent: u,
@@ -814,9 +816,9 @@ const Zt = Bt(void 0), to = Dt(
814
816
  }
815
817
  )
816
818
  }
817
- ), ro = Dt(kr);
819
+ ), ro = Dt(Mr);
818
820
  var mt, zt;
819
- function Mr() {
821
+ function Nr() {
820
822
  if (zt) return mt;
821
823
  zt = 1;
822
824
  var r = "Expected a function", o = NaN, i = "[object Symbol]", c = /^\s+|\s+$/g, u = /^[-+]0x[0-9a-f]+$/i, s = /^0b[01]+$/i, l = /^0o[0-7]+$/i, h = parseInt, g = typeof be == "object" && be && be.Object === Object && be, v = typeof self == "object" && self && self.Object === Object && self, x = g || v || Function("return this")(), y = Object.prototype, O = y.toString, A = Math.max, H = Math.min, k = function() {
@@ -896,8 +898,8 @@ function Mr() {
896
898
  }
897
899
  return mt = I, mt;
898
900
  }
899
- var Nr = Mr();
900
- const Ir = /* @__PURE__ */ qt(Nr), zr = ({
901
+ var Ir = Nr();
902
+ const zr = /* @__PURE__ */ qt(Ir), Wr = ({
901
903
  delay: r = 0,
902
904
  overrideScreenState: o
903
905
  } = {}) => {
@@ -906,7 +908,7 @@ const Ir = /* @__PURE__ */ qt(Nr), zr = ({
906
908
  ...o
907
909
  }));
908
910
  return ce(() => {
909
- const s = Ir(() => {
911
+ const s = zr(() => {
910
912
  u({ ...kt(i.breakpoints), ...o });
911
913
  }, r);
912
914
  return s(), window.addEventListener("resize", s), window.screen.orientation.addEventListener("change", s), () => {
@@ -1066,7 +1068,7 @@ const Ir = /* @__PURE__ */ qt(Nr), zr = ({
1066
1068
  "The `useHoneyLayout()` hook must be used inside <HoneyLayoutProvider/> component!"
1067
1069
  );
1068
1070
  return r;
1069
- }, Wr = (r, o) => {
1071
+ }, Ur = (r, o) => {
1070
1072
  const { registerOverlay: i, unregisterOverlay: c } = nn(), u = Se(null);
1071
1073
  return ce(() => {
1072
1074
  if (!r)
@@ -1089,7 +1091,7 @@ const Ir = /* @__PURE__ */ qt(Nr), zr = ({
1089
1091
  }, [c, o]), c;
1090
1092
  }, rn = xe(rt)`
1091
1093
  overflow: hidden;
1092
- `, Ur = xe.div``, Yr = ({
1094
+ `, Yr = xe.div``, Br = ({
1093
1095
  children: r,
1094
1096
  items: o,
1095
1097
  itemKey: i,
@@ -1115,7 +1117,7 @@ const Ir = /* @__PURE__ */ qt(Nr), zr = ({
1115
1117
  }, []), /* @__PURE__ */ B.jsx(rt, { $overflow: "hidden", "data-testid": "honey-looping-list-container", ...s, children: /* @__PURE__ */ B.jsx(rn, { ref: g, "data-testid": "honey-looping-list", children: l == null ? void 0 : l.map((x, y, O) => {
1116
1118
  const A = Qt(x, i, y);
1117
1119
  return /* @__PURE__ */ B.jsx(
1118
- Ur,
1120
+ Yr,
1119
1121
  {
1120
1122
  "aria-current": y === c,
1121
1123
  children: r(x, y, O)
@@ -1123,7 +1125,7 @@ const Ir = /* @__PURE__ */ qt(Nr), zr = ({
1123
1125
  String(A)
1124
1126
  );
1125
1127
  }) }) });
1126
- }, Br = xe.div`
1128
+ }, Dr = xe.div`
1127
1129
  padding: 8px;
1128
1130
 
1129
1131
  border-radius: 4px;
@@ -1151,8 +1153,8 @@ const Ir = /* @__PURE__ */ qt(Nr), zr = ({
1151
1153
  }
1152
1154
  `, co = () => {
1153
1155
  const r = Array.from(Array(12)).map((o, i) => i + 1);
1154
- return /* @__PURE__ */ B.jsx(Br, { children: /* @__PURE__ */ B.jsx(
1155
- Yr,
1156
+ return /* @__PURE__ */ B.jsx(Dr, { children: /* @__PURE__ */ B.jsx(
1157
+ Br,
1156
1158
  {
1157
1159
  items: r,
1158
1160
  itemKey: (o) => o.toString(),
@@ -1182,7 +1184,7 @@ const Ir = /* @__PURE__ */ qt(Nr), zr = ({
1182
1184
  onDeactivate: c,
1183
1185
  ...u
1184
1186
  }) => {
1185
- const s = Wr(o, {
1187
+ const s = Ur(o, {
1186
1188
  id: i,
1187
1189
  onKeyUp: Ce(
1188
1190
  (l) => {
@@ -1195,7 +1197,7 @@ const Ir = /* @__PURE__ */ qt(Nr), zr = ({
1195
1197
  overlay: s,
1196
1198
  deactivateOverlay: c
1197
1199
  }) : r });
1198
- }, Dr = () => {
1200
+ }, Gr = () => {
1199
1201
  const [r, o] = tt([]);
1200
1202
  ce(() => {
1201
1203
  if (!r.length)
@@ -1243,11 +1245,11 @@ const Ir = /* @__PURE__ */ qt(Nr), zr = ({
1243
1245
  registerOverlay: i,
1244
1246
  unregisterOverlay: c
1245
1247
  };
1246
- }, Gr = ({
1248
+ }, Xr = ({
1247
1249
  children: r,
1248
1250
  mediaQueryOptions: o
1249
1251
  }) => {
1250
- const i = Ut(), c = zr(o), { overlays: u, registerOverlay: s, unregisterOverlay: l } = Dr(), h = et(
1252
+ const i = Ut(), c = Wr(o), { overlays: u, registerOverlay: s, unregisterOverlay: l } = Gr(), h = et(
1251
1253
  () => ({
1252
1254
  theme: i,
1253
1255
  screenState: c,
@@ -1265,11 +1267,11 @@ const Ir = /* @__PURE__ */ qt(Nr), zr = ({
1265
1267
  }, fo = ({
1266
1268
  theme: r,
1267
1269
  ...o
1268
- }) => /* @__PURE__ */ B.jsx(Yt, { theme: r, children: /* @__PURE__ */ B.jsx(Gr, { ...o }) });
1270
+ }) => /* @__PURE__ */ B.jsx(Yt, { theme: r, children: /* @__PURE__ */ B.jsx(Xr, { ...o }) });
1269
1271
  var Ue = { exports: {} };
1270
1272
  Ue.exports;
1271
1273
  var Wt;
1272
- function Xr() {
1274
+ function Fr() {
1273
1275
  return Wt || (Wt = 1, function(r, o) {
1274
1276
  var i = 200, c = "__lodash_hash_undefined__", u = 800, s = 16, l = 9007199254740991, h = "[object Arguments]", g = "[object Array]", v = "[object AsyncFunction]", x = "[object Boolean]", y = "[object Date]", O = "[object Error]", A = "[object Function]", H = "[object GeneratorFunction]", k = "[object Map]", I = "[object Number]", Y = "[object Null]", V = "[object Object]", he = "[object Proxy]", Z = "[object RegExp]", E = "[object Set]", m = "[object String]", w = "[object Undefined]", D = "[object WeakMap]", Q = "[object ArrayBuffer]", ue = "[object DataView]", q = "[object Float32Array]", z = "[object Float64Array]", X = "[object Int8Array]", ee = "[object Int16Array]", ge = "[object Int32Array]", le = "[object Uint8Array]", ye = "[object Uint8ClampedArray]", Ee = "[object Uint16Array]", te = "[object Uint32Array]", Oe = /[\\^$.*+?()[\]{}|]/g, J = /^\[object .+?Constructor\]$/, me = /^(?:0|[1-9]\d*)$/, S = {};
1275
1277
  S[q] = S[z] = S[X] = S[ee] = S[ge] = S[le] = S[ye] = S[Ee] = S[te] = !0, S[h] = S[g] = S[Q] = S[x] = S[ue] = S[y] = S[O] = S[A] = S[k] = S[I] = S[V] = S[Z] = S[E] = S[m] = S[D] = !1;
@@ -1745,12 +1747,12 @@ function Xr() {
1745
1747
  r.exports = or;
1746
1748
  }(Ue, Ue.exports)), Ue.exports;
1747
1749
  }
1748
- var Fr = Xr();
1749
- const Vr = /* @__PURE__ */ qt(Fr), po = ({
1750
+ var Vr = Fr();
1751
+ const qr = /* @__PURE__ */ qt(Vr), po = ({
1750
1752
  theme: r,
1751
1753
  ...o
1752
1754
  }) => {
1753
- const i = vt(sr), c = et(() => Vr(i, r), [i, r]);
1755
+ const i = vt(sr), c = et(() => qr(i, r), [i, r]);
1754
1756
  return /* @__PURE__ */ B.jsx(Yt, { theme: c, ...o });
1755
1757
  }, ho = ({ durationMs: r, timingFunction: o = "ease-in-out", extraProperties: i = [], activeClassName: c }) => ({ isActive: u = !1 }) => se`
1756
1758
  opacity: ${u ? 1 : 0};
@@ -1770,7 +1772,7 @@ const Vr = /* @__PURE__ */ qt(Fr), po = ({
1770
1772
  export {
1771
1773
  rt as HoneyBox,
1772
1774
  ot as HoneyFlexBox,
1773
- to as HoneyGrid,
1775
+ Pr as HoneyGrid,
1774
1776
  no as HoneyGridColumn,
1775
1777
  Jt as HoneyGridColumnStyled,
1776
1778
  Zt as HoneyGridContext,
@@ -1778,12 +1780,12 @@ export {
1778
1780
  po as HoneyLayoutThemeOverride,
1779
1781
  uo as HoneyLazyContent,
1780
1782
  ro as HoneyList,
1781
- Yr as HoneyLoopingList,
1783
+ Br as HoneyLoopingList,
1782
1784
  co as HoneyLoopingListExample,
1783
- Ur as HoneyLoopingListItemStyled,
1785
+ Yr as HoneyLoopingListItemStyled,
1784
1786
  rn as HoneyLoopingListStyled,
1785
1787
  lo as HoneyOverlay,
1786
- $r as HoneyStatusContent,
1788
+ Hr as HoneyStatusContent,
1787
1789
  Ke as applyBreakpointStyles,
1788
1790
  Vt as bpMedia,
1789
1791
  gr as calculateEuclideanDistance,
@@ -1792,10 +1794,10 @@ export {
1792
1794
  hr as camelToDashCase,
1793
1795
  yr as convertHexToHexWithAlpha,
1794
1796
  Ft as createStyles,
1795
- Qr as filterFlattenedItems,
1797
+ eo as filterFlattenedItems,
1796
1798
  mr as flattenNestedList,
1797
1799
  xr as generateUniqueId,
1798
- Kr as getFocusableHTMLElements,
1800
+ Zr as getFocusableHTMLElements,
1799
1801
  Qt as getHoneyListItemId,
1800
1802
  Gt as getTransformationValues,
1801
1803
  ho as honeyVisibilityTransitionEffect,
@@ -1806,16 +1808,16 @@ export {
1806
1808
  Er as resolveFont,
1807
1809
  kt as resolveScreenState,
1808
1810
  nt as resolveSpacing,
1809
- eo as searchFlattenedItems,
1810
- Zr as shouldForwardProp,
1811
+ to as searchFlattenedItems,
1812
+ Qr as shouldForwardProp,
1811
1813
  Lt as splitStringIntoWords,
1812
- Pr as useCurrentHoneyGrid,
1814
+ $r as useCurrentHoneyGrid,
1813
1815
  ao as useHoneyDocumentKeyUpHandler,
1814
1816
  en as useHoneyDrag,
1815
1817
  oo as useHoneyInfiniteScroll,
1816
1818
  nn as useHoneyLayout,
1817
- zr as useHoneyMediaQuery,
1819
+ Wr as useHoneyMediaQuery,
1818
1820
  so as useHoneyOverlay,
1819
1821
  io as useHoneySyntheticScrollableContainer,
1820
- Wr as useRegisterHoneyOverlay
1822
+ Ur as useRegisterHoneyOverlay
1821
1823
  };
@@ -1,4 +1,4 @@
1
- import { ElementType, MutableRefObject } from 'react';
1
+ import { ElementType, RefObject } from 'react';
2
2
  import { ExecutionContext, StyleFunction } from 'styled-components';
3
3
  import { DataType } from 'csstype';
4
4
  import { HoneyCSSColorProperty, HoneyCSSDimensionNumericValue, HoneyCSSDimensionValue } from './css.types';
@@ -309,7 +309,7 @@ export type HoneyActiveOverlay = {
309
309
  /**
310
310
  * Reference to the container element of the overlay.
311
311
  */
312
- containerRef: MutableRefObject<Nullable<HTMLDivElement>>;
312
+ containerRef: RefObject<Nullable<HTMLDivElement>>;
313
313
  /**
314
314
  * Sets the container reference for the overlay.
315
315
  *
package/dist/utils.d.ts CHANGED
@@ -65,17 +65,18 @@ export declare const convertHexToHexWithAlpha: (hex: string, alpha: number) => H
65
65
  * @returns {string} The generated media query string.
66
66
  */
67
67
  export declare const media: (rules: HoneyCSSMediaRule[]) => string;
68
+ type HTMLElementTransformationValues = {
69
+ translateX: number;
70
+ translateY: number;
71
+ };
68
72
  /**
69
73
  * Get various transformation values from the transformation matrix of an element.
70
74
  *
71
75
  * @param {HTMLElement} element - The element with a transformation applied.
72
76
  *
73
- * @returns An object containing transformation values.
77
+ * @returns {HTMLElementTransformationValues} An object containing transformation values.
74
78
  */
75
- export declare const getTransformationValues: (element: HTMLElement) => {
76
- translateX: number;
77
- translateY: number;
78
- };
79
+ export declare const getTransformationValues: (element: HTMLElement) => HTMLElementTransformationValues;
79
80
  /**
80
81
  * Recursively converts a nested list structure into a flat list. It excludes the nested list key from the result
81
82
  * while adding hierarchical metadata, such as `depthLevel`, `parentId`, and `totalNestedItems` to each flattened item.
@@ -166,3 +167,4 @@ export declare const filterFlattenedItems: <OriginItem extends object, NestedLis
166
167
  * ```
167
168
  */
168
169
  export declare const searchFlattenedItems: <OriginItem extends object, NestedListKey extends string>(flattenedItems: HoneyFlattenedItem<OriginItem, NestedListKey>[], itemIdKey: KeysWithNonArrayValues<OriginItem>, valueKey: KeysWithStringValues<OriginItem>, searchQuery: string) => HoneyFlattenedItem<OriginItem, NestedListKey>[];
170
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-hive/honey-layout",
3
- "version": "3.2.0",
3
+ "version": "3.3.0",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "react",
@@ -33,10 +33,10 @@
33
33
  "peerDependencies": {
34
34
  "@mdx-js/react": "3.1.0",
35
35
  "highlight.js": "11.11.1",
36
- "react": ">=18.0.0",
37
- "react-dom": ">=18.0.0",
38
- "react-router-dom": "6.28.0",
39
- "styled-components": "6.1.14"
36
+ "react": "^18.0.0 || ^19.0.0",
37
+ "react-dom": "^18.0.0 || ^19.0.0",
38
+ "react-router-dom": "^6.0.0",
39
+ "styled-components": "^6.0.0"
40
40
  },
41
41
  "dependencies": {
42
42
  "@emotion/is-prop-valid": "1.3.1",
@@ -45,15 +45,15 @@
45
45
  "lodash.merge": "4.6.2"
46
46
  },
47
47
  "devDependencies": {
48
- "@eslint/js": "^9.17.0",
48
+ "@eslint/js": "9.17.0",
49
49
  "@mdx-js/rollup": "3.1.0",
50
50
  "@testing-library/react": "16.1.0",
51
51
  "@types/jest": "29.5.14",
52
52
  "@types/lodash.debounce": "4.0.9",
53
53
  "@types/lodash.merge": "4.6.9",
54
54
  "@types/mdx": "2.0.13",
55
- "@types/react": ">=18.0.0",
56
- "@types/react-dom": ">=18.0.0",
55
+ "@types/react": "^18.0.0 || ^19.0.0",
56
+ "@types/react-dom": "^18.0.0 || ^19.0.0",
57
57
  "@vitejs/plugin-react": "4.3.4",
58
58
  "eslint": "9.17.0",
59
59
  "eslint-plugin-react": "7.37.3",