@pie-lib/correct-answer-toggle 5.0.1-next.20261005190856 → 5.0.1-next.20261006003311

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.
Files changed (2) hide show
  1. package/dist/index.js +16 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -25,10 +25,22 @@ var m = p(a, "Readable") || p(_.Readable, "Readable"), h = i, g = h.default, _ =
25
25
  }, b = t("div")(() => ({
26
26
  width: "100%",
27
27
  cursor: "pointer"
28
- })), x = t("div")(() => ({
28
+ })), x = t("button")(() => ({
29
29
  margin: "0 auto",
30
30
  textAlign: "center",
31
- display: "flex"
31
+ display: "flex",
32
+ minWidth: "24px",
33
+ minHeight: "24px",
34
+ padding: 0,
35
+ border: 0,
36
+ background: "none",
37
+ color: "inherit",
38
+ font: "inherit",
39
+ cursor: "pointer",
40
+ "&:focus-visible": {
41
+ outline: `2px solid ${o.buttonFocusOutline()}`,
42
+ outlineOffset: "-2px"
43
+ }
32
44
  })), S = t("div")(() => ({
33
45
  width: "fit-content",
34
46
  minWidth: "140px",
@@ -98,6 +110,8 @@ var m = p(a, "Readable") || p(_.Readable, "Readable"), h = i, g = h.default, _ =
98
110
  children: /* @__PURE__ */ s(e, {
99
111
  show: this.state.show,
100
112
  children: /* @__PURE__ */ c(x, {
113
+ type: "button",
114
+ "aria-pressed": !!i,
101
115
  onClick: this.onClick.bind(this),
102
116
  onTouchEnd: this.onTouch.bind(this),
103
117
  children: [/* @__PURE__ */ c(w, { children: [/* @__PURE__ */ s(n, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-lib/correct-answer-toggle",
3
- "version": "5.0.1-next.20261005190856",
3
+ "version": "5.0.1-next.20261006003311",
4
4
  "description": "A react based toggle component",
5
5
  "repository": {
6
6
  "type": "git",
@@ -13,7 +13,7 @@
13
13
  "@mui/icons-material": "^7.3.4",
14
14
  "@mui/material": "^7.3.4",
15
15
  "@pie-lib/icons": "5.0.1-next.20261004165705",
16
- "@pie-lib/render-ui": "8.0.1-next.20261005190856",
16
+ "@pie-lib/render-ui": "8.0.1-next.20261006003311",
17
17
  "@pie-lib/translator": "5.0.1-next.20261005075357",
18
18
  "prop-types": "^15.6.2",
19
19
  "react-transition-group": "^4.4.5",