@velumweb/ui-kit 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.storybook/main.ts +14 -0
- package/.storybook/manager.ts +32 -0
- package/.storybook/preview.ts +14 -0
- package/dist/Button/Button.d.ts +32 -0
- package/dist/Button/Button.stories.d.ts +15 -0
- package/dist/Button/index.d.ts +1 -0
- package/dist/Container/Box.d.ts +33 -0
- package/dist/Container/index.d.ts +1 -0
- package/dist/Input/Input.d.ts +38 -0
- package/dist/Input/Input.stories.d.ts +14 -0
- package/dist/Input/index.d.ts +1 -0
- package/dist/Modal/Modal.d.ts +29 -0
- package/dist/Modal/Modal.stories.d.ts +13 -0
- package/dist/Modal/index.d.ts +1 -0
- package/dist/Toggle/Toggle.d.ts +18 -0
- package/dist/Toggle/Toggle.stories.d.ts +13 -0
- package/dist/Toggle/index.d.ts +1 -0
- package/dist/assets/svg-lib/3-dots-horizontal-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/about-empty-page-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/alert-square.svg +26 -0
- package/dist/assets/svg-lib/arrow-bottom-svgrepo-com.svg +9 -0
- package/dist/assets/svg-lib/arrow-left-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/arrow-right-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/arrow-top-svgrepo-com.svg +9 -0
- package/dist/assets/svg-lib/checkmark-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/clock-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/cross-svgrepo-com.svg +12 -0
- package/dist/assets/svg-lib/download-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/edit-pen-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/favorite-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/forbiden-svgrepo-com.svg +9 -0
- package/dist/assets/svg-lib/input-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/link-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/messages-alert-svgrepo-com.svg +6 -0
- package/dist/assets/svg-lib/messages-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/mic-off-svgrepo-com.svg +6 -0
- package/dist/assets/svg-lib/mic-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/music-svgrepo-com.svg +6 -0
- package/dist/assets/svg-lib/next-long-arrow-right-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/notification-alert-svgrepo-com.svg +6 -0
- package/dist/assets/svg-lib/notification-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/notifications-off-svgrepo-com.svg +6 -0
- package/dist/assets/svg-lib/party-simple-colored-svgrepo-com.svg +11 -0
- package/dist/assets/svg-lib/pattern-circles-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/play-button-simple-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/plus-outlined-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/previous-long-arrow-left-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/queue-listing-cards-svgrepo-com.svg +6 -0
- package/dist/assets/svg-lib/queue-remove-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/recent-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/remove-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/repeat-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/schedule-add-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/schedule-alert-svgrepo-com.svg +6 -0
- package/dist/assets/svg-lib/schedule-remove-svgrepo-com.svg +6 -0
- package/dist/assets/svg-lib/schedule-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/search-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/session-abandon-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/session-join-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/session-leave-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/settings-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/share-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/sound-off-svgrepo-com.svg +6 -0
- package/dist/assets/svg-lib/sound-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/spectacles-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/star-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/user-avatar-with-alert-svgrepo-com.svg +6 -0
- package/dist/assets/svg-lib/user-banned-svgrepo-com.svg +6 -0
- package/dist/assets/svg-lib/user-svgrepo-com.svg +5 -0
- package/dist/assets/svglist.png +0 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.es.d.ts +2 -0
- package/dist/index.es.js +569 -0
- package/dist/index.umd.js +6 -0
- package/dist/ui-kit.css +1 -0
- package/docs/Button/Button.d.ts +32 -0
- package/docs/Button/Button.stories.d.ts +15 -0
- package/docs/Button/index.d.ts +1 -0
- package/docs/CNAME +1 -0
- package/docs/Container/Box.d.ts +33 -0
- package/docs/Container/index.d.ts +1 -0
- package/docs/Input/Input.d.ts +38 -0
- package/docs/Input/Input.stories.d.ts +14 -0
- package/docs/Input/index.d.ts +1 -0
- package/docs/Modal/Modal.d.ts +29 -0
- package/docs/Modal/Modal.stories.d.ts +13 -0
- package/docs/Modal/index.d.ts +1 -0
- package/docs/Toggle/Toggle.d.ts +18 -0
- package/docs/Toggle/Toggle.stories.d.ts +13 -0
- package/docs/Toggle/index.d.ts +1 -0
- package/docs/assets/Button-CfaZpHIg.css +1 -0
- package/docs/assets/Button-DBH2W8EG.js +1 -0
- package/docs/assets/Button.stories-uPwy2cWr.js +34 -0
- package/docs/assets/Input-D117xj27.js +1 -0
- package/docs/assets/Input-RjFZkyU_.css +1 -0
- package/docs/assets/Input.stories-Ck4AyV-4.js +21 -0
- package/docs/assets/Modal-CWKTs3Ep.css +1 -0
- package/docs/assets/Modal.stories-3HMpRqSx.js +7 -0
- package/docs/assets/Toggle-BmcBtVup.css +1 -0
- package/docs/assets/Toggle-DiHagfS3.js +1 -0
- package/docs/assets/Toggle.stories-d01loxLD.js +9 -0
- package/docs/assets/iframe-D7bwIom8.js +1062 -0
- package/docs/assets/jsx-runtime-u17CrQMm.js +1 -0
- package/docs/assets/preload-helper-PPVm8Dsz.js +1 -0
- package/docs/assets/react-18-CW3OMC0n.js +9 -0
- package/docs/assets/svg-lib/3-dots-horizontal-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/about-empty-page-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/alert-square.svg +26 -0
- package/docs/assets/svg-lib/arrow-bottom-svgrepo-com.svg +9 -0
- package/docs/assets/svg-lib/arrow-left-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/arrow-right-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/arrow-top-svgrepo-com.svg +9 -0
- package/docs/assets/svg-lib/checkmark-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/clock-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/cross-svgrepo-com.svg +12 -0
- package/docs/assets/svg-lib/download-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/edit-pen-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/favorite-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/forbiden-svgrepo-com.svg +9 -0
- package/docs/assets/svg-lib/input-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/link-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/messages-alert-svgrepo-com.svg +6 -0
- package/docs/assets/svg-lib/messages-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/mic-off-svgrepo-com.svg +6 -0
- package/docs/assets/svg-lib/mic-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/music-svgrepo-com.svg +6 -0
- package/docs/assets/svg-lib/next-long-arrow-right-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/notification-alert-svgrepo-com.svg +6 -0
- package/docs/assets/svg-lib/notification-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/notifications-off-svgrepo-com.svg +6 -0
- package/docs/assets/svg-lib/party-simple-colored-svgrepo-com.svg +11 -0
- package/docs/assets/svg-lib/pattern-circles-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/play-button-simple-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/plus-outlined-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/previous-long-arrow-left-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/queue-listing-cards-svgrepo-com.svg +6 -0
- package/docs/assets/svg-lib/queue-remove-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/recent-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/remove-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/repeat-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/schedule-add-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/schedule-alert-svgrepo-com.svg +6 -0
- package/docs/assets/svg-lib/schedule-remove-svgrepo-com.svg +6 -0
- package/docs/assets/svg-lib/schedule-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/search-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/session-abandon-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/session-join-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/session-leave-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/settings-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/share-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/sound-off-svgrepo-com.svg +6 -0
- package/docs/assets/svg-lib/sound-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/spectacles-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/star-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/user-avatar-with-alert-svgrepo-com.svg +6 -0
- package/docs/assets/svg-lib/user-banned-svgrepo-com.svg +6 -0
- package/docs/assets/svg-lib/user-svgrepo-com.svg +5 -0
- package/docs/assets/svglist.png +0 -0
- package/docs/favicon-wrapper.svg +46 -0
- package/docs/favicon.svg +1 -0
- package/docs/iframe.html +686 -0
- package/docs/index.d.ts +5 -0
- package/docs/index.html +137 -0
- package/docs/index.json +1 -0
- package/docs/makeColors.ts +37 -0
- package/docs/notes.txt +11 -0
- package/docs/nunito-sans-bold-italic.woff2 +0 -0
- package/docs/nunito-sans-bold.woff2 +0 -0
- package/docs/nunito-sans-italic.woff2 +0 -0
- package/docs/nunito-sans-regular.woff2 +0 -0
- package/docs/project.json +1 -0
- package/docs/sb-addons/storybook-1/manager-bundle.js +3 -0
- package/docs/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +628 -0
- package/docs/sb-common-assets/favicon-wrapper.svg +46 -0
- package/docs/sb-common-assets/favicon.svg +1 -0
- package/docs/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/docs/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/docs/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/docs/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/docs/sb-manager/globals-runtime.js +75597 -0
- package/docs/sb-manager/globals.js +24 -0
- package/docs/sb-manager/manager-stores.js +23 -0
- package/docs/sb-manager/runtime.js +19698 -0
- package/docs/style_setter.js +19 -0
- package/docs/vite-inject-mocker-entry.js +2 -0
- package/index.html +7 -0
- package/package.json +37 -0
- package/public/assets/svg-lib/3-dots-horizontal-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/about-empty-page-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/alert-square.svg +26 -0
- package/public/assets/svg-lib/arrow-bottom-svgrepo-com.svg +9 -0
- package/public/assets/svg-lib/arrow-left-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/arrow-right-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/arrow-top-svgrepo-com.svg +9 -0
- package/public/assets/svg-lib/checkmark-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/clock-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/cross-svgrepo-com.svg +12 -0
- package/public/assets/svg-lib/download-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/edit-pen-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/favorite-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/forbiden-svgrepo-com.svg +9 -0
- package/public/assets/svg-lib/input-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/link-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/messages-alert-svgrepo-com.svg +6 -0
- package/public/assets/svg-lib/messages-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/mic-off-svgrepo-com.svg +6 -0
- package/public/assets/svg-lib/mic-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/music-svgrepo-com.svg +6 -0
- package/public/assets/svg-lib/next-long-arrow-right-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/notification-alert-svgrepo-com.svg +6 -0
- package/public/assets/svg-lib/notification-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/notifications-off-svgrepo-com.svg +6 -0
- package/public/assets/svg-lib/party-simple-colored-svgrepo-com.svg +11 -0
- package/public/assets/svg-lib/pattern-circles-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/play-button-simple-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/plus-outlined-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/previous-long-arrow-left-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/queue-listing-cards-svgrepo-com.svg +6 -0
- package/public/assets/svg-lib/queue-remove-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/recent-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/remove-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/repeat-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/schedule-add-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/schedule-alert-svgrepo-com.svg +6 -0
- package/public/assets/svg-lib/schedule-remove-svgrepo-com.svg +6 -0
- package/public/assets/svg-lib/schedule-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/search-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/session-abandon-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/session-join-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/session-leave-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/settings-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/share-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/sound-off-svgrepo-com.svg +6 -0
- package/public/assets/svg-lib/sound-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/spectacles-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/star-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/user-avatar-with-alert-svgrepo-com.svg +6 -0
- package/public/assets/svg-lib/user-banned-svgrepo-com.svg +6 -0
- package/public/assets/svg-lib/user-svgrepo-com.svg +5 -0
- package/public/assets/svglist.png +0 -0
- package/readme.md +9 -0
- package/src/components/Button/Button.stories.ts +64 -0
- package/src/components/Button/Button.tsx +99 -0
- package/src/components/Button/button.scss +147 -0
- package/src/components/Button/index.ts +1 -0
- package/src/components/Container/Box.tsx +83 -0
- package/src/components/Container/box.scss +41 -0
- package/src/components/Container/index.ts +1 -0
- package/src/components/Input/Input.stories.ts +49 -0
- package/src/components/Input/Input.tsx +172 -0
- package/src/components/Input/index.ts +1 -0
- package/src/components/Input/input.scss +69 -0
- package/src/components/Modal/Modal.stories.ts +33 -0
- package/src/components/Modal/Modal.tsx +125 -0
- package/src/components/Modal/index.ts +1 -0
- package/src/components/Modal/modal.scss +54 -0
- package/src/components/Toggle/Toggle.stories.ts +35 -0
- package/src/components/Toggle/Toggle.tsx +60 -0
- package/src/components/Toggle/index.ts +1 -0
- package/src/components/Toggle/toggle.scss +97 -0
- package/src/components/index.ts +5 -0
- package/src/main.scss +46 -0
- package/tsconfig.json +15 -0
- package/utils/makeColors.ts +37 -0
- package/utils/notes.txt +11 -0
- package/utils/style_setter.js +19 -0
- package/vite.config.ts +32 -0
package/docs/iframe.html
ADDED
|
@@ -0,0 +1,686 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<!--suppress HtmlUnknownTarget -->
|
|
3
|
+
<html lang="en">
|
|
4
|
+
<head><script type="module" src="./vite-inject-mocker-entry.js"></script>
|
|
5
|
+
<meta charset="utf-8" />
|
|
6
|
+
<title>Storybook</title>
|
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
8
|
+
|
|
9
|
+
<style>
|
|
10
|
+
@font-face {
|
|
11
|
+
font-family: 'Nunito Sans';
|
|
12
|
+
font-style: normal;
|
|
13
|
+
font-weight: 400;
|
|
14
|
+
font-display: swap;
|
|
15
|
+
src: url('./sb-common-assets/nunito-sans-regular.woff2') format('woff2');
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@font-face {
|
|
19
|
+
font-family: 'Nunito Sans';
|
|
20
|
+
font-style: italic;
|
|
21
|
+
font-weight: 400;
|
|
22
|
+
font-display: swap;
|
|
23
|
+
src: url('./sb-common-assets/nunito-sans-italic.woff2') format('woff2');
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@font-face {
|
|
27
|
+
font-family: 'Nunito Sans';
|
|
28
|
+
font-style: normal;
|
|
29
|
+
font-weight: 700;
|
|
30
|
+
font-display: swap;
|
|
31
|
+
src: url('./sb-common-assets/nunito-sans-bold.woff2') format('woff2');
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@font-face {
|
|
35
|
+
font-family: 'Nunito Sans';
|
|
36
|
+
font-style: italic;
|
|
37
|
+
font-weight: 700;
|
|
38
|
+
font-display: swap;
|
|
39
|
+
src: url('./sb-common-assets/nunito-sans-bold-italic.woff2') format('woff2');
|
|
40
|
+
}
|
|
41
|
+
</style>
|
|
42
|
+
|
|
43
|
+
<script>
|
|
44
|
+
window.CONFIG_TYPE = 'PRODUCTION';
|
|
45
|
+
window.LOGLEVEL = 'info';
|
|
46
|
+
window.FRAMEWORK_OPTIONS = {};
|
|
47
|
+
window.CHANNEL_OPTIONS = {};
|
|
48
|
+
window.FEATURES = {"argTypeTargetsV7":true,"legacyDecoratorFileOrder":false,"disallowImplicitActionsInRenderV8":true,"viewport":true,"highlight":true,"controls":true,"interactions":true,"actions":true,"backgrounds":true,"outline":true,"measure":true};
|
|
49
|
+
window.STORIES = [{"titlePrefix":"","directory":"./src","files":"**/*.stories.@(js|jsx|mjs|ts|tsx)","importPathMatcher":"^\\.[\\\\/](?:src(?:[\\\\/](?!\\.)(?:(?:(?!(?:^|[\\\\/])\\.).)*?)[\\\\/]|[\\\\/]|$)(?!\\.)(?=.)[^\\\\/]*?\\.stories\\.(js|jsx|mjs|ts|tsx))$"}];
|
|
50
|
+
window.DOCS_OPTIONS = {};
|
|
51
|
+
window.TAGS_OPTIONS = {};
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
// We do this so that "module && module.hot" etc. in Storybook source code
|
|
56
|
+
// doesn't fail (it will simply be disabled)
|
|
57
|
+
window.module = undefined;
|
|
58
|
+
window.global = window;
|
|
59
|
+
</script>
|
|
60
|
+
<base target="_parent" />
|
|
61
|
+
|
|
62
|
+
<style>
|
|
63
|
+
/* While we aren't showing the main block yet, but still preparing, we want everything the user has rendered, which may or may not be in #storybook-root, to be display none */
|
|
64
|
+
.sb-show-preparing-story:not(.sb-show-main) > :not(.sb-preparing-story) {
|
|
65
|
+
display: none;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.sb-show-preparing-docs:not(.sb-show-main) > :not(.sb-preparing-docs) {
|
|
69
|
+
display: none;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/* Hide our own blocks when we aren't supposed to be showing them */
|
|
73
|
+
:not(.sb-show-preparing-story) > .sb-preparing-story,
|
|
74
|
+
:not(.sb-show-preparing-docs) > .sb-preparing-docs,
|
|
75
|
+
:not(.sb-show-nopreview) > .sb-nopreview,
|
|
76
|
+
:not(.sb-show-errordisplay) > .sb-errordisplay {
|
|
77
|
+
display: none;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.sb-show-main.sb-main-centered {
|
|
81
|
+
margin: 0;
|
|
82
|
+
display: flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
min-height: 100vh;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.sb-show-main.sb-main-centered #storybook-root {
|
|
88
|
+
box-sizing: border-box;
|
|
89
|
+
margin: auto;
|
|
90
|
+
padding: 1rem;
|
|
91
|
+
max-height: 100%;
|
|
92
|
+
/* Hack for centering correctly in IE11 */
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* Vertical centering fix for IE11 */
|
|
96
|
+
@media screen and (-ms-high-contrast: none), (-ms-high-contrast: active) {
|
|
97
|
+
.sb-show-main.sb-main-centered:after {
|
|
98
|
+
content: '';
|
|
99
|
+
min-height: inherit;
|
|
100
|
+
font-size: 0;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.sb-show-main.sb-main-fullscreen {
|
|
105
|
+
margin: 0;
|
|
106
|
+
padding: 0;
|
|
107
|
+
display: block;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.sb-show-main.sb-main-padded {
|
|
111
|
+
margin: 0;
|
|
112
|
+
padding: 1rem;
|
|
113
|
+
display: block;
|
|
114
|
+
box-sizing: border-box;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.sb-wrapper {
|
|
118
|
+
position: fixed;
|
|
119
|
+
top: 0;
|
|
120
|
+
bottom: 0;
|
|
121
|
+
left: 0;
|
|
122
|
+
right: 0;
|
|
123
|
+
box-sizing: border-box;
|
|
124
|
+
|
|
125
|
+
padding: 40px;
|
|
126
|
+
font-family:
|
|
127
|
+
'Nunito Sans',
|
|
128
|
+
-apple-system,
|
|
129
|
+
'.SFNSText-Regular',
|
|
130
|
+
'San Francisco',
|
|
131
|
+
BlinkMacSystemFont,
|
|
132
|
+
'Segoe UI',
|
|
133
|
+
'Helvetica Neue',
|
|
134
|
+
Helvetica,
|
|
135
|
+
Arial,
|
|
136
|
+
sans-serif;
|
|
137
|
+
-webkit-font-smoothing: antialiased;
|
|
138
|
+
overflow: auto;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
@media (max-width: 700px) {
|
|
142
|
+
.sb-wrapper {
|
|
143
|
+
padding: 20px;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
@media (max-width: 500px) {
|
|
148
|
+
.sb-wrapper {
|
|
149
|
+
padding: 10px;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.sb-heading {
|
|
154
|
+
font-size: 14px;
|
|
155
|
+
font-weight: 600;
|
|
156
|
+
letter-spacing: 0.2px;
|
|
157
|
+
margin: 10px 0;
|
|
158
|
+
padding-right: 25px;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.sb-nopreview {
|
|
162
|
+
display: flex;
|
|
163
|
+
align-content: center;
|
|
164
|
+
justify-content: center;
|
|
165
|
+
box-sizing: border-box;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.sb-nopreview_main {
|
|
169
|
+
margin: auto;
|
|
170
|
+
padding: 30px;
|
|
171
|
+
border-radius: 10px;
|
|
172
|
+
background: rgba(0, 0, 0, 0.03);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.sb-nopreview_heading {
|
|
176
|
+
text-align: center;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.sb-errordisplay {
|
|
180
|
+
background: #f6f9fc;
|
|
181
|
+
color: black;
|
|
182
|
+
z-index: 999999;
|
|
183
|
+
width: 100vw;
|
|
184
|
+
min-height: 100vh;
|
|
185
|
+
box-sizing: border-box;
|
|
186
|
+
|
|
187
|
+
& ol {
|
|
188
|
+
padding-left: 18px;
|
|
189
|
+
margin: 0;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
& h1 {
|
|
193
|
+
font-family: Nunito Sans;
|
|
194
|
+
font-size: 22px;
|
|
195
|
+
font-weight: 400;
|
|
196
|
+
line-height: 30px;
|
|
197
|
+
font-weight: normal;
|
|
198
|
+
margin: 0;
|
|
199
|
+
|
|
200
|
+
&::before {
|
|
201
|
+
content: '';
|
|
202
|
+
display: inline-block;
|
|
203
|
+
width: 12px;
|
|
204
|
+
height: 12px;
|
|
205
|
+
background: #ff4400;
|
|
206
|
+
border-radius: 50%;
|
|
207
|
+
margin-right: 8px;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
& p,
|
|
212
|
+
& ol {
|
|
213
|
+
font-family: Nunito Sans;
|
|
214
|
+
font-size: 14px;
|
|
215
|
+
font-weight: 400;
|
|
216
|
+
line-height: 19px;
|
|
217
|
+
margin: 0;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
& li + li {
|
|
221
|
+
margin: 0;
|
|
222
|
+
padding: 0;
|
|
223
|
+
padding-top: 12px;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
& a {
|
|
227
|
+
color: currentColor;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.sb-errordisplay_main {
|
|
232
|
+
margin: auto;
|
|
233
|
+
padding: 24px;
|
|
234
|
+
display: flex;
|
|
235
|
+
box-sizing: border-box;
|
|
236
|
+
|
|
237
|
+
flex-direction: column;
|
|
238
|
+
min-height: 100%;
|
|
239
|
+
width: 100%;
|
|
240
|
+
border-radius: 6px;
|
|
241
|
+
background: white;
|
|
242
|
+
border: 1px solid #ff0000;
|
|
243
|
+
box-shadow: 0 0 64px rgba(0, 0, 0, 0.1);
|
|
244
|
+
gap: 24px;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.sb-errordisplay_code {
|
|
248
|
+
padding: 10px;
|
|
249
|
+
flex: 1;
|
|
250
|
+
background: #242424;
|
|
251
|
+
color: #c6c6c6;
|
|
252
|
+
box-sizing: border-box;
|
|
253
|
+
|
|
254
|
+
font-size: 14px;
|
|
255
|
+
font-weight: 400;
|
|
256
|
+
line-height: 19px;
|
|
257
|
+
border-radius: 4px;
|
|
258
|
+
|
|
259
|
+
font-family:
|
|
260
|
+
'Operator Mono', 'Fira Code Retina', 'Fira Code', 'FiraCode-Retina', 'Andale Mono',
|
|
261
|
+
'Lucida Console', Consolas, Monaco, monospace;
|
|
262
|
+
margin: 0;
|
|
263
|
+
overflow: auto;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.sb-errordisplay pre {
|
|
267
|
+
white-space: pre-wrap;
|
|
268
|
+
white-space: revert;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
@-webkit-keyframes sb-rotate360 {
|
|
272
|
+
from {
|
|
273
|
+
transform: rotate(0deg);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
to {
|
|
277
|
+
transform: rotate(360deg);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
@keyframes sb-rotate360 {
|
|
282
|
+
from {
|
|
283
|
+
transform: rotate(0deg);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
to {
|
|
287
|
+
transform: rotate(360deg);
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
@-webkit-keyframes sb-glow {
|
|
292
|
+
0%,
|
|
293
|
+
100% {
|
|
294
|
+
opacity: 1;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
50% {
|
|
298
|
+
opacity: 0.4;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
@keyframes sb-glow {
|
|
303
|
+
0%,
|
|
304
|
+
100% {
|
|
305
|
+
opacity: 1;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
50% {
|
|
309
|
+
opacity: 0.4;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/* We display the preparing loaders *over* the rendering story */
|
|
314
|
+
.sb-preparing-story,
|
|
315
|
+
.sb-preparing-docs {
|
|
316
|
+
background-color: white;
|
|
317
|
+
/* Maximum possible z-index. It would be better to use stacking contexts to ensure it's always
|
|
318
|
+
on top, but this isn't possible as it would require making CSS changes that could affect user code */
|
|
319
|
+
z-index: 2147483647;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.sb-loader {
|
|
323
|
+
-webkit-animation: sb-rotate360 0.7s linear infinite;
|
|
324
|
+
animation: sb-rotate360 0.7s linear infinite;
|
|
325
|
+
border-color: rgba(97, 97, 97, 0.29);
|
|
326
|
+
border-radius: 50%;
|
|
327
|
+
border-style: solid;
|
|
328
|
+
border-top-color: #646464;
|
|
329
|
+
border-width: 2px;
|
|
330
|
+
display: inline-block;
|
|
331
|
+
height: 32px;
|
|
332
|
+
left: 50%;
|
|
333
|
+
margin-left: -16px;
|
|
334
|
+
margin-top: -16px;
|
|
335
|
+
mix-blend-mode: difference;
|
|
336
|
+
overflow: hidden;
|
|
337
|
+
position: absolute;
|
|
338
|
+
top: 50%;
|
|
339
|
+
transition: all 200ms ease-out;
|
|
340
|
+
vertical-align: top;
|
|
341
|
+
width: 32px;
|
|
342
|
+
z-index: 4;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.sb-previewBlock {
|
|
346
|
+
background: #fff;
|
|
347
|
+
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
348
|
+
border-radius: 4px;
|
|
349
|
+
box-shadow: rgba(0, 0, 0, 0.1) 0 1px 3px 0;
|
|
350
|
+
margin: 25px auto 40px;
|
|
351
|
+
max-width: 600px;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.sb-previewBlock_header {
|
|
355
|
+
align-items: center;
|
|
356
|
+
box-shadow: rgba(0, 0, 0, 0.1) 0 -1px 0 0 inset;
|
|
357
|
+
display: flex;
|
|
358
|
+
gap: 14px;
|
|
359
|
+
height: 40px;
|
|
360
|
+
padding: 0 12px;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.sb-previewBlock_icon {
|
|
364
|
+
-webkit-animation: sb-glow 1.5s ease-in-out infinite;
|
|
365
|
+
animation: sb-glow 1.5s ease-in-out infinite;
|
|
366
|
+
background: #e6e6e6;
|
|
367
|
+
height: 14px;
|
|
368
|
+
width: 14px;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.sb-previewBlock_icon:last-child {
|
|
372
|
+
margin-left: auto;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.sb-previewBlock_body {
|
|
376
|
+
-webkit-animation: sb-glow 1.5s ease-in-out infinite;
|
|
377
|
+
animation: sb-glow 1.5s ease-in-out infinite;
|
|
378
|
+
height: 182px;
|
|
379
|
+
position: relative;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.sb-argstableBlock {
|
|
383
|
+
border-collapse: collapse;
|
|
384
|
+
border-spacing: 0;
|
|
385
|
+
font-size: 13px;
|
|
386
|
+
line-height: 20px;
|
|
387
|
+
margin: 25px auto 40px;
|
|
388
|
+
max-width: 600px;
|
|
389
|
+
text-align: left;
|
|
390
|
+
width: 100%;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.sb-argstableBlock th:first-of-type,
|
|
394
|
+
.sb-argstableBlock td:first-of-type {
|
|
395
|
+
padding-left: 20px;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.sb-argstableBlock th:nth-of-type(2),
|
|
399
|
+
.sb-argstableBlock td:nth-of-type(2) {
|
|
400
|
+
width: 35%;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
.sb-argstableBlock th:nth-of-type(3),
|
|
404
|
+
.sb-argstableBlock td:nth-of-type(3) {
|
|
405
|
+
width: 15%;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.sb-argstableBlock th:last-of-type,
|
|
409
|
+
.sb-argstableBlock td:last-of-type {
|
|
410
|
+
width: 25%;
|
|
411
|
+
padding-right: 20px;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
.sb-argstableBlock th span,
|
|
415
|
+
.sb-argstableBlock td span {
|
|
416
|
+
-webkit-animation: sb-glow 1.5s ease-in-out infinite;
|
|
417
|
+
animation: sb-glow 1.5s ease-in-out infinite;
|
|
418
|
+
background-color: rgba(0, 0, 0, 0.1);
|
|
419
|
+
border-radius: 0;
|
|
420
|
+
box-shadow: none;
|
|
421
|
+
color: transparent;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
.sb-argstableBlock th {
|
|
425
|
+
padding: 10px 15px;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
.sb-argstableBlock-body {
|
|
429
|
+
border-radius: 4px;
|
|
430
|
+
box-shadow:
|
|
431
|
+
rgba(0, 0, 0, 0.1) 0 1px 3px 1px,
|
|
432
|
+
rgba(0, 0, 0, 0.065) 0 0 0 1px;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.sb-argstableBlock-body tr {
|
|
436
|
+
background: transparent;
|
|
437
|
+
overflow: hidden;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
.sb-argstableBlock-body tr:not(:first-child) {
|
|
441
|
+
border-top: 1px solid #e6e6e6;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
.sb-argstableBlock-body tr:first-child td:first-child {
|
|
445
|
+
border-top-left-radius: 4px;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
.sb-argstableBlock-body tr:first-child td:last-child {
|
|
449
|
+
border-top-right-radius: 4px;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
.sb-argstableBlock-body tr:last-child td:first-child {
|
|
453
|
+
border-bottom-left-radius: 4px;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
.sb-argstableBlock-body tr:last-child td:last-child {
|
|
457
|
+
border-bottom-right-radius: 4px;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
.sb-argstableBlock-body td {
|
|
461
|
+
background: #fff;
|
|
462
|
+
padding-bottom: 10px;
|
|
463
|
+
padding-top: 10px;
|
|
464
|
+
vertical-align: top;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
.sb-argstableBlock-body td:not(:first-of-type) {
|
|
468
|
+
padding-left: 15px;
|
|
469
|
+
padding-right: 15px;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
.sb-argstableBlock-body button {
|
|
473
|
+
-webkit-animation: sb-glow 1.5s ease-in-out infinite;
|
|
474
|
+
animation: sb-glow 1.5s ease-in-out infinite;
|
|
475
|
+
background-color: rgba(0, 0, 0, 0.1);
|
|
476
|
+
border: 0;
|
|
477
|
+
border-radius: 0;
|
|
478
|
+
box-shadow: none;
|
|
479
|
+
color: transparent;
|
|
480
|
+
display: inline;
|
|
481
|
+
font-size: 12px;
|
|
482
|
+
line-height: 1;
|
|
483
|
+
padding: 10px 16px;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
.sb-argstableBlock-summary {
|
|
487
|
+
margin-top: 4px;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
.sb-argstableBlock-code {
|
|
491
|
+
margin-right: 4px;
|
|
492
|
+
margin-bottom: 4px;
|
|
493
|
+
padding: 2px 5px;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
.sb-sr-only,
|
|
497
|
+
.sb-hidden-until-focus:not(:focus) {
|
|
498
|
+
position: absolute;
|
|
499
|
+
width: 1px;
|
|
500
|
+
height: 1px;
|
|
501
|
+
padding: 0px;
|
|
502
|
+
margin: -1px;
|
|
503
|
+
overflow: hidden;
|
|
504
|
+
clip: rect(0, 0, 0, 0);
|
|
505
|
+
border: none;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
.sb-hidden-until-focus {
|
|
509
|
+
opacity: 0;
|
|
510
|
+
transition: opacity 150ms ease-out;
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
.sb-hidden-until-focus:focus {
|
|
514
|
+
opacity: 1;
|
|
515
|
+
}
|
|
516
|
+
</style>
|
|
517
|
+
|
|
518
|
+
<script>
|
|
519
|
+
/* globals window */
|
|
520
|
+
try {
|
|
521
|
+
if (window.top !== window) {
|
|
522
|
+
window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.top.__REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
523
|
+
window.__VUE_DEVTOOLS_GLOBAL_HOOK__ = window.top.__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
524
|
+
window.top.__VUE_DEVTOOLS_CONTEXT__ = window.document;
|
|
525
|
+
}
|
|
526
|
+
} catch (e) {
|
|
527
|
+
// eslint-disable-next-line no-console
|
|
528
|
+
console.warn('unable to connect to top frame for connecting dev tools');
|
|
529
|
+
}
|
|
530
|
+
</script>
|
|
531
|
+
|
|
532
|
+
<script type="module" crossorigin src="./assets/iframe-D7bwIom8.js"></script>
|
|
533
|
+
<link rel="modulepreload" crossorigin href="./assets/preload-helper-PPVm8Dsz.js">
|
|
534
|
+
</head>
|
|
535
|
+
|
|
536
|
+
<body>
|
|
537
|
+
<div class="sb-preparing-story sb-wrapper">
|
|
538
|
+
<div class="sb-loader"></div>
|
|
539
|
+
</div>
|
|
540
|
+
|
|
541
|
+
<div class="sb-preparing-docs sb-wrapper">
|
|
542
|
+
<div class="sb-previewBlock">
|
|
543
|
+
<div class="sb-previewBlock_header">
|
|
544
|
+
<div class="sb-previewBlock_icon"></div>
|
|
545
|
+
<div class="sb-previewBlock_icon"></div>
|
|
546
|
+
<div class="sb-previewBlock_icon"></div>
|
|
547
|
+
<div class="sb-previewBlock_icon"></div>
|
|
548
|
+
</div>
|
|
549
|
+
<div class="sb-previewBlock_body">
|
|
550
|
+
<div class="sb-loader"></div>
|
|
551
|
+
</div>
|
|
552
|
+
</div>
|
|
553
|
+
<table aria-hidden="true" class="sb-argstableBlock">
|
|
554
|
+
<thead class="sb-argstableBlock-head">
|
|
555
|
+
<tr>
|
|
556
|
+
<th><span>Name</span></th>
|
|
557
|
+
<th><span>Description</span></th>
|
|
558
|
+
<th><span>Default</span></th>
|
|
559
|
+
<th><span>Control </span></th>
|
|
560
|
+
</tr>
|
|
561
|
+
</thead>
|
|
562
|
+
<tbody class="sb-argstableBlock-body">
|
|
563
|
+
<tr>
|
|
564
|
+
<td><span>propertyName</span><span title="Required">*</span></td>
|
|
565
|
+
<td>
|
|
566
|
+
<div><span>This is a short description</span></div>
|
|
567
|
+
<div class="sb-argstableBlock-summary">
|
|
568
|
+
<div><span class="sb-argstableBlock-code">summary</span></div>
|
|
569
|
+
</div>
|
|
570
|
+
</td>
|
|
571
|
+
<td>
|
|
572
|
+
<div><span class="sb-argstableBlock-code">defaultValue</span></div>
|
|
573
|
+
</td>
|
|
574
|
+
<td><button>Set string</button></td>
|
|
575
|
+
</tr>
|
|
576
|
+
<tr>
|
|
577
|
+
<td><span>propertyName</span><span>*</span></td>
|
|
578
|
+
<td>
|
|
579
|
+
<div><span>This is a short description</span></div>
|
|
580
|
+
<div class="sb-argstableBlock-summary">
|
|
581
|
+
<div><span class="sb-argstableBlock-code">summary</span></div>
|
|
582
|
+
</div>
|
|
583
|
+
</td>
|
|
584
|
+
<td>
|
|
585
|
+
<div><span class="sb-argstableBlock-code">defaultValue</span></div>
|
|
586
|
+
</td>
|
|
587
|
+
<td><button>Set string</button></td>
|
|
588
|
+
</tr>
|
|
589
|
+
<tr>
|
|
590
|
+
<td><span>propertyName</span><span>*</span></td>
|
|
591
|
+
<td>
|
|
592
|
+
<div><span>This is a short description</span></div>
|
|
593
|
+
<div class="sb-argstableBlock-summary">
|
|
594
|
+
<div><span class="sb-argstableBlock-code">summary</span></div>
|
|
595
|
+
</div>
|
|
596
|
+
</td>
|
|
597
|
+
<td>
|
|
598
|
+
<div><span class="sb-argstableBlock-code">defaultValue</span></div>
|
|
599
|
+
</td>
|
|
600
|
+
<td><button>Set string</button></td>
|
|
601
|
+
</tr>
|
|
602
|
+
</tbody>
|
|
603
|
+
</table>
|
|
604
|
+
</div>
|
|
605
|
+
|
|
606
|
+
<div class="sb-nopreview sb-wrapper">
|
|
607
|
+
<div class="sb-nopreview_main">
|
|
608
|
+
<h1 class="sb-nopreview_heading sb-heading">No Preview</h1>
|
|
609
|
+
<p>Sorry, but you either have no stories or none are selected somehow.</p>
|
|
610
|
+
<ul>
|
|
611
|
+
<li>Please check the Storybook config.</li>
|
|
612
|
+
<li>Try reloading the page.</li>
|
|
613
|
+
</ul>
|
|
614
|
+
<p>
|
|
615
|
+
If the problem persists, check the browser console, or the terminal you've run Storybook from.
|
|
616
|
+
</p>
|
|
617
|
+
</div>
|
|
618
|
+
</div>
|
|
619
|
+
|
|
620
|
+
<div class="sb-errordisplay sb-wrapper">
|
|
621
|
+
<div class="sb-errordisplay_main">
|
|
622
|
+
<h1 id="error-message"></h1>
|
|
623
|
+
<p>
|
|
624
|
+
The component failed to render properly, likely due to a configuration issue in Storybook.
|
|
625
|
+
Here are some common causes and how you can address them:
|
|
626
|
+
</p>
|
|
627
|
+
<ol>
|
|
628
|
+
<li>
|
|
629
|
+
<strong>Missing Context/Providers</strong>: You can use decorators to supply specific
|
|
630
|
+
contexts or providers, which are sometimes necessary for components to render correctly. For
|
|
631
|
+
detailed instructions on using decorators, please visit the
|
|
632
|
+
<a href="https://storybook.js.org/docs/writing-stories/decorators"
|
|
633
|
+
>Decorators documentation</a
|
|
634
|
+
>.
|
|
635
|
+
</li>
|
|
636
|
+
<li>
|
|
637
|
+
<strong>Misconfigured Webpack or Vite</strong>: Verify that Storybook picks up all necessary
|
|
638
|
+
settings for loaders, plugins, and other relevant parameters. You can find step-by-step
|
|
639
|
+
guides for configuring
|
|
640
|
+
<a href="https://storybook.js.org/docs/builders/webpack">Webpack</a> or
|
|
641
|
+
<a href="https://storybook.js.org/docs/builders/vite">Vite</a>
|
|
642
|
+
with Storybook.
|
|
643
|
+
</li>
|
|
644
|
+
<li>
|
|
645
|
+
<strong>Missing Environment Variables</strong>: Your Storybook may require specific
|
|
646
|
+
environment variables to function as intended. You can set up custom environment variables
|
|
647
|
+
as outlined in the
|
|
648
|
+
<a href="https://storybook.js.org/docs/configure/environment-variables"
|
|
649
|
+
>Environment Variables documentation</a
|
|
650
|
+
>.
|
|
651
|
+
</li>
|
|
652
|
+
</ol>
|
|
653
|
+
<pre class="sb-errordisplay_code"><code id="error-stack"></code></pre>
|
|
654
|
+
</div>
|
|
655
|
+
</div>
|
|
656
|
+
|
|
657
|
+
<div id="storybook-root"></div>
|
|
658
|
+
<div id="storybook-docs"></div>
|
|
659
|
+
<script>
|
|
660
|
+
function __onViteAppLoadingError(event) {
|
|
661
|
+
const hostname = globalThis.location.hostname;
|
|
662
|
+
if (hostname !== 'localhost' && globalThis.CONFIG_TYPE === 'DEVELOPMENT') {
|
|
663
|
+
const message = `Failed to load the Storybook preview file 'vite-app.js':
|
|
664
|
+
|
|
665
|
+
It looks like you're visiting the Storybook development server on another hostname than localhost: '${hostname}', but you haven't configured the necessary security features to support this.
|
|
666
|
+
Please re-run your Storybook development server with the '--host ${hostname}' flag, or manually configure your Vite allowedHosts configuration with viteFinal.
|
|
667
|
+
|
|
668
|
+
See:`;
|
|
669
|
+
const docs = [
|
|
670
|
+
'https://storybook.js.org/docs/api/cli-options#dev',
|
|
671
|
+
'https://storybook.js.org/docs/api/main-config/main-config-vite-final',
|
|
672
|
+
'https://vite.dev/config/server-options.html#server-allowedhosts',
|
|
673
|
+
];
|
|
674
|
+
console.error(`${message}\n${docs.map((doc) => `- ${doc}`).join('\n')}`);
|
|
675
|
+
|
|
676
|
+
document.getElementById('storybook-root').innerHTML =
|
|
677
|
+
`<p style="color: red; max-width: 70ch">${message.replaceAll(
|
|
678
|
+
'\n',
|
|
679
|
+
'<br/>'
|
|
680
|
+
)}<ul>${docs.map((doc) => `<li><a href='${doc}' target='_blank'>${doc}</a></li>`).join('')}<ul></p>`;
|
|
681
|
+
return;
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
</script>
|
|
685
|
+
</body>
|
|
686
|
+
</html>
|