@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 +4 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2314,7 +2314,7 @@ var StyledSelectionContainer = styled12("button")(
|
|
|
2314
2314
|
outline: "none"
|
|
2315
2315
|
},
|
|
2316
2316
|
'&:focus:not([data-lose-focus="true"])': {
|
|
2317
|
-
boxShadow:
|
|
2317
|
+
boxShadow: `${alpha3(theme.palette.text.primary, 0.65)} 0 0 0 3px`,
|
|
2318
2318
|
outlineColor: "transparent",
|
|
2319
2319
|
outlineStyle: "solid",
|
|
2320
2320
|
borderColor: theme.palette.text.primary,
|
|
@@ -3590,6 +3590,7 @@ function Toggle({
|
|
|
3590
3590
|
onBlur,
|
|
3591
3591
|
...restProps
|
|
3592
3592
|
}) {
|
|
3593
|
+
const testId = restProps["data-testid"];
|
|
3593
3594
|
return /* @__PURE__ */ jsxs13(StyledFieldset, { "data-component-id": "toggle", ...getCleanProps(restProps), children: [
|
|
3594
3595
|
label && /* @__PURE__ */ jsx26(StyledLegend, { children: label }),
|
|
3595
3596
|
description && /* @__PURE__ */ jsx26(FormHelperText, { children: description }),
|
|
@@ -3600,6 +3601,7 @@ function Toggle({
|
|
|
3600
3601
|
htmlFor: `${name}off`,
|
|
3601
3602
|
selected: !checked,
|
|
3602
3603
|
controlType: "off",
|
|
3604
|
+
"data-testid": testId ? `${testId}-off` : void 0,
|
|
3603
3605
|
children: [
|
|
3604
3606
|
/* @__PURE__ */ jsx26(
|
|
3605
3607
|
"input",
|
|
@@ -3623,6 +3625,7 @@ function Toggle({
|
|
|
3623
3625
|
htmlFor: `${name}on`,
|
|
3624
3626
|
selected: checked,
|
|
3625
3627
|
controlType: "on",
|
|
3628
|
+
"data-testid": testId ? `${testId}-on` : void 0,
|
|
3626
3629
|
children: [
|
|
3627
3630
|
/* @__PURE__ */ jsx26(
|
|
3628
3631
|
"input",
|