@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
|
@@ -16,9 +16,9 @@ import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
|
16
16
|
import { useFloating, offset, shift, flip, getScrollParents } from '@floating-ui/react-dom';
|
|
17
17
|
import { makeDecorator } from '@storybook/addons';
|
|
18
18
|
|
|
19
|
-
function ownKeys$
|
|
19
|
+
function ownKeys$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; }
|
|
20
20
|
|
|
21
|
-
function _objectSpread$
|
|
21
|
+
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; }
|
|
22
22
|
// type $Without<T, K extends keyof any> = T extends any ? Pick<T, Exclude<keyof T, K>> : never;
|
|
23
23
|
// type $DeepPartial<T> = { [P in keyof T]?: $DeepPartial<T[P]> };
|
|
24
24
|
// export function withTheme<Props extends { theme: DefaultTheme }, C>(
|
|
@@ -33,7 +33,7 @@ function withTheme(WrappedComponent) {
|
|
|
33
33
|
// eslint-disable-next-line prefer-arrow-callback
|
|
34
34
|
return /*#__PURE__*/forwardRef(function (props, ref) {
|
|
35
35
|
var theme = /*#__PURE__*/useTheme();
|
|
36
|
-
return /*#__PURE__*/jsx(WrappedComponent, _objectSpread$
|
|
36
|
+
return /*#__PURE__*/jsx(WrappedComponent, _objectSpread$k({
|
|
37
37
|
ref: ref,
|
|
38
38
|
theme: theme
|
|
39
39
|
}, props));
|
|
@@ -138,9 +138,9 @@ var KittBreakpointsMax = {
|
|
|
138
138
|
|
|
139
139
|
var _excluded$f = ["accessibilityRole", "base", "small", "medium", "large", "variant", "color"];
|
|
140
140
|
|
|
141
|
-
function ownKeys$
|
|
141
|
+
function ownKeys$j(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
142
142
|
|
|
143
|
-
function _objectSpread$
|
|
143
|
+
function _objectSpread$j(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$j(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$j(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
144
144
|
var IsHeaderTypographyContext = /*#__PURE__*/createContext(undefined);
|
|
145
145
|
var TypographyColorContext = /*#__PURE__*/createContext('black');
|
|
146
146
|
function useTypographyColor() {
|
|
@@ -181,7 +181,7 @@ var StyledTypography = /*#__PURE__*/styled$1(Text$1).withConfig({
|
|
|
181
181
|
headers = _theme$kitt$typograph.headers,
|
|
182
182
|
bodies = _theme$kitt$typograph.bodies;
|
|
183
183
|
var typeConfigKey = getTypographyTypeConfigKey(theme);
|
|
184
|
-
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 ");
|
|
184
|
+
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 ");
|
|
185
185
|
}, function (_ref2) {
|
|
186
186
|
var theme = _ref2.theme,
|
|
187
187
|
$color = _ref2.$color;
|
|
@@ -234,14 +234,14 @@ function Typography(_ref4) {
|
|
|
234
234
|
var nonNullableVariant = variant !== null && variant !== void 0 ? variant : isHeader ? 'bold' : 'regular';
|
|
235
235
|
var content = baseOrDefaultToBody ? /*#__PURE__*/jsx(IsHeaderTypographyContext.Provider, {
|
|
236
236
|
value: isHeader,
|
|
237
|
-
children: /*#__PURE__*/jsx(StyledTypography, _objectSpread$
|
|
237
|
+
children: /*#__PURE__*/jsx(StyledTypography, _objectSpread$j({
|
|
238
238
|
$color: colorOrDefaultToBlack,
|
|
239
239
|
$isHeader: isHeader,
|
|
240
240
|
$typeForCurrentWindowSize: typeForCurrentWindowSize,
|
|
241
241
|
$variant: nonNullableVariant,
|
|
242
242
|
accessibilityRole: accessibilityRole || undefined
|
|
243
243
|
}, otherProps))
|
|
244
|
-
}) : /*#__PURE__*/jsx(StyledTypography, _objectSpread$
|
|
244
|
+
}) : /*#__PURE__*/jsx(StyledTypography, _objectSpread$j({
|
|
245
245
|
$color: colorOrDefaultToBlack,
|
|
246
246
|
$isHeader: isHeader,
|
|
247
247
|
$variant: nonNullableVariant,
|
|
@@ -254,13 +254,13 @@ function Typography(_ref4) {
|
|
|
254
254
|
}
|
|
255
255
|
|
|
256
256
|
function TypographyText(props) {
|
|
257
|
-
return /*#__PURE__*/jsx(Typography, _objectSpread$
|
|
257
|
+
return /*#__PURE__*/jsx(Typography, _objectSpread$j({
|
|
258
258
|
accessibilityRole: null
|
|
259
259
|
}, props));
|
|
260
260
|
}
|
|
261
261
|
|
|
262
262
|
function TypographyParagraph(props) {
|
|
263
|
-
return /*#__PURE__*/jsx(Typography, _objectSpread$
|
|
263
|
+
return /*#__PURE__*/jsx(Typography, _objectSpread$j({
|
|
264
264
|
accessibilityRole: "paragraph"
|
|
265
265
|
}, props));
|
|
266
266
|
}
|
|
@@ -268,7 +268,7 @@ function TypographyParagraph(props) {
|
|
|
268
268
|
var createHeading = function (level, defaultBase) {
|
|
269
269
|
// https://github.com/necolas/react-native-web/issues/401
|
|
270
270
|
function TypographyHeading(props) {
|
|
271
|
-
return /*#__PURE__*/jsx(Typography, _objectSpread$
|
|
271
|
+
return /*#__PURE__*/jsx(Typography, _objectSpread$j(_objectSpread$j({
|
|
272
272
|
accessibilityRole: "header",
|
|
273
273
|
base: defaultBase
|
|
274
274
|
}, props), {}, {
|
|
@@ -306,9 +306,9 @@ Typography.h5 = createHeading(5, 'header5');
|
|
|
306
306
|
|
|
307
307
|
var _excluded$e = ["size", "base", "round", "light"];
|
|
308
308
|
|
|
309
|
-
function ownKeys$
|
|
309
|
+
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; }
|
|
310
310
|
|
|
311
|
-
function _objectSpread$
|
|
311
|
+
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; }
|
|
312
312
|
|
|
313
313
|
var getInitials = function (firstname, lastname) {
|
|
314
314
|
return "".concat(firstname[0]).concat(lastname[0]).toUpperCase();
|
|
@@ -322,7 +322,7 @@ var StyledAvatarView = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
322
322
|
$isRound = _ref.$isRound,
|
|
323
323
|
$size = _ref.$size;
|
|
324
324
|
if ($isRound) return "".concat($size / 2, "px");
|
|
325
|
-
return theme.kitt.avatar.borderRadius;
|
|
325
|
+
return "".concat(theme.kitt.avatar.borderRadius, "px");
|
|
326
326
|
}, function (_ref2) {
|
|
327
327
|
var theme = _ref2.theme,
|
|
328
328
|
$isLight = _ref2.$isLight;
|
|
@@ -386,7 +386,7 @@ function Avatar(_ref6) {
|
|
|
386
386
|
$size: size,
|
|
387
387
|
$isRound: round,
|
|
388
388
|
$isLight: light,
|
|
389
|
-
children: /*#__PURE__*/jsx(AvatarContent, _objectSpread$
|
|
389
|
+
children: /*#__PURE__*/jsx(AvatarContent, _objectSpread$i({
|
|
390
390
|
size: size,
|
|
391
391
|
base: base,
|
|
392
392
|
isLight: light
|
|
@@ -400,9 +400,9 @@ function isSubtle(type) {
|
|
|
400
400
|
|
|
401
401
|
var _excluded$d = ["$type", "$isStretch", "disabled"];
|
|
402
402
|
|
|
403
|
-
function ownKeys$
|
|
403
|
+
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; }
|
|
404
404
|
|
|
405
|
-
function _objectSpread$
|
|
405
|
+
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; }
|
|
406
406
|
var AnimatedButtonPressableContainer = withTheme( /*#__PURE__*/styled("div")({
|
|
407
407
|
name: "AnimatedButtonPressableContainer",
|
|
408
408
|
"class": "a1vkj3mh",
|
|
@@ -441,7 +441,7 @@ var AnimatedButtonPressableContainer = withTheme( /*#__PURE__*/styled("div")({
|
|
|
441
441
|
"a1vkj3mh-7": [function (_ref7) {
|
|
442
442
|
var theme = _ref7.theme;
|
|
443
443
|
return theme.kitt.button.borderRadius;
|
|
444
|
-
}],
|
|
444
|
+
}, "px"],
|
|
445
445
|
"a1vkj3mh-8": [function (_ref8) {
|
|
446
446
|
var theme = _ref8.theme;
|
|
447
447
|
return "opacity ".concat(theme.kitt.button.transition.duration, " ").concat(theme.kitt.button.transition.timingFunction);
|
|
@@ -452,24 +452,24 @@ var AnimatedButtonPressableContainer = withTheme( /*#__PURE__*/styled("div")({
|
|
|
452
452
|
}],
|
|
453
453
|
"a1vkj3mh-10": [function (_ref10) {
|
|
454
454
|
var theme = _ref10.theme;
|
|
455
|
-
return "-".concat(theme.kitt.button.borderWidth.disabled);
|
|
455
|
+
return "-".concat(theme.kitt.button.borderWidth.disabled, "px");
|
|
456
456
|
}],
|
|
457
457
|
"a1vkj3mh-12": [function (_ref11) {
|
|
458
458
|
var theme = _ref11.theme;
|
|
459
|
-
return "calc(100% - ".concat(
|
|
459
|
+
return "calc(100% - ".concat(theme.kitt.button.borderWidth.disabled * 0.5, "px)");
|
|
460
460
|
}],
|
|
461
461
|
"a1vkj3mh-14": [function (_ref12) {
|
|
462
462
|
var theme = _ref12.theme;
|
|
463
|
-
return "".concat(theme.kitt.button.disabled
|
|
463
|
+
return "".concat(theme.kitt.button.borderWidth.disabled, "px solid ").concat(theme.kitt.button.disabled.borderColor);
|
|
464
464
|
}],
|
|
465
465
|
"a1vkj3mh-15": [function (_ref13) {
|
|
466
466
|
var theme = _ref13.theme,
|
|
467
467
|
$type = _ref13.$type;
|
|
468
|
-
return "".concat(theme.kitt.button.borderWidth.focus, " solid ").concat(theme.kitt.button[$type].focusBorderColor);
|
|
468
|
+
return "".concat(theme.kitt.button.borderWidth.focus, "px solid ").concat(theme.kitt.button[$type].focusBorderColor);
|
|
469
469
|
}],
|
|
470
470
|
"a1vkj3mh-16": [function (_ref14) {
|
|
471
471
|
var theme = _ref14.theme;
|
|
472
|
-
return "-".concat(theme.kitt.button.borderWidth.focus);
|
|
472
|
+
return "-".concat(theme.kitt.button.borderWidth.focus, "px");
|
|
473
473
|
}],
|
|
474
474
|
"a1vkj3mh-18": [function (_ref15) {
|
|
475
475
|
var theme = _ref15.theme,
|
|
@@ -508,7 +508,7 @@ var AnimatedButtonPressable = /*#__PURE__*/forwardRef(function (_ref18, ref) {
|
|
|
508
508
|
$type: $type,
|
|
509
509
|
$isDisabled: !!disabled,
|
|
510
510
|
$isStretch: $isStretch,
|
|
511
|
-
children: /*#__PURE__*/jsx(Pressable, _objectSpread$
|
|
511
|
+
children: /*#__PURE__*/jsx(Pressable, _objectSpread$h({
|
|
512
512
|
disabled: disabled
|
|
513
513
|
}, props))
|
|
514
514
|
});
|
|
@@ -517,13 +517,13 @@ var AnimatedButtonPressable = /*#__PURE__*/forwardRef(function (_ref18, ref) {
|
|
|
517
517
|
var BaseStyledButtonPressable = /*#__PURE__*/styled$1(View).withConfig({
|
|
518
518
|
displayName: "BaseStyledButtonPressable",
|
|
519
519
|
componentId: "kitt-universal__sc-4k8lse-0"
|
|
520
|
-
})(["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) {
|
|
520
|
+
})(["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) {
|
|
521
521
|
var theme = _ref.theme;
|
|
522
522
|
return theme.kitt.button.minWidth;
|
|
523
523
|
}, function (_ref2) {
|
|
524
524
|
var theme = _ref2.theme,
|
|
525
525
|
$isStretch = _ref2.$isStretch;
|
|
526
|
-
return $isStretch ? '100%' : theme.kitt.button.maxWidth;
|
|
526
|
+
return $isStretch ? '100%' : "".concat(theme.kitt.button.maxWidth, "px");
|
|
527
527
|
}, function (_ref3) {
|
|
528
528
|
var $isStretch = _ref3.$isStretch;
|
|
529
529
|
return $isStretch ? '100%' : 'auto';
|
|
@@ -555,23 +555,23 @@ var BaseStyledButtonPressable = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
555
555
|
var _excluded$c = ["color"],
|
|
556
556
|
_excluded2$2 = ["color"];
|
|
557
557
|
|
|
558
|
-
function ownKeys$
|
|
558
|
+
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; }
|
|
559
559
|
|
|
560
|
-
function _objectSpread$
|
|
560
|
+
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; }
|
|
561
561
|
|
|
562
562
|
function TypographyIconSpecifiedColor(_ref) {
|
|
563
563
|
var color = _ref.color,
|
|
564
564
|
props = _objectWithoutProperties(_ref, _excluded$c);
|
|
565
565
|
|
|
566
566
|
var theme = /*#__PURE__*/useTheme();
|
|
567
|
-
return /*#__PURE__*/jsx(Icon, _objectSpread$
|
|
567
|
+
return /*#__PURE__*/jsx(Icon, _objectSpread$g(_objectSpread$g({}, props), {}, {
|
|
568
568
|
color: color === 'inherit' ? 'inherit' : theme.kitt.typography.colors[color]
|
|
569
569
|
}));
|
|
570
570
|
}
|
|
571
571
|
|
|
572
572
|
function TypographyIconInheritColor(props) {
|
|
573
573
|
var color = useTypographyColor();
|
|
574
|
-
return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread$
|
|
574
|
+
return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread$g({
|
|
575
575
|
color: color
|
|
576
576
|
}, props));
|
|
577
577
|
}
|
|
@@ -581,19 +581,19 @@ function TypographyIcon(_ref2) {
|
|
|
581
581
|
props = _objectWithoutProperties(_ref2, _excluded2$2);
|
|
582
582
|
|
|
583
583
|
if (color) {
|
|
584
|
-
return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread$
|
|
584
|
+
return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread$g({
|
|
585
585
|
color: color
|
|
586
586
|
}, props));
|
|
587
587
|
}
|
|
588
588
|
|
|
589
|
-
return /*#__PURE__*/jsx(TypographyIconInheritColor, _objectSpread$
|
|
589
|
+
return /*#__PURE__*/jsx(TypographyIconInheritColor, _objectSpread$g({}, props));
|
|
590
590
|
}
|
|
591
591
|
|
|
592
592
|
var _excluded$b = ["type", "isDisabled", "$isStretch", "icon", "children"];
|
|
593
593
|
|
|
594
|
-
function ownKeys$
|
|
594
|
+
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; }
|
|
595
595
|
|
|
596
|
-
function _objectSpread$
|
|
596
|
+
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; }
|
|
597
597
|
|
|
598
598
|
var getTextColorByType = function (type) {
|
|
599
599
|
switch (type) {
|
|
@@ -701,7 +701,7 @@ function ButtonContentChildren(_ref4) {
|
|
|
701
701
|
color: isWebSubtle ? 'inherit' : color
|
|
702
702
|
};
|
|
703
703
|
return /*#__PURE__*/jsxs(StyledChildrenWithIcon, {
|
|
704
|
-
children: [icon && iconPosition === 'left' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
704
|
+
children: [icon && iconPosition === 'left' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread$f(_objectSpread$f({}, buttonIconSharedProps), {}, {
|
|
705
705
|
testID: "button-left-icon",
|
|
706
706
|
icon: icon
|
|
707
707
|
})) : null, /*#__PURE__*/jsx(StyledButtonText, {
|
|
@@ -712,7 +712,7 @@ function ButtonContentChildren(_ref4) {
|
|
|
712
712
|
,
|
|
713
713
|
color: isWebSubtle ? undefined : color,
|
|
714
714
|
children: children
|
|
715
|
-
}), icon && iconPosition === 'right' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread$
|
|
715
|
+
}), icon && iconPosition === 'right' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread$f(_objectSpread$f({}, buttonIconSharedProps), {}, {
|
|
716
716
|
icon: icon
|
|
717
717
|
})) : null]
|
|
718
718
|
});
|
|
@@ -743,7 +743,7 @@ function ButtonContent(_ref7) {
|
|
|
743
743
|
$isSubtle: isSubtle(type),
|
|
744
744
|
$isStretch: $isStretch,
|
|
745
745
|
$isIconOnly: Boolean(!children && icon),
|
|
746
|
-
children: /*#__PURE__*/jsx(ButtonContentChildren, _objectSpread$
|
|
746
|
+
children: /*#__PURE__*/jsx(ButtonContentChildren, _objectSpread$f(_objectSpread$f({
|
|
747
747
|
icon: icon,
|
|
748
748
|
type: type,
|
|
749
749
|
isDisabled: isDisabled,
|
|
@@ -802,13 +802,13 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
802
802
|
var Container$3 = /*#__PURE__*/styled$1(View).withConfig({
|
|
803
803
|
displayName: "Card__Container",
|
|
804
804
|
componentId: "kitt-universal__sc-1n9psug-0"
|
|
805
|
-
})(["background-color:", ";padding:", ";border-radius:", ";border-width:", ";border-color:", ";"], function (_ref) {
|
|
805
|
+
})(["background-color:", ";padding:", "px;border-radius:", "px;border-width:", "px;border-color:", ";"], function (_ref) {
|
|
806
806
|
var theme = _ref.theme,
|
|
807
807
|
type = _ref.type;
|
|
808
808
|
return theme.kitt.card[type].backgroundColor;
|
|
809
809
|
}, function (_ref2) {
|
|
810
810
|
var theme = _ref2.theme;
|
|
811
|
-
return theme.kitt.
|
|
811
|
+
return theme.kitt.spacing * 4;
|
|
812
812
|
}, function (_ref3) {
|
|
813
813
|
var theme = _ref3.theme;
|
|
814
814
|
return theme.kitt.card.borderRadius;
|
|
@@ -871,9 +871,9 @@ var defaultOpenLinkBehavior = {
|
|
|
871
871
|
|
|
872
872
|
var _excluded$a = ["as", "href", "openLinkBehavior", "onPress"];
|
|
873
873
|
|
|
874
|
-
function ownKeys$
|
|
874
|
+
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; }
|
|
875
875
|
|
|
876
|
-
function _objectSpread$
|
|
876
|
+
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; }
|
|
877
877
|
function ExternalLink(_ref) {
|
|
878
878
|
var Component = _ref.as,
|
|
879
879
|
href = _ref.href,
|
|
@@ -882,7 +882,7 @@ function ExternalLink(_ref) {
|
|
|
882
882
|
onPress = _ref.onPress,
|
|
883
883
|
rest = _objectWithoutProperties(_ref, _excluded$a);
|
|
884
884
|
|
|
885
|
-
return /*#__PURE__*/jsx(Component, _objectSpread$
|
|
885
|
+
return /*#__PURE__*/jsx(Component, _objectSpread$e(_objectSpread$e({}, rest), {}, {
|
|
886
886
|
href: href,
|
|
887
887
|
hrefAttrs: (openLinkBehavior === null || openLinkBehavior === void 0 ? void 0 : openLinkBehavior.web) === 'targetSelf' ? undefined : {
|
|
888
888
|
target: '_blank',
|
|
@@ -892,110 +892,7 @@ function ExternalLink(_ref) {
|
|
|
892
892
|
}));
|
|
893
893
|
}
|
|
894
894
|
|
|
895
|
-
var
|
|
896
|
-
switch (state) {
|
|
897
|
-
case 'invalid':
|
|
898
|
-
return 'danger';
|
|
899
|
-
|
|
900
|
-
case 'valid':
|
|
901
|
-
default:
|
|
902
|
-
return 'black-light';
|
|
903
|
-
}
|
|
904
|
-
};
|
|
905
|
-
|
|
906
|
-
function InputFeedback(_ref) {
|
|
907
|
-
var state = _ref.state,
|
|
908
|
-
testID = _ref.testID,
|
|
909
|
-
children = _ref.children;
|
|
910
|
-
return /*#__PURE__*/jsx(Typography.Text, {
|
|
911
|
-
base: "body-small",
|
|
912
|
-
color: getColorFromState(state),
|
|
913
|
-
testID: testID,
|
|
914
|
-
children: children
|
|
915
|
-
});
|
|
916
|
-
}
|
|
917
|
-
|
|
918
|
-
var FieldContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
919
|
-
displayName: "InputField__FieldContainer",
|
|
920
|
-
componentId: "kitt-universal__sc-13fkixs-0"
|
|
921
|
-
})(["padding:5px 0 10px;"]);
|
|
922
|
-
var FeedbackContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
923
|
-
displayName: "InputField__FeedbackContainer",
|
|
924
|
-
componentId: "kitt-universal__sc-13fkixs-1"
|
|
925
|
-
})(["", ";"], function (_ref) {
|
|
926
|
-
var theme = _ref.theme;
|
|
927
|
-
return theme.responsive.ifWindowSizeMatches({
|
|
928
|
-
minWidth: KittBreakpoints.SMALL
|
|
929
|
-
}, 'padding-top: 10px', 'padding-top: 5px');
|
|
930
|
-
});
|
|
931
|
-
var FieldLabelContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
932
|
-
displayName: "InputField__FieldLabelContainer",
|
|
933
|
-
componentId: "kitt-universal__sc-13fkixs-2"
|
|
934
|
-
})(["flex-direction:row;align-items:center;padding-bottom:", "px;"], function (_ref2) {
|
|
935
|
-
var theme = _ref2.theme;
|
|
936
|
-
return theme.kitt.forms.inputField.labelContainerPaddingBottom;
|
|
937
|
-
});
|
|
938
|
-
var LabelContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
939
|
-
displayName: "InputField__LabelContainer",
|
|
940
|
-
componentId: "kitt-universal__sc-13fkixs-3"
|
|
941
|
-
})(["margin-right:", "px;"], function (_ref3) {
|
|
942
|
-
var theme = _ref3.theme;
|
|
943
|
-
return theme.kitt.forms.inputField.iconMarginLeft;
|
|
944
|
-
});
|
|
945
|
-
function InputField(_ref4) {
|
|
946
|
-
var label = _ref4.label,
|
|
947
|
-
labelFeedback = _ref4.labelFeedback,
|
|
948
|
-
input = _ref4.input,
|
|
949
|
-
feedback = _ref4.feedback;
|
|
950
|
-
return /*#__PURE__*/jsxs(FieldContainer, {
|
|
951
|
-
children: [label ? /*#__PURE__*/jsxs(FieldLabelContainer, {
|
|
952
|
-
children: [/*#__PURE__*/jsx(LabelContainer, {
|
|
953
|
-
children: label
|
|
954
|
-
}), labelFeedback]
|
|
955
|
-
}) : null, input, feedback ? /*#__PURE__*/jsx(FeedbackContainer, {
|
|
956
|
-
children: feedback
|
|
957
|
-
}) : null]
|
|
958
|
-
});
|
|
959
|
-
}
|
|
960
|
-
|
|
961
|
-
function getIconColor(state, disabled) {
|
|
962
|
-
if (disabled) return 'black-light';
|
|
963
|
-
|
|
964
|
-
switch (state) {
|
|
965
|
-
case 'invalid':
|
|
966
|
-
return 'danger';
|
|
967
|
-
|
|
968
|
-
case 'valid':
|
|
969
|
-
return 'success';
|
|
970
|
-
|
|
971
|
-
default:
|
|
972
|
-
return undefined;
|
|
973
|
-
}
|
|
974
|
-
}
|
|
975
|
-
|
|
976
|
-
function InputIcon(_ref) {
|
|
977
|
-
var icon = _ref.icon,
|
|
978
|
-
state = _ref.state,
|
|
979
|
-
disabled = _ref.disabled;
|
|
980
|
-
var theme = /*#__PURE__*/useTheme();
|
|
981
|
-
var color = getIconColor(state, disabled);
|
|
982
|
-
return /*#__PURE__*/jsx(TypographyIcon, {
|
|
983
|
-
color: color,
|
|
984
|
-
icon: icon,
|
|
985
|
-
size: theme.kitt.forms.input.icon.size
|
|
986
|
-
});
|
|
987
|
-
}
|
|
988
|
-
|
|
989
|
-
function ownKeys$c(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
990
|
-
|
|
991
|
-
function _objectSpread$c(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$c(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$c(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
992
|
-
function InputPressable(_ref) {
|
|
993
|
-
var props = _extends({}, _ref);
|
|
994
|
-
|
|
995
|
-
return /*#__PURE__*/jsx(Pressable, _objectSpread$c({}, props));
|
|
996
|
-
}
|
|
997
|
-
|
|
998
|
-
var styledTextInputMixin = /*#__PURE__*/css(["background-color:", ";border-width:", ";border-radius:", ";border-color:", ";font-size:", ";color:", ";font-family:", ";"], function (_ref) {
|
|
895
|
+
var styledTextInputMixin = /*#__PURE__*/css(["background-color:", ";border-width:", "px;border-radius:", "px;border-color:", ";font-size:", ";color:", ";font-family:", ";"], function (_ref) {
|
|
999
896
|
var theme = _ref.theme,
|
|
1000
897
|
$state = _ref.$state;
|
|
1001
898
|
return $state === 'disabled' ? theme.kitt.forms.input.states.disabled.backgroundColor : theme.kitt.forms.input.states["default"].backgroundColor;
|
|
@@ -1012,7 +909,7 @@ var styledTextInputMixin = /*#__PURE__*/css(["background-color:", ";border-width
|
|
|
1012
909
|
}, function (_ref5) {
|
|
1013
910
|
var theme = _ref5.theme;
|
|
1014
911
|
var typeConfigKey = getTypographyTypeConfigKey(theme);
|
|
1015
|
-
return theme.kitt.typography.types.bodies.configs.body[typeConfigKey].fontSize;
|
|
912
|
+
return "".concat(theme.kitt.typography.types.bodies.configs.body[typeConfigKey].fontSize, "px");
|
|
1016
913
|
}, function (_ref6) {
|
|
1017
914
|
var theme = _ref6.theme,
|
|
1018
915
|
$state = _ref6.$state;
|
|
@@ -1032,15 +929,46 @@ function getInputUIState(_ref) {
|
|
|
1032
929
|
return 'default';
|
|
1033
930
|
}
|
|
1034
931
|
|
|
932
|
+
var InputTextContainer = withTheme( /*#__PURE__*/styled("div")({
|
|
933
|
+
name: "InputTextContainer",
|
|
934
|
+
"class": "i1encr9g",
|
|
935
|
+
vars: {
|
|
936
|
+
"i1encr9g-0": [function (_ref) {
|
|
937
|
+
var $isDisabled = _ref.$isDisabled;
|
|
938
|
+
return $isDisabled ? 'not-allowed' : 'inherit';
|
|
939
|
+
}],
|
|
940
|
+
"i1encr9g-1": [function (_ref2) {
|
|
941
|
+
var theme = _ref2.theme;
|
|
942
|
+
var _theme$kitt$forms$inp = theme.kitt.forms.input.transition,
|
|
943
|
+
property = _theme$kitt$forms$inp.property,
|
|
944
|
+
duration = _theme$kitt$forms$inp.duration,
|
|
945
|
+
timingFunction = _theme$kitt$forms$inp.timingFunction;
|
|
946
|
+
return "".concat(property, " ").concat(duration, " ").concat(timingFunction);
|
|
947
|
+
}],
|
|
948
|
+
"i1encr9g-2": [function (_ref3) {
|
|
949
|
+
var theme = _ref3.theme,
|
|
950
|
+
$isDisabled = _ref3.$isDisabled;
|
|
951
|
+
if ($isDisabled) return theme.kitt.forms.input.states.disabled.borderColor;
|
|
952
|
+
return theme.kitt.forms.input.states.hover.borderColor;
|
|
953
|
+
}],
|
|
954
|
+
"i1encr9g-3": [function (_ref4) {
|
|
955
|
+
var theme = _ref4.theme,
|
|
956
|
+
$isDisabled = _ref4.$isDisabled;
|
|
957
|
+
if ($isDisabled) return theme.kitt.forms.input.states.disabled.borderColor;
|
|
958
|
+
return theme.kitt.forms.input.states.focus.borderColor;
|
|
959
|
+
}]
|
|
960
|
+
}
|
|
961
|
+
}));
|
|
962
|
+
|
|
1035
963
|
var _excluded$9 = ["id", "right", "minHeight", "state", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoCompleteType", "keyboardType", "onFocus", "onBlur"];
|
|
1036
964
|
|
|
1037
|
-
function ownKeys$
|
|
965
|
+
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; }
|
|
1038
966
|
|
|
1039
|
-
function _objectSpread$
|
|
967
|
+
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; }
|
|
1040
968
|
var StyledTextInput = /*#__PURE__*/styled$1(TextInput).withConfig({
|
|
1041
969
|
displayName: "InputText__StyledTextInput",
|
|
1042
970
|
componentId: "kitt-universal__sc-uke279-0"
|
|
1043
|
-
})(["", " padding:", ";line-height:", ";min-height:", "px;"], styledTextInputMixin, function (_ref) {
|
|
971
|
+
})(["", " padding:", ";line-height:", ";width:100%;min-height:", "px;"], styledTextInputMixin, function (_ref) {
|
|
1044
972
|
var theme = _ref.theme,
|
|
1045
973
|
multiline = _ref.multiline;
|
|
1046
974
|
|
|
@@ -1054,18 +982,14 @@ var StyledTextInput = /*#__PURE__*/styled$1(TextInput).withConfig({
|
|
|
1054
982
|
multiline = _ref2.multiline;
|
|
1055
983
|
if (!multiline && "web" === 'ios') return 0;
|
|
1056
984
|
var typeConfigKey = getTypographyTypeConfigKey(theme);
|
|
1057
|
-
return theme.kitt.typography.types.bodies.configs.body[typeConfigKey].lineHeight;
|
|
985
|
+
return "".concat(theme.kitt.typography.types.bodies.configs.body[typeConfigKey].lineHeight, "px");
|
|
1058
986
|
}, function (_ref3) {
|
|
1059
987
|
var $minHeight = _ref3.$minHeight;
|
|
1060
988
|
return $minHeight;
|
|
1061
989
|
});
|
|
1062
|
-
var InputTextContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
1063
|
-
displayName: "InputText__InputTextContainer",
|
|
1064
|
-
componentId: "kitt-universal__sc-uke279-1"
|
|
1065
|
-
})(["position:relative;"]);
|
|
1066
990
|
var RightInputContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
1067
991
|
displayName: "InputText__RightInputContainer",
|
|
1068
|
-
componentId: "kitt-universal__sc-uke279-
|
|
992
|
+
componentId: "kitt-universal__sc-uke279-1"
|
|
1069
993
|
})(["position:absolute;right:0;top:0;bottom:0;justify-content:center;padding:10px;"]);
|
|
1070
994
|
var InputText = /*#__PURE__*/forwardRef(function (_ref4, ref) {
|
|
1071
995
|
var id = _ref4.id,
|
|
@@ -1101,7 +1025,8 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref4, ref) {
|
|
|
1101
1025
|
formState: formState
|
|
1102
1026
|
});
|
|
1103
1027
|
return /*#__PURE__*/jsxs(InputTextContainer, {
|
|
1104
|
-
|
|
1028
|
+
$isDisabled: disabled,
|
|
1029
|
+
children: [/*#__PURE__*/jsx(StyledTextInput, _objectSpread$d(_objectSpread$d({
|
|
1105
1030
|
ref: ref,
|
|
1106
1031
|
nativeID: id,
|
|
1107
1032
|
editable: !disabled,
|
|
@@ -1128,6 +1053,120 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref4, ref) {
|
|
|
1128
1053
|
});
|
|
1129
1054
|
});
|
|
1130
1055
|
|
|
1056
|
+
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; }
|
|
1057
|
+
|
|
1058
|
+
function _objectSpread$c(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$c(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$c(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1059
|
+
function InputEmail(props) {
|
|
1060
|
+
return /*#__PURE__*/jsx(InputText, _objectSpread$c({
|
|
1061
|
+
autoCompleteType: "email",
|
|
1062
|
+
keyboardType: "email-address",
|
|
1063
|
+
textContentType: "emailAddress"
|
|
1064
|
+
}, props));
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
var getColorFromState = function (state) {
|
|
1068
|
+
switch (state) {
|
|
1069
|
+
case 'invalid':
|
|
1070
|
+
return 'danger';
|
|
1071
|
+
|
|
1072
|
+
case 'valid':
|
|
1073
|
+
default:
|
|
1074
|
+
return 'black-light';
|
|
1075
|
+
}
|
|
1076
|
+
};
|
|
1077
|
+
|
|
1078
|
+
function InputFeedback(_ref) {
|
|
1079
|
+
var state = _ref.state,
|
|
1080
|
+
testID = _ref.testID,
|
|
1081
|
+
children = _ref.children;
|
|
1082
|
+
return /*#__PURE__*/jsx(Typography.Text, {
|
|
1083
|
+
base: "body-small",
|
|
1084
|
+
color: getColorFromState(state),
|
|
1085
|
+
testID: testID,
|
|
1086
|
+
children: children
|
|
1087
|
+
});
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
var FieldContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
1091
|
+
displayName: "InputField__FieldContainer",
|
|
1092
|
+
componentId: "kitt-universal__sc-13fkixs-0"
|
|
1093
|
+
})(["padding:5px 0 10px;"]);
|
|
1094
|
+
var FeedbackContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
1095
|
+
displayName: "InputField__FeedbackContainer",
|
|
1096
|
+
componentId: "kitt-universal__sc-13fkixs-1"
|
|
1097
|
+
})(["", ";"], function (_ref) {
|
|
1098
|
+
var theme = _ref.theme;
|
|
1099
|
+
return theme.responsive.ifWindowSizeMatches({
|
|
1100
|
+
minWidth: KittBreakpoints.SMALL
|
|
1101
|
+
}, 'padding-top: 10px', 'padding-top: 5px');
|
|
1102
|
+
});
|
|
1103
|
+
var FieldLabelContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
1104
|
+
displayName: "InputField__FieldLabelContainer",
|
|
1105
|
+
componentId: "kitt-universal__sc-13fkixs-2"
|
|
1106
|
+
})(["flex-direction:row;align-items:center;padding-bottom:", "px;"], function (_ref2) {
|
|
1107
|
+
var theme = _ref2.theme;
|
|
1108
|
+
return theme.kitt.forms.inputField.labelContainerPaddingBottom;
|
|
1109
|
+
});
|
|
1110
|
+
var LabelContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
1111
|
+
displayName: "InputField__LabelContainer",
|
|
1112
|
+
componentId: "kitt-universal__sc-13fkixs-3"
|
|
1113
|
+
})(["margin-right:", "px;"], function (_ref3) {
|
|
1114
|
+
var theme = _ref3.theme;
|
|
1115
|
+
return theme.kitt.forms.inputField.iconMarginLeft;
|
|
1116
|
+
});
|
|
1117
|
+
function InputField(_ref4) {
|
|
1118
|
+
var label = _ref4.label,
|
|
1119
|
+
labelFeedback = _ref4.labelFeedback,
|
|
1120
|
+
input = _ref4.input,
|
|
1121
|
+
feedback = _ref4.feedback;
|
|
1122
|
+
return /*#__PURE__*/jsxs(FieldContainer, {
|
|
1123
|
+
children: [label ? /*#__PURE__*/jsxs(FieldLabelContainer, {
|
|
1124
|
+
children: [/*#__PURE__*/jsx(LabelContainer, {
|
|
1125
|
+
children: label
|
|
1126
|
+
}), labelFeedback]
|
|
1127
|
+
}) : null, input, feedback ? /*#__PURE__*/jsx(FeedbackContainer, {
|
|
1128
|
+
children: feedback
|
|
1129
|
+
}) : null]
|
|
1130
|
+
});
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
function getIconColor(state, disabled) {
|
|
1134
|
+
if (disabled) return 'black-light';
|
|
1135
|
+
|
|
1136
|
+
switch (state) {
|
|
1137
|
+
case 'invalid':
|
|
1138
|
+
return 'danger';
|
|
1139
|
+
|
|
1140
|
+
case 'valid':
|
|
1141
|
+
return 'success';
|
|
1142
|
+
|
|
1143
|
+
default:
|
|
1144
|
+
return undefined;
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
function InputIcon(_ref) {
|
|
1149
|
+
var icon = _ref.icon,
|
|
1150
|
+
state = _ref.state,
|
|
1151
|
+
disabled = _ref.disabled;
|
|
1152
|
+
var theme = /*#__PURE__*/useTheme();
|
|
1153
|
+
var color = getIconColor(state, disabled);
|
|
1154
|
+
return /*#__PURE__*/jsx(TypographyIcon, {
|
|
1155
|
+
color: color,
|
|
1156
|
+
icon: icon,
|
|
1157
|
+
size: theme.kitt.forms.input.icon.size
|
|
1158
|
+
});
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
function ownKeys$b(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1162
|
+
|
|
1163
|
+
function _objectSpread$b(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$b(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$b(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1164
|
+
function InputPressable(_ref) {
|
|
1165
|
+
var props = _extends({}, _ref);
|
|
1166
|
+
|
|
1167
|
+
return /*#__PURE__*/jsx(Pressable, _objectSpread$b({}, props));
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1131
1170
|
var _excluded$8 = ["isPasswordDefaultVisible", "right"];
|
|
1132
1171
|
|
|
1133
1172
|
function ownKeys$a(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -1177,7 +1216,7 @@ function Label(_ref) {
|
|
|
1177
1216
|
var OuterRadio = /*#__PURE__*/styled$1(View).withConfig({
|
|
1178
1217
|
displayName: "Radio__OuterRadio",
|
|
1179
1218
|
componentId: "kitt-universal__sc-1mdgr2o-0"
|
|
1180
|
-
})(["background-color:", ";width:", "px;height:", "px;border-radius:", "px;border-width:", ";border-color:", ";"], function (_ref) {
|
|
1219
|
+
})(["background-color:", ";width:", "px;height:", "px;border-radius:", "px;border-width:", "px;border-color:", ";"], function (_ref) {
|
|
1181
1220
|
var theme = _ref.theme,
|
|
1182
1221
|
disabled = _ref.disabled;
|
|
1183
1222
|
return theme.kitt.forms.radio[disabled ? 'disabled' : 'unchecked'].backgroundColor;
|
|
@@ -1640,11 +1679,11 @@ var SideContainerView = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
1640
1679
|
})(["flex-direction:row;margin-left:", ";margin-right:", ";"], function (_ref) {
|
|
1641
1680
|
var theme = _ref.theme,
|
|
1642
1681
|
side = _ref.side;
|
|
1643
|
-
return side === 'right' ? theme.kitt.listItem.innerMargin : 0;
|
|
1682
|
+
return side === 'right' ? "".concat(theme.kitt.listItem.innerMargin, "px") : 0;
|
|
1644
1683
|
}, function (_ref2) {
|
|
1645
1684
|
var theme = _ref2.theme,
|
|
1646
1685
|
side = _ref2.side;
|
|
1647
|
-
return side === 'left' ? theme.kitt.listItem.innerMargin : 0;
|
|
1686
|
+
return side === 'left' ? "".concat(theme.kitt.listItem.innerMargin, "px") : 0;
|
|
1648
1687
|
}); // Handles the vertical alignment of the side elements of the list item
|
|
1649
1688
|
|
|
1650
1689
|
function ListItemSideContainer(_ref3) {
|
|
@@ -1697,15 +1736,15 @@ var ContainerView = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
1697
1736
|
var borderWidth = theme.kitt.listItem.borderWidth;
|
|
1698
1737
|
|
|
1699
1738
|
if (borders === 'top') {
|
|
1700
|
-
return "border-top-width: ".concat(borderWidth);
|
|
1739
|
+
return "border-top-width: ".concat(borderWidth, "px");
|
|
1701
1740
|
}
|
|
1702
1741
|
|
|
1703
1742
|
if (borders === 'bottom') {
|
|
1704
|
-
return "border-bottom-width: ".concat(borderWidth);
|
|
1743
|
+
return "border-bottom-width: ".concat(borderWidth, "px");
|
|
1705
1744
|
}
|
|
1706
1745
|
|
|
1707
1746
|
if (borders === 'both') {
|
|
1708
|
-
return "border-top-width:
|
|
1747
|
+
return css(["border-top-width:", "px;border-bottom-width:", "px;"], borderWidth, borderWidth);
|
|
1709
1748
|
}
|
|
1710
1749
|
|
|
1711
1750
|
return 'border: none';
|
|
@@ -2088,12 +2127,12 @@ var ModalView = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
2088
2127
|
var ContentView = /*#__PURE__*/styled$1(View).withConfig({
|
|
2089
2128
|
displayName: "Modal__ContentView",
|
|
2090
2129
|
componentId: "kitt-universal__sc-1xy2w5u-1"
|
|
2091
|
-
})(["position:relative;display:flex;flex-direction:column;max-height:100%;max-width:540px;height:auto;width:100%;border-radius:", ";background-color:", ";"], function (_ref3) {
|
|
2130
|
+
})(["position:relative;display:flex;flex-direction:column;max-height:100%;max-width:540px;height:auto;width:100%;border-radius:", "px;background-color:", ";"], function (_ref3) {
|
|
2092
2131
|
var theme = _ref3.theme;
|
|
2093
2132
|
return theme.kitt.card.borderRadius;
|
|
2094
2133
|
}, function (_ref4) {
|
|
2095
2134
|
var theme = _ref4.theme;
|
|
2096
|
-
return theme.kitt.
|
|
2135
|
+
return theme.kitt.colors.uiBackgroundLight;
|
|
2097
2136
|
});
|
|
2098
2137
|
function Modal(_ref5) {
|
|
2099
2138
|
var visible = _ref5.visible,
|
|
@@ -2597,7 +2636,7 @@ var StoryGrid = {
|
|
|
2597
2636
|
var Container = /*#__PURE__*/styled$1(View).withConfig({
|
|
2598
2637
|
displayName: "Tag__Container",
|
|
2599
2638
|
componentId: "kitt-universal__sc-19jmowi-0"
|
|
2600
|
-
})(["background-color:", ";border-width:", ";border-color:", ";padding:", ";border-radius:", ";align-self:flex-start;"], function (_ref) {
|
|
2639
|
+
})(["background-color:", ";border-width:", "px;border-color:", ";padding:", ";border-radius:", "px;align-self:flex-start;"], function (_ref) {
|
|
2601
2640
|
var theme = _ref.theme,
|
|
2602
2641
|
type = _ref.type,
|
|
2603
2642
|
variant = _ref.variant;
|
|
@@ -2667,6 +2706,7 @@ var lateOceanColorPalette = {
|
|
|
2667
2706
|
warmEmbrace: '#F4D3CE',
|
|
2668
2707
|
warmEmbraceLight1: '#FFEDE6',
|
|
2669
2708
|
black1000: '#000000',
|
|
2709
|
+
black800: '#2C293D',
|
|
2670
2710
|
black555: '#737373',
|
|
2671
2711
|
black200: '#CCCCCC',
|
|
2672
2712
|
black100: '#E5E5E5',
|
|
@@ -2682,7 +2722,7 @@ var lateOceanColorPalette = {
|
|
|
2682
2722
|
moonPurpleLight1: '#EDEBFC'
|
|
2683
2723
|
};
|
|
2684
2724
|
|
|
2685
|
-
var
|
|
2725
|
+
var colors = {
|
|
2686
2726
|
primary: lateOceanColorPalette.lateOcean,
|
|
2687
2727
|
primaryLight: lateOceanColorPalette.lateOceanLight1,
|
|
2688
2728
|
accent: lateOceanColorPalette.warmEmbrace,
|
|
@@ -2707,9 +2747,9 @@ var colorsLateOceanTheme = {
|
|
|
2707
2747
|
};
|
|
2708
2748
|
|
|
2709
2749
|
var avatar = {
|
|
2710
|
-
borderRadius:
|
|
2750
|
+
borderRadius: 10,
|
|
2711
2751
|
"default": {
|
|
2712
|
-
backgroundColor:
|
|
2752
|
+
backgroundColor: colors.primary
|
|
2713
2753
|
},
|
|
2714
2754
|
light: {
|
|
2715
2755
|
backgroundColor: lateOceanColorPalette.black100
|
|
@@ -2717,14 +2757,14 @@ var avatar = {
|
|
|
2717
2757
|
};
|
|
2718
2758
|
|
|
2719
2759
|
var button = {
|
|
2720
|
-
borderRadius:
|
|
2760
|
+
borderRadius: 30,
|
|
2721
2761
|
borderWidth: {
|
|
2722
|
-
disabled:
|
|
2723
|
-
focus:
|
|
2762
|
+
disabled: 2,
|
|
2763
|
+
focus: 3
|
|
2724
2764
|
},
|
|
2725
|
-
minHeight:
|
|
2726
|
-
minWidth:
|
|
2727
|
-
maxWidth:
|
|
2765
|
+
minHeight: 40,
|
|
2766
|
+
minWidth: 40,
|
|
2767
|
+
maxWidth: 335,
|
|
2728
2768
|
scale: {
|
|
2729
2769
|
base: {
|
|
2730
2770
|
"default": 1,
|
|
@@ -2751,9 +2791,9 @@ var button = {
|
|
|
2751
2791
|
focusBorderColor: 'rgba(0, 0, 0, 0.1)'
|
|
2752
2792
|
},
|
|
2753
2793
|
primary: {
|
|
2754
|
-
backgroundColor:
|
|
2755
|
-
pressedBackgroundColor:
|
|
2756
|
-
hoverBackgroundColor:
|
|
2794
|
+
backgroundColor: colors.primary,
|
|
2795
|
+
pressedBackgroundColor: colors.primaryLight,
|
|
2796
|
+
hoverBackgroundColor: colors.primaryLight,
|
|
2757
2797
|
focusBorderColor: 'rgba(76, 52, 224, 0.2)'
|
|
2758
2798
|
},
|
|
2759
2799
|
white: {
|
|
@@ -2763,62 +2803,61 @@ var button = {
|
|
|
2763
2803
|
focusBorderColor: 'rgba(255, 255, 255, 0.1)'
|
|
2764
2804
|
},
|
|
2765
2805
|
subtle: {
|
|
2766
|
-
backgroundColor:
|
|
2767
|
-
pressedBackgroundColor:
|
|
2768
|
-
hoverBackgroundColor:
|
|
2806
|
+
backgroundColor: colors.transparent,
|
|
2807
|
+
pressedBackgroundColor: colors.transparent,
|
|
2808
|
+
hoverBackgroundColor: colors.transparent,
|
|
2769
2809
|
focusBorderColor: 'rgba(76, 52, 224, 0.2)',
|
|
2770
|
-
color:
|
|
2810
|
+
color: colors.primary,
|
|
2771
2811
|
hoverColor: 'rgba(76, 52, 224, 0.8)',
|
|
2772
2812
|
activeColor: 'rgba(76, 52, 224, 0.8)'
|
|
2773
2813
|
},
|
|
2774
2814
|
'subtle-dark': {
|
|
2775
|
-
backgroundColor:
|
|
2776
|
-
pressedBackgroundColor:
|
|
2777
|
-
hoverBackgroundColor:
|
|
2815
|
+
backgroundColor: colors.transparent,
|
|
2816
|
+
pressedBackgroundColor: colors.transparent,
|
|
2817
|
+
hoverBackgroundColor: colors.transparent,
|
|
2778
2818
|
focusBorderColor: 'rgba(0, 0, 0, 0.1)',
|
|
2779
|
-
color:
|
|
2819
|
+
color: colors.black,
|
|
2780
2820
|
hoverColor: 'rgba(0, 0, 0, 0.8)',
|
|
2781
2821
|
activeColor: 'rgba(0, 0, 0, 0.8)'
|
|
2782
2822
|
},
|
|
2783
2823
|
disabled: {
|
|
2784
|
-
backgroundColor:
|
|
2785
|
-
pressedBackgroundColor:
|
|
2786
|
-
hoverBackgroundColor:
|
|
2824
|
+
backgroundColor: colors.disabled,
|
|
2825
|
+
pressedBackgroundColor: colors.disabled,
|
|
2826
|
+
hoverBackgroundColor: colors.disabled,
|
|
2787
2827
|
focusBorderColor: lateOceanColorPalette.black100,
|
|
2788
2828
|
borderColor: lateOceanColorPalette.black100
|
|
2789
2829
|
}
|
|
2790
2830
|
};
|
|
2791
2831
|
|
|
2792
|
-
var
|
|
2793
|
-
borderRadius:
|
|
2794
|
-
borderWidth:
|
|
2795
|
-
padding: '16px',
|
|
2832
|
+
var card = {
|
|
2833
|
+
borderRadius: 20,
|
|
2834
|
+
borderWidth: 2,
|
|
2796
2835
|
primary: {
|
|
2797
|
-
backgroundColor:
|
|
2798
|
-
borderColor:
|
|
2836
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
2837
|
+
borderColor: colors.primary
|
|
2799
2838
|
},
|
|
2800
2839
|
secondary: {
|
|
2801
|
-
backgroundColor:
|
|
2802
|
-
borderColor:
|
|
2840
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
2841
|
+
borderColor: colors.separator
|
|
2803
2842
|
},
|
|
2804
2843
|
subtle: {
|
|
2805
2844
|
backgroundColor: lateOceanColorPalette.black50,
|
|
2806
|
-
borderColor:
|
|
2845
|
+
borderColor: colors.separator
|
|
2807
2846
|
}
|
|
2808
2847
|
};
|
|
2809
2848
|
|
|
2810
2849
|
var feedbackMessage = {
|
|
2811
2850
|
danger: {
|
|
2812
|
-
backgroundColor:
|
|
2851
|
+
backgroundColor: colors.danger
|
|
2813
2852
|
},
|
|
2814
2853
|
success: {
|
|
2815
|
-
backgroundColor:
|
|
2854
|
+
backgroundColor: colors.success
|
|
2816
2855
|
},
|
|
2817
2856
|
info: {
|
|
2818
|
-
backgroundColor:
|
|
2857
|
+
backgroundColor: colors.info
|
|
2819
2858
|
},
|
|
2820
2859
|
warning: {
|
|
2821
|
-
backgroundColor:
|
|
2860
|
+
backgroundColor: colors.warning
|
|
2822
2861
|
}
|
|
2823
2862
|
};
|
|
2824
2863
|
|
|
@@ -2828,18 +2867,19 @@ var calcLineHeight = function (fontSize, lineHeightMultiplier) {
|
|
|
2828
2867
|
var createTypographyTypeConfig = function (lineHeightMultiplier, baseAndSmallFontSize, mediumAndWideFontSize) {
|
|
2829
2868
|
return {
|
|
2830
2869
|
baseAndSmall: {
|
|
2831
|
-
fontSize:
|
|
2832
|
-
lineHeight:
|
|
2870
|
+
fontSize: baseAndSmallFontSize,
|
|
2871
|
+
lineHeight: calcLineHeight(baseAndSmallFontSize, lineHeightMultiplier)
|
|
2833
2872
|
},
|
|
2834
2873
|
mediumAndWide: {
|
|
2835
|
-
fontSize:
|
|
2836
|
-
lineHeight:
|
|
2874
|
+
fontSize: mediumAndWideFontSize,
|
|
2875
|
+
lineHeight: calcLineHeight(mediumAndWideFontSize, lineHeightMultiplier)
|
|
2837
2876
|
}
|
|
2838
2877
|
};
|
|
2839
2878
|
};
|
|
2840
|
-
var
|
|
2879
|
+
var typography = {
|
|
2841
2880
|
colors: {
|
|
2842
2881
|
black: lateOceanColorPalette.black1000,
|
|
2882
|
+
'black-anthracite': lateOceanColorPalette.black800,
|
|
2843
2883
|
'black-light': lateOceanColorPalette.black555,
|
|
2844
2884
|
white: lateOceanColorPalette.white,
|
|
2845
2885
|
'white-light': lateOceanColorPalette.white,
|
|
@@ -2899,17 +2939,17 @@ var typographyLateOceanTheme = {
|
|
|
2899
2939
|
|
|
2900
2940
|
var inputStatesStyle = {
|
|
2901
2941
|
"default": {
|
|
2902
|
-
backgroundColor:
|
|
2903
|
-
borderColor:
|
|
2942
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
2943
|
+
borderColor: colors.separator,
|
|
2904
2944
|
color: 'black'
|
|
2905
2945
|
},
|
|
2906
2946
|
pending: {
|
|
2907
|
-
backgroundColor:
|
|
2908
|
-
borderColor:
|
|
2947
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
2948
|
+
borderColor: colors.separator,
|
|
2909
2949
|
color: 'black'
|
|
2910
2950
|
},
|
|
2911
2951
|
valid: {
|
|
2912
|
-
backgroundColor:
|
|
2952
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
2913
2953
|
borderColor: lateOceanColorPalette.black100,
|
|
2914
2954
|
color: 'black'
|
|
2915
2955
|
},
|
|
@@ -2918,56 +2958,61 @@ var inputStatesStyle = {
|
|
|
2918
2958
|
color: 'black'
|
|
2919
2959
|
},
|
|
2920
2960
|
focus: {
|
|
2921
|
-
borderColor:
|
|
2961
|
+
borderColor: colors.primary,
|
|
2922
2962
|
color: 'black'
|
|
2923
2963
|
},
|
|
2924
2964
|
disabled: {
|
|
2925
|
-
backgroundColor:
|
|
2926
|
-
borderColor:
|
|
2965
|
+
backgroundColor: colors.disabled,
|
|
2966
|
+
borderColor: colors.separator,
|
|
2927
2967
|
color: 'black-light'
|
|
2928
2968
|
},
|
|
2929
2969
|
invalid: {
|
|
2930
|
-
borderColor:
|
|
2970
|
+
borderColor: colors.separator,
|
|
2931
2971
|
color: 'black'
|
|
2932
2972
|
}
|
|
2933
2973
|
};
|
|
2934
2974
|
var input = {
|
|
2935
2975
|
color: {
|
|
2936
|
-
selection:
|
|
2937
|
-
placeholder:
|
|
2976
|
+
selection: colors.primary,
|
|
2977
|
+
placeholder: typography.colors['black-light']
|
|
2938
2978
|
},
|
|
2939
|
-
borderWidth:
|
|
2940
|
-
borderRadius:
|
|
2979
|
+
borderWidth: 2,
|
|
2980
|
+
borderRadius: 10,
|
|
2941
2981
|
icon: {
|
|
2942
2982
|
size: 20
|
|
2943
2983
|
},
|
|
2944
2984
|
padding: {
|
|
2945
|
-
"default": '
|
|
2946
|
-
iOSSingleLine: '
|
|
2985
|
+
"default": '5px 16px',
|
|
2986
|
+
iOSSingleLine: '7px 16px'
|
|
2987
|
+
},
|
|
2988
|
+
transition: {
|
|
2989
|
+
property: 'border-color',
|
|
2990
|
+
duration: '200ms',
|
|
2991
|
+
timingFunction: 'ease-in-out'
|
|
2947
2992
|
},
|
|
2948
2993
|
states: inputStatesStyle
|
|
2949
2994
|
};
|
|
2950
2995
|
|
|
2951
|
-
var
|
|
2996
|
+
var inputField = {
|
|
2952
2997
|
labelContainerPaddingBottom: 5,
|
|
2953
2998
|
iconMarginLeft: 6
|
|
2954
2999
|
};
|
|
2955
3000
|
|
|
2956
|
-
var
|
|
3001
|
+
var radio = {
|
|
2957
3002
|
size: 18,
|
|
2958
3003
|
unchecked: {
|
|
2959
|
-
backgroundColor:
|
|
2960
|
-
borderWidth:
|
|
3004
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
3005
|
+
borderWidth: 2,
|
|
2961
3006
|
borderColor: lateOceanColorPalette.black200
|
|
2962
3007
|
},
|
|
2963
3008
|
checked: {
|
|
2964
|
-
backgroundColor:
|
|
3009
|
+
backgroundColor: colors.primary,
|
|
2965
3010
|
innerSize: 5,
|
|
2966
|
-
innerBackgroundColor:
|
|
3011
|
+
innerBackgroundColor: colors.uiBackgroundLight
|
|
2967
3012
|
},
|
|
2968
3013
|
disabled: {
|
|
2969
|
-
backgroundColor:
|
|
2970
|
-
borderColor:
|
|
3014
|
+
backgroundColor: colors.disabled,
|
|
3015
|
+
borderColor: colors.separator
|
|
2971
3016
|
}
|
|
2972
3017
|
};
|
|
2973
3018
|
|
|
@@ -2977,12 +3022,12 @@ var textArea = {
|
|
|
2977
3022
|
|
|
2978
3023
|
var forms = {
|
|
2979
3024
|
input: input,
|
|
2980
|
-
radio:
|
|
2981
|
-
inputField:
|
|
3025
|
+
radio: radio,
|
|
3026
|
+
inputField: inputField,
|
|
2982
3027
|
textArea: textArea
|
|
2983
3028
|
};
|
|
2984
3029
|
|
|
2985
|
-
var
|
|
3030
|
+
var fullScreenModal = {
|
|
2986
3031
|
header: {
|
|
2987
3032
|
paddingVertical: 12,
|
|
2988
3033
|
paddingHorizontal: 16,
|
|
@@ -3025,66 +3070,66 @@ var iconButton = {
|
|
|
3025
3070
|
}
|
|
3026
3071
|
};
|
|
3027
3072
|
|
|
3028
|
-
var
|
|
3073
|
+
var listItem = {
|
|
3029
3074
|
padding: '12px 16px',
|
|
3030
|
-
borderColor:
|
|
3031
|
-
borderWidth:
|
|
3032
|
-
innerMargin:
|
|
3075
|
+
borderColor: colors.separator,
|
|
3076
|
+
borderWidth: 1,
|
|
3077
|
+
innerMargin: 8
|
|
3033
3078
|
};
|
|
3034
3079
|
|
|
3035
|
-
var
|
|
3080
|
+
var shadows = {
|
|
3036
3081
|
medium: '0px 10px 20px rgba(41, 48, 51, 0.25)'
|
|
3037
3082
|
};
|
|
3038
3083
|
|
|
3039
|
-
var
|
|
3084
|
+
var skeleton = {
|
|
3040
3085
|
backgroundColor: lateOceanColorPalette.black100,
|
|
3041
3086
|
flareColor: lateOceanColorPalette.black200,
|
|
3042
3087
|
animationDuration: 1000
|
|
3043
3088
|
};
|
|
3044
3089
|
|
|
3045
|
-
var
|
|
3046
|
-
borderRadius:
|
|
3090
|
+
var tag = {
|
|
3091
|
+
borderRadius: 10,
|
|
3047
3092
|
padding: '2px 12px',
|
|
3048
3093
|
primary: {
|
|
3049
3094
|
fill: {
|
|
3050
3095
|
backgroundColor: lateOceanColorPalette.moonPurpleLight1,
|
|
3051
|
-
borderWidth:
|
|
3052
|
-
borderColor:
|
|
3096
|
+
borderWidth: 0,
|
|
3097
|
+
borderColor: colors.transparent
|
|
3053
3098
|
},
|
|
3054
3099
|
outline: {
|
|
3055
|
-
backgroundColor:
|
|
3056
|
-
borderWidth:
|
|
3057
|
-
borderColor:
|
|
3100
|
+
backgroundColor: colors.transparent,
|
|
3101
|
+
borderWidth: 1,
|
|
3102
|
+
borderColor: colors.primary
|
|
3058
3103
|
}
|
|
3059
3104
|
},
|
|
3060
3105
|
"default": {
|
|
3061
3106
|
fill: {
|
|
3062
3107
|
backgroundColor: lateOceanColorPalette.black50,
|
|
3063
|
-
borderWidth:
|
|
3064
|
-
borderColor:
|
|
3108
|
+
borderWidth: 0,
|
|
3109
|
+
borderColor: colors.transparent
|
|
3065
3110
|
},
|
|
3066
3111
|
outline: {
|
|
3067
|
-
backgroundColor:
|
|
3068
|
-
borderWidth:
|
|
3069
|
-
borderColor:
|
|
3112
|
+
backgroundColor: colors.transparent,
|
|
3113
|
+
borderWidth: 1,
|
|
3114
|
+
borderColor: colors.black
|
|
3070
3115
|
}
|
|
3071
3116
|
},
|
|
3072
3117
|
danger: {
|
|
3073
3118
|
fill: {
|
|
3074
3119
|
backgroundColor: lateOceanColorPalette.warmEmbrace,
|
|
3075
|
-
borderWidth:
|
|
3076
|
-
borderColor:
|
|
3120
|
+
borderWidth: 0,
|
|
3121
|
+
borderColor: colors.transparent
|
|
3077
3122
|
},
|
|
3078
3123
|
outline: {
|
|
3079
|
-
backgroundColor:
|
|
3080
|
-
borderWidth:
|
|
3081
|
-
borderColor:
|
|
3124
|
+
backgroundColor: colors.transparent,
|
|
3125
|
+
borderWidth: 1,
|
|
3126
|
+
borderColor: colors.danger
|
|
3082
3127
|
}
|
|
3083
3128
|
}
|
|
3084
3129
|
};
|
|
3085
3130
|
|
|
3086
3131
|
var tooltip = {
|
|
3087
|
-
backgroundColor:
|
|
3132
|
+
backgroundColor: colors.black,
|
|
3088
3133
|
borderRadius: 10,
|
|
3089
3134
|
opacity: 0.95,
|
|
3090
3135
|
horizontalPadding: 16,
|
|
@@ -3117,23 +3162,23 @@ var breakpoints = {
|
|
|
3117
3162
|
|
|
3118
3163
|
var theme = {
|
|
3119
3164
|
spacing: 4,
|
|
3120
|
-
colors:
|
|
3165
|
+
colors: colors,
|
|
3121
3166
|
palettes: {
|
|
3122
3167
|
lateOcean: lateOceanColorPalette
|
|
3123
3168
|
},
|
|
3124
3169
|
avatar: avatar,
|
|
3125
3170
|
button: button,
|
|
3126
|
-
card:
|
|
3171
|
+
card: card,
|
|
3127
3172
|
feedbackMessage: feedbackMessage,
|
|
3128
3173
|
forms: forms,
|
|
3129
|
-
typography:
|
|
3130
|
-
tag:
|
|
3131
|
-
shadows:
|
|
3132
|
-
fullScreenModal:
|
|
3174
|
+
typography: typography,
|
|
3175
|
+
tag: tag,
|
|
3176
|
+
shadows: shadows,
|
|
3177
|
+
fullScreenModal: fullScreenModal,
|
|
3133
3178
|
iconButton: iconButton,
|
|
3134
|
-
listItem:
|
|
3179
|
+
listItem: listItem,
|
|
3135
3180
|
tooltip: tooltip,
|
|
3136
|
-
skeleton:
|
|
3181
|
+
skeleton: skeleton,
|
|
3137
3182
|
breakpoints: breakpoints
|
|
3138
3183
|
};
|
|
3139
3184
|
|
|
@@ -3363,13 +3408,8 @@ function TypographyEmoji(_ref2) {
|
|
|
3363
3408
|
var typeConfig = getTypographyTypeConfig(typeForCurrentWindowSize || 'body', theme);
|
|
3364
3409
|
var typeConfigKey = getTypographyTypeConfigKey(theme);
|
|
3365
3410
|
var fontSize = typeConfig[typeConfigKey].fontSize;
|
|
3366
|
-
|
|
3367
|
-
if ((process.env.NODE_ENV !== "production")) {
|
|
3368
|
-
if (!fontSize.endsWith('px')) throw new Error("Unexpected font-size value: ".concat(fontSize));
|
|
3369
|
-
}
|
|
3370
|
-
|
|
3371
3411
|
return /*#__PURE__*/jsx(StyledTypographyEmoji, {
|
|
3372
|
-
size:
|
|
3412
|
+
size: fontSize,
|
|
3373
3413
|
emoji: emoji
|
|
3374
3414
|
});
|
|
3375
3415
|
}
|
|
@@ -3543,10 +3583,8 @@ function MatchWindowSize(_ref) {
|
|
|
3543
3583
|
|
|
3544
3584
|
var match = useMatchWindowSize(matchWindowSizeOptions);
|
|
3545
3585
|
if (!match) return null;
|
|
3546
|
-
return
|
|
3547
|
-
children: children
|
|
3548
|
-
});
|
|
3586
|
+
return children;
|
|
3549
3587
|
}
|
|
3550
3588
|
|
|
3551
|
-
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 };
|
|
3589
|
+
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 };
|
|
3552
3590
|
//# sourceMappingURL=index-browser-all.es.web.js.map
|