@cronocode/react-box 0.4.6 → 0.4.7
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/components/uncontrolledCheckboxCore.d.ts +3 -3
- package/components/uncontrolledCheckboxCore.js +10 -10
- package/components/uncontrolledRadioButtonCore.d.ts +2 -2
- package/components/uncontrolledTextareaCore.d.ts +1 -1
- package/components/uncontrolledTextareaCore.js +10 -10
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import Box from '../box';
|
|
2
2
|
declare type BoxProps = React.ComponentProps<typeof Box>;
|
|
3
3
|
declare type BoxTagProps = Required<BoxProps>['props'];
|
|
4
|
-
declare type
|
|
4
|
+
declare type UncontrolledCheckboxCoreTagProps = Omit<BoxTagProps, 'name' | 'onInput' | 'onChange' | 'type' | 'placeholder' | 'disabled' | 'value' | 'autoFocus' | 'readOnly' | 'required' | 'defaultChecked'>;
|
|
5
5
|
interface Props extends Omit<BoxProps, 'props'> {
|
|
6
6
|
name: string;
|
|
7
|
-
props?:
|
|
7
|
+
props?: UncontrolledCheckboxCoreTagProps;
|
|
8
8
|
onInput?: (e: React.FormEvent<HTMLInputElement>) => void;
|
|
9
9
|
onChange?: (e: React.FormEvent<HTMLInputElement>) => void;
|
|
10
10
|
placeholder?: string;
|
|
@@ -15,5 +15,5 @@ interface Props extends Omit<BoxProps, 'props'> {
|
|
|
15
15
|
required?: boolean;
|
|
16
16
|
defaultChecked?: boolean;
|
|
17
17
|
}
|
|
18
|
-
export default function
|
|
18
|
+
export default function UncontrolledCheckboxCore(props: Props): JSX.Element;
|
|
19
19
|
export {};
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import m from "../box.js";
|
|
2
|
-
import { jsx as
|
|
2
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../box.module.css.js";
|
|
5
5
|
import "../utils/utils.js";
|
|
6
6
|
function k(o) {
|
|
7
7
|
const {
|
|
8
8
|
props: e,
|
|
9
|
-
name:
|
|
10
|
-
disabled:
|
|
9
|
+
name: r,
|
|
10
|
+
disabled: t,
|
|
11
11
|
placeholder: n,
|
|
12
12
|
value: p,
|
|
13
13
|
onInput: a,
|
|
14
14
|
onChange: i,
|
|
15
15
|
autoFocus: u,
|
|
16
|
-
readOnly:
|
|
17
|
-
required:
|
|
16
|
+
readOnly: c,
|
|
17
|
+
required: l,
|
|
18
18
|
defaultChecked: d
|
|
19
19
|
} = o, s = {
|
|
20
20
|
...e,
|
|
21
21
|
type: "checkbox",
|
|
22
|
-
name:
|
|
23
|
-
disabled:
|
|
22
|
+
name: r,
|
|
23
|
+
disabled: t,
|
|
24
24
|
placeholder: n,
|
|
25
25
|
onInput: a,
|
|
26
26
|
onChange: i,
|
|
27
27
|
value: p,
|
|
28
28
|
autoFocus: u,
|
|
29
|
-
readOnly:
|
|
30
|
-
required:
|
|
29
|
+
readOnly: c,
|
|
30
|
+
required: l,
|
|
31
31
|
defaultChecked: d
|
|
32
32
|
};
|
|
33
|
-
return /* @__PURE__ */
|
|
33
|
+
return /* @__PURE__ */ f(m, {
|
|
34
34
|
tag: "input",
|
|
35
35
|
inline: !0,
|
|
36
36
|
...o,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import Box from '../box';
|
|
2
2
|
declare type BoxProps = React.ComponentProps<typeof Box>;
|
|
3
3
|
declare type BoxTagProps = Required<BoxProps>['props'];
|
|
4
|
-
declare type
|
|
4
|
+
declare type UncontrolledRadioButtonCoreTagProps = Omit<BoxTagProps, 'name' | 'onInput' | 'onChange' | 'type' | 'placeholder' | 'disabled' | 'value' | 'autoFocus' | 'readOnly' | 'required' | 'defaultChecked'>;
|
|
5
5
|
interface Props extends Omit<BoxProps, 'props'> {
|
|
6
6
|
name: string;
|
|
7
|
-
props?:
|
|
7
|
+
props?: UncontrolledRadioButtonCoreTagProps;
|
|
8
8
|
onInput?: (e: React.FormEvent<HTMLInputElement>) => void;
|
|
9
9
|
onChange?: (e: React.FormEvent<HTMLInputElement>) => void;
|
|
10
10
|
placeholder?: string;
|
|
@@ -18,5 +18,5 @@ interface Props extends Omit<BoxProps, 'props'> {
|
|
|
18
18
|
readOnly?: boolean;
|
|
19
19
|
required?: boolean;
|
|
20
20
|
}
|
|
21
|
-
export default function
|
|
21
|
+
export default function UncontrolledTextareaCore(props: Props): JSX.Element;
|
|
22
22
|
export {};
|
|
@@ -3,11 +3,11 @@ import { jsx as h } from "react/jsx-runtime";
|
|
|
3
3
|
import "react";
|
|
4
4
|
import "../box.module.css.js";
|
|
5
5
|
import "../utils/utils.js";
|
|
6
|
-
function
|
|
6
|
+
function b(o) {
|
|
7
7
|
const {
|
|
8
8
|
props: e,
|
|
9
|
-
name:
|
|
10
|
-
disabled:
|
|
9
|
+
name: r,
|
|
10
|
+
disabled: t,
|
|
11
11
|
placeholder: n,
|
|
12
12
|
defaultValue: a,
|
|
13
13
|
onInput: p,
|
|
@@ -18,11 +18,11 @@ function T(o) {
|
|
|
18
18
|
maxLength: u,
|
|
19
19
|
minLength: d,
|
|
20
20
|
readOnly: c,
|
|
21
|
-
required:
|
|
22
|
-
} = o,
|
|
21
|
+
required: g
|
|
22
|
+
} = o, x = {
|
|
23
23
|
...e,
|
|
24
|
-
name:
|
|
25
|
-
disabled:
|
|
24
|
+
name: r,
|
|
25
|
+
disabled: t,
|
|
26
26
|
placeholder: n,
|
|
27
27
|
onInput: p,
|
|
28
28
|
onChange: i,
|
|
@@ -33,15 +33,15 @@ function T(o) {
|
|
|
33
33
|
maxLength: u,
|
|
34
34
|
minLength: d,
|
|
35
35
|
readOnly: c,
|
|
36
|
-
required:
|
|
36
|
+
required: g
|
|
37
37
|
};
|
|
38
38
|
return /* @__PURE__ */ h(f, {
|
|
39
39
|
tag: "textarea",
|
|
40
40
|
inline: !0,
|
|
41
41
|
...o,
|
|
42
|
-
props:
|
|
42
|
+
props: x
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
45
|
export {
|
|
46
|
-
|
|
46
|
+
b as default
|
|
47
47
|
};
|