@ornikar/kitt-universal 5.0.1 → 6.1.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/Button/AnimatedButtonPressable.d.ts +2 -1
- package/dist/definitions/Button/AnimatedButtonPressable.d.ts.map +1 -1
- package/dist/definitions/Button/AnimatedButtonPressable.web.d.ts +2 -1
- package/dist/definitions/Button/AnimatedButtonPressable.web.d.ts.map +1 -1
- package/dist/definitions/Button/BaseStyledButtonPressable.d.ts +2 -1
- package/dist/definitions/Button/BaseStyledButtonPressable.d.ts.map +1 -1
- package/dist/definitions/Button/Button.d.ts +2 -1
- package/dist/definitions/Button/Button.d.ts.map +1 -1
- package/dist/definitions/Button/ButtonContent.d.ts +4 -3
- package/dist/definitions/Button/ButtonContent.d.ts.map +1 -1
- package/dist/definitions/Button/getVariantValuesIfExist.d.ts +5 -0
- package/dist/definitions/Button/getVariantValuesIfExist.d.ts.map +1 -0
- package/dist/definitions/ExternalLink/ExternalLink.d.ts +3 -3
- package/dist/definitions/ExternalLink/ExternalLink.d.ts.map +1 -1
- package/dist/definitions/Icon/Icon.d.ts +10 -2
- package/dist/definitions/Icon/Icon.d.ts.map +1 -1
- package/dist/definitions/Icon/SpinningIcon.d.ts +4 -4
- package/dist/definitions/Icon/SpinningIcon.d.ts.map +1 -1
- package/dist/definitions/Icon/SpinningIcon.web.d.ts +1 -1
- package/dist/definitions/Icon/SpinningIcon.web.d.ts.map +1 -1
- package/dist/definitions/Loader/Loader.d.ts.map +1 -1
- package/dist/definitions/Loader/Loader.web.d.ts +3 -3
- package/dist/definitions/Loader/Loader.web.d.ts.map +1 -1
- package/dist/definitions/forms/Checkbox/Checkbox.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/themes/late-ocean/button.d.ts +26 -9
- package/dist/definitions/themes/late-ocean/button.d.ts.map +1 -1
- package/dist/definitions/typography/TypographySpinningIcon.d.ts +9 -0
- package/dist/definitions/typography/TypographySpinningIcon.d.ts.map +1 -0
- package/dist/definitions/utils/tests/renderWithProvidersUtils.d.ts +4 -2
- package/dist/definitions/utils/tests/renderWithProvidersUtils.d.ts.map +1 -1
- package/dist/index-browser-all.es.android.js +294 -303
- package/dist/index-browser-all.es.android.js.map +1 -1
- package/dist/index-browser-all.es.ios.js +294 -303
- package/dist/index-browser-all.es.ios.js.map +1 -1
- package/dist/index-browser-all.es.js +294 -303
- package/dist/index-browser-all.es.js.map +1 -1
- package/dist/index-browser-all.es.web.js +373 -364
- package/dist/index-browser-all.es.web.js.map +1 -1
- package/dist/index-node-14.17.cjs.js +197 -109
- 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 +215 -118
- package/dist/index-node-14.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.android.js +59 -38
- package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.ios.js +59 -38
- package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.js +59 -38
- package/dist/linaria-themes-browser-all.es.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.web.js +59 -38
- package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.js +59 -38
- package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.web.js +59 -38
- 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 +8 -7
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
3
|
import { View, Text as Text$1, useWindowDimensions, Image, Pressable, TextInput, StyleSheet, ScrollView, Modal as Modal$1 } from 'react-native';
|
|
4
4
|
export { useWindowDimensions as useWindowSize } from 'react-native';
|
|
5
5
|
import { UserIcon, CheckboxMark, EyeOffIcon, EyeIcon, LoaderIcon, InfoIcon, AlertTriangleIcon, CheckIcon, AlertCircleIcon, XIcon, TooltipArrowIcon } from '@ornikar/kitt-icons';
|
|
6
6
|
export * from '@ornikar/kitt-icons';
|
|
7
|
-
import styled
|
|
8
|
-
import {
|
|
9
|
-
import { styled } from '@linaria/react';
|
|
7
|
+
import styled, { useTheme, css, ThemeProvider } from 'styled-components/native';
|
|
8
|
+
import { cloneElement, useContext, createContext, forwardRef, useMemo, useState, Fragment, Children, useEffect } from 'react';
|
|
10
9
|
import { jsx, jsxs, Fragment as Fragment$1 } from 'react/jsx-runtime';
|
|
10
|
+
import { styled as styled$1 } from '@linaria/react';
|
|
11
11
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
12
12
|
import { parse } from 'twemoji-parser';
|
|
13
13
|
import _extends from '@babel/runtime/helpers/extends';
|
|
@@ -16,75 +16,38 @@ import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
|
16
16
|
import { useFloating, offset, shift, flip, getScrollParents } from '@floating-ui/react-dom';
|
|
17
17
|
import { makeDecorator } from '@storybook/addons';
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
function _objectSpread$n(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$n(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$n(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
22
|
-
// type $Without<T, K extends keyof any> = T extends any ? Pick<T, Exclude<keyof T, K>> : never;
|
|
23
|
-
// type $DeepPartial<T> = { [P in keyof T]?: $DeepPartial<T[P]> };
|
|
24
|
-
// export function withTheme<Props extends { theme: DefaultTheme }, C>(
|
|
25
|
-
// WrappedComponent: ComponentType<Props> & C,
|
|
26
|
-
// ): ComponentType<SetOptional<Props, 'theme'>> & hoistNonReactStatics.NonReactStatics<typeof WrappedComponent> {
|
|
27
|
-
// return function ThemedComponent(props) {
|
|
28
|
-
// const theme = useTheme();
|
|
29
|
-
// return (<WrappedComponent theme={theme} {...(props as any)} />) as any;
|
|
30
|
-
// };
|
|
31
|
-
// }
|
|
32
|
-
function withTheme(WrappedComponent) {
|
|
33
|
-
// eslint-disable-next-line prefer-arrow-callback
|
|
34
|
-
return /*#__PURE__*/forwardRef(function (props, ref) {
|
|
35
|
-
var theme = /*#__PURE__*/useTheme();
|
|
36
|
-
return /*#__PURE__*/jsx(WrappedComponent, _objectSpread$n({
|
|
37
|
-
ref: ref,
|
|
38
|
-
theme: theme
|
|
39
|
-
}, props));
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
var StyledSpinningIconContainer = withTheme( /*#__PURE__*/styled("div")({
|
|
44
|
-
name: "StyledSpinningIconContainer",
|
|
45
|
-
"class": "kitt-u_StyledSpinningIconContainer_ssn8o83"
|
|
46
|
-
}));
|
|
47
|
-
function SpinningIcon(_ref) {
|
|
48
|
-
var children = _ref.children;
|
|
49
|
-
return /*#__PURE__*/jsx(StyledSpinningIconContainer, {
|
|
50
|
-
children: children
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
var IconContainer$1 = /*#__PURE__*/styled$1(View).withConfig({
|
|
19
|
+
var defaultIconSize = 20;
|
|
20
|
+
var IconContainer$1 = /*#__PURE__*/styled(View).withConfig({
|
|
55
21
|
displayName: "Icon__IconContainer",
|
|
56
22
|
componentId: "kitt-universal__sc-usm0ol-0"
|
|
57
23
|
})(["color:", ";width:", "px;height:", "px;align-self:", ";"], function (_ref) {
|
|
58
|
-
var color = _ref
|
|
59
|
-
return color;
|
|
24
|
+
var $color = _ref.$color;
|
|
25
|
+
return $color;
|
|
60
26
|
}, function (_ref2) {
|
|
61
|
-
var size = _ref2
|
|
62
|
-
return size;
|
|
27
|
+
var $size = _ref2.$size;
|
|
28
|
+
return $size;
|
|
63
29
|
}, function (_ref3) {
|
|
64
|
-
var size = _ref3
|
|
65
|
-
return size;
|
|
30
|
+
var $size = _ref3.$size;
|
|
31
|
+
return $size;
|
|
66
32
|
}, function (_ref4) {
|
|
67
|
-
var _ref4
|
|
68
|
-
align = _ref4
|
|
69
|
-
return align;
|
|
33
|
+
var _ref4$$align = _ref4.$align,
|
|
34
|
+
$align = _ref4$$align === void 0 ? 'auto' : _ref4$$align;
|
|
35
|
+
return $align;
|
|
70
36
|
});
|
|
71
37
|
function Icon(_ref5) {
|
|
72
38
|
var icon = _ref5.icon,
|
|
73
39
|
_ref5$size = _ref5.size,
|
|
74
|
-
size = _ref5$size === void 0 ?
|
|
75
|
-
spin = _ref5.spin,
|
|
40
|
+
size = _ref5$size === void 0 ? defaultIconSize : _ref5$size,
|
|
76
41
|
align = _ref5.align,
|
|
77
42
|
color = _ref5.color;
|
|
78
43
|
var clonedIcon = /*#__PURE__*/cloneElement(icon, {
|
|
79
44
|
color: color
|
|
80
45
|
});
|
|
81
46
|
return /*#__PURE__*/jsx(IconContainer$1, {
|
|
82
|
-
align: align,
|
|
83
|
-
size: size,
|
|
84
|
-
color: color,
|
|
85
|
-
children:
|
|
86
|
-
children: clonedIcon
|
|
87
|
-
}) : clonedIcon
|
|
47
|
+
$align: align,
|
|
48
|
+
$size: size,
|
|
49
|
+
$color: color,
|
|
50
|
+
children: clonedIcon
|
|
88
51
|
});
|
|
89
52
|
}
|
|
90
53
|
|
|
@@ -136,11 +99,7 @@ var KittBreakpointsMax = {
|
|
|
136
99
|
LARGE: KittBreakpoints.WIDE - 1
|
|
137
100
|
};
|
|
138
101
|
|
|
139
|
-
var _excluded$
|
|
140
|
-
|
|
141
|
-
function ownKeys$m(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
142
|
-
|
|
143
|
-
function _objectSpread$m(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$m(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$m(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
102
|
+
var _excluded$h = ["accessibilityRole", "base", "small", "medium", "large", "variant", "color"];
|
|
144
103
|
var IsHeaderTypographyContext = /*#__PURE__*/createContext(undefined);
|
|
145
104
|
var TypographyColorContext = /*#__PURE__*/createContext('black');
|
|
146
105
|
function useTypographyColor() {
|
|
@@ -169,7 +128,7 @@ function getTypographyTypeConfig(type, theme) {
|
|
|
169
128
|
|
|
170
129
|
return theme.kitt.typography.types.bodies.configs[type];
|
|
171
130
|
}
|
|
172
|
-
var StyledTypography = /*#__PURE__*/styled
|
|
131
|
+
var StyledTypography = /*#__PURE__*/styled(Text$1).withConfig({
|
|
173
132
|
displayName: "Typography__StyledTypography",
|
|
174
133
|
componentId: "kitt-universal__sc-1dz700q-0"
|
|
175
134
|
})(["", " ", ""], function (_ref) {
|
|
@@ -217,7 +176,7 @@ function Typography(_ref4) {
|
|
|
217
176
|
large = _ref4.large,
|
|
218
177
|
variant = _ref4.variant,
|
|
219
178
|
color = _ref4.color,
|
|
220
|
-
otherProps = _objectWithoutProperties(_ref4, _excluded$
|
|
179
|
+
otherProps = _objectWithoutProperties(_ref4, _excluded$h);
|
|
221
180
|
|
|
222
181
|
var isHeaderTypographyInContext = useContext(IsHeaderTypographyContext);
|
|
223
182
|
var hasTypographyAncestor = isHeaderTypographyInContext !== undefined;
|
|
@@ -234,14 +193,14 @@ function Typography(_ref4) {
|
|
|
234
193
|
var nonNullableVariant = variant !== null && variant !== void 0 ? variant : isHeader ? 'bold' : 'regular';
|
|
235
194
|
var content = baseOrDefaultToBody ? /*#__PURE__*/jsx(IsHeaderTypographyContext.Provider, {
|
|
236
195
|
value: isHeader,
|
|
237
|
-
children: /*#__PURE__*/jsx(StyledTypography, _objectSpread
|
|
196
|
+
children: /*#__PURE__*/jsx(StyledTypography, _objectSpread({
|
|
238
197
|
$color: colorOrDefaultToBlack,
|
|
239
198
|
$isHeader: isHeader,
|
|
240
199
|
$typeForCurrentWindowSize: typeForCurrentWindowSize,
|
|
241
200
|
$variant: nonNullableVariant,
|
|
242
201
|
accessibilityRole: accessibilityRole || undefined
|
|
243
202
|
}, otherProps))
|
|
244
|
-
}) : /*#__PURE__*/jsx(StyledTypography, _objectSpread
|
|
203
|
+
}) : /*#__PURE__*/jsx(StyledTypography, _objectSpread({
|
|
245
204
|
$color: colorOrDefaultToBlack,
|
|
246
205
|
$isHeader: isHeader,
|
|
247
206
|
$variant: nonNullableVariant,
|
|
@@ -254,13 +213,13 @@ function Typography(_ref4) {
|
|
|
254
213
|
}
|
|
255
214
|
|
|
256
215
|
function TypographyText(props) {
|
|
257
|
-
return /*#__PURE__*/jsx(Typography, _objectSpread
|
|
216
|
+
return /*#__PURE__*/jsx(Typography, _objectSpread({
|
|
258
217
|
accessibilityRole: null
|
|
259
218
|
}, props));
|
|
260
219
|
}
|
|
261
220
|
|
|
262
221
|
function TypographyParagraph(props) {
|
|
263
|
-
return /*#__PURE__*/jsx(Typography, _objectSpread
|
|
222
|
+
return /*#__PURE__*/jsx(Typography, _objectSpread({
|
|
264
223
|
accessibilityRole: "paragraph"
|
|
265
224
|
}, props));
|
|
266
225
|
}
|
|
@@ -268,7 +227,7 @@ function TypographyParagraph(props) {
|
|
|
268
227
|
var createHeading = function (level, defaultBase) {
|
|
269
228
|
// https://github.com/necolas/react-native-web/issues/401
|
|
270
229
|
function TypographyHeading(props) {
|
|
271
|
-
return /*#__PURE__*/jsx(Typography, _objectSpread
|
|
230
|
+
return /*#__PURE__*/jsx(Typography, _objectSpread(_objectSpread({
|
|
272
231
|
accessibilityRole: "header",
|
|
273
232
|
base: defaultBase
|
|
274
233
|
}, props), {}, {
|
|
@@ -304,17 +263,13 @@ Typography.h4 = createHeading(4, 'header4');
|
|
|
304
263
|
|
|
305
264
|
Typography.h5 = createHeading(5, 'header5');
|
|
306
265
|
|
|
307
|
-
var _excluded$
|
|
308
|
-
|
|
309
|
-
function ownKeys$l(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
310
|
-
|
|
311
|
-
function _objectSpread$l(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$l(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$l(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
266
|
+
var _excluded$g = ["size", "base", "round", "light"];
|
|
312
267
|
|
|
313
268
|
var getInitials = function (firstname, lastname) {
|
|
314
269
|
return "".concat(firstname[0]).concat(lastname[0]).toUpperCase();
|
|
315
270
|
};
|
|
316
271
|
|
|
317
|
-
var StyledAvatarView = /*#__PURE__*/styled
|
|
272
|
+
var StyledAvatarView = /*#__PURE__*/styled(View).withConfig({
|
|
318
273
|
displayName: "Avatar__StyledAvatarView",
|
|
319
274
|
componentId: "kitt-universal__sc-9miubv-0"
|
|
320
275
|
})(["border-radius:", ";background-color:", ";height:", "px;width:", "px;overflow:hidden;align-items:center;justify-content:center;"], function (_ref) {
|
|
@@ -380,13 +335,13 @@ function Avatar(_ref6) {
|
|
|
380
335
|
base = _ref6$base === void 0 ? 'body-small' : _ref6$base,
|
|
381
336
|
round = _ref6.round,
|
|
382
337
|
light = _ref6.light,
|
|
383
|
-
props = _objectWithoutProperties(_ref6, _excluded$
|
|
338
|
+
props = _objectWithoutProperties(_ref6, _excluded$g);
|
|
384
339
|
|
|
385
340
|
return /*#__PURE__*/jsx(StyledAvatarView, {
|
|
386
341
|
$size: size,
|
|
387
342
|
$isRound: round,
|
|
388
343
|
$isLight: light,
|
|
389
|
-
children: /*#__PURE__*/jsx(AvatarContent, _objectSpread
|
|
344
|
+
children: /*#__PURE__*/jsx(AvatarContent, _objectSpread({
|
|
390
345
|
size: size,
|
|
391
346
|
base: base,
|
|
392
347
|
isLight: light
|
|
@@ -394,16 +349,47 @@ function Avatar(_ref6) {
|
|
|
394
349
|
});
|
|
395
350
|
}
|
|
396
351
|
|
|
397
|
-
|
|
398
|
-
|
|
352
|
+
// type $Without<T, K extends keyof any> = T extends any ? Pick<T, Exclude<keyof T, K>> : never;
|
|
353
|
+
// type $DeepPartial<T> = { [P in keyof T]?: $DeepPartial<T[P]> };
|
|
354
|
+
// export function withTheme<Props extends { theme: DefaultTheme }, C>(
|
|
355
|
+
// WrappedComponent: ComponentType<Props> & C,
|
|
356
|
+
// ): ComponentType<SetOptional<Props, 'theme'>> & hoistNonReactStatics.NonReactStatics<typeof WrappedComponent> {
|
|
357
|
+
// return function ThemedComponent(props) {
|
|
358
|
+
// const theme = useTheme();
|
|
359
|
+
// return (<WrappedComponent theme={theme} {...(props as any)} />) as any;
|
|
360
|
+
// };
|
|
361
|
+
// }
|
|
362
|
+
function withTheme(WrappedComponent) {
|
|
363
|
+
// eslint-disable-next-line prefer-arrow-callback
|
|
364
|
+
return /*#__PURE__*/forwardRef(function (props, ref) {
|
|
365
|
+
var theme = /*#__PURE__*/useTheme();
|
|
366
|
+
return /*#__PURE__*/jsx(WrappedComponent, _objectSpread({
|
|
367
|
+
ref: ref,
|
|
368
|
+
theme: theme
|
|
369
|
+
}, props));
|
|
370
|
+
});
|
|
399
371
|
}
|
|
400
372
|
|
|
401
|
-
var
|
|
373
|
+
var hasVariant = function (button, variant) {
|
|
374
|
+
return variant in button;
|
|
375
|
+
};
|
|
402
376
|
|
|
403
|
-
function
|
|
377
|
+
function getVariantValuesIfExist(theme, type, variant) {
|
|
378
|
+
var button = theme.kitt.button[type];
|
|
404
379
|
|
|
405
|
-
|
|
406
|
-
|
|
380
|
+
if (hasVariant(button, variant)) {
|
|
381
|
+
return button[variant];
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
return theme.kitt.button[type]["default"];
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
function isSubtle(type) {
|
|
388
|
+
return type.startsWith('subtle');
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
var _excluded$f = ["$type", "$variant", "$isStretch", "disabled"];
|
|
392
|
+
var AnimatedButtonPressableContainer = withTheme( /*#__PURE__*/styled$1("div")({
|
|
407
393
|
name: "AnimatedButtonPressableContainer",
|
|
408
394
|
"class": "kitt-u_AnimatedButtonPressableContainer_a1vkj3mh",
|
|
409
395
|
vars: {
|
|
@@ -427,9 +413,10 @@ var AnimatedButtonPressableContainer = withTheme( /*#__PURE__*/styled("div")({
|
|
|
427
413
|
"a1vkj3mh-5": [function (_ref5) {
|
|
428
414
|
var theme = _ref5.theme,
|
|
429
415
|
$type = _ref5.$type,
|
|
416
|
+
$variant = _ref5.$variant,
|
|
430
417
|
$isDisabled = _ref5.$isDisabled;
|
|
431
|
-
if ($isDisabled) return theme.kitt.button.disabled.hoverBackgroundColor;
|
|
432
|
-
return theme
|
|
418
|
+
if ($isDisabled) return theme.kitt.button.disabled["default"].hoverBackgroundColor;
|
|
419
|
+
return getVariantValuesIfExist(theme, $type, $variant).hoverBackgroundColor;
|
|
433
420
|
}],
|
|
434
421
|
"a1vkj3mh-6": [function (_ref6) {
|
|
435
422
|
var theme = _ref6.theme;
|
|
@@ -460,12 +447,13 @@ var AnimatedButtonPressableContainer = withTheme( /*#__PURE__*/styled("div")({
|
|
|
460
447
|
}],
|
|
461
448
|
"a1vkj3mh-14": [function (_ref12) {
|
|
462
449
|
var theme = _ref12.theme;
|
|
463
|
-
return "".concat(theme.kitt.button.borderWidth.disabled, "px solid ").concat(theme.kitt.button.disabled.borderColor);
|
|
450
|
+
return "".concat(theme.kitt.button.borderWidth.disabled, "px solid ").concat(theme.kitt.button.disabled["default"].borderColor);
|
|
464
451
|
}],
|
|
465
452
|
"a1vkj3mh-15": [function (_ref13) {
|
|
466
453
|
var theme = _ref13.theme,
|
|
467
|
-
$type = _ref13.$type
|
|
468
|
-
|
|
454
|
+
$type = _ref13.$type,
|
|
455
|
+
$variant = _ref13.$variant;
|
|
456
|
+
return "".concat(theme.kitt.button.borderWidth.focus, "px solid ").concat(getVariantValuesIfExist(theme, $type, $variant).focusBorderColor);
|
|
469
457
|
}],
|
|
470
458
|
"a1vkj3mh-16": [function (_ref14) {
|
|
471
459
|
var theme = _ref14.theme;
|
|
@@ -476,45 +464,59 @@ var AnimatedButtonPressableContainer = withTheme( /*#__PURE__*/styled("div")({
|
|
|
476
464
|
$type = _ref15.$type,
|
|
477
465
|
$isDisabled = _ref15.$isDisabled;
|
|
478
466
|
if ($isDisabled) return theme.kitt.typography.colors['black-light'];
|
|
479
|
-
|
|
480
|
-
|
|
467
|
+
|
|
468
|
+
if (isSubtle($type)) {
|
|
469
|
+
return theme.kitt.button[$type]["default"].color;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
return 'inherit';
|
|
481
473
|
}],
|
|
482
474
|
"a1vkj3mh-19": [function (_ref16) {
|
|
483
475
|
var theme = _ref16.theme,
|
|
484
476
|
$type = _ref16.$type,
|
|
485
477
|
$isDisabled = _ref16.$isDisabled;
|
|
486
478
|
if ($isDisabled) return theme.kitt.typography.colors['black-light'];
|
|
487
|
-
|
|
488
|
-
|
|
479
|
+
|
|
480
|
+
if (isSubtle($type)) {
|
|
481
|
+
return theme.kitt.button[$type]["default"].hoverColor;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
return 'inherit';
|
|
489
485
|
}],
|
|
490
486
|
"a1vkj3mh-20": [function (_ref17) {
|
|
491
487
|
var theme = _ref17.theme,
|
|
492
488
|
$type = _ref17.$type,
|
|
493
489
|
$isDisabled = _ref17.$isDisabled;
|
|
494
490
|
if ($isDisabled) return theme.kitt.typography.colors['black-light'];
|
|
495
|
-
|
|
496
|
-
|
|
491
|
+
|
|
492
|
+
if (isSubtle($type)) {
|
|
493
|
+
return theme.kitt.button[$type]["default"].activeColor;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
return 'inherit';
|
|
497
497
|
}]
|
|
498
498
|
}
|
|
499
499
|
}));
|
|
500
500
|
var AnimatedButtonPressable = /*#__PURE__*/forwardRef(function (_ref18, ref) {
|
|
501
501
|
var $type = _ref18.$type,
|
|
502
|
+
$variant = _ref18.$variant,
|
|
502
503
|
$isStretch = _ref18.$isStretch,
|
|
503
504
|
disabled = _ref18.disabled,
|
|
504
|
-
props = _objectWithoutProperties(_ref18, _excluded$
|
|
505
|
+
props = _objectWithoutProperties(_ref18, _excluded$f);
|
|
505
506
|
|
|
506
507
|
return /*#__PURE__*/jsx(AnimatedButtonPressableContainer, {
|
|
507
508
|
ref: ref,
|
|
508
509
|
$type: $type,
|
|
510
|
+
$variant: $variant,
|
|
509
511
|
$isDisabled: !!disabled,
|
|
510
512
|
$isStretch: $isStretch,
|
|
511
|
-
children: /*#__PURE__*/jsx(Pressable, _objectSpread
|
|
513
|
+
children: /*#__PURE__*/jsx(Pressable, _objectSpread({
|
|
512
514
|
disabled: disabled
|
|
513
515
|
}, props))
|
|
514
516
|
});
|
|
515
517
|
});
|
|
516
518
|
|
|
517
|
-
var BaseStyledButtonPressable = /*#__PURE__*/styled
|
|
519
|
+
var BaseStyledButtonPressable = /*#__PURE__*/styled(View).withConfig({
|
|
518
520
|
displayName: "BaseStyledButtonPressable",
|
|
519
521
|
componentId: "kitt-universal__sc-4k8lse-0"
|
|
520
522
|
})(["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) {
|
|
@@ -536,9 +538,10 @@ var BaseStyledButtonPressable = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
536
538
|
}, function (_ref6) {
|
|
537
539
|
var theme = _ref6.theme,
|
|
538
540
|
$isDisabled = _ref6.$isDisabled,
|
|
539
|
-
$type = _ref6.$type
|
|
540
|
-
|
|
541
|
-
return theme.kitt.button[
|
|
541
|
+
$type = _ref6.$type,
|
|
542
|
+
$variant = _ref6.$variant;
|
|
543
|
+
if ($isDisabled) return theme.kitt.button.disabled["default"].backgroundColor;
|
|
544
|
+
return getVariantValuesIfExist(theme, $type, $variant).backgroundColor;
|
|
542
545
|
}, function (_ref7) {
|
|
543
546
|
var theme = _ref7.theme,
|
|
544
547
|
$isLarge = _ref7.$isLarge,
|
|
@@ -552,53 +555,45 @@ var BaseStyledButtonPressable = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
552
555
|
return defaultPadding;
|
|
553
556
|
});
|
|
554
557
|
|
|
555
|
-
var _excluded$
|
|
556
|
-
_excluded2$
|
|
557
|
-
|
|
558
|
-
function ownKeys$j(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
559
|
-
|
|
560
|
-
function _objectSpread$j(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$j(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$j(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
558
|
+
var _excluded$e = ["color"],
|
|
559
|
+
_excluded2$3 = ["color"];
|
|
561
560
|
|
|
562
561
|
function TypographyIconSpecifiedColor(_ref) {
|
|
563
562
|
var color = _ref.color,
|
|
564
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
563
|
+
props = _objectWithoutProperties(_ref, _excluded$e);
|
|
565
564
|
|
|
566
565
|
var theme = /*#__PURE__*/useTheme();
|
|
567
|
-
return /*#__PURE__*/jsx(Icon, _objectSpread
|
|
566
|
+
return /*#__PURE__*/jsx(Icon, _objectSpread(_objectSpread({}, props), {}, {
|
|
568
567
|
color: color === 'inherit' ? 'inherit' : theme.kitt.typography.colors[color]
|
|
569
568
|
}));
|
|
570
569
|
}
|
|
571
570
|
|
|
572
571
|
function TypographyIconInheritColor(props) {
|
|
573
572
|
var color = useTypographyColor();
|
|
574
|
-
return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread
|
|
573
|
+
return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread({
|
|
575
574
|
color: color
|
|
576
575
|
}, props));
|
|
577
576
|
}
|
|
578
577
|
|
|
579
578
|
function TypographyIcon(_ref2) {
|
|
580
579
|
var color = _ref2.color,
|
|
581
|
-
props = _objectWithoutProperties(_ref2, _excluded2$
|
|
580
|
+
props = _objectWithoutProperties(_ref2, _excluded2$3);
|
|
582
581
|
|
|
583
582
|
if (color) {
|
|
584
|
-
return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread
|
|
583
|
+
return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread({
|
|
585
584
|
color: color
|
|
586
585
|
}, props));
|
|
587
586
|
}
|
|
588
587
|
|
|
589
|
-
return /*#__PURE__*/jsx(TypographyIconInheritColor, _objectSpread
|
|
588
|
+
return /*#__PURE__*/jsx(TypographyIconInheritColor, _objectSpread({}, props));
|
|
590
589
|
}
|
|
591
590
|
|
|
592
|
-
var _excluded$
|
|
593
|
-
|
|
594
|
-
function ownKeys$i(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
595
|
-
|
|
596
|
-
function _objectSpread$i(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$i(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$i(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
591
|
+
var _excluded$d = ["type", "variant", "isDisabled", "$isStretch", "icon", "children"];
|
|
597
592
|
|
|
598
|
-
var getTextColorByType = function (type) {
|
|
593
|
+
var getTextColorByType = function (type, variant) {
|
|
599
594
|
switch (type) {
|
|
600
595
|
case 'primary':
|
|
601
|
-
return 'white';
|
|
596
|
+
return variant === 'ghost' ? 'primary' : 'white';
|
|
602
597
|
|
|
603
598
|
case 'white':
|
|
604
599
|
return 'white';
|
|
@@ -614,7 +609,7 @@ var getTextColorByType = function (type) {
|
|
|
614
609
|
}
|
|
615
610
|
};
|
|
616
611
|
|
|
617
|
-
var StyledButtonText = /*#__PURE__*/styled
|
|
612
|
+
var StyledButtonText = /*#__PURE__*/styled(Typography.Text).withConfig({
|
|
618
613
|
displayName: "ButtonContent__StyledButtonText",
|
|
619
614
|
componentId: "kitt-universal__sc-dnyw3n-0"
|
|
620
615
|
})(["text-align:center;", " ", ""], function () {
|
|
@@ -632,7 +627,7 @@ var StyledButtonText = /*#__PURE__*/styled$1(Typography.Text).withConfig({
|
|
|
632
627
|
if ($isDisabled || !isSubtle($type)) return undefined;
|
|
633
628
|
return 'color: inherit';
|
|
634
629
|
});
|
|
635
|
-
var StyledIconContainer$1 = /*#__PURE__*/styled
|
|
630
|
+
var StyledIconContainer$1 = /*#__PURE__*/styled(View).withConfig({
|
|
636
631
|
displayName: "ButtonContent__StyledIconContainer",
|
|
637
632
|
componentId: "kitt-universal__sc-dnyw3n-1"
|
|
638
633
|
})(["", ""], function (_ref2) {
|
|
@@ -650,21 +645,19 @@ var StyledIconContainer$1 = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
650
645
|
function ButtonIcon(_ref3) {
|
|
651
646
|
var icon = _ref3.icon,
|
|
652
647
|
color = _ref3.color,
|
|
653
|
-
spin = _ref3.spin,
|
|
654
648
|
iconPosition = _ref3.iconPosition,
|
|
655
649
|
testID = _ref3.testID;
|
|
656
650
|
return /*#__PURE__*/jsx(StyledIconContainer$1, {
|
|
657
651
|
$iconPosition: iconPosition,
|
|
658
652
|
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
659
653
|
icon: icon,
|
|
660
|
-
spin: spin,
|
|
661
654
|
testID: testID,
|
|
662
655
|
color: color
|
|
663
656
|
})
|
|
664
657
|
});
|
|
665
658
|
}
|
|
666
659
|
|
|
667
|
-
var StyledChildrenWithIcon = /*#__PURE__*/styled
|
|
660
|
+
var StyledChildrenWithIcon = /*#__PURE__*/styled(View).withConfig({
|
|
668
661
|
displayName: "ButtonContent__StyledChildrenWithIcon",
|
|
669
662
|
componentId: "kitt-universal__sc-dnyw3n-2"
|
|
670
663
|
})(["align-items:center;justify-content:center;flex-direction:row;"]);
|
|
@@ -672,7 +665,6 @@ function ButtonContentChildren(_ref4) {
|
|
|
672
665
|
var type = _ref4.type,
|
|
673
666
|
icon = _ref4.icon,
|
|
674
667
|
iconPosition = _ref4.iconPosition,
|
|
675
|
-
iconSpin = _ref4.iconSpin,
|
|
676
668
|
isDisabled = _ref4.isDisabled,
|
|
677
669
|
color = _ref4.color,
|
|
678
670
|
children = _ref4.children;
|
|
@@ -686,9 +678,8 @@ function ButtonContentChildren(_ref4) {
|
|
|
686
678
|
var isWebSubtle = isSubtle(type) && "web" === 'web' && !isDisabled;
|
|
687
679
|
|
|
688
680
|
if (!children) {
|
|
689
|
-
return /*#__PURE__*/jsx(TypographyIcon
|
|
690
|
-
|
|
691
|
-
,
|
|
681
|
+
return /*#__PURE__*/jsx(TypographyIcon // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
682
|
+
, {
|
|
692
683
|
icon: icon,
|
|
693
684
|
color: isWebSubtle ? 'inherit' : color
|
|
694
685
|
});
|
|
@@ -696,12 +687,11 @@ function ButtonContentChildren(_ref4) {
|
|
|
696
687
|
|
|
697
688
|
var buttonIconSharedProps = {
|
|
698
689
|
type: type,
|
|
699
|
-
spin: iconSpin,
|
|
700
690
|
iconPosition: iconPosition,
|
|
701
691
|
color: isWebSubtle ? 'inherit' : color
|
|
702
692
|
};
|
|
703
693
|
return /*#__PURE__*/jsxs(StyledChildrenWithIcon, {
|
|
704
|
-
children: [icon && iconPosition === 'left' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread
|
|
694
|
+
children: [icon && iconPosition === 'left' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread(_objectSpread({}, buttonIconSharedProps), {}, {
|
|
705
695
|
testID: "button-left-icon",
|
|
706
696
|
icon: icon
|
|
707
697
|
})) : null, /*#__PURE__*/jsx(StyledButtonText, {
|
|
@@ -712,12 +702,12 @@ function ButtonContentChildren(_ref4) {
|
|
|
712
702
|
,
|
|
713
703
|
color: isWebSubtle ? undefined : color,
|
|
714
704
|
children: children
|
|
715
|
-
}), icon && iconPosition === 'right' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread
|
|
705
|
+
}), icon && iconPosition === 'right' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread(_objectSpread({}, buttonIconSharedProps), {}, {
|
|
716
706
|
icon: icon
|
|
717
707
|
})) : null]
|
|
718
708
|
});
|
|
719
709
|
}
|
|
720
|
-
var ButtonContentContainer = /*#__PURE__*/styled
|
|
710
|
+
var ButtonContentContainer = /*#__PURE__*/styled(View).withConfig({
|
|
721
711
|
displayName: "ButtonContent__ButtonContentContainer",
|
|
722
712
|
componentId: "kitt-universal__sc-dnyw3n-3"
|
|
723
713
|
})(["line-height:16px;", " ", ";"], function (_ref5) {
|
|
@@ -732,18 +722,19 @@ var ButtonContentContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
732
722
|
});
|
|
733
723
|
function ButtonContent(_ref7) {
|
|
734
724
|
var type = _ref7.type,
|
|
725
|
+
variant = _ref7.variant,
|
|
735
726
|
isDisabled = _ref7.isDisabled,
|
|
736
727
|
$isStretch = _ref7.$isStretch,
|
|
737
728
|
icon = _ref7.icon,
|
|
738
729
|
children = _ref7.children,
|
|
739
|
-
props = _objectWithoutProperties(_ref7, _excluded$
|
|
730
|
+
props = _objectWithoutProperties(_ref7, _excluded$d);
|
|
740
731
|
|
|
741
|
-
var color = isDisabled ? 'black-light' : getTextColorByType(type);
|
|
732
|
+
var color = isDisabled ? 'black-light' : getTextColorByType(type, variant);
|
|
742
733
|
return /*#__PURE__*/jsx(ButtonContentContainer, {
|
|
743
734
|
$isSubtle: isSubtle(type),
|
|
744
735
|
$isStretch: $isStretch,
|
|
745
736
|
$isIconOnly: Boolean(!children && icon),
|
|
746
|
-
children: /*#__PURE__*/jsx(ButtonContentChildren, _objectSpread
|
|
737
|
+
children: /*#__PURE__*/jsx(ButtonContentChildren, _objectSpread(_objectSpread({
|
|
747
738
|
icon: icon,
|
|
748
739
|
type: type,
|
|
749
740
|
isDisabled: isDisabled,
|
|
@@ -758,19 +749,25 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
758
749
|
var children = _ref.children,
|
|
759
750
|
_ref$type = _ref.type,
|
|
760
751
|
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
752
|
+
_ref$variant = _ref.variant,
|
|
753
|
+
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
761
754
|
disabled = _ref.disabled,
|
|
762
755
|
stretch = _ref.stretch,
|
|
763
756
|
large = _ref.large,
|
|
764
757
|
icon = _ref.icon,
|
|
765
758
|
_ref$iconPosition = _ref.iconPosition,
|
|
766
759
|
iconPosition = _ref$iconPosition === void 0 ? 'left' : _ref$iconPosition,
|
|
767
|
-
iconSpin = _ref.iconSpin,
|
|
768
760
|
testID = _ref.testID,
|
|
769
761
|
href = _ref.href,
|
|
770
762
|
hrefAttrs = _ref.hrefAttrs,
|
|
771
763
|
_ref$accessibilityRol = _ref.accessibilityRole,
|
|
772
764
|
accessibilityRole = _ref$accessibilityRol === void 0 ? 'button' : _ref$accessibilityRol,
|
|
773
765
|
onPress = _ref.onPress;
|
|
766
|
+
|
|
767
|
+
if ((process.env.NODE_ENV !== "production") && variant === 'ghost' && type !== 'primary') {
|
|
768
|
+
throw new Error('variant=ghost is only allowed with type=primary');
|
|
769
|
+
}
|
|
770
|
+
|
|
774
771
|
return /*#__PURE__*/jsx(AnimatedButtonPressable, {
|
|
775
772
|
ref: ref,
|
|
776
773
|
accessibilityRole: accessibilityRole,
|
|
@@ -780,26 +777,28 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
780
777
|
disabled: disabled,
|
|
781
778
|
$isStretch: stretch,
|
|
782
779
|
$type: type,
|
|
780
|
+
$variant: variant,
|
|
783
781
|
onPress: onPress,
|
|
784
782
|
children: /*#__PURE__*/jsxs(BaseStyledButtonPressable, {
|
|
785
783
|
$type: type,
|
|
784
|
+
$variant: variant,
|
|
786
785
|
$isStretch: stretch,
|
|
787
786
|
$isLarge: large,
|
|
788
787
|
$isDisabled: disabled,
|
|
789
788
|
children: [/*#__PURE__*/jsx(ButtonContent, {
|
|
790
789
|
type: type,
|
|
790
|
+
variant: variant,
|
|
791
791
|
$isStretch: stretch,
|
|
792
792
|
isDisabled: disabled,
|
|
793
793
|
icon: icon,
|
|
794
794
|
iconPosition: iconPosition,
|
|
795
|
-
iconSpin: iconSpin,
|
|
796
795
|
children: children
|
|
797
796
|
}), null]
|
|
798
797
|
})
|
|
799
798
|
});
|
|
800
799
|
});
|
|
801
800
|
|
|
802
|
-
var Container$3 = /*#__PURE__*/styled
|
|
801
|
+
var Container$3 = /*#__PURE__*/styled(View).withConfig({
|
|
803
802
|
displayName: "Card__Container",
|
|
804
803
|
componentId: "kitt-universal__sc-1n9psug-0"
|
|
805
804
|
})(["background-color:", ";padding:", "px;border-radius:", "px;border-width:", "px;border-color:", ";"], function (_ref) {
|
|
@@ -829,7 +828,7 @@ function Card(_ref6) {
|
|
|
829
828
|
});
|
|
830
829
|
}
|
|
831
830
|
|
|
832
|
-
var StyledEmoji = /*#__PURE__*/styled
|
|
831
|
+
var StyledEmoji = /*#__PURE__*/styled(Image).withConfig({
|
|
833
832
|
displayName: "Emoji__StyledEmoji",
|
|
834
833
|
componentId: "kitt-universal__sc-ggl6wj-0"
|
|
835
834
|
})(["width:", "px;height:", "px;"], function (_ref) {
|
|
@@ -869,20 +868,16 @@ var defaultOpenLinkBehavior = {
|
|
|
869
868
|
web: 'targetBlank'
|
|
870
869
|
};
|
|
871
870
|
|
|
872
|
-
var _excluded$
|
|
873
|
-
|
|
874
|
-
function ownKeys$h(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
875
|
-
|
|
876
|
-
function _objectSpread$h(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$h(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$h(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
871
|
+
var _excluded$c = ["as", "href", "openLinkBehavior", "onPress"];
|
|
877
872
|
function ExternalLink(_ref) {
|
|
878
873
|
var Component = _ref.as,
|
|
879
874
|
href = _ref.href,
|
|
880
875
|
_ref$openLinkBehavior = _ref.openLinkBehavior,
|
|
881
876
|
openLinkBehavior = _ref$openLinkBehavior === void 0 ? defaultOpenLinkBehavior : _ref$openLinkBehavior,
|
|
882
877
|
onPress = _ref.onPress,
|
|
883
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
878
|
+
rest = _objectWithoutProperties(_ref, _excluded$c);
|
|
884
879
|
|
|
885
|
-
return /*#__PURE__*/jsx(Component, _objectSpread
|
|
880
|
+
return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({}, rest), {}, {
|
|
886
881
|
href: href,
|
|
887
882
|
hrefAttrs: (openLinkBehavior === null || openLinkBehavior === void 0 ? void 0 : openLinkBehavior.web) === 'targetSelf' ? undefined : {
|
|
888
883
|
target: '_blank',
|
|
@@ -970,56 +965,77 @@ var button = {
|
|
|
970
965
|
}
|
|
971
966
|
},
|
|
972
967
|
contentPadding: {
|
|
973
|
-
"default": '
|
|
974
|
-
large: '
|
|
975
|
-
disabled: '
|
|
968
|
+
"default": '7px 16px 7px',
|
|
969
|
+
large: '11px 24px 11px',
|
|
970
|
+
disabled: '5px 14px 5px'
|
|
976
971
|
},
|
|
977
972
|
transition: {
|
|
978
973
|
duration: '200ms',
|
|
979
974
|
timingFunction: 'cubic-bezier(0.645, 0.045, 0.355, 1)'
|
|
980
975
|
},
|
|
981
976
|
"default": {
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
977
|
+
"default": {
|
|
978
|
+
backgroundColor: 'rgba(0, 0, 0, 0.05)',
|
|
979
|
+
pressedBackgroundColor: 'rgba(0, 0, 0, 0.1)',
|
|
980
|
+
hoverBackgroundColor: 'rgba(0, 0, 0, 0.1)',
|
|
981
|
+
focusBorderColor: 'rgba(0, 0, 0, 0.1)'
|
|
982
|
+
}
|
|
986
983
|
},
|
|
987
984
|
primary: {
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
985
|
+
"default": {
|
|
986
|
+
backgroundColor: colors.primary,
|
|
987
|
+
pressedBackgroundColor: colors.primaryLight,
|
|
988
|
+
hoverBackgroundColor: colors.primaryLight,
|
|
989
|
+
focusBorderColor: 'rgba(76, 52, 224, 0.2)'
|
|
990
|
+
},
|
|
991
|
+
ghost: {
|
|
992
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
993
|
+
pressedBackgroundColor: colors.uiBackground,
|
|
994
|
+
hoverBackgroundColor: colors.hover,
|
|
995
|
+
focusBorderColor: 'rgba(255,255,255, 0.4)',
|
|
996
|
+
color: colors.primary,
|
|
997
|
+
hoverColor: colors.hover,
|
|
998
|
+
activeColor: colors.hover
|
|
999
|
+
}
|
|
992
1000
|
},
|
|
993
1001
|
white: {
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
1002
|
+
"default": {
|
|
1003
|
+
backgroundColor: 'rgba(255, 255, 255, 0.05)',
|
|
1004
|
+
pressedBackgroundColor: 'rgba(255, 255, 255, 0.1)',
|
|
1005
|
+
hoverBackgroundColor: 'rgba(255, 255, 255, 0.1)',
|
|
1006
|
+
focusBorderColor: 'rgba(255, 255, 255, 0.1)'
|
|
1007
|
+
}
|
|
998
1008
|
},
|
|
999
1009
|
subtle: {
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1010
|
+
"default": {
|
|
1011
|
+
backgroundColor: colors.transparent,
|
|
1012
|
+
pressedBackgroundColor: colors.transparent,
|
|
1013
|
+
hoverBackgroundColor: colors.transparent,
|
|
1014
|
+
focusBorderColor: 'rgba(76, 52, 224, 0.2)',
|
|
1015
|
+
color: colors.primary,
|
|
1016
|
+
hoverColor: 'rgba(76, 52, 224, 0.8)',
|
|
1017
|
+
activeColor: 'rgba(76, 52, 224, 0.8)'
|
|
1018
|
+
}
|
|
1007
1019
|
},
|
|
1008
1020
|
'subtle-dark': {
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1021
|
+
"default": {
|
|
1022
|
+
backgroundColor: colors.transparent,
|
|
1023
|
+
pressedBackgroundColor: colors.transparent,
|
|
1024
|
+
hoverBackgroundColor: colors.transparent,
|
|
1025
|
+
focusBorderColor: 'rgba(0, 0, 0, 0.1)',
|
|
1026
|
+
color: colors.black,
|
|
1027
|
+
hoverColor: 'rgba(0, 0, 0, 0.8)',
|
|
1028
|
+
activeColor: 'rgba(0, 0, 0, 0.8)'
|
|
1029
|
+
}
|
|
1016
1030
|
},
|
|
1017
1031
|
disabled: {
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1032
|
+
"default": {
|
|
1033
|
+
backgroundColor: colors.disabled,
|
|
1034
|
+
pressedBackgroundColor: colors.disabled,
|
|
1035
|
+
hoverBackgroundColor: colors.disabled,
|
|
1036
|
+
focusBorderColor: lateOceanColorPalette.black100,
|
|
1037
|
+
borderColor: lateOceanColorPalette.black100
|
|
1038
|
+
}
|
|
1023
1039
|
}
|
|
1024
1040
|
};
|
|
1025
1041
|
|
|
@@ -1299,14 +1315,14 @@ var iconButton = {
|
|
|
1299
1315
|
},
|
|
1300
1316
|
disabled: {
|
|
1301
1317
|
scale: 1,
|
|
1302
|
-
backgroundColor: button.disabled.backgroundColor,
|
|
1303
|
-
borderColor: button.disabled.borderColor
|
|
1318
|
+
backgroundColor: button.disabled["default"].backgroundColor,
|
|
1319
|
+
borderColor: button.disabled["default"].borderColor
|
|
1304
1320
|
},
|
|
1305
1321
|
"default": {
|
|
1306
|
-
pressedBackgroundColor: button["default"].pressedBackgroundColor
|
|
1322
|
+
pressedBackgroundColor: button["default"]["default"].pressedBackgroundColor
|
|
1307
1323
|
},
|
|
1308
1324
|
white: {
|
|
1309
|
-
pressedBackgroundColor: button.white.hoverBackgroundColor
|
|
1325
|
+
pressedBackgroundColor: button.white["default"].hoverBackgroundColor
|
|
1310
1326
|
}
|
|
1311
1327
|
};
|
|
1312
1328
|
|
|
@@ -1495,11 +1511,11 @@ function useKittTheme() {
|
|
|
1495
1511
|
}, [dimensions]);
|
|
1496
1512
|
}
|
|
1497
1513
|
|
|
1498
|
-
var CheckboxAndLabelPressableWrapper = /*#__PURE__*/styled
|
|
1514
|
+
var CheckboxAndLabelPressableWrapper = /*#__PURE__*/styled(Pressable).withConfig({
|
|
1499
1515
|
displayName: "Checkbox__CheckboxAndLabelPressableWrapper",
|
|
1500
1516
|
componentId: "kitt-universal__sc-1sav1n6-0"
|
|
1501
|
-
})(["display:flex;flex-direction:row;
|
|
1502
|
-
var CheckboxContainer = /*#__PURE__*/styled
|
|
1517
|
+
})(["display:flex;flex-direction:row;"]);
|
|
1518
|
+
var CheckboxContainer = /*#__PURE__*/styled(View).withConfig({
|
|
1503
1519
|
displayName: "Checkbox__CheckboxContainer",
|
|
1504
1520
|
componentId: "kitt-universal__sc-1sav1n6-1"
|
|
1505
1521
|
})(["display:flex;flex-direction:row;align-items:center;justify-content:center;height:", "px;width:", "px;position:relative;border-radius:", "px;", " margin-right:", ";"], function (_ref) {
|
|
@@ -1604,11 +1620,11 @@ var styledTextInputMixin = /*#__PURE__*/css(["background-color:", ";border-width
|
|
|
1604
1620
|
return theme.kitt.typography.types.bodies.fontFamily.regular;
|
|
1605
1621
|
});
|
|
1606
1622
|
|
|
1607
|
-
var StyledTypographyText = /*#__PURE__*/styled
|
|
1623
|
+
var StyledTypographyText = /*#__PURE__*/styled(Typography.Text).withConfig({
|
|
1608
1624
|
displayName: "DatePickerInputPart__StyledTypographyText",
|
|
1609
1625
|
componentId: "kitt-universal__sc-11fmlmi-0"
|
|
1610
1626
|
})(["text-align:center;"]);
|
|
1611
|
-
var ViewInput = /*#__PURE__*/styled
|
|
1627
|
+
var ViewInput = /*#__PURE__*/styled(View).withConfig({
|
|
1612
1628
|
displayName: "DatePickerInputPart__ViewInput",
|
|
1613
1629
|
componentId: "kitt-universal__sc-11fmlmi-1"
|
|
1614
1630
|
})(["", " padding:", ";min-height:", "px;min-width:", ";"], styledTextInputMixin, function (_ref) {
|
|
@@ -1643,15 +1659,11 @@ function DatePickerInputPart(_ref4) {
|
|
|
1643
1659
|
});
|
|
1644
1660
|
}
|
|
1645
1661
|
|
|
1646
|
-
function ownKeys$g(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1647
|
-
|
|
1648
|
-
function _objectSpread$g(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$g(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$g(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1649
|
-
|
|
1650
1662
|
function prefixWithZero(value) {
|
|
1651
1663
|
return "".concat(value).padStart(2, '0');
|
|
1652
1664
|
}
|
|
1653
1665
|
|
|
1654
|
-
var PartContainer = /*#__PURE__*/styled
|
|
1666
|
+
var PartContainer = /*#__PURE__*/styled(View).withConfig({
|
|
1655
1667
|
displayName: "DatePickerInputs__PartContainer",
|
|
1656
1668
|
componentId: "kitt-universal__sc-j9hin5-0"
|
|
1657
1669
|
})(["margin-right:", ";", ";"], function (_ref) {
|
|
@@ -1662,7 +1674,7 @@ var PartContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
1662
1674
|
var $isStretch = _ref2.$isStretch;
|
|
1663
1675
|
return $isStretch ? css(["flex:0.33;flex-grow:1;"]) : undefined;
|
|
1664
1676
|
});
|
|
1665
|
-
var DatePickerPressable = /*#__PURE__*/styled
|
|
1677
|
+
var DatePickerPressable = /*#__PURE__*/styled(Pressable).withConfig({
|
|
1666
1678
|
displayName: "DatePickerInputs__DatePickerPressable",
|
|
1667
1679
|
componentId: "kitt-universal__sc-j9hin5-1"
|
|
1668
1680
|
})(["display:flex;flex-direction:row;", ";"], function (_ref3) {
|
|
@@ -1702,14 +1714,14 @@ function DatePickerInputs(_ref4) {
|
|
|
1702
1714
|
onPress: handleModalOpen,
|
|
1703
1715
|
children: [/*#__PURE__*/jsx(PartContainer, {
|
|
1704
1716
|
$isStretch: stretch,
|
|
1705
|
-
children: /*#__PURE__*/jsx(DatePickerInputPart, _objectSpread
|
|
1717
|
+
children: /*#__PURE__*/jsx(DatePickerInputPart, _objectSpread(_objectSpread({}, sharedPartProps), {}, {
|
|
1706
1718
|
partName: "day",
|
|
1707
1719
|
value: currentValue ? prefixWithZero(currentValue.getDate()) : undefined,
|
|
1708
1720
|
placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder.day
|
|
1709
1721
|
}))
|
|
1710
1722
|
}), /*#__PURE__*/jsx(PartContainer, {
|
|
1711
1723
|
$isStretch: stretch,
|
|
1712
|
-
children: /*#__PURE__*/jsx(DatePickerInputPart, _objectSpread
|
|
1724
|
+
children: /*#__PURE__*/jsx(DatePickerInputPart, _objectSpread(_objectSpread({}, sharedPartProps), {}, {
|
|
1713
1725
|
partName: "month",
|
|
1714
1726
|
value: currentValue ? prefixWithZero(currentValue.getMonth() + 1) : undefined,
|
|
1715
1727
|
placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder.month
|
|
@@ -1717,7 +1729,7 @@ function DatePickerInputs(_ref4) {
|
|
|
1717
1729
|
}), /*#__PURE__*/jsx(PartContainer, {
|
|
1718
1730
|
$isLast: true,
|
|
1719
1731
|
$isStretch: stretch,
|
|
1720
|
-
children: /*#__PURE__*/jsx(DatePickerInputPart, _objectSpread
|
|
1732
|
+
children: /*#__PURE__*/jsx(DatePickerInputPart, _objectSpread(_objectSpread({}, sharedPartProps), {}, {
|
|
1721
1733
|
partName: "year",
|
|
1722
1734
|
value: currentValue ? currentValue.getFullYear() : undefined,
|
|
1723
1735
|
placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder.year
|
|
@@ -1726,25 +1738,21 @@ function DatePickerInputs(_ref4) {
|
|
|
1726
1738
|
});
|
|
1727
1739
|
}
|
|
1728
1740
|
|
|
1729
|
-
var _excluded$
|
|
1730
|
-
|
|
1731
|
-
function ownKeys$f(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1732
|
-
|
|
1733
|
-
function _objectSpread$f(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$f(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$f(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1741
|
+
var _excluded$b = ["value"];
|
|
1734
1742
|
// This is not yet implemented
|
|
1735
1743
|
// We still display the inputs for chromatic
|
|
1736
1744
|
function DatePicker(_ref) {
|
|
1737
1745
|
var value = _ref.value,
|
|
1738
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1746
|
+
props = _objectWithoutProperties(_ref, _excluded$b);
|
|
1739
1747
|
|
|
1740
|
-
return /*#__PURE__*/jsx(DatePickerInputs, _objectSpread
|
|
1748
|
+
return /*#__PURE__*/jsx(DatePickerInputs, _objectSpread({
|
|
1741
1749
|
handleModalOpen: function handleModalOpen() {},
|
|
1742
1750
|
currentValue: value,
|
|
1743
1751
|
isFocused: false
|
|
1744
1752
|
}, props));
|
|
1745
1753
|
}
|
|
1746
1754
|
|
|
1747
|
-
var InputTextContainer = withTheme( /*#__PURE__*/styled("div")({
|
|
1755
|
+
var InputTextContainer = withTheme( /*#__PURE__*/styled$1("div")({
|
|
1748
1756
|
name: "InputTextContainer",
|
|
1749
1757
|
"class": "kitt-u_InputTextContainer_i1encr9g",
|
|
1750
1758
|
vars: {
|
|
@@ -1775,12 +1783,8 @@ var InputTextContainer = withTheme( /*#__PURE__*/styled("div")({
|
|
|
1775
1783
|
}
|
|
1776
1784
|
}));
|
|
1777
1785
|
|
|
1778
|
-
var _excluded$
|
|
1779
|
-
|
|
1780
|
-
function ownKeys$e(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1781
|
-
|
|
1782
|
-
function _objectSpread$e(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$e(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$e(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1783
|
-
var StyledTextInput = /*#__PURE__*/styled$1(TextInput).withConfig({
|
|
1786
|
+
var _excluded$a = ["id", "right", "minHeight", "state", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoCompleteType", "keyboardType", "onFocus", "onBlur"];
|
|
1787
|
+
var StyledTextInput = /*#__PURE__*/styled(TextInput).withConfig({
|
|
1784
1788
|
displayName: "InputText__StyledTextInput",
|
|
1785
1789
|
componentId: "kitt-universal__sc-uke279-0"
|
|
1786
1790
|
})(["", " padding:", ";line-height:", ";width:100%;min-height:", "px;"], styledTextInputMixin, function (_ref) {
|
|
@@ -1802,7 +1806,7 @@ var StyledTextInput = /*#__PURE__*/styled$1(TextInput).withConfig({
|
|
|
1802
1806
|
var $minHeight = _ref3.$minHeight;
|
|
1803
1807
|
return $minHeight;
|
|
1804
1808
|
});
|
|
1805
|
-
var RightInputContainer = /*#__PURE__*/styled
|
|
1809
|
+
var RightInputContainer = /*#__PURE__*/styled(View).withConfig({
|
|
1806
1810
|
displayName: "InputText__RightInputContainer",
|
|
1807
1811
|
componentId: "kitt-universal__sc-uke279-1"
|
|
1808
1812
|
})(["position:absolute;right:0;top:0;bottom:0;justify-content:center;padding:10px;"]);
|
|
@@ -1825,7 +1829,7 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref4, ref) {
|
|
|
1825
1829
|
keyboardType = _ref4$keyboardType === void 0 ? 'default' : _ref4$keyboardType,
|
|
1826
1830
|
_onFocus = _ref4.onFocus,
|
|
1827
1831
|
_onBlur = _ref4.onBlur,
|
|
1828
|
-
props = _objectWithoutProperties(_ref4, _excluded$
|
|
1832
|
+
props = _objectWithoutProperties(_ref4, _excluded$a);
|
|
1829
1833
|
|
|
1830
1834
|
var theme = /*#__PURE__*/useTheme();
|
|
1831
1835
|
|
|
@@ -1841,7 +1845,7 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref4, ref) {
|
|
|
1841
1845
|
});
|
|
1842
1846
|
return /*#__PURE__*/jsxs(InputTextContainer, {
|
|
1843
1847
|
$isDisabled: disabled,
|
|
1844
|
-
children: [/*#__PURE__*/jsx(StyledTextInput, _objectSpread
|
|
1848
|
+
children: [/*#__PURE__*/jsx(StyledTextInput, _objectSpread(_objectSpread({
|
|
1845
1849
|
ref: ref,
|
|
1846
1850
|
nativeID: id,
|
|
1847
1851
|
editable: !disabled,
|
|
@@ -1868,11 +1872,8 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref4, ref) {
|
|
|
1868
1872
|
});
|
|
1869
1873
|
});
|
|
1870
1874
|
|
|
1871
|
-
function ownKeys$d(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1872
|
-
|
|
1873
|
-
function _objectSpread$d(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$d(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$d(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1874
1875
|
function InputEmail(props) {
|
|
1875
|
-
return /*#__PURE__*/jsx(InputText, _objectSpread
|
|
1876
|
+
return /*#__PURE__*/jsx(InputText, _objectSpread({
|
|
1876
1877
|
autoCompleteType: "email",
|
|
1877
1878
|
keyboardType: "email-address",
|
|
1878
1879
|
textContentType: "emailAddress",
|
|
@@ -1903,11 +1904,11 @@ function InputFeedback(_ref) {
|
|
|
1903
1904
|
});
|
|
1904
1905
|
}
|
|
1905
1906
|
|
|
1906
|
-
var FieldContainer = /*#__PURE__*/styled
|
|
1907
|
+
var FieldContainer = /*#__PURE__*/styled(View).withConfig({
|
|
1907
1908
|
displayName: "InputField__FieldContainer",
|
|
1908
1909
|
componentId: "kitt-universal__sc-13fkixs-0"
|
|
1909
1910
|
})(["padding:5px 0 10px;"]);
|
|
1910
|
-
var FeedbackContainer = /*#__PURE__*/styled
|
|
1911
|
+
var FeedbackContainer = /*#__PURE__*/styled(View).withConfig({
|
|
1911
1912
|
displayName: "InputField__FeedbackContainer",
|
|
1912
1913
|
componentId: "kitt-universal__sc-13fkixs-1"
|
|
1913
1914
|
})(["", ";"], function (_ref) {
|
|
@@ -1916,14 +1917,14 @@ var FeedbackContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
1916
1917
|
minWidth: KittBreakpoints.SMALL
|
|
1917
1918
|
}, 'padding-top: 10px', 'padding-top: 5px');
|
|
1918
1919
|
});
|
|
1919
|
-
var FieldLabelContainer = /*#__PURE__*/styled
|
|
1920
|
+
var FieldLabelContainer = /*#__PURE__*/styled(View).withConfig({
|
|
1920
1921
|
displayName: "InputField__FieldLabelContainer",
|
|
1921
1922
|
componentId: "kitt-universal__sc-13fkixs-2"
|
|
1922
1923
|
})(["flex-direction:row;align-items:center;padding-bottom:", "px;"], function (_ref2) {
|
|
1923
1924
|
var theme = _ref2.theme;
|
|
1924
1925
|
return theme.kitt.forms.inputField.labelContainerPaddingBottom;
|
|
1925
1926
|
});
|
|
1926
|
-
var LabelContainer = /*#__PURE__*/styled
|
|
1927
|
+
var LabelContainer = /*#__PURE__*/styled(View).withConfig({
|
|
1927
1928
|
displayName: "InputField__LabelContainer",
|
|
1928
1929
|
componentId: "kitt-universal__sc-13fkixs-3"
|
|
1929
1930
|
})(["margin-right:", "px;"], function (_ref3) {
|
|
@@ -1974,31 +1975,24 @@ function InputIcon(_ref) {
|
|
|
1974
1975
|
});
|
|
1975
1976
|
}
|
|
1976
1977
|
|
|
1977
|
-
function ownKeys$c(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1978
|
-
|
|
1979
|
-
function _objectSpread$c(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$c(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$c(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1980
1978
|
function InputPressable(_ref) {
|
|
1981
1979
|
var props = _extends({}, _ref);
|
|
1982
1980
|
|
|
1983
|
-
return /*#__PURE__*/jsx(Pressable, _objectSpread
|
|
1981
|
+
return /*#__PURE__*/jsx(Pressable, _objectSpread({}, props));
|
|
1984
1982
|
}
|
|
1985
1983
|
|
|
1986
|
-
var _excluded$
|
|
1987
|
-
|
|
1988
|
-
function ownKeys$b(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1989
|
-
|
|
1990
|
-
function _objectSpread$b(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$b(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$b(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1984
|
+
var _excluded$9 = ["isPasswordDefaultVisible", "right"];
|
|
1991
1985
|
function InputPassword(_ref) {
|
|
1992
1986
|
var isPasswordDefaultVisible = _ref.isPasswordDefaultVisible,
|
|
1993
1987
|
right = _ref.right,
|
|
1994
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1988
|
+
props = _objectWithoutProperties(_ref, _excluded$9);
|
|
1995
1989
|
|
|
1996
1990
|
var _useState = useState(Boolean(isPasswordDefaultVisible)),
|
|
1997
1991
|
_useState2 = _slicedToArray(_useState, 2),
|
|
1998
1992
|
isVisible = _useState2[0],
|
|
1999
1993
|
setIsVisible = _useState2[1];
|
|
2000
1994
|
|
|
2001
|
-
return /*#__PURE__*/jsx(InputText, _objectSpread
|
|
1995
|
+
return /*#__PURE__*/jsx(InputText, _objectSpread(_objectSpread({}, props), {}, {
|
|
2002
1996
|
textContentType: "password",
|
|
2003
1997
|
autoCompleteType: "password",
|
|
2004
1998
|
autoCorrect: false,
|
|
@@ -2017,11 +2011,8 @@ function InputPassword(_ref) {
|
|
|
2017
2011
|
}));
|
|
2018
2012
|
}
|
|
2019
2013
|
|
|
2020
|
-
function ownKeys$a(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2021
|
-
|
|
2022
|
-
function _objectSpread$a(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$a(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$a(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2023
2014
|
function InputPhone(props) {
|
|
2024
|
-
return /*#__PURE__*/jsx(InputText, _objectSpread
|
|
2015
|
+
return /*#__PURE__*/jsx(InputText, _objectSpread(_objectSpread({}, props), {}, {
|
|
2025
2016
|
autoCompleteType: "tel",
|
|
2026
2017
|
keyboardType: "number-pad",
|
|
2027
2018
|
textContentType: "telephoneNumber"
|
|
@@ -2032,7 +2023,7 @@ var getTypographyColor = function (type) {
|
|
|
2032
2023
|
return type ? 'white' : 'black';
|
|
2033
2024
|
};
|
|
2034
2025
|
|
|
2035
|
-
var InputTagContainer = /*#__PURE__*/styled
|
|
2026
|
+
var InputTagContainer = /*#__PURE__*/styled(View).withConfig({
|
|
2036
2027
|
displayName: "InputTag__InputTagContainer",
|
|
2037
2028
|
componentId: "kitt-universal__sc-1511dsf-0"
|
|
2038
2029
|
})(["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) {
|
|
@@ -2055,7 +2046,7 @@ var InputTagContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
2055
2046
|
var theme = _ref3.theme;
|
|
2056
2047
|
return theme.kitt.forms.inputTag.borderRadius;
|
|
2057
2048
|
});
|
|
2058
|
-
var IconContainer = /*#__PURE__*/styled
|
|
2049
|
+
var IconContainer = /*#__PURE__*/styled(View).withConfig({
|
|
2059
2050
|
displayName: "InputTag__IconContainer",
|
|
2060
2051
|
componentId: "kitt-universal__sc-1511dsf-1"
|
|
2061
2052
|
})(["margin-right:", "px;"], function (_ref4) {
|
|
@@ -2096,7 +2087,7 @@ function Label(_ref) {
|
|
|
2096
2087
|
});
|
|
2097
2088
|
}
|
|
2098
2089
|
|
|
2099
|
-
var OuterRadio = /*#__PURE__*/styled
|
|
2090
|
+
var OuterRadio = /*#__PURE__*/styled(View).withConfig({
|
|
2100
2091
|
displayName: "Radio__OuterRadio",
|
|
2101
2092
|
componentId: "kitt-universal__sc-1mdgr2o-0"
|
|
2102
2093
|
})(["background-color:", ";width:", "px;height:", "px;border-radius:", "px;border-width:", "px;border-color:", ";"], function (_ref) {
|
|
@@ -2120,7 +2111,7 @@ var OuterRadio = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
2120
2111
|
disabled = _ref6.disabled;
|
|
2121
2112
|
return theme.kitt.forms.radio[disabled ? 'disabled' : 'unchecked'].borderColor;
|
|
2122
2113
|
});
|
|
2123
|
-
var SelectedOuterRadio = /*#__PURE__*/styled
|
|
2114
|
+
var SelectedOuterRadio = /*#__PURE__*/styled(View).withConfig({
|
|
2124
2115
|
displayName: "Radio__SelectedOuterRadio",
|
|
2125
2116
|
componentId: "kitt-universal__sc-1mdgr2o-1"
|
|
2126
2117
|
})(["background-color:", ";width:", "px;height:", "px;border-radius:", "px;justify-content:center;align-items:center;"], function (_ref7) {
|
|
@@ -2136,7 +2127,7 @@ var SelectedOuterRadio = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
2136
2127
|
var theme = _ref10.theme;
|
|
2137
2128
|
return theme.kitt.forms.radio.size / 2;
|
|
2138
2129
|
});
|
|
2139
|
-
var SelectedInnerRadio = /*#__PURE__*/styled
|
|
2130
|
+
var SelectedInnerRadio = /*#__PURE__*/styled(View).withConfig({
|
|
2140
2131
|
displayName: "Radio__SelectedInnerRadio",
|
|
2141
2132
|
componentId: "kitt-universal__sc-1mdgr2o-2"
|
|
2142
2133
|
})(["background-color:", ";width:", "px;height:", "px;border-radius:", "px;"], function (_ref11) {
|
|
@@ -2152,11 +2143,11 @@ var SelectedInnerRadio = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
2152
2143
|
var theme = _ref14.theme;
|
|
2153
2144
|
return theme.kitt.forms.radio.checked.innerSize / 2;
|
|
2154
2145
|
});
|
|
2155
|
-
var Container$2 = /*#__PURE__*/styled
|
|
2146
|
+
var Container$2 = /*#__PURE__*/styled(Pressable).withConfig({
|
|
2156
2147
|
displayName: "Radio__Container",
|
|
2157
2148
|
componentId: "kitt-universal__sc-1mdgr2o-3"
|
|
2158
2149
|
})(["flex-direction:row;align-items:center;"]);
|
|
2159
|
-
var Text = /*#__PURE__*/styled
|
|
2150
|
+
var Text = /*#__PURE__*/styled(Typography.Text).withConfig({
|
|
2160
2151
|
displayName: "Radio__Text",
|
|
2161
2152
|
componentId: "kitt-universal__sc-1mdgr2o-4"
|
|
2162
2153
|
})(["margin-left:", "px;"], function (_ref15) {
|
|
@@ -2192,21 +2183,18 @@ function Radio(_ref16) {
|
|
|
2192
2183
|
});
|
|
2193
2184
|
}
|
|
2194
2185
|
|
|
2195
|
-
function ownKeys$9(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2196
|
-
|
|
2197
|
-
function _objectSpread$9(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$9(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$9(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2198
2186
|
function TextArea(_ref) {
|
|
2199
2187
|
var props = _extends({}, _ref);
|
|
2200
2188
|
|
|
2201
2189
|
var theme = /*#__PURE__*/useTheme();
|
|
2202
|
-
return /*#__PURE__*/jsx(InputText, _objectSpread
|
|
2190
|
+
return /*#__PURE__*/jsx(InputText, _objectSpread({
|
|
2203
2191
|
multiline: true,
|
|
2204
2192
|
textAlignVertical: "top",
|
|
2205
2193
|
minHeight: theme.kitt.forms.textArea.minHeight
|
|
2206
2194
|
}, props));
|
|
2207
2195
|
}
|
|
2208
2196
|
|
|
2209
|
-
var Body = /*#__PURE__*/styled
|
|
2197
|
+
var Body = /*#__PURE__*/styled(View).withConfig({
|
|
2210
2198
|
displayName: "Body",
|
|
2211
2199
|
componentId: "kitt-universal__sc-1ofncfn-0"
|
|
2212
2200
|
})(["", " background-color:", ";flex:1;"], function (_ref) {
|
|
@@ -2225,7 +2213,7 @@ function FullScreenModalBody(_ref3) {
|
|
|
2225
2213
|
});
|
|
2226
2214
|
}
|
|
2227
2215
|
|
|
2228
|
-
var SideContainer = /*#__PURE__*/styled
|
|
2216
|
+
var SideContainer = /*#__PURE__*/styled(View).withConfig({
|
|
2229
2217
|
displayName: "Header__SideContainer",
|
|
2230
2218
|
componentId: "kitt-universal__sc-dfmxi1-0"
|
|
2231
2219
|
})(["", ""], function (_ref) {
|
|
@@ -2245,7 +2233,7 @@ function getHeaderHorizontalMediumPadding(spacing) {
|
|
|
2245
2233
|
return spacing * 6;
|
|
2246
2234
|
}
|
|
2247
2235
|
|
|
2248
|
-
var Header = /*#__PURE__*/styled
|
|
2236
|
+
var Header = /*#__PURE__*/styled(View).withConfig({
|
|
2249
2237
|
displayName: "Header",
|
|
2250
2238
|
componentId: "kitt-universal__sc-dfmxi1-1"
|
|
2251
2239
|
})(["", ";border-bottom-color:", ";border-bottom-width:1px;flex-direction:row;align-items:center;"], function (_ref2) {
|
|
@@ -2263,7 +2251,7 @@ var Header = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
2263
2251
|
var theme = _ref3.theme;
|
|
2264
2252
|
return theme.kitt.fullScreenModal.header.borderColor;
|
|
2265
2253
|
});
|
|
2266
|
-
var HeaderContent = /*#__PURE__*/styled
|
|
2254
|
+
var HeaderContent = /*#__PURE__*/styled(View).withConfig({
|
|
2267
2255
|
displayName: "Header__HeaderContent",
|
|
2268
2256
|
componentId: "kitt-universal__sc-dfmxi1-2"
|
|
2269
2257
|
})(["", ";", ";justify-content:center;align-items:center;"], function (_ref4) {
|
|
@@ -2353,7 +2341,7 @@ function FullScreenModalHeader(_ref6) {
|
|
|
2353
2341
|
});
|
|
2354
2342
|
}
|
|
2355
2343
|
|
|
2356
|
-
var Container$1 = /*#__PURE__*/styled
|
|
2344
|
+
var Container$1 = /*#__PURE__*/styled(View).withConfig({
|
|
2357
2345
|
displayName: "FullScreenModal__Container",
|
|
2358
2346
|
componentId: "kitt-universal__sc-11qpbe3-0"
|
|
2359
2347
|
})(["flex:1;background-color:", ";"], function (_ref) {
|
|
@@ -2369,28 +2357,43 @@ function FullScreenModal(_ref2) {
|
|
|
2369
2357
|
FullScreenModal.Header = FullScreenModalHeader;
|
|
2370
2358
|
FullScreenModal.Body = FullScreenModalBody;
|
|
2371
2359
|
|
|
2372
|
-
var
|
|
2373
|
-
|
|
2374
|
-
|
|
2360
|
+
var StyledSpinningIconContainer = withTheme( /*#__PURE__*/styled$1("div")({
|
|
2361
|
+
name: "StyledSpinningIconContainer",
|
|
2362
|
+
"class": "kitt-u_StyledSpinningIconContainer_ssn8o83"
|
|
2363
|
+
}));
|
|
2364
|
+
function SpinningIcon(_ref) {
|
|
2365
|
+
var icon = _ref.icon,
|
|
2366
|
+
_ref$size = _ref.size,
|
|
2367
|
+
size = _ref$size === void 0 ? defaultIconSize : _ref$size,
|
|
2368
|
+
align = _ref.align,
|
|
2369
|
+
color = _ref.color;
|
|
2370
|
+
var clonedIcon = /*#__PURE__*/cloneElement(icon, {
|
|
2371
|
+
color: color
|
|
2372
|
+
});
|
|
2373
|
+
return /*#__PURE__*/jsx(IconContainer$1, {
|
|
2374
|
+
$align: align,
|
|
2375
|
+
$size: size,
|
|
2376
|
+
$color: color,
|
|
2377
|
+
children: /*#__PURE__*/jsx(StyledSpinningIconContainer, {
|
|
2378
|
+
children: clonedIcon
|
|
2379
|
+
})
|
|
2380
|
+
});
|
|
2381
|
+
}
|
|
2375
2382
|
|
|
2376
|
-
|
|
2383
|
+
var _excluded$8 = ["as", "children"];
|
|
2377
2384
|
function StyleWebWrapper(_ref) {
|
|
2378
2385
|
var as = _ref.as,
|
|
2379
2386
|
children = _ref.children,
|
|
2380
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2387
|
+
props = _objectWithoutProperties(_ref, _excluded$8);
|
|
2381
2388
|
|
|
2382
2389
|
// as or default to div. If as is undefined, T is div but typescript is not sure
|
|
2383
|
-
return /*#__PURE__*/jsx(as || 'div', _objectSpread
|
|
2390
|
+
return /*#__PURE__*/jsx(as || 'div', _objectSpread(_objectSpread({}, props), {}, {
|
|
2384
2391
|
children: children
|
|
2385
2392
|
}));
|
|
2386
2393
|
}
|
|
2387
2394
|
|
|
2388
|
-
var _excluded$
|
|
2389
|
-
|
|
2390
|
-
function ownKeys$7(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2391
|
-
|
|
2392
|
-
function _objectSpread$7(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$7(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$7(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2393
|
-
var PressableIconButtonWebWrapper = withTheme( /*#__PURE__*/styled("div")({
|
|
2395
|
+
var _excluded$7 = ["color", "disabled"];
|
|
2396
|
+
var PressableIconButtonWebWrapper = withTheme( /*#__PURE__*/styled$1("div")({
|
|
2394
2397
|
name: "PressableIconButtonWebWrapper",
|
|
2395
2398
|
"class": "kitt-u_PressableIconButtonWebWrapper_p1nlccvg",
|
|
2396
2399
|
vars: {
|
|
@@ -2422,7 +2425,7 @@ var PressableIconButtonWebWrapper = withTheme( /*#__PURE__*/styled("div")({
|
|
|
2422
2425
|
}]
|
|
2423
2426
|
}
|
|
2424
2427
|
}));
|
|
2425
|
-
var StyledPressableIconButton = /*#__PURE__*/styled
|
|
2428
|
+
var StyledPressableIconButton = /*#__PURE__*/styled(Pressable).withConfig({
|
|
2426
2429
|
displayName: "PressableIconButton__StyledPressableIconButton",
|
|
2427
2430
|
componentId: "kitt-universal__sc-1m6jo3s-0"
|
|
2428
2431
|
})(["border-radius:", "px;width:", "px;height:", "px;align-items:center;justify-content:center;position:relative;background-color:transparent;", ";"], function (_ref5) {
|
|
@@ -2449,13 +2452,13 @@ var StyledPressableIconButton = /*#__PURE__*/styled$1(Pressable).withConfig({
|
|
|
2449
2452
|
function PressableIconButton(_ref9) {
|
|
2450
2453
|
var color = _ref9.color,
|
|
2451
2454
|
disabled = _ref9.disabled,
|
|
2452
|
-
props = _objectWithoutProperties(_ref9, _excluded$
|
|
2455
|
+
props = _objectWithoutProperties(_ref9, _excluded$7);
|
|
2453
2456
|
|
|
2454
2457
|
return /*#__PURE__*/jsx(StyleWebWrapper, {
|
|
2455
2458
|
as: PressableIconButtonWebWrapper,
|
|
2456
2459
|
$isWhite: color === 'white',
|
|
2457
2460
|
$isDisabled: Boolean(disabled),
|
|
2458
|
-
children: /*#__PURE__*/jsx(StyledPressableIconButton, _objectSpread
|
|
2461
|
+
children: /*#__PURE__*/jsx(StyledPressableIconButton, _objectSpread(_objectSpread({}, props), {}, {
|
|
2459
2462
|
disabled: disabled
|
|
2460
2463
|
}))
|
|
2461
2464
|
});
|
|
@@ -2475,7 +2478,7 @@ function PressableAnimatedContainer(_ref) {
|
|
|
2475
2478
|
});
|
|
2476
2479
|
}
|
|
2477
2480
|
|
|
2478
|
-
var IconButtonContentBorder = /*#__PURE__*/styled
|
|
2481
|
+
var IconButtonContentBorder = /*#__PURE__*/styled(View).withConfig({
|
|
2479
2482
|
displayName: "IconButton__IconButtonContentBorder",
|
|
2480
2483
|
componentId: "kitt-universal__sc-swelbf-0"
|
|
2481
2484
|
})(["border:", ";border-color:", ";width:", "px;height:", "px;align-items:center;justify-content:center;border-radius:", "px;"], function (_ref) {
|
|
@@ -2532,31 +2535,23 @@ function IconButton(_ref7) {
|
|
|
2532
2535
|
});
|
|
2533
2536
|
}
|
|
2534
2537
|
|
|
2535
|
-
var _excluded$
|
|
2536
|
-
|
|
2537
|
-
function ownKeys$6(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2538
|
-
|
|
2539
|
-
function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$6(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$6(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2540
|
-
var ContentView$1 = /*#__PURE__*/styled$1(View).withConfig({
|
|
2538
|
+
var _excluded$6 = ["children"];
|
|
2539
|
+
var ContentView$1 = /*#__PURE__*/styled(View).withConfig({
|
|
2541
2540
|
displayName: "ListItemContent__ContentView",
|
|
2542
2541
|
componentId: "kitt-universal__sc-57q0u9-0"
|
|
2543
2542
|
})(["flex:1 0 0%;align-self:center;"]);
|
|
2544
2543
|
function ListItemContent(_ref) {
|
|
2545
2544
|
var children = _ref.children,
|
|
2546
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
2545
|
+
rest = _objectWithoutProperties(_ref, _excluded$6);
|
|
2547
2546
|
|
|
2548
|
-
return /*#__PURE__*/jsx(ContentView$1, _objectSpread
|
|
2547
|
+
return /*#__PURE__*/jsx(ContentView$1, _objectSpread(_objectSpread({}, rest), {}, {
|
|
2549
2548
|
children: children
|
|
2550
2549
|
}));
|
|
2551
2550
|
}
|
|
2552
2551
|
|
|
2553
|
-
var _excluded$
|
|
2554
|
-
_excluded2$
|
|
2555
|
-
|
|
2556
|
-
function ownKeys$5(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2557
|
-
|
|
2558
|
-
function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$5(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2559
|
-
var SideContainerView = /*#__PURE__*/styled$1(View).withConfig({
|
|
2552
|
+
var _excluded$5 = ["children", "side"],
|
|
2553
|
+
_excluded2$2 = ["children", "align"];
|
|
2554
|
+
var SideContainerView = /*#__PURE__*/styled(View).withConfig({
|
|
2560
2555
|
displayName: "ListItemSideContent__SideContainerView",
|
|
2561
2556
|
componentId: "kitt-universal__sc-1vajiw-0"
|
|
2562
2557
|
})(["flex-direction:row;margin-left:", ";margin-right:", ";"], function (_ref) {
|
|
@@ -2573,15 +2568,15 @@ function ListItemSideContainer(_ref3) {
|
|
|
2573
2568
|
var children = _ref3.children,
|
|
2574
2569
|
_ref3$side = _ref3.side,
|
|
2575
2570
|
side = _ref3$side === void 0 ? 'left' : _ref3$side,
|
|
2576
|
-
rest = _objectWithoutProperties(_ref3, _excluded$
|
|
2571
|
+
rest = _objectWithoutProperties(_ref3, _excluded$5);
|
|
2577
2572
|
|
|
2578
|
-
return /*#__PURE__*/jsx(SideContainerView, _objectSpread
|
|
2573
|
+
return /*#__PURE__*/jsx(SideContainerView, _objectSpread(_objectSpread({
|
|
2579
2574
|
side: side
|
|
2580
2575
|
}, rest), {}, {
|
|
2581
2576
|
children: children
|
|
2582
2577
|
}));
|
|
2583
2578
|
}
|
|
2584
|
-
var SideContentView = /*#__PURE__*/styled
|
|
2579
|
+
var SideContentView = /*#__PURE__*/styled(View).withConfig({
|
|
2585
2580
|
displayName: "ListItemSideContent__SideContentView",
|
|
2586
2581
|
componentId: "kitt-universal__sc-1vajiw-1"
|
|
2587
2582
|
})(["align-self:", ";"], function (_ref4) {
|
|
@@ -2592,21 +2587,17 @@ function ListItemSideContent(_ref5) {
|
|
|
2592
2587
|
var children = _ref5.children,
|
|
2593
2588
|
_ref5$align = _ref5.align,
|
|
2594
2589
|
align = _ref5$align === void 0 ? 'auto' : _ref5$align,
|
|
2595
|
-
rest = _objectWithoutProperties(_ref5, _excluded2$
|
|
2590
|
+
rest = _objectWithoutProperties(_ref5, _excluded2$2);
|
|
2596
2591
|
|
|
2597
|
-
return /*#__PURE__*/jsx(SideContentView, _objectSpread
|
|
2592
|
+
return /*#__PURE__*/jsx(SideContentView, _objectSpread(_objectSpread({
|
|
2598
2593
|
align: align
|
|
2599
2594
|
}, rest), {}, {
|
|
2600
2595
|
children: children
|
|
2601
2596
|
}));
|
|
2602
2597
|
}
|
|
2603
2598
|
|
|
2604
|
-
var _excluded$
|
|
2605
|
-
|
|
2606
|
-
function ownKeys$4(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2607
|
-
|
|
2608
|
-
function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$4(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2609
|
-
var ContainerView = /*#__PURE__*/styled$1(View).withConfig({
|
|
2599
|
+
var _excluded$4 = ["children", "withPadding", "borders", "left", "right", "onPress"];
|
|
2600
|
+
var ContainerView = /*#__PURE__*/styled(View).withConfig({
|
|
2610
2601
|
displayName: "ListItem__ContainerView",
|
|
2611
2602
|
componentId: "kitt-universal__sc-2afp9s-0"
|
|
2612
2603
|
})(["flex-direction:row;padding:", ";", ";border-color:", ";background-color:", ";"], function (_ref) {
|
|
@@ -2645,16 +2636,16 @@ function ListItem(_ref5) {
|
|
|
2645
2636
|
left = _ref5.left,
|
|
2646
2637
|
right = _ref5.right,
|
|
2647
2638
|
onPress = _ref5.onPress,
|
|
2648
|
-
rest = _objectWithoutProperties(_ref5, _excluded$
|
|
2639
|
+
rest = _objectWithoutProperties(_ref5, _excluded$4);
|
|
2649
2640
|
|
|
2650
2641
|
var Wrapper = onPress ? Pressable : Fragment;
|
|
2651
|
-
var wrapperProps = onPress ? _objectSpread
|
|
2642
|
+
var wrapperProps = onPress ? _objectSpread({
|
|
2652
2643
|
accessibilityRole: 'button',
|
|
2653
2644
|
onPress: onPress
|
|
2654
2645
|
}, rest) : undefined;
|
|
2655
2646
|
var containerProps = onPress ? undefined : rest;
|
|
2656
|
-
return /*#__PURE__*/jsx(Wrapper, _objectSpread
|
|
2657
|
-
children: /*#__PURE__*/jsxs(ContainerView, _objectSpread
|
|
2647
|
+
return /*#__PURE__*/jsx(Wrapper, _objectSpread(_objectSpread({}, wrapperProps), {}, {
|
|
2648
|
+
children: /*#__PURE__*/jsxs(ContainerView, _objectSpread(_objectSpread({
|
|
2658
2649
|
withPadding: withPadding,
|
|
2659
2650
|
borders: borders
|
|
2660
2651
|
}, containerProps), {}, {
|
|
@@ -2674,7 +2665,7 @@ ListItem.Content = ListItemContent;
|
|
|
2674
2665
|
ListItem.SideContent = ListItemSideContent;
|
|
2675
2666
|
ListItem.SideContainer = ListItemSideContainer;
|
|
2676
2667
|
|
|
2677
|
-
var LargeLoaderContainer = withTheme( /*#__PURE__*/styled("div")({
|
|
2668
|
+
var LargeLoaderContainer = withTheme( /*#__PURE__*/styled$1("div")({
|
|
2678
2669
|
name: "LargeLoaderContainer",
|
|
2679
2670
|
"class": "kitt-u_LargeLoaderContainer_l2im3sa",
|
|
2680
2671
|
vars: {
|
|
@@ -2714,13 +2705,45 @@ function LargeLoader() {
|
|
|
2714
2705
|
});
|
|
2715
2706
|
}
|
|
2716
2707
|
|
|
2708
|
+
var _excluded$3 = ["color"],
|
|
2709
|
+
_excluded2$1 = ["color"];
|
|
2710
|
+
|
|
2711
|
+
function TypographySpinningIconSpecifiedColor(_ref) {
|
|
2712
|
+
var color = _ref.color,
|
|
2713
|
+
props = _objectWithoutProperties(_ref, _excluded$3);
|
|
2714
|
+
|
|
2715
|
+
var theme = /*#__PURE__*/useTheme();
|
|
2716
|
+
return /*#__PURE__*/jsx(SpinningIcon, _objectSpread(_objectSpread({}, props), {}, {
|
|
2717
|
+
color: color === 'inherit' ? 'inherit' : theme.kitt.typography.colors[color]
|
|
2718
|
+
}));
|
|
2719
|
+
}
|
|
2720
|
+
|
|
2721
|
+
function TypographySpinningIconInheritColor(props) {
|
|
2722
|
+
var color = useTypographyColor();
|
|
2723
|
+
return /*#__PURE__*/jsx(TypographySpinningIconSpecifiedColor, _objectSpread({
|
|
2724
|
+
color: color
|
|
2725
|
+
}, props));
|
|
2726
|
+
}
|
|
2727
|
+
|
|
2728
|
+
function TypographySpinningIcon(_ref2) {
|
|
2729
|
+
var color = _ref2.color,
|
|
2730
|
+
props = _objectWithoutProperties(_ref2, _excluded2$1);
|
|
2731
|
+
|
|
2732
|
+
if (color) {
|
|
2733
|
+
return /*#__PURE__*/jsx(TypographySpinningIconSpecifiedColor, _objectSpread({
|
|
2734
|
+
color: color
|
|
2735
|
+
}, props));
|
|
2736
|
+
}
|
|
2737
|
+
|
|
2738
|
+
return /*#__PURE__*/jsx(TypographySpinningIconInheritColor, _objectSpread({}, props));
|
|
2739
|
+
}
|
|
2740
|
+
|
|
2717
2741
|
function Loader(_ref) {
|
|
2718
2742
|
var _ref$color = _ref.color,
|
|
2719
2743
|
color = _ref$color === void 0 ? 'primary' : _ref$color,
|
|
2720
2744
|
_ref$size = _ref.size,
|
|
2721
2745
|
size = _ref$size === void 0 ? 20 : _ref$size;
|
|
2722
|
-
return /*#__PURE__*/jsx(
|
|
2723
|
-
spin: true,
|
|
2746
|
+
return /*#__PURE__*/jsx(TypographySpinningIcon, {
|
|
2724
2747
|
color: color,
|
|
2725
2748
|
size: size,
|
|
2726
2749
|
icon: /*#__PURE__*/jsx(LoaderIcon, {})
|
|
@@ -2779,7 +2802,7 @@ var getIconButtonColor = function (messageType) {
|
|
|
2779
2802
|
}
|
|
2780
2803
|
};
|
|
2781
2804
|
|
|
2782
|
-
var StyledMessageContainer = /*#__PURE__*/styled
|
|
2805
|
+
var StyledMessageContainer = /*#__PURE__*/styled(View).withConfig({
|
|
2783
2806
|
displayName: "BaseMessage__StyledMessageContainer",
|
|
2784
2807
|
componentId: "kitt-universal__sc-eepeiz-0"
|
|
2785
2808
|
})(["flex-direction:row;align-items:flex-start;justify-content:space-between;min-height:60px;padding-top:", "px;border-radius:", "px;background-color:", ";"], function (_ref) {
|
|
@@ -2796,7 +2819,7 @@ var StyledMessageContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
2796
2819
|
$type = _ref3.$type;
|
|
2797
2820
|
return theme.kitt.feedbackMessage[$type].backgroundColor;
|
|
2798
2821
|
});
|
|
2799
|
-
var StyledDismissWrapper = /*#__PURE__*/styled
|
|
2822
|
+
var StyledDismissWrapper = /*#__PURE__*/styled(View).withConfig({
|
|
2800
2823
|
displayName: "BaseMessage__StyledDismissWrapper",
|
|
2801
2824
|
componentId: "kitt-universal__sc-eepeiz-1"
|
|
2802
2825
|
})(["align-items:center;align-items:flex-start;margin:", ";"], function (_ref4) {
|
|
@@ -2804,7 +2827,7 @@ var StyledDismissWrapper = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
2804
2827
|
var spacing = theme.kitt.spacing;
|
|
2805
2828
|
return "".concat(spacing * 2.5, "px ").concat(spacing * 2, "px 0 ").concat(spacing * 5, "px");
|
|
2806
2829
|
});
|
|
2807
|
-
var StyledIconContainer = /*#__PURE__*/styled
|
|
2830
|
+
var StyledIconContainer = /*#__PURE__*/styled(View).withConfig({
|
|
2808
2831
|
displayName: "BaseMessage__StyledIconContainer",
|
|
2809
2832
|
componentId: "kitt-universal__sc-eepeiz-2"
|
|
2810
2833
|
})(["margin:", ";"], function (_ref5) {
|
|
@@ -2812,14 +2835,14 @@ var StyledIconContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
2812
2835
|
var spacing = theme.kitt.spacing;
|
|
2813
2836
|
return "".concat(spacing, "px ").concat(spacing * 5, "px 0 0");
|
|
2814
2837
|
});
|
|
2815
|
-
var StyledTextContent = /*#__PURE__*/styled
|
|
2838
|
+
var StyledTextContent = /*#__PURE__*/styled(Typography.Text).withConfig({
|
|
2816
2839
|
displayName: "BaseMessage__StyledTextContent",
|
|
2817
2840
|
componentId: "kitt-universal__sc-eepeiz-3"
|
|
2818
2841
|
})(["flex:1;text-align:", ";"], function (_ref6) {
|
|
2819
2842
|
var $isCenteredText = _ref6.$isCenteredText;
|
|
2820
2843
|
return $isCenteredText ? 'center' : 'left';
|
|
2821
2844
|
});
|
|
2822
|
-
var StyledMessageContent = /*#__PURE__*/styled
|
|
2845
|
+
var StyledMessageContent = /*#__PURE__*/styled(View).withConfig({
|
|
2823
2846
|
displayName: "BaseMessage__StyledMessageContent",
|
|
2824
2847
|
componentId: "kitt-universal__sc-eepeiz-4"
|
|
2825
2848
|
})(["display:flex;flex-direction:row;flex-grow:1;align-self:center;align-items:flex-start;flex-shrink:1;padding:", ";"], function (_ref7) {
|
|
@@ -2883,16 +2906,13 @@ function Message(_ref) {
|
|
|
2883
2906
|
});
|
|
2884
2907
|
}
|
|
2885
2908
|
|
|
2886
|
-
function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2887
|
-
|
|
2888
|
-
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2889
2909
|
// Don't use styled.Pressable here - babel-plugin-styled-components-react-native-web only supports tagged templates
|
|
2890
|
-
var OverlayPressable = /*#__PURE__*/styled
|
|
2910
|
+
var OverlayPressable = /*#__PURE__*/styled(Pressable).withConfig({
|
|
2891
2911
|
displayName: "Overlay__OverlayPressable",
|
|
2892
2912
|
componentId: "kitt-universal__sc-1cz1gbr-0"
|
|
2893
2913
|
})(function (_ref) {
|
|
2894
2914
|
var theme = _ref.theme;
|
|
2895
|
-
return _objectSpread
|
|
2915
|
+
return _objectSpread(_objectSpread({}, StyleSheet.absoluteFillObject), {}, {
|
|
2896
2916
|
backgroundColor: theme.kitt.colors.overlay.dark
|
|
2897
2917
|
});
|
|
2898
2918
|
});
|
|
@@ -2905,7 +2925,7 @@ function Overlay(_ref2) {
|
|
|
2905
2925
|
});
|
|
2906
2926
|
}
|
|
2907
2927
|
|
|
2908
|
-
var BodyView = /*#__PURE__*/styled
|
|
2928
|
+
var BodyView = /*#__PURE__*/styled(View).withConfig({
|
|
2909
2929
|
displayName: "Body__BodyView",
|
|
2910
2930
|
componentId: "kitt-universal__sc-17fwpo4-0"
|
|
2911
2931
|
})(["padding:", "px ", "px;"], function (_ref) {
|
|
@@ -2924,7 +2944,7 @@ function ModalBody(_ref3) {
|
|
|
2924
2944
|
});
|
|
2925
2945
|
}
|
|
2926
2946
|
|
|
2927
|
-
var FooterView = /*#__PURE__*/styled
|
|
2947
|
+
var FooterView = /*#__PURE__*/styled(View).withConfig({
|
|
2928
2948
|
displayName: "Footer__FooterView",
|
|
2929
2949
|
componentId: "kitt-universal__sc-1ujq2dc-0"
|
|
2930
2950
|
})(["flex:0 0 auto;padding:", "px;border-top-width:1px;border-top-color:", ";"], function (_ref) {
|
|
@@ -2943,7 +2963,7 @@ function ModalFooter(_ref3) {
|
|
|
2943
2963
|
|
|
2944
2964
|
var OnCloseContext = /*#__PURE__*/createContext(function () {});
|
|
2945
2965
|
|
|
2946
|
-
var HeaderView = /*#__PURE__*/styled
|
|
2966
|
+
var HeaderView = /*#__PURE__*/styled(View).withConfig({
|
|
2947
2967
|
displayName: "Header__HeaderView",
|
|
2948
2968
|
componentId: "kitt-universal__sc-1iwabch-0"
|
|
2949
2969
|
})(["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) {
|
|
@@ -2953,21 +2973,21 @@ var HeaderView = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
2953
2973
|
var theme = _ref2.theme;
|
|
2954
2974
|
return theme.kitt.colors.separator;
|
|
2955
2975
|
});
|
|
2956
|
-
var LeftIconView = /*#__PURE__*/styled
|
|
2976
|
+
var LeftIconView = /*#__PURE__*/styled(View).withConfig({
|
|
2957
2977
|
displayName: "Header__LeftIconView",
|
|
2958
2978
|
componentId: "kitt-universal__sc-1iwabch-1"
|
|
2959
2979
|
})(["align-self:flex-start;margin-right:", "px;"], function (_ref3) {
|
|
2960
2980
|
var theme = _ref3.theme;
|
|
2961
2981
|
return theme.kitt.spacing * 2;
|
|
2962
2982
|
});
|
|
2963
|
-
var RightIconView = /*#__PURE__*/styled
|
|
2983
|
+
var RightIconView = /*#__PURE__*/styled(View).withConfig({
|
|
2964
2984
|
displayName: "Header__RightIconView",
|
|
2965
2985
|
componentId: "kitt-universal__sc-1iwabch-2"
|
|
2966
2986
|
})(["align-self:flex-start;margin-left:", "px;"], function (_ref4) {
|
|
2967
2987
|
var theme = _ref4.theme;
|
|
2968
2988
|
return theme.kitt.spacing * 2;
|
|
2969
2989
|
});
|
|
2970
|
-
var TitleView = /*#__PURE__*/styled
|
|
2990
|
+
var TitleView = /*#__PURE__*/styled(View).withConfig({
|
|
2971
2991
|
displayName: "Header__TitleView",
|
|
2972
2992
|
componentId: "kitt-universal__sc-1iwabch-3"
|
|
2973
2993
|
})(["padding-left:", "px;flex-shrink:1;"], function (_ref5) {
|
|
@@ -2996,7 +3016,7 @@ function ModalHeader(_ref6) {
|
|
|
2996
3016
|
});
|
|
2997
3017
|
}
|
|
2998
3018
|
|
|
2999
|
-
var ModalView = /*#__PURE__*/styled
|
|
3019
|
+
var ModalView = /*#__PURE__*/styled(View).withConfig({
|
|
3000
3020
|
displayName: "Modal__ModalView",
|
|
3001
3021
|
componentId: "kitt-universal__sc-1xy2w5u-0"
|
|
3002
3022
|
})(["top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:", "px ", "px;"], function (_ref) {
|
|
@@ -3006,7 +3026,7 @@ var ModalView = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
3006
3026
|
var theme = _ref2.theme;
|
|
3007
3027
|
return theme.kitt.spacing * 4;
|
|
3008
3028
|
});
|
|
3009
|
-
var ContentView = /*#__PURE__*/styled
|
|
3029
|
+
var ContentView = /*#__PURE__*/styled(View).withConfig({
|
|
3010
3030
|
displayName: "Modal__ContentView",
|
|
3011
3031
|
componentId: "kitt-universal__sc-1xy2w5u-1"
|
|
3012
3032
|
})(["position:relative;display:flex;flex-direction:column;max-height:100%;max-width:540px;height:auto;width:100%;border-radius:", "px;background-color:", ";"], function (_ref3) {
|
|
@@ -3069,7 +3089,7 @@ function Notification(_ref) {
|
|
|
3069
3089
|
});
|
|
3070
3090
|
}
|
|
3071
3091
|
|
|
3072
|
-
var StyledSkeleton = withTheme( /*#__PURE__*/styled("div")({
|
|
3092
|
+
var StyledSkeleton = withTheme( /*#__PURE__*/styled$1("div")({
|
|
3073
3093
|
name: "StyledSkeleton",
|
|
3074
3094
|
"class": "kitt-u_StyledSkeleton_sc3upcl",
|
|
3075
3095
|
vars: {
|
|
@@ -3095,7 +3115,7 @@ function SkeletonContent(_ref4) {
|
|
|
3095
3115
|
});
|
|
3096
3116
|
}
|
|
3097
3117
|
|
|
3098
|
-
var SkeletonContainer = /*#__PURE__*/styled
|
|
3118
|
+
var SkeletonContainer = /*#__PURE__*/styled(View).withConfig({
|
|
3099
3119
|
displayName: "Skeleton__SkeletonContainer",
|
|
3100
3120
|
componentId: "kitt-universal__sc-1w5cm3i-0"
|
|
3101
3121
|
})(["overflow:hidden;"]);
|
|
@@ -3120,7 +3140,7 @@ function Skeleton(_ref) {
|
|
|
3120
3140
|
})
|
|
3121
3141
|
});
|
|
3122
3142
|
}
|
|
3123
|
-
var Bar = /*#__PURE__*/styled
|
|
3143
|
+
var Bar = /*#__PURE__*/styled(Skeleton).withConfig({
|
|
3124
3144
|
displayName: "Skeleton__Bar",
|
|
3125
3145
|
componentId: "kitt-universal__sc-1w5cm3i-1"
|
|
3126
3146
|
})(["width:100%;height:", "px;border-radius:", "px;"], function (_ref3) {
|
|
@@ -3130,7 +3150,7 @@ var Bar = /*#__PURE__*/styled$1(Skeleton).withConfig({
|
|
|
3130
3150
|
var theme = _ref4.theme;
|
|
3131
3151
|
return theme.kitt.spacing * 2;
|
|
3132
3152
|
});
|
|
3133
|
-
var Circle = /*#__PURE__*/styled
|
|
3153
|
+
var Circle = /*#__PURE__*/styled(Skeleton).withConfig({
|
|
3134
3154
|
displayName: "Skeleton__Circle",
|
|
3135
3155
|
componentId: "kitt-universal__sc-1w5cm3i-2"
|
|
3136
3156
|
})(["width:", "px;height:", "px;border-radius:", "px;"], function (_ref5) {
|
|
@@ -3143,7 +3163,7 @@ var Circle = /*#__PURE__*/styled$1(Skeleton).withConfig({
|
|
|
3143
3163
|
var theme = _ref7.theme;
|
|
3144
3164
|
return theme.kitt.spacing * 6;
|
|
3145
3165
|
});
|
|
3146
|
-
var Square = /*#__PURE__*/styled
|
|
3166
|
+
var Square = /*#__PURE__*/styled(Skeleton).withConfig({
|
|
3147
3167
|
displayName: "Skeleton__Square",
|
|
3148
3168
|
componentId: "kitt-universal__sc-1w5cm3i-3"
|
|
3149
3169
|
})(["width:", "px;height:", "px;border-radius:", "px;"], function (_ref8) {
|
|
@@ -3160,7 +3180,7 @@ Skeleton.Bar = Bar;
|
|
|
3160
3180
|
Skeleton.Circle = Circle;
|
|
3161
3181
|
Skeleton.Square = Square;
|
|
3162
3182
|
|
|
3163
|
-
var Flex = /*#__PURE__*/styled
|
|
3183
|
+
var Flex = /*#__PURE__*/styled(View).withConfig({
|
|
3164
3184
|
shouldForwardProp: function shouldForwardProp(prop, defaultValidatorFn) {
|
|
3165
3185
|
return !['direction', 'padding'].includes(prop) && defaultValidatorFn(prop);
|
|
3166
3186
|
}
|
|
@@ -3217,7 +3237,7 @@ var useStoryBlockColor = function (color) {
|
|
|
3217
3237
|
var storyBlockColor = useContext(StoryBlockColorContext);
|
|
3218
3238
|
return color || storyBlockColor;
|
|
3219
3239
|
};
|
|
3220
|
-
var StyledStoryBlockView = /*#__PURE__*/styled
|
|
3240
|
+
var StyledStoryBlockView = /*#__PURE__*/styled(View).withConfig({
|
|
3221
3241
|
displayName: "StoryBlock__StyledStoryBlockView",
|
|
3222
3242
|
componentId: "kitt-universal__sc-3w4hdm-0"
|
|
3223
3243
|
})(["padding:16px ", "px 0;margin:0 -", "px;background:", ";"], storyPadding, storyPadding, function (_ref) {
|
|
@@ -3240,11 +3260,11 @@ function StoryBlock(_ref2) {
|
|
|
3240
3260
|
});
|
|
3241
3261
|
}
|
|
3242
3262
|
|
|
3243
|
-
var StoryTitleContainer = /*#__PURE__*/styled
|
|
3263
|
+
var StoryTitleContainer = /*#__PURE__*/styled(View).withConfig({
|
|
3244
3264
|
displayName: "StoryTitle__StoryTitleContainer",
|
|
3245
3265
|
componentId: "kitt-universal__sc-sic7hb-0"
|
|
3246
3266
|
})(["margin-bottom:30px;"]);
|
|
3247
|
-
var StorySubTitleContainer = /*#__PURE__*/styled
|
|
3267
|
+
var StorySubTitleContainer = /*#__PURE__*/styled(View).withConfig({
|
|
3248
3268
|
displayName: "StoryTitle__StorySubTitleContainer",
|
|
3249
3269
|
componentId: "kitt-universal__sc-sic7hb-1"
|
|
3250
3270
|
})(["margin-bottom:10px;"]);
|
|
@@ -3319,7 +3339,7 @@ StoryTitle.Level2 = StoryTitleLevel2;
|
|
|
3319
3339
|
StoryTitle.Level3 = StoryTitleLevel3;
|
|
3320
3340
|
StoryTitle.Level4 = StoryTitleLevel4;
|
|
3321
3341
|
|
|
3322
|
-
var StoryContainer$1 = /*#__PURE__*/styled
|
|
3342
|
+
var StoryContainer$1 = /*#__PURE__*/styled(ScrollView).withConfig({
|
|
3323
3343
|
displayName: "Story__StoryContainer",
|
|
3324
3344
|
componentId: "kitt-universal__sc-1kwdg2p-0"
|
|
3325
3345
|
})(["padding:", "px;"], storyPadding);
|
|
@@ -3338,11 +3358,7 @@ function Story(_ref) {
|
|
|
3338
3358
|
var _excluded$2 = ["title", "children", "internalIsDemoSection"],
|
|
3339
3359
|
_excluded2 = ["title", "children"],
|
|
3340
3360
|
_excluded3 = ["title", "children"];
|
|
3341
|
-
|
|
3342
|
-
function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3343
|
-
|
|
3344
|
-
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3345
|
-
var StyledSection = /*#__PURE__*/styled$1(View).withConfig({
|
|
3361
|
+
var StyledSection = /*#__PURE__*/styled(View).withConfig({
|
|
3346
3362
|
displayName: "StorySection__StyledSection",
|
|
3347
3363
|
componentId: "kitt-universal__sc-1b3liv5-0"
|
|
3348
3364
|
})(["margin-bottom:32px;"]);
|
|
@@ -3353,13 +3369,13 @@ function StorySection(_ref) {
|
|
|
3353
3369
|
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
3354
3370
|
|
|
3355
3371
|
if (title === 'Demo' && !internalIsDemoSection) throw new Error('Use StorySection.Demo instead');
|
|
3356
|
-
return /*#__PURE__*/jsxs(StyledSection, _objectSpread
|
|
3372
|
+
return /*#__PURE__*/jsxs(StyledSection, _objectSpread(_objectSpread({}, props), {}, {
|
|
3357
3373
|
children: [/*#__PURE__*/jsx(StoryTitle.Level2, {
|
|
3358
3374
|
children: title
|
|
3359
3375
|
}), children]
|
|
3360
3376
|
}));
|
|
3361
3377
|
}
|
|
3362
|
-
var StyledSubSection = /*#__PURE__*/styled
|
|
3378
|
+
var StyledSubSection = /*#__PURE__*/styled(View).withConfig({
|
|
3363
3379
|
displayName: "StorySection__StyledSubSection",
|
|
3364
3380
|
componentId: "kitt-universal__sc-1b3liv5-1"
|
|
3365
3381
|
})(["margin-bottom:16px;"]);
|
|
@@ -3369,14 +3385,14 @@ function SubSection(_ref2) {
|
|
|
3369
3385
|
children = _ref2.children,
|
|
3370
3386
|
props = _objectWithoutProperties(_ref2, _excluded2);
|
|
3371
3387
|
|
|
3372
|
-
return /*#__PURE__*/jsxs(StyledSubSection, _objectSpread
|
|
3388
|
+
return /*#__PURE__*/jsxs(StyledSubSection, _objectSpread(_objectSpread({}, props), {}, {
|
|
3373
3389
|
children: [/*#__PURE__*/jsx(StoryTitle.Level3, {
|
|
3374
3390
|
children: title
|
|
3375
3391
|
}), children]
|
|
3376
3392
|
}));
|
|
3377
3393
|
}
|
|
3378
3394
|
|
|
3379
|
-
var StyledBlockSection = /*#__PURE__*/styled
|
|
3395
|
+
var StyledBlockSection = /*#__PURE__*/styled(View).withConfig({
|
|
3380
3396
|
displayName: "StorySection__StyledBlockSection",
|
|
3381
3397
|
componentId: "kitt-universal__sc-1b3liv5-2"
|
|
3382
3398
|
})(["margin-bottom:16px;"]);
|
|
@@ -3386,14 +3402,14 @@ function BlockSection(_ref3) {
|
|
|
3386
3402
|
children = _ref3.children,
|
|
3387
3403
|
props = _objectWithoutProperties(_ref3, _excluded3);
|
|
3388
3404
|
|
|
3389
|
-
return /*#__PURE__*/jsxs(StyledBlockSection, _objectSpread
|
|
3405
|
+
return /*#__PURE__*/jsxs(StyledBlockSection, _objectSpread(_objectSpread({}, props), {}, {
|
|
3390
3406
|
children: [/*#__PURE__*/jsx(StoryTitle.Level4, {
|
|
3391
3407
|
children: title
|
|
3392
3408
|
}), children]
|
|
3393
3409
|
}));
|
|
3394
3410
|
}
|
|
3395
3411
|
|
|
3396
|
-
var StyledDemoSection = /*#__PURE__*/styled
|
|
3412
|
+
var StyledDemoSection = /*#__PURE__*/styled(View).withConfig({
|
|
3397
3413
|
displayName: "StorySection__StyledDemoSection",
|
|
3398
3414
|
componentId: "kitt-universal__sc-1b3liv5-3"
|
|
3399
3415
|
})(["margin-bottom:64px;"]);
|
|
@@ -3442,19 +3458,19 @@ function StoryDecorator(storyFn, context) {
|
|
|
3442
3458
|
});
|
|
3443
3459
|
}
|
|
3444
3460
|
|
|
3445
|
-
var SmallScreenRow = /*#__PURE__*/styled
|
|
3461
|
+
var SmallScreenRow = /*#__PURE__*/styled(View).withConfig({
|
|
3446
3462
|
displayName: "StoryGrid__SmallScreenRow",
|
|
3447
3463
|
componentId: "kitt-universal__sc-4z5new-0"
|
|
3448
3464
|
})(["flex-direction:column;margin:0;"]);
|
|
3449
|
-
var SmallScreenCol = /*#__PURE__*/styled
|
|
3465
|
+
var SmallScreenCol = /*#__PURE__*/styled(View).withConfig({
|
|
3450
3466
|
displayName: "StoryGrid__SmallScreenCol",
|
|
3451
3467
|
componentId: "kitt-universal__sc-4z5new-1"
|
|
3452
3468
|
})(["padding:8px 0 16px;"]);
|
|
3453
|
-
var FlexRow = /*#__PURE__*/styled
|
|
3469
|
+
var FlexRow = /*#__PURE__*/styled(View).withConfig({
|
|
3454
3470
|
displayName: "StoryGrid__FlexRow",
|
|
3455
3471
|
componentId: "kitt-universal__sc-4z5new-2"
|
|
3456
3472
|
})(["flex-direction:row;margin:0 -4px 16px;"]);
|
|
3457
|
-
var FlexCol = /*#__PURE__*/styled
|
|
3473
|
+
var FlexCol = /*#__PURE__*/styled(View).withConfig({
|
|
3458
3474
|
displayName: "StoryGrid__FlexCol",
|
|
3459
3475
|
componentId: "kitt-universal__sc-4z5new-3"
|
|
3460
3476
|
})(["flex-grow:1;flex-basis:0;margin:0 8px;"]);
|
|
@@ -3515,7 +3531,7 @@ var StoryGrid = {
|
|
|
3515
3531
|
Col: StoryGridCol
|
|
3516
3532
|
};
|
|
3517
3533
|
|
|
3518
|
-
var Container = /*#__PURE__*/styled
|
|
3534
|
+
var Container = /*#__PURE__*/styled(View).withConfig({
|
|
3519
3535
|
displayName: "Tag__Container",
|
|
3520
3536
|
componentId: "kitt-universal__sc-19jmowi-0"
|
|
3521
3537
|
})(["background-color:", ";border-width:", "px;border-color:", ";padding:", ";border-radius:", "px;align-self:flex-start;"], function (_ref) {
|
|
@@ -3587,14 +3603,11 @@ function TimePicker() {
|
|
|
3587
3603
|
});
|
|
3588
3604
|
}
|
|
3589
3605
|
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3593
|
-
var StyledTooltipView = /*#__PURE__*/styled$1(View).withConfig({
|
|
3606
|
+
var StyledTooltipView = /*#__PURE__*/styled(View).withConfig({
|
|
3594
3607
|
displayName: "TooltipView__StyledTooltipView",
|
|
3595
3608
|
componentId: "kitt-universal__sc-156zm6m-0"
|
|
3596
3609
|
})(["align-items:center;"]);
|
|
3597
|
-
var StyledTooltipContent = /*#__PURE__*/styled
|
|
3610
|
+
var StyledTooltipContent = /*#__PURE__*/styled(View).withConfig({
|
|
3598
3611
|
displayName: "TooltipView__StyledTooltipContent",
|
|
3599
3612
|
componentId: "kitt-universal__sc-156zm6m-1"
|
|
3600
3613
|
})(["background-color:", ";border-radius:", "px;opacity:", ";padding:", ";"], function (_ref) {
|
|
@@ -3613,14 +3626,14 @@ var StyledTooltipContent = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
3613
3626
|
|
|
3614
3627
|
function ArrowView(props) {
|
|
3615
3628
|
var theme = /*#__PURE__*/useTheme();
|
|
3616
|
-
return /*#__PURE__*/jsx(View, _objectSpread
|
|
3629
|
+
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
3617
3630
|
children: /*#__PURE__*/jsx(TooltipArrowIcon, {
|
|
3618
3631
|
color: theme.kitt.tooltip.backgroundColor
|
|
3619
3632
|
})
|
|
3620
3633
|
}));
|
|
3621
3634
|
}
|
|
3622
3635
|
|
|
3623
|
-
var StyledArrow = /*#__PURE__*/styled
|
|
3636
|
+
var StyledArrow = /*#__PURE__*/styled(ArrowView).withConfig({
|
|
3624
3637
|
displayName: "TooltipView__StyledArrow",
|
|
3625
3638
|
componentId: "kitt-universal__sc-156zm6m-2"
|
|
3626
3639
|
})(["color:", ";transform:", ";"], function (_ref5) {
|
|
@@ -3653,11 +3666,11 @@ var tooltipDefaultFloatingStrategy = {
|
|
|
3653
3666
|
web: 'absolute'
|
|
3654
3667
|
};
|
|
3655
3668
|
|
|
3656
|
-
var StyledTooltipTrigger = /*#__PURE__*/styled
|
|
3669
|
+
var StyledTooltipTrigger = /*#__PURE__*/styled(Pressable).withConfig({
|
|
3657
3670
|
displayName: "Tooltipweb__StyledTooltipTrigger",
|
|
3658
3671
|
componentId: "kitt-universal__sc-zn1y6f-0"
|
|
3659
3672
|
})(["display:inline-flex;align-self:baseline;"]);
|
|
3660
|
-
var WebAnimatedTooltip = /*#__PURE__*/styled
|
|
3673
|
+
var WebAnimatedTooltip = /*#__PURE__*/styled(View).withConfig({
|
|
3661
3674
|
displayName: "Tooltipweb__WebAnimatedTooltip",
|
|
3662
3675
|
componentId: "kitt-universal__sc-zn1y6f-1"
|
|
3663
3676
|
})(["opacity:", ";transition:opacity 200ms;visibility:", ";"], function (_ref) {
|
|
@@ -3786,7 +3799,7 @@ function Tooltip(_ref3) {
|
|
|
3786
3799
|
}
|
|
3787
3800
|
Tooltip.View = TooltipView;
|
|
3788
3801
|
|
|
3789
|
-
var StyledTypographyEmoji = /*#__PURE__*/styled
|
|
3802
|
+
var StyledTypographyEmoji = /*#__PURE__*/styled(Emoji).withConfig({
|
|
3790
3803
|
displayName: "TypographyEmoji__StyledTypographyEmoji",
|
|
3791
3804
|
componentId: "kitt-universal__sc-1if5guu-0"
|
|
3792
3805
|
})(["align-self:center;", ""], function (_ref) {
|
|
@@ -3813,11 +3826,7 @@ function TypographyEmoji(_ref2) {
|
|
|
3813
3826
|
}
|
|
3814
3827
|
|
|
3815
3828
|
var _excluded$1 = ["children", "disabled", "noUnderline", "href", "hrefAttrs", "onPress"];
|
|
3816
|
-
|
|
3817
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3818
|
-
|
|
3819
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3820
|
-
var TypographyLinkWebWrapper = withTheme( /*#__PURE__*/styled("span")({
|
|
3829
|
+
var TypographyLinkWebWrapper = withTheme( /*#__PURE__*/styled$1("span")({
|
|
3821
3830
|
name: "TypographyLinkWebWrapper",
|
|
3822
3831
|
"class": "kitt-u_TypographyLinkWebWrapper_tcwz3nt",
|
|
3823
3832
|
vars: {
|
|
@@ -3827,7 +3836,7 @@ var TypographyLinkWebWrapper = withTheme( /*#__PURE__*/styled("span")({
|
|
|
3827
3836
|
}]
|
|
3828
3837
|
}
|
|
3829
3838
|
}));
|
|
3830
|
-
var StyledLink = /*#__PURE__*/styled
|
|
3839
|
+
var StyledLink = /*#__PURE__*/styled(Text$1).withConfig({
|
|
3831
3840
|
displayName: "TypographyLink__StyledLink",
|
|
3832
3841
|
componentId: "kitt-universal__sc-1o1zy30-0"
|
|
3833
3842
|
})(["text-decoration:", ";", ";", ";"], function (_ref2) {
|
|
@@ -3911,5 +3920,5 @@ function MatchWindowSize(_ref) {
|
|
|
3911
3920
|
return children;
|
|
3912
3921
|
}
|
|
3913
3922
|
|
|
3914
|
-
export { Avatar, Button, Card, Checkbox, DatePicker, Emoji, ExternalLink, Flex, FullScreenModal, Icon, IconButton, InputEmail, InputFeedback, InputField, InputIcon, InputPassword, InputPhone, InputPressable, InputTag, InputText, KittBreakpoints, KittBreakpointsMax, KittThemeDecorator, KittThemeProvider, Label, LargeLoader, ListItem, Loader, MatchWindowSize, Message, Modal, Notification, Radio, DeprecatedSection as Section, Skeleton, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, Tag, TextArea, TimePicker, Tooltip, Typography, TypographyEmoji, TypographyIcon, TypographyLink, createWindowSizeHelper, hex2rgba, matchWindowSize, styledTextInputMixin, theme, useKittTheme, useMatchWindowSize, useStoryBlockColor, withTheme };
|
|
3923
|
+
export { Avatar, Button, Card, Checkbox, DatePicker, Emoji, ExternalLink, Flex, FullScreenModal, Icon, IconButton, InputEmail, InputFeedback, InputField, InputIcon, InputPassword, InputPhone, InputPressable, InputTag, InputText, KittBreakpoints, KittBreakpointsMax, KittThemeDecorator, KittThemeProvider, Label, LargeLoader, ListItem, Loader, MatchWindowSize, Message, Modal, Notification, Radio, DeprecatedSection as Section, Skeleton, SpinningIcon, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, Tag, TextArea, TimePicker, Tooltip, Typography, TypographyEmoji, TypographyIcon, TypographyLink, TypographySpinningIcon, createWindowSizeHelper, hex2rgba, matchWindowSize, styledTextInputMixin, theme, useKittTheme, useMatchWindowSize, useStoryBlockColor, withTheme };
|
|
3915
3924
|
//# sourceMappingURL=index-browser-all.es.web.js.map
|