@ornikar/kitt-universal 9.4.0 → 9.7.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/Choices/hooks/useNativeAnimation.d.ts +14 -0
- package/dist/definitions/Choices/hooks/useNativeAnimation.d.ts.map +1 -0
- package/dist/definitions/Choices/hooks/useNativeAnimation.web.d.ts +7 -0
- package/dist/definitions/Choices/hooks/useNativeAnimation.web.d.ts.map +1 -0
- 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/InputField/InputField.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/native-base/acceptable-native-base-props.d.ts +5 -0
- package/dist/definitions/native-base/acceptable-native-base-props.d.ts.map +1 -1
- package/dist/definitions/native-base/layout.d.ts +4 -5
- package/dist/definitions/native-base/layout.d.ts.map +1 -1
- package/dist/definitions/native-base/primitives.d.ts +4 -5
- package/dist/definitions/native-base/primitives.d.ts.map +1 -1
- package/dist/definitions/story-components/StoryBlock.d.ts +1 -1
- package/dist/definitions/themes/default.d.ts +7 -1
- package/dist/definitions/themes/default.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/forms.d.ts +7 -1
- package/dist/definitions/themes/late-ocean/forms.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/inputField.d.ts +7 -1
- package/dist/definitions/themes/late-ocean/inputField.d.ts.map +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 +629 -500
- package/dist/index-browser-all.es.android.js.map +1 -1
- package/dist/index-browser-all.es.ios.js +629 -500
- package/dist/index-browser-all.es.ios.js.map +1 -1
- package/dist/index-browser-all.es.js +629 -500
- package/dist/index-browser-all.es.js.map +1 -1
- package/dist/index-browser-all.es.web.js +647 -602
- package/dist/index-browser-all.es.web.js.map +1 -1
- package/dist/index-node-14.17.cjs.js +564 -474
- 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 +573 -565
- package/dist/index-node-14.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.android.js +7 -1
- package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.ios.js +7 -1
- package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.js +7 -1
- package/dist/linaria-themes-browser-all.es.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.web.js +7 -1
- package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.js +7 -1
- package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.web.js +7 -1
- package/dist/linaria-themes-node-14.17.cjs.web.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +27 -2
|
@@ -1,60 +1,249 @@
|
|
|
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 { parse } from 'twemoji-parser';
|
|
18
17
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
19
18
|
import { Portal } from 'react-portal';
|
|
20
19
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
21
20
|
import { useFloating, offset, shift, flip, getScrollParents } from '@floating-ui/react-dom';
|
|
22
21
|
import { makeDecorator } from '@storybook/addons';
|
|
23
22
|
|
|
24
|
-
var
|
|
25
|
-
var
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
23
|
+
var Stack = Stack$1;
|
|
24
|
+
var VStack = VStack$1;
|
|
25
|
+
var HStack = HStack$1;
|
|
26
|
+
|
|
27
|
+
function warn(message) {
|
|
28
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
29
|
+
console.warn(message);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
function deprecatedMessage(symbol, deprecation, replaceBy) {
|
|
33
|
+
var replaceMessage = replaceBy === undefined ? '' : ", please use ".concat(replaceBy, " instead");
|
|
34
|
+
warn("[Deprecation] in ".concat(symbol, ": ").concat(deprecation, " is deprecated").concat(replaceMessage, "."));
|
|
35
|
+
}
|
|
36
|
+
function deprecatedInComponent(component, deprecation, replaceBy) {
|
|
37
|
+
deprecatedMessage("<".concat(component, " />"), deprecation, replaceBy);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// type $Without<T, K extends keyof any> = T extends any ? Pick<T, Exclude<keyof T, K>> : never;
|
|
41
|
+
// type $DeepPartial<T> = { [P in keyof T]?: $DeepPartial<T[P]> };
|
|
42
|
+
// export function withTheme<Props extends { theme: DefaultTheme }, C>(
|
|
43
|
+
// WrappedComponent: ComponentType<Props> & C,
|
|
44
|
+
// ): ComponentType<SetOptional<Props, 'theme'>> & hoistNonReactStatics.NonReactStatics<typeof WrappedComponent> {
|
|
45
|
+
// return function ThemedComponent(props) {
|
|
46
|
+
// const theme = useTheme();
|
|
47
|
+
// return (<WrappedComponent theme={theme} {...(props as any)} />) as any;
|
|
48
|
+
// };
|
|
49
|
+
// }
|
|
50
|
+
function withTheme(WrappedComponent) {
|
|
51
|
+
// eslint-disable-next-line prefer-arrow-callback
|
|
52
|
+
return /*#__PURE__*/forwardRef(function (props, ref) {
|
|
53
|
+
var theme = /*#__PURE__*/useTheme();
|
|
54
|
+
return /*#__PURE__*/jsx(WrappedComponent, _objectSpread({
|
|
55
|
+
ref: ref,
|
|
56
|
+
theme: theme
|
|
57
|
+
}, props));
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
var hasVariant = function (button, variant) {
|
|
62
|
+
return variant in button;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
function getVariantValuesIfExist(theme, type, variant) {
|
|
66
|
+
var button = theme.kitt.button[type];
|
|
67
|
+
|
|
68
|
+
if (hasVariant(button, variant)) {
|
|
69
|
+
return button[variant];
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
return theme.kitt.button[type]["default"];
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
function isSubtle(type) {
|
|
76
|
+
return type.startsWith('subtle');
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
var _excluded$m = ["$type", "$variant", "$isStretch", "disabled"];
|
|
80
|
+
var AnimatedButtonPressableContainer = withTheme( /*#__PURE__*/styled("div")({
|
|
81
|
+
name: "AnimatedButtonPressableContainer",
|
|
82
|
+
"class": "kitt-u_AnimatedButtonPressableContainer_a1vkj3mh",
|
|
83
|
+
vars: {
|
|
84
|
+
"a1vkj3mh-0": [function (_ref) {
|
|
85
|
+
var $isStretch = _ref.$isStretch;
|
|
86
|
+
return $isStretch ? 'inherit' : 'inline-flex';
|
|
87
|
+
}],
|
|
88
|
+
"a1vkj3mh-1": [function (_ref2) {
|
|
89
|
+
var $isStretch = _ref2.$isStretch;
|
|
90
|
+
return $isStretch ? 'stretch' : 'baseline';
|
|
91
|
+
}],
|
|
92
|
+
"a1vkj3mh-3": [function (_ref3) {
|
|
93
|
+
var theme = _ref3.theme;
|
|
94
|
+
return theme.kitt.button.scale.medium.hover;
|
|
95
|
+
}],
|
|
96
|
+
"a1vkj3mh-4": [function (_ref4) {
|
|
97
|
+
var theme = _ref4.theme,
|
|
98
|
+
$isDisabled = _ref4.$isDisabled;
|
|
99
|
+
return "scale(".concat($isDisabled ? 1 : theme.kitt.button.scale.base.active, ")");
|
|
100
|
+
}],
|
|
101
|
+
"a1vkj3mh-5": [function (_ref5) {
|
|
102
|
+
var theme = _ref5.theme,
|
|
103
|
+
$type = _ref5.$type,
|
|
104
|
+
$variant = _ref5.$variant,
|
|
105
|
+
$isDisabled = _ref5.$isDisabled;
|
|
106
|
+
if ($isDisabled) return theme.kitt.button.disabled["default"].hoverBackgroundColor;
|
|
107
|
+
return getVariantValuesIfExist(theme, $type, $variant).hoverBackgroundColor;
|
|
108
|
+
}],
|
|
109
|
+
"a1vkj3mh-6": [function (_ref6) {
|
|
110
|
+
var theme = _ref6.theme;
|
|
111
|
+
var _theme$kitt$button$tr = theme.kitt.button.transition,
|
|
112
|
+
duration = _theme$kitt$button$tr.duration,
|
|
113
|
+
timingFunction = _theme$kitt$button$tr.timingFunction;
|
|
114
|
+
return "color, background, border-color, ".concat(duration, " ").concat(timingFunction);
|
|
115
|
+
}],
|
|
116
|
+
"a1vkj3mh-7": [function (_ref7) {
|
|
117
|
+
var theme = _ref7.theme;
|
|
118
|
+
return theme.kitt.button.borderRadius;
|
|
119
|
+
}, "px"],
|
|
120
|
+
"a1vkj3mh-8": [function (_ref8) {
|
|
121
|
+
var theme = _ref8.theme;
|
|
122
|
+
return "opacity ".concat(theme.kitt.button.transition.duration, " ").concat(theme.kitt.button.transition.timingFunction);
|
|
123
|
+
}],
|
|
124
|
+
"a1vkj3mh-9": [function (_ref9) {
|
|
125
|
+
var $isDisabled = _ref9.$isDisabled;
|
|
126
|
+
return $isDisabled ? 1 : 0;
|
|
127
|
+
}],
|
|
128
|
+
"a1vkj3mh-10": [function (_ref10) {
|
|
129
|
+
var theme = _ref10.theme;
|
|
130
|
+
return "-".concat(theme.kitt.button.borderWidth.disabled, "px");
|
|
131
|
+
}],
|
|
132
|
+
"a1vkj3mh-12": [function (_ref11) {
|
|
133
|
+
var theme = _ref11.theme;
|
|
134
|
+
return "calc(100% - ".concat(theme.kitt.button.borderWidth.disabled * 0.5, "px)");
|
|
135
|
+
}],
|
|
136
|
+
"a1vkj3mh-14": [function (_ref12) {
|
|
137
|
+
var theme = _ref12.theme;
|
|
138
|
+
return "".concat(theme.kitt.button.borderWidth.disabled, "px solid ").concat(theme.kitt.button.disabled["default"].borderColor);
|
|
139
|
+
}],
|
|
140
|
+
"a1vkj3mh-15": [function (_ref13) {
|
|
141
|
+
var theme = _ref13.theme,
|
|
142
|
+
$type = _ref13.$type,
|
|
143
|
+
$variant = _ref13.$variant;
|
|
144
|
+
return "".concat(theme.kitt.button.borderWidth.focus, "px solid ").concat(getVariantValuesIfExist(theme, $type, $variant).focusBorderColor);
|
|
145
|
+
}],
|
|
146
|
+
"a1vkj3mh-16": [function (_ref14) {
|
|
147
|
+
var theme = _ref14.theme;
|
|
148
|
+
return "-".concat(theme.kitt.button.borderWidth.focus, "px");
|
|
149
|
+
}],
|
|
150
|
+
"a1vkj3mh-18": [function (_ref15) {
|
|
151
|
+
var theme = _ref15.theme,
|
|
152
|
+
$type = _ref15.$type,
|
|
153
|
+
$isDisabled = _ref15.$isDisabled;
|
|
154
|
+
if ($isDisabled) return theme.kitt.typography.colors['black-light'];
|
|
155
|
+
|
|
156
|
+
if (isSubtle($type)) {
|
|
157
|
+
return theme.kitt.button[$type]["default"].color;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
return 'inherit';
|
|
161
|
+
}],
|
|
162
|
+
"a1vkj3mh-19": [function (_ref16) {
|
|
163
|
+
var theme = _ref16.theme,
|
|
164
|
+
$type = _ref16.$type,
|
|
165
|
+
$isDisabled = _ref16.$isDisabled;
|
|
166
|
+
if ($isDisabled) return theme.kitt.typography.colors['black-light'];
|
|
167
|
+
|
|
168
|
+
if (isSubtle($type)) {
|
|
169
|
+
return theme.kitt.button[$type]["default"].hoverColor;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
return 'inherit';
|
|
173
|
+
}],
|
|
174
|
+
"a1vkj3mh-20": [function (_ref17) {
|
|
175
|
+
var theme = _ref17.theme,
|
|
176
|
+
$type = _ref17.$type,
|
|
177
|
+
$isDisabled = _ref17.$isDisabled;
|
|
178
|
+
if ($isDisabled) return theme.kitt.typography.colors['black-light'];
|
|
179
|
+
|
|
180
|
+
if (isSubtle($type)) {
|
|
181
|
+
return theme.kitt.button[$type]["default"].activeColor;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
return 'inherit';
|
|
185
|
+
}]
|
|
186
|
+
}
|
|
187
|
+
}));
|
|
188
|
+
var AnimatedButtonPressable = /*#__PURE__*/forwardRef(function (_ref18, ref) {
|
|
189
|
+
var $type = _ref18.$type,
|
|
190
|
+
$variant = _ref18.$variant,
|
|
191
|
+
$isStretch = _ref18.$isStretch,
|
|
192
|
+
disabled = _ref18.disabled,
|
|
193
|
+
props = _objectWithoutProperties(_ref18, _excluded$m);
|
|
194
|
+
|
|
195
|
+
return /*#__PURE__*/jsx(AnimatedButtonPressableContainer, {
|
|
196
|
+
ref: ref,
|
|
197
|
+
$type: $type,
|
|
198
|
+
$variant: $variant,
|
|
199
|
+
$isDisabled: !!disabled,
|
|
200
|
+
$isStretch: $isStretch,
|
|
201
|
+
children: /*#__PURE__*/jsx(Pressable$1, _objectSpread({
|
|
202
|
+
disabled: disabled
|
|
203
|
+
}, props))
|
|
204
|
+
});
|
|
205
|
+
});
|
|
206
|
+
|
|
207
|
+
var BaseStyledButtonPressable = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
208
|
+
displayName: "BaseStyledButtonPressable",
|
|
209
|
+
componentId: "kitt-universal__sc-4k8lse-0"
|
|
210
|
+
})(["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) {
|
|
211
|
+
var theme = _ref.theme;
|
|
212
|
+
return theme.kitt.button.minWidth;
|
|
31
213
|
}, function (_ref2) {
|
|
32
|
-
var
|
|
33
|
-
|
|
214
|
+
var theme = _ref2.theme,
|
|
215
|
+
$isStretch = _ref2.$isStretch;
|
|
216
|
+
return $isStretch ? '100%' : "".concat(theme.kitt.button.maxWidth, "px");
|
|
34
217
|
}, function (_ref3) {
|
|
35
|
-
var $
|
|
36
|
-
return $
|
|
218
|
+
var $isStretch = _ref3.$isStretch;
|
|
219
|
+
return $isStretch ? '100%' : 'auto';
|
|
37
220
|
}, function (_ref4) {
|
|
38
|
-
var
|
|
39
|
-
|
|
40
|
-
|
|
221
|
+
var theme = _ref4.theme;
|
|
222
|
+
return theme.kitt.button.minHeight;
|
|
223
|
+
}, function (_ref5) {
|
|
224
|
+
var theme = _ref5.theme;
|
|
225
|
+
return theme.kitt.button.borderRadius;
|
|
226
|
+
}, function (_ref6) {
|
|
227
|
+
var theme = _ref6.theme,
|
|
228
|
+
$isDisabled = _ref6.$isDisabled,
|
|
229
|
+
$type = _ref6.$type,
|
|
230
|
+
$variant = _ref6.$variant;
|
|
231
|
+
if ($isDisabled) return theme.kitt.button.disabled["default"].backgroundColor;
|
|
232
|
+
return getVariantValuesIfExist(theme, $type, $variant).backgroundColor;
|
|
233
|
+
}, function (_ref7) {
|
|
234
|
+
var theme = _ref7.theme,
|
|
235
|
+
$size = _ref7.$size,
|
|
236
|
+
$isDisabled = _ref7.$isDisabled;
|
|
237
|
+
var _theme$kitt$button$co = theme.kitt.button.contentPadding,
|
|
238
|
+
large = _theme$kitt$button$co.large,
|
|
239
|
+
defaultPadding = _theme$kitt$button$co["default"],
|
|
240
|
+
disabledPadding = _theme$kitt$button$co.disabled,
|
|
241
|
+
xLarge = _theme$kitt$button$co.xLarge;
|
|
242
|
+
if ($size === 'large') return large;
|
|
243
|
+
if ($size === 'xlarge') return xLarge;
|
|
244
|
+
if ($isDisabled) return disabledPadding;
|
|
245
|
+
return defaultPadding;
|
|
41
246
|
});
|
|
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
247
|
|
|
59
248
|
var KittBreakpoints = {
|
|
60
249
|
/**
|
|
@@ -113,7 +302,7 @@ var KittBreakpointNameEnum;
|
|
|
113
302
|
KittBreakpointNameEnum["WIDE"] = "wide";
|
|
114
303
|
})(KittBreakpointNameEnum || (KittBreakpointNameEnum = {}));
|
|
115
304
|
|
|
116
|
-
var _excluded$
|
|
305
|
+
var _excluded$l = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
|
|
117
306
|
var IsHeaderTypographyContext = /*#__PURE__*/createContext(undefined);
|
|
118
307
|
var TypographyColorContext = /*#__PURE__*/createContext('black');
|
|
119
308
|
function useTypographyColor() {
|
|
@@ -185,7 +374,7 @@ function Typography(_ref) {
|
|
|
185
374
|
} : _ref$type,
|
|
186
375
|
variant = _ref.variant,
|
|
187
376
|
color = _ref.color,
|
|
188
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
377
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$l);
|
|
189
378
|
|
|
190
379
|
var isHeaderTypographyInContext = useContext(IsHeaderTypographyContext);
|
|
191
380
|
var defaultColor = useTypographyDefaultColor();
|
|
@@ -284,320 +473,47 @@ Typography.h4 = createHeading(4, 'header4');
|
|
|
284
473
|
|
|
285
474
|
Typography.h5 = createHeading(5, 'header5');
|
|
286
475
|
|
|
287
|
-
var
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
};
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
displayName: "Avatar__StyledAvatarView",
|
|
295
|
-
componentId: "kitt-universal__sc-9miubv-0"
|
|
296
|
-
})(["border-radius:", ";background-color:", ";height:", "px;width:", "px;overflow:hidden;align-items:center;justify-content:center;"], function (_ref) {
|
|
297
|
-
var theme = _ref.theme,
|
|
298
|
-
$isRound = _ref.$isRound,
|
|
299
|
-
$size = _ref.$size,
|
|
300
|
-
$sizeVariant = _ref.$sizeVariant;
|
|
301
|
-
if ($isRound) return "".concat($size / 2, "px");
|
|
302
|
-
return "".concat($sizeVariant === 'large' ? theme.kitt.avatar.large.borderRadius : theme.kitt.avatar.borderRadius, "px");
|
|
476
|
+
var defaultIconSize = 20;
|
|
477
|
+
var IconContainer$1 = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
478
|
+
displayName: "Icon__IconContainer",
|
|
479
|
+
componentId: "kitt-universal__sc-usm0ol-0"
|
|
480
|
+
})(["color:", ";width:", "px;height:", "px;align-self:", ";"], function (_ref) {
|
|
481
|
+
var $color = _ref.$color;
|
|
482
|
+
return $color;
|
|
303
483
|
}, function (_ref2) {
|
|
304
|
-
var
|
|
305
|
-
|
|
306
|
-
return $isLight ? theme.kitt.avatar.light.backgroundColor : theme.kitt.avatar["default"].backgroundColor;
|
|
484
|
+
var $size = _ref2.$size;
|
|
485
|
+
return $size;
|
|
307
486
|
}, function (_ref3) {
|
|
308
487
|
var $size = _ref3.$size;
|
|
309
488
|
return $size;
|
|
310
489
|
}, function (_ref4) {
|
|
311
|
-
var
|
|
312
|
-
|
|
490
|
+
var _ref4$$align = _ref4.$align,
|
|
491
|
+
$align = _ref4$$align === void 0 ? 'auto' : _ref4$$align;
|
|
492
|
+
return $align;
|
|
313
493
|
});
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
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
|
|
494
|
+
function Icon(_ref5) {
|
|
495
|
+
var icon = _ref5.icon,
|
|
496
|
+
_ref5$size = _ref5.size,
|
|
497
|
+
size = _ref5$size === void 0 ? defaultIconSize : _ref5$size,
|
|
498
|
+
align = _ref5.align,
|
|
499
|
+
color = _ref5.color;
|
|
500
|
+
var clonedIcon = /*#__PURE__*/cloneElement(icon, {
|
|
501
|
+
color: color
|
|
350
502
|
});
|
|
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, {
|
|
503
|
+
return /*#__PURE__*/jsx(IconContainer$1, {
|
|
504
|
+
$align: align,
|
|
362
505
|
$size: size,
|
|
363
|
-
$
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
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;
|
|
593
|
-
});
|
|
506
|
+
$color: color,
|
|
507
|
+
children: clonedIcon
|
|
508
|
+
});
|
|
509
|
+
}
|
|
594
510
|
|
|
595
|
-
var _excluded$
|
|
511
|
+
var _excluded$k = ["color"],
|
|
596
512
|
_excluded2$3 = ["color"];
|
|
597
513
|
|
|
598
514
|
function TypographyIconSpecifiedColor(_ref) {
|
|
599
515
|
var color = _ref.color,
|
|
600
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
516
|
+
props = _objectWithoutProperties(_ref, _excluded$k);
|
|
601
517
|
|
|
602
518
|
var theme = /*#__PURE__*/useTheme();
|
|
603
519
|
return /*#__PURE__*/jsx(Icon, _objectSpread(_objectSpread({}, props), {}, {
|
|
@@ -625,7 +541,7 @@ function TypographyIcon(_ref2) {
|
|
|
625
541
|
return /*#__PURE__*/jsx(TypographyIconInheritColor, _objectSpread({}, props));
|
|
626
542
|
}
|
|
627
543
|
|
|
628
|
-
var _excluded$
|
|
544
|
+
var _excluded$j = ["type", "variant", "isDisabled", "$isStretch", "icon", "children"];
|
|
629
545
|
|
|
630
546
|
var getTextColorByType = function (type, variant) {
|
|
631
547
|
switch (type) {
|
|
@@ -649,7 +565,7 @@ var getTextColorByType = function (type, variant) {
|
|
|
649
565
|
}
|
|
650
566
|
};
|
|
651
567
|
|
|
652
|
-
var StyledButtonText = /*#__PURE__*/styled(Typography.Text).withConfig({
|
|
568
|
+
var StyledButtonText = /*#__PURE__*/styled$1(Typography.Text).withConfig({
|
|
653
569
|
displayName: "ButtonContent__StyledButtonText",
|
|
654
570
|
componentId: "kitt-universal__sc-dnyw3n-0"
|
|
655
571
|
})(["text-align:center;", " ", ""], function () {
|
|
@@ -667,7 +583,7 @@ var StyledButtonText = /*#__PURE__*/styled(Typography.Text).withConfig({
|
|
|
667
583
|
if ($isDisabled || !isSubtle($type)) return undefined;
|
|
668
584
|
return 'color: inherit';
|
|
669
585
|
});
|
|
670
|
-
var StyledIconContainer$1 = /*#__PURE__*/styled(View$1).withConfig({
|
|
586
|
+
var StyledIconContainer$1 = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
671
587
|
displayName: "ButtonContent__StyledIconContainer",
|
|
672
588
|
componentId: "kitt-universal__sc-dnyw3n-1"
|
|
673
589
|
})(["", ""], function (_ref2) {
|
|
@@ -697,7 +613,7 @@ function ButtonIcon(_ref3) {
|
|
|
697
613
|
});
|
|
698
614
|
}
|
|
699
615
|
|
|
700
|
-
var StyledChildrenWithIcon = /*#__PURE__*/styled(View$1).withConfig({
|
|
616
|
+
var StyledChildrenWithIcon = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
701
617
|
displayName: "ButtonContent__StyledChildrenWithIcon",
|
|
702
618
|
componentId: "kitt-universal__sc-dnyw3n-2"
|
|
703
619
|
})(["align-items:center;justify-content:center;flex-direction:row;"]);
|
|
@@ -732,7 +648,7 @@ function ButtonContentChildren(_ref4) {
|
|
|
732
648
|
};
|
|
733
649
|
return /*#__PURE__*/jsxs(StyledChildrenWithIcon, {
|
|
734
650
|
children: [icon && iconPosition === 'left' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread(_objectSpread({}, buttonIconSharedProps), {}, {
|
|
735
|
-
testID: "button
|
|
651
|
+
testID: "button.ButtonContent.leftButtonIcon",
|
|
736
652
|
icon: icon
|
|
737
653
|
})) : null, /*#__PURE__*/jsx(StyledButtonText, {
|
|
738
654
|
base: "body",
|
|
@@ -747,7 +663,7 @@ function ButtonContentChildren(_ref4) {
|
|
|
747
663
|
})) : null]
|
|
748
664
|
});
|
|
749
665
|
}
|
|
750
|
-
var ButtonContentContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
666
|
+
var ButtonContentContainer = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
751
667
|
displayName: "ButtonContent__ButtonContentContainer",
|
|
752
668
|
componentId: "kitt-universal__sc-dnyw3n-3"
|
|
753
669
|
})(["line-height:16px;", " ", ";"], function (_ref5) {
|
|
@@ -767,7 +683,7 @@ function ButtonContent(_ref7) {
|
|
|
767
683
|
$isStretch = _ref7.$isStretch,
|
|
768
684
|
icon = _ref7.icon,
|
|
769
685
|
children = _ref7.children,
|
|
770
|
-
props = _objectWithoutProperties(_ref7, _excluded$
|
|
686
|
+
props = _objectWithoutProperties(_ref7, _excluded$j);
|
|
771
687
|
|
|
772
688
|
var color = isDisabled ? 'black-light' : getTextColorByType(type, variant);
|
|
773
689
|
return /*#__PURE__*/jsx(ButtonContentContainer, {
|
|
@@ -861,7 +777,261 @@ var Button = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
861
777
|
});
|
|
862
778
|
});
|
|
863
779
|
|
|
864
|
-
var
|
|
780
|
+
var StyledSpinningIconContainer = withTheme( /*#__PURE__*/styled("div")({
|
|
781
|
+
name: "StyledSpinningIconContainer",
|
|
782
|
+
"class": "kitt-u_StyledSpinningIconContainer_ssn8o83"
|
|
783
|
+
}));
|
|
784
|
+
function SpinningIcon(_ref) {
|
|
785
|
+
var icon = _ref.icon,
|
|
786
|
+
color = _ref.color;
|
|
787
|
+
var clonedIcon = /*#__PURE__*/cloneElement(icon, {
|
|
788
|
+
color: color
|
|
789
|
+
});
|
|
790
|
+
return /*#__PURE__*/jsx(StyledSpinningIconContainer, {
|
|
791
|
+
children: clonedIcon
|
|
792
|
+
});
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
function LoaderIcon(_ref) {
|
|
796
|
+
var color = _ref.color;
|
|
797
|
+
return /*#__PURE__*/jsx(SpinningIcon, {
|
|
798
|
+
color: color,
|
|
799
|
+
icon: /*#__PURE__*/jsx(ArcIcon, {})
|
|
800
|
+
});
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
var View = View$2;
|
|
804
|
+
var ScrollView = ScrollView$1;
|
|
805
|
+
var Pressable = Pressable$2;
|
|
806
|
+
|
|
807
|
+
function matchWindowSize(_ref, _ref2) {
|
|
808
|
+
var width = _ref.width,
|
|
809
|
+
height = _ref.height;
|
|
810
|
+
var minWidth = _ref2.minWidth,
|
|
811
|
+
maxWidth = _ref2.maxWidth,
|
|
812
|
+
minHeight = _ref2.minHeight,
|
|
813
|
+
maxHeight = _ref2.maxHeight;
|
|
814
|
+
var hasWidthMatched = width ? (!minWidth || width >= minWidth) && (!maxWidth || width <= maxWidth) : true;
|
|
815
|
+
var hasHeightMatched = height ? (!minHeight || height >= minHeight) && (!maxHeight || height <= maxHeight) : true;
|
|
816
|
+
return hasWidthMatched && hasHeightMatched;
|
|
817
|
+
}
|
|
818
|
+
function useMatchWindowSize(options) {
|
|
819
|
+
var _useWindowDimensions = useWindowDimensions(),
|
|
820
|
+
width = _useWindowDimensions.width,
|
|
821
|
+
height = _useWindowDimensions.height;
|
|
822
|
+
|
|
823
|
+
return matchWindowSize({
|
|
824
|
+
width: width,
|
|
825
|
+
height: height
|
|
826
|
+
}, options);
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
var _excluded$i = ["as", "onPress", "disabled", "icon"];
|
|
830
|
+
function ActionsItem(_ref) {
|
|
831
|
+
var as = _ref.as,
|
|
832
|
+
onPress = _ref.onPress,
|
|
833
|
+
disabled = _ref.disabled,
|
|
834
|
+
icon = _ref.icon,
|
|
835
|
+
props = _objectWithoutProperties(_ref, _excluded$i);
|
|
836
|
+
|
|
837
|
+
var isMedium = useMatchWindowSize({
|
|
838
|
+
minWidth: KittBreakpoints.MEDIUM
|
|
839
|
+
});
|
|
840
|
+
|
|
841
|
+
var _useState = useState(false),
|
|
842
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
843
|
+
isLoading = _useState2[0],
|
|
844
|
+
setIsLoading = _useState2[1];
|
|
845
|
+
|
|
846
|
+
var mountedRef = useRef(false); // effect just for tracking mounted state, as onPress can unmount the ActionButton
|
|
847
|
+
|
|
848
|
+
useEffect(function () {
|
|
849
|
+
mountedRef.current = true;
|
|
850
|
+
return function () {
|
|
851
|
+
mountedRef.current = false;
|
|
852
|
+
};
|
|
853
|
+
}, []);
|
|
854
|
+
return /*#__PURE__*/jsx(View, {
|
|
855
|
+
children: /*#__PURE__*/jsx(as, _objectSpread(_objectSpread({}, props), {}, {
|
|
856
|
+
stretch: !isMedium ? true : undefined,
|
|
857
|
+
disabled: isLoading ? true : disabled,
|
|
858
|
+
icon: isLoading ? /*#__PURE__*/jsx(LoaderIcon, {}) : icon,
|
|
859
|
+
onPress: function handlePress(e) {
|
|
860
|
+
var callPressAndUpdateLoadingState = /*#__PURE__*/function () {
|
|
861
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
862
|
+
return _regeneratorRuntime.wrap(function (_context) {
|
|
863
|
+
while (1) {
|
|
864
|
+
switch (_context.prev = _context.next) {
|
|
865
|
+
case 0:
|
|
866
|
+
if (onPress) {
|
|
867
|
+
_context.next = 2;
|
|
868
|
+
break;
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
return _context.abrupt("return");
|
|
872
|
+
|
|
873
|
+
case 2:
|
|
874
|
+
setIsLoading(true);
|
|
875
|
+
_context.prev = 3;
|
|
876
|
+
_context.next = 6;
|
|
877
|
+
return onPress(e);
|
|
878
|
+
|
|
879
|
+
case 6:
|
|
880
|
+
if (mountedRef.current) {
|
|
881
|
+
setIsLoading(false);
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
_context.next = 13;
|
|
885
|
+
break;
|
|
886
|
+
|
|
887
|
+
case 9:
|
|
888
|
+
_context.prev = 9;
|
|
889
|
+
_context.t0 = _context["catch"](3);
|
|
890
|
+
|
|
891
|
+
if (mountedRef.current) {
|
|
892
|
+
setIsLoading(false);
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
throw _context.t0;
|
|
896
|
+
|
|
897
|
+
case 13:
|
|
898
|
+
case "end":
|
|
899
|
+
return _context.stop();
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
}, _callee, null, [[3, 9]]);
|
|
903
|
+
}));
|
|
904
|
+
|
|
905
|
+
return function () {
|
|
906
|
+
return _ref2.apply(this, arguments);
|
|
907
|
+
};
|
|
908
|
+
}();
|
|
909
|
+
|
|
910
|
+
callPressAndUpdateLoadingState();
|
|
911
|
+
}
|
|
912
|
+
}))
|
|
913
|
+
});
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
function ActionsButton(_ref) {
|
|
917
|
+
var props = _extends({}, _ref);
|
|
918
|
+
|
|
919
|
+
return /*#__PURE__*/jsx(ActionsItem, _objectSpread({
|
|
920
|
+
as: Button
|
|
921
|
+
}, props));
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
var _excluded$h = ["children"];
|
|
925
|
+
function Actions(_ref) {
|
|
926
|
+
var children = _ref.children,
|
|
927
|
+
props = _objectWithoutProperties(_ref, _excluded$h);
|
|
928
|
+
|
|
929
|
+
return /*#__PURE__*/jsx(Stack, _objectSpread(_objectSpread({
|
|
930
|
+
alignItems: {
|
|
931
|
+
base: 'stretch',
|
|
932
|
+
medium: 'center'
|
|
933
|
+
},
|
|
934
|
+
direction: {
|
|
935
|
+
base: 'column',
|
|
936
|
+
medium: 'row'
|
|
937
|
+
},
|
|
938
|
+
flex: 1
|
|
939
|
+
}, props), {}, {
|
|
940
|
+
space: "kitt.3",
|
|
941
|
+
children: children
|
|
942
|
+
}));
|
|
943
|
+
}
|
|
944
|
+
Actions.Button = ActionsButton;
|
|
945
|
+
Actions.Item = ActionsItem;
|
|
946
|
+
|
|
947
|
+
var _excluded$g = ["size", "round", "light", "sizeVariant"];
|
|
948
|
+
|
|
949
|
+
var getInitials = function (firstname, lastname) {
|
|
950
|
+
return "".concat(firstname[0]).concat(lastname[0]).toUpperCase();
|
|
951
|
+
};
|
|
952
|
+
|
|
953
|
+
var StyledAvatarView = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
954
|
+
displayName: "Avatar__StyledAvatarView",
|
|
955
|
+
componentId: "kitt-universal__sc-9miubv-0"
|
|
956
|
+
})(["border-radius:", ";background-color:", ";height:", "px;width:", "px;overflow:hidden;align-items:center;justify-content:center;"], function (_ref) {
|
|
957
|
+
var theme = _ref.theme,
|
|
958
|
+
$isRound = _ref.$isRound,
|
|
959
|
+
$size = _ref.$size,
|
|
960
|
+
$sizeVariant = _ref.$sizeVariant;
|
|
961
|
+
if ($isRound) return "".concat($size / 2, "px");
|
|
962
|
+
return "".concat($sizeVariant === 'large' ? theme.kitt.avatar.large.borderRadius : theme.kitt.avatar.borderRadius, "px");
|
|
963
|
+
}, function (_ref2) {
|
|
964
|
+
var theme = _ref2.theme,
|
|
965
|
+
$isLight = _ref2.$isLight;
|
|
966
|
+
return $isLight ? theme.kitt.avatar.light.backgroundColor : theme.kitt.avatar["default"].backgroundColor;
|
|
967
|
+
}, function (_ref3) {
|
|
968
|
+
var $size = _ref3.$size;
|
|
969
|
+
return $size;
|
|
970
|
+
}, function (_ref4) {
|
|
971
|
+
var $size = _ref4.$size;
|
|
972
|
+
return $size;
|
|
973
|
+
});
|
|
974
|
+
|
|
975
|
+
function AvatarContent(_ref5) {
|
|
976
|
+
var size = _ref5.size,
|
|
977
|
+
src = _ref5.src,
|
|
978
|
+
firstname = _ref5.firstname,
|
|
979
|
+
lastname = _ref5.lastname,
|
|
980
|
+
alt = _ref5.alt,
|
|
981
|
+
isLight = _ref5.isLight,
|
|
982
|
+
sizeVariant = _ref5.sizeVariant;
|
|
983
|
+
|
|
984
|
+
if (src) {
|
|
985
|
+
return /*#__PURE__*/jsx(Image, {
|
|
986
|
+
source: {
|
|
987
|
+
uri: src
|
|
988
|
+
},
|
|
989
|
+
style: {
|
|
990
|
+
width: size,
|
|
991
|
+
height: size
|
|
992
|
+
},
|
|
993
|
+
accessibilityLabel: alt
|
|
994
|
+
});
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
if (firstname && lastname) {
|
|
998
|
+
return /*#__PURE__*/jsx(Typography.Text, {
|
|
999
|
+
base: sizeVariant === 'large' ? 'body-large' : 'body-small',
|
|
1000
|
+
variant: sizeVariant === 'large' ? 'bold' : 'regular',
|
|
1001
|
+
color: isLight ? 'black' : 'white',
|
|
1002
|
+
children: getInitials(firstname, lastname)
|
|
1003
|
+
});
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
return /*#__PURE__*/jsx(Icon, {
|
|
1007
|
+
icon: /*#__PURE__*/jsx(UserIcon, {}),
|
|
1008
|
+
color: isLight ? 'black' : 'white',
|
|
1009
|
+
size: size / 2
|
|
1010
|
+
});
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
function Avatar(_ref6) {
|
|
1014
|
+
var _ref6$size = _ref6.size,
|
|
1015
|
+
size = _ref6$size === void 0 ? 40 : _ref6$size,
|
|
1016
|
+
round = _ref6.round,
|
|
1017
|
+
light = _ref6.light,
|
|
1018
|
+
sizeVariant = _ref6.sizeVariant,
|
|
1019
|
+
props = _objectWithoutProperties(_ref6, _excluded$g);
|
|
1020
|
+
|
|
1021
|
+
return /*#__PURE__*/jsx(StyledAvatarView, {
|
|
1022
|
+
$size: size,
|
|
1023
|
+
$isRound: round,
|
|
1024
|
+
$isLight: light,
|
|
1025
|
+
$sizeVariant: sizeVariant,
|
|
1026
|
+
children: /*#__PURE__*/jsx(AvatarContent, _objectSpread({
|
|
1027
|
+
size: size,
|
|
1028
|
+
isLight: light,
|
|
1029
|
+
sizeVariant: sizeVariant
|
|
1030
|
+
}, props))
|
|
1031
|
+
});
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
var Container$3 = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
865
1035
|
displayName: "Card__Container",
|
|
866
1036
|
componentId: "kitt-universal__sc-1n9psug-0"
|
|
867
1037
|
})(["background-color:", ";padding:", "px;border-radius:", "px;border-width:", "px;border-color:", ";"], function (_ref) {
|
|
@@ -891,6 +1061,14 @@ function Card(_ref6) {
|
|
|
891
1061
|
});
|
|
892
1062
|
}
|
|
893
1063
|
|
|
1064
|
+
var useNativeAnimation = function () {
|
|
1065
|
+
return {
|
|
1066
|
+
onPressIn: function onPressIn() {},
|
|
1067
|
+
onPressOut: function onPressOut() {},
|
|
1068
|
+
backgroundStyles: undefined
|
|
1069
|
+
};
|
|
1070
|
+
};
|
|
1071
|
+
|
|
894
1072
|
function getCurrentTextColor(_ref) {
|
|
895
1073
|
var isDisabled = _ref.isDisabled,
|
|
896
1074
|
isSelected = _ref.isSelected,
|
|
@@ -909,7 +1087,7 @@ function getBorderRadius(defaultRadius, variant) {
|
|
|
909
1087
|
return defaultRadius;
|
|
910
1088
|
}
|
|
911
1089
|
|
|
912
|
-
var DisabledBorder = /*#__PURE__*/styled(View$1).withConfig({
|
|
1090
|
+
var DisabledBorder = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
913
1091
|
displayName: "ChoiceItem__DisabledBorder",
|
|
914
1092
|
componentId: "kitt-universal__sc-wuv3y6-0"
|
|
915
1093
|
})(["border-radius:", "px;", ";"], function (_ref2) {
|
|
@@ -923,7 +1101,7 @@ var DisabledBorder = /*#__PURE__*/styled(View$1).withConfig({
|
|
|
923
1101
|
color = _theme$kitt$choices$i.color;
|
|
924
1102
|
return css(["border:", "px solid ", ";"], width, color);
|
|
925
1103
|
});
|
|
926
|
-
var ChoiceItemView = /*#__PURE__*/styled(
|
|
1104
|
+
var ChoiceItemView = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
927
1105
|
displayName: "ChoiceItem__ChoiceItemView",
|
|
928
1106
|
componentId: "kitt-universal__sc-wuv3y6-1"
|
|
929
1107
|
})(["position:relative;border-radius:", "px;background-color:", ";", ";", ""], function (_ref4) {
|
|
@@ -979,73 +1157,10 @@ function ChoiceItem(_ref8) {
|
|
|
979
1157
|
onChange = _ref8.onChange,
|
|
980
1158
|
onBlur = _ref8.onBlur,
|
|
981
1159
|
onFocus = _ref8.onFocus;
|
|
982
|
-
var theme = /*#__PURE__*/useTheme();
|
|
983
|
-
var pressed = useSharedValue(Boolean(isPressedInternal));
|
|
984
|
-
var progress = useDerivedValue(function () {
|
|
985
|
-
var _f = function () {
|
|
986
|
-
return withTiming(pressed.value ? 1 : 0, {
|
|
987
|
-
duration: theme.kitt.choices.item.transition.duration
|
|
988
|
-
});
|
|
989
|
-
};
|
|
990
|
-
|
|
991
|
-
_f._closure = {
|
|
992
|
-
withTiming: withTiming,
|
|
993
|
-
pressed: pressed,
|
|
994
|
-
theme: {
|
|
995
|
-
kitt: {
|
|
996
|
-
choices: {
|
|
997
|
-
item: {
|
|
998
|
-
transition: {
|
|
999
|
-
duration: theme.kitt.choices.item.transition.duration
|
|
1000
|
-
}
|
|
1001
|
-
}
|
|
1002
|
-
}
|
|
1003
|
-
}
|
|
1004
|
-
}
|
|
1005
|
-
};
|
|
1006
|
-
_f.asString = "function _f(){const{withTiming,pressed,theme}=jsThis._closure;{return withTiming(pressed.value?1:0,{duration:theme.kitt.choices.item.transition.duration});}}";
|
|
1007
|
-
_f.__workletHash = 1120030177160;
|
|
1008
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/Choices/ChoiceItem.tsx (180:35)";
|
|
1009
|
-
return _f;
|
|
1010
|
-
}());
|
|
1011
|
-
useAnimatedStyle(function () {
|
|
1012
|
-
var _f = function () {
|
|
1013
|
-
var _theme$kitt$choices$i5 = theme.kitt.choices.item.backgroundColor,
|
|
1014
|
-
defaultBg = _theme$kitt$choices$i5["default"],
|
|
1015
|
-
pressedBg = _theme$kitt$choices$i5.pressed,
|
|
1016
|
-
selectedBg = _theme$kitt$choices$i5.selected,
|
|
1017
|
-
disabledBg = _theme$kitt$choices$i5.disabled;
|
|
1018
|
-
if (disabled) return {
|
|
1019
|
-
backgroundColor: disabledBg
|
|
1020
|
-
};
|
|
1021
|
-
if (selected) return {
|
|
1022
|
-
backgroundColor: selectedBg
|
|
1023
|
-
};
|
|
1024
|
-
return {
|
|
1025
|
-
backgroundColor: interpolateColor(progress.value, [0, 1], [defaultBg, pressedBg])
|
|
1026
|
-
};
|
|
1027
|
-
};
|
|
1028
1160
|
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
choices: {
|
|
1033
|
-
item: {
|
|
1034
|
-
backgroundColor: theme.kitt.choices.item.backgroundColor
|
|
1035
|
-
}
|
|
1036
|
-
}
|
|
1037
|
-
}
|
|
1038
|
-
},
|
|
1039
|
-
disabled: disabled,
|
|
1040
|
-
selected: selected,
|
|
1041
|
-
interpolateColor: interpolateColor,
|
|
1042
|
-
progress: progress
|
|
1043
|
-
};
|
|
1044
|
-
_f.asString = "function _f(){const{theme,disabled,selected,interpolateColor,progress}=jsThis._closure;{const{default:defaultBg,pressed:pressedBg,selected:selectedBg,disabled:disabledBg}=theme.kitt.choices.item.backgroundColor;if(disabled)return{backgroundColor:disabledBg};if(selected)return{backgroundColor:selectedBg};return{backgroundColor:interpolateColor(progress.value,[0,1],[defaultBg,pressedBg])};}}";
|
|
1045
|
-
_f.__workletHash = 15506726129309;
|
|
1046
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/Choices/ChoiceItem.tsx (184:44)";
|
|
1047
|
-
return _f;
|
|
1048
|
-
}());
|
|
1161
|
+
var _useNativeAnimation = useNativeAnimation(),
|
|
1162
|
+
onPressIn = _useNativeAnimation.onPressIn,
|
|
1163
|
+
onPressOut = _useNativeAnimation.onPressOut;
|
|
1049
1164
|
|
|
1050
1165
|
var handleChange = function () {
|
|
1051
1166
|
if (!onChange) return; // Checkbox can be toggled
|
|
@@ -1058,7 +1173,7 @@ function ChoiceItem(_ref8) {
|
|
|
1058
1173
|
onChange(value);
|
|
1059
1174
|
};
|
|
1060
1175
|
|
|
1061
|
-
return /*#__PURE__*/jsx(Pressable
|
|
1176
|
+
return /*#__PURE__*/jsx(Pressable, {
|
|
1062
1177
|
disabled: disabled,
|
|
1063
1178
|
accessibilityRole: type,
|
|
1064
1179
|
accessibilityState: {
|
|
@@ -1072,12 +1187,8 @@ function ChoiceItem(_ref8) {
|
|
|
1072
1187
|
handleChange();
|
|
1073
1188
|
if (onBlur) onBlur(e);
|
|
1074
1189
|
},
|
|
1075
|
-
onPressIn:
|
|
1076
|
-
|
|
1077
|
-
},
|
|
1078
|
-
onPressOut: function onPressOut() {
|
|
1079
|
-
pressed.value = false;
|
|
1080
|
-
},
|
|
1190
|
+
onPressIn: onPressIn,
|
|
1191
|
+
onPressOut: onPressOut,
|
|
1081
1192
|
children: function children(_ref9) {
|
|
1082
1193
|
var isHovered = _ref9.isHovered,
|
|
1083
1194
|
isPressed = _ref9.isPressed;
|
|
@@ -1105,7 +1216,7 @@ function ChoiceItem(_ref8) {
|
|
|
1105
1216
|
});
|
|
1106
1217
|
}
|
|
1107
1218
|
|
|
1108
|
-
var ChoiceItemContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
1219
|
+
var ChoiceItemContainer = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
1109
1220
|
displayName: "ChoiceItemContainer",
|
|
1110
1221
|
componentId: "kitt-universal__sc-17uuimx-0"
|
|
1111
1222
|
})(["", ""], function (_ref) {
|
|
@@ -1130,7 +1241,7 @@ function ChoicesContainer(_ref) {
|
|
|
1130
1241
|
props = _objectWithoutProperties(_ref, _excluded$f);
|
|
1131
1242
|
|
|
1132
1243
|
if (direction === 'row') {
|
|
1133
|
-
return /*#__PURE__*/jsx(ScrollView$
|
|
1244
|
+
return /*#__PURE__*/jsx(ScrollView$2, _objectSpread({
|
|
1134
1245
|
horizontal: true
|
|
1135
1246
|
}, props));
|
|
1136
1247
|
}
|
|
@@ -1769,8 +1880,14 @@ var input = {
|
|
|
1769
1880
|
};
|
|
1770
1881
|
|
|
1771
1882
|
var inputField = {
|
|
1883
|
+
containerPaddingTop: 5,
|
|
1884
|
+
containerPaddingBottom: 10,
|
|
1885
|
+
feedbackPaddingTop: {
|
|
1886
|
+
base: 5,
|
|
1887
|
+
small: 10
|
|
1888
|
+
},
|
|
1772
1889
|
labelContainerPaddingBottom: 5,
|
|
1773
|
-
|
|
1890
|
+
labelFeedbackMarginLeft: 6
|
|
1774
1891
|
};
|
|
1775
1892
|
|
|
1776
1893
|
var inputTag = {
|
|
@@ -2027,28 +2144,6 @@ var theme = {
|
|
|
2027
2144
|
navigationModal: navigationModal
|
|
2028
2145
|
};
|
|
2029
2146
|
|
|
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
2147
|
function createWindowSizeHelper(dimensions) {
|
|
2053
2148
|
return {
|
|
2054
2149
|
matchWindowSize: function matchWindowSize$1(options) {
|
|
@@ -2100,11 +2195,11 @@ function useKittTheme() {
|
|
|
2100
2195
|
}, [dimensions]);
|
|
2101
2196
|
}
|
|
2102
2197
|
|
|
2103
|
-
var CheckboxAndLabelPressableWrapper = /*#__PURE__*/styled(Pressable$1).withConfig({
|
|
2198
|
+
var CheckboxAndLabelPressableWrapper = /*#__PURE__*/styled$1(Pressable$1).withConfig({
|
|
2104
2199
|
displayName: "Checkbox__CheckboxAndLabelPressableWrapper",
|
|
2105
2200
|
componentId: "kitt-universal__sc-1sav1n6-0"
|
|
2106
2201
|
})(["display:flex;flex-direction:row;"]);
|
|
2107
|
-
var CheckboxContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
2202
|
+
var CheckboxContainer = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
2108
2203
|
displayName: "Checkbox__CheckboxContainer",
|
|
2109
2204
|
componentId: "kitt-universal__sc-1sav1n6-1"
|
|
2110
2205
|
})(["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 +2304,11 @@ var styledTextInputMixin = /*#__PURE__*/css(["background-color:", ";border-width
|
|
|
2209
2304
|
return theme.kitt.typography.types.bodies.fontFamily.regular;
|
|
2210
2305
|
});
|
|
2211
2306
|
|
|
2212
|
-
var StyledTypographyText = /*#__PURE__*/styled(Typography.Text).withConfig({
|
|
2307
|
+
var StyledTypographyText = /*#__PURE__*/styled$1(Typography.Text).withConfig({
|
|
2213
2308
|
displayName: "DatePickerInputPart__StyledTypographyText",
|
|
2214
2309
|
componentId: "kitt-universal__sc-11fmlmi-0"
|
|
2215
2310
|
})(["text-align:center;"]);
|
|
2216
|
-
var ViewInput = /*#__PURE__*/styled(View$1).withConfig({
|
|
2311
|
+
var ViewInput = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
2217
2312
|
displayName: "DatePickerInputPart__ViewInput",
|
|
2218
2313
|
componentId: "kitt-universal__sc-11fmlmi-1"
|
|
2219
2314
|
})(["", " padding:", ";min-height:", "px;min-width:", ";"], styledTextInputMixin, function (_ref) {
|
|
@@ -2252,7 +2347,7 @@ function prefixWithZero(value) {
|
|
|
2252
2347
|
return "".concat(value).padStart(2, '0');
|
|
2253
2348
|
}
|
|
2254
2349
|
|
|
2255
|
-
var PartContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
2350
|
+
var PartContainer = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
2256
2351
|
displayName: "DatePickerInputs__PartContainer",
|
|
2257
2352
|
componentId: "kitt-universal__sc-j9hin5-0"
|
|
2258
2353
|
})(["margin-right:", ";", ";"], function (_ref) {
|
|
@@ -2263,7 +2358,7 @@ var PartContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
|
2263
2358
|
var $isStretch = _ref2.$isStretch;
|
|
2264
2359
|
return $isStretch ? css(["flex:0.33;flex-grow:1;"]) : undefined;
|
|
2265
2360
|
});
|
|
2266
|
-
var DatePickerPressable = /*#__PURE__*/styled(Pressable$1).withConfig({
|
|
2361
|
+
var DatePickerPressable = /*#__PURE__*/styled$1(Pressable$1).withConfig({
|
|
2267
2362
|
displayName: "DatePickerInputs__DatePickerPressable",
|
|
2268
2363
|
componentId: "kitt-universal__sc-j9hin5-1"
|
|
2269
2364
|
})(["display:flex;flex-direction:row;", ";"], function (_ref3) {
|
|
@@ -2341,7 +2436,7 @@ function DatePicker(_ref) {
|
|
|
2341
2436
|
}, props));
|
|
2342
2437
|
}
|
|
2343
2438
|
|
|
2344
|
-
var InputTextContainer = withTheme( /*#__PURE__*/styled
|
|
2439
|
+
var InputTextContainer = withTheme( /*#__PURE__*/styled("div")({
|
|
2345
2440
|
name: "InputTextContainer",
|
|
2346
2441
|
"class": "kitt-u_InputTextContainer_i1encr9g",
|
|
2347
2442
|
vars: {
|
|
@@ -2373,7 +2468,7 @@ var InputTextContainer = withTheme( /*#__PURE__*/styled$1("div")({
|
|
|
2373
2468
|
}));
|
|
2374
2469
|
|
|
2375
2470
|
var _excluded$b = ["id", "right", "minHeight", "state", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "keyboardType", "multiline", "onSubmitEditing", "onFocus", "onBlur"];
|
|
2376
|
-
var StyledTextInput = /*#__PURE__*/styled(TextInput).withConfig({
|
|
2471
|
+
var StyledTextInput = /*#__PURE__*/styled$1(TextInput).withConfig({
|
|
2377
2472
|
displayName: "InputText__StyledTextInput",
|
|
2378
2473
|
componentId: "kitt-universal__sc-uke279-0"
|
|
2379
2474
|
})(["", " padding:", ";line-height:", ";width:100%;min-height:", "px;"], styledTextInputMixin, function (_ref) {
|
|
@@ -2392,7 +2487,7 @@ var StyledTextInput = /*#__PURE__*/styled(TextInput).withConfig({
|
|
|
2392
2487
|
$minHeight = _ref3$$minHeight === void 0 ? theme.kitt.forms.input.minHeight : _ref3$$minHeight;
|
|
2393
2488
|
return $minHeight;
|
|
2394
2489
|
});
|
|
2395
|
-
var RightInputContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
2490
|
+
var RightInputContainer = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
2396
2491
|
displayName: "InputText__RightInputContainer",
|
|
2397
2492
|
componentId: "kitt-universal__sc-uke279-1"
|
|
2398
2493
|
})(["position:absolute;right:0;top:0;bottom:0;justify-content:center;padding:10px;"]);
|
|
@@ -2495,44 +2590,25 @@ function InputFeedback(_ref) {
|
|
|
2495
2590
|
});
|
|
2496
2591
|
}
|
|
2497
2592
|
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
componentId: "kitt-universal__sc-13fkixs-2"
|
|
2514
|
-
})(["flex-direction:row;align-items:center;padding-bottom:", "px;"], function (_ref2) {
|
|
2515
|
-
var theme = _ref2.theme;
|
|
2516
|
-
return theme.kitt.forms.inputField.labelContainerPaddingBottom;
|
|
2517
|
-
});
|
|
2518
|
-
var LabelContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
2519
|
-
displayName: "InputField__LabelContainer",
|
|
2520
|
-
componentId: "kitt-universal__sc-13fkixs-3"
|
|
2521
|
-
})(["margin-right:", "px;"], function (_ref3) {
|
|
2522
|
-
var theme = _ref3.theme;
|
|
2523
|
-
return theme.kitt.forms.inputField.iconMarginLeft;
|
|
2524
|
-
});
|
|
2525
|
-
function InputField(_ref4) {
|
|
2526
|
-
var label = _ref4.label,
|
|
2527
|
-
labelFeedback = _ref4.labelFeedback,
|
|
2528
|
-
input = _ref4.input,
|
|
2529
|
-
feedback = _ref4.feedback;
|
|
2530
|
-
return /*#__PURE__*/jsxs(FieldContainer, {
|
|
2531
|
-
children: [label ? /*#__PURE__*/jsxs(FieldLabelContainer, {
|
|
2532
|
-
children: [/*#__PURE__*/jsx(LabelContainer, {
|
|
2593
|
+
function InputField(_ref) {
|
|
2594
|
+
var label = _ref.label,
|
|
2595
|
+
labelFeedback = _ref.labelFeedback,
|
|
2596
|
+
input = _ref.input,
|
|
2597
|
+
feedback = _ref.feedback;
|
|
2598
|
+
var theme = /*#__PURE__*/useTheme();
|
|
2599
|
+
return /*#__PURE__*/jsxs(View, {
|
|
2600
|
+
paddingTop: theme.kitt.forms.inputField.containerPaddingTop,
|
|
2601
|
+
paddingBottom: theme.kitt.forms.inputField.containerPaddingBottom,
|
|
2602
|
+
children: [label ? /*#__PURE__*/jsxs(View, {
|
|
2603
|
+
flexDirection: "row",
|
|
2604
|
+
alignItems: "center",
|
|
2605
|
+
paddingBottom: theme.kitt.forms.inputField.labelContainerPaddingBottom,
|
|
2606
|
+
children: [/*#__PURE__*/jsx(View, {
|
|
2607
|
+
marginRight: theme.kitt.forms.inputField.labelFeedbackMarginLeft,
|
|
2533
2608
|
children: label
|
|
2534
2609
|
}), labelFeedback]
|
|
2535
|
-
}) : null, input, feedback ? /*#__PURE__*/jsx(
|
|
2610
|
+
}) : null, input, feedback ? /*#__PURE__*/jsx(View, {
|
|
2611
|
+
paddingTop: theme.kitt.forms.inputField.feedbackPaddingTop,
|
|
2536
2612
|
children: feedback
|
|
2537
2613
|
}) : null]
|
|
2538
2614
|
});
|
|
@@ -2615,7 +2691,7 @@ var getTypographyColor = function (type) {
|
|
|
2615
2691
|
return type ? 'white' : 'black';
|
|
2616
2692
|
};
|
|
2617
2693
|
|
|
2618
|
-
var InputTagContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
2694
|
+
var InputTagContainer = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
2619
2695
|
displayName: "InputTag__InputTagContainer",
|
|
2620
2696
|
componentId: "kitt-universal__sc-1511dsf-0"
|
|
2621
2697
|
})(["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 +2714,7 @@ var InputTagContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
|
2638
2714
|
var theme = _ref3.theme;
|
|
2639
2715
|
return theme.kitt.forms.inputTag.borderRadius;
|
|
2640
2716
|
});
|
|
2641
|
-
var IconContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
2717
|
+
var IconContainer = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
2642
2718
|
displayName: "InputTag__IconContainer",
|
|
2643
2719
|
componentId: "kitt-universal__sc-1511dsf-1"
|
|
2644
2720
|
})(["margin-right:", "px;"], function (_ref4) {
|
|
@@ -2679,7 +2755,7 @@ function Label(_ref) {
|
|
|
2679
2755
|
});
|
|
2680
2756
|
}
|
|
2681
2757
|
|
|
2682
|
-
var OuterRadio = /*#__PURE__*/styled(View$1).withConfig({
|
|
2758
|
+
var OuterRadio = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
2683
2759
|
displayName: "Radio__OuterRadio",
|
|
2684
2760
|
componentId: "kitt-universal__sc-1mdgr2o-0"
|
|
2685
2761
|
})(["background-color:", ";width:", "px;height:", "px;border-radius:", "px;border-width:", "px;border-color:", ";"], function (_ref) {
|
|
@@ -2703,7 +2779,7 @@ var OuterRadio = /*#__PURE__*/styled(View$1).withConfig({
|
|
|
2703
2779
|
disabled = _ref6.disabled;
|
|
2704
2780
|
return theme.kitt.forms.radio[disabled ? 'disabled' : 'unchecked'].borderColor;
|
|
2705
2781
|
});
|
|
2706
|
-
var SelectedOuterRadio = /*#__PURE__*/styled(View$1).withConfig({
|
|
2782
|
+
var SelectedOuterRadio = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
2707
2783
|
displayName: "Radio__SelectedOuterRadio",
|
|
2708
2784
|
componentId: "kitt-universal__sc-1mdgr2o-1"
|
|
2709
2785
|
})(["background-color:", ";width:", "px;height:", "px;border-radius:", "px;justify-content:center;align-items:center;"], function (_ref7) {
|
|
@@ -2719,7 +2795,7 @@ var SelectedOuterRadio = /*#__PURE__*/styled(View$1).withConfig({
|
|
|
2719
2795
|
var theme = _ref10.theme;
|
|
2720
2796
|
return theme.kitt.forms.radio.size / 2;
|
|
2721
2797
|
});
|
|
2722
|
-
var SelectedInnerRadio = /*#__PURE__*/styled(View$1).withConfig({
|
|
2798
|
+
var SelectedInnerRadio = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
2723
2799
|
displayName: "Radio__SelectedInnerRadio",
|
|
2724
2800
|
componentId: "kitt-universal__sc-1mdgr2o-2"
|
|
2725
2801
|
})(["background-color:", ";width:", "px;height:", "px;border-radius:", "px;"], function (_ref11) {
|
|
@@ -2735,11 +2811,11 @@ var SelectedInnerRadio = /*#__PURE__*/styled(View$1).withConfig({
|
|
|
2735
2811
|
var theme = _ref14.theme;
|
|
2736
2812
|
return theme.kitt.forms.radio.checked.innerSize / 2;
|
|
2737
2813
|
});
|
|
2738
|
-
var Container$2 = /*#__PURE__*/styled(Pressable$1).withConfig({
|
|
2814
|
+
var Container$2 = /*#__PURE__*/styled$1(Pressable$1).withConfig({
|
|
2739
2815
|
displayName: "Radio__Container",
|
|
2740
2816
|
componentId: "kitt-universal__sc-1mdgr2o-3"
|
|
2741
2817
|
})(["flex-direction:row;align-items:center;"]);
|
|
2742
|
-
var Text = /*#__PURE__*/styled(Typography.Text).withConfig({
|
|
2818
|
+
var Text = /*#__PURE__*/styled$1(Typography.Text).withConfig({
|
|
2743
2819
|
displayName: "Radio__Text",
|
|
2744
2820
|
componentId: "kitt-universal__sc-1mdgr2o-4"
|
|
2745
2821
|
})(["margin-left:", "px;"], function (_ref15) {
|
|
@@ -2786,7 +2862,7 @@ function TextArea(_ref) {
|
|
|
2786
2862
|
}, props));
|
|
2787
2863
|
}
|
|
2788
2864
|
|
|
2789
|
-
var Body$1 = /*#__PURE__*/styled(View$1).withConfig({
|
|
2865
|
+
var Body$1 = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
2790
2866
|
displayName: "Body",
|
|
2791
2867
|
componentId: "kitt-universal__sc-1ofncfn-0"
|
|
2792
2868
|
})(["", " background-color:", ";flex:1;"], function (_ref) {
|
|
@@ -2805,7 +2881,7 @@ function FullScreenModalBody(_ref3) {
|
|
|
2805
2881
|
});
|
|
2806
2882
|
}
|
|
2807
2883
|
|
|
2808
|
-
var SideContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
2884
|
+
var SideContainer = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
2809
2885
|
displayName: "Header__SideContainer",
|
|
2810
2886
|
componentId: "kitt-universal__sc-dfmxi1-0"
|
|
2811
2887
|
})(["", ""], function (_ref) {
|
|
@@ -2825,7 +2901,7 @@ function getHeaderHorizontalMediumPadding(spacing) {
|
|
|
2825
2901
|
return spacing * 6;
|
|
2826
2902
|
}
|
|
2827
2903
|
|
|
2828
|
-
var Header$1 = /*#__PURE__*/styled(View$1).withConfig({
|
|
2904
|
+
var Header$1 = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
2829
2905
|
displayName: "Header",
|
|
2830
2906
|
componentId: "kitt-universal__sc-dfmxi1-1"
|
|
2831
2907
|
})(["", ";border-bottom-color:", ";border-bottom-width:1px;flex-direction:row;align-items:center;"], function (_ref2) {
|
|
@@ -2843,7 +2919,7 @@ var Header$1 = /*#__PURE__*/styled(View$1).withConfig({
|
|
|
2843
2919
|
var theme = _ref3.theme;
|
|
2844
2920
|
return theme.kitt.fullScreenModal.header.borderColor;
|
|
2845
2921
|
});
|
|
2846
|
-
var HeaderContent = /*#__PURE__*/styled(View$1).withConfig({
|
|
2922
|
+
var HeaderContent = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
2847
2923
|
displayName: "Header__HeaderContent",
|
|
2848
2924
|
componentId: "kitt-universal__sc-dfmxi1-2"
|
|
2849
2925
|
})(["", ";", ";justify-content:center;align-items:center;"], function (_ref4) {
|
|
@@ -2933,7 +3009,7 @@ function FullScreenModalHeader(_ref6) {
|
|
|
2933
3009
|
});
|
|
2934
3010
|
}
|
|
2935
3011
|
|
|
2936
|
-
var Container$1 = /*#__PURE__*/styled(View$1).withConfig({
|
|
3012
|
+
var Container$1 = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
2937
3013
|
displayName: "FullScreenModal__Container",
|
|
2938
3014
|
componentId: "kitt-universal__sc-11qpbe3-0"
|
|
2939
3015
|
})(["flex:1;background-color:", ";"], function (_ref) {
|
|
@@ -2949,21 +3025,6 @@ function FullScreenModal(_ref2) {
|
|
|
2949
3025
|
FullScreenModal.Header = FullScreenModalHeader;
|
|
2950
3026
|
FullScreenModal.Body = FullScreenModalBody;
|
|
2951
3027
|
|
|
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
3028
|
var _excluded$9 = ["as", "children"];
|
|
2968
3029
|
function StyleWebWrapper(_ref) {
|
|
2969
3030
|
var as = _ref.as,
|
|
@@ -2977,7 +3038,7 @@ function StyleWebWrapper(_ref) {
|
|
|
2977
3038
|
}
|
|
2978
3039
|
|
|
2979
3040
|
var _excluded$8 = ["color", "disabled"];
|
|
2980
|
-
var PressableIconButtonWebWrapper = withTheme( /*#__PURE__*/styled
|
|
3041
|
+
var PressableIconButtonWebWrapper = withTheme( /*#__PURE__*/styled("div")({
|
|
2981
3042
|
name: "PressableIconButtonWebWrapper",
|
|
2982
3043
|
"class": "kitt-u_PressableIconButtonWebWrapper_p1nlccvg",
|
|
2983
3044
|
vars: {
|
|
@@ -3009,7 +3070,7 @@ var PressableIconButtonWebWrapper = withTheme( /*#__PURE__*/styled$1("div")({
|
|
|
3009
3070
|
}]
|
|
3010
3071
|
}
|
|
3011
3072
|
}));
|
|
3012
|
-
var StyledPressableIconButton = /*#__PURE__*/styled(Pressable$1).withConfig({
|
|
3073
|
+
var StyledPressableIconButton = /*#__PURE__*/styled$1(Pressable$1).withConfig({
|
|
3013
3074
|
displayName: "PressableIconButton__StyledPressableIconButton",
|
|
3014
3075
|
componentId: "kitt-universal__sc-1m6jo3s-0"
|
|
3015
3076
|
})(["border-radius:", "px;width:", "px;height:", "px;align-items:center;justify-content:center;position:relative;background-color:transparent;", ";"], function (_ref5) {
|
|
@@ -3062,7 +3123,7 @@ function PressableAnimatedContainer(_ref) {
|
|
|
3062
3123
|
});
|
|
3063
3124
|
}
|
|
3064
3125
|
|
|
3065
|
-
var IconButtonContentBorder = /*#__PURE__*/styled(View$1).withConfig({
|
|
3126
|
+
var IconButtonContentBorder = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3066
3127
|
displayName: "IconButton__IconButtonContentBorder",
|
|
3067
3128
|
componentId: "kitt-universal__sc-swelbf-0"
|
|
3068
3129
|
})(["border:", ";border-color:", ";width:", "px;height:", "px;align-items:center;justify-content:center;border-radius:", "px;"], function (_ref) {
|
|
@@ -3120,7 +3181,7 @@ function IconButton(_ref7) {
|
|
|
3120
3181
|
}
|
|
3121
3182
|
|
|
3122
3183
|
var _excluded$7 = ["children"];
|
|
3123
|
-
var ContentView$1 = /*#__PURE__*/styled(View$1).withConfig({
|
|
3184
|
+
var ContentView$1 = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3124
3185
|
displayName: "ListItemContent__ContentView",
|
|
3125
3186
|
componentId: "kitt-universal__sc-57q0u9-0"
|
|
3126
3187
|
})(["flex:1 0 0%;align-self:center;"]);
|
|
@@ -3135,7 +3196,7 @@ function ListItemContent(_ref) {
|
|
|
3135
3196
|
|
|
3136
3197
|
var _excluded$6 = ["children", "side"],
|
|
3137
3198
|
_excluded2$1 = ["children", "align"];
|
|
3138
|
-
var SideContainerView = /*#__PURE__*/styled(View$1).withConfig({
|
|
3199
|
+
var SideContainerView = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3139
3200
|
displayName: "ListItemSideContent__SideContainerView",
|
|
3140
3201
|
componentId: "kitt-universal__sc-1vajiw-0"
|
|
3141
3202
|
})(["flex-direction:row;margin-left:", ";margin-right:", ";"], function (_ref) {
|
|
@@ -3160,7 +3221,7 @@ function ListItemSideContainer(_ref3) {
|
|
|
3160
3221
|
children: children
|
|
3161
3222
|
}));
|
|
3162
3223
|
}
|
|
3163
|
-
var SideContentView = /*#__PURE__*/styled(View$1).withConfig({
|
|
3224
|
+
var SideContentView = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3164
3225
|
displayName: "ListItemSideContent__SideContentView",
|
|
3165
3226
|
componentId: "kitt-universal__sc-1vajiw-1"
|
|
3166
3227
|
})(["align-self:", ";"], function (_ref4) {
|
|
@@ -3181,7 +3242,7 @@ function ListItemSideContent(_ref5) {
|
|
|
3181
3242
|
}
|
|
3182
3243
|
|
|
3183
3244
|
var _excluded$5 = ["children", "withPadding", "borders", "left", "right", "onPress"];
|
|
3184
|
-
var ContainerView = /*#__PURE__*/styled(View$1).withConfig({
|
|
3245
|
+
var ContainerView = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3185
3246
|
displayName: "ListItem__ContainerView",
|
|
3186
3247
|
componentId: "kitt-universal__sc-2afp9s-0"
|
|
3187
3248
|
})(["flex-direction:row;padding:", ";", ";border-color:", ";background-color:", ";"], function (_ref) {
|
|
@@ -3249,14 +3310,6 @@ ListItem.Content = ListItemContent;
|
|
|
3249
3310
|
ListItem.SideContent = ListItemSideContent;
|
|
3250
3311
|
ListItem.SideContainer = ListItemSideContainer;
|
|
3251
3312
|
|
|
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
3313
|
function IconContent(_ref) {
|
|
3261
3314
|
var type = _ref.type,
|
|
3262
3315
|
color = _ref.color;
|
|
@@ -3309,7 +3362,7 @@ var getIconButtonColor = function (messageType) {
|
|
|
3309
3362
|
}
|
|
3310
3363
|
};
|
|
3311
3364
|
|
|
3312
|
-
var StyledMessageContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
3365
|
+
var StyledMessageContainer = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3313
3366
|
displayName: "BaseMessage__StyledMessageContainer",
|
|
3314
3367
|
componentId: "kitt-universal__sc-eepeiz-0"
|
|
3315
3368
|
})(["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 +3379,7 @@ var StyledMessageContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
|
3326
3379
|
$type = _ref3.$type;
|
|
3327
3380
|
return theme.kitt.feedbackMessage[$type].backgroundColor;
|
|
3328
3381
|
});
|
|
3329
|
-
var StyledDismissWrapper = /*#__PURE__*/styled(View$1).withConfig({
|
|
3382
|
+
var StyledDismissWrapper = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3330
3383
|
displayName: "BaseMessage__StyledDismissWrapper",
|
|
3331
3384
|
componentId: "kitt-universal__sc-eepeiz-1"
|
|
3332
3385
|
})(["align-items:center;align-items:flex-start;margin:", ";"], function (_ref4) {
|
|
@@ -3334,7 +3387,7 @@ var StyledDismissWrapper = /*#__PURE__*/styled(View$1).withConfig({
|
|
|
3334
3387
|
var spacing = theme.kitt.spacing;
|
|
3335
3388
|
return "".concat(spacing * 2.5, "px ").concat(spacing * 2, "px 0 ").concat(spacing * 5, "px");
|
|
3336
3389
|
});
|
|
3337
|
-
var StyledIconContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
3390
|
+
var StyledIconContainer = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3338
3391
|
displayName: "BaseMessage__StyledIconContainer",
|
|
3339
3392
|
componentId: "kitt-universal__sc-eepeiz-2"
|
|
3340
3393
|
})(["margin:", ";"], function (_ref5) {
|
|
@@ -3342,14 +3395,14 @@ var StyledIconContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
|
3342
3395
|
var spacing = theme.kitt.spacing;
|
|
3343
3396
|
return "".concat(spacing, "px ").concat(spacing * 5, "px 0 0");
|
|
3344
3397
|
});
|
|
3345
|
-
var StyledTextContent = /*#__PURE__*/styled(Typography.Text).withConfig({
|
|
3398
|
+
var StyledTextContent = /*#__PURE__*/styled$1(Typography.Text).withConfig({
|
|
3346
3399
|
displayName: "BaseMessage__StyledTextContent",
|
|
3347
3400
|
componentId: "kitt-universal__sc-eepeiz-3"
|
|
3348
3401
|
})(["flex:1;text-align:", ";"], function (_ref6) {
|
|
3349
3402
|
var $isCenteredText = _ref6.$isCenteredText;
|
|
3350
3403
|
return $isCenteredText ? 'center' : 'left';
|
|
3351
3404
|
});
|
|
3352
|
-
var StyledMessageContent = /*#__PURE__*/styled(View$1).withConfig({
|
|
3405
|
+
var StyledMessageContent = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3353
3406
|
displayName: "BaseMessage__StyledMessageContent",
|
|
3354
3407
|
componentId: "kitt-universal__sc-eepeiz-4"
|
|
3355
3408
|
})(["display:flex;flex-direction:row;flex-grow:1;align-self:center;align-items:flex-start;flex-shrink:1;padding:", ";"], function (_ref7) {
|
|
@@ -3414,7 +3467,7 @@ function Message(_ref) {
|
|
|
3414
3467
|
}
|
|
3415
3468
|
|
|
3416
3469
|
// 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({
|
|
3470
|
+
var OverlayPressable = /*#__PURE__*/styled$1(Pressable$1).withConfig({
|
|
3418
3471
|
displayName: "Overlay__OverlayPressable",
|
|
3419
3472
|
componentId: "kitt-universal__sc-1cz1gbr-0"
|
|
3420
3473
|
})(function (_ref) {
|
|
@@ -3431,7 +3484,7 @@ function Overlay(_ref2) {
|
|
|
3431
3484
|
});
|
|
3432
3485
|
}
|
|
3433
3486
|
|
|
3434
|
-
var BodyView = /*#__PURE__*/styled(View$1).withConfig({
|
|
3487
|
+
var BodyView = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3435
3488
|
displayName: "Body__BodyView",
|
|
3436
3489
|
componentId: "kitt-universal__sc-17fwpo4-0"
|
|
3437
3490
|
})(["padding:", "px ", "px;"], function (_ref) {
|
|
@@ -3443,14 +3496,14 @@ var BodyView = /*#__PURE__*/styled(View$1).withConfig({
|
|
|
3443
3496
|
});
|
|
3444
3497
|
function ModalBody(_ref3) {
|
|
3445
3498
|
var children = _ref3.children;
|
|
3446
|
-
return /*#__PURE__*/jsx(ScrollView$
|
|
3499
|
+
return /*#__PURE__*/jsx(ScrollView$2, {
|
|
3447
3500
|
children: /*#__PURE__*/jsx(BodyView, {
|
|
3448
3501
|
children: children
|
|
3449
3502
|
})
|
|
3450
3503
|
});
|
|
3451
3504
|
}
|
|
3452
3505
|
|
|
3453
|
-
var FooterView = /*#__PURE__*/styled(View$1).withConfig({
|
|
3506
|
+
var FooterView = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3454
3507
|
displayName: "Footer__FooterView",
|
|
3455
3508
|
componentId: "kitt-universal__sc-1ujq2dc-0"
|
|
3456
3509
|
})(["flex:0 0 auto;padding:", "px;border-top-width:1px;border-top-color:", ";"], function (_ref) {
|
|
@@ -3469,7 +3522,7 @@ function ModalFooter(_ref3) {
|
|
|
3469
3522
|
|
|
3470
3523
|
var OnCloseContext$1 = /*#__PURE__*/createContext(function () {});
|
|
3471
3524
|
|
|
3472
|
-
var HeaderView = /*#__PURE__*/styled(View$1).withConfig({
|
|
3525
|
+
var HeaderView = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3473
3526
|
displayName: "Header__HeaderView",
|
|
3474
3527
|
componentId: "kitt-universal__sc-1iwabch-0"
|
|
3475
3528
|
})(["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 +3532,21 @@ var HeaderView = /*#__PURE__*/styled(View$1).withConfig({
|
|
|
3479
3532
|
var theme = _ref2.theme;
|
|
3480
3533
|
return theme.kitt.colors.separator;
|
|
3481
3534
|
});
|
|
3482
|
-
var LeftIconView = /*#__PURE__*/styled(View$1).withConfig({
|
|
3535
|
+
var LeftIconView = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3483
3536
|
displayName: "Header__LeftIconView",
|
|
3484
3537
|
componentId: "kitt-universal__sc-1iwabch-1"
|
|
3485
3538
|
})(["align-self:flex-start;margin-right:", "px;"], function (_ref3) {
|
|
3486
3539
|
var theme = _ref3.theme;
|
|
3487
3540
|
return theme.kitt.spacing * 2;
|
|
3488
3541
|
});
|
|
3489
|
-
var RightIconView = /*#__PURE__*/styled(View$1).withConfig({
|
|
3542
|
+
var RightIconView = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3490
3543
|
displayName: "Header__RightIconView",
|
|
3491
3544
|
componentId: "kitt-universal__sc-1iwabch-2"
|
|
3492
3545
|
})(["align-self:flex-start;margin-left:", "px;"], function (_ref4) {
|
|
3493
3546
|
var theme = _ref4.theme;
|
|
3494
3547
|
return theme.kitt.spacing * 2;
|
|
3495
3548
|
});
|
|
3496
|
-
var TitleView = /*#__PURE__*/styled(View$1).withConfig({
|
|
3549
|
+
var TitleView = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3497
3550
|
displayName: "Header__TitleView",
|
|
3498
3551
|
componentId: "kitt-universal__sc-1iwabch-3"
|
|
3499
3552
|
})(["padding-left:", "px;flex-shrink:1;"], function (_ref5) {
|
|
@@ -3522,7 +3575,7 @@ function ModalHeader(_ref6) {
|
|
|
3522
3575
|
});
|
|
3523
3576
|
}
|
|
3524
3577
|
|
|
3525
|
-
var ModalView = /*#__PURE__*/styled(View$1).withConfig({
|
|
3578
|
+
var ModalView = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3526
3579
|
displayName: "Modal__ModalView",
|
|
3527
3580
|
componentId: "kitt-universal__sc-1xy2w5u-0"
|
|
3528
3581
|
})(["top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:", "px ", "px;"], function (_ref) {
|
|
@@ -3532,7 +3585,7 @@ var ModalView = /*#__PURE__*/styled(View$1).withConfig({
|
|
|
3532
3585
|
var theme = _ref2.theme;
|
|
3533
3586
|
return theme.kitt.spacing * 4;
|
|
3534
3587
|
});
|
|
3535
|
-
var ContentView = /*#__PURE__*/styled(View$1).withConfig({
|
|
3588
|
+
var ContentView = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3536
3589
|
displayName: "Modal__ContentView",
|
|
3537
3590
|
componentId: "kitt-universal__sc-1xy2w5u-1"
|
|
3538
3591
|
})(["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 +3671,7 @@ function CloseButton(_ref) {
|
|
|
3618
3671
|
});
|
|
3619
3672
|
}
|
|
3620
3673
|
|
|
3621
|
-
var ModalBehaviourContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
3674
|
+
var ModalBehaviourContainer = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3622
3675
|
displayName: "ModalBehaviour__ModalBehaviourContainer",
|
|
3623
3676
|
componentId: "kitt-universal__sc-tj3606-0"
|
|
3624
3677
|
})(["", ""], function () {
|
|
@@ -3785,16 +3838,8 @@ function KittNativeBaseProvider(_ref) {
|
|
|
3785
3838
|
});
|
|
3786
3839
|
}
|
|
3787
3840
|
|
|
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
3841
|
var _excluded$4 = ["children"];
|
|
3797
|
-
var ViewWithPadding = /*#__PURE__*/styled(View$1).withConfig({
|
|
3842
|
+
var ViewWithPadding = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3798
3843
|
displayName: "ContentPadding__ViewWithPadding",
|
|
3799
3844
|
componentId: "kitt-universal__sc-1rprqcv-0"
|
|
3800
3845
|
})(["padding:", ";"], function (_ref) {
|
|
@@ -3811,7 +3856,7 @@ function ContentPadding(_ref2) {
|
|
|
3811
3856
|
}
|
|
3812
3857
|
|
|
3813
3858
|
var _excluded$3 = ["children", "shouldHandleBottomNotch", "style"];
|
|
3814
|
-
var StyledViewWithPadding = /*#__PURE__*/styled(ContentPadding).withConfig({
|
|
3859
|
+
var StyledViewWithPadding = /*#__PURE__*/styled$1(ContentPadding).withConfig({
|
|
3815
3860
|
displayName: "Body__StyledViewWithPadding",
|
|
3816
3861
|
componentId: "kitt-universal__sc-oc39vn-0"
|
|
3817
3862
|
})(["padding-top:", "px;padding-bottom:", "px;"], function (_ref) {
|
|
@@ -3839,7 +3884,7 @@ function Body(_ref3) {
|
|
|
3839
3884
|
}));
|
|
3840
3885
|
}
|
|
3841
3886
|
|
|
3842
|
-
var FooterContainer = /*#__PURE__*/styled(ContentPadding).withConfig({
|
|
3887
|
+
var FooterContainer = /*#__PURE__*/styled$1(ContentPadding).withConfig({
|
|
3843
3888
|
displayName: "Footer__FooterContainer",
|
|
3844
3889
|
componentId: "kitt-universal__sc-1yjprfg-0"
|
|
3845
3890
|
})(["padding-top:", "px;padding-bottom:", "px;", ";"], function (_ref) {
|
|
@@ -3877,7 +3922,7 @@ function Footer(_ref5) {
|
|
|
3877
3922
|
});
|
|
3878
3923
|
}
|
|
3879
3924
|
|
|
3880
|
-
var HeaderContainer = /*#__PURE__*/styled(ContentPadding).withConfig({
|
|
3925
|
+
var HeaderContainer = /*#__PURE__*/styled$1(ContentPadding).withConfig({
|
|
3881
3926
|
displayName: "Header__HeaderContainer",
|
|
3882
3927
|
componentId: "kitt-universal__sc-1g7sbq-0"
|
|
3883
3928
|
})(["height:", "px;width:100%;justify-content:center;background-color:", ";padding-right:", "px;padding-left:", "px;", ";"], function (_ref) {
|
|
@@ -3904,7 +3949,7 @@ var HeaderContainer = /*#__PURE__*/styled(ContentPadding).withConfig({
|
|
|
3904
3949
|
return theme.kitt.colors.separator;
|
|
3905
3950
|
});
|
|
3906
3951
|
});
|
|
3907
|
-
var Row = /*#__PURE__*/styled(View$1).withConfig({
|
|
3952
|
+
var Row = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3908
3953
|
displayName: "Header__Row",
|
|
3909
3954
|
componentId: "kitt-universal__sc-1g7sbq-1"
|
|
3910
3955
|
})(["flex-direction:row;justify-content:", ";align-items:center;"], function (_ref7) {
|
|
@@ -3912,14 +3957,14 @@ var Row = /*#__PURE__*/styled(View$1).withConfig({
|
|
|
3912
3957
|
$hasLeft = _ref7.$hasLeft;
|
|
3913
3958
|
return !$hasContent && !$hasLeft ? 'flex-end' : 'space-between';
|
|
3914
3959
|
});
|
|
3915
|
-
var ButtonContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
3960
|
+
var ButtonContainer = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3916
3961
|
displayName: "Header__ButtonContainer",
|
|
3917
3962
|
componentId: "kitt-universal__sc-1g7sbq-2"
|
|
3918
3963
|
})(["width:", "px;"], function (_ref8) {
|
|
3919
3964
|
var theme = _ref8.theme;
|
|
3920
3965
|
return theme.kitt.iconButton.width;
|
|
3921
3966
|
});
|
|
3922
|
-
var ChildrenComponent = /*#__PURE__*/styled(View$1).withConfig({
|
|
3967
|
+
var ChildrenComponent = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3923
3968
|
displayName: "Header__ChildrenComponent",
|
|
3924
3969
|
componentId: "kitt-universal__sc-1g7sbq-3"
|
|
3925
3970
|
})(["flex:1;align-items:center;", ";"], function (_ref9) {
|
|
@@ -3929,7 +3974,7 @@ var ChildrenComponent = /*#__PURE__*/styled(View$1).withConfig({
|
|
|
3929
3974
|
var paddingHorizontal = theme.kitt.spacing * 2;
|
|
3930
3975
|
return css(["padding-right:", "px;padding-left:", "px;"], $hasRight ? paddingHorizontal : 0, $hasLeft ? paddingHorizontal : 0);
|
|
3931
3976
|
});
|
|
3932
|
-
var HeaderTitle = /*#__PURE__*/styled(Typography.Text).withConfig({
|
|
3977
|
+
var HeaderTitle = /*#__PURE__*/styled$1(Typography.Text).withConfig({
|
|
3933
3978
|
displayName: "Header__HeaderTitle",
|
|
3934
3979
|
componentId: "kitt-universal__sc-1g7sbq-4"
|
|
3935
3980
|
})(["flex:1;text-align:", ";", ";"], function (_ref10) {
|
|
@@ -3980,7 +4025,7 @@ function Header(_ref12) {
|
|
|
3980
4025
|
});
|
|
3981
4026
|
}
|
|
3982
4027
|
|
|
3983
|
-
var NavigationModalContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
4028
|
+
var NavigationModalContainer = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3984
4029
|
displayName: "NavigationModalContainer",
|
|
3985
4030
|
componentId: "kitt-universal__sc-n0bwvk-0"
|
|
3986
4031
|
})(["position:relative;background-color:", ";flex:1;", ""], function (_ref) {
|
|
@@ -3991,7 +4036,7 @@ var NavigationModalContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
|
3991
4036
|
return css(["min-height:100vh;"]);
|
|
3992
4037
|
});
|
|
3993
4038
|
|
|
3994
|
-
var ContainerWithoutHeader = /*#__PURE__*/styled(View$1).withConfig({
|
|
4039
|
+
var ContainerWithoutHeader = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
3995
4040
|
displayName: "NavigationModal__ContainerWithoutHeader",
|
|
3996
4041
|
componentId: "kitt-universal__sc-ls8t24-0"
|
|
3997
4042
|
})(["justify-content:space-between;flex:1;"]);
|
|
@@ -4005,7 +4050,7 @@ function NavigationModal(_ref) {
|
|
|
4005
4050
|
children: [header ? /*#__PURE__*/jsx(View$1, {
|
|
4006
4051
|
children: header
|
|
4007
4052
|
}) : null, /*#__PURE__*/jsxs(ContainerWithoutHeader, {
|
|
4008
|
-
children: [/*#__PURE__*/jsx(ScrollView$
|
|
4053
|
+
children: [/*#__PURE__*/jsx(ScrollView$2, {
|
|
4009
4054
|
bounces: false,
|
|
4010
4055
|
contentContainerStyle: {
|
|
4011
4056
|
flexGrow: 1,
|
|
@@ -4045,7 +4090,7 @@ function Notification(_ref) {
|
|
|
4045
4090
|
});
|
|
4046
4091
|
}
|
|
4047
4092
|
|
|
4048
|
-
var PageLoaderContainer = withTheme( /*#__PURE__*/styled
|
|
4093
|
+
var PageLoaderContainer = withTheme( /*#__PURE__*/styled("div")({
|
|
4049
4094
|
name: "PageLoaderContainer",
|
|
4050
4095
|
"class": "kitt-u_PageLoaderContainer_ptkwz2j",
|
|
4051
4096
|
vars: {
|
|
@@ -4143,7 +4188,7 @@ function Picker() {
|
|
|
4143
4188
|
});
|
|
4144
4189
|
}
|
|
4145
4190
|
|
|
4146
|
-
var StyledSkeleton = withTheme( /*#__PURE__*/styled
|
|
4191
|
+
var StyledSkeleton = withTheme( /*#__PURE__*/styled("div")({
|
|
4147
4192
|
name: "StyledSkeleton",
|
|
4148
4193
|
"class": "kitt-u_StyledSkeleton_sc3upcl",
|
|
4149
4194
|
vars: {
|
|
@@ -4169,7 +4214,7 @@ function SkeletonContent(_ref4) {
|
|
|
4169
4214
|
});
|
|
4170
4215
|
}
|
|
4171
4216
|
|
|
4172
|
-
var SkeletonContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
4217
|
+
var SkeletonContainer = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
4173
4218
|
displayName: "Skeleton__SkeletonContainer",
|
|
4174
4219
|
componentId: "kitt-universal__sc-1w5cm3i-0"
|
|
4175
4220
|
})(["overflow:hidden;"]);
|
|
@@ -4194,7 +4239,7 @@ function Skeleton(_ref) {
|
|
|
4194
4239
|
})
|
|
4195
4240
|
});
|
|
4196
4241
|
}
|
|
4197
|
-
var Bar = /*#__PURE__*/styled(Skeleton).withConfig({
|
|
4242
|
+
var Bar = /*#__PURE__*/styled$1(Skeleton).withConfig({
|
|
4198
4243
|
displayName: "Skeleton__Bar",
|
|
4199
4244
|
componentId: "kitt-universal__sc-1w5cm3i-1"
|
|
4200
4245
|
})(["width:100%;height:", "px;border-radius:", "px;"], function (_ref3) {
|
|
@@ -4204,7 +4249,7 @@ var Bar = /*#__PURE__*/styled(Skeleton).withConfig({
|
|
|
4204
4249
|
var theme = _ref4.theme;
|
|
4205
4250
|
return theme.kitt.spacing * 2;
|
|
4206
4251
|
});
|
|
4207
|
-
var Circle = /*#__PURE__*/styled(Skeleton).withConfig({
|
|
4252
|
+
var Circle = /*#__PURE__*/styled$1(Skeleton).withConfig({
|
|
4208
4253
|
displayName: "Skeleton__Circle",
|
|
4209
4254
|
componentId: "kitt-universal__sc-1w5cm3i-2"
|
|
4210
4255
|
})(["width:", "px;height:", "px;border-radius:", "px;"], function (_ref5) {
|
|
@@ -4217,7 +4262,7 @@ var Circle = /*#__PURE__*/styled(Skeleton).withConfig({
|
|
|
4217
4262
|
var theme = _ref7.theme;
|
|
4218
4263
|
return theme.kitt.spacing * 6;
|
|
4219
4264
|
});
|
|
4220
|
-
var Square = /*#__PURE__*/styled(Skeleton).withConfig({
|
|
4265
|
+
var Square = /*#__PURE__*/styled$1(Skeleton).withConfig({
|
|
4221
4266
|
displayName: "Skeleton__Square",
|
|
4222
4267
|
componentId: "kitt-universal__sc-1w5cm3i-3"
|
|
4223
4268
|
})(["width:", "px;height:", "px;border-radius:", "px;"], function (_ref8) {
|
|
@@ -4234,7 +4279,7 @@ Skeleton.Bar = Bar;
|
|
|
4234
4279
|
Skeleton.Circle = Circle;
|
|
4235
4280
|
Skeleton.Square = Square;
|
|
4236
4281
|
|
|
4237
|
-
var Flex = /*#__PURE__*/styled(View$1).withConfig({
|
|
4282
|
+
var Flex = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
4238
4283
|
shouldForwardProp: function shouldForwardProp(prop, defaultValidatorFn) {
|
|
4239
4284
|
return !['direction', 'padding'].includes(prop) && defaultValidatorFn(prop);
|
|
4240
4285
|
}
|
|
@@ -4291,7 +4336,7 @@ var useStoryBlockColor = function (color) {
|
|
|
4291
4336
|
var storyBlockColor = useContext(StoryBlockColorContext);
|
|
4292
4337
|
return color || storyBlockColor;
|
|
4293
4338
|
};
|
|
4294
|
-
var StyledStoryBlockView = /*#__PURE__*/styled(View$1).withConfig({
|
|
4339
|
+
var StyledStoryBlockView = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
4295
4340
|
displayName: "StoryBlock__StyledStoryBlockView",
|
|
4296
4341
|
componentId: "kitt-universal__sc-3w4hdm-0"
|
|
4297
4342
|
})(["padding:16px ", "px 0;margin:0 -", "px;background:", ";"], storyPadding, storyPadding, function (_ref) {
|
|
@@ -4314,11 +4359,11 @@ function StoryBlock(_ref2) {
|
|
|
4314
4359
|
});
|
|
4315
4360
|
}
|
|
4316
4361
|
|
|
4317
|
-
var StoryTitleContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
4362
|
+
var StoryTitleContainer = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
4318
4363
|
displayName: "StoryTitle__StoryTitleContainer",
|
|
4319
4364
|
componentId: "kitt-universal__sc-sic7hb-0"
|
|
4320
4365
|
})(["margin-bottom:30px;"]);
|
|
4321
|
-
var StorySubTitleContainer = /*#__PURE__*/styled(View$1).withConfig({
|
|
4366
|
+
var StorySubTitleContainer = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
4322
4367
|
displayName: "StoryTitle__StorySubTitleContainer",
|
|
4323
4368
|
componentId: "kitt-universal__sc-sic7hb-1"
|
|
4324
4369
|
})(["margin-bottom:10px;"]);
|
|
@@ -4393,7 +4438,7 @@ StoryTitle.Level2 = StoryTitleLevel2;
|
|
|
4393
4438
|
StoryTitle.Level3 = StoryTitleLevel3;
|
|
4394
4439
|
StoryTitle.Level4 = StoryTitleLevel4;
|
|
4395
4440
|
|
|
4396
|
-
var StoryContainer$1 = /*#__PURE__*/styled(ScrollView$
|
|
4441
|
+
var StoryContainer$1 = /*#__PURE__*/styled$1(ScrollView$2).withConfig({
|
|
4397
4442
|
displayName: "Story__StoryContainer",
|
|
4398
4443
|
componentId: "kitt-universal__sc-1kwdg2p-0"
|
|
4399
4444
|
})(["padding:", "px;"], storyPadding);
|
|
@@ -4412,7 +4457,7 @@ function Story(_ref) {
|
|
|
4412
4457
|
var _excluded$2 = ["title", "children", "internalIsDemoSection"],
|
|
4413
4458
|
_excluded2 = ["title", "children"],
|
|
4414
4459
|
_excluded3 = ["title", "children"];
|
|
4415
|
-
var StyledSection = /*#__PURE__*/styled(View$1).withConfig({
|
|
4460
|
+
var StyledSection = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
4416
4461
|
displayName: "StorySection__StyledSection",
|
|
4417
4462
|
componentId: "kitt-universal__sc-1b3liv5-0"
|
|
4418
4463
|
})(["margin-bottom:32px;"]);
|
|
@@ -4429,7 +4474,7 @@ function StorySection(_ref) {
|
|
|
4429
4474
|
}), children]
|
|
4430
4475
|
}));
|
|
4431
4476
|
}
|
|
4432
|
-
var StyledSubSection = /*#__PURE__*/styled(View$1).withConfig({
|
|
4477
|
+
var StyledSubSection = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
4433
4478
|
displayName: "StorySection__StyledSubSection",
|
|
4434
4479
|
componentId: "kitt-universal__sc-1b3liv5-1"
|
|
4435
4480
|
})(["margin-bottom:16px;"]);
|
|
@@ -4446,7 +4491,7 @@ function SubSection(_ref2) {
|
|
|
4446
4491
|
}));
|
|
4447
4492
|
}
|
|
4448
4493
|
|
|
4449
|
-
var StyledBlockSection = /*#__PURE__*/styled(View$1).withConfig({
|
|
4494
|
+
var StyledBlockSection = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
4450
4495
|
displayName: "StorySection__StyledBlockSection",
|
|
4451
4496
|
componentId: "kitt-universal__sc-1b3liv5-2"
|
|
4452
4497
|
})(["margin-bottom:16px;"]);
|
|
@@ -4463,7 +4508,7 @@ function BlockSection(_ref3) {
|
|
|
4463
4508
|
}));
|
|
4464
4509
|
}
|
|
4465
4510
|
|
|
4466
|
-
var StyledDemoSection = /*#__PURE__*/styled(View$1).withConfig({
|
|
4511
|
+
var StyledDemoSection = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
4467
4512
|
displayName: "StorySection__StyledDemoSection",
|
|
4468
4513
|
componentId: "kitt-universal__sc-1b3liv5-3"
|
|
4469
4514
|
})(["margin-bottom:64px;"]);
|
|
@@ -4512,19 +4557,19 @@ function StoryDecorator(storyFn, context) {
|
|
|
4512
4557
|
});
|
|
4513
4558
|
}
|
|
4514
4559
|
|
|
4515
|
-
var SmallScreenRow = /*#__PURE__*/styled(View$1).withConfig({
|
|
4560
|
+
var SmallScreenRow = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
4516
4561
|
displayName: "StoryGrid__SmallScreenRow",
|
|
4517
4562
|
componentId: "kitt-universal__sc-4z5new-0"
|
|
4518
4563
|
})(["flex-direction:column;margin:0;"]);
|
|
4519
|
-
var SmallScreenCol = /*#__PURE__*/styled(View$1).withConfig({
|
|
4564
|
+
var SmallScreenCol = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
4520
4565
|
displayName: "StoryGrid__SmallScreenCol",
|
|
4521
4566
|
componentId: "kitt-universal__sc-4z5new-1"
|
|
4522
4567
|
})(["padding:8px 0 16px;"]);
|
|
4523
|
-
var FlexRow = /*#__PURE__*/styled(View$1).withConfig({
|
|
4568
|
+
var FlexRow = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
4524
4569
|
displayName: "StoryGrid__FlexRow",
|
|
4525
4570
|
componentId: "kitt-universal__sc-4z5new-2"
|
|
4526
4571
|
})(["flex-direction:row;margin:0 -4px 16px;"]);
|
|
4527
|
-
var FlexCol = /*#__PURE__*/styled(View$1).withConfig({
|
|
4572
|
+
var FlexCol = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
4528
4573
|
displayName: "StoryGrid__FlexCol",
|
|
4529
4574
|
componentId: "kitt-universal__sc-4z5new-3"
|
|
4530
4575
|
})(["flex-grow:1;flex-basis:0;margin:0 8px;"]);
|
|
@@ -4585,7 +4630,7 @@ var StoryGrid = {
|
|
|
4585
4630
|
Col: StoryGridCol
|
|
4586
4631
|
};
|
|
4587
4632
|
|
|
4588
|
-
var Container = /*#__PURE__*/styled(View$1).withConfig({
|
|
4633
|
+
var Container = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
4589
4634
|
displayName: "Tag__Container",
|
|
4590
4635
|
componentId: "kitt-universal__sc-19jmowi-0"
|
|
4591
4636
|
})(["background-color:", ";border-width:", "px;border-color:", ";padding:", ";border-radius:", "px;align-self:flex-start;"], function (_ref) {
|
|
@@ -4657,11 +4702,11 @@ function TimePicker() {
|
|
|
4657
4702
|
});
|
|
4658
4703
|
}
|
|
4659
4704
|
|
|
4660
|
-
var StyledTooltipView = /*#__PURE__*/styled(View$1).withConfig({
|
|
4705
|
+
var StyledTooltipView = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
4661
4706
|
displayName: "TooltipView__StyledTooltipView",
|
|
4662
4707
|
componentId: "kitt-universal__sc-156zm6m-0"
|
|
4663
4708
|
})(["align-items:center;"]);
|
|
4664
|
-
var StyledTooltipContent = /*#__PURE__*/styled(View$1).withConfig({
|
|
4709
|
+
var StyledTooltipContent = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
4665
4710
|
displayName: "TooltipView__StyledTooltipContent",
|
|
4666
4711
|
componentId: "kitt-universal__sc-156zm6m-1"
|
|
4667
4712
|
})(["background-color:", ";border-radius:", "px;opacity:", ";padding:", ";"], function (_ref) {
|
|
@@ -4687,7 +4732,7 @@ function ArrowView(props) {
|
|
|
4687
4732
|
}));
|
|
4688
4733
|
}
|
|
4689
4734
|
|
|
4690
|
-
var StyledArrow = /*#__PURE__*/styled(ArrowView).withConfig({
|
|
4735
|
+
var StyledArrow = /*#__PURE__*/styled$1(ArrowView).withConfig({
|
|
4691
4736
|
displayName: "TooltipView__StyledArrow",
|
|
4692
4737
|
componentId: "kitt-universal__sc-156zm6m-2"
|
|
4693
4738
|
})(["color:", ";transform:", ";"], function (_ref5) {
|
|
@@ -4720,11 +4765,11 @@ var tooltipDefaultFloatingStrategy = {
|
|
|
4720
4765
|
web: 'absolute'
|
|
4721
4766
|
};
|
|
4722
4767
|
|
|
4723
|
-
var StyledTooltipTrigger = /*#__PURE__*/styled(Pressable$1).withConfig({
|
|
4768
|
+
var StyledTooltipTrigger = /*#__PURE__*/styled$1(Pressable$1).withConfig({
|
|
4724
4769
|
displayName: "Tooltipweb__StyledTooltipTrigger",
|
|
4725
4770
|
componentId: "kitt-universal__sc-zn1y6f-0"
|
|
4726
4771
|
})(["display:inline-flex;align-self:baseline;"]);
|
|
4727
|
-
var WebAnimatedTooltip = /*#__PURE__*/styled(View$1).withConfig({
|
|
4772
|
+
var WebAnimatedTooltip = /*#__PURE__*/styled$1(View$1).withConfig({
|
|
4728
4773
|
displayName: "Tooltipweb__WebAnimatedTooltip",
|
|
4729
4774
|
componentId: "kitt-universal__sc-zn1y6f-1"
|
|
4730
4775
|
})(["opacity:", ";transition:opacity 200ms;visibility:", ";"], function (_ref) {
|
|
@@ -4853,7 +4898,7 @@ function Tooltip(_ref3) {
|
|
|
4853
4898
|
}
|
|
4854
4899
|
Tooltip.View = TooltipView;
|
|
4855
4900
|
|
|
4856
|
-
var EmojiWebWrapper = withTheme( /*#__PURE__*/styled
|
|
4901
|
+
var EmojiWebWrapper = withTheme( /*#__PURE__*/styled("span")({
|
|
4857
4902
|
name: "EmojiWebWrapper",
|
|
4858
4903
|
"class": "kitt-u_EmojiWebWrapper_ej7a4r3"
|
|
4859
4904
|
}));
|
|
@@ -4952,7 +4997,7 @@ function TypographyEmoji(_ref3) {
|
|
|
4952
4997
|
}
|
|
4953
4998
|
|
|
4954
4999
|
var _excluded$1 = ["children", "disabled", "noUnderline", "href", "hrefAttrs", "onPress"];
|
|
4955
|
-
var TypographyLinkWebWrapper = withTheme( /*#__PURE__*/styled
|
|
5000
|
+
var TypographyLinkWebWrapper = withTheme( /*#__PURE__*/styled("span")({
|
|
4956
5001
|
name: "TypographyLinkWebWrapper",
|
|
4957
5002
|
"class": "kitt-u_TypographyLinkWebWrapper_tcwz3nt",
|
|
4958
5003
|
vars: {
|
|
@@ -4962,7 +5007,7 @@ var TypographyLinkWebWrapper = withTheme( /*#__PURE__*/styled$1("span")({
|
|
|
4962
5007
|
}]
|
|
4963
5008
|
}
|
|
4964
5009
|
}));
|
|
4965
|
-
var StyledLink = /*#__PURE__*/styled(Text$2).withConfig({
|
|
5010
|
+
var StyledLink = /*#__PURE__*/styled$1(Text$2).withConfig({
|
|
4966
5011
|
displayName: "TypographyLink__StyledLink",
|
|
4967
5012
|
componentId: "kitt-universal__sc-1o1zy30-0"
|
|
4968
5013
|
})(["text-decoration:", ";", ";", ";"], function (_ref2) {
|
|
@@ -5056,5 +5101,5 @@ function MatchWindowSize(_ref) {
|
|
|
5056
5101
|
return children;
|
|
5057
5102
|
}
|
|
5058
5103
|
|
|
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 };
|
|
5104
|
+
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
5105
|
//# sourceMappingURL=index-browser-all.es.web.js.map
|