@commercelayer/app-elements 0.0.77 → 0.0.78

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/main.js CHANGED
@@ -1,4 +1,4 @@
1
- import { ah as o, aW as n, ai as i, aj as u, ak as l, am as b, an as g, ao as d, ap as p, aX as m, aq as c, aY as S, ar as T, aa as I, aQ as D, aR as k, aS as y, as as C, ad as P, at as h, au as B, av as A, aw as R, b3 as L, b4 as v, b5 as O, b6 as f, b8 as N, b9 as F, ba as x, bb as M, bc as w, bd as V, be as G, bf as E, bg as H, bm as J, bn as j, bo as q, bp as z, bq as K, ay as Q, bx as U, bt as W, bu as X, bv as Y, bw as Z, by as $, bz as _, ae as aa, bA as ea, bB as sa, az as ta, aZ as ra, aA as oa, a_ as na, a$ as ia, aB as ua, aC as la, aD as ba, br as ga, bC as da, b0 as pa, bD as ma, bE as ca, b1 as Sa, bF as Ta, aE as Ia, aF as Da, aG as ka, aI as ya, aJ as Ca, aK as Pa, aL as ha, aM as Ba, bG as Aa, bH as Ra, aN as La, aO as va, aT as Oa, aP as fa, aU as Na, b2 as Fa, bs as xa, af as Ma, aV as wa, al as Va, X as Ga, W as Ea, bh as Ha, b7 as Ja, R as ja, Y as qa, Z as za, $ as Ka, bi as Qa, S as Ua, T as Wa, bI as Xa, bJ as Ya, bK as Za, bL as $a, bM as _a, bN as ae, a0 as ee, a1 as se, a2 as te, a3 as re, M as oe, a4 as ne, a5 as ie, ax as ue, O as le, bj as be, bk as ge, bl as de, N as pe, Q as me, U as ce, V as Se, a6 as Te, ab as Ie, ac as De, a7 as ke, a8 as ye, a9 as Ce, ag as Pe, aH as he } from "./main-237699b9.js";
1
+ import { ah as o, aW as n, ai as i, aj as u, ak as l, am as b, an as g, ao as d, ap as p, aX as m, aq as c, aY as S, ar as T, aa as I, aQ as D, aR as k, aS as y, as as C, ad as P, at as h, au as B, av as A, aw as R, b3 as L, b4 as v, b5 as O, b6 as f, b8 as N, b9 as F, ba as x, bb as M, bc as w, bd as V, be as G, bf as E, bg as H, bm as J, bn as j, bo as q, bp as z, bq as K, ay as Q, bx as U, bt as W, bu as X, bv as Y, bw as Z, by as $, bz as _, ae as aa, bA as ea, bB as sa, az as ta, aZ as ra, aA as oa, a_ as na, a$ as ia, aB as ua, aC as la, aD as ba, br as ga, bC as da, b0 as pa, bD as ma, bE as ca, b1 as Sa, bF as Ta, aE as Ia, aF as Da, aG as ka, aI as ya, aJ as Ca, aK as Pa, aL as ha, aM as Ba, bG as Aa, bH as Ra, aN as La, aO as va, aT as Oa, aP as fa, aU as Na, b2 as Fa, bs as xa, af as Ma, aV as wa, al as Va, X as Ga, W as Ea, bh as Ha, b7 as Ja, R as ja, Y as qa, Z as za, $ as Ka, bi as Qa, S as Ua, T as Wa, bI as Xa, bJ as Ya, bK as Za, bL as $a, bM as _a, bN as ae, a0 as ee, a1 as se, a2 as te, a3 as re, M as oe, a4 as ne, a5 as ie, ax as ue, O as le, bj as be, bk as ge, bl as de, N as pe, Q as me, U as ce, V as Se, a6 as Te, ab as Ie, ac as De, a7 as ke, a8 as ye, a9 as Ce, ag as Pe, aH as he } from "./main-740e7f02.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  import "@commercelayer/sdk";
@@ -1,7 +1,7 @@
1
- import { d as Se, g as gr, _ as In, a as br, b as pr, c as fr, f as mr } from "./unsupportedIterableToArray-35997f1b.js";
1
+ import { d as Se, g as gr, _ as In, a as br, b as pr, c as fr, f as mr } from "./unsupportedIterableToArray-1a2db0a9.js";
2
2
  import * as B from "react";
3
3
  import { useLayoutEffect as vn, forwardRef as Ir, useContext as Te, createElement as me, Fragment as Be, createContext as Ct, useRef as oe, useState as Ie, useMemo as Ce, useCallback as Y, Component as vr, useEffect as hn } from "react";
4
- import { _ as hr, H as se, K as Cn } from "./main-237699b9.js";
4
+ import { _ as hr, H as se, K as Cn } from "./main-740e7f02.js";
5
5
  import { createPortal as Cr } from "react-dom";
6
6
  function V() {
7
7
  return V = Object.assign ? Object.assign.bind() : function(t) {
@@ -25,9 +25,15 @@ interface SearchBarProps {
25
25
  * Placeholder text for the input element
26
26
  */
27
27
  placeholder?: string;
28
+ /**
29
+ * Enable auto focus on the input element
30
+ */
31
+ autoFocus?: boolean;
28
32
  }
29
- declare function SearchBar({ initialValue, onSearch, onClear, debounceMs, className, placeholder, ...rest }: SearchBarProps): JSX.Element;
30
- declare namespace SearchBar {
31
- var displayName: string;
32
- }
33
- export { SearchBar };
33
+ /**
34
+ * This component renders a search bar with a clear button with debounced `onSearch` callback.
35
+ * <blockquote type='info'>In this way the `onSearch` callback will be triggered only when the user stops typing
36
+ * for the specified value of `debounceMs` (default 500ms).</blockquote>
37
+ */
38
+ export declare const SearchBar: import("react").ForwardRefExoticComponent<SearchBarProps & import("react").RefAttributes<HTMLInputElement>>;
39
+ export {};
@@ -1,4 +1,4 @@
1
- import { _ as i } from "./main-237699b9.js";
1
+ import { _ as i } from "./main-740e7f02.js";
2
2
  function p(e, t) {
3
3
  if (i(e) !== "object" || e === null)
4
4
  return e;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercelayer/app-elements",
3
- "version": "0.0.77",
3
+ "version": "0.0.78",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"