storybook 9.0.0-alpha.0 → 9.0.0-alpha.2

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 (211) hide show
  1. package/README.md +31 -29
  2. package/assets/browser/favicon.svg +1 -0
  3. package/assets/browser/nunito-sans-bold-italic.woff2 +0 -0
  4. package/assets/browser/nunito-sans-bold.woff2 +0 -0
  5. package/assets/browser/nunito-sans-italic.woff2 +0 -0
  6. package/assets/browser/nunito-sans-regular.woff2 +0 -0
  7. package/assets/docs/message-reference.png +0 -0
  8. package/assets/server/addon.tsconfig.json +6 -0
  9. package/assets/server/base-preview-body.html +119 -0
  10. package/assets/server/base-preview-head.html +451 -0
  11. package/assets/server/template.ejs +87 -0
  12. package/bin/index.cjs +1 -1
  13. package/dist/babel/index.cjs +54034 -0
  14. package/dist/babel/index.d.ts +7488 -0
  15. package/dist/babel/index.js +54044 -0
  16. package/dist/bin/index.cjs +124 -0
  17. package/dist/bin/index.js +118 -0
  18. package/dist/builder-manager/index.cjs +2167 -0
  19. package/dist/builder-manager/index.d.ts +19 -0
  20. package/dist/builder-manager/index.js +2189 -0
  21. package/dist/channels/index.cjs +1938 -0
  22. package/dist/channels/index.d.ts +108 -0
  23. package/dist/channels/index.js +1885 -0
  24. package/dist/cli/bin/index.cjs +2687 -0
  25. package/dist/cli/bin/index.d.ts +2 -0
  26. package/dist/cli/bin/index.js +2707 -0
  27. package/dist/cli/index.cjs +17327 -0
  28. package/dist/cli/index.d.ts +209 -0
  29. package/dist/cli/index.js +17349 -0
  30. package/dist/client-logger/index.cjs +112 -0
  31. package/dist/client-logger/index.d.ts +29 -0
  32. package/dist/client-logger/index.js +70 -0
  33. package/dist/common/index.cjs +20558 -0
  34. package/dist/common/index.d.ts +955 -0
  35. package/dist/common/index.js +20643 -0
  36. package/dist/components/index.cjs +30056 -0
  37. package/dist/components/index.d.ts +1423 -0
  38. package/dist/components/index.js +25416 -0
  39. package/dist/core-events/index.cjs +167 -0
  40. package/dist/core-events/index.d.ts +313 -0
  41. package/dist/core-events/index.js +149 -0
  42. package/dist/core-server/index.cjs +37872 -0
  43. package/dist/core-server/index.d.ts +462 -0
  44. package/dist/core-server/index.js +37966 -0
  45. package/dist/core-server/presets/common-manager.js +28 -0
  46. package/dist/core-server/presets/common-override-preset.cjs +4824 -0
  47. package/dist/core-server/presets/common-override-preset.js +4829 -0
  48. package/dist/core-server/presets/common-preset.cjs +10228 -0
  49. package/dist/core-server/presets/common-preset.js +10306 -0
  50. package/dist/csf/index.cjs +223 -0
  51. package/dist/csf/index.d.ts +752 -0
  52. package/dist/csf/index.js +216 -0
  53. package/dist/csf-tools/index.cjs +1422 -0
  54. package/dist/csf-tools/index.d.ts +250 -0
  55. package/dist/csf-tools/index.js +1439 -0
  56. package/dist/docs-tools/index.cjs +923 -0
  57. package/dist/docs-tools/index.d.ts +162 -0
  58. package/dist/docs-tools/index.js +909 -0
  59. package/dist/index.cjs +17 -1
  60. package/dist/index.d.ts +1 -1
  61. package/dist/index.js +2 -7
  62. package/dist/instrumenter/index.cjs +3273 -0
  63. package/dist/instrumenter/index.d.ts +104 -0
  64. package/dist/instrumenter/index.js +4800 -0
  65. package/dist/manager/globals-module-info.cjs +666 -0
  66. package/dist/manager/globals-module-info.d.ts +36 -0
  67. package/dist/manager/globals-module-info.js +653 -0
  68. package/dist/manager/globals-runtime.js +41567 -0
  69. package/dist/manager/globals.cjs +43 -0
  70. package/dist/manager/globals.d.ts +21 -0
  71. package/dist/manager/globals.js +30 -0
  72. package/dist/manager/runtime.js +12043 -0
  73. package/dist/manager-api/index.cjs +10772 -0
  74. package/dist/manager-api/index.d.ts +1211 -0
  75. package/dist/manager-api/index.js +4547 -0
  76. package/dist/manager-errors.d.ts +65 -0
  77. package/dist/manager-errors.js +83 -0
  78. package/dist/node-logger/index.cjs +1642 -0
  79. package/dist/node-logger/index.d.ts +117 -0
  80. package/dist/node-logger/index.js +1652 -0
  81. package/dist/preview/globals.cjs +34 -0
  82. package/dist/preview/globals.d.ts +12 -0
  83. package/dist/preview/globals.js +21 -0
  84. package/dist/preview/runtime.js +7723 -0
  85. package/dist/preview-api/index.cjs +5658 -0
  86. package/dist/preview-api/index.d.ts +1356 -0
  87. package/dist/preview-api/index.js +5665 -0
  88. package/dist/preview-errors.cjs +486 -0
  89. package/dist/preview-errors.d.ts +188 -0
  90. package/dist/preview-errors.js +433 -0
  91. package/dist/router/index.cjs +3320 -0
  92. package/dist/router/index.d.ts +385 -0
  93. package/dist/router/index.js +1849 -0
  94. package/dist/server-errors.cjs +710 -0
  95. package/dist/server-errors.d.ts +272 -0
  96. package/dist/server-errors.js +711 -0
  97. package/dist/telemetry/index.cjs +3683 -0
  98. package/dist/telemetry/index.d.ts +112 -0
  99. package/dist/telemetry/index.js +3720 -0
  100. package/dist/theming/create.cjs +2422 -0
  101. package/dist/theming/create.d.ts +50 -0
  102. package/dist/theming/create.js +990 -0
  103. package/dist/theming/index.cjs +4832 -0
  104. package/dist/theming/index.d.ts +11939 -0
  105. package/dist/theming/index.js +3253 -0
  106. package/dist/types/index.cjs +27 -0
  107. package/dist/types/index.d.ts +2541 -0
  108. package/dist/types/index.js +7 -0
  109. package/package.json +308 -212
  110. package/.eslintrc.cjs +0 -31
  111. package/__mocks__/@aw-web-design/x-default-browser.js +0 -2
  112. package/core/babel/index.cjs +0 -1
  113. package/core/babel/index.d.ts +0 -2
  114. package/core/babel/index.js +0 -1
  115. package/core/builder-manager/index.cjs +0 -1
  116. package/core/builder-manager/index.d.ts +0 -2
  117. package/core/builder-manager/index.js +0 -1
  118. package/core/channels/index.cjs +0 -1
  119. package/core/channels/index.d.ts +0 -2
  120. package/core/channels/index.js +0 -1
  121. package/core/cli/bin/index.cjs +0 -1
  122. package/core/cli/bin/index.d.ts +0 -2
  123. package/core/cli/bin/index.js +0 -1
  124. package/core/cli/index.cjs +0 -1
  125. package/core/cli/index.d.ts +0 -2
  126. package/core/cli/index.js +0 -1
  127. package/core/client-logger/index.cjs +0 -1
  128. package/core/client-logger/index.d.ts +0 -2
  129. package/core/client-logger/index.js +0 -1
  130. package/core/common/index.cjs +0 -1
  131. package/core/common/index.d.ts +0 -2
  132. package/core/common/index.js +0 -1
  133. package/core/components/index.cjs +0 -1
  134. package/core/components/index.d.ts +0 -2
  135. package/core/components/index.js +0 -1
  136. package/core/core-events/index.cjs +0 -1
  137. package/core/core-events/index.d.ts +0 -2
  138. package/core/core-events/index.js +0 -1
  139. package/core/core-server/index.cjs +0 -1
  140. package/core/core-server/index.d.ts +0 -2
  141. package/core/core-server/index.js +0 -1
  142. package/core/core-server/presets/common-manager.js +0 -1
  143. package/core/core-server/presets/common-override-preset.cjs +0 -1
  144. package/core/core-server/presets/common-override-preset.js +0 -1
  145. package/core/core-server/presets/common-preset.cjs +0 -1
  146. package/core/core-server/presets/common-preset.js +0 -1
  147. package/core/csf/index.cjs +0 -1
  148. package/core/csf/index.d.ts +0 -2
  149. package/core/csf/index.js +0 -1
  150. package/core/csf-tools/index.cjs +0 -1
  151. package/core/csf-tools/index.d.ts +0 -2
  152. package/core/csf-tools/index.js +0 -1
  153. package/core/docs-tools/index.cjs +0 -1
  154. package/core/docs-tools/index.d.ts +0 -2
  155. package/core/docs-tools/index.js +0 -1
  156. package/core/index.cjs +0 -1
  157. package/core/index.d.ts +0 -2
  158. package/core/index.js +0 -1
  159. package/core/manager/globals-module-info.cjs +0 -1
  160. package/core/manager/globals-module-info.d.ts +0 -2
  161. package/core/manager/globals-module-info.js +0 -1
  162. package/core/manager/globals-runtime.js +0 -1
  163. package/core/manager/globals.cjs +0 -1
  164. package/core/manager/globals.d.ts +0 -2
  165. package/core/manager/globals.js +0 -1
  166. package/core/manager-api/index.cjs +0 -1
  167. package/core/manager-api/index.d.ts +0 -2
  168. package/core/manager-api/index.js +0 -1
  169. package/core/manager-errors.d.ts +0 -2
  170. package/core/manager-errors.js +0 -1
  171. package/core/node-logger/index.cjs +0 -1
  172. package/core/node-logger/index.d.ts +0 -2
  173. package/core/node-logger/index.js +0 -1
  174. package/core/preview/globals.cjs +0 -1
  175. package/core/preview/globals.d.ts +0 -2
  176. package/core/preview/globals.js +0 -1
  177. package/core/preview/runtime.js +0 -1
  178. package/core/preview-api/index.cjs +0 -1
  179. package/core/preview-api/index.d.ts +0 -2
  180. package/core/preview-api/index.js +0 -1
  181. package/core/preview-errors.cjs +0 -1
  182. package/core/preview-errors.d.ts +0 -2
  183. package/core/preview-errors.js +0 -1
  184. package/core/router/index.cjs +0 -1
  185. package/core/router/index.d.ts +0 -2
  186. package/core/router/index.js +0 -1
  187. package/core/server-errors.cjs +0 -1
  188. package/core/server-errors.d.ts +0 -2
  189. package/core/server-errors.js +0 -1
  190. package/core/telemetry/index.cjs +0 -1
  191. package/core/telemetry/index.d.ts +0 -2
  192. package/core/telemetry/index.js +0 -1
  193. package/core/theming/create.cjs +0 -1
  194. package/core/theming/create.d.ts +0 -2
  195. package/core/theming/create.js +0 -1
  196. package/core/theming/index.cjs +0 -1
  197. package/core/theming/index.d.ts +0 -2
  198. package/core/theming/index.js +0 -1
  199. package/core/types/index.cjs +0 -1
  200. package/core/types/index.d.ts +0 -2
  201. package/core/types/index.js +0 -1
  202. package/core.cjs +0 -0
  203. package/core.d.ts +0 -0
  204. package/core.js +0 -1
  205. package/dist/chunk-OWLSIX54.js +0 -8
  206. package/dist/core-path.cjs +0 -1
  207. package/dist/core-path.d.ts +0 -3
  208. package/dist/core-path.js +0 -9
  209. package/dist/proxy.cjs +0 -1
  210. package/dist/proxy.d.ts +0 -2
  211. package/dist/proxy.js +0 -9
