@luscii-healthtech/web-ui 8.0.0 → 8.0.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.
Files changed (2) hide show
  1. package/README.md +6 -1
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -154,11 +154,13 @@ We have configured at lot of magic for your convenience.
154
154
 
155
155
  ### Stories using deprecated props
156
156
 
157
- When creating new stories for components with deprecated functionality please prefix the story name with `Deprecated`.
157
+ When creating new stories for components with deprecated functionality please prefix the story name with `Deprecated`. In addition, also mark it with a "DEPRECATED" badge via the story's parameters.
158
158
 
159
159
  For example a story of a `FullPageModal` component using the deprecated `primaryButtonProps` prop would look like this:
160
160
 
161
161
  ```tsx
162
+ import { BADGES } from "../.storybook/constants";
163
+
162
164
  export const DeprecatedWithPrimaryButtonProps = {
163
165
  render: OneColumTemplate,
164
166
  args: {
@@ -168,6 +170,9 @@ export const DeprecatedWithPrimaryButtonProps = {
168
170
  text: "Primary",
169
171
  },
170
172
  },
173
+ parameters: {
174
+ badges: [BADGES.DEPRECATED],
175
+ },
171
176
  };
172
177
  ```
173
178
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luscii-healthtech/web-ui",
3
- "version": "8.0.0",
3
+ "version": "8.0.1",
4
4
  "license": "MIT",
5
5
  "author": {
6
6
  "name": "Joris Janssen"
@@ -60,6 +60,7 @@
60
60
  "@dnd-kit/core": "^6.0.8",
61
61
  "@dnd-kit/sortable": "^7.0.2",
62
62
  "@dnd-kit/utilities": "^3.2.1",
63
+ "@geometricpanda/storybook-addon-badges": "^2.0.0",
63
64
  "@rollup/plugin-commonjs": "^25.0.3",
64
65
  "@rollup/plugin-image": "^2.1.1",
65
66
  "@rollup/plugin-node-resolve": "^15.1.0",