@ornikar/kitt-universal 1.0.1 → 1.0.2
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/.stylelintrc +3 -0
- package/dist/index-browser-all.es.android.js +16 -19
- package/dist/index-browser-all.es.android.js.map +1 -1
- package/dist/index-browser-all.es.ios.js +17 -20
- package/dist/index-browser-all.es.ios.js.map +1 -1
- package/dist/index-browser-all.es.js +225 -99
- package/dist/index-browser-all.es.js.map +1 -1
- package/dist/index-browser-all.es.web.js +236 -110
- package/dist/index-browser-all.es.web.js.map +1 -1
- package/dist/index-node-14.17.cjs.js +324 -411
- package/dist/index-node-14.17.cjs.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import _extends from '@babel/runtime/helpers/extends';
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
|
-
import _taggedTemplateLiteral from '@babel/runtime/helpers/taggedTemplateLiteral';
|
|
4
3
|
import { UserIcon, EyeIcon, EyeOffIcon, XIcon, InfoIcon, AlertTriangleIcon, CheckIcon, AlertCircleIcon } from '@ornikar/kitt-icons';
|
|
5
4
|
export * from '@ornikar/kitt-icons';
|
|
6
5
|
import React, { useRef, useEffect, useContext, createContext, useState, forwardRef, useMemo } from 'react';
|
|
7
|
-
import { Animated, Easing, Image, Platform, useWindowDimensions, Pressable, ActivityIndicator,
|
|
6
|
+
import { Animated, Easing, Image, Platform, useWindowDimensions, Pressable, ActivityIndicator, View, StyleSheet, ScrollView, Modal as Modal$1 } from 'react-native';
|
|
8
7
|
export { useWindowDimensions as useWindowSize } from 'react-native';
|
|
9
8
|
import styled, { useTheme, css } from 'styled-components/native';
|
|
10
9
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
@@ -42,8 +41,10 @@ function SpinningIcon(_ref) {
|
|
|
42
41
|
}, children);
|
|
43
42
|
}
|
|
44
43
|
|
|
45
|
-
var
|
|
46
|
-
|
|
44
|
+
var IconContainer$2 = /*#__PURE__*/styled.View.withConfig({
|
|
45
|
+
displayName: "Icon__IconContainer",
|
|
46
|
+
componentId: "kitt-universal__sc-usm0ol-0"
|
|
47
|
+
})(["color:", ";width:", "px;height:", "px;align-self:", ";"], function (_ref) {
|
|
47
48
|
var color = _ref.color;
|
|
48
49
|
return color;
|
|
49
50
|
}, function (_ref2) {
|
|
@@ -75,14 +76,15 @@ function Icon(_ref5) {
|
|
|
75
76
|
}
|
|
76
77
|
|
|
77
78
|
var _excluded$9 = ["accessibilityRole", "base", "variant", "color"];
|
|
78
|
-
|
|
79
|
-
var _templateObject$o;
|
|
80
79
|
var TypographyTypeContext = /*#__PURE__*/createContext(undefined);
|
|
81
80
|
var TypographyColorContext = /*#__PURE__*/createContext('black');
|
|
82
81
|
function useTypographyColor() {
|
|
83
82
|
return useContext(TypographyColorContext);
|
|
84
83
|
}
|
|
85
|
-
var StyledTypography = styled.Text(
|
|
84
|
+
var StyledTypography = /*#__PURE__*/styled.Text.withConfig({
|
|
85
|
+
displayName: "Typography__StyledTypography",
|
|
86
|
+
componentId: "kitt-universal__sc-1dz700q-0"
|
|
87
|
+
})(["", " ", ""], function (_ref) {
|
|
86
88
|
var theme = _ref.theme,
|
|
87
89
|
isHeader = _ref.isHeader,
|
|
88
90
|
type = _ref.type,
|
|
@@ -175,8 +177,6 @@ Typography.h5 = createHeading('5');
|
|
|
175
177
|
|
|
176
178
|
var _excluded$8 = ["size"];
|
|
177
179
|
|
|
178
|
-
var _templateObject$n;
|
|
179
|
-
|
|
180
180
|
var getFirstCharacter = function (string) {
|
|
181
181
|
return string ? string[0] : '';
|
|
182
182
|
};
|
|
@@ -185,7 +185,10 @@ var getInitials = function (firstname, lastname) {
|
|
|
185
185
|
return (getFirstCharacter(firstname) + getFirstCharacter(lastname)).toUpperCase();
|
|
186
186
|
};
|
|
187
187
|
|
|
188
|
-
var StyledAvatarView = styled.View(
|
|
188
|
+
var StyledAvatarView = /*#__PURE__*/styled.View.withConfig({
|
|
189
|
+
displayName: "Avatar__StyledAvatarView",
|
|
190
|
+
componentId: "kitt-universal__sc-9miubv-0"
|
|
191
|
+
})(["border-radius:", "px;background-color:", ";height:", "px;width:", "px;overflow:hidden;align-items:center;justify-content:center;"], function (_ref) {
|
|
189
192
|
var round = _ref.round,
|
|
190
193
|
size = _ref.size;
|
|
191
194
|
return round ? size / 2 : 10;
|
|
@@ -248,8 +251,10 @@ function Avatar(_ref6) {
|
|
|
248
251
|
})));
|
|
249
252
|
}
|
|
250
253
|
|
|
251
|
-
var
|
|
252
|
-
|
|
254
|
+
var ButtonContainer = /*#__PURE__*/styled.Pressable.withConfig({
|
|
255
|
+
displayName: "ButtonContainer",
|
|
256
|
+
componentId: "kitt-universal__sc-ofbpwm-0"
|
|
257
|
+
})(["min-width:", ";max-width:", ";width:", ";min-height:", ";background-color:", ";padding:", ";flex-direction:row;align-self:flex-start;border-radius:", ";border-color:", ";border-width:", ";"], function (_ref) {
|
|
253
258
|
var theme = _ref.theme;
|
|
254
259
|
return theme.kitt.button.minWidth;
|
|
255
260
|
}, function (_ref2) {
|
|
@@ -294,7 +299,7 @@ var _excluded$7 = ["color"],
|
|
|
294
299
|
|
|
295
300
|
function TypographyIconInheritColor(props) {
|
|
296
301
|
var color = useTypographyColor();
|
|
297
|
-
var theme = useTheme();
|
|
302
|
+
var theme = /*#__PURE__*/useTheme();
|
|
298
303
|
return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
|
|
299
304
|
color: theme.kitt.typography.colors[color]
|
|
300
305
|
}));
|
|
@@ -304,7 +309,7 @@ function TypographyIconSpecifiedColor(_ref) {
|
|
|
304
309
|
var color = _ref.color,
|
|
305
310
|
otherProps = _objectWithoutProperties(_ref, _excluded$7);
|
|
306
311
|
|
|
307
|
-
var theme = useTheme();
|
|
312
|
+
var theme = /*#__PURE__*/useTheme();
|
|
308
313
|
return /*#__PURE__*/React.createElement(Icon, _extends({}, otherProps, {
|
|
309
314
|
color: theme.kitt.typography.colors[color]
|
|
310
315
|
}));
|
|
@@ -323,8 +328,6 @@ function TypographyIcon(_ref2) {
|
|
|
323
328
|
return /*#__PURE__*/React.createElement(TypographyIconInheritColor, otherProps);
|
|
324
329
|
}
|
|
325
330
|
|
|
326
|
-
var _templateObject$l, _templateObject2$b, _templateObject3$8;
|
|
327
|
-
|
|
328
331
|
var getTextColorByType = function (type, isPressed, disabled) {
|
|
329
332
|
if (disabled) return 'black-light';
|
|
330
333
|
|
|
@@ -344,13 +347,22 @@ var getTextColorByType = function (type, isPressed, disabled) {
|
|
|
344
347
|
}
|
|
345
348
|
};
|
|
346
349
|
|
|
347
|
-
var ButtonText = styled(Typography.Text)(
|
|
348
|
-
|
|
350
|
+
var ButtonText = /*#__PURE__*/styled(Typography.Text).withConfig({
|
|
351
|
+
displayName: "ButtonContent__ButtonText",
|
|
352
|
+
componentId: "kitt-universal__sc-dnyw3n-0"
|
|
353
|
+
})(["text-align:center;"]);
|
|
354
|
+
var Content$1 = /*#__PURE__*/styled.View.withConfig({
|
|
355
|
+
displayName: "ButtonContent__Content",
|
|
356
|
+
componentId: "kitt-universal__sc-dnyw3n-1"
|
|
357
|
+
})(["flex-direction:row;align-items:center;justify-content:center;flex:", ";"], function (_ref) {
|
|
349
358
|
var stretch = _ref.stretch,
|
|
350
359
|
iconOnly = _ref.iconOnly;
|
|
351
360
|
return "".concat(stretch || iconOnly ? 1 : 0, " 1 auto");
|
|
352
361
|
});
|
|
353
|
-
var IconContainer$1 = styled.View(
|
|
362
|
+
var IconContainer$1 = /*#__PURE__*/styled.View.withConfig({
|
|
363
|
+
displayName: "ButtonContent__IconContainer",
|
|
364
|
+
componentId: "kitt-universal__sc-dnyw3n-2"
|
|
365
|
+
})(["", ""], function (_ref2) {
|
|
354
366
|
var theme = _ref2.theme,
|
|
355
367
|
iconPosition = _ref2.iconPosition;
|
|
356
368
|
var value = theme.kitt.spacing * 3;
|
|
@@ -390,7 +402,7 @@ function ButtonContent(_ref4) {
|
|
|
390
402
|
disabled = _ref4.disabled,
|
|
391
403
|
children = _ref4.children;
|
|
392
404
|
var color = getTextColorByType(type, Boolean(isPressed), Boolean(disabled));
|
|
393
|
-
var theme = useTheme();
|
|
405
|
+
var theme = /*#__PURE__*/useTheme();
|
|
394
406
|
var sharedIconProps = {
|
|
395
407
|
spin: iconSpin,
|
|
396
408
|
color: color,
|
|
@@ -485,8 +497,10 @@ function Button(_ref) {
|
|
|
485
497
|
}), children));
|
|
486
498
|
}
|
|
487
499
|
|
|
488
|
-
var
|
|
489
|
-
|
|
500
|
+
var Container$5 = /*#__PURE__*/styled.View.withConfig({
|
|
501
|
+
displayName: "Card__Container",
|
|
502
|
+
componentId: "kitt-universal__sc-1n9psug-0"
|
|
503
|
+
})(["background-color:", ";padding:", ";border-radius:", ";border-width:", ";border-color:", ";"], function (_ref) {
|
|
490
504
|
var theme = _ref.theme,
|
|
491
505
|
type = _ref.type;
|
|
492
506
|
return theme.kitt.card[type].backgroundColor;
|
|
@@ -581,19 +595,30 @@ var KittBreakpointsMax = {
|
|
|
581
595
|
LARGE: KittBreakpoints.WIDE - 1
|
|
582
596
|
};
|
|
583
597
|
|
|
584
|
-
var
|
|
585
|
-
|
|
586
|
-
|
|
598
|
+
var FieldContainer = /*#__PURE__*/styled.View.withConfig({
|
|
599
|
+
displayName: "InputField__FieldContainer",
|
|
600
|
+
componentId: "kitt-universal__sc-13fkixs-0"
|
|
601
|
+
})(["padding:5px 0 10px;"]);
|
|
602
|
+
var FeedbackContainer = /*#__PURE__*/styled.View.withConfig({
|
|
603
|
+
displayName: "InputField__FeedbackContainer",
|
|
604
|
+
componentId: "kitt-universal__sc-13fkixs-1"
|
|
605
|
+
})(["", ";"], function (_ref) {
|
|
587
606
|
var theme = _ref.theme;
|
|
588
607
|
return theme.responsive.ifWindowSizeMatches({
|
|
589
608
|
minWidth: KittBreakpoints.SMALL
|
|
590
609
|
}, 'padding-top: 10px', 'padding-top: 5px');
|
|
591
610
|
});
|
|
592
|
-
var FieldLabelContainer = styled.View(
|
|
611
|
+
var FieldLabelContainer = /*#__PURE__*/styled.View.withConfig({
|
|
612
|
+
displayName: "InputField__FieldLabelContainer",
|
|
613
|
+
componentId: "kitt-universal__sc-13fkixs-2"
|
|
614
|
+
})(["flex-direction:row;align-items:center;padding-bottom:", "px;"], function (_ref2) {
|
|
593
615
|
var theme = _ref2.theme;
|
|
594
616
|
return theme.kitt.forms.inputField.labelContainerPaddingBottom;
|
|
595
617
|
});
|
|
596
|
-
var LabelContainer = styled.View(
|
|
618
|
+
var LabelContainer = /*#__PURE__*/styled.View.withConfig({
|
|
619
|
+
displayName: "InputField__LabelContainer",
|
|
620
|
+
componentId: "kitt-universal__sc-13fkixs-3"
|
|
621
|
+
})(["margin-right:", "px;"], function (_ref3) {
|
|
597
622
|
var theme = _ref3.theme;
|
|
598
623
|
return theme.kitt.forms.inputField.iconMarginLeft;
|
|
599
624
|
});
|
|
@@ -634,9 +659,7 @@ var useInputText = function () {
|
|
|
634
659
|
};
|
|
635
660
|
|
|
636
661
|
var _excluded$6 = ["id", "minHeight", "type", "state", "internalForceState", "disabled", "onFocus", "onBlur"];
|
|
637
|
-
|
|
638
|
-
var _templateObject$i, _templateObject2$9, _templateObject3$6, _templateObject4$4;
|
|
639
|
-
var styledTextInputMixin = css(_templateObject$i || (_templateObject$i = _taggedTemplateLiteral(["\n /* stylelint-disable declaration-property-value-allowed-list */\n background-color: ", ";\n border-width: ", ";\n border-radius: ", ";\n border-color: ", ";\n font-size: ", ";\n color: ", ";\n font-family: ", ";\n"])), function (_ref) {
|
|
662
|
+
var styledTextInputMixin = /*#__PURE__*/css(["background-color:", ";border-width:", ";border-radius:", ";border-color:", ";font-size:", ";color:", ";font-family:", ";"], function (_ref) {
|
|
640
663
|
var theme = _ref.theme,
|
|
641
664
|
state = _ref.state;
|
|
642
665
|
return state === 'disabled' ? theme.kitt.forms.input.states.disabled.backgroundColor : theme.kitt.forms.input.states["default"].backgroundColor;
|
|
@@ -661,7 +684,10 @@ var styledTextInputMixin = css(_templateObject$i || (_templateObject$i = _tagged
|
|
|
661
684
|
var theme = _ref7.theme;
|
|
662
685
|
return theme.kitt.typography.types.bodies.fontFamily.regular;
|
|
663
686
|
});
|
|
664
|
-
var Input = styled.TextInput(
|
|
687
|
+
var Input = /*#__PURE__*/styled.TextInput.withConfig({
|
|
688
|
+
displayName: "InputText__Input",
|
|
689
|
+
componentId: "kitt-universal__sc-uke279-0"
|
|
690
|
+
})(["", " padding:", ";line-height:", ";min-height:", "px;"], styledTextInputMixin, function (_ref8) {
|
|
665
691
|
var theme = _ref8.theme,
|
|
666
692
|
multiline = _ref8.multiline;
|
|
667
693
|
return !multiline && Platform.OS === 'ios' ? theme.kitt.forms.input.paddingSingleLineIOS : theme.kitt.forms.input.padding;
|
|
@@ -673,14 +699,20 @@ var Input = styled.TextInput(_templateObject2$9 || (_templateObject2$9 = _tagged
|
|
|
673
699
|
var minHeight = _ref10.minHeight;
|
|
674
700
|
return minHeight;
|
|
675
701
|
});
|
|
676
|
-
var Container$4 = styled.View(
|
|
702
|
+
var Container$4 = /*#__PURE__*/styled.View.withConfig({
|
|
703
|
+
displayName: "InputText__Container",
|
|
704
|
+
componentId: "kitt-universal__sc-uke279-1"
|
|
705
|
+
})(["margin-top:", ";margin-bottom:", ";"], function (_ref11) {
|
|
677
706
|
var theme = _ref11.theme;
|
|
678
707
|
return theme.kitt.forms.input.marginTop;
|
|
679
708
|
}, function (_ref12) {
|
|
680
709
|
var theme = _ref12.theme;
|
|
681
710
|
return theme.kitt.forms.input.marginBottom;
|
|
682
711
|
});
|
|
683
|
-
var PasswordButtonContainer = styled.Pressable(
|
|
712
|
+
var PasswordButtonContainer = /*#__PURE__*/styled.Pressable.withConfig({
|
|
713
|
+
displayName: "InputText__PasswordButtonContainer",
|
|
714
|
+
componentId: "kitt-universal__sc-uke279-2"
|
|
715
|
+
})(["position:absolute;right:0;top:0;bottom:0;justify-content:center;padding:", "px;"], function (_ref13) {
|
|
684
716
|
var theme = _ref13.theme;
|
|
685
717
|
return theme.kitt.forms.input.passwordButtonIconSize / 2;
|
|
686
718
|
});
|
|
@@ -739,7 +771,7 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref15, ref) {
|
|
|
739
771
|
isPasswordVisible = _useInputText.isPasswordVisible,
|
|
740
772
|
togglePasswordVisibility = _useInputText.togglePasswordVisibility;
|
|
741
773
|
|
|
742
|
-
var theme = useTheme();
|
|
774
|
+
var theme = /*#__PURE__*/useTheme();
|
|
743
775
|
var state = internalForceState || getInputState({
|
|
744
776
|
isFocused: isFocused,
|
|
745
777
|
isDisabled: disabled,
|
|
@@ -786,8 +818,10 @@ function Label(_ref) {
|
|
|
786
818
|
}, children) : children);
|
|
787
819
|
}
|
|
788
820
|
|
|
789
|
-
var
|
|
790
|
-
|
|
821
|
+
var OuterRadio = /*#__PURE__*/styled.View.withConfig({
|
|
822
|
+
displayName: "Radio__OuterRadio",
|
|
823
|
+
componentId: "kitt-universal__sc-1mdgr2o-0"
|
|
824
|
+
})(["background-color:", ";width:", "px;height:", "px;border-radius:", "px;border-width:", ";border-color:", ";"], function (_ref) {
|
|
791
825
|
var theme = _ref.theme,
|
|
792
826
|
disabled = _ref.disabled;
|
|
793
827
|
return theme.kitt.forms.radio[disabled ? 'disabled' : 'unchecked'].backgroundColor;
|
|
@@ -808,7 +842,10 @@ var OuterRadio = styled.View(_templateObject$h || (_templateObject$h = _taggedTe
|
|
|
808
842
|
disabled = _ref6.disabled;
|
|
809
843
|
return theme.kitt.forms.radio[disabled ? 'disabled' : 'unchecked'].borderColor;
|
|
810
844
|
});
|
|
811
|
-
var SelectedOuterRadio = styled.View(
|
|
845
|
+
var SelectedOuterRadio = /*#__PURE__*/styled.View.withConfig({
|
|
846
|
+
displayName: "Radio__SelectedOuterRadio",
|
|
847
|
+
componentId: "kitt-universal__sc-1mdgr2o-1"
|
|
848
|
+
})(["background-color:", ";width:", "px;height:", "px;border-radius:", "px;justify-content:center;align-items:center;"], function (_ref7) {
|
|
812
849
|
var theme = _ref7.theme;
|
|
813
850
|
return theme.kitt.forms.radio.checked.backgroundColor;
|
|
814
851
|
}, function (_ref8) {
|
|
@@ -821,7 +858,10 @@ var SelectedOuterRadio = styled.View(_templateObject2$8 || (_templateObject2$8 =
|
|
|
821
858
|
var theme = _ref10.theme;
|
|
822
859
|
return theme.kitt.forms.radio.size / 2;
|
|
823
860
|
});
|
|
824
|
-
var SelectedInnerRadio = styled.View(
|
|
861
|
+
var SelectedInnerRadio = /*#__PURE__*/styled.View.withConfig({
|
|
862
|
+
displayName: "Radio__SelectedInnerRadio",
|
|
863
|
+
componentId: "kitt-universal__sc-1mdgr2o-2"
|
|
864
|
+
})(["background-color:", ";width:", "px;height:", "px;border-radius:", "px;"], function (_ref11) {
|
|
825
865
|
var theme = _ref11.theme;
|
|
826
866
|
return theme.kitt.forms.radio.checked.innerBackgroundColor;
|
|
827
867
|
}, function (_ref12) {
|
|
@@ -834,8 +874,14 @@ var SelectedInnerRadio = styled.View(_templateObject3$5 || (_templateObject3$5 =
|
|
|
834
874
|
var theme = _ref14.theme;
|
|
835
875
|
return theme.kitt.forms.radio.checked.innerSize / 2;
|
|
836
876
|
});
|
|
837
|
-
var Container$3 = styled.Pressable(
|
|
838
|
-
|
|
877
|
+
var Container$3 = /*#__PURE__*/styled.Pressable.withConfig({
|
|
878
|
+
displayName: "Radio__Container",
|
|
879
|
+
componentId: "kitt-universal__sc-1mdgr2o-3"
|
|
880
|
+
})(["flex-direction:row;align-items:center;"]);
|
|
881
|
+
var Text = /*#__PURE__*/styled(Typography.Text).withConfig({
|
|
882
|
+
displayName: "Radio__Text",
|
|
883
|
+
componentId: "kitt-universal__sc-1mdgr2o-4"
|
|
884
|
+
})(["margin-left:", "px;"], function (_ref15) {
|
|
839
885
|
var theme = _ref15.theme;
|
|
840
886
|
return theme.kitt.spacing * 2;
|
|
841
887
|
});
|
|
@@ -867,7 +913,7 @@ function Radio(_ref16) {
|
|
|
867
913
|
function TextArea(_ref) {
|
|
868
914
|
var props = _extends({}, _ref);
|
|
869
915
|
|
|
870
|
-
var theme = useTheme();
|
|
916
|
+
var theme = /*#__PURE__*/useTheme();
|
|
871
917
|
return /*#__PURE__*/React.createElement(InputText, _extends({
|
|
872
918
|
multiline: true
|
|
873
919
|
}, props, {
|
|
@@ -876,8 +922,10 @@ function TextArea(_ref) {
|
|
|
876
922
|
}));
|
|
877
923
|
}
|
|
878
924
|
|
|
879
|
-
var
|
|
880
|
-
|
|
925
|
+
var Body = /*#__PURE__*/styled.View.withConfig({
|
|
926
|
+
displayName: "Body",
|
|
927
|
+
componentId: "kitt-universal__sc-1ofncfn-0"
|
|
928
|
+
})(["", " background-color:", ";flex:1;"], function (_ref) {
|
|
881
929
|
var theme = _ref.theme;
|
|
882
930
|
return theme.responsive.ifWindowSizeMatches({
|
|
883
931
|
minWidth: KittBreakpoints.MEDIUM
|
|
@@ -891,8 +939,10 @@ function FullScreenModalBody(_ref3) {
|
|
|
891
939
|
return /*#__PURE__*/React.createElement(Body, null, children);
|
|
892
940
|
}
|
|
893
941
|
|
|
894
|
-
var
|
|
895
|
-
|
|
942
|
+
var SideContainer = /*#__PURE__*/styled.View.withConfig({
|
|
943
|
+
displayName: "Header__SideContainer",
|
|
944
|
+
componentId: "kitt-universal__sc-dfmxi1-0"
|
|
945
|
+
})(["", ""], function (_ref) {
|
|
896
946
|
var theme = _ref.theme,
|
|
897
947
|
_ref$side = _ref.side,
|
|
898
948
|
side = _ref$side === void 0 ? 'left' : _ref$side;
|
|
@@ -909,7 +959,10 @@ function getHeaderHorizontalMediumPadding(spacing) {
|
|
|
909
959
|
return spacing * 6;
|
|
910
960
|
}
|
|
911
961
|
|
|
912
|
-
var Header = styled.View(
|
|
962
|
+
var Header = /*#__PURE__*/styled.View.withConfig({
|
|
963
|
+
displayName: "Header",
|
|
964
|
+
componentId: "kitt-universal__sc-dfmxi1-1"
|
|
965
|
+
})(["", ";border-bottom-color:", ";border-bottom-width:1px;flex-direction:row;align-items:center;"], function (_ref2) {
|
|
913
966
|
var theme = _ref2.theme,
|
|
914
967
|
_ref2$insetTop = _ref2.insetTop,
|
|
915
968
|
insetTop = _ref2$insetTop === void 0 ? 0 : _ref2$insetTop;
|
|
@@ -924,7 +977,10 @@ var Header = styled.View(_templateObject2$7 || (_templateObject2$7 = _taggedTemp
|
|
|
924
977
|
var theme = _ref3.theme;
|
|
925
978
|
return theme.kitt.fullScreenModal.header.borderColor;
|
|
926
979
|
});
|
|
927
|
-
var HeaderContent = styled.View(
|
|
980
|
+
var HeaderContent = /*#__PURE__*/styled.View.withConfig({
|
|
981
|
+
displayName: "Header__HeaderContent",
|
|
982
|
+
componentId: "kitt-universal__sc-dfmxi1-2"
|
|
983
|
+
})(["", ";", ";justify-content:center;align-items:center;"], function (_ref4) {
|
|
928
984
|
var theme = _ref4.theme,
|
|
929
985
|
leftWidth = _ref4.leftWidth,
|
|
930
986
|
rightWidth = _ref4.rightWidth,
|
|
@@ -1007,8 +1063,10 @@ function FullScreenModalHeader(_ref6) {
|
|
|
1007
1063
|
}, right) : null);
|
|
1008
1064
|
}
|
|
1009
1065
|
|
|
1010
|
-
var
|
|
1011
|
-
|
|
1066
|
+
var Container$2 = /*#__PURE__*/styled.View.withConfig({
|
|
1067
|
+
displayName: "FullScreenModal__Container",
|
|
1068
|
+
componentId: "kitt-universal__sc-11qpbe3-0"
|
|
1069
|
+
})(["flex:1;background-color:", ";"], function (_ref) {
|
|
1012
1070
|
var theme = _ref.theme;
|
|
1013
1071
|
return theme.kitt.colors.uiBackground;
|
|
1014
1072
|
});
|
|
@@ -1020,9 +1078,10 @@ FullScreenModal.Header = FullScreenModalHeader;
|
|
|
1020
1078
|
FullScreenModal.Body = FullScreenModalBody;
|
|
1021
1079
|
|
|
1022
1080
|
var _excluded$5 = ["children"];
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1081
|
+
var ContentView$1 = /*#__PURE__*/styled.View.withConfig({
|
|
1082
|
+
displayName: "ListItemContent__ContentView",
|
|
1083
|
+
componentId: "kitt-universal__sc-57q0u9-0"
|
|
1084
|
+
})(["flex:1 0 0%;align-self:center;"]);
|
|
1026
1085
|
function ListItemContent(_ref) {
|
|
1027
1086
|
var children = _ref.children,
|
|
1028
1087
|
rest = _objectWithoutProperties(_ref, _excluded$5);
|
|
@@ -1032,9 +1091,10 @@ function ListItemContent(_ref) {
|
|
|
1032
1091
|
|
|
1033
1092
|
var _excluded$4 = ["children", "side"],
|
|
1034
1093
|
_excluded2$1 = ["children", "align"];
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1094
|
+
var SideContainerView = /*#__PURE__*/styled.View.withConfig({
|
|
1095
|
+
displayName: "ListItemSideContent__SideContainerView",
|
|
1096
|
+
componentId: "kitt-universal__sc-1vajiw-0"
|
|
1097
|
+
})(["flex-direction:row;margin-left:", ";margin-right:", ";"], function (_ref) {
|
|
1038
1098
|
var theme = _ref.theme,
|
|
1039
1099
|
side = _ref.side;
|
|
1040
1100
|
return side === 'right' ? theme.kitt.listItem.innerMargin : 0;
|
|
@@ -1054,7 +1114,10 @@ function ListItemSideContainer(_ref3) {
|
|
|
1054
1114
|
side: side
|
|
1055
1115
|
}, rest), children);
|
|
1056
1116
|
}
|
|
1057
|
-
var SideContentView = styled.View(
|
|
1117
|
+
var SideContentView = /*#__PURE__*/styled.View.withConfig({
|
|
1118
|
+
displayName: "ListItemSideContent__SideContentView",
|
|
1119
|
+
componentId: "kitt-universal__sc-1vajiw-1"
|
|
1120
|
+
})(["align-self:", ";"], function (_ref4) {
|
|
1058
1121
|
var align = _ref4.align;
|
|
1059
1122
|
return align;
|
|
1060
1123
|
});
|
|
@@ -1070,9 +1133,10 @@ function ListItemSideContent(_ref5) {
|
|
|
1070
1133
|
}
|
|
1071
1134
|
|
|
1072
1135
|
var _excluded$3 = ["children", "withPadding", "borders", "left", "right"];
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1136
|
+
var ContainerView = /*#__PURE__*/styled.View.withConfig({
|
|
1137
|
+
displayName: "ListItem__ContainerView",
|
|
1138
|
+
componentId: "kitt-universal__sc-2afp9s-0"
|
|
1139
|
+
})(["flex-direction:row;padding:", ";", ";border-color:", ";background-color:", ";"], function (_ref) {
|
|
1076
1140
|
var withPadding = _ref.withPadding,
|
|
1077
1141
|
theme = _ref.theme;
|
|
1078
1142
|
return withPadding ? theme.kitt.listItem.padding : 0;
|
|
@@ -1132,7 +1196,7 @@ function Loader(_ref) {
|
|
|
1132
1196
|
color = _ref$color === void 0 ? 'primary' : _ref$color,
|
|
1133
1197
|
_ref$size = _ref.size,
|
|
1134
1198
|
size = _ref$size === void 0 ? 20 : _ref$size;
|
|
1135
|
-
var theme = useTheme();
|
|
1199
|
+
var theme = /*#__PURE__*/useTheme();
|
|
1136
1200
|
var colorHex = theme.kitt.typography.colors[color];
|
|
1137
1201
|
return /*#__PURE__*/React.createElement(ActivityIndicator, {
|
|
1138
1202
|
testID: "ActivityIndicator",
|
|
@@ -1150,10 +1214,12 @@ function LargeLoader(_ref) {
|
|
|
1150
1214
|
});
|
|
1151
1215
|
}
|
|
1152
1216
|
|
|
1153
|
-
var _templateObject$a, _templateObject2$5, _templateObject3$3, _templateObject4$2;
|
|
1154
1217
|
var xIconSize = 14;
|
|
1155
1218
|
var mainIconSize = 20;
|
|
1156
|
-
var Container$1 = styled.View(
|
|
1219
|
+
var Container$1 = /*#__PURE__*/styled.View.withConfig({
|
|
1220
|
+
displayName: "Message__Container",
|
|
1221
|
+
componentId: "kitt-universal__sc-c6400e-0"
|
|
1222
|
+
})(["border-radius:", "px;background-color:", ";padding-bottom:", "px;padding-left:", "px;padding-right:", "px;padding-top:", "px;flex-direction:row;align-items:flex-start;justify-content:space-between;"], function (_ref) {
|
|
1157
1223
|
var theme = _ref.theme,
|
|
1158
1224
|
noRadius = _ref.noRadius;
|
|
1159
1225
|
return noRadius ? 0 : theme.kitt.spacing * 5;
|
|
@@ -1177,18 +1243,27 @@ var Container$1 = styled.View(_templateObject$a || (_templateObject$a = _taggedT
|
|
|
1177
1243
|
insets = _ref6.insets;
|
|
1178
1244
|
return ((_insets$top = insets === null || insets === void 0 ? void 0 : insets.top) !== null && _insets$top !== void 0 ? _insets$top : 0) + theme.kitt.spacing * 4;
|
|
1179
1245
|
});
|
|
1180
|
-
var CloseContainer = styled.TouchableOpacity(
|
|
1246
|
+
var CloseContainer = /*#__PURE__*/styled.TouchableOpacity.withConfig({
|
|
1247
|
+
displayName: "Message__CloseContainer",
|
|
1248
|
+
componentId: "kitt-universal__sc-c6400e-1"
|
|
1249
|
+
})(["margin-left:", "px;padding:", "px;"], function (_ref7) {
|
|
1181
1250
|
var theme = _ref7.theme;
|
|
1182
1251
|
return theme.kitt.spacing * 4;
|
|
1183
1252
|
}, function (_ref8) {
|
|
1184
1253
|
var theme = _ref8.theme;
|
|
1185
1254
|
return theme.kitt.spacing;
|
|
1186
1255
|
});
|
|
1187
|
-
var IconContainer = styled.View(
|
|
1256
|
+
var IconContainer = /*#__PURE__*/styled.View.withConfig({
|
|
1257
|
+
displayName: "Message__IconContainer",
|
|
1258
|
+
componentId: "kitt-universal__sc-c6400e-2"
|
|
1259
|
+
})(["margin-right:", "px;"], function (_ref9) {
|
|
1188
1260
|
var theme = _ref9.theme;
|
|
1189
1261
|
return theme.kitt.spacing * 4;
|
|
1190
1262
|
});
|
|
1191
|
-
var Content = styled.Text(
|
|
1263
|
+
var Content = /*#__PURE__*/styled.Text.withConfig({
|
|
1264
|
+
displayName: "Message__Content",
|
|
1265
|
+
componentId: "kitt-universal__sc-c6400e-3"
|
|
1266
|
+
})(["text-align:", ";flex:1;"], function (_ref10) {
|
|
1192
1267
|
var centeredText = _ref10.centeredText;
|
|
1193
1268
|
return centeredText ? 'center' : 'left';
|
|
1194
1269
|
});
|
|
@@ -1260,7 +1335,10 @@ function Message(_ref11) {
|
|
|
1260
1335
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
1261
1336
|
|
|
1262
1337
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
1263
|
-
var OverlayPressable = styled.Pressable(
|
|
1338
|
+
var OverlayPressable = /*#__PURE__*/styled.Pressable.withConfig({
|
|
1339
|
+
displayName: "Overlay__OverlayPressable",
|
|
1340
|
+
componentId: "kitt-universal__sc-1cz1gbr-0"
|
|
1341
|
+
})(function (_ref) {
|
|
1264
1342
|
var theme = _ref.theme;
|
|
1265
1343
|
return _objectSpread(_objectSpread({}, StyleSheet.absoluteFillObject), {}, {
|
|
1266
1344
|
backgroundColor: theme.kitt.colors.overlay.dark
|
|
@@ -1273,8 +1351,10 @@ function Overlay(_ref2) {
|
|
|
1273
1351
|
}, /*#__PURE__*/React.createElement(View, null));
|
|
1274
1352
|
}
|
|
1275
1353
|
|
|
1276
|
-
var
|
|
1277
|
-
|
|
1354
|
+
var BodyView = /*#__PURE__*/styled.View.withConfig({
|
|
1355
|
+
displayName: "Body__BodyView",
|
|
1356
|
+
componentId: "kitt-universal__sc-17fwpo4-0"
|
|
1357
|
+
})(["padding:", "px ", "px;"], function (_ref) {
|
|
1278
1358
|
var theme = _ref.theme;
|
|
1279
1359
|
return theme.kitt.spacing * 6;
|
|
1280
1360
|
}, function (_ref2) {
|
|
@@ -1288,8 +1368,10 @@ var ModalBody = /*#__PURE__*/forwardRef(function (_ref3, ref) {
|
|
|
1288
1368
|
}, /*#__PURE__*/React.createElement(BodyView, null, children));
|
|
1289
1369
|
});
|
|
1290
1370
|
|
|
1291
|
-
var
|
|
1292
|
-
|
|
1371
|
+
var FooterView = /*#__PURE__*/styled.View.withConfig({
|
|
1372
|
+
displayName: "Footer__FooterView",
|
|
1373
|
+
componentId: "kitt-universal__sc-1ujq2dc-0"
|
|
1374
|
+
})(["flex:0 0 auto;padding:", "px;border-top-width:1px;border-top-color:", ";"], function (_ref) {
|
|
1293
1375
|
var theme = _ref.theme;
|
|
1294
1376
|
return theme.kitt.spacing * 4;
|
|
1295
1377
|
}, function (_ref2) {
|
|
@@ -1303,23 +1385,34 @@ function ModalFooter(_ref3) {
|
|
|
1303
1385
|
|
|
1304
1386
|
var OnCloseContext = /*#__PURE__*/createContext(function () {});
|
|
1305
1387
|
|
|
1306
|
-
var
|
|
1307
|
-
|
|
1388
|
+
var HeaderView = /*#__PURE__*/styled.View.withConfig({
|
|
1389
|
+
displayName: "Header__HeaderView",
|
|
1390
|
+
componentId: "kitt-universal__sc-1iwabch-0"
|
|
1391
|
+
})(["position:relative;padding:", "px;display:flex;flex:0 0 auto;flex-direction:row;justify-content:space-between;align-items:center;border-bottom-width:1px;border-bottom-color:", ";min-height:57px;"], function (_ref) {
|
|
1308
1392
|
var theme = _ref.theme;
|
|
1309
1393
|
return theme.kitt.spacing * 2;
|
|
1310
1394
|
}, function (_ref2) {
|
|
1311
1395
|
var theme = _ref2.theme;
|
|
1312
1396
|
return theme.kitt.colors.separator;
|
|
1313
1397
|
});
|
|
1314
|
-
var LeftIconView = styled.View(
|
|
1398
|
+
var LeftIconView = /*#__PURE__*/styled.View.withConfig({
|
|
1399
|
+
displayName: "Header__LeftIconView",
|
|
1400
|
+
componentId: "kitt-universal__sc-1iwabch-1"
|
|
1401
|
+
})(["align-self:flex-start;margin-right:", "px;"], function (_ref3) {
|
|
1315
1402
|
var theme = _ref3.theme;
|
|
1316
1403
|
return theme.kitt.spacing * 2;
|
|
1317
1404
|
});
|
|
1318
|
-
var RightIconView = styled.View(
|
|
1405
|
+
var RightIconView = /*#__PURE__*/styled.View.withConfig({
|
|
1406
|
+
displayName: "Header__RightIconView",
|
|
1407
|
+
componentId: "kitt-universal__sc-1iwabch-2"
|
|
1408
|
+
})(["align-self:flex-start;margin-left:", "px;"], function (_ref4) {
|
|
1319
1409
|
var theme = _ref4.theme;
|
|
1320
1410
|
return theme.kitt.spacing * 2;
|
|
1321
1411
|
});
|
|
1322
|
-
var TitleView = styled.View(
|
|
1412
|
+
var TitleView = /*#__PURE__*/styled.View.withConfig({
|
|
1413
|
+
displayName: "Header__TitleView",
|
|
1414
|
+
componentId: "kitt-universal__sc-1iwabch-3"
|
|
1415
|
+
})(["padding-left:", "px;flex-shrink:1;"], function (_ref5) {
|
|
1323
1416
|
var theme = _ref5.theme,
|
|
1324
1417
|
isIconLeft = _ref5.isIconLeft;
|
|
1325
1418
|
return isIconLeft ? 0 : theme.kitt.spacing * 2;
|
|
@@ -1339,15 +1432,20 @@ function ModalHeader(_ref6) {
|
|
|
1339
1432
|
})));
|
|
1340
1433
|
}
|
|
1341
1434
|
|
|
1342
|
-
var
|
|
1343
|
-
|
|
1435
|
+
var ModalView = /*#__PURE__*/styled.View.withConfig({
|
|
1436
|
+
displayName: "Modal__ModalView",
|
|
1437
|
+
componentId: "kitt-universal__sc-1xy2w5u-0"
|
|
1438
|
+
})(["top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:", "px ", "px;"], function (_ref) {
|
|
1344
1439
|
var theme = _ref.theme;
|
|
1345
1440
|
return theme.kitt.spacing * 20;
|
|
1346
1441
|
}, function (_ref2) {
|
|
1347
1442
|
var theme = _ref2.theme;
|
|
1348
1443
|
return theme.kitt.spacing * 4;
|
|
1349
1444
|
});
|
|
1350
|
-
var ContentView = styled.View(
|
|
1445
|
+
var ContentView = /*#__PURE__*/styled.View.withConfig({
|
|
1446
|
+
displayName: "Modal__ContentView",
|
|
1447
|
+
componentId: "kitt-universal__sc-1xy2w5u-1"
|
|
1448
|
+
})(["position:relative;display:flex;flex-direction:column;max-height:100%;max-width:540px;height:auto;width:100%;border-radius:", ";background-color:", ";"], function (_ref3) {
|
|
1351
1449
|
var theme = _ref3.theme;
|
|
1352
1450
|
return theme.kitt.card.borderRadius;
|
|
1353
1451
|
}, function (_ref4) {
|
|
@@ -1397,9 +1495,14 @@ function Notification(_ref) {
|
|
|
1397
1495
|
}, children);
|
|
1398
1496
|
}
|
|
1399
1497
|
|
|
1400
|
-
var
|
|
1401
|
-
|
|
1402
|
-
|
|
1498
|
+
var StoryTitleContainer = /*#__PURE__*/styled.View.withConfig({
|
|
1499
|
+
displayName: "StoryTitle__StoryTitleContainer",
|
|
1500
|
+
componentId: "kitt-universal__sc-sic7hb-0"
|
|
1501
|
+
})(["margin-bottom:30px;"]);
|
|
1502
|
+
var StorySubTitleContainer = /*#__PURE__*/styled.View.withConfig({
|
|
1503
|
+
displayName: "StoryTitle__StorySubTitleContainer",
|
|
1504
|
+
componentId: "kitt-universal__sc-sic7hb-1"
|
|
1505
|
+
})(["margin-bottom:10px;"]);
|
|
1403
1506
|
function StoryTitle(_ref) {
|
|
1404
1507
|
var color = _ref.color,
|
|
1405
1508
|
children = _ref.children,
|
|
@@ -1461,9 +1564,10 @@ StoryTitle.Level4 = StoryTitleLevel4;
|
|
|
1461
1564
|
|
|
1462
1565
|
var _excluded$2 = ["title", "className", "children"],
|
|
1463
1566
|
_excluded2 = ["title", "className", "children"];
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1567
|
+
var StyledSection = /*#__PURE__*/styled.View.withConfig({
|
|
1568
|
+
displayName: "Section__StyledSection",
|
|
1569
|
+
componentId: "kitt-universal__sc-x4z1s-0"
|
|
1570
|
+
})(["margin-bottom:30px;"]);
|
|
1467
1571
|
function Section(_ref) {
|
|
1468
1572
|
var title = _ref.title;
|
|
1469
1573
|
_ref.className;
|
|
@@ -1472,7 +1576,10 @@ function Section(_ref) {
|
|
|
1472
1576
|
|
|
1473
1577
|
return /*#__PURE__*/React.createElement(StyledSection, props, /*#__PURE__*/React.createElement(StoryTitle.Level2, null, title), children);
|
|
1474
1578
|
}
|
|
1475
|
-
var StyledSubSection = styled.View(
|
|
1579
|
+
var StyledSubSection = /*#__PURE__*/styled.View.withConfig({
|
|
1580
|
+
displayName: "Section__StyledSubSection",
|
|
1581
|
+
componentId: "kitt-universal__sc-x4z1s-1"
|
|
1582
|
+
})(["margin-bottom:20px;"]);
|
|
1476
1583
|
|
|
1477
1584
|
function SubSection(_ref2) {
|
|
1478
1585
|
var title = _ref2.title;
|
|
@@ -1483,7 +1590,10 @@ function SubSection(_ref2) {
|
|
|
1483
1590
|
return /*#__PURE__*/React.createElement(StyledSubSection, props, /*#__PURE__*/React.createElement(StoryTitle.Level3, null, title), children);
|
|
1484
1591
|
}
|
|
1485
1592
|
|
|
1486
|
-
var StyledDemoSection = styled.View(
|
|
1593
|
+
var StyledDemoSection = /*#__PURE__*/styled.View.withConfig({
|
|
1594
|
+
displayName: "Section__StyledDemoSection",
|
|
1595
|
+
componentId: "kitt-universal__sc-x4z1s-2"
|
|
1596
|
+
})(["margin-bottom:90px;"]);
|
|
1487
1597
|
|
|
1488
1598
|
function DemoSection(_ref3) {
|
|
1489
1599
|
var children = _ref3.children;
|
|
@@ -1495,8 +1605,10 @@ function DemoSection(_ref3) {
|
|
|
1495
1605
|
Section.SubSection = SubSection;
|
|
1496
1606
|
Section.DemoSection = DemoSection;
|
|
1497
1607
|
|
|
1498
|
-
var
|
|
1499
|
-
|
|
1608
|
+
var StoryContainer = /*#__PURE__*/styled.ScrollView.withConfig({
|
|
1609
|
+
displayName: "Story__StoryContainer",
|
|
1610
|
+
componentId: "kitt-universal__sc-1kwdg2p-0"
|
|
1611
|
+
})(["padding:10px;"]);
|
|
1500
1612
|
function Story(_ref) {
|
|
1501
1613
|
var title = _ref.title,
|
|
1502
1614
|
contentContainerStyle = _ref.contentContainerStyle,
|
|
@@ -1512,11 +1624,22 @@ function StoryDecorator(storyFn, context) {
|
|
|
1512
1624
|
}, storyFn());
|
|
1513
1625
|
}
|
|
1514
1626
|
|
|
1515
|
-
var
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
var
|
|
1627
|
+
var SmallScreenRow = /*#__PURE__*/styled.View.withConfig({
|
|
1628
|
+
displayName: "StoryGrid__SmallScreenRow",
|
|
1629
|
+
componentId: "kitt-universal__sc-4z5new-0"
|
|
1630
|
+
})(["flex-direction:column;margin:0;"]);
|
|
1631
|
+
var SmallScreenCol = /*#__PURE__*/styled.View.withConfig({
|
|
1632
|
+
displayName: "StoryGrid__SmallScreenCol",
|
|
1633
|
+
componentId: "kitt-universal__sc-4z5new-1"
|
|
1634
|
+
})(["padding:10px 0 20px;"]);
|
|
1635
|
+
var FlexRow = /*#__PURE__*/styled.View.withConfig({
|
|
1636
|
+
displayName: "StoryGrid__FlexRow",
|
|
1637
|
+
componentId: "kitt-universal__sc-4z5new-2"
|
|
1638
|
+
})(["flex-direction:row;margin:0 -5px 20px;"]);
|
|
1639
|
+
var FlexCol = /*#__PURE__*/styled.View.withConfig({
|
|
1640
|
+
displayName: "StoryGrid__FlexCol",
|
|
1641
|
+
componentId: "kitt-universal__sc-4z5new-3"
|
|
1642
|
+
})(["flex-grow:1;flex-basis:0;margin:0 5px 10px;"]);
|
|
1520
1643
|
|
|
1521
1644
|
function StoryGridRow(_ref) {
|
|
1522
1645
|
var children = _ref.children,
|
|
@@ -1556,8 +1679,10 @@ var StoryGrid = {
|
|
|
1556
1679
|
Col: StoryGridCol
|
|
1557
1680
|
};
|
|
1558
1681
|
|
|
1559
|
-
var
|
|
1560
|
-
|
|
1682
|
+
var Container = /*#__PURE__*/styled.View.withConfig({
|
|
1683
|
+
displayName: "Tag__Container",
|
|
1684
|
+
componentId: "kitt-universal__sc-19jmowi-0"
|
|
1685
|
+
})(["background-color:", ";padding:", ";border-radius:", ";align-self:flex-start;"], function (_ref) {
|
|
1561
1686
|
var theme = _ref.theme,
|
|
1562
1687
|
type = _ref.type;
|
|
1563
1688
|
return theme.kitt.tag[type].backgroundColor;
|
|
@@ -1904,13 +2029,14 @@ function Tooltip(_ref) {
|
|
|
1904
2029
|
}
|
|
1905
2030
|
|
|
1906
2031
|
var _excluded$1 = ["disabled", "noUnderline", "variant"];
|
|
1907
|
-
|
|
1908
|
-
var _templateObject;
|
|
1909
|
-
var StyledLink = styled(Typography).withConfig({
|
|
2032
|
+
var StyledLink = /*#__PURE__*/styled(Typography).withConfig({
|
|
1910
2033
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
1911
2034
|
return !['disabled', 'noUnderline'].includes(prop);
|
|
1912
2035
|
}
|
|
1913
|
-
})(
|
|
2036
|
+
}).withConfig({
|
|
2037
|
+
displayName: "TypographyLink__StyledLink",
|
|
2038
|
+
componentId: "kitt-universal__sc-1o1zy30-0"
|
|
2039
|
+
})(["text-decoration:", ";", ";margin:0;"], function (_ref) {
|
|
1914
2040
|
var noUnderline = _ref.noUnderline;
|
|
1915
2041
|
return noUnderline ? 'none' : 'underline';
|
|
1916
2042
|
}, function (_ref2) {
|