From 0f19312b8e8dc775638e0247b15c713c6cde2dc7 Mon Sep 17 00:00:00 2001 From: ianwremmel <1182361+ianwremmel@users.noreply.github.com> Date: Mon, 1 Aug 2022 21:43:18 -0700 Subject: [PATCH] test: restory storyshots they were broken because addon-storyshots has several out of data depenencies. I was able to fix things by adding explicit overrides --- package-lock.json | 1049 +- package.json | 5 + .../__snapshots__/alert.stories.storyshot | 245 + .../card/__snapshots__/card.stories.storyshot | 329 + .../code/__snapshots__/code.stories.storyshot | 53 + .../conditional-description.stories.storyshot | 77 + .../description-list.stories.storyshot | 131 + .../description.stories.storyshot | 148 + .../link/__snapshots__/link.stories.storyshot | 51 + .../__snapshots__/heading.stories.storyshot | 66 + .../section-heading.stories.storyshot | 111 + .../__snapshots__/section.stories.storyshot | 113 + .../offset-pager.stories.storyshot | 3356 +++++++ .../__snapshots__/pager.stories.storyshot | 442 + .../relay-pager.stories.storyshot | 142 + .../simple-pager.stories.storyshot | 3293 +++++++ .../any-renderer.stories.storyshot | 199 + .../boolean-renderer.stories.storyshot | 41 + .../date-renderer.stories.storyshot | 94 + .../maybe-renderer.stories.storyshot | 29 + .../null-renderer.stories.storyshot | 11 + .../object-renderer.stories.storyshot | 37 + .../simple-error-boundary.stories.storyshot | 37 + .../__snapshots__/spinner.stories.storyshot | 14 + .../fancy-stringify.stories.storyshot | 118 + .../__snapshots__/stringify.stories.storyshot | 37 + .../__snapshots__/table.stories.storyshot | 2979 ++++++ .../array-table.stories.storyshot | 7779 +++++++++++++++ .../connection-table.stories.storyshot | 8411 +++++++++++++++++ .../object-description.stories.storyshot | 219 + .../array-template.stories.storyshot | 960 ++ .../connection-template.stories.storyshot | 676 ++ .../object-template.stories.storyshot | 283 + src/storyshots.spec.ts | 7 + 34 files changed, 31475 insertions(+), 67 deletions(-) create mode 100644 src/src/alert/__snapshots__/alert.stories.storyshot create mode 100644 src/src/card/__snapshots__/card.stories.storyshot create mode 100644 src/src/code/__snapshots__/code.stories.storyshot create mode 100644 src/src/description/__snapshots__/conditional-description.stories.storyshot create mode 100644 src/src/description/__snapshots__/description-list.stories.storyshot create mode 100644 src/src/description/__snapshots__/description.stories.storyshot create mode 100644 src/src/link/__snapshots__/link.stories.storyshot create mode 100644 src/src/outline/__snapshots__/heading.stories.storyshot create mode 100644 src/src/outline/__snapshots__/section-heading.stories.storyshot create mode 100644 src/src/outline/__snapshots__/section.stories.storyshot create mode 100644 src/src/pager/__snapshots__/offset-pager.stories.storyshot create mode 100644 src/src/pager/__snapshots__/pager.stories.storyshot create mode 100644 src/src/pager/__snapshots__/relay-pager.stories.storyshot create mode 100644 src/src/pager/__snapshots__/simple-pager.stories.storyshot create mode 100644 src/src/renderers/any-renderer/__snapshots__/any-renderer.stories.storyshot create mode 100644 src/src/renderers/boolean-renderer/__snapshots__/boolean-renderer.stories.storyshot create mode 100644 src/src/renderers/date-renderer/__snapshots__/date-renderer.stories.storyshot create mode 100644 src/src/renderers/maybe-renderer/__snapshots__/maybe-renderer.stories.storyshot create mode 100644 src/src/renderers/null-renderer/__snapshots__/null-renderer.stories.storyshot create mode 100644 src/src/renderers/object-renderer/__snapshots__/object-renderer.stories.storyshot create mode 100644 src/src/simple-error-boundary/__snapshots__/simple-error-boundary.stories.storyshot create mode 100644 src/src/spinner/__snapshots__/spinner.stories.storyshot create mode 100644 src/src/stringify/__snapshots__/fancy-stringify.stories.storyshot create mode 100644 src/src/stringify/__snapshots__/stringify.stories.storyshot create mode 100644 src/src/table/__snapshots__/table.stories.storyshot create mode 100644 src/src/template-specializations/array-table/__snapshots__/array-table.stories.storyshot create mode 100644 src/src/template-specializations/connection-table/__snapshots__/connection-table.stories.storyshot create mode 100644 src/src/template-specializations/object-description/__snapshots__/object-description.stories.storyshot create mode 100644 src/src/templates/array-template/__snapshots__/array-template.stories.storyshot create mode 100644 src/src/templates/connection-template/__snapshots__/connection-template.stories.storyshot create mode 100644 src/src/templates/object-template/__snapshots__/object-template.stories.storyshot create mode 100644 src/storyshots.spec.ts diff --git a/package-lock.json b/package-lock.json index 48883354..268ead53 100644 --- a/package-lock.json +++ b/package-lock.json @@ -31,6 +31,7 @@ "@storybook/addon-actions": "~6.5.9", "@storybook/addon-essentials": "~6.5.9", "@storybook/addon-links": "~6.5.9", + "@storybook/addon-storyshots": "~6.5.9", "@storybook/builder-webpack5": "~6.5", "@storybook/manager-webpack5": "~6.5", "@storybook/preset-scss": "~1.0.3", @@ -6078,6 +6079,114 @@ } } }, + "node_modules/@storybook/addon-storyshots": { + "version": "6.5.9", + "resolved": "https://registry.npmjs.org/@storybook/addon-storyshots/-/addon-storyshots-6.5.9.tgz", + "integrity": "sha512-uJqHCTj1vLYOPwwR68QOb3iwJdD3mAhRuFxZvy7sOOuf2ZSo68hvYudrDChtxI+Tgz2VVvEOZxTrJgYVo/lfmg==", + "dev": true, + "dependencies": { + "@jest/transform": "^26.6.2", + "@storybook/addons": "6.5.9", + "@storybook/babel-plugin-require-context-hook": "1.0.1", + "@storybook/client-api": "6.5.9", + "@storybook/core": "6.5.9", + "@storybook/core-client": "6.5.9", + "@storybook/core-common": "6.5.9", + "@storybook/csf": "0.0.2--canary.4566f4d.1", + "@types/glob": "^7.1.3", + "@types/jest": "^26.0.16", + "@types/jest-specific-snapshot": "^0.5.3", + "core-js": "^3.8.2", + "glob": "^7.1.6", + "global": "^4.4.0", + "jest-specific-snapshot": "^4.0.0", + "preact-render-to-string": "^5.1.19", + "pretty-format": "^26.6.2", + "react-test-renderer": "^16.8.0 || ^17.0.0", + "read-pkg-up": "^7.0.1", + "regenerator-runtime": "^0.13.7", + "ts-dedent": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/storybook" + }, + "peerDependencies": { + "@angular/core": ">=6.0.0", + "@angular/platform-browser-dynamic": ">=6.0.0", + "@storybook/angular": "*", + "@storybook/react": "*", + "@storybook/vue": "*", + "@storybook/vue3": "*", + "jest": "*", + "jest-preset-angular": "*", + "jest-vue-preprocessor": "*", + "preact": "^10.5.13", + "react": "^16.8.0 || ^17.0.0 || ^18.0.0", + "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0", + "rxjs": "*", + "svelte": "*", + "vue": "*", + "vue-jest": "*" + }, + "peerDependenciesMeta": { + "@angular/core": { + "optional": true + }, + "@angular/platform-browser-dynamic": { + "optional": true + }, + "@storybook/angular": { + "optional": true + }, + "@storybook/react": { + "optional": true + }, + "@storybook/vue": { + "optional": true + }, + "@storybook/vue3": { + "optional": true + }, + "jest-preset-angular": { + "optional": true + }, + "jest-vue-preprocessor": { + "optional": true + }, + "preact": { + "optional": true + }, + "react": { + "optional": true + }, + "react-dom": { + "optional": true + }, + "rxjs": { + "optional": true + }, + "svelte": { + "optional": true + }, + "vue": { + "optional": true + }, + "vue-jest": { + "optional": true + } + } + }, + "node_modules/@storybook/addon-storyshots/node_modules/@types/jest": { + "version": "26.0.24", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-26.0.24.tgz", + "integrity": "sha512-E/X5Vib8BWqZNRlDxj9vYXhsDwPYbPINqKF9BsnSoon4RQ0D9moEuLD8txgyypFLH7J4+Lho9Nr/c8H0Fi+17w==", + "dev": true, + "dependencies": { + "jest-diff": "^26.0.0", + "pretty-format": "^26.0.0" + } + }, "node_modules/@storybook/addon-toolbars": { "version": "6.5.9", "resolved": "https://registry.npmjs.org/@storybook/addon-toolbars/-/addon-toolbars-6.5.9.tgz", @@ -6204,6 +6313,12 @@ "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0" } }, + "node_modules/@storybook/babel-plugin-require-context-hook": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@storybook/babel-plugin-require-context-hook/-/babel-plugin-require-context-hook-1.0.1.tgz", + "integrity": "sha512-WM4vjgSVi8epvGiYfru7BtC3f0tGwNs7QK3Uc4xQn4t5hHQvISnCqbNrHdDYmNW56Do+bBztE8SwP6NGUvd7ww==", + "dev": true + }, "node_modules/@storybook/builder-webpack4": { "version": "6.5.9", "resolved": "https://registry.npmjs.org/@storybook/builder-webpack4/-/builder-webpack4-6.5.9.tgz", @@ -10741,27 +10856,6 @@ "node": ">=8" } }, - "node_modules/@storybook/react/node_modules/react-element-to-jsx-string": { - "version": "14.3.4", - "resolved": "https://registry.npmjs.org/react-element-to-jsx-string/-/react-element-to-jsx-string-14.3.4.tgz", - "integrity": "sha512-t4ZwvV6vwNxzujDQ+37bspnLwA4JlgUPWhLjBJWsNIDceAf6ZKUTCjdm08cN6WeZ5pTMKiCJkmAYnpmR4Bm+dg==", - "dev": true, - "dependencies": { - "@base2/pretty-print-object": "1.0.1", - "is-plain-object": "5.0.0", - "react-is": "17.0.2" - }, - "peerDependencies": { - "react": "^0.14.8 || ^15.0.1 || ^16.0.0 || ^17.0.1", - "react-dom": "^0.14.8 || ^15.0.1 || ^16.0.0 || ^17.0.1" - } - }, - "node_modules/@storybook/react/node_modules/react-is": { - "version": "17.0.2", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", - "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==", - "dev": true - }, "node_modules/@storybook/router": { "version": "6.5.9", "resolved": "https://registry.npmjs.org/@storybook/router/-/router-6.5.9.tgz", @@ -11477,6 +11571,15 @@ "pretty-format": "^28.0.0" } }, + "node_modules/@types/jest-specific-snapshot": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/@types/jest-specific-snapshot/-/jest-specific-snapshot-0.5.6.tgz", + "integrity": "sha512-AQdUbEyTwO6JR2yZK7PTXDzK32AlkviDZJZEukZnrZtBjITYBtExFh59HTNTZeFSs+k1b1bqCHmWUwj3VHeh/A==", + "dev": true, + "dependencies": { + "@types/jest": "*" + } + }, "node_modules/@types/jest/node_modules/ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", @@ -16886,6 +16989,15 @@ "node": ">=0.3.1" } }, + "node_modules/diff-sequences": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-26.6.2.tgz", + "integrity": "sha512-Mv/TDa3nZ9sbc5soK+OoA74BsS3mL37yixCvUAQkiuA4Wz6YtwP/K47n2rv2ovzHZvoiQeA5FTQOschKkEwB0Q==", + "dev": true, + "engines": { + "node": ">= 10.14.2" + } + }, "node_modules/diffie-hellman": { "version": "5.0.3", "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz", @@ -18514,6 +18626,38 @@ "node": ">=0.10.0" } }, + "node_modules/expect": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/expect/-/expect-26.6.2.tgz", + "integrity": "sha512-9/hlOBkQl2l/PLHJx6JjoDF6xPKcJEsUlWKb23rKE7KzeDqUZKXKNMW27KIue5JMdBV9HgmoJPcc8HtO85t9IA==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "ansi-styles": "^4.0.0", + "jest-get-type": "^26.3.0", + "jest-matcher-utils": "^26.6.2", + "jest-message-util": "^26.6.2", + "jest-regex-util": "^26.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/expect/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, "node_modules/express": { "version": "4.17.1", "resolved": "https://registry.npmjs.org/express/-/express-4.17.1.tgz", @@ -22511,6 +22655,73 @@ "node": ">=8" } }, + "node_modules/jest-diff": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-26.6.2.tgz", + "integrity": "sha512-6m+9Z3Gv9wN0WFVasqjCL/06+EFCMTqDEUl/b87HYK2rAPTyfz4ZIuSlPhY51PIQRWx5TaxeF1qmXKe9gfN3sA==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^26.6.2", + "jest-get-type": "^26.3.0", + "pretty-format": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-diff/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-diff/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-diff/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-diff/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/jest-docblock": { "version": "28.1.1", "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-28.1.1.tgz", @@ -22920,6 +23131,15 @@ "node": ">=8" } }, + "node_modules/jest-get-type": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-26.3.0.tgz", + "integrity": "sha512-TpfaviN1R2pQWkIihlfEanwOXK0zcxrKEE4MlU6Tn7keoXdN6/3gK/xl0yEh8DOunn5pOVGKf8hB4R9gVh04ig==", + "dev": true, + "engines": { + "node": ">= 10.14.2" + } + }, "node_modules/jest-haste-map": { "version": "26.6.2", "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-26.6.2.tgz", @@ -23030,6 +23250,154 @@ "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", "dev": true }, + "node_modules/jest-matcher-utils": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-26.6.2.tgz", + "integrity": "sha512-llnc8vQgYcNqDrqRDXWwMr9i7rS5XFiCwvh6DTP7Jqa2mqpcCBBlpCbn+trkG0KNhPu/h8rzyBkriOtBstvWhw==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^26.6.2", + "jest-get-type": "^26.3.0", + "pretty-format": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-matcher-utils/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-matcher-utils/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-matcher-utils/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-matcher-utils/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-message-util": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-26.6.2.tgz", + "integrity": "sha512-rGiLePzQ3AzwUshu2+Rn+UMFk0pHN58sOG+IaJbk5Jxuqo3NYO1U2/MIR4S1sKgsoYSXSzdtSa0TgrmtUwEbmA==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.0.0", + "@jest/types": "^26.6.2", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.4", + "micromatch": "^4.0.2", + "pretty-format": "^26.6.2", + "slash": "^3.0.0", + "stack-utils": "^2.0.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-message-util/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-message-util/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-message-util/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-message-util/node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-message-util/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/jest-mock": { "version": "28.1.3", "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-28.1.3.tgz", @@ -23152,8 +23520,6 @@ "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-26.6.2.tgz", "integrity": "sha512-sOxsZOq25mT1wRsfHcbtkInS+Ek7Q8jCHUB0ZUTP0tc/c41QHriU/NunqMfCUWsL4H3MHpvQD4QR9kSYhS7UvQ==", "dev": true, - "optional": true, - "peer": true, "dependencies": { "@jest/types": "^26.6.2", "chalk": "^4.0.0", @@ -23577,8 +23943,6 @@ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, - "optional": true, - "peer": true, "dependencies": { "color-convert": "^2.0.1" }, @@ -23594,8 +23958,6 @@ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz", "integrity": "sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==", "dev": true, - "optional": true, - "peer": true, "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -23612,8 +23974,6 @@ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, - "optional": true, - "peer": true, "engines": { "node": ">=8" } @@ -23623,8 +23983,6 @@ "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", "dev": true, - "optional": true, - "peer": true, "engines": { "node": ">=8" } @@ -23634,8 +23992,6 @@ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, - "optional": true, - "peer": true, "dependencies": { "has-flag": "^4.0.0" }, @@ -24449,6 +24805,112 @@ "node": ">= 10.14.2" } }, + "node_modules/jest-snapshot": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-26.6.2.tgz", + "integrity": "sha512-OLhxz05EzUtsAmOMzuupt1lHYXCNib0ECyuZ/PZOx9TrZcC8vL0x+DUG3TL+GLX3yHG45e6YGjIm0XwDc3q3og==", + "dev": true, + "dependencies": { + "@babel/types": "^7.0.0", + "@jest/types": "^26.6.2", + "@types/babel__traverse": "^7.0.4", + "@types/prettier": "^2.0.0", + "chalk": "^4.0.0", + "expect": "^26.6.2", + "graceful-fs": "^4.2.4", + "jest-diff": "^26.6.2", + "jest-get-type": "^26.3.0", + "jest-haste-map": "^26.6.2", + "jest-matcher-utils": "^26.6.2", + "jest-message-util": "^26.6.2", + "jest-resolve": "^26.6.2", + "natural-compare": "^1.4.0", + "pretty-format": "^26.6.2", + "semver": "^7.3.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "node_modules/jest-snapshot/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-snapshot/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-snapshot/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-snapshot/node_modules/semver": { + "version": "7.3.7", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", + "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-snapshot/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-specific-snapshot": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jest-specific-snapshot/-/jest-specific-snapshot-4.0.0.tgz", + "integrity": "sha512-YdW5P/MVwOizWR0MJwURxdrjdXvdG2MMpXKVGr7dZ2YrBmE6E6Ab74UL3DOYmGmzaCnNAW1CL02pY5MTHE3ulQ==", + "dev": true, + "dependencies": { + "jest-snapshot": "^26.3.0" + }, + "peerDependencies": { + "jest": ">= 26.0.0" + } + }, "node_modules/jest-util": { "version": "26.6.2", "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-26.6.2.tgz", @@ -32082,6 +32544,35 @@ "node": ">=0.10.0" } }, + "node_modules/preact": { + "version": "10.10.0", + "resolved": "https://registry.npmjs.org/preact/-/preact-10.10.0.tgz", + "integrity": "sha512-fszkg1iJJjq68I4lI8ZsmBiaoQiQHbxf1lNq+72EmC/mZOsFF5zn3k1yv9QGoFgIXzgsdSKtYymLJsrJPoamjQ==", + "dev": true, + "peer": true, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/preact" + } + }, + "node_modules/preact-render-to-string": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/preact-render-to-string/-/preact-render-to-string-5.2.1.tgz", + "integrity": "sha512-Wp3ner1aIVBpKg02C4AoLdBiw4kNaiFSYHr4wUF+fR7FWKAQzNri+iPfPp31sEhAtBfWoJrSxiEFzd5wp5zCgQ==", + "dev": true, + "dependencies": { + "pretty-format": "^3.8.0" + }, + "peerDependencies": { + "preact": ">=10" + } + }, + "node_modules/preact-render-to-string/node_modules/pretty-format": { + "version": "3.8.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-3.8.0.tgz", + "integrity": "sha512-WuxUnVtlWL1OfZFQFuqvnvs6MiAGk9UNsBostyBOB0Is9wb5uRESevA6rnl/rkksXaGX3GzZhPup5d6Vp1nFew==", + "dev": true + }, "node_modules/prelude-ls": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", @@ -32128,6 +32619,42 @@ "renderkid": "^2.0.4" } }, + "node_modules/pretty-format": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz", + "integrity": "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^17.0.1" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/pretty-format/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/pretty-format/node_modules/react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==", + "dev": true + }, "node_modules/pretty-hrtime": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/pretty-hrtime/-/pretty-hrtime-1.0.3.tgz", @@ -32648,6 +33175,27 @@ "react": "^18.2.0" } }, + "node_modules/react-element-to-jsx-string": { + "version": "15.0.0", + "resolved": "https://registry.npmjs.org/react-element-to-jsx-string/-/react-element-to-jsx-string-15.0.0.tgz", + "integrity": "sha512-UDg4lXB6BzlobN60P8fHWVPX3Kyw8ORrTeBtClmIlGdkOOE+GYQSFvmEU5iLLpwp/6v42DINwNcwOhOLfQ//FQ==", + "dev": true, + "dependencies": { + "@base2/pretty-print-object": "1.0.1", + "is-plain-object": "5.0.0", + "react-is": "18.1.0" + }, + "peerDependencies": { + "react": "^0.14.8 || ^15.0.1 || ^16.0.0 || ^17.0.1 || ^18.0.0", + "react-dom": "^0.14.8 || ^15.0.1 || ^16.0.0 || ^17.0.1 || ^18.0.0" + } + }, + "node_modules/react-element-to-jsx-string/node_modules/react-is": { + "version": "18.1.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.1.0.tgz", + "integrity": "sha512-Fl7FuabXsJnV5Q1qIOQwx/sagGF18kogb4gpfcG4gjLBWO0WDiiz1ko/ExayuxE7InyQkBLkxRFG5oxY6Uu3Kg==", + "dev": true + }, "node_modules/react-is": { "version": "16.13.1", "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", @@ -42387,6 +42935,47 @@ "ts-dedent": "^2.0.0" } }, + "@storybook/addon-storyshots": { + "version": "6.5.9", + "resolved": "https://registry.npmjs.org/@storybook/addon-storyshots/-/addon-storyshots-6.5.9.tgz", + "integrity": "sha512-uJqHCTj1vLYOPwwR68QOb3iwJdD3mAhRuFxZvy7sOOuf2ZSo68hvYudrDChtxI+Tgz2VVvEOZxTrJgYVo/lfmg==", + "dev": true, + "requires": { + "@jest/transform": "^26.6.2", + "@storybook/addons": "6.5.9", + "@storybook/babel-plugin-require-context-hook": "1.0.1", + "@storybook/client-api": "6.5.9", + "@storybook/core": "6.5.9", + "@storybook/core-client": "6.5.9", + "@storybook/core-common": "6.5.9", + "@storybook/csf": "0.0.2--canary.4566f4d.1", + "@types/glob": "^7.1.3", + "@types/jest": "^26.0.16", + "@types/jest-specific-snapshot": "^0.5.3", + "core-js": "^3.8.2", + "glob": "^7.1.6", + "global": "^4.4.0", + "jest-specific-snapshot": "^4.0.0", + "preact-render-to-string": "^5.1.19", + "pretty-format": "^26.6.2", + "react-test-renderer": "^18.2.0", + "read-pkg-up": "^7.0.1", + "regenerator-runtime": "^0.13.7", + "ts-dedent": "^2.0.0" + }, + "dependencies": { + "@types/jest": { + "version": "26.0.24", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-26.0.24.tgz", + "integrity": "sha512-E/X5Vib8BWqZNRlDxj9vYXhsDwPYbPINqKF9BsnSoon4RQ0D9moEuLD8txgyypFLH7J4+Lho9Nr/c8H0Fi+17w==", + "dev": true, + "requires": { + "jest-diff": "^26.0.0", + "pretty-format": "^26.0.0" + } + } + } + }, "@storybook/addon-toolbars": { "version": "6.5.9", "resolved": "https://registry.npmjs.org/@storybook/addon-toolbars/-/addon-toolbars-6.5.9.tgz", @@ -42465,6 +43054,12 @@ "util-deprecate": "^1.0.2" } }, + "@storybook/babel-plugin-require-context-hook": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@storybook/babel-plugin-require-context-hook/-/babel-plugin-require-context-hook-1.0.1.tgz", + "integrity": "sha512-WM4vjgSVi8epvGiYfru7BtC3f0tGwNs7QK3Uc4xQn4t5hHQvISnCqbNrHdDYmNW56Do+bBztE8SwP6NGUvd7ww==", + "dev": true + }, "@storybook/builder-webpack4": { "version": "6.5.9", "resolved": "https://registry.npmjs.org/@storybook/builder-webpack4/-/builder-webpack4-6.5.9.tgz", @@ -45908,32 +46503,13 @@ "html-tags": "^3.1.0", "lodash": "^4.17.21", "prop-types": "^15.7.2", - "react-element-to-jsx-string": "^14.3.4", + "react-element-to-jsx-string": "^15", "react-refresh": "^0.11.0", "read-pkg-up": "^7.0.1", "regenerator-runtime": "^0.13.7", "ts-dedent": "^2.0.0", "util-deprecate": "^1.0.2", "webpack": ">=4.43.0 <6.0.0" - }, - "dependencies": { - "react-element-to-jsx-string": { - "version": "14.3.4", - "resolved": "https://registry.npmjs.org/react-element-to-jsx-string/-/react-element-to-jsx-string-14.3.4.tgz", - "integrity": "sha512-t4ZwvV6vwNxzujDQ+37bspnLwA4JlgUPWhLjBJWsNIDceAf6ZKUTCjdm08cN6WeZ5pTMKiCJkmAYnpmR4Bm+dg==", - "dev": true, - "requires": { - "@base2/pretty-print-object": "1.0.1", - "is-plain-object": "5.0.0", - "react-is": "17.0.2" - } - }, - "react-is": { - "version": "17.0.2", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", - "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==", - "dev": true - } } }, "@storybook/react-docgen-typescript-plugin": { @@ -46688,6 +47264,15 @@ } } }, + "@types/jest-specific-snapshot": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/@types/jest-specific-snapshot/-/jest-specific-snapshot-0.5.6.tgz", + "integrity": "sha512-AQdUbEyTwO6JR2yZK7PTXDzK32AlkviDZJZEukZnrZtBjITYBtExFh59HTNTZeFSs+k1b1bqCHmWUwj3VHeh/A==", + "dev": true, + "requires": { + "@types/jest": "*" + } + }, "@types/jsdom": { "version": "16.2.15", "resolved": "https://registry.npmjs.org/@types/jsdom/-/jsdom-16.2.15.tgz", @@ -50882,6 +51467,12 @@ "optional": true, "peer": true }, + "diff-sequences": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-26.6.2.tgz", + "integrity": "sha512-Mv/TDa3nZ9sbc5soK+OoA74BsS3mL37yixCvUAQkiuA4Wz6YtwP/K47n2rv2ovzHZvoiQeA5FTQOschKkEwB0Q==", + "dev": true + }, "diffie-hellman": { "version": "5.0.3", "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz", @@ -52157,6 +52748,31 @@ } } }, + "expect": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/expect/-/expect-26.6.2.tgz", + "integrity": "sha512-9/hlOBkQl2l/PLHJx6JjoDF6xPKcJEsUlWKb23rKE7KzeDqUZKXKNMW27KIue5JMdBV9HgmoJPcc8HtO85t9IA==", + "dev": true, + "requires": { + "@jest/types": "^26.6.2", + "ansi-styles": "^4.0.0", + "jest-get-type": "^26.3.0", + "jest-matcher-utils": "^26.6.2", + "jest-message-util": "^26.6.2", + "jest-regex-util": "^26.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + } + } + }, "express": { "version": "4.17.1", "resolved": "https://registry.npmjs.org/express/-/express-4.17.1.tgz", @@ -55235,6 +55851,54 @@ } } }, + "jest-diff": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-26.6.2.tgz", + "integrity": "sha512-6m+9Z3Gv9wN0WFVasqjCL/06+EFCMTqDEUl/b87HYK2rAPTyfz4ZIuSlPhY51PIQRWx5TaxeF1qmXKe9gfN3sA==", + "dev": true, + "requires": { + "chalk": "^4.0.0", + "diff-sequences": "^26.6.2", + "jest-get-type": "^26.3.0", + "pretty-format": "^26.6.2" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, "jest-docblock": { "version": "28.1.1", "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-28.1.1.tgz", @@ -55556,6 +56220,12 @@ } } }, + "jest-get-type": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-26.3.0.tgz", + "integrity": "sha512-TpfaviN1R2pQWkIihlfEanwOXK0zcxrKEE4MlU6Tn7keoXdN6/3gK/xl0yEh8DOunn5pOVGKf8hB4R9gVh04ig==", + "dev": true + }, "jest-haste-map": { "version": "26.6.2", "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-26.6.2.tgz", @@ -55644,6 +56314,113 @@ } } }, + "jest-matcher-utils": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-26.6.2.tgz", + "integrity": "sha512-llnc8vQgYcNqDrqRDXWwMr9i7rS5XFiCwvh6DTP7Jqa2mqpcCBBlpCbn+trkG0KNhPu/h8rzyBkriOtBstvWhw==", + "dev": true, + "requires": { + "chalk": "^4.0.0", + "jest-diff": "^26.6.2", + "jest-get-type": "^26.3.0", + "pretty-format": "^26.6.2" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "jest-message-util": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-26.6.2.tgz", + "integrity": "sha512-rGiLePzQ3AzwUshu2+Rn+UMFk0pHN58sOG+IaJbk5Jxuqo3NYO1U2/MIR4S1sKgsoYSXSzdtSa0TgrmtUwEbmA==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "@jest/types": "^26.6.2", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.4", + "micromatch": "^4.0.2", + "pretty-format": "^26.6.2", + "slash": "^3.0.0", + "stack-utils": "^2.0.2" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, "jest-mock": { "version": "28.1.3", "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-28.1.3.tgz", @@ -55731,8 +56508,6 @@ "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-26.6.2.tgz", "integrity": "sha512-sOxsZOq25mT1wRsfHcbtkInS+Ek7Q8jCHUB0ZUTP0tc/c41QHriU/NunqMfCUWsL4H3MHpvQD4QR9kSYhS7UvQ==", "dev": true, - "optional": true, - "peer": true, "requires": { "@jest/types": "^26.6.2", "chalk": "^4.0.0", @@ -55749,8 +56524,6 @@ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, - "optional": true, - "peer": true, "requires": { "color-convert": "^2.0.1" } @@ -55760,8 +56533,6 @@ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz", "integrity": "sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==", "dev": true, - "optional": true, - "peer": true, "requires": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -55771,25 +56542,19 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "optional": true, - "peer": true + "dev": true }, "slash": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true, - "optional": true, - "peer": true + "dev": true }, "supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, - "optional": true, - "peer": true, "requires": { "has-flag": "^4.0.0" } @@ -56760,6 +57525,84 @@ "graceful-fs": "^4.2.4" } }, + "jest-snapshot": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-26.6.2.tgz", + "integrity": "sha512-OLhxz05EzUtsAmOMzuupt1lHYXCNib0ECyuZ/PZOx9TrZcC8vL0x+DUG3TL+GLX3yHG45e6YGjIm0XwDc3q3og==", + "dev": true, + "requires": { + "@babel/types": "^7.0.0", + "@jest/types": "^26.6.2", + "@types/babel__traverse": "^7.0.4", + "@types/prettier": "^2.0.0", + "chalk": "^4.0.0", + "expect": "^26.6.2", + "graceful-fs": "^4.2.4", + "jest-diff": "^26.6.2", + "jest-get-type": "^26.3.0", + "jest-haste-map": "^26.6.2", + "jest-matcher-utils": "^26.6.2", + "jest-message-util": "^26.6.2", + "jest-resolve": "^26.6.2", + "natural-compare": "^1.4.0", + "pretty-format": "^26.6.2", + "semver": "^7.3.2" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "semver": { + "version": "7.3.7", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", + "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "jest-specific-snapshot": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jest-specific-snapshot/-/jest-specific-snapshot-4.0.0.tgz", + "integrity": "sha512-YdW5P/MVwOizWR0MJwURxdrjdXvdG2MMpXKVGr7dZ2YrBmE6E6Ab74UL3DOYmGmzaCnNAW1CL02pY5MTHE3ulQ==", + "dev": true, + "requires": { + "jest-snapshot": "^26.3.0" + } + }, "jest-util": { "version": "26.6.2", "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-26.6.2.tgz", @@ -62269,6 +63112,30 @@ "integrity": "sha512-97DXOFbQJhk71ne5/Mt6cOu6yxsSfM0QGQyl0L25Gca4yGWEGJaig7l7gbCX623VqTBNGLRLaVUCnNkcedlRSQ==", "dev": true }, + "preact": { + "version": "10.10.0", + "resolved": "https://registry.npmjs.org/preact/-/preact-10.10.0.tgz", + "integrity": "sha512-fszkg1iJJjq68I4lI8ZsmBiaoQiQHbxf1lNq+72EmC/mZOsFF5zn3k1yv9QGoFgIXzgsdSKtYymLJsrJPoamjQ==", + "dev": true, + "peer": true + }, + "preact-render-to-string": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/preact-render-to-string/-/preact-render-to-string-5.2.1.tgz", + "integrity": "sha512-Wp3ner1aIVBpKg02C4AoLdBiw4kNaiFSYHr4wUF+fR7FWKAQzNri+iPfPp31sEhAtBfWoJrSxiEFzd5wp5zCgQ==", + "dev": true, + "requires": { + "pretty-format": "^3.8.0" + }, + "dependencies": { + "pretty-format": { + "version": "3.8.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-3.8.0.tgz", + "integrity": "sha512-WuxUnVtlWL1OfZFQFuqvnvs6MiAGk9UNsBostyBOB0Is9wb5uRESevA6rnl/rkksXaGX3GzZhPup5d6Vp1nFew==", + "dev": true + } + } + }, "prelude-ls": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", @@ -62300,6 +63167,35 @@ "renderkid": "^2.0.4" } }, + "pretty-format": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz", + "integrity": "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==", + "dev": true, + "requires": { + "@jest/types": "^26.6.2", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^17.0.1" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==", + "dev": true + } + } + }, "pretty-hrtime": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/pretty-hrtime/-/pretty-hrtime-1.0.3.tgz", @@ -62697,6 +63593,25 @@ "scheduler": "^0.23.0" } }, + "react-element-to-jsx-string": { + "version": "15.0.0", + "resolved": "https://registry.npmjs.org/react-element-to-jsx-string/-/react-element-to-jsx-string-15.0.0.tgz", + "integrity": "sha512-UDg4lXB6BzlobN60P8fHWVPX3Kyw8ORrTeBtClmIlGdkOOE+GYQSFvmEU5iLLpwp/6v42DINwNcwOhOLfQ//FQ==", + "dev": true, + "requires": { + "@base2/pretty-print-object": "1.0.1", + "is-plain-object": "5.0.0", + "react-is": "18.1.0" + }, + "dependencies": { + "react-is": { + "version": "18.1.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.1.0.tgz", + "integrity": "sha512-Fl7FuabXsJnV5Q1qIOQwx/sagGF18kogb4gpfcG4gjLBWO0WDiiz1ko/ExayuxE7InyQkBLkxRFG5oxY6Uu3Kg==", + "dev": true + } + } + }, "react-is": { "version": "16.13.1", "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", diff --git a/package.json b/package.json index e967ee10..977cf7ac 100644 --- a/package.json +++ b/package.json @@ -64,6 +64,7 @@ "@storybook/addon-actions": "~6.5.9", "@storybook/addon-essentials": "~6.5.9", "@storybook/addon-links": "~6.5.9", + "@storybook/addon-storyshots": "~6.5.9", "@storybook/builder-webpack5": "~6.5", "@storybook/manager-webpack5": "~6.5", "@storybook/preset-scss": "~1.0.3", @@ -117,5 +118,9 @@ }, "publishConfig": { "access": "public" + }, + "overrides": { + "react-element-to-jsx-string": "^15", + "react-test-renderer": "$react-test-renderer" } } diff --git a/src/src/alert/__snapshots__/alert.stories.storyshot b/src/src/alert/__snapshots__/alert.stories.storyshot new file mode 100644 index 00000000..d629b68b --- /dev/null +++ b/src/src/alert/__snapshots__/alert.stories.storyshot @@ -0,0 +1,245 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Components/Alert Alert 1`] = ` +
+ A simple alert +
+`; + +exports[`Storyshots Components/Alert Danger 1`] = ` +
+ A + + danger + + alert with + + a link + + . +
+`; + +exports[`Storyshots Components/Alert Dark 1`] = ` +
+ A + + dark + + alert with + + a link + + . +
+`; + +exports[`Storyshots Components/Alert Info 1`] = ` +
+ A + + info + + alert with + + a link + + . +
+`; + +exports[`Storyshots Components/Alert Light 1`] = ` +
+ A + + light + + alert with + + a link + + . +
+`; + +exports[`Storyshots Components/Alert Primary 1`] = ` +
+ A + + primary + + alert with + + a link + + . +
+`; + +exports[`Storyshots Components/Alert Secondary 1`] = ` +
+ A + + secondary + + alert with + + a link + + . +
+`; + +exports[`Storyshots Components/Alert Success 1`] = ` +
+ A + + success + + alert with + + a link + + . +
+`; + +exports[`Storyshots Components/Alert Warning 1`] = ` +
+ A + + warning + + alert with + + a link + + . +
+`; + +exports[`Storyshots Components/Alert With Additional Content 1`] = ` +
+

