@oliasoft-open-source/charts-library 5.0.0 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/Color-YHDXOIA2-D6i6tiFz.js +1 -0
- package/dist/assets/DocsRenderer-CFRXHY34-D88vu1Xb.js +580 -0
- package/dist/assets/{bar-chart.stories-BEwhK613.js → bar-chart.stories-D9mtWCnD.js} +35 -35
- package/dist/assets/client-9BU5HM4U.js +1 -0
- package/dist/assets/entry-preview-D2XJoWVM.js +10 -0
- package/dist/assets/entry-preview-docs-z3mMcuG4.js +46 -0
- package/dist/assets/get-draggableData-DO0Px5pc.js +2 -0
- package/dist/assets/iframe-DLnw2TiW.js +217 -0
- package/dist/assets/index-B-BONL6g.js +1 -0
- package/dist/assets/index-BGqSdrBK.js +1 -0
- package/dist/assets/index-CVdx34fM.js +1 -0
- package/dist/assets/index-D3-0uUTW.js +24 -0
- package/dist/assets/index-Dytf1aFS.js +8 -0
- package/dist/assets/index-eCxJ45ll.js +9 -0
- package/dist/assets/jsx-runtime-Y5Ju2SGo.js +9 -0
- package/dist/assets/legend-BI53UIaI.js +1346 -0
- package/dist/assets/legend-context-BNCYpFYh.js +68 -0
- package/dist/assets/line-chart-BdFuLh7N.js +1 -0
- package/dist/assets/line-chart.stories-BVsiy8CQ.js +1130 -0
- package/dist/assets/{line-chart.test-case.stories-Cq5J45Io.js → line-chart.test-case.stories-DgfMW1VB.js} +2 -2
- package/dist/assets/pie-chart.stories-BVurv17M.js +45 -0
- package/dist/assets/preview-CLM2f008.js +2 -0
- package/dist/assets/preview-DD_OYowb.js +1 -0
- package/dist/assets/preview-XObsormK.js +3 -0
- package/dist/assets/react-18-DZY5LW1V.js +1 -0
- package/dist/assets/react-CxVRKATl.js +1 -0
- package/dist/assets/scatter-chart.stories-DnivHhIH.js +41 -0
- package/dist/bar-chart/utils/use-bar-chart-config.d.ts +1 -1
- package/dist/bar-chart/utils/use-bar-chart-options.d.ts +1 -1
- package/dist/common/controls-portal.d.ts +1 -1
- package/dist/common/helpers/container.d.ts +1 -1
- package/dist/common/helpers/download-pgn.d.ts +1 -1
- package/dist/common/hooks/use-generated-labels.d.ts +1 -1
- package/dist/common/hooks/use-legend-state.d.ts +1 -1
- package/dist/common/hooks/use-reset.d.ts +1 -1
- package/dist/common/legend-component/legend-interface.d.ts +1 -1
- package/dist/common/legend-component/legend-panel.d.ts +1 -1
- package/dist/common/legend-component/state/legend-context.d.ts +1 -1
- package/dist/favicon.svg +1 -7
- package/dist/iframe.html +259 -51
- package/dist/index.html +80 -30
- package/dist/index.js.js +411 -574
- package/dist/index.js.js.map +1 -1
- package/dist/index.json +1 -1
- package/dist/line-chart/controls/controls-interfaces.d.ts +1 -1
- package/dist/line-chart/hooks/use-chart-functions.d.ts +1 -1
- package/dist/line-chart/hooks/use-chart-options.d.ts +1 -1
- package/dist/line-chart/hooks/use-chart-state.d.ts +1 -1
- package/dist/line-chart/hooks/use-toggle-handler.d.ts +1 -1
- package/dist/line-chart/line-chart.interface.d.ts +1 -1
- package/dist/line-chart/utils/axis-scales/axis-scales.d.ts +1 -1
- package/dist/line-chart/utils/get-axes-ranges-from-chart.d.ts +1 -1
- package/dist/line-chart/utils/get-axis-range-by-type.d.ts +1 -1
- package/dist/nunito-sans-bold-italic.woff2 +0 -0
- package/dist/nunito-sans-bold.woff2 +0 -0
- package/dist/nunito-sans-italic.woff2 +0 -0
- package/dist/nunito-sans-regular.woff2 +0 -0
- package/dist/project.json +1 -1
- package/dist/sb-addons/actions-1/manager-bundle.js +3 -0
- package/dist/sb-addons/docs-2/manager-bundle.js +242 -0
- package/dist/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +3 -0
- package/dist/sb-addons/storybook-dark-mode-esm-preset-3/manager-bundle.js +5 -0
- package/dist/sb-common-assets/favicon.svg +1 -0
- package/dist/sb-manager/globals-module-info.js +1051 -1
- package/dist/sb-manager/globals-runtime.js +41591 -0
- package/dist/sb-manager/globals.js +48 -1
- package/dist/sb-manager/runtime.js +12048 -1
- package/dist/scatter-chart/hooks/use-scatter-chart-config.d.ts +1 -1
- package/dist/src/components/common/helpers/chart-utils.d.ts +1 -0
- package/dist/src/components/line-chart/controls/axes-options/axes-options-interfaces.d.ts +7 -5
- package/dist/src/components/line-chart/controls/axes-options/axes-validation.d.ts +8 -0
- package/dist/src/components/line-chart/controls/controls-interfaces.d.ts +1 -1
- package/dist/src/components/line-chart/controls/controls.d.ts +1 -4
- package/dist/src/components/line-chart/hooks/use-chart-state.d.ts +2 -3
- package/dist/src/components/line-chart/line-chart.interface.d.ts +4 -0
- package/dist/src/components/line-chart/state/action-types.d.ts +0 -1
- package/dist/src/components/line-chart/state/helpers.d.ts +13 -0
- package/dist/src/components/line-chart/state/state.interfaces.d.ts +3 -12
- package/package.json +1 -1
- package/dist/assets/Color-6VNJS4EI-DLbcRNMp.js +0 -1
- package/dist/assets/DocsRenderer-NNNQARDV-BOzykHvd.js +0 -1
- package/dist/assets/WithTooltip-V3YHNWJZ-BeePhoIB.js +0 -1
- package/dist/assets/_getPrototype-Bgn98YsR.js +0 -3
- package/dist/assets/chunk-HLWAVYOI-BJEcfeBO.js +0 -364
- package/dist/assets/entry-preview-D8lfu5jc.js +0 -1
- package/dist/assets/entry-preview-docs-CRyh30bF.js +0 -54
- package/dist/assets/formatter-SWP5E3XI-Bj1a9__W.js +0 -156
- package/dist/assets/get-draggableData-DhvAHrT5.js +0 -2
- package/dist/assets/iframe-BurE_SJm.js +0 -8
- package/dist/assets/index-B7LTuyD5.js +0 -1
- package/dist/assets/index-BXzfdmYx.js +0 -24
- package/dist/assets/index-CZvFZgOq.js +0 -9
- package/dist/assets/index-D3eZ-H7s.js +0 -1
- package/dist/assets/index-DrFu-skq.js +0 -6
- package/dist/assets/index-uubelm5h.js +0 -9
- package/dist/assets/isPlainObject-DdO3KXLu.js +0 -1
- package/dist/assets/legend-BWpTckOL.js +0 -278
- package/dist/assets/legend-context-BAQplG-D.js +0 -71
- package/dist/assets/line-chart-L0zq38Nj.js +0 -1
- package/dist/assets/line-chart.stories-CurD8upE.js +0 -1130
- package/dist/assets/pie-chart.stories-Duex2I6n.js +0 -45
- package/dist/assets/preview-BBDnT5_b.js +0 -30
- package/dist/assets/preview-D4u66u8a.js +0 -2
- package/dist/assets/preview-FHoZfaOb.js +0 -17
- package/dist/assets/react-18-Xi5cNDBV.js +0 -1
- package/dist/assets/scatter-chart.stories-D0618GGr.js +0 -41
- package/dist/assets/syntaxhighlighter-MJWPISIS-Bmhn3z6A.js +0 -1
- package/dist/bar-chart/bar-chart.stories.d.ts +0 -807
- package/dist/common/helpers/range/estimate-close-values.test.d.ts +0 -1
- package/dist/common/helpers/range/range.test.d.ts +0 -1
- package/dist/common/plugins/annotation-dragger-plugin/helpers.test.d.ts +0 -1
- package/dist/line-chart/__tests__/test-data/app-test-case-1.json.d.ts +0 -8733
- package/dist/line-chart/__tests__/test-data/app-test-case-2.json.d.ts +0 -11614
- package/dist/line-chart/__tests__/test-data/app-test-case-3.json.d.ts +0 -34
- package/dist/line-chart/__tests__/test-data/app-test-case-4.json.d.ts +0 -411
- package/dist/line-chart/__tests__/test-data/app-test-case-5.json.d.ts +0 -2734
- package/dist/line-chart/__tests__/test-data/app-test-case-6.json.d.ts +0 -2236
- package/dist/line-chart/controls/axes-options/axes-options-form-state.test.d.ts +0 -1
- package/dist/line-chart/initialize/initialize-line-chart.test.d.ts +0 -1
- package/dist/line-chart/line-chart.stories.d.ts +0 -1729
- package/dist/line-chart/line-chart.test-case.stories.d.ts +0 -29
- package/dist/line-chart/plugins/line-chart.minor-gridlines-plugin.test.d.ts +0 -1
- package/dist/line-chart/utils/__tests__/get-annotations-data.test.d.ts +0 -1
- package/dist/line-chart/utils/__tests__/get-axes-data-from-metasets.test.d.ts +0 -1
- package/dist/line-chart/utils/__tests__/get-axes-type-from-key.test.d.ts +0 -1
- package/dist/line-chart/utils/__tests__/get-axis-range-by-type.test.d.ts +0 -1
- package/dist/line-chart/utils/__tests__/get-line-chart-tooltips.test.d.ts +0 -1
- package/dist/line-chart/utils/axis-formatting/axis-formatting.test.d.ts +0 -1
- package/dist/line-chart/utils/axis-scales/axis-scales.test.d.ts +0 -1
- package/dist/line-chart/utils/check-custom-option/check-custom-option.test.d.ts +0 -1
- package/dist/line-chart/utils/datalabels-alignment/__tests__/get-alignment-condition.test.d.ts +0 -1
- package/dist/line-chart/utils/datalabels-alignment/__tests__/get-alignment-data.test.d.ts +0 -1
- package/dist/line-chart/utils/datalabels-alignment/__tests__/get-datalabels-position.test.d.ts +0 -1
- package/dist/line-chart/utils/translations/get-translations.test.d.ts +0 -1
- package/dist/pie-chart/pie-chart.stories.d.ts +0 -263
- package/dist/sb-addons/actions-0/manager-bundle.js +0 -3
- package/dist/sb-addons/actions-0/manager-bundle.js.LEGAL.txt +0 -0
- package/dist/sb-addons/storybook-dark-mode-esm-preset-1/manager-bundle.js +0 -5
- package/dist/sb-addons/storybook-dark-mode-esm-preset-1/manager-bundle.js.LEGAL.txt +0 -0
- package/dist/sb-common-assets/fonts.css +0 -31
- package/dist/sb-manager/WithTooltip-V3YHNWJZ-MXTFSDU5.js +0 -1
- package/dist/sb-manager/chunk-5QAFKPS7.js +0 -7
- package/dist/sb-manager/chunk-7PRFHFSS.js +0 -9
- package/dist/sb-manager/chunk-XE6LDGTE.js +0 -406
- package/dist/sb-manager/chunk-YDUB7CS6.js +0 -348
- package/dist/sb-manager/chunk-ZEU7PDD3.js +0 -1
- package/dist/sb-manager/formatter-SWP5E3XI-7BGIK6BL.js +0 -156
- package/dist/sb-manager/index.js +0 -1
- package/dist/sb-manager/syntaxhighlighter-MJWPISIS-JOSCT6CQ.js +0 -1
- package/dist/sb-preview/globals.js +0 -1
- package/dist/sb-preview/runtime.js +0 -112
- package/dist/scatter-chart/scatter-chart.stories.d.ts +0 -279
- package/dist/src/components/line-chart/controls/axes-options/action-types.d.ts +0 -5
- package/dist/src/components/line-chart/controls/axes-options/axes-options-form-state.d.ts +0 -23
- package/dist/stories.json +0 -1
package/dist/iframe.html
CHANGED
|
@@ -1,35 +1,63 @@
|
|
|
1
|
-
<!
|
|
1
|
+
<!doctype html>
|
|
2
2
|
<!--suppress HtmlUnknownTarget -->
|
|
3
3
|
<html lang="en">
|
|
4
|
-
|
|
5
|
-
<
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
4
|
+
<head>
|
|
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};
|
|
49
|
+
window.STORIES = [{"titlePrefix":"","directory":"./src/components","files":"**/*.stories.@(js|jsx|ts|tsx|mdx)","importPathMatcher":"^\\.[\\\\/](?:src\\/components(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.(js|jsx|ts|tsx|mdx))$"}];
|
|
50
|
+
window.DOCS_OPTIONS = {"defaultName":"Docs","autodocs":true};
|
|
51
|
+
window.TAGS_OPTIONS = {"dev-only":{"excludeFromDocsStories":true},"docs-only":{"excludeFromSidebar":true},"test-only":{"excludeFromSidebar":true,"excludeFromDocsStories":true}};
|
|
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" />
|
|
33
61
|
|
|
34
62
|
<style>
|
|
35
63
|
/* While we aren't showing the main block yet, but still preparing, we want everything the user
|
|
@@ -61,7 +89,8 @@
|
|
|
61
89
|
box-sizing: border-box;
|
|
62
90
|
margin: auto;
|
|
63
91
|
padding: 1rem;
|
|
64
|
-
max-height: 100%;
|
|
92
|
+
max-height: 100%;
|
|
93
|
+
/* Hack for centering correctly in IE11 */
|
|
65
94
|
}
|
|
66
95
|
|
|
67
96
|
/* Vertical centering fix for IE11 */
|
|
@@ -92,13 +121,36 @@
|
|
|
92
121
|
bottom: 0;
|
|
93
122
|
left: 0;
|
|
94
123
|
right: 0;
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
124
|
+
box-sizing: border-box;
|
|
125
|
+
|
|
126
|
+
padding: 40px;
|
|
127
|
+
font-family:
|
|
128
|
+
'Nunito Sans',
|
|
129
|
+
-apple-system,
|
|
130
|
+
'.SFNSText-Regular',
|
|
131
|
+
'San Francisco',
|
|
132
|
+
BlinkMacSystemFont,
|
|
133
|
+
'Segoe UI',
|
|
134
|
+
'Helvetica Neue',
|
|
135
|
+
Helvetica,
|
|
136
|
+
Arial,
|
|
137
|
+
sans-serif;
|
|
98
138
|
-webkit-font-smoothing: antialiased;
|
|
99
139
|
overflow: auto;
|
|
100
140
|
}
|
|
101
141
|
|
|
142
|
+
@media (max-width: 700px) {
|
|
143
|
+
.sb-wrapper {
|
|
144
|
+
padding: 20px;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
@media (max-width: 500px) {
|
|
149
|
+
.sb-wrapper {
|
|
150
|
+
padding: 10px;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
102
154
|
.sb-heading {
|
|
103
155
|
font-size: 14px;
|
|
104
156
|
font-weight: 600;
|
|
@@ -111,6 +163,7 @@
|
|
|
111
163
|
display: flex;
|
|
112
164
|
align-content: center;
|
|
113
165
|
justify-content: center;
|
|
166
|
+
box-sizing: border-box;
|
|
114
167
|
}
|
|
115
168
|
|
|
116
169
|
.sb-nopreview_main {
|
|
@@ -125,54 +178,133 @@
|
|
|
125
178
|
}
|
|
126
179
|
|
|
127
180
|
.sb-errordisplay {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
color: #fff;
|
|
181
|
+
background: #f6f9fc;
|
|
182
|
+
color: black;
|
|
131
183
|
z-index: 999999;
|
|
184
|
+
width: 100vw;
|
|
185
|
+
min-height: 100vh;
|
|
186
|
+
box-sizing: border-box;
|
|
187
|
+
|
|
188
|
+
& ol {
|
|
189
|
+
padding-left: 18px;
|
|
190
|
+
margin: 0;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
& h1 {
|
|
194
|
+
font-family: Nunito Sans;
|
|
195
|
+
font-size: 22px;
|
|
196
|
+
font-weight: 400;
|
|
197
|
+
line-height: 30px;
|
|
198
|
+
font-weight: normal;
|
|
199
|
+
margin: 0;
|
|
200
|
+
|
|
201
|
+
&::before {
|
|
202
|
+
content: '';
|
|
203
|
+
display: inline-block;
|
|
204
|
+
width: 12px;
|
|
205
|
+
height: 12px;
|
|
206
|
+
background: #ff4400;
|
|
207
|
+
border-radius: 50%;
|
|
208
|
+
margin-right: 8px;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
& p,
|
|
213
|
+
& ol {
|
|
214
|
+
font-family: Nunito Sans;
|
|
215
|
+
font-size: 14px;
|
|
216
|
+
font-weight: 400;
|
|
217
|
+
line-height: 19px;
|
|
218
|
+
margin: 0;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
& li + li {
|
|
222
|
+
margin: 0;
|
|
223
|
+
padding: 0;
|
|
224
|
+
padding-top: 12px;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
& a {
|
|
228
|
+
color: currentColor;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.sb-errordisplay_main {
|
|
233
|
+
margin: auto;
|
|
234
|
+
padding: 24px;
|
|
235
|
+
display: flex;
|
|
236
|
+
box-sizing: border-box;
|
|
237
|
+
|
|
238
|
+
flex-direction: column;
|
|
239
|
+
min-height: 100%;
|
|
240
|
+
width: 100%;
|
|
241
|
+
border-radius: 6px;
|
|
242
|
+
background: white;
|
|
243
|
+
border: 1px solid #ff0000;
|
|
244
|
+
box-shadow: 0 0 64px rgba(0, 0, 0, 0.1);
|
|
245
|
+
gap: 24px;
|
|
132
246
|
}
|
|
133
247
|
|
|
134
248
|
.sb-errordisplay_code {
|
|
135
249
|
padding: 10px;
|
|
136
|
-
|
|
137
|
-
|
|
250
|
+
flex: 1;
|
|
251
|
+
background: #242424;
|
|
252
|
+
color: #c6c6c6;
|
|
253
|
+
box-sizing: border-box;
|
|
254
|
+
|
|
255
|
+
font-size: 14px;
|
|
256
|
+
font-weight: 400;
|
|
257
|
+
line-height: 19px;
|
|
258
|
+
border-radius: 4px;
|
|
259
|
+
|
|
138
260
|
font-family: 'Operator Mono', 'Fira Code Retina', 'Fira Code', 'FiraCode-Retina', 'Andale Mono',
|
|
139
261
|
'Lucida Console', Consolas, Monaco, monospace;
|
|
262
|
+
margin: 0;
|
|
263
|
+
overflow: auto;
|
|
140
264
|
}
|
|
141
265
|
|
|
142
266
|
.sb-errordisplay pre {
|
|
143
267
|
white-space: pre-wrap;
|
|
268
|
+
white-space: revert;
|
|
144
269
|
}
|
|
145
270
|
|
|
146
271
|
@-webkit-keyframes sb-rotate360 {
|
|
147
272
|
from {
|
|
148
273
|
transform: rotate(0deg);
|
|
149
274
|
}
|
|
275
|
+
|
|
150
276
|
to {
|
|
151
277
|
transform: rotate(360deg);
|
|
152
278
|
}
|
|
153
279
|
}
|
|
280
|
+
|
|
154
281
|
@keyframes sb-rotate360 {
|
|
155
282
|
from {
|
|
156
283
|
transform: rotate(0deg);
|
|
157
284
|
}
|
|
285
|
+
|
|
158
286
|
to {
|
|
159
287
|
transform: rotate(360deg);
|
|
160
288
|
}
|
|
161
289
|
}
|
|
290
|
+
|
|
162
291
|
@-webkit-keyframes sb-glow {
|
|
163
292
|
0%,
|
|
164
293
|
100% {
|
|
165
294
|
opacity: 1;
|
|
166
295
|
}
|
|
296
|
+
|
|
167
297
|
50% {
|
|
168
298
|
opacity: 0.4;
|
|
169
299
|
}
|
|
170
300
|
}
|
|
301
|
+
|
|
171
302
|
@keyframes sb-glow {
|
|
172
303
|
0%,
|
|
173
304
|
100% {
|
|
174
305
|
opacity: 1;
|
|
175
306
|
}
|
|
307
|
+
|
|
176
308
|
50% {
|
|
177
309
|
opacity: 0.4;
|
|
178
310
|
}
|
|
@@ -235,6 +367,7 @@
|
|
|
235
367
|
height: 14px;
|
|
236
368
|
width: 14px;
|
|
237
369
|
}
|
|
370
|
+
|
|
238
371
|
.sb-previewBlock_icon:last-child {
|
|
239
372
|
margin-left: auto;
|
|
240
373
|
}
|
|
@@ -256,23 +389,28 @@
|
|
|
256
389
|
text-align: left;
|
|
257
390
|
width: 100%;
|
|
258
391
|
}
|
|
392
|
+
|
|
259
393
|
.sb-argstableBlock th:first-of-type,
|
|
260
394
|
.sb-argstableBlock td:first-of-type {
|
|
261
395
|
padding-left: 20px;
|
|
262
396
|
}
|
|
397
|
+
|
|
263
398
|
.sb-argstableBlock th:nth-of-type(2),
|
|
264
399
|
.sb-argstableBlock td:nth-of-type(2) {
|
|
265
400
|
width: 35%;
|
|
266
401
|
}
|
|
402
|
+
|
|
267
403
|
.sb-argstableBlock th:nth-of-type(3),
|
|
268
404
|
.sb-argstableBlock td:nth-of-type(3) {
|
|
269
405
|
width: 15%;
|
|
270
406
|
}
|
|
407
|
+
|
|
271
408
|
.sb-argstableBlock th:last-of-type,
|
|
272
409
|
.sb-argstableBlock td:last-of-type {
|
|
273
410
|
width: 25%;
|
|
274
411
|
padding-right: 20px;
|
|
275
412
|
}
|
|
413
|
+
|
|
276
414
|
.sb-argstableBlock th span,
|
|
277
415
|
.sb-argstableBlock td span {
|
|
278
416
|
-webkit-animation: sb-glow 1.5s ease-in-out infinite;
|
|
@@ -282,43 +420,55 @@
|
|
|
282
420
|
box-shadow: none;
|
|
283
421
|
color: transparent;
|
|
284
422
|
}
|
|
423
|
+
|
|
285
424
|
.sb-argstableBlock th {
|
|
286
425
|
padding: 10px 15px;
|
|
287
426
|
}
|
|
288
427
|
|
|
289
428
|
.sb-argstableBlock-body {
|
|
290
429
|
border-radius: 4px;
|
|
291
|
-
box-shadow:
|
|
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;
|
|
292
433
|
}
|
|
434
|
+
|
|
293
435
|
.sb-argstableBlock-body tr {
|
|
294
436
|
background: transparent;
|
|
295
437
|
overflow: hidden;
|
|
296
438
|
}
|
|
439
|
+
|
|
297
440
|
.sb-argstableBlock-body tr:not(:first-child) {
|
|
298
441
|
border-top: 1px solid #e6e6e6;
|
|
299
442
|
}
|
|
443
|
+
|
|
300
444
|
.sb-argstableBlock-body tr:first-child td:first-child {
|
|
301
445
|
border-top-left-radius: 4px;
|
|
302
446
|
}
|
|
447
|
+
|
|
303
448
|
.sb-argstableBlock-body tr:first-child td:last-child {
|
|
304
449
|
border-top-right-radius: 4px;
|
|
305
450
|
}
|
|
451
|
+
|
|
306
452
|
.sb-argstableBlock-body tr:last-child td:first-child {
|
|
307
453
|
border-bottom-left-radius: 4px;
|
|
308
454
|
}
|
|
455
|
+
|
|
309
456
|
.sb-argstableBlock-body tr:last-child td:last-child {
|
|
310
457
|
border-bottom-right-radius: 4px;
|
|
311
458
|
}
|
|
459
|
+
|
|
312
460
|
.sb-argstableBlock-body td {
|
|
313
461
|
background: #fff;
|
|
314
462
|
padding-bottom: 10px;
|
|
315
463
|
padding-top: 10px;
|
|
316
464
|
vertical-align: top;
|
|
317
465
|
}
|
|
466
|
+
|
|
318
467
|
.sb-argstableBlock-body td:not(:first-of-type) {
|
|
319
468
|
padding-left: 15px;
|
|
320
469
|
padding-right: 15px;
|
|
321
470
|
}
|
|
471
|
+
|
|
322
472
|
.sb-argstableBlock-body button {
|
|
323
473
|
-webkit-animation: sb-glow 1.5s ease-in-out infinite;
|
|
324
474
|
animation: sb-glow 1.5s ease-in-out infinite;
|
|
@@ -359,11 +509,11 @@
|
|
|
359
509
|
}
|
|
360
510
|
</script>
|
|
361
511
|
|
|
362
|
-
|
|
363
|
-
</head>
|
|
512
|
+
<script type="module" crossorigin src="./assets/iframe-DLnw2TiW.js"></script>
|
|
513
|
+
</head>
|
|
364
514
|
|
|
365
|
-
<body>
|
|
366
|
-
|
|
515
|
+
<body>
|
|
516
|
+
<div class="sb-preparing-story sb-wrapper">
|
|
367
517
|
<div class="sb-loader"></div>
|
|
368
518
|
</div>
|
|
369
519
|
|
|
@@ -447,12 +597,70 @@
|
|
|
447
597
|
</div>
|
|
448
598
|
|
|
449
599
|
<div class="sb-errordisplay sb-wrapper">
|
|
450
|
-
<
|
|
451
|
-
|
|
600
|
+
<div class="sb-errordisplay_main">
|
|
601
|
+
<h1 id="error-message"></h1>
|
|
602
|
+
<p>
|
|
603
|
+
The component failed to render properly, likely due to a configuration issue in Storybook.
|
|
604
|
+
Here are some common causes and how you can address them:
|
|
605
|
+
</p>
|
|
606
|
+
<ol>
|
|
607
|
+
<li>
|
|
608
|
+
<strong>Missing Context/Providers</strong>: You can use decorators to supply specific
|
|
609
|
+
contexts or providers, which are sometimes necessary for components to render correctly. For
|
|
610
|
+
detailed instructions on using decorators, please visit the
|
|
611
|
+
<a href="https://storybook.js.org/docs/writing-stories/decorators"
|
|
612
|
+
>Decorators documentation</a
|
|
613
|
+
>.
|
|
614
|
+
</li>
|
|
615
|
+
<li>
|
|
616
|
+
<strong>Misconfigured Webpack or Vite</strong>: Verify that Storybook picks up all necessary
|
|
617
|
+
settings for loaders, plugins, and other relevant parameters. You can find step-by-step
|
|
618
|
+
guides for configuring
|
|
619
|
+
<a href="https://storybook.js.org/docs/builders/webpack">Webpack</a> or
|
|
620
|
+
<a href="https://storybook.js.org/docs/builders/vite">Vite</a>
|
|
621
|
+
with Storybook.
|
|
622
|
+
</li>
|
|
623
|
+
<li>
|
|
624
|
+
<strong>Missing Environment Variables</strong>: Your Storybook may require specific
|
|
625
|
+
environment variables to function as intended. You can set up custom environment variables
|
|
626
|
+
as outlined in the
|
|
627
|
+
<a href="https://storybook.js.org/docs/configure/environment-variables"
|
|
628
|
+
>Environment Variables documentation</a
|
|
629
|
+
>.
|
|
630
|
+
</li>
|
|
631
|
+
</ol>
|
|
632
|
+
<pre class="sb-errordisplay_code"><code id="error-stack"></code></pre>
|
|
633
|
+
</div>
|
|
452
634
|
</div>
|
|
453
635
|
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
636
|
+
<div id="storybook-root"></div>
|
|
637
|
+
<div id="storybook-docs"></div>
|
|
638
|
+
<script>
|
|
639
|
+
// eslint-disable-next-line no-underscore-dangle, @typescript-eslint/naming-convention
|
|
640
|
+
function __onViteAppLoadingError(event) {
|
|
641
|
+
const hostname = globalThis.location.hostname;
|
|
642
|
+
if (hostname !== 'localhost' && globalThis.CONFIG_TYPE === 'DEVELOPMENT') {
|
|
643
|
+
const message = `Failed to load the Storybook preview file 'vite-app.js':
|
|
644
|
+
|
|
645
|
+
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.
|
|
646
|
+
Please re-run your Storybook development server with the '--host ${hostname}' flag, or manually configure your Vite allowedHosts configuration with viteFinal.
|
|
647
|
+
|
|
648
|
+
See:`;
|
|
649
|
+
const docs = [
|
|
650
|
+
'https://storybook.js.org/docs/api/cli-options#dev',
|
|
651
|
+
'https://storybook.js.org/docs/api/main-config/main-config-vite-final',
|
|
652
|
+
'https://vite.dev/config/server-options.html#server-allowedhosts',
|
|
653
|
+
];
|
|
654
|
+
console.error(`${message}\n${docs.map((doc) => `- ${doc}`).join('\n')}`);
|
|
655
|
+
|
|
656
|
+
document.getElementById('storybook-root').innerHTML =
|
|
657
|
+
`<p style="color: red; max-width: 70ch">${message.replaceAll(
|
|
658
|
+
'\n',
|
|
659
|
+
'<br/>'
|
|
660
|
+
)}<ul>${docs.map((doc) => `<li><a href='${doc}' target='_blank'>${doc}</a></li>`).join('')}<ul></p>`;
|
|
661
|
+
return;
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
</script>
|
|
665
|
+
</body>
|
|
666
|
+
</html>
|
package/dist/index.html
CHANGED
|
@@ -3,34 +3,56 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8" />
|
|
5
5
|
|
|
6
|
-
<title>@storybook/
|
|
7
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
+
<title>@storybook/core - Storybook</title>
|
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
<link rel="icon" type="image/svg+xml" href="./favicon.svg" />
|
|
11
11
|
|
|
12
|
-
<
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
12
|
+
<style>
|
|
13
|
+
@font-face {
|
|
14
|
+
font-family: 'Nunito Sans';
|
|
15
|
+
font-style: normal;
|
|
16
|
+
font-weight: 400;
|
|
17
|
+
font-display: swap;
|
|
18
|
+
src: url('./sb-common-assets/nunito-sans-regular.woff2') format('woff2');
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@font-face {
|
|
22
|
+
font-family: 'Nunito Sans';
|
|
23
|
+
font-style: italic;
|
|
24
|
+
font-weight: 400;
|
|
25
|
+
font-display: swap;
|
|
26
|
+
src: url('./sb-common-assets/nunito-sans-italic.woff2') format('woff2');
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@font-face {
|
|
30
|
+
font-family: 'Nunito Sans';
|
|
31
|
+
font-style: normal;
|
|
32
|
+
font-weight: 700;
|
|
33
|
+
font-display: swap;
|
|
34
|
+
src: url('./sb-common-assets/nunito-sans-bold.woff2') format('woff2');
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@font-face {
|
|
38
|
+
font-family: 'Nunito Sans';
|
|
39
|
+
font-style: italic;
|
|
40
|
+
font-weight: 700;
|
|
41
|
+
font-display: swap;
|
|
42
|
+
src: url('./sb-common-assets/nunito-sans-bold-italic.woff2') format('woff2');
|
|
43
|
+
}
|
|
44
|
+
</style>
|
|
27
45
|
|
|
28
46
|
<link href="./sb-manager/runtime.js" rel="modulepreload" />
|
|
29
47
|
|
|
30
48
|
|
|
31
|
-
<link href="./sb-addons/
|
|
49
|
+
<link href="./sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js" rel="modulepreload" />
|
|
50
|
+
|
|
51
|
+
<link href="./sb-addons/actions-1/manager-bundle.js" rel="modulepreload" />
|
|
32
52
|
|
|
33
|
-
<link href="./sb-addons/
|
|
53
|
+
<link href="./sb-addons/docs-2/manager-bundle.js" rel="modulepreload" />
|
|
54
|
+
|
|
55
|
+
<link href="./sb-addons/storybook-dark-mode-esm-preset-3/manager-bundle.js" rel="modulepreload" />
|
|
34
56
|
|
|
35
57
|
|
|
36
58
|
<style>
|
|
@@ -49,12 +71,9 @@
|
|
|
49
71
|
|
|
50
72
|
|
|
51
73
|
window['FEATURES'] = {
|
|
52
|
-
"warnOnLegacyHierarchySeparator": true,
|
|
53
|
-
"buildStoriesJson": false,
|
|
54
|
-
"storyStoreV7": true,
|
|
55
74
|
"argTypeTargetsV7": true,
|
|
56
75
|
"legacyDecoratorFileOrder": false,
|
|
57
|
-
"disallowImplicitActionsInRenderV8":
|
|
76
|
+
"disallowImplicitActionsInRenderV8": true
|
|
58
77
|
};
|
|
59
78
|
|
|
60
79
|
|
|
@@ -81,19 +100,50 @@
|
|
|
81
100
|
|
|
82
101
|
|
|
83
102
|
|
|
103
|
+
|
|
104
|
+
window['TAGS_OPTIONS'] = {
|
|
105
|
+
"dev-only": {
|
|
106
|
+
"excludeFromDocsStories": true
|
|
107
|
+
},
|
|
108
|
+
"docs-only": {
|
|
109
|
+
"excludeFromSidebar": true
|
|
110
|
+
},
|
|
111
|
+
"test-only": {
|
|
112
|
+
"excludeFromSidebar": true,
|
|
113
|
+
"excludeFromDocsStories": true
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
window['STORYBOOK_RENDERER'] = "react";
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
window['STORYBOOK_BUILDER'] = "@storybook/builder-vite";
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
window['STORYBOOK_FRAMEWORK'] = "@storybook/react-vite";
|
|
128
|
+
|
|
129
|
+
|
|
84
130
|
</script>
|
|
85
131
|
|
|
86
132
|
|
|
87
133
|
<script type="module">
|
|
88
|
-
import './sb-manager/runtime.js';
|
|
89
|
-
|
|
134
|
+
import './sb-manager/globals-runtime.js';
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
import './sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js';
|
|
90
138
|
|
|
91
|
-
|
|
139
|
+
import './sb-addons/actions-1/manager-bundle.js';
|
|
92
140
|
|
|
93
|
-
|
|
141
|
+
import './sb-addons/docs-2/manager-bundle.js';
|
|
94
142
|
|
|
143
|
+
import './sb-addons/storybook-dark-mode-esm-preset-3/manager-bundle.js';
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
import './sb-manager/runtime.js';
|
|
95
147
|
</script>
|
|
96
|
-
|
|
97
|
-
<link href="./sb-preview/runtime.js" rel="prefetch" as="script" />
|
|
98
148
|
</body>
|
|
99
|
-
</html>
|
|
149
|
+
</html>
|