@ornikar/kitt-universal 3.8.1 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/definitions/BaseMessage/BaseMessage.d.ts +16 -0
- package/dist/definitions/BaseMessage/BaseMessage.d.ts.map +1 -0
- package/dist/definitions/BaseMessage/IconContent.d.ts +10 -0
- package/dist/definitions/BaseMessage/IconContent.d.ts.map +1 -0
- package/dist/definitions/BaseMessage/helper.d.ts +6 -0
- package/dist/definitions/BaseMessage/helper.d.ts.map +1 -0
- package/dist/definitions/Button/AnimatedButtonPressable.web.d.ts +1 -1
- package/dist/definitions/IconButton/IconButton.d.ts +5 -1
- package/dist/definitions/IconButton/IconButton.d.ts.map +1 -1
- package/dist/definitions/IconButton/PressableAnimatedContainer.d.ts +4 -1
- package/dist/definitions/IconButton/PressableAnimatedContainer.d.ts.map +1 -1
- package/dist/definitions/Message/Message.d.ts +4 -12
- package/dist/definitions/Message/Message.d.ts.map +1 -1
- package/dist/definitions/Notification/Notification.d.ts +8 -8
- package/dist/definitions/Notification/Notification.d.ts.map +1 -1
- package/dist/definitions/Skeleton/Skeleton.d.ts.map +1 -1
- package/dist/definitions/TimePicker/TimePicker.d.ts +1 -1
- package/dist/definitions/TimePicker/TimePicker.d.ts.map +1 -1
- package/dist/definitions/TimePicker/useTimePicker.d.ts +2 -4
- package/dist/definitions/TimePicker/useTimePicker.d.ts.map +1 -1
- package/dist/definitions/Tooltip/TooltipView.d.ts.map +1 -1
- package/dist/definitions/forms/InputFeedback/InputFeedback.d.ts +1 -1
- package/dist/definitions/forms/InputFeedback/InputFeedback.d.ts.map +1 -1
- package/dist/definitions/forms/InputIcon/InputIcon.d.ts +9 -0
- package/dist/definitions/forms/InputIcon/InputIcon.d.ts.map +1 -0
- package/dist/definitions/forms/InputPassword/InputPassword.d.ts +7 -0
- package/dist/definitions/forms/InputPassword/InputPassword.d.ts.map +1 -0
- package/dist/definitions/forms/InputPressable/InputPressable.d.ts +6 -0
- package/dist/definitions/forms/InputPressable/InputPressable.d.ts.map +1 -0
- package/dist/definitions/forms/InputText/InputText.d.ts +4 -12
- package/dist/definitions/forms/InputText/InputText.d.ts.map +1 -1
- package/dist/definitions/forms/TextArea/TextArea.d.ts +1 -1
- package/dist/definitions/forms/TextArea/TextArea.d.ts.map +1 -1
- package/dist/definitions/forms/styledTextInputMixin.d.ts +7 -0
- package/dist/definitions/forms/styledTextInputMixin.d.ts.map +1 -0
- package/dist/definitions/forms/utils.d.ts +10 -0
- package/dist/definitions/forms/utils.d.ts.map +1 -0
- package/dist/definitions/index.d.ts +10 -2
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/definitions/themes/default.d.ts +6 -22
- package/dist/definitions/themes/default.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/{buttonLateOceanTheme.d.ts → button.d.ts} +2 -2
- package/dist/definitions/themes/late-ocean/button.d.ts.map +1 -0
- package/dist/definitions/themes/late-ocean/colorsLateOceanTheme.d.ts +2 -0
- package/dist/definitions/themes/late-ocean/colorsLateOceanTheme.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/feedbackMessage.d.ts +11 -0
- package/dist/definitions/themes/late-ocean/feedbackMessage.d.ts.map +1 -0
- package/dist/definitions/themes/late-ocean/forms.d.ts +26 -0
- package/dist/definitions/themes/late-ocean/forms.d.ts.map +1 -0
- package/dist/definitions/themes/late-ocean/input.d.ts +26 -0
- package/dist/definitions/themes/late-ocean/input.d.ts.map +1 -0
- package/dist/definitions/themes/late-ocean/textArea.d.ts +5 -0
- package/dist/definitions/themes/late-ocean/textArea.d.ts.map +1 -0
- package/dist/index-browser-all.es.android.js +500 -435
- package/dist/index-browser-all.es.android.js.map +1 -1
- package/dist/index-browser-all.es.ios.js +500 -435
- package/dist/index-browser-all.es.ios.js.map +1 -1
- package/dist/index-browser-all.es.js +500 -435
- package/dist/index-browser-all.es.js.map +1 -1
- package/dist/index-browser-all.es.web.js +508 -447
- package/dist/index-browser-all.es.web.js.map +1 -1
- package/dist/index-node-14.17.cjs.js +430 -346
- package/dist/index-node-14.17.cjs.js.map +1 -1
- package/dist/index-node-14.17.cjs.web.js +421 -342
- package/dist/index-node-14.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.android.js +140 -119
- package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.ios.js +140 -119
- package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.js +140 -119
- package/dist/linaria-themes-browser-all.es.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.web.js +140 -119
- package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.js +136 -115
- package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.web.js +136 -115
- package/dist/linaria-themes-node-14.17.cjs.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/linaria-themes.js +1 -1
- package/package.json +6 -3
- package/typings/react-native-web.d.ts +67 -0
- package/dist/definitions/forms/InputFormState.d.ts +0 -2
- package/dist/definitions/forms/InputFormState.d.ts.map +0 -1
- package/dist/definitions/forms/InputText/useInputText.d.ts +0 -8
- package/dist/definitions/forms/InputText/useInputText.d.ts.map +0 -1
- package/dist/definitions/themes/late-ocean/buttonLateOceanTheme.d.ts.map +0 -1
- package/dist/definitions/themes/late-ocean/feedbackMessageLateOceanTheme.d.ts +0 -9
- package/dist/definitions/themes/late-ocean/feedbackMessageLateOceanTheme.d.ts.map +0 -1
- package/dist/definitions/themes/late-ocean/formLateOceanTheme.d.ts +0 -37
- package/dist/definitions/themes/late-ocean/formLateOceanTheme.d.ts.map +0 -1
- package/dist/definitions/themes/late-ocean/inputLateOceanTheme.d.ts +0 -23
- package/dist/definitions/themes/late-ocean/inputLateOceanTheme.d.ts.map +0 -1
- package/linaria-themes.web.js +0 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
|
-
import { View, Text as Text$1, useWindowDimensions, Image, Pressable, TextInput,
|
|
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
|
-
import { UserIcon,
|
|
5
|
+
import { UserIcon, EyeOffIcon, EyeIcon, LoaderIcon, InfoIcon, AlertTriangleIcon, CheckIcon, AlertCircleIcon, XIcon, TooltipArrowIcon } from '@ornikar/kitt-icons';
|
|
6
6
|
export * from '@ornikar/kitt-icons';
|
|
7
7
|
import styled$1, { useTheme, css, ThemeProvider } from 'styled-components/native';
|
|
8
8
|
import { forwardRef, cloneElement, useContext, createContext, useMemo, useState, Fragment, Children, useEffect } from 'react';
|
|
@@ -16,9 +16,9 @@ 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
|
-
function ownKeys$
|
|
19
|
+
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; }
|
|
20
20
|
|
|
21
|
-
function _objectSpread$
|
|
21
|
+
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; }
|
|
22
22
|
// type $Without<T, K extends keyof any> = T extends any ? Pick<T, Exclude<keyof T, K>> : never;
|
|
23
23
|
// type $DeepPartial<T> = { [P in keyof T]?: $DeepPartial<T[P]> };
|
|
24
24
|
// export function withTheme<Props extends { theme: DefaultTheme }, C>(
|
|
@@ -33,7 +33,7 @@ function withTheme(WrappedComponent) {
|
|
|
33
33
|
// eslint-disable-next-line prefer-arrow-callback
|
|
34
34
|
return /*#__PURE__*/forwardRef(function (props, ref) {
|
|
35
35
|
var theme = /*#__PURE__*/useTheme();
|
|
36
|
-
return /*#__PURE__*/jsx(WrappedComponent, _objectSpread$
|
|
36
|
+
return /*#__PURE__*/jsx(WrappedComponent, _objectSpread$j({
|
|
37
37
|
ref: ref,
|
|
38
38
|
theme: theme
|
|
39
39
|
}, props));
|
|
@@ -51,7 +51,7 @@ function SpinningIcon(_ref) {
|
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
var IconContainer
|
|
54
|
+
var IconContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
55
55
|
displayName: "Icon__IconContainer",
|
|
56
56
|
componentId: "kitt-universal__sc-usm0ol-0"
|
|
57
57
|
})(["color:", ";width:", "px;height:", "px;align-self:", ";"], function (_ref) {
|
|
@@ -78,7 +78,7 @@ function Icon(_ref5) {
|
|
|
78
78
|
var clonedIcon = /*#__PURE__*/cloneElement(icon, {
|
|
79
79
|
color: color
|
|
80
80
|
});
|
|
81
|
-
return /*#__PURE__*/jsx(IconContainer
|
|
81
|
+
return /*#__PURE__*/jsx(IconContainer, {
|
|
82
82
|
align: align,
|
|
83
83
|
size: size,
|
|
84
84
|
color: color,
|
|
@@ -136,11 +136,11 @@ var KittBreakpointsMax = {
|
|
|
136
136
|
LARGE: KittBreakpoints.WIDE - 1
|
|
137
137
|
};
|
|
138
138
|
|
|
139
|
-
var _excluded$
|
|
139
|
+
var _excluded$f = ["accessibilityRole", "base", "small", "medium", "large", "variant", "color"];
|
|
140
140
|
|
|
141
|
-
function ownKeys$
|
|
141
|
+
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; }
|
|
142
142
|
|
|
143
|
-
function _objectSpread$
|
|
143
|
+
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; }
|
|
144
144
|
var IsHeaderTypographyContext = /*#__PURE__*/createContext(undefined);
|
|
145
145
|
var TypographyColorContext = /*#__PURE__*/createContext('black');
|
|
146
146
|
function useTypographyColor() {
|
|
@@ -217,7 +217,7 @@ function Typography(_ref4) {
|
|
|
217
217
|
large = _ref4.large,
|
|
218
218
|
variant = _ref4.variant,
|
|
219
219
|
color = _ref4.color,
|
|
220
|
-
otherProps = _objectWithoutProperties(_ref4, _excluded$
|
|
220
|
+
otherProps = _objectWithoutProperties(_ref4, _excluded$f);
|
|
221
221
|
|
|
222
222
|
var isHeaderTypographyInContext = useContext(IsHeaderTypographyContext);
|
|
223
223
|
var hasTypographyAncestor = isHeaderTypographyInContext !== undefined;
|
|
@@ -234,14 +234,14 @@ function Typography(_ref4) {
|
|
|
234
234
|
var nonNullableVariant = variant !== null && variant !== void 0 ? variant : isHeader ? 'bold' : 'regular';
|
|
235
235
|
var content = baseOrDefaultToBody ? /*#__PURE__*/jsx(IsHeaderTypographyContext.Provider, {
|
|
236
236
|
value: isHeader,
|
|
237
|
-
children: /*#__PURE__*/jsx(StyledTypography, _objectSpread$
|
|
237
|
+
children: /*#__PURE__*/jsx(StyledTypography, _objectSpread$i({
|
|
238
238
|
$color: colorOrDefaultToBlack,
|
|
239
239
|
$isHeader: isHeader,
|
|
240
240
|
$typeForCurrentWindowSize: typeForCurrentWindowSize,
|
|
241
241
|
$variant: nonNullableVariant,
|
|
242
242
|
accessibilityRole: accessibilityRole || undefined
|
|
243
243
|
}, otherProps))
|
|
244
|
-
}) : /*#__PURE__*/jsx(StyledTypography, _objectSpread$
|
|
244
|
+
}) : /*#__PURE__*/jsx(StyledTypography, _objectSpread$i({
|
|
245
245
|
$color: colorOrDefaultToBlack,
|
|
246
246
|
$isHeader: isHeader,
|
|
247
247
|
$variant: nonNullableVariant,
|
|
@@ -254,13 +254,13 @@ function Typography(_ref4) {
|
|
|
254
254
|
}
|
|
255
255
|
|
|
256
256
|
function TypographyText(props) {
|
|
257
|
-
return /*#__PURE__*/jsx(Typography, _objectSpread$
|
|
257
|
+
return /*#__PURE__*/jsx(Typography, _objectSpread$i({
|
|
258
258
|
accessibilityRole: null
|
|
259
259
|
}, props));
|
|
260
260
|
}
|
|
261
261
|
|
|
262
262
|
function TypographyParagraph(props) {
|
|
263
|
-
return /*#__PURE__*/jsx(Typography, _objectSpread$
|
|
263
|
+
return /*#__PURE__*/jsx(Typography, _objectSpread$i({
|
|
264
264
|
accessibilityRole: "paragraph"
|
|
265
265
|
}, props));
|
|
266
266
|
}
|
|
@@ -268,7 +268,7 @@ function TypographyParagraph(props) {
|
|
|
268
268
|
var createHeading = function (level, defaultBase) {
|
|
269
269
|
// https://github.com/necolas/react-native-web/issues/401
|
|
270
270
|
function TypographyHeading(props) {
|
|
271
|
-
return /*#__PURE__*/jsx(Typography, _objectSpread$
|
|
271
|
+
return /*#__PURE__*/jsx(Typography, _objectSpread$i(_objectSpread$i({
|
|
272
272
|
accessibilityRole: "header",
|
|
273
273
|
base: defaultBase
|
|
274
274
|
}, props), {}, {
|
|
@@ -304,11 +304,11 @@ Typography.h4 = createHeading(4, 'header4');
|
|
|
304
304
|
|
|
305
305
|
Typography.h5 = createHeading(5, 'header5');
|
|
306
306
|
|
|
307
|
-
var _excluded$
|
|
307
|
+
var _excluded$e = ["size", "base", "round", "light"];
|
|
308
308
|
|
|
309
|
-
function ownKeys$
|
|
309
|
+
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; }
|
|
310
310
|
|
|
311
|
-
function _objectSpread$
|
|
311
|
+
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; }
|
|
312
312
|
|
|
313
313
|
var getInitials = function (firstname, lastname) {
|
|
314
314
|
return "".concat(firstname[0]).concat(lastname[0]).toUpperCase();
|
|
@@ -380,13 +380,13 @@ function Avatar(_ref6) {
|
|
|
380
380
|
base = _ref6$base === void 0 ? 'body-small' : _ref6$base,
|
|
381
381
|
round = _ref6.round,
|
|
382
382
|
light = _ref6.light,
|
|
383
|
-
props = _objectWithoutProperties(_ref6, _excluded$
|
|
383
|
+
props = _objectWithoutProperties(_ref6, _excluded$e);
|
|
384
384
|
|
|
385
385
|
return /*#__PURE__*/jsx(StyledAvatarView, {
|
|
386
386
|
$size: size,
|
|
387
387
|
$isRound: round,
|
|
388
388
|
$isLight: light,
|
|
389
|
-
children: /*#__PURE__*/jsx(AvatarContent, _objectSpread$
|
|
389
|
+
children: /*#__PURE__*/jsx(AvatarContent, _objectSpread$h({
|
|
390
390
|
size: size,
|
|
391
391
|
base: base,
|
|
392
392
|
isLight: light
|
|
@@ -398,11 +398,11 @@ function isSubtle(type) {
|
|
|
398
398
|
return type.startsWith('subtle');
|
|
399
399
|
}
|
|
400
400
|
|
|
401
|
-
var _excluded$
|
|
401
|
+
var _excluded$d = ["$type", "$isStretch", "disabled"];
|
|
402
402
|
|
|
403
|
-
function ownKeys$
|
|
403
|
+
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; }
|
|
404
404
|
|
|
405
|
-
function _objectSpread$
|
|
405
|
+
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; }
|
|
406
406
|
var AnimatedButtonPressableContainer = withTheme( /*#__PURE__*/styled("div")({
|
|
407
407
|
name: "AnimatedButtonPressableContainer",
|
|
408
408
|
"class": "a1vkj3mh",
|
|
@@ -501,14 +501,14 @@ var AnimatedButtonPressable = /*#__PURE__*/forwardRef(function (_ref18, ref) {
|
|
|
501
501
|
var $type = _ref18.$type,
|
|
502
502
|
$isStretch = _ref18.$isStretch,
|
|
503
503
|
disabled = _ref18.disabled,
|
|
504
|
-
props = _objectWithoutProperties(_ref18, _excluded$
|
|
504
|
+
props = _objectWithoutProperties(_ref18, _excluded$d);
|
|
505
505
|
|
|
506
506
|
return /*#__PURE__*/jsx(AnimatedButtonPressableContainer, {
|
|
507
507
|
ref: ref,
|
|
508
508
|
$type: $type,
|
|
509
509
|
$isDisabled: !!disabled,
|
|
510
510
|
$isStretch: $isStretch,
|
|
511
|
-
children: /*#__PURE__*/jsx(Pressable, _objectSpread$
|
|
511
|
+
children: /*#__PURE__*/jsx(Pressable, _objectSpread$g({
|
|
512
512
|
disabled: disabled
|
|
513
513
|
}, props))
|
|
514
514
|
});
|
|
@@ -552,26 +552,26 @@ var BaseStyledButtonPressable = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
552
552
|
return defaultPadding;
|
|
553
553
|
});
|
|
554
554
|
|
|
555
|
-
var _excluded$
|
|
555
|
+
var _excluded$c = ["color"],
|
|
556
556
|
_excluded2$2 = ["color"];
|
|
557
557
|
|
|
558
|
-
function ownKeys$
|
|
558
|
+
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; }
|
|
559
559
|
|
|
560
|
-
function _objectSpread$
|
|
560
|
+
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; }
|
|
561
561
|
|
|
562
562
|
function TypographyIconSpecifiedColor(_ref) {
|
|
563
563
|
var color = _ref.color,
|
|
564
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
564
|
+
props = _objectWithoutProperties(_ref, _excluded$c);
|
|
565
565
|
|
|
566
566
|
var theme = /*#__PURE__*/useTheme();
|
|
567
|
-
return /*#__PURE__*/jsx(Icon, _objectSpread$
|
|
567
|
+
return /*#__PURE__*/jsx(Icon, _objectSpread$f(_objectSpread$f({}, props), {}, {
|
|
568
568
|
color: color === 'inherit' ? 'inherit' : theme.kitt.typography.colors[color]
|
|
569
569
|
}));
|
|
570
570
|
}
|
|
571
571
|
|
|
572
572
|
function TypographyIconInheritColor(props) {
|
|
573
573
|
var color = useTypographyColor();
|
|
574
|
-
return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread$
|
|
574
|
+
return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread$f({
|
|
575
575
|
color: color
|
|
576
576
|
}, props));
|
|
577
577
|
}
|
|
@@ -581,19 +581,19 @@ function TypographyIcon(_ref2) {
|
|
|
581
581
|
props = _objectWithoutProperties(_ref2, _excluded2$2);
|
|
582
582
|
|
|
583
583
|
if (color) {
|
|
584
|
-
return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread$
|
|
584
|
+
return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread$f({
|
|
585
585
|
color: color
|
|
586
586
|
}, props));
|
|
587
587
|
}
|
|
588
588
|
|
|
589
|
-
return /*#__PURE__*/jsx(TypographyIconInheritColor, _objectSpread$
|
|
589
|
+
return /*#__PURE__*/jsx(TypographyIconInheritColor, _objectSpread$f({}, props));
|
|
590
590
|
}
|
|
591
591
|
|
|
592
|
-
var _excluded$
|
|
592
|
+
var _excluded$b = ["type", "isDisabled", "$isStretch", "icon", "children"];
|
|
593
593
|
|
|
594
|
-
function ownKeys$
|
|
594
|
+
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; }
|
|
595
595
|
|
|
596
|
-
function _objectSpread$
|
|
596
|
+
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; }
|
|
597
597
|
|
|
598
598
|
var getTextColorByType = function (type) {
|
|
599
599
|
switch (type) {
|
|
@@ -632,7 +632,7 @@ var StyledButtonText = /*#__PURE__*/styled$1(Typography.Text).withConfig({
|
|
|
632
632
|
if ($isDisabled || !isSubtle($type)) return undefined;
|
|
633
633
|
return 'color: inherit';
|
|
634
634
|
});
|
|
635
|
-
var StyledIconContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
635
|
+
var StyledIconContainer$1 = /*#__PURE__*/styled$1(View).withConfig({
|
|
636
636
|
displayName: "ButtonContent__StyledIconContainer",
|
|
637
637
|
componentId: "kitt-universal__sc-dnyw3n-1"
|
|
638
638
|
})(["", ""], function (_ref2) {
|
|
@@ -653,7 +653,7 @@ function ButtonIcon(_ref3) {
|
|
|
653
653
|
spin = _ref3.spin,
|
|
654
654
|
iconPosition = _ref3.iconPosition,
|
|
655
655
|
testID = _ref3.testID;
|
|
656
|
-
return /*#__PURE__*/jsx(StyledIconContainer, {
|
|
656
|
+
return /*#__PURE__*/jsx(StyledIconContainer$1, {
|
|
657
657
|
$iconPosition: iconPosition,
|
|
658
658
|
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
659
659
|
icon: icon,
|
|
@@ -701,7 +701,7 @@ function ButtonContentChildren(_ref4) {
|
|
|
701
701
|
color: isWebSubtle ? 'inherit' : color
|
|
702
702
|
};
|
|
703
703
|
return /*#__PURE__*/jsxs(StyledChildrenWithIcon, {
|
|
704
|
-
children: [icon && iconPosition === 'left' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
704
|
+
children: [icon && iconPosition === 'left' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread$e(_objectSpread$e({}, buttonIconSharedProps), {}, {
|
|
705
705
|
testID: "button-left-icon",
|
|
706
706
|
icon: icon
|
|
707
707
|
})) : null, /*#__PURE__*/jsx(StyledButtonText, {
|
|
@@ -712,7 +712,7 @@ function ButtonContentChildren(_ref4) {
|
|
|
712
712
|
,
|
|
713
713
|
color: isWebSubtle ? undefined : color,
|
|
714
714
|
children: children
|
|
715
|
-
}), icon && iconPosition === 'right' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
715
|
+
}), icon && iconPosition === 'right' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread$e(_objectSpread$e({}, buttonIconSharedProps), {}, {
|
|
716
716
|
icon: icon
|
|
717
717
|
})) : null]
|
|
718
718
|
});
|
|
@@ -736,14 +736,14 @@ function ButtonContent(_ref7) {
|
|
|
736
736
|
$isStretch = _ref7.$isStretch,
|
|
737
737
|
icon = _ref7.icon,
|
|
738
738
|
children = _ref7.children,
|
|
739
|
-
props = _objectWithoutProperties(_ref7, _excluded$
|
|
739
|
+
props = _objectWithoutProperties(_ref7, _excluded$b);
|
|
740
740
|
|
|
741
741
|
var color = isDisabled ? 'black-light' : getTextColorByType(type);
|
|
742
742
|
return /*#__PURE__*/jsx(ButtonContentContainer, {
|
|
743
743
|
$isSubtle: isSubtle(type),
|
|
744
744
|
$isStretch: $isStretch,
|
|
745
745
|
$isIconOnly: Boolean(!children && icon),
|
|
746
|
-
children: /*#__PURE__*/jsx(ButtonContentChildren, _objectSpread$
|
|
746
|
+
children: /*#__PURE__*/jsx(ButtonContentChildren, _objectSpread$e(_objectSpread$e({
|
|
747
747
|
icon: icon,
|
|
748
748
|
type: type,
|
|
749
749
|
isDisabled: isDisabled,
|
|
@@ -799,7 +799,7 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
799
799
|
});
|
|
800
800
|
});
|
|
801
801
|
|
|
802
|
-
var Container$
|
|
802
|
+
var Container$3 = /*#__PURE__*/styled$1(View).withConfig({
|
|
803
803
|
displayName: "Card__Container",
|
|
804
804
|
componentId: "kitt-universal__sc-1n9psug-0"
|
|
805
805
|
})(["background-color:", ";padding:", ";border-radius:", ";border-width:", ";border-color:", ";"], function (_ref) {
|
|
@@ -823,7 +823,7 @@ var Container$5 = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
823
823
|
function Card(_ref6) {
|
|
824
824
|
var children = _ref6.children,
|
|
825
825
|
type = _ref6.type;
|
|
826
|
-
return /*#__PURE__*/jsx(Container$
|
|
826
|
+
return /*#__PURE__*/jsx(Container$3, {
|
|
827
827
|
type: type,
|
|
828
828
|
children: children
|
|
829
829
|
});
|
|
@@ -869,20 +869,20 @@ var defaultOpenLinkBehavior = {
|
|
|
869
869
|
web: 'targetBlank'
|
|
870
870
|
};
|
|
871
871
|
|
|
872
|
-
var _excluded$
|
|
872
|
+
var _excluded$a = ["as", "href", "openLinkBehavior", "onPress"];
|
|
873
873
|
|
|
874
|
-
function ownKeys$
|
|
874
|
+
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; }
|
|
875
875
|
|
|
876
|
-
function _objectSpread$
|
|
876
|
+
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; }
|
|
877
877
|
function ExternalLink(_ref) {
|
|
878
878
|
var Component = _ref.as,
|
|
879
879
|
href = _ref.href,
|
|
880
880
|
_ref$openLinkBehavior = _ref.openLinkBehavior,
|
|
881
881
|
openLinkBehavior = _ref$openLinkBehavior === void 0 ? defaultOpenLinkBehavior : _ref$openLinkBehavior,
|
|
882
882
|
onPress = _ref.onPress,
|
|
883
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
883
|
+
rest = _objectWithoutProperties(_ref, _excluded$a);
|
|
884
884
|
|
|
885
|
-
return /*#__PURE__*/jsx(Component, _objectSpread$
|
|
885
|
+
return /*#__PURE__*/jsx(Component, _objectSpread$d(_objectSpread$d({}, rest), {}, {
|
|
886
886
|
href: href,
|
|
887
887
|
hrefAttrs: (openLinkBehavior === null || openLinkBehavior === void 0 ? void 0 : openLinkBehavior.web) === 'targetSelf' ? undefined : {
|
|
888
888
|
target: '_blank',
|
|
@@ -897,6 +897,7 @@ var getColorFromState = function (state) {
|
|
|
897
897
|
case 'invalid':
|
|
898
898
|
return 'danger';
|
|
899
899
|
|
|
900
|
+
case 'valid':
|
|
900
901
|
default:
|
|
901
902
|
return 'black-light';
|
|
902
903
|
}
|
|
@@ -957,43 +958,47 @@ function InputField(_ref4) {
|
|
|
957
958
|
});
|
|
958
959
|
}
|
|
959
960
|
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
963
|
-
isFocused = _useState2[0],
|
|
964
|
-
setIsFocused = _useState2[1];
|
|
961
|
+
function getIconColor(state, disabled) {
|
|
962
|
+
if (disabled) return 'black-light';
|
|
965
963
|
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
setIsPasswordVisible = _useState4[1];
|
|
964
|
+
switch (state) {
|
|
965
|
+
case 'invalid':
|
|
966
|
+
return 'danger';
|
|
970
967
|
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
handleInputFocus: function handleInputFocus() {
|
|
974
|
-
return setIsFocused(true);
|
|
975
|
-
},
|
|
976
|
-
handleInputBlur: function handleInputBlur() {
|
|
977
|
-
return setIsFocused(false);
|
|
978
|
-
},
|
|
979
|
-
togglePasswordVisibility: function togglePasswordVisibility() {
|
|
980
|
-
return setIsPasswordVisible(function (isVisible) {
|
|
981
|
-
return !isVisible;
|
|
982
|
-
});
|
|
983
|
-
},
|
|
984
|
-
isPasswordVisible: isPasswordVisible
|
|
985
|
-
};
|
|
986
|
-
};
|
|
968
|
+
case 'valid':
|
|
969
|
+
return 'success';
|
|
987
970
|
|
|
988
|
-
|
|
971
|
+
default:
|
|
972
|
+
return undefined;
|
|
973
|
+
}
|
|
974
|
+
}
|
|
989
975
|
|
|
990
|
-
function
|
|
976
|
+
function InputIcon(_ref) {
|
|
977
|
+
var icon = _ref.icon,
|
|
978
|
+
state = _ref.state,
|
|
979
|
+
disabled = _ref.disabled;
|
|
980
|
+
var theme = /*#__PURE__*/useTheme();
|
|
981
|
+
var color = getIconColor(state, disabled);
|
|
982
|
+
return /*#__PURE__*/jsx(TypographyIcon, {
|
|
983
|
+
color: color,
|
|
984
|
+
icon: icon,
|
|
985
|
+
size: theme.kitt.forms.input.icon.size
|
|
986
|
+
});
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
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; }
|
|
990
|
+
|
|
991
|
+
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; }
|
|
992
|
+
function InputPressable(_ref) {
|
|
993
|
+
var props = _extends({}, _ref);
|
|
994
|
+
|
|
995
|
+
return /*#__PURE__*/jsx(Pressable, _objectSpread$c({}, props));
|
|
996
|
+
}
|
|
991
997
|
|
|
992
|
-
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; }
|
|
993
998
|
var styledTextInputMixin = /*#__PURE__*/css(["background-color:", ";border-width:", ";border-radius:", ";border-color:", ";font-size:", ";color:", ";font-family:", ";"], function (_ref) {
|
|
994
999
|
var theme = _ref.theme,
|
|
995
|
-
state = _ref
|
|
996
|
-
return state === 'disabled' ? theme.kitt.forms.input.states.disabled.backgroundColor : theme.kitt.forms.input.states["default"].backgroundColor;
|
|
1000
|
+
$state = _ref.$state;
|
|
1001
|
+
return $state === 'disabled' ? theme.kitt.forms.input.states.disabled.backgroundColor : theme.kitt.forms.input.states["default"].backgroundColor;
|
|
997
1002
|
}, function (_ref2) {
|
|
998
1003
|
var theme = _ref2.theme;
|
|
999
1004
|
return theme.kitt.forms.input.borderWidth;
|
|
@@ -1002,150 +1007,161 @@ var styledTextInputMixin = /*#__PURE__*/css(["background-color:", ";border-width
|
|
|
1002
1007
|
return theme.kitt.forms.input.borderRadius;
|
|
1003
1008
|
}, function (_ref4) {
|
|
1004
1009
|
var theme = _ref4.theme,
|
|
1005
|
-
state = _ref4
|
|
1006
|
-
return theme.kitt.forms.input.states[state].borderColor;
|
|
1010
|
+
$state = _ref4.$state;
|
|
1011
|
+
return theme.kitt.forms.input.states[$state].borderColor;
|
|
1007
1012
|
}, function (_ref5) {
|
|
1008
1013
|
var theme = _ref5.theme;
|
|
1009
1014
|
var typeConfigKey = getTypographyTypeConfigKey(theme);
|
|
1010
1015
|
return theme.kitt.typography.types.bodies.configs.body[typeConfigKey].fontSize;
|
|
1011
1016
|
}, function (_ref6) {
|
|
1012
1017
|
var theme = _ref6.theme,
|
|
1013
|
-
state = _ref6
|
|
1014
|
-
return theme.kitt.typography.colors[theme.kitt.forms.input.states[state].color];
|
|
1018
|
+
$state = _ref6.$state;
|
|
1019
|
+
return theme.kitt.typography.colors[theme.kitt.forms.input.states[$state].color];
|
|
1015
1020
|
}, function (_ref7) {
|
|
1016
1021
|
var theme = _ref7.theme;
|
|
1017
1022
|
return theme.kitt.typography.types.bodies.fontFamily.regular;
|
|
1018
1023
|
});
|
|
1019
|
-
|
|
1020
|
-
|
|
1024
|
+
|
|
1025
|
+
function getInputUIState(_ref) {
|
|
1026
|
+
var isFocused = _ref.isFocused,
|
|
1027
|
+
isDisabled = _ref.isDisabled,
|
|
1028
|
+
formState = _ref.formState;
|
|
1029
|
+
if (isDisabled) return 'disabled';
|
|
1030
|
+
if (isFocused) return 'focus';
|
|
1031
|
+
if (formState === 'invalid') return 'invalid';
|
|
1032
|
+
return 'default';
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
var _excluded$9 = ["id", "right", "minHeight", "state", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoCompleteType", "keyboardType", "onFocus", "onBlur"];
|
|
1036
|
+
|
|
1037
|
+
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; }
|
|
1038
|
+
|
|
1039
|
+
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; }
|
|
1040
|
+
var StyledTextInput = /*#__PURE__*/styled$1(TextInput).withConfig({
|
|
1041
|
+
displayName: "InputText__StyledTextInput",
|
|
1021
1042
|
componentId: "kitt-universal__sc-uke279-0"
|
|
1022
|
-
})(["", " padding:", ";line-height:", ";min-height:", "px;"], styledTextInputMixin, function (
|
|
1023
|
-
var theme =
|
|
1024
|
-
multiline =
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1043
|
+
})(["", " padding:", ";line-height:", ";min-height:", "px;"], styledTextInputMixin, function (_ref) {
|
|
1044
|
+
var theme = _ref.theme,
|
|
1045
|
+
multiline = _ref.multiline;
|
|
1046
|
+
|
|
1047
|
+
if (!multiline && "web" === 'ios') {
|
|
1048
|
+
return theme.kitt.forms.input.padding.iOSSingleLine;
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
return theme.kitt.forms.input.padding["default"];
|
|
1052
|
+
}, function (_ref2) {
|
|
1053
|
+
var theme = _ref2.theme,
|
|
1054
|
+
multiline = _ref2.multiline;
|
|
1029
1055
|
if (!multiline && "web" === 'ios') return 0;
|
|
1030
1056
|
var typeConfigKey = getTypographyTypeConfigKey(theme);
|
|
1031
1057
|
return theme.kitt.typography.types.bodies.configs.body[typeConfigKey].lineHeight;
|
|
1032
|
-
}, function (
|
|
1033
|
-
var minHeight =
|
|
1034
|
-
return minHeight;
|
|
1058
|
+
}, function (_ref3) {
|
|
1059
|
+
var $minHeight = _ref3.$minHeight;
|
|
1060
|
+
return $minHeight;
|
|
1035
1061
|
});
|
|
1036
|
-
var
|
|
1037
|
-
displayName: "
|
|
1062
|
+
var InputTextContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
1063
|
+
displayName: "InputText__InputTextContainer",
|
|
1038
1064
|
componentId: "kitt-universal__sc-uke279-1"
|
|
1039
|
-
})(["
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
}, function (_ref12) {
|
|
1043
|
-
var theme = _ref12.theme;
|
|
1044
|
-
return theme.kitt.forms.input.marginBottom;
|
|
1045
|
-
});
|
|
1046
|
-
var PasswordButtonContainer = /*#__PURE__*/styled$1(Pressable).withConfig({
|
|
1047
|
-
displayName: "InputText__PasswordButtonContainer",
|
|
1065
|
+
})(["position:relative;"]);
|
|
1066
|
+
var RightInputContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
1067
|
+
displayName: "InputText__RightInputContainer",
|
|
1048
1068
|
componentId: "kitt-universal__sc-uke279-2"
|
|
1049
|
-
})(["position:absolute;right:0;top:0;bottom:0;justify-content:center;padding:
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1069
|
+
})(["position:absolute;right:0;top:0;bottom:0;justify-content:center;padding:10px;"]);
|
|
1070
|
+
var InputText = /*#__PURE__*/forwardRef(function (_ref4, ref) {
|
|
1071
|
+
var id = _ref4.id,
|
|
1072
|
+
right = _ref4.right,
|
|
1073
|
+
_ref4$minHeight = _ref4.minHeight,
|
|
1074
|
+
minHeight = _ref4$minHeight === void 0 ? 0 : _ref4$minHeight,
|
|
1075
|
+
formState = _ref4.state,
|
|
1076
|
+
internalForceState = _ref4.internalForceState,
|
|
1077
|
+
_ref4$disabled = _ref4.disabled,
|
|
1078
|
+
disabled = _ref4$disabled === void 0 ? false : _ref4$disabled,
|
|
1079
|
+
_ref4$autoCorrect = _ref4.autoCorrect,
|
|
1080
|
+
autoCorrect = _ref4$autoCorrect === void 0 ? true : _ref4$autoCorrect,
|
|
1081
|
+
_ref4$textContentType = _ref4.textContentType,
|
|
1082
|
+
textContentType = _ref4$textContentType === void 0 ? 'none' : _ref4$textContentType,
|
|
1083
|
+
_ref4$autoCompleteTyp = _ref4.autoCompleteType,
|
|
1084
|
+
autoCompleteType = _ref4$autoCompleteTyp === void 0 ? 'off' : _ref4$autoCompleteTyp,
|
|
1085
|
+
_ref4$keyboardType = _ref4.keyboardType,
|
|
1086
|
+
keyboardType = _ref4$keyboardType === void 0 ? 'default' : _ref4$keyboardType,
|
|
1087
|
+
_onFocus = _ref4.onFocus,
|
|
1088
|
+
_onBlur = _ref4.onBlur,
|
|
1089
|
+
props = _objectWithoutProperties(_ref4, _excluded$9);
|
|
1053
1090
|
|
|
1054
|
-
var
|
|
1055
|
-
var isDisabled = _ref14.isDisabled,
|
|
1056
|
-
isFocused = _ref14.isFocused,
|
|
1057
|
-
formState = _ref14.formState;
|
|
1058
|
-
if (isDisabled) return 'disabled';
|
|
1059
|
-
if (isFocused) return 'focus';
|
|
1060
|
-
if (formState === 'invalid') return 'invalid';
|
|
1061
|
-
return 'default';
|
|
1062
|
-
};
|
|
1091
|
+
var theme = /*#__PURE__*/useTheme();
|
|
1063
1092
|
|
|
1064
|
-
var
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
username: 'default'
|
|
1069
|
-
};
|
|
1070
|
-
var autoCompleteTypeByType = {
|
|
1071
|
-
text: 'off',
|
|
1072
|
-
email: 'email',
|
|
1073
|
-
password: 'password',
|
|
1074
|
-
username: 'name'
|
|
1075
|
-
};
|
|
1076
|
-
var autoCorrectByType = {
|
|
1077
|
-
text: true,
|
|
1078
|
-
email: false,
|
|
1079
|
-
password: false,
|
|
1080
|
-
username: false
|
|
1081
|
-
};
|
|
1082
|
-
var textContentTypeByType = {
|
|
1083
|
-
text: 'none',
|
|
1084
|
-
email: 'emailAddress',
|
|
1085
|
-
password: 'password',
|
|
1086
|
-
username: 'username'
|
|
1087
|
-
};
|
|
1088
|
-
var InputText = /*#__PURE__*/forwardRef(function (_ref15, ref) {
|
|
1089
|
-
var id = _ref15.id,
|
|
1090
|
-
_ref15$minHeight = _ref15.minHeight,
|
|
1091
|
-
minHeight = _ref15$minHeight === void 0 ? 0 : _ref15$minHeight,
|
|
1092
|
-
type = _ref15.type,
|
|
1093
|
-
formState = _ref15.state,
|
|
1094
|
-
internalForceState = _ref15.internalForceState,
|
|
1095
|
-
_ref15$disabled = _ref15.disabled,
|
|
1096
|
-
disabled = _ref15$disabled === void 0 ? false : _ref15$disabled,
|
|
1097
|
-
_onFocus = _ref15.onFocus,
|
|
1098
|
-
_onBlur = _ref15.onBlur,
|
|
1099
|
-
props = _objectWithoutProperties(_ref15, _excluded$8);
|
|
1100
|
-
|
|
1101
|
-
var _useInputText = useInputText(),
|
|
1102
|
-
isFocused = _useInputText.isFocused,
|
|
1103
|
-
handleInputBlur = _useInputText.handleInputBlur,
|
|
1104
|
-
handleInputFocus = _useInputText.handleInputFocus,
|
|
1105
|
-
isPasswordVisible = _useInputText.isPasswordVisible,
|
|
1106
|
-
togglePasswordVisibility = _useInputText.togglePasswordVisibility;
|
|
1093
|
+
var _useState = useState(false),
|
|
1094
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
1095
|
+
isFocused = _useState2[0],
|
|
1096
|
+
setIsFocused = _useState2[1];
|
|
1107
1097
|
|
|
1108
|
-
var
|
|
1109
|
-
var state = internalForceState || getInputState({
|
|
1098
|
+
var state = internalForceState || getInputUIState({
|
|
1110
1099
|
isFocused: isFocused,
|
|
1111
1100
|
isDisabled: disabled,
|
|
1112
1101
|
formState: formState
|
|
1113
1102
|
});
|
|
1114
|
-
return /*#__PURE__*/jsxs(
|
|
1115
|
-
children: [/*#__PURE__*/jsx(
|
|
1103
|
+
return /*#__PURE__*/jsxs(InputTextContainer, {
|
|
1104
|
+
children: [/*#__PURE__*/jsx(StyledTextInput, _objectSpread$b(_objectSpread$b({
|
|
1116
1105
|
ref: ref,
|
|
1117
1106
|
nativeID: id,
|
|
1118
1107
|
editable: !disabled,
|
|
1119
|
-
keyboardType:
|
|
1120
|
-
autoCompleteType:
|
|
1121
|
-
autoCorrect:
|
|
1122
|
-
minHeight: minHeight,
|
|
1123
|
-
textContentType:
|
|
1124
|
-
placeholderTextColor: theme.kitt.
|
|
1125
|
-
selectionColor: theme.kitt.forms.input.
|
|
1126
|
-
secureTextEntry: type === 'password' && !isPasswordVisible
|
|
1108
|
+
keyboardType: keyboardType,
|
|
1109
|
+
autoCompleteType: autoCompleteType,
|
|
1110
|
+
autoCorrect: autoCorrect,
|
|
1111
|
+
$minHeight: minHeight,
|
|
1112
|
+
textContentType: textContentType,
|
|
1113
|
+
placeholderTextColor: theme.kitt.forms.input.color.placeholder,
|
|
1114
|
+
selectionColor: theme.kitt.forms.input.color.selection
|
|
1127
1115
|
}, props), {}, {
|
|
1128
|
-
state: state,
|
|
1116
|
+
$state: state,
|
|
1129
1117
|
onFocus: function onFocus(e) {
|
|
1130
|
-
|
|
1118
|
+
setIsFocused(true);
|
|
1131
1119
|
if (_onFocus) _onFocus(e);
|
|
1132
1120
|
},
|
|
1133
1121
|
onBlur: function onBlur(e) {
|
|
1134
|
-
|
|
1122
|
+
setIsFocused(false);
|
|
1135
1123
|
if (_onBlur) _onBlur(e);
|
|
1136
1124
|
}
|
|
1137
|
-
})),
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
1141
|
-
icon: isPasswordVisible ? /*#__PURE__*/jsx(EyeIcon, {}) : /*#__PURE__*/jsx(EyeOffIcon, {}),
|
|
1142
|
-
size: theme.kitt.forms.input.passwordButtonIconSize,
|
|
1143
|
-
color: theme.kitt.forms.input.states[state].passwordButtonIconColor
|
|
1144
|
-
})
|
|
1145
|
-
})]
|
|
1125
|
+
})), right ? /*#__PURE__*/jsx(RightInputContainer, {
|
|
1126
|
+
children: right
|
|
1127
|
+
}) : null]
|
|
1146
1128
|
});
|
|
1147
1129
|
});
|
|
1148
1130
|
|
|
1131
|
+
var _excluded$8 = ["isPasswordDefaultVisible", "right"];
|
|
1132
|
+
|
|
1133
|
+
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; }
|
|
1134
|
+
|
|
1135
|
+
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; }
|
|
1136
|
+
function InputPassword(_ref) {
|
|
1137
|
+
var isPasswordDefaultVisible = _ref.isPasswordDefaultVisible,
|
|
1138
|
+
right = _ref.right,
|
|
1139
|
+
props = _objectWithoutProperties(_ref, _excluded$8);
|
|
1140
|
+
|
|
1141
|
+
var _useState = useState(Boolean(isPasswordDefaultVisible)),
|
|
1142
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
1143
|
+
isVisible = _useState2[0],
|
|
1144
|
+
setIsVisible = _useState2[1];
|
|
1145
|
+
|
|
1146
|
+
return /*#__PURE__*/jsx(InputText, _objectSpread$a(_objectSpread$a({}, props), {}, {
|
|
1147
|
+
textContentType: "password",
|
|
1148
|
+
autoCompleteType: "password",
|
|
1149
|
+
autoCorrect: false,
|
|
1150
|
+
secureTextEntry: !isVisible,
|
|
1151
|
+
right: right || /*#__PURE__*/jsx(InputPressable, {
|
|
1152
|
+
accessibilityRole: "button",
|
|
1153
|
+
onPress: function onPress() {
|
|
1154
|
+
return setIsVisible(function (prev) {
|
|
1155
|
+
return !prev;
|
|
1156
|
+
});
|
|
1157
|
+
},
|
|
1158
|
+
children: /*#__PURE__*/jsx(InputIcon, {
|
|
1159
|
+
icon: isVisible ? /*#__PURE__*/jsx(EyeOffIcon, {}) : /*#__PURE__*/jsx(EyeIcon, {})
|
|
1160
|
+
})
|
|
1161
|
+
})
|
|
1162
|
+
}));
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1149
1165
|
function Label(_ref) {
|
|
1150
1166
|
var htmlFor = _ref.htmlFor,
|
|
1151
1167
|
children = _ref.children;
|
|
@@ -1214,7 +1230,7 @@ var SelectedInnerRadio = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
1214
1230
|
var theme = _ref14.theme;
|
|
1215
1231
|
return theme.kitt.forms.radio.checked.innerSize / 2;
|
|
1216
1232
|
});
|
|
1217
|
-
var Container$
|
|
1233
|
+
var Container$2 = /*#__PURE__*/styled$1(Pressable).withConfig({
|
|
1218
1234
|
displayName: "Radio__Container",
|
|
1219
1235
|
componentId: "kitt-universal__sc-1mdgr2o-3"
|
|
1220
1236
|
})(["flex-direction:row;align-items:center;"]);
|
|
@@ -1233,7 +1249,7 @@ function Radio(_ref16) {
|
|
|
1233
1249
|
_ref16$disabled = _ref16.disabled,
|
|
1234
1250
|
disabled = _ref16$disabled === void 0 ? false : _ref16$disabled,
|
|
1235
1251
|
children = _ref16.children;
|
|
1236
|
-
return /*#__PURE__*/jsxs(Container$
|
|
1252
|
+
return /*#__PURE__*/jsxs(Container$2, {
|
|
1237
1253
|
nativeID: id,
|
|
1238
1254
|
disabled: disabled,
|
|
1239
1255
|
accessibilityRole: "radio",
|
|
@@ -1261,13 +1277,11 @@ function TextArea(_ref) {
|
|
|
1261
1277
|
var props = _extends({}, _ref);
|
|
1262
1278
|
|
|
1263
1279
|
var theme = /*#__PURE__*/useTheme();
|
|
1264
|
-
return /*#__PURE__*/jsx(InputText, _objectSpread$9(
|
|
1280
|
+
return /*#__PURE__*/jsx(InputText, _objectSpread$9({
|
|
1265
1281
|
multiline: true,
|
|
1266
|
-
textAlignVertical: "top"
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
minHeight: theme.kitt.forms.input.textAreaMinHeight
|
|
1270
|
-
}));
|
|
1282
|
+
textAlignVertical: "top",
|
|
1283
|
+
minHeight: theme.kitt.forms.textArea.minHeight
|
|
1284
|
+
}, props));
|
|
1271
1285
|
}
|
|
1272
1286
|
|
|
1273
1287
|
var Body = /*#__PURE__*/styled$1(View).withConfig({
|
|
@@ -1417,7 +1431,7 @@ function FullScreenModalHeader(_ref6) {
|
|
|
1417
1431
|
});
|
|
1418
1432
|
}
|
|
1419
1433
|
|
|
1420
|
-
var Container$
|
|
1434
|
+
var Container$1 = /*#__PURE__*/styled$1(View).withConfig({
|
|
1421
1435
|
displayName: "FullScreenModal__Container",
|
|
1422
1436
|
componentId: "kitt-universal__sc-11qpbe3-0"
|
|
1423
1437
|
})(["flex:1;background-color:", ";"], function (_ref) {
|
|
@@ -1426,7 +1440,7 @@ var Container$2 = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
1426
1440
|
});
|
|
1427
1441
|
function FullScreenModal(_ref2) {
|
|
1428
1442
|
var children = _ref2.children;
|
|
1429
|
-
return /*#__PURE__*/jsx(Container$
|
|
1443
|
+
return /*#__PURE__*/jsx(Container$1, {
|
|
1430
1444
|
children: children
|
|
1431
1445
|
});
|
|
1432
1446
|
}
|
|
@@ -1577,10 +1591,16 @@ function IconButton(_ref7) {
|
|
|
1577
1591
|
var icon = _ref7.icon,
|
|
1578
1592
|
color = _ref7.color,
|
|
1579
1593
|
disabled = _ref7.disabled,
|
|
1594
|
+
testID = _ref7.testID,
|
|
1595
|
+
accessibilityLabel = _ref7.accessibilityLabel,
|
|
1596
|
+
accessibilityRole = _ref7.accessibilityRole,
|
|
1580
1597
|
onPress = _ref7.onPress;
|
|
1581
1598
|
return /*#__PURE__*/jsx(PressableAnimatedContainer, {
|
|
1582
1599
|
color: color,
|
|
1583
1600
|
disabled: disabled,
|
|
1601
|
+
testID: testID,
|
|
1602
|
+
accessibilityLabel: accessibilityLabel,
|
|
1603
|
+
accessibilityRole: accessibilityRole,
|
|
1584
1604
|
onPress: onPress,
|
|
1585
1605
|
children: /*#__PURE__*/jsx(IconButtonContent, {
|
|
1586
1606
|
disabled: disabled,
|
|
@@ -1785,59 +1805,32 @@ function Loader(_ref) {
|
|
|
1785
1805
|
});
|
|
1786
1806
|
}
|
|
1787
1807
|
|
|
1788
|
-
|
|
1789
|
-
var
|
|
1790
|
-
|
|
1791
|
-
displayName: "Message__Container",
|
|
1792
|
-
componentId: "kitt-universal__sc-c6400e-0"
|
|
1793
|
-
})(["border-radius:", "px;background-color:", ";padding-bottom:", "px;padding-left:", "px;padding-right:", "px;padding-top:", "px;flex-direction:row;align-items:flex-start;justify-content:space-between;"], function (_ref) {
|
|
1794
|
-
var theme = _ref.theme,
|
|
1795
|
-
noRadius = _ref.noRadius;
|
|
1796
|
-
return noRadius ? 0 : theme.kitt.spacing * 5;
|
|
1797
|
-
}, function (_ref2) {
|
|
1798
|
-
var theme = _ref2.theme,
|
|
1799
|
-
type = _ref2.type;
|
|
1800
|
-
return theme.kitt.feedbackMessage.backgroundColors[type];
|
|
1801
|
-
}, function (_ref3) {
|
|
1802
|
-
var theme = _ref3.theme;
|
|
1803
|
-
return theme.kitt.spacing * 4;
|
|
1804
|
-
}, function (_ref4) {
|
|
1805
|
-
var theme = _ref4.theme;
|
|
1806
|
-
return theme.kitt.spacing * 4;
|
|
1807
|
-
}, function (_ref5) {
|
|
1808
|
-
var theme = _ref5.theme;
|
|
1809
|
-
return theme.kitt.spacing * 4;
|
|
1810
|
-
}, function (_ref6) {
|
|
1811
|
-
var _insets$top;
|
|
1808
|
+
function IconContent(_ref) {
|
|
1809
|
+
var type = _ref.type,
|
|
1810
|
+
color = _ref.color;
|
|
1812
1811
|
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
}
|
|
1834
|
-
|
|
1835
|
-
displayName: "Message__Content",
|
|
1836
|
-
componentId: "kitt-universal__sc-c6400e-3"
|
|
1837
|
-
})(["text-align:", ";flex:1;"], function (_ref10) {
|
|
1838
|
-
var centeredText = _ref10.centeredText;
|
|
1839
|
-
return centeredText ? 'center' : 'left';
|
|
1840
|
-
});
|
|
1812
|
+
switch (type) {
|
|
1813
|
+
case 'warning':
|
|
1814
|
+
return /*#__PURE__*/jsx(AlertCircleIcon, {
|
|
1815
|
+
color: color
|
|
1816
|
+
});
|
|
1817
|
+
|
|
1818
|
+
case 'success':
|
|
1819
|
+
return /*#__PURE__*/jsx(CheckIcon, {
|
|
1820
|
+
color: color
|
|
1821
|
+
});
|
|
1822
|
+
|
|
1823
|
+
case 'danger':
|
|
1824
|
+
return /*#__PURE__*/jsx(AlertTriangleIcon, {
|
|
1825
|
+
color: color
|
|
1826
|
+
});
|
|
1827
|
+
|
|
1828
|
+
default:
|
|
1829
|
+
return /*#__PURE__*/jsx(InfoIcon, {
|
|
1830
|
+
color: color
|
|
1831
|
+
});
|
|
1832
|
+
}
|
|
1833
|
+
}
|
|
1841
1834
|
|
|
1842
1835
|
var getColorByType = function (type) {
|
|
1843
1836
|
switch (type) {
|
|
@@ -1852,63 +1845,122 @@ var getColorByType = function (type) {
|
|
|
1852
1845
|
return 'black';
|
|
1853
1846
|
}
|
|
1854
1847
|
};
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
switch (type) {
|
|
1858
|
-
case 'warning':
|
|
1859
|
-
return /*#__PURE__*/jsx(AlertCircleIcon, {});
|
|
1860
|
-
|
|
1848
|
+
var getIconButtonColor = function (messageType) {
|
|
1849
|
+
switch (messageType) {
|
|
1861
1850
|
case 'success':
|
|
1862
|
-
return /*#__PURE__*/jsx(CheckIcon, {});
|
|
1863
|
-
|
|
1864
1851
|
case 'danger':
|
|
1865
|
-
return
|
|
1852
|
+
return 'white';
|
|
1866
1853
|
|
|
1854
|
+
case 'warning':
|
|
1867
1855
|
default:
|
|
1868
|
-
return
|
|
1856
|
+
return 'black';
|
|
1869
1857
|
}
|
|
1870
|
-
}
|
|
1858
|
+
};
|
|
1871
1859
|
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1860
|
+
var StyledMessageContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
1861
|
+
displayName: "BaseMessage__StyledMessageContainer",
|
|
1862
|
+
componentId: "kitt-universal__sc-eepeiz-0"
|
|
1863
|
+
})(["flex-direction:row;align-items:flex-start;justify-content:space-between;min-height:60px;padding-top:", "px;border-radius:", "px;background-color:", ";"], function (_ref) {
|
|
1864
|
+
var _$insets$top;
|
|
1865
|
+
|
|
1866
|
+
var $insets = _ref.$insets;
|
|
1867
|
+
return (_$insets$top = $insets === null || $insets === void 0 ? void 0 : $insets.top) !== null && _$insets$top !== void 0 ? _$insets$top : 0;
|
|
1868
|
+
}, function (_ref2) {
|
|
1869
|
+
var theme = _ref2.theme,
|
|
1870
|
+
$hasNoRadius = _ref2.$hasNoRadius;
|
|
1871
|
+
return $hasNoRadius ? 0 : theme.kitt.spacing * 5;
|
|
1872
|
+
}, function (_ref3) {
|
|
1873
|
+
var theme = _ref3.theme,
|
|
1874
|
+
$type = _ref3.$type;
|
|
1875
|
+
return theme.kitt.feedbackMessage[$type].backgroundColor;
|
|
1876
|
+
});
|
|
1877
|
+
var StyledDismissWrapper = /*#__PURE__*/styled$1(View).withConfig({
|
|
1878
|
+
displayName: "BaseMessage__StyledDismissWrapper",
|
|
1879
|
+
componentId: "kitt-universal__sc-eepeiz-1"
|
|
1880
|
+
})(["align-items:center;align-items:flex-start;margin:", ";"], function (_ref4) {
|
|
1881
|
+
var theme = _ref4.theme;
|
|
1882
|
+
var spacing = theme.kitt.spacing;
|
|
1883
|
+
return "".concat(spacing * 2.5, "px ").concat(spacing * 2, "px 0 ").concat(spacing * 5, "px");
|
|
1884
|
+
});
|
|
1885
|
+
var StyledIconContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
1886
|
+
displayName: "BaseMessage__StyledIconContainer",
|
|
1887
|
+
componentId: "kitt-universal__sc-eepeiz-2"
|
|
1888
|
+
})(["margin:", ";"], function (_ref5) {
|
|
1889
|
+
var theme = _ref5.theme;
|
|
1890
|
+
var spacing = theme.kitt.spacing;
|
|
1891
|
+
return "".concat(spacing, "px ").concat(spacing * 5, "px 0 0");
|
|
1892
|
+
});
|
|
1893
|
+
var StyledTextContent = /*#__PURE__*/styled$1(Typography.Text).withConfig({
|
|
1894
|
+
displayName: "BaseMessage__StyledTextContent",
|
|
1895
|
+
componentId: "kitt-universal__sc-eepeiz-3"
|
|
1896
|
+
})(["flex:1;text-align:", ";"], function (_ref6) {
|
|
1897
|
+
var $isCenteredText = _ref6.$isCenteredText;
|
|
1898
|
+
return $isCenteredText ? 'center' : 'left';
|
|
1899
|
+
});
|
|
1900
|
+
var StyledMessageContent = /*#__PURE__*/styled$1(View).withConfig({
|
|
1901
|
+
displayName: "BaseMessage__StyledMessageContent",
|
|
1902
|
+
componentId: "kitt-universal__sc-eepeiz-4"
|
|
1903
|
+
})(["display:flex;flex-direction:row;flex-grow:1;align-self:center;align-items:flex-start;flex-shrink:1;padding:", ";"], function (_ref7) {
|
|
1904
|
+
var theme = _ref7.theme;
|
|
1905
|
+
var spacing = theme.kitt.spacing;
|
|
1906
|
+
return "".concat(spacing * 4, "px ").concat(spacing * 5, "px");
|
|
1907
|
+
});
|
|
1908
|
+
function BaseMessage(_ref8) {
|
|
1909
|
+
var _ref8$type = _ref8.type,
|
|
1910
|
+
type = _ref8$type === void 0 ? 'info' : _ref8$type,
|
|
1911
|
+
children = _ref8.children,
|
|
1912
|
+
hasNoRadius = _ref8.hasNoRadius,
|
|
1913
|
+
centeredText = _ref8.centeredText,
|
|
1914
|
+
insets = _ref8.insets,
|
|
1915
|
+
onDismiss = _ref8.onDismiss;
|
|
1882
1916
|
var color = getColorByType(type);
|
|
1883
|
-
return /*#__PURE__*/jsxs(
|
|
1884
|
-
type: type,
|
|
1885
|
-
|
|
1886
|
-
insets: insets,
|
|
1887
|
-
children: [
|
|
1888
|
-
children: /*#__PURE__*/jsx(
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1917
|
+
return /*#__PURE__*/jsxs(StyledMessageContainer, {
|
|
1918
|
+
$type: type,
|
|
1919
|
+
$hasNoRadius: hasNoRadius,
|
|
1920
|
+
$insets: insets,
|
|
1921
|
+
children: [/*#__PURE__*/jsxs(StyledMessageContent, {
|
|
1922
|
+
children: [centeredText ? null : /*#__PURE__*/jsx(StyledIconContainer, {
|
|
1923
|
+
children: /*#__PURE__*/jsx(Icon, {
|
|
1924
|
+
color: color,
|
|
1925
|
+
icon: /*#__PURE__*/jsx(IconContent, {
|
|
1926
|
+
type: type,
|
|
1927
|
+
color: color
|
|
1928
|
+
})
|
|
1929
|
+
})
|
|
1930
|
+
}), /*#__PURE__*/jsx(StyledTextContent, {
|
|
1931
|
+
$isCenteredText: centeredText,
|
|
1932
|
+
base: "body",
|
|
1898
1933
|
color: color,
|
|
1899
1934
|
children: children
|
|
1900
|
-
})
|
|
1901
|
-
}), onDismiss ? /*#__PURE__*/jsx(
|
|
1902
|
-
|
|
1903
|
-
|
|
1935
|
+
})]
|
|
1936
|
+
}), onDismiss ? /*#__PURE__*/jsx(StyledDismissWrapper, {
|
|
1937
|
+
children: /*#__PURE__*/jsx(IconButton, {
|
|
1938
|
+
color: getIconButtonColor(type),
|
|
1904
1939
|
icon: /*#__PURE__*/jsx(XIcon, {}),
|
|
1905
|
-
|
|
1906
|
-
color: color
|
|
1940
|
+
onPress: onDismiss
|
|
1907
1941
|
})
|
|
1908
1942
|
}) : null]
|
|
1909
1943
|
});
|
|
1910
1944
|
}
|
|
1911
1945
|
|
|
1946
|
+
function Message(_ref) {
|
|
1947
|
+
var _ref$type = _ref.type,
|
|
1948
|
+
type = _ref$type === void 0 ? 'info' : _ref$type,
|
|
1949
|
+
children = _ref.children,
|
|
1950
|
+
hasNoRadius = _ref.hasNoRadius,
|
|
1951
|
+
centeredText = _ref.centeredText,
|
|
1952
|
+
insets = _ref.insets,
|
|
1953
|
+
onDismiss = _ref.onDismiss;
|
|
1954
|
+
return /*#__PURE__*/jsx(BaseMessage, {
|
|
1955
|
+
insets: insets,
|
|
1956
|
+
hasNoRadius: hasNoRadius,
|
|
1957
|
+
type: type,
|
|
1958
|
+
centeredText: centeredText,
|
|
1959
|
+
onDismiss: onDismiss,
|
|
1960
|
+
children: children
|
|
1961
|
+
});
|
|
1962
|
+
}
|
|
1963
|
+
|
|
1912
1964
|
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; }
|
|
1913
1965
|
|
|
1914
1966
|
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; }
|
|
@@ -2076,19 +2128,22 @@ function Notification(_ref) {
|
|
|
2076
2128
|
var type = _ref.type,
|
|
2077
2129
|
children = _ref.children,
|
|
2078
2130
|
centeredText = _ref.centeredText,
|
|
2079
|
-
|
|
2131
|
+
insets = _ref.insets,
|
|
2132
|
+
onDelete = _ref.onDelete,
|
|
2133
|
+
onDismiss = _ref.onDismiss;
|
|
2080
2134
|
|
|
2081
|
-
|
|
2082
|
-
|
|
2135
|
+
if ((process.env.NODE_ENV !== "production")) {
|
|
2136
|
+
if (onDelete) {
|
|
2137
|
+
throw new Error('onDelete is deprecated us onDismiss instead');
|
|
2138
|
+
}
|
|
2139
|
+
}
|
|
2083
2140
|
|
|
2084
|
-
return /*#__PURE__*/jsx(
|
|
2085
|
-
|
|
2141
|
+
return /*#__PURE__*/jsx(BaseMessage, {
|
|
2142
|
+
hasNoRadius: true,
|
|
2086
2143
|
type: type,
|
|
2087
2144
|
centeredText: centeredText,
|
|
2088
|
-
insets:
|
|
2089
|
-
|
|
2090
|
-
},
|
|
2091
|
-
onDismiss: onDelete,
|
|
2145
|
+
insets: insets,
|
|
2146
|
+
onDismiss: onDismiss,
|
|
2092
2147
|
children: children
|
|
2093
2148
|
});
|
|
2094
2149
|
}
|
|
@@ -2119,6 +2174,10 @@ function SkeletonContent(_ref4) {
|
|
|
2119
2174
|
});
|
|
2120
2175
|
}
|
|
2121
2176
|
|
|
2177
|
+
var SkeletonContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
2178
|
+
displayName: "Skeleton__SkeletonContainer",
|
|
2179
|
+
componentId: "kitt-universal__sc-1w5cm3i-0"
|
|
2180
|
+
})(["overflow:hidden;"]);
|
|
2122
2181
|
function Skeleton(_ref) {
|
|
2123
2182
|
var isLoading = _ref.isLoading,
|
|
2124
2183
|
style = _ref.style;
|
|
@@ -2128,7 +2187,7 @@ function Skeleton(_ref) {
|
|
|
2128
2187
|
width = _useState2[0],
|
|
2129
2188
|
setWidth = _useState2[1];
|
|
2130
2189
|
|
|
2131
|
-
return /*#__PURE__*/jsx(
|
|
2190
|
+
return /*#__PURE__*/jsx(SkeletonContainer, {
|
|
2132
2191
|
style: style,
|
|
2133
2192
|
onLayout: function onLayout(_ref2) {
|
|
2134
2193
|
var nativeEvent = _ref2.nativeEvent;
|
|
@@ -2142,8 +2201,8 @@ function Skeleton(_ref) {
|
|
|
2142
2201
|
}
|
|
2143
2202
|
var Bar = /*#__PURE__*/styled$1(Skeleton).withConfig({
|
|
2144
2203
|
displayName: "Skeleton__Bar",
|
|
2145
|
-
componentId: "kitt-universal__sc-1w5cm3i-
|
|
2146
|
-
})(["width:100%;height:", "px;border-radius:", "px;
|
|
2204
|
+
componentId: "kitt-universal__sc-1w5cm3i-1"
|
|
2205
|
+
})(["width:100%;height:", "px;border-radius:", "px;"], function (_ref3) {
|
|
2147
2206
|
var theme = _ref3.theme;
|
|
2148
2207
|
return theme.kitt.spacing * 2;
|
|
2149
2208
|
}, function (_ref4) {
|
|
@@ -2152,8 +2211,8 @@ var Bar = /*#__PURE__*/styled$1(Skeleton).withConfig({
|
|
|
2152
2211
|
});
|
|
2153
2212
|
var Circle = /*#__PURE__*/styled$1(Skeleton).withConfig({
|
|
2154
2213
|
displayName: "Skeleton__Circle",
|
|
2155
|
-
componentId: "kitt-universal__sc-1w5cm3i-
|
|
2156
|
-
})(["width:", "px;height:", "px;border-radius:", "px;
|
|
2214
|
+
componentId: "kitt-universal__sc-1w5cm3i-2"
|
|
2215
|
+
})(["width:", "px;height:", "px;border-radius:", "px;"], function (_ref5) {
|
|
2157
2216
|
var theme = _ref5.theme;
|
|
2158
2217
|
return theme.kitt.spacing * 12;
|
|
2159
2218
|
}, function (_ref6) {
|
|
@@ -2165,8 +2224,8 @@ var Circle = /*#__PURE__*/styled$1(Skeleton).withConfig({
|
|
|
2165
2224
|
});
|
|
2166
2225
|
var Square = /*#__PURE__*/styled$1(Skeleton).withConfig({
|
|
2167
2226
|
displayName: "Skeleton__Square",
|
|
2168
|
-
componentId: "kitt-universal__sc-1w5cm3i-
|
|
2169
|
-
})(["width:", "px;height:", "px;border-radius:", "px;
|
|
2227
|
+
componentId: "kitt-universal__sc-1w5cm3i-3"
|
|
2228
|
+
})(["width:", "px;height:", "px;border-radius:", "px;"], function (_ref8) {
|
|
2170
2229
|
var theme = _ref8.theme;
|
|
2171
2230
|
return theme.kitt.spacing * 12;
|
|
2172
2231
|
}, function (_ref9) {
|
|
@@ -2631,6 +2690,8 @@ var colorsLateOceanTheme = {
|
|
|
2631
2690
|
success: lateOceanColorPalette.viride,
|
|
2632
2691
|
correct: lateOceanColorPalette.viride,
|
|
2633
2692
|
danger: lateOceanColorPalette.englishVermillon,
|
|
2693
|
+
info: lateOceanColorPalette.aero,
|
|
2694
|
+
warning: lateOceanColorPalette.goldCrayola,
|
|
2634
2695
|
separator: lateOceanColorPalette.black100,
|
|
2635
2696
|
hover: lateOceanColorPalette.black100,
|
|
2636
2697
|
black: lateOceanColorPalette.black1000,
|
|
@@ -2655,7 +2716,7 @@ var avatar = {
|
|
|
2655
2716
|
}
|
|
2656
2717
|
};
|
|
2657
2718
|
|
|
2658
|
-
var
|
|
2719
|
+
var button = {
|
|
2659
2720
|
borderRadius: '30px',
|
|
2660
2721
|
borderWidth: {
|
|
2661
2722
|
disabled: '2px',
|
|
@@ -2746,63 +2807,152 @@ var cardLateOceanTheme = {
|
|
|
2746
2807
|
}
|
|
2747
2808
|
};
|
|
2748
2809
|
|
|
2749
|
-
var
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2810
|
+
var feedbackMessage = {
|
|
2811
|
+
danger: {
|
|
2812
|
+
backgroundColor: colorsLateOceanTheme.danger
|
|
2813
|
+
},
|
|
2814
|
+
success: {
|
|
2815
|
+
backgroundColor: colorsLateOceanTheme.success
|
|
2816
|
+
},
|
|
2817
|
+
info: {
|
|
2818
|
+
backgroundColor: colorsLateOceanTheme.info
|
|
2819
|
+
},
|
|
2820
|
+
warning: {
|
|
2821
|
+
backgroundColor: colorsLateOceanTheme.warning
|
|
2755
2822
|
}
|
|
2756
2823
|
};
|
|
2757
2824
|
|
|
2758
|
-
var
|
|
2759
|
-
|
|
2760
|
-
|
|
2825
|
+
var calcLineHeight = function (fontSize, lineHeightMultiplier) {
|
|
2826
|
+
return Math.round(fontSize * lineHeightMultiplier);
|
|
2827
|
+
};
|
|
2828
|
+
var createTypographyTypeConfig = function (lineHeightMultiplier, baseAndSmallFontSize, mediumAndWideFontSize) {
|
|
2829
|
+
return {
|
|
2830
|
+
baseAndSmall: {
|
|
2831
|
+
fontSize: "".concat(baseAndSmallFontSize, "px"),
|
|
2832
|
+
lineHeight: "".concat(calcLineHeight(baseAndSmallFontSize, lineHeightMultiplier), "px")
|
|
2833
|
+
},
|
|
2834
|
+
mediumAndWide: {
|
|
2835
|
+
fontSize: "".concat(mediumAndWideFontSize, "px"),
|
|
2836
|
+
lineHeight: "".concat(calcLineHeight(mediumAndWideFontSize, lineHeightMultiplier), "px")
|
|
2837
|
+
}
|
|
2838
|
+
};
|
|
2839
|
+
};
|
|
2840
|
+
var typographyLateOceanTheme = {
|
|
2841
|
+
colors: {
|
|
2842
|
+
black: lateOceanColorPalette.black1000,
|
|
2843
|
+
'black-light': lateOceanColorPalette.black555,
|
|
2844
|
+
white: lateOceanColorPalette.white,
|
|
2845
|
+
'white-light': lateOceanColorPalette.white,
|
|
2846
|
+
primary: lateOceanColorPalette.lateOcean,
|
|
2847
|
+
'primary-light': lateOceanColorPalette.lateOceanLight1,
|
|
2848
|
+
accent: lateOceanColorPalette.warmEmbrace,
|
|
2849
|
+
success: lateOceanColorPalette.viride,
|
|
2850
|
+
danger: lateOceanColorPalette.englishVermillon
|
|
2851
|
+
},
|
|
2852
|
+
types: {
|
|
2853
|
+
headers: {
|
|
2854
|
+
fontFamily: {
|
|
2855
|
+
regular: 'Moderat',
|
|
2856
|
+
bold: 'Moderat'
|
|
2857
|
+
},
|
|
2858
|
+
fontWeight: 400,
|
|
2859
|
+
fontStyle: 'normal',
|
|
2860
|
+
configs: {
|
|
2861
|
+
// also known as xxlarge
|
|
2862
|
+
header1: createTypographyTypeConfig(1.3, 38, 62),
|
|
2863
|
+
// also known as xlarge
|
|
2864
|
+
header2: createTypographyTypeConfig(1.3, 32, 48),
|
|
2865
|
+
// also known as medium
|
|
2866
|
+
header3: createTypographyTypeConfig(1.3, 24, 36),
|
|
2867
|
+
// also known as xsmall
|
|
2868
|
+
header4: createTypographyTypeConfig(1.3, 18, 24),
|
|
2869
|
+
// also known as xxsmall
|
|
2870
|
+
header5: createTypographyTypeConfig(1.3, 18, 18)
|
|
2871
|
+
}
|
|
2872
|
+
},
|
|
2873
|
+
bodies: {
|
|
2874
|
+
fontFamily: {
|
|
2875
|
+
regular: 'Noto Sans',
|
|
2876
|
+
bold: 'Noto Sans'
|
|
2877
|
+
},
|
|
2878
|
+
fontWeight: {
|
|
2879
|
+
regular: 400,
|
|
2880
|
+
bold: 700
|
|
2881
|
+
},
|
|
2882
|
+
fontStyle: {
|
|
2883
|
+
regular: 'normal',
|
|
2884
|
+
bold: 'normal'
|
|
2885
|
+
},
|
|
2886
|
+
configs: {
|
|
2887
|
+
'body-large': createTypographyTypeConfig(1.6, 18, 24),
|
|
2888
|
+
'body-medium': createTypographyTypeConfig(1.6, 18, 18),
|
|
2889
|
+
body: createTypographyTypeConfig(1.6, 16, 16),
|
|
2890
|
+
'body-small': createTypographyTypeConfig(1.6, 14, 14),
|
|
2891
|
+
'body-xsmall': createTypographyTypeConfig(1.6, 12, 12)
|
|
2892
|
+
}
|
|
2893
|
+
}
|
|
2894
|
+
},
|
|
2895
|
+
link: {
|
|
2896
|
+
disabledColor: lateOceanColorPalette.black200
|
|
2897
|
+
}
|
|
2761
2898
|
};
|
|
2762
2899
|
|
|
2763
2900
|
var inputStatesStyle = {
|
|
2764
2901
|
"default": {
|
|
2765
|
-
backgroundColor:
|
|
2902
|
+
backgroundColor: colorsLateOceanTheme.uiBackgroundLight,
|
|
2903
|
+
borderColor: colorsLateOceanTheme.separator,
|
|
2904
|
+
color: 'black'
|
|
2905
|
+
},
|
|
2906
|
+
pending: {
|
|
2907
|
+
backgroundColor: colorsLateOceanTheme.uiBackgroundLight,
|
|
2908
|
+
borderColor: colorsLateOceanTheme.separator,
|
|
2909
|
+
color: 'black'
|
|
2910
|
+
},
|
|
2911
|
+
valid: {
|
|
2912
|
+
backgroundColor: colorsLateOceanTheme.uiBackgroundLight,
|
|
2766
2913
|
borderColor: lateOceanColorPalette.black100,
|
|
2767
|
-
color: 'black'
|
|
2768
|
-
passwordButtonIconColor: 'black'
|
|
2914
|
+
color: 'black'
|
|
2769
2915
|
},
|
|
2770
2916
|
hover: {
|
|
2771
2917
|
borderColor: lateOceanColorPalette.black200,
|
|
2772
|
-
color: 'black'
|
|
2773
|
-
passwordButtonIconColor: 'black'
|
|
2918
|
+
color: 'black'
|
|
2774
2919
|
},
|
|
2775
2920
|
focus: {
|
|
2776
|
-
borderColor:
|
|
2777
|
-
color: 'black'
|
|
2778
|
-
passwordButtonIconColor: 'black'
|
|
2921
|
+
borderColor: colorsLateOceanTheme.primary,
|
|
2922
|
+
color: 'black'
|
|
2779
2923
|
},
|
|
2780
2924
|
disabled: {
|
|
2781
|
-
backgroundColor:
|
|
2782
|
-
borderColor:
|
|
2783
|
-
color: 'black-light'
|
|
2784
|
-
passwordButtonIconColor: 'black-light'
|
|
2925
|
+
backgroundColor: colorsLateOceanTheme.disabled,
|
|
2926
|
+
borderColor: colorsLateOceanTheme.separator,
|
|
2927
|
+
color: 'black-light'
|
|
2785
2928
|
},
|
|
2786
2929
|
invalid: {
|
|
2787
|
-
borderColor:
|
|
2788
|
-
color: 'black'
|
|
2789
|
-
passwordButtonIconColor: 'black'
|
|
2930
|
+
borderColor: colorsLateOceanTheme.danger,
|
|
2931
|
+
color: 'black'
|
|
2790
2932
|
}
|
|
2791
2933
|
};
|
|
2792
|
-
var
|
|
2793
|
-
|
|
2794
|
-
|
|
2934
|
+
var input = {
|
|
2935
|
+
color: {
|
|
2936
|
+
selection: colorsLateOceanTheme.primary,
|
|
2937
|
+
placeholder: typographyLateOceanTheme.colors['black-light']
|
|
2938
|
+
},
|
|
2795
2939
|
borderWidth: '2px',
|
|
2796
2940
|
borderRadius: '10px',
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2941
|
+
icon: {
|
|
2942
|
+
size: 20
|
|
2943
|
+
},
|
|
2944
|
+
padding: {
|
|
2945
|
+
"default": '7px 16px',
|
|
2946
|
+
iOSSingleLine: '12px 16px'
|
|
2947
|
+
},
|
|
2803
2948
|
states: inputStatesStyle
|
|
2804
2949
|
};
|
|
2805
2950
|
|
|
2951
|
+
var inputFieldLateOceanTheme = {
|
|
2952
|
+
labelContainerPaddingBottom: 5,
|
|
2953
|
+
iconMarginLeft: 6
|
|
2954
|
+
};
|
|
2955
|
+
|
|
2806
2956
|
var radioLateOceanTheme = {
|
|
2807
2957
|
size: 18,
|
|
2808
2958
|
unchecked: {
|
|
@@ -2821,10 +2971,15 @@ var radioLateOceanTheme = {
|
|
|
2821
2971
|
}
|
|
2822
2972
|
};
|
|
2823
2973
|
|
|
2824
|
-
var
|
|
2825
|
-
|
|
2974
|
+
var textArea = {
|
|
2975
|
+
minHeight: 120
|
|
2976
|
+
};
|
|
2977
|
+
|
|
2978
|
+
var forms = {
|
|
2979
|
+
input: input,
|
|
2826
2980
|
radio: radioLateOceanTheme,
|
|
2827
|
-
inputField: inputFieldLateOceanTheme
|
|
2981
|
+
inputField: inputFieldLateOceanTheme,
|
|
2982
|
+
textArea: textArea
|
|
2828
2983
|
};
|
|
2829
2984
|
|
|
2830
2985
|
var fullScreenModalLateOceanTheme = {
|
|
@@ -2859,14 +3014,14 @@ var iconButton = {
|
|
|
2859
3014
|
},
|
|
2860
3015
|
disabled: {
|
|
2861
3016
|
scale: 1,
|
|
2862
|
-
backgroundColor:
|
|
2863
|
-
borderColor:
|
|
3017
|
+
backgroundColor: button.disabled.backgroundColor,
|
|
3018
|
+
borderColor: button.disabled.borderColor
|
|
2864
3019
|
},
|
|
2865
3020
|
"default": {
|
|
2866
|
-
pressedBackgroundColor:
|
|
3021
|
+
pressedBackgroundColor: button["default"].pressedBackgroundColor
|
|
2867
3022
|
},
|
|
2868
3023
|
white: {
|
|
2869
|
-
pressedBackgroundColor:
|
|
3024
|
+
pressedBackgroundColor: button.white.hoverBackgroundColor
|
|
2870
3025
|
}
|
|
2871
3026
|
};
|
|
2872
3027
|
|
|
@@ -2937,81 +3092,6 @@ var tooltip = {
|
|
|
2937
3092
|
floatingPadding: 8
|
|
2938
3093
|
};
|
|
2939
3094
|
|
|
2940
|
-
var calcLineHeight = function (fontSize, lineHeightMultiplier) {
|
|
2941
|
-
return Math.round(fontSize * lineHeightMultiplier);
|
|
2942
|
-
};
|
|
2943
|
-
var createTypographyTypeConfig = function (lineHeightMultiplier, baseAndSmallFontSize, mediumAndWideFontSize) {
|
|
2944
|
-
return {
|
|
2945
|
-
baseAndSmall: {
|
|
2946
|
-
fontSize: "".concat(baseAndSmallFontSize, "px"),
|
|
2947
|
-
lineHeight: "".concat(calcLineHeight(baseAndSmallFontSize, lineHeightMultiplier), "px")
|
|
2948
|
-
},
|
|
2949
|
-
mediumAndWide: {
|
|
2950
|
-
fontSize: "".concat(mediumAndWideFontSize, "px"),
|
|
2951
|
-
lineHeight: "".concat(calcLineHeight(mediumAndWideFontSize, lineHeightMultiplier), "px")
|
|
2952
|
-
}
|
|
2953
|
-
};
|
|
2954
|
-
};
|
|
2955
|
-
var typographyLateOceanTheme = {
|
|
2956
|
-
colors: {
|
|
2957
|
-
black: lateOceanColorPalette.black1000,
|
|
2958
|
-
'black-light': lateOceanColorPalette.black555,
|
|
2959
|
-
white: lateOceanColorPalette.white,
|
|
2960
|
-
'white-light': lateOceanColorPalette.white,
|
|
2961
|
-
primary: lateOceanColorPalette.lateOcean,
|
|
2962
|
-
'primary-light': lateOceanColorPalette.lateOceanLight1,
|
|
2963
|
-
accent: lateOceanColorPalette.warmEmbrace,
|
|
2964
|
-
success: lateOceanColorPalette.viride,
|
|
2965
|
-
danger: lateOceanColorPalette.englishVermillon
|
|
2966
|
-
},
|
|
2967
|
-
types: {
|
|
2968
|
-
headers: {
|
|
2969
|
-
fontFamily: {
|
|
2970
|
-
regular: 'Moderat',
|
|
2971
|
-
bold: 'Moderat'
|
|
2972
|
-
},
|
|
2973
|
-
fontWeight: 400,
|
|
2974
|
-
fontStyle: 'normal',
|
|
2975
|
-
configs: {
|
|
2976
|
-
// also known as xxlarge
|
|
2977
|
-
header1: createTypographyTypeConfig(1.3, 38, 62),
|
|
2978
|
-
// also known as xlarge
|
|
2979
|
-
header2: createTypographyTypeConfig(1.3, 32, 48),
|
|
2980
|
-
// also known as medium
|
|
2981
|
-
header3: createTypographyTypeConfig(1.3, 24, 36),
|
|
2982
|
-
// also known as xsmall
|
|
2983
|
-
header4: createTypographyTypeConfig(1.3, 18, 24),
|
|
2984
|
-
// also known as xxsmall
|
|
2985
|
-
header5: createTypographyTypeConfig(1.3, 18, 18)
|
|
2986
|
-
}
|
|
2987
|
-
},
|
|
2988
|
-
bodies: {
|
|
2989
|
-
fontFamily: {
|
|
2990
|
-
regular: 'Noto Sans',
|
|
2991
|
-
bold: 'Noto Sans'
|
|
2992
|
-
},
|
|
2993
|
-
fontWeight: {
|
|
2994
|
-
regular: 400,
|
|
2995
|
-
bold: 700
|
|
2996
|
-
},
|
|
2997
|
-
fontStyle: {
|
|
2998
|
-
regular: 'normal',
|
|
2999
|
-
bold: 'normal'
|
|
3000
|
-
},
|
|
3001
|
-
configs: {
|
|
3002
|
-
'body-large': createTypographyTypeConfig(1.6, 18, 24),
|
|
3003
|
-
'body-medium': createTypographyTypeConfig(1.6, 18, 18),
|
|
3004
|
-
body: createTypographyTypeConfig(1.6, 16, 16),
|
|
3005
|
-
'body-small': createTypographyTypeConfig(1.6, 14, 14),
|
|
3006
|
-
'body-xsmall': createTypographyTypeConfig(1.6, 12, 12)
|
|
3007
|
-
}
|
|
3008
|
-
}
|
|
3009
|
-
},
|
|
3010
|
-
link: {
|
|
3011
|
-
disabledColor: lateOceanColorPalette.black200
|
|
3012
|
-
}
|
|
3013
|
-
};
|
|
3014
|
-
|
|
3015
3095
|
var breakpoints = {
|
|
3016
3096
|
values: {
|
|
3017
3097
|
base: 0,
|
|
@@ -3042,10 +3122,10 @@ var theme = {
|
|
|
3042
3122
|
lateOcean: lateOceanColorPalette
|
|
3043
3123
|
},
|
|
3044
3124
|
avatar: avatar,
|
|
3045
|
-
button:
|
|
3125
|
+
button: button,
|
|
3046
3126
|
card: cardLateOceanTheme,
|
|
3047
|
-
feedbackMessage:
|
|
3048
|
-
forms:
|
|
3127
|
+
feedbackMessage: feedbackMessage,
|
|
3128
|
+
forms: forms,
|
|
3049
3129
|
typography: typographyLateOceanTheme,
|
|
3050
3130
|
tag: tagLateOceanTheme,
|
|
3051
3131
|
shadows: shadowsLateOceanTheme,
|
|
@@ -3067,25 +3147,6 @@ function TimePicker() {
|
|
|
3067
3147
|
function ownKeys$1(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; }
|
|
3068
3148
|
|
|
3069
3149
|
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; }
|
|
3070
|
-
|
|
3071
|
-
var Arrow = function (props) {
|
|
3072
|
-
return /*#__PURE__*/jsx("svg", _objectSpread$1(_objectSpread$1({}, props), {}, {
|
|
3073
|
-
children: /*#__PURE__*/jsx("path", {
|
|
3074
|
-
fillRule: "evenodd",
|
|
3075
|
-
clipRule: "evenodd",
|
|
3076
|
-
d: "M22.399 6.128C20.939 7.722 19.767 9 18 9s-2.938-1.278-4.399-2.872C11.187 3.494 7.984 0 0 0h36c-7.984 0-11.187 3.494-13.601 6.128z",
|
|
3077
|
-
fill: "currentColor"
|
|
3078
|
-
})
|
|
3079
|
-
}));
|
|
3080
|
-
};
|
|
3081
|
-
|
|
3082
|
-
Arrow.defaultProps = {
|
|
3083
|
-
width: "36",
|
|
3084
|
-
height: "8",
|
|
3085
|
-
viewBox: "0 0 36 9",
|
|
3086
|
-
fill: "none",
|
|
3087
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
3088
|
-
};
|
|
3089
3150
|
var StyledTooltipView = /*#__PURE__*/styled$1(View).withConfig({
|
|
3090
3151
|
displayName: "TooltipView__StyledTooltipView",
|
|
3091
3152
|
componentId: "kitt-universal__sc-156zm6m-0"
|
|
@@ -3110,7 +3171,7 @@ var StyledTooltipContent = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
3110
3171
|
function ArrowView(props) {
|
|
3111
3172
|
var theme = /*#__PURE__*/useTheme();
|
|
3112
3173
|
return /*#__PURE__*/jsx(View, _objectSpread$1(_objectSpread$1({}, props), {}, {
|
|
3113
|
-
children: /*#__PURE__*/jsx(
|
|
3174
|
+
children: /*#__PURE__*/jsx(TooltipArrowIcon, {
|
|
3114
3175
|
color: theme.kitt.tooltip.backgroundColor
|
|
3115
3176
|
})
|
|
3116
3177
|
}));
|
|
@@ -3487,5 +3548,5 @@ function MatchWindowSize(_ref) {
|
|
|
3487
3548
|
});
|
|
3488
3549
|
}
|
|
3489
3550
|
|
|
3490
|
-
export { Avatar, Button, Card, Emoji, ExternalLink, Flex, FullScreenModal, Icon, IconButton, InputFeedback, InputField, 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 };
|
|
3551
|
+
export { Avatar, Button, Card, Emoji, ExternalLink, Flex, FullScreenModal, Icon, IconButton, InputFeedback, InputField, InputIcon, InputPassword, InputPressable, 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 };
|
|
3491
3552
|
//# sourceMappingURL=index-browser-all.es.web.js.map
|