@ornikar/kitt-universal 9.4.0 → 9.5.0
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/Actions/Actions.d.ts +13 -0
- package/dist/definitions/Actions/Actions.d.ts.map +1 -0
- package/dist/definitions/Actions/ActionsButton.d.ts +9 -0
- package/dist/definitions/Actions/ActionsButton.d.ts.map +1 -0
- package/dist/definitions/Actions/ActionsItem.d.ts +12 -0
- package/dist/definitions/Actions/ActionsItem.d.ts.map +1 -0
- package/dist/definitions/Choices/ChoiceItem.d.ts.map +1 -1
- package/dist/definitions/IconButton/IconButton.d.ts +1 -1
- package/dist/definitions/IconButton/IconButton.d.ts.map +1 -1
- package/dist/definitions/IconButton/PressableAnimatedContainer.d.ts +1 -1
- package/dist/definitions/IconButton/PressableAnimatedContainer.d.ts.map +1 -1
- package/dist/definitions/forms/InputText/InputTextContainer.web.d.ts +1 -1
- package/dist/definitions/index.d.ts +4 -0
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +15 -15
- package/dist/definitions/story-components/StoryBlock.d.ts +1 -1
- package/dist/definitions/typography/TypographyLink.d.ts +1 -1
- package/dist/definitions/typography/TypographyLink.d.ts.map +1 -1
- package/dist/index-browser-all.es.android.js +598 -480
- package/dist/index-browser-all.es.android.js.map +1 -1
- package/dist/index-browser-all.es.ios.js +598 -480
- package/dist/index-browser-all.es.ios.js.map +1 -1
- package/dist/index-browser-all.es.js +598 -480
- package/dist/index-browser-all.es.js.map +1 -1
- package/dist/index-browser-all.es.web.js +627 -509
- package/dist/index-browser-all.es.web.js.map +1 -1
- package/dist/index-node-14.17.cjs.js +535 -456
- 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 +464 -385
- package/dist/index-node-14.17.cjs.web.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -1,60 +1,250 @@
|
|
|
1
1
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
|
-
import {
|
|
3
|
+
import { Stack as Stack$1, VStack as VStack$1, HStack as HStack$1, Text as Text$1, View as View$2, ScrollView as ScrollView$1, Pressable as Pressable$2, Image as Image$1, NativeBaseProvider, extendTheme } from 'native-base';
|
|
4
|
+
import _extends from '@babel/runtime/helpers/extends';
|
|
5
|
+
import { forwardRef, useContext, createContext, cloneElement, useState, useRef, useEffect, Children, useMemo, Fragment } from 'react';
|
|
6
|
+
import { styled } from '@linaria/react';
|
|
7
|
+
import { Pressable as Pressable$1, View as View$1, useWindowDimensions, Image, StyleSheet, ScrollView as ScrollView$2, Linking, TextInput, Modal as Modal$1, Text as Text$2 } from 'react-native';
|
|
4
8
|
export { useWindowDimensions as useWindowSize } from 'react-native';
|
|
5
|
-
import
|
|
6
|
-
export * from '@ornikar/kitt-icons';
|
|
7
|
-
import styled, { useTheme, css, ThemeProvider } from 'styled-components/native';
|
|
8
|
-
import { cloneElement, useContext, createContext, forwardRef, useState, Children, useMemo, Fragment, useEffect } from 'react';
|
|
9
|
+
import styled$1, { useTheme, css, ThemeProvider } from 'styled-components/native';
|
|
9
10
|
import { jsx, jsxs, Fragment as Fragment$1 } from 'react/jsx-runtime';
|
|
10
11
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
11
|
-
import { Text as Text$1, Pressable as Pressable$2, Image as Image$1, NativeBaseProvider, extendTheme, Stack as Stack$1, VStack as VStack$1, HStack as HStack$1, View as View$2, ScrollView as ScrollView$2 } from 'native-base';
|
|
12
|
-
import { styled as styled$1 } from '@linaria/react';
|
|
13
|
-
import Animated, { useSharedValue, useDerivedValue, withTiming, useAnimatedStyle, interpolateColor } from 'react-native-reanimated';
|
|
14
|
-
import { parse } from 'twemoji-parser';
|
|
15
12
|
import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
|
|
16
13
|
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
17
|
-
import
|
|
14
|
+
import { ArcIcon, UserIcon, CheckboxMark, EyeOffIcon, EyeIcon, InfoIcon, AlertTriangleIcon, CheckIcon, AlertCircleIcon, XIcon, TooltipArrowIcon } from '@ornikar/kitt-icons';
|
|
15
|
+
export * from '@ornikar/kitt-icons';
|
|
16
|
+
import Animated, { useSharedValue, useDerivedValue, withTiming, useAnimatedStyle, interpolateColor } from 'react-native-reanimated';
|
|
17
|
+
import { parse } from 'twemoji-parser';
|
|
18
18
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
19
19
|
import { Portal } from 'react-portal';
|
|
20
20
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
21
21
|
import { useFloating, offset, shift, flip, getScrollParents } from '@floating-ui/react-dom';
|
|
22
22
|
import { makeDecorator } from '@storybook/addons';
|
|
23
23
|
|
|
24
|
-
var
|
|
25
|
-
var
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
var Stack = Stack$1;
|
|
25
|
+
var VStack = VStack$1;
|
|
26
|
+
var HStack = HStack$1;
|
|
27
|
+
|
|
28
|
+
function warn(message) {
|
|
29
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
30
|
+
console.warn(message);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
function deprecatedMessage(symbol, deprecation, replaceBy) {
|
|
34
|
+
var replaceMessage = replaceBy === undefined ? '' : ", please use ".concat(replaceBy, " instead");
|
|
35
|
+
warn("[Deprecation] in ".concat(symbol, ": ").concat(deprecation, " is deprecated").concat(replaceMessage, "."));
|
|
36
|
+
}
|
|
37
|
+
function deprecatedInComponent(component, deprecation, replaceBy) {
|
|
38
|
+
deprecatedMessage("<".concat(component, " />"), deprecation, replaceBy);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// type $Without<T, K extends keyof any> = T extends any ? Pick<T, Exclude<keyof T, K>> : never;
|
|
42
|
+
// type $DeepPartial<T> = { [P in keyof T]?: $DeepPartial<T[P]> };
|
|
43
|
+
// export function withTheme<Props extends { theme: DefaultTheme }, C>(
|
|
44
|
+
// WrappedComponent: ComponentType<Props> & C,
|
|
45
|
+
// ): ComponentType<SetOptional<Props, 'theme'>> & hoistNonReactStatics.NonReactStatics<typeof WrappedComponent> {
|
|
46
|
+
// return function ThemedComponent(props) {
|
|
47
|
+
// const theme = useTheme();
|
|
48
|
+
// return (<WrappedComponent theme={theme} {...(props as any)} />) as any;
|
|
49
|
+
// };
|
|
50
|
+
// }
|
|
51
|
+
function withTheme(WrappedComponent) {
|
|
52
|
+
// eslint-disable-next-line prefer-arrow-callback
|
|
53
|
+
return /*#__PURE__*/forwardRef(function (props, ref) {
|
|
54
|
+
var theme = /*#__PURE__*/useTheme();
|
|
55
|
+
return /*#__PURE__*/jsx(WrappedComponent, _objectSpread({
|
|
56
|
+
ref: ref,
|
|
57
|
+
theme: theme
|
|
58
|
+
}, props));
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
var hasVariant = function (button, variant) {
|
|
63
|
+
return variant in button;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
function getVariantValuesIfExist(theme, type, variant) {
|
|
67
|
+
var button = theme.kitt.button[type];
|
|
68
|
+
|
|
69
|
+
if (hasVariant(button, variant)) {
|
|
70
|
+
return button[variant];
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
return theme.kitt.button[type]["default"];
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
function isSubtle(type) {
|
|
77
|
+
return type.startsWith('subtle');
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
var _excluded$m = ["$type", "$variant", "$isStretch", "disabled"];
|
|
81
|
+
var AnimatedButtonPressableContainer = withTheme( /*#__PURE__*/styled("div")({
|
|
82
|
+
name: "AnimatedButtonPressableContainer",
|
|
83
|
+
"class": "kitt-u_AnimatedButtonPressableContainer_a1vkj3mh",
|
|
84
|
+
vars: {
|
|
85
|
+
"a1vkj3mh-0": [function (_ref) {
|
|
86
|
+
var $isStretch = _ref.$isStretch;
|
|
87
|
+
return $isStretch ? 'inherit' : 'inline-flex';
|
|
88
|
+
}],
|
|
89
|
+
"a1vkj3mh-1": [function (_ref2) {
|
|
90
|
+
var $isStretch = _ref2.$isStretch;
|
|
91
|
+
return $isStretch ? 'stretch' : 'baseline';
|
|
92
|
+
}],
|
|
93
|
+
"a1vkj3mh-3": [function (_ref3) {
|
|
94
|
+
var theme = _ref3.theme;
|
|
95
|
+
return theme.kitt.button.scale.medium.hover;
|
|
96
|
+
}],
|
|
97
|
+
"a1vkj3mh-4": [function (_ref4) {
|
|
98
|
+
var theme = _ref4.theme,
|
|
99
|
+
$isDisabled = _ref4.$isDisabled;
|
|
100
|
+
return "scale(".concat($isDisabled ? 1 : theme.kitt.button.scale.base.active, ")");
|
|
101
|
+
}],
|
|
102
|
+
"a1vkj3mh-5": [function (_ref5) {
|
|
103
|
+
var theme = _ref5.theme,
|
|
104
|
+
$type = _ref5.$type,
|
|
105
|
+
$variant = _ref5.$variant,
|
|
106
|
+
$isDisabled = _ref5.$isDisabled;
|
|
107
|
+
if ($isDisabled) return theme.kitt.button.disabled["default"].hoverBackgroundColor;
|
|
108
|
+
return getVariantValuesIfExist(theme, $type, $variant).hoverBackgroundColor;
|
|
109
|
+
}],
|
|
110
|
+
"a1vkj3mh-6": [function (_ref6) {
|
|
111
|
+
var theme = _ref6.theme;
|
|
112
|
+
var _theme$kitt$button$tr = theme.kitt.button.transition,
|
|
113
|
+
duration = _theme$kitt$button$tr.duration,
|
|
114
|
+
timingFunction = _theme$kitt$button$tr.timingFunction;
|
|
115
|
+
return "color, background, border-color, ".concat(duration, " ").concat(timingFunction);
|
|
116
|
+
}],
|
|
117
|
+
"a1vkj3mh-7": [function (_ref7) {
|
|
118
|
+
var theme = _ref7.theme;
|
|
119
|
+
return theme.kitt.button.borderRadius;
|
|
120
|
+
}, "px"],
|
|
121
|
+
"a1vkj3mh-8": [function (_ref8) {
|
|
122
|
+
var theme = _ref8.theme;
|
|
123
|
+
return "opacity ".concat(theme.kitt.button.transition.duration, " ").concat(theme.kitt.button.transition.timingFunction);
|
|
124
|
+
}],
|
|
125
|
+
"a1vkj3mh-9": [function (_ref9) {
|
|
126
|
+
var $isDisabled = _ref9.$isDisabled;
|
|
127
|
+
return $isDisabled ? 1 : 0;
|
|
128
|
+
}],
|
|
129
|
+
"a1vkj3mh-10": [function (_ref10) {
|
|
130
|
+
var theme = _ref10.theme;
|
|
131
|
+
return "-".concat(theme.kitt.button.borderWidth.disabled, "px");
|
|
132
|
+
}],
|
|
133
|
+
"a1vkj3mh-12": [function (_ref11) {
|
|
134
|
+
var theme = _ref11.theme;
|
|
135
|
+
return "calc(100% - ".concat(theme.kitt.button.borderWidth.disabled * 0.5, "px)");
|
|
136
|
+
}],
|
|
137
|
+
"a1vkj3mh-14": [function (_ref12) {
|
|
138
|
+
var theme = _ref12.theme;
|
|
139
|
+
return "".concat(theme.kitt.button.borderWidth.disabled, "px solid ").concat(theme.kitt.button.disabled["default"].borderColor);
|
|
140
|
+
}],
|
|
141
|
+
"a1vkj3mh-15": [function (_ref13) {
|
|
142
|
+
var theme = _ref13.theme,
|
|
143
|
+
$type = _ref13.$type,
|
|
144
|
+
$variant = _ref13.$variant;
|
|
145
|
+
return "".concat(theme.kitt.button.borderWidth.focus, "px solid ").concat(getVariantValuesIfExist(theme, $type, $variant).focusBorderColor);
|
|
146
|
+
}],
|
|
147
|
+
"a1vkj3mh-16": [function (_ref14) {
|
|
148
|
+
var theme = _ref14.theme;
|
|
149
|
+
return "-".concat(theme.kitt.button.borderWidth.focus, "px");
|
|
150
|
+
}],
|
|
151
|
+
"a1vkj3mh-18": [function (_ref15) {
|
|
152
|
+
var theme = _ref15.theme,
|
|
153
|
+
$type = _ref15.$type,
|
|
154
|
+
$isDisabled = _ref15.$isDisabled;
|
|
155
|
+
if ($isDisabled) return theme.kitt.typography.colors['black-light'];
|
|
156
|
+
|
|
157
|
+
if (isSubtle($type)) {
|
|
158
|
+
return theme.kitt.button[$type]["default"].color;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
return 'inherit';
|
|
162
|
+
}],
|
|
163
|
+
"a1vkj3mh-19": [function (_ref16) {
|
|
164
|
+
var theme = _ref16.theme,
|
|
165
|
+
$type = _ref16.$type,
|
|
166
|
+
$isDisabled = _ref16.$isDisabled;
|
|
167
|
+
if ($isDisabled) return theme.kitt.typography.colors['black-light'];
|
|
168
|
+
|
|
169
|
+
if (isSubtle($type)) {
|
|
170
|
+
return theme.kitt.button[$type]["default"].hoverColor;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
return 'inherit';
|
|
174
|
+
}],
|
|
175
|
+
"a1vkj3mh-20": [function (_ref17) {
|
|
176
|
+
var theme = _ref17.theme,
|
|
177
|
+
$type = _ref17.$type,
|
|
178
|
+
$isDisabled = _ref17.$isDisabled;
|
|
179
|
+
if ($isDisabled) return theme.kitt.typography.colors['black-light'];
|
|
180
|
+
|
|
181
|
+
if (isSubtle($type)) {
|
|
182
|
+
return theme.kitt.button[$type]["default"].activeColor;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
return 'inherit';
|
|
186
|
+
}]
|
|
187
|
+
}
|
|
188
|
+
}));
|
|
189
|
+
var AnimatedButtonPressable = /*#__PURE__*/forwardRef(function (_ref18, ref) {
|
|
190
|
+
var $type = _ref18.$type,
|
|
191
|
+
$variant = _ref18.$variant,
|
|
192
|
+
$isStretch = _ref18.$isStretch,
|
|
193
|
+
disabled = _ref18.disabled,
|
|
194
|
+
props = _objectWithoutProperties(_ref18, _excluded$m);
|
|
195
|
+
|
|
196
|
+
return /*#__PURE__*/jsx(AnimatedButtonPressableContainer, {
|
|
197
|
+
ref: ref,
|
|
198
|
+
$type: $type,
|
|
199
|
+
$variant: $variant,
|
|
200
|
+
$isDisabled: !!disabled,
|
|
201
|
+
$isStretch: $isStretch,
|
|
202
|
+
children: /*#__PURE__*/jsx(Pressable$1, _objectSpread({
|
|
203
|
+
disabled: disabled
|
|
204
|
+
}, props))
|
|
205
|
+
});
|
|
206
|
+
});
|
|
207
|
+
|
|
208
|
+
var BaseStyledButtonPressable = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
209
|
+
displayName: "BaseStyledButtonPressable",
|
|
210
|
+
componentId: "kitt-universal__sc-4k8lse-0"
|
|
211
|
+
})(["position:relative;min-width:", "px;max-width:", ";width:", ";min-height:", "px;border-radius:", "px;flex-direction:row;align-items:center;justify-content:center;align-self:flex-start;background-color:", ";padding:", ";"], function (_ref) {
|
|
212
|
+
var theme = _ref.theme;
|
|
213
|
+
return theme.kitt.button.minWidth;
|
|
31
214
|
}, function (_ref2) {
|
|
32
|
-
var
|
|
33
|
-
|
|
215
|
+
var theme = _ref2.theme,
|
|
216
|
+
$isStretch = _ref2.$isStretch;
|
|
217
|
+
return $isStretch ? '100%' : "".concat(theme.kitt.button.maxWidth, "px");
|
|
34
218
|
}, function (_ref3) {
|
|
35
|
-
var $
|
|
36
|
-
return $
|
|
219
|
+
var $isStretch = _ref3.$isStretch;
|
|
220
|
+
return $isStretch ? '100%' : 'auto';
|
|
37
221
|
}, function (_ref4) {
|
|
38
|
-
var
|
|
39
|
-
|
|
40
|
-
|
|
222
|
+
var theme = _ref4.theme;
|
|
223
|
+
return theme.kitt.button.minHeight;
|
|
224
|
+
}, function (_ref5) {
|
|
225
|
+
var theme = _ref5.theme;
|
|
226
|
+
return theme.kitt.button.borderRadius;
|
|
227
|
+
}, function (_ref6) {
|
|
228
|
+
var theme = _ref6.theme,
|
|
229
|
+
$isDisabled = _ref6.$isDisabled,
|
|
230
|
+
$type = _ref6.$type,
|
|
231
|
+
$variant = _ref6.$variant;
|
|
232
|
+
if ($isDisabled) return theme.kitt.button.disabled["default"].backgroundColor;
|
|
233
|
+
return getVariantValuesIfExist(theme, $type, $variant).backgroundColor;
|
|
234
|
+
}, function (_ref7) {
|
|
235
|
+
var theme = _ref7.theme,
|
|
236
|
+
$size = _ref7.$size,
|
|
237
|
+
$isDisabled = _ref7.$isDisabled;
|
|
238
|
+
var _theme$kitt$button$co = theme.kitt.button.contentPadding,
|
|
239
|
+
large = _theme$kitt$button$co.large,
|
|
240
|
+
defaultPadding = _theme$kitt$button$co["default"],
|
|
241
|
+
disabledPadding = _theme$kitt$button$co.disabled,
|
|
242
|
+
xLarge = _theme$kitt$button$co.xLarge;
|
|
243
|
+
if ($size === 'large') return large;
|
|
244
|
+
if ($size === 'xlarge') return xLarge;
|
|
245
|
+
if ($isDisabled) return disabledPadding;
|
|
246
|
+
return defaultPadding;
|
|
41
247
|
});
|
|
42
|
-
function Icon(_ref5) {
|
|
43
|
-
var icon = _ref5.icon,
|
|
44
|
-
_ref5$size = _ref5.size,
|
|
45
|
-
size = _ref5$size === void 0 ? defaultIconSize : _ref5$size,
|
|
46
|
-
align = _ref5.align,
|
|
47
|
-
color = _ref5.color;
|
|
48
|
-
var clonedIcon = /*#__PURE__*/cloneElement(icon, {
|
|
49
|
-
color: color
|
|
50
|
-
});
|
|
51
|
-
return /*#__PURE__*/jsx(IconContainer$1, {
|
|
52
|
-
$align: align,
|
|
53
|
-
$size: size,
|
|
54
|
-
$color: color,
|
|
55
|
-
children: clonedIcon
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
248
|
|
|
59
249
|
var KittBreakpoints = {
|
|
60
250
|
/**
|
|
@@ -113,7 +303,7 @@ var KittBreakpointNameEnum;
|
|
|
113
303
|
KittBreakpointNameEnum["WIDE"] = "wide";
|
|
114
304
|
})(KittBreakpointNameEnum || (KittBreakpointNameEnum = {}));
|
|
115
305
|
|
|
116
|
-
var _excluded$
|
|
306
|
+
var _excluded$l = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
|
|
117
307
|
var IsHeaderTypographyContext = /*#__PURE__*/createContext(undefined);
|
|
118
308
|
var TypographyColorContext = /*#__PURE__*/createContext('black');
|
|
119
309
|
function useTypographyColor() {
|
|
@@ -185,7 +375,7 @@ function Typography(_ref) {
|
|
|
185
375
|
} : _ref$type,
|
|
186
376
|
variant = _ref.variant,
|
|
187
377
|
color = _ref.color,
|
|
188
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
378
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$l);
|
|
189
379
|
|
|
190
380
|
var isHeaderTypographyInContext = useContext(IsHeaderTypographyContext);
|
|
191
381
|
var defaultColor = useTypographyDefaultColor();
|
|
@@ -279,325 +469,52 @@ Typography.h2 = createHeading(2, 'header2');
|
|
|
279
469
|
Typography.h3 = createHeading(3, 'header3');
|
|
280
470
|
/** @deprecated use Typography.Header4 */
|
|
281
471
|
|
|
282
|
-
Typography.h4 = createHeading(4, 'header4');
|
|
283
|
-
/** @deprecated use Typography.Header6 */
|
|
284
|
-
|
|
285
|
-
Typography.h5 = createHeading(5, 'header5');
|
|
286
|
-
|
|
287
|
-
var
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
};
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
var theme = _ref2.theme,
|
|
305
|
-
$isLight = _ref2.$isLight;
|
|
306
|
-
return $isLight ? theme.kitt.avatar.light.backgroundColor : theme.kitt.avatar["default"].backgroundColor;
|
|
307
|
-
}, function (_ref3) {
|
|
308
|
-
var $size = _ref3.$size;
|
|
309
|
-
return $size;
|
|
310
|
-
}, function (_ref4) {
|
|
311
|
-
var $size = _ref4.$size;
|
|
312
|
-
return $size;
|
|
313
|
-
});
|
|
314
|
-
|
|
315
|
-
function AvatarContent(_ref5) {
|
|
316
|
-
var size = _ref5.size,
|
|
317
|
-
src = _ref5.src,
|
|
318
|
-
firstname = _ref5.firstname,
|
|
319
|
-
lastname = _ref5.lastname,
|
|
320
|
-
alt = _ref5.alt,
|
|
321
|
-
isLight = _ref5.isLight,
|
|
322
|
-
sizeVariant = _ref5.sizeVariant;
|
|
323
|
-
|
|
324
|
-
if (src) {
|
|
325
|
-
return /*#__PURE__*/jsx(Image, {
|
|
326
|
-
source: {
|
|
327
|
-
uri: src
|
|
328
|
-
},
|
|
329
|
-
style: {
|
|
330
|
-
width: size,
|
|
331
|
-
height: size
|
|
332
|
-
},
|
|
333
|
-
accessibilityLabel: alt
|
|
334
|
-
});
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
if (firstname && lastname) {
|
|
338
|
-
return /*#__PURE__*/jsx(Typography.Text, {
|
|
339
|
-
base: sizeVariant === 'large' ? 'body-large' : 'body-small',
|
|
340
|
-
variant: sizeVariant === 'large' ? 'bold' : 'regular',
|
|
341
|
-
color: isLight ? 'black' : 'white',
|
|
342
|
-
children: getInitials(firstname, lastname)
|
|
343
|
-
});
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
return /*#__PURE__*/jsx(Icon, {
|
|
347
|
-
icon: /*#__PURE__*/jsx(UserIcon, {}),
|
|
348
|
-
color: isLight ? 'black' : 'white',
|
|
349
|
-
size: size / 2
|
|
350
|
-
});
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
function Avatar(_ref6) {
|
|
354
|
-
var _ref6$size = _ref6.size,
|
|
355
|
-
size = _ref6$size === void 0 ? 40 : _ref6$size,
|
|
356
|
-
round = _ref6.round,
|
|
357
|
-
light = _ref6.light,
|
|
358
|
-
sizeVariant = _ref6.sizeVariant,
|
|
359
|
-
props = _objectWithoutProperties(_ref6, _excluded$j);
|
|
360
|
-
|
|
361
|
-
return /*#__PURE__*/jsx(StyledAvatarView, {
|
|
362
|
-
$size: size,
|
|
363
|
-
$isRound: round,
|
|
364
|
-
$isLight: light,
|
|
365
|
-
$sizeVariant: sizeVariant,
|
|
366
|
-
children: /*#__PURE__*/jsx(AvatarContent, _objectSpread({
|
|
367
|
-
size: size,
|
|
368
|
-
isLight: light,
|
|
369
|
-
sizeVariant: sizeVariant
|
|
370
|
-
}, props))
|
|
371
|
-
});
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
function warn(message) {
|
|
375
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
376
|
-
console.warn(message);
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
function deprecatedMessage(symbol, deprecation, replaceBy) {
|
|
380
|
-
var replaceMessage = replaceBy === undefined ? '' : ", please use ".concat(replaceBy, " instead");
|
|
381
|
-
warn("[Deprecation] in ".concat(symbol, ": ").concat(deprecation, " is deprecated").concat(replaceMessage, "."));
|
|
382
|
-
}
|
|
383
|
-
function deprecatedInComponent(component, deprecation, replaceBy) {
|
|
384
|
-
deprecatedMessage("<".concat(component, " />"), deprecation, replaceBy);
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
// type $Without<T, K extends keyof any> = T extends any ? Pick<T, Exclude<keyof T, K>> : never;
|
|
388
|
-
// type $DeepPartial<T> = { [P in keyof T]?: $DeepPartial<T[P]> };
|
|
389
|
-
// export function withTheme<Props extends { theme: DefaultTheme }, C>(
|
|
390
|
-
// WrappedComponent: ComponentType<Props> & C,
|
|
391
|
-
// ): ComponentType<SetOptional<Props, 'theme'>> & hoistNonReactStatics.NonReactStatics<typeof WrappedComponent> {
|
|
392
|
-
// return function ThemedComponent(props) {
|
|
393
|
-
// const theme = useTheme();
|
|
394
|
-
// return (<WrappedComponent theme={theme} {...(props as any)} />) as any;
|
|
395
|
-
// };
|
|
396
|
-
// }
|
|
397
|
-
function withTheme(WrappedComponent) {
|
|
398
|
-
// eslint-disable-next-line prefer-arrow-callback
|
|
399
|
-
return /*#__PURE__*/forwardRef(function (props, ref) {
|
|
400
|
-
var theme = /*#__PURE__*/useTheme();
|
|
401
|
-
return /*#__PURE__*/jsx(WrappedComponent, _objectSpread({
|
|
402
|
-
ref: ref,
|
|
403
|
-
theme: theme
|
|
404
|
-
}, props));
|
|
405
|
-
});
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
var hasVariant = function (button, variant) {
|
|
409
|
-
return variant in button;
|
|
410
|
-
};
|
|
411
|
-
|
|
412
|
-
function getVariantValuesIfExist(theme, type, variant) {
|
|
413
|
-
var button = theme.kitt.button[type];
|
|
414
|
-
|
|
415
|
-
if (hasVariant(button, variant)) {
|
|
416
|
-
return button[variant];
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
return theme.kitt.button[type]["default"];
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
function isSubtle(type) {
|
|
423
|
-
return type.startsWith('subtle');
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
var _excluded$i = ["$type", "$variant", "$isStretch", "disabled"];
|
|
427
|
-
var AnimatedButtonPressableContainer = withTheme( /*#__PURE__*/styled$1("div")({
|
|
428
|
-
name: "AnimatedButtonPressableContainer",
|
|
429
|
-
"class": "kitt-u_AnimatedButtonPressableContainer_a1vkj3mh",
|
|
430
|
-
vars: {
|
|
431
|
-
"a1vkj3mh-0": [function (_ref) {
|
|
432
|
-
var $isStretch = _ref.$isStretch;
|
|
433
|
-
return $isStretch ? 'inherit' : 'inline-flex';
|
|
434
|
-
}],
|
|
435
|
-
"a1vkj3mh-1": [function (_ref2) {
|
|
436
|
-
var $isStretch = _ref2.$isStretch;
|
|
437
|
-
return $isStretch ? 'stretch' : 'baseline';
|
|
438
|
-
}],
|
|
439
|
-
"a1vkj3mh-3": [function (_ref3) {
|
|
440
|
-
var theme = _ref3.theme;
|
|
441
|
-
return theme.kitt.button.scale.medium.hover;
|
|
442
|
-
}],
|
|
443
|
-
"a1vkj3mh-4": [function (_ref4) {
|
|
444
|
-
var theme = _ref4.theme,
|
|
445
|
-
$isDisabled = _ref4.$isDisabled;
|
|
446
|
-
return "scale(".concat($isDisabled ? 1 : theme.kitt.button.scale.base.active, ")");
|
|
447
|
-
}],
|
|
448
|
-
"a1vkj3mh-5": [function (_ref5) {
|
|
449
|
-
var theme = _ref5.theme,
|
|
450
|
-
$type = _ref5.$type,
|
|
451
|
-
$variant = _ref5.$variant,
|
|
452
|
-
$isDisabled = _ref5.$isDisabled;
|
|
453
|
-
if ($isDisabled) return theme.kitt.button.disabled["default"].hoverBackgroundColor;
|
|
454
|
-
return getVariantValuesIfExist(theme, $type, $variant).hoverBackgroundColor;
|
|
455
|
-
}],
|
|
456
|
-
"a1vkj3mh-6": [function (_ref6) {
|
|
457
|
-
var theme = _ref6.theme;
|
|
458
|
-
var _theme$kitt$button$tr = theme.kitt.button.transition,
|
|
459
|
-
duration = _theme$kitt$button$tr.duration,
|
|
460
|
-
timingFunction = _theme$kitt$button$tr.timingFunction;
|
|
461
|
-
return "color, background, border-color, ".concat(duration, " ").concat(timingFunction);
|
|
462
|
-
}],
|
|
463
|
-
"a1vkj3mh-7": [function (_ref7) {
|
|
464
|
-
var theme = _ref7.theme;
|
|
465
|
-
return theme.kitt.button.borderRadius;
|
|
466
|
-
}, "px"],
|
|
467
|
-
"a1vkj3mh-8": [function (_ref8) {
|
|
468
|
-
var theme = _ref8.theme;
|
|
469
|
-
return "opacity ".concat(theme.kitt.button.transition.duration, " ").concat(theme.kitt.button.transition.timingFunction);
|
|
470
|
-
}],
|
|
471
|
-
"a1vkj3mh-9": [function (_ref9) {
|
|
472
|
-
var $isDisabled = _ref9.$isDisabled;
|
|
473
|
-
return $isDisabled ? 1 : 0;
|
|
474
|
-
}],
|
|
475
|
-
"a1vkj3mh-10": [function (_ref10) {
|
|
476
|
-
var theme = _ref10.theme;
|
|
477
|
-
return "-".concat(theme.kitt.button.borderWidth.disabled, "px");
|
|
478
|
-
}],
|
|
479
|
-
"a1vkj3mh-12": [function (_ref11) {
|
|
480
|
-
var theme = _ref11.theme;
|
|
481
|
-
return "calc(100% - ".concat(theme.kitt.button.borderWidth.disabled * 0.5, "px)");
|
|
482
|
-
}],
|
|
483
|
-
"a1vkj3mh-14": [function (_ref12) {
|
|
484
|
-
var theme = _ref12.theme;
|
|
485
|
-
return "".concat(theme.kitt.button.borderWidth.disabled, "px solid ").concat(theme.kitt.button.disabled["default"].borderColor);
|
|
486
|
-
}],
|
|
487
|
-
"a1vkj3mh-15": [function (_ref13) {
|
|
488
|
-
var theme = _ref13.theme,
|
|
489
|
-
$type = _ref13.$type,
|
|
490
|
-
$variant = _ref13.$variant;
|
|
491
|
-
return "".concat(theme.kitt.button.borderWidth.focus, "px solid ").concat(getVariantValuesIfExist(theme, $type, $variant).focusBorderColor);
|
|
492
|
-
}],
|
|
493
|
-
"a1vkj3mh-16": [function (_ref14) {
|
|
494
|
-
var theme = _ref14.theme;
|
|
495
|
-
return "-".concat(theme.kitt.button.borderWidth.focus, "px");
|
|
496
|
-
}],
|
|
497
|
-
"a1vkj3mh-18": [function (_ref15) {
|
|
498
|
-
var theme = _ref15.theme,
|
|
499
|
-
$type = _ref15.$type,
|
|
500
|
-
$isDisabled = _ref15.$isDisabled;
|
|
501
|
-
if ($isDisabled) return theme.kitt.typography.colors['black-light'];
|
|
502
|
-
|
|
503
|
-
if (isSubtle($type)) {
|
|
504
|
-
return theme.kitt.button[$type]["default"].color;
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
return 'inherit';
|
|
508
|
-
}],
|
|
509
|
-
"a1vkj3mh-19": [function (_ref16) {
|
|
510
|
-
var theme = _ref16.theme,
|
|
511
|
-
$type = _ref16.$type,
|
|
512
|
-
$isDisabled = _ref16.$isDisabled;
|
|
513
|
-
if ($isDisabled) return theme.kitt.typography.colors['black-light'];
|
|
514
|
-
|
|
515
|
-
if (isSubtle($type)) {
|
|
516
|
-
return theme.kitt.button[$type]["default"].hoverColor;
|
|
517
|
-
}
|
|
518
|
-
|
|
519
|
-
return 'inherit';
|
|
520
|
-
}],
|
|
521
|
-
"a1vkj3mh-20": [function (_ref17) {
|
|
522
|
-
var theme = _ref17.theme,
|
|
523
|
-
$type = _ref17.$type,
|
|
524
|
-
$isDisabled = _ref17.$isDisabled;
|
|
525
|
-
if ($isDisabled) return theme.kitt.typography.colors['black-light'];
|
|
526
|
-
|
|
527
|
-
if (isSubtle($type)) {
|
|
528
|
-
return theme.kitt.button[$type]["default"].activeColor;
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
return 'inherit';
|
|
532
|
-
}]
|
|
533
|
-
}
|
|
534
|
-
}));
|
|
535
|
-
var AnimatedButtonPressable = /*#__PURE__*/forwardRef(function (_ref18, ref) {
|
|
536
|
-
var $type = _ref18.$type,
|
|
537
|
-
$variant = _ref18.$variant,
|
|
538
|
-
$isStretch = _ref18.$isStretch,
|
|
539
|
-
disabled = _ref18.disabled,
|
|
540
|
-
props = _objectWithoutProperties(_ref18, _excluded$i);
|
|
541
|
-
|
|
542
|
-
return /*#__PURE__*/jsx(AnimatedButtonPressableContainer, {
|
|
543
|
-
ref: ref,
|
|
544
|
-
$type: $type,
|
|
545
|
-
$variant: $variant,
|
|
546
|
-
$isDisabled: !!disabled,
|
|
547
|
-
$isStretch: $isStretch,
|
|
548
|
-
children: /*#__PURE__*/jsx(Pressable$1, _objectSpread({
|
|
549
|
-
disabled: disabled
|
|
550
|
-
}, props))
|
|
551
|
-
});
|
|
552
|
-
});
|
|
553
|
-
|
|
554
|
-
var BaseStyledButtonPressable = /*#__PURE__*/styled(View$1).withConfig({
|
|
555
|
-
displayName: "BaseStyledButtonPressable",
|
|
556
|
-
componentId: "kitt-universal__sc-4k8lse-0"
|
|
557
|
-
})(["position:relative;min-width:", "px;max-width:", ";width:", ";min-height:", "px;border-radius:", "px;flex-direction:row;align-items:center;justify-content:center;align-self:flex-start;background-color:", ";padding:", ";"], function (_ref) {
|
|
558
|
-
var theme = _ref.theme;
|
|
559
|
-
return theme.kitt.button.minWidth;
|
|
560
|
-
}, function (_ref2) {
|
|
561
|
-
var theme = _ref2.theme,
|
|
562
|
-
$isStretch = _ref2.$isStretch;
|
|
563
|
-
return $isStretch ? '100%' : "".concat(theme.kitt.button.maxWidth, "px");
|
|
564
|
-
}, function (_ref3) {
|
|
565
|
-
var $isStretch = _ref3.$isStretch;
|
|
566
|
-
return $isStretch ? '100%' : 'auto';
|
|
567
|
-
}, function (_ref4) {
|
|
568
|
-
var theme = _ref4.theme;
|
|
569
|
-
return theme.kitt.button.minHeight;
|
|
570
|
-
}, function (_ref5) {
|
|
571
|
-
var theme = _ref5.theme;
|
|
572
|
-
return theme.kitt.button.borderRadius;
|
|
573
|
-
}, function (_ref6) {
|
|
574
|
-
var theme = _ref6.theme,
|
|
575
|
-
$isDisabled = _ref6.$isDisabled,
|
|
576
|
-
$type = _ref6.$type,
|
|
577
|
-
$variant = _ref6.$variant;
|
|
578
|
-
if ($isDisabled) return theme.kitt.button.disabled["default"].backgroundColor;
|
|
579
|
-
return getVariantValuesIfExist(theme, $type, $variant).backgroundColor;
|
|
580
|
-
}, function (_ref7) {
|
|
581
|
-
var theme = _ref7.theme,
|
|
582
|
-
$size = _ref7.$size,
|
|
583
|
-
$isDisabled = _ref7.$isDisabled;
|
|
584
|
-
var _theme$kitt$button$co = theme.kitt.button.contentPadding,
|
|
585
|
-
large = _theme$kitt$button$co.large,
|
|
586
|
-
defaultPadding = _theme$kitt$button$co["default"],
|
|
587
|
-
disabledPadding = _theme$kitt$button$co.disabled,
|
|
588
|
-
xLarge = _theme$kitt$button$co.xLarge;
|
|
589
|
-
if ($size === 'large') return large;
|
|
590
|
-
if ($size === 'xlarge') return xLarge;
|
|
591
|
-
if ($isDisabled) return disabledPadding;
|
|
592
|
-
return defaultPadding;
|
|
472
|
+
Typography.h4 = createHeading(4, 'header4');
|
|
473
|
+
/** @deprecated use Typography.Header6 */
|
|
474
|
+
|
|
475
|
+
Typography.h5 = createHeading(5, 'header5');
|
|
476
|
+
|
|
477
|
+
var defaultIconSize = 20;
|
|
478
|
+
var IconContainer$1 = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
479
|
+
displayName: "Icon__IconContainer",
|
|
480
|
+
componentId: "kitt-universal__sc-usm0ol-0"
|
|
481
|
+
})(["color:", ";width:", "px;height:", "px;align-self:", ";"], function (_ref) {
|
|
482
|
+
var $color = _ref.$color;
|
|
483
|
+
return $color;
|
|
484
|
+
}, function (_ref2) {
|
|
485
|
+
var $size = _ref2.$size;
|
|
486
|
+
return $size;
|
|
487
|
+
}, function (_ref3) {
|
|
488
|
+
var $size = _ref3.$size;
|
|
489
|
+
return $size;
|
|
490
|
+
}, function (_ref4) {
|
|
491
|
+
var _ref4$$align = _ref4.$align,
|
|
492
|
+
$align = _ref4$$align === void 0 ? 'auto' : _ref4$$align;
|
|
493
|
+
return $align;
|
|
593
494
|
});
|
|
495
|
+
function Icon(_ref5) {
|
|
496
|
+
var icon = _ref5.icon,
|
|
497
|
+
_ref5$size = _ref5.size,
|
|
498
|
+
size = _ref5$size === void 0 ? defaultIconSize : _ref5$size,
|
|
499
|
+
align = _ref5.align,
|
|
500
|
+
color = _ref5.color;
|
|
501
|
+
var clonedIcon = /*#__PURE__*/cloneElement(icon, {
|
|
502
|
+
color: color
|
|
503
|
+
});
|
|
504
|
+
return /*#__PURE__*/jsx(IconContainer$1, {
|
|
505
|
+
$align: align,
|
|
506
|
+
$size: size,
|
|
507
|
+
$color: color,
|
|
508
|
+
children: clonedIcon
|
|
509
|
+
});
|
|
510
|
+
}
|
|
594
511
|
|
|
595
|
-
var _excluded$
|
|
512
|
+
var _excluded$k = ["color"],
|
|
596
513
|
_excluded2$3 = ["color"];
|
|
597
514
|
|
|
598
515
|
function TypographyIconSpecifiedColor(_ref) {
|
|
599
516
|
var color = _ref.color,
|
|
600
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
517
|
+
props = _objectWithoutProperties(_ref, _excluded$k);
|
|
601
518
|
|
|
602
519
|
var theme = /*#__PURE__*/useTheme();
|
|
603
520
|
return /*#__PURE__*/jsx(Icon, _objectSpread(_objectSpread({}, props), {}, {
|
|
@@ -625,7 +542,7 @@ function TypographyIcon(_ref2) {
|
|
|
625
542
|
return /*#__PURE__*/jsx(TypographyIconInheritColor, _objectSpread({}, props));
|
|
626
543
|
}
|
|
627
544
|
|
|
628
|
-
var _excluded$
|
|
545
|
+
var _excluded$j = ["type", "variant", "isDisabled", "$isStretch", "icon", "children"];
|
|
629
546
|
|
|
630
547
|
var getTextColorByType = function (type, variant) {
|
|
631
548
|
switch (type) {
|
|
@@ -649,7 +566,7 @@ var getTextColorByType = function (type, variant) {
|
|
|
649
566
|
}
|
|
650
567
|
};
|
|
651
568
|
|
|
652
|
-
var StyledButtonText = /*#__PURE__*/styled(Typography.Text).withConfig({
|
|
569
|
+
var StyledButtonText = /*#__PURE__*/styled$1(Typography.Text).withConfig({
|
|
653
570
|
displayName: "ButtonContent__StyledButtonText",
|
|
654
571
|
componentId: "kitt-universal__sc-dnyw3n-0"
|
|
655
572
|
})(["text-align:center;", " ", ""], function () {
|
|
@@ -667,7 +584,7 @@ var StyledButtonText = /*#__PURE__*/styled(Typography.Text).withConfig({
|
|
|
667
584
|
if ($isDisabled || !isSubtle($type)) return undefined;
|
|
668
585
|
return 'color: inherit';
|
|
669
586
|
});
|
|
670
|
-
var StyledIconContainer$1 = /*#__PURE__*/styled(View$1).withConfig({
|
|
587
|
+
var StyledIconContainer$1 = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
671
588
|
displayName: "ButtonContent__StyledIconContainer",
|
|
672
589
|
componentId: "kitt-universal__sc-dnyw3n-1"
|
|
673
590
|
})(["", ""], function (_ref2) {
|
|
@@ -697,7 +614,7 @@ function ButtonIcon(_ref3) {
|
|
|
697
614
|
});
|
|
698
615
|
}
|
|
699
616
|
|
|
700
|
-
var StyledChildrenWithIcon = /*#__PURE__*/styled(View$1).withConfig({
|
|
617
|
+
var StyledChildrenWithIcon = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
701
618
|
displayName: "ButtonContent__StyledChildrenWithIcon",
|
|
702
619
|
componentId: "kitt-universal__sc-dnyw3n-2"
|
|
703
620
|
})(["align-items:center;justify-content:center;flex-direction:row;"]);
|
|
@@ -732,7 +649,7 @@ function ButtonContentChildren(_ref4) {
|
|
|
732
649
|
};
|
|
733
650
|
return /*#__PURE__*/jsxs(StyledChildrenWithIcon, {
|
|
734
651
|
children: [icon && iconPosition === 'left' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread(_objectSpread({}, buttonIconSharedProps), {}, {
|
|
735
|
-
testID: "button
|
|
652
|
+
testID: "button.ButtonContent.leftButtonIcon",
|
|
736
653
|
icon: icon
|
|
737
654
|
})) : null, /*#__PURE__*/jsx(StyledButtonText, {
|
|
738
655
|
base: "body",
|
|
@@ -747,7 +664,7 @@ function ButtonContentChildren(_ref4) {
|
|
|
747
664
|
})) : null]
|
|
748
665
|
});
|
|
749
666
|
}
|
|
750
|
-
var ButtonContentContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
667
|
+
var ButtonContentContainer = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
751
668
|
displayName: "ButtonContent__ButtonContentContainer",
|
|
752
669
|
componentId: "kitt-universal__sc-dnyw3n-3"
|
|
753
670
|
})(["line-height:16px;", " ", ";"], function (_ref5) {
|
|
@@ -767,7 +684,7 @@ function ButtonContent(_ref7) {
|
|
|
767
684
|
$isStretch = _ref7.$isStretch,
|
|
768
685
|
icon = _ref7.icon,
|
|
769
686
|
children = _ref7.children,
|
|
770
|
-
props = _objectWithoutProperties(_ref7, _excluded$
|
|
687
|
+
props = _objectWithoutProperties(_ref7, _excluded$j);
|
|
771
688
|
|
|
772
689
|
var color = isDisabled ? 'black-light' : getTextColorByType(type, variant);
|
|
773
690
|
return /*#__PURE__*/jsx(ButtonContentContainer, {
|
|
@@ -861,7 +778,261 @@ var Button = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
861
778
|
});
|
|
862
779
|
});
|
|
863
780
|
|
|
864
|
-
var
|
|
781
|
+
var StyledSpinningIconContainer = withTheme( /*#__PURE__*/styled("div")({
|
|
782
|
+
name: "StyledSpinningIconContainer",
|
|
783
|
+
"class": "kitt-u_StyledSpinningIconContainer_ssn8o83"
|
|
784
|
+
}));
|
|
785
|
+
function SpinningIcon(_ref) {
|
|
786
|
+
var icon = _ref.icon,
|
|
787
|
+
color = _ref.color;
|
|
788
|
+
var clonedIcon = /*#__PURE__*/cloneElement(icon, {
|
|
789
|
+
color: color
|
|
790
|
+
});
|
|
791
|
+
return /*#__PURE__*/jsx(StyledSpinningIconContainer, {
|
|
792
|
+
children: clonedIcon
|
|
793
|
+
});
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
function LoaderIcon(_ref) {
|
|
797
|
+
var color = _ref.color;
|
|
798
|
+
return /*#__PURE__*/jsx(SpinningIcon, {
|
|
799
|
+
color: color,
|
|
800
|
+
icon: /*#__PURE__*/jsx(ArcIcon, {})
|
|
801
|
+
});
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
var View = View$2;
|
|
805
|
+
var ScrollView = ScrollView$1;
|
|
806
|
+
var Pressable = Pressable$2;
|
|
807
|
+
|
|
808
|
+
function matchWindowSize(_ref, _ref2) {
|
|
809
|
+
var width = _ref.width,
|
|
810
|
+
height = _ref.height;
|
|
811
|
+
var minWidth = _ref2.minWidth,
|
|
812
|
+
maxWidth = _ref2.maxWidth,
|
|
813
|
+
minHeight = _ref2.minHeight,
|
|
814
|
+
maxHeight = _ref2.maxHeight;
|
|
815
|
+
var hasWidthMatched = width ? (!minWidth || width >= minWidth) && (!maxWidth || width <= maxWidth) : true;
|
|
816
|
+
var hasHeightMatched = height ? (!minHeight || height >= minHeight) && (!maxHeight || height <= maxHeight) : true;
|
|
817
|
+
return hasWidthMatched && hasHeightMatched;
|
|
818
|
+
}
|
|
819
|
+
function useMatchWindowSize(options) {
|
|
820
|
+
var _useWindowDimensions = useWindowDimensions(),
|
|
821
|
+
width = _useWindowDimensions.width,
|
|
822
|
+
height = _useWindowDimensions.height;
|
|
823
|
+
|
|
824
|
+
return matchWindowSize({
|
|
825
|
+
width: width,
|
|
826
|
+
height: height
|
|
827
|
+
}, options);
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
var _excluded$i = ["as", "onPress", "disabled", "icon"];
|
|
831
|
+
function ActionsItem(_ref) {
|
|
832
|
+
var as = _ref.as,
|
|
833
|
+
onPress = _ref.onPress,
|
|
834
|
+
disabled = _ref.disabled,
|
|
835
|
+
icon = _ref.icon,
|
|
836
|
+
props = _objectWithoutProperties(_ref, _excluded$i);
|
|
837
|
+
|
|
838
|
+
var isMedium = useMatchWindowSize({
|
|
839
|
+
minWidth: KittBreakpoints.MEDIUM
|
|
840
|
+
});
|
|
841
|
+
|
|
842
|
+
var _useState = useState(false),
|
|
843
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
844
|
+
isLoading = _useState2[0],
|
|
845
|
+
setIsLoading = _useState2[1];
|
|
846
|
+
|
|
847
|
+
var mountedRef = useRef(false); // effect just for tracking mounted state, as onPress can unmount the ActionButton
|
|
848
|
+
|
|
849
|
+
useEffect(function () {
|
|
850
|
+
mountedRef.current = true;
|
|
851
|
+
return function () {
|
|
852
|
+
mountedRef.current = false;
|
|
853
|
+
};
|
|
854
|
+
}, []);
|
|
855
|
+
return /*#__PURE__*/jsx(View, {
|
|
856
|
+
children: /*#__PURE__*/jsx(as, _objectSpread(_objectSpread({}, props), {}, {
|
|
857
|
+
stretch: !isMedium ? true : undefined,
|
|
858
|
+
disabled: isLoading ? true : disabled,
|
|
859
|
+
icon: isLoading ? /*#__PURE__*/jsx(LoaderIcon, {}) : icon,
|
|
860
|
+
onPress: function handlePress(e) {
|
|
861
|
+
var callPressAndUpdateLoadingState = /*#__PURE__*/function () {
|
|
862
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
863
|
+
return _regeneratorRuntime.wrap(function (_context) {
|
|
864
|
+
while (1) {
|
|
865
|
+
switch (_context.prev = _context.next) {
|
|
866
|
+
case 0:
|
|
867
|
+
if (onPress) {
|
|
868
|
+
_context.next = 2;
|
|
869
|
+
break;
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
return _context.abrupt("return");
|
|
873
|
+
|
|
874
|
+
case 2:
|
|
875
|
+
setIsLoading(true);
|
|
876
|
+
_context.prev = 3;
|
|
877
|
+
_context.next = 6;
|
|
878
|
+
return onPress(e);
|
|
879
|
+
|
|
880
|
+
case 6:
|
|
881
|
+
if (mountedRef.current) {
|
|
882
|
+
setIsLoading(false);
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
_context.next = 13;
|
|
886
|
+
break;
|
|
887
|
+
|
|
888
|
+
case 9:
|
|
889
|
+
_context.prev = 9;
|
|
890
|
+
_context.t0 = _context["catch"](3);
|
|
891
|
+
|
|
892
|
+
if (mountedRef.current) {
|
|
893
|
+
setIsLoading(false);
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
throw _context.t0;
|
|
897
|
+
|
|
898
|
+
case 13:
|
|
899
|
+
case "end":
|
|
900
|
+
return _context.stop();
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
}, _callee, null, [[3, 9]]);
|
|
904
|
+
}));
|
|
905
|
+
|
|
906
|
+
return function () {
|
|
907
|
+
return _ref2.apply(this, arguments);
|
|
908
|
+
};
|
|
909
|
+
}();
|
|
910
|
+
|
|
911
|
+
callPressAndUpdateLoadingState();
|
|
912
|
+
}
|
|
913
|
+
}))
|
|
914
|
+
});
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
function ActionsButton(_ref) {
|
|
918
|
+
var props = _extends({}, _ref);
|
|
919
|
+
|
|
920
|
+
return /*#__PURE__*/jsx(ActionsItem, _objectSpread({
|
|
921
|
+
as: Button
|
|
922
|
+
}, props));
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
var _excluded$h = ["children"];
|
|
926
|
+
function Actions(_ref) {
|
|
927
|
+
var children = _ref.children,
|
|
928
|
+
props = _objectWithoutProperties(_ref, _excluded$h);
|
|
929
|
+
|
|
930
|
+
return /*#__PURE__*/jsx(Stack, _objectSpread(_objectSpread({
|
|
931
|
+
alignItems: {
|
|
932
|
+
base: 'stretch',
|
|
933
|
+
medium: 'center'
|
|
934
|
+
},
|
|
935
|
+
direction: {
|
|
936
|
+
base: 'column',
|
|
937
|
+
medium: 'row'
|
|
938
|
+
},
|
|
939
|
+
flex: 1
|
|
940
|
+
}, props), {}, {
|
|
941
|
+
space: "kitt.3",
|
|
942
|
+
children: children
|
|
943
|
+
}));
|
|
944
|
+
}
|
|
945
|
+
Actions.Button = ActionsButton;
|
|
946
|
+
Actions.Item = ActionsItem;
|
|
947
|
+
|
|
948
|
+
var _excluded$g = ["size", "round", "light", "sizeVariant"];
|
|
949
|
+
|
|
950
|
+
var getInitials = function (firstname, lastname) {
|
|
951
|
+
return "".concat(firstname[0]).concat(lastname[0]).toUpperCase();
|
|
952
|
+
};
|
|
953
|
+
|
|
954
|
+
var StyledAvatarView = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
955
|
+
displayName: "Avatar__StyledAvatarView",
|
|
956
|
+
componentId: "kitt-universal__sc-9miubv-0"
|
|
957
|
+
})(["border-radius:", ";background-color:", ";height:", "px;width:", "px;overflow:hidden;align-items:center;justify-content:center;"], function (_ref) {
|
|
958
|
+
var theme = _ref.theme,
|
|
959
|
+
$isRound = _ref.$isRound,
|
|
960
|
+
$size = _ref.$size,
|
|
961
|
+
$sizeVariant = _ref.$sizeVariant;
|
|
962
|
+
if ($isRound) return "".concat($size / 2, "px");
|
|
963
|
+
return "".concat($sizeVariant === 'large' ? theme.kitt.avatar.large.borderRadius : theme.kitt.avatar.borderRadius, "px");
|
|
964
|
+
}, function (_ref2) {
|
|
965
|
+
var theme = _ref2.theme,
|
|
966
|
+
$isLight = _ref2.$isLight;
|
|
967
|
+
return $isLight ? theme.kitt.avatar.light.backgroundColor : theme.kitt.avatar["default"].backgroundColor;
|
|
968
|
+
}, function (_ref3) {
|
|
969
|
+
var $size = _ref3.$size;
|
|
970
|
+
return $size;
|
|
971
|
+
}, function (_ref4) {
|
|
972
|
+
var $size = _ref4.$size;
|
|
973
|
+
return $size;
|
|
974
|
+
});
|
|
975
|
+
|
|
976
|
+
function AvatarContent(_ref5) {
|
|
977
|
+
var size = _ref5.size,
|
|
978
|
+
src = _ref5.src,
|
|
979
|
+
firstname = _ref5.firstname,
|
|
980
|
+
lastname = _ref5.lastname,
|
|
981
|
+
alt = _ref5.alt,
|
|
982
|
+
isLight = _ref5.isLight,
|
|
983
|
+
sizeVariant = _ref5.sizeVariant;
|
|
984
|
+
|
|
985
|
+
if (src) {
|
|
986
|
+
return /*#__PURE__*/jsx(Image, {
|
|
987
|
+
source: {
|
|
988
|
+
uri: src
|
|
989
|
+
},
|
|
990
|
+
style: {
|
|
991
|
+
width: size,
|
|
992
|
+
height: size
|
|
993
|
+
},
|
|
994
|
+
accessibilityLabel: alt
|
|
995
|
+
});
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
if (firstname && lastname) {
|
|
999
|
+
return /*#__PURE__*/jsx(Typography.Text, {
|
|
1000
|
+
base: sizeVariant === 'large' ? 'body-large' : 'body-small',
|
|
1001
|
+
variant: sizeVariant === 'large' ? 'bold' : 'regular',
|
|
1002
|
+
color: isLight ? 'black' : 'white',
|
|
1003
|
+
children: getInitials(firstname, lastname)
|
|
1004
|
+
});
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
return /*#__PURE__*/jsx(Icon, {
|
|
1008
|
+
icon: /*#__PURE__*/jsx(UserIcon, {}),
|
|
1009
|
+
color: isLight ? 'black' : 'white',
|
|
1010
|
+
size: size / 2
|
|
1011
|
+
});
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
function Avatar(_ref6) {
|
|
1015
|
+
var _ref6$size = _ref6.size,
|
|
1016
|
+
size = _ref6$size === void 0 ? 40 : _ref6$size,
|
|
1017
|
+
round = _ref6.round,
|
|
1018
|
+
light = _ref6.light,
|
|
1019
|
+
sizeVariant = _ref6.sizeVariant,
|
|
1020
|
+
props = _objectWithoutProperties(_ref6, _excluded$g);
|
|
1021
|
+
|
|
1022
|
+
return /*#__PURE__*/jsx(StyledAvatarView, {
|
|
1023
|
+
$size: size,
|
|
1024
|
+
$isRound: round,
|
|
1025
|
+
$isLight: light,
|
|
1026
|
+
$sizeVariant: sizeVariant,
|
|
1027
|
+
children: /*#__PURE__*/jsx(AvatarContent, _objectSpread({
|
|
1028
|
+
size: size,
|
|
1029
|
+
isLight: light,
|
|
1030
|
+
sizeVariant: sizeVariant
|
|
1031
|
+
}, props))
|
|
1032
|
+
});
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
var Container$3 = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
865
1036
|
displayName: "Card__Container",
|
|
866
1037
|
componentId: "kitt-universal__sc-1n9psug-0"
|
|
867
1038
|
})(["background-color:", ";padding:", "px;border-radius:", "px;border-width:", "px;border-color:", ";"], function (_ref) {
|
|
@@ -909,7 +1080,7 @@ function getBorderRadius(defaultRadius, variant) {
|
|
|
909
1080
|
return defaultRadius;
|
|
910
1081
|
}
|
|
911
1082
|
|
|
912
|
-
var DisabledBorder = /*#__PURE__*/styled(View$1).withConfig({
|
|
1083
|
+
var DisabledBorder = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
913
1084
|
displayName: "ChoiceItem__DisabledBorder",
|
|
914
1085
|
componentId: "kitt-universal__sc-wuv3y6-0"
|
|
915
1086
|
})(["border-radius:", "px;", ";"], function (_ref2) {
|
|
@@ -923,7 +1094,7 @@ var DisabledBorder = /*#__PURE__*/styled(View$1).withConfig({
|
|
|
923
1094
|
color = _theme$kitt$choices$i.color;
|
|
924
1095
|
return css(["border:", "px solid ", ";"], width, color);
|
|
925
1096
|
});
|
|
926
|
-
var ChoiceItemView = /*#__PURE__*/styled(Animated.View).withConfig({
|
|
1097
|
+
var ChoiceItemView = /*#__PURE__*/styled$1(Animated.View).withConfig({
|
|
927
1098
|
displayName: "ChoiceItem__ChoiceItemView",
|
|
928
1099
|
componentId: "kitt-universal__sc-wuv3y6-1"
|
|
929
1100
|
})(["position:relative;border-radius:", "px;background-color:", ";", ";", ""], function (_ref4) {
|
|
@@ -1058,7 +1229,7 @@ function ChoiceItem(_ref8) {
|
|
|
1058
1229
|
onChange(value);
|
|
1059
1230
|
};
|
|
1060
1231
|
|
|
1061
|
-
return /*#__PURE__*/jsx(Pressable
|
|
1232
|
+
return /*#__PURE__*/jsx(Pressable, {
|
|
1062
1233
|
disabled: disabled,
|
|
1063
1234
|
accessibilityRole: type,
|
|
1064
1235
|
accessibilityState: {
|
|
@@ -1105,7 +1276,7 @@ function ChoiceItem(_ref8) {
|
|
|
1105
1276
|
});
|
|
1106
1277
|
}
|
|
1107
1278
|
|
|
1108
|
-
var ChoiceItemContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
1279
|
+
var ChoiceItemContainer = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
1109
1280
|
displayName: "ChoiceItemContainer",
|
|
1110
1281
|
componentId: "kitt-universal__sc-17uuimx-0"
|
|
1111
1282
|
})(["", ""], function (_ref) {
|
|
@@ -1130,7 +1301,7 @@ function ChoicesContainer(_ref) {
|
|
|
1130
1301
|
props = _objectWithoutProperties(_ref, _excluded$f);
|
|
1131
1302
|
|
|
1132
1303
|
if (direction === 'row') {
|
|
1133
|
-
return /*#__PURE__*/jsx(ScrollView$
|
|
1304
|
+
return /*#__PURE__*/jsx(ScrollView$2, _objectSpread({
|
|
1134
1305
|
horizontal: true
|
|
1135
1306
|
}, props));
|
|
1136
1307
|
}
|
|
@@ -2027,28 +2198,6 @@ var theme = {
|
|
|
2027
2198
|
navigationModal: navigationModal
|
|
2028
2199
|
};
|
|
2029
2200
|
|
|
2030
|
-
function matchWindowSize(_ref, _ref2) {
|
|
2031
|
-
var width = _ref.width,
|
|
2032
|
-
height = _ref.height;
|
|
2033
|
-
var minWidth = _ref2.minWidth,
|
|
2034
|
-
maxWidth = _ref2.maxWidth,
|
|
2035
|
-
minHeight = _ref2.minHeight,
|
|
2036
|
-
maxHeight = _ref2.maxHeight;
|
|
2037
|
-
var hasWidthMatched = width ? (!minWidth || width >= minWidth) && (!maxWidth || width <= maxWidth) : true;
|
|
2038
|
-
var hasHeightMatched = height ? (!minHeight || height >= minHeight) && (!maxHeight || height <= maxHeight) : true;
|
|
2039
|
-
return hasWidthMatched && hasHeightMatched;
|
|
2040
|
-
}
|
|
2041
|
-
function useMatchWindowSize(options) {
|
|
2042
|
-
var _useWindowDimensions = useWindowDimensions(),
|
|
2043
|
-
width = _useWindowDimensions.width,
|
|
2044
|
-
height = _useWindowDimensions.height;
|
|
2045
|
-
|
|
2046
|
-
return matchWindowSize({
|
|
2047
|
-
width: width,
|
|
2048
|
-
height: height
|
|
2049
|
-
}, options);
|
|
2050
|
-
}
|
|
2051
|
-
|
|
2052
2201
|
function createWindowSizeHelper(dimensions) {
|
|
2053
2202
|
return {
|
|
2054
2203
|
matchWindowSize: function matchWindowSize$1(options) {
|
|
@@ -2100,11 +2249,11 @@ function useKittTheme() {
|
|
|
2100
2249
|
}, [dimensions]);
|
|
2101
2250
|
}
|
|
2102
2251
|
|
|
2103
|
-
var CheckboxAndLabelPressableWrapper = /*#__PURE__*/styled(Pressable$1).withConfig({
|
|
2252
|
+
var CheckboxAndLabelPressableWrapper = /*#__PURE__*/styled$1(Pressable$1).withConfig({
|
|
2104
2253
|
displayName: "Checkbox__CheckboxAndLabelPressableWrapper",
|
|
2105
2254
|
componentId: "kitt-universal__sc-1sav1n6-0"
|
|
2106
2255
|
})(["display:flex;flex-direction:row;"]);
|
|
2107
|
-
var CheckboxContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
2256
|
+
var CheckboxContainer = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
2108
2257
|
displayName: "Checkbox__CheckboxContainer",
|
|
2109
2258
|
componentId: "kitt-universal__sc-1sav1n6-1"
|
|
2110
2259
|
})(["display:flex;flex-direction:row;align-items:center;justify-content:center;height:", "px;width:", "px;position:relative;border-radius:", "px;", " margin-right:", ";"], function (_ref) {
|
|
@@ -2209,11 +2358,11 @@ var styledTextInputMixin = /*#__PURE__*/css(["background-color:", ";border-width
|
|
|
2209
2358
|
return theme.kitt.typography.types.bodies.fontFamily.regular;
|
|
2210
2359
|
});
|
|
2211
2360
|
|
|
2212
|
-
var StyledTypographyText = /*#__PURE__*/styled(Typography.Text).withConfig({
|
|
2361
|
+
var StyledTypographyText = /*#__PURE__*/styled$1(Typography.Text).withConfig({
|
|
2213
2362
|
displayName: "DatePickerInputPart__StyledTypographyText",
|
|
2214
2363
|
componentId: "kitt-universal__sc-11fmlmi-0"
|
|
2215
2364
|
})(["text-align:center;"]);
|
|
2216
|
-
var ViewInput = /*#__PURE__*/styled(View$1).withConfig({
|
|
2365
|
+
var ViewInput = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
2217
2366
|
displayName: "DatePickerInputPart__ViewInput",
|
|
2218
2367
|
componentId: "kitt-universal__sc-11fmlmi-1"
|
|
2219
2368
|
})(["", " padding:", ";min-height:", "px;min-width:", ";"], styledTextInputMixin, function (_ref) {
|
|
@@ -2252,7 +2401,7 @@ function prefixWithZero(value) {
|
|
|
2252
2401
|
return "".concat(value).padStart(2, '0');
|
|
2253
2402
|
}
|
|
2254
2403
|
|
|
2255
|
-
var PartContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
2404
|
+
var PartContainer = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
2256
2405
|
displayName: "DatePickerInputs__PartContainer",
|
|
2257
2406
|
componentId: "kitt-universal__sc-j9hin5-0"
|
|
2258
2407
|
})(["margin-right:", ";", ";"], function (_ref) {
|
|
@@ -2263,7 +2412,7 @@ var PartContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
|
2263
2412
|
var $isStretch = _ref2.$isStretch;
|
|
2264
2413
|
return $isStretch ? css(["flex:0.33;flex-grow:1;"]) : undefined;
|
|
2265
2414
|
});
|
|
2266
|
-
var DatePickerPressable = /*#__PURE__*/styled(Pressable$1).withConfig({
|
|
2415
|
+
var DatePickerPressable = /*#__PURE__*/styled$1(Pressable$1).withConfig({
|
|
2267
2416
|
displayName: "DatePickerInputs__DatePickerPressable",
|
|
2268
2417
|
componentId: "kitt-universal__sc-j9hin5-1"
|
|
2269
2418
|
})(["display:flex;flex-direction:row;", ";"], function (_ref3) {
|
|
@@ -2341,7 +2490,7 @@ function DatePicker(_ref) {
|
|
|
2341
2490
|
}, props));
|
|
2342
2491
|
}
|
|
2343
2492
|
|
|
2344
|
-
var InputTextContainer = withTheme( /*#__PURE__*/styled
|
|
2493
|
+
var InputTextContainer = withTheme( /*#__PURE__*/styled("div")({
|
|
2345
2494
|
name: "InputTextContainer",
|
|
2346
2495
|
"class": "kitt-u_InputTextContainer_i1encr9g",
|
|
2347
2496
|
vars: {
|
|
@@ -2373,7 +2522,7 @@ var InputTextContainer = withTheme( /*#__PURE__*/styled$1("div")({
|
|
|
2373
2522
|
}));
|
|
2374
2523
|
|
|
2375
2524
|
var _excluded$b = ["id", "right", "minHeight", "state", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "keyboardType", "multiline", "onSubmitEditing", "onFocus", "onBlur"];
|
|
2376
|
-
var StyledTextInput = /*#__PURE__*/styled(TextInput).withConfig({
|
|
2525
|
+
var StyledTextInput = /*#__PURE__*/styled$1(TextInput).withConfig({
|
|
2377
2526
|
displayName: "InputText__StyledTextInput",
|
|
2378
2527
|
componentId: "kitt-universal__sc-uke279-0"
|
|
2379
2528
|
})(["", " padding:", ";line-height:", ";width:100%;min-height:", "px;"], styledTextInputMixin, function (_ref) {
|
|
@@ -2392,7 +2541,7 @@ var StyledTextInput = /*#__PURE__*/styled(TextInput).withConfig({
|
|
|
2392
2541
|
$minHeight = _ref3$$minHeight === void 0 ? theme.kitt.forms.input.minHeight : _ref3$$minHeight;
|
|
2393
2542
|
return $minHeight;
|
|
2394
2543
|
});
|
|
2395
|
-
var RightInputContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
2544
|
+
var RightInputContainer = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
2396
2545
|
displayName: "InputText__RightInputContainer",
|
|
2397
2546
|
componentId: "kitt-universal__sc-uke279-1"
|
|
2398
2547
|
})(["position:absolute;right:0;top:0;bottom:0;justify-content:center;padding:10px;"]);
|
|
@@ -2495,11 +2644,11 @@ function InputFeedback(_ref) {
|
|
|
2495
2644
|
});
|
|
2496
2645
|
}
|
|
2497
2646
|
|
|
2498
|
-
var FieldContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
2647
|
+
var FieldContainer = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
2499
2648
|
displayName: "InputField__FieldContainer",
|
|
2500
2649
|
componentId: "kitt-universal__sc-13fkixs-0"
|
|
2501
2650
|
})(["padding:5px 0 10px;"]);
|
|
2502
|
-
var FeedbackContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
2651
|
+
var FeedbackContainer = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
2503
2652
|
displayName: "InputField__FeedbackContainer",
|
|
2504
2653
|
componentId: "kitt-universal__sc-13fkixs-1"
|
|
2505
2654
|
})(["", ";"], function (_ref) {
|
|
@@ -2508,14 +2657,14 @@ var FeedbackContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
|
2508
2657
|
minWidth: KittBreakpoints.SMALL
|
|
2509
2658
|
}, 'padding-top: 10px', 'padding-top: 5px');
|
|
2510
2659
|
});
|
|
2511
|
-
var FieldLabelContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
2660
|
+
var FieldLabelContainer = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
2512
2661
|
displayName: "InputField__FieldLabelContainer",
|
|
2513
2662
|
componentId: "kitt-universal__sc-13fkixs-2"
|
|
2514
2663
|
})(["flex-direction:row;align-items:center;padding-bottom:", "px;"], function (_ref2) {
|
|
2515
2664
|
var theme = _ref2.theme;
|
|
2516
2665
|
return theme.kitt.forms.inputField.labelContainerPaddingBottom;
|
|
2517
2666
|
});
|
|
2518
|
-
var LabelContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
2667
|
+
var LabelContainer = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
2519
2668
|
displayName: "InputField__LabelContainer",
|
|
2520
2669
|
componentId: "kitt-universal__sc-13fkixs-3"
|
|
2521
2670
|
})(["margin-right:", "px;"], function (_ref3) {
|
|
@@ -2615,7 +2764,7 @@ var getTypographyColor = function (type) {
|
|
|
2615
2764
|
return type ? 'white' : 'black';
|
|
2616
2765
|
};
|
|
2617
2766
|
|
|
2618
|
-
var InputTagContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
2767
|
+
var InputTagContainer = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
2619
2768
|
displayName: "InputTag__InputTagContainer",
|
|
2620
2769
|
componentId: "kitt-universal__sc-1511dsf-0"
|
|
2621
2770
|
})(["align-items:center;justify-content:center;flex-direction:row;align-self:flex-start;overflow:hidden;padding-horizontal:", "px;background-color:", ";border-radius:", "px;"], function (_ref) {
|
|
@@ -2638,7 +2787,7 @@ var InputTagContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
|
2638
2787
|
var theme = _ref3.theme;
|
|
2639
2788
|
return theme.kitt.forms.inputTag.borderRadius;
|
|
2640
2789
|
});
|
|
2641
|
-
var IconContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
2790
|
+
var IconContainer = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
2642
2791
|
displayName: "InputTag__IconContainer",
|
|
2643
2792
|
componentId: "kitt-universal__sc-1511dsf-1"
|
|
2644
2793
|
})(["margin-right:", "px;"], function (_ref4) {
|
|
@@ -2679,7 +2828,7 @@ function Label(_ref) {
|
|
|
2679
2828
|
});
|
|
2680
2829
|
}
|
|
2681
2830
|
|
|
2682
|
-
var OuterRadio = /*#__PURE__*/styled(View$1).withConfig({
|
|
2831
|
+
var OuterRadio = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
2683
2832
|
displayName: "Radio__OuterRadio",
|
|
2684
2833
|
componentId: "kitt-universal__sc-1mdgr2o-0"
|
|
2685
2834
|
})(["background-color:", ";width:", "px;height:", "px;border-radius:", "px;border-width:", "px;border-color:", ";"], function (_ref) {
|
|
@@ -2703,7 +2852,7 @@ var OuterRadio = /*#__PURE__*/styled(View$1).withConfig({
|
|
|
2703
2852
|
disabled = _ref6.disabled;
|
|
2704
2853
|
return theme.kitt.forms.radio[disabled ? 'disabled' : 'unchecked'].borderColor;
|
|
2705
2854
|
});
|
|
2706
|
-
var SelectedOuterRadio = /*#__PURE__*/styled(View$1).withConfig({
|
|
2855
|
+
var SelectedOuterRadio = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
2707
2856
|
displayName: "Radio__SelectedOuterRadio",
|
|
2708
2857
|
componentId: "kitt-universal__sc-1mdgr2o-1"
|
|
2709
2858
|
})(["background-color:", ";width:", "px;height:", "px;border-radius:", "px;justify-content:center;align-items:center;"], function (_ref7) {
|
|
@@ -2719,7 +2868,7 @@ var SelectedOuterRadio = /*#__PURE__*/styled(View$1).withConfig({
|
|
|
2719
2868
|
var theme = _ref10.theme;
|
|
2720
2869
|
return theme.kitt.forms.radio.size / 2;
|
|
2721
2870
|
});
|
|
2722
|
-
var SelectedInnerRadio = /*#__PURE__*/styled(View$1).withConfig({
|
|
2871
|
+
var SelectedInnerRadio = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
2723
2872
|
displayName: "Radio__SelectedInnerRadio",
|
|
2724
2873
|
componentId: "kitt-universal__sc-1mdgr2o-2"
|
|
2725
2874
|
})(["background-color:", ";width:", "px;height:", "px;border-radius:", "px;"], function (_ref11) {
|
|
@@ -2735,11 +2884,11 @@ var SelectedInnerRadio = /*#__PURE__*/styled(View$1).withConfig({
|
|
|
2735
2884
|
var theme = _ref14.theme;
|
|
2736
2885
|
return theme.kitt.forms.radio.checked.innerSize / 2;
|
|
2737
2886
|
});
|
|
2738
|
-
var Container$2 = /*#__PURE__*/styled(Pressable$1).withConfig({
|
|
2887
|
+
var Container$2 = /*#__PURE__*/styled$1(Pressable$1).withConfig({
|
|
2739
2888
|
displayName: "Radio__Container",
|
|
2740
2889
|
componentId: "kitt-universal__sc-1mdgr2o-3"
|
|
2741
2890
|
})(["flex-direction:row;align-items:center;"]);
|
|
2742
|
-
var Text = /*#__PURE__*/styled(Typography.Text).withConfig({
|
|
2891
|
+
var Text = /*#__PURE__*/styled$1(Typography.Text).withConfig({
|
|
2743
2892
|
displayName: "Radio__Text",
|
|
2744
2893
|
componentId: "kitt-universal__sc-1mdgr2o-4"
|
|
2745
2894
|
})(["margin-left:", "px;"], function (_ref15) {
|
|
@@ -2786,7 +2935,7 @@ function TextArea(_ref) {
|
|
|
2786
2935
|
}, props));
|
|
2787
2936
|
}
|
|
2788
2937
|
|
|
2789
|
-
var Body$1 = /*#__PURE__*/styled(View$1).withConfig({
|
|
2938
|
+
var Body$1 = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
2790
2939
|
displayName: "Body",
|
|
2791
2940
|
componentId: "kitt-universal__sc-1ofncfn-0"
|
|
2792
2941
|
})(["", " background-color:", ";flex:1;"], function (_ref) {
|
|
@@ -2805,7 +2954,7 @@ function FullScreenModalBody(_ref3) {
|
|
|
2805
2954
|
});
|
|
2806
2955
|
}
|
|
2807
2956
|
|
|
2808
|
-
var SideContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
2957
|
+
var SideContainer = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
2809
2958
|
displayName: "Header__SideContainer",
|
|
2810
2959
|
componentId: "kitt-universal__sc-dfmxi1-0"
|
|
2811
2960
|
})(["", ""], function (_ref) {
|
|
@@ -2825,7 +2974,7 @@ function getHeaderHorizontalMediumPadding(spacing) {
|
|
|
2825
2974
|
return spacing * 6;
|
|
2826
2975
|
}
|
|
2827
2976
|
|
|
2828
|
-
var Header$1 = /*#__PURE__*/styled(View$1).withConfig({
|
|
2977
|
+
var Header$1 = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
2829
2978
|
displayName: "Header",
|
|
2830
2979
|
componentId: "kitt-universal__sc-dfmxi1-1"
|
|
2831
2980
|
})(["", ";border-bottom-color:", ";border-bottom-width:1px;flex-direction:row;align-items:center;"], function (_ref2) {
|
|
@@ -2843,7 +2992,7 @@ var Header$1 = /*#__PURE__*/styled(View$1).withConfig({
|
|
|
2843
2992
|
var theme = _ref3.theme;
|
|
2844
2993
|
return theme.kitt.fullScreenModal.header.borderColor;
|
|
2845
2994
|
});
|
|
2846
|
-
var HeaderContent = /*#__PURE__*/styled(View$1).withConfig({
|
|
2995
|
+
var HeaderContent = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
2847
2996
|
displayName: "Header__HeaderContent",
|
|
2848
2997
|
componentId: "kitt-universal__sc-dfmxi1-2"
|
|
2849
2998
|
})(["", ";", ";justify-content:center;align-items:center;"], function (_ref4) {
|
|
@@ -2933,7 +3082,7 @@ function FullScreenModalHeader(_ref6) {
|
|
|
2933
3082
|
});
|
|
2934
3083
|
}
|
|
2935
3084
|
|
|
2936
|
-
var Container$1 = /*#__PURE__*/styled(View$1).withConfig({
|
|
3085
|
+
var Container$1 = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
2937
3086
|
displayName: "FullScreenModal__Container",
|
|
2938
3087
|
componentId: "kitt-universal__sc-11qpbe3-0"
|
|
2939
3088
|
})(["flex:1;background-color:", ";"], function (_ref) {
|
|
@@ -2949,21 +3098,6 @@ function FullScreenModal(_ref2) {
|
|
|
2949
3098
|
FullScreenModal.Header = FullScreenModalHeader;
|
|
2950
3099
|
FullScreenModal.Body = FullScreenModalBody;
|
|
2951
3100
|
|
|
2952
|
-
var StyledSpinningIconContainer = withTheme( /*#__PURE__*/styled$1("div")({
|
|
2953
|
-
name: "StyledSpinningIconContainer",
|
|
2954
|
-
"class": "kitt-u_StyledSpinningIconContainer_ssn8o83"
|
|
2955
|
-
}));
|
|
2956
|
-
function SpinningIcon(_ref) {
|
|
2957
|
-
var icon = _ref.icon,
|
|
2958
|
-
color = _ref.color;
|
|
2959
|
-
var clonedIcon = /*#__PURE__*/cloneElement(icon, {
|
|
2960
|
-
color: color
|
|
2961
|
-
});
|
|
2962
|
-
return /*#__PURE__*/jsx(StyledSpinningIconContainer, {
|
|
2963
|
-
children: clonedIcon
|
|
2964
|
-
});
|
|
2965
|
-
}
|
|
2966
|
-
|
|
2967
3101
|
var _excluded$9 = ["as", "children"];
|
|
2968
3102
|
function StyleWebWrapper(_ref) {
|
|
2969
3103
|
var as = _ref.as,
|
|
@@ -2977,7 +3111,7 @@ function StyleWebWrapper(_ref) {
|
|
|
2977
3111
|
}
|
|
2978
3112
|
|
|
2979
3113
|
var _excluded$8 = ["color", "disabled"];
|
|
2980
|
-
var PressableIconButtonWebWrapper = withTheme( /*#__PURE__*/styled
|
|
3114
|
+
var PressableIconButtonWebWrapper = withTheme( /*#__PURE__*/styled("div")({
|
|
2981
3115
|
name: "PressableIconButtonWebWrapper",
|
|
2982
3116
|
"class": "kitt-u_PressableIconButtonWebWrapper_p1nlccvg",
|
|
2983
3117
|
vars: {
|
|
@@ -3009,7 +3143,7 @@ var PressableIconButtonWebWrapper = withTheme( /*#__PURE__*/styled$1("div")({
|
|
|
3009
3143
|
}]
|
|
3010
3144
|
}
|
|
3011
3145
|
}));
|
|
3012
|
-
var StyledPressableIconButton = /*#__PURE__*/styled(Pressable$1).withConfig({
|
|
3146
|
+
var StyledPressableIconButton = /*#__PURE__*/styled$1(Pressable$1).withConfig({
|
|
3013
3147
|
displayName: "PressableIconButton__StyledPressableIconButton",
|
|
3014
3148
|
componentId: "kitt-universal__sc-1m6jo3s-0"
|
|
3015
3149
|
})(["border-radius:", "px;width:", "px;height:", "px;align-items:center;justify-content:center;position:relative;background-color:transparent;", ";"], function (_ref5) {
|
|
@@ -3062,7 +3196,7 @@ function PressableAnimatedContainer(_ref) {
|
|
|
3062
3196
|
});
|
|
3063
3197
|
}
|
|
3064
3198
|
|
|
3065
|
-
var IconButtonContentBorder = /*#__PURE__*/styled(View$1).withConfig({
|
|
3199
|
+
var IconButtonContentBorder = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3066
3200
|
displayName: "IconButton__IconButtonContentBorder",
|
|
3067
3201
|
componentId: "kitt-universal__sc-swelbf-0"
|
|
3068
3202
|
})(["border:", ";border-color:", ";width:", "px;height:", "px;align-items:center;justify-content:center;border-radius:", "px;"], function (_ref) {
|
|
@@ -3120,7 +3254,7 @@ function IconButton(_ref7) {
|
|
|
3120
3254
|
}
|
|
3121
3255
|
|
|
3122
3256
|
var _excluded$7 = ["children"];
|
|
3123
|
-
var ContentView$1 = /*#__PURE__*/styled(View$1).withConfig({
|
|
3257
|
+
var ContentView$1 = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3124
3258
|
displayName: "ListItemContent__ContentView",
|
|
3125
3259
|
componentId: "kitt-universal__sc-57q0u9-0"
|
|
3126
3260
|
})(["flex:1 0 0%;align-self:center;"]);
|
|
@@ -3135,7 +3269,7 @@ function ListItemContent(_ref) {
|
|
|
3135
3269
|
|
|
3136
3270
|
var _excluded$6 = ["children", "side"],
|
|
3137
3271
|
_excluded2$1 = ["children", "align"];
|
|
3138
|
-
var SideContainerView = /*#__PURE__*/styled(View$1).withConfig({
|
|
3272
|
+
var SideContainerView = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3139
3273
|
displayName: "ListItemSideContent__SideContainerView",
|
|
3140
3274
|
componentId: "kitt-universal__sc-1vajiw-0"
|
|
3141
3275
|
})(["flex-direction:row;margin-left:", ";margin-right:", ";"], function (_ref) {
|
|
@@ -3160,7 +3294,7 @@ function ListItemSideContainer(_ref3) {
|
|
|
3160
3294
|
children: children
|
|
3161
3295
|
}));
|
|
3162
3296
|
}
|
|
3163
|
-
var SideContentView = /*#__PURE__*/styled(View$1).withConfig({
|
|
3297
|
+
var SideContentView = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3164
3298
|
displayName: "ListItemSideContent__SideContentView",
|
|
3165
3299
|
componentId: "kitt-universal__sc-1vajiw-1"
|
|
3166
3300
|
})(["align-self:", ";"], function (_ref4) {
|
|
@@ -3181,7 +3315,7 @@ function ListItemSideContent(_ref5) {
|
|
|
3181
3315
|
}
|
|
3182
3316
|
|
|
3183
3317
|
var _excluded$5 = ["children", "withPadding", "borders", "left", "right", "onPress"];
|
|
3184
|
-
var ContainerView = /*#__PURE__*/styled(View$1).withConfig({
|
|
3318
|
+
var ContainerView = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3185
3319
|
displayName: "ListItem__ContainerView",
|
|
3186
3320
|
componentId: "kitt-universal__sc-2afp9s-0"
|
|
3187
3321
|
})(["flex-direction:row;padding:", ";", ";border-color:", ";background-color:", ";"], function (_ref) {
|
|
@@ -3249,14 +3383,6 @@ ListItem.Content = ListItemContent;
|
|
|
3249
3383
|
ListItem.SideContent = ListItemSideContent;
|
|
3250
3384
|
ListItem.SideContainer = ListItemSideContainer;
|
|
3251
3385
|
|
|
3252
|
-
function LoaderIcon(_ref) {
|
|
3253
|
-
var color = _ref.color;
|
|
3254
|
-
return /*#__PURE__*/jsx(SpinningIcon, {
|
|
3255
|
-
color: color,
|
|
3256
|
-
icon: /*#__PURE__*/jsx(ArcIcon, {})
|
|
3257
|
-
});
|
|
3258
|
-
}
|
|
3259
|
-
|
|
3260
3386
|
function IconContent(_ref) {
|
|
3261
3387
|
var type = _ref.type,
|
|
3262
3388
|
color = _ref.color;
|
|
@@ -3309,7 +3435,7 @@ var getIconButtonColor = function (messageType) {
|
|
|
3309
3435
|
}
|
|
3310
3436
|
};
|
|
3311
3437
|
|
|
3312
|
-
var StyledMessageContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
3438
|
+
var StyledMessageContainer = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3313
3439
|
displayName: "BaseMessage__StyledMessageContainer",
|
|
3314
3440
|
componentId: "kitt-universal__sc-eepeiz-0"
|
|
3315
3441
|
})(["flex-direction:row;align-items:flex-start;justify-content:space-between;min-height:60px;padding-top:", "px;border-radius:", "px;background-color:", ";"], function (_ref) {
|
|
@@ -3326,7 +3452,7 @@ var StyledMessageContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
|
3326
3452
|
$type = _ref3.$type;
|
|
3327
3453
|
return theme.kitt.feedbackMessage[$type].backgroundColor;
|
|
3328
3454
|
});
|
|
3329
|
-
var StyledDismissWrapper = /*#__PURE__*/styled(View$1).withConfig({
|
|
3455
|
+
var StyledDismissWrapper = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3330
3456
|
displayName: "BaseMessage__StyledDismissWrapper",
|
|
3331
3457
|
componentId: "kitt-universal__sc-eepeiz-1"
|
|
3332
3458
|
})(["align-items:center;align-items:flex-start;margin:", ";"], function (_ref4) {
|
|
@@ -3334,7 +3460,7 @@ var StyledDismissWrapper = /*#__PURE__*/styled(View$1).withConfig({
|
|
|
3334
3460
|
var spacing = theme.kitt.spacing;
|
|
3335
3461
|
return "".concat(spacing * 2.5, "px ").concat(spacing * 2, "px 0 ").concat(spacing * 5, "px");
|
|
3336
3462
|
});
|
|
3337
|
-
var StyledIconContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
3463
|
+
var StyledIconContainer = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3338
3464
|
displayName: "BaseMessage__StyledIconContainer",
|
|
3339
3465
|
componentId: "kitt-universal__sc-eepeiz-2"
|
|
3340
3466
|
})(["margin:", ";"], function (_ref5) {
|
|
@@ -3342,14 +3468,14 @@ var StyledIconContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
|
3342
3468
|
var spacing = theme.kitt.spacing;
|
|
3343
3469
|
return "".concat(spacing, "px ").concat(spacing * 5, "px 0 0");
|
|
3344
3470
|
});
|
|
3345
|
-
var StyledTextContent = /*#__PURE__*/styled(Typography.Text).withConfig({
|
|
3471
|
+
var StyledTextContent = /*#__PURE__*/styled$1(Typography.Text).withConfig({
|
|
3346
3472
|
displayName: "BaseMessage__StyledTextContent",
|
|
3347
3473
|
componentId: "kitt-universal__sc-eepeiz-3"
|
|
3348
3474
|
})(["flex:1;text-align:", ";"], function (_ref6) {
|
|
3349
3475
|
var $isCenteredText = _ref6.$isCenteredText;
|
|
3350
3476
|
return $isCenteredText ? 'center' : 'left';
|
|
3351
3477
|
});
|
|
3352
|
-
var StyledMessageContent = /*#__PURE__*/styled(View$1).withConfig({
|
|
3478
|
+
var StyledMessageContent = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3353
3479
|
displayName: "BaseMessage__StyledMessageContent",
|
|
3354
3480
|
componentId: "kitt-universal__sc-eepeiz-4"
|
|
3355
3481
|
})(["display:flex;flex-direction:row;flex-grow:1;align-self:center;align-items:flex-start;flex-shrink:1;padding:", ";"], function (_ref7) {
|
|
@@ -3414,7 +3540,7 @@ function Message(_ref) {
|
|
|
3414
3540
|
}
|
|
3415
3541
|
|
|
3416
3542
|
// Don't use styled.Pressable here - babel-plugin-styled-components-react-native-web only supports tagged templates
|
|
3417
|
-
var OverlayPressable = /*#__PURE__*/styled(Pressable$1).withConfig({
|
|
3543
|
+
var OverlayPressable = /*#__PURE__*/styled$1(Pressable$1).withConfig({
|
|
3418
3544
|
displayName: "Overlay__OverlayPressable",
|
|
3419
3545
|
componentId: "kitt-universal__sc-1cz1gbr-0"
|
|
3420
3546
|
})(function (_ref) {
|
|
@@ -3431,7 +3557,7 @@ function Overlay(_ref2) {
|
|
|
3431
3557
|
});
|
|
3432
3558
|
}
|
|
3433
3559
|
|
|
3434
|
-
var BodyView = /*#__PURE__*/styled(View$1).withConfig({
|
|
3560
|
+
var BodyView = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3435
3561
|
displayName: "Body__BodyView",
|
|
3436
3562
|
componentId: "kitt-universal__sc-17fwpo4-0"
|
|
3437
3563
|
})(["padding:", "px ", "px;"], function (_ref) {
|
|
@@ -3443,14 +3569,14 @@ var BodyView = /*#__PURE__*/styled(View$1).withConfig({
|
|
|
3443
3569
|
});
|
|
3444
3570
|
function ModalBody(_ref3) {
|
|
3445
3571
|
var children = _ref3.children;
|
|
3446
|
-
return /*#__PURE__*/jsx(ScrollView$
|
|
3572
|
+
return /*#__PURE__*/jsx(ScrollView$2, {
|
|
3447
3573
|
children: /*#__PURE__*/jsx(BodyView, {
|
|
3448
3574
|
children: children
|
|
3449
3575
|
})
|
|
3450
3576
|
});
|
|
3451
3577
|
}
|
|
3452
3578
|
|
|
3453
|
-
var FooterView = /*#__PURE__*/styled(View$1).withConfig({
|
|
3579
|
+
var FooterView = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3454
3580
|
displayName: "Footer__FooterView",
|
|
3455
3581
|
componentId: "kitt-universal__sc-1ujq2dc-0"
|
|
3456
3582
|
})(["flex:0 0 auto;padding:", "px;border-top-width:1px;border-top-color:", ";"], function (_ref) {
|
|
@@ -3469,7 +3595,7 @@ function ModalFooter(_ref3) {
|
|
|
3469
3595
|
|
|
3470
3596
|
var OnCloseContext$1 = /*#__PURE__*/createContext(function () {});
|
|
3471
3597
|
|
|
3472
|
-
var HeaderView = /*#__PURE__*/styled(View$1).withConfig({
|
|
3598
|
+
var HeaderView = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3473
3599
|
displayName: "Header__HeaderView",
|
|
3474
3600
|
componentId: "kitt-universal__sc-1iwabch-0"
|
|
3475
3601
|
})(["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) {
|
|
@@ -3479,21 +3605,21 @@ var HeaderView = /*#__PURE__*/styled(View$1).withConfig({
|
|
|
3479
3605
|
var theme = _ref2.theme;
|
|
3480
3606
|
return theme.kitt.colors.separator;
|
|
3481
3607
|
});
|
|
3482
|
-
var LeftIconView = /*#__PURE__*/styled(View$1).withConfig({
|
|
3608
|
+
var LeftIconView = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3483
3609
|
displayName: "Header__LeftIconView",
|
|
3484
3610
|
componentId: "kitt-universal__sc-1iwabch-1"
|
|
3485
3611
|
})(["align-self:flex-start;margin-right:", "px;"], function (_ref3) {
|
|
3486
3612
|
var theme = _ref3.theme;
|
|
3487
3613
|
return theme.kitt.spacing * 2;
|
|
3488
3614
|
});
|
|
3489
|
-
var RightIconView = /*#__PURE__*/styled(View$1).withConfig({
|
|
3615
|
+
var RightIconView = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3490
3616
|
displayName: "Header__RightIconView",
|
|
3491
3617
|
componentId: "kitt-universal__sc-1iwabch-2"
|
|
3492
3618
|
})(["align-self:flex-start;margin-left:", "px;"], function (_ref4) {
|
|
3493
3619
|
var theme = _ref4.theme;
|
|
3494
3620
|
return theme.kitt.spacing * 2;
|
|
3495
3621
|
});
|
|
3496
|
-
var TitleView = /*#__PURE__*/styled(View$1).withConfig({
|
|
3622
|
+
var TitleView = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3497
3623
|
displayName: "Header__TitleView",
|
|
3498
3624
|
componentId: "kitt-universal__sc-1iwabch-3"
|
|
3499
3625
|
})(["padding-left:", "px;flex-shrink:1;"], function (_ref5) {
|
|
@@ -3522,7 +3648,7 @@ function ModalHeader(_ref6) {
|
|
|
3522
3648
|
});
|
|
3523
3649
|
}
|
|
3524
3650
|
|
|
3525
|
-
var ModalView = /*#__PURE__*/styled(View$1).withConfig({
|
|
3651
|
+
var ModalView = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3526
3652
|
displayName: "Modal__ModalView",
|
|
3527
3653
|
componentId: "kitt-universal__sc-1xy2w5u-0"
|
|
3528
3654
|
})(["top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:", "px ", "px;"], function (_ref) {
|
|
@@ -3532,7 +3658,7 @@ var ModalView = /*#__PURE__*/styled(View$1).withConfig({
|
|
|
3532
3658
|
var theme = _ref2.theme;
|
|
3533
3659
|
return theme.kitt.spacing * 4;
|
|
3534
3660
|
});
|
|
3535
|
-
var ContentView = /*#__PURE__*/styled(View$1).withConfig({
|
|
3661
|
+
var ContentView = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3536
3662
|
displayName: "Modal__ContentView",
|
|
3537
3663
|
componentId: "kitt-universal__sc-1xy2w5u-1"
|
|
3538
3664
|
})(["position:relative;display:flex;flex-direction:column;max-height:100%;max-width:540px;height:auto;width:100%;border-radius:", "px;background-color:", ";"], function (_ref3) {
|
|
@@ -3618,7 +3744,7 @@ function CloseButton(_ref) {
|
|
|
3618
3744
|
});
|
|
3619
3745
|
}
|
|
3620
3746
|
|
|
3621
|
-
var ModalBehaviourContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
3747
|
+
var ModalBehaviourContainer = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3622
3748
|
displayName: "ModalBehaviour__ModalBehaviourContainer",
|
|
3623
3749
|
componentId: "kitt-universal__sc-tj3606-0"
|
|
3624
3750
|
})(["", ""], function () {
|
|
@@ -3785,16 +3911,8 @@ function KittNativeBaseProvider(_ref) {
|
|
|
3785
3911
|
});
|
|
3786
3912
|
}
|
|
3787
3913
|
|
|
3788
|
-
var Stack = Stack$1;
|
|
3789
|
-
var VStack = VStack$1;
|
|
3790
|
-
var HStack = HStack$1;
|
|
3791
|
-
|
|
3792
|
-
var View = View$2;
|
|
3793
|
-
var ScrollView = ScrollView$2;
|
|
3794
|
-
var Pressable = Pressable$2;
|
|
3795
|
-
|
|
3796
3914
|
var _excluded$4 = ["children"];
|
|
3797
|
-
var ViewWithPadding = /*#__PURE__*/styled(View$1).withConfig({
|
|
3915
|
+
var ViewWithPadding = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3798
3916
|
displayName: "ContentPadding__ViewWithPadding",
|
|
3799
3917
|
componentId: "kitt-universal__sc-1rprqcv-0"
|
|
3800
3918
|
})(["padding:", ";"], function (_ref) {
|
|
@@ -3811,7 +3929,7 @@ function ContentPadding(_ref2) {
|
|
|
3811
3929
|
}
|
|
3812
3930
|
|
|
3813
3931
|
var _excluded$3 = ["children", "shouldHandleBottomNotch", "style"];
|
|
3814
|
-
var StyledViewWithPadding = /*#__PURE__*/styled(ContentPadding).withConfig({
|
|
3932
|
+
var StyledViewWithPadding = /*#__PURE__*/styled$1(ContentPadding).withConfig({
|
|
3815
3933
|
displayName: "Body__StyledViewWithPadding",
|
|
3816
3934
|
componentId: "kitt-universal__sc-oc39vn-0"
|
|
3817
3935
|
})(["padding-top:", "px;padding-bottom:", "px;"], function (_ref) {
|
|
@@ -3839,7 +3957,7 @@ function Body(_ref3) {
|
|
|
3839
3957
|
}));
|
|
3840
3958
|
}
|
|
3841
3959
|
|
|
3842
|
-
var FooterContainer = /*#__PURE__*/styled(ContentPadding).withConfig({
|
|
3960
|
+
var FooterContainer = /*#__PURE__*/styled$1(ContentPadding).withConfig({
|
|
3843
3961
|
displayName: "Footer__FooterContainer",
|
|
3844
3962
|
componentId: "kitt-universal__sc-1yjprfg-0"
|
|
3845
3963
|
})(["padding-top:", "px;padding-bottom:", "px;", ";"], function (_ref) {
|
|
@@ -3877,7 +3995,7 @@ function Footer(_ref5) {
|
|
|
3877
3995
|
});
|
|
3878
3996
|
}
|
|
3879
3997
|
|
|
3880
|
-
var HeaderContainer = /*#__PURE__*/styled(ContentPadding).withConfig({
|
|
3998
|
+
var HeaderContainer = /*#__PURE__*/styled$1(ContentPadding).withConfig({
|
|
3881
3999
|
displayName: "Header__HeaderContainer",
|
|
3882
4000
|
componentId: "kitt-universal__sc-1g7sbq-0"
|
|
3883
4001
|
})(["height:", "px;width:100%;justify-content:center;background-color:", ";padding-right:", "px;padding-left:", "px;", ";"], function (_ref) {
|
|
@@ -3904,7 +4022,7 @@ var HeaderContainer = /*#__PURE__*/styled(ContentPadding).withConfig({
|
|
|
3904
4022
|
return theme.kitt.colors.separator;
|
|
3905
4023
|
});
|
|
3906
4024
|
});
|
|
3907
|
-
var Row = /*#__PURE__*/styled(View$1).withConfig({
|
|
4025
|
+
var Row = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3908
4026
|
displayName: "Header__Row",
|
|
3909
4027
|
componentId: "kitt-universal__sc-1g7sbq-1"
|
|
3910
4028
|
})(["flex-direction:row;justify-content:", ";align-items:center;"], function (_ref7) {
|
|
@@ -3912,14 +4030,14 @@ var Row = /*#__PURE__*/styled(View$1).withConfig({
|
|
|
3912
4030
|
$hasLeft = _ref7.$hasLeft;
|
|
3913
4031
|
return !$hasContent && !$hasLeft ? 'flex-end' : 'space-between';
|
|
3914
4032
|
});
|
|
3915
|
-
var ButtonContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
4033
|
+
var ButtonContainer = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3916
4034
|
displayName: "Header__ButtonContainer",
|
|
3917
4035
|
componentId: "kitt-universal__sc-1g7sbq-2"
|
|
3918
4036
|
})(["width:", "px;"], function (_ref8) {
|
|
3919
4037
|
var theme = _ref8.theme;
|
|
3920
4038
|
return theme.kitt.iconButton.width;
|
|
3921
4039
|
});
|
|
3922
|
-
var ChildrenComponent = /*#__PURE__*/styled(View$1).withConfig({
|
|
4040
|
+
var ChildrenComponent = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3923
4041
|
displayName: "Header__ChildrenComponent",
|
|
3924
4042
|
componentId: "kitt-universal__sc-1g7sbq-3"
|
|
3925
4043
|
})(["flex:1;align-items:center;", ";"], function (_ref9) {
|
|
@@ -3929,7 +4047,7 @@ var ChildrenComponent = /*#__PURE__*/styled(View$1).withConfig({
|
|
|
3929
4047
|
var paddingHorizontal = theme.kitt.spacing * 2;
|
|
3930
4048
|
return css(["padding-right:", "px;padding-left:", "px;"], $hasRight ? paddingHorizontal : 0, $hasLeft ? paddingHorizontal : 0);
|
|
3931
4049
|
});
|
|
3932
|
-
var HeaderTitle = /*#__PURE__*/styled(Typography.Text).withConfig({
|
|
4050
|
+
var HeaderTitle = /*#__PURE__*/styled$1(Typography.Text).withConfig({
|
|
3933
4051
|
displayName: "Header__HeaderTitle",
|
|
3934
4052
|
componentId: "kitt-universal__sc-1g7sbq-4"
|
|
3935
4053
|
})(["flex:1;text-align:", ";", ";"], function (_ref10) {
|
|
@@ -3980,7 +4098,7 @@ function Header(_ref12) {
|
|
|
3980
4098
|
});
|
|
3981
4099
|
}
|
|
3982
4100
|
|
|
3983
|
-
var NavigationModalContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
4101
|
+
var NavigationModalContainer = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3984
4102
|
displayName: "NavigationModalContainer",
|
|
3985
4103
|
componentId: "kitt-universal__sc-n0bwvk-0"
|
|
3986
4104
|
})(["position:relative;background-color:", ";flex:1;", ""], function (_ref) {
|
|
@@ -3991,7 +4109,7 @@ var NavigationModalContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
|
3991
4109
|
return css(["min-height:100vh;"]);
|
|
3992
4110
|
});
|
|
3993
4111
|
|
|
3994
|
-
var ContainerWithoutHeader = /*#__PURE__*/styled(View$1).withConfig({
|
|
4112
|
+
var ContainerWithoutHeader = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3995
4113
|
displayName: "NavigationModal__ContainerWithoutHeader",
|
|
3996
4114
|
componentId: "kitt-universal__sc-ls8t24-0"
|
|
3997
4115
|
})(["justify-content:space-between;flex:1;"]);
|
|
@@ -4005,7 +4123,7 @@ function NavigationModal(_ref) {
|
|
|
4005
4123
|
children: [header ? /*#__PURE__*/jsx(View$1, {
|
|
4006
4124
|
children: header
|
|
4007
4125
|
}) : null, /*#__PURE__*/jsxs(ContainerWithoutHeader, {
|
|
4008
|
-
children: [/*#__PURE__*/jsx(ScrollView$
|
|
4126
|
+
children: [/*#__PURE__*/jsx(ScrollView$2, {
|
|
4009
4127
|
bounces: false,
|
|
4010
4128
|
contentContainerStyle: {
|
|
4011
4129
|
flexGrow: 1,
|
|
@@ -4045,7 +4163,7 @@ function Notification(_ref) {
|
|
|
4045
4163
|
});
|
|
4046
4164
|
}
|
|
4047
4165
|
|
|
4048
|
-
var PageLoaderContainer = withTheme( /*#__PURE__*/styled
|
|
4166
|
+
var PageLoaderContainer = withTheme( /*#__PURE__*/styled("div")({
|
|
4049
4167
|
name: "PageLoaderContainer",
|
|
4050
4168
|
"class": "kitt-u_PageLoaderContainer_ptkwz2j",
|
|
4051
4169
|
vars: {
|
|
@@ -4143,7 +4261,7 @@ function Picker() {
|
|
|
4143
4261
|
});
|
|
4144
4262
|
}
|
|
4145
4263
|
|
|
4146
|
-
var StyledSkeleton = withTheme( /*#__PURE__*/styled
|
|
4264
|
+
var StyledSkeleton = withTheme( /*#__PURE__*/styled("div")({
|
|
4147
4265
|
name: "StyledSkeleton",
|
|
4148
4266
|
"class": "kitt-u_StyledSkeleton_sc3upcl",
|
|
4149
4267
|
vars: {
|
|
@@ -4169,7 +4287,7 @@ function SkeletonContent(_ref4) {
|
|
|
4169
4287
|
});
|
|
4170
4288
|
}
|
|
4171
4289
|
|
|
4172
|
-
var SkeletonContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
4290
|
+
var SkeletonContainer = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
4173
4291
|
displayName: "Skeleton__SkeletonContainer",
|
|
4174
4292
|
componentId: "kitt-universal__sc-1w5cm3i-0"
|
|
4175
4293
|
})(["overflow:hidden;"]);
|
|
@@ -4194,7 +4312,7 @@ function Skeleton(_ref) {
|
|
|
4194
4312
|
})
|
|
4195
4313
|
});
|
|
4196
4314
|
}
|
|
4197
|
-
var Bar = /*#__PURE__*/styled(Skeleton).withConfig({
|
|
4315
|
+
var Bar = /*#__PURE__*/styled$1(Skeleton).withConfig({
|
|
4198
4316
|
displayName: "Skeleton__Bar",
|
|
4199
4317
|
componentId: "kitt-universal__sc-1w5cm3i-1"
|
|
4200
4318
|
})(["width:100%;height:", "px;border-radius:", "px;"], function (_ref3) {
|
|
@@ -4204,7 +4322,7 @@ var Bar = /*#__PURE__*/styled(Skeleton).withConfig({
|
|
|
4204
4322
|
var theme = _ref4.theme;
|
|
4205
4323
|
return theme.kitt.spacing * 2;
|
|
4206
4324
|
});
|
|
4207
|
-
var Circle = /*#__PURE__*/styled(Skeleton).withConfig({
|
|
4325
|
+
var Circle = /*#__PURE__*/styled$1(Skeleton).withConfig({
|
|
4208
4326
|
displayName: "Skeleton__Circle",
|
|
4209
4327
|
componentId: "kitt-universal__sc-1w5cm3i-2"
|
|
4210
4328
|
})(["width:", "px;height:", "px;border-radius:", "px;"], function (_ref5) {
|
|
@@ -4217,7 +4335,7 @@ var Circle = /*#__PURE__*/styled(Skeleton).withConfig({
|
|
|
4217
4335
|
var theme = _ref7.theme;
|
|
4218
4336
|
return theme.kitt.spacing * 6;
|
|
4219
4337
|
});
|
|
4220
|
-
var Square = /*#__PURE__*/styled(Skeleton).withConfig({
|
|
4338
|
+
var Square = /*#__PURE__*/styled$1(Skeleton).withConfig({
|
|
4221
4339
|
displayName: "Skeleton__Square",
|
|
4222
4340
|
componentId: "kitt-universal__sc-1w5cm3i-3"
|
|
4223
4341
|
})(["width:", "px;height:", "px;border-radius:", "px;"], function (_ref8) {
|
|
@@ -4234,7 +4352,7 @@ Skeleton.Bar = Bar;
|
|
|
4234
4352
|
Skeleton.Circle = Circle;
|
|
4235
4353
|
Skeleton.Square = Square;
|
|
4236
4354
|
|
|
4237
|
-
var Flex = /*#__PURE__*/styled(View$1).withConfig({
|
|
4355
|
+
var Flex = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
4238
4356
|
shouldForwardProp: function shouldForwardProp(prop, defaultValidatorFn) {
|
|
4239
4357
|
return !['direction', 'padding'].includes(prop) && defaultValidatorFn(prop);
|
|
4240
4358
|
}
|
|
@@ -4291,7 +4409,7 @@ var useStoryBlockColor = function (color) {
|
|
|
4291
4409
|
var storyBlockColor = useContext(StoryBlockColorContext);
|
|
4292
4410
|
return color || storyBlockColor;
|
|
4293
4411
|
};
|
|
4294
|
-
var StyledStoryBlockView = /*#__PURE__*/styled(View$1).withConfig({
|
|
4412
|
+
var StyledStoryBlockView = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
4295
4413
|
displayName: "StoryBlock__StyledStoryBlockView",
|
|
4296
4414
|
componentId: "kitt-universal__sc-3w4hdm-0"
|
|
4297
4415
|
})(["padding:16px ", "px 0;margin:0 -", "px;background:", ";"], storyPadding, storyPadding, function (_ref) {
|
|
@@ -4314,11 +4432,11 @@ function StoryBlock(_ref2) {
|
|
|
4314
4432
|
});
|
|
4315
4433
|
}
|
|
4316
4434
|
|
|
4317
|
-
var StoryTitleContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
4435
|
+
var StoryTitleContainer = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
4318
4436
|
displayName: "StoryTitle__StoryTitleContainer",
|
|
4319
4437
|
componentId: "kitt-universal__sc-sic7hb-0"
|
|
4320
4438
|
})(["margin-bottom:30px;"]);
|
|
4321
|
-
var StorySubTitleContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
4439
|
+
var StorySubTitleContainer = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
4322
4440
|
displayName: "StoryTitle__StorySubTitleContainer",
|
|
4323
4441
|
componentId: "kitt-universal__sc-sic7hb-1"
|
|
4324
4442
|
})(["margin-bottom:10px;"]);
|
|
@@ -4393,7 +4511,7 @@ StoryTitle.Level2 = StoryTitleLevel2;
|
|
|
4393
4511
|
StoryTitle.Level3 = StoryTitleLevel3;
|
|
4394
4512
|
StoryTitle.Level4 = StoryTitleLevel4;
|
|
4395
4513
|
|
|
4396
|
-
var StoryContainer$1 = /*#__PURE__*/styled(ScrollView$
|
|
4514
|
+
var StoryContainer$1 = /*#__PURE__*/styled$1(ScrollView$2).withConfig({
|
|
4397
4515
|
displayName: "Story__StoryContainer",
|
|
4398
4516
|
componentId: "kitt-universal__sc-1kwdg2p-0"
|
|
4399
4517
|
})(["padding:", "px;"], storyPadding);
|
|
@@ -4412,7 +4530,7 @@ function Story(_ref) {
|
|
|
4412
4530
|
var _excluded$2 = ["title", "children", "internalIsDemoSection"],
|
|
4413
4531
|
_excluded2 = ["title", "children"],
|
|
4414
4532
|
_excluded3 = ["title", "children"];
|
|
4415
|
-
var StyledSection = /*#__PURE__*/styled(View$1).withConfig({
|
|
4533
|
+
var StyledSection = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
4416
4534
|
displayName: "StorySection__StyledSection",
|
|
4417
4535
|
componentId: "kitt-universal__sc-1b3liv5-0"
|
|
4418
4536
|
})(["margin-bottom:32px;"]);
|
|
@@ -4429,7 +4547,7 @@ function StorySection(_ref) {
|
|
|
4429
4547
|
}), children]
|
|
4430
4548
|
}));
|
|
4431
4549
|
}
|
|
4432
|
-
var StyledSubSection = /*#__PURE__*/styled(View$1).withConfig({
|
|
4550
|
+
var StyledSubSection = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
4433
4551
|
displayName: "StorySection__StyledSubSection",
|
|
4434
4552
|
componentId: "kitt-universal__sc-1b3liv5-1"
|
|
4435
4553
|
})(["margin-bottom:16px;"]);
|
|
@@ -4446,7 +4564,7 @@ function SubSection(_ref2) {
|
|
|
4446
4564
|
}));
|
|
4447
4565
|
}
|
|
4448
4566
|
|
|
4449
|
-
var StyledBlockSection = /*#__PURE__*/styled(View$1).withConfig({
|
|
4567
|
+
var StyledBlockSection = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
4450
4568
|
displayName: "StorySection__StyledBlockSection",
|
|
4451
4569
|
componentId: "kitt-universal__sc-1b3liv5-2"
|
|
4452
4570
|
})(["margin-bottom:16px;"]);
|
|
@@ -4463,7 +4581,7 @@ function BlockSection(_ref3) {
|
|
|
4463
4581
|
}));
|
|
4464
4582
|
}
|
|
4465
4583
|
|
|
4466
|
-
var StyledDemoSection = /*#__PURE__*/styled(View$1).withConfig({
|
|
4584
|
+
var StyledDemoSection = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
4467
4585
|
displayName: "StorySection__StyledDemoSection",
|
|
4468
4586
|
componentId: "kitt-universal__sc-1b3liv5-3"
|
|
4469
4587
|
})(["margin-bottom:64px;"]);
|
|
@@ -4512,19 +4630,19 @@ function StoryDecorator(storyFn, context) {
|
|
|
4512
4630
|
});
|
|
4513
4631
|
}
|
|
4514
4632
|
|
|
4515
|
-
var SmallScreenRow = /*#__PURE__*/styled(View$1).withConfig({
|
|
4633
|
+
var SmallScreenRow = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
4516
4634
|
displayName: "StoryGrid__SmallScreenRow",
|
|
4517
4635
|
componentId: "kitt-universal__sc-4z5new-0"
|
|
4518
4636
|
})(["flex-direction:column;margin:0;"]);
|
|
4519
|
-
var SmallScreenCol = /*#__PURE__*/styled(View$1).withConfig({
|
|
4637
|
+
var SmallScreenCol = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
4520
4638
|
displayName: "StoryGrid__SmallScreenCol",
|
|
4521
4639
|
componentId: "kitt-universal__sc-4z5new-1"
|
|
4522
4640
|
})(["padding:8px 0 16px;"]);
|
|
4523
|
-
var FlexRow = /*#__PURE__*/styled(View$1).withConfig({
|
|
4641
|
+
var FlexRow = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
4524
4642
|
displayName: "StoryGrid__FlexRow",
|
|
4525
4643
|
componentId: "kitt-universal__sc-4z5new-2"
|
|
4526
4644
|
})(["flex-direction:row;margin:0 -4px 16px;"]);
|
|
4527
|
-
var FlexCol = /*#__PURE__*/styled(View$1).withConfig({
|
|
4645
|
+
var FlexCol = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
4528
4646
|
displayName: "StoryGrid__FlexCol",
|
|
4529
4647
|
componentId: "kitt-universal__sc-4z5new-3"
|
|
4530
4648
|
})(["flex-grow:1;flex-basis:0;margin:0 8px;"]);
|
|
@@ -4585,7 +4703,7 @@ var StoryGrid = {
|
|
|
4585
4703
|
Col: StoryGridCol
|
|
4586
4704
|
};
|
|
4587
4705
|
|
|
4588
|
-
var Container = /*#__PURE__*/styled(View$1).withConfig({
|
|
4706
|
+
var Container = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
4589
4707
|
displayName: "Tag__Container",
|
|
4590
4708
|
componentId: "kitt-universal__sc-19jmowi-0"
|
|
4591
4709
|
})(["background-color:", ";border-width:", "px;border-color:", ";padding:", ";border-radius:", "px;align-self:flex-start;"], function (_ref) {
|
|
@@ -4657,11 +4775,11 @@ function TimePicker() {
|
|
|
4657
4775
|
});
|
|
4658
4776
|
}
|
|
4659
4777
|
|
|
4660
|
-
var StyledTooltipView = /*#__PURE__*/styled(View$1).withConfig({
|
|
4778
|
+
var StyledTooltipView = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
4661
4779
|
displayName: "TooltipView__StyledTooltipView",
|
|
4662
4780
|
componentId: "kitt-universal__sc-156zm6m-0"
|
|
4663
4781
|
})(["align-items:center;"]);
|
|
4664
|
-
var StyledTooltipContent = /*#__PURE__*/styled(View$1).withConfig({
|
|
4782
|
+
var StyledTooltipContent = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
4665
4783
|
displayName: "TooltipView__StyledTooltipContent",
|
|
4666
4784
|
componentId: "kitt-universal__sc-156zm6m-1"
|
|
4667
4785
|
})(["background-color:", ";border-radius:", "px;opacity:", ";padding:", ";"], function (_ref) {
|
|
@@ -4687,7 +4805,7 @@ function ArrowView(props) {
|
|
|
4687
4805
|
}));
|
|
4688
4806
|
}
|
|
4689
4807
|
|
|
4690
|
-
var StyledArrow = /*#__PURE__*/styled(ArrowView).withConfig({
|
|
4808
|
+
var StyledArrow = /*#__PURE__*/styled$1(ArrowView).withConfig({
|
|
4691
4809
|
displayName: "TooltipView__StyledArrow",
|
|
4692
4810
|
componentId: "kitt-universal__sc-156zm6m-2"
|
|
4693
4811
|
})(["color:", ";transform:", ";"], function (_ref5) {
|
|
@@ -4720,11 +4838,11 @@ var tooltipDefaultFloatingStrategy = {
|
|
|
4720
4838
|
web: 'absolute'
|
|
4721
4839
|
};
|
|
4722
4840
|
|
|
4723
|
-
var StyledTooltipTrigger = /*#__PURE__*/styled(Pressable$1).withConfig({
|
|
4841
|
+
var StyledTooltipTrigger = /*#__PURE__*/styled$1(Pressable$1).withConfig({
|
|
4724
4842
|
displayName: "Tooltipweb__StyledTooltipTrigger",
|
|
4725
4843
|
componentId: "kitt-universal__sc-zn1y6f-0"
|
|
4726
4844
|
})(["display:inline-flex;align-self:baseline;"]);
|
|
4727
|
-
var WebAnimatedTooltip = /*#__PURE__*/styled(View$1).withConfig({
|
|
4845
|
+
var WebAnimatedTooltip = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
4728
4846
|
displayName: "Tooltipweb__WebAnimatedTooltip",
|
|
4729
4847
|
componentId: "kitt-universal__sc-zn1y6f-1"
|
|
4730
4848
|
})(["opacity:", ";transition:opacity 200ms;visibility:", ";"], function (_ref) {
|
|
@@ -4853,7 +4971,7 @@ function Tooltip(_ref3) {
|
|
|
4853
4971
|
}
|
|
4854
4972
|
Tooltip.View = TooltipView;
|
|
4855
4973
|
|
|
4856
|
-
var EmojiWebWrapper = withTheme( /*#__PURE__*/styled
|
|
4974
|
+
var EmojiWebWrapper = withTheme( /*#__PURE__*/styled("span")({
|
|
4857
4975
|
name: "EmojiWebWrapper",
|
|
4858
4976
|
"class": "kitt-u_EmojiWebWrapper_ej7a4r3"
|
|
4859
4977
|
}));
|
|
@@ -4952,7 +5070,7 @@ function TypographyEmoji(_ref3) {
|
|
|
4952
5070
|
}
|
|
4953
5071
|
|
|
4954
5072
|
var _excluded$1 = ["children", "disabled", "noUnderline", "href", "hrefAttrs", "onPress"];
|
|
4955
|
-
var TypographyLinkWebWrapper = withTheme( /*#__PURE__*/styled
|
|
5073
|
+
var TypographyLinkWebWrapper = withTheme( /*#__PURE__*/styled("span")({
|
|
4956
5074
|
name: "TypographyLinkWebWrapper",
|
|
4957
5075
|
"class": "kitt-u_TypographyLinkWebWrapper_tcwz3nt",
|
|
4958
5076
|
vars: {
|
|
@@ -4962,7 +5080,7 @@ var TypographyLinkWebWrapper = withTheme( /*#__PURE__*/styled$1("span")({
|
|
|
4962
5080
|
}]
|
|
4963
5081
|
}
|
|
4964
5082
|
}));
|
|
4965
|
-
var StyledLink = /*#__PURE__*/styled(Text$2).withConfig({
|
|
5083
|
+
var StyledLink = /*#__PURE__*/styled$1(Text$2).withConfig({
|
|
4966
5084
|
displayName: "TypographyLink__StyledLink",
|
|
4967
5085
|
componentId: "kitt-universal__sc-1o1zy30-0"
|
|
4968
5086
|
})(["text-decoration:", ";", ";", ";"], function (_ref2) {
|
|
@@ -5056,5 +5174,5 @@ function MatchWindowSize(_ref) {
|
|
|
5056
5174
|
return children;
|
|
5057
5175
|
}
|
|
5058
5176
|
|
|
5059
|
-
export { Avatar, Button, Card, Checkbox, ChoicesElements, DatePicker, Emoji, ExternalAppLink, ExternalLink, Flex, FullScreenModal, HStack, Icon, IconButton, InputEmail, InputFeedback, InputField, InputIcon, InputPassword, InputPhone, InputPressable, InputTag, InputText, KittBreakpoints, KittBreakpointsMax, KittNativeBaseProvider, KittThemeDecorator, KittThemeProvider, Label, ListItem, LoaderIcon, MatchWindowSize, Message, Modal, ModalBehaviour, NavigationModal, Notification, Overlay, PageLoader, Picker, Pressable, Radio, ScrollView, DeprecatedSection as Section, Skeleton, SpinningIcon, Stack, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, Tag, TextArea, TimePicker, Tooltip, Typography, TypographyEmoji, TypographyIcon, TypographyLink, VStack, View, createChoicesComponent, createWindowSizeHelper, hex2rgba, matchWindowSize, styledTextInputMixin, theme, useKittTheme, useMatchWindowSize, useStoryBlockColor, withTheme };
|
|
5177
|
+
export { Actions, Avatar, Button, Card, Checkbox, ChoicesElements, DatePicker, Emoji, ExternalAppLink, ExternalLink, Flex, FullScreenModal, HStack, Icon, IconButton, InputEmail, InputFeedback, InputField, InputIcon, InputPassword, InputPhone, InputPressable, InputTag, InputText, KittBreakpoints, KittBreakpointsMax, KittNativeBaseProvider, KittThemeDecorator, KittThemeProvider, Label, ListItem, LoaderIcon, MatchWindowSize, Message, Modal, ModalBehaviour, NavigationModal, Notification, Overlay, PageLoader, Picker, Pressable, Radio, ScrollView, DeprecatedSection as Section, Skeleton, SpinningIcon, Stack, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, Tag, TextArea, TimePicker, Tooltip, Typography, TypographyEmoji, TypographyIcon, TypographyLink, VStack, View, createChoicesComponent, createWindowSizeHelper, hex2rgba, matchWindowSize, styledTextInputMixin, theme, useKittTheme, useMatchWindowSize, useStoryBlockColor, withTheme };
|
|
5060
5178
|
//# sourceMappingURL=index-browser-all.es.web.js.map
|