mayak-common-library 0.0.43 → 0.0.45
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/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -2
- package/dist/index.mjs +1 -2
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -110,11 +110,11 @@ interface FromToInputProps {
|
|
|
110
110
|
}
|
|
111
111
|
declare const FromToInput: FC<FromToInputProps>;
|
|
112
112
|
|
|
113
|
-
interface SearchInputProps<T
|
|
113
|
+
interface SearchInputProps<T> {
|
|
114
114
|
onClick?: (event: MouseEvent<HTMLDivElement>) => void;
|
|
115
115
|
collapse?: boolean;
|
|
116
116
|
}
|
|
117
|
-
declare const SearchInput: <T extends object>(props: SearchInputProps<T>) => react_jsx_runtime.JSX.Element;
|
|
117
|
+
declare const SearchInput: <T extends object>(props: SearchInputProps<T> & UseControllerProps<T>) => react_jsx_runtime.JSX.Element;
|
|
118
118
|
|
|
119
119
|
declare const Providers: FC<PropsWithChildren>;
|
|
120
120
|
|
package/dist/index.d.ts
CHANGED
|
@@ -110,11 +110,11 @@ interface FromToInputProps {
|
|
|
110
110
|
}
|
|
111
111
|
declare const FromToInput: FC<FromToInputProps>;
|
|
112
112
|
|
|
113
|
-
interface SearchInputProps<T
|
|
113
|
+
interface SearchInputProps<T> {
|
|
114
114
|
onClick?: (event: MouseEvent<HTMLDivElement>) => void;
|
|
115
115
|
collapse?: boolean;
|
|
116
116
|
}
|
|
117
|
-
declare const SearchInput: <T extends object>(props: SearchInputProps<T>) => react_jsx_runtime.JSX.Element;
|
|
117
|
+
declare const SearchInput: <T extends object>(props: SearchInputProps<T> & UseControllerProps<T>) => react_jsx_runtime.JSX.Element;
|
|
118
118
|
|
|
119
119
|
declare const Providers: FC<PropsWithChildren>;
|
|
120
120
|
|
package/dist/index.js
CHANGED
|
@@ -657,7 +657,6 @@ var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
|
657
657
|
var SearchInput = (props) => {
|
|
658
658
|
const { collapse } = props;
|
|
659
659
|
const { field } = (0, import_react_hook_form.useController)(props);
|
|
660
|
-
console.log(collapse);
|
|
661
660
|
const handleSearchInputClick = (event) => {
|
|
662
661
|
if (props.onClick) {
|
|
663
662
|
props.onClick(event);
|
|
@@ -672,7 +671,7 @@ var SearchInput = (props) => {
|
|
|
672
671
|
startAdornment: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_material12.Stack, { direction: "row", alignItems: "center", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_material12.InputAdornment, { position: "start", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(search_default, {}) }) }),
|
|
673
672
|
disableUnderline: true,
|
|
674
673
|
placeholder: "\u041F\u043E\u0448\u0443\u043A \u043F\u043E \u0440\u0430\u0439\u043E\u043D\u0443, \u0432\u0443\u043B\u0438\u0446\u0456, \u0416\u041A",
|
|
675
|
-
className: `w-full border rounded-none border-solid normal-case text-accent-dark gap-x-2 px-5 h-[38px] ${collapse ? "bg-white border-transparent" : "border-accent-beige"} hover:bg-white`
|
|
674
|
+
className: `w-full border rounded-none border-solid normal-case text-accent-dark gap-x-2 px-5 h-[38px] ${collapse ? "!bg-white !border-transparent" : "!border-accent-beige"} hover:bg-white`
|
|
676
675
|
})
|
|
677
676
|
);
|
|
678
677
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -597,7 +597,6 @@ import { jsx as jsx20 } from "react/jsx-runtime";
|
|
|
597
597
|
var SearchInput = (props) => {
|
|
598
598
|
const { collapse } = props;
|
|
599
599
|
const { field } = useController(props);
|
|
600
|
-
console.log(collapse);
|
|
601
600
|
const handleSearchInputClick = (event) => {
|
|
602
601
|
if (props.onClick) {
|
|
603
602
|
props.onClick(event);
|
|
@@ -612,7 +611,7 @@ var SearchInput = (props) => {
|
|
|
612
611
|
startAdornment: /* @__PURE__ */ jsx20(Stack3, { direction: "row", alignItems: "center", children: /* @__PURE__ */ jsx20(InputAdornment2, { position: "start", children: /* @__PURE__ */ jsx20(search_default, {}) }) }),
|
|
613
612
|
disableUnderline: true,
|
|
614
613
|
placeholder: "\u041F\u043E\u0448\u0443\u043A \u043F\u043E \u0440\u0430\u0439\u043E\u043D\u0443, \u0432\u0443\u043B\u0438\u0446\u0456, \u0416\u041A",
|
|
615
|
-
className: `w-full border rounded-none border-solid normal-case text-accent-dark gap-x-2 px-5 h-[38px] ${collapse ? "bg-white border-transparent" : "border-accent-beige"} hover:bg-white`
|
|
614
|
+
className: `w-full border rounded-none border-solid normal-case text-accent-dark gap-x-2 px-5 h-[38px] ${collapse ? "!bg-white !border-transparent" : "!border-accent-beige"} hover:bg-white`
|
|
616
615
|
})
|
|
617
616
|
);
|
|
618
617
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mayak-common-library",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.45",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -24,8 +24,7 @@
|
|
|
24
24
|
"react-hook-form": "^7.52.0",
|
|
25
25
|
"react-number-format": "^5.4.0",
|
|
26
26
|
"sass": "^1.77.7",
|
|
27
|
-
"stylis": "^4.3.2"
|
|
28
|
-
"tailwindcss": "^3.4.4"
|
|
27
|
+
"stylis": "^4.3.2"
|
|
29
28
|
},
|
|
30
29
|
"peerDependencies": {
|
|
31
30
|
"react-hook-form": "^7.52.0"
|
|
@@ -45,6 +44,7 @@
|
|
|
45
44
|
"install": "^0.13.0",
|
|
46
45
|
"postcss": "^8.4.39",
|
|
47
46
|
"prettier": "^3.3.2",
|
|
47
|
+
"tailwindcss": "^3.4.10",
|
|
48
48
|
"tsup": "^8.1.0",
|
|
49
49
|
"typescript": "^5"
|
|
50
50
|
},
|