@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.
Files changed (245) hide show
  1. package/dist/cjs/ActionBar/ActionBar.js +4 -2
  2. package/dist/cjs/ActionBar/ActionBar.stories.js +1 -1
  3. package/dist/cjs/Button/Button.js +8 -6
  4. package/dist/cjs/Loader/Loader.js +12 -8
  5. package/dist/cjs/Loader/Loader.stories.js +1 -1
  6. package/dist/cjs/ScrollArea/GlobalScrollAreaStyles.js +1 -1
  7. package/dist/cjs/ScrollArea/OverlayScrollbars.js +7 -3
  8. package/dist/cjs/ScrollArea/ScrollArea.js +10 -8
  9. package/dist/cjs/ScrollArea/ScrollArea.stories.js +6 -6
  10. package/dist/cjs/Zoom/Zoom.js +1 -1
  11. package/dist/cjs/Zoom/Zoom.stories.js +9 -7
  12. package/dist/cjs/Zoom/ZoomElement.js +8 -6
  13. package/dist/cjs/Zoom/ZoomIFrame.js +8 -8
  14. package/dist/cjs/addon-panel/addon-panel.js +5 -5
  15. package/dist/cjs/bar/bar.js +16 -10
  16. package/dist/cjs/bar/button.js +6 -4
  17. package/dist/cjs/bar/button.stories.js +1 -1
  18. package/dist/cjs/bar/separator.js +7 -7
  19. package/dist/cjs/blocks/ArgsTable/ArgControl.js +8 -6
  20. package/dist/cjs/blocks/ArgsTable/ArgJsDoc.js +3 -1
  21. package/dist/cjs/blocks/ArgsTable/ArgRow.stories.js +1 -1
  22. package/dist/cjs/blocks/ArgsTable/ArgValue.js +9 -9
  23. package/dist/cjs/blocks/ArgsTable/ArgsTable.js +10 -6
  24. package/dist/cjs/blocks/ArgsTable/ArgsTable.stories.js +6 -6
  25. package/dist/cjs/blocks/ArgsTable/SectionRow.js +8 -6
  26. package/dist/cjs/blocks/ArgsTable/SectionRow.stories.js +1 -1
  27. package/dist/cjs/blocks/ArgsTable/TabbedArgsTable.js +10 -6
  28. package/dist/cjs/blocks/ArgsTable/TabbedArgsTable.stories.js +1 -1
  29. package/dist/cjs/blocks/ArgsTable/index.js +2 -0
  30. package/dist/cjs/blocks/ColorPalette.js +3 -1
  31. package/dist/cjs/blocks/ColorPalette.stories.js +1 -1
  32. package/dist/cjs/blocks/Description.stories.js +1 -1
  33. package/dist/cjs/blocks/DocsPage.js +1 -1
  34. package/dist/cjs/blocks/DocsPage.stories.js +6 -6
  35. package/dist/cjs/blocks/EmptyBlock.stories.js +1 -1
  36. package/dist/cjs/blocks/IFrame.js +13 -11
  37. package/dist/cjs/blocks/IconGallery.js +4 -2
  38. package/dist/cjs/blocks/IconGallery.stories.js +1 -1
  39. package/dist/cjs/blocks/Preview.js +14 -10
  40. package/dist/cjs/blocks/Preview.stories.js +6 -6
  41. package/dist/cjs/blocks/Source.js +6 -4
  42. package/dist/cjs/blocks/Source.stories.js +1 -1
  43. package/dist/cjs/blocks/Story.js +20 -9
  44. package/dist/cjs/blocks/Story.stories.js +9 -7
  45. package/dist/cjs/blocks/Toolbar.js +11 -9
  46. package/dist/cjs/blocks/Typeset.js +3 -1
  47. package/dist/cjs/blocks/Typeset.stories.js +1 -1
  48. package/dist/cjs/blocks/index.js +2 -0
  49. package/dist/cjs/brand/StorybookLogo.js +5 -3
  50. package/dist/cjs/brand/StorybookLogo.stories.js +1 -1
  51. package/dist/cjs/controls/Boolean.js +5 -5
  52. package/dist/cjs/controls/Boolean.stories.js +9 -7
  53. package/dist/cjs/controls/Color.js +13 -11
  54. package/dist/cjs/controls/Color.stories.js +9 -7
  55. package/dist/cjs/controls/Date.js +8 -8
  56. package/dist/cjs/controls/Date.stories.js +9 -7
  57. package/dist/cjs/controls/Files.js +7 -5
  58. package/dist/cjs/controls/Number.js +17 -8
  59. package/dist/cjs/controls/Number.stories.js +9 -7
  60. package/dist/cjs/controls/Object.js +8 -6
  61. package/dist/cjs/controls/Object.stories.js +9 -7
  62. package/dist/cjs/controls/Range.js +7 -7
  63. package/dist/cjs/controls/Range.stories.js +9 -7
  64. package/dist/cjs/controls/Text.js +8 -6
  65. package/dist/cjs/controls/Text.stories.js +9 -7
  66. package/dist/cjs/controls/helpers.js +2 -2
  67. package/dist/cjs/controls/index.js +7 -7
  68. package/dist/cjs/controls/options/Checkbox.js +9 -7
  69. package/dist/cjs/controls/options/Options.js +2 -0
  70. package/dist/cjs/controls/options/Options.stories.js +9 -7
  71. package/dist/cjs/controls/options/Select.js +2 -0
  72. package/dist/cjs/controls/options/helpers.js +7 -5
  73. package/dist/cjs/controls/options/index.js +2 -0
  74. package/dist/cjs/controls/react-editable-json-tree/components/JsonAddValue.js +10 -10
  75. package/dist/cjs/controls/react-editable-json-tree/components/JsonArray.js +13 -11
  76. package/dist/cjs/controls/react-editable-json-tree/components/JsonFunctionValue.js +13 -11
  77. package/dist/cjs/controls/react-editable-json-tree/components/JsonNode.js +8 -8
  78. package/dist/cjs/controls/react-editable-json-tree/components/JsonObject.js +13 -11
  79. package/dist/cjs/controls/react-editable-json-tree/components/JsonValue.js +13 -11
  80. package/dist/cjs/controls/react-editable-json-tree/index.js +21 -21
  81. package/dist/cjs/controls/react-editable-json-tree/utils/objectTypes.js +3 -3
  82. package/dist/cjs/controls/react-editable-json-tree/utils/styles.js +1 -1
  83. package/dist/cjs/controls/types.js +5 -1
  84. package/dist/cjs/form/field/field.js +3 -1
  85. package/dist/cjs/form/form.stories.js +5 -3
  86. package/dist/cjs/form/input/input.js +15 -10
  87. package/dist/cjs/html.js +2 -0
  88. package/dist/cjs/icon/icon.js +3 -1
  89. package/dist/cjs/icon/icon.stories.js +2 -0
  90. package/dist/cjs/icon/icons.js +1 -1
  91. package/dist/cjs/index.js +75 -63
  92. package/dist/cjs/placeholder/placeholder.js +15 -9
  93. package/dist/cjs/placeholder/placeholder.stories.js +6 -6
  94. package/dist/cjs/spaced/Spaced.js +3 -1
  95. package/dist/cjs/syntaxhighlighter/lazy-syntaxhighlighter.js +7 -7
  96. package/dist/cjs/syntaxhighlighter/syntaxhighlighter-types.js +5 -1
  97. package/dist/cjs/syntaxhighlighter/syntaxhighlighter.js +15 -10
  98. package/dist/cjs/syntaxhighlighter/syntaxhighlighter.stories.js +5 -5
  99. package/dist/cjs/tabs/tabs.js +13 -11
  100. package/dist/cjs/tabs/tabs.stories.js +6 -4
  101. package/dist/cjs/tooltip/ListItem.js +7 -4
  102. package/dist/cjs/tooltip/Tooltip.js +5 -3
  103. package/dist/cjs/tooltip/TooltipLinkList.js +12 -9
  104. package/dist/cjs/tooltip/TooltipLinkList.stories.js +5 -5
  105. package/dist/cjs/tooltip/TooltipMessage.js +3 -1
  106. package/dist/cjs/tooltip/TooltipNote.js +3 -1
  107. package/dist/cjs/tooltip/WithTooltip.js +14 -9
  108. package/dist/cjs/tooltip/lazy-WithTooltip.js +7 -7
  109. package/dist/cjs/typings.d.ts +4 -0
  110. package/dist/cjs/typography/DocumentFormatting.js +13 -6
  111. package/dist/cjs/typography/DocumentWrapper.stories.js +1 -1
  112. package/dist/cjs/typography/link/link.js +5 -3
  113. package/dist/cjs/typography/shared.js +1 -1
  114. package/dist/cjs/utils/getStoryHref.js +71 -0
  115. package/dist/esm/ActionBar/ActionBar.js +5 -3
  116. package/dist/esm/Button/Button.js +3 -1
  117. package/dist/esm/Loader/Loader.js +5 -3
  118. package/dist/esm/ScrollArea/OverlayScrollbars.js +6 -4
  119. package/dist/esm/ScrollArea/ScrollArea.js +4 -2
  120. package/dist/esm/Zoom/Zoom.stories.js +3 -2
  121. package/dist/esm/Zoom/ZoomElement.js +3 -2
  122. package/dist/esm/Zoom/ZoomIFrame.js +6 -6
  123. package/dist/esm/bar/bar.js +7 -4
  124. package/dist/esm/bar/button.js +2 -1
  125. package/dist/esm/bar/separator.js +1 -0
  126. package/dist/esm/blocks/ArgsTable/ArgControl.js +3 -2
  127. package/dist/esm/blocks/ArgsTable/ArgJsDoc.js +1 -0
  128. package/dist/esm/blocks/ArgsTable/ArgValue.js +4 -4
  129. package/dist/esm/blocks/ArgsTable/ArgsTable.js +5 -3
  130. package/dist/esm/blocks/ArgsTable/SectionRow.js +3 -2
  131. package/dist/esm/blocks/ArgsTable/TabbedArgsTable.js +17 -14
  132. package/dist/esm/blocks/ColorPalette.js +3 -1
  133. package/dist/esm/blocks/IFrame.js +16 -14
  134. package/dist/esm/blocks/IconGallery.js +3 -1
  135. package/dist/esm/blocks/Preview.js +16 -14
  136. package/dist/esm/blocks/Source.js +2 -1
  137. package/dist/esm/blocks/Story.js +12 -5
  138. package/dist/esm/blocks/Story.stories.js +3 -2
  139. package/dist/esm/blocks/Toolbar.js +8 -6
  140. package/dist/esm/blocks/Typeset.js +5 -3
  141. package/dist/esm/brand/StorybookLogo.js +2 -1
  142. package/dist/esm/controls/Boolean.stories.js +3 -2
  143. package/dist/esm/controls/Color.js +7 -5
  144. package/dist/esm/controls/Color.stories.js +3 -2
  145. package/dist/esm/controls/Date.js +3 -3
  146. package/dist/esm/controls/Date.stories.js +3 -2
  147. package/dist/esm/controls/Files.js +4 -3
  148. package/dist/esm/controls/Number.js +11 -3
  149. package/dist/esm/controls/Number.stories.js +3 -2
  150. package/dist/esm/controls/Object.js +3 -2
  151. package/dist/esm/controls/Object.stories.js +3 -2
  152. package/dist/esm/controls/Range.js +1 -1
  153. package/dist/esm/controls/Range.stories.js +3 -2
  154. package/dist/esm/controls/Text.js +3 -2
  155. package/dist/esm/controls/Text.stories.js +3 -2
  156. package/dist/esm/controls/helpers.js +1 -1
  157. package/dist/esm/controls/index.js +1 -1
  158. package/dist/esm/controls/options/Checkbox.js +4 -3
  159. package/dist/esm/controls/options/Options.js +1 -0
  160. package/dist/esm/controls/options/Options.stories.js +3 -2
  161. package/dist/esm/controls/options/Select.js +1 -0
  162. package/dist/esm/controls/options/helpers.js +4 -3
  163. package/dist/esm/controls/react-editable-json-tree/components/JsonAddValue.js +6 -6
  164. package/dist/esm/controls/react-editable-json-tree/components/JsonArray.js +8 -7
  165. package/dist/esm/controls/react-editable-json-tree/components/JsonFunctionValue.js +8 -7
  166. package/dist/esm/controls/react-editable-json-tree/components/JsonNode.js +5 -5
  167. package/dist/esm/controls/react-editable-json-tree/components/JsonObject.js +8 -7
  168. package/dist/esm/controls/react-editable-json-tree/components/JsonValue.js +8 -7
  169. package/dist/esm/controls/react-editable-json-tree/index.js +6 -6
  170. package/dist/esm/controls/react-editable-json-tree/utils/objectTypes.js +2 -2
  171. package/dist/esm/controls/types.js +1 -0
  172. package/dist/esm/form/field/field.js +5 -3
  173. package/dist/esm/form/form.stories.js +3 -2
  174. package/dist/esm/form/input/input.js +11 -6
  175. package/dist/esm/icon/icon.js +4 -3
  176. package/dist/esm/icon/icon.stories.js +1 -0
  177. package/dist/esm/index.js +4 -1
  178. package/dist/esm/placeholder/placeholder.js +16 -12
  179. package/dist/esm/spaced/Spaced.js +6 -4
  180. package/dist/esm/syntaxhighlighter/lazy-syntaxhighlighter.js +1 -1
  181. package/dist/esm/syntaxhighlighter/syntaxhighlighter-types.js +1 -0
  182. package/dist/esm/syntaxhighlighter/syntaxhighlighter.js +17 -14
  183. package/dist/esm/tabs/tabs.js +7 -6
  184. package/dist/esm/tabs/tabs.stories.js +2 -1
  185. package/dist/esm/tooltip/ListItem.js +7 -4
  186. package/dist/esm/tooltip/Tooltip.js +4 -2
  187. package/dist/esm/tooltip/TooltipLinkList.js +5 -3
  188. package/dist/esm/tooltip/TooltipMessage.js +6 -4
  189. package/dist/esm/tooltip/TooltipNote.js +5 -3
  190. package/dist/esm/tooltip/WithTooltip.js +7 -4
  191. package/dist/esm/tooltip/lazy-WithTooltip.js +1 -1
  192. package/dist/esm/typings.d.ts +4 -0
  193. package/dist/esm/typography/DocumentFormatting.js +12 -7
  194. package/dist/esm/typography/link/link.js +2 -1
  195. package/dist/esm/utils/getStoryHref.js +46 -0
  196. package/dist/modern/ActionBar/ActionBar.js +4 -2
  197. package/dist/modern/Badge/Badge.js +1 -1
  198. package/dist/modern/Button/Button.js +3 -1
  199. package/dist/modern/Loader/Loader.js +4 -2
  200. package/dist/modern/ScrollArea/OverlayScrollbars.js +4 -2
  201. package/dist/modern/ScrollArea/ScrollArea.js +4 -2
  202. package/dist/modern/bar/bar.js +4 -2
  203. package/dist/modern/bar/button.js +4 -2
  204. package/dist/modern/blocks/ArgsTable/TabbedArgsTable.js +4 -2
  205. package/dist/modern/blocks/ColorPalette.js +4 -2
  206. package/dist/modern/blocks/IFrame.js +3 -1
  207. package/dist/modern/blocks/IconGallery.js +4 -2
  208. package/dist/modern/blocks/Preview.js +4 -2
  209. package/dist/modern/blocks/Source.js +3 -1
  210. package/dist/modern/blocks/Story.js +13 -4
  211. package/dist/modern/blocks/Toolbar.js +6 -3
  212. package/dist/modern/blocks/Typeset.js +4 -2
  213. package/dist/modern/brand/StorybookIcon.js +1 -1
  214. package/dist/modern/brand/StorybookLogo.js +4 -2
  215. package/dist/modern/controls/Color.js +4 -2
  216. package/dist/modern/controls/Number.js +7 -0
  217. package/dist/modern/controls/types.js +1 -0
  218. package/dist/modern/form/field/field.js +4 -2
  219. package/dist/modern/form/input/input.js +9 -4
  220. package/dist/modern/icon/icon.js +4 -2
  221. package/dist/modern/index.js +3 -1
  222. package/dist/modern/placeholder/placeholder.js +4 -2
  223. package/dist/modern/spaced/Spaced.js +4 -2
  224. package/dist/modern/syntaxhighlighter/syntaxhighlighter-types.js +1 -0
  225. package/dist/modern/syntaxhighlighter/syntaxhighlighter.js +4 -2
  226. package/dist/modern/tooltip/ListItem.js +7 -4
  227. package/dist/modern/tooltip/Tooltip.js +4 -2
  228. package/dist/modern/tooltip/TooltipLinkList.js +6 -3
  229. package/dist/modern/tooltip/TooltipMessage.js +4 -2
  230. package/dist/modern/tooltip/TooltipNote.js +4 -2
  231. package/dist/modern/tooltip/WithTooltip.js +7 -4
  232. package/dist/modern/typings.d.ts +4 -0
  233. package/dist/modern/typography/DocumentFormatting.js +7 -4
  234. package/dist/modern/typography/link/link.js +4 -2
  235. package/dist/modern/utils/getStoryHref.js +13 -0
  236. package/dist/ts3.4/Zoom/ZoomIFrame.d.ts +1 -1
  237. package/dist/ts3.4/index.d.ts +1 -0
  238. package/dist/ts3.4/utils/getStoryHref.d.ts +1 -0
  239. package/dist/ts3.9/Zoom/ZoomIFrame.d.ts +1 -1
  240. package/dist/ts3.9/index.d.ts +1 -0
  241. package/dist/ts3.9/utils/getStoryHref.d.ts +1 -0
  242. package/package.json +6 -5
  243. package/dist/cjs/typings.d.js +0 -1
  244. package/dist/esm/typings.d.js +0 -0
  245. package/dist/modern/typings.d.js +0 -0
