@liujip0/components 0.2.3 → 0.2.4
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type InputProps = {
|
|
1
|
+
export type InputProps = {
|
|
2
2
|
id: string;
|
|
3
3
|
value: string | number;
|
|
4
4
|
onChange?: (value: string) => void;
|
|
@@ -16,4 +16,3 @@ type InputProps = {
|
|
|
16
16
|
helperTextClassName?: string;
|
|
17
17
|
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "id" | "value" | "onChange" | "type" | "disabled" | "className">;
|
|
18
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 {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useState as r } from "react";
|
|
3
|
+
import '../../assets/main.css';/* empty css */
|
|
4
|
+
import { IconButton as e } from "../Button/IconButton/IconButton.js";
|
|
5
|
+
import "../../utils/omit.js";
|
|
6
|
+
import { Input as n } from "./Input.js";
|
|
7
|
+
function f({ ...t }) {
|
|
8
|
+
const [s, i] = r(!1);
|
|
9
|
+
return /* @__PURE__ */ o(
|
|
10
|
+
n,
|
|
11
|
+
{
|
|
12
|
+
type: s ? "text" : "password",
|
|
13
|
+
endIcon: /* @__PURE__ */ o(
|
|
14
|
+
e,
|
|
15
|
+
{
|
|
16
|
+
onClick: () => {
|
|
17
|
+
i(!s);
|
|
18
|
+
},
|
|
19
|
+
children: s ? /* @__PURE__ */ o("span", { className: "material-symbols-outlined", children: "visibility_off" }) : /* @__PURE__ */ o("span", { className: "material-symbols-outlined", children: "visibility" })
|
|
20
|
+
}
|
|
21
|
+
),
|
|
22
|
+
...t
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
f as Password
|
|
28
|
+
};
|
package/dist/main.js
CHANGED
|
@@ -1,48 +1,49 @@
|
|
|
1
|
-
import
|
|
1
|
+
import './assets/main.css';/* empty css */
|
|
2
|
+
import { Button as p } from "./components/Button/Button.js";
|
|
2
3
|
import { IconButton as x } from "./components/Button/IconButton/IconButton.js";
|
|
3
|
-
import { ToggleButton as
|
|
4
|
+
import { ToggleButton as f } from "./components/Button/ToggleButton/ToggleButton.js";
|
|
4
5
|
import { ToggleButtonGroup as n } from "./components/Button/ToggleButton/ToggleButtonGroup.js";
|
|
5
|
-
import { Dialog as
|
|
6
|
-
import { Divider as
|
|
7
|
-
import { Input as
|
|
8
|
-
import { TextArea as
|
|
9
|
-
import { Checkbox as
|
|
10
|
-
import { Counter as
|
|
11
|
-
import { Radio as
|
|
12
|
-
import { RadioGroup as
|
|
13
|
-
import { Select as
|
|
14
|
-
import { Snackbar as
|
|
15
|
-
import { Table as
|
|
16
|
-
import { Tab as
|
|
17
|
-
import { TabBar as
|
|
18
|
-
import { Tabs as
|
|
19
|
-
import { Tooltip as
|
|
20
|
-
|
|
6
|
+
import { Dialog as T, DialogActions as u, DialogContent as g, DialogTitle as b } from "./components/Dialog/Dialog.js";
|
|
7
|
+
import { Divider as d } from "./components/Divider/Divider.js";
|
|
8
|
+
import { Input as B } from "./components/Input/Input.js";
|
|
9
|
+
import { TextArea as C } from "./components/Input/TextArea.js";
|
|
10
|
+
import { Checkbox as k } from "./components/Input/Checkbox/Checkbox.js";
|
|
11
|
+
import { Counter as G } from "./components/Input/Counter/Counter.js";
|
|
12
|
+
import { Radio as R } from "./components/Input/Radio/Radio.js";
|
|
13
|
+
import { RadioGroup as v } from "./components/Input/Radio/RadioGroup.js";
|
|
14
|
+
import { Select as j } from "./components/Input/Select/Select.js";
|
|
15
|
+
import { Snackbar as w } from "./components/Snackbar/Snackbar.js";
|
|
16
|
+
import { Table as z, TableHead as E, Td as F, Th as J } from "./components/Table/Table.js";
|
|
17
|
+
import { Tab as L } from "./components/Tabs/Tab.js";
|
|
18
|
+
import { TabBar as N } from "./components/Tabs/TabBar.js";
|
|
19
|
+
import { Tabs as P } from "./components/Tabs/Tabs.js";
|
|
20
|
+
import { Tooltip as U } from "./components/Tooltip/Tooltip.js";
|
|
21
|
+
const r = "./main.css";
|
|
21
22
|
export {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
23
|
+
p as Button,
|
|
24
|
+
k as Checkbox,
|
|
25
|
+
G as Counter,
|
|
26
|
+
T as Dialog,
|
|
27
|
+
u as DialogActions,
|
|
28
|
+
g as DialogContent,
|
|
29
|
+
b as DialogTitle,
|
|
30
|
+
d as Divider,
|
|
30
31
|
x as IconButton,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
32
|
+
B as Input,
|
|
33
|
+
R as Radio,
|
|
34
|
+
v as RadioGroup,
|
|
35
|
+
j as Select,
|
|
36
|
+
w as Snackbar,
|
|
37
|
+
L as Tab,
|
|
38
|
+
N as TabBar,
|
|
39
|
+
z as Table,
|
|
40
|
+
E as TableHead,
|
|
41
|
+
P as Tabs,
|
|
42
|
+
F as Td,
|
|
43
|
+
C as TextArea,
|
|
44
|
+
J as Th,
|
|
45
|
+
f as ToggleButton,
|
|
45
46
|
n as ToggleButtonGroup,
|
|
46
|
-
|
|
47
|
-
|
|
47
|
+
U as Tooltip,
|
|
48
|
+
r as default
|
|
48
49
|
};
|
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.4",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/main.js",
|
|
7
7
|
"types": "dist/main.d.ts",
|
|
@@ -14,23 +14,23 @@
|
|
|
14
14
|
"react-dom": "^19.1.0"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@eslint/js": "^9.
|
|
17
|
+
"@eslint/js": "^9.33.0",
|
|
18
18
|
"@material-symbols/font-400": "^0.33.0",
|
|
19
|
-
"@types/node": "^24.
|
|
20
|
-
"@types/react": "^19.1.
|
|
21
|
-
"@types/react-dom": "^19.1.
|
|
22
|
-
"@vitejs/plugin-react": "^4.
|
|
23
|
-
"eslint": "^9.
|
|
19
|
+
"@types/node": "^24.3.0",
|
|
20
|
+
"@types/react": "^19.1.10",
|
|
21
|
+
"@types/react-dom": "^19.1.7",
|
|
22
|
+
"@vitejs/plugin-react": "^4.7.0",
|
|
23
|
+
"eslint": "^9.33.0",
|
|
24
24
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
25
25
|
"eslint-plugin-react-refresh": "^0.4.20",
|
|
26
26
|
"glob": "^11.0.3",
|
|
27
27
|
"globals": "^16.3.0",
|
|
28
28
|
"prettier": "^3.6.2",
|
|
29
|
-
"react": "^19.1.
|
|
30
|
-
"react-dom": "^19.1.
|
|
29
|
+
"react": "^19.1.1",
|
|
30
|
+
"react-dom": "^19.1.1",
|
|
31
31
|
"typescript": "~5.8.3",
|
|
32
|
-
"typescript-eslint": "^8.
|
|
33
|
-
"vite": "^7.
|
|
32
|
+
"typescript-eslint": "^8.39.1",
|
|
33
|
+
"vite": "^7.1.2",
|
|
34
34
|
"vite-plugin-dts": "^4.5.4",
|
|
35
35
|
"vite-plugin-lib-inject-css": "^2.2.2"
|
|
36
36
|
},
|