mayak-common-library 0.0.65 → 0.0.66
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 +9 -3
- package/dist/index.mjs +9 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -242,6 +242,7 @@ declare const ToggleButtonGroup: FC<ToggleButtonGroupProps & PropsWithChildren>;
|
|
|
242
242
|
interface CustomCheckboxProps {
|
|
243
243
|
labelProps?: FormControlLabelProps$1;
|
|
244
244
|
checkboxProps?: CheckboxProps;
|
|
245
|
+
className?: string;
|
|
245
246
|
label?: string;
|
|
246
247
|
toggleView?: boolean;
|
|
247
248
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -242,6 +242,7 @@ declare const ToggleButtonGroup: FC<ToggleButtonGroupProps & PropsWithChildren>;
|
|
|
242
242
|
interface CustomCheckboxProps {
|
|
243
243
|
labelProps?: FormControlLabelProps$1;
|
|
244
244
|
checkboxProps?: CheckboxProps;
|
|
245
|
+
className?: string;
|
|
245
246
|
label?: string;
|
|
246
247
|
toggleView?: boolean;
|
|
247
248
|
}
|
package/dist/index.js
CHANGED
|
@@ -1348,7 +1348,7 @@ var ToggleButtonsWithLabel = (props) => {
|
|
|
1348
1348
|
{
|
|
1349
1349
|
value: option.value,
|
|
1350
1350
|
textView,
|
|
1351
|
-
className: "text-accent-dark",
|
|
1351
|
+
className: "!text-accent-dark",
|
|
1352
1352
|
children: option.title
|
|
1353
1353
|
},
|
|
1354
1354
|
index
|
|
@@ -1380,12 +1380,18 @@ var BpCheckedIcon = (0, import_material31.styled)(BpIcon)({
|
|
|
1380
1380
|
}
|
|
1381
1381
|
});
|
|
1382
1382
|
var CustomCheckbox = (props) => {
|
|
1383
|
-
const {
|
|
1383
|
+
const {
|
|
1384
|
+
label,
|
|
1385
|
+
labelProps,
|
|
1386
|
+
checkboxProps,
|
|
1387
|
+
className,
|
|
1388
|
+
toggleView = false
|
|
1389
|
+
} = props;
|
|
1384
1390
|
if (label)
|
|
1385
1391
|
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
1386
1392
|
import_material31.FormControlLabel,
|
|
1387
1393
|
__spreadProps(__spreadValues({
|
|
1388
|
-
className: `w-fit bg-accent-silver px-3 py-0.5 ml-0 h-[28px] ${toggleView ? "gap-0" : "gap-x-1"} ${(checkboxProps == null ? void 0 : checkboxProps.checked) && toggleView && "!bg-accent-beige"}`,
|
|
1394
|
+
className: `w-fit bg-accent-silver px-3 py-0.5 ml-0 h-[28px] ${toggleView ? "gap-0" : "gap-x-1"} ${(checkboxProps == null ? void 0 : checkboxProps.checked) && toggleView && "!bg-accent-beige"} ${className ? className : ""}`,
|
|
1389
1395
|
control: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
1390
1396
|
import_Checkbox.default,
|
|
1391
1397
|
__spreadProps(__spreadValues({}, checkboxProps), {
|
package/dist/index.mjs
CHANGED
|
@@ -1303,7 +1303,7 @@ var ToggleButtonsWithLabel = (props) => {
|
|
|
1303
1303
|
{
|
|
1304
1304
|
value: option.value,
|
|
1305
1305
|
textView,
|
|
1306
|
-
className: "text-accent-dark",
|
|
1306
|
+
className: "!text-accent-dark",
|
|
1307
1307
|
children: option.title
|
|
1308
1308
|
},
|
|
1309
1309
|
index
|
|
@@ -1335,12 +1335,18 @@ var BpCheckedIcon = styled11(BpIcon)({
|
|
|
1335
1335
|
}
|
|
1336
1336
|
});
|
|
1337
1337
|
var CustomCheckbox = (props) => {
|
|
1338
|
-
const {
|
|
1338
|
+
const {
|
|
1339
|
+
label,
|
|
1340
|
+
labelProps,
|
|
1341
|
+
checkboxProps,
|
|
1342
|
+
className,
|
|
1343
|
+
toggleView = false
|
|
1344
|
+
} = props;
|
|
1339
1345
|
if (label)
|
|
1340
1346
|
return /* @__PURE__ */ jsx47(
|
|
1341
1347
|
FormControlLabel2,
|
|
1342
1348
|
__spreadProps(__spreadValues({
|
|
1343
|
-
className: `w-fit bg-accent-silver px-3 py-0.5 ml-0 h-[28px] ${toggleView ? "gap-0" : "gap-x-1"} ${(checkboxProps == null ? void 0 : checkboxProps.checked) && toggleView && "!bg-accent-beige"}`,
|
|
1349
|
+
className: `w-fit bg-accent-silver px-3 py-0.5 ml-0 h-[28px] ${toggleView ? "gap-0" : "gap-x-1"} ${(checkboxProps == null ? void 0 : checkboxProps.checked) && toggleView && "!bg-accent-beige"} ${className ? className : ""}`,
|
|
1344
1350
|
control: /* @__PURE__ */ jsx47(
|
|
1345
1351
|
Checkbox,
|
|
1346
1352
|
__spreadProps(__spreadValues({}, checkboxProps), {
|