@ceed/ads 1.13.0 → 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,
@@ -6445,9 +6446,12 @@ function RadioTileGroup(props) {
6445
6446
  // HACK: Radio의 overlay가 decorator를 덮어버리기 때문에 문제 예방을 위해 적용해야 한다.
6446
6447
  width: { sm: "20px", md: "24px", lg: "24px" }[size],
6447
6448
  height: { sm: "20px", md: "24px", lg: "24px" }[size],
6449
+ color: "inherit",
6448
6450
  "& > .MuiSvgIcon-root": {
6449
6451
  width: "inherit",
6450
- height: "inherit"
6452
+ height: "inherit",
6453
+ fill: "currentColor",
6454
+ color: "inherit"
6451
6455
  }
6452
6456
  }
6453
6457
  },
@@ -6455,6 +6459,7 @@ function RadioTileGroup(props) {
6455
6459
  )
6456
6460
  ))
6457
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));
6458
6463
  }
6459
6464
  RadioTileGroup.displayName = "RadioTileGroup";
6460
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,
@@ -6394,9 +6395,12 @@ function RadioTileGroup(props) {
6394
6395
  // HACK: Radio의 overlay가 decorator를 덮어버리기 때문에 문제 예방을 위해 적용해야 한다.
6395
6396
  width: { sm: "20px", md: "24px", lg: "24px" }[size],
6396
6397
  height: { sm: "20px", md: "24px", lg: "24px" }[size],
6398
+ color: "inherit",
6397
6399
  "& > .MuiSvgIcon-root": {
6398
6400
  width: "inherit",
6399
- height: "inherit"
6401
+ height: "inherit",
6402
+ fill: "currentColor",
6403
+ color: "inherit"
6400
6404
  }
6401
6405
  }
6402
6406
  },
@@ -6404,6 +6408,7 @@ function RadioTileGroup(props) {
6404
6408
  )
6405
6409
  ))
6406
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));
6407
6412
  }
6408
6413
  RadioTileGroup.displayName = "RadioTileGroup";
6409
6414