@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, LoaderIcon, XIcon, InfoIcon, AlertTriangleIcon, CheckIcon, AlertCircleIcon } from '@ornikar/kitt-icons';
|
|
5
4
|
export * from '@ornikar/kitt-icons';
|
|
6
5
|
import React, { useContext, createContext, useState, forwardRef, useMemo } from 'react';
|
|
7
|
-
import { Image,
|
|
6
|
+
import { Image, useWindowDimensions, Pressable, 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';
|
|
@@ -20,8 +19,10 @@ function SpinningIcon(_ref) {
|
|
|
20
19
|
}, children);
|
|
21
20
|
}
|
|
22
21
|
|
|
23
|
-
var
|
|
24
|
-
|
|
22
|
+
var IconContainer$2 = /*#__PURE__*/styled.View.withConfig({
|
|
23
|
+
displayName: "Icon__IconContainer",
|
|
24
|
+
componentId: "kitt-universal__sc-usm0ol-0"
|
|
25
|
+
})(["color:", ";width:", "px;height:", "px;align-self:", ";"], function (_ref) {
|
|
25
26
|
var color = _ref.color;
|
|
26
27
|
return color;
|
|
27
28
|
}, function (_ref2) {
|
|
@@ -53,14 +54,15 @@ function Icon(_ref5) {
|
|
|
53
54
|
}
|
|
54
55
|
|
|
55
56
|
var _excluded$9 = ["accessibilityRole", "base", "variant", "color"];
|
|
56
|
-
|
|
57
|
-
var _templateObject$o;
|
|
58
57
|
var TypographyTypeContext = /*#__PURE__*/createContext(undefined);
|
|
59
58
|
var TypographyColorContext = /*#__PURE__*/createContext('black');
|
|
60
59
|
function useTypographyColor() {
|
|
61
60
|
return useContext(TypographyColorContext);
|
|
62
61
|
}
|
|
63
|
-
var StyledTypography = styled.Text(
|
|
62
|
+
var StyledTypography = /*#__PURE__*/styled.Text.withConfig({
|
|
63
|
+
displayName: "Typography__StyledTypography",
|
|
64
|
+
componentId: "kitt-universal__sc-1dz700q-0"
|
|
65
|
+
})(["", " ", ""], function (_ref) {
|
|
64
66
|
var theme = _ref.theme,
|
|
65
67
|
isHeader = _ref.isHeader,
|
|
66
68
|
type = _ref.type,
|
|
@@ -153,8 +155,6 @@ Typography.h5 = createHeading('5');
|
|
|
153
155
|
|
|
154
156
|
var _excluded$8 = ["size"];
|
|
155
157
|
|
|
156
|
-
var _templateObject$n;
|
|
157
|
-
|
|
158
158
|
var getFirstCharacter = function (string) {
|
|
159
159
|
return string ? string[0] : '';
|
|
160
160
|
};
|
|
@@ -163,7 +163,10 @@ var getInitials = function (firstname, lastname) {
|
|
|
163
163
|
return (getFirstCharacter(firstname) + getFirstCharacter(lastname)).toUpperCase();
|
|
164
164
|
};
|
|
165
165
|
|
|
166
|
-
var StyledAvatarView = styled.View(
|
|
166
|
+
var StyledAvatarView = /*#__PURE__*/styled.View.withConfig({
|
|
167
|
+
displayName: "Avatar__StyledAvatarView",
|
|
168
|
+
componentId: "kitt-universal__sc-9miubv-0"
|
|
169
|
+
})(["border-radius:", "px;background-color:", ";height:", "px;width:", "px;overflow:hidden;align-items:center;justify-content:center;"], function (_ref) {
|
|
167
170
|
var round = _ref.round,
|
|
168
171
|
size = _ref.size;
|
|
169
172
|
return round ? size / 2 : 10;
|
|
@@ -226,8 +229,10 @@ function Avatar(_ref6) {
|
|
|
226
229
|
})));
|
|
227
230
|
}
|
|
228
231
|
|
|
229
|
-
var
|
|
230
|
-
|
|
232
|
+
var ButtonContainer = /*#__PURE__*/styled.Pressable.withConfig({
|
|
233
|
+
displayName: "ButtonContainer",
|
|
234
|
+
componentId: "kitt-universal__sc-ofbpwm-0"
|
|
235
|
+
})(["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) {
|
|
231
236
|
var theme = _ref.theme;
|
|
232
237
|
return theme.kitt.button.minWidth;
|
|
233
238
|
}, function (_ref2) {
|
|
@@ -272,7 +277,7 @@ var _excluded$7 = ["color"],
|
|
|
272
277
|
|
|
273
278
|
function TypographyIconInheritColor(props) {
|
|
274
279
|
var color = useTypographyColor();
|
|
275
|
-
var theme = useTheme();
|
|
280
|
+
var theme = /*#__PURE__*/useTheme();
|
|
276
281
|
return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
|
|
277
282
|
color: theme.kitt.typography.colors[color]
|
|
278
283
|
}));
|
|
@@ -282,7 +287,7 @@ function TypographyIconSpecifiedColor(_ref) {
|
|
|
282
287
|
var color = _ref.color,
|
|
283
288
|
otherProps = _objectWithoutProperties(_ref, _excluded$7);
|
|
284
289
|
|
|
285
|
-
var theme = useTheme();
|
|
290
|
+
var theme = /*#__PURE__*/useTheme();
|
|
286
291
|
return /*#__PURE__*/React.createElement(Icon, _extends({}, otherProps, {
|
|
287
292
|
color: theme.kitt.typography.colors[color]
|
|
288
293
|
}));
|
|
@@ -301,8 +306,6 @@ function TypographyIcon(_ref2) {
|
|
|
301
306
|
return /*#__PURE__*/React.createElement(TypographyIconInheritColor, otherProps);
|
|
302
307
|
}
|
|
303
308
|
|
|
304
|
-
var _templateObject$l, _templateObject2$b, _templateObject3$8;
|
|
305
|
-
|
|
306
309
|
var getTextColorByType = function (type, isPressed, disabled) {
|
|
307
310
|
if (disabled) return 'black-light';
|
|
308
311
|
|
|
@@ -322,13 +325,22 @@ var getTextColorByType = function (type, isPressed, disabled) {
|
|
|
322
325
|
}
|
|
323
326
|
};
|
|
324
327
|
|
|
325
|
-
var ButtonText = styled(Typography.Text)(
|
|
326
|
-
|
|
328
|
+
var ButtonText = /*#__PURE__*/styled(Typography.Text).withConfig({
|
|
329
|
+
displayName: "ButtonContent__ButtonText",
|
|
330
|
+
componentId: "kitt-universal__sc-dnyw3n-0"
|
|
331
|
+
})(["text-align:center;"]);
|
|
332
|
+
var Content$1 = /*#__PURE__*/styled.View.withConfig({
|
|
333
|
+
displayName: "ButtonContent__Content",
|
|
334
|
+
componentId: "kitt-universal__sc-dnyw3n-1"
|
|
335
|
+
})(["flex-direction:row;align-items:center;justify-content:center;flex:", ";"], function (_ref) {
|
|
327
336
|
var stretch = _ref.stretch,
|
|
328
337
|
iconOnly = _ref.iconOnly;
|
|
329
338
|
return "".concat(stretch || iconOnly ? 1 : 0, " 1 auto");
|
|
330
339
|
});
|
|
331
|
-
var IconContainer$1 = styled.View(
|
|
340
|
+
var IconContainer$1 = /*#__PURE__*/styled.View.withConfig({
|
|
341
|
+
displayName: "ButtonContent__IconContainer",
|
|
342
|
+
componentId: "kitt-universal__sc-dnyw3n-2"
|
|
343
|
+
})(["", ""], function (_ref2) {
|
|
332
344
|
var theme = _ref2.theme,
|
|
333
345
|
iconPosition = _ref2.iconPosition;
|
|
334
346
|
var value = theme.kitt.spacing * 3;
|
|
@@ -368,7 +380,7 @@ function ButtonContent(_ref4) {
|
|
|
368
380
|
disabled = _ref4.disabled,
|
|
369
381
|
children = _ref4.children;
|
|
370
382
|
var color = getTextColorByType(type, Boolean(isPressed), Boolean(disabled));
|
|
371
|
-
var theme = useTheme();
|
|
383
|
+
var theme = /*#__PURE__*/useTheme();
|
|
372
384
|
var sharedIconProps = {
|
|
373
385
|
spin: iconSpin,
|
|
374
386
|
color: color,
|
|
@@ -463,8 +475,10 @@ function Button(_ref) {
|
|
|
463
475
|
}), children));
|
|
464
476
|
}
|
|
465
477
|
|
|
466
|
-
var
|
|
467
|
-
|
|
478
|
+
var Container$5 = /*#__PURE__*/styled.View.withConfig({
|
|
479
|
+
displayName: "Card__Container",
|
|
480
|
+
componentId: "kitt-universal__sc-1n9psug-0"
|
|
481
|
+
})(["background-color:", ";padding:", ";border-radius:", ";border-width:", ";border-color:", ";"], function (_ref) {
|
|
468
482
|
var theme = _ref.theme,
|
|
469
483
|
type = _ref.type;
|
|
470
484
|
return theme.kitt.card[type].backgroundColor;
|
|
@@ -559,19 +573,30 @@ var KittBreakpointsMax = {
|
|
|
559
573
|
LARGE: KittBreakpoints.WIDE - 1
|
|
560
574
|
};
|
|
561
575
|
|
|
562
|
-
var
|
|
563
|
-
|
|
564
|
-
|
|
576
|
+
var FieldContainer = /*#__PURE__*/styled.View.withConfig({
|
|
577
|
+
displayName: "InputField__FieldContainer",
|
|
578
|
+
componentId: "kitt-universal__sc-13fkixs-0"
|
|
579
|
+
})(["padding:5px 0 10px;"]);
|
|
580
|
+
var FeedbackContainer = /*#__PURE__*/styled.View.withConfig({
|
|
581
|
+
displayName: "InputField__FeedbackContainer",
|
|
582
|
+
componentId: "kitt-universal__sc-13fkixs-1"
|
|
583
|
+
})(["", ";"], function (_ref) {
|
|
565
584
|
var theme = _ref.theme;
|
|
566
585
|
return theme.responsive.ifWindowSizeMatches({
|
|
567
586
|
minWidth: KittBreakpoints.SMALL
|
|
568
587
|
}, 'padding-top: 10px', 'padding-top: 5px');
|
|
569
588
|
});
|
|
570
|
-
var FieldLabelContainer = styled.View(
|
|
589
|
+
var FieldLabelContainer = /*#__PURE__*/styled.View.withConfig({
|
|
590
|
+
displayName: "InputField__FieldLabelContainer",
|
|
591
|
+
componentId: "kitt-universal__sc-13fkixs-2"
|
|
592
|
+
})(["flex-direction:row;align-items:center;padding-bottom:", "px;"], function (_ref2) {
|
|
571
593
|
var theme = _ref2.theme;
|
|
572
594
|
return theme.kitt.forms.inputField.labelContainerPaddingBottom;
|
|
573
595
|
});
|
|
574
|
-
var LabelContainer = styled.View(
|
|
596
|
+
var LabelContainer = /*#__PURE__*/styled.View.withConfig({
|
|
597
|
+
displayName: "InputField__LabelContainer",
|
|
598
|
+
componentId: "kitt-universal__sc-13fkixs-3"
|
|
599
|
+
})(["margin-right:", "px;"], function (_ref3) {
|
|
575
600
|
var theme = _ref3.theme;
|
|
576
601
|
return theme.kitt.forms.inputField.iconMarginLeft;
|
|
577
602
|
});
|
|
@@ -612,9 +637,7 @@ var useInputText = function () {
|
|
|
612
637
|
};
|
|
613
638
|
|
|
614
639
|
var _excluded$6 = ["id", "minHeight", "type", "state", "internalForceState", "disabled", "onFocus", "onBlur"];
|
|
615
|
-
|
|
616
|
-
var _templateObject$i, _templateObject2$9, _templateObject3$6, _templateObject4$4;
|
|
617
|
-
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) {
|
|
640
|
+
var styledTextInputMixin = /*#__PURE__*/css(["background-color:", ";border-width:", ";border-radius:", ";border-color:", ";font-size:", ";color:", ";font-family:", ";"], function (_ref) {
|
|
618
641
|
var theme = _ref.theme,
|
|
619
642
|
state = _ref.state;
|
|
620
643
|
return state === 'disabled' ? theme.kitt.forms.input.states.disabled.backgroundColor : theme.kitt.forms.input.states["default"].backgroundColor;
|
|
@@ -639,26 +662,35 @@ var styledTextInputMixin = css(_templateObject$i || (_templateObject$i = _tagged
|
|
|
639
662
|
var theme = _ref7.theme;
|
|
640
663
|
return theme.kitt.typography.types.bodies.fontFamily.regular;
|
|
641
664
|
});
|
|
642
|
-
var Input = styled.TextInput(
|
|
665
|
+
var Input = /*#__PURE__*/styled.TextInput.withConfig({
|
|
666
|
+
displayName: "InputText__Input",
|
|
667
|
+
componentId: "kitt-universal__sc-uke279-0"
|
|
668
|
+
})(["", " padding:", ";line-height:", ";min-height:", "px;"], styledTextInputMixin, function (_ref8) {
|
|
643
669
|
var theme = _ref8.theme,
|
|
644
670
|
multiline = _ref8.multiline;
|
|
645
|
-
return !multiline &&
|
|
671
|
+
return !multiline && "web" === 'ios' ? theme.kitt.forms.input.paddingSingleLineIOS : theme.kitt.forms.input.padding;
|
|
646
672
|
}, function (_ref9) {
|
|
647
673
|
var theme = _ref9.theme,
|
|
648
674
|
multiline = _ref9.multiline;
|
|
649
|
-
return !multiline &&
|
|
675
|
+
return !multiline && "web" === 'ios' ? 0 : theme.kitt.typography.types.bodies.configs.body.baseAndSmall.lineHeight;
|
|
650
676
|
}, function (_ref10) {
|
|
651
677
|
var minHeight = _ref10.minHeight;
|
|
652
678
|
return minHeight;
|
|
653
679
|
});
|
|
654
|
-
var Container$4 = styled.View(
|
|
680
|
+
var Container$4 = /*#__PURE__*/styled.View.withConfig({
|
|
681
|
+
displayName: "InputText__Container",
|
|
682
|
+
componentId: "kitt-universal__sc-uke279-1"
|
|
683
|
+
})(["margin-top:", ";margin-bottom:", ";"], function (_ref11) {
|
|
655
684
|
var theme = _ref11.theme;
|
|
656
685
|
return theme.kitt.forms.input.marginTop;
|
|
657
686
|
}, function (_ref12) {
|
|
658
687
|
var theme = _ref12.theme;
|
|
659
688
|
return theme.kitt.forms.input.marginBottom;
|
|
660
689
|
});
|
|
661
|
-
var PasswordButtonContainer = styled.Pressable(
|
|
690
|
+
var PasswordButtonContainer = /*#__PURE__*/styled.Pressable.withConfig({
|
|
691
|
+
displayName: "InputText__PasswordButtonContainer",
|
|
692
|
+
componentId: "kitt-universal__sc-uke279-2"
|
|
693
|
+
})(["position:absolute;right:0;top:0;bottom:0;justify-content:center;padding:", "px;"], function (_ref13) {
|
|
662
694
|
var theme = _ref13.theme;
|
|
663
695
|
return theme.kitt.forms.input.passwordButtonIconSize / 2;
|
|
664
696
|
});
|
|
@@ -717,7 +749,7 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref15, ref) {
|
|
|
717
749
|
isPasswordVisible = _useInputText.isPasswordVisible,
|
|
718
750
|
togglePasswordVisibility = _useInputText.togglePasswordVisibility;
|
|
719
751
|
|
|
720
|
-
var theme = useTheme();
|
|
752
|
+
var theme = /*#__PURE__*/useTheme();
|
|
721
753
|
var state = internalForceState || getInputState({
|
|
722
754
|
isFocused: isFocused,
|
|
723
755
|
isDisabled: disabled,
|
|
@@ -759,13 +791,15 @@ function Label(_ref) {
|
|
|
759
791
|
children = _ref.children;
|
|
760
792
|
return /*#__PURE__*/React.createElement(Typography.Text, {
|
|
761
793
|
base: "body"
|
|
762
|
-
},
|
|
794
|
+
}, /*#__PURE__*/React.createElement("label", {
|
|
763
795
|
htmlFor: htmlFor
|
|
764
|
-
}, children)
|
|
796
|
+
}, children));
|
|
765
797
|
}
|
|
766
798
|
|
|
767
|
-
var
|
|
768
|
-
|
|
799
|
+
var OuterRadio = /*#__PURE__*/styled.View.withConfig({
|
|
800
|
+
displayName: "Radio__OuterRadio",
|
|
801
|
+
componentId: "kitt-universal__sc-1mdgr2o-0"
|
|
802
|
+
})(["background-color:", ";width:", "px;height:", "px;border-radius:", "px;border-width:", ";border-color:", ";"], function (_ref) {
|
|
769
803
|
var theme = _ref.theme,
|
|
770
804
|
disabled = _ref.disabled;
|
|
771
805
|
return theme.kitt.forms.radio[disabled ? 'disabled' : 'unchecked'].backgroundColor;
|
|
@@ -786,7 +820,10 @@ var OuterRadio = styled.View(_templateObject$h || (_templateObject$h = _taggedTe
|
|
|
786
820
|
disabled = _ref6.disabled;
|
|
787
821
|
return theme.kitt.forms.radio[disabled ? 'disabled' : 'unchecked'].borderColor;
|
|
788
822
|
});
|
|
789
|
-
var SelectedOuterRadio = styled.View(
|
|
823
|
+
var SelectedOuterRadio = /*#__PURE__*/styled.View.withConfig({
|
|
824
|
+
displayName: "Radio__SelectedOuterRadio",
|
|
825
|
+
componentId: "kitt-universal__sc-1mdgr2o-1"
|
|
826
|
+
})(["background-color:", ";width:", "px;height:", "px;border-radius:", "px;justify-content:center;align-items:center;"], function (_ref7) {
|
|
790
827
|
var theme = _ref7.theme;
|
|
791
828
|
return theme.kitt.forms.radio.checked.backgroundColor;
|
|
792
829
|
}, function (_ref8) {
|
|
@@ -799,7 +836,10 @@ var SelectedOuterRadio = styled.View(_templateObject2$8 || (_templateObject2$8 =
|
|
|
799
836
|
var theme = _ref10.theme;
|
|
800
837
|
return theme.kitt.forms.radio.size / 2;
|
|
801
838
|
});
|
|
802
|
-
var SelectedInnerRadio = styled.View(
|
|
839
|
+
var SelectedInnerRadio = /*#__PURE__*/styled.View.withConfig({
|
|
840
|
+
displayName: "Radio__SelectedInnerRadio",
|
|
841
|
+
componentId: "kitt-universal__sc-1mdgr2o-2"
|
|
842
|
+
})(["background-color:", ";width:", "px;height:", "px;border-radius:", "px;"], function (_ref11) {
|
|
803
843
|
var theme = _ref11.theme;
|
|
804
844
|
return theme.kitt.forms.radio.checked.innerBackgroundColor;
|
|
805
845
|
}, function (_ref12) {
|
|
@@ -812,8 +852,14 @@ var SelectedInnerRadio = styled.View(_templateObject3$5 || (_templateObject3$5 =
|
|
|
812
852
|
var theme = _ref14.theme;
|
|
813
853
|
return theme.kitt.forms.radio.checked.innerSize / 2;
|
|
814
854
|
});
|
|
815
|
-
var Container$3 = styled.Pressable(
|
|
816
|
-
|
|
855
|
+
var Container$3 = /*#__PURE__*/styled.Pressable.withConfig({
|
|
856
|
+
displayName: "Radio__Container",
|
|
857
|
+
componentId: "kitt-universal__sc-1mdgr2o-3"
|
|
858
|
+
})(["flex-direction:row;align-items:center;"]);
|
|
859
|
+
var Text = /*#__PURE__*/styled(Typography.Text).withConfig({
|
|
860
|
+
displayName: "Radio__Text",
|
|
861
|
+
componentId: "kitt-universal__sc-1mdgr2o-4"
|
|
862
|
+
})(["margin-left:", "px;"], function (_ref15) {
|
|
817
863
|
var theme = _ref15.theme;
|
|
818
864
|
return theme.kitt.spacing * 2;
|
|
819
865
|
});
|
|
@@ -845,7 +891,7 @@ function Radio(_ref16) {
|
|
|
845
891
|
function TextArea(_ref) {
|
|
846
892
|
var props = _extends({}, _ref);
|
|
847
893
|
|
|
848
|
-
var theme = useTheme();
|
|
894
|
+
var theme = /*#__PURE__*/useTheme();
|
|
849
895
|
return /*#__PURE__*/React.createElement(InputText, _extends({
|
|
850
896
|
multiline: true
|
|
851
897
|
}, props, {
|
|
@@ -854,8 +900,10 @@ function TextArea(_ref) {
|
|
|
854
900
|
}));
|
|
855
901
|
}
|
|
856
902
|
|
|
857
|
-
var
|
|
858
|
-
|
|
903
|
+
var Body = /*#__PURE__*/styled.View.withConfig({
|
|
904
|
+
displayName: "Body",
|
|
905
|
+
componentId: "kitt-universal__sc-1ofncfn-0"
|
|
906
|
+
})(["", " background-color:", ";flex:1;"], function (_ref) {
|
|
859
907
|
var theme = _ref.theme;
|
|
860
908
|
return theme.responsive.ifWindowSizeMatches({
|
|
861
909
|
minWidth: KittBreakpoints.MEDIUM
|
|
@@ -869,8 +917,10 @@ function FullScreenModalBody(_ref3) {
|
|
|
869
917
|
return /*#__PURE__*/React.createElement(Body, null, children);
|
|
870
918
|
}
|
|
871
919
|
|
|
872
|
-
var
|
|
873
|
-
|
|
920
|
+
var SideContainer = /*#__PURE__*/styled.View.withConfig({
|
|
921
|
+
displayName: "Header__SideContainer",
|
|
922
|
+
componentId: "kitt-universal__sc-dfmxi1-0"
|
|
923
|
+
})(["", ""], function (_ref) {
|
|
874
924
|
var theme = _ref.theme,
|
|
875
925
|
_ref$side = _ref.side,
|
|
876
926
|
side = _ref$side === void 0 ? 'left' : _ref$side;
|
|
@@ -887,7 +937,10 @@ function getHeaderHorizontalMediumPadding(spacing) {
|
|
|
887
937
|
return spacing * 6;
|
|
888
938
|
}
|
|
889
939
|
|
|
890
|
-
var Header = styled.View(
|
|
940
|
+
var Header = /*#__PURE__*/styled.View.withConfig({
|
|
941
|
+
displayName: "Header",
|
|
942
|
+
componentId: "kitt-universal__sc-dfmxi1-1"
|
|
943
|
+
})(["", ";border-bottom-color:", ";border-bottom-width:1px;flex-direction:row;align-items:center;"], function (_ref2) {
|
|
891
944
|
var theme = _ref2.theme,
|
|
892
945
|
_ref2$insetTop = _ref2.insetTop,
|
|
893
946
|
insetTop = _ref2$insetTop === void 0 ? 0 : _ref2$insetTop;
|
|
@@ -902,7 +955,10 @@ var Header = styled.View(_templateObject2$7 || (_templateObject2$7 = _taggedTemp
|
|
|
902
955
|
var theme = _ref3.theme;
|
|
903
956
|
return theme.kitt.fullScreenModal.header.borderColor;
|
|
904
957
|
});
|
|
905
|
-
var HeaderContent = styled.View(
|
|
958
|
+
var HeaderContent = /*#__PURE__*/styled.View.withConfig({
|
|
959
|
+
displayName: "Header__HeaderContent",
|
|
960
|
+
componentId: "kitt-universal__sc-dfmxi1-2"
|
|
961
|
+
})(["", ";", ";justify-content:center;align-items:center;"], function (_ref4) {
|
|
906
962
|
var theme = _ref4.theme,
|
|
907
963
|
leftWidth = _ref4.leftWidth,
|
|
908
964
|
rightWidth = _ref4.rightWidth,
|
|
@@ -968,7 +1024,7 @@ function FullScreenModalHeader(_ref6) {
|
|
|
968
1024
|
};
|
|
969
1025
|
|
|
970
1026
|
return /*#__PURE__*/React.createElement(Header, {
|
|
971
|
-
insetTop:
|
|
1027
|
+
insetTop: top
|
|
972
1028
|
}, left ? /*#__PURE__*/React.createElement(SideContainer, {
|
|
973
1029
|
onLayout: function onLayout(e) {
|
|
974
1030
|
return handleLayoutChange(e, 'left');
|
|
@@ -985,8 +1041,10 @@ function FullScreenModalHeader(_ref6) {
|
|
|
985
1041
|
}, right) : null);
|
|
986
1042
|
}
|
|
987
1043
|
|
|
988
|
-
var
|
|
989
|
-
|
|
1044
|
+
var Container$2 = /*#__PURE__*/styled.View.withConfig({
|
|
1045
|
+
displayName: "FullScreenModal__Container",
|
|
1046
|
+
componentId: "kitt-universal__sc-11qpbe3-0"
|
|
1047
|
+
})(["flex:1;background-color:", ";"], function (_ref) {
|
|
990
1048
|
var theme = _ref.theme;
|
|
991
1049
|
return theme.kitt.colors.uiBackground;
|
|
992
1050
|
});
|
|
@@ -998,9 +1056,10 @@ FullScreenModal.Header = FullScreenModalHeader;
|
|
|
998
1056
|
FullScreenModal.Body = FullScreenModalBody;
|
|
999
1057
|
|
|
1000
1058
|
var _excluded$5 = ["children"];
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1059
|
+
var ContentView$1 = /*#__PURE__*/styled.View.withConfig({
|
|
1060
|
+
displayName: "ListItemContent__ContentView",
|
|
1061
|
+
componentId: "kitt-universal__sc-57q0u9-0"
|
|
1062
|
+
})(["flex:1 0 0%;align-self:center;"]);
|
|
1004
1063
|
function ListItemContent(_ref) {
|
|
1005
1064
|
var children = _ref.children,
|
|
1006
1065
|
rest = _objectWithoutProperties(_ref, _excluded$5);
|
|
@@ -1010,9 +1069,10 @@ function ListItemContent(_ref) {
|
|
|
1010
1069
|
|
|
1011
1070
|
var _excluded$4 = ["children", "side"],
|
|
1012
1071
|
_excluded2$1 = ["children", "align"];
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1072
|
+
var SideContainerView = /*#__PURE__*/styled.View.withConfig({
|
|
1073
|
+
displayName: "ListItemSideContent__SideContainerView",
|
|
1074
|
+
componentId: "kitt-universal__sc-1vajiw-0"
|
|
1075
|
+
})(["flex-direction:row;margin-left:", ";margin-right:", ";"], function (_ref) {
|
|
1016
1076
|
var theme = _ref.theme,
|
|
1017
1077
|
side = _ref.side;
|
|
1018
1078
|
return side === 'right' ? theme.kitt.listItem.innerMargin : 0;
|
|
@@ -1032,7 +1092,10 @@ function ListItemSideContainer(_ref3) {
|
|
|
1032
1092
|
side: side
|
|
1033
1093
|
}, rest), children);
|
|
1034
1094
|
}
|
|
1035
|
-
var SideContentView = styled.View(
|
|
1095
|
+
var SideContentView = /*#__PURE__*/styled.View.withConfig({
|
|
1096
|
+
displayName: "ListItemSideContent__SideContentView",
|
|
1097
|
+
componentId: "kitt-universal__sc-1vajiw-1"
|
|
1098
|
+
})(["align-self:", ";"], function (_ref4) {
|
|
1036
1099
|
var align = _ref4.align;
|
|
1037
1100
|
return align;
|
|
1038
1101
|
});
|
|
@@ -1048,9 +1111,10 @@ function ListItemSideContent(_ref5) {
|
|
|
1048
1111
|
}
|
|
1049
1112
|
|
|
1050
1113
|
var _excluded$3 = ["children", "withPadding", "borders", "left", "right"];
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1114
|
+
var ContainerView = /*#__PURE__*/styled.View.withConfig({
|
|
1115
|
+
displayName: "ListItem__ContainerView",
|
|
1116
|
+
componentId: "kitt-universal__sc-2afp9s-0"
|
|
1117
|
+
})(["flex-direction:row;padding:", ";", ";border-color:", ";background-color:", ";"], function (_ref) {
|
|
1054
1118
|
var withPadding = _ref.withPadding,
|
|
1055
1119
|
theme = _ref.theme;
|
|
1056
1120
|
return withPadding ? theme.kitt.listItem.padding : 0;
|
|
@@ -1138,10 +1202,12 @@ function Loader(_ref) {
|
|
|
1138
1202
|
});
|
|
1139
1203
|
}
|
|
1140
1204
|
|
|
1141
|
-
var _templateObject$a, _templateObject2$5, _templateObject3$3, _templateObject4$2;
|
|
1142
1205
|
var xIconSize = 14;
|
|
1143
1206
|
var mainIconSize = 20;
|
|
1144
|
-
var Container$1 = styled.View(
|
|
1207
|
+
var Container$1 = /*#__PURE__*/styled.View.withConfig({
|
|
1208
|
+
displayName: "Message__Container",
|
|
1209
|
+
componentId: "kitt-universal__sc-c6400e-0"
|
|
1210
|
+
})(["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) {
|
|
1145
1211
|
var theme = _ref.theme,
|
|
1146
1212
|
noRadius = _ref.noRadius;
|
|
1147
1213
|
return noRadius ? 0 : theme.kitt.spacing * 5;
|
|
@@ -1165,18 +1231,27 @@ var Container$1 = styled.View(_templateObject$a || (_templateObject$a = _taggedT
|
|
|
1165
1231
|
insets = _ref6.insets;
|
|
1166
1232
|
return ((_insets$top = insets === null || insets === void 0 ? void 0 : insets.top) !== null && _insets$top !== void 0 ? _insets$top : 0) + theme.kitt.spacing * 4;
|
|
1167
1233
|
});
|
|
1168
|
-
var CloseContainer = styled.TouchableOpacity(
|
|
1234
|
+
var CloseContainer = /*#__PURE__*/styled.TouchableOpacity.withConfig({
|
|
1235
|
+
displayName: "Message__CloseContainer",
|
|
1236
|
+
componentId: "kitt-universal__sc-c6400e-1"
|
|
1237
|
+
})(["margin-left:", "px;padding:", "px;"], function (_ref7) {
|
|
1169
1238
|
var theme = _ref7.theme;
|
|
1170
1239
|
return theme.kitt.spacing * 4;
|
|
1171
1240
|
}, function (_ref8) {
|
|
1172
1241
|
var theme = _ref8.theme;
|
|
1173
1242
|
return theme.kitt.spacing;
|
|
1174
1243
|
});
|
|
1175
|
-
var IconContainer = styled.View(
|
|
1244
|
+
var IconContainer = /*#__PURE__*/styled.View.withConfig({
|
|
1245
|
+
displayName: "Message__IconContainer",
|
|
1246
|
+
componentId: "kitt-universal__sc-c6400e-2"
|
|
1247
|
+
})(["margin-right:", "px;"], function (_ref9) {
|
|
1176
1248
|
var theme = _ref9.theme;
|
|
1177
1249
|
return theme.kitt.spacing * 4;
|
|
1178
1250
|
});
|
|
1179
|
-
var Content = styled.Text(
|
|
1251
|
+
var Content = /*#__PURE__*/styled.Text.withConfig({
|
|
1252
|
+
displayName: "Message__Content",
|
|
1253
|
+
componentId: "kitt-universal__sc-c6400e-3"
|
|
1254
|
+
})(["text-align:", ";flex:1;"], function (_ref10) {
|
|
1180
1255
|
var centeredText = _ref10.centeredText;
|
|
1181
1256
|
return centeredText ? 'center' : 'left';
|
|
1182
1257
|
});
|
|
@@ -1248,7 +1323,10 @@ function Message(_ref11) {
|
|
|
1248
1323
|
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; }
|
|
1249
1324
|
|
|
1250
1325
|
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; }
|
|
1251
|
-
var OverlayPressable = styled.Pressable(
|
|
1326
|
+
var OverlayPressable = /*#__PURE__*/styled.Pressable.withConfig({
|
|
1327
|
+
displayName: "Overlay__OverlayPressable",
|
|
1328
|
+
componentId: "kitt-universal__sc-1cz1gbr-0"
|
|
1329
|
+
})(function (_ref) {
|
|
1252
1330
|
var theme = _ref.theme;
|
|
1253
1331
|
return _objectSpread(_objectSpread({}, StyleSheet.absoluteFillObject), {}, {
|
|
1254
1332
|
backgroundColor: theme.kitt.colors.overlay.dark
|
|
@@ -1261,8 +1339,10 @@ function Overlay(_ref2) {
|
|
|
1261
1339
|
}, /*#__PURE__*/React.createElement(View, null));
|
|
1262
1340
|
}
|
|
1263
1341
|
|
|
1264
|
-
var
|
|
1265
|
-
|
|
1342
|
+
var BodyView = /*#__PURE__*/styled.View.withConfig({
|
|
1343
|
+
displayName: "Body__BodyView",
|
|
1344
|
+
componentId: "kitt-universal__sc-17fwpo4-0"
|
|
1345
|
+
})(["padding:", "px ", "px;"], function (_ref) {
|
|
1266
1346
|
var theme = _ref.theme;
|
|
1267
1347
|
return theme.kitt.spacing * 6;
|
|
1268
1348
|
}, function (_ref2) {
|
|
@@ -1276,8 +1356,10 @@ var ModalBody = /*#__PURE__*/forwardRef(function (_ref3, ref) {
|
|
|
1276
1356
|
}, /*#__PURE__*/React.createElement(BodyView, null, children));
|
|
1277
1357
|
});
|
|
1278
1358
|
|
|
1279
|
-
var
|
|
1280
|
-
|
|
1359
|
+
var FooterView = /*#__PURE__*/styled.View.withConfig({
|
|
1360
|
+
displayName: "Footer__FooterView",
|
|
1361
|
+
componentId: "kitt-universal__sc-1ujq2dc-0"
|
|
1362
|
+
})(["flex:0 0 auto;padding:", "px;border-top-width:1px;border-top-color:", ";"], function (_ref) {
|
|
1281
1363
|
var theme = _ref.theme;
|
|
1282
1364
|
return theme.kitt.spacing * 4;
|
|
1283
1365
|
}, function (_ref2) {
|
|
@@ -1291,23 +1373,34 @@ function ModalFooter(_ref3) {
|
|
|
1291
1373
|
|
|
1292
1374
|
var OnCloseContext = /*#__PURE__*/createContext(function () {});
|
|
1293
1375
|
|
|
1294
|
-
var
|
|
1295
|
-
|
|
1376
|
+
var HeaderView = /*#__PURE__*/styled.View.withConfig({
|
|
1377
|
+
displayName: "Header__HeaderView",
|
|
1378
|
+
componentId: "kitt-universal__sc-1iwabch-0"
|
|
1379
|
+
})(["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) {
|
|
1296
1380
|
var theme = _ref.theme;
|
|
1297
1381
|
return theme.kitt.spacing * 2;
|
|
1298
1382
|
}, function (_ref2) {
|
|
1299
1383
|
var theme = _ref2.theme;
|
|
1300
1384
|
return theme.kitt.colors.separator;
|
|
1301
1385
|
});
|
|
1302
|
-
var LeftIconView = styled.View(
|
|
1386
|
+
var LeftIconView = /*#__PURE__*/styled.View.withConfig({
|
|
1387
|
+
displayName: "Header__LeftIconView",
|
|
1388
|
+
componentId: "kitt-universal__sc-1iwabch-1"
|
|
1389
|
+
})(["align-self:flex-start;margin-right:", "px;"], function (_ref3) {
|
|
1303
1390
|
var theme = _ref3.theme;
|
|
1304
1391
|
return theme.kitt.spacing * 2;
|
|
1305
1392
|
});
|
|
1306
|
-
var RightIconView = styled.View(
|
|
1393
|
+
var RightIconView = /*#__PURE__*/styled.View.withConfig({
|
|
1394
|
+
displayName: "Header__RightIconView",
|
|
1395
|
+
componentId: "kitt-universal__sc-1iwabch-2"
|
|
1396
|
+
})(["align-self:flex-start;margin-left:", "px;"], function (_ref4) {
|
|
1307
1397
|
var theme = _ref4.theme;
|
|
1308
1398
|
return theme.kitt.spacing * 2;
|
|
1309
1399
|
});
|
|
1310
|
-
var TitleView = styled.View(
|
|
1400
|
+
var TitleView = /*#__PURE__*/styled.View.withConfig({
|
|
1401
|
+
displayName: "Header__TitleView",
|
|
1402
|
+
componentId: "kitt-universal__sc-1iwabch-3"
|
|
1403
|
+
})(["padding-left:", "px;flex-shrink:1;"], function (_ref5) {
|
|
1311
1404
|
var theme = _ref5.theme,
|
|
1312
1405
|
isIconLeft = _ref5.isIconLeft;
|
|
1313
1406
|
return isIconLeft ? 0 : theme.kitt.spacing * 2;
|
|
@@ -1327,15 +1420,20 @@ function ModalHeader(_ref6) {
|
|
|
1327
1420
|
})));
|
|
1328
1421
|
}
|
|
1329
1422
|
|
|
1330
|
-
var
|
|
1331
|
-
|
|
1423
|
+
var ModalView = /*#__PURE__*/styled.View.withConfig({
|
|
1424
|
+
displayName: "Modal__ModalView",
|
|
1425
|
+
componentId: "kitt-universal__sc-1xy2w5u-0"
|
|
1426
|
+
})(["top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:", "px ", "px;"], function (_ref) {
|
|
1332
1427
|
var theme = _ref.theme;
|
|
1333
1428
|
return theme.kitt.spacing * 20;
|
|
1334
1429
|
}, function (_ref2) {
|
|
1335
1430
|
var theme = _ref2.theme;
|
|
1336
1431
|
return theme.kitt.spacing * 4;
|
|
1337
1432
|
});
|
|
1338
|
-
var ContentView = styled.View(
|
|
1433
|
+
var ContentView = /*#__PURE__*/styled.View.withConfig({
|
|
1434
|
+
displayName: "Modal__ContentView",
|
|
1435
|
+
componentId: "kitt-universal__sc-1xy2w5u-1"
|
|
1436
|
+
})(["position:relative;display:flex;flex-direction:column;max-height:100%;max-width:540px;height:auto;width:100%;border-radius:", ";background-color:", ";"], function (_ref3) {
|
|
1339
1437
|
var theme = _ref3.theme;
|
|
1340
1438
|
return theme.kitt.card.borderRadius;
|
|
1341
1439
|
}, function (_ref4) {
|
|
@@ -1385,9 +1483,14 @@ function Notification(_ref) {
|
|
|
1385
1483
|
}, children);
|
|
1386
1484
|
}
|
|
1387
1485
|
|
|
1388
|
-
var
|
|
1389
|
-
|
|
1390
|
-
|
|
1486
|
+
var StoryTitleContainer = /*#__PURE__*/styled.View.withConfig({
|
|
1487
|
+
displayName: "StoryTitle__StoryTitleContainer",
|
|
1488
|
+
componentId: "kitt-universal__sc-sic7hb-0"
|
|
1489
|
+
})(["margin-bottom:30px;"]);
|
|
1490
|
+
var StorySubTitleContainer = /*#__PURE__*/styled.View.withConfig({
|
|
1491
|
+
displayName: "StoryTitle__StorySubTitleContainer",
|
|
1492
|
+
componentId: "kitt-universal__sc-sic7hb-1"
|
|
1493
|
+
})(["margin-bottom:10px;"]);
|
|
1391
1494
|
function StoryTitle(_ref) {
|
|
1392
1495
|
var color = _ref.color,
|
|
1393
1496
|
children = _ref.children,
|
|
@@ -1449,9 +1552,10 @@ StoryTitle.Level4 = StoryTitleLevel4;
|
|
|
1449
1552
|
|
|
1450
1553
|
var _excluded$2 = ["title", "className", "children"],
|
|
1451
1554
|
_excluded2 = ["title", "className", "children"];
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1555
|
+
var StyledSection = /*#__PURE__*/styled.View.withConfig({
|
|
1556
|
+
displayName: "Section__StyledSection",
|
|
1557
|
+
componentId: "kitt-universal__sc-x4z1s-0"
|
|
1558
|
+
})(["margin-bottom:30px;"]);
|
|
1455
1559
|
function Section(_ref) {
|
|
1456
1560
|
var title = _ref.title;
|
|
1457
1561
|
_ref.className;
|
|
@@ -1460,7 +1564,10 @@ function Section(_ref) {
|
|
|
1460
1564
|
|
|
1461
1565
|
return /*#__PURE__*/React.createElement(StyledSection, props, /*#__PURE__*/React.createElement(StoryTitle.Level2, null, title), children);
|
|
1462
1566
|
}
|
|
1463
|
-
var StyledSubSection = styled.View(
|
|
1567
|
+
var StyledSubSection = /*#__PURE__*/styled.View.withConfig({
|
|
1568
|
+
displayName: "Section__StyledSubSection",
|
|
1569
|
+
componentId: "kitt-universal__sc-x4z1s-1"
|
|
1570
|
+
})(["margin-bottom:20px;"]);
|
|
1464
1571
|
|
|
1465
1572
|
function SubSection(_ref2) {
|
|
1466
1573
|
var title = _ref2.title;
|
|
@@ -1471,7 +1578,10 @@ function SubSection(_ref2) {
|
|
|
1471
1578
|
return /*#__PURE__*/React.createElement(StyledSubSection, props, /*#__PURE__*/React.createElement(StoryTitle.Level3, null, title), children);
|
|
1472
1579
|
}
|
|
1473
1580
|
|
|
1474
|
-
var StyledDemoSection = styled.View(
|
|
1581
|
+
var StyledDemoSection = /*#__PURE__*/styled.View.withConfig({
|
|
1582
|
+
displayName: "Section__StyledDemoSection",
|
|
1583
|
+
componentId: "kitt-universal__sc-x4z1s-2"
|
|
1584
|
+
})(["margin-bottom:90px;"]);
|
|
1475
1585
|
|
|
1476
1586
|
function DemoSection(_ref3) {
|
|
1477
1587
|
var children = _ref3.children;
|
|
@@ -1483,8 +1593,10 @@ function DemoSection(_ref3) {
|
|
|
1483
1593
|
Section.SubSection = SubSection;
|
|
1484
1594
|
Section.DemoSection = DemoSection;
|
|
1485
1595
|
|
|
1486
|
-
var
|
|
1487
|
-
|
|
1596
|
+
var StoryContainer = /*#__PURE__*/styled.ScrollView.withConfig({
|
|
1597
|
+
displayName: "Story__StoryContainer",
|
|
1598
|
+
componentId: "kitt-universal__sc-1kwdg2p-0"
|
|
1599
|
+
})(["padding:10px;"]);
|
|
1488
1600
|
function Story(_ref) {
|
|
1489
1601
|
var title = _ref.title,
|
|
1490
1602
|
contentContainerStyle = _ref.contentContainerStyle,
|
|
@@ -1500,11 +1612,22 @@ function StoryDecorator(storyFn, context) {
|
|
|
1500
1612
|
}, storyFn());
|
|
1501
1613
|
}
|
|
1502
1614
|
|
|
1503
|
-
var
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
var
|
|
1615
|
+
var SmallScreenRow = /*#__PURE__*/styled.View.withConfig({
|
|
1616
|
+
displayName: "StoryGrid__SmallScreenRow",
|
|
1617
|
+
componentId: "kitt-universal__sc-4z5new-0"
|
|
1618
|
+
})(["flex-direction:column;margin:0;"]);
|
|
1619
|
+
var SmallScreenCol = /*#__PURE__*/styled.View.withConfig({
|
|
1620
|
+
displayName: "StoryGrid__SmallScreenCol",
|
|
1621
|
+
componentId: "kitt-universal__sc-4z5new-1"
|
|
1622
|
+
})(["padding:10px 0 20px;"]);
|
|
1623
|
+
var FlexRow = /*#__PURE__*/styled.View.withConfig({
|
|
1624
|
+
displayName: "StoryGrid__FlexRow",
|
|
1625
|
+
componentId: "kitt-universal__sc-4z5new-2"
|
|
1626
|
+
})(["flex-direction:row;margin:0 -5px 20px;"]);
|
|
1627
|
+
var FlexCol = /*#__PURE__*/styled.View.withConfig({
|
|
1628
|
+
displayName: "StoryGrid__FlexCol",
|
|
1629
|
+
componentId: "kitt-universal__sc-4z5new-3"
|
|
1630
|
+
})(["flex-grow:1;flex-basis:0;margin:0 5px 10px;"]);
|
|
1508
1631
|
|
|
1509
1632
|
function StoryGridRow(_ref) {
|
|
1510
1633
|
var children = _ref.children,
|
|
@@ -1544,8 +1667,10 @@ var StoryGrid = {
|
|
|
1544
1667
|
Col: StoryGridCol
|
|
1545
1668
|
};
|
|
1546
1669
|
|
|
1547
|
-
var
|
|
1548
|
-
|
|
1670
|
+
var Container = /*#__PURE__*/styled.View.withConfig({
|
|
1671
|
+
displayName: "Tag__Container",
|
|
1672
|
+
componentId: "kitt-universal__sc-19jmowi-0"
|
|
1673
|
+
})(["background-color:", ";padding:", ";border-radius:", ";align-self:flex-start;"], function (_ref) {
|
|
1549
1674
|
var theme = _ref.theme,
|
|
1550
1675
|
type = _ref.type;
|
|
1551
1676
|
return theme.kitt.tag[type].backgroundColor;
|
|
@@ -1822,9 +1947,9 @@ var typographyLateOceanTheme = {
|
|
|
1822
1947
|
types: {
|
|
1823
1948
|
headers: {
|
|
1824
1949
|
fontFamily: {
|
|
1825
|
-
regular:
|
|
1826
|
-
bold:
|
|
1827
|
-
italic:
|
|
1950
|
+
regular: 'Moderat',
|
|
1951
|
+
bold: 'Moderat',
|
|
1952
|
+
italic: 'Moderat'
|
|
1828
1953
|
},
|
|
1829
1954
|
fontWeight: 400,
|
|
1830
1955
|
fontStyle: 'normal',
|
|
@@ -1843,9 +1968,9 @@ var typographyLateOceanTheme = {
|
|
|
1843
1968
|
},
|
|
1844
1969
|
bodies: {
|
|
1845
1970
|
fontFamily: {
|
|
1846
|
-
regular:
|
|
1847
|
-
bold:
|
|
1848
|
-
italic:
|
|
1971
|
+
regular: 'Noto Sans',
|
|
1972
|
+
bold: 'Noto Sans',
|
|
1973
|
+
italic: 'Noto Sans'
|
|
1849
1974
|
},
|
|
1850
1975
|
fontWeight: {
|
|
1851
1976
|
regular: 400,
|
|
@@ -1892,18 +2017,19 @@ function Tooltip(_ref) {
|
|
|
1892
2017
|
}
|
|
1893
2018
|
|
|
1894
2019
|
var _excluded$1 = ["disabled", "noUnderline", "variant"];
|
|
1895
|
-
|
|
1896
|
-
var _templateObject;
|
|
1897
|
-
var StyledLink = styled(Typography).withConfig({
|
|
2020
|
+
var StyledLink = /*#__PURE__*/styled(Typography).withConfig({
|
|
1898
2021
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
1899
2022
|
return !['disabled', 'noUnderline'].includes(prop);
|
|
1900
2023
|
}
|
|
1901
|
-
})(
|
|
2024
|
+
}).withConfig({
|
|
2025
|
+
displayName: "TypographyLink__StyledLink",
|
|
2026
|
+
componentId: "kitt-universal__sc-1o1zy30-0"
|
|
2027
|
+
})(["text-decoration:", ";", ";margin:0;"], function (_ref) {
|
|
1902
2028
|
var noUnderline = _ref.noUnderline;
|
|
1903
2029
|
return noUnderline ? 'none' : 'underline';
|
|
1904
2030
|
}, function (_ref2) {
|
|
1905
2031
|
var disabled = _ref2.disabled;
|
|
1906
|
-
return
|
|
2032
|
+
return "\n text-decoration-color: inherit;\n transition: color 0.2s ease-in-out;\n cursor: ".concat(disabled ? 'not-allowed' : 'pointer', ";\n ");
|
|
1907
2033
|
});
|
|
1908
2034
|
function TypographyLink(_ref3) {
|
|
1909
2035
|
var disabled = _ref3.disabled,
|