@ornikar/kitt-universal 6.0.0 → 7.0.1
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/definitions/Avatar/Avatar.d.ts +5 -4
- package/dist/definitions/Avatar/Avatar.d.ts.map +1 -1
- package/dist/definitions/Button/AnimatedButtonPressable.d.ts +2 -1
- package/dist/definitions/Button/AnimatedButtonPressable.d.ts.map +1 -1
- package/dist/definitions/Button/AnimatedButtonPressable.web.d.ts +2 -1
- package/dist/definitions/Button/AnimatedButtonPressable.web.d.ts.map +1 -1
- package/dist/definitions/Button/BaseStyledButtonPressable.d.ts +2 -1
- package/dist/definitions/Button/BaseStyledButtonPressable.d.ts.map +1 -1
- package/dist/definitions/Button/Button.d.ts +2 -0
- package/dist/definitions/Button/Button.d.ts.map +1 -1
- package/dist/definitions/Button/ButtonContent.d.ts +3 -2
- package/dist/definitions/Button/ButtonContent.d.ts.map +1 -1
- package/dist/definitions/Button/getVariantValuesIfExist.d.ts +5 -0
- package/dist/definitions/Button/getVariantValuesIfExist.d.ts.map +1 -0
- package/dist/definitions/ExternalLink/ExternalLink.d.ts +3 -3
- package/dist/definitions/ExternalLink/ExternalLink.d.ts.map +1 -1
- package/dist/definitions/Icon/Icon.d.ts +1 -1
- package/dist/definitions/Icon/Icon.d.ts.map +1 -1
- package/dist/definitions/Icon/SpinningIcon.d.ts +4 -3
- package/dist/definitions/Icon/SpinningIcon.d.ts.map +1 -1
- package/dist/definitions/Icon/SpinningIcon.web.d.ts +1 -1
- package/dist/definitions/Icon/SpinningIcon.web.d.ts.map +1 -1
- package/dist/definitions/LoaderIcon/LoaderIcon.d.ts +7 -0
- package/dist/definitions/LoaderIcon/LoaderIcon.d.ts.map +1 -0
- package/dist/definitions/Overlay/Overlay.d.ts +1 -1
- package/dist/definitions/Overlay/Overlay.d.ts.map +1 -1
- package/dist/definitions/PageLoader/PageLoader.d.ts +4 -0
- package/dist/definitions/PageLoader/PageLoader.d.ts.map +1 -0
- package/dist/definitions/PageLoader/PageLoader.web.d.ts +3 -0
- package/dist/definitions/PageLoader/PageLoader.web.d.ts.map +1 -0
- package/dist/definitions/index.d.ts +5 -6
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/definitions/themes/default.d.ts +37 -36
- package/dist/definitions/themes/default.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/avatar.d.ts +7 -3
- package/dist/definitions/themes/late-ocean/avatar.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/button.d.ts +26 -9
- package/dist/definitions/themes/late-ocean/button.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/pageLoader.d.ts +5 -0
- package/dist/definitions/themes/late-ocean/pageLoader.d.ts.map +1 -0
- package/dist/definitions/utils/tests/renderWithProvidersUtils.d.ts +4 -2
- package/dist/definitions/utils/tests/renderWithProvidersUtils.d.ts.map +1 -1
- package/dist/index-browser-all.es.android.js +202 -181
- package/dist/index-browser-all.es.android.js.map +1 -1
- package/dist/index-browser-all.es.ios.js +202 -181
- package/dist/index-browser-all.es.ios.js.map +1 -1
- package/dist/index-browser-all.es.js +202 -181
- package/dist/index-browser-all.es.js.map +1 -1
- package/dist/index-browser-all.es.web.js +222 -194
- package/dist/index-browser-all.es.web.js.map +1 -1
- package/dist/index-node-14.17.cjs.js +156 -134
- package/dist/index-node-14.17.cjs.js.map +1 -1
- package/dist/index-node-14.17.cjs.web.css +1 -1
- package/dist/index-node-14.17.cjs.web.js +188 -156
- package/dist/index-node-14.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.android.js +69 -40
- package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.ios.js +69 -40
- package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.js +69 -40
- package/dist/linaria-themes-browser-all.es.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.web.js +69 -40
- package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.js +69 -40
- package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.web.js +69 -40
- package/dist/linaria-themes-node-14.17.cjs.web.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +5 -5
- package/dist/definitions/Loader/LargeLoader.d.ts +0 -7
- package/dist/definitions/Loader/LargeLoader.d.ts.map +0 -1
- package/dist/definitions/Loader/LargeLoader.web.d.ts +0 -3
- package/dist/definitions/Loader/LargeLoader.web.d.ts.map +0 -1
- package/dist/definitions/Loader/Loader.d.ts +0 -8
- package/dist/definitions/Loader/Loader.d.ts.map +0 -1
- package/dist/definitions/Loader/Loader.web.d.ts +0 -8
- package/dist/definitions/Loader/Loader.web.d.ts.map +0 -1
- package/dist/definitions/typography/TypographySpinningIcon.d.ts +0 -9
- package/dist/definitions/typography/TypographySpinningIcon.d.ts.map +0 -1
|
@@ -2,7 +2,7 @@ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
3
|
import { View, Text as Text$1, useWindowDimensions, Image, Pressable, TextInput, StyleSheet, ScrollView, Modal as Modal$1 } from 'react-native';
|
|
4
4
|
export { useWindowDimensions as useWindowSize } from 'react-native';
|
|
5
|
-
import { UserIcon, CheckboxMark, EyeOffIcon, EyeIcon,
|
|
5
|
+
import { UserIcon, CheckboxMark, EyeOffIcon, EyeIcon, ArcIcon, InfoIcon, AlertTriangleIcon, CheckIcon, AlertCircleIcon, XIcon, TooltipArrowIcon } from '@ornikar/kitt-icons';
|
|
6
6
|
export * from '@ornikar/kitt-icons';
|
|
7
7
|
import styled, { useTheme, css, ThemeProvider } from 'styled-components/native';
|
|
8
8
|
import { cloneElement, useContext, createContext, forwardRef, useMemo, useState, Fragment, Children, useEffect } from 'react';
|
|
@@ -99,7 +99,7 @@ var KittBreakpointsMax = {
|
|
|
99
99
|
LARGE: KittBreakpoints.WIDE - 1
|
|
100
100
|
};
|
|
101
101
|
|
|
102
|
-
var _excluded$
|
|
102
|
+
var _excluded$g = ["accessibilityRole", "base", "small", "medium", "large", "variant", "color"];
|
|
103
103
|
var IsHeaderTypographyContext = /*#__PURE__*/createContext(undefined);
|
|
104
104
|
var TypographyColorContext = /*#__PURE__*/createContext('black');
|
|
105
105
|
function useTypographyColor() {
|
|
@@ -176,7 +176,7 @@ function Typography(_ref4) {
|
|
|
176
176
|
large = _ref4.large,
|
|
177
177
|
variant = _ref4.variant,
|
|
178
178
|
color = _ref4.color,
|
|
179
|
-
otherProps = _objectWithoutProperties(_ref4, _excluded$
|
|
179
|
+
otherProps = _objectWithoutProperties(_ref4, _excluded$g);
|
|
180
180
|
|
|
181
181
|
var isHeaderTypographyInContext = useContext(IsHeaderTypographyContext);
|
|
182
182
|
var hasTypographyAncestor = isHeaderTypographyInContext !== undefined;
|
|
@@ -263,7 +263,7 @@ Typography.h4 = createHeading(4, 'header4');
|
|
|
263
263
|
|
|
264
264
|
Typography.h5 = createHeading(5, 'header5');
|
|
265
265
|
|
|
266
|
-
var _excluded$
|
|
266
|
+
var _excluded$f = ["size", "round", "light", "sizeVariant"];
|
|
267
267
|
|
|
268
268
|
var getInitials = function (firstname, lastname) {
|
|
269
269
|
return "".concat(firstname[0]).concat(lastname[0]).toUpperCase();
|
|
@@ -275,9 +275,10 @@ var StyledAvatarView = /*#__PURE__*/styled(View).withConfig({
|
|
|
275
275
|
})(["border-radius:", ";background-color:", ";height:", "px;width:", "px;overflow:hidden;align-items:center;justify-content:center;"], function (_ref) {
|
|
276
276
|
var theme = _ref.theme,
|
|
277
277
|
$isRound = _ref.$isRound,
|
|
278
|
-
$size = _ref.$size
|
|
278
|
+
$size = _ref.$size,
|
|
279
|
+
$sizeVariant = _ref.$sizeVariant;
|
|
279
280
|
if ($isRound) return "".concat($size / 2, "px");
|
|
280
|
-
return "".concat(theme.kitt.avatar.borderRadius, "px");
|
|
281
|
+
return "".concat($sizeVariant === 'large' ? theme.kitt.avatar.large.borderRadius : theme.kitt.avatar.borderRadius, "px");
|
|
281
282
|
}, function (_ref2) {
|
|
282
283
|
var theme = _ref2.theme,
|
|
283
284
|
$isLight = _ref2.$isLight;
|
|
@@ -296,8 +297,8 @@ function AvatarContent(_ref5) {
|
|
|
296
297
|
firstname = _ref5.firstname,
|
|
297
298
|
lastname = _ref5.lastname,
|
|
298
299
|
alt = _ref5.alt,
|
|
299
|
-
|
|
300
|
-
|
|
300
|
+
isLight = _ref5.isLight,
|
|
301
|
+
sizeVariant = _ref5.sizeVariant;
|
|
301
302
|
|
|
302
303
|
if (src) {
|
|
303
304
|
return /*#__PURE__*/jsx(Image, {
|
|
@@ -314,8 +315,8 @@ function AvatarContent(_ref5) {
|
|
|
314
315
|
|
|
315
316
|
if (firstname && lastname) {
|
|
316
317
|
return /*#__PURE__*/jsx(Typography.Text, {
|
|
317
|
-
base:
|
|
318
|
-
variant:
|
|
318
|
+
base: sizeVariant === 'large' ? 'body-large' : 'body',
|
|
319
|
+
variant: sizeVariant === 'large' ? 'bold' : 'regular',
|
|
319
320
|
color: isLight ? 'black' : 'white',
|
|
320
321
|
children: getInitials(firstname, lastname)
|
|
321
322
|
});
|
|
@@ -331,20 +332,20 @@ function AvatarContent(_ref5) {
|
|
|
331
332
|
function Avatar(_ref6) {
|
|
332
333
|
var _ref6$size = _ref6.size,
|
|
333
334
|
size = _ref6$size === void 0 ? 40 : _ref6$size,
|
|
334
|
-
_ref6$base = _ref6.base,
|
|
335
|
-
base = _ref6$base === void 0 ? 'body-small' : _ref6$base,
|
|
336
335
|
round = _ref6.round,
|
|
337
336
|
light = _ref6.light,
|
|
338
|
-
|
|
337
|
+
sizeVariant = _ref6.sizeVariant,
|
|
338
|
+
props = _objectWithoutProperties(_ref6, _excluded$f);
|
|
339
339
|
|
|
340
340
|
return /*#__PURE__*/jsx(StyledAvatarView, {
|
|
341
341
|
$size: size,
|
|
342
342
|
$isRound: round,
|
|
343
343
|
$isLight: light,
|
|
344
|
+
$sizeVariant: sizeVariant,
|
|
344
345
|
children: /*#__PURE__*/jsx(AvatarContent, _objectSpread({
|
|
345
346
|
size: size,
|
|
346
|
-
|
|
347
|
-
|
|
347
|
+
isLight: light,
|
|
348
|
+
sizeVariant: sizeVariant
|
|
348
349
|
}, props))
|
|
349
350
|
});
|
|
350
351
|
}
|
|
@@ -370,11 +371,25 @@ function withTheme(WrappedComponent) {
|
|
|
370
371
|
});
|
|
371
372
|
}
|
|
372
373
|
|
|
374
|
+
var hasVariant = function (button, variant) {
|
|
375
|
+
return variant in button;
|
|
376
|
+
};
|
|
377
|
+
|
|
378
|
+
function getVariantValuesIfExist(theme, type, variant) {
|
|
379
|
+
var button = theme.kitt.button[type];
|
|
380
|
+
|
|
381
|
+
if (hasVariant(button, variant)) {
|
|
382
|
+
return button[variant];
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
return theme.kitt.button[type]["default"];
|
|
386
|
+
}
|
|
387
|
+
|
|
373
388
|
function isSubtle(type) {
|
|
374
389
|
return type.startsWith('subtle');
|
|
375
390
|
}
|
|
376
391
|
|
|
377
|
-
var _excluded$
|
|
392
|
+
var _excluded$e = ["$type", "$variant", "$isStretch", "disabled"];
|
|
378
393
|
var AnimatedButtonPressableContainer = withTheme( /*#__PURE__*/styled$1("div")({
|
|
379
394
|
name: "AnimatedButtonPressableContainer",
|
|
380
395
|
"class": "kitt-u_AnimatedButtonPressableContainer_a1vkj3mh",
|
|
@@ -399,9 +414,10 @@ var AnimatedButtonPressableContainer = withTheme( /*#__PURE__*/styled$1("div")({
|
|
|
399
414
|
"a1vkj3mh-5": [function (_ref5) {
|
|
400
415
|
var theme = _ref5.theme,
|
|
401
416
|
$type = _ref5.$type,
|
|
417
|
+
$variant = _ref5.$variant,
|
|
402
418
|
$isDisabled = _ref5.$isDisabled;
|
|
403
|
-
if ($isDisabled) return theme.kitt.button.disabled.hoverBackgroundColor;
|
|
404
|
-
return theme
|
|
419
|
+
if ($isDisabled) return theme.kitt.button.disabled["default"].hoverBackgroundColor;
|
|
420
|
+
return getVariantValuesIfExist(theme, $type, $variant).hoverBackgroundColor;
|
|
405
421
|
}],
|
|
406
422
|
"a1vkj3mh-6": [function (_ref6) {
|
|
407
423
|
var theme = _ref6.theme;
|
|
@@ -432,12 +448,13 @@ var AnimatedButtonPressableContainer = withTheme( /*#__PURE__*/styled$1("div")({
|
|
|
432
448
|
}],
|
|
433
449
|
"a1vkj3mh-14": [function (_ref12) {
|
|
434
450
|
var theme = _ref12.theme;
|
|
435
|
-
return "".concat(theme.kitt.button.borderWidth.disabled, "px solid ").concat(theme.kitt.button.disabled.borderColor);
|
|
451
|
+
return "".concat(theme.kitt.button.borderWidth.disabled, "px solid ").concat(theme.kitt.button.disabled["default"].borderColor);
|
|
436
452
|
}],
|
|
437
453
|
"a1vkj3mh-15": [function (_ref13) {
|
|
438
454
|
var theme = _ref13.theme,
|
|
439
|
-
$type = _ref13.$type
|
|
440
|
-
|
|
455
|
+
$type = _ref13.$type,
|
|
456
|
+
$variant = _ref13.$variant;
|
|
457
|
+
return "".concat(theme.kitt.button.borderWidth.focus, "px solid ").concat(getVariantValuesIfExist(theme, $type, $variant).focusBorderColor);
|
|
441
458
|
}],
|
|
442
459
|
"a1vkj3mh-16": [function (_ref14) {
|
|
443
460
|
var theme = _ref14.theme;
|
|
@@ -448,36 +465,50 @@ var AnimatedButtonPressableContainer = withTheme( /*#__PURE__*/styled$1("div")({
|
|
|
448
465
|
$type = _ref15.$type,
|
|
449
466
|
$isDisabled = _ref15.$isDisabled;
|
|
450
467
|
if ($isDisabled) return theme.kitt.typography.colors['black-light'];
|
|
451
|
-
|
|
452
|
-
|
|
468
|
+
|
|
469
|
+
if (isSubtle($type)) {
|
|
470
|
+
return theme.kitt.button[$type]["default"].color;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
return 'inherit';
|
|
453
474
|
}],
|
|
454
475
|
"a1vkj3mh-19": [function (_ref16) {
|
|
455
476
|
var theme = _ref16.theme,
|
|
456
477
|
$type = _ref16.$type,
|
|
457
478
|
$isDisabled = _ref16.$isDisabled;
|
|
458
479
|
if ($isDisabled) return theme.kitt.typography.colors['black-light'];
|
|
459
|
-
|
|
460
|
-
|
|
480
|
+
|
|
481
|
+
if (isSubtle($type)) {
|
|
482
|
+
return theme.kitt.button[$type]["default"].hoverColor;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
return 'inherit';
|
|
461
486
|
}],
|
|
462
487
|
"a1vkj3mh-20": [function (_ref17) {
|
|
463
488
|
var theme = _ref17.theme,
|
|
464
489
|
$type = _ref17.$type,
|
|
465
490
|
$isDisabled = _ref17.$isDisabled;
|
|
466
491
|
if ($isDisabled) return theme.kitt.typography.colors['black-light'];
|
|
467
|
-
|
|
468
|
-
|
|
492
|
+
|
|
493
|
+
if (isSubtle($type)) {
|
|
494
|
+
return theme.kitt.button[$type]["default"].activeColor;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
return 'inherit';
|
|
469
498
|
}]
|
|
470
499
|
}
|
|
471
500
|
}));
|
|
472
501
|
var AnimatedButtonPressable = /*#__PURE__*/forwardRef(function (_ref18, ref) {
|
|
473
502
|
var $type = _ref18.$type,
|
|
503
|
+
$variant = _ref18.$variant,
|
|
474
504
|
$isStretch = _ref18.$isStretch,
|
|
475
505
|
disabled = _ref18.disabled,
|
|
476
|
-
props = _objectWithoutProperties(_ref18, _excluded$
|
|
506
|
+
props = _objectWithoutProperties(_ref18, _excluded$e);
|
|
477
507
|
|
|
478
508
|
return /*#__PURE__*/jsx(AnimatedButtonPressableContainer, {
|
|
479
509
|
ref: ref,
|
|
480
510
|
$type: $type,
|
|
511
|
+
$variant: $variant,
|
|
481
512
|
$isDisabled: !!disabled,
|
|
482
513
|
$isStretch: $isStretch,
|
|
483
514
|
children: /*#__PURE__*/jsx(Pressable, _objectSpread({
|
|
@@ -508,9 +539,10 @@ var BaseStyledButtonPressable = /*#__PURE__*/styled(View).withConfig({
|
|
|
508
539
|
}, function (_ref6) {
|
|
509
540
|
var theme = _ref6.theme,
|
|
510
541
|
$isDisabled = _ref6.$isDisabled,
|
|
511
|
-
$type = _ref6.$type
|
|
512
|
-
|
|
513
|
-
return theme.kitt.button[
|
|
542
|
+
$type = _ref6.$type,
|
|
543
|
+
$variant = _ref6.$variant;
|
|
544
|
+
if ($isDisabled) return theme.kitt.button.disabled["default"].backgroundColor;
|
|
545
|
+
return getVariantValuesIfExist(theme, $type, $variant).backgroundColor;
|
|
514
546
|
}, function (_ref7) {
|
|
515
547
|
var theme = _ref7.theme,
|
|
516
548
|
$isLarge = _ref7.$isLarge,
|
|
@@ -524,12 +556,12 @@ var BaseStyledButtonPressable = /*#__PURE__*/styled(View).withConfig({
|
|
|
524
556
|
return defaultPadding;
|
|
525
557
|
});
|
|
526
558
|
|
|
527
|
-
var _excluded$
|
|
528
|
-
_excluded2$
|
|
559
|
+
var _excluded$d = ["color"],
|
|
560
|
+
_excluded2$2 = ["color"];
|
|
529
561
|
|
|
530
562
|
function TypographyIconSpecifiedColor(_ref) {
|
|
531
563
|
var color = _ref.color,
|
|
532
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
564
|
+
props = _objectWithoutProperties(_ref, _excluded$d);
|
|
533
565
|
|
|
534
566
|
var theme = /*#__PURE__*/useTheme();
|
|
535
567
|
return /*#__PURE__*/jsx(Icon, _objectSpread(_objectSpread({}, props), {}, {
|
|
@@ -546,7 +578,7 @@ function TypographyIconInheritColor(props) {
|
|
|
546
578
|
|
|
547
579
|
function TypographyIcon(_ref2) {
|
|
548
580
|
var color = _ref2.color,
|
|
549
|
-
props = _objectWithoutProperties(_ref2, _excluded2$
|
|
581
|
+
props = _objectWithoutProperties(_ref2, _excluded2$2);
|
|
550
582
|
|
|
551
583
|
if (color) {
|
|
552
584
|
return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread({
|
|
@@ -557,12 +589,12 @@ function TypographyIcon(_ref2) {
|
|
|
557
589
|
return /*#__PURE__*/jsx(TypographyIconInheritColor, _objectSpread({}, props));
|
|
558
590
|
}
|
|
559
591
|
|
|
560
|
-
var _excluded$
|
|
592
|
+
var _excluded$c = ["type", "variant", "isDisabled", "$isStretch", "icon", "children"];
|
|
561
593
|
|
|
562
|
-
var getTextColorByType = function (type) {
|
|
594
|
+
var getTextColorByType = function (type, variant) {
|
|
563
595
|
switch (type) {
|
|
564
596
|
case 'primary':
|
|
565
|
-
return 'white';
|
|
597
|
+
return variant === 'ghost' ? 'primary' : 'white';
|
|
566
598
|
|
|
567
599
|
case 'white':
|
|
568
600
|
return 'white';
|
|
@@ -691,13 +723,14 @@ var ButtonContentContainer = /*#__PURE__*/styled(View).withConfig({
|
|
|
691
723
|
});
|
|
692
724
|
function ButtonContent(_ref7) {
|
|
693
725
|
var type = _ref7.type,
|
|
726
|
+
variant = _ref7.variant,
|
|
694
727
|
isDisabled = _ref7.isDisabled,
|
|
695
728
|
$isStretch = _ref7.$isStretch,
|
|
696
729
|
icon = _ref7.icon,
|
|
697
730
|
children = _ref7.children,
|
|
698
|
-
props = _objectWithoutProperties(_ref7, _excluded$
|
|
731
|
+
props = _objectWithoutProperties(_ref7, _excluded$c);
|
|
699
732
|
|
|
700
|
-
var color = isDisabled ? 'black-light' : getTextColorByType(type);
|
|
733
|
+
var color = isDisabled ? 'black-light' : getTextColorByType(type, variant);
|
|
701
734
|
return /*#__PURE__*/jsx(ButtonContentContainer, {
|
|
702
735
|
$isSubtle: isSubtle(type),
|
|
703
736
|
$isStretch: $isStretch,
|
|
@@ -717,6 +750,8 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
717
750
|
var children = _ref.children,
|
|
718
751
|
_ref$type = _ref.type,
|
|
719
752
|
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
753
|
+
_ref$variant = _ref.variant,
|
|
754
|
+
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
720
755
|
disabled = _ref.disabled,
|
|
721
756
|
stretch = _ref.stretch,
|
|
722
757
|
large = _ref.large,
|
|
@@ -729,6 +764,11 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
729
764
|
_ref$accessibilityRol = _ref.accessibilityRole,
|
|
730
765
|
accessibilityRole = _ref$accessibilityRol === void 0 ? 'button' : _ref$accessibilityRol,
|
|
731
766
|
onPress = _ref.onPress;
|
|
767
|
+
|
|
768
|
+
if ((process.env.NODE_ENV !== "production") && variant === 'ghost' && type !== 'primary') {
|
|
769
|
+
throw new Error('variant=ghost is only allowed with type=primary');
|
|
770
|
+
}
|
|
771
|
+
|
|
732
772
|
return /*#__PURE__*/jsx(AnimatedButtonPressable, {
|
|
733
773
|
ref: ref,
|
|
734
774
|
accessibilityRole: accessibilityRole,
|
|
@@ -738,14 +778,17 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
738
778
|
disabled: disabled,
|
|
739
779
|
$isStretch: stretch,
|
|
740
780
|
$type: type,
|
|
781
|
+
$variant: variant,
|
|
741
782
|
onPress: onPress,
|
|
742
783
|
children: /*#__PURE__*/jsxs(BaseStyledButtonPressable, {
|
|
743
784
|
$type: type,
|
|
785
|
+
$variant: variant,
|
|
744
786
|
$isStretch: stretch,
|
|
745
787
|
$isLarge: large,
|
|
746
788
|
$isDisabled: disabled,
|
|
747
789
|
children: [/*#__PURE__*/jsx(ButtonContent, {
|
|
748
790
|
type: type,
|
|
791
|
+
variant: variant,
|
|
749
792
|
$isStretch: stretch,
|
|
750
793
|
isDisabled: disabled,
|
|
751
794
|
icon: icon,
|
|
@@ -826,14 +869,14 @@ var defaultOpenLinkBehavior = {
|
|
|
826
869
|
web: 'targetBlank'
|
|
827
870
|
};
|
|
828
871
|
|
|
829
|
-
var _excluded$
|
|
872
|
+
var _excluded$b = ["as", "href", "openLinkBehavior", "onPress"];
|
|
830
873
|
function ExternalLink(_ref) {
|
|
831
874
|
var Component = _ref.as,
|
|
832
875
|
href = _ref.href,
|
|
833
876
|
_ref$openLinkBehavior = _ref.openLinkBehavior,
|
|
834
877
|
openLinkBehavior = _ref$openLinkBehavior === void 0 ? defaultOpenLinkBehavior : _ref$openLinkBehavior,
|
|
835
878
|
onPress = _ref.onPress,
|
|
836
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
879
|
+
rest = _objectWithoutProperties(_ref, _excluded$b);
|
|
837
880
|
|
|
838
881
|
return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({}, rest), {}, {
|
|
839
882
|
href: href,
|
|
@@ -900,6 +943,9 @@ var avatar = {
|
|
|
900
943
|
},
|
|
901
944
|
light: {
|
|
902
945
|
backgroundColor: lateOceanColorPalette.black100
|
|
946
|
+
},
|
|
947
|
+
large: {
|
|
948
|
+
borderRadius: 30
|
|
903
949
|
}
|
|
904
950
|
};
|
|
905
951
|
|
|
@@ -932,47 +978,68 @@ var button = {
|
|
|
932
978
|
timingFunction: 'cubic-bezier(0.645, 0.045, 0.355, 1)'
|
|
933
979
|
},
|
|
934
980
|
"default": {
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
981
|
+
"default": {
|
|
982
|
+
backgroundColor: 'rgba(0, 0, 0, 0.05)',
|
|
983
|
+
pressedBackgroundColor: 'rgba(0, 0, 0, 0.1)',
|
|
984
|
+
hoverBackgroundColor: 'rgba(0, 0, 0, 0.1)',
|
|
985
|
+
focusBorderColor: 'rgba(0, 0, 0, 0.1)'
|
|
986
|
+
}
|
|
939
987
|
},
|
|
940
988
|
primary: {
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
989
|
+
"default": {
|
|
990
|
+
backgroundColor: colors.primary,
|
|
991
|
+
pressedBackgroundColor: colors.primaryLight,
|
|
992
|
+
hoverBackgroundColor: colors.primaryLight,
|
|
993
|
+
focusBorderColor: 'rgba(76, 52, 224, 0.2)'
|
|
994
|
+
},
|
|
995
|
+
ghost: {
|
|
996
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
997
|
+
pressedBackgroundColor: colors.uiBackground,
|
|
998
|
+
hoverBackgroundColor: colors.hover,
|
|
999
|
+
focusBorderColor: 'rgba(255,255,255, 0.4)',
|
|
1000
|
+
color: colors.primary,
|
|
1001
|
+
hoverColor: colors.hover,
|
|
1002
|
+
activeColor: colors.hover
|
|
1003
|
+
}
|
|
945
1004
|
},
|
|
946
1005
|
white: {
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
1006
|
+
"default": {
|
|
1007
|
+
backgroundColor: 'rgba(255, 255, 255, 0.05)',
|
|
1008
|
+
pressedBackgroundColor: 'rgba(255, 255, 255, 0.1)',
|
|
1009
|
+
hoverBackgroundColor: 'rgba(255, 255, 255, 0.1)',
|
|
1010
|
+
focusBorderColor: 'rgba(255, 255, 255, 0.1)'
|
|
1011
|
+
}
|
|
951
1012
|
},
|
|
952
1013
|
subtle: {
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
1014
|
+
"default": {
|
|
1015
|
+
backgroundColor: colors.transparent,
|
|
1016
|
+
pressedBackgroundColor: colors.transparent,
|
|
1017
|
+
hoverBackgroundColor: colors.transparent,
|
|
1018
|
+
focusBorderColor: 'rgba(76, 52, 224, 0.2)',
|
|
1019
|
+
color: colors.primary,
|
|
1020
|
+
hoverColor: 'rgba(76, 52, 224, 0.8)',
|
|
1021
|
+
activeColor: 'rgba(76, 52, 224, 0.8)'
|
|
1022
|
+
}
|
|
960
1023
|
},
|
|
961
1024
|
'subtle-dark': {
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
1025
|
+
"default": {
|
|
1026
|
+
backgroundColor: colors.transparent,
|
|
1027
|
+
pressedBackgroundColor: colors.transparent,
|
|
1028
|
+
hoverBackgroundColor: colors.transparent,
|
|
1029
|
+
focusBorderColor: 'rgba(0, 0, 0, 0.1)',
|
|
1030
|
+
color: colors.black,
|
|
1031
|
+
hoverColor: 'rgba(0, 0, 0, 0.8)',
|
|
1032
|
+
activeColor: 'rgba(0, 0, 0, 0.8)'
|
|
1033
|
+
}
|
|
969
1034
|
},
|
|
970
1035
|
disabled: {
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
1036
|
+
"default": {
|
|
1037
|
+
backgroundColor: colors.disabled,
|
|
1038
|
+
pressedBackgroundColor: colors.disabled,
|
|
1039
|
+
hoverBackgroundColor: colors.disabled,
|
|
1040
|
+
focusBorderColor: lateOceanColorPalette.black100,
|
|
1041
|
+
borderColor: lateOceanColorPalette.black100
|
|
1042
|
+
}
|
|
976
1043
|
}
|
|
977
1044
|
};
|
|
978
1045
|
|
|
@@ -1252,14 +1319,14 @@ var iconButton = {
|
|
|
1252
1319
|
},
|
|
1253
1320
|
disabled: {
|
|
1254
1321
|
scale: 1,
|
|
1255
|
-
backgroundColor: button.disabled.backgroundColor,
|
|
1256
|
-
borderColor: button.disabled.borderColor
|
|
1322
|
+
backgroundColor: button.disabled["default"].backgroundColor,
|
|
1323
|
+
borderColor: button.disabled["default"].borderColor
|
|
1257
1324
|
},
|
|
1258
1325
|
"default": {
|
|
1259
|
-
pressedBackgroundColor: button["default"].pressedBackgroundColor
|
|
1326
|
+
pressedBackgroundColor: button["default"]["default"].pressedBackgroundColor
|
|
1260
1327
|
},
|
|
1261
1328
|
white: {
|
|
1262
|
-
pressedBackgroundColor: button.white.hoverBackgroundColor
|
|
1329
|
+
pressedBackgroundColor: button.white["default"].hoverBackgroundColor
|
|
1263
1330
|
}
|
|
1264
1331
|
};
|
|
1265
1332
|
|
|
@@ -1270,6 +1337,10 @@ var listItem = {
|
|
|
1270
1337
|
innerMargin: 8
|
|
1271
1338
|
};
|
|
1272
1339
|
|
|
1340
|
+
var pageLoader = {
|
|
1341
|
+
size: 60
|
|
1342
|
+
};
|
|
1343
|
+
|
|
1273
1344
|
var shadows = {
|
|
1274
1345
|
medium: '0px 10px 20px rgba(41, 48, 51, 0.25)'
|
|
1275
1346
|
};
|
|
@@ -1360,19 +1431,20 @@ var theme = {
|
|
|
1360
1431
|
lateOcean: lateOceanColorPalette
|
|
1361
1432
|
},
|
|
1362
1433
|
avatar: avatar,
|
|
1434
|
+
breakpoints: breakpoints,
|
|
1363
1435
|
button: button,
|
|
1364
1436
|
card: card,
|
|
1365
1437
|
feedbackMessage: feedbackMessage,
|
|
1366
1438
|
forms: forms,
|
|
1367
|
-
typography: typography,
|
|
1368
|
-
tag: tag,
|
|
1369
|
-
shadows: shadows,
|
|
1370
1439
|
fullScreenModal: fullScreenModal,
|
|
1371
1440
|
iconButton: iconButton,
|
|
1372
1441
|
listItem: listItem,
|
|
1373
|
-
|
|
1442
|
+
pageLoader: pageLoader,
|
|
1443
|
+
shadows: shadows,
|
|
1374
1444
|
skeleton: skeleton,
|
|
1375
|
-
|
|
1445
|
+
tag: tag,
|
|
1446
|
+
tooltip: tooltip,
|
|
1447
|
+
typography: typography
|
|
1376
1448
|
};
|
|
1377
1449
|
|
|
1378
1450
|
function matchWindowSize(_ref, _ref2) {
|
|
@@ -1675,12 +1747,12 @@ function DatePickerInputs(_ref4) {
|
|
|
1675
1747
|
});
|
|
1676
1748
|
}
|
|
1677
1749
|
|
|
1678
|
-
var _excluded$
|
|
1750
|
+
var _excluded$a = ["value"];
|
|
1679
1751
|
// This is not yet implemented
|
|
1680
1752
|
// We still display the inputs for chromatic
|
|
1681
1753
|
function DatePicker(_ref) {
|
|
1682
1754
|
var value = _ref.value,
|
|
1683
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1755
|
+
props = _objectWithoutProperties(_ref, _excluded$a);
|
|
1684
1756
|
|
|
1685
1757
|
return /*#__PURE__*/jsx(DatePickerInputs, _objectSpread({
|
|
1686
1758
|
handleModalOpen: function handleModalOpen() {},
|
|
@@ -1720,7 +1792,7 @@ var InputTextContainer = withTheme( /*#__PURE__*/styled$1("div")({
|
|
|
1720
1792
|
}
|
|
1721
1793
|
}));
|
|
1722
1794
|
|
|
1723
|
-
var _excluded$
|
|
1795
|
+
var _excluded$9 = ["id", "right", "minHeight", "state", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoCompleteType", "keyboardType", "onFocus", "onBlur"];
|
|
1724
1796
|
var StyledTextInput = /*#__PURE__*/styled(TextInput).withConfig({
|
|
1725
1797
|
displayName: "InputText__StyledTextInput",
|
|
1726
1798
|
componentId: "kitt-universal__sc-uke279-0"
|
|
@@ -1766,7 +1838,7 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref4, ref) {
|
|
|
1766
1838
|
keyboardType = _ref4$keyboardType === void 0 ? 'default' : _ref4$keyboardType,
|
|
1767
1839
|
_onFocus = _ref4.onFocus,
|
|
1768
1840
|
_onBlur = _ref4.onBlur,
|
|
1769
|
-
props = _objectWithoutProperties(_ref4, _excluded$
|
|
1841
|
+
props = _objectWithoutProperties(_ref4, _excluded$9);
|
|
1770
1842
|
|
|
1771
1843
|
var theme = /*#__PURE__*/useTheme();
|
|
1772
1844
|
|
|
@@ -1918,11 +1990,11 @@ function InputPressable(_ref) {
|
|
|
1918
1990
|
return /*#__PURE__*/jsx(Pressable, _objectSpread({}, props));
|
|
1919
1991
|
}
|
|
1920
1992
|
|
|
1921
|
-
var _excluded$
|
|
1993
|
+
var _excluded$8 = ["isPasswordDefaultVisible", "right"];
|
|
1922
1994
|
function InputPassword(_ref) {
|
|
1923
1995
|
var isPasswordDefaultVisible = _ref.isPasswordDefaultVisible,
|
|
1924
1996
|
right = _ref.right,
|
|
1925
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1997
|
+
props = _objectWithoutProperties(_ref, _excluded$8);
|
|
1926
1998
|
|
|
1927
1999
|
var _useState = useState(Boolean(isPasswordDefaultVisible)),
|
|
1928
2000
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -2300,28 +2372,20 @@ var StyledSpinningIconContainer = withTheme( /*#__PURE__*/styled$1("div")({
|
|
|
2300
2372
|
}));
|
|
2301
2373
|
function SpinningIcon(_ref) {
|
|
2302
2374
|
var icon = _ref.icon,
|
|
2303
|
-
_ref$size = _ref.size,
|
|
2304
|
-
size = _ref$size === void 0 ? defaultIconSize : _ref$size,
|
|
2305
|
-
align = _ref.align,
|
|
2306
2375
|
color = _ref.color;
|
|
2307
2376
|
var clonedIcon = /*#__PURE__*/cloneElement(icon, {
|
|
2308
2377
|
color: color
|
|
2309
2378
|
});
|
|
2310
|
-
return /*#__PURE__*/jsx(
|
|
2311
|
-
|
|
2312
|
-
$size: size,
|
|
2313
|
-
$color: color,
|
|
2314
|
-
children: /*#__PURE__*/jsx(StyledSpinningIconContainer, {
|
|
2315
|
-
children: clonedIcon
|
|
2316
|
-
})
|
|
2379
|
+
return /*#__PURE__*/jsx(StyledSpinningIconContainer, {
|
|
2380
|
+
children: clonedIcon
|
|
2317
2381
|
});
|
|
2318
2382
|
}
|
|
2319
2383
|
|
|
2320
|
-
var _excluded$
|
|
2384
|
+
var _excluded$7 = ["as", "children"];
|
|
2321
2385
|
function StyleWebWrapper(_ref) {
|
|
2322
2386
|
var as = _ref.as,
|
|
2323
2387
|
children = _ref.children,
|
|
2324
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2388
|
+
props = _objectWithoutProperties(_ref, _excluded$7);
|
|
2325
2389
|
|
|
2326
2390
|
// as or default to div. If as is undefined, T is div but typescript is not sure
|
|
2327
2391
|
return /*#__PURE__*/jsx(as || 'div', _objectSpread(_objectSpread({}, props), {}, {
|
|
@@ -2329,7 +2393,7 @@ function StyleWebWrapper(_ref) {
|
|
|
2329
2393
|
}));
|
|
2330
2394
|
}
|
|
2331
2395
|
|
|
2332
|
-
var _excluded$
|
|
2396
|
+
var _excluded$6 = ["color", "disabled"];
|
|
2333
2397
|
var PressableIconButtonWebWrapper = withTheme( /*#__PURE__*/styled$1("div")({
|
|
2334
2398
|
name: "PressableIconButtonWebWrapper",
|
|
2335
2399
|
"class": "kitt-u_PressableIconButtonWebWrapper_p1nlccvg",
|
|
@@ -2389,7 +2453,7 @@ var StyledPressableIconButton = /*#__PURE__*/styled(Pressable).withConfig({
|
|
|
2389
2453
|
function PressableIconButton(_ref9) {
|
|
2390
2454
|
var color = _ref9.color,
|
|
2391
2455
|
disabled = _ref9.disabled,
|
|
2392
|
-
props = _objectWithoutProperties(_ref9, _excluded$
|
|
2456
|
+
props = _objectWithoutProperties(_ref9, _excluded$6);
|
|
2393
2457
|
|
|
2394
2458
|
return /*#__PURE__*/jsx(StyleWebWrapper, {
|
|
2395
2459
|
as: PressableIconButtonWebWrapper,
|
|
@@ -2472,22 +2536,22 @@ function IconButton(_ref7) {
|
|
|
2472
2536
|
});
|
|
2473
2537
|
}
|
|
2474
2538
|
|
|
2475
|
-
var _excluded$
|
|
2539
|
+
var _excluded$5 = ["children"];
|
|
2476
2540
|
var ContentView$1 = /*#__PURE__*/styled(View).withConfig({
|
|
2477
2541
|
displayName: "ListItemContent__ContentView",
|
|
2478
2542
|
componentId: "kitt-universal__sc-57q0u9-0"
|
|
2479
2543
|
})(["flex:1 0 0%;align-self:center;"]);
|
|
2480
2544
|
function ListItemContent(_ref) {
|
|
2481
2545
|
var children = _ref.children,
|
|
2482
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
2546
|
+
rest = _objectWithoutProperties(_ref, _excluded$5);
|
|
2483
2547
|
|
|
2484
2548
|
return /*#__PURE__*/jsx(ContentView$1, _objectSpread(_objectSpread({}, rest), {}, {
|
|
2485
2549
|
children: children
|
|
2486
2550
|
}));
|
|
2487
2551
|
}
|
|
2488
2552
|
|
|
2489
|
-
var _excluded$
|
|
2490
|
-
_excluded2$
|
|
2553
|
+
var _excluded$4 = ["children", "side"],
|
|
2554
|
+
_excluded2$1 = ["children", "align"];
|
|
2491
2555
|
var SideContainerView = /*#__PURE__*/styled(View).withConfig({
|
|
2492
2556
|
displayName: "ListItemSideContent__SideContainerView",
|
|
2493
2557
|
componentId: "kitt-universal__sc-1vajiw-0"
|
|
@@ -2505,7 +2569,7 @@ function ListItemSideContainer(_ref3) {
|
|
|
2505
2569
|
var children = _ref3.children,
|
|
2506
2570
|
_ref3$side = _ref3.side,
|
|
2507
2571
|
side = _ref3$side === void 0 ? 'left' : _ref3$side,
|
|
2508
|
-
rest = _objectWithoutProperties(_ref3, _excluded$
|
|
2572
|
+
rest = _objectWithoutProperties(_ref3, _excluded$4);
|
|
2509
2573
|
|
|
2510
2574
|
return /*#__PURE__*/jsx(SideContainerView, _objectSpread(_objectSpread({
|
|
2511
2575
|
side: side
|
|
@@ -2524,7 +2588,7 @@ function ListItemSideContent(_ref5) {
|
|
|
2524
2588
|
var children = _ref5.children,
|
|
2525
2589
|
_ref5$align = _ref5.align,
|
|
2526
2590
|
align = _ref5$align === void 0 ? 'auto' : _ref5$align,
|
|
2527
|
-
rest = _objectWithoutProperties(_ref5, _excluded2$
|
|
2591
|
+
rest = _objectWithoutProperties(_ref5, _excluded2$1);
|
|
2528
2592
|
|
|
2529
2593
|
return /*#__PURE__*/jsx(SideContentView, _objectSpread(_objectSpread({
|
|
2530
2594
|
align: align
|
|
@@ -2533,7 +2597,7 @@ function ListItemSideContent(_ref5) {
|
|
|
2533
2597
|
}));
|
|
2534
2598
|
}
|
|
2535
2599
|
|
|
2536
|
-
var _excluded$
|
|
2600
|
+
var _excluded$3 = ["children", "withPadding", "borders", "left", "right", "onPress"];
|
|
2537
2601
|
var ContainerView = /*#__PURE__*/styled(View).withConfig({
|
|
2538
2602
|
displayName: "ListItem__ContainerView",
|
|
2539
2603
|
componentId: "kitt-universal__sc-2afp9s-0"
|
|
@@ -2573,7 +2637,7 @@ function ListItem(_ref5) {
|
|
|
2573
2637
|
left = _ref5.left,
|
|
2574
2638
|
right = _ref5.right,
|
|
2575
2639
|
onPress = _ref5.onPress,
|
|
2576
|
-
rest = _objectWithoutProperties(_ref5, _excluded$
|
|
2640
|
+
rest = _objectWithoutProperties(_ref5, _excluded$3);
|
|
2577
2641
|
|
|
2578
2642
|
var Wrapper = onPress ? Pressable : Fragment;
|
|
2579
2643
|
var wrapperProps = onPress ? _objectSpread({
|
|
@@ -2602,88 +2666,11 @@ ListItem.Content = ListItemContent;
|
|
|
2602
2666
|
ListItem.SideContent = ListItemSideContent;
|
|
2603
2667
|
ListItem.SideContainer = ListItemSideContainer;
|
|
2604
2668
|
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
vars: {
|
|
2609
|
-
"l2im3sa-0": [function (_ref) {
|
|
2610
|
-
var theme = _ref.theme;
|
|
2611
|
-
return theme.kitt.colors.separator;
|
|
2612
|
-
}],
|
|
2613
|
-
"l2im3sa-1": [function (_ref2) {
|
|
2614
|
-
var theme = _ref2.theme;
|
|
2615
|
-
return theme.kitt.colors.primary;
|
|
2616
|
-
}]
|
|
2617
|
-
}
|
|
2618
|
-
}));
|
|
2619
|
-
function LargeLoader() {
|
|
2620
|
-
return /*#__PURE__*/jsx(LargeLoaderContainer, {
|
|
2621
|
-
children: /*#__PURE__*/jsxs("svg", {
|
|
2622
|
-
width: "60",
|
|
2623
|
-
height: "60",
|
|
2624
|
-
children: [/*#__PURE__*/jsx("g", {
|
|
2625
|
-
"data-large-loader": "base",
|
|
2626
|
-
children: /*#__PURE__*/jsx("circle", {
|
|
2627
|
-
cx: "30",
|
|
2628
|
-
cy: "30",
|
|
2629
|
-
r: "27",
|
|
2630
|
-
fill: "none"
|
|
2631
|
-
})
|
|
2632
|
-
}), /*#__PURE__*/jsx("g", {
|
|
2633
|
-
"data-large-loader": "fill",
|
|
2634
|
-
children: /*#__PURE__*/jsx("circle", {
|
|
2635
|
-
cx: "30",
|
|
2636
|
-
cy: "30",
|
|
2637
|
-
r: "27",
|
|
2638
|
-
fill: "none"
|
|
2639
|
-
})
|
|
2640
|
-
})]
|
|
2641
|
-
})
|
|
2642
|
-
});
|
|
2643
|
-
}
|
|
2644
|
-
|
|
2645
|
-
var _excluded$3 = ["color"],
|
|
2646
|
-
_excluded2$1 = ["color"];
|
|
2647
|
-
|
|
2648
|
-
function TypographySpinningIconSpecifiedColor(_ref) {
|
|
2649
|
-
var color = _ref.color,
|
|
2650
|
-
props = _objectWithoutProperties(_ref, _excluded$3);
|
|
2651
|
-
|
|
2652
|
-
var theme = /*#__PURE__*/useTheme();
|
|
2653
|
-
return /*#__PURE__*/jsx(SpinningIcon, _objectSpread(_objectSpread({}, props), {}, {
|
|
2654
|
-
color: color === 'inherit' ? 'inherit' : theme.kitt.typography.colors[color]
|
|
2655
|
-
}));
|
|
2656
|
-
}
|
|
2657
|
-
|
|
2658
|
-
function TypographySpinningIconInheritColor(props) {
|
|
2659
|
-
var color = useTypographyColor();
|
|
2660
|
-
return /*#__PURE__*/jsx(TypographySpinningIconSpecifiedColor, _objectSpread({
|
|
2661
|
-
color: color
|
|
2662
|
-
}, props));
|
|
2663
|
-
}
|
|
2664
|
-
|
|
2665
|
-
function TypographySpinningIcon(_ref2) {
|
|
2666
|
-
var color = _ref2.color,
|
|
2667
|
-
props = _objectWithoutProperties(_ref2, _excluded2$1);
|
|
2668
|
-
|
|
2669
|
-
if (color) {
|
|
2670
|
-
return /*#__PURE__*/jsx(TypographySpinningIconSpecifiedColor, _objectSpread({
|
|
2671
|
-
color: color
|
|
2672
|
-
}, props));
|
|
2673
|
-
}
|
|
2674
|
-
|
|
2675
|
-
return /*#__PURE__*/jsx(TypographySpinningIconInheritColor, _objectSpread({}, props));
|
|
2676
|
-
}
|
|
2677
|
-
|
|
2678
|
-
function Loader(_ref) {
|
|
2679
|
-
var _ref$color = _ref.color,
|
|
2680
|
-
color = _ref$color === void 0 ? 'primary' : _ref$color,
|
|
2681
|
-
_ref$size = _ref.size,
|
|
2682
|
-
size = _ref$size === void 0 ? 20 : _ref$size;
|
|
2683
|
-
return /*#__PURE__*/jsx(TypographySpinningIcon, {
|
|
2669
|
+
function LoaderIcon(_ref) {
|
|
2670
|
+
var color = _ref.color;
|
|
2671
|
+
return /*#__PURE__*/jsx(SpinningIcon, {
|
|
2684
2672
|
color: color,
|
|
2685
|
-
|
|
2686
|
-
icon: /*#__PURE__*/jsx(LoaderIcon, {})
|
|
2673
|
+
icon: /*#__PURE__*/jsx(ArcIcon, {})
|
|
2687
2674
|
});
|
|
2688
2675
|
}
|
|
2689
2676
|
|
|
@@ -2857,8 +2844,7 @@ function Overlay(_ref2) {
|
|
|
2857
2844
|
var onPress = _ref2.onPress;
|
|
2858
2845
|
return /*#__PURE__*/jsx(OverlayPressable, {
|
|
2859
2846
|
accessibilityRole: "none",
|
|
2860
|
-
onPress: onPress
|
|
2861
|
-
children: /*#__PURE__*/jsx(View, {})
|
|
2847
|
+
onPress: onPress
|
|
2862
2848
|
});
|
|
2863
2849
|
}
|
|
2864
2850
|
|
|
@@ -3026,6 +3012,48 @@ function Notification(_ref) {
|
|
|
3026
3012
|
});
|
|
3027
3013
|
}
|
|
3028
3014
|
|
|
3015
|
+
var PageLoaderContainer = withTheme( /*#__PURE__*/styled$1("div")({
|
|
3016
|
+
name: "PageLoaderContainer",
|
|
3017
|
+
"class": "kitt-u_PageLoaderContainer_ptkwz2j",
|
|
3018
|
+
vars: {
|
|
3019
|
+
"ptkwz2j-0": [function (_ref) {
|
|
3020
|
+
var theme = _ref.theme;
|
|
3021
|
+
return theme.kitt.colors.separator;
|
|
3022
|
+
}],
|
|
3023
|
+
"ptkwz2j-1": [function (_ref2) {
|
|
3024
|
+
var theme = _ref2.theme;
|
|
3025
|
+
return theme.kitt.colors.primary;
|
|
3026
|
+
}]
|
|
3027
|
+
}
|
|
3028
|
+
}));
|
|
3029
|
+
function PageLoader() {
|
|
3030
|
+
var theme = /*#__PURE__*/useTheme();
|
|
3031
|
+
var size = theme.kitt.pageLoader.size;
|
|
3032
|
+
return /*#__PURE__*/jsx(PageLoaderContainer, {
|
|
3033
|
+
children: /*#__PURE__*/jsxs("svg", {
|
|
3034
|
+
width: size,
|
|
3035
|
+
height: size,
|
|
3036
|
+
children: [/*#__PURE__*/jsx("g", {
|
|
3037
|
+
"data-large-loader": "base",
|
|
3038
|
+
children: /*#__PURE__*/jsx("circle", {
|
|
3039
|
+
cx: "30",
|
|
3040
|
+
cy: "30",
|
|
3041
|
+
r: "27",
|
|
3042
|
+
fill: "none"
|
|
3043
|
+
})
|
|
3044
|
+
}), /*#__PURE__*/jsx("g", {
|
|
3045
|
+
"data-large-loader": "fill",
|
|
3046
|
+
children: /*#__PURE__*/jsx("circle", {
|
|
3047
|
+
cx: "30",
|
|
3048
|
+
cy: "30",
|
|
3049
|
+
r: "27",
|
|
3050
|
+
fill: "none"
|
|
3051
|
+
})
|
|
3052
|
+
})]
|
|
3053
|
+
})
|
|
3054
|
+
});
|
|
3055
|
+
}
|
|
3056
|
+
|
|
3029
3057
|
var StyledSkeleton = withTheme( /*#__PURE__*/styled$1("div")({
|
|
3030
3058
|
name: "StyledSkeleton",
|
|
3031
3059
|
"class": "kitt-u_StyledSkeleton_sc3upcl",
|
|
@@ -3857,5 +3885,5 @@ function MatchWindowSize(_ref) {
|
|
|
3857
3885
|
return children;
|
|
3858
3886
|
}
|
|
3859
3887
|
|
|
3860
|
-
export { Avatar, Button, Card, Checkbox, DatePicker, Emoji, ExternalLink, Flex, FullScreenModal, Icon, IconButton, InputEmail, InputFeedback, InputField, InputIcon, InputPassword, InputPhone, InputPressable, InputTag, InputText, KittBreakpoints, KittBreakpointsMax, KittThemeDecorator, KittThemeProvider, Label,
|
|
3888
|
+
export { Avatar, Button, Card, Checkbox, DatePicker, Emoji, ExternalLink, Flex, FullScreenModal, Icon, IconButton, InputEmail, InputFeedback, InputField, InputIcon, InputPassword, InputPhone, InputPressable, InputTag, InputText, KittBreakpoints, KittBreakpointsMax, KittThemeDecorator, KittThemeProvider, Label, ListItem, LoaderIcon, MatchWindowSize, Message, Modal, Notification, Overlay, PageLoader, Radio, DeprecatedSection as Section, Skeleton, SpinningIcon, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, Tag, TextArea, TimePicker, Tooltip, Typography, TypographyEmoji, TypographyIcon, TypographyLink, createWindowSizeHelper, hex2rgba, matchWindowSize, styledTextInputMixin, theme, useKittTheme, useMatchWindowSize, useStoryBlockColor, withTheme };
|
|
3861
3889
|
//# sourceMappingURL=index-browser-all.es.web.js.map
|