enefit-design-system 0.0.1 → 0.0.3

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 CHANGED
@@ -13,3 +13,5 @@ Run tests:
13
13
  ```
14
14
  npx vitest run
15
15
  ```
16
+
17
+ .
package/dist/index.d.ts CHANGED
@@ -1,7 +1,10 @@
1
1
  /// <reference types="react" />
2
2
 
3
3
  import { JSX as JSX_2 } from 'react';
4
+ import { SVGProps } from 'react';
4
5
 
5
6
  export declare function Hello(props: any): JSX_2.Element;
6
7
 
8
+ export declare const IconWindmillXl: (props: SVGProps<SVGSVGElement>) => JSX_2.Element;
9
+
7
10
  export { }
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import we from "react";
3
- var Z = { exports: {} }, F = {};
2
+ import Ce from "react";
3
+ var Q = { exports: {} }, A = {};
4
4
  /**
5
5
  * @license React
6
6
  * react-jsx-runtime.production.min.js
@@ -13,22 +13,22 @@ var Z = { exports: {} }, F = {};
13
13
  var Oe;
14
14
  function fr() {
15
15
  if (Oe)
16
- return F;
16
+ return A;
17
17
  Oe = 1;
18
- var C = we, P = Symbol.for("react.element"), U = Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, I = C.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, W = { key: !0, ref: !0, __self: !0, __source: !0 };
19
- function j(h, c, T) {
20
- var p, b = {}, E = null, $ = null;
21
- T !== void 0 && (E = "" + T), c.key !== void 0 && (E = "" + c.key), c.ref !== void 0 && ($ = c.ref);
22
- for (p in c)
23
- m.call(c, p) && !W.hasOwnProperty(p) && (b[p] = c[p]);
24
- if (h && h.defaultProps)
25
- for (p in c = h.defaultProps, c)
26
- b[p] === void 0 && (b[p] = c[p]);
27
- return { $$typeof: P, type: h, key: E, ref: $, props: b, _owner: I.current };
18
+ var b = Ce, P = Symbol.for("react.element"), U = Symbol.for("react.fragment"), T = Object.prototype.hasOwnProperty, q = b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, I = { key: !0, ref: !0, __self: !0, __source: !0 };
19
+ function j(E, f, w) {
20
+ var p, y = {}, m = null, W = null;
21
+ w !== void 0 && (m = "" + w), f.key !== void 0 && (m = "" + f.key), f.ref !== void 0 && (W = f.ref);
22
+ for (p in f)
23
+ T.call(f, p) && !I.hasOwnProperty(p) && (y[p] = f[p]);
24
+ if (E && E.defaultProps)
25
+ for (p in f = E.defaultProps, f)
26
+ y[p] === void 0 && (y[p] = f[p]);
27
+ return { $$typeof: P, type: E, key: m, ref: W, props: y, _owner: q.current };
28
28
  }
29
- return F.Fragment = U, F.jsx = j, F.jsxs = j, F;
29
+ return A.Fragment = U, A.jsx = j, A.jsxs = j, A;
30
30
  }
31
- var A = {};
31
+ var F = {};
32
32
  /**
33
33
  * @license React
34
34
  * react-jsx-runtime.development.js
@@ -39,24 +39,24 @@ var A = {};
39
39
  * LICENSE file in the root directory of this source tree.
40
40
  */
41
41
  var Se;