@@ -0,0 +1,990 @@
1
+ var ie = Object.defineProperty;
2
+ var n = (r, e) => ie(r, "name", { value: e, configurable: !0 });
3
+
4
+ // ../node_modules/@babel/runtime/helpers/esm/extends.js
5
+ function v() {
6
+ return v = Object.assign ? Object.assign.bind() : function(r) {
7
+ for (var e = 1; e < arguments.length; e++) {
8
+ var t = arguments[e];
9
+ for (var a in t) ({}).hasOwnProperty.call(t, a) && (r[a] = t[a]);
10
+ }
11
+ return r;
12
+ }, v.apply(null, arguments);
13
+ }
14
+ n(v, "_extends");
15
+
16
+ // ../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
17
+ function q(r) {
18
+ if (r === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
19
+ return r;
20
+ }
21
+ n(q, "_assertThisInitialized");
22
+
23
+ // ../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
24
+ function m(r, e) {
25
+ return m = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, a) {
26
+ return t.__proto__ = a, t;
27
+ }, m(r, e);
28
+ }
29
+ n(m, "_setPrototypeOf");
30
+
31
+ // ../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
32
+ function U(r, e) {
33
+ r.prototype = Object.create(e.prototype), r.prototype.constructor = r, m(r, e);
34
+ }
35
+ n(U, "_inheritsLoose");
36
+
37
+ // ../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
38
+ function F(r) {
39
+ return F = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
40
+ return e.__proto__ || Object.getPrototypeOf(e);
41
+ }, F(r);
42
+ }
43
+ n(F, "_getPrototypeOf");
44
+
45
+ // ../node_modules/@babel/runtime/helpers/esm/isNativeFunction.js
46
+ function V(r) {
47
+ try {
48
+ return Function.toString.call(r).indexOf("[native code]") !== -1;
49
+ } catch {
50
+ return typeof r == "function";
51
+ }
52
+ }
53
+ n(V, "_isNativeFunction");
54
+
55
+ // ../node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
56
+ function T() {
57
+ try {
58
+ var r = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
59
+ }));
60
+ } catch {
61
+ }
62
+ return (T = /* @__PURE__ */ n(function() {
63
+ return !!r;
64
+ }, "_isNativeReflectConstruct"))();
65
+ }
66
+ n(T, "_isNativeReflectConstruct");
67
+
68
+ // ../node_modules/@babel/runtime/helpers/esm/construct.js
69
+ function N(r, e, t) {
70
+ if (T()) return Reflect.construct.apply(null, arguments);
71
+ var a = [null];
72
+ a.push.apply(a, e);
73
+ var i = new (r.bind.apply(r, a))();
74
+ return t && m(i, t.prototype), i;
75
+ }
76
+ n(N, "_construct");
77
+
78
+ // ../node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js
79
+ function C(r) {
80
+ var e = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
81
+ return C = /* @__PURE__ */ n(function(a) {
82
+ if (a === null || !V(a)) return a;
83
+ if (typeof a != "function") throw new TypeError("Super expression must either be null or a function");
84
+ if (e !== void 0) {
85
+ if (e.has(a)) return e.get(a);
86
+ e.set(a, i);
87
+ }
88
+ function i() {
89
+ return N(a, arguments, F(this).constructor);
90
+ }
91
+ return n(i, "Wrapper"), i.prototype = Object.create(a.prototype, {
92
+ constructor: {
93
+ value: i,
94
+ enumerable: !1,
95
+ writable: !0,
96
+ configurable: !0
97
+ }
98
+ }), m(i, a);
99
+ }, "_wrapNativeSuper"), C(r);
100
+ }
101
+ n(C, "_wrapNativeSuper");
102
+
103
+ // ../node_modules/polished/dist/polished.esm.js
104
+ var oe = {
105
+ 1: `Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0\
106
+ .4, lightness: 0.75 }).
107
+
108
+ `,
109
+ 2: `Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, satura\
110
+ tion: 0.4, lightness: 0.75, alpha: 0.7 }).
111
+
112
+ `,
113
+ 3: `Passed an incorrect argument to a color function, please pass a string representation of a color.
114
+
115
+ `,
116
+ 4: `Couldn't generate valid rgb string from %s, it returned %s.
117
+
118
+ `,
119
+ 5: `Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.
120
+
121
+ `,
122
+ 6: `Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, bl\
123
+ ue: 100 }).
124
+
125
+ `,
126
+ 7: `Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: \
127
+ 205, blue: 100, alpha: 0.75 }).
128
+
129
+ `,
130
+ 8: `Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.
131
+
132
+ `,
133
+ 9: `Please provide a number of steps to the modularScale helper.
134
+
135
+ `,
136
+ 10: `Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
137
+
138
+ `,
139
+ 11: `Invalid value passed as base to modularScale, expected number or em string but got "%s"
140
+
141
+ `,
142
+ 12: `Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead.
143
+
144
+ `,
145
+ 13: `Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead.
146
+
147
+ `,
148
+ 14: `Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12.
149
+
150
+ `,
151
+ 15: `Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12.
152
+
153
+ `,
154
+ 16: `You must provide a template to this method.
155
+
156
+ `,
157
+ 17: `You passed an unsupported selector state to this method.
158
+
159
+ `,
160
+ 18: `minScreen and maxScreen must be provided as stringified numbers with the same units.
161
+
162
+ `,
163
+ 19: `fromSize and toSize must be provided as stringified numbers with the same units.
164
+
165
+ `,
166
+ 20: `expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
167
+
168
+ `,
169
+ 21: "expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",
170
+ 22: "expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",
171
+ 23: `fontFace expects a name of a font-family.
172
+
173
+ `,
174
+ 24: `fontFace expects either the path to the font file(s) or a name of a local copy.
175
+
176
+ `,
177
+ 25: `fontFace expects localFonts to be an array.
178
+
179
+ `,
180
+ 26: `fontFace expects fileFormats to be an array.
181
+
182
+ `,
183
+ 27: `radialGradient requries at least 2 color-stops to properly render.
184
+
185
+ `,
186
+ 28: `Please supply a filename to retinaImage() as the first argument.
187
+
188
+ `,
189
+ 29: `Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
190
+
191
+ `,
192
+ 30: "Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",
193
+ 31: `The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation
194
+
195
+ `,
196
+ 32: `To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])
197
+ To pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')
198
+
199
+ `,
200
+ 33: `The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation
201
+
202
+ `,
203
+ 34: `borderRadius expects a radius value as a string or number as the second argument.
204
+
205
+ `,
206
+ 35: `borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
207
+
208
+ `,
209
+ 36: `Property must be a string value.
210
+
211
+ `,
212
+ 37: `Syntax Error at %s.
213
+
214
+ `,
215
+ 38: `Formula contains a function that needs parentheses at %s.
216
+
217
+ `,
218
+ 39: `Formula is missing closing parenthesis at %s.
219
+
220
+ `,
221
+ 40: `Formula has too many closing parentheses at %s.
222
+
223
+ `,
224
+ 41: `All values in a formula must have the same unit or be unitless.
225
+
226
+ `,
227
+ 42: `Please provide a number of steps to the modularScale helper.
228
+
229
+ `,
230
+ 43: `Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
231
+
232
+ `,
233
+ 44: `Invalid value passed as base to modularScale, expected number or em/rem string but got %s.
234
+
235
+ `,
236
+ 45: `Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.
237
+
238
+ `,
239
+ 46: `Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.
240
+
241
+ `,
242
+ 47: `minScreen and maxScreen must be provided as stringified numbers with the same units.
243
+
244
+ `,
245
+ 48: `fromSize and toSize must be provided as stringified numbers with the same units.
246
+
247
+ `,
248
+ 49: `Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
249
+
250
+ `,
251
+ 50: `Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.
252
+
253
+ `,
254
+ 51: `Expects the first argument object to have the properties prop, fromSize, and toSize.
255
+
256
+ `,
257
+ 52: `fontFace expects either the path to the font file(s) or a name of a local copy.
258
+
259
+ `,
260
+ 53: `fontFace expects localFonts to be an array.
261
+
262
+ `,
263
+ 54: `fontFace expects fileFormats to be an array.
264
+
265
+ `,
266
+ 55: `fontFace expects a name of a font-family.
267
+
268
+ `,
269
+ 56: `linearGradient requries at least 2 color-stops to properly render.
270
+
271
+ `,
272
+ 57: `radialGradient requries at least 2 color-stops to properly render.
273
+
274
+ `,
275
+ 58: `Please supply a filename to retinaImage() as the first argument.
276
+
277
+ `,
278
+ 59: `Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
279
+
280
+ `,
281
+ 60: "Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",
282
+ 61: `Property must be a string value.
283
+
284
+ `,
285
+ 62: `borderRadius expects a radius value as a string or number as the second argument.
286
+
287
+ `,
288
+ 63: `borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
289
+
290
+ `,
291
+ 64: `The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.
292
+
293
+ `,
294
+ 65: `To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animatio\
295
+ n please supply them in simple values, e.g. animation('rotate', '2s').
296
+
297
+ `,
298
+ 66: `The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.
299
+
300
+ `,
301
+ 67: `You must provide a template to this method.
302
+
303
+ `,
304
+ 68: `You passed an unsupported selector state to this method.
305
+
306
+ `,
307
+ 69: `Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead.
308
+
309
+ `,
310
+ 70: `Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead.
311
+
312
+ `,
313
+ 71: `Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12.
314
+
315
+ `,
316
+ 72: `Passed invalid base value %s to %s(), please pass a value like "12px" or 12.
317
+
318
+ `,
319
+ 73: `Please provide a valid CSS variable.
320
+
321
+ `,
322
+ 74: `CSS variable not found and no default was provided.
323
+
324
+ `,
325
+ 75: `important requires a valid style object, got a %s instead.
326
+
327
+ `,
328
+ 76: `fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.
329
+
330
+ `,
331
+ 77: `remToPx expects a value in "rem" but you provided it in "%s".
332
+
333
+ `,
334
+ 78: `base must be set in "px" or "%" but you set it in "%s".
335
+ `
336
+ };
337
+ function se() {
338
+ for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++)
339
+ e[t] = arguments[t];
340
+ var a = e[0], i = [], o;
341
+ for (o = 1; o < e.length; o += 1)
342
+ i.push(e[o]);
343
+ return i.forEach(function(u) {
344
+ a = a.replace(/%[a-z]/, u);
345
+ }), a;
346
+ }
347
+ n(se, "format");
348
+ var d = /* @__PURE__ */ function(r) {
349
+ U(e, r);
350
+ function e(t) {
351
+ for (var a, i = arguments.length, o = new Array(i > 1 ? i - 1 : 0), u = 1; u < i; u++)
352
+ o[u - 1] = arguments[u];
353
+ return a = r.call(this, se.apply(void 0, [oe[t]].concat(o))) || this, q(a);
354
+ }
355
+ return n(e, "PolishedError"), e;
356
+ }(/* @__PURE__ */ C(Error));
357
+ function I(r) {
358
+ return Math.round(r * 255);
359
+ }
360
+ n(I, "colorToInt");
361
+ function ue(r, e, t) {
362
+ return I(r) + "," + I(e) + "," + I(t);
363
+ }
364
+ n(ue, "convertToInt");
365
+ function w(r, e, t, a) {
366
+ if (a === void 0 && (a = ue), e === 0)
367
+ return a(t, t, t);
368
+ var i = (r % 360 + 360) % 360 / 60, o = (1 - Math.abs(2 * t - 1)) * e, u = o * (1 - Math.abs(i % 2 - 1)), f = 0, p = 0, l = 0;
369
+ i >= 0 && i < 1 ? (f = o, p = u) : i >= 1 && i < 2 ? (f = u, p = o) : i >= 2 && i < 3 ? (p = o, l = u) : i >= 3 && i < 4 ? (p = u, l = o) :
370
+ i >= 4 && i < 5 ? (f = u, l = o) : i >= 5 && i < 6 && (f = o, l = u);
371
+ var h = t - o / 2, b = f + h, c = p + h, A = l + h;
372
+ return a(b, c, A);
373
+ }
374
+ n(w, "hslToRgb");
375
+ var G = {
376
+ aliceblue: "f0f8ff",
377
+ antiquewhite: "faebd7",
378
+ aqua: "00ffff",
379
+ aquamarine: "7fffd4",
380
+ azure: "f0ffff",
381
+ beige: "f5f5dc",
382
+ bisque: "ffe4c4",
383
+ black: "000",
384
+ blanchedalmond: "ffebcd",
385
+ blue: "0000ff",
386
+ blueviolet: "8a2be2",
387
+ brown: "a52a2a",
388
+ burlywood: "deb887",
389
+ cadetblue: "5f9ea0",
390
+ chartreuse: "7fff00",
391
+ chocolate: "d2691e",
392
+ coral: "ff7f50",
393
+ cornflowerblue: "6495ed",
394
+ cornsilk: "fff8dc",
395
+ crimson: "dc143c",
396
+ cyan: "00ffff",
397
+ darkblue: "00008b",
398
+ darkcyan: "008b8b",
399
+ darkgoldenrod: "b8860b",
400
+ darkgray: "a9a9a9",
401
+ darkgreen: "006400",
402
+ darkgrey: "a9a9a9",
403
+ darkkhaki: "bdb76b",
404
+ darkmagenta: "8b008b",
405
+ darkolivegreen: "556b2f",
406
+ darkorange: "ff8c00",
407
+ darkorchid: "9932cc",
408
+ darkred: "8b0000",
409
+ darksalmon: "e9967a",
410
+ darkseagreen: "8fbc8f",
411
+ darkslateblue: "483d8b",
412
+ darkslategray: "2f4f4f",
413
+ darkslategrey: "2f4f4f",
414
+ darkturquoise: "00ced1",
415
+ darkviolet: "9400d3",
416
+ deeppink: "ff1493",
417
+ deepskyblue: "00bfff",
418
+ dimgray: "696969",
419
+ dimgrey: "696969",
420
+ dodgerblue: "1e90ff",
421
+ firebrick: "b22222",
422
+ floralwhite: "fffaf0",
423
+ forestgreen: "228b22",
424
+ fuchsia: "ff00ff",
425
+ gainsboro: "dcdcdc",
426
+ ghostwhite: "f8f8ff",
427
+ gold: "ffd700",
428
+ goldenrod: "daa520",
429
+ gray: "808080",
430
+ green: "008000",
431
+ greenyellow: "adff2f",
432
+ grey: "808080",
433
+ honeydew: "f0fff0",
434
+ hotpink: "ff69b4",
435
+ indianred: "cd5c5c",
436
+ indigo: "4b0082",
437
+ ivory: "fffff0",
438
+ khaki: "f0e68c",
439
+ lavender: "e6e6fa",
440
+ lavenderblush: "fff0f5",
441
+ lawngreen: "7cfc00",
442
+ lemonchiffon: "fffacd",
443
+ lightblue: "add8e6",
444
+ lightcoral: "f08080",
445
+ lightcyan: "e0ffff",
446
+ lightgoldenrodyellow: "fafad2",
447
+ lightgray: "d3d3d3",
448
+ lightgreen: "90ee90",
449
+ lightgrey: "d3d3d3",
450
+ lightpink: "ffb6c1",
451
+ lightsalmon: "ffa07a",
452
+ lightseagreen: "20b2aa",
453
+ lightskyblue: "87cefa",
454
+ lightslategray: "789",
455
+ lightslategrey: "789",
456
+ lightsteelblue: "b0c4de",
457
+ lightyellow: "ffffe0",
458
+ lime: "0f0",
459
+ limegreen: "32cd32",
460
+ linen: "faf0e6",
461
+ magenta: "f0f",
462
+ maroon: "800000",
463
+ mediumaquamarine: "66cdaa",
464
+ mediumblue: "0000cd",
465
+ mediumorchid: "ba55d3",
466
+ mediumpurple: "9370db",
467
+ mediumseagreen: "3cb371",
468
+ mediumslateblue: "7b68ee",
469
+ mediumspringgreen: "00fa9a",
470
+ mediumturquoise: "48d1cc",
471
+ mediumvioletred: "c71585",
472
+ midnightblue: "191970",
473
+ mintcream: "f5fffa",
474
+ mistyrose: "ffe4e1",
475
+ moccasin: "ffe4b5",
476
+ navajowhite: "ffdead",
477
+ navy: "000080",
478
+ oldlace: "fdf5e6",
479
+ olive: "808000",
480
+ olivedrab: "6b8e23",
481
+ orange: "ffa500",
482
+ orangered: "ff4500",
483
+ orchid: "da70d6",
484
+ palegoldenrod: "eee8aa",
485
+ palegreen: "98fb98",
486
+ paleturquoise: "afeeee",
487
+ palevioletred: "db7093",
488
+ papayawhip: "ffefd5",
489
+ peachpuff: "ffdab9",
490
+ peru: "cd853f",
491
+ pink: "ffc0cb",
492
+ plum: "dda0dd",
493
+ powderblue: "b0e0e6",
494
+ purple: "800080",
495
+ rebeccapurple: "639",
496
+ red: "f00",
497
+ rosybrown: "bc8f8f",
498
+ royalblue: "4169e1",
499
+ saddlebrown: "8b4513",
500
+ salmon: "fa8072",
501
+ sandybrown: "f4a460",
502
+ seagreen: "2e8b57",
503
+ seashell: "fff5ee",
504
+ sienna: "a0522d",
505
+ silver: "c0c0c0",
506
+ skyblue: "87ceeb",
507
+ slateblue: "6a5acd",
508
+ slategray: "708090",
509
+ slategrey: "708090",
510
+ snow: "fffafa",
511
+ springgreen: "00ff7f",
512
+ steelblue: "4682b4",
513
+ tan: "d2b48c",
514
+ teal: "008080",
515
+ thistle: "d8bfd8",
516
+ tomato: "ff6347",
517
+ turquoise: "40e0d0",
518
+ violet: "ee82ee",
519
+ wheat: "f5deb3",
520
+ white: "fff",
521
+ whitesmoke: "f5f5f5",
522
+ yellow: "ff0",
523
+ yellowgreen: "9acd32"
524
+ };
525
+ function fe(r) {
526
+ if (typeof r != "string") return r;
527
+ var e = r.toLowerCase();
528
+ return G[e] ? "#" + G[e] : r;
529
+ }
530
+ n(fe, "nameToHex");
531
+ var pe = /^#[a-fA-F0-9]{6}$/, le = /^#[a-fA-F0-9]{8}$/, de = /^#[a-fA-F0-9]{3}$/, ce = /^#[a-fA-F0-9]{4}$/, R = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,
532
+ me = /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i, ge = /^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,
533
+ he = /^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;
534
+ function $(r) {
535
+ if (typeof r != "string")
536
+ throw new d(3);
537
+ var e = fe(r);
538
+ if (e.match(pe))
539
+ return {
540
+ red: parseInt("" + e[1] + e[2], 16),
541
+ green: parseInt("" + e[3] + e[4], 16),
542
+ blue: parseInt("" + e[5] + e[6], 16)
543
+ };
544
+ if (e.match(le)) {
545
+ var t = parseFloat((parseInt("" + e[7] + e[8], 16) / 255).toFixed(2));
546
+ return {
547
+ red: parseInt("" + e[1] + e[2], 16),
548
+ green: parseInt("" + e[3] + e[4], 16),
549
+ blue: parseInt("" + e[5] + e[6], 16),
550
+ alpha: t
551
+ };
552
+ }
553
+ if (e.match(de))
554
+ return {
555
+ red: parseInt("" + e[1] + e[1], 16),
556
+ green: parseInt("" + e[2] + e[2], 16),
557
+ blue: parseInt("" + e[3] + e[3], 16)
558
+ };
559
+ if (e.match(ce)) {
560
+ var a = parseFloat((parseInt("" + e[4] + e[4], 16) / 255).toFixed(2));
561
+ return {
562
+ red: parseInt("" + e[1] + e[1], 16),
563
+ green: parseInt("" + e[2] + e[2], 16),
564
+ blue: parseInt("" + e[3] + e[3], 16),
565
+ alpha: a
566
+ };
567
+ }
568
+ var i = R.exec(e);
569
+ if (i)
570
+ return {
571
+ red: parseInt("" + i[1], 10),
572
+ green: parseInt("" + i[2], 10),
573
+ blue: parseInt("" + i[3], 10)
574
+ };
575
+ var o = me.exec(e.substring(0, 50));
576
+ if (o)
577
+ return {
578
+ red: parseInt("" + o[1], 10),
579
+ green: parseInt("" + o[2], 10),
580
+ blue: parseInt("" + o[3], 10),
581
+ alpha: parseFloat("" + o[4]) > 1 ? parseFloat("" + o[4]) / 100 : parseFloat("" + o[4])
582
+ };
583
+ var u = ge.exec(e);
584
+ if (u) {
585
+ var f = parseInt("" + u[1], 10), p = parseInt("" + u[2], 10) / 100, l = parseInt("" + u[3], 10) / 100, h = "rgb(" + w(f, p, l) + ")", b = R.
586
+ exec(h);
587
+ if (!b)
588
+ throw new d(4, e, h);
589
+ return {
590
+ red: parseInt("" + b[1], 10),
591
+ green: parseInt("" + b[2], 10),
592
+ blue: parseInt("" + b[3], 10)
593
+ };
594
+ }
595
+ var c = he.exec(e.substring(0, 50));
596
+ if (c) {
597
+ var A = parseInt("" + c[1], 10), ne = parseInt("" + c[2], 10) / 100, ae = parseInt("" + c[3], 10) / 100, W = "rgb(" + w(A, ne, ae) + ")",
598
+ S = R.exec(W);
599
+ if (!S)
600
+ throw new d(4, e, W);
601
+ return {
602
+ red: parseInt("" + S[1], 10),
603
+ green: parseInt("" + S[2], 10),
604
+ blue: parseInt("" + S[3], 10),
605
+ alpha: parseFloat("" + c[4]) > 1 ? parseFloat("" + c[4]) / 100 : parseFloat("" + c[4])
606
+ };
607
+ }
608
+ throw new d(5);
609
+ }
610
+ n($, "parseToRgb");
611
+ function be(r) {
612
+ var e = r.red / 255, t = r.green / 255, a = r.blue / 255, i = Math.max(e, t, a), o = Math.min(e, t, a), u = (i + o) / 2;
613
+ if (i === o)
614
+ return r.alpha !== void 0 ? {
615
+ hue: 0,
616
+ saturation: 0,
617
+ lightness: u,
618
+ alpha: r.alpha
619
+ } : {
620
+ hue: 0,
621
+ saturation: 0,
622
+ lightness: u
623
+ };
624
+ var f, p = i - o, l = u > 0.5 ? p / (2 - i - o) : p / (i + o);
625
+ switch (i) {
626
+ case e:
627
+ f = (t - a) / p + (t < a ? 6 : 0);
628
+ break;
629
+ case t:
630
+ f = (a - e) / p + 2;
631
+ break;
632
+ default:
633
+ f = (e - t) / p + 4;
634
+ break;
635
+ }
636
+ return f *= 60, r.alpha !== void 0 ? {
637
+ hue: f,
638
+ saturation: l,
639
+ lightness: u,
640
+ alpha: r.alpha
641
+ } : {
642
+ hue: f,
643
+ saturation: l,
644
+ lightness: u
645
+ };
646
+ }
647
+ n(be, "rgbToHsl");
648
+ function Q(r) {
649
+ return be($(r));
650
+ }
651
+ n(Q, "parseToHsl");
652
+ var ve = /* @__PURE__ */ n(function(e) {
653
+ return e.length === 7 && e[1] === e[2] && e[3] === e[4] && e[5] === e[6] ? "#" + e[1] + e[3] + e[5] : e;
654
+ }, "reduceHexValue"), O = ve;
655
+ function g(r) {
656
+ var e = r.toString(16);
657
+ return e.length === 1 ? "0" + e : e;
658
+ }
659
+ n(g, "numberToHex");
660
+ function j(r) {
661
+ return g(Math.round(r * 255));
662
+ }
663
+ n(j, "colorToHex");
664
+ function ye(r, e, t) {
665
+ return O("#" + j(r) + j(e) + j(t));
666
+ }
667
+ n(ye, "convertToHex");
668
+ function z(r, e, t) {
669
+ return w(r, e, t, ye);
670
+ }
671
+ n(z, "hslToHex");
672
+ function we(r, e, t) {
673
+ if (typeof r == "number" && typeof e == "number" && typeof t == "number")
674
+ return z(r, e, t);
675
+ if (typeof r == "object" && e === void 0 && t === void 0)
676
+ return z(r.hue, r.saturation, r.lightness);
677
+ throw new d(1);
678
+ }
679
+ n(we, "hsl");
680
+ function xe(r, e, t, a) {
681
+ if (typeof r == "number" && typeof e == "number" && typeof t == "number" && typeof a == "number")
682
+ return a >= 1 ? z(r, e, t) : "rgba(" + w(r, e, t) + "," + a + ")";
683
+ if (typeof r == "object" && e === void 0 && t === void 0 && a === void 0)
684
+ return r.alpha >= 1 ? z(r.hue, r.saturation, r.lightness) : "rgba(" + w(r.hue, r.saturation, r.lightness) + "," + r.alpha + ")";
685
+ throw new d(2);
686
+ }
687
+ n(xe, "hsla");
688
+ function k(r, e, t) {
689
+ if (typeof r == "number" && typeof e == "number" && typeof t == "number")
690
+ return O("#" + g(r) + g(e) + g(t));
691
+ if (typeof r == "object" && e === void 0 && t === void 0)
692
+ return O("#" + g(r.red) + g(r.green) + g(r.blue));
693
+ throw new d(6);
694
+ }
695
+ n(k, "rgb");
696
+ function x(r, e, t, a) {
697
+ if (typeof r == "string" && typeof e == "number") {
698
+ var i = $(r);
699
+ return "rgba(" + i.red + "," + i.green + "," + i.blue + "," + e + ")";
700
+ } else {
701
+ if (typeof r == "number" && typeof e == "number" && typeof t == "number" && typeof a == "number")
702
+ return a >= 1 ? k(r, e, t) : "rgba(" + r + "," + e + "," + t + "," + a + ")";
703
+ if (typeof r == "object" && e === void 0 && t === void 0 && a === void 0)
704
+ return r.alpha >= 1 ? k(r.red, r.green, r.blue) : "rgba(" + r.red + "," + r.green + "," + r.blue + "," + r.alpha + ")";
705
+ }
706
+ throw new d(7);
707
+ }
708
+ n(x, "rgba");
709
+ var Se = /* @__PURE__ */ n(function(e) {
710
+ return typeof e.red == "number" && typeof e.green == "number" && typeof e.blue == "number" && (typeof e.alpha != "number" || typeof e.alpha >
711
+ "u");
712
+ }, "isRgb"), Fe = /* @__PURE__ */ n(function(e) {
713
+ return typeof e.red == "number" && typeof e.green == "number" && typeof e.blue == "number" && typeof e.alpha == "number";
714
+ }, "isRgba"), Ce = /* @__PURE__ */ n(function(e) {
715
+ return typeof e.hue == "number" && typeof e.saturation == "number" && typeof e.lightness == "number" && (typeof e.alpha != "number" || typeof e.
716
+ alpha > "u");
717
+ }, "isHsl"), ze = /* @__PURE__ */ n(function(e) {
718
+ return typeof e.hue == "number" && typeof e.saturation == "number" && typeof e.lightness == "number" && typeof e.alpha == "number";
719
+ }, "isHsla");
720
+ function Y(r) {
721
+ if (typeof r != "object") throw new d(8);
722
+ if (Fe(r)) return x(r);
723
+ if (Se(r)) return k(r);
724
+ if (ze(r)) return xe(r);
725
+ if (Ce(r)) return we(r);
726
+ throw new d(8);
727
+ }
728
+ n(Y, "toColorString");
729
+ function J(r, e, t) {
730
+ return /* @__PURE__ */ n(function() {
731
+ var i = t.concat(Array.prototype.slice.call(arguments));
732
+ return i.length >= e ? r.apply(this, i) : J(r, e, i);
733
+ }, "fn");
734
+ }
735
+ n(J, "curried");
736
+ function B(r) {
737
+ return J(r, r.length, []);
738
+ }
739
+ n(B, "curry");
740
+ function M(r, e, t) {
741
+ return Math.max(r, Math.min(e, t));
742
+ }
743
+ n(M, "guard");
744
+ function Ae(r, e) {
745
+ if (e === "transparent") return e;
746
+ var t = Q(e);
747
+ return Y(v({}, t, {
748
+ lightness: M(0, 1, t.lightness - parseFloat(r))
749
+ }));
750
+ }
751
+ n(Ae, "darken");
752
+ var Te = /* @__PURE__ */ B(Ae), Z = Te;
753
+ function Ie(r, e) {
754
+ if (e === "transparent") return e;
755
+ var t = Q(e);
756
+ return Y(v({}, t, {
757
+ lightness: M(0, 1, t.lightness + parseFloat(r))
758
+ }));
759
+ }
760
+ n(Ie, "lighten");
761
+ var Re = /* @__PURE__ */ B(Ie), X = Re;
762
+ function je(r, e) {
763
+ if (e === "transparent") return e;
764
+ var t = $(e), a = typeof t.alpha == "number" ? t.alpha : 1, i = v({}, t, {
765
+ alpha: M(0, 1, +(a * 100 - parseFloat(r) * 100).toFixed(2) / 100)
766
+ });
767
+ return x(i);
768
+ }
769
+ n(je, "transparentize");
770
+ var Oe = /* @__PURE__ */ B(je), K = Oe;
771
+
772
+ // src/theming/base.ts
773
+ var s = {
774
+ // Official color palette
775
+ primary: "#FF4785",
776
+ // coral
777
+ secondary: "#029CFD",
778
+ // ocean
779
+ tertiary: "#FAFBFC",
780
+ ancillary: "#22a699",
781
+ // Complimentary
782
+ orange: "#FC521F",
783
+ gold: "#FFAE00",
784
+ green: "#66BF3C",
785
+ seafoam: "#37D5D3",
786
+ purple: "#6F2CAC",
787
+ ultraviolet: "#2A0481",
788
+ // Monochrome
789
+ lightest: "#FFFFFF",
790
+ lighter: "#F7FAFC",
791
+ light: "#EEF3F6",
792
+ mediumlight: "#ECF4F9",
793
+ medium: "#D9E8F2",
794
+ mediumdark: "#73828C",
795
+ dark: "#5C6870",
796
+ darker: "#454E54",
797
+ darkest: "#2E3438",
798
+ // For borders
799
+ border: "hsla(203, 50%, 30%, 0.15)",
800
+ // Status
801
+ positive: "#66BF3C",
802
+ negative: "#FF4400",
803
+ warning: "#E69D00",
804
+ critical: "#FFFFFF",
805
+ // Text
806
+ defaultText: "#2E3438",
807
+ inverseText: "#FFFFFF",
808
+ positiveText: "#448028",
809
+ negativeText: "#D43900",
810
+ warningText: "#A15C20"
811
+ }, P = {
812
+ app: "#F6F9FC",
813
+ bar: s.lightest,
814
+ content: s.lightest,
815
+ preview: s.lightest,
816
+ gridCellSize: 10,
817
+ hoverable: K(0.9, s.secondary),
818
+ // hover state for items in a list
819
+ // Notification, error, and warning backgrounds
820
+ positive: "#E1FFD4",
821
+ negative: "#FEDED2",
822
+ warning: "#FFF5CF",
823
+ critical: "#FF4400"
824
+ }, y = {
825
+ fonts: {
826
+ base: [
827
+ '"Nunito Sans"',
828
+ "-apple-system",
829
+ '".SFNSText-Regular"',
830
+ '"San Francisco"',
831
+ "BlinkMacSystemFont",
832
+ '"Segoe UI"',
833
+ '"Helvetica Neue"',
834
+ "Helvetica",
835
+ "Arial",
836
+ "sans-serif"
837
+ ].join(", "),
838
+ mono: [
839
+ "ui-monospace",
840
+ "Menlo",
841
+ "Monaco",
842
+ '"Roboto Mono"',
843
+ '"Oxygen Mono"',
844
+ '"Ubuntu Monospace"',
845
+ '"Source Code Pro"',
846
+ '"Droid Sans Mono"',
847
+ '"Courier New"',
848
+ "monospace"
849
+ ].join(", ")
850
+ },
851
+ weight: {
852
+ regular: 400,
853
+ bold: 700
854
+ },
855
+ size: {
856
+ s1: 12,
857
+ s2: 14,
858
+ s3: 16,
859
+ m1: 20,
860
+ m2: 24,
861
+ m3: 28,
862
+ l1: 32,
863
+ l2: 40,
864
+ l3: 48,
865
+ code: 90
866
+ }
867
+ };
868
+
869
+ // src/theming/themes/dark.ts
870
+ var ke = {
871
+ base: "dark",
872
+ // Storybook-specific color palette
873
+ colorPrimary: "#FF4785",
874
+ // coral
875
+ colorSecondary: "#029CFD",
876
+ // ocean
877
+ // UI
878
+ appBg: "#222425",
879
+ appContentBg: "#1B1C1D",
880
+ appPreviewBg: s.lightest,
881
+ appBorderColor: "rgba(255,255,255,.1)",
882
+ appBorderRadius: 4,
883
+ // Fonts
884
+ fontBase: y.fonts.base,
885
+ fontCode: y.fonts.mono,
886
+ // Text colors
887
+ textColor: "#C9CDCF",
888
+ textInverseColor: "#222425",
889
+ textMutedColor: "#798186",
890
+ // Toolbar default and active colors
891
+ barTextColor: s.mediumdark,
892
+ barHoverColor: s.secondary,
893
+ barSelectedColor: s.secondary,
894
+ barBg: "#292C2E",
895
+ // Form colors
896
+ buttonBg: "#222425",
897
+ buttonBorder: "rgba(255,255,255,.1)",
898
+ booleanBg: "#222425",
899
+ booleanSelectedBg: "#2E3438",
900
+ inputBg: "#1B1C1D",
901
+ inputBorder: "rgba(255,255,255,.1)",
902
+ inputTextColor: s.lightest,
903
+ inputBorderRadius: 4
904
+ }, _ = ke;
905
+
906
+ // src/theming/themes/light.ts
907
+ var $e = {
908
+ base: "light",
909
+ // Storybook-specific color palette
910
+ colorPrimary: "#FF4785",
911
+ // coral
912
+ colorSecondary: "#029CFD",
913
+ // ocean
914
+ // UI
915
+ appBg: P.app,
916
+ appContentBg: s.lightest,
917
+ appPreviewBg: s.lightest,
918
+ appBorderColor: s.border,
919
+ appBorderRadius: 4,
920
+ // Fonts
921
+ fontBase: y.fonts.base,
922
+ fontCode: y.fonts.mono,
923
+ // Text colors
924
+ textColor: s.darkest,
925
+ textInverseColor: s.lightest,
926
+ textMutedColor: s.dark,
927
+ // Toolbar default and active colors
928
+ barTextColor: s.mediumdark,
929
+ barHoverColor: s.secondary,
930
+ barSelectedColor: s.secondary,
931
+ barBg: s.lightest,
932
+ // Form colors
933
+ buttonBg: P.app,
934
+ buttonBorder: s.medium,
935
+ booleanBg: s.mediumlight,
936
+ booleanSelectedBg: s.lightest,
937
+ inputBg: s.lightest,
938
+ inputBorder: s.border,
939
+ inputTextColor: s.darkest,
940
+ inputBorderRadius: 4
941
+ }, E = $e;
942
+
943
+ // src/theming/utils.ts
944
+ import { logger as Be } from "storybook/internal/client-logger";
945
+
946
+ // ../node_modules/@storybook/global/dist/index.mjs
947
+ var ee = (() => {
948
+ let r;
949
+ return typeof window < "u" ? r = window : typeof globalThis < "u" ? r = globalThis : typeof global < "u" ? r = global : typeof self < "u" ?
950
+ r = self : r = {}, r;
951
+ })();
952
+
953
+ // src/theming/utils.ts
954
+ var { window: H } = ee;
955
+ var Me = /* @__PURE__ */ n((r) => typeof r != "string" ? (Be.warn(
956
+ `Color passed to theme object should be a string. Instead ${r}(${typeof r}) was passed.`
957
+ ), !1) : !0, "isColorString"), Pe = /* @__PURE__ */ n((r) => !/(gradient|var|calc)/.test(r), "isValidColorForPolished"), Ee = /* @__PURE__ */ n(
958
+ (r, e) => r === "darken" ? x(`${Z(1, e)}`, 0.95) : r === "lighten" ? x(`${X(1, e)}`, 0.95) : e, "applyPolished"), re = /* @__PURE__ */ n((r) => (e) => {
959
+ if (!Me(e) || !Pe(e))
960
+ return e;
961
+ try {
962
+ return Ee(r, e);
963
+ } catch {
964
+ return e;
965
+ }
966
+ }, "colorFactory"), jr = re("lighten"), Or = re("darken"), te = /* @__PURE__ */ n(() => !H || !H.matchMedia ? "light" : H.matchMedia("(prefe\
967
+ rs-color-scheme: dark)").matches ? "dark" : "light", "getPreferredColorScheme");
968
+
969
+ // src/theming/create.ts
970
+ var L = {
971
+ light: E,
972
+ dark: _,
973
+ normal: E
974
+ }, D = te(), Er = /* @__PURE__ */ n((r = { base: D }, e) => {
975
+ let t = {
976
+ ...L[D],
977
+ ...L[r.base] || {},
978
+ ...r,
979
+ base: L[r.base] ? r.base : D
980
+ };
981
+ return {
982
+ ...e,
983
+ ...t,
984
+ barSelectedColor: r.barSelectedColor || t.colorSecondary
985
+ };
986
+ }, "create");
987
+ export {
988
+ Er as create,
989
+ L as themes
990
+ };