@ornikar/kitt-universal 4.2.0 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/definitions/Button/AnimatedButtonPressable.web.d.ts +1 -1
- package/dist/definitions/ListItem/ListItem.d.ts.map +1 -1
- package/dist/definitions/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/definitions/forms/Checkbox/Checkbox.d.ts +13 -0
- package/dist/definitions/forms/Checkbox/Checkbox.d.ts.map +1 -0
- 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/InputPhone/InputPhone.d.ts +7 -0
- package/dist/definitions/forms/InputPhone/InputPhone.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 +6 -0
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/definitions/themes/default.d.ts +31 -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/checkbox.d.ts +13 -0
- package/dist/definitions/themes/late-ocean/checkbox.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 +13 -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 +1127 -1020
- package/dist/index-browser-all.es.android.js.map +1 -1
- package/dist/index-browser-all.es.ios.js +1127 -1020
- package/dist/index-browser-all.es.ios.js.map +1 -1
- package/dist/index-browser-all.es.js +1127 -1020
- package/dist/index-browser-all.es.js.map +1 -1
- package/dist/index-browser-all.es.web.js +1159 -1024
- package/dist/index-browser-all.es.web.js.map +1 -1
- package/dist/index-node-14.17.cjs.js +983 -876
- 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 +1125 -989
- package/dist/index-node-14.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.android.js +120 -100
- package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.ios.js +120 -100
- package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.js +120 -100
- package/dist/linaria-themes-browser-all.es.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.web.js +120 -100
- package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.js +120 -100
- package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.web.js +120 -100
- package/dist/linaria-themes-node-14.17.cjs.web.js.map +1 -1
- package/dist/styles.css +1 -0
- package/dist/tsbuildinfo +1 -1
- package/package.json +4 -4
- package/dist/definitions/themes/late-ocean/avatarLateOceanTheme.d.ts.map +0 -1
- package/dist/definitions/themes/late-ocean/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 { View, Text as Text$1, useWindowDimensions, Image, Pressable, TextInput, StyleSheet, ScrollView, Modal as Modal$1 } from 'react-native';
|
|
4
4
|
export { useWindowDimensions as useWindowSize } from 'react-native';
|
|
5
|
-
import { UserIcon, EyeOffIcon, EyeIcon, LoaderIcon, InfoIcon, AlertTriangleIcon, CheckIcon, AlertCircleIcon, XIcon, TooltipArrowIcon } from '@ornikar/kitt-icons';
|
|
5
|
+
import { UserIcon, CheckboxMark, EyeOffIcon, EyeIcon, LoaderIcon, InfoIcon, AlertTriangleIcon, CheckIcon, AlertCircleIcon, XIcon, TooltipArrowIcon } from '@ornikar/kitt-icons';
|
|
6
6
|
export * from '@ornikar/kitt-icons';
|
|
7
7
|
import styled$1, { useTheme, css, ThemeProvider } from 'styled-components/native';
|
|
8
8
|
import { forwardRef, cloneElement, useContext, createContext, useMemo, useState, Fragment, Children, useEffect } from 'react';
|
|
@@ -16,9 +16,9 @@ import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
|
16
16
|
import { useFloating, offset, shift, flip, getScrollParents } from '@floating-ui/react-dom';
|
|
17
17
|
import { makeDecorator } from '@storybook/addons';
|
|
18
18
|
|
|
19
|
-
function ownKeys$
|
|
19
|
+
function ownKeys$l(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$l(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$l(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$l(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$l({
|
|
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$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() {
|
|
@@ -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$k({
|
|
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$k({
|
|
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$k({
|
|
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$k({
|
|
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$k(_objectSpread$k({
|
|
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$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; }
|
|
310
310
|
|
|
311
|
-
function _objectSpread$
|
|
311
|
+
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; }
|
|
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$j({
|
|
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$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; }
|
|
404
404
|
|
|
405
|
-
function _objectSpread$
|
|
405
|
+
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; }
|
|
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$i({
|
|
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$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; }
|
|
559
559
|
|
|
560
|
-
function _objectSpread$
|
|
560
|
+
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; }
|
|
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$h(_objectSpread$h({}, 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$h({
|
|
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$h({
|
|
585
585
|
color: color
|
|
586
586
|
}, props));
|
|
587
587
|
}
|
|
588
588
|
|
|
589
|
-
return /*#__PURE__*/jsx(TypographyIconInheritColor, _objectSpread$
|
|
589
|
+
return /*#__PURE__*/jsx(TypographyIconInheritColor, _objectSpread$h({}, props));
|
|
590
590
|
}
|
|
591
591
|
|
|
592
592
|
var _excluded$b = ["type", "isDisabled", "$isStretch", "icon", "children"];
|
|
593
593
|
|
|
594
|
-
function ownKeys$
|
|
594
|
+
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; }
|
|
595
595
|
|
|
596
|
-
function _objectSpread$
|
|
596
|
+
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; }
|
|
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$g(_objectSpread$g({}, 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$g(_objectSpread$g({}, 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$g(_objectSpread$g({
|
|
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$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; }
|
|
875
875
|
|
|
876
|
-
function _objectSpread$
|
|
876
|
+
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; }
|
|
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$f(_objectSpread$f({}, rest), {}, {
|
|
886
886
|
href: href,
|
|
887
887
|
hrefAttrs: (openLinkBehavior === null || openLinkBehavior === void 0 ? void 0 : openLinkBehavior.web) === 'targetSelf' ? undefined : {
|
|
888
888
|
target: '_blank',
|
|
@@ -892,127 +892,667 @@ function ExternalLink(_ref) {
|
|
|
892
892
|
}));
|
|
893
893
|
}
|
|
894
894
|
|
|
895
|
-
var
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
895
|
+
var lateOceanColorPalette = {
|
|
896
|
+
lateOcean: '#4C34E0',
|
|
897
|
+
lateOceanLight1: '#705DE6',
|
|
898
|
+
lateOceanLight2: '#9485EC',
|
|
899
|
+
lateOceanLight3: '#D6BAF9',
|
|
900
|
+
warmEmbrace: '#F4D3CE',
|
|
901
|
+
warmEmbraceLight1: '#FFEDE6',
|
|
902
|
+
black1000: '#000000',
|
|
903
|
+
black800: '#2C293D',
|
|
904
|
+
black555: '#737373',
|
|
905
|
+
black200: '#CCCCCC',
|
|
906
|
+
black100: '#E5E5E5',
|
|
907
|
+
black50: '#F2F2F2',
|
|
908
|
+
black25: '#F9F9F9',
|
|
909
|
+
white: '#FFFFFF',
|
|
910
|
+
viride: '#38836D',
|
|
911
|
+
englishVermillon: '#D44148',
|
|
912
|
+
goldCrayola: '#F8C583',
|
|
913
|
+
aero: '#89BDDD',
|
|
914
|
+
transparent: 'transparent',
|
|
915
|
+
moonPurple: '#DBD6F9',
|
|
916
|
+
moonPurpleLight1: '#EDEBFC'
|
|
917
|
+
};
|
|
899
918
|
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
919
|
+
var colors = {
|
|
920
|
+
primary: lateOceanColorPalette.lateOcean,
|
|
921
|
+
primaryLight: lateOceanColorPalette.lateOceanLight1,
|
|
922
|
+
accent: lateOceanColorPalette.warmEmbrace,
|
|
923
|
+
accentLight: lateOceanColorPalette.warmEmbraceLight1,
|
|
924
|
+
success: lateOceanColorPalette.viride,
|
|
925
|
+
correct: lateOceanColorPalette.viride,
|
|
926
|
+
danger: lateOceanColorPalette.englishVermillon,
|
|
927
|
+
info: lateOceanColorPalette.aero,
|
|
928
|
+
warning: lateOceanColorPalette.goldCrayola,
|
|
929
|
+
separator: lateOceanColorPalette.black100,
|
|
930
|
+
hover: lateOceanColorPalette.black100,
|
|
931
|
+
black: lateOceanColorPalette.black1000,
|
|
932
|
+
uiBackground: lateOceanColorPalette.black25,
|
|
933
|
+
uiBackgroundLight: lateOceanColorPalette.white,
|
|
934
|
+
transparent: lateOceanColorPalette.transparent,
|
|
935
|
+
disabled: lateOceanColorPalette.black50,
|
|
936
|
+
overlay: {
|
|
937
|
+
dark: 'rgba(41, 48, 51, 0.25)',
|
|
938
|
+
light: 'rgba(255, 255, 255, 0.90)',
|
|
939
|
+
fullscreenLoader: 'rgba(0, 0, 0, 0.25)'
|
|
903
940
|
}
|
|
904
941
|
};
|
|
905
942
|
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
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;
|
|
943
|
+
var avatar = {
|
|
944
|
+
borderRadius: 10,
|
|
945
|
+
"default": {
|
|
946
|
+
backgroundColor: colors.primary
|
|
947
|
+
},
|
|
948
|
+
light: {
|
|
949
|
+
backgroundColor: lateOceanColorPalette.black100
|
|
973
950
|
}
|
|
974
|
-
}
|
|
951
|
+
};
|
|
975
952
|
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
953
|
+
var button = {
|
|
954
|
+
borderRadius: 30,
|
|
955
|
+
borderWidth: {
|
|
956
|
+
disabled: 2,
|
|
957
|
+
focus: 3
|
|
958
|
+
},
|
|
959
|
+
minHeight: 40,
|
|
960
|
+
minWidth: 40,
|
|
961
|
+
maxWidth: 335,
|
|
962
|
+
scale: {
|
|
963
|
+
base: {
|
|
964
|
+
"default": 1,
|
|
965
|
+
hover: 0.95,
|
|
966
|
+
active: 0.95
|
|
967
|
+
},
|
|
968
|
+
medium: {
|
|
969
|
+
hover: 1.05
|
|
970
|
+
}
|
|
971
|
+
},
|
|
972
|
+
contentPadding: {
|
|
973
|
+
"default": '8px 16px 7px',
|
|
974
|
+
large: '12px 24px 11px',
|
|
975
|
+
disabled: '6px 14px 5px'
|
|
976
|
+
},
|
|
977
|
+
transition: {
|
|
978
|
+
duration: '200ms',
|
|
979
|
+
timingFunction: 'cubic-bezier(0.645, 0.045, 0.355, 1)'
|
|
980
|
+
},
|
|
981
|
+
"default": {
|
|
982
|
+
backgroundColor: 'rgba(0, 0, 0, 0.05)',
|
|
983
|
+
pressedBackgroundColor: 'rgba(0, 0, 0, 0.1)',
|
|
984
|
+
hoverBackgroundColor: 'rgba(0, 0, 0, 0.1)',
|
|
985
|
+
focusBorderColor: 'rgba(0, 0, 0, 0.1)'
|
|
986
|
+
},
|
|
987
|
+
primary: {
|
|
988
|
+
backgroundColor: colors.primary,
|
|
989
|
+
pressedBackgroundColor: colors.primaryLight,
|
|
990
|
+
hoverBackgroundColor: colors.primaryLight,
|
|
991
|
+
focusBorderColor: 'rgba(76, 52, 224, 0.2)'
|
|
992
|
+
},
|
|
993
|
+
white: {
|
|
994
|
+
backgroundColor: 'rgba(255, 255, 255, 0.05)',
|
|
995
|
+
pressedBackgroundColor: 'rgba(255, 255, 255, 0.1)',
|
|
996
|
+
hoverBackgroundColor: 'rgba(255, 255, 255, 0.1)',
|
|
997
|
+
focusBorderColor: 'rgba(255, 255, 255, 0.1)'
|
|
998
|
+
},
|
|
999
|
+
subtle: {
|
|
1000
|
+
backgroundColor: colors.transparent,
|
|
1001
|
+
pressedBackgroundColor: colors.transparent,
|
|
1002
|
+
hoverBackgroundColor: colors.transparent,
|
|
1003
|
+
focusBorderColor: 'rgba(76, 52, 224, 0.2)',
|
|
1004
|
+
color: colors.primary,
|
|
1005
|
+
hoverColor: 'rgba(76, 52, 224, 0.8)',
|
|
1006
|
+
activeColor: 'rgba(76, 52, 224, 0.8)'
|
|
1007
|
+
},
|
|
1008
|
+
'subtle-dark': {
|
|
1009
|
+
backgroundColor: colors.transparent,
|
|
1010
|
+
pressedBackgroundColor: colors.transparent,
|
|
1011
|
+
hoverBackgroundColor: colors.transparent,
|
|
1012
|
+
focusBorderColor: 'rgba(0, 0, 0, 0.1)',
|
|
1013
|
+
color: colors.black,
|
|
1014
|
+
hoverColor: 'rgba(0, 0, 0, 0.8)',
|
|
1015
|
+
activeColor: 'rgba(0, 0, 0, 0.8)'
|
|
1016
|
+
},
|
|
1017
|
+
disabled: {
|
|
1018
|
+
backgroundColor: colors.disabled,
|
|
1019
|
+
pressedBackgroundColor: colors.disabled,
|
|
1020
|
+
hoverBackgroundColor: colors.disabled,
|
|
1021
|
+
focusBorderColor: lateOceanColorPalette.black100,
|
|
1022
|
+
borderColor: lateOceanColorPalette.black100
|
|
1023
|
+
}
|
|
1024
|
+
};
|
|
988
1025
|
|
|
989
|
-
|
|
1026
|
+
var card = {
|
|
1027
|
+
borderRadius: 20,
|
|
1028
|
+
borderWidth: 2,
|
|
1029
|
+
primary: {
|
|
1030
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
1031
|
+
borderColor: colors.primary
|
|
1032
|
+
},
|
|
1033
|
+
secondary: {
|
|
1034
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
1035
|
+
borderColor: colors.separator
|
|
1036
|
+
},
|
|
1037
|
+
subtle: {
|
|
1038
|
+
backgroundColor: lateOceanColorPalette.black50,
|
|
1039
|
+
borderColor: colors.separator
|
|
1040
|
+
}
|
|
1041
|
+
};
|
|
990
1042
|
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
1043
|
+
var feedbackMessage = {
|
|
1044
|
+
danger: {
|
|
1045
|
+
backgroundColor: colors.danger
|
|
1046
|
+
},
|
|
1047
|
+
success: {
|
|
1048
|
+
backgroundColor: colors.success
|
|
1049
|
+
},
|
|
1050
|
+
info: {
|
|
1051
|
+
backgroundColor: colors.info
|
|
1052
|
+
},
|
|
1053
|
+
warning: {
|
|
1054
|
+
backgroundColor: colors.warning
|
|
1055
|
+
}
|
|
1056
|
+
};
|
|
994
1057
|
|
|
995
|
-
|
|
996
|
-
|
|
1058
|
+
var checkbox = {
|
|
1059
|
+
borderWidth: 2,
|
|
1060
|
+
borderRadius: 5,
|
|
1061
|
+
height: 20,
|
|
1062
|
+
width: 20,
|
|
1063
|
+
iconSize: 14,
|
|
1064
|
+
borderColor: colors.separator,
|
|
1065
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
1066
|
+
checkedBorderColor: colors.primary,
|
|
1067
|
+
checkedBackgroundColor: colors.primary,
|
|
1068
|
+
markColor: colors.uiBackgroundLight
|
|
1069
|
+
};
|
|
997
1070
|
|
|
998
|
-
var
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
}
|
|
1071
|
+
var calcLineHeight = function (fontSize, lineHeightMultiplier) {
|
|
1072
|
+
return Math.round(fontSize * lineHeightMultiplier);
|
|
1073
|
+
};
|
|
1074
|
+
var createTypographyTypeConfig = function (lineHeightMultiplier, baseAndSmallFontSize, mediumAndWideFontSize) {
|
|
1075
|
+
return {
|
|
1076
|
+
baseAndSmall: {
|
|
1077
|
+
fontSize: baseAndSmallFontSize,
|
|
1078
|
+
lineHeight: calcLineHeight(baseAndSmallFontSize, lineHeightMultiplier)
|
|
1079
|
+
},
|
|
1080
|
+
mediumAndWide: {
|
|
1081
|
+
fontSize: mediumAndWideFontSize,
|
|
1082
|
+
lineHeight: calcLineHeight(mediumAndWideFontSize, lineHeightMultiplier)
|
|
1083
|
+
}
|
|
1084
|
+
};
|
|
1085
|
+
};
|
|
1086
|
+
var typography = {
|
|
1087
|
+
colors: {
|
|
1088
|
+
black: lateOceanColorPalette.black1000,
|
|
1089
|
+
'black-anthracite': lateOceanColorPalette.black800,
|
|
1090
|
+
'black-light': lateOceanColorPalette.black555,
|
|
1091
|
+
white: lateOceanColorPalette.white,
|
|
1092
|
+
'white-light': lateOceanColorPalette.white,
|
|
1093
|
+
primary: lateOceanColorPalette.lateOcean,
|
|
1094
|
+
'primary-light': lateOceanColorPalette.lateOceanLight1,
|
|
1095
|
+
accent: lateOceanColorPalette.warmEmbrace,
|
|
1096
|
+
success: lateOceanColorPalette.viride,
|
|
1097
|
+
danger: lateOceanColorPalette.englishVermillon
|
|
1098
|
+
},
|
|
1099
|
+
types: {
|
|
1100
|
+
headers: {
|
|
1101
|
+
fontFamily: {
|
|
1102
|
+
regular: 'Moderat',
|
|
1103
|
+
bold: 'Moderat'
|
|
1104
|
+
},
|
|
1105
|
+
fontWeight: 400,
|
|
1106
|
+
fontStyle: 'normal',
|
|
1107
|
+
configs: {
|
|
1108
|
+
// also known as xxlarge
|
|
1109
|
+
header1: createTypographyTypeConfig(1.3, 38, 62),
|
|
1110
|
+
// also known as xlarge
|
|
1111
|
+
header2: createTypographyTypeConfig(1.3, 32, 48),
|
|
1112
|
+
// also known as medium
|
|
1113
|
+
header3: createTypographyTypeConfig(1.3, 24, 36),
|
|
1114
|
+
// also known as xsmall
|
|
1115
|
+
header4: createTypographyTypeConfig(1.3, 18, 24),
|
|
1116
|
+
// also known as xxsmall
|
|
1117
|
+
header5: createTypographyTypeConfig(1.3, 18, 18)
|
|
1118
|
+
}
|
|
1119
|
+
},
|
|
1120
|
+
bodies: {
|
|
1121
|
+
fontFamily: {
|
|
1122
|
+
regular: 'Noto Sans',
|
|
1123
|
+
bold: 'Noto Sans'
|
|
1124
|
+
},
|
|
1125
|
+
fontWeight: {
|
|
1126
|
+
regular: 400,
|
|
1127
|
+
bold: 700
|
|
1128
|
+
},
|
|
1129
|
+
fontStyle: {
|
|
1130
|
+
regular: 'normal',
|
|
1131
|
+
bold: 'normal'
|
|
1132
|
+
},
|
|
1133
|
+
configs: {
|
|
1134
|
+
'body-large': createTypographyTypeConfig(1.6, 18, 24),
|
|
1135
|
+
'body-medium': createTypographyTypeConfig(1.6, 18, 18),
|
|
1136
|
+
body: createTypographyTypeConfig(1.6, 16, 16),
|
|
1137
|
+
'body-small': createTypographyTypeConfig(1.6, 14, 14),
|
|
1138
|
+
'body-xsmall': createTypographyTypeConfig(1.6, 12, 12)
|
|
1139
|
+
}
|
|
1140
|
+
}
|
|
1141
|
+
},
|
|
1142
|
+
link: {
|
|
1143
|
+
disabledColor: lateOceanColorPalette.black200
|
|
1144
|
+
}
|
|
1145
|
+
};
|
|
1146
|
+
|
|
1147
|
+
var inputStatesStyle = {
|
|
1148
|
+
"default": {
|
|
1149
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
1150
|
+
borderColor: colors.separator,
|
|
1151
|
+
color: 'black'
|
|
1152
|
+
},
|
|
1153
|
+
pending: {
|
|
1154
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
1155
|
+
borderColor: colors.separator,
|
|
1156
|
+
color: 'black'
|
|
1157
|
+
},
|
|
1158
|
+
valid: {
|
|
1159
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
1160
|
+
borderColor: lateOceanColorPalette.black100,
|
|
1161
|
+
color: 'black'
|
|
1162
|
+
},
|
|
1163
|
+
hover: {
|
|
1164
|
+
borderColor: lateOceanColorPalette.black200,
|
|
1165
|
+
color: 'black'
|
|
1166
|
+
},
|
|
1167
|
+
focus: {
|
|
1168
|
+
borderColor: colors.primary,
|
|
1169
|
+
color: 'black'
|
|
1170
|
+
},
|
|
1171
|
+
disabled: {
|
|
1172
|
+
backgroundColor: colors.disabled,
|
|
1173
|
+
borderColor: colors.separator,
|
|
1174
|
+
color: 'black-light'
|
|
1175
|
+
},
|
|
1176
|
+
invalid: {
|
|
1177
|
+
borderColor: colors.separator,
|
|
1178
|
+
color: 'black'
|
|
1179
|
+
}
|
|
1180
|
+
};
|
|
1181
|
+
var input = {
|
|
1182
|
+
color: {
|
|
1183
|
+
selection: colors.primary,
|
|
1184
|
+
placeholder: typography.colors['black-light']
|
|
1185
|
+
},
|
|
1186
|
+
borderWidth: 2,
|
|
1187
|
+
borderRadius: 10,
|
|
1188
|
+
icon: {
|
|
1189
|
+
size: 20
|
|
1190
|
+
},
|
|
1191
|
+
padding: {
|
|
1192
|
+
"default": '5px 16px',
|
|
1193
|
+
iOSSingleLine: '7px 16px'
|
|
1194
|
+
},
|
|
1195
|
+
transition: {
|
|
1196
|
+
property: 'border-color',
|
|
1197
|
+
duration: '200ms',
|
|
1198
|
+
timingFunction: 'ease-in-out'
|
|
1199
|
+
},
|
|
1200
|
+
states: inputStatesStyle
|
|
1201
|
+
};
|
|
1202
|
+
|
|
1203
|
+
var inputField = {
|
|
1204
|
+
labelContainerPaddingBottom: 5,
|
|
1205
|
+
iconMarginLeft: 6
|
|
1206
|
+
};
|
|
1207
|
+
|
|
1208
|
+
var radio = {
|
|
1209
|
+
size: 18,
|
|
1210
|
+
unchecked: {
|
|
1211
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
1212
|
+
borderWidth: 2,
|
|
1213
|
+
borderColor: lateOceanColorPalette.black200
|
|
1214
|
+
},
|
|
1215
|
+
checked: {
|
|
1216
|
+
backgroundColor: colors.primary,
|
|
1217
|
+
innerSize: 5,
|
|
1218
|
+
innerBackgroundColor: colors.uiBackgroundLight
|
|
1219
|
+
},
|
|
1220
|
+
disabled: {
|
|
1221
|
+
backgroundColor: colors.disabled,
|
|
1222
|
+
borderColor: colors.separator
|
|
1223
|
+
}
|
|
1224
|
+
};
|
|
1225
|
+
|
|
1226
|
+
var textArea = {
|
|
1227
|
+
minHeight: 120
|
|
1228
|
+
};
|
|
1229
|
+
|
|
1230
|
+
var forms = {
|
|
1231
|
+
input: input,
|
|
1232
|
+
radio: radio,
|
|
1233
|
+
inputField: inputField,
|
|
1234
|
+
textArea: textArea,
|
|
1235
|
+
checkbox: checkbox
|
|
1236
|
+
};
|
|
1237
|
+
|
|
1238
|
+
var fullScreenModal = {
|
|
1239
|
+
header: {
|
|
1240
|
+
paddingVertical: 12,
|
|
1241
|
+
paddingHorizontal: 16,
|
|
1242
|
+
borderColor: lateOceanColorPalette.black100
|
|
1243
|
+
}
|
|
1244
|
+
};
|
|
1245
|
+
|
|
1246
|
+
var iconButton = {
|
|
1247
|
+
backgroundColor: 'transparent',
|
|
1248
|
+
width: 40,
|
|
1249
|
+
height: 40,
|
|
1250
|
+
borderRadius: 20,
|
|
1251
|
+
borderWidth: 2,
|
|
1252
|
+
borderColor: 'transparent',
|
|
1253
|
+
transition: {
|
|
1254
|
+
property: 'all',
|
|
1255
|
+
duration: '200ms',
|
|
1256
|
+
timingFunction: 'cubic-bezier(0.645, 0.045, 0.355, 1);'
|
|
1257
|
+
},
|
|
1258
|
+
scale: {
|
|
1259
|
+
base: {
|
|
1260
|
+
"default": 1,
|
|
1261
|
+
hover: 0.95,
|
|
1262
|
+
active: 0.95
|
|
1263
|
+
},
|
|
1264
|
+
medium: {
|
|
1265
|
+
hover: 1.05
|
|
1266
|
+
}
|
|
1267
|
+
},
|
|
1268
|
+
disabled: {
|
|
1269
|
+
scale: 1,
|
|
1270
|
+
backgroundColor: button.disabled.backgroundColor,
|
|
1271
|
+
borderColor: button.disabled.borderColor
|
|
1272
|
+
},
|
|
1273
|
+
"default": {
|
|
1274
|
+
pressedBackgroundColor: button["default"].pressedBackgroundColor
|
|
1275
|
+
},
|
|
1276
|
+
white: {
|
|
1277
|
+
pressedBackgroundColor: button.white.hoverBackgroundColor
|
|
1278
|
+
}
|
|
1279
|
+
};
|
|
1280
|
+
|
|
1281
|
+
var listItem = {
|
|
1282
|
+
padding: '12px 16px',
|
|
1283
|
+
borderColor: colors.separator,
|
|
1284
|
+
borderWidth: 1,
|
|
1285
|
+
innerMargin: 8
|
|
1286
|
+
};
|
|
1287
|
+
|
|
1288
|
+
var shadows = {
|
|
1289
|
+
medium: '0px 10px 20px rgba(41, 48, 51, 0.25)'
|
|
1290
|
+
};
|
|
1291
|
+
|
|
1292
|
+
var skeleton = {
|
|
1293
|
+
backgroundColor: lateOceanColorPalette.black100,
|
|
1294
|
+
flareColor: lateOceanColorPalette.black200,
|
|
1295
|
+
animationDuration: 1000
|
|
1296
|
+
};
|
|
1297
|
+
|
|
1298
|
+
var tag = {
|
|
1299
|
+
borderRadius: 10,
|
|
1300
|
+
padding: '2px 12px',
|
|
1301
|
+
primary: {
|
|
1302
|
+
fill: {
|
|
1303
|
+
backgroundColor: lateOceanColorPalette.moonPurpleLight1,
|
|
1304
|
+
borderWidth: 0,
|
|
1305
|
+
borderColor: colors.transparent
|
|
1306
|
+
},
|
|
1307
|
+
outline: {
|
|
1308
|
+
backgroundColor: colors.transparent,
|
|
1309
|
+
borderWidth: 1,
|
|
1310
|
+
borderColor: colors.primary
|
|
1311
|
+
}
|
|
1312
|
+
},
|
|
1313
|
+
"default": {
|
|
1314
|
+
fill: {
|
|
1315
|
+
backgroundColor: lateOceanColorPalette.black50,
|
|
1316
|
+
borderWidth: 0,
|
|
1317
|
+
borderColor: colors.transparent
|
|
1318
|
+
},
|
|
1319
|
+
outline: {
|
|
1320
|
+
backgroundColor: colors.transparent,
|
|
1321
|
+
borderWidth: 1,
|
|
1322
|
+
borderColor: colors.black
|
|
1323
|
+
}
|
|
1324
|
+
},
|
|
1325
|
+
danger: {
|
|
1326
|
+
fill: {
|
|
1327
|
+
backgroundColor: lateOceanColorPalette.warmEmbrace,
|
|
1328
|
+
borderWidth: 0,
|
|
1329
|
+
borderColor: colors.transparent
|
|
1330
|
+
},
|
|
1331
|
+
outline: {
|
|
1332
|
+
backgroundColor: colors.transparent,
|
|
1333
|
+
borderWidth: 1,
|
|
1334
|
+
borderColor: colors.danger
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
};
|
|
1338
|
+
|
|
1339
|
+
var tooltip = {
|
|
1340
|
+
backgroundColor: colors.black,
|
|
1341
|
+
borderRadius: 10,
|
|
1342
|
+
opacity: 0.95,
|
|
1343
|
+
horizontalPadding: 16,
|
|
1344
|
+
verticalPadding: 4,
|
|
1345
|
+
floatingPadding: 8
|
|
1346
|
+
};
|
|
1347
|
+
|
|
1348
|
+
var breakpoints = {
|
|
1349
|
+
values: {
|
|
1350
|
+
base: 0,
|
|
1351
|
+
small: 480,
|
|
1352
|
+
medium: 768,
|
|
1353
|
+
large: 1024,
|
|
1354
|
+
wide: 1280
|
|
1355
|
+
},
|
|
1356
|
+
min: {
|
|
1357
|
+
smallBreakpoint: 'min-width: 480px',
|
|
1358
|
+
mediumBreakpoint: 'min-width: 768px',
|
|
1359
|
+
largeBreakpoint: 'min-width: 1024px',
|
|
1360
|
+
wideBreakpoint: 'min-width: 1280px'
|
|
1361
|
+
},
|
|
1362
|
+
max: {
|
|
1363
|
+
smallBreakpoint: 'max-width: 479px',
|
|
1364
|
+
mediumBreakpoint: 'max-width: 767px',
|
|
1365
|
+
largeBreakpoint: 'max-width: 1023px',
|
|
1366
|
+
wideBreakpoint: 'max-width: 1279px'
|
|
1367
|
+
}
|
|
1368
|
+
}; // eslint-disable-next-line unicorn/expiring-todo-comments
|
|
1369
|
+
// TODO : seperate brand color usage definition from proper theme definition and add typings - https://ornikar.atlassian.net/browse/CME-156
|
|
1370
|
+
|
|
1371
|
+
var theme = {
|
|
1372
|
+
spacing: 4,
|
|
1373
|
+
colors: colors,
|
|
1374
|
+
palettes: {
|
|
1375
|
+
lateOcean: lateOceanColorPalette
|
|
1376
|
+
},
|
|
1377
|
+
avatar: avatar,
|
|
1378
|
+
button: button,
|
|
1379
|
+
card: card,
|
|
1380
|
+
feedbackMessage: feedbackMessage,
|
|
1381
|
+
forms: forms,
|
|
1382
|
+
typography: typography,
|
|
1383
|
+
tag: tag,
|
|
1384
|
+
shadows: shadows,
|
|
1385
|
+
fullScreenModal: fullScreenModal,
|
|
1386
|
+
iconButton: iconButton,
|
|
1387
|
+
listItem: listItem,
|
|
1388
|
+
tooltip: tooltip,
|
|
1389
|
+
skeleton: skeleton,
|
|
1390
|
+
breakpoints: breakpoints
|
|
1391
|
+
};
|
|
1392
|
+
|
|
1393
|
+
function matchWindowSize(_ref, _ref2) {
|
|
1394
|
+
var width = _ref.width,
|
|
1395
|
+
height = _ref.height;
|
|
1396
|
+
var minWidth = _ref2.minWidth,
|
|
1397
|
+
maxWidth = _ref2.maxWidth,
|
|
1398
|
+
minHeight = _ref2.minHeight,
|
|
1399
|
+
maxHeight = _ref2.maxHeight;
|
|
1400
|
+
var hasWidthMatched = width ? (!minWidth || width >= minWidth) && (!maxWidth || width <= maxWidth) : true;
|
|
1401
|
+
var hasHeightMatched = height ? (!minHeight || height >= minHeight) && (!maxHeight || height <= maxHeight) : true;
|
|
1402
|
+
return hasWidthMatched && hasHeightMatched;
|
|
1403
|
+
}
|
|
1404
|
+
function useMatchWindowSize(options) {
|
|
1405
|
+
var _useWindowDimensions = useWindowDimensions(),
|
|
1406
|
+
width = _useWindowDimensions.width,
|
|
1407
|
+
height = _useWindowDimensions.height;
|
|
1408
|
+
|
|
1409
|
+
return matchWindowSize({
|
|
1410
|
+
width: width,
|
|
1411
|
+
height: height
|
|
1412
|
+
}, options);
|
|
1413
|
+
}
|
|
1414
|
+
|
|
1415
|
+
function createWindowSizeHelper(dimensions) {
|
|
1416
|
+
return {
|
|
1417
|
+
matchWindowSize: function matchWindowSize$1(options) {
|
|
1418
|
+
return matchWindowSize(dimensions, options);
|
|
1419
|
+
},
|
|
1420
|
+
ifWindowSizeMatches: function ifWindowSizeMatches(options, valueIfTrue, valueIfFalse) {
|
|
1421
|
+
return matchWindowSize(dimensions, options) ? valueIfTrue : valueIfFalse;
|
|
1422
|
+
},
|
|
1423
|
+
mapWindowWidth: function mapWindowWidth() {
|
|
1424
|
+
for (var _len = arguments.length, widthList = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
1425
|
+
widthList[_key] = arguments[_key];
|
|
1426
|
+
}
|
|
1427
|
+
|
|
1428
|
+
if ((process.env.NODE_ENV !== "production")) {
|
|
1429
|
+
widthList.slice(1).forEach(function (_ref, index) {
|
|
1430
|
+
var _ref2 = _slicedToArray(_ref, 1),
|
|
1431
|
+
minWidth = _ref2[0];
|
|
1432
|
+
|
|
1433
|
+
var previousMinWidth = widthList[index][0];
|
|
1434
|
+
|
|
1435
|
+
if (previousMinWidth > minWidth) {
|
|
1436
|
+
throw new Error("mapWindowWidth: sort your values to be mobile first. ".concat(minWidth, " is < ").concat(previousMinWidth, ", so ").concat(minWidth, " should be before ").concat(previousMinWidth, "."));
|
|
1437
|
+
}
|
|
1438
|
+
});
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1441
|
+
var found = widthList.find(function (_ref3) {
|
|
1442
|
+
var _ref4 = _slicedToArray(_ref3, 2),
|
|
1443
|
+
minWidth = _ref4[0];
|
|
1444
|
+
_ref4[1];
|
|
1445
|
+
|
|
1446
|
+
return matchWindowSize(dimensions, {
|
|
1447
|
+
minWidth: Number(minWidth)
|
|
1448
|
+
});
|
|
1449
|
+
});
|
|
1450
|
+
if (!found) return null;
|
|
1451
|
+
return found[1];
|
|
1452
|
+
}
|
|
1453
|
+
};
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1456
|
+
function useKittTheme() {
|
|
1457
|
+
var dimensions = useWindowDimensions();
|
|
1458
|
+
return useMemo(function () {
|
|
1459
|
+
return {
|
|
1460
|
+
kitt: theme,
|
|
1461
|
+
responsive: createWindowSizeHelper(dimensions)
|
|
1462
|
+
};
|
|
1463
|
+
}, [dimensions]);
|
|
1464
|
+
}
|
|
1465
|
+
|
|
1466
|
+
var CheckboxAndLabelPressableWrapper = /*#__PURE__*/styled$1(Pressable).withConfig({
|
|
1467
|
+
displayName: "Checkbox__CheckboxAndLabelPressableWrapper",
|
|
1468
|
+
componentId: "kitt-universal__sc-1sav1n6-0"
|
|
1469
|
+
})(["display:flex;flex-direction:row;align-items:center;"]);
|
|
1470
|
+
var CheckboxContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
1471
|
+
displayName: "Checkbox__CheckboxContainer",
|
|
1472
|
+
componentId: "kitt-universal__sc-1sav1n6-1"
|
|
1473
|
+
})(["display:flex;flex-direction:row;align-items:center;justify-content:center;height:", "px;width:", "px;position:relative;border-radius:", "px;", " margin-right:", ";"], function (_ref) {
|
|
1474
|
+
var theme = _ref.theme;
|
|
1475
|
+
return theme.kitt.forms.checkbox.height;
|
|
1476
|
+
}, function (_ref2) {
|
|
1477
|
+
var theme = _ref2.theme;
|
|
1478
|
+
return theme.kitt.forms.checkbox.width;
|
|
1479
|
+
}, function (_ref3) {
|
|
1480
|
+
var theme = _ref3.theme;
|
|
1481
|
+
return theme.kitt.forms.checkbox.borderRadius;
|
|
1482
|
+
}, function (_ref4) {
|
|
1483
|
+
var $isChecked = _ref4.$isChecked,
|
|
1484
|
+
theme = _ref4.theme;
|
|
1485
|
+
var _theme$kitt$forms$che = theme.kitt.forms.checkbox,
|
|
1486
|
+
checkedBackgroundColor = _theme$kitt$forms$che.checkedBackgroundColor,
|
|
1487
|
+
checkedBorderColor = _theme$kitt$forms$che.checkedBorderColor,
|
|
1488
|
+
borderColor = _theme$kitt$forms$che.borderColor,
|
|
1489
|
+
borderWidth = _theme$kitt$forms$che.borderWidth,
|
|
1490
|
+
backgroundColor = _theme$kitt$forms$che.backgroundColor;
|
|
1491
|
+
|
|
1492
|
+
if ($isChecked) {
|
|
1493
|
+
return css(["background-color:", ";border:", ";"], checkedBackgroundColor, "".concat(borderWidth, "px solid ").concat(checkedBorderColor));
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
return css(["background-color:", ";border:", ";"], backgroundColor, "".concat(borderWidth, "px solid ").concat(borderColor));
|
|
1497
|
+
}, function (_ref5) {
|
|
1498
|
+
var theme = _ref5.theme,
|
|
1499
|
+
$hasLabel = _ref5.$hasLabel;
|
|
1500
|
+
if (!$hasLabel) return '0px';
|
|
1501
|
+
return "".concat(theme.kitt.spacing * 2.5, "px;");
|
|
1502
|
+
});
|
|
1503
|
+
function Checkbox(_ref6) {
|
|
1504
|
+
var onChange = _ref6.onChange,
|
|
1505
|
+
onBlur = _ref6.onBlur,
|
|
1506
|
+
onFocus = _ref6.onFocus,
|
|
1507
|
+
value = _ref6.value,
|
|
1508
|
+
_ref6$hitSlop = _ref6.hitSlop,
|
|
1509
|
+
hitSlop = _ref6$hitSlop === void 0 ? 40 : _ref6$hitSlop,
|
|
1510
|
+
id = _ref6.id,
|
|
1511
|
+
children = _ref6.children;
|
|
1512
|
+
var theme = useKittTheme();
|
|
1513
|
+
return /*#__PURE__*/jsxs(CheckboxAndLabelPressableWrapper, {
|
|
1514
|
+
accessibilityRole: "checkbox",
|
|
1515
|
+
accessibilityState: {
|
|
1516
|
+
checked: value
|
|
1517
|
+
},
|
|
1518
|
+
hitSlop: hitSlop,
|
|
1519
|
+
onPress: function handlePress(e) {
|
|
1520
|
+
if (onFocus) onFocus(e);
|
|
1521
|
+
if (onChange) onChange(e);
|
|
1522
|
+
if (onBlur) onBlur(e);
|
|
1523
|
+
},
|
|
1524
|
+
children: [/*#__PURE__*/jsx(CheckboxContainer, {
|
|
1525
|
+
$isChecked: value,
|
|
1526
|
+
$hasLabel: !!children,
|
|
1527
|
+
testID: id,
|
|
1528
|
+
children: value ? /*#__PURE__*/jsx(Icon, {
|
|
1529
|
+
align: "center",
|
|
1530
|
+
color: theme.kitt.forms.checkbox.markColor,
|
|
1531
|
+
size: theme.kitt.forms.checkbox.iconSize,
|
|
1532
|
+
icon: /*#__PURE__*/jsx(CheckboxMark, {})
|
|
1533
|
+
}) : null
|
|
1534
|
+
}), children]
|
|
1535
|
+
});
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1538
|
+
var styledTextInputMixin = /*#__PURE__*/css(["background-color:", ";border-width:", "px;border-radius:", "px;border-color:", ";font-size:", ";color:", ";font-family:", ";"], function (_ref) {
|
|
1539
|
+
var theme = _ref.theme,
|
|
1540
|
+
$state = _ref.$state;
|
|
1541
|
+
return $state === 'disabled' ? theme.kitt.forms.input.states.disabled.backgroundColor : theme.kitt.forms.input.states["default"].backgroundColor;
|
|
1542
|
+
}, function (_ref2) {
|
|
1543
|
+
var theme = _ref2.theme;
|
|
1544
|
+
return theme.kitt.forms.input.borderWidth;
|
|
1545
|
+
}, function (_ref3) {
|
|
1546
|
+
var theme = _ref3.theme;
|
|
1547
|
+
return theme.kitt.forms.input.borderRadius;
|
|
1548
|
+
}, function (_ref4) {
|
|
1549
|
+
var theme = _ref4.theme,
|
|
1550
|
+
$state = _ref4.$state;
|
|
1551
|
+
return theme.kitt.forms.input.states[$state].borderColor;
|
|
1552
|
+
}, function (_ref5) {
|
|
1013
1553
|
var theme = _ref5.theme;
|
|
1014
1554
|
var typeConfigKey = getTypographyTypeConfigKey(theme);
|
|
1015
|
-
return theme.kitt.typography.types.bodies.configs.body[typeConfigKey].fontSize;
|
|
1555
|
+
return "".concat(theme.kitt.typography.types.bodies.configs.body[typeConfigKey].fontSize, "px");
|
|
1016
1556
|
}, function (_ref6) {
|
|
1017
1557
|
var theme = _ref6.theme,
|
|
1018
1558
|
$state = _ref6.$state;
|
|
@@ -1032,15 +1572,46 @@ function getInputUIState(_ref) {
|
|
|
1032
1572
|
return 'default';
|
|
1033
1573
|
}
|
|
1034
1574
|
|
|
1575
|
+
var InputTextContainer = withTheme( /*#__PURE__*/styled("div")({
|
|
1576
|
+
name: "InputTextContainer",
|
|
1577
|
+
"class": "i1encr9g",
|
|
1578
|
+
vars: {
|
|
1579
|
+
"i1encr9g-0": [function (_ref) {
|
|
1580
|
+
var $isDisabled = _ref.$isDisabled;
|
|
1581
|
+
return $isDisabled ? 'not-allowed' : 'inherit';
|
|
1582
|
+
}],
|
|
1583
|
+
"i1encr9g-1": [function (_ref2) {
|
|
1584
|
+
var theme = _ref2.theme;
|
|
1585
|
+
var _theme$kitt$forms$inp = theme.kitt.forms.input.transition,
|
|
1586
|
+
property = _theme$kitt$forms$inp.property,
|
|
1587
|
+
duration = _theme$kitt$forms$inp.duration,
|
|
1588
|
+
timingFunction = _theme$kitt$forms$inp.timingFunction;
|
|
1589
|
+
return "".concat(property, " ").concat(duration, " ").concat(timingFunction);
|
|
1590
|
+
}],
|
|
1591
|
+
"i1encr9g-2": [function (_ref3) {
|
|
1592
|
+
var theme = _ref3.theme,
|
|
1593
|
+
$isDisabled = _ref3.$isDisabled;
|
|
1594
|
+
if ($isDisabled) return theme.kitt.forms.input.states.disabled.borderColor;
|
|
1595
|
+
return theme.kitt.forms.input.states.hover.borderColor;
|
|
1596
|
+
}],
|
|
1597
|
+
"i1encr9g-3": [function (_ref4) {
|
|
1598
|
+
var theme = _ref4.theme,
|
|
1599
|
+
$isDisabled = _ref4.$isDisabled;
|
|
1600
|
+
if ($isDisabled) return theme.kitt.forms.input.states.disabled.borderColor;
|
|
1601
|
+
return theme.kitt.forms.input.states.focus.borderColor;
|
|
1602
|
+
}]
|
|
1603
|
+
}
|
|
1604
|
+
}));
|
|
1605
|
+
|
|
1035
1606
|
var _excluded$9 = ["id", "right", "minHeight", "state", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoCompleteType", "keyboardType", "onFocus", "onBlur"];
|
|
1036
1607
|
|
|
1037
|
-
function ownKeys$
|
|
1608
|
+
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; }
|
|
1038
1609
|
|
|
1039
|
-
function _objectSpread$
|
|
1610
|
+
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; }
|
|
1040
1611
|
var StyledTextInput = /*#__PURE__*/styled$1(TextInput).withConfig({
|
|
1041
1612
|
displayName: "InputText__StyledTextInput",
|
|
1042
1613
|
componentId: "kitt-universal__sc-uke279-0"
|
|
1043
|
-
})(["", " padding:", ";line-height:", ";min-height:", "px;"], styledTextInputMixin, function (_ref) {
|
|
1614
|
+
})(["", " padding:", ";line-height:", ";width:100%;min-height:", "px;"], styledTextInputMixin, function (_ref) {
|
|
1044
1615
|
var theme = _ref.theme,
|
|
1045
1616
|
multiline = _ref.multiline;
|
|
1046
1617
|
|
|
@@ -1054,18 +1625,14 @@ var StyledTextInput = /*#__PURE__*/styled$1(TextInput).withConfig({
|
|
|
1054
1625
|
multiline = _ref2.multiline;
|
|
1055
1626
|
if (!multiline && "web" === 'ios') return 0;
|
|
1056
1627
|
var typeConfigKey = getTypographyTypeConfigKey(theme);
|
|
1057
|
-
return theme.kitt.typography.types.bodies.configs.body[typeConfigKey].lineHeight;
|
|
1628
|
+
return "".concat(theme.kitt.typography.types.bodies.configs.body[typeConfigKey].lineHeight, "px");
|
|
1058
1629
|
}, function (_ref3) {
|
|
1059
1630
|
var $minHeight = _ref3.$minHeight;
|
|
1060
1631
|
return $minHeight;
|
|
1061
1632
|
});
|
|
1062
|
-
var InputTextContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
1063
|
-
displayName: "InputText__InputTextContainer",
|
|
1064
|
-
componentId: "kitt-universal__sc-uke279-1"
|
|
1065
|
-
})(["position:relative;"]);
|
|
1066
1633
|
var RightInputContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
1067
1634
|
displayName: "InputText__RightInputContainer",
|
|
1068
|
-
componentId: "kitt-universal__sc-uke279-
|
|
1635
|
+
componentId: "kitt-universal__sc-uke279-1"
|
|
1069
1636
|
})(["position:absolute;right:0;top:0;bottom:0;justify-content:center;padding:10px;"]);
|
|
1070
1637
|
var InputText = /*#__PURE__*/forwardRef(function (_ref4, ref) {
|
|
1071
1638
|
var id = _ref4.id,
|
|
@@ -1088,51 +1655,166 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref4, ref) {
|
|
|
1088
1655
|
_onBlur = _ref4.onBlur,
|
|
1089
1656
|
props = _objectWithoutProperties(_ref4, _excluded$9);
|
|
1090
1657
|
|
|
1091
|
-
var theme = /*#__PURE__*/useTheme();
|
|
1658
|
+
var theme = /*#__PURE__*/useTheme();
|
|
1659
|
+
|
|
1660
|
+
var _useState = useState(false),
|
|
1661
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
1662
|
+
isFocused = _useState2[0],
|
|
1663
|
+
setIsFocused = _useState2[1];
|
|
1664
|
+
|
|
1665
|
+
var state = internalForceState || getInputUIState({
|
|
1666
|
+
isFocused: isFocused,
|
|
1667
|
+
isDisabled: disabled,
|
|
1668
|
+
formState: formState
|
|
1669
|
+
});
|
|
1670
|
+
return /*#__PURE__*/jsxs(InputTextContainer, {
|
|
1671
|
+
$isDisabled: disabled,
|
|
1672
|
+
children: [/*#__PURE__*/jsx(StyledTextInput, _objectSpread$e(_objectSpread$e({
|
|
1673
|
+
ref: ref,
|
|
1674
|
+
nativeID: id,
|
|
1675
|
+
editable: !disabled,
|
|
1676
|
+
keyboardType: keyboardType,
|
|
1677
|
+
autoCompleteType: autoCompleteType,
|
|
1678
|
+
autoCorrect: autoCorrect,
|
|
1679
|
+
$minHeight: minHeight,
|
|
1680
|
+
textContentType: textContentType,
|
|
1681
|
+
placeholderTextColor: theme.kitt.forms.input.color.placeholder,
|
|
1682
|
+
selectionColor: theme.kitt.forms.input.color.selection
|
|
1683
|
+
}, props), {}, {
|
|
1684
|
+
$state: state,
|
|
1685
|
+
onFocus: function onFocus(e) {
|
|
1686
|
+
setIsFocused(true);
|
|
1687
|
+
if (_onFocus) _onFocus(e);
|
|
1688
|
+
},
|
|
1689
|
+
onBlur: function onBlur(e) {
|
|
1690
|
+
setIsFocused(false);
|
|
1691
|
+
if (_onBlur) _onBlur(e);
|
|
1692
|
+
}
|
|
1693
|
+
})), right ? /*#__PURE__*/jsx(RightInputContainer, {
|
|
1694
|
+
children: right
|
|
1695
|
+
}) : null]
|
|
1696
|
+
});
|
|
1697
|
+
});
|
|
1698
|
+
|
|
1699
|
+
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; }
|
|
1700
|
+
|
|
1701
|
+
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; }
|
|
1702
|
+
function InputEmail(props) {
|
|
1703
|
+
return /*#__PURE__*/jsx(InputText, _objectSpread$d({
|
|
1704
|
+
autoCompleteType: "email",
|
|
1705
|
+
keyboardType: "email-address",
|
|
1706
|
+
textContentType: "emailAddress"
|
|
1707
|
+
}, props));
|
|
1708
|
+
}
|
|
1709
|
+
|
|
1710
|
+
var getColorFromState = function (state) {
|
|
1711
|
+
switch (state) {
|
|
1712
|
+
case 'invalid':
|
|
1713
|
+
return 'danger';
|
|
1714
|
+
|
|
1715
|
+
case 'valid':
|
|
1716
|
+
default:
|
|
1717
|
+
return 'black-light';
|
|
1718
|
+
}
|
|
1719
|
+
};
|
|
1720
|
+
|
|
1721
|
+
function InputFeedback(_ref) {
|
|
1722
|
+
var state = _ref.state,
|
|
1723
|
+
testID = _ref.testID,
|
|
1724
|
+
children = _ref.children;
|
|
1725
|
+
return /*#__PURE__*/jsx(Typography.Text, {
|
|
1726
|
+
base: "body-small",
|
|
1727
|
+
color: getColorFromState(state),
|
|
1728
|
+
testID: testID,
|
|
1729
|
+
children: children
|
|
1730
|
+
});
|
|
1731
|
+
}
|
|
1732
|
+
|
|
1733
|
+
var FieldContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
1734
|
+
displayName: "InputField__FieldContainer",
|
|
1735
|
+
componentId: "kitt-universal__sc-13fkixs-0"
|
|
1736
|
+
})(["padding:5px 0 10px;"]);
|
|
1737
|
+
var FeedbackContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
1738
|
+
displayName: "InputField__FeedbackContainer",
|
|
1739
|
+
componentId: "kitt-universal__sc-13fkixs-1"
|
|
1740
|
+
})(["", ";"], function (_ref) {
|
|
1741
|
+
var theme = _ref.theme;
|
|
1742
|
+
return theme.responsive.ifWindowSizeMatches({
|
|
1743
|
+
minWidth: KittBreakpoints.SMALL
|
|
1744
|
+
}, 'padding-top: 10px', 'padding-top: 5px');
|
|
1745
|
+
});
|
|
1746
|
+
var FieldLabelContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
1747
|
+
displayName: "InputField__FieldLabelContainer",
|
|
1748
|
+
componentId: "kitt-universal__sc-13fkixs-2"
|
|
1749
|
+
})(["flex-direction:row;align-items:center;padding-bottom:", "px;"], function (_ref2) {
|
|
1750
|
+
var theme = _ref2.theme;
|
|
1751
|
+
return theme.kitt.forms.inputField.labelContainerPaddingBottom;
|
|
1752
|
+
});
|
|
1753
|
+
var LabelContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
1754
|
+
displayName: "InputField__LabelContainer",
|
|
1755
|
+
componentId: "kitt-universal__sc-13fkixs-3"
|
|
1756
|
+
})(["margin-right:", "px;"], function (_ref3) {
|
|
1757
|
+
var theme = _ref3.theme;
|
|
1758
|
+
return theme.kitt.forms.inputField.iconMarginLeft;
|
|
1759
|
+
});
|
|
1760
|
+
function InputField(_ref4) {
|
|
1761
|
+
var label = _ref4.label,
|
|
1762
|
+
labelFeedback = _ref4.labelFeedback,
|
|
1763
|
+
input = _ref4.input,
|
|
1764
|
+
feedback = _ref4.feedback;
|
|
1765
|
+
return /*#__PURE__*/jsxs(FieldContainer, {
|
|
1766
|
+
children: [label ? /*#__PURE__*/jsxs(FieldLabelContainer, {
|
|
1767
|
+
children: [/*#__PURE__*/jsx(LabelContainer, {
|
|
1768
|
+
children: label
|
|
1769
|
+
}), labelFeedback]
|
|
1770
|
+
}) : null, input, feedback ? /*#__PURE__*/jsx(FeedbackContainer, {
|
|
1771
|
+
children: feedback
|
|
1772
|
+
}) : null]
|
|
1773
|
+
});
|
|
1774
|
+
}
|
|
1775
|
+
|
|
1776
|
+
function getIconColor(state, disabled) {
|
|
1777
|
+
if (disabled) return 'black-light';
|
|
1778
|
+
|
|
1779
|
+
switch (state) {
|
|
1780
|
+
case 'invalid':
|
|
1781
|
+
return 'danger';
|
|
1782
|
+
|
|
1783
|
+
case 'valid':
|
|
1784
|
+
return 'success';
|
|
1785
|
+
|
|
1786
|
+
default:
|
|
1787
|
+
return undefined;
|
|
1788
|
+
}
|
|
1789
|
+
}
|
|
1790
|
+
|
|
1791
|
+
function InputIcon(_ref) {
|
|
1792
|
+
var icon = _ref.icon,
|
|
1793
|
+
state = _ref.state,
|
|
1794
|
+
disabled = _ref.disabled;
|
|
1795
|
+
var theme = /*#__PURE__*/useTheme();
|
|
1796
|
+
var color = getIconColor(state, disabled);
|
|
1797
|
+
return /*#__PURE__*/jsx(TypographyIcon, {
|
|
1798
|
+
color: color,
|
|
1799
|
+
icon: icon,
|
|
1800
|
+
size: theme.kitt.forms.input.icon.size
|
|
1801
|
+
});
|
|
1802
|
+
}
|
|
1803
|
+
|
|
1804
|
+
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; }
|
|
1092
1805
|
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
setIsFocused = _useState2[1];
|
|
1806
|
+
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; }
|
|
1807
|
+
function InputPressable(_ref) {
|
|
1808
|
+
var props = _extends({}, _ref);
|
|
1097
1809
|
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
isDisabled: disabled,
|
|
1101
|
-
formState: formState
|
|
1102
|
-
});
|
|
1103
|
-
return /*#__PURE__*/jsxs(InputTextContainer, {
|
|
1104
|
-
children: [/*#__PURE__*/jsx(StyledTextInput, _objectSpread$b(_objectSpread$b({
|
|
1105
|
-
ref: ref,
|
|
1106
|
-
nativeID: id,
|
|
1107
|
-
editable: !disabled,
|
|
1108
|
-
keyboardType: keyboardType,
|
|
1109
|
-
autoCompleteType: autoCompleteType,
|
|
1110
|
-
autoCorrect: autoCorrect,
|
|
1111
|
-
$minHeight: minHeight,
|
|
1112
|
-
textContentType: textContentType,
|
|
1113
|
-
placeholderTextColor: theme.kitt.forms.input.color.placeholder,
|
|
1114
|
-
selectionColor: theme.kitt.forms.input.color.selection
|
|
1115
|
-
}, props), {}, {
|
|
1116
|
-
$state: state,
|
|
1117
|
-
onFocus: function onFocus(e) {
|
|
1118
|
-
setIsFocused(true);
|
|
1119
|
-
if (_onFocus) _onFocus(e);
|
|
1120
|
-
},
|
|
1121
|
-
onBlur: function onBlur(e) {
|
|
1122
|
-
setIsFocused(false);
|
|
1123
|
-
if (_onBlur) _onBlur(e);
|
|
1124
|
-
}
|
|
1125
|
-
})), right ? /*#__PURE__*/jsx(RightInputContainer, {
|
|
1126
|
-
children: right
|
|
1127
|
-
}) : null]
|
|
1128
|
-
});
|
|
1129
|
-
});
|
|
1810
|
+
return /*#__PURE__*/jsx(Pressable, _objectSpread$c({}, props));
|
|
1811
|
+
}
|
|
1130
1812
|
|
|
1131
1813
|
var _excluded$8 = ["isPasswordDefaultVisible", "right"];
|
|
1132
1814
|
|
|
1133
|
-
function ownKeys$
|
|
1815
|
+
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; }
|
|
1134
1816
|
|
|
1135
|
-
function _objectSpread$
|
|
1817
|
+
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; }
|
|
1136
1818
|
function InputPassword(_ref) {
|
|
1137
1819
|
var isPasswordDefaultVisible = _ref.isPasswordDefaultVisible,
|
|
1138
1820
|
right = _ref.right,
|
|
@@ -1143,7 +1825,7 @@ function InputPassword(_ref) {
|
|
|
1143
1825
|
isVisible = _useState2[0],
|
|
1144
1826
|
setIsVisible = _useState2[1];
|
|
1145
1827
|
|
|
1146
|
-
return /*#__PURE__*/jsx(InputText, _objectSpread$
|
|
1828
|
+
return /*#__PURE__*/jsx(InputText, _objectSpread$b(_objectSpread$b({}, props), {}, {
|
|
1147
1829
|
textContentType: "password",
|
|
1148
1830
|
autoCompleteType: "password",
|
|
1149
1831
|
autoCorrect: false,
|
|
@@ -1162,6 +1844,17 @@ function InputPassword(_ref) {
|
|
|
1162
1844
|
}));
|
|
1163
1845
|
}
|
|
1164
1846
|
|
|
1847
|
+
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; }
|
|
1848
|
+
|
|
1849
|
+
function _objectSpread$a(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$a(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$a(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1850
|
+
function InputPhone(props) {
|
|
1851
|
+
return /*#__PURE__*/jsx(InputText, _objectSpread$a(_objectSpread$a({}, props), {}, {
|
|
1852
|
+
autoCompleteType: "tel",
|
|
1853
|
+
keyboardType: "number-pad",
|
|
1854
|
+
textContentType: "telephoneNumber"
|
|
1855
|
+
}));
|
|
1856
|
+
}
|
|
1857
|
+
|
|
1165
1858
|
function Label(_ref) {
|
|
1166
1859
|
var htmlFor = _ref.htmlFor,
|
|
1167
1860
|
children = _ref.children;
|
|
@@ -1177,7 +1870,7 @@ function Label(_ref) {
|
|
|
1177
1870
|
var OuterRadio = /*#__PURE__*/styled$1(View).withConfig({
|
|
1178
1871
|
displayName: "Radio__OuterRadio",
|
|
1179
1872
|
componentId: "kitt-universal__sc-1mdgr2o-0"
|
|
1180
|
-
})(["background-color:", ";width:", "px;height:", "px;border-radius:", "px;border-width:", ";border-color:", ";"], function (_ref) {
|
|
1873
|
+
})(["background-color:", ";width:", "px;height:", "px;border-radius:", "px;border-width:", "px;border-color:", ";"], function (_ref) {
|
|
1181
1874
|
var theme = _ref.theme,
|
|
1182
1875
|
disabled = _ref.disabled;
|
|
1183
1876
|
return theme.kitt.forms.radio[disabled ? 'disabled' : 'unchecked'].backgroundColor;
|
|
@@ -1640,11 +2333,11 @@ var SideContainerView = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
1640
2333
|
})(["flex-direction:row;margin-left:", ";margin-right:", ";"], function (_ref) {
|
|
1641
2334
|
var theme = _ref.theme,
|
|
1642
2335
|
side = _ref.side;
|
|
1643
|
-
return side === 'right' ? theme.kitt.listItem.innerMargin : 0;
|
|
2336
|
+
return side === 'right' ? "".concat(theme.kitt.listItem.innerMargin, "px") : 0;
|
|
1644
2337
|
}, function (_ref2) {
|
|
1645
2338
|
var theme = _ref2.theme,
|
|
1646
2339
|
side = _ref2.side;
|
|
1647
|
-
return side === 'left' ? theme.kitt.listItem.innerMargin : 0;
|
|
2340
|
+
return side === 'left' ? "".concat(theme.kitt.listItem.innerMargin, "px") : 0;
|
|
1648
2341
|
}); // Handles the vertical alignment of the side elements of the list item
|
|
1649
2342
|
|
|
1650
2343
|
function ListItemSideContainer(_ref3) {
|
|
@@ -1697,15 +2390,15 @@ var ContainerView = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
1697
2390
|
var borderWidth = theme.kitt.listItem.borderWidth;
|
|
1698
2391
|
|
|
1699
2392
|
if (borders === 'top') {
|
|
1700
|
-
return "border-top-width: ".concat(borderWidth);
|
|
2393
|
+
return "border-top-width: ".concat(borderWidth, "px");
|
|
1701
2394
|
}
|
|
1702
2395
|
|
|
1703
2396
|
if (borders === 'bottom') {
|
|
1704
|
-
return "border-bottom-width: ".concat(borderWidth);
|
|
2397
|
+
return "border-bottom-width: ".concat(borderWidth, "px");
|
|
1705
2398
|
}
|
|
1706
2399
|
|
|
1707
2400
|
if (borders === 'both') {
|
|
1708
|
-
return "border-top-width:
|
|
2401
|
+
return css(["border-top-width:", "px;border-bottom-width:", "px;"], borderWidth, borderWidth);
|
|
1709
2402
|
}
|
|
1710
2403
|
|
|
1711
2404
|
return 'border: none';
|
|
@@ -2088,12 +2781,12 @@ var ModalView = /*#__PURE__*/styled$1(View).withConfig({
|
|
|
2088
2781
|
var ContentView = /*#__PURE__*/styled$1(View).withConfig({
|
|
2089
2782
|
displayName: "Modal__ContentView",
|
|
2090
2783
|
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) {
|
|
2784
|
+
})(["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
2785
|
var theme = _ref3.theme;
|
|
2093
2786
|
return theme.kitt.card.borderRadius;
|
|
2094
2787
|
}, function (_ref4) {
|
|
2095
2788
|
var theme = _ref4.theme;
|
|
2096
|
-
return theme.kitt.
|
|
2789
|
+
return theme.kitt.colors.uiBackgroundLight;
|
|
2097
2790
|
});
|
|
2098
2791
|
function Modal(_ref5) {
|
|
2099
2792
|
var visible = _ref5.visible,
|
|
@@ -2366,776 +3059,298 @@ function StoryTitleLevel3(_ref3) {
|
|
|
2366
3059
|
return /*#__PURE__*/jsx(StorySubTitleContainer, {
|
|
2367
3060
|
children: /*#__PURE__*/jsx(Typography.Header3, {
|
|
2368
3061
|
variant: "bold",
|
|
2369
|
-
base: "header3",
|
|
2370
|
-
medium: "header4",
|
|
2371
|
-
color: useStoryBlockColor(color),
|
|
2372
|
-
numberOfLines: numberOfLines,
|
|
2373
|
-
children: children
|
|
2374
|
-
})
|
|
2375
|
-
});
|
|
2376
|
-
}
|
|
2377
|
-
|
|
2378
|
-
StoryTitleLevel3.displayName = 'StoryTitle.Level3';
|
|
2379
|
-
|
|
2380
|
-
function StoryTitleLevel4(_ref4) {
|
|
2381
|
-
var color = _ref4.color,
|
|
2382
|
-
children = _ref4.children,
|
|
2383
|
-
numberOfLines = _ref4.numberOfLines;
|
|
2384
|
-
return /*#__PURE__*/jsx(StorySubTitleContainer, {
|
|
2385
|
-
children: /*#__PURE__*/jsx(Typography.Header4, {
|
|
2386
|
-
variant: "bold",
|
|
2387
|
-
base: "header4",
|
|
2388
|
-
medium: "header5",
|
|
2389
|
-
color: useStoryBlockColor(color),
|
|
2390
|
-
numberOfLines: numberOfLines,
|
|
2391
|
-
children: children
|
|
2392
|
-
})
|
|
2393
|
-
});
|
|
2394
|
-
}
|
|
2395
|
-
|
|
2396
|
-
StoryTitleLevel4.displayName = 'StoryTitle.Level3';
|
|
2397
|
-
StoryTitle.Level2 = StoryTitleLevel2;
|
|
2398
|
-
StoryTitle.Level3 = StoryTitleLevel3;
|
|
2399
|
-
StoryTitle.Level4 = StoryTitleLevel4;
|
|
2400
|
-
|
|
2401
|
-
var StoryContainer$1 = /*#__PURE__*/styled$1(ScrollView).withConfig({
|
|
2402
|
-
displayName: "Story__StoryContainer",
|
|
2403
|
-
componentId: "kitt-universal__sc-1kwdg2p-0"
|
|
2404
|
-
})(["padding:", "px;"], storyPadding);
|
|
2405
|
-
function Story(_ref) {
|
|
2406
|
-
var title = _ref.title,
|
|
2407
|
-
contentContainerStyle = _ref.contentContainerStyle,
|
|
2408
|
-
children = _ref.children;
|
|
2409
|
-
return /*#__PURE__*/jsxs(StoryContainer$1, {
|
|
2410
|
-
contentContainerStyle: contentContainerStyle,
|
|
2411
|
-
children: [/*#__PURE__*/jsx(StoryTitle, {
|
|
2412
|
-
children: title
|
|
2413
|
-
}), children]
|
|
2414
|
-
});
|
|
2415
|
-
}
|
|
2416
|
-
|
|
2417
|
-
var _excluded$2 = ["title", "children", "internalIsDemoSection"],
|
|
2418
|
-
_excluded2 = ["title", "children"],
|
|
2419
|
-
_excluded3 = ["title", "children"];
|
|
2420
|
-
|
|
2421
|
-
function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2422
|
-
|
|
2423
|
-
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2424
|
-
var StyledSection = /*#__PURE__*/styled$1(View).withConfig({
|
|
2425
|
-
displayName: "StorySection__StyledSection",
|
|
2426
|
-
componentId: "kitt-universal__sc-1b3liv5-0"
|
|
2427
|
-
})(["margin-bottom:32px;"]);
|
|
2428
|
-
function StorySection(_ref) {
|
|
2429
|
-
var title = _ref.title,
|
|
2430
|
-
children = _ref.children,
|
|
2431
|
-
internalIsDemoSection = _ref.internalIsDemoSection,
|
|
2432
|
-
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
2433
|
-
|
|
2434
|
-
if (title === 'Demo' && !internalIsDemoSection) throw new Error('Use StorySection.Demo instead');
|
|
2435
|
-
return /*#__PURE__*/jsxs(StyledSection, _objectSpread$2(_objectSpread$2({}, props), {}, {
|
|
2436
|
-
children: [/*#__PURE__*/jsx(StoryTitle.Level2, {
|
|
2437
|
-
children: title
|
|
2438
|
-
}), children]
|
|
2439
|
-
}));
|
|
2440
|
-
}
|
|
2441
|
-
var StyledSubSection = /*#__PURE__*/styled$1(View).withConfig({
|
|
2442
|
-
displayName: "StorySection__StyledSubSection",
|
|
2443
|
-
componentId: "kitt-universal__sc-1b3liv5-1"
|
|
2444
|
-
})(["margin-bottom:16px;"]);
|
|
2445
|
-
|
|
2446
|
-
function SubSection(_ref2) {
|
|
2447
|
-
var title = _ref2.title,
|
|
2448
|
-
children = _ref2.children,
|
|
2449
|
-
props = _objectWithoutProperties(_ref2, _excluded2);
|
|
2450
|
-
|
|
2451
|
-
return /*#__PURE__*/jsxs(StyledSubSection, _objectSpread$2(_objectSpread$2({}, props), {}, {
|
|
2452
|
-
children: [/*#__PURE__*/jsx(StoryTitle.Level3, {
|
|
2453
|
-
children: title
|
|
2454
|
-
}), children]
|
|
2455
|
-
}));
|
|
2456
|
-
}
|
|
2457
|
-
|
|
2458
|
-
var StyledBlockSection = /*#__PURE__*/styled$1(View).withConfig({
|
|
2459
|
-
displayName: "StorySection__StyledBlockSection",
|
|
2460
|
-
componentId: "kitt-universal__sc-1b3liv5-2"
|
|
2461
|
-
})(["margin-bottom:16px;"]);
|
|
2462
|
-
|
|
2463
|
-
function BlockSection(_ref3) {
|
|
2464
|
-
var title = _ref3.title,
|
|
2465
|
-
children = _ref3.children,
|
|
2466
|
-
props = _objectWithoutProperties(_ref3, _excluded3);
|
|
2467
|
-
|
|
2468
|
-
return /*#__PURE__*/jsxs(StyledBlockSection, _objectSpread$2(_objectSpread$2({}, props), {}, {
|
|
2469
|
-
children: [/*#__PURE__*/jsx(StoryTitle.Level4, {
|
|
2470
|
-
children: title
|
|
2471
|
-
}), children]
|
|
2472
|
-
}));
|
|
2473
|
-
}
|
|
2474
|
-
|
|
2475
|
-
var StyledDemoSection = /*#__PURE__*/styled$1(View).withConfig({
|
|
2476
|
-
displayName: "StorySection__StyledDemoSection",
|
|
2477
|
-
componentId: "kitt-universal__sc-1b3liv5-3"
|
|
2478
|
-
})(["margin-bottom:64px;"]);
|
|
2479
|
-
|
|
2480
|
-
function DemoSection(_ref4) {
|
|
2481
|
-
var children = _ref4.children;
|
|
2482
|
-
return /*#__PURE__*/jsx(StyledDemoSection, {
|
|
2483
|
-
children: /*#__PURE__*/jsx(StorySection, {
|
|
2484
|
-
internalIsDemoSection: true,
|
|
2485
|
-
title: "Demo",
|
|
2486
|
-
children: children
|
|
2487
|
-
})
|
|
2488
|
-
});
|
|
2489
|
-
}
|
|
2490
|
-
|
|
2491
|
-
StorySection.SubSection = SubSection;
|
|
2492
|
-
StorySection.BlockSection = BlockSection;
|
|
2493
|
-
/** @deprecated use StorySection.Demo instead */
|
|
2494
|
-
|
|
2495
|
-
StorySection.DemoSection = DemoSection;
|
|
2496
|
-
StorySection.Demo = DemoSection;
|
|
2497
|
-
/** @deprecated use StorySection instead */
|
|
2498
|
-
|
|
2499
|
-
var DeprecatedSection = StorySection;
|
|
2500
|
-
|
|
2501
|
-
function StoryContainer(_ref) {
|
|
2502
|
-
var children = _ref.children,
|
|
2503
|
-
state = _ref.state,
|
|
2504
|
-
title = _ref.title,
|
|
2505
|
-
platform = _ref.platform;
|
|
2506
|
-
if (platform === 'native') return null;
|
|
2507
|
-
return /*#__PURE__*/jsx(StorySection.BlockSection, {
|
|
2508
|
-
testID: state,
|
|
2509
|
-
title: title,
|
|
2510
|
-
children: /*#__PURE__*/jsx("div", {
|
|
2511
|
-
className: state ? "kitt-".concat(state) : undefined,
|
|
2512
|
-
children: children
|
|
2513
|
-
})
|
|
2514
|
-
});
|
|
2515
|
-
}
|
|
2516
|
-
|
|
2517
|
-
function StoryDecorator(storyFn, context) {
|
|
2518
|
-
return /*#__PURE__*/jsx(Story, {
|
|
2519
|
-
title: context.name,
|
|
2520
|
-
children: storyFn()
|
|
2521
|
-
});
|
|
2522
|
-
}
|
|
2523
|
-
|
|
2524
|
-
var SmallScreenRow = /*#__PURE__*/styled$1(View).withConfig({
|
|
2525
|
-
displayName: "StoryGrid__SmallScreenRow",
|
|
2526
|
-
componentId: "kitt-universal__sc-4z5new-0"
|
|
2527
|
-
})(["flex-direction:column;margin:0;"]);
|
|
2528
|
-
var SmallScreenCol = /*#__PURE__*/styled$1(View).withConfig({
|
|
2529
|
-
displayName: "StoryGrid__SmallScreenCol",
|
|
2530
|
-
componentId: "kitt-universal__sc-4z5new-1"
|
|
2531
|
-
})(["padding:8px 0 16px;"]);
|
|
2532
|
-
var FlexRow = /*#__PURE__*/styled$1(View).withConfig({
|
|
2533
|
-
displayName: "StoryGrid__FlexRow",
|
|
2534
|
-
componentId: "kitt-universal__sc-4z5new-2"
|
|
2535
|
-
})(["flex-direction:row;margin:0 -4px 16px;"]);
|
|
2536
|
-
var FlexCol = /*#__PURE__*/styled$1(View).withConfig({
|
|
2537
|
-
displayName: "StoryGrid__FlexCol",
|
|
2538
|
-
componentId: "kitt-universal__sc-4z5new-3"
|
|
2539
|
-
})(["flex-grow:1;flex-basis:0;margin:0 8px;"]);
|
|
2540
|
-
|
|
2541
|
-
function StoryGridRow(_ref) {
|
|
2542
|
-
var children = _ref.children,
|
|
2543
|
-
_ref$breakpoint = _ref.breakpoint,
|
|
2544
|
-
breakpoint = _ref$breakpoint === void 0 ? 'small' : _ref$breakpoint;
|
|
2545
|
-
|
|
2546
|
-
// eslint-disable-next-line unicorn/expiring-todo-comments
|
|
2547
|
-
// TODO use useBreakpoint instead
|
|
2548
|
-
var _useWindowDimensions = useWindowDimensions(),
|
|
2549
|
-
width = _useWindowDimensions.width;
|
|
2550
|
-
|
|
2551
|
-
var breakpointValue = breakpoint === 'small' ? 480 : 768;
|
|
2552
|
-
|
|
2553
|
-
if (width < breakpointValue) {
|
|
2554
|
-
return /*#__PURE__*/jsx(SmallScreenRow, {
|
|
2555
|
-
children: Children.map(children, function (child) {
|
|
2556
|
-
return /*#__PURE__*/jsx(SmallScreenCol, {
|
|
2557
|
-
children: child
|
|
2558
|
-
});
|
|
2559
|
-
})
|
|
2560
|
-
});
|
|
2561
|
-
}
|
|
2562
|
-
|
|
2563
|
-
return /*#__PURE__*/jsx(FlexRow, {
|
|
2564
|
-
children: Children.map(children, function (child) {
|
|
2565
|
-
return /*#__PURE__*/jsx(FlexCol, {
|
|
2566
|
-
children: child
|
|
2567
|
-
});
|
|
3062
|
+
base: "header3",
|
|
3063
|
+
medium: "header4",
|
|
3064
|
+
color: useStoryBlockColor(color),
|
|
3065
|
+
numberOfLines: numberOfLines,
|
|
3066
|
+
children: children
|
|
2568
3067
|
})
|
|
2569
3068
|
});
|
|
2570
3069
|
}
|
|
2571
3070
|
|
|
2572
|
-
|
|
2573
|
-
var title = _ref2.title,
|
|
2574
|
-
titleColor = _ref2.titleColor,
|
|
2575
|
-
children = _ref2.children,
|
|
2576
|
-
_ref2$platform = _ref2.platform,
|
|
2577
|
-
platform = _ref2$platform === void 0 ? 'all' : _ref2$platform;
|
|
3071
|
+
StoryTitleLevel3.displayName = 'StoryTitle.Level3';
|
|
2578
3072
|
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
3073
|
+
function StoryTitleLevel4(_ref4) {
|
|
3074
|
+
var color = _ref4.color,
|
|
3075
|
+
children = _ref4.children,
|
|
3076
|
+
numberOfLines = _ref4.numberOfLines;
|
|
3077
|
+
return /*#__PURE__*/jsx(StorySubTitleContainer, {
|
|
3078
|
+
children: /*#__PURE__*/jsx(Typography.Header4, {
|
|
3079
|
+
variant: "bold",
|
|
3080
|
+
base: "header4",
|
|
3081
|
+
medium: "header5",
|
|
3082
|
+
color: useStoryBlockColor(color),
|
|
3083
|
+
numberOfLines: numberOfLines,
|
|
3084
|
+
children: children
|
|
3085
|
+
})
|
|
3086
|
+
});
|
|
3087
|
+
}
|
|
2582
3088
|
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
3089
|
+
StoryTitleLevel4.displayName = 'StoryTitle.Level3';
|
|
3090
|
+
StoryTitle.Level2 = StoryTitleLevel2;
|
|
3091
|
+
StoryTitle.Level3 = StoryTitleLevel3;
|
|
3092
|
+
StoryTitle.Level4 = StoryTitleLevel4;
|
|
3093
|
+
|
|
3094
|
+
var StoryContainer$1 = /*#__PURE__*/styled$1(ScrollView).withConfig({
|
|
3095
|
+
displayName: "Story__StoryContainer",
|
|
3096
|
+
componentId: "kitt-universal__sc-1kwdg2p-0"
|
|
3097
|
+
})(["padding:", "px;"], storyPadding);
|
|
3098
|
+
function Story(_ref) {
|
|
3099
|
+
var title = _ref.title,
|
|
3100
|
+
contentContainerStyle = _ref.contentContainerStyle,
|
|
3101
|
+
children = _ref.children;
|
|
3102
|
+
return /*#__PURE__*/jsxs(StoryContainer$1, {
|
|
3103
|
+
contentContainerStyle: contentContainerStyle,
|
|
3104
|
+
children: [/*#__PURE__*/jsx(StoryTitle, {
|
|
2587
3105
|
children: title
|
|
2588
|
-
})
|
|
3106
|
+
}), children]
|
|
2589
3107
|
});
|
|
2590
3108
|
}
|
|
2591
3109
|
|
|
2592
|
-
var
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
};
|
|
2596
|
-
|
|
2597
|
-
var Container = /*#__PURE__*/styled$1(View).withConfig({
|
|
2598
|
-
displayName: "Tag__Container",
|
|
2599
|
-
componentId: "kitt-universal__sc-19jmowi-0"
|
|
2600
|
-
})(["background-color:", ";border-width:", ";border-color:", ";padding:", ";border-radius:", ";align-self:flex-start;"], function (_ref) {
|
|
2601
|
-
var theme = _ref.theme,
|
|
2602
|
-
type = _ref.type,
|
|
2603
|
-
variant = _ref.variant;
|
|
2604
|
-
return theme.kitt.tag[type][variant].backgroundColor;
|
|
2605
|
-
}, function (_ref2) {
|
|
2606
|
-
var theme = _ref2.theme,
|
|
2607
|
-
type = _ref2.type,
|
|
2608
|
-
variant = _ref2.variant;
|
|
2609
|
-
return theme.kitt.tag[type][variant].borderWidth;
|
|
2610
|
-
}, function (_ref3) {
|
|
2611
|
-
var theme = _ref3.theme,
|
|
2612
|
-
type = _ref3.type,
|
|
2613
|
-
variant = _ref3.variant;
|
|
2614
|
-
return theme.kitt.tag[type][variant].borderColor;
|
|
2615
|
-
}, function (_ref4) {
|
|
2616
|
-
var theme = _ref4.theme;
|
|
2617
|
-
return theme.kitt.tag.padding;
|
|
2618
|
-
}, function (_ref5) {
|
|
2619
|
-
var theme = _ref5.theme;
|
|
2620
|
-
return theme.kitt.tag.borderRadius;
|
|
2621
|
-
});
|
|
2622
|
-
var getLabelColor = function (type, variant) {
|
|
2623
|
-
switch (type) {
|
|
2624
|
-
case 'danger':
|
|
2625
|
-
{
|
|
2626
|
-
return variant === 'outline' ? 'danger' : 'black';
|
|
2627
|
-
}
|
|
3110
|
+
var _excluded$2 = ["title", "children", "internalIsDemoSection"],
|
|
3111
|
+
_excluded2 = ["title", "children"],
|
|
3112
|
+
_excluded3 = ["title", "children"];
|
|
2628
3113
|
|
|
2629
|
-
|
|
2630
|
-
{
|
|
2631
|
-
return 'primary';
|
|
2632
|
-
}
|
|
3114
|
+
function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2633
3115
|
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
3116
|
+
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3117
|
+
var StyledSection = /*#__PURE__*/styled$1(View).withConfig({
|
|
3118
|
+
displayName: "StorySection__StyledSection",
|
|
3119
|
+
componentId: "kitt-universal__sc-1b3liv5-0"
|
|
3120
|
+
})(["margin-bottom:32px;"]);
|
|
3121
|
+
function StorySection(_ref) {
|
|
3122
|
+
var title = _ref.title,
|
|
3123
|
+
children = _ref.children,
|
|
3124
|
+
internalIsDemoSection = _ref.internalIsDemoSection,
|
|
3125
|
+
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
2638
3126
|
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
};
|
|
2645
|
-
function Tag(_ref6) {
|
|
2646
|
-
var label = _ref6.label,
|
|
2647
|
-
_ref6$type = _ref6.type,
|
|
2648
|
-
type = _ref6$type === void 0 ? 'default' : _ref6$type,
|
|
2649
|
-
_ref6$variant = _ref6.variant,
|
|
2650
|
-
variant = _ref6$variant === void 0 ? 'fill' : _ref6$variant;
|
|
2651
|
-
return /*#__PURE__*/jsx(Container, {
|
|
2652
|
-
type: type,
|
|
2653
|
-
variant: variant,
|
|
2654
|
-
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
2655
|
-
base: "body-xsmall",
|
|
2656
|
-
color: getLabelColor(type, variant),
|
|
2657
|
-
children: label
|
|
2658
|
-
})
|
|
2659
|
-
});
|
|
3127
|
+
if (title === 'Demo' && !internalIsDemoSection) throw new Error('Use StorySection.Demo instead');
|
|
3128
|
+
return /*#__PURE__*/jsxs(StyledSection, _objectSpread$2(_objectSpread$2({}, props), {}, {
|
|
3129
|
+
children: [/*#__PURE__*/jsx(StoryTitle.Level2, {
|
|
3130
|
+
children: title
|
|
3131
|
+
}), children]
|
|
3132
|
+
}));
|
|
2660
3133
|
}
|
|
3134
|
+
var StyledSubSection = /*#__PURE__*/styled$1(View).withConfig({
|
|
3135
|
+
displayName: "StorySection__StyledSubSection",
|
|
3136
|
+
componentId: "kitt-universal__sc-1b3liv5-1"
|
|
3137
|
+
})(["margin-bottom:16px;"]);
|
|
2661
3138
|
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
lateOceanLight3: '#D6BAF9',
|
|
2667
|
-
warmEmbrace: '#F4D3CE',
|
|
2668
|
-
warmEmbraceLight1: '#FFEDE6',
|
|
2669
|
-
black1000: '#000000',
|
|
2670
|
-
black555: '#737373',
|
|
2671
|
-
black200: '#CCCCCC',
|
|
2672
|
-
black100: '#E5E5E5',
|
|
2673
|
-
black50: '#F2F2F2',
|
|
2674
|
-
black25: '#F9F9F9',
|
|
2675
|
-
white: '#FFFFFF',
|
|
2676
|
-
viride: '#38836D',
|
|
2677
|
-
englishVermillon: '#D44148',
|
|
2678
|
-
goldCrayola: '#F8C583',
|
|
2679
|
-
aero: '#89BDDD',
|
|
2680
|
-
transparent: 'transparent',
|
|
2681
|
-
moonPurple: '#DBD6F9',
|
|
2682
|
-
moonPurpleLight1: '#EDEBFC'
|
|
2683
|
-
};
|
|
2684
|
-
|
|
2685
|
-
var colorsLateOceanTheme = {
|
|
2686
|
-
primary: lateOceanColorPalette.lateOcean,
|
|
2687
|
-
primaryLight: lateOceanColorPalette.lateOceanLight1,
|
|
2688
|
-
accent: lateOceanColorPalette.warmEmbrace,
|
|
2689
|
-
accentLight: lateOceanColorPalette.warmEmbraceLight1,
|
|
2690
|
-
success: lateOceanColorPalette.viride,
|
|
2691
|
-
correct: lateOceanColorPalette.viride,
|
|
2692
|
-
danger: lateOceanColorPalette.englishVermillon,
|
|
2693
|
-
info: lateOceanColorPalette.aero,
|
|
2694
|
-
warning: lateOceanColorPalette.goldCrayola,
|
|
2695
|
-
separator: lateOceanColorPalette.black100,
|
|
2696
|
-
hover: lateOceanColorPalette.black100,
|
|
2697
|
-
black: lateOceanColorPalette.black1000,
|
|
2698
|
-
uiBackground: lateOceanColorPalette.black25,
|
|
2699
|
-
uiBackgroundLight: lateOceanColorPalette.white,
|
|
2700
|
-
transparent: lateOceanColorPalette.transparent,
|
|
2701
|
-
disabled: lateOceanColorPalette.black50,
|
|
2702
|
-
overlay: {
|
|
2703
|
-
dark: 'rgba(41, 48, 51, 0.25)',
|
|
2704
|
-
light: 'rgba(255, 255, 255, 0.90)',
|
|
2705
|
-
fullscreenLoader: 'rgba(0, 0, 0, 0.25)'
|
|
2706
|
-
}
|
|
2707
|
-
};
|
|
3139
|
+
function SubSection(_ref2) {
|
|
3140
|
+
var title = _ref2.title,
|
|
3141
|
+
children = _ref2.children,
|
|
3142
|
+
props = _objectWithoutProperties(_ref2, _excluded2);
|
|
2708
3143
|
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
}
|
|
2714
|
-
|
|
2715
|
-
backgroundColor: lateOceanColorPalette.black100
|
|
2716
|
-
}
|
|
2717
|
-
};
|
|
3144
|
+
return /*#__PURE__*/jsxs(StyledSubSection, _objectSpread$2(_objectSpread$2({}, props), {}, {
|
|
3145
|
+
children: [/*#__PURE__*/jsx(StoryTitle.Level3, {
|
|
3146
|
+
children: title
|
|
3147
|
+
}), children]
|
|
3148
|
+
}));
|
|
3149
|
+
}
|
|
2718
3150
|
|
|
2719
|
-
var
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
focus: '3px'
|
|
2724
|
-
},
|
|
2725
|
-
minHeight: '40px',
|
|
2726
|
-
minWidth: '40px',
|
|
2727
|
-
maxWidth: '335px',
|
|
2728
|
-
scale: {
|
|
2729
|
-
base: {
|
|
2730
|
-
"default": 1,
|
|
2731
|
-
hover: 0.95,
|
|
2732
|
-
active: 0.95
|
|
2733
|
-
},
|
|
2734
|
-
medium: {
|
|
2735
|
-
hover: 1.05
|
|
2736
|
-
}
|
|
2737
|
-
},
|
|
2738
|
-
contentPadding: {
|
|
2739
|
-
"default": '8px 16px 7px',
|
|
2740
|
-
large: '12px 24px 11px',
|
|
2741
|
-
disabled: '6px 14px 5px'
|
|
2742
|
-
},
|
|
2743
|
-
transition: {
|
|
2744
|
-
duration: '200ms',
|
|
2745
|
-
timingFunction: 'cubic-bezier(0.645, 0.045, 0.355, 1)'
|
|
2746
|
-
},
|
|
2747
|
-
"default": {
|
|
2748
|
-
backgroundColor: 'rgba(0, 0, 0, 0.05)',
|
|
2749
|
-
pressedBackgroundColor: 'rgba(0, 0, 0, 0.1)',
|
|
2750
|
-
hoverBackgroundColor: 'rgba(0, 0, 0, 0.1)',
|
|
2751
|
-
focusBorderColor: 'rgba(0, 0, 0, 0.1)'
|
|
2752
|
-
},
|
|
2753
|
-
primary: {
|
|
2754
|
-
backgroundColor: colorsLateOceanTheme.primary,
|
|
2755
|
-
pressedBackgroundColor: colorsLateOceanTheme.primaryLight,
|
|
2756
|
-
hoverBackgroundColor: colorsLateOceanTheme.primaryLight,
|
|
2757
|
-
focusBorderColor: 'rgba(76, 52, 224, 0.2)'
|
|
2758
|
-
},
|
|
2759
|
-
white: {
|
|
2760
|
-
backgroundColor: 'rgba(255, 255, 255, 0.05)',
|
|
2761
|
-
pressedBackgroundColor: 'rgba(255, 255, 255, 0.1)',
|
|
2762
|
-
hoverBackgroundColor: 'rgba(255, 255, 255, 0.1)',
|
|
2763
|
-
focusBorderColor: 'rgba(255, 255, 255, 0.1)'
|
|
2764
|
-
},
|
|
2765
|
-
subtle: {
|
|
2766
|
-
backgroundColor: colorsLateOceanTheme.transparent,
|
|
2767
|
-
pressedBackgroundColor: colorsLateOceanTheme.transparent,
|
|
2768
|
-
hoverBackgroundColor: colorsLateOceanTheme.transparent,
|
|
2769
|
-
focusBorderColor: 'rgba(76, 52, 224, 0.2)',
|
|
2770
|
-
color: colorsLateOceanTheme.primary,
|
|
2771
|
-
hoverColor: 'rgba(76, 52, 224, 0.8)',
|
|
2772
|
-
activeColor: 'rgba(76, 52, 224, 0.8)'
|
|
2773
|
-
},
|
|
2774
|
-
'subtle-dark': {
|
|
2775
|
-
backgroundColor: colorsLateOceanTheme.transparent,
|
|
2776
|
-
pressedBackgroundColor: colorsLateOceanTheme.transparent,
|
|
2777
|
-
hoverBackgroundColor: colorsLateOceanTheme.transparent,
|
|
2778
|
-
focusBorderColor: 'rgba(0, 0, 0, 0.1)',
|
|
2779
|
-
color: colorsLateOceanTheme.black,
|
|
2780
|
-
hoverColor: 'rgba(0, 0, 0, 0.8)',
|
|
2781
|
-
activeColor: 'rgba(0, 0, 0, 0.8)'
|
|
2782
|
-
},
|
|
2783
|
-
disabled: {
|
|
2784
|
-
backgroundColor: colorsLateOceanTheme.disabled,
|
|
2785
|
-
pressedBackgroundColor: colorsLateOceanTheme.disabled,
|
|
2786
|
-
hoverBackgroundColor: colorsLateOceanTheme.disabled,
|
|
2787
|
-
focusBorderColor: lateOceanColorPalette.black100,
|
|
2788
|
-
borderColor: lateOceanColorPalette.black100
|
|
2789
|
-
}
|
|
2790
|
-
};
|
|
3151
|
+
var StyledBlockSection = /*#__PURE__*/styled$1(View).withConfig({
|
|
3152
|
+
displayName: "StorySection__StyledBlockSection",
|
|
3153
|
+
componentId: "kitt-universal__sc-1b3liv5-2"
|
|
3154
|
+
})(["margin-bottom:16px;"]);
|
|
2791
3155
|
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
primary: {
|
|
2797
|
-
backgroundColor: lateOceanColorPalette.white,
|
|
2798
|
-
borderColor: lateOceanColorPalette.lateOcean
|
|
2799
|
-
},
|
|
2800
|
-
secondary: {
|
|
2801
|
-
backgroundColor: lateOceanColorPalette.white,
|
|
2802
|
-
borderColor: lateOceanColorPalette.black100
|
|
2803
|
-
},
|
|
2804
|
-
subtle: {
|
|
2805
|
-
backgroundColor: lateOceanColorPalette.black50,
|
|
2806
|
-
borderColor: lateOceanColorPalette.black100
|
|
2807
|
-
}
|
|
2808
|
-
};
|
|
3156
|
+
function BlockSection(_ref3) {
|
|
3157
|
+
var title = _ref3.title,
|
|
3158
|
+
children = _ref3.children,
|
|
3159
|
+
props = _objectWithoutProperties(_ref3, _excluded3);
|
|
2809
3160
|
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
},
|
|
2817
|
-
info: {
|
|
2818
|
-
backgroundColor: colorsLateOceanTheme.info
|
|
2819
|
-
},
|
|
2820
|
-
warning: {
|
|
2821
|
-
backgroundColor: colorsLateOceanTheme.warning
|
|
2822
|
-
}
|
|
2823
|
-
};
|
|
3161
|
+
return /*#__PURE__*/jsxs(StyledBlockSection, _objectSpread$2(_objectSpread$2({}, props), {}, {
|
|
3162
|
+
children: [/*#__PURE__*/jsx(StoryTitle.Level4, {
|
|
3163
|
+
children: title
|
|
3164
|
+
}), children]
|
|
3165
|
+
}));
|
|
3166
|
+
}
|
|
2824
3167
|
|
|
2825
|
-
var
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
return {
|
|
2830
|
-
baseAndSmall: {
|
|
2831
|
-
fontSize: "".concat(baseAndSmallFontSize, "px"),
|
|
2832
|
-
lineHeight: "".concat(calcLineHeight(baseAndSmallFontSize, lineHeightMultiplier), "px")
|
|
2833
|
-
},
|
|
2834
|
-
mediumAndWide: {
|
|
2835
|
-
fontSize: "".concat(mediumAndWideFontSize, "px"),
|
|
2836
|
-
lineHeight: "".concat(calcLineHeight(mediumAndWideFontSize, lineHeightMultiplier), "px")
|
|
2837
|
-
}
|
|
2838
|
-
};
|
|
2839
|
-
};
|
|
2840
|
-
var typographyLateOceanTheme = {
|
|
2841
|
-
colors: {
|
|
2842
|
-
black: lateOceanColorPalette.black1000,
|
|
2843
|
-
'black-light': lateOceanColorPalette.black555,
|
|
2844
|
-
white: lateOceanColorPalette.white,
|
|
2845
|
-
'white-light': lateOceanColorPalette.white,
|
|
2846
|
-
primary: lateOceanColorPalette.lateOcean,
|
|
2847
|
-
'primary-light': lateOceanColorPalette.lateOceanLight1,
|
|
2848
|
-
accent: lateOceanColorPalette.warmEmbrace,
|
|
2849
|
-
success: lateOceanColorPalette.viride,
|
|
2850
|
-
danger: lateOceanColorPalette.englishVermillon
|
|
2851
|
-
},
|
|
2852
|
-
types: {
|
|
2853
|
-
headers: {
|
|
2854
|
-
fontFamily: {
|
|
2855
|
-
regular: 'Moderat',
|
|
2856
|
-
bold: 'Moderat'
|
|
2857
|
-
},
|
|
2858
|
-
fontWeight: 400,
|
|
2859
|
-
fontStyle: 'normal',
|
|
2860
|
-
configs: {
|
|
2861
|
-
// also known as xxlarge
|
|
2862
|
-
header1: createTypographyTypeConfig(1.3, 38, 62),
|
|
2863
|
-
// also known as xlarge
|
|
2864
|
-
header2: createTypographyTypeConfig(1.3, 32, 48),
|
|
2865
|
-
// also known as medium
|
|
2866
|
-
header3: createTypographyTypeConfig(1.3, 24, 36),
|
|
2867
|
-
// also known as xsmall
|
|
2868
|
-
header4: createTypographyTypeConfig(1.3, 18, 24),
|
|
2869
|
-
// also known as xxsmall
|
|
2870
|
-
header5: createTypographyTypeConfig(1.3, 18, 18)
|
|
2871
|
-
}
|
|
2872
|
-
},
|
|
2873
|
-
bodies: {
|
|
2874
|
-
fontFamily: {
|
|
2875
|
-
regular: 'Noto Sans',
|
|
2876
|
-
bold: 'Noto Sans'
|
|
2877
|
-
},
|
|
2878
|
-
fontWeight: {
|
|
2879
|
-
regular: 400,
|
|
2880
|
-
bold: 700
|
|
2881
|
-
},
|
|
2882
|
-
fontStyle: {
|
|
2883
|
-
regular: 'normal',
|
|
2884
|
-
bold: 'normal'
|
|
2885
|
-
},
|
|
2886
|
-
configs: {
|
|
2887
|
-
'body-large': createTypographyTypeConfig(1.6, 18, 24),
|
|
2888
|
-
'body-medium': createTypographyTypeConfig(1.6, 18, 18),
|
|
2889
|
-
body: createTypographyTypeConfig(1.6, 16, 16),
|
|
2890
|
-
'body-small': createTypographyTypeConfig(1.6, 14, 14),
|
|
2891
|
-
'body-xsmall': createTypographyTypeConfig(1.6, 12, 12)
|
|
2892
|
-
}
|
|
2893
|
-
}
|
|
2894
|
-
},
|
|
2895
|
-
link: {
|
|
2896
|
-
disabledColor: lateOceanColorPalette.black200
|
|
2897
|
-
}
|
|
2898
|
-
};
|
|
3168
|
+
var StyledDemoSection = /*#__PURE__*/styled$1(View).withConfig({
|
|
3169
|
+
displayName: "StorySection__StyledDemoSection",
|
|
3170
|
+
componentId: "kitt-universal__sc-1b3liv5-3"
|
|
3171
|
+
})(["margin-bottom:64px;"]);
|
|
2899
3172
|
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
},
|
|
2911
|
-
valid: {
|
|
2912
|
-
backgroundColor: colorsLateOceanTheme.uiBackgroundLight,
|
|
2913
|
-
borderColor: lateOceanColorPalette.black100,
|
|
2914
|
-
color: 'black'
|
|
2915
|
-
},
|
|
2916
|
-
hover: {
|
|
2917
|
-
borderColor: lateOceanColorPalette.black200,
|
|
2918
|
-
color: 'black'
|
|
2919
|
-
},
|
|
2920
|
-
focus: {
|
|
2921
|
-
borderColor: colorsLateOceanTheme.primary,
|
|
2922
|
-
color: 'black'
|
|
2923
|
-
},
|
|
2924
|
-
disabled: {
|
|
2925
|
-
backgroundColor: colorsLateOceanTheme.disabled,
|
|
2926
|
-
borderColor: colorsLateOceanTheme.separator,
|
|
2927
|
-
color: 'black-light'
|
|
2928
|
-
},
|
|
2929
|
-
invalid: {
|
|
2930
|
-
borderColor: colorsLateOceanTheme.separator,
|
|
2931
|
-
color: 'black'
|
|
2932
|
-
}
|
|
2933
|
-
};
|
|
2934
|
-
var input = {
|
|
2935
|
-
color: {
|
|
2936
|
-
selection: colorsLateOceanTheme.primary,
|
|
2937
|
-
placeholder: typographyLateOceanTheme.colors['black-light']
|
|
2938
|
-
},
|
|
2939
|
-
borderWidth: '2px',
|
|
2940
|
-
borderRadius: '10px',
|
|
2941
|
-
icon: {
|
|
2942
|
-
size: 20
|
|
2943
|
-
},
|
|
2944
|
-
padding: {
|
|
2945
|
-
"default": '7px 16px',
|
|
2946
|
-
iOSSingleLine: '12px 16px'
|
|
2947
|
-
},
|
|
2948
|
-
states: inputStatesStyle
|
|
2949
|
-
};
|
|
3173
|
+
function DemoSection(_ref4) {
|
|
3174
|
+
var children = _ref4.children;
|
|
3175
|
+
return /*#__PURE__*/jsx(StyledDemoSection, {
|
|
3176
|
+
children: /*#__PURE__*/jsx(StorySection, {
|
|
3177
|
+
internalIsDemoSection: true,
|
|
3178
|
+
title: "Demo",
|
|
3179
|
+
children: children
|
|
3180
|
+
})
|
|
3181
|
+
});
|
|
3182
|
+
}
|
|
2950
3183
|
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
};
|
|
3184
|
+
StorySection.SubSection = SubSection;
|
|
3185
|
+
StorySection.BlockSection = BlockSection;
|
|
3186
|
+
/** @deprecated use StorySection.Demo instead */
|
|
2955
3187
|
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
backgroundColor: lateOceanColorPalette.white,
|
|
2960
|
-
borderWidth: '2px',
|
|
2961
|
-
borderColor: lateOceanColorPalette.black200
|
|
2962
|
-
},
|
|
2963
|
-
checked: {
|
|
2964
|
-
backgroundColor: lateOceanColorPalette.lateOcean,
|
|
2965
|
-
innerSize: 5,
|
|
2966
|
-
innerBackgroundColor: lateOceanColorPalette.white
|
|
2967
|
-
},
|
|
2968
|
-
disabled: {
|
|
2969
|
-
backgroundColor: lateOceanColorPalette.black50,
|
|
2970
|
-
borderColor: lateOceanColorPalette.black100
|
|
2971
|
-
}
|
|
2972
|
-
};
|
|
3188
|
+
StorySection.DemoSection = DemoSection;
|
|
3189
|
+
StorySection.Demo = DemoSection;
|
|
3190
|
+
/** @deprecated use StorySection instead */
|
|
2973
3191
|
|
|
2974
|
-
var
|
|
2975
|
-
minHeight: 120
|
|
2976
|
-
};
|
|
3192
|
+
var DeprecatedSection = StorySection;
|
|
2977
3193
|
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
3194
|
+
function StoryContainer(_ref) {
|
|
3195
|
+
var children = _ref.children,
|
|
3196
|
+
state = _ref.state,
|
|
3197
|
+
title = _ref.title,
|
|
3198
|
+
platform = _ref.platform;
|
|
3199
|
+
if (platform === 'native') return null;
|
|
3200
|
+
return /*#__PURE__*/jsx(StorySection.BlockSection, {
|
|
3201
|
+
testID: state,
|
|
3202
|
+
title: title,
|
|
3203
|
+
children: /*#__PURE__*/jsx("div", {
|
|
3204
|
+
className: state ? "kitt-".concat(state) : undefined,
|
|
3205
|
+
children: children
|
|
3206
|
+
})
|
|
3207
|
+
});
|
|
3208
|
+
}
|
|
2984
3209
|
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
3210
|
+
function StoryDecorator(storyFn, context) {
|
|
3211
|
+
return /*#__PURE__*/jsx(Story, {
|
|
3212
|
+
title: context.name,
|
|
3213
|
+
children: storyFn()
|
|
3214
|
+
});
|
|
3215
|
+
}
|
|
3216
|
+
|
|
3217
|
+
var SmallScreenRow = /*#__PURE__*/styled$1(View).withConfig({
|
|
3218
|
+
displayName: "StoryGrid__SmallScreenRow",
|
|
3219
|
+
componentId: "kitt-universal__sc-4z5new-0"
|
|
3220
|
+
})(["flex-direction:column;margin:0;"]);
|
|
3221
|
+
var SmallScreenCol = /*#__PURE__*/styled$1(View).withConfig({
|
|
3222
|
+
displayName: "StoryGrid__SmallScreenCol",
|
|
3223
|
+
componentId: "kitt-universal__sc-4z5new-1"
|
|
3224
|
+
})(["padding:8px 0 16px;"]);
|
|
3225
|
+
var FlexRow = /*#__PURE__*/styled$1(View).withConfig({
|
|
3226
|
+
displayName: "StoryGrid__FlexRow",
|
|
3227
|
+
componentId: "kitt-universal__sc-4z5new-2"
|
|
3228
|
+
})(["flex-direction:row;margin:0 -4px 16px;"]);
|
|
3229
|
+
var FlexCol = /*#__PURE__*/styled$1(View).withConfig({
|
|
3230
|
+
displayName: "StoryGrid__FlexCol",
|
|
3231
|
+
componentId: "kitt-universal__sc-4z5new-3"
|
|
3232
|
+
})(["flex-grow:1;flex-basis:0;margin:0 8px;"]);
|
|
3233
|
+
|
|
3234
|
+
function StoryGridRow(_ref) {
|
|
3235
|
+
var children = _ref.children,
|
|
3236
|
+
_ref$breakpoint = _ref.breakpoint,
|
|
3237
|
+
breakpoint = _ref$breakpoint === void 0 ? 'small' : _ref$breakpoint;
|
|
3238
|
+
|
|
3239
|
+
// eslint-disable-next-line unicorn/expiring-todo-comments
|
|
3240
|
+
// TODO use useBreakpoint instead
|
|
3241
|
+
var _useWindowDimensions = useWindowDimensions(),
|
|
3242
|
+
width = _useWindowDimensions.width;
|
|
3243
|
+
|
|
3244
|
+
var breakpointValue = breakpoint === 'small' ? 480 : 768;
|
|
3245
|
+
|
|
3246
|
+
if (width < breakpointValue) {
|
|
3247
|
+
return /*#__PURE__*/jsx(SmallScreenRow, {
|
|
3248
|
+
children: Children.map(children, function (child) {
|
|
3249
|
+
return /*#__PURE__*/jsx(SmallScreenCol, {
|
|
3250
|
+
children: child
|
|
3251
|
+
});
|
|
3252
|
+
})
|
|
3253
|
+
});
|
|
2990
3254
|
}
|
|
2991
|
-
};
|
|
2992
3255
|
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
medium: {
|
|
3012
|
-
hover: 1.05
|
|
3013
|
-
}
|
|
3014
|
-
},
|
|
3015
|
-
disabled: {
|
|
3016
|
-
scale: 1,
|
|
3017
|
-
backgroundColor: button.disabled.backgroundColor,
|
|
3018
|
-
borderColor: button.disabled.borderColor
|
|
3019
|
-
},
|
|
3020
|
-
"default": {
|
|
3021
|
-
pressedBackgroundColor: button["default"].pressedBackgroundColor
|
|
3022
|
-
},
|
|
3023
|
-
white: {
|
|
3024
|
-
pressedBackgroundColor: button.white.hoverBackgroundColor
|
|
3256
|
+
return /*#__PURE__*/jsx(FlexRow, {
|
|
3257
|
+
children: Children.map(children, function (child) {
|
|
3258
|
+
return /*#__PURE__*/jsx(FlexCol, {
|
|
3259
|
+
children: child
|
|
3260
|
+
});
|
|
3261
|
+
})
|
|
3262
|
+
});
|
|
3263
|
+
}
|
|
3264
|
+
|
|
3265
|
+
function StoryGridCol(_ref2) {
|
|
3266
|
+
var title = _ref2.title,
|
|
3267
|
+
titleColor = _ref2.titleColor,
|
|
3268
|
+
children = _ref2.children,
|
|
3269
|
+
_ref2$platform = _ref2.platform,
|
|
3270
|
+
platform = _ref2$platform === void 0 ? 'all' : _ref2$platform;
|
|
3271
|
+
|
|
3272
|
+
if (platform === 'native') {
|
|
3273
|
+
return null;
|
|
3025
3274
|
}
|
|
3026
|
-
};
|
|
3027
3275
|
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
}
|
|
3276
|
+
return /*#__PURE__*/jsxs(Fragment$1, {
|
|
3277
|
+
children: [title ? /*#__PURE__*/jsx(StoryTitle.Level4, {
|
|
3278
|
+
numberOfLines: 1,
|
|
3279
|
+
color: titleColor,
|
|
3280
|
+
children: title
|
|
3281
|
+
}) : null, children]
|
|
3282
|
+
});
|
|
3283
|
+
}
|
|
3034
3284
|
|
|
3035
|
-
var
|
|
3036
|
-
|
|
3285
|
+
var StoryGrid = {
|
|
3286
|
+
Row: StoryGridRow,
|
|
3287
|
+
Col: StoryGridCol
|
|
3037
3288
|
};
|
|
3038
3289
|
|
|
3039
|
-
var
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3290
|
+
var Container = /*#__PURE__*/styled$1(View).withConfig({
|
|
3291
|
+
displayName: "Tag__Container",
|
|
3292
|
+
componentId: "kitt-universal__sc-19jmowi-0"
|
|
3293
|
+
})(["background-color:", ";border-width:", "px;border-color:", ";padding:", ";border-radius:", "px;align-self:flex-start;"], function (_ref) {
|
|
3294
|
+
var theme = _ref.theme,
|
|
3295
|
+
type = _ref.type,
|
|
3296
|
+
variant = _ref.variant;
|
|
3297
|
+
return theme.kitt.tag[type][variant].backgroundColor;
|
|
3298
|
+
}, function (_ref2) {
|
|
3299
|
+
var theme = _ref2.theme,
|
|
3300
|
+
type = _ref2.type,
|
|
3301
|
+
variant = _ref2.variant;
|
|
3302
|
+
return theme.kitt.tag[type][variant].borderWidth;
|
|
3303
|
+
}, function (_ref3) {
|
|
3304
|
+
var theme = _ref3.theme,
|
|
3305
|
+
type = _ref3.type,
|
|
3306
|
+
variant = _ref3.variant;
|
|
3307
|
+
return theme.kitt.tag[type][variant].borderColor;
|
|
3308
|
+
}, function (_ref4) {
|
|
3309
|
+
var theme = _ref4.theme;
|
|
3310
|
+
return theme.kitt.tag.padding;
|
|
3311
|
+
}, function (_ref5) {
|
|
3312
|
+
var theme = _ref5.theme;
|
|
3313
|
+
return theme.kitt.tag.borderRadius;
|
|
3314
|
+
});
|
|
3315
|
+
var getLabelColor = function (type, variant) {
|
|
3316
|
+
switch (type) {
|
|
3317
|
+
case 'danger':
|
|
3318
|
+
{
|
|
3319
|
+
return variant === 'outline' ? 'danger' : 'black';
|
|
3320
|
+
}
|
|
3044
3321
|
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
fill: {
|
|
3050
|
-
backgroundColor: lateOceanColorPalette.moonPurpleLight1,
|
|
3051
|
-
borderWidth: '0',
|
|
3052
|
-
borderColor: lateOceanColorPalette.transparent
|
|
3053
|
-
},
|
|
3054
|
-
outline: {
|
|
3055
|
-
backgroundColor: lateOceanColorPalette.transparent,
|
|
3056
|
-
borderWidth: '1px',
|
|
3057
|
-
borderColor: lateOceanColorPalette.lateOcean
|
|
3058
|
-
}
|
|
3059
|
-
},
|
|
3060
|
-
"default": {
|
|
3061
|
-
fill: {
|
|
3062
|
-
backgroundColor: lateOceanColorPalette.black50,
|
|
3063
|
-
borderWidth: '0',
|
|
3064
|
-
borderColor: lateOceanColorPalette.transparent
|
|
3065
|
-
},
|
|
3066
|
-
outline: {
|
|
3067
|
-
backgroundColor: lateOceanColorPalette.transparent,
|
|
3068
|
-
borderWidth: '1px',
|
|
3069
|
-
borderColor: lateOceanColorPalette.black1000
|
|
3070
|
-
}
|
|
3071
|
-
},
|
|
3072
|
-
danger: {
|
|
3073
|
-
fill: {
|
|
3074
|
-
backgroundColor: lateOceanColorPalette.warmEmbrace,
|
|
3075
|
-
borderWidth: '0',
|
|
3076
|
-
borderColor: lateOceanColorPalette.transparent
|
|
3077
|
-
},
|
|
3078
|
-
outline: {
|
|
3079
|
-
backgroundColor: lateOceanColorPalette.transparent,
|
|
3080
|
-
borderWidth: '1px',
|
|
3081
|
-
borderColor: colorsLateOceanTheme.danger
|
|
3082
|
-
}
|
|
3083
|
-
}
|
|
3084
|
-
};
|
|
3322
|
+
case 'primary':
|
|
3323
|
+
{
|
|
3324
|
+
return 'primary';
|
|
3325
|
+
}
|
|
3085
3326
|
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
horizontalPadding: 16,
|
|
3091
|
-
verticalPadding: 4,
|
|
3092
|
-
floatingPadding: 8
|
|
3093
|
-
};
|
|
3327
|
+
case 'default':
|
|
3328
|
+
{
|
|
3329
|
+
return 'black';
|
|
3330
|
+
}
|
|
3094
3331
|
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
medium: 768,
|
|
3100
|
-
large: 1024,
|
|
3101
|
-
wide: 1280
|
|
3102
|
-
},
|
|
3103
|
-
min: {
|
|
3104
|
-
smallBreakpoint: 'min-width: 480px',
|
|
3105
|
-
mediumBreakpoint: 'min-width: 768px',
|
|
3106
|
-
largeBreakpoint: 'min-width: 1024px',
|
|
3107
|
-
wideBreakpoint: 'min-width: 1280px'
|
|
3108
|
-
},
|
|
3109
|
-
max: {
|
|
3110
|
-
smallBreakpoint: 'max-width: 479px',
|
|
3111
|
-
mediumBreakpoint: 'max-width: 767px',
|
|
3112
|
-
largeBreakpoint: 'max-width: 1023px',
|
|
3113
|
-
wideBreakpoint: 'max-width: 1279px'
|
|
3332
|
+
default:
|
|
3333
|
+
{
|
|
3334
|
+
return 'black';
|
|
3335
|
+
}
|
|
3114
3336
|
}
|
|
3115
|
-
}; // eslint-disable-next-line unicorn/expiring-todo-comments
|
|
3116
|
-
// TODO : seperate brand color usage definition from proper theme definition and add typings - https://ornikar.atlassian.net/browse/CME-156
|
|
3117
|
-
|
|
3118
|
-
var theme = {
|
|
3119
|
-
spacing: 4,
|
|
3120
|
-
colors: colorsLateOceanTheme,
|
|
3121
|
-
palettes: {
|
|
3122
|
-
lateOcean: lateOceanColorPalette
|
|
3123
|
-
},
|
|
3124
|
-
avatar: avatar,
|
|
3125
|
-
button: button,
|
|
3126
|
-
card: cardLateOceanTheme,
|
|
3127
|
-
feedbackMessage: feedbackMessage,
|
|
3128
|
-
forms: forms,
|
|
3129
|
-
typography: typographyLateOceanTheme,
|
|
3130
|
-
tag: tagLateOceanTheme,
|
|
3131
|
-
shadows: shadowsLateOceanTheme,
|
|
3132
|
-
fullScreenModal: fullScreenModalLateOceanTheme,
|
|
3133
|
-
iconButton: iconButton,
|
|
3134
|
-
listItem: listItemLateOceanTheme,
|
|
3135
|
-
tooltip: tooltip,
|
|
3136
|
-
skeleton: skeletonTheme,
|
|
3137
|
-
breakpoints: breakpoints
|
|
3138
3337
|
};
|
|
3338
|
+
function Tag(_ref6) {
|
|
3339
|
+
var label = _ref6.label,
|
|
3340
|
+
_ref6$type = _ref6.type,
|
|
3341
|
+
type = _ref6$type === void 0 ? 'default' : _ref6$type,
|
|
3342
|
+
_ref6$variant = _ref6.variant,
|
|
3343
|
+
variant = _ref6$variant === void 0 ? 'fill' : _ref6$variant;
|
|
3344
|
+
return /*#__PURE__*/jsx(Container, {
|
|
3345
|
+
type: type,
|
|
3346
|
+
variant: variant,
|
|
3347
|
+
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
3348
|
+
base: "body-xsmall",
|
|
3349
|
+
color: getLabelColor(type, variant),
|
|
3350
|
+
children: label
|
|
3351
|
+
})
|
|
3352
|
+
});
|
|
3353
|
+
}
|
|
3139
3354
|
|
|
3140
3355
|
function TimePicker() {
|
|
3141
3356
|
return /*#__PURE__*/jsx(Typography.Text, {
|
|
@@ -3363,13 +3578,8 @@ function TypographyEmoji(_ref2) {
|
|
|
3363
3578
|
var typeConfig = getTypographyTypeConfig(typeForCurrentWindowSize || 'body', theme);
|
|
3364
3579
|
var typeConfigKey = getTypographyTypeConfigKey(theme);
|
|
3365
3580
|
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
3581
|
return /*#__PURE__*/jsx(StyledTypographyEmoji, {
|
|
3372
|
-
size:
|
|
3582
|
+
size: fontSize,
|
|
3373
3583
|
emoji: emoji
|
|
3374
3584
|
});
|
|
3375
3585
|
}
|
|
@@ -3435,79 +3645,6 @@ function TypographyLink(_ref5) {
|
|
|
3435
3645
|
}));
|
|
3436
3646
|
}
|
|
3437
3647
|
|
|
3438
|
-
function matchWindowSize(_ref, _ref2) {
|
|
3439
|
-
var width = _ref.width,
|
|
3440
|
-
height = _ref.height;
|
|
3441
|
-
var minWidth = _ref2.minWidth,
|
|
3442
|
-
maxWidth = _ref2.maxWidth,
|
|
3443
|
-
minHeight = _ref2.minHeight,
|
|
3444
|
-
maxHeight = _ref2.maxHeight;
|
|
3445
|
-
var hasWidthMatched = width ? (!minWidth || width >= minWidth) && (!maxWidth || width <= maxWidth) : true;
|
|
3446
|
-
var hasHeightMatched = height ? (!minHeight || height >= minHeight) && (!maxHeight || height <= maxHeight) : true;
|
|
3447
|
-
return hasWidthMatched && hasHeightMatched;
|
|
3448
|
-
}
|
|
3449
|
-
function useMatchWindowSize(options) {
|
|
3450
|
-
var _useWindowDimensions = useWindowDimensions(),
|
|
3451
|
-
width = _useWindowDimensions.width,
|
|
3452
|
-
height = _useWindowDimensions.height;
|
|
3453
|
-
|
|
3454
|
-
return matchWindowSize({
|
|
3455
|
-
width: width,
|
|
3456
|
-
height: height
|
|
3457
|
-
}, options);
|
|
3458
|
-
}
|
|
3459
|
-
|
|
3460
|
-
function createWindowSizeHelper(dimensions) {
|
|
3461
|
-
return {
|
|
3462
|
-
matchWindowSize: function matchWindowSize$1(options) {
|
|
3463
|
-
return matchWindowSize(dimensions, options);
|
|
3464
|
-
},
|
|
3465
|
-
ifWindowSizeMatches: function ifWindowSizeMatches(options, valueIfTrue, valueIfFalse) {
|
|
3466
|
-
return matchWindowSize(dimensions, options) ? valueIfTrue : valueIfFalse;
|
|
3467
|
-
},
|
|
3468
|
-
mapWindowWidth: function mapWindowWidth() {
|
|
3469
|
-
for (var _len = arguments.length, widthList = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
3470
|
-
widthList[_key] = arguments[_key];
|
|
3471
|
-
}
|
|
3472
|
-
|
|
3473
|
-
if ((process.env.NODE_ENV !== "production")) {
|
|
3474
|
-
widthList.slice(1).forEach(function (_ref, index) {
|
|
3475
|
-
var _ref2 = _slicedToArray(_ref, 1),
|
|
3476
|
-
minWidth = _ref2[0];
|
|
3477
|
-
|
|
3478
|
-
var previousMinWidth = widthList[index][0];
|
|
3479
|
-
|
|
3480
|
-
if (previousMinWidth > minWidth) {
|
|
3481
|
-
throw new Error("mapWindowWidth: sort your values to be mobile first. ".concat(minWidth, " is < ").concat(previousMinWidth, ", so ").concat(minWidth, " should be before ").concat(previousMinWidth, "."));
|
|
3482
|
-
}
|
|
3483
|
-
});
|
|
3484
|
-
}
|
|
3485
|
-
|
|
3486
|
-
var found = widthList.find(function (_ref3) {
|
|
3487
|
-
var _ref4 = _slicedToArray(_ref3, 2),
|
|
3488
|
-
minWidth = _ref4[0];
|
|
3489
|
-
_ref4[1];
|
|
3490
|
-
|
|
3491
|
-
return matchWindowSize(dimensions, {
|
|
3492
|
-
minWidth: Number(minWidth)
|
|
3493
|
-
});
|
|
3494
|
-
});
|
|
3495
|
-
if (!found) return null;
|
|
3496
|
-
return found[1];
|
|
3497
|
-
}
|
|
3498
|
-
};
|
|
3499
|
-
}
|
|
3500
|
-
|
|
3501
|
-
function useKittTheme() {
|
|
3502
|
-
var dimensions = useWindowDimensions();
|
|
3503
|
-
return useMemo(function () {
|
|
3504
|
-
return {
|
|
3505
|
-
kitt: theme,
|
|
3506
|
-
responsive: createWindowSizeHelper(dimensions)
|
|
3507
|
-
};
|
|
3508
|
-
}, [dimensions]);
|
|
3509
|
-
}
|
|
3510
|
-
|
|
3511
3648
|
var hex2rgba = function (hex) {
|
|
3512
3649
|
var alpha = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
3513
3650
|
var r = parseInt(hex.slice(1, 3), 16);
|
|
@@ -3543,10 +3680,8 @@ function MatchWindowSize(_ref) {
|
|
|
3543
3680
|
|
|
3544
3681
|
var match = useMatchWindowSize(matchWindowSizeOptions);
|
|
3545
3682
|
if (!match) return null;
|
|
3546
|
-
return
|
|
3547
|
-
children: children
|
|
3548
|
-
});
|
|
3683
|
+
return children;
|
|
3549
3684
|
}
|
|
3550
3685
|
|
|
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 };
|
|
3686
|
+
export { Avatar, Button, Card, Checkbox, Emoji, ExternalLink, Flex, FullScreenModal, Icon, IconButton, InputEmail, InputFeedback, InputField, InputIcon, InputPassword, InputPhone, 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
3687
|
//# sourceMappingURL=index-browser-all.es.web.js.map
|