@ornikar/kitt-universal 3.9.0 → 4.2.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/package.json +3 -3
- 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
|
@@ -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';
|
|
@@ -51,7 +51,7 @@ function SpinningIcon(_ref) {
|
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
var IconContainer
|
|
54
|
+
var IconContainer = /*#__PURE__*/styled.View.withConfig({
|
|
55
55
|
displayName: "Icon__IconContainer"
|
|
56
56
|
})(["color:", ";width:", "px;height:", "px;align-self:", ";"], function (_ref) {
|
|
57
57
|
var color = _ref.color;
|
|
@@ -77,7 +77,7 @@ function Icon(_ref5) {
|
|
|
77
77
|
var clonedIcon = /*#__PURE__*/cloneElement(icon, {
|
|
78
78
|
color: color
|
|
79
79
|
});
|
|
80
|
-
return /*#__PURE__*/jsx(IconContainer
|
|
80
|
+
return /*#__PURE__*/jsx(IconContainer, {
|
|
81
81
|
align: align,
|
|
82
82
|
size: size,
|
|
83
83
|
color: color,
|
|
@@ -135,11 +135,11 @@ var KittBreakpointsMax = {
|
|
|
135
135
|
LARGE: KittBreakpoints.WIDE - 1
|
|
136
136
|
};
|
|
137
137
|
|
|
138
|
-
var _excluded$
|
|
138
|
+
var _excluded$e = ["accessibilityRole", "base", "small", "medium", "large", "variant", "color"];
|
|
139
139
|
|
|
140
|
-
function ownKeys$
|
|
140
|
+
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; }
|
|
141
141
|
|
|
142
|
-
function _objectSpread$
|
|
142
|
+
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; }
|
|
143
143
|
var IsHeaderTypographyContext = /*#__PURE__*/createContext(undefined);
|
|
144
144
|
var TypographyColorContext = /*#__PURE__*/createContext('black');
|
|
145
145
|
function useTypographyColor() {
|
|
@@ -215,7 +215,7 @@ function Typography(_ref4) {
|
|
|
215
215
|
large = _ref4.large,
|
|
216
216
|
variant = _ref4.variant,
|
|
217
217
|
color = _ref4.color,
|
|
218
|
-
otherProps = _objectWithoutProperties(_ref4, _excluded$
|
|
218
|
+
otherProps = _objectWithoutProperties(_ref4, _excluded$e);
|
|
219
219
|
|
|
220
220
|
var isHeaderTypographyInContext = useContext(IsHeaderTypographyContext);
|
|
221
221
|
var hasTypographyAncestor = isHeaderTypographyInContext !== undefined;
|
|
@@ -232,14 +232,14 @@ function Typography(_ref4) {
|
|
|
232
232
|
var nonNullableVariant = variant !== null && variant !== void 0 ? variant : isHeader ? 'bold' : 'regular';
|
|
233
233
|
var content = baseOrDefaultToBody ? /*#__PURE__*/jsx(IsHeaderTypographyContext.Provider, {
|
|
234
234
|
value: isHeader,
|
|
235
|
-
children: /*#__PURE__*/jsx(StyledTypography, _objectSpread$
|
|
235
|
+
children: /*#__PURE__*/jsx(StyledTypography, _objectSpread$j({
|
|
236
236
|
$color: colorOrDefaultToBlack,
|
|
237
237
|
$isHeader: isHeader,
|
|
238
238
|
$typeForCurrentWindowSize: typeForCurrentWindowSize,
|
|
239
239
|
$variant: nonNullableVariant,
|
|
240
240
|
accessibilityRole: accessibilityRole || undefined
|
|
241
241
|
}, otherProps))
|
|
242
|
-
}) : /*#__PURE__*/jsx(StyledTypography, _objectSpread$
|
|
242
|
+
}) : /*#__PURE__*/jsx(StyledTypography, _objectSpread$j({
|
|
243
243
|
$color: colorOrDefaultToBlack,
|
|
244
244
|
$isHeader: isHeader,
|
|
245
245
|
$variant: nonNullableVariant,
|
|
@@ -252,13 +252,13 @@ function Typography(_ref4) {
|
|
|
252
252
|
}
|
|
253
253
|
|
|
254
254
|
function TypographyText(props) {
|
|
255
|
-
return /*#__PURE__*/jsx(Typography, _objectSpread$
|
|
255
|
+
return /*#__PURE__*/jsx(Typography, _objectSpread$j({
|
|
256
256
|
accessibilityRole: null
|
|
257
257
|
}, props));
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
function TypographyParagraph(props) {
|
|
261
|
-
return /*#__PURE__*/jsx(Typography, _objectSpread$
|
|
261
|
+
return /*#__PURE__*/jsx(Typography, _objectSpread$j({
|
|
262
262
|
accessibilityRole: "paragraph"
|
|
263
263
|
}, props));
|
|
264
264
|
}
|
|
@@ -266,7 +266,7 @@ function TypographyParagraph(props) {
|
|
|
266
266
|
var createHeading = function (level, defaultBase) {
|
|
267
267
|
// https://github.com/necolas/react-native-web/issues/401
|
|
268
268
|
function TypographyHeading(props) {
|
|
269
|
-
return /*#__PURE__*/jsx(Typography, _objectSpread$
|
|
269
|
+
return /*#__PURE__*/jsx(Typography, _objectSpread$j(_objectSpread$j({
|
|
270
270
|
accessibilityRole: "header",
|
|
271
271
|
base: defaultBase
|
|
272
272
|
}, props), {}, {
|
|
@@ -302,11 +302,11 @@ Typography.h4 = createHeading(4, 'header4');
|
|
|
302
302
|
|
|
303
303
|
Typography.h5 = createHeading(5, 'header5');
|
|
304
304
|
|
|
305
|
-
var _excluded$
|
|
305
|
+
var _excluded$d = ["size", "base", "round", "light"];
|
|
306
306
|
|
|
307
|
-
function ownKeys$
|
|
307
|
+
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; }
|
|
308
308
|
|
|
309
|
-
function _objectSpread$
|
|
309
|
+
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; }
|
|
310
310
|
|
|
311
311
|
var getInitials = function (firstname, lastname) {
|
|
312
312
|
return "".concat(firstname[0]).concat(lastname[0]).toUpperCase();
|
|
@@ -377,13 +377,13 @@ function Avatar(_ref6) {
|
|
|
377
377
|
base = _ref6$base === void 0 ? 'body-small' : _ref6$base,
|
|
378
378
|
round = _ref6.round,
|
|
379
379
|
light = _ref6.light,
|
|
380
|
-
props = _objectWithoutProperties(_ref6, _excluded$
|
|
380
|
+
props = _objectWithoutProperties(_ref6, _excluded$d);
|
|
381
381
|
|
|
382
382
|
return /*#__PURE__*/jsx(StyledAvatarView, {
|
|
383
383
|
$size: size,
|
|
384
384
|
$isRound: round,
|
|
385
385
|
$isLight: light,
|
|
386
|
-
children: /*#__PURE__*/jsx(AvatarContent, _objectSpread$
|
|
386
|
+
children: /*#__PURE__*/jsx(AvatarContent, _objectSpread$i({
|
|
387
387
|
size: size,
|
|
388
388
|
base: base,
|
|
389
389
|
isLight: light
|
|
@@ -525,26 +525,26 @@ var BaseStyledButtonPressable = /*#__PURE__*/styled.View.withConfig({
|
|
|
525
525
|
return defaultPadding;
|
|
526
526
|
});
|
|
527
527
|
|
|
528
|
-
var _excluded$
|
|
528
|
+
var _excluded$c = ["color"],
|
|
529
529
|
_excluded2$2 = ["color"];
|
|
530
530
|
|
|
531
|
-
function ownKeys$
|
|
531
|
+
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; }
|
|
532
532
|
|
|
533
|
-
function _objectSpread$
|
|
533
|
+
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; }
|
|
534
534
|
|
|
535
535
|
function TypographyIconSpecifiedColor(_ref) {
|
|
536
536
|
var color = _ref.color,
|
|
537
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
537
|
+
props = _objectWithoutProperties(_ref, _excluded$c);
|
|
538
538
|
|
|
539
539
|
var theme = /*#__PURE__*/useTheme();
|
|
540
|
-
return /*#__PURE__*/jsx(Icon, _objectSpread$
|
|
540
|
+
return /*#__PURE__*/jsx(Icon, _objectSpread$h(_objectSpread$h({}, props), {}, {
|
|
541
541
|
color: color === 'inherit' ? 'inherit' : theme.kitt.typography.colors[color]
|
|
542
542
|
}));
|
|
543
543
|
}
|
|
544
544
|
|
|
545
545
|
function TypographyIconInheritColor(props) {
|
|
546
546
|
var color = useTypographyColor();
|
|
547
|
-
return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread$
|
|
547
|
+
return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread$h({
|
|
548
548
|
color: color
|
|
549
549
|
}, props));
|
|
550
550
|
}
|
|
@@ -554,23 +554,23 @@ function TypographyIcon(_ref2) {
|
|
|
554
554
|
props = _objectWithoutProperties(_ref2, _excluded2$2);
|
|
555
555
|
|
|
556
556
|
if (color) {
|
|
557
|
-
return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread$
|
|
557
|
+
return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread$h({
|
|
558
558
|
color: color
|
|
559
559
|
}, props));
|
|
560
560
|
}
|
|
561
561
|
|
|
562
|
-
return /*#__PURE__*/jsx(TypographyIconInheritColor, _objectSpread$
|
|
562
|
+
return /*#__PURE__*/jsx(TypographyIconInheritColor, _objectSpread$h({}, props));
|
|
563
563
|
}
|
|
564
564
|
|
|
565
565
|
function isSubtle(type) {
|
|
566
566
|
return type.startsWith('subtle');
|
|
567
567
|
}
|
|
568
568
|
|
|
569
|
-
var _excluded$
|
|
569
|
+
var _excluded$b = ["type", "isDisabled", "$isStretch", "icon", "children"];
|
|
570
570
|
|
|
571
|
-
function ownKeys$
|
|
571
|
+
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; }
|
|
572
572
|
|
|
573
|
-
function _objectSpread$
|
|
573
|
+
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; }
|
|
574
574
|
|
|
575
575
|
var getTextColorByType = function (type) {
|
|
576
576
|
switch (type) {
|
|
@@ -609,7 +609,7 @@ var StyledButtonText = /*#__PURE__*/styled(Typography.Text).withConfig({
|
|
|
609
609
|
if (Platform.OS !== 'web' || $isDisabled || !isSubtle($type)) return undefined;
|
|
610
610
|
return 'color: inherit';
|
|
611
611
|
});
|
|
612
|
-
var StyledIconContainer = /*#__PURE__*/styled.View.withConfig({
|
|
612
|
+
var StyledIconContainer$1 = /*#__PURE__*/styled.View.withConfig({
|
|
613
613
|
displayName: "ButtonContent__StyledIconContainer"
|
|
614
614
|
})(["", ""], function (_ref2) {
|
|
615
615
|
var theme = _ref2.theme,
|
|
@@ -629,7 +629,7 @@ function ButtonIcon(_ref3) {
|
|
|
629
629
|
spin = _ref3.spin,
|
|
630
630
|
iconPosition = _ref3.iconPosition,
|
|
631
631
|
testID = _ref3.testID;
|
|
632
|
-
return /*#__PURE__*/jsx(StyledIconContainer, {
|
|
632
|
+
return /*#__PURE__*/jsx(StyledIconContainer$1, {
|
|
633
633
|
$iconPosition: iconPosition,
|
|
634
634
|
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
635
635
|
icon: icon,
|
|
@@ -676,7 +676,7 @@ function ButtonContentChildren(_ref4) {
|
|
|
676
676
|
color: isWebSubtle ? 'inherit' : color
|
|
677
677
|
};
|
|
678
678
|
return /*#__PURE__*/jsxs(StyledChildrenWithIcon, {
|
|
679
|
-
children: [icon && iconPosition === 'left' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
679
|
+
children: [icon && iconPosition === 'left' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread$g(_objectSpread$g({}, buttonIconSharedProps), {}, {
|
|
680
680
|
testID: "button-left-icon",
|
|
681
681
|
icon: icon
|
|
682
682
|
})) : null, /*#__PURE__*/jsx(StyledButtonText, {
|
|
@@ -687,7 +687,7 @@ function ButtonContentChildren(_ref4) {
|
|
|
687
687
|
,
|
|
688
688
|
color: isWebSubtle ? undefined : color,
|
|
689
689
|
children: children
|
|
690
|
-
}), icon && iconPosition === 'right' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
690
|
+
}), icon && iconPosition === 'right' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread$g(_objectSpread$g({}, buttonIconSharedProps), {}, {
|
|
691
691
|
icon: icon
|
|
692
692
|
})) : null]
|
|
693
693
|
});
|
|
@@ -713,14 +713,14 @@ function ButtonContent(_ref7) {
|
|
|
713
713
|
$isStretch = _ref7.$isStretch,
|
|
714
714
|
icon = _ref7.icon,
|
|
715
715
|
children = _ref7.children,
|
|
716
|
-
props = _objectWithoutProperties(_ref7, _excluded$
|
|
716
|
+
props = _objectWithoutProperties(_ref7, _excluded$b);
|
|
717
717
|
|
|
718
718
|
var color = isDisabled ? 'black-light' : getTextColorByType(type);
|
|
719
719
|
return /*#__PURE__*/jsx(ButtonContentContainer, {
|
|
720
720
|
$isSubtle: isSubtle(type),
|
|
721
721
|
$isStretch: $isStretch,
|
|
722
722
|
$isIconOnly: Boolean(!children && icon),
|
|
723
|
-
children: /*#__PURE__*/jsx(ButtonContentChildren, _objectSpread$
|
|
723
|
+
children: /*#__PURE__*/jsx(ButtonContentChildren, _objectSpread$g(_objectSpread$g({
|
|
724
724
|
icon: icon,
|
|
725
725
|
type: type,
|
|
726
726
|
isDisabled: isDisabled,
|
|
@@ -789,7 +789,7 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
789
789
|
});
|
|
790
790
|
});
|
|
791
791
|
|
|
792
|
-
var Container$
|
|
792
|
+
var Container$5 = /*#__PURE__*/styled.View.withConfig({
|
|
793
793
|
displayName: "Card__Container"
|
|
794
794
|
})(["background-color:", ";padding:", ";border-radius:", ";border-width:", ";border-color:", ";"], function (_ref) {
|
|
795
795
|
var theme = _ref.theme,
|
|
@@ -812,7 +812,7 @@ var Container$7 = /*#__PURE__*/styled.View.withConfig({
|
|
|
812
812
|
function Card(_ref6) {
|
|
813
813
|
var children = _ref6.children,
|
|
814
814
|
type = _ref6.type;
|
|
815
|
-
return /*#__PURE__*/jsx(Container$
|
|
815
|
+
return /*#__PURE__*/jsx(Container$5, {
|
|
816
816
|
type: type,
|
|
817
817
|
children: children
|
|
818
818
|
});
|
|
@@ -857,20 +857,20 @@ var defaultOpenLinkBehavior = {
|
|
|
857
857
|
web: 'targetBlank'
|
|
858
858
|
};
|
|
859
859
|
|
|
860
|
-
var _excluded$
|
|
860
|
+
var _excluded$a = ["as", "href", "openLinkBehavior", "onPress"];
|
|
861
861
|
|
|
862
|
-
function ownKeys$
|
|
862
|
+
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; }
|
|
863
863
|
|
|
864
|
-
function _objectSpread$
|
|
864
|
+
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; }
|
|
865
865
|
function ExternalLink(_ref) {
|
|
866
866
|
var Component = _ref.as,
|
|
867
867
|
href = _ref.href,
|
|
868
868
|
_ref$openLinkBehavior = _ref.openLinkBehavior,
|
|
869
869
|
openLinkBehavior = _ref$openLinkBehavior === void 0 ? defaultOpenLinkBehavior : _ref$openLinkBehavior,
|
|
870
870
|
onPress = _ref.onPress,
|
|
871
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
871
|
+
rest = _objectWithoutProperties(_ref, _excluded$a);
|
|
872
872
|
|
|
873
|
-
return /*#__PURE__*/jsx(Component, _objectSpread$
|
|
873
|
+
return /*#__PURE__*/jsx(Component, _objectSpread$f(_objectSpread$f({}, rest), {}, {
|
|
874
874
|
onPress: function handleOnPress() {
|
|
875
875
|
if (onPress) onPress();
|
|
876
876
|
if (!href) return;
|
|
@@ -904,6 +904,7 @@ var getColorFromState = function (state) {
|
|
|
904
904
|
case 'invalid':
|
|
905
905
|
return 'danger';
|
|
906
906
|
|
|
907
|
+
case 'valid':
|
|
907
908
|
default:
|
|
908
909
|
return 'black-light';
|
|
909
910
|
}
|
|
@@ -960,43 +961,47 @@ function InputField(_ref4) {
|
|
|
960
961
|
});
|
|
961
962
|
}
|
|
962
963
|
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
966
|
-
isFocused = _useState2[0],
|
|
967
|
-
setIsFocused = _useState2[1];
|
|
964
|
+
function getIconColor(state, disabled) {
|
|
965
|
+
if (disabled) return 'black-light';
|
|
968
966
|
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
setIsPasswordVisible = _useState4[1];
|
|
967
|
+
switch (state) {
|
|
968
|
+
case 'invalid':
|
|
969
|
+
return 'danger';
|
|
973
970
|
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
handleInputFocus: function handleInputFocus() {
|
|
977
|
-
return setIsFocused(true);
|
|
978
|
-
},
|
|
979
|
-
handleInputBlur: function handleInputBlur() {
|
|
980
|
-
return setIsFocused(false);
|
|
981
|
-
},
|
|
982
|
-
togglePasswordVisibility: function togglePasswordVisibility() {
|
|
983
|
-
return setIsPasswordVisible(function (isVisible) {
|
|
984
|
-
return !isVisible;
|
|
985
|
-
});
|
|
986
|
-
},
|
|
987
|
-
isPasswordVisible: isPasswordVisible
|
|
988
|
-
};
|
|
989
|
-
};
|
|
971
|
+
case 'valid':
|
|
972
|
+
return 'success';
|
|
990
973
|
|
|
991
|
-
|
|
974
|
+
default:
|
|
975
|
+
return undefined;
|
|
976
|
+
}
|
|
977
|
+
}
|
|
992
978
|
|
|
993
|
-
function
|
|
979
|
+
function InputIcon(_ref) {
|
|
980
|
+
var icon = _ref.icon,
|
|
981
|
+
state = _ref.state,
|
|
982
|
+
disabled = _ref.disabled;
|
|
983
|
+
var theme = /*#__PURE__*/useTheme();
|
|
984
|
+
var color = getIconColor(state, disabled);
|
|
985
|
+
return /*#__PURE__*/jsx(TypographyIcon, {
|
|
986
|
+
color: color,
|
|
987
|
+
icon: icon,
|
|
988
|
+
size: theme.kitt.forms.input.icon.size
|
|
989
|
+
});
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
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; }
|
|
993
|
+
|
|
994
|
+
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; }
|
|
995
|
+
function InputPressable(_ref) {
|
|
996
|
+
var props = _extends({}, _ref);
|
|
997
|
+
|
|
998
|
+
return /*#__PURE__*/jsx(Pressable, _objectSpread$e({}, props));
|
|
999
|
+
}
|
|
994
1000
|
|
|
995
|
-
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; }
|
|
996
1001
|
var styledTextInputMixin = /*#__PURE__*/css(["background-color:", ";border-width:", ";border-radius:", ";border-color:", ";font-size:", ";color:", ";font-family:", ";"], function (_ref) {
|
|
997
1002
|
var theme = _ref.theme,
|
|
998
|
-
state = _ref
|
|
999
|
-
return state === 'disabled' ? theme.kitt.forms.input.states.disabled.backgroundColor : theme.kitt.forms.input.states["default"].backgroundColor;
|
|
1003
|
+
$state = _ref.$state;
|
|
1004
|
+
return $state === 'disabled' ? theme.kitt.forms.input.states.disabled.backgroundColor : theme.kitt.forms.input.states["default"].backgroundColor;
|
|
1000
1005
|
}, function (_ref2) {
|
|
1001
1006
|
var theme = _ref2.theme;
|
|
1002
1007
|
return theme.kitt.forms.input.borderWidth;
|
|
@@ -1005,147 +1010,158 @@ var styledTextInputMixin = /*#__PURE__*/css(["background-color:", ";border-width
|
|
|
1005
1010
|
return theme.kitt.forms.input.borderRadius;
|
|
1006
1011
|
}, function (_ref4) {
|
|
1007
1012
|
var theme = _ref4.theme,
|
|
1008
|
-
state = _ref4
|
|
1009
|
-
return theme.kitt.forms.input.states[state].borderColor;
|
|
1013
|
+
$state = _ref4.$state;
|
|
1014
|
+
return theme.kitt.forms.input.states[$state].borderColor;
|
|
1010
1015
|
}, function (_ref5) {
|
|
1011
1016
|
var theme = _ref5.theme;
|
|
1012
1017
|
var typeConfigKey = getTypographyTypeConfigKey(theme);
|
|
1013
1018
|
return theme.kitt.typography.types.bodies.configs.body[typeConfigKey].fontSize;
|
|
1014
1019
|
}, function (_ref6) {
|
|
1015
1020
|
var theme = _ref6.theme,
|
|
1016
|
-
state = _ref6
|
|
1017
|
-
return theme.kitt.typography.colors[theme.kitt.forms.input.states[state].color];
|
|
1021
|
+
$state = _ref6.$state;
|
|
1022
|
+
return theme.kitt.typography.colors[theme.kitt.forms.input.states[$state].color];
|
|
1018
1023
|
}, function (_ref7) {
|
|
1019
1024
|
var theme = _ref7.theme;
|
|
1020
1025
|
return theme.kitt.typography.types.bodies.fontFamily.regular;
|
|
1021
1026
|
});
|
|
1022
|
-
var Input = /*#__PURE__*/styled(TextInput).withConfig({
|
|
1023
|
-
displayName: "InputText__Input"
|
|
1024
|
-
})(["", " padding:", ";line-height:", ";min-height:", "px;"], styledTextInputMixin, function (_ref8) {
|
|
1025
|
-
var theme = _ref8.theme,
|
|
1026
|
-
multiline = _ref8.multiline;
|
|
1027
|
-
return !multiline && Platform.OS === 'ios' ? theme.kitt.forms.input.paddingSingleLineIOS : theme.kitt.forms.input.padding;
|
|
1028
|
-
}, function (_ref9) {
|
|
1029
|
-
var theme = _ref9.theme,
|
|
1030
|
-
multiline = _ref9.multiline;
|
|
1031
|
-
if (!multiline && Platform.OS === 'ios') return 0;
|
|
1032
|
-
var typeConfigKey = getTypographyTypeConfigKey(theme);
|
|
1033
|
-
return theme.kitt.typography.types.bodies.configs.body[typeConfigKey].lineHeight;
|
|
1034
|
-
}, function (_ref10) {
|
|
1035
|
-
var minHeight = _ref10.minHeight;
|
|
1036
|
-
return minHeight;
|
|
1037
|
-
});
|
|
1038
|
-
var Container$6 = /*#__PURE__*/styled.View.withConfig({
|
|
1039
|
-
displayName: "InputText__Container"
|
|
1040
|
-
})(["margin-top:", ";margin-bottom:", ";"], function (_ref11) {
|
|
1041
|
-
var theme = _ref11.theme;
|
|
1042
|
-
return theme.kitt.forms.input.marginTop;
|
|
1043
|
-
}, function (_ref12) {
|
|
1044
|
-
var theme = _ref12.theme;
|
|
1045
|
-
return theme.kitt.forms.input.marginBottom;
|
|
1046
|
-
});
|
|
1047
|
-
var PasswordButtonContainer = /*#__PURE__*/styled.Pressable.withConfig({
|
|
1048
|
-
displayName: "InputText__PasswordButtonContainer"
|
|
1049
|
-
})(["position:absolute;right:0;top:0;bottom:0;justify-content:center;padding:", "px;"], function (_ref13) {
|
|
1050
|
-
var theme = _ref13.theme;
|
|
1051
|
-
return theme.kitt.forms.input.passwordButtonIconSize / 2;
|
|
1052
|
-
});
|
|
1053
1027
|
|
|
1054
|
-
|
|
1055
|
-
var
|
|
1056
|
-
|
|
1057
|
-
formState =
|
|
1028
|
+
function getInputUIState(_ref) {
|
|
1029
|
+
var isFocused = _ref.isFocused,
|
|
1030
|
+
isDisabled = _ref.isDisabled,
|
|
1031
|
+
formState = _ref.formState;
|
|
1058
1032
|
if (isDisabled) return 'disabled';
|
|
1059
1033
|
if (isFocused) return 'focus';
|
|
1060
1034
|
if (formState === 'invalid') return 'invalid';
|
|
1061
1035
|
return 'default';
|
|
1062
|
-
}
|
|
1036
|
+
}
|
|
1063
1037
|
|
|
1064
|
-
var
|
|
1065
|
-
|
|
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
|
-
|
|
1038
|
+
var _excluded$9 = ["id", "right", "minHeight", "state", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoCompleteType", "keyboardType", "onFocus", "onBlur"];
|
|
1039
|
+
|
|
1040
|
+
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; }
|
|
1041
|
+
|
|
1042
|
+
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; }
|
|
1043
|
+
var StyledTextInput = /*#__PURE__*/styled(TextInput).withConfig({
|
|
1044
|
+
displayName: "InputText__StyledTextInput"
|
|
1045
|
+
})(["", " padding:", ";line-height:", ";min-height:", "px;"], styledTextInputMixin, function (_ref) {
|
|
1046
|
+
var theme = _ref.theme,
|
|
1047
|
+
multiline = _ref.multiline;
|
|
1048
|
+
|
|
1049
|
+
if (!multiline && Platform.OS === 'ios') {
|
|
1050
|
+
return theme.kitt.forms.input.padding.iOSSingleLine;
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
return theme.kitt.forms.input.padding["default"];
|
|
1054
|
+
}, function (_ref2) {
|
|
1055
|
+
var theme = _ref2.theme,
|
|
1056
|
+
multiline = _ref2.multiline;
|
|
1057
|
+
if (!multiline && Platform.OS === 'ios') return 0;
|
|
1058
|
+
var typeConfigKey = getTypographyTypeConfigKey(theme);
|
|
1059
|
+
return theme.kitt.typography.types.bodies.configs.body[typeConfigKey].lineHeight;
|
|
1060
|
+
}, function (_ref3) {
|
|
1061
|
+
var $minHeight = _ref3.$minHeight;
|
|
1062
|
+
return $minHeight;
|
|
1063
|
+
});
|
|
1064
|
+
var InputTextContainer = /*#__PURE__*/styled.View.withConfig({
|
|
1065
|
+
displayName: "InputText__InputTextContainer"
|
|
1066
|
+
})(["position:relative;"]);
|
|
1067
|
+
var RightInputContainer = /*#__PURE__*/styled.View.withConfig({
|
|
1068
|
+
displayName: "InputText__RightInputContainer"
|
|
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);
|
|
1107
1090
|
|
|
1108
1091
|
var theme = /*#__PURE__*/useTheme();
|
|
1109
|
-
|
|
1092
|
+
|
|
1093
|
+
var _useState = useState(false),
|
|
1094
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
1095
|
+
isFocused = _useState2[0],
|
|
1096
|
+
setIsFocused = _useState2[1];
|
|
1097
|
+
|
|
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$d(_objectSpread$d({
|
|
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$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; }
|
|
1134
|
+
|
|
1135
|
+
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; }
|
|
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$c(_objectSpread$c({}, 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;
|
|
@@ -1211,7 +1227,7 @@ var SelectedInnerRadio = /*#__PURE__*/styled.View.withConfig({
|
|
|
1211
1227
|
var theme = _ref14.theme;
|
|
1212
1228
|
return theme.kitt.forms.radio.checked.innerSize / 2;
|
|
1213
1229
|
});
|
|
1214
|
-
var Container$
|
|
1230
|
+
var Container$4 = /*#__PURE__*/styled.Pressable.withConfig({
|
|
1215
1231
|
displayName: "Radio__Container"
|
|
1216
1232
|
})(["flex-direction:row;align-items:center;"]);
|
|
1217
1233
|
var Text = /*#__PURE__*/styled(Typography.Text).withConfig({
|
|
@@ -1228,7 +1244,7 @@ function Radio(_ref16) {
|
|
|
1228
1244
|
_ref16$disabled = _ref16.disabled,
|
|
1229
1245
|
disabled = _ref16$disabled === void 0 ? false : _ref16$disabled,
|
|
1230
1246
|
children = _ref16.children;
|
|
1231
|
-
return /*#__PURE__*/jsxs(Container$
|
|
1247
|
+
return /*#__PURE__*/jsxs(Container$4, {
|
|
1232
1248
|
nativeID: id,
|
|
1233
1249
|
disabled: disabled,
|
|
1234
1250
|
accessibilityRole: "radio",
|
|
@@ -1256,13 +1272,11 @@ function TextArea(_ref) {
|
|
|
1256
1272
|
var props = _extends({}, _ref);
|
|
1257
1273
|
|
|
1258
1274
|
var theme = /*#__PURE__*/useTheme();
|
|
1259
|
-
return /*#__PURE__*/jsx(InputText, _objectSpread$b(
|
|
1275
|
+
return /*#__PURE__*/jsx(InputText, _objectSpread$b({
|
|
1260
1276
|
multiline: true,
|
|
1261
|
-
textAlignVertical: "top"
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
minHeight: theme.kitt.forms.input.textAreaMinHeight
|
|
1265
|
-
}));
|
|
1277
|
+
textAlignVertical: "top",
|
|
1278
|
+
minHeight: theme.kitt.forms.textArea.minHeight
|
|
1279
|
+
}, props));
|
|
1266
1280
|
}
|
|
1267
1281
|
|
|
1268
1282
|
var Body = /*#__PURE__*/styled.View.withConfig({
|
|
@@ -1408,7 +1422,7 @@ function FullScreenModalHeader(_ref6) {
|
|
|
1408
1422
|
});
|
|
1409
1423
|
}
|
|
1410
1424
|
|
|
1411
|
-
var Container$
|
|
1425
|
+
var Container$3 = /*#__PURE__*/styled.View.withConfig({
|
|
1412
1426
|
displayName: "FullScreenModal__Container"
|
|
1413
1427
|
})(["flex:1;background-color:", ";"], function (_ref) {
|
|
1414
1428
|
var theme = _ref.theme;
|
|
@@ -1416,7 +1430,7 @@ var Container$4 = /*#__PURE__*/styled.View.withConfig({
|
|
|
1416
1430
|
});
|
|
1417
1431
|
function FullScreenModal(_ref2) {
|
|
1418
1432
|
var children = _ref2.children;
|
|
1419
|
-
return /*#__PURE__*/jsx(Container$
|
|
1433
|
+
return /*#__PURE__*/jsx(Container$3, {
|
|
1420
1434
|
children: children
|
|
1421
1435
|
});
|
|
1422
1436
|
}
|
|
@@ -1516,6 +1530,10 @@ function PressableAnimatedContainer(_ref5) {
|
|
|
1516
1530
|
var disabled = _ref5.disabled,
|
|
1517
1531
|
_ref5$color = _ref5.color,
|
|
1518
1532
|
color = _ref5$color === void 0 ? 'black' : _ref5$color,
|
|
1533
|
+
testID = _ref5.testID,
|
|
1534
|
+
_ref5$accessibilityRo = _ref5.accessibilityRole,
|
|
1535
|
+
accessibilityRole = _ref5$accessibilityRo === void 0 ? 'button' : _ref5$accessibilityRo,
|
|
1536
|
+
accessibilityLabel = _ref5.accessibilityLabel,
|
|
1519
1537
|
children = _ref5.children,
|
|
1520
1538
|
onPress = _ref5.onPress;
|
|
1521
1539
|
var theme = /*#__PURE__*/useTheme();
|
|
@@ -1533,7 +1551,7 @@ function PressableAnimatedContainer(_ref5) {
|
|
|
1533
1551
|
};
|
|
1534
1552
|
_f.asString = "function _f(){const{withSpring,pressed}=jsThis._closure;{return{opacity:withSpring(pressed.value?1:0)};}}";
|
|
1535
1553
|
_f.__workletHash = 10645190329247;
|
|
1536
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/IconButton/PressableAnimatedContainer.tsx (
|
|
1554
|
+
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/IconButton/PressableAnimatedContainer.tsx (60:41)";
|
|
1537
1555
|
_f.__optimalization = 2;
|
|
1538
1556
|
|
|
1539
1557
|
global.__reanimatedWorkletInit(_f);
|
|
@@ -1567,7 +1585,7 @@ function PressableAnimatedContainer(_ref5) {
|
|
|
1567
1585
|
};
|
|
1568
1586
|
_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)}]};}}";
|
|
1569
1587
|
_f.__workletHash = 13861998831411;
|
|
1570
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/IconButton/PressableAnimatedContainer.tsx (
|
|
1588
|
+
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/IconButton/PressableAnimatedContainer.tsx (66:39)";
|
|
1571
1589
|
_f.__optimalization = 2;
|
|
1572
1590
|
|
|
1573
1591
|
global.__reanimatedWorkletInit(_f);
|
|
@@ -1575,9 +1593,11 @@ function PressableAnimatedContainer(_ref5) {
|
|
|
1575
1593
|
return _f;
|
|
1576
1594
|
}());
|
|
1577
1595
|
return /*#__PURE__*/jsx(PressableIconButton, {
|
|
1578
|
-
accessibilityRole:
|
|
1596
|
+
accessibilityRole: accessibilityRole,
|
|
1579
1597
|
disabled: disabled,
|
|
1580
1598
|
color: color,
|
|
1599
|
+
testID: testID,
|
|
1600
|
+
accessibilityLabel: accessibilityLabel,
|
|
1581
1601
|
onPress: onPress,
|
|
1582
1602
|
onPressIn: function onPressIn() {
|
|
1583
1603
|
pressed.value = true;
|
|
@@ -1639,10 +1659,16 @@ function IconButton(_ref7) {
|
|
|
1639
1659
|
var icon = _ref7.icon,
|
|
1640
1660
|
color = _ref7.color,
|
|
1641
1661
|
disabled = _ref7.disabled,
|
|
1662
|
+
testID = _ref7.testID,
|
|
1663
|
+
accessibilityLabel = _ref7.accessibilityLabel,
|
|
1664
|
+
accessibilityRole = _ref7.accessibilityRole,
|
|
1642
1665
|
onPress = _ref7.onPress;
|
|
1643
1666
|
return /*#__PURE__*/jsx(PressableAnimatedContainer, {
|
|
1644
1667
|
color: color,
|
|
1645
1668
|
disabled: disabled,
|
|
1669
|
+
testID: testID,
|
|
1670
|
+
accessibilityLabel: accessibilityLabel,
|
|
1671
|
+
accessibilityRole: accessibilityRole,
|
|
1646
1672
|
onPress: onPress,
|
|
1647
1673
|
children: /*#__PURE__*/jsx(IconButtonContent, {
|
|
1648
1674
|
disabled: disabled,
|
|
@@ -1818,55 +1844,32 @@ function LargeLoader(_ref) {
|
|
|
1818
1844
|
});
|
|
1819
1845
|
}
|
|
1820
1846
|
|
|
1821
|
-
|
|
1822
|
-
var
|
|
1823
|
-
|
|
1824
|
-
displayName: "Message__Container"
|
|
1825
|
-
})(["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) {
|
|
1826
|
-
var theme = _ref.theme,
|
|
1827
|
-
noRadius = _ref.noRadius;
|
|
1828
|
-
return noRadius ? 0 : theme.kitt.spacing * 5;
|
|
1829
|
-
}, function (_ref2) {
|
|
1830
|
-
var theme = _ref2.theme,
|
|
1831
|
-
type = _ref2.type;
|
|
1832
|
-
return theme.kitt.feedbackMessage.backgroundColors[type];
|
|
1833
|
-
}, function (_ref3) {
|
|
1834
|
-
var theme = _ref3.theme;
|
|
1835
|
-
return theme.kitt.spacing * 4;
|
|
1836
|
-
}, function (_ref4) {
|
|
1837
|
-
var theme = _ref4.theme;
|
|
1838
|
-
return theme.kitt.spacing * 4;
|
|
1839
|
-
}, function (_ref5) {
|
|
1840
|
-
var theme = _ref5.theme;
|
|
1841
|
-
return theme.kitt.spacing * 4;
|
|
1842
|
-
}, function (_ref6) {
|
|
1843
|
-
var _insets$top;
|
|
1847
|
+
function IconContent(_ref) {
|
|
1848
|
+
var type = _ref.type,
|
|
1849
|
+
color = _ref.color;
|
|
1844
1850
|
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
}
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
}
|
|
1867
|
-
var centeredText = _ref10.centeredText;
|
|
1868
|
-
return centeredText ? 'center' : 'left';
|
|
1869
|
-
});
|
|
1851
|
+
switch (type) {
|
|
1852
|
+
case 'warning':
|
|
1853
|
+
return /*#__PURE__*/jsx(AlertCircleIcon, {
|
|
1854
|
+
color: color
|
|
1855
|
+
});
|
|
1856
|
+
|
|
1857
|
+
case 'success':
|
|
1858
|
+
return /*#__PURE__*/jsx(CheckIcon, {
|
|
1859
|
+
color: color
|
|
1860
|
+
});
|
|
1861
|
+
|
|
1862
|
+
case 'danger':
|
|
1863
|
+
return /*#__PURE__*/jsx(AlertTriangleIcon, {
|
|
1864
|
+
color: color
|
|
1865
|
+
});
|
|
1866
|
+
|
|
1867
|
+
default:
|
|
1868
|
+
return /*#__PURE__*/jsx(InfoIcon, {
|
|
1869
|
+
color: color
|
|
1870
|
+
});
|
|
1871
|
+
}
|
|
1872
|
+
}
|
|
1870
1873
|
|
|
1871
1874
|
var getColorByType = function (type) {
|
|
1872
1875
|
switch (type) {
|
|
@@ -1881,63 +1884,117 @@ var getColorByType = function (type) {
|
|
|
1881
1884
|
return 'black';
|
|
1882
1885
|
}
|
|
1883
1886
|
};
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
switch (type) {
|
|
1887
|
-
case 'warning':
|
|
1888
|
-
return /*#__PURE__*/jsx(AlertCircleIcon, {});
|
|
1889
|
-
|
|
1887
|
+
var getIconButtonColor = function (messageType) {
|
|
1888
|
+
switch (messageType) {
|
|
1890
1889
|
case 'success':
|
|
1891
|
-
return /*#__PURE__*/jsx(CheckIcon, {});
|
|
1892
|
-
|
|
1893
1890
|
case 'danger':
|
|
1894
|
-
return
|
|
1891
|
+
return 'white';
|
|
1895
1892
|
|
|
1893
|
+
case 'warning':
|
|
1896
1894
|
default:
|
|
1897
|
-
return
|
|
1895
|
+
return 'black';
|
|
1898
1896
|
}
|
|
1899
|
-
}
|
|
1897
|
+
};
|
|
1900
1898
|
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1899
|
+
var StyledMessageContainer = /*#__PURE__*/styled.View.withConfig({
|
|
1900
|
+
displayName: "BaseMessage__StyledMessageContainer"
|
|
1901
|
+
})(["flex-direction:row;align-items:flex-start;justify-content:space-between;min-height:60px;padding-top:", "px;border-radius:", "px;background-color:", ";"], function (_ref) {
|
|
1902
|
+
var _$insets$top;
|
|
1903
|
+
|
|
1904
|
+
var $insets = _ref.$insets;
|
|
1905
|
+
return (_$insets$top = $insets === null || $insets === void 0 ? void 0 : $insets.top) !== null && _$insets$top !== void 0 ? _$insets$top : 0;
|
|
1906
|
+
}, function (_ref2) {
|
|
1907
|
+
var theme = _ref2.theme,
|
|
1908
|
+
$hasNoRadius = _ref2.$hasNoRadius;
|
|
1909
|
+
return $hasNoRadius ? 0 : theme.kitt.spacing * 5;
|
|
1910
|
+
}, function (_ref3) {
|
|
1911
|
+
var theme = _ref3.theme,
|
|
1912
|
+
$type = _ref3.$type;
|
|
1913
|
+
return theme.kitt.feedbackMessage[$type].backgroundColor;
|
|
1914
|
+
});
|
|
1915
|
+
var StyledDismissWrapper = /*#__PURE__*/styled.View.withConfig({
|
|
1916
|
+
displayName: "BaseMessage__StyledDismissWrapper"
|
|
1917
|
+
})(["align-items:center;align-items:flex-start;margin:", ";"], function (_ref4) {
|
|
1918
|
+
var theme = _ref4.theme;
|
|
1919
|
+
var spacing = theme.kitt.spacing;
|
|
1920
|
+
return "".concat(spacing * 2.5, "px ").concat(spacing * 2, "px 0 ").concat(spacing * 5, "px");
|
|
1921
|
+
});
|
|
1922
|
+
var StyledIconContainer = /*#__PURE__*/styled.View.withConfig({
|
|
1923
|
+
displayName: "BaseMessage__StyledIconContainer"
|
|
1924
|
+
})(["margin:", ";"], function (_ref5) {
|
|
1925
|
+
var theme = _ref5.theme;
|
|
1926
|
+
var spacing = theme.kitt.spacing;
|
|
1927
|
+
return "".concat(spacing, "px ").concat(spacing * 5, "px 0 0");
|
|
1928
|
+
});
|
|
1929
|
+
var StyledTextContent = /*#__PURE__*/styled(Typography.Text).withConfig({
|
|
1930
|
+
displayName: "BaseMessage__StyledTextContent"
|
|
1931
|
+
})(["flex:1;text-align:", ";"], function (_ref6) {
|
|
1932
|
+
var $isCenteredText = _ref6.$isCenteredText;
|
|
1933
|
+
return $isCenteredText ? 'center' : 'left';
|
|
1934
|
+
});
|
|
1935
|
+
var StyledMessageContent = /*#__PURE__*/styled.View.withConfig({
|
|
1936
|
+
displayName: "BaseMessage__StyledMessageContent"
|
|
1937
|
+
})(["display:flex;flex-direction:row;flex-grow:1;align-self:center;align-items:flex-start;flex-shrink:1;padding:", ";"], function (_ref7) {
|
|
1938
|
+
var theme = _ref7.theme;
|
|
1939
|
+
var spacing = theme.kitt.spacing;
|
|
1940
|
+
return "".concat(spacing * 4, "px ").concat(spacing * 5, "px");
|
|
1941
|
+
});
|
|
1942
|
+
function BaseMessage(_ref8) {
|
|
1943
|
+
var _ref8$type = _ref8.type,
|
|
1944
|
+
type = _ref8$type === void 0 ? 'info' : _ref8$type,
|
|
1945
|
+
children = _ref8.children,
|
|
1946
|
+
hasNoRadius = _ref8.hasNoRadius,
|
|
1947
|
+
centeredText = _ref8.centeredText,
|
|
1948
|
+
insets = _ref8.insets,
|
|
1949
|
+
onDismiss = _ref8.onDismiss;
|
|
1911
1950
|
var color = getColorByType(type);
|
|
1912
|
-
return /*#__PURE__*/jsxs(
|
|
1913
|
-
type: type,
|
|
1914
|
-
|
|
1915
|
-
insets: insets,
|
|
1916
|
-
children: [
|
|
1917
|
-
children: /*#__PURE__*/jsx(
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1951
|
+
return /*#__PURE__*/jsxs(StyledMessageContainer, {
|
|
1952
|
+
$type: type,
|
|
1953
|
+
$hasNoRadius: hasNoRadius,
|
|
1954
|
+
$insets: insets,
|
|
1955
|
+
children: [/*#__PURE__*/jsxs(StyledMessageContent, {
|
|
1956
|
+
children: [centeredText ? null : /*#__PURE__*/jsx(StyledIconContainer, {
|
|
1957
|
+
children: /*#__PURE__*/jsx(Icon, {
|
|
1958
|
+
color: color,
|
|
1959
|
+
icon: /*#__PURE__*/jsx(IconContent, {
|
|
1960
|
+
type: type,
|
|
1961
|
+
color: color
|
|
1962
|
+
})
|
|
1963
|
+
})
|
|
1964
|
+
}), /*#__PURE__*/jsx(StyledTextContent, {
|
|
1965
|
+
$isCenteredText: centeredText,
|
|
1966
|
+
base: "body",
|
|
1927
1967
|
color: color,
|
|
1928
1968
|
children: children
|
|
1929
|
-
})
|
|
1930
|
-
}), onDismiss ? /*#__PURE__*/jsx(
|
|
1931
|
-
|
|
1932
|
-
|
|
1969
|
+
})]
|
|
1970
|
+
}), onDismiss ? /*#__PURE__*/jsx(StyledDismissWrapper, {
|
|
1971
|
+
children: /*#__PURE__*/jsx(IconButton, {
|
|
1972
|
+
color: getIconButtonColor(type),
|
|
1933
1973
|
icon: /*#__PURE__*/jsx(XIcon, {}),
|
|
1934
|
-
|
|
1935
|
-
color: color
|
|
1974
|
+
onPress: onDismiss
|
|
1936
1975
|
})
|
|
1937
1976
|
}) : null]
|
|
1938
1977
|
});
|
|
1939
1978
|
}
|
|
1940
1979
|
|
|
1980
|
+
function Message(_ref) {
|
|
1981
|
+
var _ref$type = _ref.type,
|
|
1982
|
+
type = _ref$type === void 0 ? 'info' : _ref$type,
|
|
1983
|
+
children = _ref.children,
|
|
1984
|
+
hasNoRadius = _ref.hasNoRadius,
|
|
1985
|
+
centeredText = _ref.centeredText,
|
|
1986
|
+
insets = _ref.insets,
|
|
1987
|
+
onDismiss = _ref.onDismiss;
|
|
1988
|
+
return /*#__PURE__*/jsx(BaseMessage, {
|
|
1989
|
+
insets: insets,
|
|
1990
|
+
hasNoRadius: hasNoRadius,
|
|
1991
|
+
type: type,
|
|
1992
|
+
centeredText: centeredText,
|
|
1993
|
+
onDismiss: onDismiss,
|
|
1994
|
+
children: children
|
|
1995
|
+
});
|
|
1996
|
+
}
|
|
1997
|
+
|
|
1941
1998
|
function ownKeys$5(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1942
1999
|
|
|
1943
2000
|
function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$5(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
@@ -2096,19 +2153,22 @@ function Notification(_ref) {
|
|
|
2096
2153
|
var type = _ref.type,
|
|
2097
2154
|
children = _ref.children,
|
|
2098
2155
|
centeredText = _ref.centeredText,
|
|
2099
|
-
|
|
2156
|
+
insets = _ref.insets,
|
|
2157
|
+
onDelete = _ref.onDelete,
|
|
2158
|
+
onDismiss = _ref.onDismiss;
|
|
2100
2159
|
|
|
2101
|
-
|
|
2102
|
-
|
|
2160
|
+
if ((process.env.NODE_ENV !== "production")) {
|
|
2161
|
+
if (onDelete) {
|
|
2162
|
+
throw new Error('onDelete is deprecated us onDismiss instead');
|
|
2163
|
+
}
|
|
2164
|
+
}
|
|
2103
2165
|
|
|
2104
|
-
return /*#__PURE__*/jsx(
|
|
2105
|
-
|
|
2166
|
+
return /*#__PURE__*/jsx(BaseMessage, {
|
|
2167
|
+
hasNoRadius: true,
|
|
2106
2168
|
type: type,
|
|
2107
2169
|
centeredText: centeredText,
|
|
2108
|
-
insets:
|
|
2109
|
-
|
|
2110
|
-
},
|
|
2111
|
-
onDismiss: onDelete,
|
|
2170
|
+
insets: insets,
|
|
2171
|
+
onDismiss: onDismiss,
|
|
2112
2172
|
children: children
|
|
2113
2173
|
});
|
|
2114
2174
|
}
|
|
@@ -2176,6 +2236,9 @@ function SkeletonContent(_ref3) {
|
|
|
2176
2236
|
});
|
|
2177
2237
|
}
|
|
2178
2238
|
|
|
2239
|
+
var SkeletonContainer = /*#__PURE__*/styled(View).withConfig({
|
|
2240
|
+
displayName: "Skeleton__SkeletonContainer"
|
|
2241
|
+
})(["overflow:hidden;"]);
|
|
2179
2242
|
function Skeleton(_ref) {
|
|
2180
2243
|
var isLoading = _ref.isLoading,
|
|
2181
2244
|
style = _ref.style;
|
|
@@ -2185,7 +2248,7 @@ function Skeleton(_ref) {
|
|
|
2185
2248
|
width = _useState2[0],
|
|
2186
2249
|
setWidth = _useState2[1];
|
|
2187
2250
|
|
|
2188
|
-
return /*#__PURE__*/jsx(
|
|
2251
|
+
return /*#__PURE__*/jsx(SkeletonContainer, {
|
|
2189
2252
|
style: style,
|
|
2190
2253
|
onLayout: function onLayout(_ref2) {
|
|
2191
2254
|
var nativeEvent = _ref2.nativeEvent;
|
|
@@ -2199,7 +2262,7 @@ function Skeleton(_ref) {
|
|
|
2199
2262
|
}
|
|
2200
2263
|
var Bar = /*#__PURE__*/styled(Skeleton).withConfig({
|
|
2201
2264
|
displayName: "Skeleton__Bar"
|
|
2202
|
-
})(["width:100%;height:", "px;border-radius:", "px;
|
|
2265
|
+
})(["width:100%;height:", "px;border-radius:", "px;"], function (_ref3) {
|
|
2203
2266
|
var theme = _ref3.theme;
|
|
2204
2267
|
return theme.kitt.spacing * 2;
|
|
2205
2268
|
}, function (_ref4) {
|
|
@@ -2208,7 +2271,7 @@ var Bar = /*#__PURE__*/styled(Skeleton).withConfig({
|
|
|
2208
2271
|
});
|
|
2209
2272
|
var Circle = /*#__PURE__*/styled(Skeleton).withConfig({
|
|
2210
2273
|
displayName: "Skeleton__Circle"
|
|
2211
|
-
})(["width:", "px;height:", "px;border-radius:", "px;
|
|
2274
|
+
})(["width:", "px;height:", "px;border-radius:", "px;"], function (_ref5) {
|
|
2212
2275
|
var theme = _ref5.theme;
|
|
2213
2276
|
return theme.kitt.spacing * 12;
|
|
2214
2277
|
}, function (_ref6) {
|
|
@@ -2220,7 +2283,7 @@ var Circle = /*#__PURE__*/styled(Skeleton).withConfig({
|
|
|
2220
2283
|
});
|
|
2221
2284
|
var Square = /*#__PURE__*/styled(Skeleton).withConfig({
|
|
2222
2285
|
displayName: "Skeleton__Square"
|
|
2223
|
-
})(["width:", "px;height:", "px;border-radius:", "px;
|
|
2286
|
+
})(["width:", "px;height:", "px;border-radius:", "px;"], function (_ref8) {
|
|
2224
2287
|
var theme = _ref8.theme;
|
|
2225
2288
|
return theme.kitt.spacing * 12;
|
|
2226
2289
|
}, function (_ref9) {
|
|
@@ -2675,6 +2738,8 @@ var colorsLateOceanTheme = {
|
|
|
2675
2738
|
success: lateOceanColorPalette.viride,
|
|
2676
2739
|
correct: lateOceanColorPalette.viride,
|
|
2677
2740
|
danger: lateOceanColorPalette.englishVermillon,
|
|
2741
|
+
info: lateOceanColorPalette.aero,
|
|
2742
|
+
warning: lateOceanColorPalette.goldCrayola,
|
|
2678
2743
|
separator: lateOceanColorPalette.black100,
|
|
2679
2744
|
hover: lateOceanColorPalette.black100,
|
|
2680
2745
|
black: lateOceanColorPalette.black1000,
|
|
@@ -2699,7 +2764,7 @@ var avatar = {
|
|
|
2699
2764
|
}
|
|
2700
2765
|
};
|
|
2701
2766
|
|
|
2702
|
-
var
|
|
2767
|
+
var button = {
|
|
2703
2768
|
borderRadius: '30px',
|
|
2704
2769
|
borderWidth: {
|
|
2705
2770
|
disabled: '2px',
|
|
@@ -2790,63 +2855,152 @@ var cardLateOceanTheme = {
|
|
|
2790
2855
|
}
|
|
2791
2856
|
};
|
|
2792
2857
|
|
|
2793
|
-
var
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2858
|
+
var feedbackMessage = {
|
|
2859
|
+
danger: {
|
|
2860
|
+
backgroundColor: colorsLateOceanTheme.danger
|
|
2861
|
+
},
|
|
2862
|
+
success: {
|
|
2863
|
+
backgroundColor: colorsLateOceanTheme.success
|
|
2864
|
+
},
|
|
2865
|
+
info: {
|
|
2866
|
+
backgroundColor: colorsLateOceanTheme.info
|
|
2867
|
+
},
|
|
2868
|
+
warning: {
|
|
2869
|
+
backgroundColor: colorsLateOceanTheme.warning
|
|
2799
2870
|
}
|
|
2800
2871
|
};
|
|
2801
2872
|
|
|
2802
|
-
var
|
|
2803
|
-
|
|
2804
|
-
|
|
2873
|
+
var calcLineHeight = function (fontSize, lineHeightMultiplier) {
|
|
2874
|
+
return Math.round(fontSize * lineHeightMultiplier);
|
|
2875
|
+
};
|
|
2876
|
+
var createTypographyTypeConfig = function (lineHeightMultiplier, baseAndSmallFontSize, mediumAndWideFontSize) {
|
|
2877
|
+
return {
|
|
2878
|
+
baseAndSmall: {
|
|
2879
|
+
fontSize: "".concat(baseAndSmallFontSize, "px"),
|
|
2880
|
+
lineHeight: "".concat(calcLineHeight(baseAndSmallFontSize, lineHeightMultiplier), "px")
|
|
2881
|
+
},
|
|
2882
|
+
mediumAndWide: {
|
|
2883
|
+
fontSize: "".concat(mediumAndWideFontSize, "px"),
|
|
2884
|
+
lineHeight: "".concat(calcLineHeight(mediumAndWideFontSize, lineHeightMultiplier), "px")
|
|
2885
|
+
}
|
|
2886
|
+
};
|
|
2887
|
+
};
|
|
2888
|
+
var typographyLateOceanTheme = {
|
|
2889
|
+
colors: {
|
|
2890
|
+
black: lateOceanColorPalette.black1000,
|
|
2891
|
+
'black-light': lateOceanColorPalette.black555,
|
|
2892
|
+
white: lateOceanColorPalette.white,
|
|
2893
|
+
'white-light': lateOceanColorPalette.white,
|
|
2894
|
+
primary: lateOceanColorPalette.lateOcean,
|
|
2895
|
+
'primary-light': lateOceanColorPalette.lateOceanLight1,
|
|
2896
|
+
accent: lateOceanColorPalette.warmEmbrace,
|
|
2897
|
+
success: lateOceanColorPalette.viride,
|
|
2898
|
+
danger: lateOceanColorPalette.englishVermillon
|
|
2899
|
+
},
|
|
2900
|
+
types: {
|
|
2901
|
+
headers: {
|
|
2902
|
+
fontFamily: {
|
|
2903
|
+
regular: Platform.OS === 'web' ? 'Moderat' : 'Moderat-Extended-Bold',
|
|
2904
|
+
bold: Platform.OS === 'web' ? 'Moderat' : 'Moderat-Extended-Bold'
|
|
2905
|
+
},
|
|
2906
|
+
fontWeight: 400,
|
|
2907
|
+
fontStyle: 'normal',
|
|
2908
|
+
configs: {
|
|
2909
|
+
// also known as xxlarge
|
|
2910
|
+
header1: createTypographyTypeConfig(1.3, 38, 62),
|
|
2911
|
+
// also known as xlarge
|
|
2912
|
+
header2: createTypographyTypeConfig(1.3, 32, 48),
|
|
2913
|
+
// also known as medium
|
|
2914
|
+
header3: createTypographyTypeConfig(1.3, 24, 36),
|
|
2915
|
+
// also known as xsmall
|
|
2916
|
+
header4: createTypographyTypeConfig(1.3, 18, 24),
|
|
2917
|
+
// also known as xxsmall
|
|
2918
|
+
header5: createTypographyTypeConfig(1.3, 18, 18)
|
|
2919
|
+
}
|
|
2920
|
+
},
|
|
2921
|
+
bodies: {
|
|
2922
|
+
fontFamily: {
|
|
2923
|
+
regular: Platform.OS === 'web' ? 'Noto Sans' : 'NotoSans',
|
|
2924
|
+
bold: Platform.OS === 'web' ? 'Noto Sans' : 'NotoSans-Bold'
|
|
2925
|
+
},
|
|
2926
|
+
fontWeight: {
|
|
2927
|
+
regular: 400,
|
|
2928
|
+
bold: 700
|
|
2929
|
+
},
|
|
2930
|
+
fontStyle: {
|
|
2931
|
+
regular: 'normal',
|
|
2932
|
+
bold: 'normal'
|
|
2933
|
+
},
|
|
2934
|
+
configs: {
|
|
2935
|
+
'body-large': createTypographyTypeConfig(1.6, 18, 24),
|
|
2936
|
+
'body-medium': createTypographyTypeConfig(1.6, 18, 18),
|
|
2937
|
+
body: createTypographyTypeConfig(1.6, 16, 16),
|
|
2938
|
+
'body-small': createTypographyTypeConfig(1.6, 14, 14),
|
|
2939
|
+
'body-xsmall': createTypographyTypeConfig(1.6, 12, 12)
|
|
2940
|
+
}
|
|
2941
|
+
}
|
|
2942
|
+
},
|
|
2943
|
+
link: {
|
|
2944
|
+
disabledColor: lateOceanColorPalette.black200
|
|
2945
|
+
}
|
|
2805
2946
|
};
|
|
2806
2947
|
|
|
2807
2948
|
var inputStatesStyle = {
|
|
2808
2949
|
"default": {
|
|
2809
|
-
backgroundColor:
|
|
2950
|
+
backgroundColor: colorsLateOceanTheme.uiBackgroundLight,
|
|
2951
|
+
borderColor: colorsLateOceanTheme.separator,
|
|
2952
|
+
color: 'black'
|
|
2953
|
+
},
|
|
2954
|
+
pending: {
|
|
2955
|
+
backgroundColor: colorsLateOceanTheme.uiBackgroundLight,
|
|
2956
|
+
borderColor: colorsLateOceanTheme.separator,
|
|
2957
|
+
color: 'black'
|
|
2958
|
+
},
|
|
2959
|
+
valid: {
|
|
2960
|
+
backgroundColor: colorsLateOceanTheme.uiBackgroundLight,
|
|
2810
2961
|
borderColor: lateOceanColorPalette.black100,
|
|
2811
|
-
color: 'black'
|
|
2812
|
-
passwordButtonIconColor: 'black'
|
|
2962
|
+
color: 'black'
|
|
2813
2963
|
},
|
|
2814
2964
|
hover: {
|
|
2815
2965
|
borderColor: lateOceanColorPalette.black200,
|
|
2816
|
-
color: 'black'
|
|
2817
|
-
passwordButtonIconColor: 'black'
|
|
2966
|
+
color: 'black'
|
|
2818
2967
|
},
|
|
2819
2968
|
focus: {
|
|
2820
|
-
borderColor:
|
|
2821
|
-
color: 'black'
|
|
2822
|
-
passwordButtonIconColor: 'black'
|
|
2969
|
+
borderColor: colorsLateOceanTheme.primary,
|
|
2970
|
+
color: 'black'
|
|
2823
2971
|
},
|
|
2824
2972
|
disabled: {
|
|
2825
|
-
backgroundColor:
|
|
2826
|
-
borderColor:
|
|
2827
|
-
color: 'black-light'
|
|
2828
|
-
passwordButtonIconColor: 'black-light'
|
|
2973
|
+
backgroundColor: colorsLateOceanTheme.disabled,
|
|
2974
|
+
borderColor: colorsLateOceanTheme.separator,
|
|
2975
|
+
color: 'black-light'
|
|
2829
2976
|
},
|
|
2830
2977
|
invalid: {
|
|
2831
|
-
borderColor:
|
|
2832
|
-
color: 'black'
|
|
2833
|
-
passwordButtonIconColor: 'black'
|
|
2978
|
+
borderColor: colorsLateOceanTheme.separator,
|
|
2979
|
+
color: 'black'
|
|
2834
2980
|
}
|
|
2835
2981
|
};
|
|
2836
|
-
var
|
|
2837
|
-
|
|
2838
|
-
|
|
2982
|
+
var input = {
|
|
2983
|
+
color: {
|
|
2984
|
+
selection: colorsLateOceanTheme.primary,
|
|
2985
|
+
placeholder: typographyLateOceanTheme.colors['black-light']
|
|
2986
|
+
},
|
|
2839
2987
|
borderWidth: '2px',
|
|
2840
2988
|
borderRadius: '10px',
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2989
|
+
icon: {
|
|
2990
|
+
size: 20
|
|
2991
|
+
},
|
|
2992
|
+
padding: {
|
|
2993
|
+
"default": '7px 16px',
|
|
2994
|
+
iOSSingleLine: '12px 16px'
|
|
2995
|
+
},
|
|
2847
2996
|
states: inputStatesStyle
|
|
2848
2997
|
};
|
|
2849
2998
|
|
|
2999
|
+
var inputFieldLateOceanTheme = {
|
|
3000
|
+
labelContainerPaddingBottom: 5,
|
|
3001
|
+
iconMarginLeft: 6
|
|
3002
|
+
};
|
|
3003
|
+
|
|
2850
3004
|
var radioLateOceanTheme = {
|
|
2851
3005
|
size: 18,
|
|
2852
3006
|
unchecked: {
|
|
@@ -2865,10 +3019,15 @@ var radioLateOceanTheme = {
|
|
|
2865
3019
|
}
|
|
2866
3020
|
};
|
|
2867
3021
|
|
|
2868
|
-
var
|
|
2869
|
-
|
|
3022
|
+
var textArea = {
|
|
3023
|
+
minHeight: 120
|
|
3024
|
+
};
|
|
3025
|
+
|
|
3026
|
+
var forms = {
|
|
3027
|
+
input: input,
|
|
2870
3028
|
radio: radioLateOceanTheme,
|
|
2871
|
-
inputField: inputFieldLateOceanTheme
|
|
3029
|
+
inputField: inputFieldLateOceanTheme,
|
|
3030
|
+
textArea: textArea
|
|
2872
3031
|
};
|
|
2873
3032
|
|
|
2874
3033
|
var fullScreenModalLateOceanTheme = {
|
|
@@ -2903,14 +3062,14 @@ var iconButton = {
|
|
|
2903
3062
|
},
|
|
2904
3063
|
disabled: {
|
|
2905
3064
|
scale: 1,
|
|
2906
|
-
backgroundColor:
|
|
2907
|
-
borderColor:
|
|
3065
|
+
backgroundColor: button.disabled.backgroundColor,
|
|
3066
|
+
borderColor: button.disabled.borderColor
|
|
2908
3067
|
},
|
|
2909
3068
|
"default": {
|
|
2910
|
-
pressedBackgroundColor:
|
|
3069
|
+
pressedBackgroundColor: button["default"].pressedBackgroundColor
|
|
2911
3070
|
},
|
|
2912
3071
|
white: {
|
|
2913
|
-
pressedBackgroundColor:
|
|
3072
|
+
pressedBackgroundColor: button.white.hoverBackgroundColor
|
|
2914
3073
|
}
|
|
2915
3074
|
};
|
|
2916
3075
|
|
|
@@ -2981,81 +3140,6 @@ var tooltip = {
|
|
|
2981
3140
|
floatingPadding: 8
|
|
2982
3141
|
};
|
|
2983
3142
|
|
|
2984
|
-
var calcLineHeight = function (fontSize, lineHeightMultiplier) {
|
|
2985
|
-
return Math.round(fontSize * lineHeightMultiplier);
|
|
2986
|
-
};
|
|
2987
|
-
var createTypographyTypeConfig = function (lineHeightMultiplier, baseAndSmallFontSize, mediumAndWideFontSize) {
|
|
2988
|
-
return {
|
|
2989
|
-
baseAndSmall: {
|
|
2990
|
-
fontSize: "".concat(baseAndSmallFontSize, "px"),
|
|
2991
|
-
lineHeight: "".concat(calcLineHeight(baseAndSmallFontSize, lineHeightMultiplier), "px")
|
|
2992
|
-
},
|
|
2993
|
-
mediumAndWide: {
|
|
2994
|
-
fontSize: "".concat(mediumAndWideFontSize, "px"),
|
|
2995
|
-
lineHeight: "".concat(calcLineHeight(mediumAndWideFontSize, lineHeightMultiplier), "px")
|
|
2996
|
-
}
|
|
2997
|
-
};
|
|
2998
|
-
};
|
|
2999
|
-
var typographyLateOceanTheme = {
|
|
3000
|
-
colors: {
|
|
3001
|
-
black: lateOceanColorPalette.black1000,
|
|
3002
|
-
'black-light': lateOceanColorPalette.black555,
|
|
3003
|
-
white: lateOceanColorPalette.white,
|
|
3004
|
-
'white-light': lateOceanColorPalette.white,
|
|
3005
|
-
primary: lateOceanColorPalette.lateOcean,
|
|
3006
|
-
'primary-light': lateOceanColorPalette.lateOceanLight1,
|
|
3007
|
-
accent: lateOceanColorPalette.warmEmbrace,
|
|
3008
|
-
success: lateOceanColorPalette.viride,
|
|
3009
|
-
danger: lateOceanColorPalette.englishVermillon
|
|
3010
|
-
},
|
|
3011
|
-
types: {
|
|
3012
|
-
headers: {
|
|
3013
|
-
fontFamily: {
|
|
3014
|
-
regular: Platform.OS === 'web' ? 'Moderat' : 'Moderat-Extended-Bold',
|
|
3015
|
-
bold: Platform.OS === 'web' ? 'Moderat' : 'Moderat-Extended-Bold'
|
|
3016
|
-
},
|
|
3017
|
-
fontWeight: 400,
|
|
3018
|
-
fontStyle: 'normal',
|
|
3019
|
-
configs: {
|
|
3020
|
-
// also known as xxlarge
|
|
3021
|
-
header1: createTypographyTypeConfig(1.3, 38, 62),
|
|
3022
|
-
// also known as xlarge
|
|
3023
|
-
header2: createTypographyTypeConfig(1.3, 32, 48),
|
|
3024
|
-
// also known as medium
|
|
3025
|
-
header3: createTypographyTypeConfig(1.3, 24, 36),
|
|
3026
|
-
// also known as xsmall
|
|
3027
|
-
header4: createTypographyTypeConfig(1.3, 18, 24),
|
|
3028
|
-
// also known as xxsmall
|
|
3029
|
-
header5: createTypographyTypeConfig(1.3, 18, 18)
|
|
3030
|
-
}
|
|
3031
|
-
},
|
|
3032
|
-
bodies: {
|
|
3033
|
-
fontFamily: {
|
|
3034
|
-
regular: Platform.OS === 'web' ? 'Noto Sans' : 'NotoSans',
|
|
3035
|
-
bold: Platform.OS === 'web' ? 'Noto Sans' : 'NotoSans-Bold'
|
|
3036
|
-
},
|
|
3037
|
-
fontWeight: {
|
|
3038
|
-
regular: 400,
|
|
3039
|
-
bold: 700
|
|
3040
|
-
},
|
|
3041
|
-
fontStyle: {
|
|
3042
|
-
regular: 'normal',
|
|
3043
|
-
bold: 'normal'
|
|
3044
|
-
},
|
|
3045
|
-
configs: {
|
|
3046
|
-
'body-large': createTypographyTypeConfig(1.6, 18, 24),
|
|
3047
|
-
'body-medium': createTypographyTypeConfig(1.6, 18, 18),
|
|
3048
|
-
body: createTypographyTypeConfig(1.6, 16, 16),
|
|
3049
|
-
'body-small': createTypographyTypeConfig(1.6, 14, 14),
|
|
3050
|
-
'body-xsmall': createTypographyTypeConfig(1.6, 12, 12)
|
|
3051
|
-
}
|
|
3052
|
-
}
|
|
3053
|
-
},
|
|
3054
|
-
link: {
|
|
3055
|
-
disabledColor: lateOceanColorPalette.black200
|
|
3056
|
-
}
|
|
3057
|
-
};
|
|
3058
|
-
|
|
3059
3143
|
var breakpoints = {
|
|
3060
3144
|
values: {
|
|
3061
3145
|
base: 0,
|
|
@@ -3086,10 +3170,10 @@ var theme = {
|
|
|
3086
3170
|
lateOcean: lateOceanColorPalette
|
|
3087
3171
|
},
|
|
3088
3172
|
avatar: avatar,
|
|
3089
|
-
button:
|
|
3173
|
+
button: button,
|
|
3090
3174
|
card: cardLateOceanTheme,
|
|
3091
|
-
feedbackMessage:
|
|
3092
|
-
forms:
|
|
3175
|
+
feedbackMessage: feedbackMessage,
|
|
3176
|
+
forms: forms,
|
|
3093
3177
|
typography: typographyLateOceanTheme,
|
|
3094
3178
|
tag: tagLateOceanTheme,
|
|
3095
3179
|
shadows: shadowsLateOceanTheme,
|
|
@@ -3232,7 +3316,7 @@ function TimePicker(_ref) {
|
|
|
3232
3316
|
isTimePickerModalVisible = _useTimePicker.isTimePickerModalVisible;
|
|
3233
3317
|
|
|
3234
3318
|
return /*#__PURE__*/jsxs(Container, {
|
|
3235
|
-
state: timePickerState === 'default' ? state : timePickerState,
|
|
3319
|
+
$state: timePickerState === 'default' ? state : timePickerState,
|
|
3236
3320
|
accessibilityRole: "button",
|
|
3237
3321
|
onPress: handleInputPress,
|
|
3238
3322
|
children: [/*#__PURE__*/jsx(Typography.Text, {
|
|
@@ -3262,25 +3346,6 @@ function TimePicker(_ref) {
|
|
|
3262
3346
|
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; }
|
|
3263
3347
|
|
|
3264
3348
|
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; }
|
|
3265
|
-
|
|
3266
|
-
var Arrow = function (props) {
|
|
3267
|
-
return /*#__PURE__*/jsx("svg", _objectSpread$3(_objectSpread$3({}, props), {}, {
|
|
3268
|
-
children: /*#__PURE__*/jsx("path", {
|
|
3269
|
-
fillRule: "evenodd",
|
|
3270
|
-
clipRule: "evenodd",
|
|
3271
|
-
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",
|
|
3272
|
-
fill: "currentColor"
|
|
3273
|
-
})
|
|
3274
|
-
}));
|
|
3275
|
-
};
|
|
3276
|
-
|
|
3277
|
-
Arrow.defaultProps = {
|
|
3278
|
-
width: "36",
|
|
3279
|
-
height: "8",
|
|
3280
|
-
viewBox: "0 0 36 9",
|
|
3281
|
-
fill: "none",
|
|
3282
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
3283
|
-
};
|
|
3284
3349
|
var StyledTooltipView = /*#__PURE__*/styled.View.withConfig({
|
|
3285
3350
|
displayName: "TooltipView__StyledTooltipView"
|
|
3286
3351
|
})(["align-items:center;"]);
|
|
@@ -3303,7 +3368,7 @@ var StyledTooltipContent = /*#__PURE__*/styled.View.withConfig({
|
|
|
3303
3368
|
function ArrowView(props) {
|
|
3304
3369
|
var theme = /*#__PURE__*/useTheme();
|
|
3305
3370
|
return /*#__PURE__*/jsx(View, _objectSpread$3(_objectSpread$3({}, props), {}, {
|
|
3306
|
-
children: /*#__PURE__*/jsx(
|
|
3371
|
+
children: /*#__PURE__*/jsx(TooltipArrowIcon, {
|
|
3307
3372
|
color: theme.kitt.tooltip.backgroundColor
|
|
3308
3373
|
})
|
|
3309
3374
|
}));
|
|
@@ -3664,5 +3729,5 @@ function withTheme(WrappedComponent) {
|
|
|
3664
3729
|
});
|
|
3665
3730
|
}
|
|
3666
3731
|
|
|
3667
|
-
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 };
|
|
3732
|
+
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 };
|
|
3668
3733
|
//# sourceMappingURL=index-browser-all.es.ios.js.map
|