+ + Hey, nice to see you + +

+

+ Aww yeah, you successfully read this important alert message. This example text is going to run a bit longer so that you can see how spacing within an alert works with this kind of content. +

+
+

+ Whenever you need to, be sure to use margin utilities to keep things nice and tidy. +

+
+`; diff --git a/src/src/card/__snapshots__/card.stories.storyshot b/src/src/card/__snapshots__/card.stories.storyshot new file mode 100644 index 00000000..9526de32 --- /dev/null +++ b/src/src/card/__snapshots__/card.stories.storyshot @@ -0,0 +1,329 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Components/Card Body 1`] = ` +
+
+
+ Card title +
+

+ This is some text within a card body. +

+

+ This is a p-tag with no classes +

+

+ This is a p-tag with the card-text class +

+
+

+ This is a p-tag with in a div with the card-text class +

+
+
+
+`; + +exports[`Storyshots Components/Card Card 1`] = ` +
+
+
+ Card title +
+

+ Some quick example text to build on the card title and make up the bulk of the card's content +

+ + Go somewhere + +
+
+`; + +exports[`Storyshots Components/Card Header 1`] = ` +
+
+

+ + Featured + +

+
+
+
+ Special title treatment +
+

+ With supporting text below as a natural lead-in to additional content. +

+ + Go somewhere + +
+
+`; + +exports[`Storyshots Components/Card Kitchen Sink 1`] = ` +
+
+

+ + Card Header + +

+
+
+
+ Card title +
+
+ Card subtitle +
+

+ Some quick example text to build on the card title and make up the bulk of the card's content +

+
+
+
+ Cras justo odio +
+
+ Dapibus ac facilisis in +
+
+ Vestibulum at eros +
+
+
+ + Card Link + + + Another Link + +
+
+`; + +exports[`Storyshots Components/Card List Groups 1`] = ` +
+
+
+ Cras justo odio +
+
+ Dapibus ac facilisis in +
+
+ Morbi leo risus +
+
+ Porta ac consectetur ac +
+
+
+`; + +exports[`Storyshots Components/Card List Groups With Heading 1`] = ` +
+
+

+ + Featured + +

+
+
+
+ Cras justo odio +
+
+ Dapibus ac facilisis in +
+
+ Morbi leo risus +
+
+ Porta ac consectetur ac +
+
+
+`; + +exports[`Storyshots Components/Card Tiles Text And Links 1`] = ` +
+
+
+ Card title +
+
+ Card subtitle +
+

+ Some quick example text to build on the card title and make up the bulk of the card's content +

+ + Card link + + + Another link + +
+
+`; diff --git a/src/src/code/__snapshots__/code.stories.storyshot b/src/src/code/__snapshots__/code.stories.storyshot new file mode 100644 index 00000000..56451332 --- /dev/null +++ b/src/src/code/__snapshots__/code.stories.storyshot @@ -0,0 +1,53 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Components/Code Code 1`] = ` +
+  
+    {
+  "proof": true
+}
+  
+
+`; + +exports[`Storyshots Components/Code Indented 1`] = ` +
+  
+    {
+  "proof": true
+}
+  
+
+`; + +exports[`Storyshots Components/Code Inline 1`] = ` +

