@octoguide/mui-ui-toolkit 0.7.5 → 0.7.6

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
@@ -2376,7 +2376,7 @@ var StyledSelectionContainer = (0, import_styles13.styled)("button")(
2376
2376
  outline: "none"
2377
2377
  },
2378
2378
  '&:focus:not([data-lose-focus="true"])': {
2379
- boxShadow: "rgba(0, 0, 0, 0.65) 0 0 0 3px",
2379
+ boxShadow: `${(0, import_styles13.alpha)(theme.palette.text.primary, 0.65)} 0 0 0 3px`,
2380
2380
  outlineColor: "transparent",
2381
2381
  outlineStyle: "solid",
2382
2382
  borderColor: theme.palette.text.primary,
@@ -3652,6 +3652,7 @@ function Toggle({
3652
3652
  onBlur,
3653
3653
  ...restProps
3654
3654
  }) {
3655
+ const testId = restProps["data-testid"];
3655
3656
  return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(StyledFieldset, { "data-component-id": "toggle", ...getCleanProps(restProps), children: [
3656
3657
  label && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(StyledLegend, { children: label }),
3657
3658
  description && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_FormHelperText.default, { children: description }),
@@ -3662,6 +3663,7 @@ function Toggle({
3662
3663
  htmlFor: `${name}off`,
3663
3664
  selected: !checked,
3664
3665
  controlType: "off",
3666
+ "data-testid": testId ? `${testId}-off` : void 0,
3665
3667
  children: [
3666
3668
  /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
3667
3669
  "input",
@@ -3685,6 +3687,7 @@ function Toggle({
3685
3687
  htmlFor: `${name}on`,
3686
3688
  selected: checked,
3687
3689
  controlType: "on",
3690
+ "data-testid": testId ? `${testId}-on` : void 0,
3688
3691
  children: [
3689
3692
  /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
3690
3693
  "input",