Skip to content

Commit 80f2ad3

Browse files
authored
Internal tooling updates (#3708)
1 parent e2d5d89 commit 80f2ad3

File tree

5 files changed

+407
-142
lines changed

5 files changed

+407
-142
lines changed

apps/storybook/.storybook/main.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ const config: StorybookConfig = {
66
'../stories/**/*.mdx',
77
'../stories/**/*.stories.@(js|jsx|mjs|ts|tsx)',
88
],
9+
features: {
10+
experimentalRSC: true,
11+
},
912
addons: ['@storybook/addon-docs'],
1013
framework: {
1114
name: '@storybook/react-vite',

apps/storybook/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@
3030
"@types/react": "^19.2.2",
3131
"@types/react-dom": "^19.2.2",
3232
"eslint": "^9.38.0",
33+
"eslint-plugin-storybook": "^9.1.15",
3334
"serve": "^14.2.5",
3435
"storybook": "^9.1.15",
3536
"typescript": "^5.9.3",
36-
"eslint-plugin-storybook": "^9.1.15",
37-
"vite": "^6.2.0",
37+
"vite": "^7.1.12",
3838
"vitest": "^3.1.1"
3939
}
4040
}

apps/storybook/stories/slot.stories.tsx

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
import * as React from 'react';
22
import { Slot } from 'radix-ui';
3+
import type { Meta, StoryObj } from '@storybook/react-vite';
34

4-
export default { title: 'Utilities/Slot' };
5+
export default { title: 'Utilities/Slot' } satisfies Meta<typeof Slot.Root>;
56

6-
export const WithoutSlottable = () => (
7-
<SlotWithoutSlottable>
8-
<b data-slot-element>hello</b>
9-
</SlotWithoutSlottable>
10-
);
7+
type Story = StoryObj<typeof Slot.Root>;
8+
9+
export const WithoutSlottable = {
10+
render: () => (
11+
<SlotWithoutSlottable>
12+
<b data-slot-element>hello</b>
13+
</SlotWithoutSlottable>
14+
),
15+
} satisfies Story;
1116

1217
export const WithSlottable = () => (
1318
<SlotWithSlottable>

package.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,13 @@
3333
},
3434
"devDependencies": {
3535
"@chance/eslint": "^1.1.0",
36-
"@changesets/cli": "^2.28.1",
36+
"@changesets/cli": "^2.29.7",
3737
"@radix-ui/colors": "^3.0.0",
3838
"@testing-library/cypress": "^10.1.0",
3939
"@testing-library/dom": "^10.4.1",
4040
"@testing-library/jest-dom": "^6.9.1",
4141
"@testing-library/react": "^16.3.0",
42+
"@testing-library/react-12": "npm:@testing-library/react@^12.1.5",
4243
"@testing-library/user-event": "^14.6.1",
4344
"@types/fs-extra": "^11",
4445
"@types/node": "^22",
@@ -62,6 +63,17 @@
6263
"react": "^19.2.0",
6364
"react-dom": "^19.2.0",
6465
"react-test-renderer": "^19.2.0",
66+
"react-is": "^19.2.0",
67+
"react-remove-scroll": "^2.6.3",
68+
"react-16": "npm:react@^16.14.0",
69+
"react-17": "npm:react@^17.0.2",
70+
"react-18": "npm:react@^18.3.1",
71+
"react-dom-16": "npm:react-dom@^16.14.0",
72+
"react-dom-17": "npm:react-dom@^17.0.2",
73+
"react-dom-18": "npm:react-dom@^18.3.1",
74+
"react-is-16": "npm:react-is@^16.13.1",
75+
"react-is-17": "npm:react-is@^17.0.2",
76+
"react-is-18": "npm:react-is@^18.3.1",
6577
"replace-in-files": "^3.0.0",
6678
"start-server-and-test": "^2.1.2",
6779
"tsup": "^8.3.6",

0 commit comments

Comments
 (0)