@ceed/ads 1.13.1 → 1.13.3
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/dist/components/RadioTileGroup/RadioTileGroup.d.ts +16 -0
- package/dist/index.cjs +8 -5
- package/dist/index.js +8 -5
- package/framer/index.js +19 -19
- package/package.json +1 -1
|
@@ -32,6 +32,22 @@ 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;
|
|
47
|
+
/**
|
|
48
|
+
* Whether the RadioTileGroup is required
|
|
49
|
+
*/
|
|
50
|
+
required?: boolean;
|
|
35
51
|
}
|
|
36
52
|
declare function RadioTileGroup<T extends string | number = string>(props: RadioTileGroupProps<T>): React.JSX.Element;
|
|
37
53
|
declare namespace RadioTileGroup {
|
package/dist/index.cjs
CHANGED
|
@@ -6384,20 +6384,22 @@ function RadioTileGroup(props) {
|
|
|
6384
6384
|
textAlign = "center",
|
|
6385
6385
|
size = "sm",
|
|
6386
6386
|
flex,
|
|
6387
|
-
columns
|
|
6387
|
+
columns,
|
|
6388
|
+
label,
|
|
6389
|
+
helperText,
|
|
6390
|
+
error,
|
|
6391
|
+
required
|
|
6388
6392
|
} = props;
|
|
6389
|
-
|
|
6393
|
+
const radioGroup = /* @__PURE__ */ import_react53.default.createElement(
|
|
6390
6394
|
RadioTileGroupRoot,
|
|
6391
6395
|
{
|
|
6392
6396
|
overlay: true,
|
|
6393
6397
|
name,
|
|
6394
|
-
className,
|
|
6395
6398
|
value,
|
|
6396
6399
|
defaultValue,
|
|
6397
6400
|
onChange,
|
|
6398
6401
|
flex,
|
|
6399
|
-
columns
|
|
6400
|
-
sx
|
|
6402
|
+
columns
|
|
6401
6403
|
},
|
|
6402
6404
|
options.map((option) => /* @__PURE__ */ import_react53.default.createElement(
|
|
6403
6405
|
RadioTileSheet,
|
|
@@ -6458,6 +6460,7 @@ function RadioTileGroup(props) {
|
|
|
6458
6460
|
)
|
|
6459
6461
|
))
|
|
6460
6462
|
);
|
|
6463
|
+
return /* @__PURE__ */ import_react53.default.createElement(FormControl_default, { required, 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
6464
|
}
|
|
6462
6465
|
RadioTileGroup.displayName = "RadioTileGroup";
|
|
6463
6466
|
|
package/dist/index.js
CHANGED
|
@@ -6333,20 +6333,22 @@ function RadioTileGroup(props) {
|
|
|
6333
6333
|
textAlign = "center",
|
|
6334
6334
|
size = "sm",
|
|
6335
6335
|
flex,
|
|
6336
|
-
columns
|
|
6336
|
+
columns,
|
|
6337
|
+
label,
|
|
6338
|
+
helperText,
|
|
6339
|
+
error,
|
|
6340
|
+
required
|
|
6337
6341
|
} = props;
|
|
6338
|
-
|
|
6342
|
+
const radioGroup = /* @__PURE__ */ React50.createElement(
|
|
6339
6343
|
RadioTileGroupRoot,
|
|
6340
6344
|
{
|
|
6341
6345
|
overlay: true,
|
|
6342
6346
|
name,
|
|
6343
|
-
className,
|
|
6344
6347
|
value,
|
|
6345
6348
|
defaultValue,
|
|
6346
6349
|
onChange,
|
|
6347
6350
|
flex,
|
|
6348
|
-
columns
|
|
6349
|
-
sx
|
|
6351
|
+
columns
|
|
6350
6352
|
},
|
|
6351
6353
|
options.map((option) => /* @__PURE__ */ React50.createElement(
|
|
6352
6354
|
RadioTileSheet,
|
|
@@ -6407,6 +6409,7 @@ function RadioTileGroup(props) {
|
|
|
6407
6409
|
)
|
|
6408
6410
|
))
|
|
6409
6411
|
);
|
|
6412
|
+
return /* @__PURE__ */ React50.createElement(FormControl_default, { required, disabled: allDisabled, error, size, sx, className }, label && /* @__PURE__ */ React50.createElement(FormLabel_default, null, label), radioGroup, helperText && /* @__PURE__ */ React50.createElement(FormHelperText_default, null, helperText));
|
|
6410
6413
|
}
|
|
6411
6414
|
RadioTileGroup.displayName = "RadioTileGroup";
|
|
6412
6415
|
|