@storybook/components 6.5.0-alpha.2 → 6.5.0-alpha.23
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/dist/cjs/ActionBar/ActionBar.js +4 -2
- package/dist/cjs/ActionBar/ActionBar.stories.js +1 -1
- package/dist/cjs/Button/Button.js +8 -6
- package/dist/cjs/Loader/Loader.js +12 -8
- package/dist/cjs/Loader/Loader.stories.js +1 -1
- package/dist/cjs/ScrollArea/GlobalScrollAreaStyles.js +1 -1
- package/dist/cjs/ScrollArea/OverlayScrollbars.js +7 -3
- package/dist/cjs/ScrollArea/ScrollArea.js +10 -8
- package/dist/cjs/ScrollArea/ScrollArea.stories.js +6 -6
- package/dist/cjs/Zoom/Zoom.js +1 -1
- package/dist/cjs/Zoom/Zoom.stories.js +9 -7
- package/dist/cjs/Zoom/ZoomElement.js +8 -6
- package/dist/cjs/Zoom/ZoomIFrame.js +8 -8
- package/dist/cjs/addon-panel/addon-panel.js +5 -5
- package/dist/cjs/bar/bar.js +16 -10
- package/dist/cjs/bar/button.js +6 -4
- package/dist/cjs/bar/button.stories.js +1 -1
- package/dist/cjs/bar/separator.js +7 -7
- package/dist/cjs/blocks/ArgsTable/ArgControl.js +8 -6
- package/dist/cjs/blocks/ArgsTable/ArgJsDoc.js +3 -1
- package/dist/cjs/blocks/ArgsTable/ArgRow.stories.js +1 -1
- package/dist/cjs/blocks/ArgsTable/ArgValue.js +9 -9
- package/dist/cjs/blocks/ArgsTable/ArgsTable.js +10 -6
- package/dist/cjs/blocks/ArgsTable/ArgsTable.stories.js +6 -6
- package/dist/cjs/blocks/ArgsTable/SectionRow.js +8 -6
- package/dist/cjs/blocks/ArgsTable/SectionRow.stories.js +1 -1
- package/dist/cjs/blocks/ArgsTable/TabbedArgsTable.js +10 -6
- package/dist/cjs/blocks/ArgsTable/TabbedArgsTable.stories.js +1 -1
- package/dist/cjs/blocks/ArgsTable/index.js +2 -0
- package/dist/cjs/blocks/ColorPalette.js +3 -1
- package/dist/cjs/blocks/ColorPalette.stories.js +1 -1
- package/dist/cjs/blocks/Description.stories.js +1 -1
- package/dist/cjs/blocks/DocsPage.js +1 -1
- package/dist/cjs/blocks/DocsPage.stories.js +6 -6
- package/dist/cjs/blocks/EmptyBlock.stories.js +1 -1
- package/dist/cjs/blocks/IFrame.js +13 -11
- package/dist/cjs/blocks/IconGallery.js +4 -2
- package/dist/cjs/blocks/IconGallery.stories.js +1 -1
- package/dist/cjs/blocks/Preview.js +14 -10
- package/dist/cjs/blocks/Preview.stories.js +6 -6
- package/dist/cjs/blocks/Source.js +6 -4
- package/dist/cjs/blocks/Source.stories.js +1 -1
- package/dist/cjs/blocks/Story.js +20 -9
- package/dist/cjs/blocks/Story.stories.js +9 -7
- package/dist/cjs/blocks/Toolbar.js +11 -9
- package/dist/cjs/blocks/Typeset.js +3 -1
- package/dist/cjs/blocks/Typeset.stories.js +1 -1
- package/dist/cjs/blocks/index.js +2 -0
- package/dist/cjs/brand/StorybookLogo.js +5 -3
- package/dist/cjs/brand/StorybookLogo.stories.js +1 -1
- package/dist/cjs/controls/Boolean.js +5 -5
- package/dist/cjs/controls/Boolean.stories.js +9 -7
- package/dist/cjs/controls/Color.js +13 -11
- package/dist/cjs/controls/Color.stories.js +9 -7
- package/dist/cjs/controls/Date.js +8 -8
- package/dist/cjs/controls/Date.stories.js +9 -7
- package/dist/cjs/controls/Files.js +7 -5
- package/dist/cjs/controls/Number.js +17 -8
- package/dist/cjs/controls/Number.stories.js +9 -7
- package/dist/cjs/controls/Object.js +8 -6
- package/dist/cjs/controls/Object.stories.js +9 -7
- package/dist/cjs/controls/Range.js +7 -7
- package/dist/cjs/controls/Range.stories.js +9 -7
- package/dist/cjs/controls/Text.js +8 -6
- package/dist/cjs/controls/Text.stories.js +9 -7
- package/dist/cjs/controls/helpers.js +2 -2
- package/dist/cjs/controls/index.js +7 -7
- package/dist/cjs/controls/options/Checkbox.js +9 -7
- package/dist/cjs/controls/options/Options.js +2 -0
- package/dist/cjs/controls/options/Options.stories.js +9 -7
- package/dist/cjs/controls/options/Select.js +2 -0
- package/dist/cjs/controls/options/helpers.js +7 -5
- package/dist/cjs/controls/options/index.js +2 -0
- package/dist/cjs/controls/react-editable-json-tree/components/JsonAddValue.js +10 -10
- package/dist/cjs/controls/react-editable-json-tree/components/JsonArray.js +13 -11
- package/dist/cjs/controls/react-editable-json-tree/components/JsonFunctionValue.js +13 -11
- package/dist/cjs/controls/react-editable-json-tree/components/JsonNode.js +8 -8
- package/dist/cjs/controls/react-editable-json-tree/components/JsonObject.js +13 -11
- package/dist/cjs/controls/react-editable-json-tree/components/JsonValue.js +13 -11
- package/dist/cjs/controls/react-editable-json-tree/index.js +21 -21
- package/dist/cjs/controls/react-editable-json-tree/utils/objectTypes.js +3 -3
- package/dist/cjs/controls/react-editable-json-tree/utils/styles.js +1 -1
- package/dist/cjs/controls/types.js +5 -1
- package/dist/cjs/form/field/field.js +3 -1
- package/dist/cjs/form/form.stories.js +5 -3
- package/dist/cjs/form/input/input.js +15 -10
- package/dist/cjs/html.js +2 -0
- package/dist/cjs/icon/icon.js +3 -1
- package/dist/cjs/icon/icon.stories.js +2 -0
- package/dist/cjs/icon/icons.js +1 -1
- package/dist/cjs/index.js +75 -63
- package/dist/cjs/placeholder/placeholder.js +15 -9
- package/dist/cjs/placeholder/placeholder.stories.js +6 -6
- package/dist/cjs/spaced/Spaced.js +3 -1
- package/dist/cjs/syntaxhighlighter/lazy-syntaxhighlighter.js +7 -7
- package/dist/cjs/syntaxhighlighter/syntaxhighlighter-types.js +5 -1
- package/dist/cjs/syntaxhighlighter/syntaxhighlighter.js +15 -10
- package/dist/cjs/syntaxhighlighter/syntaxhighlighter.stories.js +5 -5
- package/dist/cjs/tabs/tabs.js +13 -11
- package/dist/cjs/tabs/tabs.stories.js +6 -4
- package/dist/cjs/tooltip/ListItem.js +7 -4
- package/dist/cjs/tooltip/Tooltip.js +5 -3
- package/dist/cjs/tooltip/TooltipLinkList.js +12 -9
- package/dist/cjs/tooltip/TooltipLinkList.stories.js +5 -5
- package/dist/cjs/tooltip/TooltipMessage.js +3 -1
- package/dist/cjs/tooltip/TooltipNote.js +3 -1
- package/dist/cjs/tooltip/WithTooltip.js +14 -9
- package/dist/cjs/tooltip/lazy-WithTooltip.js +7 -7
- package/dist/cjs/typings.d.ts +4 -0
- package/dist/cjs/typography/DocumentFormatting.js +13 -6
- package/dist/cjs/typography/DocumentWrapper.stories.js +1 -1
- package/dist/cjs/typography/link/link.js +5 -3
- package/dist/cjs/typography/shared.js +1 -1
- package/dist/cjs/utils/getStoryHref.js +71 -0
- package/dist/esm/ActionBar/ActionBar.js +5 -3
- package/dist/esm/Button/Button.js +3 -1
- package/dist/esm/Loader/Loader.js +5 -3
- package/dist/esm/ScrollArea/OverlayScrollbars.js +6 -4
- package/dist/esm/ScrollArea/ScrollArea.js +4 -2
- package/dist/esm/Zoom/Zoom.stories.js +3 -2
- package/dist/esm/Zoom/ZoomElement.js +3 -2
- package/dist/esm/Zoom/ZoomIFrame.js +6 -6
- package/dist/esm/bar/bar.js +7 -4
- package/dist/esm/bar/button.js +2 -1
- package/dist/esm/bar/separator.js +1 -0
- package/dist/esm/blocks/ArgsTable/ArgControl.js +3 -2
- package/dist/esm/blocks/ArgsTable/ArgJsDoc.js +1 -0
- package/dist/esm/blocks/ArgsTable/ArgValue.js +4 -4
- package/dist/esm/blocks/ArgsTable/ArgsTable.js +5 -3
- package/dist/esm/blocks/ArgsTable/SectionRow.js +3 -2
- package/dist/esm/blocks/ArgsTable/TabbedArgsTable.js +17 -14
- package/dist/esm/blocks/ColorPalette.js +3 -1
- package/dist/esm/blocks/IFrame.js +16 -14
- package/dist/esm/blocks/IconGallery.js +3 -1
- package/dist/esm/blocks/Preview.js +16 -14
- package/dist/esm/blocks/Source.js +2 -1
- package/dist/esm/blocks/Story.js +12 -5
- package/dist/esm/blocks/Story.stories.js +3 -2
- package/dist/esm/blocks/Toolbar.js +8 -6
- package/dist/esm/blocks/Typeset.js +5 -3
- package/dist/esm/brand/StorybookLogo.js +2 -1
- package/dist/esm/controls/Boolean.stories.js +3 -2
- package/dist/esm/controls/Color.js +7 -5
- package/dist/esm/controls/Color.stories.js +3 -2
- package/dist/esm/controls/Date.js +3 -3
- package/dist/esm/controls/Date.stories.js +3 -2
- package/dist/esm/controls/Files.js +4 -3
- package/dist/esm/controls/Number.js +11 -3
- package/dist/esm/controls/Number.stories.js +3 -2
- package/dist/esm/controls/Object.js +3 -2
- package/dist/esm/controls/Object.stories.js +3 -2
- package/dist/esm/controls/Range.js +1 -1
- package/dist/esm/controls/Range.stories.js +3 -2
- package/dist/esm/controls/Text.js +3 -2
- package/dist/esm/controls/Text.stories.js +3 -2
- package/dist/esm/controls/helpers.js +1 -1
- package/dist/esm/controls/index.js +1 -1
- package/dist/esm/controls/options/Checkbox.js +4 -3
- package/dist/esm/controls/options/Options.js +1 -0
- package/dist/esm/controls/options/Options.stories.js +3 -2
- package/dist/esm/controls/options/Select.js +1 -0
- package/dist/esm/controls/options/helpers.js +4 -3
- package/dist/esm/controls/react-editable-json-tree/components/JsonAddValue.js +6 -6
- package/dist/esm/controls/react-editable-json-tree/components/JsonArray.js +8 -7
- package/dist/esm/controls/react-editable-json-tree/components/JsonFunctionValue.js +8 -7
- package/dist/esm/controls/react-editable-json-tree/components/JsonNode.js +5 -5
- package/dist/esm/controls/react-editable-json-tree/components/JsonObject.js +8 -7
- package/dist/esm/controls/react-editable-json-tree/components/JsonValue.js +8 -7
- package/dist/esm/controls/react-editable-json-tree/index.js +6 -6
- package/dist/esm/controls/react-editable-json-tree/utils/objectTypes.js +2 -2
- package/dist/esm/controls/types.js +1 -0
- package/dist/esm/form/field/field.js +5 -3
- package/dist/esm/form/form.stories.js +3 -2
- package/dist/esm/form/input/input.js +11 -6
- package/dist/esm/icon/icon.js +4 -3
- package/dist/esm/icon/icon.stories.js +1 -0
- package/dist/esm/index.js +4 -1
- package/dist/esm/placeholder/placeholder.js +16 -12
- package/dist/esm/spaced/Spaced.js +6 -4
- package/dist/esm/syntaxhighlighter/lazy-syntaxhighlighter.js +1 -1
- package/dist/esm/syntaxhighlighter/syntaxhighlighter-types.js +1 -0
- package/dist/esm/syntaxhighlighter/syntaxhighlighter.js +17 -14
- package/dist/esm/tabs/tabs.js +7 -6
- package/dist/esm/tabs/tabs.stories.js +2 -1
- package/dist/esm/tooltip/ListItem.js +7 -4
- package/dist/esm/tooltip/Tooltip.js +4 -2
- package/dist/esm/tooltip/TooltipLinkList.js +5 -3
- package/dist/esm/tooltip/TooltipMessage.js +6 -4
- package/dist/esm/tooltip/TooltipNote.js +5 -3
- package/dist/esm/tooltip/WithTooltip.js +7 -4
- package/dist/esm/tooltip/lazy-WithTooltip.js +1 -1
- package/dist/esm/typings.d.ts +4 -0
- package/dist/esm/typography/DocumentFormatting.js +12 -7
- package/dist/esm/typography/link/link.js +2 -1
- package/dist/esm/utils/getStoryHref.js +46 -0
- package/dist/modern/ActionBar/ActionBar.js +4 -2
- package/dist/modern/Badge/Badge.js +1 -1
- package/dist/modern/Button/Button.js +3 -1
- package/dist/modern/Loader/Loader.js +4 -2
- package/dist/modern/ScrollArea/OverlayScrollbars.js +4 -2
- package/dist/modern/ScrollArea/ScrollArea.js +4 -2
- package/dist/modern/bar/bar.js +4 -2
- package/dist/modern/bar/button.js +4 -2
- package/dist/modern/blocks/ArgsTable/TabbedArgsTable.js +4 -2
- package/dist/modern/blocks/ColorPalette.js +4 -2
- package/dist/modern/blocks/IFrame.js +3 -1
- package/dist/modern/blocks/IconGallery.js +4 -2
- package/dist/modern/blocks/Preview.js +4 -2
- package/dist/modern/blocks/Source.js +3 -1
- package/dist/modern/blocks/Story.js +13 -4
- package/dist/modern/blocks/Toolbar.js +6 -3
- package/dist/modern/blocks/Typeset.js +4 -2
- package/dist/modern/brand/StorybookIcon.js +1 -1
- package/dist/modern/brand/StorybookLogo.js +4 -2
- package/dist/modern/controls/Color.js +4 -2
- package/dist/modern/controls/Number.js +7 -0
- package/dist/modern/controls/types.js +1 -0
- package/dist/modern/form/field/field.js +4 -2
- package/dist/modern/form/input/input.js +9 -4
- package/dist/modern/icon/icon.js +4 -2
- package/dist/modern/index.js +3 -1
- package/dist/modern/placeholder/placeholder.js +4 -2
- package/dist/modern/spaced/Spaced.js +4 -2
- package/dist/modern/syntaxhighlighter/syntaxhighlighter-types.js +1 -0
- package/dist/modern/syntaxhighlighter/syntaxhighlighter.js +4 -2
- package/dist/modern/tooltip/ListItem.js +7 -4
- package/dist/modern/tooltip/Tooltip.js +4 -2
- package/dist/modern/tooltip/TooltipLinkList.js +6 -3
- package/dist/modern/tooltip/TooltipMessage.js +4 -2
- package/dist/modern/tooltip/TooltipNote.js +4 -2
- package/dist/modern/tooltip/WithTooltip.js +7 -4
- package/dist/modern/typings.d.ts +4 -0
- package/dist/modern/typography/DocumentFormatting.js +7 -4
- package/dist/modern/typography/link/link.js +4 -2
- package/dist/modern/utils/getStoryHref.js +13 -0
- package/dist/ts3.4/Zoom/ZoomIFrame.d.ts +1 -1
- package/dist/ts3.4/index.d.ts +1 -0
- package/dist/ts3.4/utils/getStoryHref.d.ts +1 -0
- package/dist/ts3.9/Zoom/ZoomIFrame.d.ts +1 -1
- package/dist/ts3.9/index.d.ts +1 -0
- package/dist/ts3.9/utils/getStoryHref.d.ts +1 -0
- package/package.json +6 -5
- package/dist/cjs/typings.d.js +0 -1
- package/dist/esm/typings.d.js +0 -0
- package/dist/modern/typings.d.js +0 -0
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
require("core-js/modules/es.object.keys.js");
|
|
4
|
+
|
|
3
5
|
require("core-js/modules/es.symbol.js");
|
|
4
6
|
|
|
5
7
|
Object.defineProperty(exports, "__esModule", {
|
|
6
8
|
value: true
|
|
7
9
|
});
|
|
8
|
-
exports.components = exports.
|
|
10
|
+
exports.components = exports.UL = exports.Table = exports.TT = exports.Span = exports.ResetWrapper = exports.Pre = exports.P = exports.OL = exports.LI = exports.Img = exports.HR = exports.H6 = exports.H5 = exports.H4 = exports.H3 = exports.H2 = exports.H1 = exports.Div = exports.DL = exports.Code = exports.Blockquote = exports.A = void 0;
|
|
11
|
+
|
|
12
|
+
require("core-js/modules/es.regexp.exec.js");
|
|
9
13
|
|
|
10
14
|
require("core-js/modules/es.object.assign.js");
|
|
11
15
|
|
|
12
16
|
require("core-js/modules/es.string.match.js");
|
|
13
17
|
|
|
14
|
-
require("core-js/modules/es.
|
|
18
|
+
require("core-js/modules/es.object.to-string.js");
|
|
19
|
+
|
|
20
|
+
require("core-js/modules/es.promise.js");
|
|
15
21
|
|
|
16
22
|
require("core-js/modules/es.array.filter.js");
|
|
17
23
|
|
|
@@ -19,8 +25,6 @@ require("core-js/modules/es.array.join.js");
|
|
|
19
25
|
|
|
20
26
|
require("core-js/modules/es.array.concat.js");
|
|
21
27
|
|
|
22
|
-
require("core-js/modules/es.object.keys.js");
|
|
23
|
-
|
|
24
28
|
var _react = _interopRequireDefault(require("react"));
|
|
25
29
|
|
|
26
30
|
var _theming = require("@storybook/theming");
|
|
@@ -29,6 +33,9 @@ var _shared = require("./shared");
|
|
|
29
33
|
|
|
30
34
|
var _Source = require("../blocks/Source");
|
|
31
35
|
|
|
36
|
+
var _excluded = ["href", "children"],
|
|
37
|
+
_excluded2 = ["className", "children"];
|
|
38
|
+
|
|
32
39
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
33
40
|
|
|
34
41
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
@@ -141,7 +148,7 @@ exports.Pre = Pre;
|
|
|
141
148
|
var Link = function Link(_ref8) {
|
|
142
149
|
var input = _ref8.href,
|
|
143
150
|
children = _ref8.children,
|
|
144
|
-
props = _objectWithoutProperties(_ref8,
|
|
151
|
+
props = _objectWithoutProperties(_ref8, _excluded);
|
|
145
152
|
|
|
146
153
|
var isStorybookPath = /^\//.test(input);
|
|
147
154
|
var isAnchorUrl = /^#.*/.test(input);
|
|
@@ -453,7 +460,7 @@ var Code = function Code(_ref17) {
|
|
|
453
460
|
|
|
454
461
|
var className = _ref17.className,
|
|
455
462
|
children = _ref17.children,
|
|
456
|
-
props = _objectWithoutProperties(_ref17,
|
|
463
|
+
props = _objectWithoutProperties(_ref17, _excluded2);
|
|
457
464
|
|
|
458
465
|
var language = (className || '').match(/lang-(\S+)/);
|
|
459
466
|
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
require("core-js/modules/es.object.keys.js");
|
|
4
|
+
|
|
3
5
|
require("core-js/modules/es.symbol.js");
|
|
4
6
|
|
|
5
7
|
require("core-js/modules/es.object.assign.js");
|
|
@@ -9,8 +11,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
9
11
|
});
|
|
10
12
|
exports.Link = void 0;
|
|
11
13
|
|
|
12
|
-
require("core-js/modules/es.object.keys.js");
|
|
13
|
-
|
|
14
14
|
var _react = _interopRequireDefault(require("react"));
|
|
15
15
|
|
|
16
16
|
var _theming = require("@storybook/theming");
|
|
@@ -19,6 +19,8 @@ var _polished = require("polished");
|
|
|
19
19
|
|
|
20
20
|
var _icon = require("../../icon/icon");
|
|
21
21
|
|
|
22
|
+
var _excluded = ["cancel", "children", "onClick", "withArrow", "containsIcon", "className"];
|
|
23
|
+
|
|
22
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
25
|
|
|
24
26
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
@@ -180,7 +182,7 @@ var Link = function Link(_ref8) {
|
|
|
180
182
|
withArrow = _ref8.withArrow,
|
|
181
183
|
containsIcon = _ref8.containsIcon,
|
|
182
184
|
className = _ref8.className,
|
|
183
|
-
rest = _objectWithoutProperties(_ref8,
|
|
185
|
+
rest = _objectWithoutProperties(_ref8, _excluded);
|
|
184
186
|
|
|
185
187
|
return /*#__PURE__*/_react.default.createElement(A, _extends({}, rest, {
|
|
186
188
|
onClick: onClick && cancel ? function (e) {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.withReset = exports.withMargin = exports.headerCommon = exports.codeCommon = void 0;
|
|
7
7
|
|
|
8
8
|
var _polished = require("polished");
|
|
9
9
|
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.symbol.js");
|
|
4
|
+
|
|
5
|
+
require("core-js/modules/es.symbol.description.js");
|
|
6
|
+
|
|
7
|
+
require("core-js/modules/es.object.to-string.js");
|
|
8
|
+
|
|
9
|
+
require("core-js/modules/es.symbol.iterator.js");
|
|
10
|
+
|
|
11
|
+
require("core-js/modules/es.array.iterator.js");
|
|
12
|
+
|
|
13
|
+
require("core-js/modules/es.string.iterator.js");
|
|
14
|
+
|
|
15
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
16
|
+
|
|
17
|
+
require("core-js/modules/es.array.slice.js");
|
|
18
|
+
|
|
19
|
+
require("core-js/modules/es.function.name.js");
|
|
20
|
+
|
|
21
|
+
require("core-js/modules/es.array.from.js");
|
|
22
|
+
|
|
23
|
+
Object.defineProperty(exports, "__esModule", {
|
|
24
|
+
value: true
|
|
25
|
+
});
|
|
26
|
+
exports.getStoryHref = void 0;
|
|
27
|
+
|
|
28
|
+
require("core-js/modules/es.regexp.exec.js");
|
|
29
|
+
|
|
30
|
+
require("core-js/modules/es.string.split.js");
|
|
31
|
+
|
|
32
|
+
require("core-js/modules/es.object.assign.js");
|
|
33
|
+
|
|
34
|
+
require("core-js/modules/es.array.concat.js");
|
|
35
|
+
|
|
36
|
+
var _qs = _interopRequireDefault(require("qs"));
|
|
37
|
+
|
|
38
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
39
|
+
|
|
40
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
41
|
+
|
|
42
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
43
|
+
|
|
44
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
45
|
+
|
|
46
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
47
|
+
|
|
48
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
49
|
+
|
|
50
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
51
|
+
|
|
52
|
+
var getStoryHref = function getStoryHref(baseUrl, storyId) {
|
|
53
|
+
var additionalParams = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
54
|
+
|
|
55
|
+
var _baseUrl$split = baseUrl.split('?'),
|
|
56
|
+
_baseUrl$split2 = _slicedToArray(_baseUrl$split, 2),
|
|
57
|
+
url = _baseUrl$split2[0],
|
|
58
|
+
paramsStr = _baseUrl$split2[1];
|
|
59
|
+
|
|
60
|
+
var params = paramsStr ? Object.assign({}, _qs.default.parse(paramsStr), additionalParams, {
|
|
61
|
+
id: storyId
|
|
62
|
+
}) : Object.assign({}, additionalParams, {
|
|
63
|
+
id: storyId
|
|
64
|
+
});
|
|
65
|
+
return "".concat(url).concat(_qs.default.stringify(params, {
|
|
66
|
+
addQueryPrefix: true,
|
|
67
|
+
encode: false
|
|
68
|
+
}));
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
exports.getStoryHref = getStoryHref;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
+
import "core-js/modules/es.object.keys.js";
|
|
2
|
+
import "core-js/modules/es.symbol.js";
|
|
3
|
+
var _excluded = ["actionItems"];
|
|
4
|
+
|
|
1
5
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
2
6
|
|
|
3
7
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
4
8
|
|
|
5
9
|
import "core-js/modules/es.string.bold.js";
|
|
6
10
|
import "core-js/modules/es.array.map.js";
|
|
7
|
-
import "core-js/modules/es.object.keys.js";
|
|
8
|
-
import "core-js/modules/es.symbol.js";
|
|
9
11
|
import React from 'react';
|
|
10
12
|
import { styled } from '@storybook/theming';
|
|
11
13
|
var Container = styled.div(function (_ref) {
|
|
@@ -61,7 +63,7 @@ export var ActionButton = styled.button(function (_ref2) {
|
|
|
61
63
|
ActionButton.displayName = 'ActionButton';
|
|
62
64
|
export var ActionBar = function ActionBar(_ref4) {
|
|
63
65
|
var actionItems = _ref4.actionItems,
|
|
64
|
-
props = _objectWithoutProperties(_ref4,
|
|
66
|
+
props = _objectWithoutProperties(_ref4, _excluded);
|
|
65
67
|
|
|
66
68
|
return /*#__PURE__*/React.createElement(Container, props, actionItems.map(function (_ref5, index) {
|
|
67
69
|
var title = _ref5.title,
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
var _excluded = ["isLink", "children"];
|
|
2
|
+
|
|
1
3
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
4
|
|
|
3
5
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
@@ -221,7 +223,7 @@ var ButtonLink = ButtonWrapper.withComponent('a', {
|
|
|
221
223
|
export var Button = Object.assign( /*#__PURE__*/forwardRef(function (_ref9, ref) {
|
|
222
224
|
var isLink = _ref9.isLink,
|
|
223
225
|
children = _ref9.children,
|
|
224
|
-
props = _objectWithoutProperties(_ref9,
|
|
226
|
+
props = _objectWithoutProperties(_ref9, _excluded);
|
|
225
227
|
|
|
226
228
|
if (isLink) {
|
|
227
229
|
return /*#__PURE__*/React.createElement(ButtonLink, _extends({}, props, {
|
|
@@ -5,11 +5,13 @@ import "core-js/modules/es.symbol.js";
|
|
|
5
5
|
import "core-js/modules/es.object.assign.js";
|
|
6
6
|
import "core-js/modules/es.symbol.description.js";
|
|
7
7
|
import "core-js/modules/es.symbol.iterator.js";
|
|
8
|
-
import "core-js/modules/es.string.iterator.js";
|
|
9
8
|
import "core-js/modules/es.array.iterator.js";
|
|
9
|
+
import "core-js/modules/es.string.iterator.js";
|
|
10
10
|
import "core-js/modules/web.dom-collections.iterator.js";
|
|
11
11
|
import "core-js/modules/es.function.name.js";
|
|
12
12
|
import "core-js/modules/es.array.from.js";
|
|
13
|
+
import "core-js/modules/es.regexp.exec.js";
|
|
14
|
+
var _excluded = ["progress", "error", "size"];
|
|
13
15
|
|
|
14
16
|
var _templateObject;
|
|
15
17
|
|
|
@@ -21,7 +23,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
21
23
|
|
|
22
24
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
23
25
|
|
|
24
|
-
function _iterableToArrayLimit(arr, i) {
|
|
26
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
25
27
|
|
|
26
28
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
27
29
|
|
|
@@ -136,7 +138,7 @@ export var PureLoader = function PureLoader(_ref6) {
|
|
|
136
138
|
var progress = _ref6.progress,
|
|
137
139
|
error = _ref6.error,
|
|
138
140
|
size = _ref6.size,
|
|
139
|
-
props = _objectWithoutProperties(_ref6,
|
|
141
|
+
props = _objectWithoutProperties(_ref6, _excluded);
|
|
140
142
|
|
|
141
143
|
if (error) {
|
|
142
144
|
return /*#__PURE__*/React.createElement(ProgressWrapper, _extends({
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
+
import "core-js/modules/es.object.keys.js";
|
|
2
|
+
import "core-js/modules/es.symbol.js";
|
|
3
|
+
import "core-js/modules/es.object.assign.js";
|
|
4
|
+
var _excluded = ["options", "extensions", "className", "children"];
|
|
1
5
|
import "core-js/modules/es.regexp.constructor.js";
|
|
2
6
|
import "core-js/modules/es.regexp.exec.js";
|
|
3
7
|
import "core-js/modules/es.regexp.to-string.js";
|
|
4
8
|
import "core-js/modules/es.string.replace.js";
|
|
5
9
|
import "core-js/modules/es.array.join.js";
|
|
6
10
|
import "core-js/modules/es.array.filter.js";
|
|
11
|
+
import "core-js/modules/es.object.to-string.js";
|
|
7
12
|
import "core-js/modules/es.string.split.js";
|
|
8
13
|
import "core-js/modules/es.string.match.js";
|
|
9
14
|
import "core-js/modules/es.array.concat.js";
|
|
10
|
-
import "core-js/modules/es.object.keys.js";
|
|
11
|
-
import "core-js/modules/es.symbol.js";
|
|
12
|
-
import "core-js/modules/es.object.assign.js";
|
|
13
15
|
|
|
14
16
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
15
17
|
|
|
@@ -32,7 +34,7 @@ export var OverlayScrollbarsComponent = function OverlayScrollbarsComponent(_ref
|
|
|
32
34
|
extensions = _ref.extensions,
|
|
33
35
|
className = _ref.className,
|
|
34
36
|
children = _ref.children,
|
|
35
|
-
rest = _objectWithoutProperties(_ref,
|
|
37
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
36
38
|
|
|
37
39
|
var osTargetRef = React.useRef();
|
|
38
40
|
var osInstance = React.useRef();
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
+
var _excluded = ["horizontal", "vertical"];
|
|
2
|
+
|
|
1
3
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
4
|
|
|
3
5
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
6
|
|
|
5
7
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
6
8
|
|
|
7
|
-
import "core-js/modules/es.promise.js";
|
|
8
9
|
import "core-js/modules/es.object.to-string.js";
|
|
10
|
+
import "core-js/modules/es.promise.js";
|
|
9
11
|
import "core-js/modules/es.object.keys.js";
|
|
10
12
|
import "core-js/modules/es.symbol.js";
|
|
11
13
|
import "core-js/modules/es.object.assign.js";
|
|
@@ -21,7 +23,7 @@ var OverlayScrollbars = /*#__PURE__*/React.lazy(function () {
|
|
|
21
23
|
var Scroller = function Scroller(_ref) {
|
|
22
24
|
var horizontal = _ref.horizontal,
|
|
23
25
|
vertical = _ref.vertical,
|
|
24
|
-
props = _objectWithoutProperties(_ref,
|
|
26
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
25
27
|
|
|
26
28
|
return /*#__PURE__*/React.createElement(Suspense, {
|
|
27
29
|
fallback: /*#__PURE__*/React.createElement("div", props)
|
|
@@ -2,12 +2,13 @@ import "core-js/modules/es.symbol.js";
|
|
|
2
2
|
import "core-js/modules/es.symbol.description.js";
|
|
3
3
|
import "core-js/modules/es.object.to-string.js";
|
|
4
4
|
import "core-js/modules/es.symbol.iterator.js";
|
|
5
|
-
import "core-js/modules/es.string.iterator.js";
|
|
6
5
|
import "core-js/modules/es.array.iterator.js";
|
|
6
|
+
import "core-js/modules/es.string.iterator.js";
|
|
7
7
|
import "core-js/modules/web.dom-collections.iterator.js";
|
|
8
8
|
import "core-js/modules/es.array.slice.js";
|
|
9
9
|
import "core-js/modules/es.function.name.js";
|
|
10
10
|
import "core-js/modules/es.array.from.js";
|
|
11
|
+
import "core-js/modules/es.regexp.exec.js";
|
|
11
12
|
|
|
12
13
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
13
14
|
|
|
@@ -17,7 +18,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
17
18
|
|
|
18
19
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
19
20
|
|
|
20
|
-
function _iterableToArrayLimit(arr, i) {
|
|
21
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
21
22
|
|
|
22
23
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
23
24
|
|
|
@@ -2,12 +2,13 @@ import "core-js/modules/es.symbol.js";
|
|
|
2
2
|
import "core-js/modules/es.symbol.description.js";
|
|
3
3
|
import "core-js/modules/es.object.to-string.js";
|
|
4
4
|
import "core-js/modules/es.symbol.iterator.js";
|
|
5
|
-
import "core-js/modules/es.string.iterator.js";
|
|
6
5
|
import "core-js/modules/es.array.iterator.js";
|
|
6
|
+
import "core-js/modules/es.string.iterator.js";
|
|
7
7
|
import "core-js/modules/web.dom-collections.iterator.js";
|
|
8
8
|
import "core-js/modules/es.array.slice.js";
|
|
9
9
|
import "core-js/modules/es.function.name.js";
|
|
10
10
|
import "core-js/modules/es.array.from.js";
|
|
11
|
+
import "core-js/modules/es.regexp.exec.js";
|
|
11
12
|
|
|
12
13
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
13
14
|
|
|
@@ -17,7 +18,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
17
18
|
|
|
18
19
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
19
20
|
|
|
20
|
-
function _iterableToArrayLimit(arr, i) {
|
|
21
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
21
22
|
|
|
22
23
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
23
24
|
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
2
|
|
|
3
3
|
import "core-js/modules/es.array.concat.js";
|
|
4
4
|
import "core-js/modules/es.object.assign.js";
|
|
5
5
|
import "core-js/modules/es.object.get-prototype-of.js";
|
|
6
|
+
import "core-js/modules/es.object.to-string.js";
|
|
6
7
|
import "core-js/modules/es.reflect.construct.js";
|
|
7
8
|
import "core-js/modules/es.symbol.js";
|
|
8
9
|
import "core-js/modules/es.symbol.description.js";
|
|
9
|
-
import "core-js/modules/es.object.to-string.js";
|
|
10
10
|
import "core-js/modules/es.symbol.iterator.js";
|
|
11
|
-
import "core-js/modules/es.string.iterator.js";
|
|
12
11
|
import "core-js/modules/es.array.iterator.js";
|
|
12
|
+
import "core-js/modules/es.string.iterator.js";
|
|
13
13
|
import "core-js/modules/web.dom-collections.iterator.js";
|
|
14
14
|
|
|
15
15
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
16
16
|
|
|
17
17
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
18
18
|
|
|
19
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
19
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
20
20
|
|
|
21
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
21
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
22
22
|
|
|
23
23
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
24
24
|
|
|
25
25
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
26
26
|
|
|
27
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
27
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
28
28
|
|
|
29
29
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
30
30
|
|
package/dist/esm/bar/bar.js
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import "core-js/modules/es.object.keys.js";
|
|
2
2
|
import "core-js/modules/es.symbol.js";
|
|
3
3
|
import "core-js/modules/es.symbol.description.js";
|
|
4
|
-
import "core-js/modules/es.object.to-string.js";
|
|
5
4
|
import "core-js/modules/es.symbol.iterator.js";
|
|
6
|
-
import "core-js/modules/es.string.iterator.js";
|
|
7
5
|
import "core-js/modules/es.array.iterator.js";
|
|
6
|
+
import "core-js/modules/es.string.iterator.js";
|
|
8
7
|
import "core-js/modules/web.dom-collections.iterator.js";
|
|
9
8
|
import "core-js/modules/es.array.slice.js";
|
|
10
9
|
import "core-js/modules/es.function.name.js";
|
|
11
10
|
import "core-js/modules/es.array.from.js";
|
|
11
|
+
import "core-js/modules/es.regexp.exec.js";
|
|
12
|
+
var _excluded = ["children", "backgroundColor"];
|
|
13
|
+
import "core-js/modules/es.object.to-string.js";
|
|
14
|
+
import "core-js/modules/es.promise.js";
|
|
12
15
|
|
|
13
16
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
14
17
|
|
|
@@ -18,7 +21,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
18
21
|
|
|
19
22
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
20
23
|
|
|
21
|
-
function _iterableToArrayLimit(arr, i) {
|
|
24
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
22
25
|
|
|
23
26
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
24
27
|
|
|
@@ -95,7 +98,7 @@ var BarInner = styled.div(function (_ref6) {
|
|
|
95
98
|
export var FlexBar = function FlexBar(_ref7) {
|
|
96
99
|
var children = _ref7.children,
|
|
97
100
|
backgroundColor = _ref7.backgroundColor,
|
|
98
|
-
rest = _objectWithoutProperties(_ref7,
|
|
101
|
+
rest = _objectWithoutProperties(_ref7, _excluded);
|
|
99
102
|
|
|
100
103
|
var _Children$toArray = Children.toArray(children),
|
|
101
104
|
_Children$toArray2 = _slicedToArray(_Children$toArray, 2),
|
package/dist/esm/bar/button.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import "core-js/modules/es.object.keys.js";
|
|
2
2
|
import "core-js/modules/es.symbol.js";
|
|
3
3
|
import "core-js/modules/es.object.assign.js";
|
|
4
|
+
var _excluded = ["children"];
|
|
4
5
|
|
|
5
6
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
6
7
|
|
|
@@ -15,7 +16,7 @@ import { auto } from '@popperjs/core';
|
|
|
15
16
|
|
|
16
17
|
var ButtonOrLink = function ButtonOrLink(_ref) {
|
|
17
18
|
var children = _ref.children,
|
|
18
|
-
restProps = _objectWithoutProperties(_ref,
|
|
19
|
+
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
19
20
|
|
|
20
21
|
return restProps.href != null ? /*#__PURE__*/React.createElement("a", restProps, children) : /*#__PURE__*/React.createElement("button", _extends({
|
|
21
22
|
type: "button"
|
|
@@ -2,12 +2,13 @@ import "core-js/modules/es.symbol.js";
|
|
|
2
2
|
import "core-js/modules/es.symbol.description.js";
|
|
3
3
|
import "core-js/modules/es.object.to-string.js";
|
|
4
4
|
import "core-js/modules/es.symbol.iterator.js";
|
|
5
|
-
import "core-js/modules/es.string.iterator.js";
|
|
6
5
|
import "core-js/modules/es.array.iterator.js";
|
|
6
|
+
import "core-js/modules/es.string.iterator.js";
|
|
7
7
|
import "core-js/modules/web.dom-collections.iterator.js";
|
|
8
8
|
import "core-js/modules/es.array.slice.js";
|
|
9
9
|
import "core-js/modules/es.function.name.js";
|
|
10
10
|
import "core-js/modules/es.array.from.js";
|
|
11
|
+
import "core-js/modules/es.regexp.exec.js";
|
|
11
12
|
import "core-js/modules/es.object.assign.js";
|
|
12
13
|
|
|
13
14
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
@@ -22,7 +23,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
22
23
|
|
|
23
24
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
24
25
|
|
|
25
|
-
function _iterableToArrayLimit(arr, i) {
|
|
26
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
26
27
|
|
|
27
28
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
28
29
|
|
|
@@ -2,7 +2,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
|
|
|
2
2
|
|
|
3
3
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
4
|
|
|
5
|
-
function _iterableToArrayLimit(arr, i) {
|
|
5
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
6
6
|
|
|
7
7
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8
8
|
|
|
@@ -12,15 +12,15 @@ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread n
|
|
|
12
12
|
|
|
13
13
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
14
14
|
|
|
15
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator
|
|
15
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
16
16
|
|
|
17
17
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
18
18
|
|
|
19
19
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
20
20
|
|
|
21
21
|
import "core-js/modules/es.object.assign.js";
|
|
22
|
-
import "core-js/modules/es.string.split.js";
|
|
23
22
|
import "core-js/modules/es.regexp.exec.js";
|
|
23
|
+
import "core-js/modules/es.string.split.js";
|
|
24
24
|
import "core-js/modules/es.array.map.js";
|
|
25
25
|
import "core-js/modules/es.string.trim.js";
|
|
26
26
|
import "core-js/modules/es.array.slice.js";
|
|
@@ -29,8 +29,8 @@ import "core-js/modules/es.regexp.to-string.js";
|
|
|
29
29
|
import "core-js/modules/es.symbol.js";
|
|
30
30
|
import "core-js/modules/es.symbol.description.js";
|
|
31
31
|
import "core-js/modules/es.symbol.iterator.js";
|
|
32
|
-
import "core-js/modules/es.string.iterator.js";
|
|
33
32
|
import "core-js/modules/es.array.iterator.js";
|
|
33
|
+
import "core-js/modules/es.string.iterator.js";
|
|
34
34
|
import "core-js/modules/web.dom-collections.iterator.js";
|
|
35
35
|
import "core-js/modules/es.array.from.js";
|
|
36
36
|
import "core-js/modules/es.function.name.js";
|
|
@@ -8,7 +8,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
8
8
|
|
|
9
9
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
10
10
|
|
|
11
|
-
function _iterableToArrayLimit(arr, i) {
|
|
11
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
12
12
|
|
|
13
13
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
14
14
|
|
|
@@ -18,19 +18,21 @@ import "core-js/modules/es.object.assign.js";
|
|
|
18
18
|
import "core-js/modules/es.array.concat.js";
|
|
19
19
|
import "core-js/modules/es.function.name.js";
|
|
20
20
|
import "core-js/modules/es.number.constructor.js";
|
|
21
|
+
import "core-js/modules/es.object.to-string.js";
|
|
21
22
|
import "core-js/modules/web.dom-collections.for-each.js";
|
|
22
23
|
import "core-js/modules/es.object.entries.js";
|
|
23
24
|
import "core-js/modules/es.object.keys.js";
|
|
25
|
+
import "core-js/modules/es.array.sort.js";
|
|
24
26
|
import "core-js/modules/es.array.map.js";
|
|
25
27
|
import "core-js/modules/es.symbol.js";
|
|
26
28
|
import "core-js/modules/es.symbol.description.js";
|
|
27
|
-
import "core-js/modules/es.object.to-string.js";
|
|
28
29
|
import "core-js/modules/es.symbol.iterator.js";
|
|
29
|
-
import "core-js/modules/es.string.iterator.js";
|
|
30
30
|
import "core-js/modules/es.array.iterator.js";
|
|
31
|
+
import "core-js/modules/es.string.iterator.js";
|
|
31
32
|
import "core-js/modules/web.dom-collections.iterator.js";
|
|
32
33
|
import "core-js/modules/es.array.slice.js";
|
|
33
34
|
import "core-js/modules/es.array.from.js";
|
|
35
|
+
import "core-js/modules/es.regexp.exec.js";
|
|
34
36
|
import React from 'react';
|
|
35
37
|
import pickBy from 'lodash/pickBy';
|
|
36
38
|
import { styled, ignoreSsrWarning } from '@storybook/theming';
|
|
@@ -6,7 +6,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
6
6
|
|
|
7
7
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
8
8
|
|
|
9
|
-
function _iterableToArrayLimit(arr, i) {
|
|
9
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
10
10
|
|
|
11
11
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
12
12
|
|
|
@@ -16,12 +16,13 @@ import "core-js/modules/es.symbol.js";
|
|
|
16
16
|
import "core-js/modules/es.symbol.description.js";
|
|
17
17
|
import "core-js/modules/es.object.to-string.js";
|
|
18
18
|
import "core-js/modules/es.symbol.iterator.js";
|
|
19
|
-
import "core-js/modules/es.string.iterator.js";
|
|
20
19
|
import "core-js/modules/es.array.iterator.js";
|
|
20
|
+
import "core-js/modules/es.string.iterator.js";
|
|
21
21
|
import "core-js/modules/web.dom-collections.iterator.js";
|
|
22
22
|
import "core-js/modules/es.array.slice.js";
|
|
23
23
|
import "core-js/modules/es.function.name.js";
|
|
24
24
|
import "core-js/modules/es.array.from.js";
|
|
25
|
+
import "core-js/modules/es.regexp.exec.js";
|
|
25
26
|
import React, { useState } from 'react';
|
|
26
27
|
import { transparentize } from 'polished';
|
|
27
28
|
import { styled } from '@storybook/theming';
|