@xsolla/xui-checkbox 0.150.0 → 0.151.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/README.md +0 -32
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -6,8 +6,6 @@ A cross-platform React checkbox component with label, description, indeterminate
|
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
8
|
npm install @xsolla/xui-checkbox
|
|
9
|
-
# or
|
|
10
|
-
yarn add @xsolla/xui-checkbox
|
|
11
9
|
```
|
|
12
10
|
|
|
13
11
|
## Demo
|
|
@@ -268,36 +266,6 @@ The main checkbox component with label support.
|
|
|
268
266
|
|
|
269
267
|
Frame border is 1px with 4px radius at every size.
|
|
270
268
|
|
|
271
|
-
## Theming
|
|
272
|
-
|
|
273
|
-
Checkbox uses the design system theme for colors:
|
|
274
|
-
|
|
275
|
-
```typescript
|
|
276
|
-
// Box fill / icon (checked + indeterminate)
|
|
277
|
-
theme.colors.control.check.bg // Checked background
|
|
278
|
-
theme.colors.control.check.bgHover // Checked background (hover)
|
|
279
|
-
theme.colors.control.check.bgDisable // Disabled background
|
|
280
|
-
theme.colors.control.check.border // Checked border
|
|
281
|
-
theme.colors.control.check.borderHover // Checked border (hover)
|
|
282
|
-
theme.colors.control.check.icon // Checkmark / minus icon
|
|
283
|
-
|
|
284
|
-
// Box fill / border (unchecked)
|
|
285
|
-
theme.colors.control.faint.bg // Unchecked background
|
|
286
|
-
theme.colors.control.faint.bgHover // Unchecked background (hover)
|
|
287
|
-
theme.colors.control.faint.border // Unchecked border
|
|
288
|
-
theme.colors.control.faint.borderHover // Unchecked border (hover)
|
|
289
|
-
|
|
290
|
-
// Text
|
|
291
|
-
theme.colors.control.text.primary // Label text
|
|
292
|
-
theme.colors.control.text.disable // Disabled label / icon / description
|
|
293
|
-
theme.colors.content.tertiary // Description text
|
|
294
|
-
theme.colors.content.alert.primary // Error message text
|
|
295
|
-
|
|
296
|
-
// Validation + focus
|
|
297
|
-
theme.colors.border.alert // Error-state border
|
|
298
|
-
theme.colors.border.brand // Focus ring outline
|
|
299
|
-
```
|
|
300
|
-
|
|
301
269
|
## Accessibility
|
|
302
270
|
|
|
303
271
|
- `role="checkbox"` with `aria-checked` reflecting state (`"true"`, `"false"`, `"mixed"`).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xsolla/xui-checkbox",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.151.0",
|
|
4
4
|
"main": "./web/index.js",
|
|
5
5
|
"module": "./web/index.mjs",
|
|
6
6
|
"types": "./web/index.d.ts",
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
"test:coverage": "vitest run --coverage"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@xsolla/xui-core": "0.
|
|
17
|
-
"@xsolla/xui-icons": "0.
|
|
18
|
-
"@xsolla/xui-primitives-core": "0.
|
|
16
|
+
"@xsolla/xui-core": "0.151.0",
|
|
17
|
+
"@xsolla/xui-icons": "0.151.0",
|
|
18
|
+
"@xsolla/xui-primitives-core": "0.151.0"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"react": ">=16.8.0",
|