@lets-events/react 12.10.8 → 12.10.9
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/.turbo/turbo-build.log +8 -8
- package/CHANGELOG.md +6 -0
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -2
- package/dist/index.mjs +3 -2
- package/package.json +1 -1
- package/src/components/FormFields/RadioGroupFormField.tsx +3 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @lets-events/react@12.10.
|
|
3
|
+
> @lets-events/react@12.10.9 build
|
|
4
4
|
> tsup src/index.tsx --format esm,cjs --dts --external react
|
|
5
5
|
|
|
6
6
|
[1G[0K[34mCLI[39m Building entry: src/index.tsx
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
[34mCLI[39m Target: es6
|
|
11
11
|
[34mESM[39m Build start
|
|
12
12
|
[34mCJS[39m Build start
|
|
13
|
-
[32mCJS[39m [1mdist/index.js [22m[32m431.
|
|
14
|
-
[32mCJS[39m ⚡️ Build success in
|
|
15
|
-
[32mESM[39m [1mdist/index.mjs [22m[
|
|
16
|
-
[32mESM[39m ⚡️ Build success in
|
|
13
|
+
[32mCJS[39m [1mdist/index.js [22m[32m431.69 KB[39m
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 285ms
|
|
15
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m416.04 KB[39m
|
|
16
|
+
[32mESM[39m ⚡️ Build success in 286ms
|
|
17
17
|
DTS Build start
|
|
18
|
-
DTS ⚡️ Build success in
|
|
19
|
-
DTS dist/index.d.mts 405.
|
|
20
|
-
DTS dist/index.d.ts 405.
|
|
18
|
+
DTS ⚡️ Build success in 6361ms
|
|
19
|
+
DTS dist/index.d.mts 405.36 KB
|
|
20
|
+
DTS dist/index.d.ts 405.36 KB
|
|
21
21
|
[1G[0K⠙[1G[0K
|
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -15230,8 +15230,9 @@ type RadioGroupFormFieldProps = {
|
|
|
15230
15230
|
color?: "blue" | "success" | "error";
|
|
15231
15231
|
fontWeight?: "regular" | "medium" | "semibold" | "bold";
|
|
15232
15232
|
disabled?: boolean;
|
|
15233
|
+
orientation?: 'horizontal' | 'vertical';
|
|
15233
15234
|
};
|
|
15234
|
-
declare const RadioGroupFormField: ({ name, label, options, required, defaultValue, validationErrorMessage, color, fontWeight, disabled, }: RadioGroupFormFieldProps) => react_jsx_runtime.JSX.Element;
|
|
15235
|
+
declare const RadioGroupFormField: ({ name, label, options, required, defaultValue, validationErrorMessage, color, fontWeight, disabled, orientation, }: RadioGroupFormFieldProps) => react_jsx_runtime.JSX.Element;
|
|
15235
15236
|
|
|
15236
15237
|
type Option$1 = {
|
|
15237
15238
|
label: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -15230,8 +15230,9 @@ type RadioGroupFormFieldProps = {
|
|
|
15230
15230
|
color?: "blue" | "success" | "error";
|
|
15231
15231
|
fontWeight?: "regular" | "medium" | "semibold" | "bold";
|
|
15232
15232
|
disabled?: boolean;
|
|
15233
|
+
orientation?: 'horizontal' | 'vertical';
|
|
15233
15234
|
};
|
|
15234
|
-
declare const RadioGroupFormField: ({ name, label, options, required, defaultValue, validationErrorMessage, color, fontWeight, disabled, }: RadioGroupFormFieldProps) => react_jsx_runtime.JSX.Element;
|
|
15235
|
+
declare const RadioGroupFormField: ({ name, label, options, required, defaultValue, validationErrorMessage, color, fontWeight, disabled, orientation, }: RadioGroupFormFieldProps) => react_jsx_runtime.JSX.Element;
|
|
15235
15236
|
|
|
15236
15237
|
type Option$1 = {
|
|
15237
15238
|
label: string;
|
package/dist/index.js
CHANGED
|
@@ -11727,7 +11727,8 @@ var RadioGroupFormField = ({
|
|
|
11727
11727
|
validationErrorMessage = "Este campo \xE9 obrigat\xF3rio.",
|
|
11728
11728
|
color = "blue",
|
|
11729
11729
|
fontWeight = "regular",
|
|
11730
|
-
disabled = false
|
|
11730
|
+
disabled = false,
|
|
11731
|
+
orientation = "vertical"
|
|
11731
11732
|
}) => {
|
|
11732
11733
|
const {
|
|
11733
11734
|
control,
|
|
@@ -11764,7 +11765,7 @@ var RadioGroupFormField = ({
|
|
|
11764
11765
|
color: haveError ? "error" : color,
|
|
11765
11766
|
fontWeight,
|
|
11766
11767
|
disabled,
|
|
11767
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Flex, { direction: "column", children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(RadioItem, { value: option.value, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Text, { typography: "labelSmall", children: option.label }) }, option.value)) })
|
|
11768
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Flex, { direction: orientation === "horizontal" ? "row" : "column", children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(RadioItem, { value: option.value, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Text, { typography: "labelSmall", children: option.label }) }, option.value)) })
|
|
11768
11769
|
}
|
|
11769
11770
|
)
|
|
11770
11771
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -11619,7 +11619,8 @@ var RadioGroupFormField = ({
|
|
|
11619
11619
|
validationErrorMessage = "Este campo \xE9 obrigat\xF3rio.",
|
|
11620
11620
|
color = "blue",
|
|
11621
11621
|
fontWeight = "regular",
|
|
11622
|
-
disabled = false
|
|
11622
|
+
disabled = false,
|
|
11623
|
+
orientation = "vertical"
|
|
11623
11624
|
}) => {
|
|
11624
11625
|
const {
|
|
11625
11626
|
control,
|
|
@@ -11656,7 +11657,7 @@ var RadioGroupFormField = ({
|
|
|
11656
11657
|
color: haveError ? "error" : color,
|
|
11657
11658
|
fontWeight,
|
|
11658
11659
|
disabled,
|
|
11659
|
-
children: /* @__PURE__ */ jsx49(Flex, { direction: "column", children: options.map((option) => /* @__PURE__ */ jsx49(RadioItem, { value: option.value, children: /* @__PURE__ */ jsx49(Text, { typography: "labelSmall", children: option.label }) }, option.value)) })
|
|
11660
|
+
children: /* @__PURE__ */ jsx49(Flex, { direction: orientation === "horizontal" ? "row" : "column", children: options.map((option) => /* @__PURE__ */ jsx49(RadioItem, { value: option.value, children: /* @__PURE__ */ jsx49(Text, { typography: "labelSmall", children: option.label }) }, option.value)) })
|
|
11660
11661
|
}
|
|
11661
11662
|
)
|
|
11662
11663
|
}
|
package/package.json
CHANGED
|
@@ -21,6 +21,7 @@ export type RadioGroupFormFieldProps = {
|
|
|
21
21
|
color?: "blue" | "success" | "error";
|
|
22
22
|
fontWeight?: "regular" | "medium" | "semibold" | "bold";
|
|
23
23
|
disabled?: boolean;
|
|
24
|
+
orientation?: 'horizontal' | 'vertical';
|
|
24
25
|
};
|
|
25
26
|
|
|
26
27
|
export const RadioGroupFormField = ({
|
|
@@ -33,6 +34,7 @@ export const RadioGroupFormField = ({
|
|
|
33
34
|
color = "blue",
|
|
34
35
|
fontWeight = "regular",
|
|
35
36
|
disabled = false,
|
|
37
|
+
orientation = 'vertical',
|
|
36
38
|
}: RadioGroupFormFieldProps) => {
|
|
37
39
|
const {
|
|
38
40
|
control,
|
|
@@ -69,7 +71,7 @@ export const RadioGroupFormField = ({
|
|
|
69
71
|
fontWeight={fontWeight}
|
|
70
72
|
disabled={disabled}
|
|
71
73
|
>
|
|
72
|
-
<Flex direction=
|
|
74
|
+
<Flex direction={orientation === 'horizontal' ? 'row' : 'column'}>
|
|
73
75
|
{options.map((option) => (
|
|
74
76
|
<RadioItem key={option.value} value={option.value}>
|
|
75
77
|
<Text typography={"labelSmall"}>{option.label}</Text>
|