@multiplatform.one/components 7.89.0 → 7.90.1
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@multiplatform.one/components",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.90.1",
|
|
4
4
|
"description": "multiplatform.one ui components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"components",
|
|
@@ -58,11 +58,11 @@
|
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@floating-ui/react": "^0.27.20",
|
|
61
|
-
"@multiplatform.one/forms": "^7.
|
|
62
|
-
"@multiplatform.one/i18n": "^7.
|
|
63
|
-
"@multiplatform.one/platform": "^7.
|
|
64
|
-
"@multiplatform.one/router": "^7.
|
|
65
|
-
"@multiplatform.one/theme": "^7.
|
|
61
|
+
"@multiplatform.one/forms": "^7.90.1",
|
|
62
|
+
"@multiplatform.one/i18n": "^7.90.1",
|
|
63
|
+
"@multiplatform.one/platform": "^7.90.1",
|
|
64
|
+
"@multiplatform.one/router": "^7.90.1",
|
|
65
|
+
"@multiplatform.one/theme": "^7.90.1",
|
|
66
66
|
"@phosphor-icons/react": "^2.1.10",
|
|
67
67
|
"@shopify/flash-list": "^2.3.1",
|
|
68
68
|
"@tamagui/colors": "2.7.6",
|
|
@@ -89,9 +89,9 @@
|
|
|
89
89
|
"tamagui": "2.7.6"
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
|
-
"@multiplatform.one/config": "7.
|
|
93
|
-
"@multiplatform.one/storybook": "7.
|
|
94
|
-
"@multiplatform.one/test-utils": "7.
|
|
92
|
+
"@multiplatform.one/config": "7.90.1",
|
|
93
|
+
"@multiplatform.one/storybook": "7.90.1",
|
|
94
|
+
"@multiplatform.one/test-utils": "7.90.1",
|
|
95
95
|
"@tamagui/build": "2.7.6",
|
|
96
96
|
"@testing-library/jest-dom": "^7.0.1",
|
|
97
97
|
"@testing-library/react": "^16.3.3",
|
|
@@ -162,6 +162,9 @@ export const OverCards: Story = {
|
|
|
162
162
|
};
|
|
163
163
|
|
|
164
164
|
export const TabsInDraggableSheet: Story = {
|
|
165
|
-
parameters: {
|
|
165
|
+
parameters: {
|
|
166
|
+
nativeGallery: { scroll: false },
|
|
167
|
+
lostpixel: { viewport: { width: 1280, height: 720 } },
|
|
168
|
+
},
|
|
166
169
|
render: () => <TabsInSheetHarness />,
|
|
167
170
|
};
|
|
@@ -154,11 +154,11 @@ describe("TabBar (LC-150 TAB-BAR-ANATOMY)", () => {
|
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
it(`${scheme},
|
|
157
|
+
it(`${scheme}, house root: the active tab is the house accent's ink, never grey`, () => {
|
|
158
158
|
const seen = renderBar(scheme, "/");
|
|
159
159
|
expect(expected.accent).toBeTruthy();
|
|
160
|
-
// The house accent is the neutral
|
|
161
|
-
// ink
|
|
160
|
+
// The house accent is blue on the neutral root: the active tab is its
|
|
161
|
+
// identity ink, never the grey accent-ramp step (Round 54).
|
|
162
162
|
expect(expected.accent).toBe(expected.identity);
|
|
163
163
|
expect(expected.accent).not.toBe(expected.secondary);
|
|
164
164
|
expect(seen["/"]).toMatchObject({ color: expected.accent, weight: "fill" });
|
|
@@ -43,8 +43,11 @@ function rgb(colour: string): string {
|
|
|
43
43
|
probe.style.color = colour;
|
|
44
44
|
const css = probe.style.color.replace(/\s+/g, "");
|
|
45
45
|
const hsl = css.match(/^hsla?\(([\d.]+),([\d.]+)%,([\d.]+)%(?:,([\d.]+))?\)$/);
|
|
46
|
+
const hex = css.match(/^#([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i);
|
|
46
47
|
let channels: number[];
|
|
47
|
-
if (
|
|
48
|
+
if (hex) {
|
|
49
|
+
channels = [...hex.slice(1).map((pair) => Number.parseInt(pair, 16)), 1];
|
|
50
|
+
} else if (hsl) {
|
|
48
51
|
const [h, s, l] = [Number(hsl[1]) / 360, Number(hsl[2]) / 100, Number(hsl[3]) / 100];
|
|
49
52
|
const q = l < 0.5 ? l * (1 + s) : l + s - l * s;
|
|
50
53
|
const p = 2 * l - q;
|