@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.
@@ -1,7 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { BoxProps } from '@mui/material';
3
- type AnyType = any;
4
- interface SBoxProps extends BoxProps, AnyType {
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;
@@ -1,7 +1,6 @@
1
- import { j as e } from "../jsx-runtime-C5mzlN2N.js";
2
- import f from "react";
3
- import { Box as m } from "@mui/material";
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
- p as default
5
+ e as default
7
6
  };
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { StackProps } from '@mui/material';
3
- interface SStackProps extends StackProps {
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 { TextFieldProps } from '@mui/material';
3
- interface STextFieldProps extends Omit<TextFieldProps, 'error'> {
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: React.ForwardRefExoticComponent<Omit<STextFieldProps, "ref"> & React.RefAttributes<unknown>>;
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 u } from "../jsx-runtime-C5mzlN2N.js";
2
- import { forwardRef as m, useState as x, useEffect as d } from "react";
3
- import { TextField as n } from "@mui/material";
4
- import v from "../s-form/s-form.js";
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
- return d(() => {
9
- s(e.value ?? "");
10
- }, [e.value]), /* @__PURE__ */ u.jsx(v, { label: l, error: t, required: a, htmlFor: r, children: /* @__PURE__ */ u.jsx(
11
- n,
12
- {
13
- fullWidth: !0,
14
- type: o,
15
- slotProps: {
16
- input: {
17
- ref: f
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
- E as default
19
+ S as default
30
20
  };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "registry": "https://registry.npmjs.org"
5
5
  },
6
- "version": "1.0.10",
6
+ "version": "1.0.11",
7
7
  "description": "advanced ui kit for solostylist",
8
8
  "private": false,
9
9
  "type": "module",