@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 { UserIcon,
|
|
3
|
+
import { UserIcon, EyeOffIcon, EyeIcon, InfoIcon, AlertTriangleIcon, CheckIcon, AlertCircleIcon, XIcon, TooltipArrowIcon } from '@ornikar/kitt-icons';
|
|
4
4
|
export * from '@ornikar/kitt-icons';
|
|
5
|
-
import { Animated, Easing, useWindowDimensions, Image, Platform, Linking,
|
|
5
|
+
import { Animated, Easing, useWindowDimensions, Image, Platform, Linking, Pressable, TextInput, ActivityIndicator, View, StyleSheet, ScrollView, Modal as Modal$1, Text as Text$1 } from 'react-native';
|
|
6
6
|
export { useWindowDimensions as useWindowSize } from 'react-native';
|
|
7
7
|
import styled, { useTheme, css, ThemeProvider } from 'styled-components/native';
|
|
8
8
|
import { useRef, useEffect, cloneElement, useContext, createContext, forwardRef, useMemo, useState, Fragment, Children } from 'react';
|
|
@@ -52,7 +52,7 @@ function SpinningIcon(_ref) {
|
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
var IconContainer
|
|
55
|
+
var IconContainer = /*#__PURE__*/styled.View.withConfig({
|
|
56
56
|
displayName: "Icon__IconContainer"
|
|
57
57
|
})(["color:", ";width:", "px;height:", "px;align-self:", ";"], function (_ref) {
|
|
58
58
|
var color = _ref.color;
|
|
@@ -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$e = ["accessibilityRole", "base", "small", "medium", "large", "variant", "color"];
|
|
140
140
|
|
|
141
|
-
function ownKeys$
|
|
141
|
+
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; }
|
|
142
142
|
|
|
143
|
-
function _objectSpread$
|
|
143
|
+
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; }
|
|
144
144
|
var IsHeaderTypographyContext = /*#__PURE__*/createContext(undefined);
|
|
145
145
|
var TypographyColorContext = /*#__PURE__*/createContext('black');
|
|
146
146
|
function useTypographyColor() {
|
|
@@ -216,7 +216,7 @@ function Typography(_ref4) {
|
|
|
216
216
|
large = _ref4.large,
|
|
217
217
|
variant = _ref4.variant,
|
|
218
218
|
color = _ref4.color,
|
|
219
|
-
otherProps = _objectWithoutProperties(_ref4, _excluded$
|
|
219
|
+
otherProps = _objectWithoutProperties(_ref4, _excluded$e);
|
|
220
220
|
|
|
221
221
|
var isHeaderTypographyInContext = useContext(IsHeaderTypographyContext);
|
|
222
222
|
var hasTypographyAncestor = isHeaderTypographyInContext !== undefined;
|
|
@@ -233,14 +233,14 @@ function Typography(_ref4) {
|
|
|
233
233
|
var nonNullableVariant = variant !== null && variant !== void 0 ? variant : isHeader ? 'bold' : 'regular';
|
|
234
234
|
var content = baseOrDefaultToBody ? /*#__PURE__*/jsx(IsHeaderTypographyContext.Provider, {
|
|
235
235
|
value: isHeader,
|
|
236
|
-
children: /*#__PURE__*/jsx(StyledTypography, _objectSpread$
|
|
236
|
+
children: /*#__PURE__*/jsx(StyledTypography, _objectSpread$j({
|
|
237
237
|
$color: colorOrDefaultToBlack,
|
|
238
238
|
$isHeader: isHeader,
|
|
239
239
|
$typeForCurrentWindowSize: typeForCurrentWindowSize,
|
|
240
240
|
$variant: nonNullableVariant,
|
|
241
241
|
accessibilityRole: accessibilityRole || undefined
|
|
242
242
|
}, otherProps))
|
|
243
|
-
}) : /*#__PURE__*/jsx(StyledTypography, _objectSpread$
|
|
243
|
+
}) : /*#__PURE__*/jsx(StyledTypography, _objectSpread$j({
|
|
244
244
|
$color: colorOrDefaultToBlack,
|
|
245
245
|
$isHeader: isHeader,
|
|
246
246
|
$variant: nonNullableVariant,
|
|
@@ -253,13 +253,13 @@ function Typography(_ref4) {
|
|
|
253
253
|
}
|
|
254
254
|
|
|
255
255
|
function TypographyText(props) {
|
|
256
|
-
return /*#__PURE__*/jsx(Typography, _objectSpread$
|
|
256
|
+
return /*#__PURE__*/jsx(Typography, _objectSpread$j({
|
|
257
257
|
accessibilityRole: null
|
|
258
258
|
}, props));
|
|
259
259
|
}
|
|
260
260
|
|
|
261
261
|
function TypographyParagraph(props) {
|
|
262
|
-
return /*#__PURE__*/jsx(Typography, _objectSpread$
|
|
262
|
+
return /*#__PURE__*/jsx(Typography, _objectSpread$j({
|
|
263
263
|
accessibilityRole: "paragraph"
|
|
264
264
|
}, props));
|
|
265
265
|
}
|
|
@@ -267,7 +267,7 @@ function TypographyParagraph(props) {
|
|
|
267
267
|
var createHeading = function (level, defaultBase) {
|
|
268
268
|
// https://github.com/necolas/react-native-web/issues/401
|
|
269
269
|
function TypographyHeading(props) {
|
|
270
|
-
return /*#__PURE__*/jsx(Typography, _objectSpread$
|
|
270
|
+
return /*#__PURE__*/jsx(Typography, _objectSpread$j(_objectSpread$j({
|
|
271
271
|
accessibilityRole: "header",
|
|
272
272
|
base: defaultBase
|
|
273
273
|
}, props), {}, {
|
|
@@ -303,11 +303,11 @@ Typography.h4 = createHeading(4, 'header4');
|
|
|
303
303
|
|
|
304
304
|
Typography.h5 = createHeading(5, 'header5');
|
|
305
305
|
|
|
306
|
-
var _excluded$
|
|
306
|
+
var _excluded$d = ["size", "base", "round", "light"];
|
|
307
307
|
|
|
308
|
-
function ownKeys$
|
|
308
|
+
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; }
|
|
309
309
|
|
|
310
|
-
function _objectSpread$
|
|
310
|
+
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; }
|
|
311
311
|
|
|
312
312
|
var getInitials = function (firstname, lastname) {
|
|
313
313
|
return "".concat(firstname[0]).concat(lastname[0]).toUpperCase();
|
|
@@ -378,13 +378,13 @@ function Avatar(_ref6) {
|
|
|
378
378
|
base = _ref6$base === void 0 ? 'body-small' : _ref6$base,
|
|
379
379
|
round = _ref6.round,
|
|
380
380
|
light = _ref6.light,
|
|
381
|
-
props = _objectWithoutProperties(_ref6, _excluded$
|
|
381
|
+
props = _objectWithoutProperties(_ref6, _excluded$d);
|
|
382
382
|
|
|
383
383
|
return /*#__PURE__*/jsx(StyledAvatarView, {
|
|
384
384
|
$size: size,
|
|
385
385
|
$isRound: round,
|
|
386
386
|
$isLight: light,
|
|
387
|
-
children: /*#__PURE__*/jsx(AvatarContent, _objectSpread$
|
|
387
|
+
children: /*#__PURE__*/jsx(AvatarContent, _objectSpread$i({
|
|
388
388
|
size: size,
|
|
389
389
|
base: base,
|
|
390
390
|
isLight: light
|
|
@@ -526,26 +526,26 @@ var BaseStyledButtonPressable = /*#__PURE__*/styled.View.withConfig({
|
|
|
526
526
|
return defaultPadding;
|
|
527
527
|
});
|
|
528
528
|
|
|
529
|
-
var _excluded$
|
|
529
|
+
var _excluded$c = ["color"],
|
|
530
530
|
_excluded2$2 = ["color"];
|
|
531
531
|
|
|
532
|
-
function ownKeys$
|
|
532
|
+
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; }
|
|
533
533
|
|
|
534
|
-
function _objectSpread$
|
|
534
|
+
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; }
|
|
535
535
|
|
|
536
536
|
function TypographyIconSpecifiedColor(_ref) {
|
|
537
537
|
var color = _ref.color,
|
|
538
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
538
|
+
props = _objectWithoutProperties(_ref, _excluded$c);
|
|
539
539
|
|
|
540
540
|
var theme = /*#__PURE__*/useTheme();
|
|
541
|
-
return /*#__PURE__*/jsx(Icon, _objectSpread$
|
|
541
|
+
return /*#__PURE__*/jsx(Icon, _objectSpread$h(_objectSpread$h({}, props), {}, {
|
|
542
542
|
color: color === 'inherit' ? 'inherit' : theme.kitt.typography.colors[color]
|
|
543
543
|
}));
|
|
544
544
|
}
|
|
545
545
|
|
|
546
546
|
function TypographyIconInheritColor(props) {
|
|
547
547
|
var color = useTypographyColor();
|
|
548
|
-
return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread$
|
|
548
|
+
return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread$h({
|
|
549
549
|
color: color
|
|
550
550
|
}, props));
|
|
551
551
|
}
|
|
@@ -555,23 +555,23 @@ function TypographyIcon(_ref2) {
|
|
|
555
555
|
props = _objectWithoutProperties(_ref2, _excluded2$2);
|
|
556
556
|
|
|
557
557
|
if (color) {
|
|
558
|
-
return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread$
|
|
558
|
+
return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread$h({
|
|
559
559
|
color: color
|
|
560
560
|
}, props));
|
|
561
561
|
}
|
|
562
562
|
|
|
563
|
-
return /*#__PURE__*/jsx(TypographyIconInheritColor, _objectSpread$
|
|
563
|
+
return /*#__PURE__*/jsx(TypographyIconInheritColor, _objectSpread$h({}, props));
|
|
564
564
|
}
|
|
565
565
|
|
|
566
566
|
function isSubtle(type) {
|
|
567
567
|
return type.startsWith('subtle');
|
|
568
568
|
}
|
|
569
569
|
|
|
570
|
-
var _excluded$
|
|
570
|
+
var _excluded$b = ["type", "isDisabled", "$isStretch", "icon", "children"];
|
|
571
571
|
|
|
572
|
-
function ownKeys$
|
|
572
|
+
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; }
|
|
573
573
|
|
|
574
|
-
function _objectSpread$
|
|
574
|
+
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; }
|
|
575
575
|
|
|
576
576
|
var getTextColorByType = function (type) {
|
|
577
577
|
switch (type) {
|
|
@@ -610,7 +610,7 @@ var StyledButtonText = /*#__PURE__*/styled(Typography.Text).withConfig({
|
|
|
610
610
|
if (Platform.OS !== 'web' || $isDisabled || !isSubtle($type)) return undefined;
|
|
611
611
|
return 'color: inherit';
|
|
612
612
|
});
|
|
613
|
-
var StyledIconContainer = /*#__PURE__*/styled.View.withConfig({
|
|
613
|
+
var StyledIconContainer$1 = /*#__PURE__*/styled.View.withConfig({
|
|
614
614
|
displayName: "ButtonContent__StyledIconContainer"
|
|
615
615
|
})(["", ""], function (_ref2) {
|
|
616
616
|
var theme = _ref2.theme,
|
|
@@ -630,7 +630,7 @@ function ButtonIcon(_ref3) {
|
|
|
630
630
|
spin = _ref3.spin,
|
|
631
631
|
iconPosition = _ref3.iconPosition,
|
|
632
632
|
testID = _ref3.testID;
|
|
633
|
-
return /*#__PURE__*/jsx(StyledIconContainer, {
|
|
633
|
+
return /*#__PURE__*/jsx(StyledIconContainer$1, {
|
|
634
634
|
$iconPosition: iconPosition,
|
|
635
635
|
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
636
636
|
icon: icon,
|
|
@@ -677,7 +677,7 @@ function ButtonContentChildren(_ref4) {
|
|
|
677
677
|
color: isWebSubtle ? 'inherit' : color
|
|
678
678
|
};
|
|
679
679
|
return /*#__PURE__*/jsxs(StyledChildrenWithIcon, {
|
|
680
|
-
children: [icon && iconPosition === 'left' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
680
|
+
children: [icon && iconPosition === 'left' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread$g(_objectSpread$g({}, buttonIconSharedProps), {}, {
|
|
681
681
|
testID: "button-left-icon",
|
|
682
682
|
icon: icon
|
|
683
683
|
})) : null, /*#__PURE__*/jsx(StyledButtonText, {
|
|
@@ -688,7 +688,7 @@ function ButtonContentChildren(_ref4) {
|
|
|
688
688
|
,
|
|
689
689
|
color: isWebSubtle ? undefined : color,
|
|
690
690
|
children: children
|
|
691
|
-
}), icon && iconPosition === 'right' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
691
|
+
}), icon && iconPosition === 'right' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread$g(_objectSpread$g({}, buttonIconSharedProps), {}, {
|
|
692
692
|
icon: icon
|
|
693
693
|
})) : null]
|
|
694
694
|
});
|
|
@@ -714,14 +714,14 @@ function ButtonContent(_ref7) {
|
|
|
714
714
|
$isStretch = _ref7.$isStretch,
|
|
715
715
|
icon = _ref7.icon,
|
|
716
716
|
children = _ref7.children,
|
|
717
|
-
props = _objectWithoutProperties(_ref7, _excluded$
|
|
717
|
+
props = _objectWithoutProperties(_ref7, _excluded$b);
|
|
718
718
|
|
|
719
719
|
var color = isDisabled ? 'black-light' : getTextColorByType(type);
|
|
720
720
|
return /*#__PURE__*/jsx(ButtonContentContainer, {
|
|
721
721
|
$isSubtle: isSubtle(type),
|
|
722
722
|
$isStretch: $isStretch,
|
|
723
723
|
$isIconOnly: Boolean(!children && icon),
|
|
724
|
-
children: /*#__PURE__*/jsx(ButtonContentChildren, _objectSpread$
|
|
724
|
+
children: /*#__PURE__*/jsx(ButtonContentChildren, _objectSpread$g(_objectSpread$g({
|
|
725
725
|
icon: icon,
|
|
726
726
|
type: type,
|
|
727
727
|
isDisabled: isDisabled,
|
|
@@ -790,7 +790,7 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
790
790
|
});
|
|
791
791
|
});
|
|
792
792
|
|
|
793
|
-
var Container$
|
|
793
|
+
var Container$5 = /*#__PURE__*/styled.View.withConfig({
|
|
794
794
|
displayName: "Card__Container"
|
|
795
795
|
})(["background-color:", ";padding:", ";border-radius:", ";border-width:", ";border-color:", ";"], function (_ref) {
|
|
796
796
|
var theme = _ref.theme,
|
|
@@ -813,7 +813,7 @@ var Container$7 = /*#__PURE__*/styled.View.withConfig({
|
|
|
813
813
|
function Card(_ref6) {
|
|
814
814
|
var children = _ref6.children,
|
|
815
815
|
type = _ref6.type;
|
|
816
|
-
return /*#__PURE__*/jsx(Container$
|
|
816
|
+
return /*#__PURE__*/jsx(Container$5, {
|
|
817
817
|
type: type,
|
|
818
818
|
children: children
|
|
819
819
|
});
|
|
@@ -858,20 +858,20 @@ var defaultOpenLinkBehavior = {
|
|
|
858
858
|
web: 'targetBlank'
|
|
859
859
|
};
|
|
860
860
|
|
|
861
|
-
var _excluded$
|
|
861
|
+
var _excluded$a = ["as", "href", "openLinkBehavior", "onPress"];
|
|
862
862
|
|
|
863
|
-
function ownKeys$
|
|
863
|
+
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; }
|
|
864
864
|
|
|
865
|
-
function _objectSpread$
|
|
865
|
+
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; }
|
|
866
866
|
function ExternalLink(_ref) {
|
|
867
867
|
var Component = _ref.as,
|
|
868
868
|
href = _ref.href,
|
|
869
869
|
_ref$openLinkBehavior = _ref.openLinkBehavior,
|
|
870
870
|
openLinkBehavior = _ref$openLinkBehavior === void 0 ? defaultOpenLinkBehavior : _ref$openLinkBehavior,
|
|
871
871
|
onPress = _ref.onPress,
|
|
872
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
872
|
+
rest = _objectWithoutProperties(_ref, _excluded$a);
|
|
873
873
|
|
|
874
|
-
return /*#__PURE__*/jsx(Component, _objectSpread$
|
|
874
|
+
return /*#__PURE__*/jsx(Component, _objectSpread$f(_objectSpread$f({}, rest), {}, {
|
|
875
875
|
onPress: function handleOnPress() {
|
|
876
876
|
if (onPress) onPress();
|
|
877
877
|
if (!href) return;
|
|
@@ -905,6 +905,7 @@ var getColorFromState = function (state) {
|
|
|
905
905
|
case 'invalid':
|
|
906
906
|
return 'danger';
|
|
907
907
|
|
|
908
|
+
case 'valid':
|
|
908
909
|
default:
|
|
909
910
|
return 'black-light';
|
|
910
911
|
}
|
|
@@ -961,43 +962,47 @@ function InputField(_ref4) {
|
|
|
961
962
|
});
|
|
962
963
|
}
|
|
963
964
|
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
967
|
-
isFocused = _useState2[0],
|
|
968
|
-
setIsFocused = _useState2[1];
|
|
965
|
+
function getIconColor(state, disabled) {
|
|
966
|
+
if (disabled) return 'black-light';
|
|
969
967
|
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
setIsPasswordVisible = _useState4[1];
|
|
968
|
+
switch (state) {
|
|
969
|
+
case 'invalid':
|
|
970
|
+
return 'danger';
|
|
974
971
|
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
handleInputFocus: function handleInputFocus() {
|
|
978
|
-
return setIsFocused(true);
|
|
979
|
-
},
|
|
980
|
-
handleInputBlur: function handleInputBlur() {
|
|
981
|
-
return setIsFocused(false);
|
|
982
|
-
},
|
|
983
|
-
togglePasswordVisibility: function togglePasswordVisibility() {
|
|
984
|
-
return setIsPasswordVisible(function (isVisible) {
|
|
985
|
-
return !isVisible;
|
|
986
|
-
});
|
|
987
|
-
},
|
|
988
|
-
isPasswordVisible: isPasswordVisible
|
|
989
|
-
};
|
|
990
|
-
};
|
|
972
|
+
case 'valid':
|
|
973
|
+
return 'success';
|
|
991
974
|
|
|
992
|
-
|
|
975
|
+
default:
|
|
976
|
+
return undefined;
|
|
977
|
+
}
|
|
978
|
+
}
|
|
993
979
|
|
|
994
|
-
function
|
|
980
|
+
function InputIcon(_ref) {
|
|
981
|
+
var icon = _ref.icon,
|
|
982
|
+
state = _ref.state,
|
|
983
|
+
disabled = _ref.disabled;
|
|
984
|
+
var theme = /*#__PURE__*/useTheme();
|
|
985
|
+
var color = getIconColor(state, disabled);
|
|
986
|
+
return /*#__PURE__*/jsx(TypographyIcon, {
|
|
987
|
+
color: color,
|
|
988
|
+
icon: icon,
|
|
989
|
+
size: theme.kitt.forms.input.icon.size
|
|
990
|
+
});
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
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; }
|
|
994
|
+
|
|
995
|
+
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; }
|
|
996
|
+
function InputPressable(_ref) {
|
|
997
|
+
var props = _extends({}, _ref);
|
|
998
|
+
|
|
999
|
+
return /*#__PURE__*/jsx(Pressable, _objectSpread$e({}, props));
|
|
1000
|
+
}
|
|
995
1001
|
|
|
996
|
-
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; }
|
|
997
1002
|
var styledTextInputMixin = /*#__PURE__*/css(["background-color:", ";border-width:", ";border-radius:", ";border-color:", ";font-size:", ";color:", ";font-family:", ";"], function (_ref) {
|
|
998
1003
|
var theme = _ref.theme,
|
|
999
|
-
state = _ref
|
|
1000
|
-
return state === 'disabled' ? theme.kitt.forms.input.states.disabled.backgroundColor : theme.kitt.forms.input.states["default"].backgroundColor;
|
|
1004
|
+
$state = _ref.$state;
|
|
1005
|
+
return $state === 'disabled' ? theme.kitt.forms.input.states.disabled.backgroundColor : theme.kitt.forms.input.states["default"].backgroundColor;
|
|
1001
1006
|
}, function (_ref2) {
|
|
1002
1007
|
var theme = _ref2.theme;
|
|
1003
1008
|
return theme.kitt.forms.input.borderWidth;
|
|
@@ -1006,147 +1011,158 @@ var styledTextInputMixin = /*#__PURE__*/css(["background-color:", ";border-width
|
|
|
1006
1011
|
return theme.kitt.forms.input.borderRadius;
|
|
1007
1012
|
}, function (_ref4) {
|
|
1008
1013
|
var theme = _ref4.theme,
|
|
1009
|
-
state = _ref4
|
|
1010
|
-
return theme.kitt.forms.input.states[state].borderColor;
|
|
1014
|
+
$state = _ref4.$state;
|
|
1015
|
+
return theme.kitt.forms.input.states[$state].borderColor;
|
|
1011
1016
|
}, function (_ref5) {
|
|
1012
1017
|
var theme = _ref5.theme;
|
|
1013
1018
|
var typeConfigKey = getTypographyTypeConfigKey(theme);
|
|
1014
1019
|
return theme.kitt.typography.types.bodies.configs.body[typeConfigKey].fontSize;
|
|
1015
1020
|
}, function (_ref6) {
|
|
1016
1021
|
var theme = _ref6.theme,
|
|
1017
|
-
state = _ref6
|
|
1018
|
-
return theme.kitt.typography.colors[theme.kitt.forms.input.states[state].color];
|
|
1022
|
+
$state = _ref6.$state;
|
|
1023
|
+
return theme.kitt.typography.colors[theme.kitt.forms.input.states[$state].color];
|
|
1019
1024
|
}, function (_ref7) {
|
|
1020
1025
|
var theme = _ref7.theme;
|
|
1021
1026
|
return theme.kitt.typography.types.bodies.fontFamily.regular;
|
|
1022
1027
|
});
|
|
1023
|
-
var Input = /*#__PURE__*/styled(TextInput).withConfig({
|
|
1024
|
-
displayName: "InputText__Input"
|
|
1025
|
-
})(["", " padding:", ";line-height:", ";min-height:", "px;"], styledTextInputMixin, function (_ref8) {
|
|
1026
|
-
var theme = _ref8.theme,
|
|
1027
|
-
multiline = _ref8.multiline;
|
|
1028
|
-
return !multiline && Platform.OS === 'ios' ? theme.kitt.forms.input.paddingSingleLineIOS : theme.kitt.forms.input.padding;
|
|
1029
|
-
}, function (_ref9) {
|
|
1030
|
-
var theme = _ref9.theme,
|
|
1031
|
-
multiline = _ref9.multiline;
|
|
1032
|
-
if (!multiline && Platform.OS === 'ios') return 0;
|
|
1033
|
-
var typeConfigKey = getTypographyTypeConfigKey(theme);
|
|
1034
|
-
return theme.kitt.typography.types.bodies.configs.body[typeConfigKey].lineHeight;
|
|
1035
|
-
}, function (_ref10) {
|
|
1036
|
-
var minHeight = _ref10.minHeight;
|
|
1037
|
-
return minHeight;
|
|
1038
|
-
});
|
|
1039
|
-
var Container$6 = /*#__PURE__*/styled.View.withConfig({
|
|
1040
|
-
displayName: "InputText__Container"
|
|
1041
|
-
})(["margin-top:", ";margin-bottom:", ";"], function (_ref11) {
|
|
1042
|
-
var theme = _ref11.theme;
|
|
1043
|
-
return theme.kitt.forms.input.marginTop;
|
|
1044
|
-
}, function (_ref12) {
|
|
1045
|
-
var theme = _ref12.theme;
|
|
1046
|
-
return theme.kitt.forms.input.marginBottom;
|
|
1047
|
-
});
|
|
1048
|
-
var PasswordButtonContainer = /*#__PURE__*/styled.Pressable.withConfig({
|
|
1049
|
-
displayName: "InputText__PasswordButtonContainer"
|
|
1050
|
-
})(["position:absolute;right:0;top:0;bottom:0;justify-content:center;padding:", "px;"], function (_ref13) {
|
|
1051
|
-
var theme = _ref13.theme;
|
|
1052
|
-
return theme.kitt.forms.input.passwordButtonIconSize / 2;
|
|
1053
|
-
});
|
|
1054
1028
|
|
|
1055
|
-
|
|
1056
|
-
var
|
|
1057
|
-
|
|
1058
|
-
formState =
|
|
1029
|
+
function getInputUIState(_ref) {
|
|
1030
|
+
var isFocused = _ref.isFocused,
|
|
1031
|
+
isDisabled = _ref.isDisabled,
|
|
1032
|
+
formState = _ref.formState;
|
|
1059
1033
|
if (isDisabled) return 'disabled';
|
|
1060
1034
|
if (isFocused) return 'focus';
|
|
1061
1035
|
if (formState === 'invalid') return 'invalid';
|
|
1062
1036
|
return 'default';
|
|
1063
|
-
}
|
|
1037
|
+
}
|
|
1064
1038
|
|
|
1065
|
-
var
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1039
|
+
var _excluded$9 = ["id", "right", "minHeight", "state", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoCompleteType", "keyboardType", "onFocus", "onBlur"];
|
|
1040
|
+
|
|
1041
|
+
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; }
|
|
1042
|
+
|
|
1043
|
+
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; }
|
|
1044
|
+
var StyledTextInput = /*#__PURE__*/styled(TextInput).withConfig({
|
|
1045
|
+
displayName: "InputText__StyledTextInput"
|
|
1046
|
+
})(["", " padding:", ";line-height:", ";min-height:", "px;"], styledTextInputMixin, function (_ref) {
|
|
1047
|
+
var theme = _ref.theme,
|
|
1048
|
+
multiline = _ref.multiline;
|
|
1049
|
+
|
|
1050
|
+
if (!multiline && Platform.OS === 'ios') {
|
|
1051
|
+
return theme.kitt.forms.input.padding.iOSSingleLine;
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
return theme.kitt.forms.input.padding["default"];
|
|
1055
|
+
}, function (_ref2) {
|
|
1056
|
+
var theme = _ref2.theme,
|
|
1057
|
+
multiline = _ref2.multiline;
|
|
1058
|
+
if (!multiline && Platform.OS === 'ios') return 0;
|
|
1059
|
+
var typeConfigKey = getTypographyTypeConfigKey(theme);
|
|
1060
|
+
return theme.kitt.typography.types.bodies.configs.body[typeConfigKey].lineHeight;
|
|
1061
|
+
}, function (_ref3) {
|
|
1062
|
+
var $minHeight = _ref3.$minHeight;
|
|
1063
|
+
return $minHeight;
|
|
1064
|
+
});
|
|
1065
|
+
var InputTextContainer = /*#__PURE__*/styled.View.withConfig({
|
|
1066
|
+
displayName: "InputText__InputTextContainer"
|
|
1067
|
+
})(["position:relative;"]);
|
|
1068
|
+
var RightInputContainer = /*#__PURE__*/styled.View.withConfig({
|
|
1069
|
+
displayName: "InputText__RightInputContainer"
|
|
1070
|
+
})(["position:absolute;right:0;top:0;bottom:0;justify-content:center;padding:10px;"]);
|
|
1071
|
+
var InputText = /*#__PURE__*/forwardRef(function (_ref4, ref) {
|
|
1072
|
+
var id = _ref4.id,
|
|
1073
|
+
right = _ref4.right,
|
|
1074
|
+
_ref4$minHeight = _ref4.minHeight,
|
|
1075
|
+
minHeight = _ref4$minHeight === void 0 ? 0 : _ref4$minHeight,
|
|
1076
|
+
formState = _ref4.state,
|
|
1077
|
+
internalForceState = _ref4.internalForceState,
|
|
1078
|
+
_ref4$disabled = _ref4.disabled,
|
|
1079
|
+
disabled = _ref4$disabled === void 0 ? false : _ref4$disabled,
|
|
1080
|
+
_ref4$autoCorrect = _ref4.autoCorrect,
|
|
1081
|
+
autoCorrect = _ref4$autoCorrect === void 0 ? true : _ref4$autoCorrect,
|
|
1082
|
+
_ref4$textContentType = _ref4.textContentType,
|
|
1083
|
+
textContentType = _ref4$textContentType === void 0 ? 'none' : _ref4$textContentType,
|
|
1084
|
+
_ref4$autoCompleteTyp = _ref4.autoCompleteType,
|
|
1085
|
+
autoCompleteType = _ref4$autoCompleteTyp === void 0 ? 'off' : _ref4$autoCompleteTyp,
|
|
1086
|
+
_ref4$keyboardType = _ref4.keyboardType,
|
|
1087
|
+
keyboardType = _ref4$keyboardType === void 0 ? 'default' : _ref4$keyboardType,
|
|
1088
|
+
_onFocus = _ref4.onFocus,
|
|
1089
|
+
_onBlur = _ref4.onBlur,
|
|
1090
|
+
props = _objectWithoutProperties(_ref4, _excluded$9);
|
|
1108
1091
|
|
|
1109
1092
|
var theme = /*#__PURE__*/useTheme();
|
|
1110
|
-
|
|
1093
|
+
|
|
1094
|
+
var _useState = useState(false),
|
|
1095
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
1096
|
+
isFocused = _useState2[0],
|
|
1097
|
+
setIsFocused = _useState2[1];
|
|
1098
|
+
|
|
1099
|
+
var state = internalForceState || getInputUIState({
|
|
1111
1100
|
isFocused: isFocused,
|
|
1112
1101
|
isDisabled: disabled,
|
|
1113
1102
|
formState: formState
|
|
1114
1103
|
});
|
|
1115
|
-
return /*#__PURE__*/jsxs(
|
|
1116
|
-
children: [/*#__PURE__*/jsx(
|
|
1104
|
+
return /*#__PURE__*/jsxs(InputTextContainer, {
|
|
1105
|
+
children: [/*#__PURE__*/jsx(StyledTextInput, _objectSpread$d(_objectSpread$d({
|
|
1117
1106
|
ref: ref,
|
|
1118
1107
|
nativeID: id,
|
|
1119
1108
|
editable: !disabled,
|
|
1120
|
-
keyboardType:
|
|
1121
|
-
autoCompleteType:
|
|
1122
|
-
autoCorrect:
|
|
1123
|
-
minHeight: minHeight,
|
|
1124
|
-
textContentType:
|
|
1125
|
-
placeholderTextColor: theme.kitt.
|
|
1126
|
-
selectionColor: theme.kitt.forms.input.
|
|
1127
|
-
secureTextEntry: type === 'password' && !isPasswordVisible
|
|
1109
|
+
keyboardType: keyboardType,
|
|
1110
|
+
autoCompleteType: autoCompleteType,
|
|
1111
|
+
autoCorrect: autoCorrect,
|
|
1112
|
+
$minHeight: minHeight,
|
|
1113
|
+
textContentType: textContentType,
|
|
1114
|
+
placeholderTextColor: theme.kitt.forms.input.color.placeholder,
|
|
1115
|
+
selectionColor: theme.kitt.forms.input.color.selection
|
|
1128
1116
|
}, props), {}, {
|
|
1129
|
-
state: state,
|
|
1117
|
+
$state: state,
|
|
1130
1118
|
onFocus: function onFocus(e) {
|
|
1131
|
-
|
|
1119
|
+
setIsFocused(true);
|
|
1132
1120
|
if (_onFocus) _onFocus(e);
|
|
1133
1121
|
},
|
|
1134
1122
|
onBlur: function onBlur(e) {
|
|
1135
|
-
|
|
1123
|
+
setIsFocused(false);
|
|
1136
1124
|
if (_onBlur) _onBlur(e);
|
|
1137
1125
|
}
|
|
1138
|
-
})),
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
1142
|
-
icon: isPasswordVisible ? /*#__PURE__*/jsx(EyeIcon, {}) : /*#__PURE__*/jsx(EyeOffIcon, {}),
|
|
1143
|
-
size: theme.kitt.forms.input.passwordButtonIconSize,
|
|
1144
|
-
color: theme.kitt.forms.input.states[state].passwordButtonIconColor
|
|
1145
|
-
})
|
|
1146
|
-
})]
|
|
1126
|
+
})), right ? /*#__PURE__*/jsx(RightInputContainer, {
|
|
1127
|
+
children: right
|
|
1128
|
+
}) : null]
|
|
1147
1129
|
});
|
|
1148
1130
|
});
|
|
1149
1131
|
|
|
1132
|
+
var _excluded$8 = ["isPasswordDefaultVisible", "right"];
|
|
1133
|
+
|
|
1134
|
+
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; }
|
|
1135
|
+
|
|
1136
|
+
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; }
|
|
1137
|
+
function InputPassword(_ref) {
|
|
1138
|
+
var isPasswordDefaultVisible = _ref.isPasswordDefaultVisible,
|
|
1139
|
+
right = _ref.right,
|
|
1140
|
+
props = _objectWithoutProperties(_ref, _excluded$8);
|
|
1141
|
+
|
|
1142
|
+
var _useState = useState(Boolean(isPasswordDefaultVisible)),
|
|
1143
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
1144
|
+
isVisible = _useState2[0],
|
|
1145
|
+
setIsVisible = _useState2[1];
|
|
1146
|
+
|
|
1147
|
+
return /*#__PURE__*/jsx(InputText, _objectSpread$c(_objectSpread$c({}, props), {}, {
|
|
1148
|
+
textContentType: "password",
|
|
1149
|
+
autoCompleteType: "password",
|
|
1150
|
+
autoCorrect: false,
|
|
1151
|
+
secureTextEntry: !isVisible,
|
|
1152
|
+
right: right || /*#__PURE__*/jsx(InputPressable, {
|
|
1153
|
+
accessibilityRole: "button",
|
|
1154
|
+
onPress: function onPress() {
|
|
1155
|
+
return setIsVisible(function (prev) {
|
|
1156
|
+
return !prev;
|
|
1157
|
+
});
|
|
1158
|
+
},
|
|
1159
|
+
children: /*#__PURE__*/jsx(InputIcon, {
|
|
1160
|
+
icon: isVisible ? /*#__PURE__*/jsx(EyeOffIcon, {}) : /*#__PURE__*/jsx(EyeIcon, {})
|
|
1161
|
+
})
|
|
1162
|
+
})
|
|
1163
|
+
}));
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1150
1166
|
function Label(_ref) {
|
|
1151
1167
|
var htmlFor = _ref.htmlFor,
|
|
1152
1168
|
children = _ref.children;
|
|
@@ -1212,7 +1228,7 @@ var SelectedInnerRadio = /*#__PURE__*/styled.View.withConfig({
|
|
|
1212
1228
|
var theme = _ref14.theme;
|
|
1213
1229
|
return theme.kitt.forms.radio.checked.innerSize / 2;
|
|
1214
1230
|
});
|
|
1215
|
-
var Container$
|
|
1231
|
+
var Container$4 = /*#__PURE__*/styled.Pressable.withConfig({
|
|
1216
1232
|
displayName: "Radio__Container"
|
|
1217
1233
|
})(["flex-direction:row;align-items:center;"]);
|
|
1218
1234
|
var Text = /*#__PURE__*/styled(Typography.Text).withConfig({
|
|
@@ -1229,7 +1245,7 @@ function Radio(_ref16) {
|
|
|
1229
1245
|
_ref16$disabled = _ref16.disabled,
|
|
1230
1246
|
disabled = _ref16$disabled === void 0 ? false : _ref16$disabled,
|
|
1231
1247
|
children = _ref16.children;
|
|
1232
|
-
return /*#__PURE__*/jsxs(Container$
|
|
1248
|
+
return /*#__PURE__*/jsxs(Container$4, {
|
|
1233
1249
|
nativeID: id,
|
|
1234
1250
|
disabled: disabled,
|
|
1235
1251
|
accessibilityRole: "radio",
|
|
@@ -1257,13 +1273,11 @@ function TextArea(_ref) {
|
|
|
1257
1273
|
var props = _extends({}, _ref);
|
|
1258
1274
|
|
|
1259
1275
|
var theme = /*#__PURE__*/useTheme();
|
|
1260
|
-
return /*#__PURE__*/jsx(InputText, _objectSpread$b(
|
|
1276
|
+
return /*#__PURE__*/jsx(InputText, _objectSpread$b({
|
|
1261
1277
|
multiline: true,
|
|
1262
|
-
textAlignVertical: "top"
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
minHeight: theme.kitt.forms.input.textAreaMinHeight
|
|
1266
|
-
}));
|
|
1278
|
+
textAlignVertical: "top",
|
|
1279
|
+
minHeight: theme.kitt.forms.textArea.minHeight
|
|
1280
|
+
}, props));
|
|
1267
1281
|
}
|
|
1268
1282
|
|
|
1269
1283
|
var Body = /*#__PURE__*/styled.View.withConfig({
|
|
@@ -1409,7 +1423,7 @@ function FullScreenModalHeader(_ref6) {
|
|
|
1409
1423
|
});
|
|
1410
1424
|
}
|
|
1411
1425
|
|
|
1412
|
-
var Container$
|
|
1426
|
+
var Container$3 = /*#__PURE__*/styled.View.withConfig({
|
|
1413
1427
|
displayName: "FullScreenModal__Container"
|
|
1414
1428
|
})(["flex:1;background-color:", ";"], function (_ref) {
|
|
1415
1429
|
var theme = _ref.theme;
|
|
@@ -1417,7 +1431,7 @@ var Container$4 = /*#__PURE__*/styled.View.withConfig({
|
|
|
1417
1431
|
});
|
|
1418
1432
|
function FullScreenModal(_ref2) {
|
|
1419
1433
|
var children = _ref2.children;
|
|
1420
|
-
return /*#__PURE__*/jsx(Container$
|
|
1434
|
+
return /*#__PURE__*/jsx(Container$3, {
|
|
1421
1435
|
children: children
|
|
1422
1436
|
});
|
|
1423
1437
|
}
|
|
@@ -1572,6 +1586,10 @@ function PressableAnimatedContainer(_ref5) {
|
|
|
1572
1586
|
var disabled = _ref5.disabled,
|
|
1573
1587
|
_ref5$color = _ref5.color,
|
|
1574
1588
|
color = _ref5$color === void 0 ? 'black' : _ref5$color,
|
|
1589
|
+
testID = _ref5.testID,
|
|
1590
|
+
_ref5$accessibilityRo = _ref5.accessibilityRole,
|
|
1591
|
+
accessibilityRole = _ref5$accessibilityRo === void 0 ? 'button' : _ref5$accessibilityRo,
|
|
1592
|
+
accessibilityLabel = _ref5.accessibilityLabel,
|
|
1575
1593
|
children = _ref5.children,
|
|
1576
1594
|
onPress = _ref5.onPress;
|
|
1577
1595
|
var theme = /*#__PURE__*/useTheme();
|
|
@@ -1589,7 +1607,7 @@ function PressableAnimatedContainer(_ref5) {
|
|
|
1589
1607
|
};
|
|
1590
1608
|
_f.asString = "function _f(){const{withSpring,pressed}=jsThis._closure;{return{opacity:withSpring(pressed.value?1:0)};}}";
|
|
1591
1609
|
_f.__workletHash = 10645190329247;
|
|
1592
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/IconButton/PressableAnimatedContainer.tsx (
|
|
1610
|
+
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/IconButton/PressableAnimatedContainer.tsx (60:41)";
|
|
1593
1611
|
_f.__optimalization = 2;
|
|
1594
1612
|
|
|
1595
1613
|
global.__reanimatedWorkletInit(_f);
|
|
@@ -1623,7 +1641,7 @@ function PressableAnimatedContainer(_ref5) {
|
|
|
1623
1641
|
};
|
|
1624
1642
|
_f.asString = "function _f(){const{withSpring,pressed,theme}=jsThis._closure;{return{transform:[{scale:withSpring(pressed.value?theme.kitt.iconButton.scale.base.active:theme.kitt.iconButton.scale.base.default)}]};}}";
|
|
1625
1643
|
_f.__workletHash = 13861998831411;
|
|
1626
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/IconButton/PressableAnimatedContainer.tsx (
|
|
1644
|
+
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/IconButton/PressableAnimatedContainer.tsx (66:39)";
|
|
1627
1645
|
_f.__optimalization = 2;
|
|
1628
1646
|
|
|
1629
1647
|
global.__reanimatedWorkletInit(_f);
|
|
@@ -1631,9 +1649,11 @@ function PressableAnimatedContainer(_ref5) {
|
|
|
1631
1649
|
return _f;
|
|
1632
1650
|
}());
|
|
1633
1651
|
return /*#__PURE__*/jsx(PressableIconButton, {
|
|
1634
|
-
accessibilityRole:
|
|
1652
|
+
accessibilityRole: accessibilityRole,
|
|
1635
1653
|
disabled: disabled,
|
|
1636
1654
|
color: color,
|
|
1655
|
+
testID: testID,
|
|
1656
|
+
accessibilityLabel: accessibilityLabel,
|
|
1637
1657
|
onPress: onPress,
|
|
1638
1658
|
onPressIn: function onPressIn() {
|
|
1639
1659
|
pressed.value = true;
|
|
@@ -1695,10 +1715,16 @@ function IconButton(_ref7) {
|
|
|
1695
1715
|
var icon = _ref7.icon,
|
|
1696
1716
|
color = _ref7.color,
|
|
1697
1717
|
disabled = _ref7.disabled,
|
|
1718
|
+
testID = _ref7.testID,
|
|
1719
|
+
accessibilityLabel = _ref7.accessibilityLabel,
|
|
1720
|
+
accessibilityRole = _ref7.accessibilityRole,
|
|
1698
1721
|
onPress = _ref7.onPress;
|
|
1699
1722
|
return /*#__PURE__*/jsx(PressableAnimatedContainer, {
|
|
1700
1723
|
color: color,
|
|
1701
1724
|
disabled: disabled,
|
|
1725
|
+
testID: testID,
|
|
1726
|
+
accessibilityLabel: accessibilityLabel,
|
|
1727
|
+
accessibilityRole: accessibilityRole,
|
|
1702
1728
|
onPress: onPress,
|
|
1703
1729
|
children: /*#__PURE__*/jsx(IconButtonContent, {
|
|
1704
1730
|
disabled: disabled,
|
|
@@ -1874,55 +1900,32 @@ function LargeLoader(_ref) {
|
|
|
1874
1900
|
});
|
|
1875
1901
|
}
|
|
1876
1902
|
|
|
1877
|
-
|
|
1878
|
-
var
|
|
1879
|
-
|
|
1880
|
-
displayName: "Message__Container"
|
|
1881
|
-
})(["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) {
|
|
1882
|
-
var theme = _ref.theme,
|
|
1883
|
-
noRadius = _ref.noRadius;
|
|
1884
|
-
return noRadius ? 0 : theme.kitt.spacing * 5;
|
|
1885
|
-
}, function (_ref2) {
|
|
1886
|
-
var theme = _ref2.theme,
|
|
1887
|
-
type = _ref2.type;
|
|
1888
|
-
return theme.kitt.feedbackMessage.backgroundColors[type];
|
|
1889
|
-
}, function (_ref3) {
|
|
1890
|
-
var theme = _ref3.theme;
|
|
1891
|
-
return theme.kitt.spacing * 4;
|
|
1892
|
-
}, function (_ref4) {
|
|
1893
|
-
var theme = _ref4.theme;
|
|
1894
|
-
return theme.kitt.spacing * 4;
|
|
1895
|
-
}, function (_ref5) {
|
|
1896
|
-
var theme = _ref5.theme;
|
|
1897
|
-
return theme.kitt.spacing * 4;
|
|
1898
|
-
}, function (_ref6) {
|
|
1899
|
-
var _insets$top;
|
|
1903
|
+
function IconContent(_ref) {
|
|
1904
|
+
var type = _ref.type,
|
|
1905
|
+
color = _ref.color;
|
|
1900
1906
|
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
}
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
}
|
|
1923
|
-
var centeredText = _ref10.centeredText;
|
|
1924
|
-
return centeredText ? 'center' : 'left';
|
|
1925
|
-
});
|
|
1907
|
+
switch (type) {
|
|
1908
|
+
case 'warning':
|
|
1909
|
+
return /*#__PURE__*/jsx(AlertCircleIcon, {
|
|
1910
|
+
color: color
|
|
1911
|
+
});
|
|
1912
|
+
|
|
1913
|
+
case 'success':
|
|
1914
|
+
return /*#__PURE__*/jsx(CheckIcon, {
|
|
1915
|
+
color: color
|
|
1916
|
+
});
|
|
1917
|
+
|
|
1918
|
+
case 'danger':
|
|
1919
|
+
return /*#__PURE__*/jsx(AlertTriangleIcon, {
|
|
1920
|
+
color: color
|
|
1921
|
+
});
|
|
1922
|
+
|
|
1923
|
+
default:
|
|
1924
|
+
return /*#__PURE__*/jsx(InfoIcon, {
|
|
1925
|
+
color: color
|
|
1926
|
+
});
|
|
1927
|
+
}
|
|
1928
|
+
}
|
|
1926
1929
|
|
|
1927
1930
|
var getColorByType = function (type) {
|
|
1928
1931
|
switch (type) {
|
|
@@ -1937,63 +1940,117 @@ var getColorByType = function (type) {
|
|
|
1937
1940
|
return 'black';
|
|
1938
1941
|
}
|
|
1939
1942
|
};
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
switch (type) {
|
|
1943
|
-
case 'warning':
|
|
1944
|
-
return /*#__PURE__*/jsx(AlertCircleIcon, {});
|
|
1945
|
-
|
|
1943
|
+
var getIconButtonColor = function (messageType) {
|
|
1944
|
+
switch (messageType) {
|
|
1946
1945
|
case 'success':
|
|
1947
|
-
return /*#__PURE__*/jsx(CheckIcon, {});
|
|
1948
|
-
|
|
1949
1946
|
case 'danger':
|
|
1950
|
-
return
|
|
1947
|
+
return 'white';
|
|
1951
1948
|
|
|
1949
|
+
case 'warning':
|
|
1952
1950
|
default:
|
|
1953
|
-
return
|
|
1951
|
+
return 'black';
|
|
1954
1952
|
}
|
|
1955
|
-
}
|
|
1953
|
+
};
|
|
1956
1954
|
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1955
|
+
var StyledMessageContainer = /*#__PURE__*/styled.View.withConfig({
|
|
1956
|
+
displayName: "BaseMessage__StyledMessageContainer"
|
|
1957
|
+
})(["flex-direction:row;align-items:flex-start;justify-content:space-between;min-height:60px;padding-top:", "px;border-radius:", "px;background-color:", ";"], function (_ref) {
|
|
1958
|
+
var _$insets$top;
|
|
1959
|
+
|
|
1960
|
+
var $insets = _ref.$insets;
|
|
1961
|
+
return (_$insets$top = $insets === null || $insets === void 0 ? void 0 : $insets.top) !== null && _$insets$top !== void 0 ? _$insets$top : 0;
|
|
1962
|
+
}, function (_ref2) {
|
|
1963
|
+
var theme = _ref2.theme,
|
|
1964
|
+
$hasNoRadius = _ref2.$hasNoRadius;
|
|
1965
|
+
return $hasNoRadius ? 0 : theme.kitt.spacing * 5;
|
|
1966
|
+
}, function (_ref3) {
|
|
1967
|
+
var theme = _ref3.theme,
|
|
1968
|
+
$type = _ref3.$type;
|
|
1969
|
+
return theme.kitt.feedbackMessage[$type].backgroundColor;
|
|
1970
|
+
});
|
|
1971
|
+
var StyledDismissWrapper = /*#__PURE__*/styled.View.withConfig({
|
|
1972
|
+
displayName: "BaseMessage__StyledDismissWrapper"
|
|
1973
|
+
})(["align-items:center;align-items:flex-start;margin:", ";"], function (_ref4) {
|
|
1974
|
+
var theme = _ref4.theme;
|
|
1975
|
+
var spacing = theme.kitt.spacing;
|
|
1976
|
+
return "".concat(spacing * 2.5, "px ").concat(spacing * 2, "px 0 ").concat(spacing * 5, "px");
|
|
1977
|
+
});
|
|
1978
|
+
var StyledIconContainer = /*#__PURE__*/styled.View.withConfig({
|
|
1979
|
+
displayName: "BaseMessage__StyledIconContainer"
|
|
1980
|
+
})(["margin:", ";"], function (_ref5) {
|
|
1981
|
+
var theme = _ref5.theme;
|
|
1982
|
+
var spacing = theme.kitt.spacing;
|
|
1983
|
+
return "".concat(spacing, "px ").concat(spacing * 5, "px 0 0");
|
|
1984
|
+
});
|
|
1985
|
+
var StyledTextContent = /*#__PURE__*/styled(Typography.Text).withConfig({
|
|
1986
|
+
displayName: "BaseMessage__StyledTextContent"
|
|
1987
|
+
})(["flex:1;text-align:", ";"], function (_ref6) {
|
|
1988
|
+
var $isCenteredText = _ref6.$isCenteredText;
|
|
1989
|
+
return $isCenteredText ? 'center' : 'left';
|
|
1990
|
+
});
|
|
1991
|
+
var StyledMessageContent = /*#__PURE__*/styled.View.withConfig({
|
|
1992
|
+
displayName: "BaseMessage__StyledMessageContent"
|
|
1993
|
+
})(["display:flex;flex-direction:row;flex-grow:1;align-self:center;align-items:flex-start;flex-shrink:1;padding:", ";"], function (_ref7) {
|
|
1994
|
+
var theme = _ref7.theme;
|
|
1995
|
+
var spacing = theme.kitt.spacing;
|
|
1996
|
+
return "".concat(spacing * 4, "px ").concat(spacing * 5, "px");
|
|
1997
|
+
});
|
|
1998
|
+
function BaseMessage(_ref8) {
|
|
1999
|
+
var _ref8$type = _ref8.type,
|
|
2000
|
+
type = _ref8$type === void 0 ? 'info' : _ref8$type,
|
|
2001
|
+
children = _ref8.children,
|
|
2002
|
+
hasNoRadius = _ref8.hasNoRadius,
|
|
2003
|
+
centeredText = _ref8.centeredText,
|
|
2004
|
+
insets = _ref8.insets,
|
|
2005
|
+
onDismiss = _ref8.onDismiss;
|
|
1967
2006
|
var color = getColorByType(type);
|
|
1968
|
-
return /*#__PURE__*/jsxs(
|
|
1969
|
-
type: type,
|
|
1970
|
-
|
|
1971
|
-
insets: insets,
|
|
1972
|
-
children: [
|
|
1973
|
-
children: /*#__PURE__*/jsx(
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
2007
|
+
return /*#__PURE__*/jsxs(StyledMessageContainer, {
|
|
2008
|
+
$type: type,
|
|
2009
|
+
$hasNoRadius: hasNoRadius,
|
|
2010
|
+
$insets: insets,
|
|
2011
|
+
children: [/*#__PURE__*/jsxs(StyledMessageContent, {
|
|
2012
|
+
children: [centeredText ? null : /*#__PURE__*/jsx(StyledIconContainer, {
|
|
2013
|
+
children: /*#__PURE__*/jsx(Icon, {
|
|
2014
|
+
color: color,
|
|
2015
|
+
icon: /*#__PURE__*/jsx(IconContent, {
|
|
2016
|
+
type: type,
|
|
2017
|
+
color: color
|
|
2018
|
+
})
|
|
2019
|
+
})
|
|
2020
|
+
}), /*#__PURE__*/jsx(StyledTextContent, {
|
|
2021
|
+
$isCenteredText: centeredText,
|
|
2022
|
+
base: "body",
|
|
1983
2023
|
color: color,
|
|
1984
2024
|
children: children
|
|
1985
|
-
})
|
|
1986
|
-
}), onDismiss ? /*#__PURE__*/jsx(
|
|
1987
|
-
|
|
1988
|
-
|
|
2025
|
+
})]
|
|
2026
|
+
}), onDismiss ? /*#__PURE__*/jsx(StyledDismissWrapper, {
|
|
2027
|
+
children: /*#__PURE__*/jsx(IconButton, {
|
|
2028
|
+
color: getIconButtonColor(type),
|
|
1989
2029
|
icon: /*#__PURE__*/jsx(XIcon, {}),
|
|
1990
|
-
|
|
1991
|
-
color: color
|
|
2030
|
+
onPress: onDismiss
|
|
1992
2031
|
})
|
|
1993
2032
|
}) : null]
|
|
1994
2033
|
});
|
|
1995
2034
|
}
|
|
1996
2035
|
|
|
2036
|
+
function Message(_ref) {
|
|
2037
|
+
var _ref$type = _ref.type,
|
|
2038
|
+
type = _ref$type === void 0 ? 'info' : _ref$type,
|
|
2039
|
+
children = _ref.children,
|
|
2040
|
+
hasNoRadius = _ref.hasNoRadius,
|
|
2041
|
+
centeredText = _ref.centeredText,
|
|
2042
|
+
insets = _ref.insets,
|
|
2043
|
+
onDismiss = _ref.onDismiss;
|
|
2044
|
+
return /*#__PURE__*/jsx(BaseMessage, {
|
|
2045
|
+
insets: insets,
|
|
2046
|
+
hasNoRadius: hasNoRadius,
|
|
2047
|
+
type: type,
|
|
2048
|
+
centeredText: centeredText,
|
|
2049
|
+
onDismiss: onDismiss,
|
|
2050
|
+
children: children
|
|
2051
|
+
});
|
|
2052
|
+
}
|
|
2053
|
+
|
|
1997
2054
|
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; }
|
|
1998
2055
|
|
|
1999
2056
|
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; }
|
|
@@ -2152,19 +2209,22 @@ function Notification(_ref) {
|
|
|
2152
2209
|
var type = _ref.type,
|
|
2153
2210
|
children = _ref.children,
|
|
2154
2211
|
centeredText = _ref.centeredText,
|
|
2155
|
-
|
|
2212
|
+
insets = _ref.insets,
|
|
2213
|
+
onDelete = _ref.onDelete,
|
|
2214
|
+
onDismiss = _ref.onDismiss;
|
|
2156
2215
|
|
|
2157
|
-
|
|
2158
|
-
|
|
2216
|
+
if ((process.env.NODE_ENV !== "production")) {
|
|
2217
|
+
if (onDelete) {
|
|
2218
|
+
throw new Error('onDelete is deprecated us onDismiss instead');
|
|
2219
|
+
}
|
|
2220
|
+
}
|
|
2159
2221
|
|
|
2160
|
-
return /*#__PURE__*/jsx(
|
|
2161
|
-
|
|
2222
|
+
return /*#__PURE__*/jsx(BaseMessage, {
|
|
2223
|
+
hasNoRadius: true,
|
|
2162
2224
|
type: type,
|
|
2163
2225
|
centeredText: centeredText,
|
|
2164
|
-
insets:
|
|
2165
|
-
|
|
2166
|
-
},
|
|
2167
|
-
onDismiss: onDelete,
|
|
2226
|
+
insets: insets,
|
|
2227
|
+
onDismiss: onDismiss,
|
|
2168
2228
|
children: children
|
|
2169
2229
|
});
|
|
2170
2230
|
}
|
|
@@ -2232,6 +2292,9 @@ function SkeletonContent(_ref3) {
|
|
|
2232
2292
|
});
|
|
2233
2293
|
}
|
|
2234
2294
|
|
|
2295
|
+
var SkeletonContainer = /*#__PURE__*/styled(View).withConfig({
|
|
2296
|
+
displayName: "Skeleton__SkeletonContainer"
|
|
2297
|
+
})(["overflow:hidden;"]);
|
|
2235
2298
|
function Skeleton(_ref) {
|
|
2236
2299
|
var isLoading = _ref.isLoading,
|
|
2237
2300
|
style = _ref.style;
|
|
@@ -2241,7 +2304,7 @@ function Skeleton(_ref) {
|
|
|
2241
2304
|
width = _useState2[0],
|
|
2242
2305
|
setWidth = _useState2[1];
|
|
2243
2306
|
|
|
2244
|
-
return /*#__PURE__*/jsx(
|
|
2307
|
+
return /*#__PURE__*/jsx(SkeletonContainer, {
|
|
2245
2308
|
style: style,
|
|
2246
2309
|
onLayout: function onLayout(_ref2) {
|
|
2247
2310
|
var nativeEvent = _ref2.nativeEvent;
|
|
@@ -2255,7 +2318,7 @@ function Skeleton(_ref) {
|
|
|
2255
2318
|
}
|
|
2256
2319
|
var Bar = /*#__PURE__*/styled(Skeleton).withConfig({
|
|
2257
2320
|
displayName: "Skeleton__Bar"
|
|
2258
|
-
})(["width:100%;height:", "px;border-radius:", "px;
|
|
2321
|
+
})(["width:100%;height:", "px;border-radius:", "px;"], function (_ref3) {
|
|
2259
2322
|
var theme = _ref3.theme;
|
|
2260
2323
|
return theme.kitt.spacing * 2;
|
|
2261
2324
|
}, function (_ref4) {
|
|
@@ -2264,7 +2327,7 @@ var Bar = /*#__PURE__*/styled(Skeleton).withConfig({
|
|
|
2264
2327
|
});
|
|
2265
2328
|
var Circle = /*#__PURE__*/styled(Skeleton).withConfig({
|
|
2266
2329
|
displayName: "Skeleton__Circle"
|
|
2267
|
-
})(["width:", "px;height:", "px;border-radius:", "px;
|
|
2330
|
+
})(["width:", "px;height:", "px;border-radius:", "px;"], function (_ref5) {
|
|
2268
2331
|
var theme = _ref5.theme;
|
|
2269
2332
|
return theme.kitt.spacing * 12;
|
|
2270
2333
|
}, function (_ref6) {
|
|
@@ -2276,7 +2339,7 @@ var Circle = /*#__PURE__*/styled(Skeleton).withConfig({
|
|
|
2276
2339
|
});
|
|
2277
2340
|
var Square = /*#__PURE__*/styled(Skeleton).withConfig({
|
|
2278
2341
|
displayName: "Skeleton__Square"
|
|
2279
|
-
})(["width:", "px;height:", "px;border-radius:", "px;
|
|
2342
|
+
})(["width:", "px;height:", "px;border-radius:", "px;"], function (_ref8) {
|
|
2280
2343
|
var theme = _ref8.theme;
|
|
2281
2344
|
return theme.kitt.spacing * 12;
|
|
2282
2345
|
}, function (_ref9) {
|
|
@@ -2731,6 +2794,8 @@ var colorsLateOceanTheme = {
|
|
|
2731
2794
|
success: lateOceanColorPalette.viride,
|
|
2732
2795
|
correct: lateOceanColorPalette.viride,
|
|
2733
2796
|
danger: lateOceanColorPalette.englishVermillon,
|
|
2797
|
+
info: lateOceanColorPalette.aero,
|
|
2798
|
+
warning: lateOceanColorPalette.goldCrayola,
|
|
2734
2799
|
separator: lateOceanColorPalette.black100,
|
|
2735
2800
|
hover: lateOceanColorPalette.black100,
|
|
2736
2801
|
black: lateOceanColorPalette.black1000,
|
|
@@ -2755,7 +2820,7 @@ var avatar = {
|
|
|
2755
2820
|
}
|
|
2756
2821
|
};
|
|
2757
2822
|
|
|
2758
|
-
var
|
|
2823
|
+
var button = {
|
|
2759
2824
|
borderRadius: '30px',
|
|
2760
2825
|
borderWidth: {
|
|
2761
2826
|
disabled: '2px',
|
|
@@ -2846,63 +2911,152 @@ var cardLateOceanTheme = {
|
|
|
2846
2911
|
}
|
|
2847
2912
|
};
|
|
2848
2913
|
|
|
2849
|
-
var
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2914
|
+
var feedbackMessage = {
|
|
2915
|
+
danger: {
|
|
2916
|
+
backgroundColor: colorsLateOceanTheme.danger
|
|
2917
|
+
},
|
|
2918
|
+
success: {
|
|
2919
|
+
backgroundColor: colorsLateOceanTheme.success
|
|
2920
|
+
},
|
|
2921
|
+
info: {
|
|
2922
|
+
backgroundColor: colorsLateOceanTheme.info
|
|
2923
|
+
},
|
|
2924
|
+
warning: {
|
|
2925
|
+
backgroundColor: colorsLateOceanTheme.warning
|
|
2855
2926
|
}
|
|
2856
2927
|
};
|
|
2857
2928
|
|
|
2858
|
-
var
|
|
2859
|
-
|
|
2860
|
-
|
|
2929
|
+
var calcLineHeight = function (fontSize, lineHeightMultiplier) {
|
|
2930
|
+
return Math.round(fontSize * lineHeightMultiplier);
|
|
2931
|
+
};
|
|
2932
|
+
var createTypographyTypeConfig = function (lineHeightMultiplier, baseAndSmallFontSize, mediumAndWideFontSize) {
|
|
2933
|
+
return {
|
|
2934
|
+
baseAndSmall: {
|
|
2935
|
+
fontSize: "".concat(baseAndSmallFontSize, "px"),
|
|
2936
|
+
lineHeight: "".concat(calcLineHeight(baseAndSmallFontSize, lineHeightMultiplier), "px")
|
|
2937
|
+
},
|
|
2938
|
+
mediumAndWide: {
|
|
2939
|
+
fontSize: "".concat(mediumAndWideFontSize, "px"),
|
|
2940
|
+
lineHeight: "".concat(calcLineHeight(mediumAndWideFontSize, lineHeightMultiplier), "px")
|
|
2941
|
+
}
|
|
2942
|
+
};
|
|
2943
|
+
};
|
|
2944
|
+
var typographyLateOceanTheme = {
|
|
2945
|
+
colors: {
|
|
2946
|
+
black: lateOceanColorPalette.black1000,
|
|
2947
|
+
'black-light': lateOceanColorPalette.black555,
|
|
2948
|
+
white: lateOceanColorPalette.white,
|
|
2949
|
+
'white-light': lateOceanColorPalette.white,
|
|
2950
|
+
primary: lateOceanColorPalette.lateOcean,
|
|
2951
|
+
'primary-light': lateOceanColorPalette.lateOceanLight1,
|
|
2952
|
+
accent: lateOceanColorPalette.warmEmbrace,
|
|
2953
|
+
success: lateOceanColorPalette.viride,
|
|
2954
|
+
danger: lateOceanColorPalette.englishVermillon
|
|
2955
|
+
},
|
|
2956
|
+
types: {
|
|
2957
|
+
headers: {
|
|
2958
|
+
fontFamily: {
|
|
2959
|
+
regular: Platform.OS === 'web' ? 'Moderat' : 'Moderat-Extended-Bold',
|
|
2960
|
+
bold: Platform.OS === 'web' ? 'Moderat' : 'Moderat-Extended-Bold'
|
|
2961
|
+
},
|
|
2962
|
+
fontWeight: 400,
|
|
2963
|
+
fontStyle: 'normal',
|
|
2964
|
+
configs: {
|
|
2965
|
+
// also known as xxlarge
|
|
2966
|
+
header1: createTypographyTypeConfig(1.3, 38, 62),
|
|
2967
|
+
// also known as xlarge
|
|
2968
|
+
header2: createTypographyTypeConfig(1.3, 32, 48),
|
|
2969
|
+
// also known as medium
|
|
2970
|
+
header3: createTypographyTypeConfig(1.3, 24, 36),
|
|
2971
|
+
// also known as xsmall
|
|
2972
|
+
header4: createTypographyTypeConfig(1.3, 18, 24),
|
|
2973
|
+
// also known as xxsmall
|
|
2974
|
+
header5: createTypographyTypeConfig(1.3, 18, 18)
|
|
2975
|
+
}
|
|
2976
|
+
},
|
|
2977
|
+
bodies: {
|
|
2978
|
+
fontFamily: {
|
|
2979
|
+
regular: Platform.OS === 'web' ? 'Noto Sans' : 'NotoSans',
|
|
2980
|
+
bold: Platform.OS === 'web' ? 'Noto Sans' : 'NotoSans-Bold'
|
|
2981
|
+
},
|
|
2982
|
+
fontWeight: {
|
|
2983
|
+
regular: 400,
|
|
2984
|
+
bold: 700
|
|
2985
|
+
},
|
|
2986
|
+
fontStyle: {
|
|
2987
|
+
regular: 'normal',
|
|
2988
|
+
bold: 'normal'
|
|
2989
|
+
},
|
|
2990
|
+
configs: {
|
|
2991
|
+
'body-large': createTypographyTypeConfig(1.6, 18, 24),
|
|
2992
|
+
'body-medium': createTypographyTypeConfig(1.6, 18, 18),
|
|
2993
|
+
body: createTypographyTypeConfig(1.6, 16, 16),
|
|
2994
|
+
'body-small': createTypographyTypeConfig(1.6, 14, 14),
|
|
2995
|
+
'body-xsmall': createTypographyTypeConfig(1.6, 12, 12)
|
|
2996
|
+
}
|
|
2997
|
+
}
|
|
2998
|
+
},
|
|
2999
|
+
link: {
|
|
3000
|
+
disabledColor: lateOceanColorPalette.black200
|
|
3001
|
+
}
|
|
2861
3002
|
};
|
|
2862
3003
|
|
|
2863
3004
|
var inputStatesStyle = {
|
|
2864
3005
|
"default": {
|
|
2865
|
-
backgroundColor:
|
|
3006
|
+
backgroundColor: colorsLateOceanTheme.uiBackgroundLight,
|
|
3007
|
+
borderColor: colorsLateOceanTheme.separator,
|
|
3008
|
+
color: 'black'
|
|
3009
|
+
},
|
|
3010
|
+
pending: {
|
|
3011
|
+
backgroundColor: colorsLateOceanTheme.uiBackgroundLight,
|
|
3012
|
+
borderColor: colorsLateOceanTheme.separator,
|
|
3013
|
+
color: 'black'
|
|
3014
|
+
},
|
|
3015
|
+
valid: {
|
|
3016
|
+
backgroundColor: colorsLateOceanTheme.uiBackgroundLight,
|
|
2866
3017
|
borderColor: lateOceanColorPalette.black100,
|
|
2867
|
-
color: 'black'
|
|
2868
|
-
passwordButtonIconColor: 'black'
|
|
3018
|
+
color: 'black'
|
|
2869
3019
|
},
|
|
2870
3020
|
hover: {
|
|
2871
3021
|
borderColor: lateOceanColorPalette.black200,
|
|
2872
|
-
color: 'black'
|
|
2873
|
-
passwordButtonIconColor: 'black'
|
|
3022
|
+
color: 'black'
|
|
2874
3023
|
},
|
|
2875
3024
|
focus: {
|
|
2876
|
-
borderColor:
|
|
2877
|
-
color: 'black'
|
|
2878
|
-
passwordButtonIconColor: 'black'
|
|
3025
|
+
borderColor: colorsLateOceanTheme.primary,
|
|
3026
|
+
color: 'black'
|
|
2879
3027
|
},
|
|
2880
3028
|
disabled: {
|
|
2881
|
-
backgroundColor:
|
|
2882
|
-
borderColor:
|
|
2883
|
-
color: 'black-light'
|
|
2884
|
-
passwordButtonIconColor: 'black-light'
|
|
3029
|
+
backgroundColor: colorsLateOceanTheme.disabled,
|
|
3030
|
+
borderColor: colorsLateOceanTheme.separator,
|
|
3031
|
+
color: 'black-light'
|
|
2885
3032
|
},
|
|
2886
3033
|
invalid: {
|
|
2887
|
-
borderColor:
|
|
2888
|
-
color: 'black'
|
|
2889
|
-
passwordButtonIconColor: 'black'
|
|
3034
|
+
borderColor: colorsLateOceanTheme.danger,
|
|
3035
|
+
color: 'black'
|
|
2890
3036
|
}
|
|
2891
3037
|
};
|
|
2892
|
-
var
|
|
2893
|
-
|
|
2894
|
-
|
|
3038
|
+
var input = {
|
|
3039
|
+
color: {
|
|
3040
|
+
selection: colorsLateOceanTheme.primary,
|
|
3041
|
+
placeholder: typographyLateOceanTheme.colors['black-light']
|
|
3042
|
+
},
|
|
2895
3043
|
borderWidth: '2px',
|
|
2896
3044
|
borderRadius: '10px',
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
3045
|
+
icon: {
|
|
3046
|
+
size: 20
|
|
3047
|
+
},
|
|
3048
|
+
padding: {
|
|
3049
|
+
"default": '7px 16px',
|
|
3050
|
+
iOSSingleLine: '12px 16px'
|
|
3051
|
+
},
|
|
2903
3052
|
states: inputStatesStyle
|
|
2904
3053
|
};
|
|
2905
3054
|
|
|
3055
|
+
var inputFieldLateOceanTheme = {
|
|
3056
|
+
labelContainerPaddingBottom: 5,
|
|
3057
|
+
iconMarginLeft: 6
|
|
3058
|
+
};
|
|
3059
|
+
|
|
2906
3060
|
var radioLateOceanTheme = {
|
|
2907
3061
|
size: 18,
|
|
2908
3062
|
unchecked: {
|
|
@@ -2921,10 +3075,15 @@ var radioLateOceanTheme = {
|
|
|
2921
3075
|
}
|
|
2922
3076
|
};
|
|
2923
3077
|
|
|
2924
|
-
var
|
|
2925
|
-
|
|
3078
|
+
var textArea = {
|
|
3079
|
+
minHeight: 120
|
|
3080
|
+
};
|
|
3081
|
+
|
|
3082
|
+
var forms = {
|
|
3083
|
+
input: input,
|
|
2926
3084
|
radio: radioLateOceanTheme,
|
|
2927
|
-
inputField: inputFieldLateOceanTheme
|
|
3085
|
+
inputField: inputFieldLateOceanTheme,
|
|
3086
|
+
textArea: textArea
|
|
2928
3087
|
};
|
|
2929
3088
|
|
|
2930
3089
|
var fullScreenModalLateOceanTheme = {
|
|
@@ -2959,14 +3118,14 @@ var iconButton = {
|
|
|
2959
3118
|
},
|
|
2960
3119
|
disabled: {
|
|
2961
3120
|
scale: 1,
|
|
2962
|
-
backgroundColor:
|
|
2963
|
-
borderColor:
|
|
3121
|
+
backgroundColor: button.disabled.backgroundColor,
|
|
3122
|
+
borderColor: button.disabled.borderColor
|
|
2964
3123
|
},
|
|
2965
3124
|
"default": {
|
|
2966
|
-
pressedBackgroundColor:
|
|
3125
|
+
pressedBackgroundColor: button["default"].pressedBackgroundColor
|
|
2967
3126
|
},
|
|
2968
3127
|
white: {
|
|
2969
|
-
pressedBackgroundColor:
|
|
3128
|
+
pressedBackgroundColor: button.white.hoverBackgroundColor
|
|
2970
3129
|
}
|
|
2971
3130
|
};
|
|
2972
3131
|
|
|
@@ -3037,81 +3196,6 @@ var tooltip = {
|
|
|
3037
3196
|
floatingPadding: 8
|
|
3038
3197
|
};
|
|
3039
3198
|
|
|
3040
|
-
var calcLineHeight = function (fontSize, lineHeightMultiplier) {
|
|
3041
|
-
return Math.round(fontSize * lineHeightMultiplier);
|
|
3042
|
-
};
|
|
3043
|
-
var createTypographyTypeConfig = function (lineHeightMultiplier, baseAndSmallFontSize, mediumAndWideFontSize) {
|
|
3044
|
-
return {
|
|
3045
|
-
baseAndSmall: {
|
|
3046
|
-
fontSize: "".concat(baseAndSmallFontSize, "px"),
|
|
3047
|
-
lineHeight: "".concat(calcLineHeight(baseAndSmallFontSize, lineHeightMultiplier), "px")
|
|
3048
|
-
},
|
|
3049
|
-
mediumAndWide: {
|
|
3050
|
-
fontSize: "".concat(mediumAndWideFontSize, "px"),
|
|
3051
|
-
lineHeight: "".concat(calcLineHeight(mediumAndWideFontSize, lineHeightMultiplier), "px")
|
|
3052
|
-
}
|
|
3053
|
-
};
|
|
3054
|
-
};
|
|
3055
|
-
var typographyLateOceanTheme = {
|
|
3056
|
-
colors: {
|
|
3057
|
-
black: lateOceanColorPalette.black1000,
|
|
3058
|
-
'black-light': lateOceanColorPalette.black555,
|
|
3059
|
-
white: lateOceanColorPalette.white,
|
|
3060
|
-
'white-light': lateOceanColorPalette.white,
|
|
3061
|
-
primary: lateOceanColorPalette.lateOcean,
|
|
3062
|
-
'primary-light': lateOceanColorPalette.lateOceanLight1,
|
|
3063
|
-
accent: lateOceanColorPalette.warmEmbrace,
|
|
3064
|
-
success: lateOceanColorPalette.viride,
|
|
3065
|
-
danger: lateOceanColorPalette.englishVermillon
|
|
3066
|
-
},
|
|
3067
|
-
types: {
|
|
3068
|
-
headers: {
|
|
3069
|
-
fontFamily: {
|
|
3070
|
-
regular: Platform.OS === 'web' ? 'Moderat' : 'Moderat-Extended-Bold',
|
|
3071
|
-
bold: Platform.OS === 'web' ? 'Moderat' : 'Moderat-Extended-Bold'
|
|
3072
|
-
},
|
|
3073
|
-
fontWeight: 400,
|
|
3074
|
-
fontStyle: 'normal',
|
|
3075
|
-
configs: {
|
|
3076
|
-
// also known as xxlarge
|
|
3077
|
-
header1: createTypographyTypeConfig(1.3, 38, 62),
|
|
3078
|
-
// also known as xlarge
|
|
3079
|
-
header2: createTypographyTypeConfig(1.3, 32, 48),
|
|
3080
|
-
// also known as medium
|
|
3081
|
-
header3: createTypographyTypeConfig(1.3, 24, 36),
|
|
3082
|
-
// also known as xsmall
|
|
3083
|
-
header4: createTypographyTypeConfig(1.3, 18, 24),
|
|
3084
|
-
// also known as xxsmall
|
|
3085
|
-
header5: createTypographyTypeConfig(1.3, 18, 18)
|
|
3086
|
-
}
|
|
3087
|
-
},
|
|
3088
|
-
bodies: {
|
|
3089
|
-
fontFamily: {
|
|
3090
|
-
regular: Platform.OS === 'web' ? 'Noto Sans' : 'NotoSans',
|
|
3091
|
-
bold: Platform.OS === 'web' ? 'Noto Sans' : 'NotoSans-Bold'
|
|
3092
|
-
},
|
|
3093
|
-
fontWeight: {
|
|
3094
|
-
regular: 400,
|
|
3095
|
-
bold: 700
|
|
3096
|
-
},
|
|
3097
|
-
fontStyle: {
|
|
3098
|
-
regular: 'normal',
|
|
3099
|
-
bold: 'normal'
|
|
3100
|
-
},
|
|
3101
|
-
configs: {
|
|
3102
|
-
'body-large': createTypographyTypeConfig(1.6, 18, 24),
|
|
3103
|
-
'body-medium': createTypographyTypeConfig(1.6, 18, 18),
|
|
3104
|
-
body: createTypographyTypeConfig(1.6, 16, 16),
|
|
3105
|
-
'body-small': createTypographyTypeConfig(1.6, 14, 14),
|
|
3106
|
-
'body-xsmall': createTypographyTypeConfig(1.6, 12, 12)
|
|
3107
|
-
}
|
|
3108
|
-
}
|
|
3109
|
-
},
|
|
3110
|
-
link: {
|
|
3111
|
-
disabledColor: lateOceanColorPalette.black200
|
|
3112
|
-
}
|
|
3113
|
-
};
|
|
3114
|
-
|
|
3115
3199
|
var breakpoints = {
|
|
3116
3200
|
values: {
|
|
3117
3201
|
base: 0,
|
|
@@ -3142,10 +3226,10 @@ var theme = {
|
|
|
3142
3226
|
lateOcean: lateOceanColorPalette
|
|
3143
3227
|
},
|
|
3144
3228
|
avatar: avatar,
|
|
3145
|
-
button:
|
|
3229
|
+
button: button,
|
|
3146
3230
|
card: cardLateOceanTheme,
|
|
3147
|
-
feedbackMessage:
|
|
3148
|
-
forms:
|
|
3231
|
+
feedbackMessage: feedbackMessage,
|
|
3232
|
+
forms: forms,
|
|
3149
3233
|
typography: typographyLateOceanTheme,
|
|
3150
3234
|
tag: tagLateOceanTheme,
|
|
3151
3235
|
shadows: shadowsLateOceanTheme,
|
|
@@ -3288,7 +3372,7 @@ function TimePicker(_ref) {
|
|
|
3288
3372
|
isTimePickerModalVisible = _useTimePicker.isTimePickerModalVisible;
|
|
3289
3373
|
|
|
3290
3374
|
return /*#__PURE__*/jsxs(Container, {
|
|
3291
|
-
state: timePickerState === 'default' ? state : timePickerState,
|
|
3375
|
+
$state: timePickerState === 'default' ? state : timePickerState,
|
|
3292
3376
|
accessibilityRole: "button",
|
|
3293
3377
|
onPress: handleInputPress,
|
|
3294
3378
|
children: [/*#__PURE__*/jsx(Typography.Text, {
|
|
@@ -3318,25 +3402,6 @@ function TimePicker(_ref) {
|
|
|
3318
3402
|
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; }
|
|
3319
3403
|
|
|
3320
3404
|
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; }
|
|
3321
|
-
|
|
3322
|
-
var Arrow = function (props) {
|
|
3323
|
-
return /*#__PURE__*/jsx("svg", _objectSpread$2(_objectSpread$2({}, props), {}, {
|
|
3324
|
-
children: /*#__PURE__*/jsx("path", {
|
|
3325
|
-
fillRule: "evenodd",
|
|
3326
|
-
clipRule: "evenodd",
|
|
3327
|
-
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",
|
|
3328
|
-
fill: "currentColor"
|
|
3329
|
-
})
|
|
3330
|
-
}));
|
|
3331
|
-
};
|
|
3332
|
-
|
|
3333
|
-
Arrow.defaultProps = {
|
|
3334
|
-
width: "36",
|
|
3335
|
-
height: "8",
|
|
3336
|
-
viewBox: "0 0 36 9",
|
|
3337
|
-
fill: "none",
|
|
3338
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
3339
|
-
};
|
|
3340
3405
|
var StyledTooltipView = /*#__PURE__*/styled.View.withConfig({
|
|
3341
3406
|
displayName: "TooltipView__StyledTooltipView"
|
|
3342
3407
|
})(["align-items:center;"]);
|
|
@@ -3359,7 +3424,7 @@ var StyledTooltipContent = /*#__PURE__*/styled.View.withConfig({
|
|
|
3359
3424
|
function ArrowView(props) {
|
|
3360
3425
|
var theme = /*#__PURE__*/useTheme();
|
|
3361
3426
|
return /*#__PURE__*/jsx(View, _objectSpread$2(_objectSpread$2({}, props), {}, {
|
|
3362
|
-
children: /*#__PURE__*/jsx(
|
|
3427
|
+
children: /*#__PURE__*/jsx(TooltipArrowIcon, {
|
|
3363
3428
|
color: theme.kitt.tooltip.backgroundColor
|
|
3364
3429
|
})
|
|
3365
3430
|
}));
|
|
@@ -3705,5 +3770,5 @@ function MatchWindowSize(_ref) {
|
|
|
3705
3770
|
});
|
|
3706
3771
|
}
|
|
3707
3772
|
|
|
3708
|
-
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 };
|
|
3773
|
+
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 };
|
|
3709
3774
|
//# sourceMappingURL=index-browser-all.es.js.map
|