@manamerge/mana-atomic-ui 0.0.76 → 0.0.85

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/dist/index.d.ts +16 -1
  2. package/dist/index.js +154 -1340
  3. package/dist/index.js.map +1 -1
  4. package/dist/themes/themes/Manamerge.ts +2 -0
  5. package/dist/themes/themes/manamerge/atoms/gradient.ts +19 -0
  6. package/dist/themes/themes/manamerge/molecules/cardSimpleRender.ts +0 -5
  7. package/dist/types/components/Atoms/Gradient/Gradient.css.d.ts +3 -0
  8. package/dist/types/components/Atoms/Gradient/Gradient.d.ts +9 -0
  9. package/dist/types/components/Atoms/Gradient/Gradient.stories.d.ts +7 -0
  10. package/dist/types/components/index.d.ts +2 -0
  11. package/dist/types/themes/Manamerge.d.ts +68 -20
  12. package/dist/types/themes/manamerge/atoms/gradient.d.ts +18 -0
  13. package/dist/types/themes/manamerge/molecules/cardSimpleRender.d.ts +0 -19
  14. package/dist/types/themes/manamerge/molecules/cardTeaser.d.ts +1 -1
  15. package/package.json +3 -10
  16. package/dist/types/.storybook/preview.d.ts +0 -14
  17. package/dist/types/src/components/Atoms/Button/Button.css.d.ts +0 -37
  18. package/dist/types/src/components/Atoms/Button/Button.d.ts +0 -34
  19. package/dist/types/src/components/Atoms/Button/Button.stories.d.ts +0 -7
  20. package/dist/types/src/components/Atoms/Heading/Heading.css.d.ts +0 -3
  21. package/dist/types/src/components/Atoms/Heading/Heading.d.ts +0 -17
  22. package/dist/types/src/components/Atoms/Heading/Heading.stories.d.ts +0 -12
  23. package/dist/types/src/components/Atoms/Icon/Icon.css.d.ts +0 -9
  24. package/dist/types/src/components/Atoms/Icon/Icon.d.ts +0 -15
  25. package/dist/types/src/components/Atoms/Icon/Icon.stories.d.ts +0 -9
  26. package/dist/types/src/components/Atoms/Link/Link.css.d.ts +0 -3
  27. package/dist/types/src/components/Atoms/Link/Link.d.ts +0 -14
  28. package/dist/types/src/components/Atoms/Link/Link.stories.d.ts +0 -11
  29. package/dist/types/src/components/Atoms/Text/Text.css.d.ts +0 -4
  30. package/dist/types/src/components/Atoms/Text/Text.d.ts +0 -14
  31. package/dist/types/src/components/Atoms/Text/Text.stories.d.ts +0 -11
  32. package/dist/types/src/components/Molecules/CardSimpleRender/BlobToReactComponent.d.ts +0 -5
  33. package/dist/types/src/components/Molecules/CardSimpleRender/CardSimpleRender.css.d.ts +0 -10
  34. package/dist/types/src/components/Molecules/CardSimpleRender/CardSimpleRender.d.ts +0 -29
  35. package/dist/types/src/components/Molecules/CardSimpleRender/CardSimpleRender.stories copy 2.d.ts +0 -7
  36. package/dist/types/src/components/Molecules/CardSimpleRender/CardSimpleRender.stories copy 3.d.ts +0 -6
  37. package/dist/types/src/components/Molecules/CardSimpleRender/CardSimpleRender.stories copy 4.d.ts +0 -6
  38. package/dist/types/src/components/Molecules/CardSimpleRender/CardSimpleRender.stories copy 5.d.ts +0 -6
  39. package/dist/types/src/components/Molecules/CardSimpleRender/CardSimpleRender.stories copy.d.ts +0 -7
  40. package/dist/types/src/components/Molecules/CardSimpleRender/CardSimpleRender.stories.d.ts +0 -7
  41. package/dist/types/src/components/Molecules/CardTeaser/CardTeaser.css.d.ts +0 -15
  42. package/dist/types/src/components/Molecules/CardTeaser/CardTeaser.d.ts +0 -13
  43. package/dist/types/src/components/Molecules/CardTeaser/CardTeaser.stories.d.ts +0 -6
  44. package/dist/types/src/components/Molecules/Footer/Footer.css.d.ts +0 -6
  45. package/dist/types/src/components/Molecules/Footer/Footer.d.ts +0 -15
  46. package/dist/types/src/components/Molecules/Footer/Footer.stories.d.ts +0 -6
  47. package/dist/types/src/components/Molecules/Header/Header.css.d.ts +0 -15
  48. package/dist/types/src/components/Molecules/Header/Header.d.ts +0 -15
  49. package/dist/types/src/components/Molecules/Header/Header.stories.d.ts +0 -6
  50. package/dist/types/src/components/Molecules/Navigation/Navigation.css.d.ts +0 -10
  51. package/dist/types/src/components/Molecules/Navigation/Navigation.d.ts +0 -10
  52. package/dist/types/src/components/Molecules/Navigation/Navigation.stories.d.ts +0 -6
  53. package/dist/types/src/components/index.d.ts +0 -12
  54. package/dist/types/src/index.d.ts +0 -1
  55. package/dist/types/src/themes/Manamerge.d.ts +0 -1374
  56. package/dist/types/src/themes/manamerge/atoms/button.d.ts +0 -101
  57. package/dist/types/src/themes/manamerge/atoms/checkbox.d.ts +0 -71
  58. package/dist/types/src/themes/manamerge/atoms/heading.d.ts +0 -141
  59. package/dist/types/src/themes/manamerge/atoms/icon.d.ts +0 -30
  60. package/dist/types/src/themes/manamerge/atoms/link.d.ts +0 -78
  61. package/dist/types/src/themes/manamerge/atoms/text.d.ts +0 -38
  62. package/dist/types/src/themes/manamerge/miscellaneous/breakpoints.d.ts +0 -13
  63. package/dist/types/src/themes/manamerge/molecules/cardSimpleRender.d.ts +0 -27
  64. package/dist/types/src/themes/manamerge/molecules/cardTeaser.d.ts +0 -76
  65. package/dist/types/src/themes/manamerge/molecules/footer.d.ts +0 -19
  66. package/dist/types/src/themes/manamerge/molecules/header.d.ts +0 -48
  67. package/dist/types/src/themes/manamerge/molecules/navigation.d.ts +0 -36
  68. package/dist/types/vite.config.d.ts +0 -2
  69. /package/dist/types/{src/components → components}/Molecules/BreakerTape/BreakerTape.css.d.ts +0 -0
  70. /package/dist/types/{src/components → components}/Molecules/BreakerTape/BreakerTape.d.ts +0 -0
  71. /package/dist/types/{src/components → components}/Molecules/BreakerTape/BreakerTape.stories.d.ts +0 -0
  72. /package/dist/types/{src/components → components}/Molecules/CardBanner/CardBanner.css.d.ts +0 -0
  73. /package/dist/types/{src/components → components}/Molecules/CardBanner/CardBanner.d.ts +0 -0
  74. /package/dist/types/{src/components → components}/Molecules/CardBanner/CardBanner.stories.d.ts +0 -0
  75. /package/dist/types/{src/themes → themes}/manamerge/molecules/breakerTape.d.ts +0 -0
  76. /package/dist/types/{src/themes → themes}/manamerge/molecules/cardBanner.d.ts +0 -0
package/dist/index.js CHANGED
@@ -3,748 +3,6 @@ import classNames from 'classnames';
3
3
  import styled, { css, keyframes } from 'styled-components';
4
4
  import { NavLink, useLocation } from 'react-router-dom';
5
5
 
