mayak-common-library 0.0.66 → 0.0.67
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/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6 -2
- package/dist/index.mjs +6 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -224,6 +224,7 @@ interface ToggleButtonsMultipleProps extends ToggleButtonGroupProps$1 {
|
|
|
224
224
|
collapseParent?: () => void;
|
|
225
225
|
label?: string;
|
|
226
226
|
flexDirection?: "row" | "col";
|
|
227
|
+
fixWidth?: boolean;
|
|
227
228
|
}
|
|
228
229
|
declare const ToggleButtonsWithLabel: <T extends FieldValues>(props: ToggleButtonsMultipleProps & UseControllerProps<T>) => react_jsx_runtime.JSX.Element;
|
|
229
230
|
|
package/dist/index.d.ts
CHANGED
|
@@ -224,6 +224,7 @@ interface ToggleButtonsMultipleProps extends ToggleButtonGroupProps$1 {
|
|
|
224
224
|
collapseParent?: () => void;
|
|
225
225
|
label?: string;
|
|
226
226
|
flexDirection?: "row" | "col";
|
|
227
|
+
fixWidth?: boolean;
|
|
227
228
|
}
|
|
228
229
|
declare const ToggleButtonsWithLabel: <T extends FieldValues>(props: ToggleButtonsMultipleProps & UseControllerProps<T>) => react_jsx_runtime.JSX.Element;
|
|
229
230
|
|
package/dist/index.js
CHANGED
|
@@ -1325,7 +1325,8 @@ var ToggleButtonsWithLabel = (props) => {
|
|
|
1325
1325
|
collapseOnClick = false,
|
|
1326
1326
|
label,
|
|
1327
1327
|
collapseParent,
|
|
1328
|
-
flexDirection = "row"
|
|
1328
|
+
flexDirection = "row",
|
|
1329
|
+
fixWidth = false
|
|
1329
1330
|
} = props;
|
|
1330
1331
|
const { field } = (0, import_react_hook_form3.useController)(props);
|
|
1331
1332
|
const handleFormat = (_event, newFormats) => {
|
|
@@ -1348,7 +1349,10 @@ var ToggleButtonsWithLabel = (props) => {
|
|
|
1348
1349
|
{
|
|
1349
1350
|
value: option.value,
|
|
1350
1351
|
textView,
|
|
1351
|
-
|
|
1352
|
+
sx: {
|
|
1353
|
+
color: "#343434",
|
|
1354
|
+
width: fixWidth ? "70px" : "initial"
|
|
1355
|
+
},
|
|
1352
1356
|
children: option.title
|
|
1353
1357
|
},
|
|
1354
1358
|
index
|
package/dist/index.mjs
CHANGED
|
@@ -1280,7 +1280,8 @@ var ToggleButtonsWithLabel = (props) => {
|
|
|
1280
1280
|
collapseOnClick = false,
|
|
1281
1281
|
label,
|
|
1282
1282
|
collapseParent,
|
|
1283
|
-
flexDirection = "row"
|
|
1283
|
+
flexDirection = "row",
|
|
1284
|
+
fixWidth = false
|
|
1284
1285
|
} = props;
|
|
1285
1286
|
const { field } = useController3(props);
|
|
1286
1287
|
const handleFormat = (_event, newFormats) => {
|
|
@@ -1303,7 +1304,10 @@ var ToggleButtonsWithLabel = (props) => {
|
|
|
1303
1304
|
{
|
|
1304
1305
|
value: option.value,
|
|
1305
1306
|
textView,
|
|
1306
|
-
|
|
1307
|
+
sx: {
|
|
1308
|
+
color: "#343434",
|
|
1309
|
+
width: fixWidth ? "70px" : "initial"
|
|
1310
|
+
},
|
|
1307
1311
|
children: option.title
|
|
1308
1312
|
},
|
|
1309
1313
|
index
|