pennywise-ui 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1 @@
1
+ # React + TypeScript + Vite
@@ -0,0 +1,15 @@
1
+ @font-face {
2
+ font-family: 'inter';
3
+ font-weight: 400;
4
+ src: url('inter/Inter_18pt-Regular.ttf') format('truetype');
5
+ }
6
+ @font-face {
7
+ font-family: 'inter';
8
+ font-weight: 500;
9
+ src: url('inter/Inter_18pt-Medium.ttf') format('truetype');
10
+ }
11
+ @font-face {
12
+ font-family: 'inter';
13
+ font-weight: 600;
14
+ src: url('inter/Inter_18pt-SemiBold.ttf') format('truetype');
15
+ }
package/dist/index.css ADDED
@@ -0,0 +1 @@
1
+ .Button__64QXXrHS{background-color:var(--color-fill-error)}
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+
3
+ export declare const Button: FC;
4
+
5
+ export { }
package/dist/index.js ADDED
@@ -0,0 +1,448 @@
1
+ import je from "react";
2
+ var k = { exports: {} }, w = {};
3
+ /**
4
+ * @license React
5
+ * react-jsx-runtime.production.js
6
+ *
7
+ * Copyright (c) Meta Platforms, Inc. and 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 ce;
13
+ function pe() {
14
+ if (ce) return w;
15
+ ce = 1;
16
+ var f = Symbol.for("react.transitional.element"), p = Symbol.for("react.fragment");
17
+ function x(C, s, c) {
18
+ var v = null;
19
+ if (c !== void 0 && (v = "" + c), s.key !== void 0 && (v = "" + s.key), "key" in s) {
20
+ c = {};
21
+ for (var _ in s)
22
+ _ !== "key" && (c[_] = s[_]);
23
+ } else c = s;
24
+ return s = c.ref, {
25
+ $$typeof: f,
26
+ type: C,
27
+ key: v,
28
+ ref: s !== void 0 ? s : null,
29
+ props: c
30
+ };
31
+ }
32
+ return w.Fragment = p, w.jsx = x, w.jsxs = x, w;
33
+ }
34
+ var j = {};
35
+ /**
36
+ * @license React
37
+ * react-jsx-runtime.development.js
38
+ *
39
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
40
+ *
41
+ * This source code is licensed under the MIT license found in the
42
+ * LICENSE file in the root directory of this source tree.
43
+ */
44
+ var ie;
45
+ function Ce() {
46
+ return ie || (ie = 1, process.env.NODE_ENV !== "production" && function() {
47
+ function f(e) {
48
+ if (e == null) return null;
49
+ if (typeof e == "function")
50
+ return e.$$typeof === Re ? null : e.displayName || e.name || null;
51
+ if (typeof e == "string") return e;
52
+ switch (e) {
53
+ case P:
54
+ return "Fragment";
55
+ case Te:
56
+ return "Portal";
57
+ case F:
58
+ return "Profiler";
59
+ case H:
60
+ return "StrictMode";
61
+ case $:
62
+ return "Suspense";
63
+ case M:
64
+ return "SuspenseList";
65
+ }
66
+ if (typeof e == "object")
67
+ switch (typeof e.tag == "number" && console.error(
68
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
69
+ ), e.$$typeof) {
70
+ case Q:
71
+ return (e.displayName || "Context") + ".Provider";
72
+ case L:
73
+ return (e._context.displayName || "Context") + ".Consumer";
74
+ case Y:
75
+ var r = e.render;
76
+ return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
77
+ case W:
78
+ return r = e.displayName || null, r !== null ? r : f(e.type) || "Memo";
79
+ case U:
80
+ r = e._payload, e = e._init;
81
+ try {
82
+ return f(e(r));
83
+ } catch {
84
+ }
85
+ }
86
+ return null;
87
+ }
88
+ function p(e) {
89
+ return "" + e;
90
+ }
91
+ function x(e) {
92
+ try {
93
+ p(e);
94
+ var r = !1;
95
+ } catch {
96
+ r = !0;
97
+ }
98
+ if (r) {
99
+ r = console;
100
+ var t = r.error, n = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
101
+ return t.call(
102
+ r,
103
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
104
+ n
105
+ ), p(e);
106
+ }
107
+ }
108
+ function C() {
109
+ }
110
+ function s() {
111
+ if (R === 0) {
112
+ K = console.log, D = console.info, ee = console.warn, re = console.error, te = console.group, oe = console.groupCollapsed, ne = console.groupEnd;
113
+ var e = {
114
+ configurable: !0,
115
+ enumerable: !0,
116
+ value: C,
117
+ writable: !0
118
+ };
119
+ Object.defineProperties(console, {
120
+ info: e,
121
+ log: e,
122
+ warn: e,
123
+ error: e,
124
+ group: e,
125
+ groupCollapsed: e,
126
+ groupEnd: e
127
+ });
128
+ }
129
+ R++;
130
+ }
131
+ function c() {
132
+ if (R--, R === 0) {
133
+ var e = { configurable: !0, enumerable: !0, writable: !0 };
134
+ Object.defineProperties(console, {
135
+ log: m({}, e, { value: K }),
136
+ info: m({}, e, { value: D }),
137
+ warn: m({}, e, { value: ee }),
138
+ error: m({}, e, { value: re }),
139
+ group: m({}, e, { value: te }),
140
+ groupCollapsed: m({}, e, { value: oe }),
141
+ groupEnd: m({}, e, { value: ne })
142
+ });
143
+ }
144
+ 0 > R && console.error(
145
+ "disabledDepth fell below zero. This is a bug in React. Please file an issue."
146
+ );
147
+ }
148
+ function v(e) {
149
+ if (q === void 0)
150
+ try {
151
+ throw Error();
152
+ } catch (t) {
153
+ var r = t.stack.trim().match(/\n( *(at )?)/);
154
+ q = r && r[1] || "", ae = -1 < t.stack.indexOf(`
155
+ at`) ? " (<anonymous>)" : -1 < t.stack.indexOf("@") ? "@unknown:0:0" : "";
156
+ }
157
+ return `
158
+ ` + q + e + ae;
159
+ }
160
+ function _(e, r) {
161
+ if (!e || J) return "";
162
+ var t = z.get(e);
163
+ if (t !== void 0) return t;
164
+ J = !0, t = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
165
+ var n = null;
166
+ n = b.H, b.H = null, s();
167
+ try {
168
+ var u = {
169
+ DetermineComponentFrameRoot: function() {
170
+ try {
171
+ if (r) {
172
+ var d = function() {
173
+ throw Error();
174
+ };
175
+ if (Object.defineProperty(d.prototype, "props", {
176
+ set: function() {
177
+ throw Error();
178
+ }
179
+ }), typeof Reflect == "object" && Reflect.construct) {
180
+ try {
181
+ Reflect.construct(d, []);
182
+ } catch (E) {
183
+ var h = E;
184
+ }
185
+ Reflect.construct(e, [], d);
186
+ } else {
187
+ try {
188
+ d.call();
189
+ } catch (E) {
190
+ h = E;
191
+ }
192
+ e.call(d.prototype);
193
+ }
194
+ } else {
195
+ try {
196
+ throw Error();
197
+ } catch (E) {
198
+ h = E;
199
+ }
200
+ (d = e()) && typeof d.catch == "function" && d.catch(function() {
201
+ });
202
+ }
203
+ } catch (E) {
204
+ if (E && h && typeof E.stack == "string")
205
+ return [E.stack, h.stack];
206
+ }
207
+ return [null, null];
208
+ }
209
+ };
210
+ u.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
211
+ var a = Object.getOwnPropertyDescriptor(
212
+ u.DetermineComponentFrameRoot,
213
+ "name"
214
+ );
215
+ a && a.configurable && Object.defineProperty(
216
+ u.DetermineComponentFrameRoot,
217
+ "name",
218
+ { value: "DetermineComponentFrameRoot" }
219
+ );
220
+ var o = u.DetermineComponentFrameRoot(), i = o[0], T = o[1];
221
+ if (i && T) {
222
+ var l = i.split(`
223
+ `), g = T.split(`
224
+ `);
225
+ for (o = a = 0; a < l.length && !l[a].includes(
226
+ "DetermineComponentFrameRoot"
227
+ ); )
228
+ a++;
229
+ for (; o < g.length && !g[o].includes(
230
+ "DetermineComponentFrameRoot"
231
+ ); )
232
+ o++;
233
+ if (a === l.length || o === g.length)
234
+ for (a = l.length - 1, o = g.length - 1; 1 <= a && 0 <= o && l[a] !== g[o]; )
235
+ o--;
236
+ for (; 1 <= a && 0 <= o; a--, o--)
237
+ if (l[a] !== g[o]) {
238
+ if (a !== 1 || o !== 1)
239
+ do
240
+ if (a--, o--, 0 > o || l[a] !== g[o]) {
241
+ var y = `
242
+ ` + l[a].replace(
243
+ " at new ",
244
+ " at "
245
+ );
246
+ return e.displayName && y.includes("<anonymous>") && (y = y.replace("<anonymous>", e.displayName)), typeof e == "function" && z.set(e, y), y;
247
+ }
248
+ while (1 <= a && 0 <= o);
249
+ break;
250
+ }
251
+ }
252
+ } finally {
253
+ J = !1, b.H = n, c(), Error.prepareStackTrace = t;
254
+ }
255
+ return l = (l = e ? e.displayName || e.name : "") ? v(l) : "", typeof e == "function" && z.set(e, l), l;
256
+ }
257
+ function S(e) {
258
+ if (e == null) return "";
259
+ if (typeof e == "function") {
260
+ var r = e.prototype;
261
+ return _(
262
+ e,
263
+ !(!r || !r.isReactComponent)
264
+ );
265
+ }
266
+ if (typeof e == "string") return v(e);
267
+ switch (e) {
268
+ case $:
269
+ return v("Suspense");
270
+ case M:
271
+ return v("SuspenseList");
272
+ }
273
+ if (typeof e == "object")
274
+ switch (e.$$typeof) {
275
+ case Y:
276
+ return e = _(e.render, !1), e;
277
+ case W:
278
+ return S(e.type);
279
+ case U:
280
+ r = e._payload, e = e._init;
281
+ try {
282
+ return S(e(r));
283
+ } catch {
284
+ }
285
+ }
286
+ return "";
287
+ }
288
+ function O() {
289
+ var e = b.A;
290
+ return e === null ? null : e.getOwner();
291
+ }
292
+ function ve(e) {
293
+ if (I.call(e, "key")) {
294
+ var r = Object.getOwnPropertyDescriptor(e, "key").get;
295
+ if (r && r.isReactWarning) return !1;
296
+ }
297
+ return e.key !== void 0;
298
+ }
299
+ function de(e, r) {
300
+ function t() {
301
+ ue || (ue = !0, console.error(
302
+ "%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://react.dev/link/special-props)",
303
+ r
304
+ ));
305
+ }
306
+ t.isReactWarning = !0, Object.defineProperty(e, "key", {
307
+ get: t,
308
+ configurable: !0
309
+ });
310
+ }
311
+ function be() {
312
+ var e = f(this.type);
313
+ return le[e] || (le[e] = !0, console.error(
314
+ "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
315
+ )), e = this.props.ref, e !== void 0 ? e : null;
316
+ }
317
+ function me(e, r, t, n, u, a) {
318
+ return t = a.ref, e = {
319
+ $$typeof: N,
320
+ type: e,
321
+ key: r,
322
+ props: a,
323
+ _owner: u
324
+ }, (t !== void 0 ? t : null) !== null ? Object.defineProperty(e, "ref", {
325
+ enumerable: !1,
326
+ get: be
327
+ }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
328
+ configurable: !1,
329
+ enumerable: !1,
330
+ writable: !0,
331
+ value: 0
332
+ }), Object.defineProperty(e, "_debugInfo", {
333
+ configurable: !1,
334
+ enumerable: !1,
335
+ writable: !0,
336
+ value: null
337
+ }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
338
+ }
339
+ function V(e, r, t, n, u, a) {
340
+ if (typeof e == "string" || typeof e == "function" || e === P || e === F || e === H || e === $ || e === M || e === xe || typeof e == "object" && e !== null && (e.$$typeof === U || e.$$typeof === W || e.$$typeof === Q || e.$$typeof === L || e.$$typeof === Y || e.$$typeof === ye || e.getModuleId !== void 0)) {
341
+ var o = r.children;
342
+ if (o !== void 0)
343
+ if (n)
344
+ if (B(o)) {
345
+ for (n = 0; n < o.length; n++)
346
+ X(o[n], e);
347
+ Object.freeze && Object.freeze(o);
348
+ } else
349
+ console.error(
350
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
351
+ );
352
+ else X(o, e);
353
+ } else
354
+ o = "", (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), e === null ? n = "null" : B(e) ? n = "array" : e !== void 0 && e.$$typeof === N ? (n = "<" + (f(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : n = typeof e, console.error(
355
+ "React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
356
+ n,
357
+ o
358
+ );
359
+ if (I.call(r, "key")) {
360
+ o = f(e);
361
+ var i = Object.keys(r).filter(function(l) {
362
+ return l !== "key";
363
+ });
364
+ n = 0 < i.length ? "{key: someKey, " + i.join(": ..., ") + ": ...}" : "{key: someKey}", se[o + n] || (i = 0 < i.length ? "{" + i.join(": ..., ") + ": ...}" : "{}", console.error(
365
+ `A props object containing a "key" prop is being spread into JSX:
366
+ let props = %s;
367
+ <%s {...props} />
368
+ React keys must be passed directly to JSX without using spread:
369
+ let props = %s;
370
+ <%s key={someKey} {...props} />`,
371
+ n,
372
+ o,
373
+ i,
374
+ o
375
+ ), se[o + n] = !0);
376
+ }
377
+ if (o = null, t !== void 0 && (x(t), o = "" + t), ve(r) && (x(r.key), o = "" + r.key), "key" in r) {
378
+ t = {};
379
+ for (var T in r)
380
+ T !== "key" && (t[T] = r[T]);
381
+ } else t = r;
382
+ return o && de(
383
+ t,
384
+ typeof e == "function" ? e.displayName || e.name || "Unknown" : e
385
+ ), me(e, o, a, u, O(), t);
386
+ }
387
+ function X(e, r) {
388
+ if (typeof e == "object" && e && e.$$typeof !== we) {
389
+ if (B(e))
390
+ for (var t = 0; t < e.length; t++) {
391
+ var n = e[t];
392
+ A(n) && G(n, r);
393
+ }
394
+ else if (A(e))
395
+ e._store && (e._store.validated = 1);
396
+ else if (e === null || typeof e != "object" ? t = null : (t = Z && e[Z] || e["@@iterator"], t = typeof t == "function" ? t : null), typeof t == "function" && t !== e.entries && (t = t.call(e), t !== e))
397
+ for (; !(e = t.next()).done; )
398
+ A(e.value) && G(e.value, r);
399
+ }
400
+ }
401
+ function A(e) {
402
+ return typeof e == "object" && e !== null && e.$$typeof === N;
403
+ }
404
+ function G(e, r) {
405
+ if (e._store && !e._store.validated && e.key == null && (e._store.validated = 1, r = ge(r), !fe[r])) {
406
+ fe[r] = !0;
407
+ var t = "";
408
+ e && e._owner != null && e._owner !== O() && (t = null, typeof e._owner.tag == "number" ? t = f(e._owner.type) : typeof e._owner.name == "string" && (t = e._owner.name), t = " It was passed a child from " + t + ".");
409
+ var n = b.getCurrentStack;
410
+ b.getCurrentStack = function() {
411
+ var u = S(e.type);
412
+ return n && (u += n() || ""), u;
413
+ }, console.error(
414
+ 'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
415
+ r,
416
+ t
417
+ ), b.getCurrentStack = n;
418
+ }
419
+ }
420
+ function ge(e) {
421
+ var r = "", t = O();
422
+ return t && (t = f(t.type)) && (r = `
423
+
424
+ Check the render method of \`` + t + "`."), r || (e = f(e)) && (r = `
425
+
426
+ Check the top-level render call using <` + e + ">."), r;
427
+ }
428
+ var _e = je, N = Symbol.for("react.transitional.element"), Te = Symbol.for("react.portal"), P = Symbol.for("react.fragment"), H = Symbol.for("react.strict_mode"), F = Symbol.for("react.profiler"), L = Symbol.for("react.consumer"), Q = Symbol.for("react.context"), Y = Symbol.for("react.forward_ref"), $ = Symbol.for("react.suspense"), M = Symbol.for("react.suspense_list"), W = Symbol.for("react.memo"), U = Symbol.for("react.lazy"), xe = Symbol.for("react.offscreen"), Z = Symbol.iterator, Re = Symbol.for("react.client.reference"), b = _e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, I = Object.prototype.hasOwnProperty, m = Object.assign, ye = Symbol.for("react.client.reference"), B = Array.isArray, R = 0, K, D, ee, re, te, oe, ne;
429
+ C.__reactDisabledLog = !0;
430
+ var q, ae, J = !1, z = new (typeof WeakMap == "function" ? WeakMap : Map)(), we = Symbol.for("react.client.reference"), ue, le = {}, se = {}, fe = {};
431
+ j.Fragment = P, j.jsx = function(e, r, t, n, u) {
432
+ return V(e, r, t, !1, n, u);
433
+ }, j.jsxs = function(e, r, t, n, u) {
434
+ return V(e, r, t, !0, n, u);
435
+ };
436
+ }()), j;
437
+ }
438
+ var Ee;
439
+ function he() {
440
+ return Ee || (Ee = 1, process.env.NODE_ENV === "production" ? k.exports = pe() : k.exports = Ce()), k.exports;
441
+ }
442
+ var ke = he();
443
+ const Se = "Button__64QXXrHS", Oe = {
444
+ Button: Se
445
+ }, Ne = () => /* @__PURE__ */ ke.jsx("button", { className: Oe.Button, children: "Button" });
446
+ export {
447
+ Ne as Button
448
+ };
@@ -0,0 +1,31 @@
1
+ (function(b,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],x):(b=typeof globalThis<"u"?globalThis:b||self,x(b["pennywise-ui"]={},b.require$$0))})(this,function(b,x){"use strict";var C={exports:{}},p={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and 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 G;function be(){if(G)return p;G=1;var f=Symbol.for("react.transitional.element"),S=Symbol.for("react.fragment");function w(k,s,i){var E=null;if(i!==void 0&&(E=""+i),s.key!==void 0&&(E=""+s.key),"key"in s){i={};for(var T in s)T!=="key"&&(i[T]=s[T])}else i=s;return s=i.ref,{$$typeof:f,type:k,key:E,ref:s!==void 0?s:null,props:i}}return p.Fragment=S,p.jsx=w,p.jsxs=w,p}var R={};/**
10
+ * @license React
11
+ * react-jsx-runtime.development.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and 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 H;function me(){return H||(H=1,process.env.NODE_ENV!=="production"&&function(){function f(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ke?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case $:return"Fragment";case Ce:return"Portal";case K:return"Profiler";case I:return"StrictMode";case W:return"Suspense";case B:return"SuspenseList"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case ee:return(e.displayName||"Context")+".Provider";case D:return(e._context.displayName||"Context")+".Consumer";case M:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case U:return r=e.displayName||null,r!==null?r:f(e.type)||"Memo";case q:r=e._payload,e=e._init;try{return f(e(r))}catch{}}return null}function S(e){return""+e}function w(e){try{S(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),S(e)}}function k(){}function s(){if(j===0){oe=console.log,ne=console.info,ae=console.warn,ue=console.error,le=console.group,se=console.groupCollapsed,fe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:k,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}j++}function i(){if(j--,j===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:g({},e,{value:oe}),info:g({},e,{value:ne}),warn:g({},e,{value:ae}),error:g({},e,{value:ue}),group:g({},e,{value:le}),groupCollapsed:g({},e,{value:se}),groupEnd:g({},e,{value:fe})})}0>j&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function E(e){if(z===void 0)try{throw Error()}catch(t){var r=t.stack.trim().match(/\n( *(at )?)/);z=r&&r[1]||"",ie=-1<t.stack.indexOf(`
18
+ at`)?" (<anonymous>)":-1<t.stack.indexOf("@")?"@unknown:0:0":""}return`
19
+ `+z+e+ie}function T(e,r){if(!e||V)return"";var t=X.get(e);if(t!==void 0)return t;V=!0,t=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var n=null;n=m.H,m.H=null,s();try{var u={DetermineComponentFrameRoot:function(){try{if(r){var v=function(){throw Error()};if(Object.defineProperty(v.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(v,[])}catch(d){var O=d}Reflect.construct(e,[],v)}else{try{v.call()}catch(d){O=d}e.call(v.prototype)}}else{try{throw Error()}catch(d){O=d}(v=e())&&typeof v.catch=="function"&&v.catch(function(){})}}catch(d){if(d&&O&&typeof d.stack=="string")return[d.stack,O.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=u.DetermineComponentFrameRoot(),c=o[0],y=o[1];if(c&&y){var l=c.split(`
20
+ `),_=y.split(`
21
+ `);for(o=a=0;a<l.length&&!l[a].includes("DetermineComponentFrameRoot");)a++;for(;o<_.length&&!_[o].includes("DetermineComponentFrameRoot");)o++;if(a===l.length||o===_.length)for(a=l.length-1,o=_.length-1;1<=a&&0<=o&&l[a]!==_[o];)o--;for(;1<=a&&0<=o;a--,o--)if(l[a]!==_[o]){if(a!==1||o!==1)do if(a--,o--,0>o||l[a]!==_[o]){var h=`
22
+ `+l[a].replace(" at new "," at ");return e.displayName&&h.includes("<anonymous>")&&(h=h.replace("<anonymous>",e.displayName)),typeof e=="function"&&X.set(e,h),h}while(1<=a&&0<=o);break}}}finally{V=!1,m.H=n,i(),Error.prepareStackTrace=t}return l=(l=e?e.displayName||e.name:"")?E(l):"",typeof e=="function"&&X.set(e,l),l}function A(e){if(e==null)return"";if(typeof e=="function"){var r=e.prototype;return T(e,!(!r||!r.isReactComponent))}if(typeof e=="string")return E(e);switch(e){case W:return E("Suspense");case B:return E("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case M:return e=T(e.render,!1),e;case U:return A(e.type);case q:r=e._payload,e=e._init;try{return A(e(r))}catch{}}return""}function N(){var e=m.A;return e===null?null:e.getOwner()}function xe(e){if(te.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function pe(e,r){function t(){ce||(ce=!0,console.error("%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://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function Re(){var e=f(this.type);return de[e]||(de[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function we(e,r,t,n,u,a){return t=a.ref,e={$$typeof:Y,type:e,key:r,props:a,_owner:u},(t!==void 0?t:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:Re}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function L(e,r,t,n,u,a){if(typeof e=="string"||typeof e=="function"||e===$||e===K||e===I||e===W||e===B||e===Se||typeof e=="object"&&e!==null&&(e.$$typeof===q||e.$$typeof===U||e.$$typeof===ee||e.$$typeof===D||e.$$typeof===M||e.$$typeof===Oe||e.getModuleId!==void 0)){var o=r.children;if(o!==void 0)if(n)if(J(o)){for(n=0;n<o.length;n++)Q(o[n],e);Object.freeze&&Object.freeze(o)}else console.error("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 Q(o,e)}else o="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(o+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),e===null?n="null":J(e)?n="array":e!==void 0&&e.$$typeof===Y?(n="<"+(f(e.type)||"Unknown")+" />",o=" Did you accidentally export a JSX literal instead of a component?"):n=typeof e,console.error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",n,o);if(te.call(r,"key")){o=f(e);var c=Object.keys(r).filter(function(l){return l!=="key"});n=0<c.length?"{key: someKey, "+c.join(": ..., ")+": ...}":"{key: someKey}",Ee[o+n]||(c=0<c.length?"{"+c.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
23
+ let props = %s;
24
+ <%s {...props} />
25
+ React keys must be passed directly to JSX without using spread:
26
+ let props = %s;
27
+ <%s key={someKey} {...props} />`,n,o,c,o),Ee[o+n]=!0)}if(o=null,t!==void 0&&(w(t),o=""+t),xe(r)&&(w(r.key),o=""+r.key),"key"in r){t={};for(var y in r)y!=="key"&&(t[y]=r[y])}else t=r;return o&&pe(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),we(e,o,a,u,N(),t)}function Q(e,r){if(typeof e=="object"&&e&&e.$$typeof!==Ae){if(J(e))for(var t=0;t<e.length;t++){var n=e[t];P(n)&&Z(n,r)}else if(P(e))e._store&&(e._store.validated=1);else if(e===null||typeof e!="object"?t=null:(t=re&&e[re]||e["@@iterator"],t=typeof t=="function"?t:null),typeof t=="function"&&t!==e.entries&&(t=t.call(e),t!==e))for(;!(e=t.next()).done;)P(e.value)&&Z(e.value,r)}}function P(e){return typeof e=="object"&&e!==null&&e.$$typeof===Y}function Z(e,r){if(e._store&&!e._store.validated&&e.key==null&&(e._store.validated=1,r=je(r),!ve[r])){ve[r]=!0;var t="";e&&e._owner!=null&&e._owner!==N()&&(t=null,typeof e._owner.tag=="number"?t=f(e._owner.type):typeof e._owner.name=="string"&&(t=e._owner.name),t=" It was passed a child from "+t+".");var n=m.getCurrentStack;m.getCurrentStack=function(){var u=A(e.type);return n&&(u+=n()||""),u},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',r,t),m.getCurrentStack=n}}function je(e){var r="",t=N();return t&&(t=f(t.type))&&(r=`
28
+
29
+ Check the render method of \``+t+"`."),r||(e=f(e))&&(r=`
30
+
31
+ Check the top-level render call using <`+e+">."),r}var he=x,Y=Symbol.for("react.transitional.element"),Ce=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),K=Symbol.for("react.profiler"),D=Symbol.for("react.consumer"),ee=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),Se=Symbol.for("react.offscreen"),re=Symbol.iterator,ke=Symbol.for("react.client.reference"),m=he.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te=Object.prototype.hasOwnProperty,g=Object.assign,Oe=Symbol.for("react.client.reference"),J=Array.isArray,j=0,oe,ne,ae,ue,le,se,fe;k.__reactDisabledLog=!0;var z,ie,V=!1,X=new(typeof WeakMap=="function"?WeakMap:Map),Ae=Symbol.for("react.client.reference"),ce,de={},Ee={},ve={};R.Fragment=$,R.jsx=function(e,r,t,n,u){return L(e,r,t,!1,n,u)},R.jsxs=function(e,r,t,n,u){return L(e,r,t,!0,n,u)}}()),R}var F;function ge(){return F||(F=1,process.env.NODE_ENV==="production"?C.exports=be():C.exports=me()),C.exports}var _e=ge();const Te={Button:"Button__64QXXrHS"},ye=()=>_e.jsx("button",{className:Te.Button,children:"Button"});b.Button=ye,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})});
@@ -0,0 +1,48 @@
1
+ :root {
2
+ --color-background-primary: #f1f4f8;
3
+ --color-background-secondary: #ffffff;
4
+ --color-text-primary: #213245;
5
+ --color-text-secondary: #6d7e92;
6
+ --color-text-primary-inverted: #ffffff;
7
+ --color-text-secondary-inverted: #b9c0d0;
8
+ --color-text-info: #0e71eb;
9
+ --color-text-info-interactive: #0c60c8;
10
+ --color-text-success: #db1042;
11
+ --color-text-error: #23c779;
12
+ --color-text-warning: #ea7500;
13
+ --color-border-primary: #d7dbe4;
14
+ --color-border-success: #23c779;
15
+ --color-border-info: #0e71eb;
16
+ --color-border-info-interactive: #0c60c8;
17
+ --color-border-error: #db1042;
18
+ --color-border-warning: #ea7500;
19
+ --color-fill-primary: #dadfec;
20
+ --color-fill-secondary: #eaeef5;
21
+ --color-fill-disabled: #e3e4e8;
22
+ --color-fill-contrast: #ffffff;
23
+ --color-fill-primary-dark: #213245;
24
+ --color-fill-secondary-dark: #6d7e92;
25
+ --color-fill-success: #23c779;
26
+ --color-fill-info: #0e71eb;
27
+ --color-fill-info-interactive: #0c60c8;
28
+ --color-fill-selected: #d8e8fc;
29
+ --color-fill-error: #db1042;
30
+ --color-fill-warning: #ea7500;
31
+ --color-status-warning: #ea7500;
32
+ --color-status-inactive: #b9c0d0;
33
+ --color-status-error: #db1042;
34
+ --color-status-info: #0e71eb;
35
+ --color-status-success: #23c779;
36
+ --color-status-bg-info: #e8eefc;
37
+ --color-status-bg-success: #e9fbf3;
38
+ --color-status-bg-error: #fde7ed;
39
+ --color-status-bg-warning: #fff2e5;
40
+ --color-icon-primary: #213245;
41
+ --color-icon-secondary: #6d7e92;
42
+ --color-icon-contrast: #ffffff;
43
+ --color-icon-success: #23c779;
44
+ --color-icon-warning: #ea7500;
45
+ --color-icon-info: #0e71eb;
46
+ --color-icon-info-interactive: #0c60c8;
47
+ --color-icon-error: #db1042;
48
+ }
@@ -0,0 +1,4 @@
1
+ @custom-media --mobile (max-width 719px);
2
+ @custom-media --tablet (max-width 1279px);
3
+ @custom-media --desktop (max-width 1439px);
4
+ @custom-media --desktop-l (min-width 1440px);
@@ -0,0 +1,10 @@
1
+ :root {
2
+ --gutter-xxxs: 4px;
3
+ --gutter-xxs: 8px;
4
+ --gutter-xs: 12px;
5
+ --gutter-s: 16px;
6
+ --gutter-m: 20px;
7
+ --gutter-l: 24px;
8
+ --gutter-xl: 28px;
9
+ --gutter-xxl: 32px;
10
+ }
package/package.json ADDED
@@ -0,0 +1,81 @@
1
+ {
2
+ "name": "pennywise-ui",
3
+ "version": "0.0.0",
4
+ "type": "module",
5
+ "license": "MIT",
6
+ "publisher": "egoreq",
7
+ "main": "./dist/index.umd.cjs",
8
+ "module": "./dist/index.js",
9
+ "types": "./dist/index.d.ts",
10
+ "dependencies": {
11
+ "react": "19.0.0",
12
+ "react-dom": "19.0.0"
13
+ },
14
+ "devDependencies": {
15
+ "@chromatic-com/storybook": "3",
16
+ "@csstools/postcss-global-data": "3.0.0",
17
+ "@eslint/js": "9.22.0",
18
+ "@storybook/addon-essentials": "8.6.12",
19
+ "@storybook/addon-interactions": "8.6.12",
20
+ "@storybook/addon-links": "8.6.12",
21
+ "@storybook/addon-onboarding": "8.6.12",
22
+ "@storybook/builder-vite": "8.6.12",
23
+ "@storybook/react": "8.6.12",
24
+ "@storybook/react-vite": "8.6.12",
25
+ "@types/node": "22.14.1",
26
+ "@types/react": "19.0.10",
27
+ "@types/react-dom": "19.0.4",
28
+ "@typescript-eslint/parser": "8.31.0",
29
+ "@vitejs/plugin-react": "4.3.4",
30
+ "classnames": "2.5.1",
31
+ "concurrently": "9.1.2",
32
+ "eslint": "9.22.0",
33
+ "eslint-plugin-react": "7.37.5",
34
+ "eslint-plugin-react-hooks": "5.2.0",
35
+ "eslint-plugin-react-refresh": "0.4.19",
36
+ "eslint-plugin-simple-import-sort": "12.1.1",
37
+ "eslint-plugin-storybook": "0.12.0",
38
+ "husky": "9.1.7",
39
+ "lint-staged": "15.5.1",
40
+ "postcss-custom-media": "11.0.5",
41
+ "prettier": "3.5.3",
42
+ "react-docgen-typescript": "2.2.2",
43
+ "storybook": "8.6.12",
44
+ "stylelint": "16.18.0",
45
+ "stylelint-config-standard": "38.0.0",
46
+ "typescript": "~5.7.2",
47
+ "typescript-eslint": "8.26.1",
48
+ "vite": "6.3.1",
49
+ "vite-node": "3.1.2",
50
+ "vite-plugin-dts": "4.5.3",
51
+ "vite-plugin-static-copy": "2.3.1"
52
+ },
53
+ "lint-staged": {
54
+ "src/**/*.{js,jsx,ts,tsx}": [
55
+ "pnpm run lint:fix",
56
+ "prettier --write --ignore-unknown"
57
+ ],
58
+ "**/*": [
59
+ "prettier --write --ignore-unknown"
60
+ ],
61
+ "src/**/*.module.css": [
62
+ "stylelint --fix"
63
+ ]
64
+ },
65
+ "eslintConfig": {
66
+ "extends": [
67
+ "plugin:storybook/recommended"
68
+ ]
69
+ },
70
+ "scripts": {
71
+ "start": "storybook dev -p 6006",
72
+ "build-storybook": "storybook build",
73
+ "build-package": "pnpm run generate-css-tokens && vite build -c vite-package.config.ts",
74
+ "build": "concurrently \"pnpm run build-package\" \"pnpm run build-storybook\"",
75
+ "lint": "eslint .",
76
+ "lint:fix": "eslint . --fix",
77
+ "stylelint": "stylelint src/**/*.module.css",
78
+ "generate-css-tokens": "npx vite-node src/tokens/utils/generateCssTokens && prettier --write --ignore-unknown **/*.css",
79
+ "lint-staged": "lint-staged"
80
+ }
81
+ }