@ornikar/kitt-universal 2.4.0 → 3.0.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/Avatar/Avatar.d.ts.map +1 -1
- package/dist/definitions/Button/Button.d.ts +4 -4
- package/dist/definitions/Button/Button.d.ts.map +1 -1
- package/dist/definitions/Button/ButtonContent.d.ts.map +1 -1
- package/dist/definitions/Button/ButtonPressable.d.ts +4 -3
- package/dist/definitions/Button/ButtonPressable.d.ts.map +1 -1
- package/dist/definitions/Card/Card.d.ts.map +1 -1
- package/dist/definitions/Emoji/Emoji.d.ts +3 -3
- package/dist/definitions/Emoji/Emoji.d.ts.map +1 -1
- package/dist/definitions/ExternalLink/ExternalLink.d.ts +3 -3
- package/dist/definitions/ExternalLink/ExternalLink.d.ts.map +1 -1
- package/dist/definitions/ExternalLink/ExternalLink.web.d.ts.map +1 -1
- package/dist/definitions/FullScreenModal/Body.d.ts.map +1 -1
- package/dist/definitions/FullScreenModal/FullScreenModal.d.ts.map +1 -1
- package/dist/definitions/FullScreenModal/Header.d.ts.map +1 -1
- package/dist/definitions/Icon/Icon.d.ts.map +1 -1
- package/dist/definitions/Icon/SpinningIcon.web.d.ts +3 -2
- package/dist/definitions/Icon/SpinningIcon.web.d.ts.map +1 -1
- package/dist/definitions/IconButton/IconButton.d.ts.map +1 -1
- package/dist/definitions/IconButton/PressableAnimatedContainer.d.ts.map +1 -1
- package/dist/definitions/IconButton/PressableAnimatedContainer.web.d.ts.map +1 -1
- package/dist/definitions/IconButton/PressableIconButton.d.ts +4 -4
- package/dist/definitions/IconButton/PressableIconButton.d.ts.map +1 -1
- package/dist/definitions/ListItem/ListItem.d.ts +3 -4
- package/dist/definitions/ListItem/ListItem.d.ts.map +1 -1
- package/dist/definitions/ListItem/ListItemContent.d.ts +2 -2
- package/dist/definitions/ListItem/ListItemContent.d.ts.map +1 -1
- package/dist/definitions/ListItem/ListItemSideContent.d.ts +3 -4
- package/dist/definitions/ListItem/ListItemSideContent.d.ts.map +1 -1
- package/dist/definitions/Loader/LargeLoader.d.ts.map +1 -1
- package/dist/definitions/Loader/LargeLoader.web.d.ts.map +1 -1
- package/dist/definitions/Loader/Loader.d.ts.map +1 -1
- package/dist/definitions/Loader/Loader.web.d.ts.map +1 -1
- package/dist/definitions/Message/Message.d.ts.map +1 -1
- package/dist/definitions/Modal/Body.d.ts.map +1 -1
- package/dist/definitions/Modal/Footer.d.ts.map +1 -1
- package/dist/definitions/Modal/Header.d.ts.map +1 -1
- package/dist/definitions/Modal/Modal.d.ts.map +1 -1
- package/dist/definitions/Notification/Notification.d.ts.map +1 -1
- package/dist/definitions/Overlay/Overlay.d.ts +2 -2
- package/dist/definitions/Overlay/Overlay.d.ts.map +1 -1
- package/dist/definitions/Tag/Tag.d.ts.map +1 -1
- package/dist/definitions/TimePicker/ModalDateTimePicker.d.ts +12 -0
- package/dist/definitions/TimePicker/ModalDateTimePicker.d.ts.map +1 -0
- package/dist/definitions/TimePicker/TimePicker.d.ts +15 -0
- package/dist/definitions/TimePicker/TimePicker.d.ts.map +1 -0
- package/dist/definitions/TimePicker/TimePicker.web.d.ts +3 -0
- package/dist/definitions/TimePicker/TimePicker.web.d.ts.map +1 -0
- package/dist/definitions/TimePicker/useTimePicker.d.ts +14 -0
- package/dist/definitions/TimePicker/useTimePicker.d.ts.map +1 -0
- package/dist/definitions/Tooltip/Tooltip.d.ts +23 -3
- package/dist/definitions/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/definitions/Tooltip/Tooltip.web.d.ts +8 -0
- package/dist/definitions/Tooltip/Tooltip.web.d.ts.map +1 -0
- package/dist/definitions/Tooltip/TooltipView.d.ts +8 -0
- package/dist/definitions/Tooltip/TooltipView.d.ts.map +1 -0
- package/dist/definitions/Tooltip/tooltipUtils.d.ts +5 -0
- package/dist/definitions/Tooltip/tooltipUtils.d.ts.map +1 -0
- package/dist/definitions/forms/InputFeedback/InputFeedback.d.ts.map +1 -1
- package/dist/definitions/forms/InputField/InputField.d.ts.map +1 -1
- package/dist/definitions/forms/InputText/InputText.d.ts +3 -2
- package/dist/definitions/forms/InputText/InputText.d.ts.map +1 -1
- package/dist/definitions/forms/Label/Label.d.ts.map +1 -1
- package/dist/definitions/forms/Radio/Radio.d.ts.map +1 -1
- package/dist/definitions/forms/TextArea/TextArea.d.ts.map +1 -1
- package/dist/definitions/index.d.ts +3 -15
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/definitions/story-components/Flex.d.ts +2 -2
- package/dist/definitions/story-components/Flex.d.ts.map +1 -1
- package/dist/definitions/story-components/Story.d.ts.map +1 -1
- package/dist/definitions/story-components/StoryBlock.d.ts +1 -2
- package/dist/definitions/story-components/StoryBlock.d.ts.map +1 -1
- package/dist/definitions/story-components/StoryContainer.d.ts.map +1 -1
- package/dist/definitions/story-components/StoryContainer.web.d.ts.map +1 -1
- package/dist/definitions/story-components/StoryDecorator.d.ts.map +1 -1
- package/dist/definitions/story-components/StoryGrid.d.ts.map +1 -1
- package/dist/definitions/story-components/StorySection.d.ts +7 -9
- package/dist/definitions/story-components/StorySection.d.ts.map +1 -1
- package/dist/definitions/story-components/StoryTitle.d.ts.map +1 -1
- package/dist/definitions/themes/default.d.ts +3 -6
- package/dist/definitions/themes/default.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/colorsLateOceanTheme.d.ts +1 -0
- package/dist/definitions/themes/late-ocean/colorsLateOceanTheme.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/tooltip.d.ts +10 -0
- package/dist/definitions/themes/late-ocean/tooltip.d.ts.map +1 -0
- package/dist/definitions/themes/late-ocean/typographyLateOceanTheme.d.ts +6 -8
- package/dist/definitions/themes/late-ocean/typographyLateOceanTheme.d.ts.map +1 -1
- package/dist/definitions/typography/Typography.d.ts +16 -4
- package/dist/definitions/typography/Typography.d.ts.map +1 -1
- package/dist/definitions/typography/TypographyEmoji.d.ts +3 -4
- package/dist/definitions/typography/TypographyEmoji.d.ts.map +1 -1
- package/dist/definitions/typography/TypographyIcon.d.ts.map +1 -1
- package/dist/definitions/typography/TypographyLink.d.ts +6 -9
- package/dist/definitions/typography/TypographyLink.d.ts.map +1 -1
- package/dist/definitions/useKittTheme.d.ts +8 -1
- package/dist/definitions/useKittTheme.d.ts.map +1 -1
- package/dist/definitions/utils/StyleWebWrapper.d.ts +7 -0
- package/dist/definitions/utils/StyleWebWrapper.d.ts.map +1 -0
- package/dist/definitions/utils/storybook/{decorators/KittThemeDecorator.d.ts → KittThemeDecorator.d.ts} +1 -1
- package/dist/definitions/utils/storybook/KittThemeDecorator.d.ts.map +1 -0
- package/dist/definitions/utils/tests/renderWithProvidersUtils.d.ts +2 -2
- package/dist/definitions/utils/tests/renderWithProvidersUtils.d.ts.map +1 -1
- package/dist/definitions/utils/tests/styled-component-typing-test.d.ts +1 -0
- package/dist/definitions/utils/tests/styled-component-typing-test.d.ts.map +1 -1
- package/dist/definitions/utils/windowSize/MatchWindowSize.d.ts.map +1 -1
- package/dist/definitions/utils/windowSize/createWindowSizeHelper.d.ts +2 -2
- package/dist/definitions/utils/withTheme.d.ts +7 -0
- package/dist/definitions/utils/withTheme.d.ts.map +1 -0
- package/dist/index-browser-all.es.android.js +1299 -622
- package/dist/index-browser-all.es.android.js.map +1 -1
- package/dist/index-browser-all.es.css +2 -0
- package/dist/index-browser-all.es.ios.js +1300 -623
- package/dist/index-browser-all.es.ios.js.map +1 -1
- package/dist/index-browser-all.es.js +1262 -696
- package/dist/index-browser-all.es.js.map +1 -1
- package/dist/index-browser-all.es.web.js +1113 -850
- package/dist/index-browser-all.es.web.js.map +1 -1
- package/dist/index-node-14.17.cjs.css +2 -0
- package/dist/index-node-14.17.cjs.js +1112 -619
- package/dist/index-node-14.17.cjs.js.map +1 -1
- package/dist/index-node-14.17.cjs.web.css +4 -0
- package/dist/index-node-14.17.cjs.web.js +2979 -0
- package/dist/index-node-14.17.cjs.web.js.map +1 -0
- package/dist/styles.css +4 -0
- package/dist/tsbuildinfo +1 -1
- package/package.json +16 -6
- package/translations/es-ES.json +3 -0
- package/translations/fr-FR.json +3 -0
- package/dist/definitions/primitives/PrimitiveImage.d.ts +0 -13
- package/dist/definitions/primitives/PrimitiveImage.d.ts.map +0 -1
- package/dist/definitions/primitives/PrimitiveImage.web.d.ts +0 -4
- package/dist/definitions/primitives/PrimitiveImage.web.d.ts.map +0 -1
- package/dist/definitions/primitives/PrimitiveLink.d.ts +0 -13
- package/dist/definitions/primitives/PrimitiveLink.d.ts.map +0 -1
- package/dist/definitions/primitives/PrimitiveLink.web.d.ts +0 -4
- package/dist/definitions/primitives/PrimitiveLink.web.d.ts.map +0 -1
- package/dist/definitions/primitives/PrimitivePressable.d.ts +0 -19
- package/dist/definitions/primitives/PrimitivePressable.d.ts.map +0 -1
- package/dist/definitions/primitives/PrimitivePressable.web.d.ts +0 -4
- package/dist/definitions/primitives/PrimitivePressable.web.d.ts.map +0 -1
- package/dist/definitions/primitives/PrimitiveScrollView.d.ts +0 -8
- package/dist/definitions/primitives/PrimitiveScrollView.d.ts.map +0 -1
- package/dist/definitions/primitives/PrimitiveScrollView.web.d.ts +0 -4
- package/dist/definitions/primitives/PrimitiveScrollView.web.d.ts.map +0 -1
- package/dist/definitions/primitives/PrimitiveText.d.ts +0 -14
- package/dist/definitions/primitives/PrimitiveText.d.ts.map +0 -1
- package/dist/definitions/primitives/PrimitiveText.web.d.ts +0 -6
- package/dist/definitions/primitives/PrimitiveText.web.d.ts.map +0 -1
- package/dist/definitions/primitives/PrimitiveView.d.ts +0 -24
- package/dist/definitions/primitives/PrimitiveView.d.ts.map +0 -1
- package/dist/definitions/primitives/PrimitiveView.web.d.ts +0 -27
- package/dist/definitions/primitives/PrimitiveView.web.d.ts.map +0 -1
- package/dist/definitions/primitives/helpers.d.ts +0 -7
- package/dist/definitions/primitives/helpers.d.ts.map +0 -1
- package/dist/definitions/primitives/reset.d.ts +0 -2
- package/dist/definitions/primitives/reset.d.ts.map +0 -1
- package/dist/definitions/utils/storybook/decorators/KittThemeDecorator.d.ts.map +0 -1
- package/dist/definitions/utils/storybook/decorators/SafeAreaProviderDecorator.d.ts +0 -2
- package/dist/definitions/utils/storybook/decorators/SafeAreaProviderDecorator.d.ts.map +0 -1
- package/dist/definitions/utils/storybook/setup-global-decorators.d.ts +0 -2
- package/dist/definitions/utils/storybook/setup-global-decorators.d.ts.map +0 -1
|
@@ -1,161 +1,56 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
|
+
import { View, Text as Text$1, useWindowDimensions, Image, Pressable, TextInput, TouchableOpacity, StyleSheet, ScrollView, Modal as Modal$1 } from 'react-native';
|
|
4
|
+
export { useWindowDimensions as useWindowSize } from 'react-native';
|
|
3
5
|
import { UserIcon, EyeIcon, EyeOffIcon, LoaderIcon, XIcon, InfoIcon, AlertTriangleIcon, CheckIcon, AlertCircleIcon } from '@ornikar/kitt-icons';
|
|
4
6
|
export * from '@ornikar/kitt-icons';
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
import
|
|
7
|
+
import styled$1, { useTheme, css, ThemeProvider } from 'styled-components/native';
|
|
8
|
+
import { cloneElement, useContext, createContext, useState, useMemo, forwardRef, Fragment, Children, useEffect } from 'react';
|
|
9
|
+
import { styled } from '@linaria/react';
|
|
10
|
+
import { jsx, jsxs, Fragment as Fragment$1 } from 'react/jsx-runtime';
|
|
9
11
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
10
12
|
import { parse } from 'twemoji-parser';
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
+
import _extends from '@babel/runtime/helpers/extends';
|
|
14
|
+
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
15
|
+
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
16
|
+
import { useFloating, offset, shift, flip, getScrollParents } from '@floating-ui/react-dom';
|
|
13
17
|
import { makeDecorator } from '@storybook/addons';
|
|
14
18
|
|
|
15
|
-
var
|
|
16
|
-
|
|
17
|
-
var
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
Component = "h".concat(accessibilityLevel); // eslint-disable-next-line no-param-reassign
|
|
36
|
-
|
|
37
|
-
accessibilityRole = undefined; // eslint-disable-next-line no-param-reassign
|
|
38
|
-
|
|
39
|
-
accessibilityLevel = undefined;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
var element = /*#__PURE__*/React.createElement(Component, {
|
|
43
|
-
ref: ref,
|
|
44
|
-
className: className,
|
|
45
|
-
role: accessibilityRole ? mapAccessibilityRoleToAriaRole[accessibilityRole] : undefined,
|
|
46
|
-
"aria-roledescription": accessibilityRoleDescription,
|
|
47
|
-
"aria-level": accessibilityLevel
|
|
48
|
-
}, children);
|
|
49
|
-
return hasTextAncestor ? element : /*#__PURE__*/React.createElement(PrimitiveTextAncestorContext.Provider, {
|
|
50
|
-
value: true
|
|
51
|
-
}, element);
|
|
52
|
-
});
|
|
53
|
-
var textResetMixin = /*#__PURE__*/css(["", " display:inline;white-space:pre-wrap;word-wrap:break-word;color:inherit;font:inherit;"], resetMixin);
|
|
54
|
-
var PrimitiveText = /*#__PURE__*/styled(PrimitiveTextWithClassName).withConfig({
|
|
55
|
-
displayName: "PrimitiveTextweb__PrimitiveText",
|
|
56
|
-
componentId: "kitt-universal__sc-8bfguf-0"
|
|
57
|
-
})(["", " ", ";", ""], textResetMixin, function (_ref2) {
|
|
58
|
-
var selectable = _ref2.selectable;
|
|
59
|
-
return selectable == null ? undefined : "user-select: ".concat(selectable ? 'text' : 'none');
|
|
60
|
-
}, function (_ref3) {
|
|
61
|
-
var numberOfLines = _ref3.numberOfLines;
|
|
62
|
-
return numberOfLines ? "\n display: -webkit-box;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n -webkit-line-clamp: ".concat(numberOfLines, ";\n -webkit-box-orient: vertical;\n line-clamp: ").concat(numberOfLines, ";\n ") : '';
|
|
63
|
-
});
|
|
64
|
-
|
|
65
|
-
function createPressClickHandler(onPress) {
|
|
66
|
-
if (!onPress) return undefined;
|
|
67
|
-
return function (event) {
|
|
68
|
-
event.stopPropagation();
|
|
69
|
-
onPress(event);
|
|
19
|
+
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; }
|
|
20
|
+
|
|
21
|
+
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; }
|
|
22
|
+
// type $Without<T, K extends keyof any> = T extends any ? Pick<T, Exclude<keyof T, K>> : never;
|
|
23
|
+
// type $DeepPartial<T> = { [P in keyof T]?: $DeepPartial<T[P]> };
|
|
24
|
+
// export function withTheme<Props extends { theme: DefaultTheme }, C>(
|
|
25
|
+
// WrappedComponent: ComponentType<Props> & C,
|
|
26
|
+
// ): ComponentType<SetOptional<Props, 'theme'>> & hoistNonReactStatics.NonReactStatics<typeof WrappedComponent> {
|
|
27
|
+
// return function ThemedComponent(props) {
|
|
28
|
+
// const theme = useTheme();
|
|
29
|
+
// return (<WrappedComponent theme={theme} {...(props as any)} />) as any;
|
|
30
|
+
// };
|
|
31
|
+
// }
|
|
32
|
+
function withTheme( // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
33
|
+
WrappedComponent) {
|
|
34
|
+
return function (props) {
|
|
35
|
+
var theme = /*#__PURE__*/useTheme();
|
|
36
|
+
return /*#__PURE__*/jsx(WrappedComponent, _objectSpread$h({
|
|
37
|
+
theme: theme
|
|
38
|
+
}, props));
|
|
70
39
|
};
|
|
71
40
|
}
|
|
72
41
|
|
|
73
|
-
var
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
if (!onPress) return undefined;
|
|
83
|
-
return function (event) {
|
|
84
|
-
if (isValidKeyPress(event)) {
|
|
85
|
-
onPress(event);
|
|
86
|
-
}
|
|
87
|
-
};
|
|
42
|
+
var StyledSpinningIconContainer = withTheme( /*#__PURE__*/styled("div")({
|
|
43
|
+
name: "StyledSpinningIconContainer",
|
|
44
|
+
"class": "ssn8o83"
|
|
45
|
+
}));
|
|
46
|
+
function SpinningIcon(_ref) {
|
|
47
|
+
var children = _ref.children;
|
|
48
|
+
return /*#__PURE__*/jsx(StyledSpinningIconContainer, {
|
|
49
|
+
children: children
|
|
50
|
+
});
|
|
88
51
|
}
|
|
89
52
|
|
|
90
|
-
var
|
|
91
|
-
var StyledDiv = /*#__PURE__*/styled('div').withConfig({
|
|
92
|
-
displayName: "PrimitiveViewweb__StyledDiv",
|
|
93
|
-
componentId: "kitt-universal__sc-1t2oiuz-0"
|
|
94
|
-
})(["", " display:", ";"], resetPrimitiveViewMixin, function (_ref) {
|
|
95
|
-
var hasTextAncestor = _ref.hasTextAncestor;
|
|
96
|
-
return hasTextAncestor ? 'inline-flex' : 'flex';
|
|
97
|
-
});
|
|
98
|
-
var StyledAnchor = /*#__PURE__*/styled('a').withConfig({
|
|
99
|
-
displayName: "PrimitiveViewweb__StyledAnchor",
|
|
100
|
-
componentId: "kitt-universal__sc-1t2oiuz-1"
|
|
101
|
-
})(["", " display:", ";text-decoration:none;"], resetPrimitiveViewMixin, function (_ref2) {
|
|
102
|
-
var hasTextAncestor = _ref2.hasTextAncestor;
|
|
103
|
-
return hasTextAncestor ? 'inline-flex' : 'flex';
|
|
104
|
-
});
|
|
105
|
-
var PrimitiveView = /*#__PURE__*/forwardRef(function (_ref3, ref) {
|
|
106
|
-
var children = _ref3.children,
|
|
107
|
-
className = _ref3.className,
|
|
108
|
-
style = _ref3.style,
|
|
109
|
-
accessibilityRole = _ref3.accessibilityRole,
|
|
110
|
-
accessibilityLabel = _ref3.accessibilityLabel,
|
|
111
|
-
nativeID = _ref3.nativeID,
|
|
112
|
-
testID = _ref3.testID,
|
|
113
|
-
tabIndex = _ref3.tabIndex,
|
|
114
|
-
href = _ref3.href,
|
|
115
|
-
hrefAttrs = _ref3.hrefAttrs,
|
|
116
|
-
onPress = _ref3.onPress;
|
|
117
|
-
var hasTextAncestor = React.useContext(PrimitiveTextAncestorContext);
|
|
118
|
-
|
|
119
|
-
if (href != null) {
|
|
120
|
-
return /*#__PURE__*/React.createElement(StyledAnchor, _extends({
|
|
121
|
-
ref: ref,
|
|
122
|
-
hasTextAncestor: hasTextAncestor,
|
|
123
|
-
id: nativeID,
|
|
124
|
-
className: className,
|
|
125
|
-
style: style,
|
|
126
|
-
"data-testid": testID,
|
|
127
|
-
role: accessibilityRole,
|
|
128
|
-
"aria-label": accessibilityLabel,
|
|
129
|
-
tabIndex: tabIndex,
|
|
130
|
-
href: href
|
|
131
|
-
}, hrefAttrs, {
|
|
132
|
-
onClick: createPressClickHandler(onPress),
|
|
133
|
-
onKeyUp: createPressKeyUpHandler(onPress)
|
|
134
|
-
}), children);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
return /*#__PURE__*/React.createElement(StyledDiv, {
|
|
138
|
-
ref: ref,
|
|
139
|
-
hasTextAncestor: hasTextAncestor,
|
|
140
|
-
id: nativeID,
|
|
141
|
-
className: className,
|
|
142
|
-
style: style,
|
|
143
|
-
"data-testid": testID,
|
|
144
|
-
role: accessibilityRole,
|
|
145
|
-
"aria-label": accessibilityLabel,
|
|
146
|
-
tabIndex: tabIndex,
|
|
147
|
-
onClick: createPressClickHandler(onPress),
|
|
148
|
-
onKeyUp: createPressKeyUpHandler(onPress)
|
|
149
|
-
}, children);
|
|
150
|
-
});
|
|
151
|
-
|
|
152
|
-
var spin = /*#__PURE__*/keyframes(["0%{transform:rotate(-1deg);}100%{transform:rotate(359deg);}"]);
|
|
153
|
-
var SpinningIcon = /*#__PURE__*/styled(PrimitiveView).withConfig({
|
|
154
|
-
displayName: "SpinningIconweb__SpinningIcon",
|
|
155
|
-
componentId: "kitt-universal__sc-xgsnek-0"
|
|
156
|
-
})(["animation:", " 1.1s infinite linear;"], spin);
|
|
157
|
-
|
|
158
|
-
var IconContainer$2 = /*#__PURE__*/styled(PrimitiveView).withConfig({
|
|
53
|
+
var IconContainer$2 = /*#__PURE__*/styled$1(View).withConfig({
|
|
159
54
|
displayName: "Icon__IconContainer",
|
|
160
55
|
componentId: "kitt-universal__sc-usm0ol-0"
|
|
161
56
|
})(["color:", ";width:", "px;height:", "px;align-self:", ";"], function (_ref) {
|
|
@@ -179,91 +74,173 @@ function Icon(_ref5) {
|
|
|
179
74
|
spin = _ref5.spin,
|
|
180
75
|
align = _ref5.align,
|
|
181
76
|
color = _ref5.color;
|
|
182
|
-
var clonedIcon = /*#__PURE__*/
|
|
77
|
+
var clonedIcon = /*#__PURE__*/cloneElement(icon, {
|
|
183
78
|
color: color
|
|
184
79
|
});
|
|
185
|
-
return /*#__PURE__*/
|
|
80
|
+
return /*#__PURE__*/jsx(IconContainer$2, {
|
|
186
81
|
align: align,
|
|
187
82
|
size: size,
|
|
188
|
-
color: color
|
|
189
|
-
|
|
83
|
+
color: color,
|
|
84
|
+
children: spin ? /*#__PURE__*/jsx(SpinningIcon, {
|
|
85
|
+
children: clonedIcon
|
|
86
|
+
}) : clonedIcon
|
|
87
|
+
});
|
|
190
88
|
}
|
|
191
89
|
|
|
192
|
-
var
|
|
193
|
-
|
|
90
|
+
var KittBreakpoints = {
|
|
91
|
+
/**
|
|
92
|
+
* min-width: 0
|
|
93
|
+
*/
|
|
94
|
+
BASE: 0,
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* min-width: 480px
|
|
98
|
+
*/
|
|
99
|
+
SMALL: 480,
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* min-width: 768px
|
|
103
|
+
*/
|
|
104
|
+
MEDIUM: 768,
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* min-width: 1024px
|
|
108
|
+
*/
|
|
109
|
+
LARGE: 1024,
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* min-width: 1280px
|
|
113
|
+
*/
|
|
114
|
+
WIDE: 1280
|
|
115
|
+
};
|
|
116
|
+
var KittBreakpointsMax = {
|
|
117
|
+
/**
|
|
118
|
+
* max-width: 479px
|
|
119
|
+
*/
|
|
120
|
+
BASE: KittBreakpoints.SMALL - 1,
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* max-width: 767px
|
|
124
|
+
*/
|
|
125
|
+
SMALL: KittBreakpoints.MEDIUM - 1,
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* max-width: 1023px
|
|
129
|
+
*/
|
|
130
|
+
MEDIUM: KittBreakpoints.LARGE - 1,
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* max-width: 1279px
|
|
134
|
+
*/
|
|
135
|
+
LARGE: KittBreakpoints.WIDE - 1
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
var _excluded$c = ["accessibilityRole", "base", "small", "medium", "large", "variant", "color"];
|
|
139
|
+
|
|
140
|
+
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; }
|
|
141
|
+
|
|
142
|
+
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; }
|
|
143
|
+
var IsHeaderTypographyContext = /*#__PURE__*/createContext(undefined);
|
|
194
144
|
var TypographyColorContext = /*#__PURE__*/createContext('black');
|
|
195
145
|
function useTypographyColor() {
|
|
196
146
|
return useContext(TypographyColorContext);
|
|
197
147
|
}
|
|
198
|
-
var
|
|
148
|
+
var getTypographyTypeConfigKey = function (theme) {
|
|
149
|
+
var isMediumOrAbove = theme.responsive.matchWindowSize({
|
|
150
|
+
minWidth: KittBreakpoints.MEDIUM
|
|
151
|
+
});
|
|
152
|
+
return isMediumOrAbove ? 'mediumAndWide' : 'baseAndSmall';
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
var isTypeHeader = function (type) {
|
|
156
|
+
return type.startsWith('header');
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
var isTypographyHeader = function (type, typographyIsHeaderInContext) {
|
|
160
|
+
if (type) return isTypeHeader(type);
|
|
161
|
+
if (typographyIsHeaderInContext != null) return typographyIsHeaderInContext;
|
|
162
|
+
throw new Error('You must set a "base" prop or wrap this Typography in one that does.');
|
|
163
|
+
};
|
|
164
|
+
function getTypographyTypeConfig(type, theme) {
|
|
165
|
+
if (isTypographyHeader(type, undefined)) {
|
|
166
|
+
return theme.kitt.typography.types.headers.configs[type];
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
return theme.kitt.typography.types.bodies.configs[type];
|
|
170
|
+
}
|
|
171
|
+
var StyledTypography = /*#__PURE__*/styled$1(Text$1).withConfig({
|
|
199
172
|
displayName: "Typography__StyledTypography",
|
|
200
173
|
componentId: "kitt-universal__sc-1dz700q-0"
|
|
201
174
|
})(["", " ", ""], function (_ref) {
|
|
202
175
|
var theme = _ref.theme,
|
|
203
|
-
isHeader = _ref
|
|
204
|
-
|
|
205
|
-
variant = _ref
|
|
176
|
+
$isHeader = _ref.$isHeader,
|
|
177
|
+
$typeForCurrentWindowSize = _ref.$typeForCurrentWindowSize,
|
|
178
|
+
$variant = _ref.$variant;
|
|
206
179
|
var _theme$kitt$typograph = theme.kitt.typography.types,
|
|
207
180
|
headers = _theme$kitt$typograph.headers,
|
|
208
181
|
bodies = _theme$kitt$typograph.bodies;
|
|
209
|
-
|
|
182
|
+
var typeConfigKey = getTypographyTypeConfigKey(theme);
|
|
183
|
+
return "\n /* type */\n ".concat(!$typeForCurrentWindowSize ? '' : "\n font-family: ".concat($isHeader ? headers.fontFamily[$variant] : bodies.fontFamily[$variant], ";\n font-size: ").concat($isHeader ? headers.configs[$typeForCurrentWindowSize][typeConfigKey].fontSize : bodies.configs[$typeForCurrentWindowSize][typeConfigKey].fontSize, ";\n line-height: ").concat($isHeader ? headers.configs[$typeForCurrentWindowSize][typeConfigKey].lineHeight : bodies.configs[$typeForCurrentWindowSize][typeConfigKey].lineHeight, ";\n "), "\n\n /* variant */\n font-weight: ").concat($isHeader ? headers.fontWeight : bodies.fontWeight[$variant], ";\n font-style: ").concat($isHeader ? headers.fontStyle : bodies.fontStyle[$variant], ";\n ");
|
|
210
184
|
}, function (_ref2) {
|
|
211
185
|
var theme = _ref2.theme,
|
|
212
|
-
color = _ref2
|
|
213
|
-
return
|
|
186
|
+
$color = _ref2.$color;
|
|
187
|
+
return !$color ? '' : "\n color: ".concat(theme.kitt.typography.colors[$color], ";\n text-decoration-color: ").concat(theme.kitt.typography.colors[$color], ";\n ");
|
|
214
188
|
});
|
|
189
|
+
function useTypographyTypeForCurrentWindowSize(base, small, medium, large) {
|
|
190
|
+
var _useWindowDimensions = useWindowDimensions(),
|
|
191
|
+
width = _useWindowDimensions.width;
|
|
215
192
|
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
if (base) return isTypeHeader(base);
|
|
222
|
-
if (typeInContext) return isTypeHeader(typeInContext);
|
|
223
|
-
throw new Error('You must set a "base" prop or wrap this Typography in one that does.');
|
|
224
|
-
};
|
|
225
|
-
|
|
193
|
+
if (large && width >= KittBreakpoints.LARGE) return large;
|
|
194
|
+
if (medium && width >= KittBreakpoints.MEDIUM) return medium;
|
|
195
|
+
if (small && width >= KittBreakpoints.SMALL) return small;
|
|
196
|
+
return base;
|
|
197
|
+
}
|
|
226
198
|
function Typography(_ref3) {
|
|
227
199
|
var accessibilityRole = _ref3.accessibilityRole,
|
|
228
200
|
base = _ref3.base,
|
|
201
|
+
small = _ref3.small,
|
|
202
|
+
medium = _ref3.medium,
|
|
203
|
+
large = _ref3.large,
|
|
229
204
|
variant = _ref3.variant,
|
|
230
205
|
color = _ref3.color,
|
|
231
|
-
otherProps = _objectWithoutProperties(_ref3, _excluded$
|
|
232
|
-
|
|
233
|
-
var
|
|
234
|
-
var
|
|
235
|
-
var
|
|
236
|
-
var
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
value:
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
206
|
+
otherProps = _objectWithoutProperties(_ref3, _excluded$c);
|
|
207
|
+
|
|
208
|
+
var isHeaderTypographyInContext = useContext(IsHeaderTypographyContext);
|
|
209
|
+
var typeForCurrentWindowSize = useTypographyTypeForCurrentWindowSize(base, small, medium, large);
|
|
210
|
+
var isHeader = isTypographyHeader(typeForCurrentWindowSize, isHeaderTypographyInContext);
|
|
211
|
+
var nonNullableVariant = variant !== null && variant !== void 0 ? variant : isHeader ? 'bold' : 'regular'; // if isHeaderTypographyInContext exists, it means we are inside another typography so we don't want to
|
|
212
|
+
// redefine the color, just inherit from it
|
|
213
|
+
|
|
214
|
+
var colorWithDefaultToBlack = color !== null && color !== void 0 ? color : isHeaderTypographyInContext !== undefined ? undefined : 'black';
|
|
215
|
+
var content = base ? /*#__PURE__*/jsx(IsHeaderTypographyContext.Provider, {
|
|
216
|
+
value: isHeader,
|
|
217
|
+
children: /*#__PURE__*/jsx(StyledTypography, _objectSpread$g({
|
|
218
|
+
$color: colorWithDefaultToBlack,
|
|
219
|
+
$isHeader: isHeader,
|
|
220
|
+
$typeForCurrentWindowSize: typeForCurrentWindowSize,
|
|
221
|
+
$variant: nonNullableVariant,
|
|
222
|
+
accessibilityRole: accessibilityRole || undefined
|
|
223
|
+
}, otherProps))
|
|
224
|
+
}) : /*#__PURE__*/jsx(StyledTypography, _objectSpread$g({
|
|
225
|
+
$color: colorWithDefaultToBlack,
|
|
226
|
+
$isHeader: isHeader,
|
|
227
|
+
$variant: nonNullableVariant,
|
|
252
228
|
accessibilityRole: accessibilityRole || undefined
|
|
253
229
|
}, otherProps));
|
|
254
|
-
return color ? /*#__PURE__*/
|
|
255
|
-
value: color
|
|
256
|
-
|
|
230
|
+
return color ? /*#__PURE__*/jsx(TypographyColorContext.Provider, {
|
|
231
|
+
value: color,
|
|
232
|
+
children: content
|
|
233
|
+
}) : content;
|
|
257
234
|
}
|
|
258
235
|
|
|
259
236
|
function TypographyText(props) {
|
|
260
|
-
return /*#__PURE__*/
|
|
237
|
+
return /*#__PURE__*/jsx(Typography, _objectSpread$g({
|
|
261
238
|
accessibilityRole: null
|
|
262
239
|
}, props));
|
|
263
240
|
}
|
|
264
241
|
|
|
265
242
|
function TypographyParagraph(props) {
|
|
266
|
-
return /*#__PURE__*/
|
|
243
|
+
return /*#__PURE__*/jsx(Typography, _objectSpread$g({
|
|
267
244
|
accessibilityRole: "paragraph"
|
|
268
245
|
}, props));
|
|
269
246
|
}
|
|
@@ -271,10 +248,10 @@ function TypographyParagraph(props) {
|
|
|
271
248
|
var createHeading = function (level, defaultBase) {
|
|
272
249
|
// https://github.com/necolas/react-native-web/issues/401
|
|
273
250
|
function TypographyHeading(props) {
|
|
274
|
-
return /*#__PURE__*/
|
|
251
|
+
return /*#__PURE__*/jsx(Typography, _objectSpread$g(_objectSpread$g({
|
|
275
252
|
accessibilityRole: "header",
|
|
276
253
|
base: defaultBase
|
|
277
|
-
}, props, {
|
|
254
|
+
}, props), {}, {
|
|
278
255
|
accessibilityLevel: level
|
|
279
256
|
}));
|
|
280
257
|
}
|
|
@@ -307,7 +284,11 @@ Typography.h4 = createHeading(4, 'header4');
|
|
|
307
284
|
|
|
308
285
|
Typography.h5 = createHeading(5, 'header5');
|
|
309
286
|
|
|
310
|
-
var _excluded$
|
|
287
|
+
var _excluded$b = ["size"];
|
|
288
|
+
|
|
289
|
+
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; }
|
|
290
|
+
|
|
291
|
+
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; }
|
|
311
292
|
|
|
312
293
|
var getFirstCharacter = function (string) {
|
|
313
294
|
return string ? string[0] : '';
|
|
@@ -317,7 +298,7 @@ var getInitials = function (firstname, lastname) {
|
|
|
317
298
|
return (getFirstCharacter(firstname) + getFirstCharacter(lastname)).toUpperCase();
|
|
318
299
|
};
|
|
319
300
|
|
|
320
|
-
var StyledAvatarView = /*#__PURE__*/styled(
|
|
301
|
+
var StyledAvatarView = /*#__PURE__*/styled$1(View).withConfig({
|
|
321
302
|
displayName: "Avatar__StyledAvatarView",
|
|
322
303
|
componentId: "kitt-universal__sc-9miubv-0"
|
|
323
304
|
})(["border-radius:", "px;background-color:", ";height:", "px;width:", "px;overflow:hidden;align-items:center;justify-content:center;"], function (_ref) {
|
|
@@ -345,7 +326,7 @@ function AvatarContent(_ref5) {
|
|
|
345
326
|
light = _ref5.light;
|
|
346
327
|
|
|
347
328
|
if (src) {
|
|
348
|
-
return /*#__PURE__*/
|
|
329
|
+
return /*#__PURE__*/jsx(Image, {
|
|
349
330
|
source: {
|
|
350
331
|
uri: src
|
|
351
332
|
},
|
|
@@ -357,15 +338,16 @@ function AvatarContent(_ref5) {
|
|
|
357
338
|
}
|
|
358
339
|
|
|
359
340
|
if (firstname && lastname) {
|
|
360
|
-
return /*#__PURE__*/
|
|
341
|
+
return /*#__PURE__*/jsx(Typography.Text, {
|
|
361
342
|
base: "body-small",
|
|
362
343
|
variant: "bold",
|
|
363
|
-
color: light ? 'black' : 'white'
|
|
364
|
-
|
|
344
|
+
color: light ? 'black' : 'white',
|
|
345
|
+
children: getInitials(firstname, lastname)
|
|
346
|
+
});
|
|
365
347
|
}
|
|
366
348
|
|
|
367
|
-
return /*#__PURE__*/
|
|
368
|
-
icon: /*#__PURE__*/
|
|
349
|
+
return /*#__PURE__*/jsx(Icon, {
|
|
350
|
+
icon: /*#__PURE__*/jsx(UserIcon, {}),
|
|
369
351
|
color: light ? 'black' : 'white',
|
|
370
352
|
size: size / 2
|
|
371
353
|
});
|
|
@@ -374,32 +356,37 @@ function AvatarContent(_ref5) {
|
|
|
374
356
|
function Avatar(_ref6) {
|
|
375
357
|
var _ref6$size = _ref6.size,
|
|
376
358
|
size = _ref6$size === void 0 ? 40 : _ref6$size,
|
|
377
|
-
rest = _objectWithoutProperties(_ref6, _excluded$
|
|
359
|
+
rest = _objectWithoutProperties(_ref6, _excluded$b);
|
|
378
360
|
|
|
379
|
-
return /*#__PURE__*/
|
|
380
|
-
size: size
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
361
|
+
return /*#__PURE__*/jsx(StyledAvatarView, _objectSpread$f(_objectSpread$f({}, rest), {}, {
|
|
362
|
+
size: size,
|
|
363
|
+
children: /*#__PURE__*/jsx(AvatarContent, _objectSpread$f(_objectSpread$f({}, rest), {}, {
|
|
364
|
+
size: size
|
|
365
|
+
}))
|
|
366
|
+
}));
|
|
384
367
|
}
|
|
385
368
|
|
|
386
|
-
var _excluded$
|
|
369
|
+
var _excluded$a = ["color"],
|
|
387
370
|
_excluded2$2 = ["color"];
|
|
388
371
|
|
|
372
|
+
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; }
|
|
373
|
+
|
|
374
|
+
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; }
|
|
375
|
+
|
|
389
376
|
function TypographyIconInheritColor(props) {
|
|
390
377
|
var color = useTypographyColor();
|
|
391
378
|
var theme = /*#__PURE__*/useTheme();
|
|
392
|
-
return /*#__PURE__*/
|
|
379
|
+
return /*#__PURE__*/jsx(Icon, _objectSpread$e(_objectSpread$e({}, props), {}, {
|
|
393
380
|
color: theme.kitt.typography.colors[color]
|
|
394
381
|
}));
|
|
395
382
|
}
|
|
396
383
|
|
|
397
384
|
function TypographyIconSpecifiedColor(_ref) {
|
|
398
385
|
var color = _ref.color,
|
|
399
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
386
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$a);
|
|
400
387
|
|
|
401
388
|
var theme = /*#__PURE__*/useTheme();
|
|
402
|
-
return /*#__PURE__*/
|
|
389
|
+
return /*#__PURE__*/jsx(Icon, _objectSpread$e(_objectSpread$e({}, otherProps), {}, {
|
|
403
390
|
color: theme.kitt.typography.colors[color]
|
|
404
391
|
}));
|
|
405
392
|
}
|
|
@@ -409,14 +396,18 @@ function TypographyIcon(_ref2) {
|
|
|
409
396
|
otherProps = _objectWithoutProperties(_ref2, _excluded2$2);
|
|
410
397
|
|
|
411
398
|
if (color) {
|
|
412
|
-
return /*#__PURE__*/
|
|
399
|
+
return /*#__PURE__*/jsx(TypographyIconSpecifiedColor, _objectSpread$e({
|
|
413
400
|
color: color
|
|
414
401
|
}, otherProps));
|
|
415
402
|
}
|
|
416
403
|
|
|
417
|
-
return /*#__PURE__*/
|
|
404
|
+
return /*#__PURE__*/jsx(TypographyIconInheritColor, _objectSpread$e({}, otherProps));
|
|
418
405
|
}
|
|
419
406
|
|
|
407
|
+
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; }
|
|
408
|
+
|
|
409
|
+
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; }
|
|
410
|
+
|
|
420
411
|
var getTextColorByType = function (type, isPressed, disabled) {
|
|
421
412
|
if (disabled) return 'black-light';
|
|
422
413
|
|
|
@@ -436,11 +427,11 @@ var getTextColorByType = function (type, isPressed, disabled) {
|
|
|
436
427
|
}
|
|
437
428
|
};
|
|
438
429
|
|
|
439
|
-
var ButtonText = /*#__PURE__*/styled(Typography.Text).withConfig({
|
|
430
|
+
var ButtonText = /*#__PURE__*/styled$1(Typography.Text).withConfig({
|
|
440
431
|
displayName: "ButtonContent__ButtonText",
|
|
441
432
|
componentId: "kitt-universal__sc-dnyw3n-0"
|
|
442
433
|
})(["text-align:center;"]);
|
|
443
|
-
var Content$1 = /*#__PURE__*/styled(
|
|
434
|
+
var Content$1 = /*#__PURE__*/styled$1(View).withConfig({
|
|
444
435
|
displayName: "ButtonContent__Content",
|
|
445
436
|
componentId: "kitt-universal__sc-dnyw3n-1"
|
|
446
437
|
})(["flex-direction:row;align-items:center;justify-content:center;flex:", ";"], function (_ref) {
|
|
@@ -448,7 +439,7 @@ var Content$1 = /*#__PURE__*/styled(PrimitiveView).withConfig({
|
|
|
448
439
|
iconOnly = _ref.iconOnly;
|
|
449
440
|
return "".concat(stretch || iconOnly ? 1 : 0, " 1 auto");
|
|
450
441
|
});
|
|
451
|
-
var IconContainer$1 = /*#__PURE__*/styled(
|
|
442
|
+
var IconContainer$1 = /*#__PURE__*/styled$1(View).withConfig({
|
|
452
443
|
displayName: "ButtonContent__IconContainer",
|
|
453
444
|
componentId: "kitt-universal__sc-dnyw3n-2"
|
|
454
445
|
})(["", ""], function (_ref2) {
|
|
@@ -470,15 +461,16 @@ function ButtonIcon(_ref3) {
|
|
|
470
461
|
size = _ref3.size,
|
|
471
462
|
iconPosition = _ref3.iconPosition,
|
|
472
463
|
testID = _ref3.testID;
|
|
473
|
-
return /*#__PURE__*/
|
|
474
|
-
iconPosition: iconPosition
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
464
|
+
return /*#__PURE__*/jsx(IconContainer$1, {
|
|
465
|
+
iconPosition: iconPosition,
|
|
466
|
+
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
467
|
+
icon: icon,
|
|
468
|
+
spin: spin,
|
|
469
|
+
color: color,
|
|
470
|
+
size: size,
|
|
471
|
+
testID: testID
|
|
472
|
+
})
|
|
473
|
+
});
|
|
482
474
|
}
|
|
483
475
|
|
|
484
476
|
function ButtonContent(_ref4) {
|
|
@@ -505,85 +497,34 @@ function ButtonContent(_ref4) {
|
|
|
505
497
|
}
|
|
506
498
|
|
|
507
499
|
if (!children) {
|
|
508
|
-
return /*#__PURE__*/
|
|
500
|
+
return /*#__PURE__*/jsx(Content$1, {
|
|
509
501
|
iconOnly: true,
|
|
510
|
-
stretch: stretch
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
502
|
+
stretch: stretch,
|
|
503
|
+
children: /*#__PURE__*/jsx(TypographyIcon, _objectSpread$d(_objectSpread$d({}, sharedIconProps), {}, {
|
|
504
|
+
icon: icon
|
|
505
|
+
}))
|
|
506
|
+
});
|
|
514
507
|
}
|
|
515
508
|
|
|
516
|
-
return /*#__PURE__*/
|
|
517
|
-
stretch: stretch
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
icon
|
|
528
|
-
|
|
529
|
-
|
|
509
|
+
return /*#__PURE__*/jsxs(Content$1, {
|
|
510
|
+
stretch: stretch,
|
|
511
|
+
children: [icon && iconPosition === 'left' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread$d(_objectSpread$d({}, sharedIconProps), {}, {
|
|
512
|
+
icon: icon,
|
|
513
|
+
iconPosition: iconPosition,
|
|
514
|
+
testID: "button-left-icon"
|
|
515
|
+
})) : null, /*#__PURE__*/jsx(ButtonText, {
|
|
516
|
+
base: "body",
|
|
517
|
+
color: color,
|
|
518
|
+
variant: "bold",
|
|
519
|
+
children: children
|
|
520
|
+
}), icon && iconPosition === 'right' ? /*#__PURE__*/jsx(ButtonIcon, _objectSpread$d(_objectSpread$d({}, sharedIconProps), {}, {
|
|
521
|
+
icon: icon,
|
|
522
|
+
iconPosition: iconPosition
|
|
523
|
+
})) : null]
|
|
524
|
+
});
|
|
530
525
|
}
|
|
531
526
|
|
|
532
|
-
var
|
|
533
|
-
var focusable = _ref.focusable,
|
|
534
|
-
disabled = _ref.disabled;
|
|
535
|
-
if (disabled) return -1;
|
|
536
|
-
if (focusable === false) return -1;
|
|
537
|
-
return 0;
|
|
538
|
-
};
|
|
539
|
-
|
|
540
|
-
var handlePressPreventDefault = function (e) {
|
|
541
|
-
e.preventDefault();
|
|
542
|
-
};
|
|
543
|
-
|
|
544
|
-
var PrimitivePressableWithClassName = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
545
|
-
var disabled = _ref2.disabled,
|
|
546
|
-
focusable = _ref2.focusable,
|
|
547
|
-
children = _ref2.children,
|
|
548
|
-
className = _ref2.className,
|
|
549
|
-
accessibilityRole = _ref2.accessibilityRole,
|
|
550
|
-
accessibilityLabel = _ref2.accessibilityLabel,
|
|
551
|
-
nativeID = _ref2.nativeID,
|
|
552
|
-
testID = _ref2.testID,
|
|
553
|
-
href = _ref2.href,
|
|
554
|
-
hrefAttrs = _ref2.hrefAttrs,
|
|
555
|
-
onPress = _ref2.onPress;
|
|
556
|
-
return /*#__PURE__*/React.createElement(PrimitiveView, {
|
|
557
|
-
ref: ref,
|
|
558
|
-
nativeID: nativeID,
|
|
559
|
-
testID: testID,
|
|
560
|
-
className: className,
|
|
561
|
-
href: href,
|
|
562
|
-
hrefAttrs: hrefAttrs,
|
|
563
|
-
accessibilityRole: accessibilityRole,
|
|
564
|
-
accessibilityLabel: accessibilityLabel,
|
|
565
|
-
"aria-disabled": !!disabled
|
|
566
|
-
/* https://necolas.github.io/react-native-web/docs/accessibility/#keyboard-focus */
|
|
567
|
-
,
|
|
568
|
-
tabIndex: getTabIndex({
|
|
569
|
-
focusable: focusable,
|
|
570
|
-
disabled: disabled
|
|
571
|
-
}),
|
|
572
|
-
onPress: disabled ? handlePressPreventDefault : onPress
|
|
573
|
-
}, children);
|
|
574
|
-
});
|
|
575
|
-
var PrimitivePressable = /*#__PURE__*/styled(PrimitivePressableWithClassName).withConfig({
|
|
576
|
-
displayName: "PrimitivePressableweb__PrimitivePressable",
|
|
577
|
-
componentId: "kitt-universal__sc-1pzco2e-0"
|
|
578
|
-
})(["cursor:", ";touch-action:", ";"], function (_ref3) {
|
|
579
|
-
var disabled = _ref3.disabled;
|
|
580
|
-
return disabled ? 'not-allowed' : 'pointer';
|
|
581
|
-
}, function (_ref4) {
|
|
582
|
-
var disabled = _ref4.disabled;
|
|
583
|
-
return disabled ? 'none' : 'manipulation';
|
|
584
|
-
});
|
|
585
|
-
|
|
586
|
-
var ButtonPressable = /*#__PURE__*/styled(PrimitivePressable).withConfig({
|
|
527
|
+
var ButtonPressable = /*#__PURE__*/styled$1(Pressable).withConfig({
|
|
587
528
|
displayName: "ButtonPressable",
|
|
588
529
|
componentId: "kitt-universal__sc-7ckel6-0"
|
|
589
530
|
})(["min-width:", ";max-width:", ";width:", ";min-height:", ";background-color:", ";padding:", ";flex-direction:row;align-self:flex-start;border-radius:", ";border-color:", ";border-width:", ";"], function (_ref) {
|
|
@@ -626,6 +567,9 @@ var ButtonPressable = /*#__PURE__*/styled(PrimitivePressable).withConfig({
|
|
|
626
567
|
return theme.kitt.button.borderWidth;
|
|
627
568
|
});
|
|
628
569
|
|
|
570
|
+
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; }
|
|
571
|
+
|
|
572
|
+
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; }
|
|
629
573
|
function Button(_ref) {
|
|
630
574
|
var children = _ref.children,
|
|
631
575
|
_ref$type = _ref.type,
|
|
@@ -651,10 +595,10 @@ function Button(_ref) {
|
|
|
651
595
|
stretch: stretch,
|
|
652
596
|
disabled: disabled
|
|
653
597
|
};
|
|
654
|
-
return /*#__PURE__*/
|
|
598
|
+
return /*#__PURE__*/jsx(ButtonPressable // eslint-disable-next-line unicorn/expiring-todo-comments
|
|
655
599
|
// TODO: When designs are defined, update with the proper onPress styles to mimic TouchableHighlight
|
|
656
600
|
// underlayColor={globalTheme.button[type].pressedBackgroundColor}
|
|
657
|
-
,
|
|
601
|
+
, _objectSpread$c(_objectSpread$c({}, sharedProps), {}, {
|
|
658
602
|
isPressed: isPressed,
|
|
659
603
|
accessibilityRole: "button",
|
|
660
604
|
testID: testID,
|
|
@@ -666,15 +610,17 @@ function Button(_ref) {
|
|
|
666
610
|
},
|
|
667
611
|
onPressOut: function handleButtonPressOut() {
|
|
668
612
|
return setIsPressed(false);
|
|
669
|
-
}
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
613
|
+
},
|
|
614
|
+
children: /*#__PURE__*/jsx(ButtonContent, _objectSpread$c(_objectSpread$c({}, sharedProps), {}, {
|
|
615
|
+
icon: icon,
|
|
616
|
+
iconPosition: iconPosition,
|
|
617
|
+
iconSpin: iconSpin,
|
|
618
|
+
children: children
|
|
619
|
+
}))
|
|
620
|
+
}));
|
|
675
621
|
}
|
|
676
622
|
|
|
677
|
-
var Container$5 = /*#__PURE__*/styled(
|
|
623
|
+
var Container$5 = /*#__PURE__*/styled$1(View).withConfig({
|
|
678
624
|
displayName: "Card__Container",
|
|
679
625
|
componentId: "kitt-universal__sc-1n9psug-0"
|
|
680
626
|
})(["background-color:", ";padding:", ";border-radius:", ";border-width:", ";border-color:", ";"], function (_ref) {
|
|
@@ -698,28 +644,13 @@ var Container$5 = /*#__PURE__*/styled(PrimitiveView).withConfig({
|
|
|
698
644
|
function Card(_ref6) {
|
|
699
645
|
var children = _ref6.children,
|
|
700
646
|
type = _ref6.type;
|
|
701
|
-
return /*#__PURE__*/
|
|
702
|
-
type: type
|
|
703
|
-
|
|
704
|
-
}
|
|
705
|
-
|
|
706
|
-
var StyledImage = /*#__PURE__*/styled('img').withConfig({
|
|
707
|
-
displayName: "PrimitiveImageweb__StyledImage",
|
|
708
|
-
componentId: "kitt-universal__sc-1iw8ewp-0"
|
|
709
|
-
})(["box-sizing:border-box;display:inline-flex;"]);
|
|
710
|
-
function PrimitiveImage(_ref) {
|
|
711
|
-
var source = _ref.source,
|
|
712
|
-
className = _ref.className,
|
|
713
|
-
accessibilityLabel = _ref.accessibilityLabel;
|
|
714
|
-
return /*#__PURE__*/React.createElement(StyledImage, {
|
|
715
|
-
draggable: false,
|
|
716
|
-
className: className,
|
|
717
|
-
src: source.uri,
|
|
718
|
-
alt: accessibilityLabel
|
|
647
|
+
return /*#__PURE__*/jsx(Container$5, {
|
|
648
|
+
type: type,
|
|
649
|
+
children: children
|
|
719
650
|
});
|
|
720
651
|
}
|
|
721
652
|
|
|
722
|
-
var StyledEmoji = /*#__PURE__*/styled(
|
|
653
|
+
var StyledEmoji = /*#__PURE__*/styled$1(Image).withConfig({
|
|
723
654
|
displayName: "Emoji__StyledEmoji",
|
|
724
655
|
componentId: "kitt-universal__sc-ggl6wj-0"
|
|
725
656
|
})(["width:", "px;height:", "px;"], function (_ref) {
|
|
@@ -732,8 +663,7 @@ var StyledEmoji = /*#__PURE__*/styled(PrimitiveImage).withConfig({
|
|
|
732
663
|
function Emoji(_ref3) {
|
|
733
664
|
var emoji = _ref3.emoji,
|
|
734
665
|
size = _ref3.size,
|
|
735
|
-
style = _ref3.style
|
|
736
|
-
className = _ref3.className;
|
|
666
|
+
style = _ref3.style;
|
|
737
667
|
|
|
738
668
|
var _useMemo = useMemo(function () {
|
|
739
669
|
return parse(emoji, {
|
|
@@ -745,14 +675,13 @@ function Emoji(_ref3) {
|
|
|
745
675
|
emojiData = _useMemo2[0];
|
|
746
676
|
|
|
747
677
|
if (!emojiData) return null;
|
|
748
|
-
return /*#__PURE__*/
|
|
678
|
+
return /*#__PURE__*/jsx(StyledEmoji, {
|
|
749
679
|
size: size,
|
|
750
680
|
accessibilityLabel: emojiData.text,
|
|
751
681
|
source: {
|
|
752
682
|
uri: emojiData.url
|
|
753
683
|
},
|
|
754
|
-
style: style
|
|
755
|
-
className: className
|
|
684
|
+
style: style
|
|
756
685
|
});
|
|
757
686
|
}
|
|
758
687
|
|
|
@@ -761,16 +690,20 @@ var defaultOpenLinkBehavior = {
|
|
|
761
690
|
web: 'targetBlank'
|
|
762
691
|
};
|
|
763
692
|
|
|
764
|
-
var _excluded$
|
|
693
|
+
var _excluded$9 = ["as", "href", "openLinkBehavior", "onPress"];
|
|
694
|
+
|
|
695
|
+
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; }
|
|
696
|
+
|
|
697
|
+
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; }
|
|
765
698
|
function ExternalLink(_ref) {
|
|
766
699
|
var Component = _ref.as,
|
|
767
700
|
href = _ref.href,
|
|
768
701
|
_ref$openLinkBehavior = _ref.openLinkBehavior,
|
|
769
702
|
openLinkBehavior = _ref$openLinkBehavior === void 0 ? defaultOpenLinkBehavior : _ref$openLinkBehavior,
|
|
770
703
|
onPress = _ref.onPress,
|
|
771
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
704
|
+
rest = _objectWithoutProperties(_ref, _excluded$9);
|
|
772
705
|
|
|
773
|
-
return /*#__PURE__*/
|
|
706
|
+
return /*#__PURE__*/jsx(Component, _objectSpread$b(_objectSpread$b({}, rest), {}, {
|
|
774
707
|
href: href,
|
|
775
708
|
hrefAttrs: (openLinkBehavior === null || openLinkBehavior === void 0 ? void 0 : openLinkBehavior.web) === 'targetSelf' ? undefined : {
|
|
776
709
|
target: '_blank',
|
|
@@ -794,66 +727,19 @@ function InputFeedback(_ref) {
|
|
|
794
727
|
var state = _ref.state,
|
|
795
728
|
testID = _ref.testID,
|
|
796
729
|
children = _ref.children;
|
|
797
|
-
return /*#__PURE__*/
|
|
730
|
+
return /*#__PURE__*/jsx(Typography.Text, {
|
|
798
731
|
base: "body-small",
|
|
799
732
|
color: getColorFromState(state),
|
|
800
|
-
testID: testID
|
|
801
|
-
|
|
733
|
+
testID: testID,
|
|
734
|
+
children: children
|
|
735
|
+
});
|
|
802
736
|
}
|
|
803
737
|
|
|
804
|
-
var
|
|
805
|
-
/**
|
|
806
|
-
* min-width: 0
|
|
807
|
-
*/
|
|
808
|
-
BASE: 0,
|
|
809
|
-
|
|
810
|
-
/**
|
|
811
|
-
* min-width: 480px
|
|
812
|
-
*/
|
|
813
|
-
SMALL: 480,
|
|
814
|
-
|
|
815
|
-
/**
|
|
816
|
-
* min-width: 768px
|
|
817
|
-
*/
|
|
818
|
-
MEDIUM: 768,
|
|
819
|
-
|
|
820
|
-
/**
|
|
821
|
-
* min-width: 1024px
|
|
822
|
-
*/
|
|
823
|
-
LARGE: 1024,
|
|
824
|
-
|
|
825
|
-
/**
|
|
826
|
-
* min-width: 1280px
|
|
827
|
-
*/
|
|
828
|
-
WIDE: 1280
|
|
829
|
-
};
|
|
830
|
-
var KittBreakpointsMax = {
|
|
831
|
-
/**
|
|
832
|
-
* max-width: 479px
|
|
833
|
-
*/
|
|
834
|
-
BASE: KittBreakpoints.SMALL - 1,
|
|
835
|
-
|
|
836
|
-
/**
|
|
837
|
-
* max-width: 767px
|
|
838
|
-
*/
|
|
839
|
-
SMALL: KittBreakpoints.MEDIUM - 1,
|
|
840
|
-
|
|
841
|
-
/**
|
|
842
|
-
* max-width: 1023px
|
|
843
|
-
*/
|
|
844
|
-
MEDIUM: KittBreakpoints.LARGE - 1,
|
|
845
|
-
|
|
846
|
-
/**
|
|
847
|
-
* max-width: 1279px
|
|
848
|
-
*/
|
|
849
|
-
LARGE: KittBreakpoints.WIDE - 1
|
|
850
|
-
};
|
|
851
|
-
|
|
852
|
-
var FieldContainer = /*#__PURE__*/styled(PrimitiveView).withConfig({
|
|
738
|
+
var FieldContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
853
739
|
displayName: "InputField__FieldContainer",
|
|
854
740
|
componentId: "kitt-universal__sc-13fkixs-0"
|
|
855
741
|
})(["padding:5px 0 10px;"]);
|
|
856
|
-
var FeedbackContainer = /*#__PURE__*/styled(
|
|
742
|
+
var FeedbackContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
857
743
|
displayName: "InputField__FeedbackContainer",
|
|
858
744
|
componentId: "kitt-universal__sc-13fkixs-1"
|
|
859
745
|
})(["", ";"], function (_ref) {
|
|
@@ -862,14 +748,14 @@ var FeedbackContainer = /*#__PURE__*/styled(PrimitiveView).withConfig({
|
|
|
862
748
|
minWidth: KittBreakpoints.SMALL
|
|
863
749
|
}, 'padding-top: 10px', 'padding-top: 5px');
|
|
864
750
|
});
|
|
865
|
-
var FieldLabelContainer = /*#__PURE__*/styled(
|
|
751
|
+
var FieldLabelContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
866
752
|
displayName: "InputField__FieldLabelContainer",
|
|
867
753
|
componentId: "kitt-universal__sc-13fkixs-2"
|
|
868
754
|
})(["flex-direction:row;align-items:center;padding-bottom:", "px;"], function (_ref2) {
|
|
869
755
|
var theme = _ref2.theme;
|
|
870
756
|
return theme.kitt.forms.inputField.labelContainerPaddingBottom;
|
|
871
757
|
});
|
|
872
|
-
var LabelContainer = /*#__PURE__*/styled(
|
|
758
|
+
var LabelContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
873
759
|
displayName: "InputField__LabelContainer",
|
|
874
760
|
componentId: "kitt-universal__sc-13fkixs-3"
|
|
875
761
|
})(["margin-right:", "px;"], function (_ref3) {
|
|
@@ -881,7 +767,15 @@ function InputField(_ref4) {
|
|
|
881
767
|
labelFeedback = _ref4.labelFeedback,
|
|
882
768
|
input = _ref4.input,
|
|
883
769
|
feedback = _ref4.feedback;
|
|
884
|
-
return /*#__PURE__*/
|
|
770
|
+
return /*#__PURE__*/jsxs(FieldContainer, {
|
|
771
|
+
children: [label ? /*#__PURE__*/jsxs(FieldLabelContainer, {
|
|
772
|
+
children: [/*#__PURE__*/jsx(LabelContainer, {
|
|
773
|
+
children: label
|
|
774
|
+
}), labelFeedback]
|
|
775
|
+
}) : null, input, feedback ? /*#__PURE__*/jsx(FeedbackContainer, {
|
|
776
|
+
children: feedback
|
|
777
|
+
}) : null]
|
|
778
|
+
});
|
|
885
779
|
}
|
|
886
780
|
|
|
887
781
|
var useInputText = function () {
|
|
@@ -912,7 +806,11 @@ var useInputText = function () {
|
|
|
912
806
|
};
|
|
913
807
|
};
|
|
914
808
|
|
|
915
|
-
var _excluded$
|
|
809
|
+
var _excluded$8 = ["id", "minHeight", "type", "state", "internalForceState", "disabled", "onFocus", "onBlur"];
|
|
810
|
+
|
|
811
|
+
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; }
|
|
812
|
+
|
|
813
|
+
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; }
|
|
916
814
|
var styledTextInputMixin = /*#__PURE__*/css(["background-color:", ";border-width:", ";border-radius:", ";border-color:", ";font-size:", ";color:", ";font-family:", ";"], function (_ref) {
|
|
917
815
|
var theme = _ref.theme,
|
|
918
816
|
state = _ref.state;
|
|
@@ -929,7 +827,8 @@ var styledTextInputMixin = /*#__PURE__*/css(["background-color:", ";border-width
|
|
|
929
827
|
return theme.kitt.forms.input.states[state].borderColor;
|
|
930
828
|
}, function (_ref5) {
|
|
931
829
|
var theme = _ref5.theme;
|
|
932
|
-
|
|
830
|
+
var typeConfigKey = getTypographyTypeConfigKey(theme);
|
|
831
|
+
return theme.kitt.typography.types.bodies.configs.body[typeConfigKey].fontSize;
|
|
933
832
|
}, function (_ref6) {
|
|
934
833
|
var theme = _ref6.theme,
|
|
935
834
|
state = _ref6.state;
|
|
@@ -938,7 +837,7 @@ var styledTextInputMixin = /*#__PURE__*/css(["background-color:", ";border-width
|
|
|
938
837
|
var theme = _ref7.theme;
|
|
939
838
|
return theme.kitt.typography.types.bodies.fontFamily.regular;
|
|
940
839
|
});
|
|
941
|
-
var Input = /*#__PURE__*/styled(TextInput).withConfig({
|
|
840
|
+
var Input = /*#__PURE__*/styled$1(TextInput).withConfig({
|
|
942
841
|
displayName: "InputText__Input",
|
|
943
842
|
componentId: "kitt-universal__sc-uke279-0"
|
|
944
843
|
})(["", " padding:", ";line-height:", ";min-height:", "px;"], styledTextInputMixin, function (_ref8) {
|
|
@@ -948,12 +847,14 @@ var Input = /*#__PURE__*/styled(TextInput).withConfig({
|
|
|
948
847
|
}, function (_ref9) {
|
|
949
848
|
var theme = _ref9.theme,
|
|
950
849
|
multiline = _ref9.multiline;
|
|
951
|
-
|
|
850
|
+
if (!multiline && "web" === 'ios') return 0;
|
|
851
|
+
var typeConfigKey = getTypographyTypeConfigKey(theme);
|
|
852
|
+
return theme.kitt.typography.types.bodies.configs.body[typeConfigKey].lineHeight;
|
|
952
853
|
}, function (_ref10) {
|
|
953
854
|
var minHeight = _ref10.minHeight;
|
|
954
855
|
return minHeight;
|
|
955
856
|
});
|
|
956
|
-
var Container$4 = /*#__PURE__*/styled(
|
|
857
|
+
var Container$4 = /*#__PURE__*/styled$1(View).withConfig({
|
|
957
858
|
displayName: "InputText__Container",
|
|
958
859
|
componentId: "kitt-universal__sc-uke279-1"
|
|
959
860
|
})(["margin-top:", ";margin-bottom:", ";"], function (_ref11) {
|
|
@@ -963,7 +864,7 @@ var Container$4 = /*#__PURE__*/styled(PrimitiveView).withConfig({
|
|
|
963
864
|
var theme = _ref12.theme;
|
|
964
865
|
return theme.kitt.forms.input.marginBottom;
|
|
965
866
|
});
|
|
966
|
-
var PasswordButtonContainer = /*#__PURE__*/styled(
|
|
867
|
+
var PasswordButtonContainer = /*#__PURE__*/styled$1(Pressable).withConfig({
|
|
967
868
|
displayName: "InputText__PasswordButtonContainer",
|
|
968
869
|
componentId: "kitt-universal__sc-uke279-2"
|
|
969
870
|
})(["position:absolute;right:0;top:0;bottom:0;justify-content:center;padding:", "px;"], function (_ref13) {
|
|
@@ -1016,7 +917,7 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref15, ref) {
|
|
|
1016
917
|
disabled = _ref15$disabled === void 0 ? false : _ref15$disabled,
|
|
1017
918
|
_onFocus = _ref15.onFocus,
|
|
1018
919
|
_onBlur = _ref15.onBlur,
|
|
1019
|
-
props = _objectWithoutProperties(_ref15, _excluded$
|
|
920
|
+
props = _objectWithoutProperties(_ref15, _excluded$8);
|
|
1020
921
|
|
|
1021
922
|
var _useInputText = useInputText(),
|
|
1022
923
|
isFocused = _useInputText.isFocused,
|
|
@@ -1031,49 +932,54 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref15, ref) {
|
|
|
1031
932
|
isDisabled: disabled,
|
|
1032
933
|
formState: formState
|
|
1033
934
|
});
|
|
1034
|
-
return /*#__PURE__*/
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
935
|
+
return /*#__PURE__*/jsxs(Container$4, {
|
|
936
|
+
children: [/*#__PURE__*/jsx(Input, _objectSpread$a(_objectSpread$a({
|
|
937
|
+
ref: ref,
|
|
938
|
+
nativeID: id,
|
|
939
|
+
editable: !disabled,
|
|
940
|
+
keyboardType: keyboardTypeByTextInputType[type],
|
|
941
|
+
autoCompleteType: autoCompleteTypeByType[type],
|
|
942
|
+
autoCorrect: autoCorrectByType[type],
|
|
943
|
+
minHeight: minHeight,
|
|
944
|
+
textContentType: textContentTypeByType[type],
|
|
945
|
+
placeholderTextColor: theme.kitt.typography.colors[theme.kitt.forms.input.placeholderColor],
|
|
946
|
+
selectionColor: theme.kitt.forms.input.selectionColor,
|
|
947
|
+
secureTextEntry: type === 'password' && !isPasswordVisible
|
|
948
|
+
}, props), {}, {
|
|
949
|
+
state: state,
|
|
950
|
+
onFocus: function onFocus(e) {
|
|
951
|
+
handleInputFocus();
|
|
952
|
+
if (_onFocus) _onFocus(e);
|
|
953
|
+
},
|
|
954
|
+
onBlur: function onBlur(e) {
|
|
955
|
+
handleInputBlur();
|
|
956
|
+
if (_onBlur) _onBlur(e);
|
|
957
|
+
}
|
|
958
|
+
})), type === 'password' && !disabled && /*#__PURE__*/jsx(PasswordButtonContainer, {
|
|
959
|
+
accessibilityRole: "button",
|
|
960
|
+
onPress: togglePasswordVisibility,
|
|
961
|
+
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
962
|
+
icon: isPasswordVisible ? /*#__PURE__*/jsx(EyeIcon, {}) : /*#__PURE__*/jsx(EyeOffIcon, {}),
|
|
963
|
+
size: theme.kitt.forms.input.passwordButtonIconSize,
|
|
964
|
+
color: theme.kitt.forms.input.states[state].passwordButtonIconColor
|
|
965
|
+
})
|
|
966
|
+
})]
|
|
967
|
+
});
|
|
1064
968
|
});
|
|
1065
969
|
|
|
1066
970
|
function Label(_ref) {
|
|
1067
971
|
var htmlFor = _ref.htmlFor,
|
|
1068
972
|
children = _ref.children;
|
|
1069
|
-
return /*#__PURE__*/
|
|
1070
|
-
base: "body"
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
973
|
+
return /*#__PURE__*/jsx(Typography.Text, {
|
|
974
|
+
base: "body",
|
|
975
|
+
children: /*#__PURE__*/jsx("label", {
|
|
976
|
+
htmlFor: htmlFor,
|
|
977
|
+
children: children
|
|
978
|
+
})
|
|
979
|
+
});
|
|
1074
980
|
}
|
|
1075
981
|
|
|
1076
|
-
var OuterRadio = /*#__PURE__*/styled(
|
|
982
|
+
var OuterRadio = /*#__PURE__*/styled$1(View).withConfig({
|
|
1077
983
|
displayName: "Radio__OuterRadio",
|
|
1078
984
|
componentId: "kitt-universal__sc-1mdgr2o-0"
|
|
1079
985
|
})(["background-color:", ";width:", "px;height:", "px;border-radius:", "px;border-width:", ";border-color:", ";"], function (_ref) {
|
|
@@ -1097,7 +1003,7 @@ var OuterRadio = /*#__PURE__*/styled(PrimitiveView).withConfig({
|
|
|
1097
1003
|
disabled = _ref6.disabled;
|
|
1098
1004
|
return theme.kitt.forms.radio[disabled ? 'disabled' : 'unchecked'].borderColor;
|
|
1099
1005
|
});
|
|
1100
|
-
var SelectedOuterRadio = /*#__PURE__*/styled(
|
|
1006
|
+
var SelectedOuterRadio = /*#__PURE__*/styled$1(View).withConfig({
|
|
1101
1007
|
displayName: "Radio__SelectedOuterRadio",
|
|
1102
1008
|
componentId: "kitt-universal__sc-1mdgr2o-1"
|
|
1103
1009
|
})(["background-color:", ";width:", "px;height:", "px;border-radius:", "px;justify-content:center;align-items:center;"], function (_ref7) {
|
|
@@ -1113,7 +1019,7 @@ var SelectedOuterRadio = /*#__PURE__*/styled(PrimitiveView).withConfig({
|
|
|
1113
1019
|
var theme = _ref10.theme;
|
|
1114
1020
|
return theme.kitt.forms.radio.size / 2;
|
|
1115
1021
|
});
|
|
1116
|
-
var SelectedInnerRadio = /*#__PURE__*/styled(
|
|
1022
|
+
var SelectedInnerRadio = /*#__PURE__*/styled$1(View).withConfig({
|
|
1117
1023
|
displayName: "Radio__SelectedInnerRadio",
|
|
1118
1024
|
componentId: "kitt-universal__sc-1mdgr2o-2"
|
|
1119
1025
|
})(["background-color:", ";width:", "px;height:", "px;border-radius:", "px;"], function (_ref11) {
|
|
@@ -1129,11 +1035,11 @@ var SelectedInnerRadio = /*#__PURE__*/styled(PrimitiveView).withConfig({
|
|
|
1129
1035
|
var theme = _ref14.theme;
|
|
1130
1036
|
return theme.kitt.forms.radio.checked.innerSize / 2;
|
|
1131
1037
|
});
|
|
1132
|
-
var Container$3 = /*#__PURE__*/styled(
|
|
1038
|
+
var Container$3 = /*#__PURE__*/styled$1(Pressable).withConfig({
|
|
1133
1039
|
displayName: "Radio__Container",
|
|
1134
1040
|
componentId: "kitt-universal__sc-1mdgr2o-3"
|
|
1135
1041
|
})(["flex-direction:row;align-items:center;"]);
|
|
1136
|
-
var Text = /*#__PURE__*/styled(Typography.Text).withConfig({
|
|
1042
|
+
var Text = /*#__PURE__*/styled$1(Typography.Text).withConfig({
|
|
1137
1043
|
displayName: "Radio__Text",
|
|
1138
1044
|
componentId: "kitt-universal__sc-1mdgr2o-4"
|
|
1139
1045
|
})(["margin-left:", "px;"], function (_ref15) {
|
|
@@ -1148,7 +1054,7 @@ function Radio(_ref16) {
|
|
|
1148
1054
|
_ref16$disabled = _ref16.disabled,
|
|
1149
1055
|
disabled = _ref16$disabled === void 0 ? false : _ref16$disabled,
|
|
1150
1056
|
children = _ref16.children;
|
|
1151
|
-
return /*#__PURE__*/
|
|
1057
|
+
return /*#__PURE__*/jsxs(Container$3, {
|
|
1152
1058
|
nativeID: id,
|
|
1153
1059
|
disabled: disabled,
|
|
1154
1060
|
accessibilityRole: "radio",
|
|
@@ -1156,28 +1062,35 @@ function Radio(_ref16) {
|
|
|
1156
1062
|
focusable: checked && !disabled,
|
|
1157
1063
|
onPress: function handlePress() {
|
|
1158
1064
|
onChange(value);
|
|
1159
|
-
}
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1065
|
+
},
|
|
1066
|
+
children: [checked && !disabled ? /*#__PURE__*/jsx(SelectedOuterRadio, {
|
|
1067
|
+
children: /*#__PURE__*/jsx(SelectedInnerRadio, {})
|
|
1068
|
+
}) : /*#__PURE__*/jsx(OuterRadio, {
|
|
1069
|
+
disabled: disabled
|
|
1070
|
+
}), /*#__PURE__*/jsx(Text, {
|
|
1071
|
+
base: "body",
|
|
1072
|
+
color: disabled ? 'black-light' : 'black',
|
|
1073
|
+
children: children
|
|
1074
|
+
})]
|
|
1075
|
+
});
|
|
1166
1076
|
}
|
|
1167
1077
|
|
|
1078
|
+
function ownKeys$9(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; }
|
|
1079
|
+
|
|
1080
|
+
function _objectSpread$9(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$9(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$9(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1168
1081
|
function TextArea(_ref) {
|
|
1169
1082
|
var props = _extends({}, _ref);
|
|
1170
1083
|
|
|
1171
1084
|
var theme = /*#__PURE__*/useTheme();
|
|
1172
|
-
return /*#__PURE__*/
|
|
1085
|
+
return /*#__PURE__*/jsx(InputText, _objectSpread$9(_objectSpread$9({
|
|
1173
1086
|
multiline: true
|
|
1174
|
-
}, props, {
|
|
1087
|
+
}, props), {}, {
|
|
1175
1088
|
type: "text",
|
|
1176
1089
|
minHeight: theme.kitt.forms.input.textAreaMinHeight
|
|
1177
1090
|
}));
|
|
1178
1091
|
}
|
|
1179
1092
|
|
|
1180
|
-
var Body = /*#__PURE__*/styled(
|
|
1093
|
+
var Body = /*#__PURE__*/styled$1(View).withConfig({
|
|
1181
1094
|
displayName: "Body",
|
|
1182
1095
|
componentId: "kitt-universal__sc-1ofncfn-0"
|
|
1183
1096
|
})(["", " background-color:", ";flex:1;"], function (_ref) {
|
|
@@ -1191,10 +1104,12 @@ var Body = /*#__PURE__*/styled(PrimitiveView).withConfig({
|
|
|
1191
1104
|
});
|
|
1192
1105
|
function FullScreenModalBody(_ref3) {
|
|
1193
1106
|
var children = _ref3.children;
|
|
1194
|
-
return /*#__PURE__*/
|
|
1107
|
+
return /*#__PURE__*/jsx(Body, {
|
|
1108
|
+
children: children
|
|
1109
|
+
});
|
|
1195
1110
|
}
|
|
1196
1111
|
|
|
1197
|
-
var SideContainer = /*#__PURE__*/styled(
|
|
1112
|
+
var SideContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
1198
1113
|
displayName: "Header__SideContainer",
|
|
1199
1114
|
componentId: "kitt-universal__sc-dfmxi1-0"
|
|
1200
1115
|
})(["", ""], function (_ref) {
|
|
@@ -1214,7 +1129,7 @@ function getHeaderHorizontalMediumPadding(spacing) {
|
|
|
1214
1129
|
return spacing * 6;
|
|
1215
1130
|
}
|
|
1216
1131
|
|
|
1217
|
-
var Header = /*#__PURE__*/styled(
|
|
1132
|
+
var Header = /*#__PURE__*/styled$1(View).withConfig({
|
|
1218
1133
|
displayName: "Header",
|
|
1219
1134
|
componentId: "kitt-universal__sc-dfmxi1-1"
|
|
1220
1135
|
})(["", ";border-bottom-color:", ";border-bottom-width:1px;flex-direction:row;align-items:center;"], function (_ref2) {
|
|
@@ -1232,7 +1147,7 @@ var Header = /*#__PURE__*/styled(PrimitiveView).withConfig({
|
|
|
1232
1147
|
var theme = _ref3.theme;
|
|
1233
1148
|
return theme.kitt.fullScreenModal.header.borderColor;
|
|
1234
1149
|
});
|
|
1235
|
-
var HeaderContent = /*#__PURE__*/styled(
|
|
1150
|
+
var HeaderContent = /*#__PURE__*/styled$1(View).withConfig({
|
|
1236
1151
|
displayName: "Header__HeaderContent",
|
|
1237
1152
|
componentId: "kitt-universal__sc-dfmxi1-2"
|
|
1238
1153
|
})(["", ";", ";justify-content:center;align-items:center;"], function (_ref4) {
|
|
@@ -1300,25 +1215,29 @@ function FullScreenModalHeader(_ref6) {
|
|
|
1300
1215
|
setRightWidth(event.nativeEvent.layout.width);
|
|
1301
1216
|
};
|
|
1302
1217
|
|
|
1303
|
-
return /*#__PURE__*/
|
|
1304
|
-
insetTop: top
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1218
|
+
return /*#__PURE__*/jsxs(Header, {
|
|
1219
|
+
insetTop: top,
|
|
1220
|
+
children: [left ? /*#__PURE__*/jsx(SideContainer, {
|
|
1221
|
+
onLayout: function onLayout(e) {
|
|
1222
|
+
return handleLayoutChange(e, 'left');
|
|
1223
|
+
},
|
|
1224
|
+
children: left
|
|
1225
|
+
}) : null, /*#__PURE__*/jsx(HeaderContent, {
|
|
1226
|
+
windowWidth: dimensions.width,
|
|
1227
|
+
leftWidth: leftWidth,
|
|
1228
|
+
rightWidth: rightWidth,
|
|
1229
|
+
children: children
|
|
1230
|
+
}), right ? /*#__PURE__*/jsx(SideContainer, {
|
|
1231
|
+
side: "right",
|
|
1232
|
+
onLayout: function onLayout(e) {
|
|
1233
|
+
return handleLayoutChange(e, 'right');
|
|
1234
|
+
},
|
|
1235
|
+
children: right
|
|
1236
|
+
}) : null]
|
|
1237
|
+
});
|
|
1319
1238
|
}
|
|
1320
1239
|
|
|
1321
|
-
var Container$2 = /*#__PURE__*/styled(
|
|
1240
|
+
var Container$2 = /*#__PURE__*/styled$1(View).withConfig({
|
|
1322
1241
|
displayName: "FullScreenModal__Container",
|
|
1323
1242
|
componentId: "kitt-universal__sc-11qpbe3-0"
|
|
1324
1243
|
})(["flex:1;background-color:", ";"], function (_ref) {
|
|
@@ -1327,52 +1246,114 @@ var Container$2 = /*#__PURE__*/styled(PrimitiveView).withConfig({
|
|
|
1327
1246
|
});
|
|
1328
1247
|
function FullScreenModal(_ref2) {
|
|
1329
1248
|
var children = _ref2.children;
|
|
1330
|
-
return /*#__PURE__*/
|
|
1249
|
+
return /*#__PURE__*/jsx(Container$2, {
|
|
1250
|
+
children: children
|
|
1251
|
+
});
|
|
1331
1252
|
}
|
|
1332
1253
|
FullScreenModal.Header = FullScreenModalHeader;
|
|
1333
1254
|
FullScreenModal.Body = FullScreenModalBody;
|
|
1334
1255
|
|
|
1335
|
-
var
|
|
1336
|
-
|
|
1256
|
+
var _excluded$7 = ["as", "children"];
|
|
1257
|
+
|
|
1258
|
+
function ownKeys$8(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; }
|
|
1259
|
+
|
|
1260
|
+
function _objectSpread$8(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$8(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$8(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1261
|
+
function StyleWebWrapper(_ref) {
|
|
1262
|
+
var as = _ref.as,
|
|
1263
|
+
children = _ref.children,
|
|
1264
|
+
props = _objectWithoutProperties(_ref, _excluded$7);
|
|
1265
|
+
|
|
1266
|
+
// as or default to div. If as is undefined, T is div but typescript is not sure
|
|
1267
|
+
return /*#__PURE__*/jsx(as || 'div', _objectSpread$8(_objectSpread$8({}, props), {}, {
|
|
1268
|
+
children: children
|
|
1269
|
+
}));
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
var _excluded$6 = ["color"];
|
|
1273
|
+
|
|
1274
|
+
function ownKeys$7(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; }
|
|
1275
|
+
|
|
1276
|
+
function _objectSpread$7(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$7(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$7(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1277
|
+
var PressableIconButtonWebWrapper = withTheme( /*#__PURE__*/styled("div")({
|
|
1278
|
+
name: "PressableIconButtonWebWrapper",
|
|
1279
|
+
"class": "p1nlccvg",
|
|
1280
|
+
vars: {
|
|
1281
|
+
"p1nlccvg-0": [function (_ref) {
|
|
1282
|
+
var theme = _ref.theme;
|
|
1283
|
+
return theme.kitt.iconButton.scale.base.hover;
|
|
1284
|
+
}],
|
|
1285
|
+
"p1nlccvg-1": [function (_ref2) {
|
|
1286
|
+
var theme = _ref2.theme;
|
|
1287
|
+
return theme.breakpoints.min.mediumBreakpoint;
|
|
1288
|
+
}],
|
|
1289
|
+
"p1nlccvg-2": [function (_ref3) {
|
|
1290
|
+
var theme = _ref3.theme;
|
|
1291
|
+
return theme.kitt.iconButton.scale.medium.hover;
|
|
1292
|
+
}],
|
|
1293
|
+
"p1nlccvg-3": [function (_ref4) {
|
|
1294
|
+
var theme = _ref4.theme;
|
|
1295
|
+
return theme.kitt.iconButton.scale.base.active;
|
|
1296
|
+
}],
|
|
1297
|
+
"p1nlccvg-4": [function (_ref5) {
|
|
1298
|
+
var theme = _ref5.theme;
|
|
1299
|
+
return theme.kitt.iconButton["default"].pressedBackgroundColor;
|
|
1300
|
+
}],
|
|
1301
|
+
"p1nlccvg-5": [function (_ref6) {
|
|
1302
|
+
var theme = _ref6.theme;
|
|
1303
|
+
return theme.kitt.iconButton.white.pressedBackgroundColor;
|
|
1304
|
+
}]
|
|
1305
|
+
}
|
|
1306
|
+
}));
|
|
1307
|
+
var StyledPressableIconButton = /*#__PURE__*/styled$1(Pressable).withConfig({
|
|
1308
|
+
displayName: "PressableIconButton__StyledPressableIconButton",
|
|
1337
1309
|
componentId: "kitt-universal__sc-1m6jo3s-0"
|
|
1338
|
-
})(["border-radius:", "px;width:", "px;height:", "px;align-items:center;justify-content:center;position:relative;background-color:transparent;", ";"], function (
|
|
1339
|
-
var theme =
|
|
1310
|
+
})(["border-radius:", "px;width:", "px;height:", "px;align-items:center;justify-content:center;position:relative;background-color:transparent;", ";"], function (_ref7) {
|
|
1311
|
+
var theme = _ref7.theme;
|
|
1340
1312
|
return theme.kitt.iconButton.borderRadius;
|
|
1341
|
-
}, function (
|
|
1342
|
-
var theme =
|
|
1313
|
+
}, function (_ref8) {
|
|
1314
|
+
var theme = _ref8.theme;
|
|
1343
1315
|
return theme.kitt.iconButton.width;
|
|
1344
|
-
}, function (
|
|
1345
|
-
var theme =
|
|
1316
|
+
}, function (_ref9) {
|
|
1317
|
+
var theme = _ref9.theme;
|
|
1346
1318
|
return theme.kitt.iconButton.height;
|
|
1347
|
-
}, function (
|
|
1348
|
-
var theme =
|
|
1349
|
-
|
|
1350
|
-
disabled = _ref4.disabled;
|
|
1319
|
+
}, function (_ref10) {
|
|
1320
|
+
var theme = _ref10.theme,
|
|
1321
|
+
disabled = _ref10.disabled;
|
|
1351
1322
|
var iconButton = theme.kitt.iconButton;
|
|
1352
|
-
var transition = iconButton.transition
|
|
1353
|
-
scale = iconButton.scale;
|
|
1323
|
+
var transition = iconButton.transition;
|
|
1354
1324
|
|
|
1355
1325
|
if (disabled) {
|
|
1356
1326
|
return "\n background-color: ".concat(iconButton.disabled.backgroundColor, ";\n ");
|
|
1357
1327
|
}
|
|
1358
1328
|
|
|
1359
|
-
return "\n transition: ".concat(transition.property, " ").concat(transition.duration, " ").concat(transition.timingFunction, ";\n
|
|
1329
|
+
return "\n transition: ".concat(transition.property, " ").concat(transition.duration, " ").concat(transition.timingFunction, ";\n ");
|
|
1360
1330
|
});
|
|
1331
|
+
function PressableIconButton(_ref11) {
|
|
1332
|
+
var color = _ref11.color,
|
|
1333
|
+
props = _objectWithoutProperties(_ref11, _excluded$6);
|
|
1334
|
+
|
|
1335
|
+
return /*#__PURE__*/jsx(StyleWebWrapper, {
|
|
1336
|
+
as: PressableIconButtonWebWrapper,
|
|
1337
|
+
"data-color-white": color === 'white' ? true : undefined,
|
|
1338
|
+
children: /*#__PURE__*/jsx(StyledPressableIconButton, _objectSpread$7({}, props))
|
|
1339
|
+
});
|
|
1340
|
+
}
|
|
1361
1341
|
|
|
1362
1342
|
function PressableAnimatedContainer(_ref) {
|
|
1363
1343
|
var children = _ref.children,
|
|
1364
1344
|
color = _ref.color,
|
|
1365
1345
|
disabled = _ref.disabled,
|
|
1366
1346
|
onPress = _ref.onPress;
|
|
1367
|
-
return /*#__PURE__*/
|
|
1347
|
+
return /*#__PURE__*/jsx(PressableIconButton, {
|
|
1368
1348
|
accessibilityRole: "button",
|
|
1369
1349
|
color: color,
|
|
1370
1350
|
disabled: disabled,
|
|
1371
|
-
onPress: onPress
|
|
1372
|
-
|
|
1351
|
+
onPress: onPress,
|
|
1352
|
+
children: children
|
|
1353
|
+
});
|
|
1373
1354
|
}
|
|
1374
1355
|
|
|
1375
|
-
var IconButtonContentBorder = /*#__PURE__*/styled(
|
|
1356
|
+
var IconButtonContentBorder = /*#__PURE__*/styled$1(View).withConfig({
|
|
1376
1357
|
displayName: "IconButton__IconButtonContentBorder",
|
|
1377
1358
|
componentId: "kitt-universal__sc-swelbf-0"
|
|
1378
1359
|
})(["border:", ";border-color:", ";width:", "px;height:", "px;align-items:center;justify-content:center;border-radius:", "px;"], function (_ref) {
|
|
@@ -1397,12 +1378,13 @@ function IconButtonContent(_ref6) {
|
|
|
1397
1378
|
var disabled = _ref6.disabled,
|
|
1398
1379
|
color = _ref6.color,
|
|
1399
1380
|
icon = _ref6.icon;
|
|
1400
|
-
return /*#__PURE__*/
|
|
1401
|
-
disabled: disabled
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1381
|
+
return /*#__PURE__*/jsx(IconButtonContentBorder, {
|
|
1382
|
+
disabled: disabled,
|
|
1383
|
+
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
1384
|
+
color: disabled ? 'black-light' : color,
|
|
1385
|
+
icon: icon
|
|
1386
|
+
})
|
|
1387
|
+
});
|
|
1406
1388
|
}
|
|
1407
1389
|
|
|
1408
1390
|
function IconButton(_ref7) {
|
|
@@ -1410,32 +1392,43 @@ function IconButton(_ref7) {
|
|
|
1410
1392
|
color = _ref7.color,
|
|
1411
1393
|
disabled = _ref7.disabled,
|
|
1412
1394
|
onPress = _ref7.onPress;
|
|
1413
|
-
return /*#__PURE__*/
|
|
1395
|
+
return /*#__PURE__*/jsx(PressableAnimatedContainer, {
|
|
1414
1396
|
color: color,
|
|
1415
1397
|
disabled: disabled,
|
|
1416
|
-
onPress: onPress
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1398
|
+
onPress: onPress,
|
|
1399
|
+
children: /*#__PURE__*/jsx(IconButtonContent, {
|
|
1400
|
+
disabled: disabled,
|
|
1401
|
+
color: color,
|
|
1402
|
+
icon: icon
|
|
1403
|
+
})
|
|
1404
|
+
});
|
|
1422
1405
|
}
|
|
1423
1406
|
|
|
1424
|
-
var _excluded$
|
|
1425
|
-
|
|
1407
|
+
var _excluded$5 = ["children"];
|
|
1408
|
+
|
|
1409
|
+
function ownKeys$6(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; }
|
|
1410
|
+
|
|
1411
|
+
function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$6(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$6(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1412
|
+
var ContentView$1 = /*#__PURE__*/styled$1(View).withConfig({
|
|
1426
1413
|
displayName: "ListItemContent__ContentView",
|
|
1427
1414
|
componentId: "kitt-universal__sc-57q0u9-0"
|
|
1428
1415
|
})(["flex:1 0 0%;align-self:center;"]);
|
|
1429
1416
|
function ListItemContent(_ref) {
|
|
1430
1417
|
var children = _ref.children,
|
|
1431
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
1418
|
+
rest = _objectWithoutProperties(_ref, _excluded$5);
|
|
1432
1419
|
|
|
1433
|
-
return /*#__PURE__*/
|
|
1420
|
+
return /*#__PURE__*/jsx(ContentView$1, _objectSpread$6(_objectSpread$6({}, rest), {}, {
|
|
1421
|
+
children: children
|
|
1422
|
+
}));
|
|
1434
1423
|
}
|
|
1435
1424
|
|
|
1436
|
-
var _excluded$
|
|
1425
|
+
var _excluded$4 = ["children", "side"],
|
|
1437
1426
|
_excluded2$1 = ["children", "align"];
|
|
1438
|
-
|
|
1427
|
+
|
|
1428
|
+
function ownKeys$5(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; }
|
|
1429
|
+
|
|
1430
|
+
function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$5(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1431
|
+
var SideContainerView = /*#__PURE__*/styled$1(View).withConfig({
|
|
1439
1432
|
displayName: "ListItemSideContent__SideContainerView",
|
|
1440
1433
|
componentId: "kitt-universal__sc-1vajiw-0"
|
|
1441
1434
|
})(["flex-direction:row;margin-left:", ";margin-right:", ";"], function (_ref) {
|
|
@@ -1452,13 +1445,15 @@ function ListItemSideContainer(_ref3) {
|
|
|
1452
1445
|
var children = _ref3.children,
|
|
1453
1446
|
_ref3$side = _ref3.side,
|
|
1454
1447
|
side = _ref3$side === void 0 ? 'left' : _ref3$side,
|
|
1455
|
-
rest = _objectWithoutProperties(_ref3, _excluded$
|
|
1448
|
+
rest = _objectWithoutProperties(_ref3, _excluded$4);
|
|
1456
1449
|
|
|
1457
|
-
return /*#__PURE__*/
|
|
1450
|
+
return /*#__PURE__*/jsx(SideContainerView, _objectSpread$5(_objectSpread$5({
|
|
1458
1451
|
side: side
|
|
1459
|
-
}, rest),
|
|
1452
|
+
}, rest), {}, {
|
|
1453
|
+
children: children
|
|
1454
|
+
}));
|
|
1460
1455
|
}
|
|
1461
|
-
var SideContentView = /*#__PURE__*/styled(
|
|
1456
|
+
var SideContentView = /*#__PURE__*/styled$1(View).withConfig({
|
|
1462
1457
|
displayName: "ListItemSideContent__SideContentView",
|
|
1463
1458
|
componentId: "kitt-universal__sc-1vajiw-1"
|
|
1464
1459
|
})(["align-self:", ";"], function (_ref4) {
|
|
@@ -1471,17 +1466,19 @@ function ListItemSideContent(_ref5) {
|
|
|
1471
1466
|
align = _ref5$align === void 0 ? 'auto' : _ref5$align,
|
|
1472
1467
|
rest = _objectWithoutProperties(_ref5, _excluded2$1);
|
|
1473
1468
|
|
|
1474
|
-
return /*#__PURE__*/
|
|
1469
|
+
return /*#__PURE__*/jsx(SideContentView, _objectSpread$5(_objectSpread$5({
|
|
1475
1470
|
align: align
|
|
1476
|
-
}, rest),
|
|
1471
|
+
}, rest), {}, {
|
|
1472
|
+
children: children
|
|
1473
|
+
}));
|
|
1477
1474
|
}
|
|
1478
1475
|
|
|
1479
|
-
var _excluded$
|
|
1476
|
+
var _excluded$3 = ["children", "withPadding", "borders", "left", "right", "onPress"];
|
|
1480
1477
|
|
|
1481
|
-
function ownKeys$
|
|
1478
|
+
function ownKeys$4(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1482
1479
|
|
|
1483
|
-
function _objectSpread$
|
|
1484
|
-
var ContainerView = /*#__PURE__*/styled(
|
|
1480
|
+
function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$4(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1481
|
+
var ContainerView = /*#__PURE__*/styled$1(View).withConfig({
|
|
1485
1482
|
displayName: "ListItem__ContainerView",
|
|
1486
1483
|
componentId: "kitt-universal__sc-2afp9s-0"
|
|
1487
1484
|
})(["flex-direction:row;padding:", ";", ";border-color:", ";background-color:", ";"], function (_ref) {
|
|
@@ -1520,69 +1517,73 @@ function ListItem(_ref5) {
|
|
|
1520
1517
|
left = _ref5.left,
|
|
1521
1518
|
right = _ref5.right,
|
|
1522
1519
|
onPress = _ref5.onPress,
|
|
1523
|
-
rest = _objectWithoutProperties(_ref5, _excluded$
|
|
1520
|
+
rest = _objectWithoutProperties(_ref5, _excluded$3);
|
|
1524
1521
|
|
|
1525
|
-
var Wrapper = onPress ?
|
|
1526
|
-
var wrapperProps = onPress ? _objectSpread$
|
|
1522
|
+
var Wrapper = onPress ? Pressable : Fragment;
|
|
1523
|
+
var wrapperProps = onPress ? _objectSpread$4({
|
|
1527
1524
|
accessibilityRole: 'button',
|
|
1528
1525
|
onPress: onPress
|
|
1529
1526
|
}, rest) : undefined;
|
|
1530
1527
|
var containerProps = onPress ? undefined : rest;
|
|
1531
|
-
return /*#__PURE__*/
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1528
|
+
return /*#__PURE__*/jsx(Wrapper, _objectSpread$4(_objectSpread$4({}, wrapperProps), {}, {
|
|
1529
|
+
children: /*#__PURE__*/jsxs(ContainerView, _objectSpread$4(_objectSpread$4({
|
|
1530
|
+
withPadding: withPadding,
|
|
1531
|
+
borders: borders
|
|
1532
|
+
}, containerProps), {}, {
|
|
1533
|
+
children: [left ? /*#__PURE__*/jsx(ListItemSideContainer, {
|
|
1534
|
+
side: "left",
|
|
1535
|
+
children: left
|
|
1536
|
+
}) : null, /*#__PURE__*/jsx(ListItemContent, {
|
|
1537
|
+
children: children
|
|
1538
|
+
}), right ? /*#__PURE__*/jsx(ListItemSideContainer, {
|
|
1539
|
+
side: "right",
|
|
1540
|
+
children: right
|
|
1541
|
+
}) : null]
|
|
1542
|
+
}))
|
|
1543
|
+
}));
|
|
1539
1544
|
}
|
|
1540
1545
|
ListItem.Content = ListItemContent;
|
|
1541
1546
|
ListItem.SideContent = ListItemSideContent;
|
|
1542
1547
|
ListItem.SideContainer = ListItemSideContainer;
|
|
1543
1548
|
|
|
1544
|
-
var
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
}
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
componentId: "kitt-universal__sc-18y4z3t-2"
|
|
1559
|
-
})(["transform-origin:center center;"]);
|
|
1560
|
-
var LargeLoaderBaseCircle = /*#__PURE__*/styled.circle.withConfig({
|
|
1561
|
-
displayName: "LargeLoaderweb__LargeLoaderBaseCircle",
|
|
1562
|
-
componentId: "kitt-universal__sc-18y4z3t-3"
|
|
1563
|
-
})(["", " stroke:#ccc;animation:", " 1s cubic-bezier(0.39,0.575,0.565,1) 0.5s forwards;"], LargeLoaderCircleMixin, init);
|
|
1564
|
-
var LargeLoaderFillCircle = /*#__PURE__*/styled.circle.withConfig({
|
|
1565
|
-
displayName: "LargeLoaderweb__LargeLoaderFillCircle",
|
|
1566
|
-
componentId: "kitt-universal__sc-18y4z3t-4"
|
|
1567
|
-
})(["", " stroke:", ";animation:", " 1.8s cubic-bezier(0.39,0.575,0.565,1) 0.5s infinite alternate,", " 2.16s linear 0.5s infinite;"], LargeLoaderCircleMixin, function (_ref) {
|
|
1568
|
-
var theme = _ref.theme;
|
|
1569
|
-
return theme.kitt.colors.primary;
|
|
1570
|
-
}, offset, rotate);
|
|
1549
|
+
var LargeLoaderContainer = withTheme( /*#__PURE__*/styled("div")({
|
|
1550
|
+
name: "LargeLoaderContainer",
|
|
1551
|
+
"class": "l2im3sa",
|
|
1552
|
+
vars: {
|
|
1553
|
+
"l2im3sa-0": [function (_ref) {
|
|
1554
|
+
var theme = _ref.theme;
|
|
1555
|
+
return theme.kitt.colors.separator;
|
|
1556
|
+
}],
|
|
1557
|
+
"l2im3sa-1": [function (_ref2) {
|
|
1558
|
+
var theme = _ref2.theme;
|
|
1559
|
+
return theme.kitt.colors.primary;
|
|
1560
|
+
}]
|
|
1561
|
+
}
|
|
1562
|
+
}));
|
|
1571
1563
|
function LargeLoader() {
|
|
1572
|
-
return /*#__PURE__*/
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1564
|
+
return /*#__PURE__*/jsx(LargeLoaderContainer, {
|
|
1565
|
+
children: /*#__PURE__*/jsxs("svg", {
|
|
1566
|
+
width: "60",
|
|
1567
|
+
height: "60",
|
|
1568
|
+
children: [/*#__PURE__*/jsx("g", {
|
|
1569
|
+
"data-large-loader": "base",
|
|
1570
|
+
children: /*#__PURE__*/jsx("circle", {
|
|
1571
|
+
cx: "30",
|
|
1572
|
+
cy: "30",
|
|
1573
|
+
r: "27",
|
|
1574
|
+
fill: "none"
|
|
1575
|
+
})
|
|
1576
|
+
}), /*#__PURE__*/jsx("g", {
|
|
1577
|
+
"data-large-loader": "fill",
|
|
1578
|
+
children: /*#__PURE__*/jsx("circle", {
|
|
1579
|
+
cx: "30",
|
|
1580
|
+
cy: "30",
|
|
1581
|
+
r: "27",
|
|
1582
|
+
fill: "none"
|
|
1583
|
+
})
|
|
1584
|
+
})]
|
|
1585
|
+
})
|
|
1586
|
+
});
|
|
1586
1587
|
}
|
|
1587
1588
|
|
|
1588
1589
|
function Loader(_ref) {
|
|
@@ -1590,17 +1591,17 @@ function Loader(_ref) {
|
|
|
1590
1591
|
color = _ref$color === void 0 ? 'primary' : _ref$color,
|
|
1591
1592
|
_ref$size = _ref.size,
|
|
1592
1593
|
size = _ref$size === void 0 ? 20 : _ref$size;
|
|
1593
|
-
return /*#__PURE__*/
|
|
1594
|
+
return /*#__PURE__*/jsx(TypographyIcon, {
|
|
1594
1595
|
spin: true,
|
|
1595
1596
|
color: color,
|
|
1596
1597
|
size: size,
|
|
1597
|
-
icon: /*#__PURE__*/
|
|
1598
|
+
icon: /*#__PURE__*/jsx(LoaderIcon, {})
|
|
1598
1599
|
});
|
|
1599
1600
|
}
|
|
1600
1601
|
|
|
1601
1602
|
var xIconSize = 14;
|
|
1602
1603
|
var mainIconSize = 20;
|
|
1603
|
-
var Container$1 = /*#__PURE__*/styled(
|
|
1604
|
+
var Container$1 = /*#__PURE__*/styled$1(View).withConfig({
|
|
1604
1605
|
displayName: "Message__Container",
|
|
1605
1606
|
componentId: "kitt-universal__sc-c6400e-0"
|
|
1606
1607
|
})(["border-radius:", "px;background-color:", ";padding-bottom:", "px;padding-left:", "px;padding-right:", "px;padding-top:", "px;flex-direction:row;align-items:flex-start;justify-content:space-between;"], function (_ref) {
|
|
@@ -1627,7 +1628,7 @@ var Container$1 = /*#__PURE__*/styled(PrimitiveView).withConfig({
|
|
|
1627
1628
|
insets = _ref6.insets;
|
|
1628
1629
|
return ((_insets$top = insets === null || insets === void 0 ? void 0 : insets.top) !== null && _insets$top !== void 0 ? _insets$top : 0) + theme.kitt.spacing * 4;
|
|
1629
1630
|
});
|
|
1630
|
-
var CloseContainer = /*#__PURE__*/styled(TouchableOpacity).withConfig({
|
|
1631
|
+
var CloseContainer = /*#__PURE__*/styled$1(TouchableOpacity).withConfig({
|
|
1631
1632
|
displayName: "Message__CloseContainer",
|
|
1632
1633
|
componentId: "kitt-universal__sc-c6400e-1"
|
|
1633
1634
|
})(["margin-left:", "px;padding:", "px;"], function (_ref7) {
|
|
@@ -1637,14 +1638,14 @@ var CloseContainer = /*#__PURE__*/styled(TouchableOpacity).withConfig({
|
|
|
1637
1638
|
var theme = _ref8.theme;
|
|
1638
1639
|
return theme.kitt.spacing;
|
|
1639
1640
|
});
|
|
1640
|
-
var IconContainer = /*#__PURE__*/styled(
|
|
1641
|
+
var IconContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
1641
1642
|
displayName: "Message__IconContainer",
|
|
1642
1643
|
componentId: "kitt-universal__sc-c6400e-2"
|
|
1643
1644
|
})(["margin-right:", "px;"], function (_ref9) {
|
|
1644
1645
|
var theme = _ref9.theme;
|
|
1645
1646
|
return theme.kitt.spacing * 4;
|
|
1646
1647
|
});
|
|
1647
|
-
var Content = /*#__PURE__*/styled(
|
|
1648
|
+
var Content = /*#__PURE__*/styled$1(Text$1).withConfig({
|
|
1648
1649
|
displayName: "Message__Content",
|
|
1649
1650
|
componentId: "kitt-universal__sc-c6400e-3"
|
|
1650
1651
|
})(["text-align:", ";flex:1;"], function (_ref10) {
|
|
@@ -1669,16 +1670,16 @@ var getColorByType = function (type) {
|
|
|
1669
1670
|
function getIconContent(type) {
|
|
1670
1671
|
switch (type) {
|
|
1671
1672
|
case 'warning':
|
|
1672
|
-
return /*#__PURE__*/
|
|
1673
|
+
return /*#__PURE__*/jsx(AlertCircleIcon, {});
|
|
1673
1674
|
|
|
1674
1675
|
case 'success':
|
|
1675
|
-
return /*#__PURE__*/
|
|
1676
|
+
return /*#__PURE__*/jsx(CheckIcon, {});
|
|
1676
1677
|
|
|
1677
1678
|
case 'danger':
|
|
1678
|
-
return /*#__PURE__*/
|
|
1679
|
+
return /*#__PURE__*/jsx(AlertTriangleIcon, {});
|
|
1679
1680
|
|
|
1680
1681
|
default:
|
|
1681
|
-
return /*#__PURE__*/
|
|
1682
|
+
return /*#__PURE__*/jsx(InfoIcon, {});
|
|
1682
1683
|
}
|
|
1683
1684
|
}
|
|
1684
1685
|
|
|
@@ -1693,63 +1694,58 @@ function Message(_ref11) {
|
|
|
1693
1694
|
onDismiss = _ref11.onDismiss,
|
|
1694
1695
|
insets = _ref11.insets;
|
|
1695
1696
|
var color = getColorByType(type);
|
|
1696
|
-
return /*#__PURE__*/
|
|
1697
|
+
return /*#__PURE__*/jsxs(Container$1, {
|
|
1697
1698
|
type: type,
|
|
1698
1699
|
noRadius: noRadius,
|
|
1699
|
-
insets: insets
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1700
|
+
insets: insets,
|
|
1701
|
+
children: [!centeredText ? /*#__PURE__*/jsx(IconContainer, {
|
|
1702
|
+
children: /*#__PURE__*/jsx(Icon, {
|
|
1703
|
+
size: mainIconSize,
|
|
1704
|
+
color: color,
|
|
1705
|
+
icon: getIconContent(type)
|
|
1706
|
+
})
|
|
1707
|
+
}) : null, /*#__PURE__*/jsx(Content, {
|
|
1708
|
+
type: type,
|
|
1709
|
+
centeredText: centeredText,
|
|
1710
|
+
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
1711
|
+
base: "body-small",
|
|
1712
|
+
color: color,
|
|
1713
|
+
children: children
|
|
1714
|
+
})
|
|
1715
|
+
}), onDismiss ? /*#__PURE__*/jsx(CloseContainer, {
|
|
1716
|
+
onPress: onDismiss,
|
|
1717
|
+
children: /*#__PURE__*/jsx(Icon, {
|
|
1718
|
+
icon: /*#__PURE__*/jsx(XIcon, {}),
|
|
1719
|
+
size: xIconSize,
|
|
1720
|
+
color: color
|
|
1721
|
+
})
|
|
1722
|
+
}) : null]
|
|
1723
|
+
});
|
|
1717
1724
|
}
|
|
1718
1725
|
|
|
1719
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1726
|
+
function ownKeys$3(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; }
|
|
1720
1727
|
|
|
1721
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1722
|
-
|
|
1728
|
+
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1729
|
+
// Don't use styled.Pressable here - babel-plugin-styled-components-react-native-web only supports tagged templates
|
|
1730
|
+
var OverlayPressable = /*#__PURE__*/styled$1(Pressable).withConfig({
|
|
1723
1731
|
displayName: "Overlay__OverlayPressable",
|
|
1724
1732
|
componentId: "kitt-universal__sc-1cz1gbr-0"
|
|
1725
1733
|
})(function (_ref) {
|
|
1726
1734
|
var theme = _ref.theme;
|
|
1727
|
-
return _objectSpread(_objectSpread({}, StyleSheet.absoluteFillObject), {}, {
|
|
1735
|
+
return _objectSpread$3(_objectSpread$3({}, StyleSheet.absoluteFillObject), {}, {
|
|
1728
1736
|
backgroundColor: theme.kitt.colors.overlay.dark
|
|
1729
1737
|
});
|
|
1730
1738
|
});
|
|
1731
1739
|
function Overlay(_ref2) {
|
|
1732
1740
|
var onPress = _ref2.onPress;
|
|
1733
|
-
return /*#__PURE__*/
|
|
1741
|
+
return /*#__PURE__*/jsx(OverlayPressable, {
|
|
1734
1742
|
accessibilityRole: "none",
|
|
1735
|
-
onPress: onPress
|
|
1736
|
-
|
|
1743
|
+
onPress: onPress,
|
|
1744
|
+
children: /*#__PURE__*/jsx(View, {})
|
|
1745
|
+
});
|
|
1737
1746
|
}
|
|
1738
1747
|
|
|
1739
|
-
var
|
|
1740
|
-
var PrimitiveScrollView = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
1741
|
-
var contentContainerStyle = _ref.contentContainerStyle,
|
|
1742
|
-
children = _ref.children,
|
|
1743
|
-
props = _objectWithoutProperties(_ref, _excluded$3);
|
|
1744
|
-
|
|
1745
|
-
return /*#__PURE__*/React.createElement(PrimitiveView, _extends({
|
|
1746
|
-
ref: ref
|
|
1747
|
-
}, props), /*#__PURE__*/React.createElement(PrimitiveView, {
|
|
1748
|
-
style: contentContainerStyle
|
|
1749
|
-
}, children));
|
|
1750
|
-
});
|
|
1751
|
-
|
|
1752
|
-
var BodyView = /*#__PURE__*/styled(PrimitiveView).withConfig({
|
|
1748
|
+
var BodyView = /*#__PURE__*/styled$1(View).withConfig({
|
|
1753
1749
|
displayName: "Body__BodyView",
|
|
1754
1750
|
componentId: "kitt-universal__sc-17fwpo4-0"
|
|
1755
1751
|
})(["padding:", "px ", "px;"], function (_ref) {
|
|
@@ -1761,10 +1757,14 @@ var BodyView = /*#__PURE__*/styled(PrimitiveView).withConfig({
|
|
|
1761
1757
|
});
|
|
1762
1758
|
function ModalBody(_ref3) {
|
|
1763
1759
|
var children = _ref3.children;
|
|
1764
|
-
return /*#__PURE__*/
|
|
1760
|
+
return /*#__PURE__*/jsx(ScrollView, {
|
|
1761
|
+
children: /*#__PURE__*/jsx(BodyView, {
|
|
1762
|
+
children: children
|
|
1763
|
+
})
|
|
1764
|
+
});
|
|
1765
1765
|
}
|
|
1766
1766
|
|
|
1767
|
-
var FooterView = /*#__PURE__*/styled(
|
|
1767
|
+
var FooterView = /*#__PURE__*/styled$1(View).withConfig({
|
|
1768
1768
|
displayName: "Footer__FooterView",
|
|
1769
1769
|
componentId: "kitt-universal__sc-1ujq2dc-0"
|
|
1770
1770
|
})(["flex:0 0 auto;padding:", "px;border-top-width:1px;border-top-color:", ";"], function (_ref) {
|
|
@@ -1776,12 +1776,14 @@ var FooterView = /*#__PURE__*/styled(PrimitiveView).withConfig({
|
|
|
1776
1776
|
});
|
|
1777
1777
|
function ModalFooter(_ref3) {
|
|
1778
1778
|
var children = _ref3.children;
|
|
1779
|
-
return /*#__PURE__*/
|
|
1779
|
+
return /*#__PURE__*/jsx(FooterView, {
|
|
1780
|
+
children: children
|
|
1781
|
+
});
|
|
1780
1782
|
}
|
|
1781
1783
|
|
|
1782
1784
|
var OnCloseContext = /*#__PURE__*/createContext(function () {});
|
|
1783
1785
|
|
|
1784
|
-
var HeaderView = /*#__PURE__*/styled(
|
|
1786
|
+
var HeaderView = /*#__PURE__*/styled$1(View).withConfig({
|
|
1785
1787
|
displayName: "Header__HeaderView",
|
|
1786
1788
|
componentId: "kitt-universal__sc-1iwabch-0"
|
|
1787
1789
|
})(["position:relative;padding:", "px;display:flex;flex:0 0 auto;flex-direction:row;justify-content:space-between;align-items:center;border-bottom-width:1px;border-bottom-color:", ";min-height:57px;"], function (_ref) {
|
|
@@ -1791,21 +1793,21 @@ var HeaderView = /*#__PURE__*/styled(PrimitiveView).withConfig({
|
|
|
1791
1793
|
var theme = _ref2.theme;
|
|
1792
1794
|
return theme.kitt.colors.separator;
|
|
1793
1795
|
});
|
|
1794
|
-
var LeftIconView = /*#__PURE__*/styled(
|
|
1796
|
+
var LeftIconView = /*#__PURE__*/styled$1(View).withConfig({
|
|
1795
1797
|
displayName: "Header__LeftIconView",
|
|
1796
1798
|
componentId: "kitt-universal__sc-1iwabch-1"
|
|
1797
1799
|
})(["align-self:flex-start;margin-right:", "px;"], function (_ref3) {
|
|
1798
1800
|
var theme = _ref3.theme;
|
|
1799
1801
|
return theme.kitt.spacing * 2;
|
|
1800
1802
|
});
|
|
1801
|
-
var RightIconView = /*#__PURE__*/styled(
|
|
1803
|
+
var RightIconView = /*#__PURE__*/styled$1(View).withConfig({
|
|
1802
1804
|
displayName: "Header__RightIconView",
|
|
1803
1805
|
componentId: "kitt-universal__sc-1iwabch-2"
|
|
1804
1806
|
})(["align-self:flex-start;margin-left:", "px;"], function (_ref4) {
|
|
1805
1807
|
var theme = _ref4.theme;
|
|
1806
1808
|
return theme.kitt.spacing * 2;
|
|
1807
1809
|
});
|
|
1808
|
-
var TitleView = /*#__PURE__*/styled(
|
|
1810
|
+
var TitleView = /*#__PURE__*/styled$1(View).withConfig({
|
|
1809
1811
|
displayName: "Header__TitleView",
|
|
1810
1812
|
componentId: "kitt-universal__sc-1iwabch-3"
|
|
1811
1813
|
})(["padding-left:", "px;flex-shrink:1;"], function (_ref5) {
|
|
@@ -1819,16 +1821,23 @@ function ModalHeader(_ref6) {
|
|
|
1819
1821
|
children = _ref6.children;
|
|
1820
1822
|
var onClose = useContext(OnCloseContext);
|
|
1821
1823
|
var isIconLeft = !!left;
|
|
1822
|
-
return /*#__PURE__*/
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1824
|
+
return /*#__PURE__*/jsxs(HeaderView, {
|
|
1825
|
+
children: [isIconLeft && /*#__PURE__*/jsx(LeftIconView, {
|
|
1826
|
+
children: left
|
|
1827
|
+
}), /*#__PURE__*/jsx(TitleView, {
|
|
1828
|
+
isIconLeft: isIconLeft,
|
|
1829
|
+
children: children
|
|
1830
|
+
}), right !== undefined ? right : /*#__PURE__*/jsx(RightIconView, {
|
|
1831
|
+
children: /*#__PURE__*/jsx(Button, {
|
|
1832
|
+
type: "subtle-dark",
|
|
1833
|
+
icon: /*#__PURE__*/jsx(XIcon, {}),
|
|
1834
|
+
onPress: onClose
|
|
1835
|
+
})
|
|
1836
|
+
})]
|
|
1837
|
+
});
|
|
1829
1838
|
}
|
|
1830
1839
|
|
|
1831
|
-
var ModalView = /*#__PURE__*/styled(
|
|
1840
|
+
var ModalView = /*#__PURE__*/styled$1(View).withConfig({
|
|
1832
1841
|
displayName: "Modal__ModalView",
|
|
1833
1842
|
componentId: "kitt-universal__sc-1xy2w5u-0"
|
|
1834
1843
|
})(["top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:", "px ", "px;"], function (_ref) {
|
|
@@ -1838,7 +1847,7 @@ var ModalView = /*#__PURE__*/styled(PrimitiveView).withConfig({
|
|
|
1838
1847
|
var theme = _ref2.theme;
|
|
1839
1848
|
return theme.kitt.spacing * 4;
|
|
1840
1849
|
});
|
|
1841
|
-
var ContentView = /*#__PURE__*/styled(
|
|
1850
|
+
var ContentView = /*#__PURE__*/styled$1(View).withConfig({
|
|
1842
1851
|
displayName: "Modal__ContentView",
|
|
1843
1852
|
componentId: "kitt-universal__sc-1xy2w5u-1"
|
|
1844
1853
|
})(["position:relative;display:flex;flex-direction:column;max-height:100%;max-width:540px;height:auto;width:100%;border-radius:", ";background-color:", ";"], function (_ref3) {
|
|
@@ -1854,18 +1863,24 @@ function Modal(_ref5) {
|
|
|
1854
1863
|
onClose = _ref5.onClose,
|
|
1855
1864
|
onEntered = _ref5.onEntered,
|
|
1856
1865
|
onExited = _ref5.onExited;
|
|
1857
|
-
return /*#__PURE__*/
|
|
1858
|
-
value: onClose
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1866
|
+
return /*#__PURE__*/jsx(OnCloseContext.Provider, {
|
|
1867
|
+
value: onClose,
|
|
1868
|
+
children: /*#__PURE__*/jsx(Modal$1, {
|
|
1869
|
+
transparent: true,
|
|
1870
|
+
animationType: "fade",
|
|
1871
|
+
visible: visible,
|
|
1872
|
+
onShow: onEntered,
|
|
1873
|
+
onDismiss: onExited,
|
|
1874
|
+
onRequestClose: onClose,
|
|
1875
|
+
children: /*#__PURE__*/jsxs(ModalView, {
|
|
1876
|
+
children: [/*#__PURE__*/jsx(Overlay, {
|
|
1877
|
+
onPress: onClose
|
|
1878
|
+
}), /*#__PURE__*/jsx(ContentView, {
|
|
1879
|
+
children: children
|
|
1880
|
+
})]
|
|
1881
|
+
})
|
|
1882
|
+
})
|
|
1883
|
+
});
|
|
1869
1884
|
}
|
|
1870
1885
|
Modal.Header = ModalHeader;
|
|
1871
1886
|
Modal.Body = ModalBody;
|
|
@@ -1880,56 +1895,19 @@ function Notification(_ref) {
|
|
|
1880
1895
|
var _useSafeAreaInsets = useSafeAreaInsets(),
|
|
1881
1896
|
top = _useSafeAreaInsets.top;
|
|
1882
1897
|
|
|
1883
|
-
return /*#__PURE__*/
|
|
1898
|
+
return /*#__PURE__*/jsx(Message, {
|
|
1884
1899
|
noRadius: true,
|
|
1885
1900
|
type: type,
|
|
1886
1901
|
centeredText: centeredText,
|
|
1887
1902
|
insets: {
|
|
1888
1903
|
top: top
|
|
1889
1904
|
},
|
|
1890
|
-
onDismiss: onDelete
|
|
1891
|
-
|
|
1905
|
+
onDismiss: onDelete,
|
|
1906
|
+
children: children
|
|
1907
|
+
});
|
|
1892
1908
|
}
|
|
1893
1909
|
|
|
1894
|
-
var
|
|
1895
|
-
var children = _ref.children,
|
|
1896
|
-
className = _ref.className,
|
|
1897
|
-
href = _ref.href,
|
|
1898
|
-
hrefAttrs = _ref.hrefAttrs,
|
|
1899
|
-
onPress = _ref.onPress;
|
|
1900
|
-
|
|
1901
|
-
if (href != null) {
|
|
1902
|
-
return /*#__PURE__*/React.createElement("a", _extends({
|
|
1903
|
-
ref: ref,
|
|
1904
|
-
href: href
|
|
1905
|
-
}, hrefAttrs, {
|
|
1906
|
-
className: className,
|
|
1907
|
-
onClick: createPressClickHandler(onPress),
|
|
1908
|
-
onKeyUp: createPressKeyUpHandler(onPress)
|
|
1909
|
-
}), children);
|
|
1910
|
-
}
|
|
1911
|
-
|
|
1912
|
-
return /*#__PURE__*/React.createElement("span", {
|
|
1913
|
-
ref: ref,
|
|
1914
|
-
role: "button",
|
|
1915
|
-
className: className,
|
|
1916
|
-
tabIndex: onPress ? 0 : -1,
|
|
1917
|
-
onClick: createPressClickHandler(onPress),
|
|
1918
|
-
onKeyUp: createPressKeyUpHandler(onPress)
|
|
1919
|
-
}, children);
|
|
1920
|
-
});
|
|
1921
|
-
var PrimitiveLink = /*#__PURE__*/styled(PrimitiveLinkWithClassName).withConfig({
|
|
1922
|
-
displayName: "PrimitiveLinkweb__PrimitiveLink",
|
|
1923
|
-
componentId: "kitt-universal__sc-24w4og-0"
|
|
1924
|
-
})(["", " background-color:transparent;color:inherit;font:inherit !important;list-style:none;text-align:inherit;text-decoration:none;", ";", ";"], textResetMixin, function (_ref2) {
|
|
1925
|
-
var selectable = _ref2.selectable;
|
|
1926
|
-
return selectable == null ? undefined : "user-select: ".concat(selectable ? 'text' : 'none');
|
|
1927
|
-
}, function (_ref3) {
|
|
1928
|
-
var onPress = _ref3.onPress;
|
|
1929
|
-
return onPress ? 'cursor: pointer;' : undefined;
|
|
1930
|
-
});
|
|
1931
|
-
|
|
1932
|
-
var Flex = /*#__PURE__*/styled(PrimitiveView).withConfig({
|
|
1910
|
+
var Flex = /*#__PURE__*/styled$1(View).withConfig({
|
|
1933
1911
|
shouldForwardProp: function shouldForwardProp(prop, defaultValidatorFn) {
|
|
1934
1912
|
return !['direction', 'padding'].includes(prop) && defaultValidatorFn(prop);
|
|
1935
1913
|
}
|
|
@@ -1986,7 +1964,7 @@ var useStoryBlockColor = function (color) {
|
|
|
1986
1964
|
var storyBlockColor = useContext(StoryBlockColorContext);
|
|
1987
1965
|
return color || storyBlockColor;
|
|
1988
1966
|
};
|
|
1989
|
-
var StyledStoryBlockView = /*#__PURE__*/styled(
|
|
1967
|
+
var StyledStoryBlockView = /*#__PURE__*/styled$1(View).withConfig({
|
|
1990
1968
|
displayName: "StoryBlock__StyledStoryBlockView",
|
|
1991
1969
|
componentId: "kitt-universal__sc-3w4hdm-0"
|
|
1992
1970
|
})(["padding:16px ", "px 0;margin:0 -", "px;background:", ";"], storyPadding, storyPadding, function (_ref) {
|
|
@@ -1997,20 +1975,23 @@ var StyledStoryBlockView = /*#__PURE__*/styled(PrimitiveView).withConfig({
|
|
|
1997
1975
|
function StoryBlock(_ref2) {
|
|
1998
1976
|
var children = _ref2.children,
|
|
1999
1977
|
background = _ref2.background;
|
|
2000
|
-
return /*#__PURE__*/
|
|
2001
|
-
background: background
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
1978
|
+
return /*#__PURE__*/jsx(StyledStoryBlockView, {
|
|
1979
|
+
background: background,
|
|
1980
|
+
children: /*#__PURE__*/jsx(StoryBlockColorContext.Provider, {
|
|
1981
|
+
value: getTypographyColorFromBlockColor(background),
|
|
1982
|
+
children: /*#__PURE__*/jsx(StoryBlockBackgroundContext.Provider, {
|
|
1983
|
+
value: background,
|
|
1984
|
+
children: children
|
|
1985
|
+
})
|
|
1986
|
+
})
|
|
1987
|
+
});
|
|
2007
1988
|
}
|
|
2008
1989
|
|
|
2009
|
-
var StoryTitleContainer = /*#__PURE__*/styled(
|
|
1990
|
+
var StoryTitleContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
2010
1991
|
displayName: "StoryTitle__StoryTitleContainer",
|
|
2011
1992
|
componentId: "kitt-universal__sc-sic7hb-0"
|
|
2012
1993
|
})(["margin-bottom:30px;"]);
|
|
2013
|
-
var StorySubTitleContainer = /*#__PURE__*/styled(
|
|
1994
|
+
var StorySubTitleContainer = /*#__PURE__*/styled$1(View).withConfig({
|
|
2014
1995
|
displayName: "StoryTitle__StorySubTitleContainer",
|
|
2015
1996
|
componentId: "kitt-universal__sc-sic7hb-1"
|
|
2016
1997
|
})(["margin-bottom:10px;"]);
|
|
@@ -2018,24 +1999,30 @@ function StoryTitle(_ref) {
|
|
|
2018
1999
|
var color = _ref.color,
|
|
2019
2000
|
children = _ref.children,
|
|
2020
2001
|
numberOfLines = _ref.numberOfLines;
|
|
2021
|
-
return /*#__PURE__*/
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2002
|
+
return /*#__PURE__*/jsx(StoryTitleContainer, {
|
|
2003
|
+
children: /*#__PURE__*/jsx(Typography.Header1, {
|
|
2004
|
+
variant: "bold",
|
|
2005
|
+
base: "header1",
|
|
2006
|
+
color: useStoryBlockColor(color),
|
|
2007
|
+
numberOfLines: numberOfLines,
|
|
2008
|
+
children: children
|
|
2009
|
+
})
|
|
2010
|
+
});
|
|
2027
2011
|
}
|
|
2028
2012
|
|
|
2029
2013
|
function StoryTitleLevel2(_ref2) {
|
|
2030
2014
|
var color = _ref2.color,
|
|
2031
2015
|
children = _ref2.children,
|
|
2032
2016
|
numberOfLines = _ref2.numberOfLines;
|
|
2033
|
-
return /*#__PURE__*/
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2017
|
+
return /*#__PURE__*/jsx(StoryTitleContainer, {
|
|
2018
|
+
children: /*#__PURE__*/jsx(Typography.Header2, {
|
|
2019
|
+
variant: "bold",
|
|
2020
|
+
base: "header2",
|
|
2021
|
+
color: useStoryBlockColor(color),
|
|
2022
|
+
numberOfLines: numberOfLines,
|
|
2023
|
+
children: children
|
|
2024
|
+
})
|
|
2025
|
+
});
|
|
2039
2026
|
}
|
|
2040
2027
|
|
|
2041
2028
|
StoryTitleLevel2.displayName = 'StoryTitle.Level2';
|
|
@@ -2044,13 +2031,16 @@ function StoryTitleLevel3(_ref3) {
|
|
|
2044
2031
|
var color = _ref3.color,
|
|
2045
2032
|
children = _ref3.children,
|
|
2046
2033
|
numberOfLines = _ref3.numberOfLines;
|
|
2047
|
-
return /*#__PURE__*/
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2034
|
+
return /*#__PURE__*/jsx(StorySubTitleContainer, {
|
|
2035
|
+
children: /*#__PURE__*/jsx(Typography.Header3, {
|
|
2036
|
+
variant: "bold",
|
|
2037
|
+
base: "header3",
|
|
2038
|
+
medium: "header4",
|
|
2039
|
+
color: useStoryBlockColor(color),
|
|
2040
|
+
numberOfLines: numberOfLines,
|
|
2041
|
+
children: children
|
|
2042
|
+
})
|
|
2043
|
+
});
|
|
2054
2044
|
}
|
|
2055
2045
|
|
|
2056
2046
|
StoryTitleLevel3.displayName = 'StoryTitle.Level3';
|
|
@@ -2059,13 +2049,16 @@ function StoryTitleLevel4(_ref4) {
|
|
|
2059
2049
|
var color = _ref4.color,
|
|
2060
2050
|
children = _ref4.children,
|
|
2061
2051
|
numberOfLines = _ref4.numberOfLines;
|
|
2062
|
-
return /*#__PURE__*/
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2052
|
+
return /*#__PURE__*/jsx(StorySubTitleContainer, {
|
|
2053
|
+
children: /*#__PURE__*/jsx(Typography.Header4, {
|
|
2054
|
+
variant: "bold",
|
|
2055
|
+
base: "header4",
|
|
2056
|
+
medium: "header5",
|
|
2057
|
+
color: useStoryBlockColor(color),
|
|
2058
|
+
numberOfLines: numberOfLines,
|
|
2059
|
+
children: children
|
|
2060
|
+
})
|
|
2061
|
+
});
|
|
2069
2062
|
}
|
|
2070
2063
|
|
|
2071
2064
|
StoryTitleLevel4.displayName = 'StoryTitle.Level3';
|
|
@@ -2073,7 +2066,7 @@ StoryTitle.Level2 = StoryTitleLevel2;
|
|
|
2073
2066
|
StoryTitle.Level3 = StoryTitleLevel3;
|
|
2074
2067
|
StoryTitle.Level4 = StoryTitleLevel4;
|
|
2075
2068
|
|
|
2076
|
-
var StoryContainer$1 = /*#__PURE__*/styled(
|
|
2069
|
+
var StoryContainer$1 = /*#__PURE__*/styled$1(ScrollView).withConfig({
|
|
2077
2070
|
displayName: "Story__StoryContainer",
|
|
2078
2071
|
componentId: "kitt-universal__sc-1kwdg2p-0"
|
|
2079
2072
|
})(["padding:", "px;"], storyPadding);
|
|
@@ -2081,67 +2074,86 @@ function Story(_ref) {
|
|
|
2081
2074
|
var title = _ref.title,
|
|
2082
2075
|
contentContainerStyle = _ref.contentContainerStyle,
|
|
2083
2076
|
children = _ref.children;
|
|
2084
|
-
return /*#__PURE__*/
|
|
2085
|
-
contentContainerStyle: contentContainerStyle
|
|
2086
|
-
|
|
2077
|
+
return /*#__PURE__*/jsxs(StoryContainer$1, {
|
|
2078
|
+
contentContainerStyle: contentContainerStyle,
|
|
2079
|
+
children: [/*#__PURE__*/jsx(StoryTitle, {
|
|
2080
|
+
children: title
|
|
2081
|
+
}), children]
|
|
2082
|
+
});
|
|
2087
2083
|
}
|
|
2088
2084
|
|
|
2089
|
-
var _excluded$2 = ["title", "
|
|
2090
|
-
_excluded2 = ["title", "
|
|
2091
|
-
_excluded3 = ["title", "
|
|
2092
|
-
|
|
2085
|
+
var _excluded$2 = ["title", "children", "internalIsDemoSection"],
|
|
2086
|
+
_excluded2 = ["title", "children"],
|
|
2087
|
+
_excluded3 = ["title", "children"];
|
|
2088
|
+
|
|
2089
|
+
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; }
|
|
2090
|
+
|
|
2091
|
+
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; }
|
|
2092
|
+
var StyledSection = /*#__PURE__*/styled$1(View).withConfig({
|
|
2093
2093
|
displayName: "StorySection__StyledSection",
|
|
2094
2094
|
componentId: "kitt-universal__sc-1b3liv5-0"
|
|
2095
2095
|
})(["margin-bottom:32px;"]);
|
|
2096
2096
|
function StorySection(_ref) {
|
|
2097
|
-
var title = _ref.title
|
|
2098
|
-
_ref.
|
|
2099
|
-
var children = _ref.children,
|
|
2097
|
+
var title = _ref.title,
|
|
2098
|
+
children = _ref.children,
|
|
2100
2099
|
internalIsDemoSection = _ref.internalIsDemoSection,
|
|
2101
2100
|
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
2102
2101
|
|
|
2103
2102
|
if (title === 'Demo' && !internalIsDemoSection) throw new Error('Use StorySection.Demo instead');
|
|
2104
|
-
return /*#__PURE__*/
|
|
2103
|
+
return /*#__PURE__*/jsxs(StyledSection, _objectSpread$2(_objectSpread$2({}, props), {}, {
|
|
2104
|
+
children: [/*#__PURE__*/jsx(StoryTitle.Level2, {
|
|
2105
|
+
children: title
|
|
2106
|
+
}), children]
|
|
2107
|
+
}));
|
|
2105
2108
|
}
|
|
2106
|
-
var StyledSubSection = /*#__PURE__*/styled(
|
|
2109
|
+
var StyledSubSection = /*#__PURE__*/styled$1(View).withConfig({
|
|
2107
2110
|
displayName: "StorySection__StyledSubSection",
|
|
2108
2111
|
componentId: "kitt-universal__sc-1b3liv5-1"
|
|
2109
2112
|
})(["margin-bottom:16px;"]);
|
|
2110
2113
|
|
|
2111
2114
|
function SubSection(_ref2) {
|
|
2112
|
-
var title = _ref2.title
|
|
2113
|
-
_ref2.
|
|
2114
|
-
var children = _ref2.children,
|
|
2115
|
+
var title = _ref2.title,
|
|
2116
|
+
children = _ref2.children,
|
|
2115
2117
|
props = _objectWithoutProperties(_ref2, _excluded2);
|
|
2116
2118
|
|
|
2117
|
-
return /*#__PURE__*/
|
|
2119
|
+
return /*#__PURE__*/jsxs(StyledSubSection, _objectSpread$2(_objectSpread$2({}, props), {}, {
|
|
2120
|
+
children: [/*#__PURE__*/jsx(StoryTitle.Level3, {
|
|
2121
|
+
children: title
|
|
2122
|
+
}), children]
|
|
2123
|
+
}));
|
|
2118
2124
|
}
|
|
2119
2125
|
|
|
2120
|
-
var StyledBlockSection = /*#__PURE__*/styled(
|
|
2126
|
+
var StyledBlockSection = /*#__PURE__*/styled$1(View).withConfig({
|
|
2121
2127
|
displayName: "StorySection__StyledBlockSection",
|
|
2122
2128
|
componentId: "kitt-universal__sc-1b3liv5-2"
|
|
2123
2129
|
})(["margin-bottom:16px;"]);
|
|
2124
2130
|
|
|
2125
2131
|
function BlockSection(_ref3) {
|
|
2126
|
-
var title = _ref3.title
|
|
2127
|
-
_ref3.
|
|
2128
|
-
var children = _ref3.children,
|
|
2132
|
+
var title = _ref3.title,
|
|
2133
|
+
children = _ref3.children,
|
|
2129
2134
|
props = _objectWithoutProperties(_ref3, _excluded3);
|
|
2130
2135
|
|
|
2131
|
-
return /*#__PURE__*/
|
|
2136
|
+
return /*#__PURE__*/jsxs(StyledBlockSection, _objectSpread$2(_objectSpread$2({}, props), {}, {
|
|
2137
|
+
children: [/*#__PURE__*/jsx(StoryTitle.Level4, {
|
|
2138
|
+
children: title
|
|
2139
|
+
}), children]
|
|
2140
|
+
}));
|
|
2132
2141
|
}
|
|
2133
2142
|
|
|
2134
|
-
var StyledDemoSection = /*#__PURE__*/styled(
|
|
2143
|
+
var StyledDemoSection = /*#__PURE__*/styled$1(View).withConfig({
|
|
2135
2144
|
displayName: "StorySection__StyledDemoSection",
|
|
2136
2145
|
componentId: "kitt-universal__sc-1b3liv5-3"
|
|
2137
2146
|
})(["margin-bottom:64px;"]);
|
|
2138
2147
|
|
|
2139
2148
|
function DemoSection(_ref4) {
|
|
2140
2149
|
var children = _ref4.children;
|
|
2141
|
-
return /*#__PURE__*/
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2150
|
+
return /*#__PURE__*/jsx(StyledDemoSection, {
|
|
2151
|
+
children: /*#__PURE__*/jsx(StorySection, {
|
|
2152
|
+
internalIsDemoSection: true,
|
|
2153
|
+
title: "Demo",
|
|
2154
|
+
children: children
|
|
2155
|
+
})
|
|
2156
|
+
});
|
|
2145
2157
|
}
|
|
2146
2158
|
|
|
2147
2159
|
StorySection.SubSection = SubSection;
|
|
@@ -2160,33 +2172,36 @@ function StoryContainer(_ref) {
|
|
|
2160
2172
|
title = _ref.title,
|
|
2161
2173
|
platform = _ref.platform;
|
|
2162
2174
|
if (platform === 'native') return null;
|
|
2163
|
-
return /*#__PURE__*/
|
|
2175
|
+
return /*#__PURE__*/jsx(StorySection.BlockSection, {
|
|
2164
2176
|
testID: state,
|
|
2165
|
-
title: title
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2177
|
+
title: title,
|
|
2178
|
+
children: /*#__PURE__*/jsx("div", {
|
|
2179
|
+
className: state ? "kitt-".concat(state) : undefined,
|
|
2180
|
+
children: children
|
|
2181
|
+
})
|
|
2182
|
+
});
|
|
2169
2183
|
}
|
|
2170
2184
|
|
|
2171
2185
|
function StoryDecorator(storyFn, context) {
|
|
2172
|
-
return /*#__PURE__*/
|
|
2173
|
-
title: context.name
|
|
2174
|
-
|
|
2186
|
+
return /*#__PURE__*/jsx(Story, {
|
|
2187
|
+
title: context.name,
|
|
2188
|
+
children: storyFn()
|
|
2189
|
+
});
|
|
2175
2190
|
}
|
|
2176
2191
|
|
|
2177
|
-
var SmallScreenRow = /*#__PURE__*/styled(
|
|
2192
|
+
var SmallScreenRow = /*#__PURE__*/styled$1(View).withConfig({
|
|
2178
2193
|
displayName: "StoryGrid__SmallScreenRow",
|
|
2179
2194
|
componentId: "kitt-universal__sc-4z5new-0"
|
|
2180
2195
|
})(["flex-direction:column;margin:0;"]);
|
|
2181
|
-
var SmallScreenCol = /*#__PURE__*/styled(
|
|
2196
|
+
var SmallScreenCol = /*#__PURE__*/styled$1(View).withConfig({
|
|
2182
2197
|
displayName: "StoryGrid__SmallScreenCol",
|
|
2183
2198
|
componentId: "kitt-universal__sc-4z5new-1"
|
|
2184
2199
|
})(["padding:8px 0 16px;"]);
|
|
2185
|
-
var FlexRow = /*#__PURE__*/styled(
|
|
2200
|
+
var FlexRow = /*#__PURE__*/styled$1(View).withConfig({
|
|
2186
2201
|
displayName: "StoryGrid__FlexRow",
|
|
2187
2202
|
componentId: "kitt-universal__sc-4z5new-2"
|
|
2188
2203
|
})(["flex-direction:row;margin:0 -4px 16px;"]);
|
|
2189
|
-
var FlexCol = /*#__PURE__*/styled(
|
|
2204
|
+
var FlexCol = /*#__PURE__*/styled$1(View).withConfig({
|
|
2190
2205
|
displayName: "StoryGrid__FlexCol",
|
|
2191
2206
|
componentId: "kitt-universal__sc-4z5new-3"
|
|
2192
2207
|
})(["flex-grow:1;flex-basis:0;margin:0 8px;"]);
|
|
@@ -2204,14 +2219,22 @@ function StoryGridRow(_ref) {
|
|
|
2204
2219
|
var breakpointValue = breakpoint === 'small' ? 480 : 768;
|
|
2205
2220
|
|
|
2206
2221
|
if (width < breakpointValue) {
|
|
2207
|
-
return /*#__PURE__*/
|
|
2208
|
-
|
|
2209
|
-
|
|
2222
|
+
return /*#__PURE__*/jsx(SmallScreenRow, {
|
|
2223
|
+
children: Children.map(children, function (child) {
|
|
2224
|
+
return /*#__PURE__*/jsx(SmallScreenCol, {
|
|
2225
|
+
children: child
|
|
2226
|
+
});
|
|
2227
|
+
})
|
|
2228
|
+
});
|
|
2210
2229
|
}
|
|
2211
2230
|
|
|
2212
|
-
return /*#__PURE__*/
|
|
2213
|
-
|
|
2214
|
-
|
|
2231
|
+
return /*#__PURE__*/jsx(FlexRow, {
|
|
2232
|
+
children: Children.map(children, function (child) {
|
|
2233
|
+
return /*#__PURE__*/jsx(FlexCol, {
|
|
2234
|
+
children: child
|
|
2235
|
+
});
|
|
2236
|
+
})
|
|
2237
|
+
});
|
|
2215
2238
|
}
|
|
2216
2239
|
|
|
2217
2240
|
function StoryGridCol(_ref2) {
|
|
@@ -2225,10 +2248,13 @@ function StoryGridCol(_ref2) {
|
|
|
2225
2248
|
return null;
|
|
2226
2249
|
}
|
|
2227
2250
|
|
|
2228
|
-
return /*#__PURE__*/
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2251
|
+
return /*#__PURE__*/jsxs(Fragment$1, {
|
|
2252
|
+
children: [title ? /*#__PURE__*/jsx(StoryTitle.Level4, {
|
|
2253
|
+
numberOfLines: 1,
|
|
2254
|
+
color: titleColor,
|
|
2255
|
+
children: title
|
|
2256
|
+
}) : null, children]
|
|
2257
|
+
});
|
|
2232
2258
|
}
|
|
2233
2259
|
|
|
2234
2260
|
var StoryGrid = {
|
|
@@ -2236,7 +2262,7 @@ var StoryGrid = {
|
|
|
2236
2262
|
Col: StoryGridCol
|
|
2237
2263
|
};
|
|
2238
2264
|
|
|
2239
|
-
var Container = /*#__PURE__*/styled(
|
|
2265
|
+
var Container = /*#__PURE__*/styled$1(View).withConfig({
|
|
2240
2266
|
displayName: "Tag__Container",
|
|
2241
2267
|
componentId: "kitt-universal__sc-19jmowi-0"
|
|
2242
2268
|
})(["background-color:", ";border-width:", ";border-color:", ";padding:", ";border-radius:", ";align-self:flex-start;"], function (_ref) {
|
|
@@ -2290,13 +2316,15 @@ function Tag(_ref6) {
|
|
|
2290
2316
|
type = _ref6$type === void 0 ? 'default' : _ref6$type,
|
|
2291
2317
|
_ref6$variant = _ref6.variant,
|
|
2292
2318
|
variant = _ref6$variant === void 0 ? 'fill' : _ref6$variant;
|
|
2293
|
-
return /*#__PURE__*/
|
|
2319
|
+
return /*#__PURE__*/jsx(Container, {
|
|
2294
2320
|
type: type,
|
|
2295
|
-
variant: variant
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2321
|
+
variant: variant,
|
|
2322
|
+
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
2323
|
+
base: "body-xsmall",
|
|
2324
|
+
color: getLabelColor(type, variant),
|
|
2325
|
+
children: label
|
|
2326
|
+
})
|
|
2327
|
+
});
|
|
2300
2328
|
}
|
|
2301
2329
|
|
|
2302
2330
|
var lateOceanColorPalette = {
|
|
@@ -2405,6 +2433,7 @@ var colorsLateOceanTheme = {
|
|
|
2405
2433
|
danger: lateOceanColorPalette.englishVermillon,
|
|
2406
2434
|
separator: lateOceanColorPalette.black100,
|
|
2407
2435
|
hover: lateOceanColorPalette.black100,
|
|
2436
|
+
black: lateOceanColorPalette.black1000,
|
|
2408
2437
|
uiBackground: lateOceanColorPalette.black25,
|
|
2409
2438
|
uiBackgroundLight: lateOceanColorPalette.white,
|
|
2410
2439
|
overlay: {
|
|
@@ -2590,6 +2619,15 @@ var tagLateOceanTheme = {
|
|
|
2590
2619
|
}
|
|
2591
2620
|
};
|
|
2592
2621
|
|
|
2622
|
+
var tooltip = {
|
|
2623
|
+
backgroundColor: colorsLateOceanTheme.black,
|
|
2624
|
+
borderRadius: 10,
|
|
2625
|
+
opacity: 0.95,
|
|
2626
|
+
horizontalPadding: 16,
|
|
2627
|
+
verticalPadding: 4,
|
|
2628
|
+
floatingPadding: 8
|
|
2629
|
+
};
|
|
2630
|
+
|
|
2593
2631
|
var calcLineHeight = function (fontSize, lineHeightMultiplier) {
|
|
2594
2632
|
return Math.round(fontSize * lineHeightMultiplier);
|
|
2595
2633
|
};
|
|
@@ -2706,27 +2744,236 @@ var theme = {
|
|
|
2706
2744
|
shadows: shadowsLateOceanTheme,
|
|
2707
2745
|
fullScreenModal: fullScreenModalLateOceanTheme,
|
|
2708
2746
|
iconButton: iconButton,
|
|
2709
|
-
listItem: listItemLateOceanTheme
|
|
2747
|
+
listItem: listItemLateOceanTheme,
|
|
2748
|
+
tooltip: tooltip
|
|
2710
2749
|
};
|
|
2711
2750
|
|
|
2712
|
-
function
|
|
2713
|
-
|
|
2714
|
-
|
|
2751
|
+
function TimePicker() {
|
|
2752
|
+
return /*#__PURE__*/jsx(Typography.Text, {
|
|
2753
|
+
base: "body",
|
|
2754
|
+
children: "TimePicker is not implemented for the web"
|
|
2755
|
+
});
|
|
2756
|
+
}
|
|
2757
|
+
|
|
2758
|
+
function ownKeys$1(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; }
|
|
2759
|
+
|
|
2760
|
+
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2761
|
+
|
|
2762
|
+
var Arrow = function (props) {
|
|
2763
|
+
return /*#__PURE__*/jsx("svg", _objectSpread$1(_objectSpread$1({}, props), {}, {
|
|
2764
|
+
children: /*#__PURE__*/jsx("path", {
|
|
2765
|
+
fillRule: "evenodd",
|
|
2766
|
+
clipRule: "evenodd",
|
|
2767
|
+
d: "M22.399 6.128C20.939 7.722 19.767 9 18 9s-2.938-1.278-4.399-2.872C11.187 3.494 7.984 0 0 0h36c-7.984 0-11.187 3.494-13.601 6.128z",
|
|
2768
|
+
fill: "currentColor"
|
|
2769
|
+
})
|
|
2770
|
+
}));
|
|
2771
|
+
};
|
|
2772
|
+
|
|
2773
|
+
Arrow.defaultProps = {
|
|
2774
|
+
width: "36",
|
|
2775
|
+
height: "8",
|
|
2776
|
+
viewBox: "0 0 36 9",
|
|
2777
|
+
fill: "none",
|
|
2778
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2779
|
+
};
|
|
2780
|
+
var StyledTooltipView = /*#__PURE__*/styled$1(View).withConfig({
|
|
2781
|
+
displayName: "TooltipView__StyledTooltipView",
|
|
2782
|
+
componentId: "kitt-universal__sc-156zm6m-0"
|
|
2783
|
+
})(["align-items:center;"]);
|
|
2784
|
+
var StyledTooltipContent = /*#__PURE__*/styled$1(View).withConfig({
|
|
2785
|
+
displayName: "TooltipView__StyledTooltipContent",
|
|
2786
|
+
componentId: "kitt-universal__sc-156zm6m-1"
|
|
2787
|
+
})(["background-color:", ";border-radius:", "px;opacity:", ";padding:", ";"], function (_ref) {
|
|
2788
|
+
var theme = _ref.theme;
|
|
2789
|
+
return theme.kitt.tooltip.backgroundColor;
|
|
2790
|
+
}, function (_ref2) {
|
|
2791
|
+
var theme = _ref2.theme;
|
|
2792
|
+
return theme.kitt.tooltip.borderRadius;
|
|
2793
|
+
}, function (_ref3) {
|
|
2794
|
+
var theme = _ref3.theme;
|
|
2795
|
+
return theme.kitt.tooltip.opacity;
|
|
2796
|
+
}, function (_ref4) {
|
|
2797
|
+
var theme = _ref4.theme;
|
|
2798
|
+
return "".concat(theme.kitt.tooltip.verticalPadding, "px ").concat(theme.kitt.tooltip.horizontalPadding, "px");
|
|
2799
|
+
});
|
|
2800
|
+
|
|
2801
|
+
function ArrowView(props) {
|
|
2802
|
+
var theme = /*#__PURE__*/useTheme();
|
|
2803
|
+
return /*#__PURE__*/jsx(View, _objectSpread$1(_objectSpread$1({}, props), {}, {
|
|
2804
|
+
children: /*#__PURE__*/jsx(Arrow, {
|
|
2805
|
+
color: theme.kitt.tooltip.backgroundColor
|
|
2806
|
+
})
|
|
2807
|
+
}));
|
|
2715
2808
|
}
|
|
2716
2809
|
|
|
2717
|
-
var
|
|
2718
|
-
|
|
2810
|
+
var StyledArrow = /*#__PURE__*/styled$1(ArrowView).withConfig({
|
|
2811
|
+
displayName: "TooltipView__StyledArrow",
|
|
2812
|
+
componentId: "kitt-universal__sc-156zm6m-2"
|
|
2813
|
+
})(["color:", ";transform:", ";"], function (_ref5) {
|
|
2814
|
+
var theme = _ref5.theme;
|
|
2815
|
+
return theme.kitt.tooltip.backgroundColor;
|
|
2816
|
+
}, function (_ref6) {
|
|
2817
|
+
var $position = _ref6.$position;
|
|
2818
|
+
return "rotate(".concat($position === 'bottom' ? 180 : 0, "deg)");
|
|
2819
|
+
});
|
|
2820
|
+
function TooltipView(_ref7) {
|
|
2821
|
+
var children = _ref7.children,
|
|
2822
|
+
position = _ref7.position;
|
|
2823
|
+
return /*#__PURE__*/jsxs(StyledTooltipView, {
|
|
2824
|
+
children: [position === 'bottom' ? /*#__PURE__*/jsx(StyledArrow, {
|
|
2825
|
+
$position: position
|
|
2826
|
+
}) : null, /*#__PURE__*/jsx(StyledTooltipContent, {
|
|
2827
|
+
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
2828
|
+
base: "body",
|
|
2829
|
+
color: "white",
|
|
2830
|
+
children: children
|
|
2831
|
+
})
|
|
2832
|
+
}), position === 'top' ? /*#__PURE__*/jsx(StyledArrow, {
|
|
2833
|
+
$position: position
|
|
2834
|
+
}) : null]
|
|
2835
|
+
});
|
|
2836
|
+
}
|
|
2837
|
+
|
|
2838
|
+
var tooltipDefaultPosition = 'top';
|
|
2839
|
+
var tooltipDefaultFloatingStrategy = {
|
|
2840
|
+
web: 'absolute'
|
|
2719
2841
|
};
|
|
2720
2842
|
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2843
|
+
var StyledTooltipTrigger = /*#__PURE__*/styled$1(Pressable).withConfig({
|
|
2844
|
+
displayName: "Tooltipweb__StyledTooltipTrigger",
|
|
2845
|
+
componentId: "kitt-universal__sc-zn1y6f-0"
|
|
2846
|
+
})(["display:inline-flex;align-self:baseline;"]);
|
|
2847
|
+
var WebAnimatedTooltip = /*#__PURE__*/styled$1(View).withConfig({
|
|
2848
|
+
displayName: "Tooltipweb__WebAnimatedTooltip",
|
|
2849
|
+
componentId: "kitt-universal__sc-zn1y6f-1"
|
|
2850
|
+
})(["opacity:", ";transition:opacity 200ms;visibility:", ";"], function (_ref) {
|
|
2851
|
+
var theme = _ref.theme,
|
|
2852
|
+
$visible = _ref.$visible;
|
|
2853
|
+
return $visible ? theme.kitt.tooltip.opacity : 0;
|
|
2854
|
+
}, function (_ref2) {
|
|
2855
|
+
var $visible = _ref2.$visible;
|
|
2856
|
+
return $visible ? 'visible' : 'hidden';
|
|
2857
|
+
});
|
|
2858
|
+
|
|
2859
|
+
function getActualPosition(originalPosition, offsetMiddlewareData) {
|
|
2860
|
+
if (!offsetMiddlewareData) return originalPosition;
|
|
2861
|
+
|
|
2862
|
+
if (originalPosition === 'top') {
|
|
2863
|
+
return offsetMiddlewareData.y > 0 ? 'bottom' : originalPosition;
|
|
2724
2864
|
}
|
|
2725
2865
|
|
|
2726
|
-
|
|
2866
|
+
if (originalPosition === 'bottom') {
|
|
2867
|
+
return offsetMiddlewareData.y < 0 ? 'top' : originalPosition;
|
|
2868
|
+
}
|
|
2869
|
+
|
|
2870
|
+
return originalPosition;
|
|
2727
2871
|
}
|
|
2728
2872
|
|
|
2729
|
-
|
|
2873
|
+
function Tooltip(_ref3) {
|
|
2874
|
+
var children = _ref3.children,
|
|
2875
|
+
defaultVisible = _ref3.defaultVisible,
|
|
2876
|
+
_ref3$position = _ref3.position,
|
|
2877
|
+
position = _ref3$position === void 0 ? tooltipDefaultPosition : _ref3$position,
|
|
2878
|
+
content = _ref3.content,
|
|
2879
|
+
_ref3$floatingStrateg = _ref3.floatingStrategy,
|
|
2880
|
+
floatingStrategy = _ref3$floatingStrateg === void 0 ? tooltipDefaultFloatingStrategy : _ref3$floatingStrateg,
|
|
2881
|
+
floatingPadding = _ref3.floatingPadding,
|
|
2882
|
+
onUpdate = _ref3.onUpdate;
|
|
2883
|
+
var theme = /*#__PURE__*/useTheme();
|
|
2884
|
+
var padding = floatingPadding || theme.kitt.tooltip.floatingPadding;
|
|
2885
|
+
|
|
2886
|
+
var _useState = useState(Boolean(defaultVisible)),
|
|
2887
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
2888
|
+
visible = _useState2[0],
|
|
2889
|
+
setVisible = _useState2[1];
|
|
2890
|
+
|
|
2891
|
+
var _useFloating = useFloating({
|
|
2892
|
+
placement: position,
|
|
2893
|
+
strategy: floatingStrategy === null || floatingStrategy === void 0 ? void 0 : floatingStrategy.web,
|
|
2894
|
+
middleware: [offset(padding), shift(), flip()]
|
|
2895
|
+
}),
|
|
2896
|
+
x = _useFloating.x,
|
|
2897
|
+
y = _useFloating.y,
|
|
2898
|
+
reference = _useFloating.reference,
|
|
2899
|
+
floating = _useFloating.floating,
|
|
2900
|
+
strategy = _useFloating.strategy,
|
|
2901
|
+
update = _useFloating.update,
|
|
2902
|
+
refs = _useFloating.refs,
|
|
2903
|
+
middlewareData = _useFloating.middlewareData; // Update on scroll and resize for all relevant nodes
|
|
2904
|
+
|
|
2905
|
+
|
|
2906
|
+
useEffect(function () {
|
|
2907
|
+
if (!refs.reference.current || !refs.floating.current) {
|
|
2908
|
+
return function () {
|
|
2909
|
+
return undefined;
|
|
2910
|
+
};
|
|
2911
|
+
}
|
|
2912
|
+
|
|
2913
|
+
var parents = [].concat(_toConsumableArray(getScrollParents(refs.reference.current)), _toConsumableArray(getScrollParents(refs.floating.current)));
|
|
2914
|
+
parents.forEach(function (parent) {
|
|
2915
|
+
parent.addEventListener('scroll', update);
|
|
2916
|
+
parent.addEventListener('resize', update);
|
|
2917
|
+
});
|
|
2918
|
+
return function () {
|
|
2919
|
+
parents.forEach(function (parent) {
|
|
2920
|
+
parent.removeEventListener('scroll', update);
|
|
2921
|
+
parent.removeEventListener('resize', update);
|
|
2922
|
+
});
|
|
2923
|
+
};
|
|
2924
|
+
}, [refs.reference, refs.floating, update]);
|
|
2925
|
+
useEffect(function () {
|
|
2926
|
+
if (!onUpdate) return;
|
|
2927
|
+
onUpdate({
|
|
2928
|
+
x: x,
|
|
2929
|
+
y: y,
|
|
2930
|
+
reference: reference,
|
|
2931
|
+
floating: floating,
|
|
2932
|
+
strategy: strategy,
|
|
2933
|
+
update: update,
|
|
2934
|
+
refs: refs,
|
|
2935
|
+
middlewareData: middlewareData
|
|
2936
|
+
});
|
|
2937
|
+
}, [x, y, reference, floating, strategy, update, refs, middlewareData, onUpdate]);
|
|
2938
|
+
return /*#__PURE__*/jsxs(Fragment$1, {
|
|
2939
|
+
children: [/*#__PURE__*/jsx(StyledTooltipTrigger, {
|
|
2940
|
+
ref: reference,
|
|
2941
|
+
accessibilityRole: "button",
|
|
2942
|
+
onPress: function onPress() {
|
|
2943
|
+
return setVisible(function (prev) {
|
|
2944
|
+
return !prev;
|
|
2945
|
+
});
|
|
2946
|
+
},
|
|
2947
|
+
onMouseEnter: function onMouseEnter() {
|
|
2948
|
+
setVisible(true);
|
|
2949
|
+
},
|
|
2950
|
+
onFocus: function onFocus() {
|
|
2951
|
+
setVisible(true);
|
|
2952
|
+
},
|
|
2953
|
+
children: children
|
|
2954
|
+
}), /*#__PURE__*/jsx(WebAnimatedTooltip, {
|
|
2955
|
+
ref: floating,
|
|
2956
|
+
$visible: visible,
|
|
2957
|
+
accessibilityHidden: !visible,
|
|
2958
|
+
style: {
|
|
2959
|
+
position: strategy,
|
|
2960
|
+
top: 0,
|
|
2961
|
+
left: 0,
|
|
2962
|
+
transform: [{
|
|
2963
|
+
// @ts-expect-error translate3d is missing in react-native definitions, only supported in web
|
|
2964
|
+
translate3d: "".concat(Math.round(x !== null && x !== void 0 ? x : 0), "px, ").concat(Math.round(y !== null && y !== void 0 ? y : 0), "px, 0")
|
|
2965
|
+
}]
|
|
2966
|
+
},
|
|
2967
|
+
children: /*#__PURE__*/jsx(TooltipView, {
|
|
2968
|
+
position: getActualPosition(position, middlewareData.offset),
|
|
2969
|
+
children: content
|
|
2970
|
+
})
|
|
2971
|
+
})]
|
|
2972
|
+
});
|
|
2973
|
+
}
|
|
2974
|
+
Tooltip.View = TooltipView;
|
|
2975
|
+
|
|
2976
|
+
var StyledTypographyEmoji = /*#__PURE__*/styled$1(Emoji).withConfig({
|
|
2730
2977
|
displayName: "TypographyEmoji__StyledTypographyEmoji",
|
|
2731
2978
|
componentId: "kitt-universal__sc-1if5guu-0"
|
|
2732
2979
|
})(["align-self:center;", ""], function (_ref) {
|
|
@@ -2737,58 +2984,79 @@ var StyledTypographyEmoji = /*#__PURE__*/styled(Emoji).withConfig({
|
|
|
2737
2984
|
});
|
|
2738
2985
|
function TypographyEmoji(_ref2) {
|
|
2739
2986
|
var emoji = _ref2.emoji,
|
|
2740
|
-
|
|
2741
|
-
|
|
2987
|
+
base = _ref2.base,
|
|
2988
|
+
small = _ref2.small,
|
|
2989
|
+
medium = _ref2.medium,
|
|
2990
|
+
large = _ref2.large;
|
|
2742
2991
|
var theme = /*#__PURE__*/useTheme();
|
|
2743
|
-
var
|
|
2744
|
-
var
|
|
2992
|
+
var typeForCurrentWindowSize = useTypographyTypeForCurrentWindowSize(base, small, medium, large);
|
|
2993
|
+
var typeConfig = getTypographyTypeConfig(typeForCurrentWindowSize || 'body', theme);
|
|
2994
|
+
var typeConfigKey = getTypographyTypeConfigKey(theme);
|
|
2995
|
+
var fontSize = typeConfig[typeConfigKey].fontSize;
|
|
2745
2996
|
|
|
2746
2997
|
if ((process.env.NODE_ENV !== "production")) {
|
|
2747
2998
|
if (!fontSize.endsWith('px')) throw new Error("Unexpected font-size value: ".concat(fontSize));
|
|
2748
2999
|
}
|
|
2749
3000
|
|
|
2750
|
-
return /*#__PURE__*/
|
|
3001
|
+
return /*#__PURE__*/jsx(StyledTypographyEmoji, {
|
|
2751
3002
|
size: parseInt(fontSize.slice(0, -2), 10),
|
|
2752
3003
|
emoji: emoji
|
|
2753
3004
|
});
|
|
2754
3005
|
}
|
|
2755
3006
|
|
|
2756
3007
|
var _excluded$1 = ["children", "disabled", "noUnderline", "href", "hrefAttrs", "onPress"];
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
3008
|
+
|
|
3009
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3010
|
+
|
|
3011
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3012
|
+
var TypographyLinkWebWrapper = withTheme( /*#__PURE__*/styled("span")({
|
|
3013
|
+
name: "TypographyLinkWebWrapper",
|
|
3014
|
+
"class": "tcwz3nt"
|
|
3015
|
+
}));
|
|
3016
|
+
var StyledLink = /*#__PURE__*/styled$1(Text$1).withConfig({
|
|
2762
3017
|
displayName: "TypographyLink__StyledLink",
|
|
2763
3018
|
componentId: "kitt-universal__sc-1o1zy30-0"
|
|
2764
|
-
})(["text-decoration:", ";", ""], function (_ref) {
|
|
2765
|
-
var noUnderline = _ref
|
|
2766
|
-
return noUnderline ? 'none' : 'underline';
|
|
3019
|
+
})(["text-decoration:", ";", ";", ";"], function (_ref) {
|
|
3020
|
+
var $noUnderline = _ref.$noUnderline;
|
|
3021
|
+
return $noUnderline ? 'none' : 'underline';
|
|
2767
3022
|
}, function (_ref2) {
|
|
2768
|
-
var disabled = _ref2
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
3023
|
+
var $disabled = _ref2.$disabled;
|
|
3024
|
+
return "\n text-decoration-color: inherit;\n transition: color 0.2s ease-in-out;\n cursor: ".concat($disabled ? 'not-allowed' : 'pointer', ";\n ");
|
|
3025
|
+
}, function (_ref3) {
|
|
3026
|
+
var $disabled = _ref3.$disabled,
|
|
3027
|
+
theme = _ref3.theme;
|
|
3028
|
+
if (!$disabled) return undefined;
|
|
3029
|
+
return "color: ".concat(theme.kitt.typography.link.disabledColor, ";");
|
|
2772
3030
|
});
|
|
2773
|
-
function TypographyLink(
|
|
2774
|
-
var children =
|
|
2775
|
-
disabled =
|
|
2776
|
-
noUnderline =
|
|
2777
|
-
href =
|
|
2778
|
-
hrefAttrs =
|
|
2779
|
-
onPress =
|
|
2780
|
-
otherProps = _objectWithoutProperties(
|
|
2781
|
-
|
|
2782
|
-
return /*#__PURE__*/
|
|
2783
|
-
accessibilityRole: "none"
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
3031
|
+
function TypographyLink(_ref4) {
|
|
3032
|
+
var children = _ref4.children,
|
|
3033
|
+
disabled = _ref4.disabled,
|
|
3034
|
+
noUnderline = _ref4.noUnderline,
|
|
3035
|
+
href = _ref4.href,
|
|
3036
|
+
hrefAttrs = _ref4.hrefAttrs,
|
|
3037
|
+
onPress = _ref4.onPress,
|
|
3038
|
+
otherProps = _objectWithoutProperties(_ref4, _excluded$1);
|
|
3039
|
+
|
|
3040
|
+
return /*#__PURE__*/jsx(Typography, _objectSpread(_objectSpread({}, otherProps), {}, {
|
|
3041
|
+
accessibilityRole: "none",
|
|
3042
|
+
children: /*#__PURE__*/jsx(StyleWebWrapper, {
|
|
3043
|
+
as: TypographyLinkWebWrapper,
|
|
3044
|
+
"data-nounderline": noUnderline ? true : undefined,
|
|
3045
|
+
children: /*#__PURE__*/jsx(StyledLink, {
|
|
3046
|
+
$disabled: disabled,
|
|
3047
|
+
$noUnderline: noUnderline,
|
|
3048
|
+
href: href,
|
|
3049
|
+
hrefAttrs: hrefAttrs,
|
|
3050
|
+
accessibilityRole: "link",
|
|
3051
|
+
dataSet: {
|
|
3052
|
+
// remove data-kitt-universal when we delete kitt web. See See :global(a) in Link styles.module.css
|
|
3053
|
+
'kitt-universal': 'true'
|
|
3054
|
+
},
|
|
3055
|
+
onPress: disabled ? undefined : onPress,
|
|
3056
|
+
children: children
|
|
3057
|
+
})
|
|
3058
|
+
})
|
|
3059
|
+
}));
|
|
2792
3060
|
}
|
|
2793
3061
|
|
|
2794
3062
|
function matchWindowSize(currentWidth, _ref) {
|
|
@@ -2860,9 +3128,10 @@ function useKittTheme() {
|
|
|
2860
3128
|
function KittThemeProvider(_ref) {
|
|
2861
3129
|
var children = _ref.children;
|
|
2862
3130
|
var theme = useKittTheme();
|
|
2863
|
-
return /*#__PURE__*/
|
|
2864
|
-
theme: theme
|
|
2865
|
-
|
|
3131
|
+
return /*#__PURE__*/jsx(ThemeProvider, {
|
|
3132
|
+
theme: theme,
|
|
3133
|
+
children: children
|
|
3134
|
+
});
|
|
2866
3135
|
}
|
|
2867
3136
|
var KittThemeDecorator = makeDecorator({
|
|
2868
3137
|
name: 'ThemeDecorator',
|
|
@@ -2870,17 +3139,9 @@ var KittThemeDecorator = makeDecorator({
|
|
|
2870
3139
|
wrapper: function wrapper(storyFn, context, _ref2) {
|
|
2871
3140
|
_ref2.options;
|
|
2872
3141
|
_ref2.parameters;
|
|
2873
|
-
return /*#__PURE__*/
|
|
2874
|
-
|
|
2875
|
-
});
|
|
2876
|
-
|
|
2877
|
-
var SafeAreaProviderDecorator = makeDecorator({
|
|
2878
|
-
name: 'SafeAreaProviderDecorator',
|
|
2879
|
-
parameterName: 'safeAreaProvider',
|
|
2880
|
-
wrapper: function wrapper(storyFn, context, _ref) {
|
|
2881
|
-
_ref.options;
|
|
2882
|
-
_ref.parameters;
|
|
2883
|
-
return /*#__PURE__*/React.createElement(SafeAreaProvider, null, storyFn(context));
|
|
3142
|
+
return /*#__PURE__*/jsx(KittThemeProvider, {
|
|
3143
|
+
children: storyFn(context)
|
|
3144
|
+
});
|
|
2884
3145
|
}
|
|
2885
3146
|
});
|
|
2886
3147
|
|
|
@@ -2891,8 +3152,10 @@ function MatchWindowSize(_ref) {
|
|
|
2891
3152
|
|
|
2892
3153
|
var match = useMatchWindowSize(matchWindowSizeOptions);
|
|
2893
3154
|
if (!match) return null;
|
|
2894
|
-
return /*#__PURE__*/
|
|
3155
|
+
return /*#__PURE__*/jsx(Fragment$1, {
|
|
3156
|
+
children: children
|
|
3157
|
+
});
|
|
2895
3158
|
}
|
|
2896
3159
|
|
|
2897
|
-
export { Avatar, Button, Card, Emoji, ExternalLink, Flex, FullScreenModal, Icon, IconButton, InputFeedback, InputField, InputText, KittBreakpoints, KittBreakpointsMax, KittThemeDecorator, KittThemeProvider, Label, LargeLoader, ListItem, Loader, MatchWindowSize, Message, Modal, Notification,
|
|
3160
|
+
export { Avatar, Button, Card, Emoji, ExternalLink, Flex, FullScreenModal, Icon, IconButton, InputFeedback, InputField, InputText, KittBreakpoints, KittBreakpointsMax, KittThemeDecorator, KittThemeProvider, Label, LargeLoader, ListItem, Loader, MatchWindowSize, Message, Modal, Notification, Radio, DeprecatedSection as Section, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, Tag, TextArea, TimePicker, Tooltip, Typography, TypographyEmoji, TypographyIcon, TypographyLink, createWindowSizeHelper, matchWindowSize, styledTextInputMixin, theme, useKittTheme, useMatchWindowSize, useStoryBlockColor };
|
|
2898
3161
|
//# sourceMappingURL=index-browser-all.es.web.js.map
|