@ornikar/kitt-universal 5.0.0 → 6.0.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/Button.d.ts +0 -1
- package/dist/definitions/Button/Button.d.ts.map +1 -1
- package/dist/definitions/Button/ButtonContent.d.ts +1 -1
- package/dist/definitions/Button/ButtonContent.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/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/definitions/forms/DatePicker/DatePickerAndroid.d.ts +12 -0
- package/dist/definitions/forms/DatePicker/DatePickerAndroid.d.ts.map +1 -0
- 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/typography/TypographySpinningIcon.d.ts +9 -0
- package/dist/definitions/typography/TypographySpinningIcon.d.ts.map +1 -0
- package/dist/index-browser-all.es.android.js +877 -767
- package/dist/index-browser-all.es.android.js.map +1 -1
- package/dist/index-browser-all.es.ios.js +246 -247
- package/dist/index-browser-all.es.ios.js.map +1 -1
- package/dist/index-browser-all.es.js +246 -247
- package/dist/index-browser-all.es.js.map +1 -1
- package/dist/index-browser-all.es.web.js +258 -312
- package/dist/index-browser-all.es.web.js.map +1 -1
- package/dist/index-node-14.17.cjs.js +161 -64
- 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 +102 -66
- package/dist/index-node-14.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.android.js +3 -3
- package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.ios.js +3 -3
- package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.js +3 -3
- package/dist/linaria-themes-browser-all.es.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.web.js +3 -3
- package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.js +3 -3
- package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.web.js +3 -3
- 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 +7 -6
- package/dist/definitions/forms/DatePicker/DatePicker.android.d.ts +0 -4
- package/dist/definitions/forms/DatePicker/DatePicker.android.d.ts.map +0 -1
|
@@ -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,33 @@ function Avatar(_ref6) {
|
|
|
394
349
|
});
|
|
395
350
|
}
|
|
396
351
|
|
|
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
|
+
});
|
|
371
|
+
}
|
|
372
|
+
|
|
397
373
|
function isSubtle(type) {
|
|
398
374
|
return type.startsWith('subtle');
|
|
399
375
|
}
|
|
400
376
|
|
|
401
|
-
var _excluded$
|
|
402
|
-
|
|
403
|
-
function ownKeys$k(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; }
|
|
404
|
-
|
|
405
|
-
function _objectSpread$k(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$k(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$k(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
406
|
-
var AnimatedButtonPressableContainer = withTheme( /*#__PURE__*/styled("div")({
|
|
377
|
+
var _excluded$f = ["$type", "$isStretch", "disabled"];
|
|
378
|
+
var AnimatedButtonPressableContainer = withTheme( /*#__PURE__*/styled$1("div")({
|
|
407
379
|
name: "AnimatedButtonPressableContainer",
|
|
408
380
|
"class": "kitt-u_AnimatedButtonPressableContainer_a1vkj3mh",
|
|
409
381
|
vars: {
|
|
@@ -501,20 +473,20 @@ var AnimatedButtonPressable = /*#__PURE__*/forwardRef(function (_ref18, ref) {
|
|
|
501
473
|
var $type = _ref18.$type,
|
|
502
474
|
$isStretch = _ref18.$isStretch,
|
|
503
475
|
disabled = _ref18.disabled,
|
|
504
|
-
props = _objectWithoutProperties(_ref18, _excluded$
|
|
476
|
+
props = _objectWithoutProperties(_ref18, _excluded$f);
|
|
505
477
|
|
|
506
478
|
return /*#__PURE__*/jsx(AnimatedButtonPressableContainer, {
|
|
507
479
|
ref: ref,
|
|
508
480
|
$type: $type,
|
|
509
481
|
$isDisabled: !!disabled,
|
|
510
482
|
$isStretch: $isStretch,
|
|
511
|
-
children: /*#__PURE__*/jsx(Pressable, _objectSpread
|
|
483
|
+
children: /*#__PURE__*/jsx(Pressable, _objectSpread({
|
|
512
484
|
disabled: disabled
|
|
513
485
|
}, props))
|
|
514
486
|
});
|
|
515
487
|
});
|
|
516
488
|
|
|
517
|
-
var BaseStyledButtonPressable = /*#__PURE__*/styled
|
|
489
|
+
var BaseStyledButtonPressable = /*#__PURE__*/styled(View).withConfig({
|
|
518
490
|
displayName: "BaseStyledButtonPressable",
|
|
519
491
|
componentId: "kitt-universal__sc-4k8lse-0"
|
|
520
492
|
})(["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) {
|
|
@@ -552,48 +524,40 @@ var BaseStyledButtonPressable = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
552
524
|
return defaultPadding;
|
|
553
525
|
});
|
|
554
526
|
|
|
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; }
|
|
527
|
+
var _excluded$e = ["color"],
|
|
528
|
+
_excluded2$3 = ["color"];
|
|
561
529
|
|
|
562
530
|
function TypographyIconSpecifiedColor(_ref) {
|
|
563
531
|
var color = _ref.color,
|
|
564
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
532
|
+
props = _objectWithoutProperties(_ref, _excluded$e);
|
|
565
533
|
|
|
566
534
|
var theme = /*#__PURE__*/useTheme();
|
|
567
|
-
return /*#__PURE__*/jsx(Icon, _objectSpread
|
|
535
|
+
return /*#__PURE__*/jsx(Icon, _objectSpread(_objectSpread({}, props), {}, {
|
|
568
536
|
color: color === 'inherit' ? 'inherit' : theme.kitt.typography.colors[color]
|
|
569
537
|
}));
|
|
570
538
|
}
|
|
571
539
|
|
|
572
540
|
function TypographyIconInheritColor(props) {
|
|
573
541
|
var color = useTypographyColor();
|
|
574
|
-
return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread
|
|
542
|
+
return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread({
|
|
575
543
|
color: color
|
|
576
544
|
}, props));
|
|
577
545
|
}
|
|
578
546
|
|
|
579
547
|
function TypographyIcon(_ref2) {
|
|
580
548
|
var color = _ref2.color,
|
|
581
|
-
props = _objectWithoutProperties(_ref2, _excluded2$
|
|
549
|
+
props = _objectWithoutProperties(_ref2, _excluded2$3);
|
|
582
550
|
|
|
583
551
|
if (color) {
|
|
584
|
-
return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread
|
|
552
|
+
return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread({
|
|
585
553
|
color: color
|
|
586
554
|
}, props));
|
|
587
555
|
}
|
|
588
556
|
|
|
589
|
-
return /*#__PURE__*/jsx(TypographyIconInheritColor, _objectSpread
|
|
557
|
+
return /*#__PURE__*/jsx(TypographyIconInheritColor, _objectSpread({}, props));
|
|
590
558
|
}
|
|
591
559
|
|
|
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; }
|
|
560
|
+
var _excluded$d = ["type", "isDisabled", "$isStretch", "icon", "children"];
|
|
597
561
|
|
|
598
562
|
var getTextColorByType = function (type) {
|
|
599
563
|
switch (type) {
|
|
@@ -614,7 +578,7 @@ var getTextColorByType = function (type) {
|
|
|
614
578
|
}
|
|
615
579
|
};
|
|
616
580
|
|
|
617
|
-
var StyledButtonText = /*#__PURE__*/styled
|
|
581
|
+
var StyledButtonText = /*#__PURE__*/styled(Typography.Text).withConfig({
|
|
618
582
|
displayName: "ButtonContent__StyledButtonText",
|
|
619
583
|
componentId: "kitt-universal__sc-dnyw3n-0"
|
|
620
584
|
})(["text-align:center;", " ", ""], function () {
|
|
@@ -632,7 +596,7 @@ var StyledButtonText = /*#__PURE__*/styled$1(Typography.Text).withConfig({
|
|
|
632
596
|
if ($isDisabled || !isSubtle($type)) return undefined;
|
|
633
597
|
return 'color: inherit';
|
|
634
598
|
});
|
|
635
|
-
var StyledIconContainer$1 = /*#__PURE__*/styled
|
|
599
|
+
var StyledIconContainer$1 = /*#__PURE__*/styled(View).withConfig({
|
|
636
600
|
displayName: "ButtonContent__StyledIconContainer",
|
|
637
601
|
componentId: "kitt-universal__sc-dnyw3n-1"
|
|
638
602
|
})(["", ""], function (_ref2) {
|
|
@@ -650,21 +614,19 @@ var StyledIconContainer$1 = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
650
614
|
function ButtonIcon(_ref3) {
|
|
651
615
|
var icon = _ref3.icon,
|
|
652
616
|
color = _ref3.color,
|
|
653
|
-
spin = _ref3.spin,
|
|
654
617
|
iconPosition = _ref3.iconPosition,
|
|
655
618
|
testID = _ref3.testID;
|
|
656
619
|
return /*#__PURE__*/jsx(StyledIconContainer$1, {
|
|
657
620
|
$iconPosition: iconPosition,
|
|
658
621
|
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
659
622
|
icon: icon,
|
|
660
|
-
spin: spin,
|
|
661
623
|
testID: testID,
|
|
662
624
|
color: color
|
|
663
625
|
})
|
|
664
626
|
});
|
|
665
627
|
}
|
|
666
628
|
|
|
667
|
-
var StyledChildrenWithIcon = /*#__PURE__*/styled
|
|
629
|
+
var StyledChildrenWithIcon = /*#__PURE__*/styled(View).withConfig({
|
|
668
630
|
displayName: "ButtonContent__StyledChildrenWithIcon",
|
|
669
631
|
componentId: "kitt-universal__sc-dnyw3n-2"
|
|
670
632
|
})(["align-items:center;justify-content:center;flex-direction:row;"]);
|
|
@@ -672,7 +634,6 @@ function ButtonContentChildren(_ref4) {
|
|
|
672
634
|
var type = _ref4.type,
|
|
673
635
|
icon = _ref4.icon,
|
|
674
636
|
iconPosition = _ref4.iconPosition,
|
|
675
|
-
iconSpin = _ref4.iconSpin,
|
|
676
637
|
isDisabled = _ref4.isDisabled,
|
|
677
638
|
color = _ref4.color,
|
|
678
639
|
children = _ref4.children;
|
|
@@ -686,9 +647,8 @@ function ButtonContentChildren(_ref4) {
|
|
|
686
647
|
var isWebSubtle = isSubtle(type) && "web" === 'web' && !isDisabled;
|
|
687
648
|
|
|
688
649
|
if (!children) {
|
|
689
|
-
return /*#__PURE__*/jsx(TypographyIcon
|
|
690
|
-
|
|
691
|
-
,
|
|
650
|
+
return /*#__PURE__*/jsx(TypographyIcon // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
651
|
+
, {
|
|
692
652
|
icon: icon,
|
|
693
653
|
color: isWebSubtle ? 'inherit' : color
|
|
694
654
|
});
|
|
@@ -696,12 +656,11 @@ function ButtonContentChildren(_ref4) {
|
|
|
696
656
|
|
|
697
657
|
var buttonIconSharedProps = {
|
|
698
658
|
type: type,
|
|
699
|
-
spin: iconSpin,
|
|
700
659
|
iconPosition: iconPosition,
|
|
701
660
|
color: isWebSubtle ? 'inherit' : color
|
|
702
661
|
};
|
|
703
662
|
return /*#__PURE__*/jsxs(StyledChildrenWithIcon, {
|
|
704
|
-
children: [icon && iconPosition === 'left' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread
|
|
663
|
+
children: [icon && iconPosition === 'left' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread(_objectSpread({}, buttonIconSharedProps), {}, {
|
|
705
664
|
testID: "button-left-icon",
|
|
706
665
|
icon: icon
|
|
707
666
|
})) : null, /*#__PURE__*/jsx(StyledButtonText, {
|
|
@@ -712,12 +671,12 @@ function ButtonContentChildren(_ref4) {
|
|
|
712
671
|
,
|
|
713
672
|
color: isWebSubtle ? undefined : color,
|
|
714
673
|
children: children
|
|
715
|
-
}), icon && iconPosition === 'right' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread
|
|
674
|
+
}), icon && iconPosition === 'right' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread(_objectSpread({}, buttonIconSharedProps), {}, {
|
|
716
675
|
icon: icon
|
|
717
676
|
})) : null]
|
|
718
677
|
});
|
|
719
678
|
}
|
|
720
|
-
var ButtonContentContainer = /*#__PURE__*/styled
|
|
679
|
+
var ButtonContentContainer = /*#__PURE__*/styled(View).withConfig({
|
|
721
680
|
displayName: "ButtonContent__ButtonContentContainer",
|
|
722
681
|
componentId: "kitt-universal__sc-dnyw3n-3"
|
|
723
682
|
})(["line-height:16px;", " ", ";"], function (_ref5) {
|
|
@@ -736,14 +695,14 @@ function ButtonContent(_ref7) {
|
|
|
736
695
|
$isStretch = _ref7.$isStretch,
|
|
737
696
|
icon = _ref7.icon,
|
|
738
697
|
children = _ref7.children,
|
|
739
|
-
props = _objectWithoutProperties(_ref7, _excluded$
|
|
698
|
+
props = _objectWithoutProperties(_ref7, _excluded$d);
|
|
740
699
|
|
|
741
700
|
var color = isDisabled ? 'black-light' : getTextColorByType(type);
|
|
742
701
|
return /*#__PURE__*/jsx(ButtonContentContainer, {
|
|
743
702
|
$isSubtle: isSubtle(type),
|
|
744
703
|
$isStretch: $isStretch,
|
|
745
704
|
$isIconOnly: Boolean(!children && icon),
|
|
746
|
-
children: /*#__PURE__*/jsx(ButtonContentChildren, _objectSpread
|
|
705
|
+
children: /*#__PURE__*/jsx(ButtonContentChildren, _objectSpread(_objectSpread({
|
|
747
706
|
icon: icon,
|
|
748
707
|
type: type,
|
|
749
708
|
isDisabled: isDisabled,
|
|
@@ -764,7 +723,6 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
764
723
|
icon = _ref.icon,
|
|
765
724
|
_ref$iconPosition = _ref.iconPosition,
|
|
766
725
|
iconPosition = _ref$iconPosition === void 0 ? 'left' : _ref$iconPosition,
|
|
767
|
-
iconSpin = _ref.iconSpin,
|
|
768
726
|
testID = _ref.testID,
|
|
769
727
|
href = _ref.href,
|
|
770
728
|
hrefAttrs = _ref.hrefAttrs,
|
|
@@ -792,14 +750,13 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
792
750
|
isDisabled: disabled,
|
|
793
751
|
icon: icon,
|
|
794
752
|
iconPosition: iconPosition,
|
|
795
|
-
iconSpin: iconSpin,
|
|
796
753
|
children: children
|
|
797
754
|
}), null]
|
|
798
755
|
})
|
|
799
756
|
});
|
|
800
757
|
});
|
|
801
758
|
|
|
802
|
-
var Container$3 = /*#__PURE__*/styled
|
|
759
|
+
var Container$3 = /*#__PURE__*/styled(View).withConfig({
|
|
803
760
|
displayName: "Card__Container",
|
|
804
761
|
componentId: "kitt-universal__sc-1n9psug-0"
|
|
805
762
|
})(["background-color:", ";padding:", "px;border-radius:", "px;border-width:", "px;border-color:", ";"], function (_ref) {
|
|
@@ -829,7 +786,7 @@ function Card(_ref6) {
|
|
|
829
786
|
});
|
|
830
787
|
}
|
|
831
788
|
|
|
832
|
-
var StyledEmoji = /*#__PURE__*/styled
|
|
789
|
+
var StyledEmoji = /*#__PURE__*/styled(Image).withConfig({
|
|
833
790
|
displayName: "Emoji__StyledEmoji",
|
|
834
791
|
componentId: "kitt-universal__sc-ggl6wj-0"
|
|
835
792
|
})(["width:", "px;height:", "px;"], function (_ref) {
|
|
@@ -869,20 +826,16 @@ var defaultOpenLinkBehavior = {
|
|
|
869
826
|
web: 'targetBlank'
|
|
870
827
|
};
|
|
871
828
|
|
|
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; }
|
|
829
|
+
var _excluded$c = ["as", "href", "openLinkBehavior", "onPress"];
|
|
877
830
|
function ExternalLink(_ref) {
|
|
878
831
|
var Component = _ref.as,
|
|
879
832
|
href = _ref.href,
|
|
880
833
|
_ref$openLinkBehavior = _ref.openLinkBehavior,
|
|
881
834
|
openLinkBehavior = _ref$openLinkBehavior === void 0 ? defaultOpenLinkBehavior : _ref$openLinkBehavior,
|
|
882
835
|
onPress = _ref.onPress,
|
|
883
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
836
|
+
rest = _objectWithoutProperties(_ref, _excluded$c);
|
|
884
837
|
|
|
885
|
-
return /*#__PURE__*/jsx(Component, _objectSpread
|
|
838
|
+
return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({}, rest), {}, {
|
|
886
839
|
href: href,
|
|
887
840
|
hrefAttrs: (openLinkBehavior === null || openLinkBehavior === void 0 ? void 0 : openLinkBehavior.web) === 'targetSelf' ? undefined : {
|
|
888
841
|
target: '_blank',
|
|
@@ -970,9 +923,9 @@ var button = {
|
|
|
970
923
|
}
|
|
971
924
|
},
|
|
972
925
|
contentPadding: {
|
|
973
|
-
"default": '
|
|
974
|
-
large: '
|
|
975
|
-
disabled: '
|
|
926
|
+
"default": '7px 16px 7px',
|
|
927
|
+
large: '11px 24px 11px',
|
|
928
|
+
disabled: '5px 14px 5px'
|
|
976
929
|
},
|
|
977
930
|
transition: {
|
|
978
931
|
duration: '200ms',
|
|
@@ -1495,11 +1448,11 @@ function useKittTheme() {
|
|
|
1495
1448
|
}, [dimensions]);
|
|
1496
1449
|
}
|
|
1497
1450
|
|
|
1498
|
-
var CheckboxAndLabelPressableWrapper = /*#__PURE__*/styled
|
|
1451
|
+
var CheckboxAndLabelPressableWrapper = /*#__PURE__*/styled(Pressable).withConfig({
|
|
1499
1452
|
displayName: "Checkbox__CheckboxAndLabelPressableWrapper",
|
|
1500
1453
|
componentId: "kitt-universal__sc-1sav1n6-0"
|
|
1501
|
-
})(["display:flex;flex-direction:row;
|
|
1502
|
-
var CheckboxContainer = /*#__PURE__*/styled
|
|
1454
|
+
})(["display:flex;flex-direction:row;"]);
|
|
1455
|
+
var CheckboxContainer = /*#__PURE__*/styled(View).withConfig({
|
|
1503
1456
|
displayName: "Checkbox__CheckboxContainer",
|
|
1504
1457
|
componentId: "kitt-universal__sc-1sav1n6-1"
|
|
1505
1458
|
})(["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 +1557,11 @@ var styledTextInputMixin = /*#__PURE__*/css(["background-color:", ";border-width
|
|
|
1604
1557
|
return theme.kitt.typography.types.bodies.fontFamily.regular;
|
|
1605
1558
|
});
|
|
1606
1559
|
|
|
1607
|
-
var StyledTypographyText = /*#__PURE__*/styled
|
|
1560
|
+
var StyledTypographyText = /*#__PURE__*/styled(Typography.Text).withConfig({
|
|
1608
1561
|
displayName: "DatePickerInputPart__StyledTypographyText",
|
|
1609
1562
|
componentId: "kitt-universal__sc-11fmlmi-0"
|
|
1610
1563
|
})(["text-align:center;"]);
|
|
1611
|
-
var ViewInput = /*#__PURE__*/styled
|
|
1564
|
+
var ViewInput = /*#__PURE__*/styled(View).withConfig({
|
|
1612
1565
|
displayName: "DatePickerInputPart__ViewInput",
|
|
1613
1566
|
componentId: "kitt-universal__sc-11fmlmi-1"
|
|
1614
1567
|
})(["", " padding:", ";min-height:", "px;min-width:", ";"], styledTextInputMixin, function (_ref) {
|
|
@@ -1643,15 +1596,11 @@ function DatePickerInputPart(_ref4) {
|
|
|
1643
1596
|
});
|
|
1644
1597
|
}
|
|
1645
1598
|
|
|
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
1599
|
function prefixWithZero(value) {
|
|
1651
1600
|
return "".concat(value).padStart(2, '0');
|
|
1652
1601
|
}
|
|
1653
1602
|
|
|
1654
|
-
var PartContainer = /*#__PURE__*/styled
|
|
1603
|
+
var PartContainer = /*#__PURE__*/styled(View).withConfig({
|
|
1655
1604
|
displayName: "DatePickerInputs__PartContainer",
|
|
1656
1605
|
componentId: "kitt-universal__sc-j9hin5-0"
|
|
1657
1606
|
})(["margin-right:", ";", ";"], function (_ref) {
|
|
@@ -1662,7 +1611,7 @@ var PartContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
1662
1611
|
var $isStretch = _ref2.$isStretch;
|
|
1663
1612
|
return $isStretch ? css(["flex:0.33;flex-grow:1;"]) : undefined;
|
|
1664
1613
|
});
|
|
1665
|
-
var DatePickerPressable = /*#__PURE__*/styled
|
|
1614
|
+
var DatePickerPressable = /*#__PURE__*/styled(Pressable).withConfig({
|
|
1666
1615
|
displayName: "DatePickerInputs__DatePickerPressable",
|
|
1667
1616
|
componentId: "kitt-universal__sc-j9hin5-1"
|
|
1668
1617
|
})(["display:flex;flex-direction:row;", ";"], function (_ref3) {
|
|
@@ -1702,14 +1651,14 @@ function DatePickerInputs(_ref4) {
|
|
|
1702
1651
|
onPress: handleModalOpen,
|
|
1703
1652
|
children: [/*#__PURE__*/jsx(PartContainer, {
|
|
1704
1653
|
$isStretch: stretch,
|
|
1705
|
-
children: /*#__PURE__*/jsx(DatePickerInputPart, _objectSpread
|
|
1654
|
+
children: /*#__PURE__*/jsx(DatePickerInputPart, _objectSpread(_objectSpread({}, sharedPartProps), {}, {
|
|
1706
1655
|
partName: "day",
|
|
1707
1656
|
value: currentValue ? prefixWithZero(currentValue.getDate()) : undefined,
|
|
1708
1657
|
placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder.day
|
|
1709
1658
|
}))
|
|
1710
1659
|
}), /*#__PURE__*/jsx(PartContainer, {
|
|
1711
1660
|
$isStretch: stretch,
|
|
1712
|
-
children: /*#__PURE__*/jsx(DatePickerInputPart, _objectSpread
|
|
1661
|
+
children: /*#__PURE__*/jsx(DatePickerInputPart, _objectSpread(_objectSpread({}, sharedPartProps), {}, {
|
|
1713
1662
|
partName: "month",
|
|
1714
1663
|
value: currentValue ? prefixWithZero(currentValue.getMonth() + 1) : undefined,
|
|
1715
1664
|
placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder.month
|
|
@@ -1717,7 +1666,7 @@ function DatePickerInputs(_ref4) {
|
|
|
1717
1666
|
}), /*#__PURE__*/jsx(PartContainer, {
|
|
1718
1667
|
$isLast: true,
|
|
1719
1668
|
$isStretch: stretch,
|
|
1720
|
-
children: /*#__PURE__*/jsx(DatePickerInputPart, _objectSpread
|
|
1669
|
+
children: /*#__PURE__*/jsx(DatePickerInputPart, _objectSpread(_objectSpread({}, sharedPartProps), {}, {
|
|
1721
1670
|
partName: "year",
|
|
1722
1671
|
value: currentValue ? currentValue.getFullYear() : undefined,
|
|
1723
1672
|
placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder.year
|
|
@@ -1726,25 +1675,21 @@ function DatePickerInputs(_ref4) {
|
|
|
1726
1675
|
});
|
|
1727
1676
|
}
|
|
1728
1677
|
|
|
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; }
|
|
1678
|
+
var _excluded$b = ["value"];
|
|
1734
1679
|
// This is not yet implemented
|
|
1735
1680
|
// We still display the inputs for chromatic
|
|
1736
1681
|
function DatePicker(_ref) {
|
|
1737
1682
|
var value = _ref.value,
|
|
1738
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1683
|
+
props = _objectWithoutProperties(_ref, _excluded$b);
|
|
1739
1684
|
|
|
1740
|
-
return /*#__PURE__*/jsx(DatePickerInputs, _objectSpread
|
|
1685
|
+
return /*#__PURE__*/jsx(DatePickerInputs, _objectSpread({
|
|
1741
1686
|
handleModalOpen: function handleModalOpen() {},
|
|
1742
1687
|
currentValue: value,
|
|
1743
1688
|
isFocused: false
|
|
1744
1689
|
}, props));
|
|
1745
1690
|
}
|
|
1746
1691
|
|
|
1747
|
-
var InputTextContainer = withTheme( /*#__PURE__*/styled("div")({
|
|
1692
|
+
var InputTextContainer = withTheme( /*#__PURE__*/styled$1("div")({
|
|
1748
1693
|
name: "InputTextContainer",
|
|
1749
1694
|
"class": "kitt-u_InputTextContainer_i1encr9g",
|
|
1750
1695
|
vars: {
|
|
@@ -1775,12 +1720,8 @@ var InputTextContainer = withTheme( /*#__PURE__*/styled("div")({
|
|
|
1775
1720
|
}
|
|
1776
1721
|
}));
|
|
1777
1722
|
|
|
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({
|
|
1723
|
+
var _excluded$a = ["id", "right", "minHeight", "state", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoCompleteType", "keyboardType", "onFocus", "onBlur"];
|
|
1724
|
+
var StyledTextInput = /*#__PURE__*/styled(TextInput).withConfig({
|
|
1784
1725
|
displayName: "InputText__StyledTextInput",
|
|
1785
1726
|
componentId: "kitt-universal__sc-uke279-0"
|
|
1786
1727
|
})(["", " padding:", ";line-height:", ";width:100%;min-height:", "px;"], styledTextInputMixin, function (_ref) {
|
|
@@ -1802,7 +1743,7 @@ var StyledTextInput = /*#__PURE__*/styled$1(TextInput).withConfig({
|
|
|
1802
1743
|
var $minHeight = _ref3.$minHeight;
|
|
1803
1744
|
return $minHeight;
|
|
1804
1745
|
});
|
|
1805
|
-
var RightInputContainer = /*#__PURE__*/styled
|
|
1746
|
+
var RightInputContainer = /*#__PURE__*/styled(View).withConfig({
|
|
1806
1747
|
displayName: "InputText__RightInputContainer",
|
|
1807
1748
|
componentId: "kitt-universal__sc-uke279-1"
|
|
1808
1749
|
})(["position:absolute;right:0;top:0;bottom:0;justify-content:center;padding:10px;"]);
|
|
@@ -1825,7 +1766,7 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref4, ref) {
|
|
|
1825
1766
|
keyboardType = _ref4$keyboardType === void 0 ? 'default' : _ref4$keyboardType,
|
|
1826
1767
|
_onFocus = _ref4.onFocus,
|
|
1827
1768
|
_onBlur = _ref4.onBlur,
|
|
1828
|
-
props = _objectWithoutProperties(_ref4, _excluded$
|
|
1769
|
+
props = _objectWithoutProperties(_ref4, _excluded$a);
|
|
1829
1770
|
|
|
1830
1771
|
var theme = /*#__PURE__*/useTheme();
|
|
1831
1772
|
|
|
@@ -1841,7 +1782,7 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref4, ref) {
|
|
|
1841
1782
|
});
|
|
1842
1783
|
return /*#__PURE__*/jsxs(InputTextContainer, {
|
|
1843
1784
|
$isDisabled: disabled,
|
|
1844
|
-
children: [/*#__PURE__*/jsx(StyledTextInput, _objectSpread
|
|
1785
|
+
children: [/*#__PURE__*/jsx(StyledTextInput, _objectSpread(_objectSpread({
|
|
1845
1786
|
ref: ref,
|
|
1846
1787
|
nativeID: id,
|
|
1847
1788
|
editable: !disabled,
|
|
@@ -1868,11 +1809,8 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref4, ref) {
|
|
|
1868
1809
|
});
|
|
1869
1810
|
});
|
|
1870
1811
|
|
|
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
1812
|
function InputEmail(props) {
|
|
1875
|
-
return /*#__PURE__*/jsx(InputText, _objectSpread
|
|
1813
|
+
return /*#__PURE__*/jsx(InputText, _objectSpread({
|
|
1876
1814
|
autoCompleteType: "email",
|
|
1877
1815
|
keyboardType: "email-address",
|
|
1878
1816
|
textContentType: "emailAddress",
|
|
@@ -1903,11 +1841,11 @@ function InputFeedback(_ref) {
|
|
|
1903
1841
|
});
|
|
1904
1842
|
}
|
|
1905
1843
|
|
|
1906
|
-
var FieldContainer = /*#__PURE__*/styled
|
|
1844
|
+
var FieldContainer = /*#__PURE__*/styled(View).withConfig({
|
|
1907
1845
|
displayName: "InputField__FieldContainer",
|
|
1908
1846
|
componentId: "kitt-universal__sc-13fkixs-0"
|
|
1909
1847
|
})(["padding:5px 0 10px;"]);
|
|
1910
|
-
var FeedbackContainer = /*#__PURE__*/styled
|
|
1848
|
+
var FeedbackContainer = /*#__PURE__*/styled(View).withConfig({
|
|
1911
1849
|
displayName: "InputField__FeedbackContainer",
|
|
1912
1850
|
componentId: "kitt-universal__sc-13fkixs-1"
|
|
1913
1851
|
})(["", ";"], function (_ref) {
|
|
@@ -1916,14 +1854,14 @@ var FeedbackContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
1916
1854
|
minWidth: KittBreakpoints.SMALL
|
|
1917
1855
|
}, 'padding-top: 10px', 'padding-top: 5px');
|
|
1918
1856
|
});
|
|
1919
|
-
var FieldLabelContainer = /*#__PURE__*/styled
|
|
1857
|
+
var FieldLabelContainer = /*#__PURE__*/styled(View).withConfig({
|
|
1920
1858
|
displayName: "InputField__FieldLabelContainer",
|
|
1921
1859
|
componentId: "kitt-universal__sc-13fkixs-2"
|
|
1922
1860
|
})(["flex-direction:row;align-items:center;padding-bottom:", "px;"], function (_ref2) {
|
|
1923
1861
|
var theme = _ref2.theme;
|
|
1924
1862
|
return theme.kitt.forms.inputField.labelContainerPaddingBottom;
|
|
1925
1863
|
});
|
|
1926
|
-
var LabelContainer = /*#__PURE__*/styled
|
|
1864
|
+
var LabelContainer = /*#__PURE__*/styled(View).withConfig({
|
|
1927
1865
|
displayName: "InputField__LabelContainer",
|
|
1928
1866
|
componentId: "kitt-universal__sc-13fkixs-3"
|
|
1929
1867
|
})(["margin-right:", "px;"], function (_ref3) {
|
|
@@ -1974,31 +1912,24 @@ function InputIcon(_ref) {
|
|
|
1974
1912
|
});
|
|
1975
1913
|
}
|
|
1976
1914
|
|
|
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
1915
|
function InputPressable(_ref) {
|
|
1981
1916
|
var props = _extends({}, _ref);
|
|
1982
1917
|
|
|
1983
|
-
return /*#__PURE__*/jsx(Pressable, _objectSpread
|
|
1918
|
+
return /*#__PURE__*/jsx(Pressable, _objectSpread({}, props));
|
|
1984
1919
|
}
|
|
1985
1920
|
|
|
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; }
|
|
1921
|
+
var _excluded$9 = ["isPasswordDefaultVisible", "right"];
|
|
1991
1922
|
function InputPassword(_ref) {
|
|
1992
1923
|
var isPasswordDefaultVisible = _ref.isPasswordDefaultVisible,
|
|
1993
1924
|
right = _ref.right,
|
|
1994
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1925
|
+
props = _objectWithoutProperties(_ref, _excluded$9);
|
|
1995
1926
|
|
|
1996
1927
|
var _useState = useState(Boolean(isPasswordDefaultVisible)),
|
|
1997
1928
|
_useState2 = _slicedToArray(_useState, 2),
|
|
1998
1929
|
isVisible = _useState2[0],
|
|
1999
1930
|
setIsVisible = _useState2[1];
|
|
2000
1931
|
|
|
2001
|
-
return /*#__PURE__*/jsx(InputText, _objectSpread
|
|
1932
|
+
return /*#__PURE__*/jsx(InputText, _objectSpread(_objectSpread({}, props), {}, {
|
|
2002
1933
|
textContentType: "password",
|
|
2003
1934
|
autoCompleteType: "password",
|
|
2004
1935
|
autoCorrect: false,
|
|
@@ -2017,11 +1948,8 @@ function InputPassword(_ref) {
|
|
|
2017
1948
|
}));
|
|
2018
1949
|
}
|
|
2019
1950
|
|
|
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
1951
|
function InputPhone(props) {
|
|
2024
|
-
return /*#__PURE__*/jsx(InputText, _objectSpread
|
|
1952
|
+
return /*#__PURE__*/jsx(InputText, _objectSpread(_objectSpread({}, props), {}, {
|
|
2025
1953
|
autoCompleteType: "tel",
|
|
2026
1954
|
keyboardType: "number-pad",
|
|
2027
1955
|
textContentType: "telephoneNumber"
|
|
@@ -2032,7 +1960,7 @@ var getTypographyColor = function (type) {
|
|
|
2032
1960
|
return type ? 'white' : 'black';
|
|
2033
1961
|
};
|
|
2034
1962
|
|
|
2035
|
-
var InputTagContainer = /*#__PURE__*/styled
|
|
1963
|
+
var InputTagContainer = /*#__PURE__*/styled(View).withConfig({
|
|
2036
1964
|
displayName: "InputTag__InputTagContainer",
|
|
2037
1965
|
componentId: "kitt-universal__sc-1511dsf-0"
|
|
2038
1966
|
})(["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 +1983,7 @@ var InputTagContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
2055
1983
|
var theme = _ref3.theme;
|
|
2056
1984
|
return theme.kitt.forms.inputTag.borderRadius;
|
|
2057
1985
|
});
|
|
2058
|
-
var IconContainer = /*#__PURE__*/styled
|
|
1986
|
+
var IconContainer = /*#__PURE__*/styled(View).withConfig({
|
|
2059
1987
|
displayName: "InputTag__IconContainer",
|
|
2060
1988
|
componentId: "kitt-universal__sc-1511dsf-1"
|
|
2061
1989
|
})(["margin-right:", "px;"], function (_ref4) {
|
|
@@ -2096,7 +2024,7 @@ function Label(_ref) {
|
|
|
2096
2024
|
});
|
|
2097
2025
|
}
|
|
2098
2026
|
|
|
2099
|
-
var OuterRadio = /*#__PURE__*/styled
|
|
2027
|
+
var OuterRadio = /*#__PURE__*/styled(View).withConfig({
|
|
2100
2028
|
displayName: "Radio__OuterRadio",
|
|
2101
2029
|
componentId: "kitt-universal__sc-1mdgr2o-0"
|
|
2102
2030
|
})(["background-color:", ";width:", "px;height:", "px;border-radius:", "px;border-width:", "px;border-color:", ";"], function (_ref) {
|
|
@@ -2120,7 +2048,7 @@ var OuterRadio = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
2120
2048
|
disabled = _ref6.disabled;
|
|
2121
2049
|
return theme.kitt.forms.radio[disabled ? 'disabled' : 'unchecked'].borderColor;
|
|
2122
2050
|
});
|
|
2123
|
-
var SelectedOuterRadio = /*#__PURE__*/styled
|
|
2051
|
+
var SelectedOuterRadio = /*#__PURE__*/styled(View).withConfig({
|
|
2124
2052
|
displayName: "Radio__SelectedOuterRadio",
|
|
2125
2053
|
componentId: "kitt-universal__sc-1mdgr2o-1"
|
|
2126
2054
|
})(["background-color:", ";width:", "px;height:", "px;border-radius:", "px;justify-content:center;align-items:center;"], function (_ref7) {
|
|
@@ -2136,7 +2064,7 @@ var SelectedOuterRadio = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
2136
2064
|
var theme = _ref10.theme;
|
|
2137
2065
|
return theme.kitt.forms.radio.size / 2;
|
|
2138
2066
|
});
|
|
2139
|
-
var SelectedInnerRadio = /*#__PURE__*/styled
|
|
2067
|
+
var SelectedInnerRadio = /*#__PURE__*/styled(View).withConfig({
|
|
2140
2068
|
displayName: "Radio__SelectedInnerRadio",
|
|
2141
2069
|
componentId: "kitt-universal__sc-1mdgr2o-2"
|
|
2142
2070
|
})(["background-color:", ";width:", "px;height:", "px;border-radius:", "px;"], function (_ref11) {
|
|
@@ -2152,11 +2080,11 @@ var SelectedInnerRadio = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
2152
2080
|
var theme = _ref14.theme;
|
|
2153
2081
|
return theme.kitt.forms.radio.checked.innerSize / 2;
|
|
2154
2082
|
});
|
|
2155
|
-
var Container$2 = /*#__PURE__*/styled
|
|
2083
|
+
var Container$2 = /*#__PURE__*/styled(Pressable).withConfig({
|
|
2156
2084
|
displayName: "Radio__Container",
|
|
2157
2085
|
componentId: "kitt-universal__sc-1mdgr2o-3"
|
|
2158
2086
|
})(["flex-direction:row;align-items:center;"]);
|
|
2159
|
-
var Text = /*#__PURE__*/styled
|
|
2087
|
+
var Text = /*#__PURE__*/styled(Typography.Text).withConfig({
|
|
2160
2088
|
displayName: "Radio__Text",
|
|
2161
2089
|
componentId: "kitt-universal__sc-1mdgr2o-4"
|
|
2162
2090
|
})(["margin-left:", "px;"], function (_ref15) {
|
|
@@ -2192,21 +2120,18 @@ function Radio(_ref16) {
|
|
|
2192
2120
|
});
|
|
2193
2121
|
}
|
|
2194
2122
|
|
|
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
2123
|
function TextArea(_ref) {
|
|
2199
2124
|
var props = _extends({}, _ref);
|
|
2200
2125
|
|
|
2201
2126
|
var theme = /*#__PURE__*/useTheme();
|
|
2202
|
-
return /*#__PURE__*/jsx(InputText, _objectSpread
|
|
2127
|
+
return /*#__PURE__*/jsx(InputText, _objectSpread({
|
|
2203
2128
|
multiline: true,
|
|
2204
2129
|
textAlignVertical: "top",
|
|
2205
2130
|
minHeight: theme.kitt.forms.textArea.minHeight
|
|
2206
2131
|
}, props));
|
|
2207
2132
|
}
|
|
2208
2133
|
|
|
2209
|
-
var Body = /*#__PURE__*/styled
|
|
2134
|
+
var Body = /*#__PURE__*/styled(View).withConfig({
|
|
2210
2135
|
displayName: "Body",
|
|
2211
2136
|
componentId: "kitt-universal__sc-1ofncfn-0"
|
|
2212
2137
|
})(["", " background-color:", ";flex:1;"], function (_ref) {
|
|
@@ -2225,7 +2150,7 @@ function FullScreenModalBody(_ref3) {
|
|
|
2225
2150
|
});
|
|
2226
2151
|
}
|
|
2227
2152
|
|
|
2228
|
-
var SideContainer = /*#__PURE__*/styled
|
|
2153
|
+
var SideContainer = /*#__PURE__*/styled(View).withConfig({
|
|
2229
2154
|
displayName: "Header__SideContainer",
|
|
2230
2155
|
componentId: "kitt-universal__sc-dfmxi1-0"
|
|
2231
2156
|
})(["", ""], function (_ref) {
|
|
@@ -2245,7 +2170,7 @@ function getHeaderHorizontalMediumPadding(spacing) {
|
|
|
2245
2170
|
return spacing * 6;
|
|
2246
2171
|
}
|
|
2247
2172
|
|
|
2248
|
-
var Header = /*#__PURE__*/styled
|
|
2173
|
+
var Header = /*#__PURE__*/styled(View).withConfig({
|
|
2249
2174
|
displayName: "Header",
|
|
2250
2175
|
componentId: "kitt-universal__sc-dfmxi1-1"
|
|
2251
2176
|
})(["", ";border-bottom-color:", ";border-bottom-width:1px;flex-direction:row;align-items:center;"], function (_ref2) {
|
|
@@ -2263,7 +2188,7 @@ var Header = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
2263
2188
|
var theme = _ref3.theme;
|
|
2264
2189
|
return theme.kitt.fullScreenModal.header.borderColor;
|
|
2265
2190
|
});
|
|
2266
|
-
var HeaderContent = /*#__PURE__*/styled
|
|
2191
|
+
var HeaderContent = /*#__PURE__*/styled(View).withConfig({
|
|
2267
2192
|
displayName: "Header__HeaderContent",
|
|
2268
2193
|
componentId: "kitt-universal__sc-dfmxi1-2"
|
|
2269
2194
|
})(["", ";", ";justify-content:center;align-items:center;"], function (_ref4) {
|
|
@@ -2353,7 +2278,7 @@ function FullScreenModalHeader(_ref6) {
|
|
|
2353
2278
|
});
|
|
2354
2279
|
}
|
|
2355
2280
|
|
|
2356
|
-
var Container$1 = /*#__PURE__*/styled
|
|
2281
|
+
var Container$1 = /*#__PURE__*/styled(View).withConfig({
|
|
2357
2282
|
displayName: "FullScreenModal__Container",
|
|
2358
2283
|
componentId: "kitt-universal__sc-11qpbe3-0"
|
|
2359
2284
|
})(["flex:1;background-color:", ";"], function (_ref) {
|
|
@@ -2369,28 +2294,43 @@ function FullScreenModal(_ref2) {
|
|
|
2369
2294
|
FullScreenModal.Header = FullScreenModalHeader;
|
|
2370
2295
|
FullScreenModal.Body = FullScreenModalBody;
|
|
2371
2296
|
|
|
2372
|
-
var
|
|
2373
|
-
|
|
2374
|
-
|
|
2297
|
+
var StyledSpinningIconContainer = withTheme( /*#__PURE__*/styled$1("div")({
|
|
2298
|
+
name: "StyledSpinningIconContainer",
|
|
2299
|
+
"class": "kitt-u_StyledSpinningIconContainer_ssn8o83"
|
|
2300
|
+
}));
|
|
2301
|
+
function SpinningIcon(_ref) {
|
|
2302
|
+
var icon = _ref.icon,
|
|
2303
|
+
_ref$size = _ref.size,
|
|
2304
|
+
size = _ref$size === void 0 ? defaultIconSize : _ref$size,
|
|
2305
|
+
align = _ref.align,
|
|
2306
|
+
color = _ref.color;
|
|
2307
|
+
var clonedIcon = /*#__PURE__*/cloneElement(icon, {
|
|
2308
|
+
color: color
|
|
2309
|
+
});
|
|
2310
|
+
return /*#__PURE__*/jsx(IconContainer$1, {
|
|
2311
|
+
$align: align,
|
|
2312
|
+
$size: size,
|
|
2313
|
+
$color: color,
|
|
2314
|
+
children: /*#__PURE__*/jsx(StyledSpinningIconContainer, {
|
|
2315
|
+
children: clonedIcon
|
|
2316
|
+
})
|
|
2317
|
+
});
|
|
2318
|
+
}
|
|
2375
2319
|
|
|
2376
|
-
|
|
2320
|
+
var _excluded$8 = ["as", "children"];
|
|
2377
2321
|
function StyleWebWrapper(_ref) {
|
|
2378
2322
|
var as = _ref.as,
|
|
2379
2323
|
children = _ref.children,
|
|
2380
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2324
|
+
props = _objectWithoutProperties(_ref, _excluded$8);
|
|
2381
2325
|
|
|
2382
2326
|
// as or default to div. If as is undefined, T is div but typescript is not sure
|
|
2383
|
-
return /*#__PURE__*/jsx(as || 'div', _objectSpread
|
|
2327
|
+
return /*#__PURE__*/jsx(as || 'div', _objectSpread(_objectSpread({}, props), {}, {
|
|
2384
2328
|
children: children
|
|
2385
2329
|
}));
|
|
2386
2330
|
}
|
|
2387
2331
|
|
|
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")({
|
|
2332
|
+
var _excluded$7 = ["color", "disabled"];
|
|
2333
|
+
var PressableIconButtonWebWrapper = withTheme( /*#__PURE__*/styled$1("div")({
|
|
2394
2334
|
name: "PressableIconButtonWebWrapper",
|
|
2395
2335
|
"class": "kitt-u_PressableIconButtonWebWrapper_p1nlccvg",
|
|
2396
2336
|
vars: {
|
|
@@ -2422,7 +2362,7 @@ var PressableIconButtonWebWrapper = withTheme( /*#__PURE__*/styled("div")({
|
|
|
2422
2362
|
}]
|
|
2423
2363
|
}
|
|
2424
2364
|
}));
|
|
2425
|
-
var StyledPressableIconButton = /*#__PURE__*/styled
|
|
2365
|
+
var StyledPressableIconButton = /*#__PURE__*/styled(Pressable).withConfig({
|
|
2426
2366
|
displayName: "PressableIconButton__StyledPressableIconButton",
|
|
2427
2367
|
componentId: "kitt-universal__sc-1m6jo3s-0"
|
|
2428
2368
|
})(["border-radius:", "px;width:", "px;height:", "px;align-items:center;justify-content:center;position:relative;background-color:transparent;", ";"], function (_ref5) {
|
|
@@ -2449,13 +2389,13 @@ var StyledPressableIconButton = /*#__PURE__*/styled$1(Pressable).withConfig({
|
|
|
2449
2389
|
function PressableIconButton(_ref9) {
|
|
2450
2390
|
var color = _ref9.color,
|
|
2451
2391
|
disabled = _ref9.disabled,
|
|
2452
|
-
props = _objectWithoutProperties(_ref9, _excluded$
|
|
2392
|
+
props = _objectWithoutProperties(_ref9, _excluded$7);
|
|
2453
2393
|
|
|
2454
2394
|
return /*#__PURE__*/jsx(StyleWebWrapper, {
|
|
2455
2395
|
as: PressableIconButtonWebWrapper,
|
|
2456
2396
|
$isWhite: color === 'white',
|
|
2457
2397
|
$isDisabled: Boolean(disabled),
|
|
2458
|
-
children: /*#__PURE__*/jsx(StyledPressableIconButton, _objectSpread
|
|
2398
|
+
children: /*#__PURE__*/jsx(StyledPressableIconButton, _objectSpread(_objectSpread({}, props), {}, {
|
|
2459
2399
|
disabled: disabled
|
|
2460
2400
|
}))
|
|
2461
2401
|
});
|
|
@@ -2475,7 +2415,7 @@ function PressableAnimatedContainer(_ref) {
|
|
|
2475
2415
|
});
|
|
2476
2416
|
}
|
|
2477
2417
|
|
|
2478
|
-
var IconButtonContentBorder = /*#__PURE__*/styled
|
|
2418
|
+
var IconButtonContentBorder = /*#__PURE__*/styled(View).withConfig({
|
|
2479
2419
|
displayName: "IconButton__IconButtonContentBorder",
|
|
2480
2420
|
componentId: "kitt-universal__sc-swelbf-0"
|
|
2481
2421
|
})(["border:", ";border-color:", ";width:", "px;height:", "px;align-items:center;justify-content:center;border-radius:", "px;"], function (_ref) {
|
|
@@ -2532,31 +2472,23 @@ function IconButton(_ref7) {
|
|
|
2532
2472
|
});
|
|
2533
2473
|
}
|
|
2534
2474
|
|
|
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({
|
|
2475
|
+
var _excluded$6 = ["children"];
|
|
2476
|
+
var ContentView$1 = /*#__PURE__*/styled(View).withConfig({
|
|
2541
2477
|
displayName: "ListItemContent__ContentView",
|
|
2542
2478
|
componentId: "kitt-universal__sc-57q0u9-0"
|
|
2543
2479
|
})(["flex:1 0 0%;align-self:center;"]);
|
|
2544
2480
|
function ListItemContent(_ref) {
|
|
2545
2481
|
var children = _ref.children,
|
|
2546
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
2482
|
+
rest = _objectWithoutProperties(_ref, _excluded$6);
|
|
2547
2483
|
|
|
2548
|
-
return /*#__PURE__*/jsx(ContentView$1, _objectSpread
|
|
2484
|
+
return /*#__PURE__*/jsx(ContentView$1, _objectSpread(_objectSpread({}, rest), {}, {
|
|
2549
2485
|
children: children
|
|
2550
2486
|
}));
|
|
2551
2487
|
}
|
|
2552
2488
|
|
|
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({
|
|
2489
|
+
var _excluded$5 = ["children", "side"],
|
|
2490
|
+
_excluded2$2 = ["children", "align"];
|
|
2491
|
+
var SideContainerView = /*#__PURE__*/styled(View).withConfig({
|
|
2560
2492
|
displayName: "ListItemSideContent__SideContainerView",
|
|
2561
2493
|
componentId: "kitt-universal__sc-1vajiw-0"
|
|
2562
2494
|
})(["flex-direction:row;margin-left:", ";margin-right:", ";"], function (_ref) {
|
|
@@ -2573,15 +2505,15 @@ function ListItemSideContainer(_ref3) {
|
|
|
2573
2505
|
var children = _ref3.children,
|
|
2574
2506
|
_ref3$side = _ref3.side,
|
|
2575
2507
|
side = _ref3$side === void 0 ? 'left' : _ref3$side,
|
|
2576
|
-
rest = _objectWithoutProperties(_ref3, _excluded$
|
|
2508
|
+
rest = _objectWithoutProperties(_ref3, _excluded$5);
|
|
2577
2509
|
|
|
2578
|
-
return /*#__PURE__*/jsx(SideContainerView, _objectSpread
|
|
2510
|
+
return /*#__PURE__*/jsx(SideContainerView, _objectSpread(_objectSpread({
|
|
2579
2511
|
side: side
|
|
2580
2512
|
}, rest), {}, {
|
|
2581
2513
|
children: children
|
|
2582
2514
|
}));
|
|
2583
2515
|
}
|
|
2584
|
-
var SideContentView = /*#__PURE__*/styled
|
|
2516
|
+
var SideContentView = /*#__PURE__*/styled(View).withConfig({
|
|
2585
2517
|
displayName: "ListItemSideContent__SideContentView",
|
|
2586
2518
|
componentId: "kitt-universal__sc-1vajiw-1"
|
|
2587
2519
|
})(["align-self:", ";"], function (_ref4) {
|
|
@@ -2592,21 +2524,17 @@ function ListItemSideContent(_ref5) {
|
|
|
2592
2524
|
var children = _ref5.children,
|
|
2593
2525
|
_ref5$align = _ref5.align,
|
|
2594
2526
|
align = _ref5$align === void 0 ? 'auto' : _ref5$align,
|
|
2595
|
-
rest = _objectWithoutProperties(_ref5, _excluded2$
|
|
2527
|
+
rest = _objectWithoutProperties(_ref5, _excluded2$2);
|
|
2596
2528
|
|
|
2597
|
-
return /*#__PURE__*/jsx(SideContentView, _objectSpread
|
|
2529
|
+
return /*#__PURE__*/jsx(SideContentView, _objectSpread(_objectSpread({
|
|
2598
2530
|
align: align
|
|
2599
2531
|
}, rest), {}, {
|
|
2600
2532
|
children: children
|
|
2601
2533
|
}));
|
|
2602
2534
|
}
|
|
2603
2535
|
|
|
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({
|
|
2536
|
+
var _excluded$4 = ["children", "withPadding", "borders", "left", "right", "onPress"];
|
|
2537
|
+
var ContainerView = /*#__PURE__*/styled(View).withConfig({
|
|
2610
2538
|
displayName: "ListItem__ContainerView",
|
|
2611
2539
|
componentId: "kitt-universal__sc-2afp9s-0"
|
|
2612
2540
|
})(["flex-direction:row;padding:", ";", ";border-color:", ";background-color:", ";"], function (_ref) {
|
|
@@ -2645,16 +2573,16 @@ function ListItem(_ref5) {
|
|
|
2645
2573
|
left = _ref5.left,
|
|
2646
2574
|
right = _ref5.right,
|
|
2647
2575
|
onPress = _ref5.onPress,
|
|
2648
|
-
rest = _objectWithoutProperties(_ref5, _excluded$
|
|
2576
|
+
rest = _objectWithoutProperties(_ref5, _excluded$4);
|
|
2649
2577
|
|
|
2650
2578
|
var Wrapper = onPress ? Pressable : Fragment;
|
|
2651
|
-
var wrapperProps = onPress ? _objectSpread
|
|
2579
|
+
var wrapperProps = onPress ? _objectSpread({
|
|
2652
2580
|
accessibilityRole: 'button',
|
|
2653
2581
|
onPress: onPress
|
|
2654
2582
|
}, rest) : undefined;
|
|
2655
2583
|
var containerProps = onPress ? undefined : rest;
|
|
2656
|
-
return /*#__PURE__*/jsx(Wrapper, _objectSpread
|
|
2657
|
-
children: /*#__PURE__*/jsxs(ContainerView, _objectSpread
|
|
2584
|
+
return /*#__PURE__*/jsx(Wrapper, _objectSpread(_objectSpread({}, wrapperProps), {}, {
|
|
2585
|
+
children: /*#__PURE__*/jsxs(ContainerView, _objectSpread(_objectSpread({
|
|
2658
2586
|
withPadding: withPadding,
|
|
2659
2587
|
borders: borders
|
|
2660
2588
|
}, containerProps), {}, {
|
|
@@ -2674,7 +2602,7 @@ ListItem.Content = ListItemContent;
|
|
|
2674
2602
|
ListItem.SideContent = ListItemSideContent;
|
|
2675
2603
|
ListItem.SideContainer = ListItemSideContainer;
|
|
2676
2604
|
|
|
2677
|
-
var LargeLoaderContainer = withTheme( /*#__PURE__*/styled("div")({
|
|
2605
|
+
var LargeLoaderContainer = withTheme( /*#__PURE__*/styled$1("div")({
|
|
2678
2606
|
name: "LargeLoaderContainer",
|
|
2679
2607
|
"class": "kitt-u_LargeLoaderContainer_l2im3sa",
|
|
2680
2608
|
vars: {
|
|
@@ -2714,13 +2642,45 @@ function LargeLoader() {
|
|
|
2714
2642
|
});
|
|
2715
2643
|
}
|
|
2716
2644
|
|
|
2645
|
+
var _excluded$3 = ["color"],
|
|
2646
|
+
_excluded2$1 = ["color"];
|
|
2647
|
+
|
|
2648
|
+
function TypographySpinningIconSpecifiedColor(_ref) {
|
|
2649
|
+
var color = _ref.color,
|
|
2650
|
+
props = _objectWithoutProperties(_ref, _excluded$3);
|
|
2651
|
+
|
|
2652
|
+
var theme = /*#__PURE__*/useTheme();
|
|
2653
|
+
return /*#__PURE__*/jsx(SpinningIcon, _objectSpread(_objectSpread({}, props), {}, {
|
|
2654
|
+
color: color === 'inherit' ? 'inherit' : theme.kitt.typography.colors[color]
|
|
2655
|
+
}));
|
|
2656
|
+
}
|
|
2657
|
+
|
|
2658
|
+
function TypographySpinningIconInheritColor(props) {
|
|
2659
|
+
var color = useTypographyColor();
|
|
2660
|
+
return /*#__PURE__*/jsx(TypographySpinningIconSpecifiedColor, _objectSpread({
|
|
2661
|
+
color: color
|
|
2662
|
+
}, props));
|
|
2663
|
+
}
|
|
2664
|
+
|
|
2665
|
+
function TypographySpinningIcon(_ref2) {
|
|
2666
|
+
var color = _ref2.color,
|
|
2667
|
+
props = _objectWithoutProperties(_ref2, _excluded2$1);
|
|
2668
|
+
|
|
2669
|
+
if (color) {
|
|
2670
|
+
return /*#__PURE__*/jsx(TypographySpinningIconSpecifiedColor, _objectSpread({
|
|
2671
|
+
color: color
|
|
2672
|
+
}, props));
|
|
2673
|
+
}
|
|
2674
|
+
|
|
2675
|
+
return /*#__PURE__*/jsx(TypographySpinningIconInheritColor, _objectSpread({}, props));
|
|
2676
|
+
}
|
|
2677
|
+
|
|
2717
2678
|
function Loader(_ref) {
|
|
2718
2679
|
var _ref$color = _ref.color,
|
|
2719
2680
|
color = _ref$color === void 0 ? 'primary' : _ref$color,
|
|
2720
2681
|
_ref$size = _ref.size,
|
|
2721
2682
|
size = _ref$size === void 0 ? 20 : _ref$size;
|
|
2722
|
-
return /*#__PURE__*/jsx(
|
|
2723
|
-
spin: true,
|
|
2683
|
+
return /*#__PURE__*/jsx(TypographySpinningIcon, {
|
|
2724
2684
|
color: color,
|
|
2725
2685
|
size: size,
|
|
2726
2686
|
icon: /*#__PURE__*/jsx(LoaderIcon, {})
|
|
@@ -2779,7 +2739,7 @@ var getIconButtonColor = function (messageType) {
|
|
|
2779
2739
|
}
|
|
2780
2740
|
};
|
|
2781
2741
|
|
|
2782
|
-
var StyledMessageContainer = /*#__PURE__*/styled
|
|
2742
|
+
var StyledMessageContainer = /*#__PURE__*/styled(View).withConfig({
|
|
2783
2743
|
displayName: "BaseMessage__StyledMessageContainer",
|
|
2784
2744
|
componentId: "kitt-universal__sc-eepeiz-0"
|
|
2785
2745
|
})(["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 +2756,7 @@ var StyledMessageContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
2796
2756
|
$type = _ref3.$type;
|
|
2797
2757
|
return theme.kitt.feedbackMessage[$type].backgroundColor;
|
|
2798
2758
|
});
|
|
2799
|
-
var StyledDismissWrapper = /*#__PURE__*/styled
|
|
2759
|
+
var StyledDismissWrapper = /*#__PURE__*/styled(View).withConfig({
|
|
2800
2760
|
displayName: "BaseMessage__StyledDismissWrapper",
|
|
2801
2761
|
componentId: "kitt-universal__sc-eepeiz-1"
|
|
2802
2762
|
})(["align-items:center;align-items:flex-start;margin:", ";"], function (_ref4) {
|
|
@@ -2804,7 +2764,7 @@ var StyledDismissWrapper = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
2804
2764
|
var spacing = theme.kitt.spacing;
|
|
2805
2765
|
return "".concat(spacing * 2.5, "px ").concat(spacing * 2, "px 0 ").concat(spacing * 5, "px");
|
|
2806
2766
|
});
|
|
2807
|
-
var StyledIconContainer = /*#__PURE__*/styled
|
|
2767
|
+
var StyledIconContainer = /*#__PURE__*/styled(View).withConfig({
|
|
2808
2768
|
displayName: "BaseMessage__StyledIconContainer",
|
|
2809
2769
|
componentId: "kitt-universal__sc-eepeiz-2"
|
|
2810
2770
|
})(["margin:", ";"], function (_ref5) {
|
|
@@ -2812,14 +2772,14 @@ var StyledIconContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
2812
2772
|
var spacing = theme.kitt.spacing;
|
|
2813
2773
|
return "".concat(spacing, "px ").concat(spacing * 5, "px 0 0");
|
|
2814
2774
|
});
|
|
2815
|
-
var StyledTextContent = /*#__PURE__*/styled
|
|
2775
|
+
var StyledTextContent = /*#__PURE__*/styled(Typography.Text).withConfig({
|
|
2816
2776
|
displayName: "BaseMessage__StyledTextContent",
|
|
2817
2777
|
componentId: "kitt-universal__sc-eepeiz-3"
|
|
2818
2778
|
})(["flex:1;text-align:", ";"], function (_ref6) {
|
|
2819
2779
|
var $isCenteredText = _ref6.$isCenteredText;
|
|
2820
2780
|
return $isCenteredText ? 'center' : 'left';
|
|
2821
2781
|
});
|
|
2822
|
-
var StyledMessageContent = /*#__PURE__*/styled
|
|
2782
|
+
var StyledMessageContent = /*#__PURE__*/styled(View).withConfig({
|
|
2823
2783
|
displayName: "BaseMessage__StyledMessageContent",
|
|
2824
2784
|
componentId: "kitt-universal__sc-eepeiz-4"
|
|
2825
2785
|
})(["display:flex;flex-direction:row;flex-grow:1;align-self:center;align-items:flex-start;flex-shrink:1;padding:", ";"], function (_ref7) {
|
|
@@ -2883,16 +2843,13 @@ function Message(_ref) {
|
|
|
2883
2843
|
});
|
|
2884
2844
|
}
|
|
2885
2845
|
|
|
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
2846
|
// Don't use styled.Pressable here - babel-plugin-styled-components-react-native-web only supports tagged templates
|
|
2890
|
-
var OverlayPressable = /*#__PURE__*/styled
|
|
2847
|
+
var OverlayPressable = /*#__PURE__*/styled(Pressable).withConfig({
|
|
2891
2848
|
displayName: "Overlay__OverlayPressable",
|
|
2892
2849
|
componentId: "kitt-universal__sc-1cz1gbr-0"
|
|
2893
2850
|
})(function (_ref) {
|
|
2894
2851
|
var theme = _ref.theme;
|
|
2895
|
-
return _objectSpread
|
|
2852
|
+
return _objectSpread(_objectSpread({}, StyleSheet.absoluteFillObject), {}, {
|
|
2896
2853
|
backgroundColor: theme.kitt.colors.overlay.dark
|
|
2897
2854
|
});
|
|
2898
2855
|
});
|
|
@@ -2905,7 +2862,7 @@ function Overlay(_ref2) {
|
|
|
2905
2862
|
});
|
|
2906
2863
|
}
|
|
2907
2864
|
|
|
2908
|
-
var BodyView = /*#__PURE__*/styled
|
|
2865
|
+
var BodyView = /*#__PURE__*/styled(View).withConfig({
|
|
2909
2866
|
displayName: "Body__BodyView",
|
|
2910
2867
|
componentId: "kitt-universal__sc-17fwpo4-0"
|
|
2911
2868
|
})(["padding:", "px ", "px;"], function (_ref) {
|
|
@@ -2924,7 +2881,7 @@ function ModalBody(_ref3) {
|
|
|
2924
2881
|
});
|
|
2925
2882
|
}
|
|
2926
2883
|
|
|
2927
|
-
var FooterView = /*#__PURE__*/styled
|
|
2884
|
+
var FooterView = /*#__PURE__*/styled(View).withConfig({
|
|
2928
2885
|
displayName: "Footer__FooterView",
|
|
2929
2886
|
componentId: "kitt-universal__sc-1ujq2dc-0"
|
|
2930
2887
|
})(["flex:0 0 auto;padding:", "px;border-top-width:1px;border-top-color:", ";"], function (_ref) {
|
|
@@ -2943,7 +2900,7 @@ function ModalFooter(_ref3) {
|
|
|
2943
2900
|
|
|
2944
2901
|
var OnCloseContext = /*#__PURE__*/createContext(function () {});
|
|
2945
2902
|
|
|
2946
|
-
var HeaderView = /*#__PURE__*/styled
|
|
2903
|
+
var HeaderView = /*#__PURE__*/styled(View).withConfig({
|
|
2947
2904
|
displayName: "Header__HeaderView",
|
|
2948
2905
|
componentId: "kitt-universal__sc-1iwabch-0"
|
|
2949
2906
|
})(["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 +2910,21 @@ var HeaderView = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
2953
2910
|
var theme = _ref2.theme;
|
|
2954
2911
|
return theme.kitt.colors.separator;
|
|
2955
2912
|
});
|
|
2956
|
-
var LeftIconView = /*#__PURE__*/styled
|
|
2913
|
+
var LeftIconView = /*#__PURE__*/styled(View).withConfig({
|
|
2957
2914
|
displayName: "Header__LeftIconView",
|
|
2958
2915
|
componentId: "kitt-universal__sc-1iwabch-1"
|
|
2959
2916
|
})(["align-self:flex-start;margin-right:", "px;"], function (_ref3) {
|
|
2960
2917
|
var theme = _ref3.theme;
|
|
2961
2918
|
return theme.kitt.spacing * 2;
|
|
2962
2919
|
});
|
|
2963
|
-
var RightIconView = /*#__PURE__*/styled
|
|
2920
|
+
var RightIconView = /*#__PURE__*/styled(View).withConfig({
|
|
2964
2921
|
displayName: "Header__RightIconView",
|
|
2965
2922
|
componentId: "kitt-universal__sc-1iwabch-2"
|
|
2966
2923
|
})(["align-self:flex-start;margin-left:", "px;"], function (_ref4) {
|
|
2967
2924
|
var theme = _ref4.theme;
|
|
2968
2925
|
return theme.kitt.spacing * 2;
|
|
2969
2926
|
});
|
|
2970
|
-
var TitleView = /*#__PURE__*/styled
|
|
2927
|
+
var TitleView = /*#__PURE__*/styled(View).withConfig({
|
|
2971
2928
|
displayName: "Header__TitleView",
|
|
2972
2929
|
componentId: "kitt-universal__sc-1iwabch-3"
|
|
2973
2930
|
})(["padding-left:", "px;flex-shrink:1;"], function (_ref5) {
|
|
@@ -2996,7 +2953,7 @@ function ModalHeader(_ref6) {
|
|
|
2996
2953
|
});
|
|
2997
2954
|
}
|
|
2998
2955
|
|
|
2999
|
-
var ModalView = /*#__PURE__*/styled
|
|
2956
|
+
var ModalView = /*#__PURE__*/styled(View).withConfig({
|
|
3000
2957
|
displayName: "Modal__ModalView",
|
|
3001
2958
|
componentId: "kitt-universal__sc-1xy2w5u-0"
|
|
3002
2959
|
})(["top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:", "px ", "px;"], function (_ref) {
|
|
@@ -3006,7 +2963,7 @@ var ModalView = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
3006
2963
|
var theme = _ref2.theme;
|
|
3007
2964
|
return theme.kitt.spacing * 4;
|
|
3008
2965
|
});
|
|
3009
|
-
var ContentView = /*#__PURE__*/styled
|
|
2966
|
+
var ContentView = /*#__PURE__*/styled(View).withConfig({
|
|
3010
2967
|
displayName: "Modal__ContentView",
|
|
3011
2968
|
componentId: "kitt-universal__sc-1xy2w5u-1"
|
|
3012
2969
|
})(["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 +3026,7 @@ function Notification(_ref) {
|
|
|
3069
3026
|
});
|
|
3070
3027
|
}
|
|
3071
3028
|
|
|
3072
|
-
var StyledSkeleton = withTheme( /*#__PURE__*/styled("div")({
|
|
3029
|
+
var StyledSkeleton = withTheme( /*#__PURE__*/styled$1("div")({
|
|
3073
3030
|
name: "StyledSkeleton",
|
|
3074
3031
|
"class": "kitt-u_StyledSkeleton_sc3upcl",
|
|
3075
3032
|
vars: {
|
|
@@ -3095,7 +3052,7 @@ function SkeletonContent(_ref4) {
|
|
|
3095
3052
|
});
|
|
3096
3053
|
}
|
|
3097
3054
|
|
|
3098
|
-
var SkeletonContainer = /*#__PURE__*/styled
|
|
3055
|
+
var SkeletonContainer = /*#__PURE__*/styled(View).withConfig({
|
|
3099
3056
|
displayName: "Skeleton__SkeletonContainer",
|
|
3100
3057
|
componentId: "kitt-universal__sc-1w5cm3i-0"
|
|
3101
3058
|
})(["overflow:hidden;"]);
|
|
@@ -3120,7 +3077,7 @@ function Skeleton(_ref) {
|
|
|
3120
3077
|
})
|
|
3121
3078
|
});
|
|
3122
3079
|
}
|
|
3123
|
-
var Bar = /*#__PURE__*/styled
|
|
3080
|
+
var Bar = /*#__PURE__*/styled(Skeleton).withConfig({
|
|
3124
3081
|
displayName: "Skeleton__Bar",
|
|
3125
3082
|
componentId: "kitt-universal__sc-1w5cm3i-1"
|
|
3126
3083
|
})(["width:100%;height:", "px;border-radius:", "px;"], function (_ref3) {
|
|
@@ -3130,7 +3087,7 @@ var Bar = /*#__PURE__*/styled$1(Skeleton).withConfig({
|
|
|
3130
3087
|
var theme = _ref4.theme;
|
|
3131
3088
|
return theme.kitt.spacing * 2;
|
|
3132
3089
|
});
|
|
3133
|
-
var Circle = /*#__PURE__*/styled
|
|
3090
|
+
var Circle = /*#__PURE__*/styled(Skeleton).withConfig({
|
|
3134
3091
|
displayName: "Skeleton__Circle",
|
|
3135
3092
|
componentId: "kitt-universal__sc-1w5cm3i-2"
|
|
3136
3093
|
})(["width:", "px;height:", "px;border-radius:", "px;"], function (_ref5) {
|
|
@@ -3143,7 +3100,7 @@ var Circle = /*#__PURE__*/styled$1(Skeleton).withConfig({
|
|
|
3143
3100
|
var theme = _ref7.theme;
|
|
3144
3101
|
return theme.kitt.spacing * 6;
|
|
3145
3102
|
});
|
|
3146
|
-
var Square = /*#__PURE__*/styled
|
|
3103
|
+
var Square = /*#__PURE__*/styled(Skeleton).withConfig({
|
|
3147
3104
|
displayName: "Skeleton__Square",
|
|
3148
3105
|
componentId: "kitt-universal__sc-1w5cm3i-3"
|
|
3149
3106
|
})(["width:", "px;height:", "px;border-radius:", "px;"], function (_ref8) {
|
|
@@ -3160,7 +3117,7 @@ Skeleton.Bar = Bar;
|
|
|
3160
3117
|
Skeleton.Circle = Circle;
|
|
3161
3118
|
Skeleton.Square = Square;
|
|
3162
3119
|
|
|
3163
|
-
var Flex = /*#__PURE__*/styled
|
|
3120
|
+
var Flex = /*#__PURE__*/styled(View).withConfig({
|
|
3164
3121
|
shouldForwardProp: function shouldForwardProp(prop, defaultValidatorFn) {
|
|
3165
3122
|
return !['direction', 'padding'].includes(prop) && defaultValidatorFn(prop);
|
|
3166
3123
|
}
|
|
@@ -3217,7 +3174,7 @@ var useStoryBlockColor = function (color) {
|
|
|
3217
3174
|
var storyBlockColor = useContext(StoryBlockColorContext);
|
|
3218
3175
|
return color || storyBlockColor;
|
|
3219
3176
|
};
|
|
3220
|
-
var StyledStoryBlockView = /*#__PURE__*/styled
|
|
3177
|
+
var StyledStoryBlockView = /*#__PURE__*/styled(View).withConfig({
|
|
3221
3178
|
displayName: "StoryBlock__StyledStoryBlockView",
|
|
3222
3179
|
componentId: "kitt-universal__sc-3w4hdm-0"
|
|
3223
3180
|
})(["padding:16px ", "px 0;margin:0 -", "px;background:", ";"], storyPadding, storyPadding, function (_ref) {
|
|
@@ -3240,11 +3197,11 @@ function StoryBlock(_ref2) {
|
|
|
3240
3197
|
});
|
|
3241
3198
|
}
|
|
3242
3199
|
|
|
3243
|
-
var StoryTitleContainer = /*#__PURE__*/styled
|
|
3200
|
+
var StoryTitleContainer = /*#__PURE__*/styled(View).withConfig({
|
|
3244
3201
|
displayName: "StoryTitle__StoryTitleContainer",
|
|
3245
3202
|
componentId: "kitt-universal__sc-sic7hb-0"
|
|
3246
3203
|
})(["margin-bottom:30px;"]);
|
|
3247
|
-
var StorySubTitleContainer = /*#__PURE__*/styled
|
|
3204
|
+
var StorySubTitleContainer = /*#__PURE__*/styled(View).withConfig({
|
|
3248
3205
|
displayName: "StoryTitle__StorySubTitleContainer",
|
|
3249
3206
|
componentId: "kitt-universal__sc-sic7hb-1"
|
|
3250
3207
|
})(["margin-bottom:10px;"]);
|
|
@@ -3319,7 +3276,7 @@ StoryTitle.Level2 = StoryTitleLevel2;
|
|
|
3319
3276
|
StoryTitle.Level3 = StoryTitleLevel3;
|
|
3320
3277
|
StoryTitle.Level4 = StoryTitleLevel4;
|
|
3321
3278
|
|
|
3322
|
-
var StoryContainer$1 = /*#__PURE__*/styled
|
|
3279
|
+
var StoryContainer$1 = /*#__PURE__*/styled(ScrollView).withConfig({
|
|
3323
3280
|
displayName: "Story__StoryContainer",
|
|
3324
3281
|
componentId: "kitt-universal__sc-1kwdg2p-0"
|
|
3325
3282
|
})(["padding:", "px;"], storyPadding);
|
|
@@ -3338,11 +3295,7 @@ function Story(_ref) {
|
|
|
3338
3295
|
var _excluded$2 = ["title", "children", "internalIsDemoSection"],
|
|
3339
3296
|
_excluded2 = ["title", "children"],
|
|
3340
3297
|
_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({
|
|
3298
|
+
var StyledSection = /*#__PURE__*/styled(View).withConfig({
|
|
3346
3299
|
displayName: "StorySection__StyledSection",
|
|
3347
3300
|
componentId: "kitt-universal__sc-1b3liv5-0"
|
|
3348
3301
|
})(["margin-bottom:32px;"]);
|
|
@@ -3353,13 +3306,13 @@ function StorySection(_ref) {
|
|
|
3353
3306
|
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
3354
3307
|
|
|
3355
3308
|
if (title === 'Demo' && !internalIsDemoSection) throw new Error('Use StorySection.Demo instead');
|
|
3356
|
-
return /*#__PURE__*/jsxs(StyledSection, _objectSpread
|
|
3309
|
+
return /*#__PURE__*/jsxs(StyledSection, _objectSpread(_objectSpread({}, props), {}, {
|
|
3357
3310
|
children: [/*#__PURE__*/jsx(StoryTitle.Level2, {
|
|
3358
3311
|
children: title
|
|
3359
3312
|
}), children]
|
|
3360
3313
|
}));
|
|
3361
3314
|
}
|
|
3362
|
-
var StyledSubSection = /*#__PURE__*/styled
|
|
3315
|
+
var StyledSubSection = /*#__PURE__*/styled(View).withConfig({
|
|
3363
3316
|
displayName: "StorySection__StyledSubSection",
|
|
3364
3317
|
componentId: "kitt-universal__sc-1b3liv5-1"
|
|
3365
3318
|
})(["margin-bottom:16px;"]);
|
|
@@ -3369,14 +3322,14 @@ function SubSection(_ref2) {
|
|
|
3369
3322
|
children = _ref2.children,
|
|
3370
3323
|
props = _objectWithoutProperties(_ref2, _excluded2);
|
|
3371
3324
|
|
|
3372
|
-
return /*#__PURE__*/jsxs(StyledSubSection, _objectSpread
|
|
3325
|
+
return /*#__PURE__*/jsxs(StyledSubSection, _objectSpread(_objectSpread({}, props), {}, {
|
|
3373
3326
|
children: [/*#__PURE__*/jsx(StoryTitle.Level3, {
|
|
3374
3327
|
children: title
|
|
3375
3328
|
}), children]
|
|
3376
3329
|
}));
|
|
3377
3330
|
}
|
|
3378
3331
|
|
|
3379
|
-
var StyledBlockSection = /*#__PURE__*/styled
|
|
3332
|
+
var StyledBlockSection = /*#__PURE__*/styled(View).withConfig({
|
|
3380
3333
|
displayName: "StorySection__StyledBlockSection",
|
|
3381
3334
|
componentId: "kitt-universal__sc-1b3liv5-2"
|
|
3382
3335
|
})(["margin-bottom:16px;"]);
|
|
@@ -3386,14 +3339,14 @@ function BlockSection(_ref3) {
|
|
|
3386
3339
|
children = _ref3.children,
|
|
3387
3340
|
props = _objectWithoutProperties(_ref3, _excluded3);
|
|
3388
3341
|
|
|
3389
|
-
return /*#__PURE__*/jsxs(StyledBlockSection, _objectSpread
|
|
3342
|
+
return /*#__PURE__*/jsxs(StyledBlockSection, _objectSpread(_objectSpread({}, props), {}, {
|
|
3390
3343
|
children: [/*#__PURE__*/jsx(StoryTitle.Level4, {
|
|
3391
3344
|
children: title
|
|
3392
3345
|
}), children]
|
|
3393
3346
|
}));
|
|
3394
3347
|
}
|
|
3395
3348
|
|
|
3396
|
-
var StyledDemoSection = /*#__PURE__*/styled
|
|
3349
|
+
var StyledDemoSection = /*#__PURE__*/styled(View).withConfig({
|
|
3397
3350
|
displayName: "StorySection__StyledDemoSection",
|
|
3398
3351
|
componentId: "kitt-universal__sc-1b3liv5-3"
|
|
3399
3352
|
})(["margin-bottom:64px;"]);
|
|
@@ -3442,19 +3395,19 @@ function StoryDecorator(storyFn, context) {
|
|
|
3442
3395
|
});
|
|
3443
3396
|
}
|
|
3444
3397
|
|
|
3445
|
-
var SmallScreenRow = /*#__PURE__*/styled
|
|
3398
|
+
var SmallScreenRow = /*#__PURE__*/styled(View).withConfig({
|
|
3446
3399
|
displayName: "StoryGrid__SmallScreenRow",
|
|
3447
3400
|
componentId: "kitt-universal__sc-4z5new-0"
|
|
3448
3401
|
})(["flex-direction:column;margin:0;"]);
|
|
3449
|
-
var SmallScreenCol = /*#__PURE__*/styled
|
|
3402
|
+
var SmallScreenCol = /*#__PURE__*/styled(View).withConfig({
|
|
3450
3403
|
displayName: "StoryGrid__SmallScreenCol",
|
|
3451
3404
|
componentId: "kitt-universal__sc-4z5new-1"
|
|
3452
3405
|
})(["padding:8px 0 16px;"]);
|
|
3453
|
-
var FlexRow = /*#__PURE__*/styled
|
|
3406
|
+
var FlexRow = /*#__PURE__*/styled(View).withConfig({
|
|
3454
3407
|
displayName: "StoryGrid__FlexRow",
|
|
3455
3408
|
componentId: "kitt-universal__sc-4z5new-2"
|
|
3456
3409
|
})(["flex-direction:row;margin:0 -4px 16px;"]);
|
|
3457
|
-
var FlexCol = /*#__PURE__*/styled
|
|
3410
|
+
var FlexCol = /*#__PURE__*/styled(View).withConfig({
|
|
3458
3411
|
displayName: "StoryGrid__FlexCol",
|
|
3459
3412
|
componentId: "kitt-universal__sc-4z5new-3"
|
|
3460
3413
|
})(["flex-grow:1;flex-basis:0;margin:0 8px;"]);
|
|
@@ -3515,7 +3468,7 @@ var StoryGrid = {
|
|
|
3515
3468
|
Col: StoryGridCol
|
|
3516
3469
|
};
|
|
3517
3470
|
|
|
3518
|
-
var Container = /*#__PURE__*/styled
|
|
3471
|
+
var Container = /*#__PURE__*/styled(View).withConfig({
|
|
3519
3472
|
displayName: "Tag__Container",
|
|
3520
3473
|
componentId: "kitt-universal__sc-19jmowi-0"
|
|
3521
3474
|
})(["background-color:", ";border-width:", "px;border-color:", ";padding:", ";border-radius:", "px;align-self:flex-start;"], function (_ref) {
|
|
@@ -3587,14 +3540,11 @@ function TimePicker() {
|
|
|
3587
3540
|
});
|
|
3588
3541
|
}
|
|
3589
3542
|
|
|
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({
|
|
3543
|
+
var StyledTooltipView = /*#__PURE__*/styled(View).withConfig({
|
|
3594
3544
|
displayName: "TooltipView__StyledTooltipView",
|
|
3595
3545
|
componentId: "kitt-universal__sc-156zm6m-0"
|
|
3596
3546
|
})(["align-items:center;"]);
|
|
3597
|
-
var StyledTooltipContent = /*#__PURE__*/styled
|
|
3547
|
+
var StyledTooltipContent = /*#__PURE__*/styled(View).withConfig({
|
|
3598
3548
|
displayName: "TooltipView__StyledTooltipContent",
|
|
3599
3549
|
componentId: "kitt-universal__sc-156zm6m-1"
|
|
3600
3550
|
})(["background-color:", ";border-radius:", "px;opacity:", ";padding:", ";"], function (_ref) {
|
|
@@ -3613,14 +3563,14 @@ var StyledTooltipContent = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
3613
3563
|
|
|
3614
3564
|
function ArrowView(props) {
|
|
3615
3565
|
var theme = /*#__PURE__*/useTheme();
|
|
3616
|
-
return /*#__PURE__*/jsx(View, _objectSpread
|
|
3566
|
+
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
3617
3567
|
children: /*#__PURE__*/jsx(TooltipArrowIcon, {
|
|
3618
3568
|
color: theme.kitt.tooltip.backgroundColor
|
|
3619
3569
|
})
|
|
3620
3570
|
}));
|
|
3621
3571
|
}
|
|
3622
3572
|
|
|
3623
|
-
var StyledArrow = /*#__PURE__*/styled
|
|
3573
|
+
var StyledArrow = /*#__PURE__*/styled(ArrowView).withConfig({
|
|
3624
3574
|
displayName: "TooltipView__StyledArrow",
|
|
3625
3575
|
componentId: "kitt-universal__sc-156zm6m-2"
|
|
3626
3576
|
})(["color:", ";transform:", ";"], function (_ref5) {
|
|
@@ -3653,11 +3603,11 @@ var tooltipDefaultFloatingStrategy = {
|
|
|
3653
3603
|
web: 'absolute'
|
|
3654
3604
|
};
|
|
3655
3605
|
|
|
3656
|
-
var StyledTooltipTrigger = /*#__PURE__*/styled
|
|
3606
|
+
var StyledTooltipTrigger = /*#__PURE__*/styled(Pressable).withConfig({
|
|
3657
3607
|
displayName: "Tooltipweb__StyledTooltipTrigger",
|
|
3658
3608
|
componentId: "kitt-universal__sc-zn1y6f-0"
|
|
3659
3609
|
})(["display:inline-flex;align-self:baseline;"]);
|
|
3660
|
-
var WebAnimatedTooltip = /*#__PURE__*/styled
|
|
3610
|
+
var WebAnimatedTooltip = /*#__PURE__*/styled(View).withConfig({
|
|
3661
3611
|
displayName: "Tooltipweb__WebAnimatedTooltip",
|
|
3662
3612
|
componentId: "kitt-universal__sc-zn1y6f-1"
|
|
3663
3613
|
})(["opacity:", ";transition:opacity 200ms;visibility:", ";"], function (_ref) {
|
|
@@ -3786,7 +3736,7 @@ function Tooltip(_ref3) {
|
|
|
3786
3736
|
}
|
|
3787
3737
|
Tooltip.View = TooltipView;
|
|
3788
3738
|
|
|
3789
|
-
var StyledTypographyEmoji = /*#__PURE__*/styled
|
|
3739
|
+
var StyledTypographyEmoji = /*#__PURE__*/styled(Emoji).withConfig({
|
|
3790
3740
|
displayName: "TypographyEmoji__StyledTypographyEmoji",
|
|
3791
3741
|
componentId: "kitt-universal__sc-1if5guu-0"
|
|
3792
3742
|
})(["align-self:center;", ""], function (_ref) {
|
|
@@ -3813,11 +3763,7 @@ function TypographyEmoji(_ref2) {
|
|
|
3813
3763
|
}
|
|
3814
3764
|
|
|
3815
3765
|
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")({
|
|
3766
|
+
var TypographyLinkWebWrapper = withTheme( /*#__PURE__*/styled$1("span")({
|
|
3821
3767
|
name: "TypographyLinkWebWrapper",
|
|
3822
3768
|
"class": "kitt-u_TypographyLinkWebWrapper_tcwz3nt",
|
|
3823
3769
|
vars: {
|
|
@@ -3827,7 +3773,7 @@ var TypographyLinkWebWrapper = withTheme( /*#__PURE__*/styled("span")({
|
|
|
3827
3773
|
}]
|
|
3828
3774
|
}
|
|
3829
3775
|
}));
|
|
3830
|
-
var StyledLink = /*#__PURE__*/styled
|
|
3776
|
+
var StyledLink = /*#__PURE__*/styled(Text$1).withConfig({
|
|
3831
3777
|
displayName: "TypographyLink__StyledLink",
|
|
3832
3778
|
componentId: "kitt-universal__sc-1o1zy30-0"
|
|
3833
3779
|
})(["text-decoration:", ";", ";", ";"], function (_ref2) {
|
|
@@ -3911,5 +3857,5 @@ function MatchWindowSize(_ref) {
|
|
|
3911
3857
|
return children;
|
|
3912
3858
|
}
|
|
3913
3859
|
|
|
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 };
|
|
3860
|
+
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
3861
|
//# sourceMappingURL=index-browser-all.es.web.js.map
|