@sproutsocial/racine 20.7.0 → 20.9.0
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 +17 -0
- package/__flow__/Drawer/Drawer.flow.js +1 -0
- package/__flow__/LogoViewBoxes.js +4 -4
- package/commonjs/Drawer/Drawer.js +13 -7
- package/commonjs/LogoViewBoxes.js +4 -4
- package/dist/logo.svg +1 -1
- package/dist/themes/dark/theme.scss +36 -36
- package/dist/themes/extendedThemes/sproutTheme/dark/theme.scss +42 -42
- package/dist/themes/extendedThemes/sproutTheme/light/theme.scss +44 -44
- package/dist/themes/light/theme.scss +36 -36
- package/dist/types/Drawer/Drawer.d.ts +1 -1
- package/dist/types/Drawer/Drawer.d.ts.map +1 -1
- package/dist/types/Drawer/DrawerTypes.d.ts +2 -0
- package/dist/types/Drawer/DrawerTypes.d.ts.map +1 -1
- package/lib/Drawer/Drawer.js +13 -7
- package/lib/LogoViewBoxes.js +4 -4
- package/package.json +3 -2
|
@@ -20,12 +20,12 @@ $theme: (
|
|
|
20
20
|
"success": #d7f4d7,
|
|
21
21
|
"warning": #fdefcd,
|
|
22
22
|
"error": #ffd5d2,
|
|
23
|
-
"info": #
|
|
23
|
+
"info": #deebfe,
|
|
24
24
|
"opportunity": #eaeaf9,
|
|
25
25
|
"danger": #ffd5d2,
|
|
26
26
|
"decorative": (
|
|
27
27
|
"green": #d7f4d7,
|
|
28
|
-
"blue": #
|
|
28
|
+
"blue": #deebfe,
|
|
29
29
|
"purple": #eaeaf9,
|
|
30
30
|
"yellow": #fdefcd,
|
|
31
31
|
"orange": #fcdccc,
|
|
@@ -37,7 +37,7 @@ $theme: (
|
|
|
37
37
|
"teal": #cdf7ef
|
|
38
38
|
),
|
|
39
39
|
"selected": #364141,
|
|
40
|
-
"positive_sentiment": #
|
|
40
|
+
"positive_sentiment": #3876e3,
|
|
41
41
|
"negative_sentiment": #f76054,
|
|
42
42
|
"neutral_sentiment": #c8cccc
|
|
43
43
|
),
|
|
@@ -47,11 +47,11 @@ $theme: (
|
|
|
47
47
|
"warning": #ffbc00,
|
|
48
48
|
"error": #ed4c42,
|
|
49
49
|
"danger": #ed4c42,
|
|
50
|
-
"info": #
|
|
50
|
+
"info": #2b68d3,
|
|
51
51
|
"opportunity": #9180f4,
|
|
52
52
|
"decorative": (
|
|
53
53
|
"green": #59cb59,
|
|
54
|
-
"blue": #
|
|
54
|
+
"blue": #2b68d3,
|
|
55
55
|
"purple": #9180f4,
|
|
56
56
|
"yellow": #ffbc00,
|
|
57
57
|
"orange": #f57d33,
|
|
@@ -68,9 +68,9 @@ $theme: (
|
|
|
68
68
|
"button": (
|
|
69
69
|
"primary": (
|
|
70
70
|
"background": (
|
|
71
|
-
"base": #
|
|
72
|
-
"hover": #
|
|
73
|
-
"active": #
|
|
71
|
+
"base": #205bc3,
|
|
72
|
+
"hover": #1150aa,
|
|
73
|
+
"active": #0c3f89
|
|
74
74
|
),
|
|
75
75
|
"border": (
|
|
76
76
|
"base": transparent
|
|
@@ -132,8 +132,8 @@ $theme: (
|
|
|
132
132
|
"base": #929a9b
|
|
133
133
|
),
|
|
134
134
|
"text": (
|
|
135
|
-
"base": #
|
|
136
|
-
"hover": #
|
|
135
|
+
"base": #205bc3,
|
|
136
|
+
"hover": #1150aa
|
|
137
137
|
)
|
|
138
138
|
),
|
|
139
139
|
"unstyled": (
|
|
@@ -150,8 +150,8 @@ $theme: (
|
|
|
150
150
|
)
|
|
151
151
|
),
|
|
152
152
|
"link": (
|
|
153
|
-
"base": #
|
|
154
|
-
"hover": #
|
|
153
|
+
"base": #1150aa,
|
|
154
|
+
"hover": #0c3f89
|
|
155
155
|
),
|
|
156
156
|
"text": (
|
|
157
157
|
"headline": #273333,
|
|
@@ -161,11 +161,11 @@ $theme: (
|
|
|
161
161
|
"error": #992222,
|
|
162
162
|
"background": (
|
|
163
163
|
"highlight": #ffe99a,
|
|
164
|
-
"selection": #
|
|
164
|
+
"selection": #a1c2f8
|
|
165
165
|
),
|
|
166
166
|
"decorative": (
|
|
167
167
|
"green": #006b40,
|
|
168
|
-
"blue": #
|
|
168
|
+
"blue": #0c3f89,
|
|
169
169
|
"purple": #5e4eba,
|
|
170
170
|
"yellow": #944c0c,
|
|
171
171
|
"orange": #962c0b,
|
|
@@ -184,10 +184,10 @@ $theme: (
|
|
|
184
184
|
"warning": #944c0c,
|
|
185
185
|
"error": #992222,
|
|
186
186
|
"danger": #992222,
|
|
187
|
-
"info": #
|
|
187
|
+
"info": #0c3f89,
|
|
188
188
|
"opportunity": #5e4eba,
|
|
189
|
-
"applied": #
|
|
190
|
-
"positive_sentiment": #
|
|
189
|
+
"applied": #205bc3,
|
|
190
|
+
"positive_sentiment": #2b68d3,
|
|
191
191
|
"negative_sentiment": #ed4c42,
|
|
192
192
|
"neutral_sentiment": #929a9b
|
|
193
193
|
),
|
|
@@ -228,7 +228,7 @@ $theme: (
|
|
|
228
228
|
"base": #2733333D
|
|
229
229
|
),
|
|
230
230
|
"illustration": (
|
|
231
|
-
"fill": #
|
|
231
|
+
"fill": #679eff,
|
|
232
232
|
"stroke": #273333
|
|
233
233
|
),
|
|
234
234
|
"network": (
|
|
@@ -266,7 +266,7 @@ $theme: (
|
|
|
266
266
|
"2": #6f5ed3,
|
|
267
267
|
"3": #ce3665,
|
|
268
268
|
"4": #ffcd1c,
|
|
269
|
-
"5": #
|
|
269
|
+
"5": #3876e3,
|
|
270
270
|
"6": #db61db,
|
|
271
271
|
"7": #59cb59,
|
|
272
272
|
"8": #fc8943,
|
|
@@ -275,7 +275,7 @@ $theme: (
|
|
|
275
275
|
"11": #a193f2,
|
|
276
276
|
"12": #931847,
|
|
277
277
|
"13": #944c0c,
|
|
278
|
-
"14": #
|
|
278
|
+
"14": #0c3f89,
|
|
279
279
|
"15": #6c2277,
|
|
280
280
|
"16": #006b40,
|
|
281
281
|
"17": #962c0b,
|
|
@@ -283,7 +283,7 @@ $theme: (
|
|
|
283
283
|
"19": #0ca750,
|
|
284
284
|
"20": #ba7506
|
|
285
285
|
),
|
|
286
|
-
"list": (#08c4b2, #6f5ed3, #ce3665, #ffcd1c, #
|
|
286
|
+
"list": (#08c4b2, #6f5ed3, #ce3665, #ffcd1c, #3876e3, #db61db, #59cb59, #fc8943, #db3e3e, #026661, #a193f2, #931847, #944c0c, #0c3f89, #6c2277, #006b40, #962c0b, #ff7f6e, #0ca750, #ba7506)
|
|
287
287
|
),
|
|
288
288
|
"neutral": (
|
|
289
289
|
"0": #FFFFFF,
|
|
@@ -328,18 +328,18 @@ $theme: (
|
|
|
328
328
|
"1100": #2b1111
|
|
329
329
|
),
|
|
330
330
|
"blue": (
|
|
331
|
-
"0": #
|
|
332
|
-
"100": #
|
|
333
|
-
"200": #
|
|
334
|
-
"300": #
|
|
335
|
-
"400": #
|
|
336
|
-
"500": #
|
|
337
|
-
"600": #
|
|
338
|
-
"700": #
|
|
339
|
-
"800": #
|
|
340
|
-
"900": #
|
|
341
|
-
"1000": #
|
|
342
|
-
"1100": #
|
|
331
|
+
"0": #e9f4ff,
|
|
332
|
+
"100": #deebfe,
|
|
333
|
+
"200": #c7dbf9,
|
|
334
|
+
"300": #a1c2f8,
|
|
335
|
+
"400": #679eff,
|
|
336
|
+
"500": #3876e3,
|
|
337
|
+
"600": #2b68d3,
|
|
338
|
+
"700": #205bc3,
|
|
339
|
+
"800": #1150aa,
|
|
340
|
+
"900": #0c3f89,
|
|
341
|
+
"1000": #0a2960,
|
|
342
|
+
"1100": #001738
|
|
343
343
|
),
|
|
344
344
|
"teal": (
|
|
345
345
|
"0": #e5f9f5,
|
|
@@ -439,13 +439,13 @@ $theme: (
|
|
|
439
439
|
"1000": #601700,
|
|
440
440
|
"1100": #2d130e
|
|
441
441
|
),
|
|
442
|
-
"DATAVIZ_COLORS_LIST": (#08c4b2, #6f5ed3, #ce3665, #ffcd1c, #
|
|
442
|
+
"DATAVIZ_COLORS_LIST": (#08c4b2, #6f5ed3, #ce3665, #ffcd1c, #3876e3, #db61db, #59cb59, #fc8943, #db3e3e, #026661, #a193f2, #931847, #944c0c, #0c3f89, #6c2277, #006b40, #962c0b, #ff7f6e, #0ca750, #ba7506),
|
|
443
443
|
"DATAVIZ_COLORS_MAP": (
|
|
444
444
|
"1": #08c4b2,
|
|
445
445
|
"2": #6f5ed3,
|
|
446
446
|
"3": #ce3665,
|
|
447
447
|
"4": #ffcd1c,
|
|
448
|
-
"5": #
|
|
448
|
+
"5": #3876e3,
|
|
449
449
|
"6": #db61db,
|
|
450
450
|
"7": #59cb59,
|
|
451
451
|
"8": #fc8943,
|
|
@@ -454,7 +454,7 @@ $theme: (
|
|
|
454
454
|
"11": #a193f2,
|
|
455
455
|
"12": #931847,
|
|
456
456
|
"13": #944c0c,
|
|
457
|
-
"14": #
|
|
457
|
+
"14": #0c3f89,
|
|
458
458
|
"15": #6c2277,
|
|
459
459
|
"16": #006b40,
|
|
460
460
|
"17": #962c0b,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { TypeDrawerCloseButtonProps, TypeDrawerHeaderProps, TypeDrawerProps, TypeDrawerContentProps } from './DrawerTypes';
|
|
3
3
|
declare const DrawerContainer: {
|
|
4
|
-
({ children, closeButtonLabel, direction, disableCloseOnClickOutside, id, isOpen, offset, onClose, zIndex, closeTargets, ...rest }: TypeDrawerProps): JSX.Element;
|
|
4
|
+
({ children, closeButtonLabel, direction, disableCloseOnClickOutside, id, isOpen, offset, onClose, zIndex, closeTargets, width, ...rest }: TypeDrawerProps): JSX.Element;
|
|
5
5
|
Header: {
|
|
6
6
|
({ title, id, children, render, ...rest }: TypeDrawerHeaderProps): React.ReactElement<any, any> | null;
|
|
7
7
|
displayName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/Drawer/Drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAY/B,OAAO,KAAK,EAEV,0BAA0B,EAC1B,qBAAqB,EACrB,eAAe,EAEf,sBAAsB,EACvB,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/Drawer/Drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAY/B,OAAO,KAAK,EAEV,0BAA0B,EAC1B,qBAAqB,EACrB,eAAe,EAEf,sBAAsB,EACvB,MAAM,eAAe,CAAC;AAsLvB,QAAA,MAAM,eAAe;+IAalB,eAAe;;mDAvJf,qBAAqB;;;;gCAmCoB,sBAAsB;;;;gBAjEhC,0BAA0B;;;CA4N3D,CAAC;AAUF,eAAe,eAAe,CAAC"}
|
|
@@ -37,6 +37,8 @@ export interface TypeDrawerProps extends TypeStyledComponentsCommonProps, TypeSy
|
|
|
37
37
|
onClose: () => void;
|
|
38
38
|
zIndex?: number;
|
|
39
39
|
closeTargets?: Array<Element>;
|
|
40
|
+
width?: number;
|
|
41
|
+
focusLockExemptCheck?: (element: HTMLElement) => boolean;
|
|
40
42
|
}
|
|
41
43
|
export interface TypeDrawerContentProps extends TypeBoxProps {
|
|
42
44
|
children?: React.ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrawerTypes.d.ts","sourceRoot":"","sources":["../../../src/Drawer/DrawerTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,+BAA+B,EAAC,MAAM,8BAA8B,CAAC;AAC7E,OAAO,EAAC,qBAAqB,EAAC,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAC,YAAY,EAAC,MAAM,UAAU,CAAC;AACtC,OAAO,EAAC,eAAe,EAAC,MAAM,aAAa,CAAC;AAE5C,MAAM,WAAW,iBAAiB;IAChC,gCAAgC;IAEhC,OAAO,CAAC,EAAE,MAAM,GAAG,CAAC;IAEpB,yCAAyC;IACzC,gBAA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I;IAC3I,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oBAAoB,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,OAAO,CAAC;CAC1D;AAED,MAAM,WAAW,sBAAuB,SAAQ,YAAY;IAC1D,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B"}
|
package/lib/Drawer/Drawer.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
2
|
var _excluded = ["title", "id", "children", "render"],
|
|
3
3
|
_excluded2 = ["children"],
|
|
4
|
-
_excluded3 = ["id", "style", "offset", "direction", "children", "disableCloseOnClickOutside", "onClose", "zIndex", "closeTargets"],
|
|
5
|
-
_excluded4 = ["children", "closeButtonLabel", "direction", "disableCloseOnClickOutside", "id", "isOpen", "offset", "onClose", "zIndex", "closeTargets"];
|
|
4
|
+
_excluded3 = ["id", "style", "offset", "direction", "children", "disableCloseOnClickOutside", "onClose", "zIndex", "closeTargets", "width", "focusLockExemptCheck"],
|
|
5
|
+
_excluded4 = ["children", "closeButtonLabel", "direction", "disableCloseOnClickOutside", "id", "isOpen", "offset", "onClose", "zIndex", "closeTargets", "width"];
|
|
6
6
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7
7
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8
8
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
@@ -23,8 +23,6 @@ import Text from "../Text";
|
|
|
23
23
|
import Portal from "../Portal";
|
|
24
24
|
import { SlideTransition } from "./SlideTransition";
|
|
25
25
|
import Container, { Content } from "./styles";
|
|
26
|
-
// If ever we needed to make drawer width configurable, move this to a default prop
|
|
27
|
-
var DRAWER_WIDTH = 600;
|
|
28
26
|
var AnimatedDrawer = animated(Container);
|
|
29
27
|
var doesRefContainEventTarget = function doesRefContainEventTarget(ref, event) {
|
|
30
28
|
return ref.current && event.target instanceof Node && ref.current.contains(event.target);
|
|
@@ -96,6 +94,8 @@ var Drawer = function Drawer(_ref3) {
|
|
|
96
94
|
onClose = _ref3.onClose,
|
|
97
95
|
zIndex = _ref3.zIndex,
|
|
98
96
|
closeTargets = _ref3.closeTargets,
|
|
97
|
+
width = _ref3.width,
|
|
98
|
+
focusLockExemptCheck = _ref3.focusLockExemptCheck,
|
|
99
99
|
rest = _objectWithoutProperties(_ref3, _excluded3);
|
|
100
100
|
var drawerRef = useRef(null);
|
|
101
101
|
useEffect(function () {
|
|
@@ -134,11 +134,14 @@ var Drawer = function Drawer(_ref3) {
|
|
|
134
134
|
return /*#__PURE__*/React.createElement(FocusLock, {
|
|
135
135
|
key: id,
|
|
136
136
|
autoFocus: true,
|
|
137
|
-
returnFocus: true
|
|
137
|
+
returnFocus: true,
|
|
138
|
+
whiteList: focusLockExemptCheck ? function (e) {
|
|
139
|
+
return !focusLockExemptCheck(e);
|
|
140
|
+
} : undefined
|
|
138
141
|
}, /*#__PURE__*/React.createElement(AnimatedDrawer, _extends({
|
|
139
142
|
ref: drawerRef,
|
|
140
143
|
style: style,
|
|
141
|
-
width:
|
|
144
|
+
width: width,
|
|
142
145
|
offset: offset,
|
|
143
146
|
direction: direction,
|
|
144
147
|
"data-qa-drawer": id,
|
|
@@ -161,6 +164,8 @@ var DrawerContainer = function DrawerContainer(_ref4) {
|
|
|
161
164
|
zIndex = _ref4$zIndex === void 0 ? 7 : _ref4$zIndex,
|
|
162
165
|
_ref4$closeTargets = _ref4.closeTargets,
|
|
163
166
|
closeTargets = _ref4$closeTargets === void 0 ? [] : _ref4$closeTargets,
|
|
167
|
+
_ref4$width = _ref4.width,
|
|
168
|
+
width = _ref4$width === void 0 ? 600 : _ref4$width,
|
|
164
169
|
rest = _objectWithoutProperties(_ref4, _excluded4);
|
|
165
170
|
return /*#__PURE__*/React.createElement(Portal, {
|
|
166
171
|
id: id
|
|
@@ -170,7 +175,7 @@ var DrawerContainer = function DrawerContainer(_ref4) {
|
|
|
170
175
|
closeButtonLabel: closeButtonLabel
|
|
171
176
|
}
|
|
172
177
|
}, /*#__PURE__*/React.createElement(SlideTransition, {
|
|
173
|
-
width:
|
|
178
|
+
width: width + offset,
|
|
174
179
|
direction: direction,
|
|
175
180
|
isVisible: isOpen
|
|
176
181
|
}, function (_ref5) {
|
|
@@ -189,6 +194,7 @@ var DrawerContainer = function DrawerContainer(_ref4) {
|
|
|
189
194
|
onClose: onClose,
|
|
190
195
|
zIndex: zIndex,
|
|
191
196
|
closeTargets: closeTargets,
|
|
197
|
+
width: width,
|
|
192
198
|
"data-qa-drawer": id || '',
|
|
193
199
|
"data-qa-drawer-isopen": isOpen === true
|
|
194
200
|
}, rest), children);
|
package/lib/LogoViewBoxes.js
CHANGED
|
@@ -73,12 +73,12 @@ module.exports = {
|
|
|
73
73
|
"shopify": "0 0 140 159",
|
|
74
74
|
"slack-dark": "0 0 140 140",
|
|
75
75
|
"slack": "0 0 140 140",
|
|
76
|
-
"sproutsocial-dark": "0 0
|
|
77
|
-
"sproutsocial-lockup-dark": "0 0 291
|
|
78
|
-
"sproutsocial-lockup": "0 0 291
|
|
76
|
+
"sproutsocial-dark": "0 0 16 18",
|
|
77
|
+
"sproutsocial-lockup-dark": "0 0 291 59",
|
|
78
|
+
"sproutsocial-lockup": "0 0 291 59",
|
|
79
79
|
"sproutsocial-wordmark-dark": "0 0 320 52",
|
|
80
80
|
"sproutsocial-wordmark": "0 0 320 52",
|
|
81
|
-
"sproutsocial": "0 0
|
|
81
|
+
"sproutsocial": "0 0 16 18",
|
|
82
82
|
"tableau-dark": "0 0 18 18",
|
|
83
83
|
"tableau-lockup-dark": "0 0 291 56",
|
|
84
84
|
"tableau-lockup": "0 0 291 56",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sproutsocial/racine",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.9.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"files": [
|
|
6
6
|
"__flow__",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"@changesets/cli": "^2.12.0",
|
|
95
95
|
"@khanacademy/flow-to-ts": "^0.5.2",
|
|
96
96
|
"@sproutsocial/seeds-border": "^1.1.0",
|
|
97
|
-
"@sproutsocial/seeds-color": "^
|
|
97
|
+
"@sproutsocial/seeds-color": "^2.0.0",
|
|
98
98
|
"@sproutsocial/seeds-depth": "^3.0.0",
|
|
99
99
|
"@sproutsocial/seeds-icons": "*",
|
|
100
100
|
"@sproutsocial/seeds-motion": "^1.2.0",
|
|
@@ -105,6 +105,7 @@
|
|
|
105
105
|
"@storybook/addon-a11y": "^7.0.0",
|
|
106
106
|
"@storybook/addon-actions": "^7.0.0",
|
|
107
107
|
"@storybook/addon-essentials": "^7.0.0",
|
|
108
|
+
"@storybook/addon-mdx-gfm": "^7.0.0",
|
|
108
109
|
"@storybook/addon-storysource": "^7.0.0",
|
|
109
110
|
"@storybook/addon-viewport": "^7.0.0",
|
|
110
111
|
"@storybook/addons": "^7.0.0",
|