6
- const exports = {};
7
-
8
- if (process.env.NODE_ENV !== "production") {
9
- (function() {
10
-
11
- // ATTENTION
12
- var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
13
- var REACT_MEMO_TYPE = Symbol.for('react.memo');
14
-
15
- var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map; // We never remove these associations.
16
- // It's OK to reference families, but use WeakMap/Set for types.
17
-
18
- var allFamiliesByID = new Map();
19
- var allFamiliesByType = new PossiblyWeakMap();
20
- var allSignaturesByType = new PossiblyWeakMap(); // This WeakMap is read by React, so we only put families
21
- // that have actually been edited here. This keeps checks fast.
22
- // $FlowIssue
23
-
24
- var updatedFamiliesByType = new PossiblyWeakMap(); // This is cleared on every performReactRefresh() call.
25
- // It is an array of [Family, NextType] tuples.
26
-
27
- var pendingUpdates = []; // This is injected by the renderer via DevTools global hook.
28
-
29
- var helpersByRendererID = new Map();
30
- var helpersByRoot = new Map(); // We keep track of mounted roots so we can schedule updates.
31
-
32
- var mountedRoots = new Set(); // If a root captures an error, we remember it so we can retry on edit.
33
-
34
- var failedRoots = new Set(); // In environments that support WeakMap, we also remember the last element for every root.
35
- // It needs to be weak because we do this even for roots that failed to mount.
36
- // If there is no WeakMap, we won't attempt to do retrying.
37
- // $FlowIssue
38
-
39
- var rootElements = // $FlowIssue
40
- typeof WeakMap === 'function' ? new WeakMap() : null;
41
- var isPerformingRefresh = false;
42
-
43
- function computeFullKey(signature) {
44
- if (signature.fullKey !== null) {
45
- return signature.fullKey;
46
- }
47
-
48
- var fullKey = signature.ownKey;
49
- var hooks;
50
-
51
- try {
52
- hooks = signature.getCustomHooks();
53
- } catch (err) {
54
- // This can happen in an edge case, e.g. if expression like Foo.useSomething
55
- // depends on Foo which is lazily initialized during rendering.
56
- // In that case just assume we'll have to remount.
57
- signature.forceReset = true;
58
- signature.fullKey = fullKey;
59
- return fullKey;
60
- }
61
-
62
- for (var i = 0; i < hooks.length; i++) {
63
- var hook = hooks[i];
64
-
65
- if (typeof hook !== 'function') {
66
- // Something's wrong. Assume we need to remount.
67
- signature.forceReset = true;
68
- signature.fullKey = fullKey;
69
- return fullKey;
70
- }
71
-
72
- var nestedHookSignature = allSignaturesByType.get(hook);
73
-
74
- if (nestedHookSignature === undefined) {
75
- // No signature means Hook wasn't in the source code, e.g. in a library.
76
- // We'll skip it because we can assume it won't change during this session.
77
- continue;
78
- }
79
-
80
- var nestedHookKey = computeFullKey(nestedHookSignature);
81
-
82
- if (nestedHookSignature.forceReset) {
83
- signature.forceReset = true;
84
- }
85
-
86
- fullKey += '\n---\n' + nestedHookKey;
87
- }
88
-
89
- signature.fullKey = fullKey;
90
- return fullKey;
91
- }
92
-
93
- function haveEqualSignatures(prevType, nextType) {
94
- var prevSignature = allSignaturesByType.get(prevType);
95
- var nextSignature = allSignaturesByType.get(nextType);
96
-
97
- if (prevSignature === undefined && nextSignature === undefined) {
98
- return true;
99
- }
100
-
101
- if (prevSignature === undefined || nextSignature === undefined) {
102
- return false;
103
- }
104
-
105
- if (computeFullKey(prevSignature) !== computeFullKey(nextSignature)) {
106
- return false;
107
- }
108
-
109
- if (nextSignature.forceReset) {
110
- return false;
111
- }
112
-
113
- return true;
114
- }
115
-
116
- function isReactClass(type) {
117
- return type.prototype && type.prototype.isReactComponent;
118
- }
119
-
120
- function canPreserveStateBetween(prevType, nextType) {
121
- if (isReactClass(prevType) || isReactClass(nextType)) {
122
- return false;
123
- }
124
-
125
- if (haveEqualSignatures(prevType, nextType)) {
126
- return true;
127
- }
128
-
129
- return false;
130
- }
131
-
132
- function resolveFamily(type) {
133
- // Only check updated types to keep lookups fast.
134
- return updatedFamiliesByType.get(type);
135
- } // If we didn't care about IE11, we could use new Map/Set(iterable).
136
-
137
-
138
- function cloneMap(map) {
139
- var clone = new Map();
140
- map.forEach(function (value, key) {
141
- clone.set(key, value);
142
- });
143
- return clone;
144
- }
145
-
146
- function cloneSet(set) {
147
- var clone = new Set();
148
- set.forEach(function (value) {
149
- clone.add(value);
150
- });
151
- return clone;
152
- } // This is a safety mechanism to protect against rogue getters and Proxies.
153
-
154
-
155
- function getProperty(object, property) {
156
- try {
157
- return object[property];
158
- } catch (err) {
159
- // Intentionally ignore.
160
- return undefined;
161
- }
162
- }
163
-
164
- function performReactRefresh() {
165
-
166
- if (pendingUpdates.length === 0) {
167
- return null;
168
- }
169
-
170
- if (isPerformingRefresh) {
171
- return null;
172
- }
173
-
174
- isPerformingRefresh = true;
175
-
176
- try {
177
- var staleFamilies = new Set();
178
- var updatedFamilies = new Set();
179
- var updates = pendingUpdates;
180
- pendingUpdates = [];
181
- updates.forEach(function (_ref) {
182
- var family = _ref[0],
183
- nextType = _ref[1];
184
- // Now that we got a real edit, we can create associations
185
- // that will be read by the React reconciler.
186
- var prevType = family.current;
187
- updatedFamiliesByType.set(prevType, family);
188
- updatedFamiliesByType.set(nextType, family);
189
- family.current = nextType; // Determine whether this should be a re-render or a re-mount.
190
-
191
- if (canPreserveStateBetween(prevType, nextType)) {
192
- updatedFamilies.add(family);
193
- } else {
194
- staleFamilies.add(family);
195
- }
196
- }); // TODO: rename these fields to something more meaningful.
197
-
198
- var update = {
199
- updatedFamilies: updatedFamilies,
200
- // Families that will re-render preserving state
201
- staleFamilies: staleFamilies // Families that will be remounted
202
-
203
- };
204
- helpersByRendererID.forEach(function (helpers) {
205
- // Even if there are no roots, set the handler on first update.
206
- // This ensures that if *new* roots are mounted, they'll use the resolve handler.
207
- helpers.setRefreshHandler(resolveFamily);
208
- });
209
- var didError = false;
210
- var firstError = null; // We snapshot maps and sets that are mutated during commits.
211
- // If we don't do this, there is a risk they will be mutated while
212
- // we iterate over them. For example, trying to recover a failed root
213
- // may cause another root to be added to the failed list -- an infinite loop.
214
-
215
- var failedRootsSnapshot = cloneSet(failedRoots);
216
- var mountedRootsSnapshot = cloneSet(mountedRoots);
217
- var helpersByRootSnapshot = cloneMap(helpersByRoot);
218
- failedRootsSnapshot.forEach(function (root) {
219
- var helpers = helpersByRootSnapshot.get(root);
220
-
221
- if (helpers === undefined) {
222
- throw new Error('Could not find helpers for a root. This is a bug in React Refresh.');
223
- }
224
-
225
- if (!failedRoots.has(root)) {// No longer failed.
226
- }
227
-
228
- if (rootElements === null) {
229
- return;
230
- }
231
-
232
- if (!rootElements.has(root)) {
233
- return;
234
- }
235
-
236
- var element = rootElements.get(root);
237
-
238
- try {
239
- helpers.scheduleRoot(root, element);
240
- } catch (err) {
241
- if (!didError) {
242
- didError = true;
243
- firstError = err;
244
- } // Keep trying other roots.
245
-
246
- }
247
- });
248
- mountedRootsSnapshot.forEach(function (root) {
249
- var helpers = helpersByRootSnapshot.get(root);
250
-
251
- if (helpers === undefined) {
252
- throw new Error('Could not find helpers for a root. This is a bug in React Refresh.');
253
- }
254
-
255
- if (!mountedRoots.has(root)) {// No longer mounted.
256
- }
257
-
258
- try {
259
- helpers.scheduleRefresh(root, update);
260
- } catch (err) {
261
- if (!didError) {
262
- didError = true;
263
- firstError = err;
264
- } // Keep trying other roots.
265
-
266
- }
267
- });
268
-
269
- if (didError) {
270
- throw firstError;
271
- }
272
-
273
- return update;
274
- } finally {
275
- isPerformingRefresh = false;
276
- }
277
- }
278
- function register(type, id) {
279
- {
280
- if (type === null) {
281
- return;
282
- }
283
-
284
- if (typeof type !== 'function' && typeof type !== 'object') {
285
- return;
286
- } // This can happen in an edge case, e.g. if we register
287
- // return value of a HOC but it returns a cached component.
288
- // Ignore anything but the first registration for each type.
289
-
290
-
291
- if (allFamiliesByType.has(type)) {
292
- return;
293
- } // Create family or remember to update it.
294
- // None of this bookkeeping affects reconciliation
295
- // until the first performReactRefresh() call above.
296
-
297
-
298
- var family = allFamiliesByID.get(id);
299
-
300
- if (family === undefined) {
301
- family = {
302
- current: type
303
- };
304
- allFamiliesByID.set(id, family);
305
- } else {
306
- pendingUpdates.push([family, type]);
307
- }
308
-
309
- allFamiliesByType.set(type, family); // Visit inner types because we might not have registered them.
310
-
311
- if (typeof type === 'object' && type !== null) {
312
- switch (getProperty(type, '$$typeof')) {
313
- case REACT_FORWARD_REF_TYPE:
314
- register(type.render, id + '$render');
315
- break;
316
-
317
- case REACT_MEMO_TYPE:
318
- register(type.type, id + '$type');
319
- break;
320
- }
321
- }
322
- }
323
- }
324
- function setSignature(type, key) {
325
- var forceReset = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
326
- var getCustomHooks = arguments.length > 3 ? arguments[3] : undefined;
327
-
328
- {
329
- if (!allSignaturesByType.has(type)) {
330
- allSignaturesByType.set(type, {
331
- forceReset: forceReset,
332
- ownKey: key,
333
- fullKey: null,
334
- getCustomHooks: getCustomHooks || function () {
335
- return [];
336
- }
337
- });
338
- } // Visit inner types because we might not have signed them.
339
-
340
-
341
- if (typeof type === 'object' && type !== null) {
342
- switch (getProperty(type, '$$typeof')) {
343
- case REACT_FORWARD_REF_TYPE:
344
- setSignature(type.render, key, forceReset, getCustomHooks);
345
- break;
346
-
347
- case REACT_MEMO_TYPE:
348
- setSignature(type.type, key, forceReset, getCustomHooks);
349
- break;
350
- }
351
- }
352
- }
353
- } // This is lazily called during first render for a type.
354
- // It captures Hook list at that time so inline requires don't break comparisons.
355
-
356
- function collectCustomHooksForSignature(type) {
357
- {
358
- var signature = allSignaturesByType.get(type);
359
-
360
- if (signature !== undefined) {
361
- computeFullKey(signature);
362
- }
363
- }
364
- }
365
- function getFamilyByID(id) {
366
- {
367
- return allFamiliesByID.get(id);
368
- }
369
- }
370
- function getFamilyByType(type) {
371
- {
372
- return allFamiliesByType.get(type);
373
- }
374
- }
375
- function findAffectedHostInstances(families) {
376
- {
377
- var affectedInstances = new Set();
378
- mountedRoots.forEach(function (root) {
379
- var helpers = helpersByRoot.get(root);
380
-
381
- if (helpers === undefined) {
382
- throw new Error('Could not find helpers for a root. This is a bug in React Refresh.');
383
- }
384
-
385
- var instancesForRoot = helpers.findHostInstancesForRefresh(root, families);
386
- instancesForRoot.forEach(function (inst) {
387
- affectedInstances.add(inst);
388
- });
389
- });
390
- return affectedInstances;
391
- }
392
- }
393
- function injectIntoGlobalHook(globalObject) {
394
- {
395
- // For React Native, the global hook will be set up by require('react-devtools-core').
396
- // That code will run before us. So we need to monkeypatch functions on existing hook.
397
- // For React Web, the global hook will be set up by the extension.
398
- // This will also run before us.
399
- var hook = globalObject.__REACT_DEVTOOLS_GLOBAL_HOOK__;
400
-
401
- if (hook === undefined) {
402
- // However, if there is no DevTools extension, we'll need to set up the global hook ourselves.
403
- // Note that in this case it's important that renderer code runs *after* this method call.
404
- // Otherwise, the renderer will think that there is no global hook, and won't do the injection.
405
- var nextID = 0;
406
- globalObject.__REACT_DEVTOOLS_GLOBAL_HOOK__ = hook = {
407
- renderers: new Map(),
408
- supportsFiber: true,
409
- inject: function (injected) {
410
- return nextID++;
411
- },
412
- onScheduleFiberRoot: function (id, root, children) {},
413
- onCommitFiberRoot: function (id, root, maybePriorityLevel, didError) {},
414
- onCommitFiberUnmount: function () {}
415
- };
416
- }
417
-
418
- if (hook.isDisabled) {
419
- // This isn't a real property on the hook, but it can be set to opt out
420
- // of DevTools integration and associated warnings and logs.
421
- // Using console['warn'] to evade Babel and ESLint
422
- console['warn']('Something has shimmed the React DevTools global hook (__REACT_DEVTOOLS_GLOBAL_HOOK__). ' + 'Fast Refresh is not compatible with this shim and will be disabled.');
423
- return;
424
- } // Here, we just want to get a reference to scheduleRefresh.
425
-
426
-
427
- var oldInject = hook.inject;
428
-
429
- hook.inject = function (injected) {
430
- var id = oldInject.apply(this, arguments);
431
-
432
- if (typeof injected.scheduleRefresh === 'function' && typeof injected.setRefreshHandler === 'function') {
433
- // This version supports React Refresh.
434
- helpersByRendererID.set(id, injected);
435
- }
436
-
437
- return id;
438
- }; // Do the same for any already injected roots.
439
- // This is useful if ReactDOM has already been initialized.
440
- // https://github.com/facebook/react/issues/17626
441
-
442
-
443
- hook.renderers.forEach(function (injected, id) {
444
- if (typeof injected.scheduleRefresh === 'function' && typeof injected.setRefreshHandler === 'function') {
445
- // This version supports React Refresh.
446
- helpersByRendererID.set(id, injected);
447
- }
448
- }); // We also want to track currently mounted roots.
449
-
450
- var oldOnCommitFiberRoot = hook.onCommitFiberRoot;
451
-
452
- var oldOnScheduleFiberRoot = hook.onScheduleFiberRoot || function () {};
453
-
454
- hook.onScheduleFiberRoot = function (id, root, children) {
455
- if (!isPerformingRefresh) {
456
- // If it was intentionally scheduled, don't attempt to restore.
457
- // This includes intentionally scheduled unmounts.
458
- failedRoots.delete(root);
459
-
460
- if (rootElements !== null) {
461
- rootElements.set(root, children);
462
- }
463
- }
464
-
465
- return oldOnScheduleFiberRoot.apply(this, arguments);
466
- };
467
-
468
- hook.onCommitFiberRoot = function (id, root, maybePriorityLevel, didError) {
469
- var helpers = helpersByRendererID.get(id);
470
-
471
- if (helpers !== undefined) {
472
- helpersByRoot.set(root, helpers);
473
- var current = root.current;
474
- var alternate = current.alternate; // We need to determine whether this root has just (un)mounted.
475
- // This logic is copy-pasted from similar logic in the DevTools backend.
476
- // If this breaks with some refactoring, you'll want to update DevTools too.
477
-
478
- if (alternate !== null) {
479
- var wasMounted = alternate.memoizedState != null && alternate.memoizedState.element != null && mountedRoots.has(root);
480
- var isMounted = current.memoizedState != null && current.memoizedState.element != null;
481
-
482
- if (!wasMounted && isMounted) {
483
- // Mount a new root.
484
- mountedRoots.add(root);
485
- failedRoots.delete(root);
486
- } else if (wasMounted && isMounted) ; else if (wasMounted && !isMounted) {
487
- // Unmount an existing root.
488
- mountedRoots.delete(root);
489
-
490
- if (didError) {
491
- // We'll remount it on future edits.
492
- failedRoots.add(root);
493
- } else {
494
- helpersByRoot.delete(root);
495
- }
496
- } else if (!wasMounted && !isMounted) {
497
- if (didError) {
498
- // We'll remount it on future edits.
499
- failedRoots.add(root);
500
- }
501
- }
502
- } else {
503
- // Mount a new root.
504
- mountedRoots.add(root);
505
- }
506
- } // Always call the decorated DevTools hook.
507
-
508
-
509
- return oldOnCommitFiberRoot.apply(this, arguments);
510
- };
511
- }
512
- }
513
- function hasUnrecoverableErrors() {
514
- // TODO: delete this after removing dependency in RN.
515
- return false;
516
- } // Exposed for testing.
517
-
518
- function _getMountedRootCount() {
519
- {
520
- return mountedRoots.size;
521
- }
522
- } // This is a wrapper over more primitive functions for setting signature.
523
- // Signatures let us decide whether the Hook order has changed on refresh.
524
- //
525
- // This function is intended to be used as a transform target, e.g.:
526
- // var _s = createSignatureFunctionForTransform()
527
- //
528
- // function Hello() {
529
- // const [foo, setFoo] = useState(0);
530
- // const value = useCustomHook();
531
- // _s(); /* Call without arguments triggers collecting the custom Hook list.
532
- // * This doesn't happen during the module evaluation because we
533
- // * don't want to change the module order with inline requires.
534
- // * Next calls are noops. */
535
- // return <h1>Hi</h1>;
536
- // }
537
- //
538
- // /* Call with arguments attaches the signature to the type: */
539
- // _s(
540
- // Hello,
541
- // 'useState{[foo, setFoo]}(0)',
542
- // () => [useCustomHook], /* Lazy to avoid triggering inline requires */
543
- // );
544
-
545
- function createSignatureFunctionForTransform() {
546
- {
547
- var savedType;
548
- var hasCustomHooks;
549
- var didCollectHooks = false;
550
- return function (type, key, forceReset, getCustomHooks) {
551
- if (typeof key === 'string') {
552
- // We're in the initial phase that associates signatures
553
- // with the functions. Note this may be called multiple times
554
- // in HOC chains like _s(hoc1(_s(hoc2(_s(actualFunction))))).
555
- if (!savedType) {
556
- // We're in the innermost call, so this is the actual type.
557
- savedType = type;
558
- hasCustomHooks = typeof getCustomHooks === 'function';
559
- } // Set the signature for all types (even wrappers!) in case
560
- // they have no signatures of their own. This is to prevent
561
- // problems like https://github.com/facebook/react/issues/20417.
562
-
563
-
564
- if (type != null && (typeof type === 'function' || typeof type === 'object')) {
565
- setSignature(type, key, forceReset, getCustomHooks);
566
- }
567
-
568
- return type;
569
- } else {
570
- // We're in the _s() call without arguments, which means
571
- // this is the time to collect custom Hook signatures.
572
- // Only do this once. This path is hot and runs *inside* every render!
573
- if (!didCollectHooks && hasCustomHooks) {
574
- didCollectHooks = true;
575
- collectCustomHooksForSignature(savedType);
576
- }
577
- }
578
- };
579
- }
580
- }
581
- function isLikelyComponentType(type) {
582
- {
583
- switch (typeof type) {
584
- case 'function':
585
- {
586
- // First, deal with classes.
587
- if (type.prototype != null) {
588
- if (type.prototype.isReactComponent) {
589
- // React class.
590
- return true;
591
- }
592
-
593
- var ownNames = Object.getOwnPropertyNames(type.prototype);
594
-
595
- if (ownNames.length > 1 || ownNames[0] !== 'constructor') {
596
- // This looks like a class.
597
- return false;
598
- } // eslint-disable-next-line no-proto
599
-
600
-
601
- if (type.prototype.__proto__ !== Object.prototype) {
602
- // It has a superclass.
603
- return false;
604
- } // Pass through.
605
- // This looks like a regular function with empty prototype.
606
-
607
- } // For plain functions and arrows, use name as a heuristic.
608
-
609
-
610
- var name = type.name || type.displayName;
611
- return typeof name === 'string' && /^[A-Z]/.test(name);
612
- }
613
-
614
- case 'object':
615
- {
616
- if (type != null) {
617
- switch (getProperty(type, '$$typeof')) {
618
- case REACT_FORWARD_REF_TYPE:
619
- case REACT_MEMO_TYPE:
620
- // Definitely React components.
621
- return true;
622
-
623
- default:
624
- return false;
625
- }
626
- }
627
-
628
- return false;
629
- }
630
-
631
- default:
632
- {
633
- return false;
634
- }
635
- }
636
- }
637
- }
638
-
639
- exports._getMountedRootCount = _getMountedRootCount;
640
- exports.collectCustomHooksForSignature = collectCustomHooksForSignature;
641
- exports.createSignatureFunctionForTransform = createSignatureFunctionForTransform;
642
- exports.findAffectedHostInstances = findAffectedHostInstances;
643
- exports.getFamilyByID = getFamilyByID;
644
- exports.getFamilyByType = getFamilyByType;
645
- exports.hasUnrecoverableErrors = hasUnrecoverableErrors;
646
- exports.injectIntoGlobalHook = injectIntoGlobalHook;
647
- exports.isLikelyComponentType = isLikelyComponentType;
648
- exports.performReactRefresh = performReactRefresh;
649
- exports.register = register;
650
- exports.setSignature = setSignature;
651
- })();
652
- }
653
-
654
- function debounce(fn, delay) {
655
- let handle;
656
- return () => {
657
- clearTimeout(handle);
658
- handle = setTimeout(fn, delay);
659
- }
660
- }
661
-
662
- /* eslint-disable no-undef */
663
- const hooks = [];
664
- window.__registerBeforePerformReactRefresh = (cb) => {
665
- hooks.push(cb);
666
- };
667
- const enqueueUpdate = debounce(async () => {
668
- if (hooks.length) await Promise.all(hooks.map((cb) => cb()));
669
- exports.performReactRefresh();
670
- }, 16);
671
-
672
- // Taken from https://github.com/pmmmwh/react-refresh-webpack-plugin/blob/main/lib/runtime/RefreshUtils.js#L141
673
- // This allows to resister components not detected by SWC like styled component
674
- function registerExportsForReactRefresh(filename, moduleExports) {
675
- for (const key in moduleExports) {
676
- if (key === '__esModule') continue
677
- const exportValue = moduleExports[key];
678
- if (exports.isLikelyComponentType(exportValue)) {
679
- // 'export' is required to avoid key collision when renamed exports that
680
- // shadow a local component name: https://github.com/vitejs/vite-plugin-react/issues/116
681
- // The register function has an identity check to not register twice the same component,
682
- // so this is safe to not used the same key here.
683
- exports.register(exportValue, filename + ' export ' + key);
684
- }
685
- }
686
- }
687
-
688
- function validateRefreshBoundaryAndEnqueueUpdate(id, prevExports, nextExports) {
689
- const ignoredExports = window.__getReactRefreshIgnoredExports?.({ id }) ?? [];
690
- if (
691
- predicateOnExport(
692
- ignoredExports,
693
- prevExports,
694
- (key) => key in nextExports,
695
- ) !== true
696
- ) {
697
- return 'Could not Fast Refresh (export removed)'
698
- }
699
- if (
700
- predicateOnExport(
701
- ignoredExports,
702
- nextExports,
703
- (key) => key in prevExports,
704
- ) !== true
705
- ) {
706
- return 'Could not Fast Refresh (new export)'
707
- }
708
-
709
- let hasExports = false;
710
- const allExportsAreComponentsOrUnchanged = predicateOnExport(
711
- ignoredExports,
712
- nextExports,
713
- (key, value) => {
714
- hasExports = true;
715
- if (exports.isLikelyComponentType(value)) return true
716
- return prevExports[key] === nextExports[key]
717
- },
718
- );
719
- if (hasExports && allExportsAreComponentsOrUnchanged === true) {
720
- enqueueUpdate();
721
- } else {
722
- return `Could not Fast Refresh ("${allExportsAreComponentsOrUnchanged}" export is incompatible). Learn more at https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react#consistent-components-exports`
723
- }
724
- }
725
-
726
- function predicateOnExport(ignoredExports, moduleExports, predicate) {
727
- for (const key in moduleExports) {
728
- if (key === '__esModule') continue
729
- if (ignoredExports.includes(key)) continue
730
- const desc = Object.getOwnPropertyDescriptor(moduleExports, key);
731
- if (desc && desc.get) return key
732
- if (!predicate(key, moduleExports[key])) return key
733
- }
734
- return true
735
- }
736
-
737
- // Hides vite-ignored dynamic import so that Vite can skip analysis if no other
738
- // dynamic import is present (https://github.com/vitejs/vite/pull/12732)
739
- function __hmr_import(module) {
740
- return import(/* @vite-ignore */ module)
741
- }
742
-
743
- exports.__hmr_import = __hmr_import;
744
- exports.registerExportsForReactRefresh = registerExportsForReactRefresh;
745
- exports.validateRefreshBoundaryAndEnqueueUpdate =
746
- validateRefreshBoundaryAndEnqueueUpdate;
747
-
748
6
  /******************************************************************************
749
7
  Copyright (c) Microsoft Corporation.
750
8
 
@@ -887,112 +145,24 @@ const ImgStyle = styled.svg `
887
145
  height: 1em;
888
146
  `;
889
147
 
890
- const inWebWorker$b = typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope;let prevRefreshReg$b;let prevRefreshSig$b;if (import.meta.hot && !inWebWorker$b) { if (!window.__vite_plugin_react_preamble_installed__) { throw new Error( "@vitejs/plugin-react can't detect preamble. Something is wrong. " + "See https://github.com/vitejs/vite-plugin-react/pull/11#discussion_r430879201" ); } prevRefreshReg$b = window.$RefreshReg$; prevRefreshSig$b = window.$RefreshSig$; window.$RefreshReg$ = (type, id) => { exports.register(type, "/Users/alexis/Desktop/manamerge/mana-atomic-ui/src/components/Atoms/Button/Button.tsx" + " " + id); }; window.$RefreshSig$ = exports.createSignatureFunctionForTransform;}const Button = _a => {
891
- var {
892
- variant,
893
- disabled = false,
894
- image,
895
- opacity = "0",
896
- background,
897
- alt,
898
- children,
899
- onClick,
900
- type = "submit",
901
- color,
902
- altColor,
903
- frame,
904
- border,
905
- text,
906
- fill,
907
- effects,
908
- padding,
909
- flexbox,
910
- cursor,
911
- margin,
912
- display,
913
- radius,
914
- fontWeight,
915
- letterSpacing,
916
- shadow,
917
- transition,
918
- width,
919
- height,
920
- gap,
921
- align
922
- } = _a,
923
- props = __rest(_a, ["variant", "disabled", "image", "opacity", "background", "alt", "children", "onClick", "type", "color", "altColor", "frame", "border", "text", "fill", "effects", "padding", "flexbox", "cursor", "margin", "display", "radius", "fontWeight", "letterSpacing", "shadow", "transition", "width", "height", "gap", "align"]);
924
- // Log a warning if both `children` and `alt` are missing for accessibility
925
- if (!children && !alt) {
926
- console.error(`Provide either "children" or "alt" property to the Button.`);
927
- }
928
- return React.createElement(ButtonStyle, Object.assign({
929
- disabled: disabled,
930
- className: classNames("Button", variant),
931
- variant: "Button-" + variant,
932
- type: type,
933
- "aria-label": alt || "",
934
- background: background,
935
- color: color,
936
- opacity: opacity,
937
- altColor: altColor,
938
- frame: frame,
939
- border: border,
940
- text: text,
941
- fill: fill,
942
- effects: effects,
943
- padding: padding,
944
- flexbox: flexbox,
945
- cursor: cursor,
946
- margin: margin,
947
- display: display,
948
- radius: radius,
949
- fontWeight: fontWeight,
950
- letterSpacing: letterSpacing,
951
- shadow: shadow,
952
- transition: transition,
953
- width: width,
954
- height: height,
955
- gap: gap,
956
- align: align,
957
- onClick: e => {
958
- if (!disabled && onClick) {
959
- onClick(e);
960
- }
148
+ const Button = (_a) => {
149
+ var { variant, disabled = false, image, opacity = "0", background, alt, children, onClick, type = "submit", color, altColor, frame, border, text, fill, effects, padding, flexbox, cursor, margin, display, radius, fontWeight, letterSpacing, shadow, transition, width, height, gap, align } = _a, props = __rest(_a, ["variant", "disabled", "image", "opacity", "background", "alt", "children", "onClick", "type", "color", "altColor", "frame", "border", "text", "fill", "effects", "padding", "flexbox", "cursor", "margin", "display", "radius", "fontWeight", "letterSpacing", "shadow", "transition", "width", "height", "gap", "align"]);
150
+ // Log a warning if both `children` and `alt` are missing for accessibility
151
+ if (!children && !alt) {
152
+ console.error(`Provide either "children" or "alt" property to the Button.`);
961
153
  }
962
- }, props), image && React.createElement(ImgStyle, {
963
- viewBox: "0 0 100 100"
964
- }, React.createElement("defs", null, React.createElement("mask", {
965
- id: `${image}-mask`
966
- }, React.createElement("image", {
967
- xlinkHref: image,
968
- width: "100",
969
- height: "100"
970
- }))), React.createElement("rect", {
971
- width: "100",
972
- height: "100",
973
- style: {
974
- fill: "var(--alt-color, currentColor)"
975
- },
976
- mask: `url(#${image}-mask)`
977
- })), children);
154
+ return (React.createElement(ButtonStyle, Object.assign({ disabled: disabled, className: classNames("Button", variant), variant: "Button-" + variant, type: type, "aria-label": alt || "", background: background, color: color, opacity: opacity, altColor: altColor, frame: frame, border: border, text: text, fill: fill, effects: effects, padding: padding, flexbox: flexbox, cursor: cursor, margin: margin, display: display, radius: radius, fontWeight: fontWeight, letterSpacing: letterSpacing, shadow: shadow, transition: transition, width: width, height: height, gap: gap, align: align, onClick: (e) => {
155
+ if (!disabled && onClick) {
156
+ onClick(e);
157
+ }
158
+ } }, props),
159
+ image && (React.createElement(ImgStyle, { viewBox: "0 0 100 100" },
160
+ React.createElement("defs", null,
161
+ React.createElement("mask", { id: `${image}-mask` },
162
+ React.createElement("image", { xlinkHref: image, width: "100", height: "100" }))),
163
+ React.createElement("rect", { width: "100", height: "100", style: { fill: "var(--alt-color, currentColor)" }, mask: `url(#${image}-mask)` }))),
164
+ children));
978
165
  };
979
- _c$b = Button;
980
- var _c$b;
981
- $RefreshReg$(_c$b, "Button");
982
- if (import.meta.hot && !inWebWorker$b) {
983
- window.$RefreshReg$ = prevRefreshReg$b;
984
- window.$RefreshSig$ = prevRefreshSig$b;
985
- }
986
- if (import.meta.hot && !inWebWorker$b) {
987
- exports.__hmr_import(import.meta.url).then((currentExports) => {
988
- exports.registerExportsForReactRefresh("/Users/alexis/Desktop/manamerge/mana-atomic-ui/src/components/Atoms/Button/Button.tsx", currentExports);
989
- import.meta.hot.accept((nextExports) => {
990
- if (!nextExports) return;
991
- const invalidateMessage = exports.validateRefreshBoundaryAndEnqueueUpdate("/Users/alexis/Desktop/manamerge/mana-atomic-ui/src/components/Atoms/Button/Button.tsx", currentExports, nextExports);
992
- if (invalidateMessage) import.meta.hot.invalidate(invalidateMessage);
993
- });
994
- });
995
- }
996
166
 
997
167
  const TextContainer = styled.p `
998
168
  ${(_a) => {
@@ -1027,54 +197,14 @@ const TextContainerLabel = styled.label `
1027
197
  }};
1028
198
  `;
1029
199
 
1030
- const inWebWorker$a = typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope;let prevRefreshReg$a;let prevRefreshSig$a;if (import.meta.hot && !inWebWorker$a) { if (!window.__vite_plugin_react_preamble_installed__) { throw new Error( "@vitejs/plugin-react can't detect preamble. Something is wrong. " + "See https://github.com/vitejs/vite-plugin-react/pull/11#discussion_r430879201" ); } prevRefreshReg$a = window.$RefreshReg$; prevRefreshSig$a = window.$RefreshSig$; window.$RefreshReg$ = (type, id) => { exports.register(type, "/Users/alexis/Desktop/manamerge/mana-atomic-ui/src/components/Atoms/Text/Text.tsx" + " " + id); }; window.$RefreshSig$ = exports.createSignatureFunctionForTransform;}const Text = _a => {
1031
- var {
1032
- variant,
1033
- children,
1034
- htmlFor,
1035
- margin,
1036
- color,
1037
- fontSize,
1038
- lineHeight,
1039
- fontWeight,
1040
- tag,
1041
- onClick
1042
- } = _a,
1043
- props = __rest(_a, ["variant", "children", "htmlFor", "margin", "color", "fontSize", "lineHeight", "fontWeight", "tag", "onClick"]);
1044
- // Determine which component to use
1045
- const Wrapper = htmlFor ? TextContainerLabel : TextContainer;
1046
- return React.createElement(Wrapper, Object.assign({
1047
- as: tag,
1048
- className: classNames("Text-", variant),
1049
- variant: "Text-" + variant,
1050
- htmlFor: htmlFor,
1051
- style: {
1052
- margin,
1053
- color,
1054
- fontSize,
1055
- lineHeight,
1056
- fontWeight
1057
- },
1058
- onClick: onClick
1059
- }, props), children);
200
+ const Text = (_a) => {
201
+ var { variant, children, htmlFor, margin, color, fontSize, lineHeight, fontWeight, tag, onClick } = _a, props = __rest(_a, ["variant", "children", "htmlFor", "margin", "color", "fontSize", "lineHeight", "fontWeight", "tag", "onClick"]);
202
+ // Determine which component to use
203
+ const Wrapper = htmlFor
204
+ ? TextContainerLabel
205
+ : TextContainer;
206
+ return (React.createElement(Wrapper, Object.assign({ as: tag, className: classNames("Text-", variant), variant: "Text-" + variant, htmlFor: htmlFor, style: { margin, color, fontSize, lineHeight, fontWeight }, onClick: onClick }, props), children));
1060
207
  };
1061
- _c$a = Text;
1062
- var _c$a;
1063
- $RefreshReg$(_c$a, "Text");
1064
- if (import.meta.hot && !inWebWorker$a) {
1065
- window.$RefreshReg$ = prevRefreshReg$a;
1066
- window.$RefreshSig$ = prevRefreshSig$a;
1067
- }
1068
- if (import.meta.hot && !inWebWorker$a) {
1069
- exports.__hmr_import(import.meta.url).then((currentExports) => {
1070
- exports.registerExportsForReactRefresh("/Users/alexis/Desktop/manamerge/mana-atomic-ui/src/components/Atoms/Text/Text.tsx", currentExports);
1071
- import.meta.hot.accept((nextExports) => {
1072
- if (!nextExports) return;
1073
- const invalidateMessage = exports.validateRefreshBoundaryAndEnqueueUpdate("/Users/alexis/Desktop/manamerge/mana-atomic-ui/src/components/Atoms/Text/Text.tsx", currentExports, nextExports);
1074
- if (invalidateMessage) import.meta.hot.invalidate(invalidateMessage);
1075
- });
1076
- });
1077
- }
1078
208
 
1079
209
  const HeadingContainer = styled.h1 `
1080
210
  ${({ variant = "h1", theme, margin, fontSize, fontWeight, lineHeight, color }) => {
@@ -1108,45 +238,10 @@ const HeadingContainer = styled.h1 `
1108
238
  }}
1109
239
  `;
1110
240
 
1111
- const inWebWorker$9 = typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope;let prevRefreshReg$9;let prevRefreshSig$9;if (import.meta.hot && !inWebWorker$9) { if (!window.__vite_plugin_react_preamble_installed__) { throw new Error( "@vitejs/plugin-react can't detect preamble. Something is wrong. " + "See https://github.com/vitejs/vite-plugin-react/pull/11#discussion_r430879201" ); } prevRefreshReg$9 = window.$RefreshReg$; prevRefreshSig$9 = window.$RefreshSig$; window.$RefreshReg$ = (type, id) => { exports.register(type, "/Users/alexis/Desktop/manamerge/mana-atomic-ui/src/components/Atoms/Heading/Heading.tsx" + " " + id); }; window.$RefreshSig$ = exports.createSignatureFunctionForTransform;}const Heading = _a => {
1112
- var {
1113
- variant,
1114
- children,
1115
- margin,
1116
- color,
1117
- fontSize,
1118
- lineHeight,
1119
- fontWeight
1120
- } = _a,
1121
- props = __rest(_a, ["variant", "children", "margin", "color", "fontSize", "lineHeight", "fontWeight"]);
1122
- return React.createElement(HeadingContainer, Object.assign({
1123
- className: classNames("Heading-", variant),
1124
- variant: "Heading-" + variant,
1125
- as: variant,
1126
- margin: margin,
1127
- color: color,
1128
- fontSize: fontSize,
1129
- lineHeight: lineHeight,
1130
- fontWeight: fontWeight
1131
- }, props), children);
241
+ const Heading = (_a) => {
242
+ var { variant, children, margin, color, fontSize, lineHeight, fontWeight } = _a, props = __rest(_a, ["variant", "children", "margin", "color", "fontSize", "lineHeight", "fontWeight"]);
243
+ return (React.createElement(HeadingContainer, Object.assign({ className: classNames("Heading-", variant), variant: "Heading-" + variant, as: variant, margin: margin, color: color, fontSize: fontSize, lineHeight: lineHeight, fontWeight: fontWeight }, props), children));
1132
244
  };
1133
- _c$9 = Heading;
1134
- var _c$9;
1135
- $RefreshReg$(_c$9, "Heading");
1136
- if (import.meta.hot && !inWebWorker$9) {
1137
- window.$RefreshReg$ = prevRefreshReg$9;
1138
- window.$RefreshSig$ = prevRefreshSig$9;
1139
- }
1140
- if (import.meta.hot && !inWebWorker$9) {
1141
- exports.__hmr_import(import.meta.url).then((currentExports) => {
1142
- exports.registerExportsForReactRefresh("/Users/alexis/Desktop/manamerge/mana-atomic-ui/src/components/Atoms/Heading/Heading.tsx", currentExports);
1143
- import.meta.hot.accept((nextExports) => {
1144
- if (!nextExports) return;
1145
- const invalidateMessage = exports.validateRefreshBoundaryAndEnqueueUpdate("/Users/alexis/Desktop/manamerge/mana-atomic-ui/src/components/Atoms/Heading/Heading.tsx", currentExports, nextExports);
1146
- if (invalidateMessage) import.meta.hot.invalidate(invalidateMessage);
1147
- });
1148
- });
1149
- }
1150
245
 
1151
246
  const StyledSvg = styled.svg `
1152
247
  ${(_a) => {
@@ -1168,57 +263,14 @@ const StyledSvg = styled.svg `
1168
263
  }}
1169
264
  `;
1170
265
 
1171
- const inWebWorker$8 = typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope;let prevRefreshReg$8;let prevRefreshSig$8;if (import.meta.hot && !inWebWorker$8) { if (!window.__vite_plugin_react_preamble_installed__) { throw new Error( "@vitejs/plugin-react can't detect preamble. Something is wrong. " + "See https://github.com/vitejs/vite-plugin-react/pull/11#discussion_r430879201" ); } prevRefreshReg$8 = window.$RefreshReg$; prevRefreshSig$8 = window.$RefreshSig$; window.$RefreshReg$ = (type, id) => { exports.register(type, "/Users/alexis/Desktop/manamerge/mana-atomic-ui/src/components/Atoms/Icon/Icon.tsx" + " " + id); }; window.$RefreshSig$ = exports.createSignatureFunctionForTransform;}const Icon = _a => {
1172
- var {
1173
- variant,
1174
- svg: SvgIcon,
1175
- color,
1176
- size,
1177
- stroke,
1178
- hoverColor,
1179
- hoverStroke,
1180
- onClick,
1181
- onKeyDown,
1182
- tabIndex,
1183
- role
1184
- } = _a,
1185
- props = __rest(_a, ["variant", "svg", "color", "size", "stroke", "hoverColor", "hoverStroke", "onClick", "onKeyDown", "tabIndex", "role"]);
1186
- if (!SvgIcon) {
1187
- console.error("No SVG provided to the Icon component.");
1188
- return null;
1189
- }
1190
- return React.createElement(StyledSvg, Object.assign({
1191
- className: classNames("Icon-" + variant),
1192
- variant: "Icon-" + variant,
1193
- as: SvgIcon,
1194
- size: size,
1195
- color: color,
1196
- stroke: stroke,
1197
- hoverColor: hoverColor,
1198
- hoverStroke: hoverStroke,
1199
- onClick: onClick,
1200
- onKeyDown: onKeyDown,
1201
- tabIndex: tabIndex,
1202
- role: role
1203
- }, props));
266
+ const Icon = (_a) => {
267
+ var { variant, svg: SvgIcon, color, size, stroke, hoverColor, hoverStroke, onClick, onKeyDown, tabIndex, role } = _a, props = __rest(_a, ["variant", "svg", "color", "size", "stroke", "hoverColor", "hoverStroke", "onClick", "onKeyDown", "tabIndex", "role"]);
268
+ if (!SvgIcon) {
269
+ console.error("No SVG provided to the Icon component.");
270
+ return null;
271
+ }
272
+ return (React.createElement(StyledSvg, Object.assign({ className: classNames("Icon-" + variant), variant: "Icon-" + variant, as: SvgIcon, size: size, color: color, stroke: stroke, hoverColor: hoverColor, hoverStroke: hoverStroke, onClick: onClick, onKeyDown: onKeyDown, tabIndex: tabIndex, role: role }, props)));
1204
273
  };
1205
- _c$8 = Icon;
1206
- var _c$8;
1207
- $RefreshReg$(_c$8, "Icon");
1208
- if (import.meta.hot && !inWebWorker$8) {
1209
- window.$RefreshReg$ = prevRefreshReg$8;
1210
- window.$RefreshSig$ = prevRefreshSig$8;
1211
- }
1212
- if (import.meta.hot && !inWebWorker$8) {
1213
- exports.__hmr_import(import.meta.url).then((currentExports) => {
1214
- exports.registerExportsForReactRefresh("/Users/alexis/Desktop/manamerge/mana-atomic-ui/src/components/Atoms/Icon/Icon.tsx", currentExports);
1215
- import.meta.hot.accept((nextExports) => {
1216
- if (!nextExports) return;
1217
- const invalidateMessage = exports.validateRefreshBoundaryAndEnqueueUpdate("/Users/alexis/Desktop/manamerge/mana-atomic-ui/src/components/Atoms/Icon/Icon.tsx", currentExports, nextExports);
1218
- if (invalidateMessage) import.meta.hot.invalidate(invalidateMessage);
1219
- });
1220
- });
1221
- }
1222
274
 
1223
275
  const StyledLink$2 = styled.a `
1224
276
  ${({ variant = "regular", theme, underline, hoverUnderline, color, hoverColor, fontSize, lineHeight, fontWeight }) => {
@@ -1256,59 +308,23 @@ const StyledLink$2 = styled.a `
1256
308
  }};
1257
309
  `;
1258
310
 
1259
- const inWebWorker$7 = typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope;let prevRefreshReg$7;let prevRefreshSig$7;if (import.meta.hot && !inWebWorker$7) { if (!window.__vite_plugin_react_preamble_installed__) { throw new Error( "@vitejs/plugin-react can't detect preamble. Something is wrong. " + "See https://github.com/vitejs/vite-plugin-react/pull/11#discussion_r430879201" ); } prevRefreshReg$7 = window.$RefreshReg$; prevRefreshSig$7 = window.$RefreshSig$; window.$RefreshReg$ = (type, id) => { exports.register(type, "/Users/alexis/Desktop/manamerge/mana-atomic-ui/src/components/Atoms/Link/Link.tsx" + " " + id); }; window.$RefreshSig$ = exports.createSignatureFunctionForTransform;}const Link = _a => {
1260
- var {
1261
- variant,
1262
- to,
1263
- href,
1264
- children,
1265
- target,
1266
- fontSize,
1267
- lineHeight,
1268
- fontWeight,
1269
- as
1270
- } = _a,
1271
- props = __rest(_a, ["variant", "to", "href", "children", "target", "fontSize", "lineHeight", "fontWeight", "as"]);
1272
- const isExternal = href && /^https?:\/\//.test(href);
1273
- if (!isExternal && href && !to) {
1274
- console.warn("A Link with an internal href should use the `to` prop instead for client-side routing.");
1275
- }
1276
- // Determine what component to render
1277
- const Component = to ? NavLink : as || "a";
1278
- const componentProps = to ? {
1279
- to
1280
- } // Use react-router-dom's `to` prop
1281
- : {
1282
- href,
1283
- target,
1284
- rel: target === "_blank" ? "noopener noreferrer" : undefined
1285
- };
1286
- return React.createElement(StyledLink$2, Object.assign({
1287
- className: classNames("Link-" + variant),
1288
- variant: "Link-" + variant,
1289
- as: Component,
1290
- fontSize: fontSize,
1291
- lineHeight: lineHeight,
1292
- fontWeight: fontWeight
1293
- }, componentProps, props), children);
311
+ const Link = (_a) => {
312
+ var { variant, to, href, children, target, fontSize, lineHeight, fontWeight, as } = _a, props = __rest(_a, ["variant", "to", "href", "children", "target", "fontSize", "lineHeight", "fontWeight", "as"]);
313
+ const isExternal = href && /^https?:\/\//.test(href);
314
+ if (!isExternal && href && !to) {
315
+ console.warn("A Link with an internal href should use the `to` prop instead for client-side routing.");
316
+ }
317
+ // Determine what component to render
318
+ const Component = to ? NavLink : as || "a";
319
+ const componentProps = to
320
+ ? { to } // Use react-router-dom's `to` prop
321
+ : {
322
+ href,
323
+ target,
324
+ rel: target === "_blank" ? "noopener noreferrer" : undefined
325
+ };
326
+ return (React.createElement(StyledLink$2, Object.assign({ className: classNames("Link-" + variant), variant: "Link-" + variant, as: Component, fontSize: fontSize, lineHeight: lineHeight, fontWeight: fontWeight }, componentProps, props), children));
1294
327
  };
1295
- _c$7 = Link;
1296
- var _c$7;
1297
- $RefreshReg$(_c$7, "Link");
1298
- if (import.meta.hot && !inWebWorker$7) {
1299
- window.$RefreshReg$ = prevRefreshReg$7;
1300
- window.$RefreshSig$ = prevRefreshSig$7;
1301
- }
1302
- if (import.meta.hot && !inWebWorker$7) {
1303
- exports.__hmr_import(import.meta.url).then((currentExports) => {
1304
- exports.registerExportsForReactRefresh("/Users/alexis/Desktop/manamerge/mana-atomic-ui/src/components/Atoms/Link/Link.tsx", currentExports);
1305
- import.meta.hot.accept((nextExports) => {
1306
- if (!nextExports) return;
1307
- const invalidateMessage = exports.validateRefreshBoundaryAndEnqueueUpdate("/Users/alexis/Desktop/manamerge/mana-atomic-ui/src/components/Atoms/Link/Link.tsx", currentExports, nextExports);
1308
- if (invalidateMessage) import.meta.hot.invalidate(invalidateMessage);
1309
- });
1310
- });
1311
- }
1312
328
 
1313
329
  const WrapperBackground = styled.div `
1314
330
  position: relative;
@@ -1459,52 +475,24 @@ const AtomIconRight = styled(Icon).attrs(({ theme }) => {
1459
475
  });
1460
476
  }) ``;
1461
477
 
1462
- const inWebWorker$6 = typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope;let prevRefreshReg$6;let prevRefreshSig$6;if (import.meta.hot && !inWebWorker$6) { if (!window.__vite_plugin_react_preamble_installed__) { throw new Error( "@vitejs/plugin-react can't detect preamble. Something is wrong. " + "See https://github.com/vitejs/vite-plugin-react/pull/11#discussion_r430879201" ); } prevRefreshReg$6 = window.$RefreshReg$; prevRefreshSig$6 = window.$RefreshSig$; window.$RefreshReg$ = (type, id) => { exports.register(type, "/Users/alexis/Desktop/manamerge/mana-atomic-ui/src/components/Molecules/Header/Header.tsx" + " " + id); }; window.$RefreshSig$ = exports.createSignatureFunctionForTransform;}const Header = ({
1463
- iconTop,
1464
- iconDot,
1465
- iconLeft,
1466
- iconRight,
1467
- textBanner,
1468
- headingTitle,
1469
- textTitle,
1470
- buttonLeftText,
1471
- buttonLeftClick,
1472
- buttonRightText,
1473
- buttonRightClick
1474
- }) => {
1475
- return React.createElement(WrapperBackground, null, React.createElement(WrapperHeader, null, React.createElement("div", null, iconTop && React.createElement(AtomIconTop, {
1476
- svg: iconTop
1477
- }), React.createElement(WrapperLineTop, null, iconDot && React.createElement(AtomIconDot, {
1478
- svg: iconDot
1479
- }), React.createElement(AtomTextTitle, null, textBanner))), React.createElement(AtomHeading$2, null, headingTitle), React.createElement("div", null, textTitle === null || textTitle === void 0 ? void 0 : textTitle.map((text, i) => React.createElement(AtomTextTitle, {
1480
- key: i
1481
- }, text))), React.createElement(WrapperLineBottom, null, React.createElement(AtomButtonLeft, {
1482
- onClick: buttonLeftClick
1483
- }, iconLeft && React.createElement(AtomIconLeft, {
1484
- svg: iconLeft
1485
- }), React.createElement(AtomTextLeft, null, buttonLeftText)), React.createElement(AtomButtonRight, {
1486
- onClick: buttonRightClick
1487
- }, React.createElement(AtomTextRight, null, buttonRightText), iconRight && React.createElement(AtomIconRight, {
1488
- svg: iconRight
1489
- })))));
478
+ const Header = ({ iconTop, iconDot, iconLeft, iconRight, textBanner, headingTitle, textTitle, buttonLeftText, buttonLeftClick, buttonRightText, buttonRightClick }) => {
479
+ return (React.createElement(WrapperBackground, null,
480
+ React.createElement(WrapperHeader, null,
481
+ React.createElement("div", null,
482
+ iconTop && React.createElement(AtomIconTop, { svg: iconTop }),
483
+ React.createElement(WrapperLineTop, null,
484
+ iconDot && React.createElement(AtomIconDot, { svg: iconDot }),
485
+ React.createElement(AtomTextTitle, null, textBanner))),
486
+ React.createElement(AtomHeading$2, null, headingTitle),
487
+ React.createElement("div", null, textTitle === null || textTitle === void 0 ? void 0 : textTitle.map((text, i) => (React.createElement(AtomTextTitle, { key: i }, text)))),
488
+ React.createElement(WrapperLineBottom, null,
489
+ React.createElement(AtomButtonLeft, { onClick: buttonLeftClick },
490
+ iconLeft && React.createElement(AtomIconLeft, { svg: iconLeft }),
491
+ React.createElement(AtomTextLeft, null, buttonLeftText)),
492
+ React.createElement(AtomButtonRight, { onClick: buttonRightClick },
493
+ React.createElement(AtomTextRight, null, buttonRightText),
494
+ iconRight && React.createElement(AtomIconRight, { svg: iconRight }))))));
1490
495
  };
1491
- _c$6 = Header;
1492
- var _c$6;
1493
- $RefreshReg$(_c$6, "Header");
1494
- if (import.meta.hot && !inWebWorker$6) {
1495
- window.$RefreshReg$ = prevRefreshReg$6;
1496
- window.$RefreshSig$ = prevRefreshSig$6;
1497
- }
1498
- if (import.meta.hot && !inWebWorker$6) {
1499
- exports.__hmr_import(import.meta.url).then((currentExports) => {
1500
- exports.registerExportsForReactRefresh("/Users/alexis/Desktop/manamerge/mana-atomic-ui/src/components/Molecules/Header/Header.tsx", currentExports);
1501
- import.meta.hot.accept((nextExports) => {
1502
- if (!nextExports) return;
1503
- const invalidateMessage = exports.validateRefreshBoundaryAndEnqueueUpdate("/Users/alexis/Desktop/manamerge/mana-atomic-ui/src/components/Molecules/Header/Header.tsx", currentExports, nextExports);
1504
- if (invalidateMessage) import.meta.hot.invalidate(invalidateMessage);
1505
- });
1506
- });
1507
- }
1508
496
 
1509
497
  const NavBar = styled.nav `
1510
498
  ${({ theme }) => {
@@ -1591,63 +579,28 @@ const StyledLink$1 = styled(Link).attrs(({ theme }) => {
1591
579
  }};
1592
580
  `;
1593
581
 
1594
- const inWebWorker$5 = typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope;let prevRefreshReg$5;let prevRefreshSig$5;if (import.meta.hot && !inWebWorker$5) { if (!window.__vite_plugin_react_preamble_installed__) { throw new Error( "@vitejs/plugin-react can't detect preamble. Something is wrong. " + "See https://github.com/vitejs/vite-plugin-react/pull/11#discussion_r430879201" ); } prevRefreshReg$5 = window.$RefreshReg$; prevRefreshSig$5 = window.$RefreshSig$; window.$RefreshReg$ = (type, id) => { exports.register(type, "/Users/alexis/Desktop/manamerge/mana-atomic-ui/src/components/Molecules/Navigation/Navigation.tsx" + " " + id); }; window.$RefreshSig$ = exports.createSignatureFunctionForTransform;}var _s$1 = $RefreshSig$();
1595
- const Navigation = ({
1596
- iconBurger,
1597
- tabs,
1598
- onTabClick
1599
- }) => {
1600
- _s$1();
1601
- const location = useLocation();
1602
- const currentPath = location.pathname.slice(1);
1603
- const [isOpen, setIsOpen] = useState(false);
1604
- const handleToggle = () => {
1605
- setIsOpen(!isOpen);
1606
- };
1607
- const handleKeyDown = event => {
1608
- if (event.key === "Enter" || event.key === " ") {
1609
- handleToggle();
1610
- }
1611
- };
1612
- return React.createElement(NavBar, null, React.createElement(BurgerWrapper, null, React.createElement(BurgerIcon, {
1613
- onClick: handleToggle,
1614
- onKeyDown: handleKeyDown,
1615
- tabIndex: 0,
1616
- role: "button",
1617
- "aria-pressed": isOpen,
1618
- svg: iconBurger
1619
- })), React.createElement(NavLinks, {
1620
- isOpen: isOpen
1621
- }, tabs.length > 0 ? tabs.map(tab => React.createElement(StyledLink$1, {
1622
- key: tab.label,
1623
- to: tab.to,
1624
- currentPath: tab.label === currentPath,
1625
- onClick: () => {
1626
- onTabClick === null || onTabClick === void 0 ? void 0 : onTabClick(tab.label);
1627
- setIsOpen(false);
1628
- }
1629
- }, tab.label)) : "no tabs available"));
582
+ const Navigation = ({ iconBurger, tabs, onTabClick }) => {
583
+ const location = useLocation();
584
+ const currentPath = location.pathname.slice(1);
585
+ const [isOpen, setIsOpen] = useState(false);
586
+ const handleToggle = () => {
587
+ setIsOpen(!isOpen);
588
+ };
589
+ const handleKeyDown = (event) => {
590
+ if (event.key === "Enter" || event.key === " ") {
591
+ handleToggle();
592
+ }
593
+ };
594
+ return (React.createElement(NavBar, null,
595
+ React.createElement(BurgerWrapper, null,
596
+ React.createElement(BurgerIcon, { onClick: handleToggle, onKeyDown: handleKeyDown, tabIndex: 0, role: "button", "aria-pressed": isOpen, svg: iconBurger })),
597
+ React.createElement(NavLinks, { isOpen: isOpen }, tabs.length > 0
598
+ ? tabs.map((tab) => (React.createElement(StyledLink$1, { key: tab.label, to: tab.to, currentPath: tab.label === currentPath, onClick: () => {
599
+ onTabClick === null || onTabClick === void 0 ? void 0 : onTabClick(tab.label);
600
+ setIsOpen(false);
601
+ } }, tab.label)))
602
+ : "no tabs available")));
1630
603
  };
1631
- _s$1(Navigation, "640POkvdQsyI48TnMAI7wFH1NDA=", false, function () {
1632
- return [useLocation];
1633
- });
1634
- _c$5 = Navigation;
1635
- var _c$5;
1636
- $RefreshReg$(_c$5, "Navigation");
1637
- if (import.meta.hot && !inWebWorker$5) {
1638
- window.$RefreshReg$ = prevRefreshReg$5;
1639
- window.$RefreshSig$ = prevRefreshSig$5;
1640
- }
1641
- if (import.meta.hot && !inWebWorker$5) {
1642
- exports.__hmr_import(import.meta.url).then((currentExports) => {
1643
- exports.registerExportsForReactRefresh("/Users/alexis/Desktop/manamerge/mana-atomic-ui/src/components/Molecules/Navigation/Navigation.tsx", currentExports);
1644
- import.meta.hot.accept((nextExports) => {
1645
- if (!nextExports) return;
1646
- const invalidateMessage = exports.validateRefreshBoundaryAndEnqueueUpdate("/Users/alexis/Desktop/manamerge/mana-atomic-ui/src/components/Molecules/Navigation/Navigation.tsx", currentExports, nextExports);
1647
- if (invalidateMessage) import.meta.hot.invalidate(invalidateMessage);
1648
- });
1649
- });
1650
- }
1651
604
 
1652
605
  // Wrapper for the footer
1653
606
  const FooterWrapper = styled.footer `
@@ -1746,49 +699,22 @@ const FooterChildren = styled(Text).attrs(({ theme }) => {
1746
699
  }}
1747
700
  `;
1748
701
 
1749
- const inWebWorker$4 = typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope;let prevRefreshReg$4;let prevRefreshSig$4;if (import.meta.hot && !inWebWorker$4) { if (!window.__vite_plugin_react_preamble_installed__) { throw new Error( "@vitejs/plugin-react can't detect preamble. Something is wrong. " + "See https://github.com/vitejs/vite-plugin-react/pull/11#discussion_r430879201" ); } prevRefreshReg$4 = window.$RefreshReg$; prevRefreshSig$4 = window.$RefreshSig$; window.$RefreshReg$ = (type, id) => { exports.register(type, "/Users/alexis/Desktop/manamerge/mana-atomic-ui/src/components/Molecules/Footer/Footer.tsx" + " " + id); }; window.$RefreshSig$ = exports.createSignatureFunctionForTransform;}var _s = $RefreshSig$();
1750
- const Footer = ({
1751
- children,
1752
- svg,
1753
- routes
1754
- }) => {
1755
- _s();
1756
- // Memoize sorted routes to prevent redundant sorting
1757
- const sortedRoutes = useMemo(() => [...routes].sort((a, b) => a.order - b.order), [routes]);
1758
- const renderRouteLink = route => {
1759
- const isExternal = route.type === "external";
1760
- const href = isExternal ? route.url : undefined;
1761
- const to = !isExternal ? route.slug : undefined;
1762
- const target = route.blank ? "_blank" : undefined;
1763
- return React.createElement(StyledLink, {
1764
- key: route.order,
1765
- href: href,
1766
- to: to,
1767
- target: target
1768
- }, route.label, svg && React.createElement(IconFooter, {
1769
- svg: svg
1770
- }));
1771
- };
1772
- return React.createElement(FooterWrapper, null, children && React.createElement(FooterChildren, null, children), React.createElement(FooterNav, null, sortedRoutes.map(renderRouteLink)));
702
+ const Footer = ({ children, svg, routes }) => {
703
+ // Memoize sorted routes to prevent redundant sorting
704
+ const sortedRoutes = useMemo(() => [...routes].sort((a, b) => a.order - b.order), [routes]);
705
+ const renderRouteLink = (route) => {
706
+ const isExternal = route.type === "external";
707
+ const href = isExternal ? route.url : undefined;
708
+ const to = !isExternal ? route.slug : undefined;
709
+ const target = route.blank ? "_blank" : undefined;
710
+ return (React.createElement(StyledLink, { key: route.order, href: href, to: to, target: target },
711
+ route.label,
712
+ svg && React.createElement(IconFooter, { svg: svg })));
713
+ };
714
+ return (React.createElement(FooterWrapper, null,
715
+ children && React.createElement(FooterChildren, null, children),
716
+ React.createElement(FooterNav, null, sortedRoutes.map(renderRouteLink))));
1773
717
  };
1774
- _s(Footer, "GUj55ORxHkcogIU3VfydneZ+fds=");
1775
- _c$4 = Footer;
1776
- var _c$4;
1777
- $RefreshReg$(_c$4, "Footer");
1778
- if (import.meta.hot && !inWebWorker$4) {
1779
- window.$RefreshReg$ = prevRefreshReg$4;
1780
- window.$RefreshSig$ = prevRefreshSig$4;
1781
- }
1782
- if (import.meta.hot && !inWebWorker$4) {
1783
- exports.__hmr_import(import.meta.url).then((currentExports) => {
1784
- exports.registerExportsForReactRefresh("/Users/alexis/Desktop/manamerge/mana-atomic-ui/src/components/Molecules/Footer/Footer.tsx", currentExports);
1785
- import.meta.hot.accept((nextExports) => {
1786
- if (!nextExports) return;
1787
- const invalidateMessage = exports.validateRefreshBoundaryAndEnqueueUpdate("/Users/alexis/Desktop/manamerge/mana-atomic-ui/src/components/Molecules/Footer/Footer.tsx", currentExports, nextExports);
1788
- if (invalidateMessage) import.meta.hot.invalidate(invalidateMessage);
1789
- });
1790
- });
1791
- }
1792
718
 
1793
719
  const CardContainer = styled.div `
1794
720
  overflow: hidden;
@@ -2000,45 +926,24 @@ const CardBackgroundColor = styled.div `
2000
926
  }}
2001
927
  `;
2002
928
 
2003
- const inWebWorker$3 = typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope;let prevRefreshReg$3;let prevRefreshSig$3;if (import.meta.hot && !inWebWorker$3) { if (!window.__vite_plugin_react_preamble_installed__) { throw new Error( "@vitejs/plugin-react can't detect preamble. Something is wrong. " + "See https://github.com/vitejs/vite-plugin-react/pull/11#discussion_r430879201" ); } prevRefreshReg$3 = window.$RefreshReg$; prevRefreshSig$3 = window.$RefreshSig$; window.$RefreshReg$ = (type, id) => { exports.register(type, "/Users/alexis/Desktop/manamerge/mana-atomic-ui/src/components/Molecules/CardTeaser/CardTeaser.tsx" + " " + id); }; window.$RefreshSig$ = exports.createSignatureFunctionForTransform;}const CardTeaser = ({
2004
- company,
2005
- year,
2006
- title,
2007
- checks,
2008
- onClick,
2009
- buttonName,
2010
- svg,
2011
- cardImageSrc,
2012
- separator
2013
- }) => {
2014
- return React.createElement(CardBackgroundColor, null, React.createElement(CardContainer, null, React.createElement(LeftCardContainer, null, React.createElement(HeadingCompanyDate, null, company, " \u2022 ", year), React.createElement(HeadingTitle, null, title), separator && React.createElement(Separator, null), React.createElement(List, null, checks === null || checks === void 0 ? void 0 : checks.map((check, index) => React.createElement(ListItem, {
2015
- key: index
2016
- }, svg && React.createElement(IconCard, {
2017
- svg: svg
2018
- }), React.createElement(TextListItem, null, check)))), React.createElement(ButtonCardContainer, null, React.createElement(ButtonCard, {
2019
- onClick: onClick
2020
- }, buttonName))), React.createElement(ImageContainer, null, React.createElement(Image, {
2021
- src: cardImageSrc,
2022
- alt: "Experience"
2023
- }))));
929
+ const CardTeaser = ({ company, year, title, checks, onClick, buttonName, svg, cardImageSrc, separator }) => {
930
+ return (React.createElement(CardBackgroundColor, null,
931
+ React.createElement(CardContainer, null,
932
+ React.createElement(LeftCardContainer, null,
933
+ React.createElement(HeadingCompanyDate, null,
934
+ company,
935
+ " \u2022 ",
936
+ year),
937
+ React.createElement(HeadingTitle, null, title),
938
+ separator && React.createElement(Separator, null),
939
+ React.createElement(List, null, checks === null || checks === void 0 ? void 0 : checks.map((check, index) => (React.createElement(ListItem, { key: index },
940
+ svg && React.createElement(IconCard, { svg: svg }),
941
+ React.createElement(TextListItem, null, check))))),
942
+ React.createElement(ButtonCardContainer, null,
943
+ React.createElement(ButtonCard, { onClick: onClick }, buttonName))),
944
+ React.createElement(ImageContainer, null,
945
+ React.createElement(Image, { src: cardImageSrc, alt: "Experience" })))));
2024
946
  };
2025
- _c$3 = CardTeaser;
2026
- var _c$3;
2027
- $RefreshReg$(_c$3, "CardTeaser");
2028
- if (import.meta.hot && !inWebWorker$3) {
2029
- window.$RefreshReg$ = prevRefreshReg$3;
2030
- window.$RefreshSig$ = prevRefreshSig$3;
2031
- }
2032
- if (import.meta.hot && !inWebWorker$3) {
2033
- exports.__hmr_import(import.meta.url).then((currentExports) => {
2034
- exports.registerExportsForReactRefresh("/Users/alexis/Desktop/manamerge/mana-atomic-ui/src/components/Molecules/CardTeaser/CardTeaser.tsx", currentExports);
2035
- import.meta.hot.accept((nextExports) => {
2036
- if (!nextExports) return;
2037
- const invalidateMessage = exports.validateRefreshBoundaryAndEnqueueUpdate("/Users/alexis/Desktop/manamerge/mana-atomic-ui/src/components/Molecules/CardTeaser/CardTeaser.tsx", currentExports, nextExports);
2038
- if (invalidateMessage) import.meta.hot.invalidate(invalidateMessage);
2039
- });
2040
- });
2041
- }
2042
947
 
2043
948
  const scroll = keyframes `
2044
949
  0% {
@@ -2133,87 +1038,42 @@ const TextBreakerTape = styled(Text).attrs(({ theme }) => {
2133
1038
  }}
2134
1039
  `;
2135
1040
 
2136
- const inWebWorker$2 = typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope;let prevRefreshReg$2;let prevRefreshSig$2;if (import.meta.hot && !inWebWorker$2) { if (!window.__vite_plugin_react_preamble_installed__) { throw new Error( "@vitejs/plugin-react can't detect preamble. Something is wrong. " + "See https://github.com/vitejs/vite-plugin-react/pull/11#discussion_r430879201" ); } prevRefreshReg$2 = window.$RefreshReg$; prevRefreshSig$2 = window.$RefreshSig$; window.$RefreshReg$ = (type, id) => { exports.register(type, "/Users/alexis/Desktop/manamerge/mana-atomic-ui/src/components/Molecules/BreakerTape/BreakerTape.tsx" + " " + id); }; window.$RefreshSig$ = exports.createSignatureFunctionForTransform;}const BreakerTape = ({
2137
- words,
2138
- svg
2139
- }) => {
2140
- // Duplicate words to ensure continuous flow
2141
- const repeatedWords = Array.from({
2142
- length: Math.ceil(50 / words.length)
2143
- }, () => words).flat();
2144
- return React.createElement(TapeContainer, null, React.createElement(FadeOverlay, null, React.createElement(TapeContent, null, repeatedWords.map((word, index) => React.createElement(React.Fragment, null, svg && React.createElement(IconBreakerTape, {
2145
- svg: svg
2146
- }), React.createElement(TextBreakerTape, {
2147
- key: index
2148
- }, word))))));
1041
+ const BreakerTape = ({ words, svg }) => {
1042
+ // Duplicate words to ensure continuous flow
1043
+ const repeatedWords = Array.from({ length: Math.ceil(50 / words.length) }, () => words).flat();
1044
+ return (React.createElement(TapeContainer, null,
1045
+ React.createElement(FadeOverlay, null,
1046
+ React.createElement(TapeContent, null, repeatedWords.map((word, index) => (React.createElement(React.Fragment, null,
1047
+ svg && React.createElement(IconBreakerTape, { svg: svg }),
1048
+ React.createElement(TextBreakerTape, { key: index }, word))))))));
2149
1049
  };
2150
- _c$2 = BreakerTape;
2151
- var _c$2;
2152
- $RefreshReg$(_c$2, "BreakerTape");
2153
- if (import.meta.hot && !inWebWorker$2) {
2154
- window.$RefreshReg$ = prevRefreshReg$2;
2155
- window.$RefreshSig$ = prevRefreshSig$2;
2156
- }
2157
- if (import.meta.hot && !inWebWorker$2) {
2158
- exports.__hmr_import(import.meta.url).then((currentExports) => {
2159
- exports.registerExportsForReactRefresh("/Users/alexis/Desktop/manamerge/mana-atomic-ui/src/components/Molecules/BreakerTape/BreakerTape.tsx", currentExports);
2160
- import.meta.hot.accept((nextExports) => {
2161
- if (!nextExports) return;
2162
- const invalidateMessage = exports.validateRefreshBoundaryAndEnqueueUpdate("/Users/alexis/Desktop/manamerge/mana-atomic-ui/src/components/Molecules/BreakerTape/BreakerTape.tsx", currentExports, nextExports);
2163
- if (invalidateMessage) import.meta.hot.invalidate(invalidateMessage);
2164
- });
2165
- });
2166
- }
2167
1050
 
2168
1051
  const Card$1 = styled.div `
2169
1052
  ${(_a) => {
2170
- var _b, _c, _d, _e, _f, _g;
2171
1053
  var { theme } = _a, props = __rest(_a, ["theme"]);
2172
1054
  const thisTheme = (theme === null || theme === void 0 ? void 0 : theme.cardSimpleRender) || {};
2173
- const propsStyling = (props === null || props === void 0 ? void 0 : props.styling) || {};
2174
1055
  return css `
2175
1056
  display: flex;
2176
- flex-direction: ${(propsStyling === null || propsStyling === void 0 ? void 0 : propsStyling.flexDirection) ||
1057
+ flex-direction: ${props.flexDirection ||
2177
1058
  (thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.flexDirection) ||
2178
1059
  "column"};
2179
- justify-content: ${(propsStyling === null || propsStyling === void 0 ? void 0 : propsStyling.justifyContent) ||
1060
+ justify-content: ${props.justifyContent ||
2180
1061
  (thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.justifyContent) ||
2181
1062
  "space-between"};
2182
- gap: ${(propsStyling === null || propsStyling === void 0 ? void 0 : propsStyling.gap) || (thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.gap) || "20px"};
1063
+ gap: ${props.gap || (thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.gap) || "20px"};
2183
1064
  align-items: flex-start;
2184
- background: ${(propsStyling === null || propsStyling === void 0 ? void 0 : propsStyling.background) ||
2185
- (thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.background) ||
2186
- ""};
2187
- background-image: ${(propsStyling === null || propsStyling === void 0 ? void 0 : propsStyling.gradientBackground) ||
1065
+ background: ${props.background || (thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.background) || ""};
1066
+ background-image: ${props.gradientBackground ||
2188
1067
  thisTheme.gradientBackground ||
2189
1068
  ""};
2190
- border: ${(propsStyling === null || propsStyling === void 0 ? void 0 : propsStyling.border) || (thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.border) || ""};
2191
- border-radius: ${(propsStyling === null || propsStyling === void 0 ? void 0 : propsStyling.borderRadius) ||
1069
+ border: ${props.border || (thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.border) || ""};
1070
+ border-radius: ${props.borderRadius ||
2192
1071
  (thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.borderRadius) ||
2193
1072
  ""};
2194
- box-shadow: ${(propsStyling === null || propsStyling === void 0 ? void 0 : propsStyling.boxShadow) ||
2195
- (thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.boxShadow) ||
2196
- ""};
2197
- padding: ${(propsStyling === null || propsStyling === void 0 ? void 0 : propsStyling.padding) || (thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.padding) || ""};
2198
- height: ${(propsStyling === null || propsStyling === void 0 ? void 0 : propsStyling.height) || (thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.height) || "auto"};
2199
- max-width: ${(propsStyling === null || propsStyling === void 0 ? void 0 : propsStyling.maxWidth) ||
2200
- (thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.maxWidth) ||
2201
- "auto"};
2202
- ${props.cardHover &&
2203
- css `
2204
- &:hover {
2205
- cursor: pointer;
2206
- border: ${((_b = propsStyling === null || propsStyling === void 0 ? void 0 : propsStyling.hover) === null || _b === void 0 ? void 0 : _b.border) ||
2207
- ((_c = thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.hover) === null || _c === void 0 ? void 0 : _c.border) ||
2208
- ""};
2209
- box-shadow: ${((_d = propsStyling === null || propsStyling === void 0 ? void 0 : propsStyling.hover) === null || _d === void 0 ? void 0 : _d.boxShadow) ||
2210
- ((_e = thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.hover) === null || _e === void 0 ? void 0 : _e.boxShadow) ||
2211
- ""};
2212
- transition: ${((_f = propsStyling === null || propsStyling === void 0 ? void 0 : propsStyling.hover) === null || _f === void 0 ? void 0 : _f.transition) ||
2213
- ((_g = thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.hover) === null || _g === void 0 ? void 0 : _g.transition) ||
2214
- ""};
2215
- }
2216
- `}
1073
+ box-shadow: ${props.boxShadow || (thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.boxShadow) || ""};
1074
+ padding: ${props.padding || (thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.padding) || ""};
1075
+ height: ${props.height || (thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.height) || "auto"};
1076
+ max-width: ${props.maxWidth || (thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.maxWidth) || "auto"};
2217
1077
  `;
2218
1078
  }}
2219
1079
  `;
@@ -2244,40 +1104,15 @@ const AtomText$1 = styled(Text).attrs(({ theme }) => {
2244
1104
  });
2245
1105
  }) ``;
2246
1106
 
2247
- const inWebWorker$1 = typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope;let prevRefreshReg$1;let prevRefreshSig$1;if (import.meta.hot && !inWebWorker$1) { if (!window.__vite_plugin_react_preamble_installed__) { throw new Error( "@vitejs/plugin-react can't detect preamble. Something is wrong. " + "See https://github.com/vitejs/vite-plugin-react/pull/11#discussion_r430879201" ); } prevRefreshReg$1 = window.$RefreshReg$; prevRefreshSig$1 = window.$RefreshSig$; window.$RefreshReg$ = (type, id) => { exports.register(type, "/Users/alexis/Desktop/manamerge/mana-atomic-ui/src/components/Molecules/CardSimpleRender/CardSimpleRender.tsx" + " " + id); }; window.$RefreshSig$ = exports.createSignatureFunctionForTransform;}const CardSimpleRender = ({
2248
- icon,
2249
- title,
2250
- description,
2251
- children,
2252
- cardClick,
2253
- styling
2254
- }) => {
2255
- const cardHover = cardClick ? true : false;
2256
- return React.createElement(Card$1, {
2257
- onClick: cardClick,
2258
- cardHover: cardHover,
2259
- styling: styling
2260
- }, React.createElement("div", null, React.createElement(WrapperLine, null, icon && React.createElement(AtomIcon$1, {
2261
- svg: icon
2262
- }), React.createElement(AtomHeading$1, null, title)), React.createElement(AtomText$1, null, description)), children);
1107
+ const CardSimpleRender = ({ icon, title, description, children }) => {
1108
+ return (React.createElement(Card$1, null,
1109
+ React.createElement("div", null,
1110
+ React.createElement(WrapperLine, null,
1111
+ icon && React.createElement(AtomIcon$1, { svg: icon }),
1112
+ React.createElement(AtomHeading$1, null, title)),
1113
+ React.createElement(AtomText$1, null, description)),
1114
+ children));
2263
1115
  };
2264
- _c$1 = CardSimpleRender;
2265
- var _c$1;
2266
- $RefreshReg$(_c$1, "CardSimpleRender");
2267
- if (import.meta.hot && !inWebWorker$1) {
2268
- window.$RefreshReg$ = prevRefreshReg$1;
2269
- window.$RefreshSig$ = prevRefreshSig$1;
2270
- }
2271
- if (import.meta.hot && !inWebWorker$1) {
2272
- exports.__hmr_import(import.meta.url).then((currentExports) => {
2273
- exports.registerExportsForReactRefresh("/Users/alexis/Desktop/manamerge/mana-atomic-ui/src/components/Molecules/CardSimpleRender/CardSimpleRender.tsx", currentExports);
2274
- import.meta.hot.accept((nextExports) => {
2275
- if (!nextExports) return;
2276
- const invalidateMessage = exports.validateRefreshBoundaryAndEnqueueUpdate("/Users/alexis/Desktop/manamerge/mana-atomic-ui/src/components/Molecules/CardSimpleRender/CardSimpleRender.tsx", currentExports, nextExports);
2277
- if (invalidateMessage) import.meta.hot.invalidate(invalidateMessage);
2278
- });
2279
- });
2280
- }
2281
1116
 
2282
1117
  const Card = styled.div `
2283
1118
  ${(_a) => {
@@ -2336,36 +1171,15 @@ const AtomIcon = styled(Icon).attrs(({ theme }) => {
2336
1171
  });
2337
1172
  }) ``;
2338
1173
 
2339
- const inWebWorker = typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope;let prevRefreshReg;let prevRefreshSig;if (import.meta.hot && !inWebWorker) { if (!window.__vite_plugin_react_preamble_installed__) { throw new Error( "@vitejs/plugin-react can't detect preamble. Something is wrong. " + "See https://github.com/vitejs/vite-plugin-react/pull/11#discussion_r430879201" ); } prevRefreshReg = window.$RefreshReg$; prevRefreshSig = window.$RefreshSig$; window.$RefreshReg$ = (type, id) => { exports.register(type, "/Users/alexis/Desktop/manamerge/mana-atomic-ui/src/components/Molecules/CardBanner/CardBanner.tsx" + " " + id); }; window.$RefreshSig$ = exports.createSignatureFunctionForTransform;}const CardBanner = ({
2340
- icon,
2341
- title,
2342
- description,
2343
- buttonText,
2344
- buttonClick
2345
- }) => {
2346
- return React.createElement(Card, null, React.createElement("div", null, React.createElement(AtomHeading, null, title), React.createElement(AtomText, null, description)), buttonClick && React.createElement(AtomButton, {
2347
- onClick: buttonClick
2348
- }, React.createElement(AtomTextButton, null, buttonText), icon && React.createElement(AtomIcon, {
2349
- svg: icon
2350
- })));
1174
+ const CardBanner = ({ icon, title, description, buttonText, buttonClick }) => {
1175
+ return (React.createElement(Card, null,
1176
+ React.createElement("div", null,
1177
+ React.createElement(AtomHeading, null, title),
1178
+ React.createElement(AtomText, null, description)),
1179
+ buttonClick && (React.createElement(AtomButton, { onClick: buttonClick },
1180
+ React.createElement(AtomTextButton, null, buttonText),
1181
+ icon && React.createElement(AtomIcon, { svg: icon })))));
2351
1182
  };
2352
- _c = CardBanner;
2353
- var _c;
2354
- $RefreshReg$(_c, "CardBanner");
2355
- if (import.meta.hot && !inWebWorker) {
2356
- window.$RefreshReg$ = prevRefreshReg;
2357
- window.$RefreshSig$ = prevRefreshSig;
2358
- }
2359
- if (import.meta.hot && !inWebWorker) {
2360
- exports.__hmr_import(import.meta.url).then((currentExports) => {
2361
- exports.registerExportsForReactRefresh("/Users/alexis/Desktop/manamerge/mana-atomic-ui/src/components/Molecules/CardBanner/CardBanner.tsx", currentExports);
2362
- import.meta.hot.accept((nextExports) => {
2363
- if (!nextExports) return;
2364
- const invalidateMessage = exports.validateRefreshBoundaryAndEnqueueUpdate("/Users/alexis/Desktop/manamerge/mana-atomic-ui/src/components/Molecules/CardBanner/CardBanner.tsx", currentExports, nextExports);
2365
- if (invalidateMessage) import.meta.hot.invalidate(invalidateMessage);
2366
- });
2367
- });
2368
- }
2369
1183
 
2370
1184
  export { BreakerTape, Button, CardBanner, CardSimpleRender, CardTeaser, Footer, Header, Heading, Icon, Link, Navigation, Text };
2371
1185
  //# sourceMappingURL=index.js.map