@okam/stack-ui 1.22.0 → 1.23.1
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/components/fields/SearchField/index.d.ts +3 -0
- package/components/fields/SearchField/interface.d.ts +9 -0
- package/index.d.ts +2 -0
- package/index.js +12 -12
- package/index.mjs +2197 -2156
- package/package.json +1 -1
- package/providers/UserSearchQuery/index.d.ts +4 -0
- package/providers/UserSearchQuery/interface.d.ts +10 -0
- package/Search-orhI7--e.mjs +0 -13
- package/Search-xfrfRZIK.js +0 -1
package/package.json
CHANGED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { TSearchListingContext, TSearchProviderProps } from './interface';
|
|
3
|
+
export declare const useUserQueryValHook: () => TSearchListingContext, SearchProvider: import("react").Provider<TSearchListingContext | undefined>;
|
|
4
|
+
export declare function SearchBarProvider(props: TSearchProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import type React from 'react';
|
|
3
|
+
export type TSearchListingContext = {
|
|
4
|
+
userSearchQuery: string;
|
|
5
|
+
setUserSearchQuery: Dispatch<SetStateAction<string>>;
|
|
6
|
+
};
|
|
7
|
+
export interface TSearchProviderProps {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
userQuery: string;
|
|
10
|
+
}
|
package/Search-orhI7--e.mjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { jsxs as o, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import e from "lodash.isequal";
|
|
3
|
-
import { memo as l } from "react";
|
|
4
|
-
const i = (t) => /* @__PURE__ */ o("svg", { width: 20, height: 20, xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 20 20", ...t, children: [
|
|
5
|
-
/* @__PURE__ */ o("g", { stroke: "currentColor", clipPath: "url(#a)", children: [
|
|
6
|
-
/* @__PURE__ */ r("circle", { cx: "8.2727", cy: "8.2727", r: "7.2727" }),
|
|
7
|
-
/* @__PURE__ */ r("path", { d: "M13.4551 13.4531L19.5005 19.4986" })
|
|
8
|
-
] }),
|
|
9
|
-
/* @__PURE__ */ r("defs", { children: /* @__PURE__ */ r("clipPath", { children: /* @__PURE__ */ r("path", { fill: "currentColor", d: "M0 0h14v14H0z" }) }) })
|
|
10
|
-
] }), s = l(i, e);
|
|
11
|
-
export {
|
|
12
|
-
s as default
|
|
13
|
-
};
|
package/Search-xfrfRZIK.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("lodash.isequal"),s=require("react"),c=r=>e.jsxs("svg",{width:20,height:20,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...r,children:[e.jsxs("g",{stroke:"currentColor",clipPath:"url(#a)",children:[e.jsx("circle",{cx:"8.2727",cy:"8.2727",r:"7.2727"}),e.jsx("path",{d:"M13.4551 13.4531L19.5005 19.4986"})]}),e.jsx("defs",{children:e.jsx("clipPath",{children:e.jsx("path",{fill:"currentColor",d:"M0 0h14v14H0z"})})})]}),i=s.memo(c,t);exports.default=i;
|