@multiplatform.one/components 10.3.0 → 10.4.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/package.json +7 -7
- package/src/checkedRow.spec.tsx +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@multiplatform.one/components",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.4.0",
|
|
4
4
|
"description": "multiplatform.one ui components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"components",
|
|
@@ -69,9 +69,9 @@
|
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
71
|
"@floating-ui/react": "^0.27.20",
|
|
72
|
-
"@multiplatform.one/forms": "^10.
|
|
73
|
-
"@multiplatform.one/platform": "^10.
|
|
74
|
-
"@multiplatform.one/theme": "^10.
|
|
72
|
+
"@multiplatform.one/forms": "^10.4.0",
|
|
73
|
+
"@multiplatform.one/platform": "^10.4.0",
|
|
74
|
+
"@multiplatform.one/theme": "^10.4.0",
|
|
75
75
|
"@phosphor-icons/react": "^2.1.10",
|
|
76
76
|
"@shopify/flash-list": "^2.3.1",
|
|
77
77
|
"@tamagui/colors": "3.2.3",
|
|
@@ -97,9 +97,9 @@
|
|
|
97
97
|
"tamagui": "3.2.3"
|
|
98
98
|
},
|
|
99
99
|
"devDependencies": {
|
|
100
|
-
"@multiplatform.one/config": "10.
|
|
101
|
-
"@multiplatform.one/storybook": "10.
|
|
102
|
-
"@multiplatform.one/test-utils": "10.
|
|
100
|
+
"@multiplatform.one/config": "10.4.0",
|
|
101
|
+
"@multiplatform.one/storybook": "10.4.0",
|
|
102
|
+
"@multiplatform.one/test-utils": "10.4.0",
|
|
103
103
|
"@tamagui/build": "3.2.3",
|
|
104
104
|
"@testing-library/jest-dom": "^7.0.1",
|
|
105
105
|
"@testing-library/react": "^16.3.3",
|
package/src/checkedRow.spec.tsx
CHANGED
|
@@ -76,6 +76,12 @@ describe("a checked menu or picker row is highlighted under its check (LC-262, F
|
|
|
76
76
|
expect(
|
|
77
77
|
cssVariableName(atomicStyle(unchecked, { condition: ":hover" }).backgroundColor),
|
|
78
78
|
).toBe("color-3");
|
|
79
|
+
// And under keyboard focus, which is a separate declaration from the
|
|
80
|
+
// hover one. Reading it only in light would pass on the hover fill,
|
|
81
|
+
// since light's checked fill is $color-3 and dark's is $color-6.
|
|
82
|
+
expect(cssVariableName(atomicStyle(checked, { condition: ":focus" }).backgroundColor)).toBe(
|
|
83
|
+
checkedFill[scheme],
|
|
84
|
+
);
|
|
79
85
|
await waitFor(() => {
|
|
80
86
|
expect(document.activeElement?.getAttribute("role")).not.toBe("menuitemcheckbox");
|
|
81
87
|
});
|