@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,20 +1,21 @@
|
|
|
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.function.name.js";
|
|
5
5
|
import "core-js/modules/es.string.repeat.js";
|
|
6
6
|
import "core-js/modules/es.object.get-prototype-of.js";
|
|
7
|
-
import "core-js/modules/es.promise.js";
|
|
8
7
|
import "core-js/modules/es.object.to-string.js";
|
|
8
|
+
import "core-js/modules/es.promise.js";
|
|
9
9
|
import "core-js/modules/es.reflect.construct.js";
|
|
10
10
|
import "core-js/modules/es.symbol.js";
|
|
11
11
|
import "core-js/modules/es.symbol.description.js";
|
|
12
12
|
import "core-js/modules/es.symbol.iterator.js";
|
|
13
|
-
import "core-js/modules/es.string.iterator.js";
|
|
14
13
|
import "core-js/modules/es.array.iterator.js";
|
|
14
|
+
import "core-js/modules/es.string.iterator.js";
|
|
15
15
|
import "core-js/modules/web.dom-collections.iterator.js";
|
|
16
16
|
import "core-js/modules/es.array.from.js";
|
|
17
17
|
import "core-js/modules/es.array.slice.js";
|
|
18
|
+
import "core-js/modules/es.regexp.exec.js";
|
|
18
19
|
|
|
19
20
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
20
21
|
|
|
@@ -22,7 +23,7 @@ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread n
|
|
|
22
23
|
|
|
23
24
|
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); }
|
|
24
25
|
|
|
25
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator
|
|
26
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
26
27
|
|
|
27
28
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
28
29
|
|
|
@@ -32,15 +33,15 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
32
33
|
|
|
33
34
|
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); } }
|
|
34
35
|
|
|
35
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
36
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
36
37
|
|
|
37
|
-
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); }
|
|
38
|
+
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); }
|
|
38
39
|
|
|
39
40
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
40
41
|
|
|
41
42
|
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); }; }
|
|
42
43
|
|
|
43
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
44
|
+
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); }
|
|
44
45
|
|
|
45
46
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
46
47
|
|
|
@@ -1,29 +1,29 @@
|
|
|
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.object.get-prototype-of.js";
|
|
4
|
-
import "core-js/modules/es.promise.js";
|
|
5
4
|
import "core-js/modules/es.object.to-string.js";
|
|
5
|
+
import "core-js/modules/es.promise.js";
|
|
6
6
|
import "core-js/modules/es.reflect.construct.js";
|
|
7
7
|
import "core-js/modules/es.symbol.js";
|
|
8
8
|
import "core-js/modules/es.symbol.description.js";
|
|
9
9
|
import "core-js/modules/es.symbol.iterator.js";
|
|
10
|
-
import "core-js/modules/es.string.iterator.js";
|
|
11
10
|
import "core-js/modules/es.array.iterator.js";
|
|
11
|
+
import "core-js/modules/es.string.iterator.js";
|
|
12
12
|
import "core-js/modules/web.dom-collections.iterator.js";
|
|
13
13
|
|
|
14
14
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
15
|
|
|
16
16
|
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); } }
|
|
17
17
|
|
|
18
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
18
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
19
19
|
|
|
20
|
-
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); }
|
|
20
|
+
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); }
|
|
21
21
|
|
|
22
22
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
23
23
|
|
|
24
24
|
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); }; }
|
|
25
25
|
|
|
26
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
26
|
+
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); }
|
|
27
27
|
|
|
28
28
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
29
29
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "core-js/modules/es.symbol.iterator.js";
|
|
2
|
+
import "core-js/modules/es.array.iterator.js";
|
|
2
3
|
import "core-js/modules/es.object.to-string.js";
|
|
3
4
|
import "core-js/modules/es.string.iterator.js";
|
|
4
|
-
import "core-js/modules/es.array.iterator.js";
|
|
5
5
|
import "core-js/modules/web.dom-collections.iterator.js";
|
|
6
6
|
import "core-js/modules/es.symbol.js";
|
|
7
7
|
import "core-js/modules/es.symbol.description.js";
|
|
8
8
|
import "core-js/modules/es.array.slice.js";
|
|
9
9
|
|
|
10
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
10
|
+
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); }
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Get Object type.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import "core-js/modules/es.object.keys.js";
|
|
2
|
+
import "core-js/modules/es.symbol.js";
|
|
3
|
+
var _excluded = ["label", "children"];
|
|
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
|
-
import "core-js/modules/es.object.keys.js";
|
|
7
|
-
import "core-js/modules/es.symbol.js";
|
|
8
10
|
import React from 'react';
|
|
9
11
|
import { styled } from '@storybook/theming';
|
|
10
12
|
var Wrapper = styled.label(function (_ref) {
|
|
@@ -34,7 +36,7 @@ var Label = styled.span(function (_ref2) {
|
|
|
34
36
|
export var Field = function Field(_ref3) {
|
|
35
37
|
var label = _ref3.label,
|
|
36
38
|
children = _ref3.children,
|
|
37
|
-
props = _objectWithoutProperties(_ref3,
|
|
39
|
+
props = _objectWithoutProperties(_ref3, _excluded);
|
|
38
40
|
|
|
39
41
|
return /*#__PURE__*/React.createElement(Wrapper, props, label ? /*#__PURE__*/React.createElement(Label, null, /*#__PURE__*/React.createElement("span", null, label)) : null, children);
|
|
40
42
|
};
|
|
@@ -4,7 +4,7 @@ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread n
|
|
|
4
4
|
|
|
5
5
|
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); }
|
|
6
6
|
|
|
7
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator
|
|
7
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
8
8
|
|
|
9
9
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
10
10
|
|
|
@@ -18,12 +18,13 @@ import "core-js/modules/es.array.fill.js";
|
|
|
18
18
|
import "core-js/modules/es.symbol.js";
|
|
19
19
|
import "core-js/modules/es.symbol.description.js";
|
|
20
20
|
import "core-js/modules/es.symbol.iterator.js";
|
|
21
|
-
import "core-js/modules/es.string.iterator.js";
|
|
22
21
|
import "core-js/modules/es.array.iterator.js";
|
|
22
|
+
import "core-js/modules/es.string.iterator.js";
|
|
23
23
|
import "core-js/modules/web.dom-collections.iterator.js";
|
|
24
24
|
import "core-js/modules/es.array.from.js";
|
|
25
25
|
import "core-js/modules/es.array.slice.js";
|
|
26
26
|
import "core-js/modules/es.function.name.js";
|
|
27
|
+
import "core-js/modules/es.regexp.exec.js";
|
|
27
28
|
import React from 'react';
|
|
28
29
|
import { styled } from '@storybook/theming';
|
|
29
30
|
import { storiesOf } from '@storybook/react';
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
import "core-js/modules/es.object.keys.js";
|
|
2
|
+
import "core-js/modules/es.symbol.js";
|
|
3
|
+
var _excluded = ["size", "valid", "align"],
|
|
4
|
+
_excluded2 = ["size", "valid", "align"],
|
|
5
|
+
_excluded3 = ["size", "valid", "align"],
|
|
6
|
+
_excluded4 = ["size", "valid", "align"];
|
|
7
|
+
|
|
1
8
|
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
9
|
|
|
3
10
|
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; }
|
|
@@ -5,8 +12,6 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
5
12
|
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
13
|
|
|
7
14
|
import "core-js/modules/es.object.assign.js";
|
|
8
|
-
import "core-js/modules/es.object.keys.js";
|
|
9
|
-
import "core-js/modules/es.symbol.js";
|
|
10
15
|
import React, { forwardRef } from 'react';
|
|
11
16
|
import { styled } from '@storybook/theming';
|
|
12
17
|
import TextareaAutoResize from 'react-textarea-autosize';
|
|
@@ -148,7 +153,7 @@ export var Input = Object.assign(styled( /*#__PURE__*/forwardRef(function (_ref5
|
|
|
148
153
|
var size = _ref5.size,
|
|
149
154
|
valid = _ref5.valid,
|
|
150
155
|
align = _ref5.align,
|
|
151
|
-
props = _objectWithoutProperties(_ref5,
|
|
156
|
+
props = _objectWithoutProperties(_ref5, _excluded);
|
|
152
157
|
|
|
153
158
|
return /*#__PURE__*/React.createElement("input", _extends({}, props, {
|
|
154
159
|
ref: ref
|
|
@@ -162,7 +167,7 @@ export var Select = Object.assign(styled( /*#__PURE__*/forwardRef(function (_ref
|
|
|
162
167
|
var size = _ref6.size,
|
|
163
168
|
valid = _ref6.valid,
|
|
164
169
|
align = _ref6.align,
|
|
165
|
-
props = _objectWithoutProperties(_ref6,
|
|
170
|
+
props = _objectWithoutProperties(_ref6, _excluded2);
|
|
166
171
|
|
|
167
172
|
return /*#__PURE__*/React.createElement("select", _extends({}, props, {
|
|
168
173
|
ref: ref
|
|
@@ -179,7 +184,7 @@ export var Textarea = Object.assign(styled( /*#__PURE__*/forwardRef(function (_r
|
|
|
179
184
|
var size = _ref7.size,
|
|
180
185
|
valid = _ref7.valid,
|
|
181
186
|
align = _ref7.align,
|
|
182
|
-
props = _objectWithoutProperties(_ref7,
|
|
187
|
+
props = _objectWithoutProperties(_ref7, _excluded3);
|
|
183
188
|
|
|
184
189
|
return /*#__PURE__*/React.createElement(TextareaAutoResize, _extends({}, props, {
|
|
185
190
|
ref: ref
|
|
@@ -198,7 +203,7 @@ var ButtonStyled = styled( /*#__PURE__*/forwardRef(function (_ref9, ref) {
|
|
|
198
203
|
var size = _ref9.size,
|
|
199
204
|
valid = _ref9.valid,
|
|
200
205
|
align = _ref9.align,
|
|
201
|
-
props = _objectWithoutProperties(_ref9,
|
|
206
|
+
props = _objectWithoutProperties(_ref9, _excluded4);
|
|
202
207
|
|
|
203
208
|
return /*#__PURE__*/React.createElement(StyledButton, _extends({}, props, {
|
|
204
209
|
ref: ref
|
package/dist/esm/icon/icon.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import "core-js/modules/es.object.keys.js";
|
|
2
|
-
import "core-js/modules/es.array.map.js";
|
|
3
1
|
import "core-js/modules/es.symbol.js";
|
|
4
2
|
import "core-js/modules/es.object.assign.js";
|
|
3
|
+
var _excluded = ["icon", "symbol"];
|
|
4
|
+
import "core-js/modules/es.object.keys.js";
|
|
5
|
+
import "core-js/modules/es.array.map.js";
|
|
5
6
|
|
|
6
7
|
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); }
|
|
7
8
|
|
|
@@ -20,7 +21,7 @@ var Path = styled.path({
|
|
|
20
21
|
export var Icons = /*#__PURE__*/React.memo(function (_ref) {
|
|
21
22
|
var icon = _ref.icon,
|
|
22
23
|
symbol = _ref.symbol,
|
|
23
|
-
props = _objectWithoutProperties(_ref,
|
|
24
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
24
25
|
|
|
25
26
|
return /*#__PURE__*/React.createElement(Svg, _extends({
|
|
26
27
|
viewBox: "0 0 1024 1024"
|
package/dist/esm/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import "core-js/modules/es.object.to-string.js";
|
|
1
2
|
import "core-js/modules/web.dom-collections.for-each.js";
|
|
2
3
|
import "core-js/modules/es.object.keys.js";
|
|
3
4
|
import "core-js/modules/es.object.assign.js";
|
|
@@ -36,7 +37,9 @@ export { StorybookIcon } from './brand/StorybookIcon'; // Doc blocks
|
|
|
36
37
|
export * from './blocks';
|
|
37
38
|
export * from './controls'; // Loader
|
|
38
39
|
|
|
39
|
-
export { Loader } from './Loader/Loader';
|
|
40
|
+
export { Loader } from './Loader/Loader'; // Utils
|
|
41
|
+
|
|
42
|
+
export { getStoryHref } from './utils/getStoryHref';
|
|
40
43
|
export * from './typography/DocumentFormatting';
|
|
41
44
|
export { rawComponents as components };
|
|
42
45
|
var resetComponents = {};
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
import "core-js/modules/es.object.keys.js";
|
|
2
|
+
import "core-js/modules/es.symbol.js";
|
|
3
|
+
import "core-js/modules/es.symbol.description.js";
|
|
4
|
+
import "core-js/modules/es.symbol.iterator.js";
|
|
5
|
+
import "core-js/modules/es.array.iterator.js";
|
|
6
|
+
import "core-js/modules/es.string.iterator.js";
|
|
7
|
+
import "core-js/modules/web.dom-collections.iterator.js";
|
|
8
|
+
import "core-js/modules/es.array.slice.js";
|
|
9
|
+
import "core-js/modules/es.function.name.js";
|
|
10
|
+
import "core-js/modules/es.array.from.js";
|
|
11
|
+
import "core-js/modules/es.regexp.exec.js";
|
|
12
|
+
var _excluded = ["children"];
|
|
13
|
+
|
|
1
14
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
15
|
|
|
3
16
|
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."); }
|
|
@@ -6,7 +19,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
6
19
|
|
|
7
20
|
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
21
|
|
|
9
|
-
function _iterableToArrayLimit(arr, i) {
|
|
22
|
+
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
23
|
|
|
11
24
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
12
25
|
|
|
@@ -15,17 +28,8 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
15
28
|
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; }
|
|
16
29
|
|
|
17
30
|
import "core-js/modules/es.string.bold.js";
|
|
18
|
-
import "core-js/modules/es.object.keys.js";
|
|
19
|
-
import "core-js/modules/es.symbol.js";
|
|
20
|
-
import "core-js/modules/es.symbol.description.js";
|
|
21
31
|
import "core-js/modules/es.object.to-string.js";
|
|
22
|
-
import "core-js/modules/es.
|
|
23
|
-
import "core-js/modules/es.string.iterator.js";
|
|
24
|
-
import "core-js/modules/es.array.iterator.js";
|
|
25
|
-
import "core-js/modules/web.dom-collections.iterator.js";
|
|
26
|
-
import "core-js/modules/es.array.slice.js";
|
|
27
|
-
import "core-js/modules/es.function.name.js";
|
|
28
|
-
import "core-js/modules/es.array.from.js";
|
|
32
|
+
import "core-js/modules/es.promise.js";
|
|
29
33
|
import React, { Children } from 'react';
|
|
30
34
|
import { styled } from '@storybook/theming';
|
|
31
35
|
var Title = styled.div(function (_ref) {
|
|
@@ -46,7 +50,7 @@ var Message = styled.div(function (_ref2) {
|
|
|
46
50
|
});
|
|
47
51
|
export var Placeholder = function Placeholder(_ref3) {
|
|
48
52
|
var children = _ref3.children,
|
|
49
|
-
props = _objectWithoutProperties(_ref3,
|
|
53
|
+
props = _objectWithoutProperties(_ref3, _excluded);
|
|
50
54
|
|
|
51
55
|
var _Children$toArray = Children.toArray(children),
|
|
52
56
|
_Children$toArray2 = _slicedToArray(_Children$toArray, 2),
|
|
@@ -1,3 +1,8 @@
|
|
|
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 = ["col", "row", "outer", "children"];
|
|
5
|
+
|
|
1
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); }
|
|
2
7
|
|
|
3
8
|
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; }
|
|
@@ -7,9 +12,6 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
7
12
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
13
|
|
|
9
14
|
import "core-js/modules/es.number.constructor.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
|
import React from 'react';
|
|
14
16
|
import { styled, ignoreSsrWarning } from '@storybook/theming';
|
|
15
17
|
|
|
@@ -72,7 +74,7 @@ export var Spaced = function Spaced(_ref5) {
|
|
|
72
74
|
row = _ref5.row,
|
|
73
75
|
outer = _ref5.outer,
|
|
74
76
|
children = _ref5.children,
|
|
75
|
-
rest = _objectWithoutProperties(_ref5,
|
|
77
|
+
rest = _objectWithoutProperties(_ref5, _excluded);
|
|
76
78
|
|
|
77
79
|
var outerAmount = toNumber(typeof outer === 'number' || !outer ? outer : col || row);
|
|
78
80
|
return /*#__PURE__*/React.createElement(Container, _extends({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "core-js/modules/es.promise.js";
|
|
2
1
|
import "core-js/modules/es.object.to-string.js";
|
|
2
|
+
import "core-js/modules/es.promise.js";
|
|
3
3
|
import React, { Suspense } from 'react';
|
|
4
4
|
var LazySyntaxHighlighter = /*#__PURE__*/React.lazy(function () {
|
|
5
5
|
return import('./syntaxhighlighter');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
import "core-js/modules/es.symbol.js";
|
|
2
|
+
import "core-js/modules/es.symbol.description.js";
|
|
3
|
+
import "core-js/modules/es.symbol.iterator.js";
|
|
4
|
+
import "core-js/modules/es.array.iterator.js";
|
|
5
|
+
import "core-js/modules/es.string.iterator.js";
|
|
6
|
+
import "core-js/modules/web.dom-collections.iterator.js";
|
|
7
|
+
import "core-js/modules/es.array.slice.js";
|
|
8
|
+
import "core-js/modules/es.function.name.js";
|
|
9
|
+
import "core-js/modules/es.array.from.js";
|
|
10
|
+
import "core-js/modules/es.regexp.exec.js";
|
|
11
|
+
import "core-js/modules/es.promise.js";
|
|
12
|
+
import "core-js/modules/es.object.keys.js";
|
|
13
|
+
var _excluded = ["children", "language", "copyable", "bordered", "padded", "format", "className", "showLineNumbers"];
|
|
14
|
+
|
|
1
15
|
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
16
|
|
|
3
17
|
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; }
|
|
@@ -20,26 +34,15 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
20
34
|
|
|
21
35
|
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; }
|
|
22
36
|
|
|
23
|
-
function _iterableToArrayLimit(arr, i) {
|
|
37
|
+
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; }
|
|
24
38
|
|
|
25
39
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
26
40
|
|
|
41
|
+
import "core-js/modules/es.object.to-string.js";
|
|
27
42
|
import "core-js/modules/es.object.entries.js";
|
|
28
43
|
import "core-js/modules/es.object.assign.js";
|
|
29
44
|
import "core-js/modules/es.string.trim.js";
|
|
30
|
-
import "core-js/modules/es.object.to-string.js";
|
|
31
45
|
import "core-js/modules/es.regexp.to-string.js";
|
|
32
|
-
import "core-js/modules/es.symbol.js";
|
|
33
|
-
import "core-js/modules/es.symbol.description.js";
|
|
34
|
-
import "core-js/modules/es.symbol.iterator.js";
|
|
35
|
-
import "core-js/modules/es.string.iterator.js";
|
|
36
|
-
import "core-js/modules/es.array.iterator.js";
|
|
37
|
-
import "core-js/modules/web.dom-collections.iterator.js";
|
|
38
|
-
import "core-js/modules/es.array.slice.js";
|
|
39
|
-
import "core-js/modules/es.function.name.js";
|
|
40
|
-
import "core-js/modules/es.array.from.js";
|
|
41
|
-
import "core-js/modules/es.promise.js";
|
|
42
|
-
import "core-js/modules/es.object.keys.js";
|
|
43
46
|
import React, { useState } from 'react';
|
|
44
47
|
import { logger } from '@storybook/client-logger';
|
|
45
48
|
import { styled } from '@storybook/theming';
|
|
@@ -200,7 +203,7 @@ export var SyntaxHighlighter = function SyntaxHighlighter(_ref10) {
|
|
|
200
203
|
className = _ref10$className === void 0 ? null : _ref10$className,
|
|
201
204
|
_ref10$showLineNumber = _ref10.showLineNumbers,
|
|
202
205
|
showLineNumbers = _ref10$showLineNumber === void 0 ? false : _ref10$showLineNumber,
|
|
203
|
-
rest = _objectWithoutProperties(_ref10,
|
|
206
|
+
rest = _objectWithoutProperties(_ref10, _excluded);
|
|
204
207
|
|
|
205
208
|
if (typeof children !== 'string' || !children.trim()) {
|
|
206
209
|
return null;
|
package/dist/esm/tabs/tabs.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
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
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
4
4
|
|
|
5
5
|
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); } }
|
|
6
6
|
|
|
7
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
7
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
8
8
|
|
|
9
|
-
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); }
|
|
9
|
+
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); }
|
|
10
10
|
|
|
11
11
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
12
12
|
|
|
13
13
|
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); }; }
|
|
14
14
|
|
|
15
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
15
|
+
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); }
|
|
16
16
|
|
|
17
17
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
18
18
|
|
|
@@ -24,14 +24,15 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
24
24
|
|
|
25
25
|
import "core-js/modules/es.array.concat.js";
|
|
26
26
|
import "core-js/modules/es.array.map.js";
|
|
27
|
+
import "core-js/modules/es.object.to-string.js";
|
|
28
|
+
import "core-js/modules/es.promise.js";
|
|
27
29
|
import "core-js/modules/es.object.get-prototype-of.js";
|
|
28
30
|
import "core-js/modules/es.reflect.construct.js";
|
|
29
31
|
import "core-js/modules/es.symbol.js";
|
|
30
32
|
import "core-js/modules/es.symbol.description.js";
|
|
31
|
-
import "core-js/modules/es.object.to-string.js";
|
|
32
33
|
import "core-js/modules/es.symbol.iterator.js";
|
|
33
|
-
import "core-js/modules/es.string.iterator.js";
|
|
34
34
|
import "core-js/modules/es.array.iterator.js";
|
|
35
|
+
import "core-js/modules/es.string.iterator.js";
|
|
35
36
|
import "core-js/modules/web.dom-collections.iterator.js";
|
|
36
37
|
import React, { Children, Component, Fragment, memo } from 'react';
|
|
37
38
|
import { styled } 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
|
|
|
@@ -24,6 +24,7 @@ import "core-js/modules/es.array.iterator.js";
|
|
|
24
24
|
import "core-js/modules/web.dom-collections.iterator.js";
|
|
25
25
|
import "core-js/modules/es.array.slice.js";
|
|
26
26
|
import "core-js/modules/es.function.name.js";
|
|
27
|
+
import "core-js/modules/es.regexp.exec.js";
|
|
27
28
|
import React, { Fragment } from 'react';
|
|
28
29
|
import { storiesOf } from '@storybook/react';
|
|
29
30
|
import { action } from '@storybook/addon-actions';
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import "core-js/modules/es.object.keys.js";
|
|
2
|
+
import "core-js/modules/es.symbol.js";
|
|
3
|
+
var _excluded = ["active", "loading", "disabled"],
|
|
4
|
+
_excluded2 = ["loading", "left", "title", "center", "right", "active", "disabled", "href", "onClick", "LinkWrapper"];
|
|
5
|
+
|
|
1
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); }
|
|
2
7
|
|
|
3
8
|
import "core-js/modules/es.string.bold.js";
|
|
4
9
|
import "core-js/modules/es.object.assign.js";
|
|
5
|
-
import "core-js/modules/es.object.keys.js";
|
|
6
|
-
import "core-js/modules/es.symbol.js";
|
|
7
10
|
|
|
8
11
|
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; }
|
|
9
12
|
|
|
@@ -17,7 +20,7 @@ var Title = styled(function (_ref) {
|
|
|
17
20
|
var active = _ref.active,
|
|
18
21
|
loading = _ref.loading,
|
|
19
22
|
disabled = _ref.disabled,
|
|
20
|
-
rest = _objectWithoutProperties(_ref,
|
|
23
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
21
24
|
|
|
22
25
|
return /*#__PURE__*/React.createElement("span", rest);
|
|
23
26
|
})(function (_ref2) {
|
|
@@ -173,7 +176,7 @@ var ListItem = function ListItem(_ref12) {
|
|
|
173
176
|
href = _ref12.href,
|
|
174
177
|
onClick = _ref12.onClick,
|
|
175
178
|
LinkWrapper = _ref12.LinkWrapper,
|
|
176
|
-
rest = _objectWithoutProperties(_ref12,
|
|
179
|
+
rest = _objectWithoutProperties(_ref12, _excluded2);
|
|
177
180
|
|
|
178
181
|
var itemProps = getItemProps(onClick, href, LinkWrapper);
|
|
179
182
|
var commonProps = {
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
+
var _excluded = ["placement", "hasChrome", "children", "arrowProps", "tooltipRef", "arrowRef", "color"];
|
|
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.string.split.js";
|
|
8
9
|
import "core-js/modules/es.regexp.exec.js";
|
|
10
|
+
import "core-js/modules/es.string.split.js";
|
|
9
11
|
import "core-js/modules/es.string.starts-with.js";
|
|
10
12
|
import "core-js/modules/es.array.concat.js";
|
|
11
13
|
import "core-js/modules/es.object.keys.js";
|
|
@@ -93,7 +95,7 @@ export var Tooltip = function Tooltip(_ref5) {
|
|
|
93
95
|
tooltipRef = _ref5.tooltipRef,
|
|
94
96
|
arrowRef = _ref5.arrowRef,
|
|
95
97
|
color = _ref5.color,
|
|
96
|
-
props = _objectWithoutProperties(_ref5,
|
|
98
|
+
props = _objectWithoutProperties(_ref5, _excluded);
|
|
97
99
|
|
|
98
100
|
return /*#__PURE__*/React.createElement(Wrapper, _extends({
|
|
99
101
|
hasChrome: hasChrome,
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import "core-js/modules/es.array.map.js";
|
|
2
1
|
import "core-js/modules/es.object.keys.js";
|
|
3
2
|
import "core-js/modules/es.symbol.js";
|
|
4
3
|
import "core-js/modules/es.object.assign.js";
|
|
4
|
+
var _excluded = ["LinkWrapper", "onClick"],
|
|
5
|
+
_excluded2 = ["isGatsby"];
|
|
6
|
+
import "core-js/modules/es.array.map.js";
|
|
5
7
|
|
|
6
8
|
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); }
|
|
7
9
|
|
|
@@ -28,7 +30,7 @@ var List = styled.div({
|
|
|
28
30
|
var Item = function Item(props) {
|
|
29
31
|
var LinkWrapper = props.LinkWrapper,
|
|
30
32
|
onClickFromProps = props.onClick,
|
|
31
|
-
rest = _objectWithoutProperties(props,
|
|
33
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
32
34
|
|
|
33
35
|
var title = rest.title,
|
|
34
36
|
href = rest.href,
|
|
@@ -53,7 +55,7 @@ export var TooltipLinkList = function TooltipLinkList(_ref2) {
|
|
|
53
55
|
LinkWrapper = _ref2.LinkWrapper;
|
|
54
56
|
return /*#__PURE__*/React.createElement(List, null, links.map(function (_ref3) {
|
|
55
57
|
var isGatsby = _ref3.isGatsby,
|
|
56
|
-
p = _objectWithoutProperties(_ref3,
|
|
58
|
+
p = _objectWithoutProperties(_ref3, _excluded2);
|
|
57
59
|
|
|
58
60
|
return /*#__PURE__*/React.createElement(Item, _extends({
|
|
59
61
|
key: p.id,
|
|
@@ -1,3 +1,8 @@
|
|
|
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 = ["title"];
|
|
5
|
+
|
|
1
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); }
|
|
2
7
|
|
|
3
8
|
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; }
|
|
@@ -5,9 +10,6 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
5
10
|
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
11
|
|
|
7
12
|
import "core-js/modules/es.array.map.js";
|
|
8
|
-
import "core-js/modules/es.object.keys.js";
|
|
9
|
-
import "core-js/modules/es.symbol.js";
|
|
10
|
-
import "core-js/modules/es.object.assign.js";
|
|
11
13
|
import React from 'react';
|
|
12
14
|
import { styled } from '@storybook/theming';
|
|
13
15
|
import { Link } from '../typography/link/link';
|
|
@@ -47,7 +49,7 @@ export var TooltipMessage = function TooltipMessage(_ref4) {
|
|
|
47
49
|
links = _ref4.links;
|
|
48
50
|
return /*#__PURE__*/React.createElement(MessageWrapper, null, /*#__PURE__*/React.createElement(Message, null, title && /*#__PURE__*/React.createElement(Title, null, title), desc && /*#__PURE__*/React.createElement(Desc, null, desc)), links && /*#__PURE__*/React.createElement(Links, null, links.map(function (_ref5) {
|
|
49
51
|
var linkTitle = _ref5.title,
|
|
50
|
-
other = _objectWithoutProperties(_ref5,
|
|
52
|
+
other = _objectWithoutProperties(_ref5, _excluded);
|
|
51
53
|
|
|
52
54
|
return /*#__PURE__*/React.createElement(Link, _extends({}, other, {
|
|
53
55
|
key: linkTitle
|