Skip to content

Commit bfef5d8

Browse files
authored
Add octovisual example, and fix storybook console warnings (#1312)
* add octovisual example, and fix noisy storybook logs * remove minimal variant image * update snapshots * fix previous changeset
1 parent fe2589d commit bfef5d8

10 files changed

Lines changed: 434 additions & 325 deletions

.changeset/clean-zebras-praise.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
⚠️ Breaking change: `SectionIntro.Label` no longer forwards props from the `Label` component, such as `size` and `color`.
66

7-
- `SectionIntro` vertical padding has been reduced at wider viewports
87
- `SectionIntro.Label` now appears as muted text with a green cursor icon for visual parity with `Hero.Label`.
98
- An optional `animate` prop is available to enable streaming cursor effect.
109

apps/storybook/.storybook/main.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
import path from 'node:path'
2+
import {fileURLToPath} from 'node:url'
3+
4+
const storybookRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..')
5+
16
export default {
27
stories: ['../../../packages/react/src/**/*.stories.@(js|jsx|ts|tsx)'],
38
staticDirs: ['../static'],
@@ -9,6 +14,15 @@ export default {
914
docs: {},
1015
typescript: {
1116
reactDocgen: 'react-docgen-typescript',
17+
reactDocgenTypescriptOptions: {
18+
tsconfigPath: path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../../../packages/react/tsconfig.json'),
19+
include: [path.join(storybookRoot, '../../packages/react/src/**/*.tsx')],
20+
exclude: [
21+
path.join(storybookRoot, '../../packages/react/src/**/*.stories.tsx'),
22+
path.join(storybookRoot, '../../packages/react/src/**/*.test.tsx'),
23+
path.join(storybookRoot, '../../packages/react/src/**/*.spec.tsx'),
24+
],
25+
},
1226
},
1327
core: {
1428
disableTelemetry: true,

apps/storybook/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"react-dom": "19.2.4",
6060
"react-i18next": "^17.0.2",
6161
"storybook": "10.3.4",
62+
"storybook-addon-pseudo-states": "10.3.4",
6263
"tsx": "^4.21.0",
6364
"typed-css-modules": "0.9.1",
6465
"typescript": "5.9.3"

package-lock.json

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/react/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"@figma/code-connect": "^1.4.3",
4949
"@juggle/resize-observer": "^3.4.0",
5050
"@primer/octicons-react": "19.23.1",
51+
"@primer/octovisuals-react": "0.3.0",
5152
"@testing-library/dom": "^10.4.1",
5253
"@testing-library/jest-dom": "6.9.1",
5354
"@testing-library/react": "16.3.2",

0 commit comments

Comments
 (0)