@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.89.0",
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.89.0",
62
- "@multiplatform.one/i18n": "^7.89.0",
63
- "@multiplatform.one/platform": "^7.89.0",
64
- "@multiplatform.one/router": "^7.89.0",
65
- "@multiplatform.one/theme": "^7.89.0",
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.89.0",
93
- "@multiplatform.one/storybook": "7.89.0",
94
- "@multiplatform.one/test-utils": "7.89.0",
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: { nativeGallery: { scroll: false } },
165
+ parameters: {
166
+ nativeGallery: { scroll: false },
167
+ lostpixel: { viewport: { width: 1280, height: 720 } },
168
+ },
166
169
  render: () => <TabsInSheetHarness />,
167
170
  };
@@ -156,6 +156,7 @@ function Demo({
156
156
  const meta: Meta<typeof AppShell> = {
157
157
  title: "Components/AppShell",
158
158
  component: AppShell,
159
+ excludeStories: ["destinations"],
159
160
  parameters: { layout: "fullscreen", status: { type: "beta" } },
160
161
  };
161
162
 
@@ -154,11 +154,11 @@ describe("TabBar (LC-150 TAB-BAR-ANATOMY)", () => {
154
154
  });
155
155
  }
156
156
 
157
- it(`${scheme}, no hue: the active tab is the neutral accent's ink, bold mono, never grey`, () => {
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 inverse: the active tab is the same
161
- // ink the system bar draws, never the grey accent-ramp step (Round 54).
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 (hsl) {
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;