@solostylist/ui-kit 1.0.4 → 1.0.6
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,13 +1,13 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as u } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import { forwardRef as m, useState as x, useEffect as d } from "react";
|
|
3
3
|
import { TextField as n } from "@mui/material";
|
|
4
4
|
import v from "../SForm/SForm.js";
|
|
5
|
-
const
|
|
6
|
-
({ label:
|
|
7
|
-
const [
|
|
5
|
+
const E = m(
|
|
6
|
+
({ label: l = "", required: a = !1, error: t, type: o = "text", htmlFor: r, ...e }, f) => {
|
|
7
|
+
const [i, s] = x(e.value ?? "");
|
|
8
8
|
return d(() => {
|
|
9
|
-
|
|
10
|
-
}, [e.value]), /* @__PURE__ */
|
|
9
|
+
s(e.value ?? "");
|
|
10
|
+
}, [e.value]), /* @__PURE__ */ u.jsx(v, { label: l, error: t, required: a, htmlFor: r, children: /* @__PURE__ */ u.jsx(
|
|
11
11
|
n,
|
|
12
12
|
{
|
|
13
13
|
fullWidth: !0,
|
|
@@ -17,12 +17,14 @@ const h = m(
|
|
|
17
17
|
ref: f
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
|
+
id: r,
|
|
21
|
+
error: !!t,
|
|
20
22
|
...e,
|
|
21
|
-
value:
|
|
23
|
+
value: i ?? ""
|
|
22
24
|
}
|
|
23
25
|
) });
|
|
24
26
|
}
|
|
25
27
|
);
|
|
26
28
|
export {
|
|
27
|
-
|
|
29
|
+
E as default
|
|
28
30
|
};
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"registry": "https://registry.npmjs.org"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.0.
|
|
6
|
+
"version": "1.0.6",
|
|
7
7
|
"description": "advanced ui kit for solostylist",
|
|
8
8
|
"private": false,
|
|
9
9
|
"type": "module",
|
|
@@ -24,13 +24,14 @@
|
|
|
24
24
|
"format:check": "prettier --check \"**/*.{js,jsx,mjs,ts,tsx,mdx}\" --cache",
|
|
25
25
|
"prepare": "husky"
|
|
26
26
|
},
|
|
27
|
-
"
|
|
27
|
+
"peerDependencies": {
|
|
28
28
|
"@emotion/cache": "^11.14.0",
|
|
29
29
|
"@emotion/react": "^11.14.0",
|
|
30
30
|
"@emotion/styled": "^11.14.0",
|
|
31
31
|
"@mui/lab": "7.0.0-beta.11",
|
|
32
32
|
"@mui/material": "^7.0.2",
|
|
33
33
|
"@mui/utils": "^7.0.2",
|
|
34
|
+
"@mui/icons-material": "^7.0.2",
|
|
34
35
|
"@phosphor-icons/react": "^2.1.7",
|
|
35
36
|
"@tiptap/extension-link": "^2.11.9",
|
|
36
37
|
"@tiptap/extension-placeholder": "^2.11.9",
|