@solostylist/ui-kit 1.0.10 → 1.0.11
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/s-box/s-box.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
type
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
declare const SBox: React.ForwardRefExoticComponent<Omit<SBoxProps, "ref"> & React.RefAttributes<unknown>>;
|
|
2
|
+
import { Box } from '@mui/material';
|
|
3
|
+
type SBoxProps = React.ComponentProps<typeof Box>;
|
|
4
|
+
declare const SBox: ({ children, ...props }: SBoxProps) => React.JSX.Element;
|
|
7
5
|
export default SBox;
|
package/dist/s-box/s-box.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
const p = f.forwardRef(({ children: o, ...r }, t) => /* @__PURE__ */ e.jsx(m, { ref: t, ...r, children: o }));
|
|
1
|
+
import { j as t } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
|
+
import { Box as s } from "@mui/material";
|
|
3
|
+
const e = ({ children: o, ...r }) => /* @__PURE__ */ t.jsx(s, { ...r, children: o });
|
|
5
4
|
export {
|
|
6
|
-
|
|
5
|
+
e as default
|
|
7
6
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
}
|
|
2
|
+
import { Stack } from '@mui/material';
|
|
3
|
+
type SStackProps = React.ComponentProps<typeof Stack>;
|
|
5
4
|
declare const SStack: ({ children, ...props }: SStackProps) => React.JSX.Element;
|
|
6
5
|
export default SStack;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { TextField } from '@mui/material';
|
|
3
|
+
type STextFieldProps = Omit<React.ComponentProps<typeof TextField>, 'error'> & {
|
|
4
4
|
label?: string;
|
|
5
5
|
required?: boolean;
|
|
6
6
|
error?: string;
|
|
7
|
-
type?: string;
|
|
8
7
|
htmlFor?: string;
|
|
9
|
-
}
|
|
10
|
-
declare const STextField:
|
|
8
|
+
};
|
|
9
|
+
declare const STextField: ({ label, required, error, type, htmlFor, ...props }: STextFieldProps) => React.JSX.Element;
|
|
11
10
|
export default STextField;
|
|
@@ -1,30 +1,20 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import { TextField as
|
|
4
|
-
import
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
id: r,
|
|
21
|
-
error: !!t,
|
|
22
|
-
...e,
|
|
23
|
-
value: i ?? ""
|
|
24
|
-
}
|
|
25
|
-
) });
|
|
26
|
-
}
|
|
27
|
-
);
|
|
1
|
+
import { j as l } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
|
+
import { useState as o, useEffect as s } from "react";
|
|
3
|
+
import { TextField as x } from "@mui/material";
|
|
4
|
+
import d from "../s-form/s-form.js";
|
|
5
|
+
const S = ({
|
|
6
|
+
label: a = "",
|
|
7
|
+
required: r = !1,
|
|
8
|
+
error: t,
|
|
9
|
+
type: i = "text",
|
|
10
|
+
htmlFor: u,
|
|
11
|
+
...e
|
|
12
|
+
}) => {
|
|
13
|
+
const [f, m] = o(e.value ?? "");
|
|
14
|
+
return s(() => {
|
|
15
|
+
m(e.value ?? "");
|
|
16
|
+
}, [e.value]), /* @__PURE__ */ l.jsx(d, { label: a, error: t, required: r, htmlFor: u, children: /* @__PURE__ */ l.jsx(x, { fullWidth: !0, type: i, id: u, error: !!t, ...e, value: f ?? "" }) });
|
|
17
|
+
};
|
|
28
18
|
export {
|
|
29
|
-
|
|
19
|
+
S as default
|
|
30
20
|
};
|