@ceed/ads 1.13.1 → 1.13.2

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.
@@ -32,6 +32,18 @@ export interface RadioTileGroupProps<T = string> {
32
32
  * @default 'center'
33
33
  */
34
34
  textAlign?: 'start' | 'center';
35
+ /**
36
+ * Label for the RadioTileGroup
37
+ */
38
+ label?: React.ReactNode;
39
+ /**
40
+ * Helper text for the RadioTileGroup
41
+ */
42
+ helperText?: React.ReactNode;
43
+ /**
44
+ * Whether the RadioTileGroup has an error
45
+ */
46
+ error?: boolean;
35
47
  }
36
48
  declare function RadioTileGroup<T extends string | number = string>(props: RadioTileGroupProps<T>): React.JSX.Element;
37
49
  declare namespace RadioTileGroup {
package/dist/index.cjs CHANGED
@@ -6384,20 +6384,21 @@ function RadioTileGroup(props) {
6384
6384
  textAlign = "center",
6385
6385
  size = "sm",
6386
6386
  flex,
6387
- columns
6387
+ columns,
6388
+ label,
6389
+ helperText,
6390
+ error
6388
6391
  } = props;
6389
- return /* @__PURE__ */ import_react53.default.createElement(
6392
+ const radioGroup = /* @__PURE__ */ import_react53.default.createElement(
6390
6393
  RadioTileGroupRoot,
6391
6394
  {
6392
6395
  overlay: true,
6393
6396
  name,
6394
- className,
6395
6397
  value,
6396
6398
  defaultValue,
6397
6399
  onChange,
6398
6400
  flex,
6399
- columns,
6400
- sx
6401
+ columns
6401
6402
  },
6402
6403
  options.map((option) => /* @__PURE__ */ import_react53.default.createElement(
6403
6404
  RadioTileSheet,
@@ -6458,6 +6459,7 @@ function RadioTileGroup(props) {
6458
6459
  )
6459
6460
  ))
6460
6461
  );
6462
+ return /* @__PURE__ */ import_react53.default.createElement(FormControl_default, { required: false, disabled: allDisabled, error, size, sx, className }, label && /* @__PURE__ */ import_react53.default.createElement(FormLabel_default, null, label), radioGroup, helperText && /* @__PURE__ */ import_react53.default.createElement(FormHelperText_default, null, helperText));
6461
6463
  }
6462
6464
  RadioTileGroup.displayName = "RadioTileGroup";
6463
6465
 
package/dist/index.js CHANGED
@@ -6333,20 +6333,21 @@ function RadioTileGroup(props) {
6333
6333
  textAlign = "center",
6334
6334
  size = "sm",
6335
6335
  flex,
6336
- columns
6336
+ columns,
6337
+ label,
6338
+ helperText,
6339
+ error
6337
6340
  } = props;
6338
- return /* @__PURE__ */ React50.createElement(
6341
+ const radioGroup = /* @__PURE__ */ React50.createElement(
6339
6342
  RadioTileGroupRoot,
6340
6343
  {
6341
6344
  overlay: true,
6342
6345
  name,
6343
- className,
6344
6346
  value,
6345
6347
  defaultValue,
6346
6348
  onChange,
6347
6349
  flex,
6348
- columns,
6349
- sx
6350
+ columns
6350
6351
  },
6351
6352
  options.map((option) => /* @__PURE__ */ React50.createElement(
6352
6353
  RadioTileSheet,
@@ -6407,6 +6408,7 @@ function RadioTileGroup(props) {
6407
6408
  )
6408
6409
  ))
6409
6410
  );
6411
+ return /* @__PURE__ */ React50.createElement(FormControl_default, { required: false, disabled: allDisabled, error, size, sx, className }, label && /* @__PURE__ */ React50.createElement(FormLabel_default, null, label), radioGroup, helperText && /* @__PURE__ */ React50.createElement(FormHelperText_default, null, helperText));
6410
6412
  }
6411
6413
  RadioTileGroup.displayName = "RadioTileGroup";
6412
6414