@liujip0/components 0.2.21 → 0.2.23
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.
|
@@ -14,5 +14,6 @@ export type InputProps = {
|
|
|
14
14
|
inputClassName?: string;
|
|
15
15
|
labelClassName?: string;
|
|
16
16
|
helperTextClassName?: string;
|
|
17
|
+
ref?: React.RefObject<HTMLInputElement>;
|
|
17
18
|
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "id" | "value" | "onChange" | "type" | "disabled" | "className">;
|
|
18
|
-
export declare function Input({ id, value, onChange, type, label, helperText, startIcon, endIcon, error, disabled, className, outlineClassName, inputClassName, labelClassName, helperTextClassName, ...props }: InputProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare function Input({ id, value, onChange, type, label, helperText, startIcon, endIcon, error, disabled, className, outlineClassName, inputClassName, labelClassName, helperTextClassName, ref, ...props }: InputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as c, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { s as e } from "../../Input.module-lBhDn5k1.js";
|
|
3
|
-
function
|
|
3
|
+
function y({
|
|
4
4
|
id: t,
|
|
5
5
|
value: m,
|
|
6
6
|
onChange: l,
|
|
@@ -16,7 +16,8 @@ function g({
|
|
|
16
16
|
inputClassName: N,
|
|
17
17
|
labelClassName: d,
|
|
18
18
|
helperTextClassName: f,
|
|
19
|
-
|
|
19
|
+
ref: v,
|
|
20
|
+
...j
|
|
20
21
|
}) {
|
|
21
22
|
return /* @__PURE__ */ c("div", { className: e.container + " " + (h || ""), children: [
|
|
22
23
|
s && /* @__PURE__ */ r(
|
|
@@ -38,13 +39,14 @@ function g({
|
|
|
38
39
|
{
|
|
39
40
|
className: e.input + " " + (N || "") + " " + (i ? e.inputDisabled : ""),
|
|
40
41
|
value: m,
|
|
41
|
-
onChange: (
|
|
42
|
-
l && l(
|
|
42
|
+
onChange: (T) => {
|
|
43
|
+
l && l(T.currentTarget.value);
|
|
43
44
|
},
|
|
44
45
|
type: o,
|
|
45
46
|
id: t,
|
|
46
47
|
disabled: i,
|
|
47
|
-
|
|
48
|
+
ref: v,
|
|
49
|
+
...j
|
|
48
50
|
}
|
|
49
51
|
),
|
|
50
52
|
p
|
|
@@ -61,5 +63,5 @@ function g({
|
|
|
61
63
|
] });
|
|
62
64
|
}
|
|
63
65
|
export {
|
|
64
|
-
|
|
66
|
+
y as Input
|
|
65
67
|
};
|
|
@@ -11,6 +11,7 @@ type TextAreaProps = {
|
|
|
11
11
|
textAreaClassName?: string;
|
|
12
12
|
labelClassName?: string;
|
|
13
13
|
helperTextClassName?: string;
|
|
14
|
+
ref?: React.RefObject<HTMLTextAreaElement>;
|
|
14
15
|
} & Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "id" | "value" | "onChange" | "disabled" | "className">;
|
|
15
|
-
export declare function TextArea({ id, value, onChange, label, helperText, error, disabled, className, outlineClassName, textAreaClassName, labelClassName, helperTextClassName, ...props }: TextAreaProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare function TextArea({ id, value, onChange, label, helperText, error, disabled, className, outlineClassName, textAreaClassName, labelClassName, helperTextClassName, ref, ...props }: TextAreaProps): import("react/jsx-runtime").JSX.Element;
|
|
16
17
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as f, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { s as e } from "../../Input.module-lBhDn5k1.js";
|
|
3
|
-
function
|
|
3
|
+
function j({
|
|
4
4
|
id: a,
|
|
5
5
|
value: c,
|
|
6
6
|
onChange: t,
|
|
@@ -13,9 +13,10 @@ function T({
|
|
|
13
13
|
textAreaClassName: u,
|
|
14
14
|
labelClassName: p,
|
|
15
15
|
helperTextClassName: h,
|
|
16
|
-
|
|
16
|
+
ref: x,
|
|
17
|
+
...N
|
|
17
18
|
}) {
|
|
18
|
-
return /* @__PURE__ */
|
|
19
|
+
return /* @__PURE__ */ f("div", { className: e.container + " " + (m || ""), children: [
|
|
19
20
|
l && /* @__PURE__ */ r(
|
|
20
21
|
"label",
|
|
21
22
|
{
|
|
@@ -33,12 +34,13 @@ function T({
|
|
|
33
34
|
{
|
|
34
35
|
className: e.input + " " + (u || "") + " " + (n ? e.inputDisabled : ""),
|
|
35
36
|
value: c,
|
|
36
|
-
onChange: (
|
|
37
|
-
t && t(
|
|
37
|
+
onChange: (d) => {
|
|
38
|
+
t && t(d.currentTarget.value);
|
|
38
39
|
},
|
|
39
40
|
id: a,
|
|
40
41
|
disabled: n,
|
|
41
|
-
|
|
42
|
+
ref: x,
|
|
43
|
+
...N
|
|
42
44
|
}
|
|
43
45
|
)
|
|
44
46
|
}
|
|
@@ -53,5 +55,5 @@ function T({
|
|
|
53
55
|
] });
|
|
54
56
|
}
|
|
55
57
|
export {
|
|
56
|
-
|
|
58
|
+
j as TextArea
|
|
57
59
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liujip0/components",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.23",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/main.js",
|
|
7
7
|
"types": "dist/main.d.ts",
|
|
@@ -9,39 +9,39 @@
|
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"peerDependencies": {
|
|
12
|
-
"@material-symbols/font-400": "^0.
|
|
13
|
-
"react": "^19.2.
|
|
14
|
-
"react-dom": "^19.2.
|
|
12
|
+
"@material-symbols/font-400": "^0.40.2",
|
|
13
|
+
"react": "^19.2.3",
|
|
14
|
+
"react-dom": "^19.2.3"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@eslint-react/eslint-plugin": "^2.3.
|
|
17
|
+
"@eslint-react/eslint-plugin": "^2.3.13",
|
|
18
18
|
"@eslint/css": "^0.14.1",
|
|
19
|
-
"@eslint/js": "^9.39.
|
|
19
|
+
"@eslint/js": "^9.39.2",
|
|
20
20
|
"@eslint/json": "^0.14.0",
|
|
21
21
|
"@eslint/markdown": "^7.5.1",
|
|
22
|
-
"@material-symbols/font-400": "^0.
|
|
23
|
-
"@storybook/addon-docs": "10.
|
|
24
|
-
"@storybook/addon-onboarding": "10.
|
|
25
|
-
"@storybook/react-vite": "10.
|
|
26
|
-
"@types/node": "^
|
|
27
|
-
"@types/react": "^19.2.
|
|
22
|
+
"@material-symbols/font-400": "^0.40.2",
|
|
23
|
+
"@storybook/addon-docs": "10.1.8",
|
|
24
|
+
"@storybook/addon-onboarding": "10.1.8",
|
|
25
|
+
"@storybook/react-vite": "10.1.8",
|
|
26
|
+
"@types/node": "^25.0.2",
|
|
27
|
+
"@types/react": "^19.2.7",
|
|
28
28
|
"@types/react-dom": "^19.2.3",
|
|
29
|
-
"@vitejs/plugin-react": "^5.1.
|
|
30
|
-
"eslint": "^9.39.
|
|
29
|
+
"@vitejs/plugin-react": "^5.1.2",
|
|
30
|
+
"eslint": "^9.39.2",
|
|
31
31
|
"eslint-plugin-react": "^7.37.5",
|
|
32
32
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
33
33
|
"eslint-plugin-react-refresh": "^0.4.24",
|
|
34
|
-
"eslint-plugin-storybook": "10.
|
|
35
|
-
"glob": "^
|
|
34
|
+
"eslint-plugin-storybook": "10.1.8",
|
|
35
|
+
"glob": "^13.0.0",
|
|
36
36
|
"globals": "^16.5.0",
|
|
37
37
|
"jiti": "^2.6.1",
|
|
38
|
-
"prettier": "^3.
|
|
39
|
-
"react": "^19.2.
|
|
40
|
-
"react-dom": "^19.2.
|
|
41
|
-
"storybook": "10.
|
|
38
|
+
"prettier": "^3.7.4",
|
|
39
|
+
"react": "^19.2.3",
|
|
40
|
+
"react-dom": "^19.2.3",
|
|
41
|
+
"storybook": "10.1.8",
|
|
42
42
|
"typescript": "~5.9.3",
|
|
43
|
-
"typescript-eslint": "^8.
|
|
44
|
-
"vite": "^7.2.
|
|
43
|
+
"typescript-eslint": "^8.49.0",
|
|
44
|
+
"vite": "^7.2.7",
|
|
45
45
|
"vite-plugin-dts": "^4.5.4",
|
|
46
46
|
"vite-plugin-lib-inject-css": "^2.2.2"
|
|
47
47
|
},
|