mayak-common-library 0.0.101 → 0.0.103

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.js CHANGED
@@ -1326,7 +1326,7 @@ var ToggleButtonGroup = (props) => {
1326
1326
  value,
1327
1327
  onChange,
1328
1328
  "aria-label": "text formatting",
1329
- className: `flex flex-${flexDirection} ${textView ? "gap-1 flex-nowrap flex-col" : " flex-wrap gap-2"}`,
1329
+ className: `flex flex-${flexDirection} gap-2 ${textView ? "flex-nowrap flex-col" : " flex-wrap"}`,
1330
1330
  children
1331
1331
  })
1332
1332
  );
@@ -1370,7 +1370,7 @@ var ToggleButtonsWithLabel = (props) => {
1370
1370
  } = props;
1371
1371
  const { field } = (0, import_react_hook_form3.useController)(props);
1372
1372
  const handleFormat = (_event, newFormats) => {
1373
- if (newFormats !== null) field.onChange(newFormats);
1373
+ field.onChange(newFormats);
1374
1374
  if (collapseOnClick && collapseParent) collapseParent();
1375
1375
  };
1376
1376
  return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_material30.Stack, { children: [
@@ -1383,7 +1383,7 @@ var ToggleButtonsWithLabel = (props) => {
1383
1383
  value: field.value,
1384
1384
  onChange: handleFormat,
1385
1385
  "aria-label": "text formatting",
1386
- className: `flex flex-${flexDirection} ${textView ? "!gap-1 flex-nowrap flex-col" : "flex-wrap"}`,
1386
+ className: `flex flex-${flexDirection} ${textView ? "gap-1 flex-nowrap flex-col" : "flex-wrap"}`,
1387
1387
  children: values.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
1388
1388
  ToggleButton_default,
1389
1389
  {
package/dist/index.mjs CHANGED
@@ -1281,7 +1281,7 @@ var ToggleButtonGroup = (props) => {
1281
1281
  value,
1282
1282
  onChange,
1283
1283
  "aria-label": "text formatting",
1284
- className: `flex flex-${flexDirection} ${textView ? "gap-1 flex-nowrap flex-col" : " flex-wrap gap-2"}`,
1284
+ className: `flex flex-${flexDirection} gap-2 ${textView ? "flex-nowrap flex-col" : " flex-wrap"}`,
1285
1285
  children
1286
1286
  })
1287
1287
  );
@@ -1325,7 +1325,7 @@ var ToggleButtonsWithLabel = (props) => {
1325
1325
  } = props;
1326
1326
  const { field } = useController3(props);
1327
1327
  const handleFormat = (_event, newFormats) => {
1328
- if (newFormats !== null) field.onChange(newFormats);
1328
+ field.onChange(newFormats);
1329
1329
  if (collapseOnClick && collapseParent) collapseParent();
1330
1330
  };
1331
1331
  return /* @__PURE__ */ jsxs18(Stack6, { children: [
@@ -1338,7 +1338,7 @@ var ToggleButtonsWithLabel = (props) => {
1338
1338
  value: field.value,
1339
1339
  onChange: handleFormat,
1340
1340
  "aria-label": "text formatting",
1341
- className: `flex flex-${flexDirection} ${textView ? "!gap-1 flex-nowrap flex-col" : "flex-wrap"}`,
1341
+ className: `flex flex-${flexDirection} ${textView ? "gap-1 flex-nowrap flex-col" : "flex-wrap"}`,
1342
1342
  children: values.map((option, index) => /* @__PURE__ */ jsx46(
1343
1343
  ToggleButton_default,
1344
1344
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mayak-common-library",
3
- "version": "0.0.101",
3
+ "version": "0.0.103",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",