@redapollos/storm-form 0.0.7 → 0.0.8

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.
@@ -0,0 +1 @@
1
+ #root{max-width:1280px;margin:0 auto;padding:2rem;text-align:center}.logo{height:6em;padding:1.5em;will-change:filter;transition:filter .3s}.logo:hover{filter:drop-shadow(0 0 2em #646cffaa)}.logo.react:hover{filter:drop-shadow(0 0 2em #61dafbaa)}@keyframes logo-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media (prefers-reduced-motion: no-preference){a:nth-of-type(2) .logo{animation:logo-spin infinite 20s linear}}.card{padding:2em}.read-the-docs{color:#888}
@@ -0,0 +1,640 @@
1
+ import Ce from "react";
2
+ var M = { exports: {} }, F = {};
3
+ /**
4
+ * @license React
5
+ * react-jsx-runtime.production.min.js
6
+ *
7
+ * Copyright (c) Facebook, Inc. and its affiliates.
8
+ *
9
+ * This source code is licensed under the MIT license found in the
10
+ * LICENSE file in the root directory of this source tree.
11
+ */
12
+ var Oe;
13
+ function cr() {
14
+ if (Oe) return F;
15
+ Oe = 1;
16
+ var U = Ce, w = Symbol.for("react.element"), N = Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, A = U.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, I = { key: !0, ref: !0, __self: !0, __source: !0 };
17
+ function j(_, f, T) {
18
+ var p, h = {}, b = null, $ = null;
19
+ T !== void 0 && (b = "" + T), f.key !== void 0 && (b = "" + f.key), f.ref !== void 0 && ($ = f.ref);
20
+ for (p in f) m.call(f, p) && !I.hasOwnProperty(p) && (h[p] = f[p]);
21
+ if (_ && _.defaultProps) for (p in f = _.defaultProps, f) h[p] === void 0 && (h[p] = f[p]);
22
+ return { $$typeof: w, type: _, key: b, ref: $, props: h, _owner: A.current };
23
+ }
24
+ return F.Fragment = N, F.jsx = j, F.jsxs = j, F;
25
+ }
26
+ var D = {};
27
+ /**
28
+ * @license React
29
+ * react-jsx-runtime.development.js
30
+ *
31
+ * Copyright (c) Facebook, Inc. and its affiliates.
32
+ *
33
+ * This source code is licensed under the MIT license found in the
34
+ * LICENSE file in the root directory of this source tree.
35
+ */
36
+ var Se;
37
+ function vr() {
38
+ return Se || (Se = 1, process.env.NODE_ENV !== "production" && function() {
39
+ var U = Ce, w = Symbol.for("react.element"), N = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), A = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), j = Symbol.for("react.provider"), _ = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), $ = Symbol.for("react.offscreen"), Z = Symbol.iterator, we = "@@iterator";
40
+ function je(e) {
41
+ if (e === null || typeof e != "object")
42
+ return null;
43
+ var r = Z && e[Z] || e[we];
44
+ return typeof r == "function" ? r : null;
45
+ }
46
+ var O = U.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
47
+ function c(e) {
48
+ {
49
+ for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
50
+ t[n - 1] = arguments[n];
51
+ xe("error", e, t);
52
+ }
53
+ }
54
+ function xe(e, r, t) {
55
+ {
56
+ var n = O.ReactDebugCurrentFrame, i = n.getStackAddendum();
57
+ i !== "" && (r += "%s", t = t.concat([i]));
58
+ var u = t.map(function(o) {
59
+ return String(o);
60
+ });
61
+ u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
62
+ }
63
+ }
64
+ var ke = !1, Fe = !1, De = !1, Ae = !1, Ie = !1, Q;
65
+ Q = Symbol.for("react.module.reference");
66
+ function $e(e) {
67
+ return !!(typeof e == "string" || typeof e == "function" || e === m || e === I || Ie || e === A || e === T || e === p || Ae || e === $ || ke || Fe || De || typeof e == "object" && e !== null && (e.$$typeof === b || e.$$typeof === h || e.$$typeof === j || e.$$typeof === _ || e.$$typeof === f || // This needs to include all possible module reference object
68
+ // types supported by any Flight configuration anywhere since
69
+ // we don't know which Flight build this will end up being used
70
+ // with.
71
+ e.$$typeof === Q || e.getModuleId !== void 0));
72
+ }
73
+ function We(e, r, t) {
74
+ var n = e.displayName;
75
+ if (n)
76
+ return n;
77
+ var i = r.displayName || r.name || "";
78
+ return i !== "" ? t + "(" + i + ")" : t;
79
+ }
80
+ function ee(e) {
81
+ return e.displayName || "Context";
82
+ }
83
+ function E(e) {
84
+ if (e == null)
85
+ return null;
86
+ if (typeof e.tag == "number" && c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
87
+ return e.displayName || e.name || null;
88
+ if (typeof e == "string")
89
+ return e;
90
+ switch (e) {
91
+ case m:
92
+ return "Fragment";
93
+ case N:
94
+ return "Portal";
95
+ case I:
96
+ return "Profiler";
97
+ case A:
98
+ return "StrictMode";
99
+ case T:
100
+ return "Suspense";
101
+ case p:
102
+ return "SuspenseList";
103
+ }
104
+ if (typeof e == "object")
105
+ switch (e.$$typeof) {
106
+ case _:
107
+ var r = e;
108
+ return ee(r) + ".Consumer";
109
+ case j:
110
+ var t = e;
111
+ return ee(t._context) + ".Provider";
112
+ case f:
113
+ return We(e, e.render, "ForwardRef");
114
+ case h:
115
+ var n = e.displayName || null;
116
+ return n !== null ? n : E(e.type) || "Memo";
117
+ case b: {
118
+ var i = e, u = i._payload, o = i._init;
119
+ try {
120
+ return E(o(u));
121
+ } catch {
122
+ return null;
123
+ }
124
+ }
125
+ }
126
+ return null;
127
+ }
128
+ var y = Object.assign, x = 0, re, te, ne, ae, oe, ie, ue;
129
+ function se() {
130
+ }
131
+ se.__reactDisabledLog = !0;
132
+ function Ye() {
133
+ {
134
+ if (x === 0) {
135
+ re = console.log, te = console.info, ne = console.warn, ae = console.error, oe = console.group, ie = console.groupCollapsed, ue = console.groupEnd;
136
+ var e = {
137
+ configurable: !0,
138
+ enumerable: !0,
139
+ value: se,
140
+ writable: !0
141
+ };
142
+ Object.defineProperties(console, {
143
+ info: e,
144
+ log: e,
145
+ warn: e,
146
+ error: e,
147
+ group: e,
148
+ groupCollapsed: e,
149
+ groupEnd: e
150
+ });
151
+ }
152
+ x++;
153
+ }
154
+ }
155
+ function Le() {
156
+ {
157
+ if (x--, x === 0) {
158
+ var e = {
159
+ configurable: !0,
160
+ enumerable: !0,
161
+ writable: !0
162
+ };
163
+ Object.defineProperties(console, {
164
+ log: y({}, e, {
165
+ value: re
166
+ }),
167
+ info: y({}, e, {
168
+ value: te
169
+ }),
170
+ warn: y({}, e, {
171
+ value: ne
172
+ }),
173
+ error: y({}, e, {
174
+ value: ae
175
+ }),
176
+ group: y({}, e, {
177
+ value: oe
178
+ }),
179
+ groupCollapsed: y({}, e, {
180
+ value: ie
181
+ }),
182
+ groupEnd: y({}, e, {
183
+ value: ue
184
+ })
185
+ });
186
+ }
187
+ x < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
188
+ }
189
+ }
190
+ var J = O.ReactCurrentDispatcher, q;
191
+ function W(e, r, t) {
192
+ {
193
+ if (q === void 0)
194
+ try {
195
+ throw Error();
196
+ } catch (i) {
197
+ var n = i.stack.trim().match(/\n( *(at )?)/);
198
+ q = n && n[1] || "";
199
+ }
200
+ return `
201
+ ` + q + e;
202
+ }
203
+ }
204
+ var B = !1, Y;
205
+ {
206
+ var Ve = typeof WeakMap == "function" ? WeakMap : Map;
207
+ Y = new Ve();
208
+ }
209
+ function le(e, r) {
210
+ if (!e || B)
211
+ return "";
212
+ {
213
+ var t = Y.get(e);
214
+ if (t !== void 0)
215
+ return t;
216
+ }
217
+ var n;
218
+ B = !0;
219
+ var i = Error.prepareStackTrace;
220
+ Error.prepareStackTrace = void 0;
221
+ var u;
222
+ u = J.current, J.current = null, Ye();
223
+ try {
224
+ if (r) {
225
+ var o = function() {
226
+ throw Error();
227
+ };
228
+ if (Object.defineProperty(o.prototype, "props", {
229
+ set: function() {
230
+ throw Error();
231
+ }
232
+ }), typeof Reflect == "object" && Reflect.construct) {
233
+ try {
234
+ Reflect.construct(o, []);
235
+ } catch (d) {
236
+ n = d;
237
+ }
238
+ Reflect.construct(e, [], o);
239
+ } else {
240
+ try {
241
+ o.call();
242
+ } catch (d) {
243
+ n = d;
244
+ }
245
+ e.call(o.prototype);
246
+ }
247
+ } else {
248
+ try {
249
+ throw Error();
250
+ } catch (d) {
251
+ n = d;
252
+ }
253
+ e();
254
+ }
255
+ } catch (d) {
256
+ if (d && n && typeof d.stack == "string") {
257
+ for (var a = d.stack.split(`
258
+ `), v = n.stack.split(`
259
+ `), s = a.length - 1, l = v.length - 1; s >= 1 && l >= 0 && a[s] !== v[l]; )
260
+ l--;
261
+ for (; s >= 1 && l >= 0; s--, l--)
262
+ if (a[s] !== v[l]) {
263
+ if (s !== 1 || l !== 1)
264
+ do
265
+ if (s--, l--, l < 0 || a[s] !== v[l]) {
266
+ var g = `
267
+ ` + a[s].replace(" at new ", " at ");
268
+ return e.displayName && g.includes("<anonymous>") && (g = g.replace("<anonymous>", e.displayName)), typeof e == "function" && Y.set(e, g), g;
269
+ }
270
+ while (s >= 1 && l >= 0);
271
+ break;
272
+ }
273
+ }
274
+ } finally {
275
+ B = !1, J.current = u, Le(), Error.prepareStackTrace = i;
276
+ }
277
+ var P = e ? e.displayName || e.name : "", R = P ? W(P) : "";
278
+ return typeof e == "function" && Y.set(e, R), R;
279
+ }
280
+ function Me(e, r, t) {
281
+ return le(e, !1);
282
+ }
283
+ function Ue(e) {
284
+ var r = e.prototype;
285
+ return !!(r && r.isReactComponent);
286
+ }
287
+ function L(e, r, t) {
288
+ if (e == null)
289
+ return "";
290
+ if (typeof e == "function")
291
+ return le(e, Ue(e));
292
+ if (typeof e == "string")
293
+ return W(e);
294
+ switch (e) {
295
+ case T:
296
+ return W("Suspense");
297
+ case p:
298
+ return W("SuspenseList");
299
+ }
300
+ if (typeof e == "object")
301
+ switch (e.$$typeof) {
302
+ case f:
303
+ return Me(e.render);
304
+ case h:
305
+ return L(e.type, r, t);
306
+ case b: {
307
+ var n = e, i = n._payload, u = n._init;
308
+ try {
309
+ return L(u(i), r, t);
310
+ } catch {
311
+ }
312
+ }
313
+ }
314
+ return "";
315
+ }
316
+ var k = Object.prototype.hasOwnProperty, fe = {}, ce = O.ReactDebugCurrentFrame;
317
+ function V(e) {
318
+ if (e) {
319
+ var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
320
+ ce.setExtraStackFrame(t);
321
+ } else
322
+ ce.setExtraStackFrame(null);
323
+ }
324
+ function Ne(e, r, t, n, i) {
325
+ {
326
+ var u = Function.call.bind(k);
327
+ for (var o in e)
328
+ if (u(e, o)) {
329
+ var a = void 0;
330
+ try {
331
+ if (typeof e[o] != "function") {
332
+ var v = Error((n || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
333
+ throw v.name = "Invariant Violation", v;
334
+ }
335
+ a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
336
+ } catch (s) {
337
+ a = s;
338
+ }
339
+ a && !(a instanceof Error) && (V(i), c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, o, typeof a), V(null)), a instanceof Error && !(a.message in fe) && (fe[a.message] = !0, V(i), c("Failed %s type: %s", t, a.message), V(null));
340
+ }
341
+ }
342
+ }
343
+ var Je = Array.isArray;
344
+ function K(e) {
345
+ return Je(e);
346
+ }
347
+ function qe(e) {
348
+ {
349
+ var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
350
+ return t;
351
+ }
352
+ }
353
+ function Be(e) {
354
+ try {
355
+ return ve(e), !1;
356
+ } catch {
357
+ return !0;
358
+ }
359
+ }
360
+ function ve(e) {
361
+ return "" + e;
362
+ }
363
+ function de(e) {
364
+ if (Be(e))
365
+ return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", qe(e)), ve(e);
366
+ }
367
+ var pe = O.ReactCurrentOwner, Ke = {
368
+ key: !0,
369
+ ref: !0,
370
+ __self: !0,
371
+ __source: !0
372
+ }, ge, he;
373
+ function Ge(e) {
374
+ if (k.call(e, "ref")) {
375
+ var r = Object.getOwnPropertyDescriptor(e, "ref").get;
376
+ if (r && r.isReactWarning)
377
+ return !1;
378
+ }
379
+ return e.ref !== void 0;
380
+ }
381
+ function ze(e) {
382
+ if (k.call(e, "key")) {
383
+ var r = Object.getOwnPropertyDescriptor(e, "key").get;
384
+ if (r && r.isReactWarning)
385
+ return !1;
386
+ }
387
+ return e.key !== void 0;
388
+ }
389
+ function Xe(e, r) {
390
+ typeof e.ref == "string" && pe.current;
391
+ }
392
+ function He(e, r) {
393
+ {
394
+ var t = function() {
395
+ ge || (ge = !0, c("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
396
+ };
397
+ t.isReactWarning = !0, Object.defineProperty(e, "key", {
398
+ get: t,
399
+ configurable: !0
400
+ });
401
+ }
402
+ }
403
+ function Ze(e, r) {
404
+ {
405
+ var t = function() {
406
+ he || (he = !0, c("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
407
+ };
408
+ t.isReactWarning = !0, Object.defineProperty(e, "ref", {
409
+ get: t,
410
+ configurable: !0
411
+ });
412
+ }
413
+ }
414
+ var Qe = function(e, r, t, n, i, u, o) {
415
+ var a = {
416
+ // This tag allows us to uniquely identify this as a React Element
417
+ $$typeof: w,
418
+ // Built-in properties that belong on the element
419
+ type: e,
420
+ key: r,
421
+ ref: t,
422
+ props: o,
423
+ // Record the component responsible for creating this element.
424
+ _owner: u
425
+ };
426
+ return a._store = {}, Object.defineProperty(a._store, "validated", {
427
+ configurable: !1,
428
+ enumerable: !1,
429
+ writable: !0,
430
+ value: !1
431
+ }), Object.defineProperty(a, "_self", {
432
+ configurable: !1,
433
+ enumerable: !1,
434
+ writable: !1,
435
+ value: n
436
+ }), Object.defineProperty(a, "_source", {
437
+ configurable: !1,
438
+ enumerable: !1,
439
+ writable: !1,
440
+ value: i
441
+ }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
442
+ };
443
+ function er(e, r, t, n, i) {
444
+ {
445
+ var u, o = {}, a = null, v = null;
446
+ t !== void 0 && (de(t), a = "" + t), ze(r) && (de(r.key), a = "" + r.key), Ge(r) && (v = r.ref, Xe(r, i));
447
+ for (u in r)
448
+ k.call(r, u) && !Ke.hasOwnProperty(u) && (o[u] = r[u]);
449
+ if (e && e.defaultProps) {
450
+ var s = e.defaultProps;
451
+ for (u in s)
452
+ o[u] === void 0 && (o[u] = s[u]);
453
+ }
454
+ if (a || v) {
455
+ var l = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
456
+ a && He(o, l), v && Ze(o, l);
457
+ }
458
+ return Qe(e, a, v, i, n, pe.current, o);
459
+ }
460
+ }
461
+ var G = O.ReactCurrentOwner, Ee = O.ReactDebugCurrentFrame;
462
+ function S(e) {
463
+ if (e) {
464
+ var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
465
+ Ee.setExtraStackFrame(t);
466
+ } else
467
+ Ee.setExtraStackFrame(null);
468
+ }
469
+ var z;
470
+ z = !1;
471
+ function X(e) {
472
+ return typeof e == "object" && e !== null && e.$$typeof === w;
473
+ }
474
+ function _e() {
475
+ {
476
+ if (G.current) {
477
+ var e = E(G.current.type);
478
+ if (e)
479
+ return `
480
+
481
+ Check the render method of \`` + e + "`.";
482
+ }
483
+ return "";
484
+ }
485
+ }
486
+ function rr(e) {
487
+ return "";
488
+ }
489
+ var be = {};
490
+ function tr(e) {
491
+ {
492
+ var r = _e();
493
+ if (!r) {
494
+ var t = typeof e == "string" ? e : e.displayName || e.name;
495
+ t && (r = `
496
+
497
+ Check the top-level render call using <` + t + ">.");
498
+ }
499
+ return r;
500
+ }
501
+ }
502
+ function ye(e, r) {
503
+ {
504
+ if (!e._store || e._store.validated || e.key != null)
505
+ return;
506
+ e._store.validated = !0;
507
+ var t = tr(r);
508
+ if (be[t])
509
+ return;
510
+ be[t] = !0;
511
+ var n = "";
512
+ e && e._owner && e._owner !== G.current && (n = " It was passed a child from " + E(e._owner.type) + "."), S(e), c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), S(null);
513
+ }
514
+ }
515
+ function Re(e, r) {
516
+ {
517
+ if (typeof e != "object")
518
+ return;
519
+ if (K(e))
520
+ for (var t = 0; t < e.length; t++) {
521
+ var n = e[t];
522
+ X(n) && ye(n, r);
523
+ }
524
+ else if (X(e))
525
+ e._store && (e._store.validated = !0);
526
+ else if (e) {
527
+ var i = je(e);
528
+ if (typeof i == "function" && i !== e.entries)
529
+ for (var u = i.call(e), o; !(o = u.next()).done; )
530
+ X(o.value) && ye(o.value, r);
531
+ }
532
+ }
533
+ }
534
+ function nr(e) {
535
+ {
536
+ var r = e.type;
537
+ if (r == null || typeof r == "string")
538
+ return;
539
+ var t;
540
+ if (typeof r == "function")
541
+ t = r.propTypes;
542
+ else if (typeof r == "object" && (r.$$typeof === f || // Note: Memo only checks outer props here.
543
+ // Inner props are checked in the reconciler.
544
+ r.$$typeof === h))
545
+ t = r.propTypes;
546
+ else
547
+ return;
548
+ if (t) {
549
+ var n = E(r);
550
+ Ne(t, e.props, "prop", n, e);
551
+ } else if (r.PropTypes !== void 0 && !z) {
552
+ z = !0;
553
+ var i = E(r);
554
+ c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
555
+ }
556
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
557
+ }
558
+ }
559
+ function ar(e) {
560
+ {
561
+ for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
562
+ var n = r[t];
563
+ if (n !== "children" && n !== "key") {
564
+ S(e), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), S(null);
565
+ break;
566
+ }
567
+ }
568
+ e.ref !== null && (S(e), c("Invalid attribute `ref` supplied to `React.Fragment`."), S(null));
569
+ }
570
+ }
571
+ var me = {};
572
+ function Te(e, r, t, n, i, u) {
573
+ {
574
+ var o = $e(e);
575
+ if (!o) {
576
+ var a = "";
577
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
578
+ var v = rr();
579
+ v ? a += v : a += _e();
580
+ var s;
581
+ e === null ? s = "null" : K(e) ? s = "array" : e !== void 0 && e.$$typeof === w ? (s = "<" + (E(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, a);
582
+ }
583
+ var l = er(e, r, t, i, u);
584
+ if (l == null)
585
+ return l;
586
+ if (o) {
587
+ var g = r.children;
588
+ if (g !== void 0)
589
+ if (n)
590
+ if (K(g)) {
591
+ for (var P = 0; P < g.length; P++)
592
+ Re(g[P], e);
593
+ Object.freeze && Object.freeze(g);
594
+ } else
595
+ c("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
596
+ else
597
+ Re(g, e);
598
+ }
599
+ if (k.call(r, "key")) {
600
+ var R = E(e), d = Object.keys(r).filter(function(fr) {
601
+ return fr !== "key";
602
+ }), H = d.length > 0 ? "{key: someKey, " + d.join(": ..., ") + ": ...}" : "{key: someKey}";
603
+ if (!me[R + H]) {
604
+ var lr = d.length > 0 ? "{" + d.join(": ..., ") + ": ...}" : "{}";
605
+ c(`A props object containing a "key" prop is being spread into JSX:
606
+ let props = %s;
607
+ <%s {...props} />
608
+ React keys must be passed directly to JSX without using spread:
609
+ let props = %s;
610
+ <%s key={someKey} {...props} />`, H, R, lr, R), me[R + H] = !0;
611
+ }
612
+ }
613
+ return e === m ? ar(l) : nr(l), l;
614
+ }
615
+ }
616
+ function or(e, r, t) {
617
+ return Te(e, r, t, !0);
618
+ }
619
+ function ir(e, r, t) {
620
+ return Te(e, r, t, !1);
621
+ }
622
+ var ur = ir, sr = or;
623
+ D.Fragment = m, D.jsx = ur, D.jsxs = sr;
624
+ }()), D;
625
+ }
626
+ var Pe;
627
+ function dr() {
628
+ return Pe || (Pe = 1, process.env.NODE_ENV === "production" ? M.exports = cr() : M.exports = vr()), M.exports;
629
+ }
630
+ var C = dr();
631
+ const pr = "/logo.svg";
632
+ function hr() {
633
+ return /* @__PURE__ */ C.jsxs(C.Fragment, { children: [
634
+ /* @__PURE__ */ C.jsx("div", { children: /* @__PURE__ */ C.jsx("a", { href: "https://rainstormtech.com", target: "_blank", children: /* @__PURE__ */ C.jsx("img", { src: pr, className: "logo", alt: "logo" }) }) }),
635
+ /* @__PURE__ */ C.jsx("h1", { children: "Storm Form" })
636
+ ] });
637
+ }
638
+ export {
639
+ hr as default
640
+ };
@@ -0,0 +1,30 @@
1
+ (function(E,m){typeof exports=="object"&&typeof module<"u"?module.exports=m(require("react")):typeof define=="function"&&define.amd?define(["react"],m):(E=typeof globalThis<"u"?globalThis:E||self,E.StormForm=m(E.React))})(this,function(E){"use strict";var m={exports:{}},x={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Q;function je(){if(Q)return x;Q=1;var N=E,F=Symbol.for("react.element"),J=Symbol.for("react.fragment"),S=Object.prototype.hasOwnProperty,W=N.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Y={key:!0,ref:!0,__self:!0,__source:!0};function D(R,l,P){var p,h={},_=null,$=null;P!==void 0&&(_=""+P),l.key!==void 0&&(_=""+l.key),l.ref!==void 0&&($=l.ref);for(p in l)S.call(l,p)&&!Y.hasOwnProperty(p)&&(h[p]=l[p]);if(R&&R.defaultProps)for(p in l=R.defaultProps,l)h[p]===void 0&&(h[p]=l[p]);return{$$typeof:F,type:R,key:_,ref:$,props:h,_owner:W.current}}return x.Fragment=J,x.jsx=D,x.jsxs=D,x}var k={};/**
10
+ * @license React
11
+ * react-jsx-runtime.development.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var ee;function we(){return ee||(ee=1,process.env.NODE_ENV!=="production"&&function(){var N=E,F=Symbol.for("react.element"),J=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),W=Symbol.for("react.strict_mode"),Y=Symbol.for("react.profiler"),D=Symbol.for("react.provider"),R=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),$=Symbol.for("react.offscreen"),te=Symbol.iterator,De="@@iterator";function Ae(e){if(e===null||typeof e!="object")return null;var r=te&&e[te]||e[De];return typeof r=="function"?r:null}var C=N.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function c(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Ie("error",e,t)}}function Ie(e,r,t){{var n=C.ReactDebugCurrentFrame,i=n.getStackAddendum();i!==""&&(r+="%s",t=t.concat([i]));var u=t.map(function(o){return String(o)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var We=!1,Ye=!1,$e=!1,Le=!1,Ve=!1,ne;ne=Symbol.for("react.module.reference");function Me(e){return!!(typeof e=="string"||typeof e=="function"||e===S||e===Y||Ve||e===W||e===P||e===p||Le||e===$||We||Ye||$e||typeof e=="object"&&e!==null&&(e.$$typeof===_||e.$$typeof===h||e.$$typeof===D||e.$$typeof===R||e.$$typeof===l||e.$$typeof===ne||e.getModuleId!==void 0))}function Ue(e,r,t){var n=e.displayName;if(n)return n;var i=r.displayName||r.name||"";return i!==""?t+"("+i+")":t}function ae(e){return e.displayName||"Context"}function y(e){if(e==null)return null;if(typeof e.tag=="number"&&c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case S:return"Fragment";case J:return"Portal";case Y:return"Profiler";case W:return"StrictMode";case P:return"Suspense";case p:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case R:var r=e;return ae(r)+".Consumer";case D:var t=e;return ae(t._context)+".Provider";case l:return Ue(e,e.render,"ForwardRef");case h:var n=e.displayName||null;return n!==null?n:y(e.type)||"Memo";case _:{var i=e,u=i._payload,o=i._init;try{return y(o(u))}catch{return null}}}return null}var b=Object.assign,A=0,oe,ie,ue,se,fe,le,ce;function de(){}de.__reactDisabledLog=!0;function Ne(){{if(A===0){oe=console.log,ie=console.info,ue=console.warn,se=console.error,fe=console.group,le=console.groupCollapsed,ce=console.groupEnd;var e={configurable:!0,enumerable:!0,value:de,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}A++}}function Je(){{if(A--,A===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:b({},e,{value:oe}),info:b({},e,{value:ie}),warn:b({},e,{value:ue}),error:b({},e,{value:se}),group:b({},e,{value:fe}),groupCollapsed:b({},e,{value:le}),groupEnd:b({},e,{value:ce})})}A<0&&c("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var q=C.ReactCurrentDispatcher,B;function L(e,r,t){{if(B===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);B=n&&n[1]||""}return`
18
+ `+B+e}}var K=!1,V;{var qe=typeof WeakMap=="function"?WeakMap:Map;V=new qe}function ve(e,r){if(!e||K)return"";{var t=V.get(e);if(t!==void 0)return t}var n;K=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=q.current,q.current=null,Ne();try{if(r){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(v){n=v}Reflect.construct(e,[],o)}else{try{o.call()}catch(v){n=v}e.call(o.prototype)}}else{try{throw Error()}catch(v){n=v}e()}}catch(v){if(v&&n&&typeof v.stack=="string"){for(var a=v.stack.split(`
19
+ `),d=n.stack.split(`
20
+ `),s=a.length-1,f=d.length-1;s>=1&&f>=0&&a[s]!==d[f];)f--;for(;s>=1&&f>=0;s--,f--)if(a[s]!==d[f]){if(s!==1||f!==1)do if(s--,f--,f<0||a[s]!==d[f]){var g=`
21
+ `+a[s].replace(" at new "," at ");return e.displayName&&g.includes("<anonymous>")&&(g=g.replace("<anonymous>",e.displayName)),typeof e=="function"&&V.set(e,g),g}while(s>=1&&f>=0);break}}}finally{K=!1,q.current=u,Je(),Error.prepareStackTrace=i}var w=e?e.displayName||e.name:"",T=w?L(w):"";return typeof e=="function"&&V.set(e,T),T}function Be(e,r,t){return ve(e,!1)}function Ke(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function M(e,r,t){if(e==null)return"";if(typeof e=="function")return ve(e,Ke(e));if(typeof e=="string")return L(e);switch(e){case P:return L("Suspense");case p:return L("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case l:return Be(e.render);case h:return M(e.type,r,t);case _:{var n=e,i=n._payload,u=n._init;try{return M(u(i),r,t)}catch{}}}return""}var I=Object.prototype.hasOwnProperty,pe={},ge=C.ReactDebugCurrentFrame;function U(e){if(e){var r=e._owner,t=M(e.type,e._source,r?r.type:null);ge.setExtraStackFrame(t)}else ge.setExtraStackFrame(null)}function Ge(e,r,t,n,i){{var u=Function.call.bind(I);for(var o in e)if(u(e,o)){var a=void 0;try{if(typeof e[o]!="function"){var d=Error((n||"React class")+": "+t+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}a=e[o](r,o,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s){a=s}a&&!(a instanceof Error)&&(U(i),c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,o,typeof a),U(null)),a instanceof Error&&!(a.message in pe)&&(pe[a.message]=!0,U(i),c("Failed %s type: %s",t,a.message),U(null))}}}var ze=Array.isArray;function G(e){return ze(e)}function Xe(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function He(e){try{return he(e),!1}catch{return!0}}function he(e){return""+e}function me(e){if(He(e))return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Xe(e)),he(e)}var ye=C.ReactCurrentOwner,Ze={key:!0,ref:!0,__self:!0,__source:!0},Ee,Re;function Qe(e){if(I.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function er(e){if(I.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function rr(e,r){typeof e.ref=="string"&&ye.current}function tr(e,r){{var t=function(){Ee||(Ee=!0,c("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function nr(e,r){{var t=function(){Re||(Re=!0,c("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var ar=function(e,r,t,n,i,u,o){var a={$$typeof:F,type:e,key:r,ref:t,props:o,_owner:u};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function or(e,r,t,n,i){{var u,o={},a=null,d=null;t!==void 0&&(me(t),a=""+t),er(r)&&(me(r.key),a=""+r.key),Qe(r)&&(d=r.ref,rr(r,i));for(u in r)I.call(r,u)&&!Ze.hasOwnProperty(u)&&(o[u]=r[u]);if(e&&e.defaultProps){var s=e.defaultProps;for(u in s)o[u]===void 0&&(o[u]=s[u])}if(a||d){var f=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&tr(o,f),d&&nr(o,f)}return ar(e,a,d,i,n,ye.current,o)}}var z=C.ReactCurrentOwner,_e=C.ReactDebugCurrentFrame;function j(e){if(e){var r=e._owner,t=M(e.type,e._source,r?r.type:null);_e.setExtraStackFrame(t)}else _e.setExtraStackFrame(null)}var X;X=!1;function H(e){return typeof e=="object"&&e!==null&&e.$$typeof===F}function be(){{if(z.current){var e=y(z.current.type);if(e)return`
22
+
23
+ Check the render method of \``+e+"`."}return""}}function ir(e){return""}var Te={};function ur(e){{var r=be();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
24
+
25
+ Check the top-level render call using <`+t+">.")}return r}}function Oe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=ur(r);if(Te[t])return;Te[t]=!0;var n="";e&&e._owner&&e._owner!==z.current&&(n=" It was passed a child from "+y(e._owner.type)+"."),j(e),c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),j(null)}}function Se(e,r){{if(typeof e!="object")return;if(G(e))for(var t=0;t<e.length;t++){var n=e[t];H(n)&&Oe(n,r)}else if(H(e))e._store&&(e._store.validated=!0);else if(e){var i=Ae(e);if(typeof i=="function"&&i!==e.entries)for(var u=i.call(e),o;!(o=u.next()).done;)H(o.value)&&Oe(o.value,r)}}}function sr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===l||r.$$typeof===h))t=r.propTypes;else return;if(t){var n=y(r);Ge(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!X){X=!0;var i=y(r);c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",i||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function fr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){j(e),c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),j(null);break}}e.ref!==null&&(j(e),c("Invalid attribute `ref` supplied to `React.Fragment`."),j(null))}}var Pe={};function Ce(e,r,t,n,i,u){{var o=Me(e);if(!o){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var d=ir();d?a+=d:a+=be();var s;e===null?s="null":G(e)?s="array":e!==void 0&&e.$$typeof===F?(s="<"+(y(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,a)}var f=or(e,r,t,i,u);if(f==null)return f;if(o){var g=r.children;if(g!==void 0)if(n)if(G(g)){for(var w=0;w<g.length;w++)Se(g[w],e);Object.freeze&&Object.freeze(g)}else c("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Se(g,e)}if(I.call(r,"key")){var T=y(e),v=Object.keys(r).filter(function(gr){return gr!=="key"}),Z=v.length>0?"{key: someKey, "+v.join(": ..., ")+": ...}":"{key: someKey}";if(!Pe[T+Z]){var pr=v.length>0?"{"+v.join(": ..., ")+": ...}":"{}";c(`A props object containing a "key" prop is being spread into JSX:
26
+ let props = %s;
27
+ <%s {...props} />
28
+ React keys must be passed directly to JSX without using spread:
29
+ let props = %s;
30
+ <%s key={someKey} {...props} />`,Z,T,pr,T),Pe[T+Z]=!0}}return e===S?fr(f):sr(f),f}}function lr(e,r,t){return Ce(e,r,t,!0)}function cr(e,r,t){return Ce(e,r,t,!1)}var dr=cr,vr=lr;k.Fragment=S,k.jsx=dr,k.jsxs=vr}()),k}var re;function xe(){return re||(re=1,process.env.NODE_ENV==="production"?m.exports=je():m.exports=we()),m.exports}var O=xe();const ke="/logo.svg";function Fe(){return O.jsxs(O.Fragment,{children:[O.jsx("div",{children:O.jsx("a",{href:"https://rainstormtech.com",target:"_blank",children:O.jsx("img",{src:ke,className:"logo",alt:"logo"})})}),O.jsx("h1",{children:"Storm Form"})]})}return Fe});
package/package.json CHANGED
@@ -1,19 +1,21 @@
1
1
  {
2
2
  "name": "@redapollos/storm-form",
3
3
  "private": false,
4
- "version": "0.0.7",
4
+ "version": "0.0.8",
5
5
  "description": "A form library for StormCMS",
6
6
  "author": "redapollos",
7
7
  "type": "module",
8
- "main": "dist/index.js",
8
+ "main": "dist/storm-form.es.js",
9
+ "module": "dist/storm-form.es.js",
9
10
  "scripts": {
10
- "build": "babel src --out-dir dist --verbose",
11
+ "build": "vite build",
11
12
  "lint": "eslint ."
12
13
  },
13
14
  "dependencies": {
14
15
  "next": "^15.1.3",
15
16
  "react": "^18.3.1",
16
- "react-dom": "^18.3.1"
17
+ "react-dom": "^18.3.1",
18
+ "vite": "^6.0.6"
17
19
  },
18
20
  "devDependencies": {
19
21
  "@babel/cli": "^7.26.4",
@@ -23,6 +25,7 @@
23
25
  "@eslint/js": "^9.17.0",
24
26
  "@types/react": "^18.3.18",
25
27
  "@types/react-dom": "^18.3.5",
28
+ "@vitejs/plugin-react": "^4.3.4",
26
29
  "eslint": "^9.17.0",
27
30
  "eslint-plugin-react": "^7.37.2",
28
31
  "eslint-plugin-react-hooks": "^5.0.0",
package/babel.config.json DELETED
@@ -1,5 +0,0 @@
1
- {
2
- // "presets": ["@babel/preset-env", "@babel/preset-react"],
3
- "presets": ["next/babel"],
4
- "plugins": []
5
- }
@@ -1,22 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports["default"] = void 0;
8
- var _react = _interopRequireDefault(require("react"));
9
- var _logo = _interopRequireDefault(require("/logo.svg"));
10
- require("../App.css");
11
- var __jsx = _react["default"].createElement;
12
- function StormForm() {
13
- return __jsx(_react["default"].Fragment, null, __jsx("div", null, __jsx("a", {
14
- href: "https://rainstormtech.com",
15
- target: "_blank"
16
- }, __jsx("img", {
17
- src: _logo["default"],
18
- className: "logo",
19
- alt: "logo"
20
- }))), __jsx("h1", null, "Storm Form"));
21
- }
22
- var _default = exports["default"] = StormForm;
package/dist/index.js DELETED
@@ -1,9 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports["default"] = void 0;
8
- var _StormForm = _interopRequireDefault(require("./components/StormForm"));
9
- var _default = exports["default"] = _StormForm["default"];
File without changes
File without changes