@ornikar/kitt-universal 4.0.0 → 4.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/definitions/BaseMessage/BaseMessage.d.ts +16 -0
- package/dist/definitions/BaseMessage/BaseMessage.d.ts.map +1 -0
- package/dist/definitions/BaseMessage/IconContent.d.ts +10 -0
- package/dist/definitions/BaseMessage/IconContent.d.ts.map +1 -0
- package/dist/definitions/BaseMessage/helper.d.ts +6 -0
- package/dist/definitions/BaseMessage/helper.d.ts.map +1 -0
- package/dist/definitions/ListItem/ListItem.d.ts.map +1 -1
- package/dist/definitions/Message/Message.d.ts +4 -12
- package/dist/definitions/Message/Message.d.ts.map +1 -1
- package/dist/definitions/Notification/Notification.d.ts +8 -8
- package/dist/definitions/Notification/Notification.d.ts.map +1 -1
- package/dist/definitions/Skeleton/Skeleton.d.ts.map +1 -1
- package/dist/definitions/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/definitions/Tooltip/TooltipView.d.ts.map +1 -1
- package/dist/definitions/forms/InputEmail/InputEmail.d.ts +7 -0
- package/dist/definitions/forms/InputEmail/InputEmail.d.ts.map +1 -0
- package/dist/definitions/forms/InputText/InputText.d.ts.map +1 -1
- package/dist/definitions/forms/InputText/InputTextContainer.d.ts +8 -0
- package/dist/definitions/forms/InputText/InputTextContainer.d.ts.map +1 -0
- package/dist/definitions/forms/InputText/InputTextContainer.web.d.ts +11 -0
- package/dist/definitions/forms/InputText/InputTextContainer.web.d.ts.map +1 -0
- package/dist/definitions/index.d.ts +2 -0
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/definitions/themes/default.d.ts +22 -101
- package/dist/definitions/themes/default.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/{avatarLateOceanTheme.d.ts → avatar.d.ts} +2 -2
- package/dist/definitions/themes/late-ocean/avatar.d.ts.map +1 -0
- package/dist/definitions/themes/late-ocean/{buttonLateOceanTheme.d.ts → button.d.ts} +8 -8
- package/dist/definitions/themes/late-ocean/button.d.ts.map +1 -0
- package/dist/definitions/themes/late-ocean/card.d.ts +13 -0
- package/dist/definitions/themes/late-ocean/card.d.ts.map +1 -0
- package/dist/definitions/themes/late-ocean/{colorsLateOceanTheme.d.ts → colors.d.ts} +4 -2
- package/dist/definitions/themes/late-ocean/colors.d.ts.map +1 -0
- package/dist/definitions/themes/late-ocean/feedback.d.ts +11 -0
- package/dist/definitions/themes/late-ocean/feedback.d.ts.map +1 -0
- package/dist/definitions/themes/late-ocean/forms.d.ts +1 -17
- package/dist/definitions/themes/late-ocean/forms.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/{fullScreenModalLateOceanTheme.d.ts → fullScreenModal.d.ts} +2 -2
- package/dist/definitions/themes/late-ocean/fullScreenModal.d.ts.map +1 -0
- package/dist/definitions/themes/late-ocean/input.d.ts +9 -4
- package/dist/definitions/themes/late-ocean/input.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/inputField.d.ts +5 -0
- package/dist/definitions/themes/late-ocean/inputField.d.ts.map +1 -0
- package/dist/definitions/themes/late-ocean/listItem.d.ts +8 -0
- package/dist/definitions/themes/late-ocean/listItem.d.ts.map +1 -0
- package/dist/definitions/themes/late-ocean/{radioLateOceanTheme.d.ts → radio.d.ts} +6 -5
- package/dist/definitions/themes/late-ocean/radio.d.ts.map +1 -0
- package/dist/definitions/themes/late-ocean/shadows.d.ts +4 -0
- package/dist/definitions/themes/late-ocean/shadows.d.ts.map +1 -0
- package/dist/definitions/themes/late-ocean/{skeletonTheme.d.ts → skeleton.d.ts} +2 -2
- package/dist/definitions/themes/late-ocean/skeleton.d.ts.map +1 -0
- package/dist/definitions/themes/late-ocean/tag.d.ts +18 -0
- package/dist/definitions/themes/late-ocean/tag.d.ts.map +1 -0
- package/dist/definitions/themes/late-ocean/{typographyLateOceanTheme.d.ts → typography.d.ts} +5 -4
- package/dist/definitions/themes/late-ocean/typography.d.ts.map +1 -0
- package/dist/definitions/themes/palettes/lateOceanColorPalette.d.ts +1 -0
- package/dist/definitions/themes/palettes/lateOceanColorPalette.d.ts.map +1 -1
- package/dist/definitions/typography/Typography.d.ts +2 -2
- package/dist/definitions/typography/Typography.d.ts.map +1 -1
- package/dist/definitions/typography/TypographyEmoji.d.ts.map +1 -1
- package/dist/index-browser-all.es.android.js +443 -405
- package/dist/index-browser-all.es.android.js.map +1 -1
- package/dist/index-browser-all.es.ios.js +443 -405
- package/dist/index-browser-all.es.ios.js.map +1 -1
- package/dist/index-browser-all.es.js +443 -405
- package/dist/index-browser-all.es.js.map +1 -1
- package/dist/index-browser-all.es.web.js +492 -426
- package/dist/index-browser-all.es.web.js.map +1 -1
- package/dist/index-node-14.17.cjs.js +427 -370
- package/dist/index-node-14.17.cjs.js.map +1 -1
- package/dist/index-node-14.17.cjs.web.css +1 -0
- package/dist/index-node-14.17.cjs.web.js +458 -372
- package/dist/index-node-14.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.android.js +122 -108
- package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.ios.js +122 -108
- package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.js +122 -108
- package/dist/linaria-themes-browser-all.es.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.web.js +122 -108
- package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.js +122 -108
- package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.web.js +122 -108
- package/dist/linaria-themes-node-14.17.cjs.web.js.map +1 -1
- package/dist/styles.css +1 -0
- package/dist/tsbuildinfo +1 -1
- package/package.json +4 -4
- package/dist/definitions/themes/late-ocean/avatarLateOceanTheme.d.ts.map +0 -1
- package/dist/definitions/themes/late-ocean/buttonLateOceanTheme.d.ts.map +0 -1
- package/dist/definitions/themes/late-ocean/cardLateOceanTheme.d.ts +0 -18
- package/dist/definitions/themes/late-ocean/cardLateOceanTheme.d.ts.map +0 -1
- package/dist/definitions/themes/late-ocean/colorsLateOceanTheme.d.ts.map +0 -1
- package/dist/definitions/themes/late-ocean/feedbackMessageLateOceanTheme.d.ts +0 -9
- package/dist/definitions/themes/late-ocean/feedbackMessageLateOceanTheme.d.ts.map +0 -1
- package/dist/definitions/themes/late-ocean/fullScreenModalLateOceanTheme.d.ts.map +0 -1
- package/dist/definitions/themes/late-ocean/inputFieldLateOceanTheme.d.ts +0 -5
- package/dist/definitions/themes/late-ocean/inputFieldLateOceanTheme.d.ts.map +0 -1
- package/dist/definitions/themes/late-ocean/listItemLateOceanTheme.d.ts +0 -7
- package/dist/definitions/themes/late-ocean/listItemLateOceanTheme.d.ts.map +0 -1
- package/dist/definitions/themes/late-ocean/radioLateOceanTheme.d.ts.map +0 -1
- package/dist/definitions/themes/late-ocean/shadowsLateOceanTheme.d.ts +0 -4
- package/dist/definitions/themes/late-ocean/shadowsLateOceanTheme.d.ts.map +0 -1
- package/dist/definitions/themes/late-ocean/skeletonTheme.d.ts.map +0 -1
- package/dist/definitions/themes/late-ocean/tagLateOceanTheme.d.ts +0 -41
- package/dist/definitions/themes/late-ocean/tagLateOceanTheme.d.ts.map +0 -1
- package/dist/definitions/themes/late-ocean/typographyLateOceanTheme.d.ts.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
|
-
import { UserIcon, EyeOffIcon, EyeIcon,
|
|
3
|
+
import { UserIcon, EyeOffIcon, EyeIcon, InfoIcon, AlertTriangleIcon, CheckIcon, AlertCircleIcon, XIcon, TooltipArrowIcon } from '@ornikar/kitt-icons';
|
|
4
4
|
export * from '@ornikar/kitt-icons';
|
|
5
|
-
import { Animated, Easing, useWindowDimensions, Image, Platform, Linking,
|
|
5
|
+
import { Animated, Easing, useWindowDimensions, Image, Platform, Linking, TextInput, Pressable, ActivityIndicator, View, StyleSheet, ScrollView, Modal as Modal$1, Text as Text$1 } from 'react-native';
|
|
6
6
|
export { useWindowDimensions as useWindowSize } from 'react-native';
|
|
7
7
|
import styled, { useTheme, css, ThemeProvider } from 'styled-components/native';
|
|
8
8
|
import { useRef, useEffect, cloneElement, useContext, createContext, forwardRef, useMemo, useState, Fragment, Children } from 'react';
|
|
@@ -52,7 +52,7 @@ function SpinningIcon(_ref) {
|
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
var IconContainer
|
|
55
|
+
var IconContainer = /*#__PURE__*/styled.View.withConfig({
|
|
56
56
|
displayName: "Icon__IconContainer"
|
|
57
57
|
})(["color:", ";width:", "px;height:", "px;align-self:", ";"], function (_ref) {
|
|
58
58
|
var color = _ref.color;
|
|
@@ -78,7 +78,7 @@ function Icon(_ref5) {
|
|
|
78
78
|
var clonedIcon = /*#__PURE__*/cloneElement(icon, {
|
|
79
79
|
color: color
|
|
80
80
|
});
|
|
81
|
-
return /*#__PURE__*/jsx(IconContainer
|
|
81
|
+
return /*#__PURE__*/jsx(IconContainer, {
|
|
82
82
|
align: align,
|
|
83
83
|
size: size,
|
|
84
84
|
color: color,
|
|
@@ -138,9 +138,9 @@ var KittBreakpointsMax = {
|
|
|
138
138
|
|
|
139
139
|
var _excluded$e = ["accessibilityRole", "base", "small", "medium", "large", "variant", "color"];
|
|
140
140
|
|
|
141
|
-
function ownKeys$
|
|
141
|
+
function ownKeys$k(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$k(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$k(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$k(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() {
|
|
@@ -180,7 +180,7 @@ var StyledTypography = /*#__PURE__*/styled.Text.withConfig({
|
|
|
180
180
|
headers = _theme$kitt$typograph.headers,
|
|
181
181
|
bodies = _theme$kitt$typograph.bodies;
|
|
182
182
|
var typeConfigKey = getTypographyTypeConfigKey(theme);
|
|
183
|
-
return "\n /* type */\n ".concat(!$typeForCurrentWindowSize ? '' : "\n font-family: ".concat($isHeader ? headers.fontFamily[$variant] : bodies.fontFamily[$variant], ";\n font-size: ").concat($isHeader ? headers.configs[$typeForCurrentWindowSize][typeConfigKey].fontSize : bodies.configs[$typeForCurrentWindowSize][typeConfigKey].fontSize, ";\n line-height: ").concat($isHeader ? headers.configs[$typeForCurrentWindowSize][typeConfigKey].lineHeight : bodies.configs[$typeForCurrentWindowSize][typeConfigKey].lineHeight, ";\n "), "\n\n /* variant */\n font-weight: ").concat($isHeader ? headers.fontWeight : bodies.fontWeight[$variant], ";\n font-style: ").concat($isHeader ? headers.fontStyle : bodies.fontStyle[$variant], ";\n ");
|
|
183
|
+
return "\n /* type */\n ".concat(!$typeForCurrentWindowSize ? '' : "\n font-family: ".concat($isHeader ? headers.fontFamily[$variant] : bodies.fontFamily[$variant], ";\n font-size: ").concat($isHeader ? headers.configs[$typeForCurrentWindowSize][typeConfigKey].fontSize : bodies.configs[$typeForCurrentWindowSize][typeConfigKey].fontSize, "px;\n line-height: ").concat($isHeader ? headers.configs[$typeForCurrentWindowSize][typeConfigKey].lineHeight : bodies.configs[$typeForCurrentWindowSize][typeConfigKey].lineHeight, "px;\n "), "\n\n /* variant */\n font-weight: ").concat($isHeader ? headers.fontWeight : bodies.fontWeight[$variant], ";\n font-style: ").concat($isHeader ? headers.fontStyle : bodies.fontStyle[$variant], ";\n ");
|
|
184
184
|
}, function (_ref2) {
|
|
185
185
|
var theme = _ref2.theme,
|
|
186
186
|
$color = _ref2.$color;
|
|
@@ -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$k({
|
|
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$k({
|
|
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$k({
|
|
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$k({
|
|
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$k(_objectSpread$k({
|
|
271
271
|
accessibilityRole: "header",
|
|
272
272
|
base: defaultBase
|
|
273
273
|
}, props), {}, {
|
|
@@ -305,9 +305,9 @@ Typography.h5 = createHeading(5, 'header5');
|
|
|
305
305
|
|
|
306
306
|
var _excluded$d = ["size", "base", "round", "light"];
|
|
307
307
|
|
|
308
|
-
function ownKeys$
|
|
308
|
+
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; }
|
|
309
309
|
|
|
310
|
-
function _objectSpread$
|
|
310
|
+
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; }
|
|
311
311
|
|
|
312
312
|
var getInitials = function (firstname, lastname) {
|
|
313
313
|
return "".concat(firstname[0]).concat(lastname[0]).toUpperCase();
|
|
@@ -320,7 +320,7 @@ var StyledAvatarView = /*#__PURE__*/styled.View.withConfig({
|
|
|
320
320
|
$isRound = _ref.$isRound,
|
|
321
321
|
$size = _ref.$size;
|
|
322
322
|
if ($isRound) return "".concat($size / 2, "px");
|
|
323
|
-
return theme.kitt.avatar.borderRadius;
|
|
323
|
+
return "".concat(theme.kitt.avatar.borderRadius, "px");
|
|
324
324
|
}, function (_ref2) {
|
|
325
325
|
var theme = _ref2.theme,
|
|
326
326
|
$isLight = _ref2.$isLight;
|
|
@@ -384,7 +384,7 @@ function Avatar(_ref6) {
|
|
|
384
384
|
$size: size,
|
|
385
385
|
$isRound: round,
|
|
386
386
|
$isLight: light,
|
|
387
|
-
children: /*#__PURE__*/jsx(AvatarContent, _objectSpread$
|
|
387
|
+
children: /*#__PURE__*/jsx(AvatarContent, _objectSpread$j({
|
|
388
388
|
size: size,
|
|
389
389
|
base: base,
|
|
390
390
|
isLight: light
|
|
@@ -401,7 +401,7 @@ var StyledPressable = /*#__PURE__*/styled.Pressable.withConfig({
|
|
|
401
401
|
});
|
|
402
402
|
var StyledAnimatedView = /*#__PURE__*/styled(Animated$1.View).withConfig({
|
|
403
403
|
displayName: "AnimatedButtonPressable__StyledAnimatedView"
|
|
404
|
-
})(["border-radius:", ";"], function (_ref2) {
|
|
404
|
+
})(["border-radius:", "px;"], function (_ref2) {
|
|
405
405
|
var theme = _ref2.theme;
|
|
406
406
|
return theme.kitt.button.borderRadius;
|
|
407
407
|
});
|
|
@@ -490,13 +490,13 @@ var AnimatedButtonPressable = /*#__PURE__*/forwardRef(function (_ref3, ref) {
|
|
|
490
490
|
|
|
491
491
|
var BaseStyledButtonPressable = /*#__PURE__*/styled.View.withConfig({
|
|
492
492
|
displayName: "BaseStyledButtonPressable"
|
|
493
|
-
})(["position:relative;min-width:", ";max-width:", ";width:", ";min-height:", ";border-radius:", ";flex-direction:row;align-items:center;justify-content:center;align-self:flex-start;background-color:", ";padding:", ";"], function (_ref) {
|
|
493
|
+
})(["position:relative;min-width:", "px;max-width:", ";width:", ";min-height:", "px;border-radius:", "px;flex-direction:row;align-items:center;justify-content:center;align-self:flex-start;background-color:", ";padding:", ";"], function (_ref) {
|
|
494
494
|
var theme = _ref.theme;
|
|
495
495
|
return theme.kitt.button.minWidth;
|
|
496
496
|
}, function (_ref2) {
|
|
497
497
|
var theme = _ref2.theme,
|
|
498
498
|
$isStretch = _ref2.$isStretch;
|
|
499
|
-
return $isStretch ? '100%' : theme.kitt.button.maxWidth;
|
|
499
|
+
return $isStretch ? '100%' : "".concat(theme.kitt.button.maxWidth, "px");
|
|
500
500
|
}, function (_ref3) {
|
|
501
501
|
var $isStretch = _ref3.$isStretch;
|
|
502
502
|
return $isStretch ? '100%' : 'auto';
|
|
@@ -529,23 +529,23 @@ var BaseStyledButtonPressable = /*#__PURE__*/styled.View.withConfig({
|
|
|
529
529
|
var _excluded$c = ["color"],
|
|
530
530
|
_excluded2$2 = ["color"];
|
|
531
531
|
|
|
532
|
-
function ownKeys$
|
|
532
|
+
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; }
|
|
533
533
|
|
|
534
|
-
function _objectSpread$
|
|
534
|
+
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; }
|
|
535
535
|
|
|
536
536
|
function TypographyIconSpecifiedColor(_ref) {
|
|
537
537
|
var color = _ref.color,
|
|
538
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$i(_objectSpread$i({}, 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$i({
|
|
549
549
|
color: color
|
|
550
550
|
}, props));
|
|
551
551
|
}
|
|
@@ -555,12 +555,12 @@ 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$i({
|
|
559
559
|
color: color
|
|
560
560
|
}, props));
|
|
561
561
|
}
|
|
562
562
|
|
|
563
|
-
return /*#__PURE__*/jsx(TypographyIconInheritColor, _objectSpread$
|
|
563
|
+
return /*#__PURE__*/jsx(TypographyIconInheritColor, _objectSpread$i({}, props));
|
|
564
564
|
}
|
|
565
565
|
|
|
566
566
|
function isSubtle(type) {
|
|
@@ -569,9 +569,9 @@ function isSubtle(type) {
|
|
|
569
569
|
|
|
570
570
|
var _excluded$b = ["type", "isDisabled", "$isStretch", "icon", "children"];
|
|
571
571
|
|
|
572
|
-
function ownKeys$
|
|
572
|
+
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; }
|
|
573
573
|
|
|
574
|
-
function _objectSpread$
|
|
574
|
+
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; }
|
|
575
575
|
|
|
576
576
|
var getTextColorByType = function (type) {
|
|
577
577
|
switch (type) {
|
|
@@ -610,7 +610,7 @@ var StyledButtonText = /*#__PURE__*/styled(Typography.Text).withConfig({
|
|
|
610
610
|
if (Platform.OS !== 'web' || $isDisabled || !isSubtle($type)) return undefined;
|
|
611
611
|
return 'color: inherit';
|
|
612
612
|
});
|
|
613
|
-
var StyledIconContainer = /*#__PURE__*/styled.View.withConfig({
|
|
613
|
+
var StyledIconContainer$1 = /*#__PURE__*/styled.View.withConfig({
|
|
614
614
|
displayName: "ButtonContent__StyledIconContainer"
|
|
615
615
|
})(["", ""], function (_ref2) {
|
|
616
616
|
var theme = _ref2.theme,
|
|
@@ -630,7 +630,7 @@ function ButtonIcon(_ref3) {
|
|
|
630
630
|
spin = _ref3.spin,
|
|
631
631
|
iconPosition = _ref3.iconPosition,
|
|
632
632
|
testID = _ref3.testID;
|
|
633
|
-
return /*#__PURE__*/jsx(StyledIconContainer, {
|
|
633
|
+
return /*#__PURE__*/jsx(StyledIconContainer$1, {
|
|
634
634
|
$iconPosition: iconPosition,
|
|
635
635
|
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
636
636
|
icon: icon,
|
|
@@ -677,7 +677,7 @@ function ButtonContentChildren(_ref4) {
|
|
|
677
677
|
color: isWebSubtle ? 'inherit' : color
|
|
678
678
|
};
|
|
679
679
|
return /*#__PURE__*/jsxs(StyledChildrenWithIcon, {
|
|
680
|
-
children: [icon && iconPosition === 'left' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
680
|
+
children: [icon && iconPosition === 'left' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({}, 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$h(_objectSpread$h({}, buttonIconSharedProps), {}, {
|
|
692
692
|
icon: icon
|
|
693
693
|
})) : null]
|
|
694
694
|
});
|
|
@@ -721,7 +721,7 @@ function ButtonContent(_ref7) {
|
|
|
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$h(_objectSpread$h({
|
|
725
725
|
icon: icon,
|
|
726
726
|
type: type,
|
|
727
727
|
isDisabled: isDisabled,
|
|
@@ -734,12 +734,12 @@ function ButtonContent(_ref7) {
|
|
|
734
734
|
|
|
735
735
|
var StyledDisabled = /*#__PURE__*/styled.View.withConfig({
|
|
736
736
|
displayName: "StyledDisabled"
|
|
737
|
-
})(["position:absolute;top:0;left:0;right:0;bottom:0;border:", ";border-radius:", ";"], function (_ref) {
|
|
737
|
+
})(["position:absolute;top:0;left:0;right:0;bottom:0;border:", ";border-radius:", "px;"], function (_ref) {
|
|
738
738
|
var theme = _ref.theme;
|
|
739
739
|
var _theme$kitt$button = theme.kitt.button,
|
|
740
740
|
borderWidth = _theme$kitt$button.borderWidth,
|
|
741
741
|
disabled = _theme$kitt$button.disabled;
|
|
742
|
-
return "".concat(borderWidth.disabled, " solid ").concat(disabled.borderColor);
|
|
742
|
+
return "".concat(borderWidth.disabled, "px solid ").concat(disabled.borderColor);
|
|
743
743
|
}, function (_ref2) {
|
|
744
744
|
var theme = _ref2.theme;
|
|
745
745
|
return theme.kitt.button.borderRadius;
|
|
@@ -790,15 +790,15 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
790
790
|
});
|
|
791
791
|
});
|
|
792
792
|
|
|
793
|
-
var Container$
|
|
793
|
+
var Container$5 = /*#__PURE__*/styled.View.withConfig({
|
|
794
794
|
displayName: "Card__Container"
|
|
795
|
-
})(["background-color:", ";padding:", ";border-radius:", ";border-width:", ";border-color:", ";"], function (_ref) {
|
|
795
|
+
})(["background-color:", ";padding:", "px;border-radius:", "px;border-width:", "px;border-color:", ";"], function (_ref) {
|
|
796
796
|
var theme = _ref.theme,
|
|
797
797
|
type = _ref.type;
|
|
798
798
|
return theme.kitt.card[type].backgroundColor;
|
|
799
799
|
}, function (_ref2) {
|
|
800
800
|
var theme = _ref2.theme;
|
|
801
|
-
return theme.kitt.
|
|
801
|
+
return theme.kitt.spacing * 4;
|
|
802
802
|
}, function (_ref3) {
|
|
803
803
|
var theme = _ref3.theme;
|
|
804
804
|
return theme.kitt.card.borderRadius;
|
|
@@ -813,7 +813,7 @@ var Container$6 = /*#__PURE__*/styled.View.withConfig({
|
|
|
813
813
|
function Card(_ref6) {
|
|
814
814
|
var children = _ref6.children,
|
|
815
815
|
type = _ref6.type;
|
|
816
|
-
return /*#__PURE__*/jsx(Container$
|
|
816
|
+
return /*#__PURE__*/jsx(Container$5, {
|
|
817
817
|
type: type,
|
|
818
818
|
children: children
|
|
819
819
|
});
|
|
@@ -860,9 +860,9 @@ var defaultOpenLinkBehavior = {
|
|
|
860
860
|
|
|
861
861
|
var _excluded$a = ["as", "href", "openLinkBehavior", "onPress"];
|
|
862
862
|
|
|
863
|
-
function ownKeys$
|
|
863
|
+
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; }
|
|
864
864
|
|
|
865
|
-
function _objectSpread$
|
|
865
|
+
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; }
|
|
866
866
|
function ExternalLink(_ref) {
|
|
867
867
|
var Component = _ref.as,
|
|
868
868
|
href = _ref.href,
|
|
@@ -871,7 +871,7 @@ function ExternalLink(_ref) {
|
|
|
871
871
|
onPress = _ref.onPress,
|
|
872
872
|
rest = _objectWithoutProperties(_ref, _excluded$a);
|
|
873
873
|
|
|
874
|
-
return /*#__PURE__*/jsx(Component, _objectSpread$
|
|
874
|
+
return /*#__PURE__*/jsx(Component, _objectSpread$g(_objectSpread$g({}, rest), {}, {
|
|
875
875
|
onPress: function handleOnPress() {
|
|
876
876
|
if (onPress) onPress();
|
|
877
877
|
if (!href) return;
|
|
@@ -900,106 +900,7 @@ function ExternalLink(_ref) {
|
|
|
900
900
|
}));
|
|
901
901
|
}
|
|
902
902
|
|
|
903
|
-
var
|
|
904
|
-
switch (state) {
|
|
905
|
-
case 'invalid':
|
|
906
|
-
return 'danger';
|
|
907
|
-
|
|
908
|
-
case 'valid':
|
|
909
|
-
default:
|
|
910
|
-
return 'black-light';
|
|
911
|
-
}
|
|
912
|
-
};
|
|
913
|
-
|
|
914
|
-
function InputFeedback(_ref) {
|
|
915
|
-
var state = _ref.state,
|
|
916
|
-
testID = _ref.testID,
|
|
917
|
-
children = _ref.children;
|
|
918
|
-
return /*#__PURE__*/jsx(Typography.Text, {
|
|
919
|
-
base: "body-small",
|
|
920
|
-
color: getColorFromState(state),
|
|
921
|
-
testID: testID,
|
|
922
|
-
children: children
|
|
923
|
-
});
|
|
924
|
-
}
|
|
925
|
-
|
|
926
|
-
var FieldContainer = /*#__PURE__*/styled.View.withConfig({
|
|
927
|
-
displayName: "InputField__FieldContainer"
|
|
928
|
-
})(["padding:5px 0 10px;"]);
|
|
929
|
-
var FeedbackContainer = /*#__PURE__*/styled.View.withConfig({
|
|
930
|
-
displayName: "InputField__FeedbackContainer"
|
|
931
|
-
})(["", ";"], function (_ref) {
|
|
932
|
-
var theme = _ref.theme;
|
|
933
|
-
return theme.responsive.ifWindowSizeMatches({
|
|
934
|
-
minWidth: KittBreakpoints.SMALL
|
|
935
|
-
}, 'padding-top: 10px', 'padding-top: 5px');
|
|
936
|
-
});
|
|
937
|
-
var FieldLabelContainer = /*#__PURE__*/styled.View.withConfig({
|
|
938
|
-
displayName: "InputField__FieldLabelContainer"
|
|
939
|
-
})(["flex-direction:row;align-items:center;padding-bottom:", "px;"], function (_ref2) {
|
|
940
|
-
var theme = _ref2.theme;
|
|
941
|
-
return theme.kitt.forms.inputField.labelContainerPaddingBottom;
|
|
942
|
-
});
|
|
943
|
-
var LabelContainer = /*#__PURE__*/styled.View.withConfig({
|
|
944
|
-
displayName: "InputField__LabelContainer"
|
|
945
|
-
})(["margin-right:", "px;"], function (_ref3) {
|
|
946
|
-
var theme = _ref3.theme;
|
|
947
|
-
return theme.kitt.forms.inputField.iconMarginLeft;
|
|
948
|
-
});
|
|
949
|
-
function InputField(_ref4) {
|
|
950
|
-
var label = _ref4.label,
|
|
951
|
-
labelFeedback = _ref4.labelFeedback,
|
|
952
|
-
input = _ref4.input,
|
|
953
|
-
feedback = _ref4.feedback;
|
|
954
|
-
return /*#__PURE__*/jsxs(FieldContainer, {
|
|
955
|
-
children: [label ? /*#__PURE__*/jsxs(FieldLabelContainer, {
|
|
956
|
-
children: [/*#__PURE__*/jsx(LabelContainer, {
|
|
957
|
-
children: label
|
|
958
|
-
}), labelFeedback]
|
|
959
|
-
}) : null, input, feedback ? /*#__PURE__*/jsx(FeedbackContainer, {
|
|
960
|
-
children: feedback
|
|
961
|
-
}) : null]
|
|
962
|
-
});
|
|
963
|
-
}
|
|
964
|
-
|
|
965
|
-
function getIconColor(state, disabled) {
|
|
966
|
-
if (disabled) return 'black-light';
|
|
967
|
-
|
|
968
|
-
switch (state) {
|
|
969
|
-
case 'invalid':
|
|
970
|
-
return 'danger';
|
|
971
|
-
|
|
972
|
-
case 'valid':
|
|
973
|
-
return 'success';
|
|
974
|
-
|
|
975
|
-
default:
|
|
976
|
-
return undefined;
|
|
977
|
-
}
|
|
978
|
-
}
|
|
979
|
-
|
|
980
|
-
function InputIcon(_ref) {
|
|
981
|
-
var icon = _ref.icon,
|
|
982
|
-
state = _ref.state,
|
|
983
|
-
disabled = _ref.disabled;
|
|
984
|
-
var theme = /*#__PURE__*/useTheme();
|
|
985
|
-
var color = getIconColor(state, disabled);
|
|
986
|
-
return /*#__PURE__*/jsx(TypographyIcon, {
|
|
987
|
-
color: color,
|
|
988
|
-
icon: icon,
|
|
989
|
-
size: theme.kitt.forms.input.icon.size
|
|
990
|
-
});
|
|
991
|
-
}
|
|
992
|
-
|
|
993
|
-
function ownKeys$e(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
994
|
-
|
|
995
|
-
function _objectSpread$e(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$e(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$e(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
996
|
-
function InputPressable(_ref) {
|
|
997
|
-
var props = _extends({}, _ref);
|
|
998
|
-
|
|
999
|
-
return /*#__PURE__*/jsx(Pressable, _objectSpread$e({}, props));
|
|
1000
|
-
}
|
|
1001
|
-
|
|
1002
|
-
var styledTextInputMixin = /*#__PURE__*/css(["background-color:", ";border-width:", ";border-radius:", ";border-color:", ";font-size:", ";color:", ";font-family:", ";"], function (_ref) {
|
|
903
|
+
var styledTextInputMixin = /*#__PURE__*/css(["background-color:", ";border-width:", "px;border-radius:", "px;border-color:", ";font-size:", ";color:", ";font-family:", ";"], function (_ref) {
|
|
1003
904
|
var theme = _ref.theme,
|
|
1004
905
|
$state = _ref.$state;
|
|
1005
906
|
return $state === 'disabled' ? theme.kitt.forms.input.states.disabled.backgroundColor : theme.kitt.forms.input.states["default"].backgroundColor;
|
|
@@ -1016,7 +917,7 @@ var styledTextInputMixin = /*#__PURE__*/css(["background-color:", ";border-width
|
|
|
1016
917
|
}, function (_ref5) {
|
|
1017
918
|
var theme = _ref5.theme;
|
|
1018
919
|
var typeConfigKey = getTypographyTypeConfigKey(theme);
|
|
1019
|
-
return theme.kitt.typography.types.bodies.configs.body[typeConfigKey].fontSize;
|
|
920
|
+
return "".concat(theme.kitt.typography.types.bodies.configs.body[typeConfigKey].fontSize, "px");
|
|
1020
921
|
}, function (_ref6) {
|
|
1021
922
|
var theme = _ref6.theme,
|
|
1022
923
|
$state = _ref6.$state;
|
|
@@ -1036,14 +937,18 @@ function getInputUIState(_ref) {
|
|
|
1036
937
|
return 'default';
|
|
1037
938
|
}
|
|
1038
939
|
|
|
940
|
+
var InputTextContainer = /*#__PURE__*/styled.View.withConfig({
|
|
941
|
+
displayName: "InputTextContainer"
|
|
942
|
+
})(["position:relative;"]);
|
|
943
|
+
|
|
1039
944
|
var _excluded$9 = ["id", "right", "minHeight", "state", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoCompleteType", "keyboardType", "onFocus", "onBlur"];
|
|
1040
945
|
|
|
1041
|
-
function ownKeys$
|
|
946
|
+
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; }
|
|
1042
947
|
|
|
1043
|
-
function _objectSpread$
|
|
948
|
+
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; }
|
|
1044
949
|
var StyledTextInput = /*#__PURE__*/styled(TextInput).withConfig({
|
|
1045
950
|
displayName: "InputText__StyledTextInput"
|
|
1046
|
-
})(["", " padding:", ";line-height:", ";min-height:", "px;"], styledTextInputMixin, function (_ref) {
|
|
951
|
+
})(["", " padding:", ";line-height:", ";width:100%;min-height:", "px;"], styledTextInputMixin, function (_ref) {
|
|
1047
952
|
var theme = _ref.theme,
|
|
1048
953
|
multiline = _ref.multiline;
|
|
1049
954
|
|
|
@@ -1057,14 +962,11 @@ var StyledTextInput = /*#__PURE__*/styled(TextInput).withConfig({
|
|
|
1057
962
|
multiline = _ref2.multiline;
|
|
1058
963
|
if (!multiline && Platform.OS === 'ios') return 0;
|
|
1059
964
|
var typeConfigKey = getTypographyTypeConfigKey(theme);
|
|
1060
|
-
return theme.kitt.typography.types.bodies.configs.body[typeConfigKey].lineHeight;
|
|
965
|
+
return "".concat(theme.kitt.typography.types.bodies.configs.body[typeConfigKey].lineHeight, "px");
|
|
1061
966
|
}, function (_ref3) {
|
|
1062
967
|
var $minHeight = _ref3.$minHeight;
|
|
1063
968
|
return $minHeight;
|
|
1064
969
|
});
|
|
1065
|
-
var InputTextContainer = /*#__PURE__*/styled.View.withConfig({
|
|
1066
|
-
displayName: "InputText__InputTextContainer"
|
|
1067
|
-
})(["position:relative;"]);
|
|
1068
970
|
var RightInputContainer = /*#__PURE__*/styled.View.withConfig({
|
|
1069
971
|
displayName: "InputText__RightInputContainer"
|
|
1070
972
|
})(["position:absolute;right:0;top:0;bottom:0;justify-content:center;padding:10px;"]);
|
|
@@ -1102,7 +1004,8 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref4, ref) {
|
|
|
1102
1004
|
formState: formState
|
|
1103
1005
|
});
|
|
1104
1006
|
return /*#__PURE__*/jsxs(InputTextContainer, {
|
|
1105
|
-
|
|
1007
|
+
$isDisabled: disabled,
|
|
1008
|
+
children: [/*#__PURE__*/jsx(StyledTextInput, _objectSpread$f(_objectSpread$f({
|
|
1106
1009
|
ref: ref,
|
|
1107
1010
|
nativeID: id,
|
|
1108
1011
|
editable: !disabled,
|
|
@@ -1129,6 +1032,116 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref4, ref) {
|
|
|
1129
1032
|
});
|
|
1130
1033
|
});
|
|
1131
1034
|
|
|
1035
|
+
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; }
|
|
1036
|
+
|
|
1037
|
+
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; }
|
|
1038
|
+
function InputEmail(props) {
|
|
1039
|
+
return /*#__PURE__*/jsx(InputText, _objectSpread$e({
|
|
1040
|
+
autoCompleteType: "email",
|
|
1041
|
+
keyboardType: "email-address",
|
|
1042
|
+
textContentType: "emailAddress"
|
|
1043
|
+
}, props));
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
var getColorFromState = function (state) {
|
|
1047
|
+
switch (state) {
|
|
1048
|
+
case 'invalid':
|
|
1049
|
+
return 'danger';
|
|
1050
|
+
|
|
1051
|
+
case 'valid':
|
|
1052
|
+
default:
|
|
1053
|
+
return 'black-light';
|
|
1054
|
+
}
|
|
1055
|
+
};
|
|
1056
|
+
|
|
1057
|
+
function InputFeedback(_ref) {
|
|
1058
|
+
var state = _ref.state,
|
|
1059
|
+
testID = _ref.testID,
|
|
1060
|
+
children = _ref.children;
|
|
1061
|
+
return /*#__PURE__*/jsx(Typography.Text, {
|
|
1062
|
+
base: "body-small",
|
|
1063
|
+
color: getColorFromState(state),
|
|
1064
|
+
testID: testID,
|
|
1065
|
+
children: children
|
|
1066
|
+
});
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
var FieldContainer = /*#__PURE__*/styled.View.withConfig({
|
|
1070
|
+
displayName: "InputField__FieldContainer"
|
|
1071
|
+
})(["padding:5px 0 10px;"]);
|
|
1072
|
+
var FeedbackContainer = /*#__PURE__*/styled.View.withConfig({
|
|
1073
|
+
displayName: "InputField__FeedbackContainer"
|
|
1074
|
+
})(["", ";"], function (_ref) {
|
|
1075
|
+
var theme = _ref.theme;
|
|
1076
|
+
return theme.responsive.ifWindowSizeMatches({
|
|
1077
|
+
minWidth: KittBreakpoints.SMALL
|
|
1078
|
+
}, 'padding-top: 10px', 'padding-top: 5px');
|
|
1079
|
+
});
|
|
1080
|
+
var FieldLabelContainer = /*#__PURE__*/styled.View.withConfig({
|
|
1081
|
+
displayName: "InputField__FieldLabelContainer"
|
|
1082
|
+
})(["flex-direction:row;align-items:center;padding-bottom:", "px;"], function (_ref2) {
|
|
1083
|
+
var theme = _ref2.theme;
|
|
1084
|
+
return theme.kitt.forms.inputField.labelContainerPaddingBottom;
|
|
1085
|
+
});
|
|
1086
|
+
var LabelContainer = /*#__PURE__*/styled.View.withConfig({
|
|
1087
|
+
displayName: "InputField__LabelContainer"
|
|
1088
|
+
})(["margin-right:", "px;"], function (_ref3) {
|
|
1089
|
+
var theme = _ref3.theme;
|
|
1090
|
+
return theme.kitt.forms.inputField.iconMarginLeft;
|
|
1091
|
+
});
|
|
1092
|
+
function InputField(_ref4) {
|
|
1093
|
+
var label = _ref4.label,
|
|
1094
|
+
labelFeedback = _ref4.labelFeedback,
|
|
1095
|
+
input = _ref4.input,
|
|
1096
|
+
feedback = _ref4.feedback;
|
|
1097
|
+
return /*#__PURE__*/jsxs(FieldContainer, {
|
|
1098
|
+
children: [label ? /*#__PURE__*/jsxs(FieldLabelContainer, {
|
|
1099
|
+
children: [/*#__PURE__*/jsx(LabelContainer, {
|
|
1100
|
+
children: label
|
|
1101
|
+
}), labelFeedback]
|
|
1102
|
+
}) : null, input, feedback ? /*#__PURE__*/jsx(FeedbackContainer, {
|
|
1103
|
+
children: feedback
|
|
1104
|
+
}) : null]
|
|
1105
|
+
});
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
function getIconColor(state, disabled) {
|
|
1109
|
+
if (disabled) return 'black-light';
|
|
1110
|
+
|
|
1111
|
+
switch (state) {
|
|
1112
|
+
case 'invalid':
|
|
1113
|
+
return 'danger';
|
|
1114
|
+
|
|
1115
|
+
case 'valid':
|
|
1116
|
+
return 'success';
|
|
1117
|
+
|
|
1118
|
+
default:
|
|
1119
|
+
return undefined;
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
function InputIcon(_ref) {
|
|
1124
|
+
var icon = _ref.icon,
|
|
1125
|
+
state = _ref.state,
|
|
1126
|
+
disabled = _ref.disabled;
|
|
1127
|
+
var theme = /*#__PURE__*/useTheme();
|
|
1128
|
+
var color = getIconColor(state, disabled);
|
|
1129
|
+
return /*#__PURE__*/jsx(TypographyIcon, {
|
|
1130
|
+
color: color,
|
|
1131
|
+
icon: icon,
|
|
1132
|
+
size: theme.kitt.forms.input.icon.size
|
|
1133
|
+
});
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
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; }
|
|
1137
|
+
|
|
1138
|
+
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; }
|
|
1139
|
+
function InputPressable(_ref) {
|
|
1140
|
+
var props = _extends({}, _ref);
|
|
1141
|
+
|
|
1142
|
+
return /*#__PURE__*/jsx(Pressable, _objectSpread$d({}, props));
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1132
1145
|
var _excluded$8 = ["isPasswordDefaultVisible", "right"];
|
|
1133
1146
|
|
|
1134
1147
|
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; }
|
|
@@ -1177,7 +1190,7 @@ function Label(_ref) {
|
|
|
1177
1190
|
|
|
1178
1191
|
var OuterRadio = /*#__PURE__*/styled.View.withConfig({
|
|
1179
1192
|
displayName: "Radio__OuterRadio"
|
|
1180
|
-
})(["background-color:", ";width:", "px;height:", "px;border-radius:", "px;border-width:", ";border-color:", ";"], function (_ref) {
|
|
1193
|
+
})(["background-color:", ";width:", "px;height:", "px;border-radius:", "px;border-width:", "px;border-color:", ";"], function (_ref) {
|
|
1181
1194
|
var theme = _ref.theme,
|
|
1182
1195
|
disabled = _ref.disabled;
|
|
1183
1196
|
return theme.kitt.forms.radio[disabled ? 'disabled' : 'unchecked'].backgroundColor;
|
|
@@ -1228,7 +1241,7 @@ var SelectedInnerRadio = /*#__PURE__*/styled.View.withConfig({
|
|
|
1228
1241
|
var theme = _ref14.theme;
|
|
1229
1242
|
return theme.kitt.forms.radio.checked.innerSize / 2;
|
|
1230
1243
|
});
|
|
1231
|
-
var Container$
|
|
1244
|
+
var Container$4 = /*#__PURE__*/styled.Pressable.withConfig({
|
|
1232
1245
|
displayName: "Radio__Container"
|
|
1233
1246
|
})(["flex-direction:row;align-items:center;"]);
|
|
1234
1247
|
var Text = /*#__PURE__*/styled(Typography.Text).withConfig({
|
|
@@ -1245,7 +1258,7 @@ function Radio(_ref16) {
|
|
|
1245
1258
|
_ref16$disabled = _ref16.disabled,
|
|
1246
1259
|
disabled = _ref16$disabled === void 0 ? false : _ref16$disabled,
|
|
1247
1260
|
children = _ref16.children;
|
|
1248
|
-
return /*#__PURE__*/jsxs(Container$
|
|
1261
|
+
return /*#__PURE__*/jsxs(Container$4, {
|
|
1249
1262
|
nativeID: id,
|
|
1250
1263
|
disabled: disabled,
|
|
1251
1264
|
accessibilityRole: "radio",
|
|
@@ -1423,7 +1436,7 @@ function FullScreenModalHeader(_ref6) {
|
|
|
1423
1436
|
});
|
|
1424
1437
|
}
|
|
1425
1438
|
|
|
1426
|
-
var Container$
|
|
1439
|
+
var Container$3 = /*#__PURE__*/styled.View.withConfig({
|
|
1427
1440
|
displayName: "FullScreenModal__Container"
|
|
1428
1441
|
})(["flex:1;background-color:", ";"], function (_ref) {
|
|
1429
1442
|
var theme = _ref.theme;
|
|
@@ -1431,7 +1444,7 @@ var Container$4 = /*#__PURE__*/styled.View.withConfig({
|
|
|
1431
1444
|
});
|
|
1432
1445
|
function FullScreenModal(_ref2) {
|
|
1433
1446
|
var children = _ref2.children;
|
|
1434
|
-
return /*#__PURE__*/jsx(Container$
|
|
1447
|
+
return /*#__PURE__*/jsx(Container$3, {
|
|
1435
1448
|
children: children
|
|
1436
1449
|
});
|
|
1437
1450
|
}
|
|
@@ -1762,11 +1775,11 @@ var SideContainerView = /*#__PURE__*/styled.View.withConfig({
|
|
|
1762
1775
|
})(["flex-direction:row;margin-left:", ";margin-right:", ";"], function (_ref) {
|
|
1763
1776
|
var theme = _ref.theme,
|
|
1764
1777
|
side = _ref.side;
|
|
1765
|
-
return side === 'right' ? theme.kitt.listItem.innerMargin : 0;
|
|
1778
|
+
return side === 'right' ? "".concat(theme.kitt.listItem.innerMargin, "px") : 0;
|
|
1766
1779
|
}, function (_ref2) {
|
|
1767
1780
|
var theme = _ref2.theme,
|
|
1768
1781
|
side = _ref2.side;
|
|
1769
|
-
return side === 'left' ? theme.kitt.listItem.innerMargin : 0;
|
|
1782
|
+
return side === 'left' ? "".concat(theme.kitt.listItem.innerMargin, "px") : 0;
|
|
1770
1783
|
}); // Handles the vertical alignment of the side elements of the list item
|
|
1771
1784
|
|
|
1772
1785
|
function ListItemSideContainer(_ref3) {
|
|
@@ -1817,15 +1830,15 @@ var ContainerView = /*#__PURE__*/styled.View.withConfig({
|
|
|
1817
1830
|
var borderWidth = theme.kitt.listItem.borderWidth;
|
|
1818
1831
|
|
|
1819
1832
|
if (borders === 'top') {
|
|
1820
|
-
return "border-top-width: ".concat(borderWidth);
|
|
1833
|
+
return "border-top-width: ".concat(borderWidth, "px");
|
|
1821
1834
|
}
|
|
1822
1835
|
|
|
1823
1836
|
if (borders === 'bottom') {
|
|
1824
|
-
return "border-bottom-width: ".concat(borderWidth);
|
|
1837
|
+
return "border-bottom-width: ".concat(borderWidth, "px");
|
|
1825
1838
|
}
|
|
1826
1839
|
|
|
1827
1840
|
if (borders === 'both') {
|
|
1828
|
-
return "border-top-width:
|
|
1841
|
+
return css(["border-top-width:", "px;border-bottom-width:", "px;"], borderWidth, borderWidth);
|
|
1829
1842
|
}
|
|
1830
1843
|
|
|
1831
1844
|
return 'border: none';
|
|
@@ -1900,55 +1913,32 @@ function LargeLoader(_ref) {
|
|
|
1900
1913
|
});
|
|
1901
1914
|
}
|
|
1902
1915
|
|
|
1903
|
-
|
|
1904
|
-
var
|
|
1905
|
-
|
|
1906
|
-
displayName: "Message__Container"
|
|
1907
|
-
})(["border-radius:", "px;background-color:", ";padding-bottom:", "px;padding-left:", "px;padding-right:", "px;padding-top:", "px;flex-direction:row;align-items:flex-start;justify-content:space-between;"], function (_ref) {
|
|
1908
|
-
var theme = _ref.theme,
|
|
1909
|
-
noRadius = _ref.noRadius;
|
|
1910
|
-
return noRadius ? 0 : theme.kitt.spacing * 5;
|
|
1911
|
-
}, function (_ref2) {
|
|
1912
|
-
var theme = _ref2.theme,
|
|
1913
|
-
type = _ref2.type;
|
|
1914
|
-
return theme.kitt.feedbackMessage.backgroundColors[type];
|
|
1915
|
-
}, function (_ref3) {
|
|
1916
|
-
var theme = _ref3.theme;
|
|
1917
|
-
return theme.kitt.spacing * 4;
|
|
1918
|
-
}, function (_ref4) {
|
|
1919
|
-
var theme = _ref4.theme;
|
|
1920
|
-
return theme.kitt.spacing * 4;
|
|
1921
|
-
}, function (_ref5) {
|
|
1922
|
-
var theme = _ref5.theme;
|
|
1923
|
-
return theme.kitt.spacing * 4;
|
|
1924
|
-
}, function (_ref6) {
|
|
1925
|
-
var _insets$top;
|
|
1916
|
+
function IconContent(_ref) {
|
|
1917
|
+
var type = _ref.type,
|
|
1918
|
+
color = _ref.color;
|
|
1926
1919
|
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
}
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
}
|
|
1949
|
-
var centeredText = _ref10.centeredText;
|
|
1950
|
-
return centeredText ? 'center' : 'left';
|
|
1951
|
-
});
|
|
1920
|
+
switch (type) {
|
|
1921
|
+
case 'warning':
|
|
1922
|
+
return /*#__PURE__*/jsx(AlertCircleIcon, {
|
|
1923
|
+
color: color
|
|
1924
|
+
});
|
|
1925
|
+
|
|
1926
|
+
case 'success':
|
|
1927
|
+
return /*#__PURE__*/jsx(CheckIcon, {
|
|
1928
|
+
color: color
|
|
1929
|
+
});
|
|
1930
|
+
|
|
1931
|
+
case 'danger':
|
|
1932
|
+
return /*#__PURE__*/jsx(AlertTriangleIcon, {
|
|
1933
|
+
color: color
|
|
1934
|
+
});
|
|
1935
|
+
|
|
1936
|
+
default:
|
|
1937
|
+
return /*#__PURE__*/jsx(InfoIcon, {
|
|
1938
|
+
color: color
|
|
1939
|
+
});
|
|
1940
|
+
}
|
|
1941
|
+
}
|
|
1952
1942
|
|
|
1953
1943
|
var getColorByType = function (type) {
|
|
1954
1944
|
switch (type) {
|
|
@@ -1963,63 +1953,117 @@ var getColorByType = function (type) {
|
|
|
1963
1953
|
return 'black';
|
|
1964
1954
|
}
|
|
1965
1955
|
};
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
switch (type) {
|
|
1969
|
-
case 'warning':
|
|
1970
|
-
return /*#__PURE__*/jsx(AlertCircleIcon, {});
|
|
1971
|
-
|
|
1956
|
+
var getIconButtonColor = function (messageType) {
|
|
1957
|
+
switch (messageType) {
|
|
1972
1958
|
case 'success':
|
|
1973
|
-
return /*#__PURE__*/jsx(CheckIcon, {});
|
|
1974
|
-
|
|
1975
1959
|
case 'danger':
|
|
1976
|
-
return
|
|
1960
|
+
return 'white';
|
|
1977
1961
|
|
|
1962
|
+
case 'warning':
|
|
1978
1963
|
default:
|
|
1979
|
-
return
|
|
1964
|
+
return 'black';
|
|
1980
1965
|
}
|
|
1981
|
-
}
|
|
1966
|
+
};
|
|
1967
|
+
|
|
1968
|
+
var StyledMessageContainer = /*#__PURE__*/styled.View.withConfig({
|
|
1969
|
+
displayName: "BaseMessage__StyledMessageContainer"
|
|
1970
|
+
})(["flex-direction:row;align-items:flex-start;justify-content:space-between;min-height:60px;padding-top:", "px;border-radius:", "px;background-color:", ";"], function (_ref) {
|
|
1971
|
+
var _$insets$top;
|
|
1982
1972
|
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1973
|
+
var $insets = _ref.$insets;
|
|
1974
|
+
return (_$insets$top = $insets === null || $insets === void 0 ? void 0 : $insets.top) !== null && _$insets$top !== void 0 ? _$insets$top : 0;
|
|
1975
|
+
}, function (_ref2) {
|
|
1976
|
+
var theme = _ref2.theme,
|
|
1977
|
+
$hasNoRadius = _ref2.$hasNoRadius;
|
|
1978
|
+
return $hasNoRadius ? 0 : theme.kitt.spacing * 5;
|
|
1979
|
+
}, function (_ref3) {
|
|
1980
|
+
var theme = _ref3.theme,
|
|
1981
|
+
$type = _ref3.$type;
|
|
1982
|
+
return theme.kitt.feedbackMessage[$type].backgroundColor;
|
|
1983
|
+
});
|
|
1984
|
+
var StyledDismissWrapper = /*#__PURE__*/styled.View.withConfig({
|
|
1985
|
+
displayName: "BaseMessage__StyledDismissWrapper"
|
|
1986
|
+
})(["align-items:center;align-items:flex-start;margin:", ";"], function (_ref4) {
|
|
1987
|
+
var theme = _ref4.theme;
|
|
1988
|
+
var spacing = theme.kitt.spacing;
|
|
1989
|
+
return "".concat(spacing * 2.5, "px ").concat(spacing * 2, "px 0 ").concat(spacing * 5, "px");
|
|
1990
|
+
});
|
|
1991
|
+
var StyledIconContainer = /*#__PURE__*/styled.View.withConfig({
|
|
1992
|
+
displayName: "BaseMessage__StyledIconContainer"
|
|
1993
|
+
})(["margin:", ";"], function (_ref5) {
|
|
1994
|
+
var theme = _ref5.theme;
|
|
1995
|
+
var spacing = theme.kitt.spacing;
|
|
1996
|
+
return "".concat(spacing, "px ").concat(spacing * 5, "px 0 0");
|
|
1997
|
+
});
|
|
1998
|
+
var StyledTextContent = /*#__PURE__*/styled(Typography.Text).withConfig({
|
|
1999
|
+
displayName: "BaseMessage__StyledTextContent"
|
|
2000
|
+
})(["flex:1;text-align:", ";"], function (_ref6) {
|
|
2001
|
+
var $isCenteredText = _ref6.$isCenteredText;
|
|
2002
|
+
return $isCenteredText ? 'center' : 'left';
|
|
2003
|
+
});
|
|
2004
|
+
var StyledMessageContent = /*#__PURE__*/styled.View.withConfig({
|
|
2005
|
+
displayName: "BaseMessage__StyledMessageContent"
|
|
2006
|
+
})(["display:flex;flex-direction:row;flex-grow:1;align-self:center;align-items:flex-start;flex-shrink:1;padding:", ";"], function (_ref7) {
|
|
2007
|
+
var theme = _ref7.theme;
|
|
2008
|
+
var spacing = theme.kitt.spacing;
|
|
2009
|
+
return "".concat(spacing * 4, "px ").concat(spacing * 5, "px");
|
|
2010
|
+
});
|
|
2011
|
+
function BaseMessage(_ref8) {
|
|
2012
|
+
var _ref8$type = _ref8.type,
|
|
2013
|
+
type = _ref8$type === void 0 ? 'info' : _ref8$type,
|
|
2014
|
+
children = _ref8.children,
|
|
2015
|
+
hasNoRadius = _ref8.hasNoRadius,
|
|
2016
|
+
centeredText = _ref8.centeredText,
|
|
2017
|
+
insets = _ref8.insets,
|
|
2018
|
+
onDismiss = _ref8.onDismiss;
|
|
1993
2019
|
var color = getColorByType(type);
|
|
1994
|
-
return /*#__PURE__*/jsxs(
|
|
1995
|
-
type: type,
|
|
1996
|
-
|
|
1997
|
-
insets: insets,
|
|
1998
|
-
children: [
|
|
1999
|
-
children: /*#__PURE__*/jsx(
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2020
|
+
return /*#__PURE__*/jsxs(StyledMessageContainer, {
|
|
2021
|
+
$type: type,
|
|
2022
|
+
$hasNoRadius: hasNoRadius,
|
|
2023
|
+
$insets: insets,
|
|
2024
|
+
children: [/*#__PURE__*/jsxs(StyledMessageContent, {
|
|
2025
|
+
children: [centeredText ? null : /*#__PURE__*/jsx(StyledIconContainer, {
|
|
2026
|
+
children: /*#__PURE__*/jsx(Icon, {
|
|
2027
|
+
color: color,
|
|
2028
|
+
icon: /*#__PURE__*/jsx(IconContent, {
|
|
2029
|
+
type: type,
|
|
2030
|
+
color: color
|
|
2031
|
+
})
|
|
2032
|
+
})
|
|
2033
|
+
}), /*#__PURE__*/jsx(StyledTextContent, {
|
|
2034
|
+
$isCenteredText: centeredText,
|
|
2035
|
+
base: "body",
|
|
2009
2036
|
color: color,
|
|
2010
2037
|
children: children
|
|
2011
|
-
})
|
|
2012
|
-
}), onDismiss ? /*#__PURE__*/jsx(
|
|
2013
|
-
|
|
2014
|
-
|
|
2038
|
+
})]
|
|
2039
|
+
}), onDismiss ? /*#__PURE__*/jsx(StyledDismissWrapper, {
|
|
2040
|
+
children: /*#__PURE__*/jsx(IconButton, {
|
|
2041
|
+
color: getIconButtonColor(type),
|
|
2015
2042
|
icon: /*#__PURE__*/jsx(XIcon, {}),
|
|
2016
|
-
|
|
2017
|
-
color: color
|
|
2043
|
+
onPress: onDismiss
|
|
2018
2044
|
})
|
|
2019
2045
|
}) : null]
|
|
2020
2046
|
});
|
|
2021
2047
|
}
|
|
2022
2048
|
|
|
2049
|
+
function Message(_ref) {
|
|
2050
|
+
var _ref$type = _ref.type,
|
|
2051
|
+
type = _ref$type === void 0 ? 'info' : _ref$type,
|
|
2052
|
+
children = _ref.children,
|
|
2053
|
+
hasNoRadius = _ref.hasNoRadius,
|
|
2054
|
+
centeredText = _ref.centeredText,
|
|
2055
|
+
insets = _ref.insets,
|
|
2056
|
+
onDismiss = _ref.onDismiss;
|
|
2057
|
+
return /*#__PURE__*/jsx(BaseMessage, {
|
|
2058
|
+
insets: insets,
|
|
2059
|
+
hasNoRadius: hasNoRadius,
|
|
2060
|
+
type: type,
|
|
2061
|
+
centeredText: centeredText,
|
|
2062
|
+
onDismiss: onDismiss,
|
|
2063
|
+
children: children
|
|
2064
|
+
});
|
|
2065
|
+
}
|
|
2066
|
+
|
|
2023
2067
|
function ownKeys$4(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2024
2068
|
|
|
2025
2069
|
function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$4(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
@@ -2138,12 +2182,12 @@ var ModalView = /*#__PURE__*/styled.View.withConfig({
|
|
|
2138
2182
|
});
|
|
2139
2183
|
var ContentView = /*#__PURE__*/styled.View.withConfig({
|
|
2140
2184
|
displayName: "Modal__ContentView"
|
|
2141
|
-
})(["position:relative;display:flex;flex-direction:column;max-height:100%;max-width:540px;height:auto;width:100%;border-radius:", ";background-color:", ";"], function (_ref3) {
|
|
2185
|
+
})(["position:relative;display:flex;flex-direction:column;max-height:100%;max-width:540px;height:auto;width:100%;border-radius:", "px;background-color:", ";"], function (_ref3) {
|
|
2142
2186
|
var theme = _ref3.theme;
|
|
2143
2187
|
return theme.kitt.card.borderRadius;
|
|
2144
2188
|
}, function (_ref4) {
|
|
2145
2189
|
var theme = _ref4.theme;
|
|
2146
|
-
return theme.kitt.
|
|
2190
|
+
return theme.kitt.colors.uiBackgroundLight;
|
|
2147
2191
|
});
|
|
2148
2192
|
function Modal(_ref5) {
|
|
2149
2193
|
var visible = _ref5.visible,
|
|
@@ -2178,19 +2222,22 @@ function Notification(_ref) {
|
|
|
2178
2222
|
var type = _ref.type,
|
|
2179
2223
|
children = _ref.children,
|
|
2180
2224
|
centeredText = _ref.centeredText,
|
|
2181
|
-
|
|
2225
|
+
insets = _ref.insets,
|
|
2226
|
+
onDelete = _ref.onDelete,
|
|
2227
|
+
onDismiss = _ref.onDismiss;
|
|
2182
2228
|
|
|
2183
|
-
|
|
2184
|
-
|
|
2229
|
+
if ((process.env.NODE_ENV !== "production")) {
|
|
2230
|
+
if (onDelete) {
|
|
2231
|
+
throw new Error('onDelete is deprecated us onDismiss instead');
|
|
2232
|
+
}
|
|
2233
|
+
}
|
|
2185
2234
|
|
|
2186
|
-
return /*#__PURE__*/jsx(
|
|
2187
|
-
|
|
2235
|
+
return /*#__PURE__*/jsx(BaseMessage, {
|
|
2236
|
+
hasNoRadius: true,
|
|
2188
2237
|
type: type,
|
|
2189
2238
|
centeredText: centeredText,
|
|
2190
|
-
insets:
|
|
2191
|
-
|
|
2192
|
-
},
|
|
2193
|
-
onDismiss: onDelete,
|
|
2239
|
+
insets: insets,
|
|
2240
|
+
onDismiss: onDismiss,
|
|
2194
2241
|
children: children
|
|
2195
2242
|
});
|
|
2196
2243
|
}
|
|
@@ -2258,6 +2305,9 @@ function SkeletonContent(_ref3) {
|
|
|
2258
2305
|
});
|
|
2259
2306
|
}
|
|
2260
2307
|
|
|
2308
|
+
var SkeletonContainer = /*#__PURE__*/styled(View).withConfig({
|
|
2309
|
+
displayName: "Skeleton__SkeletonContainer"
|
|
2310
|
+
})(["overflow:hidden;"]);
|
|
2261
2311
|
function Skeleton(_ref) {
|
|
2262
2312
|
var isLoading = _ref.isLoading,
|
|
2263
2313
|
style = _ref.style;
|
|
@@ -2267,7 +2317,7 @@ function Skeleton(_ref) {
|
|
|
2267
2317
|
width = _useState2[0],
|
|
2268
2318
|
setWidth = _useState2[1];
|
|
2269
2319
|
|
|
2270
|
-
return /*#__PURE__*/jsx(
|
|
2320
|
+
return /*#__PURE__*/jsx(SkeletonContainer, {
|
|
2271
2321
|
style: style,
|
|
2272
2322
|
onLayout: function onLayout(_ref2) {
|
|
2273
2323
|
var nativeEvent = _ref2.nativeEvent;
|
|
@@ -2281,7 +2331,7 @@ function Skeleton(_ref) {
|
|
|
2281
2331
|
}
|
|
2282
2332
|
var Bar = /*#__PURE__*/styled(Skeleton).withConfig({
|
|
2283
2333
|
displayName: "Skeleton__Bar"
|
|
2284
|
-
})(["width:100%;height:", "px;border-radius:", "px;
|
|
2334
|
+
})(["width:100%;height:", "px;border-radius:", "px;"], function (_ref3) {
|
|
2285
2335
|
var theme = _ref3.theme;
|
|
2286
2336
|
return theme.kitt.spacing * 2;
|
|
2287
2337
|
}, function (_ref4) {
|
|
@@ -2290,7 +2340,7 @@ var Bar = /*#__PURE__*/styled(Skeleton).withConfig({
|
|
|
2290
2340
|
});
|
|
2291
2341
|
var Circle = /*#__PURE__*/styled(Skeleton).withConfig({
|
|
2292
2342
|
displayName: "Skeleton__Circle"
|
|
2293
|
-
})(["width:", "px;height:", "px;border-radius:", "px;
|
|
2343
|
+
})(["width:", "px;height:", "px;border-radius:", "px;"], function (_ref5) {
|
|
2294
2344
|
var theme = _ref5.theme;
|
|
2295
2345
|
return theme.kitt.spacing * 12;
|
|
2296
2346
|
}, function (_ref6) {
|
|
@@ -2302,7 +2352,7 @@ var Circle = /*#__PURE__*/styled(Skeleton).withConfig({
|
|
|
2302
2352
|
});
|
|
2303
2353
|
var Square = /*#__PURE__*/styled(Skeleton).withConfig({
|
|
2304
2354
|
displayName: "Skeleton__Square"
|
|
2305
|
-
})(["width:", "px;height:", "px;border-radius:", "px;
|
|
2355
|
+
})(["width:", "px;height:", "px;border-radius:", "px;"], function (_ref8) {
|
|
2306
2356
|
var theme = _ref8.theme;
|
|
2307
2357
|
return theme.kitt.spacing * 12;
|
|
2308
2358
|
}, function (_ref9) {
|
|
@@ -2664,7 +2714,7 @@ var StoryGrid = {
|
|
|
2664
2714
|
|
|
2665
2715
|
var Container$1 = /*#__PURE__*/styled.View.withConfig({
|
|
2666
2716
|
displayName: "Tag__Container"
|
|
2667
|
-
})(["background-color:", ";border-width:", ";border-color:", ";padding:", ";border-radius:", ";align-self:flex-start;"], function (_ref) {
|
|
2717
|
+
})(["background-color:", ";border-width:", "px;border-color:", ";padding:", ";border-radius:", "px;align-self:flex-start;"], function (_ref) {
|
|
2668
2718
|
var theme = _ref.theme,
|
|
2669
2719
|
type = _ref.type,
|
|
2670
2720
|
variant = _ref.variant;
|
|
@@ -2734,6 +2784,7 @@ var lateOceanColorPalette = {
|
|
|
2734
2784
|
warmEmbrace: '#F4D3CE',
|
|
2735
2785
|
warmEmbraceLight1: '#FFEDE6',
|
|
2736
2786
|
black1000: '#000000',
|
|
2787
|
+
black800: '#2C293D',
|
|
2737
2788
|
black555: '#737373',
|
|
2738
2789
|
black200: '#CCCCCC',
|
|
2739
2790
|
black100: '#E5E5E5',
|
|
@@ -2749,7 +2800,7 @@ var lateOceanColorPalette = {
|
|
|
2749
2800
|
moonPurpleLight1: '#EDEBFC'
|
|
2750
2801
|
};
|
|
2751
2802
|
|
|
2752
|
-
var
|
|
2803
|
+
var colors = {
|
|
2753
2804
|
primary: lateOceanColorPalette.lateOcean,
|
|
2754
2805
|
primaryLight: lateOceanColorPalette.lateOceanLight1,
|
|
2755
2806
|
accent: lateOceanColorPalette.warmEmbrace,
|
|
@@ -2757,6 +2808,8 @@ var colorsLateOceanTheme = {
|
|
|
2757
2808
|
success: lateOceanColorPalette.viride,
|
|
2758
2809
|
correct: lateOceanColorPalette.viride,
|
|
2759
2810
|
danger: lateOceanColorPalette.englishVermillon,
|
|
2811
|
+
info: lateOceanColorPalette.aero,
|
|
2812
|
+
warning: lateOceanColorPalette.goldCrayola,
|
|
2760
2813
|
separator: lateOceanColorPalette.black100,
|
|
2761
2814
|
hover: lateOceanColorPalette.black100,
|
|
2762
2815
|
black: lateOceanColorPalette.black1000,
|
|
@@ -2772,24 +2825,24 @@ var colorsLateOceanTheme = {
|
|
|
2772
2825
|
};
|
|
2773
2826
|
|
|
2774
2827
|
var avatar = {
|
|
2775
|
-
borderRadius:
|
|
2828
|
+
borderRadius: 10,
|
|
2776
2829
|
"default": {
|
|
2777
|
-
backgroundColor:
|
|
2830
|
+
backgroundColor: colors.primary
|
|
2778
2831
|
},
|
|
2779
2832
|
light: {
|
|
2780
2833
|
backgroundColor: lateOceanColorPalette.black100
|
|
2781
2834
|
}
|
|
2782
2835
|
};
|
|
2783
2836
|
|
|
2784
|
-
var
|
|
2785
|
-
borderRadius:
|
|
2837
|
+
var button = {
|
|
2838
|
+
borderRadius: 30,
|
|
2786
2839
|
borderWidth: {
|
|
2787
|
-
disabled:
|
|
2788
|
-
focus:
|
|
2840
|
+
disabled: 2,
|
|
2841
|
+
focus: 3
|
|
2789
2842
|
},
|
|
2790
|
-
minHeight:
|
|
2791
|
-
minWidth:
|
|
2792
|
-
maxWidth:
|
|
2843
|
+
minHeight: 40,
|
|
2844
|
+
minWidth: 40,
|
|
2845
|
+
maxWidth: 335,
|
|
2793
2846
|
scale: {
|
|
2794
2847
|
base: {
|
|
2795
2848
|
"default": 1,
|
|
@@ -2816,9 +2869,9 @@ var buttonLateOceanTheme = {
|
|
|
2816
2869
|
focusBorderColor: 'rgba(0, 0, 0, 0.1)'
|
|
2817
2870
|
},
|
|
2818
2871
|
primary: {
|
|
2819
|
-
backgroundColor:
|
|
2820
|
-
pressedBackgroundColor:
|
|
2821
|
-
hoverBackgroundColor:
|
|
2872
|
+
backgroundColor: colors.primary,
|
|
2873
|
+
pressedBackgroundColor: colors.primaryLight,
|
|
2874
|
+
hoverBackgroundColor: colors.primaryLight,
|
|
2822
2875
|
focusBorderColor: 'rgba(76, 52, 224, 0.2)'
|
|
2823
2876
|
},
|
|
2824
2877
|
white: {
|
|
@@ -2828,56 +2881,61 @@ var buttonLateOceanTheme = {
|
|
|
2828
2881
|
focusBorderColor: 'rgba(255, 255, 255, 0.1)'
|
|
2829
2882
|
},
|
|
2830
2883
|
subtle: {
|
|
2831
|
-
backgroundColor:
|
|
2832
|
-
pressedBackgroundColor:
|
|
2833
|
-
hoverBackgroundColor:
|
|
2884
|
+
backgroundColor: colors.transparent,
|
|
2885
|
+
pressedBackgroundColor: colors.transparent,
|
|
2886
|
+
hoverBackgroundColor: colors.transparent,
|
|
2834
2887
|
focusBorderColor: 'rgba(76, 52, 224, 0.2)',
|
|
2835
|
-
color:
|
|
2888
|
+
color: colors.primary,
|
|
2836
2889
|
hoverColor: 'rgba(76, 52, 224, 0.8)',
|
|
2837
2890
|
activeColor: 'rgba(76, 52, 224, 0.8)'
|
|
2838
2891
|
},
|
|
2839
2892
|
'subtle-dark': {
|
|
2840
|
-
backgroundColor:
|
|
2841
|
-
pressedBackgroundColor:
|
|
2842
|
-
hoverBackgroundColor:
|
|
2893
|
+
backgroundColor: colors.transparent,
|
|
2894
|
+
pressedBackgroundColor: colors.transparent,
|
|
2895
|
+
hoverBackgroundColor: colors.transparent,
|
|
2843
2896
|
focusBorderColor: 'rgba(0, 0, 0, 0.1)',
|
|
2844
|
-
color:
|
|
2897
|
+
color: colors.black,
|
|
2845
2898
|
hoverColor: 'rgba(0, 0, 0, 0.8)',
|
|
2846
2899
|
activeColor: 'rgba(0, 0, 0, 0.8)'
|
|
2847
2900
|
},
|
|
2848
2901
|
disabled: {
|
|
2849
|
-
backgroundColor:
|
|
2850
|
-
pressedBackgroundColor:
|
|
2851
|
-
hoverBackgroundColor:
|
|
2902
|
+
backgroundColor: colors.disabled,
|
|
2903
|
+
pressedBackgroundColor: colors.disabled,
|
|
2904
|
+
hoverBackgroundColor: colors.disabled,
|
|
2852
2905
|
focusBorderColor: lateOceanColorPalette.black100,
|
|
2853
2906
|
borderColor: lateOceanColorPalette.black100
|
|
2854
2907
|
}
|
|
2855
2908
|
};
|
|
2856
2909
|
|
|
2857
|
-
var
|
|
2858
|
-
borderRadius:
|
|
2859
|
-
borderWidth:
|
|
2860
|
-
padding: '16px',
|
|
2910
|
+
var card = {
|
|
2911
|
+
borderRadius: 20,
|
|
2912
|
+
borderWidth: 2,
|
|
2861
2913
|
primary: {
|
|
2862
|
-
backgroundColor:
|
|
2863
|
-
borderColor:
|
|
2914
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
2915
|
+
borderColor: colors.primary
|
|
2864
2916
|
},
|
|
2865
2917
|
secondary: {
|
|
2866
|
-
backgroundColor:
|
|
2867
|
-
borderColor:
|
|
2918
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
2919
|
+
borderColor: colors.separator
|
|
2868
2920
|
},
|
|
2869
2921
|
subtle: {
|
|
2870
2922
|
backgroundColor: lateOceanColorPalette.black50,
|
|
2871
|
-
borderColor:
|
|
2923
|
+
borderColor: colors.separator
|
|
2872
2924
|
}
|
|
2873
2925
|
};
|
|
2874
2926
|
|
|
2875
|
-
var
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2927
|
+
var feedbackMessage = {
|
|
2928
|
+
danger: {
|
|
2929
|
+
backgroundColor: colors.danger
|
|
2930
|
+
},
|
|
2931
|
+
success: {
|
|
2932
|
+
backgroundColor: colors.success
|
|
2933
|
+
},
|
|
2934
|
+
info: {
|
|
2935
|
+
backgroundColor: colors.info
|
|
2936
|
+
},
|
|
2937
|
+
warning: {
|
|
2938
|
+
backgroundColor: colors.warning
|
|
2881
2939
|
}
|
|
2882
2940
|
};
|
|
2883
2941
|
|
|
@@ -2887,18 +2945,19 @@ var calcLineHeight = function (fontSize, lineHeightMultiplier) {
|
|
|
2887
2945
|
var createTypographyTypeConfig = function (lineHeightMultiplier, baseAndSmallFontSize, mediumAndWideFontSize) {
|
|
2888
2946
|
return {
|
|
2889
2947
|
baseAndSmall: {
|
|
2890
|
-
fontSize:
|
|
2891
|
-
lineHeight:
|
|
2948
|
+
fontSize: baseAndSmallFontSize,
|
|
2949
|
+
lineHeight: calcLineHeight(baseAndSmallFontSize, lineHeightMultiplier)
|
|
2892
2950
|
},
|
|
2893
2951
|
mediumAndWide: {
|
|
2894
|
-
fontSize:
|
|
2895
|
-
lineHeight:
|
|
2952
|
+
fontSize: mediumAndWideFontSize,
|
|
2953
|
+
lineHeight: calcLineHeight(mediumAndWideFontSize, lineHeightMultiplier)
|
|
2896
2954
|
}
|
|
2897
2955
|
};
|
|
2898
2956
|
};
|
|
2899
|
-
var
|
|
2957
|
+
var typography = {
|
|
2900
2958
|
colors: {
|
|
2901
2959
|
black: lateOceanColorPalette.black1000,
|
|
2960
|
+
'black-anthracite': lateOceanColorPalette.black800,
|
|
2902
2961
|
'black-light': lateOceanColorPalette.black555,
|
|
2903
2962
|
white: lateOceanColorPalette.white,
|
|
2904
2963
|
'white-light': lateOceanColorPalette.white,
|
|
@@ -2958,17 +3017,17 @@ var typographyLateOceanTheme = {
|
|
|
2958
3017
|
|
|
2959
3018
|
var inputStatesStyle = {
|
|
2960
3019
|
"default": {
|
|
2961
|
-
backgroundColor:
|
|
2962
|
-
borderColor:
|
|
3020
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
3021
|
+
borderColor: colors.separator,
|
|
2963
3022
|
color: 'black'
|
|
2964
3023
|
},
|
|
2965
3024
|
pending: {
|
|
2966
|
-
backgroundColor:
|
|
2967
|
-
borderColor:
|
|
3025
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
3026
|
+
borderColor: colors.separator,
|
|
2968
3027
|
color: 'black'
|
|
2969
3028
|
},
|
|
2970
3029
|
valid: {
|
|
2971
|
-
backgroundColor:
|
|
3030
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
2972
3031
|
borderColor: lateOceanColorPalette.black100,
|
|
2973
3032
|
color: 'black'
|
|
2974
3033
|
},
|
|
@@ -2977,56 +3036,61 @@ var inputStatesStyle = {
|
|
|
2977
3036
|
color: 'black'
|
|
2978
3037
|
},
|
|
2979
3038
|
focus: {
|
|
2980
|
-
borderColor:
|
|
3039
|
+
borderColor: colors.primary,
|
|
2981
3040
|
color: 'black'
|
|
2982
3041
|
},
|
|
2983
3042
|
disabled: {
|
|
2984
|
-
backgroundColor:
|
|
2985
|
-
borderColor:
|
|
3043
|
+
backgroundColor: colors.disabled,
|
|
3044
|
+
borderColor: colors.separator,
|
|
2986
3045
|
color: 'black-light'
|
|
2987
3046
|
},
|
|
2988
3047
|
invalid: {
|
|
2989
|
-
borderColor:
|
|
3048
|
+
borderColor: colors.separator,
|
|
2990
3049
|
color: 'black'
|
|
2991
3050
|
}
|
|
2992
3051
|
};
|
|
2993
3052
|
var input = {
|
|
2994
3053
|
color: {
|
|
2995
|
-
selection:
|
|
2996
|
-
placeholder:
|
|
3054
|
+
selection: colors.primary,
|
|
3055
|
+
placeholder: typography.colors['black-light']
|
|
2997
3056
|
},
|
|
2998
|
-
borderWidth:
|
|
2999
|
-
borderRadius:
|
|
3057
|
+
borderWidth: 2,
|
|
3058
|
+
borderRadius: 10,
|
|
3000
3059
|
icon: {
|
|
3001
3060
|
size: 20
|
|
3002
3061
|
},
|
|
3003
3062
|
padding: {
|
|
3004
|
-
"default": '
|
|
3005
|
-
iOSSingleLine: '
|
|
3063
|
+
"default": '5px 16px',
|
|
3064
|
+
iOSSingleLine: '9px 16px'
|
|
3065
|
+
},
|
|
3066
|
+
transition: {
|
|
3067
|
+
property: 'border-color',
|
|
3068
|
+
duration: '200ms',
|
|
3069
|
+
timingFunction: 'ease-in-out'
|
|
3006
3070
|
},
|
|
3007
3071
|
states: inputStatesStyle
|
|
3008
3072
|
};
|
|
3009
3073
|
|
|
3010
|
-
var
|
|
3074
|
+
var inputField = {
|
|
3011
3075
|
labelContainerPaddingBottom: 5,
|
|
3012
3076
|
iconMarginLeft: 6
|
|
3013
3077
|
};
|
|
3014
3078
|
|
|
3015
|
-
var
|
|
3079
|
+
var radio = {
|
|
3016
3080
|
size: 18,
|
|
3017
3081
|
unchecked: {
|
|
3018
|
-
backgroundColor:
|
|
3019
|
-
borderWidth:
|
|
3082
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
3083
|
+
borderWidth: 2,
|
|
3020
3084
|
borderColor: lateOceanColorPalette.black200
|
|
3021
3085
|
},
|
|
3022
3086
|
checked: {
|
|
3023
|
-
backgroundColor:
|
|
3087
|
+
backgroundColor: colors.primary,
|
|
3024
3088
|
innerSize: 5,
|
|
3025
|
-
innerBackgroundColor:
|
|
3089
|
+
innerBackgroundColor: colors.uiBackgroundLight
|
|
3026
3090
|
},
|
|
3027
3091
|
disabled: {
|
|
3028
|
-
backgroundColor:
|
|
3029
|
-
borderColor:
|
|
3092
|
+
backgroundColor: colors.disabled,
|
|
3093
|
+
borderColor: colors.separator
|
|
3030
3094
|
}
|
|
3031
3095
|
};
|
|
3032
3096
|
|
|
@@ -3036,12 +3100,12 @@ var textArea = {
|
|
|
3036
3100
|
|
|
3037
3101
|
var forms = {
|
|
3038
3102
|
input: input,
|
|
3039
|
-
radio:
|
|
3040
|
-
inputField:
|
|
3103
|
+
radio: radio,
|
|
3104
|
+
inputField: inputField,
|
|
3041
3105
|
textArea: textArea
|
|
3042
3106
|
};
|
|
3043
3107
|
|
|
3044
|
-
var
|
|
3108
|
+
var fullScreenModal = {
|
|
3045
3109
|
header: {
|
|
3046
3110
|
paddingVertical: 12,
|
|
3047
3111
|
paddingHorizontal: 16,
|
|
@@ -3073,77 +3137,77 @@ var iconButton = {
|
|
|
3073
3137
|
},
|
|
3074
3138
|
disabled: {
|
|
3075
3139
|
scale: 1,
|
|
3076
|
-
backgroundColor:
|
|
3077
|
-
borderColor:
|
|
3140
|
+
backgroundColor: button.disabled.backgroundColor,
|
|
3141
|
+
borderColor: button.disabled.borderColor
|
|
3078
3142
|
},
|
|
3079
3143
|
"default": {
|
|
3080
|
-
pressedBackgroundColor:
|
|
3144
|
+
pressedBackgroundColor: button["default"].pressedBackgroundColor
|
|
3081
3145
|
},
|
|
3082
3146
|
white: {
|
|
3083
|
-
pressedBackgroundColor:
|
|
3147
|
+
pressedBackgroundColor: button.white.hoverBackgroundColor
|
|
3084
3148
|
}
|
|
3085
3149
|
};
|
|
3086
3150
|
|
|
3087
|
-
var
|
|
3151
|
+
var listItem = {
|
|
3088
3152
|
padding: '12px 16px',
|
|
3089
|
-
borderColor:
|
|
3090
|
-
borderWidth:
|
|
3091
|
-
innerMargin:
|
|
3153
|
+
borderColor: colors.separator,
|
|
3154
|
+
borderWidth: 1,
|
|
3155
|
+
innerMargin: 8
|
|
3092
3156
|
};
|
|
3093
3157
|
|
|
3094
|
-
var
|
|
3158
|
+
var shadows = {
|
|
3095
3159
|
medium: '0px 10px 20px rgba(41, 48, 51, 0.25)'
|
|
3096
3160
|
};
|
|
3097
3161
|
|
|
3098
|
-
var
|
|
3162
|
+
var skeleton = {
|
|
3099
3163
|
backgroundColor: lateOceanColorPalette.black100,
|
|
3100
3164
|
flareColor: lateOceanColorPalette.black200,
|
|
3101
3165
|
animationDuration: 1000
|
|
3102
3166
|
};
|
|
3103
3167
|
|
|
3104
|
-
var
|
|
3105
|
-
borderRadius:
|
|
3168
|
+
var tag = {
|
|
3169
|
+
borderRadius: 10,
|
|
3106
3170
|
padding: '2px 12px',
|
|
3107
3171
|
primary: {
|
|
3108
3172
|
fill: {
|
|
3109
3173
|
backgroundColor: lateOceanColorPalette.moonPurpleLight1,
|
|
3110
|
-
borderWidth:
|
|
3111
|
-
borderColor:
|
|
3174
|
+
borderWidth: 0,
|
|
3175
|
+
borderColor: colors.transparent
|
|
3112
3176
|
},
|
|
3113
3177
|
outline: {
|
|
3114
|
-
backgroundColor:
|
|
3115
|
-
borderWidth:
|
|
3116
|
-
borderColor:
|
|
3178
|
+
backgroundColor: colors.transparent,
|
|
3179
|
+
borderWidth: 1,
|
|
3180
|
+
borderColor: colors.primary
|
|
3117
3181
|
}
|
|
3118
3182
|
},
|
|
3119
3183
|
"default": {
|
|
3120
3184
|
fill: {
|
|
3121
3185
|
backgroundColor: lateOceanColorPalette.black50,
|
|
3122
|
-
borderWidth:
|
|
3123
|
-
borderColor:
|
|
3186
|
+
borderWidth: 0,
|
|
3187
|
+
borderColor: colors.transparent
|
|
3124
3188
|
},
|
|
3125
3189
|
outline: {
|
|
3126
|
-
backgroundColor:
|
|
3127
|
-
borderWidth:
|
|
3128
|
-
borderColor:
|
|
3190
|
+
backgroundColor: colors.transparent,
|
|
3191
|
+
borderWidth: 1,
|
|
3192
|
+
borderColor: colors.black
|
|
3129
3193
|
}
|
|
3130
3194
|
},
|
|
3131
3195
|
danger: {
|
|
3132
3196
|
fill: {
|
|
3133
3197
|
backgroundColor: lateOceanColorPalette.warmEmbrace,
|
|
3134
|
-
borderWidth:
|
|
3135
|
-
borderColor:
|
|
3198
|
+
borderWidth: 0,
|
|
3199
|
+
borderColor: colors.transparent
|
|
3136
3200
|
},
|
|
3137
3201
|
outline: {
|
|
3138
|
-
backgroundColor:
|
|
3139
|
-
borderWidth:
|
|
3140
|
-
borderColor:
|
|
3202
|
+
backgroundColor: colors.transparent,
|
|
3203
|
+
borderWidth: 1,
|
|
3204
|
+
borderColor: colors.danger
|
|
3141
3205
|
}
|
|
3142
3206
|
}
|
|
3143
3207
|
};
|
|
3144
3208
|
|
|
3145
3209
|
var tooltip = {
|
|
3146
|
-
backgroundColor:
|
|
3210
|
+
backgroundColor: colors.black,
|
|
3147
3211
|
borderRadius: 10,
|
|
3148
3212
|
opacity: 0.95,
|
|
3149
3213
|
horizontalPadding: 16,
|
|
@@ -3176,23 +3240,23 @@ var breakpoints = {
|
|
|
3176
3240
|
|
|
3177
3241
|
var theme = {
|
|
3178
3242
|
spacing: 4,
|
|
3179
|
-
colors:
|
|
3243
|
+
colors: colors,
|
|
3180
3244
|
palettes: {
|
|
3181
3245
|
lateOcean: lateOceanColorPalette
|
|
3182
3246
|
},
|
|
3183
3247
|
avatar: avatar,
|
|
3184
|
-
button:
|
|
3185
|
-
card:
|
|
3186
|
-
feedbackMessage:
|
|
3248
|
+
button: button,
|
|
3249
|
+
card: card,
|
|
3250
|
+
feedbackMessage: feedbackMessage,
|
|
3187
3251
|
forms: forms,
|
|
3188
|
-
typography:
|
|
3189
|
-
tag:
|
|
3190
|
-
shadows:
|
|
3191
|
-
fullScreenModal:
|
|
3252
|
+
typography: typography,
|
|
3253
|
+
tag: tag,
|
|
3254
|
+
shadows: shadows,
|
|
3255
|
+
fullScreenModal: fullScreenModal,
|
|
3192
3256
|
iconButton: iconButton,
|
|
3193
|
-
listItem:
|
|
3257
|
+
listItem: listItem,
|
|
3194
3258
|
tooltip: tooltip,
|
|
3195
|
-
skeleton:
|
|
3259
|
+
skeleton: skeleton,
|
|
3196
3260
|
breakpoints: breakpoints
|
|
3197
3261
|
};
|
|
3198
3262
|
|
|
@@ -3357,25 +3421,6 @@ function TimePicker(_ref) {
|
|
|
3357
3421
|
function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3358
3422
|
|
|
3359
3423
|
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3360
|
-
|
|
3361
|
-
var Arrow = function (props) {
|
|
3362
|
-
return /*#__PURE__*/jsx("svg", _objectSpread$2(_objectSpread$2({}, props), {}, {
|
|
3363
|
-
children: /*#__PURE__*/jsx("path", {
|
|
3364
|
-
fillRule: "evenodd",
|
|
3365
|
-
clipRule: "evenodd",
|
|
3366
|
-
d: "M22.399 6.128C20.939 7.722 19.767 9 18 9s-2.938-1.278-4.399-2.872C11.187 3.494 7.984 0 0 0h36c-7.984 0-11.187 3.494-13.601 6.128z",
|
|
3367
|
-
fill: "currentColor"
|
|
3368
|
-
})
|
|
3369
|
-
}));
|
|
3370
|
-
};
|
|
3371
|
-
|
|
3372
|
-
Arrow.defaultProps = {
|
|
3373
|
-
width: "36",
|
|
3374
|
-
height: "8",
|
|
3375
|
-
viewBox: "0 0 36 9",
|
|
3376
|
-
fill: "none",
|
|
3377
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
3378
|
-
};
|
|
3379
3424
|
var StyledTooltipView = /*#__PURE__*/styled.View.withConfig({
|
|
3380
3425
|
displayName: "TooltipView__StyledTooltipView"
|
|
3381
3426
|
})(["align-items:center;"]);
|
|
@@ -3398,7 +3443,7 @@ var StyledTooltipContent = /*#__PURE__*/styled.View.withConfig({
|
|
|
3398
3443
|
function ArrowView(props) {
|
|
3399
3444
|
var theme = /*#__PURE__*/useTheme();
|
|
3400
3445
|
return /*#__PURE__*/jsx(View, _objectSpread$2(_objectSpread$2({}, props), {}, {
|
|
3401
|
-
children: /*#__PURE__*/jsx(
|
|
3446
|
+
children: /*#__PURE__*/jsx(TooltipArrowIcon, {
|
|
3402
3447
|
color: theme.kitt.tooltip.backgroundColor
|
|
3403
3448
|
})
|
|
3404
3449
|
}));
|
|
@@ -3473,7 +3518,7 @@ function Tooltip(_ref) {
|
|
|
3473
3518
|
};
|
|
3474
3519
|
_f.asString = "function _f(){const{withSpring,pressed,theme}=jsThis._closure;{return{opacity:withSpring(pressed.value?theme.kitt.tooltip.opacity:0)};}}";
|
|
3475
3520
|
_f.__workletHash = 15953928507970;
|
|
3476
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/Tooltip/Tooltip.tsx (
|
|
3521
|
+
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/Tooltip/Tooltip.tsx (59:41)";
|
|
3477
3522
|
_f.__optimalization = 2;
|
|
3478
3523
|
|
|
3479
3524
|
global.__reanimatedWorkletInit(_f);
|
|
@@ -3559,13 +3604,8 @@ function TypographyEmoji(_ref2) {
|
|
|
3559
3604
|
var typeConfig = getTypographyTypeConfig(typeForCurrentWindowSize || 'body', theme);
|
|
3560
3605
|
var typeConfigKey = getTypographyTypeConfigKey(theme);
|
|
3561
3606
|
var fontSize = typeConfig[typeConfigKey].fontSize;
|
|
3562
|
-
|
|
3563
|
-
if ((process.env.NODE_ENV !== "production")) {
|
|
3564
|
-
if (!fontSize.endsWith('px')) throw new Error("Unexpected font-size value: ".concat(fontSize));
|
|
3565
|
-
}
|
|
3566
|
-
|
|
3567
3607
|
return /*#__PURE__*/jsx(StyledTypographyEmoji, {
|
|
3568
|
-
size:
|
|
3608
|
+
size: fontSize,
|
|
3569
3609
|
emoji: emoji
|
|
3570
3610
|
});
|
|
3571
3611
|
}
|
|
@@ -3739,10 +3779,8 @@ function MatchWindowSize(_ref) {
|
|
|
3739
3779
|
|
|
3740
3780
|
var match = useMatchWindowSize(matchWindowSizeOptions);
|
|
3741
3781
|
if (!match) return null;
|
|
3742
|
-
return
|
|
3743
|
-
children: children
|
|
3744
|
-
});
|
|
3782
|
+
return children;
|
|
3745
3783
|
}
|
|
3746
3784
|
|
|
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 };
|
|
3785
|
+
export { Avatar, Button, Card, Emoji, ExternalLink, Flex, FullScreenModal, Icon, IconButton, InputEmail, 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 };
|
|
3748
3786
|
//# sourceMappingURL=index-browser-all.es.js.map
|