+ There is + + inline code + + in this paragraph +

+`; + +exports[`Storyshots Components/Code Nested 1`] = ` +
+  
+    foo
+  
+
+`; diff --git a/src/src/description/__snapshots__/conditional-description.stories.storyshot b/src/src/description/__snapshots__/conditional-description.stories.storyshot new file mode 100644 index 00000000..a338fb9b --- /dev/null +++ b/src/src/description/__snapshots__/conditional-description.stories.storyshot @@ -0,0 +1,77 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Description/ConditionalDescription Conditional Description 1`] = ` +
+
+ A label +
+
+ a value +
+
+`; + +exports[`Storyshots Description/ConditionalDescription With A Date 1`] = ` +
+
+ A Date +
+
+ +
+
+`; + +exports[`Storyshots Description/ConditionalDescription With False Condition 1`] = `null`; + +exports[`Storyshots Description/ConditionalDescription With Falsy Condition 1`] = `null`; + +exports[`Storyshots Description/ConditionalDescription With Falsy Nested Value 1`] = `null`; + +exports[`Storyshots Description/ConditionalDescription With Falsy Nested Value And Condition 1`] = `null`; + +exports[`Storyshots Description/ConditionalDescription With Falsy Value 1`] = `null`; + +exports[`Storyshots Description/ConditionalDescription With Not A Date 1`] = `null`; + +exports[`Storyshots Description/ConditionalDescription With Not A Time 1`] = `null`; + +exports[`Storyshots Description/ConditionalDescription With True Condition 1`] = ` +
+
+ A label +
+
+ A value +
+
+`; + +exports[`Storyshots Description/ConditionalDescription Without Value 1`] = `null`; diff --git a/src/src/description/__snapshots__/description-list.stories.storyshot b/src/src/description/__snapshots__/description-list.stories.storyshot new file mode 100644 index 00000000..9290942f --- /dev/null +++ b/src/src/description/__snapshots__/description-list.stories.storyshot @@ -0,0 +1,131 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Description/DescriptionList Description List 1`] = ` +
+
+ Term +
+
+ Its Description +
+
+`; + +exports[`Storyshots Description/DescriptionList List 1`] = ` +
+
+ Term 1 +
+
+ Its Description +
+
+ Term 2 +
+
+ Its Description +
+
+ Term 3 +
+
+ Its Description +
+
+ Term 4 +
+
+ Its Description +
+
+`; + +exports[`Storyshots Description/DescriptionList List With Multiple Descriptions 1`] = ` +
+
+ Term 1 +
+
+ Its First Description +
+
+ Term 2 +
+
+ Its First Description +
+
+ Term 3 +
+
+
+ Its First Description +
+
+
+
+ Its Second Description +
+
+
+ Term 4 +
+
+ Its First Description +
+
+`; diff --git a/src/src/description/__snapshots__/description.stories.storyshot b/src/src/description/__snapshots__/description.stories.storyshot new file mode 100644 index 00000000..79485046 --- /dev/null +++ b/src/src/description/__snapshots__/description.stories.storyshot @@ -0,0 +1,148 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Description/Description Children 1`] = ` +
+
+ Term +
+
+
+ Its description +
+
+
+
+ Its second description +
+
+
+`; + +exports[`Storyshots Description/Description Description 1`] = ` +
+
+ Term +
+
+ Its Description +
+
+`; + +exports[`Storyshots Description/Description Multiple Descriptions 1`] = ` +
+
+ Its description + , +
+ Its second description +
, + ] + } + > + Term +
+
+ Its description + , +
+ Its second description +
, + ] + } + > +
+ Its description +
+
+
+ Its description + , +
+ Its second description +
, + ] + } + > +
+ Its second description +
+
+
+`; + +exports[`Storyshots Description/Description With Date 1`] = ` +
+
+ Created At +
+
+ +
+
+`; + +exports[`Storyshots Description/Description With Date As Child 1`] = ` +
+
+ Created At +
+
+ +
+
+`; diff --git a/src/src/link/__snapshots__/link.stories.storyshot b/src/src/link/__snapshots__/link.stories.storyshot new file mode 100644 index 00000000..65e61d1b --- /dev/null +++ b/src/src/link/__snapshots__/link.stories.storyshot @@ -0,0 +1,51 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Components/Link In A Card 1`] = ` +
+
+ A + + Link + + in an Alert +
+
+`; + +exports[`Storyshots Components/Link In An Alert 1`] = ` +
+ A + + Link + + in an Alert +
+`; + +exports[`Storyshots Components/Link Link 1`] = ` +Array [ + "A ", + + Link + , +] +`; diff --git a/src/src/outline/__snapshots__/heading.stories.storyshot b/src/src/outline/__snapshots__/heading.stories.storyshot new file mode 100644 index 00000000..fd6a2d7d --- /dev/null +++ b/src/src/outline/__snapshots__/heading.stories.storyshot @@ -0,0 +1,66 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Outline/Heading Heading 1`] = ` +

+ + Foo + +

+`; + +exports[`Storyshots Outline/Heading Heading 2 1`] = ` +

+ + Foo + +

+`; + +exports[`Storyshots Outline/Heading Heading 3 1`] = ` +

+ + Foo + +

+`; + +exports[`Storyshots Outline/Heading Outline 1 Style 4 1`] = ` +

+ + Foo + +

+`; + +exports[`Storyshots Outline/Heading Outline 4 Style 1 1`] = ` +

+ + Foo + +

+`; diff --git a/src/src/outline/__snapshots__/section-heading.stories.storyshot b/src/src/outline/__snapshots__/section-heading.stories.storyshot new file mode 100644 index 00000000..dd46d53e --- /dev/null +++ b/src/src/outline/__snapshots__/section-heading.stories.storyshot @@ -0,0 +1,111 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Outline/SectionHeading With A Heading 1`] = ` +