@@ -1,20 +1,21 @@
1
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
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 in Object(iter)) return Array.from(iter); }
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"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
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"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
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, ["label", "children"]);
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 in Object(iter)) return Array.from(iter); }
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, ["size", "valid", "align"]);
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, ["size", "valid", "align"]);
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, ["size", "valid", "align"]);
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, ["size", "valid", "align"]);
206
+ props = _objectWithoutProperties(_ref9, _excluded4);
202
207
 
203
208
  return /*#__PURE__*/React.createElement(StyledButton, _extends({}, props, {
204
209
  ref: ref
@@ -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, ["icon", "symbol"]);
24
+ props = _objectWithoutProperties(_ref, _excluded);
24
25
 
25
26
  return /*#__PURE__*/React.createElement(Svg, _extends({
26
27
  viewBox: "0 0 1024 1024"
@@ -1,3 +1,4 @@
1
+ import "core-js/modules/es.array.sort.js";
1
2
  import "core-js/modules/es.object.keys.js";
2
3
  import "core-js/modules/es.array.map.js";
3
4
  import React from 'react';
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) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_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
+ 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.symbol.iterator.js";
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, ["children"]);
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, ["col", "row", "outer", "children"]);
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) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_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; }
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, ["children", "language", "copyable", "bordered", "padded", "format", "className", "showLineNumbers"]);
206
+ rest = _objectWithoutProperties(_ref10, _excluded);
204
207
 
205
208
  if (typeof children !== 'string' || !children.trim()) {
206
209
  return null;
@@ -1,18 +1,18 @@
1
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
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) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_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; }
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, ["active", "loading", "disabled"]);
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, ["loading", "left", "title", "center", "right", "active", "disabled", "href", "onClick", "LinkWrapper"]);
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, ["placement", "hasChrome", "children", "arrowProps", "tooltipRef", "arrowRef", "color"]);
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, ["LinkWrapper", "onClick"]);
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, ["isGatsby"]);
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, ["title"]);
52
+ other = _objectWithoutProperties(_ref5, _excluded);
51
53
 
52
54
  return /*#__PURE__*/React.createElement(Link, _extends({}, other, {
53
55
  key: linkTitle