@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.
Files changed (155) hide show
  1. package/dist/assets/Color-YHDXOIA2-D6i6tiFz.js +1 -0
  2. package/dist/assets/DocsRenderer-CFRXHY34-D88vu1Xb.js +580 -0
  3. package/dist/assets/{bar-chart.stories-BEwhK613.js → bar-chart.stories-D9mtWCnD.js} +35 -35
  4. package/dist/assets/client-9BU5HM4U.js +1 -0
  5. package/dist/assets/entry-preview-D2XJoWVM.js +10 -0
  6. package/dist/assets/entry-preview-docs-z3mMcuG4.js +46 -0
  7. package/dist/assets/get-draggableData-DO0Px5pc.js +2 -0
  8. package/dist/assets/iframe-DLnw2TiW.js +217 -0
  9. package/dist/assets/index-B-BONL6g.js +1 -0
  10. package/dist/assets/index-BGqSdrBK.js +1 -0
  11. package/dist/assets/index-CVdx34fM.js +1 -0
  12. package/dist/assets/index-D3-0uUTW.js +24 -0
  13. package/dist/assets/index-Dytf1aFS.js +8 -0
  14. package/dist/assets/index-eCxJ45ll.js +9 -0
  15. package/dist/assets/jsx-runtime-Y5Ju2SGo.js +9 -0
  16. package/dist/assets/legend-BI53UIaI.js +1346 -0
  17. package/dist/assets/legend-context-BNCYpFYh.js +68 -0
  18. package/dist/assets/line-chart-BdFuLh7N.js +1 -0
  19. package/dist/assets/line-chart.stories-BVsiy8CQ.js +1130 -0
  20. package/dist/assets/{line-chart.test-case.stories-Cq5J45Io.js → line-chart.test-case.stories-DgfMW1VB.js} +2 -2
  21. package/dist/assets/pie-chart.stories-BVurv17M.js +45 -0
  22. package/dist/assets/preview-CLM2f008.js +2 -0
  23. package/dist/assets/preview-DD_OYowb.js +1 -0
  24. package/dist/assets/preview-XObsormK.js +3 -0
  25. package/dist/assets/react-18-DZY5LW1V.js +1 -0
  26. package/dist/assets/react-CxVRKATl.js +1 -0
  27. package/dist/assets/scatter-chart.stories-DnivHhIH.js +41 -0
  28. package/dist/bar-chart/utils/use-bar-chart-config.d.ts +1 -1
  29. package/dist/bar-chart/utils/use-bar-chart-options.d.ts +1 -1
  30. package/dist/common/controls-portal.d.ts +1 -1
  31. package/dist/common/helpers/container.d.ts +1 -1
  32. package/dist/common/helpers/download-pgn.d.ts +1 -1
  33. package/dist/common/hooks/use-generated-labels.d.ts +1 -1
  34. package/dist/common/hooks/use-legend-state.d.ts +1 -1
  35. package/dist/common/hooks/use-reset.d.ts +1 -1
  36. package/dist/common/legend-component/legend-interface.d.ts +1 -1
  37. package/dist/common/legend-component/legend-panel.d.ts +1 -1
  38. package/dist/common/legend-component/state/legend-context.d.ts +1 -1
  39. package/dist/favicon.svg +1 -7
  40. package/dist/iframe.html +259 -51
  41. package/dist/index.html +80 -30
  42. package/dist/index.js.js +411 -574
  43. package/dist/index.js.js.map +1 -1
  44. package/dist/index.json +1 -1
  45. package/dist/line-chart/controls/controls-interfaces.d.ts +1 -1
  46. package/dist/line-chart/hooks/use-chart-functions.d.ts +1 -1
  47. package/dist/line-chart/hooks/use-chart-options.d.ts +1 -1
  48. package/dist/line-chart/hooks/use-chart-state.d.ts +1 -1
  49. package/dist/line-chart/hooks/use-toggle-handler.d.ts +1 -1
  50. package/dist/line-chart/line-chart.interface.d.ts +1 -1
  51. package/dist/line-chart/utils/axis-scales/axis-scales.d.ts +1 -1
  52. package/dist/line-chart/utils/get-axes-ranges-from-chart.d.ts +1 -1
  53. package/dist/line-chart/utils/get-axis-range-by-type.d.ts +1 -1
  54. package/dist/nunito-sans-bold-italic.woff2 +0 -0
  55. package/dist/nunito-sans-bold.woff2 +0 -0
  56. package/dist/nunito-sans-italic.woff2 +0 -0
  57. package/dist/nunito-sans-regular.woff2 +0 -0
  58. package/dist/project.json +1 -1
  59. package/dist/sb-addons/actions-1/manager-bundle.js +3 -0
  60. package/dist/sb-addons/docs-2/manager-bundle.js +242 -0
  61. package/dist/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +3 -0
  62. package/dist/sb-addons/storybook-dark-mode-esm-preset-3/manager-bundle.js +5 -0
  63. package/dist/sb-common-assets/favicon.svg +1 -0
  64. package/dist/sb-manager/globals-module-info.js +1051 -1
  65. package/dist/sb-manager/globals-runtime.js +41591 -0
  66. package/dist/sb-manager/globals.js +48 -1
  67. package/dist/sb-manager/runtime.js +12048 -1
  68. package/dist/scatter-chart/hooks/use-scatter-chart-config.d.ts +1 -1
  69. package/dist/src/components/common/helpers/chart-utils.d.ts +1 -0
  70. package/dist/src/components/line-chart/controls/axes-options/axes-options-interfaces.d.ts +7 -5
  71. package/dist/src/components/line-chart/controls/axes-options/axes-validation.d.ts +8 -0
  72. package/dist/src/components/line-chart/controls/controls-interfaces.d.ts +1 -1
  73. package/dist/src/components/line-chart/controls/controls.d.ts +1 -4
  74. package/dist/src/components/line-chart/hooks/use-chart-state.d.ts +2 -3
  75. package/dist/src/components/line-chart/line-chart.interface.d.ts +4 -0
  76. package/dist/src/components/line-chart/state/action-types.d.ts +0 -1
  77. package/dist/src/components/line-chart/state/helpers.d.ts +13 -0
  78. package/dist/src/components/line-chart/state/state.interfaces.d.ts +3 -12
  79. package/package.json +1 -1
  80. package/dist/assets/Color-6VNJS4EI-DLbcRNMp.js +0 -1
  81. package/dist/assets/DocsRenderer-NNNQARDV-BOzykHvd.js +0 -1
  82. package/dist/assets/WithTooltip-V3YHNWJZ-BeePhoIB.js +0 -1
  83. package/dist/assets/_getPrototype-Bgn98YsR.js +0 -3
  84. package/dist/assets/chunk-HLWAVYOI-BJEcfeBO.js +0 -364
  85. package/dist/assets/entry-preview-D8lfu5jc.js +0 -1
  86. package/dist/assets/entry-preview-docs-CRyh30bF.js +0 -54
  87. package/dist/assets/formatter-SWP5E3XI-Bj1a9__W.js +0 -156
  88. package/dist/assets/get-draggableData-DhvAHrT5.js +0 -2
  89. package/dist/assets/iframe-BurE_SJm.js +0 -8
  90. package/dist/assets/index-B7LTuyD5.js +0 -1
  91. package/dist/assets/index-BXzfdmYx.js +0 -24
  92. package/dist/assets/index-CZvFZgOq.js +0 -9
  93. package/dist/assets/index-D3eZ-H7s.js +0 -1
  94. package/dist/assets/index-DrFu-skq.js +0 -6
  95. package/dist/assets/index-uubelm5h.js +0 -9
  96. package/dist/assets/isPlainObject-DdO3KXLu.js +0 -1
  97. package/dist/assets/legend-BWpTckOL.js +0 -278
  98. package/dist/assets/legend-context-BAQplG-D.js +0 -71
  99. package/dist/assets/line-chart-L0zq38Nj.js +0 -1
  100. package/dist/assets/line-chart.stories-CurD8upE.js +0 -1130
  101. package/dist/assets/pie-chart.stories-Duex2I6n.js +0 -45
  102. package/dist/assets/preview-BBDnT5_b.js +0 -30
  103. package/dist/assets/preview-D4u66u8a.js +0 -2
  104. package/dist/assets/preview-FHoZfaOb.js +0 -17
  105. package/dist/assets/react-18-Xi5cNDBV.js +0 -1
  106. package/dist/assets/scatter-chart.stories-D0618GGr.js +0 -41
  107. package/dist/assets/syntaxhighlighter-MJWPISIS-Bmhn3z6A.js +0 -1
  108. package/dist/bar-chart/bar-chart.stories.d.ts +0 -807
  109. package/dist/common/helpers/range/estimate-close-values.test.d.ts +0 -1
  110. package/dist/common/helpers/range/range.test.d.ts +0 -1
  111. package/dist/common/plugins/annotation-dragger-plugin/helpers.test.d.ts +0 -1
  112. package/dist/line-chart/__tests__/test-data/app-test-case-1.json.d.ts +0 -8733
  113. package/dist/line-chart/__tests__/test-data/app-test-case-2.json.d.ts +0 -11614
  114. package/dist/line-chart/__tests__/test-data/app-test-case-3.json.d.ts +0 -34
  115. package/dist/line-chart/__tests__/test-data/app-test-case-4.json.d.ts +0 -411
  116. package/dist/line-chart/__tests__/test-data/app-test-case-5.json.d.ts +0 -2734
  117. package/dist/line-chart/__tests__/test-data/app-test-case-6.json.d.ts +0 -2236
  118. package/dist/line-chart/controls/axes-options/axes-options-form-state.test.d.ts +0 -1
  119. package/dist/line-chart/initialize/initialize-line-chart.test.d.ts +0 -1
  120. package/dist/line-chart/line-chart.stories.d.ts +0 -1729
  121. package/dist/line-chart/line-chart.test-case.stories.d.ts +0 -29
  122. package/dist/line-chart/plugins/line-chart.minor-gridlines-plugin.test.d.ts +0 -1
  123. package/dist/line-chart/utils/__tests__/get-annotations-data.test.d.ts +0 -1
  124. package/dist/line-chart/utils/__tests__/get-axes-data-from-metasets.test.d.ts +0 -1
  125. package/dist/line-chart/utils/__tests__/get-axes-type-from-key.test.d.ts +0 -1
  126. package/dist/line-chart/utils/__tests__/get-axis-range-by-type.test.d.ts +0 -1
  127. package/dist/line-chart/utils/__tests__/get-line-chart-tooltips.test.d.ts +0 -1
  128. package/dist/line-chart/utils/axis-formatting/axis-formatting.test.d.ts +0 -1
  129. package/dist/line-chart/utils/axis-scales/axis-scales.test.d.ts +0 -1
  130. package/dist/line-chart/utils/check-custom-option/check-custom-option.test.d.ts +0 -1
  131. package/dist/line-chart/utils/datalabels-alignment/__tests__/get-alignment-condition.test.d.ts +0 -1
  132. package/dist/line-chart/utils/datalabels-alignment/__tests__/get-alignment-data.test.d.ts +0 -1
  133. package/dist/line-chart/utils/datalabels-alignment/__tests__/get-datalabels-position.test.d.ts +0 -1
  134. package/dist/line-chart/utils/translations/get-translations.test.d.ts +0 -1
  135. package/dist/pie-chart/pie-chart.stories.d.ts +0 -263
  136. package/dist/sb-addons/actions-0/manager-bundle.js +0 -3
  137. package/dist/sb-addons/actions-0/manager-bundle.js.LEGAL.txt +0 -0
  138. package/dist/sb-addons/storybook-dark-mode-esm-preset-1/manager-bundle.js +0 -5
  139. package/dist/sb-addons/storybook-dark-mode-esm-preset-1/manager-bundle.js.LEGAL.txt +0 -0
  140. package/dist/sb-common-assets/fonts.css +0 -31
  141. package/dist/sb-manager/WithTooltip-V3YHNWJZ-MXTFSDU5.js +0 -1
  142. package/dist/sb-manager/chunk-5QAFKPS7.js +0 -7
  143. package/dist/sb-manager/chunk-7PRFHFSS.js +0 -9
  144. package/dist/sb-manager/chunk-XE6LDGTE.js +0 -406
  145. package/dist/sb-manager/chunk-YDUB7CS6.js +0 -348
  146. package/dist/sb-manager/chunk-ZEU7PDD3.js +0 -1
  147. package/dist/sb-manager/formatter-SWP5E3XI-7BGIK6BL.js +0 -156
  148. package/dist/sb-manager/index.js +0 -1
  149. package/dist/sb-manager/syntaxhighlighter-MJWPISIS-JOSCT6CQ.js +0 -1
  150. package/dist/sb-preview/globals.js +0 -1
  151. package/dist/sb-preview/runtime.js +0 -112
  152. package/dist/scatter-chart/scatter-chart.stories.d.ts +0 -279
  153. package/dist/src/components/line-chart/controls/axes-options/action-types.d.ts +0 -5
  154. package/dist/src/components/line-chart/controls/axes-options/axes-options-form-state.d.ts +0 -23
  155. package/dist/stories.json +0 -1
