@manamerge/mana-atomic-ui 0.0.75 → 0.0.76
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/dist/index.d.ts +7 -5
- package/dist/index.js +1448 -129
- package/dist/index.js.map +1 -1
- package/dist/themes/themes/Manamerge.ts +4 -0
- package/dist/themes/themes/manamerge/molecules/cardBanner.ts +26 -0
- package/dist/themes/themes/manamerge/molecules/cardSimpleRender.ts +29 -0
- package/dist/types/.storybook/preview.d.ts +14 -0
- package/dist/types/components/Molecules/CardSimpleRender/CardSimpleRender.css.d.ts +18 -0
- package/dist/types/components/Molecules/CardSimpleRender/CardSimpleRender.d.ts +8 -0
- package/dist/types/components/Molecules/CardSimpleRender/CardSimpleRender.stories.d.ts +6 -0
- package/dist/types/components/index.d.ts +1 -1
- package/dist/types/src/components/Atoms/Button/Button.css.d.ts +37 -0
- package/dist/types/src/components/Atoms/Button/Button.d.ts +34 -0
- package/dist/types/src/components/Atoms/Button/Button.stories.d.ts +7 -0
- package/dist/types/src/components/Atoms/Heading/Heading.css.d.ts +3 -0
- package/dist/types/src/components/Atoms/Heading/Heading.d.ts +17 -0
- package/dist/types/src/components/Atoms/Heading/Heading.stories.d.ts +12 -0
- package/dist/types/src/components/Atoms/Icon/Icon.css.d.ts +9 -0
- package/dist/types/src/components/Atoms/Icon/Icon.d.ts +15 -0
- package/dist/types/src/components/Atoms/Icon/Icon.stories.d.ts +9 -0
- package/dist/types/src/components/Atoms/Link/Link.css.d.ts +3 -0
- package/dist/types/src/components/Atoms/Link/Link.d.ts +14 -0
- package/dist/types/src/components/Atoms/Link/Link.stories.d.ts +11 -0
- package/dist/types/src/components/Atoms/Text/Text.css.d.ts +4 -0
- package/dist/types/src/components/Atoms/Text/Text.d.ts +14 -0
- package/dist/types/src/components/Atoms/Text/Text.stories.d.ts +11 -0
- package/dist/types/src/components/Molecules/CardBanner/CardBanner.css.d.ts +18 -0
- package/dist/types/src/components/Molecules/CardBanner/CardBanner.d.ts +9 -0
- package/dist/types/src/components/Molecules/CardBanner/CardBanner.stories.d.ts +6 -0
- package/dist/types/src/components/Molecules/CardSimpleRender/BlobToReactComponent.d.ts +5 -0
- package/dist/types/src/components/Molecules/CardSimpleRender/CardSimpleRender.css.d.ts +10 -0
- package/dist/types/src/components/Molecules/CardSimpleRender/CardSimpleRender.d.ts +29 -0
- package/dist/types/src/components/Molecules/CardSimpleRender/CardSimpleRender.stories copy 2.d.ts +7 -0
- package/dist/types/src/components/Molecules/CardSimpleRender/CardSimpleRender.stories copy 3.d.ts +6 -0
- package/dist/types/src/components/Molecules/CardSimpleRender/CardSimpleRender.stories copy 4.d.ts +6 -0
- package/dist/types/src/components/Molecules/CardSimpleRender/CardSimpleRender.stories copy 5.d.ts +6 -0
- package/dist/types/src/components/Molecules/CardSimpleRender/CardSimpleRender.stories copy.d.ts +7 -0
- package/dist/types/src/components/Molecules/CardSimpleRender/CardSimpleRender.stories.d.ts +7 -0
- package/dist/types/src/components/Molecules/CardTeaser/CardTeaser.css.d.ts +15 -0
- package/dist/types/src/components/Molecules/CardTeaser/CardTeaser.d.ts +13 -0
- package/dist/types/src/components/Molecules/CardTeaser/CardTeaser.stories.d.ts +6 -0
- package/dist/types/src/components/Molecules/Footer/Footer.css.d.ts +6 -0
- package/dist/types/src/components/Molecules/Footer/Footer.d.ts +15 -0
- package/dist/types/src/components/Molecules/Footer/Footer.stories.d.ts +6 -0
- package/dist/types/src/components/Molecules/Header/Header.css.d.ts +15 -0
- package/dist/types/src/components/Molecules/Header/Header.d.ts +15 -0
- package/dist/types/src/components/Molecules/Header/Header.stories.d.ts +6 -0
- package/dist/types/src/components/Molecules/Navigation/Navigation.css.d.ts +10 -0
- package/dist/types/src/components/Molecules/Navigation/Navigation.d.ts +10 -0
- package/dist/types/src/components/Molecules/Navigation/Navigation.stories.d.ts +6 -0
- package/dist/types/src/components/index.d.ts +12 -0
- package/dist/types/src/index.d.ts +1 -0
- package/dist/types/src/themes/Manamerge.d.ts +1374 -0
- package/dist/types/src/themes/manamerge/atoms/button.d.ts +101 -0
- package/dist/types/src/themes/manamerge/atoms/checkbox.d.ts +71 -0
- package/dist/types/src/themes/manamerge/atoms/heading.d.ts +141 -0
- package/dist/types/src/themes/manamerge/atoms/icon.d.ts +30 -0
- package/dist/types/src/themes/manamerge/atoms/link.d.ts +78 -0
- package/dist/types/src/themes/manamerge/atoms/text.d.ts +38 -0
- package/dist/types/src/themes/manamerge/miscellaneous/breakpoints.d.ts +13 -0
- package/dist/types/src/themes/manamerge/molecules/cardBanner.d.ts +24 -0
- package/dist/types/src/themes/manamerge/molecules/cardSimpleRender.d.ts +27 -0
- package/dist/types/src/themes/manamerge/molecules/cardTeaser.d.ts +76 -0
- package/dist/types/src/themes/manamerge/molecules/footer.d.ts +19 -0
- package/dist/types/src/themes/manamerge/molecules/header.d.ts +48 -0
- package/dist/types/src/themes/manamerge/molecules/navigation.d.ts +36 -0
- package/dist/types/themes/Manamerge.d.ts +34 -21
- package/dist/types/themes/manamerge/molecules/cardSimpleRender.d.ts +41 -0
- package/dist/types/themes/manamerge/molecules/cardTeaser.d.ts +1 -1
- package/dist/types/vite.config.d.ts +2 -0
- package/package.json +10 -3
- /package/dist/types/{components → src/components}/Molecules/BreakerTape/BreakerTape.css.d.ts +0 -0
- /package/dist/types/{components → src/components}/Molecules/BreakerTape/BreakerTape.d.ts +0 -0
- /package/dist/types/{components → src/components}/Molecules/BreakerTape/BreakerTape.stories.d.ts +0 -0
- /package/dist/types/{themes → src/themes}/manamerge/molecules/breakerTape.d.ts +0 -0
package/dist/index.js
CHANGED
|
@@ -3,6 +3,748 @@ 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
|
+
|
|
6
748
|
/******************************************************************************
|
|
7
749
|
Copyright (c) Microsoft Corporation.
|
|
8
750
|
|
|
@@ -145,24 +887,112 @@ const ImgStyle = styled.svg `
|
|
|
145
887
|
height: 1em;
|
|
146
888
|
`;
|
|
147
889
|
|
|
148
|
-
const
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
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
|
+
}
|
|
153
961
|
}
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
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);
|
|
165
978
|
};
|
|
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
|
+
}
|
|
166
996
|
|
|
167
997
|
const TextContainer = styled.p `
|
|
168
998
|
${(_a) => {
|
|
@@ -197,14 +1027,54 @@ const TextContainerLabel = styled.label `
|
|
|
197
1027
|
}};
|
|
198
1028
|
`;
|
|
199
1029
|
|
|
200
|
-
const
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
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);
|
|
207
1060
|
};
|
|
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
|
+
}
|
|
208
1078
|
|
|
209
1079
|
const HeadingContainer = styled.h1 `
|
|
210
1080
|
${({ variant = "h1", theme, margin, fontSize, fontWeight, lineHeight, color }) => {
|
|
@@ -238,10 +1108,45 @@ const HeadingContainer = styled.h1 `
|
|
|
238
1108
|
}}
|
|
239
1109
|
`;
|
|
240
1110
|
|
|
241
|
-
const
|
|
242
|
-
|
|
243
|
-
|
|
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);
|
|
244
1132
|
};
|
|
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
|
+
}
|
|
245
1150
|
|
|
246
1151
|
const StyledSvg = styled.svg `
|
|
247
1152
|
${(_a) => {
|
|
@@ -263,14 +1168,57 @@ const StyledSvg = styled.svg `
|
|
|
263
1168
|
}}
|
|
264
1169
|
`;
|
|
265
1170
|
|
|
266
|
-
const
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
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));
|
|
273
1204
|
};
|
|
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
|
+
}
|
|
274
1222
|
|
|
275
1223
|
const StyledLink$2 = styled.a `
|
|
276
1224
|
${({ variant = "regular", theme, underline, hoverUnderline, color, hoverColor, fontSize, lineHeight, fontWeight }) => {
|
|
@@ -308,23 +1256,59 @@ const StyledLink$2 = styled.a `
|
|
|
308
1256
|
}};
|
|
309
1257
|
`;
|
|
310
1258
|
|
|
311
|
-
const
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
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);
|
|
327
1294
|
};
|
|
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
|
+
}
|
|
328
1312
|
|
|
329
1313
|
const WrapperBackground = styled.div `
|
|
330
1314
|
position: relative;
|
|
@@ -419,7 +1403,7 @@ const AtomIconDot = styled(Icon).attrs(({ theme }) => {
|
|
|
419
1403
|
`;
|
|
420
1404
|
}}
|
|
421
1405
|
`;
|
|
422
|
-
const AtomHeading = styled(Heading).attrs(({ theme }) => {
|
|
1406
|
+
const AtomHeading$2 = styled(Heading).attrs(({ theme }) => {
|
|
423
1407
|
var _a, _b;
|
|
424
1408
|
return ({
|
|
425
1409
|
variant: ((_b = (_a = theme === null || theme === void 0 ? void 0 : theme.header) === null || _a === void 0 ? void 0 : _a.atomHeading) === null || _b === void 0 ? void 0 : _b.variant) || "h1"
|
|
@@ -475,24 +1459,52 @@ const AtomIconRight = styled(Icon).attrs(({ theme }) => {
|
|
|
475
1459
|
});
|
|
476
1460
|
}) ``;
|
|
477
1461
|
|
|
478
|
-
const
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
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
|
+
})))));
|
|
495
1490
|
};
|
|
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
|
+
}
|
|
496
1508
|
|
|
497
1509
|
const NavBar = styled.nav `
|
|
498
1510
|
${({ theme }) => {
|
|
@@ -579,28 +1591,63 @@ const StyledLink$1 = styled(Link).attrs(({ theme }) => {
|
|
|
579
1591
|
}};
|
|
580
1592
|
`;
|
|
581
1593
|
|
|
582
|
-
const
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
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"));
|
|
603
1630
|
};
|
|
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
|
+
}
|
|
604
1651
|
|
|
605
1652
|
// Wrapper for the footer
|
|
606
1653
|
const FooterWrapper = styled.footer `
|
|
@@ -699,22 +1746,49 @@ const FooterChildren = styled(Text).attrs(({ theme }) => {
|
|
|
699
1746
|
}}
|
|
700
1747
|
`;
|
|
701
1748
|
|
|
702
|
-
const
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
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)));
|
|
717
1773
|
};
|
|
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
|
+
}
|
|
718
1792
|
|
|
719
1793
|
const CardContainer = styled.div `
|
|
720
1794
|
overflow: hidden;
|
|
@@ -926,24 +2000,45 @@ const CardBackgroundColor = styled.div `
|
|
|
926
2000
|
}}
|
|
927
2001
|
`;
|
|
928
2002
|
|
|
929
|
-
const
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
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
|
+
}))));
|
|
946
2024
|
};
|
|
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
|
+
}
|
|
947
2042
|
|
|
948
2043
|
const scroll = keyframes `
|
|
949
2044
|
0% {
|
|
@@ -1038,15 +2133,239 @@ const TextBreakerTape = styled(Text).attrs(({ theme }) => {
|
|
|
1038
2133
|
}}
|
|
1039
2134
|
`;
|
|
1040
2135
|
|
|
1041
|
-
const
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
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))))));
|
|
2149
|
+
};
|
|
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
|
+
|
|
2168
|
+
const Card$1 = styled.div `
|
|
2169
|
+
${(_a) => {
|
|
2170
|
+
var _b, _c, _d, _e, _f, _g;
|
|
2171
|
+
var { theme } = _a, props = __rest(_a, ["theme"]);
|
|
2172
|
+
const thisTheme = (theme === null || theme === void 0 ? void 0 : theme.cardSimpleRender) || {};
|
|
2173
|
+
const propsStyling = (props === null || props === void 0 ? void 0 : props.styling) || {};
|
|
2174
|
+
return css `
|
|
2175
|
+
display: flex;
|
|
2176
|
+
flex-direction: ${(propsStyling === null || propsStyling === void 0 ? void 0 : propsStyling.flexDirection) ||
|
|
2177
|
+
(thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.flexDirection) ||
|
|
2178
|
+
"column"};
|
|
2179
|
+
justify-content: ${(propsStyling === null || propsStyling === void 0 ? void 0 : propsStyling.justifyContent) ||
|
|
2180
|
+
(thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.justifyContent) ||
|
|
2181
|
+
"space-between"};
|
|
2182
|
+
gap: ${(propsStyling === null || propsStyling === void 0 ? void 0 : propsStyling.gap) || (thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.gap) || "20px"};
|
|
2183
|
+
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) ||
|
|
2188
|
+
thisTheme.gradientBackground ||
|
|
2189
|
+
""};
|
|
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) ||
|
|
2192
|
+
(thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.borderRadius) ||
|
|
2193
|
+
""};
|
|
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
|
+
`}
|
|
2217
|
+
`;
|
|
2218
|
+
}}
|
|
2219
|
+
`;
|
|
2220
|
+
const WrapperLine = styled.div `
|
|
2221
|
+
display: flex;
|
|
2222
|
+
align-items: center;
|
|
2223
|
+
justify-content: center;
|
|
2224
|
+
width: fit-content;
|
|
2225
|
+
text-align: center;
|
|
2226
|
+
gap: 10px;
|
|
2227
|
+
`;
|
|
2228
|
+
const AtomIcon$1 = styled(Icon).attrs(({ theme }) => {
|
|
2229
|
+
var _a, _b;
|
|
2230
|
+
return ({
|
|
2231
|
+
variant: ((_b = (_a = theme === null || theme === void 0 ? void 0 : theme.cardSimpleRender) === null || _a === void 0 ? void 0 : _a.atomIcon) === null || _b === void 0 ? void 0 : _b.variant) || "medium"
|
|
2232
|
+
});
|
|
2233
|
+
}) ``;
|
|
2234
|
+
const AtomHeading$1 = styled(Heading).attrs(({ theme }) => {
|
|
2235
|
+
var _a, _b;
|
|
2236
|
+
return ({
|
|
2237
|
+
variant: ((_b = (_a = theme === null || theme === void 0 ? void 0 : theme.cardSimpleRender) === null || _a === void 0 ? void 0 : _a.atomHeading) === null || _b === void 0 ? void 0 : _b.variant) || "h3"
|
|
2238
|
+
});
|
|
2239
|
+
}) ``;
|
|
2240
|
+
const AtomText$1 = styled(Text).attrs(({ theme }) => {
|
|
2241
|
+
var _a, _b;
|
|
2242
|
+
return ({
|
|
2243
|
+
variant: ((_b = (_a = theme === null || theme === void 0 ? void 0 : theme.cardSimpleRender) === null || _a === void 0 ? void 0 : _a.atomText) === null || _b === void 0 ? void 0 : _b.variant) || "regular"
|
|
2244
|
+
});
|
|
2245
|
+
}) ``;
|
|
2246
|
+
|
|
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);
|
|
2263
|
+
};
|
|
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
|
+
|
|
2282
|
+
const Card = styled.div `
|
|
2283
|
+
${(_a) => {
|
|
2284
|
+
var { theme } = _a, props = __rest(_a, ["theme"]);
|
|
2285
|
+
const thisTheme = (theme === null || theme === void 0 ? void 0 : theme.cardBanner) || {};
|
|
2286
|
+
return css `
|
|
2287
|
+
display: flex;
|
|
2288
|
+
flex-direction: ${props.flexDirection ||
|
|
2289
|
+
(thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.flexDirection) ||
|
|
2290
|
+
"row"};
|
|
2291
|
+
justify-content: ${props.justifyContent ||
|
|
2292
|
+
(thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.justifyContent) ||
|
|
2293
|
+
"space-between"};
|
|
2294
|
+
gap: ${props.gap || (thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.gap) || "20px"};
|
|
2295
|
+
align-items: center;
|
|
2296
|
+
background: ${props.background || (thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.background) || ""};
|
|
2297
|
+
border: ${props.border || (thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.border) || ""};
|
|
2298
|
+
border-radius: ${props.borderRadius ||
|
|
2299
|
+
(thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.borderRadius) ||
|
|
2300
|
+
""};
|
|
2301
|
+
box-shadow: ${props.boxShadow || (thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.boxShadow) || ""};
|
|
2302
|
+
padding: ${props.padding || (thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.padding) || ""};
|
|
2303
|
+
height: ${props.height || (thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.height) || "auto"};
|
|
2304
|
+
max-width: ${props.maxWidth || (thisTheme === null || thisTheme === void 0 ? void 0 : thisTheme.maxWidth) || "auto"};
|
|
2305
|
+
`;
|
|
2306
|
+
}}
|
|
2307
|
+
`;
|
|
2308
|
+
const AtomHeading = styled(Heading).attrs(({ theme }) => {
|
|
2309
|
+
var _a, _b;
|
|
2310
|
+
return ({
|
|
2311
|
+
variant: ((_b = (_a = theme === null || theme === void 0 ? void 0 : theme.cardBanner) === null || _a === void 0 ? void 0 : _a.atomHeading) === null || _b === void 0 ? void 0 : _b.variant) || "h3"
|
|
2312
|
+
});
|
|
2313
|
+
}) ``;
|
|
2314
|
+
const AtomText = styled(Text).attrs(({ theme }) => {
|
|
2315
|
+
var _a, _b;
|
|
2316
|
+
return ({
|
|
2317
|
+
variant: ((_b = (_a = theme === null || theme === void 0 ? void 0 : theme.cardBanner) === null || _a === void 0 ? void 0 : _a.atomText) === null || _b === void 0 ? void 0 : _b.variant) || "regular"
|
|
2318
|
+
});
|
|
2319
|
+
}) ``;
|
|
2320
|
+
const AtomButton = styled(Button).attrs(({ theme }) => {
|
|
2321
|
+
var _a, _b;
|
|
2322
|
+
return ({
|
|
2323
|
+
variant: ((_b = (_a = theme === null || theme === void 0 ? void 0 : theme.cardBanner) === null || _a === void 0 ? void 0 : _a.atomButton) === null || _b === void 0 ? void 0 : _b.variant) || "primary"
|
|
2324
|
+
});
|
|
2325
|
+
}) ``;
|
|
2326
|
+
const AtomTextButton = styled(Text).attrs(({ theme }) => {
|
|
2327
|
+
var _a, _b;
|
|
2328
|
+
return ({
|
|
2329
|
+
variant: ((_b = (_a = theme === null || theme === void 0 ? void 0 : theme.cardBanner) === null || _a === void 0 ? void 0 : _a.atomTextButton) === null || _b === void 0 ? void 0 : _b.variant) || "primary"
|
|
2330
|
+
});
|
|
2331
|
+
}) ``;
|
|
2332
|
+
const AtomIcon = styled(Icon).attrs(({ theme }) => {
|
|
2333
|
+
var _a, _b;
|
|
2334
|
+
return ({
|
|
2335
|
+
variant: ((_b = (_a = theme === null || theme === void 0 ? void 0 : theme.cardBanner) === null || _a === void 0 ? void 0 : _a.atomIcon) === null || _b === void 0 ? void 0 : _b.variant) || "medium"
|
|
2336
|
+
});
|
|
2337
|
+
}) ``;
|
|
2338
|
+
|
|
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
|
+
})));
|
|
1049
2351
|
};
|
|
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
|
+
}
|
|
1050
2369
|
|
|
1051
|
-
export { BreakerTape, Button, CardTeaser, Footer, Header, Heading, Icon, Link, Navigation, Text };
|
|
2370
|
+
export { BreakerTape, Button, CardBanner, CardSimpleRender, CardTeaser, Footer, Header, Heading, Icon, Link, Navigation, Text };
|
|
1052
2371
|
//# sourceMappingURL=index.js.map
|