@ainias42/react-bootstrap-mobile 1.0.2 → 1.0.4
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/Components/ErrorBoundary.d.ts +18 -0
- package/dist/Components/Layout/View.d.ts +1 -1
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +257 -214
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
- package/src/Components/ErrorBoundary.tsx +46 -0
- package/src/index.ts +1 -0
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { Children, Component, Fragment, cloneElement, createContext, createElement, default as default_0, isValidElement, memo, useCallback, useContext, useEffect, useImperativeHandle, useLayoutEffect, useMemo, useReducer, useRef, useState } from "react";
|
|
1
2
|
import { ArrayHelper, JsonHelper, ObjectHelper, PromiseWithHandlers, Random } from "@ainias42/js-helper";
|
|
2
|
-
import { Children, Fragment, cloneElement, createContext, createElement, default as default_0, isValidElement, memo, useCallback, useContext, useEffect, useImperativeHandle, useLayoutEffect, useMemo, useReducer, useRef, useState } from "react";
|
|
3
3
|
import { default as default_1 } from "classnames";
|
|
4
4
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
5
5
|
import { faChevronDown, faChevronRight, faChevronUp, faCircleXmark, faEllipsisH, faEllipsisV, faEye, faEyeSlash, faFile, faPlus, faTimes, faTimesCircle } from "@fortawesome/free-solid-svg-icons";
|
|
@@ -56,20 +56,8 @@ class WrongChildError extends Error {
|
|
|
56
56
|
this.childValue = child;
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
;//
|
|
60
|
-
|
|
61
|
-
(function (Flavor) {
|
|
62
|
-
Flavor["Accent"] = "flavor-accent";
|
|
63
|
-
Flavor["Basic"] = "flavor-basic";
|
|
64
|
-
Flavor["Destructive"] = "flavor-destructive";
|
|
65
|
-
Flavor["Constructive"] = "flavor-constructive";
|
|
66
|
-
})(Flavor || (Flavor = {}));
|
|
67
|
-
;// ./src/helper/Characters.ts
|
|
68
|
-
const Characters = {
|
|
69
|
-
NBSP: '\u00A0',
|
|
70
|
-
PATH_DELIMITER: '/',
|
|
71
|
-
MIDDLE_DOT: '\u00B7'
|
|
72
|
-
};
|
|
59
|
+
;// external "react"
|
|
60
|
+
|
|
73
61
|
;// external "@ainias42/js-helper"
|
|
74
62
|
|
|
75
63
|
;// ./src/helper/memoComparator.ts
|
|
@@ -87,26 +75,6 @@ function memoComparator(prevProps, nextProps) {
|
|
|
87
75
|
return prevProps[key] === nextProps[key];
|
|
88
76
|
});
|
|
89
77
|
}
|
|
90
|
-
;// ./src/helper/nonEmptyString.ts
|
|
91
|
-
|
|
92
|
-
function nonEmptyString(str, other = Characters.NBSP) {
|
|
93
|
-
if (!str) {
|
|
94
|
-
return other;
|
|
95
|
-
}
|
|
96
|
-
return str;
|
|
97
|
-
}
|
|
98
|
-
;// external "react"
|
|
99
|
-
|
|
100
|
-
;// ./src/helper/useDeepShallow.ts
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
function useDeepShallow(selector, depth = -1) {
|
|
104
|
-
const prev = useRef(undefined);
|
|
105
|
-
return state => {
|
|
106
|
-
const next = selector(state);
|
|
107
|
-
return JsonHelper.deepEqual(prev.current, next, depth) ? prev.current : prev.current = next;
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
78
|
;// ./src/helper/withRestrictedChildren.tsx
|
|
111
79
|
var __rest = undefined && undefined.__rest || function (s, e) {
|
|
112
80
|
var t = {};
|
|
@@ -169,49 +137,6 @@ function withMemo(component, defaultAllowChildren) {
|
|
|
169
137
|
memoizedComponent.displayName = `Memoized(${component.displayName || component.name})`;
|
|
170
138
|
return memoizedComponent;
|
|
171
139
|
}
|
|
172
|
-
;// ./src/helper/withRenderBrowserOnly.tsx
|
|
173
|
-
var withRenderBrowserOnly_rest = undefined && undefined.__rest || function (s, e) {
|
|
174
|
-
var t = {};
|
|
175
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
176
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
177
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
178
|
-
}
|
|
179
|
-
return t;
|
|
180
|
-
};
|
|
181
|
-
|
|
182
|
-
function withRenderBrowserOnly(Component) {
|
|
183
|
-
const displayName = `WithRenderBrowserOnly(${Component.displayName || Component.name})`;
|
|
184
|
-
function HocComponent(_a, ref) {
|
|
185
|
-
var {
|
|
186
|
-
children
|
|
187
|
-
} = _a,
|
|
188
|
-
props = withRenderBrowserOnly_rest(_a, ["children"]);
|
|
189
|
-
const [isBrowser, setIsBrowser] = useState(false);
|
|
190
|
-
useEffect(() => setIsBrowser(true), []);
|
|
191
|
-
if (!isBrowser) {
|
|
192
|
-
return null;
|
|
193
|
-
}
|
|
194
|
-
const newProps = props;
|
|
195
|
-
if (ref && Object.keys(ref).length > 0) {
|
|
196
|
-
newProps.ref = ref;
|
|
197
|
-
}
|
|
198
|
-
return (
|
|
199
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
200
|
-
// @ts-ignore
|
|
201
|
-
default_0.createElement(Component, Object.assign({}, newProps), children)
|
|
202
|
-
);
|
|
203
|
-
}
|
|
204
|
-
HocComponent.displayName = displayName;
|
|
205
|
-
return HocComponent;
|
|
206
|
-
}
|
|
207
|
-
;// ./src/WindowContext/WindowContext.ts
|
|
208
|
-
|
|
209
|
-
const WindowContext = default_0.createContext(undefined);
|
|
210
|
-
WindowContext.displayName = 'WindowContext';
|
|
211
|
-
function useWindow() {
|
|
212
|
-
var _a;
|
|
213
|
-
return (_a = useContext(WindowContext)) !== null && _a !== void 0 ? _a : typeof window !== 'undefined' ? window : undefined;
|
|
214
|
-
}
|
|
215
140
|
;// ./src/Components/Layout/View.tsx
|
|
216
141
|
var View_rest = undefined && undefined.__rest || function (s, e) {
|
|
217
142
|
var t = {};
|
|
@@ -316,6 +241,258 @@ const Block = withMemo(function Block(_a) {
|
|
|
316
241
|
ref: ref
|
|
317
242
|
}, props), children);
|
|
318
243
|
});
|
|
244
|
+
;// ./src/Components/Layout/Inline.tsx
|
|
245
|
+
var Inline_rest = undefined && undefined.__rest || function (s, e) {
|
|
246
|
+
var t = {};
|
|
247
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
248
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
249
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
250
|
+
}
|
|
251
|
+
return t;
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
const Inline = withMemo(function Inline(_a) {
|
|
259
|
+
// Variables
|
|
260
|
+
var {
|
|
261
|
+
children,
|
|
262
|
+
as = 'span',
|
|
263
|
+
className
|
|
264
|
+
} = _a,
|
|
265
|
+
props = Inline_rest(_a, ["children", "as", "className"]);
|
|
266
|
+
// Refs
|
|
267
|
+
// States
|
|
268
|
+
// Selectors
|
|
269
|
+
// Callbacks
|
|
270
|
+
// Effects
|
|
271
|
+
// Other
|
|
272
|
+
// Render Functions
|
|
273
|
+
return createElement(ViewWithoutListeners, Object.assign({
|
|
274
|
+
className: default_1(layout_module.inline, className),
|
|
275
|
+
as: as
|
|
276
|
+
}, props), children);
|
|
277
|
+
});
|
|
278
|
+
;// ./src/Components/Text/text.module.scss
|
|
279
|
+
// extracted by mini-css-extract-plugin
|
|
280
|
+
/* harmony default export */ const text_module = ({"text":"text__ejS3o","block":"block__naLxK","heading":"heading__KU9xU","primaryDefault":"primaryDefault__Liz7y","primary":"primary__rEpob","secondary":"secondary__zUXeI","tertiary":"tertiary__UaTRx","xsmall":"xsmall__BCYOF","small":"small__AWNxX","medium":"medium__rHmhh","large":"large__ekCpY","xlarge":"xlarge__KP0mY","xxlarge":"xxlarge__Japom","emphasized":"emphasized__Gn24q"});
|
|
281
|
+
;// ./src/Components/Text/Text.tsx
|
|
282
|
+
var Text_rest = undefined && undefined.__rest || function (s, e) {
|
|
283
|
+
var t = {};
|
|
284
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
285
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
286
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
287
|
+
}
|
|
288
|
+
return t;
|
|
289
|
+
};
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
const TEXT_PRIO = {
|
|
296
|
+
primary: text_module.primary,
|
|
297
|
+
secondary: text_module.secondary,
|
|
298
|
+
tertiary: text_module.tertiary,
|
|
299
|
+
heading: text_module.heading
|
|
300
|
+
};
|
|
301
|
+
const TEXT_SIZE = {
|
|
302
|
+
xSmall: text_module.xsmall,
|
|
303
|
+
small: text_module.small,
|
|
304
|
+
medium: text_module.medium,
|
|
305
|
+
large: text_module.large,
|
|
306
|
+
xLarge: text_module.xlarge,
|
|
307
|
+
xxLarge: text_module.xxlarge
|
|
308
|
+
};
|
|
309
|
+
function Text(_a) {
|
|
310
|
+
var {
|
|
311
|
+
className,
|
|
312
|
+
children,
|
|
313
|
+
block = false,
|
|
314
|
+
prio,
|
|
315
|
+
emphasized = false,
|
|
316
|
+
size = TEXT_SIZE.medium,
|
|
317
|
+
as = 'span'
|
|
318
|
+
} = _a,
|
|
319
|
+
props = Text_rest(_a, ["className", "children", "block", "prio", "emphasized", "size", "as"]);
|
|
320
|
+
// Variables
|
|
321
|
+
prio = prio !== null && prio !== void 0 ? prio : text_module.primaryDefault;
|
|
322
|
+
// States
|
|
323
|
+
// Refs
|
|
324
|
+
// Callbacks
|
|
325
|
+
// Effects
|
|
326
|
+
// Other
|
|
327
|
+
Children.forEach(children, child => {
|
|
328
|
+
const type = typeof child;
|
|
329
|
+
if (type !== 'string' && type !== 'undefined' && type !== 'object' && type !== 'number' || type === 'object' && child !== null) {
|
|
330
|
+
throw new WrongChildError('string, number, undefined, null', type, child, 'Text');
|
|
331
|
+
}
|
|
332
|
+
});
|
|
333
|
+
// Render Functions
|
|
334
|
+
return createElement(Inline, Object.assign({
|
|
335
|
+
__allowChildren: "text",
|
|
336
|
+
as: as
|
|
337
|
+
}, props, {
|
|
338
|
+
className: default_1(text_module.text, {
|
|
339
|
+
[text_module.block]: block,
|
|
340
|
+
[text_module.emphasized]: emphasized
|
|
341
|
+
}, prio, size, className)
|
|
342
|
+
}), children);
|
|
343
|
+
}
|
|
344
|
+
const tmp = memo(Text);
|
|
345
|
+
|
|
346
|
+
;// ./src/Components/Text/heading.module.scss
|
|
347
|
+
// extracted by mini-css-extract-plugin
|
|
348
|
+
/* harmony default export */ const heading_module = ({"heading":"heading__oxEyT"});
|
|
349
|
+
;// ./src/Components/Text/Heading.tsx
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
function Heading({
|
|
356
|
+
children,
|
|
357
|
+
className,
|
|
358
|
+
style
|
|
359
|
+
}) {
|
|
360
|
+
// Variables
|
|
361
|
+
// Refs
|
|
362
|
+
// States
|
|
363
|
+
// Selectors
|
|
364
|
+
// Callbacks
|
|
365
|
+
// Effects
|
|
366
|
+
// Other
|
|
367
|
+
// Render Functions
|
|
368
|
+
return createElement(tmp, {
|
|
369
|
+
as: "h1",
|
|
370
|
+
size: TEXT_SIZE.xxLarge,
|
|
371
|
+
prio: TEXT_PRIO.heading,
|
|
372
|
+
className: default_1(heading_module.heading, className),
|
|
373
|
+
style: style
|
|
374
|
+
}, children);
|
|
375
|
+
}
|
|
376
|
+
// Need HeadingMemo for autocompletion of phpstorm
|
|
377
|
+
const HeadingMemo = withMemo(Heading, 'text');
|
|
378
|
+
|
|
379
|
+
;// ./src/Components/ErrorBoundary.tsx
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
class ErrorBoundary extends Component {
|
|
385
|
+
constructor() {
|
|
386
|
+
super(...arguments);
|
|
387
|
+
this.state = {
|
|
388
|
+
error: null
|
|
389
|
+
};
|
|
390
|
+
}
|
|
391
|
+
static getDerivedStateFromError(error) {
|
|
392
|
+
console.error('Got error', error);
|
|
393
|
+
return {
|
|
394
|
+
error
|
|
395
|
+
};
|
|
396
|
+
}
|
|
397
|
+
render() {
|
|
398
|
+
const {
|
|
399
|
+
error
|
|
400
|
+
} = this.state;
|
|
401
|
+
const {
|
|
402
|
+
children,
|
|
403
|
+
formatError,
|
|
404
|
+
showStack
|
|
405
|
+
} = this.props;
|
|
406
|
+
if (error) {
|
|
407
|
+
const message = (formatError === null || formatError === void 0 ? void 0 : formatError(error)) || String(error);
|
|
408
|
+
let stack;
|
|
409
|
+
if (error instanceof Error) {
|
|
410
|
+
stack = error.stack;
|
|
411
|
+
}
|
|
412
|
+
return default_0.createElement(Block, null, default_0.createElement(HeadingMemo, null, message), !!stack && showStack && default_0.createElement(tmp, {
|
|
413
|
+
style: {
|
|
414
|
+
whiteSpace: 'pre'
|
|
415
|
+
}
|
|
416
|
+
}, stack));
|
|
417
|
+
}
|
|
418
|
+
return children;
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
;// ./src/Components/Flavor.ts
|
|
422
|
+
var Flavor;
|
|
423
|
+
(function (Flavor) {
|
|
424
|
+
Flavor["Accent"] = "flavor-accent";
|
|
425
|
+
Flavor["Basic"] = "flavor-basic";
|
|
426
|
+
Flavor["Destructive"] = "flavor-destructive";
|
|
427
|
+
Flavor["Constructive"] = "flavor-constructive";
|
|
428
|
+
})(Flavor || (Flavor = {}));
|
|
429
|
+
;// ./src/helper/Characters.ts
|
|
430
|
+
const Characters = {
|
|
431
|
+
NBSP: '\u00A0',
|
|
432
|
+
PATH_DELIMITER: '/',
|
|
433
|
+
MIDDLE_DOT: '\u00B7'
|
|
434
|
+
};
|
|
435
|
+
;// ./src/helper/nonEmptyString.ts
|
|
436
|
+
|
|
437
|
+
function nonEmptyString(str, other = Characters.NBSP) {
|
|
438
|
+
if (!str) {
|
|
439
|
+
return other;
|
|
440
|
+
}
|
|
441
|
+
return str;
|
|
442
|
+
}
|
|
443
|
+
;// ./src/helper/useDeepShallow.ts
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
function useDeepShallow(selector, depth = -1) {
|
|
447
|
+
const prev = useRef(undefined);
|
|
448
|
+
return state => {
|
|
449
|
+
const next = selector(state);
|
|
450
|
+
return JsonHelper.deepEqual(prev.current, next, depth) ? prev.current : prev.current = next;
|
|
451
|
+
};
|
|
452
|
+
}
|
|
453
|
+
;// ./src/helper/withRenderBrowserOnly.tsx
|
|
454
|
+
var withRenderBrowserOnly_rest = undefined && undefined.__rest || function (s, e) {
|
|
455
|
+
var t = {};
|
|
456
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
457
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
458
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
459
|
+
}
|
|
460
|
+
return t;
|
|
461
|
+
};
|
|
462
|
+
|
|
463
|
+
function withRenderBrowserOnly(Component) {
|
|
464
|
+
const displayName = `WithRenderBrowserOnly(${Component.displayName || Component.name})`;
|
|
465
|
+
function HocComponent(_a, ref) {
|
|
466
|
+
var {
|
|
467
|
+
children
|
|
468
|
+
} = _a,
|
|
469
|
+
props = withRenderBrowserOnly_rest(_a, ["children"]);
|
|
470
|
+
const [isBrowser, setIsBrowser] = useState(false);
|
|
471
|
+
useEffect(() => setIsBrowser(true), []);
|
|
472
|
+
if (!isBrowser) {
|
|
473
|
+
return null;
|
|
474
|
+
}
|
|
475
|
+
const newProps = props;
|
|
476
|
+
if (ref && Object.keys(ref).length > 0) {
|
|
477
|
+
newProps.ref = ref;
|
|
478
|
+
}
|
|
479
|
+
return (
|
|
480
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
481
|
+
// @ts-ignore
|
|
482
|
+
default_0.createElement(Component, Object.assign({}, newProps), children)
|
|
483
|
+
);
|
|
484
|
+
}
|
|
485
|
+
HocComponent.displayName = displayName;
|
|
486
|
+
return HocComponent;
|
|
487
|
+
}
|
|
488
|
+
;// ./src/WindowContext/WindowContext.ts
|
|
489
|
+
|
|
490
|
+
const WindowContext = default_0.createContext(undefined);
|
|
491
|
+
WindowContext.displayName = 'WindowContext';
|
|
492
|
+
function useWindow() {
|
|
493
|
+
var _a;
|
|
494
|
+
return (_a = useContext(WindowContext)) !== null && _a !== void 0 ? _a : typeof window !== 'undefined' ? window : undefined;
|
|
495
|
+
}
|
|
319
496
|
;// ./src/Components/Hooks/useComposedRef.ts
|
|
320
497
|
|
|
321
498
|
function useComposedRef(...refs) {
|
|
@@ -758,108 +935,6 @@ const InlineBlock = withMemo(function InlineBlock(_a) {
|
|
|
758
935
|
as: as
|
|
759
936
|
}), children);
|
|
760
937
|
});
|
|
761
|
-
;// ./src/Components/Layout/Inline.tsx
|
|
762
|
-
var Inline_rest = undefined && undefined.__rest || function (s, e) {
|
|
763
|
-
var t = {};
|
|
764
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
765
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
766
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
767
|
-
}
|
|
768
|
-
return t;
|
|
769
|
-
};
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
const Inline = withMemo(function Inline(_a) {
|
|
776
|
-
// Variables
|
|
777
|
-
var {
|
|
778
|
-
children,
|
|
779
|
-
as = 'span',
|
|
780
|
-
className
|
|
781
|
-
} = _a,
|
|
782
|
-
props = Inline_rest(_a, ["children", "as", "className"]);
|
|
783
|
-
// Refs
|
|
784
|
-
// States
|
|
785
|
-
// Selectors
|
|
786
|
-
// Callbacks
|
|
787
|
-
// Effects
|
|
788
|
-
// Other
|
|
789
|
-
// Render Functions
|
|
790
|
-
return createElement(ViewWithoutListeners, Object.assign({
|
|
791
|
-
className: default_1(layout_module.inline, className),
|
|
792
|
-
as: as
|
|
793
|
-
}, props), children);
|
|
794
|
-
});
|
|
795
|
-
;// ./src/Components/Text/text.module.scss
|
|
796
|
-
// extracted by mini-css-extract-plugin
|
|
797
|
-
/* harmony default export */ const text_module = ({"text":"text__ejS3o","block":"block__naLxK","heading":"heading__KU9xU","primaryDefault":"primaryDefault__Liz7y","primary":"primary__rEpob","secondary":"secondary__zUXeI","tertiary":"tertiary__UaTRx","xsmall":"xsmall__BCYOF","small":"small__AWNxX","medium":"medium__rHmhh","large":"large__ekCpY","xlarge":"xlarge__KP0mY","xxlarge":"xxlarge__Japom","emphasized":"emphasized__Gn24q"});
|
|
798
|
-
;// ./src/Components/Text/Text.tsx
|
|
799
|
-
var Text_rest = undefined && undefined.__rest || function (s, e) {
|
|
800
|
-
var t = {};
|
|
801
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
802
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
803
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
804
|
-
}
|
|
805
|
-
return t;
|
|
806
|
-
};
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
const TEXT_PRIO = {
|
|
813
|
-
primary: text_module.primary,
|
|
814
|
-
secondary: text_module.secondary,
|
|
815
|
-
tertiary: text_module.tertiary,
|
|
816
|
-
heading: text_module.heading
|
|
817
|
-
};
|
|
818
|
-
const TEXT_SIZE = {
|
|
819
|
-
xSmall: text_module.xsmall,
|
|
820
|
-
small: text_module.small,
|
|
821
|
-
medium: text_module.medium,
|
|
822
|
-
large: text_module.large,
|
|
823
|
-
xLarge: text_module.xlarge,
|
|
824
|
-
xxLarge: text_module.xxlarge
|
|
825
|
-
};
|
|
826
|
-
function Text(_a) {
|
|
827
|
-
var {
|
|
828
|
-
className,
|
|
829
|
-
children,
|
|
830
|
-
block = false,
|
|
831
|
-
prio,
|
|
832
|
-
emphasized = false,
|
|
833
|
-
size = TEXT_SIZE.medium,
|
|
834
|
-
as = 'span'
|
|
835
|
-
} = _a,
|
|
836
|
-
props = Text_rest(_a, ["className", "children", "block", "prio", "emphasized", "size", "as"]);
|
|
837
|
-
// Variables
|
|
838
|
-
prio = prio !== null && prio !== void 0 ? prio : text_module.primaryDefault;
|
|
839
|
-
// States
|
|
840
|
-
// Refs
|
|
841
|
-
// Callbacks
|
|
842
|
-
// Effects
|
|
843
|
-
// Other
|
|
844
|
-
Children.forEach(children, child => {
|
|
845
|
-
const type = typeof child;
|
|
846
|
-
if (type !== 'string' && type !== 'undefined' && type !== 'object' && type !== 'number' || type === 'object' && child !== null) {
|
|
847
|
-
throw new WrongChildError('string, number, undefined, null', type, child, 'Text');
|
|
848
|
-
}
|
|
849
|
-
});
|
|
850
|
-
// Render Functions
|
|
851
|
-
return createElement(Inline, Object.assign({
|
|
852
|
-
__allowChildren: "text",
|
|
853
|
-
as: as
|
|
854
|
-
}, props, {
|
|
855
|
-
className: default_1(text_module.text, {
|
|
856
|
-
[text_module.block]: block,
|
|
857
|
-
[text_module.emphasized]: emphasized
|
|
858
|
-
}, prio, size, className)
|
|
859
|
-
}), children);
|
|
860
|
-
}
|
|
861
|
-
const tmp = memo(Text);
|
|
862
|
-
|
|
863
938
|
;// external "@fortawesome/free-solid-svg-icons"
|
|
864
939
|
|
|
865
940
|
;// ./src/scss/baseClasses.module.scss
|
|
@@ -1213,39 +1288,6 @@ const Grow = withMemo(function Grow({
|
|
|
1213
1288
|
style: style
|
|
1214
1289
|
}, children);
|
|
1215
1290
|
});
|
|
1216
|
-
;// ./src/Components/Text/heading.module.scss
|
|
1217
|
-
// extracted by mini-css-extract-plugin
|
|
1218
|
-
/* harmony default export */ const heading_module = ({"heading":"heading__oxEyT"});
|
|
1219
|
-
;// ./src/Components/Text/Heading.tsx
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
function Heading({
|
|
1226
|
-
children,
|
|
1227
|
-
className,
|
|
1228
|
-
style
|
|
1229
|
-
}) {
|
|
1230
|
-
// Variables
|
|
1231
|
-
// Refs
|
|
1232
|
-
// States
|
|
1233
|
-
// Selectors
|
|
1234
|
-
// Callbacks
|
|
1235
|
-
// Effects
|
|
1236
|
-
// Other
|
|
1237
|
-
// Render Functions
|
|
1238
|
-
return createElement(tmp, {
|
|
1239
|
-
as: "h1",
|
|
1240
|
-
size: TEXT_SIZE.xxLarge,
|
|
1241
|
-
prio: TEXT_PRIO.heading,
|
|
1242
|
-
className: default_1(heading_module.heading, className),
|
|
1243
|
-
style: style
|
|
1244
|
-
}, children);
|
|
1245
|
-
}
|
|
1246
|
-
// Need HeadingMemo for autocompletion of phpstorm
|
|
1247
|
-
const HeadingMemo = withMemo(Heading, 'text');
|
|
1248
|
-
|
|
1249
1291
|
;// ./src/Components/Dialog/dialogBackground.module.scss
|
|
1250
1292
|
// extracted by mini-css-extract-plugin
|
|
1251
1293
|
/* harmony default export */ const dialogBackground_module = ({"dialogBackground":"dialogBackground__d53GC","title":"title___zJOu"});
|
|
@@ -5352,6 +5394,7 @@ const GridItemMemo = withMemo(GridItem);
|
|
|
5352
5394
|
|
|
5353
5395
|
|
|
5354
5396
|
|
|
5355
|
-
|
|
5397
|
+
|
|
5398
|
+
export { ActionSheet, AlertDialog, Block, BreakpointNames, Breakpoints, Button, ButtonDialogMemo as ButtonDialog, ButtonType, CONTAINER_CLASSES, Card, Characters, Checkbox, Clickable, ColorInput, ColorInputController, ConfirmDialog, Container, DialogMemo as Dialog, DialogBackground, DialogContainer, DialogProvider, DoubleIcon, DragItemMemo as DragItem, DropArea, ErrorBoundary, FileInput, FileInputController, Flavor, Flex, FormError, FullScreen, Grid, GridItemMemo as GridItem, Grow, HeadingMemo as Heading, HiddenInput, HookForm, HoverMenu, Icon, Image, InViewportMemo as InViewport, Inline, InlineBlock, Input, InputController, LoadingArea, LoadingCircle, MENU_CONTAINER_CLASS, Menu, MenuCloseContextProvider, MenuDivider, MenuItem, MoreButton, MultipleFileInput, MultipleFileInputController, PasswordInput, PasswordInputController, RESTRICT_CHILDREN, SearchSelectInput, Select, SelectController, SendFormContext, Size, SizeCalculatorMemo as SizeCalculator, Slider, SliderController, Spoiler, SpoilerList, Submenu, Switch, SwitchController, TEXT_PRIO, TEXT_SIZE, TabBar, TabBarButton, Table_tmp as Table, tmp as Text, Textarea, TextareaController, Toast, ToastContainerMemo as ToastContainer, ToastContext, TopBar, TopBarButton, View, ViewWithoutListeners, WindowContext, WrongChildError, memoComparator, nonEmptyString, treeshakeTest, useAlertDialog, useBreakpoint, useBreakpointSelect, useClientLayoutEffect, useComposedRef, useConfirmDialog, useDebounced, useDeepShallow, useDelayed, useDelayedEffect, useDelayedState, useDialog, useInViewport, useKeyListener, useKeyPressed, useKeyUpListener, useListener, useListenerWithExtractedProps, useMenu, useMenuClose, useMousePosition, useOnChangeDone, useOnMount, useOnce, useRerender, useSendFormContext, useSharedSelectedColor, useSpoilerGroup, useStrictEnabled, useToast, useWindow, useWindowDimensions, useYupResolver, withHookController, withMemo, withRenderBrowserOnly, withRestrictedChildren };
|
|
5356
5399
|
|
|
5357
5400
|
//# sourceMappingURL=index.js.map
|