@procore/storybook-addon 4.7.1 → 4.7.2
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/CHANGELOG.md +10 -0
- package/README.md +9 -11
- package/dist/legacy/index.cjs +7 -5247
- package/dist/legacy/index.d.cts +1 -1
- package/dist/legacy/index.d.ts +1 -1
- package/dist/legacy/index.js +3 -5234
- package/dist/legacy/preset.cjs +249 -42
- package/dist/legacy/preset.d.cts +8 -88
- package/dist/legacy/preset.d.ts +8 -88
- package/dist/legacy/preset.js +250 -43
- package/dist/modern/index.cjs +7 -5247
- package/dist/modern/index.d.cts +1 -1
- package/dist/modern/index.d.ts +1 -1
- package/dist/modern/index.js +3 -5234
- package/dist/modern/preset.cjs +249 -42
- package/dist/modern/preset.d.cts +8 -88
- package/dist/modern/preset.d.ts +8 -88
- package/dist/modern/preset.js +250 -43
- package/package.json +16 -11
- package/preset.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @procore/storybook-addon
|
|
2
2
|
|
|
3
|
+
## 4.7.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b8fa116: - Reverts changes related 4.6.0 and 4.7.0 and 4.7.1 .These changes introduced breaking behavior for consumers and are being reverted to prepare for a major version release with proper migration path.
|
|
8
|
+
|
|
3
9
|
## 4.7.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -8,6 +14,10 @@
|
|
|
8
14
|
|
|
9
15
|
## 4.7.0
|
|
10
16
|
|
|
17
|
+
### Deprecated
|
|
18
|
+
|
|
19
|
+
Deprecated: resolution issue after Storybook v10 upgrade. Use 4.7.1.
|
|
20
|
+
|
|
11
21
|
### Minor Changes
|
|
12
22
|
|
|
13
23
|
- 87aa6f4: [Upgrade Storybook to v10](https://storybook.js.org/docs/releases/migration-guide)
|
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ An addon to customize procore theme and adds common used configuration.
|
|
|
8
8
|
yarn add -D @procore/storybook-addon
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
And add the addon to
|
|
11
|
+
And add the addon to you addon sets:
|
|
12
12
|
|
|
13
13
|
```tsx
|
|
14
14
|
module.exports = {
|
|
@@ -16,13 +16,11 @@ module.exports = {
|
|
|
16
16
|
};
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
This addon
|
|
19
|
+
This simple addon adds 3 main addon used across different apps at Procore.
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
- [@storybook/addon-
|
|
24
|
-
- [@storybook/addon-a11y](https://storybook.js.org/addons/@storybook/addon-a11y) - Accessibility testing addon
|
|
25
|
-
- [@storybook/addon-styling-webpack](https://storybook.js.org/addons/@storybook/addon-styling-webpack) - Webpack styling configuration
|
|
21
|
+
- [@storybook/addon-essentials](https://storybook.js.org/addons/tag/essentials/)
|
|
22
|
+
- [@storybook/addon-storysource](https://storybook.js.org/addons/@storybook/addon-storysource)
|
|
23
|
+
- [@storybook/addon-a11y](https://storybook.js.org/addons/@storybook/addon-a11y)
|
|
26
24
|
|
|
27
25
|
## Usage
|
|
28
26
|
|
|
@@ -35,12 +33,12 @@ This addon provides essential functionality and addons used across different app
|
|
|
35
33
|
- a hower text ${\text{\color{green}{Core}}}$
|
|
36
34
|
- the link to core design system [https://design.procore.com](https://design.procore.com) on the logo.
|
|
37
35
|
|
|
38
|
-
In order to set the theme by default values ${\text{\color{green}{createProcoreTheme}}}$ needs to be added in `manager.
|
|
36
|
+
In order to set the theme by default values ${\text{\color{green}{createProcoreTheme}}}$ needs to be added in `manager.js`. If no parameter has been passed to the `createProcoreTheme` the aforementioned default values will be set.
|
|
39
37
|
|
|
40
38
|
```tsx
|
|
41
39
|
// .storybook/manager.js
|
|
42
40
|
import { createProcoreTheme } from '@procore/storybook-addon';
|
|
43
|
-
import { addons } from 'storybook/manager-api';
|
|
41
|
+
import { addons } from '@storybook/manager-api';
|
|
44
42
|
|
|
45
43
|
addons.setConfig({
|
|
46
44
|
theme: createProcoreTheme(),
|
|
@@ -53,7 +51,7 @@ For more configuration please visit: https://storybook.js.org/docs/react/configu
|
|
|
53
51
|
// .storybook/manager.js
|
|
54
52
|
// example below will override Procore default theming configuration
|
|
55
53
|
import { createProcoreTheme } from '@procore/storybook-addon';
|
|
56
|
-
import { addons } from 'storybook/manager-api';
|
|
54
|
+
import { addons } from '@storybook/manager-api';
|
|
57
55
|
|
|
58
56
|
addons.setConfig({
|
|
59
57
|
theme: createProcoreTheme({
|
|
@@ -105,4 +103,4 @@ Please refer to [Storybook Docs](https://storybook.js.org/docs/react/configure/o
|
|
|
105
103
|
|
|
106
104
|
## Testing
|
|
107
105
|
|
|
108
|
-
This addon should be tested by running `storybook` in `example-apps/react-ts`
|
|
106
|
+
This addon should be tested by running `storybook` in `example-apps/react-ts` and `example-apps/react-core-scripts` apps.
|