+ + Level 1 + +

+`; + +exports[`Storyshots Outline/SectionHeading With Style Roots 1`] = ` +Array [ +

+ + Level 1 + +

, +

+ + Level 2 + +

, + , +] +`; + +exports[`Storyshots Outline/SectionHeading With Three Levels Of Nesting 1`] = ` +Array [ +

+ + Level 1 + +

, +

+ + Level 2 + +

, +

+ + Level 3 + +

, +] +`; + +exports[`Storyshots Outline/SectionHeading With Two Sibling Headings 1`] = ` +Array [ +

+ + Level 1 + +

, +

+ + Level 1 + +

, +] +`; diff --git a/src/src/outline/__snapshots__/section.stories.storyshot b/src/src/outline/__snapshots__/section.stories.storyshot new file mode 100644 index 00000000..ec2c7968 --- /dev/null +++ b/src/src/outline/__snapshots__/section.stories.storyshot @@ -0,0 +1,113 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Outline/Section Section 1`] = `null`; + +exports[`Storyshots Outline/Section With A Heading 1`] = ` +

+ + Level 1 + +

+`; + +exports[`Storyshots Outline/Section With Style Roots 1`] = ` +Array [ +

+ + Level 1 + +

, +

+ + Level 2 + +

, + , +] +`; + +exports[`Storyshots Outline/Section With Three Levels Of Nesting 1`] = ` +Array [ +

+ + Level 1 + +

, +

+ + Level 2 + +

, +

+ + Level 3 + +

, +] +`; + +exports[`Storyshots Outline/Section With Two Sibling Headings 1`] = ` +Array [ +

+ + Level 1 + +

, +

+ + Level 1 + +

, +] +`; diff --git a/src/src/pager/__snapshots__/offset-pager.stories.storyshot b/src/src/pager/__snapshots__/offset-pager.stories.storyshot new file mode 100644 index 00000000..10a72e14 --- /dev/null +++ b/src/src/pager/__snapshots__/offset-pager.stories.storyshot @@ -0,0 +1,3356 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Components/Pager/Offset Offset Pager 1`] = ` + +`; + +exports[`Storyshots Components/Pager/Offset Offset Pager On Middle Page 1`] = ` + +`; + +exports[`Storyshots Components/Pager/Offset Offset Pager With Too Many Pages 1`] = ` +Array [ + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , +] +`; diff --git a/src/src/pager/__snapshots__/pager.stories.storyshot b/src/src/pager/__snapshots__/pager.stories.storyshot new file mode 100644 index 00000000..be0b4c34 --- /dev/null +++ b/src/src/pager/__snapshots__/pager.stories.storyshot @@ -0,0 +1,442 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Components/Pager Offset Pager 1`] = ` + +`; + +exports[`Storyshots Components/Pager Relay Pager 1`] = ` + +`; + +exports[`Storyshots Components/Pager Simple Page 1`] = ` + +`; diff --git a/src/src/pager/__snapshots__/relay-pager.stories.storyshot b/src/src/pager/__snapshots__/relay-pager.stories.storyshot new file mode 100644 index 00000000..531ad4d4 --- /dev/null +++ b/src/src/pager/__snapshots__/relay-pager.stories.storyshot @@ -0,0 +1,142 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Components/Pager/Relay Relay Pager 1`] = ` + +`; + +exports[`Storyshots Components/Pager/Relay Relay Pager No Next 1`] = ` + +`; + +exports[`Storyshots Components/Pager/Relay Relay Pager No Previous 1`] = ` + +`; diff --git a/src/src/pager/__snapshots__/simple-pager.stories.storyshot b/src/src/pager/__snapshots__/simple-pager.stories.storyshot new file mode 100644 index 00000000..7764197d --- /dev/null +++ b/src/src/pager/__snapshots__/simple-pager.stories.storyshot @@ -0,0 +1,3293 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Components/Pager/Simple Simple Pager 1`] = ` + +`; + +exports[`Storyshots Components/Pager/Simple Simple Pager On Middle Page 1`] = ` + +`; + +exports[`Storyshots Components/Pager/Simple Simple Pager With Too Many Pages 1`] = ` +Array [ + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , +] +`; diff --git a/src/src/renderers/any-renderer/__snapshots__/any-renderer.stories.storyshot b/src/src/renderers/any-renderer/__snapshots__/any-renderer.stories.storyshot new file mode 100644 index 00000000..09033455 --- /dev/null +++ b/src/src/renderers/any-renderer/__snapshots__/any-renderer.stories.storyshot @@ -0,0 +1,199 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Renderers/AnyRenderer Any Renderer 1`] = ` + + - + +`; + +exports[`Storyshots Renderers/AnyRenderer Array 1`] = ` +
+  
+    [
+  "foo",
+  true,
+  false,
+  "2020-01-01T00:00:00.000Z"
+]
+  
+
+`; + +exports[`Storyshots Renderers/AnyRenderer Boolean False 1`] = ` + + No + +`; + +exports[`Storyshots Renderers/AnyRenderer Boolean True 1`] = ` + + Yes + +`; + +exports[`Storyshots Renderers/AnyRenderer Date 1`] = ` + +`; + +exports[`Storyshots Renderers/AnyRenderer Date String 1`] = ` + +`; + +exports[`Storyshots Renderers/AnyRenderer Number 1`] = `"5"`; + +exports[`Storyshots Renderers/AnyRenderer Obj 1`] = ` +
+  
+    {
+  "array": [
+    "foo",
+    true,
+    false,
+    "2020-01-01T00:00:00.000Z"
+  ],
+  "date": "2020-01-01T00:00:00.000Z",
+  "false": false,
+  "foo": "foo",
+  "true": true
+}
+  
+
+`; + +exports[`Storyshots Renderers/AnyRenderer React Node 1`] = ` +