package/dist/iframe.html CHANGED
@@ -1,35 +1,63 @@
1
- <!DOCTYPE html>
1
+ <!doctype html>
2
2
  <!--suppress HtmlUnknownTarget -->
3
3
  <html lang="en">
4
-
5
- <head>
6
- <meta charset="utf-8" />
7
- <title>Storybook</title>
8
- <meta name="viewport" content="width=device-width, initial-scale=1" />
9
-
10
- <link rel="prefetch" href="./sb-common-assets/nunito-sans-regular.woff2" as="font" type="font/woff2" crossorigin />
11
- <link rel="prefetch" href="./sb-common-assets/nunito-sans-italic.woff2" as="font" type="font/woff2" crossorigin />
12
- <link rel="prefetch" href="./sb-common-assets/nunito-sans-bold.woff2" as="font" type="font/woff2" crossorigin />
13
- <link rel="prefetch" href="./sb-common-assets/nunito-sans-bold-italic.woff2" as="font" type="font/woff2" crossorigin />
14
- <link rel="stylesheet" href="./sb-common-assets/fonts.css" />
15
-
16
- <script>
17
- window.CONFIG_TYPE = 'PRODUCTION';
18
- window.LOGLEVEL = 'info';
19
- window.FRAMEWORK_OPTIONS = {};
20
- window.CHANNEL_OPTIONS = {};
21
- window.FEATURES = {"warnOnLegacyHierarchySeparator":true,"buildStoriesJson":false,"storyStoreV7":true,"argTypeTargetsV7":true,"legacyDecoratorFileOrder":false,"disallowImplicitActionsInRenderV8":false};
22
- window.STORIES = [{"titlePrefix":"","directory":"./src/components","files":"**/*.stories.@(js|jsx|ts|tsx|mdx)","importPathMatcher":"^\\.[\\\\/](?:src\\/components(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.(js|jsx|ts|tsx|mdx))$"}];
23
- window.DOCS_OPTIONS = {"defaultName":"Docs","autodocs":true};
24
-
25
-
26
-
27
- // We do this so that "module && module.hot" etc. in Storybook source code
28
- // doesn't fail (it will simply be disabled)
29
- window.module = undefined;
30
- window.global = window;
31
- </script>
32
- <base target="_parent" />
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%; /* Hack for centering correctly in IE11 */
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
- padding: 20px;
96
- font-family: 'Nunito Sans', -apple-system, '.SFNSText-Regular', 'San Francisco',
97
- BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
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
- border: 20px solid rgb(187, 49, 49);
129
- background: #222;
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
- background: #000;
137
- color: #eee;
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: rgba(0, 0, 0, 0.1) 0 1px 3px 1px, rgba(0, 0, 0, 0.065) 0 0 0 1px;
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
- <script type="module" crossorigin src="./assets/iframe-BurE_SJm.js"></script>
363
- </head>
512
+ <script type="module" crossorigin src="./assets/iframe-DLnw2TiW.js"></script>
513
+ </head>
364
514
 