42
- function cr() {
42
+ function vr() {
43
43
  return Se || (Se = 1, process.env.NODE_ENV !== "production" && function() {
44
- var C = we, P = Symbol.for("react.element"), U = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), I = Symbol.for("react.strict_mode"), W = Symbol.for("react.profiler"), j = Symbol.for("react.provider"), h = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), $ = Symbol.for("react.offscreen"), Q = Symbol.iterator, Ce = "@@iterator";
45
- function Pe(e) {
44
+ var b = Ce, P = Symbol.for("react.element"), U = Symbol.for("react.portal"), T = Symbol.for("react.fragment"), q = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), j = Symbol.for("react.provider"), E = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), ee = Symbol.iterator, Pe = "@@iterator";
45
+ function je(e) {
46
46
  if (e === null || typeof e != "object")
47
47
  return null;
48
- var r = Q && e[Q] || e[Ce];
48
+ var r = ee && e[ee] || e[Pe];
49
49
  return typeof r == "function" ? r : null;
50
50
  }
51
- var O = C.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
52
- function f(e) {
51
+ var O = b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
52
+ function c(e) {
53
53
  {
54
54
  for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
55
55
  t[n - 1] = arguments[n];
56
- je("error", e, t);
56
+ xe("error", e, t);
57
57
  }
58
58
  }
59
- function je(e, r, t) {
59
+ function xe(e, r, t) {
60
60
  {
61
61
  var n = O.ReactDebugCurrentFrame, o = n.getStackAddendum();
62
62
  o !== "" && (r += "%s", t = t.concat([o]));
@@ -66,14 +66,14 @@ function cr() {
66
66
  u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
67
67
  }
68
68
  }
69
- var xe = !1, ke = !1, De = !1, Fe = !1, Ae = !1, ee;
70
- ee = Symbol.for("react.module.reference");
69
+ var ke = !1, De = !1, Ae = !1, Fe = !1, qe = !1, re;
70
+ re = Symbol.for("react.module.reference");
71
71
  function Ie(e) {
72
- return !!(typeof e == "string" || typeof e == "function" || e === m || e === W || Ae || e === I || e === T || e === p || Fe || e === $ || xe || ke || De || typeof e == "object" && e !== null && (e.$$typeof === E || e.$$typeof === b || e.$$typeof === j || e.$$typeof === h || e.$$typeof === c || // This needs to include all possible module reference object
72
+ return !!(typeof e == "string" || typeof e == "function" || e === T || e === I || qe || e === q || e === w || e === p || Fe || e === W || ke || De || Ae || typeof e == "object" && e !== null && (e.$$typeof === m || e.$$typeof === y || e.$$typeof === j || e.$$typeof === E || e.$$typeof === f || // This needs to include all possible module reference object
73
73
  // types supported by any Flight configuration anywhere since
74
74
  // we don't know which Flight build this will end up being used
75
75
  // with.
76
- e.$$typeof === ee || e.getModuleId !== void 0));
76
+ e.$$typeof === re || e.getModuleId !== void 0));
77
77
  }
78
78
  function We(e, r, t) {
79
79
  var n = e.displayName;
@@ -82,47 +82,47 @@ function cr() {
82
82
  var o = r.displayName || r.name || "";
83
83
  return o !== "" ? t + "(" + o + ")" : t;
84
84
  }
85
- function re(e) {
85
+ function te(e) {
86
86
  return e.displayName || "Context";
87
87
  }
88
- function y(e) {
88
+ function g(e) {
89
89
  if (e == null)
90
90
  return null;
91
- if (typeof e.tag == "number" && f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
91
+ 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")
92
92
  return e.displayName || e.name || null;
93
93
  if (typeof e == "string")
94
94
  return e;
95
95
  switch (e) {
96
- case m:
96
+ case T:
97
97
  return "Fragment";
98
98
  case U:
99
99
  return "Portal";
100
- case W:
101
- return "Profiler";
102
100
  case I:
101
+ return "Profiler";
102
+ case q:
103
103
  return "StrictMode";
104
- case T:
104
+ case w:
105
105
  return "Suspense";
106
106
  case p:
107
107
  return "SuspenseList";
108
108
  }
109
109
  if (typeof e == "object")
110
110
  switch (e.$$typeof) {
111
- case h:
111
+ case E:
112
112
  var r = e;
113
- return re(r) + ".Consumer";
113
+ return te(r) + ".Consumer";
114
114
  case j:
115
115
  var t = e;
116
- return re(t._context) + ".Provider";
117
- case c:
116
+ return te(t._context) + ".Provider";
117
+ case f:
118
118
  return We(e, e.render, "ForwardRef");
119
- case b:
119
+ case y:
120
120
  var n = e.displayName || null;
121
- return n !== null ? n : y(e.type) || "Memo";
122
- case E: {
121
+ return n !== null ? n : g(e.type) || "Memo";
122
+ case m: {
123
123
  var o = e, u = o._payload, i = o._init;
124
124
  try {
125
- return y(i(u));
125
+ return g(i(u));
126
126
  } catch {
127
127
  return null;
128
128
  }
@@ -130,18 +130,18 @@ function cr() {
130
130
  }
131
131
  return null;
132
132
  }
133
- var R = Object.assign, x = 0, te, ne, ae, ie, oe, ue, se;
134
- function le() {
133
+ var R = Object.assign, x = 0, ne, ae, ie, oe, ue, se, le;
134
+ function ce() {
135
135
  }
136
- le.__reactDisabledLog = !0;
136
+ ce.__reactDisabledLog = !0;
137
137
  function $e() {
138
138
  {
139
139
  if (x === 0) {
140
- te = console.log, ne = console.info, ae = console.warn, ie = console.error, oe = console.group, ue = console.groupCollapsed, se = console.groupEnd;
140
+ ne = console.log, ae = console.info, ie = console.warn, oe = console.error, ue = console.group, se = console.groupCollapsed, le = console.groupEnd;
141
141
  var e = {
142
142
  configurable: !0,
143
143
  enumerable: !0,
144
- value: le,
144
+ value: ce,
145
145
  writable: !0
146
146
  };
147
147
  Object.defineProperties(console, {
@@ -167,60 +167,60 @@ function cr() {
167
167
  };
168
168
  Object.defineProperties(console, {
169
169
  log: R({}, e, {
170
- value: te
170
+ value: ne
171
171
  }),
172
172
  info: R({}, e, {
173
- value: ne
173
+ value: ae
174
174
  }),
175
175
  warn: R({}, e, {
176
- value: ae
176
+ value: ie
177
177
  }),
178
178
  error: R({}, e, {
179
- value: ie
179
+ value: oe
180
180
  }),
181
181
  group: R({}, e, {
182
- value: oe
182
+ value: ue
183
183
  }),
184
184
  groupCollapsed: R({}, e, {
185
- value: ue
185
+ value: se
186
186
  }),
187
187
  groupEnd: R({}, e, {
188
- value: se
188
+ value: le
189
189
  })
190
190
  });
191
191
  }
192
- x < 0 && f("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
192
+ x < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
193
193
  }
194
194
  }
195
- var N = O.ReactCurrentDispatcher, B;
196
- function Y(e, r, t) {
195
+ var N = O.ReactCurrentDispatcher, z;
196
+ function $(e, r, t) {
197
197
  {
198
- if (B === void 0)
198
+ if (z === void 0)
199
199
  try {
200
200
  throw Error();
201
201
  } catch (o) {
202
202
  var n = o.stack.trim().match(/\n( *(at )?)/);
203
- B = n && n[1] || "";
203
+ z = n && n[1] || "";
204
204
  }
205
205
  return `
206
- ` + B + e;
206
+ ` + z + e;
207
207
  }
208
208
  }
209
- var J = !1, L;
209
+ var B = !1, Y;
210
210
  {
211
211
  var Le = typeof WeakMap == "function" ? WeakMap : Map;
212
- L = new Le();
212
+ Y = new Le();
213
213
  }
214
214
  function fe(e, r) {
215
- if (!e || J)
215
+ if (!e || B)
216
216
  return "";
217
217
  {
218
- var t = L.get(e);
218
+ var t = Y.get(e);
219
219
  if (t !== void 0)
220
220
  return t;
221
221
  }
222
222
  var n;
223
- J = !0;
223
+ B = !0;
224
224
  var o = Error.prepareStackTrace;
225
225
  Error.prepareStackTrace = void 0;
226
226
  var u;
@@ -268,63 +268,63 @@ function cr() {
268
268
  if (s !== 1 || l !== 1)
269
269
  do
270
270
  if (s--, l--, l < 0 || a[s] !== v[l]) {
271
- var g = `
271
+ var h = `
272
272
  ` + a[s].replace(" at new ", " at ");
273
- return e.displayName && g.includes("<anonymous>") && (g = g.replace("<anonymous>", e.displayName)), typeof e == "function" && L.set(e, g), g;
273
+ return e.displayName && h.includes("<anonymous>") && (h = h.replace("<anonymous>", e.displayName)), typeof e == "function" && Y.set(e, h), h;
274
274
  }
275
275
  while (s >= 1 && l >= 0);
276
276
  break;
277
277
  }
278
278
  }
279
279
  } finally {
280
- J = !1, N.current = u, Ye(), Error.prepareStackTrace = o;
280
+ B = !1, N.current = u, Ye(), Error.prepareStackTrace = o;
281
281
  }
282
- var w = e ? e.displayName || e.name : "", _ = w ? Y(w) : "";
283
- return typeof e == "function" && L.set(e, _), _;
282
+ var C = e ? e.displayName || e.name : "", _ = C ? $(C) : "";
283
+ return typeof e == "function" && Y.set(e, _), _;
284
284
  }
285
- function Ve(e, r, t) {
285
+ function Me(e, r, t) {
286
286
  return fe(e, !1);
287
287
  }
288
- function Me(e) {
288
+ function Ve(e) {
289
289
  var r = e.prototype;
290
290
  return !!(r && r.isReactComponent);
291
291
  }
292
- function V(e, r, t) {
292
+ function L(e, r, t) {
293
293
  if (e == null)
294
294
  return "";
295
295
  if (typeof e == "function")
296
- return fe(e, Me(e));
296
+ return fe(e, Ve(e));
297
297
  if (typeof e == "string")
298
- return Y(e);
298
+ return $(e);
299
299
  switch (e) {
300
- case T:
301
- return Y("Suspense");
300
+ case w:
301
+ return $("Suspense");
302
302
  case p:
303
- return Y("SuspenseList");
303
+ return $("SuspenseList");
304
304
  }
305
305
  if (typeof e == "object")
306
306
  switch (e.$$typeof) {
307
- case c:
308
- return Ve(e.render);
309
- case b:
310
- return V(e.type, r, t);
311
- case E: {
307
+ case f:
308
+ return Me(e.render);
309
+ case y:
310
+ return L(e.type, r, t);
311
+ case m: {
312
312
  var n = e, o = n._payload, u = n._init;
313
313
  try {
314
- return V(u(o), r, t);
314
+ return L(u(o), r, t);
315
315
  } catch {
316
316
  }
317
317
  }
318
318
  }
319
319
  return "";
320
320
  }
321
- var k = Object.prototype.hasOwnProperty, ce = {}, ve = O.ReactDebugCurrentFrame;
321
+ var k = Object.prototype.hasOwnProperty, ve = {}, de = O.ReactDebugCurrentFrame;
322
322
  function M(e) {
323
323
  if (e) {
324
- var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
325
- ve.setExtraStackFrame(t);
324
+ var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
325
+ de.setExtraStackFrame(t);
326
326
  } else
327
- ve.setExtraStackFrame(null);
327
+ de.setExtraStackFrame(null);
328
328
  }
329
329
  function Ue(e, r, t, n, o) {
330
330
  {
@@ -341,35 +341,35 @@ function cr() {
341
341
  } catch (s) {
342
342
  a = s;
343
343
  }
344
- a && !(a instanceof Error) && (M(o), f("%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, i, typeof a), M(null)), a instanceof Error && !(a.message in ce) && (ce[a.message] = !0, M(o), f("Failed %s type: %s", t, a.message), M(null));
344
+ a && !(a instanceof Error) && (M(o), 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, i, typeof a), M(null)), a instanceof Error && !(a.message in ve) && (ve[a.message] = !0, M(o), c("Failed %s type: %s", t, a.message), M(null));
345
345
  }
346
346
  }
347
347
  }
348
348
  var Ne = Array.isArray;
349
- function q(e) {
349
+ function J(e) {
350
350
  return Ne(e);
351
351
  }
352
- function Be(e) {
352
+ function ze(e) {
353
353
  {
354
354
  var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
355
355
  return t;
356
356
  }
357
357
  }
358
- function Je(e) {
358
+ function Be(e) {
359
359
  try {
360
- return de(e), !1;
360
+ return pe(e), !1;
361
361
  } catch {
362
362
  return !0;
363
363
  }
364
364
  }
365
- function de(e) {
365
+ function pe(e) {
366
366
  return "" + e;
367
367
  }
368
- function pe(e) {
369
- if (Je(e))
370
- return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Be(e)), de(e);
368
+ function he(e) {
369
+ if (Be(e))
370
+ return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ze(e)), pe(e);
371
371
  }
372
- var D = O.ReactCurrentOwner, qe = {
372
+ var D = O.ReactCurrentOwner, Je = {
373
373
  key: !0,
374
374
  ref: !0,
375
375
  __self: !0,
@@ -392,16 +392,16 @@ function cr() {
392
392
  }
393
393
  return e.key !== void 0;
394
394
  }
395
- function ze(e, r) {
395
+ function He(e, r) {
396
396
  if (typeof e.ref == "string" && D.current && r && D.current.stateNode !== r) {
397
- var t = y(D.current.type);
398
- K[t] || (f('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', y(D.current.type), e.ref), K[t] = !0);
397
+ var t = g(D.current.type);
398
+ K[t] || (c('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', g(D.current.type), e.ref), K[t] = !0);
399
399
  }
400
400
  }
401
- function He(e, r) {
401
+ function Xe(e, r) {
402
402
  {
403
403
  var t = function() {
404
- ge || (ge = !0, f("%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));
404
+ 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));
405
405
  };
406
406
  t.isReactWarning = !0, Object.defineProperty(e, "key", {
407
407
  get: t,
@@ -409,10 +409,10 @@ function cr() {
409
409
  });
410
410
  }
411
411
  }
412
- function Xe(e, r) {
412
+ function Ze(e, r) {
413
413
  {
414
414
  var t = function() {
415
- ye || (ye = !0, f("%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));
415
+ ye || (ye = !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));
416
416
  };
417
417
  t.isReactWarning = !0, Object.defineProperty(e, "ref", {
418
418
  get: t,
@@ -420,7 +420,7 @@ function cr() {
420
420
  });
421
421
  }
422
422
  }
423
- var Ze = function(e, r, t, n, o, u, i) {
423
+ var Qe = function(e, r, t, n, o, u, i) {
424
424
  var a = {
425
425
  // This tag allows us to uniquely identify this as a React Element
426
426
  $$typeof: P,
@@ -449,12 +449,12 @@ function cr() {
449
449
  value: o
450
450
  }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
451
451
  };
452
- function Qe(e, r, t, n, o) {
452
+ function er(e, r, t, n, o) {
453
453
  {
454
454
  var u, i = {}, a = null, v = null;
455
- t !== void 0 && (pe(t), a = "" + t), Ge(r) && (pe(r.key), a = "" + r.key), Ke(r) && (v = r.ref, ze(r, o));
455
+ t !== void 0 && (he(t), a = "" + t), Ge(r) && (he(r.key), a = "" + r.key), Ke(r) && (v = r.ref, He(r, o));
456
456
  for (u in r)
457
- k.call(r, u) && !qe.hasOwnProperty(u) && (i[u] = r[u]);
457
+ k.call(r, u) && !Je.hasOwnProperty(u) && (i[u] = r[u]);
458
458
  if (e && e.defaultProps) {
459
459
  var s = e.defaultProps;
460
460
  for (u in s)
@@ -462,28 +462,28 @@ function cr() {
462
462
  }
463
463
  if (a || v) {
464
464
  var l = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
465
- a && He(i, l), v && Xe(i, l);
465
+ a && Xe(i, l), v && Ze(i, l);
466
466
  }
467
- return Ze(e, a, v, o, n, D.current, i);
467
+ return Qe(e, a, v, o, n, D.current, i);
468
468
  }
469
469
  }
470
470
  var G = O.ReactCurrentOwner, be = O.ReactDebugCurrentFrame;
471
471
  function S(e) {
472
472
  if (e) {
473
- var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
473
+ var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
474
474
  be.setExtraStackFrame(t);
475
475
  } else
476
476
  be.setExtraStackFrame(null);
477
477
  }
478
- var z;
479
- z = !1;
480
- function H(e) {
478
+ var H;
479
+ H = !1;
480
+ function X(e) {
481
481
  return typeof e == "object" && e !== null && e.$$typeof === P;
482
482
  }
483
- function he() {
483
+ function Ee() {
484
484
  {
485
485
  if (G.current) {
486
- var e = y(G.current.type);
486
+ var e = g(G.current.type);
487
487
  if (e)
488
488
  return `
489
489
 
@@ -492,13 +492,13 @@ Check the render method of \`` + e + "`.";
492
492
  return "";
493
493
  }
494
494
  }
495
- function er(e) {
495
+ function rr(e) {
496
496
  return "";
497
497
  }
498
- var Ee = {};
499
- function rr(e) {
498
+ var me = {};
499
+ function tr(e) {
500
500
  {
501
- var r = he();
501
+ var r = Ee();
502
502
  if (!r) {
503
503
  var t = typeof e == "string" ? e : e.displayName || e.name;
504
504
  t && (r = `
@@ -513,34 +513,34 @@ Check the top-level render call using <` + t + ">.");
513
513
  if (!e._store || e._store.validated || e.key != null)
514
514
  return;
515
515
  e._store.validated = !0;
516
- var t = rr(r);
517
- if (Ee[t])
516
+ var t = tr(r);
517
+ if (me[t])
518
518
  return;
519
- Ee[t] = !0;
519
+ me[t] = !0;
520
520
  var n = "";
521
- e && e._owner && e._owner !== G.current && (n = " It was passed a child from " + y(e._owner.type) + "."), S(e), f('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);
521
+ e && e._owner && e._owner !== G.current && (n = " It was passed a child from " + g(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);
522
522
  }
523
523
  }
524
524
  function _e(e, r) {
525
525
  {
526
526
  if (typeof e != "object")
527
527
  return;
528
- if (q(e))
528
+ if (J(e))
529
529
  for (var t = 0; t < e.length; t++) {
530
530
  var n = e[t];
531
- H(n) && Re(n, r);
531
+ X(n) && Re(n, r);
532
532
  }
533
- else if (H(e))
533
+ else if (X(e))
534
534
  e._store && (e._store.validated = !0);
535
535
  else if (e) {
536
- var o = Pe(e);
536
+ var o = je(e);
537
537
  if (typeof o == "function" && o !== e.entries)
538
538
  for (var u = o.call(e), i; !(i = u.next()).done; )
539
- H(i.value) && Re(i.value, r);
539
+ X(i.value) && Re(i.value, r);
540
540
  }
541
541
  }
542
542
  }
543
- function tr(e) {
543
+ function nr(e) {
544
544
  {
545
545
  var r = e.type;
546
546
  if (r == null || typeof r == "string")
@@ -548,95 +548,110 @@ Check the top-level render call using <` + t + ">.");
548
548
  var t;
549
549
  if (typeof r == "function")
550
550
  t = r.propTypes;
551
- else if (typeof r == "object" && (r.$$typeof === c || // Note: Memo only checks outer props here.
551
+ else if (typeof r == "object" && (r.$$typeof === f || // Note: Memo only checks outer props here.
552
552
  // Inner props are checked in the reconciler.
553
- r.$$typeof === b))
553
+ r.$$typeof === y))
554
554
  t = r.propTypes;
555
555
  else
556
556
  return;
557
557
  if (t) {
558
- var n = y(r);
558
+ var n = g(r);
559
559
  Ue(t, e.props, "prop", n, e);
560
- } else if (r.PropTypes !== void 0 && !z) {
561
- z = !0;
562
- var o = y(r);
563
- f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
560
+ } else if (r.PropTypes !== void 0 && !H) {
561
+ H = !0;
562
+ var o = g(r);
563
+ c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
564
564
  }
565
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
565
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
566
566
  }
567
567
  }
568
- function nr(e) {
568
+ function ar(e) {
569
569
  {
570
570
  for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
571
571
  var n = r[t];
572
572
  if (n !== "children" && n !== "key") {
573
- S(e), f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), S(null);
573
+ S(e), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), S(null);
574
574
  break;
575
575
  }
576
576
  }
577
- e.ref !== null && (S(e), f("Invalid attribute `ref` supplied to `React.Fragment`."), S(null));
577
+ e.ref !== null && (S(e), c("Invalid attribute `ref` supplied to `React.Fragment`."), S(null));
578
578
  }
579
579
  }
580
- var me = {};
581
- function Te(e, r, t, n, o, u) {
580
+ var Te = {};
581
+ function we(e, r, t, n, o, u) {
582
582
  {
583
583
  var i = Ie(e);
584
584
  if (!i) {
585
585
  var a = "";
586
586
  (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.");
587
- var v = er();
588
- v ? a += v : a += he();
587
+ var v = rr();
588
+ v ? a += v : a += Ee();
589
589
  var s;
590
- e === null ? s = "null" : q(e) ? s = "array" : e !== void 0 && e.$$typeof === P ? (s = "<" + (y(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, f("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);
590
+ e === null ? s = "null" : J(e) ? s = "array" : e !== void 0 && e.$$typeof === P ? (s = "<" + (g(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);
591
591
  }
592
- var l = Qe(e, r, t, o, u);
592
+ var l = er(e, r, t, o, u);
593
593
  if (l == null)
594
594
  return l;
595
595
  if (i) {
596
- var g = r.children;
597
- if (g !== void 0)
596
+ var h = r.children;
597
+ if (h !== void 0)
598
598
  if (n)
599
- if (q(g)) {
600
- for (var w = 0; w < g.length; w++)
601
- _e(g[w], e);
602
- Object.freeze && Object.freeze(g);
599
+ if (J(h)) {
600
+ for (var C = 0; C < h.length; C++)
601
+ _e(h[C], e);
602
+ Object.freeze && Object.freeze(h);
603
603
  } else
604
- f("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
604
+ 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.");
605
605
  else
606
- _e(g, e);
606
+ _e(h, e);
607
607
  }
608
608
  if (k.call(r, "key")) {
609
- var _ = y(e), d = Object.keys(r).filter(function(lr) {
610
- return lr !== "key";
611
- }), X = d.length > 0 ? "{key: someKey, " + d.join(": ..., ") + ": ...}" : "{key: someKey}";
612
- if (!me[_ + X]) {
613
- var sr = d.length > 0 ? "{" + d.join(": ..., ") + ": ...}" : "{}";
614
- f(`A props object containing a "key" prop is being spread into JSX:
609
+ var _ = g(e), d = Object.keys(r).filter(function(cr) {
610
+ return cr !== "key";
611
+ }), Z = d.length > 0 ? "{key: someKey, " + d.join(": ..., ") + ": ...}" : "{key: someKey}";
612
+ if (!Te[_ + Z]) {
613
+ var lr = d.length > 0 ? "{" + d.join(": ..., ") + ": ...}" : "{}";
614
+ c(`A props object containing a "key" prop is being spread into JSX:
615
615
  let props = %s;
616
616
  <%s {...props} />
617
617
  React keys must be passed directly to JSX without using spread:
618
618
  let props = %s;
619
- <%s key={someKey} {...props} />`, X, _, sr, _), me[_ + X] = !0;
619
+ <%s key={someKey} {...props} />`, Z, _, lr, _), Te[_ + Z] = !0;
620
620
  }
621
621
  }
622
- return e === m ? nr(l) : tr(l), l;
622
+ return e === T ? ar(l) : nr(l), l;
623
623
  }
624
624
  }
625
- function ar(e, r, t) {
626
- return Te(e, r, t, !0);
627
- }
628
625
  function ir(e, r, t) {
629
- return Te(e, r, t, !1);
626
+ return we(e, r, t, !0);
630
627
  }
631
- var or = ir, ur = ar;
632
- A.Fragment = m, A.jsx = or, A.jsxs = ur;
633
- }()), A;
628
+ function or(e, r, t) {
629
+ return we(e, r, t, !1);
630
+ }
631
+ var ur = or, sr = ir;
632
+ F.Fragment = T, F.jsx = ur, F.jsxs = sr;
633
+ }()), F;
634
634
  }
635
- process.env.NODE_ENV === "production" ? Z.exports = fr() : Z.exports = cr();
636
- var vr = Z.exports;
637
- function pr(C) {
638
- return /* @__PURE__ */ vr.jsx("div", { ...C, children: "Hello" });
635
+ process.env.NODE_ENV === "production" ? Q.exports = fr() : Q.exports = vr();
636
+ var V = Q.exports;
637
+ function pr(b) {
638
+ return /* @__PURE__ */ V.jsx("div", { ...b, children: "Hello" });
639
639
  }
640
+ const hr = (b) => /* @__PURE__ */ V.jsxs(
641
+ "svg",
642
+ {
643
+ xmlns: "http://www.w3.org/2000/svg",
644
+ width: 96,
645
+ height: 96,
646
+ fill: "currentColor",
647
+ ...b,
648
+ children: [
649
+ /* @__PURE__ */ V.jsx("path", { d: "M83.075 24.111a8 8 0 0 0-2.245.313 7.66 7.66 0 0 0-3.39-3.232 7.71 7.71 0 0 0-8.812 1.489 7.63 7.63 0 0 0-2.13 4.165 6.83 6.83 0 0 0-4.52 2.317 6.77 6.77 0 0 0 .482 9.383 6.83 6.83 0 0 0 4.735 1.846h15.873a8.2 8.2 0 0 0 5.623-2.47A8.13 8.13 0 0 0 91 32.253a8.13 8.13 0 0 0-2.309-5.671 8.2 8.2 0 0 0-5.623-2.47zm0 14.046H67.202a4.6 4.6 0 0 1-3.118-1.398 4.55 4.55 0 0 1 0-6.317 4.6 4.6 0 0 1 3.118-1.398h.255a1.1 1.1 0 0 0 .83-.29 1.1 1.1 0 0 0 .36-.798 5.4 5.4 0 0 1 1.32-3.432 5.461 5.461 0 0 1 6.848-1.147 5.42 5.42 0 0 1 2.376 2.813 1.12 1.12 0 0 0 .614.64 1.12 1.12 0 0 0 .89 0 5.95 5.95 0 0 1 7.086 1.837 5.89 5.89 0 0 1 1.044 4.961 5.9 5.9 0 0 1-1.157 2.329 5.93 5.93 0 0 1-4.593 2.185z" }),
650
+ /* @__PURE__ */ V.jsx("path", { d: "M81.092 63.909 53.604 46.093 52.033 13.47a4.46 4.46 0 0 0-1.315-3.161 4.5 4.5 0 0 0-6.35 0 4.46 4.46 0 0 0-1.316 3.16l-1.579 32.637L13.978 63.88a4.5 4.5 0 0 0-1.783 1.903 4.45 4.45 0 0 0 .676 4.935 4.5 4.5 0 0 0 3.382 1.5c.788 0 1.563-.205 2.245-.596L42.32 59.25 40.68 85.815a1.11 1.11 0 0 0 .63 1.075c.133.064.278.102.425.11h.068a1.115 1.115 0 0 0 1.123-1.043l1.698-27.913 2.874-1.49 2.874 1.49 1.736 27.913c.019.283.145.549.354.742.208.194.483.302.768.301h.068a1.13 1.13 0 0 0 .996-.752c.048-.139.068-.286.059-.433l-1.64-26.564 23.821 12.37a4.5 4.5 0 0 0 2.246.596q.58 0 1.145-.142a4.5 4.5 0 0 0 2.244-1.343 4.46 4.46 0 0 0 .708-4.938 4.5 4.5 0 0 0-1.777-1.915zm-29.86-15.752q.068.178.112.365c0 .126.068.253.09.372q.035.215.045.432a3 3 0 0 1 0 .343q-.004.233-.045.462-.015.154-.052.306a4 4 0 0 1-.15.491 1 1 0 0 1-.082.216q-.127.291-.3.56a.6.6 0 0 0-.052.089q-.195.279-.434.521l-.052.06a4 4 0 0 1-.442.365l-.202.142a3.93 3.93 0 0 1-4.587-.217 4 4 0 0 1-.322-.268c-.083-.074-.157-.164-.232-.246a5 5 0 0 1-.27-.328c-.082-.111-.127-.208-.187-.305a3 3 0 0 1-.33-.723c0-.111-.074-.23-.104-.35s-.045-.253-.067-.38a4 4 0 0 1-.038-.402 3 3 0 0 1 0-.373c0-.134 0-.276.045-.41q.033-.189.09-.372.045-.194.112-.38c.053-.127.113-.246.172-.365a3 3 0 0 1 .188-.343c.06-.097.134-.194.202-.283q.134-.165.284-.313l.232-.209q.166-.158.352-.29.133-.094.277-.172c.127-.074.247-.142.374-.201q.182-.082.374-.142.19-.07.39-.119h.141q.338-.062.681-.067h.075q.317 0 .629.06l.217.044q.315.065.614.187l.142.067q.251.119.486.268l.142.09a4 4 0 0 1 .532.431q.227.233.411.5.056.066.098.141c.074.112.134.239.202.365.067.127.187.239.24.38M45.245 13.5c0-.593.237-1.162.658-1.581a2.25 2.25 0 0 1 3.175 0c.42.42.657.988.657 1.58v.053l1.497 31.034-.202-.126a2 2 0 0 0-.217-.142l-.12-.074-.067-.045-.09-.045-.284-.149h-.038l-.18-.09-.299-.118-.276-.097-.27-.082-.337-.082a2 2 0 0 0-.24-.045l-.373-.06h-1.527a2 2 0 0 0-.292.045c-.112 0-.224.045-.337.067h-.142l-.12.037-.321.105-.285.104-.247.104-.344.172-.15.082-.142.074c-.09.045-.172.105-.262.157l-.075.052-.224.149zM43 56.368 17.428 69.624h-.052a2.2 2.2 0 0 1-1.699.23 2.25 2.25 0 0 1-1.377-.975 2.23 2.23 0 0 1 .853-3.093L41.346 48.85v1.014q.006.075 0 .149c0 .179 0 .35.06.521a6.13 6.13 0 0 0 1.168 2.72q.174.23.374.44l.037.044q.18.198.382.373l.075.075c.127.104.254.208.381.298l.127.104.337.216.157.104h.083l.15.082.44.224zm37.725 12.51a2.24 2.24 0 0 1-1.373 1.042 2.25 2.25 0 0 1-1.71-.237h-.045l-25.49-13.285a.7.7 0 0 0-.127-.068l-2.005-1.043.396-.2.218-.113.104-.06q.105-.06.202-.133l.202-.127.322-.246q.08-.053.15-.12c.112-.088.217-.185.322-.282l.112-.12q.157-.156.292-.312l.12-.15a5 5 0 0 0 .232-.305l.142-.209c.052-.089.105-.171.157-.268q.09-.136.157-.283c0-.075.075-.142.105-.216l.157-.365c0-.052.037-.105.06-.164a6 6 0 0 0 .165-.566c0-.142.067-.284.097-.433v-.171c0-.134 0-.276.052-.41.053-.134 0-.156 0-.23v-.962l26.193 16.967a2.24 2.24 0 0 1 1.038 1.37 2.23 2.23 0 0 1-.245 1.7M9.7 24.015a8.81 8.81 0 0 1 9.175.038 10.65 10.65 0 0 0 5.71 1.684 11.26 11.26 0 0 0 5.935-1.73 1.12 1.12 0 0 0 .459-1.156 1.12 1.12 0 0 0-.898-.865 1.13 1.13 0 0 0-.841.181 8.68 8.68 0 0 1-9.175 0 11.01 11.01 0 0 0-11.622 0 1.117 1.117 0 0 0 .437 1.981c.28.062.574.014.82-.133m0 7.347a8.82 8.82 0 0 1 9.175 0 10.67 10.67 0 0 0 5.74 1.751 11.26 11.26 0 0 0 5.935-1.728 1.117 1.117 0 0 0-.445-1.996 1.13 1.13 0 0 0-.828.155 8.64 8.64 0 0 1-9.182 0 11 11 0 0 0-11.622 0 1.116 1.116 0 0 0 .474 1.855c.248.075.514.062.753-.037m14.915 9.024a11.2 11.2 0 0 0 5.935-1.736 1.12 1.12 0 0 0 .607-1.202 1.11 1.11 0 0 0-.537-.765 1.125 1.125 0 0 0-1.343.156 8.64 8.64 0 0 1-9.182 0 11 11 0 0 0-11.622 0 1.116 1.116 0 0 0 .467 1.87c.25.073.52.058.76-.044a8.81 8.81 0 0 1 9.175 0 10.67 10.67 0 0 0 5.74 1.72" })
651
+ ]
652
+ }
653
+ );
640
654
  export {
641
- pr as Hello
655
+ pr as Hello,
656
+ hr as IconWindmillXl
642
657
  };
package/package.json CHANGED
@@ -1,32 +1,66 @@
1
1
  {
2
- "name": "enefit-design-system",
3
- "version": "0.0.1",
4
- "description": "Enefit design system",
5
- "type": "module",
6
- "types": "dist/index.d.ts",
7
- "files": [
8
- "dist"
9
- ],
10
- "exports": {
11
- ".": {
12
- "import": "./dist/index.js"
2
+ "name": "enefit-design-system",
3
+ "version": "0.0.3",
4
+ "description": "Enefit design system",
5
+ "type": "module",
6
+ "types": "dist/index.d.ts",
7
+ "files": [
8
+ "dist"
9
+ ],
10
+ "exports": {
11
+ ".": {
12
+ "import": "./dist/index.js"
13
+ }
14
+ },
15
+ "engines": {
16
+ "node": ">=20.0.0"
17
+ },
18
+ "scripts": {
19
+ "dev": "next dev",
20
+ "build": "next build",
21
+ "start": "next start",
22
+ "test": "vitest",
23
+ "icons": "node ./scripts/icons.js",
24
+ "lib:test": "vitest run",
25
+ "lib:build": "vite build"
26
+ },
27
+ "dependencies": {
28
+ "@mdx-js/loader": "^3.0.1",
29
+ "@mdx-js/react": "^3.0.1",
30
+ "@next/mdx": "^14.2.3",
31
+ "@shikijs/rehype": "^1.6.1",
32
+ "@svgr/core": "^8.1.0",
33
+ "@svgr/plugin-jsx": "^8.1.0",
34
+ "@svgr/plugin-prettier": "^8.1.0",
35
+ "@svgr/plugin-svgo": "^8.1.0",
36
+ "@tailwindcss/postcss": "^0.0.0-development.1",
37
+ "@testing-library/jest-dom": "^6.4.5",
38
+ "@testing-library/react": "^15.0.7",
39
+ "@types/mdx": "^2.0.13",
40
+ "@types/node": "^20.12.12",
41
+ "@types/react": "^18.3.3",
42
+ "@types/react-dom": "^18.3.0",
43
+ "@typescript-eslint/eslint-plugin": "^7.11.0",
44
+ "@vitejs/plugin-react": "^4.3.0",
45
+ "autoprefixer": "^10.4.19",
46
+ "eslint": "^8.57.0",
47
+ "eslint-config-next": "^14.2.3",
48
+ "eslint-config-prettier": "^9.1.0",
49
+ "eslint-plugin-simple-import-sort": "^12.1.0",
50
+ "next": "^14.2.3",
51
+ "postcss": "^8.4.38",
52
+ "prettier-plugin-tailwindcss": "^0.5.14",
53
+ "react": "^18.3.1",
54
+ "react-dom": "^18.3.1",
55
+ "rollup-preserve-directives": "^1.1.1",
56
+ "svgo": "^3.3.2",
57
+ "tailwindcss": "^3.4.3",
58
+ "typescript": "^5.4.5",
59
+ "vite": "^5.2.11",
60
+ "vite-plugin-dts": "^3.9.1",
61
+ "vitest": "^1.6.0"
62
+ },
63
+ "devDependencies": {
64
+ "jsdom": "^24.1.0"
13
65
  }
14
- },
15
- "engines": {
16
- "node": ">=20.0.0"
17
- },
18
- "dependencies": {
19
- "@testing-library/jest-dom": "^6.4.5",
20
- "@testing-library/react": "^15.0.7",
21
- "@vitejs/plugin-react": "^4.3.0",
22
- "react": "^18.3.1",
23
- "react-dom": "^18.3.1",
24
- "rollup-preserve-directives": "^1.1.1",
25
- "vite": "^5.2.11",
26
- "vite-plugin-dts": "^3.9.1",
27
- "vitest": "^1.6.0"
28
- },
29
- "devDependencies": {
30
- "jsdom": "^24.1.0"
31
- }
32
66
  }