@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.
@@ -1,6 +1,6 @@
1
1
 
2
2
 
3
- > @lets-events/react@12.10.8 build
3
+ > @lets-events/react@12.10.9 build
4
4
  > tsup src/index.tsx --format esm,cjs --dts --external react
5
5
 
6
6
  CLI Building entry: src/index.tsx
@@ -10,12 +10,12 @@
10
10
  CLI Target: es6
11
11
  ESM Build start
12
12
  CJS Build start
13
- CJS dist/index.js 431.62 KB
14
- CJS ⚡️ Build success in 301ms
15
- ESM dist/index.mjs 415.97 KB
16
- ESM ⚡️ Build success in 301ms
13
+ CJS dist/index.js 431.69 KB
14
+ CJS ⚡️ Build success in 285ms
15
+ ESM dist/index.mjs 416.04 KB
16
+ ESM ⚡️ Build success in 286ms
17
17
  DTS Build start
18
- DTS ⚡️ Build success in 6076ms
19
- DTS dist/index.d.mts 405.30 KB
20
- DTS dist/index.d.ts 405.30 KB
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
  ⠙
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @lets-events/react
2
2
 
3
+ ## 12.10.9
4
+
5
+ ### Patch Changes
6
+
7
+ - RadioGroupFormFieldProp
8
+
3
9
  ## 12.10.8
4
10
 
5
11
  ### Patch Changes
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lets-events/react",
3
- "version": "12.10.8",
3
+ "version": "12.10.9",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -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="column">
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>