cetec-design-system 2.2.1-next.0 → 2.2.2-next.0

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
@@ -17300,10 +17300,6 @@ const MenuItem = (props) => {
17300
17300
  rootContext.onCloseMenu();
17301
17301
  }
17302
17302
  };
17303
- const handleControlChange = (event) => {
17304
- event.preventDefault();
17305
- event.stopPropagation();
17306
- };
17307
17303
  const itemProps = listContext ? listContext.getItemProps({
17308
17304
  onClick: handleSelect
17309
17305
  }) : {
@@ -17381,21 +17377,23 @@ const MenuItem = (props) => {
17381
17377
  Checkbox,
17382
17378
  {
17383
17379
  name: controlName,
17384
- className: classes.beforeSlot,
17380
+ className: cx(classes.beforeSlot, css({ pointerEvents: "none" })),
17385
17381
  checked: Boolean(selected),
17386
- onChange: handleControlChange,
17387
- tabIndex: -1
17382
+ readOnly: true,
17383
+ tabIndex: -1,
17384
+ "aria-hidden": true
17388
17385
  }
17389
17386
  ),
17390
17387
  variant === "toggle" && /* @__PURE__ */ jsx(
17391
17388
  Toggle,
17392
17389
  {
17393
17390
  name: controlName,
17394
- className: classes.beforeSlot,
17391
+ className: cx(classes.beforeSlot, css({ pointerEvents: "none" })),
17395
17392
  checked: Boolean(selected),
17396
- onChange: handleControlChange,
17393
+ readOnly: true,
17397
17394
  mr: "4",
17398
- tabIndex: -1
17395
+ tabIndex: -1,
17396
+ "aria-hidden": true
17399
17397
  }
17400
17398
  ),
17401
17399
  iconBefore && /* @__PURE__ */ jsx(