@ornikar/kitt-universal 4.1.0 → 4.3.1
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';
|
|
@@ -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) {
|
|
@@ -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;
|
|
@@ -792,13 +792,13 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
792
792
|
|
|
793
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;
|
|
@@ -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;
|
|
@@ -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';
|
|
@@ -2169,12 +2182,12 @@ var ModalView = /*#__PURE__*/styled.View.withConfig({
|
|
|
2169
2182
|
});
|
|
2170
2183
|
var ContentView = /*#__PURE__*/styled.View.withConfig({
|
|
2171
2184
|
displayName: "Modal__ContentView"
|
|
2172
|
-
})(["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) {
|
|
2173
2186
|
var theme = _ref3.theme;
|
|
2174
2187
|
return theme.kitt.card.borderRadius;
|
|
2175
2188
|
}, function (_ref4) {
|
|
2176
2189
|
var theme = _ref4.theme;
|
|
2177
|
-
return theme.kitt.
|
|
2190
|
+
return theme.kitt.colors.uiBackgroundLight;
|
|
2178
2191
|
});
|
|
2179
2192
|
function Modal(_ref5) {
|
|
2180
2193
|
var visible = _ref5.visible,
|
|
@@ -2701,7 +2714,7 @@ var StoryGrid = {
|
|
|
2701
2714
|
|
|
2702
2715
|
var Container$1 = /*#__PURE__*/styled.View.withConfig({
|
|
2703
2716
|
displayName: "Tag__Container"
|
|
2704
|
-
})(["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) {
|
|
2705
2718
|
var theme = _ref.theme,
|
|
2706
2719
|
type = _ref.type,
|
|
2707
2720
|
variant = _ref.variant;
|
|
@@ -2771,6 +2784,7 @@ var lateOceanColorPalette = {
|
|
|
2771
2784
|
warmEmbrace: '#F4D3CE',
|
|
2772
2785
|
warmEmbraceLight1: '#FFEDE6',
|
|
2773
2786
|
black1000: '#000000',
|
|
2787
|
+
black800: '#2C293D',
|
|
2774
2788
|
black555: '#737373',
|
|
2775
2789
|
black200: '#CCCCCC',
|
|
2776
2790
|
black100: '#E5E5E5',
|
|
@@ -2786,7 +2800,7 @@ var lateOceanColorPalette = {
|
|
|
2786
2800
|
moonPurpleLight1: '#EDEBFC'
|
|
2787
2801
|
};
|
|
2788
2802
|
|
|
2789
|
-
var
|
|
2803
|
+
var colors = {
|
|
2790
2804
|
primary: lateOceanColorPalette.lateOcean,
|
|
2791
2805
|
primaryLight: lateOceanColorPalette.lateOceanLight1,
|
|
2792
2806
|
accent: lateOceanColorPalette.warmEmbrace,
|
|
@@ -2811,9 +2825,9 @@ var colorsLateOceanTheme = {
|
|
|
2811
2825
|
};
|
|
2812
2826
|
|
|
2813
2827
|
var avatar = {
|
|
2814
|
-
borderRadius:
|
|
2828
|
+
borderRadius: 10,
|
|
2815
2829
|
"default": {
|
|
2816
|
-
backgroundColor:
|
|
2830
|
+
backgroundColor: colors.primary
|
|
2817
2831
|
},
|
|
2818
2832
|
light: {
|
|
2819
2833
|
backgroundColor: lateOceanColorPalette.black100
|
|
@@ -2821,14 +2835,14 @@ var avatar = {
|
|
|
2821
2835
|
};
|
|
2822
2836
|
|
|
2823
2837
|
var button = {
|
|
2824
|
-
borderRadius:
|
|
2838
|
+
borderRadius: 30,
|
|
2825
2839
|
borderWidth: {
|
|
2826
|
-
disabled:
|
|
2827
|
-
focus:
|
|
2840
|
+
disabled: 2,
|
|
2841
|
+
focus: 3
|
|
2828
2842
|
},
|
|
2829
|
-
minHeight:
|
|
2830
|
-
minWidth:
|
|
2831
|
-
maxWidth:
|
|
2843
|
+
minHeight: 40,
|
|
2844
|
+
minWidth: 40,
|
|
2845
|
+
maxWidth: 335,
|
|
2832
2846
|
scale: {
|
|
2833
2847
|
base: {
|
|
2834
2848
|
"default": 1,
|
|
@@ -2855,9 +2869,9 @@ var button = {
|
|
|
2855
2869
|
focusBorderColor: 'rgba(0, 0, 0, 0.1)'
|
|
2856
2870
|
},
|
|
2857
2871
|
primary: {
|
|
2858
|
-
backgroundColor:
|
|
2859
|
-
pressedBackgroundColor:
|
|
2860
|
-
hoverBackgroundColor:
|
|
2872
|
+
backgroundColor: colors.primary,
|
|
2873
|
+
pressedBackgroundColor: colors.primaryLight,
|
|
2874
|
+
hoverBackgroundColor: colors.primaryLight,
|
|
2861
2875
|
focusBorderColor: 'rgba(76, 52, 224, 0.2)'
|
|
2862
2876
|
},
|
|
2863
2877
|
white: {
|
|
@@ -2867,62 +2881,61 @@ var button = {
|
|
|
2867
2881
|
focusBorderColor: 'rgba(255, 255, 255, 0.1)'
|
|
2868
2882
|
},
|
|
2869
2883
|
subtle: {
|
|
2870
|
-
backgroundColor:
|
|
2871
|
-
pressedBackgroundColor:
|
|
2872
|
-
hoverBackgroundColor:
|
|
2884
|
+
backgroundColor: colors.transparent,
|
|
2885
|
+
pressedBackgroundColor: colors.transparent,
|
|
2886
|
+
hoverBackgroundColor: colors.transparent,
|
|
2873
2887
|
focusBorderColor: 'rgba(76, 52, 224, 0.2)',
|
|
2874
|
-
color:
|
|
2888
|
+
color: colors.primary,
|
|
2875
2889
|
hoverColor: 'rgba(76, 52, 224, 0.8)',
|
|
2876
2890
|
activeColor: 'rgba(76, 52, 224, 0.8)'
|
|
2877
2891
|
},
|
|
2878
2892
|
'subtle-dark': {
|
|
2879
|
-
backgroundColor:
|
|
2880
|
-
pressedBackgroundColor:
|
|
2881
|
-
hoverBackgroundColor:
|
|
2893
|
+
backgroundColor: colors.transparent,
|
|
2894
|
+
pressedBackgroundColor: colors.transparent,
|
|
2895
|
+
hoverBackgroundColor: colors.transparent,
|
|
2882
2896
|
focusBorderColor: 'rgba(0, 0, 0, 0.1)',
|
|
2883
|
-
color:
|
|
2897
|
+
color: colors.black,
|
|
2884
2898
|
hoverColor: 'rgba(0, 0, 0, 0.8)',
|
|
2885
2899
|
activeColor: 'rgba(0, 0, 0, 0.8)'
|
|
2886
2900
|
},
|
|
2887
2901
|
disabled: {
|
|
2888
|
-
backgroundColor:
|
|
2889
|
-
pressedBackgroundColor:
|
|
2890
|
-
hoverBackgroundColor:
|
|
2902
|
+
backgroundColor: colors.disabled,
|
|
2903
|
+
pressedBackgroundColor: colors.disabled,
|
|
2904
|
+
hoverBackgroundColor: colors.disabled,
|
|
2891
2905
|
focusBorderColor: lateOceanColorPalette.black100,
|
|
2892
2906
|
borderColor: lateOceanColorPalette.black100
|
|
2893
2907
|
}
|
|
2894
2908
|
};
|
|
2895
2909
|
|
|
2896
|
-
var
|
|
2897
|
-
borderRadius:
|
|
2898
|
-
borderWidth:
|
|
2899
|
-
padding: '16px',
|
|
2910
|
+
var card = {
|
|
2911
|
+
borderRadius: 20,
|
|
2912
|
+
borderWidth: 2,
|
|
2900
2913
|
primary: {
|
|
2901
|
-
backgroundColor:
|
|
2902
|
-
borderColor:
|
|
2914
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
2915
|
+
borderColor: colors.primary
|
|
2903
2916
|
},
|
|
2904
2917
|
secondary: {
|
|
2905
|
-
backgroundColor:
|
|
2906
|
-
borderColor:
|
|
2918
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
2919
|
+
borderColor: colors.separator
|
|
2907
2920
|
},
|
|
2908
2921
|
subtle: {
|
|
2909
2922
|
backgroundColor: lateOceanColorPalette.black50,
|
|
2910
|
-
borderColor:
|
|
2923
|
+
borderColor: colors.separator
|
|
2911
2924
|
}
|
|
2912
2925
|
};
|
|
2913
2926
|
|
|
2914
2927
|
var feedbackMessage = {
|
|
2915
2928
|
danger: {
|
|
2916
|
-
backgroundColor:
|
|
2929
|
+
backgroundColor: colors.danger
|
|
2917
2930
|
},
|
|
2918
2931
|
success: {
|
|
2919
|
-
backgroundColor:
|
|
2932
|
+
backgroundColor: colors.success
|
|
2920
2933
|
},
|
|
2921
2934
|
info: {
|
|
2922
|
-
backgroundColor:
|
|
2935
|
+
backgroundColor: colors.info
|
|
2923
2936
|
},
|
|
2924
2937
|
warning: {
|
|
2925
|
-
backgroundColor:
|
|
2938
|
+
backgroundColor: colors.warning
|
|
2926
2939
|
}
|
|
2927
2940
|
};
|
|
2928
2941
|
|
|
@@ -2932,18 +2945,19 @@ var calcLineHeight = function (fontSize, lineHeightMultiplier) {
|
|
|
2932
2945
|
var createTypographyTypeConfig = function (lineHeightMultiplier, baseAndSmallFontSize, mediumAndWideFontSize) {
|
|
2933
2946
|
return {
|
|
2934
2947
|
baseAndSmall: {
|
|
2935
|
-
fontSize:
|
|
2936
|
-
lineHeight:
|
|
2948
|
+
fontSize: baseAndSmallFontSize,
|
|
2949
|
+
lineHeight: calcLineHeight(baseAndSmallFontSize, lineHeightMultiplier)
|
|
2937
2950
|
},
|
|
2938
2951
|
mediumAndWide: {
|
|
2939
|
-
fontSize:
|
|
2940
|
-
lineHeight:
|
|
2952
|
+
fontSize: mediumAndWideFontSize,
|
|
2953
|
+
lineHeight: calcLineHeight(mediumAndWideFontSize, lineHeightMultiplier)
|
|
2941
2954
|
}
|
|
2942
2955
|
};
|
|
2943
2956
|
};
|
|
2944
|
-
var
|
|
2957
|
+
var typography = {
|
|
2945
2958
|
colors: {
|
|
2946
2959
|
black: lateOceanColorPalette.black1000,
|
|
2960
|
+
'black-anthracite': lateOceanColorPalette.black800,
|
|
2947
2961
|
'black-light': lateOceanColorPalette.black555,
|
|
2948
2962
|
white: lateOceanColorPalette.white,
|
|
2949
2963
|
'white-light': lateOceanColorPalette.white,
|
|
@@ -3003,17 +3017,17 @@ var typographyLateOceanTheme = {
|
|
|
3003
3017
|
|
|
3004
3018
|
var inputStatesStyle = {
|
|
3005
3019
|
"default": {
|
|
3006
|
-
backgroundColor:
|
|
3007
|
-
borderColor:
|
|
3020
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
3021
|
+
borderColor: colors.separator,
|
|
3008
3022
|
color: 'black'
|
|
3009
3023
|
},
|
|
3010
3024
|
pending: {
|
|
3011
|
-
backgroundColor:
|
|
3012
|
-
borderColor:
|
|
3025
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
3026
|
+
borderColor: colors.separator,
|
|
3013
3027
|
color: 'black'
|
|
3014
3028
|
},
|
|
3015
3029
|
valid: {
|
|
3016
|
-
backgroundColor:
|
|
3030
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
3017
3031
|
borderColor: lateOceanColorPalette.black100,
|
|
3018
3032
|
color: 'black'
|
|
3019
3033
|
},
|
|
@@ -3022,56 +3036,61 @@ var inputStatesStyle = {
|
|
|
3022
3036
|
color: 'black'
|
|
3023
3037
|
},
|
|
3024
3038
|
focus: {
|
|
3025
|
-
borderColor:
|
|
3039
|
+
borderColor: colors.primary,
|
|
3026
3040
|
color: 'black'
|
|
3027
3041
|
},
|
|
3028
3042
|
disabled: {
|
|
3029
|
-
backgroundColor:
|
|
3030
|
-
borderColor:
|
|
3043
|
+
backgroundColor: colors.disabled,
|
|
3044
|
+
borderColor: colors.separator,
|
|
3031
3045
|
color: 'black-light'
|
|
3032
3046
|
},
|
|
3033
3047
|
invalid: {
|
|
3034
|
-
borderColor:
|
|
3048
|
+
borderColor: colors.separator,
|
|
3035
3049
|
color: 'black'
|
|
3036
3050
|
}
|
|
3037
3051
|
};
|
|
3038
3052
|
var input = {
|
|
3039
3053
|
color: {
|
|
3040
|
-
selection:
|
|
3041
|
-
placeholder:
|
|
3054
|
+
selection: colors.primary,
|
|
3055
|
+
placeholder: typography.colors['black-light']
|
|
3042
3056
|
},
|
|
3043
|
-
borderWidth:
|
|
3044
|
-
borderRadius:
|
|
3057
|
+
borderWidth: 2,
|
|
3058
|
+
borderRadius: 10,
|
|
3045
3059
|
icon: {
|
|
3046
3060
|
size: 20
|
|
3047
3061
|
},
|
|
3048
3062
|
padding: {
|
|
3049
|
-
"default": '
|
|
3050
|
-
iOSSingleLine: '
|
|
3063
|
+
"default": '5px 16px',
|
|
3064
|
+
iOSSingleLine: '7px 16px'
|
|
3065
|
+
},
|
|
3066
|
+
transition: {
|
|
3067
|
+
property: 'border-color',
|
|
3068
|
+
duration: '200ms',
|
|
3069
|
+
timingFunction: 'ease-in-out'
|
|
3051
3070
|
},
|
|
3052
3071
|
states: inputStatesStyle
|
|
3053
3072
|
};
|
|
3054
3073
|
|
|
3055
|
-
var
|
|
3074
|
+
var inputField = {
|
|
3056
3075
|
labelContainerPaddingBottom: 5,
|
|
3057
3076
|
iconMarginLeft: 6
|
|
3058
3077
|
};
|
|
3059
3078
|
|
|
3060
|
-
var
|
|
3079
|
+
var radio = {
|
|
3061
3080
|
size: 18,
|
|
3062
3081
|
unchecked: {
|
|
3063
|
-
backgroundColor:
|
|
3064
|
-
borderWidth:
|
|
3082
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
3083
|
+
borderWidth: 2,
|
|
3065
3084
|
borderColor: lateOceanColorPalette.black200
|
|
3066
3085
|
},
|
|
3067
3086
|
checked: {
|
|
3068
|
-
backgroundColor:
|
|
3087
|
+
backgroundColor: colors.primary,
|
|
3069
3088
|
innerSize: 5,
|
|
3070
|
-
innerBackgroundColor:
|
|
3089
|
+
innerBackgroundColor: colors.uiBackgroundLight
|
|
3071
3090
|
},
|
|
3072
3091
|
disabled: {
|
|
3073
|
-
backgroundColor:
|
|
3074
|
-
borderColor:
|
|
3092
|
+
backgroundColor: colors.disabled,
|
|
3093
|
+
borderColor: colors.separator
|
|
3075
3094
|
}
|
|
3076
3095
|
};
|
|
3077
3096
|
|
|
@@ -3081,12 +3100,12 @@ var textArea = {
|
|
|
3081
3100
|
|
|
3082
3101
|
var forms = {
|
|
3083
3102
|
input: input,
|
|
3084
|
-
radio:
|
|
3085
|
-
inputField:
|
|
3103
|
+
radio: radio,
|
|
3104
|
+
inputField: inputField,
|
|
3086
3105
|
textArea: textArea
|
|
3087
3106
|
};
|
|
3088
3107
|
|
|
3089
|
-
var
|
|
3108
|
+
var fullScreenModal = {
|
|
3090
3109
|
header: {
|
|
3091
3110
|
paddingVertical: 12,
|
|
3092
3111
|
paddingHorizontal: 16,
|
|
@@ -3129,66 +3148,66 @@ var iconButton = {
|
|
|
3129
3148
|
}
|
|
3130
3149
|
};
|
|
3131
3150
|
|
|
3132
|
-
var
|
|
3151
|
+
var listItem = {
|
|
3133
3152
|
padding: '12px 16px',
|
|
3134
|
-
borderColor:
|
|
3135
|
-
borderWidth:
|
|
3136
|
-
innerMargin:
|
|
3153
|
+
borderColor: colors.separator,
|
|
3154
|
+
borderWidth: 1,
|
|
3155
|
+
innerMargin: 8
|
|
3137
3156
|
};
|
|
3138
3157
|
|
|
3139
|
-
var
|
|
3158
|
+
var shadows = {
|
|
3140
3159
|
medium: '0px 10px 20px rgba(41, 48, 51, 0.25)'
|
|
3141
3160
|
};
|
|
3142
3161
|
|
|
3143
|
-
var
|
|
3162
|
+
var skeleton = {
|
|
3144
3163
|
backgroundColor: lateOceanColorPalette.black100,
|
|
3145
3164
|
flareColor: lateOceanColorPalette.black200,
|
|
3146
3165
|
animationDuration: 1000
|
|
3147
3166
|
};
|
|
3148
3167
|
|
|
3149
|
-
var
|
|
3150
|
-
borderRadius:
|
|
3168
|
+
var tag = {
|
|
3169
|
+
borderRadius: 10,
|
|
3151
3170
|
padding: '2px 12px',
|
|
3152
3171
|
primary: {
|
|
3153
3172
|
fill: {
|
|
3154
3173
|
backgroundColor: lateOceanColorPalette.moonPurpleLight1,
|
|
3155
|
-
borderWidth:
|
|
3156
|
-
borderColor:
|
|
3174
|
+
borderWidth: 0,
|
|
3175
|
+
borderColor: colors.transparent
|
|
3157
3176
|
},
|
|
3158
3177
|
outline: {
|
|
3159
|
-
backgroundColor:
|
|
3160
|
-
borderWidth:
|
|
3161
|
-
borderColor:
|
|
3178
|
+
backgroundColor: colors.transparent,
|
|
3179
|
+
borderWidth: 1,
|
|
3180
|
+
borderColor: colors.primary
|
|
3162
3181
|
}
|
|
3163
3182
|
},
|
|
3164
3183
|
"default": {
|
|
3165
3184
|
fill: {
|
|
3166
3185
|
backgroundColor: lateOceanColorPalette.black50,
|
|
3167
|
-
borderWidth:
|
|
3168
|
-
borderColor:
|
|
3186
|
+
borderWidth: 0,
|
|
3187
|
+
borderColor: colors.transparent
|
|
3169
3188
|
},
|
|
3170
3189
|
outline: {
|
|
3171
|
-
backgroundColor:
|
|
3172
|
-
borderWidth:
|
|
3173
|
-
borderColor:
|
|
3190
|
+
backgroundColor: colors.transparent,
|
|
3191
|
+
borderWidth: 1,
|
|
3192
|
+
borderColor: colors.black
|
|
3174
3193
|
}
|
|
3175
3194
|
},
|
|
3176
3195
|
danger: {
|
|
3177
3196
|
fill: {
|
|
3178
3197
|
backgroundColor: lateOceanColorPalette.warmEmbrace,
|
|
3179
|
-
borderWidth:
|
|
3180
|
-
borderColor:
|
|
3198
|
+
borderWidth: 0,
|
|
3199
|
+
borderColor: colors.transparent
|
|
3181
3200
|
},
|
|
3182
3201
|
outline: {
|
|
3183
|
-
backgroundColor:
|
|
3184
|
-
borderWidth:
|
|
3185
|
-
borderColor:
|
|
3202
|
+
backgroundColor: colors.transparent,
|
|
3203
|
+
borderWidth: 1,
|
|
3204
|
+
borderColor: colors.danger
|
|
3186
3205
|
}
|
|
3187
3206
|
}
|
|
3188
3207
|
};
|
|
3189
3208
|
|
|
3190
3209
|
var tooltip = {
|
|
3191
|
-
backgroundColor:
|
|
3210
|
+
backgroundColor: colors.black,
|
|
3192
3211
|
borderRadius: 10,
|
|
3193
3212
|
opacity: 0.95,
|
|
3194
3213
|
horizontalPadding: 16,
|
|
@@ -3221,23 +3240,23 @@ var breakpoints = {
|
|
|
3221
3240
|
|
|
3222
3241
|
var theme = {
|
|
3223
3242
|
spacing: 4,
|
|
3224
|
-
colors:
|
|
3243
|
+
colors: colors,
|
|
3225
3244
|
palettes: {
|
|
3226
3245
|
lateOcean: lateOceanColorPalette
|
|
3227
3246
|
},
|
|
3228
3247
|
avatar: avatar,
|
|
3229
3248
|
button: button,
|
|
3230
|
-
card:
|
|
3249
|
+
card: card,
|
|
3231
3250
|
feedbackMessage: feedbackMessage,
|
|
3232
3251
|
forms: forms,
|
|
3233
|
-
typography:
|
|
3234
|
-
tag:
|
|
3235
|
-
shadows:
|
|
3236
|
-
fullScreenModal:
|
|
3252
|
+
typography: typography,
|
|
3253
|
+
tag: tag,
|
|
3254
|
+
shadows: shadows,
|
|
3255
|
+
fullScreenModal: fullScreenModal,
|
|
3237
3256
|
iconButton: iconButton,
|
|
3238
|
-
listItem:
|
|
3257
|
+
listItem: listItem,
|
|
3239
3258
|
tooltip: tooltip,
|
|
3240
|
-
skeleton:
|
|
3259
|
+
skeleton: skeleton,
|
|
3241
3260
|
breakpoints: breakpoints
|
|
3242
3261
|
};
|
|
3243
3262
|
|
|
@@ -3499,7 +3518,7 @@ function Tooltip(_ref) {
|
|
|
3499
3518
|
};
|
|
3500
3519
|
_f.asString = "function _f(){const{withSpring,pressed,theme}=jsThis._closure;{return{opacity:withSpring(pressed.value?theme.kitt.tooltip.opacity:0)};}}";
|
|
3501
3520
|
_f.__workletHash = 15953928507970;
|
|
3502
|
-
_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)";
|
|
3503
3522
|
_f.__optimalization = 2;
|
|
3504
3523
|
|
|
3505
3524
|
global.__reanimatedWorkletInit(_f);
|
|
@@ -3585,13 +3604,8 @@ function TypographyEmoji(_ref2) {
|
|
|
3585
3604
|
var typeConfig = getTypographyTypeConfig(typeForCurrentWindowSize || 'body', theme);
|
|
3586
3605
|
var typeConfigKey = getTypographyTypeConfigKey(theme);
|
|
3587
3606
|
var fontSize = typeConfig[typeConfigKey].fontSize;
|
|
3588
|
-
|
|
3589
|
-
if ((process.env.NODE_ENV !== "production")) {
|
|
3590
|
-
if (!fontSize.endsWith('px')) throw new Error("Unexpected font-size value: ".concat(fontSize));
|
|
3591
|
-
}
|
|
3592
|
-
|
|
3593
3607
|
return /*#__PURE__*/jsx(StyledTypographyEmoji, {
|
|
3594
|
-
size:
|
|
3608
|
+
size: fontSize,
|
|
3595
3609
|
emoji: emoji
|
|
3596
3610
|
});
|
|
3597
3611
|
}
|
|
@@ -3765,10 +3779,8 @@ function MatchWindowSize(_ref) {
|
|
|
3765
3779
|
|
|
3766
3780
|
var match = useMatchWindowSize(matchWindowSizeOptions);
|
|
3767
3781
|
if (!match) return null;
|
|
3768
|
-
return
|
|
3769
|
-
children: children
|
|
3770
|
-
});
|
|
3782
|
+
return children;
|
|
3771
3783
|
}
|
|
3772
3784
|
|
|
3773
|
-
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 };
|
|
3774
3786
|
//# sourceMappingURL=index-browser-all.es.js.map
|