@storybook/components 5.1.6 → 5.1.10

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 (25) hide show
  1. package/dist/syntaxhighlighter/syntaxhighlighter.js +1 -1
  2. package/dist/typings.d.js +1 -0
  3. package/package.json +4 -4
  4. package/src/syntaxhighlighter/__snapshots__/syntaxhighlighter.stories.storyshot +1 -1
  5. package/src/syntaxhighlighter/syntaxhighlighter.tsx +1 -1
  6. package/dist/Badge/__snapshots__/Badge.stories.storyshot +0 -96
  7. package/dist/Button/__snapshots__/Button.stories.storyshot +0 -1028
  8. package/dist/brand/__snapshots__/StorybookIcon.stories.storyshot +0 -36
  9. package/dist/form/__snapshots__/form.stories.storyshot +0 -2756
  10. package/dist/icon/__snapshots__/icon.stories.storyshot +0 -4960
  11. package/dist/spaced/__snapshots__/Spaced.stories.storyshot +0 -249
  12. package/dist/syntaxhighlighter/__snapshots__/syntaxhighlighter.stories.storyshot +0 -3971
  13. package/dist/syntaxhighlighter/formatter.test.js +0 -59
  14. package/dist/tabs/__snapshots__/tabs.stories.storyshot +0 -2029
  15. package/dist/tooltip/__snapshots__/ListItem.stories.storyshot +0 -1212
  16. package/dist/tooltip/__snapshots__/Tooltip.stories.storyshot +0 -269
  17. package/dist/tooltip/__snapshots__/TooltipLinkList.stories.storyshot +0 -326
  18. package/dist/tooltip/__snapshots__/TooltipMessage.stories.storyshot +0 -514
  19. package/dist/tooltip/__snapshots__/TooltipNote.stories.storyshot +0 -54
  20. package/dist/tooltip/__snapshots__/WithTooltip.stories.storyshot +0 -448
  21. package/dist/typings.d.ts +0 -4
  22. package/dist/typography/__snapshots__/typography.stories.storyshot +0 -186
  23. package/dist/typography/link/__snapshots__/link.stories.storyshot +0 -664
  24. package/dist/typography/link/link.test.d.ts +0 -1
  25. package/dist/typography/link/link.test.js +0 -162
@@ -1,59 +0,0 @@
1
- "use strict";
2
-
3
- require("core-js/modules/es.array.slice");
4
-
5
- require("core-js/modules/es.object.define-properties");
6
-
7
- require("core-js/modules/es.object.freeze");
8
-
9
- var _commonTags = require("common-tags");
10
-
11
- var _formatter = require("./formatter");
12
-
13
- function _templateObject() {
14
- var data = _taggedTemplateLiteral(["\n console.log(\"hello\");\n console.log(\"world\");\n "]);
15
-
16
- _templateObject = function _templateObject() {
17
- return data;
18
- };
19
-
20
- return data;
21
- }
22
-
23
- function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
24
-
25
- test('handles empty string', function () {
26
- var input = '';
27
- var result = (0, _formatter.formatter)(input);
28
- expect(result).toBe(input);
29
- });
30
- test('handles single line', function () {
31
- var input = 'console.log("hello world")';
32
- var result = (0, _formatter.formatter)(input);
33
- expect(result).toBe(input);
34
- });
35
- test('does not transform correct code', function () {
36
- var input = (0, _commonTags.stripIndents)(_templateObject());
37
- var result = (0, _formatter.formatter)(input);
38
- expect(result).toBe(input);
39
- });
40
- test('does transform incorrect code', function () {
41
- var input = "\n console.log(\"hello\");\n console.log(\"world\");\n ";
42
- var result = (0, _formatter.formatter)(input);
43
- expect(result).toBe("console.log(\"hello\");\nconsole.log(\"world\");");
44
- });
45
- test('more indentations - skip first line', function () {
46
- var input = "\n test('handles empty string', () => {\n const input = '';\n const result = formatter(input);\n \n expect(result).toBe(input);\n });\n ";
47
- var result = (0, _formatter.formatter)(input);
48
- expect(result).toBe("test('handles empty string', () => {\n const input = '';\n const result = formatter(input);\n\n expect(result).toBe(input);\n});");
49
- });
50
- test('more indentations - code on first line', function () {
51
- var input = "// some comment\n test('handles empty string', () => {\n const input = '';\n const result = formatter(input);\n \n expect(result).toBe(input);\n });\n ";
52
- var result = (0, _formatter.formatter)(input);
53
- expect(result).toBe("// some comment\ntest('handles empty string', () => {\n const input = '';\n const result = formatter(input);\n\n expect(result).toBe(input);\n});");
54
- });
55
- test('removes whitespace in empty line completely', function () {
56
- var input = "\n console.log(\"hello\");\n\n console.log(\"world\");\n ";
57
- var result = (0, _formatter.formatter)(input);
58
- expect(result).toBe("console.log(\"hello\");\n\nconsole.log(\"world\");");
59
- });