@liujip0/components 0.2.17 → 0.2.19

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 +1 @@
1
- ._container_14cji_1{display:flex;flex-direction:column}._outline_14cji_6{display:flex;padding:4px 8px;gap:4px;align-items:center;width:100%;border-width:1px;border-style:solid;border-color:var(--color-primary, var(--color-primary-fallback));border-radius:var(--border-radius, var(--border-radius-fallback))}._errorOutline_14cji_18{border-color:var(--color-error, var(--color-error-fallback))}._select_14cji_22{min-width:1em;flex:1;padding:6px;border:none;background-color:transparent;color:var( --color-background-contrastText, var(--color-background-contrastText-fallback) );font-family:var(--text-font-family, var(--text-font-family-fallback));font-size:var(--text-body-size, var(--text-body-size-fallback))}._select_14cji_22:focus{outline:none}._selectDisabled_14cji_39{color:color-mix(in srgb,var( --color-background-contrastText, var(--color-background-contrastText-fallback) ) 50%,#888)}._helperText_14cji_51{margin:4px 8px;font-family:var(--text-font-family, var(--text-font-family-fallback));font-size:var(--text-helperText-size, var(--text-helperText-size-fallback));color:var(--color-primary, var(--color-primary-fallback))}._helperTextError_14cji_58{color:var(--color-error, var(--color-error-fallback))}._label_14cji_62{font-family:var(--text-font-family, var(--text-font-family-fallback));font-size:var(--text-label-size, var(--text-label-size-fallback))}
1
+ ._container_cgwzy_1{display:flex;flex-direction:column}._outline_cgwzy_6{display:flex;padding:4px 8px;gap:4px;align-items:center;width:100%;border-width:1px;border-style:solid;border-color:var(--color-primary, var(--color-primary-fallback));border-radius:var(--border-radius, var(--border-radius-fallback));cursor:pointer}._errorOutline_cgwzy_19{border-color:var(--color-error, var(--color-error-fallback))}._select_cgwzy_23{min-width:1em;flex:1;padding:6px;border:none;background-color:transparent;color:var( --color-background-contrastText, var(--color-background-contrastText-fallback) );font-family:var(--text-font-family, var(--text-font-family-fallback));font-size:var(--text-body-size, var(--text-body-size-fallback))}._select_cgwzy_23:focus{outline:none}._selectDisabled_cgwzy_40{color:color-mix(in srgb,var( --color-background-contrastText, var(--color-background-contrastText-fallback) ) 50%,#888)}._helperText_cgwzy_52{margin:4px 8px;font-family:var(--text-font-family, var(--text-font-family-fallback));font-size:var(--text-helperText-size, var(--text-helperText-size-fallback));color:var(--color-primary, var(--color-primary-fallback))}._helperTextError_cgwzy_59{color:var(--color-error, var(--color-error-fallback))}._label_cgwzy_63{font-family:var(--text-font-family, var(--text-font-family-fallback));font-size:var(--text-label-size, var(--text-label-size-fallback))}
@@ -1,32 +1,32 @@
1
- import { jsxs as b, jsx as l } from "react/jsx-runtime";
1
+ import { jsxs as y, jsx as l } from "react/jsx-runtime";
2
2
  import "react";
3
- import '../../../assets/Select.css';const d = "_container_14cji_1", T = "_outline_14cji_6", N = "_errorOutline_14cji_18", D = "_select_14cji_22", E = "_selectDisabled_14cji_39", O = "_helperText_14cji_51", f = "_helperTextError_14cji_58", v = "_label_14cji_62", e = {
4
- container: d,
5
- outline: T,
6
- errorOutline: N,
7
- select: D,
8
- selectDisabled: E,
9
- helperText: O,
10
- helperTextError: f,
11
- label: v
3
+ import '../../../assets/Select.css';const b = "_container_cgwzy_1", w = "_outline_cgwzy_6", z = "_errorOutline_cgwzy_19", d = "_select_cgwzy_23", T = "_selectDisabled_cgwzy_40", N = "_helperText_cgwzy_52", D = "_helperTextError_cgwzy_59", E = "_label_cgwzy_63", e = {
4
+ container: b,
5
+ outline: w,
6
+ errorOutline: z,
7
+ select: d,
8
+ selectDisabled: T,
9
+ helperText: N,
10
+ helperTextError: D,
11
+ label: E
12
12
  };
13
- function C({
13
+ function v({
14
14
  id: t,
15
- value: o,
15
+ value: a,
16
16
  onChange: r,
17
- children: a,
17
+ children: i,
18
18
  label: c,
19
19
  helperText: s,
20
- error: i,
21
- disabled: n,
20
+ error: n,
21
+ disabled: o,
22
22
  className: _,
23
23
  outlineClassName: h,
24
24
  selectClassName: p,
25
25
  labelClassName: u,
26
- helperTextClassName: j,
27
- ...m
26
+ helperTextClassName: m,
27
+ ...x
28
28
  }) {
29
- return /* @__PURE__ */ b("div", { className: e.container + " " + (_ || ""), children: [
29
+ return /* @__PURE__ */ y("div", { className: e.container + " " + (_ || ""), children: [
30
30
  c && /* @__PURE__ */ l(
31
31
  "label",
32
32
  {
@@ -38,19 +38,19 @@ function C({
38
38
  /* @__PURE__ */ l(
39
39
  "div",
40
40
  {
41
- className: e.outline + " " + (i ? e.errorOutline : "") + " " + (h || ""),
41
+ className: e.outline + " " + (n ? e.errorOutline : "") + " " + (h || ""),
42
42
  children: /* @__PURE__ */ l(
43
43
  "select",
44
44
  {
45
45
  id: t,
46
- className: e.select + " " + (n ? e.selectDisabled : "") + " " + (p || ""),
47
- value: o,
48
- onChange: (x) => {
49
- r && r(x.target.value);
46
+ className: e.select + " " + (o ? e.selectDisabled : "") + " " + (p || ""),
47
+ value: a,
48
+ onChange: (g) => {
49
+ r && r(g.target.value);
50
50
  },
51
- disabled: n,
52
- ...m,
53
- children: a
51
+ disabled: o,
52
+ ...x,
53
+ children: i
54
54
  }
55
55
  )
56
56
  }
@@ -58,12 +58,12 @@ function C({
58
58
  s && /* @__PURE__ */ l(
59
59
  "p",
60
60
  {
61
- className: e.helperText + " " + (i ? e.helperTextError : "") + " " + (j || ""),
61
+ className: e.helperText + " " + (n ? e.helperTextError : "") + " " + (m || ""),
62
62
  children: s
63
63
  }
64
64
  )
65
65
  ] });
66
66
  }
67
67
  export {
68
- C as Select
68
+ v as Select
69
69
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@liujip0/components",
3
3
  "private": false,
4
- "version": "0.2.17",
4
+ "version": "0.2.19",
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.36.2",
12
+ "@material-symbols/font-400": "^0.38.0",
13
13
  "react": "^19.2.0",
14
14
  "react-dom": "^19.2.0"
15
15
  },
16
16
  "devDependencies": {
17
- "@eslint-react/eslint-plugin": "^2.2.2",
18
- "@eslint/css": "^0.13.0",
17
+ "@eslint-react/eslint-plugin": "^2.2.4",
18
+ "@eslint/css": "^0.14.0",
19
19
  "@eslint/js": "^9.38.0",
20
20
  "@eslint/json": "^0.13.2",
21
- "@eslint/markdown": "^7.4.1",
21
+ "@eslint/markdown": "^7.5.0",
22
22
  "@material-symbols/font-400": "^0.38.0",
23
- "@storybook/addon-docs": "9.1.13",
24
- "@storybook/addon-onboarding": "9.1.13",
25
- "@storybook/react-vite": "9.1.13",
26
- "@types/node": "^24.9.0",
23
+ "@storybook/addon-docs": "10.0.1",
24
+ "@storybook/addon-onboarding": "10.0.1",
25
+ "@storybook/react-vite": "10.0.1",
26
+ "@types/node": "^24.9.2",
27
27
  "@types/react": "^19.2.2",
28
28
  "@types/react-dom": "^19.2.2",
29
- "@vitejs/plugin-react": "^5.0.4",
29
+ "@vitejs/plugin-react": "^5.1.0",
30
30
  "eslint": "^9.38.0",
31
31
  "eslint-plugin-react": "^7.37.5",
32
- "eslint-plugin-react-hooks": "^7.0.0",
32
+ "eslint-plugin-react-hooks": "^7.0.1",
33
33
  "eslint-plugin-react-refresh": "^0.4.24",
34
- "eslint-plugin-storybook": "9.1.13",
34
+ "eslint-plugin-storybook": "10.0.1",
35
35
  "glob": "^11.0.3",
36
36
  "globals": "^16.4.0",
37
37
  "jiti": "^2.6.1",
38
38
  "prettier": "^3.6.2",
39
39
  "react": "^19.2.0",
40
40
  "react-dom": "^19.2.0",
41
- "storybook": "9.1.13",
41
+ "storybook": "10.0.1",
42
42
  "typescript": "~5.9.3",
43
43
  "typescript-eslint": "^8.46.2",
44
- "vite": "^7.1.11",
44
+ "vite": "^7.1.12",
45
45
  "vite-plugin-dts": "^4.5.4",
46
46
  "vite-plugin-lib-inject-css": "^2.2.2"
47
47
  },