@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
|
@@ -2,7 +2,7 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
3
|
import { View, Text as Text$1, useWindowDimensions, Image, Pressable, TextInput, TouchableOpacity, StyleSheet, ScrollView, Modal as Modal$1 } from 'react-native';
|
|
4
4
|
export { useWindowDimensions as useWindowSize } from 'react-native';
|
|
5
|
-
import { UserIcon,
|
|
5
|
+
import { UserIcon, EyeOffIcon, EyeIcon, LoaderIcon, XIcon, InfoIcon, AlertTriangleIcon, CheckIcon, AlertCircleIcon } from '@ornikar/kitt-icons';
|
|
6
6
|
export * from '@ornikar/kitt-icons';
|
|
7
7
|
import styled$1, { useTheme, css, ThemeProvider } from 'styled-components/native';
|
|
8
8
|
import { forwardRef, cloneElement, useContext, createContext, useMemo, useState, Fragment, Children, useEffect } from 'react';
|
|
@@ -16,9 +16,9 @@ import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
|
16
16
|
import { useFloating, offset, shift, flip, getScrollParents } from '@floating-ui/react-dom';
|
|
17
17
|
import { makeDecorator } from '@storybook/addons';
|
|
18
18
|
|
|
19
|
-
function ownKeys$
|
|
19
|
+
function ownKeys$j(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
20
20
|
|
|
21
|
-
function _objectSpread$
|
|
21
|
+
function _objectSpread$j(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$j(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$j(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
22
22
|
// type $Without<T, K extends keyof any> = T extends any ? Pick<T, Exclude<keyof T, K>> : never;
|
|
23
23
|
// type $DeepPartial<T> = { [P in keyof T]?: $DeepPartial<T[P]> };
|
|
24
24
|
// export function withTheme<Props extends { theme: DefaultTheme }, C>(
|
|
@@ -33,7 +33,7 @@ function withTheme(WrappedComponent) {
|
|
|
33
33
|
// eslint-disable-next-line prefer-arrow-callback
|
|
34
34
|
return /*#__PURE__*/forwardRef(function (props, ref) {
|
|
35
35
|
var theme = /*#__PURE__*/useTheme();
|
|
36
|
-
return /*#__PURE__*/jsx(WrappedComponent, _objectSpread$
|
|
36
|
+
return /*#__PURE__*/jsx(WrappedComponent, _objectSpread$j({
|
|
37
37
|
ref: ref,
|
|
38
38
|
theme: theme
|
|
39
39
|
}, props));
|
|
@@ -136,11 +136,11 @@ var KittBreakpointsMax = {
|
|
|
136
136
|
LARGE: KittBreakpoints.WIDE - 1
|
|
137
137
|
};
|
|
138
138
|
|
|
139
|
-
var _excluded$
|
|
139
|
+
var _excluded$f = ["accessibilityRole", "base", "small", "medium", "large", "variant", "color"];
|
|
140
140
|
|
|
141
|
-
function ownKeys$
|
|
141
|
+
function ownKeys$i(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
142
142
|
|
|
143
|
-
function _objectSpread$
|
|
143
|
+
function _objectSpread$i(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$i(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$i(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
144
144
|
var IsHeaderTypographyContext = /*#__PURE__*/createContext(undefined);
|
|
145
145
|
var TypographyColorContext = /*#__PURE__*/createContext('black');
|
|
146
146
|
function useTypographyColor() {
|
|
@@ -217,7 +217,7 @@ function Typography(_ref4) {
|
|
|
217
217
|
large = _ref4.large,
|
|
218
218
|
variant = _ref4.variant,
|
|
219
219
|
color = _ref4.color,
|
|
220
|
-
otherProps = _objectWithoutProperties(_ref4, _excluded$
|
|
220
|
+
otherProps = _objectWithoutProperties(_ref4, _excluded$f);
|
|
221
221
|
|
|
222
222
|
var isHeaderTypographyInContext = useContext(IsHeaderTypographyContext);
|
|
223
223
|
var hasTypographyAncestor = isHeaderTypographyInContext !== undefined;
|
|
@@ -234,14 +234,14 @@ function Typography(_ref4) {
|
|
|
234
234
|
var nonNullableVariant = variant !== null && variant !== void 0 ? variant : isHeader ? 'bold' : 'regular';
|
|
235
235
|
var content = baseOrDefaultToBody ? /*#__PURE__*/jsx(IsHeaderTypographyContext.Provider, {
|
|
236
236
|
value: isHeader,
|
|
237
|
-
children: /*#__PURE__*/jsx(StyledTypography, _objectSpread$
|
|
237
|
+
children: /*#__PURE__*/jsx(StyledTypography, _objectSpread$i({
|
|
238
238
|
$color: colorOrDefaultToBlack,
|
|
239
239
|
$isHeader: isHeader,
|
|
240
240
|
$typeForCurrentWindowSize: typeForCurrentWindowSize,
|
|
241
241
|
$variant: nonNullableVariant,
|
|
242
242
|
accessibilityRole: accessibilityRole || undefined
|
|
243
243
|
}, otherProps))
|
|
244
|
-
}) : /*#__PURE__*/jsx(StyledTypography, _objectSpread$
|
|
244
|
+
}) : /*#__PURE__*/jsx(StyledTypography, _objectSpread$i({
|
|
245
245
|
$color: colorOrDefaultToBlack,
|
|
246
246
|
$isHeader: isHeader,
|
|
247
247
|
$variant: nonNullableVariant,
|
|
@@ -254,13 +254,13 @@ function Typography(_ref4) {
|
|
|
254
254
|
}
|
|
255
255
|
|
|
256
256
|
function TypographyText(props) {
|
|
257
|
-
return /*#__PURE__*/jsx(Typography, _objectSpread$
|
|
257
|
+
return /*#__PURE__*/jsx(Typography, _objectSpread$i({
|
|
258
258
|
accessibilityRole: null
|
|
259
259
|
}, props));
|
|
260
260
|
}
|
|
261
261
|
|
|
262
262
|
function TypographyParagraph(props) {
|
|
263
|
-
return /*#__PURE__*/jsx(Typography, _objectSpread$
|
|
263
|
+
return /*#__PURE__*/jsx(Typography, _objectSpread$i({
|
|
264
264
|
accessibilityRole: "paragraph"
|
|
265
265
|
}, props));
|
|
266
266
|
}
|
|
@@ -268,7 +268,7 @@ function TypographyParagraph(props) {
|
|
|
268
268
|
var createHeading = function (level, defaultBase) {
|
|
269
269
|
// https://github.com/necolas/react-native-web/issues/401
|
|
270
270
|
function TypographyHeading(props) {
|
|
271
|
-
return /*#__PURE__*/jsx(Typography, _objectSpread$
|
|
271
|
+
return /*#__PURE__*/jsx(Typography, _objectSpread$i(_objectSpread$i({
|
|
272
272
|
accessibilityRole: "header",
|
|
273
273
|
base: defaultBase
|
|
274
274
|
}, props), {}, {
|
|
@@ -304,11 +304,11 @@ Typography.h4 = createHeading(4, 'header4');
|
|
|
304
304
|
|
|
305
305
|
Typography.h5 = createHeading(5, 'header5');
|
|
306
306
|
|
|
307
|
-
var _excluded$
|
|
307
|
+
var _excluded$e = ["size", "base", "round", "light"];
|
|
308
308
|
|
|
309
|
-
function ownKeys$
|
|
309
|
+
function ownKeys$h(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
310
310
|
|
|
311
|
-
function _objectSpread$
|
|
311
|
+
function _objectSpread$h(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$h(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$h(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
312
312
|
|
|
313
313
|
var getInitials = function (firstname, lastname) {
|
|
314
314
|
return "".concat(firstname[0]).concat(lastname[0]).toUpperCase();
|
|
@@ -380,13 +380,13 @@ function Avatar(_ref6) {
|
|
|
380
380
|
base = _ref6$base === void 0 ? 'body-small' : _ref6$base,
|
|
381
381
|
round = _ref6.round,
|
|
382
382
|
light = _ref6.light,
|
|
383
|
-
props = _objectWithoutProperties(_ref6, _excluded$
|
|
383
|
+
props = _objectWithoutProperties(_ref6, _excluded$e);
|
|
384
384
|
|
|
385
385
|
return /*#__PURE__*/jsx(StyledAvatarView, {
|
|
386
386
|
$size: size,
|
|
387
387
|
$isRound: round,
|
|
388
388
|
$isLight: light,
|
|
389
|
-
children: /*#__PURE__*/jsx(AvatarContent, _objectSpread$
|
|
389
|
+
children: /*#__PURE__*/jsx(AvatarContent, _objectSpread$h({
|
|
390
390
|
size: size,
|
|
391
391
|
base: base,
|
|
392
392
|
isLight: light
|
|
@@ -398,11 +398,11 @@ function isSubtle(type) {
|
|
|
398
398
|
return type.startsWith('subtle');
|
|
399
399
|
}
|
|
400
400
|
|
|
401
|
-
var _excluded$
|
|
401
|
+
var _excluded$d = ["$type", "$isStretch", "disabled"];
|
|
402
402
|
|
|
403
|
-
function ownKeys$
|
|
403
|
+
function ownKeys$g(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
404
404
|
|
|
405
|
-
function _objectSpread$
|
|
405
|
+
function _objectSpread$g(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$g(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$g(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
406
406
|
var AnimatedButtonPressableContainer = withTheme( /*#__PURE__*/styled("div")({
|
|
407
407
|
name: "AnimatedButtonPressableContainer",
|
|
408
408
|
"class": "a1vkj3mh",
|
|
@@ -501,14 +501,14 @@ var AnimatedButtonPressable = /*#__PURE__*/forwardRef(function (_ref18, ref) {
|
|
|
501
501
|
var $type = _ref18.$type,
|
|
502
502
|
$isStretch = _ref18.$isStretch,
|
|
503
503
|
disabled = _ref18.disabled,
|
|
504
|
-
props = _objectWithoutProperties(_ref18, _excluded$
|
|
504
|
+
props = _objectWithoutProperties(_ref18, _excluded$d);
|
|
505
505
|
|
|
506
506
|
return /*#__PURE__*/jsx(AnimatedButtonPressableContainer, {
|
|
507
507
|
ref: ref,
|
|
508
508
|
$type: $type,
|
|
509
509
|
$isDisabled: !!disabled,
|
|
510
510
|
$isStretch: $isStretch,
|
|
511
|
-
children: /*#__PURE__*/jsx(Pressable, _objectSpread$
|
|
511
|
+
children: /*#__PURE__*/jsx(Pressable, _objectSpread$g({
|
|
512
512
|
disabled: disabled
|
|
513
513
|
}, props))
|
|
514
514
|
});
|
|
@@ -552,26 +552,26 @@ var BaseStyledButtonPressable = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
552
552
|
return defaultPadding;
|
|
553
553
|
});
|
|
554
554
|
|
|
555
|
-
var _excluded$
|
|
555
|
+
var _excluded$c = ["color"],
|
|
556
556
|
_excluded2$2 = ["color"];
|
|
557
557
|
|
|
558
|
-
function ownKeys$
|
|
558
|
+
function ownKeys$f(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
559
559
|
|
|
560
|
-
function _objectSpread$
|
|
560
|
+
function _objectSpread$f(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$f(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$f(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
561
561
|
|
|
562
562
|
function TypographyIconSpecifiedColor(_ref) {
|
|
563
563
|
var color = _ref.color,
|
|
564
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
564
|
+
props = _objectWithoutProperties(_ref, _excluded$c);
|
|
565
565
|
|
|
566
566
|
var theme = /*#__PURE__*/useTheme();
|
|
567
|
-
return /*#__PURE__*/jsx(Icon, _objectSpread$
|
|
567
|
+
return /*#__PURE__*/jsx(Icon, _objectSpread$f(_objectSpread$f({}, props), {}, {
|
|
568
568
|
color: color === 'inherit' ? 'inherit' : theme.kitt.typography.colors[color]
|
|
569
569
|
}));
|
|
570
570
|
}
|
|
571
571
|
|
|
572
572
|
function TypographyIconInheritColor(props) {
|
|
573
573
|
var color = useTypographyColor();
|
|
574
|
-
return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread$
|
|
574
|
+
return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread$f({
|
|
575
575
|
color: color
|
|
576
576
|
}, props));
|
|
577
577
|
}
|
|
@@ -581,19 +581,19 @@ function TypographyIcon(_ref2) {
|
|
|
581
581
|
props = _objectWithoutProperties(_ref2, _excluded2$2);
|
|
582
582
|
|
|
583
583
|
if (color) {
|
|
584
|
-
return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread$
|
|
584
|
+
return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread$f({
|
|
585
585
|
color: color
|
|
586
586
|
}, props));
|
|
587
587
|
}
|
|
588
588
|
|
|
589
|
-
return /*#__PURE__*/jsx(TypographyIconInheritColor, _objectSpread$
|
|
589
|
+
return /*#__PURE__*/jsx(TypographyIconInheritColor, _objectSpread$f({}, props));
|
|
590
590
|
}
|
|
591
591
|
|
|
592
|
-
var _excluded$
|
|
592
|
+
var _excluded$b = ["type", "isDisabled", "$isStretch", "icon", "children"];
|
|
593
593
|
|
|
594
|
-
function ownKeys$
|
|
594
|
+
function ownKeys$e(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
595
595
|
|
|
596
|
-
function _objectSpread$
|
|
596
|
+
function _objectSpread$e(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$e(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$e(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
597
597
|
|
|
598
598
|
var getTextColorByType = function (type) {
|
|
599
599
|
switch (type) {
|
|
@@ -701,7 +701,7 @@ function ButtonContentChildren(_ref4) {
|
|
|
701
701
|
color: isWebSubtle ? 'inherit' : color
|
|
702
702
|
};
|
|
703
703
|
return /*#__PURE__*/jsxs(StyledChildrenWithIcon, {
|
|
704
|
-
children: [icon && iconPosition === 'left' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
704
|
+
children: [icon && iconPosition === 'left' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread$e(_objectSpread$e({}, buttonIconSharedProps), {}, {
|
|
705
705
|
testID: "button-left-icon",
|
|
706
706
|
icon: icon
|
|
707
707
|
})) : null, /*#__PURE__*/jsx(StyledButtonText, {
|
|
@@ -712,7 +712,7 @@ function ButtonContentChildren(_ref4) {
|
|
|
712
712
|
,
|
|
713
713
|
color: isWebSubtle ? undefined : color,
|
|
714
714
|
children: children
|
|
715
|
-
}), icon && iconPosition === 'right' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
715
|
+
}), icon && iconPosition === 'right' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread$e(_objectSpread$e({}, buttonIconSharedProps), {}, {
|
|
716
716
|
icon: icon
|
|
717
717
|
})) : null]
|
|
718
718
|
});
|
|
@@ -736,14 +736,14 @@ function ButtonContent(_ref7) {
|
|
|
736
736
|
$isStretch = _ref7.$isStretch,
|
|
737
737
|
icon = _ref7.icon,
|
|
738
738
|
children = _ref7.children,
|
|
739
|
-
props = _objectWithoutProperties(_ref7, _excluded$
|
|
739
|
+
props = _objectWithoutProperties(_ref7, _excluded$b);
|
|
740
740
|
|
|
741
741
|
var color = isDisabled ? 'black-light' : getTextColorByType(type);
|
|
742
742
|
return /*#__PURE__*/jsx(ButtonContentContainer, {
|
|
743
743
|
$isSubtle: isSubtle(type),
|
|
744
744
|
$isStretch: $isStretch,
|
|
745
745
|
$isIconOnly: Boolean(!children && icon),
|
|
746
|
-
children: /*#__PURE__*/jsx(ButtonContentChildren, _objectSpread$
|
|
746
|
+
children: /*#__PURE__*/jsx(ButtonContentChildren, _objectSpread$e(_objectSpread$e({
|
|
747
747
|
icon: icon,
|
|
748
748
|
type: type,
|
|
749
749
|
isDisabled: isDisabled,
|
|
@@ -799,7 +799,7 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
799
799
|
});
|
|
800
800
|
});
|
|
801
801
|
|
|
802
|
-
var Container$
|
|
802
|
+
var Container$4 = /*#__PURE__*/styled$1(View).withConfig({
|
|
803
803
|
displayName: "Card__Container",
|
|
804
804
|
componentId: "kitt-universal__sc-1n9psug-0"
|
|
805
805
|
})(["background-color:", ";padding:", ";border-radius:", ";border-width:", ";border-color:", ";"], function (_ref) {
|
|
@@ -823,7 +823,7 @@ var Container$5 = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
823
823
|
function Card(_ref6) {
|
|
824
824
|
var children = _ref6.children,
|
|
825
825
|
type = _ref6.type;
|
|
826
|
-
return /*#__PURE__*/jsx(Container$
|
|
826
|
+
return /*#__PURE__*/jsx(Container$4, {
|
|
827
827
|
type: type,
|
|
828
828
|
children: children
|
|
829
829
|
});
|
|
@@ -869,20 +869,20 @@ var defaultOpenLinkBehavior = {
|
|
|
869
869
|
web: 'targetBlank'
|
|
870
870
|
};
|
|
871
871
|
|
|
872
|
-
var _excluded$
|
|
872
|
+
var _excluded$a = ["as", "href", "openLinkBehavior", "onPress"];
|
|
873
873
|
|
|
874
|
-
function ownKeys$
|
|
874
|
+
function ownKeys$d(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
875
875
|
|
|
876
|
-
function _objectSpread$
|
|
876
|
+
function _objectSpread$d(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$d(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$d(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
877
877
|
function ExternalLink(_ref) {
|
|
878
878
|
var Component = _ref.as,
|
|
879
879
|
href = _ref.href,
|
|
880
880
|
_ref$openLinkBehavior = _ref.openLinkBehavior,
|
|
881
881
|
openLinkBehavior = _ref$openLinkBehavior === void 0 ? defaultOpenLinkBehavior : _ref$openLinkBehavior,
|
|
882
882
|
onPress = _ref.onPress,
|
|
883
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
883
|
+
rest = _objectWithoutProperties(_ref, _excluded$a);
|
|
884
884
|
|
|
885
|
-
return /*#__PURE__*/jsx(Component, _objectSpread$
|
|
885
|
+
return /*#__PURE__*/jsx(Component, _objectSpread$d(_objectSpread$d({}, rest), {}, {
|
|
886
886
|
href: href,
|
|
887
887
|
hrefAttrs: (openLinkBehavior === null || openLinkBehavior === void 0 ? void 0 : openLinkBehavior.web) === 'targetSelf' ? undefined : {
|
|
888
888
|
target: '_blank',
|
|
@@ -897,6 +897,7 @@ var getColorFromState = function (state) {
|
|
|
897
897
|
case 'invalid':
|
|
898
898
|
return 'danger';
|
|
899
899
|
|
|
900
|
+
case 'valid':
|
|
900
901
|
default:
|
|
901
902
|
return 'black-light';
|
|
902
903
|
}
|
|
@@ -957,43 +958,47 @@ function InputField(_ref4) {
|
|
|
957
958
|
});
|
|
958
959
|
}
|
|
959
960
|
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
963
|
-
isFocused = _useState2[0],
|
|
964
|
-
setIsFocused = _useState2[1];
|
|
961
|
+
function getIconColor(state, disabled) {
|
|
962
|
+
if (disabled) return 'black-light';
|
|
965
963
|
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
setIsPasswordVisible = _useState4[1];
|
|
964
|
+
switch (state) {
|
|
965
|
+
case 'invalid':
|
|
966
|
+
return 'danger';
|
|
970
967
|
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
handleInputFocus: function handleInputFocus() {
|
|
974
|
-
return setIsFocused(true);
|
|
975
|
-
},
|
|
976
|
-
handleInputBlur: function handleInputBlur() {
|
|
977
|
-
return setIsFocused(false);
|
|
978
|
-
},
|
|
979
|
-
togglePasswordVisibility: function togglePasswordVisibility() {
|
|
980
|
-
return setIsPasswordVisible(function (isVisible) {
|
|
981
|
-
return !isVisible;
|
|
982
|
-
});
|
|
983
|
-
},
|
|
984
|
-
isPasswordVisible: isPasswordVisible
|
|
985
|
-
};
|
|
986
|
-
};
|
|
968
|
+
case 'valid':
|
|
969
|
+
return 'success';
|
|
987
970
|
|
|
988
|
-
|
|
971
|
+
default:
|
|
972
|
+
return undefined;
|
|
973
|
+
}
|
|
974
|
+
}
|
|
989
975
|
|
|
990
|
-
function
|
|
976
|
+
function InputIcon(_ref) {
|
|
977
|
+
var icon = _ref.icon,
|
|
978
|
+
state = _ref.state,
|
|
979
|
+
disabled = _ref.disabled;
|
|
980
|
+
var theme = /*#__PURE__*/useTheme();
|
|
981
|
+
var color = getIconColor(state, disabled);
|
|
982
|
+
return /*#__PURE__*/jsx(TypographyIcon, {
|
|
983
|
+
color: color,
|
|
984
|
+
icon: icon,
|
|
985
|
+
size: theme.kitt.forms.input.icon.size
|
|
986
|
+
});
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
function ownKeys$c(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
990
|
+
|
|
991
|
+
function _objectSpread$c(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$c(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$c(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
992
|
+
function InputPressable(_ref) {
|
|
993
|
+
var props = _extends({}, _ref);
|
|
994
|
+
|
|
995
|
+
return /*#__PURE__*/jsx(Pressable, _objectSpread$c({}, props));
|
|
996
|
+
}
|
|
991
997
|
|
|
992
|
-
function _objectSpread$a(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$a(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$a(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
993
998
|
var styledTextInputMixin = /*#__PURE__*/css(["background-color:", ";border-width:", ";border-radius:", ";border-color:", ";font-size:", ";color:", ";font-family:", ";"], function (_ref) {
|
|
994
999
|
var theme = _ref.theme,
|
|
995
|
-
state = _ref
|
|
996
|
-
return state === 'disabled' ? theme.kitt.forms.input.states.disabled.backgroundColor : theme.kitt.forms.input.states["default"].backgroundColor;
|
|
1000
|
+
$state = _ref.$state;
|
|
1001
|
+
return $state === 'disabled' ? theme.kitt.forms.input.states.disabled.backgroundColor : theme.kitt.forms.input.states["default"].backgroundColor;
|
|
997
1002
|
}, function (_ref2) {
|
|
998
1003
|
var theme = _ref2.theme;
|
|
999
1004
|
return theme.kitt.forms.input.borderWidth;
|
|
@@ -1002,150 +1007,161 @@ var styledTextInputMixin = /*#__PURE__*/css(["background-color:", ";border-width
|
|
|
1002
1007
|
return theme.kitt.forms.input.borderRadius;
|
|
1003
1008
|
}, function (_ref4) {
|
|
1004
1009
|
var theme = _ref4.theme,
|
|
1005
|
-
state = _ref4
|
|
1006
|
-
return theme.kitt.forms.input.states[state].borderColor;
|
|
1010
|
+
$state = _ref4.$state;
|
|
1011
|
+
return theme.kitt.forms.input.states[$state].borderColor;
|
|
1007
1012
|
}, function (_ref5) {
|
|
1008
1013
|
var theme = _ref5.theme;
|
|
1009
1014
|
var typeConfigKey = getTypographyTypeConfigKey(theme);
|
|
1010
1015
|
return theme.kitt.typography.types.bodies.configs.body[typeConfigKey].fontSize;
|
|
1011
1016
|
}, function (_ref6) {
|
|
1012
1017
|
var theme = _ref6.theme,
|
|
1013
|
-
state = _ref6
|
|
1014
|
-
return theme.kitt.typography.colors[theme.kitt.forms.input.states[state].color];
|
|
1018
|
+
$state = _ref6.$state;
|
|
1019
|
+
return theme.kitt.typography.colors[theme.kitt.forms.input.states[$state].color];
|
|
1015
1020
|
}, function (_ref7) {
|
|
1016
1021
|
var theme = _ref7.theme;
|
|
1017
1022
|
return theme.kitt.typography.types.bodies.fontFamily.regular;
|
|
1018
1023
|
});
|
|
1019
|
-
|
|
1020
|
-
|
|
1024
|
+
|
|
1025
|
+
function getInputUIState(_ref) {
|
|
1026
|
+
var isFocused = _ref.isFocused,
|
|
1027
|
+
isDisabled = _ref.isDisabled,
|
|
1028
|
+
formState = _ref.formState;
|
|
1029
|
+
if (isDisabled) return 'disabled';
|
|
1030
|
+
if (isFocused) return 'focus';
|
|
1031
|
+
if (formState === 'invalid') return 'invalid';
|
|
1032
|
+
return 'default';
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
var _excluded$9 = ["id", "right", "minHeight", "state", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoCompleteType", "keyboardType", "onFocus", "onBlur"];
|
|
1036
|
+
|
|
1037
|
+
function ownKeys$b(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1038
|
+
|
|
1039
|
+
function _objectSpread$b(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$b(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$b(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1040
|
+
var StyledTextInput = /*#__PURE__*/styled$1(TextInput).withConfig({
|
|
1041
|
+
displayName: "InputText__StyledTextInput",
|
|
1021
1042
|
componentId: "kitt-universal__sc-uke279-0"
|
|
1022
|
-
})(["", " padding:", ";line-height:", ";min-height:", "px;"], styledTextInputMixin, function (
|
|
1023
|
-
var theme =
|
|
1024
|
-
multiline =
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1043
|
+
})(["", " padding:", ";line-height:", ";min-height:", "px;"], styledTextInputMixin, function (_ref) {
|
|
1044
|
+
var theme = _ref.theme,
|
|
1045
|
+
multiline = _ref.multiline;
|
|
1046
|
+
|
|
1047
|
+
if (!multiline && "web" === 'ios') {
|
|
1048
|
+
return theme.kitt.forms.input.padding.iOSSingleLine;
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
return theme.kitt.forms.input.padding["default"];
|
|
1052
|
+
}, function (_ref2) {
|
|
1053
|
+
var theme = _ref2.theme,
|
|
1054
|
+
multiline = _ref2.multiline;
|
|
1029
1055
|
if (!multiline && "web" === 'ios') return 0;
|
|
1030
1056
|
var typeConfigKey = getTypographyTypeConfigKey(theme);
|
|
1031
1057
|
return theme.kitt.typography.types.bodies.configs.body[typeConfigKey].lineHeight;
|
|
1032
|
-
}, function (
|
|
1033
|
-
var minHeight =
|
|
1034
|
-
return minHeight;
|
|
1058
|
+
}, function (_ref3) {
|
|
1059
|
+
var $minHeight = _ref3.$minHeight;
|
|
1060
|
+
return $minHeight;
|
|
1035
1061
|
});
|
|
1036
|
-
var
|
|
1037
|
-
displayName: "
|
|
1062
|
+
var InputTextContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
1063
|
+
displayName: "InputText__InputTextContainer",
|
|
1038
1064
|
componentId: "kitt-universal__sc-uke279-1"
|
|
1039
|
-
})(["
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
}, function (_ref12) {
|
|
1043
|
-
var theme = _ref12.theme;
|
|
1044
|
-
return theme.kitt.forms.input.marginBottom;
|
|
1045
|
-
});
|
|
1046
|
-
var PasswordButtonContainer = /*#__PURE__*/styled$1(Pressable).withConfig({
|
|
1047
|
-
displayName: "InputText__PasswordButtonContainer",
|
|
1065
|
+
})(["position:relative;"]);
|
|
1066
|
+
var RightInputContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
1067
|
+
displayName: "InputText__RightInputContainer",
|
|
1048
1068
|
componentId: "kitt-universal__sc-uke279-2"
|
|
1049
|
-
})(["position:absolute;right:0;top:0;bottom:0;justify-content:center;padding:
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1069
|
+
})(["position:absolute;right:0;top:0;bottom:0;justify-content:center;padding:10px;"]);
|
|
1070
|
+
var InputText = /*#__PURE__*/forwardRef(function (_ref4, ref) {
|
|
1071
|
+
var id = _ref4.id,
|
|
1072
|
+
right = _ref4.right,
|
|
1073
|
+
_ref4$minHeight = _ref4.minHeight,
|
|
1074
|
+
minHeight = _ref4$minHeight === void 0 ? 0 : _ref4$minHeight,
|
|
1075
|
+
formState = _ref4.state,
|
|
1076
|
+
internalForceState = _ref4.internalForceState,
|
|
1077
|
+
_ref4$disabled = _ref4.disabled,
|
|
1078
|
+
disabled = _ref4$disabled === void 0 ? false : _ref4$disabled,
|
|
1079
|
+
_ref4$autoCorrect = _ref4.autoCorrect,
|
|
1080
|
+
autoCorrect = _ref4$autoCorrect === void 0 ? true : _ref4$autoCorrect,
|
|
1081
|
+
_ref4$textContentType = _ref4.textContentType,
|
|
1082
|
+
textContentType = _ref4$textContentType === void 0 ? 'none' : _ref4$textContentType,
|
|
1083
|
+
_ref4$autoCompleteTyp = _ref4.autoCompleteType,
|
|
1084
|
+
autoCompleteType = _ref4$autoCompleteTyp === void 0 ? 'off' : _ref4$autoCompleteTyp,
|
|
1085
|
+
_ref4$keyboardType = _ref4.keyboardType,
|
|
1086
|
+
keyboardType = _ref4$keyboardType === void 0 ? 'default' : _ref4$keyboardType,
|
|
1087
|
+
_onFocus = _ref4.onFocus,
|
|
1088
|
+
_onBlur = _ref4.onBlur,
|
|
1089
|
+
props = _objectWithoutProperties(_ref4, _excluded$9);
|
|
1053
1090
|
|
|
1054
|
-
var
|
|
1055
|
-
var isDisabled = _ref14.isDisabled,
|
|
1056
|
-
isFocused = _ref14.isFocused,
|
|
1057
|
-
formState = _ref14.formState;
|
|
1058
|
-
if (isDisabled) return 'disabled';
|
|
1059
|
-
if (isFocused) return 'focus';
|
|
1060
|
-
if (formState === 'invalid') return 'invalid';
|
|
1061
|
-
return 'default';
|
|
1062
|
-
};
|
|
1091
|
+
var theme = /*#__PURE__*/useTheme();
|
|
1063
1092
|
|
|
1064
|
-
var
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
username: 'default'
|
|
1069
|
-
};
|
|
1070
|
-
var autoCompleteTypeByType = {
|
|
1071
|
-
text: 'off',
|
|
1072
|
-
email: 'email',
|
|
1073
|
-
password: 'password',
|
|
1074
|
-
username: 'name'
|
|
1075
|
-
};
|
|
1076
|
-
var autoCorrectByType = {
|
|
1077
|
-
text: true,
|
|
1078
|
-
email: false,
|
|
1079
|
-
password: false,
|
|
1080
|
-
username: false
|
|
1081
|
-
};
|
|
1082
|
-
var textContentTypeByType = {
|
|
1083
|
-
text: 'none',
|
|
1084
|
-
email: 'emailAddress',
|
|
1085
|
-
password: 'password',
|
|
1086
|
-
username: 'username'
|
|
1087
|
-
};
|
|
1088
|
-
var InputText = /*#__PURE__*/forwardRef(function (_ref15, ref) {
|
|
1089
|
-
var id = _ref15.id,
|
|
1090
|
-
_ref15$minHeight = _ref15.minHeight,
|
|
1091
|
-
minHeight = _ref15$minHeight === void 0 ? 0 : _ref15$minHeight,
|
|
1092
|
-
type = _ref15.type,
|
|
1093
|
-
formState = _ref15.state,
|
|
1094
|
-
internalForceState = _ref15.internalForceState,
|
|
1095
|
-
_ref15$disabled = _ref15.disabled,
|
|
1096
|
-
disabled = _ref15$disabled === void 0 ? false : _ref15$disabled,
|
|
1097
|
-
_onFocus = _ref15.onFocus,
|
|
1098
|
-
_onBlur = _ref15.onBlur,
|
|
1099
|
-
props = _objectWithoutProperties(_ref15, _excluded$8);
|
|
1100
|
-
|
|
1101
|
-
var _useInputText = useInputText(),
|
|
1102
|
-
isFocused = _useInputText.isFocused,
|
|
1103
|
-
handleInputBlur = _useInputText.handleInputBlur,
|
|
1104
|
-
handleInputFocus = _useInputText.handleInputFocus,
|
|
1105
|
-
isPasswordVisible = _useInputText.isPasswordVisible,
|
|
1106
|
-
togglePasswordVisibility = _useInputText.togglePasswordVisibility;
|
|
1093
|
+
var _useState = useState(false),
|
|
1094
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
1095
|
+
isFocused = _useState2[0],
|
|
1096
|
+
setIsFocused = _useState2[1];
|
|
1107
1097
|
|
|
1108
|
-
var
|
|
1109
|
-
var state = internalForceState || getInputState({
|
|
1098
|
+
var state = internalForceState || getInputUIState({
|
|
1110
1099
|
isFocused: isFocused,
|
|
1111
1100
|
isDisabled: disabled,
|
|
1112
1101
|
formState: formState
|
|
1113
1102
|
});
|
|
1114
|
-
return /*#__PURE__*/jsxs(
|
|
1115
|
-
children: [/*#__PURE__*/jsx(
|
|
1103
|
+
return /*#__PURE__*/jsxs(InputTextContainer, {
|
|
1104
|
+
children: [/*#__PURE__*/jsx(StyledTextInput, _objectSpread$b(_objectSpread$b({
|
|
1116
1105
|
ref: ref,
|
|
1117
1106
|
nativeID: id,
|
|
1118
1107
|
editable: !disabled,
|
|
1119
|
-
keyboardType:
|
|
1120
|
-
autoCompleteType:
|
|
1121
|
-
autoCorrect:
|
|
1122
|
-
minHeight: minHeight,
|
|
1123
|
-
textContentType:
|
|
1124
|
-
placeholderTextColor: theme.kitt.
|
|
1125
|
-
selectionColor: theme.kitt.forms.input.
|
|
1126
|
-
secureTextEntry: type === 'password' && !isPasswordVisible
|
|
1108
|
+
keyboardType: keyboardType,
|
|
1109
|
+
autoCompleteType: autoCompleteType,
|
|
1110
|
+
autoCorrect: autoCorrect,
|
|
1111
|
+
$minHeight: minHeight,
|
|
1112
|
+
textContentType: textContentType,
|
|
1113
|
+
placeholderTextColor: theme.kitt.forms.input.color.placeholder,
|
|
1114
|
+
selectionColor: theme.kitt.forms.input.color.selection
|
|
1127
1115
|
}, props), {}, {
|
|
1128
|
-
state: state,
|
|
1116
|
+
$state: state,
|
|
1129
1117
|
onFocus: function onFocus(e) {
|
|
1130
|
-
|
|
1118
|
+
setIsFocused(true);
|
|
1131
1119
|
if (_onFocus) _onFocus(e);
|
|
1132
1120
|
},
|
|
1133
1121
|
onBlur: function onBlur(e) {
|
|
1134
|
-
|
|
1122
|
+
setIsFocused(false);
|
|
1135
1123
|
if (_onBlur) _onBlur(e);
|
|
1136
1124
|
}
|
|
1137
|
-
})),
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
1141
|
-
icon: isPasswordVisible ? /*#__PURE__*/jsx(EyeIcon, {}) : /*#__PURE__*/jsx(EyeOffIcon, {}),
|
|
1142
|
-
size: theme.kitt.forms.input.passwordButtonIconSize,
|
|
1143
|
-
color: theme.kitt.forms.input.states[state].passwordButtonIconColor
|
|
1144
|
-
})
|
|
1145
|
-
})]
|
|
1125
|
+
})), right ? /*#__PURE__*/jsx(RightInputContainer, {
|
|
1126
|
+
children: right
|
|
1127
|
+
}) : null]
|
|
1146
1128
|
});
|
|
1147
1129
|
});
|
|
1148
1130
|
|
|
1131
|
+
var _excluded$8 = ["isPasswordDefaultVisible", "right"];
|
|
1132
|
+
|
|
1133
|
+
function ownKeys$a(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1134
|
+
|
|
1135
|
+
function _objectSpread$a(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$a(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$a(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1136
|
+
function InputPassword(_ref) {
|
|
1137
|
+
var isPasswordDefaultVisible = _ref.isPasswordDefaultVisible,
|
|
1138
|
+
right = _ref.right,
|
|
1139
|
+
props = _objectWithoutProperties(_ref, _excluded$8);
|
|
1140
|
+
|
|
1141
|
+
var _useState = useState(Boolean(isPasswordDefaultVisible)),
|
|
1142
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
1143
|
+
isVisible = _useState2[0],
|
|
1144
|
+
setIsVisible = _useState2[1];
|
|
1145
|
+
|
|
1146
|
+
return /*#__PURE__*/jsx(InputText, _objectSpread$a(_objectSpread$a({}, props), {}, {
|
|
1147
|
+
textContentType: "password",
|
|
1148
|
+
autoCompleteType: "password",
|
|
1149
|
+
autoCorrect: false,
|
|
1150
|
+
secureTextEntry: !isVisible,
|
|
1151
|
+
right: right || /*#__PURE__*/jsx(InputPressable, {
|
|
1152
|
+
accessibilityRole: "button",
|
|
1153
|
+
onPress: function onPress() {
|
|
1154
|
+
return setIsVisible(function (prev) {
|
|
1155
|
+
return !prev;
|
|
1156
|
+
});
|
|
1157
|
+
},
|
|
1158
|
+
children: /*#__PURE__*/jsx(InputIcon, {
|
|
1159
|
+
icon: isVisible ? /*#__PURE__*/jsx(EyeOffIcon, {}) : /*#__PURE__*/jsx(EyeIcon, {})
|
|
1160
|
+
})
|
|
1161
|
+
})
|
|
1162
|
+
}));
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1149
1165
|
function Label(_ref) {
|
|
1150
1166
|
var htmlFor = _ref.htmlFor,
|
|
1151
1167
|
children = _ref.children;
|
|
@@ -1261,13 +1277,11 @@ function TextArea(_ref) {
|
|
|
1261
1277
|
var props = _extends({}, _ref);
|
|
1262
1278
|
|
|
1263
1279
|
var theme = /*#__PURE__*/useTheme();
|
|
1264
|
-
return /*#__PURE__*/jsx(InputText, _objectSpread$9(
|
|
1280
|
+
return /*#__PURE__*/jsx(InputText, _objectSpread$9({
|
|
1265
1281
|
multiline: true,
|
|
1266
|
-
textAlignVertical: "top"
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
minHeight: theme.kitt.forms.input.textAreaMinHeight
|
|
1270
|
-
}));
|
|
1282
|
+
textAlignVertical: "top",
|
|
1283
|
+
minHeight: theme.kitt.forms.textArea.minHeight
|
|
1284
|
+
}, props));
|
|
1271
1285
|
}
|
|
1272
1286
|
|
|
1273
1287
|
var Body = /*#__PURE__*/styled$1(View).withConfig({
|
|
@@ -1449,7 +1463,7 @@ function StyleWebWrapper(_ref) {
|
|
|
1449
1463
|
}));
|
|
1450
1464
|
}
|
|
1451
1465
|
|
|
1452
|
-
var _excluded$6 = ["color"];
|
|
1466
|
+
var _excluded$6 = ["color", "disabled"];
|
|
1453
1467
|
|
|
1454
1468
|
function ownKeys$7(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1455
1469
|
|
|
@@ -1459,20 +1473,25 @@ var PressableIconButtonWebWrapper = withTheme( /*#__PURE__*/styled("div")({
|
|
|
1459
1473
|
"class": "p1nlccvg",
|
|
1460
1474
|
vars: {
|
|
1461
1475
|
"p1nlccvg-0": [function (_ref) {
|
|
1462
|
-
var theme = _ref.theme
|
|
1463
|
-
|
|
1476
|
+
var theme = _ref.theme,
|
|
1477
|
+
$isDisabled = _ref.$isDisabled;
|
|
1478
|
+
return $isDisabled ? 1 : theme.kitt.iconButton.scale.base.hover;
|
|
1464
1479
|
}],
|
|
1465
1480
|
"p1nlccvg-2": [function (_ref2) {
|
|
1466
|
-
var theme = _ref2.theme
|
|
1467
|
-
|
|
1481
|
+
var theme = _ref2.theme,
|
|
1482
|
+
$isDisabled = _ref2.$isDisabled;
|
|
1483
|
+
return $isDisabled ? 1 : theme.kitt.iconButton.scale.medium.hover;
|
|
1468
1484
|
}],
|
|
1469
1485
|
"p1nlccvg-3": [function (_ref3) {
|
|
1470
|
-
var theme = _ref3.theme
|
|
1471
|
-
|
|
1486
|
+
var theme = _ref3.theme,
|
|
1487
|
+
$isDisabled = _ref3.$isDisabled;
|
|
1488
|
+
return $isDisabled ? 1 : theme.kitt.iconButton.scale.base.active;
|
|
1472
1489
|
}],
|
|
1473
1490
|
"p1nlccvg-4": [function (_ref4) {
|
|
1474
1491
|
var theme = _ref4.theme,
|
|
1475
|
-
$isWhite = _ref4.$isWhite
|
|
1492
|
+
$isWhite = _ref4.$isWhite,
|
|
1493
|
+
$isDisabled = _ref4.$isDisabled;
|
|
1494
|
+
if ($isDisabled) return theme.kitt.iconButton.disabled.backgroundColor;
|
|
1476
1495
|
var _theme$kitt$iconButto = theme.kitt.iconButton,
|
|
1477
1496
|
white = _theme$kitt$iconButto.white,
|
|
1478
1497
|
defaultIconButton = _theme$kitt$iconButto["default"];
|
|
@@ -1507,12 +1526,16 @@ var StyledPressableIconButton = /*#__PURE__*/styled$1(Pressable).withConfig({
|
|
|
1507
1526
|
});
|
|
1508
1527
|
function PressableIconButton(_ref9) {
|
|
1509
1528
|
var color = _ref9.color,
|
|
1529
|
+
disabled = _ref9.disabled,
|
|
1510
1530
|
props = _objectWithoutProperties(_ref9, _excluded$6);
|
|
1511
1531
|
|
|
1512
1532
|
return /*#__PURE__*/jsx(StyleWebWrapper, {
|
|
1513
1533
|
as: PressableIconButtonWebWrapper,
|
|
1514
1534
|
$isWhite: color === 'white',
|
|
1515
|
-
|
|
1535
|
+
$isDisabled: Boolean(disabled),
|
|
1536
|
+
children: /*#__PURE__*/jsx(StyledPressableIconButton, _objectSpread$7(_objectSpread$7({}, props), {}, {
|
|
1537
|
+
disabled: disabled
|
|
1538
|
+
}))
|
|
1516
1539
|
});
|
|
1517
1540
|
}
|
|
1518
1541
|
|
|
@@ -1568,10 +1591,16 @@ function IconButton(_ref7) {
|
|
|
1568
1591
|
var icon = _ref7.icon,
|
|
1569
1592
|
color = _ref7.color,
|
|
1570
1593
|
disabled = _ref7.disabled,
|
|
1594
|
+
testID = _ref7.testID,
|
|
1595
|
+
accessibilityLabel = _ref7.accessibilityLabel,
|
|
1596
|
+
accessibilityRole = _ref7.accessibilityRole,
|
|
1571
1597
|
onPress = _ref7.onPress;
|
|
1572
1598
|
return /*#__PURE__*/jsx(PressableAnimatedContainer, {
|
|
1573
1599
|
color: color,
|
|
1574
1600
|
disabled: disabled,
|
|
1601
|
+
testID: testID,
|
|
1602
|
+
accessibilityLabel: accessibilityLabel,
|
|
1603
|
+
accessibilityRole: accessibilityRole,
|
|
1575
1604
|
onPress: onPress,
|
|
1576
1605
|
children: /*#__PURE__*/jsx(IconButtonContent, {
|
|
1577
1606
|
disabled: disabled,
|
|
@@ -2746,54 +2775,137 @@ var feedbackMessageLateOceanTheme = {
|
|
|
2746
2775
|
}
|
|
2747
2776
|
};
|
|
2748
2777
|
|
|
2749
|
-
var
|
|
2750
|
-
|
|
2751
|
-
|
|
2778
|
+
var calcLineHeight = function (fontSize, lineHeightMultiplier) {
|
|
2779
|
+
return Math.round(fontSize * lineHeightMultiplier);
|
|
2780
|
+
};
|
|
2781
|
+
var createTypographyTypeConfig = function (lineHeightMultiplier, baseAndSmallFontSize, mediumAndWideFontSize) {
|
|
2782
|
+
return {
|
|
2783
|
+
baseAndSmall: {
|
|
2784
|
+
fontSize: "".concat(baseAndSmallFontSize, "px"),
|
|
2785
|
+
lineHeight: "".concat(calcLineHeight(baseAndSmallFontSize, lineHeightMultiplier), "px")
|
|
2786
|
+
},
|
|
2787
|
+
mediumAndWide: {
|
|
2788
|
+
fontSize: "".concat(mediumAndWideFontSize, "px"),
|
|
2789
|
+
lineHeight: "".concat(calcLineHeight(mediumAndWideFontSize, lineHeightMultiplier), "px")
|
|
2790
|
+
}
|
|
2791
|
+
};
|
|
2792
|
+
};
|
|
2793
|
+
var typographyLateOceanTheme = {
|
|
2794
|
+
colors: {
|
|
2795
|
+
black: lateOceanColorPalette.black1000,
|
|
2796
|
+
'black-light': lateOceanColorPalette.black555,
|
|
2797
|
+
white: lateOceanColorPalette.white,
|
|
2798
|
+
'white-light': lateOceanColorPalette.white,
|
|
2799
|
+
primary: lateOceanColorPalette.lateOcean,
|
|
2800
|
+
'primary-light': lateOceanColorPalette.lateOceanLight1,
|
|
2801
|
+
accent: lateOceanColorPalette.warmEmbrace,
|
|
2802
|
+
success: lateOceanColorPalette.viride,
|
|
2803
|
+
danger: lateOceanColorPalette.englishVermillon
|
|
2804
|
+
},
|
|
2805
|
+
types: {
|
|
2806
|
+
headers: {
|
|
2807
|
+
fontFamily: {
|
|
2808
|
+
regular: 'Moderat',
|
|
2809
|
+
bold: 'Moderat'
|
|
2810
|
+
},
|
|
2811
|
+
fontWeight: 400,
|
|
2812
|
+
fontStyle: 'normal',
|
|
2813
|
+
configs: {
|
|
2814
|
+
// also known as xxlarge
|
|
2815
|
+
header1: createTypographyTypeConfig(1.3, 38, 62),
|
|
2816
|
+
// also known as xlarge
|
|
2817
|
+
header2: createTypographyTypeConfig(1.3, 32, 48),
|
|
2818
|
+
// also known as medium
|
|
2819
|
+
header3: createTypographyTypeConfig(1.3, 24, 36),
|
|
2820
|
+
// also known as xsmall
|
|
2821
|
+
header4: createTypographyTypeConfig(1.3, 18, 24),
|
|
2822
|
+
// also known as xxsmall
|
|
2823
|
+
header5: createTypographyTypeConfig(1.3, 18, 18)
|
|
2824
|
+
}
|
|
2825
|
+
},
|
|
2826
|
+
bodies: {
|
|
2827
|
+
fontFamily: {
|
|
2828
|
+
regular: 'Noto Sans',
|
|
2829
|
+
bold: 'Noto Sans'
|
|
2830
|
+
},
|
|
2831
|
+
fontWeight: {
|
|
2832
|
+
regular: 400,
|
|
2833
|
+
bold: 700
|
|
2834
|
+
},
|
|
2835
|
+
fontStyle: {
|
|
2836
|
+
regular: 'normal',
|
|
2837
|
+
bold: 'normal'
|
|
2838
|
+
},
|
|
2839
|
+
configs: {
|
|
2840
|
+
'body-large': createTypographyTypeConfig(1.6, 18, 24),
|
|
2841
|
+
'body-medium': createTypographyTypeConfig(1.6, 18, 18),
|
|
2842
|
+
body: createTypographyTypeConfig(1.6, 16, 16),
|
|
2843
|
+
'body-small': createTypographyTypeConfig(1.6, 14, 14),
|
|
2844
|
+
'body-xsmall': createTypographyTypeConfig(1.6, 12, 12)
|
|
2845
|
+
}
|
|
2846
|
+
}
|
|
2847
|
+
},
|
|
2848
|
+
link: {
|
|
2849
|
+
disabledColor: lateOceanColorPalette.black200
|
|
2850
|
+
}
|
|
2752
2851
|
};
|
|
2753
2852
|
|
|
2754
2853
|
var inputStatesStyle = {
|
|
2755
2854
|
"default": {
|
|
2756
|
-
backgroundColor:
|
|
2855
|
+
backgroundColor: colorsLateOceanTheme.uiBackgroundLight,
|
|
2856
|
+
borderColor: colorsLateOceanTheme.separator,
|
|
2857
|
+
color: 'black'
|
|
2858
|
+
},
|
|
2859
|
+
pending: {
|
|
2860
|
+
backgroundColor: colorsLateOceanTheme.uiBackgroundLight,
|
|
2861
|
+
borderColor: colorsLateOceanTheme.separator,
|
|
2862
|
+
color: 'black'
|
|
2863
|
+
},
|
|
2864
|
+
valid: {
|
|
2865
|
+
backgroundColor: colorsLateOceanTheme.uiBackgroundLight,
|
|
2757
2866
|
borderColor: lateOceanColorPalette.black100,
|
|
2758
|
-
color: 'black'
|
|
2759
|
-
passwordButtonIconColor: 'black'
|
|
2867
|
+
color: 'black'
|
|
2760
2868
|
},
|
|
2761
2869
|
hover: {
|
|
2762
2870
|
borderColor: lateOceanColorPalette.black200,
|
|
2763
|
-
color: 'black'
|
|
2764
|
-
passwordButtonIconColor: 'black'
|
|
2871
|
+
color: 'black'
|
|
2765
2872
|
},
|
|
2766
2873
|
focus: {
|
|
2767
|
-
borderColor:
|
|
2768
|
-
color: 'black'
|
|
2769
|
-
passwordButtonIconColor: 'black'
|
|
2874
|
+
borderColor: colorsLateOceanTheme.primary,
|
|
2875
|
+
color: 'black'
|
|
2770
2876
|
},
|
|
2771
2877
|
disabled: {
|
|
2772
|
-
backgroundColor:
|
|
2773
|
-
borderColor:
|
|
2774
|
-
color: 'black-light'
|
|
2775
|
-
passwordButtonIconColor: 'black-light'
|
|
2878
|
+
backgroundColor: colorsLateOceanTheme.disabled,
|
|
2879
|
+
borderColor: colorsLateOceanTheme.separator,
|
|
2880
|
+
color: 'black-light'
|
|
2776
2881
|
},
|
|
2777
2882
|
invalid: {
|
|
2778
|
-
borderColor:
|
|
2779
|
-
color: 'black'
|
|
2780
|
-
passwordButtonIconColor: 'black'
|
|
2883
|
+
borderColor: colorsLateOceanTheme.danger,
|
|
2884
|
+
color: 'black'
|
|
2781
2885
|
}
|
|
2782
2886
|
};
|
|
2783
|
-
var
|
|
2784
|
-
|
|
2785
|
-
|
|
2887
|
+
var input = {
|
|
2888
|
+
color: {
|
|
2889
|
+
selection: colorsLateOceanTheme.primary,
|
|
2890
|
+
placeholder: typographyLateOceanTheme.colors['black-light']
|
|
2891
|
+
},
|
|
2786
2892
|
borderWidth: '2px',
|
|
2787
2893
|
borderRadius: '10px',
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2894
|
+
icon: {
|
|
2895
|
+
size: 20
|
|
2896
|
+
},
|
|
2897
|
+
padding: {
|
|
2898
|
+
"default": '7px 16px',
|
|
2899
|
+
iOSSingleLine: '12px 16px'
|
|
2900
|
+
},
|
|
2794
2901
|
states: inputStatesStyle
|
|
2795
2902
|
};
|
|
2796
2903
|
|
|
2904
|
+
var inputFieldLateOceanTheme = {
|
|
2905
|
+
labelContainerPaddingBottom: 5,
|
|
2906
|
+
iconMarginLeft: 6
|
|
2907
|
+
};
|
|
2908
|
+
|
|
2797
2909
|
var radioLateOceanTheme = {
|
|
2798
2910
|
size: 18,
|
|
2799
2911
|
unchecked: {
|
|
@@ -2812,10 +2924,15 @@ var radioLateOceanTheme = {
|
|
|
2812
2924
|
}
|
|
2813
2925
|
};
|
|
2814
2926
|
|
|
2815
|
-
var
|
|
2816
|
-
|
|
2927
|
+
var textArea = {
|
|
2928
|
+
minHeight: 120
|
|
2929
|
+
};
|
|
2930
|
+
|
|
2931
|
+
var forms = {
|
|
2932
|
+
input: input,
|
|
2817
2933
|
radio: radioLateOceanTheme,
|
|
2818
|
-
inputField: inputFieldLateOceanTheme
|
|
2934
|
+
inputField: inputFieldLateOceanTheme,
|
|
2935
|
+
textArea: textArea
|
|
2819
2936
|
};
|
|
2820
2937
|
|
|
2821
2938
|
var fullScreenModalLateOceanTheme = {
|
|
@@ -2928,81 +3045,6 @@ var tooltip = {
|
|
|
2928
3045
|
floatingPadding: 8
|
|
2929
3046
|
};
|
|
2930
3047
|
|
|
2931
|
-
var calcLineHeight = function (fontSize, lineHeightMultiplier) {
|
|
2932
|
-
return Math.round(fontSize * lineHeightMultiplier);
|
|
2933
|
-
};
|
|
2934
|
-
var createTypographyTypeConfig = function (lineHeightMultiplier, baseAndSmallFontSize, mediumAndWideFontSize) {
|
|
2935
|
-
return {
|
|
2936
|
-
baseAndSmall: {
|
|
2937
|
-
fontSize: "".concat(baseAndSmallFontSize, "px"),
|
|
2938
|
-
lineHeight: "".concat(calcLineHeight(baseAndSmallFontSize, lineHeightMultiplier), "px")
|
|
2939
|
-
},
|
|
2940
|
-
mediumAndWide: {
|
|
2941
|
-
fontSize: "".concat(mediumAndWideFontSize, "px"),
|
|
2942
|
-
lineHeight: "".concat(calcLineHeight(mediumAndWideFontSize, lineHeightMultiplier), "px")
|
|
2943
|
-
}
|
|
2944
|
-
};
|
|
2945
|
-
};
|
|
2946
|
-
var typographyLateOceanTheme = {
|
|
2947
|
-
colors: {
|
|
2948
|
-
black: lateOceanColorPalette.black1000,
|
|
2949
|
-
'black-light': lateOceanColorPalette.black555,
|
|
2950
|
-
white: lateOceanColorPalette.white,
|
|
2951
|
-
'white-light': lateOceanColorPalette.white,
|
|
2952
|
-
primary: lateOceanColorPalette.lateOcean,
|
|
2953
|
-
'primary-light': lateOceanColorPalette.lateOceanLight1,
|
|
2954
|
-
accent: lateOceanColorPalette.warmEmbrace,
|
|
2955
|
-
success: lateOceanColorPalette.viride,
|
|
2956
|
-
danger: lateOceanColorPalette.englishVermillon
|
|
2957
|
-
},
|
|
2958
|
-
types: {
|
|
2959
|
-
headers: {
|
|
2960
|
-
fontFamily: {
|
|
2961
|
-
regular: 'Moderat',
|
|
2962
|
-
bold: 'Moderat'
|
|
2963
|
-
},
|
|
2964
|
-
fontWeight: 400,
|
|
2965
|
-
fontStyle: 'normal',
|
|
2966
|
-
configs: {
|
|
2967
|
-
// also known as xxlarge
|
|
2968
|
-
header1: createTypographyTypeConfig(1.3, 38, 62),
|
|
2969
|
-
// also known as xlarge
|
|
2970
|
-
header2: createTypographyTypeConfig(1.3, 32, 48),
|
|
2971
|
-
// also known as medium
|
|
2972
|
-
header3: createTypographyTypeConfig(1.3, 24, 36),
|
|
2973
|
-
// also known as xsmall
|
|
2974
|
-
header4: createTypographyTypeConfig(1.3, 18, 24),
|
|
2975
|
-
// also known as xxsmall
|
|
2976
|
-
header5: createTypographyTypeConfig(1.3, 18, 18)
|
|
2977
|
-
}
|
|
2978
|
-
},
|
|
2979
|
-
bodies: {
|
|
2980
|
-
fontFamily: {
|
|
2981
|
-
regular: 'Noto Sans',
|
|
2982
|
-
bold: 'Noto Sans'
|
|
2983
|
-
},
|
|
2984
|
-
fontWeight: {
|
|
2985
|
-
regular: 400,
|
|
2986
|
-
bold: 700
|
|
2987
|
-
},
|
|
2988
|
-
fontStyle: {
|
|
2989
|
-
regular: 'normal',
|
|
2990
|
-
bold: 'normal'
|
|
2991
|
-
},
|
|
2992
|
-
configs: {
|
|
2993
|
-
'body-large': createTypographyTypeConfig(1.6, 18, 24),
|
|
2994
|
-
'body-medium': createTypographyTypeConfig(1.6, 18, 18),
|
|
2995
|
-
body: createTypographyTypeConfig(1.6, 16, 16),
|
|
2996
|
-
'body-small': createTypographyTypeConfig(1.6, 14, 14),
|
|
2997
|
-
'body-xsmall': createTypographyTypeConfig(1.6, 12, 12)
|
|
2998
|
-
}
|
|
2999
|
-
}
|
|
3000
|
-
},
|
|
3001
|
-
link: {
|
|
3002
|
-
disabledColor: lateOceanColorPalette.black200
|
|
3003
|
-
}
|
|
3004
|
-
};
|
|
3005
|
-
|
|
3006
3048
|
var breakpoints = {
|
|
3007
3049
|
values: {
|
|
3008
3050
|
base: 0,
|
|
@@ -3036,7 +3078,7 @@ var theme = {
|
|
|
3036
3078
|
button: buttonLateOceanTheme,
|
|
3037
3079
|
card: cardLateOceanTheme,
|
|
3038
3080
|
feedbackMessage: feedbackMessageLateOceanTheme,
|
|
3039
|
-
forms:
|
|
3081
|
+
forms: forms,
|
|
3040
3082
|
typography: typographyLateOceanTheme,
|
|
3041
3083
|
tag: tagLateOceanTheme,
|
|
3042
3084
|
shadows: shadowsLateOceanTheme,
|
|
@@ -3478,5 +3520,5 @@ function MatchWindowSize(_ref) {
|
|
|
3478
3520
|
});
|
|
3479
3521
|
}
|
|
3480
3522
|
|
|
3481
|
-
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 };
|
|
3523
|
+
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 };
|
|
3482
3524
|
//# sourceMappingURL=index-browser-all.es.web.js.map
|