+ foo +

+`; + +exports[`Storyshots Renderers/AnyRenderer String 1`] = `"foo"`; + +exports[`Storyshots Renderers/AnyRenderer With Overrides 1`] = ` + + + + + + + + + + + + + + + + + + + + + +
+ string + + foo +
+ boolean + + + you got it + +
+ date + + +
+ number + + 5 +
+ null + + nothing to see here +
+`; + +exports[`Storyshots Renderers/AnyRenderer With Overrides From Context 1`] = ` + + + + + + + + + + + + + + + + + + + + + +
+ string + + foo +
+ boolean + + + you got it + +
+ date + + +
+ number + + 5 +
+ null + + nothing to see here +
+`; diff --git a/src/src/renderers/boolean-renderer/__snapshots__/boolean-renderer.stories.storyshot b/src/src/renderers/boolean-renderer/__snapshots__/boolean-renderer.stories.storyshot new file mode 100644 index 00000000..6340e7a1 --- /dev/null +++ b/src/src/renderers/boolean-renderer/__snapshots__/boolean-renderer.stories.storyshot @@ -0,0 +1,41 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Renderers/BooleanRenderer Boolean Renderer 1`] = ` + + Yes + +`; + +exports[`Storyshots Renderers/BooleanRenderer Falsy 1`] = ` + + No + +`; + +exports[`Storyshots Renderers/BooleanRenderer Truthy 1`] = ` + + Yes + +`; + +exports[`Storyshots Renderers/BooleanRenderer With Context Overrides 1`] = ` + + i think not + +`; + +exports[`Storyshots Renderers/BooleanRenderer With Overrides 1`] = ` + + Nope + +`; diff --git a/src/src/renderers/date-renderer/__snapshots__/date-renderer.stories.storyshot b/src/src/renderers/date-renderer/__snapshots__/date-renderer.stories.storyshot new file mode 100644 index 00000000..ad280e31 --- /dev/null +++ b/src/src/renderers/date-renderer/__snapshots__/date-renderer.stories.storyshot @@ -0,0 +1,94 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Renderers/DateRenderer Date Range 1`] = ` + +`; + +exports[`Storyshots Renderers/DateRenderer Date Renderer 1`] = ` + +`; + +exports[`Storyshots Renderers/DateRenderer Invalid Date String 1`] = ` + + - + +`; + +exports[`Storyshots Renderers/DateRenderer Relative 1`] = ` + +`; + +exports[`Storyshots Renderers/DateRenderer Relative Negative 1`] = ` + +`; + +exports[`Storyshots Renderers/DateRenderer Relative Negative Is Null 1`] = ` + + - + +`; + +exports[`Storyshots Renderers/DateRenderer Time Since 1`] = ` + +`; + +exports[`Storyshots Renderers/DateRenderer Using Date String 1`] = ` + +`; + +exports[`Storyshots Renderers/DateRenderer Using Epoch 1`] = ` + +`; + +exports[`Storyshots Renderers/DateRenderer With Overrides 1`] = ` + +`; + +exports[`Storyshots Renderers/DateRenderer With Overrides From Context 1`] = ` + +`; diff --git a/src/src/renderers/maybe-renderer/__snapshots__/maybe-renderer.stories.storyshot b/src/src/renderers/maybe-renderer/__snapshots__/maybe-renderer.stories.storyshot new file mode 100644 index 00000000..c94e7e21 --- /dev/null +++ b/src/src/renderers/maybe-renderer/__snapshots__/maybe-renderer.stories.storyshot @@ -0,0 +1,29 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Renderers/MaybeRenderer Falsy 1`] = ` + + No + +`; + +exports[`Storyshots Renderers/MaybeRenderer Maybe Renderer 1`] = ` + + - + +`; + +exports[`Storyshots Renderers/MaybeRenderer Pass Through Props 1`] = ` + + - + +`; + +exports[`Storyshots Renderers/MaybeRenderer Truthy 1`] = ` + + Yes + +`; diff --git a/src/src/renderers/null-renderer/__snapshots__/null-renderer.stories.storyshot b/src/src/renderers/null-renderer/__snapshots__/null-renderer.stories.storyshot new file mode 100644 index 00000000..e2f6feaa --- /dev/null +++ b/src/src/renderers/null-renderer/__snapshots__/null-renderer.stories.storyshot @@ -0,0 +1,11 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Renderers/NullRenderer Null Renderer 1`] = ` + + - + +`; + +exports[`Storyshots Renderers/NullRenderer With Override 1`] = `"nada"`; + +exports[`Storyshots Renderers/NullRenderer With Override From Context 1`] = `"bupkis"`; diff --git a/src/src/renderers/object-renderer/__snapshots__/object-renderer.stories.storyshot b/src/src/renderers/object-renderer/__snapshots__/object-renderer.stories.storyshot new file mode 100644 index 00000000..a32c4f78 --- /dev/null +++ b/src/src/renderers/object-renderer/__snapshots__/object-renderer.stories.storyshot @@ -0,0 +1,37 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Renderers/ObjectRenderer Object Renderer 1`] = ` +
+  
+    {
+  "bar": "baz",
+  "bat": true,
+  "foo": "bar",
+  "qux": 1
+}
+  
+
+`; + +exports[`Storyshots Renderers/ObjectRenderer With Array 1`] = ` +
+  
+    [
+  {
+    "bar": "baz",
+    "bat": true,
+    "foo": "bar",
+    "qux": 1
+  }
+]
+  
+
+`; diff --git a/src/src/simple-error-boundary/__snapshots__/simple-error-boundary.stories.storyshot b/src/src/simple-error-boundary/__snapshots__/simple-error-boundary.stories.storyshot new file mode 100644 index 00000000..16c549e4 --- /dev/null +++ b/src/src/simple-error-boundary/__snapshots__/simple-error-boundary.stories.storyshot @@ -0,0 +1,37 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots ErrorBoundaries/SimpleErrorBoundary Json Parse Error 1`] = ` +
+ SyntaxError: Unexpected token i in JSON at position 1 +
+`; + +exports[`Storyshots ErrorBoundaries/SimpleErrorBoundary No Stack 1`] = ` +
+ SyntaxError: Unexpected token i in JSON at position 1 +
+`; + +exports[`Storyshots ErrorBoundaries/SimpleErrorBoundary Simple Error Boundary 1`] = ` +
+ Error: Something went wrong! +
+`; + +exports[`Storyshots ErrorBoundaries/SimpleErrorBoundary Warning Not Danger 1`] = ` +
+ SyntaxError: Unexpected token i in JSON at position 1 +
+`; diff --git a/src/src/spinner/__snapshots__/spinner.stories.storyshot b/src/src/spinner/__snapshots__/spinner.stories.storyshot new file mode 100644 index 00000000..fc075549 --- /dev/null +++ b/src/src/spinner/__snapshots__/spinner.stories.storyshot @@ -0,0 +1,14 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Components/Spinner Spinner 1`] = ` +
+ + Loading... + +
+`; diff --git a/src/src/stringify/__snapshots__/fancy-stringify.stories.storyshot b/src/src/stringify/__snapshots__/fancy-stringify.stories.storyshot new file mode 100644 index 00000000..ed5f2d90 --- /dev/null +++ b/src/src/stringify/__snapshots__/fancy-stringify.stories.storyshot @@ -0,0 +1,118 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Components/FancyStringify Fancy Stringify 1`] = ` +
+   
+  
+ + "manager" + : + { + + +
+ + "details" + : + { + + + "age": 9 + + "firstName": "Joshua" + + "id": "1c887ce7-df33-419f-ba65-d255867e20db" + + "lastName": "Jenkins" + + "signUpDate": "2019-04-21T09:24:38.262Z" + + } + , +
+
+ + "employees" + : + + [ + +
+ + "0" + : + { + + + "age": 69 + + "id": "94f6d8ab-9d31-428c-9837-aef7fe202505" + +
+ + "name" + : + { + + + "first": "Melyna" + + "last": "Krajcik" + + } + , +
+ "signUpDate": "2020-05-21T20:24:48.713Z" + + } + , +
+
+ + "1" + : + { + + + "age": 92 + + "id": "c0759f49-ba6d-4135-b70d-b53ead69330c" + +
+ + "name" + : + { + + + "first": "Daisha" + + "last": "Olson" + + } + , +
+ "signUpDate": "2019-03-05T01:04:28.401Z" + + } +
+ ] +
+ } +
+
+`; diff --git a/src/src/stringify/__snapshots__/stringify.stories.storyshot b/src/src/stringify/__snapshots__/stringify.stories.storyshot new file mode 100644 index 00000000..1a299488 --- /dev/null +++ b/src/src/stringify/__snapshots__/stringify.stories.storyshot @@ -0,0 +1,37 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Components/Stringify Stringify 1`] = ` +
+  {
+  "manager": {
+    "details": {
+      "age": 31,
+      "firstName": "Annabelle",
+      "id": "b19d2e3f-5a5f-4ed3-a61b-862cf60e8cf3",
+      "lastName": "Halvorson",
+      "signUpDate": "2020-10-04T14:50:38.937Z"
+    },
+    "employees": [
+      {
+        "age": 83,
+        "id": "508db873-e9e2-4ad1-8694-84c1ff3e3170",
+        "name": {
+          "first": "Kenna",
+          "last": "Runolfsson"
+        },
+        "signUpDate": "2020-09-30T22:08:33.801Z"
+      },
+      {
+        "age": 90,
+        "id": "324168a2-69b0-445c-9df7-cc78ee4cd360",
+        "name": {
+          "first": "Shanny",
+          "last": "Orn"
+        },
+        "signUpDate": "2020-09-08T08:53:03.410Z"
+      }
+    ]
+  }
+}
+
+`; diff --git a/src/src/table/__snapshots__/table.stories.storyshot b/src/src/table/__snapshots__/table.stories.storyshot new file mode 100644 index 00000000..38e38e9c --- /dev/null +++ b/src/src/table/__snapshots__/table.stories.storyshot @@ -0,0 +1,2979 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Components/Table Complex Table 1`] = ` + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ First Name + + Last Name + + Age + + Sign Up Date +
+ Bo + + Ritchie + + 97 + + +
+ Alanis + + Rogahn + + 84 + + +
+ Cortez + + Cassin + + 83 + + +
+ Kimberly + + Spinka + + 10 + + +
+ Cristian + + Rolfson + + 8 + + +
+ Meredith + + Hettinger + + 35 + + +
+ Keshaun + + Bauch + + 33 + + +
+ Gene + + Koss + + 42 + + +
+ Kristy + + Romaguera + + 21 + + +
+ Barrett + + Friesen + + 6 + + +
+ Alfred + + Reilly + + 11 + + +
+ Katharina + + Towne + + 89 + + +
+ Yolanda + + Robel + + 64 + + +
+ Benny + + Kozey + + 67 + + +
+ Trever + + Bahringer + + 66 + + +
+ Cary + + Gleason + + 59 + + +
+ Miguel + + Walsh + + 68 + + +
+ Nia + + McGlynn + + 10 + + +
+ Abigail + + Murphy + + 80 + + +
+ Tiffany + + Kuhic + + 26 + + +
+ Jerald + + Murphy + + 57 + + +
+ Mabelle + + Rodriguez + + 33 + + +
+ Enid + + Crist + + 11 + + +
+ Philip + + Grimes + + 59 + + +
+ Floyd + + Greenfelder + + 70 + + +
+ Jordon + + Runolfsson + + 58 + + +
+ Alene + + Walsh + + 87 + + +
+ Alayna + + Hahn + + 52 + + +
+ Zane + + Funk + + 97 + + +
+ Jaylin + + Stark + + 15 + + +
+ Ansel + + Bashirian + + 98 + + +
+ Maddison + + Marks + + 36 + + +
+ Lacey + + Schimmel + + 98 + + +
+ Kellie + + Beer + + 78 + + +
+ Horacio + + Reichel + + 1 + + +
+ Jonathan + + Osinski + + 7 + + +
+ Hardy + + Becker + + 48 + + +
+ Lonny + + Herman + + 5 + + +
+ Norene + + Osinski + + 96 + + +
+ Jamaal + + Cummings + + 35 + + +
+ Armand + + Kling + + 22 + + +
+ Brionna + + Daniel + + 44 + + +
+ Guillermo + + Kunze + + 32 + + +
+ Lavada + + Thiel + + 97 + + +
+ Zoie + + Balistreri + + 74 + + +
+ Charity + + Zulauf + + 83 + + +
+ Lauretta + + Grady + + 68 + + +
+ Loma + + Dare + + 39 + + +
+ Mitchell + + Turcotte + + 85 + + +
+ Makenzie + + Johnson + + 24 + + +
+`; + +exports[`Storyshots Components/Table Table 1`] = ` + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ First Name + + Last Name + + Age + + Sign Up Date +
+ Joshua + + Crooks + + 3 + + +
+ Jermaine + + Bayer + + 10 + + +
+ Corrine + + Metz + + 35 + + +
+ Brice + + Schuster + + 70 + + +
+ Chelsey + + Kub + + 34 + + +
+ Mohammad + + Walter + + 81 + + +
+ Polly + + Hackett + + 32 + + +
+ Felipe + + Quigley + + 99 + + +
+ Malinda + + Anderson + + 18 + + +
+ Layla + + Luettgen + + 7 + + +
+ Dewitt + + Brekke + + 11 + + +
+ Anna + + Kunde + + 68 + + +
+ Morton + + Lowe + + 86 + + +
+ Marlin + + Turner + + 68 + + +
+ Gerry + + Kiehn + + 50 + + +
+ Schuyler + + Thiel + + 9 + + +
+ Zola + + Cassin + + 62 + + +
+ Elaina + + Emard + + 88 + + +
+ Dorothea + + Langosh + + 41 + + +
+ Walter + + Collins + + 49 + + +
+ Lexi + + White + + 57 + + +
+ Barrett + + Stehr + + 18 + + +
+ Clay + + Muller + + 94 + + +
+ Omer + + Wolf + + 35 + + +
+ Bradly + + Williamson + + 6 + + +
+ Merle + + Stark + + 14 + + +
+ Zelda + + Dach + + 5 + + +
+ Turner + + Prohaska + + 28 + + +
+ Savanah + + Graham + + 35 + + +
+ Fred + + Koss + + 68 + + +
+ Kelton + + Trantow + + 97 + + +
+ Cicero + + Nienow + + 83 + + +
+ Emie + + Doyle + + 3 + + +
+ Garland + + O'Keefe + + 58 + + +
+ Kaela + + Runte + + 88 + + +
+ Josianne + + Carter + + 92 + + +
+ Myrtis + + Lynch + + 1 + + +
+ Theresa + + King + + 43 + + +
+ Molly + + Sawayn + + 88 + + +
+ Florence + + Bechtelar + + 19 + + +
+ Wiley + + Bruen + + 91 + + +
+ Moshe + + Flatley + + 96 + + +
+ Zaria + + Senger + + 22 + + +
+ Eloise + + Beier + + 84 + + +
+ Adell + + Cassin + + 71 + + +
+ Olin + + Treutel + + 19 + + +
+ Dana + + Will + + 100 + + +
+ Destinee + + Mayert + + 68 + + +
+ Iva + + Maggio + + 17 + + +
+ Joanny + + Mueller + + 22 + + +
+`; diff --git a/src/src/template-specializations/array-table/__snapshots__/array-table.stories.storyshot b/src/src/template-specializations/array-table/__snapshots__/array-table.stories.storyshot new file mode 100644 index 00000000..1e4cda7b --- /dev/null +++ b/src/src/template-specializations/array-table/__snapshots__/array-table.stories.storyshot @@ -0,0 +1,7779 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Template Specialization/ArrayTable Array Table 1`] = ` + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ First Name + + Last Name + + Age + + Sign Up Date +
+ Joshua + + Jenkins + + 9 + + +
+ Lennie + + Krajcik + + 69 + + +
+ Ophelia + + Olson + + 92 + + +
+ Annabelle + + Halvorson + + 31 + + +
+ Foster + + Runolfsson + + 83 + + +
+ Dayton + + Orn + + 90 + + +
+ Joshua + + Crooks + + 3 + + +
+ Jermaine + + Bayer + + 10 + + +
+ Corrine + + Metz + + 35 + + +
+ Brice + + Schuster + + 70 + + +
+ Chelsey + + Kub + + 34 + + +
+ Mohammad + + Walter + + 81 + + +
+ Polly + + Hackett + + 32 + + +
+ Felipe + + Quigley + + 99 + + +
+ Malinda + + Anderson + + 18 + + +
+ Layla + + Luettgen + + 7 + + +
+ Dewitt + + Brekke + + 11 + + +
+ Anna + + Kunde + + 68 + + +
+ Morton + + Lowe + + 86 + + +
+ Marlin + + Turner + + 68 + + +
+ Gerry + + Kiehn + + 50 + + +
+ Schuyler + + Thiel + + 9 + + +
+ Zola + + Cassin + + 62 + + +
+ Elaina + + Emard + + 88 + + +
+ Dorothea + + Langosh + + 41 + + +
+ Walter + + Collins + + 49 + + +
+ Lexi + + White + + 57 + + +
+ Barrett + + Stehr + + 18 + + +
+ Clay + + Muller + + 94 + + +
+ Omer + + Wolf + + 35 + + +
+ Bradly + + Williamson + + 6 + + +
+ Merle + + Stark + + 14 + + +
+ Zelda + + Dach + + 5 + + +
+ Turner + + Prohaska + + 28 + + +
+ Savanah + + Graham + + 35 + + +
+ Fred + + Koss + + 68 + + +
+ Kelton + + Trantow + + 97 + + +
+ Cicero + + Nienow + + 83 + + +
+ Emie + + Doyle + + 3 + + +
+ Garland + + O'Keefe + + 58 + + +
+ Kaela + + Runte + + 88 + + +
+ Josianne + + Carter + + 92 + + +
+ Myrtis + + Lynch + + 1 + + +
+ Theresa + + King + + 43 + + +
+ Molly + + Sawayn + + 88 + + +
+ Florence + + Bechtelar + + 19 + + +
+ Wiley + + Bruen + + 91 + + +
+ Moshe + + Flatley + + 96 + + +
+ Zaria + + Senger + + 22 + + +
+ Eloise + + Beier + + 84 + + +
+`; + +exports[`Storyshots Template Specialization/ArrayTable Duplicate Fields 1`] = ` + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ First Name + + Last Name + + Age + + Sign Up Date + + Seconds since signup +
+ Joshua + + Jenkins + + 9 + + + + 53620521738 +
+ Lennie + + Krajcik + + 69 + + + + 19366511287 +
+ Ophelia + + Olson + + 92 + + + + 57711331599 +
+ Annabelle + + Halvorson + + 31 + + + + 7636161063 +
+ Foster + + Runolfsson + + 83 + + + + 7955486199 +
+ Dayton + + Orn + + 90 + + + + 9904016590 +
+ Joshua + + Crooks + + 3 + + + + 26238961265 +
+ Jermaine + + Bayer + + 10 + + + + 55863426066 +
+ Corrine + + Metz + + 35 + + + + 39963854704 +
+ Brice + + Schuster + + 70 + + + + 47393616989 +
+ Chelsey + + Kub + + 34 + + + + 38033576329 +
+ Mohammad + + Walter + + 81 + + + + 19044818182 +
+ Polly + + Hackett + + 32 + + + + 39063875391 +
+ Felipe + + Quigley + + 99 + + + + 56441560378 +
+ Malinda + + Anderson + + 18 + + + + 40096438599 +
+ Layla + + Luettgen + + 7 + + + + 33228587632 +
+ Dewitt + + Brekke + + 11 + + + + 5109190153 +
+ Anna + + Kunde + + 68 + + + + 61410436443 +
+ Morton + + Lowe + + 86 + + + + 6476064275 +
+ Marlin + + Turner + + 68 + + + + -242082456 +
+ Gerry + + Kiehn + + 50 + + + + 1729991777 +
+ Schuyler + + Thiel + + 9 + + + + 20045425563 +
+ Zola + + Cassin + + 62 + + + + 9584935096 +
+ Elaina + + Emard + + 88 + + + + 34286980411 +
+ Dorothea + + Langosh + + 41 + + + + 32180028624 +
+ Walter + + Collins + + 49 + + + + 35993354850 +
+ Lexi + + White + + 57 + + + + 30026074477 +
+ Barrett + + Stehr + + 18 + + + + 33531722640 +
+ Clay + + Muller + + 94 + + + + 21909614829 +
+ Omer + + Wolf + + 35 + + + + 41756251158 +
+ Bradly + + Williamson + + 6 + + + + 24641059277 +
+ Merle + + Stark + + 14 + + + + -264718194 +
+ Zelda + + Dach + + 5 + + + + 14326550228 +
+ Turner + + Prohaska + + 28 + + + + 252114087 +
+ Savanah + + Graham + + 35 + + + + 20940649057 +
+ Fred + + Koss + + 68 + + + + 17524839299 +
+ Kelton + + Trantow + + 97 + + + + 13896757247 +
+ Cicero + + Nienow + + 83 + + + + 32046621201 +
+ Emie + + Doyle + + 3 + + + + 14163514771 +
+ Garland + + O'Keefe + + 58 + + + + 35931322784 +
+ Kaela + + Runte + + 88 + + + + -4887628643 +
+ Josianne + + Carter + + 92 + + + + 9419223729 +
+ Myrtis + + Lynch + + 1 + + + + 34943380588 +
+ Theresa + + King + + 43 + + + + 13982047304 +
+ Molly + + Sawayn + + 88 + + + + 22783009983 +
+ Florence + + Bechtelar + + 19 + + + + 1331844171 +
+ Wiley + + Bruen + + 91 + + + + 10793865697 +
+ Moshe + + Flatley + + 96 + + + + 38430423311 +
+ Zaria + + Senger + + 22 + + + + 4743766614 +
+ Eloise + + Beier + + 84 + + + + 37982066511 +
+`; + +exports[`Storyshots Template Specialization/ArrayTable Nested Data 1`] = ` + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Name First + + Name Last + + Sign Up Date + + Age +
+ Milan + + Jenkins + + + + 9 +
+ Melyna + + Krajcik + + + + 69 +
+ Daisha + + Olson + + + + 92 +
+ Coty + + Halvorson + + + + 31 +
+ Kenna + + Runolfsson + + + + 83 +
+ Shanny + + Orn + + + + 90 +
+ Jerome + + Crooks + + + + 3 +
+ Leonora + + Bayer + + + + 10 +
+ Zakary + + Metz + + + + 35 +
+ Ken + + Schuster + + + + 70 +
+ Haylee + + Kub + + + + 34 +
+ Curtis + + Walter + + + + 81 +
+ Melisa + + Hackett + + + + 32 +
+ Isabel + + Quigley + + + + 99 +
+ Wilburn + + Anderson + + + + 18 +
+ Terrance + + Luettgen + + + + 7 +
+ Miles + + Brekke + + + + 11 +
+ Skye + + Kunde + + + + 68 +
+ Claudine + + Lowe + + + + 86 +
+ Landen + + Turner + + + + 68 +
+ Antonia + + Kiehn + + + + 50 +
+ Dewitt + + Thiel + + + + 9 +
+ Horacio + + Cassin + + + + 62 +
+ Kathleen + + Emard + + + + 88 +
+ Ella + + Langosh + + + + 41 +
+ Jacklyn + + Collins + + + + 49 +
+ Loraine + + White + + + + 57 +
+ Christa + + Stehr + + + + 18 +
+ Giovanni + + Muller + + + + 94 +
+ Rick + + Wolf + + + + 35 +
+ George + + Williamson + + + + 6 +
+ Jessie + + Stark + + + + 14 +
+ Shaylee + + Dach + + + + 5 +
+ Carmelo + + Prohaska + + + + 28 +
+ Rebeka + + Graham + + + + 35 +
+ Kraig + + Koss + + + + 68 +
+ Brock + + Trantow + + + + 97 +
+ Marley + + Nienow + + + + 83 +
+ Kyra + + Doyle + + + + 3 +
+ Marcel + + O'Keefe + + + + 58 +
+ Bianka + + Runte + + + + 88 +
+ Fredy + + Carter + + + + 92 +
+ Zelda + + Lynch + + + + 1 +
+ Giovani + + King + + + + 43 +
+ Griffin + + Sawayn + + + + 88 +
+ Nathaniel + + Bechtelar + + + + 19 +
+ Amiya + + Bruen + + + + 91 +
+ Vivian + + Flatley + + + + 96 +
+ Lysanne + + Senger + + + + 22 +
+ Ena + + Beier + + + + 84 +
+`; + +exports[`Storyshots Template Specialization/ArrayTable Out Of Order 1`] = ` + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Last Name + + First Name + + Sign Up Date + + Age +
+ Jenkins + + Joshua + + + + 9 +
+ Krajcik + + Lennie + + + + 69 +
+ Olson + + Ophelia + + + + 92 +
+ Halvorson + + Annabelle + + + + 31 +
+ Runolfsson + + Foster + + + + 83 +
+ Orn + + Dayton + + + + 90 +
+ Crooks + + Joshua + + + + 3 +
+ Bayer + + Jermaine + + + + 10 +
+ Metz + + Corrine + + + + 35 +
+ Schuster + + Brice + + + + 70 +
+ Kub + + Chelsey + + + + 34 +
+ Walter + + Mohammad + + + + 81 +
+ Hackett + + Polly + + + + 32 +
+ Quigley + + Felipe + + + + 99 +
+ Anderson + + Malinda + + + + 18 +
+ Luettgen + + Layla + + + + 7 +
+ Brekke + + Dewitt + + + + 11 +
+ Kunde + + Anna + + + + 68 +
+ Lowe + + Morton + + + + 86 +
+ Turner + + Marlin + + + + 68 +
+ Kiehn + + Gerry + + + + 50 +
+ Thiel + + Schuyler + + + + 9 +
+ Cassin + + Zola + + + + 62 +
+ Emard + + Elaina + + + + 88 +
+ Langosh + + Dorothea + + + + 41 +
+ Collins + + Walter + + + + 49 +
+ White + + Lexi + + + + 57 +
+ Stehr + + Barrett + + + + 18 +
+ Muller + + Clay + + + + 94 +
+ Wolf + + Omer + + + + 35 +
+ Williamson + + Bradly + + + + 6 +
+ Stark + + Merle + + + + 14 +
+ Dach + + Zelda + + + + 5 +
+ Prohaska + + Turner + + + + 28 +
+ Graham + + Savanah + + + + 35 +
+ Koss + + Fred + + + + 68 +
+ Trantow + + Kelton + + + + 97 +
+ Nienow + + Cicero + + + + 83 +
+ Doyle + + Emie + + + + 3 +
+ O'Keefe + + Garland + + + + 58 +
+ Runte + + Kaela + + + + 88 +
+ Carter + + Josianne + + + + 92 +
+ Lynch + + Myrtis + + + + 1 +
+ King + + Theresa + + + + 43 +
+ Sawayn + + Molly + + + + 88 +
+ Bechtelar + + Florence + + + + 19 +
+ Bruen + + Wiley + + + + 91 +
+ Flatley + + Moshe + + + + 96 +
+ Senger + + Zaria + + + + 22 +
+ Beier + + Eloise + + + + 84 +
+`; diff --git a/src/src/template-specializations/connection-table/__snapshots__/connection-table.stories.storyshot b/src/src/template-specializations/connection-table/__snapshots__/connection-table.stories.storyshot new file mode 100644 index 00000000..3028f00d --- /dev/null +++ b/src/src/template-specializations/connection-table/__snapshots__/connection-table.stories.storyshot @@ -0,0 +1,8411 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Template Specialization/ConnectionTable Connection Table 1`] = ` + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ First Name + + Last Name + + Age + + Sign Up Date +
+ Joshua + + Jenkins + + 9 + + +
+ Lennie + + Krajcik + + 69 + + +
+ Ophelia + + Olson + + 92 + + +
+ Annabelle + + Halvorson + + 31 + + +
+ Foster + + Runolfsson + + 83 + + +
+ Dayton + + Orn + + 90 + + +
+ Joshua + + Crooks + + 3 + + +
+ Jermaine + + Bayer + + 10 + + +
+ Corrine + + Metz + + 35 + + +
+ Brice + + Schuster + + 70 + + +
+ Chelsey + + Kub + + 34 + + +
+ Mohammad + + Walter + + 81 + + +
+ Polly + + Hackett + + 32 + + +
+ Felipe + + Quigley + + 99 + + +
+ Malinda + + Anderson + + 18 + + +
+ Layla + + Luettgen + + 7 + + +
+ Dewitt + + Brekke + + 11 + + +
+ Anna + + Kunde + + 68 + + +
+ Morton + + Lowe + + 86 + + +
+ Marlin + + Turner + + 68 + + +
+ Gerry + + Kiehn + + 50 + + +
+ Schuyler + + Thiel + + 9 + + +
+ Zola + + Cassin + + 62 + + +
+ Elaina + + Emard + + 88 + + +
+ Dorothea + + Langosh + + 41 + + +
+ Walter + + Collins + + 49 + + +
+ Lexi + + White + + 57 + + +
+ Barrett + + Stehr + + 18 + + +
+ Clay + + Muller + + 94 + + +
+ Omer + + Wolf + + 35 + + +
+ Bradly + + Williamson + + 6 + + +
+ Merle + + Stark + + 14 + + +
+ Zelda + + Dach + + 5 + + +
+ Turner + + Prohaska + + 28 + + +
+ Savanah + + Graham + + 35 + + +
+ Fred + + Koss + + 68 + + +
+ Kelton + + Trantow + + 97 + + +
+ Cicero + + Nienow + + 83 + + +
+ Emie + + Doyle + + 3 + + +
+ Garland + + O'Keefe + + 58 + + +
+ Kaela + + Runte + + 88 + + +
+ Josianne + + Carter + + 92 + + +
+ Myrtis + + Lynch + + 1 + + +
+ Theresa + + King + + 43 + + +
+ Molly + + Sawayn + + 88 + + +
+ Florence + + Bechtelar + + 19 + + +
+ Wiley + + Bruen + + 91 + + +
+ Moshe + + Flatley + + 96 + + +
+ Zaria + + Senger + + 22 + + +
+ Eloise + + Beier + + 84 + + +
+`; + +exports[`Storyshots Template Specialization/ConnectionTable Duplicate Fields 1`] = ` + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ First Name + + Last Name + + Age + + Sign Up Date + + Seconds since signup +
+ Joshua + + Jenkins + + 9 + + + + 53620521738 +
+ Lennie + + Krajcik + + 69 + + + + 19366511287 +
+ Ophelia + + Olson + + 92 + + + + 57711331599 +
+ Annabelle + + Halvorson + + 31 + + + + 7636161063 +
+ Foster + + Runolfsson + + 83 + + + + 7955486199 +
+ Dayton + + Orn + + 90 + + + + 9904016590 +
+ Joshua + + Crooks + + 3 + + + + 26238961265 +
+ Jermaine + + Bayer + + 10 + + + + 55863426066 +
+ Corrine + + Metz + + 35 + + + + 39963854704 +
+ Brice + + Schuster + + 70 + + + + 47393616989 +
+ Chelsey + + Kub + + 34 + + + + 38033576329 +
+ Mohammad + + Walter + + 81 + + + + 19044818182 +
+ Polly + + Hackett + + 32 + + + + 39063875391 +
+ Felipe + + Quigley + + 99 + + + + 56441560378 +
+ Malinda + + Anderson + + 18 + + + + 40096438599 +
+ Layla + + Luettgen + + 7 + + + + 33228587632 +
+ Dewitt + + Brekke + + 11 + + + + 5109190153 +
+ Anna + + Kunde + + 68 + + + + 61410436443 +
+ Morton + + Lowe + + 86 + + + + 6476064275 +
+ Marlin + + Turner + + 68 + + + + -242082456 +
+ Gerry + + Kiehn + + 50 + + + + 1729991777 +
+ Schuyler + + Thiel + + 9 + + + + 20045425563 +
+ Zola + + Cassin + + 62 + + + + 9584935096 +
+ Elaina + + Emard + + 88 + + + + 34286980411 +
+ Dorothea + + Langosh + + 41 + + + + 32180028624 +
+ Walter + + Collins + + 49 + + + + 35993354850 +
+ Lexi + + White + + 57 + + + + 30026074477 +
+ Barrett + + Stehr + + 18 + + + + 33531722640 +
+ Clay + + Muller + + 94 + + + + 21909614829 +
+ Omer + + Wolf + + 35 + + + + 41756251158 +
+ Bradly + + Williamson + + 6 + + + + 24641059277 +
+ Merle + + Stark + + 14 + + + + -264718194 +
+ Zelda + + Dach + + 5 + + + + 14326550228 +
+ Turner + + Prohaska + + 28 + + + + 252114087 +
+ Savanah + + Graham + + 35 + + + + 20940649057 +
+ Fred + + Koss + + 68 + + + + 17524839299 +
+ Kelton + + Trantow + + 97 + + + + 13896757247 +
+ Cicero + + Nienow + + 83 + + + + 32046621201 +
+ Emie + + Doyle + + 3 + + + + 14163514771 +
+ Garland + + O'Keefe + + 58 + + + + 35931322784 +
+ Kaela + + Runte + + 88 + + + + -4887628643 +
+ Josianne + + Carter + + 92 + + + + 9419223729 +
+ Myrtis + + Lynch + + 1 + + + + 34943380588 +
+ Theresa + + King + + 43 + + + + 13982047304 +
+ Molly + + Sawayn + + 88 + + + + 22783009983 +
+ Florence + + Bechtelar + + 19 + + + + 1331844171 +
+ Wiley + + Bruen + + 91 + + + + 10793865697 +
+ Moshe + + Flatley + + 96 + + + + 38430423311 +
+ Zaria + + Senger + + 22 + + + + 4743766614 +
+ Eloise + + Beier + + 84 + + + + 37982066511 +
+`; + +exports[`Storyshots Template Specialization/ConnectionTable Nested Data 1`] = ` + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Name First + + Name Last + + Sign Up Date + + Age +
+ Milan + + Jenkins + + + + 9 +
+ Melyna + + Krajcik + + + + 69 +
+ Daisha + + Olson + + + + 92 +
+ Coty + + Halvorson + + + + 31 +
+ Kenna + + Runolfsson + + + + 83 +
+ Shanny + + Orn + + + + 90 +
+ Jerome + + Crooks + + + + 3 +
+ Leonora + + Bayer + + + + 10 +
+ Zakary + + Metz + + + + 35 +
+ Ken + + Schuster + + + + 70 +
+ Haylee + + Kub + + + + 34 +
+ Curtis + + Walter + + + + 81 +
+ Melisa + + Hackett + + + + 32 +
+ Isabel + + Quigley + + + + 99 +
+ Wilburn + + Anderson + + + + 18 +
+ Terrance + + Luettgen + + + + 7 +
+ Miles + + Brekke + + + + 11 +
+ Skye + + Kunde + + + + 68 +
+ Claudine + + Lowe + + + + 86 +
+ Landen + + Turner + + + + 68 +
+ Antonia + + Kiehn + + + + 50 +
+ Dewitt + + Thiel + + + + 9 +
+ Horacio + + Cassin + + + + 62 +
+ Kathleen + + Emard + + + + 88 +
+ Ella + + Langosh + + + + 41 +
+ Jacklyn + + Collins + + + + 49 +
+ Loraine + + White + + + + 57 +
+ Christa + + Stehr + + + + 18 +
+ Giovanni + + Muller + + + + 94 +
+ Rick + + Wolf + + + + 35 +
+ George + + Williamson + + + + 6 +
+ Jessie + + Stark + + + + 14 +
+ Shaylee + + Dach + + + + 5 +
+ Carmelo + + Prohaska + + + + 28 +
+ Rebeka + + Graham + + + + 35 +
+ Kraig + + Koss + + + + 68 +
+ Brock + + Trantow + + + + 97 +
+ Marley + + Nienow + + + + 83 +
+ Kyra + + Doyle + + + + 3 +
+ Marcel + + O'Keefe + + + + 58 +
+ Bianka + + Runte + + + + 88 +
+ Fredy + + Carter + + + + 92 +
+ Zelda + + Lynch + + + + 1 +
+ Giovani + + King + + + + 43 +
+ Griffin + + Sawayn + + + + 88 +
+ Nathaniel + + Bechtelar + + + + 19 +
+ Amiya + + Bruen + + + + 91 +
+ Vivian + + Flatley + + + + 96 +
+ Lysanne + + Senger + + + + 22 +
+ Ena + + Beier + + + + 84 +
+`; + +exports[`Storyshots Template Specialization/ConnectionTable Out Of Order 1`] = ` + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Last Name + + First Name + + Sign Up Date + + Age +
+ Jenkins + + Joshua + + + + 9 +
+ Krajcik + + Lennie + + + + 69 +
+ Olson + + Ophelia + + + + 92 +
+ Halvorson + + Annabelle + + + + 31 +
+ Runolfsson + + Foster + + + + 83 +
+ Orn + + Dayton + + + + 90 +
+ Crooks + + Joshua + + + + 3 +
+ Bayer + + Jermaine + + + + 10 +
+ Metz + + Corrine + + + + 35 +
+ Schuster + + Brice + + + + 70 +
+ Kub + + Chelsey + + + + 34 +
+ Walter + + Mohammad + + + + 81 +
+ Hackett + + Polly + + + + 32 +
+ Quigley + + Felipe + + + + 99 +
+ Anderson + + Malinda + + + + 18 +
+ Luettgen + + Layla + + + + 7 +
+ Brekke + + Dewitt + + + + 11 +
+ Kunde + + Anna + + + + 68 +
+ Lowe + + Morton + + + + 86 +
+ Turner + + Marlin + + + + 68 +
+ Kiehn + + Gerry + + + + 50 +
+ Thiel + + Schuyler + + + + 9 +
+ Cassin + + Zola + + + + 62 +
+ Emard + + Elaina + + + + 88 +
+ Langosh + + Dorothea + + + + 41 +
+ Collins + + Walter + + + + 49 +
+ White + + Lexi + + + + 57 +
+ Stehr + + Barrett + + + + 18 +
+ Muller + + Clay + + + + 94 +
+ Wolf + + Omer + + + + 35 +
+ Williamson + + Bradly + + + + 6 +
+ Stark + + Merle + + + + 14 +
+ Dach + + Zelda + + + + 5 +
+ Prohaska + + Turner + + + + 28 +
+ Graham + + Savanah + + + + 35 +
+ Koss + + Fred + + + + 68 +
+ Trantow + + Kelton + + + + 97 +
+ Nienow + + Cicero + + + + 83 +
+ Doyle + + Emie + + + + 3 +
+ O'Keefe + + Garland + + + + 58 +
+ Runte + + Kaela + + + + 88 +
+ Carter + + Josianne + + + + 92 +
+ Lynch + + Myrtis + + + + 1 +
+ King + + Theresa + + + + 43 +
+ Sawayn + + Molly + + + + 88 +
+ Bechtelar + + Florence + + + + 19 +
+ Bruen + + Wiley + + + + 91 +
+ Flatley + + Moshe + + + + 96 +
+ Senger + + Zaria + + + + 22 +
+ Beier + + Eloise + + + + 84 +
+`; diff --git a/src/src/template-specializations/object-description/__snapshots__/object-description.stories.storyshot b/src/src/template-specializations/object-description/__snapshots__/object-description.stories.storyshot new file mode 100644 index 00000000..ad3acda0 --- /dev/null +++ b/src/src/template-specializations/object-description/__snapshots__/object-description.stories.storyshot @@ -0,0 +1,219 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Template Specialization/ObjectDescription Duplicate Fields 1`] = ` +
+
+ First Name +
+
+ Joshua +
+
+ Last Name +
+
+ Jenkins +
+
+ Age +
+
+ 9 +
+
+ Sign Up Date +
+
+ +
+
+ Seconds since signup +
+
+ 53620521738 +
+
+`; + +exports[`Storyshots Template Specialization/ObjectDescription Nested Data 1`] = ` +
+
+ Name First +
+
+ Milan +
+
+ Name Last +
+
+ Jenkins +
+
+ Sign Up Date +
+
+ +
+
+ Age +
+
+ 9 +
+
+`; + +exports[`Storyshots Template Specialization/ObjectDescription Object Description 1`] = ` +
+
+ First Name +
+
+ Joshua +
+
+ Last Name +
+
+ Jenkins +
+
+ Age +
+
+ 9 +
+
+ Sign Up Date +
+
+ +
+
+`; + +exports[`Storyshots Template Specialization/ObjectDescription Out Of Order 1`] = ` +
+
+ Last Name +
+
+ Jenkins +
+
+ First Name +
+
+ Joshua +
+
+ Sign Up Date +
+
+ +
+
+ Age +
+
+ 9 +
+
+`; diff --git a/src/src/templates/array-template/__snapshots__/array-template.stories.storyshot b/src/src/templates/array-template/__snapshots__/array-template.stories.storyshot new file mode 100644 index 00000000..110c8eb1 --- /dev/null +++ b/src/src/templates/array-template/__snapshots__/array-template.stories.storyshot @@ -0,0 +1,960 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Templates/ArrayTemplate Array Template 1`] = ` + +`; + +exports[`Storyshots Templates/ArrayTemplate Custom Field Wrapper 1`] = ` + +`; + +exports[`Storyshots Templates/ArrayTemplate Default No Op 1`] = ` +Array [ + "Joshua", + "Jenkins", + "9", + , + "Lennie", + "Krajcik", + "69", + , + "Ophelia", + "Olson", + "92", + , + "Annabelle", + "Halvorson", + "31", + , + "Foster", + "Runolfsson", + "83", + , +] +`; + +exports[`Storyshots Templates/ArrayTemplate Duplicate Fields 1`] = ` + +`; + +exports[`Storyshots Templates/ArrayTemplate Empty Data 1`] = `"No data received"`; + +exports[`Storyshots Templates/ArrayTemplate Nested Data 1`] = ` + +`; + +exports[`Storyshots Templates/ArrayTemplate Null Data 1`] = `"No data received"`; + +exports[`Storyshots Templates/ArrayTemplate Out Of Order 1`] = ` + +`; + +exports[`Storyshots Templates/ArrayTemplate Raw Html Wrappers 1`] = ` + +`; diff --git a/src/src/templates/connection-template/__snapshots__/connection-template.stories.storyshot b/src/src/templates/connection-template/__snapshots__/connection-template.stories.storyshot new file mode 100644 index 00000000..7ec212d9 --- /dev/null +++ b/src/src/templates/connection-template/__snapshots__/connection-template.stories.storyshot @@ -0,0 +1,676 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Templates/ConnectionTemplate Connection Template 1`] = ` + +`; + +exports[`Storyshots Templates/ConnectionTemplate Default No Op 1`] = ` +Array [ + "Joshua", + "Jenkins", + "9", + , + "Lennie", + "Krajcik", + "69", + , + "Ophelia", + "Olson", + "92", + , + "Annabelle", + "Halvorson", + "31", + , + "Foster", + "Runolfsson", + "83", + , +] +`; + +exports[`Storyshots Templates/ConnectionTemplate Duplicate Fields 1`] = ` + +`; + +exports[`Storyshots Templates/ConnectionTemplate Nested Data 1`] = ` + +`; + +exports[`Storyshots Templates/ConnectionTemplate Out Of Order 1`] = ` + +`; diff --git a/src/src/templates/object-template/__snapshots__/object-template.stories.storyshot b/src/src/templates/object-template/__snapshots__/object-template.stories.storyshot new file mode 100644 index 00000000..8c30ac87 --- /dev/null +++ b/src/src/templates/object-template/__snapshots__/object-template.stories.storyshot @@ -0,0 +1,283 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Templates/ObjectTemplate Custom Field Wrapper 1`] = ` +Array [ +
+ Joshua +
, + "Jenkins", + "9", + , +] +`; + +exports[`Storyshots Templates/ObjectTemplate Default No Op 1`] = ` +Array [ + "Joshua", + "Jenkins", + "9", + , +] +`; + +exports[`Storyshots Templates/ObjectTemplate Duplicate Fields 1`] = ` +
+
+ First Name +
+
+ Joshua +
+
+ Last Name +
+
+ Jenkins +
+
+ Age +
+
+ 9 +
+
+ Sign Up Date +
+
+ +
+
+ Epoch Time +
+
+ 1555838678262 +
+
+`; + +exports[`Storyshots Templates/ObjectTemplate Nested Data 1`] = ` +
+
+ Name First +
+
+ Milan +
+
+ Name Last +
+
+ Jenkins +
+
+ Sign Up Date +
+
+ +
+
+ Age +
+
+ 9 +
+
+`; + +exports[`Storyshots Templates/ObjectTemplate Null Data 1`] = `"No data received"`; + +exports[`Storyshots Templates/ObjectTemplate Object Template 1`] = ` +
+
+ First Name +
+
+ Joshua +
+
+ Last Name +
+
+ Jenkins +
+
+ Age +
+
+ 9 +
+
+ Sign Up Date +
+
+ +
+
+`; + +exports[`Storyshots Templates/ObjectTemplate Out Of Order 1`] = ` +
+
+ Last Name +
+
+ Jenkins +
+
+ First Name +
+
+ Joshua +
+
+ Sign Up Date +
+
+ +
+
+ Age +
+
+ 9 +
+
+`; + +exports[`Storyshots Templates/ObjectTemplate Raw Html Wrappers 1`] = ` + +`; diff --git a/src/storyshots.spec.ts b/src/storyshots.spec.ts new file mode 100644 index 00000000..4af63822 --- /dev/null +++ b/src/storyshots.spec.ts @@ -0,0 +1,7 @@ +import initStoryshots, { + multiSnapshotWithOptions, +} from '@storybook/addon-storyshots'; + +initStoryshots({ + test: multiSnapshotWithOptions(), +});