@ornikar/kitt-universal 3.8.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/definitions/Button/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/IconButton/PressableIconButton.d.ts +1 -1
- package/dist/definitions/IconButton/PressableIconButton.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/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 +2 -13
- package/dist/definitions/themes/default.d.ts.map +1 -1
- 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 +336 -293
- package/dist/index-browser-all.es.android.js.map +1 -1
- package/dist/index-browser-all.es.ios.js +336 -293
- package/dist/index-browser-all.es.ios.js.map +1 -1
- package/dist/index-browser-all.es.js +348 -300
- package/dist/index-browser-all.es.js.map +1 -1
- package/dist/index-browser-all.es.web.js +346 -304
- package/dist/index-browser-all.es.web.js.map +1 -1
- package/dist/index-node-14.17.cjs.js +265 -219
- package/dist/index-node-14.17.cjs.js.map +1 -1
- package/dist/index-node-14.17.cjs.web.js +256 -215
- package/dist/index-node-14.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.android.js +119 -106
- package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.ios.js +119 -106
- package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.js +119 -106
- package/dist/linaria-themes-browser-all.es.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.web.js +119 -106
- package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.js +115 -102
- package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.web.js +115 -102
- 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 +5 -2
- 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/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, XIcon, InfoIcon, AlertTriangleIcon, CheckIcon, AlertCircleIcon } 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, TouchableOpacity, 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';
|
|
@@ -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) {
|
|
@@ -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$6 = /*#__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$6, {
|
|
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
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
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';
|
|
974
|
+
|
|
975
|
+
default:
|
|
976
|
+
return undefined;
|
|
977
|
+
}
|
|
978
|
+
}
|
|
991
979
|
|
|
992
|
-
|
|
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
|
+
}
|
|
993
992
|
|
|
994
|
-
function ownKeys$
|
|
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;
|
|
@@ -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({
|
|
@@ -1465,7 +1479,7 @@ function withTheme(WrappedComponent) {
|
|
|
1465
1479
|
});
|
|
1466
1480
|
}
|
|
1467
1481
|
|
|
1468
|
-
var _excluded$6 = ["color"];
|
|
1482
|
+
var _excluded$6 = ["color", "disabled"];
|
|
1469
1483
|
|
|
1470
1484
|
function ownKeys$8(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; }
|
|
1471
1485
|
|
|
@@ -1475,20 +1489,25 @@ var PressableIconButtonWebWrapper = withTheme( /*#__PURE__*/styled$1("div")({
|
|
|
1475
1489
|
"class": "p1nlccvg",
|
|
1476
1490
|
vars: {
|
|
1477
1491
|
"p1nlccvg-0": [function (_ref) {
|
|
1478
|
-
var theme = _ref.theme
|
|
1479
|
-
|
|
1492
|
+
var theme = _ref.theme,
|
|
1493
|
+
$isDisabled = _ref.$isDisabled;
|
|
1494
|
+
return $isDisabled ? 1 : theme.kitt.iconButton.scale.base.hover;
|
|
1480
1495
|
}],
|
|
1481
1496
|
"p1nlccvg-2": [function (_ref2) {
|
|
1482
|
-
var theme = _ref2.theme
|
|
1483
|
-
|
|
1497
|
+
var theme = _ref2.theme,
|
|
1498
|
+
$isDisabled = _ref2.$isDisabled;
|
|
1499
|
+
return $isDisabled ? 1 : theme.kitt.iconButton.scale.medium.hover;
|
|
1484
1500
|
}],
|
|
1485
1501
|
"p1nlccvg-3": [function (_ref3) {
|
|
1486
|
-
var theme = _ref3.theme
|
|
1487
|
-
|
|
1502
|
+
var theme = _ref3.theme,
|
|
1503
|
+
$isDisabled = _ref3.$isDisabled;
|
|
1504
|
+
return $isDisabled ? 1 : theme.kitt.iconButton.scale.base.active;
|
|
1488
1505
|
}],
|
|
1489
1506
|
"p1nlccvg-4": [function (_ref4) {
|
|
1490
1507
|
var theme = _ref4.theme,
|
|
1491
|
-
$isWhite = _ref4.$isWhite
|
|
1508
|
+
$isWhite = _ref4.$isWhite,
|
|
1509
|
+
$isDisabled = _ref4.$isDisabled;
|
|
1510
|
+
if ($isDisabled) return theme.kitt.iconButton.disabled.backgroundColor;
|
|
1492
1511
|
var _theme$kitt$iconButto = theme.kitt.iconButton,
|
|
1493
1512
|
white = _theme$kitt$iconButto.white,
|
|
1494
1513
|
defaultIconButton = _theme$kitt$iconButto["default"];
|
|
@@ -1527,12 +1546,16 @@ var StyledPressableIconButton = /*#__PURE__*/styled.Pressable.withConfig({
|
|
|
1527
1546
|
});
|
|
1528
1547
|
function PressableIconButton(_ref9) {
|
|
1529
1548
|
var color = _ref9.color,
|
|
1549
|
+
disabled = _ref9.disabled,
|
|
1530
1550
|
props = _objectWithoutProperties(_ref9, _excluded$6);
|
|
1531
1551
|
|
|
1532
1552
|
return /*#__PURE__*/jsx(StyleWebWrapper, {
|
|
1533
1553
|
as: PressableIconButtonWebWrapper,
|
|
1534
1554
|
$isWhite: color === 'white',
|
|
1535
|
-
|
|
1555
|
+
$isDisabled: Boolean(disabled),
|
|
1556
|
+
children: /*#__PURE__*/jsx(StyledPressableIconButton, _objectSpread$8(_objectSpread$8({}, props), {}, {
|
|
1557
|
+
disabled: disabled
|
|
1558
|
+
}))
|
|
1536
1559
|
});
|
|
1537
1560
|
}
|
|
1538
1561
|
|
|
@@ -1563,6 +1586,10 @@ function PressableAnimatedContainer(_ref5) {
|
|
|
1563
1586
|
var disabled = _ref5.disabled,
|
|
1564
1587
|
_ref5$color = _ref5.color,
|
|
1565
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,
|
|
1566
1593
|
children = _ref5.children,
|
|
1567
1594
|
onPress = _ref5.onPress;
|
|
1568
1595
|
var theme = /*#__PURE__*/useTheme();
|
|
@@ -1580,7 +1607,7 @@ function PressableAnimatedContainer(_ref5) {
|
|
|
1580
1607
|
};
|
|
1581
1608
|
_f.asString = "function _f(){const{withSpring,pressed}=jsThis._closure;{return{opacity:withSpring(pressed.value?1:0)};}}";
|
|
1582
1609
|
_f.__workletHash = 10645190329247;
|
|
1583
|
-
_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)";
|
|
1584
1611
|
_f.__optimalization = 2;
|
|
1585
1612
|
|
|
1586
1613
|
global.__reanimatedWorkletInit(_f);
|
|
@@ -1614,7 +1641,7 @@ function PressableAnimatedContainer(_ref5) {
|
|
|
1614
1641
|
};
|
|
1615
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)}]};}}";
|
|
1616
1643
|
_f.__workletHash = 13861998831411;
|
|
1617
|
-
_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)";
|
|
1618
1645
|
_f.__optimalization = 2;
|
|
1619
1646
|
|
|
1620
1647
|
global.__reanimatedWorkletInit(_f);
|
|
@@ -1622,9 +1649,11 @@ function PressableAnimatedContainer(_ref5) {
|
|
|
1622
1649
|
return _f;
|
|
1623
1650
|
}());
|
|
1624
1651
|
return /*#__PURE__*/jsx(PressableIconButton, {
|
|
1625
|
-
accessibilityRole:
|
|
1652
|
+
accessibilityRole: accessibilityRole,
|
|
1626
1653
|
disabled: disabled,
|
|
1627
1654
|
color: color,
|
|
1655
|
+
testID: testID,
|
|
1656
|
+
accessibilityLabel: accessibilityLabel,
|
|
1628
1657
|
onPress: onPress,
|
|
1629
1658
|
onPressIn: function onPressIn() {
|
|
1630
1659
|
pressed.value = true;
|
|
@@ -1686,10 +1715,16 @@ function IconButton(_ref7) {
|
|
|
1686
1715
|
var icon = _ref7.icon,
|
|
1687
1716
|
color = _ref7.color,
|
|
1688
1717
|
disabled = _ref7.disabled,
|
|
1718
|
+
testID = _ref7.testID,
|
|
1719
|
+
accessibilityLabel = _ref7.accessibilityLabel,
|
|
1720
|
+
accessibilityRole = _ref7.accessibilityRole,
|
|
1689
1721
|
onPress = _ref7.onPress;
|
|
1690
1722
|
return /*#__PURE__*/jsx(PressableAnimatedContainer, {
|
|
1691
1723
|
color: color,
|
|
1692
1724
|
disabled: disabled,
|
|
1725
|
+
testID: testID,
|
|
1726
|
+
accessibilityLabel: accessibilityLabel,
|
|
1727
|
+
accessibilityRole: accessibilityRole,
|
|
1693
1728
|
onPress: onPress,
|
|
1694
1729
|
children: /*#__PURE__*/jsx(IconButtonContent, {
|
|
1695
1730
|
disabled: disabled,
|
|
@@ -2846,54 +2881,137 @@ var feedbackMessageLateOceanTheme = {
|
|
|
2846
2881
|
}
|
|
2847
2882
|
};
|
|
2848
2883
|
|
|
2849
|
-
var
|
|
2850
|
-
|
|
2851
|
-
|
|
2884
|
+
var calcLineHeight = function (fontSize, lineHeightMultiplier) {
|
|
2885
|
+
return Math.round(fontSize * lineHeightMultiplier);
|
|
2886
|
+
};
|
|
2887
|
+
var createTypographyTypeConfig = function (lineHeightMultiplier, baseAndSmallFontSize, mediumAndWideFontSize) {
|
|
2888
|
+
return {
|
|
2889
|
+
baseAndSmall: {
|
|
2890
|
+
fontSize: "".concat(baseAndSmallFontSize, "px"),
|
|
2891
|
+
lineHeight: "".concat(calcLineHeight(baseAndSmallFontSize, lineHeightMultiplier), "px")
|
|
2892
|
+
},
|
|
2893
|
+
mediumAndWide: {
|
|
2894
|
+
fontSize: "".concat(mediumAndWideFontSize, "px"),
|
|
2895
|
+
lineHeight: "".concat(calcLineHeight(mediumAndWideFontSize, lineHeightMultiplier), "px")
|
|
2896
|
+
}
|
|
2897
|
+
};
|
|
2898
|
+
};
|
|
2899
|
+
var typographyLateOceanTheme = {
|
|
2900
|
+
colors: {
|
|
2901
|
+
black: lateOceanColorPalette.black1000,
|
|
2902
|
+
'black-light': lateOceanColorPalette.black555,
|
|
2903
|
+
white: lateOceanColorPalette.white,
|
|
2904
|
+
'white-light': lateOceanColorPalette.white,
|
|
2905
|
+
primary: lateOceanColorPalette.lateOcean,
|
|
2906
|
+
'primary-light': lateOceanColorPalette.lateOceanLight1,
|
|
2907
|
+
accent: lateOceanColorPalette.warmEmbrace,
|
|
2908
|
+
success: lateOceanColorPalette.viride,
|
|
2909
|
+
danger: lateOceanColorPalette.englishVermillon
|
|
2910
|
+
},
|
|
2911
|
+
types: {
|
|
2912
|
+
headers: {
|
|
2913
|
+
fontFamily: {
|
|
2914
|
+
regular: Platform.OS === 'web' ? 'Moderat' : 'Moderat-Extended-Bold',
|
|
2915
|
+
bold: Platform.OS === 'web' ? 'Moderat' : 'Moderat-Extended-Bold'
|
|
2916
|
+
},
|
|
2917
|
+
fontWeight: 400,
|
|
2918
|
+
fontStyle: 'normal',
|
|
2919
|
+
configs: {
|
|
2920
|
+
// also known as xxlarge
|
|
2921
|
+
header1: createTypographyTypeConfig(1.3, 38, 62),
|
|
2922
|
+
// also known as xlarge
|
|
2923
|
+
header2: createTypographyTypeConfig(1.3, 32, 48),
|
|
2924
|
+
// also known as medium
|
|
2925
|
+
header3: createTypographyTypeConfig(1.3, 24, 36),
|
|
2926
|
+
// also known as xsmall
|
|
2927
|
+
header4: createTypographyTypeConfig(1.3, 18, 24),
|
|
2928
|
+
// also known as xxsmall
|
|
2929
|
+
header5: createTypographyTypeConfig(1.3, 18, 18)
|
|
2930
|
+
}
|
|
2931
|
+
},
|
|
2932
|
+
bodies: {
|
|
2933
|
+
fontFamily: {
|
|
2934
|
+
regular: Platform.OS === 'web' ? 'Noto Sans' : 'NotoSans',
|
|
2935
|
+
bold: Platform.OS === 'web' ? 'Noto Sans' : 'NotoSans-Bold'
|
|
2936
|
+
},
|
|
2937
|
+
fontWeight: {
|
|
2938
|
+
regular: 400,
|
|
2939
|
+
bold: 700
|
|
2940
|
+
},
|
|
2941
|
+
fontStyle: {
|
|
2942
|
+
regular: 'normal',
|
|
2943
|
+
bold: 'normal'
|
|
2944
|
+
},
|
|
2945
|
+
configs: {
|
|
2946
|
+
'body-large': createTypographyTypeConfig(1.6, 18, 24),
|
|
2947
|
+
'body-medium': createTypographyTypeConfig(1.6, 18, 18),
|
|
2948
|
+
body: createTypographyTypeConfig(1.6, 16, 16),
|
|
2949
|
+
'body-small': createTypographyTypeConfig(1.6, 14, 14),
|
|
2950
|
+
'body-xsmall': createTypographyTypeConfig(1.6, 12, 12)
|
|
2951
|
+
}
|
|
2952
|
+
}
|
|
2953
|
+
},
|
|
2954
|
+
link: {
|
|
2955
|
+
disabledColor: lateOceanColorPalette.black200
|
|
2956
|
+
}
|
|
2852
2957
|
};
|
|
2853
2958
|
|
|
2854
2959
|
var inputStatesStyle = {
|
|
2855
2960
|
"default": {
|
|
2856
|
-
backgroundColor:
|
|
2961
|
+
backgroundColor: colorsLateOceanTheme.uiBackgroundLight,
|
|
2962
|
+
borderColor: colorsLateOceanTheme.separator,
|
|
2963
|
+
color: 'black'
|
|
2964
|
+
},
|
|
2965
|
+
pending: {
|
|
2966
|
+
backgroundColor: colorsLateOceanTheme.uiBackgroundLight,
|
|
2967
|
+
borderColor: colorsLateOceanTheme.separator,
|
|
2968
|
+
color: 'black'
|
|
2969
|
+
},
|
|
2970
|
+
valid: {
|
|
2971
|
+
backgroundColor: colorsLateOceanTheme.uiBackgroundLight,
|
|
2857
2972
|
borderColor: lateOceanColorPalette.black100,
|
|
2858
|
-
color: 'black'
|
|
2859
|
-
passwordButtonIconColor: 'black'
|
|
2973
|
+
color: 'black'
|
|
2860
2974
|
},
|
|
2861
2975
|
hover: {
|
|
2862
2976
|
borderColor: lateOceanColorPalette.black200,
|
|
2863
|
-
color: 'black'
|
|
2864
|
-
passwordButtonIconColor: 'black'
|
|
2977
|
+
color: 'black'
|
|
2865
2978
|
},
|
|
2866
2979
|
focus: {
|
|
2867
|
-
borderColor:
|
|
2868
|
-
color: 'black'
|
|
2869
|
-
passwordButtonIconColor: 'black'
|
|
2980
|
+
borderColor: colorsLateOceanTheme.primary,
|
|
2981
|
+
color: 'black'
|
|
2870
2982
|
},
|
|
2871
2983
|
disabled: {
|
|
2872
|
-
backgroundColor:
|
|
2873
|
-
borderColor:
|
|
2874
|
-
color: 'black-light'
|
|
2875
|
-
passwordButtonIconColor: 'black-light'
|
|
2984
|
+
backgroundColor: colorsLateOceanTheme.disabled,
|
|
2985
|
+
borderColor: colorsLateOceanTheme.separator,
|
|
2986
|
+
color: 'black-light'
|
|
2876
2987
|
},
|
|
2877
2988
|
invalid: {
|
|
2878
|
-
borderColor:
|
|
2879
|
-
color: 'black'
|
|
2880
|
-
passwordButtonIconColor: 'black'
|
|
2989
|
+
borderColor: colorsLateOceanTheme.danger,
|
|
2990
|
+
color: 'black'
|
|
2881
2991
|
}
|
|
2882
2992
|
};
|
|
2883
|
-
var
|
|
2884
|
-
|
|
2885
|
-
|
|
2993
|
+
var input = {
|
|
2994
|
+
color: {
|
|
2995
|
+
selection: colorsLateOceanTheme.primary,
|
|
2996
|
+
placeholder: typographyLateOceanTheme.colors['black-light']
|
|
2997
|
+
},
|
|
2886
2998
|
borderWidth: '2px',
|
|
2887
2999
|
borderRadius: '10px',
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
3000
|
+
icon: {
|
|
3001
|
+
size: 20
|
|
3002
|
+
},
|
|
3003
|
+
padding: {
|
|
3004
|
+
"default": '7px 16px',
|
|
3005
|
+
iOSSingleLine: '12px 16px'
|
|
3006
|
+
},
|
|
2894
3007
|
states: inputStatesStyle
|
|
2895
3008
|
};
|
|
2896
3009
|
|
|
3010
|
+
var inputFieldLateOceanTheme = {
|
|
3011
|
+
labelContainerPaddingBottom: 5,
|
|
3012
|
+
iconMarginLeft: 6
|
|
3013
|
+
};
|
|
3014
|
+
|
|
2897
3015
|
var radioLateOceanTheme = {
|
|
2898
3016
|
size: 18,
|
|
2899
3017
|
unchecked: {
|
|
@@ -2912,10 +3030,15 @@ var radioLateOceanTheme = {
|
|
|
2912
3030
|
}
|
|
2913
3031
|
};
|
|
2914
3032
|
|
|
2915
|
-
var
|
|
2916
|
-
|
|
3033
|
+
var textArea = {
|
|
3034
|
+
minHeight: 120
|
|
3035
|
+
};
|
|
3036
|
+
|
|
3037
|
+
var forms = {
|
|
3038
|
+
input: input,
|
|
2917
3039
|
radio: radioLateOceanTheme,
|
|
2918
|
-
inputField: inputFieldLateOceanTheme
|
|
3040
|
+
inputField: inputFieldLateOceanTheme,
|
|
3041
|
+
textArea: textArea
|
|
2919
3042
|
};
|
|
2920
3043
|
|
|
2921
3044
|
var fullScreenModalLateOceanTheme = {
|
|
@@ -3028,81 +3151,6 @@ var tooltip = {
|
|
|
3028
3151
|
floatingPadding: 8
|
|
3029
3152
|
};
|
|
3030
3153
|
|
|
3031
|
-
var calcLineHeight = function (fontSize, lineHeightMultiplier) {
|
|
3032
|
-
return Math.round(fontSize * lineHeightMultiplier);
|
|
3033
|
-
};
|
|
3034
|
-
var createTypographyTypeConfig = function (lineHeightMultiplier, baseAndSmallFontSize, mediumAndWideFontSize) {
|
|
3035
|
-
return {
|
|
3036
|
-
baseAndSmall: {
|
|
3037
|
-
fontSize: "".concat(baseAndSmallFontSize, "px"),
|
|
3038
|
-
lineHeight: "".concat(calcLineHeight(baseAndSmallFontSize, lineHeightMultiplier), "px")
|
|
3039
|
-
},
|
|
3040
|
-
mediumAndWide: {
|
|
3041
|
-
fontSize: "".concat(mediumAndWideFontSize, "px"),
|
|
3042
|
-
lineHeight: "".concat(calcLineHeight(mediumAndWideFontSize, lineHeightMultiplier), "px")
|
|
3043
|
-
}
|
|
3044
|
-
};
|
|
3045
|
-
};
|
|
3046
|
-
var typographyLateOceanTheme = {
|
|
3047
|
-
colors: {
|
|
3048
|
-
black: lateOceanColorPalette.black1000,
|
|
3049
|
-
'black-light': lateOceanColorPalette.black555,
|
|
3050
|
-
white: lateOceanColorPalette.white,
|
|
3051
|
-
'white-light': lateOceanColorPalette.white,
|
|
3052
|
-
primary: lateOceanColorPalette.lateOcean,
|
|
3053
|
-
'primary-light': lateOceanColorPalette.lateOceanLight1,
|
|
3054
|
-
accent: lateOceanColorPalette.warmEmbrace,
|
|
3055
|
-
success: lateOceanColorPalette.viride,
|
|
3056
|
-
danger: lateOceanColorPalette.englishVermillon
|
|
3057
|
-
},
|
|
3058
|
-
types: {
|
|
3059
|
-
headers: {
|
|
3060
|
-
fontFamily: {
|
|
3061
|
-
regular: Platform.OS === 'web' ? 'Moderat' : 'Moderat-Extended-Bold',
|
|
3062
|
-
bold: Platform.OS === 'web' ? 'Moderat' : 'Moderat-Extended-Bold'
|
|
3063
|
-
},
|
|
3064
|
-
fontWeight: 400,
|
|
3065
|
-
fontStyle: 'normal',
|
|
3066
|
-
configs: {
|
|
3067
|
-
// also known as xxlarge
|
|
3068
|
-
header1: createTypographyTypeConfig(1.3, 38, 62),
|
|
3069
|
-
// also known as xlarge
|
|
3070
|
-
header2: createTypographyTypeConfig(1.3, 32, 48),
|
|
3071
|
-
// also known as medium
|
|
3072
|
-
header3: createTypographyTypeConfig(1.3, 24, 36),
|
|
3073
|
-
// also known as xsmall
|
|
3074
|
-
header4: createTypographyTypeConfig(1.3, 18, 24),
|
|
3075
|
-
// also known as xxsmall
|
|
3076
|
-
header5: createTypographyTypeConfig(1.3, 18, 18)
|
|
3077
|
-
}
|
|
3078
|
-
},
|
|
3079
|
-
bodies: {
|
|
3080
|
-
fontFamily: {
|
|
3081
|
-
regular: Platform.OS === 'web' ? 'Noto Sans' : 'NotoSans',
|
|
3082
|
-
bold: Platform.OS === 'web' ? 'Noto Sans' : 'NotoSans-Bold'
|
|
3083
|
-
},
|
|
3084
|
-
fontWeight: {
|
|
3085
|
-
regular: 400,
|
|
3086
|
-
bold: 700
|
|
3087
|
-
},
|
|
3088
|
-
fontStyle: {
|
|
3089
|
-
regular: 'normal',
|
|
3090
|
-
bold: 'normal'
|
|
3091
|
-
},
|
|
3092
|
-
configs: {
|
|
3093
|
-
'body-large': createTypographyTypeConfig(1.6, 18, 24),
|
|
3094
|
-
'body-medium': createTypographyTypeConfig(1.6, 18, 18),
|
|
3095
|
-
body: createTypographyTypeConfig(1.6, 16, 16),
|
|
3096
|
-
'body-small': createTypographyTypeConfig(1.6, 14, 14),
|
|
3097
|
-
'body-xsmall': createTypographyTypeConfig(1.6, 12, 12)
|
|
3098
|
-
}
|
|
3099
|
-
}
|
|
3100
|
-
},
|
|
3101
|
-
link: {
|
|
3102
|
-
disabledColor: lateOceanColorPalette.black200
|
|
3103
|
-
}
|
|
3104
|
-
};
|
|
3105
|
-
|
|
3106
3154
|
var breakpoints = {
|
|
3107
3155
|
values: {
|
|
3108
3156
|
base: 0,
|
|
@@ -3136,7 +3184,7 @@ var theme = {
|
|
|
3136
3184
|
button: buttonLateOceanTheme,
|
|
3137
3185
|
card: cardLateOceanTheme,
|
|
3138
3186
|
feedbackMessage: feedbackMessageLateOceanTheme,
|
|
3139
|
-
forms:
|
|
3187
|
+
forms: forms,
|
|
3140
3188
|
typography: typographyLateOceanTheme,
|
|
3141
3189
|
tag: tagLateOceanTheme,
|
|
3142
3190
|
shadows: shadowsLateOceanTheme,
|
|
@@ -3279,7 +3327,7 @@ function TimePicker(_ref) {
|
|
|
3279
3327
|
isTimePickerModalVisible = _useTimePicker.isTimePickerModalVisible;
|
|
3280
3328
|
|
|
3281
3329
|
return /*#__PURE__*/jsxs(Container, {
|
|
3282
|
-
state: timePickerState === 'default' ? state : timePickerState,
|
|
3330
|
+
$state: timePickerState === 'default' ? state : timePickerState,
|
|
3283
3331
|
accessibilityRole: "button",
|
|
3284
3332
|
onPress: handleInputPress,
|
|
3285
3333
|
children: [/*#__PURE__*/jsx(Typography.Text, {
|
|
@@ -3696,5 +3744,5 @@ function MatchWindowSize(_ref) {
|
|
|
3696
3744
|
});
|
|
3697
3745
|
}
|
|
3698
3746
|
|
|
3699
|
-
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 };
|
|
3747
|
+
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 };
|
|
3700
3748
|
//# sourceMappingURL=index-browser-all.es.js.map
|