@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,2 @@
1
+ import { InputProps } from './Input.tsx';
2
+ export declare function Password({ ...props }: Omit<InputProps, "type" | "endIcon">): import("react/jsx-runtime").JSX.Element;
@@ -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 { Button as e } from "./components/Button/Button.js";
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 a } from "./components/Button/ToggleButton/ToggleButton.js";
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 l, DialogActions as T, DialogContent as u, DialogTitle as g } from "./components/Dialog/Dialog.js";
6
- import { Divider as c } from "./components/Divider/Divider.js";
7
- import { Input as s } from "./components/Input/Input.js";
8
- import { TextArea as D } from "./components/Input/TextArea.js";
9
- import { Checkbox as h } from "./components/Input/Checkbox/Checkbox.js";
10
- import { Counter as A } from "./components/Input/Counter/Counter.js";
11
- import { Radio as I } from "./components/Input/Radio/Radio.js";
12
- import { RadioGroup as S } from "./components/Input/Radio/RadioGroup.js";
13
- import { Select as H } from "./components/Input/Select/Select.js";
14
- import { Snackbar as q } from "./components/Snackbar/Snackbar.js";
15
- import { Table as y, TableHead as z, Td as E, Th as F } from "./components/Table/Table.js";
16
- import { Tab as K } from "./components/Tabs/Tab.js";
17
- import { TabBar as M } from "./components/Tabs/TabBar.js";
18
- import { Tabs as O } from "./components/Tabs/Tabs.js";
19
- import { Tooltip as Q } from "./components/Tooltip/Tooltip.js";
20
- import './assets/main.css';const o = "./main.css";
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
- e as Button,
23
- h as Checkbox,
24
- A as Counter,
25
- l as Dialog,
26
- T as DialogActions,
27
- u as DialogContent,
28
- g as DialogTitle,
29
- c as Divider,
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
- s as Input,
32
- I as Radio,
33
- S as RadioGroup,
34
- H as Select,
35
- q as Snackbar,
36
- K as Tab,
37
- M as TabBar,
38
- y as Table,
39
- z as TableHead,
40
- O as Tabs,
41
- E as Td,
42
- D as TextArea,
43
- F as Th,
44
- a as ToggleButton,
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
- Q as Tooltip,
47
- o as default
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.3",
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.30.1",
17
+ "@eslint/js": "^9.33.0",
18
18
  "@material-symbols/font-400": "^0.33.0",
19
- "@types/node": "^24.1.0",
20
- "@types/react": "^19.1.8",
21
- "@types/react-dom": "^19.1.6",
22
- "@vitejs/plugin-react": "^4.6.0",
23
- "eslint": "^9.30.1",
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.0",
30
- "react-dom": "^19.1.0",
29
+ "react": "^19.1.1",
30
+ "react-dom": "^19.1.1",
31
31
  "typescript": "~5.8.3",
32
- "typescript-eslint": "^8.35.1",
33
- "vite": "^7.0.4",
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
  },