Skip to content

Commit 105fc28

Browse files
committed
feat(storybook): live modifiers preview
1 parent 310b634 commit 105fc28

File tree

227 files changed

+45707
-9467
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

227 files changed

+45707
-9467
lines changed

.changeset/eleven-plants-grow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@spectrum-css/generator": patch
3+
---
4+
5+
Update story templates to include the cssprops imports

.changeset/modern-times-happen.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/new-bulldogs-add.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@spectrum-css/preview": minor
3+
---
4+
5+
New feature: Custom properties panel added to the development preview showing a list of modifiable custom properties as loaded from the metadata/metadata.json resource in each component.

.changeset/pre.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@
154154
"metal-fireants-switch",
155155
"mighty-pigs-accept",
156156
"modern-chairs-sit",
157-
"modern-times-happen",
158157
"nasty-rats-rhyme",
159158
"neat-schools-take",
160159
"nice-cows-shout",

.eslintrc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
"parserOptions": {
99
"sourceType": "module"
1010
},
11+
"settings": {
12+
"react": {
13+
"version": "detect"
14+
}
15+
},
1116
"extends": "eslint:recommended",
1217
"rules": {
1318
"brace-style": ["warn", "stroustrup", { "allowSingleLine": true }],
@@ -17,7 +22,8 @@
1722
"no-console": ["warn", { "allow": ["warn", "error"] }],
1823
"quotes": ["warn", "double"],
1924
"semi": ["warn", "always"],
20-
"space-before-blocks": ["warn", "always"]
25+
"space-before-blocks": ["warn", "always"],
26+
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }]
2127
},
2228
"overrides": [
2329
{
@@ -174,6 +180,7 @@
174180
".storybook/*.js",
175181
".storybook/**/*.js"
176182
],
183+
"extends": ["plugin:react/recommended", "plugin:react/jsx-runtime"],
177184
"parserOptions": {
178185
"ecmaVersion": "latest",
179186
"sourceType": "module",

.storybook/CHANGELOG.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
# Change Log
22

3-
## 12.1.0-next.17
4-
5-
### Patch Changes
6-
7-
Updated dependencies []:
8-
9-
- @spectrum-css/bundle@2.0.0-next.13
10-
113
## 12.1.0-next.16
124

135
### Patch Changes

.storybook/main.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ export default {
6868
name: "@storybook/addon-actions",
6969
options: {},
7070
},
71+
// https://github.com/ljcl/storybook-addon-cssprops
72+
"@ljcl/storybook-addon-cssprops",
7173
// https://www.npmjs.com/package/@whitespace/storybook-addon-html
7274
"@whitespace/storybook-addon-html",
7375
// https://github.com/storybookjs/storybook/tree/next/code/addons/a11y

.storybook/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@spectrum-css/preview",
3-
"version": "12.1.0-next.17",
3+
"version": "12.1.0-next.16",
44
"description": "A Spectrum CSS preview",
55
"license": "Apache-2.0",
66
"author": "Adobe",
@@ -40,14 +40,15 @@
4040
},
4141
"dependencies": {
4242
"@adobe/spectrum-css-workflow-icons": "^5.0.0",
43-
"@spectrum-css/bundle": "2.0.0-next.13",
43+
"@spectrum-css/bundle": "2.0.0-next.12",
4444
"@spectrum-css/tokens": "16.1.0-next.8",
4545
"@spectrum-css/ui-icons": "2.0.0-next.2"
4646
},
4747
"devDependencies": {
4848
"@babel/core": "^7.28.3",
4949
"@chromatic-com/storybook": "^3.2.7",
5050
"@etchteam/storybook-addon-status": "^5.0.0",
51+
"@ljcl/storybook-addon-cssprops": "4.0.0",
5152
"@storybook/addon-a11y": "8.4.7",
5253
"@storybook/addon-actions": "8.4.7",
5354
"@storybook/addon-designs": "^8.2.1",
@@ -60,7 +61,7 @@
6061
"@storybook/core-events": "8.4.7",
6162
"@storybook/manager-api": "8.4.7",
6263
"@storybook/preview-api": "8.4.7",
63-
"@storybook/test-runner": "^0.22.0",
64+
"@storybook/test-runner": "^0.23.0",
6465
"@storybook/theming": "8.4.7",
6566
"@storybook/web-components-vite": "8.4.7",
6667
"@whitespace/storybook-addon-html": "^7.0.0",

.storybook/preview.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import DocumentationTemplate from "./templates/DocumentationTemplate.mdx";
1515
import { argTypes, globalTypes } from "./types";
1616

1717
// Import the custom base styles
18+
import "@spectrum-css/bundle/dist/index.css";
1819
import "./assets/base.css";
1920

2021
/** @type import('@storybook/types').StorybookParameters & import('@storybook/types').API_Layout */

0 commit comments

Comments
 (0)