365
- <body>
366
- <div class="sb-preparing-story sb-wrapper">
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
- <pre id="error-message" class="sb-heading"></pre>
451
- <pre class="sb-errordisplay_code"><code id="error-stack"></code></pre>
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
- <div id="storybook-root"></div>
455
- <div id="storybook-docs"></div>
456
- </body>
457
-
458
- </html>
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/cli - Storybook</title>
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
- <link
13
- rel="prefetch"
14
- href="./sb-common-assets/nunito-sans-regular.woff2"
15
- as="font"
16
- type="font/woff2"
17
- crossorigin
18
- />
19
- <link
20
- rel="prefetch"
21
- href="./sb-common-assets/nunito-sans-bold.woff2"
22
- as="font"
23
- type="font/woff2"
24
- crossorigin
25
- />
26
- <link rel="stylesheet" href="./sb-common-assets/fonts.css" />
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/actions-0/manager-bundle.js" rel="modulepreload" />
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/storybook-dark-mode-esm-preset-1/manager-bundle.js" rel="modulepreload" />
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": false
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
- import './sb-addons/actions-0/manager-bundle.js';
139
+ import './sb-addons/actions-1/manager-bundle.js';
92
140
 
93
- import './sb-addons/storybook-dark-mode-esm-preset-1/manager-bundle.js';
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>