@startupjs-ui/checkbox 0.1.22 → 0.2.0-alpha.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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [0.2.0-alpha.0](https://github.com/startupjs/startupjs-ui/compare/v0.1.22...v0.2.0-alpha.0) (2026-03-27)
7
+
8
+
9
+ ### Features
10
+
11
+ * fix and improve accessibility of various components. Add storybook with tests. ([#21](https://github.com/startupjs/startupjs-ui/issues/21)) ([83b6576](https://github.com/startupjs/startupjs-ui/commit/83b65767ed61b24209f71b143ba1c2986170ab58))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [0.1.22](https://github.com/startupjs/startupjs-ui/compare/v0.1.21...v0.1.22) (2026-03-25)
7
18
 
8
19
  **Note:** Version bump only for package @startupjs-ui/checkbox
package/checkbox.tsx CHANGED
@@ -51,7 +51,7 @@ function CheckboxInput ({
51
51
  return pug`
52
52
  Div.checkbox(
53
53
  styleName=[checkedStyleName, { error: _hasError }]
54
- accessibilityRole='checkbox'
54
+ role='checkbox'
55
55
  onLayout=(event) => setWidth(event.nativeEvent.layout.width)
56
56
  ...props
57
57
  )
package/index.tsx CHANGED
@@ -76,7 +76,9 @@ function Checkbox ({
76
76
  value=value
77
77
  onPress=onPress
78
78
  disabled=disabled
79
- accessibilityRole='checkbox'
79
+ role=variant === 'switch' ? 'switch' : 'checkbox'
80
+ aria-checked=value
81
+ aria-disabled=disabled
80
82
  ...props
81
83
  )
82
84
  `
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startupjs-ui/checkbox",
3
- "version": "0.1.22",
3
+ "version": "0.2.0-alpha.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -8,15 +8,15 @@
8
8
  "types": "index.d.ts",
9
9
  "type": "module",
10
10
  "dependencies": {
11
- "@startupjs-ui/core": "^0.1.22",
12
- "@startupjs-ui/div": "^0.1.22",
13
- "@startupjs-ui/icon": "^0.1.22",
14
- "@startupjs-ui/span": "^0.1.22"
11
+ "@startupjs-ui/core": "^0.2.0-alpha.0",
12
+ "@startupjs-ui/div": "^0.2.0-alpha.0",
13
+ "@startupjs-ui/icon": "^0.2.0-alpha.0",
14
+ "@startupjs-ui/span": "^0.2.0-alpha.0"
15
15
  },
16
16
  "peerDependencies": {
17
17
  "react": "*",
18
18
  "react-native": "*",
19
19
  "startupjs": "*"
20
20
  },
21
- "gitHead": "3bd18c16f0f203ee3d940bf2e09381edc0034665"
21
+ "gitHead": "a428246a18d0e7f77809043c8240253240d11d66"
22
22
  }