@liujip0/components 0.2.18 → 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.
- package/dist/assets/Select.css +1 -1
- package/dist/components/Input/Select/Select.js +28 -28
- package/package.json +16 -16
package/dist/assets/Select.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
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
|
|
1
|
+
import { jsxs as y, jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import '../../../assets/Select.css';const
|
|
4
|
-
container:
|
|
5
|
-
outline:
|
|
6
|
-
errorOutline:
|
|
7
|
-
select:
|
|
8
|
-
selectDisabled:
|
|
9
|
-
helperText:
|
|
10
|
-
helperTextError:
|
|
11
|
-
label:
|
|
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
|
|
13
|
+
function v({
|
|
14
14
|
id: t,
|
|
15
|
-
value:
|
|
15
|
+
value: a,
|
|
16
16
|
onChange: r,
|
|
17
|
-
children:
|
|
17
|
+
children: i,
|
|
18
18
|
label: c,
|
|
19
19
|
helperText: s,
|
|
20
|
-
error:
|
|
21
|
-
disabled:
|
|
20
|
+
error: n,
|
|
21
|
+
disabled: o,
|
|
22
22
|
className: _,
|
|
23
23
|
outlineClassName: h,
|
|
24
24
|
selectClassName: p,
|
|
25
25
|
labelClassName: u,
|
|
26
|
-
helperTextClassName:
|
|
27
|
-
...
|
|
26
|
+
helperTextClassName: m,
|
|
27
|
+
...x
|
|
28
28
|
}) {
|
|
29
|
-
return /* @__PURE__ */
|
|
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 + " " + (
|
|
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 + " " + (
|
|
47
|
-
value:
|
|
48
|
-
onChange: (
|
|
49
|
-
r && r(
|
|
46
|
+
className: e.select + " " + (o ? e.selectDisabled : "") + " " + (p || ""),
|
|
47
|
+
value: a,
|
|
48
|
+
onChange: (g) => {
|
|
49
|
+
r && r(g.target.value);
|
|
50
50
|
},
|
|
51
|
-
disabled:
|
|
52
|
-
...
|
|
53
|
-
children:
|
|
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 + " " + (
|
|
61
|
+
className: e.helperText + " " + (n ? e.helperTextError : "") + " " + (m || ""),
|
|
62
62
|
children: s
|
|
63
63
|
}
|
|
64
64
|
)
|
|
65
65
|
] });
|
|
66
66
|
}
|
|
67
67
|
export {
|
|
68
|
-
|
|
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.
|
|
4
|
+
"version": "0.2.19",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/main.js",
|
|
7
7
|
"types": "dist/main.d.ts",
|
|
@@ -14,34 +14,34 @@
|
|
|
14
14
|
"react-dom": "^19.2.0"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@
|
|
18
|
-
"
|
|
19
|
-
"react-dom": "^19.2.0",
|
|
20
|
-
"@eslint-react/eslint-plugin": "^2.2.2",
|
|
21
|
-
"@eslint/css": "^0.13.0",
|
|
17
|
+
"@eslint-react/eslint-plugin": "^2.2.4",
|
|
18
|
+
"@eslint/css": "^0.14.0",
|
|
22
19
|
"@eslint/js": "^9.38.0",
|
|
23
20
|
"@eslint/json": "^0.13.2",
|
|
24
|
-
"@eslint/markdown": "^7.
|
|
25
|
-
"@
|
|
26
|
-
"@storybook/addon-
|
|
27
|
-
"@storybook/
|
|
28
|
-
"@
|
|
21
|
+
"@eslint/markdown": "^7.5.0",
|
|
22
|
+
"@material-symbols/font-400": "^0.38.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",
|
|
29
27
|
"@types/react": "^19.2.2",
|
|
30
28
|
"@types/react-dom": "^19.2.2",
|
|
31
|
-
"@vitejs/plugin-react": "^5.0
|
|
29
|
+
"@vitejs/plugin-react": "^5.1.0",
|
|
32
30
|
"eslint": "^9.38.0",
|
|
33
31
|
"eslint-plugin-react": "^7.37.5",
|
|
34
|
-
"eslint-plugin-react-hooks": "^7.0.
|
|
32
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
35
33
|
"eslint-plugin-react-refresh": "^0.4.24",
|
|
36
|
-
"eslint-plugin-storybook": "
|
|
34
|
+
"eslint-plugin-storybook": "10.0.1",
|
|
37
35
|
"glob": "^11.0.3",
|
|
38
36
|
"globals": "^16.4.0",
|
|
39
37
|
"jiti": "^2.6.1",
|
|
40
38
|
"prettier": "^3.6.2",
|
|
41
|
-
"
|
|
39
|
+
"react": "^19.2.0",
|
|
40
|
+
"react-dom": "^19.2.0",
|
|
41
|
+
"storybook": "10.0.1",
|
|
42
42
|
"typescript": "~5.9.3",
|
|
43
43
|
"typescript-eslint": "^8.46.2",
|
|
44
|
-
"vite": "^7.1.
|
|
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
|
},
|