@ornikar/kitt-universal 4.2.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/ListItem/ListItem.d.ts.map +1 -1
- package/dist/definitions/Tooltip/Tooltip.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 +19 -93
- 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/button.d.ts +6 -6
- 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} +2 -2
- package/dist/definitions/themes/late-ocean/colors.d.ts.map +1 -0
- package/dist/definitions/themes/late-ocean/{feedbackMessage.d.ts → feedback.d.ts} +1 -1
- 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 +274 -262
- package/dist/index-browser-all.es.android.js.map +1 -1
- package/dist/index-browser-all.es.ios.js +274 -262
- package/dist/index-browser-all.es.ios.js.map +1 -1
- package/dist/index-browser-all.es.js +274 -262
- package/dist/index-browser-all.es.js.map +1 -1
- package/dist/index-browser-all.es.web.js +313 -275
- package/dist/index-browser-all.es.web.js.map +1 -1
- package/dist/index-node-14.17.cjs.js +248 -237
- 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 +279 -239
- package/dist/index-node-14.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.android.js +105 -99
- package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.ios.js +105 -99
- package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.js +105 -99
- package/dist/linaria-themes-browser-all.es.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.web.js +105 -99
- package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.js +105 -99
- package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.web.js +105 -99
- 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 +3 -3
- package/dist/definitions/themes/late-ocean/avatarLateOceanTheme.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/feedbackMessage.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
|
@@ -2,7 +2,7 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
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';
|
|
@@ -137,9 +137,9 @@ var KittBreakpointsMax = {
|
|
|
137
137
|
|
|
138
138
|
var _excluded$e = ["accessibilityRole", "base", "small", "medium", "large", "variant", "color"];
|
|
139
139
|
|
|
140
|
-
function ownKeys$
|
|
140
|
+
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; }
|
|
141
141
|
|
|
142
|
-
function _objectSpread$
|
|
142
|
+
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; }
|
|
143
143
|
var IsHeaderTypographyContext = /*#__PURE__*/createContext(undefined);
|
|
144
144
|
var TypographyColorContext = /*#__PURE__*/createContext('black');
|
|
145
145
|
function useTypographyColor() {
|
|
@@ -179,7 +179,7 @@ var StyledTypography = /*#__PURE__*/styled.Text.withConfig({
|
|
|
179
179
|
headers = _theme$kitt$typograph.headers,
|
|
180
180
|
bodies = _theme$kitt$typograph.bodies;
|
|
181
181
|
var typeConfigKey = getTypographyTypeConfigKey(theme);
|
|
182
|
-
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 ");
|
|
182
|
+
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 ");
|
|
183
183
|
}, function (_ref2) {
|
|
184
184
|
var theme = _ref2.theme,
|
|
185
185
|
$color = _ref2.$color;
|
|
@@ -232,14 +232,14 @@ function Typography(_ref4) {
|
|
|
232
232
|
var nonNullableVariant = variant !== null && variant !== void 0 ? variant : isHeader ? 'bold' : 'regular';
|
|
233
233
|
var content = baseOrDefaultToBody ? /*#__PURE__*/jsx(IsHeaderTypographyContext.Provider, {
|
|
234
234
|
value: isHeader,
|
|
235
|
-
children: /*#__PURE__*/jsx(StyledTypography, _objectSpread$
|
|
235
|
+
children: /*#__PURE__*/jsx(StyledTypography, _objectSpread$k({
|
|
236
236
|
$color: colorOrDefaultToBlack,
|
|
237
237
|
$isHeader: isHeader,
|
|
238
238
|
$typeForCurrentWindowSize: typeForCurrentWindowSize,
|
|
239
239
|
$variant: nonNullableVariant,
|
|
240
240
|
accessibilityRole: accessibilityRole || undefined
|
|
241
241
|
}, otherProps))
|
|
242
|
-
}) : /*#__PURE__*/jsx(StyledTypography, _objectSpread$
|
|
242
|
+
}) : /*#__PURE__*/jsx(StyledTypography, _objectSpread$k({
|
|
243
243
|
$color: colorOrDefaultToBlack,
|
|
244
244
|
$isHeader: isHeader,
|
|
245
245
|
$variant: nonNullableVariant,
|
|
@@ -252,13 +252,13 @@ function Typography(_ref4) {
|
|
|
252
252
|
}
|
|
253
253
|
|
|
254
254
|
function TypographyText(props) {
|
|
255
|
-
return /*#__PURE__*/jsx(Typography, _objectSpread$
|
|
255
|
+
return /*#__PURE__*/jsx(Typography, _objectSpread$k({
|
|
256
256
|
accessibilityRole: null
|
|
257
257
|
}, props));
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
function TypographyParagraph(props) {
|
|
261
|
-
return /*#__PURE__*/jsx(Typography, _objectSpread$
|
|
261
|
+
return /*#__PURE__*/jsx(Typography, _objectSpread$k({
|
|
262
262
|
accessibilityRole: "paragraph"
|
|
263
263
|
}, props));
|
|
264
264
|
}
|
|
@@ -266,7 +266,7 @@ function TypographyParagraph(props) {
|
|
|
266
266
|
var createHeading = function (level, defaultBase) {
|
|
267
267
|
// https://github.com/necolas/react-native-web/issues/401
|
|
268
268
|
function TypographyHeading(props) {
|
|
269
|
-
return /*#__PURE__*/jsx(Typography, _objectSpread$
|
|
269
|
+
return /*#__PURE__*/jsx(Typography, _objectSpread$k(_objectSpread$k({
|
|
270
270
|
accessibilityRole: "header",
|
|
271
271
|
base: defaultBase
|
|
272
272
|
}, props), {}, {
|
|
@@ -304,9 +304,9 @@ Typography.h5 = createHeading(5, 'header5');
|
|
|
304
304
|
|
|
305
305
|
var _excluded$d = ["size", "base", "round", "light"];
|
|
306
306
|
|
|
307
|
-
function ownKeys$
|
|
307
|
+
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; }
|
|
308
308
|
|
|
309
|
-
function _objectSpread$
|
|
309
|
+
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; }
|
|
310
310
|
|
|
311
311
|
var getInitials = function (firstname, lastname) {
|
|
312
312
|
return "".concat(firstname[0]).concat(lastname[0]).toUpperCase();
|
|
@@ -319,7 +319,7 @@ var StyledAvatarView = /*#__PURE__*/styled.View.withConfig({
|
|
|
319
319
|
$isRound = _ref.$isRound,
|
|
320
320
|
$size = _ref.$size;
|
|
321
321
|
if ($isRound) return "".concat($size / 2, "px");
|
|
322
|
-
return theme.kitt.avatar.borderRadius;
|
|
322
|
+
return "".concat(theme.kitt.avatar.borderRadius, "px");
|
|
323
323
|
}, function (_ref2) {
|
|
324
324
|
var theme = _ref2.theme,
|
|
325
325
|
$isLight = _ref2.$isLight;
|
|
@@ -383,7 +383,7 @@ function Avatar(_ref6) {
|
|
|
383
383
|
$size: size,
|
|
384
384
|
$isRound: round,
|
|
385
385
|
$isLight: light,
|
|
386
|
-
children: /*#__PURE__*/jsx(AvatarContent, _objectSpread$
|
|
386
|
+
children: /*#__PURE__*/jsx(AvatarContent, _objectSpread$j({
|
|
387
387
|
size: size,
|
|
388
388
|
base: base,
|
|
389
389
|
isLight: light
|
|
@@ -400,7 +400,7 @@ var StyledPressable = /*#__PURE__*/styled.Pressable.withConfig({
|
|
|
400
400
|
});
|
|
401
401
|
var StyledAnimatedView = /*#__PURE__*/styled(Animated$1.View).withConfig({
|
|
402
402
|
displayName: "AnimatedButtonPressable__StyledAnimatedView"
|
|
403
|
-
})(["border-radius:", ";"], function (_ref2) {
|
|
403
|
+
})(["border-radius:", "px;"], function (_ref2) {
|
|
404
404
|
var theme = _ref2.theme;
|
|
405
405
|
return theme.kitt.button.borderRadius;
|
|
406
406
|
});
|
|
@@ -489,13 +489,13 @@ var AnimatedButtonPressable = /*#__PURE__*/forwardRef(function (_ref3, ref) {
|
|
|
489
489
|
|
|
490
490
|
var BaseStyledButtonPressable = /*#__PURE__*/styled.View.withConfig({
|
|
491
491
|
displayName: "BaseStyledButtonPressable"
|
|
492
|
-
})(["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) {
|
|
492
|
+
})(["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) {
|
|
493
493
|
var theme = _ref.theme;
|
|
494
494
|
return theme.kitt.button.minWidth;
|
|
495
495
|
}, function (_ref2) {
|
|
496
496
|
var theme = _ref2.theme,
|
|
497
497
|
$isStretch = _ref2.$isStretch;
|
|
498
|
-
return $isStretch ? '100%' : theme.kitt.button.maxWidth;
|
|
498
|
+
return $isStretch ? '100%' : "".concat(theme.kitt.button.maxWidth, "px");
|
|
499
499
|
}, function (_ref3) {
|
|
500
500
|
var $isStretch = _ref3.$isStretch;
|
|
501
501
|
return $isStretch ? '100%' : 'auto';
|
|
@@ -528,23 +528,23 @@ var BaseStyledButtonPressable = /*#__PURE__*/styled.View.withConfig({
|
|
|
528
528
|
var _excluded$c = ["color"],
|
|
529
529
|
_excluded2$2 = ["color"];
|
|
530
530
|
|
|
531
|
-
function ownKeys$
|
|
531
|
+
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; }
|
|
532
532
|
|
|
533
|
-
function _objectSpread$
|
|
533
|
+
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; }
|
|
534
534
|
|
|
535
535
|
function TypographyIconSpecifiedColor(_ref) {
|
|
536
536
|
var color = _ref.color,
|
|
537
537
|
props = _objectWithoutProperties(_ref, _excluded$c);
|
|
538
538
|
|
|
539
539
|
var theme = /*#__PURE__*/useTheme();
|
|
540
|
-
return /*#__PURE__*/jsx(Icon, _objectSpread$
|
|
540
|
+
return /*#__PURE__*/jsx(Icon, _objectSpread$i(_objectSpread$i({}, props), {}, {
|
|
541
541
|
color: color === 'inherit' ? 'inherit' : theme.kitt.typography.colors[color]
|
|
542
542
|
}));
|
|
543
543
|
}
|
|
544
544
|
|
|
545
545
|
function TypographyIconInheritColor(props) {
|
|
546
546
|
var color = useTypographyColor();
|
|
547
|
-
return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread$
|
|
547
|
+
return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread$i({
|
|
548
548
|
color: color
|
|
549
549
|
}, props));
|
|
550
550
|
}
|
|
@@ -554,12 +554,12 @@ function TypographyIcon(_ref2) {
|
|
|
554
554
|
props = _objectWithoutProperties(_ref2, _excluded2$2);
|
|
555
555
|
|
|
556
556
|
if (color) {
|
|
557
|
-
return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread$
|
|
557
|
+
return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread$i({
|
|
558
558
|
color: color
|
|
559
559
|
}, props));
|
|
560
560
|
}
|
|
561
561
|
|
|
562
|
-
return /*#__PURE__*/jsx(TypographyIconInheritColor, _objectSpread$
|
|
562
|
+
return /*#__PURE__*/jsx(TypographyIconInheritColor, _objectSpread$i({}, props));
|
|
563
563
|
}
|
|
564
564
|
|
|
565
565
|
function isSubtle(type) {
|
|
@@ -568,9 +568,9 @@ function isSubtle(type) {
|
|
|
568
568
|
|
|
569
569
|
var _excluded$b = ["type", "isDisabled", "$isStretch", "icon", "children"];
|
|
570
570
|
|
|
571
|
-
function ownKeys$
|
|
571
|
+
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; }
|
|
572
572
|
|
|
573
|
-
function _objectSpread$
|
|
573
|
+
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; }
|
|
574
574
|
|
|
575
575
|
var getTextColorByType = function (type) {
|
|
576
576
|
switch (type) {
|
|
@@ -676,7 +676,7 @@ function ButtonContentChildren(_ref4) {
|
|
|
676
676
|
color: isWebSubtle ? 'inherit' : color
|
|
677
677
|
};
|
|
678
678
|
return /*#__PURE__*/jsxs(StyledChildrenWithIcon, {
|
|
679
|
-
children: [icon && iconPosition === 'left' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
679
|
+
children: [icon && iconPosition === 'left' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({}, buttonIconSharedProps), {}, {
|
|
680
680
|
testID: "button-left-icon",
|
|
681
681
|
icon: icon
|
|
682
682
|
})) : null, /*#__PURE__*/jsx(StyledButtonText, {
|
|
@@ -687,7 +687,7 @@ function ButtonContentChildren(_ref4) {
|
|
|
687
687
|
,
|
|
688
688
|
color: isWebSubtle ? undefined : color,
|
|
689
689
|
children: children
|
|
690
|
-
}), icon && iconPosition === 'right' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
690
|
+
}), icon && iconPosition === 'right' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread$h(_objectSpread$h({}, buttonIconSharedProps), {}, {
|
|
691
691
|
icon: icon
|
|
692
692
|
})) : null]
|
|
693
693
|
});
|
|
@@ -720,7 +720,7 @@ function ButtonContent(_ref7) {
|
|
|
720
720
|
$isSubtle: isSubtle(type),
|
|
721
721
|
$isStretch: $isStretch,
|
|
722
722
|
$isIconOnly: Boolean(!children && icon),
|
|
723
|
-
children: /*#__PURE__*/jsx(ButtonContentChildren, _objectSpread$
|
|
723
|
+
children: /*#__PURE__*/jsx(ButtonContentChildren, _objectSpread$h(_objectSpread$h({
|
|
724
724
|
icon: icon,
|
|
725
725
|
type: type,
|
|
726
726
|
isDisabled: isDisabled,
|
|
@@ -733,12 +733,12 @@ function ButtonContent(_ref7) {
|
|
|
733
733
|
|
|
734
734
|
var StyledDisabled = /*#__PURE__*/styled.View.withConfig({
|
|
735
735
|
displayName: "StyledDisabled"
|
|
736
|
-
})(["position:absolute;top:0;left:0;right:0;bottom:0;border:", ";border-radius:", ";"], function (_ref) {
|
|
736
|
+
})(["position:absolute;top:0;left:0;right:0;bottom:0;border:", ";border-radius:", "px;"], function (_ref) {
|
|
737
737
|
var theme = _ref.theme;
|
|
738
738
|
var _theme$kitt$button = theme.kitt.button,
|
|
739
739
|
borderWidth = _theme$kitt$button.borderWidth,
|
|
740
740
|
disabled = _theme$kitt$button.disabled;
|
|
741
|
-
return "".concat(borderWidth.disabled, " solid ").concat(disabled.borderColor);
|
|
741
|
+
return "".concat(borderWidth.disabled, "px solid ").concat(disabled.borderColor);
|
|
742
742
|
}, function (_ref2) {
|
|
743
743
|
var theme = _ref2.theme;
|
|
744
744
|
return theme.kitt.button.borderRadius;
|
|
@@ -791,13 +791,13 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
791
791
|
|
|
792
792
|
var Container$5 = /*#__PURE__*/styled.View.withConfig({
|
|
793
793
|
displayName: "Card__Container"
|
|
794
|
-
})(["background-color:", ";padding:", ";border-radius:", ";border-width:", ";border-color:", ";"], function (_ref) {
|
|
794
|
+
})(["background-color:", ";padding:", "px;border-radius:", "px;border-width:", "px;border-color:", ";"], function (_ref) {
|
|
795
795
|
var theme = _ref.theme,
|
|
796
796
|
type = _ref.type;
|
|
797
797
|
return theme.kitt.card[type].backgroundColor;
|
|
798
798
|
}, function (_ref2) {
|
|
799
799
|
var theme = _ref2.theme;
|
|
800
|
-
return theme.kitt.
|
|
800
|
+
return theme.kitt.spacing * 4;
|
|
801
801
|
}, function (_ref3) {
|
|
802
802
|
var theme = _ref3.theme;
|
|
803
803
|
return theme.kitt.card.borderRadius;
|
|
@@ -859,9 +859,9 @@ var defaultOpenLinkBehavior = {
|
|
|
859
859
|
|
|
860
860
|
var _excluded$a = ["as", "href", "openLinkBehavior", "onPress"];
|
|
861
861
|
|
|
862
|
-
function ownKeys$
|
|
862
|
+
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; }
|
|
863
863
|
|
|
864
|
-
function _objectSpread$
|
|
864
|
+
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; }
|
|
865
865
|
function ExternalLink(_ref) {
|
|
866
866
|
var Component = _ref.as,
|
|
867
867
|
href = _ref.href,
|
|
@@ -870,7 +870,7 @@ function ExternalLink(_ref) {
|
|
|
870
870
|
onPress = _ref.onPress,
|
|
871
871
|
rest = _objectWithoutProperties(_ref, _excluded$a);
|
|
872
872
|
|
|
873
|
-
return /*#__PURE__*/jsx(Component, _objectSpread$
|
|
873
|
+
return /*#__PURE__*/jsx(Component, _objectSpread$g(_objectSpread$g({}, rest), {}, {
|
|
874
874
|
onPress: function handleOnPress() {
|
|
875
875
|
if (onPress) onPress();
|
|
876
876
|
if (!href) return;
|
|
@@ -899,106 +899,7 @@ function ExternalLink(_ref) {
|
|
|
899
899
|
}));
|
|
900
900
|
}
|
|
901
901
|
|
|
902
|
-
var
|
|
903
|
-
switch (state) {
|
|
904
|
-
case 'invalid':
|
|
905
|
-
return 'danger';
|
|
906
|
-
|
|
907
|
-
case 'valid':
|
|
908
|
-
default:
|
|
909
|
-
return 'black-light';
|
|
910
|
-
}
|
|
911
|
-
};
|
|
912
|
-
|
|
913
|
-
function InputFeedback(_ref) {
|
|
914
|
-
var state = _ref.state,
|
|
915
|
-
testID = _ref.testID,
|
|
916
|
-
children = _ref.children;
|
|
917
|
-
return /*#__PURE__*/jsx(Typography.Text, {
|
|
918
|
-
base: "body-small",
|
|
919
|
-
color: getColorFromState(state),
|
|
920
|
-
testID: testID,
|
|
921
|
-
children: children
|
|
922
|
-
});
|
|
923
|
-
}
|
|
924
|
-
|
|
925
|
-
var FieldContainer = /*#__PURE__*/styled.View.withConfig({
|
|
926
|
-
displayName: "InputField__FieldContainer"
|
|
927
|
-
})(["padding:5px 0 10px;"]);
|
|
928
|
-
var FeedbackContainer = /*#__PURE__*/styled.View.withConfig({
|
|
929
|
-
displayName: "InputField__FeedbackContainer"
|
|
930
|
-
})(["", ";"], function (_ref) {
|
|
931
|
-
var theme = _ref.theme;
|
|
932
|
-
return theme.responsive.ifWindowSizeMatches({
|
|
933
|
-
minWidth: KittBreakpoints.SMALL
|
|
934
|
-
}, 'padding-top: 10px', 'padding-top: 5px');
|
|
935
|
-
});
|
|
936
|
-
var FieldLabelContainer = /*#__PURE__*/styled.View.withConfig({
|
|
937
|
-
displayName: "InputField__FieldLabelContainer"
|
|
938
|
-
})(["flex-direction:row;align-items:center;padding-bottom:", "px;"], function (_ref2) {
|
|
939
|
-
var theme = _ref2.theme;
|
|
940
|
-
return theme.kitt.forms.inputField.labelContainerPaddingBottom;
|
|
941
|
-
});
|
|
942
|
-
var LabelContainer = /*#__PURE__*/styled.View.withConfig({
|
|
943
|
-
displayName: "InputField__LabelContainer"
|
|
944
|
-
})(["margin-right:", "px;"], function (_ref3) {
|
|
945
|
-
var theme = _ref3.theme;
|
|
946
|
-
return theme.kitt.forms.inputField.iconMarginLeft;
|
|
947
|
-
});
|
|
948
|
-
function InputField(_ref4) {
|
|
949
|
-
var label = _ref4.label,
|
|
950
|
-
labelFeedback = _ref4.labelFeedback,
|
|
951
|
-
input = _ref4.input,
|
|
952
|
-
feedback = _ref4.feedback;
|
|
953
|
-
return /*#__PURE__*/jsxs(FieldContainer, {
|
|
954
|
-
children: [label ? /*#__PURE__*/jsxs(FieldLabelContainer, {
|
|
955
|
-
children: [/*#__PURE__*/jsx(LabelContainer, {
|
|
956
|
-
children: label
|
|
957
|
-
}), labelFeedback]
|
|
958
|
-
}) : null, input, feedback ? /*#__PURE__*/jsx(FeedbackContainer, {
|
|
959
|
-
children: feedback
|
|
960
|
-
}) : null]
|
|
961
|
-
});
|
|
962
|
-
}
|
|
963
|
-
|
|
964
|
-
function getIconColor(state, disabled) {
|
|
965
|
-
if (disabled) return 'black-light';
|
|
966
|
-
|
|
967
|
-
switch (state) {
|
|
968
|
-
case 'invalid':
|
|
969
|
-
return 'danger';
|
|
970
|
-
|
|
971
|
-
case 'valid':
|
|
972
|
-
return 'success';
|
|
973
|
-
|
|
974
|
-
default:
|
|
975
|
-
return undefined;
|
|
976
|
-
}
|
|
977
|
-
}
|
|
978
|
-
|
|
979
|
-
function InputIcon(_ref) {
|
|
980
|
-
var icon = _ref.icon,
|
|
981
|
-
state = _ref.state,
|
|
982
|
-
disabled = _ref.disabled;
|
|
983
|
-
var theme = /*#__PURE__*/useTheme();
|
|
984
|
-
var color = getIconColor(state, disabled);
|
|
985
|
-
return /*#__PURE__*/jsx(TypographyIcon, {
|
|
986
|
-
color: color,
|
|
987
|
-
icon: icon,
|
|
988
|
-
size: theme.kitt.forms.input.icon.size
|
|
989
|
-
});
|
|
990
|
-
}
|
|
991
|
-
|
|
992
|
-
function ownKeys$e(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
993
|
-
|
|
994
|
-
function _objectSpread$e(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$e(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$e(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
995
|
-
function InputPressable(_ref) {
|
|
996
|
-
var props = _extends({}, _ref);
|
|
997
|
-
|
|
998
|
-
return /*#__PURE__*/jsx(Pressable, _objectSpread$e({}, props));
|
|
999
|
-
}
|
|
1000
|
-
|
|
1001
|
-
var styledTextInputMixin = /*#__PURE__*/css(["background-color:", ";border-width:", ";border-radius:", ";border-color:", ";font-size:", ";color:", ";font-family:", ";"], function (_ref) {
|
|
902
|
+
var styledTextInputMixin = /*#__PURE__*/css(["background-color:", ";border-width:", "px;border-radius:", "px;border-color:", ";font-size:", ";color:", ";font-family:", ";"], function (_ref) {
|
|
1002
903
|
var theme = _ref.theme,
|
|
1003
904
|
$state = _ref.$state;
|
|
1004
905
|
return $state === 'disabled' ? theme.kitt.forms.input.states.disabled.backgroundColor : theme.kitt.forms.input.states["default"].backgroundColor;
|
|
@@ -1015,7 +916,7 @@ var styledTextInputMixin = /*#__PURE__*/css(["background-color:", ";border-width
|
|
|
1015
916
|
}, function (_ref5) {
|
|
1016
917
|
var theme = _ref5.theme;
|
|
1017
918
|
var typeConfigKey = getTypographyTypeConfigKey(theme);
|
|
1018
|
-
return theme.kitt.typography.types.bodies.configs.body[typeConfigKey].fontSize;
|
|
919
|
+
return "".concat(theme.kitt.typography.types.bodies.configs.body[typeConfigKey].fontSize, "px");
|
|
1019
920
|
}, function (_ref6) {
|
|
1020
921
|
var theme = _ref6.theme,
|
|
1021
922
|
$state = _ref6.$state;
|
|
@@ -1035,14 +936,18 @@ function getInputUIState(_ref) {
|
|
|
1035
936
|
return 'default';
|
|
1036
937
|
}
|
|
1037
938
|
|
|
939
|
+
var InputTextContainer = /*#__PURE__*/styled.View.withConfig({
|
|
940
|
+
displayName: "InputTextContainer"
|
|
941
|
+
})(["position:relative;"]);
|
|
942
|
+
|
|
1038
943
|
var _excluded$9 = ["id", "right", "minHeight", "state", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoCompleteType", "keyboardType", "onFocus", "onBlur"];
|
|
1039
944
|
|
|
1040
|
-
function ownKeys$
|
|
945
|
+
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; }
|
|
1041
946
|
|
|
1042
|
-
function _objectSpread$
|
|
947
|
+
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; }
|
|
1043
948
|
var StyledTextInput = /*#__PURE__*/styled(TextInput).withConfig({
|
|
1044
949
|
displayName: "InputText__StyledTextInput"
|
|
1045
|
-
})(["", " padding:", ";line-height:", ";min-height:", "px;"], styledTextInputMixin, function (_ref) {
|
|
950
|
+
})(["", " padding:", ";line-height:", ";width:100%;min-height:", "px;"], styledTextInputMixin, function (_ref) {
|
|
1046
951
|
var theme = _ref.theme,
|
|
1047
952
|
multiline = _ref.multiline;
|
|
1048
953
|
|
|
@@ -1056,14 +961,11 @@ var StyledTextInput = /*#__PURE__*/styled(TextInput).withConfig({
|
|
|
1056
961
|
multiline = _ref2.multiline;
|
|
1057
962
|
if (!multiline && Platform.OS === 'ios') return 0;
|
|
1058
963
|
var typeConfigKey = getTypographyTypeConfigKey(theme);
|
|
1059
|
-
return theme.kitt.typography.types.bodies.configs.body[typeConfigKey].lineHeight;
|
|
964
|
+
return "".concat(theme.kitt.typography.types.bodies.configs.body[typeConfigKey].lineHeight, "px");
|
|
1060
965
|
}, function (_ref3) {
|
|
1061
966
|
var $minHeight = _ref3.$minHeight;
|
|
1062
967
|
return $minHeight;
|
|
1063
968
|
});
|
|
1064
|
-
var InputTextContainer = /*#__PURE__*/styled.View.withConfig({
|
|
1065
|
-
displayName: "InputText__InputTextContainer"
|
|
1066
|
-
})(["position:relative;"]);
|
|
1067
969
|
var RightInputContainer = /*#__PURE__*/styled.View.withConfig({
|
|
1068
970
|
displayName: "InputText__RightInputContainer"
|
|
1069
971
|
})(["position:absolute;right:0;top:0;bottom:0;justify-content:center;padding:10px;"]);
|
|
@@ -1101,7 +1003,8 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref4, ref) {
|
|
|
1101
1003
|
formState: formState
|
|
1102
1004
|
});
|
|
1103
1005
|
return /*#__PURE__*/jsxs(InputTextContainer, {
|
|
1104
|
-
|
|
1006
|
+
$isDisabled: disabled,
|
|
1007
|
+
children: [/*#__PURE__*/jsx(StyledTextInput, _objectSpread$f(_objectSpread$f({
|
|
1105
1008
|
ref: ref,
|
|
1106
1009
|
nativeID: id,
|
|
1107
1010
|
editable: !disabled,
|
|
@@ -1128,6 +1031,116 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref4, ref) {
|
|
|
1128
1031
|
});
|
|
1129
1032
|
});
|
|
1130
1033
|
|
|
1034
|
+
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; }
|
|
1035
|
+
|
|
1036
|
+
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; }
|
|
1037
|
+
function InputEmail(props) {
|
|
1038
|
+
return /*#__PURE__*/jsx(InputText, _objectSpread$e({
|
|
1039
|
+
autoCompleteType: "email",
|
|
1040
|
+
keyboardType: "email-address",
|
|
1041
|
+
textContentType: "emailAddress"
|
|
1042
|
+
}, props));
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
var getColorFromState = function (state) {
|
|
1046
|
+
switch (state) {
|
|
1047
|
+
case 'invalid':
|
|
1048
|
+
return 'danger';
|
|
1049
|
+
|
|
1050
|
+
case 'valid':
|
|
1051
|
+
default:
|
|
1052
|
+
return 'black-light';
|
|
1053
|
+
}
|
|
1054
|
+
};
|
|
1055
|
+
|
|
1056
|
+
function InputFeedback(_ref) {
|
|
1057
|
+
var state = _ref.state,
|
|
1058
|
+
testID = _ref.testID,
|
|
1059
|
+
children = _ref.children;
|
|
1060
|
+
return /*#__PURE__*/jsx(Typography.Text, {
|
|
1061
|
+
base: "body-small",
|
|
1062
|
+
color: getColorFromState(state),
|
|
1063
|
+
testID: testID,
|
|
1064
|
+
children: children
|
|
1065
|
+
});
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
var FieldContainer = /*#__PURE__*/styled.View.withConfig({
|
|
1069
|
+
displayName: "InputField__FieldContainer"
|
|
1070
|
+
})(["padding:5px 0 10px;"]);
|
|
1071
|
+
var FeedbackContainer = /*#__PURE__*/styled.View.withConfig({
|
|
1072
|
+
displayName: "InputField__FeedbackContainer"
|
|
1073
|
+
})(["", ";"], function (_ref) {
|
|
1074
|
+
var theme = _ref.theme;
|
|
1075
|
+
return theme.responsive.ifWindowSizeMatches({
|
|
1076
|
+
minWidth: KittBreakpoints.SMALL
|
|
1077
|
+
}, 'padding-top: 10px', 'padding-top: 5px');
|
|
1078
|
+
});
|
|
1079
|
+
var FieldLabelContainer = /*#__PURE__*/styled.View.withConfig({
|
|
1080
|
+
displayName: "InputField__FieldLabelContainer"
|
|
1081
|
+
})(["flex-direction:row;align-items:center;padding-bottom:", "px;"], function (_ref2) {
|
|
1082
|
+
var theme = _ref2.theme;
|
|
1083
|
+
return theme.kitt.forms.inputField.labelContainerPaddingBottom;
|
|
1084
|
+
});
|
|
1085
|
+
var LabelContainer = /*#__PURE__*/styled.View.withConfig({
|
|
1086
|
+
displayName: "InputField__LabelContainer"
|
|
1087
|
+
})(["margin-right:", "px;"], function (_ref3) {
|
|
1088
|
+
var theme = _ref3.theme;
|
|
1089
|
+
return theme.kitt.forms.inputField.iconMarginLeft;
|
|
1090
|
+
});
|
|
1091
|
+
function InputField(_ref4) {
|
|
1092
|
+
var label = _ref4.label,
|
|
1093
|
+
labelFeedback = _ref4.labelFeedback,
|
|
1094
|
+
input = _ref4.input,
|
|
1095
|
+
feedback = _ref4.feedback;
|
|
1096
|
+
return /*#__PURE__*/jsxs(FieldContainer, {
|
|
1097
|
+
children: [label ? /*#__PURE__*/jsxs(FieldLabelContainer, {
|
|
1098
|
+
children: [/*#__PURE__*/jsx(LabelContainer, {
|
|
1099
|
+
children: label
|
|
1100
|
+
}), labelFeedback]
|
|
1101
|
+
}) : null, input, feedback ? /*#__PURE__*/jsx(FeedbackContainer, {
|
|
1102
|
+
children: feedback
|
|
1103
|
+
}) : null]
|
|
1104
|
+
});
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
function getIconColor(state, disabled) {
|
|
1108
|
+
if (disabled) return 'black-light';
|
|
1109
|
+
|
|
1110
|
+
switch (state) {
|
|
1111
|
+
case 'invalid':
|
|
1112
|
+
return 'danger';
|
|
1113
|
+
|
|
1114
|
+
case 'valid':
|
|
1115
|
+
return 'success';
|
|
1116
|
+
|
|
1117
|
+
default:
|
|
1118
|
+
return undefined;
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
function InputIcon(_ref) {
|
|
1123
|
+
var icon = _ref.icon,
|
|
1124
|
+
state = _ref.state,
|
|
1125
|
+
disabled = _ref.disabled;
|
|
1126
|
+
var theme = /*#__PURE__*/useTheme();
|
|
1127
|
+
var color = getIconColor(state, disabled);
|
|
1128
|
+
return /*#__PURE__*/jsx(TypographyIcon, {
|
|
1129
|
+
color: color,
|
|
1130
|
+
icon: icon,
|
|
1131
|
+
size: theme.kitt.forms.input.icon.size
|
|
1132
|
+
});
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
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; }
|
|
1136
|
+
|
|
1137
|
+
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; }
|
|
1138
|
+
function InputPressable(_ref) {
|
|
1139
|
+
var props = _extends({}, _ref);
|
|
1140
|
+
|
|
1141
|
+
return /*#__PURE__*/jsx(Pressable, _objectSpread$d({}, props));
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1131
1144
|
var _excluded$8 = ["isPasswordDefaultVisible", "right"];
|
|
1132
1145
|
|
|
1133
1146
|
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; }
|
|
@@ -1176,7 +1189,7 @@ function Label(_ref) {
|
|
|
1176
1189
|
|
|
1177
1190
|
var OuterRadio = /*#__PURE__*/styled.View.withConfig({
|
|
1178
1191
|
displayName: "Radio__OuterRadio"
|
|
1179
|
-
})(["background-color:", ";width:", "px;height:", "px;border-radius:", "px;border-width:", ";border-color:", ";"], function (_ref) {
|
|
1192
|
+
})(["background-color:", ";width:", "px;height:", "px;border-radius:", "px;border-width:", "px;border-color:", ";"], function (_ref) {
|
|
1180
1193
|
var theme = _ref.theme,
|
|
1181
1194
|
disabled = _ref.disabled;
|
|
1182
1195
|
return theme.kitt.forms.radio[disabled ? 'disabled' : 'unchecked'].backgroundColor;
|
|
@@ -1706,11 +1719,11 @@ var SideContainerView = /*#__PURE__*/styled.View.withConfig({
|
|
|
1706
1719
|
})(["flex-direction:row;margin-left:", ";margin-right:", ";"], function (_ref) {
|
|
1707
1720
|
var theme = _ref.theme,
|
|
1708
1721
|
side = _ref.side;
|
|
1709
|
-
return side === 'right' ? theme.kitt.listItem.innerMargin : 0;
|
|
1722
|
+
return side === 'right' ? "".concat(theme.kitt.listItem.innerMargin, "px") : 0;
|
|
1710
1723
|
}, function (_ref2) {
|
|
1711
1724
|
var theme = _ref2.theme,
|
|
1712
1725
|
side = _ref2.side;
|
|
1713
|
-
return side === 'left' ? theme.kitt.listItem.innerMargin : 0;
|
|
1726
|
+
return side === 'left' ? "".concat(theme.kitt.listItem.innerMargin, "px") : 0;
|
|
1714
1727
|
}); // Handles the vertical alignment of the side elements of the list item
|
|
1715
1728
|
|
|
1716
1729
|
function ListItemSideContainer(_ref3) {
|
|
@@ -1761,15 +1774,15 @@ var ContainerView = /*#__PURE__*/styled.View.withConfig({
|
|
|
1761
1774
|
var borderWidth = theme.kitt.listItem.borderWidth;
|
|
1762
1775
|
|
|
1763
1776
|
if (borders === 'top') {
|
|
1764
|
-
return "border-top-width: ".concat(borderWidth);
|
|
1777
|
+
return "border-top-width: ".concat(borderWidth, "px");
|
|
1765
1778
|
}
|
|
1766
1779
|
|
|
1767
1780
|
if (borders === 'bottom') {
|
|
1768
|
-
return "border-bottom-width: ".concat(borderWidth);
|
|
1781
|
+
return "border-bottom-width: ".concat(borderWidth, "px");
|
|
1769
1782
|
}
|
|
1770
1783
|
|
|
1771
1784
|
if (borders === 'both') {
|
|
1772
|
-
return "border-top-width:
|
|
1785
|
+
return css(["border-top-width:", "px;border-bottom-width:", "px;"], borderWidth, borderWidth);
|
|
1773
1786
|
}
|
|
1774
1787
|
|
|
1775
1788
|
return 'border: none';
|
|
@@ -2113,12 +2126,12 @@ var ModalView = /*#__PURE__*/styled.View.withConfig({
|
|
|
2113
2126
|
});
|
|
2114
2127
|
var ContentView = /*#__PURE__*/styled.View.withConfig({
|
|
2115
2128
|
displayName: "Modal__ContentView"
|
|
2116
|
-
})(["position:relative;display:flex;flex-direction:column;max-height:100%;max-width:540px;height:auto;width:100%;border-radius:", ";background-color:", ";"], function (_ref3) {
|
|
2129
|
+
})(["position:relative;display:flex;flex-direction:column;max-height:100%;max-width:540px;height:auto;width:100%;border-radius:", "px;background-color:", ";"], function (_ref3) {
|
|
2117
2130
|
var theme = _ref3.theme;
|
|
2118
2131
|
return theme.kitt.card.borderRadius;
|
|
2119
2132
|
}, function (_ref4) {
|
|
2120
2133
|
var theme = _ref4.theme;
|
|
2121
|
-
return theme.kitt.
|
|
2134
|
+
return theme.kitt.colors.uiBackgroundLight;
|
|
2122
2135
|
});
|
|
2123
2136
|
function Modal(_ref5) {
|
|
2124
2137
|
var visible = _ref5.visible,
|
|
@@ -2645,7 +2658,7 @@ var StoryGrid = {
|
|
|
2645
2658
|
|
|
2646
2659
|
var Container$1 = /*#__PURE__*/styled.View.withConfig({
|
|
2647
2660
|
displayName: "Tag__Container"
|
|
2648
|
-
})(["background-color:", ";border-width:", ";border-color:", ";padding:", ";border-radius:", ";align-self:flex-start;"], function (_ref) {
|
|
2661
|
+
})(["background-color:", ";border-width:", "px;border-color:", ";padding:", ";border-radius:", "px;align-self:flex-start;"], function (_ref) {
|
|
2649
2662
|
var theme = _ref.theme,
|
|
2650
2663
|
type = _ref.type,
|
|
2651
2664
|
variant = _ref.variant;
|
|
@@ -2715,6 +2728,7 @@ var lateOceanColorPalette = {
|
|
|
2715
2728
|
warmEmbrace: '#F4D3CE',
|
|
2716
2729
|
warmEmbraceLight1: '#FFEDE6',
|
|
2717
2730
|
black1000: '#000000',
|
|
2731
|
+
black800: '#2C293D',
|
|
2718
2732
|
black555: '#737373',
|
|
2719
2733
|
black200: '#CCCCCC',
|
|
2720
2734
|
black100: '#E5E5E5',
|
|
@@ -2730,7 +2744,7 @@ var lateOceanColorPalette = {
|
|
|
2730
2744
|
moonPurpleLight1: '#EDEBFC'
|
|
2731
2745
|
};
|
|
2732
2746
|
|
|
2733
|
-
var
|
|
2747
|
+
var colors = {
|
|
2734
2748
|
primary: lateOceanColorPalette.lateOcean,
|
|
2735
2749
|
primaryLight: lateOceanColorPalette.lateOceanLight1,
|
|
2736
2750
|
accent: lateOceanColorPalette.warmEmbrace,
|
|
@@ -2755,9 +2769,9 @@ var colorsLateOceanTheme = {
|
|
|
2755
2769
|
};
|
|
2756
2770
|
|
|
2757
2771
|
var avatar = {
|
|
2758
|
-
borderRadius:
|
|
2772
|
+
borderRadius: 10,
|
|
2759
2773
|
"default": {
|
|
2760
|
-
backgroundColor:
|
|
2774
|
+
backgroundColor: colors.primary
|
|
2761
2775
|
},
|
|
2762
2776
|
light: {
|
|
2763
2777
|
backgroundColor: lateOceanColorPalette.black100
|
|
@@ -2765,14 +2779,14 @@ var avatar = {
|
|
|
2765
2779
|
};
|
|
2766
2780
|
|
|
2767
2781
|
var button = {
|
|
2768
|
-
borderRadius:
|
|
2782
|
+
borderRadius: 30,
|
|
2769
2783
|
borderWidth: {
|
|
2770
|
-
disabled:
|
|
2771
|
-
focus:
|
|
2784
|
+
disabled: 2,
|
|
2785
|
+
focus: 3
|
|
2772
2786
|
},
|
|
2773
|
-
minHeight:
|
|
2774
|
-
minWidth:
|
|
2775
|
-
maxWidth:
|
|
2787
|
+
minHeight: 40,
|
|
2788
|
+
minWidth: 40,
|
|
2789
|
+
maxWidth: 335,
|
|
2776
2790
|
scale: {
|
|
2777
2791
|
base: {
|
|
2778
2792
|
"default": 1,
|
|
@@ -2799,9 +2813,9 @@ var button = {
|
|
|
2799
2813
|
focusBorderColor: 'rgba(0, 0, 0, 0.1)'
|
|
2800
2814
|
},
|
|
2801
2815
|
primary: {
|
|
2802
|
-
backgroundColor:
|
|
2803
|
-
pressedBackgroundColor:
|
|
2804
|
-
hoverBackgroundColor:
|
|
2816
|
+
backgroundColor: colors.primary,
|
|
2817
|
+
pressedBackgroundColor: colors.primaryLight,
|
|
2818
|
+
hoverBackgroundColor: colors.primaryLight,
|
|
2805
2819
|
focusBorderColor: 'rgba(76, 52, 224, 0.2)'
|
|
2806
2820
|
},
|
|
2807
2821
|
white: {
|
|
@@ -2811,62 +2825,61 @@ var button = {
|
|
|
2811
2825
|
focusBorderColor: 'rgba(255, 255, 255, 0.1)'
|
|
2812
2826
|
},
|
|
2813
2827
|
subtle: {
|
|
2814
|
-
backgroundColor:
|
|
2815
|
-
pressedBackgroundColor:
|
|
2816
|
-
hoverBackgroundColor:
|
|
2828
|
+
backgroundColor: colors.transparent,
|
|
2829
|
+
pressedBackgroundColor: colors.transparent,
|
|
2830
|
+
hoverBackgroundColor: colors.transparent,
|
|
2817
2831
|
focusBorderColor: 'rgba(76, 52, 224, 0.2)',
|
|
2818
|
-
color:
|
|
2832
|
+
color: colors.primary,
|
|
2819
2833
|
hoverColor: 'rgba(76, 52, 224, 0.8)',
|
|
2820
2834
|
activeColor: 'rgba(76, 52, 224, 0.8)'
|
|
2821
2835
|
},
|
|
2822
2836
|
'subtle-dark': {
|
|
2823
|
-
backgroundColor:
|
|
2824
|
-
pressedBackgroundColor:
|
|
2825
|
-
hoverBackgroundColor:
|
|
2837
|
+
backgroundColor: colors.transparent,
|
|
2838
|
+
pressedBackgroundColor: colors.transparent,
|
|
2839
|
+
hoverBackgroundColor: colors.transparent,
|
|
2826
2840
|
focusBorderColor: 'rgba(0, 0, 0, 0.1)',
|
|
2827
|
-
color:
|
|
2841
|
+
color: colors.black,
|
|
2828
2842
|
hoverColor: 'rgba(0, 0, 0, 0.8)',
|
|
2829
2843
|
activeColor: 'rgba(0, 0, 0, 0.8)'
|
|
2830
2844
|
},
|
|
2831
2845
|
disabled: {
|
|
2832
|
-
backgroundColor:
|
|
2833
|
-
pressedBackgroundColor:
|
|
2834
|
-
hoverBackgroundColor:
|
|
2846
|
+
backgroundColor: colors.disabled,
|
|
2847
|
+
pressedBackgroundColor: colors.disabled,
|
|
2848
|
+
hoverBackgroundColor: colors.disabled,
|
|
2835
2849
|
focusBorderColor: lateOceanColorPalette.black100,
|
|
2836
2850
|
borderColor: lateOceanColorPalette.black100
|
|
2837
2851
|
}
|
|
2838
2852
|
};
|
|
2839
2853
|
|
|
2840
|
-
var
|
|
2841
|
-
borderRadius:
|
|
2842
|
-
borderWidth:
|
|
2843
|
-
padding: '16px',
|
|
2854
|
+
var card = {
|
|
2855
|
+
borderRadius: 20,
|
|
2856
|
+
borderWidth: 2,
|
|
2844
2857
|
primary: {
|
|
2845
|
-
backgroundColor:
|
|
2846
|
-
borderColor:
|
|
2858
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
2859
|
+
borderColor: colors.primary
|
|
2847
2860
|
},
|
|
2848
2861
|
secondary: {
|
|
2849
|
-
backgroundColor:
|
|
2850
|
-
borderColor:
|
|
2862
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
2863
|
+
borderColor: colors.separator
|
|
2851
2864
|
},
|
|
2852
2865
|
subtle: {
|
|
2853
2866
|
backgroundColor: lateOceanColorPalette.black50,
|
|
2854
|
-
borderColor:
|
|
2867
|
+
borderColor: colors.separator
|
|
2855
2868
|
}
|
|
2856
2869
|
};
|
|
2857
2870
|
|
|
2858
2871
|
var feedbackMessage = {
|
|
2859
2872
|
danger: {
|
|
2860
|
-
backgroundColor:
|
|
2873
|
+
backgroundColor: colors.danger
|
|
2861
2874
|
},
|
|
2862
2875
|
success: {
|
|
2863
|
-
backgroundColor:
|
|
2876
|
+
backgroundColor: colors.success
|
|
2864
2877
|
},
|
|
2865
2878
|
info: {
|
|
2866
|
-
backgroundColor:
|
|
2879
|
+
backgroundColor: colors.info
|
|
2867
2880
|
},
|
|
2868
2881
|
warning: {
|
|
2869
|
-
backgroundColor:
|
|
2882
|
+
backgroundColor: colors.warning
|
|
2870
2883
|
}
|
|
2871
2884
|
};
|
|
2872
2885
|
|
|
@@ -2876,18 +2889,19 @@ var calcLineHeight = function (fontSize, lineHeightMultiplier) {
|
|
|
2876
2889
|
var createTypographyTypeConfig = function (lineHeightMultiplier, baseAndSmallFontSize, mediumAndWideFontSize) {
|
|
2877
2890
|
return {
|
|
2878
2891
|
baseAndSmall: {
|
|
2879
|
-
fontSize:
|
|
2880
|
-
lineHeight:
|
|
2892
|
+
fontSize: baseAndSmallFontSize,
|
|
2893
|
+
lineHeight: calcLineHeight(baseAndSmallFontSize, lineHeightMultiplier)
|
|
2881
2894
|
},
|
|
2882
2895
|
mediumAndWide: {
|
|
2883
|
-
fontSize:
|
|
2884
|
-
lineHeight:
|
|
2896
|
+
fontSize: mediumAndWideFontSize,
|
|
2897
|
+
lineHeight: calcLineHeight(mediumAndWideFontSize, lineHeightMultiplier)
|
|
2885
2898
|
}
|
|
2886
2899
|
};
|
|
2887
2900
|
};
|
|
2888
|
-
var
|
|
2901
|
+
var typography = {
|
|
2889
2902
|
colors: {
|
|
2890
2903
|
black: lateOceanColorPalette.black1000,
|
|
2904
|
+
'black-anthracite': lateOceanColorPalette.black800,
|
|
2891
2905
|
'black-light': lateOceanColorPalette.black555,
|
|
2892
2906
|
white: lateOceanColorPalette.white,
|
|
2893
2907
|
'white-light': lateOceanColorPalette.white,
|
|
@@ -2947,17 +2961,17 @@ var typographyLateOceanTheme = {
|
|
|
2947
2961
|
|
|
2948
2962
|
var inputStatesStyle = {
|
|
2949
2963
|
"default": {
|
|
2950
|
-
backgroundColor:
|
|
2951
|
-
borderColor:
|
|
2964
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
2965
|
+
borderColor: colors.separator,
|
|
2952
2966
|
color: 'black'
|
|
2953
2967
|
},
|
|
2954
2968
|
pending: {
|
|
2955
|
-
backgroundColor:
|
|
2956
|
-
borderColor:
|
|
2969
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
2970
|
+
borderColor: colors.separator,
|
|
2957
2971
|
color: 'black'
|
|
2958
2972
|
},
|
|
2959
2973
|
valid: {
|
|
2960
|
-
backgroundColor:
|
|
2974
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
2961
2975
|
borderColor: lateOceanColorPalette.black100,
|
|
2962
2976
|
color: 'black'
|
|
2963
2977
|
},
|
|
@@ -2966,56 +2980,61 @@ var inputStatesStyle = {
|
|
|
2966
2980
|
color: 'black'
|
|
2967
2981
|
},
|
|
2968
2982
|
focus: {
|
|
2969
|
-
borderColor:
|
|
2983
|
+
borderColor: colors.primary,
|
|
2970
2984
|
color: 'black'
|
|
2971
2985
|
},
|
|
2972
2986
|
disabled: {
|
|
2973
|
-
backgroundColor:
|
|
2974
|
-
borderColor:
|
|
2987
|
+
backgroundColor: colors.disabled,
|
|
2988
|
+
borderColor: colors.separator,
|
|
2975
2989
|
color: 'black-light'
|
|
2976
2990
|
},
|
|
2977
2991
|
invalid: {
|
|
2978
|
-
borderColor:
|
|
2992
|
+
borderColor: colors.separator,
|
|
2979
2993
|
color: 'black'
|
|
2980
2994
|
}
|
|
2981
2995
|
};
|
|
2982
2996
|
var input = {
|
|
2983
2997
|
color: {
|
|
2984
|
-
selection:
|
|
2985
|
-
placeholder:
|
|
2998
|
+
selection: colors.primary,
|
|
2999
|
+
placeholder: typography.colors['black-light']
|
|
2986
3000
|
},
|
|
2987
|
-
borderWidth:
|
|
2988
|
-
borderRadius:
|
|
3001
|
+
borderWidth: 2,
|
|
3002
|
+
borderRadius: 10,
|
|
2989
3003
|
icon: {
|
|
2990
3004
|
size: 20
|
|
2991
3005
|
},
|
|
2992
3006
|
padding: {
|
|
2993
|
-
"default": '
|
|
2994
|
-
iOSSingleLine: '
|
|
3007
|
+
"default": '5px 16px',
|
|
3008
|
+
iOSSingleLine: '9px 16px'
|
|
3009
|
+
},
|
|
3010
|
+
transition: {
|
|
3011
|
+
property: 'border-color',
|
|
3012
|
+
duration: '200ms',
|
|
3013
|
+
timingFunction: 'ease-in-out'
|
|
2995
3014
|
},
|
|
2996
3015
|
states: inputStatesStyle
|
|
2997
3016
|
};
|
|
2998
3017
|
|
|
2999
|
-
var
|
|
3018
|
+
var inputField = {
|
|
3000
3019
|
labelContainerPaddingBottom: 5,
|
|
3001
3020
|
iconMarginLeft: 6
|
|
3002
3021
|
};
|
|
3003
3022
|
|
|
3004
|
-
var
|
|
3023
|
+
var radio = {
|
|
3005
3024
|
size: 18,
|
|
3006
3025
|
unchecked: {
|
|
3007
|
-
backgroundColor:
|
|
3008
|
-
borderWidth:
|
|
3026
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
3027
|
+
borderWidth: 2,
|
|
3009
3028
|
borderColor: lateOceanColorPalette.black200
|
|
3010
3029
|
},
|
|
3011
3030
|
checked: {
|
|
3012
|
-
backgroundColor:
|
|
3031
|
+
backgroundColor: colors.primary,
|
|
3013
3032
|
innerSize: 5,
|
|
3014
|
-
innerBackgroundColor:
|
|
3033
|
+
innerBackgroundColor: colors.uiBackgroundLight
|
|
3015
3034
|
},
|
|
3016
3035
|
disabled: {
|
|
3017
|
-
backgroundColor:
|
|
3018
|
-
borderColor:
|
|
3036
|
+
backgroundColor: colors.disabled,
|
|
3037
|
+
borderColor: colors.separator
|
|
3019
3038
|
}
|
|
3020
3039
|
};
|
|
3021
3040
|
|
|
@@ -3025,12 +3044,12 @@ var textArea = {
|
|
|
3025
3044
|
|
|
3026
3045
|
var forms = {
|
|
3027
3046
|
input: input,
|
|
3028
|
-
radio:
|
|
3029
|
-
inputField:
|
|
3047
|
+
radio: radio,
|
|
3048
|
+
inputField: inputField,
|
|
3030
3049
|
textArea: textArea
|
|
3031
3050
|
};
|
|
3032
3051
|
|
|
3033
|
-
var
|
|
3052
|
+
var fullScreenModal = {
|
|
3034
3053
|
header: {
|
|
3035
3054
|
paddingVertical: 12,
|
|
3036
3055
|
paddingHorizontal: 16,
|
|
@@ -3073,66 +3092,66 @@ var iconButton = {
|
|
|
3073
3092
|
}
|
|
3074
3093
|
};
|
|
3075
3094
|
|
|
3076
|
-
var
|
|
3095
|
+
var listItem = {
|
|
3077
3096
|
padding: '12px 16px',
|
|
3078
|
-
borderColor:
|
|
3079
|
-
borderWidth:
|
|
3080
|
-
innerMargin:
|
|
3097
|
+
borderColor: colors.separator,
|
|
3098
|
+
borderWidth: 1,
|
|
3099
|
+
innerMargin: 8
|
|
3081
3100
|
};
|
|
3082
3101
|
|
|
3083
|
-
var
|
|
3102
|
+
var shadows = {
|
|
3084
3103
|
medium: '0px 10px 20px rgba(41, 48, 51, 0.25)'
|
|
3085
3104
|
};
|
|
3086
3105
|
|
|
3087
|
-
var
|
|
3106
|
+
var skeleton = {
|
|
3088
3107
|
backgroundColor: lateOceanColorPalette.black100,
|
|
3089
3108
|
flareColor: lateOceanColorPalette.black200,
|
|
3090
3109
|
animationDuration: 1000
|
|
3091
3110
|
};
|
|
3092
3111
|
|
|
3093
|
-
var
|
|
3094
|
-
borderRadius:
|
|
3112
|
+
var tag = {
|
|
3113
|
+
borderRadius: 10,
|
|
3095
3114
|
padding: '2px 12px',
|
|
3096
3115
|
primary: {
|
|
3097
3116
|
fill: {
|
|
3098
3117
|
backgroundColor: lateOceanColorPalette.moonPurpleLight1,
|
|
3099
|
-
borderWidth:
|
|
3100
|
-
borderColor:
|
|
3118
|
+
borderWidth: 0,
|
|
3119
|
+
borderColor: colors.transparent
|
|
3101
3120
|
},
|
|
3102
3121
|
outline: {
|
|
3103
|
-
backgroundColor:
|
|
3104
|
-
borderWidth:
|
|
3105
|
-
borderColor:
|
|
3122
|
+
backgroundColor: colors.transparent,
|
|
3123
|
+
borderWidth: 1,
|
|
3124
|
+
borderColor: colors.primary
|
|
3106
3125
|
}
|
|
3107
3126
|
},
|
|
3108
3127
|
"default": {
|
|
3109
3128
|
fill: {
|
|
3110
3129
|
backgroundColor: lateOceanColorPalette.black50,
|
|
3111
|
-
borderWidth:
|
|
3112
|
-
borderColor:
|
|
3130
|
+
borderWidth: 0,
|
|
3131
|
+
borderColor: colors.transparent
|
|
3113
3132
|
},
|
|
3114
3133
|
outline: {
|
|
3115
|
-
backgroundColor:
|
|
3116
|
-
borderWidth:
|
|
3117
|
-
borderColor:
|
|
3134
|
+
backgroundColor: colors.transparent,
|
|
3135
|
+
borderWidth: 1,
|
|
3136
|
+
borderColor: colors.black
|
|
3118
3137
|
}
|
|
3119
3138
|
},
|
|
3120
3139
|
danger: {
|
|
3121
3140
|
fill: {
|
|
3122
3141
|
backgroundColor: lateOceanColorPalette.warmEmbrace,
|
|
3123
|
-
borderWidth:
|
|
3124
|
-
borderColor:
|
|
3142
|
+
borderWidth: 0,
|
|
3143
|
+
borderColor: colors.transparent
|
|
3125
3144
|
},
|
|
3126
3145
|
outline: {
|
|
3127
|
-
backgroundColor:
|
|
3128
|
-
borderWidth:
|
|
3129
|
-
borderColor:
|
|
3146
|
+
backgroundColor: colors.transparent,
|
|
3147
|
+
borderWidth: 1,
|
|
3148
|
+
borderColor: colors.danger
|
|
3130
3149
|
}
|
|
3131
3150
|
}
|
|
3132
3151
|
};
|
|
3133
3152
|
|
|
3134
3153
|
var tooltip = {
|
|
3135
|
-
backgroundColor:
|
|
3154
|
+
backgroundColor: colors.black,
|
|
3136
3155
|
borderRadius: 10,
|
|
3137
3156
|
opacity: 0.95,
|
|
3138
3157
|
horizontalPadding: 16,
|
|
@@ -3165,23 +3184,23 @@ var breakpoints = {
|
|
|
3165
3184
|
|
|
3166
3185
|
var theme = {
|
|
3167
3186
|
spacing: 4,
|
|
3168
|
-
colors:
|
|
3187
|
+
colors: colors,
|
|
3169
3188
|
palettes: {
|
|
3170
3189
|
lateOcean: lateOceanColorPalette
|
|
3171
3190
|
},
|
|
3172
3191
|
avatar: avatar,
|
|
3173
3192
|
button: button,
|
|
3174
|
-
card:
|
|
3193
|
+
card: card,
|
|
3175
3194
|
feedbackMessage: feedbackMessage,
|
|
3176
3195
|
forms: forms,
|
|
3177
|
-
typography:
|
|
3178
|
-
tag:
|
|
3179
|
-
shadows:
|
|
3180
|
-
fullScreenModal:
|
|
3196
|
+
typography: typography,
|
|
3197
|
+
tag: tag,
|
|
3198
|
+
shadows: shadows,
|
|
3199
|
+
fullScreenModal: fullScreenModal,
|
|
3181
3200
|
iconButton: iconButton,
|
|
3182
|
-
listItem:
|
|
3201
|
+
listItem: listItem,
|
|
3183
3202
|
tooltip: tooltip,
|
|
3184
|
-
skeleton:
|
|
3203
|
+
skeleton: skeleton,
|
|
3185
3204
|
breakpoints: breakpoints
|
|
3186
3205
|
};
|
|
3187
3206
|
|
|
@@ -3443,7 +3462,7 @@ function Tooltip(_ref) {
|
|
|
3443
3462
|
};
|
|
3444
3463
|
_f.asString = "function _f(){const{withSpring,pressed,theme}=jsThis._closure;{return{opacity:withSpring(pressed.value?theme.kitt.tooltip.opacity:0)};}}";
|
|
3445
3464
|
_f.__workletHash = 15953928507970;
|
|
3446
|
-
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/Tooltip/Tooltip.tsx (
|
|
3465
|
+
_f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/Tooltip/Tooltip.tsx (59:41)";
|
|
3447
3466
|
_f.__optimalization = 2;
|
|
3448
3467
|
|
|
3449
3468
|
global.__reanimatedWorkletInit(_f);
|
|
@@ -3529,13 +3548,8 @@ function TypographyEmoji(_ref2) {
|
|
|
3529
3548
|
var typeConfig = getTypographyTypeConfig(typeForCurrentWindowSize || 'body', theme);
|
|
3530
3549
|
var typeConfigKey = getTypographyTypeConfigKey(theme);
|
|
3531
3550
|
var fontSize = typeConfig[typeConfigKey].fontSize;
|
|
3532
|
-
|
|
3533
|
-
if ((process.env.NODE_ENV !== "production")) {
|
|
3534
|
-
if (!fontSize.endsWith('px')) throw new Error("Unexpected font-size value: ".concat(fontSize));
|
|
3535
|
-
}
|
|
3536
|
-
|
|
3537
3551
|
return /*#__PURE__*/jsx(StyledTypographyEmoji, {
|
|
3538
|
-
size:
|
|
3552
|
+
size: fontSize,
|
|
3539
3553
|
emoji: emoji
|
|
3540
3554
|
});
|
|
3541
3555
|
}
|
|
@@ -3700,9 +3714,7 @@ function MatchWindowSize(_ref) {
|
|
|
3700
3714
|
|
|
3701
3715
|
var match = useMatchWindowSize(matchWindowSizeOptions);
|
|
3702
3716
|
if (!match) return null;
|
|
3703
|
-
return
|
|
3704
|
-
children: children
|
|
3705
|
-
});
|
|
3717
|
+
return children;
|
|
3706
3718
|
}
|
|
3707
3719
|
|
|
3708
3720
|
function ownKeys(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; }
|
|
@@ -3729,5 +3741,5 @@ function withTheme(WrappedComponent) {
|
|
|
3729
3741
|
});
|
|
3730
3742
|
}
|
|
3731
3743
|
|
|
3732
|
-
export { Avatar, Button, Card, Emoji, ExternalLink, Flex, FullScreenModal, Icon, IconButton, InputFeedback, InputField, InputIcon, InputPassword, InputPressable, InputText, KittBreakpoints, KittBreakpointsMax, KittThemeDecorator, KittThemeProvider, Label, LargeLoader, ListItem, Loader, MatchWindowSize, Message, Modal, Notification, Radio, DeprecatedSection as Section, Skeleton, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, Tag, TextArea, TimePicker, Tooltip, Typography, TypographyEmoji, TypographyIcon, TypographyLink, createWindowSizeHelper, hex2rgba, matchWindowSize, styledTextInputMixin, theme, useKittTheme, useMatchWindowSize, useStoryBlockColor, withTheme };
|
|
3744
|
+
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 };
|
|
3733
3745
|
//# sourceMappingURL=index-browser-all.es.android.js.map
|